text
stringlengths
3.08k
15.5k
import { shallow } from 'enzyme'; import * as React from 'react'; import paginate from './Pagey'; const mockData: Linode.ResourcePage<any> = { page: 1, pages: 1, results: 0, data: [] }; const mockFn = jest.fn(() => Promise.resolve(mockData)); const setup = (mockRequest: any = mockFn) => { const MyComponent = pag...
<gh_stars>0 import {IIntEdge} from './iIntEdge' import {GeomEdge} from './../core/geomEdge' import {ICurve} from './../../math/geometry/icurve' import {LayerEdge} from './LayerEdge' import {Anchor} from './anchor' import {LineSegment} from '../../math/geometry/lineSegment' import {Curve} from '../../math/geometry/curv...
<filename>src/app/models/AssociationLoadingInComponents.spec.ts import { Component, Injector, Input } from "@angular/core"; import { ComponentFixture, TestBed } from "@angular/core/testing"; import { RouterTestingModule } from "@angular/router/testing"; import { ApiErrorDetails } from "@baw-api/api.interceptor.service"...
//import '@pnp/polyfill-ie11'; import * as React from "react"; import * as ReactDom from "react-dom"; import { Version } from "@microsoft/sp-core-library"; import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base"; import { escape } from "@microsoft/sp-lodash-subset"; import { IPropertyPaneConfiguration, P...
<filename>src/app/infuse/infuse.component.ts import { IComponentOptions, IController, IQService } from 'angular'; import copy from 'fast-copy'; import * as _ from 'lodash'; import { getDefinitions } from '../destiny1/d1-definitions.service'; import template from './infuse.html'; import './infuse.scss'; import { dimLoad...
import React from 'react'; import { graphql } from 'gatsby'; import Img from 'gatsby-image'; import { lighten } from 'polished'; import styled from 'styled-components'; import theme from 'styled-theming'; import { GatsbySeo } from 'gatsby-plugin-next-seo'; // @ts-ignore import { MDXRenderer } from 'gatsby-plugin-mdx'; ...
import * as React from "react"; import classNames from "clsx"; import useTippy from "lib/ui/useTippy"; import { ReactComponent as LockAltIcon } from "app/icons/lock-alt.svg"; import { ReactComponent as CloseIcon } from "app/icons/close.svg"; type FormFieldRef = HTMLInputElement | HTMLTextAreaElement; type FormFieldAtt...
/** * @license * Copyright 2022 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...
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/ import { Binder, IBinderDelegate } from './binder'; import DapConnection from './dap/connection'; import { ITarget } from './targets/targ...
import { Model, Document, Types, DocumentQuery, Query, Connection } from 'mongoose'; import { pick, PartialDeep, groupBy } from 'lodash'; import { KeyValue, TreeNode } from '../types/data.types'; const treeify = require('array-to-tree'); export class Repository { static async remove(model: Model<Document>, id: s...
import { drawImage } from "../canvas"; import { Block } from "./Block"; import { Direction } from "../enums"; import forwardRight from "../assets/images/forward-right.png"; import forwardRightJump from "../assets/images/forward-right-jump.png"; import forwardLeft from "../assets/images/forward-left.png"; import forward...
import React from 'react'; import { getOurPubKeyStrFromCache } from '../../session/utils/User'; import { openConversationToSpecificMessage } from '../../state/ducks/conversations'; import { ContactName } from '../conversation/ContactName'; import { Avatar, AvatarSize } from '../avatar/Avatar'; import { Timestamp } fro...
/** * Komponen yang menyajikan artikel rekomendasi kompas.id * berdasarkan sejumlah parameter yang disediakan. */ import { Component, Prop, State, Watch, h } from '@stencil/core' import { base64Encode } from '../../utils/hash' import { isMobile } from '../../utils/device' import { truncate } from '../../utils/text'...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { first, get, last } from 'lodash'; import { i18n } from '@kbn/i18n'; i...
import { isRedesignByTZ } from 'server/coachSequence/tzInfo'; import type { AvailableIdentifier, CoachSequenceBaureihe, CoachSequenceCoach, } from 'types/coachSequence'; export const nameMap: Record<AvailableIdentifier, string> = { '401': 'ICE 1 (BR401)', '401.9': 'ICE 1 Kurz (BR401)', '401.LDV': 'ICE 1 LD...
import { EventEmitter } from 'eventemitter3'; import { RTMClient } from './RTMClient'; import { LogLevel, Logger, getLogger } from './logger'; import { ErrorCode, CodedError } from './errors'; export interface KeepAliveOptions { logger?: Logger; logLevel?: LogLevel; /** How long (in ms) to wait before sending a ...
<reponame>abbychau/vscode /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------------------------------------...
<gh_stars>0 import Papa from 'papaparse'; import { ReadableWebToNodeStream } from 'readable-web-to-node-stream'; const BOM_CODE = 65279; // 0xFEFF export interface CustomizablePapaParseConfig { delimiter?: Papa.ParseConfig['delimiter']; newline?: Papa.ParseConfig['newline']; quoteChar?: Papa.ParseConfig['quoteC...
<reponame>nadimpayak/cbpv import { Component, OnInit, ViewContainerRef} from '@angular/core'; import { ToastrService } from 'ngx-toastr'; import { UseradminService } from '../../../service/useradmin.service'; import { HttpClient, HttpEvent, HttpEventType, HttpHeaders } from '@angular/common/http'; import { StorageSessi...
<reponame>Bubz43/ep2e import { enumValues } from '@src/data-enums'; import type { AddEffects, ObtainableEffects, } from '@src/entities/applied-effects'; import { localize } from '@src/foundry/localization'; import type { ArmorDamage } from '@src/health/health-changes'; import { nonNegative, notEmpty } from '@src/ut...
<gh_stars>1-10 import * as vscode from "vscode"; import OpenAI from "openai-api"; import * as Memoizeed from "memoizee"; // Create new output channel const codexChannel = vscode.window.createOutputChannel("OpenAI"); type CodexConfig = { apiKey: string; engine: string; temperature: number; maxTokens...
import React from 'react'; import { FixtureState } from 'react-cosmos-shared2/fixtureState'; import { FixtureId } from 'react-cosmos-shared2/renderer'; import { StateUpdater } from 'react-cosmos-shared2/util'; import { ArraySlot, Slot } from 'react-plugin'; import styled from 'styled-components'; import { TreeNode } fr...
import React from 'react' import { CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts' import type { AxisInterval } from 'recharts/types/util/types' import type { CurveType } from 'recharts/types/shape/Curve' import { makeStyles } from '@material-ui/styles' impo...
<reponame>jld23/jupyterlab-code-snippets import { WidgetTracker, ReactWidget } from '@jupyterlab/apputils'; import { CodeEditor, IEditorServices } from '@jupyterlab/codeeditor'; import { Widget, PanelLayout, Panel } from '@lumino/widgets'; import { Message, MessageLoop } from '@lumino/messaging'; import { PromiseDeleg...
import {Request, Response} from 'express' import {DateTime} from 'luxon' import {Between, Not, getRepository} from 'typeorm' import _ from 'lodash/fp' import * as mail from '../mail' import {hasSetting} from '../user/utils' import {Client} from '../client/model' import {Document} from '../document/model' import {Docum...
import { expectType } from 'tsd' import middy from '.' import { APIGatewayProxyEvent, APIGatewayProxyResult, Context, Handler as LambdaHandler } from 'aws-lambda' const baseHandler: LambdaHandler<APIGatewayProxyEvent, APIGatewayProxyResult> = async (event) => { return { statusCode: 200, body: `Hello ...
import $ from "jquery"; import _ from "underscore"; import gridColumns from "../../configs/columns"; import { formatValue, parserValue } from "../../scripts/common"; import Expression from "../../scripts/expression"; import hotkey from "../../scripts/hotkey"; import View from "../../scripts/view"; import "./data.scss";...
<filename>packages/maybe/src/Maybe.ts /* * Copyright 2018-present <NAME> */ import { Fun } from '@typed-f/function'; import { MatchPatterns, Matchable } from '@typed-f/matchable'; import { Monad1 } from '@typed-f/monad'; import { Setoid1 } from '@typed-f/setoid'; /** * Import to declare module */ import { } from '@...
<gh_stars>0 import { commands, window, workspace, QuickPickItem } from 'vscode' // @ts-ignore import * as limax from 'limax' import * as path from "path"; import { trim } from 'lodash' import { nanoid } from 'nanoid' import { ExtensionModule } from '../modules' import { Commands, Config, CurrentFile } from '../core' im...
import * as breeze from './breeze'; export class UriBuilderODataAdapter implements breeze.IUriBuilderAdapter { name: string; constructor() { this.name = "odata"; } initialize() { } buildUri(entityQuery: breeze.EntityQuery, metadataStore: breeze.MetadataStore) { // force entityType validation; ...
import { Sink } from 'callbag'; import { State, SubState, broadcast, MsgType, _Start, _Data, _End, isLeaf, Change, ChangeTrace, trace, makeState, StateLike } from 'callbag-state'; import { keyDownstream, keyUpstream } from './keystream'; import { KeyedChangeStream, KeyedState, KeyedStateMsgType, KeyFunc, ListChan...
import * as assert from "assert"; import { transformOperationSpec, getSpecType, transformOperation } from "../../../src/transforms/operationTransforms"; import { Operation, SchemaResponse, SchemaType, Schema, ChoiceValue, ChoiceSchema, ObjectSchema, ParameterLocation, ConstantSchema, ConstantV...
import { AnimationNode } from './node'; import { AnimationMetadata, AnimationState } from './metadata'; import { AnimationGroup } from './group'; import { AnimationTimeline } from './timeline'; // utils import { parseDuration } from './utils/parseDuration'; import { mapAliasToTransition } from './utils/mapAliasToTrans...
<filename>src/rendering/objectRender.ts /** * Created by kor on 28/09/16. */ import {IHighLevelNode} from "../core/hl"; /** * library to render objects with aribtrary projects to html */ export function encode(r){ return r.replace(/[\x26\x0A\<>'"]/g,function(r){return"&#"+r.charCodeAt(0)+";"}) } export interfa...
// 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, Version 2.0 (the // "License"); you may...
<reponame>huisir001/account-store /* * @Description: 账号表数据增删改查 * @Autor: HuiSir<<EMAIL>> * @Date: 2021-05-25 11:26:37 * @LastEditTime: 2021-12-09 12:54:05 */ import Response from "../tools/Response" import AccountModel from "../models/Accounts" import { operate } from "./operationLog" import Encrypt from "../tools...
import { bufnameUnusablePattern, decode, encode } from "./utils.ts"; export type BufnameParams = Record<string, string | string[] | undefined>; /** * Represent Vim's buffer name * * The format of the buffer name assumed is like * * ```text * {scheme}://{expr}[;{params}][#{fragment}] * ``` * * Where * * - `...
<gh_stars>0 import { addEventHandler, EventHandlerOptions, extractEventInfo, HandlerFunction, isMessageRelated, rejectWithMessage, } from "./events/events"; import glob from "glob"; import path from "path"; import { createYesBotLogger } from "../log"; import { HIOC, InstanceOrConstructor, isHIOCArray,...
<gh_stars>1-10 import { Camera } from './camera' import { MouseListener, InputHandler, MouseInfo } from './inputhandler' import { Position } from './position' import { Theme } from '../rendering/theme' export type ContextMenuAction = (mousePos: Position) => void export class ContextWindow { public readonly pos: Pos...
<reponame>sirhc101/vscode-allint<gh_stars>0 import { alFunction } from './alfunction'; import { alVariable } from "./alvariable"; import { alField } from "./alfield"; import { alLine } from './alLine'; export class alObject { content: string; alField: alField[]; alVariable: alVariable[]; alFunction: al...
/* * 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. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distr...
import React, { useCallback, useEffect, useMemo } from 'react'; import { useDispatch, useSelector, useStore } from 'react-redux'; import { Dispatch, State } from '../../../redux'; import { Controller, useForm } from 'react-hook-form'; import { logger } from '../../../helpers/logger'; import InputLabel from '@material-...
/* * Copyright 2020-2021 Bloomreach * * 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 t...
import * as React from 'react'; import { IdType } from '../../api'; import { RootState } from '../../store'; import { Dispatch } from 'redux'; import { FormErrors } from 'redux-form'; import { deletedDiff, detailedDiff } from 'deep-object-diff'; export interface FormContainerProps<T = any> { // TODO: We aren't rea...
<reponame>uk-gov-mirror/companieshouse.strike-off-objections-web import { NextFunction, Request, Response } from "express"; import { check, Result, ValidationError, validationResult } from "express-validator"; import { ErrorMessages } from "../model/error.messages"; import { createGovUkErrorData, GovUkErrorData } from ...
<filename>years/2020/16/index.ts import * as util from '../../../util/util'; import * as test from '../../../util/test'; import chalk from 'chalk'; import * as LOGUTIL from '../../../util/log'; import { performance } from 'perf_hooks'; import { part1Tests, part2Tests } from './testCases'; const { log, logSolution } = ...
<filename>modules/parquet/src/parquetjs/compression.ts // Forked from https://github.com/kbajalc/parquets under MIT license (Copyright (c) 2017 ironSource Ltd.) /* eslint-disable camelcase */ // Forked from https://github.com/ironSource/parquetjs under MIT license import { Compression, NoCompression, GZipCompres...
/** * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
import * as React from 'react' import * as Constants from '../../../constants/teams' import * as Types from '../../../constants/types/teams' import * as Kb from '../../../common-adapters' import AddPeopleHow from './add-people-how/container' import NameWithIconWrapper from './name-with-icon-wrapper' import * as Styles ...
import React, { useState, useEffect } from 'react'; import { Document, Page, pdfjs } from 'react-pdf'; import { PDFDocumentProxy } from 'pdfjs-dist'; import styled from 'styled-components'; import socketIOClient from 'socket.io-client'; import { EventType, NextSlidePayload, AniMoAnimation, PrevSlidePayload } from '../....
<gh_stars>0 import * as tf from '@tensorflow/tfjs'; type History = { weights: string[]; bias: string; loss: string; estimate: string[]; }; const useRegression = ( type: 'probit' | 'logit', data: any[], input: any[], targetVariable: string, dim: number ) => { const returnValue = { history: [] a...
<reponame>gburgett/tapconvey<gh_stars>1-10 import { Transform } from 'stream' import { Summary, Test, Plan, Assert, Comment, Log } from './results' const debug = require('debug')('tapconvey:parser') /* Transform a stream of TAP formatted input into a Results object. */ export class NodeTapParser extends Transform...
<filename>packages/core/src/parsers/builder.ts import { BuilderContent, BuilderElement } from '@builder.io/sdk'; import json5 from 'json5'; import { last, omit, pickBy } from 'lodash'; import { createJSXLiteComponent } from '../helpers/create-jsx-lite-component'; import { createJSXLiteNode } from '../helpers/create-jsx...
import warning from 'rc-util/lib/warning'; import { OptionsType as SelectOptionsType, OptionData, OptionGroupData, FlattenOptionData, } from '../interface'; import { LabelValueType, FilterFunc, RawValueType, GetLabeledValue, DefaultValueType, } from '../interface/generator'; import { toArray } from '...
// Copyright 2021 LiYechao // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
<gh_stars>10-100 /** * NamingSystem Module */ import * as primitives from "@tangdrew/primitives"; import * as t from "io-ts"; import { CodeableConcept } from "./CodeableConcept"; import { ContactDetail } from "./ContactDetail"; import { Element } from "./Element"; import { Extension } from "./Extension"; import { Me...
import type { Route } from "vue-router"; export const hashRE = /#.*$/; export const extRE = /\.(md|html)$/; export const endingSlashRE = /\/$/; export const outboundRE = /^[a-z]+:/i; export function normalize(path: string) { return decodeURI(path).replace(hashRE, "").replace(extRE, ""); } export function getHash(p...
import { createCipheriv, createDecipheriv, randomFillSync, createHash } from 'crypto'; const WECHAT_MINIPROGRAM_CRYPTOLOGY_ALGORITHM = 'aes-128-cbc'; const WECHAT_OPENPLATFORM_CRYPTOLOGY_ALGORITHM = 'aes-256-cbc'; // Very strange behavior for the WeChat OpenPlatform to use a 256b padding size. // Because AES block si...
import {Injectable} from "@angular/core"; import {Logger, LogLevel, UserAgentApplication} from "msal"; import {ToasterService} from "angular2-toaster"; import {AuthenticationParameters} from "msal/src/AuthenticationParameters"; import {environment} from "../../../../environments/environment"; const Uri = window.locati...
import { vec } from '@youwol/math' // See also https://github.com/vanruesc/math-ds/tree/master/src const BBOX_FLATNESS_THRESHOLD = 1e-12 export class BBox { private min_ = [0,0,0] private max_ = [0,0,0] private empty_ = false constructor(p1?: vec.Vector3, p2?: vec.Vector3) { this.reset() ...
import React, { useState, useContext, useEffect } from 'react' import { Box, Heading, Text, Radio, Button, Loader } from 'rimble-ui' import Avatar from '../../components/Avatar/Avatar' import * as Types from '../../types' import Credential from '../Credential/Credential' import { AppContext } from '../../context/AppPro...
import {Db, BaseApp, PluginConfig, Log, JovoError, ErrorCode} from 'jovo-core'; import _merge = require('lodash.merge'); import _get = require('lodash.get'); import * as AWS from 'aws-sdk'; import {DocumentClient} from "aws-sdk/lib/dynamodb/document_client"; import {GetItemOutput} from 'aws-sdk/clients/dynamodb'; expo...
<filename>ts/lib/jmptblrunner.ts<gh_stars>0 import { DeferredReduce, GrammarParsingLeafState, GrammarParsingLeafStateTransitions, HyperG, IParserProgram, IToken, Packrat, ParseTable, peg$FAILED, PRuleRef, RTShift, } from '.'; export interface IJumpTableProgram extends IParserProgram { inputPos...
import * as React from 'react'; import { useTranslation } from 'react-i18next'; import { Grid, GridItem, Form, FormGroup, Text, TextVariants, TextContent, } from '@patternfly/react-core'; import { FieldLevelHelp } from '@console/internal/components/utils'; import { StorageClassResourceKind, NodeKind, K8sR...
import { View, Text, Image } from '@remax/one'; import classNames from 'classnames'; import React from 'react'; import styles from './index.module.less'; import { selectFiles, useRefState, useStateRef } from 'parsec-hooks'; import Icon from '../icon'; import previewImage from '../preview-image'; import getPlatform from...
import React from 'react'; import './index.less'; import { Dropdown, Menu, Grid, Card, Dialog } from '@b-design/ui'; import type { Cluster } from '../../../../interface/cluster'; import Translation from '../../../../components/Translation'; import { If } from 'tsx-control-statements/components'; import kubernetesSvg f...
<filename>server/src/contexts/app/carverUser/bindings.ts<gh_stars>1-10 import { withContext } from '../../../classes/logic/withContext'; import { createContextStore, ContextStore } from '../../../classes/contexts/contextStore'; import commonTableWidgetContext from '../../widgets/common/table/context' import blocksWidg...
import { ComponentStyles, ComponentStyleSheet, CSSRules, } from "@microsoft/fast-jss-manager"; import { applyTypeRampConfig } from "../utilities/typography"; import { ButtonClassNameContract } from "@microsoft/fast-components-class-name-contracts-msft"; import { applyFocusVisible, applyLoca...
import * as React from "react"; import { useEffect, useState } from "react"; import * as ReactDOM from "react-dom"; import AmyRender from "./AmyRender"; import { AmyRenderConfig, AmyRenderFuncs } from "./latexUtils"; export interface Props { data: string; svgCode: string; config: AmyRenderConfig; rende...
import { CFAnalysisResetType, CFAnalysisResult, CFExecutionStatus, CFGoal, CFGoalRole, CFSearchInput, CFStatus, isItemObjectArray, isItemObjectMultiArray, ItemObject, Outcome } from '../../../types'; export interface CFState { goals: CFGoal[]; searchDomains: CFSearchInput[]; status: CFStatu...
import { Either } from '../../Either/definitions'; import { unfoldr as unfoldIterable } from '../../Iterable/functions/original'; import { Maybe } from '../../Maybe/definitions'; import { Applicative_1, Apply_1, Bind_1, compactByFilterMap, Filterable_1, Foldable_1, foldMapDefaultR, FoldROnly_1, Functo...
import { Router, Response, Request } from 'express'; const apiRouter: Router = Router(); var watson = require( 'watson-developer-cloud' ); // watson sdk var https = require('https'); // Endpoint to be call from the client side for conversation service apiRouter.post( '/conversation', function(req, res) { //Moodbud...
import * as dat from "dat.gui"; import { FactorGradient } from "babylonjs"; import * as React from "react"; import * as ReactDOM from "react-dom"; import { Slider, Button } from "@blueprintjs/core"; import { Icon } from "../icon"; export interface ISizeGradientProps { /** * Defines the gradient to edit. ...
import React, { useState, useEffect } from 'react' // import styles from './styles.global.styl' import { useInView } from 'react-intersection-observer' interface UIProps { /** * 图片地址 */ src: string /** * 图片布局方式 */ layout?: string /** * 图片Fit */ objectFit?: '-moz-initial' | 'inherit' ...
// colors.tsx: color math and color picker import {h} from "preact" import {useState} from "preact/hooks" import {range} from "./utils" import CSS_COLORS from "./csscolors" export type RGB = [number, number, number] export type HSV = [number, number, number] export type YUV = [number, number, number] /** Validates ...
import * as KurentoClient from 'kurento-client'; import { writeFile } from 'fs/promises'; import { APPLICATION_MODE } from '../../../../config'; import { ApplicationMode } from '../../../../types/config.type'; export { getComplexType } from 'kurento-client'; const kurento = { client: null, pipeline: null, player: ...
<filename>dev/main.ts /* Jagajaga by bei2 */ //IF YOU USE MONOKA, PLEASE REMOVE THE UNDER COMMENT OUT (//). //const TAKEN = "";//your taken const worlds: {[key: string]: string} = { "north": "http://123saba.fun/wiki/north", "east": "http://123saba.fun/wiki/east", "west": "http://123saba.fun/wiki/west", "south": ...
import React, { ReactElement, useEffect, useRef, useState } from "react"; import { ScrollView, Image, View, ViewProps } from "react-native"; import { useAppOptions, languages, useNavigation } from "../hook"; import logo from "../assets/logo.svg"; import { Text, Button, ButtonGroup, ButtonProps, ButtonGroupProps, withAt...
import { useState, useEffect } from "react"; import { useGetLocale, useSetLocale, useGetIdentity, useTranslate, useList, } from "@pankod/refine-core"; import { AntdLayout, Menu, Icons, Dropdown, Input, Avatar, Typography, Space, Grid, Row, Col, AutoCo...
<reponame>scotthickssas/sas-visualanalytics-geowebmap /* Copyright 2018 SAS Institute 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 https://www.apache.org/licenses/LICENSE-2.0 Unless re...
<reponame>deleterium/signumjs<gh_stars>10-100 /** * Copyright (c) 2019 Burst Apps Team * Modified (c) 2021 Signum Network */ import {Http, HttpError, HttpClientFactory, HttpResponse} from '@signumjs/http'; import {asyncRetry} from '@signumjs/util'; import {ChainServiceSettings} from './chainServiceSettings'; import...
<filename>src/app/Scenes/SavedSearchAlert/pillExtractors.ts import { aggregationForFilter, Aggregations, FilterParamName, getDisplayNameForTimePeriod, } from "app/Components/ArtworkFilter/ArtworkFilterHelpers" import { ATTRIBUTION_CLASS_OPTIONS } from "app/Components/ArtworkFilter/Filters/AttributionClassOption...
/* l10nSupport – app localization implementation */ import * as path from "path"; import * as fs from "fs"; import * as deepmerge from "deepmerge"; import { app, dialog } from "electron"; import JSONC from "../internalModules/jsoncParser" import { jsonOrJsonc, objectsAreSameType } from "../global"; import { EventEmitt...
/* * Copyright (C) 2019 HERE Europe B.V. * * 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 a...
import Vue from "vue"; import Vuex from "vuex"; import { enc, SHA1 } from 'crypto-js' import axios from 'axios' Vue.use(Vuex) /** * @param {string} name - Room uniqID * @param {string} title - Room Title * @param {string} host - Room Host name * @param {string} hostID - Host uniqID * @param {string} icon - Host ...
// * [Hard] Daily Coding Problem // * Nov 15 2019 /** * * Suppose you are given a table of currency exchange rates, represented as a 2D array. * * Determine whether there is a possible arbitrage: that is, whether there is * * some sequence of trades you can make, starting with some amount A of any currency, * * so...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
/** * Timeseries line plot component that takes in timeseries data */ import React, { Component } from 'react'; import './TimeSeriesLinePlot.css'; import { ITslpProps, ITslpState, ITslpDataPoint, IFrame, TslpProps, TimePeriod, TslpSeriesStyle, YAxisSide } from "./ITimeSeriesLinePlot"; import Plot from 'react-plotly.j...
<filename>source/bot_commands/announce/forward_message.ts import * as Utilz from "../../utilz"; import { loadPrefs, cacheMessages, fetchMessageLink, updatePrefs, sendEmbed, getPrefix, fetchChannels, getMessageLink, CoreData, Prefs, notOf, addListener, isMessageChannel } from "../../_core/bot_core"; import { AnnounceDat...
<reponame>jplippi/xivanalysis<filename>src/parser/core/modules/RaidBuffs.ts<gh_stars>100-1000 import {JobKey} from 'data/JOBS' import {Status, StatusKey} from 'data/STATUSES' import {Event, Events} from 'event' import {Team} from 'report' import {Analyser} from '../Analyser' import {filter, oneOf} from '../filter' impo...
<gh_stars>1-10 /** * @license * Copyright 2017 Google 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/licenses/LICENSE-2.0 * * Unles...
<reponame>pioug/atlassian-frontend-mirror import { PluginKey } from 'prosemirror-state'; import { EditorView } from 'prosemirror-view'; import rafSchedule from 'raf-schd'; import { EventDispatcher, textFormattingStateKey, TextFormattingState, blockPluginStateKey, BlockTypeState, listStateKey, ListState, ...
<gh_stars>1-10 import { decimalPlaces } from '../handy' import { OrderBook, OnLevelRemovedCB } from '../orderbook' import { BookChange, BookPriceLevel, BookSnapshot, Optional } from '../types' import { Computable } from './computable' type BookSnapshotComputableOptions = { name?: string depth: number grouping?: ...
import * as React from 'react'; import { ScrollView, StyleSheet, View, ViewStyle } from 'react-native'; import MDIcon from '../icon'; import MDPopup from '../popup'; import MDPopupTitlebar from '../popup-title-bar'; import MDRadioList from '../radio-list'; import MDTabPane from '../tab-pane'; import MDTabs from '../tab...
import * as SwaggerParser from '@apidevtools/swagger-parser'; import { set, uniqBy } from 'lodash'; import * as YAML from 'js-yaml'; import * as fs from 'fs'; import * as path from 'path'; import { homedir } from 'os'; import { Command } from '@oclif/command'; import { parseHeaderFlag } from './utils'; export const CO...
import React, { useContext, useState, useEffect, useRef, memo, RefObject } from 'react'; import { Table, Input, Button, Popconfirm, Form, Modal, Upload } from 'antd'; import { ColumnsType } from 'antd/lib/table'; import { uuid } from '@/utils/tool'; import XLSX from 'xlsx'; // 下方样式主要为全局样式,暂时不可删 import styles from './in...
export const black = '#000000'; export const white = '#ffffff'; export const gray000 = '#080808'; export const gray50 = gray000; export const gray100 = gray000; export const gray200 = '#141414'; export const gray300 = '#191919'; export const gray400 = '#2a2a2a'; export const gray500 = '#373737'; export const gray600 =...
import Boom from '@hapi/boom'; import Hapi from '@hapi/hapi'; import Joi from '@hapi/joi'; // @ts-ignore import Compiler from '@haul-bundler/core-legacy/build/compiler/Compiler'; import runAdbReverse from '../utils/runAdbReverse'; import createDeltaBundle from './createDeltaBundle'; import Runtime from '../runtime/Runt...
/* * Copyright (C) 2019 The Qing Project. All rights reserved. * * Use of this source code is governed by a license that can * be found in the LICENSE file. */ import { BaseElement, customElement, html, css } from 'll'; import * as lp from 'lit-props'; import 'ui/form/inputView'; import 'ui/form/selectionView'; i...
<gh_stars>1-10 // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; import * as snippetmgr from './snippetmanager'; function replaceSplitVars(selectionText:string, snippetText: string, seperator: ...