text
stringlengths
9.82k
47.8k
import * as React from "react"; import { isEqual as _isEqual, isNil as _isNil, isString as _isString, get as _get, has as _has, throttle as _throttle, assign, debounce, cloneDeep, omit, get, } from "lodash"; import { faPlayCircle } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribu...
import * as blitsy from 'blitsy'; import { num2hex, rgb2num, recolor, hslToRgb, clamp, randomInt, secondsToTime, fakedownToTag, eventToElementPixel, withPixels, sleep, objEqual, QueueItem, PlayableMedia, } from './utility'; import { scriptToPages, PageRenderer, ge...
import * as THREE from "three"; import { Camera, MOUSE, TOUCH, Vector3, EventDispatcher } from "three"; import * as React from "react"; import { ReactThreeFiber, useThree, useFrame } from "@react-three/fiber"; import { OrbitControls as OrbitControlsImpl } from "three-stdlib"; // copied from https://stackoverflow.com/...
import OSMNode from "./features/osm/OSMNode"; import OSMWay from "./features/osm/OSMWay"; import MathUtils from "../../../math/MathUtils"; import Vec2 from "../../../math/Vec2"; import Node3D from "./features/3d/Node3D"; import Way3D from "./features/3d/Way3D"; import HeightViewer from "../HeightViewer"; import {Ground...
/** * Created by houxh on 2017-1-8. */ import { Component, Input, OnChanges, SimpleChanges, Output, EventEmitter, ViewEncapsulation, HostListener, ViewChild, ElementRef, Renderer, AfterViewInit } from "@angular/core"; import {CardResult, Cell} from "../../common/model/card/card.resut"; import ...
/** * Module dependencies. */ import * as debugModule from 'debug'; const debug = debugModule('chat:client'); import cli from '../cli'; import { writeFile } from 'fs'; import * as crypto from 'crypto'; import { signSecurity } from '../browser/security'; import * as colors from 'ansi-colors'; import { SocketClientSide...
<filename>console/doppioh.ts /* * Doppioh is DoppioJVM's answer to javah, although we realize the 'h' no longer * has a meaning. * * Given a class or package name, Doppioh will generate JavaScript or TypeScript * templates for the native methods of that class or package. * * Options: * -classpath Where to searc...
<reponame>VALIS-software/valis-typescript-client import { QueryBuilder } from "./QueryBuilder"; class ParsedToken { public rule: Rule; public value: string; constructor(rule: Rule, value: string) { this.rule = rule; this.value = value; } } class ParsePath { public rule: Rule; p...
<reponame>smeup/ketch.up import type { KupDom } from '../kup-manager/kup-manager-declarations'; import type { GenericObject, KupComponent } from '../../types/GenericTypes'; import { KupCardEventPayload, KupCardFamily, } from '../../components/kup-card/kup-card-declarations'; import { KupListNode } from '../../c...
<filename>src/Main.ts ////////////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014-2015, Egret Technology Inc. // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
/** * Functionality managing the match models * * @file */ //import * as intf from 'constants'; import * as debug from 'debugf'; var debuglog = debug('schemaload'); //const loadlog = logger.logger('modelload', ''); import * as IMatch from '../match/ifmatch'; //import * as InputFilterRules from '....
<reponame>PS-TheAura/Lanette import type { Player, PlayerTeam } from "../room-activity"; import { ScriptedGame } from "../room-game-scripted"; import type { GameCommandDefinitions, IGameFile } from "../types/games"; import type { IPokemon } from "../types/pokemon-showdown"; import type { IHexCodeData } from "../types/t...
<filename>ui/raidboss/data/06-ew/ultimate/dragonsongs_reprise_ultimate.ts import NetRegexes from '../../../../../resources/netregexes'; import { UnreachableCode } from '../../../../../resources/not_reached'; import Outputs from '../../../../../resources/outputs'; import { Responses } from '../../../../../resources/r...
/** * Copyright (C) 2021 Alibaba Group Holding Limited * All rights reserved. */ import * as IR from '@gs.i/schema-scene' import { Object3D, Vector3, WebGLRenderer, Raycaster as ThreeRaycaster, WebGLRenderTarget, Clock, Scene, PerspectiveCamera, Color, LinearFilter, RGBAFormat, DepthTexture, Vector2, ...
import atlas, * as azmaps from 'azure-maps-control'; import { LayerGroup, LayerState, LegendType } from '.'; import { Utils } from '../helpers/Utils'; /** Options that all controls that extend the BaseControl class support. */ export interface BaseControlOptions { /** The ID of an element or HTMLElement instances ...
import React, { FunctionComponent, useState, useEffect, useRef } from 'react'; import { useTrail, useSpring, animated } from 'react-spring'; import { createStyles } from '@material-ui/core/styles'; import { makeStyles } from '@material-ui/styles'; import { useStaticQuery, graphql } from 'gatsby'; import classNames from...
<reponame>benchmarko/CPCBasicTS // testParseExamples.qunit.ts - Test to load and parse all examples // // Examples: // qunit dist/test/testParseExamples.qunit.js // qunit dist/test/testParseExamples.qunit.js debug=1 // // node dist/test/testParseExamples.qunit.js // npm test... interface NodeHttps { get: (sUrl: strin...
<filename>src/BuiltIns.ts // A base quantity is a physical quantity in a subset of a given system of quantities that is chosen by convention, where no quantity in the set can be expressed in terms of the others. // export const baseQuantities = ['MASS', 'LENGTH', 'TIME', 'CURRENT', 'TEMPERATURE', 'LUMINOUS_INTENSITY', ...
<gh_stars>0 import SuperCommand from '../SuperCommand' import { searchSolution, getStatus, getResourceFilePath, formatTime, loadUserIcon, postVote } from '@/utils/api' import * as vscode from 'vscode' import * as path from 'path' import * as os from 'os' import md from '@/utils/markdown' import { UserStatus } from '@/u...
import * as React from 'react'; import { Route } from 'react-router-dom'; import * as timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; import styled from 'styled-components'; import { Grid, Box, BoxProps, Text } from 'grommet'; import ifDev from './ifDev'; import ProcessScale from './ProcessScale'; i...
import BaseWidget = require('core/BaseWidget.class'); /*** Esri ***/ import Map = require('esri/map'); import ArcGISTiledMapServiceLayer = require('esri/layers/ArcGISTiledMapServiceLayer'); import ArcGISDynamicMapServiceLayer = require('esri/layers/ArcGISDynamicMapServiceLayer'); import Point = require('esri/geometry/...
/* * Licensed to Gisaïa under one or more contributor * license agreements. See the NOTICE.txt file distributed with * this work for additional information regarding copyright * ownership. Gisaïa licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except ...
<reponame>OAXFoundation/l2x-trustless-exchange<filename>src/server/exchange/Exchange.ts // ---------------------------------------------------------------------------- // Copyright (c) 2018,2019 OAX Foundation. // https://www.oax.org/ // See LICENSE file for license details. // -----------------------------------------...
import { EventFlags, PojoState, PojoListState, ItemSO, Pager, PagerState, SelectionType, SelectionFlags, KeyHandler, MergeFn } from '../types' import { bit_clear_and_set, bit_unset, incrementKey, decrementKey, defp, extractMsg } from '../util' import { mergeFrom } from '../diff' import * as prk from '../prk...
<reponame>ikarino/torneko3js // scsManager.ts // import { Unit, Friend, Enemy } from './unit'; import { SCSField } from './scsField'; import { Place, SCSInput, ProbabilityConfig, SCSConfigInput, SCSSummarizedOutput, SCSTrialOutput, OverWriter, } from './interfaces'; import { DefaultNumSumoLimit, defa...
declare namespace llvm { // bitcode/bitcodewriter import AttrKind = llvm.Attribute.AttrKind; function writeBitcodeToFile(module: Module, filename: string): void; // IR/verifier function verifyModule(mod: Module): void; function verifyFunction(fun: Function): void; // support function initializeAllTa...
import React, { useCallback, useEffect, useRef, useState } from 'react'; import { Button, Col, Popover, Row, Select, Typography } from 'antd'; import styled from 'styled-components'; import Orderbook from '../components/Orderbook'; import UserInfoTable from '../components/UserInfoTable'; import StandaloneBalancesDispla...
import * as _ from 'underscore' import * as objectPath from 'object-path' import { Meteor } from 'meteor/meteor' import { getHash, formatDateAsTimecode, formatDurationAsTimecode, unprotectString, unprotectObject, unprotectObjectArray, protectString, getCurrentTime, waitForPromise, clone, omit, getRandomId, ...
<reponame>GerHobbelt/chevrotain import * as utils from "../../utils/utils" import { contains, every, findAll, flatten, forEach, groupBy, isEmpty, map, pick, reduce, reject, values } from "../../utils/utils" import { IgnoredParserIssues, IParserAmbiguousAlternative...
import spark, { Sparky } from "@candlelib/spark"; import { Context } from '../compiler/common/context.js'; import { BINDING_FLAG, ObservableModel, ObservableWatcher } from "../types/all"; import { WickContainer } from "./container.js"; import { rt } from "./global.js"; import { hydrateComponentElement, hydrateConta...
<gh_stars>10-100 /** * @author mrdoob / http://mrdoob.com/ */ import { NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessEqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceFront, CullFaceBack, CullFaceNone, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, NoBlending, Normal...
<filename>packages/astro/src/runtime/server/index.ts import type { APIContext, AstroComponentMetadata, AstroGlobalPartial, EndpointHandler, Params, SSRElement, SSRLoadedRenderer, SSRResult, } from '../../@types/astro'; import { escapeHTML, HTMLString, markHTMLString } from './escape.js'; import { extractDirecti...
import React from 'react'; import styled from 'react-emotion'; import {get} from 'lodash'; import color from 'color'; import 'intersection-observer'; // this is a polyfill import {t} from 'app/locale'; import {defined} from 'app/utils'; import space from 'app/styles/space'; import Count from 'app/components/count'; im...
<gh_stars>0 import ukwhoData from '../../chartData/uk_who_chart_data'; import turnerData from '../../chartData/turners_chart_data'; import trisomy21Data from '../../chartData/trisomy21Data'; import totalMinPadding from './totalMinPadding'; import { getTickValuesForChartScaling } from './tailoredXTickValues'; import { ...
<filename>src/app/services/account/account.provider.ts import { ProtocolService, UiEventService } from '@airgap/angular-core' import { AirGapCoinWallet, AirGapMarketWallet, IACMessageType, IAirGapTransaction, ICoinProtocol, MainProtocolSymbols, SerializedAirGapWallet, TezosProtocol } from '@airgap/coinl...
<reponame>RMCoder198/WebAssemblyStudio /* Copyright 2018 Mozilla Foundation * * 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 ...
<reponame>LunarMist/imgui-js // Mini memory editor for Dear ImGui (to embed in your game/tools) // Animated GIF: https://twitter.com/ocornut/status/894242704317530112 // Get latest version at http://www.github.com/ocornut/imgui_club // // You can adjust the keyboard repeat delay/rate in ImGuiIO. // The code assume a mo...
<reponame>toba/editor-transforms import {Fragment, Slice} from "prosemirror-model" import {ReplaceStep, ReplaceAroundStep} from "./replace-step" import {Transform} from "./transform" import {insertPoint} from "./structure" // :: (Node, number, ?number, ?Slice) → ?Step // ‘Fit’ a slice into a given position in the doc...
<reponame>johnjenkins/stencil<gh_stars>0 import type * as d from '../../declarations'; import { augmentDiagnosticWithNode, buildError, normalizePath } from '@utils'; import { MEMBER_DECORATORS_TO_REMOVE } from './decorators-to-static/decorators-constants'; import ts from 'typescript'; import { cloneNode as wsCloneNode ...
import { WebXRFeaturesManager, WebXRFeatureName } from "../webXRFeaturesManager"; import { WebXRControllerPointerSelection } from "./WebXRControllerPointerSelection"; import { WebXRSessionManager } from "../webXRSessionManager"; import { AbstractMesh } from "../../Meshes/abstractMesh"; import { CreateSphere } from ...
import React, { FC, ReactElement, Fragment, useState, useMemo, useEffect } from 'react' import styled from '@emotion/styled' import moment from 'moment' import { cx, pluralify } from '@contentpi/utils' import { getFileExtensionFromURL, getCurrentLanguage } from '@contentpi/core' import Icon from '../Icon' import Modal ...
import { Component, Host, h, State } from '@stencil/core'; import { ColumnDescription } from '../../../../common/table-abstractions/types'; import { ErrorType, GenericResponse } from '../../../../common/types'; import { fetchAs } from '../../../../common/utility'; import { globals } from '../../../../core/global.store'...
<reponame>slonopotamus/app import {Assert, CachedTransform, GetValues, IsString, VURL, E, Clone, CE, A} from "web-vcore/nm/js-vextensions.js"; import {SplitStringBySlash_Cached, SlicePath, CreateAccessor, PartialBy, BailIfNull} from "web-vcore/nm/mobx-graphlink.js"; import Moment from "web-vcore/nm/moment"; import {Get...
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import Direction from '../clientmetricreport/ClientMetricReportDirection'; import ClientMetricReport from '../clientmetricreport/DefaultClientMetricReport'; import ContentShareConstants from '../contentsha...
import { DinaForm, DinaFormProps, DinaFormSubmitParams, DoOperationsError, OperationError, resourceDifference, SaveArgs, useApiClient, useQuery, withResponse } from "common-ui"; import { FormikProps } from "formik"; import { InputResource, PersistedResource } from "kitsu"; import { cloneDeep, co...
<reponame>Janatbek/robinhood-td-algorithmic-trading-in-angular<filename>src/app/rh-table/rh-table.component.ts import { Component, OnInit, Input, OnChanges, SimpleChanges, OnDestroy } from '@angular/core'; import 'rxjs/add/observable/of'; import 'rxjs/add/observable/merge'; import 'rxjs/add/operator/finally'; import { ...
import { JobManager } from "../job/jobManager"; import { RESEARCHES } from "../data/researches"; import { Research } from "./research"; import { Game } from "../game"; import { Technology } from "./technology"; import { TECHNOLOGIES } from "../data/technologyData"; import { ZERO, RESEARCH_TECH_EFF, OPTIMIZE_RES_B...
/** * The Print widget connects your application with a [printing service](https://server.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed. * It takes advantage of server-side, high-quality, full cartographic print functionality using the ExportWebM...
import assert from 'assert'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { Node as PMNode, Schema, Node } from 'prosemirror-model'; import { insertPoint } from 'prosemirror-transform'; import { Decoration, DecorationSet, EditorView } from 'prosemirror-view'; import { EditorState, N...
import { Avatar, Box, Button, Card, makeStyles, TextField, Typography, useTheme, IconButton, Collapse, } from "@material-ui/core"; import { Alert } from "@material-ui/lab"; import { ExpandMore, ImportExportRounded, WarningOutlined, Close as CloseIcon, } from "@material-ui/icons"; import { BN...
<filename>app/src/lib/dispatcher/git-store.ts<gh_stars>0 import * as Fs from 'fs' import * as Path from 'path' import { Emitter, Disposable } from 'event-kit' import { Repository } from '../../models/repository' import { WorkingDirectoryFileChange, AppFileStatus } from '../../models/status' import { Branch, BranchType ...
import * as THREE from 'three'; import * as restSamples from './rest'; // Read from .env file const NodeEnv = process.env.NODE_ENV; const ModelId = process.env.MODEL_ID; const SdkKey = process.env.SDK_KEY; const SdkVersion = process.env.SDK_VERSION; // https://matterport.github.io/showcase-sdk/sdk_release_notes.html ...
import cn from 'classnames'; import React, { useState, useEffect } from 'react'; // @ts-ignore import Notification from '../../../../assets/modules/uilab/js/src/notification'; import { IUserDetails, IPipelineProjectDagsCollabarator, IPipelineProjectDag, IPipelineProjectDetail, IError, } from '../../../../glob...
<reponame>Owen-Tsai/salmon-icons export { default as AddBoxFill } from './add-box-fill.vue' export { default as AddBox } from './add-box.vue' export { default as AddCircleFill } from './add-circle-fill.vue' export { default as AddCircle } from './add-circle.vue' export { default as Add } from './add.vue' export { defau...
import { point } from '@turf/helpers'; import { serverTimestamp } from 'firebase/firestore'; import area from '@turf/area'; import bbox from '@turf/bbox'; import bearing from '@turf/bearing'; import distance from '@turf/distance'; import hash from 'object-hash'; import length from '@turf/length'; import polylabel from...
import * as THREE from "three" const Visible = 0; // Entity for a Doubly-Connected Edge List (DCEL). class HalfEdge { vertex = null; prev:HalfEdge = null; next:HalfEdge = null; twin:HalfEdge = null; face:Face = null; constructor(vertex, face) { this.vertex = vertex this.face =...
import React, { useState, useEffect, CSSProperties } from 'react' import { createPortal } from 'react-dom' import bindClass from 'classnames' import { connect } from 'dva' import { Dialog, Select, MenuItem, DialogContent, DialogTitle, FormControl, FormControlLabel, Button, InputLabel } from '@material-ui/core' import {...
<reponame>geometryzen/Algebrite import { alloc_tensor } from '../runtime/alloc'; import { count, countOccurrencesOfSymbol } from '../runtime/count'; import { ADD, caddr, cadr, car, cdr, Constants, COS, DEBUG, defs, do_simplify_nested_radicals, FACTORIAL, FUNCTION, INTEGRAL, isadd, iscons, ...
<reponame>Nathan-Fenner/Bismuth import { Token, showToken, } from './lex'; import { ParserFor, pure, matched, } from './parsing'; import { DeclareStruct, DeclareEnum, DeclareFunction, DeclareInterface, DeclareInstance, DeclareEffect, DeclareService, Declare, G...
<filename>src/Contract.ts import events from 'events'; import _ from 'lodash'; import bigInt from 'big-integer'; import { Contract as CoreContract, utils, Event, BigNumber as EthersBN, providers } from 'ethers'; import { EthereumAccountManager } from './EthereumAccountManager'; import { QueuedArrival } from...
import { Zone, CountryInfo } from './models' export const availableZones: Zone[] = [ new Zone('afranet', 'Afranet', 'afra', ['afr']), new Zone('asiatech', 'Asiatech', 'asia', [], false), new Zone('irancell', 'Irancell', 'ic', []), ]; export const enabledZones = availableZones.filter((z) => z.enabled); export co...
export const defaultTriggers = ["@", "#", ":"]; export function getList(trigger: string | null) { switch (trigger) { case "@": return users.map((user) => user.listValue); case "#": return issues.map((issue) => issue.listValue); case ":": return emoji.map((item) => item.listValue); d...
<reponame>kevinday/augur_node import { Percent, Price, Scalar, scalar, Shares, Tokens } from "./dimension-quantity"; // This library is intended to be a home for all augur financial formulas. // The emphasis is on safety and education with mechanisms like more specific // types (eg. Shares instead of BigNumber), named...
import { Output, OnInit, AfterContentInit, OnChanges, Component, ElementRef, forwardRef } from '@angular/core'; import { base } from './base'; export class tablepanelMetaData { public static XTYPE: string = 'tablepanel'; public static PROPERTIESOBJECT: any = { "actions": "Object", "activeChild...
/* * 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 ...
<filename>packages/shell-api/src/helpers.ts /* eslint complexity: 0, no-use-before-define: 0 */ import type { DbOptions, Document, ExplainVerbosityLike, FindOneAndDeleteOptions, FindOneAndReplaceOptions, FindOneAndUpdateOptions, DeleteOptions, MapReduceOptions, KMSProviders, ExplainOptions } from '@...
/* * Copyright 2017-19 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
<reponame>JoostKersjes/tools /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import Server from "../Server"; import { ManifestDefinition, manifestNameToString, normalizeManife...
import { defineComponent, h, ref, Ref, resolveComponent, ComponentOptions, ComputedRef, createCommentVNode, provide, computed, reactive, watch, nextTick, PropType, VNode, onMounted } from 'vue' import XEUtils from 'xe-utils' import GlobalConfig from '../../v-x-e-table/src/conf' import { VXETable } from '../../v-x-e-tab...
// Copyright (c) <NAME>. All rights reserved. Licensed under the MIT license. /** * A library for making non-backtracking regular expressions from lists of phrases. * * @remarks * The chief export of this library is {@link regex}. In addition there is the function * {@link qw}, which makes it slightly easier to m...
<reponame>hanrea/volar import * as shared from '@volar/shared'; import { transformCompletionItem, transformCompletionList } from '@volar/transforms'; import { computed, pauseTracking, resetTracking, ref } from '@vue/reactivity'; import { camelize, capitalize, hyphenate, isGloballyWhitelisted } from '@vue/shared'; impor...
<reponame>duudel/castool import { BinaryOperator, UnaryOperator } from './types'; import { Ast, AstCont, AstExpr, AstExtend, AstProject, AstWhere, AstSummarize, AstTable, Aggregation, AstOrderBy } from './parser'; import { makeAdt, Value, DataType, FunctionDef, InputRow, TableDef, TableSource, SemanticE...
<gh_stars>10-100 /* * Copyright 2017 Palantir Technologies, Inc. All rights reserved. */ export const ADD = "\ue63e"; export const ADD_COLUMN_LEFT = "\ue6f9"; export const ADD_COLUMN_RIGHT = "\ue6fa"; export const ADD_ROW_BOTTOM = "\ue6f8"; export const ADD_ROW_TOP = "\ue6f7"; export const ADD_TO_ARTIFACT = "\ue67c"...
// import { getUpdatedClusterObject } from './utils'; import { GeoFirestoreTypes } from './GeoFirestoreTypes'; import { interpolate, LatLng } from 'spherical-geometry-js'; // Characters used in location geohashes export const BASE32 = '0123456789bcdefghjkmnpqrstuvwxyz'; // Number of bits per geohash character export ...
/** @jsx jsx */ import { React, jsx, DataSourceManager, urlUtils, defaultMessages as jimuCoreDefaultMessages, getAppStore, Immutable } from 'jimu-core' import { Icon, Switch, Tooltip, Button, Alert, Label, defaultMessages as jimuUIDefaultMessages } from 'jimu-ui' import { MapWidgetSelector, SettingSection, SettingRow, ...
import React, { useCallback, useEffect, useState, useMemo, useRef, useImperativeHandle, } from 'react' import {unstable_batchedUpdates} from 'react-dom' import ResizeObserver from 'resize-observer-polyfill' import trieMemoize from 'trie-memoize' import OneKeyMap from '@essentials/one-key-map' import memoize...
/** * # Graph * * The base class for Graph types. * Takes care of the overall orchestration of the Graph, including the following tasks: * - setting up the SVG environment for the `Graph` * - creating a central {@link GraphComponent.GraphCfg configuration object} that is used throughout the library. * - creatin...
<reponame>zencomputersystems/eLeaveCore<filename>src/common/approval/service/approval.service.ts import { Injectable } from '@nestjs/common'; import { Observable, of, pipe } from 'rxjs'; import { map, mergeMap, filter, flatMap } from 'rxjs/operators'; import { LeaveTransactionDbService } from 'src/api/leave/db/leave-tr...
import { Structure, ColumnMetadata, ResultsParams, GraphResponse, ResultsResponse, TruncationType } from '../definitions.d' import SQL from '../adapter/sql' import moment from 'moment' export default class Results { params: Partial<ResultsParams> structure: Structure adapter: SQL response: ResultsResponse | ...
<filename>src/app/components/map/map.component.ts import { Component, OnInit, ViewEncapsulation, AfterViewInit, OnDestroy } from '@angular/core'; import { BehaviorSubject, forkJoin, Observable, of, Subscription } from 'rxjs'; import { map, withLatestFrom, switchMap } from 'rxjs/operators'; import { Graph } from 'graphl...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
<filename>src/app/services/properties.service.ts import { Injectable, OnInit, Query } from '@angular/core' import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http' import { map, catchError } from 'rxjs/operators' import { throwError, config, Observable, Subject } from 'rxjs' import { Utils, Breakable ...
<gh_stars>1-10 import {sprintf} from "sprintf-js" import {Document} from "../document" import * as embed from "../embed" import {BOKEH_ROOT} from "../embed" import * as models from "./models" import {HasProps} from "../core/has_props" import {Value, Field} from "../core/vectorization" import {div} from "../core/dom" im...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { Account, AccountDefaults, AccountsDB } from './accountsdb' import { Event } from '../event' import { gene...
<reponame>Tianwang001/syzoj-ng import { Injectable, Inject, forwardRef } from "@nestjs/common"; import { InjectRepository, InjectConnection } from "@nestjs/typeorm"; import { Repository, Connection, QueryBuilder } from "typeorm"; import { ValidationError } from "class-validator"; import { v4 as uuid } from "uuid"; imp...
<gh_stars>100-1000 /// <reference types="node" /> // The MIT License (MIT) // // vs-deploy (https://github.com/mkloubert/vs-deploy) // Copyright (c) <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the ...
/// <reference path="tpp-structure.ts" /> /// <reference path="tpp-scraper.ts" /> /// <reference path="tpp-data.ts" /> /// <reference path="twitch-videos.ts" /> /// <reference path="reddit-pasteee.ts" /> var pageData: TPP.Collection[]; var fakeQuery: (selector: string) => Array<HTMLElement> = selector => Array.protot...
import { Signer } from '@ethersproject/abstract-signer'; import type { BigNumber } from '@ethersproject/bignumber'; import { MaxUint256 } from '@ethersproject/constants'; import type { Contract, ContractReceipt, ContractTransaction } from '@ethersproject/contracts'; import type { Network } from '@ethersproject/networks...
<gh_stars>100-1000 /*- * #%L * Arcade Analytics * %% * Copyright (C) 2018 - 2019 ArcadeAnalytics * %% * 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/li...
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import './strings.m.js'; import './tab.js'; import './tab_group.js'; import {assert} from 'chrome://resources/js/assert.m.js'; import {addWebUIListener, ...
import { ArticyObjectProps, ConnectionProps, Id } from './json'; import { Database } from './database'; import { BaseFlowNode } from './flowTypes'; import { ArticyObjectCreator, NullId } from './object'; import { ApplicationState, GetState, OnNodeExecution } from './script'; import { ArticyObject } from './types'; impo...
import {InputSwitch} from 'primereact/inputswitch'; import {Menu} from 'primereact/menu'; import {TieredMenu} from 'primereact/tieredmenu'; import * as React from 'react'; import {SearchGroupItem} from 'app/cohort-search/search-group-item/search-group-item.component'; import {criteriaMenuOptionsStore, searchRequestSto...
<reponame>valve-finance/uniswap-playground import * as ds from '../utils/debugScopes' import * as t from './../utils/types' import { deepCopy } from '../utils/misc' import { computeTradeEstimates, getEstimatedUSD } from './quoting' import crawl from 'tree-crawl' import { v4 as uuidv4 } from 'uuid' import { routesToStr...
<gh_stars>0 /* * Copyright 2022 Huawei Technologies Co., Ltd * * 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...
/* * Generate a svg timeline with javascript. * Based on https://github.com/jasonreisman/Timeline written in python. * Slightly documented: https://github.com/linkviii/Timeline * * See README.md * * v 2021-04-16 * (Try to change with new features. Not strict.) * * MIT licensed */ /// - <re...
<filename>packages/lesswrong/server/search/utils.ts import algoliasearch from 'algoliasearch'; import htmlToText from 'html-to-text'; import chunk from 'lodash/chunk'; import keyBy from 'lodash/keyBy'; import { isAnyTest } from '../../lib/executionEnvironment'; import * as _ from 'underscore'; import { getAlgoliaIndexN...
<reponame>davidhkates/MySmartThings //--------------------------------------------------------------------------------------- // Room Control - control lights/switches in room based on sensors, time of day, // and day of week //---------------------------------------------------------------------------------------...
<gh_stars>10-100 // // Copr. (c) 2012 <NAME> // // see: http://www.khronos.org/registry/webgl/specs/latest/ // interface WebGLObject { } interface WebGLBuffer extends WebGLObject { } interface WebGLFramebuffer extends WebGLObject { } interface WebGLProgram extends WebGLObject { } interface W...
<filename>packages/sanddance/src/viewer.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import { Animator, DataLayoutChange } from './animator'; import { recolorAxes } from './axes'; import { AxisSelectionHandler, axisSelectionLayer } from './axisSelection'; import { ...