text stringlengths 3.08k 15.5k |
|---|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>mathmakgakpak/cursors.io-weback-client
// should work
// but also i recognized that this lib is died and m28 doesn't use it anymore
let BASE_URL = "https://api.n.m28.io";
const isSecure = window.location.protocol === "http:";
const protocol = (isSecure ? "wss:" : "ws:");
interface Options {
version?: st... |
import { defineAspects, Aspect, Hint } from './operation.ts';
import { CommandOperation, CommandOperationOptions, CollationOptions } from './command.ts';
import { Callback, maxWireVersion, MongoDBNamespace, collationNotSupported } from '../utils.ts';
import type { Document } from '../bson.ts';
import type { Server } fr... |
<filename>module/tests/module.unit.ts
import { LambdaError } from './../../utils/errors';
import { MODULE_TYPES, IAppSettings, IDeleteRequest, IGetRequest } from '../models';
import chai = require("chai");
import container from "../container";
import { IModel } from "../../module/models";
import { IDynamoDBDocumentClie... |
<filename>packages/core/addon/serializers/table.ts
/**
* Copyright 2021, Yahoo Holdings Inc.
* Licensed under the terms of the MIT license. See accompanying LICENSE.md file for terms.
*/
import VisualizationSerializer from './visualization';
import { parseMetricName, canonicalizeMetric } from 'navi-data/utils/metric... |
import Axios, { AxiosError, AxiosInstance, AxiosPromise, AxiosRequestConfig, AxiosResponse } from 'axios';
import { Stream } from 'stream';
import auth, { Auth } from './Auth';
import { Logger } from './cli';
import Utils from './Utils';
const packageJSON = require('../package.json');
class Request {
private req: Ax... |
<reponame>nitzan-haim/salto<filename>packages/cli/src/callbacks.ts
/*
* Copyright 2020 Salto Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www... |
import type { CID } from 'multiformats/cid'
import type { CidList, PinningBackend, PinningInfo } from '@ceramicnetwork/common'
import { Keyring } from '@polkadot/keyring'
import { ApiPromise, WsProvider } from '@polkadot/api'
import { typesBundleForPolkadot } from '@crustio/type-definitions'
import fetch from 'cross-fe... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
<gh_stars>1-10
import {
Client,
Collection,
EmojiResolvable,
GuildMember,
Message,
MessageEmbed,
MessageReaction,
PartialTextBasedChannelFields,
ReactionCollector,
ReactionCollectorOptions,
User
} from 'discord.js'
import util from 'util'
import { CollectorError, PageNotFoundError } from './error... |
import { Aggregated, Input, Output } from '../types';
import { BigNumber } from 'bignumber.js';
const aggregatedSignaturePrefix = 0xff01;
const empty = Buffer.from([0x00, 0x00]);
export const magic = Buffer.from([0x77, 0x77]);
export const maxEcodingInt = 0xffff;
export const TxVersion = 0x02;
export const OperatorS... |
<gh_stars>1-10
import * as path from 'path';
import * as vscode from 'vscode';
import Browser from './browser'
import BrowserPage from './browserPage';
import TargetTreeProvider from './targetTreeProvider';
import * as EventEmitter from 'eventemitter2';
export function activate(context: vscode.ExtensionContext) {
c... |
<reponame>pypy-vrc/fantastic-system<gh_stars>0
import * as fs from 'fs';
import * as path from 'path';
import * as electron from 'electron';
import * as util from '../util';
import {GameLogType} from '../constants';
import * as mainWindow from './window/main';
interface LogFile {
id: number;
filePath: string;
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/* eslint-disable eqeqeq */
import { MessagingError, translate } from "./errors";
import { delay } from "./util/utils";
import { logger } from "./log";
import { Constants } from "./util/constants";
import { AbortSignalLike } from "@azure/abort-... |
<reponame>donovanhiland/react-native-track-player
import { Platform, AppRegistry, DeviceEventEmitter, NativeEventEmitter, NativeModules } from 'react-native'
// @ts-ignore
import * as resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'
import {
MetadataOptions,
PlayerOptions,
Event,
Track,... |
<filename>lib/parser.ts
import fs from "fs"
import postcss, { Message, ProcessOptions, Root } from "postcss"
import postcssrc from "postcss-load-config"
import postcssValues from "postcss-modules-values"
import postcssLocalByDefault from "postcss-modules-local-by-default"
import postcssExtractImports from "postcss-modu... |
import cx from 'classnames';
import dayjs from 'dayjs';
import {
CommandBar,
ICommandBarItemProps,
IContextualMenuItem,
Stack,
} from 'office-ui-fabric-react';
import React, { useMemo } from 'react';
import Avatar from 'react-avatar';
import { useHistory } from 'react-router-dom';
import { DriveIcon } from '../... |
<filename>x-pack/plugins/code/public/sagas/editor.ts<gh_stars>0
/*
* 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 queryS... |
import tw from 'twin.macro';
import { object, string } from 'yup';
import * as Icon from 'react-feather';
import React, { useState } from 'react';
import useFlash from '@/plugins/useFlash';
import Can from '@/components/elements/Can';
import { httpErrorToHuman } from '@/api/http';
import { ServerContext } from '@/state... |
import chalk from 'chalk';
import semver from 'semver';
import set from 'lodash/set';
import inquirer from 'inquirer';
import unset from 'lodash/unset';
import cloneDeep from 'lodash/cloneDeep';
import { Config, Versions } from '@expo/xdl';
import * as jsondiffpatch from 'jsondiffpatch';
import { Command } from '@expo/... |
<gh_stars>1-10
import namespaceURI from '../../../../../client/component/namespaceURI'
import { segmentLinkId } from '../../../../../client/id'
import parentElement from '../../../../../client/parentElement'
import { NONE } from '../../../../../client/theme'
import { Element } from '../../../../../client/element'
impor... |
<filename>internal/diagnostics/helpers.ts
/**
* 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 {
Diagnostic,
DiagnosticAdvice,
DiagnosticCategoryDescription,
DiagnosticLoca... |
const PORT = 7402
const app = require('express')()
const bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({ extended: true }), bodyParser.json())
// Controllers
import balanceController from './controllers/balance.controller'
import configController from './controllers/config.controller'
import frie... |
<reponame>onesimpledot/riba
import { Component } from "../../component/component";
interface Scope {
// properties
muted: boolean;
volume: number;
loop: boolean;
controls: boolean;
currentTime: number;
/**
* @readonly
*/
paused: boolean;
// methods
toggleMute: VideoComponent["toggleMute"];
... |
import * as fs from 'fs-extra';
import { EOL } from 'os';
import { Stream } from 'stream';
import { RestClientSettings } from '../models/configurationSettings';
import { FormParamEncodingStrategy } from '../models/formParamEncodingStrategy';
import { HttpRequest } from '../models/httpRequest';
import { RequestParser } ... |
<gh_stars>1-10
import { Swatch, Palette } from '../color'
import { Generator } from '../typing'
import { hslToRgb } from '../util'
import defaults = require('lodash/defaults')
interface DefaultGeneratorOptions {
targetDarkLuma: number,
maxDarkLuma: number,
minLightLuma: number,
targetLightLuma: number,... |
import { Trans } from "@lingui/macro";
import { Box, Paper, Typography } from "@material-ui/core";
import { Skeleton } from "@material-ui/lab";
import { useEffect, useRef, useState } from "react";
import { useDispatch } from "react-redux";
import { trim } from "src/helpers";
import { subtractDates } from "src/helpers/t... |
/**
* Copyright (c) 2020-present, <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 a... |
import * as React from 'react'
import { inject,observer } from 'mobx-react'
import { HashRouter as Router, Switch, Route, Link } from 'react-router-dom'
import { EvUI, ActionTag, Dialog } from 'ev-ui'
import { Layout, Menu, Icon } from 'antd'
import styled from 'styled-components'
import { IStore, IUser } from '../mod... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, { Fragment, Component } from 'react';
import { CircleSeries, CircleSeriesProps } from '../../common/CircleSeries';
import { Area, AreaProps } from './Area';
import { MarkLine, MarkLineProps } from '../../common/MarkLine';
import {
ChartInternalDataShape,
ChartInternalNestedDataShape,
ChartInternalSh... |
<reponame>Simplr/components<gh_stars>0
import { html, LitElement, PropertyValues } from 'lit';
import { customElement, property, query, state } from 'lit/decorators.js';
import { repeat } from 'lit/directives/repeat.js';
import { SimplrMenu, SimplrMenuItem } from '@simplr-wc/menu';
// prettier-ignore
import '@simplr-wc... |
<reponame>b-wohs/barista<filename>tools/release/src/stage-release/stage-release.ts
/**
* @license
* Copyright 2020 Dynatrace 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
*
* http:... |
/**
* @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 {NgForOf, NgForOfContext} from '@angular/common';
import {Component, ContentChild, Directive, EventEmitter, I... |
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule, LOCALE_ID } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule, DeepLinkConfig } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/sta... |
<reponame>p0o/xmr-core
import { BigInt } from "@xmr-core/biginteger";
import {
genKeyImageFromTx,
KeyImageCache,
getKeyImageCache,
} from "./memoized-keyimage-generation";
import {
normalizeAddressTransactions,
normalizeTransaction,
isKeyImageEqual,
zeroTransactionAmount,
calculateTransactionAmount,
estimateTr... |
<filename>src/panels/lovelace/create-element/create-element-base.ts
import {
LovelaceCardConfig,
LovelaceBadgeConfig,
} from "../../../data/lovelace";
import {
HuiErrorCard,
createErrorCardElement,
createErrorCardConfig,
} from "../cards/hui-error-card";
import {
LovelaceCard,
LovelaceBadge,
LovelaceHea... |
import SerialPort = require('serialport');
import { Color } from '../../lib/color';
import { LED_DEVICE_NAME } from '../../lib/constants';
import { logTag } from '../../lib/logger';
import { arduinoBoards, ArduinoClient } from './clients';
import {
LedEffect,
LedSpec,
LedSpecStep,
MoveData,
MOVING_STATUS,
} from '... |
import {TSMap} from "typescript-map";
/**
*
*/
export class Utils {
static readonly DEFAULT_SELECTOR_PARAMS = "spycetek-params";
private static pageParams: AssociativeArray<TSMap<string, any>> = {};
/**
* Parse page parameter like <div class="spycetek-params" data-my-param-1=".." data-my-param-2=... |
/*
* Copyright 2021 The Backstage 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 ... |
import { FetchUserAgent } from '#constants/constants';
import { SapphireGemId } from '#constants/emotes';
import { envParseString } from '#env/utils';
import { RedisKeys } from '#lib/redis-cache/RedisCacheClient';
import type { AlgoliaSearchResult, DocsearchHit } from '#types/Algolia';
import { buildHierarchicalName, b... |
<reponame>chiendh/winter-cardinal-ui
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { DChartCoordinate, DChartCoordinateDirection } from "./d-chart-coordinate";
import { DChartCoordinateContainerSub } from "./d-chart-coordinate-container-sub";
import { DChartCoordinateLi... |
<gh_stars>1-10
import { useCallback, useState } from "react";
import osmtogeojson from "osmtogeojson";
import * as OSM from "osm-api";
import * as turf from "@turf/turf";
import type { FeatureCollection, Point, Polygon } from "geojson";
const emptyGeoJSON = {
type: "FeatureCollection",
features: [],
} as FeatureC... |
<filename>test/unittests/front_end/helpers/EnvironmentHelpers.ts
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as Common from '../../../../front_end/common/common.js';
import * as Host from '... |
import React from 'react';
import { List, Skeleton, Avatar } from 'antd';
import { RightOutlined } from '@ant-design/icons';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import { AvatarProps } from 'antd/es/avatar';
import { ListGridType } from 'antd/es/list';
import { ExpandableConfig } from 'antd/es... |
<reponame>grahamc/mjolnir
/*
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 appli... |
<reponame>ahmadhamzh/dashboard
// Kubermatic Enterprise Read-Only License
// Version 1.0 ("KERO-1.0”)
// Copyright © 2020 Kubermatic GmbH
//
// 1. You may only view, read and display for studying purposes the source
// code of the software licensed under this li... |
<filename>typescript/crawler/crawlers/websites/linkedIn/linkedin-utils/connections.ts
import puppeteer from "puppeteer";
import UserAgent from "user-agents";
import dotenv from "dotenv";
import { v4 as uuidv4 } from "uuid";
import Logger from "../../../../logger/logger";
import { startBrowser } from "../../../scrape-ut... |
import { containsClassName } from '../../../utils';
import { closestElement } from '../../../utils/dom';
import { TableCssClassName as ClassName, ElementContentRects } from '../types';
import { tableToolbarSize } from '../ui/consts';
const SELECTOR_TABLE_LEAFS = `.${ClassName.TABLE_CELL}, .${ClassName.TABLE_HEADER_CEL... |
import { API, captureException, withScope } from '@sentry/core';
import { DsnLike, Event as SentryEvent, Mechanism, Scope, WrappedFunction } from '@sentry/types';
import { addExceptionMechanism, addExceptionTypeValue, logger } from '@sentry/utils';
let ignoreOnError: number = 0;
/**
* @hidden
*/
export function sho... |
import sharp from 'sharp'
import {
AttachmentOptions,
ImageBreakpoints,
ImageInfo,
OptimizedOutput,
BreakpointFormat,
FileDimensions,
} from '@ioc:Adonis/Addons/ResponsiveAttachment'
import { cuid } from '@poppinss/utils/build/helpers'
import { merge, pickBy, isEmpty } from 'lodash'
import { DEFAULT_BREAKPO... |
<filename>client/src/app/management/components/committee-list/committee-list.component.ts
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import { TranslateService } from '@ngx-translate/c... |
/**
* @license
* Copyright 2018 Google LLC. 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 a... |
// Copyright 2017-2021 @polkadot/apps, UseTech authors & contributors
// SPDX-License-Identifier: Apache-2.0
import './styles.scss';
import type { NftCollectionInterface } from '@polkadot/react-hooks/useCollection';
import type { HoldType } from '@polkadot/react-hooks/useCollections';
import React, { useCallback, us... |
<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import './app.component.scss';
import { NouiFormatter } from '../src/nouislider';
export class TimeFormatter implements NouiFormatter {
to(value: number): string {
let h = Math.fl... |
<reponame>GantMan/tfjs
/**
* @license
* Copyright 2018 Google Inc. 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
*
... |
<filename>libs/remix-lib/src/execution/txRunnerWeb3.ts
'use strict'
import { EventManager } from '../eventManager'
import Web3 from 'web3'
export class TxRunnerWeb3 {
event
_api
getWeb3: () => Web3
currentblockGasLimit: () => number
constructor (api, getWeb3, currentblockGasLimit) {
this.event = new Eve... |
<filename>services/authorization/credentials/src/auth.ts
import {
ApiStem,
AuthenticationHash,
AuthType,
BotId,
BotSecretsRecord,
BotTokensRecord,
connect,
CredentialCodeMsg,
CredentialRefreshMsg,
isCredentialCodeMsg,
Redis,
RESTOAuth2ImplicitAuthorizationURLFragmentResult,
ServiceConfigurtion... |
import {Position} from "./Position";
import {Fen} from "./Fen";
import {FenPiece, MoveArgs, Piece, BoardContent, PositionContentEvents, Color} from "./types";
import {InvalidFenError} from "./InvalidFenError";
const traverse = {
from: (from: number) => ({
to: (to: number) => ({
searchFor: (pred... |
import { ChunkCell, chunkToIndex, Cell, pixelInChunkOffset, pixelToChunk, TILE_SIZE } from '../chunkHelper';
import { UserDataResponse } from './pixelPlanetResponseTypes';
import colorConverter from '../colorConverter';
import { gameStore, CanvasMetadata } from '../store/gameStore';
import logger from '../handlers/logg... |
<reponame>mm-jsr/jsr
import { useOnMove } from '@/events/useOnMove';
import { avg } from '@/helpers/avg';
import { neighbourGroup } from '@/helpers/neighbourGroup';
import { range } from '@/helpers/range';
import { uniq } from '@/helpers/uniq';
import { StateDto } from '@/models/State';
import { Value } from '@/models/... |
import React from 'react'
import styled from 'styled-components'
import Media from '../../../theme/media'
import { expirationAsDate } from '../../../utils/durations'
import { OwnedKey } from './KeychainTypes'
import QRModal from './QRModal'
import useMetadata from '../../../hooks/useMetadata'
interface KeyBoxProps {
... |
<reponame>BrenekH/beryl
import * as fs from "fs"
import * as path from "path"
import { BrowserWindow, dialog, ipcMain } from "electron"
import { getOSPluginStorageDir } from "./importer"
import { ToPluginsIPC, ToPluginsIPCType, TimerStatus, ProfilePluginDef } from "../../shared/types"
const pluginStorageDir = getOSPlu... |
<reponame>sigmaSd/Args
/*!
An ultra simple CLI arguments parser. Port of `https://github.com/RazrFalcon`
If you think that this library doesn't support some feature, it's probably intentional.
- No help generation.
- Only flags, options, free arguments and subcommands are supported.
- No combined flags (like `-vvv` or ... |
import React, {
CSSProperties,
forwardRef,
ReactElement,
ReactNode,
RefObject,
useCallback,
useEffect,
useImperativeHandle,
useRef,
useState,
} from 'react';
import { CSSTransition } from 'react-transition-group';
import { addRootElement } from '../../util/element';
import useForceUpdate from '../..... |
import { Player } from "mojang-minecraft";
import { MCWLNamespaces } from "../constants/MCWLNamespaces.js";
import { molangQueries } from "../constants/MolangNamespaces.js";
import { BlocksIntDB } from "../stats/BlocksIntDB.js";
import { BlockStatDB } from "../stats/BlockStatDB.js";
import { EntityKilledDB } from "../... |
export declare const WORD_MAX = 65535;
export declare const BYTE_MAX = 255;
export declare const VBLANK_ISR_ADDR = 64;
export declare const LCDC_ISR_ADDR = 72;
export declare const TIMER_ISR_ADDR = 80;
export declare const IO_ISR_ADDR = 88;
export declare const HIGH_LOW_ISR_ADDR = 96;
export declare const INTERRUPT_VEC... |
<reponame>localvoid/pck<filename>benchmarks/browser/src/experiments/string.ts<gh_stars>1-10
import { utf8Decoder, utf8Encoder } from "pck-browser";
function createString(size: number): string {
let s = "";
for (let i = 0; i < size; i++) {
s += i;
}
return s;
}
const STRING_SIZES = [8, 16, 32, 64, 128, 256... |
<reponame>mevouc/imodeljs<filename>core/frontend/src/test/render/webgl/BranchUniforms.test.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and f... |
<reponame>spgl/utopia
import { EditorAction } from '../components/editor/action-types'
import * as EditorActions from '../components/editor/actions/action-creators'
import { EditorModes } from '../components/editor/editor-modes'
import {
DerivedState,
EditorState,
getOpenUIJSFileKey,
withUnderlyingTarget,
} fro... |
import React from 'react';
import { inject, observer } from 'mobx-react';
import { connect } from 'react-redux';
import _ from 'lodash';
import firebase from 'firebase/app';
import 'firebase/auth';
import { Field, InjectedFormProps, reduxForm } from 'redux-form';
import { RouteComponentProps, withRouter } from '... |
<reponame>sillsdev/web-xforge
import { Component, ErrorHandler, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { TranslocoService } from '@ngneat/transloco';
import { DataLoadingComponent } from 'xforge-common/data-loa... |
/*************************************************************
*
* Copyright (c) 2017-2021 The MathJax Consortium
*
* 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://w... |
<gh_stars>0
import { HapiRequest, HapiServer } from "../types";
import {
CacheService,
NotifyService,
PayService,
WebhookService,
} from "server/services";
import { SendNotificationArgs } from "server/services/notifyService";
import { Output, WebhookOutputConfiguration } from "@xgovformbuilder/model";
import ty... |
import React, { useCallback, useState, useMemo } from "react";
import { Formik, Form } from "formik";
import omitDeep from "deepdash-es/omitDeep";
import { gql } from "apollo-boost";
import { useQuery } from "@apollo/react-hooks";
import { TabBar, Tab } from "@rmwc/tabs";
import "@rmwc/tabs/styles";
import { Drawer... |
<filename>src/filter_configfile.ts<gh_stars>1-10
'use strict';
import { FilterLineBase } from './filter_base';
import { padWithBlank } from './util';
import { FilterConfigReader } from './config';
class FilterLineByConfigFile extends FilterLineBase{
private _config?: any;
private _configType: string = '';
... |
import * as core from '@actions/core'
import * as github from '@actions/github'
import { isPresent } from 'ts-is-present'
import { PullRequestsWithLabelsQuery, PullRequestsWithLabels } from './generated/graphql'
import { Octokit, PullRequest, RerunCondition, WorkflowRun } from './types'
import {
PULL_REQUEST_EVENTS... |
<gh_stars>1-10
import { DripTableColumnSchema, DripTableDriver, DripTableExtraOptions, DripTableID, DripTableProps, DripTableRecordTypeBase, DripTableRecordTypeWithSubtable, DripTableSchema } from 'drip-table';
import { CSSProperties } from 'react';
import { DripTableGeneratorState } from './store';
export interface ... |
<filename>bs-moment/locale/locale.class.ts
import { weekOfYear } from '../units/week-calendar-utils';
import { isArray, isFunction } from '../utils/type-checks';
import { getDayOfWeek, getMonth } from '../utils/date-getters';
export interface LocaleOptionsFormat {
format: string[];
standalone: string[];
isFormat... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
import {DebugProtocol} from 'vscode-debugprotocol';
import {utils, logger, chromeUtils, ISetBreakpointsArgs, IDebugTransformer, IStackTraceResponseBody} from 'vscode-chr... |
<gh_stars>1-10
export type Constraint =
| ConstraintString
| ConstraintObject
| ConstraintHighOrder;
export type ConstraintString = string;
export interface ConstraintObject {
keyword: string;
msg?: string;
}
export interface ConstraintHighOrder extends ConstraintObject {
args: any[];
}
export type Validat... |
import React, { Dispatch, SetStateAction } from "react";
import { QueryObserverResult } from "react-query";
import {
useResourceWithRoute,
useRouterContext,
useWarnAboutChange,
useCreate,
useUpdate,
useRedirectionAfterSubmission,
useMutationMode,
useOne,
} from "@hooks";
import {
B... |
<reponame>NaveenKumar12062002/jovo-framework<filename>jovo-platforms/jovo-platform-core/src/CorePlatform.ts
import {
ActionSet,
BaseApp,
ExtensibleConfig,
HandleRequest,
Jovo,
Platform,
RequestBuilder,
ResponseBuilder,
TestSuite,
} from 'jovo-core';
import { PlatformStorage } from 'jovo-db-platformsto... |
<reponame>profencer/appsmith<filename>app/client/src/entities/DataTree/dataTreeWidget.ts
import { getAllPathsFromPropertyConfig } from "entities/Widget/utils";
import _ from "lodash";
import memoize from "micro-memoize";
import { FlattenedWidgetProps } from "reducers/entityReducers/canvasWidgetsReducer";
import { getEn... |
import dayjs from 'dayjs';
import intersection from 'lodash/intersection';
import { TheTask } from './TheTask';
import { DueState } from './types';
import { UnsupportedValueError } from './utils/utils';
// 🛑 Do not import anything from 'vscode' or 'extension' into this file
/**
* Sorting direction
*/
const enum So... |
import {
Checkbox,
Tab,
Tabs,
TextAreaWithConfirmation,
TextInputWithConfirmation,
} from '@alwaystudios/as-ui-components'
import {
CATEGORIES,
Recipe,
RecipeValidationError,
toSlug,
validateRecipe,
} from '@alwaystudios/recipe-bible-sdk'
import { Category, Ingredient, Step } from '@alwaystudios/rec... |
import {Term as T} from "lezer/src/constants"
const enum TermFlag {
// This term is a terminal
Terminal = 1,
// This is the top production
Top = 2,
// This represents end-of-file
Eof = 4,
// This should be preserved, even if it doesn't occur in any rule
Preserve = 8
}
export type Props = {[name: strin... |
<filename>src/commands/_base/Command.ts
import { Client, Message, PermissionString, Snowflake } from 'discord.js';
import CodersBot from '~/CodersBot';
import { ResolvedArguments } from '~/handlers/args';
import PermissionValidator, { ValidatePermission } from '../auth/Permissions';
import RoleValidator, { ValidateRole... |
// Packages Imports
import { useContext } from "react";
import { View, StyleSheet, ScrollView, KeyboardAvoidingView, Keyboard, Image } from "react-native";
import { CommonActions, useIsFocused } from "@react-navigation/native";
import { useDispatch } from "react-redux";
import { useTheme } from "@react-navigation/nativ... |
import { readdirp } from '@ionic/utils-fs';
import * as Debug from 'debug';
import * as os from 'os';
import * as pathlib from 'path';
import { ERR_AVD_HOME_NOT_FOUND, ERR_EMULATOR_HOME_NOT_FOUND, ERR_SDK_NOT_FOUND, ERR_SDK_PACKAGE_NOT_FOUND, SDKException } from '../../../errors';
import { isDir } from '../../../utils... |
declare const self: DedicatedWorkerGlobalScope;
export {};
const CORE_KEY = Uint8Array.of(
0x68,
0x7a,
0x48,
0x52,
0x41,
0x6d,
0x73,
0x6f,
0x35,
0x6b,
0x49,
0x6e,
0x62,
0x61,
0x78,
0x57,
);
const AES_ECB_DECRYPT = async (keyData: Uint8Array, data: Uint8A... |
import {QueryTupleForHolder} from '@/services/data/tuples/tuple-types';
import {FontAwesomeIcon} from '@fortawesome/react-fontawesome';
import React, {RefObject, useEffect, useState} from 'react';
import {BASE_HEIGHT, ICON_LOADING} from '../../basic/constants';
import {useTupleEventBus} from '../tuple-event-bus';
impor... |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import React, { ReactNode } from 'react';
import styled from 'styled-components';
import { math } from 'polished';
import { GatsbyImage, IGatsbyImag... |
<reponame>rtomek/oldschoolbot
import { captureException } from '@sentry/minimal';
import { GuildMember } from 'discord.js';
import { CommandStore, KlasaMessage } from 'klasa';
import { Bank } from 'oldschooljs';
import { Events } from '../../lib/constants';
import { ClientSettings } from '../../lib/settings/types/Clie... |
<gh_stars>10-100
import type { ReadOnlyReference } from "model/ref";
import { DateTime, Time } from "model/time";
export class Reminder {
// To avoid duplicate notification, set this flag true before notification and set false on notification done.
public muteNotification: boolean = false;
constructor(
pub... |
import React, { ChangeEvent, useState } from 'react'
import PageHeader from '../../components/PageHeader'
import { FaUserCircle } from 'react-icons/fa'
import { useAuth } from '../../hooks/auth'
import { toast } from 'react-toastify'
import { useHistory } from 'react-router-dom'
import userCam from '../../assets/image... |
import Constants from 'expo-constants';
import * as SQLite from 'expo-sqlite';
import React, { useState, useCallback, useEffect } from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import EStyleSheet from 'react-native-extended-stylesheet';
import { AppearanceProvider } from 'react-native-app... |
import { useDispatch, useSelector } from "react-redux";
import useTranslation from "next-translate/useTranslation";
import NextLink from "next/link";
import styled from "@emotion/styled";
import { motion } from "framer-motion";
import { useSwipeable } from "react-swipeable";
import enablePageScroll from "../../utils/en... |
import React, { useState, useEffect } from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import { Typography, MobileStepper, Button, Box } from '@material-ui/core';
import { KeyboardArrowLeft, KeyboardArrowRight } from '@material-ui/icons';
import classNames from 'classnames';
imp... |
<gh_stars>1-10
import { isFunction, get, uniq } from '@antv/util';
import { Types } from '@antv/g2';
import { Params } from '../../core/adaptor';
import { polygon as polygonAdaptor } from '../../adaptor/geometries';
import { interaction as baseInteraction, animation, theme, annotation, scale } from '../../adaptor/commo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.