text
stringlengths
3.3k
33k
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {Modal} from 'react-bootstrap'; import {FormattedMessage, injectIntl, WrappedComponentProps} from 'react-intl'; import { checkDialogElementForError, checkIfErrorsMatchE...
import 'syncfusion-javascript/Scripts/ej/datavisualization/ej.circulargauge.min'; import { EJComponents, ArrayTagElement, ComplexTagElement } from './core'; import { EventEmitter, IterableDiffers, KeyValueDiffers, Type, ElementRef, ChangeDetectorRef } from '@angular/core'; export declare class CircularGaugePointerDirec...
<gh_stars>0 import { Callable, CallableSetter, callableSetter } from './callable/callable'; import { Definition } from './container'; import { MethodAfter, MethodBefore, MethodIntercept, MethodModifierMiddleware, MethodTeeAfter, MethodTeeBefore, MethodTeeIntercept, } from './callable/method-modifier'; imp...
import * as React from 'react' import {useEffect, useState} from 'react' import {Modal, ModalBody, ModalButton, ModalFooter, ModalHeader, ROLE, SIZE} from 'baseui/modal' import {Field, FieldArray, FieldProps, Form, Formik, FormikProps,} from 'formik' import {Block, BlockProps} from 'baseui/block' import {Button, KIND} ...
<reponame>cuongnc5/IOT_ID import {merge as observableMerge, combineLatest as observableCombineLatest, Observable, Subject, Subscription} from "rxjs"; import {mergeMap, scan, filter, share, startWith, distinctUntilChanged, map, first, publishReplay, refCount} from "rxjs/operators"; import * as THREE from "three"; impo...
<reponame>boost-entropy-golang/buildbuddy import { Octokit } from "octokit"; // Based on https://github.com/gr2m/octokit-plugin-create-pull-request with added functionality of updating PRs. export async function createPullRequest( octokit: Octokit, { owner, repo, title, body, base, head, createWhenEmpty, changes: ...
import { APP_TERMS_CONTENT_ID } from 'front-end/config'; import { getAlertsValid, getContextualActionsValid, getMetadataValid, getModalValid, makePageMetadata, makeStartLoading, makeStopLoading, updateValid, ValidatedState, viewValid } from 'front-end/lib'; import { isUserType } from 'front-end/lib/access-control'; imp...
import { abi } from '@augurproject/artifacts'; import { BigNumber } from 'bignumber.js'; import { Transaction, TransactionReceipt, AbiFunction, AbiParameter } from 'contract-dependencies'; import { EthersProvider } from '@augurproject/ethersjs-provider'; import { ContractDependenciesEthers, EthersSigner, Transact...
<filename>api/api_sources/sources/server/modules/request.access/requestAccess.routes.ts // // Request-access route controller // // Copyright © 2019 Province of British Columbia // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // ...
/** * @author <NAME> <<EMAIL>> */ import React, { useState } from 'react' import { connect } from 'react-redux' import { bindActionCreators, Dispatch } from 'redux' import { createStyles, makeStyles, Theme } from '@material-ui/core/styles' import Table from '@material-ui/core/Table' import TableBody from '@material-u...
import mongoose from "mongoose"; import { SummonerStats, getSummonerStats } from "../processing/stat"; import { rankInfo, divisions } from "../processing/player"; import { Replay } from "./Replay"; const epsilon = 0.0000000001; // only use number based stats const cacheStats: (Array<keyof SummonerStats>) = [ "gam...
<reponame>mwibrow/SWIm import { Component, OnInit, HostListener } from '@angular/core'; import { AudioService, AudioPlayer, AudioRecorder } from '../../providers/audio.service'; import { Router } from '@angular/router'; import { MatDialog, MatDialogRef } from '@angular/material'; import * as fs from 'fs-extra'; const ...
<reponame>jjcapellan/phaser3-analog-counter<filename>src/analog-counter.ts /// <reference path="../node_modules/phaser/types/phaser.d.ts" /> export default class AnalogCounter { scene: Phaser.Scene; /** * X position of counter in pixels */ private x: number; /** * Y position of counter i...
import { computed, defineComponent, reactive, Ref, renderList, toRef, VNode } from 'vue'; import { watchRef } from 'vue-cdk/hook'; import { isObject, List, Method, renderCondition } from 'vue-cdk/utils'; export type RateSection = { [k in number]: { value: string, excluded: boolean } | string } export const Rate = d...
import { Button, Table, Tabs, Tooltip, Popover } from 'antd'; import { BigNumber } from 'bignumber.js'; import React, { useCallback, useEffect, useState } from 'react'; import intl from 'react-intl-universal'; import { observer } from 'mobx-react-lite'; import { useStore } from '@app/stores'; import { trackEvent } from...
<filename>packages/cashscript/src/Transaction.ts import { bigIntToBinUint64LE, hexToBin, binToHex, encodeTransaction, addressContentsToLockingBytecode, AddressType, decodeTransaction, Transaction as LibauthTransaction, instantiateSecp256k1, } from '@bitauth/libauth'; import delay from 'delay'; import ...
<gh_stars>1-10 import { Vector2 } from './vector2.js'; import { Seconds } from './time.js'; import { Character } from './character.js'; import * as net from './net.js'; export class Obstacle { constructor(position: Vector2) { this.position = position; } update(dt: Seconds): void {} // TODO: Figure out how ...
<reponame>cryptooz/mobile-wallet<gh_stars>0 import { Component, NgZone, OnDestroy, OnInit, ViewChild } from "@angular/core"; import { FormControl, FormGroup, Validators } from "@angular/forms"; import { ActivatedRoute } from "@angular/router"; import { IonRouterOutlet, LoadingController, ModalController, } from "@io...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// eslint-disable-next-line max-classes-per-file import { ReferenceType, AttachableRef, IntuitEntity, TelephoneNumber, EmailAddress, WebSiteAddress, ContactInfo, PhysicalAddress, CreditChargeInfo, IntuitAnyType, NameValue, Gender, } from './IntuitBaseTypes'; export class IntuitNamesTypes { pu...
<gh_stars>0 import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core'; import { SafeHtml } from '@angular/platform-browser'; import { ActivatedRoute, Router } from '@angular/router'; import { TranslateService } from '@ngx-translate/core'; import { QuizStatisticUtil } from 'app/exercises/quiz/share...
<filename>public/home/plugins/admin-menu-editor/modules/actor-selector/actor-selector.ts<gh_stars>0 /// <reference path="../../js/jquery.d.ts" /> /// <reference path="../../js/jquery-json.d.ts" /> /// <reference path="../../js/actor-manager.ts" /> declare var wsAmeLodash: _.LoDashStatic; declare var AmeVisibleUserDial...
<gh_stars>0 // Copyright 2018-2021 the oak authors. All rights reserved. MIT license. import type { State } from "./application.ts"; import type { Context } from "./context.ts"; import { base64, isAbsolute, join, normalize, sep, Status } from "./deps.ts"; import { createHttpError } from "./httpError.ts"; import type {...
import { EventEmitter, ProgressLocation, QuickPickItem, Uri, window, workspace, } from "vscode"; import { resolve } from "path"; import { addColorsToDebugLevels, deleteFile, downloadTheme, executeHugo, generateThemeUri, getArchetypes, getHugoThemes, getPlatformName, getUserInput, ParseFn...
import { HealthCheck } from '../../../../yandex/cloud/loadbalancer/v1/health_check'; import _m0 from 'protobufjs/minimal'; export declare const protobufPackage = "yandex.cloud.loadbalancer.v1"; /** * IP version of the addresses that the load balancer works with. * Only IPv4 is currently available. */ export declare ...
import { b2_maxFloat, b2_maxManifoldPoints } from "../Common/b2Settings"; import { b2Vec2, b2Rot, b2Transform } from "../Common/b2Math"; import { b2ContactFeatureType, b2ContactFeature } from "./b2Collision"; import { b2Manifold, b2ManifoldType, b2ManifoldPoint, b2ClipVertex, b2ClipSegmentToLine } from "./b2Collision";...
import { Sim3D, SimulatorConfig, RobotSpecs, RobotBuilder, CameraSpecs, } from "../index"; import { GUI } from "dat.gui"; let gui: GUI; let simulator: Sim3D; const simConfig: SimulatorConfig = { defaultWorld: { xLength: 6, zLength: 6, perimeter: { height: 1, thickness: 0.3 }, camera: { ...
import { BeaconMessageType, BroadcastRequestOutput, NetworkType as BeaconNetworkType, OperationRequestOutput, PermissionRequestOutput, PermissionResponseInput, PermissionScope, SignPayloadRequestOutput } from '@airgap/beacon-sdk' import { Component, OnInit } from '@angular/core' import { Router } from '...
import '@tensorflow/tfjs-backend-webgl'; import '@tensorflow/tfjs-backend-cpu'; import * as tf from '@tensorflow/tfjs-core'; import {CompilationOptions, Model, PowerPreference} from './model'; import {ConstantOperand, InputOperand, Operand, OperandDescriptor, OutputOperand} from './operand'; import {ArrayBufferView} ...
import { effect } from '../reactivity/effect'; import { EMPTY_OBJ } from '../shared'; import { ShapeFlags } from '../shared/ShapeFlags'; import { createComponentInstance, setupComponent } from './component'; import { createAppAPI } from './createApp'; import { shouldUpdateComponent } from './componentUpdateUtils' impo...
import React, { useEffect, useState } from 'react'; import { PageContainer } from '@ant-design/pro-layout'; import { getOneInstallationPackages } from '@/services/package/installation/index'; import { getOneResourcesAssetPackages } from '@/services/package/resources/index'; import ProCard from '@ant-design/pro-card'; i...
<filename>src/plots/sankey/sankey/sankey.ts import { justify } from './align'; import { constant, sumBy, maxValueBy, minValueBy } from './helper'; function ascendingSourceBreadth(a, b) { return ascendingBreadth(a.source, b.source) || a.index - b.index; } function ascendingTargetBreadth(a, b) { return ascendingBre...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for details. import { spawn, execSync } from "child_process"; import { sleep, waitUntil } from "./utilities"; import * as kill from "tree-kill"; import * as cp from "c...
import path = require('path'); import { HtmlSearcher, htmlutil } from './htmlutil'; import { styling } from './styling'; import { DocField, DocFixItem, DocMethod, DocType as DocType } from './type'; import { FileWriter } from '../../writer/filewriter'; const DOCURL_SCRIPTING = 'https://bedrock.dev/docs/stable/Scripti...
<reponame>i-need-sleep/signal import { clamp, flatten } from "lodash" import { action, autorun, computed, makeObservable, observable } from "mobx" import { IRect } from "../../common/geometry" import { filterEventsWithScroll } from "../../common/helpers/filterEventsWithScroll" import { BeatWithX, createBeatsInRange } f...
<reponame>drohen/sludge import { join } from "https://deno.land/std/path/mod.ts" const nginxTemplate = ( port: number, serverName: string, sludgePort: number, cacheAgeSeconds: number, rootFilePath: string ) => `server { listen ${port}; server_name ${serverName}; gzip on; gzip_types text/p...
// import * as cssTree from 'css-tree'; import { compile, Element as CSSElement } from 'stylis'; import { IndentLines, ScopeLines } from './snipets'; import { CSSSelectorNode, parse as parseCSSSelector } from 'parsel-js'; import { isCCSSSelectorComplexNode, isCSSSelectorAttributeNode, isCSSSelectorCompoundNode, seri...
<filename>src/app/pages/user/view-user/view-user.component.ts import { Component, OnInit, OnDestroy } from '@angular/core'; import { ConfirmDialogComponent } from '../../../@theme/components/confirm-dialog/confirm-dialog.component'; import { Router } from '@angular/router'; import { PermissionService } from '../../../@...
import { ObjectID } from "mongodb"; import { createQuery } from "odata-v4-mongodb"; import { ODataController, Edm, odata, ODataQuery } from "odata-v4-server"; import { Backtest } from "../models/Backtest"; import { BacktestRow } from "../models/BacktestRow"; import connect from "../connect"; import moment = require("mo...
<reponame>floreysoft/formsey-components<filename>packages/formsey-fields-native/UploadField.ts import { LabeledField, UploadFieldDefinition } from '@formsey/core'; import { getLibrary, Resources } from '@formsey/core/Registry'; import { FieldChangeEvent } from '@formsey/core/Events'; import { html, TemplateResult } fro...
<filename>src/app/reports/report/report-header/report-header.component.ts import { AdminService } from './../../../admin.service'; import { GrantTagsComponent } from './../../../grant-tags/grant-tags.component'; import { Grant, OrgTag } from './../../../model/dahsboard'; import { Component, OnInit, ViewChild, ElementRe...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import BookmarkManager from 'tinymce/core/api/dom/BookmarkManager'; i...
// -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of ThingTalk // // Copyright 2018-2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance wit...
/** * 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 {Children, TagAttributes, MarkupTagName} from './types'; import {parseMarkup} from './parse'; import { humanizeNumber, ...
// @ts-nocheck import React, { FC } from "react"; import { useEffect, useState, useMemo } from "react"; import Countdown from "react-countdown"; import * as anchor from "@project-serum/anchor"; import { WalletMultiButton } from "@solana/wallet-adapter-react-ui"; import { useAnchorWallet } from "@solana/wallet-adapter...
// Copyright (c) 2021-2022 <NAME> // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. import { $, id, Kind, tupled } from '@fp4ts/core'; import { Functor, ApplicativeError, Either, Kleisli, FunctionK, KleisliF, } from '@fp4ts/cats...
<filename>libs/sdk-ui-dashboard/src/model/state/_infra/undoEnhancer.ts // (C) 2021 GoodData Corporation import produce, { applyPatches, enablePatches, original, Patch, produceWithPatches } from "immer"; import { CaseReducer, Draft, PayloadAction } from "@reduxjs/toolkit"; import { IDashboardCommand } from "../../comman...
import React, { useRef, useEffect } from 'react'; import { Base, RdxStore } from '@alife/rdx'; import { setValue, getValue } from '../../utils'; import { produce } from 'immer'; import { BaseType, IComponents, IModel } from '../Forms/types'; import { FormStore } from './state'; export interface IRdxFormRoot<GSource, GC...
import { crossOriginIos } from './utils' import { nextTick } from 'vue' import { CropInfo, CropperContainer, CropperImg, CropperProps, ExifData, ImgLoadedWithExif, ImgTransform } from './types' import { getCenterTranslate, getScaleByMode } from './use-transform' const useImg = (props: CropperProps, container: CropperC...
import * as datGUI from "dat.gui"; import { AutoEasingMethod, BasicCamera2DController, BasicSurface, Camera2D, ClearFlags, createLayer, createView, EasingUtil, GlyphInstance, GlyphLayer, IEasingControl, IFontResourceOptions, InstanceProvider, LabelInstance, LabelLayer, nextFrame, onAni...
import IDocumentWriter from './documentWriter/IDocumentWriter'; import ExternalDomFacade from './domFacade/ExternalDomFacade'; import IDomFacade from './domFacade/IDomFacade'; import evaluateUpdatingExpression, { UpdatingOptions } from './evaluateUpdatingExpression'; import evaluateUpdatingExpressionSync from './evalua...
import React, { ReactElement, useCallback, useEffect, useMemo, useState, } from "react"; import { ColorResult } from "react-color"; import { makeStyles, Theme } from "@material-ui/core/styles"; import Button from "@material-ui/core/Button"; import FormControl from "@material-ui/core/FormControl"; import FormC...
export enum ConfigFlag { FLAG_SHOW_LOGO = 1, FLAG_FULLSCREEN_MODE = 2, FLAG_WINDOW_RESIZABLE = 4, FLAG_WINDOW_UNDECORATED = 8, FLAG_WINDOW_TRANSPARENT = 16, FLAG_WINDOW_HIDDEN = 128, FLAG_MSAA_4X_HINT = 32, FLAG_VSYNC_HINT = 64, } export enum TraceLogType { LOG_ALL = 0, LOG_TRACE = 1, LOG_DEBUG =...
<reponame>hippolyt/resin-supervisor<filename>src/config.ts import * as Bluebird from 'bluebird'; import { EventEmitter } from 'events'; import { Transaction } from 'knex'; import * as _ from 'lodash'; import { generateUniqueKey } from 'resin-register-device'; import ConfigJsonConfigBackend from './config/configJson'; ...
<filename>src/project.ts import * as os from 'os'; import * as _ from 'lodash'; import * as path from 'path'; import { check, valueForKeyPath, mergeValueAtKeypath, clone, extend, combine, plain as toJSON, safeOLHM, arrayify, OLHM, select } from 'js-object-tools'; import { startsWith } from './string'; import { log } fr...
<filename>packages/node-bridge/helpers.ts import type { VercelRequest, VercelResponse, VercelRequestCookies, VercelRequestQuery, VercelRequestBody, } from './types'; import { Server } from 'http'; import type { Bridge } from './bridge'; function getBodyParser(req: VercelRequest, body: Buffer) { return func...
<gh_stars>1-10 import idx from 'idx' import { Platform } from 'react-native' import { KeeperInfoInterface, LevelData, LevelDataObj, LevelHealthInterface, LevelInfo, Trusted_Contacts } from '../bitcoin/utilities/Interface' import { makeContactRecipientDescription } from '../utils/sending/RecipientFactories' import Conta...
<gh_stars>100-1000 /* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as coreClient from "@azure/core-client"; /** I am root, and ...
/** * The Furth Dimension * @author Cawdabra <<EMAIL>> * @license MIT */ import { Direction, directionToString, BaseMapObject, IInventorySlot, Weapons, IWeapon, ArmorPieces, Consumables, InventoryItemType, truncateFloat } from ".."; import { GameScreen } from "../screens"; // Pixels per second const DEFAULT_WALK_...
<filename>src/components/Assignment/index.ts import { html, customElement, property } from '@lion/core'; import { BridgeBase } from '../../bridge/BridgeBase'; // NOTE: you need to import ANY component you may render. // import the component's styles as HTML with <style> import { assignmentStyles } from './assignment-s...
<gh_stars>0 import { SoftInputComponent } from './../soft-input/soft-input.component'; import { SoftIncreService } from './../../services/soft-incre.service'; import { SoftPositionService } from './../../services/soft-position.service'; import { downToUpAnimation } from './../../animations/down-to-up-animation'; import...
import { app, crashReporter, ipcMain } from 'electron'; import { join } from 'path'; import { Breadcrumb, SentryEvent, SentryResponse, Severity, Status } from '@sentry/types'; import { addBreadcrumb, BaseBackend, captureEvent, captureMessage, configureScope, Dsn, Scope, SentryError, } from '@sentry/co...
import * as _ from "lodash"; import * as clc from "cli-color"; // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires const { marked } = require("marked"); import { Param, ParamOption, ParamType } from "./extensionsApi"; import * as secretManagerApi from "../gcp/secretM...
<reponame>alcacode/js_iter<filename>src/iterator.ts //! iterator.js - ES5 compatible Rust-inspired iterator. /** * Returns `true` if `num` satisfies [`min` <= `num` <= `max`].\\ * Returns `false` if `num` is `NaN` or not of type `number`. * * @param num The `Number` to be tested. * @param min Minimal allowed valu...
<reponame>nixxquality/developer-rig import { Product, DeserializedProduct } from '../core/models/product'; import { ExtensionManifest } from '../core/models/manifest'; import { toCamelCase } from '../util/case'; import { createConfigurationToken } from './token'; class Api { private isLocal: boolean; constructor(...
<gh_stars>0 import {caseDesensitize, CaseDesensitized, RecordKey, Word} from "@sagittal/general" import {Code} from "../../../../bin" import {smarts} from "../globals" import {Clef, Pitch, Position} from "./types" const CLEF_CODE_PITCHES = { [Clef.TREBLE]: { "C7": Pitch.C7, "B6": Pitch.B6, ...
import { AccessRights } from "../auth" import { CollectionFilter, collectReturnExpressions, combineReturnExpressions, FieldSelection, mergeFieldWithSelectionSet, OrderBy, parseSelectionSet, QParams, QRequestParams, QType, ScalarFilter, splitOr, StructFilter, } from "....
import { Injectable } from '@angular/core'; import { ensureDefaultScorings, KeywordOrFulltext, spacyLabels, TopicCloudAdminData } from '../../components/shared/_dialogs/topic-cloud-administration/TopicCloudAdminData'; import { RoomService } from '../http/room.service'; import { Room } from '../../models/room'; ...
<reponame>cxspxr/ej2-javascript-ui-controls<filename>controls/drawings/src/drawing/primitives/matrix.ts<gh_stars>100-1000 import { PointModel } from './point-model'; /** * Matrix module is used to transform points based on offsets, angle */ /** @private */ export enum MatrixTypes { Identity = 0, Translation =...
<gh_stars>0 import { PolygonArea } from './PolygonArea'; import { Actor } from '../Actor'; import { Vector, Ray } from '../Algebra'; import { Color } from '../Drawing/Color'; /** * Interface all collidable objects must implement */ export interface ICollidable { /** * Test whether this bounding box collides...
import EventSource from 'eventsource'; import request from 'request'; import MongoClient, { Timestamp, ObjectID } from 'mongodb'; var url = 'https://stream.wikimedia.org/v2/stream/recentchange'; var wiki = "wikidatawiki" var dbUrl = 'mongodb://localhost:27017'; var dbName = 'openConceptsInfra'; var collectionName = "...
import React, { useState, useEffect, useRef } from 'react'; import styles from './index.module.scss'; import { withRouter, RouteComponentProps } from 'react-router-dom'; import { getDoctorDetail } from '@/api/doctor'; import { getUserInfo, getUserSig, createGroup } from '@/api/common'; import { getPatientRecordDetail }...
<filename>ui/src/utils/utils.ts import { useCallback, useState } from "react"; import { MintInfo } from "@solana/spl-token"; import { PoolInfo, TokenAccount } from "./../models"; import contract_keys from "../contract_keys.json"; import { Account, Commitment, Connection, RpcResponseAndContext, sendAndConfirmRaw...
<reponame>ryanatkn/gro import {join, extname, relative} from 'path'; import * as lexer from 'es-module-lexer'; import type {Assignable} from '@feltcoop/felt'; import { paths, JS_EXTENSION, SVELTE_EXTENSION, toBuildExtension, TS_EXTENSION, TS_TYPE_EXTENSION, isThisProjectGro, } from '../paths.js'; import type {B...
import * as React from 'react'; import { Statement, ExpressionStatement } from '@babel/types'; import generate from '@babel/generator'; import Form from 'jsoninput'; import { css } from 'emotion'; import { parse } from '@babel/parser'; import { WidgetProps } from 'jsoninput/typings/types'; import { IConditionAttribut...
import { lookAt, mat4, perspective, scale, vec3 } from 'munum'; import { Buffer, BufferType, CompareFunc, CullMode, VertexFormat, TexType, UniformFormat, UniformType, PipelineDescriptor, RenderingDevice, ShaderType, Float, UniformLayout, UniformBindings, Pipeline, RenderPass, Texture } from 'mugl'; import { BaseExamp...
<gh_stars>0 import * as http from 'http'; import * as https from 'https'; import * as net from 'net'; import * as tls from 'tls'; import * as path from 'path'; import * as fs from 'fs'; import {URL, parseUrl} from './url'; interface MimeType { [extension: string]: string; } let defaultMimeType: MimeType = { ...
<reponame>CouleeTech/ts-doctest<filename>src/Back-End/Ail.Factory.ts import { OperationObject, PathItemObject, ResponseObject, RequestBodyObject, MediaTypeObject, ParameterObject, ParameterLocation, SchemaObject } from 'openapi3-ts' import { HttpMethodWithRequestBody } from '../Common/Http' import { Co...
<gh_stars>1-10 // Type definitions for inversify 2.0.0-rc.9 // Project: https://github.com/inversify/InversifyJS // Definitions by: inversify <https://github.com/inversify> // Definitions: https://github.com/borisyankov/DefinitelyTyped interface Symbol { toString(): string; valueOf(): Object; } interface Symb...
import React, { Component } from 'react'; import { Container, Header, Label, Message, Item, Tab, Icon } from 'semantic-ui-react'; import { Link } from 'gatsby'; import { isMobile } from 'react-device-detect'; import Layout from '../components/layout'; import ProfileCrew from '../components/profile_crew'; import...
import React, { ReactNode } from 'react'; import { Stack, Box, Text, Link, Code, List, ListItem, PseudoBox, } from '@chakra-ui/core'; import { useAppState } from '../components/AppStateContext'; import Heading from '../components/Heading'; import capsize from 'capsize'; const Question = ({ q, children...
import type mrapi from '@mrapi/types' import { dirname, join, relative } from 'path' import { writeFileSync, mkdirSync, existsSync } from 'fs' import { format, Options as PrettierOptions } from 'prettier' import { modelTmpFn, modelsTmpFn, getCrud } from './templates' import chalk from 'chalk' interface IObjType { t...
import { FACE } from "./define"; import Cubelet from "./cubelet"; import CubeGroup, { GroupTable } from "./group"; import { TouchAction } from "../common/toucher"; import * as THREE from "three"; import World from "./world"; import tweener from "./tweener"; export class Holder { public vector: THREE.Vector3; publi...
import * as Ot from "@ot-builder/ot"; import { Data } from "@ot-builder/prelude"; import { CoordRectifier, GlyphReferenceRectifier, PointAttachmentRectifier, PointAttachmentRectifyManner } from "../interface"; import { RectifyImpl } from "../shared"; enum TraverseProgress { PROCESSING = 1, PRO...
<reponame>marlonicus/oldschoolbot<gh_stars>0 import { randInt } from 'e'; import { CommandStore, KlasaMessage } from 'klasa'; import { Bank, Misc, Openables } from 'oldschooljs'; import Openable from 'oldschooljs/dist/structures/Openable'; import { COINS_ID, Events, MIMIC_MONSTER_ID } from '../../lib/constants'; impor...
<reponame>rkesters/later //////////////////////////////////////////////////////////////////////////////////// // // prettycron.js // Generates human-readable sentences from a schedule string in cron format // // Based on an earlier version by <NAME> // http://dsysadm.blogspot.com.au/2012/09/human-readable-cron-expr...
<reponame>steedos/core import { updateKaitianIconMap, getKaitianIcon } from '@opensumi/ide-components/lib/icon'; import { SymbolKind as SymbolKindEnum } from '@opensumi/monaco-editor-core/esm/vs/editor/common/modes'; import { IDE_ICONFONT_CN_CSS, IDE_OCTICONS_CN_CSS, IDE_CODICONS_CN_CSS } from './ide-iconfont'; expor...
<gh_stars>100-1000 /** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set...
import React, { ReactElement } from "react"; import { PanResponderGestureState, ScrollView } from "react-native"; import { ViewStyle } from "react-native/Libraries/StyleSheet/StyleSheet"; import Container, { ContainerProps, ContainerState, LayoutProps, } from "./Container"; import ItemsContainer from "./ItemsCont...
<filename>src/endpoint.ts import { Request, Response } from "express"; import { Logger } from "winston"; import { z } from "zod"; import { ApiResponse } from "./api-response"; import { CommonConfig } from "./config-type"; import { ResultHandlerError } from "./errors"; import { combineEndpointAndMiddlewareInputSchemas...
import { useContext, useState } from 'react'; import { Link } from 'react-router-dom'; import { Button, IconButton, Table, TableBody, TableCell, TableHead, TableRow, } from '@material-ui/core'; import AccessContext from '../../../../contexts/AccessContext'; import useToast from '../../../../...
/* GENERATED FILE */ import { useContext } from "solid-js"; import { IconContext, IconProps } from "../lib"; const renderPathFor = (weight: string, color: string) => { switch (weight) { case "bold": return ( <> <line x1="72" y1="104" x2="151.99999" y2="183.99999" fill="none" stroke={col...
<reponame>mckramer/angular<gh_stars>10-100 /** * @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 */ /** * A codec for encoding and decoding URL parts. * * @publicApi **/...
import {createApp} from 'vue'; import Chart from 'chart.js/auto'; import {getAllMatches} from './local-storage'; import {MatchEntry, ScoringResult} from './match'; import {getFavoriteTeams} from './favorites'; import {stats} from './stats'; import { BoxPlotChart } from "@sgratzl/chartjs-chart-boxplot"; function render...
<filename>src/index.ts import execa from 'execa'; import fs from 'fs-extra'; import globby from 'globby'; import newRegExp from 'newregexp'; import ora, { Ora } from 'ora'; import os from 'os'; import path from 'path'; import pkgDir from 'pkg-dir'; import pkg from '../package.json'; const packageName = pkg.name; const...
<reponame>simularium/simularium-viewer import { Vector2, Vector3, Vector4 } from "three"; // THIS TEST MODULE IS A REPLICA/PORT OF THE GLSL SHADER CODE IN // simularium/rendering/InstancedFiberShader.ts // AND IS MEANT TO VERIFY SOME EDGE CASES FOR CURVE GENERATION // verify that T,N,B are non zero vecs and all perp ...
<filename>src-vscode-mock/lsp-server.spec.ts /* * Copyright (C) 2017 TypeFox and others. * * 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 */ impo...
import InfoCard from '@components/Admin/InfoCard'; import TabHeader from '@components/Admin/TabHeader'; import UserCard from '@components/Admin/UserCard'; import { Button } from '@components/Button'; import ClipCard from '@components/Clips/ClipCard'; import { H1, H2 } from '@components/Text/headings'; import Link from ...
import { ReturnBody, ReturnBody_Note } from "@aidenlx/obsidian-bridge"; import assertNever from "assert-never"; import equal from "fast-deep-equal/es6"; import { EditorPosition, Loc, MarkdownView, Notice } from "obsidian"; import { FindLine, InsertToCursor } from "../cm-tools"; import t from "../lang/helper"; import {...