text stringlengths 9.82k 47.8k |
|---|
<filename>packages/server/src/models/ItemModel.ts
import BaseModel, { SaveOptions, LoadOptions, DeleteOptions, ValidateOptions, AclAction } from './BaseModel';
import { ItemType, databaseSchema, Uuid, Item, ShareType, Share, ChangeType, User, UserItem } from '../services/database/types';
import { defaultPagination, pag... |
<gh_stars>0
/******************************************************************************
*
* Copyright (c) 2019, the jupyter-fs authors.
*
* This file is part of the jupyter-fs library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
/* eslint... |
import React, { useEffect, useState } from 'react';
import {
ChoiceGroup, DefaultButton, DialogFooter,
Dropdown,
FontIcon,
IChoiceGroupOption,
IDropdownOption,
MessageBar,
MessageBarType,
PrimaryButton,
Stack,
TextField,
} from 'office-ui-fabric-react';
import FormLabel from "../../shared/componen... |
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 { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core';
import { EARTH, MARS, MOON, NEPTUNE, NMode, PLUTO, REFRACTION, SATURN, SolarSystem, SUN } from '@tubular/astronomy';
import { abs, cos_deg, floor, log10, max, min, mod, mod2, Point, Point3D, pow, round, sin_deg, SphericalPosition3D } from ... |
/**
* @license
* Copyright DagonMetric. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found under the LICENSE file in the root directory of this source tree.
*/
import { TranslitResult, TranslitTraceItem } from './translit-result';
import {
PostRulesStrate... |
<reponame>samjcs/legend-studio<gh_stars>0
/**
* Copyright (c) 2020-present, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
import foodImage from '../../resources/ffxiv/status/food.png';
import { UnreachableCode } from '../../resources/not_reached';
import ResourceBar from '../../resources/resourcebar';
import TimerBar from '../../resources/timerbar';
import TimerBox from '../../resources/timerbox';
import Util from '../../resources/ut... |
import * as React from 'react';
import { Debouncer, Cancellation, animateInterval, delay, easeInOutBezier } from '../viewUtils/async';
import { EventObserver, Events, EventSource, PropertyChange } from '../viewUtils/events';
import { isIE11 } from '../viewUtils/polyfills';
import { PropTypes } from '../viewUtils/react... |
<gh_stars>0
import lnService from 'ln-service'
import assert from 'assert'
import { createHash, randomBytes } from "crypto";
import moment from "moment";
import { FEECAP, FEEMIN, lnd, TIMEOUT_PAYMENT } from "./lndConfig";
import { lockExtendOrThrow, redlock } from "./lock";
import { MainBook } from "./mongodb";
import ... |
import path from 'path';
import ini from 'ini';
import fs, { existsSync, readFileSync, readJSONSync } from 'fs-extra';
import { Document, createNode } from 'yaml';
import { YAMLMap, Pair, Schema } from 'yaml/types';
import wordwrap from 'wordwrap';
import cloneDeep from 'lodash/cloneDeep';
import { xml2js } from 'xml-j... |
/*
Convenient class that provides an API to the vistorian "framework"
and the user data.
This API should be used in every visualization.
*/
import * as datamanager from 'vistorian-core/src/datamanager';
import * as utils from 'vistorian-core/src/utils';
import * as main from 'vistorian-core/src/main';
import $ from '... |
/*
Copyright (c) 2017-2018 <NAME> Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to ... |
import React, { useState, useEffect, useMemo, Children } from "react";
import styled from "styled-components";
import "./FavoritePage.css";
import "../../assets/css/Tree.scss";
import SignitureCi from "../../common/components/SignitureCi";
import AddGroupModal from "../../common/components/Modal/AddGroupModal";
import ... |
<gh_stars>100-1000
import { TextureFont, Texture } from "./t";
import {
CustomSprite,
Sprite,
CustomSpriteProps,
NativeSpriteImplementation,
NativeSpriteUtils,
PureSprite,
PureCustomSprite,
Context,
} from "./sprite";
import { Device, DeviceSize, preloadFiles, cleanupFiles } from "./device";
import { Sp... |
import { PencilIcon, TrashIcon, XCircleIcon } from '@heroicons/react/solid';
import { TrashIcon as TrashIconOutline, PencilIcon as PencilIconOutline } from '@heroicons/react/outline';
import { Component } from 'react';
import React from 'react';
import { findPopupContainer, numberToThousandsString, QuickTable, RadioOp... |
import {
ForeignKeyReference,
ParseResult,
RelationType,
Table,
} from '../core/ast'
import { StoredValue } from './storage'
const { random, floor, abs, sign } = Math
type Rect = {
left: number
right: number
top: number
bottom: number
width: number
height: number
}
export class DiagramController {... |
import * as ts from "typescript";
import { App } from "..";
import { TemplateDependency } from "../types";
import { FS_TOKEN, IFileSystem } from "../types/FileSystem";
import { Util } from "../util/Util";
import { TypeScriptUtils as TsUtils } from "./TypeScriptUtils";
const DEFAULT_ROUTES_VARIABLE = "routes";
/**
* A... |
import * as fs from "fs-extra";
import * as strip from "strip-ansi";
import * as model from "../model";
import { Chalk } from "chalk";
import * as cliTable from "cli-table2";
import { LiveDocReporter, HeaderType } from "./LiveDocReporter";
enum StatusIdentifiers {
pass = '√',
fail = 'X',
pending = '-',
... |
<filename>src/extension.ts
"use strict";
import { PerforceCommands } from "./PerforceCommands";
import { PerforceFileSystemProvider, initPerforceFsProvider } from "./FileSystemProvider";
import FileSystemActions from "./FileSystemActions";
import { PerforceSCMProvider } from "./ScmProvider";
import { PerforceService }... |
<gh_stars>0
/*
* Planck.js
* The MIT License
* Copyright (c) 2021 <NAME>, <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 limitation the... |
/*
* Dezent - Powerful pattern matching and parsing that's readable, recursive, and structured.
*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* 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 Softwa... |
import * as indexOf from 'lodash.indexof'
import * as map from 'lodash.map'
import * as ts from 'typescript'
import {
getJSDocComment,
getJSDocTagNames,
isExistJSDocTag
} from './../utils/jsDocUtils'
import { getPropertyValidators } from './../utils/validatorUtils'
import { GenerateMetadataError } from './excepti... |
export interface SvgNode extends DefaultShapeMixin, ConstraintMixin {
type: "SVG";
svg: string;
}
export function htmlToFigma(
selector: HTMLElement | string = "body",
useFrames = false,
time = false
) {
function getDirectionMostOfElements(
direction: "left" | "right" | "top" | "bottom",
elements: ... |
import {Component, ViewEncapsulation, ViewChild} from '@angular/core';
import { SupplierScheduleService, Supplier, SupplierPlanning, ValidePlanning } from '../../../shared/services/';
import { Dialog, SelectItem, Chips, Message, DataGrid, Schedule, FullCalendar } from '../../../shared/components/';
import { MessageSer... |
<reponame>petervojtek/freemap-v3-react
import { OsmTagToNameMapping } from './osmTagToNameMappingType';
export const osmTagToNameMapping: OsmTagToNameMapping = {
aeroway: {
aerodrome: 'Aereoporto',
},
aerialway: 'Via aerea, ascensore',
amenity: {
'*': '{}',
animal_breeding: 'Allevamento',
anima... |
<reponame>ryanheath/ravendb
/// <reference path="../../typings/tsd.d.ts" />
import collectionsTracker = require("common/helpers/database/collectionsTracker");
import getIndexTermsCommand = require("commands/database/index/getIndexTermsCommand");
import getDocumentsMetadataByIDPrefixCommand = require("commands/data... |
<filename>app/content/door.ts
import _ from 'lodash';
import { applyBehaviorToTile, enterZoneByTarget, playAreaSound, resetTileBehavior } from 'app/content/areas';
import { findObjectInstanceById } from 'app/content/objects';
import {
BITMAP_LEFT, BITMAP_RIGHT,
} from 'app/content/bitMasks';
import { showMessage }... |
//
// my-app-cdk-stack.ts
//
import { strict as assert } from 'assert'
import { readFileSync } from 'fs'
import {
CfnOutput,
// CfnResource,
Duration,
RemovalPolicy,
Stack,
StackProps,
SecretValue,
Tags,
} from 'aws-cdk-lib'
// import * as asg from 'aws-cdk-lib/aws-autoscaling'
// import * as codecommi... |
import NotificationPayload from '../entities/notificationPayload'
import { Reaction, REACTION_TYPE } from '../entities/reaction'
import { Project, ProjectUpdate, ProjStatus } from '../entities/project'
import { InjectRepository } from 'typeorm-typedi-extensions'
import { ProjectStatus } from '../entities/projectStatus'... |
<reponame>cjv123/mario-phaser<gh_stars>0
/* AUTO GENERATED FILE. DO NOT MODIFY. YOU WILL LOSE YOUR CHANGES ON BUILD. */
export namespace Images {
export class ImagesBackSel {
static getName(): string { return 'back_sel'; }
static getPNG(): string { return require('assets/images/back_sel.png'); }
... |
<filename>projects/forge/src/app/pages/flux-core/dev/device-manager.ts
import { ChangeDetectorRef, Component, ElementRef, OnInit, OnChanges, AfterViewInit, Inject } from '@angular/core';
import { RouterHelpersService } from "@lcu/routing";
import { jsPlumbToolkitUtil } from "jsplumbtoolkit";
import { isResultSuccess ... |
import * as THREE from "three";
import config from "../config";
import { scaleLinear } from "d3-scale";
import { depthToColor, drawEarthquakeShape } from "./earthquake-helpers";
import { drawVolcanicEruptionShape } from "./volcanic-eruption-helpers";
import {
OCEANIC_CRUST_COLOR, CONTINENTAL_CRUST_COLOR, MANTLE_BRITT... |
/**
* @fileoverview Connector that uses the Chrome Debugging protocol
* to load a site and do the traversing. It also uses request
* (https:/github.com/request/request) to download the external
* resources (JS, CSS, images).
*/
/*
* ------------------------------------------------------------------------------
... |
<gh_stars>0
import {
PortfolioPlanningQueryInput,
PortfolioPlanningQueryResult,
PortfolioPlanningQueryResultItem,
PortfolioPlanningProjectQueryInput,
PortfolioPlanningProjectQueryResult,
IQueryResultError,
Project,
WorkItem,
PortfolioPlanningWorkItemQueryResult,
PortfolioPlanning... |
<reponame>tom-berend/seen_ts
import { Color, WHITE } from "./color";
// # Raytracing
//
// **Raytracing** is a relatively simple way to render images of 3D objects.
// The core is an elegant idea, that one can simulate the real-world behavior
// of photons of light bouncing off of surfaces and colors accumulating from... |
import { NgModule, Component, ViewChild, ElementRef, AfterViewChecked, AfterContentInit, DoCheck, Input, Output, EventEmitter, ContentChildren, QueryList, TemplateRef, Renderer2, forwardRef, ChangeDetectorRef, IterableDiffers, HostListener } from '@angular/core';
import { CommonModule } from '@angular/common';
import {... |
<filename>src/slim-select/slim.ts
import SlimSelect from './index'
import { ensureElementInView, isValueInArrayOfObjects, highlight } from './helper'
import { Option, Optgroup, validateOption } from './data'
interface SingleSelected {
container: HTMLDivElement
placeholder: HTMLSpanElement
deselect: HTMLSpanEleme... |
<reponame>cakeslice/flawk.js
/*
* Copyright (c) 2020 <NAME>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Logtail } from '@logtail/node'
import { LogtailTransport } from '@logtail/winston'
import * as... |
import * as babel from '@babel/core';
import generate from '@babel/generator';
import { traceReferenceToModulePath } from '../helpers/trace-reference-to-module-path';
import traverse from 'traverse';
import { functionLiteralPrefix } from '../constants/function-literal-prefix';
import { methodLiteralPrefix } from '../co... |
<gh_stars>0
// noinspection SuspiciousTypeOfGuard
import assert from "assert";
import { Blob } from "buffer";
import type EventEmitter from "events";
import http from "http";
import {
ReadableByteStreamController,
ReadableStream,
ReadableStreamDefaultReader,
UnderlyingByteSource,
} from "stream/web";
import { ... |
<reponame>irajgreenberg/Three_Verlet<filename>src/client/spike/sketch.ts<gh_stars>0
// Organism01
// Author: <NAME>, 10/2021
// Center of Creative Computation, SMU
// Dependencies: PByte.js, Three.js,
//Original template by <NAME>:
//https://github.com/Sean-Bradley/Three.js-TypeScript-Boilerplate.git
import * as THR... |
import { lineString, Position } from "@turf/helpers";
import lineIntersect from "@turf/line-intersect";
import {LatLngExpression, CRS, LatLngBounds, latLngBounds} from "leaflet";
import { action, observable, computed, autorun, toJS } from "mobx";
import { PressureSystem, IPressureSystemOptions } from "./pressure-system... |
import { FileType } from "./FileType";
import { PLYFileTypeHandler } from "./PLYFiletypeHandler";
import { ObjFileTypeHandler } from "./ObjFileTypeHandler";
import { ThreeJSFileTypeHandler } from "./ThreeJSFileTypeHandler";
import { glTFFileTypeHandler } from "./glTFFileTypeHandler";
import { CORTOFileTypeHandler ... |
<reponame>kunpengcompute/devkit-vscode-plugin
import {
Component, EventEmitter, Input, OnChanges,
OnDestroy, OnInit, Output, SimpleChanges, ViewChild
} from '@angular/core';
import { TiModalRef, TiModalService, TiTableRowData, TiTableSrcData } from '@cloud/tiny3';
import { Subscription } from 'rxjs';
import {
Tun... |
import { Characteristic, Service } from "./index";
export class AccessoryFlags extends Characteristic {}
export class Active extends Characteristic {
static INACTIVE: ActiveState;
static ACTIVE: ActiveState;
}
export enum ActiveState {
INACTIVE = 0,
ACTIVE = 1
}
export class AdministratorOnlyAccess extends Cha... |
// @ts-ignore
import { readFileSync } from 'fs';
import * as Bin from './bin';
import * as BinTex from './bin_tex';
import * as UI from '../ui';
import * as Viewer from '../viewer';
import { BasicRenderTarget, depthClearRenderPassDescriptor, transparentBlackFullClearRenderPassDescriptor } from '../gfx/helpers/RenderTa... |
import CommandParser from "../commands/command-parser";
import CommandContext from "../commands/command-context";
import ConsoleInterface from "../console/console-interface";
import EmojiMenuManager from "../emoji-ui/emoji-menu-manager";
import CommandStore from "../commands/command-store";
import Utils from "./ut... |
<reponame>cuilei5205189/nodi<gh_stars>0
import { AmbientLight, Box3, Camera, Color, DirectionalLight, Group, LinearToneMapping, Mesh, Object3D, OrthographicCamera, Scene, Vector2, Vector3, WebGLRenderer } from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
import { EffectComposer }... |
/***************************************************************************************
* Modified implementation of the original Room class in colyseus, most of the code
* is copied directly from the version of colyseus the project was started with to prevent
* breaking changes that would come from extending or... |
import { AnimationStyles } from '@fluentui/theme/lib/motion/AnimationStyles';
import { AnimationVariables } from '@fluentui/theme/lib/motion/AnimationStyles';
import { concatStyleSets } from '@fluentui/merge-styles';
import { concatStyleSetsWithProps } from '@fluentui/merge-styles';
import { createFontStyles } from '@f... |
/*
* Copyright (c) 2020 <NAME>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import TrackedComponent from 'core/components/TrackedComponent'
import config from 'core/config'
import styles from 'core/styles'
im... |
// Mesh.tsx
import * as React from "react";
import * as THREE from "three";
import PropTypes from "prop-types";
import exact from "prop-types-exact";
import { DEFAULT_COLOR } from "../utils/styles";
import {
DEFAULT_NORMAL,
DEFAULT_NORMAL_VEC3,
MATERIAL_TYPES,
SIDE_TYPES,
EULER_ORDERS
} from "../utils/constan... |
/**
* Contains helper functions for calculating restrictions of changing active
* `Activatables`: Minimum level, maximum level and if the entry can be removed.
*
* @author <NAME>
*/
import { not, notP } from "../../../Data/Bool"
import { equals } from "../../../Data/Eq"
import { flip, Functn, thrush } from "../..... |
<filename>js/plates-view/plate-mesh.ts<gh_stars>1-10
import * as THREE from "three";
import vertexShader from "./plate-mesh-vertex.glsl";
import fragmentShader from "./plate-mesh-fragment.glsl";
import VectorField from "./vector-field";
import ForceArrow from "./force-arrow";
import TemporalEvents from "./temporal-even... |
<reponame>quadre-code/quadre
/*
* 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 documentation ... |
<gh_stars>1-10
import {
is,
each,
noop,
flush,
isEqual,
toArray,
FluidValue,
getFluidConfig,
getFluidValue,
isAnimatedString,
Animatable,
} from '@react-spring/shared'
import {
AnimatedType,
AnimatedValue,
AnimatedString,
AnimatedArray,
getPayload,
getAnimated,
setAnimated,
Animate... |
import { stateType } from "../../types/stateType";
const mg: stateType = {
state: 'Minas Gerais',
abbreviation: 'mg',
cities: [
'Abadia dos Dourados',
'Abaeté',
'Abre Campo',
'Acaiaca',
'Açucena',
'Água Boa',
'Água Comprida',
'Aguanil',
'Águas Formosas',
'Ág... |
/**
@module @ember/object
*/
import { getFactoryFor, setFactoryFor } from '@ember/-internals/container';
import { getOwner } from '@ember/-internals/owner';
import type { Owner } from '@ember/-internals/owner';
import { guidFor, makeArray, isInternalSymbol } from '@ember/-internals/utils';
import { meta } from '@emb... |
import {ITable} from 'phovea_core/src/table';
import {list as listData, getFirstByName, get as getById} from 'phovea_core/src/data';
import {VALUE_TYPE_CATEGORICAL, VALUE_TYPE_INT, VALUE_TYPE_REAL, VALUE_TYPE_STRING} from 'phovea_core/src/datatype';
import * as range from 'phovea_core/src/range';
import * as events fro... |
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';
import * as tss from 'typescript/lib/tsserverlibrary';
import { SchematicContext, Tree, FileVisitor } from '@angular-devkit/schematics';
import { WorkspaceSchema } from '@schematics/angular/utility/workspace-models';
import {
... |
import { ActionClass, deriveMethodSignature, describeActionParameter, ActionParameter, PickledClass, VisibilityFilter, ActionMethod } from './action-elements';
import { classAmbients, methodAmbients, generalAmbients } from './ambient-symbols';
import { ActionParser, recursiveReplace } from './action-parser';
import { L... |
<filename>maple/src/index.ts<gh_stars>1-10
import { BehaviorSubject } from 'rxjs';
import { MapleColorHelper } from './helpers/color.helper';
import { MAPLE_PROP_EXTENSION_MAP } from './property-extension-map';
import { MapleVariableModel } from './types/variables.model';
import {
getMapleUtilityClassMap,
getMapleU... |
import React from 'react'
import {Dimensions,View,ImageProps, TextProps, Animated,LayoutAnimation,UIManager,Alert} from 'react-native'
import {useTheme,Layout as Lay, Text,Input,Divider,Icon,Menu,MenuItem} from '@ui-kitten/components'
import {openBrowserAsync} from 'expo-web-browser'
import {gql} from 'graphql-request'... |
// Copyright 2019-2022 @polkadot/extension-koni-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { faArrowLeft } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import BigN from 'bignumber.js';
import React, { useCallback, useContext, u... |
<filename>src/app/component/single_comparison_details/single_comparison_diagram_parameter/single_comparison_diagram_parameter.component.ts<gh_stars>1-10
import { Component, OnInit, OnDestroy, Output, EventEmitter, Input, TemplateRef, OnChanges, SimpleChanges, AfterViewInit } from '@angular/core';
import 'rxjs/add/obser... |
/*
* Copyright (c) 2020 <NAME>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import TrackedComponent from 'core/components/TrackedComponent'
import config from 'core/config'
import styles from 'core/styles'
im... |
<filename>index.ts
var infoModal = document.getElementById("infoModal");
var helpButton = document.getElementById("help");
var shareButton = document.getElementById("share");
var spanHelp = document.getElementsByClassName("close-help")[0];
var keyboardDiv = document.getElementById("keyboard");
var answerDiv = document... |
<filename>controls/maps/demos/MapData/Populationdata.ts
/**
* Countries population
*/
//tslint:disable
export let population: any = [
{ 'name': 'Afghanistan', 'value': bubblesize(32358260), 'color': '#7F38A0 ' },
{ 'name': 'Albania', 'value': bubblesize(32159880), 'color': '#2E769F' },
{ 'name': 'Algeria'... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
<reponame>chandusekhar/Seal-Report
/// <reference path="typings/jquery/jquery.d.ts" />
/// <reference path="typings/bootstrap/index.d.ts" />
/// <reference path="typings/jstree/jstree.d.ts" />
/// <reference path="typings/main.d.ts" />
var $waitDialog: JQuery;
var $editDialog: JQuery;
var $folderTree: JQuery;
var $l... |
/*
Copyright (c) 2020 <NAME> Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to use Cocos Cre... |
import { DraftContent } from 'ricos-content';
import {
EditorState,
Modifier,
RichUtils,
SelectionState,
AtomicBlockUtils,
ContentBlock,
ContentState,
RawDraftEntity,
EditorChangeType,
EntityInstance,
} from '@wix/draft-js';
import DraftOffsetKey from '@wix/draft-js/lib/DraftOffsetKey';
import { cl... |
/*
* Copyright 2017-19 IBM 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 applicable law or agreed ... |
/// <reference path="sandbox.ts" />
enum PropertyUpdateDecision {
Add, Remove, Update
}
/* TODO: show full inheritance chain of type when type element hovered with mouse.
* UPD: it hard to distinguish types of objects without constructor. All their types
* will be displayed as Object, so inheritance chain will be ... |
<gh_stars>1-10
import { OpenAPIV3 } from 'openapi-types';
import { SchemaType, TSBufferProto, TSBufferSchema } from 'tsbuffer-schema';
import { TSBufferValidator } from 'tsbuffer-validator';
import { ServiceProto } from 'tsrpc-proto';
import { processString } from 'typescript-formatter';
import { ApiService, ServiceMap... |
import { Lesson, Module, GenericTimetable } from './generic_timetable';
import { Z3WeekSolver } from './z3_weeksolver';
import { flipRecord, StringIdGenerator } from '../util/utils';
import { Z3Timetable, SlotConstraint, UNASSIGNED, FREE, TOOEARLY_LATE } from './z3_timetable';
import { DAYS, DAY_IDXS, HOURS_PER_DAY, I... |
import ReactReconciler, {FiberRoot} from 'react-reconciler';
import {convertUnit, cached} from 'style-unit';
import {GameObject, Game, Component, System} from '@eva/eva.js';
import {RendererSystem} from '@eva/plugin-renderer';
import {Render, RenderSystem} from '@eva/plugin-renderer-render';
import {Text, TextSystem} f... |
"use strict";
import {RESTService} from "../RESTService";
export {};
import {XMPPUTils} from "../../common/XMPPUtils";
import {Conversation} from "../../common/models/Conversation";
import {Channel} from "../../common/models/Channel";
import {isNullOrEmpty, logEntryExit} from "../../common/Utils";
import {AlertMess... |
/**
* Copyright 2014-present Palantir Technologies
* @license MIT
*/
import * as d3 from "d3";
import * as d3Shape from "d3-shape";
import * as Animators from "../animators";
import { Dataset } from "../core/dataset";
import { AttributeToProjector, IAccessor, IRangeProjector, Point, Projector } from "../core/inter... |
<gh_stars>0
// Copyright 2019 Espressif Systems (Shanghai) CO 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 require... |
import { ResizedEvent } from 'angular-resize-event';
import * as d3 from 'd3';
import {
ProjectEvent,
ProjectEventTemplate,
Increment,
IncrementsService,
InlineObject,
Milestone,
MilestonesService,
ProjectService,
Task,
TasksService,
Timeline,
TimelinesService,
} from 'dipa-api-client';
import {... |
/* global DEBUG */
declare const DEBUG: boolean;
export interface Abortable {
abort: () => void;
}
export interface SerializeOptions {
data: any;
method: HTTPMethod;
processData: boolean;
contentType?: string;
url: string;
cache: boolean;
}
export interface SerializeResult {
url: string;
data: any;
}
expor... |
import * as React from 'react';
import {
IDatePickerProps,
IDatePickerStrings,
DatePickerFormat,
IDatePickerStyles,
IDatePickerStyleProps
} from './DatePicker.types';
import {
Calendar,
ICalendar,
DayOfWeek
} from '../../Calendar';
import { FirstWeekOfYear } from '../../utilities/dateValues/DateValues';... |
<filename>src/sdk/instruments/NavCom.ts
/// <reference types="msfstypes/JS/simvar" />
/// <reference types="msfstypes/JS/Avionics" />
import { ComSpacingChangeEvent } from '.';
import { ControlEvents } from '../data/ControlPublisher';
import { EventBus, PublishPacer } from '../data/EventBus';
import { EventSubscriber }... |
<reponame>Rainbow-CPaas/Rainbow-Node-SDK
"use strict";
import {accessSync} from "fs";
import {XMPPService} from "../XMPPService";
import {logEntryExit} from "../../common/Utils";
export {};
const Utils = require("../../common/Utils");
//const Conversation = require("../../common/models/Conversation");
//co... |
import React from "react";
import { connect, shallowEqual } from "react-redux";
import * as d3 from "d3";
import Async from "react-async";
import memoize from "memoize-one";
import * as globals from "../../globals";
import actions from "../../actions";
import { makeContinuousDimensionName } from "../../util/nameCreator... |
<gh_stars>0
import { EventBus } from "event/EventBuses";
import { Events, IEventEmitter, Priority } from "event/EventEmitter";
import EventManager, { EventHandler } from "event/EventManager";
import { ActionType } from "game/entity/action/IAction";
import Creature from "game/entity/creature/Creature";
import { IDamageI... |
<reponame>mloberg/dwight-discord-bot
import { sample } from 'lodash';
import spells from './spells';
const spell = async (lvl: number) => {
const list = await spells();
const options = list.filter((s) => s.level === lvl);
const selected = sample(options);
return selected ? selected.spell : `A level $... |
<filename>src/data/content/assessment/question.ts
import * as Immutable from 'immutable';
import * as ct from 'data/contentTypes';
import { ContentElements } from 'data/content/common/elements';
import { ALT_FLOW_ELEMENTS, QUESTION_BODY_ELEMENTS } from 'data/content/assessment/types';
import { Part } from 'data/content... |
import * as core from '@spyglassmc/core'
import type * as nbtdoc from '@spyglassmc/nbtdoc'
import type { ResolvedRootRegistry } from '@spyglassmc/nbtdoc'
import { localeQuote, localize } from '../../../locales/lib'
import type { NbtByteNode, NbtNode, NbtNumberNode, NbtPathNode, NbtPrimitiveArrayNode } from '../node'
im... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2015, xuewen.chu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sourc... |
import { GIModel } from '@libs/geo-info/GIModel';
// import @angular stuff
import { Component, Input, OnInit, OnDestroy } from '@angular/core';
// import app services
import { DataService as MD } from '@services';
import { ColorPickerService } from 'ngx-color-picker';
import { DataAframeService } from './data/data.afra... |
<gh_stars>0
import * as d3 from 'd3';
import * as L from 'leaflet';
import { FaultlineModule, OutlineModule, WellboreModule, GeoJSONModule, FieldModule } from '../../src';
import { RootData } from '../../src/utils/wellbores/data';
import processExploration from './processExploration';
import removeExpDuplicates from '.... |
import {Injectable} from '@angular/core';
import Cartesian3 from 'cesium/Source/Core/Cartesian3';
import CesiumTerrainProvider from 'cesium/Source/Core/CesiumTerrainProvider';
import GeoJsonDataSource from 'cesium/Source/DataSources/GeoJsonDataSource';
import GetFeatureInfoFormat from 'cesium/Source/Scene/GetFeatureIn... |
<filename>test/test-ts.ts
import * as mcl from 'mcl-wasm'
import * as assert from 'assert'
import { performance } from 'perf_hooks'
const curveTest = (curveType, name) => {
mcl.init(curveType)
.then(() => {
try {
console.log(`name=${name}`)
FrTest()
G1Test()
G2Test()
... |
import { EventType, Stat } from 'engine/enums';
import { Npc, Player } from 'engine/models';
import _events from 'engine/events';
import _config from 'engine/config';
import { lootItem, weightedRandom, randomValue } from 'shared/util';
import { invHasSpace, giveItem } from 'shared/inv';
import { sendMessage, sendSpamM... |
// tslint:disable member-ordering
/*
-- gin
* Construction/Registration:
constructor, registerDeeds, registerInstance, Store.assign.to, subscribe, watch
* Initialization
initRequestDeed, initActionDeed, initStubDeed, initFlowDeed, generateAction, makeFetchCall
* Cleanup
unsubscribe, unwatch, disconnect, resetBatch, en... |
<gh_stars>100-1000
import { Component, OnInit, OnDestroy, ViewEncapsulation } from '@angular/core';
import * as d3 from 'd3';
import * as d3Sankey from 'd3-sankey';
import { DAG, SNode, GraphService, CategoryList, FilterCriteria } from '../graph.service';
import { DialogsService } from './../dialogs.service';
import { ... |
<filename>src/TapeBrowser.ts
import {frameToTimestamp} from "./AudioUtils";
import * as BasicRender from "./BasicRender";
import * as SystemProgramRender from "./SystemProgramRender";
import * as CmdProgramRender from "./CmdProgramRender";
import * as Hexdump from "./Hexdump";
import {Program} from "./Program";
import ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.