text stringlengths 3.3k 33k |
|---|
import { component, property, query, render, html, css, renderContainer, nothing, event, PropertyValues } from '../../library'
import { Snackbar } from '..'
import { ComponentMixin } from '../..'
import { Dialog as MwcDialog } from '@material/mwc-dialog'
export type DialogSize = 'large' | 'medium' | 'small'
export ty... |
let p1: ISamplePoint = {
p: [0, 0, 0],
n: [-1, -1, 0]
};
let p2: ISamplePoint = {
p: [1, 0, 0],
n: [1, -1, 0]
};
let p3: ISamplePoint = {
p: [1, 1, 0],
n: [1, 1, 0]
};
let p4: ISamplePoint = {
p: [0, 1, 0],
n: [-1, 1, 0]
};
let points1 = PNTriangles(p1, p2, p3);
let points2 = PNTriangles... |
import * as React from "react"
import { useState } from "react"
import memoize from "memoize-one"
import { OrdinalFrameProps } from "./types/ordinalTypes"
import { XYFrameProps } from "./types/xyTypes"
import { CustomHoverType } from "./types/annotationTypes"
const framePropHash = {
NetworkFrame: true,
XYFrame: ... |
<reponame>rudty/nodekell<filename>types/utils.d.ts
// TypeScript Version: 3.4
export type Nullable<T, U extends null | undefined = null> = T | U;
export type Length<T extends any[]> = T["length"];
export type Pos<I extends any[]> = Length<I>;
export type Next<I extends any[]> = Prepend<any, I>;
export type Cast<T,... |
/**
* egjs-grid
* Copyright (c) 2021-present NAVER Corp.
* MIT license
*/
import Grid from "../Grid";
import { PROPERTY_TYPE } from "../consts";
import { GridOptions, Properties, GridOutlines } from "../types";
import { GetterSetter } from "../utils";
import { GridItem } from "../GridItem";
import BoxModel from "./... |
// Type definitions for instabug-reactnative 8.0
// Project: https://github.com/Instabug/instabug-reactnative#readme
// Definitions by: <NAME> <https://github.com/alyezz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export namespace BugReporting {
function setEnabled(isEnabled: boolean): void;
... |
import { Grid, ChartMenuOptions, CreateRangeChartParams, FirstDataRenderedEvent, GridOptions } from '@ag-grid-community/core'
declare var moment: any;
const gridOptions: GridOptions = {
columnDefs: [
{ field: 'timestamp', chartDataType: 'time' },
{ field: 'cpuUsage' },
],
defaultColDef: {
flex: 1,
... |
import {introspect} from "../../reflection";
import {CodeFragment} from "../builders";
import {FuncopDef} from "../generators/generateFunctionTypes";
import {getStringRepresentation} from "../generators/generateObjectTypes";
import {Casts} from "../queries/getCasts";
import {Param} from "../queries/getFunctions";
impor... |
import debugModule from "debug";
const debug = debugModule("codec:wrap:priority");
import * as Format from "@truffle/codec/format";
import type { AddressLikeType, NumericType, TupleLikeType } from "./types";
import type { Mutability } from "@truffle/codec/common";
import { maxValue, minValue, places } from "./utils";
... |
import { EventEmitter } from 'events'
import { Client } from './Client'
import { ProjectorInput } from './Types'
import { CommandInterface, GenericCommandInterface } from './GenericCommands'
import * as Commands from './Commands'
import { ResponseCode, getResponseDescription } from './Responses'
const EMPTY_LAMBDA =... |
import {
DataSourcePluginOptionsEditorProps,
onUpdateDatasourceSecureJsonDataOption,
onUpdateDatasourceJsonDataOption,
onUpdateDatasourceJsonDataOptionChecked,
onUpdateDatasourceJsonDataOptionSelect,
} from '@grafana/data';
import { LegacyForms, InlineFormLabel } from '@grafana/ui';
import React, { PureCompon... |
import observable = require("data/observable");
import view = require("ui/core/view");
import proxy = require("ui/core/proxy");
import definition = require("ui/list-view");
import dependencyObservable = require("ui/core/dependency-observable");
import color = require("color");
import * as builderModule from "ui/builde... |
import { DatasetCore, Quad, Quad_Graph, Quad_Object, Quad_Predicate, Quad_Subject, Term } from "@rdfjs/types";
import { DataFactory } from "n3";
import TermDict from "../TermDict";
import * as PrecUtils from './utils';
import namespace from '@rdfjs/namespace';
const rdf = namespace("http://www.w3.org/1999/02/22-rdf-s... |
<filename>src/hooks/useAnimationFrame.tsx
import { useEffect, useRef, useCallback } from "react";
import type { MutableRefObject } from "react";
import { getMean } from "Utils/math";
import type { Vector } from "Utils/math";
/**
* A custom hook to use `requestAnimationFrame` in a React component, with interactivity
... |
import React from "react";
import Link from "next/link";
import Select from "@mui/material/Select";
import MenuItem from "@mui/material/MenuItem";
import TableRow from "@mui/material/TableRow";
import TableCell from "@mui/material/TableCell";
import Grid from "@mui/material/Grid";
import ReportProblemIcon from "@mui/... |
<filename>node_modules/styled-icons/feather/index.d.ts
export { Activity } from './Activity';
export { Airplay } from './Airplay';
export { AlertCircle } from './AlertCircle';
export { AlertOctagon } from './AlertOctagon';
export { AlertTriangle } from './AlertTriangle';
export { AlignCenter } from './AlignCenter';
exp... |
import { FILLED, BLOCKED, EMPTY, Puzzle } from "./store/types";
export const createEmptyBoard = (rows: number, columns: number): string[][] => {
const board: string[][] = [];
let row: string[] = [];
for (let i = 0; i < rows; i++) {
row = Array(columns);
row.fill(EMPTY);
board.push(... |
/* eslint-disable camelcase */
import { groupBy, isEqual, mapValues, set, uniqWith, unset } from 'lodash'
import copy from 'fast-copy'
import i18n from 'src/i18n/i18n'
import { UNKNOWN_VALUE } from 'src/constants'
import type {
AnalysisResult,
AnalysisResultWithMatch,
AnalysisResultWithoutClade,
Nucleotide,
}... |
import { EditorState } from '../immutable/EditorState';
import { SelectionState } from '../immutable/SelectionState';
import { DraftInlineStyle } from '../immutable/CharacterMetadata';
import { ContentState } from '../immutable/ContentState';
import { ContentBlock } from '../immutable/ContentBlock';
import { BlockMap }... |
import 'chartjs-plugin-annotation';
import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges, ViewChild } from '@angular/core';
import { PopoverController } from '@ionic/angular';
import { Chart, ChartOptions } from 'chart.js';
import moment, { Moment } from 'moment';
import { BelaqiIndexService, Bel... |
<gh_stars>0
import { Service } from '../framework/Service';
import { DefaultBot } from '../framework/DiscordBot';
import { Message, MessageEmbedField, RichEmbed, VoiceConnection } from 'discord.js';
import * as request from 'request-promise-native';
import { YoutubeVideo } from './YoutubeVideo';
import * as Stream... |
import {Headers} from '../helper/headers'
import {URL}
from 'url'
import {
AddCollectionToAllowlistArgs,
AddQueryToCollectionArgs,
CreateCollectionArgs,
DropCollectionArgs,
DropCollectionToAllowlistArgs,
DropQueryFromCollectionArgs,
} from './arg_types/query_collection'
import {
AddHostToTlsAllowlistArg... |
import {Checkbox, Accordion, AccordionDetails, AccordionProps, AccordionSummary, Grid, Radio, Typography} from "@material-ui/core";
import React, {Dispatch, DispatchWithoutAction, useRef} from "react";
import {Widget} from "../../widgets/Widget";
import {observe} from "../../pattern/Observable";
import ExpandMore from ... |
'use strict';
import { Utilities } from "./utilities";
/**
* Language Code and Language Name Mapping
* Source data:
* https://docs.microsoft.com/en-us/azure/cognitive-services/translator/language-support#translation
*/
const LANGUAGE_MAP: { [key:string]: string } ={
"af" : "Afrikaans",
"ar" : "Arabic",
"bn"... |
import React, { useState, useEffect } from 'react'
import { View, Text, Picker, ScrollView } from 'react-native'
import { Button, Icon } from 'react-native-elements'
import UserInfoComponent from './UserInfoComponent'
import ObservationEventListComponent from './ObservationEventListElementComponent'
import { useTransla... |
<gh_stars>1-10
import { MediaSession } from 'stanza/jingle';
import { JingleAction, JingleReasonCondition, JINGLE_INFO_ACTIVE } from 'stanza/Constants';
import StatsGatherer, { StatsEvent } from 'webrtc-stats-gatherer';
import StrictEventEmitter from 'strict-event-emitter-types';
import { EventEmitter } from 'events';
... |
import { CsvMapping } from 'app/core/ui-services/base-import.service';
import { Identifiable } from 'app/shared/models/base/identifiable';
import { BehaviorSubject, Observable } from 'rxjs';
import { BaseImportHandler, ImportHandler } from './base-import-handler';
import { ImportProcess } from './import-process';
impo... |
import * as React from "react";
import { CommandBar, ContextualMenuItemType, ICommandBarItemProps, Pivot, PivotItem, Sticky, StickyPositionType } from "@fluentui/react";
import { SizeMe } from "react-sizeme";
import { scopedLogger } from "@hpcc-js/util";
import nlsHPCC from "src/nlsHPCC";
import * as WsWorkunits from "... |
<reponame>bamblack/ag-grid
import {Chart} from "../chart";
import {PolarSeries} from "./polarSeries";
import {Group} from "../../scene/group";
import {Arc, ArcType} from "../../scene/shape/arc";
import {Line} from "../../scene/shape/line";
import {Text} from "../../scene/shape/text";
import {Selection} from "../../scen... |
<filename>packages/lib/utils/src/renVMUtils.ts
import { RenNetworkDetails } from "@renproject/contracts";
import {
Asset, BurnAndReleaseParams, Chain, EthArgs, LockAndMintParams, Logger, RenContract, RenTokens,
UnmarshalledMintTx, UTXOIndex,
} from "@renproject/interfaces";
import BigNumber from "bignumber.js";... |
<reponame>zmofei/mindmaps
import { NodeType, drawNode, NodeMargin, NodePadding, ListPadding, } from './nodeStyle'
import { NodeState } from './cavnas-node-types'
import { Editor } from './editor'
const editor = new Editor()
interface config {
context: string,
fatherId?: string,
type?: NodeType
}
type re... |
<reponame>Trustology/trustvault-nodejs-sdk
import { expect } from "chai";
import {
address,
bytes,
bytes1,
bytes10,
bytes11,
bytes12,
bytes13,
bytes14,
bytes15,
bytes16,
bytes17,
bytes18,
bytes19,
bytes2,
bytes20,
bytes21,
bytes22,
bytes23,
bytes24,
bytes25,
bytes26,
bytes27,... |
// tslint:disable:max-line-length
const en = {
app: {
mainTitle: 'Sparta',
connectingWarning: 'You need connect to wallet',
pages: {
overview: {
poolBalanceTitle: 'Pool Deposit/Withdrawal Price Curve',
distributions: 'Distributions',
poolInfoTitle: 'Pool information',
}... |
import {
AllowedMethods,
CachePolicy,
Distribution,
EdgeLambda,
ICachePolicy,
IOriginRequestPolicy,
LambdaEdgeEventType,
OriginRequestCookieBehavior,
OriginRequestHeaderBehavior,
OriginRequestPolicy,
OriginRequestQueryStringBehavior,
PriceClass,
ViewerProtocolPolicy
}... |
import React, {Component, useEffect, useState} from 'react';
import {
Text,
View,
StyleSheet,
Modal,
TouchableOpacity,
Alert,
} from 'react-native';
import {
widthPercentageToDP as wp,
heightPercentageToDP as hp,
} from 'react-native-responsive-screen';
import {Colors} from '../../resources/color';
impo... |
import { AttributeTypes, MendixXML, PackageContent, Property, PropertyGroup, PropertyType } from "./typings";
import PluginError from "plugin-error";
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
import { parseString } from "xml2js";
import replaceExt from "replace-ext";
import path from "pat... |
import { generateId, InjectableModule, injectProvider } from '../../scope';
import { TStateViewForStateConfig } from '../Store';
import { StateView } from '../StateView';
import { injectState } from './inject-state';
import { injectWatch } from './inject-watch';
import { injectChild } from './inject-child';
import { cr... |
import {
AccountResponseObject,
ApiKeyCredentials,
DydxClient,
SigningMethod,
TransferResponseObject,
} from '@dydxprotocol/v3-client'
import { getAccountId } from '@dydxprotocol/v3-client/build/src/lib/db'
import { ethers, utils } from 'ethers'
import Web3 from 'web3'
import { ensureMetamaskNetwork, equalsIg... |
import React, { useState, useCallback, useMemo, useEffect, useRef } from 'react';
import { Tree, TreeSelect, Divider, Input, Button } from 'antd';
import CustomizedTreeNode from '@layout/folder_creation';
import { v4 as uuid } from 'uuid';
import './styles.less';
const treeData = [
{
title: 'Folder 1',
value... |
import React from "react";
import cloneDeep from 'lodash/cloneDeep';
import { Button, Form, Modal } from "react-bootstrap";
import { CLIENT_URL_PATTERN, GeneralConfig, SlackUrlConverter, SlackUrlValidateResult, VALIDATION_FAILED, VALIDATION_SUCCESS, WIDTH_OPTION_LIST, WORKSPACE_URL_PATTERN } from "../Contract";
import ... |
<gh_stars>10-100
import GlobalData from "../Common/GlobalData";
import ResourceMgr from "../Manager/ResourceMgr";
import BattleMgr from "../Manager/BattleMgr";
import JCTool from "../SDK/JCTool";
import JCLib from "../SDK/JCLib";
const {ccclass, property} = cc._decorator;
@ccclass
export default class VSPage extends ... |
import { css, StyleSheet } from 'aphrodite';
import { padding, rgba } from 'css-verbose';
import * as React from 'react';
import { InjectedIntl, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { ToastContainer } from 'react-toastify';
import { Dispatch } from 'redux';
import { Grid } from ... |
import { Vault } from "../typechain/Vault";
import {ERC20} from "typechain/ERC20";
import { ethers } from "hardhat";
import { Signer, BigNumber, BigNumberish, BytesLike } from "ethers";
import * as readline from "readline-sync";
import {Tranche} from "../typechain/Tranche";
import {ERC20__factory} from "../typechain/fa... |
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { AuthService } from '@auth0/auth0-angular';
import { HubHttpService } from 'app/pages/hub-http-service';
import { Blockchain } from 'app/pages/tools/find-nodes-by-wallet/find-nod... |
import { RESTData, UnumDto, VerifiedStatus } from '../types';
import { DidDocument, DidDocumentService, JSONObj, PublicKeyInfo, ReceiptOptions, SignedDidDocument, ReceiptSubjectDidDocumentVerifiedData } from '@unumid/types';
import { requireAuth } from '../requireAuth';
import { CustError } from '../utils/error';
impo... |
import { Component, AfterViewInit, Input, ViewChild, ElementRef, ViewChildren, QueryList } from '@angular/core';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { ActivatedRoute, Router } from "@angular/router";
import { ApiService } from '../../shared/api.service';
import { LoaderSer... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as assert from 'assert';
import * as fs from 'fs-extra';
import * as sinon from 'sinon';
import uuid = require('uuid');
import { generateFlowAppForMicroservice, generateLogicAppForMicroservice } from '../../src/Gen... |
<gh_stars>10-100
declare namespace klinecharts {
interface KLineData {
timestamp: number;
open: number;
close: number;
high: number;
low: number;
volume?: number;
turnover?: number;
}
interface Precision {
price: number;
volume: number;
}
interface Viewport {
widt... |
import AutoComplete from '@/components/AutoComplete';
import Emote from '@/components/Emote';
import EmotePicker from '@/components/EmotePicker';
import {
BLOCK_MODE_ALLOW_ALL,
BLOCK_MODE_BLOCK_ALL,
LOAD_SUCCESS,
} from '@/constants';
import { makeResult } from '@/lib';
import { searchSiteTitle } from '@/lib/cont... |
import {
Action,
ClientServerPayload,
InitReturnPayload,
ServerClientPayload,
TICK,
} from "../../../shared/Protocol";
import { Map } from "./Map";
import { Player, Ship } from "./Player";
import { Entity, Port, Terrain } from "./WorldObjects";
import { avg, distance, packString } from "../../../shared/Util";... |
<reponame>cstork/PowerBI-Flowmap<filename>code/src/lava/bingmap/geoService.ts
import { copy } from '../type';
import { ILocation } from './converter';
import { Func, StringMap, keys } from '../type';
import { jsonp } from './jsonp';
var _injected = {} as StringMap<ILocation>;
export function inject(locs: StringMap<I... |
<filename>src/shared/socket-client/SocketClient.ts
import BigNumber from 'bignumber.js'
import pushable from 'it-pushable'
import { Datastore } from 'shared/Datastore'
import { dealStatuses } from 'shared/dealStatuses'
import { decodeCID } from 'shared/decodeCID'
import { Lotus } from 'shared/lotus-client/Lotus'
import... |
<reponame>salmanyaqoob/kudu-coupon
import {AfterViewInit, Component, ElementRef, OnInit, ViewChild, ViewEncapsulation} from '@angular/core';
import {animate, style, transition, trigger} from '@angular/animations';
declare const AmCharts: any;
import 'assets/charts/amchart/amcharts.js';
import 'assets/charts/amchart/g... |
// Copyright 2020 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 ... |
/* eslint-disable no-param-reassign */
import debugFactory from 'debug'
import { Config, Context } from 'semantic-release'
import {
AnalyzeCommitsContext,
BaseMultiContext,
Flags,
Package,
PluginOption,
VerifyConditionsContext,
} from '../typings'
import getCommitsFiltered from './getCommitsFiltered'
impo... |
import * as path from 'path';
import * as cdk from '@aws-cdk/core';
import * as lambda from '@aws-cdk/aws-lambda';
import * as sns from '@aws-cdk/aws-sns';
import * as sns_sub from '@aws-cdk/aws-sns-subscriptions';
import * as actions from '@aws-cdk/aws-cloudwatch-actions';
import { CpuMonitor } from './cpu-monitor';
i... |
$(document.documentElement).ready(() => {
var projectModule = new ProjectModule();
projectModule.init();
});
class ProjectModule {
private readonly projectId: number;
private readonly client: ProjectClient;
private readonly errorHandler: ErrorHandler;
private currentModule: ProjectModuleBase;
... |
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { Router, ActivatedRoute } from '@angular/router';
import { dividerHandler, imageHandler } from '../../../util/quill';
import { AuthService } from '../../../services/auth';
... |
import Ajv from 'ajv';
import { ValidateFunction } from 'ajv';
import fs from 'fs';
import path from 'path';
import yaml from 'js-yaml';
import * as migrations from './config-migration/migrations';
import { rootPath } from '../paths';
type Configuration = { [key: string]: any };
type ConfigurationDefaults = { [namespa... |
<reponame>vincasmiliunas/adventofcode-2019<gh_stars>0
import { assert, assertEquals } from "https://deno.land/std/testing/asserts.ts";
const p = (...x) => console.log(...x);
type Input = number[];
const parse_input = (input: string): Input => {
const lines = input.split(",");
return lines.map(x => parseInt(x));
... |
/**
* 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://www.apache.org/licenses/LICENSE-2.0
*
* or in th... |
import * as tags from '../tags';
import ApexDox from '../../engine/ApexDox';
import Utils from '../Utils';
import { existsSync } from 'fs';
import { resolve } from 'path';
import { window, workspace, WorkspaceFolder } from 'vscode';
import { Option } from '../..';
abstract class ApexModel {
protected _annotations... |
<gh_stars>10-100
import {parse as P, text as PT} from 'bennu';
import {stream} from 'nu-stream';
import * as C from '@france-ioi/persistent-c';
import {StepperContext} from "../api";
/* Generator that iterates over the elements of the string argument. */
function* iterate(s) {
while (!stream.isEmpty(s)) {
... |
<reponame>ascariandrea/fiume-in-piena<filename>services/data/src/vaccines/vaers/parseVAERSData.ts
// import * as fs from "fs";
import * as path from "path";
import { GetLogger } from "@liexp/core/logger";
import { GetCSVUtil } from "@liexp/shared/utils/csv.utils";
import { distanceFromNow } from "@liexp/shared/utils/da... |
import { memoize } from 'memoize-pure'
interface Vec extends Array<number> {
0: number
1: number
}
class Vec extends Array<number> {
get x() {
return this[0]
}
get y() {
return this[1]
}
toString() {
return this[0] + ' ' + this[1]
}
}
const vec = (x: number, y: number) => new Vec(x, y)
con... |
import { useEffect, useState, useCallback } from "react";
import { DropdownOptions } from "../constants";
import { Datasource } from "entities/Datasource";
import { GenerateCRUDEnabledPluginMap } from "api/PluginApi";
import { CONNECT_NEW_DATASOURCE_OPTION_ID } from "../DataSourceOption";
import {
executeDatasourceQu... |
<reponame>marcusolsson/grafana-diagram
import { DisplayValue, formattedValueToString, LinkModel } from '@grafana/data';
import { select, Selection } from 'd3';
import { diagramStyleFormatter } from 'diagramStyleFormatter';
import { CompositeMetric, DiagramOptions, DiagramSeriesModel, NodeSizeOptions } from '../config/t... |
import Avatar from "@material-ui/core/Avatar";
import Button from "@material-ui/core/Button";
import red from "@material-ui/core/colors/red";
import Divider from "@material-ui/core/Divider";
import Grid from "@material-ui/core/Grid";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/Lis... |
<reponame>sepatus88/model-viewer
/* @license
* Copyright 2019 Google LLC. 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/LICEN... |
// Copyright (c) Microsoft Research 2016
// License: MIT. See LICENSE
import * as _ from 'underscore'
import * as AST from './AST'
import * as BMA from '../BMA'
import {LETTERS} from '../util'
/**
* A formula with a name and ID where the ID never changes.
* The formula can be referenced in another formula by name ... |
<gh_stars>1-10
// tslint:disable:max-classes-per-file
import {csvEncodeRow} from 'app/common/csvFormat';
import {CellValue} from 'app/common/DocActions';
import {DocData} from 'app/common/DocData';
import {DocumentSettings} from 'app/common/DocumentSettings';
import * as gristTypes from 'app/common/gristTypes';
import... |
import { WriteStream } from 'fs';
import { InspectOptions } from 'util';
import { LoggerOutput } from '../core/LoggerOutput';
import { LogLevel } from '../enums/LogLevel';
import { PrefixGenerator, PrefixGeneratorOptions } from '../generators/PrefixGenerator';
import { DeepNonNullable, getFinalOptions } from '../utilit... |
import { mat4, vec3 } from "gl-matrix";
export const enum MathConstants {
DEG_TO_RAD = 0.01745, // Math.PI / 180,
RAD_TO_DEG = 57.2947, // 180 / Math.PI,
TAU = 6.283, // Math.PI * 2
EPSILON = 0.000001,
}
export const IdentityMat4 = mat4.create();
export const ZeroVec3 = vec3.create();
/** Linearly interpolat... |
import React, { useEffect, useState } from 'react'
import moment from 'moment'
import {
Button,
Chip,
CircularProgress,
Grid,
IconButton,
InputAdornment,
InputBase,
Paper,
Tab,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
TableSortLabel,
Tabs,
Typography
} from ... |
<filename>src/stores/MessageStore.ts<gh_stars>0
import {Store} from "../types/structures/store";
import {StoreManager} from "../util/StoreManager";
import { ActionTypes, ActionType } from "../types/structures/action";
import { MessageRecord } from "../records/MessageRecord";
import { SettingsStore } from "./SettingsSto... |
<filename>ui/src/toolbox/ngm-topo-profile-modal.ts
import {LitElementI18n} from '../i18n.js';
import {html} from 'lit';
import {customElement, query, state} from 'lit/decorators.js';
import i18next from 'i18next';
import draggable from '../elements/draggable';
import type {GeometryAction} from '../store/toolbox';
impor... |
import Transport from "@ledgerhq/hw-transport";
import { getDeviceModel, identifyTargetId } from "@ledgerhq/devices";
import { UnexpectedBootloader } from "@ledgerhq/errors";
import { concat, of, EMPTY, from, Observable, throwError, defer } from "rxjs";
import { mergeMap, map } from "rxjs/operators";
import type { Exec... |
import * as Promise from 'bluebird';
const assert = require('assert');
import {
Source,
BatchSource,
BatchDestination,
Selectable, TakeCallback,
PutCallback,
TakeOperation,
TakeManyOperation,
PutOperation,
PutManyOperation,
Operation,
SelectCallback,
OperationType,
... |
import { Currency } from './currency';
import { parseLocale } from './locale-utils';
import { NumberPattern, parsePattern } from './numpattern';
/**
* Locale Data Record
*
* The Locale Data Record holds all the required information to do localized
* numeric formatting of decimal, currency, percent, and scientific ... |
<reponame>FZJ-INM1-BDA/hbp-dataset-previewer
import { TBSFingerprint, TGuideLineOpts, TOriginalFPDataType, TOriginalMetadata, TOriginalProfileDataType, TProfile, TReceptorSymbol } from "./types";
import { weave } from '../../common/weave'
export function transformBSLinear(bsLinear: TProfile, bsUnit: string): TOriginal... |
import { traverse } from "@candlelib/conflagrate";
import {
exp,
JSExpressionClass,
JSIdentifier,
JSNode,
JSNodeClass,
JSNodeType,
renderCompressed,
tools
} from "@candlelib/js";
import {
BindingVariable, BINDING_VARIABLE_TYPE, HTMLElementNode, HTMLNodeClass, Node, PLUGIN_TYPE,
S... |
import React from 'react';
import defaultArticle from '../../assets/article-default.png';
import { News } from '../../redux/news/news.types';
import './article.styles.scss';
import { createStructuredSelector } from 'reselect';
import { ThunkDispatch } from 'redux-thunk';
import { AppActions } from '../../redux/store... |
const NUM_INPUTS: number = 2;
const NUM_HIDDEN: number = 5;
const NUM_OUTPUTS: number = 1;
const NUM_SAMPLES: number = 1000;
import DropBox from "./DropBox";
import Bullet from "./Bullet";
import { Script } from "laya/components/Script";
import { Prefab } from "laya/components/Prefab";
import { Sprite } from "laya/dis... |
import { useRef, useState, useEffect } from 'react';
import { parseQuery } from 'utils/query';
import { createUploader } from 'upload-api/client/uploader';
import { uploadApiConfig } from 'upload-api/client/config';
import { createUploadApiWebClient } from 'upload-api/client/web-client';
import { createWebMeshClient, W... |
/**
*
* @license
* Copyright (C) 2016 <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... |
<gh_stars>1-10
// #region tailwind default config
type Config = {
/**
* Enable dark-mode utilities for your project.
*
* [Documentation](https://tailwindcss.com/docs/dark-mode)
*/
dark?: "media" | "class";
/**
* Configure what PurgeCSS removes when building for production.
*
* [Documentation... |
import * as importStyle from './TimeLine.scss';
import * as CSSModules from 'react-css-modules';
import * as React from 'react';
import { Dispatch, Action } from 'redux';
import { RouteComponentProps } from 'react-router';
import { ApolloQueryResult } from 'apollo-client';
import { connect } from 'react-redux';
impor... |
import { PureComponent } from 'react';
import {
CanonicalAliasEvent,
CANONICAL_ALIAS,
DEV_NORDGEDANKEN_MJOLNIR_BANLISTS,
MembershipEvent,
MJjolnirBanlists,
M_POLICY_RULE_ROOM,
M_POLICY_RULE_ROOM_ALT,
M_POLICY_RULE_ROOM_OLD,
M_POLICY_RULE_SERVER,
M_POLICY_RULE_SERVER_ALT,
M_PO... |
<filename>test-e2e/tests/payments_test.ts
import {LoginContext} from "../utils/password_utils";
import constants from "../utils/constants";
let paidLoginContext: LoginContext;
let couponLoginContext: LoginContext;
const today = new Date();
const monthlyPrice = formatPrice(6.99);
const yearlyPrice = formatPrice(50);
... |
import { ConnectFour, Hangman, TicTacToe } from '#util/constants';
import { codeBlock } from '@discordjs/builders';
import { stripIndents } from 'common-tags';
import type { ButtonInteraction, Message, User } from 'discord.js';
import { MessageActionRow, MessageButton } from 'discord.js';
import { GoogleSpreadsheet } f... |
/* eslint-disable no-console */
import { ObjectId } from 'mongodb';
import { Message } from '../models/message.model';
import { MessageTemplate } from '../models/messageTemplate.model';
import { IPatient, Patient } from '../models/patient.model';
import { Outcome, IOutcome } from '../models/outcome.model';
import { Sch... |
import * as BlocklyJS from "blockly/javascript"
import { Block } from "blockly"
import log from "loglevel"
import { entityImages } from "../../../Gui/image_storage"
import { entityDefaultSize } from "../../../GameEngine/config"
enum funklyBlockType {
COND = "funkly_cond",
GUARD = "funkly_guard",
COMP = "fu... |
/* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OBJECT_IDENTIFIER,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
AttributeValueAssertion_assertedContexts,
_decode_AttributeValueAssertion_assertedContexts,
... |
import Collection from '../Collection';
import { TypedEmitter } from 'tiny-typed-emitter';
import ReconnectingWebSocket from 'reconnecting-websocket';
import { Socket } from 'socket.io-client';
import { OpCode } from '../ops';
export class BaseClient extends TypedEmitter<ClientEvents> {
constructor();
get randStrCo... |
/* Copyright 2018, Google, 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 agreed to in wr... |
import ObjectID from 'bson-objectid';
import { O, U } from 'ts-toolbelt';
import { Field } from './field';
import { type } from './type';
import { Validation, Validator } from './validation';
export class Shape<TSchema extends type.Schema<TSchema>> {
readonly schema: TSchema;
readonly fields = new Map<string, ... |
import { BehaviorSubject } from "rxjs";
import { $, _, autorun } from "rxjs-autorun";
type ContextOwner = {
disposables: any[];
owner: ContextOwner | null;
context?: any;
};
export interface Context {
id: symbol;
Provider: (props: any) => any;
defaultValue: unknown;
}
let globalContext: Cont... |
<reponame>andersakerberg/SMZ3Randomizer<gh_stars>0
import { inflate } from 'pako';
import localForage from 'localforage';
import each from 'lodash/each';
import range from 'lodash/range';
import defaultTo from 'lodash/defaultTo';
import isPlainObject from 'lodash/isPlainObject';
import { bigText } from '../snes/big_te... |
import { Grammar } from "./grammar";
import { Parser } from "./parser";
import { PreProcessors, PreProcessor } from "./Processors/preprocessors";
import { Rule } from "./rule";
import { Lexer, Dictionary, Token, RuleSymbol, TokenLiteral, ProductionRule, Macro, ProductionRuleRulesRule, SubExpressionToken, EBNFToken, Mac... |
import React, { useMemo, useState } from 'react';
import { nanoid } from 'nanoid';
import Tippy from '@tippyjs/react';
import toast from 'react-hot-toast';
import {
MdMoreVert,
MdCheck,
MdLink,
MdEdit,
MdDelete,
MdUndo,
} from 'react-icons/md';
import {
doc,
updateDoc,
deleteDoc,
arrayUnion,
arra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.