text stringlengths 10 953k |
|---|
import { CacheProvider } from "@emotion/react";
import { CssBaseline } from "@mui/material";
import { BrowserSCE } from "@wearenova/use-sce";
import Cookies from "js-cookie";
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from "react-router-dom";
import createEmotionCache from "..... |
import { Promise } from 'es6-promise';
import * as React from 'react';
import { TextField } from 'office-ui-fabric-react/lib/TextField';
import { NumberTextField } from './NumberTextField';
import './TextField.Examples.scss';
export class TextFieldErrorMessageExample extends React.Component<{}, {}> {
public construc... |
import * as _ from 'lodash';
import { packet } from '../packets/packets';
import { ServiceErrorBuilder } from './error';
import { ER_CLIENT_MESSAGE_PROCESS } from '../errors/clientErrors';
import { ER_PACKET_UNKNOWN } from '../errors/packetErrors';
/** Masks for packet description in packet header */
export const ADDR... |
import React, { Suspense } from "react"
import { Canvas } from "@react-three/fiber"
import { useMediaQuery } from "react-responsive"
import DanielModel from "./components/DanielModel"
import useSupportsDeviceOrientation from "../../hooks/useSupportsDeviceOrientation"
export default function Daniel() {
const isTablet... |
import { ComprehendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComprehendClient";
import { StopSentimentDetectionJobRequest, StopSentimentDetectionJobResponse } from "../models/models_0";
import {
deserializeAws_json1_1StopSentimentDetectionJobCommand,
serializeAws_json1_1StopSentimentDet... |
import { Component, h } from '@stencil/core';
@Component({
tag: 'scribbr-button',
styleUrl: 'scribbr-button.css',
shadow: true,
})
export class ScribbrButton {
render() {
return (
<div class="test">
<button>
<slot></slot>
</button>
</div>
);
}
} |
import { AgePipe } from './age.pipe';
describe('AgePipe', () => {
it('create an instance', () => {
const pipe = new AgePipe();
expect(pipe).toBeTruthy();
});
it('handle empty DoB', () => {
const pipe = new AgePipe();
expect(pipe.transform(void 0)).toEqual(void 0);
});
}); |
import React, { FC } from 'react';
import { Icon, IconInterface } from "@redesign-system/ui-core";
export const MagnifyMinusIcon: FC<IconInterface> = function MagnifyMinusIcon({
className,
...propsRest
}) {
const classNames = `MagnifyMinusIcon ${className}`;
return (
<Icon a... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ContactDirComponent } from './contact-dir.component';
describe('ContactDirComponent', () => {
let component: ContactDirComponent;
let fixture: ComponentFixture<ContactDirComponent>;
beforeEach(async(() => {
TestBed.configure... |
/*
* 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 { ConfigObject, KbnServer, Logger } from '../../../types';
import { va... |
import {HtmlTsInputSingleType} from "../../Core/HtmlTsInputType";
import HtmlTs from "../../../../Core/HtmlTs";
import htmlts from "../../../../build";
import HtmlTsInputTextValidator from "../../../Validator/HtmlTsInputTextValidator";
import AbstractHtmlTsInputText, {AbstractHtmlTsInputTextArgs} from "./AbstractHtmlTs... |
/*
* GDevelop JS Platform
* Copyright 2013-2016 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
* This project is released under the MIT License.
*/
namespace gdjs {
export namespace evtTools {
export namespace input {
export let lastTouchId = 0;
export let lastEndedTouchId = 0;
... |
export { Lazifier } from './lib/lazifier' |
/**
* @license
* Copyright 2019 Google 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
declare type Dispatch = () => void;
interface UseAwsSdk {
dispatch: Dispatch;
error: Error;
loading: boolean;
response: null;
}
export default function useAwsSdk(): UseAwsSdk;
export {}; |
import {Component, Inject} from '@angular/core';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {MAT_DIALOG_DATA, MatDialogConfig, MatDialogRef} from '@angular/material';
import {Project} from '../../models/project';
export interface SettingsDialogData {
project: Project;
}
enum MasterSe... |
import { ArchiveNameMode } from './archive-name-mode';
import { FullyQualityFilePaths } from './fully-qualified-file-paths';
import { LogLevel } from './log-level';
import { Overwrite } from './overwrite';
import { Recurse } from './recurse';
export interface Options {
/**
* Specifies the wilcards, filenames ... |
import * as React from 'react';
import styled from 'styled-components';
import GliderComponent from 'react-glider-carousel';
import { Css3 } from './Icons/Css3';
import { Angular } from './Icons/Angular';
import { Drupal } from './Icons/Drupal';
import { GraphQL } from './Icons/Graphql';
import { Html5 } from './Icons... |
import { TestBed, inject } from '@angular/core/testing';
import { AcheteurService } from './acheteur.service';
describe('AcheteurService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [AcheteurService]
});
});
it('should be created', inject([AcheteurService], (service: A... |
export const WINDOWS = {
DESKTOP: 'desktop',
BACKGROUND: 'background',
DEVELOPMENT: 'development',
OVERLAY: 'overlay',
};
export function getCurrentWindow(): Promise<overwolf.windows.WindowInfo> {
return new Promise((resolve, reject) => {
overwolf.windows.getCurrentWindow((result) => {
if (result.s... |
import { FactoryProvider, Provider } from '@angular/core';
import { UrlLocalizationConfig } from '../url-localization/config/url-localization-config';
import { provideUrlLocalization } from '../url-localization/config/url-localization.provider';
import { LanguageIntegra... |
import { browser, $$ } from 'protractor';
export class AppPage {
navigateTo() {
return browser.get('/');
}
getDemoElements() {
return $$('demo-root .container .demo-section');
}
} |
import { Component } from '@angular/core';
import {EntityService} from 'jor-angular';
import {environment} from '../environments/environment';
import {MessageService} from 'ui-message-angular';
import {msgStore} from './msgStore';
import {LogonService} from 'ui-logon-angular';
import {IdentityService} from './identity.... |
import color from 'color';
import {Layout} from 'components/common';
import Button from 'components/common/Button';
import Header from 'components/common/Header';
import styled from 'styled-components';
function ChallengeSuccess() {
return (
<Layout>
<Layout.Header>
<Header isTitle isBig>
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
// *** WARNING: this file was generated by the Pulumi Kubernetes Istio codegen tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
// Import versions:
import * as v1alpha3 from './v1alpha3';
// Export sub-modules
export { v1alpha3, }; |
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angular/router';
import { Store } from '@ngrx/store';
import { combineLatest as observableCombineLatest, Observable } from 'rxjs';
import { first, map, skipWhile, withLatestFrom } from 'rxjs/operators'... |
import { Connect } from "dob-react"
import * as React from "react"
import Icon from "../../components/icon/src"
import { Tooltip } from "../../components/tooltip/src"
import { StoreProps } from "../../stores"
import * as Styled from "./style"
export class Props extends StoreProps<void, void> {
}
export class State {... |
export default function getRepo(github: any, name: any) {
return github.getRepo(name).catch(() => {
throw new Error(`Could not access the ${name} repo`)
})
} |
export { default as FilledEvent } from './Icon'; |
import { useState, useContext, useRef } from 'react';
import Head from "next/head";
import { io } from "socket.io-client";
import { useForm } from 'react-hook-form';
import 'react-toastify/dist/ReactToastify.css';
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPaperPlane, faCommentAlt } ... |
import { Package as PackageTemplate } from "../package_template";
import { SVGPresenter } from "./svg_presenter";
import { VectorDrawableNodeRetriever } from "./vector_drawable_node_retriever";
export class DirectPackage implements PackageTemplate {
public retriever = new VectorDrawableNodeRetriever();
public ... |
import {
Component, Injector, OnDestroy, Injectable, ViewChild, AfterViewInit, AfterContentInit,
ElementRef, OnInit
} from "@angular/core";
import {Shortcut} from "../ui/ui-shortcut";
import {NgbActiveModal, NgbModal} from "@ng-bootstrap/ng-bootstrap";
// base class for dialogs
export class Dialog {
// static
... |
import React from 'react';
import { IconButton32 } from '../../shared/buttons';
import { EditIcon } from '../../shared/icons';
type Props = {
onClick: () => unknown;
};
export function EditFixtureButton({ onClick }: Props) {
return (
<IconButton32
icon={<EditIcon />}
title="Open fixture source"
... |
/*
* Copyright (c) 2018. Igor Khorev, Orangem.me, igorhorev@gmail.com
*/
export class UserDto {
readonly id: number;
readonly login: string;
readonly password: string;
readonly firstName: string;
readonly secondName: string;
readonly lastName: string;
readonly email: string;
readonly phone: string;
... |
import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";
import {pool_blocks} from "./pool_blocks";
import {pool_payment} from "./pool_payment";
import {pool_utxo} from "./pool_utxo";
import {worker_shares} from ... |
import assert from 'assert'
import { Canvas, NodeCanvasRenderingContext2D } from 'canvas'
export interface CanvasAndContext {
canvas: Canvas
context: NodeCanvasRenderingContext2D
}
class NodeCanvasFactory {
create(width: number, height: number): CanvasAndContext {
assert(width > 0 && height > 0, 'Invalid ca... |
import { Domain, getDomains } from '@linode/api-v4/lib/domains';
import { withSnackbar, WithSnackbarProps } from 'notistack';
import { pathOr } from 'ramda';
import * as React from 'react';
import { connect, MapStateToProps } from 'react-redux';
import { RouteComponentProps } from 'react-router-dom';
import { compose }... |
import { AmError } from '../../../src/barrels/am-error';
import { ApStruct } from '../../../src/barrels/ap-struct';
import { api } from '../../../src/barrels/api';
import { interfaces } from '../../../src/barrels/interfaces';
//
// yarn jest test/errors/12_chart/e195_wrong_report_parameter_value.test.ts
jest.setTimeo... |
/* 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 { GlueIngredientComponent } from './glue-ingredient.component';
describe('GlueIngredientComponent', () ... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-procesos',
templateUrl: './procesos.component.html',
styleUrls: ['./procesos.component.css']
})
export class ProcesosComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
} |
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Location } from '@angular/common';
import { MatSnackBar } from '@angular/material/snack-bar';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
im... |
/// <reference types="_build-time-constants" />
import { assert, ensureNotNull } from '../helpers/assertions';
import { Delegate } from '../helpers/delegate';
import { IDestroyable } from '../helpers/idestroyable';
import { ISubscription } from '../helpers/isubscription';
import { DeepPartial, merge } from '../helpers... |
import {ESLintUtils} from '@typescript-eslint/utils';
import {complexExpressionSpacing} from './index';
const ruleTester = new ESLintUtils.RuleTester({
parser: '@typescript-eslint/parser',
});
ruleTester.run('complex-expression-spacing', complexExpressionSpacing, {
valid: [
{
code: 'foo =>... |
/* tslint:disable */
/* eslint-disable */
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type DedicatedArticlesBreadcrumbs_fairOrganizer = {
readonly slug: string;
readonly name: string | null;
readonly fairsConnection: {
readonly edges: Readonl... |
import * as deepMerge from 'deepmerge';
import {BehaviorSubject, Observable} from 'rxjs';
import {PodGroupType} from '../../applications/components/application-pod-view/pod-view';
export type AppsDetailsViewType = 'tree' | 'network' | 'list' | 'pods';
export enum AppsDetailsViewKey {
Tree = 'tree',
Network =... |
export interface Contract {
errors: any[];
validate(model: any): boolean;
} |
import { orderBy } from 'lodash';
import { Station } from 'types/station';
import Fuse from 'fuse.js';
import rawStations from 'db-stations/data.json';
const searchableStations = new Fuse(rawStations, {
includeScore: true,
threshold: 0.3,
tokenize: true,
matchAllTokens: true,
minMatchCharLength: 2,
locatio... |
import { Operation } from './Operation';
export interface Service {
name: string;
operations: Operation[];
imports: string[];
} |
import '@node-projects/web-component-designer';
import { TreeViewExtended, PropertyGrid } from '@node-projects/web-component-designer';
import { BaseCustomWebComponentConstructorAppend } from '@node-projects/base-custom-webcomponent';
import "./widgets/IobrokerWebuiSolutionExplorer.js";
import "./runtime/ScreenViewer.j... |
import { Model } from 'sequelize-typescript';
import { Case } from '../case.entity';
export declare class Notice extends Model<Notice> {
noticeNumber: string;
type: string;
registrationDate: Date;
links: string[];
parties: string[];
creationDate: Date;
caseId: number;
case: Case;
} |
import 'module-alias/register';
import Config from '@lib/config';
import Converter from './converter';
if (Config.enabled.converter)
Converter.initialize();
else
console.log('[converter] Disabled.'); |
import { makeRemoteLoadClientList } from '@/main/factories/usecases';
import { ClientList } from '@/presentation/components/list';
import { PageHeader, PageWrapper } from '@/presentation/components/shared';
import { useState } from 'react';
import { BiFilter } from 'react-icons/bi';
import { useQuery } from 'react-quer... |
import { useReactive } from 'ahooks';
import { Space } from 'antd';
//@ts-ignore
import { ITextyMode, ITextyType, Select1, TextAnimate } from 'components-next';
import animTypes from 'rc-texty/es/animTypes';
import { DemoLayout } from '../../utils/layout';
const text = 'Welcome';
const Demo = () => {
const state = ... |
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
URL_ROOT: 'http://lg.smartikette.it:10082/api'... |
import { MediaTag } from 'src/entities/shared';
import { Field, ID, InputType } from 'type-graphql';
@InputType()
export default class MediaTagInput implements Partial<MediaTag> {
@Field(() => ID)
id: number;
@Field()
name: string;
@Field({ nullable: true })
description: string;
@Field()
isAdult: bo... |
import type { Noop } from '../helpers/types'
export interface CountTime {
time: number
days: string
fullHours: string
thousandsFullHours: string
hours: string
minutes: string
seconds: string
milliseconds: string
}
export type OnPauseOrResume = (payload: { remainTime: number }) => void
export type OnEn... |
import { IEntityDTO } from './entity.DTO';
import { NamedBlobDTO } from './namedBlob.DTO';
export class NameDetailDTO implements IEntityDTO {
name: string = '';
detail: string = '';
id: number = 0;
cacheStamp: number = 0;
constructor() {
}
public PrepareDTO(jsonObj: any): void {
if (jsonO... |
import { Request, Response, NextFunction } from 'express';
import { Container } from 'typedi';
import GetTx from './../../../services/use_cases/tx/GetTx';
import SaveTxs from '../../../services/use_cases/tx/SaveTxs';
import SyncTxStatus from '../../../services/use_cases/tx/SyncTxStatus';
import { path } from './../inde... |
import { Injectable } from '@angular/core';
import { Query } from 'apollo-angular';
import gql from 'graphql-tag';
import { JobResponse } from '../models/job-response';
import { jobFieldsFragment } from '../fragments/job-fields.fragment.gql';
@Injectable({
providedIn: 'root',
})
export class EmployerJobGQL extends... |
export const image: ImageBlockElement = {
role: 'inline',
elementId: 'mockId',
data: {
copyright: '© Tommy Trenchard / Greenpeace',
alt:
'Greenpeace’s ship Arctic Sunrise hits a wave during rough weather in the South Atlantic.',
caption:
'Greenpeace’s ship Arctic Sunrise hits a wave during rough weather ... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SubitemComponent } from './subitem.component';
describe('SubitemComponent', () => {
let component: SubitemComponent;
let fixture: ComponentFixture<SubitemComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
... |
import { Sprite_Mode } from "../stg/util/sprites";
import { scrCoord_to_GLCoord_x, scrCoord_to_GLCoord_y } from "./Screen";
const vertexCode = `
attribute vec2 coord;
attribute vec2 tex;
attribute float alpha;
varying highp vec2 vTexCoord;
varying highp float vTexAlpha;
void main() {
gl_Position = vec4(coord, 0.0,... |
import {css} from '@emotion/css';
import React, {PropsWithChildren} from 'react';
import {HandlerOf} from '../../../helpers/typeHelpers';
import {checkboxInputStyles} from '../settingsStyles';
interface SettingsToggleProps {
onChange: HandlerOf<boolean>;
defaultChecked: boolean;
id: string;
name: string;
}
e... |
import * as React from 'react';
import { InfoBar } from './InfoBar';
import { SquareButton } from '../controls/SquareButton';
import { PaperProps } from '@material-ui/core/Paper';
import { ButtonProps } from '@material-ui/core/Button';
import { PropTypes } from '@material-ui/core';
import { FontAwesomeIcon } from '@for... |
import { ISetting } from '../../definition/settings';
export interface IInternalBridge {
doGetUsernamesOfRoomById(roomId: string): Array<string>;
doGetWorkspacePublicKey(): Promise<ISetting>;
} |
import isFunction = require("lodash/isFunction");
import isString = require("lodash/isString");
import map = require("lodash/map");
import lodashOrderBy = require("lodash/orderBy");
import pick = require("lodash/pick");
import {
cleanVariableName,
ICondition,
IConstantTest,
parseCondition,
ParsedCondition
} f... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sl_SI" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Stepcoin</source>
<translation>O Stepcoin</translation>
</message>
<message>
<locati... |
import { BoilerConstants } from "@app/constants";
import { Retries } from "@app/prompt/retries";
import { TextPrompt } from "@app/prompt/text.prompt";
import { Dict } from "@app/types/dict.type";
import { ITemplateParamTable, PackageConfig, PackageConfigParam } from "@app/types/package-config.class";
import { getScript... |
/**
* An array with 3 values:
* 1. string which identifies the source
* 2. string which identifies the item within the source
* 3. number which identifies the value dimension of the item
*/
export type DataItemDimensionIdentifierInterface = [string, string, number]; |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="af_ZA" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TrumPenceCoin</source>
<translation type="unfinished"/>
</message>
<message>
<locati... |
export default function(scheme: string): void |
import * as React from "react";
import { View, StyleSheet, Picker as NativePicker } from "react-native";
import { withTheme } from "../../core/theming";
import TextField from "../TextField";
import Touchable from "../Touchable";
import { PickerComponentProps } from "./PickerTypes";
const Picker: React.FC<PickerCompon... |
import { BlogPost } from './blog-post.model';
import { MarkdownService } from 'src/app/core/formatter/markdown.service';
export class BlogPosts {
results: BlogPost[];
pageIndex: number;
totalPages: number;
totalRows: number;
constructor(data: { results: any, pageIndex: number, totalPages: number, totalRows:... |
namespace $ {
export function $mol_view_tree2_ts_class(
this: $mol_ambient_context,
klass: $mol_tree2,
locales: $mol_view_tree2_locales
) {
const superclass = this.$mol_view_tree2_class_super(klass)
const body: $mol_tree2[] = []
const class_parts = this.$mol_view_tree2_prop_split(klass)
const context = ... |
import { Association, DataTypes, Model, Optional, Sequelize } from 'sequelize';
import { Team, User } from '.';
interface TeamJoinRequestAttributes {
id: number;
team_id: number;
user_id: number;
approver_id: number;
message: string | null;
status: 'accepted' | 'rejected' | 'idle';
}
type TeamJoinRequest... |
import React, { useCallback, useState } from "react";
import { Icon } from "@webiny/ui/Icon";
import { cloneDeep } from "lodash";
import { Center, Vertical, Horizontal } from "../../DropZone";
import Draggable from "../../Draggable";
import EditFieldDialog from "./EditFieldDialog";
import Field from "./Field";
import {... |
import { Mode } from "fs";
import { Model } from "./Model";
export default interface IJunctionTable extends Model {
firstClassDef: new () => Model;
secondClassDef: new () => Model;
getFirst: IReturnModel;
getSecond: IReturnModel;
}
interface IReturnModel {
(): Promise<Model>;
} |
import { Component, ClassAttributes, CSSProperties } from "react";
import { Color, ColorChangeHandler } from "react-color";
export interface EditableInputStyles {
input?: CSSProperties;
label?: CSSProperties;
wrap?: CSSProperties;
}
export interface EditableInputProps extends ClassAttributes<EditableInput... |
import { AstMetric } from './ast-metric.model';
import { AstFile } from './ast-file.model';
import { flat, unique } from '../../utils/arrays.util';
export class AstModel {
astMetrics: AstMetric[] = [];
measureName: string = undefined;
get astFiles(): AstFile[] {
return unique(flat(this.astMetrics... |
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
it('should create the app', ... |
import {
ElasticLoadBalancingV2ClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
} from "../ElasticLoadBalancingV2Client";
import { DescribeSSLPoliciesInput, DescribeSSLPoliciesOutput } from "../models/models_0";
import {
deserializeAws_queryDescribeSSLPoliciesCommand,
serializeAws_queryDescribeSSL... |
import * as vscode from "vscode";
import { ExtensionContext, window, commands, StatusBarAlignment } from "vscode";
import { create as createBin } from "sourcebin";
import linguist from "@sourcebin/linguist/dist/linguist.json";
import { write as copy } from "clipboardy";
import { sep } from "path";
export function acti... |
import { Maybe } from './Maybe'
import { curry2 } from '@typed/functions'
import { fromJust } from './fromJust'
import { isNothing } from './isNothing'
/**
* Maps a `Maybe` to another `Maybe`.
* @name chain<A, B>(f: (value: A) => Maybe<B>, maybe: Maybe<A>): Maybe<B>
*/
export const chain: MaybeChain = curry2(__chai... |
import React from 'react';
import { mock } from '@thisisagile/easy-test';
const getByText = mock.return(<div />);
jest.mock('@testing-library/react', () => ({ ...jest.requireActual('@testing-library/react'), getByText }));
import { ElementTester, renders } from '../src';
import { fireEvent } from '@testing-library/rea... |
/*
* 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 in writing, software
* distribut... |
import LandingDeployStepsTwo from "./LandingDeployStepsTwo";
export default LandingDeployStepsTwo; |
import { CommonModule } from '@angular/common';
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Input, ViewChild } from '@angular/core';
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { LxEllipsisComponent } fr... |
import * as child_process from 'child_process'
import * as stream from 'stream'
import { Dump } from './dump'
import { Git } from './git'
/*
lib.ts module provides a runtime access to Tortilla's API through a cluster
to distribute the work to another core and not to block the main thread
**/
// Will call the functi... |
import { Flavor } from './flavor.entity';
import {
Column,
Entity,
JoinTable,
ManyToMany,
PrimaryGeneratedColumn,
} from 'typeorm';
@Entity() // sql table === 'coffee'
export class Coffee {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column()
brand: string;
@Column({ defau... |
import { createError } from './../../src/helpers/error'
import { AxiosRequestConfig, AxiosResponse } from './../../src/types'
describe('helpers:error', () => {
test('应该使用消息、配置、代码、请求、响应和isAxiosError创建错误', () => {
const request = new XMLHttpRequest()
const config: AxiosRequestConfig = { method: 'post' }
co... |
/*-
* #%L
* Arcade Analytics
* %%
* Copyright (C) 2018 - 2019 ArcadeAnalytics
* %%
* 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
... |
import { Injectable } from '@angular/core';
import { Integration } from './model/integration';
import { INTEGRATIONS } from './mock-integration';
@Injectable()
export class IntegrationService {
getIntegrations(): Promise<Integration[]> {
return Promise.resolve(INTEGRATIONS);
}
// getHeroesSlowly(... |
/**
* REST API for Flexicore filtered by your access rights
* Flexicore REST API
*
* OpenAPI spec version: V1.1.0
* Contact: avishaybennatan@gmail.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manua... |
/**
* Add extra node fields.
*
* This allows us to use $node_id and $category in sheet template queries.
*/
interface Props {
node: any
getNode: any
actions: any
}
const onCreateNode = ({ node, actions }: Props) => {
const { createNodeField } = actions
if (node.internal.type === `MarkdownRemark`) {
... |
import * as bare from "@bare-ts/lib"
export type u32 = number
export type TypeOfUnion =
| boolean
| u32
| string
| null
export function readTypeOfUnion(bc: bare.ByteCursor): TypeOfUnion
export function writeTypeOfUnion(bc: bare.ByteCursor, x: TypeOfUnion): void
export function encodeTypeOfUnion(x: ... |
function parseSeat(seat: string) {
const { groups } = seat.match(/(?<rows>[BF]{7})(?<columns>[LR]{3})/) || [];
if (!groups) {
throw new Error('Invalid input');
}
const { columns, rows } = groups;
return {
columns,
rows,
};
}
function getSeat(rows: string, start: number, end: number): number ... |
/* eslint-disable no-console */
import type {NumberArray} from '../types';
/** TODO @deprecated - delete when confident that probe.gl logging implements all opts */
function formatArrayValue(v: NumberArray, opts: {maxElts?: number, size?: number} = {}): string {
const {maxElts = 16, size = 1} = opts;
let string = ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { IExplanationDashboardData } from "@responsible-ai/core-ui";
import { bostonData } from "./bostonData";
export const bostonDataNoPredict: IExplanationDashboardData = {
...bostonData,
predictedY: undefined,
probabilityY: undefine... |
import {
ChangeDetectionStrategy,
Component,
EventEmitter,
Input,
OnChanges,
Output,
SimpleChange,
SimpleChanges,
} from '@angular/core';
@Component({
selector: 'kirby-checkbox',
templateUrl: './checkbox.component.html',
styleUrls: ['./checkbox.component.scss'],
changeDetection: ChangeDetection... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.