text stringlengths 3.08k 15.5k |
|---|
export declare type CompliancetestMsgAddTestingResultResponse = object;
export interface CompliancetestQueryAllTestingResultsResponse {
testingResults?: CompliancetestTestingResults[];
/**
* PageResponse is to be embedded in gRPC response messages where the
* corresponding request message has used Pag... |
/*
* BASTET Program Analysis and Verification Framework
*
* Copyright 2020 by University of Passau (uni-passau.de)
*
* See the file CONTRIBUTORS.md for the list of contributors.
*
* Please make sure to CITE this work in your publications if you
* build on this work. Some of our maintainers or contribu... |
import type { URL } from "url";
export interface OpenAPI2 {
swagger: string; // required
paths?: Record<string, PathItemObject>;
definitions?: Record<string, SchemaObject>;
parameters?: ParameterObject[];
responses?: Record<string, ResponseObject>; // required
}
export interface OpenAPI3 {
openapi: string... |
<reponame>pioug/atlassian-frontend-mirror<filename>editor/editor-core/src/plugins/macro/actions.ts
import assert from 'assert';
import { EditorView } from 'prosemirror-view';
import {
EditorState,
Selection,
NodeSelection,
TextSelection,
} from 'prosemirror-state';
import { Node as PmNode } from 'prosemirror-mo... |
/* eslint-disable no-redeclare */
import { makeAutoObservable, observable, runInAction } from "mobx";
import { Region } from "flat-components";
import {
cancelRoom,
CancelRoomPayload,
createOrdinaryRoom,
CreateOrdinaryRoomPayload,
createPeriodicRoom,
CreatePeriodicRoomPayload,
joinRoom,
... |
import { zSocket /*, ZesaruxSocket*/ } from './zesaruxsocket';
//import { Z80RegistersClass } from '../z80registers';
import {CpuHistoryClass} from '../cpuhistory';
import {HistoryInstructionInfo, DecodeHistoryInfo} from '../decodehistinfo';
import {Utility} from '../../misc/utility';
/**
* Use similar data as Deco... |
import { Component, OnInit, Input, Output, EventEmitter, OnDestroy } from '@angular/core';
import axios from 'axios';
import { Subscription } from 'rxjs';
import {
PortWorkerStatusService, I18nService, MytipService,
MessageService, CommonService, AxiosService
} from '../../../../service';
const enum Status {
... |
/* eslint-disable prefer-promise-reject-errors */
import { Message, MessageReaction, TextChannel } from 'discord.js';
import { debounce, noOp, sleep, Time } from 'e';
import { Extendable, ExtendableStore, KlasaMessage, KlasaUser } from 'klasa';
import { ReactionEmoji, SILENT_ERROR } from '../../lib/constants';
import ... |
import { LoadingSpinner } from '@sourcegraph/react-loading-spinner'
import * as H from 'history'
import { upperFirst } from 'lodash'
import * as _monaco from 'monaco-editor' // type only
import * as React from 'react'
import { from as fromPromise, Subscription } from 'rxjs'
import { catchError } from 'rxjs/operators'
i... |
/*
* Copyright 2021 Collate
* 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,... |
<reponame>aqrln/funfix<filename>packages/funfix-core/src/std.ts
/*!
* Copyright (c) 2017-2018 by The Funfix Project Developers.
* Some 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 ... |
import * as React from 'react';
const { useReducer, useEffect, useState } = React;
export const ERROR_CODES = {
FAIL_FETCH: -100, // the network call failed or was interrupted, usually
FAIL_PARSE: -200, // the parser provided threw. (usually json)
FAIL_PARSE_TEXT: -201, // response.text() threw.
}
// NOTE TO FRI... |
<reponame>andreciornavei/rn-essentials
import { Theme } from "@emotion/react";
import { TextStyle, ViewStyle } from "react-native";
interface TabStructure {
container?: ViewStyle
item?: ViewStyle
itemSelected?: ViewStyle
text?: TextStyle
textSelected?: TextStyle
icon?: TextStyle
iconSelecte... |
import React, { FunctionComponent, ReactElement } from 'react';
import { FormattedMessage, useIntl } from 'react-intl';
import classNames from 'classnames';
import { Element, Normaltekst, Undertekst } from 'nav-frontend-typografi';
import Panel from 'nav-frontend-paneler';
import {
FlexContainer, FlexRow, FlexColumn... |
import { join, dirname, basename } from 'path';
import execa from 'execa';
import fs from 'fs';
import { promisify } from 'util';
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
import {
getWriteableDirectory,
download,
glob,
createLambda,
shouldServe,
BuildOptions,
deb... |
<reponame>joesasson/needless<filename>src/utils.ts
const getStyleFromSku = sku => sku.split("_")[0].toUpperCase();
const getSizeFromSku = sku => sku.split("_")[1];
const insertDataAsColumns = (
targetSheet: GoogleAppsScript.Spreadsheet.Sheet,
insertData: Object[][],
startColumn: number
) => {
let { h... |
// Ported from Go:
// https://github.com/golang/go/blob/go1.12.5/src/encoding/csv/
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { BufReader } from "../io/bufio.ts";
import { TextProtoReader } from "../textproto/mod.ts";
import { StringReader } from "../io/readers.ts";
import { asse... |
import * as React from 'react'
import { connect } from 'react-redux'
import { Field, InjectedFormProps, FormSection, reduxForm, getFormValues } from 'redux-form'
import { Button } from '@material-ui/core'
import { Edit as EditIcon } from '@material-ui/icons'
import { withTranslation, WithTranslation } from 'react-i18ne... |
/*
Copyright 2019 Balena
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... |
<filename>packages/codemods/src/codeMods/utilities/helpers/propHelpers.ts
import {
ts,
Node,
SyntaxKind,
JsxOpeningElement,
JsxSelfClosingElement,
VariableDeclarationKind,
CodeBlockWriter,
Identifier,
DefinitionInfo,
} from 'ts-morph';
import { ValueMap } from 'src/codeMods/types';
import { Maybe } fr... |
<reponame>keybonk/client
// Helper to deal with service calls in a saga friendly way
import * as RS from 'redux-saga'
import * as RSE from 'redux-saga/effects'
import {getEngine} from './require'
import {sequentially} from '../util/saga'
import {CommonResponseHandler} from './types'
import {RPCError} from '../util/erro... |
<reponame>robintown/mx-puppet-bridge
/*
Copyright 2020 mx-puppet-bridge
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 la... |
import assertNever from "assert-never";
import {
Config,
Contract,
DefaultResponse,
Endpoint,
HttpMethod,
isSpecificResponse,
Request,
Response
} from "../../definitions";
import { TypeTable } from "../../types";
import { KeyOfType } from "../../util";
import {
pathParamToPathParameterObject,
queryP... |
<reponame>fes300/DefinitelyTyped
var bignum = require('bignum');
// Test constructors.
var instance = bignum(16);
bignum('16');
bignum(instance);
// Test `toNumber` function.
instance.toNumber();
bignum.toNumber(4);
bignum.toNumber('4');
bignum.toNumber(bignum(4));
// Test `toBuffer` function.
instance.toBuffer()... |
/*
* tokenizerTypes.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: <NAME>
*
* Based on code from vscode-python repository:
* https://github.com/Microsoft/vscode-python
*
* Interface, enumeration and class definitions used within
* the Python tokenizer.
*/
import { Tex... |
import template from 'lodash.template';
interface DjangoFormset {
endpoint: string;
CSRFToken: string | undefined;
}
interface DjangoForm {
formset: DjangoFormset;
}
interface FieldGroup {
form: DjangoForm;
element: HTMLElement;
touch(): void;
validate(): void;
reportFailedUpload(): void;
inputted(): void;
... |
import * as React from 'react';
import { Alert, Button, ButtonGroup, Card, Overlay, Popover, ToggleButton, ToggleButtonGroup } from 'react-bootstrap';
import { DrawTool, ToolType } from './DrawTypes';
import { observer } from 'mobx-react-lite';
import DrawManager from './DrawManager';
import { HexColorPicker } from 're... |
<filename>packages/rum-core/src/domain/assembly.ts<gh_stars>0
import type { Context, RawError, EventRateLimiter } from '@datadog/browser-core'
import {
combine,
isEmptyObject,
limitModification,
timeStampNow,
currentDrift,
display,
createEventRateLimiter,
canUseEventBridge,
} from '@datadog/browser-core... |
<gh_stars>0
import { APIGatewayEvent, Context } from "aws-lambda";
import { statusCodesMap, STATUS_MESSAGES } from "src/constants";
import { InMemoryProductService } from "src/services/in-memory-product-service";
import { getProductById } from "./handler";
const PARAMS = {
context: {
awsRequestId: "1a66805d-48b3... |
import React, { createRef, useContext, useEffect, useRef, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { replace } from 'connected-react-router';
import styled, { ThemeContext } from 'styled-components';
import { useLocation } from 'react-router-dom';
import * as PIXI from 'pi... |
<reponame>Clashsoft/fulib.org
import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {firstValueFrom} from 'rxjs';
import {environment} from '../../../../environments/environment';
import Assignment from '../../model/assignment';
import {Evaluation, Snippet} from '../../model/... |
<gh_stars>0
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
import Page = require('../../../../base/Page');
import Response = require('../../../../http/response');
import V1 = require('../../V1');
import serialize = require('../../../../base/serialize... |
<reponame>hviana/deno_mongo
/** Grows a pager. */
function grow(pager: Pager, index: number): void {
while (pager.maxPages < index) {
// deno-lint-ignore no-explicit-any
const old: any = pager.pages;
pager.pages = new Array(32768);
pager.pages[0] = old;
pager.level++;
pager.maxPages *= 32768;
... |
import React from "react";
import styled from "styled-components";
import { useRouter } from "next/router";
import { GetServerSideProps } from "next";
import { IconSearch, ImageWithCard } from "hds-react";
import { sortBy } from "lodash";
import { useTranslation } from "react-i18next";
import { serverSideTranslations }... |
import BN = require('bn.js')
import { toBuffer } from 'ethereumjs-util'
import Account from 'ethereumjs-account'
import { Transaction } from 'ethereumjs-tx'
import VM from './index'
import Bloom from './bloom'
import { default as EVM, EVMResult } from './evm/evm'
import Message from './evm/message'
import TxContext fro... |
// Type definitions for Rematch v0.4.0
// Project: Rematch
// Definitions by:
// <NAME> https://github.com/shmck
// <NAME> https://github.com/brunolemos
import * as Redux from 'redux'
export as namespace rematch
export type ExtractRematchStateFromModels<M extends Models> = {
[modelKey in keyof M]: M[modelKey]['sta... |
<reponame>mikecann/clouds-and-edges<gh_stars>10-100
/**
* PRNG
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This simulates the on-cartridge PRNG used in the real games.
*
* In addition to potentially allowing us to read replays from in-game,
* this also makes it possible to record an "input log" (a seed ... |
import { getTestCases } from '../../../test/fixtures/messageformat';
import MessageFormat from './messageformat';
import { PluralFunction } from './plurals';
describe('static MessageFormat', () => {
test('should exist', () => {
expect(MessageFormat).toBeInstanceOf(Function);
});
test('should have a supporte... |
<filename>src/game.ts
import {create_depth_target} from "../common/framebuffer.js";
import {Game3D} from "../common/game.js";
import {Vec4} from "../common/math.js";
import {Entity} from "../common/world.js";
import {mat_forward_colored_gouraud} from "../materials/mat_forward_colored_gouraud.js";
import {mat_forward_co... |
<gh_stars>0
import { isPair } from '../nodes/Node.js'
import { Pair } from '../nodes/Pair.js'
import { YAMLMap } from '../nodes/YAMLMap.js'
import { YAMLSeq } from '../nodes/YAMLSeq.js'
import type { FlowCollection, Token } from '../parse/cst.js'
import type { ComposeContext, ComposeNode } from './compose-node.js'
impo... |
<reponame>kpine/frontend
import {
mdiFan,
mdiHomeMapMarker,
mdiMapMarker,
mdiPause,
mdiPlay,
mdiPlayPause,
mdiStop,
mdiTargetVariant,
} from "@mdi/js";
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElement, property } from "lit/decorators";
import { stopProp... |
import {contentView, crypto, Stack, tabris, TextView} from 'tabris';
const stack = Stack({stretch: true, spacing: 8, padding: 16, alignment: 'stretchX'})
.appendTo(contentView);
tabris.onLog(({message}) => stack.append(TextView({text: message})));
(async function() {
{
console.log('AES-GCM decryption ... |
import { Observable, of } from 'rxjs';
import { map, takeWhile } from 'rxjs/operators';
import { deepCopy } from '@delon/util';
import { SFUISchema, SFUISchemaItem, SFUISchemaItemRun } from './schema/ui';
import { SFSchema, SFSchemaDefinition, SFSchemaEnum } from './schema';
export const FORMATMAPS = {
'date-time': ... |
import backoff from 'backoff';
import JSONStream from 'JSONStream';
import AbortController from 'abort-controller';
import fetch, { Request } from 'node-fetch';
import { EventEmitter } from 'events';
import NylasConnection from '../nylas-connection';
export default class Delta {
connection: NylasConnection;
stati... |
/*
Copyright 2018 <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, softwar... |
/**
* ScrollView.tsx
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* RN-specific implementation of the cross-platform ScrollView abstraction.
*/
import * as React from 'react';
import * as RN from 'react-native';
import * as RX from '../common/Interfaces';
im... |
import { CheckoutSelectors, Instrument, PaymentInitializeOptions, PaymentMethod, PaymentRequestOptions } from '@bigcommerce/checkout-sdk';
import { memoizeOne } from '@bigcommerce/memoize';
import { find, noop } from 'lodash';
import React, { Component, ReactNode } from 'react';
import { ObjectSchema } from 'yup';
imp... |
/*
* Copyright (c) 2019, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { escapeStrForRegex } from 'jest-regex-util';
import * as path from 'path';
import... |
import { AllSuit, parseSuit, Suit, SuitBlackJoker, SuitRedJoker } from './Suite'
export type J = 11
export const J = 11
export type Q = 12
export const Q = 12
export type K = 13
export const K = 13
export type A = 1
export const A = 1
export type BlackJoker = 14
export const BLACK_JOKER = 14
export type RedJoker = 15
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
<gh_stars>10-100
import {
StructMembers,
Scalar,
Type,
SchemaElement,
TypeTag,
Variant,
getVariantName,
matchSchemaElement,
LookupName,
createLookupName
} from '../schema';
import { TsFileBlock, TsFileBlock as ts, Code } from './ast';
export type Module = {
type: 'ts-file-module';
name: string... |
import * as vscode from 'vscode'
import type {TypesetArg} from 'mathjax-node'
import {MathJaxPool} from './mathjaxpool'
import * as utils from '../../utils/utils'
import type {Extension} from '../../main'
import type {ReferenceEntry} from '../completer/reference'
import {getCurrentThemeLightness} from '../../utils/the... |
<filename>src/index.ts
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="../node_modules/@webgpu/types/dist/index.d.ts" />
import vert from './shaders/basic.vert';
import frag from './shaders/basic.frag';
const setup_canvas = (): HTMLCanvasElement => {
const canvas = docum... |
// Copyright (c) 2018 Uber 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
//
// Unless required by applicable law or a... |
import { Card, Button, Modal, Table, message } from 'antd';
import React, { PureComponent } from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { connect } from 'dva';
import moment from 'moment/moment';
import styles from './leaveList.less';
import LeaveListModalForm from './leaveListModal... |
import { Observable, BehaviorSubject} from "rxjs";
import 'rxjs/add/operator/switchmap';
import "rxjs/add/observable/of";
import {
AppControllerModel
} from "./lib/app.controller.model";
import { LoggerController, ErrorLogger, MailLogger } from "../controllers";
import {
IEmailMessage,
IEmailSMTPOpt... |
<gh_stars>0
// FIRST CLASS DECORATORS
function Logger(constructor: Function) {
console.log("Decorator Logging...");
console.log(constructor);
}
@Logger
class Person {
name = "Max";
constructor() {
console.log("creating person object...");
}
}
const pers = new Person();
console.log(pers);
// CREATIN... |
/*
* Copyright 2017 Palantir Technologies, Inc. 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 req... |
import * as WebSocket from 'ws';
import { IConnectionOptions } from './createHttp';
import createHttp from './createHttp';
import Tson from '../tson/tson';
import { IncomingMessage } from 'http';
import throwError from '../utils/throwError';
import {
ERROR_BE_CREATE_WEBSOCKET_ON_CONNECTION_ALREADY_EXIST,
ER... |
<filename>packages/opentelemetry-core/src/utils/environment.ts
/*
* Copyright The OpenTelemetry 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
*
* https://www.apache.org/... |
import * as fs from 'fs-extra';
import * as path from 'path';
import * as git from 'isomorphic-git';
import * as casual from 'casual';
import sha1 from 'sha1';
import { MockInstance } from './mock-fs';
import { readDirAsyncDepth, readFileAsync, writeFileAsync } from '../containers/io';
/**
* Accept some meta-informa... |
import BellOutlined from "@ant-design/icons/lib/icons/BellOutlined";
import CheckCircleOutlined from "@ant-design/icons/lib/icons/CheckCircleOutlined";
import ClockCircleOutlined from "@ant-design/icons/lib/icons/ClockCircleOutlined";
import EllipsisOutlined from "@ant-design/icons/lib/icons/EllipsisOutlined";
import ... |
<reponame>andry9454/ironyDetectionTask
import {COLOR, FILL, NonPositionScaleChannel, OPACITY, SHAPE, SIZE, STROKE} from '../../channel';
import {isFieldDef, title as fieldDefTitle} from '../../fielddef';
import {Legend, LEGEND_PROPERTIES, VG_LEGEND_PROPERTIES} from '../../legend';
import {GEOJSON} from '../../type';
im... |
<gh_stars>0
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardComponent } from './dashboard/dashboard.component';
import { ViewEmployeeDetailsComponent } from './view-employee-... |
<filename>packages/pyright-internal/src/analyzer/declaration.ts
/*
* declaration.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: <NAME>
*
* Tracks the location within the code where a named entity
* is declared and its associated declared type (if the type
* is explicitly d... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import level, { LevelDB } from 'level'
import { join } from 'path'
import { UtxoStore, UtxoResult, UtxoReturnResult } from './storage'
import { calcUtxoId } from '../helpers'
import { Utxo, UtxoId } from 'src/cashweb/types/utxo'
const metadataKeys = {
schemaVe... |
/*
* Copyright (c) 2021, 2022, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with certain software (in... |
/*
Copyright 2017 OpenMarket Ltd
Copyright 2018 New Vector Ltd
Copyright 2019 <NAME> <<EMAIL>>
Copyright 2019 The Matrix.org Foundation C.I.C.
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
ht... |
<filename>src/refactorings/extract-interface/extract-interface.ts
import * as t from "../../ast";
import { Editor, ErrorReason } from "../../editor/editor";
import { Position } from "../../editor/position";
import { Selection } from "../../editor/selection";
import { renameSymbol } from "../rename-symbol/rename-symbol"... |
<gh_stars>0
import { Buffer, Neovim, Window } from '@chemzqm/neovim'
import { CancellationToken } from 'vscode-jsonrpc'
import FloatBuffer from '../model/floatBuffer'
import { Documentation, PumBounding } from '../types'
import workspace from '../workspace'
const logger = require('../util/logger')('floating')
interfac... |
import { isNil } from "ramda";
import { direction } from "../direction-calculator/DirectionCalculator";
import { isValidColor } from "../color-calculator/ColorCalculator";
export interface IActualParticalizorPropertyValues {
actualParticleNumber: number;
actualParticleLifeTime: number;
actualParticleVelocity: nu... |
<gh_stars>0
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import { randomBytes } from 'crypto';
import { inject, injectable } from 'inversify';
import * as ts from 'typescript';
impor... |
import { isUndefined, isString } from "./Utils";
export class Tag {
constructor(private name: string, private namespace?: string) {
this.element = !!namespace ?
<HTMLElement>document.createElementNS(namespace, name) :
document.createElement(this.name);
}
public get native()... |
<filename>src/hooks/useSettlement.tsx
import { useCallback } from "react";
import { _TypedDataEncoder } from "@ethersproject/hash";
import { signData } from "eth-permit/dist/rpc";
import { ethers } from "ethers";
import { ORDER_BOOK, SETTLEMENT } from "../constants/contracts";
import Fraction from "../constants/Fracti... |
<reponame>reproducible-biomedical-modeling/Biosimulations
import { Injectable, Logger } from '@nestjs/common';
import { SshService } from '../ssh/ssh.service';
import {
SimulationRunStatus,
SimulationRunStatusReason,
EnvironmentVariable,
Purpose,
} from '@biosimulations/datamodel/common';
import { ConfigService... |
import { WithEnvironmentHelpers, WithEnvironments } from '@syndesis/api';
import { IEnvironment } from '@syndesis/api/src';
import {
Breadcrumb,
CiCdList,
CiCdListEmptyState,
CiCdListItem,
CiCdListSkeleton,
CiCdManagePageUI,
IActiveFilter,
IFilterType,
ISortType,
TagNameValidationError,
} from '@syn... |
import React, { useMemo, memo, useState, useCallback, useRef, useEffect, forwardRef } from 'react';
import classnames from 'classnames';
import type { ICellRendererParams } from '@ag-grid-community/core';
import { RowNode } from '@ag-grid-community/core';
import { stopPropagationForAgGrid } from './utils';
import { isE... |
/**
* Created by leon<<EMAIL>> on 22/2/24.
*/
import type { NativeStackScreenProps } from '@react-navigation/native-stack'
import { ITheme } from '@src/types'
export type RootStackParamList = {
HotDraw: undefined
Main: {
initialRouteName?: string
}
HomeTabs: undefined
Hot: undefined
Latest: undefine... |
<reponame>liujingbreak/dr-comp-package
import { defer, Observable, Subject } from 'rxjs';
import http from 'http';
import https from 'https';
import Url from 'url';
import api from '__api';
import { Checksum } from '../fetch-types';
import util from 'util';
import fs from 'fs';
import crypto from 'crypto';
// import Pr... |
<gh_stars>0
import { Observable, of, EMPTY, fromEvent, timer, throwError, defer } from 'rxjs';
import {
distinctUntilChanged,
filter,
map,
mergeMap,
withLatestFrom,
switchMap,
take,
mapTo,
pluck,
retryWhen,
} from 'rxjs/operators';
import curry from 'lodash/curry';
import { Room, MatrixClient, Event... |
import * as React from 'react';
import { WizardOverviewDisksTable } from '@catalog/wizard/tabs/overview/components/WizardOverviewDisksTable/WizardOverviewDisksTable';
import { WizardOverviewNetworksTable } from '@catalog/wizard/tabs/overview/components/WizardOverviewNetworksTable/WizardOverviewNetworksTable';
import {... |
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
INTEGER,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/* START_OF_SYMBOL_DEFINITION RSAPublicKey */
/**
* @summary RSAPublicKey
* @descrip... |
<reponame>actuallyori/sfe-quality-assurance
import { Plugin, RichEmbed } from "jisco";
import { err, check } from "../util/Util";
import { StringType } from "jisco/dist/types/StringType";
import { TextChannel, Message, GuildMember } from "discord.js";
interface IReportsPluginConfig {
issuesToConfirm: {
id: number;
... |
import { Type, Injector, Provider, InjectionToken, GetTypeMetadata } from '@uon/core';
import { RouteMatch, ActivatedRoute, RouterOutlet, RouteParams, RouteData } from '@uon/router';
import { IncomingMessage, ServerResponse, OutgoingHttpHeaders, STATUS_CODES } from 'http';
import { Url } from 'url';
import { HttpError... |
import React, { FunctionComponent, useEffect, useState } from "react";
import { UncontrolledTooltip, Input, CardBody } from "reactstrap";
import Loader from "../../containers/Loader/Loader";
import { languageTranslation } from "../../../../helpers";
import {
IState,
ICalendarViewProps,
IHolidayData
} from "../../... |
<reponame>syg/ecmarkup
import type Spec from './Spec';
import type { Context } from './Context';
import type * as Biblio from './Biblio';
import type Clause from './Clause';
import Builder from './Builder';
import * as utils from './utils';
/*@internal*/
export default class Xref extends Builder {
namespace: string... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import fs from 'fs';
import {Config} from '@jest/types';
import {FS as HasteFS} from 'jest-haste-map';
import... |
<gh_stars>10-100
let populated = false;
// Browsers
let ie;
let firefox;
let opera;
let webkit;
let chrome;
// Actual IE browser for compatibility mode
let ieRealVersion;
// Platforms
let osx;
let windows;
let linux;
let android;
// Architectures
let win64;
// Devices
let iphone;
let ipad;
let native;
let mobile;... |
<filename>src/services/node.ts
import { EventEmitter } from 'events';
import * as WebSocket from 'ws';
import * as nano from 'nanocurrency';
import { RpcClient } from './rpc_client';
import { AddressInfo } from './address';
export enum BlockType {
SEND = 'send',
RECEIVE = 'receive'
}
export interface Pending... |
<reponame>verida/verida-js<filename>packages/client-ts/test/verida/messaging.tests.ts<gh_stars>1-10
'use strict'
const assert = require('assert')
import { Client } from '../../src/index'
import { LimitedAccount } from '@verida/account-node'
import CONFIG from '../config'
const DS_CONTACTS = 'https://common.schemas.ve... |
import { CircleArrowRight } from '@anchor-protocol/icons';
import { scaleLinear } from 'd3-scale';
import { arc } from 'd3-shape';
import { links } from 'env';
import { useRef } from 'react';
import { animated, useSpring } from 'react-spring';
import styled from 'styled-components';
import circleBackground from './asse... |
// Libraries
import React, {PureComponent, ChangeEvent} from 'react'
import {connect} from 'react-redux'
// Components
import {Input, Button} from '@influxdata/clockface'
import {Dropdown} from 'src/clockface'
import SearchableDropdown from 'src/shared/components/SearchableDropdown'
import WaitingText from 'src/shared... |
import React, {
ComponentType,
FC,
ForwardRefExoticComponent,
Fragment,
FunctionComponent,
MutableRefObject,
SVGProps,
useCallback,
useRef,
useState,
} from "react";
import BigNumber from "bignumber.js";
import classNames from "clsx";
import {
Controller,
ControllerProps,
EventFunction,
Fie... |
<reponame>Saeris/ariakit
import { KeyboardEvent, useCallback, useContext, useRef } from "react";
import { isTextField } from "ariakit-utils/dom";
import { isSelfTarget } from "ariakit-utils/events";
import { useEventCallback } from "ariakit-utils/hooks";
import { normalizeString } from "ariakit-utils/misc";
import {
... |
"use strict";
import * as util from "util";
import "moment-duration-format";
import {Component, Input, ViewChild, ElementRef, OnChanges, SimpleChange, AfterViewInit} from "angular2/core";
import {ResizeBar, IResizeDelta} from "../resize-bar/resize-bar";
import {CollectionList} from "../collection-list/collection-list"... |
<gh_stars>0
import { all, DI, IContainer, Immutable, inject, PLATFORM, Reporter } from '@au-test/kernel';
import { IChangeSet } from '../binding/change-set';
import { IEventManager } from '../binding/event-manager';
import { IExpressionParser } from '../binding/expression-parser';
import { IObserverLocator } from '../b... |
<reponame>llh-exercise/angboot<filename>client/web/src/app/widget/directive/resizable-table.directive.ts
/*
* Copyright (c) 2019, AngBoot Technology Corp, All Rights Reserved.
*
* The software and information contained herein are copyrighted and
* proprietary to AngBoot Technology Corp. This software is furnished
... |
<reponame>lytico/ag-grid<filename>community-modules/core/src/ts/ctrlsService.ts<gh_stars>1-10
import { GridCtrl } from "./gridComp/gridCtrl";
import { Bean } from "./context/context";
import { GridBodyCtrl } from "./gridBodyComp/gridBodyCtrl";
import { RowContainerCtrl } from "./gridBodyComp/rowContainer/rowContainerCt... |
import PropTypes from "prop-types";
import { useState, CSSProperties } from "react";
import {
RecordAndPlayoffs,
RosterComposition,
PlusMinus,
} from "../../components";
import { helpers } from "../../util";
import InstructionsAndSortButtons from "./InstructionsAndSortButtons";
import PlayThroughInjurySliders from "... |
import * as core from "@shapeshiftoss/hdwallet-core";
import * as metamask from "@shapeshiftoss/hdwallet-metamask";
export function name(): string {
return "MetaMask";
}
export function createInfo(): core.HDWalletInfo {
return new metamask.MetaMaskHDWalletInfo();
}
export async function createWallet(): Promise<c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.