text stringlengths 3.08k 15.5k |
|---|
<gh_stars>1-10
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { Theme, SVGMark } from '@thematic/core'
import { Spec } from 'vega'
function mark(mark: SVGMark) {
const { fill, fillOpacity, stroke, strokeOpacity, strokeWidth } = mark
... |
import * as React from 'react';
import BasicNavigation from './components/BasicNavigation';
import LocaleIntlProvider from './components/LocaleIntlProvider';
import { QuickSearchContext } from '../src/api/types';
import { LayoutManager, NavigationProvider } from '@atlaskit/navigation-next';
import { DrawerItemTheme } f... |
<filename>src/Commands/Fun/Bible.ts
import { Command, Arguments } from '../../Structures/Command.js';
import { Message } from 'discord.js';
import { RegisterCommand } from '../../Structures/Decorator.js';
import { bibleInsertDB, titleRegex, titles } from '../../lib/Migration/Bible.js';
import { pool } from '../../Struc... |
import {
FeatureResult,
Reporter,
RunResult,
ScenarioResult,
StepResult,
StepRunnerNotDefinedError,
} from './runner';
const chalk = require('chalk');
import * as Chai from 'chai';
type Config = { printResults: boolean; printProgress: boolean };
export class ConsoleReporter implements Reporter {
privat... |
import { Entity, EntityBase } from "entities/entity";
import { Scheduler } from "os/scheduler";
import { FactoryClient } from "entities/factory";
import { generatePreferenceLists } from "util/stable-marriage";
import { Entities } from "./entities";
export interface ResourceLocation extends Entity {
location: RoomPos... |
<gh_stars>0
import {
Component,
ElementRef,
Output,
EventEmitter,
Renderer2,
forwardRef,
Input,
NgModule,
OnInit,
Injectable,
OnDestroy,
ViewEncapsulation,
ModuleWithProviders,
Optional
} from '@angular/core';
import {
NG_VALUE_ACCESSOR,
ControlValueAccess... |
import stringify from "json-stringify-pretty-compact";
import { getTrackingCallback, TrackingType } from "../../services/codegen";
import { getApiHost, isCloud } from "../../services/env";
import { useContext, useState, useEffect } from "react";
import { UserContext } from "../ProtectedPage";
import { useDefinitions } ... |
<filename>packages/cli/src/UserManagement/UserManagementHelper.ts
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable import/no-cycle */
import { Workflow } from 'n8n-workflow';
import { In, IsNull, Not } from 'typeorm';
import express =... |
/**
* @license
* Copyright Google LLC 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 { FocusKeyManager } from '@angular/cdk/a11y';
import { Directionality } from '@angular/cdk/bidi';
import { Bool... |
/**
* This example demonstrates the use of cubemaps to draw a skybox and
* (static) environment reflections and refractions.
*
* Inspired by learnopengl.com
*/
import {
Device,
UniformType,
DepthFunc,
TargetBufferBitmask,
TextureMinFilter,
TextureMagFilter,
} from "./lib/webglutenfree.js";... |
<reponame>weebsquad/pyboat<filename>src/lib/eventHandler/queue.ts
import * as utils from '../utils';
import * as routing from './routing';
import { logDebug } from '../../modules/logging/events/custom';
import { guildId } from '../../config';
export class QueuedEvent {
id: string;
eventName: string;
payload: Ar... |
<reponame>Vectorized/ERC721A-Transpiler
import { flatten, keyBy } from 'lodash';
import { getConstructor } from '../../solc/ast-utils';
import { ContractDefinition, Expression, VariableDeclaration } from 'solidity-ast';
import { Node } from 'solidity-ast/node';
import { TransformHelper } from '../type';
import { Trans... |
<filename>integration/clients/Location.int.test.ts
import 'whatwg-fetch'
import {
AkkaConnection,
GATEWAY_CONNECTION,
HttpConnection,
LocationRemoved,
LocationService,
LocationServiceInternal,
Option,
Prefix,
setAppName,
TrackingEvent
} from '../../src'
import { LocationConfigWithAuth } from '../../... |
<filename>packages/adapters/eventstore-adapters/resolve-eventstore-postgresql-serverless/test/index.unit.test.ts
/* eslint-disable import/no-extraneous-dependencies */
import RDSDataService from 'aws-sdk/clients/rdsdataservice'
import { mocked } from 'ts-jest/utils'
import genericCreateAdapter from 'resolve-eventstore-... |
import * as express from "express";
import * as mongoose from 'mongoose';
import * as _ from 'lodash';
import {Request, Response} from "express";
import {MatchDetail, validateMatchDatailes} from "../models/MatchDetailes";
import {Match} from "../models/Match";
import {Player} from "../models/Player";
import {Position} ... |
import {BigNumber} from 'bignumber.js';
import {ErrorCode} from '../error_code';
import {isValidAddress} from '../address';
import {Transaction, BlockHeader, Receipt, BlockExecutor, TxListener, TransactionExecutor, Storage, IReadableKeyValue, IReadWritableKeyValue, Chain, TransactionExecuteflag} from '../chain';
impor... |
import {EventEmitter, Injectable} from '@angular/core';
import {Predicate} from '@app/log-view/predicates';
import {LogFile} from '@app/log-view/log-file';
import {Md5} from 'ts-md5';
import {HttpClient} from '@angular/common/http';
import {LevelFilterDescription} from '@app/log-view/top-filters/level-list/LevelFilterD... |
<reponame>hocineabdellatif/genetic-py<filename>app/side-chart/side-chart.ts
import { Chart, Options, TooltipPositionerPointObject, Point, chart } from 'highcharts';
import { IpcRenderer } from 'electron';
/****************************** passed by preload ******************************
********************************... |
<reponame>Spacerat/ranker<gh_stars>0
import { Record as IRecord, Map, Set } from "immutable";
type StringSet = Set<string>;
type SetsMap = Map<string, StringSet>;
type SetSet = Set<StringSet>;
export type Pair = [string, string];
type RankerProps = {
greater_than: SetsMap;
remaining_pairs: SetSet;
all_items: St... |
import { TokenPosition, ParseError } from './util';
type TokenContent =
| {
type: 'literal';
value: string;
}
| {
type: 'value';
value: unknown;
}
| {
type: 'identifier';
value: string;
};
export type Token = TokenContent & TokenPosition;
abstract class LexerErro... |
import React, { useState } from 'react';
import { Story, Meta } from '@storybook/react/types-6-0';
import Button, { ButtonProps } from './button';
import Icon, { IconProps } from '../Icon/icon'
export default {
title: 'dd-ui/Button',
component: Button,
argTypes: {
backgroundColor: { control: 'colo... |
/*
* Copyright (C) 2019-2021 HERE Europe B.V.
*
* 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... |
#!/usr/bin/env node
/* eslint-disable no-return-assign */
/**
* References:
*
* 1. [create-vite](https://github.com/vitejs/vite/blob/main/packages/create-vite/)
* 2. [create-vue](https://github.com/vuejs/create-vue)
*/
import minimist from 'minimist';
import prompts from 'prompts';
import fs from 'fs';
import { y... |
<reponame>pluswing/launchpad-mini-keyboard
import { Input, Output } from 'midi';
import { COLOR_PALETTE } from '../constants';
import {
copyImage,
getPixel,
Image,
index,
newImage,
rgb,
setPixel,
stackImage,
toNote,
toPoint,
} from '../draw';
import { range } from '../util';
const HEADER = [0xf0, 0... |
<filename>src/provider/Format/FormatProvider.ts
/* eslint-disable @typescript-eslint/no-misused-promises */
/* eslint-disable max-lines */
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable max-statements */
/* eslint no-magic-numbers: ["error", { "ignore": [-1,0,1,2,100] }] */
import * as vsco... |
/**
* A type which represents the input parameter for an `XmlCclRequest`, which is wrapped by `makeCclRequest`.
* The parameters are passed in a string, and numbers and strings are interpreted within this string by
* the presence of quotes within quotes (e.g. single within double or vice versa). By strongly typing
... |
<reponame>CYTings/ant-design-blazor
export function getDom(element) {
if (!element) {
element = document.body;
} else if (typeof element === 'string') {
element = document.querySelector(element);
}
return element;
}
export function getDomInfo(element) {
var result = {};
var dom... |
<filename>node_modules/j5-io-types/src/index.ts
/*
MIT License
Copyright (c) <NAME> <<EMAIL>>
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... |
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
const fs = require('fs');
function showError(e: Error) {
console.error('[Visit Home] error: ', e);
vscode.window.showInformationMessage(e.me... |
/**
* 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 the Apache License, Version 2.0 (the
* "License"); you... |
<filename>Plotting/GraphUtils.ts
import * as Utils from "./Utils"
import * as fs from "fs"
import * as Canvas from "canvas"
const BaseValueDisplayFactor = 2.3/2;
const BaseValueDisplayFactor_N = 2.6/2;
const BottomMargin = 50;
const RightMargin = 350;
const LeftMargin = 50;
const GraphMode = Object.freeze({ "POSITIVE... |
import format from 'date-fns/format';
import { PlaybackStatus } from 'foxcasts-core/lib/enums';
import { Chapter, EpisodeExtended } from 'foxcasts-core/lib/types';
import { formatFileSize, formatTime } from 'foxcasts-core/lib/utils';
import { AppBar, AppBarAction } from 'mai-ui/dist/components/appbar';
import { Labeled... |
import { UserCreateRequest } from "@newlife/newlife-creator-client-api";
import { get } from "lodash";
import { debounce, filter, pipe, throttle } from "overmind";
import { Action } from "../../../../types"
import { Context, State } from "../../../overmind";
import { WizardInput } from "./wizardStateMachine";
// import... |
<reponame>jkvim/cypress-testrail-reporter<gh_stars>1-10
import sleep from '../helper/sleep'
import { getCombinedTestCaseStatusId } from '../helper/testCaseStatus'
import {
CypressReportError,
TestrailReporterConfig,
TestRailCypressResults,
TestRailReference,
TestRailRun,
} from '../types'
import print from '... |
<reponame>Cryptocurrencies-AI/spl-token-wallet
import { useCallback, useEffect, useRef, useState } from 'react';
import { Connection, PublicKey, LAMPORTS_PER_SOL } from '@solana/web3.js';
import { TokenInstructions } from '@project-serum/serum'
import { useMediaQuery } from '@material-ui/core';
export async function s... |
// eslint-disable-next-line max-classes-per-file
import { Command, CommandOptions } from '@teambit/cli';
import { PATTERN_HELP } from '@teambit/legacy/dist/constants';
import { CLITable } from '@teambit/cli-table';
import chalk from 'chalk';
import { ExtensionDataList } from '@teambit/legacy/dist/consumer/config';
impo... |
<filename>packages/parse/text/src/parsers.ts
// Copyright (c) 2021-2022 <NAME>
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
import { Char, throwError } from '@fp4ts/core';
import { IdentityF, None, Some } from '@fp4ts/cats';
import {
... |
<reponame>Nikhil-P-Jain/maitrivatsalya-admin-panel
import { Component, OnInit , ViewChild } from '@angular/core';
import {activityservice} from 'src/app/service/activities.service';
import { FormGroup, FormBuilder, Validators ,ValidatorFn, AbstractControl,ValidationErrors,FormControl} from '@angular/forms';
import {Toa... |
export enum Register {
// Pause is ID of register holding the pause flag
// 0 (Disabled)
// 1 (Pause ventilation)
// 2 (Pause DHW)
// 3 (Pause all)
Pause = 4727,
// FanSpeed is ID of register holding desired FanSpeed value
FanSpeed = 4747,
// DesiredRoomTemperature is ID of register holding desired room temper... |
<gh_stars>10-100
import update from 'immutability-helper';
import { Observable } from 'rxjs';
import {
filter,
map,
pluck,
switchMap,
take,
tap,
timeout,
} from 'rxjs/operators';
import { FACEBOOK_REQUIRED_REGEXP } from '../constants';
import { SendScanLog } from './events/actions';
import {
listenTo,
... |
import {Typography} from "@material-ui/core";
import {makeStyles, Theme} from "@material-ui/core/styles";
import clsx from "clsx";
import React, {useState} from "react";
import PopupDialog from "../../components/Dialog/PopupDialog";
import {InstitutionAngebot} from "../../domain/angebot/InstitutionAngebot";
import {Ins... |
/*!
* Copyright 2011-2021 Unlok
* https://www.unlok.ca
*
* Credits & Thanks:
* https://www.unlok.ca/credits-thanks/
*
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
* ... |
// Packages Imports
import { useEffect, useState } from "react";
import { FlatList, Keyboard, View } from "react-native";
// Local Imports
import AppContainer from "../../components/AppContainer";
import AppLoading from "../../components/AppLoading";
import { AppScreenProps } from "../../navigation/NavigationProps";
i... |
<filename>src/StyleInlineTool.ts
import type {
API,
InlineTool,
InlineToolConstructorOptions,
} from '@editorjs/editorjs';
import { EditorJSStyleElement } from './EditorJSStyleElement';
import { EditorJSStyleError } from './EditorJSStyleError';
class StyleInlineTool implements InlineTool {
static get isInline(... |
import {
AttributeType,
ErrorLevel,
HtmlAttributeType,
} from '../types/utilTypes';
import { createError } from './errors';
import ParseTree from './parseTree';
import Stack from './stack';
function getNode(): ParseTree {
return new ParseTree();
}
function parseAttributes(
buffer: string,
index: number,
... |
const { AlfrescoApiCompatibility, PeopleApi, NodesApi, GroupsApi, SitesApi, SearchApi } = require('@alfresco/js-api');
const program = require('commander');
interface PeopleTally { enabled: number, disabled: number }
interface RowToPrint { label: string, value: number }
const MAX_ATTEMPTS = 10;
const TIMEOUT = 60000;... |
<reponame>color-coding/btulz.nodejs
/**
* @license
* Copyright Color-Coding Studio. All Rights Reserved.
*
* Use of this source code is governed by an Apache License, Version 2.0
* that can be found in the LICENSE file at http://www.apache.org/licenses/LICENSE-2.0
*/
import codes = require("./codes_ui5");
... |
<reponame>egova-safety/egova-map
import { component, config } from "../decorator";
import base from "@egova/map-base";
import ComponentBase from "@/components/component";
/**
* 事件定义。
* @private
* @const
*/
const EVENTS = ["close", "click"];
/**
* 点图层
* @class
* @version 1.0.0
*/
@component({ template: require... |
import { batch, Denops, fn, gather, nvimFn } from "./deps.ts";
import { OpenFloatOptions } from "./types.ts";
import Mutex from "./mutex.ts";
export function makeFloatingwinSize(
widths: number[],
maxWidth: number,
maxHeight: number,
): [number, number] {
const width = Math.min(Math.max(...widths), maxWidth);
... |
import axios from 'axios';
import url from 'url';
import Token from 'markdown-it/lib/token';
import himalaya from 'himalaya';
import { ConfluenceMacro, InlineAsyncData } from './types';
import { btoa } from './utils';
import { zip_deflate, encode64 } from './thirdparty/deflate';
import { unescape } from 'querystring';... |
<filename>test/IMQClient.ts
/*!
* IMQClient Unit Tests
*
* Copyright (c) 2018, imqueue.<EMAIL> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in al... |
<reponame>orbs-network/rewards-distributor-v2
import { TestkitDriver } from 'rewards-v2/dist/e2e/driver';
import { dockerComposeTool, getAddressForService, getLogsForService } from 'docker-compose-mocha';
import { retry } from 'ts-retry-promise';
import { join } from 'path';
import { writeFileSync, unlinkSync } from 'f... |
// React Imports
import React, { FC, Fragment } from "react";
import Genres from "./Genres";
import { useClosableSnackbar } from "../../../../../Hooks";
import HorizontalDivider from "../../../../Atomic/Divider/Horizontal";
import MatchHighlight from "../../../../Atomic/MatchHighlight";
import DynamicUnderline from "..... |
<gh_stars>0
import {
Collection as MCollection,
Binary as MBinary,
IndexSpecification,
MongoError,
} from 'mongodb';
import type { IDable } from '../interfaces/IDable';
import BaseCollection from '../interfaces/BaseCollection';
import type { KeyOptions } from '../interfaces/Collection';
import type { DBKeys } f... |
<filename>src/core/acroform/utils.ts
import PDFObject from 'src/core/objects/PDFObject';
import PDFNumber from 'src/core/objects/PDFNumber';
import PDFDict from 'src/core/objects/PDFDict';
import PDFName from 'src/core/objects/PDFName';
import PDFArray from 'src/core/objects/PDFArray';
import PDFRef from 'src/core/obje... |
declare var $: JQueryStatic;
class BarElement {
public label: string = null;
public key: string = null;
public value: number = null;
public display: any;
public color: string = 'rgba(0, 0, 0, 0.54)';
public width: any = 0;
}
class HorizontalBarsDetailsParams {
public item: any;
}
class Ho... |
// copyright defined in LICENSE.txt
const encoder = new TextEncoder();
const decoder = new TextDecoder();
class SerialBuffer {
public array: Uint8Array;
public length: number;
public readPos: number;
constructor({ array }: { array?: Uint8Array } = {}) {
this.array = array || new Uint8Array(10... |
<reponame>THK-ADV/lwm-ui
import {Component, OnDestroy, OnInit, ViewChild} from '@angular/core'
import {Observable, Subscription} from 'rxjs'
import {LabworkAtom} from '../models/labwork.model'
import {ActivatedRoute} from '@angular/router'
import {LabworkService} from '../services/labwork.service'
import {foldUndefined... |
<reponame>jdtzmn/gators<gh_stars>0
export interface Carriers {
[key: string]: string
}
export const carriers: Carriers = {
'3RiverWireless': '[number]@<EMAIL>',
'ACSWireless': '[number]<EMAIL>',
'Alltel': '[number]<EMAIL>',
'AT&T': '[number]<EMAIL>',
'BellCanada': '[number]@<EMAIL>',
'BellMobility(Canada... |
<filename>react-app/src/landingPages/taxonomy/lib/Wikipedia.ts
import * as props from './props';
export interface WikipediaInfo {
imageUrl: string;
pageUrl: string;
introText: string;
title: string;
pageId: number;
exactMatch: boolean;
matchingTerms: Array<string>;
}
interface WikipediaPar... |
<reponame>AaronFriel/pulumi-aws-native
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as u... |
/* eslint-disable no-bitwise */
import english from './wordlists/english';
import * as nacl from '../nacl/naclWrappers';
import * as address from '../encoding/address';
import Account from '../types/account';
export const FAIL_TO_DECODE_MNEMONIC_ERROR_MSG = 'failed to decode mnemonic';
export const NOT_IN_WORDS_LIST_E... |
import { COLORS } from '../constants/colors';
import { GRIDS } from '../constants/grid';
import { BorderedRow, SimpleRowOptions } from '../interfaces';
import { ConnectionLog } from './log-repository';
export interface Drawable {
draw(): void;
build(): string;
}
export class LogTable implements Drawable {
c... |
/**
* API for Showing announcements (or posting)
*/
import express from 'express';
import { permissions } from '../permissions'
import { auth } from './auth';
import { Announcement } from '../../types/billing/announcement';
import { utils } from '../utils'
i... |
import React, { useContext, useState } from 'react'
import { Text, Alert, GestureResponderEvent, StyleSheet } from 'react-native'
import { observer } from 'mobx-react'
import { createEmptyView } from './EmptyView'
import { VaultContext } from '../../model/VaultContext'
import { BottomButtonView } from './BottomButtonVi... |
<gh_stars>0
export * from './attachment';
export * from './attachment-get';
export * from './attachment-hash';
export * from './attachment-list-response';
export * from './attachment-list-response-all-of';
export * from './attachment-list-response-all-of-result';
export * from './attachment-response';
export * from './... |
/*********************************************************************************************************************
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. *
* ... |
import * as tcp from 'net';
import * as udp from 'dgram';
import {
MuSocketServer,
MuSocketServerState,
MuSocketServerSpec,
MuSocket,
MuSocketState,
MuSocketSpec,
MuSessionId,
MuData,
MuMessageHandler,
MuCloseHandler,
} from '../socket';
import { messagify, isJSON } from './uti... |
import {call, put, select, takeLatest} from 'redux-saga/effects';
import {RECORDING_FORMAT_VERSION} from '../version';
import {asyncGetJson, asyncRequestJson} from '../utils/api';
import {getBlob, uploadBlob} from '../utils/blobs';
import {ActionTypes} from "./actionTypes";
import {ActionTypes as RecorderActionTypes} f... |
<reponame>anthonydresser/gulp-tsb
'use strict';
export module collections {
var hasOwnProperty = Object.prototype.hasOwnProperty;
export function contains(collection: { [keys: string]: any }, key: string): boolean {
return hasOwnProperty.call(collection, key);
}
export function str... |
import React, { useEffect, useState } from "react";
import { Controller, useForm } from "react-hook-form";
import { Box, Button, createStyles, Grid, InputLabel, makeStyles, MenuItem, Select, TextField } from "@material-ui/core";
import { CircleLoading } from "../../components/CircleLoading";
import { google } from "../... |
<filename>lib/ast/dot.ts
import AST_Node from './node'
import { OutputStream } from '../output'
import AST_PropAccess, { AST_PropAccess_Props } from './prop-access'
import Compressor from '../compressor'
import { is_lhs, make_node, best_of, is_strict, is_identifier_string, is_undeclared_ref, has_annotation, make_node_f... |
import {
ChangeDetectorRef,
Component,
ElementRef,
HostBinding,
Inject,
Input,
OnDestroy,
OnInit,
PLATFORM_ID,
QueryList,
ViewChild,
ViewChildren,
} from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import { OwlCarouselOConfig } from 'ngx-owl-caro... |
import { getColorElements } from './color';
import { shadowPositioning } from './shadow';
import { DEPTH_LEVELS } from './constants';
export {
getColorElements,
shadowPositioning
};
export interface Themes {
[key: string]: Theme
}
export interface Theme {
[key: string]: ThemeLevel,
}
export interf... |
<filename>utils/normalizer.ts
import dayjs, { Dayjs } from 'dayjs'
import * as Enumerable from 'linq'
import {
MainSummaryDataType,
DataDaily,
InspectionPersonsSummaryDaily,
PatientsSummaryDaily
} from './types'
// data.json の補正を行う
// 補正の必要がなくなったら削除する
export default (Data: DataDaily): void => {
// 状況別のデータ無し日... |
<reponame>raindigi/erxes-widgets-api
import {
Conversations,
EngageMessages,
IBrandDocument,
ICustomerDocument,
IIntegrationDocument,
IMessageDocument,
IMessageEngageData,
IUserDocument,
Messages,
Users,
} from '../../../db/models';
import { IBrowserInfo } from '../../../db/models/Customers';
/*
... |
import bspNode from "@/map/bsp_node";
import { ensure, float2int } from "@/utils";
import Randomizer from "@/utils/random";
import Rectangle from "@/utils/rectangle";
const random = new Randomizer();
class bspGenerator {
maxLevel: number;
rootContainer: Rectangle;
rows: number;
cols: number;
map: number[];
... |
import {
ChildProcessData,
SingleTest,
SingleOptions,
ErrorWithHistory
} from "child-process-data";
import { spawn } from "child_process";
import path from "path";
import {
newDest,
copySources,
copyGulpfile,
copyBabelrc,
linkNodeModules,
cleanUp,
SetupOptions,
NormalizedSetupOptions
} from "./h... |
import { Component, OnInit,ViewChild, ElementRef } from '@angular/core';
import { ObservableArray } from "tns-core-modules/data/observable-array";
import { TokenModel } from "nativescript-ui-autocomplete";
import { ScrollView, ScrollEventData } from "tns-core-modules/ui/scroll-view";
import * as dialogs from "ui/dialog... |
/**
* @author <NAME>
* @description Custom search component for column filters
*/
import React from 'react';
import _ from 'lodash';
import { Input, Button, List, Checkbox } from 'antd';
import { FilterDropdownProps } from 'antd/lib/table/interface';
import './FilterDropdownStyle.css';
/**
*
* getFilteredKeys r... |
const get = require('get-value');
export const OPERATION: { [key: string]: number } = {
'!': 5,
'*': 4,
'/': 4,
'%': 4,
'+': 3,
'-': 3,
'>': 2,
'<': 2,
'>=': 2,
'<=': 2,
'===': 2,
'!==': 2,
'==': 2,
'!=': 2,
'&&': 1,
'||': 1,
'?': 1,
':': 1,
};
export interface Node {
left: Node ... |
<reponame>grzesiek110/teststory
import { Uri } from "vscode";
import { StoryFeature } from "./story-feature";
import { StoryScenario } from "./story-scenario";
import { StoryUnknown } from "./story-unknown";
import { StoryRule } from "./story-rule";
import { ModelContext, LineContext } from "../../parser/StoryParser";... |
import { Component, Inject, OnInit } from '@angular/core';
import { FormControl, FormGroupDirective, NgForm, FormGroup, FormBuilder, Validators } from '@angular/forms';
import { ErrorStateMatcher } from '@angular/material/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { IAccredi... |
import * as h from 'mithril/hyperscript'
import { select } from 'd3-selection'
import { scaleLinear } from 'd3-scale'
import { area as d3Area } from 'd3-shape'
import { axisLeft } from 'd3-axis'
import session from '../../session'
import i18n from '../../i18n'
import router from '../../router'
import { hasNetwork } fro... |
import spawn from 'cross-spawn';
import * as fs from 'fs-extra';
import path from 'path';
import { appDir, packageJson, hasDep, yarnOrNpm } from '../utils';
import {
welcomeMsg,
setupInfoMsg,
setupErrorMsg,
setupSuccessMsg,
setupGitErrorMsg,
setupGitSuccessMsg,
setupChmodSuccessMsg,
setupChmodErrorMsg,
... |
import {
muta,
CHAIN_CONFIG,
delay,
client,
accounts,
admin,
str2hex
} from "./utils";
import { readFileSync } from "fs";
import { Muta } from "muta-sdk";
const account = Muta.accountFromPrivateKey(
"d6ef93ed5d27327fd10349a75d3b7a91aa5c1d0f42994be10c1cb0e357e722f5"
);
async function deploy(code, init_... |
import { expect, describe, it, SinonSpy, spy, TR, PTR, Done } from '.'
import { DerivedClass } from './class'
import { fail } from 'assert'
class A {
a = 1
}
class B extends A {
b = 2
}
@describe('expect')
class ExpectTest {
@it('should use expect')
expectTests(): TR {
let obj: Record<string,... |
<filename>src/app/features/calls/pages/scheduled/scheduled.page.service.ts
import { Injectable, PipeTransform } from "@angular/core";
import { DecimalPipe } from "@angular/common";
import { BehaviorSubject, Observable, of, Subject } from "rxjs";
import { debounceTime, delay, switchMap, tap } from "rxjs/operators";
imp... |
<reponame>gunn4r/material-ui-advanced-table
import PropTypes from 'prop-types';
const RefComponent = PropTypes.shape({ current: PropTypes.element });
const StyledComponent = PropTypes.shape({
classes: PropTypes.object,
innerRef: RefComponent,
});
export const propTypes = {
actions: PropTypes.arrayOf(
PropTy... |
import * as React from 'react'
import Link from 'next/link'
import { auth, firebaseDb } from '@lib/firebase/firebase'
import type { NextPage } from 'next'
import { NextRouter, useRouter } from 'next/router'
import FileUploadSVG from '../../assets/file-upload.svg'
import ProfileSVG from '../../assets/profile.svg'
import... |
<gh_stars>0
import { getHeaders2 } from 'actions/actionHelper'
import { Toast } from 'antd-mobile'
import {
CHECK_TRADE_DONE,
GET_NAV_ICONS,
HIDDEN_TABBAR,
INIT_TABBAR,
RAS_PRIVATE_KEY,
TOGGLE_TABBAR,
} from 'constant/index'
import { CheckTradeDoneReturns, NavIconsReturns } from 'interfaces/common'
import {... |
import publishStyles from "./style.less";
import { Form, Modal, Select, Tag } from "antd";
import { useModel } from "@@/plugin-model/useModel";
import moment from "moment";
import { useEffect, useState } from "react";
import DarkButton from "@/pages/Configure/components/CustomButton/DarkButton";
import { FIRST_PAGE } ... |
<reponame>lukas-linhart/video-renderer<filename>src/browser/Asset.ts
import createCanvasAndContext from './util/createCanvasAndContext';
import loadImage from './util/loadImage';
import loadVideo from './util/loadVideo';
import LoadAssetOptions from './util/LoadAssetOptions';
import isTainted from './util/isTainted';
... |
<reponame>ayuram/TeamTrack
import admin = require("firebase-admin");
import * as functions from "firebase-functions";
import {ftcAPIKey} from "./api/ftcAPIKey";
// Start writing Firebase Functions
// https://firebase.google.com/docs/functions/typescript
admin.initializeApp();
// put event in desired user's inbox
expor... |
<gh_stars>0
import { Parser, Input, Success, Fail } from './core';
import { WeakParserChainBuilder } from './weakParserChainBuilder';
import { ParserChainBuilder1, ParserChainBuilder2 } from './strongParserChainBuilder';
import {
pegPairLeft, pegPairRight,
sequence, choice, zeroMore, oneMore, optional, and, no... |
<filename>src/shared/brokers/socket/controller.ts
import * as net from 'net'
import { log } from 'shared/services/log'
import { SocketVariable } from './variable'
import { Controller, ControllerOptions } from '../controller'
export interface SocketControllerOptions extends ControllerOptions {
discovery: SocketDisco... |
import { BasicConfig, CommandInfo, Unmatch } from "./main";
import BotConfig from "../config";
import bot from "ROOT";
import { escapeRegExp, trimStart } from "lodash";
export interface SwitchMatchResult {
type: "switch";
switch: string;
match: string[];
isOn(): boolean;
}
export type SwitchConfig = CommandInfo &... |
import { mat4 } from 'gl-matrix'
import { getVShader, getVsSource } from '../utils/shader'
export function createRoom(el: HTMLCanvasElement) {
el.style.position = 'fixed'
el.style.top = '0'
el.style.left = '0'
el.width = document.body.offsetWidth;
el.height = document.body.offsetHeight;
const gl = el.getC... |
<reponame>Olian04/intermediate-process-event-buss
import { ChildProcess as NodeChildProcess, fork } from "child_process";
import { SIGINT, SIGTERM } from "constants";
import { PassThrough, Readable, Writable } from 'stream';
import { EventContext } from './communication';
export type EventHandler = (ctx: EventContext)... |
import { readJSON, writeJSON } from "fs-extra";
import { IStringDictionary, Nullable } from "../../../shared/types";
import * as React from "react";
import { Button, ButtonGroup, Divider, H3, Intent, ITreeNode, Tree, Toaster } from "@blueprintjs/core";
import { IWorkSpace } from "../../editor/project/typings";
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.