text stringlengths 10 953k |
|---|
/**
* Copyright 2020 NEM (https://nem.io)
*
* 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 ... |
import * as React from "react";
import { CarbonIconProps } from "../../";
declare const Aperture24: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default Aperture24; |
class Person2 {
constructor(private _name: string) {}
get name() {
return this._name + ' li'
}
set name(name: string) {
this._name = name
}
}
// 单例
class Demo {
private static instance: Demo = new Demo()
private constructor() {}
static getInstantce() {
return... |
import { AnyDB } from "./databases/AnyDB"
import { TypeSafeDB } from "./databases/TypeSafeDB"
import { TypeUnsafeDB } from "./databases/TypeUnsafeDB"
import { AbstractConnection } from "./connections/AbstractConnection"
import { SqlBuilder } from "./sqlBuilders/SqlBuilder"
export type TyeSafeConnection<DB extends AnyD... |
import { NumericType, uint32, Uint32, uint64, Uint64 } from '@orda-io/orda-integer';
import { createNullUID, CUID, strcmp } from '@orda/types/uid';
export class Timestamp {
readonly era: Uint32;
readonly lamport: Uint64;
readonly cuid: CUID;
readonly delimiter: Uint32;
constructor(era: NumericType, lamport:... |
import { Story, Meta } from "@storybook/react/types-6-0";
import { action } from "@storybook/addon-actions";
import { MOCK_ENTRIES_WITH_AVATAR } from "./mock-data";
import {
BlogWithAvatarItems,
BlogWithAvatarItemsProps,
} from "../BlogWithAvatarItems";
export default {
title: "Blog/BlogWithAvatarItems",
compo... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2017 Realm 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/li... |
import { ProfilerResult } from '../Profiler.interfaces';
import { getRenderDurations } from './getRenderDurations';
/**
* Get maximum render duration
*/
export const getMaxRenderDuration = (profilerResults: Array<ProfilerResult>): number => {
return Math.max(...getRenderDurations(profilerResults));
}; |
import React, { FormEvent, useState, useEffect } from 'react'
import {
Form, Icon, Input, Button, message,
} from 'antd';
import { FormProps } from 'antd/lib/form/Form';
import { Redirect } from 'react-router-dom';
import { Results } from '../type/interface';
const LoginPage: React.FC = (props: FormProps, context) ... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="pl">
<context>
<name>Account</name>
<message>
<location filename="../pages/Account.qml" line="55"/>
<source>Set the label of the selected account:</source>
<translation>Ustaw nazwę wybranego konta:</translat... |
export { default } from './CraftVideoBlock'
export type { CraftVideoBlockProps } from './CraftVideoBlock' |
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { NativeScriptDateTimePickerModule } from "nativescript-datetimepicker/angular";
import { NativeScriptFormsModule } from "nativescript-angular/forms";
import { HomeRoutingModule } ... |
import { Box, Stack } from '@chakra-ui/react';
import Loader from 'components/Loader';
import AddNewFeedForm from 'components/Pages/Feeds/AddNewFeedForm';
import Feed from 'components/Pages/Feeds/Feed';
import { useFetchFeedsSubscription } from 'generated-graphql';
import React from 'react';
import IFeed from 'types/fe... |
import "@polymer/paper-item/paper-item";
import "@polymer/paper-listbox/paper-listbox";
import "../../components/ha-paper-dropdown-menu";
import { TemplateResult, html } from "lit-html";
import {
property,
internalProperty,
LitElement,
customElement,
PropertyValues,
CSSResult,
css,
} from "lit-element";
i... |
export interface TodoCategory {
id: string,
name: string,
colorCode: string;
} |
import * as React from 'react';
import CloseOutlined from '@ant-design/icons/CloseOutlined';
import CheckCircleOutlined from '@ant-design/icons/CheckCircleOutlined';
import ExclamationCircleOutlined from '@ant-design/icons/ExclamationCircleOutlined';
import InfoCircleOutlined from '@ant-design/icons/InfoCircleOutlined'... |
import * as nemDefault from 'nem-sdk';
import { Account, NetworkType } from 'nem2-sdk';
import { Initiator, KECCAK256, KECCAK512, MD5, PublicApostille, SHA1, SHA256 } from '../../../index';
const nem = nemDefault.default;
// prepare hashing object
const chooseHash = (hashing) => {
if (hashing === 'MD5') {
retur... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/licen... |
/*
* 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 { DI } from '@aurelia/kernel';
import { IPlatform } from './platform.js';
/**
* Utility that creates a `HTMLTemplateElement` out of string markup or an existing DOM node.
*
* It is idempotent in the sense that passing in an existing template element will simply return that template element,
* so it is alway... |
import { fireEvent } from '@testing-library/react';
import type { Column } from '../../src';
import { setup, getHeaderCells, getGrid } from '../utils';
const pointerId = 1;
// TODO: https://github.com/jsdom/jsdom/issues/2527
class PointerEvent extends Event {
pointerId: number | undefined;
clientX: number | undef... |
import { Message, TextChannel } from "discord.js";
import Client from "../structures/Client";
import channels from "../data/calm/channels.json";
module.exports = {
name: "application",
aliases: ["app", "joinguild"],
description: "Sends the link to join CalmGuild!",
category: "Information",
usage: "applicatio... |
/* eslint-disable jsx-a11y/label-has-associated-control */
/* eslint-disable react/require-default-props */
import { useHistory } from 'react-router-dom';
import '../css/CustomNavigationbar.css';
import back_arrow from '../../Resource/Image/back_arrow.png';
const CustomNavigationbar = ({
before,
isBackBtn,
navi... |
import {mount} from 'enzyme';
import * as React from 'react';
import {DataUserCodeOfConduct} from 'app/pages/profile/data-user-code-of-conduct';
import {profileApi, registerApiClient} from 'app/services/swagger-fetch-clients';
import {profileStore} from 'app/utils/stores';
import {Profile, ProfileApi} from 'generated/... |
/**
* Copyright (c) 2020, cic Inc. (http://www.cic.org) All Rights Reserved.
*
* cic Inc. licenses this file to you 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/... |
import ava from 'ava';
import { codeblock } from '../src';
ava('standard', (test): void => {
test.is(codeblock `test`, '```\ntest```');
});
ava('values', (test): void => {
test.is(codeblock `test ${1 + 1}!`, '```\ntest 2!```');
});
ava('substring', (test): void => {
test.is(`test ${codeblock `3`}?`, 'test ```\n3`... |
import { FixDefinitions } from '../../definition'
import { FixParser } from '../../fix-parser'
import { FixDefinitionSource, FixVersion } from '../../fix-versions'
import { FieldsParser } from './fields-parser'
import { IncludeGraph } from './include-graph'
import { ComponentsParser } from './components-parser'
import ... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LayoutRoutingModule } from './layout-routing.module';
import { MainComponent } from './main/main.component';
@NgModule({
imports: [
CommonModule,
LayoutRoutingModule
],
declarations: [MainComponent]
})
exp... |
import { Options } from 'ajv';
import { createAjv as createAjvCore } from '@jsonforms/core';
import Ajv from 'ajv';
export const createAjv = (options?: Options): Ajv => {
const ajv = createAjvCore(options);
ajv.addFormat('password', (_) => true);
return ajv;
}; |
/**
* A TypeScript parser for the AssemblyScript subset.
* @module parser
*//***/
import {
CommonFlags,
LIBRARY_PREFIX,
PATH_DELIMITER
} from "./common";
import {
Program
} from "./program";
import {
Tokenizer,
Token,
Range,
CommentHandler,
IdentifierHandling,
isIllegalVariableIdentifier
} fro... |
import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Landing from './pages/Landing';
import OrphanagesMap from './pages/OrphanagesMap';
import Orphanage from './pages/Orphanage';
import CreateOrphanage from './pages/CreateOrphanage';
function Routes() {
return (
<B... |
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* 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 restrict... |
// #docregion
import { Directive, Input, OnChanges, SimpleChanges } from '@angular/core';
import { AbstractControl, NG_VALIDATORS, Validator, ValidatorFn, Validators } from '@angular/forms';
// #docregion custom-validator
/** A hero's name can't match the given regular expression */
export function forbiddenNameValida... |
import { ResourceMap } from 'library/reducers/common'
import { ApiResource, ApiResourceId, ByIdParams, ResourceStatus, isAxiosError } from 'library/service/common'
import { Dispatch } from 'redux'
export type TypeChecker<T> = (value: ApiResource<T>) => value is T
export enum Status {
LOADED,
LOADING,
ERROR,
NO... |
export * from "./CodelistApi";
export * from "./UserApi";
export * from "./InfoTypeApi";
export * from "./PolicyApi";
export * from "./ProcessApi";
export * from "./DisclosureApi";
export * from "./DocumentApi";
export * from "./TermApi";
export * from "./TeamApi";
export * from "./DashboardApi"; |
import { Injectable } from '@angular/core';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { ConfirmationDialogComponent } from './confirmation-dialog.component';
@Injectable()
export class ConfirmationDialogService {
constructor(private modalService: NgbModal) { }
public confirm(
title: strin... |
import chalk from 'chalk';
// detect new lines with this regex.
const NEW_LINE_REGEX = /[\r?\n]/gm;
export interface CliCommand {
flags?: string[];
text: string;
divider?: boolean;
}
/**
* creates a line with the provided length
* @param length length of line in chars
* @param char char of line default "-"
... |
import { Message, TextChannel } from 'eris';
import { Error, Success } from '../../utils/Embeds';
import BaseCommand from '../../utils/structures/BaseCommand';
export default class DeletedomainCommand extends BaseCommand {
constructor() {
super({
name: 'delinv',
description: 'Delete... |
import React from 'react';
import { Button, Tooltip, Tag } from 'antd';
import { DownOutlined, QuestionCircleOutlined, EllipsisOutlined } from '@ant-design/icons';
import ProTable, { ProColumns } from '@ant-design/pro-table';
export interface Status {
color: string;
text: string;
}
const statusMap = {
0: {
... |
import useStore from './index';
export const sleep = (timeout: number) => {
const { setLoading } = useStore.getState();
return new Promise((resolve) => {
setLoading(true);
setTimeout(() => {
setLoading(false);
resolve(true);
}, timeout);
});
}; |
/**
* DevExtreme (ui/menu.d.ts)
* Version: 20.1.3
* Build date: Fri Apr 24 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
dxElement
} from '../core/element';
import DataSource, {
DataSourceOp... |
QUnit.test('rounded_box simple', async (assert) => {
const geo1 = window.geo1;
geo1.flags.display.set(false); // cancels geo node displayNodeController
const rounded_box1 = geo1.createNode('roundedBox');
let container = await rounded_box1.compute();
let core_group = container.coreContent();
let geometry = core_... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { NamedFC } from 'common/react/named-fc';
import * as React from 'react';
export const StatusCautionIcon = NamedFC('StatusCautionIcon', () => (
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h... |
// Copyright IBM Corp. 2017,2018. All Rights Reserved.
// Node module: openapi-to-graphql
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict'
/* globals beforeAll, test, expect */
import * as openapiToGraphql from '../lib/index'
import { Optio... |
import { sql } from 'slonik';
import { SQL_EMPTY } from '../../utility/postgres-tags';
export function countResources(resource_type: string, site_id: number, parent_id?: number, showFlat = false) {
if (parent_id) {
return sql<{ total: number }>`
select count(*) as total
from iiif_derived_resource cidr
... |
import Component, { ComponentEvent } from "@egjs/component";
import { vec3, glMatrix, quat } from "gl-matrix";
import FusionPoseSensor from "./input/FusionPoseSensor";
const Y_AXIS_VECTOR = vec3.fromValues(0, 1, 0);
export default class DeviceQuaternion extends Component<{
change: {
isTrusted: boolean;
};
}>... |
import * as React from 'react';
import PlayerField from './components/PlayerField/PlayerField';
import { minesweaperActions } from './duck';
import { connect } from 'react-redux';
import { IApplicationState } from '../../app/store';
import { Button } from 'antd';
interface IMinesweaperData {
playerField?: (number ... |
import { DeleteUserService } from '@services/DeleteUserService'
import { Request, Response } from 'express'
export class DeleteUserController {
async execute (req: Request, res: Response): Promise<Response> {
const userId = req.userId
const deleteUserService = new DeleteUserService()
try {
await ... |
import { Request, Response } from 'express-serve-static-core';
declare const _default: {
method: string;
func: (req: Request, res: Response) => void;
};
export default _default; |
import Generator from '../generator';
export default class GitGenerator extends Generator {
public writing(): void {
this.renderTemplate('gitattributes', '.gitattributes');
const options = {
package: this.hasFiles('package.json'),
};
if (!this.hasFiles('.gitignore')) {
this.renderTempla... |
import { inject, injectable, } from 'inversify';
import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
import * as estraverse from '@javascript-obfuscator/estraverse';
import * as ESTree from 'estree';
import { TDeadNodeInjectionCustomNodeFactory } from '../../types/container/custom-nodes/TDeadNode... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About CivX</source>
<translation>ブラックコインについて</translation>
</message>
<message>
<location lin... |
import Vue from 'vue'
//import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import i18n from './i18n'
import router from './router'
import store from './store'
import VueToast from 'vue-toast-notification'
import 'vue-toast-notification/dist/theme-default.css'
import '@/styles/index.scss' // glob... |
import { Paginator } from "@aws-sdk/types";
import {
DescribeOrganizationConformancePackStatusesCommand,
DescribeOrganizationConformancePackStatusesCommandInput,
DescribeOrganizationConformancePackStatusesCommandOutput,
} from "../commands/DescribeOrganizationConformancePackStatusesCommand";
import { ConfigServi... |
import throttle from 'lodash.throttle';
interface ProgressTrackerConfig {
throttleWait: number;
[key: string]: any;
}
interface CurrentProgress {
// total bytes to be transferred
total?: number;
// total bytes finished transfering
finished?: number;
// Overall percent; 0-100
percent?: number;
// Ove... |
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
//
import { glTFVariantMeld, runWithVariantMeld } from "./wasmpkg";
import { readFileSync, writeFileSync } from "fs";
import { basename } from "path";
import { VariationalAsset } from "../node_modules/glTFVariantMeld/gltf_variant_meld";
const GLB... |
import { WizardStepBody } from "../../../platform/components/wizard";
import * as React from "jsx-dom"; // Fake React for JSX->DOM support
import { htmlRef } from "../../../platform/util/html_ref";
import { SecretShareEnvelope } from "../../types/secret_share_envelope";
declare var localize: (enText: string) => string... |
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
const initialState = ''
const slice = createSlice({
name: 'searchWord',
initialState,
reducers: {
setSearchWord: (state: string, { payload }: PayloadAction<string>) => (
payload
)
}
})
export const { setSearchWord } = slice.actions
export cons... |
import { Entity, Column, ManyToOne } from 'typeorm';
import { User } from '../../user/user.entity';
import { Piece } from '../../piece/piece.entity';
import { BaseEntity } from '../base-entity';
import { ProgressStatus } from '../enums';
@Entity()
export class UserToPiece extends BaseEntity {
@Column()
userId!: st... |
import * as io from 'socket.io-client';
import { wait } from '../../src/utils/wait';
import { expect } from 'chai';
import { AsyncRPC } from '../../src/rpc';
import config from '../../src/config';
import { createWallet } from '../benchmark/wallet-benchmark';
import { Event } from '../../src/services/event';
import { Ap... |
import React from "react";
import ReactDOM from "react-dom";
import * as Sentry from "@sentry/browser";
import * as SentryIntegrations from "@sentry/integrations";
import { EVENT } from "./constants";
import { TopErrorBoundary } from "./components/TopErrorBoundary";
import { InitializeApp } from "./components/Initiali... |
import React, { useMemo, useState } from 'react';
import {
theme,
ThemeProvider,
CSSReset,
ColorModeProvider,
} from '@chakra-ui/core';
import { Switch, Route, Redirect } from 'react-router-dom';
import { Register } from './components/pages/Register';
import { Posts } from './components/pages/Posts';
import { N... |
import test from "ava";
import { analyzeComponentsInCode } from "../../helpers/analyze-text";
import { getAttributeNames, getComponentProp } from "../../helpers/util";
test("Handles simple mixin", t => {
const { result } = analyzeComponentsInCode(`
const MyMixin = (Base) => {
return class Mixin extends Base {
... |
// THIS FILE IS AUTO GENERATED
import { IconTree, IconType } from '../lib'
export declare const CgMenuCheese: IconType; |
import { NgModule, Type } from '@angular/core';
import { BasicSkeletonModule } from './basic-skeleton/basic-skeleton.module';
import { BasicSkeletonComponent } from './basic-skeleton/basic-skeleton.component';
const elements = [
BasicSkeletonComponent
];
@NgModule({
imports: [
BasicSkeletonModule
],
ent... |
export class UserBuider {
private name: string
private age: number | undefined
constructor(name: string) {
this.name = name
}
get Name() {
return this.name
}
public setAge(val: number): UserBuider {
this.age = val
return this
}
get Age() {
retu... |
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { DataService } from '../../../core/services/data.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap/modal/modal';
import { AttivitaGiornaliera } from '../../../shared/classes/AttivitaGiornali... |
import { Body, Controller, Post } from '@nestjs/common';
import { CreateContactDto } from './create-contact.dto';
import { ContactService } from './contact.service';
@Controller('contacts')
export class ContactController {
constructor(private contactService: ContactService){}
@Post('/new-mail')
newMail
(
@Bo... |
import { Injectable, NestMiddleware, Inject } from '@nestjs/common';
import { CommonFunctionsService } from '../../common/common-functions.service';
import { Sequelize } from 'sequelize-typescript';
@Injectable()
export class PqrsMiddleware implements NestMiddleware {
constructor(
private readonly commonService:... |
import { Card } from '../../../interfaces'
import Set from '../Hidden Legends'
const card: Card = {
name: {
en: "Desert Ruins",
},
illustrator: "Shin-ichi Yoshikawa",
rarity: "Uncommon",
category: "Trainer",
set: Set,
trainerType: "Stadium",
}
export default card |
import '../style/main.scss'
document.querySelectorAll('img')
.forEach(element => {
const url = element.getAttribute('data-lazy-url')
if (url === null) {
return
}
const observer = new IntersectionObserver(entries => {
if (!entries.some(entry => entry.isInters... |
// Copyright 2017-2020 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { OverrideModuleType, OverrideVersionedType } from './types';
// type overrides for modules (where duplication between m... |
import { Injectable } from '@nestjs/common';
import { OtelMethodCounter, Span, TraceService } from 'nestjs-otel';
import { Team } from './team.entity';
const team = new Team();
team.id = 1;
team.name = 'my team';
team.status = 'active';
team.createdAt = new Date();
team.updatedAt = new Date();
@Injectable()
export cl... |
import ReactRefreshWebpackPlugin from 'next/dist/compiled/@next/react-refresh-utils/ReactRefreshWebpackPlugin'
import chalk from 'next/dist/compiled/chalk'
import crypto from 'crypto'
import { webpack } from 'next/dist/compiled/webpack/webpack'
import type { webpack5 } from 'next/dist/compiled/webpack/webpack'
import p... |
import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators, CheckboxRequiredValidator } from '@angular/forms';
import { BaseForm } from '../form-base';
import { MatCheckboxRequiredValidator } from '@angular/material/checkbox';
import { FormService } from '../../cat-form/services/form.service';
... |
import {
Column,
Entity,
JoinColumn,
JoinTable,
ManyToMany,
ManyToOne,
OneToMany,
} from 'typeorm';
import { AbstractEntity } from '../../../../common/abstract.entity';
import { RankRevisionDto } from '../../../../modules/lead/field/RankRevisionDto';
import { CompanyEntity } from '../../../... |
import { ArrayTypeInfo, typesArray } from "./arrayBased/array"
import { TupleTypeInfo, typesTuple } from "./arrayBased/tuple"
import { ArraySetTypeInfo, typesArraySet } from "./objectBased/arraySet"
import { typesDataModelData } from "./objectBased/dataModelData"
import { ModelTypeInfo, ModelTypeInfoProps, typesModel }... |
import * as React from 'react';
import { StyledIconProps } from '@styled-icons/styled-icon';
export declare const EBike2Dimensions: {
height: number;
width: number;
}; |
import { agentFromRouter } from 'src/testing/server';
import { mockJobInput } from 'src/testing/types';
import { jobRouter } from '.';
const agent = agentFromRouter(jobRouter);
describe('postJobHandler', () => {
it('200s and allocates an ID on valid input', () => {
const jobInput = mockJobInput();
return ... |
/**
* @file IconWindmill 风车
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import React from 'react';
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper(
'IconWindmill',
true,
(props: ISvgIconProps) => (
... |
<TS language="hr" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Desni klik za uređivanje adresa i oznaka</translation>
</message>
<message>
<source>Create a new address</source>
<translat... |
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration
} from "remix";
import type { ColorScheme } from "@mantine/core";
import { MantineProvider, ColorSchemeProvider } from "@mantine/core";
import { useState } from "react";
export default function App() {
return (
<html lang="en">
... |
import { getCurrentPlatform } from '../platform';
test('determines the platform name', () => {
expect(getCurrentPlatform()).toEqual('key');
expect(getCurrentPlatform({ platform: 'MacIntel' })).toEqual('mac');
}); |
const cleanName = (name: string): string => {
return name.slice(0, 1).toUpperCase().concat(name.slice(1, name.length).toLowerCase())
}
const hasNickname = (probDenominator: number, nicknames: Nickname []): string | null => {
if (Math.floor(Math.random() * probDenominator) < 1) {
return nicknames[Math.floor(Mat... |
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
import { CreateVoiceTemplateRequest, CreateVoiceTemplateResponse } from "../models/models_0";
import {
deserializeAws_restJson1CreateVoiceTemplateCommand,
serializeAws_restJson1CreateVoiceTemplateCommand,
} from... |
import { Component } from '@angular/core';
@Component({
selector: 'app-result-fail',
templateUrl: './fail.component.html',
})
export class ProResultFailComponent {
} |
import {
OptionsWithUri,
} from 'request';
import {
IExecuteFunctions,
IExecuteSingleFunctions,
ILoadOptionsFunctions,
} from 'n8n-core';
import {
IDataObject,
} from 'n8n-workflow';
export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string,... |
import { near, BigInt, Bytes, json, JSONValue, TypedMap } from "@graphprotocol/graph-ts"
import {
ReceiptEvent,
ExecutionOutcome,
CreateAccountActionEvent,
DeployContractActionEvent,
FunctionCallActionEvent,
TransferActionEvent,
StakeActionEvent,
AddKeyActionEvent,
DeleteKeyActionEvent,
DeleteAccoun... |
/* External Imports */
import { TransactionReceipt } from '@ethersproject/abstract-provider'
import { getContractFactory } from '@eth-optimism/contracts'
import { Contract, Signer, ethers } from 'ethers'
import { Logger } from '@eth-optimism/core-utils'
import { OptimismProvider } from '@eth-optimism/provider'
/* Inte... |
export interface EventData {
EventType: string;
defaultInit: EventInit;
}
/**
* Metadata for events which have different flags set by default than the
* `Event` constructor defaults or which use a subclass of `Event`.
*
* Adapted from `event-data.js` in https://github.com/testing-library/dom-testing-library... |
// Copyright 2016-2018, Pulumi 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.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
export { CoaTencentLbsBin } from './CoaTencentLbsBin'
export { CoaTencentLbsService } from './CoaTencentLbsService'
export { CoaTencentLbs } from './typings' |
// /src/action/send_and_archive/materialiconsoutlined/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgSendAndArchiveOutlined = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">
<g>
<rect fill="none... |
export { CommandHandler } from './command-handler';
export { EventHandler } from './event-handler';
export { GuildJoinHandler } from './guild-join-handler';
export { GuildLeaveHandler } from './guild-leave-handler';
export { ReactionHandler } from './reaction-handler';
export { MessageHandler } from './message-handler'... |
import { DatabaseModule } from './database/database.module';
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { UsuarioModule } from './usuario/usuario.module';
import { HttpModule } from '@nestjs/axios';
import { CepModule } f... |
import * as React from "react";
import { svgToUrl } from "../open_farm/icons";
import {
CropInfoProps, CropLiveSearchResult, OpenfarmSearch,
} from "../farm_designer/interfaces";
import { history, getPathArray } from "../history";
import { connect } from "react-redux";
import { findBySlug } from "../farm_designer/sea... |
import * as lodash from 'lodash';
import { PostFrameUpdateType } from '../utils/slpReader';
import {
iterateFramesInOrder,
isDamaged,
isGrabbed,
calcDamageTaken,
isTeching,
didLoseStock,
Timers,
isDown,
isDead,
MoveLandedType,
ComboType,
} from './common';
import { default as SlippiGame } from '..... |
import { TaskProjectService } from './../task-project.service';
import { ProjectService } from './../project.service';
import { MilestoneService } from './../milestone.service';
import { ClientService } from './../client.service';
import { Component, OnInit, AfterViewInit } from '@angular/core';
import { TasksService... |
/*
* Copyright (C) 2019 HERE Europe B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
/**
* @license
* Copyright Google LLC 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
*/
export {EMPTY_ARRAY} from '../util/empty'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.