text stringlengths 3.3k 33k |
|---|
import { ILauncherOptions, IOverrides } from "minecraft-launcher-core"
import axios from "axios"
import path from "path"
import fs from "fs-extra"
import crypto from "crypto"
import { Account } from "./model/account"
import { Distribution, File, Mod, ServerOption } from "./model/Distribution"
import { Auth } from "./A... |
import { app } from 'src/models';
import type { Maybe } from 'src/models';
import type {
GetCluster,
GetClusterAuthParams,
GetClusterCluster,
GetClusterClusterSelf,
GetClusterFailoverParams,
GetClusterRole,
GetClusterVshardGroup,
KnownRolesNamesResult,
ServerList,
ServerListClusterIssue,
ServerLi... |
/* eslint-disable @typescript-eslint/no-namespace */
import * as React from 'react';
import { DocumentUri, Position, Range, TextDocumentPositionParams } from 'vscode-languageserver-protocol';
import { Event } from './event';
import { EditorContext } from './contexts';
export interface DocumentPosition extends Positio... |
<gh_stars>0
import * as os from "os"
import parseDiff from "parse-diff"
import includes from "lodash.includes"
import isobject from "lodash.isobject"
import keys from "lodash.keys"
import memoize from "lodash.memoize"
import * as jsonDiff from "rfc6902"
import jsonpointer from "jsonpointer"
import JSON5 from "json5"
... |
<gh_stars>1-10
import Delaunator from 'delaunator'
// Type Declarations
export interface IConfig2D {
dim: number
xy_thresh?: number
alpha?: number
min_triangles: number
min_bbox_area: number
}
export interface IConfig3D extends IConfig2D {
z_thresh: number
norm_thresh: number
desired_vector: [number... |
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import querystring from 'querystring';
import { redirectToReferrer, storeReferrer } from '../utils';
import { getGithubAppConfigurationOptions } from './passport/githubStrategy';
imp... |
<reponame>frankpf/lang<filename>src/TypeChecker.ts
import * as Ast from '#src/Ast'
import {binaryMatcher, unaryMatcher} from '#src/AstHelpers'
import {matchAll} from '#src/Match'
import {Token} from '#src/Token'
import {SourceErrorReporter} from '#src/SourceErrorReporter'
import {ProjectContext} from '#src/ProjectConte... |
<filename>src/node-server.ts<gh_stars>0
import http from 'http'
import https from 'https'
import path from 'path'
import fs from 'fs'
import net from 'net'
import colors from 'colors'
export interface Options {
port?: number
root?: string
autoindex?: 'on' | 'off'
index?: string[]
errorPage?: string
proxy?:... |
/*
Copyright (c) 2016 <NAME>
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, distribute, sublicen... |
import * as _ from 'underscore';
import * as s from 'underscore.string';
import {deepClone} from '../../utils/CloneUtils';
import {keyCode} from '../../utils/InputUtils';
import {IReduxAction} from '../../utils/ReduxUtils';
import {IDropdownOption} from './DropdownSearch';
import {DropdownSearchActions, IOptionsD... |
<gh_stars>1-10
import {
changePropertyIn,
ContainerProps,
DropZoneProps,
hideNestedPropertiesIn,
hidePropertiesIn,
hidePropertyIn,
Problem,
Properties,
RowLayoutProps,
StructurePreviewProps,
transformGroupsIntoTabs
} from "@mendix/piw-utils-internal";
import { ColumnsPreviewT... |
/* Import ---------------------------------------------------------------------- */ // - x70
import { SidebarContext } from './SidebarContext'
import { ToastContext } from './ToastContext'
import {
createContext,
ReactNode,
useContext,
useEffect,
useState
} from 'react'
import { useTheme } from ... |
import {
IContainer,
ILogger,
Writable,
Registration,
IDisposable,
} from '@aurelia/kernel';
import {
basename,
dirname,
} from 'path';
import {
createSourceFile,
ScriptTarget,
} from 'typescript';
import {
JSDOM,
} from 'jsdom';
import {
IFileSystem,
IFile,
FileKind,
$CompilerOptions,
} f... |
// package: cosmos.tx.v1beta1
// file: cosmos/tx/v1beta1/tx.proto
import * as jspb from "google-protobuf";
import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb";
import * as cosmos_crypto_multisig_v1beta1_multisig_pb from "../../../cosmos/crypto/multisig/v1beta1/multisig_pb";
import * as cosmos_base_v1beta1_... |
<filename>src/common/layers/layer.ts
import L, { Map, Layer as leafletLayer } from 'leaflet';
import { generateId } from '../constant';
import { EsriDynamic } from './esri-dynamic';
import { EsriFeature } from './esri-feature';
import { WMS } from './wms';
import { XYZTiles } from './xyz-tiles';
import { GeoJSON } fro... |
import React from "react"
import { PageProps } from "gatsby"
import i18n from "i18next"
import SEO from "../../../../components/layout/seo"
import { useCustomTranslation } from "../../../../i18n-hook"
import { Comments } from "../../../../components/core/comments"
import translationFr from "../../../../locales/fr/asia/... |
<filename>src/light/LightService.ts
import { promisify } from "util";
import { PubSub } from "graphql-subscriptions";
import { validate } from "class-validator";
import throttle from "lodash.throttle";
import GqlPubSub from "../lib/clients/GqlPubSub";
import { Light } from "./LightEntity";
import { LightInput } from ".... |
import {
Component, ComponentBindings, JSXComponent, OneWay, Ref, Effect, InternalState, Portal,
RefObject, Method, Template, Event, ForwardRef,
} from '@devextreme-generator/declarations';
import { combineClasses } from '../../utils/combine_classes';
import { PathSvgElement } from './renderers/svg_path';
import {... |
import parseArgs from 'minimist'
import * as fs from 'fs'
import { VersionRegistry } from '../common/VersionRegistry'
import ContractInteractor from '../common/ContractInteractor'
import { configure } from '../relayclient/Configurator'
import { constants } from '../common/Constants'
import { Address } from '../relaycli... |
<gh_stars>1-10
/**
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE... |
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
// cSpell:ignore pycache
import { Connection, TextDocumentUri, getWorkspaceFolders, getConfiguration } from './vscode.config';
import * as vscode from 'vscode-languageserver';
import {
ExcludeFilesGlobMap,
Glob,
RegExpPatternDefinition,
... |
<filename>src/services/uploader.ts
import {singleton} from '../utils/di'
import debug from 'debug'
import {promises} from 'fs'
import crypto from 'crypto'
import net from 'net'
import dgram from 'dgram'
import {
BehaviorSubject,
bindCallback,
bindNodeCallback,
catchError,
concatMap,
defer,
delayWhen,
fo... |
<reponame>SupinePandora43/Trailers_Reborn
//////////////////////////
// Trailers Reborn (TR) //
// Server code //
//////////////////////////
/*
resource.AddFile("sound/tr/trailer_connection.wav")
resource.AddFile("sound/tr/nope.wav")
*/
resource.AddWorkshop("2083101470")
const useConnectSound = CreateConVar... |
<reponame>velleicvelleity/noclip.website<gh_stars>0
import { Color, colorNewFromRGBA, colorLerp, colorNewCopy, White, colorAdd } from '../Color';
import { lerp } from '../MathHelpers';
function colorNorm(r: number, g: number, b: number, a: number = 255.0): Color {
return colorNewFromRGBA(r/255.0, g/255.0, b/255.0,... |
///////////////////////////////////////////////////////////////////////
// Exported Helper Types
//
// Available externally as these may be useful for consumers of this library
// for composition of their types.
//
/** Constructor interface that accepts `TParams` to produce an instance of
* `TInstance`.
... |
<gh_stars>0
import { EEntType, getArrDepth, GIModel, idsBreak, isEmptyArr, TEntTypeIdx, TId } from '@design-automation/mobius-sim';
import { checkIDs, ID } from '../../_check_ids';
import { _ETypeQueryEnum } from './_enum';
// ==========================================================================================... |
<filename>lib/KMeans.ts
type ExtentType = {
min: number;
max: number;
};
interface KMeansOptions {
/**
* number cluster of centeroids
*/
k: number;
/**
* data array with points
*/
data: Array<unknown>;
}
export class KMeans {
readonly k: number;
data: Array<unknown>;
/**
* Keeps track of whi... |
import { INullableHashMap, IHashMap } from "@sb-types/Types";
import * as logger from "loggy";
import * as path from "path";
import * as Interfaces from "@sb-types/ModuleLoader/Interfaces.new";
import { ModuleKeeper } from "@sb-types/ModuleLoader/ModuleKeeper.new";
import * as ModuleDiscovery from "./Discovery/ModuleDi... |
import axios, { AxiosError } from "axios";
import { SpotifyAPIError } from "./Error";
import { AuthManager } from "./managers/Auth";
import { UserManager } from "./managers/User";
import { ArtistManager } from "./managers/Artist";
import { BrowseManager } from "./managers/Browse";
import { AlbumManager } from "./manag... |
import assertNever from "assert-never";
import {
Body,
Config,
Contract,
DefaultResponse,
Endpoint,
Example,
Header,
HttpMethod,
isSpecificResponse,
Oa3ServerVariable,
Request,
Response
} from "../../definitions";
import {
areStringLiteralTypes,
isArrayType,
isNotNullType,
isObjectType,
... |
import React, {
useRef,
useMemo,
useState,
useEffect,
RefObject,
MutableRefObject,
} from "react"
/**
* ============================================================================
* Generic Types
* ============================================================================
*/
type ConstRef<T> = Readonly<M... |
import * as React from 'react';
import {
Plugin, TemplateConnector, Action, Template, TemplatePlaceholder, Getter,
} from '@devexpress/dx-react-core';
import {
TABLE_ADDED_TYPE, TABLE_DATA_TYPE, TABLE_FLEX_TYPE,
getNextFocusedCell, getPart, getIndexToFocus,
isCellExist, focus, isTabArrowUpDown,
filterHeaderRo... |
<filename>src/FlowLinesLayer/FlowLinesLayer.ts
/*
* Copyright 2018 Teralytics
*
* 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
*
* Unles... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
// <copyright file="card.tsx" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
import * as React from "react";
import { Flex, Text, Loader, Label } from "@fluentui/react-northstar";
import PopupMoreMenu from "./popup-more-menu";
import Tag from "./tag";
import { IProjectDetails } ... |
<reponame>aimichelle/ssp-amazon-eks
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';
import { UpdatePolicy } from 'aws-cdk-lib/aws-autoscaling';
import * as ec2 from "aws-cdk-lib/aws-ec2";
import * as eks from "aws-cdk-lib/aws-eks";
import { CommonClusterOptions, FargateProfileOptions, KubernetesVersion } fr... |
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import * as React from 'react';
import { PluginUIComponent } from '../base';
import { MarkerAction } from '../../mol-util/marker-action';
import { Buttons... |
import { unionBy, findIndex, orderBy, groupBy, keys } from "lodash-es";
import { IGame } from "components/common/matrix-table/helper";
import { IDivision, IField, IPool, ITeam } from "common/models";
import { ITeamCard } from "common/models/schedule/teams";
import { getVarcharEight } from "helpers";
import { IPlayoffSo... |
<reponame>atm-bankomat/prud-hon
/*
* Copyright © 2018 Atomist, Inc.
*
* 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 requ... |
<reponame>wholebuzz/mapreduce
global.TextEncoder = require('util').TextEncoder
global.TextDecoder = require('util').TextDecoder
import { AnyFileSystem } from '@wholebuzz/fs/lib/fs'
import { GoogleCloudFileSystem } from '@wholebuzz/fs/lib/gcp'
import { LocalFileSystem } from '@wholebuzz/fs/lib/local'
import { S3FileSys... |
<filename>scripts/wrapper/DatapackLanguageService.ts
import * as core from '@actions/core';
import { DatapackLanguageService, pathAccessible, readFile, requestText } from '@spgoding/datapack-language-server';
import { loadLocale } from '@spgoding/datapack-language-server/lib/locales';
import { IdentityNode } from '@spg... |
import { library } from '@fortawesome/fontawesome-svg-core'
import { faArrowLeft } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { Collapse } from '@material-ui/core'
import React, { useState } from 'react'
import { Dropdown } from 'react-bootstrap'
imp... |
<gh_stars>0
import {
INVALID_OUTCOME,
OUTCOME_MAX_LENGTH,
SATURDAY_DAY_OF_WEEK,
SUNDAY_DAY_OF_WEEK,
} from 'modules/create-market/constants';
import isAddress from 'modules/auth/helpers/is-address';
import { createBigNumber } from 'utils/create-big-number';
import { ZERO } from './constants';
import { NewMarket... |
import React, { useEffect, useState, useContext } from "react";
import { useHistory } from "react-router-dom";
import { useTranslation } from "react-i18next";
import { Controller, FormProvider, useForm } from "react-hook-form";
import {
AlertVariant,
ButtonVariant,
DropdownItem,
DropdownSeparator,
PageSection... |
export * from "./abortRequest";
export * from "./accountType";
export * from "./adminRequest";
export * from "./adminResponse";
export * from "./algorithmIdentifier";
export * from "./algorithmType";
export * from "./alignmentType";
export * from "./allowedProduct";
export * from "./amount";
export * from "./amountsReq... |
/// @note This files contatins all the functions and data structure shared among the tests
import { BigNumber, Signer, ContractTransaction } from "ethers";
import { ethers, getNamedAccounts } from "hardhat";
import { Treasury } from "../../typechain";
import { ONE_BASE18, ONE_HUNDRED_BASE18, ZERO_ADDRESS } from "./co... |
import * as React from "react"
import { isNumber, isString } from "util"
import { equals } from "../../../Data/Eq"
import { flip } from "../../../Data/Function"
import { fmap, fmapF } from "../../../Data/Functor"
import { consF, drop, find, List, map, notNullStr, take } from "../../../Data/List"
import { and, ap, bind,... |
<filename>ol3-lab/labs/mapmaker.ts
import $ = require("jquery");
import ol = require("openlayers");
import { doif, getParameterByName, defaults } from "./common/common";
import reduce = require("./common/ol3-polyline");
import { StyleConverter } from "ol3-symbolizer/ol3-symbolizer/format/ol3-symbolizer";
import dashdot... |
export enum EIconName {
Add = 'kv-add',
AlarmClass = 'kv-alarm-class',
Alert = 'kv-alert',
AlignBottom = 'kv-align-bottom',
AlignTop = 'kv-align-top',
Application = 'kv-application',
Array = 'kv-array',
ArrowDownload = 'kv-arrow-download',
ArrowDropDown = 'kv-arrow-drop-down',
ArrowDropUp = 'kv-arrow-drop-up'... |
import { BodyShort, Heading, Label } from '@navikt/ds-react';
import classNames from 'classnames';
import * as arr from 'fp-ts/Array';
import * as Option from 'fp-ts/Option';
import * as Ord from 'fp-ts/Ord';
import * as S from 'fp-ts/string';
import React from 'react';
import { IntlShape } from 'react-intl';
import m... |
<filename>vertex/layer2/cypher-sugar.ts<gh_stars>0
/**
* Syntactic sugar for writing Cypher queries.
*/
import { Neo4j } from "../deps.ts";
import { looksLikeVNID } from "../lib/types/vnid.ts";
import { GetDataShape, ResponseSchema } from "../lib/types/field.ts";
import { getRelationshipType, isBaseVNodeType, isRelat... |
#!/usr/bin/env node
import * as fs from "fs";
import { compileSchema, compileSchemaJS } from "./js";
import { compileSchemaTypeScript } from "./ts";
import { Schema } from "./schema";
import { compileSchemaCPP } from "./cpp";
import { compileSchemaCallbackCPP } from "./cpp-callback";
import { compileSchemaSkew } from ... |
<gh_stars>0
import * as React from 'react'
import { Trip } from './trip'
import { Food } from './food'
import { GroceryDb } from './grocery-db'
interface Measure {
foods: Map<string, Food>
total: Food
}
export class Analysis {
public foods: Map<string, Food>
public measures: Map<string, Measure>
... |
import {Text} from "../../text"
const empty: readonly any[] = []
/// Distinguishes different ways in which positions can be mapped.
export enum MapMode {
/// Map a position to a valid new position, even when its context
/// was deleted.
Simple,
/// Return a negative number if a deletion happens across the
/... |
import { range } from "lodash";
import { bufferReader, bufferWriter } from "../../helper";
import { getBit, BitWriter } from "../../utils";
import { RtcpHeader } from "../header";
export class TransportWideCC {
static count = 15;
count = TransportWideCC.count;
length = 2;
senderSsrc!: number;
mediaSsrc!: nu... |
import * as ffi from "ffi";
import * as ref from "ref";
import * as refStruct from "ref-struct";
import { LONG, WPARAM, HWND, UINT, LPARAM, DWORD, HINSTANCE, LPCSTR, HICON, HCURSOR, CALLBACK, INT, HMENU, LPSTR, ULONG_PTR, HBRUSH, HBITMAP, BOOL, LRESULT, LPVOID, LONG_PTR, HANDLE, ATOM, LPWSTR, LPCWSTR } from "./windef";... |
import { AccessoryService } from './../../+state/accessory/accessory.service';
import { Component, OnInit, Injector, OnDestroy } from '@angular/core';
import {
FormBuilder,
FormGroup,
Validators
} from '@angular/forms';
import { TableSetting } from '@core/table';
import { Router, ActivatedRoute } from '@angular/r... |
// (C) Copyright 2015 Moodle Pty 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 agree... |
import 'leaflet.markercluster';
import { DatePipe } from '@angular/common';
import { AfterViewInit, Component, OnDestroy, OnInit } from '@angular/core';
import { environment } from '../../../environments/environment';
import { GlobalService } from '../../core/global.service';
import { LocatortypeFactory } from '../..... |
/**
* Copyright (c) 2021, Diabeloop
* Patient list table for HCPs
*
* 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 n... |
import { isFunction } from '~/utilities/common';
import SlColumn from '../column/column';
/**
* 定义排序,升序,降序,不显示
*/
export enum SortingEnum {
ASC = 'ASC',
DESC = 'DESC',
NULL = 'null'
}
const columnCacheData = new WeakMap<SlColumn, ColumnCacheData>();
/**
* 定义需要table 表头 行
*/
export type RowHeader = Array<Array... |
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-explicit-any */
import createDebug from 'de... |
import React from 'react';
import Colors from '../constants/Colors';
import Sizes from '../constants/Sizes';
import { FontAwesome } from '@expo/vector-icons';
import {
Text,
StyleSheet,
View,
FlatList,
Dimensions,
TouchableOpacity,
ScrollView,
SafeAreaView,
ProgressBarAndroid, Image... |
import { Character, DictionaryEntry, Field, Picture, Hierarchy, standardBooks, Taxon, cloneHierarchy, createTaxon, createCharacter } from "./datatypes";
import { Dataset } from './datatypes/Dataset';
import { State } from "./datatypes/types";
import clone from "./tools/clone";
import makeid from './tools/makeid';
impor... |
<filename>packages/core/src/internal/processor/ConcurrentMessageProcessor.ts
/*
Copyright (c) Walmart Inc.
This source code is licensed under the Apache 2.0 license found in the
LICENSE file in the root directory of this source tree.
*/
import { Span } from "opentracing";
import { IMessageProcessor, IMessageProcessor... |
import chalk from "chalk";
import { Command } from "commander";
import path from "path";
import process from "process";
import { promptOrUseDefault } from "../../core/prompts";
import {
configureOptions,
dasherize,
hasConfigurationNameInConfigFile,
isUserOption,
logger,
swaCliConfigFileExists,
swaCliConfi... |
import {Component} from 'react';
import * as THREE from 'three';
import {DistanceMode, DistanceRound, getGridStride, ObjectVector3} from '../util/scenarioUtils';
import {buildVector3} from '../util/threeUtils';
import {GridType} from '../util/googleDriveUtils';
import {snapNumberToCloseInteger} from '../util/mathsUtil... |
import dayjs from 'dayjs'
import { useEffect, useState, useMemo } from 'react'
import {
Alert,
Button,
IconDownloadCloud,
IconEye,
IconEyeOff,
IconLoader,
Input,
Typography,
} from '@supabase/ui'
import DataGrid from '@supabase/react-data-grid'
import LogSelection from './LogSelection'
import { LogData... |
<reponame>crandlee/xClaim.Core.Web.UI
import { Component, ViewChild } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { BaseService } from '../shared/service/base.service';
import { ClaimService, IClaimViewModel } from './claim.service';
import { XCoreBaseComponent } from '../shared/compo... |
import React, { useEffect, useCallback, useState, useMemo } from 'react'
import classNames from 'classnames'
import { RouteComponentProps } from 'react-router'
import { dataOrThrowErrors, useQuery } from '@sourcegraph/http-client'
import { Settings } from '@sourcegraph/shared/src/schema/settings.schema'
import { Sett... |
<gh_stars>1-10
import get from "lodash/get";
import { searchFrench, FrenchLevelFilter, AgeFilter, searchAge } from "data/searchFilters";
import { SearchQuery } from "pages/recherche";
import { IDispositif, Tag } from "types/interface";
import { tags } from "data/tags";
const filterContentsByTheme = (contents: IDisposi... |
// import './monaco-env';
import h from 'hyperscript';
import 'rxjs';
import { ajax, AjaxError } from 'rxjs/ajax';
import { editor as Editor, KeyCode, KeyMod, languages as Languages } from 'monaco-editor';
import stringArgv from 'string-argv';
import { PistonExecuteRequest, PistonExecuteResponse, PistonVersions } from ... |
#!/usr/bin/env node
/* -----------------------------------------------------------------------------
| Copyright (c) Jupyter Development Team.
| Distributed under the terms of the Modified BSD License.
|----------------------------------------------------------------------------*/
import * as path from 'path';
import ... |
/*
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free... |
import defaultCrudOptions from "./default-crud-options";
import _ from "lodash-es";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { ref, reactive } from "vue";
import logger from "../utils/util.log";
import types from "../types";
import { uiContext } from "../ui";
import { useI18n } from "../loca... |
/**
* @example
* $$chart
* \tcat1\tcat2 => tsv, csv format chart data
* jan\t21\t23
* feb\t351\t45
* // url: http://url.to/csv => fetch data from the url when not using plain data
* => space required as a separator
* type: area => tui.chart.areaChart... |
<reponame>frostRed/indra
import { DEFAULT_APP_TIMEOUT, WITHDRAW_STATE_TIMEOUT, WithdrawCommitment } from "@connext/apps";
import {
AppInstanceJson,
CF_METHOD_TIMEOUT,
ChannelMethods,
DefaultApp,
EventNames,
GenericMessage,
MethodParams,
MinimalTransaction,
PublicParams,
PublicResults,
WithdrawAppA... |
import React, { VFC } from 'react';
import { Color, G, Path } from 'react-native-svg';
import { createIcon } from '../helpers';
type BrokenProps = { color: Color, strokeWidth: number, };
type CurvedProps = { color: Color, strokeWidth: number, };
type DuotoneProps = { color: Color, strokeWidth: number, };
type O... |
<reponame>kloni/bedford-park
/*******************************************************************************
* Copyright IBM Corp. 2017
*
* 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... |
import { customElement, html, property, css } from "lit-element";
import { connect } from "pwa-helpers/connect-mixin";
import { store, RootState } from "../../../app/store";
import ReactGA from 'react-ga';
import { ModelIOBindings, ModelEnsembleMap, Thread, ExecutionSummary, ThreadEvent } from "../reducers";
import { ... |
import { MongooseProvider, mongoose } from "./mongoose-provider";
import { Handoff, ConversationState } from "./handoff";
import { commandsMiddleware } from "./commands";
import * as express from "express";
import * as bodyParser from "body-parser";
import * as teams from "botbuilder-teams";
import * as builder from "b... |
import { EntityConstructor, EntityInterface } from './Entity.types';
import Nymph from './Nymph';
export type NymphEventType =
| 'connect'
| 'disconnect'
| 'query'
| 'beforeGetEntity'
| 'beforeGetEntities'
| 'beforeSaveEntity'
| 'afterSaveEntity'
| 'beforeDeleteEntity'
| 'afterDeleteEntity'
| 'befo... |
<filename>src/domain/unit/unitHelpers.ts
import L from "leaflet";
import * as GeometryUtil from "leaflet-geometryutil";
import get from "lodash/get";
import has from "lodash/has";
import head from "lodash/head";
import keys from "lodash/keys";
import sortBy from "lodash/sortBy";
import upperFirst from "lodash/upperFirs... |
import Moment from "react-moment";
import {ToolKit} from "$utils/Util";
import {FormInstance} from "antd/lib/form";
import {ColumnProps} from "antd/lib/table";
import {useDynamicList, useUpdate} from "ahooks";
import * as DataSourceService from "$services/DataSourceService";
import {DataSource} from "$services/DataSour... |
/*
* @Author: simuty
* @Date: 2020-12-03 10:58:22
* @LastEditTime: 2020-12-08 15:45:45
* @LastEditors: Please set LastEditors
* @Description:
*
* 红包生成算法
* 1. 二倍均值法
* 2. 拼手速
*/
/**
* 1. 二倍均值法
*
* !核心:红包 = 随机([最小值,(红包剩余金额 / 人数 * 2)])
*
*
* @param totalAmount 总金额 单位:分
* @param redPacketNum 总人数
* @return... |
import { BigNumber } from 'bignumber.js';
import Close from 'material-ui-icons/Close';
import { withStyles, StyleRulesCallback, WithStyles } from 'material-ui/styles';
import Button from 'material-ui/Button';
import Card, { CardActions, CardContent, CardHeader } from 'material-ui/Card';
import IconButton from 'material... |
import { Avatar } from '@celo/react-components/components/Avatar'
import Button, { BtnTypes } from '@celo/react-components/components/Button'
import colors from '@celo/react-components/styles/colors'
import { fontStyles } from '@celo/react-components/styles/fonts'
import { componentStyles } from '@celo/react-components... |
import React from 'react';
import { Docs, DocsExample, DocsSubtitle, DocProps, DocsP } from '@doc-utils';
import propsSrc from './generated-props.json';
import examples from './generated-examples.json';
import {
DataTable,
DataTableContent,
DataTableHead,
DataTableBody,
DataTableHeadCell,
DataTableRow,
... |
<reponame>samnsimson/cdsa365-backend
import e, { Request, Response } from "express";
import moment from "moment-timezone";
import { ResultSetHeader, RowDataPacket } from "mysql2";
import Razorpay from "razorpay";
import DB from "../constructs/db";
import {
create_payment_history,
delete_payment,
extend_due_... |
import { Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
import { AuthServiceConfig } from './auth.service.config';
import { Observable } from 'rxjs/Observable';
import { isNumber } from 'util';
export enum CharacterDataType {
Active,
Cached... |
<reponame>vace/h5-sdk
import $ from '../venders/zepto.js';
import '../assets/ui-music.less'
import { SvgWindmill } from '../assets/svg-string'
import { createClsElement, classPrefix } from "./UiBase.web";
import { addListener, isWechat, document } from '../functions/utils.web';
import { assign, each, pick, isDef, once,... |
/* eslint-disable camelcase */
/* eslint-disable max-classes-per-file */
import { Transform, Type } from "class-transformer";
import type { RustEditorInstance, WasmInstance } from "@/state/wasm-loader";
export class JsMessage {
// The marker provides a way to check if an object is a sub-class constructor for a jsMe... |
<reponame>SocialGouv/domifa<gh_stars>1-10
import { HttpException, HttpStatus, Injectable } from "@nestjs/common";
import * as fs from "fs";
import * as path from "path";
import { appLogger } from "../../util";
import { Usager, UserStructureAuthenticated } from "../../_common/model";
import { UsagerCerfaFields } from ".... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
<reponame>CandleLibrary/Cure
import { copy, traverse } from "@candlelib/conflagrate";
import { JSExpressionStatement, JSNode, JSNodeClass, JSNodeType, JSNodeTypeLU, JSStatementClass, renderWithFormatting, tools } from "@candlelib/js";
import { AssertionSite, AssertionSiteClosure } from "../types/assertion_site.js";
imp... |
import InputAdornment from '@material-ui/core/InputAdornment'
import MenuItem from '@material-ui/core/MenuItem'
import { makeStyles } from '@material-ui/core/styles'
import CheckCircle from '@material-ui/icons/CheckCircle'
import * as React from 'react'
import { styles } from './style'
import { getAddressValidator } fr... |
import {AnyAction, PayloadAction, createSelector, createSlice} from '@reduxjs/toolkit'
import type {ClientError, SanityAssetDocument, SanityImageAssetDocument} from '@sanity/client'
import {HttpError, SanityUploadProgressEvent, UploadItem} from '@types'
import groq from 'groq'
import {Epic} from 'redux-observable'
impo... |
<filename>src/main.ts
import {
nodeIsGeometryMixin,
isGradientFillWithMultipleStops,
interpolateColorStops,
validateSelection,
getValueFromStoreOrInit,
setValueToStorage,
handleNotificationFromUI
} from './utils'
import {
on,
emit,
showUI,
cloneObject,
insertAfterNode,
collapseLayer
} from '@create-figma-p... |
<reponame>chegojs/chego-postgresql<filename>src/impl/functions.ts
import { QuerySyntaxEnum, Fn, AnyButFunction, Atan2Param, DivParam, ModParam, ConcatWsParam,
FieldParam, FindInSetParam, InsertParam, InstrParam, PositionParam, RepeatParam, ReplaceParam,
PadParam, StrcmpParam, SubstrIndexParam, RoundParam, T... |
<reponame>sasjs/cli
import path from 'path'
import {
Target,
ServerType,
StreamConfig,
chunk,
getDependencyPaths,
isTestFile,
readFile,
base64EncodeFile,
listSubFoldersInFolder,
listFilesInFolder,
createFile,
asyncForEach
} from '@sasjs/utils'
import { ServerTypeError } from '@sasjs/utils/error'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.