file_hash
stringlengths
16
16
language
stringclasses
8 values
line_count
int64
20
500
theme
stringclasses
8 values
source_code
stringlengths
236
8.19k
prompt_idx
int64
0
6
messages
listlengths
3
3
1c3ff8d854ae9ab4
typescript
492
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach, type Mock, } from 'vitest'; import { getInstallationInfo, PackageManager } from './installationInfo.js'; import { updateEventEmitter } from './updateEventEmitt...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
8ad1b5e85b9c97e7
rust
43
Solarized Dark
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct PerlConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
edcde74cedba0933
java
112
Default Light+
package com.thealgorithms.backtracking; import java.util.ArrayList; import java.util.List; /** * Problem statement: Given a N x N chess board. Return all arrangements in * which N queens can be placed on the board such no two queens attack each * other. Ex. N = 6 Solution= There are 4 possible ways Arrangement: 1 ...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
55b6c2b7ea85b7c8
csharp
336
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
62b1422757197fe6
python
130
Monokai
# Copyright (c) Microsoft. All rights reserved. from enum import Enum from samples.getting_started_with_processes.step03.processes.fried_fish_process import ( FriedFishProcess, ) from samples.getting_started_with_processes.step03.steps.external_step import ExternalStep from semantic_kernel.functions import kernel_...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
dc53d3836a07da75
typescript
105
Solarized Light
"use client" import { Bar, BarChart } from "recharts" import { Badge } from "@/registry/bases/base/ui/badge" import { Button } from "@/registry/bases/base/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/bases/base/ui/card" import { ChartConta...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
fff93aa78e89d27c
go
291
Default Light+
package renderers import ( "testing" "github.com/google/go-cmp/cmp" "github.com/ollama/ollama/api" ) func TestOlmo3Renderer(t *testing.T) { tests := []struct { name string msgs []api.Message tools []api.Tool expected string }{ { name: "basic without system - adds default system", msg...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
58d5fdd409de0bcf
python
45
Solarized Light
def pig_latin(word: str) -> str: """Compute the piglatin of a given string. https://en.wikipedia.org/wiki/Pig_Latin Usage examples: >>> pig_latin("pig") 'igpay' >>> pig_latin("latin") 'atinlay' >>> pig_latin("banana") 'ananabay' >>> pig_latin("friends") 'iendsfray' >>> ...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
5a1352fc3bf6308e
python
80
Default Light+
import os from modules import modelloader, errors from modules.shared import cmd_opts, opts from modules.upscaler import Upscaler, UpscalerData from modules.upscaler_utils import upscale_with_model class UpscalerDAT(Upscaler): def __init__(self, user_path): self.name = "DAT" self.user_path = user...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
236f6ac8cdf35798
python
379
Monokai
import comfy.sd import comfy.utils import comfy.model_base import comfy.model_management import comfy.model_sampling import torch import folder_paths import json import os from comfy.cli_args import args class ModelMergeSimple: @classmethod def INPUT_TYPES(s): return {"required": { "model1": ("MODEL"...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
ddd83739d03b6812
java
32
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
e081f37ea6c3f2ba
csharp
99
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Azure.AI.OpenAI; using Azure.Core; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel.AudioToText...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
37cee0970ae19f05
cpp
497
Solarized Light
#include "ntdll/ntdll.h" #include "cmd-analysis.h" #include "linearanalysis.h" #include "memory.h" #include "module.h" #include "exceptiondirectoryanalysis.h" #include "controlflowanalysis.h" #include "analysis_nukem.h" #include "xrefsanalysis.h" #include "recursiveanalysis.h" #include "value.h" #include "advancedanaly...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
8e95c053e235bf82
cpp
71
Dracula
/** * Copyright 2023, XGBoost Contributors */ #pragma once #include <memory> // for shared_ptr, unique_ptr #include <string> // for string #include <utility> // for move #include "coll.h" // for Comm #include "comm.h" // for Coll #include "xgboost/collective/result.h"...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
e0d083e303ee63db
cpp
87
Default Light+
#include "models.h" llm_build_arwkv7::llm_build_arwkv7(const llama_model & model, const llm_graph_params & params) : llm_build_rwkv7_base(model, params) { GGML_ASSERT(n_embd == hparams.n_embd_r()); ggml_tensor * cur; ggml_tensor * inpL; ggml_tensor * v_first = nullptr; inpL = build_inp_embd(mode...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
baa1ac089cba68e9
go
46
Default Light+
package db_non_full_text import ( "context" "github.com/alist-org/alist/v3/internal/db" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/internal/search/searcher" ) type DB struct{} func (D DB) Config() searcher.Config { return config } func (D DB) Search(ctx context.Context, req ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
841213e7910f5b20
csharp
80
One Dark Pro
#region License Information (GPL v3) /* ShareX - A program that allows you to take screenshots and share any file type Copyright (c) 2007-2026 ShareX Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
08be993d86c3b494
python
332
Monokai
import torch from comfy.ldm.modules.attention import optimized_attention_for_device import comfy.ops import math def clip_preprocess(image, size=224, mean=[0.48145466, 0.4578275, 0.40821073], std=[0.26862954, 0.26130258, 0.27577711], crop=True): image = image[:, :, :, :3] if image.shape[3] > 3 else image mean ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
6e0a7625579a3be8
cpp
41
One Dark Pro
#pragma once #include "gguf.h" #include "llama.h" #include "llama-arch.h" #include <vector> struct llama_model_saver { struct gguf_context * gguf_ctx = nullptr; const bool gguf_ctx_owned; const struct llama_model * model; const struct LLM_KV llm_kv; llama_model_saver(const struct llama_model * m...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
74c66367a128cb65
cpp
52
One Dark Pro
// // Created by xiemenghui on 2018/7/20. // #ifndef DESIGNPATTERN_CONCRETE_FACTORY_H #define DESIGNPATTERN_CONCRETE_FACTORY_H #include "Factory.h" #include "concrete_product.h" // Benz factory class BenzFactory : public Factory { public: ICar* CreateCar() { return new BenzCar(); } IBike* Cre...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
714063dea6bef533
cpp
193
One Dark Pro
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // // 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 // ...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
9d1fb9f9ee3dc3f1
typescript
422
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ vi.mock('../ui/commands/profileCommand.js', async () => { const { CommandKind } = await import('../ui/commands/types.js'); return { profileCommand: { name: 'profile', description: 'Profile command', kind: ...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
68bbf6406135db99
cpp
207
One Dark Pro
#pragma once #include "llama.h" #include "llama-impl.h" #include "llama-arch.h" #include "llama-hparams.h" #include "llama-mmap.h" #include "ggml-cpp.h" #include <cstddef> #include <cstring> #include <map> #include <stdexcept> #include <unordered_map> using llama_buf_map = std::unordered_map<uint32_t, ggml_backend...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
3c6e0f5ff9542114
python
90
Dracula
from fastapi import ( Cookie, Depends, FastAPI, Query, WebSocket, WebSocketException, status, ) from fastapi.responses import HTMLResponse app = FastAPI() html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
c500fd7d4047a2b3
typescript
370
Solarized Light
import { Response } from "express"; import { config } from "../../config"; import { Document, RequestWithAuth, SearchRequest, SearchResponse, searchRequestSchema, ScrapeOptions, TeamFlags, } from "./types"; import { v7 as uuidv7 } from "uuid"; import { addScrapeJob, waitForJob } from "../../services/queue...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
1dbfff9b489752bc
csharp
472
Dracula
namespace ServiceLib.Services.CoreConfig; public partial class CoreConfigV2rayService { private void GenDns() { try { var item = context.RawDnsItem; if (item is { Enabled: true }) { GenDnsCustom(); if (_coreConfig.routing.doma...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
8ea3e44b8bc373d8
cpp
62
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
41b6f07ff1447516
java
52
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
36437dc038867fbc
python
52
Default Light+
from .common import InfoExtractor from ..utils import ( int_or_none, parse_iso8601, ) class VideofyMeIE(InfoExtractor): _WORKING = False _VALID_URL = r'https?://(?:www\.videofy\.me/.+?|p\.videofy\.me/v)/(?P<id>\d+)(&|#|$)' IE_NAME = 'videofy.me' _TEST = { 'url': 'http://www.videofy.me...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
558067c084ef6350
csharp
77
Default Light+
// <auto-generated /> using Clean.Architecture.Infrastructure.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nulla...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
b8a90075a55973e6
java
106
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
b2ebf2e2ccdbbe0d
go
53
Solarized Dark
// Copyright 2025 The etcd Authors // // 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...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
6829e375990dbebe
typescript
83
Solarized Light
import { useEffect, useRef } from "react"; import { detectLastListItem, generateListContinuation } from "@/utils/markdown-list-detection"; import { EditorRefActions } from "."; interface UseListCompletionOptions { editorRef: React.RefObject<HTMLTextAreaElement>; editorActions: EditorRefActions; isInIME: boolean;...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
473e8cceb379d475
rust
22
Solarized Light
#![deny(clippy::all)] pub use crate::crawler::*; pub use crate::engpicker::*; pub use crate::html::*; pub use crate::logging::*; pub use crate::pdf::*; pub use crate::utils::*; pub use crate::document::{DocumentConverter, DocumentType}; mod crawler; mod document; mod engpicker; mod html; mod logging; mod pdf; mod ut...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
552984b24f6e9a81
typescript
242
Solarized Light
import { Response } from "express"; import { config } from "../../config"; import { v7 as uuidv7 } from "uuid"; import { BatchScrapeRequest, batchScrapeRequestSchema, batchScrapeRequestSchemaNoURLValidation, url as urlSchema, RequestWithAuth, BatchScrapeResponse, } from "./types"; import { addCrawlJobs, ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
02852a8ad3e1e36c
csharp
128
Default Light+
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics.HealthChecks; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.ServiceDiscovery; using OpenTelemetry; using OpenTelemetry.Metrics;...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
207537ed8019ae95
go
331
Default Dark+
package caddyhttp import ( "context" "errors" "net/http" "strings" "sync" "time" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/caddyserver/caddy/v2" "github.com/caddyserver/caddy/v2/internal/metrics" ) // Metrics configures metrics o...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
b170c067a9d4ab24
go
120
Default Light+
package static import ( "errors" "fmt" "io" "io/fs" "net/http" "os" "strings" "github.com/alist-org/alist/v3/internal/conf" "github.com/alist-org/alist/v3/internal/setting" "github.com/alist-org/alist/v3/pkg/utils" "github.com/alist-org/alist/v3/public" "github.com/gin-gonic/gin" ) var static fs.FS func...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
1eec11106af38f4a
java
27
GitHub Dark
package org.jeecg.modules.system.vo.lowapp; import lombok.Data; import java.util.List; /** * @Author taoYan * @Date 2022/12/30 10:52 **/ @Data public class DepartInfo { private String id; /** * 上级名称-下级名称 */ private List<String> orgName; /** * 上级ID-下级ID */ private List<St...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
0cb6675bc038a200
csharp
35
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.IO; using System.Text.Json; using System.Text.Json.Nodes; namespace SemanticKernel.Functions.UnitTests.OpenApi; /// <summary> /// Contains helper methods for OpenAPI related tests. /// </summary> internal static class OpenApiTestHelper { ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
7a457fdd3e790362
go
34
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
272d917c36eb4549
python
31
Dracula
from fastapi import Depends, FastAPI from fastapi.security import OAuth2PasswordBearer from pydantic import BaseModel app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: bool | Non...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
49a84e901a17e15f
cpp
69
Solarized Light
#include "_scriptapi_bookmark.h" #include "_scriptapi_module.h" #include "bookmark.h" SCRIPT_EXPORT bool Script::Bookmark::Set(duint addr, bool manual) { return BookmarkSet(addr, manual); } SCRIPT_EXPORT bool Script::Bookmark::Set(const BookmarkInfo* info) { if(!info) return false; auto base = Mod...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
eb6cb0c1bc09ab68
csharp
49
Default Light+
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, cop...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
8dadc93e19bb10b2
rust
111
Solarized Light
//! Scheduler for emitting events at a specific time in the future. use std::collections::VecDeque; use std::time::{Duration, Instant}; use winit::event_loop::EventLoopProxy; use winit::window::WindowId; use crate::event::Event; /// ID uniquely identifying a timer. #[derive(Copy, Clone, Debug, PartialEq, Eq)] pub s...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
9784dc31f0a939cf
java
277
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
c2d17d30ee08863e
java
48
Solarized Dark
// Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition nums[i] + nums[j] + nums[k] < target. // For example, given nums = [-2, 0, 1, 3], and target = 2. // Return 2. Because there are two triplets which sums are less than 2: // ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
eee2db57abcd9c63
javascript
194
GitHub Dark
import {pcaa as REGION_DATA} from "@/utils/areaData/pcaUtils"; import { cloneDeep } from 'lodash-es'; // code转汉字大对象 const CodeToText = {}; // 汉字转code大对象 const TextToCode = {}; const provinceObject = REGION_DATA['86']; // 省份对象 const regionData = []; let provinceAndCityData = []; CodeToText[''] = '全部'; // 计算省 for (con...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
ae222e65b41be7e2
cpp
62
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
0709f7c593b87cd5
csharp
223
Default Light+
// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
db8e9facb51817c7
typescript
26
GitHub Dark
import { Ref } from 'vue'; export interface Props { theme: string; activeName?: string | number | undefined; openNames: string[]; accordion: boolean; width: string; collapsedWidth: string; indentSize: number; collapse: boolean; activeSubMenuNames: (string | number)[]; } export interface SubMenuProvi...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
b0bcd777dccaa0fc
python
93
Default Light+
import threading import time from collections import defaultdict import torch class MemUsageMonitor(threading.Thread): run_flag = None device = None disabled = False opts = None data = None def __init__(self, name, device, opts): threading.Thread.__init__(self) self.name = na...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
24458a6e2d645918
javascript
118
Default Dark+
const NotificationProvider = require("./notification-provider"); const axios = require("axios"); const { UP, DOWN, getMonitorRelativeURL } = require("../../src/util"); const { Settings } = require("../settings"); const successMessage = "Sent Successfully."; class FlashDuty extends NotificationProvider { name = "Fl...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
f3e60daa2f876566
typescript
51
Solarized Light
"use client" import * as React from "react" import { Calendar, CalendarDayButton } from "@/examples/base/ui/calendar" import { Card, CardContent } from "@/examples/base/ui/card" import { addDays } from "date-fns" import { type DateRange } from "react-day-picker" export function CalendarCustomDays() { const [range, ...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
47f2ff94a4789717
python
69
Solarized Dark
""" Plugin registration for markitdown-ocr. Registers OCR-enhanced converters with priority-based replacement strategy. """ from typing import Any from markitdown import MarkItDown from ._ocr_service import LLMVisionOCRService from ._pdf_converter_with_ocr import PdfConverterWithOCR from ._docx_converter_with_ocr imp...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
cdbcf5c4cccb67e6
go
98
Default Light+
package base import ( "encoding/json" "fmt" "log/slog" "sync" "github.com/ollama/ollama/x/mlxrunner/cache" "github.com/ollama/ollama/x/mlxrunner/mlx" "github.com/ollama/ollama/x/mlxrunner/model" "github.com/ollama/ollama/x/tokenizer" ) // Model is the interface that model implementations must satisfy. type M...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
f615d31bf222a076
csharp
61
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
6df0b156ae8e078b
go
90
Solarized Dark
// Copyright 2016 The etcd Authors // // 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...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
ba6c4a4352b6a2ef
rust
219
Default Dark+
use std::time::Instant; use rayon::iter::{IntoParallelIterator as _, ParallelIterator as _}; use rayon::slice::ParallelSlice as _; use super::rest::{Embedder as RestEmbedder, EmbedderOptions as RestEmbedderOptions}; use super::EmbeddingCache; use crate::error::FaultSource; use crate::progress::EmbedderStats; use crat...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
dbc390f0fc51ee64
cpp
101
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2015 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
a0475854ee77eba4
java
44
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
a39c5114ecf4ddfe
typescript
46
Solarized Light
import type { SlashCommandsProps } from "../types"; import type { EditorRefActions } from "."; import { SuggestionsPopup } from "./SuggestionsPopup"; import { useSuggestions } from "./useSuggestions"; const SlashCommands = ({ editorRef, editorActions, commands }: SlashCommandsProps) => { const handleCommandAutocompl...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
fd5ec5857b08a9ef
java
191
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
378e5d05b89157cf
csharp
131
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text.Json; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.Onnx; using Xunit; namespace SemanticKernel.Connectors.Onnx.UnitTests; /// <summary> /// Unit tests for <see cref="OnnxRuntimeGenAIPromptExecutionSettings"/>. /// </summ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
25017a5d1b414bb6
python
163
Monokai
#!/usr/bin/env python3 import sys import json import html from reportlab.lib.pagesizes import letter from reportlab.platypus import Frame, Paragraph, Spacer, PageBreak,PageTemplate, BaseDocTemplate from reportlab.platypus.tableofcontents import TableOfContents from reportlab.lib.styles import getSampleStyleSheet, Parag...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
b0319c65a20e06f5
python
240
Solarized Light
import os import json import time import requests from dotenv import load_dotenv from openai import OpenAI from serpapi.google_search import GoogleSearch class Colors: CYAN = '\033[96m' YELLOW = '\033[93m' GREEN = '\033[92m' RED = '\033[91m' RESET = '\033[0m' # Load environment variables load_dote...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
5eb82ca27e557180
typescript
92
GitHub Dark
import type { NamePath } from 'ant-design-vue/lib/form/interface'; import type { ColProps } from 'ant-design-vue/lib/grid/Col'; import type { HTMLAttributes, VNodeChild } from 'vue'; export interface FormItem { /** * Used with label, whether to display : after label text. * @default true * @type boolean ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
0aa55e45ba9d5367
java
66
Default Light+
package com.thealgorithms.datastructures.crdt; import java.util.HashSet; import java.util.Set; /** * GSet (Grow-only Set) is a state-based CRDT (Conflict-free Replicated Data Type) * that allows only the addition of elements and ensures that once an element is added, * it cannot be removed. The merge operation of ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
15d95626624fae2c
csharp
33
Default Light+
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
677cb097dd5b6dd9
java
42
Default Dark+
package us.shandian.giga.postprocessing; import org.schabi.newpipe.streams.Mp4DashReader; import org.schabi.newpipe.streams.Mp4FromDashWriter; import org.schabi.newpipe.streams.io.SharpStream; import java.io.IOException; class M4aNoDash extends Postprocessing { M4aNoDash() { super(false, true, ALGORITHM...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
7f4dfe15a61ef420
cpp
216
One Dark Pro
// // MIT license // Copyright (C) 2024 Intel Corporation // SPDX-License-Identifier: MIT // // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // #include "ggml-imp...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
c187b425d8002e6b
go
104
Default Light+
package launch import ( "errors" "fmt" "os" "golang.org/x/term" ) // ANSI escape sequences for terminal formatting. const ( ansiBold = "\033[1m" ansiReset = "\033[0m" ansiGray = "\033[37m" ansiGreen = "\033[32m" ansiYellow = "\033[33m" ) // ErrCancelled is returned when the user cancels a selection. ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
0d34690383414d99
cpp
179
Dracula
/** * Copyright 2022-2025, XGBoost Contributors * * @brief cuda pinned allocator for usage with thrust containers */ #pragma once #include <cuda_runtime.h> #include <cstddef> // for size_t #include <limits> // for numeric_limits #include <memory> // for unique_ptr #include <new> // for bad_array_new_len...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
04f1dcbb3f548bdd
java
60
Default Light+
package com.thealgorithms.devutils.nodes; /** * Simple Node implementation that holds a reference to the next Node. * * @param <E> The type of the data held in the Node. * * @author <a href="https://github.com/aitorfi">aitorfi</a> */ public class SimpleNode<E> extends Node<E> { /** * Reference to the n...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
d5c103e5150928e9
java
57
Dracula
package com.macro.mall.portal.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.model.PmsBrand; import com.macro.mall.model.PmsProduct; import com.macro.mall.portal.service.PmsPortalBrandService; import io.swagger.annotations.Api; import io.sw...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
711fb20a512a4ccf
typescript
69
Default Light+
import { KEYS } from "@excalidraw/common"; import type { Node } from "@excalidraw/common"; import { type FontDescriptor } from "./FontPickerList"; interface FontPickerKeyNavHandlerProps { event: React.KeyboardEvent<HTMLDivElement>; inputRef: React.RefObject<HTMLInputElement | null>; hoveredFont: Node<FontDescr...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
c727a003f13d0c55
go
58
Solarized Light
package postgres import ( "context" "database/sql" "log" // Import the PostgreSQL driver. _ "github.com/lib/pq" "github.com/pkg/errors" "github.com/usememos/memos/internal/profile" "github.com/usememos/memos/store" ) type DB struct { db *sql.DB profile *profile.Profile } func NewDB(profile *profile....
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
65dc40a20f2fcdc1
java
58
Solarized Light
package com.firecrawl.models; import com.fasterxml.jackson.annotation.JsonInclude; import java.util.List; import java.util.Map; /** * Webhook configuration for async jobs. */ @JsonInclude(JsonInclude.Include.NON_NULL) public class WebhookConfig { private String url; private Map<String, String> headers; ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
2bca05816596aaf0
cpp
141
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
a228f56ad5eab283
java
49
Default Light+
package com.thealgorithms.audiofilters; /** * Exponential Moving Average (EMA) Filter for smoothing audio signals. * * <p>This filter applies an exponential moving average to a sequence of audio * signal values, making it useful for smoothing out rapid fluctuations. * The smoothing factor (alpha) controls the deg...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
d87b7a9f486b569a
javascript
67
Default Dark+
const { MonitorType } = require("./monitor-type"); const { UP } = require("../../src/util"); const { execFile } = require("promisify-child-process"); class SIPMonitorType extends MonitorType { name = "sip-options"; supportsConditions = false; /** * Run the monitoring check on the given monitor *...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
c1ae34fd36e877a0
java
44
Default Light+
package com.thealgorithms.datastructures.hashmap.hashing; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; /** * This class provides a method to find the majority element(s) in an array of integers. * A majority element is defined as an...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
20647563d5529855
rust
337
One Dark Pro
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use acpi_tables::fadt::{FADT_F_HW_REDUCED_ACPI, FADT_F_PWR_BUTTON, FADT_F_SLP_BUTTON}; use acpi_tables::{Aml, Dsdt, Fadt, Madt, Mcfg, Rsdp, Sdt, Xsdt, aml}; use log::{debug, error}; use vm_allocator::Alloc...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
93e2cf4723e2d36e
java
109
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
fe7de3b153b962fc
typescript
124
Solarized Dark
import { styled, Box } from '@mui/material' import type { ReactNode } from 'react' import type { SearchState } from '@/components/base' const Item = styled(Box)(({ theme: { palette, typography } }) => ({ padding: '8px 0', margin: '0 12px', lineHeight: 1.35, borderBottom: `1px solid ${palette.divider}`, font...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
a70b01312b1b0ea5
typescript
26
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { ShellCompletionProvider, CompletionResult } from './types.js'; import { gitProvider } from './gitProvider.js'; import { npmProvider } from './npmProvider.js'; const providers: ShellCompletionProvider[] = [gitProvider...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
d5706fceb794c203
cpp
235
One Dark Pro
#include <ui/pattern_value_editor.hpp> #include <imgui.h> #include <hex/helpers/utils.hpp> #include <hex/ui/imgui_imhex_extensions.h> #include <wolv/math_eval/math_evaluator.hpp> #include <pl/patterns/pattern_array_dynamic.hpp> #include <pl/patterns/pattern_array_static.hpp> #include <pl/patterns/pattern_bitfield.hpp...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
6928fc319422bad7
csharp
51
Default Light+
/* Copyright (c) 2015 Ki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublice...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
5143c605677cae55
java
67
Default Light+
package com.thealgorithms.greedyalgorithms; import java.util.ArrayList; import java.util.Arrays; // Problem Link: https://en.wikipedia.org/wiki/Job-shop_scheduling public final class JobSequencing { private JobSequencing() { } // Define a Job class that implements Comparable for sorting by profit in des...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
1aa90ac1387268ab
java
30
Dracula
package com.macro.mall.mapper; import com.macro.mall.model.UmsMemberReceiveAddress; import com.macro.mall.model.UmsMemberReceiveAddressExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsMemberReceiveAddressMapper { long countByExample(UmsMemberReceiveAddressExample exa...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
cbcf030052609bcf
python
82
Default Light+
from .common import InfoExtractor from ..networking import Request from ..utils import ( float_or_none, int_or_none, join_nonempty, parse_iso8601, ) class EitbIE(InfoExtractor): IE_NAME = 'eitb.tv' _VALID_URL = r'https?://(?:www\.)?eitb\.tv/(?:eu/bideoa|es/video)/[^/]+/\d+/(?P<id>\d+)' _T...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
b08790a66bbcaa83
java
39
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
9a690da11c0e870d
python
32
Default Light+
import importlib import torch from modules import shared def check_for_npu(): if importlib.util.find_spec("torch_npu") is None: return False import torch_npu try: # Will raise a RuntimeError if no NPU is found _ = torch_npu.npu.device_count() return torch.npu.is_available...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
2fb4e1e80d06f146
csharp
25
Monokai
using System; using System.Runtime.InteropServices; using winPEAS.Info.NetworkInfo.Enums; namespace winPEAS.Native { internal class Iphlpapi { [DllImport("iphlpapi.dll", CharSet = CharSet.Auto, SetLastError = true)] internal static extern uint GetExtendedTcpTable(IntPtr pTcpTable, ref int pdwS...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
acf2253f826c7222
java
61
Default Light+
package com.thealgorithms.datastructures.heaps; import java.util.PriorityQueue; /** * This class provides methods to find the Kth largest or Kth smallest element * in an array using heaps. It leverages a min-heap to find the Kth largest element * and a max-heap to find the Kth smallest element efficiently. * * ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
2d8a9e4a0293fb84
javascript
62
Default Dark+
function matrixClone(matrix, defaultValue) { return matrix.map((row) => { return defaultValue === undefined ? row.slice(0) : Array(row.length).fill(defaultValue); }); } const deepEqual = require('./deepEqual'); // Test clone. const a = [ [1, 2], [1, 4], ]; console.log( deepEqual(matrixClone(...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
53b010be7543241e
csharp
46
Default Light+
// Copyright (c) 2024 Siegfried Pammer // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publ...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
5d97be39f2c74cbd
typescript
57
Solarized Light
"use client" import { Alert, AlertDescription, AlertTitle, } from "@/registry/bases/radix/ui/alert" import { Button } from "@/registry/bases/radix/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/bases/radix/ui/card" import { Field, FieldGr...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
deec31d48a26d74d
csharp
68
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; namespace Microsoft.SemanticKernel.Agents.Chat; /// <sum...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
b743a53eec88cc9a
csharp
21
Default Light+
using System; using System.Collections; using System.Runtime.CompilerServices; public class VBNonGenericForEach { public static void M() { ArrayList arrayList = new ArrayList(); foreach (object item in arrayList) { #if ROSLYN && OPT Console.WriteLine(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectVal...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...