text stringlengths 10 953k |
|---|
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { AlertQuery } from '../../../shared/alert/state/alert.query';
import { AlertService } from '../../../shared/alert/state/alert.service';
import { TokenSource } from '../../../shared/enum/token-source.enum';
import { TokenQuery ... |
import { Request, Response } from "express";
import { FileExtensions } from "../types";
import { getStoragePath, writeFile } from "../helpers/filesystem";
import { buildInitialMarkdown } from "../util/build";
import logger from "../util/logger";
type NewRequestBody = {
username: string;
name: string;
snipp... |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { boolean, select, text } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import { Switch } from './index';
storiesOf('UI5 Web Components | Switch', module).add('Generated default story', () => (
<Switch... |
export * from './src/app/schedule/schedule.module';
export * from './src/app/schedule/schedule.metadata'; |
import { keccak256 } from 'js-sha3'
import { BeeArgumentError } from '../utils/error'
import { Bytes } from '../utils/bytes'
import { keccak256Hash } from '../utils/hash'
const MAX_CHUNK_PAYLOAD_SIZE = 4096
const SEGMENT_SIZE = 32
const SEGMENT_PAIR_SIZE = 2 * SEGMENT_SIZE
const HASH_SIZE = 32
/**
* Calculate a Bina... |
import * as React from 'react'
function SvgStarFavorite(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
data-name='Layer 3'
xmlns='http://www.w3.org/2000/svg'
viewBox='0 0 24 24'
width='1em'
height='1em'
{...props}
>
<path d='M0 0h24v24H0z' fill='none' />
... |
import isPalindrome from '.';
describe('isPalindrome', () => {
it('should check if string is palindrome', () => {
expect.assertions(8);
expect(isPalindrome('a')).toBe(true);
expect(isPalindrome('aba')).toBe(true);
expect(isPalindrome('Abba')).toBe(true);
expect(isPalindrome('hello')).toBe(false)... |
import axios from "axios";
export const movieDB = axios.create({
baseURL: process.env.REACT_APP_BASE_URL,
});
export const apiKey = process.env.REACT_APP_KEY; |
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
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 agre... |
import React from "react";
import DeviceInfo from "react-native-device-info";
import LinearGradient from "react-native-linear-gradient";
import { act } from "react-test-renderer";
import { CardModal } from "..";
import {
Context,
testRender
} from "../../../commons/Utils/TestMocks/test-render";
import { SummaryList... |
import swal, { SweetAlert } from "./core";
declare global {
const swal: SweetAlert;
const sweetAlert: SweetAlert;
}
export default swal;
export as namespace swal; |
// Type definitions for react-native-camera 1.0
// Definitions by: Felipe Constantino <https://github.com/fconstant>
// Trent Jones <https://github.com/FizzBuzz791>
// If you modify this file, put your GitHub info here as well (for easy contacting purposes)
/*
* Author notes:
* I've tried to find a e... |
import {
Entity,
Column,
PrimaryGeneratedColumn,
CreateDateColumn,
} from 'typeorm';
@Entity('logs')
class User {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column()
type: boolean;
@Column()
user_id: string;
@CreateDateColumn()
created_at: Date;
}
export default User; |
import {Component, OnInit} from '@angular/core';
import {ExpensesService} from "../services/expenses.service";
import {ReportModel} from "../models/report.model";
import Swal from "sweetalert2";
import {MonthNamePipe} from "../util/month-name.pipe";
import {AuthService} from "../services/auth.service";
import {RevenueS... |
import { module, test } from 'qunit';
import { visit, settled } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';
import { setupConfigCat, TestContext } from 'ember-config-cat/test-support';
module('Acceptance | helper', function (hooks) {
setupApplicationTest(hooks);
setupConfigCat(h... |
/* tslint:disable */
/* eslint-disable */
/**
* Vulcan API
* Public API for Vulcan Vulnerability Scan Engine
*
* The version of the OpenAPI document:
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manual... |
import { Component, OnInit, Input } from '@angular/core';
import { Helper } from '../common/helper'
import { EventStatus } from '../common/constants';
import { Router } from '@angular/router';
import { UserService } from '../security/user.service';
import { Data } from './data.model';
import { Widget } from '../comm... |
GOCAD TSurf 1
HEADER {
name: OCBA-CBFZ-SCBF-Coronado_Bank_fault_south-CFM5_1000m
visible: true
*solid*color: 0.345098 0.678431 0.647059 1
name_in_model_list: OCBA-CBFZ-SCBF-Coronado_Bank_fault_south-CFM5
}
GOCAD_ORIGINAL_COORDINATE_SYSTEM
NAME " gocad Local"
PROJECTION Unknown
DATUM Unknown
AXIS_NAME X Y Z
AXIS_UNIT ... |
// smithy-typescript generated code
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerEx... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
import path from 'path'
import fs from 'fs'
import util from 'util'
import { ExecOptions, exec, execFile, spawn } from 'child_process'
import { workspace } from 'coc.nvim'
import which from 'which'
import { configDir } from './config'
const runExec = util.promisify(exec)
const isWin = process.platform === 'win32'
//... |
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {TranslateModule, TranslateService} from "@ngx-translate/core";
import {JigsawModule} from '@r... |
// The MIT License (MIT)
//
// Copyright (c) 2017 Firebase
//
// 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, ... |
import * as React from 'react';
import { Fields, Operator, isStringOperators, isNumberOperators, isDateOperators, isBooleanOperators, Filter } from './model';
import { OperatorStringSelectProps, OperatorStringSelectProvidedProps } from './operator-components/string/operator-string-select';
import { OperatorNumberSelect... |
/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Sebastian Stehle. All rights reserved
*/
import { Component } from '@angular/core';
import {
AppComponentBase,
AppsStoreService,
AuthService,
DialogService
} from 'shared';
@Component({
selector: 'sqx-settings-area',
styleUrls: ['./s... |
import { Injector } from '@angular/core';
import { NgxsPlugin, NgxsNextPluginFn } from '@ngxs/store';
import { NgxsDevtoolsOptions, NgxsDevtoolsAction } from './symbols';
/**
* Adds support for the Redux Devtools extension:
* http://extension.remotedev.io/
*/
export declare class NgxsReduxDevtoolsPlugin implements N... |
/** @format */
import React, { Component } from 'react';
import SnackBarNotifier, { SnackBarEvent } from '../../util/snackbar-notifier';
import { UnregisterHandler } from '../../util/eventemitter';
import './snackbar.scss';
export default class SnackBar extends Component {
public state = {
event: (null as any)... |
import React, {Component, Fragment} from 'react';
import classNames from 'classnames';
import {I18n} from '../I18n';
import {NotificationBadge} from '../Badge';
import {Button} from "../Button";
export class FilterButton extends Component<{
children?: any,
className?: any,
onClick?: () => any,
/**
... |
import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { LandingComponent } from './landing.component';
describe('LandingComponent', () => {
let component: LandingComponent;
let fixture: ComponentFixture<LandingComponent>;
beforeEach(
waitForAsync(() => {
... |
/// <reference path="fourslash.ts"/>
//// declare class myString {
//// charAt(pos: number): string;
//// }
////
//// function bar(a: myString) {
//// var x: any = a./**/
//// }
goTo.marker();
verify.completionListContains("charAt");
verify.completionListCount(1); |
import {
Body,
Controller,
Delete,
Get,
HttpCode,
HttpStatus,
Param,
Post,
Query,
UseGuards,
} from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
import {
ApiBadRequestResponse,
ApiBearerAuth,
ApiBody,
ApiCreatedResponse,
ApiHeader,
ApiNoContentResponse,
ApiNotFoundRe... |
import Distance from "../distance/distance";
export default class CostCalculationDto {
public distance: Distance;
public legsCount: number;
} |
import '../../styles/markdown.css';
import { css, CSS } from '../../common';
const styles = {};
/**
* Insert global styles.
*/
css.global(styles, { prefix: `.${CSS.CLASS.MARKDOWN}.${CSS.CLASS.COMMENT}` }); |
import * as React from 'react';
export interface ITableCollapsibleRowWrapperProps {
children?: React.ReactNode;
className?: string;
}
export const TableCollapsibleRowWrapper = (props?: ITableCollapsibleRowWrapperProps): JSX.Element =>
<tbody className={props.className}>
{props.children}
</tbod... |
import { get, isString, mergeWith } from 'lodash';
import babel from '@rollup/plugin-babel';
import camelcase from 'camelcase';
import commonjs from '@rollup/plugin-commonjs';
import html from 'rollup-plugin-html';
import image from '@rollup/plugin-image';
import json from '@rollup/plugin-json';
import lessInject from ... |
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const DataflowsIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" className={classes.svg}>
<path d="M1280 0h640v640h-256v512H512v256h256v640H128v-640h256V640H128V0... |
import { RollupContext } from "./rollupcontext";
import { ConsoleContext, VerbosityLevel } from "./context";
import { LanguageServiceHost } from "./host";
import { TsCache, convertDiagnostic, convertEmitOutput, getAllReferences } from "./tscache";
import { tsModule, setTypescriptModule } from "./tsproxy";
import * as t... |
// Generated by dts-bundle-generator v5.9.0
import dayjs from 'dayjs';
export declare class TsGanttTask {
readonly uuid: string;
readonly parentUuid: string;
readonly externalId: string;
readonly parentExternalId: string;
readonly nestingLvl: number;
readonly hasChildren: boolean;
readonly name: string;
reado... |
import { ConstRecord } from '../../../types/const';
import Token from '../../../types/token';
const MOVR = {
name: 'Wrapped MOVR',
address: '0x98878B06940aE243284CA214f92Bb71a2b032B8A',
symbol: 'WMOVR',
decimals: 18,
chainId: 1285,
website: 'https://moonbeam.network/networks/moonriver/',
description:
... |
import {
LitElement, css, customElement, html, property
} from 'lit-element';
import '@polymer/paper-input/paper-input';
import '@polymer/paper-icon-button/paper-icon-button';
import type { Language, Resources } from '../localize';
import Localize from '../localize';
import { ironFlexLayoutAlignTheme, ironFlexLayout... |
import Jazzicon from '@metamask/jazzicon'
import { useEthers } from '@usedapp/core'
import React, { useEffect, useRef } from 'react'
export interface AccountIconProps {
account?: string
}
export function AccountIcon({ account }: AccountIconProps) {
const size = 20
const borderRadius = '50%'
const { account... |
import React from 'react';
type Props = {
onClick: () => void;
};
export const TEST_ID = 'test';
export const Button: React.FC<Props> = ({ onClick, children }) => {
return (
<button type='button' onClick={onClick} data-testid={TEST_ID}>
{children}
</button>
);
}; |
import {isObject} from './is-object';
export const distinctUntilChangedObject = (a, b): boolean => {
if ((isObject(a) && isObject(b)) || (Array.isArray(a) && Array.isArray(b))) {
return (JSON.stringify(a) === JSON.stringify(b));
} else {
return a === b;
}
}; |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Contract, ContractTransaction } from "ethers";
import type { providers } from "ethers";
import { assert } from "chai";
import { ethers } from "hardhat";
import cbor from "cbor";
/**
* Convert string to hex bytes
* @param data string to onvert to hex bytes
*/
export function stringToBytes(data: string): str... |
import { FormMode } from '@/models/Enums';
import { Helper } from '@/utils/helper';
import { IFormField } from './IForm';
export default class FormFieldHelper {
public static createEmptyField(fieldType: string): IFormField {
const fieldTemplate = {} as IFormField;
fieldTemplate.type = fieldType;
fieldTe... |
import React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'
// @ts-ignore
import { Callout } from '../ui/Callout.tsx'
export default {
title: 'UI/Callout',
component: Callout,
} as ComponentMeta<typeof Callout>
const Template: ComponentStory<typeof Callout> = (args) => <Callout {..... |
function testConstructor() {
interface MyModel {
numericProperty: number;
}
let db = new PouchDB<MyModel>(null, {
adapter: 'leveldb',
});
db = new PouchDB<MyModel>('myDb', {
adapter: 'leveldb',
});
} |
/**
* Class representing a component of the entity
*/
interface IComponent {
name: string
}
export default IComponent |
class Wound {
// TODO: where, type, number, description, modifier (leg, pierced, 10, 'shot', speed-10)
}
export default Wound |
import React from 'react';
import { Link as RouterLink, LinkProps as RouterLinkProps } from 'react-router-dom';
import classNames from 'classnames';
import { Icon, IconNames, IconProps } from 'components/icon';
import { useWeb3 } from 'components/providers/web3Provider';
import s from './s.module.scss';
interface Bu... |
import { defineComponent, inject } from 'vue';
import PropTypes from '../_util/vue-types';
import { getComponent } from '../_util/props-util';
import { defaultConfigProvider } from '../config-provider';
export default defineComponent({
name: 'ACardMeta',
props: {
prefixCls: PropTypes.string,
title: PropTyp... |
/** @module assemblyscript/expressions */ /** */
import * as ts from "../typescript";
import { Expression } from "binaryen";
import { Compiler } from "../compiler";
import { compileNewArray } from "./helpers/array";
import { Type, Class } from "../reflection";
import { setReflectedType } from "../util";
/** Compiles ... |
import { Injectable, BadRequestException } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import {
IPagination,
IProductCategoryTranslatable,
IProductCategoryTranslated,
LanguagesEnum
} from '@gauzy/contracts';
import { TenantAwareCrudService } from ... |
// Type definitions for xsalsa20 1.1
// Project: https://github.com/mafintosh/xsalsa20
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
export = XSalsa20;
declare const XSalsa20: XSalsa20.XSalsa20;
d... |
import { writable, Writable } from 'svelte/store';
import type { Updater } from 'svelte/store';
import type { FVTTGame } from './game';
import {
Mood,
Soundset,
Playlist,
Elements,
Soundsets,
ElementsTabs,
SoundsetElementsTab
} from '@/models';
import { ElementsApplication } from '@/ui/elements';
import { inject... |
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ElectronService } from '../core/services';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {
const... |
<TS language="id_ID" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Klik-kanan untuk mengubah alamat atau label</translation>
</message>
<message>
<source>Create a new address</source>
<tr... |
import { FilterParams } from 'pip-services3-commons-node';
import { PagingParams } from 'pip-services3-commons-node';
import { DataPage } from 'pip-services3-commons-node';
import { DirectClient } from 'pip-services3-rpc-node';
import { IShiftsClientV1 } from './IShiftsClientV1';
import { ShiftV1 } from './ShiftV1';
ex... |
import { Document, Model, model, Schema } from 'mongoose';
import { Session } from '../../../domain/torrent/Entities';
import { startProfiler } from '../../../infrastructure/logging';
interface SessionModel extends Session, Document {
}
const TorrentSchema = new Schema({
id: Number,
url: String,
title: St... |
import config from 'config'
import { apiStatus } from '../lib/util'
import cache from '../lib/cache-instance'
import request from 'request'
function invalidateCache (req, res) {
if (config.get('server.useOutputCache')) {
if (!req.query.key || req.query.key !== config.get('server.invalidateCacheKey')) {
con... |
/**
* @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
*/
import {FocusableOption} from '@angular/cdk/a11y';
import {coerceBooleanProperty} from '@angular/cdk/coercion';
impor... |
/*
* @Author: kubrick
* @LastEditors : Please set LastEditors
* @Description: 示例模块的路由
* @email:
* @Date: 2021-03-21 15:57:43
* @LastEditTime : 2020-03-02 09:56:55
*/
import { Routes } from '@angular/router';
export const Routers: Routes = [
{
path: '', // AntDesign
// tslint:disable-next-line:obje... |
export const removeElementObject = (
originalObject: object,
keyNames: string[],
) => {
const elementsRecuded: any = {};
const objectReduced: any = {};
Object.keys(originalObject).forEach(value => {
if (keyNames.indexOf(value) === -1) {
objectReduced[value] = originalObject[value];
} else {
... |
export * from './cxapi';
export * from './context/hosted-zone';
export * from './context/vpc';
export * from './context/ssm-parameter';
export * from './context/availability-zones';
export * from './cloud-artifact';
export * from './cloudformation-artifact';
export * from './cloud-assembly';
export * from './assets';
e... |
import camelizeKeys, { camelize } from '../../src/tools/camelizeKeys'
type Camelize = {
fooBar: string
fooBarBaz: string
foo: string
fooBarBaz4: Record<string, unknown>
}
describe('camelize', () => {
it('should works', () => {
expect(camelize('foo_bar')).toBe('fooBar')
expect(camelize('foo-bar')).to... |
// Copyright 2021 The Oppia Authors. All Rights Reserved.
//
// 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 ap... |
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ADMIN_LAYOUT_ROUTES } from './admin-layout.routes';
import { DashboardComponent } from '../../dashboard/dashboard.component';
i... |
import type {RouteLocationRaw} from 'vue-router'
import type {LinkTarget} from 'src/types'
// Props
export interface Props {
active?: boolean
activeClass?: string
append?: boolean
disabled?: boolean
event?: string | Array
exact?: boolean
exactActiveClass?: string
href: string
// noPrefetch?: boolean
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
import * as debugModule from "debug";
import * as uuid from "uuid/v4";
import {
messageProperties, Sender, EventContext, OnAmqpEvent, SenderOptions, Delivery, S... |
import type { Mixin } from '@tpluscode/rdfine/lib/ResourceFactory';
import { MedicalTestMixin } from '../lib/MedicalTest';
import { BloodTestMixin } from '../lib/BloodTest';
export const BloodTestBundle = [
MedicalTestMixin as Mixin,
BloodTestMixin as Mixin]; |
import { expect } from 'chai';
import ytdl from '../src/index';
import VideoData from '../src/videoData';
async function checkInstance() {
const video = await ytdl('https://www.youtube.com/watch?v=fJ9rUzIMcZQ');
return video.info instanceof VideoData;
}
async function checkData() {
const video = await ytd... |
import { SkpJsonCommandList } from '../debugger';
export const testData: SkpJsonCommandList = {
commands: [
{ // 0
command: 'Save',
shortDesc: 'the trees',
auditTrail: { Ops: [] },
},
{ // 1
command: 'DrawAnnotation',
key: 'What kind of SKP is this anyways',
auditTrail... |
import React from 'react'
import { ScrollView, View, StatusBar } from 'react-native'
import { Text } from '@ui-kitten/components'
import { useTranslation } from 'react-i18next'
import beapi from '@berty-tech/api'
import { ScreenProps, useNavigation } from '@berty-tech/navigation'
import { useContact, useConversation }... |
import * as React from 'react';
import { Status } from '@console/shared';
import { TableRow, TableData } from '@console/internal/components/factory';
import { Kebab, ResourceLink, Timestamp, ResourceKebab } from '@console/internal/components/utils';
import { referenceForModel } from '@console/internal/module/k8s';
impo... |
import { List as _List_ } from "@aws-sdk/types";
import { _UpgradeTarget } from "./_UpgradeTarget";
export const _ValidUpgradeTargetList: _List_ = {
type: "list",
member: {
shape: _UpgradeTarget,
locationName: "UpgradeTarget"
}
}; |
import { ErrorRequestHandler } from 'express';
import { ValidationError } from 'yup';
interface IValidationErrors {
[key: string]: string[];
}
const errorHandler: ErrorRequestHandler = (error, request, response, next) => {
if (error instanceof ValidationError) {
const errors: IValidationErrors = {};
erro... |
export * from "./DescribeAutoScalingGroupsPaginator";
export * from "./DescribeAutoScalingInstancesPaginator";
export * from "./DescribeLaunchConfigurationsPaginator";
export * from "./DescribeNotificationConfigurationsPaginator";
export * from "./DescribePoliciesPaginator";
export * from "./DescribeScalingActivitiesPa... |
import { Point } from "../Models/Point";
import { ITuckmanUserChoiceState } from "../Tuckman/Model";
export interface ITuckmanUserChoice {
TotalCount: number;
Index : number;
Distance : number;
MaxWidth : number;
MaxHeight : number;
}
export interface IUserChoiceState {
Choices? : Array<IT... |
/*
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* i... |
import { EventData, Page } from "tns-core-modules/ui/page/page";
import * as Kinvey from 'kinvey-nativescript-sdk';
import { getFrameById, NavigationEntry } from "tns-core-modules/ui/frame/frame";
export function onLoaded() {
console.log('CHORES loaded');
}
export function logout() {
Kinvey.User.getActiveUser().l... |
/**
* Copyright (c) 2019 Jonathan Andersen
* Copyright (c) 2019 William R. Sullivan
*
* This software is proprietary and owned by Jonathan Andersen.
*
* This software was based on https://github.com/wrsulliv/NodeStarter,
* licensed under the MIT license.
*/
import { ElasticRepo } from '../elastic-crud';
import... |
type MaybeESM = {
__esModule?: boolean
default: any
}
export default (mod: MaybeESM) => (mod && mod.__esModule ? mod.default : mod) |
/* 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 { APP_BASE_HREF } from '@angular/common';
import { NgbCollapseModule } from '@ng-bootstrap/ng-bootstrap';... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About pokemoncoin</source>
<translation>Sobre pokemoncoin</translation>... |
import merge from 'lodash/merge';
import * as generated from './generated_knownIds';
import * as manual from './manual_knownIds';
export const knownFourByteBank0ObjectIds = merge(
generated.knownFourByteBank0ObjectIds,
manual.knownFourByteBank0ObjectIds
);
export const knownFourByteBank1ObjectIds = merge(
generate... |
import * as React from 'react';
import { TextCanvas } from '../common/canvas';
import { LandscapeScreenOrientation } from '../helpers/screen-orientation';
export interface WriteWordProps {
text: string;
showFeedback: boolean;
state: boolean;
setState: (state: boolean) => void;
}
export const WriteWord = ({ t... |
import { forwardRef, Inject, Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import { UserService } from '../user/user.service';
import {
ExamSale,
ExamSaleDocument,
ExamSaleStatus,
} from './sche... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
import RNSError from '../src/errors';
import { Lang } from '../src/types/enums';
export const PUBLIC_NODE_MAINNET = 'https://public-node.rsk.co';
export const PUBLIC_NODE_TESTNET = 'https://public-node.testnet.rsk.co';
const asyncTryCatchAssert = async (prom: any, assertion: (error: any) => void) => {
let error;
... |
import { languages } from 'countries-list';
import { Language } from './index.d';
export default function(langCode: string): Language {
// @ts-ignore
const { name, native, rtl } = languages[langCode];
return {
code: langCode,
name,
native,
rtl
};
} |
export class RowData {
constructor(
public row: any,
public index: number,
public event: MouseEvent
) { }
} |
import { expect } from "chai";
import "mocha";
import { Crtsh } from "../../src/lib/searcher";
describe("Crtsh", () => {
const subject = new Crtsh();
it("should support Domain type IOC", () => {
expect(subject.supportedTypes).to.deep.equal(["domain"]);
});
describe("#searchByDomain", () => {
it("shou... |
import Button, { BtnTypes } from '@celo/react-components/components/Button'
import KeyboardAwareScrollView from '@celo/react-components/components/KeyboardAwareScrollView'
import KeyboardSpacer from '@celo/react-components/components/KeyboardSpacer'
import LoadingLabel from '@celo/react-components/components/LoadingLab... |
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {AppSwitcherLinksComponent} from './app-switcher-links.component';
import {APP_SWITCHER_SERVICE, MockAppSwitcherService} from '../app-switcher-interfaces';
import {IconModule} from '../../icon/icon.module';
describe('AppSwitcherApplication... |
export {default as Backdrop} from "./Backdrop.svelte"; |
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 { render, waitFor } from '@testing-library/react'
import { atom, useAtom } from 'jotai'
import { getTestProvider } from './testUtils'
const Provider = getTestProvider(true)
it('uses initial values from provider', async () => {
const countAtom = atom(1)
const petAtom = atom('cat')
const Display = () => {... |
declare const _default: {
am: string;
pm: string;
x: string;
X: string;
c: string;
months: string[];
months_abbr: string[];
days: string[];
days_abbr: string[];
};
export default _default; |
import UserManagement from "@/api/UserManagement";
import CourseManagement from "@/api/CourseManagement";
import AuthenticationManagement from "@/api/AuthenticationManagement";
import MatriculationManagement from "@/api/MatriculationManagement";
import CertificateManagement from "@/api/CertificateManagement";
import Ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.