text
stringlengths
9.82k
47.8k
<reponame>theunisj/salesforce-alm /* * Copyright (c) 2018, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /* ------------------------------------------------------...
import { defaultFieldResolver, GraphQLFieldResolver, GraphQLScalarType } from 'graphql' import * as Nexus from 'nexus' import { DynamicOutputPropertyDef } from 'nexus/dist/dynamicProperty' import * as path from 'path' import * as Constraints from './constraints' import { addComputedInputs, DmmfDocument, getTransformedD...
<reponame>invisit/dynamoose<gh_stars>0 import aws = require("./aws"); import ddb = require("./aws/ddb/internal"); import utils = require("./utils"); import Error = require("./Error"); import Internal = require("./Internal"); import {Model, ModelExpiresSettings} from "./Model"; import {DynamoDBTypeResult, Schema, Dynamo...
<filename>src/osx/osx-kernel.ts "use strict"; const ffi = require('ffi'); const ref = require('ref'); const Struct = require('ref-struct'); const arch = require('../arch'); const ArrayType = require('ref-array') // CONSTANTS /////////////////////////////////////////////////////////////////// export const VM_PROT_NONE...
/* 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...
/* eslint-disable @typescript-eslint/ban-ts-comment,@typescript-eslint/no-empty-function */ import * as fs from 'fs'; import * as path from 'path'; import { isObject } from 'util'; import { spawn } from 'child_process'; import * as mime from 'mime-types'; import { DOMParser } from 'xmldom'; import fastXmlParser from 'f...
export { contentTypeMap }; const contentTypeMap = { ".323": "text/h323", ".3g2": "video/3gpp2", ".3gp": "video/3gpp", ".3gp2": "video/3gpp2", ".3gpp": "video/3gpp", ".7z": "application/x-7z-compressed", ".aa": "audio/audible", ".AAC": "audio/aac", ".aaf": "application/octet-stream"...
import { Event, IGroup, ICanvas, IShape } from '@antv/g-base'; import { get, size, assign, each, isNumber } from '@antv/util'; import { ext } from '@antv/matrix-util'; import Trend, { TrendCfg } from './trend'; import Handler from './handler'; import { isString } from '@antv/util'; import ControllerBtn, { ControllerCfg...
import axios from "axios"; import { storage } from "./firebase"; import { ref, uploadBytes, getDownloadURL, listAll } from "firebase/storage"; import { Subtitle, Sentence } from "./type"; const timeToNumber = (time: string) => { let timeFormatted = ""; // HACK: 一時間超えのレクチャーの場合に正しく動作しない if (time.match(/^\d{2}\:\d{...
<reponame>yakovlevkll/vite-plugin-ssr<gh_stars>0 import { getErrorPageId, getAllPageIds, route, isErrorPage, loadPageRoutes, PageRoutes } from '../shared/route' import { renderHtmlTemplate, isHtmlTemplate, isSanitizedString, renderSanitizedString } from './html/index' import { AllPageFiles, getAllPageFiles_serverSide, ...
import * as dom from 'dts-dom'; import * as fs from 'fs'; import * as path from 'path'; import { EResolveFailure, warn, warnResolve } from './logger'; const rgxArrayType = /^Array(?:\.<(.*)>)?$/; const rgxObjectType = /^Object\.<(\w*),\s*\(?(.*)\)?>$/; const rgxJsDocHeader = /^\/\*\*\s?/; const rgxJsDocFooter = /\s*\*...
<reponame>minrk/ipython_widgets // Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import * as managerBase from './manager-base'; import * as Backbone from 'backbone'; import * as _ from 'underscore'; import * as utils from './utils'; import * as $ from 'jquery'; im...
<filename>packages/aerial-browser-sandbox/src/state/index.ts import { Bounds, Point, Bounded, Struct, dsFind, weakMemo, shiftBounds, dsIndex, DataStore, dsUpdate, dsInsert, dsUpdateOne, arrayReplaceItem, traverseObject, createDataStore, StructReference, arrayRemoveItem, Expressi...
<gh_stars>0 import { computed, ref, Ref, provide, reactive, onMounted, isRef, watch, unref, nextTick, warn, markRaw, watchEffect, } from 'vue'; import isEqual from 'fast-deep-equal/es6'; import type { SchemaOf } from 'yup'; import { klona as deepCopy } from 'klona/full'; import { FieldMeta, ...
import * as d3 from 'd3' import _ from 'lodash' import { HeatmapRange, HeatmapData, DataTag } from './types' import { createBuffer } from './buffer' import { labelAxisGroup } from './axis/label-axis' import { histogram } from './axis/histogram' import { getColorScheme, ColorScheme, rasterizeLevel } from './color' impor...
//https://github.com/frappe/gantt/tree/master/src //@ts-nocheck import date_utils from "./date_utils"; import { $, createSVG } from "./svg_utils"; import Bar from "./bar"; import Arrow from "./arrow"; import Popup from "./popup"; import "./gantt.scss"; const VIEW_MODE = { QUARTER_DAY: "Quarter Day", HALF_DAY:...
<filename>src/control/GeolocationControl.ts import * as azmaps from "azure-maps-control"; import { GeolocationControlOptions } from './GeolocationControlOptions'; import { GeolocationProperties } from './GeolocationProperties'; /** The events supported by the `GeolocationControl`. */ export interface GeolocationContro...
<filename>app/App/View/Driver/MockRouteData.ts const MockRoute = { distance: 17.94, duration: 23.583333333333332, coordinates: [ { latitude: 47.36747, longitude: 8.53773 }, { latitude: 47.36757, longitude: 8.53818 }, { latitude: 47.36758, longitude: 8.53826 }, { latitude: 47.36763, longitude: 8.53...
<filename>apps/fluid-dev/src/pages/virtual-scroll-container/virtual-scroll-container-page.component.ts /** * @license * Copyright 2021 Dynatrace LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
<filename>src/platforms/ios/typings/ios.d.ts declare var AnalyticsVersionNumber: number; declare var AnalyticsVersionString: interop.Reference<number>; declare function GenerateUUIDString(): string; declare class SEGAES256Crypto extends NSObject implements SEGCrypto { static alloc(): SEGAES256Crypto; // inherited...
import * as React from 'react'; import { Button, ButtonVariant, Card, CardBody, Grid, GridItem, Switch, TextInput, Toolbar, ToolbarGroup, ToolbarItem, Tooltip } from '@patternfly/react-core'; import { style } from 'typestyle'; import { Pod, PodLogs, LogEntry } from '../../types/IstioObjects'; im...
<filename>src/public/js/cyberlink.ts<gh_stars>1-10 import { Point, Line, Circle, NetworkStyle } from './graphics.js'; // the types on which a neuron can be differentiated enum NeuronType { INPUT, HIDDEN, OUTPUT } // topology of the network export interface Topology { [layer: number]: number; length: number;...
<reponame>mdugue/react-spring import { is, each, noop, isEqual, toArray, eachProp, flushCalls, getFluidValue, getFluidConfig, isAnimatedString, FluidValue, Globals as G, } from '@react-spring/shared' import { Animated, AnimatedValue, AnimatedString, getPayload, getAnimated, setAnimat...
export declare type IBobrilChild<T = any> = boolean | number | string | IBobrilNode<T> | null | undefined; export declare type IBobrilChildren = IBobrilChild | IBobrilChildArray | null | undefined; export interface IBobrilChildArray extends Array<IBobrilChildren> { } export declare type IBobrilCacheChildren = string | ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<reponame>starpit/xterm.js /** * Copyright (c) 2018 The xterm.js authors. All rights reserved. * @license MIT */ import { CharData, IBufferLine, ICellData, IColorRGB, IAttributeData } from '../Types'; import { stringFromCodePoint } from '../input/TextDecoder'; import { DEFAULT_COLOR } from '../../common/Types'; exp...
/** * @file pxt-demand-robot/main.ts * @brief DEMAND ROBOT makecode library. * @n This is a MakeCode graphical programming education robot. * * @copyright DEMAND,2021 * @copyright MIT Lesser General Public License * * @author demand * @date 2021-12-27 */ // ultrasonic pin let demandRobotUltrasonicTr...
export interface CountryCodeType { country: { name: string; isoCode: string; }; dialCode: number; } export const countryCodes: CountryCodeType[] = [ { dialCode: 93, country: { name: "Afghanistan", isoCode: "AF" } }, { dialCode: 358, country: { name: "Aland Islands", isoCode: "AX" } }, { dialCode: 3...
import { promises } from "fs"; import * as xml2js from 'xml2js'; import { join } from "path"; import { ToolkitInfo, Platform } from "./types/common"; import * as SNGTypes from './types/sng'; import * as SNGParser from './sngparser'; import { SNG } from "./sng"; const pkgInfo = require("../package.json"); export class...
import {Type, TypeOptions} from "../type"; import {iterConcat, JsType, Kind, SimpleMap, Tag, TagURI} from "../common"; import { ConstructFunc, PredicateFunc, RepresentFunc, RepresentStyleFunc, ResolveFunc } from "../type/type"; import {Schema} from "./schema"; export class TypeBuilderError extends ...
<gh_stars>1-10 import type {Readable, Writable} from 'svelte/store'; import {writable, derived, get} from 'svelte/store'; import {setContext, getContext} from 'svelte'; import {goto} from '$app/navigation'; import type {Community} from '$lib/vocab/community/community'; import type {Space} from '$lib/vocab/space/space'...
<filename>packages/cast/blockchain-driver-eth/src/EthereumBlockchainDriver.ts import { AbstractTransaction, BlockchainDriver, BlockchainDriverParams, BlockInfo, CallResult, Event, isFinal, ListenParams, Logger, RetriableError, TransactionId, TransactionInfo, TransactionInfoProvider, Transact...
<filename>src/app/qtt/qtt.component.ts import { Component, OnInit, AfterViewInit, Inject } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { RetailhubApiService } from '../services/retailhub-api.service'; import { UiService } from '../services/ui.service'; import { Basket } from ...
// Corresponds to https://github.com/hastic/hastic-server/blob/master/server/src/models/analytic_units/analytic_unit.ts import { AnalyticService, TableTimeSeries } from '../services/analytic_service'; import { AnalyticUnitId, AnalyticUnit, AnalyticSegment, AnalyticSegmentsSearcher, AnalyticSegmentPair, Labeling...
<gh_stars>1-10 import moment from 'moment'; import _ from "underscore"; import * as Rx from 'rxjs' import * as uuid from "uuid"; import * as TsMonad from "tsmonad"; import {Either, Maybe} from "tsmonad"; import * as crypto from 'crypto-js' //This will be use to add functions that will be read using reflection in escena...
import { Fractal } from "./fractal"; import { Sampler } from "../native/sample_points"; export interface BuddhabrotRendererOptions { samplerSize?: number; samplerMipmapLevel?: number; samplerMaxIterations?: number; samplerLowerBound?: number; renderSize?: number; renderIterations?: number; } e...
import * as Color from 'color'; const GMK_COLORS = { 'CR': Color({ r: 23, g: 23, b:24 }), 'N9': Color({ r: 57, g: 59, b: 59 }), 'CC': Color({ r: 103, g: 99, b: 91 }), '2B': Color({ r: 114, g: 116, b: 116 }), 'BJ': Color({ r: 145, g: 134, b: 122 }), 'CB': Color({ r: 155, g: 146, b: 132 }), 'U9': Color({ r...
import { h, Component } from 'preact'; import * as style from './style.css'; import 'add-css:./style.css'; import { blobToImg, blobToText, builtinDecode, sniffMimeType, canDecodeImageType, abortable, assertSignal, ImageMimeTypes, } from '../util'; import { PreprocessorState, ProcessorState, Encod...
import BaseStreamController, { State } from './base-stream-controller'; import type { NetworkComponentAPI } from '../types/component-api'; import { Events } from '../events'; import { BufferHelper } from '../utils/buffer-helper'; import type { FragmentTracker } from './fragment-tracker'; import { FragmentState } from '...
<filename>src/app/pages/booking-module/components/booking-form/booking-form.component.ts import { Component, OnDestroy, OnInit, EventEmitter, Output } from '@angular/core'; import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute } from '@angular/router'; import { Observa...
<reponame>stanford-oval/genie-toolk<filename>lib/dataset-tools/evaluation/sentence_evaluator.ts // -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache Lice...
<reponame>bdsx/bdsx<filename>bdsx/makefunc.ts import { asmcode } from "./asm/asmcode"; import { asm, Register, X64Assembler } from "./assembler"; import { proc2 } from "./bds/symbols"; import "./codealloc"; import { abstract, Bufferable, emptyFunc, Encoding } from "./common"; import { AllocatedPointer, cgate, chakraUti...
<gh_stars>0 import { AuthExpiryDateConfirmComponent } from '@ws/author/src/lib/modules/shared/components/auth-expiry-date-confirm/auth-expiry-date-confirm.component' import { FlatTreeControl } from '@angular/cdk/tree' import { Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core' import { FormGroup...
<filename>front_end/core/sdk/ConsoleModel.ts /* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the abo...
<filename>AISKU/src/Initialization.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import dynamicProto from "@microsoft/dynamicproto-js"; import { IConfiguration, AppInsightsCore, IAppInsightsCore, eLoggingSeverity, _eInternalMessageId, ITelemetryItem, ICustomProp...
import * as ChildProcess from "child_process" import * as vscode from "vscode" import * as path from "path" import * as fs from "fs" import { reqJson, reqType } from "./util" import { config } from "./extension" import expandTilde = require("expand-tilde"); import { AxiosResponse } from "axios" import { Readable } from...
<filename>src/compute-pr-actions.ts import { ColumnName, LabelName, StalenessKind, ApproverKind, BlessingKind } from "./basic"; import * as Comments from "./comments"; import * as emoji from "./emoji"; import * as urls from "./urls"; import { PrInfo, BotResult, FileInfo } from "./pr-info"; import { ReviewInfo } from "....
<reponame>JSTransformationBenchmarks/TurboScript<filename>src/backends/webassembly/wasm-machine/wasm-stack-tracer.ts import {WasmType} from "../core/wasm-type"; import {WasmOpcode} from "../opcode"; import {WasmRuntimeProperty} from "./wasm-runtime-local"; import {ByteArray} from "../../../utils/bytearray"; import {Was...
/// <reference lib="dom" /> import {Edit} from "./edit"; export interface ContentEventDetail { edit: Edit; source: string | null; // TODO: add information about changed ranges } export interface ContentEventInit extends CustomEventInit<ContentEventDetail> {} export class ContentEvent extends CustomEvent<ContentEv...
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lic...
import { action } from "@storybook/addon-actions"; import { Meta } from "@storybook/react"; import { arrayMoveImmutable } from "array-move"; import { DragEventHandler, useEffect, useLayoutEffect, useRef, useState } from "react"; import { DragDropContext, DragDropContextProps, Draggable, Droppable } from "react-beautifu...
<reponame>ptourlas/molstar /** * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ import { QuadSchema, QuadValues } from '../../mol-gl/compute/util'; import { TextureSpec, Values, UniformSpec, DefineSpec } fro...
/* * Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
import { AbstractControl } from "@angular/forms"; import { ValidatorFn, AsyncValidatorFn } from "@angular/forms"; import { CompleterData } from "ng2-completer"; import { AppUtility } from "@app/components/app.utility"; import { PlatformUtility } from "@app/components/app.utility.platform"; import { AppFormsControlCompo...
import React, { useEffect, useState, useMemo } from "react"; import { FormattedMessage, useIntl } from "react-intl"; import { Button, Dropdown, DropdownButton, Form, Col, Row, ButtonGroup, } from "react-bootstrap"; import Mousetrap from "mousetrap"; import * as GQL from "src/core/generated-graphql"; impor...
<gh_stars>10-100 // Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/4aae472c0f2e30161cf772f5e750d51932fa8e6c/knockout/index.d.ts interface KnockoutSubscribableFunctions<T> { [key: string]: KnockoutBindingHandler | undefined; notifySubscribers(valueToWrite?: T, eve...
/** * @license * Copyright (C) 2015 The Android Open Source Project * * 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 require...
<filename>packages/compiler-cli/src/transformers/node_emitter.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 {AssertNotNull, BinaryOperator, BinaryOperat...
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Events } from 'ionic-angular'; import { ImageLoader } from 'ionic-image-loader'; import * as _ from 'lodash'; import { Observable, Subject } from 'rxjs'; import { from } from 'rxjs/observable/from'; impo...
<reponame>asims18/world-economies-dashboard import { Component, OnInit,OnChanges } from '@angular/core'; import { routerTransition } from '../../router.animations'; import * as JSZip from 'jszip'; import { saveAs } from 'file-saver'; import domtoimage from 'dom-to-image'; import { HttpClient } from '@angular/common/htt...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { currentXur } from '@d2api/date'; import { environment as env } from '@env/environment'; import { get as idbGet, set as idbSet } from 'idb-keyval'; import { BehaviorSubject, concat, from, Observable, of, ReplaySubject...
/** * 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...
/* Copyright (c) 2019 AT&T Intellectual Property. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. ...
import { Component, OnInit, OnChanges } from '@angular/core'; import { MatDialog } from '@angular/material/'; import { environment } from '@env/environment'; import { MatAutocompleteSelectedEvent, MatSnackBar } from '@angular/material'; import { FormControl } from '@angular/forms'; import { Observable } from 'rxjs'; ...
import { CommandClasses, encodeBitMask, MAX_NODES, parseBitMask, ZWaveError, ZWaveErrorCodes, } from "@zwave-js/core"; import { num2hex, pick, sum } from "@zwave-js/shared"; import { SUC_MAX_UPDATES } from "../consts"; import { nodeHasInfo } from "../convert"; import { encodeRoute, encodeSUCUpdateEntry, parseR...
import { all, Class, DI, IContainer, IDisposable, IIndexable, Immutable, ImmutableArray, inject, IRegistry, IResolver, IResourceDescriptions, PLATFORM, Registration, Reporter, RuntimeCompilationResources, Tracer, Writable } from '@aurelia/kernel'; import { BindableDefinitions, bu...
<reponame>pleak-tools/pleak-sql-editor import { Component, OnInit, Input, ViewChild, EventEmitter, Output } from '@angular/core'; import {HttpClient, HttpResponse} from '@angular/common/http'; import { AuthService } from '../auth/auth.service'; import { SqlBPMNModdle } from './bpmn-labels-extension'; import { Analyser ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------------...
<reponame>palindrom615/web-ponies import Behavior from "./behavior"; import { BaseZIndex } from "./constants"; import EffectInstance from "./effectInstance"; import { WebPonies } from "./index"; import Instance from "./instance"; import Interaction from "./interaction"; import Pony from "./pony"; import { AllowedMoves,...
import * as d3 from 'd3'; import * as d3hexbin from 'd3-hexbin'; import { getTextSizeForWidthAndHeight } from './utils'; import _ from 'lodash'; import { Color } from './color'; import { LayoutManager } from './layoutManager'; import { PolygonShapes } from 'types'; function resolveClickThroughURL(d: any): string { l...
<filename>src/lib/handlers/TelegramMessageHandler.ts import fs = require( 'fs' ); import https = require( 'https' ); import { cloneDeep as copyObject } from 'lodash'; import { Telegraf, Context as TContext, Telegram } from 'telegraf'; import { ExtraPhoto, ExtraReplyMessage } from 'telegraf/typings/telegram-types'; impo...
<filename>src/index.ts // See: https://github.com/opencontainers/runtime-spec/tree/v1.0.2 /** State holds information about the runtime state of the container. */ export interface State { /** Version is the version of the specification that is supported. */ ociVersion: string /** ID is the container ID */ id: ...
import { Injectable, OnDestroy, Inject } from '@angular/core'; import { Router, NavigationStart, ActivationEnd, ActivatedRouteSnapshot, RoutesRecognized, RouterStateSnapshot, NavigationCancel, NavigationEnd, ResolveStart } from '@angular/router'; import { ReplaySubject, Subscription, Observable, of as...
import _ from 'lodash'; import { DateTime } from 'luxon'; import posthog from 'posthog-js'; import React, { createContext, useCallback, useContext, useEffect, useMemo, useState, } from 'react'; import { GroupedOptionsType, OptionsType } from 'react-select/src/types'; import { useLocalStorageState, useSe...
<filename>src/app/cad-viewer/cad-data/cad-data.ts import {MathUtils, Vector2} from "three"; import {intersection, cloneDeep, uniqWith} from "lodash"; import {CadEntities} from "./cad-entities"; import {CadLayer} from "./cad-layer"; import {CadTransformation} from "./cad-transformation"; import {CadLine} from "./ca...
<filename>src/index.ts /** For a detailed key description, please see the following document. * https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values#ime_and_composition_keys */ export const KEY = { Unidentified: 'Unidentified', Alt: 'Alt', AltGraph: 'AltGraph', CapsLock: 'CapsLock', ...
/** * Code in here referenced from: * https://github.com/facebook/react/blob/master/packages/react-dom/src/client/ReactDOMHostConfig.js * https://github.com/facebook/react/blob/6a1e6b2f78da3a56aa497902951c6e9ce654eafc/packages/react-native-renderer/src/ReactNativeHostConfig.js * ... which both carry the following c...
<gh_stars>1-10 import { browserTabs, getTabUrl, runtimeError_, selectTab } from "./browser" import { cPort, NoFrameId, cRepeat, get_cOptions, set_cPort, getSecret, set_cOptions, set_cRepeat, set_cNeedConfirm, executeCommand, reqH_ } from "./store" import { framesForTab, indexFrame, ensureInnerCSS, framesForOmni, ...
<filename>src/app/blank-page.component.ts import { Component, OnInit, Input } from '@angular/core'; import { routerTransition } from '../../router.animations'; import { KmlLayerManager, AgmKmlLayer } from '@agm/core'; import { DataService } from '../../services/data.service'; @Component({ selector: 'app-blank-page...
import * as validate from "./fcs-validate"; import * as BaseApi from "./web-fcs-api-base"; import { fc_solve_expand_move } from "./web-fc-solve--expand-moves"; import { rank_re, suit_re } from "./french-cards"; export interface ModuleWrapper extends BaseApi.ModuleWrapper { alloc_wrap: (size: number, desc: string, ...
/// <reference path='../typings/node/node.d.ts' /> 'use strict'; import * as td from './td'; import * as assert from 'assert'; type JsonObject = td.JsonObject; type JsonBuilder = td.JsonBuilder; var asArray = td.asArray; import * as azureTable from "./azure-table" import * as parallel from "./parallel" import * as...
<reponame>kshetline/ks-util<gh_stars>0 import { forEach, isNumber, toInt, toNumber } from './misc-util'; const { ceil, floor, max, min } = Math; let _navigator: typeof navigator; try { if (typeof navigator !== 'undefined') _navigator = navigator; } catch {} if (!_navigator) _navigator = { appVersion: '?', m...
<filename>src/lib/WorldReducer.ts import Immutable from 'immutable'; import * as Match3 from './Match3'; const MAX_COLORS = 7; const TILES_PER_SECOND = 12; const ANIMATION_PER_SECOND = 12; const DAMAGE_PER_SECOND = 100 / 60; // const TILES_PER_SECOND = 0.1; const enum Status { Idle, Busy, Falling, Dea...
<reponame>acbart/blockpy-server<filename>frontend/components/review_interface.ts import {GradingStatus, Submission, SubmissionStatus} from "../models/submission"; import {Review, ReviewJson} from "../models/review"; import {User} from "../models/user"; import {Assignment} from "../models/assignment"; import * as ko fro...
<reponame>scheuerv/molart import { Canvas3D } from "molstar/lib/mol-canvas3d/canvas3d"; import { StructureElement } from "molstar/lib/mol-model/structure/structure/element"; import { StructureProperties } from "molstar/lib/mol-model/structure/structure/properties"; import { PluginContext } from "molstar/lib/mol-plugin/...
<gh_stars>0 import Log from '@secret-agent/commons/Logger'; import { IBlockedResourceType } from '@secret-agent/core-interfaces/ITabOptions'; import * as Url from 'url'; import IWaitForResourceOptions from '@secret-agent/core-interfaces/IWaitForResourceOptions'; import Timer from '@secret-agent/commons/Timer'; import I...
import * as path from "path" import * as yaml from "js-yaml" import * as _ from 'lodash' import * as fs from 'fs' import * as codes from './codes' import * as patterns from './patterns' import { isNullOrUndefined, s, isString, isUndefined, isArray, TaskMetadata, Check, ErrorMessage, Value, isErrorMessage, TaskMetadata...
<filename>wasmegg/smart-assistant/src/lib/recommendation.ts<gh_stars>10-100 /** * The recommendation algorithm, explained * ======================================= * * There are some artifacts that independently contribute effects and stone * slots to SE gain: * * - Demeters necklace; * - Tungsten ankh; * - Ph...
import { useIntl } from 'react-intl'; import { ESvar } from '@navikt/familie-form-elements'; import { LocaleType, useSprakContext } from '@navikt/familie-sprakvelger'; import { RessursStatus } from '@navikt/familie-typer'; import { erModellMismatchResponsRessurs, modellVersjon, modellVersjonHeaderName, } ...
/** * Copyright © 2021 Serelay Ltd. All rights reserved. */ // NB. Cannot import any module/file that interacts/declares DOM interaction import { CandidateState } from "./candidateState"; import { MSG } from "./msg"; import { JumbfBoxInfo } from "./jumbf/jumbfBoxInfo"; import { JumbfContentType } from "./jumbf/jumbfC...
/* Copyright 2016 The TensorFlow Authors. 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 law or agree...
import { Injectable, NgZone } from '@angular/core'; import { Card } from '@udonarium/card'; import { CardStack } from '@udonarium/card-stack'; import { ChatTab } from '@udonarium/chat-tab'; import { ChatTabList } from '@udonarium/chat-tab-list'; import { ImageContext, ImageFile } from '@udonarium/core/file-storage/imag...
/** * Animated.tsx * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Implements animated components for web version of ReactXP. */ // tslint:disable:function-name import * as React from 'react'; import * as ReactDOM from 'react-dom'; import AppConfig from '../...
<gh_stars>0 import * as events from 'events'; import * as fs from 'fs'; import * as http from 'http'; import * as mkdirp from 'mkdirp'; import * as path from 'path'; import * as apid from '../../../../../node_modules/mirakurun/api'; import DateUtil from '../../../Util/DateUtil'; import FileUtil from '../../../Util/File...
<reponame>jbanety/jspm-cli /* * Copyright 2014-2019 <NAME> (http://guybedford.com) * * 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/LICE...
<filename>packages/libs/lambda-at-edge/src/build.ts import { nodeFileTrace, NodeFileTraceReasons } from "@vercel/nft"; import execa from "execa"; import fse from "fs-extra"; import { join } from "path"; import path from "path"; import { OriginRequestDefaultHandlerManifest, OriginRequestApiHandlerManifest, RoutesM...
<gh_stars>1-10 import { CellsLoaded, ReprDataRequest, CellSelected, UIMessageTarget, FocusCell, CreateComment, UpdateComment, DeleteComment } from "../util/ui_event"; import {NotebookCellsUI} from "./nb_cells"; import {KernelUI} from "./kernel_ui"; import {EditBuffer} from "../../data/edit_buffer"; import * as mess...
<reponame>mi-ruan/Chess-Opening-Theories import { Injectable } from "@angular/core"; import { MatDialog } from "@angular/material/dialog"; import { BehaviorSubject } from "rxjs"; import { InfoService } from "src/app/services/info.service"; import { OptionsService } from "src/app/services/options.service"; import { ECO,...
<filename>src/entity.ts import Victor from 'victor'; import entityData from './defaultentities'; import Blueprint from './index'; type PositionGrid = { [location: string]: Entity }; type Side = 1 | 2 | 'in' | 'out'; type Color = 'red' | 'green'; type Priority = 'left' | 'right'; type DirectionType = 'input' | 'output...
import _ from 'lodash'; import path from 'path'; import moment from 'moment'; import Plugin from 'serverless/classes/Plugin'; import { StateMachine, State, Map, Fail, Succeed, Task, Parallel, Wait, Pass, Choice } from 'asl-types'; import { // StateMachine, Options, ServerlessWithError, ContextObject, Failur...