text stringlengths 3.08k 15.5k |
|---|
import * as vscode from 'vscode'
import * as path from 'path'
import * as fs from 'fs'
import { BlitzMax } from './blitzmax'
interface multiBmxPath {
name: string
path: string
}
export class MultiBmxTreeProvider implements vscode.TreeDataProvider<vscode.TreeItem> {
private _onDidChangeTreeData: vscode.EventEmitt... |
<gh_stars>1-10
'use strict';
import fs = require('fs');
import path = require('path');
import YeomanGenerator = require('yeoman-generator');
import { Editor } from 'mem-fs-editor';
import yosay = require('yosay');
import IProjectConfig = require('../generators/app/interfaces/project-config');
import IProjectInput = r... |
<filename>src/validator-factory.ts
import { validatorsMap } from "./validators-map";
const createFieldValidator = (
fieldConfig: { [k: string]: any[] },
fieldName: string
) => {
/* if(!Object.is(fieldConfig)) {
throw new Error("The fieldConfig object must be an object.")
} */
// list of function to be... |
import { ConnectionState, Message, MQTTClient, OnConnectedParams } from "nativescript-mqtt";
/// <reference path="./custom-matchers.d.ts" />
function generateClient() {
return new MQTTClient({
host: "broker.mqttdashboard.com",
path: "/mqtt",
port: 8000
});
}
function generateBadClient(... |
<filename>test/value/value2d.test.ts<gh_stars>0
import test from 'ava';
import { aleaFactory } from '../../src/random/randomIndex';
import { valueNoise2dFactory as noiseGenerator } from '../../src/squeaker';
import { getRandomLargePrime } from '../../src/util';
import { xyPair } from '../testUtil';
const _testing = (... |
import { BrowserWindow, ipcMain, protocol } from 'electron'
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
import { Blacklist } from '../FilterList'
import path from 'path'
import { non_renderer_requests_client } from './nonRendererRequestsClient'
import { existsSync, mkdirSync, writeFile, readFil... |
import type BigNumber from 'bignumber.js'
import type { BigNumberValue } from 'utils/math/types'
import { normalize, valueToBigNumber, valueToZDBigNumber } from 'utils/math'
import { LTV_PRECISION, RAY_DECIMALS, SECONDS_PER_YEAR } from 'app/App/constants'
import { RAY, rayPow } from 'utils/math/ray'
import { nativeToUS... |
import type { IProviderInfo } from 'web3modal';
import type { Web3ModalConfig, Web3ModalProvider } from '../hooks/useWeb3Modal';
import { useState, useMemo, useEffect, createContext } from 'react';
import styled from 'styled-components';
import WalletConnectProvider from '@walletconnect/web3-provider';
// Styles
impor... |
<filename>src/app/models/MatchBreakdownRow.ts
export class MatchBreakdownConstants {
trueValue = -1000;
falseValue = -2000;
}
export class MatchBreakdownRow {
isTitle: boolean;
name: string;
red: number | string;
blue: number | string;
redPoints: number;
bluePoints: number;
isVelocityVortexParking: b... |
import * as Os from "os";
import * as Fs from "fs";
import * as Path from "path";
import * as Pty from "node-pty";
import * as ChildProcess from "child_process";
import * as SocketIo from "socket.io";
// Source
import * as Interface from "./Interface";
import * as Config from "./Config";
import * as Helper from "./Help... |
import flatten from 'arr-flatten';
import { AsyncSeriesBailHook } from 'tapable';
import { URL } from 'url';
import join from 'url-join';
import { ICommitAuthor, IExtendedCommit } from './log-parse';
import { ILabelDefinitionMap } from './release';
import { ILogger } from './utils/logger';
import { makeChangelogHooks ... |
import React, { FC, useEffect, useState, useCallback } from 'react';
import classNames from 'classnames';
import Typography from '@material-ui/core/Typography';
import useTransaction from '../../hooks/useTransaction';
import { useStores } from '../../store';
import { filterOverviewWithAll } from '../../constants';
im... |
<reponame>juresternad/Orakelj1<gh_stars>0
import retry from 'retry';
import { Client, ITxMiddlewareHandler } from './client';
export interface IEthReceipt {
transactionHash: string;
transactionIndex: string;
blockHash: string;
blockNumber: string;
gasUsed: string;
cumulativeGasUsed: string;
... |
import * as React from 'react'
const Collapse = require('antd/lib/collapse')
const Popconfirm = require('antd/lib/popconfirm')
const Tooltip = require('antd/lib/tooltip')
const Button = require('antd/lib/button')
const Select = require('antd/lib/select')
const Table = require('antd/lib/table')
const Icon = require('ant... |
<reponame>powercord-org/powercord-backend
/*
* Copyright (c) 2018-2021 aetheryx & <NAME>
*
* 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 limitati... |
import * as fs from "fs";
import * as readline from "readline";
import { arraysEqual } from "./helpers";
type Cell = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
type Board = [Cell, Cell, Cell, Cell, Cell, Cell, Cell, Cell, Cell];
type TNode = {
board: Board;
father?: TNode;
};
type Solution = {
length: number;
final... |
<reponame>applitools/vscode-screenshots<filename>ext-src/applitools/ApplitoolsWebViewPanel.ts
import * as path from 'path';
import * as vscode from 'vscode';
import Screenshot from '../../src/models/Screenshot';
import { eErrors } from '../../src/modules/common/utils';
import { updateSettings, getSettings, runApplitool... |
<gh_stars>0
import { EventEmitter } from 'events';
import { logger } from '@esss-swap/duo-logger';
import gm from 'gm';
import delay from 'lodash/delay';
import { FileMetadata } from '../../models/File';
import {
generatePdfFromLink,
generatePuppeteerPdfFooter,
getTotalPages,
} from '../../pdf';
import services... |
import * as React from 'react';
import { Button, Platform, ScrollView, StyleSheet, Text, View, RefreshControl, ViewStyle } from 'react-native';
import { Interstitial, Banner, NativeAdsManager, AdLoadedEvent, AdFailedToLoadEvent } from 'react-native-ad-manager';
import NativeAdView from './NativeAdView';
const BannerEx... |
<gh_stars>10-100
import { ConvertError, parseRecord } from "./convert-utils";
import { printHighlightedExpr } from "./error-report";
import { readFromString } from "./reader";
import {
ASExpr,
ASExprList,
ASExprMap,
ASExprSymbol,
ASExprVector,
isSymbolOfName,
} from "./sexpr";
import { normalizeValues as do... |
import { UnlockedHealthPlanFormDataType } from './UnlockedHealthPlanFormDataType'
import { LockedHealthPlanFormDataType } from './LockedHealthPlanFormDataType'
import { HealthPlanFormDataType } from './HealthPlanFormDataType'
import { RateDataType } from '.'
import { formatRateNameDate } from '../../common-code/dateHel... |
import {
ApolloContext,
ContextNodeType,
hasContextFn,
NodeInstance,
NodeState,
ServerNodeDef
} from '@masterthesis/shared';
import { Db, ObjectID } from 'mongodb';
import { Log } from '../../logging';
import { Omit } from '../../main';
import { getNodeType, tryGetNodeType } from '../nodes/all-nodes';
impo... |
import RequestQueue from '@/api/request-queue';
import CachedPromise from '@/api/cached-promise';
import { CancelToken, Canceler } from 'axios';
export type IKeysMatch<T, V> = {[K in keyof T]-?: T[K] extends V ? K : never}[keyof T]; // 根据value类型找key
export type IAgentStatus = 'running' | 'terminated' | 'not_installed... |
<filename>lib/chats/verify.ts
import { Commands, HandlingMessage, FormatVerify } from "../typings";
import { WAConnection, MessageType } from '@adiwajshing/baileys';
import { RandomOtp, Buffer, RandomName } from '../functions/function';
import { Indverifikasi, IndSdhVerifikasi } from '../lang/ind';
import { Connect... |
import test from "ava";
import { World } from "../../src/World";
import { System } from "../../src/System";
import { Component } from "../../src/Component";
import { createType, copyCopyable, cloneClonable, Types } from "../../src/Types";
import { Vector3 } from "../helpers/customtypes";
var CustomTypes = {
Vector... |
import { createStore } from "vuex"
import API from "../utils/API"
import {
getCurPath,
joinFileURL,
popURL,
normalizeURL,
getLastDirName,
getFriendlyFileName
} from "../utils/URL";
import { DirInfo } from "../jsgen/DirInfo";
import { File } from "../jsgen/File";
import { chunk } from "../utils/Misc";
const... |
<reponame>d2s/vscode-spell-checker<filename>packages/client/src/settings/CSpellSettings.ts
import * as fs from 'fs-extra';
import * as json from 'comment-json';
import * as path from 'path';
import { CSpellUserSettingsWithComments } from '../server';
import { unique, uniqueFilter } from '../util';
import { Uri } from '... |
<filename>packages/passport/src/service/passport.ts
import * as passport from 'passport';
import {
App,
Config,
Inject,
Provide,
Scope,
ScopeEnum,
} from '@midwayjs/decorator';
import { getPassport, isExpressMode } from '../util';
import { AbstractPassportMiddleware, AbstractStrategy } from '../interface';
... |
/**
* This webpack resolver is largely based on TypeScript's "paths" handling
* The TypeScript license can be found here:
* https://github.com/microsoft/TypeScript/blob/214df64e287804577afa1fea0184c18c40f7d1ca/LICENSE.txt
*/
import path from "path";
// import { ResolvePlugin } from 'webpack'
// @ts-ignore
import { ... |
<reponame>blocklang/codemods
import { Project, CallExpression, FunctionDeclaration, SourceFile } from 'ts-morph';
import * as path from 'path';
import * as fs from 'fs';
import { PageModel, Dependency } from '../interfaces';
import {camelCase, upperFirst} from 'lodash';
import { renderPage } from './pageRender';
import... |
<reponame>Nicolas82/APSIOCOIN-Kepper
import BigNumber from '@waves/bignumber';
import { Asset, Money } from '@waves/data-entities';
import { getAssetIdByName } from 'assets/utils';
import { AccountBalance, SwopFiExchangerData } from 'ui/reducers/updateState';
import { fetchGetMoney } from './api';
export function getA... |
<gh_stars>0
import { essentialsConnector } from 'src/components/ConnectWallet/EssentialsConnectivity';
import WalletConnectProvider from '@walletconnect/web3-provider';
import Web3 from 'web3';
import { WalletConnectConnector } from '@web3-react/walletconnect-connector';
import { create } from 'ipfs-http-client';
impor... |
<reponame>erfanium/fastest-validator
/// <reference path="../../../index.d.ts" /> // here we make a reference to exists module definition
import ValidatorType, { RuleNumber, ValidationSchema } from 'fastest-validator'; // here we importing type definition of default export
const Validator: typeof ValidatorType = requi... |
import { SqlFactory } from './mssql';
export interface SQLFunctions {
insertObject: (tableName: string, data: { [key: string]: any } | Array<{ [key: string]: any }>) => any;
bulkInsert: (
tableName: string,
data: Array<{ [key: string]: any }>
) => Promise<{ executionTime: number; rowsAffect... |
import React from 'react';
import { MediaProvider } from '@atlaskit/editor-common/provider-factory';
import {
media,
mediaGroup,
mediaSingle,
mediaSingleWithCaption,
} from '@atlaskit/adf-schema';
import { EditorPlugin, PMPluginFactoryParams } from '../../types';
import {
stateKey as pluginKey,
createPlugin... |
<reponame>Baha-sk/tink
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {Aead} from '../aead/internal/aead';
import {InvalidArgumentsException} from '../exception/invalid_arguments_exception';
import {SecurityException} from '../exception/security_exception';
import * as R... |
interface TimeSuggestion {
natural: string
precise?: string
date: Date
}
// Takes an input string and outputs possible dates and times in the future that you might be referring to.
// I'm lazy, so to avoid building a full grammar I assume that the input will contain one alphabetic "word",
// and 0 or more digits... |
import {
useAdminDeleteShippingOption,
useAdminUpdateShippingOption,
} from "medusa-react"
import React, { useEffect, useState } from "react"
import { useForm } from "react-hook-form"
import Button from "../../../components/fundamentals/button"
import Input from "../../../components/molecules/input"
import Modal fr... |
<filename>src/index.ts<gh_stars>0
import { EventEmitter } from 'events'
import * as rq from 'request-promise-native'
import * as fs from 'fs'
import * as stream from 'stream'
import poll from './functions/poll'
import { VKError, VKExecuteResponse, VKResponse } from './interfaces/APIResponses'
import UploadedPhoto fro... |
interface SceneObserver {
onChange(task: Task);
}
class SceneService {
private observerList: SceneObserver[] = [];
public taskList: Task[] = [];
public monsterList: Monster[] = [];
private static instance;
private callback: Function;
//private monsterPanel: MonsterPanel = new MonsterPanel(... |
import Discord from "discord.js";
import { Util, Message, User, Client } from "discord.js";
import { getMemberColorAsync } from "./Util";
import { config } from "../config";
import db from "quick.db";
const Tinder = new db.table("Tinder"), Emotes = new db.table("Emotes"), guildConfig = new db.table("guildConfig"), User... |
/* eslint-disable no-console, @typescript-eslint/ban-ts-comment */
/*
* A single babel RC for all transpiling, including client and server code.
* When transpiling for node.js, env XARC_BABEL_TARGET should be set to "node"
* and this file will set preset-env targets accordingly.
*/
import ck from "chalker";
import... |
<gh_stars>1-10
import { LectureModelAttr } from '@/database/models/lecture'
import { PeriodModelAttr } from '@/database/models/period'
import Db from '@/db'
import dayIndexToString from '@/modules/day-index-to-string'
import { Q } from '@/modules/sqlb'
import dayjs from 'dayjs'
import express from 'express'
const rout... |
<reponame>lugo7ykh/lemodu
import { documentMeta } from './document-meta'
type Tag = keyof TagMap
type TagMap = HTMLElementTagNameMap
type DefaultTag = 'div'
type DefaultElement = TagMap[DefaultTag]
type DefaultRender = TaggedRender<Tag>
type ItemProps<T extends HTMLElement> = { [K in keyof T]?: T[K] }
type Custom =... |
<gh_stars>0
import { readFileSeparated, toNumber } from "../helpers";
import { Solution } from "..";
const getInput = readFileSeparated("\n", "14", "input");
const getInputTestA = readFileSeparated("\n", "14", "testInputA");
const getInputTestB = readFileSeparated("\n", "14", "testInputB");
const getInputTestC =... |
///<reference path='typings/business-rules-engine/business-rules-engine.d.ts'/>
///<reference path='typings/node/node.d.ts'/>
///<reference path='typings/i18n-2/i18n-2.d.ts'/>
///<reference path='typings/underscore/underscore.d.ts'/>
///<reference path='typings/moment/moment.d.ts'/>
///<reference path='typings/q/q.d.ts... |
import { AppCommand, CommandArgs, CommandResult, ErrorCodes, failure, hasArg, help, longName, shortName, success } from "../../util/commandline";
import { AppCenterClient, models, clientRequest } from "../../util/apis";
import { out, supportsCsv } from "../../util/interaction";
import { inspect } from "util";
import * ... |
import * as React from 'react'
import { format } from 'date-fns'
import { useTranslation } from 'react-i18next'
import { useSelector } from 'react-redux'
import {
getModuleType,
getPipetteNameSpecs,
ProtocolAnalysisOutput,
} from '@opentrons/shared-data'
import {
Box,
Flex,
Icon,
DIRECTION_ROW,
COLORS,... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, { Fragment, useMemo, useState } from 'react'
import {
Header,
Text,
Dropdown,
Flex,
Checkbox,
Box,
Button,
DownloadIcon,
} from '@fluentui/react-northstar'
import { MainContent, Input } from '../components'
import { useAppDispatch, useAppSelector } from '../state/hooks'
import { exportSet... |
import { UniverseEntityOptions, UniverseEntity } from '../_base'
import { Universe } from '../../universe'
import { BaseError } from '../../errors'
export interface NluOptions extends UniverseEntityOptions {
rawPayload?: NluRawPayload
}
export interface NluRawPayload {
readonly id?: string
readonly created_at?... |
<filename>src/ion-range-slider.component.ts
import {ElementRef, OnChanges, SimpleChanges, Input, EventEmitter, Output, Component} from "@angular/core";
declare let jQuery: any;
@Component({
selector: 'ion-range-slider',
template: `<input type="text" value="" />`
})
export class IonRangeSliderComponent impleme... |
import React from "react";
import { IApplicationRecord } from "applications/ApplicationTypes";
import { ApplicationHelper } from "applications/helper/ApplicationHelper";
import Accordion from "components/Accordion/Accordion";
import TextField from "components/Fields/TextField";
import Form, { FormValues } from "compone... |
<filename>src/vs/editor/common/model/textModelWithTokensHelpers.ts<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for licen... |
import _ from 'lodash';
import qs from 'qs';
import React, { useState, useEffect } from 'react';
import { subscribe, MLink } from './utils';
import { Torrents } from './streaming';
import { useParams } from 'react-router-dom';
import useSWR from 'swr';
import { Loading } from './render';
import { Breadcrumbs, Typograph... |
<reponame>JustDre/vscode
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------... |
<filename>src/log.ts<gh_stars>0
//===--- log.ts ------------- Extension Constants ----------- TypeScript --===//
//
// TSAR Advisor (SAPFOR)
//
//===----------------------------------------------------------------------===//
//
// This contains constants for the whole extension. Note that some... |
import * as styles from "../Widgets.scss";
import * as React from "react";
import { Button, ButtonGroup, Divider, Intent, Popover, Position, Tooltip } from "@blueprintjs/core";
import { widgetApi } from "../../../../api/clients/WidgetAPI";
import { widgetTypeApi } from "../../../../api/clients/WidgetTypeAPI";
import... |
<filename>giraffe/src/utils/useDragEvent.ts
import * as React from 'react'
import {useRef, useCallback} from 'react'
import {useForceUpdate} from './useForceUpdate'
// Minimum number of pixels a user must drag before we decide whether the
// action is a vertical or horizontal drag
const MIN_DRAG_DELTA = 3
/**
* Beca... |
/*
* 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
import fs from 'fs';
import path from 'path';
import yargs from 'yargs';
import { TSError, get, set } from '@terascope/utils';
import { ESMapping } from '@terascope/types';
import { DataType, DataTypeConfig } from './index';
import { validateDataTypeConfig } from './utils';
// change pathing due to /dist/src issues
co... |
<reponame>gravitee-io/gravitee-gateway-core<filename>gravitee-apim-console-webui/src/shared/components/gio-table-wrapper/gio-table-wrapper.component.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 excep... |
<reponame>briggySmalls/late-train-mate<filename>src/app/results/results.component.ts
import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ActivatedRoute, Params } from '@angular/router';
import * as moment from 'moment';
import * as assert from 'assert';
import ... |
import { browser } from 'protractor';
import { safeExpectIsDispayed } from '../../helpers/helper';
import { BubbleChart, CommonChartPage } from '../../pageObjects/charts';
import { Slider } from '../../pageObjects/components';
const commonChartPage: CommonChartPage = new CommonChartPage();
const bubbleChart: BubbleCh... |
import immer from 'immer'
import zustand from 'zustand'
import axios, {AxiosResponse} from 'axios'
interface IStoreCreatorConfig {
rowKey?: String
apiPath?: String
store?: Function,
routerPath?: String,
}
export interface IStoreState<IData> {
loading: boolean
data: Array<IData>
page: number
limit: numb... |
<reponame>yonajune/serverless-next.js
import fse from "fs-extra";
import { join } from "path";
import path from "path";
import { ImageBuildManifest, PageManifest } from "@x1.co/core";
import CoreBuilder from "@x1.co/core/dist/build/builder";
import { Manifest, CoreBuildOptions } from "@x1.co/core";
import { LambdaBuild... |
import { S_CURRENT } from '../../libs/common';
import {
getGithubReleases,
getGithubReleasesLatest,
getServerlessReleases,
getServerlessReleasesLatest,
} from './service';
import { RegistryEnum } from '../constant';
import path from 'path';
import { getSetConfig } from './utils';
import { downloadRequest } from... |
#!/usr/bin/env -S node --require ts-node/register
/**
* Simple script for printing out all of the blocks in L2 for a range. This was designed for debugging monotonicity bugs.
*
* Required environment variables:
* START_BLOCK: The first block to query.
* NUMBER_OF_BLOCKS: The number of blocks that should be return... |
<filename>functions/src/functions/subAccount.ts
import * as firebase from "firebase-admin";
import * as functions from "firebase-functions";
// import * as admin from 'firebase-admin';
import * as utils from "../lib/utils";
import isEmail from "validator/lib/isEmail";
import { Context } from "../models/TestType";
e... |
import NoteResource from '../models/NoteResource';
import BaseModel from '../BaseModel';
import BaseService from './BaseService';
import Setting from '../models/Setting';
import shim from '../shim';
import ItemChange from '../models/ItemChange';
import Note from '../models/Note';
import Resource from '../models/Resourc... |
<filename>packages/bot/src/modules/info/docs.ts
// Copyright (c) 2021 Siberian, Inc. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
import {
LunaworkClient,
applicationCommand,
ApplicationCommandOptionType,
} from '@siberianmh/lunawork'
im... |
<gh_stars>0
import { Socket, Namespace } from "socket.io";
import { TextModel } from "@/api/models/text";
import { UserModel } from "@/api/models/user";
import { RoomModel } from "@/api/models/room";
import * as sha256 from "@/api/utils/sha256";
import * as storage from "@/api/utils/storage";
interface JoinParams {
n... |
<gh_stars>1-10
import type { Effect } from "@effect-ts/system/Effect"
import { EffectURI } from "@effect-ts/system/Effect"
import type { Array } from "../Classic/Array"
import type { Async } from "../Classic/Async"
import type { Bounded } from "../Classic/Bounded"
import type { Closure } from "../Classic/Closure"
impo... |
<reponame>FrancisLeigh/accessible-system
interface A11yAction {
name: string;
label: string;
}
interface A11yReturned {
accessible?: boolean;
accessibilityLabel?: string;
accessibilityHint?: string;
accessibilityRole?: string|'none';
accessibilityStates?: any[];
accessibilityElementsHidden?: boolean;
... |
import makeDebug from "debug";
import { strict as assert } from "assert";
import { Middleware as KoaMiddleware } from "koa-compose";
import { Client, ClientOptions } from "./client";
import { Worker, WorkerOptions } from "./worker";
import { Job, JobPayload, JobType } from "./job";
import { Mutation } from "./mutation... |
import React from "react";
import ClientSection from "./client-section.component";
import { SingleClient, AuditSummary } from "../view-client.component";
import dateformat from "dateformat";
import ClientSourceInputsComponent, {
clientSources,
} from "../../add-client/form-inputs/client-source-inputs.component";
impo... |
<gh_stars>1-10
import { CG_BOMB, CG_BULLET, CG_PLAYER, CollideGroup, Config, Entity, EntityAny, RL_BULLET, State } from "./Entity";
import { EntityPool } from "../stage/EntityPool";
import { SCR_HALF_HEIGHT, SCR_HALF_WIDTH } from "../../platform/Screen";
import { ShapePoint, SIPoint, SSPoint } from "../util/Shape";
imp... |
<gh_stars>10-100
/* eslint-disable complexity, consistent-return, max-depth */
import _ from "lodash";
import * as utils from "../utils";
import semver from "semver";
import logger from "../logger";
const findVersion = (name, updateType, collated) => {
const packages = _.get(collated, "opts.data.packages", {});
c... |
import { Conflict } from '@feathersjs/errors';
import { NullableId, Paginated, Params } from '@feathersjs/feathers';
import {
ServiceSwaggerAddon,
ServiceSwaggerOptions,
} from 'feathers-swagger/types';
import { v4 as uuidv4 } from 'uuid';
import { Application } from '../../declarations';
import logger from '../../... |
import { mediaquery, mediaqueryup } from '@styles/media';
import { IPaginator, ITAOAThemeUIContext } from '@types';
import { range } from '@utils';
import { css } from '@emotion/react';
import { SerializedStyles } from '@emotion/serialize';
import styled from '@emotion/styled';
import { Link } from 'gatsby';
import Re... |
<gh_stars>0
// Native
import { join } from 'path'
import { formatDateTime } from './dateTime'
const root = process.cwd()
const year = formatDateTime(new Date(), 'full-year')
// Programmatically handle updating my age.
const age =
new Date().getMonth() > 1 ? parseInt(year) - 1988 : parseInt(year) - 1 - 1988
const b... |
<reponame>rstens/biohubbc-1<gh_stars>0
import { COMPLETION_STATUS } from '../constants/status';
import { Feature } from 'geojson';
import moment from 'moment';
import { getLogger } from '../utils/logger';
const defaultLog = getLogger('models/survey-update');
/**
* Pre-processes GET /project/{projectId}/survey/{surve... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import defu from 'defu'
import type { CreateElement, VNode, VNodeData, VueConstructor } from 'vue'
// eslint-disable-next-line
import type { SanityConfiguration } from '..'
import { extendVue } from '../vue'
interface MarkDefs {
_key: string
_type: string
[key: string]: string
}
interface Children {
_key: st... |
import Phaser from 'phaser'
import { Teams } from './Teams'
import PhysicalEntity from './PhysicalEntity'
import { PlayerEntity } from './Player'
import ClampedNumber from './../utilities/ClampedNumber'
import DefaultEnemyAi from '~/ai/DefaultEnemyAi'
import { TriggeredEquipment } from './TriggeredEquipment'
import { A... |
<filename>packages/core/src/linker/query_list.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 {Observable} from 'rxjs';
import {EventEmitter} from '../eve... |
/*
* 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 * as os from 'os';
import { extname } from 'path';
import { flags, FlagsConfig } ... |
// @ts-nocheck
import sourceMap from 'source-map';
import StackTrace from 'stacktrace-js';
import ignoreListConfig from './ignoreList';
export const SHOPEE_COMPONENT_FILTERS = '__SHOPEE_COMPONENT_FILTERS__';
const filtersString = localStorage.getItem(SHOPEE_COMPONENT_FILTERS);
const filters = filtersString ? JSON.pars... |
import React, { useMemo } from "react";
import styled from "styled-components";
import { useDispatch } from "react-redux";
import { useSelector } from "../../store";
import palette from "../../styles/palette";
import Selector from "../common/Selector";
import { largeBuildingTypeList } from "../../lib/staticData";
impor... |
import BaseLexer, { BaseLexerOptions } from './base-lexer'
import * as ts from 'typescript'
import { BinaryExpression, CallExpression, Node, TaggedTemplateExpression } from 'typescript'
import { ExtractedElement } from '../types/extracted-element.type'
import Logger from '../utils/logger'
import extractNamespaceFromKey... |
<filename>cloud/src/docker/image-ref-parse.ts
/*
* Copyright 2020 Unbounded Systems, 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-... |
import { useEffect, useState } from 'react';
import {
Button,
Form,
Input,
InputNumber,
message,
Modal,
Select,
Table,
TablePaginationConfig,
} from 'antd';
import { db, FtTag, PageParams } from '../database';
import iconList from '../config/iconList.json';
import colorList from '../config/colorList.j... |
import React, { useEffect, useRef, useState } from 'react';
import { ReactWidget } from '@jupyterlab/apputils';
import { Dialog } from '@jupyterlab/apputils';
import { URLExt } from '@jupyterlab/coreutils';
import { ServerConnection } from '@jupyterlab/services';
import {
NAME,
NAMESPACE,
RUN_AUTOMATION_POLLING_I... |
import 'reflect-metadata'
import { Transform, plainToClass, classToPlain, Type, Expose } from 'class-transformer'
import { canonize } from 'jsonld'
import { generateRandomID, sha256 } from '../../utils/crypto'
import { ISignedCredentialAttrs, ISignedCredCreationArgs } from './types'
import { ILinkedDataSignature, IDige... |
import * as React from "react";
import * as sizeMe from "react-sizeme";
import isEqual from "../utils/isEqual";
import CircularViewer from "./Circular/Circular";
import LinearViewer from "./Linear/Linear";
import CentralIndexContext from "./handlers/centralIndex";
/**
* a parent sequence viewer component that holds ... |
import {HardhatRuntimeEnvironment} from "hardhat/types"
import {SAFE_CONFIG, getDefenderClient, CHAIN_NAME_BY_ID, ChainId, AddressString, ChainName} from "../deployHelpers"
import {CONFIG_KEYS} from "../configKeys"
import {AdminClient} from "defender-admin-client"
import {Network} from "defender-base-client"
import {a... |
import {_throw, has, isUd} from './util';
import {validErrorTip, lang, validRegExp} from './v-config';
import PureV from './index';
import {TRule, TValidText, IReg, IRange, ITextValidResult, Json, IJsonValidResult} from './type';
export function validJson (
json: Json<TValidText>,
rules: Json<TRule>
): IJsonVa... |
import { Store } from "redux";
import {
getTurtleMarkerDirection,
getTurtleMarkerPosition,
getTurtleMarkerRotation,
getTurtleTargetPosition,
getTurtleTargetRotation
} from "./state/selectors";
import { Vector } from "./game-types";
const MOVEMENT_VELOCITY = 2;
const ROTATION_VELOCITY = 0;
const MIN_DISTANCE... |
/* ============================================================================
* Copyright (c) Cloud Annotations
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* =========================================================================... |
<reponame>polakdominik/mikro-orm<filename>lib/EntityFactory.ts<gh_stars>0
import { readdirSync } from 'fs';
import { ObjectID } from 'bson';
import { SourceFile } from 'ts-simple-ast';
import Project from 'ts-simple-ast';
import { getMetadataStorage, Options } from './MikroORM';
import { Collection } from './Collectio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.