text
stringlengths
9.82k
47.8k
import { getEventType, toStatePath, toStateValue, mapValues, path, toStatePaths, pathsToStateValue, pathToStateValue, getActionType, flatMap, mapFilterValues } from './utils'; import { Event, StateValue, Transition, Action, Machine, StandardMachine, ParallelMachine, SimpleOrCompoun...
import * as React from 'react'; import { Logger, LogLevel } from "@pnp/logging"; import isEqual from "lodash/isEqual"; import find from "lodash/find"; import findIndex from "lodash/findIndex"; import includes from "lodash/includes"; import cloneDeep from "lodash/cloneDeep"; import filter from "lodash/filter"; import i...
<reponame>CiscoKidxx/amplify-js import { Component, Input } from '@angular/core'; import { AmplifyService, AuthState } from '../../../providers'; import { SignUpComponentCore } from './sign-up.component.core'; const template = ` <div class="amplify-authenticator" *ngIf="_show"> <div class="amplify-form-body"> <d...
import debug from 'debug' import SwapApp, { SwapInterface, constants, util } from 'swap.app' import BigNumber from 'bignumber.js' import { Flow } from 'swap.swap' class UTXOBlockchain extends SwapInterface { _swapName: string = null fetchBalance: Function = undefined fetchUnspents: Function = undefined broad...
<reponame>tyler-cai-microsoft/FluidFramework /*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /* eslint-disable no-bitwise */ import { expect } from 'chai'; import { Generator, createWeightedGenerator, interleave, makeRandom, performFuzzActi...
import Head from 'next/head'; import React, { FormEvent, forwardRef, Ref, useEffect, useState } from 'react'; import Image from 'next/image'; import ReactTooltip from 'react-tooltip'; import DatePicker from 'react-datepicker'; import dynamic from 'next/dynamic'; import { DropdownItem, PageWithLayout, TaskPriorit...
<reponame>zzzyer/wechaty-puppet-official-account /* eslint-disable camelcase */ import { ContactGender, FileBox, log, MiniProgramPayload, UrlLinkPayload, } from 'wechaty-puppet' import pkg from 'uuid' import crypto from 'crypto' import { EventEmitter } from 'events' import { Fi...
<gh_stars>0 /** * Copyright (c) 2006-2019, JGraph Ltd * Copyright (c) 2006-2017, draw.io AG */ import Point from '../geometry/Point'; import Rectangle from '../geometry/Rectangle'; import TemporaryCellStates from '../cell/TemporaryCellStates'; import InternalEvent from '../event/InternalEvent'; import mxClient from...
import { ASCII_MAZE_LAYOUT, CELL_SIZE, TICKS_PER_FRAME } from '../config'; import { Direction } from './core'; import { Character } from './Character'; import { Cell } from './Cell'; import { Maze } from './Maze'; import { ActiveControllerInputs, Controller, Controllers } from './Controller' import { Sprite, orientatio...
/*! * noa: an experimental voxel game engine. * @url github.com/andyhall/noa * @author <NAME> <<EMAIL>> * @license MIT */ import vec3 from 'gl-vec3' import ndarray from 'ndarray' import raycast from 'fast-voxel-raycast' import "@babylonjs/core/Meshes/meshBuilder" import "@babylonjs/core/Meshes/Builders/s...
<filename>src/pdf/pdf.ts-web/ui_utils.ts /* Converted from JavaScript to TypeScript by * nmtigor (https://github.com/nmtigor) @2022 */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
<filename>e2e/cypress/support/commands.ts import 'cypress-plugin-snapshots/commands'; import { INLINE_TOOLBAR_BUTTONS, PLUGIN_TOOLBAR_BUTTONS, IMAGE_SETTINGS, GALLERY_SETTINGS, VIDEO_PLUGIN, HTML_PLUGIN, PLUGIN_COMPONENT, STATIC_TOOLBAR_BUTTONS, ACTION_BUTTONS, TOOLBARS, COLOR_PICKER, COLLAPSIBL...
import { clamp, remove } from "lodash"; import { Component, createRef, h } from "preact"; import { BufferAttribute, BufferGeometry, Camera, Color, EllipseCurve, Face3, Geometry, Line, LineBasicMaterial, LineDashedMaterial, LineSegments, Material, Mesh, MeshBasicMaterial, Object3D, Orthog...
<gh_stars>0 import { Character } from "./character" import { MonsterName, PositionReal, BankPackType } from "./definitions/adventureland" import { upgradeIfMany, compoundIfMany, upgradeItem } from "./upgrade" import { sellUnwantedItems, exchangeItems, buyFromPonty, openMerchantStand, closeMerchantStand, buyScrolls } fr...
<filename>src/deep-linking/util.ts import { basename, dirname, extname, relative, sep } from 'path'; import { ArrayLiteralExpression, CallExpression, ClassDeclaration, createClassDeclaration, createIdentifier, createNamedImports, Decorator, Expression, Identifier, ImportDeclaration, ImportSpecifi...
import * as cp from 'child_process'; import * as fse from 'fs-extra'; import * as os from 'os'; import { exec, spawn } from 'child_process'; import trash from 'trash'; import { join, dirname, normalize, relative, } from './path'; import { MB1 } from './common'; import * as io from './io'; const AggregateError = re...
<filename>src/app/mat-select-table/mat-select-table.component.ts<gh_stars>0 import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Input, OnChanges, OnDestroy, OnInit, Output, QueryList, SimpleChanges, ViewChild, ViewChildren } fr...
/* eslint-disable accessor-pairs */ /** * This module provides functions for validating & deriving public * keys and extended public keys. * * @module keys */ import { ECPair } from "groestlcoinjs-lib"; import * as bip32 from "bip32grs"; import bs58check from "bs58grscheck"; import { Struct, BufferWriter, BufferR...
<gh_stars>1-10 import { defined } from '../../Base.js'; let dayPicker = { onKeyDown: dayPickerKeyDown, onClick: { 'dp-day': selectDay, 'dp-next': gotoNextMonth, 'dp-prev': gotoPrevMonth, 'dp-today': selectToday, 'dp-clear': clear, 'dp-close': close, 'dp-cal-month': showMonthPicker, ...
/** * @license * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
<reponame>Nystrata/noclip.website<filename>src/BanjoKazooie/actors.ts import { GeometryRenderer, FlipbookRenderer, GeometryData, MovementController, AnimationMode } from './render'; import { vec3, mat4 } from 'gl-matrix'; import { nArray, assertExists } from '../util'; import { MathConstants } from '../MathHelpers'; im...
/* eslint-disable @typescript-eslint/no-non-null-assertion */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/no-explicit-any */ // process.traceDeprecation = true; const CARD_NAME = "midea-humidifier-card"; const version = "1.0.7"; console.info( `%c ${CA...
import { DataType, ElfBinary, Pointer } from "./elfBinary"; import { FILE_TYPES } from "./fileTypes"; import type { Struct } from "./fileTypes"; import { BinaryReader, Vector3 } from "./misc"; import { demangle } from "./nameMangling"; import { Relocation, Section, Symbol } from "./types"; type Typedef<T> = {[fieldNam...
import { v4 as UUIDV4 } from 'uuid' import * as YAML from 'yaml' import { ModuleEntity } from './ModuleEntity' import { Module } from './Module' /** Represents a Monster in a Module */ export class Monster extends ModuleEntity { // --------------------------------------------------------------- // Initialization &...
<reponame>cs-au-dk/ICSE-2021-Paper-105 /** * Use https://astexplorer.net/ for debugging/understanding the structure of AST * nodes. */ import { AssignmentPattern, Identifier, Pattern as AstPattern, Program, Node, ImportDeclaration, VariableDeclaration, AssignmentExpression, Funct...
/* * @Author: ws.s * @Date: 2018-12-06 16:11:31 * @Last Modified by: wss * @Last Modified time: 2019-05-22 23:08:05 */ const { ccclass, property, menu, disallowMultiple,requireComponent,executionOrder} = cc._decorator; enum FOLLOW_TYPE { /** 跟随玩家,且不使用 dead zone. */ LOCK_ON, /** 一种跟随风格,使用高,窄的死区(0.3...
import { Models, Routes } from "@triply/utils"; import App from "./App"; import * as fs from "fs-extra"; import { wait } from "./utils"; import debug from "debug"; import Service from "./Service"; const log = debug("triply:triplydb-js:upload"); import * as tus from "@triply/tus-js-client"; import md5 from "md5"; import...
<filename>src/benchmark.ts import _ from 'lodash' // tslint:disable-next-line:no-submodule-imports import uuid from 'uuid/v4' import { Deferred } from './deferred' import { Event } from './event' import { EventEmitter } from './eventEmitter' import { AnyFunction, CompareResult, EventType } from './types' import { divis...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<reponame>morgothulhu/alexa-get-tickets<filename>geoHelper.ts class GeoHelper { /** * Try getting the City+State for a given city */ public tryGetFullCity(city: string): string { let zipCode = parseInt(city); if (!isNaN(zipCode)) { // zip code - all good return ...
/* * @license Spanboon Platform v0.1 * (c) 2020-2021 KaoGeek. http://kaogeek.dev * License: MIT. https://opensource.org/licenses/MIT * Author: p-nattawadee <<EMAIL>>, Chanachai-Pansailom <<EMAIL>> , Americaso <<EMAIL> > */ import { Component, OnInit, Input, ViewChild, ElementRef, HostListener, EventEmitter, Out...
<gh_stars>1-10 import { Version } from '@microsoft/sp-core-library'; import { PropertyFieldColorPicker, PropertyFieldColorPickerStyle } from '@pnp/spfx-property-controls/lib/PropertyFieldColorPicker'; import { PropertyFieldPeoplePicker, PrincipalType } from '@pnp/spfx-property-controls/lib/PropertyFieldPeoplePicker'; i...
import { Vector2 } from "three"; import { AlignType, AutoSizeType, VertAlignType } from "../../ui/FieldTypes"; import { UIConfig } from "../../ui/UIConfig"; import { HtmlElement, HtmlElementType, elementPool } from "../../utils/html/HtmlElement"; import { HtmlLink } from "../../utils/html/HtmlLink"; import { defaultPar...
/**The lower API of jclient/js */ import $ from 'jquery'; import AES from './aes'; import { Protocol, AnsonMsg, AnHeader, AnsonResp, DatasetierReq, AnSessionReq, QueryReq, UpdateReq, InsertReq, LogAct, AnsonBody, JsonOptions, UserReq, OnCommitOk, OnLoadOk, AnResultset, CRUD, DatasetierResp, PkMeta } from './protoc...
declare const enum kTip { /* 1: */ raw = 1, /* 4..9 */ didUnHoverLast = 4, globalInsertMode, noPassKeys, normalMode, nTimes, passNext, /* 10..15 */ noLinksToGo, noFocused, focusedIsHidden, noInputToFocus, noUrlCopied, noTextCopied, /* 17: */ kCommonEvents = 17, /* 20..25 */ copiedIs = 20, highContrast_WOB, to...
import React, { useEffect, useState } from "react"; import { Checkbox, Row, Col, Button, Collapse, Popover, Switch } from 'antd'; import { CloseOutlined } from '@ant-design/icons'; import { FLOODPLAINS_FEMA_FILTERS, FLOODPLAINS_NON_FEMA_FILTERS, WATERSHED_FILTERS, STREAMS_FILTERS, SERVICE_AREA_FILTERS, MUNI...
import { ensureDefined, ensureNotNull } from '../helpers/assertions'; import { drawScaled } from '../helpers/canvas-helpers'; import { DeepPartial } from '../helpers/strict-type-checks'; import { CanvasRenderParams } from '../model/canvas-render-params'; import { HitTestResult, HitTestType } from '../model/hit-te...
<gh_stars>1-10 import { XjsTplFunction, XjsContentNode, XjsNodeParam, XjsExpression, XjsElement, XjsParam, XjsCData, XjsProperty, XjsFragment, XjsJsStatement, XjsJsBlock, XjsComponent, XjsParamNode, XjsNode, XjsTplArgument, XjsText, XjsDecorator, XjsLabel } from '../../xjs/types'; import { parse, XjsParserContext } fro...
import {HashSet} from '@esfx/collections' import {ICurve, Point} from '../../..' //import {SvgDebugWriter} from '../../../../test/utils/svgDebugWriter' import {Curve, PointLocation, LineSegment, GeomConstants} from '../../../math/geometry' import {Ellipse} from '../../../math/geometry/ellipse' import {PolylinePoint} f...
// import { Line } from '../objects/line'; import { Gift } from '../objects/gift'; import { Planet } from '../objects/planet'; import { Bar } from '../objects/bar'; import { AssetsMenu, customConfig } from '../const/config'; import { Holes } from "../objects/holes"; // import { Zone } from '../objects/zone'; // let Ass...
<filename>lib/GenmInstrument.ts import { GenMInstrumentValues } from "./main.d"; import { mapToCCRange } from "./utils/map-to-cc-range"; import { packAmEnableFirstDecay, packDetuneMultiple, packRateScalingAttack, packSustainRelease, } from "./utils/register-pack"; interface GenMdmMidiParameter { cc: number; ...
<gh_stars>1-10 import * as chalk from "chalk"; import { Query, Queryable, from } from "iterable-query"; import { EOL } from "os"; import { Resolver, Command, Option, OptionSet } from "./resolver"; import { CommandLine } from "./commandLine"; import { CommandLineVisibility } from "./types"; declare module "chalk...
import { OneAst as one } from "../One/Ast"; import { ExprLangParser } from "./ExprLang/ExprLangParser"; import { OverviewGenerator } from "../One/OverviewGenerator"; import { LangFileSchema } from "./LangFileSchema"; import { deindent } from "./Utils"; import { SchemaCaseConverter, CaseConverter } from "../One/Transfor...
<gh_stars>10-100 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *----------------------------------------------...
import { _AbstractConstructor } from '@angular/material/core'; import { AfterContentInit } from '@angular/core'; import { BooleanInput } from '@angular/cdk/coercion'; import { CanColor } from '@angular/material/core'; import { CanDisable } from '@angular/material/core'; import { CanDisableRipple } from '@angular/materi...
/** * MIT License * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
<gh_stars>0 import { GenerationNum, HPTypeName, ID, PokemonSet, StatName, StatsTable, } from '@pkmn/types'; export interface Data { forGen?(gen: GenerationNum): Data; readonly gen: GenerationNum; getAbility(ability: string): Readonly<{name: string}> | undefined; getItem(item: string): Readonly<{na...
import IRenderer from '../../IRenderer'; import * as PIXI from 'pixi.js-legacy'; import Grid from '@core/grid/Grid'; import ISimulationEventListener from '@models/ISimulationEventListener'; import Simulation from '@core/Simulation'; import Camera from '@src/rendering/Camera'; import CellType from '@models/CellType'; im...
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { ICommandPalette } from '@jupyterlab/apputils'; import { IMainMenu } from '@jupyterlab/mainmenu'; import { INotebookTracker } from '@jupyterlab/notebook'; import { IEditorTracker } from '@jupyterlab/fileeditor'; import { ISta...
import { BACKSPACE, DOWN_ARROW, ENTER, ESCAPE, LEFT_ARROW, RIGHT_ARROW, UP_ARROW } from '@angular/cdk/keycodes'; import { CdkConnectedOverlay, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay'; import { forwardRef, ChangeDetectionStrategy, ChangeDetectorRef, Component, Eleme...
<reponame>jredl-va/plugin-server import Piscina from '@posthog/piscina' import { PluginEvent } from '@posthog/plugin-scaffold' import * as Sentry from '@sentry/node' import AdmZip from 'adm-zip' import { randomBytes } from 'crypto' import Redis, { RedisOptions } from 'ioredis' import { DateTime } from 'luxon' import { ...
<filename>GraphLayout/MsaglSharpkit/WebMsagl/Scripts/src/msagl.worker.ts import G = require('./ggraph'); import M = require('./messages'); importScripts("sharpkit_pre.js"); importScripts("jsclr.js"); importScripts("Microsoft.Msagl.js"); importScripts("sharpkit_post.js"); /** Namespace for SharpKit-generated code. */ ...
/* -------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * -------------------------------------------------------------...
<filename>src/commands/git/worktree.ts<gh_stars>100-1000 import { MessageItem, QuickInputButtons, Uri, window } from 'vscode'; import { configuration } from '../../configuration'; import { Container } from '../../container'; import { PlusFeatures } from '../../features'; import { WorktreeCreateError, WorktreeCreateEr...
<filename>b+tree.d.ts import { ISortedMap, ISortedMapF } from './interfaces'; export { ISetSource, ISetSink, ISet, ISetF, ISortedSetSource, ISortedSet, ISortedSetF, IMapSource, IMapSink, IMap, IMapF, ISortedMapSource, ISortedMap, ISortedMapF } from './interfaces'; export declare type EditRangeResult<V, R = number> = { ...
import uuid from './uuid'; import BaseModel from './BaseModel'; import Note from './models/Note'; import Tag from './models/Tag'; import Resource from './models/Resource'; import Setting from './models/Setting'; import time from './time'; import shim from './shim'; import { NoteEntity } from './services/database/types'...
// This file implements the tuple layer. More details are here: // https://apple.github.io/foundationdb/data-modeling.html#tuples // // And the typecodes are here: // https://github.com/apple/foundationdb/blob/master/design/tuple.md // // This code supports: // - null, true, false // - integers // - byte string // - un...
<gh_stars>0 import * as crud from 'back-end/lib/crud'; import * as db from 'back-end/lib/db'; import * as cwuOpportunityNotifications from 'back-end/lib/mailer/notifications/opportunity/code-with-us'; import * as permissions from 'back-end/lib/permissions'; import { basicResponse, JsonResponseBody, makeJsonResponseBody...
<filename>src/components/tree/tree.ts import { Binding, Property, Element, Emitter, Inject } from '../../binding/factory/decorator'; import { createElement, removeMe } from 'neurons-dom'; import { IEmitter, EventEmitter, emitter } from 'neurons-emitter'; import { StateChanges, IChangeDetector, IBindingRef, IElementRef...
import {PolymerElement, html} from '@polymer/polymer/polymer-element'; import '@polymer/polymer/lib/elements/dom-repeat'; import '@polymer/polymer/lib/elements/dom-if'; import '@polymer/iron-flex-layout/iron-flex-layout-classes'; import '@polymer/paper-icon-button/paper-icon-button'; import '@polymer/iron-icons/iron-ic...
import { Client } from '../../api/client'; import { SessionKeepAlive } from '../session-keep-alive'; import { Bounds, GenericEvent, ActiveMapTool, ImageFormat, RefreshMode, SelectionVariant, ClientKind, LayerTransparencySet, Size, BLANK_SIZE, IMapGuideViewerSupport, Dictionary } from '../../api/common'; import { IQuer...
/* * Copyright 2017 Next Century 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
import * as momentNs from 'moment'; import { Component, Input, OnInit, HostListener, ElementRef, Output, EventEmitter } from '@angular/core'; import { TimeSeriesType } from '../../models/detector'; import HC_exporting from 'highcharts/modules/exporting'; import AccessibilityModule from 'highcharts/modules/accessibility...
<filename>src/app/testing/gene-mocks.ts import { Gene, GeneInfo, GeneNetworkLinks, GeneNetwork, GeneStatistics, GenesResponse, Metabolomics, LinksListResponse, GeneExpValidation, GeneScoreDistribution, DistributionData, GeneOverallScores, GeneResponse, RnaDistribu...
import { recHit } from "src/conexion/mssql"; import { fechaParaSqlServer } from "src/funciones/fechas"; import { ParametrosInterface } from "src/parametros/parametros.interface"; import { TicketsInterface } from "./tickets.interface"; class TicketsClass { /* Comprueba que estén todos los datos necesarios del ticke...
<filename>src/sexpr.ts<gh_stars>100-1000 import { assertEq } from "./test" // // simple s-expressions parser made for arch rewrite rules DSL, // but is generic and can be used independently. // Do remember than changing this requires testing of the generator // program in the arch directory. // const char = (s :string...
<reponame>rjrodger/aontu import Lab from '@hapi/lab' import Code from '@hapi/code' var lab = (exports.lab = Lab.script()) var describe = lab.describe var it = lab.it var expect = Code.expect import { Lang } from '../lib/lang' import { Context } from '../lib/unify' import { unite } from '../lib/op/op' ...
import { Subject } from 'rxjs'; import { getScrollbarWidth } from './support'; export type ScrollMode = 'auto' | 'overlay' | 'hidden'; export type ScrollPosition = 'start' | 'middle' | 'end' | 'full'; export type ScrollState = 'hidden' | 'scrolling'; export type ScrollExtremity = 'start' | 'end'; export type ScrollDi...
function unreachable(a: never): never { return a; } function ObjectKeys(obj: object) { return Object.keys(obj); } // namespace Objects { // export function merge<Value>(obj1: {[k: string]: Value}, obj2: {[k: string]: Value}): {[k: string]: Value} { // const obj: {[k: string]: Value} = {}; // for (var ke...
import { DataException, DataExceptionType, OperationException, OperationExceptionType, SessionException, SessionExceptionType } from './exception' import { Location as LocationSettings, Session as SessionSettings } from './settings' import { Post, TranslateFault } from './service' import { Event, Guid } from './syste...
<reponame>mhamann/estrella /* This module is an adoptation of Go's simple and elegant os/exec.Cmd package. It provides a reliable and simple way to run sub-processes. The API and semantics prioritize clarity & simplicity over ease. There are two important members: class Cmd(command :string, ...args :string[]) impleme...
// @ts-nocheck /* * Why nocheck? * BitInt requires at least ES2020, but we can't use it as * NodeJS doesn't support some of this new features. * e.g.: object?.property */ import { STATUS, STATUS_TEXTS, STATUS_CODES, USER_GENDER_MALE, USER_GENDER_FEMALE, USER_GENDER_OTHER, USER_GENDER_ICONS, USER_GENDE...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>YoraiLevi/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------...
import React, {useEffect, useState} from 'react'; import { View, StyleSheet, TouchableOpacity, FlatList, Text, SafeAreaView, Dimensions, BackHandler, Platform, } from 'react-native'; import {connect} from 'react-redux'; import HmsManager, { HmsView, HMSUpdateListenerActions, HMSMessage, HMSPee...
import {Checkbox, Colors, Icon, NonIdealState} from '@blueprintjs/core'; import {IconNames} from '@blueprintjs/icons'; import isEqual from 'lodash/isEqual'; import * as React from 'react'; import {Link} from 'react-router-dom'; import styled from 'styled-components/macro'; import {AppContext} from '../app/AppContext';...
<gh_stars>0 import { Component, OnInit, NgModule, EventEmitter, Pipe, PipeTransform, ViewChild } from '@angular/core'; import { FormsModule, FormControl, FormBuilder, Validators, FormGroup, ReactiveFormsModule } from '@angular/forms'; import { ChartModule, TabViewModule, UIChart, MenubarModule, MenuItem, PanelModule...
<gh_stars>1-10 import { makeExecutableSchema, addMockFunctionsToSchema, GraphQLParseOptions, } from 'graphql-tools'; import { Server as NetServer } from 'net' import { Server as TlsServer } from 'tls' import { Server as HttpServer } from 'http'; import { Http2Server, Http2SecureServer } from 'http2'; import { Ser...
<filename>srcL/app/modules/data-management/contract/pages/edit-contract/contract-line-items/edit-item/edit-item.component.ts import { Component, ViewChild, OnInit, Input } from '@angular/core'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; ...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
<gh_stars>10-100 export const cobolKeywords: string[] = [ "accept", "access", "add", "address", "advancing", "after", "all", "alphabet", "alphabetic-lower", "alphabetic-upper", "alphabetic", "alphanumeric-edited", "alphanumeric", "also", "alter", "alternate", "and", "any", "apply", "are", "area", ...
import { Button } from "@material-ui/core" import * as p5 from "p5" import React, { useState } from "react" import ReactDOM from "react-dom" import { isFunctionScopeBoundary } from "tslint/lib/utils" import { Screenshot } from "../classes/downloader" import { Life } from "../classes/life" import { WorldObject } from "....
<gh_stars>0 // Derived from searchtools.js in sphinx. // // :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. // :license: BSD, see LICENSE for details. import escapeHTML from "escape-html" import { configuration } from "~/_" import { SearchResultItem } from "./integrations/search/_" interface Sphinx...
<gh_stars>0 import { Program } from "./program"; /** * Type System types */ export type DecoratorArgument = Type | number | string | boolean; export interface DecoratorApplication { decorator: DecoratorFunction; args: DecoratorArgument[]; node?: DecoratorExpressionNode; } export interface DecoratorFunction ...
import * as sdtmCols from "./columns-constants"; export const SDTM_VERSION = '1.7'; export const SDTMIG_VERSION = '3.3'; export const enum isRequired { REQUIRED, EXPECTED, PERMITTED } export const classes = { 'Events': { 'AE': 'Adverse Events', 'CE': 'Clinical Events', 'DS': 'Disposition', 'D...
<filename>src/worker/injected.ts import { makeRandomToken } from "../shared/main"; // This file is injected as a regular script in all pages and overrides // `.addEventListener` (and friends) so we can detect click listeners. // This is a bit fiddly because we try to cover our tracks as good as possible. // Basically...
import {action, observable, reaction, toJS} from "mobx"; import {get} from "lodash"; import * as LinDBService from "../services/LinDBService"; import {Chart, ChartStatus, ChartStatusEnum, ComputeTarget, Target} from "$models/ChartModel"; import {isEmpty} from "$utils/Util"; import * as ChartDataConvert from "../utils/C...
<reponame>das-praktische-schreinerlein/mycms-commons<gh_stars>0 import {AdapterFilterActions, AdapterOpts, AdapterQuery, MapperUtils} from './mapper.utils'; import {isDate} from 'util'; import {DateUtils} from '../../commons/utils/date.utils'; import {LogUtils} from '../../commons/utils/log.utils'; import {FacetUtils, ...
import { AABB, Body, Fixture, Joint, MouseJoint, Vec2, World } from '../src/index'; import { default as Stage } from 'stage-js/platform/web'; export interface ActiveKeys { 0?: boolean; 1?: boolean; 2?: boolean; 3?: boolean; 4?: boolean; 5?: boolean; 6?: boolean; 7?: boolean; 8?: boolean...
/* eslint-disable no-console */ /* eslint-disable @typescript-eslint/camelcase */ import { cli, help, sh } from "tasksfile"; import { dedent } from "ts-dedent"; import compareVersions from "compare-versions"; import { ICLIOptions } from "@pawelgalazka/cli"; // Place to store the messages for different commands. const ...
export const IMAGE_DOS_SIGNATURE = 0x5A4D; // MZ export const IMAGE_NT_SIGNATURE = 0x00004550; // PE00 export const IMAGE_NT_OPTIONAL_HDR32_MAGIC = 0x10b; export const IMAGE_NT_OPTIONAL_HDR64_MAGIC = 0x20b; export enum ImageFile { IMAGE_FILE_RELOCS_STRIPPED = 0x0001, IMAGE_FILE_EXECUTABLE_IMAGE = ...
import { TxChainSetter } from '@keplr-wallet/hooks'; import { ChainGetter, ObservableQueryBalances } from '@keplr-wallet/stores'; import { Currency } from '@keplr-wallet/types'; import { CoinPretty, Dec, DecUtils, Int, IntPretty } from '@keplr-wallet/unit'; import cn from 'clsx'; import { findIndex } from 'lodash-es'; ...
<filename>shared/agent/src/managers/markerLocationManager.ts "use strict"; import { applyPatch, createPatch, ParsedDiff, parsePatch, structuredPatch } from "diff"; import * as path from "path"; import { URI } from "vscode-uri"; import { MarkerLocation, MarkerLocationsById } from "../api/extensions"; import { getCache }...
<reponame>KOBA789/qrenc import { Version, EcLevel, Color, Colors, EC_LEVEL_INT } from "./types"; import { rangeE } from "./util"; export const Modules: { Empty: 0b000, MaskedLight: 0b010, MaskedDark: 0b011, UnmaskedLight: 0b100, UnmaskedDark: 0b101, } = { Empty: 0b000, MaskedLight: ...
<filename>packages/ingspect-dict/data/ingNameToInfoKeys.ts const ingNameToInfoKeys = { "acesulfame K": ["acesulfame K"], "acesulfame potassium": ["acesulfame K"], Sunette: ["acesulfame K"], "acetic acid": ["sorbic acid"], "acid casein": ["acid casein"], acidulant: ["acidulant"], "acrylic acid": ["acrylic ...
import { Component, ReactNode, createElement, createRef } from "react"; import { findDOMNode } from "react-dom"; import { observer } from "mobx-react"; import store from "store2"; import { IAction, getObjectContextFromObjects, executeMicroflow, executeNanoflow, fetchByXpath, getObjects, Val...
import React, { useEffect, useState, useContext } from 'react' import L, { DragEndEvent } from 'leaflet' import { Marker, LayerGroup, Polyline } from 'react-leaflet' /* Import Stylesheet */ import styles from './styles.module.scss' /* Import helpers */ import { calcAllowableCells, plannedRouteFor } from '@serge/helper...
/*! Copyright (c) Cplusedition Limited. All rights reserved. Licensed under the Apache License, Version 2.0; You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INC...
<reponame>LibreTechnologyInc/even-financial-typed-utils<filename>src/types.ts // Requests export type PostLeadRequest = Partial<Lead>; export interface GetCreditCardOffersRequest extends Pick< Lead, | 'personalInformation' | 'creditCardInformation' | 'creditInformation' | 'legalInformation' ...
<gh_stars>100-1000 import path = require('path'); import underscore = require('underscore'); import agile_keychain = require('./agile_keychain'); import agile_keychain_crypto = require('./agile_keychain_crypto'); import asyncutil = require('./base/asyncutil'); import crypto = require('./base/crypto'); import exportLib...