text
stringlengths
3.08k
15.5k
import { JestSettings, ProjectWorkspace } from "jest-editor-support"; import _ from "lodash"; import * as vscode from "vscode"; import { Log } from "vscode-test-adapter-util"; import { createTree, mergeTree } from "./helpers/createTree"; import deleteFileFromTree from "./helpers/deleteFileFromTree"; import { createRoot...
"use strict"; import leoconfig from 'leo-config'; import LeoStream from './lib/stream/leo-stream'; import logging from './lib/logging'; import aws from './lib/leo-aws'; import * as AWS from 'aws-sdk'; import fs from 'fs'; import ini from 'ini'; import {execSync} from 'child_process'; import LeoConfig from './lib/config...
// ets_tracing: off import * as CS from "../../../../Cause" import type * as CL from "../../../../Clock" import * as CK from "../../../../Collections/Immutable/Chunk" import * as Tp from "../../../../Collections/Immutable/Tuple" import * as T from "../../../../Effect" import * as E from "../../../../Either" import * a...
import { formatOffset, parseZoneInfo, isUndefined, IANA_REGEX, objToLocalTS } from "../impl/util"; import { Zone } from "../zone"; import { ZoneOffsetOptions, ZoneOffsetFormat } from "../types/zone"; import { InvalidZoneError } from "../errors"; import Intl from "../types/intl-2020"; const matchingRegex = RegExp(`^${I...
import { useCallback, useEffect, useRef } from 'preact/hooks' export type ResizeBehaviorOnDoubleClick = 'minimize' | 'maximize' export type ResizeDirection = 'both' | 'horizontal' | 'vertical' const mapResizeDirectionToStyles: Record< ResizeDirection, { cursor: string; height: string; width: string } > = { both...
import { VRecord } from './VRecord' import { VRecorder } from '../recorders/VRecorder' import { arithm } from '../../vendors/vjsc/vjsc-1.1.1' import { EncryptedBallot } from '../../vendors/electionguard-schema-0.85/@types/election_record' import { strDecToModPGroupElement, isError, firstError, strDecToPRingElem...
import { idb } from "../db"; import { g, getTeamInfoBySeason } from "../util"; import type { UpdateEvents, ViewInput, DiscriminateUnion, EventBBGM, Phase, } from "../../common/types"; import orderBy from "lodash-es/orderBy"; import { processAssets } from "./tradeSummary"; type Most = { value: number; extra?: Re...
<gh_stars>0 const mongoose = require("mongoose"); import Product from '../models/Product'; mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost/360shopping_db', { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, useFindAndModify: false, }) .catch((err: Error) => { console.lo...
import * as React from 'react'; import get from 'lodash/get'; import pick from 'lodash/pick'; import isNil from 'lodash/isNil'; import { contains } from 'dom-lib'; import Overlay, { OverlayProps } from './Overlay'; import createChainedFunction from '../utils/createChainedFunction'; import isOneOf from '../utils/isOneOf...
<gh_stars>0 import _ from 'lodash'; import { FlightStatus } from './modules/Flight'; import { SimulationProps, FlightProcessor } from './modules/FlightProcessor'; import { AreaMap, BasicMapNode, HeadingMapNode, MapNodeAlignment, MapNodeType } from './modules/Map'; import { mapDao } from './modules/MapDao'; import { b...
<reponame>alersenkevich/lexxx import * as crypto from 'crypto'; import nodeFetch from 'node-fetch'; import { AbstractApiWrapper, APIConnectionConfig, APIRequest, } from '../abstract-api-wrapper'; /** * * @author <NAME> * HitBtc API wrapper for rest requests * */ export interface ICandle { timestamp: stri...
import { Message, TextChannel, DMChannel, User, RichEmbed, GroupDMChannel } from "discord.js"; import { ReplySink, DefaultBufferedSink, CommandEnvironment, CommandPermission } from "./commandobjects"; import { CommandRegistry, InvokeFailure } from "./registry"; import { tryParseURL } from "../util"; import { DISCORD_ME...
/** * Similar as Binary Tree Node, each node has 2 child nodes, the difference is each node * also represents a range in the original array. */ export class SegmentTreeNode { data: number; leftChild: SegmentTreeNode; rightChild: SegmentTreeNode; /** the start index of the range this node represents */ star...
import { Action as ActionRule, IActionRegistry } from './Rules/Action'; import { Activate, IActivateRegistry } from './Rules/Activate'; import { Attack, Defence, Movement, Moves, Visibility } from './Yields'; import { Created, ICreatedRegistry } from './Rules/Created'; import { DataObject, IDataObject, } from '@civ...
import * as $ from 'jquery'; import 'jquery-mousewheel'; import 'jquery.terminal'; import 'jquery.terminal/js/unix_formatting'; import 'core-js/es/promise'; import 'core-js/es/object/assign'; import 'core-js/es/regexp/flags'; import {HttpClient} from './httpclient'; import {Artisan, Common, Composer, MySQL, Tinker, Vim...
import React, { useEffect, useState, useMemo, useCallback } from 'react'; import { Button, Input, Modal, Icon } from 'antd'; import { connect } from 'dva'; import { ContentDetail, ContentTabs, SettingModifyModal, SettingDetailModal, Setting } from '..'; import { ModuleDetailModalComponentProps, FieldsValue, Pagination...
<filename>core/lrxml/src/attlist/parse.ts<gh_stars>0 import { Range, ParserContext, TokenT } from '../context' import { AttToken, isAttToken, AttBare, AttSq, AttDq, AttNest, AttIdentPlus, TokenContent } from '../attlist/tokenize' import { EntNode } from '../entity/parse' type BaseTerm<T> = Range & {value: T, comme...
import { useReactiveVar } from '@apollo/client' import React, { lazy, Suspense, useEffect, useState } from 'react' import { Route, Switch } from 'react-router-dom' import Navbarmenu from '../components/shared/layout/header/Navbarmenu'; import { getFeatureToggleByChainId } from '../featureToggle' import { ThemeProviderE...
declare var L: any declare var Circles: any; let map; let highways: OsmWayElement[]; let highwayLayer; let highwayNodes = {}; let milestones: OsmNodeElement[]; let milestoneLayer; window.onload = () => { initMap(); getData(); }; function initMap() { let parameters: any = getHashParameters(); let zoo...
import { BaseDataValidator, BaseDataValidatorFactory, DVResult, DataValidationResult, DataValidator, } from '../_core/validator' import { stringify } from '../_util/type-util' import { COMBINE_T_TYPE as T, COMBINE_V_TYPE as V, CombineDataSchema as DS, CombineStrategy, } from '../schema/combine' /** ...
import * as React from 'react'; import { storiesOf } from '@storybook/react'; import { Item, ArmourProperties, WeaponProperties, createItems, createMods, Container, SemanticSerializer as SemanticItemSerializer, Mod, } from 'poe-mods'; import { Format } from 'poe-i18n'; // 'poe-components-it...
/** * Copyright (c) 2018 <NAME> <<EMAIL>> * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ import { isPlainObject } from 'is-plain-object'; import { BehaviorSubject, isObservable, Observable } from 'rxjs'; import { map } from 'rxjs/operators'; export const AS_OBSERVAB...
<reponame>yurikrupnik/mussia4 import mongoose, { Schema, SchemaTypeOpts, Document, Model as Mo, SchemaTimestampsConfig } from "mongoose"; import { dbModel, usersRoles } from "./config"; import { validateEmail } from "../../utils/validation"; import { MongoModel, SchemaFilter } from "../../types"; import { generateHashS...
import * as fromMasterModel from "../master/model"; import { FormsModule } from "@angular/forms"; export interface ICandidate { candidateGuid: string; candidateName: string; login: Login; otp: OTP; forgotDOB:ForgotPasswordResponse, token:Token, otpReponse: OTPReponse; personalDetails: CandiateAllDetails...
<gh_stars>0 import { parse as cssParse, Declaration, KeyFrames, Media, Node, Rule } from 'css'; import { propEq, has } from 'ramda'; import { NodeType } from '../../node/index'; import { mixWhiteSpace } from '../utils/mix-white-space'; import { rmNode } from '../xml/rm-node'; import { traversalNode } from '../xml/trave...
<reponame>pvanliefland/apollo-client import { ExecutionResult, DocumentNode, GraphQLError } from 'graphql'; import { equal } from "@wry/equality"; import { Cache } from '../cache/core/types/Cache'; import { ApolloCache } from '../cache/core/cache'; import { WatchQueryOptions } from './watchQueryOptions'; import { Obse...
import { RequestMethod } from '@angular/http'; import { ApiActionTypes } from '../actions/api.actions'; import { mergeState } from '../helpers/reducer.helper'; import { defaultEntitiesState } from './entity.reducer'; import { WrapperAPIActionSuccess, SingleEntityAction, APIAction } from '../types/api.types'; import { ...
import LangInterface from 'LangInterface'; import { IObjectKeys } from 'botInterface'; interface langObjectInterface { [key: string]: string | undefined | ((...args: IObjectKeys[]) => string); } interface permissionInterface { [key: string]: string | undefined; } export default class EN implements LangInterf...
import * as grok from 'datagrok-api/grok'; import * as ui from 'datagrok-api/ui'; import * as DG from 'datagrok-api/dg'; import $ from 'cash-dom'; import CodeMirror from 'codemirror'; import { dfExts, entExtract, templates, helpUrls, tags, viewerConst, EntityType, supportedEntityTypes, } from './constan...
<gh_stars>0 import {expect} from 'chai'; import 'mocha'; import {encode} from "bs58" import Fluence from "../fluence"; import {certificateFromString, certificateToString, issue} from "../trust/certificate"; import {TrustGraph} from "../trust/trust_graph"; import {nodeRootCert} from "../trust/misc"; import {peerIdToSee...
import { GameObjectTypes, State, INITIAL_HEALTH, Unit, UserContextContainer, MatchUpdate, RoleRequest, Role, } from '@darwin/types'; import WebSocket, { OPEN } from 'ws'; import performTick from './game-engine'; import { getGameObjectsPerType, getUnit } from './helper/gameObjects'; import StateBuilder f...
import { css, cx } from "@linaria/core"; import React, { useCallback, useEffect, useState } from "react"; import { PlusSquare } from "react-feather"; import { useNavigate, useParams } from "react-router"; import { getGroupLandingPagePath, ROOT } from "../../../utils/paths"; import useDeviceType from "../../../hooks/use...
import { KlasaMessage, KlasaClient, CommandStore } from 'klasa'; import { Items } from 'oldschooljs'; const oldschooljs = require("oldschooljs"); import { toKMB, fromKMB } from 'oldschooljs/dist/util/util'; import { Bank } from '../../lib/types'; import { BotCommand } from '../../lib/BotCommand'; import { UserSettings...
<reponame>disco-network/sparql-jaydata-integration import connect = require("connect"); import config = require("./config"); import { IHttpRequestHandler, IHttpResponseSender } from "odata-rdf-interface/lib/odata"; import { GetHandler, OptionsHandler, PostHandler } from "odata-rdf-interface/lib/bootstrap/adapter/quer...
import _ from 'lodash'; import { IPromise, IQService } from 'angular'; import { stringToJsRegex } from '@grafana/data'; import { assignModelProperties, containsVariable, setOptionAsCurrent, setOptionFromUrl, validateVariableSelectionState } from './utils'; function getNoneOption() { return { text: 'None', value: ''...
<reponame>AlexGustafsson/pewview import { Vector3, Group, MeshBasicMaterial, Mesh, CubicBezierCurve3, TubeBufferGeometry, } from "three" import {coordinatesToPoint, radiansToDegrees, degreesToRadians} from "./utils" function Cl(t: number, e: number, n: number, i: number): number[] { t = radiansToDegree...
import { GetStaticPaths, GetStaticProps } from 'next'; import { useRouter } from 'next/router'; import Head from 'next/head'; import Link from 'next/link'; import Prismic from '@prismicio/client'; import { FiCalendar, FiUser, FiClock } from 'react-icons/fi'; import { format } from 'date-fns'; import ptBR from 'd...
import { App } from 'vue' import { CookieConfigOptions, SetCookieOptions, keyName, RemoveCookieOptions, } from './@types/index' export interface IVueCookieNext { /** * Set global config */ config(options: CookieConfigOptions): void /** * Set a cookie */ setCookie(keyName: keyName, value: st...
import Point from "../models/Point"; import Tetromino from "../models/Tetromino"; import ImmutableBoard from "../models/ImmutableBoard"; export type State = { currentPoint: Point, currentTetromino: Tetromino, board: ImmutableBoard<string>, placeNewPiece: boolean, } type TickAction = { type: "TICK", }; type...
<gh_stars>1-10 import { DateTime, LocaleOptions } from 'luxon'; import { GHEvent } from './eventTypes'; // Configuration options for renderEvents export interface NaiveConfig { sortBy?: 'date' | 'actor' | 'type' | 'target' | 'parent'; collapse?: boolean; dateSummaries?: boolean; dateContent?: boolean; groupB...
<filename>spec/serialize_function_spec.ts<gh_stars>100-1000 ///<reference path="./typings/jasmine.d.ts"/> import {__TypeMap, serialize, serializeAs, Serialize, serializeIndexable} from '../src/serialize'; class Vector3 { @serialize x : number; @serialize y : number; z : number; constructor(x : number,...
<gh_stars>0 import { JiraClient, JiraCloudClient, JiraServerClient } from '@atlassianlabs/jira-pi-client'; import { getProxyHostAndPort } from '@atlassianlabs/pi-client-common'; import { AxiosResponse } from 'axios'; import { ConfigurationChangeEvent, Disposable, ExtensionContext } from 'vscode'; import { BitbucketIssu...
/* eslint-disable jsx-a11y/label-has-associated-control */ import React from 'react'; import { Form, Icon, Segment, Image } from 'semantic-ui-react'; import QRCode from 'qrcode.react'; import NumericInput from 'react-numeric-input'; import { useFilePicker } from '../components/useFilePicker'; import PopoverPicker from ...
<gh_stars>0 import { type, iterateObject } from './manip'; import * as _ from 'lodash'; import * as md5 from 'md5'; import * as fs from 'fs-extra'; import { VM } from 'vm2'; export type InterpolatorPreprocess = any; export type InterpolatorFunction = any; export class Interpolator { private pres = new Map<string, In...
<filename>src/tools/plan-generator.ts /** * @license * Copyright 2020 Google LLC. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://poly...
<reponame>yyued/XT import { convertPointToChildView } from "../coordinate/CoordinateManager"; export enum TouchPhase { Began, Moved, Stationary, Ended, Cancelled, } export interface Touch { _maybeTap: boolean _startPoint: { x: number, y: number } touchID: string timestamp: number...
<gh_stars>1-10 import { some } from 'lodash'; // Chemical element dictionary export interface MassIndicator { element: Element; mass: number; } export const elementLookup: MassIndicator[] = [ { element: 'H', mass: 1.007825 }, { element: 'He', mass: 4.002603 }, { element: 'Li', mass: 7.016005 }, { element:...
import { Injectable } from '@angular/core' import { AlertController } from '@ionic/angular' import { AlertButton } from '@ionic/core' import { TranslateService } from '@ngx-translate/core' import { AirGapWallet, IACMessageDefinitionObject, IACMessageType, UnsignedTransaction, getProtocolByIdentifier } from 'airgap-coin...
<filename>server/src/core/payment/flutterwave-payment-provider.ts import * as axios from 'axios'; import { PaymentProvider, PaymentRequestResult, ProviderTransactionInfo, SendFundsResult, TransactionStatus, Transaction } from './types'; import { User } from '../user'; import { generateId } from '../util'; import { cre...
<filename>src/utils/hooks/useTxnHistory.ts import React, { useEffect, createContext, useContext } from 'react'; import { useGetTxnStatus } from './useGetTxnStatus'; import { usePortal } from './usePortal'; import pubsub from '../pubsub'; import { LOCALSTORAGE_KEYS_MAP } from 'utils/constants'; const noop = () => {}; ...
import classnames from 'classnames'; import flow from 'lodash.flow'; import noop from 'lodash.noop'; import React, { useCallback, ChangeEvent } from 'react'; import FormLabelGroup from '../Form/FormLabelGroup'; import Input from '../Input/Input'; import Col from '../Layout/Col'; import Row from '../Layout/Row'; import ...
/* eslint-disable import/no-unresolved,no-shadow,import/extensions */ /** * Implement Gatsby's Browser (Client Side Rendering) APIs in this file. * * See: https://www.gatsbyjs.org/docs/browser-apis/ */ import { GatsbyBrowser } from 'gatsby' import Backend from 'i18next-xhr-backend' import LanguageDetector from 'i1...
<reponame>berkgedik92/language_practice_application<filename>AdminUI/src/services/HTTPService.ts import {Http, Headers} from '@angular/http'; import {Injectable} from "@angular/core"; import 'rxjs/add/operator/map'; import {Router} from '@angular/router'; export enum RequestMethod {GET, POST} export interfac...
// External resources // typed import * as fs from 'fs'; import * as moment from 'moment'; // untyped import * as Alexa from 'alexa-app'; import * as Multimap from 'multimap'; // Internal resources import { lines } from './lines'; import { Prediction, getPredictionsForStop } from './transit'; const stopIds = process...
<reponame>dkwingsmt/log-painter<gh_stars>1-10 import forEach from 'lodash/forEach'; import size from 'lodash/size'; import max from 'lodash/max'; import isEmpty from 'lodash/isEmpty'; function within(code: number, lowestIncluded: number, highestIncluded: number): boolean { return code >= lowestIncluded && code <= hi...
import React from "react"; import { Dimensions, Platform, ScrollView, StyleSheet, Text, View } from "react-native"; import { TouchableOpacity } from "react-native-gesture-handler"; import Icon from "react-native-vector-icons/MaterialCommunityIcons"; import { EditMap } from "./EditMap"; import { Marker } from "./Marker"...
import React, { useState, useEffect } from "react"; import DRajuTokenSale from "./contracts/DRajuTokenSale.json"; import DRaju from "./contracts/DRaju.json"; import getWeb3 from "./getWeb3"; import BuyToken from "./components/BuyToken"; import "./App.css"; import { makeStyles } from "@material-ui/core"; import CoinStat...
import { Main } from "../../main"; import { PathHelper } from "../../pathHelper"; import { TreeHelper } from "./aimaratree"; import { File } from "./file"; export let tree: TreeHelper; export let rootNode; export let preDefinedHelp = null; export let userDefinedHelp = null; let filteredSubset = null; let searchStrOldV...
import {ConstructorJson, default as Constructor} from "../Constructor"; import Context from "../Context"; import Dictionary from "../Dictionary"; import DocError from "../DocError"; import IMember from "../members/IMember"; import MethodMember, {MethodMemberJson} from "../members/Method"; import PropertyMember, {Proper...
/** * 文件缓存管理类 * 缓存20个文件分片 * 其余通过数据库存取 */ import get, {Response} from './get'; import ManageDatabase from './mgrDB'; import { cancelablePromise, CancelablePromise } from '.'; let taskId = 0; interface FetchingPromise extends CancelablePromise { id: number } class Base { static readonly MAX_FILE_SIZE = 524...
/* * Tencent is pleased to support the open source community by making * Hippy available. * * Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
import { Component, OnInit, Inject, ViewChild } from '@angular/core'; import { routerTransition } from '../../router.animations'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { MatSnackBar } from '@angular/mater...
<reponame>messageformat/number-skeleton import { UnsupportedError } from '../errors.js' import { Skeleton } from '../types/skeleton.js' /** * Extends `Intl.NumberFormat` options to include features brought by the * {@link https://github.com/tc39/proposal-unified-intl-numberformat | Unified * API Proposal} * * @in...
<gh_stars>0 import { ErrorMessage, Currency } from 'App/types'; export const REQUEST_SETTLEMENTS = 'Settlements / Request Settlements'; export const SET_SETTLEMENTS = 'Settlements / Set Settlements'; export const SET_SETTLEMENTS_ERROR = 'Settlements / Set Settlements Error'; export const SELECT_SETTLEMENTS_FILTER_DATE...
import { isArray } from '@tsdi/ioc'; import { AfterInit, Binding, Input } from '@tsdi/components'; import { Task, Activities, ActivityTemplate } from '@tsdi/activities'; import { AssetActivityOption, JsonEditActivityOption } from '../transforms'; import { Plugin } from 'rollup'; import { NodeExpression } from '../NodeA...
import { useDecimal } from '../boxed-expression/utils'; import { factorPower } from '../numerics/numeric'; import { BoxedExpression, IComputeEngine, Metadata } from '../public'; /** * * Return `null` if there is no canonicalization necessary and the result is * simply `ce._fn('Power', [base, exponent])` */ export ...
<filename>src/loader/index.ts import type { GetFormatHook as ModuleGetFormatHook, LoadHook as ModuleLoadHook, ResolveHook as ModuleResolveHook, TransformHook as ModuleTransformSourceHook } from "./types"; import { extname, isAbsolute, join, normalize, resolve as resolvePath } from "path"; import { posix as posixPath }...
<reponame>anuwrag/opentrons import { createSelector } from 'reselect' import isEmpty from 'lodash/isEmpty' import mapValues from 'lodash/mapValues' import min from 'lodash/min' import pick from 'lodash/pick' import reduce from 'lodash/reduce' import omitBy from 'lodash/omitBy' import { LabwareDefinition2 } from '@opent...
import { Meta } from '@storybook/react'; import { Axis, LineSeries, Plot, Annotations, Annotation, ScatterSeries, useAxisZoom, useRectangularZoom, } from '../../src'; import { DEFAULT_PLOT_CONFIG, PlotControllerDecorator } from '../utils'; export default { title: 'Examples/Zoom', decorators: [Plot...
import * as _ from 'lodash'; import {TournamentPlayer} from './tournament-player'; export class TournamentGame { id: string; tournamentId: string; playerOnePlayerId: string; playerOneTournamentPlayerId: string; playerOnePlayerName: string; playerOneTeamName: string; playerOneFaction: string; playerOn...
import BigNumber from "bignumber.js"; import { LoadingState, useAccount, useChronicle, useChronicleLastProcessedBlock, useIncentives, useOwnHasWonAnAuction, useOwn } from "src/containers/store/Store" import linearScale from 'simple-linear-scale'; import config, { precisionMultiplierBN } from "src/config"; import { Cont...
<gh_stars>0 import Vue from 'vue' import Router from 'vue-router' import Layout from '@/views/layout/Layout.vue' import Activity from './modules/activity' import Site from './modules/site' import Permission from './modules/permission' import { PermissionModule } from '@/store/modules/permission' Vue.use(Router) /* ...
import { HaredoMessage, makeHaredoMessage, Methods } from './haredo-message'; import { Queue } from './queue'; import { Middleware, Loggers } from './state'; import { Channel, Replies } from 'amqplib'; import { ConnectionManager } from './connection-manager'; import { delay } from 'bluebird'; import { makeEmitter, Type...
import React, { ReactElement, useEffect, useState } from 'react'; import { useTheme } from '../../hooks/theme'; import { Cookies } from 'react-cookie'; import api from '../../services/api'; import { formatDate } from '../../utils/date'; import Toast from '../toast'; import { CircularProgress } from '@material-ui/core';...
<filename>src/media/shared/store/media/media.actions.ts import { Action } from '@ngrx/store'; export const ActionTypes = { GET: '[Media] Get', GET_SUCCESS: '[Media] Get Success', GET_FAIL: '[Media] Get Fail', SEARCH: '[Media] Get Search', GET_ALL: ...
import * as aps from "./aps"; import { AlphaBlendMode } from "."; let randomGenerator: g.RandomGenerator; let defaultRandomFunc: () => number; function initDefaultRandomFunc(): () => number { if (! defaultRandomFunc) { randomGenerator = new g.XorshiftRandomGenerator(Date.now()); defaultRandomFunc = () => randomG...
import React, { useState } from 'react'; import { Input, Form, Button, Select, Icon } from 'antd'; import { FormComponentProps } from "antd/lib/form"; import styles from './StylistPickForm.module.scss'; import moment from 'moment'; interface RequestPayload { month: string; year: string; venue: string; ...
<reponame>ConnorUllmann/EngineTS import { Images } from '../core/images'; import { RNG } from '../core/rng'; import { clamp, DeepReadonly, rng } from '../core/utils'; import { World } from '../core/world'; import { Geometry } from '../geometry/geometry'; import { IPoint } from '../geometry/interfaces'; import { LoopTim...
/** * 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 * dist...
import { Either } from '../../Either/definitions'; import { Anon, Generic1, Type1 } from '../../Generic'; import { method } from '../../helpers/method'; import { prop } from '../../helpers/prop'; import { Alt_1, ap, Applicative_1, Bind_1, compactByFilterMap, CompactOnly_1, Filterable_1, filterDefault, ...
<gh_stars>0 import { Component, AfterViewInit, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import ComponentBase from '../../../../core/componentBase'; import { Validators } from '@angular/forms'; import { CustomFormControl, CustomFormGroup } from '../../../../core/formContro...
<gh_stars>1-10 /* * Copyright (c) 2021, salesforce.com, inc. * All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { Connection } from "jsforce2/lib/connection.js"; import { readFileSy...
<filename>src/events/additionalbg.ts import { EventCodeLanguage, getGameName, Game } from "../types"; import { prepGenericC } from "./prepC"; import { compile } from "../utils/c-compiler"; import { $$log } from "../utils/debug"; import { assemble } from "mips-assembler"; import { prepGenericAsm } from "./prepAsm"; impo...
import React from 'react'; import { registerComponent, Components } from '../../lib/vulcan-lib'; import { gatherIcon } from '../icons/gatherIcon'; import { useMulti } from '../../lib/crud/withMulti'; import FiberManualRecordIcon from '@material-ui/icons/FiberManualRecord'; import { useUpdateCurrentUser } from '../hook...
import { cloneDeep } from 'lodash'; import RoutePathLinkFactory from '~/factories/routePathLinkFactory'; import { INode, IRoutePath, IRoutePathLink } from '~/models'; import { IRoutePathLinkRow } from './NodeDifferencesVisualizer'; /** * The algorithm behind this file is done with utilizing IComparableRoutePathLink's...
<reponame>AJH16/kodeblox /* * Copyright 2021 <NAME> * * 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 applicab...
import Component from '@ember/component'; import { inject } from '@ember/service'; import { observer } from '@ember/object'; import FuelService, { Fuel } from '../services/fuel-service'; enum ModalOperation { AddOperation = "Adding new Fuel", EditOperation = "Edit fuel" } export default class FuelEditor extends C...
<filename>packages/netsuite-adapter/src/adapter.ts /* * Copyright 2020 Salto Labs 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/lice...
import {Atom} from "./Atom"; import {Term} from "./Term"; import {assertNumberOrDate} from "../Assertions"; import {DateTime, Duration} from "luxon"; import {RulesetError} from "../Errors"; /** * Possible units for time intervals */ enum timeUnits { seconds = "seconds", minutes = "minutes", hours = "hour...
<gh_stars>10-100 import * as fs from 'fs'; import * as url from 'url'; import * as path from 'path'; import * as zlib from 'zlib'; import * as lzma from 'lzma-native'; import * as tar from 'tar'; import * as os from 'os'; import * as request from 'request'; import * as unzip from 'unzipper'; import logger from "../file...
<reponame>Conectate/ct-elements<gh_stars>1-10 /** @license Copyright (c) 2020 <NAME>. All rights reserved. This code may only be used under the BSD style license found at https://wc.conectate.app/LICENSE.txt The complete set of authors may be found at https://wc.conectate.app/AUTHORS.txt The complete set of contri...
import { Subscription, merge, Observable } from 'rxjs'; import { distinctUntilChanged, map, scan, startWith } from 'rxjs/operators'; import { Component } from 'react'; import { generate } from 'shortid'; import { ActionCreator, DataCreator, ViewCreator, ViewProps, ViewState, InputSet, OutputOrOutputSet, ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { computed, ref, ComputedRef } from 'vue'; import findIndex from 'lodash/findIndex'; import log from '../_common/js/log'; import { TdUploadProps, UploadFile, UploadRemoveOptions, FlowRemoveContext, HTMLInputEvent, UploadCtxType, } from './interface'; import { useUpload } from './useUpload'; export...
import React, { useState, useEffect, createRef } from "react"; import Layout from "../components/layout"; import SEO from "../components/seo"; import CenterFlex from "../components/CenterFlex"; import { Box, Flex, Button, useTheme, Heading, FormControl, FormLabel, Input, FormHelper...
<gh_stars>1-10 import { FilteringManifestResolverAdapter } from "./FilteringManifestResolverAdapter"; import ManifestDocument, { StringFragment } from "./ManifestDocument"; import MultiValueIndex from "./MultiValueIndex"; export interface ManifestResolver { /** * @returns a list of URIs pointing to manifest.j...
import { Paper, Button, Grid, CardActionArea, CardMedia, createStyles, makeStyles, Theme } from "@material-ui/core"; import React, { useContext, useState } from "react"; import { ContentType, Dataset, DatasetView, LayerTypes } from "../api/datasets"; import { AppContext } from "../context/AppContext"; i...
import { AbstractIdentifierProvider } from '@veramo/did-manager' import { IAgentContext, IIdentifier, IKey, IKeyManager, IService, TKeyType } from '@veramo/core' import { Account, LTO } from 'lto-api' import { DIDService, hexToBase58, base58ToHex } from '@sphereon/lto-did-ts' import Debug from 'debug' import { ICreateI...
<gh_stars>100-1000 // SPDX-FileCopyrightText: 2018-2021 The Manyverse Authors // // SPDX-License-Identifier: MPL-2.0 import {Stream, Subscription, Listener} from 'xstream'; import {Component, PureComponent} from 'react'; import {StyleSheet, FlatList, View, ViewabilityConfig} from 'react-native'; import {h} from '@cycl...
<reponame>igorwessel/valclient.js import { PreGame } from "@app/preGame"; import { mock } from "jest-mock-extended"; import { IHttp } from "@interfaces/http"; import { CoreGameResponse } from "@interfaces/liveGame"; import { PreGameDetailsResponse, PreGameLoadout } from "@interfaces/preGame"; import { agentsMappedByI...