text
stringlengths
3.08k
15.5k
import { render, screen, waitFor } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { EditLocationMapProps } from "components/EditLocationMap"; import { BIRTHDAY_PAST_ERROR, GENDER_REQUIRED, SIGN_UP, SIGN_UP_BIRTHDAY, SIGN_UP_LOCATION_MISSING, SIGN_UP_TOS_ACCEPT, ...
<reponame>angelakuo/jupyter-extensions<gh_stars>0 // Internal export interface AsyncState<T> { loading: boolean; error?: string; data?: T; } export interface MetricSpec { goal: GoalType; metric: string; } /** * 'Const assignment" used to control the string inputs in dropdown input fields. * String enums ...
import type * as AST from '&/core/ast.types'; import { last } from '&/utils/list'; import { mapByType, Typed } from '&/utils/nodes'; import * as js from './nodes'; export const program = (node: AST.Program): js.Program => { return js.program(node.entries.map(statement)); }; export const declaration = (node: AST.D...
/** * Created by issi on 31.10.21 */ import { Box, Button, Chip, Dialog, DialogActions, DialogContent, DialogTitle, FormControl, Grid, InputLabel, MenuItem, OutlinedInput, Select, } from '@mui/material'; import { Theme, useTheme } from '@mui/material/styles'; import { useI18n, useIoBrokerState, useIoBrok...
import clipper from 'js-clipper'; import NP from 'number-precision'; import CV from '@paddlejs-mediapipe/opencv/library/opencv'; const Polygon = require('d3-polygon'); export default class DBPostprocess { private thresh: number; private box_thresh: number; private max_candidates: number; private uncli...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { HttpClientModule } from '@angular/common/http'; import { BrowserAnimationsModule } from '@angular/p...
import nock from "nock"; import {createMockClientFromResponse} from "../__mocks__/base"; import Payout from "../services/payout"; import Client from "../client"; import StoreDetailRequest = IPayouts.StoreDetailRequest; import {ApiConstants} from "../constants/apiConstants"; const storeDetailAndSubmitThirdParty = JSON....
import { core, flags, SfdxCommand } from '@salesforce/command'; import { Batch } from '@salesforce/core/node_modules/@types/jsforce'; import { AnyJson } from '@salesforce/ts-types'; core.Messages.importMessagesDirectory(__dirname); const messages = core.Messages.loadMessages('osiecki-sfdx-plugins', 'delete'); export ...
<filename>test/ImportTest.ts<gh_stars>0 /* * Copyright (C) 2017-2019 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ import * as fs from "fs"; import * as glob from "glob"; import * as path from "path"; import { assert } from "chai"; // tslint:di...
<filename>test/helpers/episode-data-helper.ts /* eslint-disable @typescript-eslint/naming-convention */ import { IEpisodeInfo, IEpisodeWithRating, IRatingInfo } from "@/interfaces/IRatingInfo"; const mockedRating1 = { episode: "1-1", ig_score: 100, id: "dafd33-daff35-fdad89", episode_number: 1, game: "MyGame...
<reponame>dawangraoming/hamter /*! * @author dawangraoming<<EMAIL>> * @date 2018/6/2 */ // import {IpcModule} from '../utils/ipc'; import {ipcMain, BrowserWindow, Menu, MenuItem} from 'electron'; import * as dbService from './modules/db-service'; import * as sqlite from 'sqlite'; import {v1 as uuid} from 'uuid'; ...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2018 Realm Inc. // // 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/li...
<gh_stars>100-1000 import { GraphQLSchema, DocumentNode, TypeDefinitionNode, DirectiveDefinitionNode, isTypeDefinitionNode, TypeExtensionNode, isTypeExtensionNode, GraphQLError, buildASTSchema, Kind, extendSchema, isObjectType, SchemaDefinitionNode, OperationTypeNode, SchemaExtensionNode, ...
<filename>client/src/logic/GameLogicJd.ts /** * @author svenballet * @date 2017-08-23 */ enum BetLevel { small = 1000, middle = 10000, big = 100000 } class GameLogicJd { public betNum: BetLevel = BetLevel.small; private lastList:Array<number>; private static _zInstance: GameLogicJd; ...
<reponame>yuribro/salto<filename>packages/zendesk-support-adapter/src/filters/tag.ts /* * Copyright 2022 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 ...
<reponame>yuce/hazelcast-nodejs-client /* * Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
import { UniqueEntityID } from "../../../shared/domain/UniqueEntityID" import { UserId } from "../../users/domain/UserId" import { CookedRecipe, CookedRecipeProps } from "../domain/CookedRecipe" import { NutritionFactsProps, NutritionFacts } from "../domain/NutrtionFacts" import { RecipeProps, Recipe } from "../domain/...
<filename>app/src/redux/nav/selectors.ts import { createSelector } from 'reselect' import { getConnectedRobot } from '../discovery' import { getProtocolPipettesMatching, getProtocolPipettesCalibrated, getAttachedPipetteCalibrations, PIPETTE_MOUNTS, } from '../pipettes' import { selectors as RobotSelectors } fr...
import {Stream} from 'xstream'; import {ReactElement, createElement} from 'react'; import {render} from 'react-dom'; import {ReactSource, makeCycleReactComponent} from '@cycle/react'; export function makeDOMDriver(container: any) { return function domDriver(sink: Stream<ReactElement<any>>) { const source = new R...
<filename>src/backend/ModelGraph.ts<gh_stars>1-10 import GedcomX, {setReferenceAge} from "./gedcomx"; import viewGraph, {GraphFamily, GraphPerson, view} from "./ViewGraph"; import {translationToString} from "../main"; class ModelGraph { persons: GraphPerson[] relationships: GraphFamily[] constructor(data) { ...
import { extent, max } from 'd3-array'; import { axisBottom, axisLeft } from 'd3-axis'; import { scaleLinear, scaleTime } from 'd3-scale'; import { select } from 'd3-selection'; import { line } from 'd3-shape'; import { JSDOM } from 'jsdom'; import { flatMap } from 'lodash'; import moment from 'moment'; import { IMetr...
/* * 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 * * Unless requi...
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2022 <NAME>. All rights reserved. https://xdsoft.net */ /** * @module helpers/utils */ import type { CanPromise, IControlType, IDictionary, IViewBased, Nulla...
import React from "react" import { Field, reduxForm } from "redux-form" import { themeSettings, text } from "../../lib/settings" import { Link, Redirect, NavLink } from "react-router-dom" import Lscache from "lscache" const validateRequired = value => value && value.length > 0 ? undefined : text.required const vali...
"use strict"; declare var tardigrade; import { SearchPanel } from "./SearchPanel"; import { Card } from "./Card"; export type BaseDto = string | { _?: string; // node's text content $?: { [attributeName:string]: string | number }; // node's attribute values } /** * Template's DTO interface. * Used to crea...
"use strict"; import { Disposable, ExtensionContext, IndentAction, LanguageConfiguration, OnEnterRule, TextEditor, TextEditorEdit, commands, languages, workspace, } from "vscode"; import { Rules } from "./rules"; let fs = require("fs"); export class Configuration { private readonly extensionNa...
/* * 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 * * Unless requi...
<filename>source/lib/sessions/cookies.ts import * as session from "express-session"; import * as ConnectRedis from "connect-redis"; import * as passport from "passport"; import * as LocalStrategy from "passport-local"; import { IMiddleware, isUndefined } from "../../lib.com" import * as mongo from "mongojs"; import { H...
/// <reference path="../bluebird.d.ts"/> interface IClassControl { get: () => string; set: (name: string) => void; } export interface IEntity { id: string; [propName: string]: any; } type ISortProperty = string | [string, "asc" | "desc"]; let classNameCtrl = function (el: Element): IClassControl { ...
//size is a special case and handled checking the actual values in the size array export const xyFrameDataProps = [ "lines", "points", "areas", "summaries", "xScaleType", "yScaleType", "xAccessor", "yAccessor", "lineDataAccessor", "areaDataAccessor", "summaryDataAccessor", "lineType", "showLi...
/** @jsx jsx */ import { jsx } from '@keystone-ui/core'; import { Editor, Node, Path, Range, Transforms } from 'slate'; import { ReactEditor, RenderElementProps } from 'slate-react'; import { paragraphElement } from './paragraphs'; import { debugLog, getBlockAboveSelection, isBlockActive, isFirstChild, isLa...
import React, { useState } from 'react'; import { HStack, Box, FormControl, FormLabel, FormHelperText, FormErrorMessage, Button, Tooltip, } from '@chakra-ui/react'; import { isEmpty } from 'lodash-es'; import { AnyKind, UnknownKind, Type, Static } from '@sinclair/typebox'; import { css } from '@emotion/...
<reponame>katai5plate/RPGMakerPlugins<filename>js/plugins/_types/mz/core/Tilemap.ts import * as PIXI from "pixi.js"; import { Bitmap } from ".."; export declare class Tilemap extends PIXI.Container { constructor(); public destroy(): void; public setData(width: number, height: number, data: number[]): void; pub...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import fs from "fs"; import path from "path"; import { ExtensionContext } from "vscode"; import TelemetryReporter from "vscode-extension-telemetry"; // Allow unused variables in the mocks to have leading underscore ...
import { useState, useEffect } from 'react' import { Alert } from '../components/alerts/Alert' import { Grid } from '../components/grid/Grid' import { Keyboard } from '../components/keyboard/Keyboard' import Meta from '../components/Meta' import { AboutModal } from '../components/modals/AboutModal' import { InfoModal ...
import { connect } from 'mqtt'; import { Route, ApiVehicle, Vehicle, ApiRoute } from './types'; import { latLng, LatLng } from 'leaflet'; import EventEmitter from 'eventemitter3'; let routes : { [gtfsId: string]: Route } = JSON.parse(localStorage.getItem("routes") || "{}"); let polylines = {}; let subscriptions: strin...
import { Result, Log, Invocation } from 'sarif'; import { RunFlags, TaskError, Action, CheckupConfig, Task, TaskContext, ui, CheckupError, getRegisteredActions, getConfigPathFromOptions, getConfigPath, readConfig, registerParser, registerActions, registerTaskReporter, loadPlugins, getR...
<reponame>Lotte321/taxinomitis // external dependencies import * as fs from 'fs'; import * as path from 'path'; import * as async from 'async'; import * as tmp from 'tmp'; import * as archiver from 'archiver'; // internal dependencies import { RetrieveFromStorage, DownloadFromWeb, ImageDownload } from './Requests'; imp...
<gh_stars>0 /* * Copyright 2018-present Open Networking Foundation * * 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 requi...
import { InvalidFeedback, Schema, ArraySchema, NumberSchema, DataSchema, StringSchema, Validator, Feedback, ARRAY, NUMBER, DATA, STRING } from "../index.js"; // Vars. const stringArray = ["a", "b", "c"]; const numberArray = [1, 2, 3]; const longArray = ["a", "b", "c", "d", "e", "f", "g", "h"]; const nestedArray = [{ t...
import Vue from 'vue' import Vuex from 'vuex' import _ from 'lodash' import { Theme, GlobalConfig, ExtensionConfig, SettingConfig } from '@/utils' import { ExtensionManager } from '@/plugins' import MutationTypes from './MutationTypes' import ActionTypes from './ActionTypes' export { default as MutationTypes } from './...
<filename>src/utils/splToken/index.ts<gh_stars>1-10 import { deprecated } from "@metaplex-foundation/mpl-token-metadata"; import { AccountInfo, MintInfo, Token, TOKEN_PROGRAM_ID, } from "@solana/spl-token"; import { Connection, Keypair, PublicKey } from "@solana/web3.js"; import axios from "axios"; const { Met...
import { EquippableItemType, SourceData, CatalystData, ChestPieceData, RingData, AmuletData, CatalystItem, Source, Catalyst, ChestPiece, Ring, Amulet, EquipmentKey, } from '../../items/itemData'; import { AbilityType } from '../abilities/abilityData'; import { getItemDataForName } from '../../items/itemDat...
<gh_stars>0 import { Component, Inject, ViewChild, ElementRef, OnInit } from "@angular/core"; import { AppContextService } from "@microsoft/windows-admin-center-sdk/angular"; import { SETTINGS } from "main/settings"; import { Router, ActivatedRoute } from "@angular/router"; import { WACRuntime } from "runtime/runti...
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge'; import { PLATFORM_NAME, PLUGIN_NAME } from './settings'; import { haaDownloaderAccessory } from './platformAccessory'; const Downloader = require('nodejs-file-downloader'); const versionCheck =...
<filename>src/impl/patchCollectorPrototype.ts /** * This file is basically a partial copy of the `https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-exporter-collector/src/transform.ts` file * of the OpenTelemetry Collector span exporter. We adapted some methods/functions in order to ...
import {CertLogicExpression, CertLogicOperation} from "certlogic-js" import {dataAccesses} from "certlogic-js/dist/validation" import {and_, plusTime_, var_} from "certlogic-js/dist/factories" import {asDateTime_, Case, dn_, dt_, eq_, now_, sd_, when_, whenVaccination_} from "./factories" import {translations} from "....
<filename>libs/d3/src/lib/extended-data-d3-timeseries-graph/extended-data-d3-timeseries-graph.component.ts<gh_stars>1-10 import { AfterViewInit, Component, DoCheck, Input, IterableDiffer, IterableDiffers, OnInit, ViewEncapsulation, } from '@angular/core'; import { ColorService, DatasetOptions, Hel...
<gh_stars>0 import { Middleware, ResponseGetter } from '../../index' import { configs } from '../../../index' import { assign } from '../../../utils' import { Response } from '../../../response' import { Request } from '../../../request' export interface RetryMiddlewareOptions { readonly headerRetryCount: string r...
<reponame>MuaazFarooqKhan/AngularFullProject import { Router } from '@angular/router'; import { RoleServiceService } from './../../services/role-service.service'; import { Component, OnInit } from '@angular/core'; import { MatTableDataSource } from '@angular/material/table'; import { trigger, transition, style, animate...
/*! * Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required ...
import { getWeekNumber, withTime } from '../Helper/DateTime' import { isDaySelectable } from '../Selectors/isDaySelectable' import { Context } from './Context' import { RefObject } from 'react'; export type TranslateFn = (date: Date) => string /** * The overlay ref references the overlay which is usually absolute po...
import { OperationTypeNode, GraphQLSchema, GraphQLType, isInputType, isOutputType, isNullableType, isNonNullType, isListType, isWrappingType, isLeafType, isObjectType, isScalarType, isCompositeType, isAbstractType, isEnumType, getNamedType, getNullableType, isInputObjectType, isInt...
<reponame>martunia887/test198<filename>packages/editor/editor-core/src/__tests__/__helpers/page-objects/_media.ts import { insertMedia as integrationInsertMedia } from '../../integration/_helpers'; import { Page } from './_types'; import { getBoundingRect } from './_editor'; import { snapshot } from '../../visual-regr...
import { MyProfilePaymentNewCreditCardSaveCardMutation } from "__generated__/MyProfilePaymentNewCreditCardSaveCardMutation.graphql" import { CountrySelect } from "app/Components/CountrySelect" import { Stack } from "app/Components/Stack" import { defaultEnvironment } from "app/relay/createEnvironment" import { Action, ...
import { Request, Response } from 'express'; import knex from '../database/connect'; import moment from 'moment'; interface IRegras { id_regra: number, nome_regra: string, qtd_dias_inicial: number; qtd_dias_final: number; qtd_multa: number; qtd_juros: number; } interface IContas { id_cont...
import padEnd from 'lodash-es/padEnd' import logger from '@theatre/shared/logger' export function roundestNumberBetween(_a: number, _b: number): number { if (_b < _a) { return roundestNumberBetween(_b, _a) } if (_a < 0 && _b < 0) { return noMinusZero(roundestNumberBetween(-_b, -_a) * -1) } if (_a <...
import React, { useEffect, useMemo, useRef, useState } from 'react' import { makeStyles } from '@material-ui/styles' import Theme from 'core/themes/model' import SubmitButton from 'core/components/buttons/SubmitButton' import { FormFieldCard } from 'core/components/validatedForm/FormFieldCard' import TextField from 'co...
<reponame>artemorlov999/cpadmin /* * Copyright 2020 Spotify AB * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
import { QuickStartItem, QuickStartStatus } from './quick-start-typings'; import { QuickStartStatus as Status } from './quick-start-status'; export const mockQuickStarts: QuickStartItem[] = [ { iconURL: '/api/kubernetes/apis/packages.operators.coreos.com/v1/namespaces/openshift-marketplace/packagemanifests...
<reponame>junghwan-park/random-matcher import { find } from 'lodash'; import { AppState, Groups } from '@/js/core/state'; import GroupItem from '@/js/ui/groupItem'; import Matcher, { IdPair } from '@/js/core/matcher'; function getCoupleElId(index: number) { return `couple-result-panel-${index}`; } export default cl...
<gh_stars>100-1000 import * as path from 'path'; import * as fse from 'fs-extra'; import * as prettier from 'prettier'; import * as glob from 'glob'; import { IMaterialBlock, IMaterialPage } from '@appworks/material-utils'; import { findIndexFile, bulkDownloadMaterials, bulkInstallMaterialsDependencies, getFold...
import React, { useCallback, useState } from 'react' import { useTranslation } from 'react-i18next' import { View, TouchableOpacity, StyleSheet, RefreshControl } from 'react-native' import { Animate } from 'react-native-entrance-animation' import { Checkbox, TouchableRipple, Text, useTheme, Chip } from 'react-native-pa...
import { Accessory, GroupInfo, TradfriErrorCodes } from 'node-tradfri-client' import R from 'ramda' import { normalizeGateway } from '#/data/tradfri' import * as db from '#/db/gateway' import { ValidationError } from '#/error' import TradfriGateway from '#/gateway/TradfriGateway' import logger from '#/logger' import {...
<gh_stars>100-1000 import { getBitSize } from "./utilities.ts"; import type { BitFieldConstructor, BitFieldStructure, } from "./bit-field-types.ts"; const SIGN_BIT = BigInt(2147483647); const ZERO = BigInt(0); const ONE = BigInt(1); const TWO = BigInt(2); class BigBitField<K extends PropertyKey> implements BitF...
<filename>source/block-reconciler.ts import { Block } from "./models/block"; import { BlockHistory } from "./models/block-history"; import { List as ImmutableList } from "immutable"; type GetBlockByHash<TBlock> = (hash: string) => Promise<TBlock|null>; export const reconcileBlockHistory = async <TBlock extends Block>...
import React from "react" import { ConnectionData, createPaginationContainer, graphql, RelayPaginationProp } from "react-relay" import { ListView, ListViewDataSource, NativeModules, RefreshControl, ScrollView, StyleSheet, TextStyle, View, ViewStyle, } from "react-native" import Events from "../Nativ...
<filename>src/lib/localizations.ts /** * Class to handle Apple pass localizations * * @see {@link @see https://apple.co/2M9LWVu} - String Resources * @see {@link https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html#//apple_ref/doc/uid/TP40012195-CH4-SW54} */ ...
import {chain, intersection, zipObject} from 'lodash'; import {module} from 'angular'; import {Application} from 'core/application/application.model'; import {API_SERVICE, Api} from 'core/api/api.service'; import {CLOUD_PROVIDER_REGISTRY, CloudProviderRegistry} from '../cloudProvider/cloudProvider.registry'; import {S...
<filename>lib/ATL.ts import util = require('util'); import ATLHelpers = require('./ATLHelpers'); import _ = require('lodash'); import RAML = require('raml-1-parser'); import path = require('path'); if (typeof Promise != 'function') require('es6-promise').polyfill(); export interface IATLOptions { variables?: AT...
<reponame>jamesbond004/FluidFramework /*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { assert, fail } from '../Common'; import { ReconciliationChange, ReconciliationPath } from '../ReconciliationPath'; import { Snapshot } from '../Snapsho...
import * as ts from 'typescript' import { ConstDefinition, EnumDefinition, ExceptionDefinition, ServiceDefinition, StructDefinition, ThriftStatement, TypedefDefinition, UnionDefinition, } from '@creditkarma/thrift-parser' import { IThriftError } from './errors' // Context needed to re...
/* * 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...
import { stripIndents } from 'common-tags'; import { ButtonInteraction, CommandInteraction, Message, MessageButton, MessageComponentInteraction, MessageEmbedOptions, TextChannel } from 'discord.js'; import { findBestMatch } from 'string-similarity'; import Jokes from '../../jokes'; import { Category, Cate...
import * as path from "path"; import { move } from "fs-extra"; import { IHooks } from "./types"; import { readFile } from "fs-extra"; import * as fs from "fs"; import { promisify } from "util"; const writeFile = promisify(fs.writeFile); import TOML from "@iarna/toml"; import { template } from "lodash"; const tsTemplat...
<filename>src/main.ts<gh_stars>1-10 'use strict'; import { debug as logDebug, exportVariable, getBooleanInput, getIDToken, getInput, info as logInfo, setFailed, setOutput, setSecret, } from '@actions/core'; import { errorMessage, exactlyOneOf, parseCSV, parseDuration, } from '@google-github-a...
/** Services */ import * as network from './services/network'; import * as events from './services/events'; import * as discworld from './discworld'; /** Tools */ import PRNG from '../common/utils/prng'; import Automaton from '../common/utils/automaton'; import Noise from '../common/utils/noise'; import { sha256 } fro...
import React, { useMemo } from "react"; import tinycolor from "tinycolor2"; import { applyToPoint, compose, rotateDEG, toSVG, translate, } from "transformation-matrix"; import { randomColor } from "../../../shared/colors"; import { GRID_SIZE } from "../../../shared/constants"; import { RRPoint } from "../../....
import { AndroidDebugBridge } from "../../../mobile/android/android-debug-bridge"; import { assert } from "chai"; import * as _ from "lodash"; import { Yok } from "../../../yok"; import { CommonLoggerStub, ErrorsStub } from "../stubs"; import { AndroidDebugBridgeResultHandler } from "../../../mobile/android/android-deb...
<filename>src/app/pages/search/view-search-unknown/view-search-unknown.component.ts import { Component, OnInit, ViewChild, ViewChildren, ViewEncapsulation, TemplateRef, ElementRef, QueryList, AfterViewInit, } from "@angular/core"; import { MatDialog, MatSnackBar, MatPaginator } from "@angular/material...
import { GoiJaDictionaryType } from "../types/GoiDictionaryTypes" // https://prowriters.jp/grammar/verb export const GoiSimpleJaDictionary: GoiJaDictionaryType = { name: "GoiSimpleJaDictionary", language: "ja", display: { zh: "速记词典" }, description: { zh: "中文释义采用日常使用该词汇时的直观释义,强化实际运用日语时的概念感受,提升日常会话交流的反...
<gh_stars>10-100 import amqp, { Connection } from "amqplib"; import * as Sentry from "@sentry/node"; import { DtlsParameters, MediaKind, RtpCapabilities, RtpParameters, SctpStreamParameters, SctpParameters, } from "mediasoup/lib/types"; import { MediaSendDirection } from "src/types"; import { TransportOptio...
/* * Copyright (C) 2021 <NAME> <<EMAIL>> * Copyright (C) 2015 <NAME> <kovid at kovidgoyal.net> * * Distributed under terms of the BSD license */ import { dirname, join, normalize, resolve } from "path"; import { mkdirSync, writeFileSync, readFileSync } from "fs"; import { readFile } from "fs/promises"; import { r...
<gh_stars>100-1000 /** * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * Inspired by https://github.com/dgasmith/gau2grid. * * @author <NAME> <<EMAIL>> */ // gaussian: // R_0, R^+_1, R^-_1, ..., R^+_l, R^-_l // cca: // R^-_(l), R^-_(l-1), ..., R_0, ..., R^+_(...
<gh_stars>1-10 import { API_ROOT } from "@helpers/app-initializer/app-initializer"; import { isInstantiated } from "@helpers/isInstantiated/isInstantiated"; import { Id, Ids, ImageSizes, ImageUrl } from "@interfaces/apiInterfaces"; import { DateTime, Duration } from "luxon"; import { AbstractModel } from "./AbstractMod...
import { DataFrame, IDataFrame } from "data-forge"; import { parseISO } from "date-fns"; import { getVisits } from "../reader/dataset"; import { removeAnchor, urlToPath } from "./popularity"; import { satisfactionReport } from "./reports"; const noError = (action: any) => ![ "https://code.travail.gouv.fr/", ...
import styled, { css } from 'styled-components'; import { borderRadius, fontSizeSmall, gridSize, } from '@atlaskit/theme/constants'; import { e200 } from '@atlaskit/theme/elevation'; import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, he...
<reponame>munich/ssh_five_core // tslint:disable:variable-name import { app } from "@arkecosystem/core-container"; import { Blockchain, Logger } from "@arkecosystem/core-interfaces"; import { configManager, ITransactionData, models, TransactionRegistry } from "@arkecosystem/crypto"; import assert from "assert"; import...
type IdOnly = {id: number }; type PostIdOnly = {postId: number}; type TagIdOnly = {tagId?: number}; type CommentIdOnly = {commentId: number}; type PasswordOnly = {password: string}; type Nothing = Record<string, never> | undefined | void; export interface Post{ id: number title: string description: string tags...
import * as React from 'react' import { MyReactDataSheet, Cell, SpreadsheetProps, SelectedMatrix, ContextMenuProp, UploadData } from './types' import { valueRenderer, onSelectCells, customCellRenderer, handleAddNewRow, handleCellsChanged, handleClickUpload, handleOnChangeInput, handleDownload, handleC...
import React, { ChangeEventHandler, useContext, useEffect, useRef, useState } from 'react'; import { MouseEventHandler } from 'react'; import { BsFillPersonFill } from 'react-icons/bs'; import { RiVipCrownFill } from 'react-icons/ri'; import { get } from '../components/WebSocket'; import { MessageType } from '../models...
import Client from "@client/index"; const beds = { 2117668672: "Pillbox Bed", }; export default class MenuList { client: Client; menuType: "PRIMARY" | "SECONDARY"; entity: { id: number; type: number; model: number; }; constructor(client: Client, entity: number, menuTyp...
import { workspace, Uri, CancellationTokenSource } from 'vscode'; import * as config from './config'; import * as vsutils from './vsutils'; import { fileInfo, FileInfo } from './fileutils'; import { composeThenables, flatten } from './utils'; // make sure we only initialize once var initialized = false; export functi...
<filename>src/extension/src/scripts/run-tests.ts const child_process = require("child_process"); const path = require("path"); const fs = require("fs"); const del = require("del"); import asyncForEach from "../utils/extensions"; const cyanColor = "\x1b[36m%s\x1b[0m"; const redColor = "\x1b[31m%s\x1b[0m"; const yellowCo...
<reponame>Donnevtis/ymbot import { searchByType, searchAll, getArtistTracks, getGenre, getTrack, getLyrics, getSingleTrack, getTrackUrl, getNextArtistTracks, SearchResults, ArtistTracksResults, } from "./search" import { nanoid } from "nanoid" import { stringify } from "query-string" import { Arti...
<filename>index.ts //Mediana de uma matriz export function mediana(a: Array<any>): any { a.sort(function (a, b) { return a - b; }); const mid = a.length / 2; return mid % 1 ? a[mid - 0.5] : (a[mid - 1] + a[mid]) / 2; }; /** * Calcula a moda de um vetor. A moda é o valor, ou valores, que mais são * presentes e...
import {Category, toolbar} from './annotations'; import CategoricalColumn from './CategoricalColumn'; import Column, {widthChanged, labelChanged, metaDataChanged, dirty, dirtyHeader, dirtyValues, rendererTypeChanged, groupRendererChanged, summaryRendererChanged, visibilityChanged} from './Column'; import ValueColumn, {...
/** * Copyright 2018 IBM Corp. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
import * as fs from 'fs'; import type { Resource } from 'rdf-object'; import { RdfObjectLoader } from 'rdf-object'; import type { Logger } from 'winston'; import { createLogger, format, transports } from 'winston'; import { ComponentsManager } from '../ComponentsManager'; import { ConfigConstructorPool } from '../const...