text stringlengths 3.08k 15.5k |
|---|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// This file defines the different config types.
//
// For each possible kind of config value, we have two types:
//
// One that ends with UserConfig, which represent the config as
// written in the user's config file.
//
// The other one, with the same name except without the User part, represents
// the resolved valu... |
<reponame>TheRealZoid/Games-N-Stuff<filename>snake.ts
import GameBase from './game-base';
import Discord, { Message, MessageEmbed, MessageReaction, User } from 'discord.js';
import Position from './position';
import GameResult, { ResultType } from './game-result';
const WIDTH: number = 15;
const HEIGHT: number = 10;
c... |
<filename>src/hooks/useApproveAndDeposit.ts<gh_stars>1-10
import {
BTC_POOL_NAME,
ChainId,
GW_V1_1_GAS,
POOLS_MAP,
PoolName,
TRANSACTION_TYPES,
Token,
isLegacySwapABIPool,
} from "../constants"
import { enqueuePromiseToast, enqueueToast } from "../components/Toastify"
import { formatDeadlineToNumber, ge... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { mount } from 'enzyme';
import React from 'react';
import { HookWrap... |
<reponame>maloun96/superset-ui
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Vers... |
<reponame>eyalb181/mirrord
import * as vscode from 'vscode';
const semver = require('semver');
const https = require('https');
const k8s = require('@kubernetes/client-node');
const path = require('path');
const os = require('os');
const LIBRARIES: { [platform: string]: [var_name: string, lib_name: string] } = {
'dar... |
import Card from '@theme/components/Card';
import Grid from '@theme/components/Grid';
import Label from '@theme/components/Label';
import Range from '@theme/components/Range';
import { motion, useMotionValue, useTransform } from 'framer-motion';
import React from 'react';
import { AnimationCardContent, Form, Highlighte... |
import { GridsterConfig, GridsterItem, GridsterItemComponentInterface } from 'angular-gridster2';
// https://google.github.io/styleguide/jsoncstyleguide.xml
// https://github.com/tiberiuzuld/angular-gridster2/blob/master/projects/angular-gridster2/src/lib/gridsterConfig.interface.ts
export enum DisplayGrid {
Alway... |
import { List } from 'immutable'
import PropTypes from 'prop-types'
import React, { ReactNode } from 'react'
import styled from 'styled-components'
import { ServerChatMessageType } from '../../common/chat'
import InfiniteScrollList from '../lists/infinite-scroll-list'
import { animationFrameHandler } from '../material/... |
import { Stack, StackProps, SecretValue, CfnOutput } from 'aws-cdk-lib';
import { Artifact } from 'aws-cdk-lib/lib/aws-codepipeline';
import { GitHubSourceAction } from 'aws-cdk-lib/lib/aws-codepipeline-actions';
import { PolicyStatement } from 'aws-cdk-lib/lib/aws-iam';
import { CdkPipeline, ShellScriptAction, SimpleS... |
<reponame>kubejm/apollo-server<gh_stars>1-10
import express from 'express';
import corsMiddleware from 'cors';
import { json, OptionsJson } from 'body-parser';
import {
renderPlaygroundPage,
RenderPageOptions as PlaygroundRenderPageOptions,
} from '@apollographql/graphql-playground-html';
import {
GraphQLOptions,... |
import React from 'react'
import Image from 'next/image'
import Prism from 'prismjs'
import 'prismjs/components/prism-jsx'
import TweetEmbed from './tweet-embed'
import Mermaid from './mermaid'
import { LinkPreview } from '@dhaiwat10/react-link-preview'
import styles from '../styles/notion-block.module.css'
const Ric... |
<filename>x-pack/legacy/plugins/code/server/__tests__/commit_indexer.ts
/*
* 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.
*/
impor... |
import {
dotC4,
dotC6,
magSq4,
ReadonlyVec,
setC,
setC4,
setC6,
Vec,
vop
} from "@thi.ng/vectors";
import { MatOpM, MultiMatOpM } from "./api";
import { det44FromCoeffs, detCoeffs44 } from "./determinant";
const dp4 = dotC4;
const dp6 = dotC6;
/**
* Matrix inversion.
*/
export co... |
import { Vue, Component, Prop, Watch } from "vue-property-decorator";
import { Mutation } from "vuex-class";
import _ from "lodash";
import { Chess } from "chess.js";
import { DrawShape } from "chessground/draw";
import chessboard from "@/components/common/chessboard.vue";
import { Threats } from "@/components/common/... |
import * as path from 'path';
import { FileData } from '../core/file-utils';
import type {
ProjectGraph,
ProjectGraphDependency,
ProjectGraphNode,
TargetConfiguration,
} from '@nrwl/devkit';
import { TargetProjectLocator } from '../core/target-project-locator';
import { normalizePath, DependencyType } from '@nr... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* @summary This sample demonstrates data feed management operations.
* @azsdk-weight 80
*/
// Load the .env file if it exists
import * as dotenv from "dotenv";
dotenv.config();
import {
MetricsAdvisorKeyCredential,
MetricsAdvisorAd... |
<gh_stars>0
import flat from 'array.prototype.flat';
import fs from 'fs';
import {depFile, depGraph, parser} from 'google-closure-deps';
import path from 'path';
import recursive from 'recursive-readdir';
import util from 'util';
import {EntryConfig} from './entryconfig';
import {googBaseUrlPath, inputsUrlPath} from '.... |
import { LogCategories } from 'app/shared/models/constants';
import { LogService } from 'app/shared/services/log.service';
import { BillingMeter } from './../models/arm/billingMeter';
import { ArmService } from 'app/shared/services/arm.service';
import { ArmProviderInfo } from './../models/arm/ArmProviderInfo';
import ... |
<filename>src/formatters/baseFormatter.ts
import { CancellationToken, FormattingOptions, OutputChannel, Range, TextDocument, TextEdit, Thenable, Uri, window, workspace } from 'coc.nvim';
import fs from 'fs-extra';
import md5 from 'md5';
import path from 'path';
import { SemVer } from 'semver';
import { promisify } from... |
import { isArray } from '../common/types';
import { SelectorPrivate, CommandRegistry } from './commands-definitions';
import type { MathfieldPrivate } from '../editor-mathfield/mathfield-private';
import { requestUpdate } from '../editor-mathfield/render';
import { updateAutocomplete, complete } from '../editor-mathf... |
// ----- Imports ----- //
import { cache } from '@emotion/css';
import { CacheProvider } from '@emotion/react';
import { extractCritical } from '@emotion/server';
import type { EmotionCritical } from '@emotion/server/create-instance';
import type { RenderingRequest } from '@guardian/apps-rendering-api-models/rendering... |
<gh_stars>0
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { Type } from '@ephox/katamari';
import Notificati... |
import Document, { Head, Main, NextScript } from "next/document";
import { ServerStyleSheet } from "styled-components";
import getConfig from "next/config";
import React from "react";
import { Colors } from "../consts";
const { publicRuntimeConfig } = getConfig();
interface Props {
styleTags: any;
}
class AppDocu... |
// spell-checker:ignore (vars) ARGX
const cmdShimBase = `% \`<%=shimBinName%>\` (*enhanced* Deno CMD shim; by \`dxi\`) %
@rem:: spell-checker:ignore (shell/CMD) COMSPEC ERRORLEVEL ; (deno) hrtime ; (bin) <%=shimBinName%> <%=denoRunTarget%>
@set "ERRORLEVEL="
@set "DENO_SHIM_ERRORLEVEL="
@setLocal
@set "DENO_SHIM_PIPE=... |
<gh_stars>1-10
import { fetchJson } from './fetch';
export const VQ_ORIGINS = {
WDW: 'https://vqguest-svc-wdw.wdprapps.disney.com' as const,
DL: 'https://vqguest-svc.wdprapps.disney.com' as const,
};
type Resort = keyof typeof VQ_ORIGINS;
type Origin = typeof VQ_ORIGINS[Resort];
const originToResort = {
[VQ_OR... |
import * as $ from 'jquery'
import {
Scroller, debounce, preventDefault,
EmitterMixin, EmitterInterface,
ListenerMixin, ListenerInterface
} from 'fullcalendar'
let rtlScrollSystem = null
/*
A Scroller with additional functionality:
- optional ScrollerCanvas for content
- fired events for scroll start/end
- cros... |
import type { SearchParameters, SearchResults } from 'algoliasearch-helper';
import { createDocumentationMessageGenerator, warning } from '../../lib/utils';
import type { WidgetFactory, WidgetRenderState } from '../../types';
export type AnalyticsWidgetParamsPushFunction = (
/**
* Contains the search parameters, ... |
export interface Callback<T> {
(key: string, value: T | undefined): void;
}
export type MaybeStringOrArray = string | string[] | undefined;
/**
* A topologically ordered map of key/value pairs with a simple API for adding constraints.
*
* Edges can forward reference keys that have not been added yet (the forward... |
import {
Network,
NetworkTransportHandler,
TransportType,
TransportTypes
} from '@xrengine/engine/src/networking/classes/Network'
import { MessageTypes } from '@xrengine/engine/src/networking/enums/MessageTypes'
import { NetworkTransport } from '@xrengine/engine/src/networking/interfaces/NetworkTransport'
impor... |
<filename>x-pack/plugins/ingest_manager/server/services/agents/acks.ts
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import... |
<reponame>lulldev/arrows
import compose from '@arrows/composition/compose'
import * as equal from 'fast-deep-equal/es6'
import {
FirstArgumentError,
NoArgumentsError,
NoMethodError,
NotMethodError,
} from '../errors'
import {
DefaultMethod,
Dispatch,
MethodEntries,
MethodFn,
MultiFn,
Multimethod,
... |
import Form from "@saleor/components/Form";
import Typography from "@material-ui/core/Typography";
import { makeStyles } from "@material-ui/core/styles";
import React from "react";
import { FormattedMessage, useIntl } from "react-intl";
import useStateFromProps from "@saleor/hooks/useStateFromProps";
import { SearchVo... |
<reponame>edjm1971/angular
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {assertDefined, assertEqual} from '../../util/assert';
import {assertLContainerOrU... |
import minimist from 'minimist';
import chalk from 'chalk';
import stripAnsi from 'strip-ansi';
import * as actions from '../lib/actions'
import { appOptions, Log, parseOptions, TSPOptions, tspPackageJSON } from '../lib/system';
import { getTSPackage } from '..';
/* ***************************************************... |
import { gl } from './main';
import { currentShader, setUniformMat } from './shaders';
import { vec3, vec4, mat4 } from 'gl-matrix';
export class Texture {
tex: WebGLTexture;
width: number;
height: number;
constructor(tex: WebGLTexture, width: number, height: number) {
this.tex = tex;
this.width = width;
th... |
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Colors, Typography, Spacing } from '../../theme';
import Divider from '../general/Divider';
import { Challenge } from '../../types/challengeTypes';
import { Avatar } from 'react-native-elements';
import { generateOngoingChallenge... |
import { useState } from "react";
import { Button, RadioGroup, Radio, Icon, ButtonGroup, InputGroup, ControlGroup, HTMLSelect } from "@blueprintjs/core";
import { Classes, Popover2 } from "@blueprintjs/popover2";
import memoizeOne from "memoize-one";
import { spawn } from "child_process";
export type FilterMode = "non... |
/*
* Copyright (c) 2018, Gnock
* Copyright (c) 2018, The Hakcoin Project
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of con... |
<reponame>antonycourtney/tad-pkg
import * as log from "loglevel";
import {
TableRep,
QueryExp,
Schema,
DataSourceConnection,
defaultEvalQueryOptions,
EvalQueryOptions,
DataSourceProvider,
registerProvider,
} from "reltab";
import {
TableInfoMap,
TableInfo,
Row,
ColumnMetaMap,
DataSourceId,
P... |
<gh_stars>1-10
import { StdIOService } from "../extension/services/stdio_service";
import * as f from "../shared/flutter/daemon_interfaces";
import { IAmDisposable, Logger } from "../shared/interfaces";
import { UnknownNotification, UnknownResponse } from "../shared/services/interfaces";
export abstract class FlutterR... |
import * as React from 'react';
import { themes, ThemeVars } from '@storybook/theming';
import { IconButton } from '@storybook/components';
import {
STORY_CHANGED,
SET_STORIES,
DOCS_RENDERED
} from '@storybook/core-events';
import { API, useParameter } from '@storybook/api';
import equal from 'fast-deep-equal';
i... |
<reponame>ppacher/homebot
import { Type, ForwardRef, makePropDecorator, makeDecorator } from '@jsmon/core';
//
// Definition decorator
//
/**
* The type of the Definition decorator
*/
export interface DefinitionDecorator {
/**
* Decorates a class as a request/response definition
*
* @param [desc... |
import { useState, useEffect } from 'react';
import { makeObservable, action, observable, computed } from 'mobx';
import EventEmitter from 'eventemitter3';
import { LogMessage, LogMessage_LogLevel, ClientSentEvent } from '@api/client';
import { GlobalState } from '../lib/state';
export interface TaskState {
id: numb... |
/**
* Datart
*
* Copyright 2021
*
* 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 t... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
<filename>src/room/types/typeTask.d.ts
interface Room {
/** 本tick本room已经发布的任务数量,从1开始 */
taskIndex: number;
/** 创建运输任务 */
createTask<T extends TASK_ANY>(task: Task<T>, force?: boolean): boolean;
/** 判断运输任务是否已经添加 */
hasTask(task: Task<TASK_ANY>): boolean;
/** 分配运输任务 */
assignTaskMain(): v... |
import { throttle } from 'lodash-es'
let DRAG_ITEM: HTMLElement
let DRAG_CONTAINER: HTMLElement
let MOVE_TYPE: string
let innerX: number
let innerY: number
const setDotStyle = (el: HTMLDivElement) => {
el.style.position = 'absolute'
el.style.width = '8px'
el.style.height = '8px'
el.style.backgroundColor = '#f... |
/*
* Rationale for not directly importing types from @types/pino for use in fastify interfaces:
* - pino does not itself provide types so the types from @types must be used.
* - the types from @types are unofficial and the preference is to avoid using them or requiring them as a dependency of fastify.
* - the goal ... |
<filename>packages/common/testing/src/mock_platform_location.ts
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {LocationChangeEvent, LocationChangeListener,... |
<filename>src/transports/xmlhttp.ts<gh_stars>0
import { ILogurTransport, ILogur, IXMLHttpTransportOptions, IXMLHttpTransport, ILogurOutput, TransportActionCallback, ILogurInstanceOptions, IQuery, QueryResult, IInstanceMethodsExtended, IMetadata, XMLHttpRequestCallback } from '../interfaces';
import { LogurTransport } f... |
import { CommonModule } from '@angular/common';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { AngularFireModule } from '@angular/fire/compat';
import { AngularFireStorage... |
<filename>src/interfaces/useTextbox.ts
import { ref, computed, watch, shallowRef, nextTick } from 'vue'
import type { Ref } from 'vue'
import { useCompleteable } from '@baleada/vue-composition'
import type { Completeable, CompleteableOptions } from '@baleada/logic'
import { on, bind } from '../affordances'
import {
u... |
import { hasValidAndroidSigning } from "../common/helpers";
import {
ANDROID_RELEASE_BUILD_ERROR_MESSAGE,
ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE,
} from "../constants";
import { IProjectData, ITestExecutionService } from "../definitions/project";
import { IOptions } from "../declarations";
import { IPlatformEnviron... |
<reponame>TonySherman/aws-connected-device-framework<gh_stars>0
import chalk from "chalk";
import inquirer from "inquirer";
import { Listr, ListrTask } from "listr2";
import { Answers } from "../models/answers";
import { loadModules, Module, ModuleName } from "../models/modules";
import { getCurrentAwsAccountId } from ... |
<filename>src/image-hotel/image-hotel.controller.ts<gh_stars>0
/* eslint-disable @typescript-eslint/ban-ts-comment */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable @typescript-es... |
import React, {useRef, useState} from "react";
import {DownOutlined,PlusOutlined} from '@ant-design/icons';
import {ActionType, ProColumns} from "@ant-design/pro-table";
import {Button, Drawer, Modal, Dropdown, Menu} from 'antd';
import {PageContainer, FooterToolbar} from '@ant-design/pro-layout';
import ProTable from ... |
import React from 'react';
import { IAnimalsResponse, IAnimal } from '../../../../api/animals';
import { AdminMenu } from '../../AdminMenu';
import { Input } from 'antd';
import { Button, ButtonTypes } from '../../../../components/Button';
import '../style/animalListPage.scss';
import noPhotoImage from './../../../../i... |
import path from 'path';
import chalk from 'chalk';
import { Form, FormChoice } from 'enquirer';
import fs from 'fs-extra';
import { copyFiles } from '../../utils/copy';
import { isErrorWithCode } from '../../utils/error';
import { log } from '../../utils/logging';
import { getRandomPort } from '../../utils/port';
im... |
import * as React from "react";
import HorizontalScrollContainer from "./HorizontalScrollContainer";
import "./Code.scss";
interface CodeProps {
resolvedStackFrame: any;
traversalStep: any;
highlighNthCharAfterColumn: any;
}
interface CodeState {
surroundingLineCount: number;
}
export default class Code exte... |
<filename>server/routes/shortUrl.ts
import express from 'express';
import bodyParser from 'body-parser';
import query from '../models/query';
import dayjs from 'dayjs'
const router = express.Router();
const urlencodedParser = bodyParser.urlencoded({ extended: false });
function string10to62(number: number) {
let ch... |
import {
Component,
IComponentBindings,
Initialization,
ComponentOptions,
QueryEvents,
l,
get,
ResultListEvents,
IDisplayedNewResultEventArgs
} from 'coveo-search-ui';
import { ResponsiveUserActions } from './ResponsiveUserActions';
import { arrowDown } from '../../utils/icons';
impo... |
import * as React from 'react';
import { createSelector } from 'reselect'
import { AppState } from '../states/appState';
import { datasetsSelector, colorBarsSelector } from './dataSelectors';
import * as ol from 'openlayers';
import { Dataset, findDataset, findDatasetVariable, getDatasetTimeRange } from '../model/data... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*-----------------------------------------------------------... |
/*
* Copyright 2019 ThoughtWorks, Inc.
*
* 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 agr... |
import React, { FC, useState } from 'react';
import { Provider } from '@project-serum/anchor';
import {
FEE_MULTIPLIER,
SOL_MINT,
useCanSwap,
useDexContext,
useMarket,
useMint,
useOpenOrders,
useOwnedTokenAccount,
useReferral,
useRouteVerbose,
useSwapContext,
useSwapFair,
useTokenMap,
WRAPP... |
import {
SetupContext, computed, toRefs, ref,
} from '@vue/composition-api';
import { CreateElement } from 'vue';
import isFunction from 'lodash/isFunction';
import {
SortInfo, TdPrimaryTableProps, PrimaryTableCol, TableRowData,
} from '../type';
import SorterButton from '../sorter-button';
import useDefaultValue f... |
<reponame>kmwebnet/rainbowtype-server
import express from 'express';
import expressWs from 'express-ws';
import https from 'https';
import fs from 'fs';
import { TLSSocket } from 'tls';
import ws from 'ws';
const devicedata = JSON.parse(fs.readFileSync('./devices.json', 'utf8'));
const options = {
key: fs.read... |
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... |
enum motor_dir {
//% block=FWD
FWD,
//% block=REV
REV
}
enum remote_key {
//% block=Non
Non = 0,
//% block=Up
Up = 1,
//% block=Down
Down = 2,
//% block=Left
Left = 3,
//% block=Right
Right = 4,
//% block=Up_B
Up_B = 5,
//% block=Down_B
Down_B = 6... |
<gh_stars>1-10
import { inject, injectable } from "inversify";
import { Types } from "../types";
import { DeferredPromise } from "../util/deferred-promise";
import { Logger } from "../util/logger";
import { Time } from "../util/time";
import { ClusterMessaging, MessageHeaders } from "../net/cluster-messaging";
import... |
import * as ec2 from '@aws-cdk/aws-ec2';
import * as iam from '@aws-cdk/aws-iam';
import * as kms from '@aws-cdk/aws-kms';
import { ArnComponents, Construct, CustomResource, Token, Stack, Lazy } from '@aws-cdk/core';
import { CLUSTER_RESOURCE_TYPE } from './cluster-resource-handler/consts';
import { ClusterResourceProv... |
<filename>src/app/base.ts
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
// See License in the project root for license information.
// -----------------------------------------------------... |
import {RootState} from '../store';
import {getStoreBuilder} from 'vuex-typex';
export class Product {
public id: number;
public name: string;
public description: string;
public image: string;
public price: number;
public constructor(id: number, name: string, description: string, image: string, price: num... |
<filename>src/utlis.ts
//Luminanace is a helper function for breaking down the required values for comparison in the contrast function
const luminanace = (r: number | string, g: number | string, b: number | string): number => {
let color = [r, g, b].map((value: any) => {
value /= 255;
return value <= 0.0392... |
import React, { Fragment, useRef, useLayoutEffect, useState } from 'react'
import { createPortal } from 'react-dom'
import { createForm, IFormProps, Form } from '@formily/core'
import { toJS } from '@formily/reactive'
import { FormProvider, Observer, observer } from '@formily/react'
import {
isNum,
isStr,
isBool,... |
import crypto from 'crypto'
import findUp from 'find-up'
import fs from 'fs'
import path from 'path'
import { promisify } from 'util'
import prettyBytes from '../lib/pretty-bytes'
import { recursiveReadDir } from '../lib/recursive-readdir'
const fsStat = promisify(fs.stat)
const fsExists = promisify(fs.exists)
const f... |
import * as React from 'react'
import * as diff from 'diff'
import * as PropTypes from 'prop-types'
import cn from 'classnames'
const m = require('memoize-one')
const memoize = m.default || m
import computeStyles, {
IReactDiffViewerStyles,
IReactDiffViewerStylesOverride,
} from './styles'
import { InlineLine, Def... |
<filename>src/settings.ts
'use strict';
import vscode = require("vscode");
import { ProtocolType, PuppetInstallType } from './interfaces';
export interface IEditorServiceDockerSettings {
imageName?: string;
}
export interface IEditorServiceTCPSettings {
address?: string;
port?: number;
}
export interface IEdi... |
import * as Random from "random-js";
import * as getLogger from "loggy";
import * as utils from "@utils/utils";
import * as i18n from "@utils/ez-i18n";
import { IModule } from "@sb-types/ModuleLoader/Interfaces.new";
import { command } from "@utils/help";
import { IHashMap } from "@sb-types/Types";
import { ErrorMessag... |
<filename>src/nni_manager/training_service/kubernetes/kubernetesConfig.ts
/**
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to de... |
import { Component, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { TranslateService } from '@ngx-translate/core';
import { IImage } from 'ng-simple-slid... |
<filename>src/listener/SlackListener.ts
import { doesExist, isNil, mustExist, NotFoundError } from '@apextoaster/js-utils';
import { RTMClient, WebAPICallResult, WebClient } from '@slack/client';
import escape from 'escape-html';
import { find as findEmoji } from 'node-emoji';
import { BaseError, Container, Inject } fr... |
<filename>src/atoms/button/styles.tsx<gh_stars>1-10
import styled, { css, keyframes } from 'styled-components/macro';
import { device } from '../../ions/breakpoints';
import { ButtonColor, ButtonVariant } from './types';
import { colors, fontWeigth } from '../../ions/variables';
import { rem, lighten, darken } from 'po... |
<filename>Script/AtomicEditor/ui/frames/WelcomeFrame.ts<gh_stars>0
//
// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
// LICENSE: Atomic Game Engine Editor and Tools EULA
// Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
// license information: https://github.com/AtomicGameE... |
/** Provides a global dispatch table for evaluating binary operators, including comparison. */
import { LiteralRepr, LiteralType, LiteralValue, Values } from "data/value";
import { normalizeDuration } from "util/normalize";
import { Result } from "api/result";
import { BinaryOp } from "expression/field";
import ty... |
<reponame>MCC-NO1/harbor
// Copyright (c) 2017 VMware, 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
//
// ... |
import Colors from "../../color";
import readline from "readline"
import { Component } from "../component";
/**
* Maximal length of a table cell.
*/
export const MAX_LENGTH: number = 30;
/**
* An entry, that can have multiple lines
*/
class TableEntry {
/**
* All lines of this entry
*/
lines: any[][] = [];
... |
/*
* This file is part of 6502.ts, an emulator for 6502 based systems built
* in Typescript
*
* Copyright (c) 2014 -- 2020 <NAME> and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
<reponame>gsbelarus/gdmn-bot
import fs from 'fs';
import path from 'path';
import { ILogger } from '../log';
export interface IData<T> {
[key: string]: T;
};
interface IDataEnvelope<T> {
version: string;
data: IData<T>;
};
interface IFileDBParams<T extends Object> {
fn: string;
logger?: ILogger;
initData... |
export interface IgtvBrowseFeedResponseRootObject {
badging: IgtvBrowseFeedResponseBadging;
my_channel: IgtvBrowseFeedResponseMy_channel;
composer: IgtvBrowseFeedResponseComposer;
banner_token: string;
browse_items: IgtvBrowseFeedResponseBrowseItemsItem[];
max_id: string;
seen_state: IgtvBrowseFeedRespons... |
import { Component, Inject, ViewContainerRef, OnInit, ViewChild, Input } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { SelOptionsComponent } from '../../gui-helpers/sel-options/sel-options.component';
import { FlexHeadComponent } from './flex-head/flex-he... |
import { EntitySelection } from "carbure/hooks/use-entity"
import * as api from "stocks/api"
import useAPI from "common/hooks/use-api"
import { confirm } from "common/components/dialog"
import { prompt } from "common/components/dialog"
import {
StockSendDetails,
StockSendLotPrompt,
} from "stocks/components/send-... |
<gh_stars>1-10
import {
h,
inject,
provide,
defineComponent,
PropType,
ref,
ComponentPublicInstance,
VNodeProps,
getCurrentInstance,
computed,
AllowedComponentProps,
ComponentCustomProps,
watch,
Slot,
VNode,
} from 'vue'
import {
RouteLocationNormalized,
RouteLocationNormalizedLoaded,
... |
import { isArray } from "@thi.ng/checks/is-array";
import { isNumber } from "@thi.ng/checks/is-number";
import type { MultiFn1O } from "@thi.ng/defmulti";
import { defmulti } from "@thi.ng/defmulti/defmulti";
import type { IShape } from "@thi.ng/geom-api";
import { DEFAULT_SAMPLES, SamplingOpts } from "@thi.ng/geom-api... |
/**
* @author <NAME>
*/
import {
JupyterFrontEnd, JupyterFrontEndPlugin
} from '@jupyterlab/application';
import { LabIcon } from '@jupyterlab/ui-components'
import { Dialog, InputDialog, showDialog, Spinner, ToolbarButton } from '@jupyterlab/apputils'
import { ILauncher } from '@jupyterlab/launcher'
import { RTC... |
<filename>ts/splitter.ts
import makeDebug from 'debug';
import Analyzer, { Import } from './analyzer';
import Package from './package';
import { shallowEqual } from './util';
import { flatten, partition, values } from 'lodash';
import {
NodeJsInputFileSystem,
CachedInputFileSystem,
ResolverFactory
} from 'enhance... |
<gh_stars>0
import { Injectable, Inject, forwardRef } from "@nestjs/common";
import { Server, Socket } from "socket.io";
import { UserService } from "src/user/user.service";
import { GuardedSocket } from "src/overloaded";
import { MatchService } from "../match/match.service";
import { Line, Point, RunningGame } from ".... |
import { v1 as random } from 'uuid';
import {
validateTypedSignMessageDataV3,
validateTypedSignMessageDataV1,
} from '../util';
import {
AbstractMessageManager,
AbstractMessage,
AbstractMessageParams,
AbstractMessageParamsMetamask,
OriginalRequest,
} from './AbstractMessageManager';
/**
* @type TypedMes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.