text stringlengths 3.08k 15.5k |
|---|
<filename>packages/feedback-service/src/feedbacks/resolver.ts<gh_stars>0
/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* MIT License
* Copyright (c) 2021 Red Hat One Platform
*
* @version 0.0.6
*
* GraphQL interface for managing the business logic
*
* @author <NAME> <<EMAIL>>
*
* Created at :... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { CodeEditorRef } from "@codesandbox/sandpack-react";
import {
useSandpack,
useActiveCode,
SandpackThemeProvider,
SandpackCodeEditor,
} from "@codesandbox/sandpack-react";
import { useEffect, useRef } from "react";
import { useInView } from "re... |
import {Inject, forwardRef, Component, OnInit, OnDestroy, Directive, Input, Output, ElementRef, EventEmitter, ViewEncapsulation} from '@angular/core';
import {find} from 'lodash';
declare var jQuery: any;
declare var Hammer: any;
declare var TweenLite: any;
declare var Expo: any;
@Component({
selector: '[data-pane... |
<filename>src/services/SocketsServer.ts
import SocketIOServer, { Socket } from "socket.io";
import { Server } from 'http';
import { RequestHandler } from 'express';
// Define our data profiles as interfaces.
interface IUser {
name: string;
uniqueID: number;
}
interface IMessage {
message: string;
user... |
import React, { useState, useEffect, useRef } from 'react';
import Head from 'next/head';
import { encrypt } from '../src/helpers/crypto';
import Header from '../src/components/Header';
import Footer from '../src/components/Footer';
import Nav from '../src/components/Nav';
import Description from '../src/components/De... |
import path from 'path'
import { fsExistsAsync } from '../common/utils/fs'
import { ITag } from './contracts'
import { Position, SymbolKind, CancellationToken } from 'vscode-languageserver-protocol'
// tslint:disable:no-require-imports no-var-requires no-suspicious-comment
// tslint:disable:no-any
// TODO: Turn these ... |
type lame_t = number;
type lame_ptr = number;
type LameCall = 0 | -1 | -2 | -3;
type hip_t = number;
const enum MPEG_mode {
STEREO = 0, JOINT_STEREO, DUAL_CHANNEL, MONO, NOT_SET, MAX_INDICATOR
}
const enum vbr_mode {
vbr_off = 0, vbr_mt, vbr_rh, vbr_abr, vbr_mtrh, vbr_max_indicator, vbr_default = 4
}
de... |
<reponame>LockTech/sequoia
import { execaCommand } from "execa";
import { Listr } from "listr2";
import { resolve } from "path";
import {
__root,
appendFileSync,
copySync,
ensureDirSync,
ensureFileSync,
removeSync,
renameSync,
rewriteFileSync,
writeFileSync,
} from "../util/fs.js";
import { Renderer ... |
<filename>module/model-firestore/src/service.ts
import { FieldValue, Firestore, Precondition, Query } from '@google-cloud/firestore';
import { ShutdownManager, Util, Class } from '@travetto/base';
import { DeepPartial } from '@travetto/schema';
import { Injectable } from '@travetto/di';
import {
ModelCrudSupport, Mo... |
import classNames from 'classnames'
import { debounce } from 'lodash'
import TrashIcon from 'mdi-react/TrashIcon'
import React, { FunctionComponent, useMemo, useState } from 'react'
import { Tooltip } from '@sourcegraph/branded/src/components/tooltip/Tooltip'
import { Button } from '@sourcegraph/wildcard'
import { Co... |
import {Pipeline} from '@/services/data/tuples/pipeline-types';
import {Topic, TopicId} from '@/services/data/tuples/topic-types';
import {AlertLabel} from '@/widgets/alert/widgets';
import {Button} from '@/widgets/basic/button';
import {ButtonInk} from '@/widgets/basic/types';
import {useEventBus} from '@/widgets/even... |
<filename>tests/index.ts
import Zoop, { BankAccountTokenCreationInfo, MarketplaceEndpoint, TransactionCreationInfo } from '../lib';
jest.setTimeout(20_000);
const TEST_API_KEY = '<KEY>';
const TEST_NONEXISTENT_ID = '87df28a2236e173b45ea8b0d049cf62b';
const TEST_MARKETPLACE_ID = '3249465a7753536b62545a6a684b0000';
con... |
import { storiesOf } from '@storybook/html';
import { withKnobs, object } from '@storybook/addon-knobs';
import { storybookDemoGroups } from '../demo/data';
import * as ChartComponents from '../src/charts';
import * as storyUtils from '../demo/utils';
import * as Configuration from '../src/configuration';
const color... |
import {
App, Command, PluginSettingTab, setIcon, Setting,
} from 'obsidian';
import BetterCommandPalettePlugin from 'src/main';
import { HotkeyStyleType, MacroCommandInterface, UnsafeAppInterface } from './types/types';
import { SettingsCommandSuggestModal } from './utils';
export interface BetterCommandPalettePl... |
//react imports
import React from 'react';
import { StyleSheet, ScrollView, Text, TextInput, TouchableOpacity, View, SafeAreaView, KeyboardAvoidingView, Platform, ImageBackground, Alert } from 'react-native';
import { useNavigation } from '@react-navigation/core';
//my imports
import styles from '../../Styles/mainStyl... |
export enum ChainId {
BSCMAINNET = 56,
BSCTESTNET = 97,
HECOMAINNET = 128
}
export const CHAIN_CONFIG={
[ChainId.BSCTESTNET]:{
rpcUrl:"https://data-seed-prebsc-2-s1.binance.org:8545",
contractAddress:"0xbdae6F51E195dB8eb05E49a99b159719BB9f7D2e",
tokenReceiver:"0xb023921b683a4C... |
import {
def,
assert,
assertNever,
prej,
getPromise,
PromiseTriple,
LogProv,
Waiter,
clone,
JagoLogEntry,
} from "^jab";
import { OnRequire, RequireSenderMessage } from "^jabc";
import { OnRogue, TestResult } from "^jatec";
import { JarunProcessControllerMessage, JarunProcessMessage } from ".";
e... |
<filename>src/application.ts
import {BootMixin} from '@loopback/boot';
import {ApplicationConfig} from '@loopback/core';
import {RepositoryMixin} from '@loopback/repository';
import {RestApplication, HttpErrors} from '@loopback/rest';
import {ServiceMixin} from '@loopback/service-proxy';
import {GatewaySequence} from '... |
<reponame>user411/bitcoin-s-ts<filename>wallet-server-ui/src/app/component/contracts/contracts.component.ts<gh_stars>10-100
import { AfterViewInit, Component, EventEmitter, OnDestroy, OnInit, Output, ViewChild } from '@angular/core'
import { MatDialog } from '@angular/material/dialog'
import { MatDrawer } from '@angula... |
<gh_stars>1-10
import { LoginAccessDataStruct } from "../struct/login-access-data-struct";
import { Long } from "bson";
import { MemberStruct } from "../struct/member-struct";
import { ClientSettingsStruct } from "../struct/client-settings-struct";
import { OpenLinkStruct, OpenMemberStruct } from "../struct/open-li... |
<reponame>danmedani/cellxgene<gh_stars>0
import quantile from "./quantile";
import { memoize } from "./dataframe/util";
import { unassignedCategoryLabel } from "../globals";
import {
createCategorySummaryFromDfCol,
isSelectableCategoryName,
} from "./stateManager/controlsHelpers";
/*
Centroid coordinate calculat... |
<reponame>SugarDarius/react-use-algos
import * as React from 'react';
export type UseBinaryHeapMinOrMaxCompareFn<T> = (a: T, b: T) => boolean;
export type UseBinaryHeapEqualsCompareFn<T> = (a: T, b: T) => boolean;
export const getLeftChildIndex = (parentIndex: number): number => {
return 2 * parentIndex + 1;
... |
<reponame>google/energystrategies
/* Copyright 2016 Google Inc. 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... |
import * as React from 'react';
import { findDOMNode } from 'react-dom';
import * as moment from 'moment';
import DayPicker from 'react-day-picker';
import {
FormInput,
FormSelect,
Grid,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', ... |
import React, { PureComponent } from 'react';
import { SelectableValue } from '@grafana/data';
import { Select } from '@grafana/ui';
import { IronDBVariableQuery } from './types';
const QUERY_TYPE_OPTIONS: Array<SelectableValue<string>> = [
{
value: 'metric names',
label: 'Metric Names',
},
... |
<reponame>PoodleApp/poodle
import { google } from "googleapis"
import Connection from "imap"
import fetch from "node-fetch"
import { stringify } from "querystring"
import { createXOAuth2Generator, XOAuth2Generator } from "xoauth2"
import { SmtpConfig } from "../smtp"
import { ConnectionFactory } from "../types"
import ... |
<reponame>GrahamCampbell/org-formation-cli
import CloudFormation, { DescribeTypeRegistrationOutput, ListTypeVersionsOutput, UpdateStackInput } from 'aws-sdk/clients/cloudformation';
import { IOrganizationBinding } from '~parser/parser';
import { IBuildTaskConfiguration } from '~build-tasks/build-configuration';
import ... |
import classNames from "classnames";
import {ChartKit} from "$utils/Util";
import React, {useMemo, useState} from "react";
import {UnitModelEnum} from "$models/UnitModel";
import {DataFormatter} from "$utils/DataFormatter";
import LegendSeries from "$components/EMonitorChart/Legend/LegendSeries";
import LegendTableHead... |
import * as React from 'react';
import { Sentence, Option, Word, List, Phrase, SelectionsObject, PhraseContext, Input } from './index'
class DynamicInput extends Input<{}, { id: string, type?: string }> {
hiddenSpan: HTMLSpanElement
resize = (input: HTMLInputElement) => {
if (!input || !this.hiddenSpan... |
// React, Router, Redux
import { useHistory } from 'react-router';
import React from 'react';
import { useDispatch } from 'react-redux';
// Style
import commonStyle from '../../common.module.css';
import { RightArrowIcon, TrashIcon, LeftArrowIcon } from '../core/icons';
import { Button, Col, Row, ButtonGroup, ToggleBut... |
<reponame>TanNgo811/react-native-chat-template
import type { Model, ModelFilter } from 'react3l-common';
import type { Dispatch, Reducer } from 'react';
import React from 'react';
import { forkJoin, Observable, Subscription } from 'rxjs';
import { finalize } from 'rxjs/operators';
const DEFAULT_TAKE: number = 10;
exp... |
import { CreateEvent, Event } from "./Events.js";
import { Reactive } from "./Reactive.js";
import { Socket } from './Socket';
export type PoolSubscription<Tsession> = {
unsubscribe: () => any,
ReactTo: <Treactive>(
get: (session: Tsession) => Reactive<Treactive>,
react: (session: Tsession, va... |
<gh_stars>1-10
import { ok } from 'assert';
import { ChildProcess, spawn } from 'child_process';
import { URL } from 'url';
import { normalize } from 'path';
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace NodeJS {
interface Process {
pkg?: {
entrypoint: str... |
<filename>src/Server.ts
import { ServerOptions, DEFAULT_OPTIONS } from './ServerOptions';
import { Request, Response, Application } from 'express';
import * as Http from 'http';
import * as Https from 'https';
import * as express from 'express';
import * as debug from 'debug';
import * as compression from 'compression'... |
import { Card } from '../../../interfaces'
import Set from '../SM Black Star Promos'
const card: Card = {
name: {
en: "<NAME>",
fr: "<NAME>",
es: "<NAME>X",
it: "Greninja GX",
pt: "Greninja GX",
de: "Quajutsu GX"
},
illustrator: "MPC Film",
rarity: "Rare",
category: "Pokemon",
set: Set,
dexId: [
... |
/**
* FF Typescript Foundation Library
* Copyright 2021 <NAME>, Frame Factory GmbH
*
* License: MIT
*/
import { Mesh } from "three";
import * as constants from "three/src/constants";
import Component, { Node, ITypedEvent, types } from "@ff/graph/Component";
import CPulse, { IPulseEvent } from "@ff/graph/componen... |
<filename>demo/nf-player.d.ts
/*
* Copyright (c) 2018-Present, Spotify AB.
*
* 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 f... |
<reponame>jackluson/mock-express-server
/* eslint-disable no-case-declarations */
/*
* Desc: 依据swagger配置文件,动态挂在handler
* File: \routers\generatedHandler\index.ts
* File Created: Wednesday, 5th August 2020 4:15:14 pm
*/
import { Response, Request, NextFunction } from 'express';
import { MockResponse } from 'typings... |
// Copyright 2020 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file defines methods for converting objects from the Mountain Project
// Data API to objects stored in Firestore.
import { ApiRoute, ApiTick } from '@/api';
im... |
<gh_stars>10-100
import { SearchUiOptions } from '../SearchUiOptions';
import createElement from '../utils/dom';
export interface MatchResult {
_mrlStr: string,
/**
* Position of the match in the string,
* and length the match produced by the respective regex
*/
_mrlWindow: { pos: number, len: num... |
import React from 'react';
import { connect } from 'react-redux';
import { Link, RouteComponentProps } from 'react-router-dom';
import { Button, Row, Col, Label } from 'reactstrap';
import { AvForm, AvGroup, AvInput, AvField } from 'availity-reactstrap-validation';
// tslint:disable-next-line:no-unused-variable
import ... |
import React, { useContext, useEffect, useState } from 'react';
import { SafeAreaView, View, Text, StyleSheet } from 'react-native';
import { TouchableWithoutFeedback } from 'react-native-gesture-handler';
import { buttonIcons, pageIcons } from '../../assets/icons';
import { colors, globalStyles } from '../../assets/st... |
<gh_stars>0
import type { Vector2 } from '@talesoft/vector2'
import type { Line, ObservedLine } from './lines'
import * as vector2 from '@talesoft/vector2'
export const getLength = (line: Line): number =>
// We could use vector2.getDistanceTo, but it involves another object creation
vector2.getLength({ x: line.fro... |
import React, { FC, useState, ChangeEvent, useContext } from 'react'
import MainNavbar from '../../../components/MainNavBar'
import { TraceContractAPIContext } from '../../../contexts/TraceContractAPI'
import { TraceContractContext } from '../../../contexts/TraceContract'
import { ProductContractContext } from '../../.... |
import axios from "axios";
import { Request, Response } from "express";
import { fetchEvent } from "../../../shared/events/api";
import { X2jOptionsOptional, XMLParser } from "fast-xml-parser";
import { create } from "xmlbuilder2";
import { getColorForPower } from "./workout/util";
import {
BarInterval,
FreeRideInt... |
<reponame>adosia/spaceprinterapi
import { Update } from "../generated-typings";
const exec = require('child_process').execSync;
import { checkJWT } from "../utils/checkauth";
import fs from 'fs';
const update: Update = ( jwToken, userName, updateType ) => {
return new Promise( async (resolve, reject) => {
const ... |
import './prettyError'
import * as y18n from 'y18n'
import * as freeze from 'deep-freeze-node'
import { join } from 'path'
import color from './colors'
import format from './format'
import Y18n from './type/Y18n'
import Plugin from './plugin/Plugin'
import eventProxy from './eventProxy'
import Application from './Appl... |
import React, { useState } from 'react';
import Socket from '../../services/socket';
import { Match } from '../../views/app';
import BishopWhite from '../../assets/Pieces/bishop_white.svg';
import BishopBlack from '../../assets/Pieces/bishop_black.svg';
import KingWhite from '../../assets/Pieces/king_white.svg';
import... |
import React, {
useRef,
useEffect,
useMemo,
useState,
useCallback,
} from "react";
import { format, parseISO, getYear, getMonth, getDate } from "date-fns";
import DayPicker, { DayModifiers } from "react-day-picker";
import "react-day-picker/lib/style.css";
import { FormHandles } from "@unform/core";
import {... |
import * as React from "react";
import { interpolate, easeInOut, animate, PlaybackControls } from "popmotion";
import useBoundingClientRectInView from "../../hooks/useBoundingClientRectInView";
import useWindowSize from "../../hooks/useWindowSize";
import ImageResponsive from "./ImageResponsive";
import * as contentMo... |
<filename>src/core/configurator.ts
import _ from 'lodash'
import Metalsmith from "metalsmith"
import { Layouts } from "../plugins/applyLayouts.js"
import { CollectionConfig } from "../plugins/createCollections.js"
import { useEnabledFeatures, useFiles, useGeneratedFilePaths, useSite } from "./hooks.js"
import Tilt from... |
import { MetricsPanelCtrl } from 'grafana/app/plugins/sdk';
import _ from 'lodash';
import eventDrops from './eventdrops/eventdrops.min.js';
import * as d3 from './eventdrops/d3.v5.min.js';
const panelDefaults = {
bgColor: null,
labels: {
title: null,
subtitle: null,
x_legend: null,
y_legend: null... |
import Visibility from "./visibility"
import Lifetime from "./lifetimes"
export type Id = string
export type ModulePath = Id[]
export type Factory = (resolver: any) => Instance
export type Instance = any
export interface ComponentRegistration {
readonly modulePath: ModulePath
readonly visibility: Visibility
}
ex... |
<filename>src/__tests__/index.ts
import * as childProcess from 'child_process'
import * as path from 'path'
import { test } from 'tap'
import clinical, { Value } from '../index'
export const tests: Array<{
name: string
testCases: Array<
| [Array<string>, { [key: string]: Value }, Array<Value>]
| [Array<st... |
// Import necessary libraries
import * as program from "commander";
import * as path from "path";
import * as fs from "fs-extra";
import {sprintf} from "sprintf-js";
import * as child from "child_process";
// Import the scripts that execute the command
import * as copylibs from "./copy_libs";
import * as taskdeps from... |
import {Collapse, Fade} from '@mui/material';
// import {useMapStore} from '@src/store/map';
// import produce from 'immer';
import React, {useRef, useState} from 'react';
import {
Clusterer,
Map,
ObjectManager,
Placemark,
Polyline,
RulerControl,
TrafficControl,
YMaps,
ZoomControl,
}... |
<gh_stars>1-10
import {
aws_autoscaling as autoscaling,
aws_ec2 as ec2,
aws_iam as iam,
} from 'aws-cdk-lib';
import * as cdk from 'aws-cdk-lib';
import * as spotone from 'cdk-spot-one';
import { Construct } from 'constructs';
export enum SpotInstanceType {
ONE_TIME = 'one-time',
PERSISTENT = 'persistent',
... |
<gh_stars>1-10
export type TermDiffMarkup = (content: string, different: boolean) => string;
export type TermDiffElem<A> = {
join: (content: A[], different: boolean, depth?: number) => A;
convert: (content: string, different: boolean, depth?: number) => A;
};
const f: TermDiffMarkup = (x, d) =>
`<span clas... |
// Copyright 2022 LiYechao
//
// 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 wri... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import React, { useState } from "react";
import { VechaiProvider } from "@vechaiui/react";
import { theme } from "../themes";
import Navbar from "../components/Navbar";
import Footer from "../components/Footer";
import {
Input,
FormControl,
FormLabel,
FormHelperText,
Textarea,
Button,
useNotification,
} f... |
angular.module('app').directive('uxdTreeGridWrapper', () => {
return {
restrict: 'E',
template: require('./tree-grid-wrapper.directive.html'),
controller: 'TreeGridDemoCtrl as vm',
scope: true
};
});
angular.module('app').controller('TreeGridDemoCtrl', ['$scope', '$displayPanel', '$template... |
import {FuzzyRater as CoreRater} from "fuzzy-rater";
import {baseSettings} from "../../../../../../application/settings/baseSettings/baseSettings";
import {Priority} from "../../../../../../menus/menu/priority/Priority";
import {IPriority} from "../../../../../../menus/menu/priority/_types/IPriority";
import {IQuery} f... |
import React, {Component, HTMLAttributes} from 'react';
import './Rewards.css';
import {
getCurrentRewardToken,
getEstimatedRewards,
getRewardTokens,
getScholarDogeBalance,
getToken,
getTotalRewards,
getUserDividendsInfo
} from "../../utils/callHelpers";
import PendingRewardsBlock from "./co... |
import React, { useEffect, useState } from "react";
import { useHistory, useParams, useRouteMatch } from "react-router-dom";
import {
AlertVariant,
Button,
Dropdown,
DropdownItem,
DropdownToggle,
Label,
Modal,
ModalVariant,
Spinner,
} from "@patternfly/react-core";
import { useTranslation } from "reac... |
/**
* @fileOverview
* @author 凌恒 <<EMAIL>>
* @copyright 2017 Alibaba Group.
*/
const assert = require('assert');
const debug = require('debug')('PandoraHook:HttpClient:Shimmer');
import { DEFAULT_HOST, DEFAULT_PORT, HEADER_SPAN_ID, HEADER_TRACE_ID } from '../../../utils/Constants';
import { nodeVersion } from '../... |
import * as React from "react";
import { SortableListHeader } from "../sortable_list_header";
import {
Relation,
DEFAULT_RELATION,
Schema,
RelationReference,
RelationType,
} from "@codotype/types";
import { Droppable, DragDropContext } from "react-beautiful-dnd";
import { RelationFormModal, Relation... |
<filename>src/analyzer.ts
import { setPapudocHandler } from './papudoc'
import * as ts from 'typescript'
import formatType, { ExposeTypesAs } from './typeFormatter'
import TsType from './typeAnalyzer/TsType'
import { prepareTsTypeConverter } from './typeAnalyzer/typeAnalyzer'
import { PapudocConfig } from './config'
im... |
<reponame>AlekEagle/DefinitelyTyped
// Type definitions for infinite-scroll 4.0
// Project: https://github.com/metafizzy/infinite-scroll
// Definitions by: <NAME> <https://github.com/MysteryBlokHed>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.1
/// <reference typ... |
import validateOptions from "schema-utils"
import { JSONSchema7 } from "schema-utils/declarations/validate"
import globby from "globby"
import pLimit from "p-limit"
import * as path from "path"
import * as fs from "fs"
import * as util from "util"
import { React2EEXRenderOptions, React2EEXRenderFn, React2EEXRenderFnVar... |
<gh_stars>1-10
import execa, { ExecaChildProcess } from 'execa';
import fs from 'fs-extra';
import path from 'path';
import rimraf from 'rimraf';
import { kebabCase } from 'lodash';
import initalizeWorkspace from './lib/initialize';
import debug from './lib/debug';
import { merge } from 'lodash';
import os from 'os';
... |
// Copyright 2019-2020 @paritytech/polkassembly authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Where } from '@textile/threads-client';
import styled from '@xstyled/styled-components';
import React, { useEf... |
import Vue from 'vue'
import Vuex from 'vuex'
import LikedReplays from './models/liked_replays'
import Replays from './models/replays'
import RouteMap from './models/route_map'
import AboutWinrates from './models/about_winrates'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
path: `/`, // class pa... |
<reponame>matt-izatt/mi-pie-chart<filename>src/index.ts
import * as D3 from "d3";
/**
* Defines the data which will be displayed on the chart
*/
export interface PieData {
label: string;
value: number;
color?: string;
hoverColor?: string;
}
/**
* Defines config which overrides the default config of the ch... |
<reponame>marcelsud/hoard<filename>hoard-js/src/examples.ts
// This gives a walk-through of using the Hoard API. All index.js of this
// library does it wraps the dynamically generated GRPC client in promises
// and and abstracts away the loading of the protobuf file. You may prefer
// to copy in the code and the hoard... |
<reponame>skypilot-dev/pipeline
import type { Integer } from '@skypilot/common-types';
import { includeIf } from '@skypilot/sugarbowl';
import deepmerge from 'deepmerge';
import { serializeError } from 'serialize-error';
import type { SetOptional } from 'type-fest';
import type { Dict, Fragment, Interim } from 'src/li... |
<filename>src/modules/modal/modal.component.ts
/**
* Created by bolorundurowb on 1/22/2021
*/
import {
ChangeDetectionStrategy, Component,
EventEmitter, Inject,
Input, OnDestroy, Output,
Renderer2, TemplateRef,
ViewChild, ViewContainerRef,
ViewEncapsulation
} from '@angular/core';
import {DOCUMENT} from ... |
import { PrivateService } from '@makerdao/services-core';
import { promisify, getNetworkName } from '../utils';
import Web3ServiceList from '../utils/Web3ServiceList';
import Web3 from 'web3';
import makeSigner from './web3/ShimEthersSigner';
import { last } from 'lodash';
import assert from 'assert';
import debug from... |
import React, { useEffect, useState, useCallback, useRef } from 'react';
import {
Avatar,
Text,
Textarea,
Flex,
Alert,
AlertIcon,
Button,
CloseButton,
Collapse,
Tooltip,
IconButton,
} from '@chakra-ui/core';
import isLength from 'validator/lib/isLength';
import { Box, ButtonG... |
<reponame>WadeBarnes/moh-prime
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, FormControl, FormGroupDirective } from '@angular/forms';
import { ShowOnDirtyErrorStateMatcher } from '@angular/material/core';
import { MatDialog } from '@angular/material/dialog';
impor... |
<reponame>wheatstalk/cdk-ecs-website<gh_stars>1-10
import { CfnUserPoolClient, IUserPool, OAuthScope, UserPoolClient } from '@aws-cdk/aws-cognito';
import { IVpc } from '@aws-cdk/aws-ec2';
import { Ec2Service, FargateService } from '@aws-cdk/aws-ecs';
import {
ApplicationListenerRule,
ApplicationProtocol,
Applica... |
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
import { AlertService } from 'app/core/util/alert.service';
import { removeSeparator as tagRemoveSeparator } from 'app/entities/tag/tag-utils';
import { loading, toSubject } from 'app/support/observable';
import LRUCache from 'lru-cache'... |
import {RGBFormat} from 'three/src/constants';
import {DataTexture} from 'three/src/textures/DataTexture';
import {CubicInterpolant} from 'three/src/math/interpolants/CubicInterpolant';
import {TypedParam} from './_Base';
import {RampValue, RampPoint, RampValueJson, RampInterpolation} from './ramp/RampValue';
import {P... |
import * as React from 'react'
import {useCallback, useState} from 'react'
import {
Image,
ScrollView,
StyleSheet,
Text,
View,
useWindowDimensions,
} from 'react-native'
import noop from 'lodash/noop'
import * as c from '@frogpond/colors'
import {callPhone} from '../../../components/call-phone'
import {Row} from ... |
<filename>src/wizards/connectedap.ts
import { html } from 'lit-element';
import { ifDefined } from 'lit-html/directives/if-defined';
import { translate, get } from 'lit-translate';
import '@material/mwc-checkbox';
import '@material/mwc-formfield';
import '@material/mwc-list/mwc-list-item';
import '@material/mwc-list/m... |
import React, {useState, useEffect, useRef} from 'react';
import styles from './index.less'
import {Spin, Image, Empty} from 'antd'
import {parseTime} from "@/utils/utils";
import {useInViewport} from 'ahooks';
import damagedImage from '@/assets/damaged-image.png'
import defaultImage from '@/assets/default-image.png'
... |
// import find from 'lodash/find';
// import isEqual from 'lodash/isEqual';
// import * as _ from 'lodash';
import { action, observable, comparer } from '@barlus/mobx';
import { isProduction } from '@barlus/mobx/env';
/**
* A map from string to string (key-value pairs). Based on:
* https://stackoverflow.com/question... |
<reponame>zinface/vscode-youwant-workspace
// type IRunAnything = Symbol
// export interface IRunAnything<K,V> extends IRunAnything {
// key:K
// value:V
// }
// class RunAnything<K,V> implements IRunAnything<K,V> {
// toString(): string {
// throw new Error('Method not implemented.')
// }
//... |
import {
Const,
Enum,
Primitive,
Arr,
Tuple,
Object,
Union,
Intersection,
Error,
} from "meta-types";
import { IntersectObject } from "meta-types/intersection/object";
import {
mAny,
mNever,
mConst,
mPrimitive,
mEnum,
mError,
mObject,
mUnion,
} from "./helpers";
// --- CONSTS ---
ty... |
<filename>scripts/object-detection-yolo/src/datasource.ts<gh_stars>1-10
/**
* @file This plugin is to access classification image data from different sources. Make sure that
* the data is conform to expectation.
*/
import { DataCook, DatasourceEntry, DatasetPool } from '@pipcook/core';
// @ts-ignore
import download... |
<filename>src/network/server.ts
/* eslint-disable max-len, class-methods-use-this, no-extra-parens, no-underscore-dangle */
import express from 'express'
import http from 'http'
import mongoose from 'mongoose'
import morgan from 'morgan'
import socketIO from 'socket.io'
import { applyRoutes } from './routes'
import {
... |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... |
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {AppComponent} from './app.component';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {MatToolbarModule} from '@angular/ma... |
<gh_stars>1-10
import type {
Category,
ExtraStoryFields,
Newsroom,
NewsroomLanguageSettings,
Story,
} from '@prezly/sdk';
import PrezlySDK from '@prezly/sdk';
import type { IncomingMessage } from 'http';
import { LocaleObject } from '../../intl';
import type { PageProps, ServerSidePageProps } from ... |
import 'arrive';
/**
* 用于获取被标注的图片的 Markdown 文本数组,用于支持导出被标注的图片等内容
*
* click This Chap
* foreach masks
* find Target Imgs
* click next page if exists and repeat finding process as before
*/
import $ from 'jquery';
import { Code } from '../types/Code';
import { Footnote } from '../types/Footnote';
import { I... |
import React, { FC, ReactElement, useRef, useState } from 'react';
import {
ListItem,
ListItemProps as ListItemPropsTypes,
ListItemAvatar,
ListItemAvatarProps as ListItemAvatarPropsTypes,
ListItemIcon,
ListItemIconProps as ListItemIconPropsTypes,
ListItemSecondaryAction,
ListItemSecondaryActionProps as ... |
import React, { useContext, useEffect, useState } from 'react';
import { ConnectProviderModalContext } from '@/components/connect-provider-modal';
import CarrierBadge from '@/components/carrier-badge';
import { UserConnections, UserConnectionType } from '@/context/user-connections-provider';
import { ConnectionMutation... |
import { DrawerContentComponentProps } from '@react-navigation/drawer';
import { DrawerActions } from '@react-navigation/native';
import Constants from 'expo-constants';
import React, { useState, useEffect } from 'react';
import { Alert, Image, Linking, StyleSheet, TouchableOpacity, View, SafeAreaView } from 'react-nat... |
import React, { useState } from 'react';
import { useGetUserProfileQuery, useUpdateProfileMutation } from 'graphql-api';
import { useLanguageContext } from 'context/languageContext';
import FormControl from '@material-ui/core/FormControl';
import FormLabel from '@material-ui/core/FormLabel';
import InputAdornment fro... |
import { compose } from '@typed/compose';
import addYears from 'date-fns/addYears';
import endOfDay from 'date-fns/endOfDay';
import endOfMonth from 'date-fns/endOfMonth';
import isSameMonth from 'date-fns/isSameMonth';
import moize from 'moize';
import { replaceAtIndex } from 'replace-array';
import {
isStandardLis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.