text stringlengths 3.3k 33k |
|---|
<reponame>chareice/nocobase
import { Utils, Sequelize, Op } from 'sequelize';
import Model, { ModelCtor } from './model';
import _ from 'lodash';
import op from './op';
import Database from './database';
interface ToWhereContext {
model?: ModelCtor<Model> | Model | typeof Model;
associations?: any;
dialect?: str... |
import type { LayoutItem } from "@/external/vue-grid-layout/src/helpers/utils";
export interface Content {
id?: string;
type: string;
isTwitch?: Boolean;
video?: any;
currentTab?: number;
currentTime?: number;
}
const b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.";
... |
<gh_stars>0
import * as bcrypt from 'bcrypt';
import { Request, Response } from 'express';
import { getManager, getCustomRepository } from 'typeorm';
import * as _ from 'lodash';
import EmailVerification from '../../models/EmailVerification';
import User, { UserRole } from '../../models/User';
import PasswordReset fro... |
<filename>Angular/src/app/reducers/blogs/actions.ts
/* -------------------------------------------------------------------------- */
/* Product Name: BlogEngine */
/* Author: Mediasoftpro (<NAME>) */
/* Email: <... |
// [VexFlow](https://vexflow.com) - Copyright (c) <NAME> 2010.
// MIT License
import { Element } from './element';
import { Fraction } from './fraction';
import { Modifier } from './modifier';
import { ModifierContext } from './modifiercontext';
import { Stave } from './stave';
import { Tables } from './tables';
impor... |
/*
* This file is part of the drip-table project.
* @link : https://drip-table.jd.com/
* @author : <NAME> (<EMAIL>)
* @modifier : <NAME> (<EMAIL>)
* @copyright: Copyright (c) 2021 JD Network Technology Co., Ltd.
*/
import classnames from 'classnames';
import React from 'react';
import {
type DripTableDr... |
<reponame>bjlasc011/augur-node-master
import * as Knex from "knex";
import * as _ from "lodash";
import BigNumber from "bignumber.js";
import { sortDirection } from "../../utils/sort-direction";
import { safeBigNumberCompare } from "../../utils/safe-big-number-compare";
import { GenericCallback } from "../../types";
im... |
/**
* 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 by appli... |
import React from 'react';
import classnames from 'classnames';
import { findDOMNode } from 'react-dom';
import {
Icon,
Row,
Col,
Form,
Input,
Checkbox,
Select,
Button,
Popover,
Modal,
message,
} from 'antd';
import type { FormComponentProps } from 'antd/lib/form';
import type { WrappedFormUtils ... |
<reponame>guardian/dotcom-rendering
// ----- Imports ----- //
import 'regenerator-runtime/runtime.js';
import { AudioAtom } from '@guardian/atoms-rendering';
import type { ICommentResponse as CommentResponse } from '@guardian/bridget';
import { Topic } from '@guardian/bridget/Topic';
import { App } from '@guardian/dis... |
import { createTheme } from '@shopify/restyle'
import { TextProps } from 'react-native'
// TODO restructure this color palatte like material or ant
const palette = {
black: '#000000',
white: '#FFFFFF',
offwhite: '#F9FAFC',
blueGrayLight: '#CDD7E5',
blueGray: '#33414E',
blueBright: '#1D91F8',
blueLight:... |
import React, { FC, useCallback, useEffect, useMemo, useRef } from 'react';
import {
FeTableColumnOptions,
FeTableColumnProps,
FeTableInstance,
FeTableState,
FeUseTable,
TableProps,
} from './interfaces';
import {
useTable,
useFilters,
useSortBy,
UseFiltersState,
UseSortByState,
useExpanded,
C... |
import {ClientRequest, IncomingMessage} from "http";
import {parentPort, workerData} from "worker_threads";
import {BufferWriteStreamSync as BufferWriter} from 'stream-sync';
import AtomicsHttpError from './AtomicsHttpError';
import {adapterToAgent} from './AgentHandler';
import * as WorkerCodes from './WorkerCodes';
... |
import dayjs from 'dayjs'
import { useOrganization } from '@core/next/organization'
import { useApolloClient } from '@core/next/apollo'
import get from 'lodash/get'
import map from 'lodash/map'
import isEmpty from 'lodash/isEmpty'
import { SortMetersBy } from '@app/condo/schema'
import { useIntl } from '@core/next/intl... |
/**
* The TileMap state is responsible for the world map.
*/
// var dataURI = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==';
// // download a png...
// // var download: any = document.createElement('a');... |
import {
App,
FuzzyMatch,
FuzzySuggestModal,
Notice,
renderMatches,
SearchMatches,
SearchMatchPart,
} from 'obsidian';
import CitationPlugin from './main';
import { Entry } from './types';
// Stub some methods we know are there..
interface FuzzySuggestModalExt<T> extends FuzzySuggestModal<T> {
chooser:... |
<filename>front_end/panels/developer_resources/DeveloperResourcesListView.ts
// Copyright (c) 2020 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.
/* eslint-disable rulesdir/no_underscored_properties */
import * as Host... |
import * as H from 'history'
import { isEqual, pick, upperFirst } from 'lodash'
import AlertCircleIcon from 'mdi-react/AlertCircleIcon'
import * as React from 'react'
import { combineLatest, Observable, Subject, Subscription } from 'rxjs'
import { catchError, distinctUntilChanged, map, mapTo, startWith, switchMap, tap ... |
<filename>src/component/calendar/month-view.ts<gh_stars>10-100
import {
Component, Input, Output, EventEmitter, ChangeDetectorRef,
OnInit, ViewEncapsulation, ChangeDetectionStrategy
} from '@angular/core';
import { OnChange } from '../core/decorators';
import {
format, addWeeks, isSameDay, addDays, setDay,... |
<gh_stars>1-10
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------... |
import {
Many,
MaybeAccessor,
createCallbackStack,
forEachEntry,
access
} from "@solid-primitives/utils";
import { Accessor, createEffect, createSignal, onCleanup } from "solid-js";
import { Store } from "solid-js/store";
import { createEventListener } from "./eventListener";
import {
EventListenerMapDirect... |
import {useRouter} from "next/router";
import {GetServerSideProps, NextPage} from "next";
import Head from "next/head";
import type {Meme, User} from "@prisma/client";
import React, {useState} from "react";
import QRCode from "react-qr-code";
import prisma from "../../lib/prisma";
export const getServerSideProps: GetS... |
import * as React from 'react'
import * as Styles from '../../styles'
import Avatar, {AvatarSize} from '../avatar'
import Box from '../box'
import ClickableBox from '../clickable-box'
import Icon, {castPlatformStyles, IconType} from '../icon'
import Text, {TextType, StylesTextCrossPlatform} from '../text'
import Connec... |
import mdbid from "mdbid";
import { NotFoundError } from "@webiny/handler-graphql";
import { NotAuthorizedError } from "@webiny/api-security";
import Error from "@webiny/error";
import { File, FileManagerContext, FilePermission, FilesCRUD } from "../../types";
import defaults from "./utils/defaults";
import { decodeCur... |
<reponame>marcofranssen/opensource-portal
//
// Copyright (c) Microsoft.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
import express from 'express';
import asyncHandler from 'express-async-handler';
const router = express.Router();
import async from 'async';... |
import axios, { AxiosResponse } from 'axios'
import _ from 'lodash'
const xmlToJson = require('xml-js');
import NormedPublication from './normedPublication'
import NormedPerson from './normedPerson'
import HarvestSet from './HarvestSet'
import DataSource from './dataSource'
import { getDateString, getDateObject } from ... |
import {interpret} from 'xstate';
import waitForExpect from 'wait-for-expect';
import {
calculateChannelId,
createSignatureEntry,
Participant,
Outcome,
SignedState,
ChannelConstants,
DomainBudget,
simpleEthAllocation,
simpleEthGuarantee,
makeDestination,
BN,
makeAddress
} from '@statechannels/wa... |
<reponame>beckyeeky/cactbot<gh_stars>1-10
import { Party, PlayerChangedRet } from '../types/event';
import { Lang } from '../resources/languages';
import { Job } from '../types/job';
import { addOverlayListener } from './overlay_plugin_api';
import Util from './util';
// Will redirect calls from `onPlayerChang... |
<gh_stars>0
import { debounce, DebouncedFunc } from 'lodash'
console.log('Content script injected!');
console.log('Must reload extension for modifications to take effect.');
// Even at document_idle, lots of stuff can still be happening,
// even on a good MBP (latest intel chip)
// no other extensions, on keep.google... |
<gh_stars>100-1000
// Copyright 2015-2021 Swim.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... |
import { build } from '@dealmore/tf-next-runtime';
import tmp from 'tmp';
import {
glob,
Lambda,
FileFsRef,
streamToBuffer,
Prerender,
download,
} from '@vercel/build-utils';
import * as fs from 'fs-extra';
import * as path from 'path';
import { Route } from '@vercel/routing-utils';
import archiver from 'ar... |
import { ISession } from "@auth0/nextjs-auth0/dist/session/session";
import crypto from "crypto";
import * as A from "fp-ts/lib/Array";
import * as E from "fp-ts/lib/Either";
import { Either } from "fp-ts/lib/Either";
import { Eq } from "fp-ts/lib/Eq";
import { flow } from "fp-ts/lib/function";
import * as M from "fp-t... |
import React, { useState, useEffect } from 'react'
import { createPortal } from 'react-dom'
import { hot } from 'react-hot-loader/root'
import Skeleton from 'react-loading-skeleton'
import useBlessingExtra from '@/scripts/hooks/useBlessingExtra'
import useEmitMounted from '@/scripts/hooks/useEmitMounted'
import useMoun... |
import * as linter from "atom/linter"
import Convert from "../convert"
import {
Diagnostic,
DiagnosticSeverity,
DiagnosticRelatedInformation,
LanguageClientConnection,
PublishDiagnosticsParams,
} from "../languageclient"
/**
* Public: Listen to diagnostics messages from the language server and publish them ... |
import React, {
useState,
useEffect,
useContext,
useRef,
useCallback,
} from 'react';
import { Page, ButtonList } from './styles';
import { Redirect, useHistory, useParams } from 'react-router';
import Button from '../../components/UI/Button';
import api from '../../services/api';
import { AxiosError } from ... |
import React, { useContext, useEffect, useRef, useState } from 'react';
import { View, StatusBar, StyleSheet, Text, Keyboard, TouchableOpacity, SectionList } from 'react-native';
import { RouteProp, useNavigation, useRoute, useTheme } from '@react-navigation/native';
import { SafeBlueArea, BlueButton, BlueSpacing20, Bl... |
<reponame>asur4s/datav<filename>ui/src/core/library/utils/kbn.ts
import { has } from 'lodash';
import {
getValueFormat,
getValueFormatterIndex,
getValueFormats,
stringToJsRegex,
TimeRange,
deprecationWarning,
DecimalCount,
formattedValueToString,
} from 'src/packages/datav-core/src';
const kbn: any = {... |
import { assert, warn } from '@ember/debug';
import { isNone } from '@ember/utils';
import { DEBUG } from '@glimmer/env';
import type { IdentifierCache } from '../../identifiers/cache';
import type {
ExistingResourceObject,
NewResourceIdentifierObject,
ResourceIdentifierObject,
} from '../../ts-interfaces/ember-... |
/*
* Copyright 2020 The Kubernetes Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
import { useMemo, memo, useEffect, Fragment } from "react";
import { Template } from "./Template";
import type { KcProps } from "keycloakify";
import type { KcContextBase } from "keycloakify";
import { useKcMessage } from "keycloakify";
import { useCallbackFactory } from "powerhooks/useCallbackFactory";
import { useFor... |
<filename>server/src/utils/DumpPdfUtils.ts
/**
* Copyright 2020 AXA Group Operations S.A.
*
* 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... |
/*
* 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 expect from '@kbn/expect';
import { FtrProviderContext } from '../../.... |
'use strict';
import * as vscode from 'vscode';
import { Uri } from 'vscode';
import DoublyLinkedList from './DoublyLinkedList';
export type AppConfiguration = {
showMessages: boolean;
loopAround: boolean;
maxSize: number;
centerEditInEditor: boolean;
};
type EditLocation = {
file: Uri,
line: ... |
import * as childProcess from 'child_process';
import * as fs from 'fs';
import * as path from 'path';
import * as temp from 'temp';
import * as util from 'util';
interface KeyValue {
[key: string]: string | number;
}
interface ExtractTextOptions {
pdfToTextArgs?: KeyValue;
convertArgs?: KeyValue;
tesseractArgs?:... |
class Grad {
x = 0;
y = 0;
z = 0;
constructor(x: number, y: number, z: number) {
this.x = x;
this.y = y;
this.z = z;
}
dot2(x: number, y: number) {
return this.x * x + this.y * y;
}
dot3(x: number, y: number, z: number) {
return this.x * x + this.... |
import * as vscode from "vscode";
import { TextDecoder } from "util";
import * as path from "path";
import * as unified from "unified";
import * as markdown from "remark-parse";
import * as wikiLinkPlugin from "remark-wiki-link";
import * as frontmatter from "remark-frontmatter";
import * as md5 from "md5";
type Edge ... |
import * as helpers from '../helpers';
const Identity = artifacts.require("Identity");
const FeeFormula = artifacts.require("FeeFormula");
const DaoCreatorGoodDollar = artifacts.require("DaoCreatorGoodDollar");
const Avatar = artifacts.require("Avatar");
const GoodDollar = artifacts.require("GoodDollar");
const Contro... |
import {CwdFS, ZipOpenFS, NodeFS, NativePath, PortablePath, Filename} from '@yarnpkg/fslib';
import {xfs, npath, ppath, toFilename} from '@yarnpkg/fslib';
import {execute} from '@yarnpkg/shell';
import {PassThrough, Readable, Writable} ... |
<gh_stars>0
import { CrossChainHelper } from ".";
import {
elrondHelperFactory,
ElrondParams,
ElrondHelper,
} from "./helpers/elrond";
import { tronHelperFactory, TronParams, TronHelper } from "./helpers/tron";
import { web3HelperFactory, Web3Params, Web3Helper } from "./helpers/web3";
import { SupportedCurrency ... |
<gh_stars>0
import axios from 'axios'
const BN = require('bn.js')
const { SecureTrie: Trie } = require('merkle-patricia-tree')
const EthereumTx = require('ethereumjs-tx')
const ethUtils = require('ethereumjs-util')
const MerkleTree = require('./MerkleTree')
const EthereumBlock = require('ethereumjs-block/from-rpc')
con... |
<gh_stars>0
export interface Options {
/**
* When false, tag names will not be lowercased.
* @default true
*/
lowerCaseAttributeNames?: boolean;
/**
* When false, attribute names will not be lowercased.
* @default true
*/
lowerCaseTags?: boolean;
/**
* When `true`,... |
<reponame>xyla-io/longcat_ux
import { Component, OnInit, Input, OnDestroy, OnChanges, Output, EventEmitter, SimpleChanges, ComponentRef } from '@angular/core';
import { GridOptions, RowNode, GridApi, ColumnRowGroupChangedEvent, ColDef, RowGroupOpenedEvent, FilterChangedEvent } from 'ag-grid-community';
import { GridDef... |
/*---------------------------------------------------------------------------------------------
* BrightScript 2D API Emulator (https://github.com/lvcabral/brs-emu)
*
* Copyright (c) 2019 <NAME>. All Rights Reserved.
*
* Licensed under the MIT License. See LICENSE in the repository root for license information.... |
<filename>main.ts
import { Application, Router, RouterContext, send, Status } from "./deps.ts"
const wait = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
const app = new Application()
const router = new Router()
const DEBUG = false
const TEST_GUILD = false
const DISCORD_API = "https://discord.com... |
<gh_stars>0
/*
* Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { html, LitElement, PropertyValues } from 'lit';
import {
Animatable,
animate,
base... |
<reponame>TaranMayer/bigbro<filename>src/index.ts
import { Client, ColorResolvable, Constants, GuildMember, Invite, Message, MessageEmbed, TextChannel, Permissions, GuildAuditLogs, Collection } from 'discord.js';
import moment from 'moment';
import 'moment-timer';
import { Db, MongoClient } from 'mongodb';
import { ins... |
<gh_stars>1-10
/*
* @Author: jiangxiaowei
* @Date: 2020-05-30 15:05:13
* @Last Modified by: jiangxiaowei
* @Last Modified time: 2022-02-11 14:19:51
*/
import type { TreeItems, TreeItem } from '../tree/types'
import type { Map } from './type'
/**
* 生成fieldkey的正则
* 根据a.0.b 返回/a.(\d+|$container).b/正则
* @param arr... |
/* eslint-disable no-nested-ternary */
/* eslint-disable react/jsx-props-no-spreading */
import React, { useState, memo, useMemo } from 'react';
import {
Row, TableInstance, useAsyncDebounce,
useGlobalFilter, usePagination, useSortBy, useTable,
} from 'react-table';
export interface CellProps {
value: string;
... |
import express, { Request } from 'express'
import type { AddressInfo, Socket } from 'net'
import { DataContext, getCtx, globalPubSub, GraphQLRequestInfo } from '@packages/data-context'
import pDefer from 'p-defer'
import cors from 'cors'
import { SocketIONamespace, SocketIOServer } from '@packages/socket'
import type {... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import type { ResolvedConfig, PluginOption, TransformResult } from 'vite'
import type { InjectOptions, PageOption, Pages, UserOptions } from './typing'
import { render } from 'ejs'
import { cleanUrl, isDirEmpty, loadEnv } from './utils'
import { htmlFilter } from './utils/createHtmlFilter'
import { mergeConfig, normali... |
import {isKeyHotkey} from 'is-hotkey'
import PropTypes from 'prop-types'
import React from 'react'
import schema from 'part:@sanity/base/schema?'
import Preview from 'part:@sanity/base/preview?'
import {concat, of, Subject, timer} from 'rxjs'
import {
distinctUntilChanged,
catchError,
map,
mergeMapTo,
switchM... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... |
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
import { RaidbossData } from '../../../../../types/data';
import { TriggerSet } from '../../../../../types/trigger';
// TODO: Lyssa ... |
<filename>packages/testing/src/browser/outputPeek/test-output-peek.ts
import { Injectable, Optional, Autowired, INJECTOR_TOKEN, Injector } from '@opensumi/di';
import { EDITOR_COMMANDS, IContextKeyService, Schemas } from '@opensumi/ide-core-browser';
import { CommandService, Disposable, IDisposable, MutableDisposable, ... |
// 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 in ... |
<gh_stars>0
import { AfterViewInit, Component, EventEmitter, Input, OnChanges, OnDestroy, Output, SimpleChanges } from '@angular/core';
import { ApollonEditor, ApollonMode, Assessment, Selection, UMLDiagramType, UMLElementType, UMLModel, UMLRelationshipType } from '@ls1intum/apollon';
import { Feedback, FeedbackType } ... |
<reponame>iamxukai/core
import { Injectable, Autowired } from '@opensumi/di';
import { ClientAppContribution, Domain } from '@opensumi/ide-core-browser';
import { PreferenceSchema, PreferenceSchemaProvider, PreferenceService } from '@opensumi/ide-core-browser';
import {
debounce,
IReporterService,
StaleLRUMap,
... |
import {Action, Middleware} from "redux";
import {Effect, ForkEffect} from "./effects";
export {Effect};
/**
* Annotate return type of generators with `SagaIterator` to get strict
* type-checking of yielded effects.
*/
export type SagaIterator = IterableIterator<Effect>;
type Saga0 = () => Iterator<any>;
type Sag... |
import { thousandSeparate } from 'component/numberformatter';
import { RefreshButton } from 'component/refreshbutton';
import {
DangerLabel,
DefaultLabel,
Glyphicon,
SuccessLabel,
WarningLabel,
tableClassStripedHover,
} from 'f61ui/component/bootstrap';
import { bytesToHumanReadable } from 'f61ui/component/bytesf... |
<reponame>shubanker/CodingProblems
import { runTests } from "../../test";
/**
Zuma Game
Think about Zuma Game. You have a row of balls on the table, colored red(R), yellow(Y), blue(B), green(G), and white(W). You also have several balls in your hand.
Each time, you may choose a ball in your hand, and insert it into ... |
import G6, { GraphOptions } from '@antv/g6';
import { ReactElement, ReactNode } from 'react';
import ForceLayout from './layout/force/ForceLayout';
import Graphin from './Graphin';
import { LayoutOption } from './controller/layout/defaultLayouts';
import { G } from '@antv/g6/types/g';
/** export types */
export type ... |
<reponame>AlbinMamuti/LoLBot
import DiscordJs from "discord.js";
import {IGuildSub, SubModel} from "../models/subscription";
import { CurrentGameInfo } from "../riotApi/ApiInterfaces/ApiInterfaces";
import { getLiveMatchEmbed } from "../riotApi/liveMatch";
import colors from 'colors';
import {
getLiveGame,
getPlaye... |
<reponame>typeofweb/server
import {
ApiItem,
ApiModel,
ApiParameterListMixin,
ApiDocumentedItem,
ApiPackage,
ApiPropertyItem,
Excerpt,
ApiMethod,
ApiReturnTypeMixin,
ApiReleaseTagMixin,
ReleaseTag,
ApiDeclaredItem,
} from '@microsoft/api-extractor-model';
import * as h from './html';
import { to... |
<reponame>roynalnaruto/optics-monorepo
import { ethers, optics } from 'hardhat';
import { expect } from 'chai';
import { getTestDeploy } from './testChain';
import { OpticsState, Updater } from '../lib';
import { Signer } from '../lib/types';
import { Deploy } from '../../optics-deploy/src/chain';
import * as deploys f... |
<gh_stars>0
// Copyright (c) 2017-2018 <NAME> Software Co., Ltd.
import Skeleton from '../../3d/assets/skeleton';
import { Filter, PixelFormat, WrapMode } from '../../assets/asset-enum';
import { Texture2D } from '../../assets/texture-2d';
import { mat4, vec3, vec4 } from '../../core/vmath';
import { GFXBuffer } from ... |
<filename>packages/paperclip/src/vanilla-compiler2.ts
import {
PCModule,
PCComponent,
PCVariable,
PCQuery,
PCVisibleNode,
PCStyleMixin,
PCContentNode,
PCBaseElementChild,
PCSourceTagNames,
isVisibleNode,
PCNode,
PCBaseElement,
extendsComponent,
PCComponentInstanceElement,
PCTextNode,
PCT... |
<filename>src/helpers/universe-basic/helpers/universe-basic-process-helpers.ts<gh_stars>1-10
import Mongoose from "mongoose";
import fs from "fs";
import path from "path";
import { floKaptureService } from "../../../base-repositories/flokapture-db-service";
import { ProjectMaster, UniVerseDataDictionary, BaseCommandRef... |
/*
* Copyright 2020, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
import React, { useState } from "react";
import {
SelectOptionObject,
DataToolbarChipGroup,
DataToolbarChip
} from "@patternfly/react-core";
import { ISortBy } from "@p... |
import * as React from 'react';
import Box from '@mui/material/Box';
import Collapse from '@mui/material/Collapse';
import IconButton from '@mui/material/IconButton';
import Table from '@mui/material/Table';
import TableBody from '@mui/material/TableBody';
import TableCell from '@mui/material/TableCell';
import TableCo... |
import * as vscode from 'vscode';
import * as Net from 'net';
import * as os from 'os';
import * as nls from 'vscode-nls';
const localize = nls.config({ messageFormat: nls.MessageFormat.file })();
import { pickProcess } from './process/acadPicker';
import { calculateABSPathForDAP } from './platform';
import { existsS... |
<reponame>Caleydo/confusionflow-ui<filename>src/timeline/Timeline.ts
/**
* Created by Martin on 04.01.2018.
*/
import {MalevoDataset, IMalevoEpochInfo} from '../MalevoDataset';
import * as d3 from 'd3';
import {AppConstants} from '../AppConstants';
import {extractEpochId} from '../utils';
import {dataStoreRuns, Data... |
import { EventEmitter2 } from 'eventemitter2';
import { isEqual } from 'lodash-es';
import {
diff_match_patch,
DIFF_DELETE,
patch_obj,
DIFF_EQUAL,
DIFF_INSERT,
} from 'diff-match-patch';
import {
getOldIndex,
isCursorOp,
isTransientAttribute,
isTransientElement,
reduceOperations,
} from './utils';
import { es... |
<filename>packages/rrweb/src/plugins/console/record/error-stack-parser.ts
// tslint:disable
/**
* Class StackFrame is a fork of https://github.com/stacktracejs/stackframe/blob/master/stackframe.js
* I fork it because:
* 1. There are some build issues when importing this package.
* 2. Rewrites into typescript give u... |
<reponame>JesterOrNot/vscode-python
// tslint:disable:no-any no-require-imports no-function-expression no-invalid-this
import { ProgressLocation, ProgressOptions, Uri, window } from 'vscode';
import '../../common/extensions';
import { isTestExecution } from '../constants';
import { traceError, traceVerbose } from '../... |
import React, { PureComponent, CSSProperties } from 'react';
import classNames from 'classnames';
import _ from 'lodash';
import moment from 'moment';
import { isNewProblem, formatLastChange } from '../../utils';
import { ProblemsPanelOptions, ZBXTrigger, ZBXTag } from '../../types';
import { AckProblemData, Modal } fr... |
<gh_stars>10-100
import {
Repository,
FindConditions,
SelectQueryBuilder,
ObjectLiteral,
FindOperator,
Equal,
MoreThan,
MoreThanOrEqual,
In,
IsNull,
LessThan,
LessThanOrEqual,
Not,
ILike,
Brackets,
} from 'typeorm'
import { PaginateQuery } from './decorator'
i... |
<reponame>isotoma/sops-secretsmanager-cdk<gh_stars>0
import * as aws from 'aws-sdk';
import * as path from 'path';
import * as childProcess from 'child_process';
import { Writable } from 'stream';
import { TextDecoder } from 'util';
const log = (message: string, extra: Record<string, unknown> = {}): void => {
cons... |
/*
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "lic... |
const React = require("react");
import { Button, Divider, TextField, Typography } from "@material-ui/core";
import { Icon } from "semantic-ui-react";
import { connect } from "react-redux";
import { makeStyles } from "@material-ui/core/styles";
import Paper from "@material-ui/core/Paper";
import Table from "@material-ui... |
import { SupportedWebsites } from '../enums/supported-websites';
import { ParseType } from '../enums/parse-type.enum';
import * as BBCodeParser from 'epochtalk-bbcode-parser';
interface ParseObject {
original: string;
parsed: string;
type: ParseType;
website: string;
}
/**
* Parser used to parsing BBCode to ... |
import * as React from 'react';
import {
findNodeHandle as findNodeHandleRN,
Platform,
Touchable,
UIManager,
DeviceEventEmitter,
EmitterSubscription,
} from 'react-native';
// @ts-ignore - it isn't typed by TS & don't have definitelyTyped types
import deepEqual from 'lodash/isEqual';
import RNGestureHandler... |
import * as React from "react";
import styled from "styled-components/macro";
import { IconNames } from "@blueprintjs/icons";
import {
Menu,
MenuItem,
Popover,
PopoverInteractionKind,
Button,
Intent,
Tooltip,
Position
} from "@blueprintjs/core";
import { useMutation } from "react-apollo";
import Executi... |
<filename>src/vs/workbench/services/themes/browser/productIconThemeData.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license inf... |
/**
* @license
* 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 ... |
/*
Copyright 2021 Merck & Co., Inc. Kenilworth, NJ, USA.
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 A... |
<reponame>hjyuan/reapoc
import $ from 'cafy';
import { ID } from '../../../../../misc/cafy-id';
import { publishMainStream, publishGroupMessagingStream } from '../../../../../services/stream';
import { publishMessagingStream, publishMessagingIndexStream } from '../../../../../services/stream';
import pushSw from '../..... |
// - Import react components
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
import Divider from '@material-ui/core/Divider';
import { withStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import Typogra... |
/*
* 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 {
SavedObjectsBaseOptions,
SavedObjectsBulkCreateObject,
SavedOb... |
/* eslint-disable react/no-multi-comp */
import {
EditorSelection,
HotkeyOptions,
PortableTextEditor,
PortableTextFeature,
Type,
} from '@sanity/portable-text-editor'
import {FOCUS_TERMINATOR} from '@sanity/util/paths'
import {get} from 'lodash'
import LinkIcon from 'part:@sanity/base/link-icon'
import Forma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.