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 |
|---|---|---|---|---|---|---|
9a46eadb2e1c29823b734e6c8d185004f0a9b9c2 | TypeScript | cacabo/starter | /src/routes/Users.ts | 2.625 | 3 | import { Request, Response, Router } from 'express'
import { BAD_REQUEST, CREATED, OK, NOT_FOUND } from 'http-status-codes'
import { ParamsDictionary } from 'express-serve-static-core'
import { UserDao } from '@daos'
import { genericParamMissingError, adminMW } from '@shared'
import { IUser } from '@entities'
import { ... |
bb87521160976fca43f485da60b499f7805fb897 | TypeScript | ecadlabs/taquito | /integration-tests/data/contractWithUnpair.ts | 3.03125 | 3 | export const miStr = `parameter int; # the participant's guess
storage (pair
int # the number of guesses made by participants
address # the address to send the winning pot to if the participants fail
);
code {
# (pair parameter storage) : []
# make sure tha... |
f64592007ee8d5a4e72ebc4047c978e8716b38d1 | TypeScript | blackbaud/skyux | /libs/components/popovers/src/lib/modules/popover/types/popover-message.ts | 2.65625 | 3 | import { SkyPopoverMessageType } from './popover-message-type';
/**
* Specifies messages to be sent to the popover component.
*/
export interface SkyPopoverMessage {
/**
* The type of message to send.
*/
type?: SkyPopoverMessageType;
}
|
3a48b17a40df5ddc398fca9d9aff9d20f5740859 | TypeScript | eternalconcert/suitescript-types-tools-and-frameworks | /src/record/typedRecord/generated/taxgroup.ts | 2.703125 | 3 | // This file is auto generated, do not edit it.
/**
* Tax Group Fields Definition.
* Record's Internal Id: taxgroup.
* Supports Custom Fields: true
*/
export interface taxgroupFields {
/** Enter the city where this tax should be applied.
This value is used by NetSuite to automatically determine the correct... |
75e84efb8ce610ad2eef5b3f488adaeaa80edb62 | TypeScript | ethers-io/ethers.js | /lib.esm/utils/properties.d.ts | 2.6875 | 3 | /**
* Property helper functions.
*
* @_subsection api/utils:Properties [about-properties]
*/
/**
* Resolves to a new object that is a copy of %%value%%, but with all
* values resolved.
*/
export declare function resolveProperties<T>(value: {
[P in keyof T]: T[P] | Promise<T[P]>;
}): Promise<T>;
/**
* ... |
03815dd92ab325607f04c6cf9bb1a63212a9c169 | TypeScript | DCUBEDcode/bog-api | /src/validators/user.ts | 2.765625 | 3 | import { body, query, param } from "express-validator";
class UserValidator {
checkCreateUser() {
return [
body("firstName")
.notEmpty()
.withMessage("The first name should not be empty"),
body("lastName")
.notEmpty()
.withMessage("The last name should not be empty"),
... |
611298c8e095899ec5e9312f26832a372fd5394f | TypeScript | karenyov/curso-ionic-stencil | /src/pages/angular/binding/binding.ts | 2.765625 | 3 | import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
/**
* Generated class for the BindingPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: 'p... |
bc00026abe95af8189b76ca324e18e7cdd029098 | TypeScript | frankhu00/21Simulation | /app/src/model/CardCollection.ts | 3.515625 | 4 | import Card, { CardNumberMap, SuitType } from './Card'
import Notifier from './Notifier'
import { CountingSystem } from './CountingSystem'
import { randomizeBetween } from './Utility'
type RCObjectType = {[key: string]: CountingSystem | number}
type setRCType = RCObjectType | boolean
type deckConstructorType = { cards... |
0cf564bc143306a5ba373a04dac0637052923c93 | TypeScript | z1maka/microservices | /auth/src/services/password.ts | 2.875 | 3 | import { scrypt, randomBytes } from "crypto";
import { promisify } from "util";
const scryptAsync = promisify(scrypt);
export class PasswordService {
static toHash = async (password: string): Promise<string> => {
const salt = randomBytes(8).toString("hex");
const buf = (await scryptAsync(password, salt, 64)... |
d6dc9efa6661f723d8cbd96e08353260727a49d3 | TypeScript | santhosh-pro/sm-back | /src/template/row.service.ts | 2.546875 | 3 | import {Injectable} from "@nestjs/common";
import {Connection, Repository} from "typeorm";
import {Row} from "../entities/Row";
import {Cell} from "../entities/Cell";
import {InjectRepository} from "@nestjs/typeorm";
@Injectable()
export class RowService {
constructor(
@InjectRepository(Row)
priv... |
e0a45f679068931b7cc1d103b880b3e6158938a5 | TypeScript | MEKKANIKKA/dfuse-eosio | /eosq/src/stores/block-store.ts | 2.71875 | 3 | import { observable, ObservableMap } from "mobx"
import { BlockSummary } from "../models/block"
const MAX_LIVE_BLOCKS = 500
const MAX_SNAPSHOT_BLOCKS = 5
export class BlockStore {
liveBlocks = observable.map<string, BlockSummary>()
/**
* The list of block currently displayed in the dashboard.
* First accum... |
1eb37e939c3d997900d6eee6d926e9ce51bd11f7 | TypeScript | Kotarski/Layout-Prototype-Boards | /typescript/fileIO/load/dasim/-buildComponents.ts | 2.625 | 3 | import Component from "../../../circuit/+component";
import mappings from "../../../circuit/mappings";
type savedManifist = { schematic: Component[], layout: Component[] };
export default function buildComponents(rawComponents: any[]): savedManifist {
/*LOGSTART*/console.groupCollapsed("Component Load Data");/*L... |
c13177770aaa7bb52267c687773447464bc3bdd1 | TypeScript | hhy5277/nestjs-typeorm | /src/photos/photos.service.ts | 2.5625 | 3 | import { Injectable } from '@nestjs/common';
import { CreatePhotoMetadataDto } from './dto/create-photo-metadata.dto';
import { Photo } from './entities/photo.entity';
import { PhotoMetadata } from './entities/photo-meta.entity';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
... |
39c3ed1700b13a7fd792066c0c5964ba0b1fa6dd | TypeScript | yiqu/udemy-ngrx | /src/app/auth/redux/auth.selectors.ts | 2.796875 | 3 | import { createSelector, createReducer, createFeatureSelector } from '@ngrx/store';
import { AuthState } from './auth.model';
import { AppState } from '../../ngrx-stores/global-store/app.reducer';
import { FireUser } from 'src/app/shared/models/user.model';
export const getAuthFeatureStateSelector = createFeatureSelec... |
19c2b511a7db4337192788acdc6bd1695845cd8c | TypeScript | marcosnav/cuadro | /src/tests/services/imagefetcher.test.ts | 2.546875 | 3 | import axios from 'axios';
import { ImageFetcher } from './../../services/imagefetcher';
jest.mock('axios');
describe('ImageFetcher', () => {
test('.get()', async () => {
const reqMockData = {
data: {
id: 10,
urls: {
regular: 'https://image.url',
},
user: {
... |
d73f74605bc9493a3d67b8c0c23e2aac1e8ac68a | TypeScript | Nlbo/test | /src/app/platform/models/sidebar-nav.ts | 2.765625 | 3 | import { ISidebarNavigation } from '@interfaces/sidebar-nav';
export class SidebarNavigation {
public name: string;
public path: string;
public languagePath: string;
public languageControl: string;
public opened: boolean = false;
public exact: boolean = false;
private _children: SidebarNavigation[] = []... |
f5d51cccd7f5eff5e2dfacc0d21cddab17bb95cc | TypeScript | PedroHenriques/www.pedrojhenriques.com | /assets/ts/main.ts | 2.8125 | 3 | /*!!***********************************************************
* *
* www.pedrojhenriques.com v2.2.0 *
* *
* Copyright 2017, PedroHenriques *
* http://www.pedrojhenriques.com *
* https://github.com/PedroHenriques *
* *
* Free to use under the MIT licen... |
2c31cc84fa9e0b4b9278e4f279fc94a38606b098 | TypeScript | hudas/react-study-playground | /src/tasks/services/TaskMappers.ts | 2.578125 | 3 | import {TaskDto, TaskStatusDto} from "./dto/TaskDto";
import {Task} from "../components/view/TaskView";
import moment from "moment";
import {TaskListDto} from "./dto/TaskListDto";
import {TaskRow} from "../components/list/TaskList";
import {TaskStatus} from "../store/task/TaskState";
export function taskDtoToFormState... |
6301b1a9f59960d19afc35a7df9d5a439a10b216 | TypeScript | paperbits/paperbits-common | /src/ui/viewStack.ts | 3.078125 | 3 | import * as Html from "../html";
import { EventManager } from "../events";
import { View } from "./view";
export class ViewStack {
private stack: View[];
constructor(private readonly eventManager: EventManager) {
this.stack = [];
this.eventManager.addEventListener("onPointerDown", this.onPoint... |
b005666f7c30979a16128c1fc321c3cff59adad8 | TypeScript | guitarpoet/jsontool | /src/pagers/CombinedPager.ts | 2.984375 | 3 | /**
* The Combined Pager
*
* @author Jack <jack@thinkingcloud.info>
* @version 0.0.1
* @date Mon Apr 9 15:31:03 2018
*/
import { Observable } from "rxjs/Observable";
import { Pager, flatMapper, PagerType } from "../models/Pager";
import "rxjs/add/observable/of";
import "rxjs/add/operator/map";
import "rxjs/add/... |
d8cfedadf58be8e1bbe43a0c72c0dc6d6c1a3eea | TypeScript | bastienlemaitre/angular-odata-es5 | /src/angularODataUtils.ts | 3.203125 | 3 | export class ODataUtils {
public static convertObjectToString(obj: any): string {
const properties: string[] = [];
for (const prop in obj) {
if (obj.hasOwnProperty(prop) && obj[prop] !== undefined) {
const value: any = ODataUtils.quoteValue(obj[prop]);
p... |
20e2a2eed99a19a61a55321fb38099951444af94 | TypeScript | kahirokunn/book-management | /src/submodules/validate.ts | 3.21875 | 3 | type funcType = (value: any) => void
export function isValid(rule: funcType[], value: any) {
rule.forEach((func) => {
const result = func(value)
if (typeof result === 'string') {
throw Error(result)
}
})
}
|
600174059164658d9a042e18b59406a41e101d15 | TypeScript | jroyer1986/connect4 | /app/services/connect4API.ts | 2.65625 | 3 | import { Injectable } from '@angular/core';
import { Game } from '../shared/models/game';
import { User } from '../shared/models/user';
import { Board } from '../shared/models/board';
import { Space } from '../shared/models/space';
import { FakeGameData } from '../shared/models/fakeGameData';
@Injectable()
export clas... |
1b7dcfcbbb1b7c8eb18c1cbed0b7e6ee62332bee | TypeScript | SpyglassMC/Spyglass | /packages/locales/test/index.spec.ts | 3.1875 | 3 | import { strict as assert } from 'assert'
import { describe, it } from 'mocha'
import { arrayToMessage } from '../lib/index.js'
describe('arrayToMessage() Tests', () => {
it('Should return message for an empty array', () => {
const arr: string[] = []
const actual = arrayToMessage(arr)
assert.strictEqual(actual,... |
2c22a60654310b463fe47b2d47b1ae0e3e8a1109 | TypeScript | EvgeniyBudaev/react-mirrorLook | /src/frontend/redux/middleware/generateId.ts | 2.5625 | 3 | import {v4 as uuid} from 'uuid'
import {Middleware} from 'redux'
import {RootStateType} from '../reducers'
interface IKey {
[key: string]: string
}
const generateId: Middleware<{}, RootStateType> = (store) => (next) => (action) => {
if (!action.generateId) return next(action)
const {generateId, ...rest} = a... |
13df3fef50fa6388aed14cf4a2c66cc925280554 | TypeScript | sschmeier/rna2drawer2 | /src/draw/interact/annotate/positionsBetween.ts | 3.015625 | 3 | export function positionsBetween(inclusiveEnd1: number, inclusiveEnd2: number): number[] {
let min = Math.min(inclusiveEnd1, inclusiveEnd2);
let max = Math.max(inclusiveEnd1, inclusiveEnd2);
let ps = [] as number[];
for (let p = min; p <= max; p++) {
ps.push(p);
}
return ps;
}
export default positionsB... |
8cfa2901a13b56a04f1b7bb3284b9dbbb60cf7e6 | TypeScript | drew-gross/mpl | /interpreter.ts | 2.765625 | 3 | import debug from './util/debug';
import { Program } from './threeAddressCode/Program';
import { ExecutionResult } from './api';
import { Register } from './threeAddressCode/Register';
import { stringLiteralName } from './backend-utils';
export type Argument = {
name: string;
value: number | Pointer;
};
expor... |
37d758d92c4b63f9f708fd1d75bd96ca5ff8f8bc | TypeScript | mvniekerk/spoon-ui | /lib/validation/date.ts | 2.546875 | 3 | import moment from 'moment';
import { Validate } from './validate';
export const createDateValidator: (format: string) => Validate<string> = format => (i18nKey, val) =>
!!val && val.length >= format.length && moment(val.substr(0, format.length), format, true).format() !== 'Invalid date'
? []
: [
{
... |
36b6761529203d61330e936f161260a9753be0ce | TypeScript | pinkbunny1/addressApp | /src/selectors/addressBook.ts | 2.703125 | 3 | import { sortBy as _sortBy } from 'lodash'
import Types from 'Types'
import { EntryData } from '../modules/Add'
interface FilterState {
text: string
}
const getVisibleEntries = (entries:EntryData[], { text }:FilterState) => {
let filteredEntries = entries.filter(({ firstname, lastname }) => {
const textMatch ... |
d5311ebedc92ede35f2c862f304a1a3100437641 | TypeScript | antonylrds/tcc_back | /src/services/CreatePaperService.ts | 2.640625 | 3 | import { getRepository, In } from 'typeorm';
import AppError from '../errors/AppError';
import KeyWord from '../models/KeyWord';
import Paper from '../models/Paper';
import User from '../models/User';
interface PaperDTO {
title: string;
subtitle: string;
author: string;
professor: string;
user_id: string;
... |
59feaaa833b65c5d9241b8ed0127b44507cce7c0 | TypeScript | nauy1216/mlz-pack | /ts/src/config.ts | 2.546875 | 3 | import path from 'path';
import merge from 'lodash.merge';
import { getPath } from './utils';
import { WebpackConfig } from './types';
export type PackConfig = {
webpack:Partial<WebpackConfig>;
};
class Config {
private config = {
webpack: {},
};
private jsonConfigName = 'mlz-pack.json';
private jsConf... |
58b7e5928faf4bf0b3728d4d24624006b7a9428c | TypeScript | 2fx0one/cocos-sushi-master | /assets/Script/Food.ts | 2.546875 | 3 | import FoodContainer from "./FoodContainer";
import FoodData from "./entity/FoodData";
import Utils from "./common/Utils";
const {ccclass, property} = cc._decorator;
@ccclass
export default class Food extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property(cc.ProgressBar)
prog... |
0f9a0944cf931c9bfd86b6fd0f615f0fce3b0854 | TypeScript | zanachka/noderdom-detached | /test/html/innerHTML.test.ts | 2.578125 | 3 | import DOMParser from '../../src/api/DOMParser';
describe('innerHTML', () => {
it('parses basic text', () => {
const dom = new DOMParser().parseFromString('<div class="address">Hello this is text.</div>', 'text/html');
const address = dom.querySelector('.address')!;
expect(address.innerHTML).toBe('Hello ... |
4bf8b39f65480960d3260d684392491035dd33aa | TypeScript | pyradic/platform | /lib/components/script/Script.ts | 2.515625 | 3 | import Vue from 'vue';
import { component, prop } from '@/decorators';
const log = require('debug')('components:script')
@component({})
export class Script extends Vue {
static template = `<div class="py-script" style="display: none"><slot></slot></div>`
@prop(String) src:string
created(){
this.$... |
9bde7b28bf3efaba747cef1d12600beb6f955b25 | TypeScript | spadek-w/relearn-web | /ts/src/index.ts | 4.1875 | 4 | let str: string = "hi";
// 布尔
let isDone: boolean = false;
// 数字
let age: number =6;
//数组
let list: number[] = [1,2,3]
let list2: Array<number> = [1,2,3]
//元祖 Tuple
let x: [string,number] = ['hello',10]
//枚举enum
enum Color {red, Green, Blue}
let c: Color = Color.Green;
//Any
let notSure: any = 4;
//void
/**
... |
24733a277df45d318f91aa9a905b182f25b1813c | TypeScript | cyjo9603/cy-util | /src/is/isPromise.ts | 2.8125 | 3 | function isPromise(value: any): boolean {
return (
Boolean(value) &&
['object', 'function'].includes(typeof value) &&
typeof value.then === 'function'
);
}
export default isPromise;
|
5e7ecc33cfaaa5dc818e7c864d7e505d48b554c0 | TypeScript | orionnye/CameraColorFilter | /src/math.ts | 3.34375 | 3 | export default class Vector {
x: number;
y: number;
constructor(x : number = 0, y : number = 0) {
this.x = x;
this.y = y;
}
subtract(that: Vector) {
return new Vector(this.x - that.x, this.y - that.y);
}
add(that: Vector) {
return new Vector(this.x + that.x, t... |
4425e72b61d4bf5cc61af5b568d13c2e9729c714 | TypeScript | sanderheieren/build-a-web-framework-in-typescript | /src/Models/Attributes.ts | 3.40625 | 3 | // import { UserProps } from './User';
export class Attributes<T> {
constructor(private data: T) {}
// limiting the different types K can be (name, age or id) bc in TS you can treat strings as types, because of how object keys are string
// made it to an arrow function, because it will be correctly bound to the in... |
49f75cc6f79dd322580b926d6493ea113503a905 | TypeScript | be-light/be-light | /src/utils/file.ts | 2.515625 | 3 | import * as multer from "multer";
import * as path from "path";
class BeLightFile {
public option: multer.Instance;
public storage: multer.StorageEngine;
constructor() {
/* Define Storage */
this.storage = multer.diskStorage({
destination: (req, file, cb) => {
cb(null, "./public_dist/uploa... |
fbbcacb8714b761477ec13410b783f4125e95489 | TypeScript | bny9164/learn_nestjs | /project/src/app.module.ts | 2.53125 | 3 | // * 애플리케이션의 루트 모듈
import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { MongooseModule } from '@nestjs/mongoose';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { CatsModule } from './cats/c... |
92a3b68b9af6dea88d95d73426d1450bcba3699c | TypeScript | shashiWipro/finalFullStack1 | /FrontEnd/src/app/pipes/survey-filter/survey-filter.pipe.ts | 2.515625 | 3 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'surveyFilter'
})
export class SurveyFilterPipe implements PipeTransform {
transform(value: any[], status: string): any {
const result = [];
value.map((survey: any) => {
if (survey.status === status) {
result.push(survey);
... |
3862337b7e7834fe5486b2fcc125a75995736ddf | TypeScript | nguyer/aws-sdk-js-v3 | /clients/browser/client-app-mesh-browser/types/_VirtualRouterStatus.ts | 2.796875 | 3 | /**
* <p>An object representing the status of a virtual router. </p>
*/
export interface _VirtualRouterStatus {
/**
* <p>The current status of the virtual router.</p>
*/
status: "ACTIVE" | "DELETED" | "INACTIVE" | string;
}
export type _UnmarshalledVirtualRouterStatus = _VirtualRouterStatus;
|
efa58ddc6284829770ff4402f311bec530e66ade | TypeScript | camirori/TP-Sala-de-Juegos-ANGULAR- | /src/app/clases/juego-agilidad.ts | 3.0625 | 3 | import { Juego } from '../clases/juego';
export class JuegoAgilidad extends Juego{
numeroIngresado = 0;
operando1;
operando2;
operador: String;
respuesta: Number;
constructor(jugador?:string) {
super("Agilidad aritmetica",jugador);
this.generarOperacion();
//console.log(th... |
cf4869d4f69d6bc31f743c12db01fd94b52b6a3f | TypeScript | armenbb2004/typescript | /functions.ts | 3.921875 | 4 | function add(a:number, b:number): number {
return a+b
}
function toUpperCase(str: string): string {
return str.trim().toUpperCase()
}
interface MyPostion {
x: number | undefined
y: number | undefined
}
interface MyPostionWithDefault extends MyPostion {
default: string
}
function position(): MyPo... |
082a9d7a63e73de2e0c6730a2b8aca8106927c91 | TypeScript | budihan/SpazeHaze | /dev/bullet.ts | 3.34375 | 3 | class Bullet {
private ship:Ship;
public div:HTMLElement;
private x:number;
private y:number;
private width:number;
private height:number;
private upSpeed:number;
constructor(x:number, y:number, fireDirection:number, s:Ship, speed:number){
this.ship = s;
this.... |
66f39f9d297c6ad2aeb8395c9c0682bf7bd3744b | TypeScript | pauloferraz/clean-architecture-node | /tests/data/usecases/account/db-load-accounts.spec.ts | 2.75 | 3 | import { DbLoadAccounts } from '@/data/usecases'
import { LoadAccountsRepositorySpy } from '@/tests/data/mocks'
import { throwError } from '@/tests/domain/mocks'
import faker from 'faker'
type SutTypes = {
sut: DbLoadAccounts
loadAccountsRepositorySpy: LoadAccountsRepositorySpy
}
const makeSut = (): SutTypes => ... |
2813b2dd6af96298b60dc2a9895448b12234cdc1 | TypeScript | sachiko0811/react-typescript-markdown | /src/indexeddb/memos.ts | 3.015625 | 3 | import Dexie from 'dexie'
// define the data type for saving to IndexedDB
export interface MemoRecord {
datetime: string
title: string
text: string
}
// instance of Dexie, named DBname 'markdown-editor'
const database = new Dexie('markdown-editor')
// table
database.version(1).stores({ memos: '&datetime'... |
fdb976da7067e19f37375d024385bcc361e9de58 | TypeScript | max-team/json-mirror-compiler | /src/common.ts | 2.65625 | 3 | /**
* js、php 都会用到的逻辑
*/
const parsers = {
json: JSON.parse,
json5: function (source) {
return require('json5').parse(source);
},
yaml: function (source) {
return require('js-yaml').safeLoad(source);
}
};
export function compileTarget(
source: string,
CodeBuffer: any,
... |
e83ce31d7af85c458a2ca943db92483e8b50f2b4 | TypeScript | thekhenzie/Typescript_2020 | /Mangrobang/typescript/TS/app (2).ts | 2.953125 | 3 | import { Category } from './util';
import { Purge } from './util';
import Shelf from './Ifunctype';
import { ShelfItem, Book }from './interface';
let inventory: Array<Book> = [
{ id: 10, title: 'The C Programming Language', author: 'K & R', available: true, category: Category.Software },
{ id: 11, title: 'C... |
552aa602edcecb9bd0999e1ed51396a16c35782f | TypeScript | xennygrimmato/extractab | /app/javascript/test/music/unbound_chord_spec.ts | 2.953125 | 3 | import { UnboundNote, UnboundChord, BoundNote, BoundChord, ChordNames, Interval, Intervals } from "../../music";
describe("UnboundChord", () => {
const c = UnboundNote.fromString("C");
const g = UnboundNote.fromString("G");
const a = UnboundNote.fromString("A");
const cMajor = UnboundChord.forName(c, ChordName... |
386e907d1326a403f8c842424deea617ce0bffa4 | TypeScript | Rouux/matchmaking-bot | /src/core/functions/recursive-get-classes-dir.ts | 2.703125 | 3 | /* eslint-disable no-use-before-define */
import { recursiveReadDir } from "./recursive-read-dir";
export async function getInstancesFromFolder<T>(
folderPath: string,
): Promise<T[]> {
const files = recursiveReadDir(folderPath);
if (files.length === 0) return [];
return files
.map(async filePath => {
return ... |
b07443ed0ed85f0fec50cd88f3733343e005d02c | TypeScript | wojtekjPJATK/my-notepad-ng | /src/app/validators/body.ts | 2.578125 | 3 | import { AbstractControl, ValidationErrors } from "@angular/forms";
export function ValidateBody(control: AbstractControl): ValidationErrors {
if (control.value.length < 3) return { tooShort: true };
if (control.value.length > 50) return { tooLong: true };
if (/[^a-zA-Z0-9 \-\/]/.test(control.value)) return { in... |
b5b31183901351230e1aad29f0f5571e2b76b6b1 | TypeScript | lalitghongade/revature_training | /Angular/sep6day1/variables.ts | 2.703125 | 3 | let x = 10;
const y = 20;
console.log(x);
console.log(y);
//can't redclare x
//let x= 30; //can not ok!
let sum;// can be declared without init
console.log(sum);
//const title;//should be initialised
|
e5bea1355a00570b87d321746790bb741a0bcb7c | TypeScript | IkarosKappler/plotboilerplate | /src/cjs/utils/algorithms/getContrastColor.d.ts | 3 | 3 | /**
* @author Original from Martin Sojka. Ported to TypesScript by Ikaros Kappler
* @date 2020-11-10
*/
import { Color } from "../datastructures/Color";
/**
* Contrast color algorithm by Martin Sojka's.
* Found at
* https://gamedev.stackexchange.com/questions/38536/given-a-rgb-color-x-how-to-find-the-most-co... |
63bcc1cb30e0c812b47d1d6ee98c909610cfae7d | TypeScript | LaunchMenu/LaunchMenu | /packages/applets/dictionary/src/scraper/wiktionary/Wiktionary.ts | 2.671875 | 3 | import {Wiki} from "../wiki/Wiki";
import {WiktionaryPage} from "./WitkionaryPage";
export class Wiktionary extends Wiki<WiktionaryPage> {
/**
* Creates a new wiktionary instance (You shouldn't create multiple instances however)
*/
public constructor() {
super("https://en.wiktionary.org", tit... |
a5810a5d41ae0869aca1c57ef402e2f77b8d81e3 | TypeScript | paulotokimatu/github-label-tracker | /src/redux/reducers/alertReducer.ts | 3.015625 | 3 | import AlertType from 'core/models/AlertType';
import {
HIDE_ALERT,
SET_ALERT,
} from '../actions/alertActions';
const initialState: {
type: AlertType,
text: string,
isOn: boolean,
} = {
isOn: false,
text: '',
type: 'info',
};
const alertReducer = (state = initialState, action: any) => {
switch (act... |
185945ca4e9dbf0e9e30c1eaff91ef21c0a37838 | TypeScript | usetech-llc/gallery_backend | /src/service/stores/store/JSONStore.ts | 2.734375 | 3 | import { Config, Store } from '../interface/Store';
import { getAccess, createDir, createFile, getDir, getFile } from '../utils';
class JSONStore implements Store {
private pathFile = `${process.cwd()}/config.json`;
//private contentFile: Promise<string>;
public async add(config: Config): Promise<any> {
... |
3b9a36b29b609534df56b862f1083b7da6de3185 | TypeScript | ClementDEBOOS/CookiesClickerLike | /src/app/services/coockies.service.ts | 2.5625 | 3 | import {Injectable} from "@angular/core";
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { of } from 'rxjs/observable/of';
import { Credentials } from '../user';
@Injectable()
export class CoockiesService {
// URL to web API
private userUrl =... |
2a249523374fecfb06a7f71a504ce0eb22f8534c | TypeScript | j3k0/ganomede-chat | /src/helpers/send-notification.ts | 2.59375 | 3 | import ServiceEnv from './service-env';
import * as superagent from 'superagent';
import log from '../log';
export const REQUIRED_KEYS = ['from', 'to', 'type'];
export const OPTIONAL_KEYS = ['data', 'push', 'secret'];
export const SERVERSIDE_KEYS = ['id', 'timestamp'];
function required(options: Notification, key: ke... |
88d376215a31c823c4834319642ac38cd52445b8 | TypeScript | FullStackSmartDev/CSharp-ASP.NET-Core-Angular-Medical-Management-System | /client/src/provider/sqlDataSource/sqlQueryStringProviders/sqlValuesProvider.ts | 3.046875 | 3 | import { TypeHelper } from "../../../helpers/typeHelper";
import { Injectable } from "@angular/core";
import { DateConverter } from "../../../helpers/dateConverter";
@Injectable()
export class SqlValuesProvider {
private _sqlValueProviders: Array<ISqlValueProvider> = [];
constructor() {
this.initSqlVa... |
2fd58971476e0610db1e778bc6218ce865f2b138 | TypeScript | avosalmon/angular-ngxs-hn | /src/app/news/store/news.state.ts | 2.609375 | 3 | import { HttpClient } from '@angular/common/http';
import { Action, Selector, State, StateContext } from '@ngxs/store';
import { catchError, tap } from 'rxjs/operators';
import { News } from '../models/news.model';
import * as newsActions from './news.actions';
export interface NewsStateModel {
news: News[];
page:... |
ac1227252d71b38a09e120ba432b5eca37f262ed | TypeScript | calebmer/decode-universe | /studio/desktop/renderer/storage/Storage.ts | 3 | 3 | import * as path from 'path';
import * as fs from './FileSystemUtils';
import RecordingDirectoryStorage from './RecordingDirectoryStorage';
/**
* Represents all of the persistent file system storage for the Decode Studio
* Desktop client. This is the entry point of storage interfaces which support
* both read and w... |
e4e7d94f45751e36454a10b003be5fc6aa4c1f26 | TypeScript | jhoijune/algorithm | /src/Baekjoon/14891.ts | 3.328125 | 3 | import { readFileSync } from 'fs';
const source = __dirname + '\\input.txt';
const input = readFileSync(source).toString().trim().split('\n');
const sawtooth = input.slice(0, 4).map((v) =>
v
.trim()
.split('')
.map((v) => Number(v))
);
const instruction = input.slice(5, input.length).map((v) =>
v
... |
314ef5d9619c4aaf646f74fd2cd98b2528892b59 | TypeScript | tnrich/ve-range-utils-ts | /test/getShortestDistanceBetweenTwoPositions.test.ts | 2.5625 | 3 | import * as assert from "assert";
import { getShortestDistanceBetweenTwoPositions } from "../src";
describe('getShortestDistanceBetweenTwoPositions', function () {
it('should return the correct length for positions that cross the origin', function (done) {
var length = getShortestDistanceBetweenTwoPositions(9,0,10)
... |
1da2bd0622048e61f069c2585d68ab42499174f1 | TypeScript | achristoph/rx-starter | /observable/Observable.ts | 2.953125 | 3 | import Rx = require('@reactivex/rxjs');
var fetch = require('node-fetch');
var streamA = Rx.Observable.of(1, 2, 3);
var streamB = streamA.map(a => 10 * a);
streamB.subscribe(b => console.log(b));
var requestStream = Rx.Observable.of('https://api.github.com/users');
// Option 1
// Two subscribe calls
requestStream.su... |
0ab4b39d306106658ed0c3ec6bf83730701d192d | TypeScript | sivagangadhar1420/AngularFolder-3- | /AngFolder/MyTypescript/DataTypes/Data1.ts | 3.671875 | 4 | // var nm:string = 'Gangadhar';
// var mbl:number = 9966860320;
// var bl:boolean = true;
// var msg:string = `Helloo ${nm} nd is this u r mobile number ${mbl}`
// alert(msg);
// let str:Array<string> = ["Ar", "Br"];
// let number:Array<number> = [12,3,4,5];
//
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... |
fa65396f4965e9eb1b14768579873d0db1f698f1 | TypeScript | huaweicloud/huaweicloud-sdk-nodejs-v3 | /services/smn/v2/model/LogtankItem.ts | 2.796875 | 3 |
export class LogtankItem {
public id?: string;
private 'log_group_id'?: string;
private 'log_stream_id'?: string;
private 'create_time'?: string;
private 'update_time'?: string;
public constructor(id?: string, logGroupId?: string, logStreamId?: string, createTime?: string, updateTime?: string)... |
ac4e689e08ee886ccb43abe928bf4dfccd04fe77 | TypeScript | inureyes/PyconKR-2021-BTF | /src/functions/functions.ts | 2.640625 | 3 | /* eslint-disable no-undef */
import * as ai from "backend.ai-client/backend.ai-client-es6.js";
/* global clearInterval, console, setInterval */
async function connectToManager() {
if ('baiclient' in globalThis && globalThis.baiclient.ready == true) {
return Promise.resolve(true);
}
const api_key = "AKIAI... |
5aa990295e7079c71553e4d17d3edca19a640814 | TypeScript | lakbir/SportsStore-Angular11 | /src/app/services/caddy.service.ts | 2.5625 | 3 | import {Injectable} from '@angular/core';
import {Caddy} from '../models/caddy.model';
import {AuthService} from './auth.service';
import {TokenStorageService} from './token-storage.service';
import {ItemProduct} from '../models/item-product.model';
import {Product} from '../models/Product.model';
import {Client} from ... |
2b109c250cfa100fb8a28db0fb593a92f35240a4 | TypeScript | typpo/spacekit | /src/Camera.ts | 2.671875 | 3 | import * as THREE from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
import type { PerspectiveCamera } from 'three';
import { rescaleNumber, rescaleArray } from './Scale';
import type { Coordinate3d } from './Coordinates';
import type { SimulationContext } from './Simulation';
im... |
7db4d2fd00ee0851f4ce28c61dc0a919894a5410 | TypeScript | N2AM/bawbty | /src/app/reducers/driver.reducer.ts | 2.78125 | 3 | import * as DriverActions from "../actions/driver.action";
import { Driver } from "../shared/models/driver.model";
// const initialState: Driver = {
// driver_national_id: "",
// date_of_birth: "",
// Education_qualification: "",
// children_below_16: 0,
// Traffic_violations: [""],
// Medical_conditions: ... |
40bf8a39678f0083d37b34195da949465e2a050d | TypeScript | alepee/kata-solid-game-of-life | /tests/CoordinateNumber.test.ts | 3.046875 | 3 | import CoordinateNumberXAxis from '../src/CoordinateNumber/CoordinateNumberXAxis';
import CoordinateNumberYAxis from '../src/CoordinateNumber/CoordinateNumberYAxis';
describe('CoordinateNumber', () => {
it('will return the correct distance beetween two CoordinateNumber', () => {
const datasProvider = [
... |
d636a5c998baf85d6c7b4c5d706c30c9fcd7a9a5 | TypeScript | Roger-Aguiar/imdb_movies | /src/genres/genres.service.ts | 2.6875 | 3 | import { Injectable } from '@nestjs/common';
import { NewGenreDto } from './dto/new-genre.dto';
import { GenreDto } from './dto/genre.dto';
@Injectable()
export class GenresService
{
create(newGenreDto: NewGenreDto)
{
return 'This action adds a new genre';
}
read()
{
return `This action returns a... |
155a4135020ca2b440c56ff6ccb457140f365c68 | TypeScript | rharriso/sudoku-solution-gen-ts | /main.ts | 3.28125 | 3 | import {
sample as _sample,
times as _times,
difference as _difference,
shuffle as _shuffle,
sortedUniqBy as _sortedUniqBy,
sortedUniq as _sortedUniq
} from 'lodash';
let total = 81;
let size = 9;
const third = 3;
let validValues = [1, 2, 3, 4, 5, 6, 7, 8, 9];
const board_count = 10;//jNumber(process.argv... |
bfdd5a832adad5951612822d9a2d531aa6142f5b | TypeScript | rancher-sandbox/rancher-desktop | /pkg/rancher-desktop/backend/containerClient/__tests__/client.spec.ts | 2.53125 | 3 | import { MobyClient } from '@pkg/backend/containerClient/mobyClient';
import { NerdctlClient } from '@pkg/backend/containerClient/nerdctlClient';
import dockerRegistry from '@pkg/backend/containerClient/registry';
import { ContainerEngineClient } from '@pkg/backend/containerClient/types';
import MockBackend from '@pkg/... |
9eede2fa30e469d20506b809d6e9d506eec109db | TypeScript | My-Azure-Projects/azure-node-deploy | /src/deploy/get-local-file.ts | 2.640625 | 3 | import fs from 'fs';
import path from 'path';
import util from 'util';
import { AFileDesc, ADirDesc } from './go-through-dir';
export interface FsFileDesc<Client> extends AFileDesc {
client: Client;
}
export interface FsDirDesc<Client> extends ADirDesc {
client: Client;
}
const readDir = util.promisify(fs.readd... |
c886ab534eda32986b41c847f29d864023ffd7e1 | TypeScript | pewh/node-duckdb | /src/tests/result-stream.test.ts | 2.8125 | 3 | import { Readable } from "stream";
import { Connection, DuckDB } from "@addon";
import { IExecuteOptions, RowResultFormat } from "@addon-types";
const query = "SELECT * FROM read_csv_auto('src/tests/test-fixtures/web_page.csv')";
const executeOptions: IExecuteOptions = { rowResultFormat: RowResultFormat.Array };
fu... |
e42aac531c4a3dc5226a4ceb20c0bc01dca36c2b | TypeScript | Gr33nbl00d/alsatian | /packages/alsatian/test/unit-tests/decorators/ignore.spec.ts | 2.609375 | 3 | import "reflect-metadata";
import {
Expect,
METADATA_KEYS,
Test,
TestCase,
SpyOn,
TestFixture
} from "../../../core/alsatian-core";
import { Ignore } from "../../../core/decorators/ignore-decorator";
import { Warner } from "../../../core/maintenance/warn";
@TestFixture("Ignore decorator tests")
export class Igno... |
89fc0ce45116f7247be4fae463b43183046cbcbb | TypeScript | AnaMariaTozi/sc | /src/utils/index.ts | 2.65625 | 3 | import { appConfig } from '@/config'
const {
MINIMUM_INITIAL_INVESTMENT,
MINIMUM_YEARS_INVESTMENT,
MAXIMUM_YEARS_INVESTMENT,
MINIMUM_RISK_LEVEL,
MAXIMUM_RISK_LEVEL
} = appConfig
const isValueInclusiveBetween = (value: number, min: number, max: number): boolean => value >= min && value <= max
const isValidY... |
1f08a1b1d17881fbd1d198a4755a1af838ad7378 | TypeScript | palasjir/disk-profiler | /src/utils/tree.ts | 2.734375 | 3 | import * as util from "lodash"
import DirectoryTree from "../models/DirectoryTree"
import DirectoryNode from "../models/DirectoryNode"
import {NormalizedPath} from "../models/NormalizedPath"
import {DirListItemModel, DirListItemType, FileInfo} from "../commons/types"
import {normalizePath} from "./path"
export functi... |
6624b35b202560617f4798dae2322f8c505128c8 | TypeScript | AlexMeah/6a23a42d-82b1-4cce-935d-14663dc78e6f | /app/utils/calculateRating/index.ts | 2.609375 | 3 | import { ProductReview } from '.prisma/client';
export default function calculateRating(reviews: ProductReview[]) {
return (
reviews.reduce((total: number, review) => total + review.rating, 0) / reviews.length
).toFixed(1);
}
|
5be525de2d683f5917ece4598b07657116cec518 | TypeScript | samuelsonnysalim/react-backoffice | /src/util/Error.ts | 2.96875 | 3 | export const throwRemoteResponseError = (
propertyPathName: string,
propertyPathValue: string,
foundResponseData: any,
shouldBeAnArray = true,
): void => {
throw new Error(
`Response data must be an ${
shouldBeAnArray ? "array" : "object"
} or use "${propertyPathName}" property to define propert... |
f22e8afae5d22ddf314cb36f6814e14d2c019ce9 | TypeScript | ynikolaev/PurpleBoard | /src/app/_services/user-data.service.spec.ts | 2.53125 | 3 | import { TestBed, inject } from '@angular/core/testing';
import { UserDataService } from './user-data.service';
import { User } from '../_models/user';
describe('UserDataService', () => {
beforeEach(() => {
//TestBed is a utility provided by @angular/core/testing to
//configure and create an Angular testing... |
0d50de17117250c09a2957427e52d32b5bde86a0 | TypeScript | nguyer/aws-sdk-js-v3 | /clients/node/client-cloudfront-node/types/_S3Origin.ts | 2.78125 | 3 | /**
* <p>A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.</p>
*/
export interface _S3Origin {
/**
* <p>The DNS name of the Amazon S3 origin. </p>
*/
DomainName: string;
/**
* <p>The CloudFront origin access ide... |
3a69b9212526cedf22dff23565231918833088e0 | TypeScript | Pedroh1510/encurtador-url | /src/useCases/GetUrl/GetUrlUseCase.ts | 2.640625 | 3 | import { IUrlRepository } from '@/repositories/IUrlRepository'
import { IGetUrlResponseDTO, IGetUrlRequestDTO } from './IGetUrlDTO'
export class GetUrlUseCase {
constructor (
private urlRepository: IUrlRepository
) {}
async execute (data:IGetUrlRequestDTO):Promise<IGetUrlResponseDTO> {
const originalUr... |
26af2da8736504fbd11eebd8ca3cd83037dd6f01 | TypeScript | AliceCengal/CanvasPractice | /raw.ts | 3.109375 | 3 |
function createArray(length) {
var arr = new Array(length || 0),
i = length;
if (arguments.length > 1) {
var args = Array.prototype.slice.call(arguments, 1);
while(i--) arr[length-1 - i] = createArray.apply(this, args);
}
return arr;
}
function sign(num: number): number {
i... |
f19c503162403269faf3f5fe7697681963e05921 | TypeScript | iamlazy-dev/app | /packages/core/src/product-database/data/FakerRepository.ts | 2.671875 | 3 | import { commerce, datatype, random } from 'faker/locale/id_ID'
import { DataError } from '../../shared/domain/DataError';
import { Either } from '../../shared/domain/Either';
import { Product } from '../domain/Model';
import { ProductRepository } from '../domain/Repository';
const seed: Product[] = Array.from(Array(2... |
7d9d73cc370a83e0dca285400a3190149d54b17f | TypeScript | palmohit124/goodcode | /src/app/core/reducers/auth.reducer.ts | 2.640625 | 3 | import { AuthState, EmptyAuthState } from '../../models/user-tokens';
import { authActions } from '../actions';
export function reducer(state: AuthState = EmptyAuthState, action: authActions.Actions): AuthState {
switch (action.type) {
case authActions.AUTH_STATE_LOAD_SUCCEEDED:
case authActions.SAVE_AUTH_ST... |
3cdd933e556b87c6b0b3146fd5707ad1d00e2e4c | TypeScript | bcgov/embc-ess | /embc-app/ClientApp/src/app/core/services/cookie.service.ts | 2.65625 | 3 | import { Injectable, Inject } from '@angular/core';
import { DOCUMENT } from '@angular/common';
@Injectable({
providedIn: 'root'
})
export class CookieService {
constructor(@Inject(DOCUMENT) private document: Document) { }
set(key: string, value: string, expires?: Date): void {
let cookieValue = `${key}=${... |
0a6e7eeafd5a22fa34ad57cf171f5415bfa6ee13 | TypeScript | GaiaWorld/gaia_wallet | /src/app/view/guidePages/setLockScreenScret.ts | 2.625 | 3 | /**
* set lock-screen psw
*/
import { popNew } from '../../../pi/ui/root';
import { Widget } from '../../../pi/widget/widget';
import { lockScreenHash,setLocalStorage } from '../../utils/tools';
interface Props {
jump?:boolean;
title1?:string;
title2?:string;
}
export class SetLockScreenScret extends Wid... |
e9b5b786324c1c7f336c2790a781ac4363e7dc6e | TypeScript | nerialexandre/backend-gobarber-ts | /src/app/services/authentication/UserAuthenticationService.ts | 2.703125 | 3 | import { compare } from 'bcryptjs';
import UserRepository from '../../repositories/UserRepository';
import User from '../../models/User';
import Jwt from '../../libs/jwt';
import config from '../../../config/config';
interface Request {
email: string;
password: string;
}
interface Response {
user: User;
token... |
5b3820645e33b1bb27dea6dcae030cfee0e049f1 | TypeScript | TEAM-B-SOFT2020/LSDFrontEnd | /src/routes/api/api.ts | 2.65625 | 3 | // libraries
import * as express from 'express';
// classes, interfaces & functions
//import Contract from '../contract';
//import { IReservationSummary } from 'contract/src/dto/reservation';
//const contract = new Contract();
const router: express.Router = express.Router();
// middleware for json parsing
router.us... |
4cbf6a45cff4a71bda341d7e867ac0dbca54c8e4 | TypeScript | AlissonGiron/CloudniteClient | /src/game/Entities/Player.ts | 2.875 | 3 | import { Vector3 } from "babylonjs";
export enum Team {
Blue,
Red
}
export class Player {
public Id: string;
public Team: Team;
public Body: BABYLON.AbstractMesh;
public Pivot: BABYLON.AbstractMesh;
public AttackMesh: BABYLON.AbstractMesh;
public LastLife: number;
public executeA... |
1e203cb0bfa7064cd894088d112aaae1eb820e58 | TypeScript | DJ956/UdonGuidApp | /UdonApp/src/app/model/request/Auth/UserRegistryRequest.model.ts | 2.671875 | 3 | /**
* ユーザ登録リクエストモデル
*/
export interface UserRegistryRequestModel {
/**登録ユーザ名 */
UserName: string;
/**パスワード */
Password: string;
} |
d20df51e5d327ae9f9dae3958ef582971c6065a2 | TypeScript | b-haytham/react-native-job-finder | /src/redux/user/user_slice.ts | 2.765625 | 3 | import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { CURRENT_USER } from "../data";
import { User } from "../data_types";
// Define a type for the slice state
interface UserState {
loading: boolean;
current_user: User;
error: string | null;
}
// Define the initial state using that type
... |
a88804b1f40dee5a55206fee86366ec2c424a9ec | TypeScript | WaleedAshraf/metaphysics | /src/schema/v1/me/__tests__/followed_shows.test.ts | 2.578125 | 3 | /* eslint-disable promise/always-return */
import { runAuthenticatedQuery } from "schema/v1/test/utils"
import gql from "lib/gql"
import cityData from "schema/v1/city/cityDataSortedByDisplayPreference.json"
import { LOCAL_DISCOVERY_RADIUS_KM } from "schema/v1/city/constants"
const stubResolver = () => Promise.resolve(... |
f4caa175f2077802b6a9e5e63bac08394ad6a1a8 | TypeScript | aaronksaunders/angular2-ngrx-test | /src/app/list/list.component.ts | 2.71875 | 3 | //
// @see https://gist.github.com/btroncone/a6e4347326749f938510#taking-advantage-of-changedetectiononpush
// for information on ChangeDetectionStrategy
import {ListItem, AppState} from './../listStore';
import {Store} from '@ngrx/store';
import {Component, OnInit, Input, Output, EventEmitter, ChangeDetectionStrategy... |
db4451653cf490463b75188145e7ae7d8b4d50d1 | TypeScript | UD-CISC374/coding-2-try-phaser-mtmiller0417 | /src/scripts/objects/asteroid.ts | 2.921875 | 3 | export default class Asteroid extends Phaser.GameObjects.Sprite {
maxVelocity:number = 7;
minVelocity:number = 3;
x_vel:number = 0;
y_vel:number = 0;
scene: Phaser.Scene;
sceneWidth: number;
sceneHeight: number;
constructor(scene: Phaser.Scene) {
super(scene, 0, 0, 'asteroid-... |
6a16d140267fc0bbf2866c2115375b7c9c9314ef | TypeScript | sf-entr-fin-soleng/test | /server/src/api/utils.ts | 2.65625 | 3 | import * as moment from 'moment'
const generate = require('nanoid/generate')
const alphabet =
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
function parseObject(row) {
return Object.assign(
{ ...JSON.parse(row.data) },
{
id: row['id'],
parentId: row['parentid'],
type: row['type'],
... |
2a603177a1270532f689c16026844f82b3ac8c27 | TypeScript | hieuctfe/Examination-Tool | /.svn/pristine/e5/e5160863a725b1a21add943d0ba8a8e1afc390d7.svn-base | 2.5625 | 3 | import {Deserializable} from '../interface/deserialize.interface';
export class Chapter implements Deserializable {
id: number;
name: string;
order: number;
courseCode: string;
checked: boolean;
deserialize(input: any): this {
Object.assign(this, input);
return this;
}
}
|