text stringlengths 10 953k |
|---|
import type {ImmutableTree} from './types';
export default function minNode<T>(
tree: ImmutableTree<T>,
): ImmutableTree<T>; |
import {Flex} from '@sanity/ui'
import React, {useState, useCallback, useEffect} from 'react'
import {Pane} from '../../../Pane'
import {usePaneLayout} from '../../../usePaneLayout'
import {DocumentPaneNode} from '../types'
import {DocumentViewPanel} from './DocumentViewPanel'
import {ReviewChangesPanel} from './Review... |
import {RcsbFvColorGradient, RcsbFvDisplayTypes} from "@rcsb/rcsb-saguaro";
export interface AnnotationConfigInterface {
provenance_color_code: {
external: string;
rcsb_pdb: string;
};
merge?: Array<{
merged_types: Array<string>,
type: string;
title: string;
... |
export * from './iban.validator'; |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', async () => {
await page.navigateTo();
expect(await page.getTitleText()... |
import { _request, performGetRequest } from "../../src/common/requests"
jest.setTimeout(5000)
test("_request builds a url", async () => {
const data = await _request(
"https://searchconsole.googleapis.com",
"/$discovery/rest",
{ version: "v1" },
)
expect(data).toBe(
"https://searchconsole.google... |
export * from "./core";
export * from "./util";
export * from "./data_types";
export * from "./constructions"; |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Builder from '../../Builder';
import {Tokens, operator, concat} from '../../tokens';
import {jsxSpreadChild, AnyNode} from ... |
import * as _ from 'lodash-es';
import {PROMETHEUS_BASE_PATH, PROMETHEUS_TENANCY_BASE_PATH} from './index';
export enum PrometheusEndpoint {
QUERY = 'api/v1/query',
QUERY_RANGE = 'api/v1/query_range',
}
// Range vector queries require end, start, and step search params
const getRangeVectorSearchParams = (timespa... |
// Generated by script, don't edit it please.
import createSvgIcon from '../../createSvgIcon';
import IosSvg from '@rsuite/icon-font/lib/legacy/Ios';
const Ios = createSvgIcon({
as: IosSvg,
ariaLabel: 'ios',
category: 'legacy',
displayName: 'Ios'
});
export default Ios; |
import React from "react";
import { definePage } from "rakkasjs";
import { Auth } from "./Auth";
import { StatusCodes } from "http-status-codes";
import { Helmet } from "react-helmet-async";
export default definePage({
load({ context: { user } }) {
if (user) {
return {
status: StatusCodes.SEE_OTHER,
redi... |
import { ContractNetworksConfig, defaultContractNetworks } from '../configuration/contracts'
import GnosisSafeContract from '../contracts/GnosisSafe/GnosisSafeContract'
import GnosisSafeProxyFactoryContract from '../contracts/GnosisSafeProxyFactory/GnosisSafeProxyFactoryContract'
import EthAdapter from '../ethereumLibs... |
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { Strategy } from 'passport-local';
import { MessageHelper } from 'src/helpers/message.helper';
import { AuthService } from '../auth.service';
@Injectable()
export class LocalStrategy extends... |
if (!Symbol.asyncIterator) {
(Symbol as any).asyncIterator = Symbol.for('Symbol.asyncIterator');
} |
import generator from '@babel/generator';
import { transformSync } from '@babel/core';
import type { Program } from '@babel/types';
import { debug } from '@linaria/logger';
import type { Evaluator, StrictOptions } from '@linaria/babel-preset';
import { buildOptions } from '@linaria/babel-preset';
import shake from './s... |
import { Component } from '@angular/core';
import { Layout, Edge, Node } from '@swimlane/ngx-graph';
import { DagreNodesOnlyLayout } from './customDagreNodesOnly'
import { stepRound } from './customStepCurved';
@Component({
selector: 'ngx-graph-custom-curve',
templateUrl: './ngx-graph-custom-curve.component.html',... |
import { BotCommandContext } from './BotCommandContext';
export interface BotCommandMatch {
command: BotCommand;
params: string[];
}
export abstract class BotCommand {
abstract get name(): string;
get aliases(): string[] {
return [];
}
match(line: string, prefix: string): string[] | null {
let [command, .... |
import React from 'react';
import { createStyles, Divider, Paper, List,ListItem, ListItemText, IconButton} from '@material-ui/core';
import { makeStyles, Theme } from '@material-ui/core/styles';
import Fab from '@material-ui/core/Fab';
export default function MongoDBDisplay(props){
const onRender = () =>{
if(pr... |
import MagicString from 'magic-string';
import { StatementBase } from './shared/Statement';
import { NodeType } from './index';
export default class EmptyStatement extends StatementBase {
type: NodeType.EmptyStatement;
render(code: MagicString, _es: boolean): void;
} |
import {FC, createElement as h} from 'react'
import {Box} from '@/ui'
export default {
title: 'components/box',
}
export const Default: FC = () => {
return (
h('div', {},
h(Box, {bc: 'black', bg: 'primary', bw: 1, m: 10, p: 10}),
)
)
} |
import connect from '../connect';
const finance = 'Finance';
interface IInsert {
name: string;
type: string;
fields?: string;
nominal: number;
date: Date;
}
async function insertFinance(props: IInsert) {
const {name, type, fields, nominal, date} = props;
const realm = await connect();
try {
realm... |
import Advance from '@civ-clone/core-science/Advance';
export declare class Feudalism extends Advance {}
export default Feudalism; |
import { Component, Input, Output, EventEmitter, OnInit, OnChanges, SimpleChanges, SimpleChange } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Component({
selector: 'formless-slider',
templateUrl: './slider.component.html',
styleUrls: ['./slider.component.scss']
})
export clas... |
export enum EOperation {
CREATE, DELETE, UPDATE, INIT
} |
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
import { NativescriptEasylinkComponent } from './nativescript-easylink.component';
@NgModule({
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([... |
import {
dynamicSchemaEnabled,
polySchemaUrl,
} from '@polymathnetwork/extension-core/constants';
import { NetworkName, Schema } from '@polymathnetwork/extension-core/types';
import fallback from './fallback';
let loadedSchemas: Record<NetworkName, undefined | Schema>;
const request = async (n: NetworkName): Pro... |
// *** 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 { createAction, handleActions } from 'redux-actions';
import { defaultTheme, Utils } from 'tuya-panel-kit';
import customTheme from '../../config/theme';
const { deepMerge } = Utils.ThemeUtils;
// Actions
export const toggleTheme = createAction('TOGGLE_THEME');
export const updateTheme = createAction('UPDATE_T... |
import AbstractPartyMessage from "@/protocol/network/messages/AbstractPartyMessage";
export default class AbstractPartyEventMessage extends AbstractPartyMessage {
constructor(partyId = 0) {
super();
}
} |
import { Component, ElementRef, Input } from '@angular/core';
@Component({
selector: 'stick',
template: `<div class="stick">
<svg>
<circle [attr.cx]="left" [attr.cy]="top" [attr.r]="radius" fill="green"/>
</svg>
</div>`,
styles: [`
.stick {
position: absolute;
width: 100%;
height:... |
import React from 'react'
import { IconProps } from './types'
const IconAccessTimeFilled: React.FC<IconProps> = ({ ...props }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
enableBackground="new 0 0 24 24"
viewBox="0 0 24 24"
{...props}
>
{props.title && <title>{props.title}</title>}
<g>
... |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { ProductAttributeAssignInput, ProductErrorCode, ProductTypeKindEnum, AttributeTypeEnum, MeasurementUnitsEnum, AttributeInputTypeEnum, WeightUnitsEnum } from "./../../types/globalTypes";
/... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// 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, modify... |
/* Copyright Contributors to the Open Cluster Management project */
import {
Alert,
Button,
Card,
CardActions,
CardBody,
CardHeader,
CardTitle,
Checkbox,
DescriptionList,
DescriptionListDescription,
DescriptionListGroup,
DescriptionListTerm,
Dropdown,
DropdownIte... |
import * as yargs from 'yargs';
export const args: () => Arguments = function getArgs() {
const argv = yargs
.option('no-dependencies',
{
alias: 'no-dep',
describe: 'Don\'t show dependencies',
type: 'boolean'
}
)
.option('no-devDependencies',
{
alias: 'no... |
import { Component } from "@angular/core";
@Component({
moduleId: module.id,
templateUrl: "./usage.component.html",
styleUrls: ["./usage.component.css"]
})
export class BottomNavUsageComponent { } |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About XXEcoin</source>
<translation>O XXEcoin-u</translation>
</messag... |
import { Coord } from "@turf/helpers";
/**
* Takes two {@link Point|points} and finds the geographic bearing between them,
* i.e. the angle measured in degrees from the north line (0 degrees)
*
* @name bearing
* @param {Coord} start starting Point
* @param {Coord} end ending Point
* @param {Object} [options={}] ... |
import { DownloadItem } from './download-item';
import { APIService } from '../api.service';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { Injector, Injectable } from '@angular/core';
import { IDownloadService } from './i-download.service';
export class UrlValidationResult {
isS... |
import React from 'react';
import { Toaster } from 'react-hot-toast';
import AppContent from './AppContent';
import AppHeader from './AppHeader';
import PageTitle from './PageTitle';
import styles from '../styles/modules/app.module.scss';
const App = () => {
return (
<>
<div className="containe... |
export default class ColorPallete {
private palleteName: string;
private cssClassName: string;
constructor(palleteName: string, cssClassName: string) {
this.palleteName = palleteName;
this.cssClassName = cssClassName;
}
getPalleteName() {
return this.palleteName;
}
... |
import {CSSGridRepeatValues, NodeBaseWithComments} from "@internal/ast";
import {createBuilder} from "../../utils";
export interface CSSGridRepeatValue extends NodeBaseWithComments {
readonly type: "CSSGridRepeatValue";
readonly values: CSSGridRepeatValues;
}
export const cssGridRepeatValue = createBuilder<CSSGridR... |
declare module 'firebase-mock' {
export class MockAuthentication {
autoFlush(): void;
}
export class MockFirebase {
autoFlush(): void;
child(path: string): MockFirebase;
}
export class MockStorage {}
export class MockFirebaseSdk {
constructor(
db: (path?: string) => MockFirebase,
... |
import { convertArrayToObjectWithValues } from '../../utils/object';
import { getColors, getUpdateTriggers, hexToRgb, validateParameters } from './utils';
export function colorCategoriesStyle(
featureProperty: string,
{
categories = defaultOptions.categories,
colors = defaultOptions.colors,
nullColor =... |
import React, { useContext, useMemo, useState, useRef, useCallback } from 'react';
import classNames from 'classnames';
import { isFunction, isNumber, isNaN, isUndefined } from 'lodash';
import { LeftOutlined, LeftDoubleOutlined, RightOutlined, RightDoubleOutlined, More } from '@gio-design/icons';
import Input from '..... |
import { runTestCases } from './helpers'
describe('Module commonjs', () => {
runTestCases('commonjs')
}) |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CmsConfig, ConfigModule, I18nModule } from '@spartacus/core';
import { CardModule } from '../../../../shared/components/card/card.module';
import { SpinnerModule } from '../... |
import React, { memo } from "react";
import { err, splitSurroundingWhitespace } from "^jab";
import { replaceAtoms } from "^jab-react";
import { diff } from "^util-javi/algs";
export type Props = {
left: string;
right: string;
};
/**
* Show diff between two strings.
*
* - Underline white space at boundary of ... |
import * as Validator from 'class-validator';
export class EditArticleInKorpaDto{
artiklId:number;
@Validator.IsNotEmpty()
@Validator.IsPositive()
@Validator.IsNumber({
allowInfinity:false,
allowNaN:false,
maxDecimalPlaces:0
})
kolicina:number;
} |
<TS language="sk_SK" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Kliknite pravým tlačidlom myši pre úpravu adresy alebo štítku</translation>
</message>
<message>
<source>Create a new address</s... |
import { RouterModule, Routes } from '@angular/router';
import { AuthGuard } from '../../../classGeneric/config';
import { NgModule } from '@angular/core';
//Importacion de los componentes del modulo de reportes de mesa de control
import { MesaControlReportesAnalista } from './reportes-analista/reportes-analista.compo... |
/**
* @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
*/
import {
NodePath,
ParseResult,
PluginObj,
parseSync,
transformAsync,
transformFromAstSync,
types,
} fr... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {ManifestDefinition} from '@romejs/codec-js-manifest';
import {PathPatterns} from '@romejs/path-match';
import {BundlerMode... |
import { Service } from 'typedi';
import { InjectRepository } from 'typeorm-typedi-extensions';
import { cloudinaryError, commonError, themeError } from '../constants/error';
import ProjectEntity from '../entity/project';
import ProjectRepository from '../repositories/project';
import ThemeRepository from '../reposito... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Router, Route, Switch } from 'react-router';
import { createBrowserHistory } from 'history';
import {
MuiThemeProvider,
getMuiTheme,
colors
} from 'material-ui/styles';
const {
purple500, deepPurple500,
deepPurple300, deepPurple... |
import * as React from 'react';
import { IconBaseProps } from 'react-icon-base';
export default class FaMobile extends React.Component<IconBaseProps, any> { } |
import React, { useMemo, useCallback } from 'react';
import { get as _get } from 'lodash';
import { bn } from '@thorchain/asgardex-util';
import FilterMenu from '../../filterMenu';
import { getTickerFormat } from '../../../../helpers/stringHelper';
import CoinData from '../coinData';
import { PriceDataIndex } from '..... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { EngineComponent } from './engine.component';
import { TranslateModule } from '@ngx-translate/core';
describe('EngineComponent', () => {
let component: EngineComponent;
let fixture: ComponentFixture<EngineComponent>;
beforeEach(a... |
import { Fragment } from 'react'
import { Transition } from '@headlessui/react'
import classNames from 'classnames'
import jjPikachu from '../../images/jj-pikachu.png'
import jjChair from '../../images/jj-chair.png'
import jjLick from '../../images/jj-lick.png'
import jjGameboy from '../../images/jj-gameboy.png'
import... |
import '@storybook/addon-actions'
import { storiesOf } from '@storybook/react'
import React from 'react'
import { FaArrowLeft, FaInfoCircle } from 'react-icons/fa'
import { Flex, Text } from 'rebass'
import styled from 'styled-components'
import Fetch from './Fetch'
import { FormComponent, FormContainer, AcceptHosted... |
import { IValue, _IIndex, _ISelection, _IType, _Transaction, _Explainer, _ExprExplanation, _ISchema } from './interfaces-private.ts';
import { DataType, QueryError, CastError, nil, ISchema } from './interfaces.ts';
import hash from 'https://deno.land/x/object_hash@2.0.3.1/mod.ts';
import { Types, ArrayType, isNumeric }... |
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { environment } from '../../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class SplunkLocalAppService {
constructor(
private http: HttpClient
) { }
getAllApps() {
... |
export interface Argument<T> {
readonly name: string,
readonly description: string,
readonly optional: boolean,
parse(input: string[]): T | null,
suggest(input: string[]): string[]
}
export abstract class AbstractArgument<T> implements Argument<T> {
readonly description: string
readonly name: string
readonly... |
import { prompt } from 'inquirer'
import DB from '../db'
import listTable from '../table'
import initiator from '../initiator'
async function initTemplate () {
const tplList:any = await DB.find({})
listTable(tplList, '', false)
const questions = [{
type: 'rawlist',
name: 'tplName',
message: 'Select ... |
import {Component, DoCheck, OnInit} from '@angular/core';
import { AuthService} from './auth/services/auth.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
providers: [AuthService]
})
export class AppComponent implements OnInit, DoCheck {
p... |
/* eslint-disable react/jsx-props-no-spreading */
import React from 'react';
import { Text, Transformer } from 'react-konva';
import Konva from 'konva';
import { Layer } from 'konva/types/Layer';
import { Box } from 'konva/types/shapes/Transformer';
import { styledComponentsTheme } from '../../configs/theme';
export i... |
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { Vot5Component } from './vot5.component';
describe('Vot5Component', () => {
let component: Vot5Compo... |
/* eslint-disable @typescript-eslint/camelcase */
import { resolve } from 'path';
import { EOL } from 'os';
export default {
path: resolve(__dirname, 'tmp', 'alternate_encoding.csv'),
content: Buffer.from([
'first_name,last_name,email_address',
'First1,Last1,email1@email.com',
'First2,... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { routerTransition } from '../router.animations';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss'],
animations: [routerTransition()]
})
exp... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React from "react";
import { RouterContext, BlitzRouter } from "blitz";
import { render as defaultRender } from "@testing-library/react";
import { renderHook as defaultRenderHook } from "@testing-library/react-hooks";
export * from "@testing-library/react";
// --------------------------------------------------... |
import { ISPService} from '../../../Common/Services/ISPService';
import { ApplicationCustomizerContext } from '@microsoft/sp-application-base';
export interface IFollowedSitesProps {
spService : ISPService;
currentContext: ApplicationCustomizerContext;
} |
/********************************************************************************
* Copyright (C) 2017 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* T... |
import React, { useEffect, useState } from 'react';
import cx from 'classnames';
import isEqual from 'lodash/isEqual';
import { Button, Tooltip, Modal, Popconfirm } from 'antd';
import { DownOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
import StackLayout from '../../../../layout/StackLayout';
import ... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export {
discriminators,
AadAuthenticationParameters,
AddressSpace,
ApplicationGa... |
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginComponent } from './root-components/login/login.component';
import { SignupComponent } from './root-components/signup/signup.component'
import { UserComponent } from './users/components/user/user.component';
... |
import { CommandDef } from './command-def';
import { UserSuspend, userSuspendModel } from '../APIs/mongo-suspend';
import { MessageEmbed } from 'discord.js';
export const userCommand: CommandDef = {
prefix: 'user',
description: 'Get data on the user mentioned.',
usage: 'user <username>',
command: async (messag... |
/*
* 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 { updateRulesSchema } from './update_rules_schema';
import { UpdateRul... |
import { Vector3, Mesh, Quaternion, TetrahedronGeometry, Vector2 } from 'three'
import { randFloat, randFloatSpread } from 'three/src/math/MathUtils'
import { getBlockMaterial, pickRandom, randomInt } from './util'
import type { Puzzle } from './puzzle'
import { CAMERA_Z } from './camera'
export interface Particle {
... |
export class Box {
index: number;
constructor(index: number) {
this.index = index;
}
} |
import { AfterViewInit, Component, ElementRef, HostBinding, ViewChild } from '@angular/core';
import { FormComponent } from '../../../models/IFormComponent';
import { AutocompleteOptions, ValueLabel } from '../../../models/FormField';
import { BehaviorSubject, isObservable, Observable, of } from 'rxjs';
import { COMMA,... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { expect } from 'chai';
import { simulate } from 'simulate-event';
import { PromiseDelegate } from '@lumino/coreutils';
import { Widget } from '@lumino/widgets';
import { Context } from '@jupyterlab/docreg... |
import IMainConfig from '../typed/IMain';
export declare const process: (chart: any, config: IMainConfig, isUpdate?: boolean) => any; |
import {Component, OnInit} from "@angular/core";
import {TestplanService} from "../testplan.service";
import {Testplan} from "../testplan";
import {ActivatedRoute} from "@angular/router";
@Component({
selector: 'app-testplan',
templateUrl: './testplan.component.html',
styleUrls: ['./testplan.component.css']
})
e... |
import * as React from 'react'
import createSvgIcon from './utils'
//tslint:disable
export default createSvgIcon(
<g>
<defs>
<path id="a" d="M0 0h24v24H0V0z" />
</defs>
<path d="M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z" />
</g>,
'IcLa... |
async function fetchGraphQL(
query: string,
variables?: Record<string, unknown>,
token?: string
) {
const response = await fetch("http://192.168.11.7:8080/query", {
method: "POST",
headers: {
Authorization: token ? `Bearer ${token}` : "",
"Content-Type": "application/json",
"X-REQUEST-... |
import { Injectable } from '@nestjs/common';
import { PrismaService } from '../../prisma/prisma.service';
import {
User,
UserWhereUniqueInput,
UserWhereInput,
UserCreateInput,
UserUpdateInput,
UserOrderByInput
} from '@prisma/client';
import { BaseDaoService } from '../base-dao/base-dao-service'... |
/**
* Created by Oleksandr.Khymenko on 07.10.2016.
*/
import { NgModule } from '@angular/core';
import { ProjectComponent } from "./project.component";
import { ProjectOverviewComponent } from "./overview/project-overview.component";
import { projectRouting } from "./project.routing";
import { CommonModule } from "@a... |
import { Test, TestingModule } from '@nestjs/testing';
import { AppController } from './app.controller';
import { AppService } from './app.service';
describe('AppController', () => {
let appController: AppController;
beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
co... |
import { Container, Database } from "@arkecosystem/core-interfaces";
import { Networks, Utils } from "@arkecosystem/crypto";
import { StateBuilder } from "../../../../packages/core-database-postgres/src";
import { Delegate } from "../../../../packages/core-forger/src/delegate";
import { WalletManager } from "../../../.... |
import { IAtlasmapGroup, IAtlasmapField, IAtlasmapMapping } from "../Views";
interface Modifiers {
modifier: string[];
}
interface JavaEnumFields {
javaEnumField: any[];
}
interface JavaField {
jsonType: string;
path: string;
status: string;
fieldType: string;
modifiers: Modifiers;
name: string;
cl... |
// import { Parser } from "../src/parser/class.parser.ts";
// import { assertEquals } from "../src/deps.ts";
// Deno.test("should handle empty content", () => {
// const result = new Parser().parse("");
// assertEquals(result, {});
// });
// Deno.test("should handle heading level 1", () => {
// const resul... |
import { Inject, Provide } from '@midwayjs/decorator';
import { BaseService } from 'midwayjs-cool-core';
import { InjectEntityModel } from '@midwayjs/orm';
import { Repository } from 'typeorm';
import { BaseSysMenuEntity } from '../../entity/sys/menu';
import * as _ from 'lodash';
import { Context } from 'egg';
import ... |
import { getApiPath } from './common'
export const auth = {
login: (includeSurvey?: string): string =>
`${getApiPath('auth', 'login')}${includeSurvey ? '?includeSurvey=true' : ''}`,
} |
import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
const regionHash: RegionHash = {
fips: {
hostname: "elasticache.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
};
const partitionHash: PartitionHash =... |
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { format } from 'prettier';
import { describe, expect, test } from 'vitest';
import { plugin } from './../../src/index';
describe('Text-Html', () => {
test('should handle plain-text at after outdent', () => {
const expected: string = readF... |
import { StringGetter, Getter, Indexed, Predicate } from './types/CommonTypes'
import { toBe, Reducer, Sort } from 'declarative-js'
import { ArrayExtension } from './types/ArrayTypes'
export const arrayFx: ArrayExtension<any> = {
present<T>(this: Array<T>): Array<NonNullable<T>> {
return this.filter(toBe.p... |
import { validation } from "@webiny/validation";
import { FbFormFieldValidatorPlugin } from "~/types";
export default {
type: "fb-form-field-validator",
name: "form-field-validator-lte",
validator: {
name: "lte",
validate: (value, validator) => {
const lteValue = validator.setti... |
import { AppPage } from './app.po';
describe('refrigerator App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should get root', () => {
page.navigateTo('/login');
const root = page.root;
expect(root).toBeTruthy()
});
it ('should get header', () => {
con... |
import { PARAMETER_TYPE } from "../../constants";
import { params } from "./params.helper";
/**
* @paramDecorator
* Binds a method parameter to the next() function.
*/
export function Next(): ParameterDecorator {
return params(PARAMETER_TYPE.NEXT);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.