id stringlengths 1 3 | code_masked stringlengths 797 182k | target stringlengths 3 41 |
|---|---|---|
700 | import { AddressSpace, ConstructorFunc, Namespace, UADataType, UAObject, UAObjectType, UAReferenceType, UAVariableType } from "node-opcua";
import * as path from "path";
import { AssetObject, AASObject, EDSObject, SubmodelPropertyObject, SubmodelObject, ConceptDescriptionObject, ConceptDictionaryObject,
DataSp... | identifierDataType |
701 | import { Component, OnInit } from '@angular/core';
import { AbstractControl, FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { AlertInteractionService } from '../../services/alert-interaction.service';
import { LoginService } from '../../services/login.servic... | password |
702 | import dotenv from 'dotenv';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import pino from 'pino';
// Configure dotenv to load from project root
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const projectRoot = path.resolve(__dirname, '..', '.... | txId |
703 | import * as DefaultConfig from './config/config.default';
import { Configuration, Logger } from '@midwayjs/decorator';
import { ThrottlerFactoryService } from './service/throttler.service';
import { ThrottlerGuard } from './guard/throttler.guard';
//入口启动文件
@Configuration({
namespace: 'traffic-throttler',
importCon... | factory |
704 | /* eslint-disable node/no-callback-literal */
import { Client, GuildMember, VoiceChannel, VoiceState } from 'discord.js'
type Listener = (member: GuildMember) => any
type EventTypes = 'join' | 'leave' | 'empty' | 'first'
type EventListeners = { join: Listener[], leave: Listener[], empty: Listener[], first: Listener[] ... | oldState |
705 | import { Fluence, FluencePeer } from '../../index';
import fs from 'fs';
import { call } from '../_aqua/marine-js';
import { call_info } from '../_aqua/marine-js-logging';
describe('Marine js tests', () => {
beforeEach(async () => {
await Fluence.start();
});
afterEach(async () => {
await ... | peer |
706 | import { Marked } from 'marked';
import markedAlert from 'marked-alert'
import { markedHighlight } from 'marked-highlight';
import DOMPurify from 'dompurify';
import hljs from 'highlight.js';
window.customElements.define('highlight-code', class extends HTMLElement {
// Cached instances
private _marked: Marked | un... | node |
707 | import { Component, OnInit } from "@angular/core";
import { GameDataService } from "../services/gamedata/gamedata.service";
import { GameState } from "../models/gamestate";
import { Player } from "../models/player";
import { IGameData, GameData } from "../models/data/gamedata";
import { IMessage, MessageType } from ... | specialType |
708 | export type WeekDay = {
name: string
isWeekend: boolean
}
export type Month = {
name: string
dayCount: number
}
type Day = {
day: number
dayOfWeek: string
isWeekend: boolean
isNextMonth: boolean
isPrevMonth: boolean
}
type MonthDays = Day[]
type Calendar = {
month: string
year: numb... | longestMonthDayCount |
709 | import { CharacteristicValue, PlatformAccessory, Service } from 'homebridge';
import { ConnectLifeAcPlatformPlugin } from '../platform';
import { ConnectLifeApi } from '../lib';
import { WorkModes } from '../constants';
import { celsiusToFahrenheit, fahrenheitToCelsius } from '../utils';
export class TemperatureAccess... | _value |
710 |
import fs = require('fs');
import { createScanner, Token } from './Scanner';
export interface Key {
name: string;
params: string[];
line: number;
column: number;
}
export function extractKeysFromFile(file: string, callExpressionIdentifiers: string[]): Key[] {
const text = fs.readFileSync(file).to... | token |
711 | // Copyright 2024 <NAME>
import bcrypt from "bcrypt";
import fs from "fs";
import http from "http";
/* SERVER START UP */
if (process.argv.length < 3) {
console.error("expected a port to serve on in the second argument");
process.exit(1);
}
if (Number.isNaN(+process.argv[2])) {
console.error("expected an ... | symbol |
712 | import fs from 'fs-extra';
import path from 'node:path';
import _ from 'lodash';
import {
NftCollectionDatabaseEntry,
NftDatabaseEntry,
TraitDatabaseEntry,
TraitCategoryDatabaseEntry,
NftHasTraitDatabaseEntry,
ListingDatabaseEntry,
} from '@labralords/database';
import { formatCsv, makeCsvData } from '@labr... | formatedCollectionCsv |
713 | import Settings from "./Settings";
export default {
onLoad() {
const { metro, commands, logger } = vendetta;
const { sendBotMessage: sendEphemeralClydeMessage } = metro.findByProps("sendBotMessage");
function send(args, ctx) {
const options = new Map(args.map((option) => [option.name, option]));
const i... | url1 |
714 | import { ref } from "vue";
/* eslint-disable camelcase */
export function loadHistory() {
const history = []
for (let i = 0; i < window.localStorage.length; i++) {
if (window.localStorage.key(i)?.startsWith("history")) {
const json = window.localStorage.getItem(window.localStorage.key(i)!);
const ... | jsonuwu |
715 | import { ref, watch } from "vue";
import { Board } from "~/types/Board";
import { Camel, CamelColor } from "~/types/Camel";
import { DiceValue } from "~/types/DiceResults";
import { FinalWager } from "~/types/FinalWager";
import { GameState } from "~/types/GameState";
import { Player } from "~/types/Player";
import { A... | moveDirection |
716 | // 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';
import fs from 'fs';
import path from 'path';
import { YamlFileReferenceDataProvider } from './yamlFileReference';
import { findMatchesInText } f... | resolvedPath |
717 | import express from "express";
import cors from "cors";
import morgan from "morgan";
import { config } from "./config/config";
import reportRoutes from "./routes/report";
// 打印配置信息(注意不要打印敏感信息)
console.log('Starting server with config:', {
port: config.port,
model: config.openaiModel,
baseURL: config.openaiBaseUR... | promise |
718 | /*
* (c) Copyright Ascensio System SIA 2022
*
* 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 ... | rest |
719 | import { test, expect } from "@playwright/test";
test("Successfully submit contact form", async ({ page }) => {
await page.goto("/contact/");
await expect(page.getByRole("heading", { name: "Contact us" })).toBeVisible();
await page.locator('input[name="email"]').fill("<EMAIL>");
await page.locator('input[name=... | USER_NAME |
720 | import { useState, useEffect, useRef, useCallback } from 'react';
import decideInitialLang from '../utils/decideInitialLang';
export default function useTranslation(setLang?: string) {
// declare initial states
const [{ language, strings }, setLanguage] = useState({
language: decideInitialLang(setLang!),
s... | module |
721 | import withApiAuth from '@xlnt/micro-api-auth'
import { IncomingMessage, ServerResponse } from 'http'
import pick = require('lodash/pick')
import {
json,
send,
} from 'micro'
import visualize = require('micro-visualize')
import { post, router } from 'microrouter'
import Account = require('eth-lib/lib/account')
imp... | txWithDefaults |
722 | import { isEmail, isBrazillianPhone } from "@techmmunity/easy-check";
import { CreateParams } from ".";
import { errorUtil } from "v1/utils/error";
import { yup } from "v1/utils/yup";
import { ContactTypeEnum, ContactTypeValues } from "core/enums/contact-type";
const schema = yup.object().shape({
userId: yup.strin... | formattedParams |
723 | import '@tensorflow/tfjs-backend-cpu';
import * as cocoSsd from '@tensorflow-models/coco-ssd';
import {DetectedObject, ObjectDetection} from '@tensorflow-models/coco-ssd';
import {store} from '../index';
import {updateObjectDetectorStatus} from '../store/ai/actionCreators';
import {LabelType} from '../data/enums/LabelT... | image |
724 | import { parseString } from 'xml2js'
import fetch from 'node-fetch'
export async function handleRequest(request: Request): Promise<Response> {
const [MASK] = 'https://blog.zakiego.my.id/feed.xml'
const dataXML = await fetch( [MASK] ).then((resp) => resp.text())
let dataJSON: any
parseString(dataXML, functio... | source |
725 | import {MRBox, RBox, constBoxWrap} from "@nartallax/cardboard"
import {CssVariableBoxLink, CssVariableBoxOptions} from "src/box_dom_binding/css_variable_box"
import {DomValueLink} from "src/box_dom_binding/dom_value_link"
import {LocalStorageBoxOptions, LocalStorageDomLink} from "src/box_dom_binding/local_storage_box"
... | binder |
726 | import { Page, Observable, PropertyChangeData, EventData } from '@nativescript/core/ui/page';
import { Slider } from '@nativescript/core/ui/slider';
class Model extends Observable {
// set blurRadius(value) {
// console.log('set blurRadius', value);
// this.set('_blurRadius', value);
// }
... | sliderComponent |
727 | import { NextRequest, NextResponse } from "next/server";
import { verifyJwt } from "app/auth/handleJWT";
import { cookies } from "next/headers";
import addPost from "./POST/addPost";
import deletePosts from "./DELETE/deletePosts";
import rewritePost from "./PUT/rewritePost";
export async function POST(req: NextRequest... | cookieStore |
728 | /* CoffeesController FINAL CODE */
import { CreateCoffeeDto } from './dto/create-coffee.dto'
import { UpdateCoffeeDto } from './dto/update-coffee.dto';
import {
Body,
Controller,
Delete,
Get,
Param,
Patch,
Post,
Query,
} from '@nestjs/common';
import { CoffeesService } from './coffees.service';
import {... | createCoffeeDto |
729 | import kleur from 'kleur';
import readlineSync from 'readline-sync';
export function cout(...text: string[]): void {
console.log(...text)
}
export function dcout(delay: number, text: string): void {
for (let i = 0; i < text.length; i++)
setTimeout(() => process.stdout.write(text[i]), delay * i)
process.stdout.w... | prefix |
730 | import { useCallback, useEffect, useRef } from "react";
import { CACHE_POLICY } from "../../data/cachePolicyEnum";
import { useMergeState } from "../useMergeState";
import api from "../../utils/api";
interface QueryOption {
lazy?: boolean;
cachePolicy?: CACHE_POLICY;
}
export const useQuery = (
url: string,
q... | newData |
731 | import {
Adapter,
Config,
Contact,
PhoneNumber,
PhoneNumberLabel,
start
} from "@clinq/bridge";
import { Request } from "express";
import { parseEnvironment } from "./parse-environment";
import { stringify } from "querystring";
import axios from "axios";
import { OAuth2Response } from "./oauth2-response.mod... | contactsUrl |
732 | import data from 'data/feedData.json'
import { catchError } from 'utils/catchError'
import contractCall from 'hooks/contractCall'
// mock contract exec.
const execute = async function ({ contract, tokenId }: { contract: any, tokenId: string }) {
// await contract.safeTransferFrom(...args).send({...})
return {
... | existTokenIds |
733 | import stringify from "csv-stringify";
import fs from "fs";
import path from "path";
import log from "electron-log";
import moment from "moment";
import { saveDataURIToFile, DataURIFile } from "./mediaExporter";
import faker from "faker";
/*
{
clips: [{
expression: "expression",
meaning: "meaning",
metad... | mediaCollectionPath |
734 | import { Injectable, CanActivate, ExecutionContext } from '@nestjs/common';
import { Reflector } from '@nestjs/core';
import { Role } from '../role.enum';
import { ROLES_KEY } from '../decorator';
import { PrismaService } from 'src/prisma/prisma.service';
@Injectable()
export class RolesGuard implements CanActivate {
... | matchRole |
735 | import { DAO_AddMusic } from "../../../database/dao/music";
import { EmbedColors, I_Command, I_MusicList, MusicGenres, MusicStyles } from "../../../utilities/interface";
import { commandBuilder, embedBuilder } from "../../misc/builders";
const bo_AddMusic: I_Command = {
data: commandBuilder(
"boaddmusic",
"Add mu... | newSong |
736 | import {
CharacteristicGetCallback,
CharacteristicValue,
HAP,
HAPStatus,
Logging,
Nullable,
Service,
} from "homebridge";
import { VehicleDataResponse } from "tesla-fleet-api/dist/types/vehicle_data.js";
import { VehicleAccessory } from "../vehicle.js";
export abstract class VehicleService {
service: S... | serviceType |
737 | import { fetchOrThrow } from './fetch';
import { Config } from '../models/Config';
import { Plugin } from '../models/Plugin';
import { ServiceTemplate } from '../models/ServiceTemplate';
import { TransformResponse } from '../models/TransformResponse';
const baseUrl = window.location.protocol + '//' + window.location.h... | target |
738 | /**
* WEB-Service Boilerplate
* Created on 2020.09.03 by @toyota-m2k
* Copyright (c) 2020 @toyota-m2k. All rights reserved.
*/
import ZException from "./error"
export default class Converter {
public static bool(v: any, def:boolean=false): boolean {
switch (typeof v) {
case "string": {
... | ary |
739 | import {
BlockPermutation,
EntityHitBlockAfterEvent,
EntityInventoryComponent,
ItemStack,
ItemUseAfterEvent,
Player,
} from "@minecraft/server";
import "./player_extensions";
import "./entity_extensions";
import { AdminPickConfigModalForm } from "./admin_pick_config_modal_form";
import { IAreaCalculator } f... | perm |
740 | import { StateType, States } from "./States";
export interface State {
enter?(creep: Creep): void;
execute(creep: Creep): boolean;
exit?(creep: Creep): void;
priority: number;
}
export interface Transition {
from: StateType | null;
to: StateType;
condition(creep: Creep): boolean;
execute?(creep: Creep... | possibleTransitions |
741 | // Type and interface imports
import { User } from '../types/globalTypes';
// Base url for the Swagger Petstore API (https://petstore.swagger.io)
const BASE_URL = 'https://petstore.swagger.io/v2';
// Custom type for input Order object value to place an order for a Pet
type OrderInput = {
id: number;
petId: number... | newPetData |
742 | // Copyright © 2025 Ory Corp
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { OryProvider, OryOptions } from './index.js';
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/sdk/shared/auth.js';
import { ServerError, InvalidTokenError } from '@modelcontextp... | redirectUrl |
743 | export interface Gmail2MastodonSettingFile {
/**
* max Toot length on your instance
*/
maxTootLength?: number;
/**
* E-Mail adresses that you want to notify
*/
targetEMailAdresses?: string[];
/**
* The mastodon instance this bot use
*/
mastodonInstance?: string;
/**
* Your userid that... | nextLastDate |
744 | import { HttpInput, SDK, Data, RequestSpec } from "@caido/sdk-workflow";
interface ReflectedParameter {
name: string;
matches: Array<[number, number]>;
context: string;
aggressive?: string[];
source?: string;
}
interface RequestParameter {
key: string;
value: string;
source: string;
method: string;
... | startIndex |
745 | import { ProjectsQueryResult } from "@/sanity.types";
import { useEffect, useMemo, useState } from "react";
export function useProjectSearch(projects: ProjectsQueryResult) {
const [filtered, setFiltered] = useState<ProjectsQueryResult>([]);
const [debouncedSearch, setDebouncedSearch] = useState<string>("");
cons... | sortedProjects |
746 | import { waitFor, type WaitForOptions } from "../wait";
export function getAllBySelector(
selector: string,
parent?: Element
): Element[] {
return [...(parent || document).querySelectorAll(selector)];
}
export async function getNBySelector(
selector: string,
qty: number,
options: Partial<WaitForOptions> =... | localOptions |
747 |
let plus = document.getElementById('button-plus1') as HTMLButtonElement;
plus.addEventListener('click', addCompteur);
function addCompteur(): void {
let [MASK] = document.getElementById('compteur') as HTMLDivElement;
let compteur = ( [MASK] .textContent === null) ? 0 : parseInt( [MASK] .textContent, 10);
[MA... | divCompteur |
748 | import { Theme, ThemeOptions, ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';
// https://mui.com/customization/theme-components/#default-props
export const defaultProps = {};
// https://mui.com/customization/theme-components/#global-style-overrides
export const styleOverrides: ComponentsOverrid... | _theme |
749 | const text = Deno.readTextFileSync('day02.txt');
const initMemory = text.split(',').map(x => parseInt(x, 10));
function run( [MASK] : number[], a: number, b: number): number {
[MASK] [1] = a;
[MASK] [2] = b;
let pc = 0;
while (true) {
const op = [MASK] [pc];
switch (op... | mem |
750 | /**
* github-file-exists
* Copyright (c) 2021 <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 applic... | path |
751 | import http from "http";
import * as functions from "firebase-functions";
type QueryEntryPrimitive = string | number | boolean;
interface QueryEntry {
[key: string | number]: QueryEntryPrimitive | Array<QueryEntryPrimitive | QueryEntry> | QueryEntry;
}
/**
* Encode object into query params
*
* @param obj
*/
fun... | mixpanelHost |
752 | import type { Furigana, Sentence } from "./interfaces";
import {
appearsExactlyOnce,
furiganaEqual,
furiganasToPlain,
zip,
zipRight,
} from "./utils";
/**
* Create a new sentence object given a synonymous sentence in furigana
*/
export function addSynonym(original: Sentence, syn: Furigana[]): Sentence {
... | left |
753 | import assert from 'assert';
import firebase from 'firebase-admin';
import {DocumentData, getFirestore} from 'firebase-admin/firestore';
import {getStorage} from 'firebase-admin/storage';
import {info} from 'firebase-functions/logger';
import {defineSecret} from 'firebase-functions/params';
import {https} from 'firebas... | pixivArtworkIds |
754 | import { Config } from 'wagmi'
import { getAccount as wagmi_getAccount, getBalance as wagmi_getBalance } from 'wagmi/actions'
import { HWBridgeSession } from '../hWBridge'
import { UserBalanceResult } from '../types'
import {
ConnectorType,
DEFAULT_TOKEN_DECIMALS,
DEFAULT_TOKEN_DECIMALS_ETHEREUM,
DEFAULT_TOKEN_... | wagmiBalance |
755 | import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { trigger, transition, style, animate } from '@angular/animations';
@Component({
selector: 'app-education',
standalone: true,
imports: [CommonModule],
templateUrl: './education.component.html',
styleUrls: ['./ed... | img |
756 | import { Canvas } from './Canvas';
import { Color } from './Color';
import { PhysicsObject } from './PhysicsObject';
import { Vector } from './Vector';
export class Ball extends PhysicsObject {
public color: Color = new Color();
public size: number = 10;
constructor(pos: Vector = new Vector()) {
super();
... | output |
757 | export type submitConvertKitProps = {
formId: string;
name: string;
email: string;
[key: string]: string;
};
export const submitConvertKit = async (
data: submitConvertKitProps
): Promise<{
success: boolean;
message?: string;
}> => {
"use server";
const [MASK] = process.env.CONVERTKIT_API_KEY;
... | apiKey |
758 | import { IValidationError, ValidationPriorities } from '../models';
import { EditorContext } from '../context';
import { useContext, useEffect } from 'react';
import { Omit, is } from 'anux-common';
import { useBound } from 'anux-react-utils';
interface IValidationConfigWithValue<T> {
value: T;
isRequi... | dependencies |
759 | import * as core from '@actions/core'
import { Octokit } from '@octokit/rest'
import MarkdownIt from 'markdown-it'
/**
* The main function for the action.
* @returns {Promise<void>} Resolves when the action is complete.
*/
export async function run(): Promise<void> {
const token = core.getInput('token', { require... | updateTitle |
760 | "use client"
import { useState, useCallback, useEffect } from "react"
import { useTelegram } from "./useTelegram"
import type { AccelerometerParams } from "@/types/telegram"
/**
* hook for Telegram WebApp Accelerometer
*/
export const useAccelerometer = () => {
const { webApp } = useTelegram()
const ... | started |
761 | import chokidar, { ChokidarOptions, FSWatcher } from "chokidar";
import { COMMON_FOLDER_IGNORES } from "@saili/common-server";
import path from "path";
import type { Disposable } from "@saili/common-all";
type SupportedEvents = "add" | "addDir" | "change" | "unlink" | "unlinkDir";
export type FileWatcherAdapter = {
... | patternWithBase |
762 | import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
import {MenuComponent} from "./menu/menu.component";
import {HomeComponent} from "./home/home.component";
import {RadarDetailComponent} from "./detail/radar-detail.component";
import {RadarListComponent} from "./list/radar-... | fixture |
763 | /*
* base.ts
*
* Copyright (c) 2024 <NAME>
*
* Author: <NAME> <<EMAIL>.shi(a)ic<EMAIL>.com>
* License: Apache-2.0
*
* https://github.com/shixiongfei/nanorpc-redis
*/
import { NanoValidator, createNanoValidator } from "nanorpc-validator";
import { RedisType, createRedis } from "./db.js";
export enum NanoRPCSt... | redisOrUrl |
764 | import axios, { Method, AxiosRequestConfig } from 'axios';
import { config } from '@/common/config';
export type YuResponse<T> = {
status: {
code: number;
message: string;
};
data: T;
};
export type RequestOptions = {
url: string;
method?: Method;
data?: any;
};
const axiosRequest = axios.create(... | axiosResponse |
765 | import { createAsyncThunk, createSlice, PayloadAction } from "@reduxjs/toolkit";
import { IBlockResponse, ILatestBlocksResponse, ISupply, TransactionResponse } from "../types/apiResponseTypes";
import { apiGetLatestBlocks, apiGetLatestTxn, apiGetSupply} from "../utils/api"
import {State} from "../store"
export interfa... | curRound |
766 | import "reflect-metadata";
import express, { Request, Response } from "express";
import swaggerUi from "swagger-ui-express";
import bodyParser from "body-parser";
import cors from "cors";
import { initializeDatabase } from "./database/database";
import { registerRouters } from "./routers";
import { bindLogger } from "... | buf |
767 | import MessageBox from "sap/m/MessageBox";
import BaseController from "./BaseController";
import JSONModel from "sap/ui/model/json/JSONModel";
import InputBase, { InputBase$ChangeEvent } from "sap/m/InputBase";
import Input from "sap/m/Input";
import * as Nominatim from "nominatim-client";
type WeatherInfo = {
curren... | jsonData |
768 | import { Connection } from 'typeorm';
import { connectToDatabase } from '../service/create-connection';
import { graphQLCall } from '../test-utils/graphql-call';
import { createRoom, createUser, createEvent } from '../test-utils/create-db-entity';
import { User } from '../entity/user';
import { Event } from '../entity... | roomEvents |
769 | import * as Joi from 'joi';
import {Response, Request, NextFunction} from 'express';
import * as shortid from 'shortid';
export const urlValidator = (text: string, [MASK] ?: Joi.CustomHelpers): boolean => {
let url: URL;
try {
url = new URL(text);
} catch (_) {
if ( [MASK] ) {
throw new Error ('In... | helpers |
770 | import get from 'lodash/get'
import constants from '@/constants'
import BnglText from '@/components/shared/bngl-text.vue'
const Type = {
EDITOR: 'editor',
VIEWER: 'viewer',
}
/**
* Create a column config for concentrations given a list of concentration sources.
* End configuration will have concentration sour... | revisionEditorColumnConfig |
771 | import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {HeaderComponent} from './components/header/header.component';
import {FormsModule, ReactiveFormsModule} from '@an... | library |
772 | import type { Metadata } from "next/types";
export function createMetadata( [MASK] : Metadata): Metadata {
return {
... [MASK] ,
openGraph: {
title: [MASK] .title ?? undefined,
description: [MASK] .description ?? undefined,
url: "https://docs.metis.io",
images: "/banner.jpg",
... | override |
773 | import { Component } from '@angular/core';
import { FormGroup, FormControl, Validators } from '@angular/forms';
import { Http } from '@angular/http';
import { Settings, SettingsInfo } from '../settings/settings';
import * as bootbox from 'bootbox';
import * as app from '../app'
import 'rxjs/add/operator/map';
impor... | date1 |
774 | import { diag, DiagConsoleLogger, DiagLogLevel } from '@opentelemetry/api';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
import { ExportResult } from '@opentelemetry/core';
import { OTLPTrac... | spans |
775 | import type { Partition } from '$lib/types';
import type {
LionwebResponse,
RepositoryConfiguration,
LionWebVersionType,
ListRepositoriesResponse
} from '@lionweb/repository-shared';
import { RepositoryClient } from '@lionweb/repository-client';
import type { LionWebJsonChunk } from '@lionweb/repository-client';
im... | tmpChunk |
776 | import {Injectable} from "@angular/core";
export type FigureNameType = 'pawn' | 'queen' | 'king' | 'knight' | 'bishop' | 'rook';
export type FigureColorType = 'black' | 'white';
export interface IFigure {
url: string;
color: FigureColorType;
figureName: FigureNameType;
firstStep?: boolean;
}
@Inject... | figureColor |
777 | import { CreateGPGPU, GPGPU, DrawParam, UI3D, TextureInfo, Vertex, Points, Color } from "./lib/gpgpu.js";
import { CanvasDrawable, mapBox } from "./draw.js";
let operators : Operator[];
let railways : Railway[];
let stations : Map<string, Station>;
let timetableReady: boolean = false;
let cnvMap : HTMLCanv... | scaleW |
778 | import * as os from 'os';
import { SystemPackages } from '@snyk/composer-lockfile-parser';
import * as cmds from './composer-cmds';
import { PhpOptions } from './types';
function isSet( [MASK] ): boolean {
return typeof [MASK] !== 'undefined';
}
export function systemDeps(basePath: string, options: PhpOptions): ... | variable |
779 | /*
* Copyright (c) 2017 by The RxStream Project Developers.
* Some rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | task |
780 | import express from 'express';
import doctorOrders from './routes/doctorOrders.js';
import ncpdp from './routes/ncpdp.js';
const app = express();
import cors from 'cors';
import mongoose from 'mongoose';
import env from 'var';
import https from 'https';
import fs from 'fs';
//middleware and configurations
import body... | server |
781 | import {
convert,
parseProviderRequirements,
getTerraformConfigFromDir,
} from "@cdktf/hcl2cdk";
import * as hcl2cdk from "@cdktf/hcl2cdk";
import {
readSchema,
ConstructsMakerProviderTarget,
} from "@cdktf/provider-generator";
import { parse, convertFiles } from "@cdktf/hcl2json";
import { LANGUAGES, Terraf... | targets |
782 | import { ethers } from "ethers";
type AccountsType = string[] | [] | undefined;
const STR_CONTRACT_ADDRESS = "0x5fbdb2315678afecb367f032d93f642f64180aa3";
const ARR_CONTRACT_INTERFACE = [
"function hello() public pure returns (string memory)",
];
/**
* @description get instance of ethereum MetaMask
* @returns {Ob... | bHasAccounts |
783 | import { defineConfig } from 'cypress';
import * as fs from 'fs-extra';
import * as glob from 'glob';
const { mergeLaunches } = require('@reportportal/agent-js-cypress/lib/mergeLaunches');
const registerReportPortalPlugin = require('@reportportal/agent-js-cypress/lib/plugin');
const { beforeRunHook, afterRunHook } = re... | defaultValues |
784 | /* eslint-disable @typescript-eslint/no-unused-vars */
import {
Uri,
languages,
workspace,
window,
ExtensionContext,
commands,
Diagnostic,
Range,
TextDocument,
ProgressLocation,
CodeActionContext,
CancellationToken,
CodeActionProvider,
CodeActionKind,
CodeAction,
WorkspaceEdit,
Selecti... | opcoes |
785 | /*
Copyright 2020-2024 Lowdefy, 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 to in wri... | selector |
786 | import {
ActionChecker,
BuildActionChecker,
HarvestActionChecker,
RepairActionChecker,
TransferActionChecker,
UpgradeActionChecker,
WithdrawActionChecker,
} from "./checker";
import {
ActionExecutor,
BuildActionExecutor,
HarvestActionExecutor,
RepairActionExecutor,
TransferActionExecutor,
Upgr... | force |
787 | import { Directive, TemplateRef, ViewContainerRef, ChangeDetectorRef } from "@angular/core";
/**
* How to use this directive?
*
* ```
* <div *ngIfMediaQuery="'(min-width: 500px)'">
* Div element will exist only when media query matches, and created/destroyed when the viewport size changes.
* </div>
* ```
... | newMediaQuery |
788 | import type {Map} from '../../index.js';
import {Api} from '../../index.js';
import type {Deserializer} from '../../types/adapter.js';
import * as Adapters from '../index.js';
const textItemAdapter: Deserializer<Api.Map.TextItem, Map.TextItem> = {
deserialize(apiTextItem) {
return {
text: apiTextItem.text,
ma... | apiData |
789 | import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from "@angular/core";
import { Chart } from "chart.js";
import { ItemDomain } from "../../domains/item/item.domain";
import { ItemDto } from "../../dtos/item/item.dto";
@Component({
selector: "app-page-home",
styleUrls: ["./page-home.component.scs... | dailySteps |
790 | import * as React from 'react';
import { clsx } from 'clsx';
import { domElements, SupportedHTMLElements } from './domElements';
// Helper type to extract props type from a component
type ComponentProps<T> = T extends React.ComponentType<infer P> ? P : never;
// Type for the primitive component creator function
type... | PrimitiveComponent |
791 | import { Component, OnInit, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef } from '@angular/core';
import { Observable, Subscription } from 'rxjs';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
@Component({
moduleId: 'ng2-combobox',
selector: 'combo-box',
templat... | code |
792 | import { QueueRequestLog, ISaverClass } from "./QueueRequestLog";
import { Result } from "./Result";
type QueueItem = {
pathSubject:string, jsonString:string
}
export class QueueRequestLogHanbler implements ISaverClass{
handler : ISaverClass;
queueItems: QueueItem[];
index:number;
intervalIndex: N... | frequencyToHandler |
793 | import { ensureDirSync } from "https://deno.land/std@0.93.0/fs/mod.ts";
import * as path from "https://deno.land/std@0.93.0/path/mod.ts";
import { Command } from "https://deno.land/x/cliffy@v0.18.0/command/mod.ts";
import { schema2js } from "../../codegen/js.ts";
import { writeJsAndDts } from "../../io/write-file.ts";
... | _ubershape |
794 | import path from "path";
import fs from "fs-extra";
import replace from "lodash/replace";
import endsWith from "lodash/endsWith";
import klaw from "klaw";
/**
* This is a basic build script that copies the cloudformation files in /infra/cf to /app/data/cfn while
* making them .ts files that export yaml strings. This... | sourceDir |
795 | import { Component } from '@angular/core';
import { ElectronService } from './core/services';
import { TranslateService } from '@ngx-translate/core';
import { APP_CONFIG } from '../environments/environment';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss... | vLang |
796 | import {
Compiler,
Component,
ComponentFactory,
ComponentFactoryResolver,
ComponentRef,
ModuleWithComponentFactories,
NgModule,
ViewChild,
ViewContainerRef
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { ParseService } from './parse.service';
import { ControlsModule } from './... | factory |
797 | import { ItemView, Plugin } from "obsidian";
import type { Canvas } from "./types";
import { CanvasKeyboardPanSettingsTab } from "./settings";
import { xor } from "./util";
export enum Direction {
North = "north",
West = "west",
South = "south",
East = "east",
}
export interface CanvasKeyboardPanSettings {
keys... | events |
798 | // generate.ts
import chalk from 'chalk'
import { execFileSync } from 'child_process'
import dotenv from 'dotenv'
import fs from 'fs-extra'
import path from 'path'
import { FigmaDocument, IconFontData, IconMapper } from './interfaces'
// Load environment variables
dotenv.config()
//Retrieve Figma Access Token and Canv... | componentSet |
799 | import { SwapHelperStruct } from "typechain/ConvexAssetProxy";
import { expect } from "chai";
import { BigNumber, Signer } from "ethers";
import { ethers, waffle, network } from "hardhat";
import { ConvexFixtureInterface, loadConvexFixture } from "./helpers/deployer";
import { createSnapshot, restoreSnapshot } from ".... | user1Balance |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.