text
stringlengths
3.08k
15.5k
<gh_stars>1-10 import {Injectable} from '@nestjs/common'; import {InjectRepository} from '@nestjs/typeorm'; import {PostEntity} from '../post/post.entity'; import {Brackets, Repository} from 'typeorm'; import {BoardEntity} from './board.entity'; import {CreateBoardDto, UpdateBoardDto} from './dto'; import {PaginationOb...
<filename>src/constructors.ts import JSBI from "jsbi"; import { sub } from "./arithmetic.js"; import { BIGINT_TEN, BIGINT_TEN_MILLION, BIGINT_ZERO, ZERO } from "./constants.js"; import { is_big_float, is_zero } from "./predicates.js"; import { IBigFloat, NumericValue } from "./types"; export function make_big_float(co...
import _ from 'lodash'; import React, { Context } from 'react'; import { Value, Editor as CoreEditor } from 'slate'; import { Editor, Plugin } from '@grafana/slate-react'; import Plain from 'slate-plain-serializer'; import classnames from 'classnames'; import { ClearPlugin, NewlinePlugin, SelectionShortcutsPlug...
import { RiRefreshLine, RiUploadFill } from '@hacknug/react-icons/ri' import { navigate, RouteComponentProps, useLocation } from '@reach/router' import { observer } from 'mobx-react-lite' import React, { useEffect, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import repo, { FileInfo } ...
import { t, Trans } from "@lingui/macro"; import { Check, LinkSimple } from "phosphor-react"; import { ReactNode, useCallback, useContext, useEffect, useReducer, useState, } from "react"; import { useMutation } from "react-query"; import { gaExportChart } from "../lib/analytics"; import { useTitle } from "...
import Tower from 'Towers/Abstract'; import InventoryButton from '../Buttons/Inventory'; import { printDebugMessage } from '../Utils/Debug'; import { Frame, Trigger } from 'w3ts'; interface IItem { tower?: Tower } export default class InventoryEngine { items!: Array<Array<IItem>>; inventory!: Array<Array<Frame...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../../utilities"; /** * Creates an endpoint, and returns the new endpoint. */ export class ...
import { Wei } from '@emeraldplatform/eth'; import { blockchainByName, BlockchainCode } from '@emeraldwallet/core'; import { fromJS, List, Map } from 'immutable'; import { ActionTypes, AddAccountAction, AddressesAction, IAddressesState, PendingBalanceAction, SetBalanceAction, SetHDPathAction, SetListAct...
<reponame>tvasset/momentum-ui import * as _ from 'lodash'; export interface ICardMemberCheckbox { label: string; sublabel?: string; value: boolean; disabled: boolean; } export interface ICardMemberItem { label: string; sublabel?: string; value: string; } export enum CardType { SIMPLE = <any>'simple',...
import utils from '../src/utils'; afterEach(() => { jest.clearAllMocks(); }); const info = console.info; const error = console.error; describe("within utils", () => { test("documentSavePath should include the filename passed as a parameter", () => { expect(utils.documentSavePath("", "fileName.file")).toConta...
<reponame>BoomIndiaInc/knowmypeople-mobile<filename>src/app/shared/util/component-util.ts import { Injectable } from '@angular/core'; import { LoadingController, ToastController, NavController } from '@ionic/angular'; import { AuthServerProvider } from 'src/app/services/auth/auth-jwt.service'; import { AccountService }...
import os from 'os'; import chalk, { Color } from 'chalk'; import { schema, Position, StrykerOptions } from '@stryker-mutator/api/core'; import { Logger } from '@stryker-mutator/api/logging'; import { commonTokens } from '@stryker-mutator/api/plugin'; import { Reporter } from '@stryker-mutator/api/report'; import { Me...
<reponame>craig-moir/vexflow<filename>tests/clef_tests.ts // [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010. // MIT License // // Clef Tests import { VexFlowTests, TestOptions } from './vexflow_test_helpers'; const ClefTests = { Start(): void { QUnit.module('Clef'); const run = VexFlowTests.runTe...
/* * 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 { ElasticsearchServiceSetup } from 'src/core/server'; import { LevelLo...
import {Component, Host, h, Element, Event, EventEmitter, Prop, Method} from '@stencil/core'; import {HostElement} from "../../decorators"; import wizard from '../../services/WizardService'; const {INPUT_FIELD_PREFIX} = wizard.Constants; const breakpoints = ['xs','sm','md','lg', 'xl']; @Component({ tag: 'create-man...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. const MAX_WEBSOCKET_FAILS = 7; const MIN_WEBSOCKET_RETRY_TIME = 3000; // 3 sec const MAX_WEBSOCKET_RETRY_TIME = 300000; // 5 mins export default class WebSocketClient { private conn: WebSocket | null; ...
import React, { useState } from 'react' import { useHistory } from 'react-router-dom' // My NPM Libraries import Swal from 'sweetalert2' function Category() { const history = useHistory() const [categoryDataUserInputs, setCategory] = useState({ slug: '', name: '', description: '', status: '', ...
import styled from '@emotion/styled' import AniLink from 'gatsby-plugin-transition-link/AniLink' import PropTypes from 'prop-types' import React from 'react' import { Link } from 'gatsby' const HeaderStyles = styled.header` grid-area: header; padding: 1.5rem 2rem; nav { display: flex; flex-flow: row wra...
/** * @license * Copyright 2013 Palantir Technologies, 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...
import { LabelName, LabelNames } from "./basic"; import { MutationOptions } from "@apollo/client/core"; import * as schema from "@octokit/graphql-schema/schema"; import { PR_repository_pullRequest } from "./queries/schema/PR"; import { Actions } from "./compute-pr-actions"; import { createMutation, client } from "./gra...
/* * 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 ...
<reponame>daswag/daswag-cli<filename>src/generators/services/user-mgmt/index.ts import chalk from "chalk"; import * as changeCase from "change-case"; import * as path from "path"; import Utils from "../../../utils/utils"; import {Base} from '../../core/base'; import {IUserMgmtOptions} from "../../model/user-mgmt-option...
import {ActivityDefinition, ActivityDefinitionProperty, ActivityModel, ConnectionModel, WorkflowModel} from "../models"; import * as collection from 'lodash/collection'; import {Duration} from "moment"; declare global { interface Array<T> { distinct(): Array<T>; last(): T; } } export type Map<T> = { [k...
import "./style.less"; import calendarSVG from "./icons/calendar.svg"; import emptyHistorySVG from "./icons/empty-history.svg"; import emptyRoomSVG from "./icons/empty-room.svg"; import React, { PropsWithChildren, ReactElement } from "react"; import { format, isToday, isTomorrow } from "date-fns"; import { zhCN } from...
import * as React from 'react' import { Route, Switch, withRouter } from 'react-router-dom' import { Helmet } from 'react-helmet' import { connect } from 'react-redux' import { Event } from '@truesparrow/content-sdk-js' import * as config from './config' import * as commonText from './common.text' import { HomePage }...
<reponame>itsumrat/apple-sell-off import {Stage, transform} from "@blitzjs/file-pipeline" import {OverrideTriage} from "@blitzjs/file-pipeline/src/helpers/work-optimizer" import * as fs from "fs-extra" import {debounce, partition} from "lodash" import {join} from "path" import File from "vinyl" function makeDebouncedW...
<filename>client/src/components/knoweng/results/spreadsheet_visualization/MiniDistributionGraph.ts import {Component, OnChanges, SimpleChange, Input} from '@angular/core'; import {SelectableRowData} from './SelectableTypes'; import {NumberFormatPipe} from '../../../../pipes/knoweng/NumberFormatPipe'; @Component({ ...
import {AddMap, GetAccessPolicy, GetUserHidden, IsUserCreatorOrMod, Map, Map_namePattern, MeID} from "dm_common"; import React from "react"; import {PolicyPicker} from "UI/Database/Policies/PolicyPicker.js"; import {Observer} from "web-vcore"; import {DEL, ToNumber} from "web-vcore/nm/js-vextensions.js"; import {GetAsy...
import { GraphQLObjectType, GraphQLInterfaceType, GraphQLSchema, GraphQLInputObjectType, GraphQLUnionType, GraphQLEnumType, GraphQLScalarType, isObjectType, isInputObjectType, isScalarType, isSpecifiedScalarType, isUnionType, isInterfaceType, isEnumType, specifiedScalarTypes, GraphQLName...
import net from 'net' import { ether } from '@opengsn/common/dist/Utils' import { CommandsLogic, RegisterOptions } from './CommandsLogic' import { KeyManager } from '@opengsn/relay/dist/KeyManager' import { getNetworkUrl, loadDeployment, supportedNetworks } from './utils' import { TxStoreManager } from '@opengsn/rela...
import { DateAdapter, DateAdapterBase, DateInput, DateTime, RuleOption } from '@rschedule/core'; import { Dates } from '@rschedule/core/generators'; import { ICalRuleFrequency, IRRuleOptions } from '@rschedule/core/rules/ICAL_RULES'; export class SerializeICalError extends Error {} export interface IJCalProperty exte...
<reponame>abdonrd/carbon-custom-elements /** * @license * * Copyright IBM Corp. 2019, 2021 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { html, property, customElement, LitElement } from 'lit-element'; import setti...
import avalanche_go_api from '@/avalanche_go_api' import api from '@/axios' import { bigToDenomBig, stringToBig } from '@/helper' import { Asset } from '@/js/Asset' import { resolveResponseData } from '@/services/helpers' import { AVAX_ID } from '@/store' import { IAddress, IAssetsMap, IBalancePData, IB...
import { Tooltip } from '@material-ui/core'; import Snackbar from '@material-ui/core/Snackbar'; import Typography from '@material-ui/core/Typography'; import MuiAlert, { AlertProps } from '@material-ui/lab/Alert'; import { ButtonFilled, ButtonOutlined } from 'litmus-ui'; import localforage from 'localforage'; import Re...
<reponame>Bhanawat/Testforbackup import * as cdk from "@aws-cdk/core"; import * as path from "path"; import {CfnCrawler} from "@aws-cdk/aws-glue"; import {ManagedPolicy, PolicyDocument, Role, ServicePrincipal, AccountRootPrincipal} from "@aws-cdk/aws-iam"; import {Code, Function, Runtime} from "@aws-cdk/aws-lambda"; im...
import { ExpoConfig, getConfigFilePaths } from '@expo/config'; import { AndroidConfig, IOSConfig } from '@expo/config-plugins'; import { Platform, Workflow } from '@expo/eas-build-job'; import assert from 'assert'; import chalk from 'chalk'; import fs from 'fs-extra'; import { readAppJson } from '../../build/utils/app...
import {Action} from '@ngrx/store'; import {Update} from '@ngrx/entity'; import {DropListModelSource, Task, TaskWithSubTasks} from '../task.model'; import {TaskState} from './task.reducer'; import {IssueData} from '../../issue/issue'; import {RoundTimeOption} from '../../project/project.model'; export enum TaskActionT...
import { BulletinBoard } from './av_client/connectors/bulletin_board'; import { CAST_REQUEST_ITEM, MAX_POLL_ATTEMPTS, POLLING_INTERVAL_MS, SPOIL_REQUEST_ITEM, VERIFIER_ITEM } from './av_client/constants'; import { randomKeyPair } from './av_client/generate_key_pair'; import { signPayload } from './av_client/sign'; impo...
<filename>src/lib/cli/dataset/column.ts import AbstractColumnsDataset, { InterfaceColumnDataset } from './abstractColumn'; import CollectionDataset from './collection'; import IndexDataset from './index'; import { dataColumnInternalValuesType, dataColumnType, dataIndexColumnValueType, schemaIndexType, schema...
<reponame>ObviousJs/obvious-core import { MiddlewareFnType, NextFnType, ContextType, CustomCtxType, DependencyType, CallbackType } from '../types'; // eslint-disable-line export const Errors = { // ================= EventEmitter.broadcast ================= removeNonExistedBroadcast: (eventName: string) => { ...
import { IDebugger } from 'debug'; import { EventEmitter } from 'events'; import * as http from 'http'; import { ClientRequest } from 'http'; import * as https from 'https'; import * as _ from 'lodash'; import Mitm from 'mitm'; import { Socket } from 'net'; import * as readable from 'readable-stream'; import { v4 as uu...
import * as turf from "@turf/turf"; import chalk from "chalk"; import fs from "fs-extra"; import { deepClean } from "../../deepClean"; import { serializeTime } from "../../helpersForJson"; import { normalizeSpacing } from "../../normalizeSpacing"; import { GenerateOutputLayer, OutputLayer, OutputLayerProperties,...
<filename>src/reader/token.ts import { Position, Location } from '../utils/location'; export interface Base { type: string; contents: string; loc: Location; } export type LParContents = '(' | '[' | '{'; export interface LPar extends Base { type: 'LPar'; contents: LParContents; } export function lpar(conten...
<reponame>danielsharvey/aws-sdk-js-v3 import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient"; import { ConnectCustomKeyStoreRequest, ConnectCustomKeyStoreResponse } from "../models/models_0"; import { deserializeAws_json1_1ConnectCustomKeyStoreCommand, serializeAws_json1_1Conn...
import { inspect, InspectOptions, format } from 'util' import { clearScreenDown, cursorTo } from 'readline' import { stderr } from 'supports-color' import { Time } from './time' const colors = stderr && stderr.level >= 2 ? [ 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76...
<reponame>MicrohexHQ/augur<gh_stars>0 import { BigNumber } from 'bignumber.js'; import * as t from 'io-ts'; import { DB } from '../db/DB'; import { Getter } from './Router'; import { Address, DisputeWindowCreatedLog} from '../logs/types'; import { Augur, calculatePayoutNumeratorsValue, getOutcomeDescriptionFromOutc...
/** * Copyright (c) <NAME>. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { nestPackageUrl, cacheNestpackage, pkgRepo, } from "./handle_third_party_package.ts"; import { getImportMap, createPackage } from "./handle_...
/* * Copyright © 2020 Atomist, 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 agreed...
import { Button, Center, Group, Loader, Pagination, Popover, Progress, SimpleGrid, Space, Table, Title, } from "@mantine/core"; import moment from "moment"; import React, { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { Adjustments, Ban, Check, Clock, ...
<filename>src/routes/certificatesDynamics.ts import express, { Response } from "express"; import axios from "axios"; import { dynamicsURL } from "../config/config"; import { CustomRequest } from "../types/interface"; import { getDynamicsAccessToken, Role } from "../utils/utils"; import auth from "../middleware/auth"; i...
<gh_stars>0 import { ethers } from 'ethers'; import { Bond, BondKey, getAddresses, getBond } from '../../constants'; import { VSQTokenContract, StakedVSQContract, MAIContract, StakingContract } from '../../abi/'; import { contractForBond, contractForReserve, setAll } from '../../helpers'; import { createSlice, createS...
<reponame>sgratzl/lineupjs<filename>src/model/ColorMappingFunction.ts import { interpolateBlues, interpolateGreens, interpolateGreys, interpolateOranges, interpolatePurples, interpolateReds, interpolateCool, interpolateCubehelixDefault, interpolateWarm, interpolatePlasma, interpolateMagma, inter...
<reponame>s23301955/Bahamut-Automation import countapi from "countapi-js"; import { Module, Page } from "../_module"; const sign = new Module(); sign.parameters = [ { name: "sign_double_max_attempts", required: false, }, ]; sign.run = async ({ page, outputs, params, logger }) => { const l...
declare type Buffer = any; export interface EventEmitter { addListener(event: string, listener: Function): this; on(event: string, listener: Function): this; once(event: string, listener: Function): this; removeListener(event: string, listener: Function): this; removeAllListeners(event?: string): t...
import * as ndarray from 'ndarray'; let emlapack = require('emlapack'); export function dhgeqz(JOB: string, COMPQ: string, COMPZ: string, N: number, ILO: number, IHI: number, H: ndarray<number>, LDH: number, T: ndarray<number>, LDT: number, Q: ndarray<number>, LDQ: number, ...
import { bilibiliApi, getJsonWithCredentials } from '@/core/ajax' import { formData, matchUrlPattern } from '@/core/utils' import { ascendingSort, descendingSort } from '@/core/utils/sort' import { allQualities, VideoQuality } from '@/components/video/video-quality' import { bangumiUrls } from '@/core/utils/urls' impor...
/** * Copyright (c) 2006-2015, JGraph Ltd * Copyright (c) 2006-2015, <NAME> * Updated to ES9 syntax by <NAME> 2021 * Type definitions from the typed-mxgraph project */ import { MouseEventListener, MouseListenerSet } from '../../types'; import { hasScrollbars } from '../../util/styleUtils'; import EventObject from...
<reponame>tfwdev/moncher import * as firebase from "firebase/app" import {Disposable, Disposer} from "tfw/core/util" import {Scale, windowSize} from "tfw/core/ui" import {dim2, rect, vec2zero} from "tfw/core/math" import {uuidv1} from "tfw/core/uuid" import {Clock, Loop} from "tfw/core/clock" import {Value} from "tfw/...
import type { RcFile as OriRcFile, UploadRequestOption as RcCustomRequestOptions, } from '../vc-upload/interface'; import type { ProgressProps } from '../progress'; import type { VueNode } from '../_util/type'; import type { ExtractPropTypes, PropType, CSSProperties } from 'vue'; export interface FileType extends ...
/** * FilePermissionResolver - is the class ensuring order & possibility of some operations on dataId (fileName). * service should be started for each dataId separately * * allowed actions/operations are: * - lock - can be performed by multiple agents at the same time (POOL) - do not delete untill unlock * - acce...
<reponame>gautamdsheth/sp-dev-fx-property-controls import * as React from 'react'; import * as ReactDom from 'react-dom'; import { BaseComponentContext } from '@microsoft/sp-component-base'; import { IPropertyPaneField, PropertyPaneFieldType } from '@microsoft/sp-property-pane'; import PropertyPaneFilePickerHost ...
<gh_stars>1-10 import { getFragment } from './getFragment'; import { deleteSelection } from './deleteSelection'; import { setCursorPosition } from './setCursorPosition'; import { transformFinalFragment } from './transformFinalFragment'; import { TMentionConfig } from '../RichMentionsContext'; import { removeBrokenFragm...
import { OnInit, Component, ComponentFactory, TemplateRef, ViewChild, ViewContainerRef, Injector, ApplicationRef, ComponentRef, EmbeddedViewRef, ChangeDetectionStrategy, Renderer2, ElementRef, ChangeDetectorRef, DoCheck, } from '@angular/core'; import { state, style, transition, animate,...
/* * Copyright (c) 2020-2021 <NAME>, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions...
import * as React from "react"; import * as fs from "fs"; import * as Path from "path"; import ReactModal from "react-modal"; import "./RenameFileDialog.scss"; import CloseOnEscape from "react-close-on-escape"; import { File } from "../../model/file/File"; import { Folder } from "../../model/Folder/Folder"; import { Tr...
<reponame>pawelnguyen/ledger-live-common // Ported from https://github.com/bitcoinjs/bech32/tree/605655d6b37a782345549cd1388db688a96ad56f // until we can use bech32 2.0.0 // We can't directly use bech32 2.0.0 because many of our dependencies are still using bech32 ^1.1.3 // which conflict on mobile (root cause of https...
import Vue from 'vue'; import { Component, Prop, Watch } from 'vue-property-decorator'; import { PostOpenSource, trackPostOpen } from '../../../../../_common/analytics/analytics.service'; import { ContentFocus } from '../../../../../_common/content-focus/content-focus.service'; import AppContentViewer from '../../../.....
//--------------------------------------------------------------------------- // class Game // class GameUtils // class GameModel //--------------------------------------------------------------------------- import {Coordinate} from "./coordinate"; import {GameMap} from "./map"; import {AttackFleet, DefenseFleet, Flee...
<gh_stars>1-10 // TODO: 나중에 Jquery 제거, Typescript로 rewrite // 원철 선배 , "유지보수하기 어렵게 코딩하는 방법: 평생 개발자로 먹고 살 수 있다" 이걸 실천하네 import $ from "jquery" import { serverIP } from "./mainCore" var slideIndex: number = 0 var showTime: number[] = [3000] var on: number[] = [0] var image_list = Array() var server_image: string var t...
/** * This file has helper types that map from the specfication type to handler function types. */ import { ResponsesSpec, ContentsSpec, RootSpec, PathsSpec, OperationsSpec, OperationSpec, RequestBodySpec, } from "./spec-types"; /** * From the root of the spec, create a type for an object with handle...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import { isURL } from '../utils'; import App from '../app'; import { ResourceTiming, PageLoadTiming, PageRenderTiming } from '../../messages'; import type Message from '../../messages/message'; // Inspired by https://github.com/WPO-Foundation/RUM-SpeedIndex/blob/master/src/rum-speedindex.js interface ResourcesTimeMap...
<reponame>BlocksHub/web-frontend<filename>src/middleware/Any.ts /** * The purpose of this middleware is to set relevant res.locals, and to set relevant headers (content-security-policy mostly) */ import { Request, Response, NextFunction } from 'express'; import crypto = require('crypto'); import os = require('os'); ...
import Weather from "types/weather"; import { Flex } from "@chakra-ui/react"; import { GiPeanut, GiBirdClaw, GiMicrophone, GiBigWave, GiVortex, GiCoffeeCup, GiFlood, GiHelp, GiSalmon, GiBatteryPlus, GiBatteryMinus, GiMusicSpell, GiNightSleep, GiStripedSun, GiBarbedSun, GiSunRadiations, ...
<reponame>gitter-badger/node-level<filename>src/Compaction.ts<gh_stars>0 /** * Copyright (c) 2018-present, heineiuo. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { FileMetaData } from './VersionFormat' import Version from '...
<gh_stars>0 import { YtResponse } from 'youtube-dl-exec'; import { VoidCallbackPayload, DownloadTaskStartType, DownloadTaskUpdateType, ValuePayload, SetSettingPayload, GetSettingPayload, DownloadTaskMetaDataPayload, SetSongTagsPayload, YtdlDownloadUpdatePayload } from '../../electron/electronNativeApi' import { setting...
import React, { createContext, useCallback, useContext, useState } from 'react'; import api from 'src/services/api'; import { useAuth } from './auth'; interface MarvelContent { marvel_id: string; description?: string; picture: string; isFavorite: boolean; } interface CharactersProps extends MarvelContent { ...
import "@tsed/ajv"; import {BodyParams, Controller, Description, Get, Name, PlatformTest, Post, Required, Returns} from "@tsed/common"; import {Summary} from "@tsed/swagger"; import {expect} from "chai"; import * as SuperTest from "supertest"; import {CustomBadRequest} from "../errors/CustomBadRequest"; import {CustomI...
<gh_stars>0 import { Injectable } from '@angular/core'; import { Plugin, CordovaInstance, InstanceCheck, IonicNativePlugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; declare var cordova: any; export interface ThemeableBrowserButton { wwwImage?: string; image?: string; wwwImagePre...
import { Sequelize, DataTypes, Model, Op } from 'sequelize' import { sequelize } from '../../core/db' import { Exist, NotFound } from '../../core/http-exception' import ProjectCategory from './project_category' import { IProjectRetrieve, IProjectCreate, IProjectUpdate } from '../types' import { getTimeInterval } from...
import { fileURLToPath } from 'url' import { dirname, join } from 'path' import fs from 'fs/promises' const file = join(dirname(fileURLToPath(import.meta.url)), 'input.txt') const input = await fs.readFile(file, 'utf8') const transmission = input.trim() /** Parse a hex character into a binary string, padded to 4 bits...
/* * 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 ...
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'; import { RootState } from './'; import bt, { IBuyChannelRequest, IExchangeRatesResponse, IGetInfoResponse, IGetOrderResponse } from '@synonymdev/blocktank-client'; import { TFiatCurrency } from '../utils/exchange-rates'; export type R...
/* * 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 React, { SFC, useContext, useEffect, useState } from 'react'; import ...
import superagent from 'superagent' import moment from 'moment' import cheerio from 'cheerio' import ical from 'node-ical' import { isRight } from 'fp-ts/Either' import { IEventZoomLink } from 'domain/event' import { ICourseTeamsLink } from 'domain/course' import { loginResponseDecoder } from './decoders' const STUDEN...
import { Event, EventEmitter, ExtensionContext, Range, Selection, SymbolInformation, SymbolKind, TextDocument, TextEditor, TextEditorRevealType, TreeDataProvider, TreeItem, TreeItemCollapsibleState, TreeView, commands, window, workspace, Position } from "vscode"; import { getIcon } ...
/* Do not change these import lines to match external modules in webpack configuration */ import * as grok from 'datagrok-api/grok'; import * as ui from 'datagrok-api/ui'; import * as DG from 'datagrok-api/dg'; import {ModelHandler} from './model-handler'; import {selectOutliersManually} from './outliers-selection'; im...
<gh_stars>0 /** * GraphQLのエンドポイント */ import firebaseAdmin from '@services/firebaseAdmin'; import {decrypt} from '@utils/encryption'; import {PageConfig} from 'next'; // GraphQL関連 import {ApolloServer, gql} from 'apollo-server-micro'; import Cors from 'micro-cors'; import {makeExecutableSchema} from '@graphql-tools/s...
import type { Task, SagaIterator } from '@redux-saga/types' import { EventChannel } from '@redux-saga/core' import { fork, call, take, put, delay, all } from '@redux-saga/core/effects' import { SessionConstructor, InternalUserOptions, InternalChannels, } from '../utils/interfaces' import { getLogger, setDebugOpti...
import { ReturnData } from "../provider/return-data"; import { ErrorInferrer, instructionToCallstackStackTraceEntry, SubmessageData, } from "./error-inferrer"; import { adjustStackTrace, stackTraceMayRequireAdjustments, } from "./mapped-inlined-internal-functions-heuristics"; import { DecodedCallMessageTra...
import ValueObject from "../seedwork/ValueObject"; import Chessboard from "./chessboard/Chessboard"; import PlayerSideColour from "./PlayerSideColour"; import Castling, { CastlingService } from "./Castling"; import Move from "./Move"; import Piece from "./Piece"; import ChessGameEngineError from "./ChessGameEngineError...
<filename>sdk/src/local/system-font-manager.ts import createCancelToken, { CancelToken } from '@avocode/cancel-token' import { create as createFontkit, Fontkit } from '@avocode/fontkit' import SystemFontFamilies, { getFontInfo } from '@avocode/system-font-families' import { extname, resolve as resolvePath } from 'path'...
<gh_stars>1-10 import * as project from './project' import * as _ from 'underscore' import * as style from '../frontend/javascriptStyle' import * as parser from '../parser/custom'; import * as AST from '../AST/index'; import * as checker from '../types/checker'; import * as types from '../types/index'; import * as HTTP...
<gh_stars>0 import { Injectable, Inject } from '@angular/core'; import { AbTestOptions } from './module'; import { AbTestForRealUser, AbTestForCrawler, CookieHandler, CrawlerDetector, RandomExtractor, TestStartedEvent } from './classes'; import { CONFIG } from './injection-tokens'; import { error } from './error'; impo...
import * as _ from 'lodash' import { getSheetData } from './spreadSheet' import * as tyranoMessage from '../tyrano/tyranoMessage' // http://192.168.50.10:3000/api/v1/tyranoudon?sheet=1iW0dZFd1AumfqTVnR_UuPmSRJlBK5ibrgYkUC3AXO58 const sendLoaded = `[iscript] window.parent.postMessage( { type: 'tyrano', paylo...
<filename>packages/fsapp/src/lib/nav-wrapper.web.tsx<gh_stars>0 import React from 'react'; import { EventSubscription } from 'react-native'; import pushRoute, { overwrite } from './push-route'; import { AppConfigType, DrawerConfig, NavLayout, NavLayoutStackChildren, NavModal, NavOptions } from '../types'; ...
<reponame>jsyme222/webiny-js import { withFields, string } from "@commodo/fields"; import { ContextPlugin } from "@webiny/handler/types"; import { validation } from "@webiny/validation"; import mdbid from "mdbid"; import { CmsContentModelGroupContext, CmsContentModelGroupListArgs, CmsContentModelGroupPermis...
// Generated by https://quicktype.io export interface Spell { spell: SpellElement[]; } export interface SpellElement { name: string; source: BackgroundSource; page: number; srd?: boolean | string; level: number; school: School; time: Time[]; range: Range; components: Components; duration: Durati...
import { Context, UnimplementedError, ValidatedResponse } from '@txstate-mws/graphql-server' import { Resolver, Query, Arg, Ctx, FieldResolver, Root, Mutation } from 'type-graphql' import { AssetRule, AssetRuleService, DataRule, DataRuleService, GlobalRule, GlobalRuleService, PageRule, PageRuleService, SiteRule, Si...
/** * The logic of allow rules in combination with type checks */ import firebase = require('@firebase/testing'); import {loadRules} from '../util/rules'; import {ListTest, OptListTest, MapTest, LitTest, WardTimestamp, TimestampTest, isTimestamp, GeoTest, WardGeoPoint, isGeoPoint, AnyTest, QuotedTest} from '../wards/...