text stringlengths 3.08k 15.5k |
|---|
/* eslint-disable prefer-arrow-callback */
import * as React from 'react';
import {
createPopper,
Modifier,
Placement,
VirtualElement,
Instance,
Options,
State,
ModifierArguments,
} from '@popperjs/core';
import { EnterHandler, ExitHandler } from 'react-transition-group/Transition';
import { setRef } f... |
<gh_stars>1-10
/**
* @preserve Copyright 2019-2021 <NAME>.
* This source code is subject to terms and conditions.
* See LICENSE.MD.
*/
import { angles } from "../Constants/Angles";
import GameRectangle from "../Models/GameRectangle";
import KeyboardState from "../State/Keyboard/KeyboardState";
import Angl... |
import { TestResult, TestStatus, RunResult, RunStatus } from 'stryker-api/test_runner';
import { Mutant } from 'stryker-api/mutant';
import { TranspileResult } from 'stryker-api/transpile';
import { Config } from 'stryker-api/config';
import * as sinon from 'sinon';
import { TestFramework, TestSelection } from 'stryker... |
'use strict'
const storage = `pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = ... |
import {
AfterContentInit,
AfterViewInit,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
OnInit,
ViewChild
} from '@angular/core';
import { getStyle } from '@coreui/utils/src';
import { ChartjsComponent } from '@coreui/angular-chartjs';
@Component({
selector: 'app-widgets-dropdown'... |
<reponame>AelasticS/aelastics-types
/*
* Copyright (c) AelasticS 2019.
*
*/
import {
appendPath,
Error,
Errors,
failure,
failures,
isFailure,
Path,
Result,
success,
validationError
} from 'aelastics-result'
import { ObjectTypeC, Props } from './ObjectType'
import {
Any,
ToDtoContext,
DtoTy... |
import {Component, ElementRef, Input, OnChanges, OnDestroy, OnInit, SimpleChanges} from '@angular/core';
import * as Chartist from 'chartist';
import {IPieChartOptions} from 'chartist';
// workaround, until https://github.com/DefinitelyTyped/DefinitelyTyped/pull/25839#issuecomment-389833225
// is merged
export interf... |
/*
* Original work Copyright 2012, <NAME>.
* Modified work Copyright 2021, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain t... |
import { get, $setting } from "./views/settings";
import { getROMBoards, IBoard, boardIsROM, setCurrentBoard, deleteBoard, copyCurrentBoard, getCurrentBoard } from "./boards";
import * as React from "react";
import { showDragZone, setDropHandler, hideDragZone } from "./utils/drag";
import { makeKeyClick } from "./utils... |
/*
* Copyright (c) 2021 <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and ... |
import React, { useRef, useEffect, useState } from 'react';
import { RouteComponentProps } from 'react-router-dom';
import { Tooltip, makeStyles, createStyles } from '@material-ui/core';
import { useTracking } from 'react-tracking';
import { motion } from 'framer-motion';
import { upperCut } from '../../../services/ani... |
import { compileSyntax, SyntaxDef, preventLeftRecursive, NonTerminalUnit, Terminal, terminalStringify, removeLeftFactor, Syntax, Production } from "../src/syntax-def";
import { Language, simpleLexPattern, Lexer } from "../src/lexer";
import { TopDownRecursiveAnalyser, stringifySyntaxTree } from "../src/syntax-analyse... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------... |
// tslint:disable:no-magic-numbers jsx-no-lambda
import {DeleteOutlined, IssuesCloseOutlined} from "@ant-design/icons/lib";
import {Card, Select, Tooltip} from "antd";
import * as React from "react";
import {BaseCard, IBaseCardItemLayout, IBaseCardRowLayout} from "../Base";
import {NO_DATA_TEXT} from "../const";
import... |
import { Duplex } from "stream";
import { fs } from "./fs";
import * as path from "path";
import bent from "bent";
import * as unzipper from "unzipper";
import {
PackageIndex,
DownloadOptions,
LogFunction,
PackageIdentifier,
PackageInfo,
QueryResponse
} from "./interfaces";
const
httpGet = ... |
import { createTheme, Grid, makeStyles } from '@material-ui/core';
import * as React from 'react';
import AltinnColumnLayout from 'app-shared/components/AltinnColumnLayout';
import AltinnSpinner from 'app-shared/components/AltinnSpinner';
import altinnTheme from 'app-shared/theme/altinnStudioTheme';
import { getLanguag... |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as path from 'path';
import { expect } from 'chai';
import { execCmd, TestSessio... |
import { clsx, useConfirm, useState } from '../imports/regular-imports'
import {
Button,
IconButton,
Input,
Dialog,
DialogActions,
DialogTitle,
DialogContent,
makeStyles,
createStyles,
TextField,
InputAdornment,
} from '../imports/gui-imports'
import {
Save,
Search,
... |
import { readFile } from 'fs';
import * as LRUMap from 'lru_map';
const CONTENT_CACHE: $TSFixMe = new LRUMap.default.LRUMap(100);
class Util {
private options: $TSFixMe;
public constructor(options: $TSFixMe) {
this.options = options;
}
public getErrorType(): void {
return {
... |
<gh_stars>100-1000
// Taken from https://github.com/feross/buffer
function utf8ToBytes(str:string) : number[] {
let codePoint;
const strLength = str.length;
let leadSurrogate;
const bytes:number[] = [];
for (let i = 0; i < strLength; ++i) {
codePoint = str.charCodeAt(i);
// is surr... |
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
<reponame>mdisibio/grafana-github-actions
import { GitHub, Issue } from '../api/api'
import { sortBy, difference } from 'lodash'
import { splitStringIntoLines } from '../common/utils'
export const CHANGELOG_LABEL = 'add to changelog'
export const BUG_LABEL = 'type/bug'
export const GRAFANA_TOOLKIT_LABEL = 'area/grafan... |
<gh_stars>1-10
import { Component, OnInit, Input, HostBinding, NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { MaterialModule } from '@angular/material';
import { MangolMap, MangolLayer } from '../core/_index';... |
import * as React from 'react';
import * as widgetsImport from './widgets'
import { OptionMenu } from './optionmenu'
import styled, { css } from 'styled-components';
import { WidgetType, CorePacket, WidgetAction } from './interfaces';
export function objectByString(obj: any, str: string) {
str = str.replace(/\[(\... |
<filename>src/layers/cubegraph-layer/index.ts
import { Layer } from '@deck.gl/core';
import GL from 'luma.gl/constants';
import { LayerProps, AttributeManager } from 'deck.gl';
import { Model, CubeGeometry } from 'luma.gl';
import vertex from './cubegraph-layer-vertex.glsl';
import fragment from './cubegraph-layer-frag... |
import React from 'react';
import Color from 'color-convert';
import styled, { CSSProperties } from 'styled-components';
import { useTheme } from '../providers/Theme';
import { shadows, Shadow } from '../utils/shadow';
import { isStyleProp } from '../utils/style';
import { useResponsiveContext } from '..';
export int... |
<reponame>lukasdiegelmann/jarvis-base
import chalk from "chalk";
import blessed from "blessed";
import path from "path";
import formatWebpackMessages from "webpack-format-messages";
import constructString from "../utils/logging/string-constructor";
import store from "../utils/state/store";
import { SimpleTerminal, Comp... |
import * as fs from "fs";
import * as path from "path";
import * as Mime from "mime";
import { api, log, Initializer } from "../index";
import { Connection } from "./../classes/connection";
async function asyncStats(file: string): Promise<{ [key: string]: any }> {
return new Promise((resolve, reject) => {
fs.sta... |
<reponame>njbrown/fast-time-input
//import { parse } from "url";
// https://stackoverflow.com/questions/2998784/how-to-output-integers-with-leading-zeros-in-javascript
export function pad(num: number, size: number) {
var s = num + "";
while (s.length < size) s = "0" + s;
return s;
}
// https://stackoverfl... |
<reponame>YuanboXue-Amber/endevor-scl-support
import {
TextDocument,
TextDocumentItem,
VersionedTextDocumentIdentifier,
TextDocumentContentChangeEvent,
TextDocumentPositionParams,
CompletionItem,
TextDocumentIdentifier,
TextEdit,
CompletionItemKind,
Position, Range,
Command,
... |
/** @jsx jsx */
import { Header as ThemeHeader, jsx, Styled } from "theme-ui"
import { animated, useSpring, config } from "react-spring"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
import useEmiliaConfig from "../hooks/use-emilia-config"
import HeaderBackground from "./header-b... |
<filename>src/app/model/name-genrator.ts
import { GeneratorOptions } from './generator-options';
import { LanguageModel } from './language-model';
import * as PriorityQueue from 'priorityqueuejs';
import { ParsedModel } from './model';
import * as pc from 'punycode';
import { Map } from 'immutable';
/**
* Utility fu... |
import createIntervalTree from './IntervalTree'
const toIdSorted = result => result.map(([id]) => id).sort((a, b) => a - b)
const toExpectedIdSorted = result =>
result.map(([, , id]) => id).sort((a, b) => a - b)
const shuffle = original => {
const array = original.concat()
for (let i = array.length - 1; i > 0; i... |
<reponame>kacgrzes/use-pomodoro
import {
useCallback,
useReducer,
createContext,
FC,
useContext,
useMemo,
createElement,
useEffect,
} from "react";
import { useInterval } from "./useInterval";
import { PomodoroState, PomodoroAction, PomodoroType, PomodoroConfig } from './types'
import { defaultConfig } ... |
// @ts-ignore
import vis from 'visjs-network';
import { variableAdapters } from '../adapters';
import { DashboardModel } from '../../dashboard/state';
import { isAdHoc } from '../guard';
import { safeStringifyValue } from '../../../core/utils/explore';
import { VariableModel } from '../types';
import { containsVariabl... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* An AccessLevel is a label that can be applied to reques... |
import { FunctionResolverImpl } from './function-resolver';
import { NamespaceResolverImpl } from './namespace-resolver';
import { VariableResolverImpl } from './variable-resolver';
import { XPath } from './xpath';
import { XPathParser } from './xpath-parser';
import { Expression, FunctionType, XBoolean, XNodeSet, XNum... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import {Logger, Profiler} from '../../instrument';
import {Tensor} from '../../tensor';
import {Encoder} from './texture-data-encoder';
import {TextureLayoutStrategy} from './texture-layout-strategy';
import {TextureData, ... |
import * as React from 'react';
import SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon';
import { makeStyles, createStyles } from '@material-ui/core/styles';
import TreeView from '@material-ui/lab/TreeView';
import TreeItem from '@material-ui/lab/TreeItem';
import { ISceneNode } from 'src/Scene';
function Mi... |
<reponame>MasterRadule/sora2-substrate-js-library<gh_stars>1-10
import fs from 'fs';
import { localTypes } from '@sora-substrate/type-definitions';
import { ApiPromise } from '@polkadot/api';
import { options } from '@sora-substrate/api';
import { WsProvider } from '@polkadot/rpc-provider';
import { SORA_ENV } from './... |
export const playerAlbum = {
images: [
{
height: 298,
url: 'https://i.scdn.co/image/177f29ea8006359bd70784a803a21fea0360ca3e',
width: 300,
},
{
height: 64,
url: 'https://i.scdn.co/image/38ff482faf9916ca15ccb3e14b2886a27c0866e3',
width: 64,
},
{
height: 636... |
<reponame>atanasster/storybook-dep-webpack-plugin
import { ReplaceSource } from 'webpack-sources';
import * as path from 'path';
import * as webpack from 'webpack';
import { createHash } from 'crypto';
export interface IPluginOptions {
filter?: RegExp;
exclude?: RegExp;
moduleDirectoryMatch?: RegExp;
maxLevels... |
import { RSA } from "https://deno.land/x/god_crypto@v1.4.9/rsa.ts";
import { Base64 } from "https://deno.land/x/bb64/mod.ts";
import * as ejs from "https://deno.land/x/dejs@0.9.3/mod.ts";
import { Octokit as OctokitCore } from "https://cdn.skypack.dev/@octokit/core?dts";
import { createAppAuth } from "https://cdn.skypa... |
///<reference path="../../headers/common.d.ts" />
import config from 'app/core/config';
import store from 'app/core/store';
import _ from 'lodash';
import angular from 'angular';
import $ from 'jquery';
import coreModule from 'app/core/core_module';
export class GrafanaCtrl {
/** @ngInject */
constructor($scope,... |
<filename>DateObject.ts
import core = require('./interfaces');
var days = [null, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
operationOrder = [ 'year', 'month', 'dayOfMonth', 'hours', 'minutes',
'seconds', 'milliseconds' ];
function isLeapYear(year:number):boolean {
var date = new Date(year, 1, 29);
r... |
import * as Fs from 'fs-extra';
import { Git } from './git';
import { localStorage } from './local-storage';
import { Manual } from './manual';
import { Paths } from './paths';
import { Step } from './step';
import { Utils } from './utils';
/**
This module contains package.json related methods
*/
// Updates all the... |
import React from 'react';
import { mount, ReactWrapper } from 'enzyme';
import * as ReactUI from '../../index';
// all components that are available for import from the react-ui
const PUBLIC_COMPONENTS = Object.keys(ReactUI).filter((name) => {
return isPublicComponent((ReactUI as any)[name]);
});
// some componen... |
<filename>src/avatar/index.ts
import { getUserAccount } from '@decentraland/EthereumController'
import { getCurrentRealm } from '@decentraland/EnvironmentAPI'
import * as eth from 'eth-connect'
import { Profiles, Snapshots } from './types'
import { Rarity, rarityLevel, Representation, Type, Wearable } from '../wearable... |
<filename>SpeechToText/SpeechToText/index.ts
import { IInputs, IOutputs } from "./generated/ManifestTypes";
const two_line_regex = new RegExp('/\n\n/g;');
const one_line_regex = new RegExp('/\n/g;');
const first_char_regex = new RegExp('/\S/;');
export class SpeechToText implements ComponentFramework.StandardControl<II... |
import { URLSearchParams } from 'url';
import { Mutex } from 'async-mutex';
import axios, { AxiosError } from 'axios';
import { API, HapStatusError, Logger } from 'homebridge';
import { ACButton, AirConParams, Appliance, Device, LIGHTState, OperationMode } from './types';
import { API_URL, CACHE_THRESHOLD } from './set... |
import * as React from "react";
import GaugeChart from "react-gauge-chart";
import { ryzenAdjProcess } from "../contexts/RyzenAdjContext";
import { getTranslation } from "../contexts/LocaleContext";
import LightModeContext from "../contexts/LightModeContext";
import { appContextSettingsKey, RyzenControllerSettingsDefin... |
import got, { Response } from "got";
import { URL } from "url";
import { load } from "cheerio";
import * as Datastore from "nedb";
import { meta, release } from "../definations";
let NAME: string;
const novel_list = new Datastore("./database/novels-list.db");
const novel_chapter_list = new Datastore("./database/novels... |
import { Col, Row } from "antd";
import Icon from "antd/lib/icon";
import Layout from "antd/lib/layout";
import { get } from "dottie";
import { GetChainMetaResponse } from "iotex-antenna/protogen/proto/api/api_pb";
import BlockProducers from "iotex-react-block-producers";
// @ts-ignore
import { t } from "onefx/lib/iso-... |
import { Injectable, Injector, ComponentRef } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import { Overlay } from './overlay/overlay';
import { ComponentPortal } from './portal/portal';
import { ToastConfig, ToastrConfig, ToastData } from './toastrConfig'... |
<reponame>devmotheg/blogging-app
/*!
* @author <NAME>
* @link https://github.com/devmotheg
*/
type component = "post" | "comment" | "item-hashtag";
interface Attribute {
[index: string]: string;
}
const getMonthAndYear = (date: Date) =>
date.toLocaleString("en-us", {
month: "short",
year: "numeric",
});
e... |
<reponame>MaddTheSane/postybirb
import * as uniqid from 'uniqid';
import { FileInformation } from '../../commons/models/file-information';
import { FileObject } from '../../commons/interfaces/file-obect.interface';
import { FileWrapper } from '../../commons/models/posty-birb/file-wrapper';
import { FileHandler } from ... |
<reponame>JoostVoskuil/azure-devops-gitleaks
import * as path from 'path'
import taskLib = require('azure-pipelines-task-lib/task')
import tr = require('azure-pipelines-task-lib/toolrunner')
import { AzureDevOpsAPI } from './AzureDevOpsAPI'
import { GitleaksTool } from './gitleakstool'
import { getAzureDevOpsInput, get... |
<filename>src/services/runtime-service.ts
import { IModel, IBasicRange, IEntity, IText } from '../types/interfaces/model'
import log from '../helpers/logger';
class Model {
private model: IModel
private activeModel: IText[][]
constructor(model: IModel) {
this.validateModel(model);
this.initialiseActive... |
import { Manga } from 'src/classes/manga'
import { getCookies, HEADER_USER_AGENT, MOBILE_USER_AGENT } from 'src/classes/requests/baseRequest'
import { ContentType } from 'src/enums/contentTypeEnum'
import { Platform } from 'src/enums/platformEnum'
import { SiteType } from 'src/enums/siteEnum'
import HttpRequest from 's... |
<filename>core/src/utils/overlays.ts
import { AnimationBuilder, BackButtonEvent, HTMLIonOverlayElement, IonicConfig, OverlayInterface } from '../interface';
let lastId = 0;
export function createOverlay<T extends HTMLIonOverlayElement>(element: T, opts: object | undefined): Promise<T> {
const doc = element.ownerDoc... |
import puppeteer from 'puppeteer';
import { GWCommanderBaseTypes, GWCommander } from './datamodel';
import { defaultGotoOptions } from '../factory';
export const getCommanderList = async (page: puppeteer.Page) => {
const LIST_URL = 'https://gamewith.jp/sangokushi-shinsen/article/show/263306';
await page.goto(LIST... |
<reponame>valentine195/obsidian-markdown-attributes<filename>src/processor.ts
interface ElementWithAttributes {
element: Element;
attributes: [string, string][];
text: string;
/* replacer: (...args: any) => void; */
}
export default class Processor {
static BASE_RE = /\{\:?[ ]*([^\}\n ][^\}\n]*)[ ]... |
import {Client, GuildMember, Message, MessageEmbed, MessageReaction, PartialUser, TextChannel, User} from "discord.js";
import fetch from "node-fetch";
const client = new Client({partials: ["CHANNEL", "MESSAGE", "REACTION", "GUILD_MEMBER", "USER"]});
/** Whether the bot should output debug messages. */
const DEBUG = ... |
/**
* 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 i... |
import React from "react";
import styled from "styled-components";
import { isMobileWidth } from "../utils";
import { CONTACT_US_ITEMS } from "../data";
import "./ContactUsSection.css";
import ReactLoading from "react-loading";
import { SimpleButton } from "../components/SimpleButton";
const WrapperDesktop = styled.di... |
import * as fs from 'fs'
import * as buf from 'buffer-split'
import * as esc from 'unicode-escape'
import * as he from "he";
let txt = fs.readFileSync('in.txt', 'utf8')
//let txt = fs.readFileSync('prodIMDB.txt', 'utf8')
//txt.slice(txt.length - 10, txt.length).map(x => fs.appendFileSync('resprodaaa.txt', (x as Buffer... |
import { promisify } from 'util';
import { URL } from 'url';
import { stat, createWriteStream } from 'fs';
import { createGzip } from 'zlib';
import {
Transform,
TransformOptions,
TransformCallback,
Writable,
} from 'stream';
import { IndexItem, SitemapItemLoose, ErrorLevel } from './types';
import { UndefinedT... |
import { MovementType } from './movement'
import { FollowPathMoveComponent, OnFinishPathBehavior } from './pathFollow'
import utils from "../../../node_modules/decentraland-ecs-utils/index"
import { TriggerComponent } from '../../../node_modules/decentraland-ecs-utils/triggers/triggerSystem'
import { delay } from '../d... |
import React, { FunctionComponent, MouseEvent, Component, Fragment } from "react";
import { connect } from "react-redux";
import * as handler from "../../redux/WorkflowInstanceReducer"
import { bindActionCreators } from "redux";
import { WorkflowInstance } from "../../models";
import Skeleton from '@material-ui/lab/Ske... |
/*!
* Copyright 2021 Cognite AS
*/
import { LoadingState } from '@reveal/model-base';
import { combineLatest, interval, Observable, of, pipe, Subject } from 'rxjs';
import { delay, distinctUntilChanged, map, share, startWith, switchMap } from 'rxjs/operators';
import * as THREE from 'three';
import { PotreeNodeWra... |
import { Box, Center, Container, Flex, Heading, Text } from "@chakra-ui/react";
import { GetStaticPaths, GetStaticPropsContext } from "next";
import { groq } from "next-sanity";
import React from "react";
import readingTime from "reading-time";
import { Article } from "../../../../../features/article/Article";
import {... |
<reponame>jmeinke/grpc-node
/*
* 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 b... |
import {DataSourceEvent, EventSource, IChartRenderer, IDataSource} from '../api/chart-api';
import {Horizontal, IRenderer, Max, Min, RenderingOptions, Vertical} from '../api/rendering-api';
import {precision} from '../util/numbers';
import {calcX, calcY} from '../util/coordinates';
type TimeSeriesRecord = { x: number,... |
<gh_stars>10-100
const initialOverLayerStyle = {
'pointer-events': 'none',
display: 'none',
};
const initialDetailLayerStyle = {
'z-index': 100000000,
position: 'absolute',
display: 'none',
'align-items': 'center',
'font-family': `"SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", san... |
<gh_stars>0
/* eslint-disable no-null/no-null */
import {Mapping, MappingEntry} from './Mapping';
import {Either, Validation} from 'monet';
import {compare} from '@pallad/compare';
export type Range<T extends NonNullable<{}>> = Range.Full<T> | Range.Start<T> | Range.End<T>;
const toTupleMapper: Mapping<unknown, Range... |
export enum APIRegistrationTypes {
// standard
SECURITY_AGREEMENT = 'SA',
REPAIRERS_LIEN = 'RL',
MARRIAGE_MH = 'FR',
SALE_OF_GOODS = 'SG',
LAND_TAX_LIEN = 'LT',
MANUFACTURED_HOME_LIEN = 'MH',
FORESTRY_CONTRACTOR_LIEN = 'FL',
FORESTRY_CONTRACTOR_CHARGE = 'FA',
FORESTRY_SUBCONTRACT... |
<reponame>Tellus/patch-package-with-pnpm-support
import fs from "fs-extra"
import { dirname } from "path"
import { ParsedPatchFile, FilePatch, Hunk } from "./parse"
import { assertNever } from "../assertNever"
export const executeEffects = (
effects: ParsedPatchFile,
{ dryRun }: { dryRun: boolean },
) => {
effec... |
#!/usr/bin/env node
import * as ts from "typescript";
import * as minimist from "minimist";
const flags = minimist(process.argv.slice(2));
/** A single field of an action. */
interface ActionField {
name: string;
type: string;
optional: boolean;
}
/**
* An annotation on an action.
*
* Annotations are define... |
<reponame>RedMokeys/cli-microsoft365
import commands from '../../commands';
import GlobalOptions from '../../../../GlobalOptions';
import request from '../../../../request';
import {
CommandOption,
CommandValidate
} from '../../../../Command';
import Utils from '../../../../Utils';
import AadCommand from '../../../... |
import { observer } from "mobx-react";
import { NodeCollectionStore } from "../../../stores/nodestores/NodeCollectionStore";
import "./FreeFormCanvas.scss";
import * as React from 'react';
import { TextNodeStore } from "../../../stores/nodestores/TextNodeStore";
import { MediaNodeStore } from "../../../stores/nodestore... |
import { CommandInteraction, MessageEmbed } from 'discord.js';
import { CommandOptions } from 'dsc.cmds';
import moment from 'moment';
import { Bot } from '../bot';
import { dots, NicoUser } from '../Utils/utils';
import weather from 'weather-js';
export const cmd: CommandOptions = {
name: 'profile',
devOnly: fals... |
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { i18n } from 'src/i18n';
import authActions from 'src/modules/auth/authActions';
import authSelectors from 'src/modules/auth/authSelectors';
import layoutActions from 'src/modules/layout/layoutActions';
import { getHistory } from... |
import type { MDXPlugin } from '@docusaurus/mdx-loader';
import type { Options as PluginContentDocsOptions } from '@docusaurus/plugin-content-docs';
import type { Options as PresetClassicOptions } from '@docusaurus/preset-classic';
import type { UserThemeConfig as ThemeCommonConfig } from '@docusaurus/theme-common';
im... |
import React, { createContext, useReducer, Dispatch, useContext } from "react";
import { CartItemType } from "../types/Cart";
type Cart = {
cartList: Array<CartItemType>;
totalPrice: number;
deliveryTips: number;
checkItemAmount: number;
isAllChecked: boolean;
};
type CartState = {
totalPrice: number;
d... |
<gh_stars>1-10
import { randomBytes } from 'crypto';
import { ReadStream, statSync } from 'fs';
import { basename } from 'path';
import { Readable } from 'stream';
import { lookup } from 'mime-types';
export const DEFAULT_CONTENT_TYPE = 'application/octet-stream';
export const DASHES = '--';
export const CRLF = '\r\n'... |
// import {UrlParse} from './plugins/url'
const {time, timestamp} = require('./plugins/time')
const {is, isInt, isEmpty, isObject, isArray} = require('./plugins/determine')
const {client: cacheClient, cache, cacheGet, cacheSet, cacheRemove, cacheClean, cacheInfo} = require('./plugins/cache')
const {big, price, priceUpp... |
import { NodeData } from 'earth-3d';
import { Vector3, MathUtils, Mesh, TextureLoader, DataTexture, RGBFormat, UnsignedShort565Type, BufferGeometry, ShaderMaterial, Uint16BufferAttribute, Float32BufferAttribute, Color } from 'three';
export interface Cartographic {
latitude: number;
longitude: number;
heig... |
import { AccountsAction } from '../actions/accounts'
import { Account } from '../../types'
const INITIAL_STATE = {
active: 'b6623176-e165-496b-a041-2df362a262c9',
accounts: [
{
accountNumber: '2529110778760',
balance: '9295.55',
currency: 'GBP',
id: '<PASSWORD>',
provider: 6,
... |
<reponame>Biological-Computation/crn-engine
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import * as SimulateOperation from '../Operations/Spatial1DSimulation';
import ME from '../../../../CRNEngine/CRNEngineTSWrapper/Scripts/CRNEngine';
import * as CRNInterfaces from '../../../../CRNEngi... |
/*!
Copyright 2016-2021 Brazil 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 applicable law or agreed to in writing, software
... |
<reponame>truthiswill/itch
import {
LocalizedString,
Store,
RootState,
TabPage,
TabInstance,
Action,
EvolveTabPayload,
Subtract,
} from "common/types";
import nodeURL, { format, URLSearchParams } from "url";
import querystring from "querystring";
import { currentPage, ambientWind } from "common/util/n... |
<reponame>m-ober/OpenSlides
import { Component, HostListener, OnInit, ViewChild } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import { MatSidenav } from '@angular/material/sidenav';
import { MatSnackBar } from '@angular/material/sn... |
<gh_stars>10-100
import { ValueType } from '../Value';
import AbstractDuration from './AbstractDuration';
import DayTimeDuration from './DayTimeDuration';
import YearMonthDuration from './YearMonthDuration';
const MONTHS_TO_MIN_MAX_VALUES = [
[28, 31],
[59, 62],
[89, 91],
[120, 123],
[150, 153],
[181, 184],
[21... |
import { Activity, Answerable, AnswersQuestions, Interaction, Question, UsesAbilities } from '@serenity-js/core';
import { formatted } from '@serenity-js/core/lib/io';
import { Key } from '../../input';
import { BrowseTheWeb } from '../abilities';
import { PageElement } from '../models';
import { PageElementInteractio... |
<gh_stars>10-100
import { Component, Input, Output, EventEmitter, ViewChild, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { map, catchError, finalize } from "rxjs/operators";
import { Observable, throwError as observableThrowError, of } from "rxjs";
import { Configuration } from '../co... |
import classNames from 'classnames';
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
import { NavLink } from 'react-router-dom';
import { ReactComponent as KebabIcon } from '../icons/kebab.svg';
import { useComposedCssClasses, CompositionMethod } from '../hooks/useComposedCssClasses';... |
/* global RawMemory */
declare global {
interface Memory {
segmented: {
lastFullSave: number,
startSegment: number,
endSegment: number,
}
}
}
import hivemind from 'hivemind';
const maxActiveSegments = 10;
const maxSegmentLength = 100 * 1000;
export default class SegmentedMemory {
_isReady: boolean;... |
// ======================================================================
// Crab Cups
// Advent of Code 2020 Day 23 -- <NAME> -- https://adventofcode.com
//
// TypeScript implementation by Dr. <NAME> III
// ======================================================================
// ===================================... |
<gh_stars>0
import { Injectable } from '@angular/core';
import * as FileSaver from 'file-saver';
import * as XLSX from 'xlsx';
const EXCEL_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
const EXCEL_EXTENSION = '.xlsx';
const XML_TYPE = 'application/xml;charset=UTF-8';
const XM... |
<gh_stars>100-1000
import { Injectable } from '@angular/core';
import { Website } from '../../decorators/website-decorator';
import { BaseWebsiteService } from '../base-website-service';
import { WebsiteService, WebsiteStatus, LoginStatus, SubmissionPostData, PostResult } from '../../interfaces/website-service.interfac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.