text stringlengths 3.08k 15.5k |
|---|
import {
createConditionalFlow,
FlowKind,
getFlow,
getSteps,
reconcileConditionalFlows,
WithConnection,
WithIntegrationHelpers,
} from '@syndesis/api';
import * as H from '@syndesis/history';
import { Integration, StringMap } from '@syndesis/models';
import {
ChoiceCardHeader,
EditorPageCard,
Integr... |
'use strict';
import * as vscode from 'vscode';
import DiredProvider from './provider';
import FileItem from './fileItem';
import * as fs from 'fs';
import * as path from 'path';
import { autocompletedInputBox } from './autocompletedInputBox';
export interface ExtensionInternal {
DiredProvider: DiredP... |
<gh_stars>1-10
/* eslint-disable no-underscore-dangle */
/* eslint-disable @typescript-eslint/no-explicit-any */
import axios, { AxiosError } from 'axios';
import { getInitData } from './talon-harness';
const params = new URLSearchParams(document.location.search);
const id = params.get('id');
const pkey = params.get('... |
import {
AccessorOnPackage,
PackageContainer,
PackageContainerOnPackage,
} from '@sofie-automation/blueprints-integration'
import { getAccessorCost, getAccessorStaticHandle } from '../../../accessorHandlers/accessor'
import { GenericWorker } from '../../../worker'
import { Expectation } from '@shared/api'
import { p... |
import { ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { Observable, of as observableOf, Subscription } from 'rxjs';
import { catchError, tap } from 'rxjs/operators';
import { RequestParam } from '../../../core/cache/models/request-param.model';
import { E... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
<reponame>andyfischer/rqe
import { Query, QueryLike } from '../Query'
import { MountSpec, MountPointSpec } from '../MountPoint'
import { Port } from '../utils/Port'
import { Graph } from '../Graph'
import { PipedData } from '../Stream'
import { Module } from '../Module'
import { randInt } from '../utils/rand'
import {... |
<filename>javascript/src/truth-table-generator/runner.node.ts
import * as fs from 'fs';
import {
createBddFromTruthTable,
TruthTable,
bddToMinimalString,
fillTruthTable,
optimizeBruteForce,
OptimisationResult,
RootNode
} from 'binary-decision-diagram';
import type { StateActionIdMap } from ... |
<filename>lib/common/constants.ts
// enumeration taken from ProvisionType.cs
export class ProvisionType {
static Development = "Development";
static AdHoc = "AdHoc";
static AppStore = "AppStore";
static Enterprise = "Enterprise";
}
export class DeviceTypes {
static Emulator = "Emulator";
static Simulator = "Simu... |
<reponame>ChrisSavoie/dino-budgeter
import pgPromise from "pg-promise";
import Money from "../shared/Money";
import {
FrameIndex,
GroupId,
Share,
SplitId,
Transaction,
TransactionId,
UserId,
} from "../shared/types";
import { addToBalance } from "./payments";
export * from "../shared/transactions";
import... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import { RTCIceCandidateStats, SelectedIceCandidatePairStats, } from '../../tsdef/PreflightTypes';
import type { RTCIceCandidatePairStats } from './rtctypes';
interface RTCStatsReport {
[x: string]: any;
forEach(callbackfn: (value: any, key: string, parent: ... |
<filename>src/database_manager.ts<gh_stars>10-100
const fs = require('fs');
require('dotenv').config();
const chalk = require('chalk');
const MongoClient = require('mongodb').MongoClient;
const log = require('loglevel');
log.setLevel(process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info');
import { getMasterProperty }... |
<reponame>canada19l7/gapic-generator-typescript
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Un... |
import { noop } from "lodash";
import React, { memo, useCallback, useEffect, useRef, useState } from "react";
import type {
AliasMap,
CommentsMap,
} from "../../../reducers/files-and-folders/files-and-folders-types";
import type { TagMap } from "../../../reducers/tags/tags-types";
import { IcicleEnrichments } from... |
import cn from 'classnames'
import React, { ReactElement, useMemo, useState } from 'react'
import { useSelector } from 'react-redux'
import { EthHashInfo } from '@gnosis.pm/safe-react-components'
import ApproveTxModal from './ApproveTxModal'
import OwnersColumn from './OwnersColumn'
import RejectTxModal from './Reject... |
/*
* Copyright (c) 2017-2018 LabKey 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
import EventEmitter from '../../utils/event-emitter'
type Vector = {
x: number,
y: number
}
type SimpleTouchEvent = {
e: TouchEvent,
direction?: string,
angle?: number,
zoom?: number,
timeDiff?: number
}
const getLen = (v: Vector) => Math.sqrt(v.x ** 2 + v.y ** 2)
const getAngle = (v1: Vector, v2: Vec... |
<reponame>originalwebgurl/agnosticui<filename>agnostic-angular/libs/ag/src/lib/tabs.component.stories.ts
import { Meta } from '@storybook/angular/types-6-0';
import { moduleMetadata, componentWrapperDecorator } from '@storybook/angular';
import { TabsComponent } from './tabs.component';
import { AgModule } from 'agnost... |
import * as React from 'react'
import {
select,
selectWithNone,
reusableBoxProps,
Placeholder,
ResponsiveWidthRef,
Wrapper,
PartialProps,
selectSize,
} from '../storybook-helper'
import { Box } from './box'
import { Inline } from '../inline'
import { Stack } from '../stack'
import { Te... |
<gh_stars>0
import type {JSONValue} from './types.js';
import type {Mode} from 'fs';
import {setTimeout} from 'timers/promises';
import url from 'url';
import Path from '@mojojs/path';
import chalk from 'chalk';
import ejs from 'ejs';
export async function captureOutput(
fn: () => void,
options: {stderr?: boolean;... |
import * as React from "react";
import {
Block,
HYPERLINK,
INLINE_STYLE_BOLD,
INLINE_STYLE_HIGHLIGHT,
INLINE_STYLE_ITALIC,
INLINE_STYLE_STRIKETHROUGH,
INLINE_STYLE_UNDERLINE,
} from "../../util/constants";
import { ToolbarButtonInterface } from "./Toolbar";
export const BLOCK_BUTTON_H1 = {
label: "H1",... |
import React from 'react';
// don't remove
import {
faDownload,
faFile,
faFileAlt,
faFileArchive,
faFileAudio,
faFileCode,
faFileExcel,
faFilePdf,
faFilePowerpoint,
faFileVideo,
faFileWord,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { ... |
<gh_stars>0
/*
MIT License
Copyright (c) 2020 Metwas
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
to ... |
import { BooleanModel } from '@dhi/arsenal.models';
import { css } from '@emotion/react';
import { Alert, Button, Grid } from '@mui/material';
import Ajv from 'ajv';
import { JsonPointer } from 'json-ptr';
import cloneDeep from 'lodash-es/cloneDeep';
import { makeAutoObservable, runInAction, toJS } from 'mobx';
import ... |
<gh_stars>100-1000
import { assert } from 'console';
import type { RedisClient } from 'redis';
import { createClient } from 'redis';
import type { Lock } from 'redlock';
import Redlock from 'redlock';
import type { ResourceIdentifier } from '../../http/representation/ResourceIdentifier';
import type { Finalizable } fro... |
<reponame>soulofmischief/WebCord<filename>sources/code/main/windows/settings.ts
import { ipcMain } from "electron";
import { AppConfig } from '../modules/config';
import { HTMLSettingsGroup, HTMLChecklistForms, HTMLChecklistOption, knownIstancesList, HTMLRadioForms } from '../../global/global';
import { appInfo, getBui... |
import { Config } from 'stryker-api/config';
import * as path from 'path';
import { getLogger } from 'stryker-api/logging';
import * as mkdirp from 'mkdirp';
import { RunResult, RunnerOptions } from 'stryker-api/test_runner';
import { File } from 'stryker-api/core';
import { TestFramework } from 'stryker-api/test_frame... |
/* Web-Based-VR-Tutorial Project Template
* Author: <NAME> <<EMAIL>> and <NAME> <<EMAIL>>
* License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
*/
// Extended by <NAME>
import { Engine } from "@babylonjs/core/Engines/engine";
import { Scene } from "@babylonjs/core/scene";
import { Vector2... |
<gh_stars>0
import isEqual from 'lodash.isequal'
import * as utils from './utils'
import keypairs from 'ripple-alpha-keypairs'
import binaryCodec from 'ripple-binary-codec'
import {computeBinaryTransactionHash} from '../common/hashes'
import {SignOptions, KeyPair, TransactionJSON} from './types'
import {BigNumber} from... |
<reponame>rubensm1/moodleapp
// (C) Copyright 2015 Moodle Pty 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 requir... |
import React, { Component, MouseEventHandler } from 'react';
import cn from 'classnames';
import truncate from 'truncate';
import Card, { BaseCardProps } from '../Card';
import CardActions from '../CardActions';
import Tag, { TagType } from '../../Tag';
import EntryCardSkeleton from './EntryCardSkeleton';
import CardDr... |
<filename>src/lib/neighbors/classification.ts
import { map, uniqBy } from 'lodash';
import { IMlModel, Type1DMatrix, Type2DMatrix } from '../types';
import math from '../utils/MathExtra';
import { inferShape } from '../utils/tensors';
import { validateFitInputs } from '../utils/validation';
import KDTree from './KDTree... |
/**
* @module api/actions/DecodeVINValuesBatch
* @category Actions
* @description DecodeVINValuesBatch NHSTA Api Action.
*
* > **Module Exports**:
* > - Class: [DecodeVINValuesBatch](module-api_actions_DecodeVINValuesBatch.DecodeVINValuesBatch.html)
* >
* > **Types**
* > - Type: [DecodeVINValuesBatchR... |
/* eslint-disable @typescript-eslint/camelcase */
import React, { useState } from 'react';
import { Helmet } from 'react-helmet';
import { Row, Col, Button, Spin } from 'antd';
import { PlusOutlined } from '@ant-design/icons';
import LocationUnitDetail, { Props as LocationDetailData } from '../LocationUnitDetail';
impo... |
import p from 'phin';
const RE_YOUTUBE =
/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=))([^#\&\?]*).*/im;
export class YoutubeTranscriptError extends Error {
constructor(message) {
super(`[YoutubeTranscript] 🚨 ${message}`);
}
}
export interface TranscriptConfig {
lan... |
import React, { createContext, ReactElement, useCallback, useEffect, useState } from 'react'
import { MidiNumbers } from 'react-piano'
import { v4 as uuid } from 'uuid'
import { range } from 'lodash'
import { Note, TChannel } from '../SoundfontProvider/SoundFontProvider.types'
const initialNoteRange = {
first: 43,
... |
import axios from 'axios';
import * as cheerio from 'cheerio';
import {
TaskStatistics,
TaskInfo,
TaskContent,
TaskConstraints,
Submission,
ExtractData,
} from '../types';
/** Class representing general information, statistics, content and submissions of a task */
class Task {
/** General informa... |
<reponame>MikeHopcroft/ShortOrder
import { ItemInstance, State } from 'prix-fixe';
import { Graph, Token } from 'token-flow';
import {
ADD_TO_ORDER,
EntityToken,
Span,
PREPOSITION,
PROLOGUE,
} from '../lexer';
import { EntityBuilder } from './entity_builder';
import {
HypotheticalItem,
Interpretation,
... |
import React, { useEffect } from "react";
import { BreadCrumb } from "../../../components";
import {
Table,
TableBody,
TableCell,
TableContainer,
TableFooter,
TableHeader,
TableRow,
Pagination,
} from "@windmill/react-ui";
import InputModal from "./inputmodal";
import { FontAwesomeIcon } from "@fortawes... |
import { FilterFunction } from './type';
import { JsonObject } from 'type-fest';
import { RULES_KEY } from './common/key';
import { validateAndTranslate } from './common/translate';
import {
getClassExtendedMetadata,
getMethodParamTypes,
} from './common/metadata';
/**
* 组件的装饰器使用方式
*
* @example 基础使用方式
* ``... |
<gh_stars>0
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { map, mergeMap, tap } from 'rxjs/operators';
import { combineLatest, NEVER, Observable } from 'rxjs';
import { Router } from '@angular/router';
import { MyselfI } from '../domain/j... |
import { Plugin, PluginContext } from '../Plugin';
import {
Http,
Subsegment,
XRayTraceEvent
} from '../../events/xray-trace-event';
import { MonkeyPatch, MonkeyPatched } from '../MonkeyPatched';
import {
PartialHttpPluginConfig,
defaultConfig,
epochTime,
createXRayTraceEvent,
addAmznTra... |
<gh_stars>0
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium)... |
import { ContentItem, ContentRepository } from 'dc-management-sdk-js';
import { ContentMapping } from './content-mapping';
import { Body } from './body';
type DependancyContentTypeSchema =
| 'http://bigcontent.io/cms/schema/v1/core#/definitions/content-link'
| 'http://bigcontent.io/cms/schema/v1/core#/definitions/... |
<filename>src/redux/actions.tsx
import { ThunkAction, ThunkDispatch } from "redux-thunk";
import Language from "../language/norwegian";
import * as api from "../utils/api";
import {
RECEIVE_ICONS,
RECEIVE_TAGS,
SET_FETCH_INTERVAL,
SET_FETCHING_ICONS,
SET_ICON_BACKGROUND_COLOR,
SET_ICON_COLOR,
SET_ICON_STY... |
import { Fragment, useEffect } from "react"
import { Trans, useTranslation } from "react-i18next"
import Table, { Column, Line } from "common/components/table"
import { EntityType, SummaryItem, TransactionQuery } from "common/types"
import { padding } from "./list-columns"
import { AlertCircle, Check, Return } from "co... |
<filename>shared/styles/shared.tsx<gh_stars>0
import {themed as globalColors} from './colors'
import {isMobile, isIOS, isAndroid, isTablet, isPhone, isElectron} from '../constants/platform'
import {_StylesCrossPlatform, _StylesMobile, _StylesDesktop} from './css'
import type {Background} from '../common-adapters/text'
... |
<gh_stars>0
import 'whatwg-fetch';
import { ExecutionResult, DocumentNode } from 'graphql';
import { print } from 'graphql/language/printer';
import { MiddlewareInterface, BatchMiddlewareInterface } from './middleware';
import { AfterwareInterface, BatchAfterwareInterface } from './afterware';
import { removeConne... |
import React, { useEffect, useState, useCallback } from 'react';
import { useAppState } from '../../state/state';
import { IdeaRow, VoteForm } from '../../types/types';
import { Button, Col, Row, Select, message, Tooltip } from 'antd';
import { QuestionOutlined } from '@ant-design/icons';
import { fetchVotes, castVote ... |
import ModelNode from '../../nodes/ModelNode'
import React, { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import BooleanInput from '../inputs/BooleanInput'
import InputGroup from '../inputs/InputGroup'
import SelectInput from '../inputs/SelectInput'
import NodeEditor from './NodeEd... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* R... |
import React from 'react';
import assign from 'lodash/assign';
import isFunction from 'lodash/isFunction';
import isString from 'lodash/isString';
import isArray from 'lodash/isArray';
import toLower from 'lodash/toLower';
import { Space } from 'antd';
import { LazyPluginCtx, LazyPluginCtxGetter, PluginCtx } from '../t... |
const second = 1000;
const minute = 60 * second;
const hour = 60 * minute;
const day = 24 * hour;
export default [
{ name: 'login', login: false },
{ name: 'screenname/available', login: false },
{ name: 'account/create', login: false },
{ name: 'account/show', login: true },
{ name: 'account/name/update', logi... |
import { developerConsole } from '../../gui/developerConsole';
import { gameLoop } from '../../index';
import { player } from '../../player/player';
import { validateInteger } from './validateInteger';
import { validateFloat } from './validateFloat';
import { validateBoolean } from './validateBoolean';
import { octreeH... |
<filename>src/folders.ts
/**
* Class for managing workspace folders
*/ /** */
import CMakeTools from '@cmt/cmake-tools';
import { KitsController } from '@cmt/kitsController';
import rollbar from '@cmt/rollbar';
import { disposeAll } from '@cmt/util';
import * as vscode from 'vscode';
import * as nls from 'vscode-nls... |
import { liftA2 } from '../src/Apply'
import { flatten } from '../src/Chain'
import { HKT, Type, Type3, URIS, URIS3 } from '../src/HKT'
import { IO, io, URI as IOURI } from '../src/IO'
import { Monad, Monad1, Monad3C } from '../src/Monad'
import { readerTaskEither, right, URI as ReaderTaskEitherURI, ReaderTaskEither } ... |
import { nodeNames, CaptionKind, createId, Nodes, findChildrenWithName } from '@curvenote/schema';
import { EditorState, NodeSelection, TextSelection, Transaction } from 'prosemirror-state';
import { ContentNodeWithPos } from 'prosemirror-utils';
import { EditorView } from 'prosemirror-view';
import { determineCaptionK... |
<gh_stars>0
import { Vue, Component, Watch } from 'vue-property-decorator';
// import { IStudent } from '@/interfaces';
import { mapActions, mapState, mapMutations, mapGetters } from 'vuex';
import { IStudent, IStudents } from '@/interfaces';
import { PropertiesValid, IPropertiesValid } from '@/mixins/PropertiesValid';... |
import process from "node:process";
import { Context, Delete, Get, QueryParams, Req, Res, UseBefore } from "@tsed/common";
import { BadRequest } from "@tsed/exceptions";
import { Controller } from "@tsed/di";
import { URL } from "node:url";
import { prisma } from "lib/prisma";
import { Rank, User, WhitelistStatus } fro... |
import { memo, useEffect, useMemo, useRef } from "react";
import { useForm } from "react-hook-form";
import { useParams } from "react-router-dom";
import {
Button,
EmptyState,
Row,
Spacer,
Stack,
Table,
Textarea,
Toast,
useOnScreen,
} from "~/components";
import { useFunctionInvoke, useLogsQuery } fro... |
import {
encodeBitMask,
encodeNodeProtocolInfo,
MAX_NODES,
NodeProtocolInfo,
NUM_NODEMASK_BYTES,
parseBitMask,
parseNodeProtocolInfo,
} from "@zwave-js/core";
import { pick } from "@zwave-js/shared";
import type { NVM3Object } from "../nvm3/object";
import {
gotDeserializationOptions,
NVMFile,
NVMFileCreation... |
<gh_stars>100-1000
/**
* @file Geometry Buffer
* @author <NAME> <<EMAIL>>
* @private
*/
// @ts-ignore: unused import Vector3 required for declaration only
import { Vector3, Matrix4, Matrix3, BufferGeometry } from 'three'
import { getUintArray } from '../utils'
import { serialBlockArray } from '../math/array-uti... |
<reponame>rishabnayak/tensorboard
/* Copyright 2019 The TensorFlow Authors. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unle... |
<reponame>david-gutierrez-mesa/generator-liferay-fragments<filename>src/utils/project-content/get-project-content.ts
import fs from 'fs';
import glob from 'glob';
import path from 'path';
import {
ICollection,
ICollectionMetadata,
IFragment,
IFragmentComposition,
IFragmentCompositionMetadata,
IFragmentMeta... |
import React, { useState } from 'react';
import { min, max, bisector } from 'd3-array';
import { LinePath } from '@visx/shape';
import { localPoint } from '@visx/event';
import type { EventType } from '../utils/commonTypes';
import { isEmpty } from '../utils/helpers';
import type { Point, LinePathData, LineGraphPro... |
<reponame>hypnotox/vscode-teal
import * as Parser from 'web-tree-sitter';
import * as path from "path";
import { TextDocumentContentChangeEvent, Range, Position } from 'vscode-languageserver/node';
import { TextDocument } from 'vscode-languageserver-textdocument';
import { URI } from 'vscode-uri';
import { upwardSearch... |
import { AfterViewInit, Component, OnInit, OnDestroy, Input } from '@angular/core';
import { NbThemeService } from '@nebular/theme';
import { JobResponseService } from '../../../../@core/data/job-response.service';
import { SocketService } from '../../../../@core/socket/socket.service';
import { MaterialData } from '..... |
<reponame>flippynips/node-efz
/******************************************************
* Project: EFZ
* Author: <NAME>
* Purpose: Table containing user details by user id.
* Revision History: None
******************************************************/
import * as uuid from 'uuid';
import { IUser, UserState } fro... |
import React from 'react'
import {get} from 'lodash'
import {startsWith} from '@sanity/util/paths'
import {ArraySchemaType, Marker, Path, SchemaType} from '@sanity/types'
import {Stack} from '@sanity/ui'
import {FormFieldSet} from '@sanity/base/components'
import {FormFieldPresence} from '@sanity/base/presence'
import ... |
import ts, { factory } from 'typescript';
import toposort from 'toposort';
import { DefaultedMap } from '@il2js/core';
import type { Il2JsonFile, Il2CppTypeDefinitionInfo, Il2CppTypeInfo, ITypeRegistry, Il2JsConfig } from '../..';
import { generateClass } from './Utils/StructHelpers';
import type { CodegenContext } fro... |
import React, { CSSProperties, Key, useContext } from 'react'
import styled from 'styled-components'
import Context from './Context'
import { useChevronDownIcon, useChevronRightIcon } from './Icon'
import { Column, DataGridProps, EditorChange, EditorValue, Row } from './types'
import { writeClipboardText } from './util... |
<filename>src/mol-gl/compute/histogram-pyramid/reduction.ts
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { createComputeRenderable, ComputeRenderable } from '../../renderable'
import { WebGLContext } from '../../webgl/context... |
import dlv from 'dlv';
import React from 'react';
import {
TextInput as RNTextInput,
TextInputProps as RNTextInputProps,
TouchableOpacity,
View,
ViewProps,
} from 'react-native';
import { ControlSize, useTheme } from '../../theme';
import { isControlSize } from '../../utils/ControlSize';
import { getOverride... |
import CodeMirror from 'codemirror';
import bibtexTidy, { BibTeXTidyResult } from '../src/index';
import { optionDefinitions, OptionDefinition } from '../src/optionDefinitions';
import { Options, UniqueKey } from '../src/optionUtils';
import { optionsToCLIArgs } from '../src/cliUtils';
import { BibTeXSyntaxError } from... |
/*
* Copyright 2020 Spotify AB
*
* 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 i... |
#!/usr/bin/node
import {Observable, of, throwError} from "rxjs";
import {bindNodeCallback} from "rxjs/internal/observable/bindNodeCallback";
import {catchError, concatMap} from "rxjs/operators";
import {PouchDBWrapper, CouchDBConf, CouchDBWrapper, Credentials,
LogDocument, LogDocumentGenerator, Logger, ValueWithLo... |
import * as React from 'react'
import {MediaUploadDialog} from './media-upload-dialog'
import {MediaFile} from '../types'
import {API} from '../types'
import {Config} from '../state/config'
import {Dialog} from './dialog'
import {ImageThumb} from './image-thumb'
import {APIConsumer} from './api-context'
import {StateCo... |
import findIndex from "array-find-index";
import React from "react";
import warning from "warning";
const DOCUMENT_POSITION_PRECEDING = 2;
type KeyDirection = "horizontal" | "vertical" | "both";
export type TabStop = {
readonly id: string;
readonly domElementRef: React.RefObject<any>;
};
export type State = {
... |
import debugModule from "debug";
const debug = debugModule("codec:abi-data:utils");
// untyped import since no @types/web3-utils exists
const Web3Utils = require("web3-utils");
import * as Evm from "@truffle/codec/evm";
import * as Ast from "@truffle/codec/ast";
import type * as Abi from "@truffle/abi-utils";
import t... |
import { computed, observable } from "mobx";
import { FormDesignerModel } from "../../designer";
import {
FieldModel,
FormComponent,
FormComponentConstructor,
IFieldModelOptions,
ISectionModelOptions,
RepeatableSubFormFieldModel,
SectionModel,
SubFormFieldModel,
TypedValue,
ValidationErrorModel,
I... |
import {Component} from '@angular/core';
import {Store} from '@ngrx/store';
import {IdleOption, OpExecutor, OpKind, OpType} from 'org_xprof/frontend/app/common/constants/enums';
import {ChartDataInfo} from 'org_xprof/frontend/app/common/interfaces/chart';
import {TensorflowStatsData} from 'org_xprof/frontend/app/common... |
/*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access and use.
*/
/// <amd-module name="CMSadapter.Impl... |
<gh_stars>0
import fs from 'fs'
import path from 'path'
import mapValues from './common/mapValues'
interface ObjectRepType extends Record<string, [number, string] | ObjectRepType> {}
type SupportedLangType = 'ts' | 'js';
type PathQueueType = {
pathFromCall: string
object: Record<string, any>
pathFromOutput: stri... |
import React, { useEffect, useRef, useState } from 'react';
import { ConsoleLoggerUtil, isSafari, setUnMuteByFirstClick, audioHandler } from '@ag/core';
import Hls from 'hls.js';
interface IOwnProps {
config?: Record<string, number>;
source: string;
isMuted: boolean;
volume: number;
isVideoPaused?: boolean... |
import * as path from "path";
import * as fs from "fs";
import { GatsbyCreatePages, PageInput } from "./types";
import { backgroundPath } from "../util/backgroundPath";
const staticSuffix = "_static.jpg";
function getImagePaths(mainImageFileName: string): { mainImageRelativePath: string; bgImageRelativePath: string }... |
import { Member, MemberAttributes, CreatableEntityAttributes } from '../entities';
import { MemberCannotRepeatCheckInError } from '../exceptions';
import { isWithinNHours } from '../helpers/client';
import type { Logger } from '@slack/logger';
import type {
ICheckInManager,
IMemberManager,
IMemberProvider,
IMe... |
import * as THREE from 'three';
import * as React from 'react';
import { useState, useRef } from 'react';
import { Canvas, useThree, useRender, extend } from 'react-three-fiber';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
import PlayCircle from 'react-feather/dist/icons/play-circle';
imp... |
<reponame>dejaniskra/user-management<gh_stars>0
import { UserCreateRequest } from "../dataobjects/rest/request/userCreate.request";
import { UserVerifyRequest } from "../dataobjects/rest/request/userVerify.request";
import { UserEntity } from '../dataobjects/entities/user.entity';
import { CodeEntity } from "../dataobj... |
import { config, Subscription } from 'rxjs';
import { ToastrService } from 'ngx-toastr';
import { Component, OnInit, OnDestroy } from '@angular/core';
import {
CloudAppRestService, CloudAppEventsService, Request, HttpMethod,
Entity, PageInfo, RestErrorResponse, CloudAppConfigService, EntityType
} from '@exlibris/ex... |
<reponame>lehmacdj/setup<filename>src/installer.ts
import * as core from '@actions/core';
import {exec} from '@actions/exec';
import {which} from '@actions/io';
import {create as glob} from '@actions/glob';
import * as tc from '@actions/tool-cache';
import {promises as fs} from 'fs';
import {join} from 'path';
import t... |
import React, { useContext, useEffect, useRef, useState } from "react";
import { Text, TextInput, View, Keyboard } from "react-native";
import JourneyService from "../../../../../api-service/journey-service/JourneyService";
import Journey from "../../../../../models/journey/Journey";
import BottomPopup from "../../../.... |
<filename>lib/ts/recipe/session/faunadb/recipeImplementation.ts
import { VerifySessionOptions, RecipeInterface } from "../";
import type { SessionContainer } from "../";
import * as faunadb from "faunadb";
import { FAUNADB_SESSION_KEY, FAUNADB_TOKEN_TIME_LAG_MILLI } from "./constants";
import type { Session as FaunaDBS... |
<reponame>infographicsgroup/n8n
import {
Credentials,
} from 'n8n-core';
import {
ICredentialDataDecryptedObject,
ICredentialsHelper,
INode,
INodeParameters,
INodeProperties,
INodeType,
INodeTypes,
INodeTypeData,
NodeHelpers,
Workflow,
} from 'n8n-workflow';
import {
CredentialsOverwrites,
CredentialType... |
import { TextEditor } from 'atom'
import * as path from 'path'
import * as fs from 'fs'
import { handlePromise, atomConfig, packagePath } from '../util'
export function editorForId(editorId: number): TextEditor | undefined {
for (const editor of atom.workspace.getTextEditors()) {
if (editor.id === editorId) {
... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
import { Controller, Body, Post, UseGuards, UnauthorizedException, Ip, Headers, Get, Param, Delete, NotFoundException, ConflictException, ForbiddenException } from '@nestjs/common';
import { ApiTags, ApiCreatedResponse, ApiBearerAuth, ApiBody, ApiUnauthorizedResponse, ApiHeader, ApiOkResponse, ApiNotFoundResponse, ApiC... |
import React, {
useCallback,
useContext,
useEffect,
useMemo,
useState,
} from "react";
import { Container } from "../components/helpers/Container";
import { UserContext } from "../utils/user";
import { Map } from "immutable";
import {
RoomInput,
StaffRole,
UpdateRoomMutation,
useAddR... |
import { useRouter } from 'next/router';
import { useEffect, useRef, useState } from 'react';
import { Crop } from 'react-image-crop';
import { useDispatch } from 'react-redux';
import { getCroppedImage } from '../../utils/getCroppedImage';
import { useTypedSelector as useSelector } from '../../store';
import {
staf... |
import i18next from "i18next";
import {action, comparer, computed, Lambda, observable, reaction, runInAction} from "mobx";
import {PanelProps} from "../../components";
import {messageStore} from "../../message";
import {toFlatValues} from "../store";
import {Entity, EntityToType, FormListNode, FormNode, isStor... |
<gh_stars>0
import { Injectable, Logger, Module } from "@nestjs/common";
import { InjectRepository, TypeOrmModule } from "@nestjs/typeorm";
import { Site } from "../../../models/site.entity";
import { Section } from "../../../models/sections.entity";
import { Option, OptionType } from "../../../models/options.entity";
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.