text
stringlengths
3.08k
15.5k
import * as React from 'react'; import { PureComponent } from 'react'; import cx from 'classnames'; import Input from '../input'; import Popover from '../popover'; import getWidth from '../utils/getWidth'; import { I18nReceiver as Receiver } from '../i18n'; import MonthPanel from './month/MonthPanel'; import PanelFoo...
<reponame>Nor-s/vscode-belikejekyll import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; import { error } from 'console'; export const postSnippet: string = `--- layout: $\{1:post\} title: $\{2\} date: YYYY category: $\{3\} author: $\{4\} tags: [$\{5\}] summary: $\{6\} --- $\{7\}`...
<reponame>cleancoindev/gu-composited-card import { LitElement, html, customElement, property } from 'lit-element'; import html2canvas from 'html2canvas'; import * as saveAs from 'file-saver'; import { qualities, ICardProtoData } from '../src/composited-card'; import { getStyles } from './styles'; function cloneShadow...
import * as React from 'react'; import { mount } from 'enzyme'; import { EditorView } from 'prosemirror-view'; import { mediaSingle, media, randomId, storyMediaProviderFactory, } from '@findable/editor-test-helpers'; import { defaultSchema, MediaAttributes } from '@findable/adf-schema'; import { stateKey as m...
const minWidth = 100 const maxWidth = 200 export const scaledWidth = (width: number) => { return width * 0.5 } // getMargins implements a simple algorithm to resize GIF previews given a dynamic display size, and // dynamic sized width GIFs. The basic idea is to try to form rows by either compressing down GIFs to fi...
/** * @license * Copyright 2018 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. * ============================================================================= */ /** * Interfaces and metho...
import {concatenateTypedArrays} from '@loaders.gl/loader-utils'; const VALUES_PER_VERTEX = 3; const POSITIONS_AND_NORMALS_PER_TRIANGLE = 9; /** * Generate geometry attributes with faceRange and featureCount * @param {Object} attributes * @returns {Object} Object with featureCount, reordered attributes and changed ...
<reponame>Cap3/capitano-react import { TinyColor } from "@ctrl/tinycolor"; import { EasingFunctions } from "./easing"; import { ColorModification, isColorEffect, MaterialSwatch, MonochromeSwatch, } from "./index"; export const calcColor = (base: TinyColor, modification: ColorModification) => { return isColor...
<filename>src/procedures/approve.ts import { approve } from '../shared/preparedTransaction' import { getOneApproval, getOneProposal } from '../shared/eosTablesQuery'; import { getUnpackedTransaction, formatString } from '../shared/utils'; import { CustomProposals, ApprovalItem, ApprovalWithCustomProposalInfo, Validatio...
<reponame>akash-joshi/rxdb<filename>dist/types/plugins/pouchdb/rx-storage-pouchdb.d.ts /// <reference types="pouchdb-core" /> /// <reference types="node" /> import type { MangoQuery, PouchDBInstance, PouchSettings, RxStorageBulkWriteResponse, RxJsonSchema, RxLocalDocumentData, RxStorageQueryResult, RxStorageInstanceCre...
<filename>src/dynamicResources/awsResourceManager.ts /*! * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { writeFileSync } from 'fs' import { remove } from 'fs-extra' import * as path from 'path' import * as vscode from 'vscode' import { Clou...
<filename>static/RenderedCard.ts import { Message } from './Message.js'; import { RenderedMessage } from './RenderedMessage.js'; import { Thread, UpdatedEvent } from './Thread.js'; import { LabelState, ThreadRow } from './views/ThreadRow.js'; import { create, defined } from './Base.js'; // The string values of this en...
import { v4 as uuid } from 'uuid'; import { Map } from "immutable"; export function createTask(owner: UserRef, title: string, notes?: string, reminder?: Reminder, parent?: TaskRef, id?: string): Task { let task: Task = { id: id || uuid(), owner: owner, createdOn: new Date(), complet...
import React, {useCallback, useEffect, useMemo, useState} from 'react'; import {AudioRecorder, BunnyChat, ImageUploader, Preparing, StickerPicker} from '../../../components'; import {RouteProp} from '@react-navigation/native'; import {DemoChatStackParam, IMMessage, IMMessageType, RootState} from '../../../types'; impor...
<reponame>fossabot/frontend-common<gh_stars>0 import { NgModule } from '@angular/core'; import * as Models from '@streamjar/frontend-common-core/models'; import { HttpService } from '@streamjar/frontend-common-core'; export function AccountFactory(dep: HttpService) { return new Models.Account(dep); } export function A...
// Given an input string s and a pattern p, implement regular expression matching with support for '.' and '*' where: // '.' Matches any single character.​​​​ // '*' Matches zero or more of the preceding element. // The matching should cover the entire input string (not partial). import { test } from '../helpers/test-f...
import {CommandDefinition} from './command_definition'; export let getNetworkConnection = new CommandDefinition<number>('getNetworkConnection', [], 'GET', '/network_connection'); export let setNetworkConnection = new CommandDefinition<void>( 'setNetworkConnection', ['type'], 'POST', '/network_connection', ...
/********************************************************************************************************************* * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. * * ...
import * as OGL from 'ogl' import * as React from 'react' import { Fiber, ReactPortal } from 'react-reconciler' import create, { GetState, SetState } from 'zustand' import { reconciler } from './reconciler' import { RENDER_MODES } from './constants' import { OGLContext, useStore } from './hooks' import { Instance, Inst...
/** The base Action class that all other composite actions should inherit from. @packageDocumentation */ import debug from 'debug'; import chalk from 'chalk'; import { v4 as uuidv4 } from 'uuid'; import _ from 'lodash'; import { Payload, ModifiablePayload, CreatePayloadProxy } from './payload'; import Subm...
<filename>extensions/rich_text_components/Math/directives/oppia-noninteractive-math.component.ts // Copyright 2014 The Oppia Authors. 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...
import { GoogleSpreadsheet } from "google-spreadsheet"; import moment from "moment"; import { Logger } from "../common/logger"; import Utils from "../common/utils"; import { Company, CompanyKeys, Customer, CustomerKeys, ItemPrefixKeys, Order, OrderKeys, Product, ProductKeys, } from "../models/sheets.m...
<filename>gravitee-apim-console-webui/src/management/api/analytics/logs/logging-configuration.controller.ts /* * 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...
<gh_stars>1-10 /** * @fileOverview * @author 凌恒 <<EMAIL>> * @copyright 2017 Alibaba Group. */ const Module = require('module'); import { existsSync, readFileSync } from 'fs'; import * as path from 'path'; import { debuglog } from 'util'; import * as shimmer from 'shimmer'; import { satisfies } from 'semver'; cons...
<reponame>kerry-t-johnson/regis-msse692-server import { Logger } from "winston"; import { getLogger } from "../utils/logger"; import axios from "axios"; import { ThingBookError, ThingBookHttpError } from "../utils/error.utils"; import { PaginationOptions } from 'thingbook-api'; import { MqttClient, connect as MqttConne...
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Note: Chrome OS uses print-preview-destination-select-cros rather than the * element in this file. Ensure any fixes for cross platform bugs work o...
import BootstrapTable from 'react-bootstrap-table-next'; import PropTypes from 'prop-types'; import BigNumber from 'bignumber.js'; import { Link } from 'react-router-dom'; import { IToken, LPPositionData, IUniswapPair } from '@sommelier/shared-types'; import { PositionData, LPStats, DailyData, HourlyDa...
import { getChartAlias, Slice } from 'cypress/utils/vizPlugins'; import { dashboardView } from 'cypress/support/directories'; /** * 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 * reg...
import {XYGlyph, XYGlyphView, XYGlyphData} from "./xy_glyph" import {generic_area_vector_legend} from "./utils" import {PointGeometry} from "core/geometry" import {LineVector, FillVector, HatchVector} from "core/property_mixins" import {Rect, ScreenArray, to_screen} from "core/types" import * as visuals from "core/visu...
//// react import React, {useState, useEffect, useContext} from 'react'; //// react native import {StyleSheet, Dimensions, Image, TouchableOpacity} from 'react-native'; //// config //// language import {useIntl} from 'react-intl'; //// ui import {Block, Button, Input, Text, theme, Icon} from 'galio-framework'; import M...
import { GFXBuffer, GFXBufferSource, IGFXDrawInfo } from './buffer'; import { GFXFormat, GFXFormatInfos, GFXFormatType, GFXObject, GFXObjectType } from './define'; import { GFXDevice } from './device'; export interface IGFXAttribute { name: string; format: GFXFormat; isNormalized?: boolean; stream?: nu...
import classNames from 'classnames'; import { TRADING_TUTORIAL, CATEGORICAL, TRADING_TUTORIAL_OUTCOMES, TRADING_TUTORIAL_STEPS, TRADING_TUTORIAL_COPY } from 'modules/common/constants'; import { TUTORIAL_OPEN_ORDER, TUTORIAL_FILL, TUTORIAL_FILL_TRADE, TUTORIAL_POSITION, } from 'modules/market/store/con...
<gh_stars>0 import { Injectable } from '@angular/core'; import {Platform, Storage, LocalStorage} from 'ionic-angular'; import 'rxjs/add/operator/map'; /* Generated class for the StorageService provider. See https://angular.io/docs/ts/latest/guide/dependency-injection.html for more info on providers and Angular 2 D...
import {Application, Window} from 'hadouken-js-adapter'; import {NotificationOptions, CustomData, NotificationClosedEvent, NotificationActionEvent, Notification} from '../../src/client'; import {ActionTrigger} from '../../src/client/actions'; import {getCenterCardsByNotification, getCenterCardsByApp} from '../utils/in...
<gh_stars>1-10 import assert from "assert"; import { BigNumberish, BytesLike, Contract, Overrides, PopulatedTransaction, providers, Signer, // utils, Wallet } from "ethers"; import { FlashbotsBundleProvider, FlashbotsBundleResolution, RelayResponseError } from "@flashbots/ethers-provider-bundl...
<gh_stars>10-100 import { randInt, roll } from 'e'; import Bank from '../../structures/Bank'; import Clue from '../../structures/Clue'; import LootTable from '../../structures/LootTable'; import { itemID } from '../../util'; import { BlessingTable, FirelighterTable, GildedTable, GiveHalfKeyTable, PrayerPageTable,...
import chai from 'chai'; import chaiSubset from 'chai-subset'; import chaiAsPromised from 'chai-as-promised'; import chaiThings from 'chai-things'; import * as sinon from 'sinon'; import sinonChai from 'sinon-chai'; import * as Util from '../../../../../src/lib/solana/transactions/util'; import { Connection, Keypair, ...
/* * Copyright 2022 ThoughtWorks, 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
import React, { Component, CSSProperties } from 'react' import { getParentPosition } from '../utility/dom-helpers' class ScrollElement extends Component { public state: any; public scrollComponent: any; public props: any; public dragStartPosition: any; public dragLastPosition: any; public setState: any; public ...
import React, { FC, useEffect, useState, useMemo, memo, useCallback, } from 'react'; import { Button } from 'reactstrap'; import AppContainer from '~/client/services/AppContainer'; import { toastError } from '~/client/util/apiNotification'; import { apiPost } from '~/client/util/apiv1-client'; import { ICommentHa...
import { JWT, HandlerManager, SocketEventName } from './interfaces'; import { GeneralUtil, LocalStorage, Queueable } from './util'; import Axios, { AxiosRequestConfig, AxiosError } from 'axios'; import { CacheControl } from './cache'; import { UserHandler, GroupHandler, WidgetHandler, TemplateHandler, Languag...
import { IGlobalNodeOptions, INodeSyncOptions, ISourceNodeWrapper, ISyncChildNode, NodeTypeInfo } from '../..'; import { EventEmitter } from '../../infrastructure/event-emitter'; import { Logger } from '../../infrastructure/logger'; import { MutableNodeCache } from '../../infrastructure/mutable-node-cache'; import { IE...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { localization } from "@responsible-ai/localization"; import { AccessibleChart, IPlotlyProperty, IData, PlotlyMode } from "@responsible-ai/mlchartlib"; import _ from "lodash"; import memoize from "memoize-one"; import { ComboBox,...
import * as path from 'path'; export function whitelistGraphql() { cy.server({ whitelist: xhr => { if (xhr.url.indexOf('graphql') !== -1) { return true; } // this function receives the xhr object in question and // will whitelist if it's a GET that appears to be a static resource ...
import fs from "fs"; import sizeOf from "image-size"; import https from "https"; import path from "path"; import retry from "async-retry"; import { SiteMap, Page, Section, Canvas, Frame, File, Project, ImageData, } from "./types"; const RETRY_LIMIT = 10; const RETRY_TIMEOUT = 1000 * 30; // 30s const P...
import React from 'react' import { Fragment } from 'react' import Image from 'next/image' import Link from 'next/link' import { Popover, Transition } from '@headlessui/react' import { MenuIcon, XIcon } from '@heroicons/react/outline' import LogoImage from '../../../public/assets/images/jme-logo.png' import classNames f...
/* * Copyright 2019 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
<gh_stars>1-10 import { message } from 'antd'; import Cookies from 'js-cookie'; import { request } from '@/utils/request'; import { logger } from '@/utils/logger'; import { LayoutConfig, LayoutType, routerHistory } from '@/utils/router'; import { UserSecurityContext } from '@/utils/security'; import { connectMqtt } fro...
import React, { useEffect, useState, useCallback, useContext } from 'react' import { makeStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Button from '@material-ui/core/Button'; import Ratings from 'react-ratings-declarative'; import OpenInNewIcon from '@material-ui/icons/Open...
export const adjectives = [ "adept", "affable", "affectionate", "agreeable", "alert", "alluring", "ambitious", "amiable ", "amicable ", "amusing", "attentive", "awesome", "boundless", "brave", "bright", "broad-minded", "calm", "capable", "careful", "charming", "cheerful", "cl...
<reponame>rapsealk/vuerd import { getData } from '@/core/helper'; import { SIZE_TABLE_BORDER, SIZE_TABLE_PADDING } from '@/core/layout'; import { commentWidthBalanceRange } from '@/engine/store/helper/column.helper'; import { removeValidTableIndex, removeValidTableRelationship, } from '@/engine/store/helper/valid.h...
<filename>app/src/js/common/track_policies/box3d_linear_interpolation_policy.ts<gh_stars>1-10 import { addDuplicatedTrack } from '../../action/track' import { CHANGE_SHAPES } from '../../action/types' import { Box3D } from '../../drawable/3d/box3d' import { makeLabel } from '../../functional/states' import { CubeType, ...
<filename>src/Bridge/DesktopBridge.ts /** * Windows Bridge * @module */ /** */ /* tslint:disable:no-any no-namespace */ import { debug, identity, upperFirst, warn } from '../utils' import Bridge from './Bridge' export type ResponseCallback = (responseData: any) => void export type Callback = (data: any, responseCal...
/** * @author WMXPY * @namespace Brontosaurus_Web * @description Brontosaurus */ import { EmptyToken } from "./empty"; import { Token } from "./token"; import { getParam, removeToken, storeToken } from "./util"; export type BrontosaurusConfig = { readonly externalLink?: boolean; }; export type BrontosaurusH...
<filename>server/index.ts import express from "express"; import path from "path"; import { ethers, getNamedAccounts } from "hardhat"; import { BigNumber, BigNumberish, Signer } from "ethers"; import cron from "node-cron"; import nodemailer from "nodemailer"; import * as dotenv from "dotenv"; dotenv.config(); ...
<reponame>FarrisMayo/FarrisOldSchool import { MessageEmbed } from 'discord.js'; import { CommandStore, KlasaMessage } from 'klasa'; import { cleanString } from 'oldschooljs/dist/util'; import _quests from '../../lib/data/quests.json'; import { BotCommand } from '../../lib/structures/BotCommand'; const quests = _quest...
import * as React from 'react'; declare class JqxDataTable extends React.PureComponent<IDataTableProps, IState> { protected static getDerivedStateFromProps(props: IDataTableProps, state: IState): null | IState; private _jqx; private _id; private _componentSelector; constructor(props: IDataTableProps...
<filename>src/helpers.ts import { ChannelBlender, NoAlphaBlender, RGB, RGBA } from './types' // Some utility (no actual blend-related algorithms) for color handling /** * Restricts a number to given boundaries * @param value The number to restrict * @param from The lower boundary * @param to The upper boundar...
import { Box, ListSubheader, MenuItem, Select, SelectProps, styled, Typography, } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import React, { FunctionComponent, useMemo } from "react"; import { AssetBalance } from "../../features/wallet/walletSlice"; import { getAssetB...
<gh_stars>1-10 /* * Copyright 2020 <NAME>. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ import domready = require('domready'); // NominatimResult represents one element in the result array from Nominatim. interface NominatimResult { ...
import { useTheme } from "@material-ui/core"; import { Arc, Group, ParentSize } from "@visx/visx"; import React, { useState } from "react"; import { LegendData, LegendTable } from "../../LegendTable"; import { RadialChartMetric, RadialGraphProps } from "../base"; import { useStyles } from "./styles"; export type Legen...
<gh_stars>1-10 import { BaseChart } from './base' import { Dimension, Metric, dimensionFunctions, makeAlias, isRadialChart, makeDataLabel, KV, Report, TemporalDataPoint, } from './util' import { defaultBGColor } from './common' import { makeTipper } from './chartjs/plugins' const ChartJS = require('...
import * as React from 'react'; import BN from 'bn.js'; import translate from 'translations'; import { State } from 'reducers/rates'; import { rateSymbols, TFetchCCRates } from 'actions/rates'; import { TokenBalance } from 'selectors/wallet'; import { Balance } from 'libs/wallet'; import { NetworkConfig } from 'config/...
import React, { Component } from 'react'; import SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon'; import { WithStyles, withStyles } from '@material-ui/core/styles'; import TreeView from '@material-ui/lab/TreeView'; import TreeItem from '@material-ui/lab/TreeItem'; import { ISceneNode } from '@mp/common'; fu...
<reponame>chubrik/Toponym import { Language, IEntry, EntryType, IGroup } from './types'; import { language } from './app.module'; import { checkArgument, invalidArgument, outOfRange } from './errors'; /** Ни одно из: undefined, null, NaN, Infinity, -Infinity. * Любое значение даст true, включая: '', 0, false */ exp...
import {Coord} from "./coord"; export enum SpriteName { NO_SPRITE, ROOM_BG, DOOR_LEFT_OPEN, DOOR_MIDDLE_OPEN, DOOR_RIGHT_OPEN, DOOR_LEFT_CLOSED, DOOR_MIDDLE_CLOSED, DOOR_RIGHT_CLOSED, CHAR_1_BACK, CHAR_2_BACK, CHAR_3_BACK, CHAR_4_BACK, CHAR_1_FRONT, CHAR_2_FRONT, CHAR_3_FRONT, CHAR_4_FRONT, CHAR_1_DEA...
import * as React from 'react'; import * as GoodData from 'gooddata'; import noop = require('lodash/noop'); import isEqual = require('lodash/isEqual'); import identity = require('lodash/identity'); import { Afm, DataSource, MetadataSource, UriMetadataSource, UriAdapter } from '@gooddata/data-layer'; import { Subject } ...
import { EventManager, isUndef, parseHtmlToDom, updateStyle } from "@lin-media/utils"; import { MessageChannelEvents, PlayerEvents, VideoEvents } from "../config/event"; import MediaPlayer from "../index"; import ControlsTpl from "../templates/controls"; import VideoProgress from "./video-progress"; impor...
import { Command, flags } from '@oclif/command'; import * as Parser from '@oclif/parser'; import { existsSync, promises as fspromises } from 'fs'; import { CONFIG } from './config'; import { doesFileHaveExifDate } from './helpers/does-file-have-exif-date'; import { findSupportedMediaFiles } from './helpers/find-support...
import { BackendContext } from '@vue-devtools/app-backend-api' import { BridgeEvents, HookEvents, stringify } from '@vue-devtools/shared-utils' import { App, ID, TimelineEventOptions, TimelineLayerOptions, WithId } from '@vue/devtools-api' import { hook } from './global-hook' import { getAppRecord, getAppRecordId } fro...
/* Do not change these import lines. Datagrok will import API library in exactly the same manner */ import * as ui from 'datagrok-api/ui'; import * as DG from 'datagrok-api/dg'; import {getSequenceMolecularWeight} from './molecular-measure'; import {AlignedSequenceEncoder} from '@datagrok-libraries/utils/src/sequence-...
import { ReactElement, ReactNode, useEffect, useState } from 'react' import clsx from 'clsx' import hljs from 'highlight.js/lib/core' import xml from 'highlight.js/lib/languages/xml' import css from 'highlight.js/lib/languages/css' import 'highlight.js/styles/atom-one-dark.css' hljs.registerLanguage('xml', xml) hljs.re...
import * as fs from "fs"; import { Document, Feature } from "gherkin-ast"; import { read } from "gherkin-io"; import * as path from "path"; import { format } from "../src"; import { format as formatBackground } from "../src/formatters/backgroundFormatter"; import { format as formatDataTable } from "../src/formatters/da...
// Copyright 2022 DeepL SE (https://www.deepl.com) // Use of this source code is governed by an MIT // license that can be found in the LICENSE file. import { ConnectionError } from './errors'; import { logDebug, logInfo, timeout } from './utils'; import axios, { AxiosError, AxiosRequestConfig } from 'axios'; import ...
import {expect} from 'chai'; import * as fs from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; import {ANNOTATION_SUPPORT_CODE} from '../src/decorator-annotator'; import * as tsickle from '../src/tsickle'; import {toArray} from '../src/util'; import * as testSupport from './test_support'; let...
<reponame>pebula/node import { Type, MixinFw } from '@pebula/decorate'; import { Schema, TypeSystem } from '@pebula/tom'; import { ClassValidationSchema, SchemaValidationFn, PropertyValidationFn } from '../../schema'; import { validatorRegistry } from '../../registry'; import { FnInitCompilerHandler, ValidatorContext }...
<reponame>pioug/atlassian-frontend-mirror<gh_stars>1-10 import { MediaClient, FilePreview, ImageResizeMode, isPreviewableFileState, FileState, isPreviewableType, isImageRepresentationReady, } from '@atlaskit/media-client'; import { MediaFeatureFlags, isMimeTypeSupportedByBrowser, } from '@atlaskit/med...
import * as _ from 'lodash'; import * as Immutable from 'immutable'; import { JSONSchema6 } from 'json-schema'; import { UiSchema } from 'react-jsonschema-form'; import { modelFor } from '@console/internal/module/k8s'; import { getJSONSchemaOrder } from '@console/shared/src/components/dynamic-form/utils'; import { Spec...
<gh_stars>1-10 import * as os from "os"; import * as fs from "fs"; import { randomBytes, createHash } from "crypto"; import { promisify } from "util"; import { execSync } from "child_process"; import { SystemInfo, Document, JSONDocument, PackageBenchmarkSummary, QueryResult } from "./types"; import { execAndThrowErrors...
/* Copyright 2020-2022 University of Oxford and Health and Social Care Information Centre, also known as NHS Digital 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/licens...
/** * @author WMXPY * @namespace Brontosaurus_Green_Account * @description Query */ import { AccountController, GroupController, IAccount, IAccountModel, IGroupModel, INamespaceModel, IOrganizationModel, ITagModel, NamespaceController, OrganizationController, TagController } from "@brontosaurus/db"; import { creat...
import {ChangeEvent, MouseEvent, createElement} from "react"; import {View} from "../Shared/models"; import {selectView} from "./settings.observables.selected-view"; import {updateView} from "./settings.observables.views"; import {saveView} from "./settings.observables.save-view"; import {onEnter} from "../Shared/event...
import BinarySearchTree from './binary_search_tree'; import BitStream from './bitstream'; import { HCB } from './constant'; import { HUFFMAN_PAIRS, HUFFMAN_PAIRS_FUNC, HUFFMAN_QUADS, HUFFMAN_QUADS_FUNC, } from './huffman'; import ICSInfo from './ics_info'; import ScalefactorData from './scalefactor_d...
<filename>packages-next/cloudinary/src/Implementation.ts import cuid from 'cuid'; import { PrismaFieldAdapter, PrismaListAdapter } from '@keystone-next/adapter-prisma-legacy'; import { Implementation, FieldConfigArgs, FieldExtraArgs } from '@keystone-next/fields'; import { BaseKeystoneList } from '@keystone-next/types'...
import * as io from 'https://deno.land/std@0.91.0/io/mod.ts' import { ProbeError, CommandError } from './errors.ts' import { parse_aspect_ratio, parse_ffmpeg_packet } from './parsers/ffmpeg_output.ts' import { is_media_clip, AbstractClipMap } from './parsers/template.ts' import { compute_rotated_size } from './geometry...
<reponame>rkesters/umbrella<filename>packages/geom/src/ctors/path-builder.ts import { peek } from "@thi.ng/arrays"; import { Attribs, SegmentType } from "@thi.ng/geom-api"; import { eqDelta } from "@thi.ng/math"; import { add2, copy, mulN2, set2, sub2, Vec, zeroes } from "@thi.ng/vectors"; import { Cubic } from "../api...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useEffect} from 'react'; import {injectIntl, intlShape} from 'react-intl'; import {Keyboard, StyleProp, View, ViewStyle} from 'react-native'; import {showModalOverCurrentContext} from '@actio...
import { DataEntity, pMap, isString, Logger } from '@terascope/utils'; import * as nodePathModule from 'path'; import { Compressor } from './Compressor'; import { Formatter } from './Formatter'; import { createFileName } from './createFileName'; import { ChunkGenerator } from './ChunkGenerator'; import { NameOp...
/** Shim RequireJS in the current browsing context to support dynamic modules. * * Assumes require has already been loaded. Supports some, but not all AMD * features. The AMD specification is at * https://github.com/amdjs/amdjs-api/blob/master/AMD.md * * Assumes Proxy is supported. */ import { deep_proxy } fro...
import { expect } from 'chai'; import { describe, it } from 'mocha'; import SpeculosTransport from '@ledgerhq/hw-transport-node-speculos'; import Axios from 'axios'; import Transport from "./common"; import Provenance from "hw-app-hash"; let ignoredScreens = [ "W e l c o m e", "Cancel", "Working...", "Exit", "Provenan...
<filename>catalog/app/utils/spreadsheets/spreadsheets.ts import * as dateFns from 'date-fns' import * as R from 'ramda' import xlsx from 'xlsx' import * as jsonSchema from 'utils/json-schema' import pipeThru from 'utils/pipeThru' type MetadataValue = $TSFixMe type JsonSchema = $TSFixMe export function rowsToJson(ro...
<reponame>kialj876/ppr import { RegistrationFlowType } from '@/enums' import { AccountInformationIF, AddCollateralIF, AddPartiesIF, CertifyIF, CourtOrderIF, DebtorNameIF, DraftIF, LengthTrustIF, IndividualNameIF, RegistrationTypeIF, SearchResponseIF, SearchTypeIF, UserInfoIF, UserSettingsIF,...
import * as React from 'react'; import * as ReactDom from 'react-dom'; import { Version, Environment, EnvironmentType } from '@microsoft/sp-core-library'; import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; import { IPropertyPaneConfiguration, PropertyPaneToggle } from '@microsoft/sp-property-pane';...
import React from 'react'; import { Box, Button, Checkbox, Dialog, DialogActions, DialogContent, DialogTitle, FormControl, FormControlLabel, Grid, InputLabel, MenuItem, Select, TextField, } from '@material-ui/core'; import { PathfindingSettingsContextProps, usePathfindingSettings, useS...
<reponame>bluengreen/webiny-js interface KeyField { name: string; } export interface Key { primary?: boolean; unique?: boolean; name: string; fields: KeyField[]; } export interface ArgsBatch { instance: Batch; operation: Operation; } export interface Args { __batch?: ArgsBatch; tab...
import Axios from "axios"; import { Endpoint, Response } from "./endpoints"; import { HostedCardUiParams, HostedCardUiRequest, HostedCardUiResponse } from "./endpoints/get/HostedCardUi"; import { ListCardsParams, ListCardsRequest, ListCardsResponse } from "./endpoints/get/ListCards"; import { ListFundingAccountsPa...
import { GetServerSideProps } from 'next'; import { ReactElement } from 'react'; import { Season } from '../types/seasons'; import PageLayout from '@weco/common/views/components/PageLayout/PageLayout'; import SeasonsHeader from '../components/SeasonsHeader/SeasonsHeader'; import PrismicImage from '@weco/common/views/co...
import { Command, InvalidArgumentError } from 'commander'; import { createHash } from 'crypto'; import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'fs'; import { pack, unpack } from 'msgpackr'; import { join } from 'path'; import { Chunk } from './chunk'; import { Branch, Node } from './node'; i...
import * as Discord from "discord.js"; import { BigNumber as Big } from "bignumber.js"; import { Command, Colors, constrain, Database, brackets, Bot, calcCost, commanum, codestr, parseNumber } from "../../global"; import { items, SItem } from "../../util/data/shop"; const handleBuy: { [i: string]: (user: Database.Cycl...
import * as React from 'react'; import { connect } from 'react-redux'; import * as _ from 'lodash'; import { Icon, Input, Select, Button, Tooltip, message } from 'antd'; import { Actions } from '../redux/redux'; import { usePortForward, PORT_FORWARD_STATE } from '../hooks/usePortForward'; import * as actions from '../r...