text stringlengths 3.3k 33k |
|---|
<gh_stars>1-10
import fs from 'fs';
import { Request, Response } from 'express';
import Router from 'express-promise-router';
import { StatusCodes } from 'http-status-codes';
import parser from 'xml2json';
import moment from 'moment';
import 'moment-timezone';
import Axios from 'axios';
import cron from 'node-cron';
im... |
<filename>app/CustomSearchSources.tsx
import { subclass, property } from 'esri/core/accessorSupport/decorators';
import esriRequest = require('esri/request');
import Graphic = require('esri/Graphic');
import Accessor = require('esri/core/Accessor');
import SpatialReference = require('esri/geometry/SpatialReference');
... |
<reponame>Prior99/hyrest
import { Request, Response, NextFunction, Router } from "express";
import {
Controller,
Route,
getRoutes,
internalServerError,
unprocessableEntity,
consumeLastCall,
QueryParameter,
BodyParameter,
UrlParameter,
getBodyParameters,
getQueryParameters,
... |
import {
ChangeDetectionStrategy,
Component,
ContentChildren,
QueryList,
Output,
EventEmitter,
OnDestroy,
forwardRef,
ViewChild,
TemplateRef,
ChangeDetectorRef,
AfterViewInit,
Input,
Directive,
} from '@angular/core';
import { luTransformPopover } from '@lucca-front/ng/popover';
import { ILuOptionItem, AL... |
import lodash, {isEmpty, isArray, isFunction, isObject } from 'lodash';
import ObjectUtil from './object-util';
import ArrayUtil from './array-util';
import { ObjectType } from './types';
const mapKeys = <T extends object | object[]>(target: T, customizer: object | ((value: any, key: any) => any) ): T => {
if(isArra... |
<reponame>skarlatov/NativeScript
import view = require("ui/core/view");
import trace = require("trace");
import cssSelector = require("ui/styling/css-selector");
import cssParser = require("css");
import application = require("application");
import * as typesModule from "utils/types";
import * as utilsModule from "uti... |
import * as GPIO from 'rpi-gpio';
import { Base } from './base';
// #region Constants
const IS_PI: boolean = require('detect-rpi')();
/**
* Time it takes the door to go from all the way down to all the way up.
* Assuming that the door opens slightly slower than it closes, because gravity.
*/
const DOOR_OPEN_TIME_S... |
<filename>src/redisOrm.ts
import * as fs from "fs";
import IORedis from "ioredis";
import * as path from "path";
import {configLoader} from "./configLoader";
import {RedisOrmDecoratorError} from "./errors/RedisOrmDecoratorError";
import {PerformanceHelper} from "./helpers/PerformanceHelper";
import {ConnectionConfig, I... |
import React from "react";
import { useParams } from "react-router-dom";
import { EditorDidMount } from "react-monaco-editor";
import * as Monaco from "monaco-editor/esm/vs/editor/editor.api";
import useSWR from "swr";
import Fragment from "common/all/types/Fragment";
import ClonePairId from "common/all/types/ClonePai... |
<filename>src/core.ts
import * as u from './util'
import {
Config,
Outgoing,
Incoming,
Transport,
Transform,
ScopeStr
} from './types'
const Muxrpc = require('muxrpc')
const pull = require('pull-stream')
// const Rate = require('pull-rate')
const MultiServer = require('multiserver')
const Inactive = require... |
<filename>__tests__/beacon.spec.ts
import createTestServer from 'create-test-server';
import fs from 'fs';
import path from 'path';
import type { Browser, BrowserContext, BrowserType, Page } from 'playwright';
import playwright from 'playwright';
import type beaconType from '../src/';
import { setRetryHeaderPath } fro... |
import React from 'react';
import Hls from "hls.js";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import "../styles/video.scss";
interface Props {
authorization: string
autoplay: boolean
controls: boolean
muted: boolean
options: any
}
interface State {
playerId: string
quality: string
q... |
import path from "path";
import {Editor} from "mem-fs-editor";
import uuid from 'uuid'
import {convertToUnixPath} from "../../../common/utils";
import jscodeshift, {JSXElement, JSXAttribute, stringLiteral, Collection } from 'jscodeshift'
export interface AddMenuItemConfig {
horizontalMenuComponentName?: string;
ve... |
<reponame>hiep1998vnhn11/laravel-vite-vue3-antdv-less-starter
import type {
RouteLocationNormalized,
RouteLocationRaw,
Router,
} from 'vue-router'
import { toRaw, unref } from 'vue'
import { useGo, useRedo } from '/@/hooks/web/usePage'
import { Persistent } from '/@/utils/cache/persistent'
import { PageEnum } fro... |
/**
* MyBricks Opensource
* https://mybricks.world
* This source code is licensed under the MIT license.
*
* MyBricks team @2019
* mailTo:<EMAIL> wechatID:ALJZJZ
*/
import {PinModel} from './PinModel';
import {dragable, observe, useComputed, useObservable} from '@mybricks/rxui';
import {getPosition} from '@uti... |
<gh_stars>0
/**
* Copyright 2020, Yahoo Holdings Inc.
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms.
*/
import { A as arr } from '@ember/array';
import { assert, warn } from '@ember/debug';
import { action, computed } from '@ember/object';
import { capitalize } from '@embe... |
<reponame>jlewi/metadata
/*
* Copyright 2018 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
*
* Unless required by applica... |
<reponame>dazinator/aurelia-typescript
import {map} from './dsl';
var specials = [
'/', '.', '*', '+', '?', '|',
'(', ')', '[', ']', '{', '}', '\\'
];
var escapeRegex = new RegExp('(\\' + specials.join('|\\') + ')', 'g');
function isArray(test) {
return Object.prototype.toString.call(test) === "[object Array]"... |
import { useState, Fragment, useEffect } from "react";
import * as yup from "yup";
import { yupResolver } from "@hookform/resolvers/yup";
import { Controller, useForm } from "react-hook-form";
import Button from "@mui/material/Button";
import Card from "@mui/material/Card";
import FormControl from "@mui/material/FormC... |
<reponame>sivasakthiv/AdaptiveCards
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as Adaptive from "adaptivecards";
import * as Constants from "./constants";
import { HostContainer } from "./containers/host-container";
import { WebChatContainer } from "./conta... |
<filename>software/nbia-uat/src/app/user/user.component.ts<gh_stars>1-10
import { Component, Output, EventEmitter, ViewChild, OnInit} from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { User } from './user';
import { UserService } from './userservice';
import { Globals } from ... |
import {MapWrapper, ListWrapper} from 'angular2/src/facade/collection';
import {isBlank, isPresent, global, setValueOnPath, DateWrapper} from 'angular2/src/facade/lang';
import {setRootDomAdapter} from 'angular2/src/platform/dom/dom_adapter';
import {GenericBrowserDomAdapter} from './generic_browser_adapter';
var _att... |
<reponame>agrear/comics
import { clamp } from '@popmotion/popcorn';
import { Action, EntityId } from '@reduxjs/toolkit';
import { batchActions } from 'redux-batched-actions';
import {
all,
call,
put,
select,
takeEvery,
takeLatest,
takeLeading
} from 'redux-saga/effects';
import {
bookmarkUpdated,
Com... |
/**
* @file This file contains the functions/classes used to generate a .htaccess
* file from a .csv file.
*/
const csv_parser = require("csv-parse");
const fs = require("fs");
const log = require('electron-log');
import { CSVConf, HTAccessConf } from "./../../culturize.conf";
/**
* This is a function type used ... |
<filename>src/utils/MegolmExportEncryption.ts
/*
Copyright 2017 Vector Creations Ltd
Copyright 2020 The Matrix.org Foundation C.I.C.
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.a... |
import { Action, action, Thunk, thunk, computed, Computed } from 'easy-peasy'
import { nanoid } from 'nanoid'
import { propertysTransClassName } from '../../utils/store-assest'
import { StateVariantsType, ListVariantsType } from '../element'
import { MainIpcChannel, JitTiggerPayload } from '../../interface'
import { Ha... |
// Type definitions for Fuse.js v6.4.6
// TypeScript v3.9.10
export default Fuse
export as namespace Fuse
declare class Fuse<T> {
constructor(
list: ReadonlyArray<T>,
options?: Fuse.IFuseOptions<T>,
index?: Fuse.FuseIndex<T>
)
/**
* Search function for the Fuse instance.
*
* ```typescript
... |
<filename>src/webgpu/shader/execution/sampling/gradients_in_varying_loop.spec.ts
export const description = `
Tests the behavior of gradient operations in a loop with potentially varying execution.
`;
import { makeTestGroup } from '../../../../common/framework/test_group.js';
import { assert } from '../../../../common... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/**
* @packageDocumentation
* @module terminal-extension
*/
import {
ILayoutRestorer,
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import {
ICommandPalette,
IThemeManager,
M... |
import React from 'react';
import styled from 'styled-components';
import { withFormik, FieldArray } from 'formik';
import { FieldAdapter as Field } from '@gqlapp/forms-client-react';
import { required, validate } from '@gqlapp/validation-common-react';
import {
Space,
Form,
Icon,
RenderUploadMultiple,
Rende... |
/** Provides an AST for complex queries. */
import { DateTime, Duration } from 'luxon';
/** The supported query types (corresponding to view types). */
export type QueryType = 'list' | 'table' | 'task';
/** The literal types supported by the query engine. */
export type LiteralType = 'boolean' | 'number' | 'string' |... |
/*
* <<
* Davinci
* ==
* Copyright (C) 2016 - 2017 EDP
* ==
* 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 ... |
<gh_stars>1-10
/********************************************************************************
* Copyright (C) 2019 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/ep... |
import React, { Fragment, useEffect, useState } from "react";
import { Navbar, Nav, Dropdown, NavDropdown } from "react-bootstrap";
import { Avatar } from "@material-ui/core";
import { API, Auth, Storage } from "aws-amplify";
import classNames from "classnames";
import { Tooltip as MaterialToolTip } from "@material-ui/... |
// Copyright IBM Corp. 2018,2020. All Rights Reserved.
// Node module: @loopback/repository
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
import {
Binding,
BindingFromClassOptions,
BindingScope,
createBindingFromClass,
} from '@loopback/core';
... |
#!/usr/bin/env node
import chalk from 'chalk';
import { Command } from 'commander';
import { ensureDir, existsSync } from 'fs-extra';
import * as path from 'path';
import prompts from 'prompts';
import * as Examples from './Examples';
import log from './Logger';
import * as Template from './Template';
import shouldUpd... |
import { Button, Card, CardContent, InputLabel } from "@material-ui/core";
import CheckCircleOutlineIcon from '@material-ui/icons/CheckCircleOutline';
import moment from 'moment';
import React, { useCallback, useReducer, useState } from "react";
import { useDispatch } from "react-redux";
import { statusType, useAbortab... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { Event, Node as DomNode, Range } from '@ephox/dom-globals';
i... |
import { basename } from 'path'
// prog is the name of the program
// export const prog :string = process.argv[1]
export const prog = process.env["_"] || basename(process.argv[1])
// die prints message to stderr and exits with status 1
export function die(message :any, ...msg :any[]) {
if (message instanceof Erro... |
import * as React from "react";
import { useForm, Controller } from "react-hook-form";
import firebase, { db } from "../../firebase";
import { makeStyles } from "@material-ui/core/styles";
import TextField from "@material-ui/core/TextField";
import Grid from "@material-ui/core/Grid";
import Button from "@material-ui/... |
import { backButton } from '../lib/navStyles';
import { navBarHide } from '../styles/Navigation';
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
// @ts-ignore TODO: Add types for tcomb-form-native
import * as t from 'tcomb-form-native';
import { Form } from '@brandingbrand/fscomponents'... |
import {
Panel,
Group,
vlayout,
layoutConfig,
Gravity,
navbar,
gestureContainer,
GestureContainer,
Color,
imageDecoder,
AssetsResource,
} from "doric";
import { dangleView, DangleWebGLRenderingContext, vsync } from "dangle";
import * as THREE from "three";
import { FirstPersonControls } from "./j... |
import React, { useCallback, useEffect, useRef } from 'react'
import useReactRouter from 'use-react-router'
import jsYaml from 'js-yaml'
import ValidatedForm from 'core/components/validatedForm/ValidatedForm'
import PicklistField from 'core/components/validatedForm/PicklistField'
import CodeMirror from 'core/components... |
<filename>packages/koishi-core/src/server.ts
import WebSocket from 'ws'
import * as http from 'http'
import { errors } from './messages'
import { createHmac } from 'crypto'
import { camelCase, snakeCase, capitalize, paramCase, CQCode } from 'koishi-utils'
import { Meta, VersionInfo, ContextType } from './meta'
import {... |
<reponame>movie-travel-code/kibana<gh_stars>1-10
/*
* 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.
*/
/*
* This module contains h... |
<gh_stars>0
const Vec3 = require('vec3').Vec3
export const player = function (player, serv) {
function cancelDig ({ position, block }) {
player.sendBlock(position, block.type)
}
player._client.on('block_dig', async ({ location, status, face }) => {
if (status === 3 || status === 4) {
const heldIte... |
<reponame>zachrobertson/playwright
/**
* 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.org/licenses/LICENSE-2.0
*
* Unles... |
<filename>client/src/app/site/polls/components/base-poll-detail.component.ts
import { ChangeDetectorRef, Directive, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Label } from 'ng2-charts';
import { from, Observable, Subscription } from 'rxjs';
import { filter, map... |
const fs = require('fs/promises');
const keypress = require('keypress');
enum Status {
Gray,
Yellow,
Green
}
type Clue = Status[];
(async () => {
let answers = (await fs.readFile("answers.txt", "utf8")).split("\n"); // possible answers
let guesses = (await fs.readFile("guesses.txt", "utf8")).spli... |
<reponame>RohanTalip/pnpm<gh_stars>0
import {
RecursiveSummary,
throwOnCommandFail,
} from '@pnpm/cli-utils'
import { Config, Project, ProjectsGraph } from '@pnpm/config'
import PnpmError from '@pnpm/error'
import { arrayOfWorkspacePackagesToMap } from '@pnpm/find-workspace-packages'
import logger from '@pnpm/logge... |
<gh_stars>1-10
import {
TSESTree,
AST_NODE_TYPES,
} from '@typescript-eslint/experimental-utils';
import * as ts from 'typescript';
import * as tsutils from 'tsutils';
import * as util from '../util';
export type Options = [
{
allowString?: boolean;
allowNumber?: boolean;
allowNullableObject?: boolea... |
import { createCommentVNode, defineComponent, h, ref, Ref, PropType, inject, nextTick } from 'vue'
import XEUtils from 'xe-utils/ctor'
import { UtilTools, DomTools } from '../../tools'
import { VxeTablePrivateMethods, VxeTableConstructor, VxeTableMethods } from '../../../types/vxe-table'
const renderType = 'footer'
... |
import * as React from 'react';
import {
warnDeprecations,
KeyCodes,
getId,
getNativeProps,
divProperties,
classNamesFunction,
warn,
initializeComponentRef,
} from '../../Utilities';
import { CommandButton } from '../../Button';
import { IPivotProps, IPivotStyleProps, IPivotStyles } from './Pivot.types'... |
import * as core from "@shapeshiftoss/hdwallet-core"
import { Literal, Object as Obj, Static, Union } from "funtypes";
import * as tinyecc from "tiny-secp256k1";
import * as Digest from "../digest";
import { BigEndianInteger, ByteArray, Uint32, checkType, safeBufferFrom, assertType } from "../../types";
import { ECDSA... |
import * as React from "react";
import _ from "lodash";
import set from "lodash/fp/set";
import { createBind } from "./Bind";
import { linkState } from "./linkState";
import { BindComponent } from "./Bind";
import ValidationError from "./ValidationError";
export interface FormRenderPropParamsSubmit {
(event?: Reac... |
/* eslint-env node */
import * as webpack from 'webpack';
import * as path from 'path';
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
import * as MiniCssExtractPlugin from 'mini-css-extract-plugin';
import * as VirtualModulesPlugi... |
/*
* 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 {
EuiFlyout,
EuiFlyoutBody,
EuiFlyoutHeader,
EuiPortal,
EuiT... |
/* tslint:disable */
// Generated by https://quicktype.io
export interface Report {
Locale: Locale;
Status: Status;
Ver: string;
ClientApp: ClientApp;
UIID: Uiid;
BussinessDt: BussinessDt;
MsgId: string;
TimeStamp: TimeStamp;
SecToken: SECToken;... |
<filename>clients/client-dynamodb/src/commands/BatchWriteItemCommand.ts
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 {
FinalizeHand... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file 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.o... |
<reponame>zhangchuangye/mitojs
import {
_global,
on,
getTimestamp,
replaceOld,
throttle,
getLocationHref,
isExistProperty,
variableTypeDetection,
supportsHistory
} from '@mitojs/utils'
import { transportData, options, setTraceId, triggerHandlers, ReplaceHandler, subscribeEvent } from '@mitojs/core'
im... |
import { Inject, Injectable } from "@angular/core";
import { HttpClient, HttpEvent } from "@angular/common/http";
import { Observable } from "rxjs";
import { DOCUMENT } from "@angular/common";
import { CustomClass } from "./config";
export interface UploadResponse {
imageUrl: string;
}
@Injectable()
export class An... |
<reponame>darnautov/elastic-charts
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.... |
<filename>packages/roosterjs-editor-dom/lib/list/VListItem.ts<gh_stars>1-10
import contains from '../utils/contains';
import getListTypeFromNode from './getListTypeFromNode';
import getTagOfNode from '../utils/getTagOfNode';
import isBlockElement from '../utils/isBlockElement';
import safeInstanceOf from '../utils/safe... |
import { ReactElement, useEffect, useMemo, useState } from 'react';
import BigNumber from 'bignumber.js';
import uniqBy from 'lodash/uniqBy';
import TxConfirmModal, { ConfirmTxModalArgs } from 'web3/components/tx-confirm-modal';
import { formatToken, formatUSD } from 'web3/utils';
import Divider from 'components/antd/... |
/**
* @license
* Copyright 2018-2021 Streamlit 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 applicab... |
<gh_stars>1-10
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
CertStatus,
_decode_CertStatus,
_encode_CertStatus,
_enum_for... |
import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import { getDataSourceSrv } from '@grafana/runtime';
import { PanelEvents } from '@grafana/data';
import * as dateMath from 'grafana/app/core/utils/datemath';
import * as utils from '../datasource-zabbix/utils';
import { MetricsPanelCt... |
import { Injectable, Optional, Injector } from '@angular/core';
import { Router, NavigationStart, NavigationEnd, NavigationCancel, NavigationError } from '@angular/router';
import { AppInsights } from 'applicationinsights-js';
import { filter } from 'rxjs/operators';
import IAppInsights = Microsoft.ApplicationInsights... |
/*
* Copyright © 2019 <NAME>, 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 agreed to i... |
import { LanguageCode } from '@vendure/common/lib/generated-types';
import { Translatable, Translation } from '../../../common/types/locale-types';
import { VendureEntity } from '../../../entity/base/base.entity';
import { CollectionTranslation } from '../../../entity/collection/collection-translation.entity';
import ... |
<gh_stars>0
import { IGroupSession, ICrypto, Data, FindUsersResult, NodeBuffer, Ticket } from '../types';
import { PrivateKeyLoader } from '../PrivateKeyLoader';
import { GroupError, GroupErrorCode, UsersNotFoundError, MissingPrivateKeyError } from '../errors';
import { ICard } from '../types';
import { CardManager } f... |
/*
Copyright 2016 OpenMarket Ltd
Copyright 2021 The Matrix.org Foundation C.I.C.
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 a... |
import {
all,
select,
put,
takeEvery,
debounce,
call,
take,
} from "redux-saga/effects";
import {
ReduxAction,
ReduxActionTypes,
ReduxActionErrorTypes,
} from "constants/ReduxActionConstants";
import {
getCurrentApplicationId,
getCurrentPageId,
} from "selectors/editorSelectors";
import { getJSC... |
<reponame>priyank5485/IoTaS
/*
* Copyright 2015-2016 <NAME>, 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 requir... |
import {Component, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {CrudService} from '../../services/crud.service';
import {ActivatedRoute, Router} from '@angular/router';
import {Store, AdapterInformation, AdapterSetting, Source, Adapter} from './adapter.model';
import {ToastService} from '../../components... |
import { all, filter, forEach } from 'ramda';
import {
RcModuleV2,
state,
action,
storage,
computed,
} from '@ringcentral-integration/core';
import { Library } from '../di';
import proxify from '../proxy/proxify';
import {
Deps,
MatchData,
QuerySourceOptions,
SearchProviderOptions,
SearchProvider,
... |
import {
ChoiceSchema,
XmlSerlializationFormat,
ExternalDocumentation,
ApiVersion,
Deprecation,
ChoiceValue,
SetType,
} from "@autorest/codemodel";
import { Session } from "@autorest/extension-base";
import { getPascalIdentifier } from "@azure-tools/codegen";
import * as OpenAPI from "@azure-tools/openapi... |
/**
* @fileOverview daruk 加载约定目录的模块
*/
import assert = require('assert');
import fs = require('fs');
import is = require('is');
import path = require('path');
import { normalize } from 'upath';
import { Daruk } from '../typings/daruk';
import { isJsTsFile, isSubClass, JsTsReg, uRequire } from '../utils';
import Base... |
import { Chart } from './chart';
import { axis as axisStyle } from './styles/axis.style';
import { chart } from './styles/chart.style';
import { axis } from './templates/axis.template';
import { map } from './templates/map.template';
import { value } from './templates/value.template';
let STYLE: CSSStyleSheet | HTMLSt... |
import * as d3 from 'd3';
import { Painter, ColorType, labelColor, defaultDuration } from './Painter';
import * as nt from '../../service/num';
import './HistPainter.css';
export type Hist = nt.Vector;
function checkBins(hists: Hist[]) {
let nBins = hists[0].length;
let equalBins: boolean = true;
for (let i = ... |
/*
* 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... |
/**
* 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.
*/
import {Comments, PathComments, PathToComments} from './types';
import {naturalCompare} from '@romejs/string-utils';
import {isVal... |
<filename>packages/test/end-to-end-tests/src/test/cellEndToEndTests.spec.ts<gh_stars>0
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { strict as assert } from "assert";
import { ISharedCell, SharedCell } from "@fluidframework/cell";
import { IFluidHandle... |
/*
* typeEvaluatorTypes.ts
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* Author: <NAME>
*
* Abstract interface and other helper types for type evaluator module.
*
*/
import { CancellationToken } from 'vscode-languageserver-protocol';
import { DiagnosticLevel } from '../common/conf... |
<reponame>rabix/cwl-ts
import {CommandLineBinding} from "../../mappings/d2sb/CommandLineBinding";
import {CWLVersion} from "../../mappings/v1.0/CWLVersion";
import {Serializable} from "../interfaces/Serializable";
import {ErrorCode, ValidityError} from "./validation/ErrorCode";
import {ensureArray} from "./utils";
exp... |
<gh_stars>0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { SimpleJsonFetcher, JsonFetcher, fetchJson } from "./https.js";
import { JwtHeader, JwtPayload } from "./jwt-model.js";
import { Json, JsonObject, isJsonObject } from "./safe-json-parse.js";... |
<reponame>ihantoh/angular-cli<filename>packages/angular/cli/models/architect-command.ts
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Architect, Target } ... |
import React, { useContext, useEffect, useState } from 'react';
import { Formik as Form, FormikHelpers } from 'formik';
import { Keyboard, SafeAreaView, StyleSheet, Text, View } from 'react-native';
import { showMessage } from 'react-native-flash-message';
import DateTimePickerModal from 'react-native-modal-datetime-pi... |
/**
* @license
* Copyright 2018-2020 Streamlit 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 applicab... |
import { Tree } from "./tree";
import { promises } from "fs";
import envPaths from "env-paths";
import levelup, { LevelUp } from "levelup";
import leveldown from "leveldown";
import sub from "subleveldown";
import encode from "encoding-down";
import * as lexico from "../lexicographic-key-codec";
import { BUFFER_ZERO, D... |
<reponame>rizzzigit/jikan4.js
import { BaseManager } from '../manager/base'
import { ContentRelationType } from '../resource/content/base'
import {
Anime,
AnimeCharacterReference,
AnimeStaffReference,
AnimePartialEpisode,
AnimeEpisode,
AnimeNews,
AnimeTopic,
AnimeVideo,
AnimeStatistics,
AnimeRecomme... |
<reponame>KentoMoriwaki/FluidFramework<filename>tools/build-tools/src/fluidBuild/buildGraph.ts
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { AsyncPriorityQueue } from "async";
import { logStatus, logVerbose } from "../common/logging";
import { Package,... |
import TiandituMapsStyle from './TiandituMapsStyle'
const TiandituMapsStyleUrl = {}
const TiandituMapsStyleLayer = {}
const TiandituMapsStyleID = {}
const TiandituMapsStyleFormat = {}
const TiandituMapsStyleEPSG = {}
const TiandituMapsStyleLabels = {}
class TiandituImageryProvider {
_mapStyle: string
_url: string
... |
import AppliedMigration from './types/AppliedMigration';
import MigrationFile from './types/MigrationFile';
import Operation from './types/Operation';
import {SequenceErrorIgnoreCode} from './methods/validateMigrationsSequence';
export function sortMigrations<
T extends {readonly index: number; readonly applied_at?:... |
<filename>src/core/parser/PDFObjectParser.ts
import {
PDFObjectParsingError,
PDFStreamParsingError,
Position,
UnbalancedParenthesisError,
} from 'src/core/errors';
import PDFArray from 'src/core/objects/PDFArray';
import PDFBool from 'src/core/objects/PDFBool';
import PDFDict, { DictMap } from 'src/core/objects... |
<filename>src/hooks/useSend.ts
import { useEffect } from 'react'
import { useRecoilState, useRecoilValue } from 'recoil'
import bech32 from 'bech32'
import axios from 'axios'
import {
MsgSend,
// Coins,
MsgExecuteContract,
StdFee,
LCDClient,
Coin,
} from '@terra-money/terra.js'
import _ from 'lodash'
import ... |
<reponame>doc22940/Editor
import {
Scene, Node, DirectionalLight, HemisphericLight,
Tools as BabylonTools, IParticleSystem, Vector4,
Vector3, Vector2, Color4, Color3, Tools, GroundMesh,
AbstractMesh, InstancedMesh
} from 'babylonjs';
import Tokenizer, { TokenType } from '../tools/tokenizer';
import { e... |
import { basename } from '../../common/path';
import { IniFile } from '../../parsers/ini/file';
import MdlxModel from '../../parsers/mdlx/model';
import War3MapImp from '../../parsers/w3x/imp/file';
import War3Map from '../../parsers/w3x/map';
import War3MapW3d from '../../parsers/w3x/w3d/file';
import War3MapW3i from ... |
/**
* MIT License
*
* Copyright (c) 2020 ManBang Group
* 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 use, copy, modi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.