text stringlengths 10 953k |
|---|
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const PeriscopeDimensions: {
height: number;
width: number;
}; |
export interface IOutcome {
delivery_date: string;
shipments: [IShipment];
}
export interface IShipment {
suplier: string;
delivery_date: string;
items: [{
title: string;
count: number;
}];
} |
/**
* projects
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.14
*
*
* 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... |
/// <reference types="mithril" />
import * as Mithril from "mithril";
export function when(
cond: boolean,
then: () => Mithril.Children,
orElse: () => Mithril.Children
): Mithril.Vnode<any, any>;
export function cond(
...cases: Array<{if: unknown, then: () => Mithril.Children}>
): Mithril.Vnode<any, a... |
/**
* typescript definition
* @author wallel
*/
declare module "react-native-root-tips" {
import * as React from 'react';
import * as ReactNative from "react-native";
import {TextStyle, StyleProp, ViewStyle, ImageStyle} from "react-native";
export interface ToastOptions {
containerStyle?: St... |
/*
* 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 { Alert } from '../../../alerts/common';
import { AlertParamType, Aler... |
import { INodeConfiguration } from "./INodeConfiguration";
export interface IConfiguration {
/**
* The api endpoint for the utils.
*/
apiEndpoint: string;
/**
* The mainnet nodes to load balance.
*/
nodesMainnet: INodeConfiguration[];
/**
* The devnet nodes to load balanc... |
// *** 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 * as inputs from "../../types/input";
import * as outputs from "../../types/output";
import * as utilities from "..... |
import { ElementRef, HostListener, Directive, AfterContentChecked } from '@angular/core';
@Directive({
selector: 'textarea[autosize]'
})
export class AutosizeDirective implements AfterContentChecked {
constructor(public element: ElementRef) { }
ngAfterContentChecked(): void {
this.adjust();
}
@HostL... |
import { HttpModule, Module } from '@nestjs/common';
import { PollutionService } from './pollution.service';
import { PollutionController } from './pollution.controller';
@Module({
imports: [
HttpModule.register({
timeout: 5000,
maxRedirects: 5,
}),
],
controllers: [PollutionController],
pr... |
import { StacksMainnet, StacksNetwork, StacksTestnet } from 'micro-stacks/network';
import { PersistedDataKeys } from 'micro-stacks/connect';
import { atom } from 'jotai';
import { ChainID } from 'micro-stacks/common';
import { atomWithStorageBroadcastChannel } from '../common/storage-with-broadcast-channel';
functio... |
// Code generated by protoc-gen-dts. DO NOT EDIT.
// source: depscloud_api/v1alpha/tracker/tracker.proto
import {
ChannelCredentials,
Client,
ClientUnaryCall,
ClientReadableStream,
ClientWritableStream,
ClientDuplexStream,
Metadata,
ServerUnaryCall,
ServerReadableStream,
ServerWritableStream,
S... |
import React from 'react'
import { element } from 'base/base'
import Menu from '../Menu'
import Icon from 'base/Icon'
const Wrapper = element
.attrs({
contentAlignY: 'top',
})
.theme({
position: 'fixed',
bgColor: '#955258',
paddingX: { xs: 32, sm: 48 },
paddingY: { xs: 40, sm: 48 },
zInde... |
import { Action } from 'redux';
import * as ActionTypes from '../../formDesignerActionTypes';
export interface IDeleteComponentAction extends Action {
id: string;
}
export interface IDeleteComponentActionFulfilled extends Action {
id: string;
containerId: string;
}
export interface IDeleteComponentActionReject... |
/**
* @description src entry
* @author wangfupeng
*/
import module from './module/index'
export * from './module/custom-types'
export * from './module/interface'
export default module |
<TS language="uk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Клікніть правою кнопкою для редагування адреси або мітки</translation>
</message>
<message>
<source>Create a new address</source>
... |
import {
ExecutionContext,
Injectable,
UnauthorizedException,
} from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { AuthGuard } from '@nestjs/passport';
import { IS_PUBLIC_KEY } from '../decorators/public.decorator';
@Injectable()
export class JwtAuthGuard extends AuthGuard('jwt') {
const... |
import { Router } from "express";
import {
getTasks,
createTask,
getTask,
deleteTask,
updateTask,
count,
} from "../controlllers/task.controllers";
const router = Router();
/**
* @swagger
* components:
* schemas:
* Task:
* type: object
* properties:
* id:
* type: string... |
import { useRouter } from 'next/router'
import React from 'react'
import NewForm from 'src/components/Post/NewForm'
import { useTranslate } from 'src/hooks/useTranslate'
const BookIdUpdate = () => {
const router = useRouter()
const translate = useTranslate()
return (
<>
<section className='flex flex-c... |
import React from 'react';
import New from 'components/Schemas/New/New';
import { render } from 'lib/testHelpers';
import { clusterSchemaNewPath } from 'lib/paths';
import { Route } from 'react-router';
import { screen } from '@testing-library/dom';
const clusterName = 'local';
describe('New Component', () => {
bef... |
import { Directive, InjectionToken } from '@angular/core';
import {
ComponentContainer
} from "golden-layout";
@Directive()
export abstract class BaseComponentDirective {
}
export namespace BaseComponentDirective {
const GoldenLayoutContainerTokenName = 'GoldenLayoutContainer';
export const GoldenLayou... |
import { Kind, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
declare global {
interface BigInt {
toJSON(): string;
}
}
function patchBigInt() {
if (!BigInt.prototype.toJSON) {
BigInt.prototype.toJSON =
BigInt.prototype.toJSON ||
function (this: bigint) {
return this.to... |
import { appendFileSync, existsSync, mkdirSync } from "fs";
import { Enver } from "../src/index";
import type { EnverConfig } from "../src/index";
import { config as loadEnv } from "dotenv";
const validEnverConfig: EnverConfig = {
configEntries: [
{
default: "info",
description: "Th... |
import apiFetch from './helpers/apiFetch';
import { CAL_BASE_URL } from '../config';
/**
* Fetch all coins from CoinMarketCal
*/
const fetchCoinList = () =>
apiFetch(`${CAL_BASE_URL}/coins`).then(({ body }) => body);
export default fetchCoinList; |
import * as React from 'react';
function SvgLooksOne(props: React.SVGProps<SVGSVGElement>) {
return (
<svg width="1em" height="1em" viewBox="0 0 24 24" {...props}>
<path d="M0 0h24v24H0z" fill="none" />
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-... |
import { NodeHttpOptions as __HttpOptions__ } from "@aws-sdk/types";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Contains the inputs for the <a>DeleteHsm</a> operation.</p>
*/
export interface DeleteHsmInput {
/**
* <p>The ARN of the HSM to delete.</p>
*/
HsmArn: string;
/**
* The max... |
import * as React from 'react';
import { AccordionHeaderContextValue } from './AccordionHeader.types';
export const AccordionHeaderContext = React.createContext<AccordionHeaderContextValue>({
open: false,
size: 'medium',
expandIconPosition: 'start',
});
export const useAccordionHeaderContext = () => React.useCo... |
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
/**
* <p>Session keys for ABP v1.1</p>
*/
export interface SessionKeysAbpV1_0_x {
/**
* <p>The NwkSKey value.</p>
*/
NwkSKey?: string;
/**
... |
import React, { useCallback } from 'react';
import { render, screen } from '@testing-library/react';
import { useInView } from '../useInView';
import {
intersectionMockInstance,
mockAllIsIntersecting,
mockIsIntersecting,
} from '../test-utils';
import { IntersectionOptions, defaultFallbackInView } from '../index'... |
import { Component, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
import { Subject } from 'rxjs';
import * as $ from 'jquery';
import 'datatables.net';
import 'datatables.net-bs4';
import {
UserService,
UserAdminService,
TransactionService
} from '../../../shared/services';
import { UserModel, Tra... |
import { Test, TestingModule } from '@nestjs/testing';
import { BloomV2Controller } from './bloom-v2.controller';
import { BloomV2Service } from './bloom-v2.service';
describe('BloomV2Controller', () => {
let controller: BloomV2Controller;
beforeEach(async () => {
const module: TestingModule = await Test.crea... |
import { IResizeState, ISize, IPoint, IOptions } from './ngresizable.store';
export const resizeRight = (nextWidth: number, options: IOptions, currentElementPosition: IPoint) => {
if (nextWidth <= options.minSize.width)
nextWidth = options.minSize.width;
if (nextWidth >= options.maxSize.width)
nextWidth = ... |
import * as React from 'react';
import { StyledIconProps } from '../../StyledIconBase';
export declare const SpeedMiniDimensions: {
height: number;
width: number;
}; |
import React, { useState, useEffect } from "react";
import { OrgComponent } from "@ui_types";
import { Api, Model } from "@core/types";
import * as g from "@core/lib/graph";
import * as styles from "@styles";
import { SmallLoader } from "@images";
import { Link } from "react-router-dom";
import { logAndAlertError } fro... |
import { animate, style, transition, trigger } from '@angular/animations';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, OnChanges, ViewEncapsulation } from '@angular/core';
import { NzUpdateHostClassService } from '../core/services/update-host-class.service';
import { ShowUploadL... |
import {Component, Input} from '@angular/core';
@Component({
selector: 'app-view-type-toggle',
templateUrl: './view-type-toggle.component.html',
styleUrls: ['./view-type-toggle.component.scss']
})
export class ViewTypeToggleComponent {
@Input() viewTypeList: boolean = false;
@Input() headline?: string;
} |
import {Component, Inject, OnInit} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material';
import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms';
@Component({
selector: 'app-code-confirmation-dialog',
templateUrl: './code-confirmation.dialog.html',
styleUrl... |
import React, { FunctionComponent, useEffect } from 'react';
import tocbot from 'tocbot';
import styled from 'styled-components';
import theme from '../../styles/theme';
interface TocProps {
/**
* Callback triggered whenever the TOC is clicked. Used for
* hiding the mobile toc overlay when clicking on a link.
... |
import { propertyIsDefined } from '@sourcegraph/codeintellify/lib/helpers'
import { from, merge, Observable, of, Subject, zip } from 'rxjs'
import { catchError, filter, map, mergeMap } from 'rxjs/operators'
import { fetchBlobContentLines } from '../../shared/repo/backend'
import { CodeHost, FileInfo, ResolvedCodeView ... |
import React from 'react';
import { useUser } from '../context/UserContext';
import { getSelf } from '../features/auth/api/getSelf';
export const useUserRequired = (): boolean => {
const [loaded, setLoaded] = React.useState<boolean>(false);
const { user, setUser } = useUser();
React.useEffect(() => {
if (... |
import { CreateThingGroupInput } from "../shapes/CreateThingGroupInput";
import { CreateThingGroupOutput } from "../shapes/CreateThingGroupOutput";
import { InvalidRequestException } from "../shapes/InvalidRequestException";
import { ResourceAlreadyExistsException } from "../shapes/ResourceAlreadyExistsException";
impo... |
export const users = [
"mecm1993",
"anmol098",
"anuraghazra",
"jayehernandez",
"jamesgeorge007",
"ChoukseyKhushbu",
"ethomson",
"eddiejaoude",
"m0nica",
"pr2tik1",
"abhisheknaiidu",
"BhuvaneshHingal",
"vivmost",
"Meghna-DAS",
"praveenscience",
"VedantKhair... |
import * as mongoose from 'mongoose';
import { Restaurant } from '../restaurants/restaurants.model';
import { User } from '../users/users.model';
export interface Review extends mongoose.Document {
date: Date,
rating: number,
comments: string,
restaurant: mongoose.Types.ObjectId | Restaurant,
user:... |
// Copyright 2019 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.
/* eslint-disable rulesdir/no_underscored_properties */
import * as Common from '../../../../core/common/common.js'; // eslint-disable-line no-unused-va... |
import { Lens } from './lens';
// prettier-ignore
export interface LensCompose {
<A, B, C>(...lenses: [Lens<A, B>, Lens<B, C>]): Lens<A, C>;
}
/**
* Compose two lenses (`Lens<A, B>, Lens<B, C>`) to produce a new lens `Lens<A, C>`.
* @param lenses
*/
const compose: LensCompose = (...lenses) => ({
get: a => lens... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
'use strict';
export const CONTAINER_INSTALL_NNI_SHELL_FORMAT: string =
`#!/bin/bash
if python3 -c 'import nni' > /dev/null 2>&1; then
# nni module is already installed, skip
return
else
# Install nni
python3 -m pip install --user --up... |
/*
Copyright 2017 VMware, Inc. 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 agreed ... |
export class ShoppingProduct {
constructor(
public shprId: number,
public proId: string,
public proName: string,
public proPrice: number,
public proImage: string,
public carId: number,
public quantity: number,
public total: number,
) { }
} |
import { Integer, Address, Struct, Bytes, List, Tuple } from '../src'
describe('Codables', () => {
describe('Codable.toTypeString', () => {
test('Struct.toTypeString', () => {
const v = Struct.from([
{
key: 'amount',
value: Integer.from(1)
},
{
key: 'to... |
<TS language="es_CL" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Haga clic para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<... |
import Html, { Rule } from "slate-html-serializer";
const myRule: Rule = {
deserialize: (el, next) => {},
serialize: () => null
};
const serializer = new Html({
rules: [myRule]
}); |
import React from "react";
import Layout from "../../components/Layout";
import * as styles from "./mt-net.module.scss";
const mtNet: React.FC = () => {
return (
<Layout backgroundColor="#00FFFF">
<table className={styles.autoStyle7}>
<tr>
<td className={styles.autoStyle1}> </td>
... |
import {ACTIONS, ActionParamsMap} from './constants/actions'
import {EVENTS, EventParamsMap} from './constants/events'
const LIB_ID = 'griffith'
// 消息载体,真实传递给播放器
type MessagePayload = {
name: ACTIONS & EVENTS
data?: unknown
}
// 消息,MessageHelper 在 postMessage 事件中处理
type Message = {
from: string
id: string | ... |
import {MathQuestionDataGenerator} from "./math/mathQuestionGenerator";
import {QuestionData} from "./questiondata";
import {KanjiQuestionDataGenerator} from "./kanji/kanjiQuestionGenerator";
class QuestionDataGenerator {
static generate(): Array<QuestionData> {
const ret = [
KanjiQuestionDat... |
export * from './GridSensor';
export * from './HorizontalSensor';
export * from './VerticalSensor'; |
/*auto generated*/
describe('flex-aspect', () => {
it('ratio-img-column-001', async () => {
let referenceOverlappedRed;
let testFlexItemOverlappingGreen;
let constrainedFlex;
referenceOverlappedRed = createElement('div', {
id: 'reference-overlapped-red',
style: {
position: 'absolut... |
import styled from 'styled-components';
const FlexWrapper = styled.div`
// display: flex;
padding-left: 20%;
padding-right: 20%;
`;
export default FlexWrapper; |
import EmulatorCommon from '../EmulatorCommon';
import EventBus from '../EventBus';
import LineEvent from './network_log_converter/LineEvent';
import { LineEvent0x01 } from './network_log_converter/LineEvent0x01';
export default class LogEventHandler extends EventBus {
public currentFight: LineEvent[] = [];
publi... |
/**
* Created by kevin.mayo on 7/28/2017.
*/
export class Plane{
bottomLine: any = {l: {x: -0.5, y: 0.5}, r: {x: 0.5, y: 0.5}};
destBottomLine: any = {l: {x: -0.5, y: 0.5}, r: {x: 0.5, y: 0.5}};
distance : number;
renderPlane: THREE.Geometry;
done : boolean = false;
counter : number = 0;
speed : num... |
import { BlazorDotnetObject, closest, isNullOrUndefined, EventHandler } from '@syncfusion/ej2-base';
import { getZindexPartial } from '@syncfusion/ej2-popups';
import { upDownKeyHandler, setBlankIconStyle } from '../src/common/common';
const HIDDEN: string = 'hidden';
const TRANSPARENT: string = 'e-transparent';
const... |
export const c_content_li_MarginTop: {
"name": "--pf-c-content--li--MarginTop",
"value": "0.5rem",
"var": "var(--pf-c-content--li--MarginTop)"
};
export default c_content_li_MarginTop; |
import { Action } from 'redux'
import { ThunkAction } from 'redux-thunk'
export type ThunkActionResult<T> = ThunkAction<T, any, null, Action<string>> |
import BigNumber from 'bignumber.js'
export interface GethInstanceConfig {
name: string
validating?: boolean
validatingGasPrice?: number
syncmode: string
port: number
proxyport?: number
rpcport?: number
wsport?: number
lightserv?: boolean
privateKey?: string
etherbase?: string
proxies?: Array<s... |
interface PreviewConfig {
select?: {
[key: string]: string;
};
prepare?: Function;
}
export declare function validateField(field: any, visitorContext: any): any[];
export declare function validateFields(fields: any, options?: {
allowEmpty: boolean;
}): any[];
export declare function validatePrev... |
/*
Copyright 2021 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
import { Directive, provide, Attribute } from '@angular/core';
import { Validator, AbstractControl, NG_VALIDATORS } from '@angular/common';
import { OrtValidator} from './ort-validator';
@Directive({
selector: 'input[ort]', // --> <input ort ...>
providers: [provide(NG_VALIDATORS, {useExisting: OrtValidatorDir... |
const host = 'https://play.goplus.org'
export type CompileOptions = {
body: string
/** Whether client supports vet response in a /compile request */
withVet?: boolean
}
export type CompileEvent = {
/** Time to wait before printing Message */
Delay: number
Kind: 'stdout' | 'stderr'
Message: string
}
exp... |
// ag-grid-enterprise v19.0.0
import { ICellEditor, Component, Context, CellRendererService, IRichCellEditorParams } from "ag-grid-community";
export declare class RichSelectCellEditor extends Component implements ICellEditor {
private static TEMPLATE;
context: Context;
cellRendererService: CellRendererServ... |
export interface Settings {
selected: number;
environments: Environment[];
token: string;
}
export interface Environment {
id: string;
name: string;
description: string;
repo: string;
event: string;
} |
// *** 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";
/*... |
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
import * as jsc from 'jsverify';
import {Command} from "../../src/model/Command";
import {ArbitraryCreateCommand} from "./ArbitraryCreateCommand";
import {ArbitraryExerciseCommand} ... |
import { AuthGuard } from 'app/core/services/auth.guard';
// import { dashboard } from './shared/layout/data-left-manu';
import { Component, NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CannotAccess401Component } from './components/cannot-access401/cannot-access401.c... |
import test from "ava";
import * as path from "path";
import simpleGit = require("simple-git/promise");
import { handler } from "./utils";
import * as utils from "./utils";
import { EC, newProjectBeforeMacro } from "./utils/macroes";
test.serial.beforeEach("New Project", newProjectBeforeMacro);
test.serial("Git Tag #... |
import { createSlice } from '@reduxjs/toolkit';
import {
cancelDepositTicket,
cancelWithdrawTicket,
getDepositTickets,
getWithdrawTickets,
} from 'services/graphql/client';
const transactionsSlice = createSlice({
name: 'transactions',
initialState: {
fetching: false,
deposits: [],
withdrawals: ... |
import { i18n } from '../../../../lib/i18n/i18n';
import { TrophyBase } from '../../types';
const rivalry: TrophyBase = {
island: 'skills',
name: 'rivalry',
level: 'skills2',
title: i18n('Rivalry'),
description: i18n(
'Win a game where the gold difference in the first 15 minutes was always less than 2000... |
// see: https://github.com/mesqueeb/is-what/blob/88d6e4ca92fb2baab6003c54e02eedf4e729e5ab/src/index.ts
function getType(value: any): string {
return Object.prototype.toString.call(value).slice(8, -1)
}
export function isPlainObject(value: any): value is Record<string, any> {
if (getType(value) !== 'Object') {
... |
import {
AfterViewInit,
ChangeDetectorRef,
Component,
ComponentFactoryResolver,
ElementRef,
Inject,
Input,
TemplateRef,
Type,
ViewChild,
ViewContainerRef
} from '@angular/core';
import { DIALOG_REF, DialogRef } from '../utils/dialog-ref.class';
import { DIALOG_CONFIG, DialogC... |
import React from 'react';
import { observer } from 'mobx-react-lite';
import {
Box,
Container,
Flex,
Icon,
IconButton,
Stack,
useColorMode,
useColorModeValue,
} from '@chakra-ui/react';
import { IoMoon, IoSunny } from 'react-icons/io5';
import { Logo } from '../Logo';
export const Header = observer(()... |
import {
gqlInputObjectType,
gqlField,
gqlMutation,
gqlContextType,
gqlArg,
gqlObjectType,
encodeGQLID,
} from "@snowtop/ent/graphql";
import {
useAndVerifyAuth,
useAndVerifyAuthJWT,
} from "@snowtop/ent-passport";
import { User } from "src/ent/";
import { ID, RequestContext } from "@snowtop/ent";
imp... |
import {Injectable} from '@angular/core';
import {
ActivatedRouteSnapshot,
CanActivate,
Router,
RouterStateSnapshot,
UrlTree,
} from '@angular/router';
import {Observable} from 'rxjs';
import {AuthService} from './auth-service.service';
@Injectable({
providedIn: 'root',
})
export class AuthGuard implements... |
import axios, {AxiosInstance} from 'axios';
import ISectionCard = GQL.ISectionCard;
import logger from "../utils/logger";
import config from "../config"
import IQuery = GQL.IQuery;
import ICourse = GQL.ICourse;
import IVersionedContentRecord = GQL.IVersionedContentRecord;
export default class GqlApi {
private read... |
import {mergeMap, map, filter} from 'rxjs/operators';
import { Component, OnInit, OnDestroy, HostListener, Inject } from '@angular/core';
import { GlobalService } from './services/global.service';
import { AuthService } from './services/auth.service';
import { Router, NavigationEnd, ActivatedRoute } from '@angular/rout... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import type { TextDocument, Uri } from 'vscode';
import { InteractiveInputScheme, NotebookCellScheme } from '../constants';
import { InterpreterUri } from '../installer/types';
import { arePathsSame, isParentPa... |
import { regex } from "./regex"
import { parseChars, parseUntil } from "./string";
export function parseNewline(){
return regex(new RegExp(/([\r]?)([\n])/, 'g'), "new line")
}
export function LineRemainder(){
return parseUntil(parseChars(["\n","\r"]));
} |
type BarType = 'group' | 'stack';
export interface BarOptions {
barType: BarType;
showLegend: boolean;
fieldColor1: string;
fieldColor2: string;
fieldColor3: string;
fieldColor4: string;
fieldColor5: string;
fieldColor6: string;
fieldColor7: string;
fieldColor8: string;
} |
import { async, ComponentFixture, TestBed } from '@angular/core/testing'
import { BackendErrorComponent } from './backend-error.component'
describe('BackendErrorComponent', () => {
let component: BackendErrorComponent
let fixture: ComponentFixture<BackendErrorComponent>
beforeEach(async(() => {
TestBed.con... |
/**
@module ember
*/
import { assert } from '@ember/debug';
import { Option } from '@glimmer/interfaces';
import { OpcodeBuilder } from '@glimmer/opcode-compiler';
import * as WireFormat from '@glimmer/wire-format';
import { OwnedTemplateMeta } from 'ember-views';
import { wrapComponentClassAttribute } from '../utils/b... |
import styled from 'styled-components';
export const PageTitle = styled.h2`
margin-bottom: ${({ theme }) => theme.spacing.xxxl};
`; |
import './lazy-image.scss';
import register from 'ShopUi/app/registry';
export default register(
'lazy-image',
() => import(/* webpackMode: "eager" */ 'ShopUi/components/molecules/lazy-image/lazy-image'),
); |
import { ITheme } from './../theme';
declare type IExtendThemeParam = ITheme | Record<string, any>;
export declare function extendTheme(overrides: IExtendThemeParam, ...restOverrides: IExtendThemeParam[]): {
components: {
Progress: {
baseStyle: (props: Record<string, any>) => {
b... |
/* 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 { ResultBoxComponent } from './result-box.component';
describe('ResultBoxComponent', () => {
let comp... |
export const escapedHTMLElements: Record<string, string> = {
"\"": """,
"&": "&",
"'": "'",
"/": "/",
"<": "<",
"=": "=",
">": ">",
"`": "`"
};
export function parseHTMLElements(text: string): string {
let res = text;
const sortedElements = Obje... |
import { Loan } from "../types/Loan";
import { PayoffStrategy } from "../types/PayoffStrategy";
import orderBy from "lodash/orderBy";
const asc: "asc" = "asc";
const desc: "desc" = "desc";
export const prioritizeLoans = (
loans: Loan[],
payoffStrategy: PayoffStrategy
): Loan[] => {
const sortingFields =
pay... |
import removeAccents from '../../utils/removeAccents';
describe('removeAccents', () => {
test('should return `Equateur` instead of `Équateur`', () => {
expect(removeAccents('Équateur')).toBe('Equateur');
});
}); |
import { Nullable } from "../../types";
import { Scene } from "../../scene";
import { Matrix, Vector3 } from "../../Maths/math.vector";
import { SubMesh } from "../../Meshes/subMesh";
import { AbstractMesh } from "../../Meshes/abstractMesh";
import { IShadowLight } from "../../Lights/shadowLight";
import { Effect } fr... |
/**
* Bitwise circular shift left
* http://en.wikipedia.org/wiki/Circular_shift
*/
declare function rol(val: number, shift: number): number;
export default rol; |
import {Decision} from './decision';
export interface Lot {
id: number;
lotNumber: string;
surface: string;
floor: string;
price: string;
blueprintId: string;
pdfUrl: string;
remark: string;
decision: Decision;
createdAt: string;
modifiedAt: string;
} |
import * as React from 'react'
import { StackingOrder } from '../../constants'
// Context used to manage the layering of z-indexes of components.
const StackingContext = React.createContext(StackingOrder.STACKING_CONTEXT)
export default StackingContext |
<TS language="kk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Жаңа адрес енгізу</translation>
</message>
<message>
<source>&New</source>
<translation>Жаңа</translation>
</message>
<message>... |
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import {Input} from "../../utils/deno/input.ts";
import { parseInput, solvePart1, solvePart2 } from "./solutions.ts";
Deno.test("part 1 - given test case", () => {
const input = `1163751742
1381373672
2136511328
3694931569
7463417111
131912813... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.