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
d34b572bca08321f
csharp
71
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 ...
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.", ...
0ec2e6c59f415203
csharp
55
Default Light+
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSharpCode.Decompiler.TypeSystem; namespace ICSharpCode.Decompiler.PowerShell { public static class TypesParser { public static HashSet<TypeKind> ParseSelection(string[] values) { var possibleValues = new Dictionary<...
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...
310ae30ebeb703de
javascript
38
Default Light+
const { readdirSync, writeFileSync } = require("fs"); const files = readdirSync(`${__dirname}/../packages/excalidraw/locales`); const flatten = (object = {}, result = {}, extraKey = "") => { for (const key in object) { if (typeof object[key] !== "object") { result[extraKey + key] = object[key]; } else ...
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...
28600a55df745c94
rust
58
One Dark Pro
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::sync::Arc; use std::sync::atomic::AtomicU32; use vmm_sys_util::eventfd::EventFd; use crate::vstate::interrupts::InterruptError; /// MMIO transport for VirtIO devices pub mod mmio; /// PCI trans...
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...
81d9b2f8f2db0884
csharp
132
Monokai
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace System.Yaml { /// <summary> /// Extend string object to have .DoubleQuoteEscape() / .DoubleQuoteUnescape(). /// </summary> internal static class StringYamlDoubleQuoteE...
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...
97acd0d908e21fd3
csharp
49
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel; using Step02.Models; namespace Step02.Steps; /// <summary> /// Mock step that emulates the creation of a Welcome Packet for a new user after account creation /// </summary> public class WelcomePacketStep : KernelProcessStep { publi...
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...
f3f748a8cd8021df
cpp
249
One Dark Pro
/****************************************************************************** * * File: blkocc.h (Formerly blockocc.h) * Description: Block Occupancy routines * Author: Chris Newton * * (c) Copyright 1991, Hewlett-Packard Company. ** Licensed under the Apache License, Version 2.0 (the "License"...
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" ...
4ecb88ce40e2ef1c
go
78
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...
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...
be77cfa4bd62c8c9
cpp
57
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "Header Files/CalcEngine.h" #include "Header Files/CalcUtils.h" bool IsOpInRange(OpCode op, uint32_t x, uint32_t y) { return ((op >= x) && (op <= y)); } bool IsBinOpCode(OpCode opCode) { return IsOpInRang...
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...
075d522f05a1d084
typescript
189
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Browser Agent definition following the LocalAgentDefinition pattern. * * This agent uses LocalAgentExecutor for its reAct loop, like CodebaseInvestigatorAgent. * It is available ONLY via delegate_to_agent, N...
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"...
c8e4bfaa2cca785f
python
345
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio import inspect import json import logging import uuid from abc import ABC, abstractmethod from collections.abc import Awaitable, Callable from typing import Generic, Union, get_args from pydantic import Field from typing_extensions import TypeVar from se...
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"...
f0f863999159135b
python
25
Dracula
from typing import Any from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class UserIn(BaseModel): username: str password: str email: EmailStr full_name: str | None = None class UserOut(BaseModel): username: str email: EmailStr full_name: str | None = ...
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" ...
5760816ea22f1b30
typescript
111
Default Light+
export class BinaryHeap<T> { private content: T[] = []; constructor(private scoreFunction: (node: T) => number) {} sinkDown(idx: number) { const node = this.content[idx]; const nodeScore = this.scoreFunction(node); while (idx > 0) { const parentN = ((idx + 1) >> 1) - 1; const parent = th...
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" ...
38e44f7715c27cd0
rust
110
GitHub Dark
/// Finds the longest increasing subsequence and returns it. /// /// If multiple subsequences with the longest possible subsequence length can be found, the /// subsequence which appeared first will be returned (see `test_example_1`). /// /// Inspired by [this LeetCode problem](https://leetcode.com/problems/longest-inc...
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...
0c976300fe757b1d
csharp
193
Default Light+
// // ArrayInitializerExpression.cs // // Author: // Mike Krüger <mkrueger@novell.com> // // Copyright (c) 2010 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal...
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"...
78117ce381e00352
csharp
30
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text.Json.Serialization; namespace Microsoft.SemanticKernel.Connectors.MistralAI.Client; /// <summary> /// Usage for chat completion. /// </summary> public class MistralUsage { /// <summary> /// The number of tokens in the provided prompts for th...
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...
188d3f9425f299a1
csharp
43
Default Light+
using Microsoft.Extensions.Options; using MimeKit; using NimblePros.SampleToDo.Core.Interfaces; namespace NimblePros.SampleToDo.Infrastructure.Email; public class MimeKitEmailSender(ILogger<MimeKitEmailSender> logger, IOptions<MailserverConfiguration> mailserverOptions) : IEmailSender { private readonly ILogger<...
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" ...
0a9d2055374c0c75
go
43
Solarized Light
package v1 // PublicMethods defines API endpoints that don't require authentication. // All other endpoints require a valid session or access token. // // This is the SINGLE SOURCE OF TRUTH for public endpoints. // Both Connect interceptor and gRPC-Gateway interceptor use this map. // // Format: Full gRPC procedure pa...
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.", ...
0a766a518d2640dd
python
97
Solarized Light
#!/usr/bin/env python3 """ A Polybius Square is a table that allows someone to translate letters into numbers. https://www.braingle.com/brainteasers/codes/polybius.php """ import numpy as np SQUARE = [ ["a", "b", "c", "d", "e"], ["f", "g", "h", "i", "k"], ["l", "m", "n", "o", "p"], ["q", "r", "s", "...
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...
c493af3a176d4a83
csharp
70
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...
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...
e6f82419404ba989
java
75
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...
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...
15557dcae6dc5347
typescript
56
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { getPackageJson } from './package.js'; export enum ReleaseChannel { NIGHTLY = 'nightly', PREVIEW = 'preview', STABLE = 'stable', } const cache = new Map<string, ReleaseChannel>(); /** * Clears the cache for testin...
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...
b4824274227f4013
go
35
Solarized Dark
// Copyright 2021 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...
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...
da09e1c921f94ce8
java
58
One Dark Pro
// Copyright 2007 Google Inc. All 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 Unless required by // applicable law or agree...
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...
67c9205bb9399344
java
55
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 ...
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...
69306618038c6039
cpp
76
Solarized Light
#include "cmd-plugins.h" #include "console.h" #include "debugger.h" #include "module.h" #include "plugin_loader.h" static bool bScyllaLoaded = false; static DWORD WINAPI scyllaThread(void* lpParam) { typedef INT(WINAPI * SCYLLASTARTGUI)(DWORD pid, HINSTANCE mod, DWORD_PTR entrypoint); SCYLLASTARTGUI ScyllaSta...
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...
b453d0bd8a22a442
javascript
36
Dracula
/** * Finds the maximum profit from selling and buying the stocks. * PEAK VALLEY APPROACH. * * @param {number[]} prices - Array of stock prices, i.e. [7, 6, 4, 3, 1] * @param {function(): void} visit - Visiting callback to calculate the number of iterations. * @return {number} - The maximum profit */ const peakv...
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"...
65c5376df928a923
python
252
Monokai
# Copyright (c) Microsoft. All rights reserved. from enum import Enum import logging import math import time from pydantic import BaseModel class ResourceConstraintUnit(Enum): """Choose the unit of the resource constraint. Seconds and Minutes are real-time and will be impacted by the latency of the model.""...
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...
bdb15a5c2b7a7505
csharp
39
Monokai
namespace ScreenToGif.Domain.Enums.Native; public enum NativeMouseEvents { MouseMove = 0x200, MouseDragStart = 0x00AE, MouseDragEnd = 0x00AF, LeftButtonDown = 0x201, LeftButtonUp = 0x202, LeftButtonDoubleClick = 0x203, OutsideLeftButtonDown = 0x00A1, OutsideLeftButtonUp = 0x00A2, O...
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"...
dfb9ea8e6cf46208
go
179
Default Light+
package convert import ( "cmp" "encoding/json" "io/fs" "path/filepath" "slices" "strings" "github.com/ollama/ollama/fs/ggml" ) type bertModel struct { ModelParameters NLayers uint32 `json:"n_layers"` NumHiddenLayers uint32 `json:"num_hidden_layers"` NLayer uint32 `jso...
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" ...
03f5bc328090a0ca
csharp
77
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...
6eb9de6b95ebdcf2
rust
33
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 ShLvlConfig<'a> { pub threshold: i64, pub format: &'a str, pub symbol: &'a str, pu...
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" ...
fae898f78b75ede7
csharp
38
Default Light+
using System; using System.Runtime.InteropServices; using ICSharpCode.Decompiler.Tests.TestCases.Pretty.Issue3571_Helper; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { internal static class Issue3571_C { public static fsResult M() { fsResult success = fsResult.Success; fsResult fsResult2 = suc...
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"...
154c38933b2ad3ca
cpp
26
Solarized Light
#pragma once #include <BasicView/HexDump.h> #include "File.h" #include "MagicMenu.h" #include "Navigation.h" class MiniHexDump : public HexDump, public MagicMenu<MiniHexDump> { Q_OBJECT public: explicit MiniHexDump(Navigation* navigation, Architecture* architecture, QWidget* parent = nullptr); void loadF...
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.", ...
3bc0bbe498d94f22
typescript
236
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { PromptProvider } from './promptProvider.js'; import type { Config } from '../config/config.js'; import { getAllGeminiMdFilenames, DEFAULT_CONTEX...
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...
82791a1f9094c17a
typescript
168
Solarized Light
import { logger } from "../lib/logger"; import { deleteKey, getValue, setValue } from "./redis"; import { isPostgrestNoRowsError, supabase_rr_service, supabase_service, } from "./supabase"; type AgentSponsorStatus = { status: "pending" | "verified" | "blocked"; verification_deadline: string; email: string;...
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"...
b299611231e37cf2
go
68
Default Light+
package gowebdav import ( "fmt" "net/url" "testing" ) func TestJoin(t *testing.T) { eq(t, "/", "", "") eq(t, "/", "/", "/") eq(t, "/foo", "", "/foo") eq(t, "foo/foo", "foo/", "/foo") eq(t, "foo/foo", "foo/", "foo") } func eq(t *testing.T, expected string, s0 string, s1 string) { s := Join(s0, s1) if s != e...
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...
afbefb4a6eb494d8
rust
246
Solarized Light
use crate::{scrape::ScrapeOptions, FirecrawlApp, FirecrawlError, API_VERSION}; use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, Debug, Clone)] #[serde(rename_all = "camelCase")] pub struct SearchParams { /// The search query string pub query: String, /// Maximum number of results to re...
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...
ce8b2806f207035b
csharp
107
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...
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...
9d294cc6f310b0c6
go
132
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...
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.", ...
092b461398360003
rust
206
Default Dark+
use std::fs::File as StdFile; use std::io::Write; use std::path::{Path, PathBuf}; use std::str::FromStr; use tempfile::NamedTempFile; use uuid::Uuid; const UPDATE_FILES_PATH: &str = "updates/updates_files"; #[derive(Debug, thiserror::Error)] pub enum Error { #[error("Could not parse file name as utf-8")] Cou...
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...
3954449cf5bec690
csharp
180
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Text.Json.Serialization; namespace Microsoft.SemanticKernel.Agents.AzureAI; /// <summary> /// Optional parameters for <see cref="AzureAIAgent"/> invocation. /// </summary> public sealed class AzureAIAgentInvokeOptions : ...
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.", ...
51a1d712a9c2f5ae
python
99
Monokai
""" Add system_metadata and job_id columns to asset_references. Change preview_id FK from assets.id to asset_references.id. Revision ID: 0003_add_metadata_job_id Revises: 0002_merge_to_asset_references Create Date: 2026-03-09 """ from alembic import op import sqlalchemy as sa from app.database.models import NAMING_C...
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...
b41c861cc473b955
java
76
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 ...
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...
5774b83c6f653c39
python
102
Solarized Light
""" The Fibonacci sequence is defined by the recurrence relation: Fn = Fn-1 + Fn-2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 F7 = 13 F8 = 21 F9 = 34 F10 = 55 F11 = 89 F12 = 144 The 12th term, F12, is the ...
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.", ...
e44fd781a2d0b781
rust
42
Default Dark+
use crate::{ config::Config, error::OpenAIError, types::{DeleteModelResponse, ListModelResponse, Model}, Client, }; /// List and describe the various models available in the API. /// You can refer to the [Models](https://platform.openai.com/docs/models) documentation to understand what /// models are a...
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" ...
efaa5e0e0a5f035b
csharp
218
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Linq; using System.Text.Json; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.Ollama; using Xunit; namespace SemanticKernel.Connectors.Ollama.UnitTests.Settings; /// <summary> /// Unit tests of <see cref="OllamaPro...
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"...
e7351227c4588ad8
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 ...
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"...
ab5c3c42e488ed14
java
489
Default Dark+
package org.schabi.newpipe.util; import static org.schabi.newpipe.MainActivity.DEBUG; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.content.res.Resources; import android.icu.text.CompactDecimalFormat; import android.os.Build; import an...
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...
cf72936aba304d9c
typescript
44
GitHub Dark
import { computed, Ref, ref, unref } from 'vue'; export interface UseFullScreenContext { wrapClassName: Ref<string | undefined>; modalWrapperRef: Ref<ComponentRef>; extHeightRef: Ref<number>; } export function useFullScreen(context: UseFullScreenContext) { // const formerHeightRef = ref(0); const fullScreen...
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"...
8062723d0010d9e5
cpp
72
One Dark Pro
#include <content/helpers/capstone.hpp> #include <hex/api/localization_manager.hpp> #include <hex/ui/imgui_imhex_extensions.h> #include <hex/helpers/scaling.hpp> #include <pl/pattern_language.hpp> #include <pl/patterns/pattern.hpp> #include <imgui.h> #include <capstone/capstone.h> namespace hex::plugin::disasm { ...
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...
e6ddb550266e9104
typescript
33
Solarized Dark
import React, { useCallback, useMemo, useState } from 'react' import { ChainProxyContext } from './chain-proxy-context' export const ChainProxyProvider = ({ children, }: { children: React.ReactNode }) => { const [isChainMode, setIsChainMode] = useState(false) const [chainConfigData, setChainConfigData] = useS...
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"...
c8ba18ea05fe62de
java
33
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...
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...
f56d98212dfdd1f9
java
84
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" ...
5a4b96d06bc060be
java
31
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 ...
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...
ce89a706bed4a989
typescript
75
Default Dark+
import clsx from 'clsx'; import Link from 'next/link'; import { JobType } from '@prisma/client'; import type { JobTitleType } from '~/components/shared/JobTitles'; import { getLabelForJobTitleType } from '~/components/shared/JobTitles'; import { convertMoneyToString } from '~/utils/offers/currency'; import { formatDa...
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" ...
2aec0b5640bda70f
rust
127
Dracula
use std::{ ffi::c_void, sync::{Arc, RwLock}, vec, }; use hbb_common::libc::c_char; use lazy_static::lazy_static; use serde_json::Map; use crate::return_if_not_method; use self::{session::PluginNativeSessionHandler, ui::PluginNativeUIHandler}; use super::cstr_to_string; mod macros; pub mod session; pub ...
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...
2145b2779bf836d1
cpp
73
Solarized Light
#ifndef _DBGHELP_SAFE_H #define _DBGHELP_SAFE_H #pragma warning(push) #pragma warning(disable:4091) #include <dbghelp.h> #pragma warning(pop) #include <sal.h> void SafeDbghelpInitialize(); void SafeDbghelpDeinitialize(); BOOL SafeSymUnloadModule64( _In_ HANDLE hProcess, _In_ DWORD64 BaseOfDll ); BOOL SafeSy...
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...
2113f2ebdc7c1ecc
java
45
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...
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...
8c97ef0bb9a449be
python
148
Monokai
# Copyright (c) Microsoft. All rights reserved. import sys from typing import Any from google.genai import Client from google.genai.types import EmbedContentConfigDict, EmbedContentResponse from numpy import array, ndarray from pydantic import ValidationError from semantic_kernel.connectors.ai.embedding_generator_ba...
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.", ...
bbf8285377dcba84
typescript
106
Solarized Light
import { cn } from "@/registry/bases/radix/lib/utils" import { Button } from "@/registry/bases/radix/ui/button" import { Card, CardContent } from "@/registry/bases/radix/ui/card" import { Field, FieldDescription, FieldGroup, FieldLabel, FieldSeparator, } from "@/registry/bases/radix/ui/field" import { Input }...
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...
7e5bd56d1eab9bcd
javascript
65
Default Dark+
const { R } = require("redbean-node"); const { log } = require("../../src/util"); const Database = require("../database"); const { Settings } = require("../settings"); const dayjs = require("dayjs"); const DEFAULT_KEEP_PERIOD = 365; /** * Clears old data from the heartbeat table and the stat_daily of the database. ...
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...
96383a9974698cb6
python
53
Default Light+
from .common import InfoExtractor from ..utils import js_to_json class PeerTVIE(InfoExtractor): IE_NAME = 'peer.tv' _VALID_URL = r'https?://(?:www\.)?peer\.tv/(?:de|it|en)/(?P<id>\d+)' _TESTS = [{ 'url': 'https://www.peer.tv/de/841', 'info_dict': { 'id': '841', 'ext...
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"...
70503b74146dbce5
java
35
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...
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...
89d227dd6e5ee912
typescript
202
Default Light+
import React from "react"; import { isPromiseLike } from "@excalidraw/common"; import type { ExcalidrawElement, OrderedExcalidrawElement, } from "@excalidraw/element/types"; import { trackEvent } from "../analytics"; import type { AppClassProperties, AppState } from "../types"; import type { Action, Updater...
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...
e54d2af82fa17464
csharp
23
Default Dark+
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace RevokeMsgPatcher.Assistant { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() ...
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...
b640c56a8bd7606d
cpp
284
Dracula
/** * Copyright 2019-2023, XGBoost Contributors * \file bitfield.h */ #ifndef XGBOOST_COMMON_BITFIELD_H_ #define XGBOOST_COMMON_BITFIELD_H_ #include <algorithm> // for min #include <bitset> // for bitset #include <cstdint> // for uint32_t, uint64_t, uint8_t #include <ostream> // for ostream #incl...
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...
a8534e7007a3e05c
csharp
41
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 ...
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"...
94f5370e43ea78e2
typescript
55
Solarized Light
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, } from "@/examples/base/ui/select" export function SelectGroups() { const fruits = [ { label: "Apple", value: "apple" }, { label: "Banana", value: "banana" }, { label: "Blueb...
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...
4f1c08be0b7f6ea2
typescript
141
GitHub Dark
import { defHttp } from '/@/utils/http/axios'; import { Modal } from 'ant-design-vue'; export enum Api { //知识库管理 list = '/airag/app/list', save = '/airag/app/edit', release = '/airag/app/release', delete = '/airag/app/delete', queryById = '/airag/app/queryById', queryBathById = '/airag/knowledge/query/ba...
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...
715e0fc8efe1959c
csharp
226
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json.Serialization; using Microsoft.SemanticKernel.ChatCompletion; using Microsoft.SemanticKernel.Connectors.Google.Core; namespace Microsoft.SemanticKernel.Connectors.Google; /...
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...
f311604676c4536e
java
67
GitHub Dark
package org.jeecg.modules.system.controller; import lombok.extern.slf4j.Slf4j; import org.jeecg.common.api.vo.Result; import org.jeecg.common.util.CommonUtils; import org.jeecg.common.util.MinioUtil; import org.jeecg.common.util.filter.SsrfFileTypeFilter; import org.jeecg.common.util.oConvertUtils; import org.jeecg.mo...
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" ...
8514cf191aef22ad
rust
26
GitHub Dark
/// Like assert_eq, but nicer output for long strings. #[cfg(test)] #[macro_export] macro_rules! assert_eq_printed { ($expected:expr, $got:expr, $($tt:tt)*) => { let expected = &*$expected; let got = &*$got; let label = format!($($tt)*); if expected != got { panic!(" prin...
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...
b640eaffe539c887
csharp
76
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...
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" ...
b61f23beec164a55
csharp
193
Monokai
using System; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Media.Animation; using ScreenToGif.Domain.Enums; using Button = System.Windows.Controls.Button; using Control = System.Windows.Controls.Control; namespace ScreenToGif.Con...
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" ...
e3f2aac7b99c8ccb
go
237
Solarized Light
// Code generated by protoc-gen-connect-go. DO NOT EDIT. // // Source: api/v1/attachment_service.proto package apiv1connect import ( connect "connectrpc.com/connect" context "context" errors "errors" v1 "github.com/usememos/memos/proto/gen/api/v1" emptypb "google.golang.org/protobuf/types/known/emptypb" http "n...
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.", ...
1718f67d276294e9
cpp
456
Dracula
/** * Copyright 2025, XGBoost contributors * * @brief Orindal re-coder for categorical features. * * For training with dataframes, we use the default encoding provided by the dataframe * implementation. However, we need a way to ensure the encoding is consistent at test * time, which is often not the case. This ...
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...
b77ba7c92943f16f
csharp
41
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...
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"...
c65a29cb9685879c
go
93
Solarized Dark
// Copyright 2025 The frp 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 to...
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...
118ae0fcb4752f7a
go
26
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...
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...
4bcd229e48387040
javascript
99
Dracula
import BinarySearchTree from '../BinarySearchTree'; describe('BinarySearchTree', () => { it('should create binary search tree', () => { const bst = new BinarySearchTree(); expect(bst).toBeDefined(); expect(bst.root).toBeDefined(); expect(bst.root.value).toBeNull(); expect(bst.root.left).toBeNull...
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...
803938f1fe912a51
python
172
Solarized Light
# https://en.wikipedia.org/wiki/Lowest_common_ancestor # https://en.wikipedia.org/wiki/Breadth-first_search from __future__ import annotations from queue import Queue def swap(a: int, b: int) -> tuple[int, int]: """ Return a tuple (b, a) when given two integers a and b >>> swap(2,3) (3, 2) >>> s...
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" ...
d05c42f6bfb3e9d5
python
24
Monokai
# Copyright (c) Microsoft. All rights reserved. from semantic_kernel.connectors.ai.bedrock.bedrock_prompt_execution_settings import ( BedrockChatPromptExecutionSettings, BedrockEmbeddingPromptExecutionSettings, BedrockPromptExecutionSettings, BedrockTextPromptExecutionSettings, ) from semantic_kernel.c...
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...
71937e32829c6e28
csharp
61
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Net.Http; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; namespace Microsoft.SemanticKernel.Connectors.Weaviate; internal static class HttpRequest { private static readonly JsonSerializerOptions s_jsonOptionsCache = ...
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.", ...
48e0001381696ed6
java
31
GitHub Dark
package org.jeecg.modules.airag.wordtpl.dto; import java.util.List; import lombok.Data; @Data public class WordTableRowDTO { /** * @Fields height : 行高 * @author chenrui * @date 2024-09-26 09:45:30 */ private Integer height; /** * @Fields minHeight : 行最小高度 * @author chenrui * @date 2024-09-...
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"...
ce3c2a181db347bc
csharp
65
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using Xunit; namespace Microsoft.SemanticKernel.Agents.Runtime.Abstractions.Tests; [Trait("Category", "Unit")] public class AgentTypeTests { [Theory] [InlineData(null)] [InlineData("")] [InlineData(" ")] [InlineData("invalid type")] ...
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.", ...
8f6199e6078a3688
python
79
Solarized Light
""" LeetCode 133. Clone Graph https://leetcode.com/problems/clone-graph/ Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in the graph contains a value (int) and a list (List[Node]) of its neighbors. """ from dataclasses import dataclass @dataclass cl...
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" ...
efdb923a72a67ee9
go
80
Default Light+
package db import ( "github.com/alist-org/alist/v3/internal/model" "github.com/pkg/errors" "gorm.io/gorm" "time" ) // GetLabels Get all label from database order by id func GetLabels(pageIndex, pageSize int) ([]model.Label, int64, error) { labelDB := db.Model(&model.Label{}) var count int64 if err := labelDB.C...
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...
ecee268c93bce6ba
python
39
Dracula
import subprocess import time import httpx from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manu...
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...
104e7d364bbec6ee
cpp
52
Solarized Dark
#ifndef OPENPOSE_THREAD_WORKER_PRODUCER_HPP #define OPENPOSE_THREAD_WORKER_PRODUCER_HPP #include <openpose/core/common.hpp> #include <openpose/thread/worker.hpp> namespace op { template<typename TDatums> class WorkerProducer : public Worker<TDatums> { public: virtual ~WorkerProducer(); ...
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...
0ec7bbbee45a97ed
csharp
43
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 ...
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"...
d6a6e7244946220d
typescript
67
Solarized Light
"use client" import * as React from "react" import { cn } from "@/registry/new-york-v4/lib/utils" export function ComponentWrapper({ className, name, children, ...props }: React.ComponentPropsWithoutRef<"div"> & { name: string }) { return ( <ComponentErrorBoundary name={name}> <div id={na...
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.", ...
ac1e4ecdaeee662a
cpp
254
Solarized Dark
#include <openpose/filestream/videoSaver.hpp> #include <opencv2/highgui/highgui.hpp> // cv::VideoWriter #include <openpose/filestream/imageSaver.hpp> #include <openpose/utilities/fileSystem.hpp> #include <openpose/utilities/string.hpp> namespace op { const auto RANDOM_TEXT = "_r8904530ijyiopf9034jiop4g90j0yh795640...
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...
9ee83328e9585887
csharp
89
Default Light+
// // IdentifierExpression.cs // // Author: // Mike Krüger <mkrueger@novell.com> // // Copyright (c) 2009 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // ...
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...
459ef1b8c4ff757f
cpp
32
Solarized Dark
#include <openpose/thread/headers.hpp> namespace op { // Queues DEFINE_TEMPLATE_DATUM(PriorityQueue); DEFINE_TEMPLATE_DATUM(Queue); template class OP_API QueueBase<BASE_DATUMS_SH, std::queue<BASE_DATUMS_SH>>; template class OP_API QueueBase< BASE_DATUMS_SH, std::priority_queue<BASE_...
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...
30a43c0a74a5f3e2
cpp
53
Dracula
/** * Copyright 2022-2023 by XGBoost contributors */ #include "init_estimation.h" #include <memory> // unique_ptr #include "../common/stats.h" // Mean #include "../tree/fit_stump.h" // FitStump #include "xgboost/base.h" // GradientPair #include "xgboost/da...
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"...
95f2e0f3ae77e6a4
typescript
113
Solarized Dark
import { decodeAndTrim, decodeBase64OrOriginal, getCipher, getIfNotBlank, getIfPresent, parseBoolOrPresence, parseQueryString, parseRequiredPort, splitOnce, stripUriScheme, } from './helpers' export function URI_SS(line: string): IProxyShadowsocksConfig { const afterScheme = stripUriScheme(line, ...
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...
6f2381ff98a5933e
javascript
20
Dracula
import isPositive from '../isPositive'; describe('isPositive', () => { it('should detect if a number is positive', () => { expect(isPositive(1)).toBe(true); expect(isPositive(2)).toBe(true); expect(isPositive(3)).toBe(true); expect(isPositive(5665)).toBe(true); expect(isPositive(56644325)).toBe(t...
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...
cf5ba27d1d57dd53
python
93
Solarized Light
def is_polish_national_id(input_str: str) -> bool: """ Verification of the correctness of the PESEL number. www-gov-pl.translate.goog/web/gov/czym-jest-numer-pesel?_x_tr_sl=auto&_x_tr_tl=en PESEL can start with 0, that's why we take str as input, but convert it to int for some calculations. >...
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...
0277cbb85efbb121
csharp
45
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...
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"...