text stringlengths 3.08k 15.5k |
|---|
<gh_stars>1-10
import { check } from "../util/check";
import { Limit } from "../core/Limit";
import { IStats } from "../util/createStats";
import { GBuffer } from "../res/GBuffer";
import { Extension } from "../core/Extension";
import { SPrimitive } from "../core/Support";
import { CComponent } from "../core/Constant";... |
import * as fc from 'fast-check';
import {
alternativeLazyList,
altLazyList,
applicativeLazyList,
applyLazyList,
bindLazyList,
ConsResult,
constant,
foldableLazyList,
functorLazyList,
LazyList,
lazyList,
makeEqLazyList,
monadLazyList,
monoidLazyList,
NilResult,
plusLazyList,
semigroupL... |
import * as React from "react";
import { cx } from "@emotion/css";
import FormFieldWrapper from "../../shared/components/FormFieldWrapper";
import {
getInputAppearanceStyle,
inputContainer
} from "../../shared/styles/formStyles";
import { Badge } from "../../badge";
import { flex, textTruncate, flexItem } from "../... |
<reponame>santitigaga/async-dataflow
import * as chai from 'chai';
import {ChannelMessage} from "../src/channel-message";
import {MessageDecoder} from "../src/serializer";
import {MessageEvent} from "./support/event"
import {BinaryDecoder} from "../src/binary-decoder";
import "fast-text-encoding"
const assert = chai.... |
// This code initializes existing buttons with loadCzml function. Once clicked, the buttons will load specified CZML files.
//
// Usage:
// 1. Add a button with button-czml-load class and data-file property point to the CZML file name you want to load, e.g.
// <button class="cesium-button button-czml-load" data-fi... |
<gh_stars>0
import { Injectable } from '@angular/core'
import { HttpClient } from '@angular/common/http'
import { Observable, of } from 'rxjs'
import { map, tap } from 'rxjs/operators'
import { MenuNode } from 'src/app/core/models/menu-node.model'
import { MenuNodeTypes } from 'src/app/core/enums/menu-node-types.enum... |
import { CataDataModel } from "./catadata.model";
import { AppDataObjectModel } from "./appdata-object.model";
import { isObject } from "lodash";
import { NewPageModel } from "../panel-extend/panel-catalogue/model";
import { WidgetModel } from "../panel-extend/panel-widget/model/widget.model";
/**
* 配置项选项
*/
export... |
import * as fs from 'fs-extra'
import * as path from 'path'
import * as crypto from 'crypto'
import {URL} from 'url'
import got from 'got'
import * as cheerio from 'cheerio'
import * as css from 'css'
import {walk} from './file'
const self = "'self'"
const https = 'https:'
const wss = 'wss:'
const defaultSrc = 'def... |
import React from 'react';
import { IonGrid, IonCol, IonRow, IonList, IonLabel, IonInput, IonItem, IonSelect, IonSelectOption, IonContent, IonHeader, IonPage, IonTitle, IonToolbar, IonBackButton, IonButtons } from '@ionic/react';
import { ControllerProps } from "../controller/controller";
import { Storage } from '@capa... |
<gh_stars>1-10
import { AnyAction, Reducer, Middleware } from 'redux';
interface FilterOnActionCallback {
(action: AnyAction): boolean;
}
interface OnActionCallback {
(state: any, action: AnyAction, config: MergedReducerConfig): any;
}
interface RequestActionMeta {
asPromise?: boolean;
asMutation?: boolean;
... |
import { readFile } from '@meteor-it/fs';
import { IRouterContext } from '@meteor-it/router';
import { XPressRouterContext } from '@meteor-it/xpress';
import { useStaticRendering } from 'inferno-mobx';
import { renderToStaticMarkup, renderToString } from 'inferno-server';
import { toJS } from 'mobx';
import { pre... |
import * as d3 from "d3";
import chroma from "chroma-js";
import type { FC } from "react";
import { AddressZero } from "@ethersproject/constants";
import Box from "@mui/material/Box";
import { PurchasesControllerGetBlockchainEvents200Item } from "@energyweb/zero-protocol-labs-api-client";
import type { SankeyNode, Sank... |
<gh_stars>1-10
import { lcp } from './strlib'
class Node {
to_edge_label: string
children: Map<string, Node>
birth_time: number
value: number
constructor(birth_time: number, to_edge_label: string, value: number) {
this.to_edge_label = to_edge_label
this.children = new Map()
this.birth_time = birt... |
<filename>packages/build-utils/src/index.ts
import fs from 'fs';
import hashSum from 'hash-sum';
import { load as loadYaml } from 'js-yaml';
import MessageFormat from 'messageformat';
import { minify as terserMinify } from 'terser';
export type Locale = string;
export type Messages = Record<string, string>;
export t... |
<gh_stars>1-10
/// <reference path="./typings/promise.d.ts" />
interface Message {
type: string;
}
interface Response extends Message {
status: number;
message: string;
response_data: any;
request_id: number;
}
interface PushMessage extends Message {
push_event: string;
push_data: any;
}
... |
import styled, { css } from 'styled-components';
import { greaterThan } from '@components/cuMediaQueries';
import { ButtonStyles } from '@components/button/ButtonStyles';
interface ListingStylesProps {
accordion?: boolean;
news?: boolean;
event?: boolean;
people?: boolean;
icon?: boolean;
video?: boolean;
... |
<filename>src/core/directives/binding/binding_parser.ts
import { StringMapWrapper, ListWrapper } from '../../../facade/collections';
import { ParsedBindings, BINDING_MODE, ParsedBindingsMap, INPUT_MODE_REGEX } from './constants';
export interface AttrProp {
/**
* instance property
*/
prop: string;
/**
*... |
import React, {Component} from 'react';
import {
View,
StyleSheet,
Text,
TouchableOpacity,
Alert,
Dimensions,
Button,
Modal,
TouchableHighlight,
ScrollView,
} from 'react-native';
import {GameEngine} from 'react-native-game-engine';
import axios from 'axios';
import Head from './head.tsx';
import Fo... |
import { select } from 'd3-selection';
import { scaleTime, scaleLinear } from 'd3-scale';
import { extent } from 'd3-array';
import { axisLeft, axisBottom } from 'd3-axis';
import { line, area, curveMonotoneX } from 'd3-shape';
import { brushX } from 'd3-brush';
import sub from 'date-fns/sub';
import { History } from ... |
import classnames from 'classnames';
import _ from 'lodash';
import { inject, observer } from 'mobx-react';
import React from 'react';
import { FaTrashAlt } from 'react-icons/fa';
import { FiCopy, FiInfo } from 'react-icons/fi';
import { Button } from '~/components/controls';
import InputContainer from '~/components/co... |
import * as React from 'react';
import { compose } from 'recompose';
import { Checkbox, Dropdown } from 'semantic-ui-react';
import { withTemplateHelpers, Mut, Toggle } from 'react-action-decorators';
import { withTranslations, i18nProps } from '@lib/i18n';
import { isEmpty } from '@lib/collection';
import * as toast f... |
export type ErrorUndefined = 'Error: undefined is not a valid Firestore type'
export type ErrorNullBanned = 'Error: Null type is banned in the setting'
export type ErrorTypesBanned = 'Error: This type(s) is banned in the setting'
export type ErrorDirectNested =
'Error: Direct Nested Array is not a valid Firestore type... |
<gh_stars>0
import {Imploder} from "@nartallax/imploder"
import {AsyncEvent, makeAsyncEvent} from "async_event"
import {BaseProjectInternal} from "base_project"
import {isLaunchableProject} from "launchable_project"
import {Koramund} from "koramund"
import {ProjectController} from "project_controller"
import * as Path ... |
// Main control plane.
var Promise = require("bluebird");
Promise.longStackTraces();
var KubernetesClient = require("./kubernetes-rest.js");
var chalk = require("chalk");
var cmdln = require("cmdln");
var util = require("util");
var logger = require("./logger");
var Project = require("./project");
var Resource =... |
import { post } from '@/utils/ajax'
export const enum API {
/** 用户、销售服务商城列表 */
pageCustomerAndSales = 'service-platform/SecurityServiceMarket/page',
/** 云服务商服务商城列表 */
pageCloudService = 'service-platform/SecurityServiceMarket/providerPage',
/** 同步购物车 */
syncCart = 'service-platform/SecurityServiceMarket/c... |
<reponame>Wilt/angular
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {AotCompilerOptions} from '@angular/compiler';
import {escapeRegExp} from '@angular/com... |
<filename>Develop/node_modules/apollo-server-core/src/plugin/schemaReporting/index.ts
import os from 'os';
import type { InternalApolloServerPlugin } from '../../internalPlugin';
import { v4 as uuidv4 } from 'uuid';
import { printSchema, validateSchema, buildSchema } from 'graphql';
import type { fetch } from 'apollo-s... |
<gh_stars>1-10
/**
* This store contains methods to find and load posts matching the search.
*/
import Vue from "vue";
import Vuex, { StoreOptions } from "vuex";
import router from "@/router";
import { searchModule, SearchState } from "./Search";
import { postsModule, PostsState } from "./Posts";
import PostService,... |
//
// DomainListRequest.ts
//
// Created by <NAME> on 28 Jul 2021.
// Copyright 2021 Vircadia contributors.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
import PacketType from "../udt/PacketHeaders";
import UDT ... |
import { is } from "./is.js";
import { extend } from "./util/extend.js";
import { global } from "./global.js";
import { activateCamera } from "./activateCamera.js";
import { patch } from "./patch/patch.js";
import { load } from "./load.js";
import { loadingScreen } from "./util/loadingScreen.js";
let isReady = false... |
/// <reference path="../typings/tsd.d.ts" />
// model
import { Tab } from "./tab"
import { WidgetGroup } from "./widget_group"
import { Widget } from "./widget"
import { WidgetInstance } from "./widget_instance"
import { SerializedWorkspace } from "../model/serialized_workspace";
// super
import { frontend } from "..... |
<filename>src/renderer/PresenceHooks.ts
import { useState, useEffect, useContext } from 'react'
import { HypermergeUrl, parseDocumentLink, createDocumentLink, PushpinUrl } from './ShareLink'
import { useTimeouts, useMessaging, useRepo, useDocument } from './Hooks'
import { useSelfId } from './SelfHooks'
import { Curren... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { CondaEnvironmentInfo } from '../../pythonEnvironments/discovery/locators/services/conda';
import { InterpreterInformation } from '../../pythonEnvironments/discovery/types';
import { traceError, traceInfo } from '..... |
import {
Transformer, gql, TransformerContext, getDirectiveArguments, TransformerContractError
} from 'graphql-transformer-core';
import { obj, str, ref, printBlock, compoundExpression, qref, raw, iff } from 'graphql-mapping-template';
import { ResolverResourceIDs, FunctionResourceIDs, ResourceConstants } from 'gr... |
/**
* Effectively a copy-paste of rot.js's lighting code using Vector2Array and malwoden's FOV implementation.
* https://github.com/ondras/rot.js/blob/master/src/lighting.ts
* https://github.com/Aedalus/malwoden
*/
import type { Color, Size, Vector2 } from './types';
import type { FOV } from 'malwoden';
import { ... |
<filename>libs/sdk-ui-dashboard/src/model/commandHandlers/dashboard/saveAsDashboardHandler.ts
// (C) 2021-2022 GoodData Corporation
import { IDashboard, IDashboardDefinition, IAccessControlAware } from "@gooddata/sdk-model";
import { BatchAction, batchActions } from "redux-batched-actions";
import { SagaIterator } fro... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React from "react"
import camelCase from "lodash/camelCase"
import styled from "styled-components"
import Modal from "react-modal"
import { Tab, Tabs, TabList, TabPanel } from "react-tabs"
import "react-tabs/style/react-tabs.css"
import { mq, spacing, fontSize } from "../../../theme"
import Button from "../../bu... |
// Copyright 2016-2018, Pulumi Corporation.
//
// 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... |
import { Rule, SchematicContext, Tree, chain, SchematicsException } from '@angular-devkit/schematics';
import { Schema } from './schema';
import { normalize, Path, parseJsonAst, JsonAstObject } from '@angular-devkit/core';
import { findPropertyInAstObject, appendPropertyInAstObject, appendValueInAstArray, getWorkspa... |
import { Box, Button, Flex, Sans, Serif } from "@artsy/palette"
import { CreditCardInstructions } from "Apps/Auction/Components/CreditCardInstructions"
import { CreditCardInput } from "Apps/Order/Components/CreditCardInput"
import { Address, AddressForm } from "Components/AddressForm"
import { ConditionsOfSaleCheckbox ... |
import {
GraphQLSchema,
GraphQLField,
ExecutionResult,
GraphQLType,
GraphQLFieldResolver,
GraphQLResolveInfo,
GraphQLIsTypeOfFn,
GraphQLTypeResolver,
GraphQLScalarType,
GraphQLNamedType,
DocumentNode,
} from 'graphql';
import { SchemaDirectiveVisitor } from './schemaVisitor';
/* TODO: Add docume... |
/* eslint-disable */
import { FileDescriptorProto } from "ts-proto-descriptors/google/protobuf/descriptor";
import {
protoMetadata as protoMetadata1,
Attribute,
AttributeObj,
} from "../../io/restorecommerce/attribute";
import { Writer, Reader } from "protobufjs/minimal";
export const protobufPackage = "io.resto... |
<gh_stars>0
/*
* Copyright 2015-2016 Imply Data, Inc.
* Copyright 2017-2018 Allegro.pl
*
* 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... |
<gh_stars>0
import fs from "fs";
import { readdir, readFile, realpath, rmdir, stat, writeFile } from "fs/promises";
import mkdirp from "mkdirp";
import fetch from "node-fetch";
import { fileURLToPath, pathToFileURL, URL } from "url";
import { createSourceFile, DiagnosticHandler } from "./diagnostics.js";
import { creat... |
import React, { useState, useContext, useEffect} from 'react';
import { Link, withRouter, RouteComponentProps } from 'react-router-dom';
import styles from './search-result.module.scss';
import ReactHtmlParser from 'react-html-parser';
import { UserContext } from '../../util/user-context';
import { dateConverter } from... |
<filename>core/templates/domain/exploration/ExplorationObjectFactory.ts
// Copyright 2015 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... |
<gh_stars>0
/*
© 2020 NetSuite Inc.
User may not copy, modify, distribute, or re-bundle or otherwise make available this code;
provided, however, if you are an authorized user with a NetSuite account or log-in, you
may use this code subject to the terms that govern your access and use.
*/
/// <amd-module name="Sub... |
import { Box, Flex } from "reflexbox/styled-components";
import React, { useState, useEffect } from "react";
import formatDate from "date-fns/format";
import { NextPage } from "next";
import Link from "next/link";
import axios from "axios";
import Text, { H1, H2, H4, Span } from "../components/Text";
import { getAxios... |
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
export type ParseItem<Result = unknown> =
| string
| RegExp
| Iterable<ParseItem>
| (() => Generator<ParseItem, Result, any>);
export type ParseYieldable<Result = unknown> = ParseItem<Result>;
export interface ParseError {
iterationCount: number;
yielded: ParseItem | Error;
nested?: Array<ParseError>;
}
... |
import * as React from 'react';
import {
Animated,
SafeAreaView,
StyleProp,
StyleSheet,
ViewStyle,
} from 'react-native';
import Button from './Button';
import Surface from './Surface';
import Text from './Typography/Text';
import { withTheme } from '../core/theming';
import { Theme } from '../types';
type ... |
<reponame>reach2deep/rainbow-farms-app
import { inject } from '@angular/core/testing';
import { PagedData } from './../../shared/paging/paged-data';
import { Page } from './../../shared/paging/page';
import {Observable, of, throwError as observableThrowError} from 'rxjs';
import {Injectable} from '@angular/core';
impor... |
<reponame>Xiaohua-Shen/kui<filename>plugins/plugin-kubectl/src/controller/kubectl/get-namespaces.ts
/*
* Copyright 2020 IBM Corporation
*
* 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
*... |
<filename>src/app/app.routing.ts
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppConfig } from './app.config';
import { AuthGuard } from './shared/auth/auth.guard';
import { LoginComponent } from './pages/login/login';
import { HomeComponent } fr... |
import React, { useContext, useMemo } from 'react'
import styled, { ThemeContext } from 'styled-components'
import { Pair } from '@uniswap/sdk'
import { Link } from 'react-router-dom'
import { SwapPoolTabs } from '../../components/NavigationTabs'
import FullPositionCard from '../../components/PositionCard'
import { us... |
import { module } from 'angular';
import { Application } from 'core/application/application.model';
import { IMoniker } from 'core/naming/IMoniker';
import { ILoadBalancer, ISecurityGroup, ISubnet, IPipeline, IStage, IManagedResourceSummary } from 'core/domain';
import { ICapacity } from '../../serverGroupWriter.servi... |
<reponame>BlondelSeumo/Customer-Support-Software-with-Ticketing-System
import {Injectable} from '@angular/core';
import {BehaviorSubject, combineLatest, Subscription} from 'rxjs';
import {Paginator} from '../shared/paginator.service';
import {debounceTime, filter, map, pairwise, skip, tap} from 'rxjs/operators';
import... |
<gh_stars>1-10
export type HorizontalPiecePosition =
| 'a'
| 'b'
| 'c'
| 'd'
| 'e'
| 'f'
| 'g'
| 'h'
| 'i';
export type HorizontalWallPosition =
| 'a'
| 'b'
| 'c'
| 'd'
| 'e'
| 'f'
| 'g'
| 'h';
export type VerticalPiecePosition = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
export type Vertic... |
/*
Copyright (c) Microsoft Corporation.
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... |
<reponame>alexhrao/canvas-quiz-parser
import parse from "csv-parse/lib/sync";
import {
Question,
Essay,
FITB,
Student,
QuizResponse,
CanvasStudent,
QuestionType,
CanvasConfig,
} from "../types";
import { getQuestion } from "../canvas";
export interface ParseConfig {
canvas: CanvasCo... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
<gh_stars>0
/*
* 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
* "Lic... |
<gh_stars>0
import { InfluxDBBatchElement } from "./InfluxDBBatchElement";
const AMP_MAX = 16;
const V_GRID = 230;
interface ChargingControl {
chargeCurrent: number;
doCharging: boolean;
mode: string;
isCarConnected: boolean;
influxDb: InfluxDBEGoChargerCtl;
}
interface InfluxDBEGoChargerCtl ex... |
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { Animated, Linking, StyleSheet } from 'react-native';
import {
useDrawerStatus,
createDrawerNavigator,
DrawerContentComponentProps,
DrawerContentScrollView,
} from '@react-navigation/drawer';
import Screens from './Screens';
impo... |
<reponame>boost-entropy-typescript/eigen<gh_stars>1-10
import { danger, fail, markdown, warn } from "danger"
// TypeScript thinks we're in React Native,
// so the node API gives us errors:
import * as fs from "fs"
import { pickBy } from "lodash"
import * as yaml from "yaml"
import { ParseResult } from "./scripts/change... |
import {
array,
lazy,
number,
object,
optional,
Schema,
string,
} from '../schema';
import {
InvoiceAcceptedPaymentMethods,
invoiceAcceptedPaymentMethodsSchema,
} from './invoiceAcceptedPaymentMethods';
import {
InvoiceCustomField,
invoiceCustomFieldSchema,
} from './invoiceCustomField';
import {
... |
/** @jsxImportSource @emotion/react */
import { css } from "@emotion/react";
import React, { useCallback, useEffect, useRef, useState } from "react";
import { useDetailRoomState } from "../atoms/detailRoomState";
import { useMessageListState } from "../atoms/messageListState";
import useSocket from "../hooks/useSocket"... |
import { gql, useQuery } from '@apollo/client';
import { JsonRpcProvider, Web3Provider } from '@ethersproject/providers';
import { Button, Input, Table, Typography } from 'antd';
import { Contract } from 'ethers';
import GraphiQL from 'graphiql';
import 'graphiql/graphiql.min.css';
import React, { FC, ReactElemen... |
<gh_stars>1-10
import { StateForComponent as NewElement } from "components/templates/content_rendering/TemporaryFields"
import { ContentType } from "components/utilities/contentTypes"
import Moment from "moment"
import Http from "functions/HttpRequest"
import { IEditLocalObject } from "state/actions/local"
// Take the... |
<gh_stars>0
// tslint:disable: no-magic-numbers
import * as http from 'http';
import * as https from 'https';
import * as qs from 'qs';
import { RequestTypeE } from '../Enum/RequestType';
import { Logger } from './Logger';
import * as crypto from 'crypto';
export type Response = {
Data: string;
Headers: string[];
};... |
import { ModelTransformer } from '@aws-amplify/graphql-model-transformer';
import { PredictionsTransformer } from '@aws-amplify/graphql-predictions-transformer';
import { GraphQLTransform } from '@aws-amplify/graphql-transformer-core';
import { Output } from 'aws-sdk/clients/cloudformation';
import { default as S3 } fr... |
<reponame>atarela/Node-Devops
//Import ExpressJS
import express = require('express')
import path = require('path')
import bodyparser = require('body-parser')
import session = require('express-session')
import levelSession = require('level-session-store')
//Import classes
import { MetricsHandler, Metric } from './metric... |
<reponame>gcnew/tslambda<gh_stars>1-10
// TypeScript version of <NAME>'s constraint type inferencer from
// http://dev.stephendiehl.com/fun/006_hindley_milner.html
import * as Map from '../lang/map'
import * as Set from '../lang/set'
import {
fromJust,
Either, left, right,
Nil, cons, foldl
} from '../... |
import { useMemo, Dispatch, SetStateAction, useEffect } from 'react';
import { generatePath, Link } from 'react-router-dom';
import cn from 'classnames';
import { Tabs, Tab, BinIcon, Button, FullViewIcon } from 'franklin-sites';
import ResultsData from '../shared/components/results/ResultsData';
import EmptyBasket fro... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { createSelector } from 'reselect';
import { matchPath } from 'react-r... |
import $ from '../util/preconditions';
import * as _ from 'lodash';
import BN from 'bn.js';
const HEX_BASE = 16;
const DECIMAL_BASE = 10;
const NEGATIVE_128 = 0x80;
const POSITIVE_127 = 0x7f;
type Endianness = 'le' | 'be';
interface IBufferEncodingOptions {
size?: number;
endian?: 'little' | 'big';
}
export class... |
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {CountriesComponent} from './countries/countries.component';
import {AuthGuard} from '../../../shared/guard';
import {CurrencyComponent} from './currency/currency.component';
import {AddCountryComponent} from './countri... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
<gh_stars>0
import {
MultiLineStream, _FSL, _AST, _NWL, _BAR, _COL, _BOP, _BCL, _DOT, _PCS, _LAN, _DQO, _SQO, _RAN, _SBO, _SCL, _AND
} from './utils'
export enum ScannerState {
WithinContent,
WithinDefinition,
WithinComment,
};
export enum TokenType {
Word,
SemiColon,
Asterisk,
Ampersa... |
<reponame>boolgom/entryjs
/**
* nt11576 Lee.Jaewon
* This is worker thread for video detection purpose without blocking main thread to avoid delayed UI update
*/
// load model right after mount
/**
* preload를 위해 매직 넘버를 사용할수 밖에 없는 환경, 480,270 은 videoUtils.ts의 캔버스 크기
*/
import * as posenet from '@tensorflow-models... |
<filename>src/Explorer/Panes/Tables/Validators/EntityTableHelper.tsx
import { IImageProps, IStackProps } from "@fluentui/react";
import * as _ from "underscore";
import * as TableConstants from "../../../Tables/Constants";
import * as Entities from "../../../Tables/Entities";
import * as Utilities from "../../../Tables... |
<gh_stars>0
import { skip, filter } from 'rxjs/operators';
import { from, isObservable, of } from 'rxjs';
import { HashMap, MaybeAsync } from './types';
import { isFunction } from './isFunction';
import { AkitaError } from './errors';
import { __stores__ } from './stores';
import { getValue } from './getValueByString';... |
<reponame>ndlib/illiad-gateway-blueprints
import * as cdk from '@aws-cdk/core'
import { SecretValue } from '@aws-cdk/core'
import apigateway = require('@aws-cdk/aws-apigateway')
import lambda = require('@aws-cdk/aws-lambda')
import { RetentionDays } from '@aws-cdk/aws-logs'
import { StringParameter } from '@aws-cdk/aws... |
import * as _ from "lodash";
import * as path from "path";
import * as clc from "cli-color";
import * as fs from "fs-extra";
import { FirebaseError } from "../error";
import { logger } from "../logger";
import * as extensionsApi from "./extensionsApi";
import {
getFirebaseProjectParams,
populateDefaultParams,
su... |
import React from 'react'
import {
StyleSheet,
Text,
View,
Image,
TouchableNativeFeedback
} from 'react-native'
import colorConfig, {
levelColor
} from '../constant/colorConfig'
import { getHomeURL } from '../dao'
import { FlatlistItemProp, FlatlistItemState, ModalList } from '../interface'
interface Ex... |
import { renderOptions } from '@/common/comptsHelper';
import { NEW_THING_ID_PREFIX_MARK, removeIndex } from '@/common/utils';
import { getHashQuery } from '@/components/hashHistory';
import { ToggleStatusButton } from '@/components/ToggleStatus';
import {
ExtensionGlobalOptions,
FileSetDetail,
MATCH_TYPE,
Rule... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
/** @jsx h */
import { h, Component, RenderableProps } from 'preact';
import b from 'bem-react-helper';
import { Theme, User } from '@app/common/types';
import { sendEmailVerificationRequest } from '@app/common/api';
import { extractErrorMessageFromResponse } from '@app/utils/errorUtils';
import { connect } from 'preac... |
import 'react-virtualized/styles.css';
import React, { useContext, useEffect, useState } from "react";
import { useSolanaExplorerUrlSuffix } from '../contexts/connection';
import { LAMPORTS_PER_SAFE, PublicKey, ValidatorInfo, VoteAccountInfo } from '@safecoin/web3.js';
import { Typography, Link } from '@material-ui/cor... |
<reponame>r-chris/dash-table
import * as R from 'ramda';
import { CSSProperties } from 'react';
import { OptionalMap, OptionalProp, PropOf } from 'core/type';
import py2jsCssProperties from '../style/py2jsCssProperties';
import { shallowClone } from 'core/math/matrixZipMap';
export type Edge = any;
export type Borde... |
import { ArtemisTestModule } from '../../test.module';
import { MockSyncStorage } from '../../helpers/mocks/service/mock-sync-storage.service';
import { MockTranslateService } from '../../helpers/mocks/service/mock-translate.service';
import { QuizExerciseService } from 'app/exercises/quiz/manage/quiz-exercise.service'... |
import { Writer, Reader } from 'protobufjs/minimal';
import { FileDescriptorProto, GeneratedCodeInfo } from '../../../google/protobuf/descriptor';
/** The version number of protocol compiler. */
export interface Version {
major: number;
minor: number;
patch: number;
/**
* A suffix for alpha, beta o... |
import { useAppSelector } from "@/redux/hooks";
import { selectDarkMode } from "@/redux/stores/preference";
import { createGlobalStyle } from "styled-components"
// Using styled-components provided theme is great and all but I'm losing
// in-browser variable modifications. It's easy to get the current OS
// theme but ... |
/* eslint-disable jsx-a11y/no-autofocus */
/* eslint-disable jsx-a11y/anchor-is-valid */
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
import React, { Fragment, memo, useEffect, useState } from 'react';
import i18n from 'i18next';
import { useTra... |
import { BorderButton, Button } from '~/Components/shared/Button';
import { IC_CALANDAL_EXPIRE, IC_GRAY_THIN_PLUS } from '~/utils/svg';
import React, { useContext, useEffect, useState } from 'react';
import { BranchSelector } from '~/Components/shared';
import DatePicker from 'react-native-datepicker';
import Document... |
import React, { useState, useEffect } from 'react';
import { useTranslation, Trans } from 'next-i18next';
import Col from 'react-bootstrap/Col';
import Form from 'react-bootstrap/Form';
import Row from 'react-bootstrap/Row';
import ImageBasePath from 'components/ImageBasePath';
import Medal from 'components/Medal';
i... |
<filename>packages/core/nest-factory.ts<gh_stars>1-10
import {
HttpServer,
INestApplication,
INestApplicationContext,
INestMicroservice,
} from '@nestjs/common';
import { MicroserviceOptions } from '@nestjs/common/interfaces/microservices/microservice-configuration.interface';
import { NestMicroserviceOptions }... |
<gh_stars>1-10
import { Type } from '@angular/core';
import { DateColumnComponent } from '@app-theme/components/base-table-layout/base-date-column.component';
import { BooleanColumnRenderComponent, NumberColumnComponent } from '@app-theme/components/render-column-layout';
import { DefaultEditor, ViewCell } from '@vamid... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import * as fs from 'fs-plu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.