text stringlengths 3.08k 15.5k |
|---|
<gh_stars>1-10
import { EmailOptions } from 'email-templates';
import path from 'path';
import { getRepository } from 'typeorm';
import { Notification } from '..';
import { MediaType } from '../../../constants/media';
import { User } from '../../../entity/User';
import logger from '../../../logger';
import PreparedEmai... |
<reponame>Muhammad-Altabba/sidetree.js
/*
* The code in this file originated from
* @see https://github.com/decentralized-identity/sidetree
* For the list of changes that was made to the original code
* @see https://github.com/transmute-industries/sidetree.js/blob/main/reference-implementation-changes.md
*
* Copy... |
<gh_stars>0
import { ConstRecord } from '../../../types/const';
import Token from '../../../types/token';
const METIS = {
name: 'METIS',
address: '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000',
symbol: 'WMETIS',
decimals: 18,
chainId: 1088,
website: 'https://www.metis.io/',
description:
'METIS IS SOLVI... |
<reponame>unjs/unimport
import { findStaticImports, parseStaticImport, StaticImport } from 'mlly'
import MagicString from 'magic-string'
import { stripLiteral } from 'strip-literal'
import type { Import, Preset, TypeDeclrationOptions } from './types'
export const excludeRE = [
// imported from other module
/\bimpo... |
import apiService from 'apiService';
import {
cloneTemplate,
getAllByTag,
getById,
getFirstByTag,
getTarget,
} from 'gets';
enum FieldTypes {
plainValue,
number,
currency,
checkbox,
date,
multiSelect,
multiCheck,
}
type FormElement =
| HTMLInputElement
| HTMLTextAreaElement
| HTMLSelectE... |
<filename>nodejs/src/monte.ts
import {Duplex, DuplexOptions} from "stream";
import {EventEmitter} from "events";
import * as net from "net";
import * as crypto from "crypto";
// @ts-ignore
import blake2b from "blake2b";
import nacl from "tweetnacl";
import assert from "assert";
type MonteSocketConnectOpts = net.Socke... |
<filename>src/lib/model/AVLTree.ts
/**
* @license
* (C) <NAME>, 2017 - 2019. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/alvachien/datastructure/blob/master/LICENSE
*
* File: AVLTree.ts
* AVL tree
*/
import ... |
// Copyright (c) 2020 The DAML Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
import * as configAPISource from '!raw-loader!../config/api/v1';
import * as UICore from '@da/ui-core';
import * as Session from '@da/ui-core/lib/session';
import * as Babel from 'babel-standalone';
import * as React f... |
<filename>src/component/element/c4f-bug-tracker.ts
import { html, TemplateResult } from 'lit-element';
import projectStore from '@store/project-store';
import appStore from '@store/app-store';
import settingsStore from '@store/settings-store';
import db from '@localdb';
import { MobxLitElement } from '@adobe/lit-mobx';... |
<reponame>heurrutia/typings-suitescript-2.0<filename>N/https.d.ts
import {Encoding} from './encode';
import {ClientResponse, ServerRequest, ServerResponse, RedirectType, SendRedirectOptions} from './http'
import {HashAlg, SecretKey} from './crypto';
interface CreateSecretKeyOptions {
/** Specifies the encoding for... |
<gh_stars>0
// Copyright 2020-2022 OnFinality Limited authors & contributors
// SPDX-License-Identifier: Apache-2.0
import {
ApolloClient,
HttpLink,
InMemoryCache,
NormalizedCacheObject,
gql,
} from '@apollo/client/core';
import { Injectable, OnApplicationShutdown } from '@nestjs/common';
import {
buildQue... |
import 'source-map-support/register';
import {
app,
BrowserWindow,
clipboard,
shell,
ipcMain,
Menu,
Tray,
nativeImage,
MenuItem,
} from 'electron';
import * as path from 'path';
import * as url from 'url';
import * as fixPath from 'fix-path';
import * as defaultMenu from 'electron-default-menu';
impor... |
<reponame>ArdaGurcan/platypus
import * as path from 'path'
import * as fs from 'fs'
import { AVAILABLE_LOCALES } from '@mathigon/studio/server/utilities/i18n'
import { Course, Section } from '@mathigon/studio/server/interfaces'
import {
CONFIG as mConfig,
CONTENT_DIR,
PROJECT_DIR,
getCourse,
loadYAML,
load... |
/*
* Copyright (C) 2019 <NAME>
*
* 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 to i... |
<gh_stars>0
import { useQuery } from "react-query";
import { NetworkId } from "src/constants";
import { BOND_DEPOSITORY_CONTRACT, OP_BOND_DEPOSITORY_CONTRACT } from "src/constants/contracts";
import { OHM_TOKEN } from "src/constants/tokens";
import { getTokenByAddress } from "src/helpers/contracts/getTokenByAddress";
i... |
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { isString, isNumber, isFunction } from './toasta.utils';
/**
* Options to configure a new Toast
*/
@Injectable()
export class ToastOptions {
title: string;
msg?: string;
showClose?: boolean;
showDuration?: bool... |
#!/usr/bin/env node
/* eslint-disable no-console */
import Bluebird from 'bluebird';
import * as jsondiffpatch from 'jsondiffpatch';
import { AxiosResponse } from 'axios';
import jp from 'jsonpath';
import * as _ from 'lodash';
import chalk from 'chalk';
import { ApiEnv, argvToApiEnv } from '../apiEnv';
import runQue... |
import * as maptalks from 'maptalks';
import * as THREE from 'three';
import MergedMixin from './MergedMixin';
import BaseObject from './BaseObject';
import { initVertexColors } from './util/ExtrudeUtil';
import { getExtrudeLineParams, LineStringSplit } from './util/LineUtil';
import ExtrudeLine from './ExtrudeLine';
i... |
<gh_stars>0
import { JobInfo } from 'data/jobs'
import { DamageInstance } from 'simulator/damage'
import { Stats } from 'simulator/gear/stats'
import * as Funcs from './functions'
import { JOB_MODS } from './modifiers/job'
import { Level } from './modifiers/level'
import { PET_MODS } from './modifiers/pet'
const PARTY... |
import { Address, BigInt, ethereum } from "@graphprotocol/graph-ts";
import { ERC20 } from "../../generated/Factory/ERC20";
import { _HelperStore, LiquidityPool, Token } from "../../generated/schema";
import {
getOrCreateProtocol,
getOrCreateProtocolFeeShare,
getOrCreateSupplyFeeShare,
getOrCreateTradingFees,
... |
<reponame>mousepotato/ext-saladict
import { DictID, AppConfig } from '@/app-config'
import { Language } from '@opentranslate/languages'
import { Translator } from '@opentranslate/translator'
import { DictItem, SelectOptions } from '@/app-config/dicts'
import { isContainJapanese, isContainKorean } from '@/_helpers/lang-... |
import { File } from 'formidable'
import * as fs from 'fs-extra'
import * as yaml from 'js-yaml'
import * as path from 'path'
import { sprintf } from 'sprintf-js'
import { filterXSS } from 'xss'
import * as yargs from 'yargs'
import { BundleFile, HandlerUrl, ItemTypeName, LabelTypeName } from '../common/types'
import {... |
<gh_stars>0
// LARA_CODE: import * as $ from "jquery";
// ACTIVITY_PLAYER_CODE:
import $ from "jquery";
(window as any).jQuery = $;
(window as any).$ = $;
import "jquery-ui/ui/widgets/button";
// Distance between sidebar handles (in pixels).
const SIDEBAR_SPACER = 35;
// Distance to the bottom edge of the window if s... |
// export function find<T>(ts: Iterable<T>, fn: (t: T) => boolean): T | undefined {
// for (const t of ts) {
// if (fn(t)) {
// return t
// }
// }
// return undefined
// }
export type ChunkType = 'script' | 'module' | 'style'
export interface ChunkMeta {
readonly id: string;
readonly name: str... |
import { Runtime } from "webextension-polyfill-ts";
import { Queue } from "queue-ts";
import { IntercomServer } from "lib/intercom/server";
import {
ThanosMessageType,
ThanosRequest,
ThanosResponse,
} from "lib/thanos/types";
import { Vault } from "lib/thanos/back/vault";
import { toFront, store, inited } from "l... |
import { Autowired, Bean } from "../context/context";
import { Component } from "./component";
import { PopupService } from "./popupService";
import { UserComponentFactory } from "../components/framework/userComponentFactory";
import { GridOptionsWrapper } from "../gridOptionsWrapper";
import { ColumnApi } from "../col... |
<filename>test/resources/processExecution/simulator.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
import * as assert from "assert";
import * as child_process from "child_process";
import { ISpawnResult, ChildProcess... |
import { RTCPeerConnection } from 'stanza-shims';
import { Agent } from '../';
import * as Jingle from '../jingle';
import {
NS_JINGLE_1,
NS_JINGLE_DTLS_0,
NS_JINGLE_DTLS_SCTP_1,
NS_JINGLE_FILE_TRANSFER_4,
NS_JINGLE_FILE_TRANSFER_5,
NS_JINGLE_ICE_0,
NS_JINGLE_ICE_UDP_1,
NS_JINGLE_RTP_1,
... |
import {Subscription} from "rxjs";
import {Control, DomEvent, DomUtil} from "leaflet";
import "leaflet-easybutton";
import {EditableFeatureCollection} from "../editable";
import {KeyEvents} from "../util";
import {GeotoolMap} from "./geotool.map";
/**
* This class shows a control for switching the currently selecte... |
/******************************************************************************
* Copyright 2009-2020 Exactpro (Exactpro Systems Limited)
*
* 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
*
* ... |
<reponame>XpamAmAdEuS/react-translate<filename>src/language/translate.tsx<gh_stars>10-100
import React from 'react';
import get from 'lodash.get';
import sanitizeHtml from 'sanitize-html';
import TranslatorContext from './translator-context';
export interface ITranslateProps {
contentKey: string;
children?: string... |
import {isMobile} from '../constants/platform'
import * as Kb from '../common-adapters'
import * as React from 'react'
import {
NavigationViewProps,
createNavigator,
createSwitchNavigator,
StackRouter,
SceneView,
} from '@react-navigation/core'
import * as Shim from '../router-v2/shim'
import AirdropQualify f... |
import React, { useState, useEffect, useMemo, useCallback } from 'react';
import { push } from 'connected-react-router';
import { useDispatch, useSelector } from 'react-redux';
import SimpleLedger from '~/components/ledger/SimpleLedger';
import ConcordiumLedgerClient from '~/features/ledger/ConcordiumLedgerClient';
imp... |
<gh_stars>0
import { getLastItemOfNodeList, getParentByClassName, removeChildren } from '../../helpers/dom';
import { find, isTabDown, isTabUp } from '../../helpers/misc';
import { ContextCore } from '../../typing/context';
import { OpenOverlay, OverlayChangeEvent } from '../../typing/open-overlay';
import { WaterfallE... |
/// <reference path="../../common-types.d.ts" />
import { BrowserWindow as WebBrowserWindow } from 'electron';
import * as path from 'path';
import * as url from 'url';
import * as logging from '../logging';
const ioHook = (window as any).require('iohook');
const { BrowserWindow, screen } = (window as any).require('ele... |
import anymatch from 'anymatch'
import { rootLogger } from '../nexus-logger'
import { WorktimeHooks } from '../plugin'
import { clearConsole } from '../process'
import * as Chok from './chokidar'
import * as Link from './link'
import { Options } from './types'
const log = rootLogger.child('dev').child('watcher')
expo... |
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { MatDialog, MatSnackBar, MatTableDataSource, MatPaginator, MAT_DIALOG_DATA } from '@angular/material';
import { Router, ActivatedRoute } from '@angular/router';
import { Fi... |
import { forwardRef, Inject, Injectable } from '@nestjs/common';
import { DOWN, is, LABEL, UP, VALUE } from '@steggy/utilities';
import chalk from 'chalk';
import Separator from 'inquirer/lib/objects/separator';
import {
MainMenuEntry,
PromptMenuItems,
TableBuilderOptions,
} from '../contracts';
import {
ListB... |
import { createSocket, Socket } from 'dgram';
import { isIPv4 } from 'net';
import { TypedEmitter } from 'tiny-typed-emitter';
import { Awaited } from '../util/util';
/**
* Stores an IP address and port. Used to store socket details for the local client as well as
* for Discord.
*/
export interface SocketConfig {
... |
import {request} from '../request';
import {BaseHeaders} from '../../core/structures/api/requests/headers/BaseHeaders';
import {loginRequest, LoginRequest} from '../../core/structures/api/requests/payloads/LoginRequest';
import {LoginResponse} from '../../core/structures/api/responses/payloads/LoginResponse';
import {G... |
<reponame>maybesmurf/talk
import { createCacheUrl } from "@ampproject/toolbox-cache-url";
import builder from "content-security-policy-builder";
import { compact, flatten } from "lodash";
import { AppOptions } from "coral-server/app";
import { getOrigin, prefixSchemeIfRequired } from "coral-server/app/url";
import { C... |
// Copyright (c) 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as Common from '../../../../core/common/common.js';
import * as i18n from '../../../../core/i18n/i18n.js';
import * as LitHtml from '../../..... |
<reponame>zamnuts/nodejs-logging<gh_stars>0
// Copyright 2015 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... |
<reponame>m-pa/CovMapper<gh_stars>0
import { Reducer } from "./reduxHelper";
import { GeoJSON } from "geojson";
import { Mappable, LayerGroup } from "../app-config.types";
import { config } from "app-config/index";
const defaultVisual = config.visuals[config.defaultVisual];
const defaultLayerGroup = defaultVisual.lay... |
<filename>src/app/dashboard/dashboard.component.testbed.spec.ts
import {By} from '@angular/platform-browser';
import {Router} from '@angular/router';
import {NO_ERRORS_SCHEMA} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {async, inject, ComponentFixture, TestBed} from '@angular/core/tes... |
import React, { Dispatch, FC, useState } from 'react'
import Web3Integrate from '../../../services/web3-integrate'
import { connect } from 'react-redux'
import { IState } from '../../../state/types'
import TransactionUtils from '../../../services/transactionUtils'
import TransactionMonitor from '../../transactionMonito... |
import {
ILabShell,
ILayoutRestorer,
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import {
ICommandPalette,
MainAreaWidget,
WidgetTracker,
showDialog,
Dialog
} from '@jupyterlab/apputils';
import { ReadonlyJSONObject } from '@lumino/coreutils';
import { ITranslator } fro... |
import React, { FC, MutableRefObject, useMemo, useRef, useState } from 'react';
import {
NativeSyntheticEvent,
Text,
TextInput,
TextInputSelectionChangeEventData,
View
} from 'react-native';
import { MentionInputProps, MentionPartType, Suggestion, PartData, Part } from '../types';
import {
defaultMentionTe... |
import React, { useEffect, useState } from "react";
import {
Dimensions,
FlatList,
StyleSheet,
TouchableOpacity,
View
} from "react-native";
import AntDesign from "react-native-vector-icons/AntDesign";
import Ionicons from "react-native-vector-icons/Ionicons";
import { requests } from "../../api/requests";
import ... |
<filename>core/src/entities/Amount.ts
import JSBI from "jsbi";
import { Fraction, IFraction } from "./fraction/Fraction";
import Big from "big.js";
import { isAssetAmount } from "./AssetAmount";
import { decimalShift, floorDecimal } from "../utils/decimalShift";
export type IAmount = {
// for use by display lib and ... |
import {ResourceGraphModels} from '@azure/arm-resourcegraph';
import {ResourceManagementClient} from '@azure/arm-resources';
import {DefaultAzureCredential, TokenCredential} from '@azure/identity';
import JMESPath = require('jmespath');
import {
BaseRule,
RuleType,
Evaluation,
isRequestEvaluation,
HttpMethod... |
import {
ComponentConfigTypes,
NODE_PROPS_TYPES,
PROPS_TYPES,
} from '@brickd/react'
const Option = {
value: {
label: 'value',
type: PROPS_TYPES.string,
},
disabled: {
label: '禁用',
type: PROPS_TYPES.boolean,
},
children: {
label: 'children',
type: PROPS_TYPES.objectArray,
},
}
const Cascader: Comp... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable, from } from 'rxjs';
import { environment } from '../environments/environment';
import {
catchError,
debounceTime,
flatMap,
map,
} from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
expo... |
import * as parse from "co-body";
import * as forms from "formidable";
import { Context } from "koa";
declare module "koa" {
export interface Context {
disableBodyParser?: boolean;
}
export interface Request {
rawBody: string;
body: any;
}
}
/**
* The options
*
* - {numbe... |
<reponame>gqshell/ExpressiveAnimator
/*
* Copyright 2021 Zindex Software
*
* 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 ... |
/// <reference path="../typings/index.d.ts" />
/// <reference path="./sab.d.ts" />
import { html } from 'snabbdom-jsx';
import * as snabbdom from 'snabbdom';
import { routeMatcher, RouteMatcher } from 'route-matcher';
import * as _ from 'lodash';
import snab_class from 'snabbdom/modules/class'; // makes it e... |
<reponame>CoolDarran/surgio<gh_stars>1-10
import { NowRequest, NowResponse } from '@now/node/dist';
import path from 'path';
import Koa from 'koa';
import Router from 'koa-router';
import util from 'util';
import { DEP001 } from '../misc/deprecation';
import { CommandConfig, CreateServerOptions } from '../types';
impo... |
import { Router,ActivatedRoute } from '@angular/router';
import { Component, OnInit, ViewContainerRef, ViewChild, Directive, ElementRef, HostBinding, HostListener, Input } from '@angular/core';
import { I18NService, MsgBoxService, HttpService, Utils } from 'app/shared/api';
import { ConfirmationService, ConfirmDialogMo... |
// SPDX-FileCopyrightText: 2022 <NAME> (GFZ) <<EMAIL>>
// SPDX-FileCopyrightText: 2022 <NAME> (dv4all)
// SPDX-FileCopyrightText: 2022 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
// SPDX-FileCopyrightText: 2022 <NAME> (GFZ) <<EMAIL>>
// SPDX-FileCopyrightText: 2022 dv4all
//
// SPDX-License-Id... |
<reponame>John-Cassidy/angular
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Represents a big integer using a buffer of its individual digits, with the leas... |
import * as fs from 'fs';
import * as path from 'path';
import * as _ from 'lodash';
import * as minimist from 'minimist';
import * as inquirer from 'inquirer';
import { Table } from 'console-table-printer';
import { Message, MessageType, ProcessFileRecord } from './System.types';
import Process from './Process';
impo... |
<reponame>scarletrain77/Test
class Button extends egret.DisplayObjectContainer {
private _body: egret.Shape;
private _name: egret.TextField;
constructor(x: number, y: number, name: string) {
super();
this.x = x;
this.y = y;
var widthRec = 300;
var heightRec = 200;
... |
import G6 from '@antv/g6';
import merge from 'lodash/merge';
import isArray from 'lodash/isArray';
import {
CustomNode,
GGroup,
Item,
NodeModel
} from 'gg-editor/lib/common/interfaces';
import { setAnchorPointsState, constants } from 'gg-editor';
import { optimizeMultilineText, textMetrics } from '../utils';
im... |
import React, {
forwardRef,
useImperativeHandle,
useMemo,
useRef,
useState,
} from "react";
import {
ViewStyle,
Animated,
PanResponder,
Keyboard,
StyleProp,
LayoutAnimation,
useWindowDimensions,
} from "react-native";
import PickerScreen from "./PickerScreen";
export type ListTypes = "flatList"... |
// This software or document includes material copied from
// or derived from "CSS Color Module Level 4" Working Draft
// Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).
// https://github.com/w3c/csswg-drafts/blob/ef1feeb4d3046a7741a7240a263fe51bd0936906/css-color-4/conversions.js.
import { assert } from 'http... |
<reponame>lukszy-dev/kangaroo
import Snippet, { SnippetInterface, sourceType } from 'models/Snippet';
import { AppThunk } from 'store/types';
import { setLoading } from 'store/ui/actions';
import { setGitHubDataAction } from 'store/auth/actions';
import { snippetsDb } from 'db/snippets';
import { sortById } from 'utils... |
import { ITypedHash } from "@pnp/common";
import { body } from "@pnp/odata";
import {
_SharePointQueryableInstance,
_SharePointQueryableCollection,
spInvokableFactory,
IDeleteable,
deleteable,
} from "../sharepointqueryable";
import { metadata } from "../utils/metadata";
import { defaultPa... |
import { XeroClient } from "../XeroClient";
const tokenSetJson = require("./mocks/tokenSet.json");
const refreshedTokenSetJson = require("./mocks/refreshedTokenSet.json");
const connectionsResponse = require("./mocks/connectionsResponse.json");
const getOrganisationResponse = require("./mocks/getOrganisationRespons... |
import axios, { AxiosRequestConfig, AxiosResponse, CancelTokenSource } from 'axios';
import Vue, { PluginObject } from 'vue';
import { RequestConfig } from '../http/rest';
import uuid from '../uuid/uuid';
import { ModulVue } from '../vue/vue';
const DEFAULT_STORE_NAME: string = 'DEFAULT';
export interface MFile {
... |
import React, { Component } from 'react';
import fscreen from 'fscreen';
import { connect, ConnectedProps } from 'react-redux';
import { setResolution } from '../slices/devices';
import { disableRemoteVideo, enableRemoteVideo, Feed } from '../slices/feeds';
import { RESOLUTIONS } from '../mediaUtils';
import { RootStat... |
/* eslint-disable no-param-reassign */
import { Point2D } from '../types/geometry'
import { TextOptions, LineOptions, LineCap } from '../types/canvas'
export const lineCapToCanvasLineCapMap: { [cap in LineCap]: string } = {
[LineCap.FLAT]: 'butt',
[LineCap.ROUND]: 'round',
}
/**
* Readjusts the dimensions of `c... |
<gh_stars>1-10
import {
ChainId,
CHAIN_ID_ETH,
CHAIN_ID_POLYGON,
CHAIN_ID_TERRA,
CHAIN_ID_AVAX,
CHAIN_ID_BSC,
} from "@certusone/wormhole-sdk";
export const EVM_POLYGON_NETWORK_CHAIN_ID = 80001;
export const EVM_ETH_NETWORK_CHAIN_ID = 5;
export const EVM_AVAX_NETWORK_CHAIN_ID = 43113;
export const EVM_BSC_... |
<gh_stars>0
import { DFUSE_API_KEY, runMain, DFUSE_API_NETWORK } from "../config"
import {
createDfuseClient,
waitFor,
Stream,
DfuseClient,
dynamicMessageDispatcher,
ProgressInboundMessage,
ActionTraceInboundMessage,
Action,
} from "@dfuse/client"
/**
* In this example, we will showcase how to impleme... |
<gh_stars>0
import * as gulp from 'gulp';
import * as fs from 'fs';
import * as zip from 'gulp-zip';
import * as ts from 'gulp-typescript';
// @ts-ignore
import * as jsonModify from 'gulp-json-modify';
const exec = require('child_process').exec;
const translationFolder = 'translate';
const tsBackendProject = ts.crea... |
import { EventsKey } from 'ol/events';
import BaseEvent from 'ol/events/Event';
import { Geometry } from 'ol/geom';
import { ObjectEvent } from 'ol/Object';
import { TileSourceEvent } from 'ol/source/Tile';
import VectorSource, { Options as VectorSourceOptions, VectorSourceEvent } from 'ol/source/Vector';
export type ... |
<gh_stars>0
import { Message, MessageEmbed, MessageReaction } from "discord.js";
import minimist from 'minimist';
import * as ut from '../utils';
import { Command } from '../command'
export let command: Command = new Command(poll, new MessageEmbed({
color: 0xffb900,
title: 'Poll',
description: 'Creates a t... |
import * as tl from "azure-pipelines-task-lib/task";
import { IAzureMetricAlertRule, AzureEndpoint, IAzureMetricAlertRequestBody } from 'azure-arm-rest-v2/azureModels';
import {AzureMonitorAlerts} from 'azure-arm-rest-v2/azure-arm-appinsigths-alerts';
import {Resources} from 'azure-arm-rest-v2/azure-arm-resource';
impo... |
/* eslint-disable no-eval */
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { useSpring, animated } from 'react-spring';
import fse from 'fs-extra';
import { Core } from 'arvis-core';
import pDebounce from 'p-debounce';
import Spinner from '../searchWindowSpinner';
import { QuicklookWeb... |
import React, { useState, useEffect } from 'react';
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
import { Carousel } from 'tuya-panel-kit';
import { ClassicIconBackground, Background } from 'tuya-panel-style-icon-background';
import { Utils } from 'tuya-panel-utils';
import { splitArr } from... |
<reponame>LibrexApp/react-native-lightbox<filename>src/hooks/use-gesture.ts
import { useRef } from "react";
import {
GestureResponderEvent,
PanResponderGestureState,
Dimensions,
Animated,
} from "react-native";
// ------------------------- default vars ------------------------
const now = () => +new Date();
... |
<reponame>donmahallem/TrapezeApiExpressRoute
/*!
* Source https://github.com/donmahallem/TrapezeApiExpressRoute
*/
import { expect } from "chai";
import * as express from "express";
import "mocha";
import * as sinon from "sinon";
import * as supertest from "supertest";
import { createTrapezeApiRoute } from "./api-ro... |
import { crsdb, Campus, Campus_Formatted } from "./crsdb"
import { Course, CourseSection, CourseSectionsDict, Timeslot, CourseSelection } from "./course"
import { store, view, batch } from "react-easy-state"
import { crs_arrange, SearchPrefs, DayLengthPreference, TimePreference } from "./schedule";
export enum Sectio... |
import {
AutoMode,
CropMode,
FitMode,
ImageFormat,
ImageUrlBuilderOptions,
ImageUrlBuilderOptionsWithAliases,
Orientation,
SanityClientLike,
SanityImageSource,
SanityProjectDetails,
} from './types'
import urlForImage, {SPEC_NAME_TO_URL_NAME_MAPPINGS} from './urlForImage'
const validFits = ['clip',... |
import React, { useContext, useState } from 'react'
import { ThemeContext } from 'styled-components'
import { toast } from 'react-hot-toast'
import * as s from './styles'
import CodeEditor from './code-editor'
import { buildFnCodeValidator, buildFnCallValidator } from './validators'
import {
buildFnCodeDecomposer,
... |
<reponame>PhysicistSouravDas/multivariate_calculus<filename>src/core/math/numerical.ts
import { MathContext } from "./context";
import { Component } from "./component";
import { mathenv } from "../env";
/**
* Uses the Newton-Raphson algorithm to find the root of a given equation.
* The exact derivative (found analyti... |
<filename>src/ts-mockito.ts
import {
ArgCaptor,
ArgCaptor1,
ArgCaptor10,
ArgCaptor2,
ArgCaptor3,
ArgCaptor4,
ArgCaptor5,
ArgCaptor6,
ArgCaptor7,
ArgCaptor8,
ArgCaptor9,
} from "./capture/ArgCaptor";
import {AnyFunctionMatcher} from "./matcher/type/AnyFunctionMatcher";
import ... |
import { IUser, IAuth, IAuthSettings, AdditionalUserInfo, ActionCodeInfo, ActionCodeInfoOperation, UserCredential, UserProfileChangeRequest, IUserMetadata, IUserInfo, IActionCodeSettings, IAuthCredential, IOAuthCredential, IAuthTokenResult } from './common';
import { Firebase, FirebaseApp } from '@nativescript/firebase... |
<gh_stars>10-100
import { join, dirname } from 'path';
import fs from 'fs-extra';
import glob from 'glob';
import assign from 'object-assign';
import { merge } from '../src/utils';
import { build, clean, DoolConfig } from '../src';
function assert (actualDir: string, expectPath: string): void {
const expectDir = joi... |
import { getCodeAction, toFormattedString } from '../utils'
import { LintConfig } from '../types/Config'
import { GetFormattedString } from '../types/Formattable'
import { FunctionInfo } from '../types/FunctionInfo'
import { GameMode } from '../types/GameMode'
import { ErrorCode } from '../types/ParsingError'
import { ... |
/*
* 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 ... |
import { Injectable, OnDestroy } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { webSocket, WebSocketSubject } from 'rxjs/webSocket';
import * as moment from 'moment';
import { environment, ErrorHandlingService } from '@mlchat-poc/frontend-tools';
import { catchError, delay, retryWhen,... |
import { EventDispatcher } from "xengine/events/EventDispatcher";
import { Timer } from "xengine/utils/Timer";
import Module, { ModuleClass } from "./Module";
import { Nullable } from "xengine/events/HashObject";
import Storage from "xengine/storage/Storage";
import Messenger from "xengine/events/Messenger";
import Gam... |
<reponame>CodeRhymesLife/medical-model-management-apis
import { Request } from 'express';
import kue from 'kue';
import { InstanceType } from 'typegoose';
import config from '../../../config/config';
import { logger, createReqLogger } from '../../../config/winston';
import { Mesh, MeshModel } from '../meshes.model';
... |
<gh_stars>0
interface PerStar {
get_star_ts: string;
}
interface User {
completion_day_level: {[key0: number]: { [key1: number]: PerStar }};
last_star_ts: number;
stars: number;
local_score: number;
global_score: number;
id: number;
name: string | null;
}
interface Leaderboard {
owner_id: number;
members: {... |
<filename>src/keyring/keyring.ts
import { CryptoStorage } from '../crypto-storage/crypto-storage';
import { Keys } from '../keys/keys';
import { NaCl } from '../nacl/nacl';
import { Utils, Base64 } from '../utils/utils';
import { NaClDriver } from '../nacl/nacl-driver.interface';
interface KeyRecord {
pk: Base64;
... |
import { memo, useState, useEffect, useMemo, useRef } from "react";
import { makeStyles } from "./theme";
import arrowSvg from "./assets/svg/next.svg";
import closeSvg from "./assets/svg/cancel.svg";
import { ReactSVG } from "react-svg";
import { useConstCallback } from "powerhooks/useConstCallback";
import { useCallba... |
<reponame>tutttuwi/ang-fnt-suumo<gh_stars>1-10
import { Component, OnInit } from '@angular/core';
import { Property } from '../property/property';
import { PropertyServiceService } from '../property-service.service';
import { FormControl, FormGroup, Validators } from '@angular/forms';
const cautionTemplete = `<div cla... |
import { BinderPlugin, BinderTools } from "../binderTypes";
import { moveAction, DataMover } from "./swapperMoveSubplugin.js";
// Just for testing....
let storage = window.localStorage;
let doc = document;
const swapped = new Array<Swapped>();
const PREFIX = "swap-element-parent-id-for-";
const actions: Array<ActionF... |
import { ContentFeed, ProgramTrack, WatchedItems } from "@clowdr-app/clowdr-db-schema";
import { DataDeletedEventDetails, DataUpdatedEventDetails } from "@clowdr-app/clowdr-db-schema/build/DataLayer/Cache/Cache";
import { CancelablePromise, makeCancelable } from "@clowdr-app/clowdr-db-schema/build/Util";
import React, ... |
<gh_stars>1-10
import * as path from 'path'
import { Arg, getArg } from './arg'
import { OptionExpectedValueError, OptionInvalidValueError, OptionValidationError } from './errors'
import { isLong, strip } from './util'
// help text spacings
const left = 5
const middle = 22
export class Option<T> {
arg: Arg<T>
lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.