text stringlengths 3.3k 33k |
|---|
import { Arr, Fun, Result } from '@ephox/katamari';
import * as AsyncActions from '../pipe/AsyncActions';
import * as GeneralActions from '../pipe/GeneralActions';
import { DieFn, NextFn, Pipe, RunFn } from '../pipe/Pipe';
import { addLogging, GuardFn } from './Guard';
import { Pipeline } from './Pipeline';
import { S... |
import { NetworkInfo, HttpStatusReply } from "@/store/http-types";
import { ServiceInfo, PortalEnv, Schedules, Schedule, StationSyncStatus, PhoneNetwork, StationPortalStatus, PortalError } from "./types";
import { IBackOffOptions } from "exponential-backoff";
export enum ActionTypes {
LOAD = "LOAD",
SAVE = "SA... |
<filename>customers/customer-list/customer-list.component.ts
import { ChangeDetectorRef, Component, OnInit, ViewChild } from "@angular/core";
import { ObservableArray } from "data/observable-array";
import { RouterExtensions } from "nativescript-angular/router";
import {
ListViewEventData, ListViewLinearLayout, Lis... |
import * as bitcoin from 'bitcoinjs-lib'
import request from '../helpers/request'
import bitcoinUtils from '../../../../common/utils/bitcoin'
import BigNumber from 'bignumber.js'
import debug from 'debug'
const BITPAY = `https://api.bitcore.io/api/BTC/testnet`
const BITPAY_MAIN = `https://api.bitcore.io/api/BTC/mainne... |
<filename>src/assets/js/custom_models/feature/custom/SplotTransformer.ts
/**
* @author <NAME> <<EMAIL>>
*/
import { mxgraphFactory } from 'ts-mxgraph';
const {
mxCellAttributeChange, mxUtils,
} = mxgraphFactory({ mxLoadResources: false, mxLoadStylesheets: false });
export class SplotTransformer {
public static... |
<reponame>Augly/bee-js<filename>test/utils.ts
import { Readable } from 'stream'
import type { BeeGenericResponse, Reference, Address, BatchId } from '../src/types'
import { bytesToHex, HexString } from '../src/utils/hex'
import { deleteChunkFromLocalStorage } from '../src/modules/debug/chunk'
import { BeeResponseError ... |
<reponame>weimobGroup/WeConsole
import { isEmptyObject } from '@mpkit/util';
import { each } from '../../modules/util';
import { MethodExecStatus, RequireId } from '../../types/common';
import { MpUIConfig } from '../../types/config';
import { MpApiMaterial, MpConsoleMaterial, MpConsoleMaterialItem, MpProduct } from '.... |
/* eslint-disable indent */
import { Color } from 'tvision-color';
export type TColorToken = Record<string, string>;
export type TColorSeries = Record<string, TColorToken>;
export const defaultLightColor = [
'#0052d9',
'#0594fa',
'#00a870',
'#ebb105',
'#ed7b2f',
'#e34d59',
'#ed49b4',
'#834ec2',
];
exp... |
// @ts-nocheck
import * as parserModule from 'acorn';
const PARSER = parserModule.Parser;
import * as jsx from 'acorn-jsx';
const JSXPARSER = PARSER.extend(jsx());
import * as fs from 'fs';
import * as path from 'path';
// CONSTANTS
const JSXTEXT: string = 'JSXText';
const JSXELEMENT: string = 'JSXElement';
const JSX... |
import GL from '@luma.gl/constants';
import {Geometry} from '@luma.gl/core';
import {
Accessor,
Color,
CompositeLayer,
CompositeLayerProps,
COORDINATE_SYSTEM,
FilterContext,
GetPickingInfoParams,
Layer,
LayersList,
log,
PickingInfo,
UpdateParameters,
Viewport,
DefaultProps
} from '@deck.gl/... |
<gh_stars>1-10
import { homedir } from "os"
import { BRISPELL, IWordleValidation, UNVERSEDV2, Word } from "@andsfonseca/palavras-pt-br";
import { View } from "./view";
import chalk from "chalk";
const clipboardy = require('clipboardy');
const storage = require('node-persist');
export abstract class Game {
privat... |
import React, { useState } from 'react';
import { FieldArray, FieldArrayRenderProps, useFieldArray } from 'react-final-form-arrays';
import { Field } from 'react-final-form-html5-validation';
import { OnChange } from 'react-final-form-listeners';
import styled from 'styled-components';
import { getERC20ContractWrapper... |
import {
AbstractElement,
Icon,
icon as fontAwesomeIcon,
IconLookup,
IconParams,
toHtml,
} from '@fortawesome/fontawesome-svg-core'
export type IconQuery = IconLookup | [IconLookup, IconParams];
export type IconDescriptor = IconQuery | Icon;
export type IconDescriptors = IconDescriptor[] | { [i... |
import { Event, Integration, WrappedFunction } from '@sentry/types';
import { isString } from './is';
/** Internal */
interface SentryGlobal {
Sentry?: {
Integrations?: Integration[];
};
SENTRY_ENVIRONMENT?: string;
SENTRY_DSN?: string;
SENTRY_RELEASE?: {
id?: string;
};
__SENTRY__: {
global... |
export interface NativeResponse<D> {
code: number;
data: D;
}
export interface NativeMethodTypes {
'10000': {
params: any;
response: any;
};
'10001': {
params: any;
response: any;
};
// pages/invoice/invoice
'10002': {
params: any;
response: any;
};
// packages/order/selectOrder/selectOrder
'10... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import {
ColumnActionsMode,
DetailsList,
DetailsListLayoutMode,
IColumn,
SelectionMode
} from '@fluentui/react/lib/DetailsList';
import { Text } from '@fluentui/react/lib/Text';
import autobind from 'autobind-decorator';
imp... |
<filename>src/app/components/iot-pipeline/pipeline-inferencing/pipeline-inferencing.component.ts<gh_stars>0
import { Component, OnChanges, OnInit, Input, SimpleChanges } from '@angular/core';
import { MatTreeNestedDataSource } from '@angular/material/tree';
import { NestedTreeControl } from '@angular/cdk/tree';
import... |
import React, { Component } from 'react';
import { Card, Dialog, Grid, Message, Icon } from '@b-design/ui';
import type {
ApplicationComponent,
Trigger,
ApplicationDetail,
} from '../../../../interface/application';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { momentDate } from '../../../..... |
<reponame>eoogbe/grpc-node<gh_stars>1-10
/*
* Copyright 2019 gRPC authors.
*
* 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
*
* Unle... |
import * as React from "react";
interface StarProps {
width: React.ReactText;
height: React.ReactText;
fill: string;
title?: string;
}
export const SVGStarHollow: React.FunctionComponent<StarProps> = (props: StarProps): React.ReactElement<void> => {
return (
<svg
className="cus... |
<filename>src/index.ts
import * as PIXI from "pixi.js";
import { Sprite, TextStyle, Container, PIXIText } from "../src/utils/overloadedClasses";
import { State, Keyboard, hitTestRectangle, incrementor, randomInt, contain } from "../src/utils/helper";
import "./style.css";
const Application = PIXI.Application,
load... |
<reponame>kylebarron/snap-features-to-tin<gh_stars>10-100
import { PointZ, Point, TriangleZ, LineSegment, FloatArray } from "./types";
export function interpolateTriangle(
point: Point,
triangle: TriangleZ
): PointZ | null {
const az = triangle[2];
const bz = triangle[5];
const cz = triangle[8];
// Find t... |
<filename>src/renderer/nodes/Element.ts
import { ElementClassArgumentType, ElementClassInstantiateArgumentType } from "./ElementClass";
import ErrorNode from "./ErrorNode";
import escapeHtml from "./escapeHtml";
import HtmlNode from "./HtmlNode";
import Node from "./Node";
import TextNode from "./TextNode";
interface ... |
/**
* 販売者ルーター
*/
import { chevre } from '@cinerino/sdk';
import { Request, Router } from 'express';
// tslint:disable-next-line:no-implicit-dependencies
import { ParamsDictionary } from 'express-serve-static-core';
import { body, validationResult } from 'express-validator';
import { BAD_REQUEST, INTERNAL_SERVER_ERROR... |
import request from 'request-promise';
import { Logger, LoggerService } from '../../utils/logger.js';
import { Common, CommonService } from '../../utils/common.js';
import { Database, DatabaseService } from '../../utils/database.js';
import { CollectionFieldsEnum, CollectionsEnum, Offer } from '../../models/database.mo... |
// Copyright (C) 2018 The Android Open Source Project
//
// 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 applic... |
import utils from './utils'
import estimateGuesses from './estimate'
import { MIN_GUESSES_BEFORE_GROWING_SEQUENCE } from '../data/const'
import { MatchExtended, BruteForceMatch } from '../types'
const scoringHelper = {
password: '',
optimal: {} as any,
excludeAdditive: false,
fillArray(size: number, valueType:... |
<reponame>PhilippvK/minigolf<gh_stars>1-10
import { rgbToLong } from '../utils/color';
import { GAME_HEIGHT, GAME_WIDTH, HALF_BALL, TILE_SIZE } from './constants';
import { drawDashedLine, drawLine } from './draw';
import { MinigolfMap } from './minigolfMap';
import { getPlayerPos, getStrokePower, setPlayerPosRel, setP... |
import { SyntaxIcon } from '@/components/icon';
import { TASK_TYPE_ENUM, CREATE_MODEL_TYPE, ID_COLLECTIONS } from '@/constant';
import type { CatalogueDataProps, IOfflineTaskProps } from '@/interface';
import {
UploadOutlined,
LoginOutlined,
SwapOutlined,
FormatPainterOutlined,
} from '@ant-design/icons';
import mo... |
import bindings from "bindings";
import * as fs from "fs";
import * as os from "os";
import { Readable } from "stream";
import WebrtcVad from "webrtcvad";
import uuid from "uuid/v4";
import SileroVad from "./vad";
const portAudioPath = `${__dirname}/../build/Release/portaudio.node`;
let portAudioBindings: any;
if (fs.... |
import {
Injectable,
Logger,
NotFoundException,
BadRequestException,
Inject,
} from '@nestjs/common';
import { createDecipheriv, createHash } from 'crypto';
import { XMLParser } from 'fast-xml-parser';
import FormData from 'form-data';
import fetch from 'node-fetch';
import qs from 'query-string';
import {
... |
import * as React from 'react';
/* global fetch:false */
export type Flags = { [key: string]: boolean | number | string | undefined };
export type FlagConfig<F extends Flags = Flags> = {
/**
* Your HappyKit Flags Client Id.
*
* It should look similar to `flags_pub_277203581177692685`.
*
* You can us... |
import Cesium, { ScreenSpaceEventType, ScreenSpaceEventHandler } from 'cesium'
import { pickedObjectEquals } from './util'
export type EventType =
| 'onClick'
| 'onDoubleClick'
| 'onMouseDown'
| 'onMouseUp'
| 'onMiddleClick'
| 'onMiddleDown'
| 'onMiddleUp'
| 'onMouseMove'
| 'onPinchEnd'
| 'onPinch... |
import * as JsPDF from 'jspdf';
export interface IPrintConfig {
document?: Document;
window?: Window;
}
export interface ISrcDstPair {
src: HTMLElement;
dst: HTMLElement;
}
function getBinaryPromise(url: string): Promise<string> {
return new Promise<string>((resolve) => {
const xhr = new XMLHttpRequest(... |
<reponame>doverpublic/dds-launchpad-iiot-cloud
import { Component, OnInit ,Output,EventEmitter,ViewChild,ElementRef,NgZone} from '@angular/core';
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
import { MouseEvent } from '@agm/core';
import { FormBuilder, FormGroup, Validators, FormControl, Val... |
<gh_stars>0
import { accessSync, F_OK, readFileSync, writeFileSync } from 'fs';
import { dirname, join } from 'path';
import * as glob from 'glob';
import { dest, src, start, task } from 'gulp';
import * as gulpif from 'gulp-if';
import * as watch from 'gulp-watch';
import { template } from 'lodash';
import * as rollu... |
type Color = 0 | 1 | 2
const RED = 0
const BLACK = 1
const NIL = 2
const DELETE = 0
const KEEP = 1
const NOT_FOUND = 2
interface TreeNode {
max: number
low: number
high: number
color: Color
parent: TreeNode
right: TreeNode
left: TreeNode
list: number[]
}
interface Tree {
root: TreeNode
size: numb... |
// <copyright file="configure-preference.tsx" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
import * as React from "react";
import { Flex, Text, Loader, Dropdown } from '@fluentui/react-northstar'
import * as microsoftTeams from "@microsoft/teams-js";
import { getBaseUrl } from... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
import { Module } from 'vuex';
import { Employee, TeamMember } from '@/types/Employee';
import axios from 'axios';
export enum SearchTypes {
SKILL... |
<filename>src/src/render/element-structure-abstract.ts
import { isNullOrUndefined } from "util";
import { RenderHelper } from "./render-helper";
import { IScope } from "../page/interfaces/scope.interface";
import { Directive } from "../directives/abstracts/directive";
import { IterationDirective } from "../directives/a... |
interface customMap {
xAxis: number[];
yAxis: number[];
}
interface QueNode {
value: any;
next: QueNode | null;
}
interface Queue {
first: QueNode | null;
last: QueNode | null;
}
interface BinaryPartitionTree {
value: customMap;
left: BinaryPartitionTree | null;
right: BinaryPartitionTree | null;
}... |
import axios from "axios";
/** interface describing the commit data we will recieve from github */
interface IQueryCommitDate {
committedDate: string;
}
/** simple interface to make nesting in {@link IGithubQueryResult} a little better */
interface IQueryRepository {
/** name of the repository */
name: string;
... |
// Copyright 2017-2020 @canvas-ui/app-execute authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { Code } from '@canvas-ui/apps/types';
import { AccountId } from '@polkadot/types/interfaces';
import { ComponentProps as Props } from './types';
import BN from 'bn.js';
import React, { useCallback, useE... |
<reponame>prototypicalpro/compile-badges
import * as core from '@actions/core'
import * as fs from 'fs'
import {promisify} from 'util'
import {pipeline} from 'stream'
import fetch from 'node-fetch'
import * as path from 'path'
import * as mime from 'mime-types'
import * as urlLib from 'url'
import compile from 'string-... |
// Copyright 2016 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 Host from '../../core/host/host.js';
import * as i18n from '../../core/i18n/i18n.js';
i... |
import DataConfig from '../constants/DataConfig';
import Alarms from '../constants/Alarms';
import VentilationModes from '../constants/VentilationModes';
import SetParameter from '../interfaces/SetParameter';
import { BreathingPhase } from '../enums/BreathingPhase';
import DataLogger from './DataLogger';
let pressureG... |
<filename>src/planning/plan/suggestion.ts<gh_stars>0
/**
* @license
* Copyright (c) 2018 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional... |
<filename>utils/code.ts<gh_stars>0
export const CODE =
`<div class="h-full overflow-hidden grid place-items-center">
<div class="p-6 relative mx-4 bg-white text-gray-700 dark:text-slate-200 dark:bg-dark-800/99 shadow-xl ring-1 ring-dark-900/6 dark:ring-white/10 sm:max-w-lg sm:mx-auto sm:rounded-lg">
<div class=... |
import R from 'ramda';
import pMapSeries from 'p-map-series';
import { Scope } from '..';
import { Remotes } from '../../remotes';
import enrichContextFromGlobal from '../../hooks/utils/enrich-context-from-global';
import { BitId, BitIds } from '../../bit-id';
import VersionDependencies from '../version-dependencies';
... |
<gh_stars>1-10
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { nativeFocus } from "keyborg";
import { FocusedElementState } from "./State/FocusedElement";
import { getTabsterOnElement } from "./Instance";
import { Keys } from "./Keys";
import { RootAPI ... |
import sleep from 'delay'
import run = require('promisify-tuple')
const crypto = require('crypto')
const Pushable = require('pull-pushable')
const Notify = require('pull-notify')
const explain = require('explain-error')
const debug = require('debug')('ssb:dht-invite')
const pRetry = require('p-retry')
type Seed = stri... |
<gh_stars>0
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
Project,
PropertyDeclarationStructure,
ClassDeclaration,
SourceFile
} from "ts-morph";
import { ClientDetails } from "../models/clientDetails";
import {
addOperationSpecs,
writeOperations,
writeGetOperationOpt... |
<reponame>UrielCh/node-dev-input-reader<gh_stars>0
import fs, { ReadStream } from 'fs';
import { EventEmitter } from 'events';
import KeysCodes from './KeysCodes';
import delay from './delay';
import { KbEvent2, JsEvent, KbEvent } from './InputInterfaces';
import UnixTimeval from './UnixTimeval';
import { SUPPORTED_USB... |
<gh_stars>1-10
import path from "path";
import { getBrowser } from "./browser";
import { serializeCSSRules, deepMergeRules } from "css-sniff";
import jsxtojson from "jsx2json";
import {
formatById,
isString,
getTemplateCSSRules,
AnyObject,
OnElement,
OnCloseElement,
OnText,
OnVariable,
OnSerialize,
... |
<reponame>jsbrain/prisma-nestjs-graphql
import { ok } from 'assert';
import JSON5 from 'json5';
import { castArray, remove, trim } from 'lodash';
import {
ClassDeclarationStructure,
CommentStatement,
DecoratorStructure,
ExportSpecifierStructure,
ImportDeclarationStructure,
ImportSpecifierStructu... |
// Copyright (c) 2019 Shellyl_N and Authors
// license: ISC
// https://github.com/shellyln
import { TypeAssertion,
TypeAssertionMap,
TypeAssertionSetValue,
ObjectAssertion,
AssertionSymlink,
SymbolResolverOperators,
ResolveSymbolOptions,
SymbolResolverCon... |
import { Engine, GameObject, State, UIManager } from "../../tsthree";
import { tsthreeConfig as PIXIConfig } from "../../config/tsthreeConfig";
import { Debug3DComponent, Debug3DShapes } from "../../engine/Components/Debug3DComponent";
import {Camera, MeshBasicMaterial, Object3D, Raycaster, Vector2} from "three";
impor... |
import { OData } from "../../..";
export type TokenFilterName = PrebuiltTokenFilterName | string;
export type TokenFilter = PatternReplaceTokenFilter
| AsciiFoldingTokenFilter
| CjkBigramTokenFilter
| CommonGramTokenFilter
| DictionaryDecompounderTokenFilter
| EdgeNGramTokenFilter
| ElisionTokenFilter
| ... |
import { Meteor } from 'meteor/meteor'
import {
ProtectedString,
mongoWhere,
isProtectedString,
unprotectString,
getRandomId,
protectString,
clone,
asyncCollectionRemove,
asyncCollectionInsert,
asyncCollectionUpdate,
asyncCollectionFindFetch,
mongoModify,
mongoFindOptions,
DBObj,
compareObjs,
waitForPro... |
import { BigNumber, ethers } from "ethers";
import Image from "next/image";
import { Dispatch, SetStateAction, useEffect, useState } from "react";
import { Dropdown } from "react-dropdown-now";
import { InputValue, Option } from "react-dropdown-now/dist/types";
import {
BondingShare__factory,
Bonding__factory,
Ub... |
<filename>src/utils/utils.tsx<gh_stars>0
import { useCallback, useEffect, useMemo, useState } from 'react';
import { PublicKey } from '@solana/web3.js';
import BN from 'bn.js';
import { MintInfo } from "@solana/spl-token";
import { PoolInfo, TokenAccount } from "../models";
import { TokenInfo } from "@solana/spl-token-... |
/**
* Copyright 2020 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 required by applicable law or agreed to... |
<filename>scripts/ci/pr-bot/updateReviewers.ts<gh_stars>0
/*
* 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 unde... |
/**
* Styles
*/
import { css, cx, keyframes } from '@leafygreen-ui/emotion';
import { createUniqueClassName } from '@leafygreen-ui/lib';
import { uiColors } from '@leafygreen-ui/palette';
import { fontFamilies, typeScales } from '@leafygreen-ui/tokens';
import { isArray } from 'lodash';
import { ComboboxSize, Overfl... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { inject, injectable } from 'inversify';
import { ConfigurationChangeEvent, NotebookDocument, Uri } from 'vscode';
import { IExtensionSyncActivationService } from '../../../activation/types';
import { IP... |
/**
* @jest-environment jsdom
*/
// These tests are inspired by
// https://github.com/ProseMirror/prosemirror-collab/blob/b053a302b12937f80cd4d0c92847b058eb5addcb/test/test-collab.js
import { BaseSession, createAuthClient, createAuthService } from '@syncot/auth'
import { Connection, createConnection } from '@syncot... |
/**
* Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eithe... |
export type ItemId =
| "lunar-totem-1"
| "lunar-totem-2"
| "lunar-totem-3"
| "lunar-totem-4"
| "neodymium-medallion-1"
| "neodymium-medallion-2"
| "neodymium-medallion-3"
| "neodymium-medallion-4"
| "beak-of-midas-1"
| "beak-of-midas-2"
| "beak-of-midas-3"
| "beak-of-midas-4"
| "light-of-eggen... |
import {
RegistrationCheck,
PluginList,
DircopyData,
FeedReturnPayload,
PollStatus,
PluginReturnPayload,
} from "../types";
import { v4 } from "uuid";
import ChrisAPIClient from "../../../api/chrisapiclient";
import { stopAnalysis } from "../actions";
import { setYieldAnalysis } from "../saga";
import { IAc... |
<gh_stars>0
import browserSync from 'browser-sync';
import devIp from 'dev-ip';
import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';
import typescriptFormatter from 'react-dev-utils/typescriptFormatter';
import openBrowser from 'react-dev-utils/openBrowser';
import webpack from 'webpack';
import w... |
<gh_stars>0
import {SettingsService} from "./settings-service";
import {Global} from "../../global";
import {Template7} from "framework7";
import {ModelView} from "../../model-view";
const ipfsClient = require('ipfs-http-client')
const TruffleContract = require('truffle-contract')
const OrbitDB = require('orbit-db')
... |
<gh_stars>0
import { LanguageKeys } from '#lib/i18n/languageKeys';
import type { OverwatchEmbedDataReturn } from '#lib/i18n/languageKeys/keys/commands/GameIntegration';
import { PaginatedMessageCommand, UserPaginatedMessage } from '#lib/structures';
import type { GuildMessage } from '#lib/types';
import { CdnUrls } fro... |
import { AccountTable, SessionInfo_Client, UserAlias, SessionInfo, AccountPermission, UserEvidence, UserAliasKind, UserEvidenceKind, getAccountPermissions_userEvidenceKind, getAccountPermissions_userAlias, verifyAccountPermission, getAliasValue_orJson } from "../config/types";
import { createSessonToken_server, createU... |
<reponame>JCron245/tdcs-edit-extension
export interface TDCS {
configName: string;
config: Config;
appliedConfigs: string[];
classCode: string;
}
export interface Config {
featureFlag: FeatureFlag;
test: string;
msaBanner: string;
copyOverrides: CopyOverrides;
tvUpgradesDistilleryEnabled: boolean;
dePayload:... |
import React from 'react';
import { shallow } from 'enzyme';
import { render, screen, waitFor } from '@testing-library/react';
import MockAdapter from 'axios-mock-adapter';
import userEvent from '@testing-library/user-event';
import RestApiMock from '@fpsak-frontend/utils-test/src/rest/RestApiMock';
import * as Felles... |
import { storiesOf } from '@storybook/react'
import React from 'react'
import { Observable, of } from 'rxjs'
import {
ExecutionLogEntryFields,
LsifIndexFields,
LSIFIndexState,
LsifIndexStepsFields,
} from '../../../graphql-operations'
import { EnterpriseWebStory } from '../../components/EnterpriseWebSto... |
<filename>src/chart/helper/EffectLine.ts
/*
* 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, ... |
import React, { useRef } from 'react';
import styles from './SnapshotsTableList.scss';
import classnames from 'classnames';
import {
CircleWarnIcon,
DotsIcon,
FlyDropdown,
IVirtualTableCellRendererDataArgs,
LoadingIndicator,
Spinner,
TextButton,
VirtualTable,
} from '@getflywheel/local-components';
import { act... |
import {input} from '@covid-modeling/api'
import Joi from '@hapi/joi'
import Debug from 'debug'
import omit from 'lodash/omit'
import {Region, TopLevelRegion} from '../pages/api/regions'
import {addDays, maxDate, toYYYYMMDD} from './dateFunctions'
import {getDefaultContactReduction} from './default-contact-reduction'
i... |
<reponame>umbe1987/shire
// CSS imports
import 'ol/ol.css';
import 'sidebar-v2/css/ol3-sidebar.css';
import 'ol-layerswitcher/src/ol-layerswitcher.css';
import './css/ol-umbe.css';
// JS imports
import 'whatwg-fetch'; // A window.fetch JavaScript polyfill.
import 'babel-polyfill'; // babel-polyfill package
import M... |
<gh_stars>1-10
import * as irc from 'irc-framework';
import { sleep, matchIRCHostMask } from '../utils';
import { promisify } from 'util';
import { Config } from './config';
import { MessageEvent, WHOResponse, WHOISResponse } from '../types';
import { getLogger } from '../logger';
const logger = getLogger('IRCClient');... |
import {Valideringsfeil} from "../validering/valideringActionTypes";
import {REST_STATUS} from "../soknad/soknadTypes";
export interface OpplysningerModel {
restStatus: REST_STATUS;
backendData: OpplysningerBackend | null;
opplysningerSortert: Opplysning[];
enFilLastesOpp: boolean;
}
export type Maybe... |
import pollyTextSplit from 'polly-text-split';
import defaults from './defaults';
import { ConfigurationValidationError, NotPossibleSplitError, SSMLParseError } from './errors';
type Synthesizer = 'google' | 'aws';
export interface OptionsInput {
/**
* Default: `1500`
*
* The amount of characters the scrip... |
import * as PIXI from "pixi.js";
import { Viewport } from "pixi-viewport";
import { Polyline } from "cavalier_contours_web_ffi";
export enum SimpleColors {
White = 0xffffff,
Black = 0x000000,
Gray = 0x808080,
Red = 0xdc2626,
Blue = 0x2563eb,
Green = 0x059669,
Orange = 0xd97706,
Purple = 0x7c3aed,
Mag... |
import React, { useState, useEffect, useRef } from 'react';
import { useHistory, Link } from 'react-router-dom';
import PageLayout from '@/components/pageLayout';
import BaseTable, { IBaseTableProps } from '@/components/BaseTable';
import { ColumnsType } from 'antd/lib/table';
import { getDashboard, createDashboard, cl... |
import { inject, singleton } from 'aurelia-framework';
import { Subscription } from 'aurelia-event-aggregator';
import * as DOMPurify from 'dompurify';
import { AureliaViewOutput, Column, Extension, ExtensionName, GridOption, RowDetailView, SlickEventHandler, ViewModelBindableInputData } from '../models/index';
import... |
/// <reference path="../_ref.d.ts" />
'use strict';
// TODO invetigate why this is
declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
declare function clearTimeout(timeoutId: NodeJS.Timer): void;
import fs = require('fs');
import path = require('path');
import ... |
<filename>src/client/modules/date.ts
import addHours from 'date-fns/addHours';
import addMonths from 'date-fns/addMonths';
import addSeconds from 'date-fns/addSeconds';
import addWeeks from 'date-fns/addWeeks';
import addYears from 'date-fns/addYears';
import differenceInMonths from 'date-fns/differenceInMonths';
impor... |
<reponame>waynecz/fedlearner<gh_stars>0
import { XYPosition, Edge } from 'react-flow-renderer';
import { Job, JobState } from 'typings/job';
import { isHead, isLast } from 'shared/array';
import { head, isEmpty, isNil, last } from 'lodash';
import { Variable } from 'typings/workflow';
import i18n from 'i18n';
import {
... |
<filename>src/components/webexWalkin/WebexWalkin.ts
/**
* Copyright (c) Cisco Systems, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { LitElement, html, property, PropertyValues, internalProperty ... |
<reponame>bcgov/ppr-deprecated
import moment from 'moment'
import { FinancingStatementType } from '@/financing-statement/financing-statement-type'
import { GeneralCollateralModel, GeneralCollateralInterface } from '@/general-collateral/general-collateral-model'
import { SerialCollateralModel, SerialCollateralInterface ... |
<gh_stars>0
import { FixtureInstance, LayerInstance } from '@/api/internal';
import { LayerStore } from '@/store/modules/layer';
import { ExportV1SubFixture } from '@/fixtures/export-v1';
import { fabric } from 'fabric';
import { LegendSymbology } from '@/geo/api';
/**
* Represents a map layer.
*
* @interface Segme... |
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic, Categories } from 'homebridge';
import { PLATFORM_NAME, PLUGIN_NAME } from './settings';
import { AirzoneCloudPlatformAccessory } from './platformAccessory';
import { AirzoneCloudPlatformAccessoryAirzone } from './... |
<filename>packages/cli-layout/ansi.ts
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {TerminalFeatures} from "@romefrontend/cli-environment";
import {MarkupRGB} from "./t... |
import React, { useCallback, useState, useEffect, useContext } from 'react';
import {
Linking,
StyleSheet,
Text,
TouchableOpacity,
View,
StatusBar,
Alert,
} from 'react-native';
import {
useFocusEffect,
useRoute,
useNavigation,
} from '@react-navigation/native';
import { Trans, useTranslation } from... |
<reponame>yasoonOfficial/yasoon-ews-proxy
import * as bodyParser from 'body-parser';
import { EwsLogging } from 'ews-javascript-api';
import * as express from 'express';
import { Monkey } from './extensions/Monkey';
import { EWS_AUTH_TYPE_HEADER, EWS_PASSWORD_HEADER, EWS_TOKEN_HEADER, EWS_URL_HEADER, EWS_USER_HEADER, P... |
import Docker, { ContainerCreateOptions } from "dockerode";
import fsExtra from "fs-extra";
import { IncomingMessage } from "http";
import {
BindDoesntExistInHostError,
DockerBadGatewayError,
DockerHubConnectionError,
DockerNotInstalledError,
DockerNotRunningError,
DockerServerError,
ExecutableNotFoundEr... |
import { Highlightable } from '@angular/cdk/a11y';
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
import {
AfterViewChecked,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Inject,
Input,
OnDestroy,
Optional,
Outp... |
import * as graph from "@microsoft/microsoft-graph-client";
import * as t from "io-ts";
import * as validation from "@data-heaving/common-validation";
import * as pulumi from "@data-heaving/pulumi-azure-pipeline-setup";
import * as common from "@data-heaving/common";
import * as crypto from "crypto";
import * as uuid f... |
<gh_stars>0
import { canAdv } from "canadv.ash";
import {
use,
haveEffect,
availableAmount,
buy,
cliExecute,
itemAmount,
print,
visitUrl,
runChoice,
mallPrice,
myFamiliar,
equip,
bjornifyFamiliar,
setAutoAttack,
adv1,
getClanName,
putStash,
retriev... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.