text stringlengths 10 953k |
|---|
namespace ThisCouldBeBetter.GameFramework
{
export class VisualArc implements Visual<VisualArc>
{
radiusOuter: number;
radiusInner: number;
directionMin: Coords;
angleSpannedInTurns: number;
colorFill: Color;
colorBorder: Color;
_drawPos: Coords;
_polar: Polar;
constructor
(
radiusOuter: number, radiusIn... |
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... |
/// <reference path="../bundle.d.ts" />
import through2 = require('through2');
let rws: NodeJS.ReadWriteStream;
rws = through2(
{
objectMode: true,
allowHalfOpen: true
},
function(entry: any, enc: string, callback: () => void) {
(<through2.This>this).push('foo');
callback();
},
() => {
})... |
/* eslint-disable no-param-reassign */
export default function FillRange(
start?: number | string,
end?: number | string,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
..._: undefined[]
) {
[start, end] = [Number(start), Number(end)];
if (Number.isNaN(start)) throw Error("Invalid start num... |
import { SSHProperties } from '../../../src';
const defaultStructure = <Data>(
success: boolean,
data: Data,
message: string | undefined = undefined,
) => ({
success,
data,
message,
});
export const profileSuccessResponse = defaultStructure(true, {
name: 'Sherman Vasquez',
company_name: null,
email:... |
import { Group, Object3D, SkinnedMesh } from 'three'
import { proxifyQuaternion, proxifyVector3 } from '../../common/proxies/three'
import { useWorld } from '../../ecs/functions/SystemHooks'
import { XRHandsInputComponent } from '../components/XRHandsInputComponent'
export class XRHandMeshModel extends Object3D {
c... |
/* tslint:disable */
import * as React from 'react';
import styled from 'styled-components';
import { SVGIcon, IconSpacing } from '../mixins/SVGIcon';
import IconProps from '../interfaces/IconProps';
const SvgRobot = (props: IconProps) => (
<svg viewBox="0 0 640 512" {...props}>
<path d="M0 256v128c0 17.7 14.3 3... |
import * as grpc from '@grpc/grpc-js';
import services from './grpc/broker_grpc_pb';
import { ConnInfo } from './grpc/broker_pb';
/**
* Class used to interact with the broker GRPC service.
*
* @internal
*/
export default class BrokerGrpcServer {
private connInfoPromise: Promise<ConnInfo.AsObject>;
private con... |
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... |
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { PatientPage } from './patient';
@NgModule({
declarations: [
PatientPage,
],
imports: [
IonicPageModule.forChild(PatientPage),
],
})
export class PatientPageModule {} |
import getTransferIdsForTransferRoot from './getTransferIdsForTransferRoot'
import getTransferRoot from './getTransferRoot'
import makeRequest from './makeRequest'
export default async function getTransferRootForTransferId (chain: string, token: string, transferId: string): Promise<any> {
let query = `
query Tra... |
/***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... |
import { Button } from "./Button";
import "../styles/sidebar.scss";
interface SideBarProps {
genres: Array<{
id: number;
name: 'action' | 'comedy' | 'documentary' | 'drama' | 'horror' | 'family';
title: string;
}>
selectedGenreId: number;
setSelectedGenreId: (id: number) => void;
}
export functio... |
import { CommonModule } from '@angular/common';
import { Injector, NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import {
NgbCarouselModule,
NgbCollapseModule,
NgbDropdownModule,
NgbModalModule,
NgbPopoverModule,
} from '... |
import { OrderCheckup } from '@hastobegood/crypto-bot-artillery/order';
import { buildDefaultOrderCheckup } from '@hastobegood/crypto-bot-artillery/test/builders';
import { CheckOrderService } from '../../../../../src/code/domain/order/check-order-service';
import { UpdateOrderService } from '../../../../../src/code/d... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CoreModule } from '../../core/core.module';
import { UserController } from './user.controller';
import { UserRepository } from './user.repository';
import { UserService } from './user.service';
@Module({
imports: [
... |
export * from './get-all-posts.query';
export * from './get-all-posts.response';
export * from './get-post-by-pretty-url.query';
export * from './get-post-by-pretty-url.response'; |
import mongoose from 'mongoose'
const schema = new mongoose.Schema({
email: String,
username: String
})
export default mongoose.model("users", schema) |
import { FormEvent, useState } from 'react';
import { useHistory, useParams } from 'react-router-dom';
import logoImg from '../assets/images/logo.svg';
import { Button } from '../components/Button';
import { RoomCode } from '../components/Roomcode';
import { useAuth } from '../hooks/useAuth';
import { database } from '... |
import { expect, assert } from "chai";
import {
PagingClient,
PagingGetMultiplePagesResponse,
PagingGetMultiplePagesWithOffsetResponse,
PagingGetMultiplePagesFragmentNextLinkResponse,
Product,
PagingGetMultiplePagesLROResponse,
PagingGetMultiplePagesLRONextResponse
} from "./generated/paging/src";
import ... |
/** @jsx jsx */
import { jsx } from "theme-ui"
import { Button, Label, Checkbox, Select, Flex, Box } from "@theme-ui/components"
import React from "react"
import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live"
import theme from "prism-react-renderer/themes/nightOwl"
import Algorithm from "../alg... |
import { RbValue } from "../dist/index.umd.js";
import { initRubyVM } from "./init";
describe("RubyVM", () => {
test("empty expression", async () => {
const vm = await initRubyVM();
const result = vm.eval("");
expect((result as any).inner._wasm_val).toBe(/* Qnil */ 4);
});
test("nil toString", async ... |
import { _RegistrationConfig } from "./_RegistrationConfig";
import { Structure as _Structure_ } from "@aws-sdk/types";
export const UpdateCACertificateInput: _Structure_ = {
type: "structure",
required: ["certificateId"],
members: {
certificateId: {
shape: {
type: "string",
min: 64
... |
import JWT = require("jsonwebtoken");
import fs = require("fs");
import Path = require("path");
interface IResult {
exp: number;
data: object | string;
}
// 解密
function verifyToken(token) {
const cert = fs.readFileSync(Path.join(__dirname, "../../src/config/rsa_public_key.pem"));
// tslint:disable-nex... |
import {Component, Inject} from '@angular/core';
import {TuiDialog} from '@taiga-ui/cdk';
import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';
import {changeDetection} from '../../../../../../change-detection-strategy';
import {PromptOptions} from './prompt-options';
@Component({
selector: 'prompt',
... |
import { newSpecPage } from '@stencil/core/testing';
import { IconVideo } from '../video';
import { createElement, Video } from 'lucide';
describe('icon-video', () => {
it('renders', async () => {
const page = await newSpecPage({
components: [IconVideo],
html: `<icon-video></icon-video>`,
});
... |
import { MenuInScheduleEntity } from './entities';
export interface MenuInScheduleTable {
allAsync(): Promise<MenuInScheduleEntity[]>;
getAsync(schedule_id: number, menu_id: number): Promise<MenuInScheduleEntity | undefined>;
insertAsync(entity: MenuInScheduleEntity): Promise<boolean>;
updateAsync(entity: Men... |
import { Component, Input } from '@angular/core';
import { Person } from '../../schema';
@Component({
selector: 'app-person',
templateUrl: './person.component.html',
styleUrls: ['./person.component.scss']
})
export class PersonComponent {
@Input()
public person: Person;
} |
import { Controller, Context } from 'preon';
export default class System extends Controller {
async version(ctx: Context) {
ctx.json = require('../../package.json');
}
} |
import { Command } from '../types';
import React from 'react';
import scryIcon from '../../../icons/scry.svg';
const Icon = () => <img src={scryIcon} />;
export const Scry: Command = {
command: 'scry',
title: 'Scry',
icon: <Icon />,
description: 'Read data from your Urbit ship.',
arguments: ['app', 'path'],... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilitie... |
/*
* Autogenerated by schematics
*/
import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
import { IconBase } from '../icon-base';
@Component({
selector: 'sbb-icon-sa-re',
// tslint:disable:max-line-length
template: `
<svg
[attr... |
import { UserFactory } from "../../user/user.factory";
import { User } from "../../user/user";
import { Userservice } from "../../user/user.service";
import { UserImpl } from "./user.impl";
import { UserServiceImpl } from "./user.service.impl";
import { UserSecurity } from "~/app/user/user.security";
import { UserSecur... |
import React from 'react';
import {useDispatch, useSelector} from 'react-redux';
import {useHistory} from 'react-router-dom';
import {ConfacState} from '../../reducers/app-state';
import {saveProject, updateAppFilters} from '../../actions';
import {ListPage} from '../controls/table/ListPage';
import {projectFeature, Pr... |
import { InternalServerErrorException } from '@nestjs/common';
import { User } from '../auth/user.entity';
import { EntityRepository, Repository } from 'typeorm';
import { createTaskDto } from './dto/create-task.dto';
import { tasksFilterDto } from './dto/tasks-filters.dto';
import { TaskStatus } from './task-status.en... |
import * as React from 'react';
import { DetaljertOppfolging } from '../../../../models/oppfolging';
import OppfolgingVisning from './OppfolgingVisningKomponent';
import RestResourceConsumer from '../../../../rest/consumer/RestResourceConsumer';
import { BigCenteredLazySpinner } from '../../../../components/BigCentered... |
/**
* @copyright 2009-2019 Vanilla Forums Inc.
* @license GPL-2.0-only
*/
import React, { useContext, useMemo } from "react";
import { useUniqueID } from "@library/utility/idUtils";
import { DashboardFormLabel, DashboardLabelType } from "@dashboard/forms/DashboardFormLabel";
import { useThrowError } from "@vanilla/... |
import { createSelector } from 'reselect'
import type { FoxAwareState } from './contracts/state'
import { FoxLoadingState } from './contracts/state'
import { FOX_MODULE_NAME } from './index'
export const foxSelector = (state: FoxAwareState): string | undefined => {
return state[FOX_MODULE_NAME].fox
}
export const ... |
import { RdfQName } from "../services/dataService";
export function isBlankNodeUri(expr: RdfQName): boolean {
return expr === "_:";
} |
export type EventCategory = {
_id: string;
name: string;
}; |
/**
*
*
* OpenAPI spec version: 20181201
*
*
* NOTE: This class is auto generated by OracleSDKGenerator.
* Do not edit the class manually.
*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 ... |
import { AqlLiteral, AqlQuery, isAqlLiteral, isAqlQuery } from "./aql-query";
import {
ArangoCollection,
constructCollection,
DocumentCollection,
EdgeCollection,
isArangoCollection
} from "./collection";
import { Config, Connection } from "./connection";
import { ArrayCursor } from "./cursor";
import { isAran... |
/*
* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import { RequestBuilder, GetAllRequestBuilder, GetByKeyRequestBuilder, CreateRequestBuilder, UpdateRequestBuilder, DeleteRequestBuilder } from '@sap-cloud-sdk... |
/// <reference path="../../dist/preview release/babylon.d.ts"/>
module BABYLON {
/**
* Class reading and parsing the MTL file bundled with the obj file.
*/
export class MTLFileLoader {
// All material loaded from the mtl will be set here
public materials: BABYLON.StandardMaterial[] ... |
import React, { FC, ReactNode, useCallback, useState } from 'react'
import { Text } from './text'
import { TextInput } from './text-input'
type EditableTextProps = {
children: ReactNode
editable: boolean
saving: boolean
value: string
onDelete: () => void
onSave: (value: string) => void
}
export const Edit... |
import * as React from "react";
import * as styles from "./infoGrid.module.scss";
import { FaClock, FaTree, FaPython } from "react-icons/fa";
import { GiPillow } from "react-icons/gi";
import TechStack from "../home/TechStack";
import SlideBar from "../slidebar";
interface Props {
vidSrc: string;
overview: s... |
import type { Application } from "../application";
export declare function loadPlugins(app: Application, plugins: readonly string[]): void;
export declare function discoverPlugins(app: Application): string[]; |
import { createVisualEditorConfig } from './visual-editor/visual-editor.utils'
import baseWidgets from '@/packages/base-widgets'
import containerComponent from '@/packages/container-component'
export const visualConfig = createVisualEditorConfig()
// 注册基础控件
Object.keys(baseWidgets).forEach((name: string) =>
visualCo... |
import React from 'react';
import { render } from 'enzyme';
import { requiredProps } from '../../../test';
import { EuiRadio } from './radio';
describe('EuiRadio', () => {
test('is rendered', () => {
const component = render(
<EuiRadio id="id" onChange={() => {}} {...requiredProps} />
);
expect(c... |
import {
app,
Menu,
Tray,
dialog,
clipboard,
systemPreferences,
Notification
} from 'electron'
import uploader from 'apis/app/uploader'
import getPicBeds from '~/main/utils/getPicBeds'
import db, { GalleryDB } from '~/main/apis/core/datastore'
import windowManager from 'apis/app/window/windowManager'
impo... |
import { ValidatorFn } from "@angular/forms";
import { LogicalOperatorConfig } from "../models/config/logical-operator-config";
export declare function orValidator(configModel: LogicalOperatorConfig): ValidatorFn; |
// experimental
let _Profiling = typeof UnityEngine != "undefined" && UnityEngine["Profiling"];
let _CustomSampler = _Profiling && _Profiling["CustomSampler"];
let _Create = _CustomSampler && _CustomSampler["Create"];
let _samplers: { [key: string]: any } = {};
// let _enabled = !!_Create;
let _enabled = false;
expor... |
/*
* Lumeer: Modern Data Definition and Processing Platform
*
* Copyright (C) since 2017 Lumeer.io, s.r.o. and/or its affiliates.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either ... |
import { LoggerFactory } from "../log";
import { OutgoingRequestMessage } from "./outgoing-request-message";
/**
* Digest Authentication.
* @internal
*/
export declare class DigestAuthentication {
stale: boolean | undefined;
private logger;
private username;
private password;
private cnonce;
... |
import React from "react";
export const checkboxOutline = (props: React.SVGProps<SVGSVGElement>) => {
return (
<svg width={24} height={24} viewBox="0 0 24 24" {...props}>
<path fill="none" d="M0 0h24v24H0V0z" />
<path d="M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1z... |
import { Injectable } from '@angular/core';
import { NgxUiLoaderService } from 'ngx-ui-loader';
import * as blockstack from 'node_modules/blockstack/dist/blockstack.js';
import { ApiService } from './api.service';
import { ShareModel } from './Models/share.model';
import { ConfirmationService, ResolveEmit } from '@jasp... |
import { HttpException } from '@nestjs/common';
export class LockedException extends HttpException {
constructor(message: string) {
super(message, 423);
}
} |
import Utils, { zipEmptyData } from '@/utils';
import { InputNumberProps } from 'antd/lib/input-number';
import 'antd/lib/input-number/style/css';
import classnames from 'classnames';
import { InputNumber } from 'element-ui';
import * as React from 'react';
import styled from 'styled-components';
import { VueInReact } ... |
import MongoBinaryDownloadUrl from '../MongoBinaryDownloadUrl';
describe('MongoBinaryDownloadUrl', () => {
describe('getDownloadUrl()', () => {
describe('for mac', () => {
it('4.2', async () => {
const du = new MongoBinaryDownloadUrl({
platform: 'darwin',
arch: 'x64',
... |
import type { Prediction, ObjectId, Instance } from '../../core/types';
import { map } from '@most/core';
import { Service, Paginated } from '@feathersjs/feathers';
import { Component } from '../../core/component';
import { Stream } from '../../core/stream';
import { DataStore } from '../../core/data-store/data-store';... |
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
getHello(): string {
return "Hello, what are you doing here?"
}
} |
const config: Object = {
ignoreTidyOptions: {
title: 'Ignore Tidy Options',
description: 'This option specifies whether to use the Tidy Options',
type: 'boolean',
default: true
},
'tidy': {
title: 'Experimental: Tidy Options',
type: 'object',
properties: {
'... |
import { ReactNode } from "react";
import { useQuery, useMutation } from "@apollo/client";
import { ApolloError } from "@apollo/client/errors";
import { ResultOf } from "@graphql-typed-document-node/core";
import { Button, Modal, message, Card, Empty, Space, Spin } from "antd";
import { DeleteOutlined, EditOutlined, Pl... |
export interface IStreamFirstPeriodStartDateBusinessCenterGrp {
StreamFirstPeriodStartDateBusinessCenter?: string;
} |
import { gt } from "../../main";
it('great then',()=>{
expect(gt(1,2)).toBeFalsy();
expect(gt(2,2)).toBeFalsy();
expect(gt(3,1)).toBeTruthy();
expect(gt(0,-1)).toBeTruthy();
expect(gt(0,-0.999999)).toBeTruthy()
}) |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { expect } from "chai";
import { createCategorySummary, RuleCategory } from "./ruleCa... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { Hero, HeroService } from './shared';
import { HeroDetailComponent } from './hero-detail';
@Component({
selector: 'my-heroes',
templateUrl: './heroes.component.html',
styleUrls: ['./heroes.component.css'... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-credit-cards',
templateUrl: './credit-cards.component.html',
styleUrls: ['./credit-cards.component.scss']
})
export class CreditCardsComponent implements OnInit {
constructor() { }
ngOnInit() {
}
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* eslint-disable */
import { ObjectIdentifier as _OID, OBJECT_IDENTIFIER } from "asn1-ts";
import { id_ce } from "../UsefulDefinitions/id-ce.va";
export { id_ce } from "../UsefulDefinitions/id-ce.va";
/* START_OF_SYMBOL_DEFINITION id_ce_a_subjectAltPublicKeyInfo */
/**
* @summary id_ce_a_subjectAltPublicKeyInfo
* @... |
import { TableDataColumnMutable, TableDataStyleMutable, TableDataMutable_base } from "../mutable"
import {
decorateStyle,
horizontalBorder,
TableDataColumnDecorator,
TableDataColumnRelatedDecorator,
TableDataHeaderDecorator,
TableDataHorizontalBorderProvider,
TableDataSummaryDecorator,
} fro... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ListaEventosComponent } from './lista-eventos/lista-eventos.component';
import { AdicionarEventosComponent } from './adicionar-eventos/adicionar-eventos.component';
import { EditarEventoComponent } from './editar-... |
import { Model } from 'objection';
import { userSchema } from '../../client/schemas/user';
import BaseModel from './base.model';
export default class UserModel extends BaseModel {
static get tableName() {
return 'user';
}
// static get jsonSchema() {
// return userSchema;
// }
static get relationMa... |
import { Controller, Post } from '@nestjs/common';
import { OrderDto } from './dto/order.dto';
@Controller('orders')
export class OrderController {
@Post()
doOrder(dto: OrderDto): string {
return `order successful, clientId: ${dto.user.id}`
}
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatChipsModule, MatGridListModule, MatListModule, MatCardModule, MatButtonModule, MatInputModule, MatTableModule, MatToolbarModule} from '@angular/material';
@NgModule({
imports: [MatChipsModule, MatGridListModule, M... |
export default {
fileName: `/lib.esnext.intl.d.ts`,
// File text is copyright Microsoft Corporation and is distributed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
text: `/// <reference no-default-lib="true"/>\ndeclare namespace Intl{type NumberFormatPartTypes="compact"... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SetProcesoadquisicionComponent } from './set-procesoadquisicion.component';
describe('SetProcesoadquisicionComponent', () => {
let component: SetProcesoadquisicionComponent;
let fixture: ComponentFixture<SetProcesoadquisicionCompon... |
import * as React from "react";
import { ActionImpl } from "./action/ActionImpl";
interface RenderParams<T = ActionImpl | string> {
item: T;
active: boolean;
}
interface KBarResultsProps {
items: any[];
onRender: (params: RenderParams) => React.ReactElement;
maxHeight?: number;
}
export declare cons... |
import Ajv from 'ajv';
namespace JSONValidator {
export function validate<T>(object: any, schema: any, ...additionalSchemas: any[]): T {
const ajv = new Ajv({
schemas: [schema, ...additionalSchemas]
});
const validateFunction = ajv.compile(schema);
const valid = validat... |
import React, { useContext, Suspense, lazy } from 'react';
/* Styles */
import { GlobalStyle } from './styles/global';
/* Layout */
import { Layout } from './react-components/Layout';
/* Pages */
const Details = lazy(() => import('./pages/Details'))
const Favorites = lazy(() => import('./pages/Favorites'))
const Hom... |
import {Expression, IStatementRunnable} from "../combi";
import {Field} from ".";
export class SourceField extends Expression {
public getRunnable(): IStatementRunnable {
return new Field();
}
} |
export class Country{
public id: number;
public name: string;
constructor(
id: number,
name: string) {
this.id = id;
this.name = name;
}
} |
// Disable order checking for tests, so that the second
// request has a chance to match against the first request
import './jest-polly'
import http from 'http'
import fetch from 'node-fetch'
import { jestPollyConfigService } from './config'
import { APPLICATION_JSON_MIME } from './constants'
const SECRET_VALUE = 'f... |
import babylon from '../../babel-parser'
import resolveRequired from '../resolveRequired'
describe('resolveRequired', () => {
it('should resolve imported variables', () => {
const ast = babylon().parse('import {test, bonjour} from "test/path";')
const varNames = resolveRequired(ast)
expect(varNames).toMatchObje... |
export interface Location {
lat: number;
lon: number;
} |
import type * as actions from '../duck/actions/mod.js'
type ActionBuilder = typeof actions[keyof typeof actions]
/**
* @deprecated use `getType()` from typesafe-actions instead
*/
export const peekType = <T extends ActionBuilder> (action: T) => (action as any)({}).type as ReturnType<T>['type'] |
import { mode, transparentize } from "@chakra-ui/theme-tools"
type Dict = Record<string, any>
const baseStyle = {
lineHeight: "1.2",
borderRadius: "md",
fontWeight: "semibold",
_focus: {
boxShadow: "outline",
},
_disabled: {
opacity: 0.4,
cursor: "not-allowed",
boxShadow: "none",
},
}
f... |
import { publish } from '@home/mqtt'
import { FetchMock } from 'jest-fetch-mock'
import waitForExpect from 'wait-for-expect'
import cron from 'node-cron'
jest.mock('config', () => ({
__esModule: true,
default: {
get: jest.fn((key: string) => {
switch (key) {
case 'openWeatherAPIKey':
re... |
/**
* Chat parser
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Parses formate.
*
* @license MIT license
*/
'use strict';
// Regex copied from the client
const domainRegex = '[a-z0-9-]+(?:[.][a-z0-9-]+)*';
const parenthesisRegex = '[(](?:[^\\s()<>&]|&)*[)]';
export const linkRegex = new RegExp(
'(?... |
import {
Component,
NgZone,
ViewChild
} from '@angular/core';
import {
IonicPage,
NavController,
NavParams,
Events,
PopoverController,
Platform,
Navbar,
AlertController
} from 'ionic-angular';
import * as _ from 'lodash';
import { SocialSharing } from '@ionic-native/social-sharing';
import {
Co... |
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as cell from "@fluidframework/cell";
import { mixinRequestHandler } from "@fluidframework/datastore";
import {
ICodeLoader,
IContainerContext,
IRuntime,
IRuntimeFactory,
IFluidModule,
} ... |
import * as assert from 'assert';
import { build } from '../../../api';
import { AppRunner } from '../AppRunner';
describe('scroll', function() {
this.timeout(10000);
let r: AppRunner;
// hooks
before('build app', () => build({ cwd: __dirname }));
before('start runner', async () => {
r = await new AppRunner()... |
import { StepMapping } from '../../../field-mapping/FieldMapping';
import { SimpleValidator } from '../../../constants/validation.constants';
export enum MetadataField {
CLUSTER_LABELS = 'clusterLabels',
CLUSTER_DESCRIPTION = 'clusterDescription',
CLUSTER_LOCATION = 'clusterLocation'
}
export const Metada... |
// Original file: protobuf/kubernetes/cri-api/pkg/apis/runtime/v1alpha2/api.proto
import type { NamespaceOption as _runtime_v1alpha2_NamespaceOption, NamespaceOption__Output as _runtime_v1alpha2_NamespaceOption__Output } from './NamespaceOption';
import type { SELinuxOption as _runtime_v1alpha2_SELinuxOption, SELinuxO... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import chalk = require('chalk');
import * as fs from 'graceful-fs';
import sourcemapSupport = require('sou... |
import { expectTypeOf } from "expect-type";
import { ArrayFirst } from "./ArrayFirst";
describe("ArrayFirst<T>", () => {
it("should be the first type of the given tuple type", () => {
expectTypeOf<ArrayFirst<[number, string]>>().toEqualTypeOf<number>();
});
it("should be a type of the given array type", () ... |
import { HttpClientTestingModule, HttpTestingController, RequestMatch } from '@angular/common/http/testing';
import { fakeAsync, TestBed, tick } from '@angular/core/testing';
import { ProjectData } from 'realtime-server/lib/esm/common/models/project-data';
import { obj, PathItem } from 'realtime-server/lib/esm/common/u... |
import { outputScreen, thirdStep } from '../utils/domElements';
import { stepFrom, changeText } from '../utils/general';
outputScreen.buttons.fix.addEventListener('click', () => {
// Reorder input[name='nicknameInput'] values to match shuffled output order.
thirdStep.nicknameInputs.forEach((input, index) => {
... |
/**
* @copyright 2016-present Kriasoft (https://git.io/Jt7GM)
*/
import fs from "fs";
import { compile } from "handlebars";
const file = `${__filename.substring(0, __filename.lastIndexOf("."))}.hbs`;
export default compile(fs.readFileSync(file, "utf8")); |
import {execSync} from 'child_process';
import {writeFileSync} from 'fs';
import {buildClientSchema, getIntrospectionQuery, printSchema} from 'graphql';
const pyVer = execSync('python3 --version').toString();
const verMatch = pyVer.match(/Python ([\d.]*)/);
if (!(verMatch != null && verMatch.length >= 2 && parseFloat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.