text stringlengths 3.3k 33k |
|---|
<gh_stars>100-1000
import { Location, RouteActionType } from '../interface/common';
import { RouterDriver, RouteRecord, RouteDriverEventType } from '../interface/driver';
import { RouteManager, MatchedRoute } from '../interface/routeManager';
import {
BaseNavigationOptions,
NavigationOptions,
PopNavigationOptions... |
<gh_stars>1-10
import type { App, Component, Ref, ShallowRef } from "vue";
import { createSSRApp as vueCreateSSRApp, defineComponent, h, ref, shallowRef, watch } from "vue";
import type { Route, RouteMeta, RouteModule, RouteRecord } from "../core/route.ts";
import { matchRoutes } from "../core/route.ts";
import events ... |
import Wrapper from '../../components/wrapper';
import { useStorageQuery, useDeleteBackupMutation, useDownloadBackupMutation, StorageBackup, useDeleteMultipleBackupsMutation } from '../../generated/graphql';
import { useRouter } from 'next/router';
import { Text, Skeleton, AlertIcon, Alert, Table, Tbody, Th, Thead, Tr,... |
<filename>src/generators.ts
import { ConnectionPiece } from './connection';
import { Player } from './player';
import { LevelGenerator } from './generators';
import { Pos, Rect, RectIterator, randomFromArray } from './utils';
import { TileInfo, TileBase, WallTile, dirX, dirY, FloorTurtle, DIR, FloorTile, DataBoxTile, d... |
<filename>jquery.fileupload/index.d.ts
// Type definitions for jQuery File Upload Plugin 5.40.1
// Project: https://github.com/blueimp/jQuery-File-Upload
// Definitions by: <NAME> <https://github.com/rob-alarcon/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="jquery"/>
// In... |
enum TableTabType {
SQL = "SQL",
PbTable = "PbTable",
ResultSet = "ResultSet",
SQLHistory = "SQLHistory",
Preview = "Preview",
ScalarFn = "ScalarFn"
}
class TableTabManager extends AbstractTabManager {
public static SQLTab = "SQL Result";
private static _instance: TableTabManager;
... |
<filename>src/cards/chips-card/chips/conditional-chip-editor.ts
import type { MDCTabBarActivatedEvent } from "@material/tab-bar";
import { fireEvent, HASSDomEvent, HomeAssistant, LovelaceConfig } from "custom-card-helpers";
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElem... |
import Decimal from 'decimal.js'
import Core from '@nervosnetwork/ckb-sdk-core'
import {
ILogger, IUTXOTransaction, IUTXOHDWallet, IUTXOFromToParam, IUTXOUnspent, IUTXOInput, IUTXOApiProvider, IKeypair, binStr,
OneChainError,
RPCNode, UTXOProvider,
} from '@onechain/core'
import { ISystemScript, IInput } from '... |
<reponame>cbbfcd/leva<filename>packages/leva/src/store.ts
import { useMemo } from 'react'
import create from 'zustand'
import { normalizeInput, join, updateInput, warn, LevaErrors } from './utils'
import { SpecialInputTypes } from './types'
import type { Data, FolderSettings, State, StoreType } from './types'
export c... |
import { createContextReducer } from '../context-reducer/contextReducer';
import { ReducerAction } from '../context-reducer/interfaces';
import { createCurationIndexImage, CurationIndexContent, CurationIndexImage } from '../curate/indexCuration';
const curationDefaultState: CurationsState = {
curations: [],
};
/** ... |
<reponame>Garinmckayl/acid-banger<filename>src/audio.ts
/*
Copyright 2021 <NAME>
This work is licensed under a Creative Commons Attribution 4.0 International License
https://creativecommons.org/licenses/by/4.0/
*/
import {biRnd} from "./math.js";
export type Note = 'A' | 'A#' | 'B' | 'C' | 'C#' | 'D' | 'D#' | '... |
<filename>packages/vscode/src/workbench.ts
import * as os from "os";
import { IProgress, INotificationHandle } from "@coder/ide";
import { logger } from "@coder/logger";
import { client } from "./client";
import "./fill/platform";
import "./fill/dom";
import "./fill/codeEditor";
import "./fill/environmentService";
imp... |
<reponame>delta/codecharacter-web-2022<gh_stars>1-10
import Phaser from 'phaser';
import { Pan, Pinch } from 'phaser3-rex-plugins/plugins/gestures.js';
import TowerConfig from '../config/TowerConfig.js';
import TowerType from '../config/TowerType.js';
import { events, MapDesignerEvents } from '../events/EventEmitter.js... |
import type { CustomCommands } from '@config/types/ConfigurableData';
import type { CustomCommand } from '@config/types/GuildSettings';
import { useGuildSettingsChangesContext } from '@contexts/Settings/GuildSettingsChangesContext';
import { useGuildSettingsContext } from '@contexts/Settings/GuildSettingsContext';
impo... |
import d3 from "../../../d3"
import {WeyaElement, WeyaElementFunction} from '../../../../../lib/weya/weya'
import {ChartOptions} from '../types'
import {SeriesModel} from "../../../models/run"
import {defaultSeriesToPlot, getExtent, getLogScale, getScale} from "../utils"
import {CompareLinePlot, LineFill} from "./plot"... |
<reponame>chivy-we/front
import { Component, HostListener, OnDestroy, OnInit, TemplateRef } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { Router } from '@angular/router';
import { Subscription } fro... |
import React, { useEffect, useState } from "react";
import Translate from "../../../services/translateService";
import {
withFormik,
FormikProps,
FormikErrors,
Form,
Field,
useFormikContext,
Formik,
} from "formik";
import AppInput from "../../../components/IU/AppInput";
import {
gql,
QueryResult,
u... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Framework Emulator Github:
// https://github.com/Microsoft/BotFramwork-Emulator
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// ... |
<gh_stars>100-1000
import type { RegExpVisitor } from "regexpp/visitor"
import type { RegExpContext } from "../utils"
import { isEscapeSequence, createRule, defineRegexpVisitor } from "../utils"
import GraphemeSplitter from "grapheme-splitter"
import type { ReadonlyFlags } from "regexp-ast-analysis"
import { mention, m... |
<gh_stars>0
import { Component, OnInit, ViewChildren, QueryList, Inject, ViewChild, ElementRef, NgZone, ChangeDetectorRef } from '@angular/core';
import { CdkDropList, CdkDragDrop, CdkDragEnter, moveItemInArray } from '@angular/cdk/drag-drop';
import { map } from 'rxjs/operators';
import { Breakpoints, BreakpointObserv... |
/** @jsx jsx */
import { jsx, css } from "@emotion/react";
import React, { ChangeEvent } from "react";
import { Question, QuestionType } from "../api/question";
import { selectable } from "../commonStyles";
import create_input from "./InputTypes";
import ErrorMessage from "./ErrorMessage";
const skip_normal_state: Ar... |
<reponame>decisions-com/sdk-examples
/**
* Author:<EMAIL>
* Notes:Unauthorized, unlicensed use, distribution, modification is not allowed.
*/
/// <reference path="../typings/linq/linq.d.ts" />
import NumberFormat = $D.Framework.Utilities.Data.NumberFormat;
import GridMode = Silverdark.Components.GridMode;
interface J... |
<reponame>lokeshyerneni/planner
import React from 'react';
import { DropResult } from 'react-beautiful-dnd';
import {
SemesterCode,
StudentPlan,
Course,
SEMESTER_CODE_MAPPINGS,
Semester,
} from '../../common/data';
import { convertSemesterToData } from '../../common/data-utils';
import { moveDroppableCourse, ... |
/*
* Copyright 2018-2020 IBM Corporation
*
* 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 agree... |
import React, { useEffect, useState } from 'react'
import { GetStaticProps } from 'next'
import Head from 'next/head'
import { QueryClient, } from "react-query"
import { dehydrate } from "react-query/hydration"
import { Container } from '@/styles/Blog'
import { Hero } from '@/components/Blog/Hero'
import { Header } fr... |
<filename>resources/frontend/src/app/trabajador/buscar-trabajador-dialog/buscar-trabajador-dialog.component.ts
import { Component, Inject, OnInit, ViewChild } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import {animate, state, style, transition, trigger} from '@angula... |
import { getDoubleSwapOutput, getDoubleSwapSlip, getSwapOutput, getSwapSlip } from '@thorchain/asgardex-util'
import { Asset, assetToString, bn, BaseAmount, baseAmount, Chain } from '@xchainjs/xchain-util'
import BigNumber from 'bignumber.js'
import * as A from 'fp-ts/Array'
import * as E from 'fp-ts/Either'
import * a... |
export { AppleAppStoreDeDe } from './payment/AppleAppStoreDeDe';
export { AppleAppStoreEn } from './payment/AppleAppStoreEn';
export { AppleAppStoreEs } from './payment/AppleAppStoreEs';
export { AppleAppStoreFrFr } from './payment/AppleAppStoreFrFr';
export { AppleAppStoreJaJp } from './payment/AppleAppStoreJaJp';
exp... |
// Copyright 2017 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 in ... |
<reponame>GravitywellUK/packages<filename>packages/backend/json-api-error/src/json-api-error.ts<gh_stars>1-10
import * as uuid from "uuid";
import * as Joi from "joi";
import * as R from "ramda";
import * as Sentry from "@sentry/node";
export const jsonAPIErrorJoiSchema = Joi.object<JSONApiErrorJSON>({
id: Joi.strin... |
<gh_stars>1-10
import moment from "moment";
import {JobState} from "../api/prow";
import {HistoryData, Record} from "../api/tide-history";
import {cell} from "../common/common";
declare const tideHistory: HistoryData;
const recordDisplayLimit = 500;
interface FilteredRecord extends Record {
// The following are no... |
<filename>charts/Util.ts
import { isEqual, map, sortBy, orderBy, each, keys, entries, trim, isNumber, filter, extend, isEmpty, isFinite, some, every, min, max, uniq, cloneDeep, sum, sumBy, find, identity, union, debounce, includes, toString, isString, keyBy, values, flatten, groupBy, reverse, clone, reduce, noop, floo... |
export enum CompletionItemKind {
Method = 0,
Function = 1,
Constructor = 2,
Field = 3,
Variable = 4,
Class = 5,
Struct = 6,
Interface = 7,
Module = 8,
Property = 9,
Event = 10,
Operator = 11,
Unit = 12,
Value = 13,
Constant = 14,
Enum = 15,
EnumMember = 16,
Keyword = 17,
Text = 18,
Color = 19,
Fil... |
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... |
/*
* Copyright 2016 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the terms of the LICENSE file distributed with this project.
*/
// tslint:disable max-classes-per-file
import * as classNames from "classnames";
import * as React from "react";
import { Hotkey, Hotkeys, HotkeysTarget } from "... |
<gh_stars>0
/**
* See http://www.rogerthat.net/developers/javascript-api for more info
*/
import { RogerthatError } from './rogerthat-errors';
import { PaymentRequestData, PayWidgetContextData, RogerthatPayments } from './rogerthat-payment';
import {
GetNewsGroupRequestTO,
GetNewsGroupResponseTO,
GetNewsGroupsR... |
import React, {
forwardRef,
Fragment,
useRef,
useImperativeHandle,
ReactElement,
ReactHTMLElement,
useCallback,
useEffect,
MutableRefObject,
} from 'react';
import styled from 'styled-components';
import { Tween, Timeline, SplitWords, SplitChars, Controls, PlayState } from 'react-gsap';
const Timelin... |
import React, { useContext, useEffect, useState } from 'react';
import { navigate } from '@reach/router';
import format from 'date-fns/format';
import parse from 'date-fns/parse';
import eachDayOfInterval from 'date-fns/eachDayOfInterval';
import isToday from 'date-fns/isToday';
import isSameDay from 'date-fns/isSameDa... |
/**
* steps to add a connector to the sdk
* 1) Add connector address in this file under connectors object with key as connector_name and value as connector_address. Eg: curve_susd: "0x..."
* 2) Create a new ts file in this folder with the same connector_name as file name. Eg: curve_susd.ts
* 3) In curve_susd.ts, cr... |
import Neep from '@neep/core';
import install from './install/neep';
import { Error, value } from './install/neep';
import RouterView from './View';
import RouterLink from './Link';
import { Route, Location, IHistory, Match, RouteConfig } from './types';
import { cleanPath } from './util';
import { addRoute, matchRoute... |
import * as React from 'react'
import { useSelector, useDispatch } from 'react-redux'
import { useTranslation } from 'react-i18next'
import { RUN_STATUS_IDLE } from '@opentrons/api-client'
import {
useConditionalConfirm,
SpinnerModalPage,
NewPrimaryBtn,
Link,
Box,
Text,
Tooltip,
useHoverTooltip,
C_DIS... |
import { MapType } from './data/map';
import * as Policy from './data/policy';
import { AdminDataService } from './services/adminDataService';
import * as Extensions from './services/extensions';
import functionLogger from './services/functionLogger';
import * as ImageExtensions from './services/imageExtensions';
impor... |
<filename>src/cdk/dialog/dialog-container.ts
/**
* @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
*/
import {
FocusMonitor,
FocusOrigin,
FocusTrap,
FocusTrapFactory,... |
<reponame>sioc1981/versio<filename>frontend/src/app/release/release-create.component.ts
import {
Component,
OnInit,
ViewChild,
ViewEncapsulation,
OnDestroy,
TemplateRef,
EventEmitter,
Output
} from '@angular/core';
import {
WizardComponent, WizardStepConfig, WizardConfig, WizardEven... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Bot Framework: http://botframework.com
//
// Bot Builder SDK Github:
// https://github.com/Microsoft/BotBuilder
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// Permission ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) <NAME>, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------------... |
<filename>dist/parser.d.ts
import { ErrorHandler } from './error-handler';
import * as Node from './nodes';
import { RawToken, Scanner, SourceLocation } from './scanner';
interface Config {
range: boolean;
loc: boolean;
source: string | null;
tokens: boolean;
comment: boolean;
tolerant:... |
<gh_stars>0
/*
* © 2021 Thoughtworks, Inc.
*/
import { median, reduceBy } from 'ramda'
import { COMPUTE_PROCESSOR_TYPES } from './compute'
import { BillingDataRow, CloudConstantsEmissionsFactors } from '.'
import { GroupBy, getPeriodEndDate } from '@cloud-carbon-footprint/common'
export default interface... |
export {}
class Reaction {
amount = 0
input: Map<string, number> = new Map()
constructor(amount: number, input: Map<string, number>) {
this.amount = amount
this.input = input
}
}
class Factory {
reactions: Map<string, Reaction> = new Map()
trash: Map<string, number> = new Ma... |
<gh_stars>0
import traverse from '@babel/traverse';
import generate from '@babel/generator';
import {formatCode} from './code-generator';
import * as t from 'babel-types';
import {TProp} from './types';
import {parse as babelParse} from '@babel/parser';
import {getAstJsxElement, formatAstAndPrint} from './code-generato... |
import { createTheme } from '@shopify/restyle'
import { TextProps } from 'react-native'
export const Font = {
main: {
light: 'Montserrat-Light',
regular: 'Montserrat-Regular',
medium: 'Montserrat-Medium',
semiBold: 'Montserrat-SemiBold',
},
}
const textVariants = {
h1: {
fontFamily: Font.mai... |
/* tslint:disable:no-string-literal */
import { assign } from './object';
/**
* EventRecord interface.
*
* @internal
*/
// tslint:disable:no-any
export interface IEventRecord {
target: any;
eventName: string;
parent: any;
callback: (args?: any) => void;
elementCallback?: (...args: any[]) => void;
objec... |
import { define, observable, batch, reaction } from '@formily/reactive'
import { ChildListMutationObserver } from './observer'
import { ResizeObserver } from '@juggle/resize-observer'
export interface IGridOptions {
maxRows?: number
maxColumns?: number | number[]
minColumns?: number | number[]
maxWidth?: number... |
<filename>node_modules/graphql-tools-fork/dist/Interfaces.d.ts
import { GraphQLSchema, GraphQLField, ExecutionResult, GraphQLInputType, GraphQLType, GraphQLNamedType, GraphQLFieldResolver, GraphQLResolveInfo, GraphQLIsTypeOfFn, GraphQLTypeResolver, GraphQLScalarType, DocumentNode, GraphQLEnumValue, GraphQLEnumType, Gra... |
import React, { useRef } from "react";
import { IconName } from "@fortawesome/fontawesome-svg-core";
import { useHover, usePress } from "@react-aria/interactions";
import { useFocusRing } from "@react-aria/focus";
import { useMenuItem } from "@react-aria/menu";
import { mergeProps } from "@react-aria/utils";
import { ... |
/*
undefined
MaaS customer schema
!!! AUTO GENERATED BY IOTSFJS REFRAIN FROM MANUAL EDITING !!!
See https://www.npmjs.com/package/io-ts-from-json-schema
*/
import * as t from 'io-ts';
import * as Units_ from './components/units';
import * as Common_ from './components/common';
import * as Address_ from './component... |
<reponame>ioslh/element-plus<gh_stars>1-10
import {
cloneVNode,
computed,
Fragment,
getCurrentInstance,
h,
nextTick,
toDisplayString,
toRef,
Transition,
ref,
renderSlot,
withDirectives,
} from 'vue'
import { NOOP } from '@vue/shared'
import { createPopper } from '@popperjs/core'
import { ClickOu... |
<gh_stars>1-10
import { Injectable } from '@angular/core';
import { UtilService } from './util.service';
import { ApiService } from './api.service';
import { SocialTypeEnum } from '../enums/social-type.enum';
import { MainHelper } from '../helpers/main.helper';
import { IAccount } from '../interfaces/app.interface';
im... |
<gh_stars>0
import fs from 'fs'
import path from 'path'
import { Marp } from '@marp-team/marp-core'
import axios from 'axios'
import cheerio from 'cheerio'
import dedent from 'dedent'
import markdownIt from 'markdown-it'
import { Uri, commands, workspace } from 'vscode'
jest.mock('fs')
jest.mock('axios')
jest.mock('vs... |
/* eslint-disable max-classes-per-file */
const isDisposedSym = Symbol('isDisposed');
const resourcesSym = Symbol('disposable resources');
const isDisposedProp = 'isDisposed';
const disposeProp = 'dispose';
/**
* Represents an ad-hock resource free function.
*/
export type AliasCallFunction = (resource: any) => void... |
import * as React from "react";
import { I18nLabel } from "../I18nLabel";
import { Actions } from "../model/Actions";
import { TabNode } from "../model/TabNode";
import { TabSetNode } from "../model/TabSetNode";
import { showPopup } from "../PopupMenu";
import { IIcons, ILayoutCallbacks } from "./Layout";
import { TabB... |
import { Component, Input, OnDestroy, OnInit, TemplateRef, ViewChild, } from '@angular/core';
import { pipe, Subject } from 'rxjs';
import { CalendarEvent, CalendarView, } from 'angular-calendar';
import { BsModalRef, BsModalService } from 'ngx-bootstrap';
import { FormArray, FormBuilder, FormGroup, Validators } from '... |
// @Libs
import React, { ComponentType, ExoticComponent, useEffect, useState } from "react"
import { Redirect, Route, Switch, useLocation, NavLink } from "react-router-dom"
import { Button, Card, Typography } from "antd"
import { useParams } from "react-router"
import moment from "moment"
// @Services
import Applicatio... |
<gh_stars>0
import {
checkAndCreateBackupDir, commandCanBeFound, createLogEntryGenerator,
createVersionStringPlugin, runShellCommand
} from "../api/helper";
import type { Log, Plugin } from "../api/backupHub";
import { debuglog } from "util";
import { promises as fs } from "fs";
import { LogLevel } from "../api... |
import { Alert, Form, FormInstance, Input, Modal, ModalFuncProps } from 'antd';
import { ModalFunc } from 'antd/es/modal/confirm';
import yaml from 'js-yaml';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import Icon from 'components/Icon';
import Spinner from 'components/Spinner';
import { ... |
import { FitbitWeightQueryResult, FitbitWeightTrendQueryResult, FitbitServiceCore } from './types';
import { FitbitServiceMeasure } from './FitbitServiceMeasure';
import { FitbitSummaryLogMeasure } from './FitbitSummaryLogMeasure';
import {
makeFitbitWeightTrendApiUrl,
makeFitbitWeightLogApiUrl,
FITBIT_DATE_FORMA... |
import "./Create.css";
import React, {useState} from "react";
import {Link, useLocation} from "react-router-dom";
import {MDBBtn, MDBCol, MDBContainer, MDBIcon, MDBInput, MDBNavLink, MDBRow} from "mdbreact";
import NutrientRow from "../../common/NutrientRow";
import {Routes} from "../../../util/Constants";
const ingr... |
import { ErrorHelper } from "../errors/ErrorHelper";
import { Typeid } from "../helpers/typeIds";
import { createDefaultServices } from "../interpreter/defaultService";
import { Interpreter } from "../interpreter/interpreter";
import { Parser } from "../parser";
import { TScript } from "..";
import { TscriptTest } from... |
import { IMeasureable } from "src/base/common/size";
export interface ISpliceable<T> {
splice(index: number, deleteCount: number, itemsToInsert?: T[]): T[] | void;
}
export interface IRange {
start: number,
end: number
}
export interface IRangeList {
/**
* The range of the list.
*/
range: IRange,
/**
*... |
import React, { useContext, useEffect } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Container from '@material-ui/core/Container';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import Toolbar from '@material-ui/core/Toolbar';
import Butt... |
import { http, RequesterOptions } from "./requester";
import { util } from "../util";
import { Requester } from "anime-extru/dist/types";
import MALAnimeSearch, {
SearchResult as MALSearchAnimeSearchResult,
} from "anime-extru/dist/integrations/myanimelist/anime-search";
import MALMangaSearch, {
SearchResult a... |
//全部图书,最近阅读,搜索结果,排序结果的数据
import React from "react";
import "./booklist.css";
import Book from "../../components/bookCardtem";
import BookItem from "../../components/bookListItem";
import AddFavorite from "../../utils/addFavorite";
import RecordRecent from "../../utils/recordRecent";
import ShelfUtil from "../../utils/s... |
import {
COMMENT_THREAD_IS_NOT_RESOLVED,
COMMENT_THREAD_IS_RESOLVED,
LAST_COMMENT_WAS_DRAFT,
} from '../../util/magic';
import { PATCHSET_LEVEL_KEY } from '../../../views/activityBar/changes/changeTreeView/patchSetLevelCommentsTreeView';
import {
CommentManager,
DocumentCommentManager,
} from '../../../providers/c... |
import path from "path";
import * as fs from "fs-extra";
import { Construct } from 'constructs';
import * as cdk from "aws-cdk-lib";
import * as ec2 from "aws-cdk-lib/aws-ec2";
import * as rds from "aws-cdk-lib/aws-rds";
import * as lambda from "aws-cdk-lib/aws-lambda";
import { App } from "./App";
import { getFunction... |
<gh_stars>0
/*
* 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 max-classes-per-file */
import { DependencyLis... |
import { SearchConfig } from '@twilio-labs/serverless-api/dist/utils';
import { ServerlessFunctionSignature } from '@twilio-labs/serverless-runtime-types/types';
import type {
LocalDevelopmentServer as LDS,
ServerConfig,
} from '@twilio/runtime-handler/dist/dev-runtime/server';
import bodyParser from 'body-parser';... |
import { Controller } from '@nestjs/common';
import { MessagePattern } from '@nestjs/microservices';
import { InjectConnection } from '@nestjs/typeorm';
import { LanguageCode } from '@vendure/common/lib/generated-types';
import { ID } from '@vendure/common/lib/shared-types';
import { unique } from '@vendure/common/lib/... |
import ResourceType from './resource_type';
import Resource from './resource';
import { utils } from '../utils';
import { RESOURCE_SPECIFICITY } from '../enums/resource_specificity';
const RSP = RESOURCE_SPECIFICITY;
import { RESOURCE_TYPES } from '../enums/resource_types';
const RTY = RESOURCE_TYPES;
import { RESOURCE... |
<filename>src/plugins/edgeFilterLens/index.ts<gh_stars>1-10
import { clone } from '@antv/util/lib';
import { IG6GraphEvent, ShapeStyle } from '../../types';
import Graph from '../../graph/graph';
import Base from '../base';
import { distance } from '../../util/math';
const DELTA = 0.05;
interface EdgeFilterLensConfig... |
/**
* game.service
*/
import { Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { Tile, TileContent } from './tile';
import { Snake } from './snake';
import { Fruit, FruitType } from './fruit';
import { KeyCode } from './keyboard.service';
import { IGameState } from './game-state.reduce... |
import { FileOpener, FileSaver } from '../../core';
import { GameUpdateArgs, Session } from '../../game';
import {
AlertModal,
ConfirmModal,
DividerMenuItem,
SceneMenu,
SceneMenuTitle,
TextMenuItem,
} from '../../gameObjects';
import { InputHintSettings } from '../../input';
import {
MapConfig,
MapFileR... |
<reponame>WadeBarnes/MyGovBC-MSP<gh_stars>10-100
import * as Primitive from './xml-primitives';
import * as ct from './commonTypes';
import {BasicInfoTypeFactory} from './commonTypes';
// Source files:
// https://raw.githubusercontent.com/bcgov/MyGovBC-MSP/master/src/app/components/msp/api-model/xsd-flat/EnrolmentType... |
import classNames from 'classnames'
import copy from 'copy-to-clipboard'
import ContentCopyIcon from 'mdi-react/ContentCopyIcon'
import DotsHorizontalIcon from 'mdi-react/DotsHorizontalIcon'
import FileDocumentIcon from 'mdi-react/FileDocumentIcon'
import React, { useState, useCallback } from 'react'
import { Tooltip ... |
import React, { useCallback } from 'react'
import { IconDiscord } from '@audius/stems'
import cn from 'classnames'
import { useDispatch } from 'react-redux'
import { ReactComponent as IconReceive } from 'assets/img/iconReceive.svg'
import { ReactComponent as IconSend } from 'assets/img/iconSend.svg'
import { BNWei, S... |
import pkg from '../package.json'
const { REACT_APP_CAPTCHA_KEY, REACT_APP_WS_SERVER } = process.env
export type listener = (chunk: any) => void
export type listeners = {
[key: string]: listener[]
}
export type sync = {
begin: number
end: number
rtt: number
ping: number
diff: number // time dif... |
<reponame>DaggieBlanqx/secret-agent
import { Helpers } from '@secret-agent/testing';
import ChromeLatest from '@secret-agent/emulate-chrome-latest';
import MitmRequestContext from '@secret-agent/mitm/lib/MitmRequestContext';
import { createPromise } from '@secret-agent/commons/utils';
import { LocationStatus } from '@s... |
/*-
* #%L
* thinkbig-ui-feed-manager
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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-... |
<filename>src/stores/AppStore.ts
/* Copyright 2018 Mozilla Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import { assert, AssertionError } from "chai";
import * as sinon from "sinon";
import "chai/register-should";
import { createReadStream } from "fs";
import { Def... |
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext } from "../lib";
const renderPathFor = (weight: string, color: string) => {
switch (weight) {
case "bold":
return (
<>
<line x1="33.5" y1="24" x2="222.5" y2="232" fill="none" stroke={color} stroke-linecap="... |
import { BaseClient } from './BaseClient';
import { ScrcpyStreamParams } from '../../common/ScrcpyStreamParams';
import { DroidMoreBox } from '../toolbox/DroidMoreBox';
import { DroidToolBox } from '../toolbox/DroidToolBox';
import VideoSettings from '../VideoSettings';
import Size from '../Size';
import { ControlMessa... |
import $ from 'mdui.jq/es/$';
import extend from 'mdui.jq/es/functions/extend';
import { JQ } from 'mdui.jq/es/JQ';
import 'mdui.jq/es/methods/addClass';
import 'mdui.jq/es/methods/append';
import 'mdui.jq/es/methods/attr';
import 'mdui.jq/es/methods/children';
import 'mdui.jq/es/methods/first';
import 'mdui.jq/es/meth... |
<reponame>proteanblank/human
import type { Tensor } from '../tfjs/types';
export const attentionDefinitions = {
eyeLLower: [33, 7, 163, 144, 145, 153, 154, 155, 133], // 9
eyeRLower: [263, 249, 390, 373, 374, 380, 381, 382, 362], // 9
// eslint-disable-next-line max-len
lips: [185, 96, 90, 181, 84, 17, 314, 40... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { assert, fail } from './Common';
import { Definition, NodeId } from './Identifiers';
import { Edit, Payload } from './PersistedTypes';
import { SnapshotNode, Snapshot } from './Snapshot';
import { BlobId, Sh... |
<filename>src/tools/text.ts
import {
EditorState,
convertToRaw,
RawDraftInlineStyleRange,
RawDraftContentBlock,
RawDraftContentState,
DraftInlineStyleType,
convertFromRaw,
ContentState,
} from 'draft-js'
import uniqid from 'uniqid'
import {
IRange,
IRichTextValue,
IFragment,
IRichTextBlock,
II... |
<gh_stars>1-10
import { ContextState, ParsedFullTransaction } from '../eth/basetypes'
import Web3 from 'web3'
import { AbiItem } from 'web3-utils'
interface IndexMetadata {
hash: string
}
const transactionExpiration = 60 * 24 * 3600 // 2 months
const max64 = Web3.utils.toBN('0xFFFFFFFFFFFFFFFF')
const max32 = Web3.... |
<filename>sb-cb-ui-collection/library/sunbird-cb/collection/src/lib/player-pdf/player-pdf.component.ts
import {
AfterViewInit,
Component,
ElementRef,
Input,
OnChanges,
OnDestroy,
OnInit,
ViewChild,
} from '@angular/core'
import { FormControl } from '@angular/forms'
import { ActivatedRoute, Ro... |
import { IStringDictionary, Nullable } from "babylonjs-editor/shared/types";
import { IFBXGeometry, IFBXNode } from "./types";
export interface IFBXParsedData {
dataSize: number;
buffer: number[];
indices: number[];
mappingType: string;
referenceType: string;
}
export interface IFBXBuffers {
... |
<filename>front_end/models/timeline_model/TracingLayerTree.ts
// 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.
/* eslint-disable @typescript-eslint/naming-convention */
import * as Common from '../../co... |
<gh_stars>0
/**
* @license
* Copyright 2019 Google LLC.
* 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 IP rights grant found at
* http://polymer.github.io/PATENTS.txt
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.