text stringlengths 3.08k 15.5k |
|---|
<reponame>Sphereon-Opensource/veramo<gh_stars>0
import {
CredentialPayload,
IAgentContext,
IKey,
IResolver,
PresentationPayload,
VerifiableCredential,
VerifiablePresentation,
} from '@veramo/core'
import fetch from 'cross-fetch'
import Debug from 'debug'
import { extendContextLoader } from '@digitalcreden... |
<filename>data-service/sign.ts
import {
generate,
StringWithLength,
ISignatureGenerator,
AUTH_ORDER_SIGNATURE,
TX_NUMBER_MAP,
TRANSACTION_TYPE_NUMBER,
CREATE_ORDER_SIGNATURE,
CANCEL_ORDER_SIGNATURE
} from '@waves/waves-signature-generator';
import { IKeyPair } from './interface';
let AP... |
import { setInterval, clearInterval } from 'timers'
import { IEventBus } from '../../../common/src/ievent-bus'
import { IGameState } from '../../../common/src/gamemodels/i-game-state'
import { apiEvents } from '../../../common/src/api/api-events'
import createPlayer from '../../../common/tests/mocks/mock-player'
import... |
import { Channel } from "@storybook/addons";
import React, { useEffect, useState } from "react";
import { Transition } from "react-transition-group";
import {
EXPORT_END,
EXPORT_PROGRESS,
EXPORT_START,
TOGGLE_EXPORT_STATUS,
} from "../constants";
interface IProps {
channel: Channel;
}
const Banner: React.FC... |
import { useCallback, useContext, useEffect, useRef, useState } from 'react'
import { SECRET_INTERNAL_getScopeContext as getScopeContext } from 'jotai'
import type { Atom, Scope } from '../core/atom'
import {
DEV_GET_ATOM_STATE,
DEV_GET_MOUNTED,
DEV_GET_MOUNTED_ATOMS,
DEV_SUBSCRIBE_STATE,
RESTORE_ATOMS,
} fro... |
<reponame>quarkslab/mattermost-plugin-e2ee
/* eslint-disable no-await-in-loop */
import 'mattermost-webapp/tests/setup';
import {webcrypto} from '../src/webcrypto';
import {EncryptedP2PMessage, PrivateKeyMaterial, PublicKeyMaterial, getPubkeyID, E2EEValidationError, isEncryptedP2PMessageJSON} from '../src/e2ee';
con... |
import React, { useEffect, useState } from 'react';
import { Animated, Easing, KeyboardAvoidingView, Modal, StyleSheet, Text, TouchableWithoutFeedback, View } from 'react-native';
import { BLOCK_CONTEXT } from '@rocket.chat/ui-kit';
import Button from '../../Button';
import TextInput from '../../TextInput';
import { t... |
import * as React from "react";
import {
Button,
StyleSheet,
TouchableOpacity,
ActivityIndicator,
SafeAreaView,
StatusBar,
Dimensions,
Image,
KeyboardAvoidingView,
Alert,
Platform,
FlatList,
ScrollView,
} from "react-native";
import { useFocusEffect } from "@react-navigation/native";
import {... |
import * as ts from 'typescript';
import ExportData from '../types/ExportData';
import mapEntityWithName from './mapEntityWithName';
function isDeclarationSymbol(symbol: ts.Symbol, node: ts.Node) {
const parent = node.parent;
if (symbol.flags === ts.SymbolFlags.Alias) {
return false;
}
return !!symb... |
import { isPlatformBrowser, isPlatformServer, nextError$, TransferService } from 'rxcomp';
import { Observable, Observer } from 'rxjs';
import { HttpErrorResponse, IHttpErrorResponse, IHttpJsonParseError } from './http-error-response';
import { HttpDownloadProgressEvent, HttpEventType, HttpUploadProgressEvent } from '.... |
<filename>src/core/formState.ts
import { action, computed, isObservable, isObservableArray, IObservableArray, observable, runInAction, makeObservable } from 'mobx';
import { isMapLike } from "../internal/utils";
import { applyValidators, ComposibleValidatable, Validator } from './types';
function isArrayLike(x: any): ... |
<filename>src/index.ts
console.log('starting grabber')
let BTC_NODE = process.env.BTC_EXPLORER_BTC_NODE || ""
let DB_NAME = process.env.BTC_EXPLORER_DB_NAME || ""
let TABLE_BLOCKS = process.env.BTC_EXPLORER_TABLE_BLOCKS || "btc_blocks"
let TABLE_TXS = process.env.BTC_EXPLORER_TABLE_TXS || "btc_txs"
let RETHINK_URI = p... |
<gh_stars>0
/**
* 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.
*/
import fs from 'fs-extra';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import OptimizeCSSAssetsPlugin ... |
<gh_stars>0
// tslint:disable no-any no-object-mutation
import {
areTasksDone,
CRUDRequest,
CRUDRequestStart,
ExecuteTaskListRequest,
ExecuteTaskListRequestStart,
ReadRequest,
ReadResponse,
TaskList,
TaskStatus,
VERSION,
} from '@neo-one/server-plugin';
import { Context } from 'mali';
import { EMPTY... |
<filename>src/app/nodedetail/threatq.export.controller.ts
/// <reference path="../../../typings/main.d.ts" />
import { INodeDetailResolverService } from '../../app/services/nodedetailresolver';
import { IMinemeldConfigService } from '../../app/services/config';
import { NodeDetailInfoController } from './nodedetail.in... |
import classNames from 'classnames';
import * as React from 'react';
import * as PropTypes from 'prop-types';
import filterProps from '../filterProps';
import polyfillPlaceholder from '../polyfillPlaceholder';
import '../ensureOldIEClassName';
import throttle from 'lodash.throttle';
import LayoutEvents from '../../li... |
<reponame>zbigg/probe.gl
// Built on https://github.com/Erkaman/regl-stats-widget (MIT license)
// widget styling constants.
import {formatMemory, formatTime} from './format-utils';
import {Stats, Stat} from '@probe.gl/stats';
const RIGHT_ARROW = '\u25b6';
const DOWN_ARROW = '\u2b07';
const DEFAULT_CSS = {
css: {
... |
import { spawn } from "child_process";
import WebSocket from "ws";
import { Connector } from "./connection";
import { JsonFormatLog } from "./connectionInterfaces";
import { StringConverter } from "./stringConversion";
export interface Workstation{
ip: string;
port: number;
}
export interface LogOptions{
... |
import React from 'react';
import styled from 'styled-components';
import {
color,
typography,
flexbox,
space,
layout,
borderColor,
boxShadow,
variant as inVariant,
grid,
position,
BorderColorProps,
BoxShadowProps,
PositionProps,
} from 'styled-system';
import { Styl... |
<reponame>sweetguy/bee-js
import { Bytes, bytesAtOffset, bytesEqual, flexBytesAtOffset } from '../utils/bytes'
import { bmtHash } from './bmt'
import { recoverAddress, sign } from './signer'
import { keccak256Hash } from '../utils/hash'
import { SPAN_SIZE } from './span'
import { serializeBytes } from './serialize'
imp... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import React from 'react';
import { Modal, useModal } from 'react-hook-modal';
import 'react-hook-modal/dist/index.css';
import ReactMarkdown from 'react-markdown';
import Button from '../components/Button/Button';
import FileTree from '../components/FileTree/File... |
/**
* SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: BSD-3-Clause
*/
import '@clayui/css/lib/css/atlas.css';
import ClayButton, {ClayButtonWithIcon} from '@clayui/button';
const spritemap = require('@clayui/css/lib/images/icons/icons.svg');
import {ClayDropDownWithItem... |
import { Injector, NgZone, TemplateRef, ViewContainerRef, ComponentRef, EmbeddedViewRef, EventEmitter } from '@angular/core';
import { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';
import { take, switchMap, filter, map } from 'rxjs/operators';
import { merge, NEVER, Subject, Subscription } from 'rxj... |
<filename>src/schema/v1/object_identification.ts
/**
* To support a type, it should:
*
* - specify that it implements the Node interface
* - add the Node `__id` fields
* - add to the below `SupportedTypes` list.
*
* @example
*
* import { has } from 'lodash';
*
* import {
* GlobalIDField,
* NodeInterfac... |
import { LazyQueryHookOptions, QueryTuple } from '@apollo/client';
import {
Chip,
ChipProps,
CircularProgress,
TextField,
TextFieldProps,
} from '@material-ui/core';
import { Autocomplete, AutocompleteProps, Value } from '@material-ui/lab';
import { camelCase } from 'camel-case';
import { identity, upperFirst... |
import { uniqueId } from 'lodash';
import React, { ComponentProps, useRef, useState } from 'react';
import { InlineField, Input, InlineSwitch, Select } from '@grafana/ui';
import { useDispatch } from '../../../../hooks/useStatelessReducer';
import { extendedStats } from '../../../../query_def';
import { useQuery } fr... |
import set from 'lodash.set';
import { MappingStorage } from '../storages';
import {
ConditionFunction,
ConvertUsingFunction,
Dict,
FromValueFunction,
IgnoreFunction,
MapDeferFunction,
MapFromFunction,
MapInitializeFunction,
MapOptions,
Mapping,
MapWithFunction,
MemberMapFunction,
NullSubstitu... |
<reponame>HenkoR/talk
import fs from "fs-extra";
import { Redis } from "ioredis";
import { Db } from "mongodb";
import path from "path";
import * as uuid from "uuid";
import { createTimer } from "coral-server/helpers";
import logger from "coral-server/logger";
import {
failMigration,
finishMigration,
MIGRATION_S... |
import { Octokit } from "@octokit/rest";
import slugify from "@sindresorhus/slugify";
import { readFile } from "fs-extra";
import { safeLoad } from "js-yaml";
import { Curl, CurlFeature } from "node-libcurl";
import { join } from "path";
import { generateSummary } from "./summary";
const shouldCommit = process.argv[2]... |
<filename>generator/generate-manifest.ts
import { DefInfo } from './util';
import { OpenAPIObject } from 'openapi3-ts';
import fetch from 'node-fetch';
import { writeOutFile } from './generate-common.js';
const httpClientType = `import { HttpClient } from '../http';`;
const manifestMetadataPromise = (async () => {
... |
<reponame>syrflover/iTunes-RPC
import * as os from 'os';
import { pathExists } from '@syrflover/simple-store';
import env from '../env';
import { spawnp } from './spawnp';
import { logger } from '../logger';
interface IPlayTime {
position: number;
start: number;
duration: number;
finish: number;
}
// ... |
/*
* MIT License
*
* Copyright (c) 2020 manager
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... |
/** @jsx jsx */
import { Box, Image } from '@chakra-ui/core'
import { css, jsx } from '@emotion/core'
import { Faded } from 'baby-i-am-faded'
import {
Banner,
Button,
CodeSnippet,
Divider,
Feature,
Heading,
Hero,
PageContainer,
PatternBackground,
Section,
SectionTitle,
T... |
import { WiredBase, customElement, property, TemplateResult, html, css, CSSResult, PropertyValues } from 'wired-lib/lib/wired-base';
import { polygon, Point } from 'wired-lib';
export type WiredTooltipPosition = 'bottom' | 'top' | 'left' | 'right';
@customElement('wired-tooltip')
export class WiredTooltip extends Wir... |
/**
* Created by: <NAME>
* Creation date: 25 February 2020
*
* Component which allows create user's account.
*/
// External imports
import React, { useState, useCallback, useEffect, memo, useMemo } from 'react';
import classNames from 'classnames';
import Container from '@material-ui/core/Container';
import Circu... |
<gh_stars>0
import {
ApiEdgeDefinition, ApiEdgeQueryContext, ApiRequestPath, ApiEdgeError,
OneToOneRelation, ApiEdgeQueryFilterType
} from "api-core";
function extractWhereClauseParts(key: string): string[] {
let parts: string[] = [];
while(key.length) {
if(key[0] !== '[') {
throw ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { EMPTY } from 'rxjs';
import { toArray } from 'rxjs/operators';
impor... |
import { isArray, isNumber, isString, isFunction } from '../../../utils/types'
import { PropType } from 'vue'
import { isEmpty } from '../../../utils/util'
import {
AnyColor,
FnColor,
LevelColor,
ProgressProps,
StrokeStyle,
FnFormat
} from './types'
export const DEFAULT_COLOR = '#409EFF'
export const STATU... |
<reponame>thunder033/rtm-websockets-chat
/// <reference path="../node_modules/@types/node/index.d.ts" />
/**
* Created by gjrwcs on 2/7/2017.
*/
import {ClientMessage, Message, MessageStatus} from './messages';
import * as fs from 'fs';
import * as Http from 'http';
import {Server} from 'net';
import Socket = Socket... |
import React from 'react';
import { Link, useLocation } from 'react-router-dom';
import cn from 'classnames';
import Icon from 'components/custom/icon';
import { useGeneral } from '../../../components/providers/general-provider';
import { FDT_MARKET_LINK, FDT_MARKET_LIQUIDITY_LINK, FDT_BALANCER } from '../../../confi... |
import { forEachSeries } from 'p-iteration';
import { queryClient } from '../graphqlClient';
import QueryGenerator from '../queryGenerator';
import GraphQLQuery from '../queryClass';
import { IMockServer } from '../interfaces';
export async function runGraphQLTests(server: string | IMockServer, progressCallback?): Pro... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { Button, Flex, Input, ListItem, OrderedList, Text } from "@chakra-ui/react";
import React, { useMemo } from "react";
import type { ChatReactionDataFragment } from "../../../generated/graphql";
import { Chat_ReactionType_Enum } from "../../../generated/graphql";
import type { MessageState } from "../ChatGlobalSt... |
<filename>src/scripts/social/Reddit.ts
/*
* @Author : HCLonely
* @Date : 2021-09-30 09:43:32
* @LastEditTime : 2022-02-06 11:48:28
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/social/Reddit.ts
* @Description : Reddit 订阅&取消订阅
*/
import Social from './Social';
import echo... |
import Box from "@component/Box";
import Button from "@component/buttons/Button";
import { Card1 } from "@component/Card1";
import Grid from "@component/grid/Grid";
import AdminDashboardLayout from "@component/layout/AdminDashboardLayout";
import DashboardPageHeader from "@component/layout/DashboardPageHeader";
import ... |
interface FarthestPoint {
y: number;
id: number;
}
export type DiffType = 'removed' | 'common' | 'added';
export interface DiffResult<T> {
type: DiffType;
value: T;
}
const REMOVED = 1;
const COMMON = 2;
const ADDED = 3;
function createCommon<T>(A: T[], B: T[], reverse?: boolean) {
const common = [];
if... |
import {
Component,
OnInit,
AfterViewInit,
OnDestroy,
Input,
ViewChild,
} from '@angular/core';
import 'tinymce';
import 'tinymce/themes/modern';
import 'tinymce/plugins/table';
import 'tinymce/plugins/link';
import 'tinymce/plugins/image';
import 'tinymce/plugins/spellchecker';
import 'tinymce/plugins/ima... |
<filename>spec/cleanser.spec.ts
import { readFile } from "./helpers";
import { cleanse } from "../src/lib/cleanser";
import { expect } from "chai";
import { JSDOM } from "jsdom"
const jsdom = new JSDOM()
global["DOMParser"] = jsdom.window.DOMParser;
const tests: {
name: string,
inputFile: string,
outputFi... |
import type {
IApplizeDOM,
HTMLTags,
ElementGeneratorGeneric,
ElementGenerator,
IDOMRenderer,
IDomRenderFinished,
IDOMRendererFinishedInput,
ElementGeneratorRoot,
} from '.';
import type { APITypesGeneral } from '../api/schema';
import { urlParse } from '../applize/urlParse';
import type * as T from 'io... |
<filename>lib/importer.ts
// IMPORTS
// ================================================================================================
import {
AirSchema, ExpressionVisitor, ExecutionContext, Expression, LiteralValue, BinaryOperation,
UnaryOperation, MakeVector, GetVectorElement, SliceVector, MakeMatrix, Load... |
<filename>src/types/hook.ts
import type tapable from 'tapable';
import type {
FirstNRequiredVariadicTuple,
AnyFunc,
OmitType,
FixateArgs,
} from './util';
import type { AbstractMiniExtractPlugin } from './subclassing-abstract';
import type {
HookDefinitions,
HookDefinition,
AsyncSeriesWaterfallHookClass,... |
import {
useConfirm,
useModal,
buildOptimisticArrayForMove,
deleteObjectFromReferenceArrayUpdater,
useArrayBasicSortableHandlers,
useMatchWidthStyle,
} from '@neinteractiveliterature/litform';
import { DndContext, DragOverlay } from '@dnd-kit/core';
import { SortableContext, useSortable, verticalListSorting... |
// @ts-ignore
import { IAnyKeyValue, IAsyncPlugins, IAsyncProviders, IBotProvider } from '@lskjs/bots-base/types';
// @ts-ignore
import { BotsRouter } from '@lskjs/bots-router';
// @ts-ignore
import { IModel, IModelKeyValue, IModelsModule } from '@lskjs/db';
// @ts-ignore
import { IAsyncModuleKeyValue, ILogger, Module ... |
<reponame>Toughee/redux-devtools<gh_stars>1-10
import getParams from 'get-params';
import jsan from 'jsan';
import { nanoid } from 'nanoid/non-secure';
import { immutableSerialize } from '@redux-devtools/serialize';
import Immutable from 'immutable';
import { Action } from 'redux';
export function generateId(id: strin... |
import * as React from 'react';
import { Children, cloneElement, ReactElement } from 'react';
import PropTypes from 'prop-types';
import Card from '@material-ui/core/Card';
import classnames from 'classnames';
import { makeStyles } from '@material-ui/core/styles';
import {
ComponentPropType,
defaultExporter,
... |
import {Component, Inject, OnInit, ViewChild} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
import {FindUsagesDialogService} from './domain/find-usages-dialog.service';
import {
AccFlatNode,
AsccpFlatNode,
BccpFlatNode,
BdtFlatNode,
CcFlatNode,
CcFlatNodeFlatt... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/** @jsx jsx */
import React, { Fragment, useState, useEffect } from 'react';
import { jsx, css } from '@emotion/core';
import { useRecoilValue } from 'recoil';
import { PublishTarget } from '@bfc/shared';
import formatMessage from 'format-mess... |
<reponame>codedfiles/repo-automation-bots<filename>packages/gcf-utils/test/server.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
//
// http://www.apa... |
import { injectable, inject } from 'tsyringe';
import AppError from '@shared/errors/AppError';
import path from 'path';
// import { isBefore } from 'date-fns';
// import { IUpdateAgendamentoDTO } from '../dtos/IAgendamentoDTO';
import IProfessorRepository from '@modules/professor/repositories/IProfessorRepository';... |
<reponame>maplecloudy/shopizer-admin<filename>src/app/pages/shared/components/image-uploading/image-uploading.component.ts
import {
Component,
EventEmitter,
Input,
OnChanges,
OnInit,
Output,
SimpleChanges,
ViewChild,
} from "@angular/core";
import { CdkDropListGroup, CdkDragEnter, CdkDropList, CdkDragD... |
<reponame>dsizomin/homebridge-razer
import {CharacteristicGetCallback, CharacteristicSetCallback, CharacteristicValue, PlatformAccessory, Service} from 'homebridge';
import {HomebridgeRazerPlugin} from './platform';
import {DeviceDBusClient} from './dbus';
import color from 'color-convert';
import {HSL} from 'color-co... |
<reponame>pandya-raj/mock-responses<filename>src/mock-responses/mock-responses.service.ts
import * as username from 'username';
import { Injectable } from '@nestjs/common';
import { MockResponse } from '../common/interfaces/mock-response.interface';
import { BetterSqlite3 } from '../common/better-sqlite3';
function ge... |
import { Directive, ElementRef, forwardRef, HostBinding, HostListener, Input } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms";
import { coerceBooleanProperty } from '@angular/material/core/coercion/boolean-property';
import { Observable, Subscription } from 'rxjs/Rx';
imp... |
import * as _ from 'lodash';
import * as React from 'react';
import DocumentTitle from 'react-document-title';
import styled from 'styled-components';
import { AboutPageLayout } from 'ts/@next/components/aboutPageLayout';
import { Link } from 'ts/@next/components/link';
import { Column, FlexWrap, Section } from 'ts/@n... |
import React, { FC, useMemo } from "react";
import classNames from "clsx";
// import { ReactComponent as AppsIcon } from "app/icons/apps.svg";
import { ReactComponent as ContactBookIcon } from "app/icons/contact-book.svg";
import { ReactComponent as ExtensionIcon } from "app/icons/extension.svg";
import { ReactCompon... |
<gh_stars>100-1000
// This code is forked from https://github.com/mapbox/vector-tile-js under BSD 3-clause license.
import Protobuf from 'pbf';
import {FlatFeature, FlatIndexedGeometry, GeojsonGeometryInfo} from '@loaders.gl/schema';
import {classifyRings, project, readFeature} from '../../helpers/binary-util-function... |
// Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0
import { Redirect, RouteComponentProps } from 'react-router-dom'
import {
getAccountModules,
getAccountResources,
} from '../../api_clients/BlockchainRestClient'
import { postQueryToAnalyticsApi } from '../../api_clients/AnalyticsCl... |
import * as scheduler from "@data-heaving/scheduler";
import * as queue from "@azure/storage-queue";
import * as http from "@azure/core-http";
import test, { ExecutionContext } from "ava";
import * as spec from "../telemetry";
import * as events from "../events";
test("Test that normal execution logs necessary telemet... |
import * as THREE from 'three';
export interface MToonParameters extends THREE.ShaderMaterialParameters {
mToonVersion?: number;
cutoff?: number;
color?: THREE.Vector4;
shadeColor?: THREE.Vector4;
map?: THREE.Texture;
mainTex?: THREE.Texture;
mainTex_ST?: THREE.Vector4;
shadeTexture?: TH... |
<filename>js/src/convert.ts<gh_stars>100-1000
// The convert functions are based on types used by ethers AbiCoder but we redefine some types here to keep our
// functional dependency on those types minimal
// Same as ethers hybrid array/record type used for dynamic returns
export type Result<T = any> = readonly T[] & ... |
import Dexie from "dexie";
import { Activity, Domain, RawActivity } from "../models/activity";
import { DefiniteTimeRange, TimeRange } from "../models/time";
import { IS_CHROMIUM, IS_FIREFOX } from "../utils/browserUtils";
import {
ActivityService,
ActivityTableRecord,
DatabaseRecords,
DataMigrationService,
... |
<reponame>jmaerte/wave
import {ColorBreakpoint, IMappingRasterColorizerBreakpoint, ColorBreakpointDict, BreakPointValue} from './color-breakpoint.model';
import {Color} from './color';
/**
* DEPRECATED
*/
export interface DeprecatedMappingColorizerDoNotUse {
interpolation: string;
breakpoints: Array<[number,... |
<gh_stars>10-100
import {
async,
TestBed,
ComponentFixture
} from '@angular/core/testing';
import {PolymerElement} from './polymer-element';
import {Component, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
import {ReactiveFormsModule, FormGroup, FormControl} from '@angular/forms';
const Polymer: any = (<an... |
<reponame>mainangethe/tools<gh_stars>0
/**
* 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.
*/
import {
ParsedMapping,
ParsedMappings,
ResolvedLocation,
SourceMap,
} from "./types";
... |
import { LoadingSpinner } from '@sourcegraph/react-loading-spinner'
import ArrowLeftIcon from 'mdi-react/ArrowLeftIcon'
import * as React from 'react'
import { RouteComponentProps } from 'react-router'
import { Link } from 'react-router-dom'
import { Observable, Subject, Subscription } from 'rxjs'
import {
catchErr... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import React, { useCallback, useState } from 'react'
import { Dialog, Theme } from '@material-ui/core'
import Text from 'core/elements/text'
import FontAwesomeIcon from 'core/components/FontAwesomeIcon'
import { makeStyles } from '@material-ui/styles'
import DisplayKeyValues from 'core/components/DisplayKeyValues'
impo... |
import React, { useState, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import {
PageSection,
Bullseye,
Alert,
Spinner,
AlertGroup,
AlertActionCloseButton,
AlertVariant,
} from '@patternfly/react-core';
import pluralize from 'pluralize';
import { policiesBasePath ... |
/*
* Lumeer: Modern Data Definition and Processing Platform
*
* Copyright (C) since 2017 Lumeer.io, s.r.o. 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 as published by
* the Free Software Foundation, either ... |
<filename>models/mobilenet/mobilenet.ts
/**
* @license
* Copyright 2017 Google 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/license... |
import React, { FC, createContext, useRef, useEffect } from "react";
export interface IDragStartParams {
draggableData: any;
x: number;
y: number;
}
export interface IDragParams {
draggableData: any;
x: number;
y: number;
}
export interface IDropParams {
draggableData: any;
droppableData: any;
x: n... |
import React, { useState, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { StyleSheet, FlatList, TouchableOpacity, Platform, Image, View } from 'react-native';
import { PrayerCard, SkeletonCard, Text, BoldText } from '@/components';
import { Feather } from '@expo/vector-icons';
import isEmp... |
<reponame>KrishnaRPatel/glimmer-vm
// eslint-disable-next-line node/no-extraneous-import
import { Reference } from '@glimmer/reference';
import { SimpleElement } from '@simple-dom/interface';
import {
ComponentDefinitionState,
PreparedArguments,
ComponentInstanceState,
} from '../../components';
import { Option, ... |
import {
npx,
DEFAULT_FONT_CONFIG,
isNumber,
DEFAULT_FONT_SIZE,
DEFAULT_FONT_COLOR,
makeFont,
npxLine,
assert,
parseError,
ERROR_FORMULA_COLOR,
} from "@/util";
import { isEmpty, isNil } from "@/lodash";
import { CellInfo, EWrap } from "@/types";
const getStyle = (
key: "lineHeight" | "letterSpac... |
import OpenInNewIcon from 'mdi-react/OpenInNewIcon'
import classnames from 'classnames'
import React, { useState, useCallback, useMemo } from 'react'
import { Link } from '../../../../../shared/src/components/Link'
import { FilterType } from '../../../../../shared/src/search/interactive/util'
import { buildSearchURLQue... |
import StringCheck from '@double-agent/analyze/lib/checks/StringCheck';
import ITlsClienthelloProfile from '@double-agent/collect-tls-clienthello/interfaces/IProfile';
import IClientHello from '@double-agent/tls-server/interfaces/IClientHello';
import NumberCheck from '@double-agent/analyze/lib/checks/NumberCheck';
imp... |
<filename>src/highlighters/static.ts<gh_stars>10-100
// originally from: https://github.com/codemirror/search/blob/main/src/selection-match.ts
import { syntaxTree } from "@codemirror/language";
import { SearchCursor } from "@codemirror/search";
import { combineConfig, Compartment, Extension, Facet } from "@codemirror/s... |
import uniqWith from "lodash/uniqWith";
import type { Account, DerivationMode } from "../types";
import { validateNameEdition } from "./accountName";
import { clearAccount } from "./helpers";
import { findAccountMigration } from "./support";
// Reference all possible support link
// For now we have only one, but we can... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
import {
ChangeDetectionStrategy,
Component,
ElementRef,
EventEmitter,
forwardRef,
Inject,
Input,
Optional,
Output,
QueryList,
ViewChildren,
} from '@angular/core';
import {
AbstractTuiInteractive,
clamp,
EMPTY_QUERY,
isNativeFocusedIn,
setNativeFocused,
... |
import { MachineConfig } from 'xstate'
import { ConnectionContext, ConnectionState } from '@/connection/types'
import { ConnectionMessage } from '@/connection/message'
// common timeout settings
const TIMEOUT_DELAY = 7000
const timeout = { after: { [TIMEOUT_DELAY]: { actions: 'failTimeout', target: '#disconnected' } }... |
<reponame>piobyte/flamingo<filename>packages/flamingo/src/addon/loader.ts<gh_stars>1-10
/* eslint-disable @typescript-eslint/ban-types */
import path = require("path");
import fs = require("fs");
import assign = require("lodash/assign");
import assert = require("assert");
import forOwn = require("lodash/forOwn");
impo... |
/**
* @file
*/
import * as TE from 'fp-ts/lib/TaskEither';
import { parse } from './parse';
import { Module } from 'macoolka-type-model';
import * as path from 'path';
import { printModule } from './markdown';
import * as E from 'fp-ts/lib/Either';
import * as R from 'fp-ts/lib/Reader';
import * as A from 'fp-ts/lib/... |
<gh_stars>1-10
/* tslint:disable:no-inferrable-types */
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { TestBed, async, ComponentFixture, inject } from '@angular/core/testing';
import { Router, ActivatedRoute, convertToParamMap, ParamMap } from '@angular/router';
import { Location, APP_... |
<gh_stars>0
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------... |
import { ExternalLinkIcon } from "@chakra-ui/icons";
import { Badge, Box, Center, chakra, Divider, Heading, HStack, Image, Link, Spinner, VStack } from "@chakra-ui/react";
import React, { useEffect } from "react";
import { Redirect } from "react-router-dom";
import { Permission_Enum, useAttendeeByIdQuery } from "../../... |
#!/usr/bin/env node
import { Compiler } from '@0x/sol-compiler';
import { NameResolver } from '@0x/sol-resolver';
import { PackageJSON } from '@0x/types';
import { logUtils } from '@0x/utils';
import { CompilerOptions } from 'ethereum-types';
import * as fs from 'fs';
import * as _ from 'lodash';
import * as path from... |
<reponame>embedded-debug/embedded-debug<filename>src/debugger/views/nodes/peripheralfieldnode.ts
import { TreeItem, TreeItemCollapsibleState, window, debug } from 'vscode';
import { PeripheralBaseNode } from './basenode';
import { AccessType } from '../../svd/svd';
import { PeripheralRegisterNode } from './peripheralre... |
/*
* This script generates the empty RichContent object and writes specific plugin portions to dedicated json files
* residing in ricos-schema/dist/statics/. These files then define tiptap schemas for RicosExtensions.
*/
import * as E from 'fp-ts/Either';
import * as T from 'fp-ts/Tuple';
import * as A from 'fp-ts/A... |
import React, { useEffect, useState } from 'react';
import PageContentBlock from '@/components/elements/PageContentBlock';
import getStaffRequests from '@/api/staff/getStaffRequests';
import useFlash from '@/plugins/useFlash';
import tw from 'twin.macro';
import useSWR from 'swr';
import Spinner from '@/component... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.