text stringlengths 3.3k 33k |
|---|
/*
* 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.0 (the "License"); you may
* not u... |
<filename>packages/elasticsearch-plugin/src/types.ts
import {
Coordinate,
CurrencyCode,
LanguageCode,
PriceRange,
SearchInput,
SearchResponse,
SearchResult,
} from '@vendure/common/lib/generated-types';
import { ID, JsonCompatible } from '@vendure/common/lib/shared-types';
import { Asset, Se... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import * as widgets from '../../lib';
import * as Backbone from 'backbone';
import * as sinon from 'sinon';
void sinon;
import { JSONObject } from '@lumino/coreutils';
let numComms = 0;
export class MockComm impl... |
import {Random} from "./simjs";
export class Project {
constructor(public startYear: int, public totalAmount: number) {}
}
export class SubBucket {
min = Number.MAX_SAFE_INTEGER;
max = Number.MIN_SAFE_INTEGER;
empty = true;
}
export class Bucket {
min = Number.MAX_SAFE_INTEGER;
max = Number.M... |
'use strict';
import * as fs from 'fs-extra';
import * as path from 'path';
import * as child_process from 'child_process';
import { VSRunner } from "../suite/runner";
import { Unpack } from "./unpack";
import { logging } from "selenium-webdriver";
import { Download } from './download';
export enum ReleaseQuality {
... |
import {debug, warning, info} from '@actions/core'
import {HttpClientResponse, HttpClient} from '@actions/http-client/index'
import {IHttpClientResponse} from '@actions/http-client/interfaces'
import {
ArtifactResponse,
CreateArtifactParameters,
PatchArtifactSize,
UploadResults
} from './internal-contracts'
imp... |
import type { Emoji } from "kudzu/emoji/Emoji";
import { TypedEventBase } from "kudzu/events/EventBase";
import type { IFetcher } from "kudzu/io/IFetcher";
import type { IDisposable } from "kudzu/using";
import { AudioActivityEvent } from "./audio/AudioActivityEvent";
import type { AudioManager } from "./audio/AudioMan... |
/********************************************************************************
* Copyright (C) 2017 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/epl-2.0.
*
* Th... |
import { Component, ViewChild, OnInit } from '@angular/core';
import { SelectionModel } from '@angular/cdk/collections';
import { MatTableDataSource } from '@angular/material/table';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { ResizeEvent } from... |
<reponame>mszhanyi/onnxruntime<filename>js/web/lib/onnxjs/backends/webgl/texture-layout-strategy.ts<gh_stars>100-1000
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import {Logger} from '../../instrument';
import {assert} from '../../util';
/** Layout preferences */
ex... |
<gh_stars>0
/*
var canv = document.createElement('canvas');
var ctx = canv.getContext('2d');
ctx.save();
ctx.fillStyle = '#ff0000';
var img = new Image();
img.src = 'http://10.10.20.19:7777/a.jpg';
var bload = false;
img.onload = function(e) {
bload = true;
}
img.addEventListener('load', function() {
})
setInterval... |
<reponame>kennyrocker/cal
import { Action } from '@ngrx/store';
import { StandarItem } from 'src/app/constants/interfaces/standar-item';
import { PeriodicItem } from 'src/app/constants/interfaces/periodic-item';
import { FixItem } from 'src/app/constants/interfaces/fix-item';
import { CalData } from 'src/app/constants/... |
<gh_stars>10-100
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------... |
<reponame>coder-mike/microvium
import * as VM from './virtual-machine';
import * as IL from './il';
import { mapObject, notImplemented, assertUnreachable, hardAssert, invalidOperation, notUndefined, todo, unexpected, stringifyIdentifier, writeTextFile } from './utils';
import { SnapshotIL } from './snapshot-il';
import... |
/*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
<reponame>wjt19960403/PlayerStateMachine<filename>PlayerStateMachine/src/Main.ts
//////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014-present, Egret Technology.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// ... |
<reponame>BaronaGroup/migsi<gh_stars>1-10
import * as crypto from 'crypto'
import * as fs from 'fs'
import * as path from 'path'
import * as dependencySolver from 'dependency-solver'
import * as _ from 'lodash'
import { config, getDir } from './config'
import { Migration } from './migration'
import { isArchived } fro... |
// Copyright 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
<reponame>tVienonen/node-windows-service-controller
import _ from 'lodash';
export interface ArgsOut {
args: string[];
options: Record<string, any>;
server?: string;
}
export interface BuiltCommand {
path: string;
args: string[];
successCodes: number[];
service?: string;
server?: stri... |
<filename>packages/scripts/src/flux-emulator/lib.ts
import chalk from 'chalk'
import * as ephemeralAdapters from '../ephemeral-adapters/lib'
import * as shell from 'shelljs'
import * as fs from 'fs'
import {
adapterExistsInConfig,
addAdapterToConfig,
ConfigPayload,
convertConfigToK6Payload,
fetchConfigFromUrl... |
import {
Applicative,
Applicative1,
Applicative2,
Applicative2C,
Applicative3C,
ApplicativeComposition,
ApplicativeComposition11,
ApplicativeComposition21,
ApplicativeComposition2C1,
ApplicativeComposition3C1,
getApplicativeComposition
} from './Applicative'
import { Functor, Functor1, Functor2, F... |
import {Component,OnInit} from '@angular/core';
import {
startOfDay,
subDays,
addDays,
isSameDay,
isSameMonth,
addWeeks,
subWeeks,
addMonths,
subMonths,
getMonth,
getYear
} from 'date-fns';
import { Subject } from 'rxjs/Subject';
import {
CalendarEvent,
CalendarEventAction,
CalendarEvent... |
<filename>src/util/mock-providers.ts<gh_stars>1-10
import { ChangeDetectorRef, ComponentRef, ElementRef, NgZone, Renderer, ViewContainerRef } from '@angular/core';
import { Location } from '@angular/common';
import { AnimationOptions } from '../animations/animation';
import { App } from '../components/app/app';
import... |
<reponame>p-mueller/quickjs-emscripten<gh_stars>0
// This file generated by "generate.ts ffi" in the root of the repo.
import { QuickJSEmscriptenModule } from "./emscripten-types"
// ts/ffi-types.ts
/**
* C pointer to export type `CType`. Pointer types are used internally for FFI, but
* are not intended for externa... |
<gh_stars>0
import { isNil, omitBy } from 'lodash';
import { NotImplementedError, NotInitializedError, NotInitializedErrorType } from '../../../common/error/errors';
import { PaymentMethodClientUnavailableError } from '../../errors';
import PaymentStrategyType from '../../payment-strategy-type';
import { ButtonsOptio... |
<reponame>rubensworks/comunica
import type { ILink } from '@comunica/bus-rdf-resolve-hypermedia-links';
import type { ILinkQueue } from '@comunica/bus-rdf-resolve-hypermedia-links-queue';
import type { IQuadSource } from '@comunica/bus-rdf-resolve-quad-pattern';
import type * as RDF from '@rdfjs/types';
import type { A... |
<filename>ts/init-package/src/gen/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ts
/**
* CODE GENERATED BY 'typgen' BINARY.
*
* DO NOT EDIT.
*/
import { KubernetesObject } from 'kpt-functions';
import * as apisMetaV1 from './io.k8s.apimachinery.pkg.apis.meta.v1';
// APIService represents a server for a part... |
import * as vscode from 'vscode'
import * as fs from 'fs'
import * as path from 'path'
import { Extension } from '../main'
import * as utils from '../utils/utils'
export class SectionNodeProvider implements vscode.TreeDataProvider<Section> {
private readonly _onDidChangeTreeData: vscode.EventEmitter<Section | u... |
<reponame>NetworkExplorer/frontend<filename>src/lib/fileops.ts
import { PromptProps } from "@components";
import { BubbleI, ProgressFileI } from "@models";
import Endpoints from "./Endpoints";
import { getCurrentFilesPath } from "./routes";
import { FileI } from "./file";
import { normalizeURL } from "./util";
type PF... |
// eslint-disable-line no-unused-vars
/* eslint-disable no-debugger */
import { init } from './MaterialProperty/WallGradientsMaterialProperty'
// 推动墙扩散
class SpreadWall {
viewer: any
id: string
duration: number
maxRadius: number
pointDraged: any
leftDownFlag: boolean
update_position: any
w... |
import React from 'react';
import {
Animated,
Easing,
Platform,
SafeAreaView,
StyleSheet,
View
} from 'react-native';
import { NavigationScreenProps } from 'react-navigation';
import { Button } from '../controls/Button';
import { Body } from '../text/Body';
import { Code } from '../text/Code';
import { Hea... |
<filename>core/common/src/GeometryParams.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------... |
import { FluidProps, FluidValue } from '@react-spring/shared'
import {
Any,
Constrain,
Lookup,
Falsy,
Merge,
ObjectFromUnion,
ObjectType,
OneOrMore,
Remap,
UnknownProps,
} from '@react-spring/types'
import { Controller } from '../Controller'
import { SpringRef } from '../SpringRef'
import { SpringV... |
<reponame>fmfe/genesis
import crypto from 'crypto';
import Ejs from 'ejs';
import fs from 'fs';
import { IncomingMessage, ServerResponse } from 'http';
import path from 'path';
import serialize from 'serialize-javascript';
import Vue from 'vue';
import {
BundleRenderer,
createBundleRenderer,
createRenderer,... |
import { Inject, Injectable, Optional } from '@angular/core';
import moment from 'moment-timezone';
import {
CalendarOriginal,
CalendarDay,
CalendarMonth,
CalendarModalOptions,
CalendarResult,
DayConfig,
} from '../calendar.model';
import { defaults } from '../config';
import { DEFAULT_CALENDAR_OPTIONS } f... |
import Web3 from 'web3';
import { AbiItem } from 'web3-utils';
import { Contract, ContractOptions } from 'web3-eth-contract';
import RevenuePoolABI from '../../contracts/abi/v0.9.0/revenue-pool';
import ERC20ABI from '../../contracts/abi/erc-20';
import { getAddress } from '../../contracts/addresses';
import {
EventA... |
/**
* @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... |
import React from 'react';
import moment from 'moment';
import { Table, Input, Collapse, TableColumnsType, notification, Radio, } from 'antd';
import { CheckOutlined, CloseOutlined, } from '@ant-design/icons';
import { Form, FormItemProps, Switch, Button } from '@/components/antd';
import { getTags, getBlogs, updateBl... |
import { helpers as commonHelpers } from "../../common";
import { local } from "./local";
const colorRating = (rating: number) => {
const classes = ["table-danger", "table-warning", undefined, "table-success"];
const cutoffs = [30, 45, 60, Infinity];
const ind = cutoffs.findIndex(cutoff => rating < cutoff);
return... |
import fetch from "cross-fetch";
import { krl } from "krl-stdlib";
import * as normalizeUrl from "normalize-url";
import {
ChannelConfig,
cleanChannelTags,
NewPicoRuleset,
RulesetConfig,
} from "pico-framework";
import { PicoEngineCore } from "../PicoEngineCore";
export interface RulesetCtxInfo {
rid: string... |
import React, {useState, useEffect} from 'react'
import {
Alert,
Button,
CheckPicker,
ControlLabel,
Drawer,
Form,
FormControl,
FormGroup,
Modal,
Panel,
Toggle
} from 'rsuite'
import {DescriptionListItem, DescriptionList} from '../atoms/descriptionList'
import {
useCreateUserMutation,
FullUs... |
<filename>dashboard/client/src/api.ts
const base =
process.env.NODE_ENV === "development"
? "http://localhost:8265"
: window.location.origin;
type APIResponse<T> = {
result: boolean;
msg: string;
data?: T;
};
// TODO(mitchellstern): Add JSON schema validation for the responses.
const get = async <T>(pa... |
import { inspect } from "util"
import { interfaces } from "inversify"
import { API, Request, Response } from "lambda-api"
import { LogLevel } from "../model/logging/LogLevel"
import { EndpointInfo } from "../model/reflection/EndpointInfo"
import { AuthResult } from "../model/security/AuthResult"
import { Principal } ... |
<gh_stars>1-10
import { isObject } from 'lodash'
import * as uuid from 'uuid'
import type { Message, MessageType } from 'comlink/dist/esm/protocol'
import { Subscription } from 'rxjs'
/** Comlink enum value of release messages. */
const RELEASE_MESSAGE_TYPE: MessageType.RELEASE = 5
/**
* Returns a `MessagePort` that... |
/*
Copyright (c) 2017-2020 X<NAME> Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to... |
import React, { useMemo, Fragment, useState } from 'react';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import { css, cx } from '@leafygreen-ui/emotion';
import Portal from '@leafygreen-ui/portal';
import {
useViewportSize,
useMutationObserver,
useIsomorphicLayoutEffec... |
<gh_stars>0
// This can depend on the shared backend
import crypto from 'crypto';
import { ethers } from 'ethers';
import {
CBR_Address,
bigNumberify,
} from './CBR';
import util from 'util';
import {
num,
hexlify,
AnyBackendTy,
checkedBigNumberify,
bytesEq,
} from './shared_backend';
import { process } f... |
<reponame>neerajcodes/next.js<filename>packages/next/server/config-shared.ts
import os from 'os'
import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
import { Header, Redirect, Rewrite } from '../lib/load-custom-routes'
import {
ImageConfig,
ImageConfigComplete,
imageConfigDefault,
} from './image-c... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
<filename>src/game.ts
import * as _ from 'lodash'
import * as Bluebird from 'bluebird'
import { RedisClient } from 'redis'
import { RedisObject } from './redis-object'
import { Pile } from './pile'
import { Card } from './card'
import { Player } from './player'
enum State {
idle,
preparing,
preflop,
theFlop,
... |
<gh_stars>1-10
import { Cell, HeaderFn, ItemHeightFn, ItemRenderFn, VirtualNode } from '../../interface';
import { CellType, NodeChange } from './virtual-scroll-interface';
export interface Viewport {
top: number;
bottom: number;
}
export interface Range {
offset: number;
length: number;
}
const MIN_READS =... |
<gh_stars>1-10
import { SearchDefinition } from '../persistence/search-definition';
import { SearchGroupDefinition } from '../persistence/search-group-definition';
import { SearchViewDefinition } from '../persistence/search-view-definition';
import { SearchViewRepository } from "../persistence/search-view-repository.se... |
/**
* @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... |
<reponame>jackyzcq/gerrit
/**
* @license
* Copyright (C) 2017 The Android Open Source Project
*
* 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/LICENS... |
/*
* Copyright 2022 <NAME>
*
* 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 wr... |
import { Component, OnInit, ViewEncapsulation, ViewChild} from '@angular/core';
import {COMMA, ENTER} from '@angular/cdk/keycodes';
import {MatPaginator, MatSort, MatTableDataSource, MatDialog} from '@angular/material';
import {MatChipInputEvent} from '@angular/material/chips';
import { FormBuilder, FormControl, Valida... |
<reponame>ChrisJAllan/ScoreSaberEnhanced
import { ISong } from "../declarations/Types";
import { get_document_user, get_use_new_ss_api } from "../env";
import g from "../global";
import { check } from "../util/err";
import { read_inline_date, round2 } from "../util/format";
import { Limiter, sleep } from "../util/limit... |
<filename>packages/shopify/src/components/product/product.component.ts<gh_stars>0
import { Component, TemplateFunction, ScopeBase } from "@ribajs/core";
import {
ShopifyProductVariant,
ShopifyProduct,
ShopifyProductVariantOption,
ShopifyCartService,
ShopifyProductService,
} from "@ribajs/shopify";
import { ha... |
import React from 'react';
import { DimItem } from '../inventory/item-types';
import { t } from 'app/i18next-t';
import BungieImage from '../dim-ui/BungieImage';
import EnergyMeter from './EnergyMeter';
import ItemSockets from './ItemSockets';
import { ItemPopupExtraInfo } from './item-popup';
import ItemStats from './... |
/**
* @license
* Copyright 2018 gRPC authors.
*
* 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 la... |
<gh_stars>0
import '@fortawesome/fontawesome-free/js/fontawesome';
import '@fortawesome/fontawesome-free/js/regular';
import '@fortawesome/fontawesome-free/js/solid';
import * as slack from './clients/slack';
import _ from 'lodash';
import {
findCurrentEntrySeconds,
findCurrentEntryTime,
findDeleteEntryButtonElem... |
import Phaser from "phaser"
import { KCard } from "../../shared/keyforge/card/KCard"
import { CardInGame } from "../../shared/gamestate/CardInGame"
import ImageKey from "../ImageKey"
import CardImage from "./CardImage"
import SmallCardImage from "../SmallCard/SmallCardImage"
import {
CARD_WIDTH,
CARD_HEIGHT,
... |
/*
Copyright 2017 Vector Creations Ltd
Copyright 2018 New Vector 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 applicable la... |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
<reponame>AssossCare/fhc-api
/**
* Api Documentation
* Api Documentation
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, ... |
<reponame>chadwickmeyer/stratus
/**
* @file IdxOfficeSearch Component @stratusjs/idx/office/search.component
* @example <stratus-idx-office-search>
* @see https://github.com/Sitetheory/stratus/wiki/Idx-Office-Search-Widget
*/
// Runtime
import _ from 'lodash'
import {Stratus} from '@stratusjs/runtime/stratus'
impo... |
// Volume operator managing volume k8s custom resources.
//
// Primary motivation for the resource is to provide information about
// existing volumes. Other actions and their consequences follow:
//
// * destroying the resource implies volume destruction (not advisable)
// * creating the resource implies volume import... |
<filename>tns-core-modules/ui/list-view/list-view.ios.ts
import observable = require("data/observable");
import definition = require("ui/list-view");
import common = require("./list-view-common");
import utils = require("utils/utils");
import view = require("ui/core/view");
import proxy = require("ui/core/proxy");
imp... |
<filename>src/client/common/platform/types.ts<gh_stars>10-100
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import * as fs from 'fs';
import * as fsextra from 'fs-extra';
import { SemVer } from 'semver';
import * as vscode from 'vscode';
import { Architecture, OSType }... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import '../../../assets/charts/amchart/amcharts.js';
import '../../../assets/charts/amchart/gauge.js';
import '../../../assets/charts/amchart/pie.js';
import '../../../assets/charts/amchart/serial.js';
import '../../../assets/... |
/*
* Copyright 2018 The Kubernetes Authors
*
* 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 agr... |
<filename>editor/src/components/canvas/canvas-strategies/shared-absolute-move-strategy-helpers.ts
import { isHorizontalPoint } from 'utopia-api/core'
import { getLayoutProperty } from '../../../core/layout/getLayoutProperty'
import { framePointForPinnedProp, LayoutPinnedProp } from '../../../core/layout/layout-helpers-... |
<gh_stars>10-100
import "./style.css";
type Credit = { name: string; href: string };
type Question = { question: string; credit: Credit }; // Note that Question contains Credit
type Theme = {
name: string;
foreground: string;
background: string;
highlight: string;
font: string;
};
const removeListMarkdown =... |
<gh_stars>0
import { HudComponent } from '../enums';
import { Color, Point, Size } from '../utils';
import { Hud } from './Hud';
import { LoadingPrompt } from './LoadingPrompt';
import { Screen } from './Screen';
import { Sprite } from './Sprite';
/** @internal */
const activeTimerBars: Timerbar[] = [];
/** @internal... |
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { IEvent } from 'common/EventEmitter';
import { IBuffer, IBufferSet } from 'common/buffer/Types';
import { IDecPrivateModes, ICoreMouseEvent, CoreMouseEncoding, ICoreMouseProtocol, CoreMouseEventType, ICharset, IWindowOptio... |
import { encode } from "friendly-pow/base64";
import {
getRunningHTML,
getReadyHTML,
getDoneHTML,
updateProgressBar,
findParentFormElement,
executeOnceOnFocusInEvent,
getErrorHTML,
getFetchingHTML,
injectStyle,
getExpiredHTML,
} from "./dom";
import { isHeadless } from "./headless";
import { DoneMes... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as vscode from 'vscode';
import * as cheerio from 'cheerio';
import { HelpFile, RHelp } from '.';
import { setContext } from '../util';
//// Declaration of interfaces used/implemented by the Help Panel class
// specified when creating a new help panel... |
<reponame>xnuray98s/astro
import type { AstroConfig, BuildConfig, ManifestData } from '../../@types/astro';
import type { LogOptions } from '../logger/core';
import type { AstroTelemetry } from '@astrojs/telemetry';
import fs from 'fs';
import * as colors from 'kleur/colors';
import { apply as applyPolyfill } from '..... |
import type { LDUser as TLDUser } from 'launchdarkly-js-sdk-common';
import type {
TFlagName,
TFlagVariation,
TAdapterStatus,
TUser,
TFlags,
TLaunchDarklyAdapterArgs,
TUpdateFlagsOptions,
TAdapterEventHandlers,
TAdapterStatusChange,
TFlagsChange,
TLaunchDarklyAdapterInterface,
} from '@flopflip/ty... |
import {
Component,
Inject,
Injector,
Input,
Output,
EventEmitter,
NgZone,
ElementRef,
ViewChild,
ViewContainerRef,
ComponentFactoryResolver,
AfterViewInit, OnDestroy, ResolvedReflectiveProvider
} from "@angular/core";
import {LocationStrategy} from "@angular/common";
import {Router, ActivatedRo... |
<reponame>six7/auto-grid
// This plugin will open a modal to prompt the user to enter a number, and
// it will then create that many rectangles on the screen.
// This file holds the main code for the plugins. It has access to the *document*.
// You can access browser APIs in the <script> tag inside "ui.html" which has... |
<reponame>John-Tonny/bitcore-all
'use strict';
// Native
const superagent = require('superagent');
const query = require('querystring');
const url = require('url');
const Errors = require('./errors');
const dfltTrustedKeys = require('../util/JsonPaymentProtocolKeys.js');
const Bitcore = require('crypto-wallet-core').B... |
import { serverIsAvailable, softwarePost } from "../http/HttpClient";
import {
getSoftwareDataStoreFile,
deleteFile,
logEvent,
getPluginEventsFile,
logIt,
getFileDataPayloadsAsJson,
getFileDataArray,
getItem,
getNowTimes,
setItem,
getSoftwareDir,
isWindows,
} from "../Uti... |
<gh_stars>1-10
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
/// <reference path="_ref.d.ts" />
'use strict';
import boot = require('../bootstrap');
boot.noop();
import fs = require('graceful-fs');
import path = require('path');
import util = require('util');
import Promise = require('bluebird');
import bufferEqual = require('buffer-equal');
import log = require('../xm/log'... |
import * as React from "react";
import PopupMenu from "../PopupMenu";
import Actions from "../model/Actions";
import TabSetNode from "../model/TabSetNode";
import TabNode from "../model/TabNode";
import Layout from "./Layout";
import { TabButton } from "./TabButton";
/** @hidden @internal */
export interface IFloatin... |
export { default as AcademicCapIcon } from './AcademicCapIcon'
export { default as AdjustmentsIcon } from './AdjustmentsIcon'
export { default as AnnotationIcon } from './AnnotationIcon'
export { default as ArchiveIcon } from './ArchiveIcon'
export { default as ArrowCircleDownIcon } from './ArrowCircleDownIcon'
export ... |
import type { Ref } from 'vue'
export type StrapiLocale =
| 'af'
| 'af-NA'
| 'af-ZA'
| 'agq'
| 'agq-CM'
| 'ak'
| 'ak-GH'
| 'sq'
| 'sq-AL'
| 'am'
| 'am-ET'
| 'ar'
| 'ar-DZ'
| 'ar-BH'
| 'ar-EG'
| 'ar-IQ'
| 'ar-JO'
| 'ar-KW'
| 'ar-LB'
| 'ar-LY'
| 'ar-MA'
| 'ar-OM'
| 'ar-QA'
... |
import { Component } from '../component';
import { workflows, GithubWorkflow } from '../github';
import { Project } from '../project';
import { Publisher } from '../publisher';
import { Task } from '../tasks';
import { Version } from '../version';
const BUILD_JOBID = 'release';
/**
* Options for `Release`.
*/
expor... |
import bcrypt from "bcrypt";
import dotenv from "dotenv";
import express, { Request, Response, Router } from "express";
import jwt from "jsonwebtoken";
import passport from "passport";
import {
Strategy as GoogleStrategy,
VerifyCallback,
} from "passport-google-oauth20";
import { checkAuthentication } from "../util... |
import * as React from 'react';
import { IStyle, mergeStyles } from '@uifabric/styling';
import { memoizeFunction } from '@uifabric/utilities';
import { assign } from './utilities';
import { IFactoryOptions } from './IComponent';
import {
ISlottableReactType,
ISlot,
ISlots,
ISlotDefinition,
ISlotFactory,
IS... |
// Copyright 2022 <NAME>.
// All rights reserved.
import {
clamp,
createShadow,
createTemplate,
getCurrentTimeSec,
} from './common.js';
const template = createTemplate(`
<audio type="audio/mpeg" preload="auto">
Your browser doesn't support the audio element.
</audio>
`);
const GAIN_CHANGE_SEC = 0.03; // d... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { PromiseDelegate } from '@lumino/coreutils';
import { ServerConnection } from '@jupyterlab/services';
import { clearCache } from './drive';
/**
* Scope for the permissions needed for this extension.
*/
c... |
<reponame>dragonzonee/firebase-js-sdk<gh_stars>0
/**
* @license
* Copyright 2017 Google 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/LICEN... |
import 'intl';
import 'intl/locale-data/jsonp/en';
import {
FlatList,
NativeScrollEvent,
NativeSyntheticEvent,
SafeAreaView,
ScrollView,
StyleSheet,
Text,
TextStyle,
TouchableOpacity,
View,
ViewStyle,
} from 'react-native';
import React, { PropsWithChildren, ReactElement, useRef, useState } from ... |
import { MetamaskConnector } from './connectors/metamask/metamask.connector';
import { Connector } from './connectors/connector';
import { computed, reactive, ref, Ref, toRefs } from 'vue';
import { WalletConnectConnector } from './connectors/trustwallet/walletconnect.connector';
import { getAddress } from '@ethersproj... |
<filename>packages/core/ui/layouts/root-layout/root-layout-common.ts
import { CoreTypes } from '../../../core-types';
import { Trace } from '../../../trace';
import { CSSType, View } from '../../core/view';
import { GridLayout } from '../grid-layout';
import { RootLayout, RootLayoutOptions, ShadeCoverOptions, Transitio... |
<reponame>MaxGraey/xi-electron
import { nDigits } from '../../../utils/misc';
import { elt, removeChildren, on, off } from '../../../utils/dom';
import { StyleSpan, N_RESERVED_STYLES, COLORS } from '../../style-map';
import { View, ViewOptions, Viewport } from '../index';
import ViewController from '../../view-control... |
<filename>code/3-stereo/app.ts<gh_stars>0
/// <reference types="@argonjs/argon" />
/// <reference types="three" />
// grab some handles on APIs we use
const Cesium = Argon.Cesium;
const Cartesian3 = Argon.Cesium.Cartesian3;
const ReferenceFrame = Argon.Cesium.ReferenceFrame;
const JulianDate = Argon.Cesium.JulianDate;... |
<gh_stars>0
import { DOCUMENT } from '@angular/common';
import { Inject, Injectable } from '@angular/core';
import { EventManager } from '@angular/platform-browser';
import { EMPTY, fromEvent, Observable, of, Subject, Subscriber, Subscription } from 'rxjs';
import { debounceTime, filter, finalize, mergeMap, takeUntil, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.