text
stringlengths
3.3k
33k
<gh_stars>1-10 import { compileDomain, Env, PenroseError, PenroseState, readRegistry, Trio, } from "@penrose/core"; import { Actions, TabNode } from "flexlayout-react"; import localforage from "localforage"; import { debounce } from "lodash"; import toast from "react-hot-toast"; import { atom, AtomEffec...
<gh_stars>10-100 // highlight extensions // eslint-disable-next-line @typescript-eslint/class-name-casing,@typescript-eslint/camelcase // type H_HTMLElement = HTMLElement; // eslint-disable-next-line @typescript-eslint/class-name-casing,@typescript-eslint/camelcase // interface ie_HTMLElement extends HTMLElement { // ...
import { RuntimeFunctionsAPI } from '../../lib/api/runtimeFunctions' import { getCurrentTime, literal } from '../../lib/lib' import { RuntimeFunctions, RuntimeFunction } from '../../lib/collections/RuntimeFunctions' import * as _ from 'underscore' import { check } from 'meteor/check' import { Random } from 'meteor/rand...
import { UnwrapPromiseRec, whenDefined } from "./utils"; import { P2PPromiseClient } from "../grpc-api-client/concordium_p2p_rpc_grpc_web_pb"; import * as T from "../grpc-api-client/concordium_p2p_rpc_pb"; // Constants // If GRPC_WEB_HOST is not set at build time, assume that we can access GRPC on the same host. // T...
<reponame>jdgarvey/mindspace-utils import { produce } from 'immer'; import { BehaviorSubject, Observable } from 'rxjs'; import { map, debounceTime } from 'rxjs/operators'; import { useState, useEffect, useLayoutEffect } from 'react'; import { Query, Store, StoreConfigOptions, UpdateStateCallback, applyTransa...
import ts from 'typescript'; import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { ISettingRegistry } from '@jupyterlab/settingregistry'; import { showDialog, showErrorMessage, ICommandPalette } from '@jupyterlab/apputils'; import { Signal } from '@lumino/signaling'; ...
import * as core from "@aws-cdk/core"; import * as lambda from "@aws-cdk/aws-lambda"; import * as path from "path"; import * as iam from "@aws-cdk/aws-iam"; import * as ec2 from "@aws-cdk/aws-ec2"; import * as ecs from "@aws-cdk/aws-ecs"; import * as sfn from "@aws-cdk/aws-stepfunctions"; import * as sfn_tasks from "@a...
import { EventEmitter } from "events"; import { IncomingMessage, ServerResponse } from "http"; import { Server } from "net"; import * as path from "path"; import { createClient, createConnection, createHttpClient, createHttpConnection, createServer, createWebServer, TBinaryProtocol, TBufferedTransport, ...
import React, {useState, createRef, useRef, useEffect, useLayoutEffect, useCallback} from "react"; import { StyleSheet, TextInput, View, Text, StatusBar, TouchableOpacity, KeyboardAvoidingView, SafeAreaView, Image, Platform, ActivityIndicator } from "react-native"; import Icon from '...
<filename>src/bid.ts import { NameKeyId, NameKeyMap } from './name-key-map'; import { GuardCB, GuardResult } from './guard'; import { FlowProgressInfo } from './flow-core'; import { FlowEvent, UserEvent } from './event'; export type NotRequestingBidType = "askForBid" | "extendBid" | "waitForBid" | "validateBid" | "b...
<reponame>naineet/kibana /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { cloneDeep } from 'lodash'; import { ISavedOb...
<filename>js/nodes/Image.ts<gh_stars>10-100 // Copyright 2013-2021, University of Colorado Boulder /** * A node that displays a single image either from an actual HTMLImageElement, a URL, a Canvas element, or a mipmap * data structure described in the constructor. * * @author <NAME> <<EMAIL>> */ import Bounds2 f...
import {CallbackRegistry} from "./CallbackRegistry"; import {CancelCallback, DelayCallback, Reason} from "./Reason"; /** * Creates a {@link Reason} that asserts all of the given sub-Reasons, like a * logical `and` operation or {@link Array.every `Array.every()`}. * * Note that this might not work well if two or mo...
import { FunctionComponent, Fragment, useCallback, useMemo, useState, } from 'react' import Link from 'next/link' import { TicketIcon, PlusIcon, MinusIcon, ArrowRightIcon, LocationMarkerIcon, CheckCircleIcon, XCircleIcon, } from '@heroicons/react/outline' import { getCalculatedPrice } from '.....
import { isServer, functionalUpdate, cancelledError, isDocumentVisible, noop, Console, getStatusProps, shallowEqual, Updater, } from './utils' import { QueryInstance, OnStateUpdateFunction } from './queryInstance' import { ArrayQueryKey, InfiniteQueryConfig, InitialDataFunction, IsFetchingMore...
import { attribute } from './attribute'; /** * Directive indicating which direction the Edge should point. */ export type Compass = 'n' | 'ne' | 'e' | 'se' | 's' | 'sw' | 'w' | 'nw' | 'c'; export namespace Compass { /** Upper part */ export const n: Compass = 'n'; /** Upper left */ export const ne: Compass =...
<reponame>deltaDAO/mvg-catalogue<filename>src/utils/aquarius.ts import { DID, DDO, Logger } from '@oceanprotocol/lib' import { chainId, metadataCacheUri } from '../../app.config' import { Sort } from '../models/SortAndFilters' import { FilterTerms } from '../models/aquarius/FilterTerm' import { SearchResponse } from '....
import * as util from '../util'; export class Point { constructor( public x: number, public y: number ) { } public distance(to: Point) { let a = to.x - this.x; let b = to.y - this.y; let c = Math.sqrt(a * a + b * b); return c; } public add(b: P...
import { Array1D, CostReduction, ENV, FeedEntry, Graph, InCPUMemoryShuffledInputProviderBuilder, NDArrayMath, Session, SGDOptimizer, Tensor } from 'deeplearn'; class ComplementaryColorModel { session: Session; math = ENV.math; initialLearningRate = 0.042; optimizer: SGDOptimizer; batchS...
<filename>src/hooks/v3/useAllUsersV3Balances.ts<gh_stars>0 import { batch, Context, contract } from '@pooltogether/etherplex' import { Token, TokenWithUsdBalance, useReadProviders, useCoingeckoTokenPricesAcrossChains, TokenPrices, Amount } from '@pooltogether/hooks' import { useQueries } from 'react-query' ...
<reponame>nextgis/ngw_frontend<gh_stars>0 import { GeoJsonObject, Feature, FeatureCollection } from 'geojson'; import { Color, Entity, Property, Cartesian3, PinBuilder, JulianDate, Cartographic, VerticalOrigin, HeightReference, GeoJsonDataSource, } from 'cesium'; import { isPaintCallback, isBasePain...
<reponame>Krish-sysadmin/genie-toolkit-fork // -*- mode: typescript; indent-tabs-mode: nil; js-basic-offset: 4 -*- // // This file is part of Genie // // Copyright 2020 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use...
import { baseUrl, isPlain } from "../common/url.js"; import * as json from "../common/json.js"; import { JspmError, throwInternalError } from "../common/err.js"; import { relativeUrl } from "../common/url.js"; import { alphabetize } from "../common/alphabetize.js"; import { defaultStyle } from '../common/source-style.j...
import { toast } from 'bulma-toast'; import { Pin, Shape } from './types'; import { RandomNumberGenerator } from './util/random-number-generator'; class Slider { private root: HTMLDivElement; private input: HTMLInputElement; private output: HTMLOutputElement; onchange: ((value: number) => void) | null...
import { Panel } from "./panel"; import { getErrorMessage, GetServicesDescriptor, globular, SetServicesDescriptor, GetServiceBundles } from "./backend"; import * as M from "materialize-css"; import "materialize-css/sass/materialize.scss"; import { ServiceDescriptor } from "globular-web-client/services/services_pb";...
<gh_stars>1-10 import { ItemId } from '../commons/CommonTypes'; import { GameItemType } from '../location/GameMapTypes'; import { GameSoundType } from '../sound/GameSoundTypes'; import Parser from './Parser'; export enum GameEntityType { locations = 'locations', objectives = 'objectives', bgms = 'bgms', sfxs =...
import { MarxanSandboxRunnerService } from '@marxan-geoprocessing/marxan-sandboxed-runner/adapters-single/marxan-sandbox-runner.service'; import { SingleRunAdapterModule } from '@marxan-geoprocessing/marxan-sandboxed-runner/adapters-single/single-run-adapter.module'; import { GeoFeatureGeometry } from '@marxan/geofeatu...
<reponame>muoy/Excalibur<filename>src/engine/Graphics/Context/ExcaliburGraphicsContextWebGL.ts import { ExcaliburGraphicsContext, LineGraphicsOptions, RectGraphicsOptions, PointGraphicsOptions, ExcaliburGraphicsContextOptions, DebugDraw, HTMLImageSource } from './ExcaliburGraphicsContext'; import { Matri...
import * as fs from "fs"; import { parse } from '@babel/parser'; import { default as generate } from '@babel/generator'; import { transformFromAstSync } from '@babel/core'; import * as babel from '@babel/types'; import * as zlib from 'zlib'; import { Readable } from 'stream'; import { buildEvalCheck } from './ACGParse...
<gh_stars>1-10 import {flatMap, uniqBy, mergeWith, flatten} from 'lodash'; import { module } from 'angular'; import { APPLICATION_READ_SERVICE } from 'core/application/service/application.read.service'; import { FAST_PROPERTY_READ_SERVICE } from '../fastProperty.read.service'; import { Application } from 'core/applica...
<filename>src/orthoui/button/ProgressBar.ts<gh_stars>1-10 /***************************************************************************/ /* */ /* Copyright 2018-2022 by */ /* Vily(<EMAIL>) ...
<reponame>crisp-hr/seqviz import { colorByIndex, chooseRandomColor } from "./colors"; import { dnaComplement } from "./parser"; import randomid from "./randomid"; export type SeqType = "dna" | "rna" | "aa" | "unknown"; /** * Map of nucleotide bases */ export const nucleotides = { a: "a", c: "c", t: "t", g: "g", u: ...
declare enum MarketBrowserFiltersItemElementIconMap { all = "ICON_ALL", cat_wishlist = "ICON_WISHLIST", cat_wishlist_full = "ICON_WISHLIST_FULL", cat_master = "ICON_CATEGORY_MASTER", cat_sub = "ICON_CATEGORY_SUB", cat_hide_owned = "ICON_HIDE_OWNED", cat_msfs = "ICON_EXPANSION", car_sale ...
<gh_stars>0 /* * Copyright (c) 2018 Rain Agency <<EMAIL>> * Author: Rain Agency <<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 Software without restriction, including without limita...
<reponame>clux-hub/clux import {env} from './env'; import {LoadingState, TaskCounter, deepMerge, warn} from './sprite'; export const config: { NSP: string; MSP: string; MutableData: boolean; DepthTimeOnLoading: number; } = { NSP: '.', MSP: ',', MutableData: false, DepthTimeOnLoading: 2, }; /** * 可供设置的...
import React, {memo, useCallback, useEffect, useState} from 'react'; import { FlatList, Image, ImageSourcePropType, StyleSheet, Text, View, } from 'react-native'; import SvgCalendar from '../../svgs/SignUp/SvgCalendar'; import ItemRecipe from'app/components/ItemRecipe'; import SvgBgAddedRecipe from 'app/svg...
<filename>src/ai/missions/MasonMission.ts import {Mission} from "./Mission"; import {Operation} from "../operations/Operation"; import {Agent} from "./Agent"; import {DefenseGuru} from "../operations/DefenseGuru"; import {Guru} from "./Guru"; const SANDBAG_THRESHOLD = 1000000; export class MasonMission extends Missio...
<filename>projects/ngx3js/src/lib/geometry/geometryUtils.ts import { N3JS, I3JS } from '../interface'; export type GeometryFunctionType = ( geometry: I3JS.BufferGeometry, options?: any ) => I3JS.BufferGeometry; const GeometryConf: { [key: string]: GeometryFunctionType | string; } = {}; GeometryConf.rainbowcolor1 ...
<gh_stars>0 import 'reflect-metadata'; import * as glob from 'glob'; import * as path from 'path'; import {DataTypeAbstract, DefineOptions} from 'sequelize'; import {Model} from "../models/Model"; import {IPartialDefineAttributeColumnOptions} from "../interfaces/IPartialDefineAttributeColumnOptions"; import {inferDataT...
import { partition, PartitionLayout, treemap, TreemapLayout, HierarchyNode, HierarchyRectangularNode, } from "d3-hierarchy"; import { scaleLinear, scaleSqrt, ScaleLinear, ScalePower } from "d3-scale"; import { event, select, Selection } from "d3-selection"; import { arc, Arc } from "d3-shape"; import "d3-tr...
import { DecoratorContext, ModelType, ModelTypeProperty, Program, setDecoratorNamespace, Type, validateDecoratorParamCount, validateDecoratorParamType, validateDecoratorTarget, } from "@cadl-lang/compiler"; import { reportDiagnostic } from "./diagnostics.js"; const headerFieldsKey = Symbol("headerFie...
<filename>src/algolia/stories.ts<gh_stars>0 import { log } from "../libs/logs"; import { getClient, getEnvironmentDefaultLocaleCode, getEntryByID, getTopicPage, } from "../libs/contentful-cda"; import { getIndex, AvailableIndicesKey, removeIndexObject } from "./config"; import { getLocalISOTime, secondBetweenTw...
import { Component, OnInit, AfterViewInit, ViewChild } from '@angular/core'; import { Group } from '../model/group.model'; import { Data } from '../model/data.model'; import { ActivatedRoute, Router } from '@angular/router'; import { ProcessingRequestService } from '../service/processing.request.service'; import { ClrD...
<gh_stars>0 // tslint:disable import chalk from 'chalk'; import * as path from 'path'; import * as fs from 'fs'; import { highlight, site } from '../converters'; import { toc } from '../plugins'; import { isStandalone, getCode, escapeHTML, genAttr } from '../utils/utils'; const mkdirp = require('mkdirp'); const through...
import * as path from "path"; import * as util from "util"; import { annotate, getValueFromNestedObject } from "../helpers"; import { AnalyticsEventLabelDelimiter } from "../../constants"; class Hook implements IHook { constructor(public name: string, public fullPath: string) { } } export class HooksService implem...
///////////////////////// // Module Imports ///////////////////////// import React, { FC, useState, useEffect} from 'react'; import { LedgerAccount } from '@stardust-collective/dag4-ledger'; import { makeStyles } from '@material-ui/core/styles' import { LedgerBridgeUtil } from '../../utils/ledgerBridge'; import queryS...
import React, { FunctionComponent, useContext, useState, KeyboardEvent } from 'react'; import { Button, Box, Flex, Icon, Link, Text, Badge, Image, IconButton, Menu, MenuButton, MenuList, MenuItem, Input, Portal } from '@chakra-ui/react'; import { IoMenu, IoPencil } from 'react-icons/io5'; ...
<filename>src/commands/payouts.ts import * as fs from 'fs' import {Command, flags} from '@oclif/command' import gql from 'graphql-tag' import {request} from 'graphql-request' import Big from 'big.js' import {ethers} from 'ethers' interface Token { symbol: string; } interface Pair { reserve0: string; token0: Token;...
import { FC, useState, SyntheticEvent, useEffect } from 'react'; import styled from "styled-components"; import centerOfMass from '@turf/center-of-mass'; import { polygon } from '@turf/helpers'; import { Formik, Form } from 'formik'; import * as Yup from 'yup'; import axios from "axios"; import { useFilePicker } from '...
<reponame>obsidian-craft/doppio export const enum ParseType { // A simple flag, e.g. -help FLAG, // An option that contains a value specified with colon syntax, e.g. // -ea:myPkg.... COLON_VALUE_SYNTAX, // An option that can specified as a flag, or with a value. COLON_VALUE_OR_FLAG_SYNTAX, // An option ...
import React from 'react'; import Star from '../../../../../assets/activity1/game1/star.svg'; import { random } from '../../../../../utils'; import { VARIABLES } from '../GameConstants'; // All the main face emojis (and some others) to make it easier if you want to change something! // 😀😃😄😁😆😅😂🤣🥲☺️😊😇🙂🙃😉😌...
/** * Copyright 2020 the pos-analytics authors * This file is part of the pos-analytics library in the Orbs project. * * This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. * The above notice should be included in all copies or substantial portion...
// Lightweight helper that is responsible only for math calculations. It's not bound to MobX or any UI state // (it's role of the Simulation model). Config properties are explicitly listed, so it's clear // which config options are responsible for simulation progress. // // Model partially based on: // <NAME>, <NAME>, ...
// @ts-nocheck import React, { useState, useEffect } from "react"; import "tailwindcss/tailwind.css"; import { Radio, RadioObject } from "./elements/inputs/Radio"; import { SelectObject, Select } from "./elements/inputs/Select"; import { ActionTypes, OrderTypes } from "../types/Order"; import { useAppDispatch, useAp...
<reponame>noahbrenner/national-parks import * as ko from 'knockout'; // Use an alias for `ParkMap` since we're only importing it for the type // information. The real constructor is provided later from a resolved Promise. // This avoids shadowing the variable name at that point. import {awaitDom} from './await'; import...
import { Backdrop, Box, Button, CircularProgress, createStyles, Grid, Link, makeStyles, Step, StepLabel, Stepper, Theme, Tooltip, Typography } from '@material-ui/core' import React, { useEffect, useState } from 'react' import { HelpOutline as HelpIcon } from '@material-ui/icons' import { addSectionEnrollments, get...
<gh_stars>10-100 /* * Created on Tue Apr 27 2021 * * Copyright (c) storycraft. Licensed under the MIT Licence. */ export * from './command'; export * from './loader'; export * from './context'; export * from './module'; import { AsyncCommandResult, AuthApiClient, KnownDataStatusCode, OpenChannelUserPerm, TalkChan...
/* eslint-disable import/no-unassigned-import */ /* eslint-disable no-duplicate-imports */ import { IgApiClient, TopicalExploreFeedResponseCarouselMediaItem, TopicalExploreFeedResponseMedia, } from "instagram-private-api"; import * as _ from "lodash"; import * as functions from "firebase-functions"; import * as ...
import { DfuseError, DfuseClientError, DfuseApiError, DfuseGenericApiError } from "../types/error" import { Fetch, HttpResponse, HttpQueryParameters, HttpClient, HttpHeaders, } from "../types/http-client" import debugFactory, { IDebugger } from "debug" /** * The set of options that can be used when construc...
<reponame>datagrok-ai/packages import * as grok from 'datagrok-api/grok'; import * as DG from "datagrok-api/dg"; import * as ui from "datagrok-api/ui"; import { study } from "../clinical-study"; import { addDataFromDmDomain } from '../data-preparation/utils'; import { ETHNIC, QS_CATEGORY, QS_RES, QS_RES_N, QS_SUB_CATEG...
<gh_stars>0 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { Func, TextInputQuestion, NodeType, QTreeNode, Question, SingleSelectQuestion, Option, StaticOption, OptionItem, MultiSelectQuestion, FileQuestion, NumberInputQuestion, DynamicValue, AnswerValue, ...
// Type definitions for yoga-layout 1.9 // Project: https://github.com/facebook/yoga#readme // Definitions by: tnobody <https://github.com/tnobody> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 export const ALIGN_AUTO: 0; export const ALIGN_COUNT: 8; export const ALIGN_F...
import { IModel, ModelManager, fields } from 'rev-models'; import { MongoClient, Db, MongoClientOptions } from 'mongodb'; import { IBackend } from 'rev-models/lib/backends'; import { getOwnRelatedFieldNames, IForeignKeyValues, getRelatedModelInstances, getRelatedModelListInstances } from 'rev-models/lib/backends/util...
// deno-lint-ignore-file no-explicit-any ban-types import { ActionDefinition, defineAction } from "./action.ts"; import { C } from "../layer2/cypher-sugar.ts"; import { VNID, VNodeKey } from "../lib/key.ts"; import { WrappedTransaction } from "../transaction.ts"; import { RawVNode, getAllLabels } from "../layer2/vnode-...
import { DriverConnector, DeviceInfo, MessagesMemory, Driver, DriverConfig } from "./driver"; import logger from './logger'; import { IMSIParser, SimIdentification } from "./imsi"; import { EventEmitter } from "events"; import {PDUMessage, USBInfo} from "./manager"; import {DB} from "./db"; interface Modem { driver:...
import Component from '../share/Component' import { HighlightOverlay } from './overlay/tool_highlight' import { pxToNum } from '../share/util' import ResizeSensor from 'licia/ResizeSensor' import throttle from 'licia/throttle' import lowerCase from 'licia/lowerCase' import each from 'licia/each' import Color from 'lici...
import React, { useState, useRef, useCallback, useMemo } from "react"; import { View, FlatList, Text, StyleSheet, ActivityIndicator, LayoutAnimation, UIManager, findNodeHandle, ViewStyle } from 'react-native'; import { MeasureUnitType, DataSourceType, inferIntraDayDataSourceType } from "@data-at-hand/core/measure/DataS...
<reponame>agerasev/family-tree<filename>src/data/types.ts import {InDate, InEvent, InEventType, InGender, InMarriage, InName, InPerson, InTree} from "./input"; import inputTI from "../gen/input-ti"; import {createCheckers, func} from "ts-interface-checker"; import {idCheck, mixIds, randomId} from "./id"; const checker...
import { ViewBuildOptions, ViewEntry, ImplementationEntry , BuildAppConfig, ImplementationBuildEntry , ResourceConfig , RuntimeConfiguration , DirectoriesInfo , VirtualImplementationEntry , ViewBuildEntry } from '../index.d'; import { WebpackAppConfig } from '../index-webpack.d'; import path from 'path'; import ...
import React, { useCallback, useEffect, useMemo, useState } from 'react' import { Button, Card, CardContent, Spacer } from 'react-neu' import numeral from 'numeral' import styled from 'styled-components' import indexToken from 'assets/index-token.png' import Split from 'components/Split' import useBalances from 'hoo...
<reponame>miles-crighton/perfect-freehand<gh_stars>1-10 import polygonClipping from 'polygon-clipping' /* --------------------- Helpers -------------------- */ const { hypot, cos, max, min, sin, atan2, PI } = Math const TAU = PI / 2 function projectPoint(x0: number, y0: number, a: number, d: number) { return [cos(...
import { readFile } from "fs"; import { container } from "tsyringe"; import { promisify } from "util"; import { CodeAction, CodeActionKind, CodeActionParams, CodeActionResolveRequest, Command, Connection, Diagnostic as LspDiagnostic, Position, Range, TextEdit, } from "vscode-languageserver"; import ...
<filename>src/model/NumbersColumn.ts<gh_stars>1-10 import { format } from 'd3-format'; import { boxplotBuilder, IAdvancedBoxPlotData, IEventListener, ISequence } from '../internal'; import { dialogAddons, SortByDefault, toolbar } from './annotations'; import ArrayColumn, { IArrayColumnDesc } from './ArrayColumn'; impor...
import { IgApiClient } from 'instagram-private-api'; import { REALTIME, Topics } from '../constants'; import { EventEmitter } from 'events'; import { GraphQlMessage, IrisParserData, ParsedMessage } from './parsers'; import { Commands, DirectCommands } from './commands'; import { thriftRead } from '../thrift'; import { ...
/* eslint-disable camelcase */ import axios, { Method } from 'axios' import { Bot, MessageInfo } from 'koishi-core' import * as DC from './types' import { adaptChannel, adaptGroup, adaptMessage, adaptUser } from './utils' import { readFileSync } from 'fs' import { segment } from 'koishi-utils' import FormData from 'fo...
import {GeomConstants} from '../../math/geometry/geomConstants' import {Point} from '../../math/geometry/point' import {Size, Rectangle} from '../../math/geometry/rectangle' import {Cdt} from '../../routing/ConstrainedDelaunayTriangulation/Cdt' import {CdtSite} from '../../routing/ConstrainedDelaunayTriangulation/CdtSi...
/* The CRTConsole component represents a simple terminal emulator designed as a React component. */ import React from "react"; import { logText } from "./log_example"; interface IProps {} interface IState { text: string; title: string; // cursor state cursorPosition: number; isCursorVisi...
/* * Copyright 2020 EPAM Systems * * 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 ...
import { AppBar, Button, Grid, Input, MenuItem, Select, Tab, Tabs, Typography} from '@material-ui/core'; import * as React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { bindActionCreators, Dispatch } from 'redux'; import { ICharacter } from '../../models/charac...
/** * @file ocr_rec model */ import { Runner, Transformer } from '@paddlejs/paddlejs-core'; import '@paddlejs/paddlejs-backend-webgl'; import DBProcess from './dbPostprocess'; import RecProcess from './recPostprocess'; import cv from '@paddlejs-mediapipe/opencv/library/opencv_ocr'; import { flatten, int, clip } from...
<gh_stars>100-1000 import color from 'color'; import { BASE_HEIGHT, BASE_MARGIN, BASE_TALL_HEIGHT, BORDER_WIDTH, BUTTON_HEIGHT_IN_FORM, BUTTON_INDENT, CHECKBOX_SIZE, GRID_ROW_HEIGHT, GRID_TALL_ROW_HEIGHT, HEADER_HEIGHT, INPUT_INDENT, PAGE_HEADER_HEIGHT, PARAM_HEIGHT, PIN_FAVORITE_HEIGHT, SIDE_MENU_MIN_WI...
import { JSX } from '../../jsx/jsx-namespace'; import { isBoolean, isNil, pick } from '@antv/util'; import { convertToPath, DisplayObject } from '@antv/g'; import Children from '../../children'; import Component from '../../component'; import renderJSXElement from './renderJSXElement'; import { createShape } from './cr...
import map from 'lodash/map'; import isEmpty from 'lodash/isEmpty'; import isArray from 'lodash/isArray'; import get from 'lodash/get'; import each from 'lodash/each'; import isObject from 'lodash/isObject'; import isString from 'lodash/isString'; import isUndefined from 'lodash/isUndefined'; import cloneDeep from 'lod...
import React from 'react'; import * as query from './query'; import './App.css'; import './DataTable.css'; // TODO If the size of the contents div changes: // https://www.pluralsight.com/guides/re-render-react-component-on-window-resize export interface DataTableProps { table: query.Query; refetch: any; // ...
import { Components, registerComponent } from '../../lib/vulcan-lib'; import React, { useState } from 'react'; import { reCaptchaSiteKeySetting } from '../../lib/publicSettings'; import { gql, useMutation, DocumentNode } from '@apollo/client'; import { forumTypeSetting } from '../../lib/instanceSettings'; import { useM...
import React from 'react'; import { StatusBar } from 'react-native'; import { Container, Header, HeaderAccount, BalanceText, HeaderBalance, Balance, ShowBalanceIcon, HeaderUpdated, HeaderProfileImage, Actions, TransferAction, PixAction, InvestAction, IconContainer, TransferIcon, PixIcon,...
import { Autonomous } from 'autonomous'; import WebSocket from 'ws'; import { debounce, Cancelable } from 'lodash'; import { once } from 'events'; import { boundMethod } from 'autobind-decorator'; import { readJsonSync } from 'fs-extra'; import { join } from 'path'; import { gunzipSync } from 'zlib'; // @ts-ignore impo...
import { DisplayObject } from "@pixi/display"; import yoga, { Value, Node, Layout } from "yoga-layout-wasm"; import getYoga from "./getYoga"; export const enum FlexDirection { Column = 0, ColumnReverse, Row, RowReverse, } export const enum JustifyContent { FlexStart = 0, Center, FlexEnd, ...
<filename>client/routes/customize/config.ts import lwjgl_300 from './versions/3.0.0'; import lwjgl_310 from './versions/3.1.0'; import lwjgl_311 from './versions/3.1.1'; import lwjgl_312 from './versions/3.1.2'; import lwjgl_313 from './versions/3.1.3'; import lwjgl_314 from './versions/3.1.4'; import lwjgl_315 from '....
export const LANG_EN_NAME = 'en'; export const LANG_EN_TRANS = { 'new': 'New', 'cancel': 'Cancel', 'save': 'Save', 'back': 'Back', 'filter': 'Filter', 'actions': 'Actions', 'edit': 'Update', 'yes': 'Yes', 'no': 'No', 'ok': 'Ok', 'delete': 'Delete', 'delete_question': 'Do...
<filename>src/options.ts import path from "path"; import { LoggerOptionsError } from "./errors/LoggerOptionsError"; export type formattingType = string[]; export enum fileWriteModeTypes { ASYNC = "writeFileAsync", STREAM = "writeFileStream", } export enum multilineTypes { ALWAYS = "always", AS_NEEDED...
import { Document } from './Document'; import { Reference } from './Reference'; import { isPath, isRef, isPositiveInteger, encodeValue } from './utils'; interface FromOption { /** Reference to the collection */ collectionId: string; /** Whether to make a compound query or not */ allDescendants?: boolean; } type F...
import * as React from 'react' import type { BaseChartConfig } from '../../types' interface Config extends BaseChartConfig { data: number[] labels?: string[] height: number width: number } export default class ChartBuilder { data: number[] labels: string[] startAtZero: boolean height: number wi...
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Input, NgZone, OnDestroy, Output, ViewChild, ViewEncapsulation } from '@angular/core'; import {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms'; import {coerceBool...
<reponame>mvdicarlo/testbed-electron import { Injectable } from '@angular/core'; import { Website } from '../../decorators/website-decorator'; import { WebsiteService, WebsiteStatus, LoginStatus, SubmissionPostData, PostResult } from '../../interfaces/website-service.interface'; import { WeasylSubmissionForm } from './...
import { addClass, addPlaceholder, addStickyClass, noop, position, recalculateOnNormalState, removeClass, removePlaceholder, removeResizeEvent, removeScrollEvent, removeStickyClass, toNumber, toStyleClasses } from './helper'; import * as states from './states'; import { ChangeListeners, St...
import Namespace from './Namespace'; import { AuthorizationPolicy, DestinationRule, EnvoyFilter, Gateway, ObjectValidation, PeerAuthentication, RequestAuthentication, ServiceEntry, Sidecar, Validations, VirtualService, WorkloadEntry, WorkloadGroup } from './IstioObjects'; import { ResourcePerm...
<reponame>yubrot/emitter3d<gh_stars>1-10 import * as dsl from './dsl'; import { Code } from './dsl-builder'; type Spec = { generation: number[]; strength: number; directivity: number; fineness: number; }; type Flag = { accelerate: boolean; rotate: boolean; }; export function generate(strength: number): d...
<gh_stars>1-10 // Blake2S in pure Javascript // Adapted from the reference implementation in RFC7693 // Ported to Javascript by DC - https://github.com/dcposch import { ByteArray, WordArray } from './array.ts'; export interface Blake2S { h: WordArray; // hash state b: WordArray; // input block c: number; ...
import { ADD_RECIPE } from '@/queries/graphene_graphql_mutations'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Button, FormControl, FormLabel, Grid, Input, InputLabel, MenuItem, Select, TextField, } from '@material-ui/core'; import { makeStyles, useTheme } from '@materia...