text stringlengths 3.3k 33k |
|---|
import Quill from 'quill/core';
import autosize from 'autosize';
import { MyQuill } from './MyQuill';
export let T: {
apiUrl: string;
datetime: number;
pageId: number;
saveHash?: any;
} = {
apiUrl: 'https:\/\/inscriptum.js.org',
datetime: 0,
pageId: 0
};
(
function () {
var b = document.querySel... |
import * as cdk from '@aws-cdk/core';
import { RestApi, LambdaIntegration, Cors } from '@aws-cdk/aws-apigateway';
import { Table, AttributeType, BillingMode } from '@aws-cdk/aws-dynamodb';
import { Function, Runtime, Code, LayerVersion } from '@aws-cdk/aws-lambda';
import { Rule, Schedule } from '@aws-cdk/aws-events';
... |
<gh_stars>1-10
import {v4 as uuid4} from 'uuid';
import {DateTime} from 'luxon';
import { random } from 'bb26';
import { CarSimDataGenerator } from "@/lib/CarSimDataGeneration";
type CanContain = Car | null;
export type Dictionary = {
[x: string]: boolean | string | number | Dictionary | Dictionary[];
};
export ... |
<gh_stars>0
import { describe, before, Func, it, Test, Suite } from 'mocha'
import chai from 'chai'
import { GameEvent } from './GameEvent'
import { PotentialClass } from '../Entities/ports/PotentialClass'
import { LifeCycle } from '../Components/LifeCycle'
import { TestStep } from './TestStep'
import { GenericGameSyst... |
import normalize, { JsonApiResponse } from "json-api-normalizer";
import defaultsDeep from "lodash/defaultsDeep";
import isEqual from "lodash/isEqual";
import merge from "lodash/merge";
import mergeWith from "lodash/mergeWith";
import {
ApiDataState,
ApiModelData,
Entities,
Entity,
MetaData,
Ide... |
<filename>src/client/apiclient.ts
import { AxiosRequestConfig, AxiosResponse } from "axios";
import {lookupCompanyStatus, lookupCompanyType} from "./api.enumerations";
import logger from "../logger";
import { API_URL, EXTENSIONS_API_URL, EXTENSIONS_PROCESSOR_API_URL } from "../session/config";
import * as FormData from... |
<filename>src/policies/add-article-to-elife-subject-area-lists.ts
import * as O from 'fp-ts/Option';
import * as R from 'fp-ts/Record';
import * as T from 'fp-ts/Task';
import * as TE from 'fp-ts/TaskEither';
import { pipe } from 'fp-ts/function';
import { Ports as AddArticleToListPorts } from '../add-article-to-list';... |
import React, { useState, useEffect, useRef } from "react";
import ContentLoader from "react-content-loader";
import { styled, setup } from "goober";
import Arrow from "./Arrow";
setup(React.createElement);
interface slideProps {
image: string;
title: string;
description: string;
url?: string;
}
interface sl... |
import * as vscode from 'vscode';
import * as fs from 'fs';
import {vmRunInNewContext} from './scopelessfunctioncall';
import {EditorDocument} from './editordocument';
import {FileData} from './filedata';
import * as path from 'path';
/**
* Object used to pass parser information.
* Consists of the parser file path ... |
/* Converted from JavaScript to TypeScript by
* nmtigor (https://github.com/nmtigor) @2022
*/
/* Copyright 2012 Mozilla Foundation
*
* 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
*
*... |
<gh_stars>1-10
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import Pos2d, {
Bounds,
boundsAreEqual,
centerOf,
constrainBoxTo,
} from "../util/shape-math";
import { assert } from "../util/invariants";
import {
DraggableDescriptor,
DragState,
DragStateType,
DroppableLocation,
} from "./D... |
<reponame>sanraith/aoc2020
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { Bag, Day07Data } from '../../../../solutions';
import { Animation, Animator, Drawable, Pos } from '../animation';
import { VisualizationBaseComponent } from '../visualization.base.component';
@Component({
... |
<filename>src/lib/dot.ts
import Color from 'color';
import { PROVENANVE_VIEW_DEFINITIONS, VisualisationSettings } from '../components/context/VisualisationContext';
import {
NodeVariant,
NODE_VARIANTS,
PROVJSONBundle, PROVJSONDocument, tbdIsProvVizShape,
} from './definition/document';
import { Relation, RELATION... |
import React from "react";
import Link from "next/link";
import Grid from "@mui/material/Grid";
import Container from "@mui/material/Container";
import Typography from "@mui/material/Typography";
import Alert from "@mui/material/Alert";
import { styled } from "@mui/material/styles";
import Paper from "@mui/material/Pa... |
<filename>libs/drag-drop/src/lib/drag-drop/directives/draggable.directive.ts
import { Directive, ElementRef, Input, ContentChildren, QueryList, ContentChild, ViewContainerRef, AfterViewInit, OnChanges, OnDestroy, SimpleChanges, NgZone, Inject, Output, EventEmitter, forwardRef, HostBinding } from '@angular/core';
import... |
// Scanner.ts
interface LookBehindBase {
negative?: boolean;
}
interface LookBehindLiteral extends LookBehindBase {
literal: string;
ruleName?: never;
}
interface LookBehindRuleName extends LookBehindBase {
literal?: never;
ruleName: string;
}
type LookBehind = LookBehindLiteral | LookBehindRuleName;
export... |
import {
CallExpressionKind,
NodeKind,
IdentifierKind,
} from 'ast-types/gen/kinds'
import { NodePath } from 'ast-types/lib/node-path'
import { strict as assert } from 'assert'
import debug from 'debug'
import path from 'path'
import * as recast from 'recast'
import { NODE_CORE_MODULES, GLOBALS } from './consts'... |
import React, { ChangeEvent, useCallback, useState } from "react";
import { combineLatest } from "rxjs";
import { map } from "rxjs/operators";
import Accordion from "@material-ui/core/Accordion";
import AccordionSummary from "@material-ui/core/AccordionSummary";
import AccordionDetails from "@material-ui/core/Accordion... |
<filename>frontend/src/app/flow-editor/ui-blocks/renderers/dynamic_text.ts
import { Subscription } from "rxjs";
import { UiSignalService } from "../../../services/ui-signal.service";
import { DirectValue } from "../../direct_value";
import { FlowBlock, Area2D } from "../../flow_block";
import { UiFlowBlock, UiFlowBlock... |
import { BaseSolution, Input } from '../solution';
export class Solution extends BaseSolution {
description = `
--- Day 7: The Sum of Its Parts ---
You find yourself standing on a snow-covered coastline; apparently, you landed a little off course. The region is too hilly to see the North Pole from here, bu... |
import express, {Express} from "express";
import {slackRouter} from "./slack/slack-router";
import {githubRouter} from "./github/github-router";
import * as es6Promise from "es6-promise";
import "isomorphic-fetch";
// @ts-ignore
import {atob} from "atob";
// @ts-ignore
import {Blob} from "vblob";
import "formdata-polyf... |
import chai from "chai";
import { ethers, waffle } from "hardhat";
import { BigNumber, Contract, Wallet, Signer } from 'ethers';
import { deployMockContract } from '@ethereum-waffle/mock-contract';
import { ContractFactory } from "@ethersproject/contracts";
const { deployContract } = waffle
const { expect } = chai
im... |
<reponame>jrprice/webgpu-bandwidth
// Benchmark parameters.
let arraySize;
let workgroupSize;
let iterationsCoalesced;
let iterationsRandom;
// WebGPU objects.
let device: GPUDevice = null;
let queue: GPUQueue = null;
let aBuffer: GPUBuffer = null;
let bBuffer: GPUBuffer = null;
let cBuffer: GPUBuffer = null;
let inde... |
<gh_stars>10-100
import ThemedMixin, { theme } from '@dojo/framework/core/mixins/Themed';
import I18nMixin from '@dojo/framework/core/mixins/I18n';
import WidgetBase from '@dojo/framework/core/WidgetBase';
import messageBundle from '../../../nls/main';
import * as c from '@blocklang/bootstrap-classes';
import * as cs... |
import sharp, { OverlayOptions } from 'sharp';
// import { writeJSON, readJSON } from 'fs-extra';
import { MapStatsResp, DrawMaterial, PlayerInfo, PrintEvent, WorldDataSet, DrawContext } from './type';
import { map, mapLimit } from 'async';
import { DEFAULT_BACKGROUND_COLOR, PIXEL_LIMIT, ROOM_SIZE } from './constant';
... |
import React, {useContext, useEffect, useState, useRef, useCallback} from "react";
import styles from "./side-panel.module.scss";
import {MLTooltip} from "@marklogic/design-system";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faTrashAlt, faPencilAlt} from "@fortawesome/free-solid-svg-icons";... |
import * as crypto from "crypto";
import base64url from "base64url";
import * as jwkToPem from "jwk-to-pem";
import * as cbor from "cbor";
/**
* Spec for https://www.w3.org/TR/webauthn
*/
type ClientData = {
challenge: string;
origin: string;
type: string;
};
type AuthData = {
rpIdHash: Buffer;
flags: num... |
declare let _paq: Array<[string, string, boolean, number]>;
import React, { useEffect, useState, useRef, RefObject } from "react";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import { usePluginData } from "@docusaurus/useGlobalData";
import Link from "@docusaurus/Link";
import {
ExternalSou... |
import { Segment } from './parser.js';
// Normalize path to include only M, L, C, and Z commands
export function normalize(segments: Segment[]): Segment[] {
const out: Segment[] = [];
let lastType = '';
let cx = 0, cy = 0;
let subx = 0, suby = 0;
let lcx = 0, lcy = 0;
for (const { key, data } of segments... |
<filename>src/engine/index.ts
export interface Asset {
name: string;
path: string;
type: 'image';
}
export interface Pointer {
type: 'mouse' | 'touch';
x: number;
y: number;
}
type EngineTileClickedEventListener = (tileX: number, tileY: number) => void;
interface EngineEventMap {
tileClicked: EngineTil... |
<filename>packages/build/src/rollup.ts
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import url from '@rollup/plugin-url'
import image from '@rollup/plugin-image'
import copy from 'rollup-plugin-copy'
import minimist from 'minimist'
import {
default as resolve,
DEFAULTS as RE... |
// Copyright (c) 2019 Shellyl_N and Authors
// license: ISC
// https://github.com/shellyln
import React from 'react';
import { connect } from 'react-redux';
import { RouteComponentProps } from 'react-router-dom';
import { makeStyles,
useTheme } from '@mater... |
import * as express from 'express'
import { wrapAsync, wrapAsyncError } from './async-wrapper'
import { globalErrorHandler, makeGlobalErrorHandlerRemovable } from './global-error-handler'
import { ClassType, Controllers, ObjectInstance } from './interfaces'
import { isPromise, isReadableStream, isClass, isExpressApp, i... |
/* eslint-disable react/jsx-sort-props */
import * as React from 'react';
import * as vars from '../../styles/variables';
import AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
/**
* This is an auto-generated component and should not be edited
* manually in contributor pull requests... |
<filename>src/lib/format.ts
import padWithZero from '../utils/padWithZero';
import isLeapYear from './isLeapYear';
import padForMS from '../utils/padForMS';
// constants
import daysAbbr from '../constants/daysAbbr';
import daysFull from '../constants/daysFull';
import monthsAbbr from '../constants/monthsAbbr';
import m... |
import * as React from 'react';
import { RouteComponentProps, Link } from 'react-router-dom';
import { graphql, QueryProps } from 'react-apollo';
import { AcExamSettingListQuery } from '../../types';
import * as AcExamSettingListQueryGql from './AcExamSettingListQuery.graphql';
import withLoadingHandler from '../../.... |
import * as assert from 'assert-plus';
import { JsonPointer } from 'json-ptr';
export type Selector = (target: unknown) => string;
export type Matcher = (value: string) => boolean;
export type Handler = (it: unknown, context?: unknown) => void | Promise<void>;
export function prepareSelector(sel: string): Selector {... |
import React from 'react';
import styled from 'styled-components';
import { Utilities, HostType } from '@microsoft/office-js-helpers';
import queryString from 'query-string';
import cloneDeep from 'lodash/cloneDeep';
import Theme from 'common/lib/components/Theme';
import Console from 'common/lib/components/Console';
... |
/* eslint-disable @typescript-eslint/no-var-requires */
import socketIo from "socket.io";
import { jwtVerify } from "../utils/auth";
import { MeetingModel, Record } from "../model/meeting";
import { UserModel } from "../model/user";
import { ObjectId } from "bson";
import * as _ from "lodash";
const text = require("./... |
/* eslint-disable linebreak-style */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable linebreak-style */
import {
Chapter,
ChapterDetails,
Tag,
HomeSection,
LanguageCode,
Manga,
MangaStatus,
MangaTile,
TagSection,
SearchRequest
} from 'paperback-extensions... |
import {DatabaseActions} from "./DatabaseActions";
import type {CategoricalSummary, NumericSummary, TimeRangeSummary} from "$lib/types";
import type {DatabaseMetadata} from "$common/database-service/DatabaseMetadata";
import {sanitizeColumn} from "$common/utils/queryUtils";
import {TIMESTAMPS} from "$lib/duckdb-data-ty... |
import { Location } from "molstar/lib/mol-model/location";
import { StructureElement } from "molstar/lib/mol-model/structure";
import { LocationColor } from "molstar/lib/mol-theme/color";
// import { ColorTheme, LocationColor } from "molstar/lib/mol-theme/color";
import { Color } from "molstar/lib/mol-util/color";
// i... |
import { MouseEvent, useCallback, useEffect, useRef, useState } from 'react';
import cn from 'classnames';
import FullScreenIcon from 'components/icons/full-screen';
import PauseIcon from 'components/icons/pause';
import PlayIcon from 'components/icons/play';
/**
* Pads a given number with leading zeros until it rea... |
import path from 'path';
import fs from 'fs';
import { Types } from 'mongoose';
import Message from '../models/chat/Message';
import Chat, { ChatDoc } from '../models/chat/Chat';
import Operator, { OperatorProps } from '../models/chat/Operator';
import SessionManager from './SessionManager';
import Permissions from './... |
#!/usr/bin/env node
import * as pfs from "./utilities/promisified_fs";
import path = require("path");
import commander = require("commander");
import * as buildAccessor from "./accessors/build-accessor";
import * as githubAccessor from "./accessors/github-accessor";
import * as packageAccessor from "./accessors/packa... |
<filename>packages/contractkit/src/governance/proposals.ts
import { Address, isHexString, trimLeading0x } from '@celo/utils/lib/address'
import { BigNumber } from 'bignumber.js'
import debugFactory from 'debug'
import { isValidAddress, keccak256 } from 'ethereumjs-util'
import * as inquirer from 'inquirer'
import { Tra... |
import angular from 'angular';
import _ from 'lodash';
import $ from 'jquery';
class WhitefalconFuncEditor {
constructor() {
angular
.module('grafana.directives')
.directive('whitefalconFuncEditor', function ($compile, templateSrv) {
var funcSpanTemplate = '<a ng-cl... |
/*
* Copyright 2018- The Pixie 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 ag... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import classNames from 'classnames';
import RcMenu, { Divider, ItemGroup } from 'rc-menu';
import React from 'react';
import { polyfill } from 'react-lifecycles-compat';
import collapseMotion from '../utils/motion';
import raf from '../utils/raf';
import { warning } from '../utils/warning';
import MenuContext from '.... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { TokenType } from "./auth/token";
import { AccessToken } from "@azure/core-auth";
import {
EventContext,
ReceiverOptions,
Message as AmqpMessage,
SenderEvents,
ReceiverEvents,
Connection,
SenderOptions... |
<filename>src/backend/mi_parse.ts
export interface MIInfo {
token: number;
outOfBandRecord: Array<{ isStream: boolean, type: string, asyncClass: string, output: Array<[string, any]>, content: string }>;
resultRecords: { resultClass: string, results: Array<[string, any]> };
}
const octalMatch = /^[0-7]{3}/;... |
import * as React from 'react';
import { css } from 'styled-components';
import styled from '../../styles/Theme';
import { CSSTransition } from 'react-transition-group';
// Types
import { Float } from '../Types';
// Other controls
import { StandardInput } from './StandardInput';
import { InputBox as DateInputBox } fr... |
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from "relay-runtime";
export type UpdateMyProfileInput = {
artworksPerYear?: string | null;
bio?: string | null;
clientMutationId?: string | null;
collectorLevel?: number | null;
completedOnboarding?: boolean | null... |
/**
@module ember
*/
import { get } from '@ember/-internals/metal';
import { AnyFn } from '@ember/-internals/utils/types';
import { assert } from '@ember/debug';
import { flaggedInstrument } from '@ember/instrumentation';
import { join } from '@ember/runloop';
import { DEBUG } from '@glimmer/env';
import { CapturedArgu... |
// Type definitions for react-date-range 1.1
// Project: https://github.com/Adphorus/react-date-range/
// Definitions by: <NAME> <https://github.com/Junbong>
// <NAME> <https://github.com/DevsAnon>
// <NAME> <https://github.com/Curzy>
// Definitions: https://github.com/DefinitelyTyped/De... |
import ElementalData from "../Data/ElementalData"
import { StatKey, IArtifact, SubstatKey } from "../Types/artifact"
import { ArtifactSetEffects, ArtifactsBySlot, SetFilter } from "../Types/Build"
import { ArtifactSetKey, ElementKey, SetNum, SlotKey } from "../Types/consts"
import { BasicStats, BonusStats, ICalculatedS... |
import { MutationResultPair, useQueryCache, QueryResult, QueryStatus } from 'react-query';
import * as yup from 'yup';
import {
IOpenShiftProvider,
MappingType,
MappingSource,
MappingTarget,
Mapping,
POD_NETWORK,
IMetaObjectMeta,
SourceInventoryProvider,
} from './types';
import {
getAggregateQuerySta... |
/*
Copyright 2017 Geoloep
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
distrib... |
/**
* @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 {ActivatedRoute} from './router_state';
import {Params, PRIMARY_OUTLET} from './shared';
import {UrlSegment, U... |
<reponame>amishakov/nativefier
import path from 'path';
import {
dialog,
BrowserWindow,
BrowserWindowConstructorOptions,
Event,
MessageBoxReturnValue,
WebPreferences,
OnResponseStartedListenerDetails,
} from 'electron';
import { getCSSToInject, isOSX, nativeTabsSupported } from './helpers';
import * as ... |
<gh_stars>100-1000
/**
* The MIT License
*
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* 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... |
<reponame>diegoavanzini/grafana
import './graph';
import './series_overrides_ctrl';
import './thresholds_form';
import './time_regions_form';
import template from './template';
import _ from 'lodash';
import { MetricsPanelCtrl } from 'app/plugins/sdk';
import { DataProcessor } from './data_processor';
import { axesEd... |
import {
serve,
serveTLS,
HTTPSOptions,
HTTPOptions,
Server,
resolve,
fromFileUrl,
} from "../deps.ts";
import { methods } from "./methods.ts";
import { Router } from "./router/index.ts";
import { init } from "./middleware/init.ts";
import { query } from "./middleware/query.ts";
import { finalHandler } fr... |
import React, { useContext, useState, useEffect } from 'react';
import { Empty, Input, AutoComplete, Checkbox } from 'antd';
import { SelectProps } from 'antd/lib/select';
import { useHistory } from 'react-router-dom';
import classNames from 'classnames';
import Context from '../context';
import { Title } from '../comp... |
<filename>packages/astro-parser/src/parse/state/mustache.ts
import read_context from '../read/context.js';
import read_expression from '../read/expression.js';
import { closing_tag_omitted } from '../utils/html.js';
import { whitespace } from '../../utils/patterns.js';
import { trim_start, trim_end } from '../../utils/... |
import { Component, NgZone, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { QRScanner, QRScannerStatus } from '@ionic-native/qr-scanner/ngx';
import { AlertController } from '@ionic/angular';
import { TranslateService } from '@ngx-translate/core';
import { isObject }... |
import React, { useEffect, useState } from 'react'
import { createColumns, createFields, Crud, FormTypes, TableTypes, useAxios } from 'material-crud'
import { Button, IconButton, makeStyles, Tooltip, Typography } from '@material-ui/core'
import { useMemo } from 'react'
import { FaChevronCircleDown, FaChevronCircleUp, F... |
import React, { useEffect, useState } from 'react';
import { StyleSheet, TouchableOpacity, View } from 'react-native';
import { AmountValue } from 'components/AmountValue';
import { BlueButton } from 'components/BlueButton';
import { Receiver, ReceiverType } from 'components/Receiver';
import { EnterAddress } from 'com... |
import _ from 'lodash';
import React from 'react';
import ReactDOM from 'react-dom';
import { Change, Value } from 'slate';
import { Editor } from 'slate-react';
import Plain from 'slate-plain-serializer';
import ClearPlugin from './slate-plugins/clear';
import NewlinePlugin from './slate-plugins/newline';
import Typ... |
import dayjs from 'dayjs';
import express from 'express';
import { BAD_REQUEST, NOT_FOUND, UNPROCESSABLE_ENTITY } from 'http-status-codes';
import { FindOptionsOrder, getMongoManager } from 'typeorm';
import Attribute, { AttributeType } from '../models/Attribute';
import Product from '../models/Product';
import { regex... |
<filename>components/datepicker/datepicker-inner.component.ts
import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core';
import { DateFormatter } from './date-formatter';
const FORMAT_DAY = 'DD';
const FORMAT_MONTH = 'MMMM';
const FORMAT_YEAR = 'YYYY';
const FORMAT_DAY_HEADER = 'dd';
c... |
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { Component, DebugElement, ViewChild } from '@angular/core';
import { ComponentFixture, discardPeriodicTasks, TestBed, tick } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { NoopAnimationsModule } from ... |
<gh_stars>1-10
import { Terminal, Disposable } from 'vscode';
import { ChildProcess, spawn as spawnChildProcess } from "child_process";
import { Host } from './host';
import { FS } from './fs';
import { Shell, ShellHandler, ShellResult } from './shell';
import * as binutil from './binutil';
import { Errorable } from '.... |
/**
* @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 {ChangeDetectorRef} from '../change_detection/change_detector_ref';
import {InjectionToken} from '../di/injec... |
import React from 'react';
import styled from '@emotion/styled';
import classnames from 'classnames';
import { LocalizeInput } from '@seolhun/localize-components-forms';
import { LocalizeThemeProps } from '@seolhun/localize-components-styled-types';
import { DropdownSearchResultItem } from './DropdownSearchResultItem... |
<reponame>GroupMapPtyLtd/scim-patch
import {
ScimError,
InvalidScimPatch,
InvalidScimPatchOp,
NoPathInScimPatchOp,
InvalidScimPatchRequest,
NoTarget,
RemoveValueNestedArrayNotSupported,
RemoveValueNotArray,
InvalidScimRemoveValue, FilterOnEmptyArray
} from './errors/scimErrors';
impo... |
<gh_stars>0
import { Component, Optional, ContentChildren, ViewChild, QueryList, OnDestroy, ChangeDetectionStrategy,
AfterContentInit, AfterContentChecked, ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';
import { Subject, merge, of } from 'rxjs';
import { distinctUntilChanged, takeUntil } fr... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Dictionary} from 'mattermost-redux/types/utilities';
import {ServerError} from 'mattermost-redux/types/errors';
import {UserP... |
import classNames from "classnames";
import { Exocore, exocore, MutationBuilder, QueryBuilder, toProtoTimestamp, TraitQueryBuilder, WatchedQueryWrapper } from 'exocore';
import React from 'react';
import { exomind } from "../../../protos";
import { EntityTraits } from '../../../utils/entities';
import { ExpandableQuery... |
/**
* Copyright 2017-2020 Plexus Interop Deutsche Bank AG
* SPDX-License-Identifier: Apache-2.0
*
* 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/... |
/**
* Copyright (c) 2018-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { ParamDefinition as PD } from '../../mol-util/param-definition';
import { VolumeData, VolumeIsoValue } from '../../mol-model/volume';
import { Vis... |
import { Link } from "react-router-dom";
import { useSelector } from "react-redux";
import React from "react";
import { RootState } from "state";
import { selectAppState } from "state/selectors";
import { Bond } from "@klimadao/lib/constants";
import { trimWithPlaceholder } from "@klimadao/lib/utils";
import { ImageCar... |
<filename>src/source/canvas_source.ts
import ImageSource from './image_source';
import rasterBoundsAttributes from '../data/raster_bounds_attributes';
import SegmentVector from '../data/segment';
import Texture from '../render/texture';
import {ErrorEvent} from '../util/evented';
import ValidationError from '../style-... |
import type { JsonlDB } from "@alcalzone/jsonl-db";
import {
CommandClasses,
dskFromString,
dskToString,
NodeType,
SecurityClass,
securityClassOrder,
ZWaveError,
ZWaveErrorCodes,
} from "@zwave-js/core";
import { getEnumMemberName, num2hex, pickDeep } from "@zwave-js/shared";
import { isArray, isObject } from "... |
import type { CaseMatcherOutcome } from "src/lib/caseMatcher/caseMatcher"
import offenceHasFinalResult from "src/lib/offenceMatcher/offenceHasFinalResult"
import type { OffenceMatcherOutcome } from "src/lib/offenceMatcher/offenceMatcher"
import { matchOffences } from "src/lib/offenceMatcher/offenceMatcher"
import offen... |
// @ts-nocheck
import { Bone, SkinnedMesh } from 'three'
import { Object3D, Quaternion, Skeleton, Vector3 } from 'three'
import { SkeletonUtils } from '../../avatar/SkeletonUtils'
import { DOWN, LEFT, RIGHT } from '../constants/Vector3Constants'
import { spinBoneForward, alignChain, alignBoneForward, worldToModel } fro... |
// DEFAULT VALUES
import { fetchData, SERVER_CONFIG_UPDATE_URL } from './apis';
import { ApiPostArgs, VideoVariant, SocialHandle } from '../types/config-section';
import { TEXTFIELD_TYPE_URL } from '../components/config/form-textfield';
import { DEFAULT_TEXTFIELD_URL_PATTERN } from './urls';
export const TEXT_MAXLENGT... |
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from "@angular/core";
import { forkJoin, Observable, throwError as observableThrowError } from "rxjs";
import { catchError, finalize, map } from "rxjs/operators";
import { TranslateService } from "@ngx-translate/core";
import { HelmChartMaintainer, He... |
// Type definitions for N3 1.10
// Project: https://github.com/rdfjs/n3.js
// Definitions by: <NAME> <https://github.com/phreed>
// <NAME> <https://github.com/rubensworks>
// <NAME> <https://github.com/LaurensRietveld>
// <NAME> <https://github.com/joachimvh>
// ... |
import * as path from 'path'
import { basename } from 'path'
import * as util from 'util'
import generate from '@babel/generator'
import * as t from '@babel/types'
import { getStylesAtomic } from '@tamagui/core-node'
import { concatClassName } from '@tamagui/helpers'
import invariant from 'invariant'
import { getRemai... |
<gh_stars>0
/*
* Copyright 2022 Salto Labs Ltd.
*
* 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... |
import * as crypto from 'crypto';
import { EnvUtil } from '@travetto/boot';
import { Class, ClassInstance } from './types';
const REGEX_PAT = /[\/](.*)[\/](i|g|m|s)?/;
const MIN = 1000 * 60;
const DAY = 24 * MIN * 60;
const TIME_UNITS = {
y: DAY * 365,
M: DAY * 30,
w: DAY * 7,
d: DAY,
h: MIN * 60,
m: MIN,... |
import * as React from 'react';
import { styled, alpha } from '@material-ui/core/styles';
import Avatar, { AvatarProps } from '@material-ui/core/Avatar';
import Box, { BoxProps } from '@material-ui/core/Box';
import ROUTES from 'docs/src/route';
import Slide from 'docs/src/components/animation/Slide';
import FadeDelay ... |
import * as crypto from 'crypto';
import { Construct, Node } from 'constructs';
import { FileAssetPackaging } from './assets';
import { Fn } from './cfn-fn';
import { Aws } from './cfn-pseudo';
import { CfnResource } from './cfn-resource';
import { CfnStack } from './cloudformation.generated';
import { Duration } from ... |
/// <reference path="./skillMap.d.ts" />
const testMap = ``
interface MarkdownSection {
headerKind: "single" | "double" | "triple";
header: string;
attributes: { [index: string]: string };
listAttributes?: { [index: string]: string[] };
}
export function test() {
return parseSkillMap(testMap);
}... |
import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from "../constants.js";
import * as Text from "../text.js";
import Backend from "./backend.js";
import Hex from "./hex.js";
import Rect from "./rect.js";
import Term from "./term.js";
import TileGL from "./tile-gl.js";
import Tile from "./tile.js";
import { DisplayData, DisplayO... |
// @ts-nocheck
/* eslint-disable react/prop-types */
import * as React from 'react';
import classNames from 'classnames';
import { MenuItem, Tooltip } from '@material-ui/core';
import Cell from './TableCell';
import Icon from 'components/Icon/Icon';
import ControlPopover from '../ControlPopover/ControlPopover';
impor... |
import { addHexPrefix, toChecksumAddress } from 'ethereumjs-util';
import { TransactionReceipt, TransactionResponse } from 'ethers/providers';
import {
Arrayish,
BigNumber,
bigNumberify,
formatEther,
hexlify,
parseTransaction,
recoverAddress,
serializeTransaction,
Transaction
} from 'ethers/utils';
im... |
import { Channel, Packet } from '../../../../ibc/core/channel/v1/channel';
import { Height } from '../../../../ibc/core/client/v1/client';
import Long from 'long';
import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "ibc.core.channel.v1";
/**
* MsgChannelOpenInit defines an sdk.Msg to initiali... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.