text stringlengths 3.3k 33k |
|---|
import { CheckoutApi } from '@api/checkoutApi'
import { ICartItemWithKey, ICartState, ICouponApiResponse, ICouponRaw, ICouponState } from '@et/types/Cart'
import { IState } from '@et/types/State'
import { changeCheckoutType, updateCartPrice } from '@redux/actions/cartActions'
import {
ICouponSuccessAction,
loadCoupon... |
<gh_stars>1-10
import {SelectData} from '../BaseTable';
import {ColumnInfo, ColumnInfoManager, TableInfo, TableInfoManager} from '../cache';
import {getSUISettings} from '../core';
import {DataKey, dataKeysToDataTree, getDataByKey} from '../dataKey';
import {IGqlFilter, query, stringifyGqlFilter} from '../gql';
import ... |
<reponame>anfilat/pg-mem
import moment from 'moment';
import { List } from 'immutable';
import { IValue, NotSupported, _ISchema, _IType, _Transaction } from './interfaces-private';
import { DataTypeDef, Expr, nil, QName } from 'pgsql-ast-parser';
import { ISubscription, IType, typeDefToStr } from './interfaces';
import... |
<filename>packages/typegen/src/metadataMd.ts
// Copyright 2017-2021 @polkadot/typegen authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { MetadataLatest } from '@polkadot/types/interfaces/metadata';
import type { Codec, DefinitionRpcParam } from '@polkadot/types/types';
import fs from 'fs';
i... |
import { rename } from "fs";
import {
Component,
TAbstractFile,
TFile,
TFolder,
Vault,
getAllTags,
FuzzySuggestModal
} from "obsidian";
import type { Calendar, Event } from "src/@types";
import type FantasyCalendar from "src/main";
//have to ignore until i fix typing issue
//@ts-expect-error... |
import { mat4 as glMat4, vec3 as glVec3, quat as glQuat, vec4 as glVec4, vec2 as glVec2, ReadonlyVec2, ReadonlyVec3, ReadonlyVec4, ReadonlyMat4, mat3 } from "gl-matrix";
import { quat } from "./quat";
import { vec3 } from "./vec3";
import { vec4 } from "./vec4";
import { vec2 } from "./vec2";
import { wrapGlMatrix... |
import type { OffscreenCanvas } from "three";
import type { vec3 } from "gl-matrix";
import { ResourceDefinition } from "./resources/ResourceManager";
import { TripleBuffer } from "./allocator/TripleBuffer";
import { GLTFEntityDescription } from "./gltf";
import { ComponentPropertyValues } from "./editor/editor.game";
... |
<reponame>ForeverSun/vue-cesium<filename>packages/components/controls/navigation-sm/index.ts<gh_stars>1-10
import type { CSSProperties, VNode, PropType } from 'vue'
import { defineComponent, getCurrentInstance, watch, nextTick, ref, reactive, h, createCommentVNode, computed } from 'vue'
import type { VcCompassEvt, VcCo... |
<gh_stars>1-10
import {
Component,
forwardRef,
OnInit,
OnDestroy,
Input,
Output,
EventEmitter
} from '@angular/core';
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
import { FormArrayFileObject } from './FormArrayFileObject';
import * as firebase from 'firebase/app';
import 'firebase/s... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>k0t0vich/Core<gh_stars>0
/*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
import extend from 'core/prelude/extend';
const
hasOwnProperty = Object.prototype.hasOwnProperty;
/** @see ObjectConstructor.mixin */... |
<reponame>Johaney-s/perun-web-apps<filename>libs/perun/openapi/src/lib/model/models.ts<gh_stars>1-10
export * from './actionType';
export * from './addUserExtSourceInput';
export * from './appState';
export * from './appType';
export * from './application';
export * from './applicationForm';
export * from './applicatio... |
/**
* @license
* Copyright 2020 Dynatrace 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 ag... |
import * as React from 'react'
import { Icon, Popconfirm, Upload, Modal, message, Progress, Spin } from 'antd'
import * as s from './images.styl'
import { ImageModel, ImageType, hasImageType, acceptMimetypes } from '../../types/image'
import { UploadChangeParam } from 'antd/lib/upload'
import { ImageStore } from '../..... |
<gh_stars>1-10
import * as MessagePack from 'msgpack-lite';
import { EventSystem } from '../system';
import { ResettableTimeout } from '../system/util/resettable-timeout';
import { clearZeroTimeout, setZeroTimeout } from '../system/util/zero-timeout';
interface ChankData {
index: number;
length: number;
chank: ... |
/**
* @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 {writeFileSync} from 'fs';
import * as nock from 'nock';
import {join} from 'path';
import * as semver from 's... |
<gh_stars>0
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import {readFile} from 'fs';
import {promisify} from 'util';
import {Backend, SessionHandlerType} from './backend';
import {ExecutionPlan} from './execution-plan';
import {Graph} from './graph';
import {Profile... |
<filename>src/migrations/migrate.ts
// Copyright <NAME> 2020. All Rights Reserved.
// Node module: sisho
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
require('dotenv').config()
import { inject } from '@loopback/core'
import { Application } from '../ap... |
<gh_stars>0
import { handleMessageExported } from '../bot';
import { writeConsole, getLatestConsoleLines } from './cs_console';
import { getGameStats } from './cs_server_stats';
import { clearIntervals } from '../game/game';
import { findPlayerWithGivenSteamId } from '../steamid';
/*
hm, har en idé för att minska lit... |
<reponame>OswaldLabsOpenSource/platform-v3
import { sign, verify, decode } from "jsonwebtoken";
import {
JWT_ISSUER,
JWT_SECRET,
TOKEN_EXPIRY_EMAIL_VERIFICATION,
TOKEN_EXPIRY_PASSWORD_RESET,
TOKEN_EXPIRY_LOGIN,
TOKEN_EXPIRY_REFRESH,
TOKEN_EXPIRY_APPROVE_LOCATION,
TOKEN_EXPIRY_API_KEY_MAX
} from "../conf... |
<reponame>gw2efficiency/chat-codes<filename>tests/index.spec.ts<gh_stars>1-10
import chatCodes from '../src/index'
import { CodeType } from '../src/static'
import { ItemLinkMeta } from '../src/encode/encodeItemLink'
import { BuildLinkMeta } from '../src/encode/encodeBuildLink'
const testCases: Array<{ type: CodeType; ... |
/// <reference types="react" />
import { BaseComponent } from '../../Utilities';
import { IComboBoxOption, IComboBoxProps } from './ComboBox.types';
export interface IComboBoxState {
/** The open state */
isOpen?: boolean;
/** The currently selected indices */
selectedIndices?: number[];
/**... |
<gh_stars>10-100
/* Copyright (c) 2020, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
*
* You may not use this file except in compliance with the License. You may
* obtain ... |
<reponame>Emboar02/Lanette
import type { Player } from "../room-activity";
import { ScriptedGame } from "../room-game-scripted";
import { addPlayers, assert, runCommand } from "../test/test-tools";
import type { GameCommandDefinitions, GameFileTests, IGameFile } from "../types/games";
import type { IPokemon } from "../... |
import { useBlockTranscations } from '@app/hooks/useBlockTranscation'
import { DEFAULT_TITLE } from '@app/utils'
import { css, cx } from '@emotion/css'
import { IconCommonSearch } from '@app/assets/icons'
import { useGetBlockTitleTextSnapshot } from '@app/components/editor'
import { StoryListItem, StoryListItemValue } ... |
import TransportNodeHid from '@ledgerhq/hw-transport-node-hid';
import Nano from 'hw-app-nano';
import * as rx from 'rxjs';
import { ipcMain } from 'electron';
const STATUS_CODES = {
SECURITY_STATUS_NOT_SATISFIED: 0x6982,
CONDITIONS_OF_USE_NOT_SATISFIED: 0x6985,
INVALID_SIGNATURE: 0x6a81,
CACHE_MISS: 0x6a82
... |
// This file is part of phosphor-float-area, copyright (C) 2017 BusFaster Ltd.
// Released under the MIT license, see LICENSE.
import { Message } from '@phosphor/messaging';
import { ElementExt } from '@phosphor/domutils';
import { IDragEvent } from '@phosphor/dragdrop';
import { Widget, DockPanel } from '@phosphor/wi... |
import {
SlashCommandAssertions,
SlashCommandBooleanOption,
SlashCommandBuilder,
SlashCommandChannelOption,
SlashCommandIntegerOption,
SlashCommandMentionableOption,
SlashCommandNumberOption,
SlashCommandRoleOption,
SlashCommandStringOption,
SlashCommandSubcommandBuilder,
SlashCommandSubcommandGroupBuilder,
... |
<filename>Tests/lib/taskRunner.ts<gh_stars>0
/// <reference path="../../definitions/node.d.ts"/>
/// <reference path="../../definitions/Q.d.ts"/>
/// <reference path="../../definitions/shelljs.d.ts"/>
/// <reference path="../../definitions/vsts-task-lib.d.ts"/>
import Q = require('q');
import events = require('events'... |
import React, { Component } from "react";
import { connect } from "react-redux";
import ReactMarkdown from "react-markdown";
import gfm from "remark-gfm";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { dracula, prism } from "react-syntax-highlighter/dist/esm/styles/prism";
import bear f... |
import { action, createModule, mutation } from "vuex-class-component";
import { ContractMethods, EthAddress } from "@/types/bancor";
import { shrinkToken } from "@/api/eth/helpers";
import {
buildGovernanceContract,
buildTokenContract
} from "@/api/eth/contractTypes";
import { CallReturn } from "eth-multicall";
imp... |
import AsyncStorage from "@react-native-community/async-storage"
import { LegacyNativeModules } from "app/NativeModules/LegacyNativeModules"
import { navigate } from "app/navigation/navigate"
import { getCurrentEmissionState, unsafe__getEnvironment } from "app/store/GlobalStore"
import { GlobalStore, unsafe_getUserAcce... |
import { Injectable } from '@nestjs/common';
import * as admin from 'firebase-admin';
import * as _ from 'lodash';
import { DeviceRepository } from 'src/devices/devices.repository';
import { DeviceEsp } from 'src/devices/models/device.model';
import { RedisCacheService } from 'src/redis-cache/redis-cache.service';
impo... |
import * as R from 'ramda';
import { CopperActivity, CopperActivityType, CopperCustomField, CopperLead, CopperOpportunity } from '../../entities';
const ONE_SECOND = 1000;
export type CopperSearchResponse = CopperLeadResponse | CopperActivityResponse | CopperOpportunityResponse;
export interface CopperLeadResponse {
... |
import { MODULE_DEFINITION_METADATA, MODULE_REF_IMPL_METADATA } from '@di/constants';
import { DynamicInjector } from '@di/core/dynamic-injector';
import { Injector, NOT_FOUND, ProviderResolvable } from '@di/core/injector';
import { ModuleContainer } from '@di/core/module-container';
import { ModuleDef, ModuleRef, ɵMod... |
<reponame>NLeSC/LIEStudio
/**
* Component MDComponent
*
* Inspect Molecular Dynamics runs part of the current project.
* - Visualize trajectory information as a time series plot with time
* range selection support (visuals using D3.js)
* - Inspect key MD parameters in a data table
* - Modify parameters for si... |
import type ethersType from "ethers";
import {
contractsResolver,
stakingAdapter,
} from "../utils/ethereum/adapter/base";
import * as masterChef from "../utils/ethereum/adapter/masterChef";
import * as ethereum from "../utils/ethereum/base";
import * as cache from "../utils/cache";
import { bignumber as bn, ether... |
import * as util from 'util';
import { PrimitiveType } from '@jsii/spec';
import * as reflect from 'jsii-reflect';
export interface LinterOptions {
/**
* List of rules to include.
* @default all rules
*/
include?: string[];
/**
* List of rules to exclude (takes precedence on "include")
* @default... |
<reponame>Ecocytus/python-program-analysis<filename>src/log-slicer.ts
import { Cell } from './cell';
import { CellSlice } from './cellslice';
import { DataflowAnalyzer } from './data-flow';
import { CellProgram, ProgramBuilder } from './program-builder';
import { LocationSet, slice, SliceDirection } from './slice';
imp... |
<reponame>jakzaizzat/gallery<filename>src/components/WalletSelector/walletUtils.ts<gh_stars>10-100
import { JsonRpcSigner, Web3Provider } from '@ethersproject/providers';
import GNOSIS_SAFE_CONTRACT_ABI from 'abis/gnosis-safe-contract.json';
import { keccak256 } from '@ethersproject/keccak256';
import { toUtf8Bytes } f... |
import {
Button,
Divider,
ListItemIcon,
makeStyles,
MenuItem,
MenuItemProps,
Typography,
} from "@material-ui/core";
import { GatewaySession } from "@renproject/ren-tx";
import classNames from "classnames";
import React, { FunctionComponent, useCallback, useState } from "react";
import {
ActionButton,
... |
import { uniq } from 'lodash'
import { Literal } from './token'
/**
* List of languages that is shown initially when the `lang:` filter doesn't
* have a value yet.
*/
export const POPULAR_LANGUAGES: string[] = [
'Assembly',
'Bash',
'C',
'C++',
'C#',
'CSS',
'Dart',
'Elixir',
'Erl... |
import { Middleware, NextFunction } from "@feathersjs/hooks";
import {
ConfigFolderName,
EnvStateFileNameTemplate,
err,
FxError,
InputConfigsFolderName,
Inputs,
Json,
ok,
Result,
StatesFolderName,
} from "@microsoft/teamsfx-api";
import * as fs from "fs-extra";
import * as path from "path";
import {... |
// Copyright 2021 The LUCI 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 agreed... |
<reponame>taimanhui/blockchain-libs
import { defaultAbiCoder } from '@ethersproject/abi';
import BigNumber from 'bignumber.js';
import { fromBigIntHex } from '../../../basic/bignumber-plus';
import { check } from '../../../basic/precondtion';
import { JsonRPCRequest } from '../../../basic/request/json-rpc';
import { C... |
import { Time } from 'web3-units'
import {
quantilePrime,
getInverseCDFSolidity,
std_n_pdf,
getStableGivenRiskyApproximation,
getRiskyGivenStableApproximation,
getInvariantApproximation,
getMarginalPriceSwapRiskyIn,
getMarginalPriceSwapRiskyInApproximation,
getMarginalPriceSwapStableInApproximation,
... |
import { Injectable } from '@angular/core';
import { SolidSession } from '../models/solid-session.model';
declare let solid: any;
declare let $rdf: any;
//import * as $rdf from 'rdflib'
// TODO: Remove any UI interaction from this service
import { NgForm } from '@angular/forms';
import { ToastrService } from 'ngx-toas... |
import createLogger from 'debug'
// @ts-ignore
import toMarkdown from 'html-to-md'
import {
CodeAction,
createConnection,
Hover,
InitializeResult,
ProposedFeatures,
Range,
TextDocument,
TextDocuments,
} from 'vscode-languageserver'
import { Grammarly } from '../grammarly'
import { DEFAULT_SETTINGS, Gram... |
<reponame>druid-matt/turnilo<filename>src/server/utils/settings-manager/settings-manager.ts
/*
* Copyright 2015-2016 Imply Data, Inc.
* Copyright 2017-2019 Allegro.pl
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
import tl = require("azure-pipelines-task-lib/task");
import tr = require("azure-pipelines-task-lib/toolrunner");
import { IDependabotUpdate } from "./models/IDependabotUpdate";
import getConfigFromInputs from "./utils/getConfigFromInputs";
import parseConfigFile from "./utils/parseConfigFile";
function getGithubEndPo... |
<filename>src/app/module/format-input/src/component/format-input/format-input.component.ts<gh_stars>0
import {
Component,
ElementRef,
EventEmitter,
forwardRef,
Input,
OnInit,
Output,
Renderer2,
ViewChild
} from '@angular/core';
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from "@angular/forms";
@... |
<gh_stars>0
import {Array2} from "./array2";
import {ChallengeFromFile} from "./challenge";
import {ChallengeRegistry} from "./challenge_registry";
type Coord = [number, number];
type Coords = Coord[];
type Area = Array2<Uint8Array>;
type Population = Array2<Uint8Array>;
function buildNeighnourLists(
width: number... |
import Node from "./Node";
import Edge from "./Edge";
import EdgeRing from "./EdgeRing";
import { flattenEach, coordReduce } from "@turf/meta";
import { featureOf } from "@turf/invariant";
import {
FeatureCollection,
LineString,
MultiLineString,
Feature,
} from "@turf/helpers";
/**
* Validates the geoJson.
*... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import * as React from "react";
import { toUpper } from "lodash";
import moment from "moment";
import {
Customizer,
FontIcon,
IStackTokens,
Label,
mergeStyleSets,
Stack,
Text
} from "office-ui-fabric-react";
import strings from "RestaurantMenuWebPartStrings";
import { DisplayMode } from "@microsoft/sp-c... |
<filename>walkupEnv/share/jupyter/lab/staging/node_modules/vega-lite/src/compositemark/errorbar.ts
import {Channel} from '../channel';
import {Config} from '../config';
import {Data} from '../data';
import {Encoding, extractTransformsFromEncoding} from '../encoding';
import {Field, isContinuous, isFieldDef, PositionFie... |
<reponame>Jason-Rev/vscode-spell-checker
/**
* This helper is to help with matching possible configuration targets to configuration fields.
*/
import { uriToName } from 'common-utils/uriHelper.js';
import * as vscode from 'vscode';
import { toUri } from '../util/uriHelper';
import {
ClientConfigKind,
ClientC... |
import Chart, { ChartTooltipItem } from 'chart.js';
import spearson from 'spearson';
import { analyzedStats } from '../assets/AnalyzedStats';
import { individualStats } from '../assets/IndividualStats';
var Plotly = require('plotly.js-cartesian-dist');
var { PCA } = require('ml-pca');
// // dataset is a two-dimension... |
import BN from 'bn.js';
import { SagaIterator, buffers, delay } from 'redux-saga';
import {
apply,
put,
select,
take,
actionChannel,
call,
fork,
race,
cancel,
takeEvery
} from 'redux-saga/effects';
import { AddressMessage } from 'config';
import { INode } from 'libs/nodes/INode';
i... |
import { vec3, quat } from 'gl-matrix';
import { lerp, hermite, bezier } from '../../../common/math';
import { Animation, UintAnimation, FloatAnimation, Vector3Animation, InterpolationType } from '../../../parsers/mdlx/animations';
import MdxModel from './model';
/**
* Animated data for a specific sequence.
*/
class... |
<reponame>vitalics/playwright<filename>packages/playwright-test/src/plugins/webServerPlugin.ts
/**
* Copyright (c) Microsoft 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
... |
import ReactPlayer from 'react-player';
import {
createRef, useEffect, useMemo, useState,
} from 'react';
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/outline';
import { useRouter } from 'next/router';
import ReactMarkdown from 'react-markdown';
import InfiniteScroll from 'react-infinite-scroll-... |
import * as React from 'react'
import * as Kb from '../../../../../common-adapters/mobile.native'
import * as Styles from '../../../../../styles'
import throttle from 'lodash/throttle'
import {Props} from '.'
import SharedTimer, {SharedTimerID} from '../../../../../util/shared-timers'
// If this image changes, some ha... |
<reponame>ComradePotat0/limbo
import { parseEther } from "ethers/lib/utils";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/dist/src/signers";
import { BigNumber, Contract, ContractFactory } from "ethers";
import { fstat, write, writeFileSync, existsSync, readFileSync } from "fs";
import * as deployments ... |
<filename>src/consumer/config/component-config.ts
import pMapSeries from 'p-map-series';
import R from 'ramda';
import AbstractConfig from './abstract-config';
import { Compilers, Testers } from './abstract-config';
import logger from '../../logger/logger';
import { PathOsBasedRelative, PathOsBasedAbsolute } from '../.... |
<gh_stars>0
// Copyright (c) 2020, <NAME> <<EMAIL>>
//
// Use of this source code is governed by an ISC-style
// license that can be found in the LICENSE file.
// Based on <NAME>'s talk, Lexical Scanning in Go:
// https://talks.golang.org/2011/lex.slide
export const alpha = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNO... |
import React from 'react';
import uuid from 'uuid/v4';
import { DateTime } from 'luxon';
import { Omit } from 'utility-types';
import withStyles, { css, WithStylesProps } from '../../composers/withStyles';
import BaseSelect from '../private/BaseSelect';
import { SelectProps } from '../private/FormInput';
import FormFie... |
import {store} from "Store";
import {SubscriptionClient} from "subscriptions-transport-ws";
import {RunInAction} from "web-vcore";
import {ApolloClient, ApolloLink, FetchResult, from, gql, HttpLink, InMemoryCache, NormalizedCacheObject, split} from "web-vcore/nm/@apollo/client.js";
import {getMainDefinition, onError, W... |
import { Async } from '@fluentui/utilities';
import { ISettingsMap } from '@fluentui/utilities/lib/warn';
import { IWarnControlledUsageParams } from '@fluentui/utilities/lib/warn';
import { Point } from '@fluentui/utilities';
import * as React from 'react';
export declare type ChangeCallback<TElement extends HTMLEleme... |
<reponame>RubinderS/NodeHotKey
/*******************************************************************************************
* *
* ███╗ ██╗ ██████╗ ██████╗ ███████╗██╗ ██╗ ██████╗ ████████╗██╗ ██╗███████╗██╗ ██╗ *
* ████╗ ... |
import { Logger } from '../../../cli';
import { CommandOption } from '../../../Command';
import GlobalOptions from '../../../GlobalOptions';
import request from '../../../request';
import YammerCommand from '../../base/YammerCommand';
import commands from '../commands';
interface CommandArgs {
options: Options;
}
i... |
<reponame>sanraith/aoc2021
import SolutionBase from '../core/solutionBase';
import { solutionInfo } from '../core/solutionInfo';
type Point = { x: number; y: number; };
type Crab = { type: string; pos: number; };
type MapInfo = {
map: string[];
crabs: Crab[];
validPositions: Set<number>,
hallway: numbe... |
<filename>src/DomainServer.ts
//
// DomainServer.ts
//
// Vircadia Web SDK's Domain Server API.
//
// Created by <NAME> on 8 Jul 2021.
// Copyright 2021 Vircadia contributors.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.... |
<filename>packages/display/src/event/Dispatcher.ts
/*
* Copyright (C) 2019-2021 HERE Europe B.V.
*
* 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/... |
<filename>src/o365/azmgmt/commands/flow/flow-export.ts<gh_stars>0
import auth from '../../AzmgmtAuth';
import config from '../../../../config';
import commands from '../../commands';
import GlobalOptions from '../../../../GlobalOptions';
import * as request from 'request-promise-native';
import {
CommandOption,
Com... |
<filename>lib/services/log-source-map-service.ts
import * as path from "path";
import * as util from "util";
import * as sourcemap from "source-map";
import * as sourceMapConverter from "convert-source-map";
import { stringReplaceAll } from "../common/helpers";
import { ANDROID_DEVICE_APP_ROOT_TEMPLATE, APP_FOLDER_NAME... |
<reponame>torinmb/deeplearnjs
/* Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<filename>source/facades/vault.ts
import { consumeEntryFacade, createEntryFacade } from "./entry";
import { idSignifiesNew } from "./tools";
import { FACADE_VERSION } from "./symbols";
import Entry from "../core/Entry";
import Group from "../core/Group";
import Vault from "../core/Vault";
import { EntryFacade, GroupFac... |
import { DataTestProp } from '@hazelcast/helpers'
import React, { FocusEvent, InputHTMLAttributes, ReactElement, useMemo } from 'react'
import cn from 'classnames'
import ReactSelect, { ActionMeta, components, MultiValueProps, Props as ReactSelectProps, ValueType } from 'react-select'
import ReactSelectCreatable from '... |
import { Neovim } from '@chemzqm/neovim'
import { Disposable } from 'vscode-languageserver-protocol'
import events from './events'
import Increment from './increment'
import Complete from './model/complete'
import Document from './model/document'
import sources from './sources'
import { CompleteConfig, CompleteOption, ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
<reponame>Simsteve7/ng-kaart
import { option } from "fp-ts";
import * as ol from "../util/openlayers-compat";
import { Tekenresultaat, TekenSettings } from "./kaart-elementen";
import * as prt from "./kaart-protocol";
import { Laagtabelinstellingen } from "./kaart-protocol";
import { InfoBoodschap } from "./kaart-wit... |
<reponame>fanatid/llparse<filename>src/implementation/js/compilation.ts
import * as assert from 'assert';
import { Buffer } from 'buffer';
import * as frontend from 'llparse-frontend';
import {
CONTAINER_KEY, STATE_ERROR,
ARG_CURRENT, ARG_BUF, ARG_OFF,
VAR_MATCH,
STATE_PREFIX, BLOB_PREFIX, TABLE_PREFIX,
SEQU... |
<gh_stars>100-1000
import { Api } from '../../api/api.service';
import { Model } from '../../model/model.service';
import { Game } from '../game.model';
import { GamePackage } from '../package/package.model';
import { GameRelease } from '../release/release.model';
import { GameBuildFile } from './file/file.model';
impo... |
// Copyright 2021, Nitric Technologies Pty Ltd.
//
// 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 l... |
import { helpers, PHASE, PLAYER } from "../../../common";
import type { GetLeagueOptions } from "../../../common/types";
import { LATEST_SEASON, LATEST_SEASON_WITH_DRAFT_POSITIONS } from "./getLeague";
import getOnlyRatings from "./getOnlyRatings";
import type { Basketball, Ratings } from "./loadData.basketball";
impor... |
import { player, saveSynergy, blankSave, clearInt, format, intervalHold, constantIntervals, createTimer, loadSynergy, isTesting } from './Synergism';
import { getElementById } from './Utility';
import LZString from 'lz-string';
import { achievementaward } from './Achievements';
import { Globals as G } from './Variables... |
import { Component, ElementRef, Input, OnDestroy, ViewChild } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Follow } from 'app/core/core-services/model-request-builder.service';
import { UnsafeHtml } from 'app/core/definitions/key-types';
import { ComponentServiceCollector } fro... |
<gh_stars>1-10
import { inspect } from '../jsutils/inspect';
import { invariant } from '../jsutils/invariant';
import type { Maybe } from '../jsutils/Maybe';
import { print } from '../language/printer';
import { printBlockString } from '../language/blockString';
import type { GraphQLSchema } from '../type/schema';
im... |
import React, { PureComponent } from 'react'
import { Mask as _Mask, MASKS } from './default-masks'
import { findLastIndex, memoize } from '@myntra/uikit-utils'
import classnames from './input-masked.module.scss'
export type Mask = _Mask
export interface Props extends BaseProps {
/**
* The required pattern for ... |
<filename>js/src/factories.ts<gh_stars>1-10
// 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 Lice... |
<reponame>richardsimko/k8s-deploy
'use strict';
import * as core from '@actions/core';
import * as fs from 'fs';
import * as yaml from 'js-yaml';
import * as path from 'path';
import * as kubectlutility from './kubectl-util';
import * as io from '@actions/io';
import { isEqual } from "./utility";
import * as ... |
<gh_stars>100-1000
import { ApolloClient } from 'apollo-client';
import { DocumentNode, FieldNode } from 'graphql';
import { fromIntrospectionQuery } from 'graphql-2-json-schema';
import { JSONSchema7 } from 'json-schema';
import { cloneDeep, get, has, map, merge, reduce, set } from 'lodash';
import { introspectionQuer... |
<reponame>vanja-san/x-minecraft-launcher
import LauncherAppController from '@main/app/LauncherAppController';
import { LAUNCHER_NAME } from '@main/constant';
import { BrowserWindow, BrowserWindowConstructorOptions, Client, Dialog, Dock, Menu, MenuItem, MenuItemConstructorOptions, Notification, NotificationConstructorOp... |
import {
AfterContentChecked,
ChangeDetectorRef,
Component,
OnInit,
TemplateRef,
ViewChild,
} from "@angular/core";
import {
AbstractControl,
AsyncValidatorFn,
FormBuilder,
FormGroup,
ValidationErrors,
ValidatorFn,
Validators,
} from "@angular/forms";
import { Error, Repository } from "@models... |
<filename>src/management/api/portal/documentation/pages/page/apiPage.controller.ts
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 Lic... |
<gh_stars>0
//
// 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 ... |
import * as fs from "fs";
import * as vs from "vscode";
import * as as from "../../shared/analysis_server_types";
import { Logger } from "../../shared/interfaces";
import { errorString } from "../../shared/utils";
import { fsPath } from "../../shared/utils/fs";
import { DasAnalyzerClient } from "../analysis/analyzer_da... |
import { UUID, Policy, Timestamp, Recorded, Rule, PolicyMetadata } from '@mds-core/mds-types'
import { now, NotFoundError, BadParamsError, AlreadyPublishedError } from '@mds-core/mds-utils'
import log from '@mds-core/mds-logger'
import schema from './schema'
import { vals_sql, cols_sql, vals_list, SqlVals } from './s... |
<reponame>riwa0803/EPNS_test<filename>src/showrunners/aaveChannel.ts<gh_stars>1-10
// @name: Aave Channel
// @version: 1.0
import { Service, Inject } from 'typedi';
import config from '../config';
import channelWalletsInfo from '../config/channelWalletsInfo';
import { EventDispatcher, EventDispatcherInterface } from '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.