text stringlengths 3.3k 33k |
|---|
<filename>src/abonnement.spec.ts
import {
Abonnement,
JoinedAbonnement,
AlleAbonnementer,
} from "../src/abonnement";
import "array.defined";
let stringAbonnement: Abonnement<String>;
let numberAbonnement: Abonnement<number>;
let stringAbonnent: jest.Mock;
let numberAbonnent: jest.Mock;
let stringAbonnentId: num... |
import * as React from 'react';
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/Select/select';
import datePickerStyles from '@patternfly/react-styles/css/components/DatePicker/date-picker';
import formStyles from '@patternfly/react-styles/css/components/FormC... |
<filename>projects/cashmere/src/lib/checkbox/checkbox.component.ts
import {
Attribute,
Component,
ElementRef,
EventEmitter,
forwardRef,
HostBinding,
Input,
Output,
Renderer2,
ViewChild,
Self,
Optional,
DoCheck,
ContentChildren,
ViewEncapsulation,
} from '@angu... |
export { default as AccountFilledIcon } from "./Icons/AccountFilled";
export { default as AccountIcon } from "./Icons/Account";
export { default as AddIcon } from "./Icons/Add";
export { default as ArrowBackIcon } from "./Icons/ArrowBack";
export { default as ArrowDownIcon } from "./Icons/ArrowDown";
export { default a... |
import React from "react";
import { Popover } from "./Popover";
import "./ColorPicker.css";
import { KEYS } from "../keys";
import { t } from "../i18n";
// This is a narrow reimplementation of the awesome react-color Twitter component
// https://github.com/casesandberg/react-color/blob/master/src/components/twitter/T... |
declare var dataLayer: any[];
const initGoogleTagManager = (w, d, s, l, i) => {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = "true";
j.onload = function() {
... |
import React from 'react';
import BN from 'bn.js';
import { connect } from 'react-redux';
import { Form, Input, Select, Button } from 'antd';
import { Denomination, denominationSymbols, fiatSymbols } from 'utils/constants';
import { typedKeys } from 'utils/ts';
import {
fromBaseToUnit,
fromUnitToBase,
fromUnitToB... |
/*! Copyright (c) 2021 <NAME>; Licensed under MIT */
/**
* The tokens required for Human2Regex
* @packageDocumentation
*/
import { createToken, Lexer } from "chevrotain";
/** @internal */ export const Zero = createToken({name: "Zero", pattern: /zero/i});
/** @internal */ export const One = createToken({name: "One... |
import cx from 'classnames'
import {Node} from 'prosemirror-model'
import {Decoration} from 'prosemirror-view'
import {NodeSelection} from 'prosemirror-state'
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import CustomNodeView from './CustomNodeView'
import {FRAMESET_BODY_CLASSNAME} from './Edit... |
import { Action, action, createContextStore, State } from "easy-peasy"
import { assignDeep } from "lib/store/persistence"
import { filter, find, isEqual, unionBy } from "lodash"
import {
Aggregations,
defaultCommonFilterOptions,
FilterArray,
FilterCounts,
FilterData,
FilterParamName,
FilterType,
getSort... |
/**
* This file aims to group all the logic related to the concept of "IContributor".
*
* A contributor is a person or an entity that contributes financially or by any other
* mean to the mission of the collective. While "Member" is dedicated to permissions
* and can have multiple entries for the same collective (... |
import * as RMWC from '@rmwc/types';
import * as React from 'react';
import { EventType, SpecificEventListener } from '@material/base/types';
import { MDCSliderFoundation } from '@material/slider';
import { componentFactory, FoundationComponent, debounce } from '@rmwc/base';
export type SliderOnChangeEventT = RMWC.Cu... |
import { BaseConfig, createPromptChoiceSeparator, parseArgs } from '@ionic/cli-framework';
import { readFile, writeFile } from '@ionic/utils-fs';
import * as lodash from 'lodash';
import * as path from 'path';
import { BaseIntegration } from '../';
import {
App,
EnterpriseProjectIntegration,
IntegrationAddDetail... |
import { useRecords, useFields, useActiveViewId, useSelection, useCloudStorage, useSettingsButton, useViewport, useField, Field, Record, IAttachmentValue, usePrimaryField, FieldType, useDatasheet } from '@vikadata/widget-sdk';
import { Button } from '@vikadata/components';
import { InformationSmallOutlined } from '@vik... |
<filename>src/stores/Maps/maps.store.ts
import { observable, action, makeObservable } from 'mobx'
import {
IMapPin,
IMapGrouping,
IMapPinWithDetail,
IMapPinDetail,
IBoundingBox,
} from 'src/models/maps.models'
import { IDBEndpoint } from 'src/models/common.models'
import { RootStore } from '../index'
import {... |
import {Jam, MusicBrainz} from '@jam';
import {MatchImageNode} from '../components/match-coverart/match-coverart.component';
import {ID3V24TagBuilder} from './id3v2-builder.helper';
import {Matching} from './release-matching.helper';
function fillGenres(builder: ID3V24TagBuilder, match: Matching, genres: Array<string>... |
import React, {
ComponentProps,
forwardRef,
memo,
ReactNode,
useContext,
useLayoutEffect,
useMemo,
useRef,
useState,
} from 'react';
import { ArrowRight } from '@ringcentral/juno-icon';
import {
a11yKeyboard,
combineClasses,
RcBaseProps,
styled,
useEventCallback,
useForkRef,
useId,
u... |
import { getShortestPaths, getSimplePaths, getStateNodes } from '@xstate/graph';
import { StateMachine, EventObject, State, StateValue } from 'xstate';
import { StatePathsMap } from '@xstate/graph/lib/types';
import chalk from 'chalk';
import {
TestModelCoverage,
TestModelOptions,
TestPlan,
StatePredicate,
Te... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { CacheService } from 'ionic-cache';
import moment from 'moment';
import { forkJoin, Observable, Observer, of } from 'rxjs';
import { catchError, map } from 'rxjs... |
import * as ethers from 'ethers'
import * as fs from 'fs'
import * as path from 'path'
import {
PubKey,
PrivKey,
Keypair,
Command,
StateLeaf,
} from 'maci-domainobjs'
import {
genPerVOSpentVoiceCreditsCommitment,
genSpentVoiceCreditsCommitment,
genTallyResultCommitment,
MaciState,
... |
<gh_stars>1-10
import gw1 from './gw1.json';
import gw2 from './gw2.json';
import gw3 from './gw3.json';
import gw4 from './gw4.json';
import gw5 from './gw5.json';
import gw6 from './gw6.json';
import gw7 from './gw7.json';
import gw8 from './gw8.json';
import gw9 from './gw9.json';
import gw10 from './gw10.json';
imp... |
import * as React from 'react'
import styled from '../../styled'
import { colors, spacing, fonts, misc } from '../../tokens'
import Icon, { __ICONNAMES__ } from '../icon'
import Spinner from '../spinner'
import Tooltip from '../tooltip'
import Automation from '../../_helpers/automation-attribute'
export interface IBut... |
<filename>midi.ts
enum MidiCommand {
//% block="tune request"
TuneRequest = 0xf6,
//% block="timing clock"
TimingClock = 0xf8,
//% block="start"
Start = 0xfa,
//% block="continue"
Continue = 0xfb,
//% block="stop"
Stop = 0xfc,
//% block="active sensing"
ActiveSensing = 0x... |
import React, { useCallback, useEffect, useRef } from 'react'
import { Text, TouchableOpacity, Platform, View, AppState, StatusBar } from 'react-native'
import LottieView from 'lottie-react-native'
import { useTranslation } from 'react-i18next'
import {
requestNotifications,
request,
PERMISSIONS,
RESULTS,
openSett... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* @file Ensuring the plugin is properly structured
* @author <NAME>
*/
import { describe, it } from "mocha";
import { assert } from "chai";
import plugin from "../src";
/**
* A list of all currently supported rules
*/
const ruleList ... |
import { format, addHours } from 'date-fns';
import { Component, Inject, OnInit } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { CategoryService } from 'src/app/services/category.service';
import { ReminderService } from 'src/app/services/reminder.service';
im... |
<reponame>rigor789/nativescript-vue-next
import {
getViewClass,
getViewMeta,
normalizeElementName,
NSVViewMeta,
} from './registry'
import { ELEMENT_REF } from '@nativescript-vue/runtime'
import { debug } from '@nativescript-vue/shared'
import { ViewBase, LayoutBase, Style } from '@nativescript/core'
import { u... |
import { defineComponent, ref, computed, nextTick, watch, PropType } from 'vue';
import removeBtnSvg from './remove-btn';
import './tag-input.scss';
interface Suggestion {
__index: number
[x: string]: any
}
const tagInputProps = {
tags: {
type: Array as PropType<any[]>,
default: (): [] => []
},
disp... |
<reponame>Janlaywss/dawn
import fs from "fs";
import { access, readFile, writeFile } from "fs/promises";
import path from "path";
import yaml from "js-yaml";
import del from "del";
import semver from "semver";
import ruleMerge from "./rules";
import { debug } from "./utils";
import {
EDITOR_CONFIG_FILE_PATH,
EDITOR... |
import {uint8, uint32, Color} from "../types"
import {named_colors, is_named_color} from "./svg_colors"
import {clamp} from "./math"
import {isInteger, isString, isArray} from "./types"
const {round} = Math
function byte(v: number): uint8 {
return clamp(round(v), 0, 255)
}
export type RGBA = [R: uint8, G: uint8, B:... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
<filename>src/mention/mention.directive.ts
import { Directive, ElementRef, ComponentFactoryResolver, ViewContainerRef, TemplateRef } from "@angular/core";
import { Input, EventEmitter, Output, OnChanges, SimpleChanges } from "@angular/core";
import { MentionConfig } from "./mention-config";
import { MentionListCompone... |
<filename>language-server/src/server.ts
'use strict';
import {
IPCMessageReader, IPCMessageWriter, createConnection, IConnection, TextDocuments, TextDocument,
Diagnostic, DiagnosticSeverity, InitializeResult, TextDocumentPositionParams, CompletionItem,
CompletionItemKind, SignatureHelp, Hover, DocumentSymbolParams,... |
import type { SagaIterator } from '@redux-saga/types'
import type { EventEmitter } from '../utils/EventEmitter'
import { BaseSession } from '../BaseSession'
import { SDKStore } from '../redux'
import {
GLOBAL_VIDEO_EVENTS,
INTERNAL_GLOBAL_VIDEO_EVENTS,
PRODUCT_PREFIXES,
} from './constants'
import type { CustomSa... |
<gh_stars>0
// Copyright 2018 <NAME> <<EMAIL>>
// All rights reserved. MIT License.
// Glossary
// outputCode = generated javascript code
// sourceCode = typescript code (or input javascript code)
// moduleName = a resolved module name
// fileName = an unresolved raw fileName.
// for http modules , its the p... |
// This file is part of the Corinthia project (http://corinthia.io).
//
// See the COPYRIGHT.txt file distributed with this work for
// information regarding copyright ownership.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
/* eslint-disable no-param-reassign */
import * as React from 'react';
// @ts-expect-error
import SpringConfig from 'react-native/Libraries/Animated/SpringConfig';
import type {
PanGestureHandlerGestureEvent,
TapGestureHandlerGestureEvent,
} from 'react-native-gesture-handler';
import Animated, {
cancelAnim... |
<reponame>zenghongtu/tauri<filename>tooling/api/src/shell.ts<gh_stars>0
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
/**
* Access the system shell.
* Allows you to spawn child processes and manage files and URLs using the... |
import { SankeyDiagram } from "@amcharts/amcharts4/charts";
import { color, Container, create, IDisposer, Label, percent, Tooltip, useTheme } from "@amcharts/amcharts4/core";
import am4themes_animated from '@amcharts/amcharts4/themes/animated';
import am4themes_dark from '@amcharts/amcharts4/themes/dark';
import { Time... |
<gh_stars>1-10
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {
Path,
PathFragment,
PathIsDirectoryException,
PathIsFileException,
clean,
dirname... |
import * as React from "react";
import { useCallback, useEffect, useState } from "react";
import MenuItem from "@material-ui/core/MenuItem";
import { makeStyles } from "@material-ui/core/styles";
import Button, { ButtonProps } from "@material-ui/core/Button";
import {
usePopupState,
bindTrigger,
bindMenu,
bindP... |
/// <reference lib="es6"/>
/**
* 微信小程序操作队列封装管理
* @example var rq = new WxQueue(wx.requst);
*/
export class WxQueue<Tparam extends BaseOption, Ttask extends BaseTask> {
/**
* 队列最大长度
*/
public readonly MAX: number;
/**
* 任务ID计数器
*/
private taskid = 0;
/**
* 待完成队列
*/
private readonly t... |
import * as JSON5 from "json5";
import pLimit from "p-limit";
import { licenses } from "../src/lib/core/licenses";
import { getDefaultAnswer } from "../src/lib/core/questions";
import type { TemplateFunction } from "../src/lib/createAdapter";
import { fetchPackageReferenceVersion, getPackageName } from "../src/lib/pack... |
import { StatusBar } from 'expo-status-bar';
import React, { useEffect, useState } from 'react';
import { StyleSheet, Text, View, TouchableOpacity, Slider } from 'react-native';
// import { View, Button } from "react-native-elements";
import { Ionicons, Foundation, MaterialCommunityIcons } from "@expo/vector-icons";
e... |
<reponame>johnyu666/Serverless-Devs<gh_stars>1-10
/** @format */
import path from 'path';
import _, { keys, includes } from 'lodash';
import { spawn, spawnSync } from 'child_process';
import { logger, configSet, getYamlPath, common, i18n } from '../utils';
import { DEFAULT_REGIRSTRY } from '../constants/static-variabl... |
import { Angle, Point, Line, Rectangle, Polyline } from '../../geometry'
import { createSvgElement } from './elem'
const svgDocument = createSvgElement('svg') as SVGSVGElement
const transformRegex = /(\w+)\(([^,)]+),?([^)]+)?\)/gi
const transformSeparatorRegex = /[ ,]+/
const transformationListRegex = /^(\w+)\((.*)\)/... |
/*
* Copyright 2020 gRPC authors.
*
* 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 t... |
import React, { useEffect, useState } from 'react';
import { useHistory } from 'react-router';
import { ValidationProvider } from '../../context/validation_context/validation_context';
import { getValidatorsFromEngagementFormConfig } from '../../common/config_validator_adapter';
import { AnalyticsCategory } from '../..... |
import React, { useState, useEffect } from 'react';
import { useNavigation } from '@react-navigation/native';
import { Alert, FlatList, TouchableOpacity, View, ActivityIndicator } from 'react-native';
import { AxiosError, AxiosResponse } from 'axios';
import {
BackGroundPage,
RegistersContainer,
Row,
... |
<filename>src/renderer/services/thorchain/thorNode.ts
import * as RD from '@devexperts/remote-data-ts'
import { Address } from '@xchainjs/xchain-client'
import { AssetRuneNative, assetToString, baseAmount } from '@xchainjs/xchain-util'
import * as A from 'fp-ts/Array'
import * as E from 'fp-ts/Either'
import * as FP fr... |
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS GuardDuty
*/
export interface GuarddutyMemberConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_... |
<reponame>pravinb1/vscode-objectscript
import * as vscode from "vscode";
import { SearchResult, SearchMatch } from "../../api/atelier";
import { AtelierAPI } from "../../api";
import { DocumentContentProvider } from "../DocumentContentProvider";
import { notNull, outputChannel, throttleRequests } from "../../utils";
im... |
<reponame>flozender/amplify-cli
import { $TSContext, $TSObject, stateManager, pathManager, JSONUtilities } from 'amplify-cli-core';
import { DataSourceIntendedUse, PlaceIndexParameters } from '../../service-utils/placeIndexParams';
import { AccessType, DataProvider } from '../../service-utils/resourceParams';
import { ... |
<filename>packages/core/src/process/schema/all-of.ts
import { CodegenAllOfSchema, CodegenAllOfStrategy, CodegenObjectSchema, CodegenSchemaPurpose, CodegenSchemaType, isCodegenAllOfSchema, isCodegenCompositionSchema, isCodegenHierarchySchema, isCodegenInterfaceSchema, isCodegenObjectSchema } from '@openapi-generator-plu... |
/*
* Copyright 2021 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
import { DataTable, setWorldConstructor } from '@cucumber/cucumber';
import * as grpc from '@grpc/grpc-js';
import * as crypto from 'crypto';
import { ChaincodeEvent, Identity, Signer, signers, HSMSigner, HSMSignerOptions, newH... |
import { Connection } from "mysql";
import pool, { getUnsafeMultipleStatementConnection } from "../../utils/db";
import {
addResultsToResponse,
crud,
respond,
withResource,
} from "../../utils/crud";
import { EC, EEH } from "../../utils/types";
const getOne = crud.readOne(
"SELECT * FROM user_view WHERE id =... |
<reponame>dillonthompson/dillonthompson.github.io<gh_stars>100-1000
import * as ts from 'typescript';
export declare function isAccessorDeclaration(node: ts.Node): node is ts.AccessorDeclaration;
export declare function isArrayBindingPattern(node: ts.Node): node is ts.ArrayBindingPattern;
export declare function isA... |
import React, { useState } from 'react';
import { BannerRenderProps } from '../common/types';
import { bannerWrapper, validatedBannerWrapper } from '../common/BannerWrapper';
import { Container, Columns, Column, Hide } from '@guardian/src-layout';
import { commonStyles } from './ContributionsBannerCommonStyles';
import... |
<reponame>NDCB/ndcb.netlify.com<gh_stars>0
import {
function as fn,
io,
either,
taskEither,
boolean,
option,
eq,
show,
ord,
readonlySet,
} from "fp-ts";
import type { Refinement } from "fp-ts/Refinement";
import type { IO } from "fp-ts/IO";
import type { Option } from "fp-ts/Option";
import type { E... |
import BN = require('bn.js')
import Account from 'ethereumjs-account'
import { keccak256, ecsign, stripZeros } from 'ethereumjs-util'
import { encode, decode } from 'rlp'
import { Multiproof, verifyMultiproof, makeMultiproof, flatEncodeInstructions } from '../multiproof'
import VM from 'ethereumjs-vm'
import { Transact... |
import {
CloseOutlined,
DownloadOutlined,
FileProtectOutlined,
PlayCircleOutlined,
QuestionCircleOutlined,
} from "@ant-design/icons";
import { Typography } from "antd";
import classnames from "classnames";
import fileSize from "file-size";
import React, { useState } from "react";
import { AnimatedStyle } fro... |
import { ArchiveSource, ArchiveSourceType, Job, Metadata, Platform } from '@expo/eas-build-job';
import { CredentialsSource } from '@expo/eas-json';
import chalk from 'chalk';
import fs from 'fs-extra';
import nullthrows from 'nullthrows';
import ora from 'ora';
import { BuildFragment, BuildStatus, UploadSessionType }... |
import {
DollarOutlined, DownCircleTwoTone,
GlobalOutlined,
MailOutlined,
PlusOutlined,
PushpinOutlined,
SmileOutlined, UpCircleTwoTone
} from '@ant-design/icons';
import { Button, message, Drawer } from 'antd';
import React, { useState, useRef } from 'react';
import {useIntl, FormattedMessage, connect} fro... |
import { Interaction } from "./interactor";
import CubeGroup from "./group";
import * as THREE from "three";
import World from "./world";
import { twister } from "./twister";
import { axis_planes, axis_vectors, cube_config, cube_size, indexToLayer, worldToIndex } from "./utils";
import { Box3, Vector2, Vector3 } from ... |
<gh_stars>0
import uuid from 'uuid/v4';
import { Store, Dispatch, Middleware } from 'redux';
import { ReplaySubject } from 'rxjs/ReplaySubject';
import {
TouchFileDescriptor,
FileState,
fileStreamsCache,
getMediaTypeFromMimeType,
FilePreview,
isPreviewableType,
MediaType,
} from '@atlaskit/media-core';
im... |
<reponame>alienk1/circle_color_picker
class Config {
public width: string;
public height: string;
public img: string;
public ring: boolean;
constructor(
public elem: any
) {
this.ring = false;
}
setData(data : any) {
if(data) {
this.width = data.width... |
import { camelizeKeys } from 'humps';
import { stringify } from 'query-string';
import { ApiResponse, StApi } from '../Api';
import { placesDetailedCache as cache } from '../Cache';
import { Bounds, boundsToMapTileKeys, Location, locationToMapTileKey } from '../Geo';
import { Medium } from '../Media';
import { Day, It... |
import {
buildSchema,
GraphQLObjectType,
GraphQLEnumType,
GraphQLInterfaceType,
GraphQLInputObjectType,
GraphQLScalarType,
GraphQLUnionType,
GraphQLSchema,
GraphQLNamedType,
isSpecifiedScalarType,
GraphQLField,
isWrappingType,
isNonNullType,
isListType,
GraphQLOutputType,
GraphQLWrapping... |
/* tslint:disable:max-file-line-count */
// todo: should we support enforce focus in?
// todo: in original bs there are was a way to prevent modal from showing
// todo: original modal had resize events
import {
ComponentRef, Directive, ElementRef, EventEmitter, HostListener, Input,
OnDestroy, OnInit, Output, Rende... |
import * as React from 'react'
import crypto from 'crypto'
import { Box } from '@src/components/atoms'
import { StaticQuery, graphql, Link } from 'gatsby'
import { Blog, GraphqlBlogResult } from '@src/types'
import './LatestBlogs.css'
import BlogLists from '@src/constants/blog.json'
type LatestBlog = Blog
interface P... |
import {
CompileTimeHeap,
SerializedHeap,
STDLib,
RuntimeHeap,
StdlibOperand,
RuntimeConstants,
RuntimeProgram,
CompilerArtifacts,
} from '@glimmer/interfaces';
import { LOCAL_DEBUG } from '@glimmer/local-debug-flags';
import { RuntimeConstantsImpl } from './constants';
import { RuntimeOpImpl } from './... |
import {EntryUrlItem, LogLevel} from "./model/common";
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const {
name: PACKAGE_NAME,
version: PACKAGE_VERSION,
license: PACKAGE_LICENSE,
description: PACKAGE_DESCRIPTION,
}: {
name: string;
version: string;
license: string;
... |
<reponame>heremaps/xyz-editor<filename>packages/display/src/displays/styleTools.ts
/*
* Copyright (C) 2019-2021 HERE Europe B.V.
*
* 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
*
* ... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2020 The Matrix.org Foundation C.I.C.
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 require... |
<reponame>sirian/js
import {castError, entriesOf, padRight, rgxEscape, sprintf, stringifyVar, substrCount, XSet} from "@sirian/common";
import {Dispatcher, EventDispatcher} from "@sirian/event-dispatcher";
import {CommandDefinition, HelpCommand, ICommandConstructor, ICommandLoader, ListCommand} from "./Command";
import... |
import {
EState,
fractionToLineCenter,
Intersection,
testIntersection,
hasFractionToLineCenter,
intersectsLine,
} from './Intersection';
import { Line } from './model/Line';
import { doublePointsEqual, ptsDistanceSq } from './utils';
import { IPoint, point, ICircle, IRectangle2 } from './interfaces';
expor... |
<reponame>exodussystem/ngx-ui-ext<gh_stars>0
/**
* Created by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* on 5/4/2017.
*/
import { ITableFilterConfig } from './table-filters';
import { UiTablePlugin } from '../config/table-plugin';
import { ISelectSettings} from '../../select/select/select.interface';
// Pre-Defi... |
import {Component, EventEmitter, OnDestroy, OnInit, Output, TemplateRef, ViewChild, ViewEncapsulation} from '@angular/core';
import * as $ from 'jquery';
import {EditTableRequest, QueryExplorationRequest, SchemaRequest} from '../../../models/ui-request.model';
import {CrudService} from '../../../services/crud.service';... |
/*
* Copyright 2016 Google 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 applic... |
<gh_stars>0
/**
* @license
* Copyright (c) 2019 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polym... |
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS Glue
*/
export interface GlueUserDefinedFunctionConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/glue_us... |
import stream from "stream";
import { promisify } from "util";
import path from "path";
import fse from "fs-extra";
import fetch from "node-fetch";
import gunzip from "gunzip-maybe";
import tar from "tar-fs";
import * as semver from "semver";
import { fileURLToPath } from "url";
import { execSync } from "child_process"... |
class TagSet {
[tagk: string]: string;
}
class TagV {
[tagk: string]: string[];
}
class RateOptions {
counter: boolean;
counterMax: number;
resetValue: number;
}
class Query {
aggregator: string;
metric: string;
rate: boolean;
rateOptions: RateOptions;
tags: TagSet;
metric_tags: any;
downsample: string;
... |
import { Injectable } from '@angular/core';
import { Observable, of, from, throwError } from 'rxjs';
import { map, switchMap, tap, catchError, take } from 'rxjs/operators';
import * as firebase from 'firebase';
import { Cacheable } from 'ngx-cacheable';
import { Storage } from '@ionic/storage';
import { HttpErrorRespon... |
<reponame>Agrimonia/azure-iot-sdk-node<gh_stars>0
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
import { Stream } from 'stream';
import * as dbg from 'debug';
const debug = dbg('azure-iot-device:Inte... |
import * as React from 'react';
import Grid from '@material-ui/core/Grid';
import MenuItem from '@material-ui/core/MenuItem';
import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';
import { ValidatorForm, TextValidator } from 'react-material-ui-form-validator';
import Phon... |
import {
Rpc,
TW_SAB_MUTEX_PTR,
TW_SAB_MESSAGE_COUNT_PTR,
mutexLock,
mutexUnlock,
assertNotNull,
} from "common";
import { Worker, TaskWorkerRpc, TaskWorkerEvent } from "rpc_types";
import { ZerdeParser } from "zerde";
/// <reference lib="WebWorker" />
// This "task worker" is a special worker that helps ... |
<reponame>mlorinc/vscode-wsdl2rest<filename>src/extension.ts
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You unde... |
import React, { useState, useEffect } from 'react';
import {
DataToolbar,
DataToolbarItem,
DataToolbarContent,
DataToolbarFilter,
DataToolbarToggleGroup,
DataToolbarGroup,
Button,
Select,
SelectOption,
SelectVariant,
InputGroup,
TextInput,
Dropdown,
DropdownToggle,
DropdownToggleCheckbox,
... |
/**
* Copyright 2020 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 agreed to... |
import { Tensor, RecursiveArray, losses, squeeze, tensor, stack, sigmoid, softmax } from '@tensorflow/tfjs-core';
import { layers, sequential, Sequential, regularizers, callbacks, initializers } from '@tensorflow/tfjs-layers';
import { Optimizer } from '@tensorflow/tfjs-core';
import { checkArray } from '../../utils/v... |
<gh_stars>0
// (C) 2007-2020 GoodData Corporation
import { getMappingHeaderName, IMappingHeader, DataViewFacade } from "@gooddata/sdk-ui";
import { getIdsFromUri, getTreeLeaves } from "./agGridUtils";
import {
COLUMN_GROUPING_DELIMITER,
FIELD_SEPARATOR,
ID_SEPARATOR,
ROW_ATTRIBUTE_COLUMN,
} from "./agG... |
import classNames from "classnames";
import { Formik, FormikErrors } from "formik";
import Router from "next/router";
import React, { useState } from "react";
import Dropzone from "react-dropzone";
import Layout from "../../../components/layout";
import { IFile, IProduct } from "../../../interfaces";
import * as Auth f... |
// Do this as the first thing so that any code reading it knows the right env.});
import '@moped/env/development';
import {join} from 'path';
import {
getHostInfoPair,
getSingleHostInfo,
HostInfoPair,
HostInfoSingle,
} from '@moped/get-host-info';
import chalk from 'chalk';
import ms = require('ms');
import {En... |
<reponame>krondev/molva
import { VERSION, timestamp, FeedMessage, Types, Maybe, sleep } from '@dotstats/common';
import { State, Update, Node } from './state';
import { PersistentSet } from './persist';
import { getHashData, setHashData } from './utils';
const { Actions } = FeedMessage;
const TIMEOUT_BASE = (1000 * 5... |
import { Geometry } from "../geometry/Geometry";
import { Domain3, Util, Vector2 } from "../lib";
import { Matrix4 } from "../math/Matrix4";
import { Random } from "../math/Random";
import { Vector3 } from "../math/Vector3";
import { FloatMatrix } from "./FloatMatrix";
import { MultiVector } from "./MultiVector";
impor... |
//
// Copyright (c) 2016 THUNDERBEAST GAMES LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... |
<reponame>webknjaz/vscode-ansible-1<gh_stars>10-100
import {
CompletionItem,
CompletionItemKind,
MarkupContent,
Range,
TextEdit,
} from 'vscode-languageserver';
import { Position, TextDocument } from 'vscode-languageserver-textdocument';
import { Node, Scalar, YAMLMap } from 'yaml/types';
import { IOption } f... |
<filename>src/common/sourceUtils.ts
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
import { parseExpressionAt, Parser } from 'acorn';
import { generate } from 'astring';
import { repla... |
<filename>src/dal/billing.ts
/**
* Imports
*/
import * as Billing from '../models/v1/billing';
import Config from '../helpers/config'
/*eslint-enable */
import _init from './_init';
// @ts-ignore
import Coinpayments = require('coinpayments');
/*eslint-disable */
// @ts-ignore
import checkoutNodeJssdk = require('@payp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.