text
stringlengths
3.08k
15.5k
<filename>packages/editor-ui/src/components/mixins/restApi.ts import Vue from 'vue'; import { parse } from 'flatted'; import { Method } from 'axios'; import { IActivationError, IExecutionsCurrentSummaryExtended, IExecutionDeleteFilter, IExecutionPushResponse, IExecutionResponse, IExecutionFlattedResponse, IExec...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: // Permission i...
import { stringify } from 'query-string'; import React, { useEffect, useMemo } from 'react'; import useDropdownMenu from 'react-accessible-dropdown-menu-hook'; import { useTranslation } from 'react-i18next'; import { useHistory } from 'react-router-dom'; import styled from 'styled-components'; import { siteRoles } from...
<reponame>StoneEnv/nearby /* Copyright 2019 Esri 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 t...
<reponame>chase-moskal/auth-server<filename>source/main.ts import Koa from "./commonjs/koa.js" import * as pug from "./commonjs/pug.js" import cors from "./commonjs/koa-cors.js" import mount from "./commonjs/koa-mount.js" import serve from "./commonjs/koa-static.js" import {apiServer} from "renraku/dist/api-server.js...
import styled from 'styled-components'; import { useState, memo, useEffect, useRef, useContext, RefObject, FunctionComponent, CSSProperties, } from 'react'; import { FixedSizeGrid, FixedSizeList, areEqual } from 'react-window'; import useScrollVelocity from '../../hooks/useScrollVelocity'; import LL fro...
<reponame>klausapp/auth0-spa-js import { urlDecodeB64 } from './utils'; import { IdToken, JWTVerifyOptions } from './global'; const isNumber = (n: any) => typeof n === 'number'; const idTokendecoded = [ 'iss', 'aud', 'exp', 'nbf', 'iat', 'jti', 'azp', 'nonce', 'auth_time', 'at_hash', 'c_hash', ...
import React, { useState } from "react"; import Text, { TextType } from "components/ads/Text"; import ShowcaseCarousel, { Steps } from "components/ads/ShowcaseCarousel"; import ProfileForm, { PROFILE_FORM } from "./ProfileForm"; import CommentsCarouselModal from "./CommentsCarouselModal"; import ProgressiveImage, { ...
import * as fs from "fs-extra"; import { Command } from "../command"; import * as utils from "../utils"; import { requireAuth } from "../requireAuth"; import { AabInfo, IntegrationState, AppDistributionClient, UploadReleaseResult, } from "../appdistribution/client"; import { FirebaseError } from "../error"; im...
/* * Copyright 2021 Collate * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing,...
import { IRegistro, RegistroIntervalo, RegistroTypeString, } from "../interfaces/IReporte"; import { mode, median, std } from "mathjs"; // const listadoRR = (arrProps: IRegistro[]) => { // const arr = arrProps.slice(); // return arr.map((a) => a.rr); // }; // const calcularModa = (arrProps: IRegistro[]) => ...
// Copyright 2018-2021 Polyaxon, 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 agre...
<reponame>cipchk/ng-alain-vscode import { existsSync, readFileSync } from 'fs'; import * as less from 'less'; import { dirname, join } from 'path'; import { MarkdownString, workspace } from 'vscode'; import * as nls from 'vscode-nls'; import { CONFIG } from './config'; import Notifier from './notifier'; import { NgAlai...
import {StaticReflectorHost, StaticSymbol} from './static_reflector'; import * as ts from 'typescript'; import {MetadataCollector, ModuleMetadata} from 'ts-metadata-collector'; import * as fs from 'fs'; import * as path from 'path'; import {AngularCompilerOptions} from './codegen'; import {ImportGenerator, AssetUrl} fr...
<reponame>GintV/imodeljs /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *---------------------------------------------...
import { nodeResolve } from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import { terser } from 'rollup-plugin-terser'; import babel from 'rollup-plugin-babel'; import multiInput from 'rollup-plugin-multi-input'; import replace from '@rollup/plugin-replace'; import json from '@rollup/p...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { LayoutFacadeService, Sidebar } from 'app/entities/layout/layout.facade'; import { Rule, ServiceActionType } from 'app/pages/notifications/rule'; import { RulesService } from 'app/services/rules/rules.service';...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
<reponame>taisukef/csv-plus<gh_stars>0 import fs from 'fs' import Stream, { Transform } from 'stream' import { EventEmitter } from 'events' import { BrowserWindow, dialog } from 'electron' import csvParse from 'csv-parse' import chardet from 'chardet' import iconv from 'iconv-lite' import * as hasBom from 'has-bom' imp...
<reponame>Nanonid/chevrotain<gh_stars>0 import { forEach, map } from "../utils/utils" import { tokenName } from "../scan/tokens_public" import { RepetitionMandatory, Option, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal, NonTerminal, Alternation, Flat, ...
'use strict'; import { resolveProperties, checkProperties } from './utils/properties'; import { sortObject, checkFormat, arrayOf, checkAddress, checkString, checkNumber, iterate } from './utils/misc'; import { encode as base64Encode } from './utils/base64'; import * as errors from './errors'; // Imported Abstracts i...
// React imports: import React, { useState } from 'react'; // Next imports: import { NextPage } from 'next'; import _ from "lodash"; // Bootstrap imports: import 'bootstrap/dist/css/bootstrap.min.css'; import Container from 'react-bootstrap/Container'; import Row from 'react-bootstrap/Row'; import Col from 'react-bo...
<reponame>mattijn/vega-lite import { Align, BaseLegend, Color, FontStyle, FontWeight, LabelOverlap, Legend as VgLegend, LegendConfig as VgLegendConfig, LegendOrient, Orient, Orientation, SymbolShape, TextBaseline, TitleAnchor } from 'vega'; import {DateTime} from './datetime'; import {Guide,...
// #region Global Imports import React, { useState } from 'react'; import { useSelector } from 'react-redux'; import { NextPage } from 'next'; import { useRouter } from 'next/router'; import Link from 'next/link'; import { Space, Button } from 'antd'; import { StarOutlined, SisternodeOutlined } from '@ant-design/icons'...
<filename>packages/angular_devkit/build_angular/src/browser/index.ts /** * @license * Copyright Google Inc. 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 { BuildEvent, Builder, BuilderConfi...
export declare type _Bottom = { bottom?: number; }; export declare type _End = { end?: number; }; export declare function _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir: CdkFixedSizeVirtualScroll): FixedSizeVirtualScrollStrategy; export declare type _Left = { left?: number; }; export declare type _...
<filename>packages/utils/src/sum-tree.ts /* External Imports */ import BigNum = require('bn.js') /* Internal Imports */ import { keccak256 } from './eth' import { reverse } from './utils' import { NULL_HASH } from './constants' export interface ImplicitBounds { implicitStart: BigNum implicitEnd: BigNum } export ...
import { Component, OnInit, ViewChild } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { RoleService } from '../../../service/system/role.service'; import { MsgService } from '../../../service/msg/msg.service'; import { ShopService, SysMenuService } from '../../../serv...
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych"; const info = <const>{ name: "survey-likert", parameters: { /** Array containing one or more objects with parameters for the question(s) that should be shown on the page. */ questions: { type: ParameterType.COMPLEX, arra...
/* eslint-env node */ import { app, BrowserWindow, ipcMain } from "electron"; import AutoUpdater from "./auto-updater"; import * as _ from "lodash"; import { getLogger, setLoggerWindow, unsetLoggerWindow, convertWindowsPathToUnixPath } from "./utils"; import * as path from "path"; import * as shellConfig from "./shell...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import MagicString from 'magic-string'; import { walk } from 'svelte/compiler'; import { TemplateNode, Text } from 'svelte/types/compiler/interfaces'; import { Attribute, BaseNode, BaseDirective, StyleDirective, ConstTag } from '../interfaces'; import { parseHtmlx } from '../utils/htmlxparser'; import { handleActionDir...
import Graphics3D from "./Graphics3D" import * as GL from "./GL" import GLTF, { MeshPrimitive } from "./GLTF" import { getRelativeUrl } from "../../utility/http" import DataBuffer, { BufferUsage } from "./DataBuffer" import IndexBuffer from "./IndexBuffer" import VertexBuffer from "./VertexBuffer" import Primitive from...
<filename>client/stores/form.store.ts import {observable, action} from 'mobx'; import {AuthStore, DropdownStore, ToastStore} from './'; import { PostsService, ImageService } from '../services'; import { loadPhoto } from '../common/js'; const path = require('path'); type PostObjectType = { title: string, type:...
/** * Panel.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ import DOMUtils from 'tinymce/core/api/dom/DOMUtils'; import Factory from 'tinymce/core/api/ui/Factory'; i...
<filename>progetto-full-stack/frontend/angular/node_modules/ng-uikit-pro-standard/lib/pro/material-select/select.component.d.ts import { OnChanges, OnInit, EventEmitter, ExistingProvider, ElementRef, Renderer2, AfterViewInit, SimpleChanges, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from ...
<filename>modules/common/schematics/migrations/update-9/index.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 { Path, join, normalize } from '@angular-devk...
<reponame>aaitor/celo-monorepo<filename>packages/contractkit/src/utils/signing-utils.ts<gh_stars>0 import debugFactory from 'debug' // @ts-ignore-next-line import { account as Account, bytes as Bytes, hash as Hash, nat as Nat, RLP } from 'eth-lib' // @ts-ignore-next-line import * as helpers from 'web3-core-helpers' imp...
<filename>packages/wx-mini-performance/src/wx/replace.ts import { replaceOld, isEmptyObject } from '@bdw/monitor-utils' import Store from '../core/store' import HandleEvents from './handleEvents' import { WxPerformanceAnyObj } from '../types' import { WxPerformanceItemType, WxListenerTypes } from '../constants' export...
<gh_stars>0 import Logger from "../middleware/logger"; import {LoggerTypes} from "../middleware/LoggerTypes"; import Job from "../components/job"; import Article from "../components/articles"; import chalk from "chalk"; import Grid from "./grid/index"; import Config from "../components/config"; import {ConfigOptions} f...
import * as logos from '../PaymentMethodCard/logos'; import { Data, Templates } from './types'; import { TemplateResult, html } from 'lit-html'; import { ConfigurableMixin } from '../../../mixins/configurable'; import { NucleonElement } from '../NucleonElement/NucleonElement'; import { Rels } from '@foxy.io/sdk/backe...
import fs from 'fs' import path from 'path' import semver from 'semver' import { prompt } from 'enquirer' import { deduplicate, mergeDeep, noop } from './utils' import { CliContext, cliCtx } from './ctx' const cwd = process.cwd() const currentVersion = cliCtx.pkg.version const inc = (i: semver.ReleaseType, identifie...
import { association, faker, trait, Trait } from 'ember-cli-mirage'; import Registration from 'ember-osf-web/models/registration'; import NodeFactory from './node'; import { createRegistrationMetadata, guid, guidAfterCreate } from './utils'; export interface MirageRegistration extends Registration { index: numbe...
<gh_stars>0 import { Alert } from "react-native"; import { isWebBasedPlatform } from "./platform"; import * as R from "ramda"; import { TYPES } from "./const"; import { getDebugScreenDataByPluginType } from "../Components/DebugButtons/debugHelpers"; declare const window: Window; interface Window { alert: any; } expo...
<gh_stars>100-1000 import * as os from 'os'; import {join} from 'path'; import execa from 'execa'; import {cleanup, writeFiles} from '../../../../../../jest/helpers'; import androidSDK from '../androidSDK'; import getEnvironmentInfo from '../../envinfo'; import * as downloadAndUnzip from '../../downloadAndUnzip'; impor...
import React, { useState, useEffect } from 'react'; import { render } from 'react-dom'; import $ from 'jquery'; import { utils } from 'github-url-detection'; import { Stack, Dropdown, IDropdownStyles, IDropdownOption, Spinner } from 'office-ui-fabric-react'; import Graph from '../../components/Graph/Graph'; import { is...
<reponame>goubertbrent/oca-backend import { DateFormat, FileType, FormComponentType, KeyboardType } from './enums'; import { FormSectionValue, MergedFormResponse } from './form-values'; import { FormIntegration } from '../integrations/integrations'; import { FormValidator } from './validators'; // TODO: most of these ...
import nock from 'nock'; import { Logger } from 'winston'; import logger from '../../src/util/logger'; import { build_service, build_response, fixture } from '../helpers'; import { store } from '../../src/util/secrets'; import app from '../../src/app'; const logErrorSpy = jest.spyOn(logger, 'error').mockReturnValue({}...
<reponame>duclequang/gooddata-ui-sdk<gh_stars>1-10 // (C) 2007-2020 GoodData Corporation import { ProjectMetadata, Attribute } from "../base/types"; import { createUniqueName } from "./titles"; import { get, set, cloneDeep, findKey, forOwn, isEmpty } from "lodash"; /* * This transformation takes project metadata and c...
/*--------------------------------------------------------*\ | | | hprose | | | | Official WebSite: https://hprose.com | | ...
<filename>src/document/document.ts /* * Copyright 2020 The Yorkie 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/L...
<reponame>jharrilim/accounts import { Collection, Db, ObjectID, IndexOptions } from 'mongodb'; import { ConnectionInformations, DatabaseInterfaceSessions, Session } from '@accounts/types'; import { toMongoID } from './utils'; export interface MongoSessionsOptions { /** * Mongo database object. */ database: D...
import { Node, Edge, GraphElement } from '@patternfly/react-topology'; import * as GitUrlParse from 'git-url-parse'; import i18next from 'i18next'; import * as _ from 'lodash'; import { getRouteWebURL } from '@console/internal/components/routes'; import { K8sResourceKind, K8sResourceKindReference, modelFor, ref...
<filename>src/SfxWeb/src/app/Utils/Utils.ts<gh_stars>10-100 // ----------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License file under the project root for license information. // --------------...
import * as React from 'react' import * as ReactDOM from 'react-dom' import styled from '../../styled' import Button from '../../atoms/button' import { BaseHeading } from '../../atoms/heading' import ButtonGroup from '../../molecules/button-group' import Tabs from '../../molecules/tabs' import Overlay, { OverlaySize } ...
/* * 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 { isEqual } from 'lodash'; import { useCallback, useEffect, useMemo, u...
<gh_stars>1-10 import * as Assets from "../assets"; import { ClientAPI, getPanoptykDatetime, formatPanoptykDatetime, Room, Agent, Info } from "panoptyk-engine/dist/client"; import Game from "../states/game"; import { LocationIndex } from "./locationIndex"; import { DoorSprite } from "../prefabs/door"; // m...
import { Button, ErrorBoundary, License, SectionHeader, TextField, withStyles, } from '@kudoo/components'; import Grid from '@material-ui/core/Grid'; import idx from 'idx'; // import get from 'lodash/get'; import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; import { co...
import { adv1, availableAmount, buy, cliExecute, equip, equippedItem, gametimeToInt, handlingChoice, inebrietyLimit, Item, mallPrice, myInebriety, print, putShop, repriceShop, retrieveItem, runChoice, setAutoAttack, shopAmount, use, useFamiliar, userConfirm, } from "kolmafia"...
<reponame>rorry121/ng-hertz import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Output, TemplateRef, ViewEncapsulation } from '@angular/core'; import { HzTreeService } from './tree.service'; import { animate, AnimationTriggerMetada...
import React, { FC, useState } from 'react'; import { Button, Checkbox, Col, DatePicker, Form, Input, message, Modal, Row, Select, Tag, Tooltip } from 'antd'; import { nanoid } from 'nanoid'; import { DocumentTypesEnum, IDocument } from '@models/IDocument'; import { DeleteOutlined } from '@ant-design/icons'; import mom...
<gh_stars>0 import util = require('util') import FibPool = require('fib-pool') import { Helpers } from '@fxjs/orm' import * as ORM from '@fxjs/orm' import { ACLTree } from './acl-tree'; import { configUACLOrm, getConfigStorageServiceRouting } from './config-acl-tree'; import { decodeGrantTareget, encodeGrantTareget }...
// deno-lint-ignore-file no-explicit-any import * as DelimitedBlocks from "./delimitedblocks"; import * as Macros from "./macros"; import * as Options from "./options"; import * as Spans from "./spans"; export interface ExpansionOptions { [key: string]: boolean | undefined; // Processing priority (highest to low...
import addon from '../utils/addon'; import { NodeWidget, QWidget } from './QWidget'; import { NativeElement } from '../core/Component'; import { QAbstractScrollArea, QAbstractScrollAreaSignals } from './QAbstractScrollArea'; import { QTreeWidgetItem } from './QTreeWidgetItem'; import { MatchFlag } from '../..'; /** ...
/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ import {_installMsgImplementation} from '../lit-localize.js'; import {generateMsgId} from '../internal/id-generation.js'; import {Deferred} from '../internal/deferred.js'; import {LOCALE_STATUS_EVENT} from '../internal/locale-sta...
import * as fs from "fs-extra"; import * as AdmZip from "adm-zip" import exec, { ExecError } from "./utils/exec"; import { WORKSPACE, TEMP_DIR, BUILDER_CONFIG_NAME, OUTPUT_DIR, AuthGithub } from "./config"; import Queue from "./utils/queue"; export class JobPool { private static pool = new Map<string, Job>(); pub...
import { get } from 'lodash'; import React from 'react'; import { Application } from 'core/application'; import { ArtifactIconService } from 'core/artifact'; import { CloudProviderLogo } from 'core/cloudProvider'; import { IServerGroup } from 'core/domain'; import { EntityNotifications } from 'core/entityTag/notificat...
<gh_stars>1-10 function unique(arr: any[]) { if (!Array.isArray(arr)) { console.log('type error!') return } let array = [] for (let i = 0; i < arr.length; i++) { if (array.indexOf(arr[i]) === -1) { array.push(arr[i]) } } return array } const NetworksDetails = [ // ETH Chain { ...
<reponame>clvs7-gh/Mirakurun /* Copyright 2016 kanreisa 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...
import { useContext, useEffect, useState } from "react"; import { Payment } from "utils/types"; import Carousel from "components/Carousel"; import Layout from "../layout"; import CreditCard from "components/CreditCard"; import PlusIcon from "components/Icons/Plus"; import { AiOutlineEdit, AiOutlineCheck, AiOutlineClose...
import { Scene } from "./Scene"; import { Interval } from "../utils/interval"; import { NumberUtils } from "../utils/NumberUtils"; import { ArrayUtils } from "../utils/ArrayUtils"; import { PhoneActionBar } from "../ui/PhoneActionBar"; import { PhoneHeaderBar } from "../ui/PhoneHeaderBar"; export class SnakesScene ext...
<reponame>vizzuhq/vizzu-beta-release<filename>example/cocoa/vizzu.d.ts type SeriesName = string; interface DataSeries { name: SeriesName; type: 'categories'|'values'; values: string[]|number[]; } interface DataRecord { [key: string]: string|number; getValue: (name: SeriesName) => string|number; } interface Data...
import React, { useEffect, useState } from 'react'; import { Breakdown } from 'modules/modal/common'; import { formatDai, formatGasCostToEther } from 'utils/format-number'; import isAddress from 'modules/auth/helpers/is-address'; import Styles from 'modules/modal/modal.styles.less'; import { createBigNumber } from 'ut...
<gh_stars>10-100 import * as events from 'events' import Debug from 'debug' import { Node } from './Node' import { Container, Member } from './Container' import { Blob } from './Blob' import { BlobTree, Path, urlToPath } from './BlobTree' import { bufferToStream, streamToBuffer, ResourceData, streamToObject, objectToSt...
import type { Plugin, ResolvedConfig } from 'vite' import type { CompressionOptions, VitePluginCompression } from './types.js' import path from 'path' import { normalizePath } from 'vite' import { readAllFile, isRegExp, isFunction } from './utils.js' import fs from 'fs-extra' import chalk from 'chalk' import zlib from ...
import React, { useMemo, useRef, useCallback, memo, useState, forwardRef, useImperativeHandle, } from 'react'; import { Dimensions, Insets, LayoutChangeEvent, I18nManager, } from 'react-native'; import { usePanGestureHandler, useValue } from 'react-native-redash'; import { PanGestureHandler } from...
import { Row } from './row'; import { Environment as env } from './environment'; import { FoldArrow } from './foldArrow'; import { Store } from './store'; /** * Describe an app */ export interface AppData { name: string; icon: string; url: string; } /** * Describe the JSON configuration file */ export...
<reponame>walmartlabs/kubeman<filename>src/plugins/mtlsReport.ts /* Copyright (c) Walmart Inc. This source code is licensed under the Apache 2.0 license found in the LICENSE file in the root directory of this source tree. */ import _ from 'lodash' import {ActionGroupSpec, ActionContextType, ActionOutputStyle, ActionO...
<gh_stars>0 // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*eslint no-console: ["error", { allow: ["warn", "dir", "log"] }] */ 'use strict'; import throat = require('throat'); import { createAndInitializeL...
import MagicString from 'magic-string'; import { RenderOptions } from '../../utils/renderHelpers'; import { removeAnnotations } from '../../utils/treeshakeNode'; import { DeoptimizableEntity } from '../DeoptimizableEntity'; import { BROKEN_FLOW_NONE, HasEffectsContext, InclusionContext } from '../ExecutionContext'; imp...
<gh_stars>100-1000 import type { EventEmitter } from 'events'; import type { TSReadable, TermName, Binding, InternalIndex, Pattern } from '../types'; import { TransformIterator } from 'asynciterator'; import { Quad, Term } from 'rdf-js'; export { flatMap } from './flatmap'; export { pReduce } from './p-reduce'; expo...
<gh_stars>1-10 import * as firebase from '@firebase/testing'; import { firestore } from 'firebase-admin'; import * as Test from 'firebase-functions-test'; import { deleteUserData as deleteUserDataFunc } from '../../../src/https/api/users'; import { Offer, OfferFirestoreConverter, OfferStatus } from '../../../src/model...
import { Component, ViewChild } from "@angular/core" import { NavController, Content, IonicPage } from "ionic-angular" import { TranslateService } from '@ngx-translate/core' import * as Bluebird from "bluebird" import messageService from "../../lib/messages/messageService" import Memoizer from "../../lib/asset/memo...
<gh_stars>1-10 import $ from 'mdui.jq/es/$'; import ajax from 'mdui.jq/es/functions/ajax'; import { JQ } from 'mdui.jq/es/JQ'; import 'mdui.jq/es/methods/find'; import 'mdui.jq/es/methods/html'; import 'mdui.jq/es/methods/insertAfter'; import 'mdui.jq/es/methods/is'; import 'mdui.jq/es/methods/next'; import 'mdui.jq/es...
<filename>test/gopls/extension.test.ts /*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE in the project root for license information. *--------------------------------------------------------*/ import ...
/* * 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 { execFile, spawn } from 'child_process'; import { existsSync } from '...
import React, { useEffect, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import { PerspectiveCamera, Scene, Vector3, WebGLRenderer } from 'three' import { MAX_ALLOWED_TRIANGLES, THUMBNAIL_HEIGHT, THUMBNAIL_WIDTH } from '@xrengine/common/src/constants/AvatarConstants' import { Ass...
import { IDictionary, epoch, fk, pk } from "common-types"; import { IFmHasId, IFmModelMeta, IFmModelPropertyMeta, IFmModelRelationshipMeta, } from "@/types"; import { IReduxAction, IReduxDispatch } from "./state-mgmt"; import { IAbstractedDatabase } from "universal-fire"; import { IFmFunctionToConstructor } fr...
import type { Node, NodePath, PluginObj, Visitor } from '@babel/core'; import type { VisitNode } from '@babel/traverse'; import * as t from '@babel/types'; import { getOrSet } from 'xxscreeps/utility/utility'; function extractPrivateName(node: Node) { if (t.isStringLiteral(node) && node.value.startsWith('#')) { ret...
<gh_stars>1-10 export type CascadeClassifier = ( row: number, col: number, mcol: number, scale: number, pixels: Uint8Array | Uint8ClampedArray ) => number; export function createClassifier(raw: ArrayBuffer): CascadeClassifier { const view = new DataView(raw); // Technically, both are 32-bit signed, but n...
import React, { useRef, useState, memo, useCallback } from "react" import Editor, { loader } from "@monaco-editor/react" import { Link } from "gatsby" import { parseToReact } from "@/components/utils" import nightOwl from "monaco-themes/themes/Night Owl.json" import { EditorStyled } from "./styled" import { Tooltip, To...
<reponame>clickfunnels2/liquidjs<gh_stars>0 import * as _ from './util/underscore' import { Template } from './template/template' import { Cache } from './cache/cache' import { LRU } from './cache/lru' import { FS } from './fs/fs' import * as fs from './fs/node' import { defaultOperators, Operators } from './render/ope...
import { ProxyHandler, APIGatewayEvent, Context, ProxyCallback } from 'aws-lambda'; import { AbstractHandler } from './AbstractHandler'; import * as AWS from 'aws-sdk'; import { Request } from '../Request'; import { InternalServerError } from '../Errors'; import { Response } from '../Response'; import { AmazonResourceN...
<reponame>rodrigopg/vscode-extension-readable-indent import * as vscode from 'vscode'; export class FormatSQL { private code: string = ''; public codeAsSql: string = ''; private args: Args[] = []; private rules: RegExpFindAndReplace[] = []; private firstIndentSize: number = 0; private copySQL: ...
<filename>src/watch/index.ts import path from 'path'; import EventEmitter from 'events'; import createFilter from 'rollup-pluginutils/src/createFilter.js'; import rollup, { InputOptions, OutputOptions, OutputBundle } from '../rollup/index'; import ensureArray from '../utils/ensureArray'; import { mapSequence } from '.....
<filename>packages/core/src/index.ts import { CORSOptions, GraphiQLOptions, handleRequest, } from '@graphql-yoga/handler' import { GraphQLObjectType, GraphQLSchema, GraphQLString, isSchema, } from 'graphql' import { Plugin, GetEnvelopedFn, envelop, useMaskedErrors, UseMaskedErrorsOpts, useExte...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/**======> Referance By Comment <====== * ===> 01 - React Modules * ===> 02 - Grid Container * ===> 03 - Grid Row * ===> 04 - Grid Columns */ /*======> React Modules <======*/ import * as React from "react"; /*=======> Grid Container <=======*/ interface ContainerProps { id?:string, size?: string, cla...
<filename>src/app/services/duplicate/duplicate.service.ts<gh_stars>1-10 /* * Copyright 2021 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/li...
/* * Converted to JS from https://github.com/BabylonJS/Babylon.js/tree/master/Tools/MakeIncremental */ import { join, sep } from "path"; import { readdirSync, readFileSync, writeFileSync } from "fs"; const babylonExtension = ".babylon"; const incrementalPart = ".incremental"; export interface OptionProps { excl...