text stringlengths 3.08k 15.5k |
|---|
<filename>src/api/streaming/index.ts
import * as fs from 'fs';
import * as http from 'http';
import * as https from 'https';
import * as express_session from 'express-session';
import * as SocketIO from 'socket.io';
import * as cookie from 'cookie';
import * as mongoose from 'mongoose';
import * as MongoStore from 'con... |
<filename>src/app/database/sqlite.service.ts
import { Injectable } from '@angular/core';
import { Encounter } from '~/shared/models/encounter.model';
import { Observable, from } from 'rxjs';
import { Combatant } from '~/shared/models/combatant.model';
var Sqlite = require('nativescript-sqlite');
@Injectable()
export c... |
<filename>client/chatFilter.ts<gh_stars>10-100
import { postgres } from './postgres'
const OpenAI = require('openai-api')
export async function toxicityTest(text) {
const label_options = ['0', '1', '2']
const openai = new OpenAI(process.env.OPENAI_API_KEY)
let output_label = null
// This is the probabi... |
import * as _ from 'lodash';
import dieRoller from './dieRoller.js';
//@link https://github.com/systemjs/systemjs/blob/master/docs/config-api.md
//@link https://lodash.com/docs/4.17.4
/**
* Self-Assessment 4: Further Extend Dice Rolling Game
*
* @author <NAME>
*
* Aside from external libraries (chan... |
<reponame>BobrD/pixi-react<gh_stars>0
import * as PIXI from 'pixi.js';
import * as Yoga from 'yoga-layout';
import invariant from 'fbjs/lib/invariant';
import * as _ from 'lodash';
import applyLayoutProperties from '../applyLayoutProperties';
const interactiveProps = {
pointerdown: 'onDown',
pointermove: 'onMove',... |
import React from 'react';
// contexts
import { useEsriModulesContext } from 'contexts/EsriModules';
import { NavigationContext } from 'contexts/Navigation';
import { SketchContext } from 'contexts/Sketch';
// utils
import { updateLayerEdits } from 'utils/sketchUtils';
// Gets the graphic from the hittest
function get... |
import {Pre, Column} from "react-vcomponents";
import {BaseComponent} from "react-vextensions";
import {MapNode} from "../../../../../../Store/firebase/nodes/@MapNode";
import {GetNodeDisplayText} from "../../../../../../Store/firebase/nodes/$node";
import {GetTerm, GetTermVariantNumber} from "../../../../../../Store/f... |
<filename>src/setup-msvc-dev.ts
/*
* Copyright (c) 2019 ilammy
* Copyright (c) 2021 <NAME>
*
* 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 limit... |
import { TransformedCollection } from '../typings/meteor'
import { registerCollection, ProtectedString, protectString } from '../lib'
import { createMongoCollection } from './lib'
import { StudioId } from './Studios'
import { registerIndex } from '../database'
import { ExpectedPackageDB, ExpectedPackageId } from './Exp... |
import GameEngine from '../engine/GameEngine';
import Item from '../engine/Item';
import Location from '../engine/Location';
import castle from './img/castle';
import gosling from './img/gosling';
import doorImg from './img/halway';
import inside from './img/inside';
import intersectionImg from './img/intersection';
im... |
import {
EventManager,
isNumber,
secondToTime,
checkData,
Drag,
getBoundingClientRect
} from "@lin-media/utils";
import { DragDataInfo } from "../types";
import i18n from "../locale";
import { PlayerEvents, VideoEvents } from "../config/event";
import PlayerConstructor from "../constructor";
class VideoPro... |
import { Component, OnInit, Input, Output, TemplateRef, EventEmitter, ViewEncapsulation, ViewChild } from '@angular/core';
import { NgSwitch, NgSwitchCase } from '@angular/common';
import { ModalOptions } from './modal-options.provider';
const classnames = require('classnames');
@Component({
selector: 'Modal',
tem... |
import { MessageEmbed, Guild, GuildMember, User, TextBasedChannels, MessageActionRow, MessageButton, ButtonInteraction } from "discord.js";
import { BotUser } from "../../BotClient";
import { OWNER_ID, PREFIX } from "../../Constants";
import { Localisation } from "../../localisation";
import { Info, Category, Categorie... |
<reponame>stsiwo/e-commerce-starter-kits
import { PayloadAction } from "@reduxjs/toolkit";
import { api, WorkerResponse } from "configs/axiosConfig";
import { logger } from "configs/logger";
import {
NormalizedProductType,
ProductQueryStringType,
} from "domain/product/types";
import { normalize } from "normalizr";... |
<gh_stars>100-1000
import { HttpService, Inject, Injectable } from '@nestjs/common';
import { catchError, map, switchMap } from 'rxjs/operators';
import { replace } from 'lodash';
import { Observable } from 'rxjs';
import { AxiosError } from 'axios';
import * as fs from 'fs-extra';
import * as path from 'path';
import ... |
<reponame>forest1040/taiyaki<filename>src/main.dev.ts
/* eslint global-require: off, no-console: off */
/**
* This module executes inside of electron's main process. You can start
* electron renderer process from here and communicate with the other processes
* through IPC.
*
* When running `yarn build` or `yarn b... |
import { Link } from 'remix'
import algoliasearch from 'algoliasearch/lite'
import { InstantSearch, SearchBox, connectStateResults, Hits, Highlight } from 'react-instantsearch-dom'
import { ReactElement } from 'react'
import { Route, heroString, nav } from '~/lib/config'
import { Header } from '~/components/Header'
imp... |
import { path, root, get, listen, post, close, handle, auth, Response, Request, customMethod } from "../index";
import fetch from "node-fetch";
import { deepStrictEqual } from "assert";
function sleep(ms: number) {
return new Promise(ok => setTimeout(ok, ms));
}
@root("/root")
class Test {
@path("/path")
@get
... |
/* @ts-ignore */
import React, { useState } from 'react'
import AttachmentIcon from 'assets/icons/attachment.svg'
import OwnerIcon from 'assets/icons/avatar.svg'
import CloseIcon from 'assets/icons/close.svg'
import GitIssueIcon from 'assets/icons/git-issue.svg'
import LabelIcon from 'assets/icons/label.svg'
import Zo... |
<filename>src/domain.ts
/// <reference path="../typings/modules/lodash/index.d.ts" />
/*
* cqjs/src/domain.js
*/
'use strict'
import * as _ from 'lodash'
import { CommandDef, ICommandDef, ICommandHandlerFunc } from './command'
import { EventDef, IEventDef, IEventLoaderFunc } from './event'
import { IKeyFunc, Rando... |
import { createCipheriv, createDecipheriv, randomBytes } from "crypto";
import { config } from "dotenv";
import { existsSync, readFileSync } from "fs";
export const CONFIG_ENC_SUFFIX = " #encrypted";
const ALGO = "aes-256-ctr";
const IV_SIZE = 16;
/**
* Defines the application configuration that follows [12-factor a... |
import { PropsWithChildren } from 'react'
import { useDispatch } from 'react-redux'
import { useLocation, useNavigate } from 'react-router'
import { Button } from 'src/components/Button'
import PlusIcon from 'src/components/icons/plus.svg'
import SendIcon from 'src/components/icons/send_payment.svg'
import ExchangeIcon... |
/**
* 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 { Grid, TextField } from "@mui/material"
import React, { ChangeEvent, useEffect, useMemo, useState } from "react"
import {
clone,
JSONTryParse,
uniqueName,
} from "../../../jacdac-ts/src/jdom/utils"
import useChange from "../../jacdac/useChange"
// tslint:disable-next-line: no-submodule-imports match... |
import { NextPage } from "next";
import { withTranslation } from "@Server/i18n";
import imageExampleIcon from "@Assets/images/story_image.png";
import sendIcon from "@Assets/images/paper-plane.png";
import avatarIcon from "@Assets/images/profile.jpeg";
import closeIcon from "@Assets/images/close.png";
import { Box, Ima... |
<reponame>KeithThor/trpg-server
/**A queue that keeps its elements sorted from lowest priority to highest. */
export class PriorityQueue<T> {
/**
* Constructs a new PriorityQueue using the given sorting function.
* @param sortingFunc A function that compares a given item with another.
*
* Return any numbe... |
/**
* @license
* 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 o... |
<filename>src/index.ts
import bowser from 'bowser';
export const detector =
typeof window !== 'undefined'
? {
ua: window.navigator.userAgent.toLowerCase(),
base: bowser.getParser(window.navigator.userAgent),
window: window,
// https://stackoverflow.com/questions/58019463/how-to-de... |
<reponame>gfontorbe/langium<gh_stars>100-1000
/******************************************************************************
* Copyright 2021 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
*****************... |
import { useEffect, useState } from 'react';
import { MapContainer, Polygon, Tooltip } from 'react-leaflet';
import { LeafletMouseEvent } from 'leaflet';
import { uniqBy } from '../../helpers';
import { Layers } from './Layers';
import 'leaflet/dist/leaflet.css';
const baseUrl = 'https://linz-addr-cdn.kyle.kiwi';
//... |
import Region from "../Region";
import * as apiHandler from "../apiHandler";
import {ChampionMasteryResponse, SummonerInfo} from "../apiHandler";
import {COMMON_DATA, renderError} from "../server";
import Champion from "../Champion";
import express = require("express");
import XRegExp = require("xregexp");
import handl... |
/*!
* @license
* Copyright 2019 Alfresco, Inc. and/or its affiliates.
*
* 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... |
<filename>tests/test-0700-multisig.ts
'use strict';
import { describe, it } from 'mocha';
import { expect } from 'chai';
import { mxw, MultiSig } from '../src.ts/index';
import { nodeProvider } from "./env";
import { bigNumberify } from '../src.ts/utils';
import { smallestUnitName } from '../src.ts/utils/units';
let ... |
import {
AfterViewInit,
ChangeDetectorRef,
Directive,
ElementRef,
forwardRef,
HostListener,
Input,
OnChanges,
OnDestroy,
OnInit,
Renderer2
} from '@angular/core';
import {
AbstractControl,
ControlValueAccessor,
NG_VALIDATORS,
NG_VALUE_ACCESSOR,
Validator
} from '@angular/forms';
import... |
<filename>src/app/terminals/crt-terminal/crt-terminal.component.ts
import {
Component,
ElementRef,
ViewChild,
AfterViewInit,
HostListener,
Injector,
} from '@angular/core';
import { CommandParserService } from '../../command-parsers/command-parser.service';
import { Terminal, PrintData } from '../terminal'... |
<gh_stars>10-100
import { Delegation } from './delegation'
import { Mutator } from './mutator'
import { isGenerator } from './utils'
export type Payload<T> = T | Delegation<T> | Mutator<T>
export type PayloadIterator<T> = Iterator<Payload<T> | never, Payload<T> | unknown, unknown>
export type GnProducer<T> = () => Pay... |
<reponame>stefan-sto/compass-console<filename>components/shared/src/Tooltip/styled.ts
import styled from 'styled-components';
import { TooltipType, TooltipOrientation } from './index';
interface TooltipContainerProps {
minWidth?: string;
maxWidth?: string;
type?: TooltipType;
light?: boolean;
orientation?: T... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { ReactiveFormsModule } from '@angular/forms';
import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-br... |
import React, { useEffect, useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import {
Button,
ButtonVariant,
Checkbox,
ClipboardCopy,
DataList,
DataListAction,
DataListCell,
DataListItem,
DataListItemRow,
DataListItemCells,
Form,
FormGroup,
... |
// ISAAC: a fast cryptographic random number generator
// http://www.burtleburtle.net/bob/rand/isaacafa.html
const goldenRatio = 0x9e3779b9;
// Generates 256 32-bits at once
export class ISAACGenerator {
private readonly mm: number[] = new Array<number>(256).fill(0);
public readonly randrsl: number[] = new Array<... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
/**
* This file contains extended forms of interfaces from vscode-debugprotocol
*/
import { DebugProtocol } from 'vscode-debugprotocol... |
"use strict";
// based on parseUri 1.2.2
// (c) <NAME> <<EMAIL>>
// MIT License
// http://blog.stevenlevithan.com/archives/parseuri
var parseUriOptions = {
strictMode: false,
key: ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "que... |
import React, { useEffect } from 'react'
import axios from 'axios'
import RefParser from '@apidevtools/json-schema-ref-parser'
import jsf from 'json-schema-faker'
import YAML from 'yaml'
import { pathOr } from 'ramda'
import Admonition from '@theme/Admonition'
import CodeBlock from '@theme/CodeBlock'
const parser = n... |
import React from 'react'
import { Col, Row } from 'react-bootstrap'
import { Trans, useTranslation } from 'react-i18next'
import { IconType } from 'react-icons'
import {
BsExclamationOctagonFill,
BsExclamationTriangleFill,
} from 'react-icons/bs'
import { BudgetConsumption } from 'components/calculator/util/budge... |
import React from 'react';
import {makeStyles} from '@material-ui/core/styles';
import {
Checkbox,
FormControlLabel,
Typography,
Drawer,
Divider,
Box,
ListItem,
List,
Paper,
Switch,
Button,
} from '@material-ui/core';
import {
DataFilter,
DataFilter_only_arrays,
Providers,
ServiceFeatures,... |
import { browser } from 'webextension-polyfill-ts'
import cancel from '~/assets/cancel.svg'
import error from '~/assets/error.svg'
import filterList from '~/assets/filter-list.svg'
import { Rule, Settings } from '~/models'
const ClassName = {
active: 'ylcfr-active',
menuButton: 'ylcfr-menu-button',
activeMenuBut... |
/*
* Author: <NAME> | <EMAIL> | https://github.com/DanilAndreev
*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* 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, i... |
/**
* 构建脚本
*/
import fs from 'fs';
import url from 'url';
import path from 'path';
import { rollup } from 'rollup';
import { createHash } from "crypto";
import colors from 'colors';
import buildAppPlugin from '../rollup-plugins/build-app';
// 配置信息
import { dom } from '../html';
import NAMES from '../utils/names';
im... |
import { createSelector } from '@reduxjs/toolkit'
import { assertionTypes } from '@roboportal/constants/assertion'
import { WAIT_FOR_ELEMENT, ASSERTION } from '@roboportal/constants/actionTypes'
import { IEventBlock } from '@roboportal/types'
import { EventRecorderState } from '@/store/eventRecorderSlice'
import { S... |
import { checkIfIsDateKey } from '../common';
import { CalendarJSON, EventJSON, ICalJSON, KeyValue } from '../types';
import { parseICalDate } from './dateHelpers';
import {
ALWAYS_STRING_VALUES,
ATTENDEE_KEY,
CALENDAR_END_KEY_VALUE,
EVENT_BEGIN_KEY_VALUE,
MAILTO_KEY,
MAILTO_KEY_WITH_DELIMITER,
RRULE_ICAL... |
<reponame>lestrell/angular-cli
/**
* @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 { logging, workspaces } from '@angular-devkit/core';
import { Rule, Tree } from... |
<filename>resources/assets/js/src/offline/store/modules/dataModules/posts.ts
import Vue from "vue";
import Post, {PostSerialised} from "@/src/offline/store/classes/Post";
import {DataModuleState, LinkId, LinksMap, NodePositionsMap, PostId, PostsMap} from "@/src/@types/StoreTypes";
import Link from "@/src/offline/store/... |
#!/usr/bin/env node
import fs from "fs-extra"
import slugify from "slugify"
import fsUtils from "fs-utils"
import chalk from "chalk"
import ora from "ora"
import spawn from "cross-spawn"
import inquirer from "inquirer"
const isEthAddress = (address) => {
if (/^(0x){1}[0-9a-fA-F]{40}$/i.test(address) == false) {
... |
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is... |
<reponame>MathZtew/wwv<filename>src/app/ehr/ehr.service.ts
import { Inject, Injectable } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Observable } from 'rxjs';
import { switchMap, map } from 'rxjs/operators';
import { EHR_CONFIG, EhrConfig } from './ehr-con... |
import { HttpClient, HttpEventType, HttpHeaders, HttpParams, HttpRequest, HttpResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { UploadInfoDto } from 'src/app/models/gen.dtos';
import { suppressGlobalErrorHandling } from '../utils/ser... |
<reponame>digital-ECMT/acuity-vahub
/*
* Copyright 2021 The University of Manchester
*
* 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
... |
/*
* Copyright (c) 2018 Rain Agency <<EMAIL>>
* Author: Rain Agency <<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 rig... |
import {Component, OnInit} from '@angular/core'
import {fetchStudentSearchDashboard, LabworkContent, StudentSearchDashboard} from './students-view-model'
import {HttpService} from '../services/http.service'
import {ActivatedRoute} from '@angular/router'
import {map, switchMap} from 'rxjs/operators'
import {EMPTY, Obser... |
/*
@TODO expose types with Cogent Intrinsic Elements
https://www.typescriptlang.org/docs/handbook/jsx.html
*/
declare global {
namespace JSX {
interface IntrinsicElements {
file: any
folder: any
}
}
}
import * as React from 'react';
import * as ReactIs from 'react-is';
import { ContextStack } f... |
import { Key } from "./key";
import { EventType } from './event-type';
interface eventReturnResult {
cancelled: boolean;
active?: boolean;
staticRanges?: Array<any>;
}
interface EventArgs {
action: string;
code?: string;
keyCode?: number;
isComposing?: boolean;
ctrlKey?: bool... |
<filename>modules/cactus-web/src/MenuBar/scroll.ts
import React from 'react'
import { supportsScopeQuery } from '../helpers/constants'
import { FocusControl, FocusSetter } from '../helpers/focus'
import usePopup, { TogglePopup } from '../helpers/usePopup'
const IS_CHAR = /^\S$/
const MENU_SELECTOR = 'nav [aria-orient... |
import CalendarPicker from '@covid/components/CalendarPicker';
import { requiredFormMarker } from '@covid/components/Form';
import { LabelText } from '@covid/components/Text';
import { ValidatedTextInput } from '@covid/components/ValidatedTextInput';
import { isGBCountry, isSECountry, isUSCountry } from '@covid/core/lo... |
import * as auth0 from 'auth0-js';
import { doPost } from 'bb-js-data-service-util';
import { config } from '../config';
// constants
export const ACCESS_TOKEN = 'access_token';
export const ID_TOKEN = '<PASSWORD>';
export const EXPIRY = 'expiry';
// utility and helper functions
export const isOk = (result: any, err:... |
'use strict';
import * as vscode from 'vscode';
import {GTA3ScriptController, Command, Argument} from '../controller';
interface BasicSignatureHelp {
/// The command being signaled.
command: Command,
/// The active argument or null if none.
/// Also see notes in `activeArgumentId`.
activeArgument:... |
import React from 'react'
import { Button } from '@consta/uikit/Button'
import { isDefined } from '@consta/widgets-utils/lib/type-guards'
import classnames from 'classnames'
import { ExtendedFeature, ExtendedFeatureCollection } from 'd3'
import * as d3 from 'd3'
import { Point, Polygon } from 'geojson'
import { uniq }... |
import * as React from 'react';
import {
RefObject, useCallback, useLayoutEffect, useRef, useState,
} from 'react';
import { StyleSheet, ScrollView, TextInput } from 'react-native';
import { useIsFocused } from '@react-navigation/core';
import { FontAwesome5 } from '@expo/vector-icons';
import { mapValues, pick } fro... |
<reponame>nikonov1996/cloudstack-ui
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Observable, of } from 'rxjs';
import { switchMap } from 'rxjs/operators';
import { AuthService } from '../../services/auth.service';
i... |
import React, { useState } from "react";
import { useForm } from "react-hook-form";
import { useNavigate } from "react-router-dom";
import { clutch as IClutch } from "@clutch-sh/api";
import type { BaseWorkflowProps } from "@clutch-sh/core";
import { Button, ButtonGroup, client, Dialog } from "@clutch-sh/core";
import ... |
import { VoltareClient, CommandContext } from 'voltare'
import { GeneralCommand } from '../../util/abstracts'
import { Collection } from 'mongodb'
import { stripIndents } from 'common-tags'
import { servers } from '../../util/database'
import { getChannel } from '../../util/fetchUtils'
import { sendError } from '../..... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import Swal from 'sweetalert2';
import { NgbCarouselConfig, NgbModal, ModalDismissReasons } from '@ng-bootstrap/ng-bootstrap';
import * as jsPDF from 'jspdf';
import 'jspdf-autotable';
import * as FileSaver from 'file-saver';
i... |
/**
* (c) 2021, Micro:bit Educational Foundation and contributors
*
* SPDX-License-Identifier: MIT
*/
import {
Box,
BoxProps,
Flex,
HStack,
Icon,
Link,
Tab,
TabList,
TabPanel,
TabPanels,
Tabs,
Text,
VStack,
} from "@chakra-ui/react";
import { ReactNode, useCallback, useMemo } from "react";... |
<reponame>vltansky/angular-cli<filename>packages/ngtools/webpack/src/resource_loader.ts<gh_stars>1-10
/**
* @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 * as vm ... |
import {
RESTDataSource,
RequestOptions,
HTTPCache,
} from "apollo-datasource-rest";
import { cond, equals, always } from "ramda";
import { REQUEST_CACHE_TTL } from "../config/from-env";
import https from "https";
import turndown from "turndown";
// @ts-ignore
import decode from "unescape";
export type ItemType ... |
<reponame>ElijahMSmith/Daily-Challenge-Problem
import {
ThreadChannel,
GuildChannel,
TextChannel,
Message,
Client,
MessageEmbed,
Guild,
} from "discord.js"
import { getDifficultyString, months, days } from "./utils/utils"
import { OutputChannel, Problem, ProblemInfo } from "./utils/types"
import { getAdditionalP... |
import {
Application,
Conditional,
Expression,
ExpressionKind,
Identifier,
Lambda,
Let,
Literal,
LiteralKind,
} from '../../ast';
import { assertUnreachable } from '../../util';
import { validJsName } from './names';
import { indent } from './helpers';
import {
isBinaryOperator,
... |
/**
* @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 { strings } from '@angular-devkit/core';
import { Argv } from 'yargs';
import {
CommandModuleError,
Comman... |
import { AnnotationJSON, ParseAnnotation } from "@atjson/document";
import * as entities from "entities";
export interface Attributes {
[key: string]: string | number | boolean | null;
}
function getAttributes(token: Token): Attributes {
let attributes: Attributes = {};
if (token.attrs) {
for (let attribute... |
import {IsString, MinLength} from "class-validator";
import {ObjectId} from "mongodb";
import {Auth} from "../../../Authentication";
import {Authorization} from "../../../Authorization/Authorization";
import {EventManager} from "../../../Events";
import {
body,
Controller,
controller,
DataTransferObject,
dto,
get... |
<gh_stars>1-10
import {
AssertItem,
AssertItemFail,
Asserts,
AssertsFunc,
IsEqual,
IsEqualPrimitive,
IsNotEqual,
IsPrimitive,
TestCase,
TestItem,
TestUnit
} from "./testing.types"
import { Level, normal } from "./output"
const testList: TestItem[] = []
const createErrorIfNo... |
<filename>sourcecode/src/app/site/videos/add-video-modal/add-video-modal.component.ts
import {ChangeDetectionStrategy, Component, Inject, OnInit, ViewEncapsulation} from '@angular/core';
import {BehaviorSubject} from 'rxjs';
import {FormBuilder} from '@angular/forms';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angul... |
import * as EventEmitter from "eventemitter3";
import {EmitSignal} from "./EmitSignal";
export type XhrResponseType = 'text'|'arraybuffer'|'blob'|'document'|'json'|'';
export type ImageOptions = {
url: string;
width?: number;
height?: number;
};
export type XhrOptions = {
url: string;
... |
<reponame>modest/framerx-js-lib
import { Animator } from "./Animator"
import { State } from "./Integrator"
import { FrictionAnimator } from "./FrictionAnimator"
import { SpringAnimator } from "./SpringAnimator"
import { NumberInterpolation } from "../../interpolation"
export const Defaults = {
velocity: 0,
min... |
import { Theme, createStyles, WithStyles, FormControlLabel, Button, withStyles, Typography, Badge, Checkbox } from "@material-ui/core";
import { IFilters } from "../../../models/grid/filtersData";
import React from "react";
import ExpPanel from "../../../components/ExpPanel";
import FromToDatePicker from "../../../comp... |
<filename>src/app/js/objects/CircleButton.ts
import Canvas from "../core/Canvas";
import Vector2 from "../utils/math/Vector2";
import { Vector2 as Vector } from "../utils/Vector2";
import Rect from "../utils/math/Rect";
import { TweenLite, TweenMax } from "gsap";
import State from "../utils/State";
import VideoLoader f... |
<gh_stars>1-10
export interface ReplayServerVersion {
versionInfo: {
serverVersion: number;
[name: string]: any;
};
[name: string]: any;
}
export interface ReplayData {
code: string;
endCondition: number;
endTime: number;
format: number;
result: number;
startTime: nu... |
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx, Text, Flex, SxStyleProp, Box } from 'theme-ui';
import { Direction, Range } from 'react-range';
import React, { useCallback, useEffect, useState } from 'react';
import { convertRangeToDbMeasure, formatDbMeasure, getBaseLog } from './utils';
import { IAnalyserNode... |
import { existsSync, realpathSync } from 'fs';
import { dirname, join, resolve } from 'path';
import { NodeVM } from 'vm2';
import Archetyped from './archetyped';
import {
ArchetypedConfig,
ArchetypedExtension,
ExtendedError,
ExtensionConfig,
} from './lib';
import { ExtensionModuleDefinition } from './lib/con... |
// +++++ 7N9V5 +++++
// -----
import { LockTwoTone } from '@ant-design/icons';
import { UserOutlined } from '@ant-design/icons';
import ProForm from '@ant-design/pro-form';
import { ProFormText } from '@ant-design/pro-form';
import { Tabs } from 'antd';
import useIsMounted from 'ismounted';
import React from 'react';... |
import React, { useState, useEffect, useRef } from "react";
import update from "immutability-helper";
import styled from "@emotion/styled";
import { Document, Icon, LoadingBarOverlay, useTranslate } from "@bitbloq/ui";
import {
HorizontalBloqEditor,
HardwareDesigner,
bloqs2code,
getBoardDefinition,
Web2Board,... |
import { observer } from 'mobx-react';
import React, { FunctionComponent, useCallback, useEffect, useState } from 'react';
import { Carousel, Colors, GridView, Image, Spacings, Text, TouchableOpacity, Typography, View } from 'react-native-ui-lib';
import { ScreenComponent } from 'rnn-screens';
import { useServices } fr... |
<gh_stars>0
import {
IConnection,
TextDocuments,
InitializeResult,
TextDocumentPositionParams,
CompletionItem,
} from 'vscode-languageserver'
import { TextDocument } from 'vscode-languageserver-textdocument'
import { CodeAction, TextDocumentEdit, TextEdit, Position, CodeActionKind } from 'vscode-languageserv... |
import { Diablo2Mpq, Diablo2MpqData } from '@diablo2/data';
import { Mpq } from '@diablo2/mpq';
import { StrutInfer, StrutType } from 'binparse';
import * as path from 'path';
import { Logger } from './log.type.js';
import { ItemFileParser } from './readers/item.reader.js';
import { LangReader } from './readers/lang.re... |
import { faCaretLeft, faCaretRight } from '@fortawesome/pro-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React from "react";
import { Button, Card, Col, Container, Nav, Row } from "react-bootstrap";
import { SageNodeInitializedFreezerNode } from '../state';
import { FieldHa... |
import {
Connection,
Diagnostic,
} from 'vscode-languageserver';
import * as fs from "fs";
import * as path from "path";
import { URI } from 'vscode-uri';
import { Setting } from './setting';
import { SymInfoEx } from './symbol';
type WalkerCallBack = (uri: string, ctx: string) => void;
export class DirWalke... |
import {Transform, TransformOptions, TransformCallback} from 'stream';
import {chr, gender, rawFormat, Snp, SnpInfo, ValidationInfo} from './raw.models';
import {checkBuildForSnp} from './utils/genome-build';
import {
ERROR_GENOME_BUILD_MIX,
ERROR_GENOME_BUILD_NOT_DETECTED,
ERROR_GENOME_BUILD_NOT_ENOUGH,
ERROR_... |
<gh_stars>0
import {BehaviorSubject, ConnectableObservable, Observable, Subject, Subscriber} from "rxjs";
import {Notifications} from "ngx-base";
import {DeploymentService} from "./../../../service/deployment.service";
import {Environment, Space} from "./../../../model/space.model";
import {ServiceService} from "./../.... |
import * as React from 'react';
import { Link } from 'react-router-dom';
import { config } from '../../config';
import { Breadcrumbs } from '../Breadcrumbs';
import { CreateStreamPopup } from '../Dashboard/createStreamPopup';
import { NewStreamRulePopup } from '../Dashboard/newStreamRulePopup';
import { SetOutputPopup ... |
import * as React from "react";
import * as ReactDOM from "react-dom";
import { $T } from "i18n-strings";
import { getTurtleById } from "ui/turtles/turtles";
import { UserSettings } from "services/user-settings";
import { Theme } from "ui/themes-helper";
import { TutorialInfo, TutorialStepInfo, TutorialStepContent } ... |
import { BaseResponse } from "../baseTypes";
export interface GetInboundGuidanceQuery {
MarketplaceId: string;
SellerSKUList?: string[];
ASINList?: string[];
}
export interface GetInboundGuidanceResponse extends BaseResponse {
payload?: GetInboundGuidanceResult;
}
export interface CreateInboundShipmentPlanBo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.