blob_id large_stringlengths 40 40 | language large_stringclasses 1
value | repo_name large_stringlengths 5 119 | path large_stringlengths 4 271 | score float64 2.52 4.84 | int_score int64 3 5 | text stringlengths 26 4.09M |
|---|---|---|---|---|---|---|
5c1962b51ebcc0db83d1928b9ce26d1d6bb0ba9b | TypeScript | colelawrence/spreadsheet | /src/table.ts | 2.6875 | 3 | import cloneDeepWith from "lodash/cloneDeepWith"
import {
BehaviorSubject,
combineLatest,
Observable,
of,
throwError,
} from "rxjs"
import {
debounceTime,
distinctUntilChanged,
map,
mergeMap,
} from "rxjs/operators"
import { axisNames } from "./axisNames"
import { createExprEvaluatorFn } from "./evalu... |
adbb1b20f28fc38dc585017131703740134bdc96 | TypeScript | rafadantas2001/PW3-Exercicio-2 | /exercicio2.ts | 2.953125 | 3 | let nota : number = 87;
if (nota == 0) {
console.log("E")
} else if (nota > 1 && nota <= 35 ){
console.log("D")
}
else if (nota > 36 && nota < 60 ){
console.log("C")
}
else if (nota > 61 && nota < 85 ){
console.log("B")
}
else {
console.log("A")
} |
55163bf93b8a5439d84e0a572529e7134d2e4ee1 | TypeScript | kacchan6/grid-layout | /src/util/util.ts | 3.1875 | 3 | export const deepmerge = function (obj: any) {
return JSON.parse(JSON.stringify(obj));
}
/**
* parse space between items
* @param {Number} space space size
* @param {String} type start/end
* @param {Number} num array size
*/
export function parseAlignSpace(space: number, type: string, num: number) {
const marg... |
e32ac1c96bc8e2bb8f4d7065bcb8bf48112c20dc | TypeScript | davyzhang/creatorexDTS | /ccreator_patch2.1.3.d.ts | 2.828125 | 3 |
/**
* 2019/12/03
* author: ihowe
* email : ihowe@outlook.com
*
*/
declare module cc {
/**
* Material
*/
export interface Material extends Asset {
/**
* set Property value to Material
* @param name
* @param value
*/
setProperty: (name: str... |
31e3f8322800d38aad789564aa92aa27980eb6b0 | TypeScript | dyt1992/wechat-template | /typings/@vant/weapp/lib/picker.d.ts | 2.65625 | 3 | import { ComponentType } from 'react'
export type ColumnType1 = { values?: string[]; defaultIndex?: number } & Record<string, any>
export type ColumnType2 = { text?: string; disabled?: boolean } & Record<string, any>
export type PickerConfirm = {
index: number
value: ColumnType1 | ColumnType2 | string
}
export t... |
f67cb338844245d0c2b3c3e61cdcdabe82a39aac | TypeScript | mecenasy/App | /src/Todo/Reducers/reducers.ts | 2.96875 | 3 | import * as C from './constants';
export const todosListReducer = (state = C.todosListInitialState, action: C.TodosAction): C.TodosListState => {
const { type, id, completed } = action;
switch (type) {
case C.ActionType.AddTodoSuccess: {
const todos = state.todos;
const newState = {
... |
f483e200c5af4706a428febaedbcaa09f1e7c755 | TypeScript | wongjiahau/TCLCPhase2-LabellingApp-Frontend | /ts/actions/tests/focusAt.test.ts | 2.625 | 3 | import { expect } from "chai";
import { FocusAt } from "../focusAt";
import {getMockState} from "./getMockState";
describe("focusAt", () => {
it("should set focus on the targeted postViewModel", () => {
const targetIndex = 2;
const state = getMockState();
expect(state.postViewModels[targetI... |
1b9946d9639df15781854762de9b24ca9e275780 | TypeScript | GCTC-NTGC/TalentCloud | /resources/assets/js/store/Department/deptSelector.ts | 2.578125 | 3 | import { createSelector } from "reselect";
import { RootState } from "../store";
import { Department } from "../../models/types";
import { hasKey } from "../../helpers/queries";
export const getDeptState = (state: RootState): { [id: number]: Department } =>
state.department.byId;
export const getDepartments = creat... |
cdd662337bee773675b725901a0fc14b01d8eda8 | TypeScript | fovea-org/fovea | /packages/dom/src/fovea-dom/fovea-dom.ts | 2.546875 | 3 | import {IFoveaDOM} from "./i-fovea-dom";
import {DIContainer} from "@wessberg/di";
import {IFoveaDOMResult} from "./i-fovea-dom-result";
import {IFoveaDOMHost} from "./i-fovea-dom-host";
import {FoveaDOMOptions} from "./i-fovea-dom-options";
/**
* A FoveaDOM class meant for public consumption. This shadows the actual... |
4ba3143e44b7309e5c362588939cc8419cbc9177 | TypeScript | woutervh-/stuffit | /src/producers/value.ts | 2.515625 | 3 | import { Store } from '../store';
export class ValueStore<T> extends Store<T> {
protected preStart() {
//
}
protected start() {
//
}
protected stop() {
//
}
}
export const fromValue = <T>(initialState: T): ValueStore<T> => {
return new ValueStore(initialState);
};... |
260eefeb04e990428508223d3cee71ccf40b45eb | TypeScript | EmaSuriano/exchange-app | /src/utils/format.ts | 2.5625 | 3 | import {
CURRENCY_TO_TEXT,
DECIMAL_AMOUNT_SUMMARY,
DECIMAL_AMOUNT_EXCHANGE,
} from './constant';
export const formatPocket = ({ currency, amount }: ExchangeTransaction) =>
`${CURRENCY_TO_TEXT[currency]}${amount.toFixed(DECIMAL_AMOUNT_SUMMARY)}`;
export const formatExchange = ({ currency, amount }: ExchangeTra... |
95b64509518d7c3f67bfe3cf851a3f9f34246f06 | TypeScript | tony-tsx/react-native-grid | /dist/utils/Style/index.d.ts | 2.71875 | 3 | import React from 'react';
import { ViewStyle, TextStyle, ImageStyle, Animated } from 'react-native';
declare type DeepMerge<A, B> = {
[K in keyof A]: K extends keyof B ? B[K] extends object ? A[K] extends object ? DeepMerge<A[K], B[K]> : B[K] | A[K] : B[K] | A[K] : A[K];
} & {
[K in keyof B]: K extends keyof A... |
0a238ce688678585032cf17e6852f9e0cbad1a96 | TypeScript | npruehs/mission-runner-angular | /src/app/localization.service.ts | 2.53125 | 3 | import { Injectable, LOCALE_ID, Inject } from '@angular/core';
import { Observable } from 'rxjs';
import { HttpService } from './http.service';
import { NetworkResponse } from './network-response';
import { LoggerService, LogLevel } from './logger.service';
@Injectable()
export class LocalizationService {
private ... |
13efb045a6e9f9e05cfc7472f21840986e5cd0e7 | TypeScript | reyronald/life-event-settings | /src/lifeEventSettingsReducer.ts | 2.734375 | 3 | import { LifeEventRulesReadonlyState } from './types'
import { exhaustiveCheck } from './commonReducer'
import {
FetchLifeEventRulesAction,
FetchEmployerMatrixAction,
UpdateEmployerMatrixAction,
FetchLatestEmployerMatrixLogAction,
} from './lifeEventSettingsActions'
export const initialLifeEventSettin... |
e66bdcec4769ef0e1a92b925bd7e9d0ed5f8e90b | TypeScript | ZephirDev/VisualScripting | /visual-scripting-common/types/message.interface.ts | 2.515625 | 3 | export interface MessageInterface<ParametersType = void> {
id: string,
method: string,
parameters?: ParametersType
} |
2b80b812ace94a8d7514c79453bca4b2765e9049 | TypeScript | Wodnyan/Watering | /backend/src/services/hash.service.ts | 2.75 | 3 | import { Injectable } from "@nestjs/common";
import { hash, compare } from "bcrypt";
@Injectable()
export class HashService {
hash(plainText: string, salt: number = 10): Promise<string> {
return new Promise((resolve, reject) => {
hash(plainText, salt, (err, hash) => {
if (err) r... |
df49c59795caf328bc98d51b2d7daee5772c9016 | TypeScript | stoplightio/path | /src/parseBase.ts | 3.09375 | 3 | export function parseBase(base: string) {
let split = base.lastIndexOf('.');
// ignore edge cases
if (base === '..') split = -1;
if (base === '.') split = -1;
let name = base;
let ext = '';
// we check > 0 instead of > -1 so that filenames starting with dots aren't
// interpreted as file extensions.
... |
cdf03bbfc1bd76bb8643f5bd89509a6e98287ad2 | TypeScript | harrysolovay/blappy | /src/@types/storage.ts | 2.609375 | 3 | export interface ICard {
id: string
url?: string
notes?: string
}
export interface ILane {
id: string
title?: string
cards: ICard[]
}
export interface IBoard {
id: string
title?: string
description?: string
lanes?: ILane[]
edited: Date
}
export interface IBoards extends Array<IBoard> {}
|
5d9cde9d19ccc79df7f0ce753d31e5ad1ae7075b | TypeScript | rallu/kyllikki | /packages/core/src/kyllikkiApi.ts | 2.5625 | 3 | import { APIGatewayEvent } from "aws-lambda";
import * as Joi from "joi";
import { ApiResponse } from "./response";
import { KyllikkiRootObject, KyllikkiRootObjectName } from "./runner";
export interface ApiValidations {
queryStringParameters?: Joi.ObjectSchema;
body?: Joi.ObjectSchema;
headers?: Joi.Obj... |
a9b4390bcff9927c6a1bdfd7ec5f701677a3787a | TypeScript | groupby/elements-logic | /packages/@groupby/elements-core/src/core.ts | 2.796875 | 3 | import { Plugin, PluginDirectory, PluginRegistry } from './plugin';
import {
calculateMissingDependencies,
initPlugins,
readyPlugins,
registerPlugins,
unregisterPlugins,
} from './utils/core';
import {
DependencyGraph,
createDependencyGraph,
mergeDependencyGraphs,
removeFromDependencyGraph,
} from './... |
4618cf98c2db19d46f680c95275aafa427f9cbe3 | TypeScript | norbornen/yet-another-yandex-translate | /src/tools/json.ts | 3.09375 | 3 | function deserialize(raw: any[] = []) {
let dest: any;
raw.forEach((nodes: any[] = []) => {
let acc = dest || (dest = nodes.length === 1 ? nodes.pop() : Array.isArray(nodes[0]) ? [] : {});
while (nodes.length > 0) {
const node = nodes.shift();
const key = Array.isArray(no... |
717734d7420ef66306e83357f9994ec756970089 | TypeScript | devoNOTbevo/little-state-machine | /src/logic/saveSetting.ts | 2.5625 | 3 | import { STATE_MACHINE_DEV_TOOL_CONFIG } from '../constants';
export default function saveSetting(setting: {
[key: string]: boolean | string | number;
}) {
try {
const config = window.localStorage.getItem(STATE_MACHINE_DEV_TOOL_CONFIG);
window.localStorage.setItem(
STATE_MACHINE_DEV_TOOL_CONFIG,
... |
a93007e74d32b0c83b732980ae36ed071ec1e9ed | TypeScript | haruwo/swagger-jsonnet-ts | /src/openapi/definitions/item.ts | 2.78125 | 3 | import * as pagination from "./internal/pagination";
import * as types from "./internal/types";
export interface Item {
/**
* ID
*
* @example: "B00H6V3BWA"
*/
id: string;
/**
* Name
*
* @example: "aRobot"
*/
name: string;
/**
* Description
*
... |
16c8d6b1c3e1bc47eb2322bc50bf290f4bc54a56 | TypeScript | dlhandsome/interceptor | /src/index.ts | 3 | 3 | export interface IConfigOption {
config: (o: any) => any
[propName: string]: (o: any) => any
}
export type ProviderType = {
[propName: string]: IConfigOption
}
export type ApiType = {
[P in keyof ProviderType]: Function
}
export class Interceptor {
private _interceptor: object = {}
constructor () {}
... |
bf889b5bf2f374dab47f6b2d5f16103b5be69f9c | TypeScript | okaryo/ReduxToDoListY | /src/reducers/todoReducers.ts | 3.109375 | 3 | import {
ADD_TODO,
TOGGLE_TODO
} from '../actions/actionTypes'
interface Action {
type: string
payload: string
}
const initialState = [
{
id: 'study_id',
name: 'study',
completed: false
},
{
id: 'parchase_id',
name: 'buy food',
completed: false
}
]
const todos = (state = initi... |
07532fca19920947e36c830abf2352186091a59c | TypeScript | Ian-Polito/openrct2-benchwarmer | /src/ui.ts | 3.015625 | 3 | const LABEL_X = 10;
const INPUT_X = 70;
let y = 0;
export type ChangeEventHandler<Value> = (value: Value) => void;
export type ClickEventHandler = () => void;
export type Choice = {
name: string;
identifier: string;
};
export function Document(...widgets: Widget[]): Widget[] {
y = 0;
return widgets;
}
ex... |
49d3f96fe6fb7fc964986ca4ebcb70c826db0f30 | TypeScript | blindmonkey/where-reader | /tests/readers/Reader.then.test.ts | 2.84375 | 3 | import { describe, it } from 'mocha';
import { expect } from 'chai';
import { Read } from '../../src/read/Read';
import { ReadResult } from '../../src/read/ReadResult';
describe('Reader.then', function() {
const reader = Read.char('x').then(Read.char('y'));
it('is labeled correctly', function() {
expect(reade... |
90c558033593f7de5fb12bf34cacb5e9d998df7f | TypeScript | VitalVercleyen/WebAppsIVProject | /angular.src/src/app/services/validate.service.ts | 2.578125 | 3 | import { Injectable, OnInit } from "@angular/core";
import { AuthService } from "../services/auth.service";
@Injectable()
export class ValidateService {
users: [String];
constructor(private authService: AuthService) {}
validateRegister(user) {
if (
user.name == undefined ||
user.username == und... |
1924567d71db8a3937c624009cdb2f48994fd40e | TypeScript | slaviqueue/online-ide | /online-ide-frontend/src/hooks/useHotkey.ts | 2.96875 | 3 | import { useEffect, useRef } from 'react'
type Callback = () => void
type Keydowns = Record<string, string>
function useHotkey (hotkey: string, callback: Callback) {
const keydowns = useRef<Keydowns>({})
const keys = hotkey.split('+')
function handleKeydown (e: KeyboardEvent) {
const key = e.key.toLowerCa... |
a6e5db7432e5520fdb4afad4da8f89a4f90408bc | TypeScript | mars1385/e-com-type | /client/src/redux/user/userTypes.ts | 2.75 | 3 | // auth
export const LOGIN_START = 'LOGIN_START';
export const REGISTER_START = 'REGISTER_START';
export const GET_USER_INFO = 'GET_USER_INFO';
export const LOGOUT_USER = 'LOGOUT_USER';
export const AUTH_SUCCESS = 'AUTH_SUCCESS';
export const AUTH_FAILED = 'AUTH_FAILED';
//
export type error = {
message: string;
... |
5408b1f59a7e7a6b7fe2ae7c482ca746869ddee6 | TypeScript | baronTommy/customizable-gitmoji-cli | /src/commands/list/index.ts | 2.59375 | 3 | /* eslint-disable no-console */
import chalk from 'chalk'
import { GitmojiConfig } from 'customizable-gitmoji-config-parser'
export default async function(config: GitmojiConfig) {
const list = config.list()
const longestName = list.reduce((c, { name }) => Math.max(c, name.length), 0)
const longestDescription = ... |
5b0083d335e6741df81716207671446a8450a062 | TypeScript | bryanmikaelian/segment-analytics | /test/pageDefaults.test.ts | 2.640625 | 3 | import { pageDefaults } from '../lib/page';
import * as assert from 'proclaim';
import * as sinon from 'sinon';
const el = document.createElement('link');
el.setAttribute('rel', 'canonical');
describe('pageDefaults', () => {
before(() => {
el.setAttribute('href', '');
sinon.stub(document, 'querySelector').r... |
21019115c3a67be5b63b0aaf960d86238f084206 | TypeScript | phinocio/NHLDiscordBot | /src/Bot.ts | 2.609375 | 3 | import Discord from 'discord.js';
import { auth } from './Config/Config';
import MessageHandler from './Handlers/MessageHandler';
// bot
class Bot
{
private TOKEN: string = '';
private client: Discord.Client;
private msgHandler: MessageHandler | undefined;
public constructor()
{
this.TOKEN = auth.token;
thi... |
46029d7346abdb4f9889f80cdfed83fd8d527827 | TypeScript | vmarchaud/servicectl | /src/backends/systemd/utils/common.ts | 2.515625 | 3 |
import * as path from 'path'
import {
stat,
watch,
FSWatcher,
constants,
accessSync,
mkdirSync,
promises
} from 'fs'
import { PermissionsTemplateOptions } from '../types'
import { ServiceMode } from '../../../types/service'
import { ExecServiceCreator } from '../creators/exec'
import { ClusterServiceCrea... |
0289d668eb5f5c58ebaa7c506650d84bb17e7042 | TypeScript | goldvideo/demuxer | /src/codec/adts.ts | 2.65625 | 3 | /**
* @file: adts.js, created at Monday, 23rd December 2019 3:47:23 pm
* @copyright Copyright (c) 2020
* @author gem <gems.xu@gmail.com>
*/
/**
* ADTS codec
* Wiki Refer: https://wiki.multimedia.cx/index.php?title=ADTS
*/
import EventEmitter from '../util/event-emitter';
import { AACFrame, AAC_SAMPLING_FREQUENC... |
578ec91f319e70fd0c57f7c227cfd75e599b46ed | TypeScript | MixelTe/mad-maze-game | /ts/events-scripts.ts | 2.96875 | 3 | import { TextGameEngine } from "./TextGameEngine";
export const EventsScripts = new Map<string, (tge: TextGameEngine) => Promise<void>>();
EventsScripts.set("potions", potions);
async function potions(tge: TextGameEngine)
{
const ingredients = ["Сахар", "Кроличья лапка", "Огненный порошок", "Сверкающий арбуз", "Пауч... |
b597d9ab7e13ee496be005290a615673bb7178b6 | TypeScript | cgomezsantos/easy | /packages/easy-test/test/matchers/toBeQueriedWith.test.ts | 2.640625 | 3 | import { mock, toBeQueriedWith } from '../../src';
import Mock = jest.Mock;
describe('toBeQueriedWith', () => {
const select = 'SELECT * FROM Table;';
const un: Mock = undefined as unknown as Mock;
const empty = mock.return();
const query = { mock: { calls: [[{ toString: () => select }]] } } as unknown as Mock... |
6fbcaec9ea7ec0f2d6679cf37fe0fa7a2b41675d | TypeScript | joshuasearle/power-up-pong | /src/types.ts | 2.890625 | 3 | import { Vector } from './vector-maths';
export type GameState = Readonly<{
leftPaddle: Paddle;
rightPaddle: Paddle;
ball: Ball;
score: Score;
breakTicks: number;
gameOver: boolean;
gameStarted: boolean;
powerUpPresent: PowerUp;
powerUpThisRound: boolean;
}>;
export type Paddle = Readonly<{
id: st... |
ec64df1c45ce6080f05908f14de1267feaa26a91 | TypeScript | christooma/extensions | /lib/shared-sku-app/src/AppConfig/fields.ts | 2.9375 | 3 | import get from 'lodash.get';
interface FieldItems {
type: string;
}
interface Field {
id: string;
name: string;
type: string;
items?: FieldItems;
}
export interface ContentType {
sys: { id: string };
name: string;
fields?: Field[];
}
export type CompatibleFields = Record<string, Field[]>;
export ty... |
6d18a41039591ee7a1d0b6d487be744d2795bea2 | TypeScript | hattrickltd/social-login | /src/utils/facebook-provider.ts | 2.578125 | 3 | import { ISocialUser } from "./interfaces";
declare const FB: any;
export class FacebookProvider {
static _loadScriptPromise: Promise<void>;
constructor() {}
loadScript(
clientId: string,
locale: string = navigator.language,
version: string = "v6.0"
): Promise<void> {
if (FacebookProvider._... |
847e64c723364ad8b2c3470ee2dd8a64dcdc88c2 | TypeScript | zawhtetaungMM/the-restaurant | /restaurant-api/src/employee/model/employee.entity.ts | 2.5625 | 3 | import { PrimaryGeneratedColumn, Entity, Column, CreateDateColumn, UpdateDateColumn } from "typeorm"
import { Transform } from 'class-transformer'
import moment = require("moment")
import { IdEnable } from "src/common/id.enable"
@Entity()
export class Employee implements IdEnable{
@PrimaryGeneratedColumn()
... |
7316df1eefddda2d23c58a733ba1ab296104d693 | TypeScript | sutils/crawler | /src/util.ts | 2.65625 | 3 | import * as http from 'http';
export function sleep(delay: number): Promise<void> {
return new Promise<void>((resolve) => {
setTimeout(() => resolve(), delay);
});
}
// export async function doGet(uri: string): Promise<any> {
// return new Promise((resolve, reject) => {
// let req = http.g... |
43530223810bfb39fcb572bdbde97d41ac4dcc1e | TypeScript | praveennagaraj97/nest-vue | /server/model/todo.model.ts | 2.53125 | 3 | import { Column, CreatedAt, DataType, DeletedAt, Model, Table, UpdatedAt } from 'sequelize-typescript';
@Table({ tableName: 'todo', paranoid: true })
export default class Todo extends Model<Todo> {
@Column({
autoIncrement: true,
primaryKey: true
})
id: number;
@Column({ allowNull: false })
... |
d87ae097f5d924e92f7eb9b8779100e59f23f160 | TypeScript | yanlele/d3demo4react | /src/utils/axios.ts | 2.515625 | 3 | import axios from 'axios';
export default function (options: object) {
const DefaultParams = {
url: '',
method: 'get',
credentials: 'include',
};
const $options = Object.assign({}, DefaultParams, options);
return axios($options).then((response) => {
const { headers, data } = response;
const... |
d2be62fc5a8204e1dce022312f682d41bafc0b8c | TypeScript | sienijoonas/sveltevisa | /src/questions/questions.ts | 2.6875 | 3 | import type { Question } from "../types"
import { Languages, Guitars } from "../types"
export let languages:Question = {
questions: [
{
title: 'Can you guess the language?',
explanation: 'The right answer is Thai!',
image: 'thai.png',
answer: Languages.th,
},
{
title: 'Tämä ... |
72e43de1324a791f8d2c485219deba2883b76c3d | TypeScript | frasolution/SemesterOrganizerBackEnd | /src/teams/dto/create-team.dto.ts | 2.609375 | 3 | import {
IsString,
MinLength,
MaxLength,
IsArray,
ArrayMinSize,
ArrayMaxSize,
ArrayNotEmpty,
IsNotEmpty,
} from 'class-validator';
export class CreateTeamDto {
@IsNotEmpty()
@IsString()
@MinLength(1)
@MaxLength(30)
teamName: string;
@IsNotEmpty()
@IsArray()
@ArrayNotEmpty()
@ArrayMin... |
232e985d71481c9794a37305d0dbe1b357212bb9 | TypeScript | nestdanchia/ngrxRedux | /src/app/views/operations/operations.component.ts | 2.515625 | 3 | import { Component, OnInit } from "@angular/core";
import { Operation } from "./operation.class";
import { OperationsService } from "./operations.service";
//import { StoreService } from "../../lib/store.service";
import { Store } from "@ngrx/store";
// este componente actua como controlador
// para guardar o modificar... |
40d1e4a3dac82f7a7d36fff1a698961a55e8d925 | TypeScript | 0zcl/utils-library | /src/function/equal.ts | 3.421875 | 3 | /**
* ```
* equal(0.1-0.2, -0.1) // true
* ```
* @description 判断left 与 right 是否相等
* @param left
* @param right
* @returns
*/
function equal(left: number, right: number): boolean {
return Math.abs(left - right) < Number.EPSILON
}
export default equal
|
f2667d78d759df42569f7045c17052fa29bb162b | TypeScript | anujith-99/Assignment-Orders | /src/services/Product.service.ts | 2.84375 | 3 | import { Product } from "../models/Product.model";
export class ProductService {
private products: Array<Product> = [];
constructor() {
this.products.push(new Product(1, "TV", 20000));
this.products.push(new Product(2, "Laptop", 30000));
this.products.push(new Product(3, "AC", 17000));
this.produc... |
34938c687b61f4bfc8e6e173835697c57c836c96 | TypeScript | DevExpress/testcafe-hammerhead | /src/request-pipeline/request-hooks/response-mock/index.ts | 2.53125 | 3 | import RequestOptions from '../../request-options';
import generateUniqueId from '../../../utils/generate-unique-id';
import validateResponseMockParameters from './validate-parameters';
import { ResponseMockBodyInit } from './response-mock-init';
import lowerCaseHeaderNames from './lowercase-header-names';
import isPre... |
848a2a90bf74cbbef177f5f5c30dc595b38d0fac | TypeScript | salomaosnff/struct-buffers | /src/types/var/array.ts | 3.046875 | 3 | import { VarType } from "./var";
import { array8, array16, array32 } from "../array";
import { Type } from "../type";
import { Class } from "../../util";
export class ArrayType<T> extends VarType<T[]> {
types: Type<T[]>[];
constructor(type: Type<T> | Class<T>) {
super([type]);
this.types = [array8(type),... |
569bf79b0360f38feed751b096bd0ad46d63cb71 | TypeScript | DWORDsrl/freeants-js | /src/notifiers.ts | 2.890625 | 3 |
// INFO: Useful for future abstration of generic notifier.
// At this moment is coincident with SignalR.ConnectionState
export const enum ConnectionState {
Connecting = 0,
Connected = 1,
Reconnecting = 2,
Disconnected = 4
}
// INFO: Useful for future abstration of generic notifier.
// At ... |
efc211b01e44dbf063049d24078b2dfe8161a072 | TypeScript | corysmc/ionic-pwa-stencil-redux | /src/store/reducers/user.ts | 2.765625 | 3 | import { ActionTypes, TypeKeys } from "./../actions/index";
const getInitialState = (): UserState => {
return {
name: "StencilJS"
};
};
const user = (state = getInitialState(), action: ActionTypes): UserState => {
switch (action.type) {
case TypeKeys.SET_USER_NAME: {
return { ...state, name: actio... |
753a3aab7fd2f6aa623c0db5c71bce9e548385c1 | TypeScript | DeysonOrtiz/resoc | /packages/core/src/template.test.ts | 2.65625 | 3 | import { assignResolutionToParamerters, demoParamValues, HtmlTemplate, paramLabel, ParamType, paramValueToString, parseTemplateManifestParams, renderRawTemplate, stringToParamValue, validateParamValue } from './template'
test('renderRawTemplate', () => {
expect(renderRawTemplate(
'# {{> content }} *',{
... |
6871311e6685123e8b6ec683b30ac853cf2d0531 | TypeScript | devcoder111/Angular-firebase | /firebase/functions/src/https/onRequest/orderPublicPageRouter.ts | 2.546875 | 3 | import * as express from 'express';
import { getFirestore } from '../../+utils/firestore';
import { getStorageBucket } from '../../+utils/storageBucket';
import { OrderPublicPageHTMLFile } from '../../../../../shared/types/file.interface';
import { CollectionNames } from '../../../../../shared/values/collectionNames.ma... |
0dab4ffed4d784b748154ae65281b9684f6f6511 | TypeScript | cdiddy77/risk1 | /web/gamestate.ts | 2.828125 | 3 |
interface Game {
name: string;
status: 'not-started' | 'waiting-setup' | 'started' | 'complete';
textStatus: string;
maxPlayers: number;
players: Player[];
regions: RegionTeamOwnershipMap;
deck: Card[];
currentPlayerIndex: number;
currentPhase: number;
unitPool: number;
clas... |
038c2f37daa5169f538a67ecf006d9f4b5a3d7eb | TypeScript | mbrowne/typescript-dci | /tests/cases/compiler/importDecl.ts | 3.03125 | 3 | // @declaration: true
export declare module "m4" {
export class d {
}
var x: d;
export function foo(): d;
}
import m4 = require("m4"); // Emit used
export var x4 = m4.x;
export var d4 = m4.d;
export var f4 = m4.foo();
export module m1 {
export var x2 = m4.x;
export var d2 = m4.d... |
c9d3f7352550a3f6c8b2ca81f7b3e96dd68902a1 | TypeScript | Sushant385/RightStrokeFSEngGrads | /Assignment/TypeScript_Assignments/2.Caluclate_s_area.ts | 3.9375 | 4 | export class Triangle
{
triangle_area=(h:number,b:number)=>
{
return 0.5*h*b;
}
}
export class Square
{
private a:number;
constructor(a:number)
{
this.a=a;
}
square_area=()=>
{
return this.a*this.a;
}
}
export class Rectangle
{
pr... |
dc90d82d0da7a940957583f2bdd55db6c45b0c98 | TypeScript | martin-nordberg/ZZ-barlom-typescript | /barlom-language/elements/src/types/enumerationtype/EnumerationTypeParserPlugin.ts | 2.796875 | 3 | import { AstAnnotation } from '../../../../ast/src/annotations/AstAnnotation';
import { AstEnumerationType } from './AstEnumerationType';
import { AstParameter } from '../../../../ast/src/parameters/AstParameter';
import { BarlomToken } from '../../../../lexer/src/BarlomToken';
import { BarlomTokenType } from '../../..... |
7cf41e0746f959642194a1a31dddd64842743b41 | TypeScript | joarwilk/flowgen | /src/__tests__/basic.spec.ts | 2.734375 | 3 | import { compiler, beautify } from "..";
import "../test-matchers";
it("should handle basic keywords", () => {
const ts = `type A = {
a: void,
b: string,
c: any,
d: number,
e: boolean,
f: null,
g: undefined,
h: object,
i: 1,
j: 2,
k: true,
l: false,
m: 'foo',
n... |
430e2c9ca44a0f5cfe6feb7d5c040adb7f7ef4b6 | TypeScript | IgorMarshkov/ClinicApp | /src/app/services/localStorageService.ts | 2.890625 | 3 | const CLINICS_LOCAL_STORAGE_KEY = 'clinics';
const THERAPISTS_LOCAL_STORAGE_KEY = 'therapists';
const PATIENTS_LOCAL_STORAGE_KEY = 'patients';
export class LocalStorageService {
public getClinics(): string {
return localStorage.getItem(CLINICS_LOCAL_STORAGE_KEY);
}
public getTherapists(): string {
retur... |
4f76589e51fe724391daa3ec3299022d7756db54 | TypeScript | storylog/storylog-nodejs-utils | /src/convert-to-array.util.spec.ts | 2.90625 | 3 | import { convertToArray } from './convert-to-array.util';
describe('convertToArray', () => {
it('should return empty array, if value is null', () => {
const converted: any[] = convertToArray(null);
expect(converted).toEqual([]);
});
it('should return empty array, if value is undefined', () => {
cons... |
7efcaff56275881778017d1f7511e8b5cb86c8dd | TypeScript | romainPrignon/utils | /test/oop/fs/readFile.test.ts | 2.671875 | 3 | import { Error as UtilError } from '../../../src/oop/errors'
// test
import { readFile } from '../../../src/oop/fs/readFile'
// mock
import fs from 'fs/promises'
jest.mock('fs/promises')
afterEach(() => {
jest.restoreAllMocks()
})
describe('oop/fs/readFile.ts', () => {
describe('readFile()', () => {
it('sho... |
f4739c191b6abee04799024902ac63a8aa73a5dd | TypeScript | ZackDeRose/card-games | /libs/card/util/src/lib/card.ts | 2.671875 | 3 | import { suits } from './collections/suits';
import { ranks } from './collections/ranks';
import { Rank } from './rank';
import { Suit } from './suit';
export interface Card {
rank: Rank;
suit: Suit;
}
export function isCard(card: any): card is Card {
return card && (card as Card).rank && ranks.includes(card.ra... |
667af15b9d67326f75bb493958a1f7735ec2a936 | TypeScript | timgivois/prisma_datmodel_transpiler | /__tests__/scanner.test.ts | 2.71875 | 3 | import { preprocess, scan } from '../src/scanner/'
describe('scanner', () => {
it('preprocess a dataModel', () => {
const dataModel:string = ` type User {
id: ID!
name: String
roles: [Roles!]
}`
expect(preprocess(dataModel)).toMatchSnapshot()
})
it('scans a dataModel', () => {
const ... |
99f5b24292b9af7c1c7b713be1eb54d6a37f5ba5 | TypeScript | opensearch-project/OpenSearch-Dashboards | /src/core/server/utils/streams/concat_stream.ts | 3.015625 | 3 | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Licensed to Ela... |
d22aa80e45a435c04621708e213a0a58dded1110 | TypeScript | mad-it/dott-assignment-1 | /src/matrix/matrix.test.ts | 3.1875 | 3 | import { Binary } from 'core/types';
import Matrix from 'matrix';
let matrix: Matrix<Binary>;
beforeEach(() => {
matrix = new Matrix<Binary>([
[0, 1, 0, 1],
[1, 0, 1, 0],
[0, 0, 1, 1],
]);
});
test('toString', () => {
expect(matrix.toString()).toStrictEqual(`0 1 0 1\n1 0 1 0\n0 0 1 1`);
});
test('... |
473d01bf8d715aa463c387036a6ff92121e1a5f0 | TypeScript | sou-a/DDD_Node.js_TypeScript | /app/src/domain/domainservice/TeamDomainService.ts | 2.84375 | 3 | import Team from "domain/model/team/Team";
import TeamRepositoryInterface from "domain/model/team/TeamRepositoryInterface";
export default class TeamDomainService {
private readonly teamRepository: TeamRepositoryInterface;
constructor(teamRepository: TeamRepositoryInterface) {
this.teamRepository = t... |
0f002e0606729bbdb856e8043da5a1ce77a6778c | TypeScript | kym123123/sneakers-store | /src/module/product/types.ts | 2.65625 | 3 | import { AxiosError } from 'axios';
import { ActionType } from 'typesafe-actions';
import * as actions from './actions';
// action 생성자 함수를 import해서 반환 타입(액션객체의 타입)을 전부 union
export type ProductAction = ActionType<typeof actions>;
// product 배열 내의 객체 타입
export type Product = {
_id: string;
name: string;
price: n... |
7f934f8d6dc78e902eef8ebcc0c43ebcc4698782 | TypeScript | expo/expo | /packages/@expo/config/build/getAccountUsername.d.ts | 2.59375 | 3 | import { ExpoConfig } from '@expo/config-types';
/**
* Get the owner of the project from the manifest if specified, falling back to a bunch of different things
* which may or may not be the owner of the project.
*
* @deprecated This may not actually be the owner of the project. Prefer to fetch the project owner usi... |
4cd2754d9f46bce81e8387dd7db7aa62ffce00dc | TypeScript | barrycug/maplibre-gl-js | /src/ui/handler/shim/dblclick_zoom.ts | 3.265625 | 3 | import type ClickZoomHandler from '../click_zoom';
import type TapZoomHandler from './../tap_zoom';
/**
* The `DoubleClickZoomHandler` allows the user to zoom the map at a point by
* double clicking or double tapping.
*/
export default class DoubleClickZoomHandler {
_clickZoom: ClickZoomHandler;
_tapZoom: ... |
d47c677d64376a55062ac08b48cbcffd7fd6579d | TypeScript | vaughan189/react-reserve | /client/src/utils/localStorage.ts | 2.640625 | 3 | export function setUserDetails(userDetails: any) {
localStorage.setItem('user', JSON.stringify(userDetails));
};
export function getUserDetails() {
return localStorage.getItem('user') || '{}';
};
export function removeUserDetails() {
localStorage.removeItem("user");
} |
b2aa2499fe400a64c6d21e50bfa4ccd5c83855ab | TypeScript | FullScreenShenanigans/EightBittr | /packages/menugraphr/src/MenuGraphr.ts | 2.625 | 3 | /* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
import { Ac... |
98002ca43b81b93326d5310fb447ced0025be005 | TypeScript | MilanMirkovic/Aleph-Final-Exam | /client/src/app/models/user.model.1.ts | 2.734375 | 3 |
import { Komentar } from './komentar.model';
export interface UserInterface{
id?:number;
name?:string;
surname?:string;
username?:string;
password?:string;
komentari?:Komentar[];
}
export class User implements UserInterface{
id:number;
name:string;
surname:string;
us... |
7cf13c0db88c3ea46fdd961ecb402bb62eeef96f | TypeScript | AngryKnees/byond-node | /src/decoder.ts | 3.515625 | 4 |
/** The magic number identifying byond packets */
const MagicNumber = 0x00_83;
/** Known datatype identifier bytes */
enum Identifier {
Float = 0x2a,
String = 0x06
}
/** byte offsets for byond packets */
enum Offset {
MagicNumber = 0,
ExpectedDataLength = 2,
DataTypeIdentifier = 4,
Data = 5
... |
f26a90e9ba343af11c134f3f309653bbd77ca78c | TypeScript | muskanmahajan37/romi-hl7 | /src/hl7/connection.ts | 2.796875 | 3 | import * as net from 'net';
import { Protocol as MLLPProtocol } from '../mllp';
import { Message, parse } from './parser';
export type Middleware =
(msg: Message, connection: Connection, next: () => void) => void;
export class Connection {
get socket(): net.Socket {
return this._socket;
}
constructor(
... |
bc57c0b953cd49891e2ed491442a63feb8992469 | TypeScript | Anu-Ujin/erxes-api | /src/data/resolvers/queries/activityLogUtils.ts | 2.734375 | 3 | import { ICompanyDocument } from '../../../db/models/definitions/companies';
import { ICustomerDocument } from '../../../db/models/definitions/customers';
import { IDealDocument } from '../../../db/models/definitions/deals';
import { IUserDocument } from '../../../db/models/definitions/users';
import { COC_CONTENT_... |
e26a4c8448ca8a232cb793fb56d499f276cd6c2e | TypeScript | Jianazheng/reactnative-with-ant-design-of-rn | /rn_yoga/src/public/style/pixel.ts | 2.75 | 3 | /**
* 屏幕工具类
* ui设计基准,iphone 6
* width:750
* height:1334
*
小:375*667
中:375*812
大:414*896
*/
var ReactNative = require('react-native');
var Dimensions = require('Dimensions');
export var screenW = Dimensions.get('window').width;
export var screenH = Dimensions.get('window').height;
export var pixelRati... |
284c2d4252e0bb5767ddeb74ab1600a88e7f6d3a | TypeScript | SmartTech-LiveTrack/LiveTrackServer | /tests/repos/location-repo-impl.spec.ts | 2.53125 | 3 | import { expect } from 'chai';
import 'mocha';
import { ObjectID, Collection } from 'mongodb';
import { close as closeDb, connect, getDb } from '../../src/config/db';
import Location from '../../src/data/location';
import LocationRepoImpl, { LocationDocumentFormat } from '../../src/repos/location-repo-impl';
import { ... |
b0f1b1f8136c3af2847348afff0ada74fd235c27 | TypeScript | odan-sandbox/nestjs-transactional-result-type-example | /src/app.service.ts | 2.578125 | 3 | import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { getConnection, getManager, Repository } from 'typeorm';
import { Transactional } from '../lib/Transactional';
import { User } from './entities/user.entity';
import { Propagation } from 'typeorm-transactional-cls-ho... |
6ab552bf0002715d0ff7044a8737ec4cf1cc4662 | TypeScript | DoctypeRosenthal/design_patterns | /src/Strategy/OO/Duck.ts | 2.6875 | 3 | import { QuackBehavior } from './QuackBehavior';
import { FlyBehavior } from './FlyBehavior';
import { Quack } from './Quack';
import { FlyNoWay } from './FlyNoWay';
export abstract class Duck {
quackBehavior: QuackBehavior;
flyBehavior: FlyBehavior;
constructor() {
this.quackBehavior = new Quack();
thi... |
00af966d80ac1afd166cd951984d1402542af7eb | TypeScript | gkji/svg-painter | /src/model/Round.ts | 2.609375 | 3 | import {PointModel} from './Point';
import {SvgBaseProps} from '../const/index';
import {BaseModel} from './BaseModel';
import {GraphType} from '../const/enum';
import {SvgRound} from '../components'
import {log, abs} from "../common/utils";
import {Pen} from "../pen";
export class RoundModel extends BaseModel {
... |
6e5f59cc923e022918f3d31dd88d17585e7666b7 | TypeScript | WalterLeinert/libraries | /packages/common/src/lib/print/print-agent/print-service-options.interface.ts | 2.84375 | 3 | export type RestMethod = 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE';
/**
* All data types that column can be.
*/
export class RestMethods {
public static GET: RestMethod = 'GET';
public static PUT: RestMethod = 'PUT';
public static POST: RestMethod = 'POST';
public static PATCH: RestMethod = 'PATCH';
publ... |
80ae21fa9bc4f1e954347212d36dc9b24d12c2a6 | TypeScript | bekeeeee/universities-frontend-assignment | /src/state/actions/programDetailsAction.ts | 2.5625 | 3 | import { ActionTypeProgramDetails } from "../action-types/programDetailsTypes";
import { Program } from "../state-types/program";
interface ProgramDetailsRequestAction {
type: ActionTypeProgramDetails.PROGRAM_DETAILS_REQUEST;
}
interface ProgramDetailsSuccessAction {
type: ActionTypeProgramDetails.PROGRAM_DETAILS_... |
85d90f22adba75a0198f5ae6ea1f0fca21af7a1c | TypeScript | knezevicdev/github-repo-search | /src/utils/helpers.ts | 2.53125 | 3 | import { Repository, RepositoryType } from 'utils/types';
export const getRepositoryType = (repository: Repository): RepositoryType => {
if (repository.fork) {
return 'fork';
}
if (repository.private) {
return 'private';
}
return 'public';
};
|
31775744633b10bf9073c87928df843a34263f82 | TypeScript | AlexandruRoman/next-react-project | /src/_brain/auth/_ducks/login.ts | 2.5625 | 3 | import { action } from "typesafe-actions"
import { api } from "../../_helpers/api"
import { takeLatest, call, put, take } from "redux-saga/effects"
import { setString } from "../../_helpers/storage"
import { authPopulateStateStartAction, AUTH_POPULATESTATE_ACTION_TYPES } from "../auth"
/*
* ___ ______ .... |
dfb193244d0b9d21950f3ca22e3ce756ce48c274 | TypeScript | kevbaldwyn/ts-valueobjects | /src/Scalars/__tests__/NullScalar.test.ts | 3.046875 | 3 | import { getType } from "../../ValueObject";
import { NullScalar } from "../NullScalar";
describe("Test Null", () => {
const testStringClass = new NullScalar();
test("fromNative() initialises object with correct type", () => {
const obj = NullScalar.fromNative();
expect(getType(obj)).toBe("NullScalar");
... |
0c65835cb164bb0320b36bc47a48a0a5ea295d9d | TypeScript | fagnersilvamartins/angular-m | /src/app/domain/domain.helper.ts | 2.625 | 3 | import { DomainService } from './domain.service';
import { EntityType } from '../meta/entity.type';
export class DomainServiceHelper {
constructor(private service: DomainService) {}
checkService() {
expect(this.service).toBeTruthy();
}
checkEntityTypes(length: number, ...entityTypeNames: str... |
4d9fe397b0bc6ae24cc049820e88d1a208fe55cc | TypeScript | MrBunsy/CardGames | /web/card-game/src/app/models/clever-bot.ts | 3.046875 | 3 | import { DeclarationWhistPlayer } from './declaration-whist-player';
import { Card, Suit, suitArray } from './card';
import { ReplaySubject, Observable, of } from 'rxjs';
import { TrumpsEventInfo, BidEventInfo } from './declaration-whist';
import { Deck } from './deck';
import { CardsInTrickEventInfo, Trick } from './g... |
e9cba757ca5c4fdfe33a3e71aa535b8f02c9aa9b | TypeScript | omondibrian/Rada-admin | /src/usecases/FetchUserRole.ts | 2.71875 | 3 | import { ResultPayload } from "../Lib/utils/result";
import { IAdminRoleRepository } from "@Repositories/Role.repository";
export class FetchUserRole {
constructor(
private readonly repo: IAdminRoleRepository,
private readonly config: any
) {}
async fetch(
id: string
): Promise<
| ResultPayload... |
e0849bf2cf5cbb0fc99baa4b6dfd28f92744a2a9 | TypeScript | eveningwater/vue-resume | /vue-resume-3.0/src/directives/number.ts | 2.65625 | 3 | import { ObjectDirective } from "vue";
type instanceValue = {
speed?:string
}
const filterNotIntNumber:ObjectDirective = {
mounted(el,binding){
el.oninput = (e:MouseEvent) => {
const value = (e.target as HTMLInputElement).value;
if(isNaN(Number(value)) || Number(value) <= 0 || Nu... |
a91b1bd61add7830023f82a702caff5fdc38e558 | TypeScript | old-horizon/tiny-visual-novel-engine | /src/view/scene/scenario/animation/character/CharacterAnimationFactory.ts | 2.65625 | 3 | import {AnimationTypes} from "../../../../../model/scenario/AnimationTypes";
import {AllFadeOut} from "./AllFadeOut";
import {AppearBottom} from "./AppearBottom";
import {AppearLeft} from "./AppearLeft";
import {AppearRight} from "./AppearRight";
import {Depress} from "./Depress";
import {ExitLeft} from "./ExitLeft";
i... |
6c85d097457dcae1cdecec9f1d18624ba9affd3f | TypeScript | squad37/api-solidareduca | /src/useCases/authenticateDoador/AuthenticateDoadorUseCase.ts | 2.78125 | 3 | import { compare } from "bcrypt";
import { DoadoresRepository } from "../../repositories/DoadoresRepository";
interface IRequest {
email: string;
senha: string;
}
interface IResponse {
id_doador: string;
email_doador: string;
nome_doador: string;
}
class AuthenticateDoadorUseCase {
constructor(private d... |
47a48ce592bdea3020666d82d9fd7064b0b5d07f | TypeScript | dylanling/midlights-deep | /src/sim/battle/eventprocessor.ts | 3.046875 | 3 | import {BattleEvent, MovementEvent} from './event';
import {GameState} from './gamestate';
export interface EventProcessor<T extends BattleEvent> {
validate(event: T, state: GameState): boolean;
process(event: T, state: GameState): GameState;
}
export class MovementEventProcessor implements EventProcessor<Movemen... |
deb8d6c196e898c02606e094dfcf4962ceec279c | TypeScript | nguyer/aws-sdk-js-v3 | /clients/browser/client-rekognition-browser/types/_ContentModerationDetection.ts | 2.859375 | 3 | import {
_ModerationLabel,
_UnmarshalledModerationLabel
} from "./_ModerationLabel";
/**
* <p>Information about a moderation label detection in a stored video.</p>
*/
export interface _ContentModerationDetection {
/**
* <p>Time, in milliseconds from the beginning of the video, that the moderation label was ... |
638bf0575601cdfae99fbba459262e316271c84d | TypeScript | wyswill/designModule | /src/Visitor/ElementVisitor.ts | 3.0625 | 3 | import Visitor from "./Visitor";
import Iterator from "./Iterator";
import Entry from "./Entry";
import File from "./File";
export default class ElementVisitor extends Visitor {
private current: string = "";
visit(entry: Entry): void {
const it: Iterator = entry.iterator();
while (it.hasNext()) {
co... |
9209f15f89a66f87b96917fce0b8768d500af672 | TypeScript | bmazerolle/BillSplit | /BillSplit/src/tests/CreateBill.test.ts | 2.8125 | 3 | import {ObjectId} from "mongodb";
import {Bill} from "../baseClasses/Bill";
import {Purchase} from "../baseClasses/Purchase";
import {UserController} from "../controller/UserController";
test("null test", () => { // create a bill and assign it to nobody
const item = new ObjectId("5ddaff0802aed89a3455e616");
... |
63a1c7ff9cb900e8c2133206247d3e7b49f9481f | TypeScript | alisaffari97/angular2-persian-utils | /src/services/national-code.service.ts | 2.875 | 3 | import { Injectable } from '@angular/core';
@Injectable()
export class NationalCodeService {
constructor() { }
isValid(nationalCode: string): boolean {
return this.vlaidate(nationalCode);
}
private vlaidate(nationalCode: string): boolean {
if (nationalCode == undefined)
return false;
if ... |
b3cb14b71998129eacf3b7f70dcb5c753063656a | TypeScript | Yashappinventiv/Azure-Services | /controller/basis.controller.ts | 2.53125 | 3 | import { AbortController } from '@azure/abort-controller'
import {
StorageSharedKeyCredential,
BlobServiceClient
} from '@azure/storage-blob'
const azureStorage = require('azure-storage');
const fs = require("fs");
const path = require("path");
const { DefaultAzureCredential } = require("@azure/identity");... |
6c969fae73914b752faf12d0bac03dc25ceea457 | TypeScript | correcthorsebatterystaple/Position-Tracker | /src/Processor.ts | 2.828125 | 3 | import { CommandFactory } from './CommandFactory';
import { ICommandData } from './interfaces/ICommandData';
export class Processor {
private commandFactory: CommandFactory;
constructor() {
this.commandFactory = new CommandFactory();
}
async process(args: string[]): Promise<void> {
const commandData =... |