text stringlengths 3.08k 15.5k |
|---|
<reponame>JonathanWilbur/x500-ts
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
INTEGER,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/* START_OF_SYMBOL_DEFINITION OperationalBindingID */
/... |
<filename>packages/core/src/Retry/index.ts
/* adapted from https://github.com/gcanti/retry-ts */
import * as T from "../Effect"
import { Exit } from "../Exit"
import { flow } from "../Function"
import { getFunctionMonoid, Monoid } from "../Monoid"
import * as O from "../Option"
import { ordNumber } from "../Ord"
impor... |
import { Database } from 'better-sqlite3'
import {
addTrade,
completeTrade,
failTrade,
getTrade,
getPendingTrades
} from './data'
import { prepareSwap, forwardSwap } from './interchain'
import LndEngine from 'lnd-engine'
import { AnchorEngine, EscrowStatus } from '../global-shared/anchor-engine'
import { canc... |
import { Semver } from 'sver';
import { JspmUserError, bold, validPkgNameRegEx, highlight } from '../utils/common';
import { Project } from '../api';
import { PackageName } from './package';
import tar = require('tar-fs');
import spdxLicenses = require('spdx-license-list/simple');
import fs = require('graceful-fs');
im... |
import * as _ from 'lodash';
// prettier-ignore
export const getCartesianProduct = (...vectors: any[]): any[] =>
_.reduce(
vectors,
(accumulator, vector) => _.flatten(
_.map(accumulator, product =>
_.map(vector, value => product.concat([value]))
)
),
[[]] // accumulator, initially... |
import * as Places from '../constants/places';
import { DIRECTION, is_road, is_spot, road_connects, get_road_length } from './place_info';
import { transitions } from './transition';
import { get_player_deck } from '../game';
import { CARD_SET, Card, GlobalCard } from '../constants/cards';
import {
Birth_gate_select,... |
import { useState, useMemo, useEffect } from 'react'
import {
CreateTxOptions,
MsgExecuteContract,
StdFee,
} from '@terra-money/terra.js'
import { useConnectedWallet } from '@terra-money/wallet-provider'
import { useDebouncedCallback } from 'use-debounce/lib'
import { useRecoilValue } from 'recoil'
import { UTIL... |
<gh_stars>0
import { BaseSolution, Input } from '../solution';
export class Solution extends BaseSolution {
description = `
--- Day 8: Memory Maneuver ---
The sleigh is much easier to pull than you'd expect for something its weight. Unfortunately, neither you nor the Elves know which way the North Pole is ... |
<reponame>vajahath/Vaccine-Slot-Finder<filename>src/server.ts<gh_stars>0
import dayjs from "dayjs";
import fastify from "fastify";
import got from "got";
import utc from "dayjs/plugin/utc";
import timezone from "dayjs/plugin/timezone";
import { Transform, Readable, Writable } from "stream";
import fastifyStatic f... |
import { useMemo } from "react";
import { useDeno, useRouter } from "aleph/react";
import { getNavMenu, Nav, NavMenu } from "../_utils.ts";
import { Header } from "../components/header.tsx";
import { MDXContent } from "https://esm.sh/@types/mdx/types.d.ts";
import { components } from "~/components/mdx_component.tsx";
i... |
<filename>packages/contractkit/src/wrappers/Election.ts
import { eqAddress } from '@celo/utils/lib/address'
import { zip } from '@celo/utils/lib/collections'
import BigNumber from 'bignumber.js'
import { Address, NULL_ADDRESS } from '../base'
import { Election } from '../generated/types/Election'
import {
BaseWrapper... |
import { List } from 'immutable'
import { BehaviorSubject, combineLatest, merge, Observable, of, Subject } from 'rxjs'
import {
delay,
endWith,
filter,
map,
mapTo,
sample,
scan,
share,
shareReplay,
startWith,
switchMap,
switchMapTo,
takeUntil,
takeWhile,
withLatestFrom,
} from 'rxjs/operat... |
import { ICommand } from './../types';
import * as ejs from 'ejs';
import * as fs from 'fs';
import * as path from 'path';
import Config from './../config';
import Files from './../tools/Files';
import Utils from './../tools/Utils';
import Terminal from './../tools/Terminal';
interface IComponentOptions {
name: stri... |
<reponame>DavidVeloso/bonsai-backend-test<filename>tests/_utils/data/ticket.ts
import { imdbValidResponse } from './movie'
import MovieModel from '../../../source/entities/Movie'
import TicketModel from '../../../source/entities/Ticket'
export const bonsaiValidTicketsResponse = [
{
_id: { $oid: "5b8701a1fc13ae... |
import React, { useState } from "react";
import fbLogo from "assets/login/fb-logo.svg";
import googleLogo from "assets/login/google-logo.svg";
import arcgisLogo from "assets/login/esri-logo.svg";
import aafLogo from "assets/login/aaf-logo.png";
import ckanLogo from "assets/login/ckan.png";
import magdaLogo from "assets... |
<gh_stars>1-10
import Server from './GameEngine/Server'
import Entity from "./GameEngine/Entity"
import Client from "./GameEngine/Client"
import * as PIXI from 'pixi.js'
// =============================================================================
// Helpers.
// ===================================================... |
<reponame>tulustul/summer-challenge-shutter-asylum
import { EntitySystem, EntityEngine, Entity } from "./ecs";
import { PosAndVel } from './velocity';
import { ColisionSystem, Shape, Collidable } from "./colision";
import { PropComponent } from "./props";
import { BloodSystem } from "./blood";
import { Vector2 } from "... |
import { Button, useToast } from '@1hive/1hive-ui';
import { noop } from 'lodash-es';
import { useState, useRef } from 'react';
import { GiBroadsword } from 'react-icons/gi';
import styled from 'styled-components';
import { Formik, Form } from 'formik';
import { ENUM_TRANSACTION_STATUS, ENUM } from 'src/constants';
imp... |
/*
* #%L
* %%
* Copyright (C) 2019 BMW Car IT GmbH
* %%
* 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 app... |
import React, {useEffect, useMemo, useState} from 'react';
import {styled} from '@mui/material/styles';
import List from '@mui/material/List';
import {Button, Typography} from '@mui/material';
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import {
Endpoints,
http,
Log... |
import React, { useState, useEffect } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Row, Col, Tabs, Tag, Table, Typography, Divider, Badge, Space, Empty, Spin } from 'antd';
import { queryBaiDuDocs, queryBaiDuFenYunDocs } from './service';
import { LinkOutlined, FontSizeOutlined } f... |
<reponame>RikkiGibson/ms-rest-azure-js
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import Constants from "./util/constants";
import * as msRest from "ms-rest-js";
const LroStates = Constants.LongRunningOper... |
<gh_stars>1-10
'use strict';
import util = require('util');
import express = require('express');
import {RequestHandler} from 'express';
import bodyParser = require('body-parser');
import atob = require('atob');
import btoa = require('btoa');
import md5 = require('md5');
import auth = require('./auth');
import discou... |
<reponame>rvanmil/redux-document-adapter
import {
createNextState,
Draft,
isDraft,
PayloadAction,
} from '@reduxjs/toolkit'
import { ObjectId } from 'bson'
import {
Document,
DocumentState,
DocumentComparer,
DocumentStateAdapter,
DocumentUpdate,
} from './models'
export const createSingleArgumentStat... |
'use strict';
/**
* Module dependencies.
*/
import { Buffer } from 'buffer';
import net = require('net');
import { Readable, Transform } from 'stream';
/**
* Module exports.
*/
export {
createScanner,
ping,
version,
isCleanReply,
};
/**
* Create a scanner
*
* @param {string} host clamav server's hos... |
<filename>profile-api/auth/services/AuthService.ts
import fetch from 'node-fetch'
import { RequestInit } from 'node-fetch'
import * as qs from 'querystring'
import * as SimpleOauth from 'simple-oauth2'
import { DCDError } from '@datacentricdesign/types'
import { PolicyService } from './PolicyService'
import config from... |
import { h } from 'hyperapp'
import { Actions, State } from '../app'
import { semNoLabel, transfer } from '../lib/format'
import { Failure, Loading, NotAsked, Success, WebData, caseWebDataOf, isSuccess, successOf } from '../lib/webdata'
import { TransactionType, fetchPendingTxs, fetchTxs } from '../model/transaction'
i... |
import * as BScroll from 'better-scroll'
import { View, ViewStyle } from './View'
import { ScrollEvent, ScrollState } from '../event/ScrollEvent'
import { EventListener } from '../event/Event'
// import { Hummer } from '../../base/Global'
// import { formatUnit } from '../../common/utils'
export interface ScrollerSt... |
import { TaskTree } from 'tasktree-cli';
import { Task } from 'tasktree-cli/lib/task';
import { Filter } from './filter';
import { Commit } from '../entities/commit';
import { Author } from '../entities/author';
import { Section, SectionPosition } from '../entities/section';
import { License } from '../package/license'... |
<filename>src/api/users/services/UserService.ts
import { DocumentType } from "@typegoose/typegoose";
import { Feed } from "../../actions/models/Feed";
import { GodUser } from "../models/GodUser";
import { SafeUser } from "../models/SafeUser";
import User from "../models/User";
import addAction from "./addAction";
impor... |
import * as React from 'react'
import { FormattedMessage } from 'react-intl'
import { observable, IObservableArray, computed, ObservableMap, action } from 'mobx'
import { StyleSheet, css } from 'aphrodite/no-important'
import palette from 'src/util/palette'
import messages from './messages'
import { HighlightSpans } f... |
type Grid = {
height: number
getValue: (x: number, y: number) => number
width: number
}
type InterpolatorFn = (p: number) => number
// Returns 4x4 array of values to use from the grid.
export function getCellsFromGrid(grid: Grid, x: number, y: number): number[][] {
// Deal with the edges of the input grid by ... |
/*
* Copyright 2018- The Pixie 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
*
* Unless required by applicable law or ag... |
import 'array-flat-polyfill';
import { Language } from "./Language";
/**
* A stop which consists of its ID and name
*/
declare type Stop = InstanceType<Kmb['Stop']>;
/**
* A route which consists of its route number (e.g. 104) and its bound (1 for forward, 2 for backward)
*/
declare type Route = InstanceType<Kmb['Ro... |
import { defaultRewalker } from "Rewalker";
import { MissionLogic } from "logic/mission";
import { Role } from "roles/role";
import { log } from "debug";
import { buildBody, cost } from "body";
const rewalker = defaultRewalker()
declare class RoomAI {
name: string
spawns: StructureSpawn[]
room: Room
}
let gAisT... |
<reponame>mikaelkaron/prisma-errors
import { PrismaClientKnownRequestError } from '@prisma/client/runtime';
import { PrismaError } from './PrismaError';
import { PrismaP2000Error } from './PrismaP2000Error';
import { PrismaP2001Error } from './PrismaP2001Error';
import { PrismaP2002Error } from './PrismaP2002Error';
im... |
<gh_stars>0
import {Colors, DarkTheme, DefaultTheme} from 'react-native-paper';
export const customColors = {
amber50: Colors.amber50,
amber100: Colors.amber100,
amber200: Colors.amber200,
amber300: Colors.amber300,
amber400: Colors.amber400,
amber500: Colors.amber500,
amber600: Colors.amber600,
amber7... |
import React from 'react';
import {
Box,
Button,
Divider,
Flex,
Heading,
Link,
ListItem,
Tag,
TagLabel,
Text,
UnorderedList,
} from '@chakra-ui/react';
import { useFirestore } from 'reactfire';
import {
faBug,
faCheckCircle,
faCommentAlt,
faListUl,
faMinusCircle,
faTimesCircle,
faSha... |
<reponame>apskhem/cratesinquire
import * as d3 from "d3";
const MARGIN = {
top: 100,
left: 100,
bottom: 100,
right: 100
};
const WIDTH = Math.min(900, window.innerWidth);
const HEIGHT = Math.min(212);
export const renderGraph = (data: DepGraph) => {
const maxDistance = data.links.reduce((acc, x) => Math.max... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
// eslint-disable-next-line max-classes-per-file
import { Object, OdbObject, ... |
import React, { FC, useState , TouchEvent, useEffect, useImperativeHandle} from 'react';
import _ from 'lodash';
const getIndex = (list:any, value:any) => {
if (list && list.length < 1) {
return 0;
}
// let index1 = _.findIndex(list, item);
// let index2 = list.indexOf(item);
// let index = Math.max(inde... |
import * as SporeApi from "./SporeWebApiClient.js";
import SporePng from "./SporePngDecoder.js";
// Load an example asset initially
updateServerData(501054100093);
// Picking asset using server ID
const ASSET_ID_INPUT = document.getElementById("AssetIdInput") as HTMLInputElement;
ASSET_ID_INPUT.addEventListener("cha... |
<filename>projects/ng-gpt/src/lib/ng-gpt-ad.directive.ts
import { isPlatformBrowser } from '@angular/common';
import {
AfterViewInit,
Directive,
ElementRef,
EventEmitter,
Inject,
Input,
OnDestroy,
OnInit,
Optional,
Output,
PLATFORM_ID,
} from '@angular/core';
import { Router, NavigationEnd } from ... |
<gh_stars>0
import { toArray, addClass, removeClass, on, off } from "@knitkode/core-dom";
import { isRequired, isEmail } from "../validators";
import { getElementWrapper, getElementRules } from "../helpers";
export type ValidationValidator = {
/* The form node that has errors */
element: HTMLFormElement;
/* The ... |
import {encode, decode} from 'base-64';
import * as EditorActions from '../actions/editor';
import {AppToaster} from './toaster';
import * as storageService from './storageService';
import {Intent} from '@blueprintjs/core';
import * as Utils from '../utils';
export const CODE_SERVICE_URL = Utils.isProd() ?
"http://ec... |
import React, { useState, useEffect, useRef } from 'react';
import {
Text,
Box,
HStack,
Heading,
FormControl,
Input,
Icon,
Button,
ScrollView,
KeyboardAvoidingView,
VStack,
AlertDialog,
Center,
IconButton
} from 'native-base';
import { useNavigation } from '@react-navigation/native';
import ... |
<filename>src/tooltip/tooltip.ts
import {
Component,
Directive,
Input,
Output,
EventEmitter,
ChangeDetectionStrategy,
OnInit,
OnDestroy,
Inject,
Injector,
Renderer2,
ComponentRef,
ElementRef,
TemplateRef,
ViewContainerRef,
ComponentFactoryResolver,
NgZone,
ViewEncapsulation,
Change... |
// Copyright 2019 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 {isRTL} from 'chrome://resources/js/util.m.js';
/**
* The minimum amount of pixels needed for the user to swipe for the position
* (controlled b... |
import { PerspectiveCamera } from 'three/src/cameras/PerspectiveCamera';
import { AudioListener } from 'three/src/audio/AudioListener';
type Object3D = import('three/src/core/Object3D').Object3D;
import { Vector3 } from 'three/src/math/Vector3';
import { Clock } from 'three/src/core/Clock';
import { Vector } from '@/u... |
<filename>backend/modules/handlers/audio/audio-queue.service.ts<gh_stars>1-10
import { Service } from 'typedi';
import { Queue } from 'typescript-collections';
import { EventEmitter } from 'events';
import { MaybeAsyncRoutine, WrapIntoPromise } from '@common/interfaces';
import { AsyncMutex } from '@common/util... |
<reponame>lingmin99/CocosCreator-ScrollVIewPlus<gh_stars>0
const { ccclass, property } = cc._decorator;
/**
* @classdesc 只渲染可视区域的ScrollView
* @author caizhitao
* @version 0.1.0
* @since 2019-07-12
* @description
*
* 用法:
*
* 1. 将本组件挂载在节点上即可,和正常ScrollView使用一致
*
* 原理:
*
* 1. 滚动时,判断子节点是否进入了/离开了可视区域
... |
import { useMemo } from 'react'
import styled from 'styled-components'
import { createApiPipelineWithUrl } from 'farrow-api-client'
import { ApiRequest, ApiResponse } from 'farrow-api-server'
import { JSONEditor } from './JSONEditor'
import { JSONDisplayer } from './JSONDisplayer'
import { useAppSelector, useAppDispat... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<filename>lib/sniff.ts
// Sniff CONNECT data to detect TLS + SNI, TLS w/out SNI or WebSocket traffic
// ClientHello parsing Logic from: https://github.com/dlundquist/sniproxy/blob/master/src/tls.c @ 6fa5157
// Ported as directly as possible to TypeScript.
/* tslint:disable:no-bitwise */
export enum State {
NEED_M... |
import * as fs from 'fs';
import * as path from 'path';
import { promisify } from 'util';
import { replaceInvalidImageFilenameChars, formatImageFilename } from './util';
const readdir = promisify(fs.readdir);
type ICache = {
[key: string]: string | undefined;
};
/** Map of lower-case filenames to the actual filena... |
<reponame>jw3/example-omega-vscode<gh_stars>1-10
import * as vscode from 'vscode';
import * as grpc from '@grpc/grpc-js';
import {EditorClient} from "./client/omega_edit_grpc_pb";
import {Empty} from 'google-protobuf/google/protobuf/empty_pb';
import {
ChangeKind,
ChangeRequest,
CreateSessionRequest,
Cr... |
<filename>extensions/quick-access/src/utils/common-utils.ts
import { environment, getPreferenceValues, getSelectedFinderItems, LocalStorage } from "@raycast/api";
import fse from "fs-extra";
import { DirectoryInfo, DirectoryType, FileType } from "./directory-info";
import { imgExt } from "./constants";
import { parse }... |
<gh_stars>10-100
import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
import { FormOption, Row, ButtonsControl, SelectControl, InputControl, FindbackControl, AddItemControl, CheckboxControl } from 'src/share/components/form/form.type';
import { Observable, Subject } from 'rxjs';
import { Act... |
import React, {useEffect, useRef, useState} from 'react';
import {useNavigate, useSearchParams} from 'react-router-dom';
import {Button, message, Switch} from 'antd';
import {LeftCircleFilled, RightCircleFilled} from '@ant-design/icons';
import './setting.css';
import {avatarImageMDs} from 'pixi/metaData/ImageMetaData'... |
<gh_stars>0
interface IError {
messageOrEvent: any
source: string | undefined
lineno: number | undefined
colno: number | undefined
stack: string | undefined
}
let extraDetailsProviders: (() => string)[] = []
let ready = false
let errors: IError[] = []
let errorsReported = 0
let entityMap: { [_: string]: string | ... |
<gh_stars>0
import { TFIDFVectorizer } from './tf_idf/TFIDFVectorizer';
import * as Plotly from 'plotly';
import * as fs from 'fs';
import { KMeans } from './k-means/KMeans';
import { JSONParser } from './JSONParser';
import { KMeansExporter } from './KMeansExporter';
import { MedianCentroidCalculator } from './calcula... |
import * as React from 'react';
import { FocusZone, FocusZoneDirection, IFocusZone } from '../../FocusZone';
import { IKeytipProps } from '../../Keytip';
import {
BaseComponent,
classNamesFunction,
createRef,
divProperties,
elementContains,
focusFirstChild,
getNativeProps
} from '../../Utilities';
import... |
<reponame>bpbuch/salesforcedx-vscode
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import {
CliCommandExecutor,
Command,
Command... |
<reponame>sthagen/holoviz-panel<filename>panel/models/layout.ts
import {classes, content_size, extents, sized} from "@bokehjs/core/dom"
import {color2css} from "@bokehjs/core/util/color"
import {VariadicBox} from "@bokehjs/core/layout/html"
import {Size, SizeHint, Sizeable} from "@bokehjs/core/layout/types"
import {Mar... |
// Type definitions for should.js
declare function should(obj: any): should.Assertion;
// node assert methods
/*interface NodeAssert {
fail(actual: any, expected: any, message?: string, operator?: string): void;
ok(value: any, message?: string): void;
equal(actual: any, expected: any, message?: string): void;
... |
<reponame>cameronmolyneux/vigo-swagger-typescript<gh_stars>0
import {
getTsType,
isAscending,
getDefineParam,
getParamString,
toPascalCase,
getSchemaName,
isMatchWholeWord,
} from "./utils";
import { ApiAST, Config, TypeAST } from "./types";
import {
DEPRECATED_WARM_MESSAGE,
getHooksFunctions,
getHo... |
import React, { useEffect, useState } from 'react';
import { Image, View, ScrollView, Text, StyleSheet, Dimensions, TouchableOpacity, Linking } from 'react-native';
import MapView, { Marker } from 'react-native-maps';
import { Feather, FontAwesome } from '@expo/vector-icons';
import mapMarkerImg from '../images/map-ma... |
/*
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lic... |
import { Component, OnInit, OnDestroy, HostListener } from '@angular/core';
import { OperationService } from "./operation.service";
import { forkJoin, Subscription } from "rxjs";
import { OperateInfo, OperateInfosLocalstorage, OperationState } from "./operate";
import { SlideInOutAnimation } from "../../_animations/sli... |
<gh_stars>1-10
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {createSelector} from 'reselect';
import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';
import {getCurrentTeamId} from 'mattermost-redux/selectors/entities/teams'... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React, { FC, useCallback, useMemo } from 'react';
import {
EuiButton... |
import React, { useContext } from 'react';
import styled from 'styled-components';
import { formatEther } from 'ethers/utils';
import { RouterLink, Tooltip, Button } from 'v2/components';
import { ROUTE_PATHS } from 'v2/config';
import { COLORS, BREAK_POINTS, FONT_SIZE, SPACING } from 'v2/theme';
import { weiToFloat, ... |
<filename>auth/auth.ts
/**
* Module dependencies.
*/
import * as passport from "passport";
import * as LocalStrategy from "passport-local";
import * as ClientPasswordStrategy from "passport-oauth2-client-password";
import * as BearerStrategy from "passport-http-bearer";
import * as bcrypt from "bcrypt";
import {Basic... |
<reponame>art-bazhin/spred-ui
import { Signal } from 'spred';
import { processNodePart } from '../template-instance/template-instance';
import { createMarkNode } from '../template/template';
import { toCamelCase } from '../utils/to-camel-case';
const ATTR_MAP: {
[key: string]: string;
} = {
className: 'class',
t... |
<gh_stars>1-10
export type PermissionError = 'permission/microphone-permission-denied' | 'permission/camera-permission-denied';
export type ParameterError =
| 'parameter/invalid-parameter'
| 'parameter/unsupported-os'
| 'parameter/unsupported-output'
| 'parameter/unsupported-input'
| 'parameter/invalid-combin... |
/**
* @license
* Copyright Google Inc. 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
*/
import {beforeEach, ddescribe, describe, expect, iit, it, xit} from '@angular/core/testing';
import {NumberWrapper, ... |
import { Logger } from '@nestjs/common/services/logger.service';
import { loadPackage } from '@nestjs/common/utils/load-package.util';
import { randomStringGenerator } from '@nestjs/common/utils/random-string-generator.util';
import { EventEmitter } from 'events';
import { fromEvent, merge, Observable } from 'rxjs';
im... |
import * as vscode from "vscode";
import { getIgnoredFolders } from "../../vscode-configuration";
import {
Editor,
Code,
Modification,
Command,
ErrorReason,
errorReasonToString,
Choice,
Result
} from "../editor";
import { Selection } from "../selection";
import { Position } from "../position";
import {... |
<reponame>Angel-Studios/bitmovin-player-ui
import {Container, ContainerConfig} from './container';
import {Label, LabelConfig} from './label';
import {Component, ComponentConfig} from './component';
import { UIInstanceManager } from '../uimanager';
import {StringUtils} from '../stringutils';
import {ImageLoader} from '... |
// the starting point of the applictaion decortest
import * as R from "robowr";
import * as path from "path";
export interface MethodInfo {
runner: TestCaseRunner;
className: string;
methodName: string;
args: any[];
self: any;
wr: R.CodeWriter;
result?: any;
}
export interface TestCaseOptions {
name:... |
import clsx from 'clsx';
import { useAtom } from 'jotai';
import { RefObject } from 'preact';
import { useEffect, useMemo, useRef, useState } from 'preact/compat';
import { Rnd } from 'react-rnd';
import { AppNexus } from '__/components/apps/AppNexus';
import { appsConfig } from '__/data/apps/apps-config';
import { ran... |
import {
Button,
IconButton,
Paper,
Popover,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
Typography,
} from '@material-ui/core';
import { ButtonOutlined } from 'litmus-ui';
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useSe... |
<reponame>microsoft/parallax-loader
import { ConvertConfigContent } from "./ConfigFileParser";
import { basicTypes, ConvertCustomTypes, isEnumType, RecordField, RecordStartTag, Type } from "./CustomTypeParser";
import * as fs from "fs"
const newLine = "\n"
const tab = '\t'
const tempVarPrefix = "_temp_var_name_you_wou... |
/**
* @license
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE
*/
import type { CheckStrategy, TreeNode, TreeProps } from '../types'
import type { MergedNode } from './useDataSource'
import type { ComputedR... |
import {createHmac} from 'crypto';
import http from 'http';
import {StatusCode} from '@shopify/network';
import {GraphqlClient} from '../clients/graphql/graphql_client';
import {ShopifyHeader} from '../base_types';
import ShopifyUtilities from '../utils';
import {Context} from '../context';
import * as ShopifyErrors ... |
import { List } from "../../../Data/List"
import { Maybe, Nothing } from "../../../Data/Maybe"
import { OrderedMap } from "../../../Data/OrderedMap"
import { OrderedSet } from "../../../Data/OrderedSet"
import { fromDefault, makeLenses, Record, RecordCreator } from "../../../Data/Record"
import { SocialStatusId } from ... |
<filename>src/ts/main.ts<gh_stars>0
import { control, CRS, map as lMap } from "leaflet";
import "leaflet-sidebar-v2";
import { createInjector } from "@nvarner/fallible-typed-inject";
import "../../node_modules/leaflet-sidebar-v2/css/leaflet-sidebar.min.css";
import "../../node_modules/leaflet/dist/leaflet.css";
impor... |
<reponame>kamiaka/garoon-chrome-extension<filename>src/background.ts
/**
* Garoon Notificator background script.
*/
import {
clearError,
handleError,
initNotificationEvent,
notify,
requireAuth,
scheduleURL,
setError,
timeString,
__,
} from './common';
import {
GaroonAPI,
ModuleID,
ScheduleEve... |
<reponame>JonathanWilbur/pkcs-ts
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OBJECT_IDENTIFIER,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
export { BAG_TYPE } from "../PKCS-12/BAG-TYPE.oc... |
<gh_stars>1-10
import {
State as NitroState,
SignedState as NitroSignedState,
Outcome as NitroOutcome,
AllocationItem as NitroAllocationItem,
signState as signNitroState,
hashState as hashNitroState,
getStateSignerAddress as getNitroSignerAddress,
getChannelId,
convertAddressToBytes32
} from '@statech... |
import { MouseEvent as ReactMouseEvent } from 'react';
import { getHostForElement } from '../../utils';
import {
ElementId,
XYPosition,
OnConnectFunc,
OnConnectStartFunc,
OnConnectStopFunc,
OnConnectEndFunc,
ConnectionMode,
SetConnectionId,
Connection,
HandleType,
} from '../../types';
export typ... |
<gh_stars>0
// package: examplecom
// file: proto/examplecom/primitive_message_v2.proto
import * as jspb from "google-protobuf";
export class PrimitiveMessageV2 extends jspb.Message {
hasMyDouble(): boolean;
clearMyDouble(): PrimitiveMessageV2;
getMyDouble(): number | undefined;
setMyDouble(value: number): Pr... |
<gh_stars>1-10
import { GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';
import { Credentials } from './credentials';
import { AuthClient } from './authclient';
import { BodyResponseCallback } from '../transporters';
import { GetAccessTokenResponse, Headers, RefreshOptions } from './oauth2client';
/**
* O... |
<gh_stars>0
import { BuildScriptTx, CliqueClient, Contract, Number256, Script, Signer, Val } from 'alephium-web3'
const Byte32Zero = "0000000000000000000000000000000000000000000000000000000000000000"
const AlephiumChainId = 13
export interface DeployResult {
groupIndex: number,
address: string,
txId: stri... |
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import { assert, isUndefined } from '@lwc/shared';
import {
CONTEXT_ID,
CONTEXT_CONNECTED,
CONTEXT... |
import { Animation } from './animation'
import { Counter } from './counter'
import { Direction } from './direction'
import { EventDispatcher } from './eventDispatcher'
import { EventStore } from './eventStore'
import { Limit } from './limit'
import { Mover } from './mover'
import { Pointer } from './pointer'
import { S... |
import { dirname, relative, join, resolve } from 'path';
import { createHash as createNativeHash } from 'crypto';
import * as execa from 'execa';
import * as _rimraf from 'rimraf';
import * as fs from 'fs-extra';
import * as glob from 'glob';
import * as multimatch from 'multimatch';
import { ncp } from 'ncp';
import {... |
import { useEffect, useState } from 'react';
import { css } from '@emotion/react';
import SearchIcon from '@frontend/static/icons/search.svg';
import { brand, brandText, brandAlt } from '@guardian/src-foundations/palette';
import { textSans } from '@guardian/src-foundations/typography';
import { from } from '@guardia... |
import parse from '../parse'
import { EvaluationFunction } from '..'
import { ConstantNode, Unit } from '../AST/types'
import { mergeMissing } from '../evaluation'
import { registerEvaluationFunction } from '../evaluationFunctions'
import { convertNodeToUnit } from '../nodeUnits'
import { Context } from '../parsePublic... |
import type { VNode } from 'vue'
import type { OverlayPlacement, OverlayTrigger } from '@idux/cdk/overlay'
import type { PopperPlacement, PopperTrigger } from '@idux/cdk/popper'
import type { ButtonSize } from '@idux/components/button'
import type { CardSize } from '@idux/components/card'
import type { DividerPosition,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.