text
stringlengths
3.3k
33k
<reponame>MizovOO/Fuzzy-C-means-clustering<filename>src/app/components/fuzzy.helper.ts import { IElement } from "../model/IElement"; import { ICenter } from "../model/ICenter"; import { map, converge, xprod, prop, compose, splitEvery, head, reduce, sum, zip, unnest, divide, __, useWith, curry, identity, zipWith, assoc,...
import LZString from 'lz-string'; import * as React from 'react'; import Clipboard from 'react-clipboard.js'; import {Copy, Link, Save} from 'react-feather'; import {withRouter} from 'react-router-dom'; import {mapDispatchToProps, mapStateToProps} from '.'; import {BACKEND_URL, COOKIE_NAME, NAMES} from '../../../consta...
import fs = require('fs'); import path = require('path'); import url = require('url'); import cheerio = require('cheerio'); import Request = require('request'); var parser = require('microformat-node'); export function promisify<T>(f: (cb: (err: NodeJS.ErrnoException, res: T) => void) => void): () => Promise<T>; expor...
<reponame>Biological-Computation/crn-engine<gh_stars>1-10 // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. class WsEmGlue { constructor(public Module: any) { } /* sN:int, rNM:int, stoichM:int[], //len = rNM x sN powersM:int[], //len = rN...
import { useState, useEffect, ChangeEvent, FormEvent, useCallback, MouseEvent, } from 'react'; // third-party libraries import { useDispatch, useSelector, shallowEqual } from 'react-redux'; import validate from 'validate.js'; import { InputAdornment, Chip, TextField, Button, IconButton, Stack, Grid, } from...
import * as path from 'path'; import { promises } from 'fs'; import { COMPILER_GROUP_ID, COMPILER_USER_ID, ENV, getLangConfig, ILangConfig, NSJAIL_PATH, OUTPUT_LIMIT, RUN_GROUP_ID, RUN_USER_ID, SUB_PATH } from '../configs'; import { exec, isDef, makeTempDir, randomString, rimraf } from '../utils'; ...
<reponame>fhirfactory/pegacorn-base-docker-node-alpine-itops<filename>public/app/features/live/live.ts<gh_stars>1-10 import Centrifuge from 'centrifuge/dist/centrifuge'; import { GrafanaLiveSrv, setGrafanaLiveSrv, getGrafanaLiveSrv, config, LiveDataStreamOptions, toDataQueryError, getBackendSrv, } from '@...
import type { RecordProvide } from './Container.h'; import type { ScopeVariants, Provider, ProviderDeps, ProviderDep, ProvideDepsIterator, } from './Provider'; import { Scope, Errors } from './constant'; import { createError } from './createError'; import { DI_TOKEN } from './tokens'; /** * Маркер, который ...
<reponame>onezoomin/Dexie.js import { DBCore, DBCoreAddRequest, DBCoreDeleteRequest, DBCoreMutateResponse, DBCorePutRequest, DBCoreTable, DBCoreTransaction, Middleware } from 'dexie'; import { DBOperation } from 'dexie-cloud-common'; import { BehaviorSubject } from 'rxjs'; import { DexieCloudDB } from '...
import "reflect-metadata"; import { Arrayable, Callable, ICancelableHook, IState, ITransition, Source, Thenable, } from "./types"; import StateMachine from "./StateMachine"; import { StateMachineError } from "./Error"; // type Constructor<T = {}> = new (...args: any[]) => T; // export const STATE_MACHINE_META_...
import Model, { StoreModel, model } from './model'; import TypeInformation from './type-information'; import Reference from './reference'; import ModelReference from './references//model-reference'; import { Map, OrderedSet } from 'immutable'; import EmptyObject from './empty-object'; declare function require(name: st...
<filename>src/mnist-trainer-component/mnist-trainer-component.ts import * as tf from "@tensorflow/tfjs"; import * as d3 from "d3"; import * as moment from "moment"; import ComponentDecorator from "../common/component-decorator"; import Component from "../common/component"; import MnistDataLoader from "../mnist-data-lo...
<gh_stars>1-10 import {create as XMLRPCConfluenceCreate } from "./confluence-xmlrpc"; import {create as RESTConfluenceCreate } from "./confluence-rest"; import {SiteProcessor} from "./confluence-site"; import {rxConfig, restMatcher, resetCredentials} from "./config"; import { PathSuffix } from './confluence'; import ...
import React, { useEffect, useState } from "react"; import { Col, Card, Popover, Menu, Dropdown, Button, Icon } from "antd"; import { ComponentType } from "../../../Classes/MapTypes"; import DetailedModal from "../Modals/DetailedModal"; import { numberWithCommas } from '../../../utils/utils'; import { Detailed } from ...
import Taro, { Component } from '@tarojs/taro' import { View, Picker, Textarea, ScrollView } from '@tarojs/components' import { connect } from '@tarojs/redux' import { getProvince, getCity, getCounty } from '@/utils/barea' import moment from 'moment' import { AtButton } from "taro-ui" import CInput from '../../componen...
/** * Helpers to convert the change Payload into native JS types. */ // Adapted from epgsql (src/epgsql_binary.erl), this module licensed under // 3-clause BSD found here: https://raw.githubusercontent.com/epgsql/epgsql/devel/LICENSE export enum PostgresTypes { abstime = 'abstime', bool = 'bool', date = 'date...
// // Copyright © 2020 Province of British Columbia // // Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
<reponame>nashokkumarbabu/aswa-trivia-app import { GraphQLResolveInfo } from 'graphql'; export type Maybe<T> = T | null; export type RequireFields<T, K extends keyof T> = { [X in Exclude<keyof T, K>]?: T[X] } & { [P in K]-?: NonNullable<T[P]> }; /** All built-in and custom scalars, mapped to their actual values */ expo...
<filename>src/app.ts<gh_stars>1-10 import './main.scss'; /** * imports */ // esri config and auth import esri = __esri; import esriConfig from '@arcgis/core/config'; import Portal from '@arcgis/core/portal/Portal'; import OAuthInfo from '@arcgis/core/identity/OAuthInfo'; import OAuthViewModel from './core/viewModels...
<filename>src/network/producer.ts<gh_stars>1-10 import { GameType, GameState, SingleGameTeamInfo } from '../reducers/gameReducer'; import { BasicTeamInfo, TeamDetailInfo, PlayerPersonalInfo } from '../reducers/teamReducer'; import { Player, TeamPlayer } from '../model/player'; import { News } from '../model/news'; e...
<reponame>sebat94/PlayMatch /** * This code will automatically load the .env file in the root of your project and initialize the values. * It will skip any variables that already have been set. You should not use .env files in your production * environment though and rather set the values directly on the respective ...
import Screen from "./screen" let mockScreenArr = [ " SAT MAY 18, 2019", " ", " ", " ...
import { Component, OnInit, ViewChild, EventEmitter, Output } from '@angular/core'; import { Router } from '@angular/router'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; import { MatPaginator } from '@angular/material/paginator'; import {...
import classNames from "classnames"; import React from "react"; import ResizeObserver from "resize-observer-polyfill"; import { observer, inject } from "mobx-react"; import { debounce } from "lodash"; import { BaseComponent } from "../base"; import { EmptyImagePrompt } from "./image/empty-image-prompt"; import { ImageT...
import { promises as fs } from 'fs'; import * as github from '@actions/github'; import { Config, ToolType } from './config'; export interface BenchmarkResult { name: string; value: number; range?: string; unit: string; extra?: string; } export interface Benchmark { commit: { author: { ...
import { useState, useRef, useEffect } from 'react'; import { GetStaticPaths, GetStaticProps, NextPage } from 'next'; import { useRouter } from 'next/router'; import Head from 'next/head'; import Link from 'next/link'; import addDays from 'date-fns/addDays'; import subDays from 'date-fns/subDays'; import isAfter from '...
import '../common/inversify.config' import { Route, Controller, Get, Tags, Body, Post, Response } from "tsoa"; import { inject, provideSingleton } from "../common/inversify.config"; import { GroupService, TYPES, UserService, QueueService } from "../services/interfaces"; import { Group, Group...
import React, { useMemo } from 'react'; import { Link } from 'react-router-dom'; import { Form, Select, Tag, Tooltip, Typography } from 'antd'; import styled from 'styled-components'; import { useEntityRegistry } from '../useEntityRegistry'; import { useAppConfig } from '../useAppConfig'; import { useGetSearchResultsF...
import { Socket, createSocket, RemoteInfo } from "dgram"; import EventEmitter = require("events"); import * as nw from "./network"; import { interfaceAddress } from "./utils"; const TCNET_BROADCAST_PORT = 60000; const TCNET_TIMESTAMP_PORT = 60001; type STORED_RESOLVE = (value?: nw.TCNetDataPacket | PromiseLike<nw.TCN...
/** * Copyright (c) 2019-present, ProductBoard, Inc. * All rights reserved. */ import * as Lint from "tslint"; import * as ts from "typescript"; import { IOptions } from "tslint"; const ERROR = { LINE_ABOVE: "Insert line above.", REMOVE_EXTRA_LINE_ABOVE: (n: number) => `Remove ${n} extra line above.`, UNEXPEC...
import { ILocale } from '../interfaces/locales.interface'; import Locale from "../models/locales.model"; import { ICreateDTO, IPutDTO, IPatchDTO } from '../dtos/locales.dtos'; import { merge } from 'lodash'; import debug, {IDebugger } from 'debug'; import languagesModel from '../../languages/models/languages.model'; im...
import { MAP_ITEM_TYPES, IDLE_MOVES_LIMIT, DIFFICULTY_EASY, DIFFICULTY_HARD } from '../../constants/game'; import { getEnemyType, getPlayerTypeName } from './helpers'; import { changeMapValue, getMapItemsByType } from '../../core/utils/game'; import { GameState, Players, ApplyMoveResult } from './types'; interface C...
import _ from 'lodash'; import config from './lib/config'; import Chart from './lib/chart'; import EventTypes from './utils/events'; import { ChartType } from './utils/chart'; import Pie from './lib/pie'; import Line from './lib/line'; import XAxis from './lib/xaxis'; import YAxis from './lib/yaxis'; import Bar from '....
<reponame>Meeco/cli import * as Keystore from '@meeco/keystore-api-sdk'; import * as Vault from '@meeco/vault-api-sdk'; import { Configuration } from '@meeco/vault-api-sdk'; import { blue, green } from 'chalk'; import { debug } from 'debug'; import { Environment } from '../models/environment'; import { IKeystoreToken, ...
<gh_stars>1-10 export const items_short = [ { id: 'id-0', color: 'aliceblue' }, { id: 'id-1', color: 'antiquewhite' }, { id: 'id-2', color: 'aqua' }, { id: 'id-3', color: 'aquamarine' }, ]; export const items = [ { id: 'id-0', color: 'aliceblue' }, { id: 'id-1', color: 'antiquewhite' }, { id: 'id-2', col...
<gh_stars>0 import { ApiPromise } from "@polkadot/api"; import { AddressOrPair } from "@polkadot/api/types"; import { Bytes } from "@polkadot/types"; import { AccountId, H256, Hash, EventRecord } from "@polkadot/types/interfaces"; import { Network } from "bitcoinjs-lib"; import Big from "big.js"; import { IssueRequest...
import { createMessage } from '@src/chat/create-message'; import { CalledShot, ExplosiveTrigger, RangeRating, SuperiorResultEffect, } from '@src/data-enums'; import { ActorType, ItemType } from '@src/entities/entity-types'; import type { Explosive } from '@src/entities/item/proxies/explosive'; import type { Thr...
import {set,get,setRange} from './bitSetUtils' import { reduce } from 'lodash' import * as moves from './moves' export function getOccupancy(board) { return reduce(Array.from(board.values()), (x, y) => { return x | y }, 0n) } export function setRankMasks() { let rankMasks = []; let rank = 0n; let x = 0; while ...
import React, { useState, useEffect, useContext, useRef } from 'react'; import { SortableContainer, SortableElement, SortableHandle } from 'react-sortable-hoc'; import { LayersControlProvider } from './layerControlContext'; import { DataBCLayer, LayerMode } from '../LayerLoaderHelpers/DataBCRenderLayer'; import { DomEv...
<filename>wot-all.d.ts declare interface Thenable <R> { then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>; then <U> (onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => void): Thenable<U>; } declare class Promise <R> implements T...
import React, { Component } from "react"; import styled from "styled-components"; import AceEditor from "react-ace"; import PorterFormWrapper from "./PorterFormWrapper"; import CheckboxRow from "components/form-components/CheckboxRow"; import InputRow from "components/form-components/InputRow"; import yaml from "js-yam...
<filename>logic/src/actors/items.ts import { Layer } from "../tile" import { Actor, matchTags, SlidingState } from "../actor" import { actorDB, keyNameList } from "../const" import { LevelState } from "../level" import { Playable } from "./playables" import { LitTNT, RollingBowlingBall } from "./monsters" import { Expl...
import * as Types from './Types'; import { arrayToMap, integerTypes, compareName, toIType } from './utils'; import Printer from './Printer'; import Components from './Components'; import TypeUtils from './TypeUtils'; import IDomType from './interfaces/IDomType'; import IBuildType, { BuildType } from './interfaces/IBuil...
import {IExecuteFunctions} from 'n8n-core'; import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, NodeOperationError, } from 'n8n-workflow'; import {spawn} from 'child_process'; import * as path from 'path'; import * as fs from 'fs'; import * as tempy from 'tempy'; export interface IExecRetu...
<reponame>ts-delight/pipe.macro<filename>__specs__/transformation.spec.ts import * as path from 'path'; import { transformFileSync, transformSync } from '@babel/core'; const catchError = (fn: () => void): Error => { try { fn(); throw new Error('Exception not encountered'); } catch (e) { return e; } }...
import * as admin from 'firebase-admin'; import * as functions from 'firebase-functions'; import { DocumentBuilder } from 'firebase-functions/lib/providers/firestore'; import { Doc, DocKey, FieldSpec } from 'kira-core'; import { ActionTrigger, BuildDraft, execPropagationOps, GetDocError, getTransactionCommit,...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
<reponame>psignoret/TeamsFx // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as vscode from "vscode"; import * as path from "path"; import { ext } from "../extensionVariables"; import { TreeItem, TreeCategory, Result, FxError, ok } from "@microsoft/teamsfx-api"; import { Correlator }...
<gh_stars>0 // Type definitions for bootbot 1.0.16 // Project: https://github.com/Charca/bootbot // Definitions by: <NAME> <https://github.com/kirick1> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> export enum MessagingType { RESPONSE = 'RESPONSE', UPDATE = ...
import React from 'react'; import { ColorPicker, createColor, Color as ComponentColor } from 'material-ui-color'; import TextField from '@material-ui/core/TextField'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import { AnyObject, wrap } from ...
<reponame>turururu/Programming-Language-Benchmarks // Algrithms come from https://paulmillr.com/posts/noble-secp256k1-fast-ecc/ // https://github.com/paulmillr/noble-secp256k1/blob/main/index.ts const CURVE = { a: 0n, b: 7n, P: 2n ** 256n - 2n ** 32n - 977n, n: 2n ** 256n - 4324203865656596568524208663...
<gh_stars>10-100 // eslint-disable-next-line max-classes-per-file import { get, forEach, identity, reduce, kebabCase, find, filter, isNil, } from 'lodash'; import MJMLParser from '../mjml-parser-xml'; import shorthandParser, { borderParser } from './helpers/shorthandParser'; import formatAttributes fr...
<filename>src/components/containerbutton/containerbutton.ts<gh_stars>0 import { html, internalProperty, property, PropertyValues, TemplateResult } from 'lit-element'; import template from './containerbutton.html'; import scss from './containerbutton.scss'; import { DataSet, SearchContainer, SearchData } from '../search...
import fs from 'fs' import assert from 'assert' import path from 'path' import _debug from 'debug' import { upperFirst, camelCase } from 'lodash' import { parse, ThriftDocument, SyntaxType, IncludeDefinition, ServiceDefinition, StructDefinition, FunctionDefinition, FieldDefinition, EnumDefinition, L...
<reponame>d0rianb/UnrailEngine import { Box, adaptCanvasToDevicePixelRatio, createCanvas, getWindowDimensions, insertCanvas } from '@/core/geometry' import { Point, Vector2, V_NULL } from '@/core/math' import { Texture } from './texture' import { isWorker } from '@/helpers/utils' import { RendererError } from '@/helper...
// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Lambda */ export interface LambdaLayerVersionConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lambda_lay...
import { v4 } from 'uuid' import { sortArray, getRandomInt } from './helpers' import { notes, folders, initialSelectedNoteId, emoji } from './data' import { Note, State } from 'src/types' export const initialState: State = { notes: [...notes], folders: [...folders], key: undefined, selectedNoteId: initialSelec...
export type CoercionTypeClass = keyof typeof coercionTypesMap; export const coercionTypesMap = { WFContentItem: true, WFAppStoreAppContentItem: true, WFArticleContentItem: true, WFBooleanContentItem: true, WFContactContentItem: true, WFDateContentItem: true, WFTimeLengthContentItem: true, WFTimeContentItem: tr...
/** * @packageDocumentation * @ignore */ import WSSchema from './WSSchema'; type WSCommandConstructor = new () => WSCommand; const commandClasses: { [key: string]: WSCommandConstructor } = {}; export default abstract class WSCommand { static get schema() { return WSSchema; } static get CommandClasses() ...
// use the fauna-client to perform a series of operations on the database to // verify that the APIs function as intended, including permission restrictions. import { IAdminAPI } from '../lib/types/api-types' import { TestDatabase, TestUser, TestUsers } from '../lib/types/api-test-types' import { createFaunaAdminAPI }...
<filename>src/impl/regexParser.ts import { untruncateYear, signedOffset, parseInteger, parseMillis, ianaRegex, isUndefined, } from "./util"; import * as English from "./english"; import FixedOffsetZone from "../zones/fixedOffsetZone"; import IANAZone from "../zones/IANAZone"; import { GenericDateTime } from...
// github:tom-weatherhead/common-utilities.ts/src/numbers.ts // import { createArrayFromElement } from './arrays'; import { replicateString } from './strings'; import { isNumber, isSafeNumber } from './types'; // export function isSafeNumber(arg: unknown): boolean { // return ( // typeof arg === 'number' && !Num...
import { MappingYamlConstructor, ScalarYamlConstructor, SequenceYamlConstructor, YamlTypeComponent, YamlTypeConstructor, } from './yamlConvert'; import {DeepObject} from '@blinkk/selective-edit/dist/utility/deepObject'; import {DeepWalk} from '@blinkk/editor.dev-ui/dist/utility/deepWalk'; import {ProjectTypeS...
<gh_stars>0 import { storiesOf } from '@storybook/angular'; import { withKnobs, text, number, boolean, array, select, color, date, button } from '@storybook/addon-knobs'; import { withNotes } from '@storybook/addon-notes'; import { action, configureActions } from '@storybook/addon-actions'; import { moduleMetadata } fr...
<reponame>dannoe/crs-al-language-extension<filename>src/DynamicsNAV.ts import { QuickPickItem } from 'vscode'; import { Settings } from './Settings'; import * as crsOutput from './CRSOutput'; import { exec, spawn } from 'child_process'; import * as vscode from 'vscode'; import { settings } from 'cluster'; const open =...
<gh_stars>100-1000 /*-------------------------------------------------------------------------- smoke-node The MIT License (MIT) Copyright (c) 2019 <NAME> (sinclair) <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
import axios from "axios"; import { createCanvas, Image, registerFont } from "canvas"; import { Message } from "eris"; import fs from "fs"; import path from "path"; import { Bot } from "../../bot"; import KurisuCommand from "../../models/Command"; import { getPrimaryColorHexFromImageUrl, getUserByMessage } from "../../...
import * as c from "./constants"; import * as childProcess from "child_process"; import * as p from "vscode-languageserver-protocol"; import * as path from "path"; import * as t from "vscode-languageserver-types"; import { RequestMessage, ResponseMessage, } from "vscode-languageserver-protocol"; import fs from "fs"...
import React, { useState, useRef, useEffect } from "react" import { isMobile } from "react-device-detect" import InteractiveMap, { NavigationControl, FullscreenControl, GeolocateControl, Source, Layer, LayerProps, ViewportProps, } from "react-map-gl" import { Code, flyToBounds, getZoneCode, getMou...
export class DocumentCache { private map = {} public get<T>(key: string, orCreate: (key: string) => T): T { if (key in this.map) { return this.map[key] } const created = orCreate(key) this.map[key] = created return created } public mapChild<T>(key: string, el: Element, map: (el: Elem...
import * as fx from "../modules/fx"; type Action = { pressed: boolean; released: boolean; }; type Message = { normal: vmath.vector3; distance: number; group: hash; other_group: hash; other_id: hash; enter?: boolean; }; enum Buttons { left = 0, right = 1, up = 2, down = 3, action = 4, } int...
import { deepFreeze } from './util/object.utils'; /** * @type EventBusConfig * @description Initialization config for event bus. */ export type EventBusConfig = { /** * @field name * @description Event bus name */ name?: string; /** * @field isImmutabilityEnabled * @description ...
import { IDAOState, ISchemeState, Member /*, IProposalCreateOptionsCompetition */ } from "@daostack/client"; import * as arcActions from "../../actions/arcActions"; import { enableWalletProvider, getArc, getArcSettings } from "../../arc"; import withSubscription, { ISubscriptionProps } from "../../components/Shared/wit...
import React, { useContext, useState } from 'react'; import { withTranslation, WithTranslation } from 'react-i18next'; import { FormAppSetting, AppSettingsFormProps } from '../AppSettings.types'; import { PermissionsContext } from '../Contexts'; import { addOrUpdateFormAppSetting, findFormAppSettingValue, removeFormApp...
<filename>scripts/convertRawData/mutate.ts import { Parts } from '@/typings' import calculateCpuStats from '../../src/lib/calculations/calculateCpuStats' import calculateGpuStats from '../../src/lib/calculations/calculateGpuStats' type ValueTypes = string | number | boolean | string[] | number[] type PartType = Recor...
/** * @license * Copyright 2021 <NAME> * This code is released under the MIT license. * SPDX-License-Identifier: MIT */ import React, { useEffect, useMemo, useRef, useContext, useCallback, } from 'react'; import { ActionSheet } from 'devextreme-react/action-sheet'; import { EntityCustomFunction, CrudI...
<reponame>dyu/coreds-ui<filename>src/dom_util.ts export const UA = window.navigator.userAgent.toLowerCase(), // browser sniffing from vuejs //isIE = UA && UA.indexOf('trident') > 0, isIE9 = UA && UA.indexOf('msie 9.0') > 0 const hasClassList = 'classList' in document.documentElement, createEvent = documen...
<reponame>hubmapconsortium/ccf-ui /* eslint-disable @typescript-eslint/naming-convention */ import { Matrix4, toRadians } from '@math.gl/core'; import { CCFDatabase } from './ccf-database'; import { Filter } from './interfaces'; import { getAnatomicalStructures, getExtractionSet, getExtractionSets, getReferenceOrgan...
<reponame>ilxooxli02/cyan<filename>example/src/controller/Hello.controller.ts /* eslint-disable @typescript-eslint/no-unused-vars */ import { assert } from "console"; import { Inject } from "@coralblack/cyan/dist/core"; import { HttpHelper } from "@coralblack/cyan/dist/helper"; import { HttpMethod } from "@coralblack/c...
<reponame>loanMaster/inheritwebapp<filename>tests/mocks/mock.backend.ts<gh_stars>0 import { Page, Request, Route } from "@playwright/test"; import fs from "fs"; import { v4 as uuidv4 } from "uuid"; import { Archive } from "@/entities/archive"; import { Settings } from "@/entities/settings"; import { parseFormData } fro...
<reponame>sauvesean/Screeps-Overmind<filename>src/memory/Memory.ts import {Stats} from '../stats/stats'; import {profile} from '../profiler/decorator'; import {DEFAULT_OPERATION_MODE, DEFAULT_OVERMIND_SIGNATURE, USE_PROFILER} from '../~settings'; export enum Autonomy { Manual = 0, SemiAutomatic = 1, Automati...
import { RevealBoundaryStore } from './RevealBoundryStore.js'; import type { CachedRevealBitmap } from './utils/types.js'; import { BaseConfig } from './BaseConfig.js'; const createEmptyCanvas = () => document.createElement('canvas') as HTMLCanvasElement; export class CanvasConfig extends BaseConfig<HTMLCanvasEleme...
import { Component, OnInit, Inject } from '@angular/core'; import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout'; import { Subscription, Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { Patient } from '../patients-service/profile-classes'; import { PatientsService } from '../pati...
/** * @license * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law | a...
<reponame>iansu/berry import {xfs, NodeFS} from '@berry/fslib'; import {CommandSegment, CommandChain, CommandLine, ShellLine, parseShell} from '@berry/parsers'; import {posix} from 'path'; import {PassThrough...
import r from 'restructure'; import { resolveLength } from 'restructure/src/utils'; import CFFDict from './CFFDict'; import CFFIndex from './CFFIndex'; import CFFPointer from './CFFPointer'; import CFFPrivateDict from './CFFPrivateDict'; import { ExpertEncoding, StandardEncoding } from './CFFEncodings'; import { Expe...
import React, {useContext} from 'react'; import { Button as KittenButton, Input as KittenInput, Text as KittenText, CheckBox as KittenCheckBox, Layout as KittenLayout, Icon, StyleService, Divider, useStyleSheet, useTheme, } from '@ui-kitten/components'; import { View as NativeView, StyleSheet, ...
import express = require('express'); import multer = require('multer'); import path = require('path'); import fs = require('fs'); import mkdirp = require('mkdirp'); import archiver = require('archiver'); import async = require('async'); import config = require('./config'); import models = require('./models'); import...
<reponame>madhuprya/finalwas<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { MatSnackBar } from '@angular/material/snack-bar'; import { GameserviceService } from '../../services/gameservice.service'; import { Game } from '../../tsclasses/game'; import { Category } from '../../tsclasses/category';...
<filename>src/Commands/Miscelanious/help.ts<gh_stars>1-10 import { Collection } from "discord.js"; import { Argument, Command } from "../../Handler"; const command = new Argument("command", "single") .setDescription("An optional command or category you need help with") .setDisplayName("Command or category") ...
<filename>lib/index.ts // // original file : https://github.com/Leanny/leanny.github.io/blob/master/seedchecker/common.js // import BigIntegerDefinition from "big-integer"; import Toxtricity from "./toxtricity"; import Data from "./data"; const bigInt = require("big-integer"); const GenderRatios = require("../config...
import { closure } from "@emulsy/annotation"; import { shallowDiffers } from "@emulsy/compare"; import { beanDestroyer, BeanDestroyErrorHandler, Mediator, MediatorErrorHandlerObject } from "@mvcs/core"; import { EventDef, EventEmitter } from "@mvcs/event"; import { inject } from "@mvcs/injector"; import { Logger, loggi...
<filename>app/models/work-item.ts import { subMinutes } from 'date-fns'; import { IPagination } from 'knex-paginate'; import _ from 'lodash'; import logger from '../util/log'; import db, { Transaction } from '../util/db'; import DataOperation from './data-operation'; import { Job, JobStatus } from './job'; import Recor...
//Created by <NAME> export class Population { chromosomes:Chromosome[] crossoverRate:number; mutationRate:number; generation:number; private _fitness:Function; private _selection:string = 'roulette'; private _sumFitness:number = 0; private _tournament:number = 0; private _elitism:...
<reponame>frontmeans/input-aspects<filename>src/submit.aspect.ts import { afterAll, AfterEvent, AfterEvent__symbol, EventKeeper, mapAfter, supplyAfter, trackValue, translateAfter, } from '@proc7ts/fun-events'; import { itsEvery } from '@proc7ts/push-iterator'; import { builtInAspect } from './applied-as...
import axios from "axios"; import React from "react" import { IAMLRun, IExperimentResult, IPyBCKGExperiment } from "../components/Interfaces"; import { ISubmitResult } from "../components/utils/Form"; import Tabs from "../components/utils/Tabs"; import "../index.css" import { api_url } from "../components/utils/api"; i...
<filename>tools/android-proj-gen/src/index.ts import {BaseModuleConfig, BuildTop, GradlePrinter} from "./gradle"; import * as fs from "fs"; import * as path from "path"; import {getAndroidSdkRoot, getJavaHome} from "./android"; import {AndroidManifest} from "./androidManifest"; import {writeColorsXML, writeStringsXML} ...
import { IBall } from "./ball"; import { IBrickGrid } from "./brickGrid"; import { ICanvas } from "./canvas"; import { IGameMode } from "./mode"; import { IPaddle } from "./paddle"; import { IPlayer } from "./player"; import { controlsModalLink, gameModeSelect, aboutModalLink, settingsModalLink, gameEndModal...
import { TEXT_FIELD_FOUCS, TEXT_FIELD_DELETE, CONTAINER_CLICK, } from '../shared-utils/event' import { DragonTotem } from '../dragon-totem' import { hump2Underline, getStylePropUnit } from '../shared-utils/util' export interface Style { width?: number | string // 文本输入框宽度(px) lineHeight?: number | string // 字...
import React, { ReactNode } from "react"; import { styled } from "react-free-style"; import Link from "next/link"; const Main = styled("div"); const Container = styled("div", [ { maxWidth: 700, padding: 20, margin: "0 auto", }, // Normalize.css v8 (objectified using https://transform.tools/css-to-js...