text stringlengths 3.3k 33k |
|---|
<filename>src/ArticleManager.ts
/// <reference path="./_references.d.ts" />
import {FilteringType, SortingType} from "./DataTypes";
import {Subscription} from "./Subscription";
import {SubscriptionManager} from "./SubscriptionManager";
import {$id, isRadioChecked} from "./Utils";
export class ArticleManager {
sub... |
<filename>packages/chips/chip.ts
import {
AfterContentInit,
AfterViewInit,
Attribute,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
ContentChildren,
ElementRef,
EventEmitter,
forwardRef,
Inject,
InjectionToken,
Input,
NgZone,
OnDestroy,
Optional,
Output,
Quer... |
import React, { useEffect, useRef, useState } from "react";
import ReactDOM from "react-dom";
import { artistStreamTimes } from "./derived_data";
import { autoPlayInterval } from "./constants";
import { EdgemapView, NodePositionKey, setNodeColorKey, setShowLabels, setupEdgemap, updateEdgemap } from "./edgemap_functions... |
/**
* Copyright 2021 Cloudflare 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 agree... |
import React, { Component } from 'react'
import { View, StyleSheet, ViewStyle, LayoutChangeEvent, Dimensions } from 'react-native'
import { NavigationStackProp, NavigationStackState } from 'react-navigation-stack';
import { NoMeasurements } from '../../components/growth/NoMeasurements';
import { LastMeasurements } from... |
<reponame>Jgomez-2017072/Proyecto-byte<gh_stars>0
import { Component, OnInit, Inject, ViewChild } from '@angular/core';
import { MatTableDataSource,MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatSnackBar, MatPaginator } from '@angular/material';
import { SelectionModel } from '@angular/cdk/collections';
import { FormGrou... |
<filename>src/common/policy/leave-application-validation/services/leave-balance-validation.service.ts
import { Injectable } from '@nestjs/common';
import { ApplyLeaveDTO } from 'src/api/leave/dto/apply-leave.dto';
import { UserLeaveEntitlementModel } from 'src/api/userprofile/model/user-leave-entitlement.model';
import... |
<reponame>microsoft/graspologic-js
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import { RenderOptions, PropertyContainer } from '@graspologic/common'
import {
GL_RGBA,
GL_LINEAR,
GL_TEXTURE_MIN_FILTER,
GL_CLAMP_TO_EDGE,
GL_TEXTURE_WRA... |
import { View } from '@components'
import { ThemedFlatList, ThemedIcon, ThemedText, ThemedTouchableOpacity, ThemedView } from '@components/themed'
import { StackScreenProps } from '@react-navigation/stack'
import { translate } from '@translations'
import { useCallback, useEffect } from 'react'
import NumberFormat from ... |
import { Component, OnInit } from '@angular/core';
import { LibraryService } from 'app/services/library.service';
import {FormArray, FormGroup, FormBuilder, Validators, AbstractControl } from '@angular/forms';
import {Observable, Subject} from 'rxjs';
import {map, startWith} from 'rxjs/operators';
// satrt for chips
im... |
<filename>src/Manager.ts
import * as Immutable from 'immutable';
import {createSession} from './Session';
import {Resource} from './Resource';
import {Timer} from './Timer';
import {parseTimeInterval} from './parseTimeInterval';
import {ResourceInstanceKey} from './ResourceInstanceKey';
import {assert} from './error';... |
<reponame>lglong519/server-service
const request = require('request-promise');
const DateTime = require('common/dateTime');
const debug = require('debug')('server:Aggregation');
const nconf = require('nconf');
import * as _ from 'lodash';
const ProcessService = require('services/ProcessService');
const localStorage = ... |
import autobind from "autobind-decorator";
import * as React from "react";
import {ColumnInfo, TableInfoManager} from "../cache";
import {asyncMap, groupBy, IObjectWithIndex, toMap} from "../other";
import {camelCase} from "../stringFormatters";
import {IRole} from "../types";
import {formatRoleName, getDataSet, getDa... |
import {EXAMPLE_COMPONENTS, ExampleData} from '@ajf/ajf-examples';
import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {VERSION} from '@angular/material/core';
import {ajfVersion} from '../version/version';
const STACKBLITZ_URL = 'https://run.stackblitz.com/api/angular/v1... |
/* eslint-disable security/detect-unsafe-regex */
import * as core from '@actions/core'
import { Context } from '@actions/github/lib/context'
import { GitHub } from '@actions/github/lib/utils'
import { getKeyValue, Repo, VersionObject, VersionPrefixes } from './interfaces'
const LABEL_PREFIX = core.getInput('label_de... |
<reponame>ganioc/chainsdk
import 'mocha';
import * as path from 'path';
import * as fs from 'fs-extra';
const assert = require('assert');
import {initChainCreator, INode, Chain, Miner, Block, BlockHeader, BufferReader, initLogger, LogShim, MinerInstanceOptions, BufferWriter, LoggerOptions, ErrorCode, staticPeeridIp, Tc... |
import { isFriendlyOwner } from 'utils';
import { getFatiguedInSquad } from 'utils/creep';
import { isFlagOfType } from 'utils/flag';
import { isInColonyHelpRange } from 'utils/room';
import { recycle } from 'actions/recycle';
import { TaskManager } from 'TaskManager';
import { BodySettings, CreepBase } from './CreepBa... |
<reponame>EthereumGeeks/dev
import yargs from "yargs";
import fs from "fs";
import dotenv from "dotenv";
import "colors";
import { Wallet } from "@ethersproject/wallet";
import { JsonRpcProvider } from "@ethersproject/providers";
import {
Decimal,
Difference,
LUSD_LIQUIDATION_RESERVE,
Trove,
TroveWithPendin... |
<gh_stars>0
import { Component, OnInit, ViewChild, ViewContainerRef, OnDestroy, DoCheck } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { FormGroup, FormControl } from '@angular/forms';
import { Overlay, overlayConfigFactory } from 'angular2-modal';
import { Modal, BSModalContex... |
import * as React from 'react';
import PropTypes from 'prop-types';
import IconButton from '@mui/material/IconButton';
import MenuList from '@mui/material/MenuList';
import { unstable_useId as useId } from '@mui/material/utils';
import { GridRenderCellParams } from '../../models/params/gridCellParams';
import { gridCla... |
import fs from "fs";
import produce, { enableMapSet } from "immer";
import nodegit from "nodegit";
import nullthrows from "nullthrows";
import randomWords from "random-words";
import type {
BranchName,
Commit,
CommitHash,
CommitSignature,
Repository,
RefName,
} from "../shared/types";
import type {
Sou... |
<filename>packages/gen-typescript-declarations/src/closure-types.ts<gh_stars>100-1000
/**
* @license
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be foun... |
<reponame>OpenNMS/opennms-helm
import _ from 'lodash';
import {API} from 'opennms';
import { AttributeMapping } from './mapping/AttributeMapping';
import Entity from './Entity';
const COLUMNS = Object.freeze([
{ text: 'ID', resource: 'id' },
{ text: 'Count', resource: 'count' },
{ text: 'Acked By', resource: '... |
import { Point } from '../types/Point';
import { dotProduct, getMidPoint, getNorm, getSquaredNorm, operate, pointMultiply, pointSubtract, pointSum } from './point-arithmetic';
const BEZIER_TOLERANCE = 0.25;
const CATMULL_DETAIL = 50;
const CIRCULAR_ARC_TOLERANCE = 0.1;
export function approximateBezier(controlPoints:... |
import { OpenAPIV3 } from 'openapi-types'
import CodeFormatting from './code-formatting'
export interface AnalyzedPathItemObject {
methods: { [method: string]: AnalyzedOperationObject[] }
}
export interface AnalyzedOperationObject {
tag: string
rawTag: string
operation: OpenAPIV3.OperationObject
operationId... |
import {RegisterIoElement} from '../../iogui.js';
import {Item} from '../models/item.js';
import {IoItem} from '../core/item.js';
import {IoLayerSingleton as Layer} from '../core/layer.js';
import {IoMenuOptions} from './menu-options.js';
/*
* Extends `IoItem`. Implements `IoMenuOptions` and `IoLayerSingleton`.
*
*... |
import path from 'path';
import fs from 'fs';
import npm from 'npm';
import formatPkg from 'format-package';
import prettier from 'prettier';
import pkgUp from 'pkg-up';
import {
getConfigsBasePath,
execCmdInProject,
configToEvalString,
serialPromises,
} from '@alfred/helpers';
import mergeConfigs from '@alfred... |
import {Facet, Change, StateField, Annotation, EditorState, StateEffect, Transaction,
combineConfig, Extension} from "@codemirror/next/state"
/// An update can either be a [change](#state.Change) or an
/// [effect](#state.StateEffect). In each update object, exactly one
/// of these will be `undefined`. When y... |
import Discord, { Collection } from 'discord.js'
import { logger } from 'utility/logger'
import PubSub from 'pubsub-js'
import * as modules from 'modules'
interface ChannelObject {
[key: string]: any
}
export class DiscordServer {
private static instance: DiscordServer
private readonly client: Discord.Client
... |
import "./projects-details.styles.scss";
import React, { useContext, useEffect, useState } from "react";
import { Project } from "../../typescript-interfaces/project.interface";
import { firestore as db } from "../../firebase/firebase.utils";
import { Link, useParams } from "react-router-dom";
import { firestore } from... |
<reponame>woutermont/solid-client-authn-js
/*
* Copyright 2021 Inrupt Inc.
*
* 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 rights ... |
import { getDomain, INTERPOLATORS, ScatterVis } from '@h5web/lib';
import type { ScatterVisProps } from '@h5web/lib';
import { ScaleType } from '@h5web/shared';
import type { Meta, Story } from '@storybook/react/types-6-0';
import ndarray from 'ndarray';
import FillHeight from './decorators/FillHeight';
const Templat... |
import React, { useState } from 'react'
import { Link } from 'react-router-dom'
interface FormDataType {
name: string
email: string
selectCategory: string
message: string
acceptTerms: boolean | string
}
type ContactFormProps = {
firebase: any
}
export const ContactForm: React.FC<ContactFormProps> = props... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Copyright (c) <NAME>. All rights reserved.
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the pro... |
export enum TokenType {
Func,
Identifier,
LBrace,
RBrace,
LParen,
RParen,
LBracket,
RBracket,
String,
Number,
Comma,
Colon,
Assign,
Plus,
Minus,
Asterisk,
ForwardSlash,
Range,
Equal,
NotEqual,
LessThan,
LessThanEqual,
GreaterTha... |
<gh_stars>0
import { io } from 'socket.io-client'
import { Session, SessionOptions } from "./session"
import { APIQuery } from "./sdk"
import { url_safe_path } from "@tellescope/utilities"
import { FileBlob, FileBuffer, FileDetails, ReactNativeFile, S3PresignedPost, SessionType, UserIdentity } from "@tellescope/types... |
import { createModel as xstateCreatModel, TestModel } from "@xstate/test";
import { TestPlan } from "@xstate/test/lib/types";
import { chain } from "fp-ts/lib/Array";
import { pipe } from "fp-ts/lib/function";
import * as d from "io-ts/lib/Decoder";
import { createMachine, State } from "xstate";
import { Deferred } fro... |
import React, { FC, useMemo, useState } from 'react';
import { Progress } from 'antd';
import { BigNumber as _BigNumber } from 'bignumber.js';
import cn from 'classnames';
import { BigNumber, FixedNumber } from 'ethers';
import MerkleDistributor from 'web3/merkleDistributor';
import Divider from 'components/antd/divid... |
import { takeEvery, call, select, put } from "redux-saga/effects";
import { getType, ActionType } from "typesafe-actions";
import { RpcClient } from "../RpcClient";
import { BdapActions } from "../../shared/actions/bdap";
import { BrowserWindowProvider } from "../../shared/system/BrowserWindowProvider";
// import { ap... |
<gh_stars>0
import { BigNumber } from "bignumber.js"
import { MarketSnapshot, Position } from "../types"
import { startOf } from "./util"
type PositionData = {
borrowBalance: string,
borrowIndex: string
supplyBalance: string,
totalEarnedPrior: string,
exchangeRatePrior: string,
exchangeRate: s... |
import { Form } from "@prisma/client";
import axios from "axios";
import * as sirene from "../../companies/sirene";
import { CompanySearchResult } from "../../companies/sirene/types";
import { TDEventPayload } from "../emitter";
import { mailWhenFormIsDeclined } from "../forms";
import * as mailing from "../../mailer/m... |
import React, { useEffect } from 'react';
import styled from '@emotion/styled';
import TextDefault from '../components/ui/TextDefault';
import { color, fontSize } from '../utils/StyleTheme';
import useInput from '../hooks/useInput';
import CommentList from '../components/guestbook/CommentList';
import { useDispatch, u... |
<filename>src/data-migrator.ts
/**
* The DataMigrator handles the documents from collections with older schemas
* and transforms/saves them into the newest collection
*/
import {
PouchDB,
countAllUndeleted,
getBatch
} from './pouch-db';
import {
clone,
toPromise
} from './util';
import {
cr... |
/*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2017-2019 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
import * as React from 'react'
import { isFunction, isNil } from '../_internal/data'
import withLabel from '../withLabel'
import SliderProps from './Slider.interface'
import {
SliderContainer,
SliderContent,
SliderMainBar,
SliderTooltip,
SliderBackgroundDot,
SliderIndicator,
} from './Slider.style'
import... |
import LoggerModule from "../../common/logger";
const Logger = new LoggerModule("Injector");
const patchTypes = ["after", "before"];
enum argMap {
caller,
module,
method,
patch,
extraOptions
};
type CallbackMap = Map<string, Function>;
type Injection = {
module: any;
method: string;
o... |
<reponame>vaporyorg/dex-telegram<gh_stars>0
import BN from 'bn.js'
import BigNumber from 'bignumber.js'
import moment from 'moment-timezone'
import { FEE_DENOMINATOR, formatAmountFull, isOrderUnlimited, isNeverExpiresOrder } from '@gnosis.pm/dex-js'
import { TokenDto, OrderDto } from 'services'
const PRICE_PRECISION ... |
<filename>src/lint.ts
import * as ts from 'typescript';
import * as path from 'path';
import * as glob from 'glob';
import chalk from 'chalk';
import yargs from 'yargs';
const main = () => {
const args = yargs(process.argv.splice(2))
.usage('Usage: mapper-code-lint [-c] [-q | --quiet] [-v | --version] <check fil... |
import { restartTimer, updateTimerPeriodFromUI } from "./timerStuff";
import Plotly from 'plotly.js-dist'
import { IsgsMarginsDTO } from "./type_defs/IsgsMarginsDTO";
import { stackedArea } from "./plotStuff";
import { getIsgsMargins } from "./fetchUtils";
import { createTable, exportTableToCSV } from "./tableExportUt... |
<reponame>rpatil524/client-nodejs
/*
* Copyright (C) 2021 Vaticle
*
* 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... |
/// <reference path="../VCL/Scripts/jquery.d.ts" />
import V = require("VCL/VCL");
import VXO = require("VCL/VXObject");
import VXC = require("VCL/VXComponent");
import VXD = require("VCL/VXDataset");
import VXU = require("VCL/VXUtils");
import VXB = require("VCL/VXInputBase");
declare function Spinner(options: any): ... |
<gh_stars>10-100
import {
Worker,
isMainThread,
parentPort,
workerData,
threadId,
MessageChannel,
MessagePort,
} from 'worker_threads';
import lineByLine = require('n-readlines');
import ProjectConfig from '../project.config';
import * as path from "upath2";
import { IDictRow, parseLine as parseLineSegment, seri... |
import React, { useState, useReducer, ReactNode, useMemo } from "react";
import Table, { TableConfig, TableUIConfig } from "../../Table";
import styles from "./commonTableStyle.module.css";
import {
Button,
capitalize,
makeStyles,
MenuItem,
Select,
Theme,
Tooltip,
Typography,
useTheme,
withStyles,
}... |
import { DMMF } from '@prisma/generator-helper'
import { Enum, Field, Method, OneOf, ReflectionObject, Root, Service, Type } from 'protobufjs'
import proto from './protobuf'
const TypeMap = {
String: 'string',
Boolean: 'bool',
Int: 'sint32',
BigInt: 'sint64',
Float: 'float',
DateTime: 'google.p... |
<reponame>hedgerwang/prosemirror-datagrid
import CanvasDataGridRenderingContext from './CanvasDataGridRenderingContext';
import Box from './Box';
import nullthrows from 'nullthrows';
import CanvasDataGridConfig from './CanvasDataGridConfig';
import type { CanvasDataGridState } from './canvasDataGridState';
import getCe... |
// SemanticCodeValue:[Isolated, Initial, Medial, Final].
// Use null for non-applicable.
export const unicodeCursiveMap:{[id:number]:number[]} = {
0x627: [0xfe8d, null, null, 0xfe8e], // ALEF
0x628: [0xfe8f, 0xfe91, 0xfe92, 0xfe90], // BEH
0x629: [0xfe93, null, null, 0xfe94], // MARBUTA
0x62a: [0xfe95, 0xfe97, ... |
<filename>src/build.ts
import * as core from '@actions/core'
import * as path from 'path'
import * as fs from 'fs'
import * as process from 'process'
import {strict as assert} from 'assert'
import * as actions from './actions'
import * as util from './util'
import {TestResultReader} from './test'
import {Outcome, TestO... |
<reponame>leopf/agile
import React, { ComponentClass } from 'react';
import Agile, {
State,
ComponentSubscriptionContainer,
getAgileInstance,
Observer,
isValidObject,
flatMerge,
extractRelevantObservers,
normalizeArray,
} from '@agile-ts/core';
import type { Collection } from '@agile-ts/core'; // Only i... |
<filename>src/main.ts
function eq(x: number, y: number) { return (((0 - (x ^ y)) >> 16) & 0xffff) ^ 0xffff; }
function gt(x: number, y: number) { return ((y - x) >> 8) & 0xffff; }
function lt(x: number, y: number) { return gt(y, x); }
function ge(x: number, y: number) { return gt(y, x) ^ 0xffff; }
function le(x: number... |
<gh_stars>0
import ScoreSaberApi from './scoresaber/api';
import Score from './scoresaber/api/Score';
import PlayerInfo from './scoresaber/api/PlayerInfo';
import Playlist from './playlists/Playlist';
import Song from './playlists/Song';
import { name } from '../package.json';
import path from 'path';
import fs from 'f... |
import { AtLeastOneOf, isFunction } from '@codemucker/lang'
import { popContext, pushContext } from '@codemucker/logging'
type TestFunc = () => Promise<any> | void
type StepType = 'Given' | 'When' | 'Then' | 'AndGiven' | 'AndWhen' | 'AndThen'
type JestDone = (error?: any) => void
const realConsoleLog = console.log
f... |
<filename>packages/rdx/src/newGraph/graph.ts
'use strict'
import { NotifyPoint } from '../graph'
import { isAcyclic } from './alg'
import _ from './lodash'
var DEFAULT_EDGE_NAME = '\x00'
var GRAPH_NODE = '\x00'
var EDGE_KEY_DELIM = '\x01'
// Implementation notes:
//
// * Node id query functions should return string... |
import DynamicHeader from './Header/DynamicHeader';
import { useEffect, useState, useContext, useRef } from 'react';
import { Skeleton } from 'antd';
import { ModuleTabPane } from './EmbededModule/CreateModule';
import _, { min } from 'lodash';
import { DEFAULT_MARGIN, COLS_NUM, DEFAULT_ROW_HEIGHT } from './util';
impo... |
////////////////////////////////
//
// Copyright 2022 Battelle Energy Alliance, LLC
//
// 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 limitatio... |
import { AxiosResponse } from 'axios';
import { compare } from 'fast-json-patch';
import { ColumnTags, TableDetail, Topic } from 'Models';
import React, { useEffect, useState } from 'react';
import { useParams } from 'react-router-dom';
import AppState from '../../AppState';
import { getServiceById } from '../../axiosA... |
import React, {SyntheticEvent, useMemo, useState} from 'react';
import "../../styles/payBooks/index.scss"
import {Button, ButtonProps, Dropdown, Form, Header, Icon, Input, Modal} from "semantic-ui-react";
import useRequest from "../../utils/swr";
import {Icons} from "../../enum/icons";
import {ICreatePayBookInfo, IGetP... |
import { Component, OnInit, ViewChild, Inject } from '@angular/core';
import { MatMenuTrigger } from '@angular/material/menu';
import { ActivatedRoute, Router } from '@angular/router';
import { HttpClient } from '@angular/common/http';
import { Examples } from '../../example-schemas.model';
import { JsonPointer } from... |
import * as H from 'history'
import SettingsIcon from 'mdi-react/SettingsIcon'
import React, { useState, useMemo, useEffect } from 'react'
import { ContributableMenu } from '../../../shared/src/api/protocol'
import { LinkOrButton } from '../../../shared/src/components/LinkOrButton'
import { ExtensionsControllerProps } ... |
/**
* Copyright 2017 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft Corporation.
*
* 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.or... |
import IconButton from '@material-ui/core/IconButton'
import { makeStyles } from '@material-ui/core/styles'
import Close from '@material-ui/icons/Close'
import React, { useEffect, useState } from 'react'
import { useSelector } from 'react-redux'
import { EthHashInfo } from '@gnosis.pm/safe-react-components'
import { Li... |
import { TextDocument, Position, Range } from "vscode-languageserver";
import { IGrammar, StackElement, IToken, IGrammarExtensions } from "./TextMateService";
import { isUpperCase, hasEndMark, isLowerCase } from "../util/string";
export interface ITokenState {
startState: StackElement | null;
tokens1: IToken[];... |
/**
*
* @file PopupManager.ts
* @author dream
* @description 弹框管理类
*
*/
import {
Mask,
Widget,
BlockInputEvents,
Canvas,
director,
game,
instantiate,
Layers,
Node,
Prefab,
UITransform,
color,
Sprite,
SpriteFrame,
Texture2D,
ImageAsset,
v3,
view,
Color,
} from "cc";
import {... |
<reponame>jc-lab/commons-crypto<gh_stars>0
import * as asn1js from 'asn1js';
import * as elliptic from 'elliptic';
import * as hashjs from 'hash.js';
import {AsnParser, AsnSerializer, OctetString} from '@peculiar/asn1-schema';
import {PrivateKeyInfo} from '@peculiar/asn1-pkcs8';
import {AlgorithmIdentifier} from '@pecu... |
<filename>src/modules/afc/util/recentchange.ts
import { ApiParams, MwnDate } from 'mwn';
import { ApiQueryRecentChangesParams } from 'types-mediawiki/api_params';
import { mwbot } from 'src/modules/afc/util/index';
type OneOrMore<T> = T | T[];
export declare type RecentChangeFilter = {
type?: OneOrMore<'edit' | 'lo... |
<filename>packages/cli/src/LoadNodesAndCredentials.ts
import {
CUSTOM_EXTENSION_ENV,
UserSettings,
} from 'n8n-core';
import {
ICredentialType,
INodeType,
INodeTypeData,
} from 'n8n-workflow';
import * as config from '../config';
import {
access as fsAccess,
readdir as fsReaddir,
readFile as fsReadFile,
stat ... |
import { Form, FormikContext } from 'formik';
import React from 'react';
import { Modal } from 'react-bootstrap';
import {
Application,
FormikFormField,
ICapacity,
IModalComponentProps,
MinMaxDesiredChanges,
ModalClose,
NumberInput,
PlatformHealthOverride,
ReactInjector,
SpinFormik,
TaskMonitorWr... |
import React from "react";
import { Row, Col, FBSelect, Color, BlurableInput, Help } from "../../ui";
import {
variableFormList, NO_VALUE_SELECTED_DDI, sortVariables,
} from "./variable_form_list";
import { convertDDItoVariable } from "../locals_list/handle_select";
import {
VariableFormProps, AllowedVariableNodes,... |
<reponame>yamat47/tech-blog-rss-feed
import * as RssParser from 'rss-parser';
import { PromisePool } from '@supercharge/promise-pool';
import { FeedInfo } from '../../resources/feed-info-list';
import * as dayjs from 'dayjs';
import axios from 'axios';
import { URL } from 'url';
import * as retry from 'async-retry';
im... |
<gh_stars>0
import { fetchSubmissionsFromDatabaseAndServer } from "../database/SubmissionsDB";
import Contest, { isContest } from "../interfaces/Contest";
import { isContestParticipation } from "../interfaces/ContestParticipation";
import MergedProblem, { isMergedProblem } from "../interfaces/MergedProblem";
import Pro... |
import { Injectable } from '@angular/core';
import {
CordovaInstance,
InstanceCheck,
IonicNativePlugin,
Plugin
} from '@ionic-native/core';
import { Observable, Observer } from 'rxjs';
declare const cordova: Cordova & { InAppBrowser: any };
export interface InAppBrowserOptions {
/**
* (iOS Only) Set to y... |
require('module-alias/register')
jest.setTimeout(50000)
import * as ethers from 'ethers'
import { genTestAccounts } from '../accounts'
import { timeTravel } from '../'
import { config } from 'maci-config'
import {
deployMaci,
deploySignupToken,
deploySignupTokenGatekeeper,
deployConstantInitialVoic... |
<reponame>mmkal/slonik
/* eslint-disable import/no-namespace */
/* eslint-disable lines-around-comment */
/* eslint-disable line-comment-position */
/* eslint-disable no-inline-comments */
/* eslint-disable max-len */
import {
Logger,
} from 'roarr';
import type {
SlonikError,
} from './errors';
import type * as t... |
<filename>DataMonitoring/ClientApp/src/app/shared/layout/layout.service.ts
import { Injectable } from '@angular/core';
import { Subject, fromEvent } from 'rxjs';
import { debounceTime, map } from 'rxjs/operators';
import { NotificationService } from '@app/shared/layout/notification.service';
import { Configuration, Ski... |
<filename>src/storageHandlers/quantelHttpHandler.ts
import { EventEmitter } from 'events'
import { StorageHandler, File, FileProperties, StorageEventType } from './storageHandler'
import { QuantelHTTPStorage, StorageType } from '../api'
import { Transform } from 'class-transformer'
import * as stream from 'stream'
impo... |
/*
Copyright 2020 mx-puppet-bridge
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
import { PayloadAction } from '@reduxjs/toolkit';
import { DataQuery, DefaultTimeZone, ExploreMode, LogsDedupStrategy, toUtc, ExploreUrlState } from '@grafana/data';
import * as Actions from './actions';
import {
cancelQueries,
changeDatasource,
changeMode,
loadDatasource,
navigateToExplore,
refreshExplore... |
import { isExisty } from "lib/helpers"
import { assign, compact, get } from "lodash"
import cached from "./fields/cached"
import date from "./fields/date"
import money, { amount } from "./fields/money"
import { formatMoney } from "accounting"
import numeral from "./fields/numeral"
import Artwork from "./artwork"
import... |
/*
Copyright 2019, 2020 Lepton Interaction.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... |
<reponame>ehtick/FluidFramework
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { IFluidHandle, IFluidHandleContext } from "@fluidframework/core-interfaces";
import { IDocumentStorageService } from "@fluidframework/driver-definitions";
imp... |
import ManagedArray from '../../utils/managed-array';
import {TILE_REFINEMENT} from '../../constants';
export type TilesetTraverserProps = {
loadSiblings?: boolean;
skipLevelOfDetail?: boolean;
maximumScreenSpaceError?: number;
onTraversalEnd?: (frameState) => any;
viewportTraversersMap?: {[key: string]: any... |
<gh_stars>0
import { groupBy, mapValues } from 'lodash'
import * as tsm from 'ts-morph'
import { TextDocuments } from 'vscode-languageserver'
import { TextDocument } from 'vscode-languageserver-textdocument'
import {
CodeAction,
CodeActionContext,
Diagnostic,
DiagnosticSeverity,
DocumentUri,
Location,
Pos... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import {logWarn} from '../../utils/log';
import {throttle} from '../../utils/throttle';
import {forEach} from '../../utils/array';
import {getDuration} from '../../utils/time';
interface CreateNodeAsapParams {
selectNode: () => HTMLElement;
createNode: (target: HTMLElement) => void;
updateNode: (existing: ... |
import { MarkdownIcon, MarkGithubIcon, TypographyIcon } from '@primer/octicons-react';
import { ChangeEvent, useCallback, useContext, useEffect, useRef, useState } from 'react';
import { adaptComment, adaptReply, handleCommentClick, processCommentBody } from '../lib/adapter';
import { AuthContext } from '../lib/context... |
import { renameProp, findJsxTag, boolTransform, enumTransform, numberTransform } from '../../utilities';
import { Project, SyntaxKind, JsxAttribute } from 'ts-morph';
import { ValueMap, PropTransform } from '../../types';
import { Maybe } from '../../../helpers/maybe';
const personaPropsFile = 'mPersonaProps.tsx';
con... |
<reponame>MC-JY/inception<gh_stars>0
/*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file t... |
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
// Node module: @loopback/context
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {MetadataAccessor, MetadataInspector} from '@loopback/metadata';
import debugFactory from 'debug';
import {
... |
<reponame>jld23/jupyterlab-code-snippets
import { LabIcon } from '@jupyterlab/ui-components';
import babelSVGstr from '../style/icon/language_icons/babel.svg';
import cSVGstr from '../style/icon/language_icons/c.svg';
import clojureSVGstr from '../style/icon/language_icons/clojure.svg';
import coconutSVGstr from '../s... |
import * as React from 'react';
import classNames from 'classnames';
import CalendarIcon from '@skbkontur/react-icons/Calendar';
import { CalendarDateShape } from '../Calendar/CalendarDateShape';
import { parseDateString } from '../DatePicker/DatePickerHelpers';
import { tryGetValidDateShape } from '../DatePicker/Dat... |
<filename>src/question_imagepicker.ts
import { Serializer } from "./jsonobject";
import { QuestionFactory } from "./questionfactory";
import { QuestionCheckboxBase } from "./question_baseselect";
import { ItemValue } from "./itemvalue";
import { Helpers } from "./helpers";
import { ILocalizableOwner, LocalizableString ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.