text
stringlengths
9.82k
47.8k
/* * Copyright 2021 The University of Manchester * * 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 ...
const LATITUDE_MAX = 90; const LONGITUDE_MAX = 180; /** * Coordinates of a decoded Open Location Code. * * The coordinates include the latitude and longitude of the lower left and * upper right corners and the center of the bounding box for the area the * code represents. * * @constructor */ class CodeArea { ...
import {getStyleValue, getStyleValueAsNumber} from './style' import {Rect, getRect} from './element' /** Option for alignment element. */ export interface AlignOptions { /** * The margin as gaps betweens align element and target, * can be a number or a number array composed of 1-4 numbers. * Unique numbe...
<filename>community-modules/core/src/ts/entities/gridOptions.ts /************************************************************************************************ * If you change the GridOptions interface, you must also update PropertyKeys to be consistent. * ***********************************************************...
import { WebGLRenderer, CubeUVReflectionMapping, GammaEncoding, LinearEncoding, NoToneMapping, NearestFilter, NoBlending, RGBDEncoding, RGBEEncoding, RGBEFormat, RGBM16Encoding, RGBM7Encoding, UnsignedByteType, sRGBEncoding, BackSide, BoxBufferGeometry, BufferAttribute, BufferGeometry, Color, Mesh, ...
<reponame>ricsam/node-redis<filename>lib/commands/index.ts import * as ACL_CAT from './ACL_CAT'; import * as ACL_DELUSER from './ACL_DELUSER'; import * as ACL_GENPASS from './ACL_GENPASS'; import * as ACL_GETUSER from './ACL_GETUSER'; import * as ACL_LIST from './ACL_LIST'; import * as ACL_LOAD from './ACL_LOAD'; impor...
<filename>src/extension/providers/debug_config_provider.ts<gh_stars>0 /* eslint-disable @typescript-eslint/tslint/config */ import * as fs from "fs"; import * as path from "path"; import * as vs from "vscode"; import { CancellationToken, DebugConfiguration, DebugConfigurationProvider, ProviderResult, Uri, window, works...
/// tsc 빌드시에 node.d.ts 파일을 포함시켜주시기 바랍니다. import fs = require("fs"); enum DataLocation { Both, Server, Client, } enum SeekOrigin { Begin, Current, End, } export function readFromFile(filename: string): IDataSet { return CremaReader.readFromFile(filename); } export class CremaReader { ...
import { Neovim } from '@chemzqm/neovim' import { CancellationToken, CancellationTokenSource, Disposable } from 'vscode-languageserver-protocol' import events, { InsertChange, PopupChangeEvent } from '../events' import Document from '../model/document' import Mru from '../model/mru' import sources from '../sources' imp...
// Copyright (C) 2020 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import { GlobalHotKeys, ExtendedKeyMapOptions } from 'react-hotkeys'; import Tooltip from 'antd/lib/tooltip'; import Layout from 'antd/lib/layout'; import Slider from 'antd/lib/slider'; import { ColorBy, GridCol...
import fs from 'fs'; import path from 'path'; import bayes from 'bayes'; import config from 'config'; import getUrls from 'get-urls'; import { clamp } from 'lodash'; import sanitizeHtml from 'sanitize-html'; import slackLib, { OPEN_COLLECTIVE_SLACK_CHANNEL } from '../lib/slack'; import models from '../models'; /** R...
// (C) 2021-2022 GoodData Corporation import React, { useCallback, useEffect, useMemo, useRef, useState } from "react"; import cx from "classnames"; import { injectIntl, WrappedComponentProps } from "react-intl"; import { IAnalyticalBackend, IAttributeElement, IAttributeMetadataObject } from "@gooddata/sdk-backend-spi"...
<gh_stars>10-100 /** * @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 */ /** * @fileoverview * @suppress {missingRequire} */ import {ADD_EVENT_LISTENER_STR, FALSE_STR, O...
import { createModule, mutation, action } from "vuex-class-component"; import { ProposedConvertTransaction, TradingModule, ViewToken, BaseToken, ProposedFromTransaction, ProposedToTransaction, ViewAmount, ModuleParam } from "@/types/bancor"; import { vxm } from "@/store"; import { get_bancor_output, ...
import { sha256 } from "@core/lib/crypto/utils"; import { clearOrphanedEnvUpdatesProducer } from "@core/lib/client/blob"; import { getEnvironmentsQueuedForReencryptionIds } from "@core/lib/graph"; import { getBlobParamsEnvParentIds, getBlobParamsEnvironmentAndLocalIds, } from "@core/lib/blob"; import { v4 as uuid }...
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. * Original Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE.txt in the project root for license information. *-------...
import { Button, Card, CardContent, CircularProgress, InputLabel, IconButton, RadioGroup, FormControlLabel, Box, Radio, } from "@material-ui/core"; import Popover from "@material-ui/core/Popover"; import CheckCircleOutlineIcon from "@material-ui/icons/CheckCircleOutline"; import MyLocationIcon from ...
/** * @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 {ApplicationInitStatus, COMPILER_OPTIONS, Compiler, Component, Directive, ModuleWithComponentFactories, NgMod...
const pluralize = require('../src/index') /** * Standard singular/plural matches. * * @type {Array} */ var BASIC_TESTS = [ // Uncountables. ['firmware', 'firmware'], ['fish', 'fish'], ['media', 'media'], ['moose', 'moose'], ['police', 'police'], ['sheep', 'sheep'], ['series', 'series'], ['agenda'...
import { Transformer, TransformerContext, InvalidDirectiveError, gql, getDirectiveArguments } from 'graphql-transformer-core' import Table from 'cloudform-types/types/dynamoDb/table' import { DirectiveNode, ObjectTypeDefinitionNode, Kind, FieldDefinitionNode, InterfaceTypeDefinitionNode, InputObjectTypeDefi...
<filename>src/app/modules/operaciones/pedido/pedido-itens/pedido-itens-dialog/pedido-itens-dialog.component.ts import { SelectionModel } from '@angular/cdk/collections'; import { CurrencyPipe } from '@angular/common'; import { AfterViewInit, Component, ElementRef, HostListener, Inject, OnInit, ViewChild, ...
/* * Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { token, CdsTheme } from './token-utils'; const layout = { space: { xxs: token(2), xs: tok...
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import colors from 'colors/safe'; import * as path from 'path'; import * as resolve from 'resolve'; import * as npmPacklist from 'npm-packlist'; import pnpmLin...
<filename>server/src/repository/mediaItem.ts<gh_stars>100-1000 import _ from 'lodash'; import { omitUndefinedValues, repository } from 'src/repository/repository'; import { getItemsKnex, generateColumnNames } from 'src/knex/queries/items'; import { Database } from 'src/dbconfig'; import { getDetailsKnex } from 'src/kn...
import { useEffect, useMemo, useState } from 'react' import { StackScreenProps } from '@react-navigation/stack' import { LoanParamList } from '@screens/AppNavigator/screens/Loans/LoansNavigator' import { View } from 'react-native' import { ThemedIcon, ThemedScrollView, ThemedText, ThemedView } from '@components...
<gh_stars>100-1000 import { WordDocument } from './word-document'; import { DomType, IDomTable, IDomNumbering, IDomHyperlink, IDomImage, OpenXmlElement, IDomTableColumn, IDomTableCell, TextElement, SymbolElement, BreakElement } from './dom/dom'; import { Length, CommonProperties } from './dom/common'; import { Opt...
import "es6-promise/auto"; import * as React from "react"; import * as SDK from "azure-devops-extension-sdk"; import { getBuildDefinitionsV1 , getBuildsV1 , getReleasesV1 , getProjects , getProject , sortBuilds , sortBuildReferences , getMinTimeFromNow , setUserPreferences , getUserPreferences } from "./PipelineSe...
import WebMscore from "webmscore"; import * as moment from "moment"; import formatSetup from "moment-duration-format"; import { Message } from "discord.js"; import { InputFileFormat } from "webmscore/schemas"; formatSetup(moment); import * as mm from "music-metadata"; import muse from "musescore-metadata"; import scdl ...
import { cpus } from 'os' import { basename, copyFileAsync, createDirAsync, isFileExists, isPathAccessible, join, rimraf, unlinkAsync, } from '@waiting/shared-core' import * as moment_ from 'moment' import { defer, from as ofrom, of, Observable } from 'rxjs' import { catchError, concatMap, defau...
/** * Class representing a vial of specimens all of the same taxon. */ import type { DataOf } from '../../shared/data_of'; import { type DB, toCamelRow } from '../integrations/postgres'; import { Taxon } from './taxon'; import { Location } from './location'; import { ImportFailure } from './import_failure'; import {...
<filename>src/sessions/video-session-handler.ts import { differenceBy, intersection } from 'lodash'; import { Constants } from 'stanza'; import { IPendingSession, IAcceptSessionRequest, ISessionMuteRequest, IExtendedMediaSession, IParticipantUpdate, IParticipantsUpdate, IOnScreenParticipantsUpdate, ISp...
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { app, BrowserWindow, dialog, ipcMain, shell } from 'electron'; import { IService } from './main'; import { ElectronStateDB } from './state'; import { JSONObject, JSONValue } from '@lumino/coreutils'; impo...
<reponame>ChromaPDX/qr-code-styling<filename>src/core/QRSVG.ts import calculateImageSize from "../tools/calculateImageSize"; import errorCorrectionPercents from "../constants/errorCorrectionPercents"; import QRDot from "../figures/dot/svg/QRDot"; import QRCornerSquare from "../figures/cornerSquare/svg/QRCornerSquare"; ...
<reponame>MunzT/NMTVis import {Component, OnInit, AfterContentInit, Inject} from '@angular/core'; import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material'; import {HttpClient} from '@angular/common/http'; import {ActivatedRoute, Router} from '@angular/router'; import * as d3 from 'd3'; import {BeamNod...
import { RqgActor } from "../actors/rqgActor"; import { RqgActorSheet } from "../actors/rqgActorSheet"; import { ActorTypeEnum } from "../data-model/actor-data/rqgActorData"; import { getActorTemplates, getHomelands, Rqid } from "../system/api/rqidApi"; import { RQG_CONFIG } from "../system/config"; import { assertIt...
import { Matrix, Point, TextureUvs } from "pixi.js"; import { EShapeCorner } from "../e-shape-corner"; import { toLength } from "./to-length"; import { STEP_VALUES, toStep } from "./to-step"; export const TRIANGLE_ROUNDED_VERTEX_COUNT = 22; export const TRIANGLE_ROUNDED_INDEX_COUNT = 15; export const TRIANGLE_ROUNDED_...
import * as metrics from '@balena/jellyfish-metrics'; import type { JsonSchema } from '@balena/jellyfish-types'; import type { Contract, ContractDefinition, } from '@balena/jellyfish-types/build/core'; import * as Bluebird from 'bluebird'; import * as _ from 'lodash'; import * as pgFormat from 'pg-format'; import * a...
<filename>test/ts/test/complex_xsd/SCL_Enums.ts import { UnsignedInt,TRestrName1stL } from "./BaseIndex" // Simple type // TPredefinedPTypeEnum ... export enum TPredefinedPTypeEnum { "IP" = 'IP', "IP-SUBNET" = 'IP-SUBNET', "IP-GATEWAY" = 'IP-GATEWAY', "OSI-NSAP" = 'OSI-NSAP', "OSI-TSEL" = 'OSI-TSEL', "OSI-SSE...
/* Copyright (c) 2021, <NAME> 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 above copyright notice, this list of conditions and the followin...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<reponame>layershifter/office-ui-fabric-react<gh_stars>0 /* eslint-disable */ /* tslint:disable */ let mapObj = function(obj, cb) { let ret = {}; let keys = Object.keys(obj); for (let i = 0; i < keys.length; i++) { let key = keys[i]; let res = cb(key, obj[key], obj); ret[res[0]] = res[1]; } ret...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<gh_stars>0 import { isVariableExpression, CallExpression, createIdentifier, DottedGetExpression, ExpressionStatement, createVisitor, WalkMode, ClassFieldStatement, createStringLiteral, createToken, ParseMode, TokenKind, isBrsFile, isXmlFile, Variabl...
import React, { useEffect, useState } from 'react'; import Modal from 'react-modal'; import { Card } from '~components/card/Card'; import Alert from '~components/alert/Alert'; import InputAmount from '~components/forms/InputAmount'; import { GreenButton, BorderButton, WithdrawButton, } from '~components/button/Bu...
/* * Copyright (c) 2006-2009 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * inclu...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------...
import * as d3 from 'd3'; import _ from 'lodash'; import { translate } from '@/utils/svg-util'; import { SELECTED_COLOR, SELECTED_COLOR_DARK } from '@/utils/colors-util'; import { chartValueFormatter } from '@/utils/string-util'; import dateFormatter from '@/formatters/date-formatter'; import { Timeseries, TimeseriesPo...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * This code has been adapted from https://github.com/exif-js/exif-js *--------------------------------------------------------------------------------------------*/ import { Logger, BentleyError, BentleyS...
// Following "A technique for Drawing Directed Graphs" of Gansner, Koutsofios, North and Vo import {copyTo} from '../../../utils/copy' import {randomInt} from '../../../utils/random' import {LayerArrays} from '../LayerArrays' import {ProperLayeredGraph} from '../ProperLayeredGraph' import {SugiyamaLayoutSettings} from...
import { Component, ComponentInterface, Host, Prop, Element, h, Event, EventEmitter, State, Listen, Method, Watch, } from "@stencil/core" import { addDays, startOfWeek, endOfWeek, setMonth, setYear, clamp, inRange, endOfMonth, startOfMonth, printISODate, parseISODate, cre...
export const names = [ "Aaden", "Aaliyah", "Aarav", "Aaron", "Ab", "Abagail", "Abb", "Abbey", "Abbie", "Abbigail", "Abbott", "Abby", "Abdiel", "Abdul", "Abdullah", "Abe", "Abel", "Abelardo", "Abie", "Abigail", "Babe", "Babette", ...
import React, { useState, forwardRef, useImperativeHandle, useEffect } from 'react'; import ReactECharts from 'echarts-for-react'; import ProCard from '@ant-design/pro-card'; import { isEqual, uniqWith, compact } from 'lodash'; import { Form, message, notification } from 'antd'; import { useIntl } from 'umi'; import Up...
<filename>packages/iconoir-react/src/index.d.ts<gh_stars>1-10 /// <reference types="react" /> import { FC } from 'react'; export interface IconProps { color?: string; size?: string | number; }; export type Icon = FC<IconProps>; export const Medal1st: Icon; export const Display4k: Icon; export const Cell4x4: Icon...
<reponame>ef4/cardstack import { JS_TYPE } from './utils/content'; import { BabelFileResult, transformFromAstSync } from '@babel/core'; import difference from 'lodash/difference'; import type { types as t } from '@babel/core'; import intersection from 'lodash/intersection'; import isEqual from 'lodash/isEqual'; import ...
<reponame>lyn-boyu/x6 import { v } from '../../../v' import { Point, Rectangle } from '../../../geometry' import { Platform, NumberExt, ObjectExt } from '../../../util' import { Cell } from '../../core/cell' import { View } from '../../core/view' import { Graph } from '../../core/graph' export class Scroller extends V...
import block from 'bem-cn'; import { bind } from 'decko'; import * as React from 'react'; import * as R from 'ramda'; import { ROUTES_PREFIX } from 'core/constants'; import { stockChartDefaultHistoryDepth } from 'shared/constants'; import { IChartItem } from 'shared/types/models'; import { Indicator } from 'shared/typ...
// Needed so that common.ts <-> schema.ts cyclical dependencies don't cause problems /* tslint:disable:no-duplicate-imports */ import * as fs from "fs"; import * as crypto from "crypto"; import * as path from "path"; import * as tmp from "tmp"; import * as qr from "qr-image"; import "passport"; // // Config // import ...
<reponame>boost-entropy-repos-org/lucy-web /** * Copyright © 2019 Province of British Columbia * * 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/...
/*--------------------------------------------------------------------------------------------- * Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved. * Licensed under the MIT License. See LICENSE.md in the project root for license terms. *-----------------------------------------------------------...
const RECORD_SEP = String.fromCharCode(30); const UNIT_SEP = String.fromCharCode(31); const DEFAULT_DELIMITER = ','; const FLOAT = /^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i; const ISO_DATE = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+...
import { Address, Script, Transaction } from "bitcore-lib-cash"; import { Utils } from './utils'; import { IGrpcClient } from 'grpc-bchrpc'; const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); export interface utxo { txid: string; vout: number; amount?: number; satoshis: num...
import * as fs from 'fs'; import * as path from 'path'; import * as request from 'request'; import * as proj4 from 'proj4'; import { Entity } from './lcms-entity'; import { ActionLayer } from './lcms-action-layer'; import { Settings } from './lcms-settings'; export class CoordinateTransform { private transform: pr...
import { expectTypeOf } from 'expect-type'; import Maybe, { just, nothing } from '../src/maybe'; import Result, { Ok, Variant, Err } from '../src/result'; import Unit from '../src/unit'; import { AndThenAliases } from './test-utils'; const length = (x: { length: number }) => x.length; const double = (x: number) => x *...
import config from 'app-config' import moment from 'moment/moment' import { request, constants, ethToken } from 'helpers' import actions from 'redux/actions' import { getState } from 'redux/core' import reducers from 'redux/core/reducers' import * as bip39 from 'bip39' import axios from 'axios' import { getActivated...
import { EventEmitter } from "events" import * as path from "path" import * as mkdirp from "mkdirp" import * as Oni from "oni-api" import { Event, IEvent } from "oni-types" import * as Log from "./../Log" import * as Performance from "./../Performance" import { EventContext } from "./EventContext" import { addDefau...
/* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /* eslint-disable no-underscore-dangle */ /* eslint-disable @typescript-eslint/member-ord...
/*! * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { copyFile, readFile, remove, writeFile } from 'fs-extra' import * as path from 'path' import * as request from 'request' import * as tcpPortUsed from 'tcp-port-used' import * as vscode from...
<filename>packages/schema/compose/src/resolve.ts /* eslint-disable no-useless-escape */ /* eslint-disable @typescript-eslint/naming-convention */ /* eslint-disable @typescript-eslint/ban-types */ import { ExternalImport, LocalImport, SchemaResolver, SchemaResolvers, SYNTAX_REFERENCE, } from "./types"; import...
<filename>packages/core/src/internal/wrappedselection.ts<gh_stars>10-100 import {Module} from "../module"; import {config, features, onDocReady} from "../api"; import {DOMException} from "../DOMException"; import * as util from "../util"; import {areHostMethods, isHostMethod} from "../util"; import * as dom from "../...
/** * canvas-equalizer is distributed under the FreeBSD License * * Copyright (c) 2012-2020 <NAME>, <NAME> * All rights reserved. * * 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...
import { ICodeSet, ICodeGroup } from './interfaces'; /** * Application Status codes. * * @export * @class StatusCodes * @implements {ICodeSet} */ export class StatusCodes implements ICodeSet { public static readonly ABANDONED: ICodeGroup = { code: 'ABANDONED', param: 'AB', text: { long: 'Abandoned'...
import * as React from "react"; import randomid from "../../../utils/randomid"; import { reverse } from "../../../utils/sequence"; /** * a single row of primers. Multiple of these may be in one seqBlock * vertically stacked on top of one another in non-overlapping arrays */ class PrimerRow extends React.PureCompon...
<filename>src/DeveloperSupportRelease/test/main.ts import { BoundedQueue } from './queue'; import { MethodEntry, ClassEntry, ParameterEntry, DeviceInfo, Analytics } from '@gnaudio/jabra-browser-integration'; import * as jabra from '@gnaudio/jabra-browser-integration'; import * as toastr from "toastr"; import * as _api...
<reponame>lowphas/grapesjs import { isUndefined, isArray, contains, toArray, keys, bindAll, } from 'underscore'; import Backbone from 'backbone'; import $ from '../../utils/cash-dom'; import Extender from '../../utils/extender'; import { getModel, hasWin, isEmptyObj } from '../../utils/mixins'; import { Mod...
import React from 'react'; import {Box, Button, Flex, Heading, Text, Link} from 'theme-ui'; import {Socket, Presence} from 'phoenix'; import {motion} from 'framer-motion'; import ChatMessage, {PopupChatMessage} from './ChatMessage'; import ChatFooter from './ChatFooter'; import AgentAvailability from './AgentAvailabili...
<gh_stars>100-1000 /* eslint-ignore @typescript-eslint/no-use-before-define */ import {vec2, mat2d} from 'gl-matrix' import Bezier from 'bezier-js' import svgpath from 'svgpath' import Voronoi from 'voronoi' import paper from 'paper' import {PaperOffset, OffsetOptions} from 'paperjs-offset' import { MalVal, keywordF...
import * as pkmn from 'pkmn'; import {Rules} from './rules'; import {Species} from './species'; /** * Describes a possible way to get a pokemon. Is not exhaustive! * sourcesBefore covers all sources that do not have exclusive * moves (like catching wild pokemon). * * First character is a generation number, 1-7. ...
const RESERVED = [ "break", "do", "in", "typeof", "case", "else", "instanceof", "var", "catch", "export", "new", "void", "class", "extends", "return", "while", "const", "finally", "super", "with", "continue", "for", "switch", "yield", "debugger", "function", "this",...
<gh_stars>1-10 import { Player, Sequence, Transport } from "tone"; import { generateColor } from "../helpers/PhaserHelpers"; import DrumPad from './drumPad'; import Metronome from './metronome'; import starterLoops from './starterLoops'; import MachineMusicMan, { ModelCheckpoints, MLModels } from '../components/mlmusic...
<filename>src/compiler/phases/codeGenerationPhase.ts<gh_stars>100-1000 import * as t from '@webassemblyjs/ast'; import { print } from '@webassemblyjs/wast-printer'; declare var global: any; global['Binaryen'] = { TOTAL_MEMORY: 16777216 * 8 }; import * as binaryen from 'binaryen'; import _wabt = require('wabt'); im...
<filename>src/Scripts/helpers/utils.ts /*! * Bravo for Power BI * Copyright (c) SQLBI corp. - All rights reserved. * https://www.sqlbi.com */ // Utils export module Utils { export type RequestAbortReason = "user" | "timeout"; export enum ResponseStatusCode { BadRequest = 400, NotAuthorized...
<reponame>kshetline/ligatures-limited // The technique used in the code below for suppressing the rendering of ligatures // was originally derived from https://github.com/CoenraadS/vscode-Disable-Ligatures, // then modified later for changes in VSCode. // // This extension also replicates (and expands) the functionalit...
import { getDescription, getSolution, ProblemDescription, submitCode } from "./fetch"; import { IProblemInfo } from "./problemProvider"; import * as vscode from "vscode"; import * as fs from "fs"; import * as os from "os"; import * as path from "path"; import { getStatusInfo } from "./config"; import { replaceGccDiagno...
import cloneDeep from 'lodash.clonedeep'; import * as postcss from 'postcss'; import { FileProcessor } from './cached-process-file'; import { Diagnostics } from './diagnostics'; import { evalDeclarationValue } from './functions'; import { nativePseudoElements, reservedKeyFrames } from './native-reserved-lists';...
import { spawn, spawnSync, execSync } from "child_process"; import { resolve, dirname, basename, sep, extname } from "path"; import { tmpdir } from "os"; import { existsSync, unlinkSync } from "fs"; import { waitForOutput, executeCommand, tailFilelUntil, fileExists, wait, getRegexResultsAsArray ...
<reponame>nonsensecodes/corde import { BitField } from "discord.js"; import { Stream } from "stream"; export interface IAuthor { icon_url: string; name: string; url: string; } export interface IField { name: string; inline: boolean; value: string; } export interface IImage { url: string; } export inte...
// File: textmate-grammar-definition.ts // // Project: lieene.CodeFactory // // Author: <NAME> // // MIT License, Copyright (c) 2019 Lieene@ShadeRealm ...
<reponame>rlisahuang/vscode import 'vs/css!./interactLive'; import { Button } from 'vs/base/browser/ui/button/button'; import { ICodeEditor } from 'vs/editor/browser/editorBrowser'; import { IInteractLiveComponent } from 'vs/editor/contrib/interactLive/InteractLiveInterfaces'; import { UIChange, EventsFromUIChange } f...
/** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors ma...
<filename>src/sync-accumulator.ts /* Copyright 2017 - 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 re...
<gh_stars>1-10 import { BufferGeometry, Float32BufferAttribute, Mesh, MeshBasicMaterial, Object3D, PlaneBufferGeometry, Renderer, sRGBEncoding, Texture, VideoTexture, WebGLRenderer, Uint16BufferAttribute } from 'three'; enum PlayModeEnum { Single = 1, Random, Loop, SingleLoop, } enum V...
<reponame>Superwhammybar/oldschoolbot import { MessageAttachment } from 'discord.js'; import { calcPercentOfNum, randInt, roll, sumArr, Time } from 'e'; import { CommandStore, KlasaMessage, KlasaUser } from 'klasa'; import fetch from 'node-fetch'; import { Bank, Monsters } from 'oldschooljs'; import { table } from 'tab...
import { Logger } from 'winston'; import { CPCApiHelpers } from './blizzard-api-helpers.js'; import { ALL_PROFESSIONS } from './shared-constants.js'; const sql_insert_auction = 'INSERT INTO auctions(item_id, quantity, price, downloaded, connected_realm_id, bonuses) VALUES($1,$2,$3,$4,$5,$6)'; const sql_insert_auction_...
// -*- 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...
<gh_stars>1-10 import * as vscode from 'vscode'; import { SourceAdapter, ProjectTree, TreeNode, getDocument } from '../source/sourceAdapter'; import MarkdownIt from "markdown-it"; import markdownItAnchor from "markdown-it-anchor" import hljs from 'highlight.js' import { Document } from '../source/document'; impor...
/* eslint-disable functional/immutable-data */ import type { Chunk } from '../../Chunk' import type { TypedArray } from '../../prelude' import type { StyleFunction } from './styles' import * as A from '../../Array/core' import { CaseClass } from '../../Case' import * as C from '../../Chunk/core' import { pipe } from '...
import { ApplicationLogJSON, CallReceiptJSON, common, crypto, JSONHelper, LogJSON, RelayTransactionResultJSON, scriptHashToAddress, toVerifyResultJSON, toVMStateJSON, TransactionJSON, TransactionReceiptJSON, VerboseTransactionJSON, VerifyResultModel, } from '@neo-one/client-common'; import {...
<reponame>gwk/mypy-vscode<gh_stars>0 import * as vscode from 'vscode'; import * as path from 'path'; import * as crypto from 'crypto'; import { spawn } from 'child-process-promise'; import * as fs from 'fs'; import { lookpath } from 'lookpath'; import untildify = require('untildify'); import * as semver from 'semver'; ...
/** Declaration file generated by dts-gen */ export class ADB { constructor(...args: any[]); adbExec(cmd: any, opts: any): any; adbExecEmu(cmd: any): void; androidCoverage(instrumentClass: any, waitPkg: any, waitActivity: any): any; availableIMEs(): any; back(): void; broadcast(intent...
<filename>src/main/services/lcp.ts // ==LICENSE-BEGIN== // Copyright 2017 European Digital Reading Lab. All rights reserved. // Licensed to the Readium Foundation under one or more contributor license agreements. // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file expo...