text
stringlengths
3.3k
33k
<filename>extensions/csharp-o/src/omnisharpServer.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *----------...
export type MaterialColor = { lighten5: string; lighten4: string; lighten3: string; lighten2: string; lighten1: string; base: string; darken1: string; darken2: string; darken3: string; darken4: string; accent1: string; accent2: string; accent3: string; accent4: string; }; export const red: ...
<reponame>Ignite-DAO/boost-zil import { ByStr20 } from "./signable"; import "isomorphic-fetch"; import { Zilliqa } from "@zilliqa-js/zilliqa"; import { SDKResolvers } from "."; declare var fetch: any; interface RPCSubStateQuery { query: { params: (string | any[])[] }; meta: { fields: string[] }; } interface RPCCa...
<gh_stars>0 import path from 'path'; import globby from 'globby'; import { getProjectArtifactId } from 'yoshi-helpers/build/utils'; import { isTypescriptProject } from 'yoshi-helpers/build/queries'; import resolve from 'resolve'; import fs from 'fs-extra'; import { Config } from 'yoshi-config/build/config'; import { ...
import React, { forwardRef, HTMLAttributes } from 'react'; import classNames from 'classnames'; import './TreeItem.scss'; import { Handle, Action, Remove } from '../Item/components'; import {ActionProps} from '../Item/components/Action'; const collapseIcon = ( <svg width='10' xmlns='http://www.w3.org/2000/svg' ...
// Make builtins like Map and Set safe to use with non-extensible objects. import './fixPolyfills'; import { DocumentNode } from 'graphql'; import { Cache, ApolloCache, Transaction } from 'apollo-cache'; import { addTypenameToDocument, canUseWeakMap } from 'apollo-utilities'; import { wrap } from 'optimism'; impor...
<filename>src/services/useUserStore.ts import { defineStore } from 'pinia'; import { IAddress, IClient, ICurrentEro, IUser, IUserPreference } from '../types/InterfaceType'; import { userMock } from '../utils/mockDataAPI'; import { collection, doc, getDoc, getDocs, onSnapshot, setDoc, updateDoc, } from 'firebase/firesto...
<gh_stars>0 import protobuf from "protobufjs"; import { promisify } from "../utils"; import { Client } from "./Client"; import { Collection } from "./Collection"; import { ERROR_REASONS } from "./const/ErrorReason"; import { DataType, DataTypeMap, DslType } from "./types/Common"; import { FlushReq, InsertReq } from "....
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
<gh_stars>0 import { FETCH_RELEASES, FETCH_RELEASES_BY_PROJECT_ID, FETCH_RELEASE_BY_ID, FETCH_RELEASE_AUTOMATION_SUMMARY, FETCH_RELEASE_DETAILS_ONLY, FETCH_PHASE_TREE_BY_ID, FETCH_RELEASE_SUMMARIES, INITIALIZE_PROJECT_RELEASE_GRID, FETCH_RELEASES_BY_PROJECT_ID_UPDATING_GRID, NEXT_PAGE_PROJECT_RELEASE_GRID, ...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Directionality} from '@angular/cdk/bidi'; import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coe...
<gh_stars>0 import * as ts from 'typescript'; import { isTypeParameter, isUnionType, isIntersectionType, isLiteralType, isObjectType, isTupleTypeReference, isUniqueESSymbolType, } from '../typeguard/type'; import { isTypeFlagSet, isReadonlyAssignmentDeclaration, isInConstContext,...
/* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import { chainCallbacks } from "@here/harp-utils"; import * as THREE from "three"; const vertexShaderChunk = ` uniform float outlineThickness; vec4 calculateOutli...
import dayjs from 'dayjs' import AlertStripe, { AlertStripeSuksess } from 'nav-frontend-alertstriper' import { Undertittel } from 'nav-frontend-typografi' import React, { useEffect, useState } from 'react' import { useAppStore } from '../../data/stores/app-store' import { RSMottakerResponse } from '../../types/rs-type...
import { ArrayCtor, ObjectCreate, ObjectDefineProperties, ObjectFreeze, ObjectGetOwnPropertyDescriptors, ObjectHasOwnProperty, ReflectApply, ReflectConstruct, ReflectDefineProperty, ReflectDeleteProperty, ReflectGetOwnPropertyDescriptor, ReflectGetPrototypeOf, Reflect...
import {CONN} from 'ssb-conn/lib/conn'; import {ConnHub, ListenEvent as HubEvent} from 'ssb-conn/lib/types/hub'; import {ConnQuery, Peer} from 'ssb-conn/lib/types/query'; import {Msg} from 'ssb-typescript'; import {plugin, muxrpc} from 'secret-stack-decorators'; const pull = require('pull-stream'); const ip = require('...
<gh_stars>0 import * as React from 'react' import { AnnotationMatcher } from '@simspace/nivo-annotations' import { AxisProps, CanvasAxisProp, GridValues } from '@simspace/nivo-axes' import { Box, CartesianMarkerProps, Dimensions, Margin, ModernMotionProps, PropertyAccessor, SvgDefsAndFill, ...
import { Allure, AllureGroup, AllureRuntime, AllureStep, AllureTest, Attachment, Category, ContentType, ExecutableItemWrapper, IAllureConfig, isPromise, LabelName, LinkType, Severity, Stage, Status, StatusDetails, StepInterface, } from 'allure-js-commons'; import { AllureAdapterCon...
<gh_stars>0 import { Command, flags } from '@oclif/command' import type { DestinationDefinition as CloudDestinationDefinition, MinimalInputField } from '@segment/actions-core' import { fieldsToJsonSchema } from '@segment/actions-core' import { manifest as cloudManifest, ManifestEntry as CloudManifest } from '@segment/a...
import { Messages } from '@salesforce/core'; import * as ExcelJS from 'exceljs'; import * as fs from 'fs'; import * as path from 'path'; import { TranslationDataTable } from './typeDefs'; Messages.importMessagesDirectory(__dirname); const messages = Messages.loadMessages('sfdx-metadata-patcher', 'mdata'); export cla...
export enum NAMESPACES { HTML = 'http://www.w3.org/1999/xhtml', MATHML = 'http://www.w3.org/1998/Math/MathML', SVG = 'http://www.w3.org/2000/svg', XLINK = 'http://www.w3.org/1999/xlink', XML = 'http://www.w3.org/XML/1998/namespace', XMLNS = 'http://www.w3.org/2000/xmlns/', } const NS = NAMESPAC...
<reponame>suzuki/tslint /** * @license * Copyright 2018 Palantir Technologies, Inc. * * 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 ...
<filename>src/scripts/helpers/constants.ts export const enum Facings { SOUTH, SOUTH_EAST, EAST, NORTH_EAST, NORTH, NORTH_WEST, WEST, SOUTH_WEST, } export const spriteDirectionList = ['s', 'se', 'e', 'ne', 'n', 'nw', 'w', 'sw']; export const facingToSpriteNameMap = { [Facings.SOUTH]: 's', [Facings.SOUTH_EAST...
<gh_stars>0 import { IDisposable } from "@aster-js/core"; import { Debouncer, TimeoutSource } from "@aster-js/async"; import { dom } from "@aster-js/dom"; import { LitElement, html, HTMLTemplateResult, unsafeCSS, nothing, render } from "lit"; import { customElement, property } from "lit/decorators.js"; import styles fr...
<filename>lib/api-helper/command/generator/generatorCommand.ts /* * Copyright © 2019 Atomist, Inc. * * 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/license...
import { css } from 'emotion'; import * as React from 'react'; import { SizedDiv } from '../../../Components/SizedDiv'; import { DiffEditor, Monaco, DiffEditorDidMount, monaco, } from '@monaco-editor/react'; import { gutter, addExtraLib } from './SrcEditor'; import { MonacoEditorProperties } from './editorHelpe...
<filename>src/lib/tools/check.ts import SKU from 'tf2-sku-2'; import { TradeOffer, EconItem } from 'steam-tradeoffer-manager'; import log from '../logger'; import { strangePartsData, noiseMakerNames } from '../data'; import Bot from '../../classes/Bot'; export function uses( offer: TradeOffer, items: EconIte...
import { readSync as read } from 'read-file-relative'; import { Dictionary } from '../../../../../../configuration/interfaces'; import Protocol from 'devtools-protocol'; import path from 'path'; import os from 'os'; import remoteChrome from 'chrome-remote-interface'; import debug from 'debug'; import { GET_WINDOW_DIMEN...
<gh_stars>0 /* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. "use strict"; import { TokenCredential } from "@azure/core-http"; import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import * as identity from "@azure/identity"; import { S...
import { from, Observable, of, Subject, Subscription } from "rxjs" import { map, mapTo, mergeMap, reduce, tap } from "rxjs/operators" import { BuilderRendering, DescriptionBox, ModuleView, Project, LayerTree, Workflow } from "./core-models" import { packCore } from "../modules/factory-pack-core" import { Adaptor, Conne...
<reponame>Alive29/celo-monorepo import { RESTDataSource } from 'apollo-datasource-rest' import BigNumber from 'bignumber.js' import { BLOCKSCOUT_API, FAUCET_ADDRESS, VERIFICATION_REWARDS_ADDRESS } from './config' import { EventArgs, EventTypes, TokenTransactionArgs, TransferEvent } from './schema' import { formatCommen...
<filename>src/client.ts import EventEmitter from 'events'; import { IChannelWrapper } from '@artie-owlet/amqplib-wrapper'; import { Channel, Message as AmqplibMessage } from 'amqplib'; import { ChannelHandler } from './channel-handler'; import { IExchangeOptions, IQueueDeclareOptions, IQueueConsumeOptions...
<filename>asset-transfer-fabcar/application-javascript-server/fabric-SDK/fabric-network/lib/gateway.d.ts import { Network } from './network'; import { Identity } from './impl/wallet/identity'; import { Wallet } from './impl/wallet/wallet'; import { IdentityProvider } from './impl/wallet/identityprovider'; import { TxEv...
import { inMultiFight, runCombat, visitUrl, urlEncode, availableAmount, myLocation, myFamiliar, haveEffect, runaway, choiceFollowsFight, print, equippedAmount, getProperty, useSkill, throwItem, } from 'kolmafia'; import { $skill, $familiar, $effect, $location,...
<reponame>HAPPY3N1GMA/vscode-sqflint /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------...
<filename>src/utils/dbUtils/filterQuery.ts import * as knex from "knex"; import * as giftbitRoutes from "giftbit-cassava-routes"; import {QueryOptions} from "./QueryOptions"; export interface FilterQueryOptions extends QueryOptions { properties: { [propertyName: string]: FilterQueryProperty }; } /** * Specifies ...
import * as React from 'react'; import styled from 'styled-components'; import { Input } from '../Input/Input'; import { MagnifyingGlassIcon, CloseIcon } from '../../icons/index'; import { Colors, Elevation } from '../../essentials'; import { useControlledState } from '../../utils/hooks/useControlledState'; import { ...
import { BodyComponent } from '../../mjml-core'; import { get, each } from 'lodash'; const IMG_BASE_URL = 'https://www.mailjet.com/images/theme/v1/icons/ico-social/'; const defaultSocialNetworks: { [key: string]: { 'share-url'?: string; 'background-color': string; src: string; }; } = { facebook: ...
<gh_stars>1-10 import { ConsoleErrorMsg, ContractVulReport, DBContent, TestEndMsg, TestStartMsg, TxErrorMsg, TxFinishedMsg, TxMsg, TxState, TxStateChangeMsg, TxStateControlMsg, TxTraverseStartMsg } from "@darcher/rpc"; import {EventEmitter} from "events"; import {$enum} from ...
<filename>src/speechly/client.ts import localeCode from 'locale-code' import { ErrorCallback, ContextCallback } from '../types' import { Microphone, DefaultSampleRate, ErrNoAudioConsent, ErrNoBrowserSupport } from '../microphone/microphone' import { Websocket, WebsocketClient, WebsocketResponse, WebsocketRespo...
export const commonVars = { // success astelSuccessLighter: '#D3E5FF', astelSuccessLight: '#3291FF', astelSuccess: '#0070f3', astelSuccessDark: '#0761D1', // error astelErrorLighter: '#F7D4D6', astelErrorLight: '#FF1A1A', astelError: '#E00', astelErrorDark: '#C50000', // warning astelWarningLi...
import { ethers, BigNumber } from "ethers"; import { UbiquityAlgorithmicDollarManager } from "../src/types/UbiquityAlgorithmicDollarManager"; import { Balances, useConnectedContext } from "./context/connected"; import { Dispatch, SetStateAction, useEffect, useState } from "react"; import { Bonding, BondingShare, ...
import * as React from "react"; import { ImageURISource, StyleSheet, View } from "react-native"; import { PanGestureHandler, PanGestureHandlerGestureEvent } from "react-native-gesture-handler"; import Animated, { useAnimatedGestureHandler, useAnimatedStyle, useSharedValue, withTiming, } from "react-native-reani...
import type { RendererContext } from 'vscode-notebook-renderer'; ///////////////////////////// interface IRenderInfo { container: HTMLElement; mime: string; value: any; context: RendererContext<unknown>; } ////////////////////////////////////////////////////////////// // This function is called to render you...
import * as React from 'react'; import styles from './VikingTrainingSimulator.module.scss'; import { IVikingTrainingSimulatorProps } from './IVikingTrainingSimulatorProps'; import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner'; import * as Helpers from '../helpers/helpers'; import { UnitSelector } f...
import React, { useCallback, useEffect, useState } from 'react'; import { History } from 'history'; import { useDispatch, useSelector } from 'react-redux'; import { Button, Divider, Typography } from '@mui/material'; import { AccountBalanceWallet, CreditCard, ShoppingCart } from '@mui/icons-material'; import { Modal }...
import * as fs from 'fs'; import * as path from 'path'; import { commands, window } from 'vscode'; import { Nsi } from '../../Nsi'; import { NsiShellCommand } from '../../util/shellCommand'; /** * The SuiteCloud CLI object fields which are retrieved via the SDF CLI "suitecloud object:list" command. */ export clas...
const initialImportString = `import React from 'react'; import { configure, shallow, mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() }); `; const fileNameImports = (componentName: string, fileName: string) => { return `import ${componentName} from '${fileName}...
<reponame>NitishaJPLoft/dramaking-api import { Request, Response, NextFunction } from 'express'; import AWS, { S3, ElasticTranscoder } from 'aws-sdk'; import VideoModel from '../../Models/Video'; import UserModel from '../../Models/User'; import MusicModel from '../../Models/Music'; import { v4 as uuidv4 } from 'uuid';...
<reponame>beaufortfrancois/rx-player /** * Copyright 2015 CANAL+ Group * * 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 r...
import React, { useState } from 'react'; import { FormBuilderInput } from '@sanity/form-builder/lib/FormBuilderInput'; import Fieldset from 'part:@sanity/components/fieldsets/default'; import { PatchEvent, setIfMissing, set } from '@sanity/form-builder/PatchEvent'; import { Flex, Box, Button, useToast } from '@sanity/u...
import { Dict, Option } from '../core'; export type TupleSyntax = Statement | TupleExpression; type JsonValue = string | number | boolean | JsonObject | JsonArray; interface JsonObject extends Dict<JsonValue> {} interface JsonArray extends Array<JsonValue> {} // This entire file is serialized to disk, so all string...
import * as fs from 'fs'; import fetch from 'node-fetch'; export interface ISnapshot { readonly bosh: { readonly instances: ReadonlyArray<IBoshInstance>; readonly vms: ReadonlyArray<IBoshInstance>; readonly vm_types: ReadonlyArray<IBoshVMType>; readonly azs: ReadonlyArray<IBoshAZ>; readonly elbs: ReadonlyAr...
import * as ko from "knockout"; import { IRenderable, UimlPart } from "./uiml-parts"; import { UimlLayoutSerializer } from "./uiml-layout-serializer"; export interface IFormElement extends IRenderable { parent: IFormElement; addElement(uimlPart: UimlPart, location: string, hoveredElement?: IFormElement): void;...
import filesize from "filesize"; import _ from "lodash"; import React, { createRef, RefObject } from "react"; import ReactDOM from "react-dom"; import "../../style/monitor.less"; import { Error } from "../components/Error"; import { Footer } from "../components/Footer"; import { Header } from "../components/Header"; im...
/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */ declare var performance: any; import * as React from 'react'; import {Button, Image, StyleSheet, Text, View} from 'react-native'; import {TonClient} from '@tonclient/core'; import buffer from 'buffer';...
/* Copyright 2020 TATA ELXSI 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 ...
import {ChangeDetectorRef, EventEmitter, Input, Output} from '@angular/core'; import {FormBuilder, FormGroup} from '@angular/forms'; import {ToastrService} from 'ngx-toastr'; import {SchemaValidationError} from 'js-data'; import {IMultiSelectSettings, IMultiSelectTexts} from 'angular-2-dropdown-multiselect'; import {Be...
<reponame>kevintavog/gpxViewer import { Geo } from '@/models/Geo' import * as xml2js from 'xml2js' import { Timezone } from '@/models/Timezone' /* <gpx [many attributes] > <metadata /> <wpt .../> <wpt .../> <trk> <name>-- name goes here --</name> <trkseg> <trkpt lat="47.6445...
/// <reference path="../typings/index.d.ts"/> import MongoDB = require('mongodb'); import MongoClient = MongoDB.MongoClient; import MongoDatabase = MongoDB.Db; import { UserController } from "./UserController"; import { Document, Patch, Vote } from "./Models"; import Diff = require('diff'); const databaseUrl: ...
import * as DOMPurify from "dompurify"; import { BACKEND_SERVICE } from "./backend.service"; import { DataObj, isNewDataObjId, entityNameFromDataObjId, parseDataObjId } from "@domain/metadata/data_obj"; import { updateDOM, serializeElemToObj } from "@fe/live-dom-template/live-dom-template"; import { Pn } from "@domain...
import {Injectable} from '@angular/core'; import {ComponentStore} from '@ngrx/component-store'; import {combineLatest, Observable, of} from 'rxjs'; import {filter, map, switchMap, tap, withLatestFrom} from 'rxjs/operators'; import {ApiGetFileTextArgsEncoding} from '../lib/api/api_interfaces'; import {HttpApiService} f...
import { useState, useEffect } from "react"; import { MdChevronLeft, MdChevronRight } from "react-icons/md"; import * as dateFns from "date-fns"; import ptBr from "date-fns/locale/pt-BR"; import ReactTooltip from "react-tooltip"; import { Reoverlay } from "reoverlay"; import LoadingAnimation from "@components/UI/Loadin...
import {useEffect} from 'react'; import {cloneDeep, groupBy, sortBy} from 'lodash' import {defaultAscensionMaterials, defaultTalentMaterials} from '../charactersData/materials/expandedMaterialInfo'; import { IBooksAndMoraForLevel, ICalculatedExperience, ICharacterAscensionMaterials, ICharacterTalentMaterials }...
import './Cascader.scss'; import React, {FormEvent, ReactNode, useEffect, useLayoutEffect, useRef, useState} from 'react'; import ReactDOM from 'react-dom'; import cn from 'classnames'; type Trigger = `hover` | `click`; interface IOMCascaderMenuItem { label: string; value: any; className?: string; onClick?: ...
// EXTERNAL IMPORTS import copy from "copy-to-clipboard"; import { map } from "lodash"; import moment from "moment"; import React, { useEffect, useRef, useState } from "react"; import { Button, Icon, Label } from "semantic-ui-react"; import { FixedSizeList } from "react-window"; // INTERNAL IMPORTS import { URL } from...
<reponame>tobypinder/genshin-optimizer<gh_stars>100-1000 import { IFormulaSheet } from "../../../Types/character" import { basicDMGFormula } from "../../../Util/FormulaUtil" const data = { normal: { hitArr: [ [36.12, 39.06, 42, 46.2, 49.14, 52.5, 57.12, 61.74, 66.36, 71.4, 77.18, 83.97, 90.76, 97.55, 104.9...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { environment } from '../../environments/environment'; import Ajv from 'ajv'; declare global { interface Window { require: any; process: any; } } @Injectable({ providedIn: 'root' }) export ...
import * as _ from 'underscore'; import * as sharedb from 'sharedb/lib/client'; import { ChatUserList, ChatUser } from './chat-user' import { WebSocketCommunicationLayer, NamespaceCommunicator } from './socket-communication-layer'; import { MessageGroups } from './chat-messages'; import { EventEmitter } from './event';...
/* * MIT License * * Copyright (c) 2020 manager * * 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, ...
import * as React from 'react'; import { Link } from 'react-router'; import { signIn, _firebaseApp, _currentRegistrationRole, getMappingInfoForUser, updateRegistrationToMapping, getUserRole, setCurrentRegistrationRole } from './components/firebaseAuth/component'; import { IUserMapping, UserStatus, RegistrationRoles, IR...
<filename>src/conversion.ts import { List, Range, Seq } from 'immutable' import { TextBuilder, tuple } from './util' //============================================================================// // Text mapping rules //----------------------------------------------------------------------------// // // We use a ge...
import { BoxGeometry, Camera, DoubleSide, Mesh, MeshBasicMaterial, Object3D, PerspectiveCamera, PlaneGeometry, Raycaster, Scene, TextureLoader, Vector2, Vector3, WebGLRenderer } from "three" import { TrackballControls } from './TrackballControls' //import { OrbitControls } from "three/examples/jsm/c...
// Chart of Account Component import './style.scss'; import * as ko from 'knockout'; import 'jstree'; import { IPage, ICoa, IAccPage } from '../../state'; import { Actions } from '../../store'; import { navigation } from '../nav'; interface ICoaPage extends IPage { data: ICoa; } let coa: ViewModel; class ViewMod...
<reponame>dimamir64/vue-act-master import { CancelledAct } from './cancelled'; import { ActinonAlreadyExistingError, InvalidDITypeError, KeyAlreadyExistsInDIError, NotFoundActionError, } from './errors'; import { ActEventName, ActMasterAction, ActMasterActionDevDI, ActMasterOptions, devActMasterConfig...
// Camera.tsx import * as React from "react"; import * as THREE from "three"; import PropTypes from "prop-types"; import exact from "prop-types-exact"; import Box from "../primitives/Box"; import Circle from "../primitives/Circle"; import Cylinder from "../primitives/Cylinder"; import Label from "../primitives/Label"; ...
<reponame>JonathanWilbur/x500-ts /* eslint-disable */ import { ASN1Element as _Element, ASN1TagClass as _TagClass, OPTIONAL, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Extensions, _decode_Extensions, _encode_Extensions, } from "../AuthenticationFrame...
<filename>src/subproviders/filters.ts import parallel from 'async/parallel'; import { JSONRPCRequest } from '../base-provider'; import Subprovider, { CompletionHandler, NextHandler } from '../subprovider'; import { intToHex, stripHexPrefix } from '../util/eth-util'; import Stoplight from '../util/stoplight'; import Blo...
<reponame>mcleo-d/finos-plexus.github.io /** * Copyright © 2014-2019 Tick42 OOD * SPDX-License-Identifier: Apache-2.0 * * 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://ww...
<gh_stars>1-10 import AwaitedHandler from '../AwaitedHandler'; import inspectInstanceProperties from '../inspectInstanceProperties'; import StateMachine from '../StateMachine'; import AwaitedPath from '../AwaitedPath'; import ClassMixer from '../ClassMixer'; import Constructable from '../Constructable'; import NodeFact...
<gh_stars>1-10 import TreemapData from "./treemapData"; import * as stats from "simple-statistics"; export interface FunctionData { name: string; longName: string; startLine: number; nloc: number; ccn: number; tokens: number; params: number; length: number; fanIn: number; fanOut: number; generalF...
<reponame>jeswr/rdf-test-suite.js<filename>lib/testcase/sparql/TestCaseQueryEvaluation.ts import {DataFactory} from "rdf-data-factory"; import * as RDF from "rdf-js"; import {RdfObjectLoader, Resource} from "rdf-object"; import {stringToTerm} from "rdf-string"; import {mapTerms, QuadTermName} from "rdf-terms"; import {...
import * as babelCore from '@babel/core'; import { Scope } from '@babel/traverse'; // @ts-ignore import splitExportDeclaration from '@babel/helper-split-export-declaration'; import path from 'path'; import babelPluginMacros, { createMacro } from 'babel-plugin-macros'; import { StateMachine } from 'xstate'; import { rol...
import type Client from "../../Client"; import type { Message, MessageEmbed, GuildChannel } from "discord.js"; import DiscordMD from "./discord-markdown"; import twemoji from "twemoji"; import { JSDOM } from "jsdom"; const iDocument = new JSDOM().window.document; export default class markdownParser { public construc...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; import { FormBuilder, FormControl, FormGroup, Validators, AbstractControl } from '@angular/forms'; import { Observable } from 'rxj...
import * as path from "path"; import { Readable } from "stream"; import { safeCall } from "./call"; import { NormalizedOptions, normalizeOptions } from "./normalize-options"; import { stat } from "./stat"; import { Facade, VoidCallback } from "./types-internal"; import { EventName, Options, Stats } from "./types-public...
const activityBonus = { "ActivityScoreBonus": { "0":{ "0": {"score":60, "bonus":[{"type":1000, "id":0, "num":1},{"type":2, "num":2}]}, "1": {"score":120, "bonus":[{"type":1000, "id":0, "num":1},{"type":2, "num":2}]}, "2": {"score":360, "bonus":[{"type":1000, "id":0, "num"...
export * from './utils/composeRefs'; export * from './utils/cx'; export * from './utils/getElement'; export * from './utils/jsx-types'; export * from './utils/general'; export * from './utils/scroll-lock'; export * from './hooks/useClickAway'; export * from './hooks/useComposeRefs'; export * from './hooks/useDocument...
import React, { Dispatch, FC, useState } from 'react' import Web3 from 'web3' import Web3Integrate from '../../../services/web3-integrate' import { connect } from 'react-redux' import { XLg } from 'react-bootstrap-icons' import TransactionUtils from '../../../services/transactionUtils' import TransactionMonitor from '....
import { ipcRenderer, remote } from "electron"; import * as moment from "moment"; import * as React from "react"; import * as Autosuggest from "react-autosuggest"; import * as ReactDOM from "react-dom"; import { HotKeys } from "react-hotkeys"; import * as TagsInput from "react-tagsinput"; interface TagsProps { onCha...
import * as PIXI from 'pixi.js' import noop from 'lodash/noop' import memoize from 'lodash/memoize' import { ORIENTATION, dimensions } from '../util/math' import { darken, shift } from '../util/color' interface HexView { radius: number angle: number altitude: number orientation: ORIENTATION } type HexPositio...
<gh_stars>1-10 import { VNode } from "../vdom/index"; import { QWeb } from "./qweb"; /** * Owl QWeb Extensions * * This file contains the implementation of non standard QWeb directives, added * by Owl and that will only work on Owl projects: * * - t-on * - t-ref * - t-transition * - t-mounted * - t-slot * -...
<filename>utils/index.ts import nunjucks from 'nunjucks' import { Command, Channel, Verify } from '@/types/client' import { dataNodeProxy, CommonDataNode } from '@kenote/common'; import { map, get, template, isDate, isString, isArray, merge, isFunction, isPlainObject, omit, isNumber, toNumber, isNaN, isEmpty, isNull, ...
<filename>src/lib/number.ts import Sequence, { asSequence, range } from 'sequency'; import { Exp, Scalar, Var, Mul, Add, Power, Negate, Mat } from './expressions' import { Rational } from './rational'; /** * Multiplies a value by 2. (Also a full example of Typedoc's functionality.) * * ### Example (es module) * `...
import * as kleur from "kleur"; import * as _ from "lodash"; import { RecursivePartial } from "../interface"; import { Logger } from "../logger"; import { APIRequestContext } from "../server"; import { ServiceRegistry, ServiceRegistryOptions, Service, ServiceAction, ServiceNode } from "./registry"; import { Reporter, R...
<reponame>dpschen/languagetools import * as T from '@babel/types' import template from '@babel/template' import generator, { GeneratorResult, GeneratorOptions } from '@babel/generator' import { parse, ParserOptions } from '@babel/parser' interface ParseOptions extends ParserOptions { isScriptSetup: boolean lang: s...
<gh_stars>0 import { IForeignCodeExtractor, IForeignCodeExtractorsRegistry } from '../extractors/types'; import { ICodeOverridesRegistry } from '../overrides/tokens'; import { DefaultMap } from '../utils'; import { Signal } from '@lumino/signaling'; import { CodeEditor } from '@jupyterlab/codeeditor'; import { IEditorP...
import * as vscode from 'vscode'; import * as ss from './common/systemSupport'; import { Module } from './moduleParser'; import { projects, Project } from './project'; import * as cs from './common/collectionSupport'; import * as as from './appSupport'; import { Token, TK } from './token'; /** represents the full or ...
import React, { ReactElement } from "react"; import { mount, shallow, ReactWrapper, MountRendererProps } from "enzyme"; import { act } from "react-dom/test-utils"; import sinon, {spy} from "sinon"; import { expect } from "chai"; const stringify = JSON.stringify; import { Query, Builder, Utils, BasicConfig, JsonLo...