text stringlengths 10 953k |
|---|
/**
* Copyright 2017 Google Inc. All rights reserved.
* Modifications copyright (c) Microsoft Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
import Type from "@dikac/t-type/validator/type";
import ValueCallback from "../../../dist/validator/value-callback";
import ValidateValue from "../../../dist/validator/validatable/record/value";
import And from "../../../dist/validatable/and";
import MessageMap from "../../../dist/message/message/record/map";
import Or... |
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class ConfigService {
constructor(private http: HttpClient) { }
configUrl = 'assets/test';
getConfig() {
return this.http.get(this.configUrl);
}
} |
import { UiRadioModel } from '@unicodernsui/radio'
export type UiCheckboxModel = UiRadioModel |
import { Nullable } from "../../types";
import { Scene } from "../../scene";
import { Matrix, Vector3 } from "../../Maths/math.vector";
import { BaseTexture } from "../../Materials/Textures/baseTexture";
import { Texture } from "../../Materials/Textures/texture";
import { Constants } from "../../Engines/constants";
imp... |
import { app } from "../Application";
import { ApplicationState } from '../ApplicationState';
import {
createASRContext, ASRSagaCreator,
} from 'axr/dist/ASR';
const context = createASRContext();
context.axrSetOptions({
getState: () => {
return app().axrState();
},
dispatch: (action: any) => {
... |
import defaultShowsSelector from './selectors/defaultShowsSelector';
import { InitialShowType } from './types/showsTypes';
const SORT_BY_ALPHABET = 'shows/SORT_BY_ALPHABET';
const SORT_BY_DATE = 'shows/SORT_BY_DATE';
const SORT_BY_YOUR_FAVORITE = 'shows/SORT_BY_YOUR_FAVORITE';
const SORT_BY_YOUR_VIEWS = 'shows/SORT_BY... |
import { BaseModel } from '../../models';
import { isWorkspace, WorkspaceScopeKeys } from '../../models/workspace';
/**
* When a workspace comes from a git repository, the scope should always be a design document.
* Sometimes, a repository that was created from an older version of Insomnia Designer might have scope ... |
export const education_ch = `
# 毕业于[东北师范大学](http://www.nenu.edu.cn/), 中国吉林长春市
## 计算机科学与应用技术, 2010 - 2014
## 本科学位
## 在校期间层参与中国高校 SDN 软件自定义网络应用开发大赛并获得三等奖
`; |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { CreateAccountPage } from './create-account';
@NgModule({
declarations: [
CreateAccountPage,
],
imports: [
IonicPageModule.forChild(CreateAccountPage),
],
})
export class CreateAccountPageModule {} |
import { Component } from '@angular/core';
import {
BreakpointObserver,
Breakpoints,
BreakpointState,
} from '@angular/cdk/layout';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
@Component({
selector: 'app-navigation',
templateUrl: './navigation.component.html',
styleUrls: ['./na... |
import { DtoBase } from "mod-framework";
export class ReportableInformation extends DtoBase {
infoType: string = "";
name: string = "";
description: string = "";
additionalInfo: string = "";
noLongerHeld: boolean = false;
} |
import type NetworkSync from '../ecs/components/NetworkSync';
type SyncEvent = Readonly<{
type: 'SYNC_GAME_DATA';
payload: {
newObjects: ReadonlyArray<NetworkSync>;
components: ReadonlyArray<never>;
};
network?: boolean;
dispatchable: boolean;
}>;
export type GameEvent1 =
| Readonly<{
type: ... |
import {
CreateConnectorOptions,
ConnectorProps,
Connector,
AsyncActionsConnectorState,
ConnectorState
} from '../utils/connector';
import { apiSessionConnector } from './session';
import { AsyncErrorsHelper } from '../types';
import { apiPetsConnector } from './pets';
export interface ApiState ext... |
//-- copyright
// OpenProject is a project management system.
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which is a ... |
import { ref, Ref, computed, reactive } from "@vue/composition-api";
import { parse } from "query-string";
import {
getSuggestedResults,
getSearchResults,
} from "@shopware-pwa/shopware-6-client";
import {
getListingAvailableFilters,
UiCategoryFilter,
} from "@shopware-pwa/helpers";
import {
ListingQueryPara... |
import React from "react";
import { BrowserRouter, Switch, Route } from "react-router-dom";
import BillsPages from "../components/BillsPages";
import HomeHeader from "../components/HomeHeader";
import Sidebar from "../components/Sidebar";
function Routes(){
return (
<BrowserRouter>
<HomeHeader name="Pabl... |
import { rest } from "../../rest/rest.ts";
import type { ModifyGuildTemplate } from "../../types/templates/modify_guild_template.ts";
import type { Template } from "../../types/templates/template.ts";
import { endpoints } from "../../util/constants.ts";
import { requireBotGuildPermissions } from "../../util/permissions... |
import React from 'react';
import { Taxon, TaxonomyReference } from '../../../types/taxonomy';
import { Tooltip } from 'antd';
import './TaxonItem.css';
// import { relationEngineReferenceToNamespace } from '../../../types/transform';
import { ArrowRightOutlined } from '@ant-design/icons';
export interface Props {
... |
import { Class, Database, HTMLWidget, SVGWidget, WidgetArray } from "@hpcc-js/common";
import * as form from "@hpcc-js/form";
import { Button, CheckBox, ColorInput, FieldForm, Form, Input, InputRange, OnOff, Radio, Range, Select, Slider, TextArea } from "@hpcc-js/form";
import { expect } from "chai";
import { classDef,... |
import * as React from 'react';
import styled from 'styled-components';
import {
Menu,
MenuButton as ReachButton,
MenuList,
MenuItem as ReachMenuItem,
} from '@reach/menu-button';
import type { MenuItemProps as ReachMenuItemProps } from '@reach/menu-button';
import '@reach/menu-button/styles.css';
import { Butt... |
/*
* The MIT License
*
* Copyright 2019 Juliano Maciel Ferreira.
*
* 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 us... |
#!/usr/bin/env node
import chalk from 'chalk';
import { Command } from 'commander';
import { ensureDir, existsSync } from 'fs-extra';
import * as path from 'path';
import prompts from 'prompts';
import * as Examples from './Examples';
import log from './Logger';
import * as Template from './Template';
import shouldUpd... |
import MatchDate from '~/matching/Date'
import checkMatches from '../helper/checkMatches'
import genpws from '../helper/genpws'
describe('date matching', () => {
const matchDate = new MatchDate()
let password
let matches
let msg
let data = ['', ' ', '-', '/', '\\', '_', '.']
data.forEach((sep) => {
pas... |
// Type definitions for got 8.3
// Project: https://github.com/sindresorhus/got#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Linus Unnebäck <https://github.com/LinusU>
// Konstantin Ikonnikov <https://github.com/ikokostya>
// Definitions: https://github.c... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { User } from '../Interfaces/User';
import { UsersService } from '../services/users.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-login',
templateUrl: './... |
/* tslint:disable */
/* eslint-disable */
import { Injectable } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { BaseService } from '../base-service';
import { ApiConfiguration } from '../api-configuration';
import { StrictHttpResponse } from '../strict-http-response';
imp... |
export default {
"title": "Configuration",
"description": "Voici la liste des options pour PhpUnitGen. Elles seront utilisées pour vos générations de tests, et sont sauvegardées dans votre navigateur.",
"quickLinks": "Liens rapides vers les champs",
"state": {
"saving": "Sauvegarde en cours ..."... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { QuickPlayRoutingModule } from './quick-play-routing.module';
import { QuickPlayComponent } from './quick-play.component';
import { MatButtonModule, MatCardModule, MatCheckboxModule, MatFormFieldModule, MatInputModule, Mat... |
import {IdentityModel} from "../models/identity.model";
import {RequestParametersModel} from "../models/request-parameters.model";
import {ResponseElementsModel} from "../models/response-elements.model";
import {S3Model} from "../models/s3.model";
/**
* The Pristine event payload type of a parsed S3 event
*/
export ... |
import { parseCronPart } from "./parseCronPart.js";
import { parseCronYearValue } from "./parseCronYearValue.js";
/**
* Parses `CronYear` into a string.
*
* @category Parser
* @param source `CronYear` to be parsed.
* @returns A string or `undefined` if invalid.
*/
export const parseCronYear = parseCronPart([0, 1... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SharedUiModule } from '@biosimulations/shared/ui';
import { BiosimulationsIconsModule } from '@biosimulations/shared/icons';
import { TextPageCitationSideBarSectionComponent } from './text-page-citation-side-bar-section.component';
des... |
import { ColumnDimensions, Table, TableRowProps } from '../index';
// tslint:disable-next-line: no-namespace
export namespace TableFixedColumns {
/** Describes properties passed to a component that renders a fixed column's cell. */
export interface CellProps extends Table.CellProps {
/** Specifies the side of ... |
/*
* Copyright 2021 Spotify AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
/**
* Copyright 2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or ... |
import { h, ref, computed, onMounted } from 'vue'
import { EmitFn } from '../../types'
export type InputValue = string | number | null | undefined
export interface InputProps {
modelValue: InputValue
name?: string
required?: boolean
readonly?: boolean
disabled?: boolean
autofocus?: boolean
placeholder?: ... |
import { AppPage } from './app.po';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to Todo-App!');
});
}); |
import { WhereCondition } from '../../delegates';
import { ISequence } from '../../interfaces/i-sequence';
import { Sequence } from '../sequence';
export class WhereSequence<T> extends Sequence<T> {
private innerCondition: WhereCondition<T> = null;
public constructor(inner: ISequence<T>, condition: WhereCondi... |
/**
* Copyright 2018-2020 Symlink GmbH
*
* 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... |
function log(...args: Array<unknown>) {
console.log(...args);
}
export default {
name: "console",
log,
}; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import React, { useState, ChangeEvent, useEffect } from 'react'
import { Redirect } from 'react-router-dom'
import '@styles/Login.css'
import { DoLogin } from '@hooks/useAPI'
import { SetStateFT } from '@type/utils'
import { set } from 'idb-keyval'
type LoginProps = {
isAuth: boolean
doLogin: DoLogin
logInError:... |
/**
* Warning: This is an autogenerated file.
*
* Changes in this file won't take effect and will be overwritten
*/
// Base Types
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
type Maybe<T> = T | null | undefined
type Scalars = {
Boolean: boolean
String: string
Float: number
... |
import { Component } from '@stencil/core';
@Component({
tag: 'blaze-breadcrumbs',
})
export class Breadcrumbs {
render() {
return (
<nav>
<ol class="c-breadcrumbs">
<slot />
</ol>
</nav>
);
}
} |
import { inspect } from 'util';
import { status } from './status';
const pretty = (x: unknown) =>
inspect(x, { depth: Infinity, colors: process.stdout.isTTY });
const [port = 25565, host = '127.0.0.1', ping = true] = process.argv.slice(2);
status({
port: Number(port),
host,
ping: ping === true || ping === 'true'... |
import { ImmerReducer } from 'immer-reducer';
import { createActionCreators, createReducerFunction } from 'immer-reducer';
const initialState = {
nodeIdToShowComponentFor: null as string | null,
};
type ISelectedComponentState = typeof initialState;
class SelectedComponentReducerClass extends ImmerReducer<
ISele... |
import createIcon, { JSX } from './utils/createIcon'
export const jsx: JSX = {
type: 'svg',
props: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 24 24'
},
children: [
{
type: 'g',
props: null,
children: [
{
type: 'path',
props: {
fill... |
import { IsNotEmpty } from 'class-validator';
export class CreateAlmacenDto {
@IsNotEmpty()
nombre: string;
} |
import { Component, Inject, OnInit } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MatTableDataSource } from '@angular/material/table';
export interface ObjectDetailsDialogData {
row: any;
index: number;
dataSource: MatTable... |
/*
* 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 { RequestHandlerContext, KibanaRequest } from 'src/core/server';
impor... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
fun... |
import { ClonerOptions } from '../types';
export const cloner = (object: object, options: ClonerOptions = {}) => {
const { toMerge = [], toDelete = [] } = options;
const clone = Object.assign({}, object, ...toMerge);
toDelete.forEach((key: string) => delete clone[key]);
return clone;
};
export const isObject... |
import * as React from "react";
import { TileSendMessage } from "../tile_send_message";
import { mount } from "enzyme";
import { fakeSequence } from "../../../__test_support__/fake_state/resources";
import { SendMessage, Channel } from "farmbot/dist";
import { emptyState } from "../../../resources/reducer";
import { ch... |
import { Component, OnInit } from '@angular/core';
import { CommonService } from 'src/app/services/common.service';
import { AppComponent } from 'src/app/app.component';
@Component({
selector: 'app-sobre',
templateUrl: './sobre.page.html',
styleUrls: ['./sobre.page.scss'],
})
export class SobrePage implements On... |
import React, { useState, useEffect } from "react";
import {
Button,
Form,
Container,
Row,
Col,
Dropdown,
Modal,
} from "react-bootstrap";
import { useLocation, useNavigate } from "react-router";
import { IErrorTenantDetail, ITenantData } from "../../../../types/index";
import {
regexForName,
regexFor... |
<TS language="ms_MY" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik-kanan untuk edit alamat ataupun label</translation>
</message>
<message>
<source>Create a new address</source>
<tra... |
import { GameEvent } from 'services/eventService';
export const adminService = {
loadGroups: loadNights,
updateGroup: updateNight,
createGroup: createNight,
deleteGroup: deleteNight,
loadPickers,
updatePicker,
loadGamers,
updateGamer,
createGamer,
deleteGamer,
loadEvents,
updateEvent,
createE... |
import { replaceInFile } from 'replace-in-file'
export async function replaceTokens(
tokenPrefix: string,
tokenSuffix: string,
files: string[]
) {
let replaceCount = 0
const fromRegEx = new RegExp(
`${escapeDelimiter(tokenPrefix)}(.+?)${escapeDelimiter(tokenSuffix)}`,
'gm'
)
const matchRegEx = ne... |
import {inject, TestBed, async, fakeAsync, ComponentFixture, tick} from '@angular/core/testing';
import {NgModule, Component, ViewChild, ElementRef} from '@angular/core';
import {CdkScrollable, ScrollDispatcher, ScrollingModule} from './public-api';
import {dispatchFakeEvent} from '@angular/cdk/testing';
describe('Scr... |
import * as React from 'react';
import SidePanePlugin from '../../SidePanePlugin';
import SnapshotPane from './SnapshotPane';
import { Editor, Undo } from 'roosterjs-editor-core';
import { PluginEvent, PluginEventType } from 'roosterjs-editor-types';
export default class SnapshotPlugin extends Undo implements SidePane... |
import {Component, OnInit} from "angular2/core";
import {RouteParams, Router} from "angular2/router";
import {TerminalService} from "../services/terminal.service";
import {HTTP_PROVIDERS} from "angular2/http";
import {CategoryCount} from "../services/CategoryCount";
import {MachinesService} from "../services/machines.s... |
import * as d3 from "d3";
import { GraphResponse, GraphEdge, GraphNode } from "../../../../graph-api";
import { Theme } from "material-ui/styles";
import { createDragBehaviour } from "./graph-view.handlers";
const style = require("./graph-view.style.scss");
/**
* Graph configuration parameters.
*/
const nodeRadius... |
import * as React from 'react';
import { IExtensionProps } from '../extensions';
import { colors, chartContainerStyles } from './helpers';
import { Pie } from 'react-chartjs-2';
import { createUseStyles } from 'react-jss';
export interface IProps {
//mandatory
data?: Array<{label: string, data: number}>,
... |
import set from 'lodash/fp/set';
import { selectIsExternalArticleStale } from '../externalArticlesBundle';
import { initialState } from '../../fixtures/shared';
import { capiArticleWithElementsThumbnail } from 'fixtures/capiArticle';
const exampleArticleWithoutLastModified = capiArticleWithElementsThumbnail;
const ex... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-projects',
templateUrl: './projects.component.html',
styleUrls: ['./projects.component.css']
})
export class ProjectsComponent implements OnInit {
// TODO
constructor() { }
ngOnInit() {
}
} |
import { IDocPageProps } from 'office-ui-fabric-react/lib/common/DocPage.types';
export declare const NavPageProps: IDocPageProps; |
import { CallbackType } from '../auth/enums';
import { Callback, Step } from '../auth/interfaces';
import FRCallback from './callbacks';
import createCallback, { FRCallbackFactory } from './callbacks/factory';
import { StepType } from './enums';
import { AuthResponse } from './interfaces';
/**
* Represents a single s... |
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
BaseContract,
ContractTransaction,
Overrides,
CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/byte... |
//
// SDKExporter.ts
// Supernova SDK
//
// Created by Jiri Trecak.
// Copyright © 2021 Supernova. All rights reserved.
//
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
// MARK: - Imports
import { ExporterCustomBlock, ExporterCustomBlockModel } from... |
import { Module } from '@nestjs/common';
import { AuthModule } from 'src/core/auth/auth.module';
import { ApiV1Module } from './v1/apiv1.module';
import { ApiV2Module } from './v2/apiv2.module';
@Module({
imports: [AuthModule, ApiV1Module, ApiV2Module],
})
export class MainModule {} |
export * from './util';
export * from './data-object';
export * from './objects';
export * from './models';
export { PropGroupEnum } from './prop-group.enum'; |
import { serviceLocator } from '@cromwell/core';
import { getAuthSettings, getLogger, getThemeConfigs, TAuthSettings, getCmsSettings } from '@cromwell/core-backend';
import { Injectable } from '@nestjs/common';
import fetch from 'node-fetch';
import { Container, Service } from 'typedi';
import { CmsConfigDto } from '.... |
import style from "@/pages/DataAnalysis/components/SQLEditor/index.less";
import { Button, Tooltip } from "antd";
import {
FormatPainterOutlined,
LockOutlined,
PlayCircleOutlined,
SaveOutlined,
UnlockOutlined,
} from "@ant-design/icons";
import { useModel } from "umi";
import { format } from "sql-formatter";
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Bogdanoffcoin</source>
<translation>Σχετικά με το Bogdanoffcoin</... |
import type { User } from 'authing-js-sdk';
import type { Contact } from 'wechaty';
import { WechatyAuthing } from '../src';
export const client = new WechatyAuthing({
userPoolId: process.env.AUTHING_USER_POOL_ID,
secret: process.env.AUTHING_USER_POOL_SECRET
});
export const searchContact = (id: string, payload =... |
export { default } from "./booking-creation-help-button"; |
import { DefaultThresholdInput, D3Scale } from '../types/Scale';
import { StringLike } from '../types/Base';
import { ScaleConfigWithoutType } from '../types/ScaleConfig';
export default function applyExponent<
Output,
DiscreteInput extends StringLike,
ThresholdInput extends DefaultThresholdInput
>(
scale: D3S... |
import csvParse from 'csv-parse';
import fs from 'fs';
import { inject, injectable } from 'tsyringe';
import { ICategoryRepository } from '@modules/boats/repositories/ICategoriesRepository';
interface IImportCategory {
name: string;
description: string;
}
@injectable()
class ImportCategoryUseCase {
constructor... |
import { html, LitElement, customElement } from 'lit-element';
import '@vaadin/vaadin-ordered-layout/vaadin-horizontal-layout';
import '@vaadin/vaadin-ordered-layout/vaadin-vertical-layout';
import '@vaadin/vaadin-select';
// @ts-ignore
import { applyTheme } from '../../generated/theme';
@customElement('image-list-v... |
type Listeners = {
[id: string]: {
event: string,
element: HTMLElement,
handler: (e: Event) => void
}
}
export class EventListener {
private readonly listeners: Listeners = {}
add(listenerId: string, event: string, element: HTMLElement, handler: (e: Event) => void) {
this.listeners[listenerId]... |
import { RenderHtml } from '../create-middleware'
import { PageTag } from '../full-render'
const returnTag = (pageTag: PageTag) => pageTag.tag
export const renderHtml: RenderHtml<any, string> = ({ pageTags, renderResult }) => {
return `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
... |
import { globalBeforeEach } from '../../../__jest__/before-each';
import { database as db } from '../../../common/database';
import * as models from '../../../models';
describe('settings database', () => {
beforeEach(globalBeforeEach);
describe('database.notifyOfChange patching', () => {
it('will include cont... |
import {Component, Input, OnInit} from '@angular/core';
import {AbstractControl, FormGroup} from '@angular/forms';
import {ValidarCamposService} from '../validar-campos.service';
@Component({
selector: 'dio-input-date',
templateUrl: './input-date.component.html',
styleUrls: ['./input-date.component.scss']
})
exp... |
// *** 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";
/*... |
import { SVGProps } from "react";
declare const SvgArrowDownRight: (props: SVGProps<SVGSVGElement>) => JSX.Element;
export default SvgArrowDownRight; |
import { MarkOnKeyDownOptions } from '../../common/utils/onKeyDownMark';
import { ItalicPluginOptionsValues } from '../../marks/italic/types';
import { SearchHighlightKeyOption } from './types';
export const MARK_SEARCH_HIGHLIGHT = 'search_highlight';
export const DEFAULTS_SEARCH_HIGHLIGHT: Record<
SearchHighlightK... |
import * as ts from 'typescript';
import * as Lint from 'tslint';
import {ErrorTolerantWalker} from './ErrorTolerantWalker';
import { isObject, isNamed } from './TypeGuard';
export class BannedTermWalker extends ErrorTolerantWalker {
private failureString : string;
private bannedTerms: string[];
private al... |
import * as RSS from 'rss'
import Post, { PostPublicFields } from '../../models/Post'
import Router = require('koa-router')
const router = new Router()
router.get(
'/',
async (ctx): Promise<void> => {
const feed = new RSS({
title: 'BDBB',
description: '천안불당고등학교 대나무숲',
pubDate: new Date(),
... |
import * as Types from '../../../global/global-types.generated';
import { MenuFragmentFragment } from '../../../fragments/FragmentMenu/__generated__/menu-fields.generated';
import { gql } from '@apollo/client';
import { MenuFragmentFragmentDoc } from '../../../fragments/FragmentMenu/__generated__/menu-fields.generated... |
import chalk from 'chalk';
import { getChangedFiles as getChangedFiles, isLatestCommit, isLatestTag } from '../commit';
import { CommandLineConfig, loadConfig } from '../config';
export default class DetectChangedFilesCommand {
static run(commandLineConfig: CommandLineConfig) {
try {
const config = loadCon... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BasicGridViewComponent } from './basic-grid-view/basic-grid-view.component';
import {NotificationModule} from '../notification/notification.module';
@NgModule({
imports: [
CommonModule,
NotificationModule
],
... |
import { HTTPLogLine } from "../HTTPLogLine"
import { Base } from "./Base"
/**
*
*/
export class Path extends Base {
results = new Map<string, number>()
significance = 0
analyseLine(line: HTTPLogLine): void {
const existing = this.results.get(line.url.pathname) ?? 0
const newValue = exis... |
import classNames from "classnames";
import _ from "lodash";
import Long from "long";
import moment from "moment";
import { Link } from "react-router";
import React from "react";
import * as protos from "src/js/protos";
import { FixLong } from "src/util/fixLong";
import { LongToMoment, NanoToMilli } from "src/util/con... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
enum ResourceState {
ClientToProxyRequest = 'ClientToProxyRequest',
BlockHandler = 'BlockHandler',
DetermineResourceType = 'DetermineResourceType',
EmulationWillSendResponse = 'EmulationWillSendResponse',
CheckCacheOnRequest = 'CheckCacheOnRequest',
GetSocket = 'GetSocket',
BeforeSendRequest = 'BeforeSend... |
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { User } from './entities/user.entity';
@Injectable()
export class UsersService {
constructor(
@InjectRepository(User)
private usersRepository: Repository<User>,
) {... |
import { Component, OnInit } from '@angular/core';
import Chart from 'chart.js';
@Component({
selector: 'app-charts',
templateUrl: './charts.component.html',
styleUrls: ['./charts.component.css']
})
export class ChartsComponent implements OnInit {
data = {
datasets: [{
data: [10, 20, 30],
back... |
import { ApolloServer } from 'apollo-server-express';
import schema from '../schema/index';
import logger from '../utils/logger';
import { ApolloServerSentryPlugin } from './plugins/ApolloServerSentryPlugin';
const apollo = new ApolloServer({
context: ({ req }) => ({
req,
logger
}),
schema,
subscripti... |
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
import { GetApnsChannelRequest, GetApnsChannelResponse } from "../models/models_0";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandle... |
import { Environment, Network, RecordSource, Store, ConnectionHandler, ViewerHandler } from "relay-runtime";
const source = new RecordSource();
const store = new Store(source);
// ~~~~~~~~~~~~~~~~~~~~~
// Network Layer
// ~~~~~~~~~~~~~~~~~~~~~
// Define a function that fetches the results of an operation (query/mutat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.