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
f05e21d463e3bbb7
cpp
90
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...
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...
8bb84e8668cfe715
csharp
38
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using Microsoft.Extensions.Logging; using Microsoft.Extensions.VectorData; namespace Microsoft.SemanticKernel.Functions; [ExcludeFromCodeCoverage] internal static class Functi...
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...
43113044a02de9ae
rust
139
Dracula
use std::ffi::CString; use std::ptr; use std::rc::Rc; use crate::Pixfmt; use hbb_common::libc; use super::ffi::*; use super::{Display, Rect, Server}; //TODO: Do I have to free the displays? pub struct DisplayIter { outer: xcb_screen_iterator_t, inner: Option<(xcb_randr_monitor_info_iterator_t, xcb_window_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...
294ba6fa79c4e2a8
rust
359
Default Dark+
use chrono::{NaiveDateTime, Utc}; use data_encoding::{BASE64, BASE64URL}; use derive_more::{Display, From}; use serde_json::Value; use super::{AuthRequest, UserId}; use crate::db::schema::devices; use crate::{ crypto, util::{format_date, get_uuid}, }; use diesel::prelude::*; use macros::{IdFromParam, UuidFrom...
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...
10a4b24dc804d09a
go
92
One Dark Pro
package whisper_test import ( "testing" "github.com/ggerganov/whisper.cpp/bindings/go/pkg/whisper" assert "github.com/stretchr/testify/assert" ) func TestNew(t *testing.T) { assert := assert.New(t) t.Run("valid model path", func(t *testing.T) { model, err := whisper.New(ModelPath) assert.NoError(err) asse...
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...
d6490295442ab9ba
java
99
GitHub Dark
package org.jeecg.common.es; /** * 用于创建 ElasticSearch 的 queryString * * @author sunjianlei */ public class QueryStringBuilder { StringBuilder builder; public QueryStringBuilder(String field, String str, boolean not, boolean addQuot) { builder = this.createBuilder(field, str, not, addQuot); } ...
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...
a3d987385ef60883
csharp
202
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using Microsoft.SemanticKernel.Text; using OpenAI.Images; namespace Microsoft.SemanticKernel.Connectors.OpenAI; /// <summary> /// Text to image execution settings for an O...
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...
54702e1603b890ef
csharp
44
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...
83c7420b5a3028bd
java
36
Default Light+
package com.thealgorithms.bitmanipulation; /** * A utility class to find the non-repeating number in an array where every other number repeats. * This class contains a method to identify the single unique number using bit manipulation. * * The solution leverages the properties of the XOR operation, which states 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" ...
4aee594ce83afb79
csharp
30
Monokai
// Copyright (c) Microsoft. All rights reserved. using Amazon.BedrockRuntime.Model; using Microsoft.SemanticKernel.ChatCompletion; namespace Microsoft.SemanticKernel.Connectors.Amazon.Core; internal interface IBedrockChatCompletionService { /// <summary> /// Builds the converse request given the chat histor...
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"...
70aff89686a1ca2d
java
57
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...
5a8898a6e25fb5b1
csharp
49
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using Windows.UI.Xaml; namespace CalculatorApp { public sealed class DispatcherTimerDelayer { public event EventHandler<object> Action; public DispatcherTimerDelayer(TimeSpan timeSp...
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"...
98d6ba75a88e46d5
java
81
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...
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...
e576d494e7744986
python
92
Monokai
# Copyright (c) Microsoft. All rights reserved. from semantic_kernel.exceptions.kernel_exceptions import KernelException class FunctionException(KernelException): """Base class for all function exceptions.""" pass class FunctionSyntaxError(FunctionException): """Base class for all function syntax excep...
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...
e5f0402bbcc05ed4
csharp
59
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...
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...
4f8e21cda4ed3b1d
typescript
134
Solarized Light
"use client" import * as React from "react" import { cn } from "@/examples/base/lib/utils" import { Button } from "@/examples/base/ui-rtl/button" import { Dialog as SheetPrimitive } from "@base-ui/react/dialog" import { XIcon } from "lucide-react" function Sheet({ ...props }: SheetPrimitive.Root.Props) { return <Sh...
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...
e4442636ccc8f284
typescript
49
Solarized Light
import { Field, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSet, FieldTitle, } from "@/examples/base/ui/field" import { RadioGroup, RadioGroupItem } from "@/examples/base/ui/radio-group" export default function FieldChoiceCard() { return ( <FieldGroup className="w-fu...
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...
8c498a9cd6930749
java
62
GitHub Dark
package org.jeecg.common.system.vo; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import org.jeecg.common.desensitization.annotation.SensitiveField; import org.springframework.format.annotation.DateTimeFormat; import java...
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...
9cbc4442d6d583ac
cpp
454
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2010 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...
0a1443677c70dfcc
java
248
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...
31335b4bf09b54b8
csharp
51
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Globalization; using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; using Microsoft.SemanticKernel.Plugins.OpenApi; using Xunit; namespace SemanticKernel.Functions.UnitTests.OpenApi.Extensions; public class OpenA...
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...
2331cf88e81a5fb8
csharp
192
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...
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.", ...
3a98a2889efcf4f3
python
325
Default Light+
import re from .common import InfoExtractor from ..networking.exceptions import HTTPError from ..utils import ( ExtractorError, determine_ext, float_or_none, int_or_none, js_to_json, parse_iso8601, remove_end, strip_or_none, try_get, ) class TV2IE(InfoExtractor): _VALID_URL = ...
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"...
bedb43777652c849
cpp
159
Dracula
/** * Copyright 2017-2026, XGBoost contributors */ #ifndef XGBOOST_OBJECTIVE_REGRESSION_LOSS_H_ #define XGBOOST_OBJECTIVE_REGRESSION_LOSS_H_ #include <cmath> #include "../common/common.h" // Min, Max #include "../common/math.h" #include "xgboost/string_view.h" #include "xgboost/task.h" // ObjInfo namespace xgboo...
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...
180a55b709cfb3d4
typescript
210
Solarized Dark
import useSWR, { mutate } from 'swr' import { selectNodeForGroup } from 'tauri-plugin-mihomo-api' import { calcuProxies, getProfiles, patchProfile, patchProfilesConfig, } from '@/services/cmds' import { debugLog } from '@/utils/debug' export const useProfiles = () => { const { data: profiles, mutate...
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...
463d32638a8fd6af
cpp
95
One Dark Pro
#include <hex/helpers/utils.hpp> #include <hex/helpers/fmt.hpp> #include <hex/api/localization_manager.hpp> #include <hex/ui/imgui_imhex_extensions.h> #include <charconv> namespace hex::plugin::builtin { static u32 digitsNeeded(u32 numDigits, u32 baseX, u32 baseY) { if (numDigits == 0) retur...
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...
b4819f7ee598a823
go
211
Default Light+
package onedrive import ( "context" "fmt" "net/http" "net/url" "path" "sync" "github.com/alist-org/alist/v3/drivers/base" "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/errs" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/pkg/utils" "...
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"...
f3fa66c43f64b0c4
typescript
37
Dracula
import type { Connect } from '#dep-types/connect' /** * A middleware that rejects no-cors mode requests that are not same-origin. * * We should avoid untrusted sites to load the script to avoid attacks like GHSA-4v9v-hfq4-rm2v. * This is because: * - the path of HMR patch files / entry point files can be predicta...
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...
3262ef2e66617cde
csharp
107
Monokai
using System.Text.RegularExpressions; namespace Netch.Models.GitHubRelease; [Serializable] public struct SuffixVersion : IComparable, IComparable<SuffixVersion> { public Version Version { get; } public string? Suffix { get; } public int SuffixNum { get; } private SuffixVersion(Version version) ...
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"...
9c81bc7a5f16a9da
java
220
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...
34135686232ae56b
csharp
126
Default Light+
// Copyright (c) 2024 Tom Englert 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, copy, 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...
d82bc4fb2252cdaa
typescript
233
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { z } from 'zod'; import type { BaseLlmClient } from '../../core/baseLlmClient.js'; import type { RoutingContext, RoutingDecision, RoutingStrategy, } from '../routingStrategy.js'; import { resolveClassifierModel } fro...
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...
1e188d303b2445fe
csharp
36
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using Microsoft.SemanticKernel.ChatCompletion; namespace Microsoft.SemanticKernel.Agents.Extensions; /// <summary> /// Provides extension methods for <see cref="ChatMessageContent"/>. /// </summary> public static class ChatHistoryExte...
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" ...
1707253145a19b26
go
36
Default Light+
//go:build windows || darwin package tools import ( "context" "errors" "github.com/ollama/ollama/api" internalcloud "github.com/ollama/ollama/internal/cloud" ) // ensureCloudEnabledForTool checks cloud policy from the connected Ollama server. // If policy cannot be determined, this fails closed and blocks the o...
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...
f5a842684165fbc4
python
75
Default Light+
from .common import InfoExtractor from ..utils import ( determine_ext, int_or_none, parse_iso8601, traverse_obj, urljoin, ) class CaffeineTVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?caffeine\.tv/[^/?#]+/video/(?P<id>[\da-f-]+)' _TESTS = [{ 'url': 'https://www.caffeine.tv...
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...
deccc8d32c5cb5a8
csharp
75
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...
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...
3937169e5cefcdf2
python
150
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio import os from azure.ai.agents.models import FilePurpose from azure.identity.aio import AzureCliCredential from semantic_kernel.agents import AgentRegistry, AzureAIAgent, AzureAIAgentSettings """ The following sample demonstrates how to create an Azure ...
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...
0496b952ef75ad8c
csharp
50
Default Light+
using System; public static class Issue684 { static int Main(string[] A_0) { int[] array = new int[1000]; int num = int.Parse(Console.ReadLine()); // Point of this test was to ensure the stack slot here uses an appropriate type, // (bool instead of int). Unfortunately our type fixup runs too late to affect v...
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...
f6a329e47a420acb
python
101
Dracula
"""Testing code shared by other tests.""" import collections import importlib.util import json import os import tempfile from typing import Any, Callable, Dict, Type import numpy as np import xgboost as xgb from xgboost._typing import ArrayLike def validate_leaf_output(leaf: np.ndarray, num_parallel_tree: int) -> ...
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" ...
61b61f44ab1e9717
java
179
Default Dark+
package org.schabi.newpipe.player.mediasource; import android.os.Handler; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.google.android.exoplayer2.source.ConcatenatingMediaSource; import com.google.android.exoplayer2.source.ShuffleOrder; import org.schabi.newpipe.player.mediaite...
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"...
e4fb058118ded30f
javascript
281
Dracula
import DoublyLinkedList from '../DoublyLinkedList'; describe('DoublyLinkedList', () => { it('should create empty linked list', () => { const linkedList = new DoublyLinkedList(); expect(linkedList.toString()).toBe(''); }); it('should append node to linked list', () => { const linkedList = new DoublyL...
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"...
3a95acab0ab7222e
rust
42
Default Dark+
use heed::RwTxn; use roaring::RoaringBitmap; use serde::Deserialize; use super::{UpgradeIndex, UpgradeParams}; use crate::update::new::indexer::recompute_word_fst_from_word_docids_database; use crate::{Index, Result}; pub(super) struct RecomputeWordFst(); impl UpgradeIndex for RecomputeWordFst { fn upgrade( ...
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" ...
c6a0f8d32a6af4ab
typescript
55
Solarized Light
"use client" import { Avatar, AvatarFallback, AvatarImage } from "@/examples/base/ui/avatar" import { Button } from "@/examples/base/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/examples/base/ui/dropdown-me...
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...
243ef632dea60a94
python
26
Dracula
from typing import Annotated from fastapi import Body, FastAPI, status from fastapi.responses import JSONResponse app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[str | N...
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" ...
c377ff4d7a51a730
typescript
495
Solarized Light
import { logger } from "../logger"; import { calculateLogoArea } from "./types"; export interface LogoCandidate { src: string; alt: string; isSvg: boolean; isVisible: boolean; location: "header" | "body" | "footer"; position: { top: number; left: number; width: number; height: number }; indicators: { ...
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" ...
feab5f6d9cbe9112
cpp
172
Default Light+
#include "llama-impl.h" #include "gguf.h" #include "llama.h" #include <cinttypes> #include <climits> #include <cstdarg> #include <cstring> #include <vector> #include <sstream> struct llama_logger_state { ggml_log_callback log_callback = llama_log_callback_default; void * log_callback_user_data = nullptr; }; ...
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"...
dc906b8e8bea537a
csharp
66
Default Light+
using System; using System.Collections; using System.Collections.Generic; namespace ICSharpCode.Decompiler.Tests.TestCases.ILPretty { public static class Issue3552 { public static Issue3552_IntegerPair MakePair1(int x, int y) { Issue3552_IntegerPairBuilder issue3552_IntegerPairBuilder = new Issue3552_IntegerP...
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...
428ad986f24f601d
csharp
36
Default Light+
using MinimalClean.Architecture.Web.Domain.Interfaces; using MinimalClean.Architecture.Web.Infrastructure; using MinimalClean.Architecture.Web.Infrastructure.Email; namespace MinimalClean.Architecture.Web.Configurations; public static class ServiceConfigs { public static IServiceCollection AddServiceConfigs(this IS...
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...
4f74ddfca1601d93
go
227
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...
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...
2bbefaddd9dafe7b
typescript
190
Solarized Light
"use client" import * as React from "react" import { Label, Pie, PieChart, Sector } from "recharts" import { type PieSectorDataItem } from "recharts/types/polar/Pie" import { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartCont...
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...
f417551dc0146d3b
go
326
Default Light+
package qwen25vl import ( "math" "slices" "github.com/ollama/ollama/fs" "github.com/ollama/ollama/ml" "github.com/ollama/ollama/ml/nn" "github.com/ollama/ollama/ml/nn/rope" ) func blockDiagonalMask(ctx ml.Context, seqLength int, bounds []int) ml.Tensor { // Initialize a 2D mask with -Inf s := make([][]float3...
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"...
fb6a9a6f945cce57
csharp
257
Default Light+
// // UnaryOperatorExpression.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 //...
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...
10bd1aeaebe005fe
typescript
31
Default Dark+
import { Container } from './Container'; export function CallToAction() { return ( <section className="relative overflow-hidden py-32" id="get-started-today"> <Container className="relative"> <div className="mx-auto text-center"> <h2 className="font-display text-3xl tracking-tight text-sl...
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...
dfc11e86bbea8d69
javascript
90
Dracula
const DEFAULT_BASE = 37; const DEFAULT_MODULUS = 101; export default class PolynomialHash { /** * @param {number} [base] - Base number that is used to create the polynomial. * @param {number} [modulus] - Modulus number that keeps the hash from overflowing. */ constructor({ base = DEFAULT_BASE, modulus = D...
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...
724d64d7a536bf82
go
98
Default Light+
package renderers import ( "fmt" "github.com/ollama/ollama/api" ) type Renderer interface { Render(messages []api.Message, tools []api.Tool, think *api.ThinkValue) (string, error) } type ( RendererConstructor func() Renderer RendererRegistry struct { renderers map[string]RendererConstructor } ) // Rende...
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...
20138895b6c869ad
csharp
120
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"...
cf8376ea8f3d4e59
java
272
Default Light+
package com.thealgorithms.datastructures.heaps; import java.util.ArrayList; import java.util.List; /** * A Min Heap implementation where each node's key is lower than or equal to its children's keys. * This data structure provides O(log n) time complexity for insertion and deletion operations, * and O(1) for retri...
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...
3828aa2f87f9c60a
csharp
121
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 ...
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...
f2152eeaf4f2ab10
csharp
73
Default Dark+
//------------------------------------------------------------------------------ // <auto-generated> // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // </auto-generated> //------------------------------------------------------------------------------ namespace R...
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...
683dc2a6465413e1
python
63
Default Light+
from .common import InfoExtractor class ElTreceTVIE(InfoExtractor): IE_DESC = 'El Trece TV (Argentina)' _VALID_URL = r'https?://(?:www\.)?eltrecetv\.com\.ar/[\w-]+/capitulos/temporada-\d+/(?P<id>[\w-]+)' _TESTS = [ { 'url': 'https://www.eltrecetv.com.ar/ahora-caigo/capitulos/temporada-...
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...
8a7cdb6cf871738d
cpp
30
One Dark Pro
#include <hex/helpers/utils.hpp> #include <content/visualizer_helpers.hpp> #include <implot.h> #include <imgui.h> #include <hex/ui/imgui_imhex_extensions.h> namespace hex::plugin::visualizers { void drawLinePlotVisualizer(pl::ptrn::Pattern &, bool shouldReset, std::span<const pl::core::Token::Literal> argument...
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...
0460c88420ad0ede
java
45
Solarized Dark
// Write a function that takes a string as input and reverse only the vowels of a string. // Example 1: // Given s = "hello", return "holle". // Example 2: // Given s = "leetcode", return "leotcede". // Note: // The vowels does not include the letter "y". public class ReverseVowelsOfAString { public String reve...
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.", ...
6ca76911de607428
typescript
92
Solarized Light
"use client" import { usePathname } from "next/navigation" import { ChevronRight, type LucideIcon } from "lucide-react" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupLabel, SidebarMenu, SidebarMenuAction, ...
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"...
04d64f615b8eb7ee
csharp
100
Monokai
using System.Net; using System.Text; using Microsoft.VisualStudio.Threading; namespace Netch.Utils; public static class WebUtil { public const string DefaultUserAgent = @"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31"; ...
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...
104f29ba0fcec4b9
java
100
GitHub Dark
package com.github.mikephil.charting.jobs; import android.animation.Animator; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.annotation.SuppressLint; import android.view.View; import com.github.mikephil.charting.utils.Transformer; import com.github.mikephil.charting.ut...
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"...
c55459ff46deaca4
python
97
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from azure.identity import AzureCliCredential from semantic_kernel.agents import AgentGroupChat, AzureAIAgent, AzureAIAgentSettings, ChatCompletionAgent from semantic_kernel.agents.strategies import TerminationStrategy from semantic_kernel.connectors.ai....
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...
ff84e2b4ff29500a
python
68
Default Light+
import os import gradio as gr from modules import localization, shared, scripts, util from modules.paths import script_path, data_path def webpath(fn): return f'file={util.truncate_path(fn)}?{os.path.getmtime(fn)}' def javascript_html(): # Ensure localization is in `window` before scripts head = f'<scr...
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...
57385dd228744089
cpp
54
Solarized Dark
#ifndef OPENPOSE_PRODUCER_VIDEO_READER_HPP #define OPENPOSE_PRODUCER_VIDEO_READER_HPP #include <openpose/core/common.hpp> #include <openpose/producer/videoCaptureReader.hpp> namespace op { /** * VideoReader is a wrapper of the cv::VideoCapture class for video. It allows controlling a video (e.g., extracting ...
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" ...
5c241d70e4869cc9
typescript
52
GitHub Dark
import * as echarts from 'echarts/core'; import { BarChart, LineChart, PieChart, MapChart, PictorialBarChart, RadarChart } from 'echarts/charts'; import { TitleComponent, TooltipComponent, GridComponent, PolarComponent, AriaComponent, ParallelComponent, LegendComponent, RadarComponent, ToolboxCompon...
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...
f6975ce3b5976498
typescript
68
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { execStreaming } from './shell-utils.js'; // Integration tests using real child processes describe('execStreaming (Integration)', () => { it('should yield lines from stdout',...
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...
c1e72e4afb0bc44e
java
34
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...
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...
64eb751581fb8e00
csharp
127
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Identity.Client; using Microsoft.Identity.Client.Extensions.Msal; using Microsoft.SemanticKernel.Plugins.MsGraph.Connec...
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.", ...
1e17b16f52eee0e8
python
39
Solarized Light
""" https://en.wikipedia.org/wiki/Median """ def median(matrix: list[list[int]]) -> int: """ Calculate the median of a sorted matrix. Args: matrix: A 2D matrix of integers. Returns: The median value of the matrix. Examples: >>> matrix = [[1, 3, 5], [2, 6, 9], [3, 6, 9]] ...
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...
cb910f83a6af82c0
rust
119
One Dark Pro
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::os::unix::io::AsRawFd; use std::time::Duration; use event_manager::{EventOps, Events, MutEventSubscriber}; use utils::time::TimerFd; use vmm::logger::{IncMetric, METRICS, error, warn}; use vmm_sy...
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...
cf42d705b12d48bd
javascript
44
Default Dark+
exports.up = function (knex) { return knex.schema .createTable("stat_minutely", function (table) { table.increments("id"); table.comment("This table contains the minutely aggregate statistics for each monitor"); table .integer("monitor_id") ...
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...
4cfc7807e70e7dd1
python
135
Default Light+
import base64 import urllib.parse from .bokecc import BokeCCBaseIE from ..utils import ( ExtractorError, determine_ext, traverse_obj, update_url_query, ) class InfoQIE(BokeCCBaseIE): _VALID_URL = r'https?://(?:www\.)?infoq\.com/(?:[^/]+/)+(?P<id>[^/]+)' _TESTS = [{ 'url': 'http://www...
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.", ...
488e3176e13427ce
java
41
GitHub Dark
package org.jeecg.modules.system.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.apache.ibatis.annotations.Select; import org.jeecg.modules.system.entity.SysPosition; import org.springframework.data.repository.query.Param; i...
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"...
7abc5791a611a8c6
java
428
GitHub Dark
package org.jeecg.modules.airag.llm.controller; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import io...
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.", ...
4d5decd38cbdd285
typescript
29
Default Light+
import React from "react"; import { KEYS } from "@excalidraw/common"; import { Excalidraw } from "../../index"; import { Keyboard } from "../../tests/helpers/ui"; import { render, waitFor, getByTestId, fireEvent, } from "../../tests/test-utils"; describe("Test <DropdownMenu/>", () => { it("should", async (...
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" ...
3b251677c22d8807
java
85
Default Dark+
package org.schabi.newpipe.player.gesture; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.widget.FrameLayout; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import andro...
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"...
c5c0253ae3000dd2
cpp
111
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2009 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...
a806e434e8a59f6a
csharp
20
Monokai
// Copyright (c) Microsoft. All rights reserved. namespace VectorStoreRAG; /// <summary> /// Interface for loading data into a data store. /// </summary> internal interface IDataLoader { /// <summary> /// Load the text from a PDF file into the data store. /// </summary> /// <param name="pdfPath">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...
5903bb91bb7c8465
python
25
Dracula
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float = 10.5 tags: list[str] = [] items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The bart...
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...
11fa63d5b5dcfaf3
java
213
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...
97efb75227549992
typescript
50
Default Light+
import { useEditorInterface } from "../App"; import { RadioGroup } from "../RadioGroup"; type Props<T> = { value: T; shortcut?: string; choices: { value: T; label: React.ReactNode; ariaLabel?: string; }[]; onChange: (value: T) => void; children: React.ReactNode; name: string; }; const Dropdo...
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.", ...
095d2ec0aa17c094
java
23
Solarized Dark
// Given a binary tree, find its maximum depth. // The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x)...
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...
167a1763653b162e
typescript
81
Solarized Light
import { AppWindowIcon, CodeIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Input } from "@/registry/new-york-v4/ui/input" import { Label } f...
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...
7651872fe14d078c
java
34
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...
095ef882b5148ac4
java
63
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...
771072ee191eeb81
typescript
137
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, afterEach, vi } from 'vitest'; import { resolveAuthValue, needsResolution, maskSensitiveValue, } from './value-resolver.js'; describe('value-resolver', () => { describe('resolveAuthValue', ()...
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.", ...
7edd9e6da5cd8f58
csharp
52
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Diagnostics.CodeAnalysis; namespace Microsoft.SemanticKernel.Agents.Runtime; /// <summary> /// Defines a subscription that matches topics and maps them to agents. /// </summary> public interface ISubscriptionDefinition { /// <summary> /// Gets th...
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.", ...
348cc1d8570cc36d
csharp
60
Monokai
using System.Runtime.InteropServices; using ScreenToGif.Domain.Enums.Native; using ScreenToGif.Domain.Models.Native; using Point = System.Drawing.Point; namespace ScreenToGif.Native.Structs; /// <summary> /// Contains information about the placement of a window on the screen. /// </summary> [Serializable] [StructLayo...
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...
fc3494d4612d6b98
csharp
402
Default Light+
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using ICSharpCode.Decompiler.TypeSystem; using ICSharpCode.Decompiler.Util; namespace ICSharpCode.Decompiler.IL.ControlFlow { /// <summary> /// C# switch statements are not necessarily compiled into IL switch instructions. ...
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...
ebb04eec81b91494
python
241
Default Light+
from .common import InfoExtractor from ..utils import ( int_or_none, traverse_obj, try_get, urljoin, ) class MxplayerIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?mxplayer\.in/(?P<type>movie|show/[-\w]+/[-\w]+)/(?P<display_id>[-\w]+)-(?P<id>\w+)' _TESTS = [{ 'url': 'https://www....
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...
88359177d9152859
cpp
122
One Dark Pro
#include "models.h" llm_build_starcoder2::llm_build_starcoder2(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { const int64_t n_embd_head = hparams.n_embd_head_v(); GGML_ASSERT(n_embd_head == hparams.n_embd_head_k()); GGML_ASSERT(n_embd_head == n_rot); ggml_te...
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" ...
4631a33faeeff053
python
29
Solarized Light
from __future__ import annotations def mean(nums: list) -> float: """ Find mean of a list of numbers. Wiki: https://en.wikipedia.org/wiki/Mean >>> mean([3, 6, 9, 12, 15, 18, 21]) 12.0 >>> mean([5, 10, 15, 20, 25, 30, 35]) 20.0 >>> mean([1, 2, 3, 4, 5, 6, 7, 8]) 4.5 >>> mean([]...
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...
2b7014a7bde5daaa
go
43
Default Light+
package model import ( "fmt" "time" ) type IndexProgress struct { ObjCount uint64 `json:"obj_count"` IsDone bool `json:"is_done"` LastDoneTime *time.Time `json:"last_done_time"` Error string `json:"error"` } type SearchReq struct { Parent string `json:"parent"` Keywords strin...
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...
a0c3992b53c06fd4
java
47
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.", ...
2fa911e25fe5421a
java
108
GitHub Dark
package org.jeecg.modules.system.model; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.u...
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...
32c4295dc49f9179
csharp
162
One Dark Pro
namespace ShareX { partial class AfterUploadForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
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" ...