text stringlengths 3.3k 33k |
|---|
/*
* Licensed to the Kassenärztliche Bundesvereinigung (KBV) (c) 2020 - 2021 under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The KBV licenses this file
* to you under the Apache License, Version 2.... |
import {promises as fs} from 'fs';
import path from 'path';
import plugin from 'fastify-plugin';
import _ from 'lodash';
// @ts-ignore
import logger from '../lib/logger';
/* eslint-disable no-unused-vars */
import type {SlackInterface, SlashCommandEndpoint} from '../lib/slack';
import {getMemberName, getMemberIcon} fro... |
<reponame>Shin-JaeHeon/shinjaeheon-exchange-api<filename>index.ts<gh_stars>1-10
import request = require('request');
import requestPromise = require('request-promise');
const arrayLen24 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
const remove = (str: string, remove: string) => {
if (t... |
import { removeItem, is, mapSet, Sort } from '@toba/tools'
import { ISyndicate, AtomFeed, AtomPerson } from '@toba/feed'
import { GeoJSON, IMappable } from '@toba/map'
import { Post, Category, Photo, EXIF, PostProvider, config } from './index'
import { ensurePostProvider } from './providers'
import { ensureConfig } fro... |
import {
AnnotationPredicate, ServiceName, DefinitionPredicate, Middleware,
ServiceFactory, onMiddlewareAttach
} from './types';
import {Definition} from './Definition';
import * as errors from './errors';
import {assertNoCircularDependencies} from './assertNoCircularDependencies';
import {ContainerArg} from '.... |
import DialogContentText from "@material-ui/core/DialogContentText";
import * as React from "react";
import { Route } from "react-router-dom";
import ActionDialog from "../../components/ActionDialog";
import AssignSkillDialog from "../../components/AssignSkillDialog";
import Messages from "../../components/messages";
... |
/**
* swf2js (version 0.7.8)
* Develop: https://github.com/ienaga/swf2js
* ReadMe: https://github.com/ienaga/swf2js/blob/master/README.md
* Web: https://swf2js.wordpress.com
* Contact: <EMAIL>
* Copyright (c) 2013 <NAME>. Licensed under the MIT License.
*/
import { ColorTransform } from './utils';
import { Fill... |
import {expect} from "chai";
import "mocha";
import {retry} from "ts-retry-promise";
import {PromiseCache} from "../src/promise-cache";
describe("Promise Cache", () => {
it("can use", async () => {
const cache = new PromiseCache<string>((key) => Promise.resolve(key));
const value = await cache.ge... |
<gh_stars>1-10
import { FeatureFlag, IDifference } from '@packagaya/adapter/dist/FeatureFlag';
import { IConfig } from '@packagaya/config/dist/IConfig';
import { LocalFileSystem } from '@packagaya/definitions/dist/LocalFileSystem';
import { DependencyType } from '@packagaya/package/dist/DependencyType';
import { IPacka... |
import * as assert from 'assert';
import { EditorState, ContentState } from 'draft-js';
import { eq } from 'lodash/fp';
import { getContiguousStyleRangesAtOffset, stripStylesFromBlock, getDeletedCharactersFromChange, Range, performUnUndoableEdits, getInsertedCharactersFromChange, getContiguousStyleRangesNearOffset, get... |
import { VNode } from 'snabbdom/vnode';
import h from 'snabbdom/h';
import { Type, Inject, PostConstruct } from '../di';
import {
Renderable,
RemoveChildArgs,
AddChildArgs,
ConfiguredRenderable,
BaseModificationArgs,
RenderableDestroyContext
} from '../dom';
import { BeforeDestroyEvent } from '../events';
... |
<gh_stars>1-10
import {applyAlpha} from '../utils/color';
import {BLAU_SKIN} from './constants';
import type {GetSkin} from './types';
export const palette = {
blauBluePrimary: '#00B6F1',
blauBluePrimary10: '#F7FDFF',
blauBluePrimary20: '#E5F6FD',
blauBluePrimary30: '#B3E9FB',
blauBlueSecondary: ... |
<reponame>dumbNickname/platform-frontend
import ledgerWalletProvider from "ledger-wallet-provider";
import * as semver from "semver";
import * as Web3 from "web3";
import * as Web3ProviderEngine from "web3-provider-engine";
// tslint:disable-next-line
import * as RpcSubprovider from "web3-provider-engine/subproviders/r... |
import { get, intersection } from "lodash";
import * as enums from "../destinyEnums";
import { getLower } from "lib/utils";
import _normalizeText from "normalize-text";
type Hash = number | string;
const isIndex = (obj: any, phrase: Hash) => {
return obj.def.index === phrase;
};
const isItemCategoryHash = (obj: an... |
//! import core engine.
import engine, { LemonEngine } from '../src/index';
import { LemonEngineModel, MysqlProxy, DynamoProxy, RedisProxy, Elastic6Proxy } from '../src/index';
import { HttpProxy, WebProxy, S3Proxy, SQSProxy, SNSProxy, SESProxy } from '../src/index';
import { CognitoProxy, LambdaProxy, ProtocolProxy, ... |
function initStatePlaying() {
var x = document.getElementsByClassName('restartline')[0] as HTMLElement;
x.style.display = 'inline-block';
}
function resetGame() {
clear();
generateWorld();
d.portrait = 'portraitplayer';
d.level = 1;
d.experience = 0;
d.strength = 5;
d.dexterity = 5;
d.agility = 5;
d.co... |
<filename>dashboard/src/libraries/helpers/editService.ts
import 'types/yup';
import * as cron from 'cron-validator';
import {
getFieldRequiredMessage,
MESSAGE_DOCKERFILE_PATH_MUST_BE_RELATIVE,
MESSAGE_ENV_VAR_NAME_MUST_BE_UNIQUE,
MESSAGE_INVALID_CRON_PATTERN,
MESSAGE_PORT_MUST_BE_INTEGER,
MESSAGE_STATIC_OU... |
import './App.css';
import {useCallback, useEffect, useState} from "react";
import OIDC, { UserManager, UserManagerSettings} from "oidc-client";
import SpotifyWebApi from "spotify-web-api-js";
import spotifyLogo from "./Spotify_Logo_RGB_Green.png"
import {AudioAnalysis, StructuredAudioAnalysis} from "./Analysis";
impo... |
import {
Loop,
InputTracker,
GraphicsTerminal,
TerminalConfig,
CharacterSet,
Vector2,
OutputTerminal,
getIndex
} from 'terminaltxt';
import io from 'socket.io-client';
import { LightCycle } from './LightCycle';
import { userControls } from './user-controls';
import { Direction } from './Direction';
impo... |
import fs from "fs";
import path from "path";
import got from "got";
import format from "date-fns/format";
import utcToZoneTime from "date-fns-tz/utcToZonedTime";
import prisma from "$server/utils/prisma";
import type { Prisma, User, Book, ZoomMeeting } from "@prisma/client";
import type { UserSettingsProps } from "$s... |
<filename>Samples/Widgets/infor.sample.angular.lifecycle/lifecycle.component.ts
/**
* The purpose of this sample is to give some insight into how and when lifecycle
* events are fired, and how to react to them. It logs both Angular and Widget
* lifecycle events. It can be configured in the settings UI to display ... |
import { EventEmitter } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { LoadOptions } from 'devextreme/data/load_options';
import { of } from 'rxjs';
import CustomStore from 'devextreme/data/custom_store';
import { UdfStoreOptions } from './udf-store-options';
import { UdfDisjunction ... |
<gh_stars>1-10
import * as core from '@actions/core';
import { Context } from '@actions/github/lib/context';
import { exec, strictExec } from './exec';
import { CIContext, GitContextOutput } from './output';
/**
* Declares Git context Input
*/
export class GitContextInput {
static readonly DEFAULT_BRANCH = 'main'... |
import { ReactComponent as BAGicon } from '~/assets/icons/coins/bag.svg'
import { ReactComponent as USDCicon } from '~/assets/icons/coins/usdc.svg'
import { ReactComponent as USDapicon } from '~/assets/icons/coins/usdap.svg'
import { ReactComponent as DaiIcon } from '~/assets/icons/coins/dai.svg'
import { ReactComponen... |
<reponame>louis-tru/nkit
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2015, xuewen.chu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * ... |
import * as argon2 from "argon2";
import * as crypto from "crypto";
import { Bottle } from "./bottle";
import { BottleCap, BottleType } from "./bottle_cap";
import { Header } from "./header";
import { byteReader, asyncIter } from "ballvalve";
import { asyncOne } from "./async";
interface CryptoParams {
cipherName: c... |
import { getProjects, Tree } from '@nrwl/devkit';
import {
logger,
formatFiles,
applyChangesToString,
ChangeType,
} from '@nrwl/devkit';
import ts = require('typescript');
import { findNodes } from '@nrwl/workspace/src/utilities/typescript/find-nodes';
export async function migrateToWebPack5(tree: Tree) {
a... |
import React, { useContext, useEffect, useState } from "react";
import { IFunctionParam, StateMutability, IFuncTemplate } from "../types";
import { WaitingForTransactionMessage } from "../WaitingForTransactionMessage";
import { Notification } from "../Notification";
import { Web3Context } from "../../contexts/Context";... |
<gh_stars>0
import Rect from "parsegraph-rect";
import { Keystroke } from "parsegraph-window";
import Font from "./Font";
import GlyphPainter from "./GlyphPainter";
import Line from "./Line";
const ctrlKeys: string[] = [
"Control",
"Alt",
"Shift",
"ArrowLeft",
"ArrowRight",
"ArrowDown",
"ArrowUp",
"Del... |
import * as React from 'react';
import styled from 'styled-components';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import { getIxoWorldRoute } from 'src/utils/formatters';
// const xIcon = require('../../assets/images/oval-x-icon.png');
const Inner = styled.div`
position:relative;
z-index:2;
backgr... |
<filename>src/utils/i18n/i18n.ts<gh_stars>10-100
import { sprintf, vsprintf } from 'sprintf-js';
import Vue, { PluginObject } from 'vue';
declare module 'vue/types/vue' {
interface Vue {
$i18n: Messages;
}
}
/**
* This package provides language and locales utilities.
*/
/**
* French language code... |
<filename>src/state/index.ts
/**
* `meiosis-routing/state`
*
* The `state` module contains functions for managing routes in the application state.
*
* @module state
*/
/**
* Route segment params.
*/
export type Params = Record<string, any>;
/**
* A route segment.
*/
export interface RouteSegment {
id: str... |
<reponame>cloud-hybrid/cloud-factory
// https://www.terraform.io/docs/providers/aws/r/cloudcontrolapi_resource
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
// Configuration
export interface CloudcontrolapiResourceConfig extends cdktf.TerraformMet... |
<gh_stars>10-100
// NOTE: See https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
// This is solution 2
/* eslint-disable no-bitwise,no-nested-ternary,no-plusplus */
function b64ToUint6(nChr: number) {
return nChr > 64 && nChr < 91
? nChr - 65
: nChr > 96 && nChr < 123... |
<filename>src/main.ts<gh_stars>0
import * as core from '@actions/core'
import * as github from '@actions/github'
import * as Webhooks from '@octokit/webhooks'
import Clubhouse, {Label as ClubhouseLabel, Story} from 'clubhouse-lib'
type GithubLabel = {name: string; color: string}
type LabelMap = Record<string, string>... |
import NetRegexes from '../../../../resources/netregexes';
import ZoneId from '../../../../resources/zone_id';
import { OopsyData } from '../../../../types/data';
import { NetMatches } from '../../../../types/net_matches';
import { CactbotBaseRegExp } from '../../../../types/net_trigger';
import { OopsyMistakeType... |
const lastNames = [
'Laine',
'Blackwell',
'Gregson',
'Labrum',
'Sciacca',
'Goebel',
'Hartl',
'Carr',
'Hefner',
'Mccourt',
'Cleek',
'Fallin',
'Doud',
'Warrick',
'Berger',
'Jeff',
'Frigo',
'Huson',
'Yonts',
'Jerry',
'Poitras',
'Hem',
'Donahoe',
'Castorena',
'Burbidge',
... |
<reponame>winton/ast<gh_stars>1-10
import SQLString from '../collectors/SQLString.js'
import EmptyJoinError from '../errors/EmptyJoinError.js'
import EngineNotSetError from '../errors/EngineNotSetError.js'
import VisitorNotSetError from '../errors/VisitorNotSetError.js'
import Comment from '../nodes/Comment.js'
impor... |
if (!isnode()) {
/**
* AJAX runner base
*/
let AJAX = null;
/**
* Ajax dump base
*/
let dumpAjax = false;
/**
* Ajax indicator base
*/
let indicatorAjax = false;
const ajaxIDLoader =
"ajxLoader_" +
Math.random().toString(36).substring(2) +
... |
/** @jsx jsx */
import {jsx, css} from "@emotion/react";
import Router from 'next/router'
import * as React from "react";
import Web3 from "web3";
import Web3Modal from "web3modal";
import {IAssetData} from "@components/core/web3/types";
import {getChainData} from "@components/core/web3/network";
import {getProviderOp... |
<filename>src/lib/buildDOM.ts
import { Action, Callbacks, ConvertObjectWithCallbacks, foreachFlaten, Func, FuncOrVal, Ref } from "./utils";
import { addChild, getDOM, View } from "./view";
// BuildDOM types & implementation:
export type BuildDomExpr = string | BuildDomNode | HTMLElement | Node | IDOM;
export type IDO... |
<filename>src/OkCore/Helpers.ts
import { OkHiNativeModule, OkHiNativeEvents } from '../OkHiNativeModule';
import { Alert, PermissionsAndroid, Platform } from 'react-native';
import { errorHandler, isValidPlatform } from './_helpers';
import type {
LocationPermissionCallback,
LocationPermissionStatus,
LocationRequ... |
<gh_stars>1-10
import Weapon from "./Weapon";
import weaponFactory from "./weaponFactory";
import { Howler } from "howler";
import { Coordinates2D, DestroyerOptions } from "./types";
export class Destroyer {
currentWeapon: Weapon;
currentWeaponID: number;
cursorLayer: HTMLDivElement;
drawingCTX: CanvasRenderin... |
import { EventEmitter } from 'events';
import cloneDeep from 'lodash.clonedeep';
import { enumerable, isFunction, waterfall } from '../utils';
import { OperationLoader } from '../operation-loader';
import FetcherCore from '../operations/core/fetcher-core';
import ProcessorCore from '../operations/core/processor-core';
... |
<gh_stars>0
/// <reference path="../typings/index.d.ts" />
import escape from './escape'
import objectKeys from './object-keys'
import regexEscape from './regex-escape'
import stringTrim from './string-trim'
enum RegEx {
FULL_MATCH = 0
}
export default class Compiler implements Templata.ICompiler {
public st... |
import React from "react"
import lightResumePdf from "./static/resume-light.pdf"
import darkResumePdf from "./static/resume-dark.pdf"
import { ResumeYamlExperience, ResumeQuery } from "~types/gatsby-graphql"
import { Tooltip } from "~components/Tooltip"
import styled from "@emotion/styled"
import Timeline from "./Timel... |
import { Logger, coerce, Time, template, remove } from 'koishi-utils'
import { Argv } from './parser'
import { Context, Disposable, NextFunction } from './context'
import { User, Channel } from './database'
import { FieldCollector, Session } from './session'
import { inspect, format } from 'util'
const logger = new Lo... |
import Direction from '../config/direction';
import GameConfig from '../config/game';
import Groups from '../config/groups';
import GameHelper from '../helpers/game';
import { Actor, DamageType } from '../types/actor';
import { OnAttacked, OnAttackEnemy, PhysicBody, Scene } from '../types/global';
import { MonsterStats... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import i18next from 'i18next';
import { ReactGridInstance, Column, Formatters, SlickDataView, SlickGrid, ReactSlickgridCustomElement } from '../../slickgrid-react';
import './example8.scss'; // provide custom CSS/SASS styling
import React from 'react';
import BaseS... |
<gh_stars>0
import log from 'loglevel';
import { EventData, PastEventOptions } from 'web3-eth-contract';
import { EventEmitter } from 'events';
import { PrefixedHexString } from 'ethereumjs-tx';
import { toBN, toHex } from 'web3-utils';
import {
address2topic,
AmountRequired,
boolString,
ContractInterac... |
<filename>src/app/model/consts.ts
export const Consts = {
mY: 18, mX: 38, mZ: 7,
tile_width: 75,
tile_height: 100
};
export const STATES = {
idle: 0,
run: 1,
pause: 2,
freeze: 3
};
export const Backgrounds: Array<{ img: string, name: string, small?: boolean }> = [
{img: undefined, name: 'None'},
{img: 'bambo... |
import React, { useCallback, useState, useMemo, useRef } from 'react'
import {
gql,
useLazyQuery,
useMutation,
MutationFunction,
} from '@apollo/client'
import { useSnackbar } from 'notistack'
import { useForm } from 'react-hook-form'
import { yupResolver } from '@hookform/resolvers/yup'
import { object, stri... |
/*
* Copyright 2020 Inrupt Inc.
*
* 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, merge, publish, di... |
import { useState, useEffect, useRef, memo } from 'react'
import { Box } from '@material-ui/core';
import TextField from '../../inputs/TextField';
import ButtonAccent from '../../buttons/ButtonAccent';
import Button from '../../buttons/Button';
import getAnimations from './searchingAlgorithms';
function SearchingVisua... |
/* Grid Icons v3.4.0 */
export declare const gridiconsAddImage: string;
export declare const gridiconsAddOutline: string;
export declare const gridiconsAdd: string;
export declare const gridiconsAlignCenter: string;
export declare const gridiconsAlignImageCenter: string;
export declare const gridiconsAlignImageLeft: s... |
import perkDecks, { PerkDeckList } from 'data/abilities/perks'
import skills, { TreeNames } from 'data/abilities/skills'
import armours, { ArmourList } from 'data/character/armours'
import characters, { CharacterList } from 'data/character/characters'
import equipments, { EquipmentList } from 'data/character/equipment'... |
import cn from 'classnames'
import PropTypes from 'prop-types'
import React, { useRef } from 'react'
import { useUncontrolled } from 'uncontrollable'
import Button from './Button'
import { caretDown, caretUp } from './Icon'
import { useLocalizer, Localizer } from './Localization'
import NumberInput from './NumberInput'... |
<gh_stars>1-10
import { Message, MessageEmbed } from 'discord.js-light'
import { MyClient, Interaction } from '../classes'
import pkg from '../../package.json'
/**
* @fileoverview
* Kindly stolen from https://github.com/Giuliopime/HelpDesk/blob/master/commands/Utility/tutorial.js
*/
const raw = {
name: 'tutorial... |
<reponame>lucas-barros/cadhub<filename>app/api/src/services/projects/projects.ts<gh_stars>0
import type { Prisma, Project as ProjectType } from '@prisma/client'
import type { ResolverArgs } from '@redwoodjs/api'
import { uploadImage, makeSocialPublicIdServer } from 'src/lib/cloudinary'
import { db } from 'src/lib/db'
... |
<reponame>sebastianpodda/sardcoin-ui<filename>src/app/features/reserved-area/producer/coupon-create/coupon-create.component.ts
import {Component, OnDestroy, OnInit} from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { BlockUI, NgBlockUI } from 'ng-block-ui';
import { EditorChangeCont... |
<reponame>ekoleda-codaio/packs-sdk<gh_stars>1-10
import type {Credentials} from './auth_types';
import type {ExecutionContext} from '../api_types';
import type {FormulaSpecification} from '../runtime/types';
import {FormulaType} from '../runtime/types';
import type {MetadataContext} from '../api';
import type {Metadata... |
import type { IEventManager, IEventStore } from '../events';
import type { IBoard } from './board';
import type { ISet } from './set';
import { IModel, ModelType } from './model';
import { ICandidate, Candidate, Constants as CandidateConstants } from './candidate';
export const Constants = Object.freeze({
byteLen... |
import {ParseInfo, TokenInfo} from './rule.checker';
import {Field} from '@domain/data-preparation/pr-dataset';
export interface FuncInfo {
/** name */
name: string;
/** argument count */
argCount: number;
/** function type */
type: string;
}
export interface SuggestItem {
value: string;
title: ... |
import dotenv from 'dotenv'
dotenv.config()
import { Reshuffle, BaseHttpConnector, EventConfiguration } from 'reshuffle-base-connector'
import { Request, Response } from 'express'
import OAuthClient from 'intuit-oauth'
import crypto from 'crypto'
import QuickBooks from 'node-quickbooks'
const TOKEN_KEY_PREFIX = 'quick... |
/* eslint-disable @typescript-eslint/naming-convention */
"use strict"
import * as vscode from "vscode"
import * as path from "path"
import * as child_process from "child_process"
// Loads custom rule configuration
function loadCustomConfig() {}
var colors: any = {}
function getColorDecoration(color = "#FF0000") {
... |
import * as React from 'react';
import { NoSSR } from '../NoSSR';
import Modal from './Portal';
import { merge } from 'macoolka-object';
import { delayFunction } from '../Delay'
const SCROLL_THROTTLE_DELAY = 20;
export type slidePriorityType =
'slideOnCurrentEdge' |
'slideOnOppositeEdge' |
'slideOnAdjacentEdge... |
import {} from "mocha";
import { expect } from "chai";
import supertest from "supertest";
import express from "express";
import { Client } from "@elastic/elasticsearch";
import _ from "lodash";
import casual from "casual";
import createApiRouter from "../createApiRouter";
import {
buildDatasetsIndex as buildDatase... |
import chokidar from 'chokidar'
import Debug from 'debug'
import findDown from '@src/modules/find-down'
import _ from 'lodash'
import path, {join, relative} from 'path'
import fs from 'fs'
import updateExcludes from '@src/modules/update-excludes'
import escapeStringRegexp from 'escape-string-regexp'
import existsSync f... |
import { AppState } from '../App';
import Artifact from '../artifact/Artifact';
import { initArtifactSet } from '../artifact/ArtifactSetUtil';
import { ArtifactType, InputStat } from '../artifact/types';
import { initCharacter } from '../character/CharacterUtil';
import CritType from '../modifier/CritType';
import Reac... |
<filename>src/demux/id3.ts
type RawFrame = { type: string; size: number; data: Uint8Array };
// breaking up those two types in order to clarify what is happening in the decoding path.
type DecodedFrame<T> = { key: string; data: T; info?: any };
export type Frame = DecodedFrame<ArrayBuffer | string>;
/**
* Returns tr... |
<gh_stars>1-10
import { expect } from "chai";
import { green, grey, red } from "chalk";
import * as fs from "fs";
import * as inquirer from "inquirer";
import * as path from "path";
import * as pluralize from "pluralize";
import { expectWithMessage, TestSuite } from "../test";
const apTitleCase = require("ap-style-ti... |
/* eslint-disable @next/next/no-html-link-for-pages */
/* eslint-disable no-unused-vars */
import { ChartBarIcon, CursorClickIcon, RefreshIcon, ShieldCheckIcon, ViewGridIcon, MenuIcon, XIcon } from '@heroicons/react/outline'
import { Dialog, Popover, Transition } from '@headlessui/react'
import { FaRegUser } from 'reac... |
/* tslint:disable */
import Logger from "../../logger";
import PostgresAdapter from "../../data_storage/adapters/postgres/postgres";
import MetatypeKeyStorage from "../../data_storage/metatype_key_storage";
import MetatypeStorage from "../../data_storage/metatype_storage";
import faker from "faker";
import {expect} fro... |
<reponame>siertech/stapi<filename>WebContent/java2/WebContent/node_modules/sidebarjs/src/sidebarElement.ts
import { HTMLSidebarElement, SidebarBase, SidebarConfig, SidebarPosition } from '../index';
const SIDEBARJS: string = 'sidebarjs';
const SIDEBARJS_CONTENT: string = 'sidebarjs-content';
const IS_VISIBLE: string =... |
import { graphql, Link } from 'gatsby';
import Img from 'gatsby-image';
import * as _ from 'lodash';
import { setLightness } from 'polished';
import * as React from 'react';
import styled from '@emotion/styled';
import { css } from '@emotion/core';
import { Helmet } from 'react-helmet';
import { DiscussionEmbed } from ... |
import angular from 'core/angular';
import { BlipSelect } from 'blip-toolkit';
import * as uuid from 'uuid';
import { IComponentController, IOnChangesObject } from 'angular';
import { ComponentController } from '../base';
import { EventEmitter } from 'shared/EventEmitter';
const BLIP_SELECT_PREFIX = 'blip-select-';
ex... |
import { NextRouter } from 'next/router'
import toast from 'react-hot-toast'
import JSZip from 'jszip'
import { useTranslation } from 'next-i18next'
import { fetcher } from '../utils/fetchWithSWR'
import { getStoredToken } from '../utils/protectedRouteHandler'
/**
* A loading toast component with file download progr... |
import React, { useContext, useCallback, useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import isNil from 'lodash/isNil';
import { isOneOf, createChainedFunction, useClassNames, KEY_VALUES } from '../utils';
import { SidenavContext } from '../Sidenav/Sidenav';
import { WithAsProps, RsRefForwardin... |
import * as React from 'react';
import ReactTimerMixin from 'react-timer-mixin';
import Pagination from '../pagination';
import {
View,
Text,
ScrollView,
ViewPagerAndroid,
Platform,
Dimensions,
ViewStyle,
ActivityIndicator,
} from 'react-native';
import styles from './style';
let {width, height} = Dime... |
<filename>lib/rules-util.ts
import type { Rule } from "eslint";
import type { RegExpLiteral, SourceLocation } from "estree";
import { RegExpParser, visitRegExpAST } from "regexpp";
import { Alternative, CharacterClassElement, Element, Flags, Pattern, Quantifier } from "regexpp/ast";
import { RegExpVisitor } from "regex... |
<filename>src/IKSolver.ts<gh_stars>1-10
import {
Quat,
NumberParameter,
Operator,
Registry,
Xfo,
Vec3,
Material,
GeomItem,
TreeItem,
Lines,
Color,
MathFunctions,
Vec3Attribute,
XfoOperatorInput,
XfoOperatorOutput,
XfoParameter,
OperatorOutput,
} from '@zeainc/zea-engine'
const X_AXIS ... |
<filename>webui/item_icons.ts<gh_stars>100-1000
import react = require('react');
import style = require('ts-style');
import underscore = require('underscore');
import urijs = require('urijs');
import { div, img } from './base/dom_factory';
import err_util = require('../lib/base/err_util');
import event_stream = requir... |
import * as hljs from 'highlight.js';
import * as angular from 'angular';
import { getWatchers } from './utils';
import {
ex_single_element,
ex_multiple_element,
ex_return_entire_obj,
ex_custom_template,
ex_fill_options_from_html,
ex_rtl_support,
ex_remote_fetching,
ex_remote_fetching_multi,
ex_rem... |
/// <reference path='../../node_modules/js2glsl/js2glsl.d.ts'/>
import Glycerine = require('../../Glycerine');
import GlycerineCanvas = require('../../Canvas/Canvas');
import js2glsl = require("js2glsl")
import data = require('./data');
var model : { time: number, heartrate: number, label?: string }[] =
... |
import { expect } from "chai";
import { colors } from "../lib/levels";
import * as logger from "../lib/logger";
import { ILogDefinition } from "../lib/interfaces";
enum eLogTestType {
string,
object,
function,
unevaluatedFunction,
}
interface ILogData {
description: string;
data: string | unkn... |
import React from "react";
import { Header, Drawer, Settings, Themes, Footer, QuickBar } from "@Module/index";
import { Box, Hidden } from "@material-ui/core";
import useStyles from "@Layout/Default/DefaultStyle";
import { IProps, IState } from "@Layout/Default/Default";
import { useAppSettings } from "@Context/index";... |
<gh_stars>0
import { ZoneOptions } from "./models/zone";
import { DroughtLevel, Vegetation, TerrainType } from "./types";
interface TownOptions {
name: string;
x: number; // [0, 1], position relative to model width
y: number; // [0, 1], position relative to model height
terrainType?: TerrainType; // limit town... |
import pTimeout from "p-timeout";
import { PassThrough, Readable, Transform } from "stream";
import * as WebSocket from "ws";
import config from "../config";
import Iterator from "./iterator";
import logger from "./logger";
import * as assert from "assert";
export interface Message {
header?: {[key: string]: any};
... |
import { PRContext, sentByThisApp } from "../models/context";
import { hasReleaseLabels } from "../models/release";
import { Config, getConfig } from "../models/config";
import dedent from "dedent";
import {
createChecklist,
parseChecklists,
ChecklistItem,
moreThanOneItemChecked,
flattenChecklists,
} from "..... |
/*
* Copyright (C) 2019-2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
<reponame>ccuGabinete/appAtendimentoCamera
import { HttpClient } from '@angular/common/http';
import { CadastroService } from './../services/cadastro/cadastro.service';
import { Component, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';
import { Setores } from '../models/setores/setores';
import { Docu... |
import {
Center,
Heading,
Box,
AccordionItem,
Accordion,
AccordionButton,
AccordionIcon,
AccordionPanel,
VStack,
Text,
Icon,
Progress,
HStack,
Button,
Modal,
ModalOverlay,
ModalContent,
useDisclosure,
ModalBody,
Avatar,
AvatarGroup,
} from '@chakra-ui/react';
import StarRating... |
<reponame>Manish3323/esw-ts<filename>integration/contract/response.models.int.test.ts
// eslint-disable-next-line import/no-nodejs-modules
import fs from 'fs'
import * as D from 'io-ts/lib/Decoder'
// eslint-disable-next-line import/no-nodejs-modules
import path from 'path'
import { ContainerLifecycleStateD, Supervisor... |
<filename>src/actions/mparticle/mparticle_transaction.ts
import * as Hub from "../../hub"
import * as httpRequest from "request-promise-native"
import {
DEFAULT_CUSTOM_EVENT_TYPE,
DEFAULT_EVENT_NAME,
DEV_ENVIRONMENT,
EVENT,
EVENT_TYPE,
MAX_EVENTS_PER_BATCH,
MP_API_URL,
PROD_ENVIRONMENT,
USER,
VALI... |
<filename>Compiler/_codegen/Internal.ts
import {InternalNode, InternalNodeType} from '../_core/internal/Container';
import {IProgramMeta} from '../_core/internal/Storage';
import {ExpressionVisitor} from './Expression';
import {genSetUnreachablePathFlag} from './TClosure';
//#region Constants
const USE_UNREACHABLE_FL... |
import i18n = require("dojo/i18n!../../nls/resources");
import { Component, H, connect, ComponentProps } from "../../../Component";
import { genericSubtreeFromPath } from "../../../_utils";
import { ToggleOption } from "../../Buttons/Toggle";
import DateFilter from "../../Filters/DateFilter";
import ItemTypeFilt... |
<filename>packages/workspace/src/command-line/shared.ts
import { execSync } from 'child_process';
import * as fs from 'fs';
import { appRootPath } from '../utils/app-root';
import { readJsonFile } from '../utils/fileutils';
import { YargsAffectedOptions } from './run-tasks/affected';
import { output } from './output';
... |
/**
* Represents a WSDOT State Route Identifier
* @module RouteId
*/
import FormatError from "./FormatError";
/**
* Matches a state route ID. Regex.exec will return an array with four elements: the entire route name, SR, RRT, and RRQ
* @author <NAME>
*/
// routeRe = /^(\d{3})(?:((?:AR)|(?:[CH][DI])|(?:C[O])|(?... |
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Th... |
<filename>discovery-frontend/src/app/data-preparation/dataflow/dataflow-detail/add-dataset.component.ts
/*
* 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/li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.