id
stringlengths
1
3
code_masked
stringlengths
797
182k
target
stringlengths
3
41
500
import { ethers } from 'hardhat'; import { assert, expect } from 'chai'; import { Contract, ContractFactory, ContractReceipt, ContractTransaction, } from 'ethers'; const { getContractFactory } = ethers; const deploy = async ( [MASK] : string): Promise<Contract> => { const MyContract: ContractFacto...
contractName
501
import { test, expect } from '@playwright/test'; test('baidu search result', async ({ page }) => { await page.goto('https://www.baidu.com'); // 搜索设置 id="kw" #kw await page.locator('#kw').fill('title:(playwright)') await page.locator('#kw').press('Enter'); // await page.locator('#su').click(); await page.w...
elems
502
// Copyright (c) The Aptos Foundation // SPDX-License-Identifier: Apache-2.0 import assert from "assert"; import fs from "fs"; import { NODE_URL, FAUCET_URL } from "./first_transaction"; import { AptosAccount, AptosClient, TxnBuilderTypes, BCS, MaybeHexString, HexString, FaucetClient } from "aptos"; import { publishMo...
modulePath
503
import * as path from "path"; import exec from "execa"; import * as fs from "fs-extra"; import { Client as SSH } from "ssh2"; import chalk from "chalk"; import { DockposerOptions, DockposerBuildOptions, DockposerDeployOptions } from "./type"; export default class Dockposer { constructor(public options: Dockpos...
outputFile
504
import _ from 'lodash'; interface RawStyleType { id: number; name: string; routePath?: string; description: string; descriptiveImagePath: string; } interface StyleType extends RawStyleType { routePath: string; } const STYLE_TYPE_IDS: { [key: string]: number; } = { JR_WEST: 0, JR_EAST...
value
505
import { shim as promiseFinallyShim } from 'promise.prototype.finally'; promiseFinallyShim(); type SynchronizedFunction<T> = (isFirst?: boolean) => PromiseLike<T> | T; interface IWorkQueueItem<T> { fn: SynchronizedFunction<T>; resolve: () => T; reject: (err: any) => void; } function removeReduce<T>(arr: T[], r...
initial
506
/******************************************************************************* * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2019. All Rights Reserved. * * Note to U.S. Government Users Restricted Rights: * Use, duplication or disclosure restricted by GSA ADP Schedule * Contract with I...
allRoutes
507
export function generatePassword(): string { const lowercase = 'abcdefghijklmnopqrstuvwxyz'; const uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; const digits = '0123456789'; const symbols = '!@#$%^&*()_+-=[]{}|;:,.<>?'; // Ensure at least one of each required character type const password = [ lowercase[Mat...
allChars
508
const service = { getMenuDatas(): Array<Record<string, any>> { const [MASK] : Array<Record<string, any>> = [ { id: 1001, title: '测试 SButton', subTitle: 'hello', path: '/testButton' }, { id: 1002, title: '测试 SMessageBox', path: '/testMessa...
list
509
import { SPACE_BASE_SIZE, SPACE_UNIT_FIXED, SPACE_UNIT_RELATIVE, } from './Space.tokens'; /** * Spaces are defined to achieve consistent spacing between layouts. * Inspired by Atlassian spacing, use 8px base unit. * It has 10 levels from 0px to 80px * 1rem equals to 16px(which is twice of a unit). * https:/...
multiplicand
510
import { Request, Controller, Post, UploadedFile, UseInterceptors, UseGuards, Body, Get, } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/platform-express'; import { diskStorage } from 'multer'; import { extname } from 'path'; import { ApplicationsService } from './applications.service'...
uniqueName
511
import { Codec, Decider, ITimelineEvent, StreamId, StreamName } from "@equinox-js/core" import { InvoiceId, PayerId } from "./identifiers.js" import * as Payer from "./payer.js" import z from "zod" import { EmailSender, ISendEmails } from "./send-email.js" import * as Config from "../config/equinox.js" import * as Invo...
emailer
512
import * as fs from 'fs'; import got from 'got'; import { Token, OAuthProviderConfig } from '../index'; import * as os from 'os' const homedir = os.homedir() const BACKOFF_TOKEN_ENDPOINT_FAILURE = 1000 type TokenGrantAudiences = 'OPERATE' | 'ZEEBE' | 'OPTIMIZE' | 'TASKLIST' | 'CONSOLE' export class OAuthProviderImpl...
current
513
import { Component, ElementRef, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { CommonModule } from '@angular/common'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import { Subscription } from 'rxjs'; import { Message } from './mode...
text
514
import { performance } from 'perf_hooks'; import { ContinuationMetrics } from '../profiling/continuation-tracker'; import { disableProfiling, enableProfiling, getExecutionMetrics, } from '../profiling/flow-control'; import { FlowMetrics, Statistics } from './flow-metrics'; const allMetrics: Map<string, Flo...
stats
515
import express, { Request, Response } from "express"; import axios from "axios"; import { body, param } from "express-validator"; import _ from 'lodash'; import * as dotenv from "dotenv"; import nodemailer from "nodemailer"; import { EmployeeTable } from './interface'; import { EmployeeService } from "../services"; co...
employeesByManager
516
import _ from 'lodash'; import moment from 'moment'; import TableModel from 'grafana/app/core/table_model'; import scriptjs from 'scriptjs'; import { DataSourceApi, DataSourceInstanceSettings, DataQueryRequest } from '@grafana/data'; import { GoogleSpreadsheetsQuery, GoogleSpreadsheetsOptions } from './types'; export ...
instanceSettings
517
import { appState } from './app.state'; export function getLevel(score: number): number { let left = 1; let [MASK] = appState.preComputedScores.length - 1; while (left < [MASK] ) { const mid = Math.floor((left + [MASK] ) / 2); if (appState.preComputedScores[mid] <= score) { left = mid + 1; ...
right
518
import { Component, Input, OnInit } from '@angular/core'; import { ChurrascometroService } from '../../services/churrascometro.service'; import { churrascosRoutes } from '../../../churrascos.routes'; import { CommonModule } from '@angular/common'; import { MatButtonModule } from '@angular/material/button'; import { Rou...
bebidas
519
import { Component, OnInit, Inject } from '@angular/core'; import {MD_DIALOG_DATA, MdDialogRef } from '@angular/material'; import { FormGroup, FormControl, FormBuilder, Validators } from '@angular/forms'; @Component({ selector: 'app-create-process-dialog', templateUrl: './create-process-dialog.component.html', ...
dataReceive
520
/** * SCRU160: Sortable, Clock and Random number-based Unique identifier * * @license Apache-2.0 * @copyright 2021 LiosK * @packageDocumentation */ import { randomFillSync } from "crypto"; export { scru160, scru160f }; /** Represents SCRU160 ID generator. */ class Generator { /** * Generates a new SCRU160...
tsBytes
521
import { ConditionPreset } from '../interfaces/conditionPreset'; export const releaseConditionPresets: ConditionPreset[] = [ { key: 'custom', name: 'Custom Condition', description: 'Manually configure the payment release criteria', conditionApi: '', conditionField: '', conditionFieldType: 'te...
item
522
/** * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * 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 applicabl...
isUsing24hFormat
523
/** * @license * Copyright 2024 <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 agre...
newFile
524
import EventEmitter from './util/EventEmitter'; import { PlaybackState } from '@eyevinn/web-player-core'; import type { IPlayerState } from '@eyevinn/web-player-core'; const LIVE_EDGE = 20; // seconds from edge considered live const LIVE_SEEKABLE_MIN_DURATION = 300; // require 5 min to allow seeking on live content l...
castSession
525
import { Component, OnInit } from '@angular/core'; import { ComposerPerishableGoodsService } from './composer.service'; import {Observable} from 'rxjs/Observable'; import * as moment from 'moment'; import { HttpClient, HttpHeaders, HttpErrorResponse } from '@angular/common/http'; import {EventCorrelationService} from '...
clearClauseURL
526
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge'; import { PLATFORM_NAME, PLUGIN_NAME } from './settings'; import { LutronHomeworksPlatformAccessory } from './platformAccessory'; import { SerialPort } from 'serialport'; import { ReadlineParser ...
existingAccessory
527
import * as fs from 'fs'; import * as yaml from 'js-yaml'; import prettier from 'prettier'; interface TypeDefObjectBase { type: string; } interface StringTypeDef extends TypeDefObjectBase { type: 'string'; } interface BooleanTypeDef extends TypeDefObjectBase { type: 'boolean'; } interface IntegerTypeDef extend...
specFile
528
export type KeyringState = { is_locked: boolean; passphrase_support_enabled: boolean; can_save_passphrase: boolean; user_passphrase_set: boolean; needs_migration: boolean; migration_in_progress: boolean; migration_skipped: boolean; allow_empty_passphrase: boolean; min_passphrase_length: number; }; co...
action
529
import { v } from 'convex/values'; import { Id } from './_generated/dataModel'; import { mutation, query } from './_generated/server'; // Queries export const getBlogPosts = query({ args: { authorId: v.optional(v.string()), limit: v.optional(v.number()), cursor: v.optional(v.string()), }, handler: ...
hasMore
530
import { Contextual } from './components/Contextual'; import { TableRow } from './components/table'; class PermissionsTableRow extends TableRow {} class UsersTab { visit( [MASK] : string, wait = true) { cy.visitWithLogin(`/modelRegistrySettings/permissions/${ [MASK] }`); if (wait) { this.wait(); }...
mrName
531
import { EmbedBuilder, bold, PermissionFlagsBits, ActionRowBuilder, ButtonBuilder, ButtonStyle, inlineCode, ButtonInteraction, ComponentType, } from 'discord.js'; const Command: Moderation.ICommand = { usages: ['allvm', 'allmute', 'herkesisustur', 'hsustur', 'muteall'], desc...
reason
532
'use strict'; import {size} from 'lodash'; import PrefPaper from 'preferans-paper-js'; import PrefScoreHand from './prefScoreHand'; import PrefScoreHandGame from './prefScoreHandGame'; import PrefScoreHandRefa from './prefScoreHandRefa'; import {PrefDesignation, PrefScoreMain, PrefScoreFollower} from './prefScore.type...
mainPaper
533
import { v4 as uuidv4 } from 'uuid'; import { VehicleStatus, VehicleType } from '../vehicles/vehicles-data.js'; import { Server } from '../../base/base.js'; import { DictionariesRoutes } from './dictionaries-routes.js'; import { Request, Response } from 'express'; import { DelayHandler } from '../../shared/services/del...
dictionary
534
/** * Lightweight in-memory cache to speed-up authorization processes. * * TODO: extend this with some cross-container cache such as redis or memcached */ import { createHash } from 'node:crypto'; const sha256 = (str: string) => createHash('sha256').update(str).digest('hex'); type CachedValue<T> = { value: T; ...
opts
535
import Rule from "@/model/types/Rule"; import Game from '@/model/types/Game'; import RuleModifiers from "@/model/types/RuleModifiers"; const rounds = 10; const start = 5; const discs = 5; const Fifty: Rule = { id: "fifty", rounds: rounds, distances: ( [MASK] ?: RuleModifiers) => { return [MASK] && [MASK] .sta...
modifiers
536
import { createRouter, createWebHashHistory, type RouteRecordRaw, } from "vue-router"; import { useAuthStore } from "@/stores/auth"; import { useConfigStore } from "@/stores/config"; const routes: Array<RouteRecordRaw> = [ { path: "/dashboard", redirect: "/dashboard", component: () => import("@/lay...
configStore
537
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import DefineOptions from 'unplugin-vue-define-options/vite' import path from 'path' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue(), DefineOptions(), { name: 'dts', generateBundle(_, bundle) { const de...
format
538
import UserModel from "@/model/User"; import dbConnect from "@/lib/dbConnect"; import { getServerSession, User } from "next-auth"; import mongoose from "mongoose"; import { authOptions } from "../../auth/[...nextauth]/options"; export async function DELETE(request:Request, {params}:{params:Promise<{id:string}>}) { ...
session
539
import {debug, info, setFailed, warning} from '@actions/core' import {SynopsysToolsParameter} from './synopsys-action/tools-parameter' import {cleanupTempDir, createTempDir} from './synopsys-action/utility' import {getBridgeDefaultPath, SynopsysBridge} from './synopsys-action/synopsys-bridge' import {validateBlackDuckI...
tempDir
540
import Tail from "tail"; import {QColor, QLabel, QTableView, QTableWidget, QTableWidgetItem, QTextBrowser, QVariant} from "@nodegui/nodegui"; const options = {separator: /[\r]{0,1}\n/, fromBeginning: true, fsWatchOptions: {}, follow: true, logger: console}; export function watchAFile(filePath: string, table: QTa...
cell
541
import Role from './role'; import { utility } from './utility'; const { ccclass, property } = cc._decorator; enum Direction { LEFT = 0b0010, FRONT = 0b0001, BACK = 0b1000, RIGHT = 0b0100, } enum MouseBtn { LEFT = 0, WHELL = 1, RIGHT = 2, } @ccclass export default class Game extends cc.Co...
frames
542
import { defineMock } from "./base"; export default defineMock([ { url: "dict/:code/options", method: ["GET"], body: ({ params }) => { const [MASK] = params.code; let list = null; if ( [MASK] == "gender") { list = [ { value: "1", label: "男"...
typeCode
543
import envConfig from '../config/env'; import { IK6Options, IRequestConfig, ITestConfig, } from '../interfaces/ITestDefinitions'; import { http, check, group, sleep, htmlReport, textSummary, } from 'src/common/config/generalImports'; import * as customScenarios from 'src/common/config/scenarios'; /**...
minSleep
544
/* * Copyright (c) 2018. Taimos GmbH http://www.taimos.de */ import {writeFileSync} from 'fs'; import {mkdirpSync} from 'fs-extra'; import {createAudioPlayerIntents, createDisplayIntents, readIntentsFromYAML} from './intents'; import {readTypesFromYAML} from './types'; import {VoiceInterface} from './voicemodel'; e...
generatedVUI
545
/** * @file This is for the plugin to load Bayes Classifier model. */ import { ModelDefineType, UniModel, ModelDefineArgsType, CsvDataset, CsvSample } from '@pipcook/pipcook-core'; import * as assert from 'assert'; import * as path from 'path'; import { processPredictData, getBayesModel, loadModel } from './script';...
processData
546
import { Buffer } from "./Buffer"; import { Framebuffer } from "./Framebuffer"; import { Program } from "./Program"; import { Texture } from "./Texture"; /** * A TypeScript Port of IglooJS - taken from https://github.com/skeeto/igloojs * */ export const GL_RGBA : number = 0x1908; export const GL_CLAMP_TO_EDGE:numb...
filter
547
/* * * VirtualYou Project * Copyright 2023 <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 l...
sequelize
548
import { IMiddleware } from '@midwayjs/core'; import * as _ from 'lodash'; import * as jwt from 'jsonwebtoken'; import { ALL, Config, Init, Middleware } from '@midwayjs/decorator'; import { NextFunction, Context } from '@midwayjs/koa'; import { RESCODE } from '@cool-midway/core'; @Middleware() export class ManageMiddl...
tokenb
549
'use strict'; // The module 'vscode' contains the VS Code extensibility API // Import the module and reference it with the alias vscode in your code below import * as vscode from 'vscode'; // this method is called when your extension is activated // your extension is activated the very first time the command is execut...
folderPath
550
/// <reference path="../typings/arcgis-js-api.d.ts"/> import Polygon = require("esri/geometry/Polygon"); import Point = require("esri/geometry/Point"); import geometryEngine = require("esri/geometry/geometryEngine"); export class PolygonUtils{ constructor() { } public getCurrentDistanceFromCentroid...
polygonVertecies
551
import type { PrimitiveType } from "@sap-ux/vocabularies-types"; import merge from "sap/base/util/merge"; import type { FEView } from "sap/fe/core/BaseController"; import type { _RequestedProperty } from "sap/fe/core/CommonUtils"; import CommonUtils from "sap/fe/core/CommonUtils"; import type { PathInModelExpression } ...
firstInvalidParameter
552
/// <reference types="vite/client" /> import { defineConfig } from 'vite' import solidPlugin from 'vite-plugin-solid' export default defineConfig({ plugins: [solidPlugin()], build: { cssTarget: 'chrome61', sourcemap: true, rollupOptions: { external: ['tradingsoccerlib'], output: { ...
chunkInfo
553
import {API, PlatformAccessory, Service} from 'homebridge'; export class ServiceHelper { service: Service; private readonly _api: API; get api(): API { return this._api; } /** * Returns the service display name */ get serviceDisplayName(): string { return (this.service.getCharacteristic(...
serviceType
554
// Adapted from: https://github.com/Shadowman4205/react-leaflet-curve/blob/master/src/Curve.js // to prevent its bundled (outdated?) Leaflet.curve from polluting the existing dependencies. import { Path, PathProps, withLeaflet } from 'react-leaflet'; import L from 'leaflet'; import '@elfalem/leaflet-curve'; interfac...
fromProps
555
import * as core from '@actions/core'; import * as childProcess from 'child_process'; import * as fs from 'fs'; import * as process from 'process'; /** * Run a specified command. * @param {string} cmd - command to run */ function runCmd(cmd: string) { try { console.log(`RUNNING: "${cmd}"`) childProcess.ex...
repo
556
import "reflect-metadata"; import * as Koa from "koa"; import * as Router from "koa-router"; import * as bodyParser from "koa-bodyparser"; import * as logger from "koa-logger"; import * as json from "koa-json"; import * as path from "path"; import * as koaStatic from "koa-static"; import * as koaSession from "koa-sessi...
wss
557
import { HttpStatus, Injectable } from '@nestjs/common'; import { TaskRes } from './common/Classess'; import { MailService } from "./modules/core/mail/mail.service"; import { MailBasicDto } from "./modules/core/mail/dto/mail-basic.dto"; @Injectable() export class AppService { constructor( private readonly mailSe...
mailDto
558
import { IntentClassifier } from '../../../src/ai/nlp/intent-classifier.js'; describe('IntentClassifier', () => { let classifier: IntentClassifier; beforeEach(() => { classifier = new IntentClassifier(); }); describe('Basic Intent Classification', () => { it('should classify turn_on c...
basicRequest
559
import log from 'electron-log'; import fetch from 'node-fetch'; import { ManagerPool } from './types'; const METRICS_KEYS = [ /pravega_segmentstore_segment_read_bytes_global_total/, /pravega_segmentstore_segment_write_bytes_global_total/, /pravega_segmentstore_segment_read_latency_ms_seconds{host="\w+",qu...
timer
560
import { IJSONSerializable } from '../utils/json.serializable.interface' import { HeartRateZone } from './heart.rate.zone' import { IJSONDeserializable } from '../utils/json.deserializable.interface' export class HeartRateItem implements IJSONSerializable, IJSONDeserializable<HeartRateItem> { private _date: string...
average
561
import { ethers, run } from "hardhat"; import "@nomiclabs/hardhat-ethers"; async function main() { // Fetch the deployer account const [deployer] = await ethers.getSigners(); console.log("Deploying contracts with the account:", deployer.address); // Get the contract factory for MultiSend and deploy const Mu...
multiSend
562
import {createRouter, createWebHistory} from 'vue-router' import store from "@/store"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', redirect: '/coaches', }, { name: 'coaches', path: '/coaches', component: () => i...
requiredAuth
563
import { render } from '@testing-library/svelte' import type { Policy } from 'uds-core-types/src/pepr/operator/crd/generated/exemption-v1alpha1' import ExemptionPolicies from './component.svelte' describe('Policies', () => { test('renders empty list when no policies are provided', () => { const { container } = ...
listItems
564
import { getUserExerciseHistory } from '../../../../../lib/databaseConnection'; export async function GET(request: Request, [MASK] : any) { try { const { params } = [MASK] ; const userId = params?.userId; const userIdNum = parseInt(userId); const { searchParams } = new URL(request.url); co...
context
565
//判断滚动方向 let sLeft = 0, sTop = 0; export function scrollToPosition(el): string { if (sLeft !== el.scrollLeft) { sLeft = el.scrollLeft; return 'horizontal'; } if (sTop !== el.scrollTop) { sTop = el.scrollTop; return 'vertical'; } } // 二分查找法 function binarySearch(offset...
endIndex
566
import { AxiosPromise } from 'axios'; import server from '../../../services/server'; export default class BaseContentService { baseUri: string = ''; constructor(baseUri: string) { this.baseUri = baseUri; } get(size: number, current: number, keyword: string, status: string, tags: string[]): Axio...
creationDTO
567
import { Component, OnInit } from '@angular/core'; import { Router, NavigationEnd, NavigationStart } from '@angular/router'; import { Subscription } from 'rxjs/Subscription'; @Component({ selector: 'app-my-app', templateUrl: './app.component.html' }) export class AppComponent implements OnInit { private _ro...
modalBackdrop
568
import * as pulumi from "@pulumi/pulumi"; import * as aws from "@pulumi/aws"; import { startupScript } from '../startupScript'; import { securityGroup } from './security-group'; const config = new pulumi.Config(); const machineType = config.require("machineType"); export const instance = aws.getCallerIdentity({}).the...
runnerInstance
569
// Copyright 2017-2021 @polkadot/hw-ledger authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { ResponseBase, SubstrateApp } from '@zondax/ledger-substrate'; import type { AccountOptions, LedgerAddress, LedgerSignature, LedgerTypes, LedgerVersion } from './types'; import { transports } from '@r...
promise
570
module forms { var app = angular.module('multiForms', []); app.controller('formShippingCtrl', ['checkoutService', '$scope', (checkoutService, $scope) => { $scope.model = checkoutService.checkoutModel.shipping; $scope.validate = () => { return $scope.shippingForm.$valid; }; }]); app.controller('formBillin...
billingInfo
571
import defaults from 'lodash/defaults'; import { DataQueryRequest, DataQueryResponse, DataSourceApi, DataSourceInstanceSettings, MutableDataFrame, FieldType, } from '@grafana/data'; import { MyQuery, MyDataSourceOptions, defaultQuery } from './types'; import { ProjectMetrics } from 'metrics/types'; import...
frameSets
572
import {Aprendiz, NivelEducativo} from './aprendiz.js'; import {Curso} from './curso.js'; import {Carrera} from './carrera.js'; import {Trabajo} from './trabajo.js'; let cursos = [new Curso("Applied Data Science with Python Specialization", 140, "Python", "University of Michigan", 2023), new Curso("Software Design and...
tbodyAprendiz
573
/* jshint esnext: true */ /* jshint node: true */ "use strict"; const arrEquals = (a1, a2) => JSON.stringify(a1) === JSON.stringify(a2); const contains = (coll, item) => coll.indexOf(item) > -1; const pad2 = n => { const s = "" + n; return (s.length < 2) ? (" " + s) : s; }; interface ICell { draw(): string; ...
perms
574
import axios from 'axios'; import { AppError } from '../middleware/errorHandler'; import { TicketInfo } from '../models/ticket'; export class YouTrackService { private getAxiosInstance() { const baseUrl = process.env.YOUTRACK_BASE_URL; const [MASK] = process.env.YOUTRACK_API_TOKEN; return axios.create...
apiToken
575
import Color = JVM.java$.awt$.Color; import File = JVM.java$.io$.File; import JavaBoolean = JVM.java$.lang$.Boolean; import JavaFloat = JVM.java$.lang$.Float; import JavaInteger = JVM.java$.lang$.Integer; import JavaLong = JVM.java$.lang$.Long; import JavaString = JVM.java$.lang$.String; import System = JVM.java...
newObject
576
import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { BarcodeScanner, BarcodeScannerOptions } from '@ionic-native/barcode-scanner'; /** * Generated class for the BarcodePage page. * * See https://ionicframework.com/docs/components/#navigation for mor...
barcodeData
577
import { Db, Collection, ObjectID, FilterQuery } from 'mongodb'; import { IdiomOperationResult, OperationStatus, IdiomChangeProposal, QueryIdiomChangeProposalsArgs, MutationAcceptIdiomChangeProposalArgs, MutationRejectIdiomChangeProposalArgs } from '../_graphql/types'; import { DbIdiom, DbIdiomChangeProposal, IdiomProp...
dbProposals
578
import axios from 'axios'; import { url } from '../utils/Utils'; import { UserCredentials } from '../types'; const api = axios.create({ baseURL: url(), data: {}, }); export const createDefaultFormData = ( [MASK] : UserCredentials) => { const formData = new FormData(); if ( [MASK] ?.uri) { formData.append(...
userCredentials
579
import { Component, OnInit } from '@angular/core'; import { MovieService } from 'src/app/services/movie.service'; import { MOVIE } from 'src/app/model/model.api'; import { delay } from 'rxjs/operators'; import { timer } from 'rxjs'; import { ActionSheetController } from '@ionic/angular'; @Component({ selector: 'app-...
genders
580
import { useDyteMeeting, useDyteSelector } from '@dytesdk/react-web-core'; export function useActiveSpeaker() { const { meeting } = useDyteMeeting(); const isPinned = useDyteSelector((m) => m.self.isPinned); const lastActiveSpeaker = useDyteSelector( (m) => m.participants.lastActiveSpeaker ); const pin...
activeParticipants
581
import { Inject, Injectable } from '@angular/core'; import { HubConnection, HubConnectionBuilder, HubConnectionState, IHttpConnectionOptions, IStreamResult } from '@microsoft/signalr'; import { EnvironmentConfig, ENV_CONFIG } from './environment-config.interface'; @Injectable({ providedIn: 'root' }) export class Gam...
newMethod
582
import { Client } from '@notionhq/client'; import { GetPageResponse, QueryDatabaseResponse } from '@notionhq/client/build/src/api-endpoints'; import { BlockData } from "../../types/BlockData"; import { NotionPageUtils } from '../../utils/notionContent/NotionPageUtils'; import { NotionPageData } from '../../types/Notion...
notionApiKey
583
/* * Copyright 2023 <NAME> <<EMAIL>> * * 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 agree...
prefixTotalLength
584
import * as React from 'react'; import * as _ from 'lodash-es'; import fetchApi from './fetchApi'; import { ApiReadState } from './types'; const useGetApi = <T>( apiState: ApiReadState | null ): [T | null, boolean, Error | null] => { const [data, setData] = React.useState<T | null>(null); const [error, setError]...
hasData
585
export class FargateResources { public static readonly cpu250m = { mem512m: new FargateResources(250, 512), mem1g: new FargateResources(250, 1024), mem2g: new FargateResources(250, 2048), }; public static readonly cpu500m = { mem1g: new FargateResources(500, 1024), mem2g: new FargateResources(...
cpuRaw
586
import { Component } from '@angular/core'; import { DeviceService } from '../device/device.service'; import { DeviceComponent } from '../device/device.component'; import { PainelComponent } from '../painel/painel.component'; @Component({ moduleId: module.id, selector: 'listagem', templateUrl: './listagem.c...
indice
587
/** * Copyright 2020 Vercel Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
userEmails
588
import { API, Logger, AccessoryConfig, Service, AccessoryPlugin, CharacteristicValue, Characteristic, } from 'homebridge'; import { Switch, Lightbulb } from 'hap-nodejs/dist/lib/definitions'; interface Config extends AccessoryConfig { delay: number; switchName: string; lightName: string; } export ...
lightCharacteristics
589
import { readLastHistory } from './history'; import dayjs from 'dayjs'; export type Issue = { id: number; title: string; link: string; number: number; } type IssueReponse = { html_url: string; title: string; id: number; number: number; } type MilestoneResponse = { title: string; ...
lastHistory
590
// Copyright (c) Microsoft Corporation. All rights reserved. export const WEBOS_SETTINGS_APP_ID = 'com.palm.app.settings'; export const WEBOS_FIRST_USE_OVERLAY_APP_ID = 'com.webos.app.firstuse-overlay'; export const WEBOS_BLUETOOTH_MENU_TARGET = 'ConnectBluetooth'; export const WEBOS_NEARBY_DEVICES_TARGET = 'NearbyDe...
appId
591
import { AuthError, User } from '@supabase/supabase-js'; import { supabase } from './SupabaseService'; interface SignUpResponse { user: User | null; error: AuthError | null; } interface SignInResponse { user: User | null; error: AuthError | null; profile?: any; } export const signUp = async ( email: stri...
updates
592
import { BufferBuilder, ByteOrder } from "@triforce-heroes/triforce-core"; import { BuilderError } from "./errors/BuilderError.js"; export type BuilderCallback<T = unknown> = ( data: T, { builder, build, error, }: { builder: BufferBuilder; build(name: string, data: unknown): unknown; err...
builderName
593
/** * Extracts headings from markdown content * @param content - The markdown content * @returns An array of heading objects with depth, slug, and text */ export async function getHeadings(content: string) { // Regular expression to match markdown headings const headingRegex = /^(#{1,6})\s+(.+)$/gm; const hea...
minutes
594
import { Body, Config, Inject, Post, Provide } from '@midwayjs/decorator'; import { CoolController, BaseController, CoolWxPayConfig, CoolAliPayConfig, } from '@cool-midway/core'; import { CoolAliPay, CoolWxPay } from '@cool-midway/pay'; // @ts-ignore import AlipayFormData from 'alipay-sdk/lib/form'; // @ts-igno...
payInfo
595
/* Copyright 2016 CIL (<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 agreed to in wr...
joint
596
import {AnyAction} from 'redux'; export interface State<T> { [key: string]: T; } export type ItemReducer<T> = (state: T | undefined, action: AnyAction, id: string) => T | undefined; export type GetId<T> = (action: AnyAction, state: State<T>) => string | undefined; export function byId<T>(getId: GetId<T>, itemReduce...
agg
597
import { Component, OnInit, ViewChild, AfterViewInit } from "@angular/core"; import { CdkVirtualScrollViewport } from "@angular/cdk/scrolling"; import { Image, toImageList } from "../../image"; import { HttpService } from "../http.service"; import { Throttler } from "src/throttler"; const MIN_ITEM_HEIGHT = 300; // in...
height
598
import * as core from '@actions/core'; import {getExecOutput} from '@actions/exec'; import * as tools from '@actions/tool-cache'; import * as github from '@actions/github'; import * as path from 'path'; import {Octokit} from '@octokit/rest'; import {clean as semver_clean, compare as semver_compare} from 'semver'; impor...
versionOutput
599
import {Component, ElementRef, EventEmitter, Output, ViewChild} from '@angular/core'; import {Ingredient} from "../../../shared/ingredient.model"; @Component({ selector: 'app-shopping-edit', templateUrl: './shopping-edit.component.html', styleUrl: './shopping-edit.component.css' }) export class ShoppingEditCompo...
newIngredient