text stringlengths 9.82k 47.8k |
|---|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import path from 'path';
import formatMessage from 'format-message';
import md5 from 'md5';
import { copy, rmdir, emptyDir, readJson, pathExists, writeJson, mkdirSync, writeFileSync } from 'fs-extra';
import { Debugger } from 'debug';
import {... |
import _ from 'lodash'
import { sprintf } from 'sprintf-js'
import { Cursor, Key, LabelTypeName, ShapeTypeName } from '../../common/types'
import { makeLabel, makePolygon } from '../../functional/states'
import { PathPoint2DType, PolygonType, ShapeType, State } from '../../functional/types'
import { Size2D } from '../.... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import {execSync, spawnSync} from 'child_process';
import * as fs from 'fs';
import * as globby from 'globby';
import minimist from 'minimist';
import logger from 'npmlog';
import * as path from 'path';
import stripJsonComm... |
/*
* Copyright 2019-present Open Networking Foundation
*
* 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 appli... |
<gh_stars>0
// 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
// "Licens... |
<filename>src/component/graphic/install.ts
/*
* 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... |
/**
* Defines Orientation of axis. They are
* * horizontal
* * vertical
* @private
*/
export type Orientation =
/** Horizontal Axis. */
'Horizontal' |
/** Vertical Axis. */
'Vertical';
/**
* Defines area type of chart. They are
* * none
* * cartesianAxes
* * polarAxes
* @private
*/
export ... |
<reponame>container-job-runner/cjr
import * as fs from 'fs'
import * as path from 'path'
import { ValidatedOutput } from '../../../validated-output'
import { StackConfiguration } from '../abstract/stack-configuration'
import { dsc_vo_validator } from './schema/docker-stack-configuration-schema'
import { trim } from '..... |
/* Copyright 2015 Bloomberg Finance L.P.
*
* 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 { isNumber, isThenable } from '@klasa/utils';
import { FetchError } from '@lib/errors/FetchError';
import { ApiRequest } from '@lib/structures/api/ApiRequest';
import { ApiResponse } from '@lib/structures/api/ApiResponse';
import { APIUserData } from '@lib/types/DiscordAPI';
import { Events } from '@lib/types/En... |
import * as UI from "../ui";
import * as Viewer from "../viewer";
import * as rw from "librw";
// @ts-ignore
import program_glsl from './program.glsl';
import { TextureMapping, TextureBase } from "../TextureHolder";
import { GfxDevice, GfxFormat, GfxBufferUsage, GfxBuffer, GfxVertexAttributeDescriptor, GfxVertexBuffer... |
import uniqid from 'uniqid'
import _ from 'lodash'
import moment from 'moment'
import PouchDB from 'pouchdb'
import fetch, { Response } from 'node-fetch'
import deepCopy from '../../Helpers/copyStateHelper'
import calcComplete from '../../Helpers/calcComplete'
import handleForceDelta from '../../ActionsAndReducers/play... |
// Type definitions for Node.js v0.10.1
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/borisyankov/DefinitelyTyped>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/************************************************
*... |
import CodeMirror from 'codemirror';
const instructions = {
'add': 'Add two values, returning a new value (0x58)',
'add.ovf': 'Add signed integer values with overflow check (0xD6)',
'add.ovf.un': 'Add unsigned integer values with overflow check (0xD7)',
'and': 'Bitwise AND of two integral values,... |
import { Component, OnInit, AfterViewInit } from '@angular/core';
import { formatDate } from '@angular/common';
import { fabric } from 'fabric';
import { saveAs } from 'file-saver';
import { AppService } from '../../app.service';
import * as _ from '../../helpers';
const {
RL_VIEW_WIDTH,
RL_VIEW_HEIGHT,
RL_FOOT... |
<gh_stars>10-100
/**
* @module VSCodePvsPackageManager
* @author <NAME>
* @date 2019.10.24
* @copyright
* Copyright 2019 United States Government as represented by the Administrator
* of the National Aeronautics and Space Administration. All Rights Reserved.
*
* Disclaimers
*
* No Warranty: THE SUBJECT SOFT... |
<reponame>scheibo/trakkr<filename>src/v2.ts
import * as colors from 'colors/safe';
import {table} from 'table';
import * as trakr from 'trakr';
export const TRACER = trakr.TRACER;
export interface TrackerOptions extends trakr.TrackerOptions {}
export class Tracker {
static create(options?: TrackerOptions) {
re... |
<reponame>ninejs/ninejs
/**
@module ninejs/core/on
Dojo Toolkit's dojo/on as of jan 2014
*/
///<amd-dependency path="../modernizer" />
'use strict';
import * as aspect from './aspect';
declare var process: any;
declare var jQuery: any;
declare var dojo: any;
declare var require: any;
var isNode = (typeof(process) ... |
<gh_stars>0
// @ts-nocheck
import Component from '@glimmer/component';
import { reads } from '@ember/object/computed';
// @ts-ignore
import { tracked } from '@glimmer/tracking';
// @ts-ignore
import { setComponentTemplate } from '@ember/component';
// @ts-ignore
import selectLayout from './template';
import { action }... |
<gh_stars>1-10
// libs
import { Component, ElementRef, ViewChild } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { Injector } from '@angular/core';
import { Config, RouterExtensions, ConsoleService } from '../../../modules/core/index';
import { SelectI... |
<reponame>mutdmour/fuzzysort
/*
WHAT: SublimeText-like Fuzzy Search
USAGE:
fuzzysort.single('fs', 'Fuzzy Search') // {score: -16}
fuzzysort.single('test', 'test') // {score: 0}
fuzzysort.single('doesnt exist', 'target') // null
fuzzysort.go('mr', ['Monitor.cpp', 'MeshRenderer.cpp'])
// [{score: -18, target: "Mes... |
<gh_stars>1-10
/*!
* Copyright (c) 2021 <NAME>
* Licensed under the MIT License. See LICENSE in the project root for license information.
*
* THIRD PARTY LICENSE NOTICE:
*
* "ServiceContainer" is derived from the implementation of "InstantiationService"
* and related components in vscode, located at:
... |
<reponame>tfwdev/sceneeditor
import {
Mesh, MeshBasicMaterial, Object3D, PlaneBufferGeometry,
Scene, ShaderMaterial, Vector2, WebGLRenderTarget,
} from "three"
import {Clock} from "tfw/core/clock"
import {Color} from "tfw/core/color"
import {
Bounds, Plane, Ray, clamp, mat4, quat, toDegree, toRadian, vec3, vec3z... |
import {Reporter, PathReporter} from './index';
export type Traverse<V> = V & { traverse(lvl: number, context: object) : any };
export type Validator <T, A0> = { validate(at: PathReporter, value: any, a0: A0) : T | undefined };
export type Validator0 <T > = { validate(at: PathReporter, value: any ) : T ... |
import * as t from 'io-ts'
import { FhirAccount } from './FhirAccount'
import { FhirActivityDefinition } from './FhirActivityDefinition'
import { FhirAdverseEvent } from './FhirAdverseEvent'
import { FhirAllergyIntolerance } from './FhirAllergyIntolerance'
import { FhirAppointment } from './FhirAppointment'
import { Fh... |
<filename>worksheet/StyleSheet.ts
import Util = require("../util/Util");
import XmlDom = require("../xml/XmlDom");
/**
* @module Excel/StyleSheet
*/
class StyleSheet {
borders: StyleSheet.Border[];
cellStyles: { name: string; xfId: string | number; builtinId: string | number; [key: string]: any; }[];
def... |
<gh_stars>0
function exVariables() {
// =========== constiable types
console.log(Number.MAX_SAFE_INTEGER);
console.log(Number.MAX_SAFE_INTEGER + 1);
console.log(Number.MAX_VALUE);
console.log(Number.MIN_VALUE);
// boolean, number, string
let isBegginer: boolean;
isBegginer = true;
let decimal: numbe... |
import { Observable } from 'rxjs/Observable';
import * as fromRouter from '@ngrx/router-store';
import { localStorageSync } from 'ngrx-store-localstorage';
import { Article } from './article/article.model';
import { Book } from './book/book.model';
import { Claim } from './claim/claim.model';
import { Comment } from '... |
/*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access and use.
*/
/// <amd-module name="Backbone.Compos... |
import { EventEmitter } from "events";
import { World } from "ape-ecs";
import * as PIXI from "pixi.js";
import EntityScheduler from "./rot/scheduler/ecs";
import globals from "./globals";
import {
loadSounds,
loadEventualSounds,
playCloseInventory,
playCloseSpells,
playUIClick,
playLevelTheme... |
import {
filter
} from 'rxjs/operators';
import {
ucfirst,
nextTick,
flatClone,
promiseSeries,
pluginMissing,
now
} from './util';
import {
validateCouchDBString
} from './pouch-db';
import {
_handleToPouch,
_handleFromPouch,
fillObjectDataBeforeInsert
} from './rx-collectio... |
/**
* Wechaty - https://github.com/chatie/wechaty
*
* @copyright 2016-2017 <NAME> <<EMAIL>>
*
* 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/... |
import { Class, ChangeEvent } from '@travetto/registry';
import { SchemaRegistry, FieldConfig, BindUtil, SchemaChangeEvent, Schema } from '@travetto/schema';
import { Util, AppError } from '@travetto/base';
import { BulkResponse, SelectClause, Query, SortClause, WhereClause, IndexConfig } from '@travetto/model';
impor... |
/* eslint-disable quote-props */
interface Banks {
[cod: string]: string
}
export const identifyBank = (cod: string) => {
const banks: Banks = {
'1': 'Banco do Brasil S.A.',
'3': 'BANCO DA AMAZONIA S.A.',
'4': 'Banco do Nordeste do Brasil S.A.',
'7': 'BANCO NACIONAL DE DESENVOLVIMENTO ECONOMICO E S... |
import * as React from 'react'
import _ from 'lodash-es'
import { Engine } from 'json-rules-engine'
import {
default as Form,
UiSchema,
AjvError,
ErrorListProps,
} from 'react-jsonschema-form'
import {
Step,
StepStateEnum,
NavActionEnum,
StatusEnum,
FormSchema,
RulesResult,
IRulesValidationEvent,... |
<filename>source/components/gitlabUtils.ts
import { Buffer } from "buffer";
import JSZip from "jszip";
import { saveAs } from "file-saver";
import Swal from "sweetalert2";
import {
acceptableExtensions,
acceptableResourcesExtensionsOfTextDataType,
resourcesFileTypes,
resourcesRepoName,
ThresholdRepoFiles,
... |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {
useState,
Dispatch,
SetStateAction,
MutableRefObject,
useLayoutEffect,
useRef,
useCallback,
} from 'react';
import clamp from '... |
<reponame>Ming9/kui<filename>plugins/plugin-tutorials/src/lib/cmds/play.ts
/*
* Copyright 2018-19 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... |
// Copyright (c) 2021-2022 <NAME>
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
import {
Applicative,
Apply,
Defer,
Either,
FunctionK,
Functor,
Left,
Monad,
MonadError,
None,
Option,
Parallel,
Right,
StackSaf... |
import * as fs from 'fs';
import * as ts from 'typescript';
interface Const {
typeName: string // repeated in each const
goType: string
me: ts.Node
name: string // constant's name
value: string // constant's value
}
let Consts: Const[] = [];
let seenConstTypes = new Map<string, boolean>();
interface St... |
import { computed, defineComponent, onMounted, onUnmounted, reactive, watch } from '@vue/composition-api'
import './DatasetComparisonGrid.scss'
import MainImageHeader from '../../Annotations/annotation-widgets/default/MainImageHeader.vue'
import Vue from 'vue'
import createColormap from '../../../lib/createColormap'
im... |
/*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access and use.
*/
/// <amd-module name="OrderWizard.Mod... |
<reponame>AlessandrodeAzevedo/biblia-datashow
import { BibliaService } from './biblia.service';
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { HostListener } from '@angular/core';
import * as moment from 'moment';
import { Router } from '@angular/router';
import { AnimationBuilder } ... |
<filename>samples/typescript.ts
import { Position, Range } from '@sourcegraph/extension-api-types'
import { isEqual } from 'lodash'
import {
combineLatest,
concat,
EMPTY,
from,
fromEvent,
merge,
Observable,
of,
Subject,
Subscribable,
SubscribableOrPromise,
Subscription,
... |
interface LocalisedName {
en: string;
zh?: string;
ms?: string;
ta?: string;
}
export interface Coordinates {
latitude: number;
longitude: number;
}
type Metres = number;
// Administrative level 1
export enum Region {
CENTRAL = "C",
EAST = "E",
NORTH = "N",
NORTHEAST = "NE",
WEST = "W",
}
// A... |
<gh_stars>1-10
import { LifecycleFlags, ICompiledRenderContext, ICustomElementController, CustomElement, ICustomElementViewModel, IHydratedController, IHydratedParentController } from '@aurelia/runtime-html';
import { ComponentAppellation, IRouteableComponent, ReentryBehavior, IRoute, RouteableComponentType, Navigation... |
<filename>src/Rocket.Web/wwwroot/js/RocketView.ts
import { Constants } from "./Constants";
import { Point } from "./Point";
import { Player } from "./Player";
import { Shot } from "./Shot";
import { KeyCodes } from "./KeyCodes";
import { CanvasTouch } from "./CanvasTouch";
import { PlayerMetadata } from "./PlayerMetad... |
import { AfterViewInit, Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewEncapsulation } from '@angular/core';
import { Subscription, Observable, of } from 'rxjs'
import { take, map, mergeMap } from 'rxjs/operators'
import { HttpClient, HttpHeaders } from '@angular/common/http'
import * as OpenSeadragon f... |
import { ParsePackageItemType, PackageItemType } from '../config/Definitions'
import { Resource } from '../createjs/extras/Resource'
import { BitmapFont, BMGlyph } from '../display/BitmapFont'
import { Frame } from '../display/Frame'
import { GObject } from '../GObject'
import { IGRoot, IObjectFactoryType } from '../i... |
import { subOrZero } from './StateGenerator'
import { convertProposePending } from './types'
import { PendingArgs } from './types'
import { PendingArgsBN } from './types'
import Web3 = require('web3')
import BN = require('bn.js')
import {
Address,
channelNumericFields,
ChannelState,
ChannelStateBN,
convertCha... |
<reponame>ModellbahnFreak/Midi-to-laser-cutter<filename>experimental/musicboxeditor/src/app/app.component.ts
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
import { LogService, Logger } from './service/log/log.service';
import * as MidiConvert from "midiconvert";
import { IHeader, ITrack, INote... |
<reponame>google/playground-elements<filename>src/playground-code-editor.ts
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
import {
LitElement,
css,
PropertyValues,
html,
nothing,
render,
TemplateResult,
} from 'lit';
import {DirectiveResult} from 'lit/directive... |
<reponame>p4535992/pick-up-stix
//@ts-ignore
import { ItemData } from '@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/data/module.mjs';
import { i18n, log } from '../../main';
import { ItemType } from '../models';
import { getGame, PICK_UP_STIX_FLAG, PICK_UP_STIX_MODULE_NAME } from '../settings';
/... |
import * as React from 'react'
import styled, {css} from '../../../Common/theming/themedComponents';
import {sizeMap} from '../_Common/Styled'
import { UpInputStyledProps} from './';
import SvgIcon from "../../Display/SvgIcon/index";
import { InterpolationFunction } from "styled-components/typings/styled-components... |
<reponame>hexxone/three.ts<gh_stars>1-10
import {
Box3,
MathUtils,
Matrix3,
Matrix4,
Sphere,
Shape,
Vector2,
Vector3,
arrayMax,
} from "..";
import {
BufferAttribute,
EventDispatcher,
Float32BufferAttribute,
GLBufferAttribute,
Object3D,
Uint16BufferAttribute,
Uint32BufferAttribute,
} from ".";
import {... |
<filename>src/app/scripts/paper/item/PaperLayer.ts
import {
ClipPathLayer,
GroupLayer,
Layer,
LayerUtil,
PathLayer,
VectorLayer,
} from 'app/model/layers';
import { ColorUtil } from 'app/scripts/common';
import { PaperUtil } from 'app/scripts/paper/util';
import { PaperService } from 'app/services';
import ... |
import * as _ from "underscore";
import {Inject, Injectable, Injector, ViewContainerRef} from "@angular/core";
import {Feed, FeedMode, FeedTemplateType, LoadMode, FeedAccessControl, StepStateChangeEvent} from "../../../model/feed/feed.model";
import {Step} from "../../../model/feed/feed-step.model";
import {Common} fro... |
<reponame>jonaskello/ts-resolve
/* eslint-disable */
// @ts-nocheck
// Extracted from this file: https://github.com/nodejs/node/blob/master/lib/internal/modules/esm/resolve.js
// "use strict";
import debugCreator from "debug";
const debug = debugCreator("ts-resolve");
const { pathToFileURL, fileURLToPath } = require(... |
import _ from "lodash";
import moment, { Moment } from "moment";
import { SensorsResponse, SensorDataResponse, SensorInfoResponse, VizConfig } from "./api";
import { ModuleID, SensorSpec, Ids, TimeRange, StationID, Stations, Sensors, SensorParams, DataQueryParams } from "./common";
import i18n from "@/i18n";
import FKA... |
import { EventEmitter } from 'betsy'
import isPlainObject from 'is-plain-obj'
import {
IFlushCallback,
IMutation,
IMutationCallback,
IS_PROXY,
ProxyStateTree,
TTree,
VALUE,
} from 'proxy-state-tree'
import { Derived } from './derived'
import { Devtools, Message, safeValue, safeValues } from './Devtools'
i... |
<filename>src/nlpviewer/lib/text-spacer.ts
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
ISpaceMap,
ILinkWithPos,
IAnnotationPosition,
IAnnotation,
ILink,
} from './interfaces';
import {notNullOrUndefined, attributeId} from './utils';
export const fontWidth = 6;
export interface SpacedTex... |
<gh_stars>0
/*
Copyright 2016 kanreisa
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 o... |
// src/components/MainApp/MainApp.tsx
import React from 'react';
import { withRouter, RouteComponentProps } from 'react-router-dom';
import { Helmet } from 'react-helmet';
import MainView from '../MainView';
import Breadcrumb from '../Breadcrumb';
import utils from '../Utils/utils';
import { CommitData } from '../C... |
<filename>src/addons/definitions-metadata.ts
/// ^.*('\\.*').*
import { FUNCTIONS, MATH_SYMBOLS } from '../core/definitions';
// Frequency of a symbol.
// String constants corresponding to frequency values,
// which are the number of results returned by latexsearch.com
// When the precise number is known, it is provid... |
import {
Model, Node, AnimVector, NodeFlags, Layer, LayerShading, FilterMode,
TextureFlags, TVertexAnim, Geoset
} from '../model';
import {vec3, quat, mat3, mat4} from 'gl-matrix';
import {mat4fromRotationOrigin, getShader} from './util';
import {ModelInterp} from './modelInterp';
import {ParticlesController} f... |
import * as assert from 'assert';
import * as fsExtra from 'fs-extra';
import * as path from 'path';
import type { CompletionItem, Position, SignatureInformation } from 'vscode-languageserver';
import { Location, CompletionItemKind } from 'vscode-languageserver';
import type { BsConfig } from './BsConfig';
import { Sco... |
<reponame>goldfinch-eng/mono
import {NON_US_UID_TYPES, US_UID_TYPES} from "@goldfinch-eng/autotasks/unique-identity-signer/utils"
import {JsonRpcSigner} from "@goldfinch-eng/autotasks/node_modules/@ethersproject/providers/lib"
import {assertIsString, assertNonNullable, findEnvLocal} from "@goldfinch-eng/utils"
import B... |
<reponame>Lars-H/slurp
import cloneDeep from "lodash/cloneDeep";
import { v4 as uuidv4 } from "uuid";
import tippy from "tippy.js";
import "tippy.js/dist/tippy.css";
import { nodeMenu, coreMenu } from "./cy-cxtmenu";
import { convertSpecialCharsToHTML } from "../../utils/utils";
import BinaryTree from "utils/DataStruct... |
import ArrayBufferSlice, { ArrayBuffer_slice } from "./ArrayBufferSlice";
import { assert, readString, align } from "./util";
import { Endianness } from "./endian";
export const enum FileType {
BYML,
CRG1, // Jasper's BYML variant with extensions.
}
const enum NodeType {
STRING = 0xA0,
ARRAY ... |
<reponame>iccicci/sedentary
import { Attribute, Constraint, DB, EntryBase, ForeignKeyOptions, Index, Natural, Table, Transaction, Type } from "./db";
export { EntryBase, ForeignKeyActions, ForeignKeyOptions, Natural, Transaction, Type } from "./db";
export type TypeDefinition<N extends Natural, E> = (() => Type<N, E>)... |
import { Tab, TabList, TabPanel, TabPanels, Tabs } from '@reach/tabs'
import classNames from 'classnames'
import { escapeRegExp } from 'lodash'
import ChevronDownIcon from 'mdi-react/ChevronDownIcon'
import ChevronLeftIcon from 'mdi-react/ChevronLeftIcon'
import ExternalLinkIcon from 'mdi-react/ExternalLinkIcon'
import... |
import { createStyled } from '@stitches/react';
// import { rangei } from '../services/range';
import { setLightness } from './color';
import * as light from './palettes/default-light';
import * as dark from './palettes/default-dark';
import type { TConfig } from '@stitches/core';
import type { Hsl } from './color';
... |
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, HostListener, Input, OnDestroy, Renderer2, SimpleChanges, ViewChild } from '@angular/core';
import { LoggerService, LoggerFactory, ServoyBaseComponent, BaseCustomObject, ViewPortRow, FoundsetChangeEvent, IFoundset, ServoyPublicService, SessionS... |
import {
Rect,
RefLineMeta,
MatchedLine,
LineType,
LineGroup,
RefLinePosition,
Delta,
AdsorbLine,
AdsorbVLine,
AdsorbHLine,
} from "./types";
import {
toNumber as fixNumber,
getRectRefLines,
getBoundingRect,
groupBy,
find,
getLineTypeFromPosition,
mergeRefLineMeta,
getMatchedLine,
... |
<filename>ui/src/app/flo/shared/service/parser.ts
/*
* Copyright 2016-2018 the original author or 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
*
* https://www.apache.org/li... |
<reponame>ryanheath/ravendb
import app = require("durandal/app");
import router = require("plugins/router");
import document = require("models/database/documents/document");
import documentMetadata = require("models/database/documents/documentMetadata");
import collection = require("models/database/documents/coll... |
<reponame>jungleworks/fugu-frontend<filename>src/app/components/layout/layout.component.ts
import {animate, state, style, transition, trigger} from '@angular/animations';
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, NgZone, OnInit} from '@angular/core';
import {ActivatedRoute, Params, Router} from '@a... |
<filename>framework/android/src/lib/customization.ts
import LAYOUT_STRING = internal.android.LAYOUT_STRING;
import { BUILD_VERSION } from './constant';
import type View from '../view';
export interface SupportedResult extends PlainObject {
namespace?: string;
attr?: string;
value?: string;
modified?:... |
import {labelidx, funcidx, typeidx, localidx, globalidx} from "./base_types";
import {encodeF32, encodeF64, encodeInt64Constant, encodeInt32Constant} from "./encoding";
import {zeroArgs, blockLoopInstr, ifInstr, idxArg, zeroArgsSpecial, memArg, constantArg, PartialInstr, brTableInstr} from "./instr_helpers";
import {i3... |
<reponame>jeremydw/amagaki
import {
BuildRouteOptions,
DataType,
Document,
Locale,
Pod,
Route,
StaticFile,
TemplateContext,
TemplateEngineComponent,
Url,
interpolate,
} from '@amagaki/amagaki';
import {html, safeString} from './utils';
import { GridOptions } from './ui/grid-inspector';
import {Pa... |
import chai from 'chai';
import RG from '../../../client/src/rg';
import {Entity} from '../../../client/src/entity';
import {RGTest} from '../../roguetest';
import {RGUnitTests} from '../../rg.unit-tests';
import {chaiBattles} from '../../helpers/chai-battles';
import {SentientActor } from '../../../client/src/actor... |
import React from 'react';
import { ContentHost, ContentHostRegistry, ContentOutlet } from './content';
import {
ActiveTabState,
applyAppend,
applyDrop,
applyRemove,
contentContainerIdKey,
DropTarget,
getContentContainerIds,
isGroup,
isTabGroup,
LayoutItemId,
setMissingIds,
TileConfig,
TileGro... |
import { ModelCatalogResource, Action } from './resource';
import { property, html, customElement, css } from 'lit-element';
import { connect } from 'pwa-helpers/connect-mixin';
import { store, RootState } from 'app/store';
import { getLabel } from 'model-catalog/util';
import { IdMap } from "app/reducers";
import { S... |
import { Component, OnInit, ɵConsole } from '@angular/core';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
import { Deus } from '../shared/models/deus';
import { Contas } from '../shared/models/contas';
import { FinanceiroService } from './financeiro.service';
import { Param } from '../s... |
'use strict';
const async = require('async');
const { debug, info, warn, error } = require('portal-env').Logger('kong-adapter:portal');
import * as utils from './utils';
import * as wicked from 'wicked-sdk';
import { Callback, WickedApplication, WickedAuthServer, WickedError, KongPluginRequestTransformer, KongPluginCo... |
export class Hello {
greeting (name :string){
return "Hello"+name;
}
}
/*
export class ColumnResizer {
public store: any;
public grip: any;
public tb: any;
ID = 'id';
PX = 'px';
RESIZABLE = 'grip-resizable';
FLEX = 'grip-flex';
legacyIE = navigator.userAgent.index... |
<filename>source/constraints/parametrics/index.ts
import { Subject } from 'rxjs/Rx';
import {
Constraint,
Coincident,
Lock,
Parallel,
Perpendicular,
P2LDistance,
P2PDistance,
Radius,
RadiusEquality,
LineEquality,
Vertical,
Horizontal,
Tangent,
PointOnLine,
PointOnArc,
PointOnEllipse,
E... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import { DebugFlags } from '../debug';
import { EncodedTokenAttributes, OptionalStandardTokenType, StandardTokenType, toOptionalTokenType... |
<reponame>jfseb/jdbcsql_throughput
import {Pool} from 'jdbc';
import { ParallelExec } from './parallel_exec';
import { ParallelPool } from './parallel_pool';
import * as csv_stringify from 'csv-stringify/lib/sync';
import * as debug from 'debug';
import { INSPECT_MAX_BYTES } from 'buffer';
const debuglog = debug('av... |
<reponame>nacjm/Overmind
/**
* Code for calculating the minCut in a room, written by Saruss,
* adapted for Typescript and flexible room subsets by Chobobobo,
* modified and debugged by Muon.
*/
import {log} from '../console/log';
const UNWALKABLE = -10;
const RANGE_MODIFIER = 1; // this parameter sets the scaling ... |
import { IncomingMessage, ServerResponse } from 'http';
import { sign, verify } from 'jsonwebtoken';
import { WebAPICallResult, WebClient, WebClientOptions } from '@slack/web-api';
import {
CodedError,
InstallerInitializationError,
UnknownError,
MissingStateError,
GenerateInstallUrlError,
AuthorizationError... |
<filename>src/models/room-state.ts
/*
Copyright 2015 - 2021 The Matrix.org Foundation C.I.C.
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 r... |
import {
CommandClasses,
getCCName,
Maybe,
MessageOrCCLogEntry,
MessageRecord,
parseCCId,
validatePayload,
ValueID,
ZWaveError,
ZWaveErrorCodes,
} from "@zwave-js/core";
import { cpp2js, getEnumMemberName, num2hex } from "@zwave-js/shared";
import type { Driver } from "../driver/Driver";
import { MessagePrior... |
import {
PLAYER,
PHASE,
processPlayerStats as processPlayerStats2,
bySport,
} from "../../../common";
import { player, trade } from "../../core";
import { g, helpers } from "../../util";
import type {
Player,
PlayerFiltered,
PlayerStatType,
PlayersPlusOptions,
} from "../../../common/types";
type PlayersPlusOp... |
<filename>src/chart-variabletest.ts<gh_stars>1-10
'use strict';
/*test*/
import Chart from "chart.js/auto";
import { ScatterDataPoint } from "chart.js";
import Handsontable from "handsontable";
import { tableCommonOptions, colors } from "./config"
import { throttle, updateLabels, updateTableHeight, linkInputsVar, lin... |
import cheerio = require("cheerio")
import gitfs = require('./gitfs')
import auth = require('./auth')
import events = require('./events')
import events2 = require('./events2')
import tools = require('./tools')
import rest = require('./rest')
import * as bluebird from "bluebird";
import * as winston from "winston";
let... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import '../extensions';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { inject, injectable, named, optional } from 'inversify';
import { IWorkspaceService } from '../application/types';... |
// tslint:disable
import { getGlobalObject, isError, isErrorEvent } from "@sentry/utils";
/**
* @hidden
*/
export interface StackFrame {
url: string;
func: string;
args: string[];
line: number;
column: number;
context: string[];
}
/**
* @hidden
*/
export interface StackTrace {
/**
* Known modes:... |
<gh_stars>1-10
import { atob, btoa } from "js-base64";
export const createEndpoint = Symbol("workercom.endpoint");
export const releaseProxy = Symbol("workercom.releaseProxy");
const transfused = "workercom.transfused";
const throwError = Symbol("workercom.throwError");
type ProxyMethods = {
readonly [createEndpoin... |
const rarePersonae = ["Regent", "Queen's Necklace", "Stone of Scone", "Koh-i-Noor", "Orlov", "Emperor's Amulet", "Hope Diamond", "Crystal Skull"];
const rareCombos = {
"Fool": [-1, +1, -1, +1, -1, -1, +1, +2],
"Magician": [+1, -1, +2, -1, +1, +1, +1, +1],
"Priestess": [-1, +1, -1, +2, +1, -1, +1, +1],
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.