text stringlengths 9.82k 47.8k |
|---|
/**
* @module node-opcua-address-space
*/
// tslint:disable:max-classes-per-file
// tslint:disable:no-console
import * as chalk from "chalk";
import { assert } from "node-opcua-assert";
import {
IAddressSpace,
AddVariableOptions,
BaseNode,
InstantiateVariableOptions,
ModellingRuleType,
INames... |
<reponame>SpillChek2/vscode
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------... |
/* @license
* Copyright 2019 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... |
import * as React from "react";
import {
SealedInitialState,
useSealedState,
} from "reakit-utils/useSealedState";
import { applyState } from "reakit-utils/applyState";
import { useIsomorphicEffect } from "reakit-utils/useIsomorphicEffect";
import {
unstable_IdState,
unstable_IdActions,
unstable_IdInitialStat... |
import Button from '@material-ui/core/Button';
import Checkbox from '@material-ui/core/Checkbox';
import Collapse from '@material-ui/core/Collapse';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
im... |
// tnmt.ts contains code to handle the tnmt command and tnmt subcommands
// Imports
import { Message, Guild } from "discord.js";
import { Challonge, TournamentInterfaces, Tournament } from "challonge-ts";
import { MD5 } from "crypto-js";
import { Deck } from "../scry/mtg";
import { newBuilder } from "../builders/build... |
import { css, cx } from 'emotion';
import produce from 'immer';
import { Connection, Defaults, jsPlumbInstance } from 'jsplumb';
import * as React from 'react';
// import * as ReactDOMServer from 'react-dom/server';
import { VariableDescriptor } from '../../data/selectors';
import { StoreDispatch, useStore } from '../.... |
import * as numbers from "../magic_numbers";
import {range_360} from "../utils";
import {GoldenSun} from "../GoldenSun";
import {Button} from "../XGamepad";
import {PlayerInfo} from "./Battle";
import {battle_actions, battle_positions, PlayerSprite} from "./PlayerSprite";
import {BattleAnimation} from "./BattleAnimatio... |
<filename>src/App/Reducers/equipmentReducer.ts
import { not } from "../../Data/Bool"
import { ident } from "../../Data/Function"
import { fmap } from "../../Data/Functor"
import { over, set, view } from "../../Data/Lens"
import { insertAt, isList } from "../../Data/List"
import { bind, bindF, ensure, fromJust, isJust, ... |
<filename>nlp/admin/web/src/app/model/commons.ts<gh_stars>1-10
/*
* Copyright (C) 2017/2020 e-voyageurs technologies
*
* 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.apac... |
/** <pre>
* mutua.available.modules.and.components.config.ts
* ================================================
* (created by luiz on Sun, Feb, 5, 2017)
*
* This class lists all modules and components available to the instance project to use and should not be bundled nor loaded
* by the application for it is a bu... |
import * as mongoose from 'mongoose';
import _ from 'underscore';
import debug from 'debug';
import lazyload from '@ark7/lazyload';
import validator from 'validator';
import {
A7Model,
Ark7ModelMetadata,
ID,
MetadataError,
Model,
ModelClass,
runtime,
setIsIDFn,
} from '@ark7/model';
import { ConnectOpti... |
<filename>src/core/internationalization/languages/de.ts<gh_stars>10-100
import { raw } from "./raw";
export const de: typeof raw = {
patient: "geduldig",
appointment: "geplanter termin",
treatment: "behandlung",
logout: "ausloggen",
operators: "betreiber",
missed: "verpasst",
"who are you?": "wer bist du... |
<filename>src/CompressedJsonCollection.ts
import { EventEmitter } from 'eventemitter3';
export type BaseParameter = string | number | boolean | Date;
export type JsonParameter = BaseParameter | IJsonObject | IJsonArray;
export interface IJsonArray extends Array<JsonParameter> { };
export interface IJsonObject { [x: st... |
<reponame>teropa/magenta-js<filename>music_vae/src/model.ts
/**
* @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://ww... |
<filename>src/modules/mentornity/src/api/mentorinty-bridge-api.ts
import { DataApi, QueryRequest, QueryResponse, UpdateResponse } from '@dvn/core/api';
import { APIBase } from '@dvn/core/api/apiBase';
import { GetItemRequest, GetItemResponse } from '@dvn/core/api/dto/get-item';
import { GetListResponse } from '@dvn/cor... |
<reponame>isaacphysics/isaac-graph-sketcher<gh_stars>0
import { Curve, Point, GraphSketcherState } from "./GraphSketcher";
// undefined|null checker and type guard all-in-wonder.
// Why is this not in Typescript?
export function isDefined<T>(stuff: T): stuff is NonNullable<T> {
return stuff !== undefined && stuff ... |
<filename>src/extension.ts
import * as vscode from 'vscode';
import { D_MODE, DML_MODE, DSCRIPT_MODE, SDL_MODE } from "./dmode"
import { WorkspaceD } from "./workspace-d"
import { CompileButtons } from "./compile-buttons"
import { uploadCode } from "./util"
import * as statusbar from "./statusbar"
import * as pat... |
import {
Behavior,
Future,
isBehavior,
Now,
observe,
placeholder,
runNow,
sinkBehavior,
sinkFuture,
Stream
} from "@funkia/hareactive";
import { render } from "@funkia/hareactive/dom";
import { fgo, go, Monad, monad } from "@funkia/jabz";
import { copyRemaps, id, Merge, mergeObj } from "./utils";
c... |
<gh_stars>100-1000
// tslint:disable
export type DefaultTranslations = {
[key: string]: string | DefaultTranslations
}
export const translations: DefaultTranslations = {
ar: {
translation: {
now: 'الآن',
second_ago: 'قبل ثانية واحدة',
second_ago_plural: 'قبل __count__ ثانية',
second_in:... |
<reponame>Giwi/warpview-editor
/*
* Copyright 2020 <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 ... |
import React, {
useState,
useEffect,
useCallback,
useMemo,
useRef,
} from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { gql, useMutation } from "@apollo/client";
import Modal from "react-modal";
import classnames from "classnames";
import moment from "moment";
import { us... |
<reponame>aviskase/obsidian-spaced-repetition<filename>src/main.ts
import {
Notice,
Plugin,
addIcon,
TAbstractFile,
TFile,
HeadingCache,
getAllTags,
} from "obsidian";
import * as graph from "pagerank.js";
import { SRSettingTab, SRSettings, DEFAULT_SETTINGS } from "src/settings";... |
<filename>visualizations/src/components/multiplexinggraph/renderer/MultiplexingGraphD3CollapsedRenderer.ts
import QlogConnection from '@/data/Connection';
import * as d3 from 'd3';
import * as qlog from '@/data/QlogSchema';
import StreamGraphDataHelper from './MultiplexingGraphDataHelper';
import MultiplexingGraphD3Byt... |
import { DerivedRelation, RelationType, DbIdType, RelationNameType, LogicalTimestep, DielAst, Relation } from "../parser/dielAstTypes";
import { DbType, NodeDependencyAugmented, NodeDependency, DependencyTree, ExecutionSpec, TableMetaData } from "../runtime/runtimeTypes";
import { PhysicalMetaData } from "../runtime/Di... |
<reponame>ai-qing-hai/GUI<filename>src/ui/axis/base.ts
import { Group, Path, Text } from '@antv/g';
import { clone, deepMix, minBy, maxBy, get, sortBy, isString, isNumber, isUndefined } from '@antv/util';
import { vec2 } from '@antv/matrix-util';
import type { vec2 as Vector } from '@antv/matrix-util';
import type { Pa... |
#!/usr/bin/env node
'use strict';
//dts
import {IGlobalSumanObj, ISumanConfig} from "suman-types/dts/global";
export interface IPreOptCheck {
[key: string]: any,
}
debugger; //leave here forever so users can easily debug with "node --inspect" or "node debug"
//polyfills
const process = require('suman-browser-pol... |
import { BoolMap, cloneObject, NumberMap } from "../common/ciphercommon";
import { IState, menuMode, toolMode } from "../common/cipherhandler";
import { ICipherType } from "../common/ciphertypes";
import { JTFLabeledInput } from "../common/jtflabeledinput";
import { JTRadioButton, JTRadioButtonSet } from "../common/jtr... |
<gh_stars>0
//import * as THREE from 'three';
import {
AmbientLight,
Camera,
HemisphereLight,
Line,
OrthographicCamera,
PerspectiveCamera,
Scene,
Vector2,
Vector3,
WebGLRenderer,
DirectionalLight,
SpotLight,
WebGLRendererParameters
} from 'three';
import { OncoProjector } from './OncoProjector... |
import {Component, OnChanges, SimpleChange, Input} from '@angular/core';
import {TypeaheadMatch} from 'ngx-bootstrap';
import {CategoricRow, Row, RowStateRequest, Spreadsheet, SSVState} from '../../../../models/knoweng/results/SpreadsheetVisualization';
import {CellHeatmapEvent} from '../common/CellHeatmap';
import {G... |
<filename>src/editor/CodeHintManager.ts
/*
* Copyright (c) 2012 - 2017 Adobe Systems Incorporated. All rights reserved.
* Copyright (c) 2018 - present The quadre code authors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated doc... |
import {
ChangeEvent,
ComponentType,
DragEvent,
PropsWithChildren,
ReactElement,
useCallback,
useContext,
useEffect,
useMemo,
useState
} from 'react';
import {useSelector, useStore} from 'react-redux';
import {toast, ToastContainer} from 'react-toastify';
import {isEmpty, omit, p... |
<filename>libraries/xlib/src/promise.ts
import * as _imports from "./_imports"
import * as exception from "./exception"
import * as _ from "lodash"
import * as diag from "./diagnostics"
import * as rx from "rxjs"
export { rx }
/** a promise that resolves after an amount of time. good for delaying execution
*... |
<filename>src/redux/reducers/types.ts
// User
export const CREATE_USER_SUCCESS = "CREATE_USER_SUCCESS";
export const CREATE_USER_LOADING = "CREATE_USER_LOADING";
export const CREATE_USER_FAILED = "CREATE_USER_FAILED";
export const UPDATE_USER_SUCCESS = "UPDATE_USER_SUCCESS";
export const UPDATE_USER_LOADING = "UPD... |
<gh_stars>1-10
const axes = {
x: { start: 'left', end: 'right' },
y: { start: 'top', end: 'bottom' }
};
function looseEquals(arg1: number, arg2: number, epsilon: number = 0.01) : boolean {
if (arg1 === arg2) { return true; }
const arg1m = Math.abs(arg1);
const arg2m = Math.abs(arg2);
const averagem = (arg1... |
import * as http from "http";
import * as accepts from "accepts";
import * as parseRange from "range-parser";
import * as typeis from "type-is";
import {App, AppEnvironments, ApplicationError} from "./Bix.Application";
import {
getIP,
getAllIPs,
toTrustCheckFunction,
toMakeETagFunction,
isAbsolute,
normalizeTypes... |
import {
DamageDicePF2e,
ModifierPF2e,
MODIFIER_TYPE,
ModifierPredicate,
StatisticModifier,
PROFICIENCY_RANK_OPTION,
DiceModifierPF2e,
} from '../../modifiers';
import { getPropertyRuneModifiers, getStrikingDice, hasGhostTouchRune } from '@item/runes';
import { DamageCategory, DamageDieSize ... |
/**
* Copyright (c) 2016 Uncharted Software Inc.
* http://www.uncharted.software/
*
* 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... |
<filename>packages/saltcorn-data/db/state.ts
/**
* State of Saltcorn
* Keeps cache for main objects
* @category saltcorn-data
* @module db/state
* @subcategory db
*/
import View from "../models/view";
import Trigger from "../models/trigger";
import File from "../models/file";
import Table from "../models/table";... |
/// <reference path="../../../typings/tsd.d.ts" />
/// <reference path="../../../typings/moment-range/moment-range.d.ts" />
/// <reference path="../../../typings/moment/moment.d.ts" />
import * as React from 'react';
// import 'moment-range'
// import cs from 'classnames'
import * as moment from 'moment';
import 'mo... |
<filename>src/app/modules/enduser/report-table/report-table.component.ts
import { Component, OnInit, AfterViewInit, ViewChild, ChangeDetectorRef, ViewEncapsulation } from '@angular/core';
import { Http } from '@angular/http';
import { Router } from '@angular/router'
import { MatTableDataSource, MatSort, MatDialog } fro... |
<reponame>russellp17/molstar
/**
* Copyright (c) 2017-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
import { Segmentation, SortedArray } from '../../../../mol-data/int';
import { Structure, Unit } from '../../structure';
import { StructureQuery } from '... |
<reponame>fanatid/llhttp
import * as assert from 'assert';
import { LLParse, source } from 'llparse';
import Match = source.node.Match;
import Node = source.node.Node;
import {
CharList,
CONNECTION_TOKEN_CHARS, ERROR, FINISH, FLAGS, H_METHOD_MAP, HEADER_CHARS,
HEADER_STATE, HEX_MAP,
HTTPMode,
MAJOR, METHOD_... |
import * as React from 'react'
import * as moment from 'moment'
import numbro from 'numbro'
import * as QueryString from 'query-string'
import { ajaxGet } from '@framework/Services';
import { EntitySettings } from '@framework/Navigator'
import * as Navigator from '@framework/Navigator'
import * as Finder from '@... |
<reponame>itsfadnis/redux-devtools
import difference from 'lodash/difference';
import union from 'lodash/union';
import isPlainObject from 'lodash/isPlainObject';
import $$observable from 'symbol-observable';
import {
Action,
Observable,
PreloadedState,
Reducer,
Store,
StoreEnhancer,
StoreEnhancerStoreCre... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { Raidbos... |
import { DBMutationRunner, DBQueryRunner, DatabaseContext, ExecutionOptions, MutationName, SingleSourceArg, ComputeFunction, Hook, ValueSelector, ComputeFunctionDynamicReturn, CompiledComputeFunctionDynamicReturn, SingleSourceWhere, DBActionOptions, ConstructScalarPropDictBySelectiveArg, TwoSourceArg, ConstructValueTy... |
/*
* BitmapProjective
*
* Copyright (c) 2015 <NAME>.
* Copyright (c) 2012 <NAME>.
*
* 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 limitatio... |
/**
* Minimal ActionHistory implementation
*/
import {LocalActionBundle} from 'app/common/ActionBundle';
import {ActionGroup, MinimalActionGroup} from 'app/common/ActionGroup';
import * as marshaller from 'app/common/marshal';
import {DocState} from 'app/common/UserAPI';
import {reportTimeTaken} from 'app/server/lib/... |
import R from 'ramda';
import pMap from 'p-map';
import { isHash } from '@teambit/component-version';
import { BitId, BitIds } from '../../bit-id';
import { BuildStatus, COMPONENT_ORIGINS, Extensions } from '../../constants';
import ConsumerComponent from '../../consumer/component';
import { revertDirManipulationForPat... |
<reponame>ntchjb/xterm.js
/**
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { CircularList, IInsertEvent } from 'common/CircularList';
import { IBuffer, BufferIndex, IBufferStringIterator, IBufferStringIteratorResult } from 'common/buffer/Types';
import { IBufferLine, ICel... |
import { animationClass, containerClass, containerInstance, dropPlaceholderFlexContainerClass, dropPlaceholderInnerClass, dropPlaceholderWrapperClass, stretcherElementClass, stretcherElementInstance, translationValue, wrapperClass, dropPlaceholderDefaultClass } from './constants';
import { defaultOptions } from './defa... |
<filename>src/app/pages/results/map/map.component.ts
import {
AfterViewInit,
Component,
EventEmitter,
HostBinding,
Input,
OnDestroy,
OnInit,
ViewChild,
} from '@angular/core';
import {
ActivatedRoute,
Router
} from '@angular/router';
import {
combineLatest,
Subscription
} from 'rxjs';
import {... |
<filename>src/BikeSimulator.ts
import * as Cesium from "cesium";
import * as Chart from "chart.js";
import * as gpxParser from "gpxparser";
import { MathHelpers } from "./MathHelpers";
import { ChartPoint } from "chart.js";
import { BikeTrainer, BikeTrainerData } from "./BikeTrainer";
import { padStart } from 'lodash';... |
<reponame>mygosity/mygos-node-utils<filename>src/lib/file/index.ts
import fs, { Stats } from 'fs';
import mkdirp from 'mkdirp';
import logger from '../logger';
import { prefillDefaultOptions } from '../common';
import utils from '../common';
import { getHumanReadableTime } from '../common/formatting';
import fileManage... |
<gh_stars>1-10
"use strict";
import fs from "fs";
import { basename } from "path";
import { ethers } from "ethers";
import * as scrypt from "scrypt-js";
import { getChoice, getPassword, getProgressBar } from "./prompt";
import { version } from "./_version";
const logger = new ethers.utils.Logger(version);
class U... |
/* eslint-disable jsx-a11y/anchor-is-valid */
import React, { useEffect, useState } from 'react'
import {
Box,
LoadingIcon,
NavigationItem,
Option,
Select,
Tag,
Text,
DialogPrompt,
Input,
LinkContext,
Button,
DatePicker,
GridContainer,
GridRow,
GridColumn,
} from '@island.is/island-ui/core... |
import {HttpStatus, Injectable, HttpService} from '@nestjs/common';
import {InjectModel} from '@nestjs/mongoose';
import {Model} from 'mongoose';
import {UsersDTO} from '../users/users.model';
import {AssignOrderDTO, BuyNowDTO, DeliveryType, OrderRatingDTO, OrdersDTO, OrderStatus, OrderStatusDTO, XlsxdataModel} from '.... |
import { ICopy, IEqualsDelta } from "@thi.ng/api/api";
import { isArrayLike } from "@thi.ng/checks/is-arraylike";
import {
Mat,
ReadonlyMat,
ReadonlyVec,
Vec
} from "./api";
import { declareIndices } from "./codegen";
import { $iter, eqDelta } from "./common";
import { Mat33 } from "./mat33";
import { E... |
<reponame>volshibenik/angular<gh_stars>1-10
/**
* @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
*/
/**
* resolver.ts implements partial computation of expressions, resolv... |
<reponame>PikminGuts92/noclip.website
import { GX2Surface, parseGX2Surface } from './gx2_surface';
import { GX2PrimitiveType, GX2IndexFormat, GX2AttribFormat, GX2TexClamp, GX2TexXYFilterType, GX2TexMipFilterType, GX2CompareFunction, GX2FrontFaceMode, GX2SurfaceFormat, GX2BlendFunction, GX2BlendCombine } from './gx2_en... |
import addStyle from "roamjs-components/dom/addStyle";
import createBlock from "roamjs-components/writes/createBlock";
import createHTMLObserver from "roamjs-components/dom/createHTMLObserver";
import createBlockObserver from "roamjs-components/dom/createBlockObserver";
import getBasicTreeByParentUid from "roamjs-compo... |
import { Injectable } from '@angular/core';
import { Observable, Subject, BehaviorSubject, Subscription } from 'rxjs/Rx';
import lodash from 'lodash';
import levelup from 'levelup';
const leveljs = require('level-js');
import toastr from 'toastr';
import { State, StateRule, StateRuleOptions,
DisposableSubscription, ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import Linkify from 'react-linkify';
import { Chat, ChatItemProps, Flex, Ref, ShorthandValue, Text } from '@fluentui/react-northstar';
import {
DownIconStyle,
... |
import {Component, createRef} from 'react';
import {Store} from 'redux';
import * as PropTypes from 'prop-types';
import {getDocument, GlobalWorkerOptions} from 'pdfjs-dist/legacy/build/pdf';
import classNames from 'classnames';
import {clamp} from 'lodash';
import ReactResizeDetector from 'react-resize-detector';
impo... |
var task_1_fiz_address : string;
var task_1_stack_address : string;
var typeOfSession : string;
const ORIG_STRING_LEN = 40;
const PYTHON_SESSION_NAME = "python";
function GetId(id : string) {
return document.getElementById(id);
}
var byte_str = "0000000000000000";
function GetNumValue(id : string) : Number {
... |
<reponame>AndrewGrim/canvas_treeview<filename>src/weapons/detail.ts
const fs = require("fs");
const sqlite3 = require("better-sqlite3");
import {adjust_sharpness} from "./mod";
import {capitalize, capitalize_split} from "../utilities";
enum Detail {
Name,
Rarity,
Attack,
Element,
Affinity,
Def... |
import React, { useState, useEffect, useRef, useMemo, useCallback, memo } from 'react';
import { CSSTransition, TransitionGroup } from 'react-transition-group';
import LOCALE from './locale';
import { WEEK_NUMBER, PREV_TRANSITION, NEXT_TRANSITION, SELECTOR_YEAR_SET_NUMBER, getDaysArray, getYearSet, formatDateString, is... |
<gh_stars>0
import {
Component,
Input,
Output,
EventEmitter,
ViewChild,
ElementRef,
OnInit,
OnChanges, OnDestroy, AfterViewInit
} from '@angular/core';
import {CanvasWhiteboardUpdate, UPDATE_TYPE} from "./canvas-whiteboard-update.model";
import {DEFAULT_TEMPLATE, DEFAULT_STYLES} from "./... |
// Copyright 2017 <NAME>.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/*
* Copyright (c) 2018-2021 Yahweasel
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISC... |
<filename>src/app/providers/stoxum.service.ts<gh_stars>0
import { Injectable, OnInit, OnDestroy } from '@angular/core';
import { CurrencyPipe, DecimalPipe } from '@angular/common';
import { Observable, BehaviorSubject } from 'rxjs';
import { Subscription } from 'rxjs/Subscription';
import { Subject } from 'rxjs/Subject... |
import React, { Component } from "react";
import { makeStyles } from '@material-ui/core/styles';
import { Typography, Popper, ClickAwayListener } from "@material-ui/core";
import Container from '@material-ui/core/Container';
import Paper from '@material-ui/core/Paper';
import Button from '@material-ui/core/Button';
im... |
<gh_stars>10-100
import {
Account,
Commitment,
Connection,
PublicKey,
Transaction,
TransactionInstruction,
TransactionSignature,
} from '@solana/web3.js';
import fs from 'fs';
import os from 'os';
import child_process from 'child_process';
import { BN } from 'bn.js';
import {
BookSide,
BookSideLayout,... |
// import { Chart } from "chart.js";
// import * as d3 from 'd3';
// import { Transition } from "d3";
// 계산기의 결과값을 display 해주는 부분의 id와, 중간값을 display 해주는 부분의 id를 저장할 변수 선언.
// 이를 통해 아이디 값만 바꿔주면 다른 HTML 파일에서도 이 js 파일을 쓸 수 있다.
var displayId = 'display';
var midValueId = 'mid-value';
var evalId = 'eval';
var barClassName =... |
export interface IBIssue {
key: string;
resolution?: IResolveTypes;
priority: IPriority;
labels: string[];
aggregateOriginalEstimate: null | number;
timeEstimate: null | number;
//bugCategory?: string;
assignee: null | IUser;
//complexity?: "Low Hanging Fruit" | "Normal" | "Challenging";
//severity: any;
sta... |
let trimLeft = /^\s+/;
let trimRight = /\s+$/;
let mathRound = Math.round;
let mathMin = Math.min;
let mathMax = Math.max;
let names = {
aliceblue: 'f0f8ff',
antiquewhite: 'faebd7',
aqua: '0ff',
aquamarine: '7fffd4',
azure: 'f0ffff',
beige: 'f5f5dc',
bisque: 'ffe4c4',
black: '000',
blanchedalmond: 'f... |
'use strict';
import * as _ from 'lodash';
import * as semver from 'semver';
import { Sequelize } from '../../..';
import * as sequelizeErrors from '../../errors/index';
import { Model } from '../../model';
import Promise from '../../promise';
import { AbstractQuery } from '../abstract/abstract-query';
import * as con... |
import React from 'react';
import styled from 'react-emotion';
import {get} from 'lodash';
import 'intersection-observer'; // this is a polyfill
import {t} from 'app/locale';
import space from 'app/styles/space';
import Count from 'app/components/count';
import Tooltip from 'app/components/tooltip';
import {
toPerc... |
<gh_stars>1-10
import * as assert from 'assert';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Node as PMNode, Schema, Node } from 'prosemirror-model';
import { insertPoint } from 'prosemirror-transform';
import { Decoration, DecorationSet, EditorView } from 'prosemirror-view';
import ... |
<reponame>boringcrypto/DAOView
import { reactive, computed, ComputedRef } from "vue"
import Web3, { Network, connectors } from "./classes/Web3"
import { BigNumber } from "ethers"
import { GnosisSafe, GnosisTokenBalances } from "./classes/GnosisSafe"
import {
IBentoBoxV1__factory,
IMasterChefV2__factory,
IMa... |
<gh_stars>0
import Error from '@cardstack/plugin-utils/error';
import Session from '@cardstack/plugin-utils/session';
import { todo } from '@cardstack/plugin-utils/todo-any';
import {
SingleResourceDoc,
ResourceObject,
ResourceIdentifierObject,
CollectionResourceDoc,
AttributesObject,
RelationshipsObject,
... |
<filename>lib/domClassManager.ts<gh_stars>1-10
/**
* Copyright 2015-present Ampersand Technologies, Inc.
*/
import * as stringify from 'json-stable-stringify';
import * as React from 'react';
import * as deepForceUpdate from 'react-deep-force-update';
// these are here so this file can be moved out of the Ampersand e... |
/* eslint-disable class-methods-use-this */
import * as mm from 'mingru-models';
import { throwIfFalsy } from 'throw-if-arg-empty';
import { Dialect } from '../dialect.js';
import { SelectIO } from '../io/selectIO.js';
import { UpdateIO } from '../io/updateIO.js';
import { InsertIO } from '../io/insertIO.js';
import { ... |
<reponame>abidlabs/huggingface_hub<filename>interfaces/Language.ts
/**
* This dictionary is exported from
* github.com/huggingface/widgets-server
*
* Please do not modify it directly here,
* but open a PR upstream instead.
*/
const LANGUAGES: Record<string, any> = {
"aa": {
"name": "Afar",
"nativeName": "A... |
import {SpriteBase} from "./SpriteBase";
import {Classes} from "./Classes";
import {djinn_status} from "./Djinn";
import {Effect, effect_types} from "./Effect";
import {Item, item_types} from "./Item";
import {Player, fighter_types, permanent_status, main_stats, effect_type_stat, extra_main_stats} from "./Player";
impo... |
<gh_stars>10-100
import { Injectable } from '@angular/core';
import {BehaviorSubject, combineLatest} from 'rxjs';
import {environment} from '../../environments/environment';
import {HttpClient} from '@angular/common/http';
import {
AttachedFile,
AttachmentMetadata,
FileMetadata, Flashcard,
NoteObject, ParentTag... |
import { app, ipcMain, session, deprecate, webFrameMain } from 'electron/main';
import type { BrowserWindowConstructorOptions, MenuItem, MenuItemConstructorOptions, LoadURLOptions } from 'electron/main';
import * as url from 'url';
import * as path from 'path';
import { openGuestWindow, makeWebPreferences } from '@ele... |
<filename>src/puppeteer/PuppeteerUtil.ts
import * as os from "os";
import {Frame, Page, Request, Response, SetCookie} from "puppeteer";
import * as fs from "fs";
import {DownloadUtil} from "../common/util/DownloadUtil";
import {logger} from "../common/util/logger";
import {FileUtil} from "../common/util/FileUtil";
impo... |
const EventEmitter = require('events');
const mongoose = require('mongoose');
import { DBObjectId } from '../types/DBObjectId';
import ValidationError from '../errors/validation';
import DatabaseRepository from '../models/DatabaseRepository';
import { Carrier } from '../types/Carrier';
import { Game, GameSettings } fro... |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
import { deepAssign } from "../_util/deep_assign.ts";
import { assert } from "../_util/assert.ts";
class TOMLError extends Error {}
class KeyValuePair {
constructor(public key: string, public value: unknown) {}
}
class ParserGroup {
arrVa... |
/* eslint-disable no-extra-semi */
import {List as ImmutableList, Map as ImmutableMap, OrderedMap as ImmutableOMap} from "immutable";
import {ElementType, ReactElement, Factory} from "react";
////////////////
// common
/////////////////
type AnyObject = object;
type Empty = null | undefined;
type IdPath = Array<st... |
<filename>Composer/packages/client/src/store/reducer/index.ts
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import get from 'lodash/get';
import set from 'lodash/set';
import has from 'lodash/has';
import merge from 'lodash/merge';
import { indexer, dialogIndexer, lgIndexer, luIndexer, aut... |
export type PrismLanguage =
| "none"
| "markup"
| "css"
| "clike"
| "javascript"
| "abap"
| "abnf"
| "actionscript"
| "ada"
| "agda"
| "al"
| "antlr4"
| "apacheconf"
| "apex"
| "apl"
| "applescript"
| "aql"
| "arduino"
| "arff"
| "asciidoc"
| "aspnet"
| "asm6502"
| "autohotkey"
| "autoit"
| "ba... |
<reponame>appsmithorg/tracelib<filename>devtools/timelineModel/timelineUIUtils.ts
import {
TimelineRecordObject,
RecordType,
CallFrame,
TimelineCategoryObject,
Category,
NetworkCategory,
StatsObject,
StatsArray,
} from '../types'
import TimelineRecordStyle from './timelineModelFilter/tim... |
/* eslint-disable class-methods-use-this */
// Dependency Imports
import { app, BrowserWindow, nativeTheme, systemPreferences, dialog } from "electron";
import ServerLog from "electron-log";
import * as process from "process";
import { EventEmitter } from "events";
import * as macosVersion from "macos-version";
// Con... |
import React, {
useState,
useEffect,
useContext,
useReducer,
useCallback,
useMemo,
useRef,
useImperativeHandle,
useLayoutEffect,
useDebugValue,
Fragment,
Suspense,
lazy,
createContext,
ReactElement,
FunctionComponent
} from "react";
import { ReactElementLike } from "pro... |
import { CacheableFunction } from "@/typings/cacheableFunction";
import { Achievement } from "@/typings/features/achievement";
import { Board } from "@/typings/features/board";
import { Buyable } from "@/typings/features/buyable";
import { Challenge } from "@/typings/features/challenge";
import { Clickable } from "@/ty... |
<reponame>EGGaming/mangascraper
import randomUserAgent from 'random-useragent';
import { Browser, BrowserConnectOptions, BrowserLaunchArgumentOptions, LaunchOptions, Product } from 'puppeteer';
import Mangahasu, {
MangahasuGenre,
MangahasuLatestHotManga,
MangahasuManga,
MangahasuMeta,
MangahasuOptions,
} from... |
<filename>src/sharding/MasterIPC.ts
import { IPCEvent, IPCResult, IPCError, IPCEvalResults, IPCFetchResults } from '..';
import { IPCEvents, SharderEvents } from '../util/constants';
import { ShardManager } from './ShardManager';
import { Server, NodeMessage, SendOptions, BroadcastOptions } from 'veza';
import { makeEr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.