text stringlengths 3.3k 33k |
|---|
<filename>test/underlying.test.ts
import { ethers } from "ethers";
import { assert } from "chai";
import curve from "../src";
import { Pool } from "../src/pools";
import { BN } from "../src/utils";
import { DictInterface } from "../lib/interfaces";
// const PLAIN_POOLS = ['susd', 'ren', 'sbtc', 'hbtc', '3pool', 'seth'... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { Kernel, KernelMessage, Session } from '@jupyterlab/services';
import { find } from '@lumino/algorithm';
import { JSONObject } from '@lumino/coreutils';
import { Widget } from '@lumino/widgets';
import { ... |
import { EventEmitter } from 'eventemitter3';
export type RPCMessage<T> = IRPCMethod<T> | IRPCReply<T>;
export type RPCMessageWithCounter<T> = RPCMessage<T> & { counter: number };
export interface IRPCMethod<T> {
type: 'method';
serviceID: string;
id: number;
method: string;
discard?: boolean;
params: T;... |
import {assign, isString, padStart} from 'lodash';
const token = /d{1,4}|E{1,4}|M{1,4}|yy(?:yy)?|([HhmsAa])\1?|[LloSzWN]|"[^"]*"|'[^']*'/g;
const timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
const timezoneClip = /[^-+... |
<gh_stars>0
// Copyright (c) 2022 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, m... |
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
INTEGER,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
ValidationParms,
_decode_ValidationParms,
_encode_ValidationParms,
} from "../AlgorithmObjectIdentifi... |
// tslint-disable-next-line
import { assertType } from '../lib/assert';
import Ember from 'ember';
import {
ExtractPropertyNamesOfType,
UnwrapComputedPropertyGetter,
UnwrapComputedPropertyGetters,
UnwrapComputedPropertySetters,
} from '@ember/object/-private/types';
import Observable from '@ember/object... |
/*
* https://github.com/kraaden/autocomplete
* Copyright (c) 2016 <NAME>
* MIT License
*/
export const enum EventTrigger {
Keyboard = 0,
Focus = 1
}
export interface AutocompleteItem {
label?: string;
group?: string;
}
export interface AutocompleteSettings<T extends AutocompleteItem> {
i... |
<reponame>nteague22/react-syntaxtree-extractor<gh_stars>0
import { parse } from "@babel/parser";
import {
File,
Node,
ArrowFunctionExpression,
FunctionDeclaration,
JSXExpressionContainer,
Identifier,
MemberExpression,
ClassDeclaration,
ClassMethod,
ArrayPattern,
A... |
<filename>app/src/Main.ts
// ===============================
// Application main entry point
// ===============================
// We must declare this function to get static files like html or CSS via the ts-loader
// More info here https://github.com/TypeStrong/ts-loader
declare var require: {
<T>(path: string): ... |
<reponame>depp/intern-apocalypse
import {
Vector,
madd,
length,
distanceSquared,
newRect,
initRect,
rectAddCircle,
rectsIntersect,
dotSubtract,
wedgeSubtract,
distance,
vector,
normalizeSubtract,
maddSubtract,
} from '../lib/math';
import { EntityBase, Team } from './entity';
import { isDebu... |
<gh_stars>0
/**
* The `HiFiControls` class allows developers to more quickly write an application that requires a user
* to navigate around a 2D or 3D environment.
* @packageDocumentation
*/
const LEFT_ARROW_KEY_CODE = "ArrowLeft";
const UP_ARROW_KEY_CODE = "ArrowUp";
const RIGHT_ARROW_KEY_CODE = "ArrowRight";
con... |
/**
* 注文返品取引サービス
*/
import * as moment from 'moment';
import { settings } from '../../settings';
import * as chevre from '../../chevreapi';
import { factory } from '../../factory';
import { MongoRepository as ActionRepo } from '../../repo/action';
// import { MongoRepository as OrderRepo } from '../../repo/order';... |
import crypto from "crypto";
import axios from "axios";
const EC = require("elliptic").ec;
const canonicalize = require("canonicalize");
const ec = new EC("secp256k1");
const formats = [".png", ".jpeg", ".jpg"];
export const getIamgeUrlInText = (text: string): string | undefined => {
const urlExpression =
/[-a-z... |
import { AmbientLight, DirectionalLight, HemisphereLight, Object3D, PointLight, SpotLight } from 'three'
import { switchCameraMode } from '../../avatar/functions/switchCameraMode'
import { isClient } from '../../common/functions/isClient'
import { Engine } from '../../ecs/classes/Engine'
import { EngineEvents } from '.... |
<reponame>gdams/run-aqa
import * as exec from '@actions/exec'
import * as core from '@actions/core'
import * as io from '@actions/io'
import * as tc from '@actions/tool-cache'
import * as path from 'path'
import * as fs from 'fs'
import {ExecOptions} from '@actions/exec/lib/interfaces'
let tempDirectory = process.env[... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import {
DispatchService,
CombineApiService,
SimulatorsData,
} from '@biosimulations/simulation-project-utils/service';
import {
AlgorithmSubstitution,
AlgorithmSubstitutionPolicy,
Algorit... |
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, PopoverController } from 'ionic-angular';
import { TopbarComponent } from '../../components/topbar/topbar';
import { AssessmentService } from '../../services/assessment.service';
import { GoogleAnalytics } from '../../application/h... |
import {ElementContainer} from '../dom/element-container';
import {getAbsoluteValue, getAbsoluteValueForTuple} from '../css/types/length-percentage';
import {Vector} from './vector';
import {BezierCurve} from './bezier-curve';
import {Path} from './path';
export class BoundCurves {
readonly topLeftBorderBox: Path;... |
import VERSIFICATION from './Versification';
import BibleRef from './BibleRef';
import * as P from 'parsimmon';
let book_name_to_id : { [ index: string ] : string } = {};
for(let book of VERSIFICATION.order){
[ book.name, ...book.aliases ].map(x => book_name_to_id[x.toLowerCase()] = book.id)
}
///////////////... |
<filename>app/client/components/SearchBar.ts<gh_stars>0
// tslint:disable:no-console
// TODO: This file should be removed once the old search UI is phased out.
import {createGroup} from 'app/client/components/commands';
import {GristDoc} from 'app/client/components/GristDoc';
import * as dom from 'app/client/lib/dom';... |
<gh_stars>0
export enum Color {
PINK = 'Pink',
RED = 'Red',
ORANGE = 'Orange',
YELLOW = 'Yellow',
GREEN = 'Green',
BLUE = 'Blue',
PURPLE = 'Purple',
WHITE = 'White',
BROWN = 'Brown',
GRAY = 'Gray',
BLACK = 'Black',
SILVER = 'Silver',
GOLD = 'Gold',
CLEAR = 'Clear',
}
export enum Manufacture... |
<filename>assets/js/display.ts
/*
* Copyright (c) 2020. Witt, Nils
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the right... |
/*
* Copyright (c) 2018, Gnock
* Copyright (c) 2018, The Masari Project
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of cond... |
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import { ExecOptions } from '@actions/exec/lib/interfaces';
import * as io from '@actions/io';
import { FormatType, SecretParser } from 'actions-secret-parser';
import { ServicePrincipalLogin } from './PowerShell/ServicePrincipalLogin';
var ... |
// Copyright 2016 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
import { detect } from 'chardet';
import { encodingExists, decode } from 'iconv-lite';
import {
open, read, close, readFile, existsSync, outputFile,
} from 'fs-extra';
import uuidv4 from 'uuid/v4';
import { extname, join } from 'path';
import {
ITags, IOrigin, Type, Format, IParser, ILoader, Cue, IVideoSegments, IM... |
<filename>editors/code/src/highlighting.ts
import * as vscode from 'vscode';
import * as lc from 'vscode-languageclient';
import { ColorTheme, TextMateRuleSettings } from './color_theme';
import { Ctx, sendRequestWithRetry } from './ctx';
export function activateHighlighting(ctx: Ctx) {
const highlighter = new H... |
import chalk from 'chalk';
import ejs from 'ejs';
import execa from 'execa';
import fs from 'fs-extra';
import { set } from 'lodash';
import path from 'path';
import yargs from 'yargs';
import prompts, { PromptObject } from './helpers/prompt';
import summaryMessage from './helpers/summaryMessage';
import getPackagesTo... |
/**
* Trigger Data Access Layer
* @category saltcorn-data
* @module models/trigger
* @subcategory models
*/
import db = require("../db");
import EventLog from "./eventlog";
import Table from "./table";
import type { Where, SelectOptions, Row } from "@saltcorn/db-common/internal";
import type { TriggerCfg } from "... |
import { MockFirebaseFirestore } from '@firebase/app-types';
import {
DocumentChange,
DocumentChangeType,
DocumentData,
FieldPath,
SetOptions,
Transaction,
UpdateData,
} from '@firebase/firestore-types';
import { deepCopy } from '@firebase/util';
import MockDocumentReference from './MockDocumentReference... |
import { UnreachableCode } from '../../resources/not_reached';
import UserConfig, { OptionsTemplate, UserFileCallback } from '../../resources/user_config';
import { BaseOptions } from '../../types/data';
import { LooseOopsyTriggerSet, OopsyFileData } from '../../types/oopsy';
import {
CactbotConfigurator,
Con... |
<reponame>d4llll/Saas-1
import {
accessTokens,
accessTokensCreateInput,
sessionsUpdateInput,
users,
usersCreateInput,
} from "@prisma/client";
import {
MISSING_PRIMARY_EMAIL,
RESOURCE_NOT_FOUND,
USER_NOT_FOUND,
} from "@staart/errors";
import {
anonymizeIpAddress,
capitalizeFirstAndLastLetter,
has... |
import * as _ from 'lodash';
import * as iconvLite from 'iconv-lite';
import { toHalfwidth } from './fullwidth';
import { decode } from './ubjson';
export const Commands = {
MESSAGE_SIZES: 53,
GAME_START: 54,
PRE_FRAME_UPDATE: 55,
POST_FRAME_UPDATE: 56,
GAME_END: 57,
};
export type SlpFileType = {
dataBuf... |
<reponame>ipcrm/sdm
/*
* Copyright © 2018 Atomist, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
import Integration from './Integration';
import * as opentracing from 'opentracing';
import {
HttpTags,
SpanTags,
SpanTypes,
DomainNames,
ClassNames,
TriggerHeaderTags,
MAX_HTTP_REQUEST_SIZE,
MAX_HTTP_RESPONSE_SIZE,
INTEGRATIONS,
} from '../Constants';
import Utils from '../utils/Uti... |
/* eslint-disable @typescript-eslint/no-unnecessary-qualifier */
/* eslint-disable unicorn/no-array-for-each */
import type { Interface } from 'node:readline';
import chalk from 'chalk';
import { map, takeUntil } from 'rxjs';
import cliCursor from 'cli-cursor';
import figures from 'figures';
import Base from 'inquirer... |
import {merge} from 'lodash';
import {Class} from './data/meta';
import {CardEntity} from './line-parsers/readers';
const UNKNOWN_CARDNAME = 'UNKNOWN ENTITY [cardType=INVALID]';
/**
* Tests if a card name is empty or the "empty string"
* @param cardName
*/
const isEmpty = (cardName?: string) => {
return !cardName... |
import BitmapData from "../display/BitmapData";
import DisplayObjectRenderer from "../display/DisplayObjectRenderer";
import Shader from "../display/Shader";
import ShaderParameter from "../display/ShaderParameter";
import BitmapFilter from "../filters/BitmapFilter";
import BitmapFilterShader from "../filters/BitmapFil... |
<gh_stars>0
import { IMigrate } from './migrate/migrate-interfaces';
import { TableConstraint, CreateColumnDef, StatementLocation, DataTypeDef } from 'pgsql-ast-parser';
export type nil = undefined | null;
export type Schema = {
name: string;
fields: SchemaField[];
constraints?: TableConstraint[];
}
ex... |
<filename>ReactNativeClient/lib/theme.ts
import { Theme } from './themes/type';
import theme_light from './themes/light';
import theme_dark from './themes/dark';
import theme_dracula from './themes/dracula';
import theme_solarizedLight from './themes/solarizedLight';
import theme_solarizedDark from './themes/solarized... |
import * as am4core from "@amcharts/amcharts4/core";
import * as am4maps from "@amcharts/amcharts4/maps";
import am4themes_dark from "@amcharts/amcharts4/themes/dark";
import am4themes_animated from "@amcharts/amcharts4/themes/animated";
import am4geodata_continentsLow from "@amcharts/amcharts4-geodata/continentsLow";
... |
<gh_stars>10-100
/*
Compiles all the test cases and runs them via webdriver to summarize the results
*/
import * as fs from 'fs';
import * as path from 'path';
export function generate(dir: string){
fs.mkdirSync(path.join(dir, "V8"), {recursive: true})
fs.mkdirSync(path.join(dir, "V8", "Benchmark", "Runn... |
import React, { useEffect, useState, useContext } from 'react'
import Router, { useRouter } from 'next/router'
import { UserContext } from '../context/UserContext'
import useTranslation from 'next-translate/useTranslation'
import dynamic from 'next/dynamic'
import Error from 'next/error'
import Layout from '../componen... |
import { Component, Prop, Watch } from "vue-property-decorator";
import BaseComponent from "@/components/BaseComponent";
import {
GoogleMapsSectionProps,
MapsLocation,
GoogleMapsSectionSlots,
} from "@/types/sections";
import { LineSeparator } from "@/components";
// eslint-disable-next-line
const DEFAULT_ICON =... |
import { makeStartLoading, makeStopLoading } from 'front-end/lib';
import { Route } from 'front-end/lib/app/types';
import * as FormField from 'front-end/lib/components/form-field';
import * as ShortText from 'front-end/lib/components/form-field/short-text';
import * as Table from 'front-end/lib/components/table';
impo... |
import { WorkspaceConfiguration, workspace, Disposable } from "vscode";
import { DebugOutput } from "./debugOutput";
/**
* Justify if a char is ASCII character.
*
* 0000-007F: C0 Controls and Basic Latin (ASCII)
* 0080-00FF: C1 Controls and Latin-1 Supplement (Extended ASCII)
*
* Reference:
* http://h... |
<filename>src/dicom/io/dicom-input-stream.ts
// tslint:disable:no-implicit-dependencies
import {
AnyDicomElement,
DicomStreamToken,
DicomInputStream as DicomInputStreamInterface,
DicomInputStreamConfig,
DicomPath,
SequenceItemPath,
DicomElementPath,
FilePreambleToken, DicomPrefixToken, D... |
<gh_stars>0
import { inject, injectable } from "inversify";
import { Player, PlayerFactory, PlayerImpl, PlayerSummary } from "./Player";
import { Question } from "./Questions/Question";
import { Socket } from "socket.io";
import { TYPES } from "../bindings/types";
import { QuestionBank } from "./Questions/QuestionBank"... |
<gh_stars>10-100
import { JSEvalable, SerializableOrJSHandle, ElementHandle, JSHandle, Page, ScreenshotOptions } from 'puppeteer';
import { getBrowser, closeBrowser } from './browser';
type PropName = string | number;
type OpType = 'GET' | 'SET' | 'APPLY';
// Op describes the operation to ber performed in the browse... |
<filename>packages/dynamics-client-ui-react/src/components/ActivitiesReader/redux/data.ts
/** Redux data processing state. */
import { AnyAction, ActionCreator, Action } from "redux"
const R = require("ramda")
import { createSelector } from "reselect"
import { put } from "redux-saga/effects"
import { Status, Result } f... |
import { first, iif, isNilOrEmpty, isNotNilOrEmpty, kebab } from '@paravano/utils';
import { CSSFile, File } from '../types';
type MediaQuery = { key: string, obj: Record<string, unknown>, children?: MediaQuery[] };
type Item = { key: string, obj: Record<string, unknown> };
// Keys that have number types which we sho... |
<gh_stars>10-100
// External libraries
import { BigNumber } from "bignumber.js";
import * as moment from "moment";
import * as Web3 from "web3";
// Utils
import * as Units from "../../../../../utils/units";
import { Web3Utils } from "../../../../../utils/web3_utils";
// Scenarios
import { ReturnCollateralScenario, Seiz... |
<reponame>stopendy/vscode-ansible<gh_stars>0
import * as cp from 'child_process';
import { StringDecoder } from 'string_decoder';
import * as vscode from 'vscode';
import { ThrottledDelayer } from './utils/async';
import * as nls from 'vscode-nls';
let localize = nls.loadMessageBundle();
const enum Setting {
run =... |
import * as React from "react";
import {
Box,
Button, Grid, IconButton,
Paper,
Tab,
Table, TableBody, TableCell,
TableContainer,
TableHead,
TableRow,
Tabs,
Toolbar, Tooltip
} from "@material-ui/core";
import HistoryIcon from '@material-ui/icons/History';
import ReceiptIcon from '... |
<reponame>nsxsoft/node-system
import { DirectiveOptions, PluginObject, VNode, VNodeDirective } from 'vue';
import { targetIsInput } from '../../../utils/event/event';
import { dragDropDelay, polyFillActive } from '../../../utils/polyfills';
import { clearUserSelection } from '../../../utils/selection/selection';
import... |
import { Task, of as taskOf } from 'folktale/concurrency/task';
import { AppError } from '../errorHandling';
import createAliasesService, { AliasesService } from './aliases';
import createAssetsService, {
AssetsService,
createCache as createAssetsCache,
} from './assets';
import createCandlesService, { CandlesServ... |
import * as React from 'react';
import './style.css';
import axios from "axios";
import { baseURL } from 'Helpers/baseURL';
import { TOKEN } from 'Helpers/token';
import "./csv.css";
import Dashboard from 'Components/DashboardLayout';
type ListingState = {
search: any,
apartment_name: string,
apartment_type: st... |
import { Node, WorkflowSingle } from 'api/workflows.type'
import cytoscape, { EdgeDefinition, EventHandler, NodeDefinition, Stylesheet } from 'cytoscape'
import { Theme } from '@material-ui/core'
import _flattenDeep from 'lodash.flattendeep'
import dagre from 'cytoscape-dagre'
cytoscape.use(dagre)
type RecursiveNode... |
import {
ColorResolvable, Guild, GuildChannel, Message, MessageEmbed, MessageReaction, Role, Snowflake, TextChannel
} from 'discord.js';
import Structure from './Structure';
import RaffleModel, { IPartialServer, IRaffle, RaffleStatus } from '../models/Raffle';
import Timestamps from '../models/legacy/Timestamps';
i... |
<reponame>mcampbell-flexion/Video-Hub-App
import type { PipeTransform } from '@angular/core';
import { Pipe } from '@angular/core';
import type { ImageElement, StarRating} from '../../../interfaces/final-object.interface';
import { NewImageElement } from '../../../interfaces/final-object.interface';
import type { Sett... |
<reponame>chriskr/color-tool<filename>src/utils.ts
import React, { FormEvent } from 'react';
import Color, {
RGBInterface,
HSVInterface,
HSLInterface,
RGB,
HSL,
HSV,
RGBAInterface,
RGBA,
} from 'color-interfaces';
import bg2 from './bg2.svg';
export const setters: Object &
Record<string, (color: Colo... |
<reponame>KissSpinobleZsolt/cognite-grafana-datasource<gh_stars>0
import { get, cloneDeep } from 'lodash';
import { TableData, TimeSeries } from '@grafana/data';
import {
TimeSeriesDatapoint,
Timestamp,
Items,
Datapoint,
IdEither,
TimeSeriesResponseItem,
Resource,
CogniteRelationshipResponse,
} from './... |
import { parsePhoneNumber } from '@celo/utils/lib/phoneNumbers'
import * as fuzzysort from 'fuzzysort'
import { TFunction } from 'i18next'
import { MinimalContact } from 'react-native-contacts'
import { formatShortenedAddress } from 'src/components/ShortenedAddress'
import {
AddressToDisplayNameType,
AddressToE164N... |
import { isString, uid, isFunction, DeregisterFn } from '../util';
import { Messenger } from './messenger';
type FetchFn = (locale: string) => Promise<string>;
type StringOrFetchFn = string | FetchFn;
type RenderTextFn = (ctx?: Record<string, unknown>) => string;
type RenderFactory = (...deps: unknown[]) => RenderDict... |
// These are enums that are used in the typings file but do not exist as actual exported values. To prevent them from
// showing up in an editor, they are imported from here instead of exporting them there directly.
export enum ActivityTypes {
PLAYING = 0,
STREAMING = 1,
LISTENING = 2,
WATCHING = 3,
CUSTOM =... |
import 'focus-visible';
import { DotLoader } from '../DotLoader/index';
import { GetClasses } from '../../typeUtils';
import { getTestProps } from '../../testUtils/getTestProps';
import { makeStyles } from '../../styles/index';
import { motion } from 'framer-motion';
import { TableHeaderCell } from './TableHeaderCell';... |
import NodeResolve from "@esbuild-plugins/node-resolve";
import chokidar from "chokidar";
import { build, BuildIncremental, BuildResult, OutputFile } from "esbuild";
import { readdir, readFile, stat } from "fs/promises";
import { sweep } from "js-fns";
import { parse as parsePath, relative, resolve } from "path";
impor... |
import { ref, reactive, toRefs, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import usePoolsQuery from '@/composables/queries/usePoolsQuery';
import useTransactions from '@/composables/useTransactions';
import useEthers from '@/composables/useEthers';
import useTokens from '../useTokens';
import useWeb3 ... |
import {
asKafkaRequestPayload,
createEmptyNewKafkaRequestPayload,
} from "@app/models/kafka";
import {
CreateKafkaInitializationData,
InstanceAvailability,
OnCreateKafka,
Provider,
ProviderInfo,
Providers,
RegionInfo,
Regions,
} from "@rhoas/app-services-ui-components";
import {
Quota,
QuotaTyp... |
<filename>src/dual-char-table.ts
import {
DualCharInfo,
Utils
} from "./public-api";
const kakkoStart: DualCharInfo = {
parenType: "open",
kinsokuPos: "tail",
kernEnable: true,
hangEnable: false,
rotatable: false,
isSmall: false
};
const kakkoStartHalf: DualCharInfo = {
parenType: "open",
kinsokuP... |
import { headings as headingsCrawled } from './Docs.mdx'
import { assert, isBrowser } from '../utils'
import { Heading } from './types'
const headings: Heading[] = [
{
level: 2,
title: 'Overview',
isDocumentBegin: true
},
...headingsCrawled
]
assert_headings()
export { updateSidePanelScroll }
if (is... |
"use strict";
import { Uri, extensions } from 'vscode';
import { BaseTextDocumentContentProvider } from './baseTextDocumentContentProvider';
import { RestClientSettings } from '../models/configurationSettings';
import { HttpResponse } from "../models/httpResponse";
import { MimeUtility } from '../mimeUtility';
... |
<gh_stars>0
import {FlooringplanUtil} from '../util/floorplan/flooringplan.util';
import * as THREE from 'three';
// import {ShapeUtils} from './tamu.shape.util';
import 'polybooljs';
declare const PolyBool: any;
export class HalfFace {
public size: THREE.Vector2;
public pos: THREE.Vector2;
}
export class TamuFl... |
import * as React from 'react'
import { cameras, controls, drawCommands, entitiesFromSolids, prepareRender } from '@jscad/regl-renderer'
import { useAnimationFrame, useKeyPress } from './hooks'
import { useDrag, usePinch, useWheel } from 'react-use-gesture'
type Solid = any;
interface RendererProps {
animate?: bool... |
import { localForger } from '@taquito/local-forging';
import { CompositeForger, RpcForger, TezosToolkit, Protocols, ChainIds } from '@taquito/taquito';
import { RemoteSigner } from '@taquito/remote-signer';
import { HttpBackend } from '@taquito/http-utils';
import { b58cencode, Prefix, prefix } from '@taquito/utils';
i... |
import { Node, PropertyLikeDeclaration, PropertySignature, ReturnStatement, SetAccessorDeclaration } from "typescript";
import { ComponentMember } from "../../types/features/component-member";
import { LitElementPropertyConfig } from "../../types/features/lit-element-property-config";
import { getMemberVisibilityFromNo... |
/*------------------------------------------------------------------------------
About : Convert Nudi Text to Unicode
Created on : Mon Jan 15 2018
Author : <NAME>
Copyright (c) 2018 Mubble Networks Private Limited. All rights reserved.
-------------------------------------------------------... |
import Fluvio, {
arrayBufferToString,
FluvioAdmin,
OffsetFrom,
PartitionConsumer,
stringToArrayBuffer,
TopicProducer,
TopicReplicaParam,
PartitionSpecMetadata,
Offset,
FetchablePartitionResponse,
} from '../src/index'
import { v4 as uuidV4 } from 'uuid'
import { exec } from 'chil... |
import { StoreonStore } from 'storeon';
/**
* Navigation represents ongoing navigation.
*/
export interface Navigation {
/**
* Unique identifier of navigation
*/
id: number;
/**
* Requested url.
*/
url: string;
/**
* Force the navigation, for the cases when even for same ... |
<gh_stars>0
import * as fs from "fs"
import Path = require('path')
import { EpItem, Item, title } from "./bgm"
import { EpisodeDetailsInfo, SeasonInfo, Tvshow, TvshowInfo } from "./nfo"
import { Builder } from 'xml2js'
import { findBestMatch } from "string-similarity";
const builder = new Builder()
const videoExts: Se... |
import React, { Fragment, useState } from 'react';
import { Listbox, Popover, Switch, Transition } from '@headlessui/react';
import { Launchpad, launchpadAll, setPageTheme } from '../helpers/helperFunctions';
import { usePopper } from 'react-popper';
import gql from 'graphql-tag';
import { useQuery } from '@apollo... |
/**
* Copyright 2015 CANAL+ Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import { BigNumber, BigNumberish, Contract, ethers, Signer } from "ethers";
import YieldTokenCompounding from "artifacts/contracts/YieldTokenCompounding.sol/YieldTokenCompounding.json";
import ITranche from "artifacts/contracts/element-finance/ITranche.sol/ITranche.json";
import { ITranche as ITrancheType } from "hardh... |
import { __ } from 'embark-i18n';
const EventEmitter = require('events');
const cloneDeep = require('lodash.clonedeep');
const fs = require('fs-extra');
function debugEventsEnabled() {
return process && process.env && process.env.DEBUGEVENTS;
}
function warnIfLegacy(eventName: string) {
const legacyEvents: strin... |
import { AspectRatio, base, BorderRadius, ColorProps, element, ModelProps, ResponsiveProps, Size, SpacingProps, StandardProps, text, VisualProps } from "@zenbu-ui/core"
import { ThemeCtx } from "@zenbu-ui/provider"
import { useId } from "@reach/auto-id"
import * as React from "react"
interface CardProps extends Standa... |
<filename>src/hooks/scoresheet.ts
import idbReady from 'safari-14-idb-fix'
import * as idbKeyval from 'idb-keyval'
import { reactive, ref } from 'vue'
import { v4 as uuid } from 'uuid'
import { apolloClient } from '../apollo'
import { provideApolloClient } from '@vue/apollo-composable'
import { useGroupScoresheetQuery,... |
<reponame>remshams/igniteui-angular
import {
Directive, EmbeddedViewRef, Input, OnChanges, ChangeDetectorRef,
SimpleChange, SimpleChanges, TemplateRef, ViewContainerRef, NgModule, NgZone, Output, EventEmitter
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { IBaseEventArgs } from... |
<filename>src/components/timePicker.ts
import { registerMouseEvent, registerTouchEvent } from '../utils/utils';
import { GestureTracker } from './gestureTracker';
import { Hand } from './hand';
import { Hours } from './hours';
import { Minutes } from './minutes';
type TimeInput =
{
hour: number
min... |
<reponame>GateNLP/harassment-manager
/**
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
import React, {
CSSProperties,
forwardRef,
ReactNode,
useEffect,
useImperativeHandle,
useRef,
useState,
} from 'react';
import RcCascader from './src';
import arrayTreeFilter from 'array-tree-filter';
import { polyfill } from 'react-lifecycles-compat';
import classNames from 'classnames';
import omit from... |
import {
CharacterMetadata,
ContentState,
DraftEntityMutability,
DraftInlineStyle,
EditorState,
Modifier,
SelectionState,
} from 'draft-js';
import * as Immutable from 'immutable';
import {AtomicData} from '../@atomic';
import {Feature} from '../@feature';
import {
getContentSelectionAmbient,
testCha... |
<reponame>eprincev-egor/grapeql-lang
import {Coach} from "lang-coach";
import allSyntax from "./allSyntax";
import {Any} from "./syntax/Any";
import {Between} from "./syntax/Between";
import {Boolean} from "./syntax/Boolean";
import {ByteString} from "./syntax/ByteString";
import {CacheFor} from "./syntax/Cac... |
<reponame>stylify/packages<filename>packages/nuxt/src/module.ts<gh_stars>10-100
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { name, version } from '../package.json';
import {
CompilerConfigInterface,
nativePreset
} from '@stylify/stylify';
import { unplugin, defineConfig ... |
<filename>web/controllers/certificateController/index.ts
import { getLogger } from 'log4js';
import { Request, Response } from 'express';
import { Pupil } from '../../../common/entity/Pupil';
import { Student } from '../../../common/entity/Student';
import { getTransactionLog } from '../../../common/transactionlog';
im... |
<gh_stars>1-10
import { Duration } from '../../../../google/protobuf/duration';
import { DayOfWeek } from '../../../../google/type/dayofweek';
import { TimeOfDay } from '../../../../google/type/timeofday';
import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.ydb.v1";
export interfa... |
import {Idata} from "./../ImageCarouselReact";
import * as React from "ImageCarouselReact/lib/react";
import ImageCarouselModelProps from "./../../ImageCarouselReact.d";
import Carousel, {ICarouselProps} from "./Carousel";
import CarouselCaption from "./CarouselCaption";
import {CarouselItem, ICarouselItemProps } fro... |
<gh_stars>10-100
/*
Copyright (c) 2019, because-why-not.com Limited
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list ... |
import * as THREE from 'three';
import $ from "jquery";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js';
import TWEEN from '@tweenjs/tween.js';
let ProgressBar = require('progressbar.js');
export default class CountryG... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.