text stringlengths 3.08k 15.5k |
|---|
<filename>src/pdf/pdf.ts-src/shared/murmurhash3.ts
/* Copyright 2014 Opera Software ASA
*
* 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.... |
<filename>src/data-structures/order-statistic-tree/index.spec.ts
import {OrderStatisticTree} from './';
import {isValidRedBlackTree} from '../red-black-tree/index.spec';
import {OrderStatisticNode} from './node';
describe('OrderStatisticTree', () => {
let tree: OrderStatisticTree<string>;
let node: OrderStatis... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import {
EuiButtonEmpty,
EuiContextMenuItem,
EuiContextMenuPanel,
Eui... |
import {parse} from "graphql"
import {EnumType} from "json-to-graphql-query"
import * as mapValues from "lodash.mapvalues"
type variablesObject = {
[variableName: string]: any
}
interface Argument {
kind: string
name: {
kind: string
value: string
}
value: {
kind: string
... |
import { Seq } from '@veupathdb/wdk-client/lib/Utils/IterableUtils';
import {
mapStructure,
preorder,
} from '@veupathdb/wdk-client/lib/Utils/TreeUtils';
import { isEmpty, union } from 'lodash';
import { StudyEntity, VariableTreeNode } from '../types/study';
import { VariableDescriptor } from '../types/variable';
i... |
<reponame>abonte/joplin
const JoplinError = require('lib/JoplinError');
const { time } = require('lib/time-utils');
const { fileExtension, filename } = require('lib/path-utils.js');
export enum LockType {
None = '',
Sync = 'sync',
Exclusive = 'exclusive',
}
export interface Lock {
type: LockType,
clientType: str... |
/* tslint:disable: no-console object-literal-sort-keys */
import * as fs from "fs-extra";
import * as yaml from "js-yaml";
import * as prettier from "prettier";
import {
templateAddMethod,
templateAPIFile,
templateAttachMethod,
templateClass,
templateGetArgs,
templateGetArgsWithTypes,
templateValidatorF... |
import { WidgetBase } from '@dojo/framework/core/WidgetBase';
import { DNode } from '@dojo/framework/core/interfaces';
import { ThemedMixin, ThemedProperties, theme } from '@dojo/framework/core/mixins/Themed';
import { FocusMixin, FocusProperties } from '@dojo/framework/core/mixins/Focus';
import Focus from '../meta/Fo... |
import { thingShadow } from 'aws-iot-device-sdk'
import * as chalk from 'chalk'
import {
uiServer,
WebSocketConnection,
} from '@nordicsemiconductor/asset-tracker-cloud-device-ui-server'
export const defaultConfig = {
act: false, // Whether to enable the active mode
actwt: 60, //In active mode: wait this amount of... |
import * as vscode from 'vscode'
import StatusBar from '../statusbar'
import sfdcConnector from '../sfdc-connector'
import parsers from '../utils/parsers'
import configService from '../services/config-service'
import { DoneCallback } from '../fast-sfdc'
import toolingService from '../services/tooling-service'
import ut... |
import * as http from "https";
import * as fs from "fs";
import * as path from "path";
import * as apm from "elastic-apm-node";
import { v4 as uuidv4 } from "uuid";
class Utils {
static CDN_IMAGE_URL_BASE = `https://cdn.trell.co/cdn-cgi/image/w={{SIZE}},h={{SIZE}},fit=scale-down/images/orig`;
static catchWithApm(... |
<filename>src/helper.ts
// Import the config variables
import { config } from "../config.js";
// Import the required packages
import Discord from "discord.js";
import fetch from "node-fetch";
import dayjs from "dayjs";
import dayjs_utc from "dayjs/plugin/utc.js";
import dayjs_timezone from "dayjs/plugin/timezone.js";... |
<reponame>elken/graphiql
/**
* Copyright (c) 2021 GraphQL Contributors
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import type {
Diagnostic as DiagnosticType,
CompletionItem as CompletionItemType,
} ... |
/**
* @license
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE
*/
import type { TreeDropType, TreeDroppable, TreeProps } from '../types'
import type { MergedNode } from './useDataSource'
import type { Expan... |
import NetRegexes from '../../../../../resources/netregexes';
import ZoneId from '../../../../../resources/zone_id';
import { OopsyData } from '../../../../../types/data';
import { OopsyTriggerSet } from '../../../../../types/oopsy';
import { playerDamageFields, kFlagInstantDeath } from '../../../oopsy_common';
... |
import * as kafkajs from 'kafkajs';
import 'winston-daily-rotate-file'
import winston, {transports as winstonTransports, Logger as winstonLogger} from 'winston';
import {DailyRotateFileTransportOptions, } from 'winston-daily-rotate-file';
import * as ITransport from 'winston-transport';
const {createLogger} = require(... |
import * as React from "react"
import "./App.css"
import { createDfuseHooksEventTransaction } from "./transaction"
import { SearchList } from "./components/search-list"
import Button from "@material-ui/core/Button/Button"
import TextField from "@material-ui/core/TextField/TextField"
import Grid from "@material-ui/core... |
import type {
Token,
Theme,
ThemeValueResolver,
ThemeSectionValueType,
Plugin,
PluginTokenResult,
InjectKeyframes,
PluginResult,
SelectorDecorator,
Falsy,
} from './types'
import type { Context } from './context'
import * as is from './is'
import { tail, join } from './util'
// Shared variables us... |
<reponame>nomos/lokas-js
// @ts-ignore
var eol = typeof process !== 'undefined' && process.platform === 'win32' ? '\r\n' : '\n'
function dotSplit (str) {
return str.replace(/\1/g, '\u0002LITERAL\\1LITERAL\u0002')
.replace(/\\\./g, '\u0001')
.split(/\./).map(function (part) {
return part... |
<gh_stars>10-100
import { createAction, createReducer } from "typesafe-actions";
import update from "immutability-helper";
import {bufferFromBase64} from "../utils/Base64";
import { appActions } from "./AppReducer";
interface IPreviewState {
fullPenaltyFields: {
[pair: string]: Float32Array;
};
currentPena... |
<reponame>wix/wix-react-tools
import {privateState, StateProvider} from "../core/private-state";
import {Class, isAnyClass} from "../core/types";
import {addClassMethodsToPrivateState, InheritedClassStateProvider} from "../core/class-private-state";
import {Feature, FeatureFactory, FeatureManager, FeatureOrFactory} fro... |
<filename>libs/isomorphic-danmaku/src/lib/acfun/models/AccessPoint.ts
/* eslint-disable */
import { Writer, Reader } from 'protobufjs/minimal';
export interface AccessPoint {
addressType: AccessPoint_AddressType;
port: number;
ipV4: number;
ipV6: Uint8Array;
domain: string;
}
const baseAccessPoint: object ... |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { resolve as pathResolve } from 'path';
import * as chalk from 'chalk';
import { U... |
import React, { useState, useEffect } from 'react';
import { Link, RouteComponentProps } from 'react-router-dom';
import { Button, Row, Col, FormText, UncontrolledTooltip } from 'reactstrap';
import { isNumber, Translate, translate, ValidatedField, ValidatedForm } from 'react-jhipster';
import { FontAwesomeIcon } from ... |
<reponame>krzkaczor/storybook-vis-reg-tests
import { BigNumber } from "bignumber.js";
import * as LightWalletProvider from "eth-lightwallet";
import * as ethSig from "eth-sig-util";
import { addHexPrefix, hashPersonalMessage, toBuffer } from "ethereumjs-util";
import { inject, injectable } from "inversify";
import * as... |
<reponame>microsoft/OneLabeler
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import Vue from 'vue';
import Vuetify, { VuetifyPreset } from 'vuetify';
import {
VApp,
VAutocomplete,
VBtn,
VBtnToggle,
VCard,
VCheckbox,
VChip,
VColorPicker,
VDialog,
VDivider,
VForm,
VIc... |
/**
*Effectsオブジェクトの中にある、オブジェクトの定義
*
* @interface EffectsContent
*/
export interface EffectsContent {
/**
*クイックサーチ用のショートカットテキスト
*
* @type {string}
* @memberof EffectsContent
*/
q: string;
/**
*英語のエフェクト名
*
* @type {string}
* @memberof EffectsContent
*/
en: string;
/**
*日本語のエ... |
<gh_stars>0
import { MULTI_TOKEN_STAKING_ADDRESS, REWARDS_SCHEDULE_ADDDRESS } from "config";
import { NewStakingMeta, NewStakingPool, NewStakingUpdate } from "./types"; // Circular dependency.
import { convert, createMulticallDataParser } from "helpers";
import { createEntityAdapter, createSlice } from "@reduxjs/toolki... |
<filename>sdk/js/packages/node/src/options.ts
// Copyright 2021 Touca, Inc. Subject to Apache-2.0 License.
import * as fs from 'fs';
export interface NodeOptions {
/**
* API Key issued by the Touca server that
* identifies who is submitting the data. Since the value should be
* treated as a secret, we reco... |
<gh_stars>0
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { Constant } from 'assets/data/constant';
import { CommonService } from 'app/service/common.service';
import { NgxSpinnerService } from 'ngx-spinner';
import {MatPaginator, MatTableDataSource, MatBottomSheet, MatBottomSheetRef, MA... |
import {
CodeMirrorEditor,
CodeMirrorEditorFactory
} from '@jupyterlab/codemirror';
import { VirtualEditor } from '../../virtual/editor';
import { CodeMirrorLSPFeature, ILSPFeatureConstructor } from './feature';
import { LSPConnection } from '../../connection';
import { CodeEditor } from '@jupyterlab/codeeditor';
i... |
import Arc from './elements/Arc';
import Circle from './elements/Circle';
import Ellipse from './elements/Ellipse';
import Line from './elements/Line';
import Plot from './elements/Plot';
import Point from './elements/Point';
import Rectangle from './elements/Rectangle';
import Segment from './elements/Segment';
import... |
import { UIView , UITableViewCell, UIGestureRecognizer, UITapGestureRecognizer, UIGestureRecognizerState} from "../MIOUI";
import { MIOUUID, MIOIndexPath } from "../MIOFoundation";
import { MIOClassFromString } from "../MIOCore/platform";
export class MWSTableView extends UIView
{
dataSource = null;
delegate =... |
<gh_stars>10-100
import { isAttribute } from './utils/types';
// tslint:disable:no-bitwise
export class AVLTree {
left: AVLTree | null;
right: AVLTree | null;
node: Node;
depth: number;
constructor(n: Node) {
this.left = null;
this.right = null;
this.node = n;
this.depth = 1;
}
balance... |
import React, {useContext, useEffect, useState} from 'react';
import {Button, Form, Input, message, Modal, Popconfirm, Select, Table, Upload, Avatar, Image} from 'antd';
import {UploadOutlined} from '@ant-design/icons';
import {UploadListType} from 'antd/es/upload/interface';
import {request} from '../../../common/util... |
<filename>packages/paddlejs-backend-wasm/src/wasm.ts<gh_stars>1-10
/**
* @file webgl backend
* @author yueshuangyan
*/
import { instantiate } from '@assemblyscript/loader';
// libWebGLExample
import WasmBackendModule from '../assets/kernelWasm.js';
import { WasmUtil } from './utils';
import { WasmMemoryType } from ... |
/**
* @license
* Copyright 2020 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
<filename>src/app/views/trade/services/anoucement.service.ts<gh_stars>0
import { Injectable } from '../../../../../node_modules/@angular/core';
import { HttpClient } from '@angular/common/http';
import { Subject, Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Router } from '@angular/router';
... |
import {Categories} from '../utils/hap';
export type TydomAccessoryContext<T extends Record<string, any> = Record<string, any>> = {
name: string;
category: Categories;
metadata: TydomMetaElement[];
settings: Record<string, unknown>;
deviceId: number;
endpointId: number;
accessoryId: string;
manufacture... |
/**
* SecurePinInput
*
<SecurePinInput />
*
*/
import { isNaN } from 'lodash';
import React, { Component } from 'react';
import { View, Text, TouchableHighlight, TouchableWithoutFeedback, Keyboard, TextInput, Platform } from 'react-native';
import { Icon } from '@components';
import { AppColors } from '@theme'... |
import React, { Fragment, useState } from 'react';
import { Listbox, Transition, Tab } from '@headlessui/react';
import { CheckIcon, SelectorIcon } from '@heroicons/react/solid';
import { Time } from './Time';
function classNames(...classes: string[]) {
return classes.filter(Boolean).join(' ');
}
const circuits =... |
import { Group } from "@/domain/Group";
import { Note } from "@/domain/Note";
import EventsWatcherService, { SekundEventListener } from "@/services/EventsWatcherService";
import PeoplesService from "@/services/PeoplesService";
import { useAppContext } from "@/state/AppContext";
import NotesContext from "@/state/NotesCo... |
<reponame>Up-Group/react-controls
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import { UpVisibilitySensorProps, UpVisibilitySensorState, Placement, Offset, VisibilityRect } from './'
function throttle(callback, limit) {
var wait = false;
return function () {
if (!wait) {
wait = ... |
<gh_stars>0
import { Point } from 'pixi.js';
import { LineRange, Range } from './quadtree';
/**
* region code used for bitwise comparisons
* @typedef {int} OutCode
*/
const INSIDE = 0; // 0000
const LEFT = 1; // 0001
const RIGHT = 2; // 0010
const BOTTOM = 4; // 0100
const TOP = 8; // 1000
/**
* Compute the bit ... |
import * as uuid from 'uuid';
import { EventEmitter } from 'events';
import { IpcWindow } from './IpcBusTransportWindow';
import { IPCBUS_TRANSPORT_RENDERER_CONNECT, IPCBUS_TRANSPORT_RENDERER_EVENT } from './IpcBusTransportWindow';
import { CrossFrameMessage } from './CrossFrameMessage';
// const trace = tru... |
<reponame>calebboyd/ingress<gh_stars>10-100
import { AppBuilder, Middleware, ContinuationMiddleware } from 'app-builder'
import { BaseContext, DefaultContext, BaseAuthContext, Type } from './context.js'
import { Annotation, isAnnotationFactory } from 'reflect-annotations'
import { Server as HttpServer, IncomingMessage,... |
<reponame>token-terminal/ribbon-subgraph
import { BigInt, Address, log } from "@graphprotocol/graph-ts";
import { RibbonOptionsVault } from "../generated/RibbonOptionsVault/RibbonOptionsVault";
import {
BalanceUpdate,
ERC20Token,
ERC20TokenAccount,
Vault,
VaultAccount,
VaultLiquidityMiningPool,
VaultLiqui... |
import fs from 'fs';
import glob from 'glob';
import { buildClientSchema, parse, GraphQLSchema, FragmentDefinitionNode, OperationDefinitionNode, SelectionSetNode, DocumentNode } from 'graphql';
import { optimizeDocuments } from '@graphql-tools/relay-operation-optimizer';
import { withTypenameFieldAddedWhereNeeded } fro... |
import { Edition, Selection } from '../interfaces';
import { cropCellToMax, isHiddenStore, nextCell } from '../store/selection/selection.helpers';
import { SelectionStore } from '../store/selection/selection.store';
import Cell = Selection.Cell;
import EditCellStore = Edition.EditCellStore;
type StoresMatrix = { [y: ... |
import * as React from 'react';
import PT from 'prop-types';
import { ValidationResult, SummaryError, ValidatorFailText } from '../types/index';
import Feiloppsummering from 'common/lib/validation/errors/Feiloppsummering';
import { injectIntl, InjectedIntlProps } from 'react-intl';
export type FormSubmitEvent = React.... |
import { useState } from 'react'
import { useDispatch } from 'react-redux'
import { useNavigate } from 'react-router-dom'
import { SignerType } from 'src/blockchain/types'
import { Address } from 'src/components/Address'
import { Button, transparentButtonStyles } from 'src/components/buttons/Button'
import { DashedBord... |
<filename>src/algorithm/AdaBoost/index.ts
import Matrix from '../../utils/matrix/index';
import Vector from '../../utils/vector/index';
import * as _ from 'lodash';
class AdaBoost {
private dataSet: Array<Array<number>>;
private labels: Array<number>;
private numInt: number;
/**
* Creates an inst... |
import * as vscode from "vscode";
import { wrapIntoRecorder } from "./transforms/wrapIntoRecorder";
import {
getAST,
findTypeHoleImports,
getNodeEndPosition,
getTypeHoleImport,
findLastImport,
getNodeStartPosition,
} from "./parse/module";
import * as ts from "typescript";
import { tsquery } from "@phenom... |
import { HistoryConstSalary2016 } from './HistoryConstSalary2016';
import { HistoryConstTaxing2015 } from '../providers_period2015/HistoryConstTaxing2015';
import bigDecimal = require('js-big-decimal');
import { HistoryConstTaxing2018 } from '../providers_period2018/HistoryConstTaxing2018';
// ALLOWANCE_PAYER ... |
<reponame>CrystalBallBe/augur
import {
MarketData,
OrderTypeHex,
} from '@augurproject/sdk-lite';
import { DB } from '../db/DB';
import * as _ from 'lodash';
import { Augur } from '../../index';
import { BigNumber } from 'bignumber.js';
import { Getter } from './Router';
import * as t from 'io-ts';
import {
conve... |
<gh_stars>0
import * as vscode from 'vscode';
import * as _ from 'lodash';
import { Selection, TextEditor, TextEditorEdit } from 'vscode';
import { Config } from './types';
export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(
vscode.commands.registerCommand('extension.insertLog... |
import { get } from "lodash"
import { error as log } from "lib/loggers"
import { GraphQLTimeoutError } from "lib/graphqlTimeoutMiddleware"
import { Request } from "../../node_modules/@types/express"
import config from "config"
import { GraphQLError, GraphQLFormattedError } from "graphql/error"
import { HTTPError } from... |
<filename>src/wtcd/types.ts
import { InterpreterHandle, RuntimeValue, RuntimeValueType } from './Interpreter';
import { BinaryOperator, UnaryOperator } from './operators';
/**
* Nodes that may include location info (for debugging) when sourceMap is
* enabled can extend this interface.
*/
export interface OptionalLo... |
<reponame>perestaj/Snake<filename>src/app/game/game.ts
import { NgZone } from "@angular/core";
import { Subject } from "rxjs";
import { Coordinate } from "./coordinate";
import { Direction } from "./direction";
import { Snake } from "./snake";
import { Turn } from "./turn";
import { GameState } from "./game-state";
ex... |
import { TriangleDownIcon, TriangleUpIcon } from "@chakra-ui/icons"
import {
Button,
FormControl,
FormHelperText,
FormLabel,
Grid,
Icon,
Select,
ToastId,
Tooltip,
useToast,
} from "@chakra-ui/react"
import { useTranslation } from "next-i18next"
import React, { Fragment, useEffect, useRef, useState }... |
import * as R from 'ramda';
import * as bitbucketApi from '@lagoon/commons/dist/bitbucketApi';
import * as api from '@lagoon/commons/dist/api';
import { logger } from '@lagoon/commons/dist/local-logging';
// The lagoon group that has all of the projects needing to be synced
const LAGOON_SYNC_GROUP = R.propOr(
'bitbu... |
import React, { ChangeEvent } from "react";
import styled, { css } from "types/styled-components";
interface IProps {
className?: string;
renderLabel?: () => React.ReactNode;
color?: string;
backgroundColor?: string;
size?: number;
spacing?: number;
open: boolean;
onToggle?: (value: boolean) => void;
}... |
<filename>src/index.ts
import path from 'path';
import fs, { Stats } from 'fs';
import { map, flattenDeep, forIn, keys, filter, get, set, has, unset } from 'lodash-core';
import { ENV_MAPPINGS, BLOCO_CONFIG_DEFAULTS, IBlocoLoaderConfig } from './constants';
let _env = process.env.CONFIG_PATH || 'development';
const EN... |
<gh_stars>1-10
import { UserEntity } from '../modules/user/entities/user.entity';
export interface NestJSRequest {
_readableState: ReadableState;
readable: boolean;
_events: Events;
_eventsCount: number;
socket: Socket;
httpVersionMajor: number;
httpVersionMinor: number;
httpVersion: string;
complete... |
/* eslint-disable no-console */
import type { AstroConfig } from '../@types/astro';
import { enableVerboseLogging, LogOptions } from '../core/logger.js';
import * as colors from 'kleur/colors';
import yargs from 'yargs-parser';
import { z } from 'zod';
import { defaultLogDestination } from '../core/logger.js';
import... |
<reponame>standardhealth/fhir-matches<gh_stars>0
import { SDReviewer } from './SDReviewer';
import { StructureDefinition, ElementDefinition } from 'fhir/r4';
import { Review, ReviewResult } from '../Review';
import { getAggregateResult, compareNumericRanges } from '../review-utils';
const NAME = 'Extension Reviewer';
... |
/**
* Setup Passcode Screen
*/
import React, { Component } from 'react';
import { SafeAreaView, View, Text, Image, LayoutAnimation } from 'react-native';
import TouchID from 'react-native-touch-id';
import { CoreRepository } from '@store/repositories';
import { AppScreens } from '@common/constants';
import { Image... |
/*
* MIT License
*
* Copyright (c) 2022 Staatsbibliothek zu Berlin - Preußischer Kulturbesitz
*
* 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 l... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
//******************************************************************************************************
// analyticSlice.tsx - Gbtc
//
// Copyright © 2020, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
// ... |
import { Component, Inject, OnDestroy } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { CoreTypes } from '../../../core-types';
import { LoggerService } from '../../services/logging/logger.service';
import path from 'path-browserify';
import { Subject, BehaviorSu... |
<filename>src/linter/interfaces.ts
/**
* Possible export types
*/
export type ReportType =
| 'header'
| 'markdown'
| 'code'
| 'raw'
| 'title'
| 'group';
/**
* Possible visualization modes
*/
export const ViewModes = ['list', 'cell', 'type'] as const;
export type ViewMode = typeof ViewModes[number];
/*... |
import * as React from 'react';
import {
Stack,
TextField,
ColorPicker,
getColorFromString,
DefaultButton,
Toggle,
Callout,
DelayedRender,
Text,
Modal,
TeachingBubble,
Icon,
Spinner,
SpinnerSize,
Slider,
} from '@fluentui/react';
import { useSize } from 'ahooks';
import html2canvas from 'h... |
<filename>nick-web/Nickolas.WebClient/src/app/admin/cadastro/dados-incidentes/dados-incidentes.component.ts
import { FilterAdminPipe } from './../../../pipes/filter-admin.pipe';
import { DadosIncidentesService } from './dados-incidentes.service';
import { NgProgress } from 'ngx-progressbar';
import { Component,
... |
import {ArgumentAxis, Chart, Legend, Tooltip, ValueAxis} from '@devexpress/dx-react-chart-material-ui';
import React, {useEffect, useMemo, useState} from "react";
import WanikaniApiService from "../service/WanikaniApiService";
import {
ArgumentAxis as ArgumentAxisBase,
EventTracker,
ScatterSeries,
Splin... |
<reponame>PatrykWalach/Anitree<filename>src/router.ts
import {
AsyncComponentFactory,
AsyncComponentPromise,
EsModuleComponent,
} from 'vue/types/options'
import Router, { Route } from 'vue-router'
import Vue, { Component } from 'vue'
import {
computed,
defineComponent,
createElement as h,
} from '@vue/comp... |
import * as assignmentRequests from './requests/assignments';
import * as assignmentDutyRequests from './requests/assignmentDuties';
import * as alternateAssignmentTypeRequests from './requests/alternateAssignmentTypes';
import * as courtRoleRequest from './requests/courtRoles';
import * as courtroomRequests from './re... |
import { EventEmitter } from 'events';
import { BrowserWindowMock } from './browser-window';
import { WebContentsMock } from './web-contents';
const createdNotifications: Array<NotificationMock> = [];
class NotificationMock extends EventEmitter {
public readonly show = jest.fn();
constructor(public readonly opti... |
<gh_stars>0
import type { AxiosInstance, AxiosResponse } from 'axios';
import type { LoginService } from 'src/core/service/login.service';
import type { ContextState } from 'src/app/state/context.store';
import type { BasicHeaders } from 'src/core/service/api.service';
import ApiService from 'src/core/service/api.serv... |
<filename>index.ts
import { CommonModule } from '@angular/common';
import {
NgModule,
Component,
Input,
Output,
EventEmitter,
} from '@angular/core';
import isEqual from 'lodash.isequal';
@Component({
selector: '[ng2-carouselamos]',
template: `
<style>
.ng2-carouselamos-container {
... |
import React from 'react';
import { Form, Select, InputNumber, Switch, Radio, Slider, Button, Upload, Rate, Checkbox, Row, Col } from 'antd';
import { UploadOutlined, InboxOutlined } from '@ant-design/icons';
import { useLocalStore, observer } from 'mobx-react-lite';
import { useFormData } from 'nornj-react/mobx/formDa... |
<gh_stars>0
import * as childProcess from 'child_process';
import * as vscode from 'vscode';
import * as path from 'path';
import * as download from './download';
import * as fsex from 'fs-extra';
import { which } from 'shelljs';
import * as fs from 'fs';
import { Platform } from './platform';
import targz = require('t... |
import React, { Component } from 'react'
import { AppExtensionSDK } from 'contentful-ui-extensions-sdk'
import {
Form,
Heading,
Option,
Paragraph,
SelectField,
TextField,
Workbench,
} from '@contentful/forma-36-react-components'
import { css } from 'emotion'
export interface AppInstallationParameters {
... |
/*
* MIT License
*
* Copyright (c) 2022 Staatsbibliothek zu Berlin - <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 limitation the righ... |
<reponame>alexeygt/origami
import {
AfterViewInit,
Directive,
ElementRef,
HostListener,
Injector,
Input,
OnDestroy,
OnInit,
Provider,
Renderer,
forwardRef
} from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl, Validators } from '@angular/forms';
import { Subscription ... |
<reponame>adamvert/rizzle<filename>server/services/site.ts
import axios from 'axios'
// extended determines how far we want to go looking
// this lets us make multiple requests, one for a simple search, one for
// extended search, so that we get a more immediate response
export async function findFeeds (url, extended)... |
// tslint:disable:no-any
import { EventEmitter, PlainData, Tick, RegaxError } from '@regax/common'
import { ByteArray, Package, PackageType, strdecode, strencode, PackageDataType } from '@regax/protocol'
export enum SocketEvent {
CONNECTION = 'connection',
RECONNECT = 'reconnect',
DISCONNECT = 'disconnect',
HE... |
// dependencies
import React, { RefObject, useRef } from 'react';
import { Transition } from 'react-transition-group';
// internals
import { cn, shortenString } from '@adam-sv/arc';
// styles
import './style.css';
// types
import type { IARCProps, IBoxSize, ICoords } from '@adam-sv/arc';
import type { IGraphConnectionA... |
// @ts-nocheck
import { State, OptionsGeneric, Modifier, Instance, VirtualElement } from './types';
import getCompositeRect from './dom-utils/getCompositeRect';
import getLayoutRect from './dom-utils/getLayoutRect';
import listScrollParents from './dom-utils/listScrollParents';
import getOffsetParent from './dom-utils/... |
import * as React from 'react';
import { RunAs, Script, ScriptType } from '../../types/Script';
import { match } from 'react-router-dom';
import { URLParams } from '../../services/Params';
import { PageLoading } from '../../components/Loading';
import { Page } from '../../components/Page';
import { Input } from '../../... |
<reponame>yuyaryshev/code_deduplicator<filename>src/server/startApiServer.ts
import deepMerge from "deepmerge";
import { readFileSync } from "fs";
import { resolve } from "path";
import { debugMsgFactory, ManageableTimer, yconsole } from "ystd";
// import oracledb from "oracledb";
// import { OracleConnection0 } from "... |
<gh_stars>0
import { Folder } from "../../Folder/Folder";
import { File } from "../../file/File";
import * as Path from "path";
import knownFieldDefinitions from "../../field/KnownFieldDefinitions";
import * as fs from "fs-extra";
import { FolderMetadataFile } from "../../file/FolderMetaDataFile";
import { CustomFieldR... |
import { render, h, isVNode, getCurrentInstance, AppContext, App } from "vue";
import LayLayer from "./component/index.vue";
import { InstallOptions } from "./types";
import { zIndexKey } from "./tokens";
import { nextId } from "./utils";
// 实例队列
const layerInstance: any = [];
// 新增实例
const addInstance = (instance: a... |
/* eslint-disable class-methods-use-this */
/* eslint-disable require-await */
import { nanoid } from "nanoid"
import { setTimeout } from "node:timers/promises"
import type { ReactNode } from "react"
import { expect } from "vitest"
import { logPretty } from "../helpers/log-pretty"
import { omit } from "../helpers/omit"... |
<gh_stars>0
import nodePath from 'path';
import { FullConfig, FullResult, Reporter, Suite, TestCase, TestResult, TestStep } from '@playwright/test/reporter';
import { SlackMessageThread, getSlack } from '../slack/slack-client';
import { SlackIcon, asyncForEach, delay, getFullStatusIcon, getTestStatusIcon, getTestTitle ... |
import type { AST } from "toml-eslint-parser"
import lodash from "lodash"
import { createRule } from "../utils"
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Escapes the control charac... |
<filename>src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { RouterModule, Routes } from '@angular/router';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular... |
<filename>src/Council.ts
import { Collection, GuildMember, Snowflake, TextChannel } from "discord.js"
import * as fs from "fs"
import onChange from "on-change"
import * as path from "path"
import { CouncilData, DefaultCouncilData } from "./CouncilData"
import Motion from "./Motion"
import { MotionData } from "./MotionD... |
import React, { CSSProperties, HTMLAttributes, FunctionComponent } from "react";
import clsx from "clsx";
import Select from "react-select/async";
import {
createStyles,
emphasize,
makeStyles,
useTheme,
Theme,
} from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import NoS... |
import React, { useState, useCallback } from 'react';
import LayerChooser from './layerchooser';
import SceneData, { Scene, GameObject, Layer, Component } from '../data';
import { API } from '../api';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faArrowDown,
faArrowUp,
faChevronCircl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.