text
stringlengths
3.3k
33k
'use strict'; import * as path from 'path'; import * as vscode from 'vscode'; import { officialExtPath, slugify, TocProvider, mdDocSelector, extractText, isMdEditor } from './util'; const MdEngine = require(path.join(officialExtPath, 'out', 'markdownEngine')).MarkdownEngine; const engine = new MdEngine(); /** * Wo...
<reponame>hunny98/polar import debug from "debug"; import type { EnvironmentExtender, Network, ParamDefinitionAny, PolarRuntimeEnvironment, ResolvedConfig, RunSuperFunction, RunTaskFunction, RuntimeArgs, TaskArguments, TaskDefinition, TasksMap } from "../../types"; import { PolarError } from "../...
import { generatePrompt } from "@uncoder/common"; import browser from "webextension-polyfill"; import "./index.scss"; // get current operating system const isMac = navigator.platform.toUpperCase().indexOf("MAC") >= 0; /** * Overlay a div with the text directly above the range * The bottom edge should be at the top ...
import { getCV } from '@/utils/cv' import { Mat } from '@/utils/opencv' export async function cvGetRect(src: Mat): Promise<{ x: number; y: number; width: number; height: number }> { const cv = await getCV() const dst = new cv.Mat() cv.cvtColor(src, dst, cv.COLOR_RGBA2GRAY, 0) cv.threshold(dst, dst, 200...
import React, { Component } from "react"; import { Table, TableHeader, TableBody, headerCol, } from "@patternfly/react-table"; import "@app/app.css"; import styles from "@patternfly/react-styles/css/components/Table/table"; import { Pagination } from "@app/Pagination" import { Divider, EmptyState, Empty...
<filename>sdk/nodejs/actions/gke-run-helm.ts<gh_stars>1-10 import { AsInputs } from '@pulumi-utils/sdk'; import { PipelineProps } from '../pipeline'; import { CustomResource, Input, Output, ID, CustomResourceOptions, Inputs, output } from '@pulumi/pulumi'; import { IntegrationRef, TriggerCondition, Variable } from '../...
import './index.less'; import { connect } from 'dva'; import { useRef, useState, useEffect } from 'react'; import Iconfont from '@/components/Iconfont'; import { Popover, Slider, Skeleton } from 'antd'; import Card from '@/components/Card'; import Space from '@/components/Space'; import axios from 'axios'; import { dat...
<reponame>G-Innovation-Development-Jakub-G/Kattungar //handle all the graphics here, yo. import { User } from './user'; import { Session } from './session'; import { Character } from './character'; import { EffectStyle} from './effectStyle'; import { SpriteContainer } from './datastore'; import * as gameLogic from './...
import { Chart } from 'chart.js'; import { getAllMatches } from './local-storage'; import { MatchEntry, StoneType, ScoringResult } from './match'; import * as $ from 'jquery'; import { collateMatchesByTeam } from './utils'; import { stats } from './stats'; import { isFavoriteTeam } from './favorites'; async function g...
import { Button, Classes, Colors, FormGroup, InputGroup, Intent, Menu } from '@blueprintjs/core' import { ItemRenderer, Suggest } from '@blueprintjs/select' import _ from 'lodash' import pluralize from 'pluralize' import * as React from 'react' import BroadcasterSection from 'components/BroadcasterSection' import Exte...
'use strict'; import fs = require('fs'); import crypto = require('crypto'); import http = require('http'); import path = require('path'); import url = require('url'); import * as sharp from 'sharp'; import * as exif from 'fast-exif'; import * as bodyParser from 'body-parser'; import * as express from 'express'; impor...
<gh_stars>0 /// <reference path="clientNotificationMgr.ts" /> /// <reference path="gpioMgr.ts" /> /// <reference path="stationMgr.ts" /> import stationM = require('./stationMgr'); var CronJob = require('cron').CronJob; var async = require('async'); import cnMgr = require('./clientNotificationMgr'); import gpioM...
<filename>packages/neo-one-editor-server/src/resolvePackage.ts // tslint:disable no-any import { Monitor } from '@neo-one/monitor'; import { retryBackoff } from '@neo-one/utils'; import { getEscapedNPMName } from '@neo-one/utils-node'; import fetch from 'cross-fetch'; // @ts-ignore import detective from 'detective'; i...
<reponame>wilfredlopez/-wilfred-js-utils /******************************************* * BASIC sort algorithims ****************************************/ /** * Sorts and array of numbers. * @param arr array of numbers. * @param type "ASC" | "DES" for assending or desending order * @param mutate boolean. determin...
import './styles/datepick.scss'; import { IOptions } from './scripts/interface/options'; import defaultOption from './scripts/options/default'; import { parser, show, hide } from './scripts/lib/dom'; import { getTime, today, addDays, dateValue } from './scripts/lib/date'; import { limitToRange, isInRange, deepCopy }...
/* FileName: createOrGetXsrfSession.ts Written By: <NAME> File Type: Module Description: https://api.sitetest4.robloxlabs.com/csrf/v1/get-csrf-token, All commits will be made on behalf of mfd-co to https://github.com/mfd-core/sitetest4.robloxlabs.com Implements flags: DFFlagIsCSRFV2Enabled DFFlagIsCSRFV2Hardc...
import { Observable, Observer } from 'rxjs'; export class ImageUtility { public static toDataUrl( file: Blob ): Observable<string> { let obs: Observable<string> = new Observable<string>( ( observer: Observer<string> ) => { let reader: FileReader = new FileReader(); re...
const C = { ADJ: 'Adjective', ADV: 'Adverb', EXP: 'Expression', INF: 'Infinitive', PR: 'PresentTense', SI: 'Singular', PA: 'PastTense', PL: 'Plural', AC: 'Actor', VB: 'Verb', NN: 'Noun', LN: 'LastName', MD: 'Modal', CP: 'Copula' } export const {ADJ,ADV,EXP,INF,PR,SI,PA,PL,AC,VB,NN,LN,MD,CP} ...
<reponame>WhyBuddy/uBlacklist import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import { apis } from './apis'; import './dayjs-locales'; import { ENGINES } from './engines'; import * as LocalStorage from './local-storage'; import { addMessageListeners, sendMessage } from './messages'; imp...
import { Client, Guild } from "discord.js"; import fs from "fs"; import WOKCommands from "."; import path from "path"; import Command from "./Command"; import getAllFiles from "./get-all-files"; import ICommand from "./interfaces/ICommand"; import disabledCommands from "./models/disabled-commands"; import requiredRole...
import { Template, Annotations, Match } from '@aws-cdk/assertions'; import * as ccommit from '@aws-cdk/aws-codecommit'; import * as sqs from '@aws-cdk/aws-sqs'; import * as cdk from '@aws-cdk/core'; import { Construct } from 'constructs'; import * as cdkp from '../../lib'; import { PIPELINE_ENV, TestApp, ModernTestGitH...
<reponame>dafik/dfi-asterisk import Bridges from "../collections/BridgesCollection"; import {IDfiAMIResponseMessageMulti, IDfiCallbackResult} from "../definitions/interfaces"; import {IDfiAstModelAttribsBridge} from "../definitions/models"; import AST_ACTION from "../internal/asterisk/actionNames"; import AST_EVENT fro...
<filename>components/automate-ui/src/app/components/pending-edits-bar/pending-edits-bar.component.spec.ts import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { ReactiveFormsModule } from '@angular/forms'; import { StoreModule, S...
<gh_stars>0 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http'; import { KeyFilterModule } from 'primeng/keyfilter'; import { StorageServiceModule, SESSION...
<reponame>fes300/DefinitelyTyped<filename>types/emoji-flags/index.d.ts // Type definitions for emoji-flags 1.2 // Project: https://github.com/matiassingers/emoji-flags // Definitions by: <NAME> <https://github.com/tdukart> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace emojiFlag...
<reponame>yermolim/ts-webgl-animation export const shaderTypes = { FRAGMENT_SHADER: 0x8b30, VERTEX_SHADER: 0x8b31, } as const; export type ShaderType = typeof shaderTypes[keyof typeof shaderTypes]; export const bufferTypes = { ARRAY_BUFFER: 0x8892, ELEMENT_ARRAY_BUFFER: 0x8893, UNIFORM_BUFFER: 0x8a11, TRAN...
import { Day, EventData, StartWeekday } from "../../types"; export function setDate(date: Date) { if (!date) { return; } if (date instanceof Date) { this.reset(date); } else { this.reset(new Date(date)); } } export function getSelectedDate() { return this.currentDate; } /** Clear calendar day...
import { baseUrl } from "./common/url.js"; import { ExactPackage, toPackageTarget } from "./install/package.js"; import TraceMap from './trace/tracemap.js'; import { LockResolutions } from './install/installer.js'; // @ts-ignore import { clearCache as clearFetchCache, fetch as _fetch } from '#fetch'; import { createLog...
import { ChannelCredentials, ClientDuplexStream, Metadata } from 'grpc'; import { ErrorMessage, FlowControl, SerializedObject } from './proto/common_pb'; import { ClientIdentification } from './proto/control_pb'; import { QueryServiceClient } from './proto/query_grpc_pb'; import { QueryComplete, QueryProviderInboun...
import {useState, useRef, useContext, useCallback, useEffect} from 'react'; import {useHistory} from 'react-router-dom'; import {useSelector, useDispatch} from "react-redux"; import useLocalStorage from "../hooks/useLocalStorage"; import {wordGridSocketContext} from '../context/socket2' import {addWordGridWord} from "...
<gh_stars>0 import { VueComponent,Prop } from 'vue-typescript' import * as VueRouter from 'vue-router' import {dataService} from '../../service/dataService' var VuePagination = require('v-pagination'); Vue.use(VuePagination) interface JQuery { bootstrapTable(options?: any): JQuery; bootstrapTable(name:string,...
import React, { memo, useState, useEffect, useMemo, useRef, forwardRef, } from 'react'; import { Dimensions, LayoutAnimation, Platform, Alert, UIManager } from 'react-native'; import { MapView } from 'react-native-amap3d'; import SuperCluster from 'supercluster'; import ClusterMarker from './ClusteredMarker...
import { Injectable } from '@angular/core'; import { Website } from '../../decorators/website-decorator'; import { BaseWebsiteService } from '../base-website-service'; import { Submission, SubmissionFormData } from 'src/app/database/models/submission.model'; import { MBtoBytes, isGIF } from 'src/app/utils/helpers/file....
import { Box, Flex, TabList, TabPanel, TabPanels, Tabs, Text, } from '@chakra-ui/react'; import { values } from 'lodash'; import { useEffect, useState } from 'react'; import CustomTab from '@tkeel/console-business-components/src/components/AddDevicesModal/CustomTab'; import DeviceGroupTree from '@tkeel/c...
import React, { useCallback, useEffect, useState } from 'react' import { useControls } from 'leva' import { getArrow, getBoxToBoxArrow } from 'curved-arrows' import { RectSide, distanceOf, growBox, isPointInBox, Vec2, Box, /** create-react-app is unable to import from 'curved-arrows/src/utils' */ } from '...
import "./style.scss"; import React, {ChangeEvent, MouseEvent, PureComponent, ReactElement, RefObject} from "react"; import {cast, Instance} from "mobx-state-tree"; import {observer} from "mobx-react"; import {capitalize} from "lodash"; // eslint-disable-next-line @typescript-eslint/no-unused-vars import {browser} fro...
export interface Dom7Instance { length: number; /** Retrieve one of the elements matched by the Dom7Instance object (jQuery syntax). **/ [index:number]: Element; // CLASSES /** Add class to elements */ addClass(className : string) : Dom7Instance; /** Remove specified class */ removeCl...
<gh_stars>0 import { Component } from '@angular/core'; import { NavController, NavParams, IonicPage, LoadingController } from 'ionic-angular'; import { StorageUtilities, Utilities, MatchProfiles, Users } from '../../providers'; import { MatchPreference } from '../../models/match-preference'; import { USER_PROFILE_ERROR...
/** @jsx jsx */ import { React, classNames, ThemeVariables, css, jsx, polished } from 'jimu-core' import { AllWidgetSettingProps, getAppConfigAction } from 'jimu-for-builder' import { SettingSection, SettingRow, DirectionSelector } from 'jimu-ui/advanced/setting-components' import { InputUnit } from '...
/* * Copyright 2016-2018 <NAME> <<EMAIL>> * * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file. */ import * as _ from 'lodash'; import { Logger, getLogger, log } from "extraterm-logging"; const FALLTHROUGH = "fallthrough"; export interface KeyStrokeOptions { altKey: ...
import { getIconFromExt, SvgIcon } from './icons'; import utils from './utils'; import { RGBA, ImageThumbnail, VideoThumbnail } from './utils'; interface Dimensions { height: number; width: number; } interface Options { accept?: string; maxSize?: string; read: boolean; thumbnailSize?: number; } interface...
<reponame>znetstar/information-retrieval-search-engine<filename>engine/src/indexer/Indexer.ts<gh_stars>1-10 import {initDatabase} from "../database"; import {FinalSearchResult, IndexedScrapeResult, ScoredSearchResult, ScrapeResult, TfidfMapping} from "../common"; import {ObjectId} from "mongodb"; import {Queue} from "b...
<gh_stars>1-10 import { Component, OnInit, Input, OnChanges, OnDestroy, EventEmitter, Output } from '@angular/core'; import {IData, i18n, IChartType, GetChartCumTypes} from '../data/data.model'; import * as Utils from '../data/data.utils'; import { formatDate, formatNumber } from '@angular/common'; import { Subscriptio...
import store from "../../store/store"; import { actions as schemaAction } from "../../store/slices/schema"; import { actions as setSchemaAction } from "../../store/slices/load-schema"; import env from "../../../env.json"; import { actions as loadScreenAction } from "../../store/slices/load-screen"; import { actions a...
<reponame>SanderRonde/password-manager-server<gh_stars>1-10 import { spawn, ChildProcess } from "child_process"; import { listenWithoutRef } from "./util"; import { assert } from 'chai'; import * as path from 'path' export enum LOG_VALS { ANY_STRING = 0 } function isLogVal(value: any): value is LOG_VALS { return va...
<filename>archiving/cache.ts // deno-lint-ignore-file no-explicit-any import { ensureFile } from 'https://deno.land/std@0.97.0/fs/ensure_file.ts' import * as oauth from 'https://raw.githubusercontent.com/snsinfu/deno-oauth-1.0a/42155ce5fcefc89265353c579d07229cb3acddc9/mod.ts' import { cookie, root } from './init.ts' im...
import React, { useEffect, useState } from "react"; import CountUp from "react-countup"; import "./App.css"; import ParrotExample from "./ParrotExample"; import { supabase } from "./supabaseClient"; import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@reach/tabs"; import SyntaxHighlighter from "react-syntax-highli...
import React, {useMemo } from 'react'; import styled from 'styled-components'; import { useWallet } from 'use-wallet'; import Button from '../../components/Button'; import PageHeader from '../../components/PageHeader'; import Spacer from '../../components/Spacer'; import Harvest from './components/Harvest'; import LpH...
import { useCallback, useContext, useState } from 'react' import { Field, FormikProps, Form, withFormik } from 'formik' import { Button, Collapse, Row, Col, FormGroup, FormFeedback, FormText, Label, Input, UncontrolledAlert } from 'reactstrap' import dayjs from 'dayjs' import localeData from 'dayjs/...
/* Full Page Modal */ import { LitElement, html, css, render } from "lit"; import { customElement, property, state, queryAll } from "lit/decorators.js"; import { ref, createRef } from "lit/directives/ref.js"; import "@vaadin/avatar"; import "@vaadin/horizontal-layout"; import "@vaadin/vertical-layout"; import "@vaadin...
import * as csv from 'csv'; import * as fs from 'fs'; const moment = require('moment'); import * as path from 'path'; import * as thenify from 'thenify'; require('moment-timezone'); /** Add the specified extension to a file name, if it doesn't have * it already, and return the new file name. */ export function addEx...
import { Token } from '@/model/token'; import * as BBService from '@/third-party/byblock/service' import WalletBalanceInputTransformer from '@/transformers/input/wallet/balance'; import { WalletBalanceItem } from '../../model/wallet/balance' import store from '../../store' import * as AccountService from "../../service...
import * as vscode from 'vscode' import { DocumentState } from './document' import { EditorState } from './editor' import { commands } from '../commands' import { extensionName } from '../extension' import { Registers, Register } from '../registers' // =============================================...
import EventEmitter from './EventEmitter' import errorInfo from './errorInfo' import { merge, get, Promiser, bulidPromPending, expect, CreateError, warn } from './util' import ReconnentWebsocketClass , { SendOptions, Config, BeforeSendHook, BeforeEmitHook, SocketEvent, BinaryType } from '../types/ReconnectWebsocket' ...
/* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain Permission is ...
<filename>frontend/src/components/RelatedArtistsGraph/CanvasRenderer.ts import * as PIXI from 'pixi.js'; import { Viewport } from 'pixi-viewport'; import * as R from 'ramda'; // import { getState } from 'src/store'; import type { Artist } from 'src/types'; import * as conf from './conf'; import type { Link, Node, Rela...
type TypeLiteral = { typeLiteralMember1: number; typeLiteralMember2: string; } /** * @minProperties 1 * @maxProperties 1 */ interface Interface { interfaceMember1?: number interfaceMember2?: string [name: string]: any } type TypeUnion1 = TypeLiteral | { typeUnionMember1: number; typeUnionMember2: st...
<reponame>prostgles/prostgles-types<gh_stars>0 import { FullFilter, AnyObject, FullFilterBasic } from "./filters"; export declare const _PG_strings: readonly ["bpchar", "char", "varchar", "text", "citext", "uuid", "bytea", "inet", "time", "timetz", "interval", "name"]; export declare const _PG_numbers: readonly ["int2"...
// Copyright 2021 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 React from 'react'; import {FilterOptionsState} from '@material-ui/core'; import Autocomplete, { AutocompleteChangeDetails, AutocompleteChangeRe...
import React, { useState, useEffect, useRef } from 'react' import { useRouter } from '../lib/router' import { ThemeProvider } from 'styled-components' import { GlobalDataProvider, useGlobalData } from '../lib/stores/globalData' import { getGlobalData } from '../api/global' import { useEffectOnce } from 'react-use' impo...
<filename>demo/client/src/view.ts // pathfinder/client/src/view.ts // // Copyright © 2017 The Pathfinder Project Developers. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, a...
<reponame>mobilemaster128/Ionic-Chat import { Injectable } from "@angular/core"; import { Events } from "ionic-angular"; import "rxjs/add/operator/map"; import firebase from "firebase"; /* Generated class for the FireDataServiceProvider provider. See https://angular.io/docs/ts/latest/guide/dependency-injection.ht...
<gh_stars>0 /** * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author <NAME> <<EMAIL>> */ import { createTextureImage, TextureImage } from '../../../mol-gl/renderable/util'; import { WebGLContext } from '../../../mol-gl/webgl/context'; import { Texture } from '../....
import * as React from 'react'; import { connect } from 'react-redux'; import { RouteComponentProps } from 'react-router-dom'; import { Nav, NavItem, TabContainer, TabContent, TabPane, Icon } from 'patternfly-react'; import ServiceId from '../../types/ServiceId'; import * as API from '../../services/Api'; import * as M...
<reponame>vbhayden/pebl-services /* Copyright 2021 Eduworks Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
import path from "path"; import { InjectHook, Component, getComponentMeta, getConfigurationMeta, HookType, IHook, TComponent, ComponentScanner, ComponentName, } from "@symph/core"; import { isFunction, isNil } from "@symph/core/dist/utils/shared.utils"; import { ModuleContextTypeEnum } from "../../lib...
/* Copyright 2021 ipydrawio contributors Copyright 2020 jupyterlab-drawio contributors 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 ...
import * as React from "react"; import {connect} from "react-redux"; import {bindActionCreators, Dispatch} from "redux"; import {returntypeof} from 'react-redux-typescript'; import {RootState} from "../../state"; import {CurveMode, FieldShape, PlainPoint} from "../../types/drawing"; import { defaultFieldShape, defaul...
import { ThunkAction } from 'redux-thunk' import { AnyAction } from '@reduxjs/toolkit' import BigNumber from 'bignumber.js' import { ethers } from 'ethers' import { CampaignType, SerializedFarmConfig, LotteryStatus, LotteryTicket, DeserializedPoolConfig, SerializedPoolConfig, Team, TranslatableText, D...
import parser from 'html-react-parser' import Lesmerpanel from 'nav-frontend-lesmerpanel' import { Undertittel } from 'nav-frontend-typografi' import React, { useEffect, useState } from 'react' import { Link } from 'react-router-dom' import Aktivitetsplan from '../../../public/static/tidslinjeutdrag/aktivitetsplan.svg...
/** * Copyright 2020 Opstrace, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *---------------------------------------------------------------...
<gh_stars>1-10 import intl from "react-intl-universal" import { ServiceHooks } from "../service" import { ServiceConfigs, SyncService } from "../../../schema-types" import { createSourceGroup } from "../group" import { RSSSource } from "../source" import { htmlDecode, domParser } from "../../utils" import { RSSItem } f...
<reponame>kaszim/box2d.ts<filename>Testbed/Tests/PolyShapes.ts /* * Copyright (c) 2006-2012 <NAME> http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is ...
<filename>src/app/pages/inventory/inventory/inventory.component.ts<gh_stars>0 import { FormControl, Validators, FormGroup } from '@angular/forms'; import { Component, OnInit, AfterViewInit } from '@angular/core'; import { TranslateServiceOur } from '../../../services/our-translate.service'; import { TranslateService } ...
<gh_stars>1-10 import { SYMBOL, OrderingSpec, NullOrdering, SetQuantifier, WindowFrameBound, WindowFrameUnits, WindowFrameExclusion, ResultOffset, JoinType, TruthValue, ComparisonOperator, LogicalOperator } from './constant'; import { JoinTableType } from './enum'; type Unfinished = string; type I...
'use strict'; import * as vscode from 'vscode'; import { HomeProvider } from './providers/home'; import { MethodHighlight } from './providers/highlight'; import { runAnalysis } from './functions/runAnalysis'; import { GoHoverProvider } from './providers/GoHoverProvider'; import { startup } from './functions/startup'; i...
<reponame>TechInSite/lamington import { Api } from 'eosjs'; import { convertLegacyPublicKey } from 'eosjs/dist/eosjs-numeric'; import * as ecc from 'eosjs-ecc'; import { Account } from './account'; import { accountNameFromPublicKey } from './utils'; import { EOSManager } from '../eosManager'; import { ConfigManager, L...
/* * Copyright (C) 2005-2022 SplendidCRM Software, Inc. * MIT License * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
<filename>frontend/src/api/index.ts import packets, { debugLogPacket, Direction, DisconnectData, ErrorData, GameData, GameStateData, Packet, PlayerData, PlayerDataMode, PlayerDataWithMode, QuestionData, ScoresData, SPID, States, TimeSyncData } from "./packets"...
import { isValidCfxAddress, encode as toCfxAddress, decode as toEthAddress, } from '@conflux-dev/conflux-address-js'; import { defaultAbiCoder } from '@ethersproject/abi'; import { hexZeroPad } from '@ethersproject/bytes'; import { keccak256 } from '@ethersproject/keccak256'; import OneKeyConnect from '@onekeyfe/...
/* eslint-disable @typescript-eslint/no-non-null-assertion */ import React, { useRef, useCallback, useState, useEffect } from 'react' import style from './index.module.scss' import { getName, prefixStyle, formatPlayTime } from '@/utils' import SvgIcon from '@/components/SvgIcon' import { CSSTransition } from 'react-tra...
<gh_stars>0 import path from 'path' import EventEmitter from 'events' import _ from 'lodash' import chokidar from 'chokidar' import minimatch from 'minimatch' import { Configuration as WebpackConfig, Compiler, Stats } from 'webpack' import { glob } from '../util/glob' import createCompiler from '../webpack/compiler/cr...
// (C) Copyright 2015 Moodle Pty 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 law or agree...
<reponame>HuangXianxiao/webadbtest<gh_stars>0 class BitReader { private buffer: Uint8Array; private bytePosition = 0; private bitPosition = 0; public constructor(buffer: Uint8Array) { this.buffer = buffer; } public read(length: number): number { let result = 0; for (l...
import create, { GetState } from 'zustand' import produce from 'immer' import uuidv4 from 'uuid/v4' import { RGBColor } from 'react-color' import flow from 'lodash/fp/flow' import keys from 'lodash/fp/keys' import max from 'lodash/fp/max' import map from 'lodash/fp/map' import isEqual from 'lodash/fp/isEqual' import so...
<filename>src/node/systemProc.ts import debug from "debug"; import {LevelDown as LevelDOWN, Bytes} from "leveldown"; import {IProc, createProc} from "./proc"; import {IWorker} from "./workerManager"; import {sendMessageToWorker} from "./messaging"; import { prepareRegisterSystemProcsMessage, IPipeProcRegisterSy...
<filename>src/engine.ts import { Context } from './context'; import { nameOfOpcode, Opcode } from './opcodes'; import { Node } from './node'; import { BindvarCode, Code, CtxvarCode, FormatterCall, EvalCode, IfCode, IncludeCode, InjectCode, MacroCode, PredicateCode, RepeatedCode, RootCode, Sect...
import {ICourse} from '../../../shared/models/ICourse'; import {ICourseDashboard} from '../../../shared/models/ICourseDashboard'; import {ICourseView} from '../../../shared/models/ICourseView'; import * as mongoose from 'mongoose'; import {User, IUserModel, IUserPrivileges} from './User'; import {ILectureModel, Lecture...
<filename>src/utils/contentAwareSimplified.ts /* eslint-disable no-await-in-loop, no-param-reassign, object-curly-newline */ import { Color, Coordinate, getPixel, setPixel, } from './image'; // The seam is a sequence of pixels (coordinates). export type Seam = Coordinate[]; // Energy map is a 2D array that ha...
import { MountingOptions, flushPromises, mount } from '@vue/test-utils' import { h } from 'vue' import { renderWork, wait } from '@tests' import { type MenuData } from '@idux/components/menu' import ProLayout from '../src/Layout' import LayoutSiderTrigger from '../src/LayoutSiderTrigger' import LayoutSider from '../...
<filename>example-apps/PDD/frontend-src/src/app/pcb/pcb.component.ts import { Component, OnInit, TemplateRef, ViewChild, AfterViewInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { ToolbarService } from './../toolbar/toolbar.service'; import { ToastService } from './toast.ser...
<gh_stars>0 import { comment, execute, tellraw } from "sandstone/commands"; import { _ } from "sandstone/core"; import { PlayerScore, Selector, Variable } from "sandstone/variables"; var neginf = Variable(-2147483648); function po2(num: number) { return Math.pow(2, num); } function compare(a: PlayerScore, b: Pla...
import Button from "@material-ui/core/Button"; import { makeStyles } from "@material-ui/core/styles"; import Tooltip from "@material-ui/core/Tooltip"; import React from "react"; import type { FirmwareUpdateProgress } from "../../../src/lib/shared"; import { useAPI } from "../lib/useAPI"; import { useDialogs, useI18n } ...
<gh_stars>1-10 /* * cloudbeaver - Cloud Database Manager * Copyright (C) 2020 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import { NavigationTabsService, ITab, INavigator, NavigationService, IContextPr...
import { Component, HostListener, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { DomSanitizer, Title } from '@angular/platform-browser'; import { FormGroup, FormControl, FormBuilder, Validators, FormArray } from '@angular/forms'; import * as moment from 'moment/moment'; im...
<reponame>addstone/gerrit /** * @license * Copyright (C) 2020 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...
<filename>packages/library/src/index.ts import {EventEmitter} from 'events' import {getAppDataDir, getAppRootDir} from 'ocore/desktop_app' import {dirname} from 'path' import Typed from 'strict-event-emitter-types' import shimmer from './event-handler' import {IBot, IDatabase, IPairing, IPayment} from './event-types' ...
import {Avatar, Button, Card, Col, Form, Input, List, message, Modal, Row, Tooltip,} from 'antd'; import React, {useEffect, useState} from 'react'; import type {ResourceType} from '@/models/resource'; import { getResource, reviewResource, searchResources, searchResourcesByPage, updateResource, } from '@/servi...
<gh_stars>1-10 import { Component, OnInit, ViewChild, ChangeDetectorRef, AfterViewInit, ElementRef, Input } from '@angular/core'; import { map, startWith, distinctUntilChanged, switchMap, debounceTime, tap, finalize, catchError, } from 'rxjs/operators'; import { ModalController } from '@ionic/angular'; ...