text stringlengths 3.08k 15.5k |
|---|
<filename>factory-ai-vision/EdgeSolution/modules/WebModule/ui/src/store/videoAnnoSlice.ts
import {
createSlice,
createEntityAdapter,
createSelector,
Reducer,
PayloadAction,
Update,
nanoid,
} from '@reduxjs/toolkit';
import * as R from 'ramda';
import { State } from 'RootStateType';
import { BoxLabel, Pos... |
import {
IconCommonAllQuestion,
IconCommonHome,
IconCommonQuestion,
IconCommonSearch,
IconCommonSetting,
IconCommonStar,
IconCommonThoughts
} from '@app/assets/icons'
import { MainSideBarItem } from '@app/components/MainSideBarItem'
import { useConnectorsGetProfile } from '@app/hooks/api'
import { useLogg... |
<reponame>ukrocks007/retraced<gh_stars>10-100
import "source-map-support/register";
import * as fs from "fs";
import * as path from "path";
import * as readline from "readline";
import * as request from "request";
import * as unzipper from "unzipper";
import * as _ from "lodash";
import * as moment from "moment";
impor... |
<filename>elasticUI/src/app/query/query.component.ts
import {Component, OnInit, ViewChild} from '@angular/core';
import { ActivatedRoute, Router} from '@angular/router';
import { HttpClient} from '@angular/common/http';
import { DomSanitizer} from '@angular/platform-browser';
import {MatPaginator, MatSnackBar, MatTable... |
import {uncurry2} from './core'
import {Comparator} from './type'
import {isEmpty, isFunction, isNot, isString} from './predicate'
import {includedInBy} from './comparator'
import {$reduce0} from './array'
// ------------ @author <NAME> -----------------
// Contributed by <NAME>
export function duplicates<A>(s: Arr... |
<filename>createPages.ts<gh_stars>0
import * as config from './src/utils/siteConfig';
import * as path from 'path';
import { GatsbyNode } from 'gatsby';
export const capitalize = (str) => {
return str.charAt(0).toUpperCase() + str.slice(1);
};
interface Slug {
slug: string;
}
interface AllContentfulPost {
allCont... |
import {
CallDirection,
CallEvent,
Contact,
ContactTemplate,
ContactUpdate,
PhoneNumberLabel,
ServerError,
} from "@clinq/bridge";
import { Client } from "pipedrive";
import { promisify } from "util";
import { formatDate, formatDuration, formatTime } from "./date-utils";
import { parsePhoneNumber } from "./parse... |
<gh_stars>100-1000
/**
* @license
* Copyright 2016 Google 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 b... |
const cabiProperties = {
name: "Capital Bikeshare",
vehicleType: "bikes",
pointLayer: "cabi-stations-points",
polygonFillOutlineColor: "#FFF",
colorStop: {
firstColor: "#ffd200",
secondColor: "#ffba00",
thirdColor: "#ffa200",
fourthColor: "#ff8900",
fifthColor: "#fc6f00",
sixthColor: "... |
import React, { useState, useContext, useRef, useEffect } from 'react';
import { Source, Layer } from 'react-map-gl';
import { FeatureCollection, Geometry, Feature, GeoJsonProperties, Point, Position } from 'geojson';
import { SymbolLayout, SymbolPaint, Expression, StyleFunction } from 'mapbox-gl';
import { GlobalConte... |
import axios from "axios";
import type { Param0, ReturnType } from "tsafe";
import { createKeycloakOidcClient } from "./keycloakOidcClient";
import { S3Client } from "../ports/S3Client";
import { getNewlyRequestedOrCachedTokenFactory } from "core/tools/getNewlyRequestedOrCachedToken";
import { id } from "tsafe/id";
imp... |
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import expect = require('expect.js');
import {
uuid
} from '@jupyterlab/coreutils';
import {
KernelMessage, Session
} from '@jupyterlab/services';
import {
Signal
} from '@phosphor/signaling';
import {
Pa... |
import React from 'react'
import * as Kb from '../../../../common-adapters'
import * as Styles from '../../../../styles'
import {AllowedColors} from '../../../../common-adapters/text'
import * as RPCChatTypes from '../../../../constants/types/rpc-chat-gen'
type Props = {
backgroundColor?: string
participantNeedToR... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import {Button, Dropdown, Menu, Radio, Typography} from 'antd';
import {
AppleOutlined,... |
/**
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* @format
*/
import * as FileRepository from '../FileRepository';
import * as Serialized from '../Serialized';
import * as ora from 'ora';
import * as path from 'path';
import * as yargs from 'yargs';
import FileSystemRepository from... |
import { MutableRefObject, useEffect, useRef } from 'react';
import { AnimationObject } from '../animation';
import { processColor } from '../Colors';
import {
AnimatedStyle,
NativeEvent,
NestedObjectValues,
StyleProps,
WorkletFunction,
} from '../commonTypes';
import { makeRemote } from '../core';
import { i... |
import Close from '@material-ui/icons/Close';
import * as classNames from 'classnames';
import * as React from 'react';
import Error from 'src/assets/icons/alert.svg';
import Check from 'src/assets/icons/check.svg';
import Flag from 'src/assets/icons/flag.svg';
import Warning from 'src/assets/icons/warning.svg';
import... |
import * as React from 'react';
import { BoxConfig, BoxType, PushboxConfig } from 'src/utilities/frame.util';
import { Vector2 } from '@lawsumisu/common-utilities';
import { FrameDataState, getAnchorPosition, getSpriteConfig, getSpriteSource } from 'src/redux/frameData';
import { HboxPreview, PushboxPreview, SpriteRend... |
<filename>src/pure/parsers/babel_parser.ts
//@ts-nocheck
/* eslint-disable no-underscore-dangle */
/* eslint-disable no-param-reassign */
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the MIT license
*
* @flow
*/
import { readFileSync } from "fs";
im... |
/**
* Copyright (c) 2021 OpenLens Authors
*
* 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 rights to
* use, copy, modify, merge, p... |
import {Component, Input} from '@angular/core';
import * as React from 'react';
import {SidebarContent} from 'app/cohort-review/sidebar-content/sidebar-content.component';
import {ClrIcon} from 'app/components/icons';
import colors, {colorWithWhiteness} from 'app/styles/colors';
import {reactStyles, ReactWrapperBase} ... |
<filename>src/app/util/grid.component.ts<gh_stars>0
import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild} from '@angular/core';
import {AbstractEntity} from '../entity/abstract-entity';
import {Subject} from 'rxjs';
import {DataTableDirective} from 'angular-datatables';
import {Co... |
<gh_stars>0
import * as bufferutils from './bufferutils';
import * as crypto from './crypto';
import { Output } from './transaction';
import secp256k1 from '@vulpemventures/secp256k1-zkp';
const secp256k1Promise = secp256k1();
async function nonceHash(pubkey: Buffer, privkey: Buffer): Promise<Buffer> {
const { ecd... |
import * as React from 'react';
import { GetGuid } from './plot-state.utils';
import Plotly, { Plots } from 'plotly.js';
import {
IPlotWrapperProps,
EnhancedPlotElement,
} from './plot-wrapper.contracts';
import {
PLOT_EVENT_NAMES as eventNames,
PLOT_UPDATE_EVENTS as updateEvents,
} from './plot-wrapper.constan... |
<filename>components/cdk/overlay/position/flexible-position-strategy.ts
import { CSSProperties, ComponentPublicInstance, Ref, isRef, ref, onMounted, onUpdated, onUnmounted, watch, nextTick, getCurrentInstance, readonly, onBeforeUnmount } from 'vue';
import { ConnectionPosition, ConnectionPositionPair, HorizontalConnect... |
<gh_stars>1-10
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*-------------------------------------------------... |
// Styles
import './VImg.sass'
// Directives
import intersect from '../../directives/intersect'
// Types
import { VNode } from 'vue'
import { PropValidator } from 'vue/types/options'
// Components
import VResponsive from '../VResponsive'
// Mixins
import Themeable from '../../mixins/themeable'
// Utils
import mixi... |
<gh_stars>1-10
import {namedConnect} from '../../util/container'
import {memoize} from '../../util/memoize'
import * as Types from '../../constants/types/chat2'
import * as Constants from '../../constants/chat2'
import * as RouteTreeGen from '../../actions/route-tree-gen'
import {isMobile} from '../../constants/platfor... |
<filename>libraries/utils/src/spe.ts<gh_stars>10-100
import {Options, Coordinates, Vectors, DistanceMetric} from './type-declarations';
import {calculateEuclideanDistance, calcDistanceMatrix, fillRandomMatrix, vectorAdd, randomInt} from './operations';
/**
* Implements stochastic proximity embedding.
*
* @export
*... |
import { captureException, ReportDialogOptions, Scope, showReportDialog, withScope } from '@sentry/browser';
import { logger } from '@sentry/utils';
import hoistNonReactStatics from 'hoist-non-react-statics';
import * as React from 'react';
export function isAtLeastReact17(version: string): boolean {
const major = v... |
/**
* @license
* Copyright 2018-2021 Streamlit Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<reponame>tomgreenwood1/aws-cdk
import * as cxapi from '@aws-cdk/cx-api';
import * as AWS from 'aws-sdk';
import { Account, ISDK, SDK, SdkProvider, ToolkitInfo } from '../../lib';
/**
* An SDK that allows replacing (some of) the clients
*
* Its the responsibility of the consumer to replace all calls that
* actuall... |
<filename>modules/runners/lambdas/runners/src/scale-runners/scale-down.ts<gh_stars>1-10
import { AppAuth } from '@octokit/auth-app/dist-types/types';
import { Octokit } from '@octokit/rest';
import moment from 'moment';
import yn from 'yn';
import { listRunners, RunnerInfo, terminateRunner } from './runners';
import { ... |
<filename>instant.ts
'use strict'
import * as commandLineArgs from 'command-line-args'
import * as glob from 'glob'
import * as fs from 'fs'
import * as child from 'child_process'
import * as util from 'util'
import * as path from 'path'
const exec = util.promisify(child.exec)
interface PackageInfo {
metadata: {
... |
import * as React from 'react';
import { GoogleMap, LoadScript, Marker } from '@react-google-maps/api';
import { DefaultProps } from '../../common-types';
import { Box } from '../Box';
export interface UIMarker {
id: string | number;
lat: number;
lng: number;
title?: string;
icon?: string;
click?: () => void;
}
... |
<reponame>idlist/koishi
import { User, Database, Context, Command, Argv, TableType, Tables, FieldCollector, defineEnumProperty } from 'koishi-core'
import {} from 'koishi-plugin-mysql'
import * as Koishi from 'koishi-core'
import Achievement from './achv'
function createCollector<T extends TableType>(key: T): FieldCol... |
import * as NexusLogger from '@nexus/logger'
import * as NexusSchema from '@nexus/schema'
import chalk from 'chalk'
import * as GraphQL from 'graphql'
import * as HTTP from 'http'
import { logPrettyError } from '../../lib/errors'
import { createNexusSchemaStateful, NexusSchemaStatefulBuilders } from '../../lib/nexus-sc... |
import { Octokit } from '@octokit/core'
import { readdirSync, mkdirSync, copyFileSync, unlinkSync, rmdirSync, existsSync } from 'fs'
import {join} from 'path'
import {spawn} from 'child_process'
import {CLIT} from '@ddu6/cli-tools'
import {config, Lesson, lessons, saveLessons} from './init'
const clit=new CLIT(__dirnam... |
import { useRouter } from "next/router";
import React, { useContext, useState, useEffect, Fragment } from "react";
import { FoobarContext, initialFoobarData } from "components/foobar";
import { ShowCompletedBadges } from "components/foobar/badges";
import { KonamiWrapper } from "components/foobar/konami";
import { Ter... |
<gh_stars>0
// std
import { strictEqual } from 'assert';
import { existsSync, unlinkSync, writeFileSync } from 'fs';
// FoalTS
import { Env } from './env';
function removeFile(path: string) {
if (existsSync(path)) {
unlinkSync(path);
}
}
const dotEnvContent = `HELLO=world
FOO_BAR=hello
FOO_BAR_WITH_EQUAL=hel... |
import * as React from 'react';
import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import AddIcon from '@mui/icons-material/Add';
import EditIcon from '@mui/icons-material/Edit';
import DeleteIcon from '@mui/icons-material/DeleteOutlined';
import SaveIcon from '@mui/icons-material/Save';
im... |
import req from "../../ApplicationRequest";
/**
* @param {serverData} serverData The data of the server
*
*/
type versionType = "latest" | string;
interface serverData {
name: string,
description: string,
nodeId: number,
userId: number,
defaultAllocation: number,
version: versionType,
eggId: number,
startu... |
import * as React from 'react';
import { useControlledState } from '../../hooks/useControlledState';
import { useWindowEvent } from '../../hooks/useWindowEvent';
import { ISliderProps } from './Slider.types';
import { mergeSlotProps } from '@fluentui/react-theming';
import cx from 'classnames';
function _getDragValue... |
import { Text, Instance, Instances, Box } from "@react-three/drei"
import { Canvas, Props, ThreeEvent, useFrame, useThree } from "@react-three/fiber"
import { Suspense, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"
import * as THREE from 'three'
interface PropsType {
title: string,
coun... |
import { NextPage } from "next";
import {
Navbar,
NavbarProps,
TextInput,
Button,
Text,
Group,
Paper,
createStyles,
MantineTheme,
} from "@mantine/core";
import { useState, useEffect, FormEvent } from "react";
import { supabase } from "../../../utils/db/supabaseClient";
import ConnectionUI from "./Con... |
<reponame>sinclairzx81/threadbox<filename>src/thread/handle.ts
/*--------------------------------------------------------------------------
ThreadBox - Recursive Multi-Threaded Worker Processes in NodeJS
The MIT License (MIT)
Copyright (c) 2020 <NAME> (sinclair) <<EMAIL>>
Permission is hereby granted, free of charg... |
export { aa } from "./aa"
export { aai } from "./aai"
export { advisor } from "./advisor"
export { af } from "./af"
export { afc } from "./afc"
export { ame } from "./ame"
export { ams } from "./ams"
export { antiddos } from "./antiddos"
export { apcas } from "./apcas"
export { ape } from "./ape"
export { api } from ".... |
import { useEffect } from 'react'
import { darkTheme, lightTheme } from '../lib/constants';
const sun = <svg stroke="currentColor" fill="currentColor" strokeWidth="0" viewBox="0 0 512 512" className="hidden dark:block text-2xl cursor-pointer " height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M256 1... |
<reponame>joeyfigaro/offix<filename>packages/offix/cache/src/createMutationOptions.ts
import { MutationOptions, MutationUpdaterFn, OperationVariables } from "apollo-client";
import { CacheOperation } from "./api/CacheOperation";
import { createOptimisticResponse } from "./createOptimisticResponse";
import { CacheUpdate... |
<reponame>cloud-hybrid/cloud-factory<gh_stars>0
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
/**
* AWS Image Builder
*/
export interface DataAwsImagebuilderImageRecipeConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Regist... |
<reponame>tpoikela/battles
import fs = require('fs');
import * as RG from '../client/src/battles';
import {default as RotRNG} from '../lib/rot-js/rng';
import {UtilsSim} from './utils-sim';
import {PlayerDriver} from '../tests/helpers/player-driver';
import {Dice} from '../client/src/dice';
type CmdInput = import('.... |
<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... |
/**
* @module Controllers
*/ /** */
import * as _ from 'lodash';
import { loogger } from '../services/logger';
import { City, ICity } from '../models/city';
import { ICityDetails } from '../models/interfaces/ICityDetails';
import { MappedErrors } from '../utils/mappedErrors';
import { TravelBrainError } from '../uti... |
// Copyright 2020-2021 the .NET Foundation
// Licensed under the MIT License.
/** It took me SO LONG to get something to work reliably here. I wanted to
* connect to kernels using KernelManagers or SessionManagers, but I could never
* get reliable comms from a kernel to the frontend. I can't find a way to
* discove... |
<filename>modules/tinymce/src/core/main/ts/fmt/FormatChanged.ts
import { Arr, Cell, Obj, Optional, Type } from '@ephox/katamari';
import Editor from '../api/Editor';
import { FormatEvent } from '../api/EventTypes';
import { EditorEvent } from '../api/util/EventDispatcher';
import * as NodeType from '../dom/NodeType';
... |
<reponame>aleen42/vexflow
// [VexFlow](http://vexflow.com) - Copyright (c) <NAME> 2010.
//
// Author <NAME> 2011
import { Flow } from './flow';
import { LayoutMetrics, StaveModifier } from './stavemodifier';
import { Stave } from './stave';
export enum BarlineType {
SINGLE = 1,
DOUBLE = 2,
END = 3,
REPEAT_BEG... |
import { Checkbox, Row, Col, Radio, Tag, Typography } from "antd";
import React, { useState, useEffect, FC } from "react";
import { CaretDownOutlined, CaretRightOutlined } from "@ant-design/icons";
import { RadioChangeEvent } from "antd/es/radio";
import Trigger from "rc-trigger";
import { css } from "@emotion/react";
... |
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions... |
<reponame>m0t0r/mat-datetimepicker
import {
Inject,
Injectable,
Optional
} from "@angular/core";
import {
DateAdapter,
MAT_DATE_LOCALE
} from "@angular/material/core";
import { DatetimeAdapter } from "./datetime-adapter";
/** The default hour names to use if Intl API is not available. */
const DEFAULT_HOUR_N... |
<reponame>revell29/electron-print-service
/* eslint-disable @typescript-eslint/no-use-before-define */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable import/no-cycle */
/* eslint global-require: off, no-console: off, promise/always-return: off */
/**
* This module executes inside of electro... |
<reponame>lostpebble/pebblebed
/// <reference types="hapi__joi" />
import * as Joi from "@hapi/joi";
export declare type SchemaDefinitionProperties<T> = {
[P in keyof T]: SchemaPropertyDefinition;
};
export declare type SchemaDefinitionOptions = {
__excludeFromIndexes?: string[];
};
export declare type SchemaDe... |
<filename>tests/common/testUtils.ts
/// <reference path="../../built/pxtlib.d.ts"/>
/// <reference path="../../built/pxtcompiler.d.ts"/>
/// <reference path="../../built/pxtpy.d.ts"/>
import * as fs from 'fs';
import * as path from 'path';
import { TestHost } from "./testHost";
export function getFilesByExt(dir: str... |
<gh_stars>1-10
import P = require('parsimmon');
import { Parser, Mark, Result, Index } from "parsimmon";
// -- -- -- -- -- -- -- -- -- -- -- -- --
class Foo {
bar: Bar;
}
class Bar {
foo: Foo;
}
// -- -- -- -- -- -- -- -- -- -- -- -- --
let str: string;
let strArr: string[];
let bool: boo... |
/*
* Copyright 2015-2016 Imply Data, Inc.
* Copyright 2017-2018 Allegro.pl
*
* 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
*
* Unl... |
/*
* This file is necessary to declare global functions that might also be included by `--lib dom`.
* Due to a TypeScript bug, these cannot be placed inside a `declare global` block in index.d.ts.
* https://github.com/Microsoft/TypeScript/issues/16430
*/
//
// Timer Functions
//
declare function clearInterval(hand... |
<filename>src/datasource.ts
///<reference path="../node_modules/grafana-sdk-mocks/app/headers/common.d.ts" />
import _ from 'lodash';
import SqlSeries from './sql_series';
import SqlQuery from './sql_query';
import ResponseParser from './response_parser';
import AdhocCtrl from './adhoc';
import Scanner from './scanne... |
import { Uint32toBinary } from "./Packet";
import bb from "../bb";
import Network from "../Service/Network";
import { isWXGame, isTTGame } from "../Utils";
const isWechat = isWXGame() || isTTGame();
export enum WsPackType {
JSON,
PROTOBUF,
}
export interface ProtobufConf {
idToProto: any;
idToN... |
import React, { ReactEventHandler, FunctionComponent } from "react";
import Editor from "./Editor";
import editIcon from "assets/edit.svg";
import uuidv4 from "uuid/v4";
import { ListMultiItemEditor } from "./multiItem";
import * as ValidationManager from "../../Dataset/Add/ValidationManager";
const useValidation = Val... |
<filename>packages/components/src/styling/src/theming/orbitTheme.ts
import { ConditionalKeys, FixedLengthArray } from "type-fest";
import { CssColor } from "../styled-system";
export interface ColorSchemeSection<C, L, D> {
common?: Partial<C>;
light: Partial<L>;
dark: Partial<D>;
}
export type SpaceValue... |
/**
* 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 or agreed to... |
import React, { FunctionComponent } from 'react';
import moment from 'moment';
import Etikett from 'nav-frontend-etiketter';
import { hentSisteKandidatutfall, Kandidatutfall, Utfallsendring } from '../../../domene/Kandidat';
import {
ForespørselOmDelingAvCv,
TilstandPåForespørsel,
} from '../../../knappe-rad/fo... |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import {
Button,
ButtonType,
ButtonVariant,
Card,
CardBody,
CardFooter,
CardTitle,
Skeleton,
Title,
} from '@patternfly/react-core';
import { getQuery, logicalAndPrefix, orgUnitIdKey, parseQuery, Query } from 'api/queries/query';
import { OcpReport } from 'api/reports/ocpReports';
import { ReportPaths... |
import { readStream, dateToUnixTimeSeconds } from '../../../src/server/utils'
import { Server } from 'http'
import * as crypto from 'crypto'
import * as express from 'express'
import { DriverModel, DriverStatics, PerformDeleteArgs, PerformRenameArgs, PerformStatArgs, StatResult, PerformReadArgs, ReadResult, PerformLi... |
import * as React from 'react';
import {Block} from 'baseui/block';
import {KIND} from 'baseui/button';
import {format} from 'date-fns';
import Cookies from 'js-cookie';
import {
LargeWidth,
LabeledContent,
ToggleUserText,
SingleUserText,
Searchbox,
Rating,
GetValue,
ElasticTagging,
... |
import React from 'react'
import { Layout } from '../components/layout'
import useSession from '../components/useSession'
import TextField from '@mui/material/TextField'
import Accordion from '@mui/material/Accordion'
import AccordionSummary from '@mui/material/AccordionSummary'
import AccordionDetails from '@mui/mater... |
<filename>static/shared/outline/tree.test.ts
/**
* @license
* Copyright 2021 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
import { parse } from '../../markdown';
import { TreeNavController } from './tree';
const obse... |
<filename>src/modules/handlers/api.ts
import * as Discord from "discord.js";
import constants from "../constants";
import { CryptoWatchMessage } from "../../models/CryptoWatchMessage";
import cron from "node-cron";
import rp from "request-promise";
/**
* Handler for messages. Used on Discord.Client "message" events... |
import PersonnelRequest from '../../../../../../models/PersonnelRequest';
import {
ModalSideSheet,
Tabs,
Tab,
Accordion,
AccordionItem,
ErrorMessage,
Button,
CloseCircleIcon,
styling,
CheckCircleIcon,
Spinner,
} from '@equinor/fusion-components';
import RequestDetails from '... |
import React, { useState } from 'react'
import _ from 'lodash'
import i18next from 'i18next'
import { AnyAction } from 'typescript-fsa'
import { Col, Row } from 'reactstrap'
import {
ChangeSet,
Column,
EditingState,
EditingColumnExtension,
Row as TableRow,
Table as TableBase,
DataTypeProvider,
DataTypeP... |
import { PartialTheme } from '@fluentui-react-native/theme-types';
import { getCurrentBrandAliasTokens } from '@fluentui-react-native/win32-theme';
export type OfficeBrand = 'Default' | 'Office' | 'Word' | 'Excel' | 'Powerpoint' | 'Outlook';
type BrandRampKey =
| 'App1'
| 'App2'
| 'App3'
| 'App4'
| 'App5'
... |
import { SFPowerkit } from "../sfpowerkit";
const fs = require("fs");
const path = require("path");
const _ = require("lodash");
const os = require("os");
export const PLUGIN_CACHE_FOLDER = "sfpowerkit";
export default class FileUtils {
/**
* Delete file or directories recursively from the project
* @param d... |
<reponame>cjrosa23/gosling.js
// HiGlass Specification Should be consistent to the following scheme:
// https://github.com/higlass/higlass/blob/develop/app/schema.json (2ced037)
import { Assembly, FilterTransform } from './gosling.schema';
// The json schema is converted to TypeScript codes using:
// https://github.c... |
import { Plugin, PluginEvent, PluginMeta, RetryError } from '@posthog/plugin-scaffold'
import { Hub, MetricMathOperations, PluginConfig, PluginConfigVMInternalResponse, PluginTaskType } from '../../../types'
import { status } from '../../../utils/status'
import { determineNodeEnv, stringClamp } from '../../../utils/ut... |
import React, { useEffect, useState, useMemo } from 'react'
import { useIntl } from 'react-intl'
import { View, Alert } from 'react-native'
import { ProfileStats, StatsData } from './profileStats'
import { MainButton } from '../../..'
import { addFavorite, checkFavorite, deleteFavorite } from '../../../../providers/ece... |
<reponame>gemtwink/dpo-cook-cli<filename>source/APIClient.ts
/**
* 3D Foundation Project
* Copyright 2019 Smithsonian Institution
*
* 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
*
* h... |
import React, { useEffect, useState } from "react"
import { Intl } from "../../components/Intl"
import { indexCopy } from "../../copy/en/index"
import { createInternational } from "../../lib/createInternational"
import { useIntl } from "react-intl"
import { isTouchDevice } from "../../lib/isTouchDevice"
import { Edito... |
<reponame>unicef/etools-partnership-management
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-input/paper-input';
import '@polymer/paper-checkbox/paper-checkbox';
import '@polymer/iron-icons/communication-icons';
import '@unicef-polymer/etools-dialog/etools-dialog';
import '../../../../.... |
<reponame>alibaba/GaiaMeasure
/*
* Copyright (c) 2022, Alibaba Group Holding Limited;
*
* 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... |
<reponame>dipeshrai123/re-motion<gh_stars>1-10
import * as React from 'react';
import { SpringAnimation } from '../animation/SpringAnimation';
import { TimingAnimation } from '../animation/TimingAnimation';
import { interpolateNumbers } from '../interpolation/Interpolation';
import { tags } from './Tags';
import {
U... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { assert, deprecate } from '@ember/debug';
import { PROPERTY_BASED_DESCRIPTORS } from '@ember/deprecated-features';
import EmberError from '@ember/error';
import { DEBUG } from '@glimmer/env';
import { descriptorFor, isDescriptor, Meta, meta, peekMeta } from 'ember-meta';
import { HAS_NATIVE_PROXY, toString } fr... |
// based on schema type we render different components
import { gridSize } from '@uidu/theme';
import React, { PureComponent } from 'react';
import NavigationGroup from './Navigation/NavigationGroup';
import NavigationHeader from './Navigation/NavigationHeader';
import NavigationHeaderSkeletonComponent from './Navigati... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { OpenFarm } from "./openfarm";
import { DropDownItem } from "../ui/index";
import { CowardlyDictionary } from "../util";
import {
TaggedFarmEvent,
TaggedSequence,
TaggedRegimen,
TaggedGenericPointer,
TaggedPlantPointer,
TaggedCrop,
} from "../resources/tagged_resources";
import { PlantPointer } from... |
import {
TargetField,
CSVField,
} from "./../../contract/kanban/KanbanTokenVerifyResponse";
import { parse } from "json2csv";
import {
JiraCardResponse,
CycleTimeInfo,
} from "../../contract/kanban/KanbanStoryPointResponse";
import CsvForBoardConfig from "../../fixture/csvForBoardConfig.json";
import CsvForPipe... |
<reponame>wenzdey/NativeScript
declare class OSLogEntry extends NSObject implements NSSecureCoding {
static alloc(): OSLogEntry; // inherited from NSObject
static new(): OSLogEntry; // inherited from NSObject
readonly composedMessage: string;
readonly date: Date;
readonly storeCategory: OSLogEntryStoreCatego... |
<gh_stars>1-10
import { inspect } from "util";
import { Vote, Tally, STVRound, STVOptions, STVResults } from "./model";
// As taken from https://en.wikipedia.org/wiki/Single_transferable_vote#Counting_the_votes
// votes needed to win (when fractional votes are allowed) = (valid votes cast) / (seats to fill + 1)
/**
... |
<reponame>centfinance/ethers.js
"use strict";
import fs from "fs";
import { resolve } from "path";
import ts from "typescript";
import { colorify } from "../log";
const Words = fs.readFileSync("/usr/share/dict/words").toString().split("\n").reduce((accum, word) => {
accum[word.toLowerCase()] = true;
return ... |
/**
* Copyright (c) 2020-present, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.