text stringlengths 3.08k 15.5k |
|---|
<filename>src/RotatingObject.ts
import * as THREE from 'three';
import Units from './Units';
import { SpaceObject } from './SpaceObject';
import { rescaleVector } from './Scale';
import type { Simulation } from './Simulation';
import type { SpaceObjectOptions } from './SpaceObject';
function getAxis(src: THREE.Vecto... |
import { ICode, IRastreio, IRastreios } from "../../utils/types";
import React, { useState } from "react";
import Footer from "../Footer";
import Header from "./header";
import styled from "styled-components";
import oddEven from "../../utils/oddEven";
interface IRastreiosProps {
tracking?: IRastreios[];
codigo?: ... |
<gh_stars>1-10
import { Component } from "@angular/core";
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { NavController, NavParams, AlertController, IonicPage } from "ionic-angular";
import { TranslateService } from '@ngx-translate/core';
import { PhotoViewer } from '@ionic-native/photo-viewer'
i... |
import React, { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { useDispatch, useSelector } from 'react-redux'
import MaterialTable from 'material-table'
import { MuiThemeProvider, createMuiTheme, makeStyles } from '@material-ui/core'
import { useHistory, useRouteMatch } from ... |
/*
* Copyright (c) 2022 R3BL LLC. 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 by appli... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
const {assert} = chai;
import * as Common from '../../../../../front_end/core/common/common.js';
const SettingsStorage = Common.Settings.SettingsStorage... |
import { FieldWrapper, FieldWrapperProps, useDinaFormContext } from "common-ui";
import { FormikProps } from "formik";
import { DinaMessage, useDinaIntl } from "../../../intl/dina-ui-intl";
import { useState } from "react";
import { isArray } from "lodash";
import DOMPurify from "dompurify";
import { GlobalNamesSearch... |
import { React, classNames } from 'jimu-core'
import { hooks, defaultMessages as jimuiDefaultMessage } from 'jimu-ui'
import { Card } from '../components'
import { IWebChart } from '../../../config'
import defaultMessages from '../../translations/default'
import { UnControlledSettingCollapse, SettingRow } from 'jimu-ui... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import React from 'react'
import tw from 'twin.macro'
import { BattlepassCardProps } from './types'
import bgLocker from '@assets/images/bgLocker.png'
import unknownIcon from '@assets/icons/unknown.png'
import ownedIcon from '@assets/icons/owned.png'
import blockIcon from '@assets/icons/block.png'
import '@styles/inde... |
<reponame>hoda5/vscode<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.
*--------------------------... |
<reponame>hkang1/hermes
import { Data, NestedObject, Primitive, RandomNumberOptions, Range } from '../types';
export const isBoolean = (data: unknown): data is boolean => typeof data === 'boolean';
export const isError = (data: unknown): data is Error => data instanceof Error;
export const isNumber = (data: unknown): ... |
<reponame>framp/PathFinding.ts
import Util from "../core/Util";
import Heuristic from "../core/Heuristic";
import Node from "../core/Node";
import DiagonalMovement from "../core/DiagonalMovement";
/**
* Iterative Deeping A Star (IDA*) path-finder.
*
* Recursion based on:
* http://www.apl.jhu.edu/~hall/AI-Program... |
<reponame>snackwangpetter/ElastosHiveJSSDK<filename>src/index.ts
'use strict';
import { VaultServices } from "./api/vaultservices";
//import { KeyProvider } from "./domain/crypto/keyprovider";
import { Class } from "./domain/class";
import { DataStorage } from "./domain/datastorage";
import { File } from "./domain/fi... |
import { FC, useState, useEffect, ChangeEvent, PropsWithChildren, ReactNode } from 'react'
import {
InputLabel,
Select,
FormControlLabel,
Checkbox,
Grid,
Input,
FormHelperText,
MenuItem,
SelectChangeEvent,
} from '@mui/material'
import makeStyles from '@mui/styles/makeStyles'
import { GeneralSettings ... |
import BoardPosition from "../../../board_position";
import { DamageType } from "../../../damage";
import { Effect } from "../../../effect";
import Unit from "../../unit";
import Champion from "../champion";
import AbilityTarget from "./ability_target";
export enum AbilityIdentifier {
Q,
W,
E,
R,
N... |
import axios from 'axios';
import { getRepository } from 'typeorm';
import { hasNotificationType, Notification } from '..';
import { MediaType } from '../../../constants/media';
import { User } from '../../../entity/User';
import logger from '../../../logger';
import { Permission } from '../../permissions';
import {
... |
<filename>src/circus-reporter.ts
/* eslint-disable no-param-reassign */
import path from 'path';
import colors from 'ansi-colors';
import { constants } from 'karma';
// @ts-ignore
import useragent from 'ua-parser-js';
import Printer from './Printer';
import { SourceFile, cleanStack } from './Stack';
import { control... |
<filename>src/airports-task/modules/graph/graph.ts
import { findAllRoutes } from '../../data/data-service';
import { PriorityQueue, PriorityQueueValue } from './classes/priority-queue';
import { HeuristicValueContainer } from './classes/heuristic-value-container';
import { RouteStack, RouteStackValue } from './classes/... |
import React, { useState, useEffect } from 'react'
import { StyleSheet, Text, View, FlatList, TouchableOpacity } from 'react-native'
import { ProfileX } from '../../../../reducers/profileXReducer'
import { firestore } from 'firebase'
import { store } from '../../../../store'
import { useSelector } from '../../../../red... |
import Grid from "@component/grid/Grid";
import ClassroomDashboardLayout from "@component/layout/ClassroomDashboardLayout";
import { useRouter } from "next/router";
import { useDispatch } from 'react-redux'
import { useSelector } from 'utils/utils'
import React, { useState, useRef, useEffect } from "react";
import {
... |
<reponame>multiplayersnake/snake<gh_stars>0
import * as THREE from 'three';
import config from './constants';
import { Apple, Boom, Coin, Snake } from './classes';
export const draw = {
drawLeftPanel,
drawCoins,
drawApples,
drawBooms,
drawSnakes,
drawTimerPanel
};
// Функция отрисовки панели таймера
func... |
<gh_stars>0
import { Location, testfuncs, randomWalk, oceanCrossing,
locationToString, getRandomLandLocations } from '../../../src/sim/util/location';
import { testfuncs as terrain } from '../../../src/map/generateTerrain';
import { expect } from 'chai';
const ALTITUDE = [
[0.9, 0.9, 0.1],
[0.9, 0.8, ... |
<reponame>France-ioi/codecast<filename>frontend/task/libs/quickalgo_librairies.ts
import {App} from "../../index";
import {AppStore, AppStoreReplay} from "../../store";
import {createDraft} from "immer";
//TODO: Handle multiples libraries at once.
// For now, we only use 1 library
export class QuickAlgoLibraries {
... |
import type { AxiosRequestConfig, AxiosResponse, Canceler } from 'axios'
import axios from 'axios'
import { Dialog, Toast } from 'vant'
import type { ExtInfo } from './request'
// 声明一个 Map 用于存储每个请求的标识 和 取消函数
const pending = new Map<string, Canceler>()
let loadingTimer: NodeJS.Timeout
/**
* 添加请求进队列
* @param {AxiosR... |
import MDPHubAdapter, { Connector, Topic, Subscription } from 'mdphub-adapter';
import { EventEmitter } from 'events';
import redis from './redis';
import Messages from './static/messages';
import * as Pairs from './static/pairs.json';
enum Direction {
Above = 'above',
Below = 'below',
}
type AlertString = string... |
<gh_stars>1-10
import { call, put, select, takeLatest, all } from 'redux-saga/effects'
import actionCreatorFactory, { isType } from 'typescript-fsa'
// Type imports
import { SagaIterator } from 'redux-saga'
import { Action } from 'redux'
import StoreManager from '_app/utils/StoreManager'
import { AuthResponse, User } ... |
import fs = require('fs');
import path = require('path');
import tl = require('azure-pipelines-task-lib/task');
import tr = require('azure-pipelines-task-lib/toolrunner');
var uuidV4 = require('uuid/v4');
async function translateDirectoryPath(directoryPath: string): Promise<string> {
let commandPath = tl.which("cm... |
<reponame>sokril/board<gh_stars>100-1000
import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
import { ComponentStatus } from '../component-status.model';
import { DashboardService } from '../dashboard.service';
import { HttpErrorResponse } from '@angular/common/http';
import { User } from 'src/app/... |
<gh_stars>10-100
import P, {Language, Parser} from 'parsimmon';
import {expectNever, ffVersionRegex} from '../util/util';
import {Field} from '../config/type';
import {Either, left, right} from 'fp-ts/lib/Either';
import {ImplicitFields} from './implicitfields';
import {LocalDate} from '@js-joda/core';
const whitespac... |
<filename>frontend/src/components/PaymentHistoryInput/helper.ts
import { category } from '../../constants';
import {
Component,
DateInfoWithoutDay,
PaymentHistoryWithDate,
} from '../../types';
import $ from '../../utils/$';
import getDayOfMonth from '../../utils/getDayOfMonth';
import { Input, InputAttrs, InputC... |
<reponame>lamnhan/ngxer
import {resolve} from 'path';
import {green, yellow} from 'chalk';
import * as ora from 'ora';
import {WARN, ERROR} from '../../lib/services/message.service';
import {FileService} from '../../lib/services/file.service';
import {
DatabaseRender,
ProjectService,
} from '../../lib/services/pro... |
// Dependencies.
import express from "express";
import path from "path";
// Required imports.
import { createServer } from "http";
import { Server } from "socket.io";
import { RoomType, UserType } from "./types/types";
import { Constants } from "./types/Constants";
// Initialization.
const app = express();
const serv... |
<reponame>RyanLiu0235/G2Plot
import * as _ from '@antv/util';
import { registerPlotType } from '../../base/global';
import { LayerConfig } from '../../base/layer';
import ViewLayer, { ViewConfig } from '../../base/view-layer';
import patition from './layout/partition';
import { INTERACTION_MAP } from './interaction';
i... |
<gh_stars>1-10
import * as Mongoose from 'mongoose';
import 'reflect-metadata';
import { buildSchema } from './build-schema';
import { getMetadata, hasMetadata } from './meta';
/**
* Decorates a class to be a mongoose schema/model
* @param {Mongoose.SchemaOptions} options for schema
*/
export function schema(optio... |
<gh_stars>1-10
// @ts-nocheck
import Overlay from './Overlay';
import {
checkCodeInEditor,
isLocalEnv,
checkCodeInDevtool,
getElementFiber,
} from './utils';
export const SHOPEE_COMPONENT_FILTERS = '__SHOPEE_COMPONENT_FILTERS__';
const filtersString = localStorage.getItem(SHOPEE_COMPONENT_FILTERS);
const filter... |
<gh_stars>0
interface WebResource_Base extends WebEntity {
canbedeleted?: any | null;
componentstate?: componentstate | null;
content?: string | null;
contentjson?: string | null;
createdon?: Date | null;
dependencyxml?: string | null;
description?: string | null;
displayname?: string | null;
introduc... |
import React, { useState, useRef, useContext } from 'react';
import styled from 'styled-components';
import { getExtURL, getManifest } from '@Src/utils/chrome';
import { Context } from '@Src/context';
const WrapperUI = styled.div`
height: 100%;
overflow: auto;
`;
const BannerUI = styled.div`
height: 150px;
paddin... |
import {
css,
CSSResult,
customElement,
html,
internalProperty,
LitElement,
property,
PropertyValues,
query,
TemplateResult,
} from "lit-element";
import { classMap } from "lit-html/directives/class-map";
import { styleMap } from "lit-html/directives/style-map";
import { STATES_OFF } from "../../../... |
<reponame>ChaseKnowlden/vscode-jupyter
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { inject, injectable } from 'inversify';
import { Event, EventEmitter, NotebookDocument } from 'vscode';
import { IDisposable, IDisposableRegistry } from '../../c... |
/**
* @license
* Copyright Google LLC 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 {createHash} from 'crypto';
import {AbsoluteFsPath, FileSystem, PathSegment} from '../../../src/ngtsc/file_sys... |
/**
Copyright 2021 Forestry.io Holdings, 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 applicable law or agreed to in writing,... |
<filename>src/hooks/fetcher.bak.tsx
import useSWR, { ConfigInterface, keyInterface } from 'swr';
import { fetcherFn, responseInterface } from 'swr/dist/types';
import qs from 'querystring';
export type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string | Record<string, an... |
<filename>server/src/main/webapp/WEB-INF/rails/webpack/models/users/spec/users_crud_spec.ts
/*
* Copyright 2019 ThoughtWorks, 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
*
* ... |
import React, {useCallback, useState} from 'react';
import styled from '@emotion/styled';
import {Button, H5, HTMLSelect, Intent, TextArea} from '@blueprintjs/core';
import {IconNames} from '@blueprintjs/icons';
import {dsvFormat} from 'd3-dsv';
import {ascending} from 'd3-array';
import {connect, PromiseState} from 'r... |
import {
Chapter,
ChapterDetails,
HomeSection,
Manga, MangaTile, MangaUpdates,
PagedResults,
Request, RequestManager,
SearchRequest,
Source,
SourceInfo, TagType,
} from "paperback-extensions-common"
import {RainOfSnowParser} from "./RainOfSnowParser";
const BASE = "https://rainofsno... |
/*!
* @license
* Alfresco Example Content Application
*
* Copyright (C) 2005 - 2020 Alfresco Software Limited
*
* This file is part of the Alfresco Example Content Application.
* If the software was purchased under a paid Alfresco license, the terms of
* the paid license agreement will prevail. Otherwise, the ... |
<filename>src/vs/platform/extensions/node/extensionHostStarter.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.... |
<filename>src/food.ts
import cheerio from 'cheerio';
import { fetchPage, FOOD_URL, BASE_URL, exportResults, downloadImage } from './utils';
import { IPotion, ICraft, IFood, ISpecialDishes, IEventDishes } from './types';
import webp from 'webp-converter';
import fs from 'fs';
const getFood = async () => {
try {
c... |
import * as React from 'react'
import { IAvatarUser } from '../../models/avatar'
import { shallowEquals } from '../../lib/equality'
import { generateGravatarUrl } from '../../lib/gravatar'
import { OcticonSymbol, Octicon } from '../octicons'
import { getDotComAPIEndpoint } from '../../lib/api'
interface IAvatarProps {... |
<gh_stars>1-10
import { window, QuickPickItem } from "vscode";
import { softwareGet, isResponseOk } from "../http/HttpClient";
import { getItem } from "../Util";
import Checkbox from "../model/checkbox";
import {
displayProjectCommitsDashboardByRangeType,
displayProjectCommitsDashboardByStartEnd,
} from "./Repo... |
<reponame>francoisno/tock<filename>nlp/admin/web/src/app/core-nlp/rest/rest.service.ts
/*
* Copyright (C) 2017 VSCT
*
* 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.apach... |
/********************************************************************************
* Copyright (C) 2017 TypeFox 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.
*
* Th... |
<reponame>hargarg/FluidFramework
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { ITelemetryLogger } from "@fluidframework/common-definitions";
import { assert, delay } from "@fluidframework/common-utils";
import { canRetryOnError, getRet... |
<gh_stars>0
import WebSocket from 'ws';
import { Logger, LoggerService } from '../../utils/logger.js';
import { Common, CommonService } from '../../utils/common.js';
import { WSServer } from '../../utils/webSocketServer.js';
import { CommonSelectedNode } from '../../models/config.model.js';
export class ECLWebSocketC... |
/**
* @license
* Copyright Google LLC 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 {coerceBooleanProperty} from '@angular/cdk/coercion';
import {SPACE} from '@angular/cdk/keycodes';
import {
... |
<reponame>shufo/coc-blade
import {
DocumentFormattingEditProvider,
Range,
TextDocument,
TextEdit,
Uri,
window,
workspace,
ExtensionContext,
OutputChannel,
} from 'coc.nvim';
import cp from 'child_process';
import fs from 'fs';
import path from 'path';
import ignore from 'ignore';
export async functi... |
/**
*
* On a web form,
* users are asked to enter dates which come in as strings.
* Before storing them to the database
* they need to be converted to a standard date format
* Write a function to convert the dates as database,
* they need to be converted to a standard date format.
* Write a function to c... |
<filename>src/test/fidelity/artifact-creator.ts
/*
* Copyright 2018 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... |
/*
* Licensed to Gisaïa under one or more contributor
* license agreements. See the NOTICE.txt file distributed with
* this work for additional information regarding copyright
* ownership. Gisaïa licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except ... |
import {
Breadcrumb,
Button,
Icon,
message,
Popconfirm,
Select,
Table,
} from 'antd';
import React from 'react';
import intl from 'react-intl-universal';
import { connect } from 'react-redux';
import { Link, match, RouteComponentProps, withRouter } from 'react-router-dom';
import { IDispatch, IRootState ... |
/*
* 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 ... |
<reponame>DaveDuck321/react-wordle
import { MAX_WORD_LENGTH } from '../constants/settings'
export type CharStatus = 'absent' | 'present' | 'correct'
export type CharValue =
| 'Q'
| 'W'
| 'E'
| 'R'
| 'T'
| 'Y'
| 'U'
| 'I'
| 'O'
| 'P'
| 'A'
| 'S'
| 'D'
| 'F'
| 'G'
| 'H'
| 'J'
| 'K'
... |
<reponame>aligege123/kibana-7.6<gh_stars>0
/*
* 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 { NotificationsSetup, Toast... |
<reponame>stanly-johnson/js-ceramic
import CID from "cids"
import fetch from "cross-fetch"
import { decode } from "typestub-multihashes"
import * as providers from "@ethersproject/providers"
import { CeramicConfig } from "../../ceramic"
import AnchorServiceResponse from "../anchor-service-response"
import { AnchorSer... |
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { Platform } from '@angular/cdk/platform';
import { DOCUMENT } from '@angu... |
<gh_stars>1-10
/**
* 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 applic... |
import * as H from 'history'
import ChevronDoubleLeftIcon from 'mdi-react/ChevronDoubleLeftIcon'
import FileTreeIcon from 'mdi-react/FileTreeIcon'
import React, { useCallback, useMemo } from 'react'
import { Button } from 'reactstrap'
import { Link } from '@sourcegraph/shared/src/components/Link'
import { Resizable } ... |
// ==UserScript==
// @name collector :: colnect.com
// @namespace https://colnect.com/
// @version [AIV]{version}[/AIV]
// @author danikas2k2
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB6UlEQVQ4jdWSTUhUcRTFf/c/b8ZyMUW5qhZF1MaNZF8qge2siGxR29o48wZ1EW1bqGCt2... |
import { Button } from 'components/common/buttons/Button';
import { UnsavedChangesPrompt } from 'components/common/form/UnsavedChangesPrompt';
import { FlexBox } from 'components/common/styles';
import { AddressTypes } from 'constants/addressTypes';
import {
CancelConfirmationModal,
DuplicateContactModal,
useAddr... |
<filename>plugins/codeblock-vue/src/index.ts<gh_stars>100-1000
import {
$,
Plugin,
isEngine,
NodeInterface,
CARD_KEY,
CARD_VALUE_KEY,
Parser,
SchemaInterface,
unescape,
CARD_TYPE_KEY,
READY_CARD_KEY,
decodeCardValue,
VIEW_CLASS_NAME,
SchemaBlock,
} from '@aomao/engine';
import type MarkdownIt from 'markdo... |
import { Certificate, PrivateKey } from "@fidm/x509";
import { Crypto } from "@peculiar/webcrypto";
import * as x509 from "@peculiar/x509";
import { decode, encode, types } from "binary-data";
import { createSign } from "crypto";
import { addYears } from "date-fns";
import { randomBytes } from "tweetnacl";
import {
... |
import React from "react";
import ContentLoader from "react-content-loader";
interface ILoaderProps {
type: string;
}
const Loader: React.FC<ILoaderProps> = ({ type }) => {
return (
<div>
{type === "overview_loader" ? (
<ContentLoader
speed={2}
width={388}
height={500}
viewBox="0 0 388 ... |
<filename>pinot-controller/src/main/resources/app/utils/Utils.tsx
/* eslint-disable no-nested-ternary */
/**
* 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 owner... |
import { noOp, shuffleArr } from 'e';
import { Task } from 'klasa';
import { Bank } from 'oldschooljs';
import ChambersOfXeric from 'oldschooljs/dist/simulation/minigames/ChambersOfXeric';
import { Emoji, Events } from '../../../lib/constants';
import { chambersOfXericCl, chambersOfXericMetamorphPets } from '../../../... |
import React, { useEffect, useState } from 'react'
import { SD } from '../../lib/sdr'
import { Header2, SmallSpan, typeShared } from '../../ui/shared/Typography'
import { Button } from '../../ui/shared/Button'
import { credentialValueToText } from '../../vc-json-schema-adapter'
import { Trans } from 'react-i18next'
imp... |
import React from 'react'
import { useTranslation } from 'react-i18next'
import { Layout } from '@ui-kitten/components'
import { Platform, ScrollView, StatusBar, View } from 'react-native'
import Share from 'react-native-share'
import DocumentPicker from 'react-native-document-picker'
import { useStyles } from '@berty... |
<filename>src/services/RepositoryService.ts
import axios from 'axios';
import { differenceInDays, format } from 'date-fns';
import { StandardDeviationService } from './StandardDeviationService';
import {
noTratedIssuesInterface, repositoryIssueResponseInterface,
repositoryIssuesInterface,
} from '../interfaces';
i... |
#!/usr/bin/env node
import path from "path";
import cp from "child_process";
import fs from "fs";
import npmWhich from "npm-which";
import Minimatch from "minimatch";
import yargs, {ToArray} from "yargs";
import chalk from "chalk";
import {
PrefixTransformStream,
upsearch,
readJson,
isObject,
shellJoin,
... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
export type IssueSeverity = 'fatal' | 'error' | 'warning' | 'information';
// Codes defined here= https://www.hl7.org/fhir/valueset-issue-type.html
export type IssueCode =
// Invalid can ... |
import cx from 'classnames';
import { Icon, PrimaryButton, TextInput, Text } from 'components';
import * as React from 'react';
import DayPickerInput from 'react-day-picker/DayPickerInput';
import { DayPickerInputProps, DayPickerProps } from 'react-day-picker/types/Props';
import { useOutsideClick } from 'utils/hooks/o... |
<filename>src/useAntdResizableHeader.tsx
import React from 'react';
import ResizableHeader from './ResizableHeader';
import { option } from './config';
import isEmpty from 'lodash.isempty';
import useThrottleEffect from './utils/useThrottleEffect';
import useDebounceFn from './utils/useDebounceFn';
import { depthFirstS... |
<reponame>howardanonymous/web-push-notifications
import {keyValue} from './storage';
import {
KEY_API_BASE_URL,
KEY_FAKE_PUSH_TOKEN,
KEY_FCM_SUBSCRIPTION,
KEY_INTERNAL_EVENTS,
} from './constants';
import platformChecker from './modules/PlatformChecker';
type TPushSubscription = PushSubscription | null;
expo... |
import path from 'path';
import { ConsoleUtil } from '../../util/console-util';
import { IBuildTask, IBuildTaskConfiguration } from '~build-tasks/build-configuration';
import { IPerformTasksCommandArgs, DeleteStacksCommand, IUpdateStacksCommandArgs, UpdateStacksCommand, ValidateStacksCommand, BaseCliCommand, PrintStac... |
<filename>src/server/plugins/state.ts
/*****
License
--------------
Copyright © 2020 Mojaloop Foundation
The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License")
and you may not use these files except in compliance with the License. You may obtain a cop... |
import moment from 'moment';
import { parse, stringify } from 'qs';
/* eslint no-useless-escape:0 import/prefer-default-export:0 */
const reg = /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/;
const... |
import axios from 'axios';
import plugin from 'fastify-plugin';
import {escapeRegExp, sample} from 'lodash';
import scrapeIt from 'scrape-it';
/* eslint-disable no-unused-vars */
import type {SlackInterface, SlashCommandEndpoint} from '../lib/slack';
import {getMemberName, getMemberIcon} from '../lib/slackUtils';
impor... |
<gh_stars>10-100
import { MetricFindValue } from '@grafana/data';
import { getTemplateSrv } from '@grafana/runtime';
import { cloneDeep, uniqueId } from 'lodash';
import { getLogger } from 'loglevel';
import * as Monaco from 'monaco-editor/esm/vs/editor/editor.api';
import { MonacoLanguageDefinition } from '../../../co... |
<reponame>msnitish/posthog
import { kea } from 'kea'
import api from 'lib/api'
import { actionsLogic } from '~/toolbar/actions/actionsLogic'
import { elementToActionStep, actionStepToAntdForm, stepToDatabaseFormat } from '~/toolbar/utils'
import { toolbarLogic } from '~/toolbar/toolbarLogic'
import { toolbarButtonLogic... |
/**
* @license
* Copyright 2020 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 or ... |
import { EventBus } from 'ah-event-bus';
import { FSM } from './lib/FSM';
import { TunnelMsgEvt, ReconnectEvt, StageChangeEvt, TunnelErrorEvt } from './event';
import { BaseDTO, DTOPayload, parseDTO } from './dto';
import { Logger } from 'ah-logger';
export interface IWebsocket {
onopen: () => any;
onmessage: (ev:... |
import { ProjectService } from './../../projects/project.service';
import { CompanyService } from './../../companies/company.service';
import { Contact } from './../contact';
import { ContactService } from './../contact.service';
import { Component, OnInit, AfterViewChecked, ChangeDetectorRef } from '@angular/core';
im... |
<reponame>bluewings/dev-dad
/* eslint-disable no-bitwise */
const BASE = 0xac00;
const INITIALS = 'ㄱ,ㄲ,ㄴ,ㄷ,ㄸ,ㄹ,ㅁ,ㅂ,ㅃ,ㅅ,ㅆ,ㅇ,ㅈ,ㅉ,ㅊ,ㅋ,ㅌ,ㅍ,ㅎ'.split(',');
const MEDIALS = 'ㅏ,ㅐ,ㅑ,ㅒ,ㅓ,ㅔ,ㅕ,ㅖ,ㅗ,ㅘ,ㅙ,ㅚ,ㅛ,ㅜ,ㅝ,ㅞ,ㅟ,ㅠ,ㅡ,ㅢ,ㅣ'.split(',');
const FINALES = ',ㄱ,ㄲ,ㄳ,ㄴ,ㄵ,ㄶ,ㄷ,ㄹ,ㄺ,ㄻ,ㄼ,ㄽ,ㄾ,ㄿ,ㅀ,ㅁ,ㅂ,ㅄ,ㅅ,ㅆ,ㅇ,ㅈ,ㅊ,ㅋ,ㅌ,ㅍ,ㅎ'.split(',');
const STROK... |
import Head from "next/head";
import React, { useMemo } from "react";
import { Column, useFilters, useSortBy, useTable } from "react-table";
import { PLURALIZED_METADATA_LABEL } from "src/common/constants/metadata";
import { FEATURES } from "src/common/featureFlags/features";
import { useCategoryFilter } from "src/comm... |
<gh_stars>1-10
const cluster = require('cluster')
const path = require('path')
const express = require('express')
import { config } from 'dotenv'
import * as os from 'os'
import createError from 'http-errors'
import * as e from 'express'
import cookieParser from 'cookie-parser'
import compression from 'compression'
i... |
<filename>tools/public_api_guard/platform-browser/index.d.ts<gh_stars>0
export declare const BROWSER_APP_PROVIDERS: Array<any>;
export declare const BROWSER_PLATFORM_PROVIDERS: Array<any>;
export declare const BROWSER_PROVIDERS: any[];
export declare const BROWSER_SANITIZATION_PROVIDERS: Array<any>;
export declare ... |
import * as moment from "moment";
import { IFilterClause } from "../models/IFilterClause";
import { IFilterGroup } from "../models/IFilterGroup";
import { IFilterable } from "../models/IFilterable";
import { FilterOperator, LogicalOperator, ODataFilterOperator, FilterValue } from "../models/Types";
import { CountByBuil... |
interface IConfig {
itemClass: string
paneClass: string
slideSpeed: number
autoInterval: number
pointsClass?: string
}
declare global {
interface HTMLCollectionBase {
toArray: () => HTMLElement[]
}
}
if (!HTMLCollection.prototype.toArray) {
HTMLCollection.prototype.toArray = fu... |
import React, { useContext, useState } from 'react';
import uniqBy from 'ramda/src/uniqBy';
import prop from 'ramda/src/prop';
import { validateMnemonic } from 'bip39';
import { MOONPAY_ASSET_UUIDS, formatMnemonic } from '@utils';
import { FormData, WalletId, ExtendedAsset } from '@types';
import translate, { translat... |
/*********************************************************************
* Copyright (c) Intel Corporation 2019
* SPDX-License-Identifier: Apache-2.0
* Description: Constants
**********************************************************************/
import { CIRAConfig, NetworkConfig } from '../RCS.Config'
export class Pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.