text stringlengths 3.08k 15.5k |
|---|
<filename>src/index.ts
import axios, {
AxiosError,
AxiosInstance,
AxiosRequestConfig,
AxiosResponse,
} from 'axios';
/**
* Configuration for the Axios `request` method.
*/
export interface RetryConfig {
/**
* The number of times to retry the request. Defaults to 3.
*/
retry?: number;
/**
* T... |
import { Component, ComponentInterface, Element, Event, EventEmitter, h, Host, JSX, Method, Prop, State } from '@stencil/core';
import { P6Control } from '../../../shared/form/control';
import { InvalidEventDetail, isCustomEvent, ValidEventDetail } from '../../../shared/form/event';
import { Mode, Size } from '../../..... |
import { ethers } from "ethers";
import { addresses } from "../constants";
import { abi as OlympusStaking } from "../abi/OlympusStaking.json";
import { abi as OlympusStakingv2 } from "../abi/OlympusStakingv2.json";
import { abi as sOHM } from "../abi/sOHM.json";
import { abi as sOHMv2 } from "../abi/sOhmv2.json";
impor... |
<reponame>avoidik/automate
import { CUSTOM_ELEMENTS_SCHEMA, DebugElement } from '@angular/core';
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { RouterTestingModule } from '@angular/router/testing';
import { Observable, Subject, of as observabl... |
import {
EventFilter,
RequestArguments,
RpcProviderLogEntry,
TransactionRequest,
} from './index';
export type Api = {api: true; url?: string; network?: number};
type NamingServiceSource = {url?: string} | {provider?: Provider};
export type UnsLayerSource = NamingServiceSource & {
network: string;
proxyR... |
<gh_stars>0
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {CompilerConfig} from '@angular/compiler/src/config';
import {AfterContentChecked, AfterContentIn... |
<reponame>cuyl/aws-sdk-js-v3
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
import { CreateEndpointInput, CreateEndpointOutput } from "../models/models_0";
import {
deserializeAws_json1_1CreateEndpointCommand,
serializeAws_json1_1CreateEndpointCommand,
} f... |
import React, { useEffect, useRef, memo } from 'react';
import { useStoreActions, useStore } from '../../store/hooks';
import FlowRenderer from '../FlowRenderer';
import NodeRenderer from '../NodeRenderer';
import EdgeRenderer from '../EdgeRenderer';
import { onLoadProject, onLoadGetElements, onLoadToObject } from '..... |
import Vue from "vue";
import { vueEventDispatcher } from "../vue-event-dispatcher";
import { VueEventChannels } from "../vue-event-channels";
import { PluginSettings } from "./plugin-settings";
import { UserConfigOptions } from "../../common/config/user-config-options";
import { defaultWorkflowIcon } from "../../commo... |
<reponame>sammosna/storybook
/* eslint no-underscore-dangle: 0 */
import deprecate from 'util-deprecate';
import dedent from 'ts-dedent';
import { logger } from '@storybook/client-logger';
import { StoryFn, Parameters, DecorateStoryFunction } from '@storybook/addons';
import { toId } from '@storybook/csf';
import {
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<filename>bokehjs/src/lib/models/tools/edit/box_edit_tool.ts
import {Keys} from "core/dom"
import {PanEvent, TapEvent, KeyEvent, UIEvent, MoveEvent} from "core/ui_events"
import {Dimensions} from "core/enums"
import * as p from "core/properties"
import {Rect} from "../../glyphs/rect"
import {GlyphRenderer} from "../../... |
<reponame>userlea/BatchExplorer
import {
AfterViewInit, ChangeDetectorRef, Component, ContentChildren, HostBinding, Input, OnChanges, QueryList, Type,
} from "@angular/core";
import { FormControl } from "@angular/forms";
import { AsyncTask, Dto, ServerError, autobind } from "@batch-flask/core";
import { SanitizedEr... |
<gh_stars>10-100
import { IReduxState } from '../state';
import { AccountType, IAccountState, IWalletsState, IWalletState } from './state';
import { Blockchain, IBlockchainTransaction } from '../../core/blockchain/types';
import { createSelector } from 'reselect';
import { getChainId, getBlockchains } from '../prefere... |
<filename>src/utils/stringifyQueryParams.ts
import snakeCase from "lodash.snakecase";
import { AnyParams } from "../typeDefs";
type ValidQueryParams = AnyParams & { separator: string };
// These param names should not be re-cased. The API documentation specifies
// that these are the actual values to be passed in.
e... |
import { createServer, IncomingMessage, Server } from 'http'
import WebSocket from 'ws'
const isLambda = require('is-lambda')
const postToConnection = require('aws-post-to-connection')
const mappingKey = process.env.MAPPING_KEY || 'message'
// export function server(handler) {
// if (isLambda) {
// return handle... |
<filename>server/routerlicious/packages/lambdas/src/scribe/lambdaFactory.ts
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
/* eslint-disable no-null/no-null */
import { EventEmitter } from "events";
import { inspect } from "util";
import {
... |
import { Box, Button, Card, Divider, Grid, useTheme, Tabs, Tab } from '@material-ui/core'
import useTranslation from 'next-translate/useTranslation'
import React from 'react'
import get from 'lodash/get'
import StarIcon from '../../assets/images/icons/icon_star.svg'
import EditIcon from '../../assets/images/icons/icon_... |
// 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
<reponame>eggoynes/aws-solutions-constructs
/**
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://ww... |
import {v4} from 'uuid';
import {Action} from 'redux';
import {omit, without} from 'lodash';
import {NetworkedAction} from '../util/types';
import {getDiceResultString} from '../presentation/diceBag';
// =========================== Action types and generators
enum DiceReducerActionTypes {
ADD_DICE_ACTION = 'add-... |
import { GameScene } from "../../scenes/gameScene";
import fontStyles from "../../configs/enums/fontStyles"; // Contains basic font styles used by the game
const BARWIDTH = 100; // size of the bar. Used both as BG size and to calculate the size of contained bar
export class ComboManager {
private text: Phaser.GameO... |
<reponame>sisco0/hardhat-core
import util from "util";
import { HardhatError } from "../core/errors";
import { ERRORS } from "../core/errors-list";
const inspect = Symbol.for("nodejs.util.inspect.custom");
/**
* This module provides function to implement proxy-based object, functions, and
* classes (they are funct... |
/*
* 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 { useEffect, useMemo, useState } from 'react';
import { combineLatest,... |
/**
* 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.
*/
// eslint-disable-next-line spaced-comment
/// <reference types="@docusaurus/module-type-aliases" />
import type {RemarkAndRehype... |
export interface IForm {
dirty: boolean;
valid: boolean;
touched: boolean;
}
export interface IAll {
form: IForm,
running: boolean
tickSpeed: number
scheme: any
fieldDetails: any
data: any
}
export interface IFormManager {
fields: any,
fieldScheme: any
form: IForm,
data: any,
all: IAll,
... |
// Copyright 2020 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import {Observable, Subject} from 'rxjs';
import {mergeMap} from 'rxjs/operators';
import BufferBuilder = require('buffer-builder');
/**
* D... |
<gh_stars>0
import { kea } from 'kea'
import equal from 'fast-deep-equal'
import api from 'lib/api'
import { toast } from 'react-toastify'
import { SESSIONS_WITH_RECORDINGS_FILTER, SESSIONS_WITH_UNSEEN_RECORDINGS } from 'scenes/sessions/filters/constants'
import { sessionsFiltersLogicType } from './sessionsFiltersLogic... |
import * as React from "react";
import AppBar from "@mui/material/AppBar";
import Box from "@mui/material/Box";
import Drawer from "@mui/material/Drawer";
import IconButton from "@mui/material/IconButton";
import List from "@mui/material/List";
import ListItem from "@mui/material/ListItem";
import ListItemIcon from "@m... |
<filename>src/controller/IssueController.ts
import * as express from "express";
import { projectSchema } from "../model/Project";
import * as mongoose from "mongoose";
import * as dotenv from "dotenv";
dotenv.config();
let DB_ADDRESS: string;
switch (process.env.NODE_ENV) {
case 'test':
DB_ADDRESS = proc... |
import { useRef, useState } from "react";
import type { NextPage } from "next";
import { useRouter } from "next/router";
import {
Button,
Col,
Form,
InputGroup,
ListGroup,
Row,
Table,
} from "react-bootstrap";
import { FaPaperPlane, FaPlus, FaTrash } from "react-icons/fa";
import ButtonIcon from "../../c... |
<reponame>ascripcaru/nebular<gh_stars>1-10
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { Component, HostBinding, Input } from '@angular/core';
import { NbComponentStatus } from '../component-status'... |
/**
* Datart
*
* Copyright 2021
*
* 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 t... |
import { promisify } from 'util';
import { unlink } from 'fs';
import { join } from 'path';
import { spawn } from 'child_process';
import * as locker from 'lockfile';
import * as puppeteer from 'puppeteer-core';
import { readFileAsync, writeFileAsync } from '@hint/utils-fs';
import { debug as d } from '@hint/utils-de... |
/**
* Copyright 2015 CANAL+ Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
import 'styling/_Searchbox';
import { exportGlobally } from '../../GlobalExports';
import { $$ } from '../../utils/Dom';
import { SVGDom } from '../../utils/SVGDom';
import { SVGIcons } from '../../utils/SVGIcons';
import { SearchBoxResize } from '../../utils/SearchBoxResize';
import { Component } from '../Base/Compone... |
import React, { useState, useRef, useMemo } from 'react';
import {
Drawer as AntdDrawer,
Button,
Collapse,
Modal,
Radio,
Popover,
} from 'antd';
import { DeleteFilled, InfoCircleFilled } from '@ant-design/icons';
import { DndProvider, useDrag, useDrop } from 'react-dnd';
import { HTML5Backend } from 'react-... |
<reponame>ffMathy/yargs
// Taken from yargs-parser@19.0.1
// TODO: update this file periodically.
import type {Dictionary, ValueOf} from './common-types.js';
type KeyOf<T> = {
[K in keyof T]: string extends K ? never : number extends K ? never : K;
} extends {[_ in keyof T]: infer U}
? U
: never;
export declare... |
/** ****************************************************************************
* Copyright 2009-2020 Exactpro (Exactpro Systems Limited)
*
* 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... |
import reduce from 'lodash/reduce';
import each from 'lodash/each';
import find from 'lodash/find';
import DataStore, { getSourceItem, getSourceItemVirtualIndexByProp, Groups, setSourceByVirtualIndex } from '../store/dataSource/data.store';
import { columnTypes } from '../store/storeTypes';
import { ColumnItems } from... |
import { ExtensionContext, TreeDataProvider, EventEmitter, TreeItem, Event, window, TreeItemCollapsibleState, Uri, commands, workspace, TextDocumentContentProvider, CancellationToken, ProviderResult } from 'vscode';
import * as Client from 'ftp';
import * as path from 'path';
import { IEntry } from '../models/ientry';... |
import React, { ReactElement } from 'react';
import SwitchDataSource from '../components/SwitchDataSource';
import ErrorSummary from '../components/ErrorSummary';
import FormElementWrapper from '../components/FormElementWrapper';
import { FullColumnLayout } from '../layout/Layout';
import {
SERVICE_LIST_ATTRIBUTE,
... |
import * as ts from 'typescript';
import { factory } from 'typescript';
import { decodeName } from './decoder';
import { EventErrParameter, eventName } from './provider';
import { ContractMethodsList, getRealType, InputOutput, sha3 } from './solidity';
import {
arrowFuncT,
CancelStreamSignalType,
constObject,
c... |
import React, { useState, useRef, useEffect } from 'react'
import p5 from 'p5';
import CircularProgress from '@mui/material/CircularProgress';
import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';
import background from "@assets/images/backgroundSmall.jpg";
type objCollide = {
x:... |
<filename>src/methods/copy.ts
import { ITreeData, IEleTree, IEmitPayloadOtherOptions } from '../interface'
import { EleTree } from '../eleTree'
import reloadVnode from '../vnode/reloadVnode'
import { getNodeDataById, paramDetection, updateData } from '../opera/tools'
import { symbolAttr } from '../config'
import { emit... |
import _ from "lodash";
type MousePosition = {
x: number;
y: number;
}
type Canvas = {
element: HTMLCanvasElement,
context: CanvasRenderingContext2D,
width: number,
height: number
}
type RGB = {
r: number;
g: number;
b: number;
}
class Point{
private static readonly ALPHA_THR... |
import React from 'react';
import { isEqual } from 'lodash';
import {
FixtureDecoratorId,
FixtureState,
createValues,
extendWithValues,
getFixtureStateClassState,
findFixtureStateClassState,
createFixtureStateClassState,
removeFixtureStateClassState
} from 'react-cosmos-shared2/fixtureState';
import { F... |
import { IDictionary, map } from '@toolkip/object-helpers';
import { nextRender, wait } from '@toolkip/async';
import { addClass, removeClass } from "./css";
import { createStyleElement } from "./styleElement";
import { stringifyStyle } from "./stringifier";
import { ITransitionStyle, ITransitionDetails } from "./_inte... |
import * as React from "react";
import {
createContext,
ReactNode,
useContext,
useEffect,
useRef,
useState
} from "react";
import {SmallScreenSpinner} from "Component/SmallScreenSpinner";
import {Config} from "Config";
import {createClient} from "@supabase/supabase-js";
import {TextSpan} from "Component/Tex... |
import React, {
ReactNode,
Context,
createContext,
memo,
useEffect,
useRef,
useCallback,
useMemo,
} from "react";
import styled from "styled-components";
import { isEqual } from "lodash";
import { WidgetProps } from "widgets/BaseWidget";
import { getCanvasSnapRows } from "utils/WidgetPropsUtils";
import... |
interface Window {
clients: any
skipWaiting: any
importScripts: any
assetsUrl: any
assetsManifest: any
defaultUrl: any
prohibitedUrls: any
serverHandledUrls: any
serverRenderedUrls: any
caseInsensitiveUrl: any
assetsInclude: any
assetsExclude: any
externalAssets: an... |
import * as React from 'react';
import { Platform, StyleSheet, View, SafeAreaView } from 'react-native';
import { RNCamera } from 'react-native-camera';
import type { RNCameraProps, RecordOptions, RecordResponse } from 'react-native-camera';
import { getModel } from 'react-native-device-info';
import { Model, getCurre... |
import { createRequire } from 'module'
import fs from 'fs-extra'
import path from 'path'
import { pathToFileURL } from 'url'
import escape from 'escape-html'
import { normalizePath, transformWithEsbuild } from 'vite'
import { RollupOutput, OutputChunk, OutputAsset } from 'rollup'
import { HeadConfig, createTitle } from... |
import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
import { CreateAliasRequest } from "../models/models_0";
import {
deserializeAws_json1_1CreateAliasCommand,
serializeAws_json1_1CreateAliasCommand,
} from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "@aws-s... |
import React, { Component, HTMLAttributes, MouseEventHandler, ReactNode, SyntheticEvent } from 'react';
import Tappable from '../Tappable/Tappable';
import PopoutWrapper from '../PopoutWrapper/PopoutWrapper';
import { getClassName } from '../../helpers/getClassName';
import { classNames } from '../../lib/classNames';
i... |
<gh_stars>0
import * as AWS from 'aws-sdk';
import * as fuzzy from 'fuzzy';
import * as inquirer from 'inquirer';
import chalk from 'chalk';
import { argv } from './args';
const SharedIniFile = require('aws-sdk/lib/shared_ini');
inquirer.registerPrompt('directory', require('inquirer-select-directory'));
inquirer.regi... |
import {ModuleWithProviders, NgModule} from '@angular/core';
//import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {CommonModule} from '@angular/common';
import {NgbAccordionModule, NgbPanelChangeEvent} from './accordion/accordion.module';
import {NgbAlertModule} from './alert/alert.mo... |
import { GmScreenConfig, GmScreenGrid, GmScreenGridEntry } from '../gridTypes';
import { MODULE_ABBREV, MODULE_ID, MySettings, numberRegex } from './constants';
export function log(force: boolean, ...args) {
//@ts-ignore
const shouldLog = force || window.DEV?.getPackageDebugValue(MODULE_ID);
if (shouldLog) {
... |
/*
* 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 fs from 'fs';
import path from 'path';
import sinon from 'sinon';
imp... |
import {IColumnDesc, LocalDataProvider} from 'lineupjs';
import {ProvenanceGraph, ParseRangeUtils, PluginRegistry, IDTypeManager, ObjectRefUtils, Range} from 'phovea_core';
import {ARankingView} from '../lineup/ARankingView';
import {IARankingViewOptions} from '../lineup/IARankingViewOptions';
import {IInitialRankingOp... |
import { Box, Theme, useTheme } from '@mui/material';
import useMediaQuery from '@mui/material/useMediaQuery';
import { CircularLoader } from 'components/Loader';
import { Pane } from 'components/Panes';
import Tabs from 'components/Tabs/Tabs';
import { VisualiserController } from 'components/Visualisation/Controller';... |
<reponame>snoeckie/ngx-bootstrap
import { Time, TimepickerComponentState } from '../../timepicker/timepicker.models';
import {
isValidDate,
isValidLimit,
toNumber,
isNumber,
parseHours,
parseMinutes,
parseSeconds,
parseTime,
changeTime,
setTime,
createDate,
padNumber,
isHourInputValid,
isMin... |
import * as _ from 'lodash-es';
import * as React from 'react';
import * as classNames from 'classnames';
import { sortable } from '@patternfly/react-table';
import { BanIcon } from '@patternfly/react-icons';
import { DetailsPage, ListPage, Table, TableRow, TableData } from './factory';
import {
AsyncComponent,
Ke... |
import React, { useState } from 'react';
import { mount, ReactWrapper } from 'enzyme';
import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import selectEvent from 'react-select-event';
import { SelectBase } from './SelectBase';
import { SelectableValue } from '@... |
<reponame>heysailor/redux-worker-queue<gh_stars>1-10
import 'jest';
import { find } from 'lodash';
import { HandlerPromiseResponse, Store } from '../types';
import WorkerQueue from '../WorkerQueue';
import { QueueItem } from './item';
import { Queue } from './types';
import * as queueDuck from './duck';
import * as roo... |
<gh_stars>1-10
import path from 'path';
import fs from 'fs-extra';
import {
MainAspect,
AspectLoaderMain,
getCoreAspectName,
getCoreAspectPackageName,
getAspectDir,
} from '@teambit/aspect-loader';
import { ComponentMap } from '@teambit/component';
import { PathAbsolute } from 'bit-bin/dist/utils/path';
impor... |
<gh_stars>1-10
import loadResource from "./demolishedLoader";
export class DemolishedSoundPeaks{
static peaks(buffer:AudioBuffer, size:number):Array<number> {
let sampleSize = buffer.length / size;
let sampleStep = ~~(sampleSize / 10) || 1;
let channels = buffer.numberOfChannels;
... |
import { CommandArgument, CommandSpec } from '../model/command';
import fs from 'fs';
import path from 'path';
import { Keypair } from '@solana/web3.js';
import {
FileSet,
findItemsThatNeedProcessing,
Manifest,
organizeFiles,
UploadError,
UploadItem,
uploadMediaFiles,
validateFileSet,
} from './upload';... |
import { createContext, useContext } from 'react';
import { Descriptors, LedgerClient } from '../ledgerIpc';
import axios, { AxiosError, AxiosInstance } from 'axios';
import { Psbt } from 'bitcoinjs-lib';
import { BigNumber } from 'ethers';
import { btcIntoCurVal } from '../utils/currency';
function jsonRpcResponseInt... |
import React from 'react';
import styled from 'styled-components';
import { t } from 'ttag';
import ModalDialog from '../ModalDialog';
import { PrimaryButton } from '../Button';
import CloseButton from '../CloseButton';
import colors from '../../lib/colors';
import { getJoinedMappingEventData } from '../../lib/savedS... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// We want all the Response models to be in this file
/* eslint-disable max-classes-per-file */
import { KustoResultTable, Table, WellKnownDataSet } from "./models";
interface V2DataSetHeaderFrame {
FrameType: "DataSetHeader";
IsProgr... |
<reponame>akasaki-is-a-rubbish/MusicCloud
// file: ListContentView.ts
import { View, ListViewItem, ListView, LazyListView, LoadingIndicator, buildDOM, FuncOrVal } from "./viewlib";
import { I } from "../I18n/I18n";
import { ContentView, ContentHeader, ActionBtn } from "./ui-views";
class DataBackedListViewItem ... |
import React, { useState, useEffect } from "react";
import { Tab, Tabs, TabList, TabPanel } from "react-tabs";
import classnames from "classnames";
import { format } from "date-fns";
import FileSaver from "file-saver";
import { get } from "lodash";
// @ts-ignore
import convertToCSV from "utilities/convert_to_csv"; // ... |
import { Logging as MatrixLogger } from 'matrix-appservice-bridge';
import yargs from 'yargs/yargs';
import ConfigReader from './src/configuration/ConfigReader';
import Database from './src/repositories/Database';
import logger, { configureLogger, logExt } from './src/util/logger';
import WebhookService from './src/We... |
import * as assert from 'assert';
import * as path from 'path';
import { BettererConfig, BettererConfigFilters, BettererConfigPaths } from '../config';
import { COULDNT_READ_CONFIG } from '../errors';
import { BettererReporter } from '../reporters';
import { print, read, write, NO_PREVIOUS_RESULT, BettererExpectedResu... |
<gh_stars>0
import { getRamCost } from "./RamCostGenerator";
import type { IPort } from "../NetscriptPort";
import type { BaseServer } from "../Server/BaseServer";
import type { WorkerScript } from "./WorkerScript";
import { makeRuntimeRejectMsg } from "../NetscriptEvaluator";
import { Player } from "../Player";
import... |
import DfiEventObject from "./dfiEventObject";
import {IDfiBaseCollectionConfig, IDfiBaseCollectionEvents, IDfiProxyCallback, TEventName} from "./dfiInterfaces";
import DfiModel from "./dfiModel";
const PROP_COLLECTION = "collection";
const PROP_PROXY_CALLBACKS = "proxyCallbacks";
const PROP_ID_FIELD = "idField";
cons... |
<filename>src/coord/cartesian/Cartesian2D.ts<gh_stars>1-10
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under th... |
import fs from 'fs-extra';
import { isDefined, isUndefined, ObjectOf } from '@upradata/util';
export interface FilePrint {
mtime: number;
criteria?: string | number;
extra?: any;
}
export function isFilePrint(v: any): v is FilePrint {
return isDefined(v) && isDefined(v.mtime) && typeof v.mtime === '... |
import * as cdk from 'aws-cdk-lib'
import { Template } from 'aws-cdk-lib/assertions'
import * as ecs from 'aws-cdk-lib/aws-ecs'
import * as iam from 'aws-cdk-lib/aws-iam'
import * as lambda from 'aws-cdk-lib/aws-lambda'
import { Construct } from 'constructs'
import * as common from '../../lib/common'
import * as types ... |
import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
import {UsersService} from '../users.service';
import {SignupService} from '../signup/signup.service';
import { Observable} from 'rxjs';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@an... |
import { Base } from '../base';
import { Identity } from '../../identity';
import Transport, { Message } from '../../transport/transport';
import RefCounter from '../../util/ref-counter';
import { EventEmitter } from 'events';
import { Channel } from './channel/index';
import { validateIdentity } from '../../util/valid... |
<reponame>irzhywau/Elastos.Essentials.App
import { Logger } from "src/app/logger";
import { GlobalJsonRPCService } from "src/app/services/global.jsonrpc.service";
import { TokenType } from "../coin";
import { ERCTokenInfo, EthTokenTransaction, EthTransaction } from "../evm.types";
import { ERC20SubWallet } from "../wal... |
<reponame>TheRakeshPurohit/bit<filename>src/hooks/hooks-manager.ts
import R from 'ramda';
import { inspect } from 'util';
import { HOOKS_NAMES } from '../constants';
import logger from '../logger/logger';
import * as errors from './exceptions';
export type HookAction = {
name: string | null | undefined;
run: Funct... |
<filename>desktop/src/app/components/app-initializer.ts
import { CategoryConverter, ConfigLoader, ConfigReader, ConfigurationDocument, ConstraintIndex, DocumentCache, FulltextIndex, Indexer, IndexFacade, PouchdbDatastore,
ProjectConfiguration } from 'idai-field-core';
import { AngularUtility } from '../angular/angu... |
import * as tge from "../../engine"
import * as constant from "./constant"
import { Game } from "./game"
export interface Cell {
x: number;
y: number;
kind: number; //see ascii_art/cc0.txt ... cc16.txt
}
export interface Piece {
kind: number;
x: number;
y: number;
cells: Cell[];
}
export ... |
import crypto from 'crypto'
/** Helper function to force the input to be of a certain type. */
export function literal<T>(o: T): T {
return o
}
/**
* Returns a string that changes whenever the input changes.
* Does NOT depend on the order of object attributes.
*/
export function hashObj(obj: unknown): string {
if... |
import { logger as log, ViewNode, registerElement } from '../basicdom'
import { isAndroid, isIOS } from '@nativescript/core/ui/page';
import ElementNode from '../basicdom/ElementNode';
import { ObservableArray } from '@nativescript/core/data/observable-array/observable-array';
export enum NativeElementPropType {
... |
import Keycloak, { KeycloakInitOptions, KeycloakInstance } from 'keycloak-js'
import AuthModule from '@/store/modules/auth'
import ConfigHelper from '@/utils/config-helper'
import { SessionStorageKeys } from '@/utils/constants'
import { Store } from 'vuex'
import { getModule } from 'vuex-module-decorators'
class Token... |
<gh_stars>1-10
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
// Node module: @loopback/boot
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {
Binding,
BindingFilter,
BindingFromClassOptions,
BindingScope,
Constructor,
Context,... |
import { del, get, keys, set } from 'idb-keyval'
import { Chunk, DBCard } from './database'
export type DatabaseMessage = FindCardMessage | SearchCardsMessage | LoadDBMessage
export interface FindCardMessage {
function: 'findCard'
name: string
}
export interface SearchCardsMessage {
function: 'searchCards'
... |
import toStream from "buffer-to-stream"
import { EventEmitter } from "events"
import equal from "fast-deep-equal"
import { default as Connection, default as imap } from "imap"
import { Range, Seq, Set } from "immutable"
import moment from "moment"
import { Transporter } from "nodemailer"
import Mailer from "nodemailer/... |
<filename>src/client/apiTypes.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { Event, Uri } from 'vscode';
import { Resource } from './common/types';
import { IDataViewerDataProvider, IJupyterUriProvider } from './jupyter/types';
import { EnvPathType, PythonEn... |
<filename>Composer/packages/client/src/utils/luUtil.ts
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* luUtil.ts is a single place use lu-parser handle lu file operation.
* it's designed have no state, input text file, output text file.
* for more usage detail, please check client/_... |
import { useMemo, useCallback, useState } from "react";
import * as Selectors from "../selectors";
import { useTypedSelector } from "../hooks";
const PIXEL_DENSITY = 2;
const BAR_WIDTH = 3 * PIXEL_DENSITY;
const GRADIENT_COLOR_COUNT = 16;
const PEAK_COLOR_INDEX = 23;
const BAR_PEAK_DROP_RATE = 0.01;
const NUM_BARS = ... |
<gh_stars>1-10
/**
* @license
*
* Copyright IBM Corp. 2019, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { html, property, query, customElement, LitElement } from 'lit-element';
import { classMap } from 'lit-h... |
/********************************************************************************
* Copyright (C) 2018-2019 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
<reponame>o-dasher/Alice
import { Symbols } from "@alice-enums/utils/Symbols";
import { Subcommand } from "@alice-interfaces/core/Subcommand";
import { OnButtonPageChange } from "@alice-interfaces/utils/OnButtonPageChange";
import { PerformanceCalculationResult } from "@alice-interfaces/utils/PerformanceCalculationResu... |
<reponame>dnduffy/opencensus-node
/**
* Copyright 2018 OpenCensus 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
*
* Unl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.