text stringlengths 3.08k 15.5k |
|---|
import * as aws from 'aws-sdk';
import * as fs from 'fs-extra';
import * as path from 'path';
import * as which from 'which';
import CloudFormation from 'aws-sdk/clients/cloudformation';
import _ from 'lodash';
import { JSONUtilities, stateManager } from 'amplify-cli-core';
import {
createNewProjectDir,
deleteProje... |
/*
BSD 3-Clause License
Copyright (c) 2020, <NAME>
All rights reserved.
*/
import { error_utils } from "./Errors_Utils";
interface Rules {
IssuesNeedLabel: boolean;
IssuesNeedAssignee: boolean;
IssueMinimalBody: number;
PullNeedToFix: boolean;
PullNeedAssigneeWIP: boolean;
AssignedIssueNeedMstone: boolean;
... |
import { Device } from "./device.js"
import { Element } from "./types.js"
type Writer = (bufferOffset: number, data: DataView, dataOffset: number, size: number) => Promise<Buffer>
type Reader = (bufferOffset: number, data: DataView, dataOffset: number, size: number) => Promise<DataView>
export class Buffer {
pri... |
<gh_stars>0
/**
* Copyright (c) Hathor Labs and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import 'source-map-support/register';
import { v4 as uuidv4 } from 'uuid';
import Joi from 'joi';
import { ApiError } fr... |
<reponame>nullpub/hkts
import type * as TC from "../type_classes.ts";
import type { Kind, URIS } from "../hkt.ts";
import type { Predicate, Refinement } from "../types.ts";
import type { Either } from "../either.ts";
import type { Iso } from "./iso.ts";
import type { Prism } from "./prism.ts";
import type { Traversal ... |
import {
Button,
Center,
Drawer,
DrawerBody,
DrawerContent,
DrawerFooter,
DrawerHeader,
Heading,
HStack,
ListItem,
Text,
UnorderedList,
} from "@chakra-ui/react";
import Link from "next/link";
import { useRouter } from "next/router";
import { FC, MouseEvent, ReactNode, useRef } from "react";
le... |
// Copyright (c) 2021 Microsoft
//
// 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 i... |
import { Vector as SATVector } from "sat";
import { Line } from "./bodies/line";
import { Circle } from "./bodies/circle";
import { PotentialVector, Vector } from "./model";
import { Polygon } from "./bodies/polygon";
export function createEllipse(
radiusX: number,
radiusY: number = radiusX,
step = 1
): SATVecto... |
import { Component, HostBinding, Input } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { ApiSubscription } from '../../../api-sdk/model/ApiSubscription';
import { animate, style, transition, trigger } from '@angular/animations';
import { Country } from '../../../api-sdk/model/Country';
impo... |
/**
* This file shows how to create a custom component.
*
* Get the base component class by referencing Formio.Components.components map.
*/
import {Components} from 'formiojs';
const FieldComponent = (Components as any).components.field;
import editForm from './NpiRegistry.form';
import {log} from 'util';
/**
*... |
// database_multisig.ts
/**
* Multi signature model definition
*
* @module database_multisig
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
import { v4 as uuidv4 } from "uuid";
import { Sequelize, DataTypes } from "sequelize";
import consola from "consola";
// FIXME don't depend another model, move t... |
import { isUndefined } from '@vidstack/foundation';
import { createHash } from 'crypto';
import kleur from 'kleur';
import LRUCache from 'lru-cache';
import type {
ClassDeclaration,
ClassExpression,
Program,
SourceFile,
TypeChecker,
} from 'typescript';
import { formatPluginName, log, LogLevel, logWithTime }... |
import type { GetServerSideProps, InferGetServerSidePropsType } from 'next';
import { NavGen } from '../../lib/NavGen';
import Navigator from '../../components/Navigator';
import QuestionTable from '../../components/QuestionTable';
import QuestionViewer from '../../components/QuestionViewer';
import { useRouter } from ... |
/**
* @file index
* @author <NAME> <<EMAIL>>
* @license MIT
* @copyright 2020-2021
*/
import {
makeSequence,
getSequenceType,
TSequence,
} from './sequence/sequence';
import { DEBUG, SEQUENCE_TYPE, getAlignmentParameters, DEFAULT_GAP_CHAR } from './align/params';
import { pairwiseAlignment } from './a... |
/*
* 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
* distribut... |
import { Filter as EdaFilter, StringSetFilter } from '../types/filter';
import {
Field,
FieldTreeNode,
Filter as WdkFilter,
} from '@veupathdb/wdk-client/lib/Components/AttributeFilter/Types';
import { DistributionResponse } from '../api/SubsettingClient';
import { StudyEntity, VariableTreeNode } from '../types/s... |
/*
* 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 ... |
import React, {
useState,
useEffect,
useContext,
useMemo,
useCallback,
} from "react";
import { ethers } from "ethers";
import { Line } from "react-chartjs-2";
import { ChartData, ChartOptions } from "chart.js";
import { Transition } from "@headlessui/react";
import { FontAwesomeIcon } from "@fortawesome/reac... |
<gh_stars>0
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
HostListener,
Input,
OnDestroy,
OnInit,
ViewChild,
} from '@angular/core';
import { SkyMediaQueryService } from '@skyux/core';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { ... |
import {
ButtonBar,
ColumnDefinition,
CreateButton,
dateCell,
DeleteButton,
FilterAttribute,
ListPageLayout,
QueryPage,
stringArrayCell
} from "common-ui";
import { PersistedResource } from "kitsu";
import Link from "next/link";
import { Footer, GroupSelectField, Head, Nav } from "../../../components"... |
import { AfterViewInit, Component, EventEmitter, Output, OnDestroy } from '@angular/core';
import { session } from '../utils/session';
import * as FileSaver from 'file-saver';
import * as moment from 'moment';
import { CommService } from '../service/comm.service';
import { designerStorage } from '../utils/designer.stor... |
'use strict'
import request = require('request-promise')
import _ = require('lodash')
const base_url = 'https://a.wunderlist.com/api/v1'
const url_regex = /https?:\/\/[\w\.\/\&\?@=#-\d]*/
const url_replacement = '[link removed]'
type fetch_by = 'task' | 'list'
type fetch_level = 'task' | 'subtask'
type sortable = Lis... |
<reponame>cailloumajor/line-dashboard<filename>src/layouts/__tests__/LineInterfaceLayout.spec.ts
import { mount } from "@cypress/vue"
import { mande } from "mande"
import { Response } from "miragejs"
import { z } from "zod"
import errorRedirectComposable from "composables/error-redirect"
import { makeServer } from "sr... |
<reponame>custom-lib/custom-react-flowchart
import { isEqual } from 'lodash-es';
interface NodeData {
id: string;
next?: string[];
pre?: string[];
[others: string]: any;
}
export const findHeadNodes = (data: Record<string, NodeData>) => {
const headNodes: Array<NodeData> = [];
for (const nodeI... |
import * as fs from 'fs-extra'
import * as path from 'path'
import generate from './commands/generate'
import { ICommand, IRootCommand, ISchema, ILog } from './types'
import commands from './commands/index'
import { absolute } from './common'
const fuzzy = require('fuzzy')
const inquirer = require('inquirer')
inquir... |
<filename>src/v3.ts
import { V2, v2 } from "./v2";
import { V4, v4 } from "./v4";
export type V3 = [number, number, number, 'V3']; // number[] | Float64Array | Float32Array;
export const v3 = {
create(x = 0, y = 0, z = 0): V3 {
return [x, y, z, 'V3'];
},
clone(result: V3, a: V3) {
result[0] = a[0];
... |
<filename>src/js/router/lib.ts
// Source: https://github.com/jgallen23/routie
// Modified (a lot)
type Path = string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type Params = any;
type Keys = { name: string; optional: boolean; }[];
export type HandlerFn = (args: Params) => void;
const pathToRegexp... |
<reponame>awesome-archive/purview<filename>src/to_html.ts
import { PNodeRegular } from "./types/ws"
const VOID_TAGS: Set<string> = new Set([
"area",
"base",
"br",
"col",
"embed",
"hr",
"img",
"input",
"link",
"meta",
"param",
"source",
"track",
"wbr",
])
export function toHTML(pNode: PNode... |
const DEFAULT_KEY_FIELDNAME = 'ref'
function normalizeValue(e: HTMLInputElement, context: any) {
let value
switch (e.type) {
case 'select-multiple':
value = getMultiSelect(e)
break
case 'checkbox':
// @ts-ignore
const siblings = e.parentElement.p... |
import './index.css'
import React, { useEffect, useState } from 'react'
import { render } from 'react-dom'
import TextField from '@contentful/forma-36-react-components/dist/components/TextField'
import TableCell from '@contentful/forma-36-react-components/dist/components/Table/TableCell'
import TableHead from '@conten... |
import * as core from "@actions/core"
import { buildExec } from "./exec"
import type { Exec } from "./exec"
import type { Inputs } from "./inputs"
interface Params {
readonly workingDirectory: Inputs["workingDirectory"]
readonly shell: Inputs["shell"]
readonly defaultBranch: string
readonly baseBranch: string
... |
import React from "react";
import { makeStyles, createStyles, Theme } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import { useQuery, useMutation } from "@apollo/react-hooks";
import DeleteIcon from "@material-ui/icons/Delete";
import {
Typography,
Button,
CardHeader,
Car... |
<gh_stars>0
/**
* @author <NAME> http://drewnoakes.com
*/
/// <reference path="../../libs/lodash.d.ts" />
/// <reference path="../../libs/smoothie.d.ts" />
import constants = require('constants');
import data = require('data');
import control = require('control');
import state = require('state');
import Module = re... |
// Would be nice to work on this file in the future, and
// use the library instead of having this kind of duplication
import React from 'react';
import { HTMLAttributes, useCallback, useRef } from 'react';
import cc from 'classcat';
import {
Node,
Rect,
Box,
useStoreState,
getRectOfNodes,
useZoomPanHelper... |
<gh_stars>1-10
import {Particle} from "./Particle";
import {Recta, Vec2, Color32_ARGB, Color4} from "@highduck/math";
import {AssetRef, ResourceType} from "../../util/Resources";
import {Sprite} from "../Sprite";
import {Font} from "../../rtfont/Font";
import {RndFX} from "./ParticlesRandom";
export const enum Particl... |
import { User } from 'discord.js';
import { CommandStore, KlasaMessage } from 'klasa';
import { ModerationManagerEntry } from './ModerationManagerEntry';
import { SkyraCommand, SkyraCommandOptions } from './SkyraCommand';
import { GuildSettings } from '../types/settings/GuildSettings';
import { UserSettings } from '../... |
import stringArgv from 'string-argv'
import { Task, Pipeline, EnvironmentVariables } from '@garyos/kernel'
export const PIPE_OPERATORS = ['|', '||', '&', '&&']
export const INPUT_REDIRECTION = ['<', '<<']
export const OUTPUT_REDIRECTION = ['>', '>>']
export const INPUT_OUTPUT_REDIRECTION = [...INPUT_REDIRECTION, ...... |
<filename>src/gatekeeper.ts
import * as k8s from 'vscode-kubernetes-tools-api';
import { Errorable } from "./utils/errorable";
import { JSONSchema } from './authoring/associations';
// * A ConstraintTemplate contains:
// + spec
// + crd
// (normal CRD stuff like names and validation)
// + targets
// ... |
<gh_stars>100-1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as ACData from "adaptivecards-templating";
import * as Adaptive from "adaptivecards";
import { CatalogueEntry, SampleCatalogue } from "./catalogue";
import { Dialog } from "./dialog";
export int... |
<filename>lib/SparqlBenchmarkRunner.ts
import { SparqlEndpointFetcher } from 'fetch-sparql-endpoint';
import type { IBenchmarkResults } from './IBenchmarkResults';
/**
* Executes query sets against a SPARQL endpoint.
*/
export class SparqlBenchmarkRunner {
private readonly endpoint: string;
private readonly quer... |
/*
* Copyright (c) 2020 Universidad de Pinar del Río "<NAME>"
* All rights reserved.
*/
import { Component, OnInit, Input } from '@angular/core';
import { MatSnackBar, MatDialog } from '@angular/material';
import { MetadataService, MessageHandler, StatusCode, Environment } from '../../core/public-api';
import {... |
<filename>src/set.ts
import { Browser, ElementHandle, Page } from 'puppeteer'
import { industries, Industry } from './configuration/industries'
import { defaultOptions } from './puppeteer-config'
import { getElementValue, handleGetElements } from './utilities'
type StockIndexing = 'SET50' | 'SET100' | 'SETHD' | 'MAI'
... |
<filename>src/common/base.common.ts
/**
* 深度复制(采用JSON解析方式)
* @param obj 复制对象
*/
export function deepCopyJSON <T> (obj: T) : T {
return JSON.parse(
JSON.stringify(obj)
)
}
/**
* 深度复制(采用递归式)
* @param obj 复制对象
*/
export function deepCopy <T> (obj: T) : T {
const newObj = (Array.isArray(obj) ? ... |
import {css} from '@emotion/css';
import _ from 'lodash';
import React, {useState} from 'react';
import {SketchPicker} from 'react-color';
import rainbowEmoji from '../../../assets/accent-colors/any.svg';
import blueEmoji from '../../../assets/accent-colors/blue.svg';
import greenEmoji from '../../../assets/accent-col... |
<reponame>Jinjiang/translation-replacement<filename>src/parser/types.ts<gh_stars>1-10
// Char
import { Validation } from '../report'
export enum CharType {
EMPTY = 'empty',
SPACE = 'space',
CONTENT_HALF = 'content-half',
CONTENT_FULL = 'content-full',
PUNCTUATION_HALF = 'punctuation-half',
PUNCTUATION_FUL... |
import axios from "axios";
import qs from "qs";
import type {
AxiosInstance,
AxiosRequestConfig,
AxiosRequestHeaders,
AxiosResponse,
ResponseType,
} from "axios";
export type AxleRequestConfig = AxiosRequestConfig & {
exceptionMessage?: any;
};
export type FetchHelper = <T = any, R = AxiosResponse<T>>(
u... |
<gh_stars>0
/*
Copyright 2020 JamJar Authors
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 writin... |
import React, { useState, useEffect, useCallback } from 'react';
import { connect } from 'react-redux';
import { useDispatch } from 'react-redux';
import { v4 as uuidv4 } from 'uuid';
//Helper
import History from '../helper/history';
import { closeModalOnWrapperClick } from '../helper/closeModalOnWrapperClick';
//Com... |
/**
* Port of SLATEC function DPCHST
* @param arg1
* @param arg2
* @returns 1 if arg1 is the same sign as arg2, 0 if either of them is zero, -1 if arg1 is a different sign from arg2
*/
export function dpchst(arg1: number, arg2: number) {
if (arg1 === 0 || arg2 === 0) {
return 0;
}
if (arg1 > 0)... |
import { MockContract, smock } from "@defi-wonderland/smock";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/dist/src/signers";
import { expect } from "chai";
import { parseUnits } from "ethers/lib/utils";
import hre, { ethers } from "hardhat";
import { EXODIA_ROLES_DID } from "../../../../deploy/38_depl... |
<reponame>Srikanta-ku-Mishra/Line-project
import * as THREE from 'three'
import { Line } from 'three'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
// import { threadId } from 'worker_threads'
import { GUI } from 'dat.gui'
//#region Scene
const scene = new THREE.Scene()
const camera = new... |
<reponame>akashic-games/akashic-animation
import * as asa from "@akashic-extension/akashic-animation";
const ASA_PJ_NAME = "pj_support_image_inverted";
type Direction = "right" | "left";
class Runner {
actor: asa.Actor;
collisionRect: g.FilledRect;
direction: Direction;
isInvertedStar: boolean = false;
isInvert... |
<filename>src/controllers/TaskScheduleController.ts
import { Request, Response, NextFunction } from "express";
import { FilterQuery, Query, Types } from "mongoose";
import { TaskEvent, TaskEventDispatch } from "../data/TaskEvents";
import { TaskTypeData } from "../data/TaskTypeData";
import { Logger } from "../infastru... |
import * as _ from 'lodash';
const duo = require('@duosecurity/duo_api');
const waitUntil = require('wait-until');
const okta = require('../client/okta-client');
const OKTA_URL = process.env.OKTA_URL;
const OKTA_TOKEN = process.env.OKTA_TOKEN;
const DUO_IKEY = process.env.DUO_IKEY;
const DUO_SKEY = process.env.DUO_SK... |
'use strict';
import { Video, VideoShow } from '../../api';
import { CatalogEpisodeReference } from './catalog';
import path from 'path';
import filenamify from 'filenamify';
export interface TemplateOpts {
show?: VideoShow|void;
video?: Video|void;
episode?: CatalogEpisodeReference|void;
quality?: string|vo... |
import fs from 'fs-extra'
import { BadPathError, InvalidInputError, DoesNotExist } from '../errors'
import Path from 'path'
import { ListFilesResult, PerformWriteArgs, PerformDeleteArgs } from '../driverModel'
import { DriverStatics, DriverModel } from '../driverModel'
import { pipeline, logger } from '../utils'
expor... |
<reponame>KayDomrose/clocker<filename>src/classes/Server.ts
import { SERVER_USER, SERVERS_PATH, TEST_DOCKER_CONTAINER_PORT } from '../variables';
import { ProviderServerVars } from './BaseProvider';
import * as fs from 'fs';
import { readJson, readTfVars, writeJson, writeTfVars } from '../helpers/file';
import { AxiosR... |
<reponame>YikaiHu/data-transfer-hub
// Task Type Icons
import ICON_S3 from "../images/icon-s3.png";
import ICON_ECR from "../images/icon-ecr.png";
// import ICON_DYDB from "../images/icon-dydb.png";
// import ICON_MONGO from "../images/icon-mongo.png";
// import ICON_MYSQL from "../images/icon-mysql.png";
import STATU... |
/**
* @hidden
*/
import { Vec3 } from '../../core/math';
import { AfterStepCallback, BeforeStepCallback, BuiltInRigidBodyBase, BuiltInWorldBase,
IRaycastOptions, ITriggerEventType, ShapeBase } from '../api';
import { RaycastResult } from '../raycast-result';
import { getWrap } from '../util';
import { BuiltInBod... |
<filename>src/renderer/charts/ChartClass/Chart.ts
// Import LCJS
import {
synchronizeAxisIntervals,
translatePoint,
Dashboard,
ChartXY,
PointMarker,
UIBackground,
LineSeries,
UIPanel,
Axis,
Point,
SolidLine,
SolidFill,
ColorHEX,
UIButtonPicture,
UICheckBox,
ColorRGBA,
} from '@arction/lc... |
<reponame>sketch7/-ssv-ng2-command
import * as _ from "lodash";
import {
Component,
ChangeDetectionStrategy,
ChangeDetectorRef,
} from "@angular/core";
import { BehaviorSubject, timer, Observable } from "rxjs";
import { tap, filter, map, distinctUntilChanged } from "rxjs/operators";
import { CommandAsync } from "@ss... |
<reponame>Scipionh/angular-cli
import * as webpack from 'webpack';
import * as path from 'path';
import { GlobCopyWebpackPlugin } from '../plugins/glob-copy-webpack-plugin';
import { SuppressEntryChunksWebpackPlugin } from '../plugins/suppress-entry-chunks-webpack-plugin';
import { packageChunkSort } from '../plugins/p... |
<gh_stars>0
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Lic... |
<reponame>MikeOwino/avalanchejs<filename>src/apis/avm/basetx.ts
/**
* @packageDocumentation
* @module API-AVM-BaseTx
*/
import { Buffer } from "buffer/"
import BinTools from "../../utils/bintools"
import { AVMConstants } from "./constants"
import { TransferableOutput } from "./outputs"
import { TransferableInput } f... |
import { spawn, ChildProcess } from 'child_process';
import { ReadStream } from 'fs';
import { CancelablePromise } from "indexer-neon";
import { EventEmitter } from 'events';
import { Readable } from 'stream';
import { IRangeDefinition } from './transform.results';
import { CommonInterfaces } from '../../../interfaces/... |
import Head from 'next/head';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { ClockIcon, CalendarIcon, LocationMarkerIcon } from '@heroicons/react/solid';
import prisma from '../../lib/prisma';
import {collectPageParameters, telemetryEventTypes, useTelemetry} from "../../lib/telemetry";
... |
import { exec, execFile } from "child_process"
import { Component, Fragment } from "react"
import ActionFeedback from "./ActionFeedBack"
import { COPY_TYPE, LANGUAGE_LIST, RESULT_TYPE } from "./consts"
import { Action, ActionPanel, Clipboard, Color, Icon, List, Toast, showToast, getPreferenceValues } from "@raycast/api... |
import {
CHAIN_ID_BSC,
CHAIN_ID_ETH,
CHAIN_ID_SOLANA,
} from "@certusone/wormhole-sdk";
import { getAddress } from "@ethersproject/address";
import { Button, makeStyles, Typography } from "@material-ui/core";
import { VerifiedUser } from "@material-ui/icons";
import { useCallback, useMemo } from "react";
import {... |
import { cloneObject } from './cloneObject';
import { CssStyleCallbackMap, StringMap } from 'roosterjs-editor-types';
const HTML_TAG_REPLACEMENT: Record<string, string> = {
// Allowed tags
a: '*',
abbr: '*',
address: '*',
area: '*',
article: '*',
aside: '*',
b: '*',
bdi: '*',
bd... |
import * as _ from 'lodash';
import { formatDuration } from '@console/internal/components/utils/datetime';
import { K8sResourceKind } from '@console/internal/module/k8s';
interface Resources {
inputs?: Resource[];
outputs?: Resource[];
}
interface Resource {
name: string;
resource?: string;
from?: string[];... |
/* jshint node: true */
'use strict';
var Concentrate = require('concentrate'),
DChunks = require('../../dissolve-chunks'),
ru = DChunks().Rule();
var FoundPayload = require('./foundation'),
FuncPayload = require('./functional');
var zcl = {};
zcl.parse = function (zclBuf, clusterId, callback) {
var... |
import type { BscFile, BsDiagnostic } from './interfaces';
import * as assert from 'assert';
import chalk from 'chalk';
import type { Diagnostic } from 'vscode-languageserver';
import { createSandbox } from 'sinon';
import { expect } from 'chai';
import type { CodeActionShorthand } from './CodeActionUtil';
import { cod... |
import * as H from '@syndesis/history';
import * as React from 'react';
import {
getStep,
getSteps,
isEndStep,
isMiddleStep,
isStartStep,
requiresOutputDescribeDataShape,
toDataShapeKinds,
WithIntegrationHelpers,
} from '@syndesis/api';
import { DataShape, Integration, StepKind } from '@syndesis/models... |
<filename>packages/types/src/extrinsic/v4/ExtrinsicSignature.ts
// Copyright 2017-2021 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics';
import type { Add... |
import { FILE, RANGE, CHECKBOX,RADIO,BLANK } from './app.const'
export const BOOSTRAP_CLASS_CONFIG: { [key: string]: any } = {
defaultControl: 'form-control',
fileControl: 'form-control-file',
readOnlyPlainText: 'form-control-plaintext',
rangeControl: 'form-control-range',
checkBoxAndRadioControl:... |
<filename>src/app/services/actions/query-action-creator-util.ts
import { InteractionType } from '@azure/msal-browser';
import {
AuthenticationHandlerOptions,
GraphRequest,
ResponseType
} from '@microsoft/microsoft-graph-client';
import {
AuthCodeMSALBrowserAuthenticationProviderOptions
} from '@microsoft/micros... |
// TODO: consistent names for these interfaces
interface RobinhoodOptions {
username?: string;
password?: string;
token?: string;
mfaCode?: string;
}
interface EarningsOptions {
instrument?: string;
symbol?: string;
range?: number;
}
interface OrdersOptions {
updatedAt: string;
in... |
export enum VCXCode {
SUCCESS = 0,
INDY_WALLET_RECORD_NOT_FOUND = 212,
INDY_DUPLICATE_WALLET_RECORD = 213,
UNKNOWN_ERROR = 1001,
CONNECTION_ERROR = 1002,
INVALID_CONNECTION_HANDLE = 1003,
INVALID_CONFIGURATION = 1004,
NOT_READY = 1005,
NO_ENDPOINT = 1006,
INVALID_OPTION = 1007,
... |
<gh_stars>1-10
import { Event, Command, Message, MessageAttributes, MessageAttributeMap } from '@node-ts/bus-messages'
import { Transport, TransportMessage, HandlerRegistry } from '@node-ts/bus-core'
import { Connection, Channel, Message as RabbitMqMessage } from 'amqplib'
import { inject, injectable } from 'inversify'... |
import * as bip66 from './bip66';
import { OPS, REVERSE_OPS } from './ops';
import { Stack } from './payments';
import * as pushdata from './push_data';
import * as scriptNumber from './script_number';
import * as scriptSignature from './script_signature';
import { Transaction } from './transaction';
import * as types ... |
<gh_stars>0
/*
MIT License
Copyright (c) 2020 Looker Data Sciences, Inc.
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... |
import {defineMIME, defineMode} from '../index';
function wordRegexp(words) {
return new RegExp('^((' + words.join(')|(') + '))\\b');
}
const builtinArray = [
'Clamp',
'Constructor',
'EnforceRange',
'Exposed',
'ImplicitThis',
'Global', 'PrimaryGlobal',
'LegacyArrayClass',
'LegacyUn... |
__alloc(0);
import { BigDecimal, TypedMapEntry, Entity, TypedMap, Result, Wrapped, JSONValue, Value, Token } from './types'
export enum TypeId {
String = 0,
ArrayBuffer = 1,
Int8Array = 2,
Int16Array = 3,
Int32Array = 4,
Int64Array = 5,
Uint8Array = 6,
Uint16Array = 7,
Uint32Array = 8,
Uint64Array... |
<filename>src/plugins/codeStyle/index.ts
import { BscFile, BsDiagnostic, createVisitor, FunctionExpression, isBrsFile, isGroupingExpression, TokenKind, WalkMode, CancellationTokenSource, DiagnosticSeverity, OnGetCodeActionsEvent, isCommentStatement, AALiteralExpression, AAMemberExpression } from 'brighterscript';
impor... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { getRepository } from 'typeorm';
import webpush from 'web-push';
import { Notification, shouldSendAdminNotification } from '..';
import { IssueType, IssueTypeName } from '../../../constants/issue';
import { MediaType } from '../../../constants/media';
import { User } from '../../../entity/User';
import { UserPu... |
import React, { useEffect, useState } from 'react';
import clsx from 'clsx';
import Box from '@material-ui/core/Box';
import Container from '@material-ui/core/Container';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import Copyright from '../common/Footer.Copyright';
import Ta... |
import React, { useContext } from 'react'
import { useRouter } from 'next/router'
import { toClipboard } from 'copee'
import { Space, Button, notification, Dropdown, Menu } from 'antd'
import { DownOutlined, DownloadOutlined, CopyOutlined } from '@ant-design/icons'
import { MenuInfo } from 'rc-menu/lib/interface'
impo... |
<gh_stars>0
import {
Address,
Mosaic,
UInt64,
EmptyMessage,
TransferTransaction,
Transaction,
Deadline,
MosaicId,
TransactionType,
TransactionGroup,
} from 'symbol-sdk';
import { of, forkJoin } from 'rxjs';
import { map, mergeMap, filter, toArray, catchError } from 'rxjs/operator... |
import { cheerioFindNodes } from '@dragonzap/heml-utils';
import type { Options } from 'juice';
import difference from 'lodash/difference';
import filter from 'lodash/filter';
import first from 'lodash/first';
import keyBy from 'lodash/keyBy';
import { createElement } from './createElement';
import { HEMLElement, HEMLE... |
import React, { useState } from 'react';
import { useHistory } from 'react-router-dom';
import Header from '../../Components/Header';
import { useForm } from 'react-hook-form';
import { TeacherListContent, Main, FieldSet, Box, Footer } from './styles';
import InputComponent from '../../Components/InputComponent';
impor... |
import * as C from '@meetalva/components';
import * as MobxReact from 'mobx-react';
import * as Model from '@meetalva/model';
import * as React from 'react';
import { WithStore } from '../store';
import { LibraryStoreItem } from '@meetalva/model';
import { Match, MatchBranch } from './match';
import { PatternLibraryIns... |
import { Cache, StateObject } from "@hpcc-js/util";
import { IConnection, IOptions } from "../connection";
import { DFUService, WsDfu } from "../services/wsDFU";
export class LogicalFileCache extends Cache<{ BaseUrl: string, Cluster: string, Name: string }, LogicalFile> {
constructor() {
super((obj) => {
... |
<filename>src/shrinker/array.ts
import { Shrinkable } from '../Shrinkable'
import { Stream } from '../Stream'
import { binarySearchShrinkable } from './integer'
function shrinkBulk<T>(
ancestor: Shrinkable<Array<Shrinkable<T>>>,
power: number,
offset: number
): Stream<Shrinkable<Array<Shrinkable<T>>>> {
... |
<gh_stars>0
import chalk from 'chalk';
import { ApplePushKeyFragment } from '../../../graphql/generated';
import Log, { learnMore } from '../../../log';
import { confirmAsync, promptAsync } from '../../../prompts';
import { Account } from '../../../user/Account';
import { fromNow } from '../../../utils/date';
import {... |
<reponame>G-and-alf/attack-navigator
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
import { Technique, Tactic } from '../../data.service';
import { ViewModel } from '../../viewmodels.service';
import {ConfigService} from '../../config.service';
declare var tinycolor: any; //use tinyco... |
import { render } from "@testing-library/vue";
import "@testing-library/jest-dom";
import GoogleMapsSection from "..";
import {
GoogleMapsSectionProps,
MapsLocation,
} from "../../../../types/sections";
import { shallowMount } from "@vue/test-utils";
const apikey = process.env.VUE_APP_MAPS_APIKEY;
// eslint-disab... |
import { OrgFormationError } from '../org-formation-error';
import { ConsoleUtil } from '../util/console-util';
import { IGenericTarget, PersistedState } from '~state/persisted-state';
import { TemplateRoot, IOrganizationBinding } from '~parser/parser';
import { IBuildTaskPlugin } from '~plugin/plugin';
import { ICfnEx... |
import {
IonContent,
IonFab,
IonFabButton,
IonHeader,
IonIcon,
IonImg,
IonItem,
IonLabel,
IonList,
IonPage,
IonThumbnail,
IonTitle,
IonToolbar
} from '@ionic/react';
// 'useState' => Allows us to manage 'State & Functional Components'
//- The 'useEffec... |
<reponame>ccims/ccims-material<filename>src/app/dialogs/create-label-dialog/create-edit-label-dialog.component.ts<gh_stars>1-10
import {Component, Inject, OnInit} from '@angular/core';
import {FormControl, Validators} from '@angular/forms';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.