text stringlengths 10 953k |
|---|
import { SvelteComponentTyped} from 'svelte/internal';
import type { Style } from '../../style';
import type { Component } from '../../component';
import Section from './section'
import Divider from './divider'
interface BreadcrumbProps extends Component {
class?: string;
active?: boolean;
disabled?: boole... |
import {inject, injectable} from "inversify";
import {Logger} from "../bll/utils/logger";
import {Disposable} from "vscode";
import {HttpHostRequest} from "../bll/weblinklistener/httphostrequest";
import {TYPES} from "../bll/utils/constants";
import {Server as HttpServer, createServer as createHttpServer} from "http";
... |
import {Component} from '@angular/core';
import {FormClass} from '../service/form.class';
import {AboutmeService} from '../service/aboutme.service';
import {Post} from '../service/post';
@Component({
templateUrl : "./app/aboutme/html/aboutme.html",
providers:[AboutmeService]
})
export class AboutmeComponent{... |
import type { TokenType, TokenOptions } from './createToken.h';
export class TokenClass<T> implements TokenType<T> {
/**
* Индетификатор токена
*/
name: string;
options: TokenOptions;
isToken: true = true;
constructor(name: string, options: TokenOptions = {}) {
this.name = name;
this.options... |
import { observable, computed } from 'mobx'
import BaseModel from './BaseModel'
interface Outpoint {
output_index: number;
txid_bytes: string;
txid_str: string;
}
export default class Utxo extends BaseModel {
@observable address: string;
account: string;
confirmations: string;
outpoint: Ou... |
import { Request, Response, NextFunction } from "express"
import { verify } from "jsonwebtoken";
interface IPayload {
sub: string;
}
export function ensureAuthenticated(
request: Request,
response: Response,
next: NextFunction
) {
const authToken = request.headers.authorization;
if (!authToken) {
ret... |
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { ComboboxSelectionChangeEvent, DATA_PROVIDERS } from '@fundamental-ngx/platform';
@Component({
selector: 'fdp-combobox-states-example',
templateUrl: './combobox-states-example.component.html',
changeDetection: ChangeDetectionStrate... |
import React from 'react';
import { Formik, Form } from 'formik';
import { TextFieldComponent, CheckboxComponent } from 'common/components';
import { cx } from '@emotion/css';
import { Employee } from '../employee.vm';
import { CommandFooterComponent } from 'common-app/command-footer';
import { formValidation } from '.... |
import { Module } from '@nestjs/common'
import { JwtModule } from '@nestjs/jwt'
import { TypeOrmModule } from '@nestjs/typeorm'
import { User } from 'src/user/user.entity'
import { UserModule } from 'src/user/user.module'
import { AuthController } from './auth.controller'
import { AuthService } from './auth.service'
@... |
export const jobTypes = [
{ type: 'All', value: '', sendValue: 'All' },
{ type: 'Associates', value: 'ASSOCIATES', sendValue: 'ASSOCIATES' },
{ type: 'Driver', value: 'DRIVER', sendValue: 'DRIVER' },
{ type: 'Security', value: 'SECURITY', sendValue: 'SECURITY' },
{ type: 'Facility/House Keeping', va... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assert} from 'chai';
import {describe, it} from 'mocha';
import {$, click, enableExperiment, getBrowserAndPages, goToResource, waitFor, waitForFu... |
import styled from "styled-components";
import { CourseClassItem } from "../courseclassitem/CourseClassItem";
export const styles = {
Wrapper: styled.div``,
CourseClassItem: styled(CourseClassItem)``,
}; |
import type { BackendModule, ReadCallback, Services } from "i18next";
type ResourceFetcher = () => Promise<Record<string, string>>;
export interface AsyncBackendOptions {
resources?: {
[language: string]: ResourceFetcher | Record<string, ResourceFetcher>;
};
}
export default class AsyncBackend
implements B... |
import {Component, Input, AfterViewInit, ElementRef, ChangeDetectorRef, OnDestroy, ViewChild, EventEmitter} from "@angular/core";
import {Popover} from "./Popover";
@Component({
selector: "popover-content",
template: `
<div #popoverDiv class="popover {{ placement }}"
[style.top]="top + 'px'"
[style.l... |
import { Config } from '../../../declarations';
import { mockLogger, mockStencilSystem } from '../../../testing/mocks';
import { validateConfig } from '../validate-config';
import * as path from 'path';
describe('validatePaths', () => {
let config: Config;
const logger = mockLogger();
const sys = mockStencilSy... |
/***************************************************************************/
/* */
/* Copyright 2018-2022 by */
/* Vily(vily313@126.com) */
/* ... |
/**
* @license Angular v12.1.1
* (c) 2010-2021 Google LLC. https://angular.io/
* License: MIT
*/
/**
* @description
*
* Represents an abstract class `T`, if applied to a concrete class it would stop being
* instantiable.
*
* @publicApi
*/
declare interface AbstractType<T> extends Function {
prototype: ... |
import * as Bluebird from 'bluebird'
import chalk from 'chalk'
import { contains, flatten, head, prepend, tail } from 'ramda'
import { workspaces } from '../../clients'
import { getAccount, getWorkspace } from '../../conf'
import { UserCancelledError } from '../../errors'
import log from '../../logger'
import { parseA... |
import { Service } from "./service";
export class PrintoutService extends Service {
constructor() {
super()
}
async printLbl(url: string, name=`printout-${Service.getSessionDate()}`) {
const file = await Service.getText(url)
if (!file) return
const fileUrl = window.URL.cr... |
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';
import { BrowserXhr, ConnectionBackend, Http as HttpAngular, ResponseOptions, XSRFStrategy } from '@angular/http';
import {
DefaultOptionsToken,
Events,
Http,
HttpEvents,
HttpPluginsToken,
ParseResponsePlugin,
ParseResponse... |
import { getIframeBody } from '../support/iframe.po';
describe('rxzu-homepage', () => {
beforeEach(() => cy.visit('/'));
it('should display welcome message', () => {
getIframeBody()
.find('h1')
.should('contain.text', 'Welcome to RxZu');
});
}); |
import { KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisClient";
import { GetShardIteratorInput, GetShardIteratorOutput } from "../models/index";
import {
deserializeAws_json1_1GetShardIteratorCommand,
serializeAws_json1_1GetShardIteratorCommand,
} from "../protocols/Aws_json1_... |
import { NextApiRequest, NextApiResponse } from 'next'
import { CURRENCY, MIN_AMOUNT, MAX_AMOUNT } from '../../../config'
import { formatAmountForStripe } from '../../../utils/stripe-helpers'
import Stripe from 'stripe'
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {
// https://github.com/stripe/stripe-... |
/*
* Copyright (C) 2018 Matus Zamborsky
* This file is part of The Ontology Wallet&ID.
*
* The The Ontology Wallet&ID is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... |
import { createContext, useState, ReactNode, useContext } from 'react';
type Episode = {
title: string;
members: string;
thumbnail: string;
duration: number;
url: string;
};
type PlayerContextData = {
episodeList: Array<Episode>;
currentEpisodeIndex: number;
isPlaying: boolean;
isLooping: boolean;
... |
export * from './date-util';
export * from './forms-util';
export * from './string-util'; |
export * from './user-details';
export * from './user-list'; |
import { Button, Typography } from 'antd';
import React from 'react';
import styled from 'styled-components';
import { GetDatasetQuery } from '../../../../../../../graphql/dataset.generated';
import { DatasetProfile, Operation, UsageQueryResult } from '../../../../../../../types.generated';
import UsageFacepile from '.... |
/*
* Magic Cloud, copyright Aista, Ltd. See the attached LICENSE file for details.
*/
import { Subscription } from 'rxjs';
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
// Application specific imports.
import { Message } from 'src/app/models/message.model';
import { MessageService } from 'src/... |
import { Connection, ConnectionBackend, ReadyState, Request, Response } from '@angular/http';
import { ReplaySubject } from 'rxjs/ReplaySubject';
/**
*
* Mock Connection to represent a {@link Connection} for tests.
*
* @deprecated use @angular/common/http instead
*/
export declare class MockConnection implements C... |
/* eslint-disable import/order */
import * as React from "react";
import { Button, Container, Form } from "react-bootstrap"; // #endregion Global Imports
import { Controller, useForm } from "react-hook-form";
import { useDispatch, useSelector } from "react-redux";
import { HomeActions } from "@Actions";
import { IPas... |
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { HomeComponent } from "./home.component";
describe("HomeComponent", () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarati... |
import * as React from 'react';
import ParseScene from '../parse';
import styles from './index.less';
export default class GroupComponent extends React.Component<{
elem:any,
sceneObjects:any,
OnNextStep,
finished:boolean
}>{
public render(){
const { elem , sceneObjects,OnNextStep,finished,...Component... |
import {Utils as _} from "../../utils";
import {Constants as constants, Constants} from "../../constants";
import {GridOptionsWrapper} from "../../gridOptionsWrapper";
import {ColumnController} from "../../columnController/columnController";
import {FilterManager} from "../../filter/filterManager";
import {RowNode} fro... |
import {HttpClient} from '@angular/common/http';
import {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {FormsModule} from '@angular/forms';
import {AppService, RequestHeader} from '../app.service';
import {JsonHighlighterService} from '../json-highlighter/json-highlighter.service';
impor... |
export const YES = 'yes'
export const NO = 'no'
export const MANUAL = 'manual'
export const SPOUSE = 'spouse'
export const FILE_SIZE_LIMIT = 10000000 // 10MB
export enum ParentalRelations {
primary = 'primary',
secondary = 'secondary',
}
export enum API_MODULE_ACTIONS {
assignOtherParent = 'assignOtherParent',... |
import { BikesWrapModule } from './bikes-wrap.module';
describe('BikesWrapModule', () => {
let bikesWrapModule: BikesWrapModule;
beforeEach(() => {
bikesWrapModule = new BikesWrapModule();
});
it('should create an instance', () => {
expect(bikesWrapModule).toBeTruthy();
});
}); |
// *** 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";
/**
* D... |
import { Controller, Get, Param, Post, Body, Delete, Query, Put, Res, HttpStatus, HttpException, UseFilters } from '@nestjs/common';
import { HttpExceptionFilter } from 'src/exceptions/http-exception.filters';
import { SearchParams } from 'src/validation/SearchParams';
import { UsersService } from './users.service';
im... |
import LRUCache from 'lru-cache';
import { FSWatcher } from 'chokidar';
import fs from 'fs';
import { promisify } from 'util';
import { RequestCancelledError } from '../utils';
const fsAccess = promisify(fs.access);
async function fileExists(filePath: string) {
try {
await fsAccess(filePath);
return true;
... |
import { makeHello } from 'shared/module';
print(makeHello('main.client.ts')); |
import { assign } from "xstate";
import { ITableMachineContext } from "../..";
const rowsTransformedByFilters = assign<ITableMachineContext>(
({ filters, ...rest }: ITableMachineContext, event: any) => {
let newRows = rest.rowsOG;
// iterate over filter functions
for (let f = 0; f < filters.length; f++)... |
import { createStyles, makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles(() =>
createStyles({
title: {
marginTop: '10px',
},
boxNoReserves: {
justifyContent: 'center',
fontSize: '2em',
display: 'flex',
flexDirection: 'column',
alignItems... |
import { RideDetailsComponent } from './ride-details/ride-details.component';
import { NotFoundComponent } from './not-found/not-found.component';
import { NgModule, Component } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { ... |
import { Flex, Text } from "palette"
import React from "react"
import { graphql, useFragment } from "react-relay"
import { HomeUser_me$key } from "__generated__/HomeUser_me.graphql"
interface HomeUserProps {
me: HomeUser_me$key
}
const HomeUserFragment = graphql`
fragment HomeUser_me on Me {
email
name
... |
import DeferredImage from './DeferredImage';
const GifList = (props: IGifList): JSX.Element => (
<div className="gif-list">
{props.gifs.map((gif) => (
<a
className="gif-link"
href={gif.images.original.url}
key={gif.id}
target="_blank"
rel="noopener noreferrer"
... |
import { IDatabaseSmugglerOptions } from "./IDatabaseSmugglerOptions";
// tslint:disable-next-line:no-empty-interface
export interface IDatabaseSmugglerImportOptions extends IDatabaseSmugglerOptions {
skipRevisionCreation: boolean;
} |
import React, {
FunctionComponent, useEffect, useCallback, useState,
} from 'react';
import keyImage from '@fpsak-frontend/assets/images/key-1-rotert.svg';
import keyUtgraetImage from '@fpsak-frontend/assets/images/key-1-rotert-utgraet.svg';
import { createIntl } from '@fpsak-frontend/utils';
import messages from '... |
import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import { Alert, AlertTitle } from '@material-ui/lab';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
width: '100%',
'& > * + *': {
marginTop: theme.spacing(2),
}... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FreezeRoleComponent } from './freeze-role.component';
describe('FreezeRoleComponent', () => {
let component: FreezeRoleComponent;
let fixture: ComponentFixture<FreezeRoleComponent>;
beforeEach(async () => {
await TestBed.configureT... |
import React, { useCallback, useState } from "react";
import cx from "classnames";
import { CodeStreamState } from "../store";
import { FormattedMessage } from "react-intl";
import Icon from "../Stream/Icon";
import Button from "../Stream/Button";
import { Link } from "../Stream/Link";
import {
goToNewUserEntry,
goTo... |
type Triple = [string, string, string]; // tuple type
type Rows = [Triple, Triple, Triple];
type Point = { x: number; y: number }
export class Game {
board: Rows = [['', '', ''], ['', '', ''], ['', '', '']];
plays: Point[] = [];
public static create(): Game {
return new Game();
}
dispose() {
this.... |
import './Array';
import './Math'; |
/**
* @fileOverview
* @author 凌恒 <jiakun.dujk@alibaba-inc.com>
* @copyright 2017 Alibaba Group.
*/
import { RunUtil } from '../../RunUtil';
import * as assert from 'assert';
import * as url from 'url';
import { HttpServerPatcher } from '../../../src/patch/HttpServer';
import { SLOW_TRACE } from 'pandora-metrics';
... |
import * as React from "react";
import * as PropTypes from "prop-types";
import MenuItem from "./MenuItem";
export { MenuItem };
export interface DataProps {
/**
* Set ReactNode to Menu item.
*/
children?: React.ReactNode[] | any;
/**
* Set Menu Item width.
*/
menuItemWidth?: number;
/**
* Se... |
import * as React from "react";
import { Grid, Typography} from "@material-ui/core";
import {getSourceType} from "../../data/utils";
import {ST} from "../../data/const";
import Clip from "../../data/Clip";
import Scene from "../../data/Scene";
import VideoControl from "../player/VideoControl";
export default class V... |
import React, { FunctionComponent } from 'react';
import ITimesheetSelectBoxProps from '../model/ITimesheetSelectBoxProps';
import Constants from '../constants';
const TimesheetSelectBox: FunctionComponent<ITimesheetSelectBoxProps> = (props) => {
const timesheetArray = CreateArray(Constants.TIME_ARRAY_COUNT, 0);
... |
import { createElement, useState } from 'react';
import { useAsyncEffect } from '../Main';
const testAsync = (): Promise<void> => new Promise((resolve) => setTimeout(resolve, 500));
export default function UseAsyncEffect() {
const [ data, setData ] = useState<number>(0);
useAsyncEffect(async (signal) => {
await... |
import { OdontologicalQuestionnaireEntityMapper } from '../../../src/infrastructure/entity/mapper/odontological.questionnaire.entity.mapper'
import { OdontologicalQuestionnaire } from '../../../src/application/domain/model/odontological.questionnaire'
import { DefaultEntityMock } from '../../mocks/models/default.entity... |
import { action } from "@storybook/addon-actions";
import { storiesOf } from "@storybook/react";
import * as React from "react";
import { withModalBody } from "../../../../utils/storybookHelpers.unsafe";
import { BankTransferVerifySuccessLayout } from "./BankTransferVerifySuccess";
const summaryData = {
goToWallet:... |
import { Component, OnInit } from '@angular/core';
import { HttpClient} from '@angular/common/http';
import { FormGroup, FormControl } from '@angular/forms';
import {ModalDismissReasons, NgbModal} from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-allergens',
templateUrl: './allergens.component.html',
... |
import { Component, Inject, ChangeDetectionStrategy } from '@angular/core';
import { Router } from '@angular/router';
import { SettingsService } from '@delon/theme';
import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth';
import { IdentityService } from '@shared/osharp/services/identity.service';
@Component({
... |
import { SuggestionGroupItem } from '../webComponents/SuggestionGroupItem';
import type { SuggestionGroupItemPropTypes } from '../webComponents/SuggestionGroupItem';
export { SuggestionGroupItem };
export type { SuggestionGroupItemPropTypes }; |
import { ClassRegistry } from "../registry";
import "reflect-metadata";
export const Key = "GraphClassMeta";
export interface GraphClassMeta {
name: string;
superClassName: string;
}
export function GraphItem(className: string, superClassName?: string): ClassDecorator {
return function(target: ObjectCon... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { shell } from 'electron';
import { Subject } from 'rxjs/internal/Subject';
import * as semver from 'semver';
import { Config } from 'src/app/config';
const appVersion = require('../../../package.json').v... |
const getConfig = (enableRedis: boolean) => ({
app: {
nodeEnv: "test",
port: "8123",
},
bas: {
url: "http://localhost:7890",
statusEndpoint: "status",
accessTokenEndpoint: "accessToken/get",
accessTokenRefreshEndpoint: "accessToken/get?refresh=true",
},
bnet: {
region: "us",
},
... |
import { createProxyObjectFromTemplate } from "./createProxyObjectFromTemplate"
interface TestInterface {
doSomething: (param: number) => void;
doAnother: (param: string) => string;
};
class TestClass implements TestInterface {
doSomething(param: number) { }
doAnother(param: string) { return param; }
};
test... |
import React, { ReactElement, ReactNode, useState, useEffect } from 'react';
import { Formik, FormikProps } from 'formik';
import { observer } from 'mobx-react-lite';
import { faGlobe } from '@fortawesome/free-solid-svg-icons';
import { useStyles } from 'lib/theme';
import { Modal } from 'ui/modal';
import { Tabs, Ta... |
import { GetServerSideProps, NextComponentType, NextPageContext } from "next";
import { List } from "components/book/List";
import { PagedCollection } from "types/Collection";
import { Book } from "types/Book";
import { fetch } from "utils/dataAccess";
import Head from "next/head";
import Pagination from "components/co... |
import * as React from 'react';
import { Component } from 'react';
import Availability from '../Availability';
export default class DTDuration extends Component<IOnMount> {
componentDidMount() {
this.props.onMount && this.props.onMount();
}
render() {
return (<article className="duration"... |
/**
* Fatture in Cloud API v2 - API Reference
* Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. For more ... |
import {MediaSegmentScoreContainer} from '../results/scores/segment-score-container.model';
import {MediaObjectScoreContainer} from '../results/scores/media-object-score-container.model';
export class TemporalObjectSegments {
constructor(public readonly object: MediaObjectScoreContainer, public segments: MediaSegme... |
import React from "react";
import { Card } from "react-bootstrap";
export const CardContainer = (props: any) => (
<Card>
<Card.Header>{props.header}</Card.Header>
<Card.Body>
<Card.Title className="d-flex justify-content-between">
{props.title}
<div className={"d-flex justify-content-ce... |
import { ViewEntity, ViewColumn } from "typeorm";
@ViewEntity({
expression: `
SELECT (v_parachain_data.event_data ->> 0) AS relayer_id,
v_parachain_data.block_number,
v_parachain_data.block_ts
FROM v_parachain_data
WHERE ((v_parachain_data.section = 'stakedRelayers'::text) AND (v_parach... |
import { Injectable, NotFoundException } from '@nestjs/common';
import { CreateMovieDto } from './dto/create-movie.dto';
import { UpdateMovieDto } from './dto/update-movie.dto';
import { Movie } from './entities/movie.entity';
@Injectable()
export class MoviesService {
private movies: Movie[] = [];
getAll(): Movi... |
/**
* @license
* Copyright 2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
import { Component,ViewEncapsulation } from '@angular/core';
import { NavController, reorderArray } from 'ionic-angular';
@Component({
templateUrl: 'page.html',
encapsulation: ViewEncapsulation.None
})
export class ApiDemoPage {
songs: any[];
editButton: string = 'Edit';
editing: boolean = false;
construc... |
/*
* 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
* distributed under... |
export * from './options';
export * from './query'; |
const { registerSuite } = intern.getInterface('object');
const { assert } = intern.getPlugin('chai');
import * as sinon from 'sinon';
import { tsx } from '@dojo/framework/core/vdom';
import focus from '@dojo/framework/core/middleware/focus';
import validity from '@dojo/framework/core/middleware/validity';
import asse... |
import React, { PureComponent, MouseEventHandler } from 'react'
import styled from 'styled-components'
import Overlay, { Props as OverlayProps } from './Overlay'
import { close as closeIcon } from 'src/common-ui/components/design-library/icons'
export interface Props extends Omit<OverlayProps, 'onClick'> {
ignore... |
import {
ActivityIndicator,
ImageSourcePropType,
ImageStyle,
TextStyle,
ViewStyle,
} from 'react-native';
import React, {FC, ReactNode, ReactNodeArray} from 'react';
import styled, {css} from 'styled-components/native';
import {FlattenSimpleInterpolation} from 'styled-components';
const shadow = css`
shad... |
export const easing: { [key: string]: Function } = {
linear: (t: number) => t,
inQuad: (t: number) => t * t,
outQuad: (t: number) => t * (2 - t ),
inOutQuad: (t: number) => t < .5 ? 2 * t * t : -1 + (4 - 2 * t) * t,
inCubic: (t: number) => t * t * t,
outCubic: (t: number) => (--t) * t * t + 1,
inOutCubic:... |
import {
Resolver,
Query,
Parent,
Args,
ResolveField,
ArgsType,
Field,
} from '@nestjs/graphql'
import { BlogPost } from './blog.schema'
import { BlogService } from './blog.service'
import { Comment } from './comments/comments.schema'
import { Feed, PageParams } from '../global-schema/pagination.schema'
i... |
import * as tf from '@tensorflow/tfjs-core';
import { ExtractWeightsFunction, ParamMapping, SeparableConvParams } from './types';
export function extractSeparableConvParamsFactory(
extractWeights: ExtractWeightsFunction,
paramMappings: ParamMapping[]
) {
return function(channelsIn: number, channelsOut: number,... |
/*!
* Copyright (c) 2021 EclipseSource 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, or the MIT License which is
* available at https://opensource.org/licenses/MIT.... |
import { Field, ID, InputType } from '@nestjs/graphql';
@InputType()
export class GetByIdFilesFinancedEquipmentInput {
@Field(() => ID, ) entity__Id: string;
} |
/*
* 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.
*/
jest.mock('ui/new_platform');
import { functionSpecs } from '../../__tests__/... |
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from '../auth/auth.module';
import { Area } from './areas/area.entity';
import { AreasController } from './areas/areas.controller';
import { AreasService } from './areas/areas.service';
import { Post } from ... |
import {
AfterInsert,
AfterRemove,
AfterUpdate,
Entity,
Column,
PrimaryGeneratedColumn,
} from 'typeorm';
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
email: string;
@Column()
password: string;
@AfterInsert()
logInsert() {
console.log('Inserted user w... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { VirdiStatisticsComponent } from './virdi-statistics.component';
describe('VirdiStatisticsComponent', () => {
let component: VirdiStatisticsComponent;
let fixture: ComponentFixture<VirdiStatisticsComponent>;
beforeEach(async(() =... |
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
// Used in the chat reducer
import * as I from 'immutable'
import * as Constants from '../constants/team-building'
import * as Types from '../constants/types/team-building'
import * as TeamBuildingGen from '../actions/team-building-gen'
import {trim} from 'lodash-es'
export default function(
namespace: string,
sta... |
import { INorm, SYSTEM } from "@thi.ng/random";
import { red } from "./red";
import { interleave } from "./utils";
/**
* Band-stop filtered noise (interleaved red noise). Opposite of {@link green}.
*
* @param n
* @param scale
* @param rnd
*/
export const violet = (n = 2, scale = 1, rnd: INorm = SYSTEM) =>
in... |
import { Injectable } from '@angular/core';
import { Subject, Observable, Subscription } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class SummuryDataService {
constructor() { }
public diskTableData: any = [];
public ioTableData: any = [];
public ioColumns: any = [];
public ioOriginData: any;
... |
/* eslint-disable prettier/prettier */
import {
BadRequestException,
HttpStatus,
Injectable,
NotFoundException,
UnauthorizedException,
} from '@nestjs/common';
import { ClientUserRole } from 'src/client/entities/client_user-roles.entity';
import { StoreUserRole } from 'src/store/entities/store_user_roles.en... |
// @ts-ignore
/* eslint-disable */
// @ts-ignore
import * as Params from "./params";
// @ts-ignore
// @ts-ignore
import * as Responses from "./responses";
// @ts-ignore
// @ts-ignore
/**
// @ts-ignore
* The API account group
// @ts-ignore
*/
// @ts-ignore
export interface APIAccount {
// @ts-ignore
ban(params: ... |
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core'
@Component({
selector: 'pm-dashboard-page-header',
templateUrl: './dashboard-page-header.component.html',
styleUrls: ['./dashboard-page-header.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
exp... |
export const generalError = {
type: "object",
properties: {
isSuccess: { type: "boolean", default: false },
error: {
type: "string",
nullable: true,
}
}
};
export const generalErrors = {
400: {
description: "Bad request response",
...generalError
},
401: {
description: "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.