text stringlengths 3.08k 15.5k |
|---|
import React, {useRef, useCallback, useState} from 'react';
import {useNavigation} from '@react-navigation/native';
import {TextInput, ScrollView, Alert} from 'react-native';
import {launchCamera, launchImageLibrary} from 'react-native-image-picker';
import {Form} from '@unform/mobile';
import {FormHandles} from '@unfo... |
import test from 'ava';
import { SchemaValidationResult } from '../../src/schema-validation/schema-validation-result';
import { validate } from '../../src/schema-validation/schema-validator';
const baseSchema = {
$schema: 'http://json-schema.org/draft-04/schema#',
additionalProperties: false,
properties: ... |
import {PharosBase, PharosSerializer} from './pharos-base';
import {LigActSerializer, LigandActivity} from './ligand-activity';
import {DataProperty} from '../tools/generic-table/components/property-display/data-property';
import {LIGANDDETAILSFIELDS, LIGANDDETAILSQUERY, LIGANDLISTFIELDS} from './target-components';
/... |
import classNames from 'classnames'
import CloseIcon from 'mdi-react/CloseIcon'
import FileDocumentIcon from 'mdi-react/FileDocumentIcon'
import SearchStackIcon from 'mdi-react/LayersSearchIcon'
import SearchIcon from 'mdi-react/SearchIcon'
import React, { useCallback, useState } from 'react'
import { Link, useHistory ... |
<filename>admin/src/app/admin-app/components/products/products-editor.component.ts
import {Component, EventEmitter, Output, Input, AfterViewInit, OnInit} from '@angular/core';
import {ProductsCategoryModel, ProductsModel, ProductsSubcategoryModel} from "./products.model";
import {ProductsService} from "./products.ser... |
import { Event } from '../Event';
import { World } from '../World';
import { Governor, proposalStateEnums } from '../Contract/Governor';
import { getAddress } from '../ContractLookup';
import {
getAddressV,
getArrayV,
getEventV,
getNumberV,
getStringV
} from '../CoreValue';
import {
AddressV,
... |
<filename>packages/icons/scripts/web.ts
/**
* Copyright 2020, SumUp 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... |
<filename>LightcordApi/src/modules/DiscordTools.ts
import { notices, noticeWithoutID, notice, events as noticeEvents } from "../components/private/Notices";
import Utils from "./Utils";
import uuid from "./uuid";
import cloneNullProto from "./cloneNullProto";
import { EventEmitter } from "events";
import { default... |
<reponame>sergeart/vuerd
import { SIZE_TABLE_PADDING } from "@/ts/layout";
import { Edit, State, Table } from "../table";
import { Commit as MemoCommit, Memo } from "@/store/memo";
import { Commit as RelationshipCommit } from "@/store/relationship";
import TableModel from "@/models/TableModel";
import { zIndexNext } fr... |
<gh_stars>0
import { Bech32 } from 'shared/lib/bech32'
import { Electron } from 'shared/lib/electron'
import { localize } from 'shared/lib/i18n'
import { showAppNotification } from 'shared/lib/notifications'
import validUrl from 'valid-url'
import type { Event } from './typings/events'
export const ADDRESS_LENGTH = 64... |
import { colors } from "./const";
import { workflow, executor } from "./workflow";
import { ssh } from "./sshClient";
import { httpsClient } from "./httpsClient";
interface workflowFormat {
nom: string;
task: Array<taskFormat>;
}
interface taskFormat {
nom: string;
type: "ssh" | "https" | "ssh+https";... |
import * as vscode from 'vscode';
import { CancellationToken, ProviderResult, Uri } from 'vscode';
import { PROVIDER_SCHEMA, DEBUG, OUTPUT } from './constants';
import { log, tagged } from './Logger' // './old/Logger-original'
import { reduceTemplateString } from './templateStringResolve'
//#region Util
//#region S... |
<filename>src/scene/cutscene/s001_opening.ts
import { Scene, Actor, Font, FontUnit, Color, Animation, vec, Sprite, Text, BoundingBox, EasingFunctions, Rectangle } from 'excalibur'
import { resource } from '../../resource/ResourceManage'
import { fadeActor } from '../global/fadeActor'
import { fromFlexImageSource } from... |
<gh_stars>0
/*
* Copyright 2021 Salto Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
<filename>libs/cosmos-db.ts
// Copyright PrimeObjects Software Inc. and other contributors <https://www.primeobjects.com/>
//
// This source code is licensed under the MIT license.
// The detail information can be found in the LICENSE file in the root directory of this source tree.
import { isArray, each } from 'l... |
import { Router } from "express";
import _ from "lodash";
import { DataStore } from "../../dataStore";
import { IHistoricalAccountBalance, ValueType } from "../../types";
const router = Router();
/* GET home page. */
router.get("/", async (_req, res, next) => {
const dataStore = new DataStore();
try {
... |
import invariant from "tiny-invariant";
import { v4 as uuidv4 } from "uuid";
import type { EliminationBracketSide } from "./bracket";
/** Singe/Double Elimination bracket algorithm that handles byes
* @link https://stackoverflow.com/a/59615574 */
export function eliminationBracket(
participantCount: number,
type:... |
import React, { ChangeEvent } from "react";
import { iAssertionRow, iField } from "@shared/types/assertionRow";
import { DeleteIcon } from "electron-app/src/ui/icons";
import { css } from "@emotion/react";
import { SelectBox } from "@dyson/components/molecules/Select/Select";
import { Input } from "@dyson/components/at... |
import { Text, Stack, Persona, PersonaSize, Icon, Link, Dialog, DialogType, Image, ImageFit, DefaultButton, PrimaryButton, FontIcon } from "office-ui-fabric-react";
import React from "react";
import { GetUserAvatar, GetCurrentDiscordUser, IDiscordUser, discordAuthEndpoint, GetUserRoles, AssignUserRole } from "../common... |
<filename>packages/engage-voice-widget/components/DialerPanel/tests/DialerPanel.spec.tsx
import { ReactWrapper } from 'enzyme';
import { act } from 'react-dom/test-utils';
import { RecipientsInput } from 'ringcentral-widgets/components/Rcui/RecipientsInput';
import { DialoutStatusesType } from '../../../enums/dialoutS... |
// @ts-ignore
import { Matrix4 } from 'math.gl';
import * as React from 'react';
import { default as VertexBuffer } from './clientProcess/reactComponents/flowjo-vis/webgl/buffer';
import Program from './clientProcess/reactComponents/flowjo-vis/webgl/program';
import Texture2d from './clientProcess/reactComponents/flo... |
/**
* Processing of custom types from `paths` section
* in the schema
*/
import {groupBy, map, upperFirst} from 'lodash';
import {getAccessor, getObjectPropSetter} from '../common';
import * as conf from '../conf';
import {Parameter, ParamLocation} from '../types';
import {indent, makeComment} from '../utils';
impo... |
<reponame>ldrobner/gm-games<gh_stars>0
import type { Player } from "../../../common/types";
import { idb } from "../../db";
import { random, g, local, logEvent, helpers } from "../../util";
import { getThreshold } from "./madeHof.football";
const MAX_RETIRED_JERSEY_NUMBERS_PER_AI_TEAM = 6;
const getValueStatsRow = (p... |
import * as React from 'react';
import {useMemo, useState} from 'react';
import {Sort, ExpandChevron} from './icons/Icons';
import ExpandTransition from './ExpandTransition';
type SortValue = string | number | null | undefined;
export type Column = Readonly<{
className?: string;
colSpan?: number;
expandOnClick?... |
/**
* This code is adapted from https://github.com/patientslikeme/react-calendar-heatmap/blob/master/src/index.jsx
*/
import * as React from 'react';
import { connect } from 'react-redux';
import { List } from 'immutable';
import { RootState, HeatMapValue } from '../../types';
import { shiftDate } from '../.... |
import React, { FunctionComponent } from "react";
import { RouteComponentProps } from "react-router";
import {
Table,
} from "reactstrap";
import { languageTranslation } from "../../../../../helpers";
import moment from "moment";
import { Link } from "react-router-dom";
import "../index.scss";
import { defaultDateFor... |
import { Dic } from "./YtModel"
import _ from "lodash"
import { Col, ColEx, SelectableCell, CellEx } from "./Dim"
import { assign } from './Utils'
export type SelectionHandler = (action: Action) => void
export interface InteractiveDataProps<D> {
model: D
onSelection?: SelectionHandler
}
export interface Cha... |
import { Injectable, Inject } from '@angular/core';
import { Location } from '@angular/common';
import { HttpParams } from '@angular/common/http';
import { Params } from '@angular/router';
import { Observable, of, combineLatest } from 'rxjs';
import { switchMap, map } from 'rxjs/operators';
import { format, subDays, ad... |
<filename>src/types.ts
import { Config } from './config';
type Maybe<T> = T | undefined | null;
interface IAuthorizer {
created: number;
profile_id: string;
name: string;
}
export interface IAuth {
date_ts: number;
url?: Maybe<string>;
}
export interface IAppBasicAuth extends IAuth {
username: string;
passwo... |
<gh_stars>1-10
import fs from "fs";
import path from "path";
import { merge } from "lodash";
import { encode as toBase64 } from "./base64";
const __root = path.parse(__dirname).root;
// Development configuration (development.config.json)
function devel() {
if ((process.env.NODE_ENV = process.env.NODE_ENV || "prod... |
import { MarkTriple } from '../../enums/mark-triple.enum';
import { MarkType } from '../../enums/mark-type.enum';
import { MatchResult } from '../../enums/match-result.enum';
import { GameState } from '../../models/game-state.model';
import { WinningInfo } from '../../models/winning-info.model';
const BOARD_TRIPLES = ... |
/*
* 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 React, { FC, useState } from 'react';
import { i18n } from '@kbn/i18n'... |
import { getConfig } from '@expo/config';
import { flags } from '@oclif/command';
import EasCommand from '../commandUtils/EasCommand';
import { AppPlatform } from '../graphql/generated';
import { learnMore } from '../log';
import { isEasEnabledForProjectAsync, warnEasUnavailable } from '../project/isEasEnabledForProje... |
import AwesomeDebouncePromise from "awesome-debounce-promise"
import { useCallback, useEffect, useMemo, useState } from "react"
import { GroupBase } from "react-select"
import AsyncSelect, { AsyncProps } from "react-select/async"
import { Col, Form, Row } from "../bootstrap"
import { FilterOptions, SortOptions, FilterT... |
/* eslint-disable @typescript-eslint/no-explicit-any */
/*---------------------------------------------------------
* Copyright 2021 The Go Authors. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*-------------------------------------------------------... |
<reponame>nana4rider/gas-market-conditions-spinach
import { DateTime } from 'luxon';
type UpdateData = {
mailDate: DateTime
targetDate: DateTime
quantity?: number,
price: {
al?: number, am?: number, as?: number
}
};
const gas: any = global;
gas._main = () => {
const SPINACH_SPREAD_SHEET_ID = getPrope... |
<gh_stars>10-100
import mergeWith from "lodash/mergeWith";
import { keys } from "ts-transformer-keys";
import { TsConfigJson } from "type-fest";
import { TransformOptions as BabelTransformOptions } from "@babel/core";
import { RegisterOptions as TSNodeRegisterOptions } from "ts-node";
import { getAbsoluteRelativeTo } f... |
import React, {
useMemo,
useImperativeHandle,
useRef,
MouseEvent,
PropsWithoutRef,
RefAttributes
} from 'react';
import useTheme from '../use-theme';
import { NormalColors, NormalWeights, SimpleColors } from '../utils/prop-types';
import { getStyles } from './styles';
import CardHeader from './card-header';... |
/** Alarms Dialog Components **
********************************/
import { Component, OnInit, Inject, Input, Output, EventEmitter } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
/********* AlarmsDialog *********
data: {
alarms: current alarms and their state
}
... |
<reponame>hectorjuarezceron/pruebavendure<gh_stars>0
import { Injectable } from '@nestjs/common';
import { Args, Mutation, Query, Resolver } from '@nestjs/graphql';
import {
Administrator,
Ctx,
InternalServerError,
mergeConfig,
NativeAuthenticationMethod,
PluginCommonModule,
RequestContext,
... |
import React from 'react'
import Button from '../components/freestanding/button/button'
import CodeBox, {
Languages,
PropTypes as CodeBoxProps
} from '../components/freestanding/codebox/codebox'
import { PropTypes as FeatureContentProps } from '../components/layouts/feature-content/feature-content'
import { PropTy... |
import {
Bytes,
Address,
BigNumber,
Range,
Struct
} from '@cryptoeconomicslab/primitives'
import {
MerkleTreeInterface,
MerkleTreeGenerator,
MerkleTreeNode
} from './MerkleTreeInterface'
import {
AddressTree,
AddressTreeNode,
AddressTreeVerifier,
AddressTreeInclusionProof
} from './AddressTree'
... |
interface PrintFunction {
extendOptions: Function;
getStyle: Function;
setDomHeight: Function;
toPrint: Function;
}
const Print = function (dom, options?: object): PrintFunction {
options = options || {};
// @ts-expect-error
if (!(this instanceof Print)) return new Print(dom, options);
this.conf = {
... |
<gh_stars>0
import { defaults, omit } from 'lodash';
import path from 'path';
import webpack from 'webpack';
import chalk from 'chalk';
import Listr, { ListrOptions } from 'listr';
import { StatsWriterPlugin } from 'webpack-stats-plugin';
import fs from 'fs-extra';
import fileSize from 'filesize';
import emojis from '.... |
/* istanbul ignore file */
/* eslint-disable */
import {Debug} from '../debug';
const debug = Debug('driver:frame');
enum ZiGateFrameChunkSize {
UInt8 = 1,
UInt16,
UInt32,
UInt64
}
const hasStartByte = (startByte: number, frame: Buffer): boolean => {
return frame.indexOf(startByte, 0) === 0;
};
... |
import { template, types as t } from "@babel/core";
export default function transpileNamespace(path, t, allowNamespaces) {
if (path.node.declare || path.node.id.type === "StringLiteral") {
path.remove();
return;
}
if (!allowNamespaces) {
throw path.hub.file.buildCodeFrameError(
path.node.id,
... |
import * as mongo from 'mongodb';
import { Class, Util } from '@travetto/base';
import { DistanceUnit, ModelQuery, Query, WhereClause } from '@travetto/model-query';
import { ModelType } from '@travetto/model';
import { ModelQueryUtil } from '@travetto/model-query/src/internal/service/query';
import { IndexField } fro... |
import subscriptionPlugin from 'graphql-genie-subscriptions';
import authPlugin from 'graphql-genie-authentication';
import { PubSub } from 'graphql-subscriptions';
import { GraphQLServer } from 'graphql-yoga';
import redisAdapter from 'fortune-redis';
import RedisMock from 'ioredis-mock';
import { FortuneOptions, Grap... |
<filename>durablefunctionsmonitor.react/src/states/results-view/ResultsListTabState.ts
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { observable, computed } from 'mobx'
import { DurableOrchestrationStatus } from '../DurableOrchestrationStatus';
import { IBackendClient } from '../.... |
import { Button, IconButton } from "@material-ui/core";
import Card from "@material-ui/core/Card";
import { makeStyles } from "@material-ui/core/styles";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
import TableRow from "@material-ui/core/TableRow";
import Ty... |
<reponame>buckle2000/ShapeShifter
import {
ChangeDetectionStrategy,
Component,
EventEmitter,
Input,
OnInit,
Output,
} from '@angular/core';
import { ClipPathLayer, GroupLayer, Layer, PathLayer, VectorLayer } from 'app/modules/editor/model/layers';
import { Animation, PathAnimationBlock } from 'app/modules/e... |
import * as React from "react";
import { Info, Zap, ThumbsUp, Lock } from "react-feather";
import { isToolEnabled, slugifyUrl, btoa } from "../utils";
import { HTTP } from "./HTTP";
import { LightHouse } from "./LightHouse";
import { Nuclei } from "./Nuclei";
import { Owasp } from "./Owasp";
import { TestSSL } from ".... |
// this example takes rgba image data frames abd uses jimp to convert to jpeg to finally render in node-gui.
// is not optimal - imagedata is basically not used/not supported - see app2.ts for more optimal approach
import { showModal } from './showModal'
import { VideoCapture, ImageData } from 'camera-capture'
import ... |
"use strict";
import { readFileSync } from "fs";
import { runInNewContext } from "vm";
import { transformSync } from "@babel/core";
import presetEnv from "@babel/preset-env";
import chalk from "chalk";
function flatten<T>(arr: T[][]): T[] {
return Array.prototype.concat.apply([], arr);
}
import parseCodeSnippets, ... |
import React, { useState, useRef, MutableRefObject } from 'react';
import { Button, Popconfirm, Select, Switch } from 'antd';
import { PageContainer } from '@ant-design/pro-layout';
import ProTable, { ProColumnType, ActionType } from '@ant-design/pro-table';
import { getAllInspectionItems } from '@/services/inspection/... |
<gh_stars>0
import { Trip, ITripApiResponse } from './trip';
import { DeliveryOption, IDeliveryOptionApiResponse, IBasketDeliveryApiResponse } from './delivery-option';
import * as _ from 'lodash';
import * as moment from 'moment';
import { EVoucher } from './evoucher';
import { ISmartcardsListItem } from '../services/... |
import {
PDFViewNgCommon,
srcProperty,
defaultpageProperty,
bookmarkPathProperty,
bookmarkLabelProperty,
BookmarkCommon,
ControllerRect
} from "./pdfview-ng.common";
import { knownFolders } from "@nativescript/core";
export class Bookmark extends BookmarkCommon {
private nativeitem: PDFOutline;
pub... |
import prisma, { TransactionState } from '@prisma/client';
import { ErrorRequestHandler } from 'express';
import Mail from 'nodemailer/lib/mailer';
/**
* DISCLAMER: en environnement de développement, la modification de ce fichier ne sera peut-être pas prise en compte par le serveur de dev
* Redémarrer le serveur dans... |
<filename>src/utils/__tests__/tree.test.ts
/*
* TESLER-UI
* Copyright (C) 2018-2020 Tesler Contributors
*
* 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/... |
<filename>src/loaders/obj-loader.ts<gh_stars>1-10
/**
* more into see doc/OBJLoader.md
*/
import { Color3 } from '../math/color';
const re_space = /\s+/;
// obj file pattern
const re_vector = /^v\s/;
const re_normal = /^vn\s/;
const re_face = /^f\s/;
const re_mtllib = /^mtllib\s/;
const re_usemtl = /^usemtl\s/... |
<reponame>fullstack-build/fullstack-one<filename>_v1/packages/schema-builder/lib/index.ts<gh_stars>10-100
// fullstack-one core
import { Service, Inject, Container } from "@fullstack-one/di";
// DI imports
import { LoggerFactory, ILogger } from "@fullstack-one/logger";
import { Config, IEnvironment } from "@fullstack-o... |
<reponame>mass10/electron-app-1<filename>src/Application.ts<gh_stars>0
import electron from "electron";
import { ConfigurationSettings } from "./ConfigurationSettings"
import { Logger } from "./Logger";
import { ApplicationWindow } from "./ApplicationWindow";
import path from "path";
import os from "os";
import {... |
<reponame>Mxime/reviewflow
import Webhooks from '@octokit/webhooks';
import { Application } from 'probot';
import { AppContext } from '../../context/AppContext';
import { contextPr, contextIssue } from '../../context/utils';
import { createPullRequestHandler } from './utils/createPullRequestHandler';
import { autoMerge... |
<filename>core/source/replacement.tsx<gh_stars>10-100
import { Logger } from '.'
import { makeASTTransformer } from './AST'
import { ASTNode } from './AST/types'
import { InternalError, warning } from './error'
import { defaultNode } from './evaluation'
import parse from './parse'
import { Context } from './parsePublic... |
import * as fs from 'fs';
import * as path from 'path';
import { Command } from 'commander';
import { CliCommand, IParseApiResult } from 'ts-api-decorators/dist/command/CliCommand';
import { OutputFileGenerator } from 'ts-api-decorators/dist/generators/OutputFileGenerator';
import { IParseOptions } from 'ts-api-decorat... |
import * as path from 'path';
import { FlogoError } from '@flogo-web/lib-server/core';
import { createFolder as ensureDir, copyFile, fileExists } from '../../common/utils/file';
import { copyBinaryToDestination, removeDir } from './file-utils';
import { processHost } from '../../common/utils/process';
import { ERROR... |
<gh_stars>0
import { AutoScalingGroup, LifecycleHook, LifecycleTransition } from '@aws-cdk/aws-autoscaling';
import { QueueHook } from '@aws-cdk/aws-autoscaling-hooktargets';
import { Cluster, ServiceAccount } from '@aws-cdk/aws-eks';
import { EventPattern, Rule } from '@aws-cdk/aws-events';
import { SqsQueue } from '@... |
<filename>src/components/ui/hooks/use-split-pane.ts
import { useState, useEffect, useRef, useCallback } from "react";
import clamp from "lib/helpers/clamp";
import isEqual from "lodash/isEqual";
type SplitDirection = "horizontal" | "vertical";
const useSplitPane = ({
sizes,
setSizes,
minSizes,
maxTotal,
col... |
<filename>src/app/shared/auth/auth.service.ts
import { Injectable, OnDestroy } from '@angular/core';
import { catchError, switchMap, retry, map } from 'rxjs/operators';
import { BehaviorSubject, of, timer, Subject, EMPTY } from 'rxjs';
import { OAuthService } from './oauth.service';
import { AuthHttpService } from '../... |
import React, { useContext } from "react";
import { Dropdown } from 'semantic-ui-react';
import { AppContext } from "../../../context";
import { FilterType, PageState, State } from '../../../types';
import { sendUnityAnalyticsEvent } from "../../../utils/analyticsUtils";
import { updateFilters } from "../../../uti... |
import { getGenericLimits, MS_PER_HOUR } from "@config/app"
import { generateTokenHelper, getAndCreateUserWallet } from "test/helpers"
import { updateUserAccountStatus, usernameExists } from "@core/user"
let userWallet0, userWallet1, userWallet2
const username = "user0"
describe("UserWallet", () => {
beforeAll(asyn... |
/**
* Type definitions for Human result object
*/
import { Tensor } from './tfjs/types';
/** Face results
* Combined results of face detector, face mesh, age, gender, emotion, embedding, iris models
* Some values may be null if specific model is not enabled
*
* Each result has:
* - id: face id number
* - scor... |
import { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { Action } from 'redux';
import { SubscriptionHandler, UseSubscriptionResponse } from 'urql';
import { SubscriptionArgs } from './list';
import {
dataRead,
netWorthCategoryCreated,
netWorthCategoryDeleted,
netWorthCategoryUpd... |
<gh_stars>0
import { interpolateObject } from "d3-interpolate";
import { select } from "d3-selection";
import { Pie, pie as d3Pie, PieArcDatum } from "d3-shape";
import { defaults, forEach, LodashForEach, map, reduce } from "lodash/fp";
import { colorAssigner } from "../../utils/colorAssigner";
import theme from "../..... |
<reponame>OvisTek/bvx-map
import { Random64 } from "../util/random-64";
import { Util } from "../util/util";
export interface SimplexNoiseGeneratorSettings {
seed: number;
octaves: number;
multiplier: number;
amplitude: number;
lacunarity: number;
persistence: number;
}
/**
* TypeScript imple... |
<gh_stars>0
import { getGameWidth, getGameHeight } from '../helpers';
import { Player } from '../classes/Player';
import { charAnims } from '../data/charAnims';
import { Goal } from '../classes/Goal';
import { Spike } from '../classes/Spike';
import { PlantEnemy } from '../classes/Enemy';
export class Level extends Ph... |
import * as fs from "fs";
import * as path from "path";
import * as cmn from "@akashic/akashic-cli-commons";
import * as tar from "tar";
import { Configuration } from "./Configuration";
export interface InstallParameterObject {
/**
* npm install でインストールするモジュール名。
* 省略された場合、引数なしの `npm install` が実行される。
*/
moduleN... |
<reponame>FlickerSoul/Graphery<gh_stars>1-10
import { RootState, SettingState } from '@/store/states/state';
import { ActionTree, GetterTree, MutationTree } from 'vuex';
const state: SettingState = {
settingVer: '1.0.0',
// color
dark: false,
graphDark: false,
// graph render
hideEdgeWhenRendering: false,... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {
DeviceSpec,
DeviceType as PluginDeviceType,
OS as PluginOS,
} from 'flipper-plugin-lib';
// In the f... |
import { QuackJSConfig, QuackJSEvent, QuackJSObject, QuackJSSlashCommand, QuackJSTrigger } from '../global'
import * as DiscordJS from 'discord.js'
import * as logs from 'discord-logs'
import * as fs from 'fs'
import path from 'path'
import _ from 'lodash'
import { Model, ModelCtor, Options, Sequelize } from 'sequeliz... |
<reponame>gameofbombs/awayjs
var sharedBuffer = new ArrayBuffer(8);
export var i8 = new Int8Array(sharedBuffer);
export var u8 = new Uint8Array(sharedBuffer);
export var i32 = new Int32Array(sharedBuffer);
export var f32 = new Float32Array(sharedBuffer);
export var f64 = new Float64Array(sharedBuffer);
export var nati... |
import * as path from "path";
import * as shelljs from "shelljs";
import * as os from "os";
export class Configuration implements IConfiguration { // User specific config
DEBUG = false;
ANDROID_DEBUG_UI: string = null;
USE_POD_SANDBOX: boolean = false;
UPLOAD_PLAYGROUND_FILES_ENDPOINT: string = null;
SHORTEN_URL_... |
/**
* @module expression
*/
import { Metadata } from '../../decorator/metadata/metadata'
import {
alterCollectionPropertyMetadataForSingleItem,
PropertyMetadata,
} from '../../decorator/metadata/property-metadata.model'
import { toDbOne } from '../../mapper/mapper'
import { AttributeType } from '../../mapper/type... |
<filename>packages/ovee/src/core/Component.ts
// eslint-disable-next-line max-classes-per-file
import { OveeElement, WithDataParam, WithElements, WithReactiveProxy } from 'src/core';
import { Callback, EventDelegate, EventDesc } from 'src/dom/EventDelegate';
import { ReactiveProxy } from 'src/reactive';
import {
attac... |
<gh_stars>0
import {
AudioSourceErrorEvent,
AudioStreamNodeAttachedEvent,
AudioStreamNodeAttachingEvent,
AudioStreamNodeDetachedEvent,
AudioStreamNodeErrorEvent,
ConnectionClosedEvent,
ConnectionEstablishedEvent,
ConnectionEstablishErrorEvent,
ConnectionMessageReceivedEvent,... |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as PrimitiveSet from '../internal/primitive_set';
import {PbKeysetKey, PbKeyStatusType, PbOutputPrefixType} from '../internal/proto';
import * as Bytes from '../subtle/bytes';
import * as Random from '../subtle/random';
i... |
<filename>src/pages/Discussions/common/filters.ts
export interface IFilter {
op: string
value: any
type?: string
next?: IFilter[]
visible: boolean
}
export interface IPropertyFilter {
prop: string
filter: IFilter
}
export const keyOf = (object, value) =>
Object.keys(object).find(key => object[key] === ... |
<gh_stars>0
import * as azure from '@azure/storage-blob'
import { logger } from '../utils'
import { BadPathError, InvalidInputError, DoesNotExist, ConflictError } from '../errors'
import { ListFilesResult, PerformWriteArgs, PerformDeleteArgs } from '../driverModel'
import { DriverStatics, DriverModel, DriverModelTest... |
import { ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';
import {
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
EventEmitter,
Input,
OnDestroy,
OnInit,
Output,
Renderer2,
ViewEncapsulation,
} from '@angular/core';
import... |
<filename>lib/rules_block/reference.ts
'use strict';
import StateBlock from "./state_block";
const normalizeReference = require('../common/utils').normalizeReference;
const isSpace = require('../common/utils').isSpace;
module.exports = function reference(state:StateBlock, startLine:number, _endLine:n... |
import * as datalib from 'datalib';
import {
DatasetColumnExpandedType,
DatasetColumnType,
} from '../entity/DatasetColumn';
import { convert, TimeUnit } from './timeunit';
export function getExpandedType(columnArray: any[], data: any[]) {
// const data = await this.clickHouseService.query(`select * from juno.${... |
<filename>projects/ngrx-clean-forms/src/lib/selectors.ts<gh_stars>1-10
import {
FormArrayControlSummaries,
FormArrayErrors,
FormArrayState,
FormArraySummary,
FormControlErrors,
FormControlState,
FormControlSummary,
FormControls,
FormGroupControlStates,
FormGroupControlSummaries,
... |
import React from "react";
import { FlickrApp, FlickrAppProps } from ".";
import EnzymeAdapter from "enzyme-adapter-react-16";
import Enzyme, { mount } from "enzyme";
import toJson from "enzyme-to-json";
Enzyme.configure({
adapter: new EnzymeAdapter()
});
const handlePaginationClick: jest.Mock = jest.fn();
const ha... |
import type vscode from 'vscode';
import { URI, IDisposable, IRange, CancellationToken } from '@opensumi/ide-core-common';
import { Uri, UriComponents } from './ext-types';
import { FileStat } from '@opensumi/ide-file-service';
import type * as model from './model.api';
import { IWorkspaceEdit, IResourceTextEdit, IReso... |
/* Import external packages */
import cx from "classnames";
import * as React from "react";
/* Import styles and components */
import Tooltip from "../../01-molecules/tooltip";
import Icon from "../icons/index";
import Spinner from "../spinner/index";
import styles from "./index.module.scss";
/* Declare interfaces an... |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import CertificateProvider from '../../utils/CertificateProvider';
import iosUtil, {IdbConfig} from './iOSContaine... |
import { NodeInfoConfig, NodeMetricsConfig, PendingTxConfig, PeerInfoConfig } from './config';
import { EthereumClient } from './eth/client';
import { Output, OutputMessage } from './output';
import { NodePlatformAdapter } from './platforms';
import { ABORT, AbortHandle } from './utils/abort';
import { alwaysResolve, s... |
import '@ngrx/core/add/operator/select';
import 'rxjs/add/operator/switchMap';
import 'rxjs/add/operator/let';
import { Observable } from 'rxjs/Observable';
import { environment } from '../../environments/environment';
/**
* The compose function is one of our most handy tools. In basic terms, you give
* it any number... |
<filename>src/cli/commands/sdi-iot-registries.ts
import { CommanderStatic } from "commander";
import { log } from "console";
import { MindSphereSdk, SemanticDataInterconnectModels } from "../../api/sdk";
import { throwError } from "../../api/utils";
import {
adjustColor,
errorLog,
getColor,
getSdk,
... |
import styled from 'styled-components';
import * as React from 'react';
import {
FacebookShareButton,
TwitterShareButton,
TelegramShareButton,
WhatsappShareButton,
} from 'react-share';
import { t } from 'ttag';
import colors from '../../lib/colors';
import IconButton, { Circle, Caption } from '../IconButton';
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.