text stringlengths 10 953k |
|---|
import express, { response } from "express";
import cors from "cors";
import routes from "./routes";
import path from "path";
import { errors } from "celebrate";
const app = express();
app.use(cors());
app.use(express.json());
app.use(routes);
app.use("/uploads", express.static(path.resolve(__dirname, "..", "uploads... |
import { ScreenState } from '../../../models'
// prettier-ignore
export const OFF = [
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0,
] as const
// prettier-ignore
const V = [
0, 1, 0, 1, 0,
0, 1, 0, 1, 0,
0, 1, 0, 1, 0,
0, 1, 0, 1, 0,
0, 0, 1, 0, 0,
] as const
// prettier-ignore
const ... |
import { CloudFunction, EventContext } from '../cloud-functions';
import { DeploymentOptions } from '../function-configuration';
/** @hidden */
export declare const provider = "google.firebase.remoteconfig";
/** @hidden */
export declare const service = "firebaseremoteconfig.googleapis.com";
/**
* Registers a function... |
import { webEOL } from '@sap-cloud-sdk/util';
import {
multiChangesetRequest,
singleChangesetRequest
} from './changeset-request';
import { getAllRequest, getByKeyRequest } from './retrieve-request';
export const multiRetrieveRequest = () =>
[
'--batch_.*',
...getAllRequest,
'--batch_.*',
...getB... |
import React, { useEffect, useState } from 'react';
import Switch from './Switch';
import { variants } from '../../../utils/helpers';
import { Variant } from '../../../types';
import Story from '../../storybook/Story';
import StoryItem from '../../storybook/StoryItem';
import StoryRow from '../../storybook/StoryRow';
... |
import { Component } from '@angular/core';
import { LocalDataSource } from 'ng2-smart-table';
import { Router } from '@angular/router';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { Util } from '../../uteis/Util';
import { Prontuario } from '../../modelos/prontuario';
import { ProntuarioService } from... |
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';
import { AppRoutingModule } from './app.routing';
import { PagesModule } from '.... |
import { DynamoStore, update } from '@shiftcoders/dynamo-easy'
import { Person } from '../models'
const personStore = new DynamoStore(Person)
personStore.update('vogelsw')
.operations(
update('name').set('Werner Vogels'),
update('yearOfBirth').set(1984),
) |
import { Button, Col, Divider, message, Row } from 'antd';
import Form, { WrappedFormUtils } from 'antd/lib/form/Form';
import { Router, withRouter } from 'next/router';
import React from 'react';
import HeaderBar from '../../../../../components/backend/header-bar';
import AudioBookForm from '../../../../../components/... |
import BN from 'bn.js';
import { PublicKey, TransactionSignature } from '@solana/web3.js';
import { Wallet } from '../wallet';
import { Connection } from '../Connection';
import { sendTransaction } from './transactions';
import { TransactionsBatch } from '../utils/transactions-batch';
import { createApproveTxs, createW... |
import { ILogger } from "./logger";
export declare const messageServicePath = "/services/messageService";
export declare enum MessageType {
Error = 1,
Warning = 2,
Info = 3,
Log = 4,
}
export interface Message {
type: MessageType;
text: string;
actions?: string[];
}
export declare class Mess... |
import * as vscode from 'vscode';
import { PonyFileSystem } from './PonyFileSystem';
import { StatusTicker } from './StatusTicker';
import { log } from './Log';
interface ResetHostMenuItem extends vscode.QuickPickItem {
name?: string;
all?: boolean;
}
export function activate( context: vscode.ExtensionContext ) {
... |
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import VConsoleSveltePlugin from '../lib/sveltePlugin';
import { StorageTab } from '../components/Storage';
export default class VConsoleStorageTab extends VConsoleSveltePlugin {
constructor(id: string, name: string, renderProps = { propA: 1 }) {
super(id, name, StorageTab, renderProps);
}
} |
import {
IonApp,
IonContent,
IonHeader,
IonTitle,
IonToolbar,
IonPage,
IonButton,
IonCard,
IonCardHeader,
IonCardContent,
IonText
} from '@ionic/react';
import React, { useState } from 'react';
import { auth } from '../firebase';
const SettingsPage: React.FC = () => {
return (
<IonPage>... |
import { CategoryEntity } from "../../categories/categories.entity";
import { IMedia } from '../../../shared/interfaces/media.interface'
export interface IProject {
id: string,
validation: IValidation
slug?: string
title: string
category: ICategory
creator: IUser
media: IMedia[]
content: string
loc... |
import createCache from "@emotion/cache";
import { EmotionCache } from "@emotion/react";
export const createEmotionCache = (): EmotionCache => {
return createCache({ key: "css" });
}; |
import { inject,injectable } from 'inversify';
import { RegistrableController } from "./registrableController";
import { Application, Request, Response, NextFunction } from "express";
import { InvoiceService,TransactionService } from './../service';
import {TYPES} from '../ioc/types';
import routeHandlerMiddleware from... |
// 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 ... |
<TS language="ru" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Клик правой кнопкой для редактирования адреса или метки</translation>
</message>
<message>
<source>Create a new address</source>
... |
import * as path from "path";
import {
getObjectFromJsonFile,
} from "../../utils";
const getAliasFromConfig = function (baseUrl: string, jsonPath?: string): object | false {
const configPath = jsonPath ? jsonPath : './tsconfig.json';
const fullPath = path.join(baseUrl, configPath);
const configObj = getObjectF... |
import React from "react";
import Link from "@docusaurus/Link";
import style from "./style.module.scss";
export default function HomeSystems() {
return (
<section className={style.main}>
<h1>Systems</h1>
<div className={style.icons}>
<Link href="youtube.com">
<i className="far fa-e... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { IDeploy, IDeployResponse } from './interfaces';
@Injectable({
providedIn: 'root'
})
export class DeployService {
deployDetailRoute = '/api... |
import { Container } from 'typedi';
import { ExperimentService } from '../../../src/api/services/ExperimentService';
import { Logger as WinstonLogger } from '../../../src/lib/logger';
import { UserService } from '../../../src/api/services/UserService';
import { systemUser } from '../mockData/user/index';
import { previ... |
import { expectScoreResult } from '../../../helpers';
describe('After running stryker on angular project', () => {
it('should report 15% mutation score', async () => {
await expectScoreResult({
killed: 2,
mutationScore: 15.38,
runtimeErrors: 2,
survived: 11,
timedOut: 0
});
})... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import {decoratorCore} from './decorator-core';
import {putRegister} from '../registers/put.register';
/**
* Put decorator for PUT endpoints.
* @param route
* @returns {(target:(Object|Function), methodName:string)=>void}
* @constructor
*/
export function Put(route: string) {
return function (target: Object|Fu... |
export default function(needle:string, haystack:string):boolean |
/**
* @license
* Copyright (c) 2017, Sopar Sihotang.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... |
import { toggleClass } from './util'
/**
* Change project gray mode status
* @param gray
*/
export function updateGrayMode(gray: boolean) {
toggleClass(gray, 'gray-mode', document.documentElement)
} |
import { StandardProps } from "@material-ui/core";
import React from "react";
import { HvScrollToTooltipPositions } from "../tooltipPositions";
interface Option {
key?: string;
label: string;
value: string;
offset?: number;
}
export type HvScrollToHorizontalClassKey = "root" | "positionSticky" | "positionFixe... |
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
import * as React from 'react';
/**
* Values of fields in the form
*/
export interface FormikValues {
[field: string]: any;
}
/**
* An object containing error messages whose keys correspond to FormikValues.
* Should be always be and object of strings, but any is allowed to support i18n libraries.
*/
export type... |
<TS language="ca_ES" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Feu clic dret per a editar l'adreça o l'etiquetaccn</translation>
</message>
<message>
<source>Create a new address</source>
... |
import { HTMLProps } from 'react';
import { TippyProps } from '@tippyjs/react';
import { StyledProps } from '@udecode/slate-plugins-ui-fluent';
export interface ToolbarButtonProps
extends StyledProps<ToolbarButtonStyleProps> {
/**
* Is it active.
*/
active?: boolean;
/**
* Icon of the button.
*/
... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../../../shared/shared.module';
import { LajiFormComponent } from './laji-form/laji-form.component';
import { LajiFormFooterComponent } from './laji-form-footer/laji-form-footer.component';
@NgModule... |
import {HostTree} from '@angular-devkit/schematics';
import {UnitTestTree} from '@angular-devkit/schematics/testing';
import {hasNgModuleImport} from './ng-module-imports';
describe('NgModule import utils', () => {
let host: UnitTestTree;
beforeEach(() => {
host = new UnitTestTree(new HostTree());
});
de... |
import Camera from '@paddlejs-mediapipe/camera';
import * as humanseg from '@paddlejs-models/humanseg';
let camera = null;
const loadingDom = document.getElementById('isLoading');
const video = document.getElementById('video') as HTMLVideoElement;
const videoToolDom = document.getElementById('video-tool');
const bgEl... |
/** @jsx jsx */
import { Transforms } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.insertFragment(editor, <fragment>fragment</fragment>)
}
export const input = (
<editor>
<block>
wo
<cursor />
rd
</block>
</editor>
)
export const output = (
<ed... |
import Mark, { markMotion } from './mark.component';
export { Mark, markMotion }; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Box, Flex } from 'reflexbox';
import { DataFrameSidebar } from '../../../../components/dataframe/DataFrameSidebar';
import React, { useEffect, useState } from 'react';
import {
useChartCreator,
useDataFrames,
useDataFramesState,
useIsDraggingDroppedColumn,
} from '../../../../store/selectors';
import {... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TransFast</source>
<translation type="unfinished"/>
</message>
<message>
<location line... |
import React, { Component } from 'react';
// App
import { Card, Spinner } from 'react-bootstrap';
import { ErrorMessage, t2wmlColors } from '@/renderer/common/general';
import { IStateWithError } from '@/renderer/common/service';
import ToastMessage from '@/renderer/common/toast';
import { observer } from "mobx-rea... |
import * as vue_demi from 'vue-demi';
import { Ref, WatchOptions, WatchSource, ComputedRef, WatchCallback, WatchStopHandle, ShallowUnwrapRef as ShallowUnwrapRef$1, UnwrapRef, ToRefs } from 'vue-demi';
declare const isClient: boolean;
declare const isDef: <T = any>(val?: T | undefined) => val is T;
declare const assert... |
import * as argparse from 'argparse';
import { CommandLineAction } from './CommandLineAction';
import { CommandLineParameterProvider } from './CommandLineParameterProvider';
/**
* Options for the {@link CommandLineParser} constructor.
* @public
*/
export interface ICommandLineParserOptions {
/**
* The name ... |
import { Router } from 'express';
import usersRouter from './users.routes';
import transactionsRouter from './transactions.routes';
import { obtainToken } from '../auth/auth';
const routes = Router();
// Auth
routes.all('/api/auth', obtainToken);
routes.get('/', (req, res) => res.send('Hello World!'));
// Routes
r... |
import { FieldNameActionType } from './CashRuleV1';
export class JsonAction {
fieldName: FieldNameActionType;
parameter: string;
randomId: number;
constructor(jsonObj: any = {}) {
if (jsonObj.fieldName) {
this.fieldName = jsonObj.fieldName;
}
if (jsonObj.parameter) {... |
import {MigrationInterface, QueryRunner, Table} from "typeorm";
export class createOrphanages1602638959051 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(new Table({
name: 'orphanages',
columns: [
{
name: 'id... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { DetailBookPage } from './detail-book.page';
const routes: Routes = [
... |
// *** 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 { input as inputs, output as outputs, enums } from "../types";
import * as utilities from "../utilities";
/**
* A... |
import {
Kind,
GraphQLError,
GraphQLScalarType,
GraphQLScalarTypeConfig,
} from 'graphql';
const validate = (value: any) => {
const HSL_REGEX =
/^hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)$/;
if (typeof value !== 'string') {
throw new TypeError(`Value is not s... |
import { injectable } from 'tsyringe'
import { Promisable } from 'type-fest'
import { Clock, TimeoutId } from '../time/clock'
/**
* A method scheduled to run periodically.
*
* @param timeSinceLastRunMillis the number of milliseconds since this method last ran. Will include
* time that the LazyScheduler was not ... |
import { expect } from "chai";
import { DefaultClause } from "../../../compiler";
import { SyntaxKind } from "../../../typescript";
import { getInfoFromTextWithDescendant } from "../testHelpers";
function getDefaultClause(text: string) {
return getInfoFromTextWithDescendant<DefaultClause>(text, SyntaxKind.DefaultC... |
import { AfterViewInit, Component, ElementRef, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ApiService } from '../../../services/api.service';
import { VariableService } from '../../../services/variable.service';
import { Conf... |
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... |
import { newE2EPage } from '@stencil/core/testing';
describe('zoo-footer', () => {
it('renders', async () => {
const page = await newE2EPage();
await page.setContent('<zoo-footer></zoo-footer>');
const element = await page.find('zoo-footer');
expect(element).toHaveClass('hydrated');
});
}); |
import axios, { AxiosResponse } from "axios";
import { combineRoutes } from "../services/combineRoutes.service";
import { apiRoutes } from "../shared/enums/apiRoutes.enum";
export const getDashboard = async (id: string): Promise<AxiosResponse> => {
return await axios.get(combineRoutes(apiRoutes.GET_DASHBOARD, id));
... |
import * as jwt from 'jsonwebtoken'
import * as Dao from '../../data/dao'
import createBody from '../config/createBody'
import {jwtSecret} from '../config/encrypto'
async function getTheUserCollections(ctx) {
const params = ctx.request.query
const collections = await Dao.Collection.findAll(params)
ctx.body = cre... |
import { isNil } from '../src/utils/is-nil';
describe('IsNil', () => {
it('undefined', () => {
expect(isNil(undefined)).toEqual(true);
});
it('null', () => {
expect(isNil(null)).toEqual(true);
});
it('empty string', () => {
expect(isNil('')).toEqual(true);
});
}); |
export interface IBridge {
clearPage(pageName: string): void;
setFunByPage(pageName: string, funName: string, fun: Function): any;
}
export declare const Zk_Bridge: string;
export declare class Bridge implements IBridge {
setFunByPage(pageName: string, funName: string, fun: Function): void;
clearPage(pa... |
// ____________________ ::TS_IMPORT_SEPARATOR:: ____________________ //
import {XeEntity} from "./XeEntity";
import {EntityIdentifier} from "../../framework/model/XeFormData";
import {XeTableData} from "../../framework/model/XeTableData";
import {EntityUtil} from "../../framework/util/EntityUtil";
// __________________... |
export { default } from './Form';
export { FormProps } from './Form.types'; |
import React from 'react';
import { Button, Col, Input, Modal, ModalBody, ModalFooter, ModalHeader, Row } from 'reactstrap';
import './entity-box.css';
import { generateGroupsOfDisjunctions } from 'app/shared/util/constraint-utils';
import ConstraintItem from 'app/modules/constraints/constraint-item';
import { FontAwe... |
import OpenInNew from '@material-ui/icons/OpenInNewRounded'
import { inject, observer } from 'mobx-react'
import * as React from 'react'
import getUniqueKey from 'uuid/v1'
import { IRootStore } from '../../store'
import { IaogLinkOut, ILinkOutSuggestionObj } from '../../store/messages'
interface IBotProps {
store: I... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { User, Tweet } from './app.classes';
declare let ga: any;
@Injectable()
export class UserService {
private user: Promise<User>;
constructor(private http: HttpClient) {
this.user = this.get();
}
... |
import {log} from './Log.service';
export class ListenerHandler {
private listeners: any;
constructor(private element: any) {
this.listeners = [];
log("the element", this.element);
}
addEventListener(event: string, f: any) {
this.element.addEventListener(event, f, false);
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Dravite</source>
<translation type="unfinished"/>
</message>
<message>
<location line="... |
import { NativeModulesProxy } from 'expo-core';
import * as Facebook from '../Facebook';
import { describeCrossPlatform, mockProperty, unmockAllProperties } from 'jest-expo';
const fakeReturnValue = { type: 'dismissed' };
function applyMocks() {
mockProperty(
NativeModulesProxy.ExpoWebBrowser,
'openBrowser... |
'use strict'
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import { SeverityLevel } from 'applicationinsights/out/Declarations/Contracts'
import * as fs from 'async-file'
import { unwatchFile, watchFile } from 'async-file'
im... |
import React, { useEffect, useMemo, useState } from 'react'
import FeatherIcon from 'feather-icons-react'
import { Transaction, useTransaction, useIsWalletMetamask } from '@pooltogether/hooks'
import { PrizePool } from '@pooltogether/v4-js-client'
import { useRouter } from 'next/router'
import { useForm } from 'react-h... |
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
import { Observable } from 'rxjs';
import { DateRangeTableFilter } from 'shared/table/filters/date-range-table-filter';
import { IssuerFilter } from 'shared/table/filters/issuer-... |
export * from './AppHeader'
export * from './Home'
export * from './Host'
export * from './Listing'
export * from './Listings'
export * from './NotFound'
export * from './User'
export * from './Login' |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { PublicClientApplication, AccountInfo, Configuration, TokenCache } from "@azure/msal-node";
import express from "express";
import * as http from "http";
import * as fs from "fs-extra";
import * as path from "path";
import { Mutex } from... |
<TS language="zh_TW" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>右鍵點一下來修改位址或標記</translation>
</message>
<message>
<source>Create a new address</source>
<translation>產生一個新位址</translation... |
type behaviourType = "BEHAVIOUR" | "TWILIGHT"
type aicorePresenceType = "SOMEBODY" | "NOBODY" | "IGNORE" | "SPECIFIC_USERS"
type sunTimes = "SUNSET" | "SUNRISE"
type aicoreSetAction = aicoreSwitchAction //| aicoreColorSwitchAction
type aicoreChangeAction = aicoreTwilightAction//| aicoreColorTwi... |
export { default as QRNormal } from "./components/QRNormal";
export { default as QR25D } from "./components/QR25D";
export { default as QRDsj } from "./components/QRDsj";
export { default as QRRandRect } from "./components/QRRandRect";
export { default as QRImage } from "./components/QRImage";
export { default as QRRes... |
import React from 'react';
import classNames from 'classnames';
import './index.less';
interface EmptyProps {
text?: string;
className?: string;
}
const Empty: React.FC<EmptyProps> = props => {
let { text, className } = props;
return <div className={classNames("emptyWrap", className)}>
<div className="emptyInne... |
import { FakeStorageArea } from "./FakeStorageArea";
import { Settings } from "./Settings";
import { Storage } from "./Storage";
function setUpBrowser() {
window.browser = {
runtime: {
onMessage: {
addListener: () => { /* No-op */ },
},
},
} as any;
}
de... |
import fs from 'fs'
import merge from 'deepmerge'
import toml from 'toml'
import { getConfigPath } from './paths'
export enum TargetEnum {
NODE = 'node',
BROWSER = 'browser',
REACT_NATIVE = 'react-native',
ELECTRON = 'electron',
}
export interface NodeTargetConfig {
name?: string
host: string
port: nu... |
// UI
export const ACTION_SET_THEME = "ACTION_SET_THEME";
// Categories
export const ACTION_CATEGORIES_LOADED = "ACTION_CATEGORIES_LOADED";
export const ACTION_CATEGORIES_START_LOADING = "ACTION_CATEGORIES_START_LOADING";
export const ACTION_CATEGORIES_FAILED_LOAD = "ACTION_CATEGORIES_FAILED_LOAD";
export const ACTION... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PageNotFoundComponent } from './shared/components';
import { RequireUnauthGuard, EditorGuard } from './home/guards';
const routes: Routes = [
{
path: '',
loadChildren: './home/home.module#HomeModule',
... |
// Original file: src/protos/zetasql/parser/parse_tree.proto
import type { ASTNodeProto as _zetasql_ASTNodeProto, ASTNodeProto__Output as _zetasql_ASTNodeProto__Output } from '../zetasql/ASTNodeProto';
import type { ASTIdentifierProto as _zetasql_ASTIdentifierProto, ASTIdentifierProto__Output as _zetasql_ASTIdentifier... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
export const getReleases = () => {
return Promise.resolve({data: [
{id: 1, name: 'Release 1', release_date: '2020-01-01', description: 'test', builds: [],
release_pattern: {start_build: {id: 1, name: '1.0'}, build_mask: '1.X'}}
] });
};
export const postRelease = (data: any) => {
... |
'use strict';
// 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 path from 'path';
// this method is called when your extension is activated
// your extension is activated the very fi... |
import { UpdateWriteOpResult, Collection } from 'mongodb';
import { BaseRaw } from './BaseRaw';
import { INps, NPSStatus } from '../../../../definition/INps';
type T = INps;
export class NpsRaw extends BaseRaw<T> {
constructor(
public readonly col: Collection<T>,
trash?: Collection<T>,
) {
super(col, trash);
... |
import { S3, Endpoint } from 'aws-sdk'
import { Injectable } from '@nestjs/common'
import { ConfigService } from '@nestjs/config'
@Injectable()
export class S3Provider {
private _s3: S3
private configs: any
public bucket: string
constructor(private configService: ConfigService) {
this.configs = this.con... |
import mongoose from "mongoose";
import request from "supertest";
import { app } from "../../app";
import { Order, OrderStatus } from "../../models/order";
import { Ticket } from "../../models/ticket";
import { natsWrapper } from "../../nats-wrapper";
it("marks an order as cancelled", async () => {
// create a tick... |
// js 3rd party libs
import React, { PureComponent } from 'react';
// Grafana Module
import { store } from 'app/store/store';
import { appEvents } from 'app/core/core';
import { connectWithStore } from 'app/core/utils/connectWithReduxStore';
// Thingspin libraires
import { TsCoreEvents } from 'app-thingspin-fms/types... |
import { describe, expect, it } from 'vitest'
import { NumArray, NumArray2, NumArray3, NumArray4 } from '.'
describe(' 区域和检索 - 数组可修改', () => {
describe('暴力解法', () => {
testCase(NumArray)
})
describe('分块处理', () => {
testCase(NumArray2)
})
describe('线段树', () => {
testCase(NumArray3)
})
descr... |
import { CommentItem } from '@/types/common-types';
export default interface HistoryData {
num_player_publications: number;
num_researcher_publications: number;
num_all_publications: number;
num_lab_solutions: number;
num_solved_puzzles: number;
} |
import { IsEmail, IsEmpty, IsNotEmpty } from "class-validator";
export class UserDto {
@IsEmpty() id: number;
@IsNotEmpty() name: string;
@IsNotEmpty() @IsEmail() email: string;
} |
import {Component, OnInit} from '@angular/core';
@Component({
selector: 'app-tooltip',
template: `
<app-header name="Tooltip / Popover" class="no-border"></app-header>
<div class="card mb-4">
<div class="card-body">
<h3 class="mt-0 mb-3">Simple tooltip</h3>
<button type="button" class="btn btn-outline... |
import React from 'react';
import { useMutation, useQuery } from '@apollo/client';
import { useTranslation } from 'react-i18next';
import { AddComment } from '@app/graphql/mutations';
import { UserEntity } from '@app/common/types/modules/user/user.entity';
import { Comments } from '@app/graphql/query';
import { Commen... |
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import * as bodyParser from 'body-parser';
import { ConfigReader } from 'neconfig';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {
bodyParser: false,
});
app.enableCors();
const rawBodyBu... |
import * as t from "@onflow/types";
import * as fcl from "@onflow/fcl";
import * as fs from "fs";
import * as path from "path";
import { SaleOffer } from "../models/sale-offer";
import { FlowService } from "../services/flow";
const fungibleTokenPath = '"../../contracts/FungibleToken.cdc"';
const nonFungibleTokenPath ... |
import { PROJEN_DIR, PROJEN_RC } from '../common';
import { AutoMerge, DependabotOptions, GitHubProject, GitHubProjectOptions, GitIdentity, TaskWorkflow } from '../github';
import { DEFAULT_GITHUB_ACTIONS_USER } from '../github/constants';
import { JobPermission, JobStep } from '../github/workflows-model';
import { Ign... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.