text
stringlengths
3.08k
15.5k
import * as Kafka from 'node-rdkafka' import * as _ from 'lodash' import * as bluebird from 'bluebird' import * as winston from 'winston' import { KafkaMessage, TopicPartition, Options } from './types' import { ConnectionDeadError } from './errors' const DEFAULT_CONSUME_SIZE = 100 const DEFAULT_CONCURRENT = 100 const...
<gh_stars>0 import openEditor from 'open-editor'; import fs from 'fs-extra'; import { spawn } from 'child_process'; import { Tmp } from '../repositories'; import { BitId, BitIds } from '../../bit-id'; import loader from '../../cli/loader'; const DEFAULT_MESSAGE = 'DEFAULT:'; const DEFAULT_AUTO_TAG_MESSAGE = 'DEFAULT-A...
import React from 'react' import PropTypes from 'prop-types' import {Portal} from '../utilities/Portal' import SnackbarItem from './SnackbarItem' import {SnackbarItemType} from './types' interface SnackbarProviderProps { children: React.ReactNode } interface State { activeSnacks: SnackbarItemType[] } // This det...
<gh_stars>0 import {requestAPI} from './services'; import {ReadonlyJSONObject} from '@lumino/coreutils'; import {Contents, ServerConnection} from '@jupyterlab/services'; import {DocumentRegistry} from '@jupyterlab/docregistry'; import {Signal, ISignal} from '@lumino/signaling'; import {IStateDB} from '@jupyterlab/state...
import { JSONSerializable } from '../../../../util/json'; import { AccAddress } from '../../../bech32'; import { Any } from '@terra-money/terra.proto/google/protobuf/any'; import { Counterparty } from './Counterparty'; import { Version } from './Version'; import { MsgConnectionOpenTry as MsgConnectionOpenTry_pb } from ...
/** * 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. * * @format */ import {createStore} from 'redux'; import BaseDevice from '../devices/BaseDevice'; import {createRootReducer} from '...
<filename>app/directives/helpers.ts import {Directive, ElementRef, Renderer} from '@angular/core'; import {Platform, Navbar} from 'ionic-angular'; import * as actionSheets from '../pages/action-sheets/action-sheets'; import * as alerts from '../pages/alerts/alerts'; import * as badges from '../pages/badges/badges'; im...
import { Component, OnInit, Input, ViewChild, OnDestroy, Output, EventEmitter, ChangeDetectorRef } from "@angular/core"; import { Robot } from "../robot"; import { NgForm } from "@angular/forms"; import { Subject } from "rxjs"; import { debounceTime, finalize } from "rxjs/operators"; import { RobotServi...
export interface AlConditionalSubject { getPropertyValue( property:string, ns:string ):any; } export class AlQueryEvaluator { constructor( public query?:any ) { } public test( target:AlConditionalSubject, query?:any ):boolean { if ( query ) { this.query = query; } ...
import { _, AgChartThemeOverrides, ChartType, SeriesChartType } from "@ag-grid-community/core"; import { AgChartTheme, CategoryAxis, Chart, ChartTheme, getChartTheme, themes, } from "ag-charts-community"; import { deepMerge } from "../utils/object"; import { CrossFilteringContext } from "../../chartService"; import { C...
import classnames from 'classnames'; import React, { CSSProperties, forwardRef, MouseEventHandler } from 'react'; import BootstrapButton, { ButtonProps as BootstrapButtonProps } from 'react-bootstrap/Button'; import Spinner from 'react-bootstrap/Spinner'; import styled from 'styled-components'; export interface Button...
<filename>packages/nodestatus-server/server/lib/nodestatus.ts import { Server } from 'http'; import { isIPv4 } from 'net'; import ws from 'ws'; import { decode } from '@msgpack/msgpack'; import { IPv6 } from 'ipaddr.js'; import { Box, ServerItem, BoxItem } from '../../types/server'; import { authServer, createNewEven...
/* Copyright 2919 <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 applicable law or agreed to in writing, software distribu...
<filename>packages/plugin-teach/tests/environment.ts import { Database, Context } from 'koishi-core' import { defineProperty, Observed, clone, intersection } from 'koishi-utils' import { Dialogue, DialogueTest, equal, Config, apply } from 'koishi-plugin-teach' import { App } from 'koishi-test-utils' declare module 'ko...
<gh_stars>0 /** * Copyright 2021, Yahoo Holdings Inc. * Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms. */ import { action, setProperties } from '@ember/object'; import { A as arr } from '@ember/array'; import { isEmpty } from '@ember/utils'; import { assert } from '@ember/de...
import { ContainsArrayError, HTTPStore, openArray, openGroup, ZarrArray } from 'zarr'; import type { Group as ZarrGroup } from 'zarr'; import type { AsyncStore, Store } from 'zarr/types/storage/types'; import { Matrix4 } from '@math.gl/core/dist/esm'; import { LRUCacheStore } from './lru-store'; export const MAX_CHANN...
// Copyright 2019-2020 @paritytech/polkassembly authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import React, { useContext, useState } from 'react'; import { Dropdown, DropdownProps, Icon, Input, InputOnChangeData }...
<filename>src/extension.ts // Copyright 2018 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 appl...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import formatMessage from 'format-message'; import { SDKKinds } from './types'; formatMessage.setup({ missingTranslation: 'ignore', }); interface LabelOverride { title?: string | false; subtitle?: string | false; description?: string...
<reponame>SuitestAutomation/suitest<filename>packages/smst-to-html/lib/toHtml.ts import {assertUnknownSectionNode} from '@suitest/smst'; import { CodeBlockNode, ConditionNode, InlineTextNode, PropertiesNode, TestLineNode, TestLineResultNode, SingleNode, Node, Verbosity, } from '@suitest/smst/types/unistTestLine...
import * as Babel from '@babel/core'; import { ParserOptions } from '@codemod/parser'; import { basename, extname } from 'path'; import { install } from 'source-map-support'; import { TransformableExtensions } from './extensions'; import { PathPredicate } from './iterateSources'; import PluginLoader from './PluginLoade...
/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License in the project root for license information. */ import { createConnection, TextDocuments, Diagnostic, DiagnosticSeverity, ProposedFeatures, InitializeParams, CompletionItem, CompletionItemKind, Tex...
import chalk from 'chalk' import {Command} from 'clipanion' import xmlParser from 'fast-xml-parser' import fs from 'fs' import glob from 'glob' import path from 'path' import asyncPool from 'tiny-async-pool' import {apiConstructor} from './api' import {APIHelper, Payload} from './interfaces' import { renderCommandIn...
import React, { useContext, useMemo, useEffect, useCallback } from 'react'; import { PositionScale } from '@visx/shape/lib/types'; import { scaleBand } from '@visx/scale'; import isChildWithProps from '../../../typeguards/isChildWithProps'; import { BaseBarSeriesProps } from './BaseBarSeries'; import { Bar, BarsPro...
import path = require('path'); import fs = require('fs'); import tl = require('vsts-task-lib/task'); var zipUtility = require('webdeployment-common/ziputility.js'); /** * Validates the input package and finds out input type * * @param webDeployPkg Web Deploy Package input * * @return true/false based on input p...
<reponame>rgatkinson/audere // Copyright (c) 2018, 2019 by Audere // // Use of this source code is governed by an MIT-style license that // can be found in the LICENSE file distributed with this file. import crypto from "crypto"; import uuidv4 from "uuid/v4"; import passport, { Passport } from "passport"; import { Str...
<filename>score-web/src/app/agency-id-list-management/domain/agency-id-list.ts import {ScoreUser} from '../../authentication/domain/auth'; import {PageRequest} from '../../basis/basis'; import {SimpleRelease} from '../../release-management/domain/release'; import {ParamMap} from '@angular/router'; import {HttpParams} f...
/* * Copyright 2018 TWO SIGMA OPEN SOURCE, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
<reponame>UchihaObitoZzz/taro<gh_stars>1-10 import * as fs from 'fs-extra' import * as path from 'path' import { AppConfig } from '@tarojs/taro' import * as wxTransformer from '@tarojs/transformer-wx' import { REG_SCRIPTS, REG_TYPESCRIPT, CONFIG_MAP, processTypeEnum, PARSE_AST_TYPE, BUILD_TYPES } from '.....
/** # @harmony-js/network This package provides a collection of apis to create messengers (HTTP, WebSocket) to connect to blockchain networks. ## Installation ``` npm install @harmony-js/network ``` ## Usage ```javascript const { Messenger, HttpProvider, WSProvider } = require('@harmony-js/network'); const { Chai...
<filename>scripts/cli.ts import { BuildConfig, copyFile, emptyDir, importPath, mkdir, stat } from './util'; import { build } from 'esbuild'; import { basename, join } from 'path'; import { getBanner, readdir, watcher, run } from './util'; import { readPackageJson, writePackageJson } from './package-json'; const PACKAG...
import { FormsModule } from '@angular/forms'; import { async, ComponentFixture, fakeAsync, TestBed, tick, flush } from '@angular/core/testing'; import { LocationResourceService } from '../../../openmrs-api/location-resource.service'; import { LocationFilterComponent } from './location-filter.component'; im...
class UrlNode { placeholder: boolean = true children: Map<string, UrlNode> = new Map() slugName: string | null = null restSlugName: string | null = null optionalRestSlugName: string | null = null insert(urlPath: string): void { this._insert(urlPath.split('/').filter(Boolean), [], false) } smoosh()...
<gh_stars>100-1000 import { regExAccents, regExAllLower, regExAllUpper, regExDanglingQuote, regExFirstUpper, regExSplitWords, regExSplitWords2, regExTrailingEndings, } from './textRegex'; describe('Validate textRegex', () => { // cspell:ignore CODE'ing test.each` text ...
import webpack from 'webpack'; import { LoaderConfOptions, WebpackConfiguration } from 'kkt'; import path from 'path'; import { transformationDefineString } from './uitls'; export * from 'kkt'; export type DefaultDefineType = { /** 权限校验 默认 true */ AUTH?: string | boolean; /** 路由 跳转前缀 默认 "/" */ BASE_NAME?: st...
<filename>frontend/packages/noobaa-storage-plugin/src/components/data-consumption-card/data-consumption-card-utils.ts<gh_stars>0 import * as _ from 'lodash'; import { Humanize, humanizeBinaryBytesWithoutB, humanizeNumber, HumanizeResult, } from '@console/internal/components/utils'; import { PrometheusResponse }...
import includes from 'lodash/includes'; import moment from 'moment'; import isEmpty from 'lodash/isEmpty'; import ibkr, {EventName, Stock} from '@stoqey/ib'; import {getRadomReqId} from '../_utils/text.utils'; import IBKRConnection from '../connection/IBKRConnection'; import {IbkrEvents, publishDataToTopic, IBKREVENTS}...
import { Injectable } from '@angular/core'; import { Platform } from '@ionic/angular'; import { BLE } from '@ionic-native/ble/ngx'; import { NextObserver, Observable, Subject, empty, from, interval, of } from 'rxjs'; import { distinct, distinctUntilChanged, filter, finalize, map, startWith, switchMap, tap } from 'rx...
<gh_stars>1-10 import fs from 'fs'; import path from 'path'; import type { IApi, IRoute } from '@umijs/types'; import { createDebug } from '@umijs/utils'; import getTheme from '../../../theme/loader'; import { getDemoRouteName } from '../../../theme/hooks/useDemoUrl'; import { decodeImportRequireWithAutoDynamic, is...
import * as $ from 'jquery' import * as moment from 'moment' import * as exportHooks from './exports' import { mergeOptions, globalDefaults, englishDefaults } from './options' import { stripHtmlEntities } from './util' export const localeOptionHash = {}; (exportHooks as any).locales = localeOptionHash // NOTE: can't...
import * as jsonMap from 'json-source-map'; import { GLTF2 } from "./GLTF2"; import { getBuffer } from 'gltf-import-export'; export const ComponentTypeToBytesPerElement = { 5120: Int8Array.BYTES_PER_ELEMENT, 5121: Uint8Array.BYTES_PER_ELEMENT, 5122: Int16Array.BYTES_PER_ELEMENT, 5123: Uint16Array.BYTES...
<filename>source/modules/CryptographicMessageSyntax/ExtendedCertificateInfo.ta.ts /* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { Certifica...
<reponame>ishiiyuki/RhodoniteTS import {EnumClass, EnumIO, _from, _fromString} from '../misc/EnumIO'; import {TypedArray, Byte, TypedArrayConstructor} from '../../types/CommonTypes'; export interface ComponentTypeEnum extends EnumIO { getSizeInBytes(): Byte; isFloatingPoint(): boolean; isInteger(): boolean; } c...
import L from "lodash"; import path from "upath"; import { ChecksumBundle, ImageBundle } from "../api"; import { logger } from "../deps"; import { FixImportContext } from "../utils/code-utils"; import { getOrAddProjectConfig, getOrAddProjectLock, PlasmicContext, } from "../utils/config-utils"; import { defaultP...
import { ExecutorService } from './executor.service'; import { Service } from './decorators/executor.service.decorator'; import { Method } from './decorators/executor.method.decorator'; @Service({ name: 'simple' }) class SimpleTestEndpoint { @Method({ name: 'test' }) public callableTestMethod(a: string = '', ...
<gh_stars>0 import { AzureMember } from '@fluidframework/azure-client'; import { IFluidContainer, ISharedMap, SharedMap } from 'fluid-framework'; import { NoteData, Position } from './Types'; const c_NoteIdPrefix = 'noteId_'; const c_PositionPrefix = 'position_'; const c_AuthorPrefix = 'author_'; const c_LastEditedPre...
import express, { Request, Response } from 'express'; import { asyncWrapper } from '../utils/asyncWrapper'; import { TransactionService } from '../../domain/transaction'; // import { TransactionRepository } from '../../domain'; import { UserKYCService } from './../../domain/user_kyc' import UserKYC from './../../data/d...
import React, { useCallback, useEffect } from 'react' import { IDropdownOption } from 'office-ui-fabric-react' import { AppActions, StateDispatch } from 'states/stateProvider/reducer' import { calculateCycles } from 'services/remote/wallets' import { Message, MAX_DECIMAL_DIGITS } from 'utils/const' import { verifyAdd...
<reponame>sherin/owid-grapher import glob = require("glob") import fs = require("fs-extra") const countryISOMapping = { AF: "AFG", AX: "ALA", AL: "ALB", DZ: "DZA", AS: "ASM", AD: "AND", AO: "AGO", AI: "AIA", AQ: "ATA", AG: "ATG", AR: "ARG", AM: "ARM", AW: "ABW", ...
<reponame>blkmajik/hyperglass<gh_stars>100-1000 import { useCallback, useMemo } from 'react'; import { useToken } from '@chakra-ui/react'; import { mergeWith } from '@chakra-ui/utils'; import { useOpposingColor } from '~/hooks'; import { useColorValue, useColorToken, useMobile } from '~/context'; import { useSelectCont...
<filename>src/app/routes/project/services/drag-upload/drag-upload.service.ts /* * 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.o...
<filename>src/config/express.ts import * as expressMiddlewareSession from "../middleware/expressSession"; import * as viewRendering from "../view_rendering/view_rendering"; import bodyParser from "body-parser"; import compression from "compression"; import { debuglog } from "util"; import express from "express"; import...
import PropTypes from "prop-types"; import React, { ReactNode } from "react"; import { getCols, helpers, prefixStatOpp } from "../util"; import useTitleBar from "../hooks/useTitleBar"; import { DataTable, MarginOfVictory } from "../components"; import type { View } from "../../common/types"; const legendSquare = (clas...
import React, { Component } from 'react'; import { fabric } from 'fabric'; import uuid from 'uuid/v4'; import ResizeObserver from 'resize-observer-polyfill'; import union from 'lodash/union'; import { Handler } from './handlers'; import { HandlerOptions } from './handlers/Handler'; import { FabricCanvas } from...
<filename>src/core/structures/PDFOutlines.ts import PDFDict, { DictMap } from 'src/core/objects/PDFDict'; import PDFName from 'src/core/objects/PDFName'; import PDFNumber from 'src/core/objects/PDFNumber'; import PDFString from 'src/core/objects/PDFString'; import PDFRef from 'src/core/objects/PDFRef'; import PDFContex...
<reponame>petedavisdev/vitepress<filename>src/node/build/bundle.ts import path from 'path' import slash from 'slash' import fs from 'fs-extra' import { APP_PATH, createResolver, SITE_DATA_REQUEST_PATH } from '../resolver' import { BuildOptions } from './build' import { resolveUserConfig, SiteConfig } from '../config' i...
<reponame>cool-little-fish/rollup<filename>src/utils/PluginContext.ts<gh_stars>0 import { version as rollupVersion } from 'package.json'; import type Graph from '../Graph'; import type { NormalizedInputOptions, Plugin, PluginCache, PluginContext, SerializablePluginCache } from '../rollup/types'; import type { File...
<filename>sources/code/renderer/preload/docs.ts import { marked } from "marked" import { sanitize } from "dompurify"; import { ipcRenderer } from "electron"; import { basename, relative, resolve } from "path"; import { existsSync, readFileSync } from "fs"; import { pathToFileURL, fileURLToPath } from "url"; import { tr...
<reponame>maggie0002/balena-cli<filename>automation/utils.ts /** * @license * Copyright 2019-2020 Balena 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....
<filename>2019/CVE-2019-1020010/vultarget/web/source/src/client/app/common/scripts/note-mixin.ts import { parse } from '../../../../mfm/parse'; import { sum, unique } from '../../../../prelude/array'; import shouldMuteNote from './should-mute-note'; import MkNoteMenu from '../views/components/note-menu.vue'; import MkR...
// Styles import './styles/table.scss' // Utils import { ref, computed, watch } from 'vue' import { defineComponent, convertToUnit, wrapInArray, getObjectValueByPath, useRender, downloadCSV, throttle } from '../../utils' // Composables import { makePaperProps, usePaper } from '../../composables/paper'...
<reponame>sbvhev/ERC20-contract import { PremiaOption, TestErc20, WETH9 } from '../../contractsTyped'; import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/dist/src/signer-with-address'; import { BigNumber, BigNumberish } from 'ethers'; import { ONE_WEEK, TEST_TOKEN_DECIMALS, ZERO_ADDRESS } from './constants'; ...
import { Controller, Post, Body, BadRequestException, ForbiddenException, Get, NotFoundException, Param, } from '@nestjs/common'; import AppGateway from '../app/app.gateway'; import OrderService from './order.service'; import Order from '../entity/Order'; import { GetUser, Authorize, ForRoles } from '../auth/auth.dec...
<gh_stars>0 /** * * @param blob */ export async function blobToBase64(blob: Blob) { const imgFile = blobToFile(blob); return await fileToBase64(imgFile); } export function blobToFile(theBlob: Blob, fileName: string = 'new_image'): File { const imgFile: File = new File([theBlob], 'new_image', { lastModified: Date...
// DOM Utilities for working with Node Elements and its structure import * as sanitize from '../lib/modules/sanitize' // Checks whether the current node has a parent export function hasParentNode(node: Element): boolean { return ( node.parentElement && node.parentElement.classList.contains('children') && ...
<gh_stars>0 import { Observable, ComputedObservable, ObservableArray } from "@alumis/observables"; import { Component, IAttributes, createNode, appendDispose, globalAttrHandlers, bindAttribute } from "@alumis/observables-dom"; import { r } from "@alumis/observables-i18n"; export class Alert extends Component<HTMLDivEl...
/** * Copyright 2019 IBM Corp. 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
import fetch from 'node-fetch'; import { threeDSv21ChallengeDccNok } from '../../fixtures/cards'; import { createRedsysAPI, TRANSACTION_TYPES, randomTransactionId, SANDBOX_URLS, create3DSv2ChallengeForm } from 'redsys-easy'; import type { RestIniciaPeticionOutputParams, RestTrataPeticionOutputParams } fr...
import Media from '../entities/Media' import filterSongs from '../utils/filter-songs' import * as types from '../constants/ActionTypes' import IndexService from '../services/Search/IndexService' type State = { rows: { [key: string]: Media }, artists: any, albums: any, albumsByArtist: any, songsByAlbum: any, ...
<reponame>adam-sv/arc import type { ICoords } from '@adam-sv/arc'; export interface IGeometry { // vector math addVector: (vec1: ICoords, vec2: ICoords, scale1?: number, scale2?: number) => ICoords; getDistanceBetweenCoords: (coords1: ICoords, coords2: ICoords) => number; getMagnitude: (vec1: ICoords) => numbe...
<filename>packages/jupyterlab-lsp/src/tokens.ts import { IWidgetTracker } from '@jupyterlab/apputils'; import { CodeEditor } from '@jupyterlab/codeeditor'; import { IDocumentWidget } from '@jupyterlab/docregistry'; import { ServerConnection } from '@jupyterlab/services'; import { Token } from '@lumino/coreutils'; impor...
import { TranformerTransformSchemaStepContextProvider } from '@aws-amplify/graphql-transformer-interfaces'; import { EnumTypeDefinitionNode, FieldDefinitionNode, InputObjectTypeDefinitionNode, ObjectTypeDefinitionNode, TypeDefinitionNode } from 'graphql'; import { DEFAULT_SCALARS, makeArgument, makeDire...
<reponame>lieta96/website<filename>src/lib/api.ts import fs from 'fs'; import client, { postClient, previewClient } from './sanity'; import { CMYK, Post, Doc, Event, Mentor, Topic, ReactGroup, Person, FeaturedCards, CMYKParticipant, Settings, } from './types'; import { createSlug } from './helper...
<gh_stars>0 /* eslint-disable no-param-reassign */ /* eslint-disable no-console */ // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-nocheck import glob from 'glob' import weaviate from 'weaviate-client' import wiki from 'wikipedia' import { makeCompletionRequest } from '../../utils/MakeCompletionR...
<filename>packages/webgl/src/multipass.ts import type { IObjectOf } from "@thi.ng/api"; import { assert } from "@thi.ng/errors/assert"; import { assign } from "@thi.ng/shader-ast/ast/assign"; import { defMain } from "@thi.ng/shader-ast/ast/function"; import { INT0, ivec2 } from "@thi.ng/shader-ast/ast/lit"; import { $x...
#!/usr/bin/env node import {registeredTasks, Task, Tasks} from './casker'; import {ChildProcess, spawn} from 'child_process'; import * as treeKill from 'tree-kill'; import {join, delimiter} from 'path'; import {logger, createTaskLogger, Logger} from './logger'; import {checkUpToDate} from './upToDate'; const packageJs...
<filename>src/lib/parent-process.ts<gh_stars>1-10 import { EventEmitter } from 'events'; import { getModules } from 'fontoxpath-module-loader'; import fs from 'fs/promises'; import glob from 'glob'; import npmlog from 'npmlog'; import path from 'path'; import { promisify } from 'util'; import { evaluateUpdatingExpressi...
import { persianChar, englishNumber, persianNumber, arabicNumber, decodeURL, switchKey, digitsToWords, halfSpace, isValidBankCard, isInteger, security, toNumber, toDecimalPrecision, toCurrency, toFixed, floor, } from "./core"; import NativeString from "./NativeString"; /** StarkString ...
import { ITask, ITaskFactory, ITaskModule, DaemonStatus, Reason, IAPI, TaskStatus } from '@src/types.js' import { exitProcess } from '@utils/exit-process.js' import { parseConcurrency } from '@utils/parse-concurrency.js' import { isString, isntNull } from '@blackglory/types' import { find } from 'iterable-operator' imp...
<reponame>Tezzylong/vscode-codeql import 'vscode-test'; import 'mocha'; import * as chaiAsPromised from 'chai-as-promised'; import * as sinon from 'sinon'; import * as chai from 'chai'; import { window } from 'vscode'; import * as pq from 'proxyquire'; const proxyquire = pq.noPreserveCache(); chai.use(chaiAsPromised);...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------...
// <copyright file="upvote-idea-dialog.tsx" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> import * as React from "react"; import { Button, Flex, Text, ItemLayout, Image, Provider, Label, Loader } from "@fluentui/react-northstar"; import { CloseIcon } from "@fluentui/react-icons...
<gh_stars>0 import { ClassBody, ClassDeclaration, Declaration, DeclareClass, DeclareFunction, DeclareInterface, DeclareModule, DeclareTypeAlias, Flow, Identifier, ObjectTypeAnnotation, Statement, StringLiteral, TSDeclareFunction, TSInterfaceDeclaration, TSModuleDeclaration, TSTypeAlias...
import { Environment, Environments, EnvironmentSchema, Export, HighestMigrationId, Migrations } from '@mockoon/commons'; import axios from 'axios'; import { promises as fs } from 'fs'; import { prompt } from 'inquirer'; import { readFile as readJSONFile } from 'jsonfile'; import * as mkdirp from 'mkdirp'; i...
import React, { createContext, Dispatch, FC, Reducer, ReducerState, useCallback, useContext, useEffect, useReducer, } from "react"; import { useDebounce, usePreviousDistinct, useUpdateEffect } from "react-use"; import { Action, ITakenSemester } from "../../../interfaces"; import { TrackingContext } f...
import { executeQuery, jsonParseSafe, SQLTree, toAst } from '@keyrier/core' import parse from 'csv-parse/lib/sync' import EasyTable from 'easy-table' import * as fs from 'fs' import { Parser } from 'json2csv' import meow from 'meow' import updateNotifier from 'update-notifier' import xlsx from 'xlsx' import { name, ve...
<reponame>codelios/dartsass-plugin-common<filename>src/native.ts // Copyright (c) 2019 MalvaHQ // // This software is released under the MIT License. // https://opensource.org/licenses/MIT "use strict"; import { CompilerConfig, SASSOutputFormat } from "./config"; import { IDocument } from "./document"; import { Log } ...
import React, { useRef, useEffect, ReactNode, useMemo, useContext, forwardRef } from 'react' import { useXR } from './XR' import { Object3D, Group, Matrix4, Raycaster, Intersection, XRHandedness } from 'three' import { useFrame } from '@react-three/fiber' import { XRController } from './XRController' import { ObjectsSt...
<gh_stars>0 /* * 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...
import { YamashiroClient, Command, Context, EmbedBuilder } from '../../Structures'; import { DiscordEmoji, Colors } from '../../Utils/Constants'; import { get } from 'wumpfetch'; interface ShipgirlResult { //* useless shit that I dont wanna deal or use statusCode: number; statusMessage: string; message...
import Logger from 'src/logger' import chainIdToSlug from 'src/utils/chainIdToSlug' import getBondedWithdrawals from 'src/theGraph/getBondedWithdrawals' import getTransferSents from 'src/theGraph/getTransferSents' import wait from 'src/utils/wait' import { Chain } from 'src/constants' import { Notifier } from 'src/noti...
import {Message as MessageImpl} from '../chat/common'; import core from '../chat/core'; import {Conversation, Logs as Logging, Settings} from '../chat/interfaces'; import l from '../chat/localize'; declare global { const NativeFile: { read(name: string): Promise<string | undefined> write(name: stri...
import { Pool, PoolClient } from "pg"; import { createPostGraphileSchema, withPostGraphileContext, PostGraphileOptions, } from "postgraphile"; import { Request, Response } from "express"; import { graphql, GraphQLSchema, ExecutionResult } from "graphql"; import { getPostGraphileOptions } from "../src/server/middl...
<gh_stars>0 import { lodashCloneDeep, lodashGet, lodashSet, lodashUnset, lodashHas, isString, isFunction, debounce, } from './lodash' import { ValidResult, ValidatorFn, Rule, Rules, nameValidators, FormStoreConstructor } from './types' import { validator } from './rules' function remove<T...
<filename>src/swipe-event-listener.ts export interface Options { swipeSensitivity?: number; isSwipeUpDesired?: boolean; isSwipeDownDesired?: boolean; isSwipeLeftDesired?: boolean; isSwipeRightDesired?: boolean; listenForTouchEvents?: boolean; listenForMouseEvents?: boolean; swipeArea: HTMLElement; } in...
<reponame>feltech/oni const backgroundColor = "black" const foregroundColor = "white" export interface IWebGLAtlasOptions { fontFamily: string fontSize: string lineHeightInPixels: number linePaddingInPixels: number glyphPaddingInPixels: number devicePixelRatio: number offsetGlyphVariantCoun...
// import React, { useRef, useContext, useEffect } from 'react' import { TreeNode, ClosestPosition, CursorStatus, DragMoveEvent, } from '@designable/core' import { isFn } from '@designable/shared' import { autorun } from '@formily/reactive' import { observer } from '@formily/reactive-vue' import { usePrefix, ...
<filename>example/src/playcanvas/batching_dynamic.ts<gh_stars>1-10 import { Panel, Group, vlayout, layoutConfig, Gravity, navbar, stack, } from "doric"; import { dangleView, DangleWebGLRenderingContext, vsync } from "dangle"; const global = new Function("return this")(); global.window = { devicePixelRa...
import React, { useEffect, useState, useCallback, useMemo, useRef, } from 'react'; import { HMSConfig } from '@100mslive/hms-video'; import { HMSRoomState, selectIsLocalAudioEnabled, selectIsLocalVideoDisplayEnabled, selectLocalMediaSettings, selectLocalPeer, selectRoomState, } from '@100mslive/hm...
import { Node, Types } from '../types' import { jsonLdContext, jsonLdTermName, jsonLdTermUrl, jsonLdUrl, } from './jsonld' import { nodeType } from './nodeType' import { isPrimitive } from './guards' /** * Get the URL used in Microdata attributes. * * This is used to normalize the versioned URL from the * ...