text stringlengths 3.08k 15.5k |
|---|
import {TUpdatePayload} from "../../../customRenderer/createReconciler";
import {CustomDescriptor} from "../../../customRenderer/descriptors/CustomDescriptor";
import {IHostDescriptor} from "../../../customRenderer/descriptors/IHostDescriptor";
import {PropertyUpdater} from "../../../customRenderer/descriptors/properti... |
import type { Media, Path } from "@common/@types/generalTypes";
import { type RefObject, useEffect, useRef } from "react";
import { MdOutlineDelete as Remove } from "react-icons/md";
import { MdClose as Close } from "react-icons/md";
import { Dialog } from "@radix-ui/react-dialog";
import {
MetadataToChange,
ReactT... |
import * as React from 'react'
import { Component } from 'react'
import { observer } from 'mobx-react'
import { Text } from 'react-native'
import { TextStyle } from 'react-native'
import { View } from 'react-native'
import { ViewStyle } from 'react-native'
import { PlayingCard } from './PlayingCard'
import { Point } f... |
import { Texture } from "@pixi/core";
import { Sprite } from "@pixi/sprite";
import { Body, Circle } from "p2";
import snd_electrocution from "../../../../resources/audio/fish/electrocution.flac";
import img_squid1 from "../../../../resources/images/fish/squid-1.png";
import img_squid2 from "../../../../resources/image... |
import { Component, ChangeDetectorRef, ChangeDetectionStrategy, OnDestroy, OnInit, TemplateRef, ViewEncapsulation } from '@angular/core';
import { FieldType } from '@ngx-formly/core';
import { FormControl } from '@angular/forms';
import { BehaviorSubject, Subject } from 'rxjs';
import { map, debounceTime, switchMap, s... |
function draw() {
let canvas: CanvasElement = new CanvasElement();
let xDifference = 126;
let yDifference = 30;
initializeBoard(canvas, xDifference, yDifference);
makeAllItemsDraggable();
droppableWithDragebles();
}
function addUIElement(){
}
function droppableWithDragebles() {
event : Event... |
<gh_stars>1-10
/*
Copyright 2018 Balena Ltd.
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 a... |
<gh_stars>1-10
import * as vscode from 'vscode';
import * as path from 'path';
import { ObjectUtils } from '../common/object.util';
import { CONST_EXTENSION_SETTING_FILE } from '../../constants';
import { FileUtils } from '../common/file.util';
const G_DefaultSetting: INgI18nExtSetting = {
tm: { // TODO: translation... |
/*
* Copyright (C) 2016 Bilibili. All Rights Reserved.
*
* @author <NAME> <<EMAIL>>
*
* 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... |
<gh_stars>0
import { resolve } from "dns";
import fetch from "node-fetch";
// hw2 practice async
const request = require('request'); // I hate myself everytime I type this
require('dotenv').config();
let sha1 = require('sha1');
// interface for queries
interface WeatherUpdate {
location: string; // i.e. "Vanderbilt ... |
import _ from 'lodash';
import * as util from '../../../util/util';
import * as test from '../../../util/test';
import chalk from 'chalk';
import { log, logSolution, trace } from '../../../util/log';
import { performance } from 'perf_hooks';
import { getRows } from '../../../util/input';
const YEAR = 2021;
const DAY =... |
import {
DeleteOutlined,
EditOutlined,
ExclamationCircleOutlined,
StarOutlined,
} from "@ant-design/icons";
import { Post, Redirect, SharedLayout, Stringify } from "@app/components";
import {
Desktop,
DesktopComment,
DesktopDocument,
useDeleteDesktopCommentMutation,
useDesktopQuery,
usePostCommentMu... |
<filename>chrome/browser/resources/settings/languages_page/edit_dictionary_page.ts
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview 'settings-edit-dictionary-page' is a sub-page for ... |
<gh_stars>1-10
// Errors
export const ESuccess: number = 0; // Generic success
export const EFail: number = 1; // Generic failure
export const EFull: number = 2; // Too many clients attached to this session; try later
export const ERetry: number = 3; // Try request again
export const ENoSess... |
/**
* @version 0.20
*/
import { BlocksoftBlockchainTypes } from '../../BlocksoftBlockchainTypes'
import BlocksoftCryptoLog from '../../../common/BlocksoftCryptoLog'
import BlocksoftUtils from '../../../common/BlocksoftUtils'
import { TransactionBuilder, ECPair, payments } from 'bitcoinjs-lib'
import config from '../.... |
<reponame>hectorhdzg/azure-sdk-for-js
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed... |
<reponame>Charliekenney23/papiea-js
// [[file:~/work/papiea-js/Papiea-design.org::*/src/core.ts][/src/core.ts:1]]
// This should probably be imported from some library
export type uuid4 = string;
// [[file:~/work/papiea-js/Papiea-design.org::#h-Coretypes-732][core-types]]
// Calback url is just a string
export type Pr... |
import React, { useState, useEffect, useRef } from "react";
import {
BrowserRouter,
Switch,
Link,
Route,
Redirect,
RouteProps,
RouteComponentProps,
} from "react-router-dom";
import Nav from "react-bootstrap/Nav";
import Navbar from "react-bootstrap/Navbar";
import Button from "react-bootstrap/Button";
im... |
<reponame>thibautcornolti/EpiStalk
import express = require('express');
var router = express.Router();
import { withAPILogin } from '../src/middleware';
import {
login, register, getUser, getAllUsers, getUserWithEmail,
newPassword, hasAutoLogin, setPreferences, setPreference,
getLastChangedPreference,
} fro... |
<gh_stars>1-10
import type { Dict, Falsy, Nil, NonUndefined, Primitive } from '../type/types';
type Type =
| 'Number'
| 'String'
| 'Boolean'
| 'Array'
| 'Object'
| 'Function'
| 'Null'
| 'Undefined'
| 'Blob'
| 'Date'
| 'Uint8Array'
| 'Uint8ClampedArray'
| 'Uint16Array'
| 'Uint32Array'
| 'I... |
import React, {useRef, useState, useEffect} from 'react';
import { ContentPaneProps } from '../../models/ContentPaneProps';
import { DataCardInfo } from '../../models/DataCardInfo';
import { SingleRequestData } from '../../models/RequestData';
import DataCard from '../basic/DataCard';
import { DataCardStatus } from '.... |
import * as PIXI from "pixi.js";
import EventTimeline = PIXI.spine.core.EventTimeline;
import "pixi-spine";
import {createBitmapText, createFlippedYText} from "./pixi.utils";
const loadSpineAssets = async function(
assets: Map<string, string>
): Promise<Map<string, PIXI.spine.core.SkeletonData>> {
cons... |
import {PlusCircleOutlined} from "@ant-design/icons/lib";
import {Dropdown, Menu} from "antd";
import Button from "antd/lib/button";
import {MenuItemProps} from "antd/lib/menu/MenuItem";
import autobind from "autobind-decorator";
import * as React from "react";
import {Container, ContainerOptions, Draggable, DropResult... |
import * as path from "path";
import { PackageExtras, parsePackage } from "./package-extra";
import ts from "typescript";
import * as fs from "fs";
import { LuaVisitor } from "./luavisitor";
import { Installer } from "./installer";
function reportDiagnostics(diagnostics: ReadonlyArray<ts.Diagnostic>): void {
... |
<filename>state/viz.ts
import React from 'react'
import { useRouter } from 'next/router'
import { createContainer } from 'unstated-next'
import { useDisclosure } from '@chakra-ui/react'
import {
useQueryParam,
StringParam,
ArrayParam,
withDefault
} from 'use-query-params'
import omit from 'lodash.omit'
import ... |
import React from "react";
import "reflect-metadata";
import Plot from "react-plotly.js";
import { observer } from "mobx-react";
import * as mobx from "mobx";
import { RootStore, UiStore, AnnotationStore } from "./stores";
import LoadingOverlay from "react-loading-overlay";
import { DEFAULT_TEXT } from "./text";
impo... |
import { Is } from ".";
/* ---- Responsive Breakpoints ---- */
export type Breakpoint =
| "mobile"
| "tablet"
| "desktop"
| "widescreen"
| "fullhd";
type MobileBreakpoint = "touch";
type OnlyBreakpoint = `${Extract<
Breakpoint,
"tablet" | "desktop" | "widescreen"
>}-only`;
/* ---- Colors ---- */
export... |
import Port = chrome.runtime.Port;
import Transformer from "./transformer";
import * as utilities from "./utilities";
const inViewport = (node: HTMLElement) => {
const bounding = node.getBoundingClientRect();
// If all four of the corners are covered by another element that's not a parent, no need to show
if (
... |
import { RelativePattern, Uri, workspace } from 'vscode';
import { logger } from '../Tools/Logger';
import { isSubOf, pathBasename, pathDirname } from '../Tools/UriTools';
import { AsPackageFile } from './Files/AsPackageFile';
export type AsProjectPouType = 'library' | 'program' | 'dataObject' | 'other';
export type ... |
import { MyFormik } from 'domains/shared/components/form/MyFormik';
import { FormErrors } from 'domains/shared/constants/FormErrors';
import { FormProps } from 'domains/shared/types/form';
import { Field, FieldArray, Form } from 'formik';
import { Select, TextField } from 'formik-material-ui';
import { QuestionType } f... |
<reponame>x6ud/search-photos-by-model-tool
import Vue from 'vue'
import * as THREE from 'three'
import {OBJLoader} from 'three/examples/jsm/loaders/OBJLoader'
const DEG_2_RAD = 1 / 180 * Math.PI;
const ZOOM_MAX = 20;
const FPS = 25;
export default class ModelViewer extends Vue.extend({
props: {
width: {
... |
import { createSelector } from 'reselect'
import fp from 'lodash/fp'
import { Dictionary } from 'lodash'
import { annotation_id_t, Annotation_t } from './model'
import * as app_selectors from '../app/selectors'
import * as annotation_window_selectors from '../annotation_window/selectors'
import * as worldlines_selecto... |
/* 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 may... |
/**
* Copyright 2021 Vitagroup AG
*
* 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 ... |
export interface IAction {
readonly type: string;
readonly idx?: number;
}
type Applier<T, S extends IAction> = (state: T, action: S) => T;
export interface ICreateAction<S extends IAction> {
(partial?: Partial<S>): S;
TYPE(): string;
}
interface IActionFactory<S extends IAction, T> {
TYPE: string;
apply: Appl... |
<reponame>apivideo/api.video-browser-to-rtmp
import { FfmpegConfig, ServerError } from './types';
import { ChildProcessWithoutNullStreams, spawn } from 'child_process';
import { EventEmitter } from 'events';
import { Logger } from 'tslog';
import TypedEmitter from "typed-emitter"
export const FfmpegErrors: { [name: st... |
<filename>src/index.ts
// Basic Components
import { TurtleAvatar } from "./turtle-avatar.js";
import { TurtleBalloon } from "./turtle-balloon.js";
import { TurtleButton } from "./turtle-button.js";
import { TurtleButtonGroup } from "./turtle-button-group";
import { TurtleCard } from "./turtle-card.js";
import { TurtleC... |
import bs58 from 'bs58';
import base64url from 'base64url';
import { generate } from './functions/generate';
import { fromJwk } from './functions/fromJwk';
import { deriveSecret } from './Jwe';
import { privateKeyToSigner, publicKeyToVerifier } from './Jws';
import { toJwkPair } from './functions/toJwkPair';
import {... |
import { iMasterPlaylist, iGenericPlaylist, iVariant, iMediaTrack } from "./hls-parser-types";
import { Rendition, RenditionType } from "./rendition";
import { MediaTrack } from "./media-track";
import { ChunklistPruneType } from "./chunklist";
const request = require('request');
const HLS = require('hls-parser');
e... |
import { Box, Keyboard } from 'grommet';
import { hasAppropriateLength } from 'lib/helpers';
import React, { Component, FormEvent, GetDerivedStateFromProps } from 'react';
import { Constants } from 'shared/constants';
import styled from 'styled-components';
import Button from 'UI/Controls/Button';
import { Tooltip, Too... |
<gh_stars>10-100
/*
* Selection comprising one or more index intervals.
*/
import { ArrayUtils } from '../util/array-utils.js';
export class Multiselection {
// The minimum selected index.
private _minIndex: number;
// The maximum selected index.
private _maxIndex: number;
// The selected index interv... |
<reponame>798664894/developer-tools
/*
* @Descripttion: 操作state的action
* @version:
* @Author: wangqi
* @Date: 2019-07-16 13:27:16
* @LastEditors: wangqi
* @LastEditTime: 2019-08-13 11:21:34
*/
import { ActionTree } from 'vuex'
import { Message, Loading } from 'element-ui'
import API from '../api/index'
import mo... |
import { isUndefined, unwrap, isFunction } from "./shared";
import { wrapMethod } from "./method";
const {
construct,
apply,
deleteProperty,
has,
set,
get,
ownKeys,
defineProperty,
setPrototypeOf,
getPrototypeOf,
isExtensible,
preventExtensions,
getOwnPropertyDescrip... |
<reponame>seveves/qarrr
import { QRCode } from './qrcode';
export const patterns = {
pattern1: (x: number, y: number) => ((x + y) % 2 === 0),
pattern2: (x: number, y: number) => (y % 2 === 0),
pattern3: (x: number, y: number) => (x % 3 === 0),
pattern4: (x: number, y: number) => ((x + y) % 3 === 0),
pattern5... |
import React, { useContext, useState } from 'react'
import { useMediaQuery } from 'react-responsive'
import { Link } from 'react-router-dom'
import { HashLink } from 'react-router-hash-link';
import {Accordion, Icon, Input} from 'semantic-ui-react'
import { mobileDeviceOrTabletWidth } from '../../../constants'
import T... |
/**
* Utility functions used throughout the app.
*/
import { contentType, Class, userData } from "./types";
import _ from "underscore";
const dateFormat = require("dateformat");
const dateStringFull: string = "mmmm d, yyyy";
const dateStringCompact: string = "m/d/yyyy";
const dateStringExtra: string = "ddd, mmmm dS... |
/*
* @Author: your name
* @Date: 2022-01-01 14:44:33
* @LastEditTime: 2022-01-26 23:35:59
* @LastEditors: wuqinfa
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /template-eva/src/create/FileGenerator.ts
*/
import {
workspace,
window,... |
<reponame>htbkoo/spike-learn-mobx-rxjs
import {flatten, range, shuffle, sumBy, take} from "lodash";
import produce from "immer";
import {BoardData, BoardDimension, CellCoordinates} from "./types";
import {AppState, GameConfig, GameState, GameStatus} from "./reactHooks/PlainReactHookMinesweeperApp";
export type Simple... |
<reponame>jmls/loopback-connector-jira
import {Validator} from '../validator';
const validation = new Validator();
const debug = require('debug')('loopback:connector:jira.resource.baseResource');
const _ = require('lodash');
const UrlPattern = require('url-pattern');
const api = require(`./definition/api`);
const path... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { AngularFireDatabase, AngularFireObject } from '@angular/fire/database';
import { Observable, Subscription } from 'rxjs';
import { AngularFireAuth } from '@angular/fire/auth';
import { AngularFirestore, AngularFirestoreDocument, AngularFirestoreColle... |
<filename>source/modules/OSIProtocolSpecification/OsiReq.ta.ts
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
Code,
_decode_Code,
... |
import express from 'express'
import http from 'http'
import { once } from 'lodash'
import logger from './logger'
import path from 'path'
import { loadDestination } from './destinations'
import type { DestinationDefinition } from './destinations'
import {
Destination,
DestinationDefinition as CloudDestinationDefini... |
/*
* @Date: 2022-03-09 23:21:00
* @LastEditors: zhangheng
* @LastEditTime: 2022-06-03 02:39:55
*/
import React, {
memo,
useState,
useEffect,
useRef,
useCallback,
PropsWithChildren,
BaseSyntheticEvent,
} from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import classNames from '... |
<gh_stars>0
import { Observable, Observer } from 'rxjs';
import { filter, flow, forEach, is, isDefined, lookup, Map, on, separate, values } from 'tsfun';
import { CategoryForm } from '../model/configuration/category-form';
import { Field } from '../model/configuration/field';
import { Document } from '../model/document... |
import {
GraphQLFieldConfigMap,
GraphQLID,
GraphQLInputObjectType,
GraphQLInt,
GraphQLInterfaceType,
GraphQLList,
GraphQLNonNull,
GraphQLObjectType,
GraphQLType,
Thunk,
} from 'graphql'
import { createArgsFields } from './args-filter-generator'
import { applyDefaultConfiguration, GeneratorConfigura... |
<reponame>knnativeflow/zdalnie-na-pwr
import defaultRequest from 'request-promise'
import cheerio from 'cheerio'
import { Response as RequestResponse } from 'request'
const URL_OAUTH_PAGE = 'https://oauth.pwr.edu.pl/oauth'
const URL_LOGIN_PAGE = 'https://jsos.pwr.edu.pl/index.php/site/loginAsStudent'
const ENABLE_LOGG... |
import * as _ from '@antv/util';
import { Group } from '@antv/g';
import { Global, registerShape } from '@antv/g2';
import { setFillStyle } from '@antv/g2/lib/element/util/shape';
import { ShapeDrawCFG, ShapeMarkerCfg, ShapePointInfo } from '@antv/g2/lib/interface';
// 获取填充图形的图形属性
function _getFillAttrs(cfg) {
const... |
<reponame>AnteaterCode/shatilokit
import { Directive, OnDestroy, forwardRef, ExistingProvider, Input, ElementRef, ViewContainerRef, Optional, Inject } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import {
ConnectionPositionPair,
FlexibleConnectedPositionStrateg... |
<filename>app-angular/src/app/components/sections/database/alter-base/database-alter.base.ts<gh_stars>1-10
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
import {
FormBuilder,
Validators,
AbstractControl,
FormGroup
} from '@angular/forms';
import { DomSanitizer, SafeHtml } from '@angular/... |
import { gql, useMutation } from '@apollo/client'
import { GridItemEight, GridItemFour, GridLayout } from '@components/GridLayout'
import { Button } from '@components/UI/Button'
import { Card, CardBody } from '@components/UI/Card'
import { Form, useZodForm } from '@components/UI/Form'
import { Input } from '@components... |
import randomColor from "randomcolor";
import DbcUtils from "../../utils/dbc";
interface ISignalConstructor {
name?: string;
startBit?: number;
size?: number;
isLittleEndian?: boolean;
isSigned?: boolean;
isFloat?: boolean;
factor?: number;
offset?: number;
unit?: string;
receiver?: Array<string>;
comment?:... |
import React, { ReactElement, useEffect, useMemo, useReducer, useRef, useState } from 'react'
import { ActionTypes, IDispCenter, ILocalState } from '../App';
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import './Home.scss'
import { formatDate, formatSessions, play } f... |
<filename>frontend/src/app/feature/invoice/create-invoice/create-invoice.component.ts
import { Component, OnDestroy, OnInit, ViewChild } from "@angular/core";
import { DocumentTypesService } from "src/app/services/document-types.service";
import { PaymentTypesService } from "src/app/services/payment-types.service";
imp... |
<filename>workspace/src/main/resources/public/ts/delegates/actions/share.ts
import { template, SharePayload, ShareAction, model, notify, idiom } from "entcore";
import { models, workspaceService } from "../../services";
export interface ShareDelegateScope {
copyingForShare: boolean;
sharedElements: models.Ele... |
<filename>src/utils.ts
const path = require('path');
import { File, Directory, DisposableLike } from 'atom';
import { Api } from './api';
import { Socket } from './socket';
import { PACKAGE_NAME, configGetter } from './config';
import { User } from './services/user';
import { authCommand } from './commands/auth';
le... |
import React from "react";
import {
EntryIcon,
EntryName,
InfoWrapper,
Md,
Name,
PropertyWrapper,
Title,
} from "./components/internal";
import {
Columns,
ColumnWrapper,
FinderProps,
InnerWrapper,
OuterWrapper,
RowGroupWrapper,
} from "./internal";
import {parseJSONSchema7, SchemaNode, SchemaN... |
import { ResultCard } from '../result-cards/ResultCard';
import { PlotResultCard } from '../result-cards/PlotResultCard';
import { TableResultCard } from '../result-cards/TableResultCard';
import { connectLocale, WithLocale } from '../../../../components/connectLocale';
import { InverseProblemOptions } from './InverseP... |
<filename>frontend/packages/console-dynamic-plugin-sdk/scripts/generate-doc.ts<gh_stars>0
import * as fs from 'fs';
import * as path from 'path';
import * as tsdoc from '@microsoft/tsdoc';
import chalk from 'chalk';
import * as ejs from 'ejs';
import * as _ from 'lodash';
import * as tsu from 'tsutils';
import * as ts ... |
import React, { FC, useState, useCallback, useEffect, useRef, useMemo } from 'react';
import { LiveProvider, LiveEditor, LivePreview, LiveError } from 'react-live';
import { Language, PrismTheme } from 'prism-react-renderer';
import defaultTheme from 'prism-react-renderer/themes/github';
import { styled } from '@storyb... |
import { DataStructure } from '@typings/typings/DataStructure';
import { format } from 'date-fns';
import { Observable, of } from 'rxjs';
import { map } from 'rxjs/operators';
import { AppInjector } from 'src/app/service/app.injector';
import { DataService } from 'src/app/service/data.service';
import { RestService } f... |
import { IAnimationActor, IAnimationEase, IParsedAnimation, AnimationBindInfo, AnimationTargetType } from "../../typedefs";
import { OpacityAnimationActor } from "../actors/opacity";
import { DefaultEase } from "../easing/default";
import { InvertedEase } from "../easing/inverted";
import { MultiAnimation } from "../mu... |
<reponame>Diabetips/diabetips-api
/*!
** Copyright 2019-2020 Diabetips
**
** All rights reserved
**
** Created by <NAME> on Tue Aug 27 2019
*/
import express = require("express");
// tslint:disable-next-line:no-var-requires
require("express-async-errors"); // Patch Express to handle errors in async handlers correctly
... |
<reponame>salewski/openapi-cli
import { existsSync, readFileSync, writeFileSync, unlinkSync } from 'fs';
import { resolve } from 'path';
import { homedir } from 'os';
import { red, green, gray, yellow } from 'colorette';
import { RegistryApi } from './registry-api';
import { AccessTokens, DEFAULT_REGION, DOMAINS, Regio... |
import { TweenSystem, Tweenable, Tween, Syncable, TweenType } from './tween'
import { setTimeout, DelaySystem } from './delay'
export type Props = {}
type DelayValues = {
timeout: number
onTimeout: Actions
}
type PrintValues = {
message: string
duration: number
multiplayer: boolean
}
type SyncEntity = {
... |
<reponame>ascoders/viser<gh_stars>0
import 'zone.js';
import 'reflect-metadata';
import { Component, enableProdMode, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ViserModule } from '../../../packages/viser-ng/src/index';
const DataSet = require('@antv/data-set');
... |
import { CheckCircleOutlined, InboxOutlined } from '@ant-design/icons';
import {
Button,
Form,
Input,
InputNumber,
message,
Select,
Upload,
} from 'antd';
import { debounce } from 'debounce';
import { translations } from 'locales/i18n';
import React from 'react';
import { useTranslation } from 'react-i18n... |
<reponame>greazer/vscode-github-issue-notebooks
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------... |
<filename>src/platforms/ios/typings/NearbyMessages.d.ts<gh_stars>1-10
declare class GNSBeaconStrategy extends NSObject implements NSCopying {
static alloc(): GNSBeaconStrategy; // inherited from NSObject
static new(): GNSBeaconStrategy; // inherited from NSObject
static strategy(): GNSBeaconStrategy;
static st... |
<filename>src/client/core/aad/authentication/authentication.service.ts
import { BehaviorSubject, Observable } from "rxjs";
import { SecureUtils } from "@batch-flask/utils";
import { BatchExplorerApplication } from "client/core/batch-explorer-application";
import { Deferred } from "common";
import { AADConfig } from ".... |
<filename>src/domain/avatars/ClientTraitsHandler.ts
//
// ClientTraitsHandler.ts
//
// Created by <NAME> on 8 Apr 2022.
// Copyright 2022 Vircadia contributors.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
/... |
import EventIcon from '@mui/icons-material/Event';
import FlightIcon from '@mui/icons-material/Flight';
import FlightTakeoffIcon from '@mui/icons-material/FlightTakeoff';
import MapIcon from '@mui/icons-material/Map';
import PersonIcon from '@mui/icons-material/Person';
import PhotoLibraryIcon from '@mui/icons-material... |
import { Component, OnInit, Input, SimpleChanges, OnChanges, SimpleChange, Output, EventEmitter } from '@angular/core';
import { DatabaseService } from '../../providers/database.service';
import { SharedService } from '../../providers/shared.service';
import { WorkspaceService } from '../../providers/workspace.service... |
<reponame>AndyDecker/fhir-ts
/**
* CompartmentDefinition Module
*/
import * as primitives from "@tangdrew/primitives";
import * as t from "io-ts";
import { ContactDetail } from "./ContactDetail";
import { Element } from "./Element";
import { Extension } from "./Extension";
import { Meta } from "./Meta";
import { Nar... |
<filename>web_console_v2/client/src/components/WorkflowJobsFlowChart/helpers.ts
import { Elements, Node, XYPosition, Edge } from 'react-flow-renderer';
import { Job, JobExecutionDetalis, JobState } from 'typings/job';
import { isHead, isLast } from 'shared/array';
import { head, last } from 'lodash';
const TOP_OFFSET ... |
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
import React, {Dispatch, DispatchWithoutAction, useState} from "react";
import {createStyles, IconButton, TextField, TextFieldProps, Tooltip} from "@material-ui/core";
import {Configurable} from "../../pattern/Configurable";
import {label} from "./ManagedLabel";
import {observe} from "../../pattern/Observable";
import ... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import {
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import { ISessionContext, DOMUtils } from '@jupyterlab/apputils';
import { Text, Time } from '@jupyterlab/coreutils';
import { ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TokenCredential } from "@azure/core-auth";
import {
HttpClient,
PipelineRequest,
PipelineResponse,
Pipeline,
createPipelineRequest
} from "@azure/core-rest-pipeline";
import {
OperationArguments,
OperationSpec,
Operatio... |
import Log from "@frasermcc/log";
import { Message, MessageCollector, MessageEmbed, NewsChannel } from "discord.js";
import Client from "../client/Client";
import { AliasManager } from "./alias/Alias";
import { clearArguments, setArguments } from "./arguments/Argument";
import CommandInhibitor from "./inhibitor/Command... |
<filename>server/server.ts
import express from "express";
import dotenv from "dotenv";
import mongoose from "mongoose";
import cors from "cors";
const app = express();
// load environment variablesd
dotenv.config({ path: `../.env` });
if (!process.env.NODE_ENV) {
console.error(`NODE_ENV is not set.\n`);
process.ex... |
import { RemoteInfo } from "dgram";
import { unpackFrom, pack, DataType } from "python-struct";
import LGXDevice, { getDevice, getVendor, ILGXDevice } from "./lgxDevice";
import { PinMappingError } from "./errors";
import PLC from "./PLC";
declare module "python-struct" {
export function unpackFrom(
format: stri... |
import * as React from 'react'
import { Helmet } from 'react-helmet'
import { connect } from 'react-redux'
import { resolve } from 'url'
import { ScreenSize } from '../../reducers/mediaQuery'
import { setCoursesSelf64, deleteCourseSelf64, deleteCourseUploaded64 } from '../../actions'
import { Course64Panel } from '..... |
// Copyright 2017-2021 @polkadot/apps, UseTech authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './styles.scss';
import type { NftCollectionInterface } from '@polkadot/react-hooks/useCollection';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import Header from 'semantic... |
import { MonoTypeOperatorFunction } from '../types';
import { identity } from '../util/identity';
import { operate } from '../util/lift';
import { OperatorSubscriber } from './OperatorSubscriber';
/**
* Returns a result {@link Observable} that emits all values pushed by the source observable if they
* are distinct i... |
<reponame>aryanshridhar/fiddle<gh_stars>0
import { EventEmitter } from 'events';
import { MockBrowserWindow } from './browser-window';
import { MockWebContents } from './web-contents';
const createdNotifications: Array<MockNotification> = [];
class MockNotification extends EventEmitter {
public readonly show = jest... |
<reponame>wwalpha/aws-spotlight
import { DynamodbHelper } from '@alphax/dynamodb';
import { SNSMessage, SQSEvent, SQSRecord } from 'aws-lambda';
import AWS, { S3, SQS } from 'aws-sdk';
import zlib from 'zlib';
import { Tables } from 'typings';
AWS.config.update({
region: process.env.AWS_REGION,
s3: { endpoint: pro... |
import * as Actions from 'kayenta/actions';
import * as Creators from 'kayenta/actions/creators';
import { CanarySettings } from 'kayenta/canary.settings';
import {
ICanaryAnalysisResult,
ICanaryJudgeConfig,
ICanaryMetricConfig,
IJudge,
KayentaAccountType,
} from 'kayenta/domain';
import { JudgeSelectRenderSt... |
<reponame>ameser83/Angular5
import { Injectable } from '@angular/core';
export class Customer {
ID: number;
CompanyName: string;
Address: string;
City: string;
State: string;
Zipcode: number;
Phone: string;
Fax: string;
Website: string;
}
let customers: Customer[] = [{
"ID": 1,... |
import { getConfigHandler } from '@/configurationHandler'
import { configureWorkingPath } from '@/configurationSteps'
import EnvironmentsRunner from '@/environmentsRunner'
import GitHandler from '@/gitHandler'
import { vorpalLog } from '@/utils'
import CFonts from 'cfonts'
import Vorpal from 'vorpal'
const v: Vorpal = ... |
<reponame>jakegiri/keystone
import inflection from 'inflection';
import { humanize } from '../../../lib/utils';
import {
BaseGeneratedListTypes,
fieldType,
FieldTypeFunc,
CommonFieldConfig,
orderDirectionEnum,
filters,
} from '../../../types';
import { graphql } from '../../..';
import { assertCreateIsNonNu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.