text
stringlengths
3.3k
33k
<gh_stars>0 /***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy ...
<filename>packages/neon-core/src/sc/ScriptBuilder.ts<gh_stars>100-1000 /* eslint-disable @typescript-eslint/no-non-null-assertion */ import BN from "bn.js"; import { ensureHex, int2hex, num2hexstring, reverseHex, str2hexstring, StringStream, } from "../u"; import ContractParam, { ContractParamL...
import { autoBindMethodsForReact } from 'class-autobind-decorator'; import * as electron from 'electron'; import { Button, ToggleSwitch } from 'insomnia-components'; import * as path from 'path'; import React, { ChangeEvent, FormEvent, PureComponent } from 'react'; import { AUTOBIND_CFG, NPM_PACKAGE_BASE, PLUGIN...
import template from 'mustache'; import username from 'username'; import chalk from 'chalk'; import { v4 as uuidv4 } from 'uuid'; import path from 'path'; import fs from 'fs-extra'; import os from 'os'; import { flatten, omit, merge } from 'lodash'; import { spawnSync } from 'child_process'; import { getVersion, sortK...
const log = (c1: string, c2: string) => console.log.bind(window.console, '%c%s', `color: ${c1}; background: ${c2}; font-size: 10px; border-radius: 2px; font-weight: bold; padding: 2px`) const logi = log('#284271', '#a8e9ff') const logw = log('#7c4400', '#ffd06f') const loge = log('#be0000', '#ffcaca') logw("ReDevT...
<gh_stars>10-100 import { Json } from '../../core' import { lerp, NumberProvider, Spline } from '../../math' const COORDINATES = ['continents', 'erosion', 'weirdness', 'ridges'] as const type Point = Record<typeof COORDINATES[number], number> export class TerrainShaper { private static readonly GLOBAL_OFFSET = -0.50...
<gh_stars>0 /* * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 {QueryServiceClient, ServiceError, ValuesRequest, ValuesResponse} from '@parca/client'; import {Query} from '@parca/parser'; import {ProfileSelection} from '@parca/profile'; import React, {useEffect, useState} from 'react'; import ProfileMetricsGraph from '../ProfileMetricsGraph'; import MatchersInput from '../M...
<gh_stars>0 import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient"; import { CreateServiceRequest, CreateServiceResponse } from "../models/models_0"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandle...
// this controller does these things: // 1. map slide events to ui // 2. make sure to init correctly // - the one with (context.isAddApp === true) should call renderSlide(1) // - others wait for first sync event and restore from sync state // - if none of above happen, force doing renderSlide(1) after timeout ...
<filename>src/sources/MangaFox/MangaFox.ts import { Source } from '../Source' import { Manga, MangaStatus } from '../../models/Manga/Manga' import { Chapter } from '../../models/Chapter/Chapter' import { MangaTile } from '../../models/MangaTile/MangaTile' import { SearchRequest } from '../../models/SearchRequest/Search...
<filename>src/hunt_optimizer/stores/HuntOptimizerStore.ts<gh_stars>0 import solver from "javascript-lp-solver"; import { ItemType } from "../../core/model/items"; import { Difficulties, Difficulty, KONDRIEU_PROB, RARE_ENEMY_PROB, SectionId, SectionIds, Server, } from "../../core/model"; impo...
<reponame>chipster/chipster-web-server import { Logger, RestClient } from "chipster-nodejs-core"; import { empty, interval, of } from "rxjs"; import { catchError, mergeMap } from "rxjs/operators"; import { VError } from "verror"; import ReplaySession from "./replay-session"; import schedule = require("node-schedule"); ...
import React, { useMemo, useCallback } from 'react' import { useRouter, usePathnameWithoutNoteId } from '../../lib/router' import { useDb } from '../../lib/db' import { entries } from '../../lib/db/utils' import styled from '../../lib/styled' import { useDialog, DialogIconTypes } from '../../lib/dialog' import { useCon...
// tslint:disable max-classes-per-file // tslint:disable variable-name import { DexieClient } from './clients/dexie' import { FirestoreClient } from './clients/firestore' import { RealtimeDBClient } from './clients/rtdb' import { AbstractDatabase, DBClients, DBEndpoint, DBDoc, DBQueryWhereOperator, DBQueryW...
//Interceptor.attach(ptr(0x4344D0), { // onEnter: function (args) { // console.log("Mouse::Input a2=",this.context.edx.toInt32(), "a4=",this.context.ebx.toInt32()) // }, //}); // Interceptor.attach(ptr(0x434150), { // onEnter: function (args) { // console.log("Keyboard::Input Key=",this.context....
import React, { useState } from 'react' import { useHistory } from 'react-router-dom' import { Document, Page } from 'react-pdf' import { Button, Chip, CircularProgress, Dialog, DialogActions, DialogContent, Grid, IconButton, Modal, Paper, Typography } from '@material-ui/core' import ImageIcon f...
import { QueryResultRowType, sql as slonikSql, TaggedTemplateLiteralInvocationType, ValueExpressionType, ClientConfigurationType, DatabasePoolType, createPool, } from 'slonik' import * as fs from 'fs' import {basename, join} from 'path' import {inspect} from 'util' import {EOL} from 'os' const keys = <T...
import React, { FunctionComponent, useEffect, useState } from "react"; import { RouteComponentProps } from "react-router"; import { useParams, useLocation, useHistory } from "react-router-dom"; import ToDoListForm from "./ToDoListForm"; import * as qs from "query-string"; import { ToDoQueries } from "../../../../graphq...
/** This function removes the ansi escape characters (normally used for printing colors and so) Inspired by: https://github.com/chalk/ansi-regex/blob/master/index.js MIT License Copyright (c) <NAME> <<EMAIL>> (<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software...
import commander from "commander"; import * as fs from "fs"; import * as glob from "glob"; import { filter as createMinimatchFilter, Minimatch } from "minimatch"; import * as path from "path"; import { Configuration, Linter, LintResult, Replacement, Utils } from "tslint"; import * as ts from "typescript"; const { find...
import { G6Event, IG6GraphEvent } from '../types'; import { mat3 } from '@antv/matrix-util'; import { clone } from '@antv/util'; const DELTA = 0.05; export default { getDefaultCfg(): object { return { sensitivity: 2, minZoom: undefined, maxZoom: undefined, enableOptimize: false, op...
<filename>src/io/http.ts /** * @license * Copyright 2018 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
<reponame>rjrussell77/arrow<gh_stars>0 // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, ...
<gh_stars>1-10 import { Schem } from '../../../app/scripts/schem/schem'; import { expect } from 'chai'; import { SchemNil, AnySchemType, SchemFunction } from '../../../app/scripts/schem/types'; import { pr_str } from '../../../app/scripts/schem/printer'; /** These shouldn't be reused during unit test, unless you expl...
import cn from 'classnames' import PropTypes from 'prop-types' import React, { useImperativeHandle, useMemo, useRef, useState } from 'react' import { useUncontrolledProp } from 'uncontrollable' import useTimeout from '@restart/hooks/useTimeout' import AddToListOption, { CREATE_OPTION } from './AddToListOption' import D...
/* eslint-disable max-depth */ import { resolve } from 'path'; import hashString = require('string-hash'); import { NodePath } from '@babel/core'; import * as t from '@babel/types'; import { requireResolve, regNodeModules } from '../../help'; const cwd = process.cwd(); export type ChildrenElements = ( | t.JSXElemen...
<filename>src/pages/profile/guest-edit.profile/guest-edit.profile.ts import { TranslateService } from '@ngx-translate/core'; import { Component } from '@angular/core'; import { NavController, NavParams, ToastController, Events, LoadingController, IonicApp, Platform } from 'ionic-angular'; import { FormB...
<filename>source/rules/expect-type.ts /** * @license Use of this source code is governed by an MIT-style license that * can be found in the LICENSE file at https://github.com/cartant/eslint-plugin-dtslint * Portions of this file are copyright (c) Microsoft Corporation - see THIRD_PARTY_NOTICES. */ /* eslint @typesc...
import { Component, JSXComponent, RefObject, Ref, Mutable, ComponentBindings, Method, Event, Effect, } from '@devextreme-generator/declarations'; import { DisposeEffectReturn } from '../../utils/effect_return.d'; import { BaseWidgetProps } from '../common/base_props'; import { isDefined } from '../../...
import {Profile} from '../database/profiles' import {TaskAborted} from '../tasks/tasks' import {generate_token} from '../utils/crypt' import {Email, EmailSettings} from '../native/types' import {MustReconfigure, MustWait} from '../utils/exceptions' import {send_batch_smtp} from './smtp' import {BadEmailAddress} from '...
<gh_stars>1-10 import { GraphObject, HyperGraphDB, Restriction, SimpleGraphObject, Vertex } from 'hyper-graphdb' import { Cipher, ICrypto, Primitives } from 'certacrypt-crypto' import { CertaCryptGraph, CryptoCore } from 'certacrypt-graph' import { GraphObjectTypeNames, PreSharedGraphObject, UserKey, UserProfile, UserR...
/******************************************************************************** * Copyright (C) 2018 Red Hat, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. *...
import React, { useState, useEffect } from 'react'; import './App.css'; import { Web3ReactProvider, useWeb3React, UnsupportedChainIdError } from '@web3-react/core'; import { NoEthereumProviderError, UserRejectedRequestError as UserRejectedRequestErrorInjected } from '@web3-react/injected-connector' import { ethers ...
import { LatLon } from 'flyxc/common/src/runtime-track'; import { getDistance } from 'geolib'; import { customElement, html, LitElement, state, TemplateResult } from 'lit-element'; import { connect } from 'pwa-helpers'; import * as msg from '../../logic/messages'; import { formatDistance, formatDurationMin, formatUnit...
<reponame>billsedison/Headlessrefapp-249735-v<gh_stars>0 'use strict'; import { Injectable, EventEmitter } from '@angular/core'; import { Subscription } from 'rxjs/Subscription'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { ScrollService, INVIEW_POSITION } from './scroll.service'; import { Warn...
<reponame>suniljalandhra/Cosamwasm-Contracts /* * This is a set of helpers meant for use with @cosmjs/cli * With these you can easily use the cw20 contract without worrying about forming messages and parsing queries. * * Usage: npx @cosmjs/cli@^0.23 --init https://raw.githubusercontent.com/CosmWasm/cosmwasm-example...
import * as React from 'react'; import styles from './RemoteEventReceiverManager.module.scss'; import { cloneDeep, escape } from '@microsoft/sp-lodash-subset'; import { IEventReceiver } from '../models/IEventReceiver'; import { IList } from '../models/IList'; import { ISharePointProvider, SharePointProvider } from '../...
// Strautomator Core: Database import {DocumentReference, FieldValue, Firestore, OrderByDirection} from "@google-cloud/firestore" import {cryptoProcess} from "./crypto" import _ = require("lodash") import cache = require("bitecache") import logger = require("anyhow") import dayjs from "../dayjs" const settings = requi...
import { Arrayish, parseTransaction, bigNumberify, formatEther, hexlify, BigNumber } from 'ethers/utils'; import { TransactionResponse, TransactionReceipt } from 'ethers/providers'; import { getNetworkByChainId, getBaseAssetByNetwork, getAssetByContractAndNetwork, getStoreAccount, getNetworkById ...
import * as React from 'react'; import * as events from 'add-event-listener'; import * as ReactDOM from 'react-dom'; import LayoutEvents from '../../lib/LayoutEvents'; import RenderContainer from '../RenderContainer/RenderContainer'; import ZIndex from '../ZIndex/ZIndex'; import stopPropagation from '../../lib/events/s...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.md in the project root for license information. *----------------------------------------------------------------...
<filename>colab-webapp/src/main/node/app/src/store/card.ts<gh_stars>1-10 /* * The coLAB project * Copyright (C) 2021 AlbaSim, MEI, HEIG-VD, HES-SO * * Licensed under the MIT License */ import { createSlice } from '@reduxjs/toolkit'; import { Card, CardContent } from 'colab-rest-client'; import * as API from '../AP...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {Store} from 'redux'; import {Client4} from 'mattermost-redux/client'; import {getCurrentTeamId} from 'mattermost-redux/selectors/entities/teams'; import {getChannel, getC...
import { ReaderModel } from '@maxmind/geoip2-node' import Piscina from '@posthog/piscina' import * as Sentry from '@sentry/node' import { Server } from 'http' import net, { AddressInfo } from 'net' import * as schedule from 'node-schedule' import { defaultConfig } from '../config/config' import { Hub, JobQueueConsumer...
import React, { PureComponent, FunctionComponent, useContext } from 'react'; import _ from 'lodash'; // @ts-ignore import Highlighter from 'react-highlight-words'; import { LogRowModel, LogLabelStatsModel, LogsParser, TimeZone, calculateFieldStats, getParser, findHighlightChunksInText, } from '@grafana/da...
<reponame>michalshavit1/salto /* * Copyright 2021 Salto Labs 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 * * ...
<reponame>mooyg/hydralite /******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.o...
/** * @license * Copyright 2020 Dynatrace 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 or ag...
import React, { useEffect, useState } from 'react'; import { getConversationController } from '../../session/conversations'; import { syncConfigurationIfNeeded } from '../../session/utils/syncUtils'; import { generateAttachmentKeyIfEmpty, getAllOpenGroupV1Conversations, getItemById, hasSyncedInitialConfigurati...
<gh_stars>1-10 import * as _ from 'lodash'; import * as Immutable from 'immutable'; import { JSONSchema6 } from 'json-schema'; import { UiSchema } from 'react-jsonschema-form'; import { getSchemaType } from 'react-jsonschema-form/lib/utils'; import { modelFor } from '@console/internal/module/k8s'; import { getJSONSchem...
import * as IotaAreaCodes from "@iota/area-codes"; import GoogleMapReact, { ClickEventValue } from "google-map-react"; import { Button, Fieldset, Form, FormActions, Heading } from "iota-react-components"; import React, { Component, ReactNode } from "react"; import { ServiceFactory } from "../../factories/serviceFactory...
import { Group } from "ag-charts-community/src/scene/group"; import { Scene } from "ag-charts-community/src/scene/scene"; import { Selection } from "ag-charts-community/src/scene/selection"; import { data } from "./data"; import { FinvizMapData } from "./finviz_data"; import { Rect } from "ag-charts-community/src/scene...
/** * G2-Plot配置项 * 注意事项: * 1. 命名采用驼峰 * 2. 如果是枚举值,不使用enum,全部列出 * 3. 减少嵌套,尽量平铺配置 */ import { ShapeAttrs } from '@antv/g-base'; import { Options, AttributeOption, AdjustOption, LabelOption, MappingDatum, Element, Datum, _ORIGIN, } from '../dependents'; import { LooseMap, Maybe } from './types'; expo...
import { Dispatch, useCallback } from 'react'; import { Button, Card, Carousel, Message, MessageType, PostBackButton, QuickReply, TextMessage, TockAction, TockState, UrlButton, useTockDispatch, useTockState, WidgetData, } from './TockContext'; import { Sse } from './Sse'; export interface U...
import { A } from '@ember/array'; import type NativeArray from '@ember/array/-private/native-array'; import ArrayProxy from '@ember/array/proxy'; import { computed, get } from '@ember/object'; import { mapBy, not } from '@ember/object/computed'; type ValidationError = { attribute: string; message: string; }; /** ...
import {Component, Event, EventEmitter, h, Prop} from '@stencil/core'; import {LocationSegments, RouterHistory, injectHistory} from "@stencil/router"; import {parseQuery, queryToString} from "../../../utils/utils"; import {i18n} from "i18next"; import {resources} from "./localizations"; import {loadTranslations} from "...
import { Component, Input, Output, EventEmitter, OnInit, OnDestroy } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { ID, QuestionType, QUESTION_TYPE_CONDITIONAL, QUESTION_TYPE_CONSTANT } from '../../models'; import { Subject, Subscription, combineLatest } from 'rxjs'; import { takeUntil, map,...
import React from "react" import {Box, Container} from "@material-ui/core"; import ReactMarkdown from "react-markdown/with-html"; import CodeBlock from "../../../components/CodeBlock" import LinkRenderer from "../../../components/LinkRenderer"; import {versions} from "../../../constants"; const markdown = ` # Globally...
import { Store, StateObject, StateConfigOptions, JSON_replaceCyclicParent } from './Store'; import { Action, actionDescription, ActionTypeIsNoOp, MappingAction } from '../actions/actions'; import { MappingState } from './MappingState'; import { createActionQueue, ActionQueue } from './ActionQueue'; import { ActionProce...
<gh_stars>1-10 import { EventsList, PlayerComponent, SettingsItem, SettingsSubItem, SettingsSubMenu } from '../interfaces'; import Player from '../player'; import { EVENT_OPTIONS } from '../utils/constants'; import { sanitize } from '../utils/general'; class Settings implements PlayerComponent { #player: Player; ...
import { Message, MessageContent, AdvancedMessageContent, Client, CommandInteraction, Constants } from 'eris' import { DB, Command, IveBotCommandGenerator, Context, CommandResponse, IveBotSlashGeneratorFunction } from './imports/types.js' import { getInsult } from './imports/tools.js' import CommandParser from './clien...
import fs from "fs"; import chai from "chai"; import { Config, Helpers } from "./Config"; const expect = chai.expect; const config = new Config(); const repoApi = config.repoApi; const helpers = new Helpers(); /** * Phase1 tests: * About, App, Content library, Custom property, Engine, * Extension, Stream, System ...
import { create, assert } from "./engine" import * as DataSense from "../../index"; const testCase = create("Value observable"); testCase.add("Access", () => { let value = new DataSense.ValueController<string | number>(); // Test intialized value. assert.equals(value.get(), undefined); // We can...
<gh_stars>0 import * as React from 'react'; import { GridEvents } from '../../../constants/eventsConstants'; import { GridComponentProps } from '../../../GridComponentProps'; import { GridApiRef } from '../../../models/api/gridApiRef'; import { GridRowApi } from '../../../models/api/gridRowApi'; import { checkGridRow...
<filename>src/rendering/position.ts import Editor from '../Editor'; import { getLineNodeEnd, getLineNodeStart, HTMLLineElement } from './rendering'; import { isBRPlaceholder } from './html'; import { createTreeWalker } from './walker'; import { EditorRange } from '../doc/EditorRange'; import { Types } from '../typesett...
import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; import { ApplicationInsightsService } from 'src/app/services/application-insights.service'; import { graphlib, render, layout } from 'dagre-d3'; import { select } from 'd3'; import { FlowGraph, FlowRef, FlowEdge } from 'src/maestro-client/mode...
import { Network, Psbt } from "bitcoinjs-lib"; import { ACCOUNTMAP_SET, ACCOUNTMAP_UPDATE } from "../reducers/accountMap"; import { WalletInfo } from "bitcoin-simple-rpc"; declare global { namespace NodeJS { interface Global { document: Document; window: Window; navigator: Navigator; ipcR...
<filename>src/protocol/TextDocument.ts import * as lsp from 'vscode-languageserver'; export function applyEdits(before: string, edits: lsp.TextEdit[]): string { const sorted = edits.sort((a, b) => { if (a.range.start.line === b.range.start.line) { return a.range.start.character - b.range.start.character; ...
<gh_stars>1-10 import * as chai from 'chai' import * as chaiAsPromised from 'chai-as-promised' import { BrowserWindow, WebContents, session, ipcMain } from 'electron' import { emittedOnce } from './events-helpers'; import { closeAllWindows } from './window-helpers'; import * as https from 'https'; import * as http from...
import Vue from "vue"; import { Component, Provide, Watch, Ref } from "vue-property-decorator"; import Viewport from "../Viewport"; import Setting from "../Setting"; import Cubelet from "../../cuber/cubelet"; import World from "../../cuber/world"; import Database from "../../database"; import pako from "pako"; @Compo...
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, NgZone, OnChanges, OnDestroy, Output, SimpleChanges, } from '@angular/core'; import { ScaleRange } from '@app/domain/chart'; import { formatHours } from '@app/domain/date-time'; import { StoreState } from ...
import { Vector2 } from "three"; import { clamp01, distance, lerp, repeat } from "../utils/ToolSet"; import { CurveType, GPathPoint } from "./GPathPoint"; export class GPath { private _segments: Array<Segment>; private _points: Array<Vector2>; private _fullLength: number; constructor() { this....
import Http from 'src/common/Http'; /** * Vastaa /api/stat REST-pyynnöistä. */ class StatBackend { private http: Http; public constructor(http: Http) { this.http = http; } public getBestSets(): Promise<Array<Enj.API.BestSet>> { return this.http.get('stat/best-sets'); } public...
import React from 'react'; import pick from 'lodash/pick'; import omitBy from 'lodash/omitBy'; import isEqual from 'lodash/isEqual'; import meanBy from 'lodash/meanBy'; import mean from 'lodash/mean'; import {Location} from 'history'; import {Client} from 'app/api'; import {addErrorMessage} from 'app/actionCreators/in...
import {useEffect, useState} from "react"; import WanikaniApiService from "../service/WanikaniApiService"; import {Box, Card, CardContent, CircularProgress, Grid, Stack, Tooltip, Typography} from "@mui/material"; import {millisToDays, millisToHours} from '../../util/DateUtils'; import {WanikaniColors} from "../../Const...
import { AssetNamespace, AssetReference, toCAIP2, toCAIP19 } from '@shapeshiftoss/caip' import { convertXpubVersion, toRootDerivationPath, utxoAccountParams, } from '@shapeshiftoss/chain-adapters' import { bip32ToAddressNList, supportsBTC, supportsCosmos, supportsETH, supportsOsmosis, } from '@shapeshif...
<filename>src/gestate.ts import { Particles } from './particles' export type Milliseconds = number export interface Gesture { timeOffset: number type?: string timeLine: { x: number, y: number, t: number }[] } export class Gestate { // // Class Variables // state: { isPlaying: bo...
<reponame>intuition-robotics/thunderstorm<gh_stars>1-10 /* * Permissions management system, define access level for each of * your server apis, and restrict users by giving them access levels * * Copyright (C) 2020 Intuition Robotics * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Copyright Amazon.co...
/* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain Permission is ...
import * as React from 'react'; import { CSSProperties, makeStyles } from '@mui/styles'; import Container from '@mui/material/Container'; import List from '@mui/material/List'; import clsx from 'clsx'; import { useCallback, useMemo } from 'react'; import { DragDropContext, DroppableProvided, DropResult, Droppable,...
/** * This module contains the history of executed queries. * A new entry is created every time the user executes a query, * but also when the user changes the grouping, and when they switch between viewing hits/documents. */ import { getStoreBuilder } from 'vuex-typex'; import URI from 'urijs'; import jsonStableS...
import { snakeCase } from 'lodash'; import { differenceInSeconds } from 'date-fns'; import { Component, Input, Output, EventEmitter, OnDestroy, OnChanges, SimpleChanges, OnInit, } from '@angular/core'; import { Observable, of as observableOf } from 'rxjs'; import { switchMap, map, take, tap, ...
<reponame>SergioWorksible/snaily-cadv4 import process from "node:process"; import { Context, Delete, Get, QueryParams, Req, Res, UseBefore } from "@tsed/common"; import { BadRequest } from "@tsed/exceptions"; import { Controller } from "@tsed/di"; import { URL } from "node:url"; import { request } from "undici"; import...
'use strict'; import * as vscode from 'vscode'; import { EOL, platform } from 'os' import * as cp from 'child_process'; import * as fs from 'fs'; import * as path from 'path'; import { Platform, Operator, Operators, Register } from './language'; import { BuildTaskProvider } from './buildTaskProvider'; import { Console...
/* * importAdder.ts * Copyright (c) Microsoft Corporation. * Licensed under the MIT license. * * Provides code that figures out imports needed for symbols * used in the given range and apply them later. */ import { CancellationToken } from 'vscode-languageserver'; import { getFileInfo } from '../ana...
import { ethers } from 'ethers' import { WalletTransport, ProviderMessage, ProviderMessageRequest, EventType, ProviderMessageResponse, ProviderMessageTransport, ProviderRpcError, InitState, ConnectDetails, OpenWalletIntent, WalletSession, TransportSession } from '../types' import { WalletRequestHandler } from '....
<gh_stars>1-10 import type { AspectMain } from '@teambit/aspect'; import { ComponentType } from 'react'; import { AspectDefinition } from '@teambit/aspect-loader'; import { CacheAspect, CacheMain } from '@teambit/cache'; import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli'; import type { ComponentMain } from ...
/** * Canon information. Also, contains static information on complete list of books and localization. * * Partially converted from https://github.com/sillsdev/libpalaso/blob/master/SIL.Scripture/Canon.cs */ export class Canon { /** * Array of all book ids. * BE SURE TO UPDATE ISCANONICAL above whenever yo...
/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * Taken/adapted from DensityServer (https://github.com/dsehnal/DensityServer) * * @author <NAME> <<EMAIL>> */ import * as DataFormat from '../../common/data-format' import * as File from '../../common/file' import *...
import { htmlEscape, cssToStr, proxy } from '../util' import EventRenderer from '../component/renderers/EventRenderer' /* Only handles foreground segs. Does not own rendering. Use for low-level util methods by TimeGrid. */ export default class TimeGridEventRenderer extends EventRenderer { timeGrid: any constructo...
import React, { useEffect, useState } from 'react'; import { useDispatch } from 'react-redux'; import { Link, useHistory, useLocation, useParams } from 'react-router-dom'; import { CartesianGrid, ResponsiveContainer, Scatter, ScatterChart, Tooltip, XAxis, YAxis, } from 'recharts'; import { Button, Con...
import { EventEmitter } from 'events'; import { MessageStream, OperationDescription } from './message_stream'; import { StreamDescription, StreamDescriptionOptions } from './stream_description'; import * as wp from './wire_protocol'; import { CommandStartedEvent, CommandFailedEvent, CommandSucceededEvent } from './even...
import { Component, ElementRef, HostListener, OnInit, ViewChild } from '@angular/core'; import { Router } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import { ZithapiService } from '../../shared/services/zithapi.service'; import {UtilitiesService} from '../../shared/services/utilities.service'; ...
<reponame>Avallone-io/rls<filename>test/nestjs/e2e/rls.module.spec.ts<gh_stars>10-100 import { INestApplication } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; import { expect } from 'chai'; import { RLSConnection } from 'lib/common'; import { TenancyModelOptions } from 'lib/interfaces';...
<reponame>anhduc130/botbuilder-js /** * @module botbuilder-ai-orchestrator */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { existsSync, readFileSync } from 'fs'; import { resolve } from 'path'; import { v4 as uuidv4 } from 'uuid'; import { BoolE...
<filename>server/routing.ts import { extname, globToRegExp, join } from "https://deno.land/std@0.144.0/path/mod.ts"; import type { Route, RouteConfig, RouteMatch } from "../framework/core/route.ts"; import { URLPatternCompat, type URLPatternInput } from "../framework/core/url_pattern.ts"; import { getFiles } from "../l...
import { test, readInput } from "../utils/index" import { splitToLines } from "../utils/readInput" const prepareInput = (rawInput: string) => rawInput const input = prepareInput(readInput()) /** * For every Floor first Char is Elevator, then repeating Generator of a kind followed by Microchip of that kind * 1 if p...
import React, { Component } from 'react'; import { View, TextInput, Text, KeyboardAvoidingView, ScrollView, } from 'react-native'; import Interactions from '@aws-amplify/interactions'; import { I18n } from 'aws-amplify'; import { AmplifyButton } from '../AmplifyUI'; import { ConsoleLogger as Logger } from '@aws-am...