text stringlengths 3.08k 15.5k |
|---|
/* GENERATED FILE */
import { useContext } from "solid-js";
import { IconContext } from "../lib";
const renderPathFor = (weight: string, color: string) => {
switch (weight) {
case "bold":
return (
<>
<path d="M32,160V56a8,8,0,0,1,8-8H216a8,8,0,0,1,8,8V160" fill="none" stroke={color} str... |
/**
* @license
* Copyright 2018-2020 Streamlit 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 required by applicab... |
import React, { memo, useCallback, useEffect, useReducer } from "react";
import { StyleSheet, SectionList } from "react-native";
import { Trans } from "react-i18next";
import { useTheme } from "@react-navigation/native";
import styled from "styled-components/native";
import { Icons, Box, Flex, Text } from "@ledgerhq/na... |
<filename>src/request.ts
import { EventEmitter } from 'events';
import { typeByName as TYPES, Parameter } from './data-type';
import { RequestError } from './errors';
import Connection from './connection';
import { SQLServerStatementColumnEncryptionSetting } from './always-encrypted/types';
// TODO: Figure out how to... |
<reponame>Ualker/yoha<filename>src/demos/draw/draw.ts
/**
* This file contains code for the draw demo. You can find a live version at
* https://handtracking.io/draw_demo
*
* Note that the complete demo consists out of this file and one of the `*_entry` files contained
* in this directory (there is one for each bac... |
<filename>packages/firestore/src/model/field_index.ts
/**
* @license
* Copyright 2021 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/L... |
<reponame>uttk/ojaman<gh_stars>1-10
import hark from "hark";
import { MyRTCPeerConnection } from "./utils/MyRTCPeerConnection";
import { getMediaStreamFromVideo, getCloneMediaStream, replaceSenderTracks } from "./utils/media";
import { OjamanStateValue, OjamanOptions } from "./types";
/**
* @description 登録されている処理を停... |
import styled from 'styled-components';
interface InfoProps {
isBig?: boolean;
stat?: boolean;
}
interface SubTabProps {
isOpen?: boolean;
}
export const Frame = styled.div`
background: #444;
display: flex;
flex-direction: column;
align-items: center;
border: 1px solid #c8c8c8;
border-radius: 10px;
width: ... |
import { Action } from '@ngrx/store';
import { UserNotification, KVSection } from './application.state';
import { SearchedInfo } from '../../models/search-info';
export const ApplicationActionType = {
Search: '[application] Search',
HpDrawer: '[application] HpDrawer', // <- New Type format for ease of global searc... |
<reponame>afternoon2/smartsettings
import { PanelNode } from './Panel';
import { ButtonControl } from '../../controls/button/ButtonControl';
import { TextControl } from '../../controls/text/TextControl';
import { TextAreaControl } from '../../controls/textarea/TextAreaControl';
import { NumberControl } from '../../cont... |
import {
Component,
ElementRef,
EventEmitter,
HostBinding,
Input,
OnChanges,
OnInit,
Output,
SimpleChanges,
ViewChild,
ViewEncapsulation,
} from '@angular/core';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { FlzCoreComponent } from '@fokklzdev/components/core';
imp... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import {Reshape} from '../../../ops/reshape';
import {Tensor} from '../../../tensor';
import {ShapeUtil} from '../../../util';
import {getGlsl} from '../glsl-source';
import {WebGLInferenceHandler} from '../inference-handle... |
import * as React from 'react';
import {
useState,
useRef,
useEffect,
} from 'react';
import {
isFunc,
} from '../util/checkType';
import {
TransitionProps,
STATUS,
} from './Transition';
interface TransitionQueue {
appear?: boolean;
enter?: boolean;
leave?: boolean;
wrap?: string;
wrapClassName?... |
<gh_stars>0
import { Dispatch, SetStateAction, useCallback, useEffect, useMemo, useState } from 'react'
import productCalc from 'renderer/helpers/productCalc'
import ToastService from 'renderer/services/ToastService'
import { useStore } from 'renderer/store'
import IProduct from 'renderer/types/IProduct'
type useAddP... |
import {
Goldsmith,
GoldsmithPlugin,
goldsmithJSONMetadata,
goldsmithFrontMatter,
goldsmithExcludeDrafts,
goldsmithFileMetadata,
goldsmithIndex,
goldsmithCollections,
goldsmithInjectFiles,
goldsmithMarkdown,
goldsmithRootPaths,
goldsmithLayout,
goldsmithLayoutLiteralH... |
import { ChildProcessWithoutNullStreams, spawn, spawnSync } from 'child_process';
import config from '../common/config';
import Logger from '../common/logger';
import { Status } from '../common/status.model';
const logger = new Logger('ProcessService');
const ElastalertSplitLogsRegexp = /(?<level>DEBUG|INFO|WARNING|E... |
import {
ChoiceGroup,
ComboBox,
IChoiceGroupOption,
IComboBoxOption,
Link,
TooltipHost,
} from 'office-ui-fabric-react';
import * as React from 'react';
import { Dialog } from 'src/components/dialog';
import {
DistanceUnits,
IUserSettings,
WeatherFieldSettings,
We... |
import React, { Component, Fragment, ReactElement } from 'react';
import { ChartInternalShallowDataShape } from '../../common/data';
import { arc } from 'd3-shape';
import { Gradient } from '../../common/Gradient';
import bind from 'memoize-bind';
import chroma from 'chroma-js';
import { path } from 'd3-path';
import {... |
import {JsonFam, JsonGedcomData, JsonIndi, gedcomEntriesToJson} from 'topola';
import {GedcomEntry, parse as parseGedcom} from 'parse-gedcom';
export interface GedcomData {
head: GedcomEntry;
indis: {[key: string]: GedcomEntry};
fams: {[key: string]: GedcomEntry};
}
export interface TopolaData {
chartData: Js... |
<gh_stars>1-10
/**
* Extract the prefix as a whole string from the number parts.
*
* @param valueParts the parts of the formatted number returmed from Intl.NumberFormat#formatToParts
* @returns the prefix as a single string or an empty string.
*/
export const getPrefix = (valueParts: Intl.NumberFormatPart[]): stri... |
//
// Copyright © 2020 Province of British Columbia
//
// 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 l... |
<reponame>pulumi-bot/pulumi-azure-native<gh_stars>0
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** 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";
// Export members:
export ... |
import {
Breadcrumb,
Button,
Collapse,
Divider,
Icon,
Input,
message,
Modal,
Select,
} from 'antd';
import Form, { FormComponentProps } from 'antd/lib/form';
import React from 'react';
import intl from 'react-intl-universal';
import { connect } from 'react-redux';
import { RouteComponentProps, withRou... |
import {
CloudStorageProvider,
ICreateFileOptions,
ICreateFolderOptions,
IUpdateFileOptions,
IUpdateFolderOptions,
CloudFileType
} from './cloud-storage-provider';
import { GoogleAuth } from '../authentication/google-auth';
interface IRequestOptions {
method: string;
path: string;
p... |
import { from as fromPromise } from 'rxjs';
import { map } from 'rxjs/operators';
import { SourceFile } from 'typescript';
import { join, parse } from 'path';
import { nanoid } from 'nanoid';
import { isObjectLike } from 'lodash';
import {
apply,
applyTemplates,
chain,
filter,
mergeWith,
move,
... |
<filename>src/viewsets/BaseViewSet.ts<gh_stars>10-100
import * as Koa from 'koa';
import * as Router from 'koa-router';
import { pick } from 'lodash';
import { ModelClass, QueryBuilder } from 'objection';
import * as moment from 'moment';
import NotFoundError from '../errors/NotFoundError';
import DatabaseError from '.... |
<reponame>cncolder/postcss-plugins
import postcssProgressiveCustomProperties from '@csstools/postcss-progressive-custom-properties';
import type { PluginCreator } from 'postcss';
import type { Node } from 'postcss-value-parser';
import valueParser from 'postcss-value-parser';
import { ColorStop, colorStopList } from '.... |
<filename>src/consumer/config/extension-data.ts
/* eslint-disable max-classes-per-file */
import R, { forEachObjIndexed } from 'ramda';
import { compact } from 'ramda-adjunct';
import { BitId, BitIds } from '../../bit-id';
import { AbstractVinyl } from '../component/sources';
import { Artifact } from '../component/sour... |
import * as React from 'react';
import {
StyleSheet,
View,
Text,
Button,
TextInput,
Dimensions,
Alert,
} from 'react-native';
import SdkCardPayment from 'react-native-sdk-card-payment';
export default function App() {
const [result, setResult] = React.useState<string | undefined>('');
const [cardNum... |
import { check, JSONValue, sleep } from 'k6'
import { SharedArray } from 'k6/data'
import http from 'k6/http'
import { Rate } from 'k6/metrics'
import { Payload } from './config/types'
import { vu } from 'k6/execution'
// load the test duration from the environment or default to 10m
let testDuration = '10m'
if (__ENV.... |
import * as React from 'react';
import {
SearchInput,
Select,
SelectOption,
SelectVariant,
ToolbarItem,
} from '@patternfly/react-core';
import { removeQueryArgument, setQueryArgument } from '@console/internal/components/utils';
import { history } from '../../ConsoleInternal/components/utils/router';
import {... |
import * as express from 'express';
import * as https from 'https';
import { Organizacion } from '../schemas/organizacion';
import * as utils from '../../../utils/utils';
import { toArray } from '../../../utils/utils';
import * as configPrivate from '../../../config.private';
import { Auth } from '../../../auth/auth.cl... |
import { verifyDiscordInteraction } from '#api/verifyDiscordInteraction';
import { discordDeveloperDocs } from '#commands/discordDeveloperDocs';
import { djsDocs } from '#commands/djsDocs';
import { djsGuide } from '#commands/djsGuide';
import { githubSearch } from '#commands/githubApi';
import { invite } from '#comman... |
<reponame>getto-systems/getto-css<gh_stars>0
import { VNode } from "preact"
import { html } from "htm/preact"
import { useReportRowsComposition } from "../../../../../z_vendor/getto-css/preact/design/hooks/print/compose"
import {
reportFolio,
reportFolios,
reportTitle,
reportTitle_small,
reportTit... |
import { createElement, useEffect, useState } from "react";
export const ExpressVpn: React.FC<
Unwrap.ReactUnwrapped<"svg" | "path" | "g" | "foreignObject">
> = ({ children, svg, path, g, foreignObject }) => (
<svg
{...svg}
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
... |
<filename>tests/src/rules/handle-callback-err.ts
import { AST_NODE_TYPES } from '@typescript-eslint/types';
import { TSESLint } from '@typescript-eslint/utils';
import rule from '../../../src/rules/handle-callback-err';
const error = (declaration?: boolean): TSESLint.TestCaseError<'expected'> => ({
messageId: 'expe... |
<gh_stars>0
import addon from '../utils/addon';
import { NodeWidget, QWidget } from './QWidget';
import { NativeElement, Component } from '../core/Component';
import { QListWidgetItem } from './QListWidgetItem';
import { QAbstractItemView, QAbstractItemViewSignals } from './QAbstractItemView';
import { QSize } from '..... |
import React, { useCallback, useEffect, useRef, PureComponent, ReactText } from 'react';
import { useGetImage } from 'utility/JellyfinApi';
import { Album, NavigationProp } from '../types';
import { Text, SafeAreaView, SectionList, View } from 'react-native';
import { useDispatch } from 'react-redux';
import { useNavig... |
<reponame>kolaamoo25/aws-toolkit-vscode<gh_stars>0
/*!
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import * as assert from 'assert'
import * as bytes from 'bytes'
import * as vscode from 'vscode'
import * as GitTypes from '../../../../types/git'... |
import * as GTS from "./gts";
import * as DBCore from "./gts.db";
import * as Threading from './gts.threading';
import * as WebApp from './gts.webapp';
// make a unique identifier, it is a timestamp first uuid and includes the mac of the machine made on
export async function newUUID(): Promise<string>{
// start the ... |
import React, { useEffect, useState } from "react";
import axios from "axios";
import moment from "moment";
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
import Alert from "@material-ui/lab/Alert";
import Paper from "@material-ui/core/Paper";
import Grid from "@material-ui/core/Grid";
imp... |
import React, { useRef, useState, useCallback, useEffect } from 'react';
import Icon from 'react-native-vector-icons/Feather';
import { FormHandles } from '@unform/core';
import { Form } from '@unform/mobile';
import ImagePicker, { ImagePickerResponse } from 'react-native-image-picker';
import FormData from 'form-data'... |
<filename>src/r/definitions/variables/VariableSubTypes.ts
import { ICogObjectDefinition } from "../BaseCogObject";
import { ROM, RT } from "../../R";
export interface IVariableDefinition extends ICogObjectDefinition {
variable_type: VariableType;
varDefaultName: string,
varDefaultValue: VarValue,
}
export enum ... |
import { getModifierState } from '../../../utils';
import {
IRootPosition,
is_equal,
IVirtualPosition
} from '../../../positioning';
import * as lsProtocol from 'vscode-languageserver-protocol';
import * as CodeMirror from 'codemirror';
import { CodeMirrorLSPFeature, IEditorRange } from '../feature';
import { Deb... |
export const PUBLIC_KEY_LENGTH = 32
export const PRIVATE_KEY_LENGTH = 32
export const SIGNATURE_LENGTH = 64
export const ADDRESS_LENGTH = 26
export const MAIN_NET_CHAIN_ID = 65 // A
export const TEST_NET_CHAIN_ID = 75 // K
export interface INonceSeed {
seed: TBytes
nonce?: number
}
export type AESMode = 'CBC' | ... |
import { HandshakeRejected, HsRejectStatus } from './errors';
import { EventEmitter } from 'events';
import { Logger } from './logger';
import * as newDebug from 'debug';
import * as crypto from 'crypto';
import * as assert from 'assert';
import * as WebSocket from 'ws';
const debug = newDebug('clustd:client');
const ... |
<reponame>raghavv/mubble
/*------------------------------------------------------------------------------
About : Logger Utility Class
Created on : Thu Jun 15 2017
Author : <NAME>
Copyright (c) 2017 Mubble Networks Private Limited. All rights reserved.
--------------------------------------... |
import * as React from 'react';
import { sortable } from '@patternfly/react-table';
import * as classNames from 'classnames';
import {
getMachineAddresses,
getMachineInstanceType,
getMachineNodeName,
getMachineRegion,
getMachineRole,
getMachineZone,
Status,
getMachinePhase,
} from '@console/shared';
imp... |
import {Component, Input, OnInit, ViewChild} from '@angular/core';
import {CapacitorService} from "../../../../shared/services/capacitor.service";
import {Capacitor} from "../../../../shared/model/capacitor";
import {ElementEnum} from "../../../../shared/model/element-enum";
import {RlcEditComponent} from "../rlc-edit/... |
/*
* Copyright (C) 2020 <NAME>
*
* 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... |
<gh_stars>0
import Quill from "quill";
const BlockEmbed = Quill.import("blots/block/embed");
import { addEmbedOverlay, addErrorMessage, addLoadingMessage } from "./utils";
const Link = Quill.import("formats/link");
const logging = require("debug")("bobapost:embeds:oembeds");
const attachObserver = function (this: OE... |
import { CONST, logging, u, wallet } from "@marcoslobo/poma-core";
import * as internal from "../../settings";
import axios from "axios";
import {
filterHttpsOnly,
findGoodNodesFromHeight,
getBestUrl,
PastTransaction,
RpcNode
} from "../common";
import {
PomascanBalance,
PomascanClaim,
PomascanPastTx,
... |
import DetailsWrapper from "../../components/DetailsWrapper";
import PixelnetzImg from "../../components/Imgs/Pixelnetz";
import pixelnetzAvif1000 from "./img/pixelnetz-1000.avif";
import pixelnetzAvif750 from "./img/pixelnetz-750.avif";
import pixelnetzAvif500 from "./img/pixelnetz-500.avif";
import pixelnetzAvif250 f... |
<reponame>kass507/unreal.js
import { ParserException } from "../../../exceptions/Exceptions";
import { FByteArchive } from "../../reader/FByteArchive";
import { FArchive } from "../../reader/FArchive";
import { FGuid } from "../../objects/core/misc/Guid";
import { FFileArchive } from "../../reader/FFileArchive";
import... |
import SidebarMenu, { ISidebarMenuItem } from '@ferlab/ui/core/components/SidebarMenu';
import intl from 'react-intl-universal';
import ScrollContent from '@ferlab/ui/core/layout/ScrollContent';
import { ExperimentOutlined, UserOutlined, FileSearchOutlined } from '@ant-design/icons';
import PageContent from 'views/Data... |
import './App.css';
import LegoBoost from 'lego-boost-browser';
import { DEFAULT_CONFIG } from 'lego-boost-browser/dist/hub/hubAsync';
import * as React from 'react';
import { BrowserRouter, Route, Redirect, Switch } from 'react-router-dom';
import { Grid } from 'semantic-ui-react';
import localStorage from 'local-sto... |
<filename>app/services/meta-tags.ts
import { service } from '@ember-decorators/service';
import Service from '@ember/service';
import HeadTagsService from 'ember-cli-meta-tags/services/head-tags';
import config from 'ember-get-config';
import I18N from 'ember-i18n/services/i18n';
import pathJoin from 'ember-osf-web/uti... |
import * as React from 'react'
export type TweenArguments = {
mode: 'autostart' | 'manualstart'
startAt?: number
duration?: number
easingFn?: TEasing
onEnd?: () => void
}
export interface TweenControl {
start: () => void
pause: () => void
resume: () => void
}
const animData: { listeners: Array<() => ... |
<reponame>vgik6681/vscode-gitlens<filename>src/commands/git/cherry-pick.ts
'use strict';
/* eslint-disable no-loop-func */
import { Container } from '../../container';
import { GitReference, GitRevision, Repository } from '../../git/gitService';
import { GlyphChars } from '../../constants';
import { Iterables, Strings ... |
import * as path from "path";
import {
Plugin,
PluginPreparer,
WorkingDirectoryInfo,
CreateQuestionsOptions,
RegSuitConfiguration,
KeyGeneratorPlugin,
KeyGeneratorPluginHolder,
PublisherPlugin,
PublisherPluginHolder,
NotifierPlugin,
NotifierPluginHolder,
} from "reg-suit-interface";
import { RegLo... |
<reponame>chlorophytum/hm-ideograph
import { VisCeilT, VisFloorT } from "@chlorophytum/hint-programs-stoke-adjust";
import { Func, Template } from "@chlorophytum/hltt-next";
import { add, div, gc, lt, mul, sub } from "@chlorophytum/hltt-next-expr";
import { While } from "@chlorophytum/hltt-next-stmt";
import { Bool, Fr... |
/** contains only game logic (no render methods) */
const INITIAL_OBSTACLES = 10;
const MIN_DISTANCE_BETWEEN_OBSTACLES = 0.4;
const MAX_DISTANCE_BETWEEN_OBSTRACLES = 0.8;
const CAMERA_OFFSET = 0.3;
const JUMP_STRENGTH = 2.5;
const DUCK_STRENGTH = 15;
const GRAVITY = 7;
const STEP = 1/60;
function gauss(lvl: number) {
... |
import * as core from '@actions/core';
import { context, getOctokit } from '@actions/github';
import { execSync } from 'child_process';
enum OutputFormat {
SpaceDelimited = 'space-delimited',
Csv = 'csv',
Json = 'json',
}
enum FileStatus {
Added = 'added',
Modified = 'modified',
Removed = 'rem... |
<reponame>progre/lmoriginalrandomizer
import assert from 'assert';
import Item from '../../../model/dataset/Item';
import Spot from '../../../model/dataset/Spot';
import Storage from '../../../model/dataset/Storage';
import Supplements from '../../../model/dataset/Supplements';
const {
nightSurfaceChestCount,
night... |
import * as React from 'react';
import {
Grid,
GridItem,
Popover,
Button,
List,
ListItem,
Text,
TextContent,
DescriptionListGroup,
DescriptionList,
DescriptionListDescription,
DescriptionListTerm,
} from '@patternfly/react-core';
import spacing from '@patternfly/react-styles/css/utilities/Spacin... |
<gh_stars>1-10
import { Omit } from 'utility-types'
import * as shQuote from 'shell-quote'
import { lastOrUndefined, partition } from '@tsfun/array'
import { StreamInstance, getString } from 'simple-fake-stream'
import FakeChildProcess from '../.lib/fake-child-process'
import initCartesianTest from '../.lib/cartesian-t... |
/* eslint-disable no-useless-escape */
import React, { useEffect, useState, useCallback } from 'react';
import styled from 'styled-components';
import { RouteComponentProps, withRouter } from 'react-router-dom';
import BigNumber from 'bignumber.js';
import MainLayout from 'containers/Layout/MainLayout';
import { connec... |
import { call, fork, put, SagaGenerator, select } from "@neufund/sagas";
import { authModuleAPI, EWalletType, tokenPriceModuleApi } from "@neufund/shared-modules";
import { isJwtExpiringLateEnough } from "@neufund/shared-utils";
import { TGlobalDependencies } from "../../di/setupBindings";
import { TAppGlobalState } f... |
import { PayloadAction } from '../util';
import { Entity } from './entity.model';
import { SliceAction } from '../slice/slice.actions';
import { actions as sliceActions } from '../slice/slice.actions';
import { typeFor, QueryPayload } from '../util';
import { RootState } from '../';
export const actions = {
...sli... |
import React, { SetStateAction } from "react";
import { Choice, ContractId } from "@daml/types";
import { Event as DEvent } from "@daml/ledger";
import { useLedger } from "@daml/react";
import FormikMod, { Formik, Form, FormikHelpers } from "formik";
import { Check, X } from "phosphor-react";
import Modal from "./Modal... |
import { basename } from '@waiting/shared-core'
import * as assert from 'power-assert'
import { settingsDefault } from '../src/lib/config'
import {
FnParam,
LoadSettings,
MacroDef,
} from '../src/lib/ffi.model'
import * as H from '../src/lib/helper'
import { macroMap } from '../src/lib/marcomap'
import * as WD f... |
import { SECP256K1Client, TokenSigner } from 'jsontokens';
import { DEFAULT_SCOPE } from '../constants';
import { decryptECIES, encryptECIES, publicKeyToAddress } from '../crypto';
import { DebugType, Logger } from '../debug';
import { makeDIDFromAddress } from '../dids';
import { ProfileJson } from '../profile/schema... |
import classNames from "classnames";
import React, { ReactNode, useEffect, ReactElement, createElement, useState, useRef } from "react";
import { eventInsideTarget } from "src/utils/eventInsideTarget";
import { eventInsideTriggerTarget } from "src/utils/eventInsideTriggerTarget";
import { eventOutsideTarget } from "src... |
import { render, RenderResult, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { HiChartPie, HiInbox, HiShoppingBag } from 'react-icons/hi';
import { Sidebar, SidebarProps } from '.';
describe('Components / Sidebar', () => {
describe('A11y', () => {
it('should... |
import { u64 } from '@solana/spl-token';
import type { Transaction } from '@solana/web3.js';
import { PublicKey } from '@solana/web3.js';
import bs58 from 'bs58';
import type {
FreeFeeLimitsResponce,
RelaySignatures,
RelayTopUpWithSwap,
RelayTransaction,
RequestInstruction,
SplDirectArgs,
SplTransitiveAr... |
import useRequest from "@/hooks/useRequest/useRequest";
import dataAnalysisApi, { folderListType } from "@/services/dataAnalysis";
import { DataNode } from "antd/lib/tree";
import { useState } from "react";
import {
FolderEnums,
PrimaryEnums,
SecondaryEnums,
TertiaryEnums,
} from "@/pages/DataAnalysis/service/e... |
import {
ROOM_LEVELSETTING_POINTERS,
ROOM_OBJECT_HEADER_SIZE_IN_BYTES,
ROOM_OBJECT_POINTERS,
} from '../levelData/constants';
import {
knownFiveByteBank1ObjectIds,
knownFourByteBank0ObjectIds,
knownFourByteBank1ObjectIds,
} from './knownIds';
import { entityMap } from '../entities/entityMap';
import { decodeObjec... |
/* eslint-disable no-invalid-this */
import path from "path"
import { store } from "../redux"
import { Server as HTTPSServer } from "https"
import { Server as HTTPServer } from "http"
import fs from "fs-extra"
import { readPageData, IPageDataWithQueryResult } from "../utils/page-data"
import telemetry from "gatsby-tele... |
import { LitElement, html, customElement, property } from 'lit-element';
import ResizeObserver from '@juggle/resize-observer';
import {
loadingTemplate,
mythicImageLayersTemplate,
nonMythicImageLayersTemplate,
baseArtworkLayersTemplate,
textLayersTemplate,
} from './templating';
import './assets/fonts.css';... |
import React, {
ChangeEvent,
useCallback,
useEffect,
useMemo,
useState,
} from "react";
import { JSAction, JSCollection } from "entities/JSCollection";
import CloseEditor from "components/editorComponents/CloseEditor";
import MoreJSCollectionsMenu from "../Explorer/JSActions/MoreJSActionsMenu";
import { TabCo... |
import React, { useMemo, useState } from 'react'
import { makeStyles } from '@material-ui/styles'
import Theme from 'core/themes/model'
import TimePicklistDefault from 'k8s/components/alarms/TimePicklist'
import StackedAreaChart from 'core/components/graphs/StackedAreaChart'
import useDataLoader from 'core/hooks/useDat... |
<reponame>rahul0tripathi/arcadeLand-frontend
import {Scene, Physics, Types, Cameras} from 'phaser'
import Actor from "../../classes/Actor";
import {Map, TileSetImage} from "../../classes/map";
import miniverse from "../../assets/tileset/miniverse.json";
import Miniverse from "../../classes/miniverse";
import {Layer, Lo... |
/** @license
* Copyright 2018 Esri
*
* 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 t... |
<reponame>cuba-platform/cuba-rest-js
import { EntitiesWithCount, EntityMessages, EnumInfo, MetaClassInfo, PermissionInfo, RolesInfo, SerializedEntity, UserInfo, View } from "./model";
import { EntityFilter } from "./filter";
export * from './model';
export * from './storage';
export * from './filter';
/**
* Initialize... |
<gh_stars>0
'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';
const spawnSync = require('child_process').spawnSync;
const fs = require('fs');
import {RefProvider} from './RefProvide... |
import {
Component,
Field,
FieldAccessor,
FieldBasicProps,
QueryLanguage,
useEntity,
useMutationState,
} from '@contember/binding'
import { EditorCanvas, EditorCanvasDistinction, FieldContainer, FieldContainerProps } from '@contember/ui'
import { FunctionComponent, useCallback, useMemo, useState } from 'react'
i... |
<filename>packages/tacl/src/acl-manager.ts
import { AccessRule, AccessRules } from './access-rule';
import { OrderedList } from './ordered-list';
import IAclProvider, { AclChangedHandler, Event } from './Providers/IAclProvider';
import Allow from './allow';
import Deny from './deny';
import { AclConfiguration } from '.... |
<reponame>rubensm1/moodleapp
// (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 requir... |
<gh_stars>1-10
/*!
* Bravo for Power BI
* Copyright (c) SQLBI corp. - All rights reserved.
* https://www.sqlbi.com
*/
import { host } from "../main";
import { Dic, Utils } from '../helpers/utils';
import { daxName, FormattedMeasure, TabularDatabase, TabularDatabaseFeature, TabularDatabaseFeatureUnsupportedReason, T... |
<reponame>Quramy/pico-ml
import { Tree } from "../structure";
import { Position } from "../parser-util";
export type Symbols = readonly [
"(",
")",
"+",
"-",
"*",
"/",
"<",
">",
"<=",
">=",
"=",
"<>",
"==",
"!=",
"+.",
"/.",
"-.",
"*.",
"||",
"&&",
"->",
"[",
"]",
"::",
... |
import { CapacityUnit } from './const'
const base = 10e9
const numberParser = (value: string, exchange: string) => {
if (Number.isNaN(+value)) {
throw new TypeError('Value is not a valid number')
}
if (Number.isNaN(+exchange)) {
throw new TypeError('Exchange is not a valid number')
}
const res = (Big... |
<reponame>andreavrn/design-angular-kit<filename>projects/design-angular-kit/src/lib/tabs/tab-group.component.ts
import {
Component,
AfterContentInit,
ContentChildren,
QueryList,
ViewEncapsulation,
ChangeDetectionStrategy,
Input,
Output,
EventEmitter,
ChangeDetectorRef,
AfterContentChecked,
OnDes... |
<reponame>tim-smart/rpk
import * as Fs from "fs";
import * as path from "path";
import * as R from "ramda";
import * as CB from "strict-callbag-basics";
import { IFormat } from "../generate";
import { filesSource } from "./fs";
export interface IConfig
extends Readonly<{
file: string;
contents: string | Buff... |
import * as express from 'express'
export function mockFingerPrint(
req: express.Request,
res: express.Response,
next: express.NextFunction
) {
res.locals['result'] = {
token_endpoint: 'https://localhost/common/oauth2/token',
token_endpoint_auth_methods_supported: [
'client_... |
import * as Crypto from 'crypto';
import { LoremIpsum } from "lorem-ipsum";
import { asMap } from 'object-array-methods';
import { useEffect } from 'react';
import ejs from 'ejs';
export const lorem = new LoremIpsum({
sentencesPerParagraph: {
max: 8,
min: 4
},
wordsPerSentence: {
max: 16,
min: 4... |
import { Authenticator, Strategy } from "passport";
import AppleStrategy from "passport-apple";
import { KoaPassport } from "koa-passport";
import { ProviderConfigBuilder } from "./config";
import { ApplicationRequestContext } from "./app.types";
import { Logger } from "../../lib/logger";
import { Identity, IAMErrors, ... |
import TableComponent from './TableComponent'
import Material, {IMaterialAnchor} from '../../models/Material'
import {ITableState} from './IHandleTable'
import {IPagingOptions} from '../../models/PagedData'
import IMaterialService from '../../services/MaterialService'
import {inject} from '../../infrastructure/di/injec... |
<filename>src/reducers/PlaceOrderReducer.ts
import baseReducer from '#utils/baseReducer'
import { Dispatch } from 'react'
import { BaseError } from '#typings/errors'
import { CommerceLayerConfig } from '#context/CommerceLayerContext'
import { Order, OrderCollection, PaypalPayment } from '@commercelayer/js-sdk'
import {... |
/// <reference types="node" />
import { EventEmitter } from 'events';
import { Connection, errors, validate, xrpToDrops, dropsToXrp, rippleTimeToISO8601, iso8601ToRippleTime } from './common';
import { connect, disconnect, isConnected, getLedgerVersion } from './server/server';
import getTransaction from './ledger/tran... |
import axios from 'axios';
import { getRepository } from 'typeorm';
import {
hasNotificationType,
Notification,
shouldSendAdminNotification,
} from '..';
import { IssueStatus, IssueTypeName } from '../../../constants/issue';
import { User } from '../../../entity/User';
import logger from '../../../logger';
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.