text stringlengths 3.08k 15.5k |
|---|
/**
* 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 agr... |
import Player from 'src/models/Player';
import RoundType, { Round } from 'src/models/Round';
import { Actions, ActionTypes } from './actions';
import { ActionTypes as ReduxActionTypes } from 'src/ops/actions';
import { JoinedGame, PlayersInfoReceived } from 'src/ops/game/actions';
import { Dices } from 'src/models/Dice... |
import FlightIcon from '@mui/icons-material/Flight';
import FlightLandIcon from '@mui/icons-material/FlightLand';
import FlightTakeoffIcon from '@mui/icons-material/FlightTakeoff';
import PersonIcon from '@mui/icons-material/Person';
import SchoolIcon from '@mui/icons-material/School';
import Chip from '@mui/material/C... |
import * as g from './generator';
import * as tsa from './tsAnalyzer';
import * as tsch from './tsCompilerHost';
import * as log from './logger';
import * as nameUnifier from './nameUnifier';
import * as ts from 'typescript';
import * as fs from 'fs';
import * as pathPlatformDependent from 'path';
const path = pathPla... |
<gh_stars>1-10
import { merge, Observable, of, Subject, throwError, Unsubscribable } from 'rxjs';
import { catchError, filter, finalize, first, mergeMap, takeUntil } from 'rxjs/operators';
import {
CoreApp,
DataQuery,
DataQueryRequest,
DataSourceApi,
getDefaultTimeRange,
LoadingState,
ScopedVars,
} from '... |
import { getGanacheProvider } from "magmo-devtools";
import { ethers } from "ethers";
import fs from "fs";
import path from "path";
import easyTable from "easy-table";
import linker from "solc/linker";
interface MethodCalls {
[methodName: string]: {
gasData: number[];
calls: number;
};
}
interface Contract... |
/** @jsx jsx */
import { css, Global, jsx } from '@emotion/core'
import * as O from 'fp-ts/lib/Option'
import { pipe } from 'fp-ts/lib/pipeable'
import * as R from 'fp-ts/lib/Record'
import { FunctionComponent, useEffect, useMemo, useState } from 'react'
import * as context from '../context'
import { GameState } from ... |
<reponame>jnapier-code/frontend-v2
import { computed, ComputedRef, ref, Ref } from 'vue';
import { useStore } from 'vuex';
import { BigNumber } from 'bignumber.js';
import { formatUnits } from '@ethersproject/units';
import { OrderKind } from '@gnosis.pm/gp-v2-contracts';
import { bnum } from '@/lib/utils';
import us... |
import React, { useState, FormEvent, useCallback, useMemo } from 'react'
import { useStripe, useElements, CardElement } from '@stripe/react-stripe-js'
import { createSubscription } from '../../api/teams/subscription'
import { SerializedTeam } from '../../interfaces/db/team'
import { SerializedSubscription } from '../..... |
import * as moment from 'moment';
import { Component, ElementRef, HostBinding, Input } from '@angular/core';
import { abbrDateRange, sideOfScreen } from '../../../utils';
import { Observable } from 'rxjs/Observable';
import { UniInputBaseComponent } from '../../base/input-base/input-base.component';
moment.locale('e... |
import {Configuration, GitProject, logger} from "@atomist/automation-client";
import {
DefaultGoalNameGenerator,
doWithProject,
ExecuteGoal,
FulfillableGoalDetails,
FulfillableGoalWithRegistrations,
getGoalDefinitionFrom,
Goal, GoalDefinition, GoalDetails,
IndependentOfEnvironment,
S... |
import commands from '../../commands';
import request from '../../../../request';
import GlobalOptions from '../../../../GlobalOptions';
import {
CommandOption, CommandValidate
} from '../../../../Command';
import { Group } from './Group';
import { GraphItemsListCommand } from '../../../base/GraphItemsListCommand';
... |
<gh_stars>0
import * as fs from "fs";
import * as path from "path";
import {logger} from "../../utils/logger";
import {NPMScope} from "@ts-common/azure-js-dev-tools";
import {getLatestStableVersion} from "../../utils/version";
const readline = require('readline');
export function validPackageName(packageName) {
co... |
<filename>src/Experience/meshes/DynamicPlane.ts
import {
Vec3,
Camera,
OGLRenderingContext,
Program,
Vec2,
Plane as OGLPlane,
TextureLoader,
ProgramOptions,
} from 'ogl'
import RaycastableMesh from '../core/RaycastableMesh'
import { OnCollideParams } from '../core/CollidableMesh'
import vertex from '~... |
<reponame>aayushkapoor206/whatshot<filename>node_modules/ionic-framework/dist/src/typescript/animations/ios-transition.ts
import {Animation} from './animation';
const DURATION = 550;
const EASING = 'cubic-bezier(0.36,0.66,0.04,1)';
const OPACITY = 'opacity';
const TRANSLATEX = 'translateX';
const OFF_RIGHT = '99.5%';
... |
import { AudioProcessor } from "./audioProcessor";
import { getRWithoutAlpha, hsv2rgb, MAX_RGB } from "./colour";
import { RGB } from "./interfaces";
import { FixAverage } from "../shared/Arrays";
import fjs from "frequencyjs";
import { memo } from "react";
export type SpeakerSide = "left" | "right" | "merged";
... |
import { isWithCustomOptions, isWithMediaUrl, PlayerAnalytics, PlayerAnalyticsOptions } from '@api.video/player-analytics';
import videojs, { VideoJsPlayer } from 'video.js';
const Plugin = videojs.getPlugin('plugin');
declare module 'video.js' {
// this tells the type system that the VideoJsPlayer object has a m... |
import React, { useState, useEffect } from 'react'
import { StyleSheet, View, TouchableOpacity } from 'react-native'
import TrackPlayer from 'react-native-track-player'
import moment from 'moment'
import momentDurationFormatSetup from 'moment-duration-format'
import MaterialCommunityIcons from 'react-native-vector-icon... |
<reponame>tkem/slotapp
import { BehaviorSubject , ConnectableObservable , Observable, Subject , Subscription, concat, timer } from 'rxjs';
import { concatMap, distinctUntilChanged, filter, map, publish, publishReplay, refCount, retryWhen, scan, share, shareReplay, take, tap, timeout } from 'rxjs/operators';
import { ... |
import { Accessibility, embedBehavior, EmbedBehaviorProps } from '@fluentui/accessibility';
import * as _ from 'lodash';
import * as PropTypes from 'prop-types';
import * as React from 'react';
import * as customPropTypes from '@fluentui/react-proptypes';
import { createShorthandFactory, UIComponentProps, commonPropTy... |
<reponame>maxiplux/AvI
import {Storage} from '@ionic/storage';
import {AuthHttp, JwtHelper, tokenNotExpired} from 'angular2-jwt';
import {Injectable, NgZone} from '@angular/core';
import {Observable} from 'rxjs/Rx';
import {Secret} from '../secrets/secret';
import {UserInfoService} from './userInfo.service';
// Avoid ... |
<gh_stars>0
import React, { useCallback, useEffect, useRef } from "react";
import { CellInterface, GridRef, SelectionArea } from "../Grid";
import { selectionFromActiveCell, prepareClipboardData } from "./../helpers";
import { MimeType } from "../types";
export interface CopyProps {
/**
* Selection bounds
*/
... |
import * as path from 'path';
import { App, NestedStack, Stack, Stage } from '../lib';
import { constructInfoFromConstruct, constructInfoFromStack } from '../lib/private/runtime-info';
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '../lib';
const JSII_RUNTIME_SYMBOL = Symbol... |
<gh_stars>0
import {gameScoreValue} from "../util/constant"
export enum DiceOptions {
Aces="Aces",
Twos="Tows",
Threes="Threes",
Fours="Fours",
Fives="Fives",
Sixes="Sixes",
Choice="Choice",
FourOfAKind="FourOfAKind",
FullHouse="FUllHouse",
SmallStraight="SmallStraight",
Lar... |
import insertFixtures from '../helpers/insertFixtures';
import proxyMock from '../helpers/proxyMock';
import { adminLogin, logout, login } from '../helpers/login';
import disableTransitions from '../helpers/disableTransitions';
import { expectDocumentCountAfterSearch, refreshIndex } from '../helpers/elastichelpers';
im... |
import React, { useState, useContext } from "react"
import { Theme, createStyles, makeStyles } from "@material-ui/core/styles"
import { Button, Paper } from "@material-ui/core"
import DeleteIcon from "@material-ui/icons/Delete"
import CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank'
import C... |
<reponame>andi1984/onlythemes
import * as vscode from 'vscode';
import fetch from 'node-fetch';
import { Settings } from './settings';
import { Rating } from './enums';
import { InstallPrompt } from './installPrompt';
type HSLColor = {
h: number;
s: number;
l: number;
};
type LIGHT = "Light";
type DARK = "Dark"... |
<gh_stars>1-10
import {
PredictionsOptions,
TranslateTextInput,
TranslateTextOutput,
TextToSpeechInput,
ProviderOptions,
isTranslateTextInput,
TextToSpeechOutput,
SpeechToTextInput,
SpeechToTextOutput,
isTextToSpeechInput,
isSpeechToTextInput,
IdentifyTextInput,
IdentifyTextOutput,
IdentifyLabelsOutput,
... |
import React, { useEffect, useState } from 'react';
import { ServerContext } from '@/state/server';
import ServerContentBlock from '@/components/elements/ServerContentBlock';
import tw from 'twin.macro';
import useSWR from 'swr';
import FlashMessageRender from '@/components/FlashMessageRender';
import searchPlugins fro... |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component, CSSProperties, ReactElement } from 'react';
import { DateInput } from '../packages/Calendar';
type TypeFilterValue = {
n... |
import { Component, Input, OnInit, TemplateRef } from '@angular/core';
import { NbMenuService, NbTreeGridDataSource, NbTreeGridDataSourceBuilder,NbCardComponent } from '@nebular/theme';
import { NbSidebarService, NbDialogService, NbMenuItem } from '@nebular/theme';
import { CodefetchService } from 'src/app/codefetch.se... |
<reponame>chenxinyanc/nteract
import { createGlobalStyle } from "styled-components";
const css = createGlobalStyle`
.bp3-omnibar{
-webkit-filter:blur(0);
filter:blur(0);
opacity:1;
top:20vh;
left:calc(50% - 250px);
z-index:21;
border-radius:3px;
-webkit-box-shadow:0 0 0 1px rgba(16, 22, 26, 0.1... |
/**
* Copyright 2019, SumUp Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... |
<reponame>CandleLibrary/css
import whind from "@candlelib/wind";
var step = 0;
export function checkDefaults(lx) {
const tx = lx.tx;
/* https://drafts.csswg.org/css-cascade/#inherited-property */
switch (lx.tx) {
case "initial": //intentional
case "inherit": //intentional
c... |
// Copyright 2020- Robot Framework Foundation
//
// 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 ... |
<gh_stars>0
import { ISquarePoint, Row, SquareSudoky } from "../../types/helpers";
export const example: SquareSudoky = [
[
{ value: "1", y: 0, x: 0, correct: true, disabled: false },
{ value: "2", y: 0, x: 1, correct: true, disabled: false },
{ value: "3", y: 0, x: 2, correct: true, disabled: false },
... |
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS EC2
*/
export interface DataAwsKeyPairConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/key_pair#key_name... |
import React, { useCallback, useEffect, useState } from 'react';
import { StyleSheet, TouchableOpacity, View } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import { StackScreenProps } from '@react-navigation/stack';
import { Subscription } from 'react-native-ble-plx';
import { MENU_ICON_SIZE } f... |
import getFreePort from 'get-port'
import { startCase } from 'lodash'
import { appendFile, exists, mkdir, readFile } from 'mz/fs'
import * as path from 'path'
import puppeteer from 'puppeteer'
import puppeteerFirefox from 'puppeteer-firefox'
import webExt from 'web-ext'
import { saveScreenshotsUponFailuresAndClosePage ... |
import {Getter, Provider, inject, Constructor} from '@loopback/context';
import {
Request,
Response,
SequenceActions,
ParseParams,
FindRoute,
ParameterObject,
HttpErrors,
} from '@loopback/rest';
import {AuthenticateFn, AuthenticationBindings} from '../keys';
import * as jwksClient from 'jwks-rsa';
import... |
<reponame>syihab123-web/i-blast
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { HTMLTableElement, Range } fr... |
import React from 'react';
import {ThemeProps, themeable} from '../theme';
import {LocaleProps, localeable} from '../locale';
import InputBox from './InputBox';
import {Icon} from './icons';
import Button from './Button';
import {autobind, guid} from '../utils/helper';
import {uncontrollable} from 'uncontrollable';
imp... |
<reponame>plantain-00/code-structure<filename>html/index.ts<gh_stars>1-10
import { createApp, defineComponent, nextTick, PropType } from 'vue'
import { EventData, TreeData, DropPosition, Tree, Node } from 'tree-vue-component'
import hljs from 'highlight.js'
import { EaseInOut } from 'ease-in-out'
import { JsonDataResul... |
<filename>src/store/login.ts<gh_stars>1-10
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import { createRequestSaga } from '../hooks';
import * as api from '../lib/api/login';
import { takeLatest } from 'redux-saga/effects';
import { createAction } from 'redux-actions';
import type {
Login,
User,
Lo... |
<reponame>Drxckzyz/Easter-Boat
import { userMention } from '@discordjs/builders';
import {
PrismaClient,
Guild,
User,
User_Inventory,
User_cooldowns,
User_Stats,
} from '@prisma/client';
import { Collection, Guild as DjsGuild } from 'discord.js';
import { BoatClient } from '../BoatClient';
import { UserBadges, Us... |
import * as Phaser from 'phaser';
import AnimationHelper, { ANIMATION_KEYS } from '../../utils/animationHelper';
import FacingDirection from '../../utils/facingDirection';
import GameConfig from '../../utils/gameConfig';
import TiledSpawnPoint from '../tiled/tiledSpawnPoint';
import { SkinPalette, HairPalette, HairStyl... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { expect } from 'chai';
import { ReactWrapper } from 'enzyme';
import { parse } from 'node-html-parser';
import * as React from 'react';
import { Uri } from 'vscode';
import { IDocumentManager } from '.... |
import React, { Component, MouseEventHandler } from 'react';
import cn from 'classnames';
import Tag, { TagType } from '../../Tag';
import Icon from '../../Icon';
import CardActions from '../../Card/CardActions';
import SkeletonBodyText from '../../Skeleton/SkeletonBodyText';
import SkeletonImage from '../../Skeleton/... |
export type PseudoClasses =
// https://github.com/w3c/csswg-drafts/blob/master/selectors-4/Overview.bs > Array.from($("#selector-examples").querySelectorAll("tbody > tr")).map(tr => tr.children[0].innerText).filter(s => s.includes("E:"))
"&:not()" |
"&:is()" |
"&:where()" |
"&:has()" |
"&:dir()" |
"&:lang()" |
"&:any-... |
/********************************************************************************
* Copyright (C) 2019 Ericsson and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* T... |
/**
* @license
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... |
/*
* 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>1-10
/*
Copyright (c) 2020 <NAME> Co., Ltd.
https://www.cocos.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
t... |
<gh_stars>1-10
// 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/LICENSE-2.0
//
// Unless required by applicable law o... |
<gh_stars>10-100
import {String} from 'typescript-string-operations'
import {compareNumbers} from '../../utils/compare'
import {Block} from './Block'
import {Constraint} from './Constraint'
// MSAGL class for Variables for Projection Solver.
export class NeighborAndWeight {
Neighbor: Variable
Weight: number
pu... |
/*
********************************************
Copyright © 2021 Agora Lab, Inc., all rights reserved.
AppBuilder and all associated components, source code, APIs, services, and documentation
(the “Materials”) are owned by Agora Lab, Inc. and its licensors. The Materials may not be
accessed, used, modified, or di... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
<gh_stars>0
enum HttpMethod {
GET,
POST,
PUT,
HEAD,
DELETE,
PATCH,
OPTIONS,
CONNECT,
TRACE
}
enum Newline {
CRLF,
LF,
CR
}
/**
* WiFi:bit commands.
*/
//% color=#000000 weight=90 icon="\uf1eb" block="STEM Punks WiFi"
namespace WiFiBit {
function writeToSerial(da... |
<reponame>coloursofnoise/julia-vscode
import { realpath } from 'async-file'
import { exec } from 'child-process-promise'
import * as child_process from 'child_process'
import * as os from 'os'
import * as path from 'path'
import * as process from 'process'
import * as vscode from 'vscode'
import * as which from 'which'... |
<reponame>weizihua/cds<filename>ui/src/app/shared/requirements/form/requirements.form.component.ts
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { SharedInfraGroupName } from 'app... |
import React, { useEffect, useState } from 'react';
import { ScrollView, View } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import Constants from 'expo-constants';
import { Markdown, ShowImageModal } from '../../components';
import { Avatar, Button, Divider, Text } from '../../core-u... |
import React, { Component } from 'react';
import { View, Text, StyleSheet, FlatList, Alert } from 'react-native';
import { Store } from '@/store';
import Router from '@/router';
import { ICON_BLUE } from '@/themes/color';
import { inject, observer } from 'mobx-react/native';
import { Toolbar } from 'react-native-materi... |
import { default as axios } from "axios";
import * as querystring from "querystring";
import {
TeamsActivityHandler,
SigninStateVerificationQuery,
ActionTypes,
CardFactory,
BotState,
TurnContext,
} from "botbuilder";
import { MainDialog } from "./dialogs/mainDialog";
export class TeamsBot extends TeamsAct... |
import {
Transaction,
User,
TransactionRequestStatus,
NotificationType,
PaymentNotificationStatus,
TransactionResponseItem,
TransactionQueryPayload,
TransactionDateRangePayload,
TransactionAmountRangePayload,
LikeNotification,
CommentNotification,
} from "../models";
import { faker } from "@faker-... |
<reponame>colawwj/autorest.az
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------... |
import { isValidAddress } from 'ethereumjs-util'
import * as React from "react"
import {
Box, Table, TableBody, TableRow, TableCell, Button, Dialog, DialogActions, DialogContent, DialogTitle, TextField
} from "@material-ui/core"
import Add from "@material-ui/icons/Add"
import LinkedAddress from "../../components/lin... |
import React from 'react';
import { Autocomplete, createFilterOptions } from '@material-ui/lab';
import { FastField, Field, useFormikContext } from 'formik';
import { AutomatedSourceFormValues } from '../AutomatedSourceForm';
import BulkCaseFormValues from '../bulk-case-form-fields/BulkCaseFormValues';
import CaseForm... |
import { useState } from "react";
import { Button, Accordion, Card, Form, Row, Col, InputGroup, FormControl, FormGroup, FormLabel, Alert } from "react-bootstrap";
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
import { Election } from "../../classes/Election";
import { P... |
<reponame>cshaver/pretty-delaunay<gh_stars>1-10
/**
* @example "hsla(336,100%,84%,1)"
*/
type HslaString = string;
/**
* @example "rgba(255,171,205,1)"
*/
type RgbaString = string;
/**
* @example "rgb(255,171,205)"
*/
type RgbString = string;
/**
* @example "#FFABCD"
*/
type HexString = string;
export funct... |
import {
Container,
MetadataReader,
interfaces,
ContainerModule,
decorate,
LazyServiceIdentifer,
} from 'inversify';
import {
ContainerConfig,
ModuleOptions,
FactoryProvider,
ValueProvider,
ClassProvider,
ServiceIdentifier,
DependencyProviderOption,
ModuleProvider,
} from './interfaces';
imp... |
import { ElementRef, Inject, Injectable } from '@angular/core';
import { selectSlice } from '@rx-angular/state';
import { map, Observable } from 'rxjs';
import * as THREE from 'three';
import { NGT_PERFORMANCE_OPTIONS } from '../di/performance';
import { NgtResize, NgtResizeResult } from '../services/resize.service';
i... |
import * as appRootDir from 'app-root-dir';
import fs from 'fs-extra';
import _ from 'lodash';
import * as path from 'path';
import stringify from 'safe-stable-stringify';
import yargs from 'yargs';
import { createClientCompiler, createClientCompilerNext, createNodeCompiler, runCompiler } from '../compiler';
import { l... |
import React, { useEffect, useState, useRef } from 'react';
import { Form, message, Image } from 'antd';
import { mediaEdit, getCurrent, getIndustry } from './../request'
import type { ProColumns, ActionType } from '@ant-design/pro-table';
import { queryAccount, getOptions } from './../request'
import ProTable from '@a... |
<filename>packages/mds-db/devices.ts
import { QueryResult } from 'pg'
import { UUID, Device, Recorded, DeviceID } from '@mds-core/mds-types'
import { now, yesterday, isUUID, csv } from '@mds-core/mds-utils'
import log from '@mds-core/mds-logger'
import schema from './schema'
import { vals_sql, cols_sql, vals_list, lo... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------... |
import getSession from "./Functions/GetSession";
import getURL from "./Functions/GetURL";
import { jQuery } from "./Constants/Client";
import akinatorAPIErrors from "../Errors/AkinatorAPIErrors";
import request from "./Functions/Request";
export interface AkinatorAnswerInterface {
id: string,
name: string,
id_base:... |
<reponame>andrewtonibm/ANGULARV2V4_REST_OPENFDA<filename>app/drugs.service.ts<gh_stars>0
import {
Injectable
} from '@angular/core';
import {
Http,
Response,
Headers
} from '@angular/http';
import {
Observable
} from 'rxjs/Rx';
import {
Drug
} from './drug';
@Injectable()
export class DrugsService {
//h... |
<filename>lib/scenario-repo.ts
import _ = require("lodash");
import { StepLexicon } from "./step-lexicon";
import fs = require("fs");
import path = require("path");
import { MockStep } from "./mock-step";
export interface Scenario {
steps: Array<string>;// array of step names
fallbackSteps: Array<string>;
... |
import { Sign } from './types';
import { addOrRemoveClass, append, createElement, prepend, remove, each } from './utils/dom';
import { range, rewind } from './utils/utils';
import { ELEMENT_CLASSES } from './constants';
/**
* Map current index to bullet elements index.
*
* @param index Current index.
* @param cent... |
import { PlumeGL } from '../plumegl/engine/plumegl';
let cav: any;
const createGLContext = () => {
cav = document.getElementById('main-canvas');
cav.width = 512;
cav.height = 512;
if (!cav) {
return;
}
let gl = <WebGL2RenderingContext>PlumeGL.initGL(cav);
return gl;
};
... |
import path from 'path'
import { parseWebpackConfig } from '../config/parse'
import type { ViteConfig } from '../config/vite';
import { RawValue } from '../config/vite'
import type { TransformContext } from './context'
import type { Transformer } from './transformer';
import { initViteConfig, transformImporters } from ... |
import assert from 'assert'
import { join } from 'path'
import { readFileSync } from 'fs'
import { defaultAbiCoder as AbiCoder, Interface } from '@ethersproject/abi'
import { Account, Address, BN } from 'ethereumjs-util'
import { Transaction } from '@ethereumjs/tx'
import VM from '../../dist'
const solc = require('solc... |
/*
* 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 React, { useEffect, useState } from 'react';
import { useActions, use... |
<filename>front_end/models/bindings/FileUtils.ts
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the... |
import { HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import b64u from 'b64u';
import { pick } from 'lodash-es';
import { EMPTY, Observable, throwError } from 'rxjs';
import { catchError, map } from 'rxjs/operators';
import { Address } from 'ish-core/models/address/address.mod... |
import { EntityLike } from "../define";
import { EventBuilder, EventCommon, EventCommonSender } from "./common";
import { Api } from "../tl";
import { returnBigInt, toSignedLittleBuffer } from "../Helpers";
import { TelegramClient } from "..";
import { _getEntityPair, getInputPeer } from "../Utils";
import { EditMessag... |
<filename>packages/core/src/render3/hooks.ts
/**
* @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 {SimpleChanges} from '../interface/simple_change';
import {asser... |
<reponame>NathanielRose/bedrock-cli<filename>src/commands/service/pipeline.ts
import { IBuildApi } from "azure-devops-node-api/BuildApi";
import {
BuildDefinition,
BuildDefinitionVariable,
} from "azure-devops-node-api/interfaces/BuildInterfaces";
import commander from "commander";
import path from "path";
import {... |
import {
Node,
Command,
ParentConfig,
mergeAttributes,
getExtensionField,
callOrReturn,
} from '@tiptap/core'
import {
tableEditing,
columnResizing,
goToNextCell,
addColumnBefore,
addColumnAfter,
deleteColumn,
addRowBefore,
addRowAfter,
deleteRow,
deleteTable,
mergeCells,
splitCell,
... |
import assert from 'tiny-invariant'
import { browser } from 'webextension-polyfill-ts'
import Deferred from '@offirmo/deferred'
import * as Flux from './flux'
import './react'
import { MSG_ENTRY } from '../common/consts'
import {
MSG_TYPE__REPORT_IS_LIB_INJECTED,
MSG_TYPE__TOGGLE_LIB_INJECTION,
MSG_TYPE__REQUEST_C... |
import * as React from 'react';
import { type } from 'os';
import i18next from 'i18next';
import { IFontStyles, PrimaryButton, Stack, DefaultButton, Text, Image, ITextStyles, FontWeights, IIconStyles, Icon, Modal, IconButton, getTheme, mergeStyleSets, FontSizes} from 'office-ui-fabric-react'
import { Card, ICardTokens,... |
import {async, TestBed} from '@angular/core/testing';
import {HttpClientTestingModule, HttpTestingController, TestRequest} from '@angular/common/http/testing';
import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {of} from 'rxjs';
import {finalize} from 'rxjs/operators';
imp... |
<filename>src/operation/skeletons.ts
import * as bitcoin from 'bitcoinjs-lib';
import { config } from '../config';
import { InvalidParameterError } from '../error';
import { decodeB40, DUST_MINIMUM, hash128, hash160 } from './utils';
// todo : add name length / character verification
export function makePreorderSkel... |
import React, { FC, useEffect } from 'react';
import { BigNumber, utils } from 'ethers';
import {
ModalContent,
ModalBody,
Text,
Stack,
Button,
InputGroup,
Input,
} from '../common';
import { Header, Footer, NetworkBar } from '../static';
import { CHAIN_DETAIL } from '../../constants';
import { truncate }... |
import shortid from 'shortid'
import LabRepository from '../../../clients/db/LabRepository'
import SortRequest from '../../../clients/db/SortRequest'
import { labs } from '../../../config/pouchdb'
import Lab from '../../../model/Lab'
interface SearchContainer {
text: string
status: 'requested' | 'completed' | 'ca... |
import React from 'react';
import { connect } from 'react-redux';
import { Modal } from 'antd';
import { AppState } from 'store/reducers';
import { getLoopOutQuote, loopOut, loopIn, getLoopInQuote } from 'modules/loop/actions';
import { Button, Alert } from 'antd';
import { LoopOutArguments, LoopInArguments } from 'lib... |
import { BTCInputScriptType, BTCOutputScriptType } from '@shapeshiftoss/hdwallet-core'
import { BIP44Params, UtxoAccountType } from '@shapeshiftoss/types'
import { decode, encode } from 'bs58check'
/**
* Utility function to convert a BTCInputScriptType to the corresponding BTCOutputScriptType
* @param x a BTCInputSc... |
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import styled from 'styled-components/macro';
import NumberFormat from 'react-number-format';
import _ from 'lodash';
import { AppDispatch, RootState } from 'store';
import { LocalizationProps } from 'types';
... |
import { GetValues_ForSchema } from 'js-vextensions';
import { AddSchema, GetSchemaJSON } from 'vwebapp-framework';
import { ObservableMap } from 'mobx';
import { AccessLevel, ImageAttachment } from './@MapNode';
import { Equation } from './@Equation';
import { ContentNode } from '../contentNodes/@ContentNode';
import ... |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
import { DiffOutlined } from '@ant-design/icons'
import { Alert, Modal, Progress } from 'antd'
import get from 'lodash/get'
import React, { useCallback, useRef, useState } from 'react'
import { useOrganization } from '@core/next/organization'
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.