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
35fdbbbff77731fb
go
409
Solarized Dark
// Copyright 2022 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...
2bca084c45f560d3
java
29
GitHub Dark
package org.jeecg.modules.system.model; import lombok.Data; import org.jeecg.modules.system.entity.SysDepart; import org.jeecg.modules.system.entity.SysUser; /** * 包含 SysUser 和 SysDepart 的 Model * * @author sunjianlei */ @Data public class SysUserSysDepartModel { private String id; private String realnam...
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...
e84ba6836d12e05a
csharp
53
Default Light+
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, cop...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
a445c2a984ad737d
rust
238
GitHub Dark
use num_bigint::BigUint; use num_traits::{One, ToPrimitive, Zero}; use std::cmp::Ordering; fn modulo_power(mut base: u64, mut power: u64, modulo: u64) -> u64 { base %= modulo; if base == 0 { return 0; // return zero if base is divisible by modulo } let mut ans: u128 = 1; let mut bbase: u128...
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...
5bbc902eb81159e9
go
40
Default Light+
package rpc const ( aria2AddURI = "aria2.addUri" aria2AddTorrent = "aria2.addTorrent" aria2AddMetalink = "aria2.addMetalink" aria2Remove = "aria2.remove" aria2ForceRemove = "aria2.forceRemove" aria2Pause = "aria2.pause" aria2PauseAll ...
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.", ...
3c21a3f1b1990334
cpp
47
One Dark Pro
#include <ui/visualizer_drawer.hpp> #include <hex/api/localization_manager.hpp> #include <hex/helpers/scaling.hpp> #include "imgui.h" namespace hex::ui { void VisualizerDrawer::drawVisualizer( const std::map<std::string, ContentRegistry::PatternLanguage::impl::Visualizer> &visualizers, co...
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...
b7caff742cded892
csharp
36
Monokai
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Tests")] [assembly: AssemblyDescription(""...
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.", ...
e4d2874a65dbfd73
csharp
90
Monokai
using System.IO; using winPEAS._3rdParty.BouncyCastle.crypto.util; namespace winPEAS._3rdParty.BouncyCastle.asn1 { /** * A Der encoded set object */ public class DerSet : Asn1Set { public static readonly DerSet Empty = new DerSet(); public static DerSet FromVector(Asn1EncodableVector elementVector) ...
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...
0cfa246d4868a7d2
csharp
49
Dracula
namespace v2rayN.Desktop.Base; public class WindowBase<TViewModel> : ReactiveWindow<TViewModel> where TViewModel : class { public WindowBase() { Loaded += OnLoaded; } private void ReactiveWindowBase_Closed(object? sender, EventArgs e) { throw new NotImplementedException(); } ...
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.", ...
2c8681433f684015
cpp
152
One Dark Pro
#include <hex/helpers/http_requests.hpp> #include <hex/helpers/fmt.hpp> #include <hex/helpers/fs.hpp> #include <hex/api/localization_manager.hpp> #include <hex/api/task_manager.hpp> #include <algorithm> #include <random> #include <imgui.h> #include <hex/ui/imgui_imhex_extensions.h> #include <toasts/toast_notificatio...
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" ...
c53bfb589b7eb078
python
236
Default Light+
import re from .common import InfoExtractor from ..utils import ( ExtractorError, clean_html, determine_ext, float_or_none, int_or_none, str_or_none, url_or_none, urlencode_postdata, urljoin, ) class LecturioBaseIE(InfoExtractor): _API_BASE_URL = 'https://app.lecturio.com/api/...
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...
896e1b1552256412
cpp
80
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2012 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...
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...
2c805dbd26841540
csharp
203
Default Light+
// Copyright (c) 2018 Siegfried Pammer // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publ...
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...
fa17c5941deb74ce
typescript
265
Solarized Light
import { v7 as uuidv7 } from "uuid"; import type { Logger } from "winston"; import { Document, ScrapeOptions, TeamFlags } from "../controllers/v2/types"; import { CostTracking } from "../lib/cost-tracking"; import { getJobPriority } from "../lib/job-priority"; import { isUrlBlocked } from "../scraper/WebScraper/utils/b...
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"...
5e0c62700eac11f5
rust
344
Default Dark+
use actix_web as aweb; use aweb::error::{JsonPayloadError, QueryPayloadError}; use byte_unit::{Byte, UnitType}; use meilisearch_types::document_formats::{DocumentFormatError, PayloadType}; use meilisearch_types::error::{Code, ErrorCode, ResponseError}; use meilisearch_types::index_uid::{IndexUid, IndexUidFormatError}; ...
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.", ...
e10acf90901ca33a
rust
126
Solarized Dark
use super::{CoreManager, RunningMode}; use crate::{ AsyncHandler, config::{Config, IClashTemp}, core::{handle, logger::Logger, manager::CLASH_LOGGER, service}, logging, utils::dirs, }; use anyhow::Result; use clash_verge_logging::Type; use compact_str::CompactString; use log::Level; use scopeguard::...
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"...
aa2a6101a7067ed1
go
132
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...
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" ...
8ca66727faff07f9
csharp
163
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 ...
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...
a702249d04fcf839
java
38
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
9f884c97a347cf6f
csharp
129
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Net.Http; using System.Text.Json; using A2A; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.A2A; using Xunit; namespace SemanticKernel.Agents.UnitTests.A2A; public sealed class A2AAgentExtensionsTests { [Fa...
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...
8eb2fd20d5cde414
java
202
Default Light+
package com.thealgorithms.graph; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * An implementation of Edmonds's algorithm (also known as the Chu–Liu/Edmonds algorithm) * for finding a Minimum Spanning Arborescence (MSA). * * <p>An MSA is a directed graph equivalent of a Minimum S...
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"...
7e0892e6c36900fe
rust
341
GitHub Dark
/*! * SHA-2 256 bit implementation * This implementation is based on RFC6234 * Keep in mind that the amount of data (in bits) processed should always be an * integer multiple of 8 */ // The constants are tested to make sure they are correct pub const H0: [u32; 8] = [ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54f...
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.", ...
82ca33a576e16042
python
81
Solarized Light
import math """ Finding the intensity of light transmitted through a polariser using Malus Law and by taking initial intensity and angle between polariser and axis as input Description : Malus's law, which is named after Étienne-Louis Malus, says that when a perfect polarizer is placed in a polarized beam of light, 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...
61b622f959cee460
csharp
87
Monokai
// Copyright (c) Microsoft. All rights reserved. #pragma warning disable IDE0005 // Using directive is unnecessary using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; using Microsoft.SemanticKernel.Connectors.OpenAI; using Stepw...
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...
a727affb586bd226
java
62
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...
4adfe785f684a983
cpp
252
One Dark Pro
#ifndef HVX_DIV_H #define HVX_DIV_H #include <HAP_farf.h> #include <math.h> #include <string.h> #include <assert.h> #include <stddef.h> #include <stdint.h> #include "hvx-base.h" #include "hex-utils.h" #include "hvx-inverse.h" #include "hvx-arith.h" #if __HVX_ARCH__ < 79 #define HVX_OP_MUL_F32(a, b) Q6_Vsf_equals_Vq...
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...
370aada380752dc4
python
95
Monokai
# Copyright (c) Microsoft. All rights reserved. from collections import defaultdict from collections.abc import Awaitable, Callable, Sequence from typing import DefaultDict from semantic_kernel.agents.runtime.core.agent import Agent from semantic_kernel.agents.runtime.core.agent_id import AgentId, CoreAgentId from se...
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...
ddf7bbea49641f10
rust
151
Solarized Dark
use super::{Context, Module, ModuleConfig}; use crate::configs::nim::NimConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current Nim version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("nim"...
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"...
8710d45b00e3f00b
csharp
72
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 ...
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" ...
ab6e948f9abccade
java
119
GitHub Dark
package org.jeecg.modules.system.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swa...
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.", ...
eb13db2b6cfd3cdf
java
42
Dracula
package com.macro.mall.service; import com.macro.mall.model.SmsHomeAdvertise; import java.util.List; /** * 首页广告管理Service * Created by macro on 2018/11/7. */ public interface SmsHomeAdvertiseService { /** * 添加广告 */ int create(SmsHomeAdvertise advertise); /** * 批量删除广告 */ int del...
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...
ac22fe88f0939594
java
77
Default Light+
package com.thealgorithms.stacks; import java.util.Set; import java.util.Stack; /** * Evaluate a prefix (Polish) expression using a stack. * * <p>Example: Expression "+ * 2 3 4" results in 10. * <p>Applications: Useful for implementing compilers and interpreters. * * @author Hardvan */ public final class Prefi...
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...
d095faf89e1e3951
csharp
45
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using Microsoft.SemanticKernel.Memory; namespace Microsoft.SemanticKernel.Planning; /// <summary> /// Semantic memory configuration. /// </summary> public class SemanticMemoryConfig { /// <summary> /// A list of functions to ...
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...
66e0604a3d5bbe93
go
390
Default Light+
package renderers import ( "strings" "testing" "github.com/ollama/ollama/api" ) func TestQwen35RendererUsesXMLToolCallingFormat(t *testing.T) { renderer := &Qwen35Renderer{isThinking: true} msgs := []api.Message{ {Role: "system", Content: "You are a helpful assistant."}, {Role: "user", Content: "What's 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.", ...
a5427a04bd33837e
typescript
50
Solarized Light
"use client" import { cn } from "@/examples/radix/lib/utils" import * as ResizablePrimitive from "react-resizable-panels" function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) { return ( <ResizablePrimitive.Group data-slot="resizable-panel-group" className={cn( ...
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"...
28f8eaf2623c0bf3
javascript
58
Default Dark+
const NotificationProvider = require("./notification-provider"); const axios = require("axios"); const { DOWN, UP } = require("../../src/util"); class PushDeer extends NotificationProvider { name = "PushDeer"; /** * @inheritdoc */ async send(notification, msg, monitorJSON = null, heartbeatJSON =...
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.", ...
78262ebd17eb07e1
go
106
Default Light+
package lfm2 import ( "image" "image/color" "testing" ) func TestProcessImageSingleTile(t *testing.T) { p := ImageProcessor{ patchSize: 16, downsampleFactor: 2, numChannels: 3, imageMean: [3]float32{0.5, 0.5, 0.5}, imageStd: [3]float32{0.5, 0.5, 0.5}, doImageSplitt...
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.", ...
63f185dd89f6298c
typescript
176
Solarized Light
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { PAGES_NEW } from "@/lib/docs" import { showMcpDocs } from "@/lib/flags" import { getCurrentBase, getPagesFromFolder } from "@/lib/page-tree" import type { source } from "@/lib/source" import { Sidebar, SidebarContent,...
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...
4c147aafb23ba63c
typescript
24
Solarized Light
// Placeholder v1 example (TypeScript) // Mirrors the older SDK usage. Replace with your API key before running. // import FirecrawlApp from 'firecrawl'; import Firecrawl from './firecrawl/src/index' async function main() { const app = new Firecrawl({ apiKey: process.env.FIRECRAWL_API_KEY || 'fc-YOUR_API_KEY' }); ...
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...
af6c079f473bb580
python
52
Solarized Light
from bisect import bisect from itertools import accumulate def frac_knapsack(vl, wt, w, n): """ >>> frac_knapsack([60, 100, 120], [10, 20, 30], 50, 3) 240.0 >>> frac_knapsack([10, 40, 30, 50], [5, 4, 6, 3], 10, 4) 105.0 >>> frac_knapsack([10, 40, 30, 50], [5, 4, 6, 3], 8, 4) 95.0 >>> f...
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...
3fd1f302a36b053e
typescript
115
Default Dark+
import type { SubmitHandler } from 'react-hook-form'; import { useForm } from 'react-hook-form'; import type { ResumesSection } from '@prisma/client'; import { Button, TextArea } from '~/ui'; import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics'; import { trpc } from '~/utils/trpc'; type ResumeCom...
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.", ...
1b47ce5a069b1914
java
119
Default Light+
package com.thealgorithms.sorts; import static com.thealgorithms.sorts.SortUtils.print; import com.thealgorithms.datastructures.trees.BSTRecursiveGeneric; import java.util.List; /** * <h1> Implementation of the Tree Sort algorithm</h1> * * <p> * Tree Sort: A sorting algorithm which constructs a Binary Search Tre...
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" ...
07a737ba2d27eaab
java
185
GitHub Dark
package org.jeecg.common.util; import com.alibaba.fastjson.JSONObject; import com.tencentcloudapi.common.Credential; import com.tencentcloudapi.common.exception.TencentCloudSDKException; import com.tencentcloudapi.common.profile.ClientProfile; import com.tencentcloudapi.common.profile.HttpProfile; import com.tencentcl...
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...
8107d6e163919496
python
51
Default Light+
from .common import InfoExtractor from ..utils import ( parse_duration, unescapeHTML, ) class MovingImageIE(InfoExtractor): _VALID_URL = r'https?://movingimage\.nls\.uk/film/(?P<id>\d+)' _TEST = { 'url': 'http://movingimage.nls.uk/film/3561', 'md5': '4caa05c2b38453e6f862197571a7be2f', ...
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...
b9a98b5e65bab1a9
rust
196
Solarized Dark
use crate::config::Config; use anyhow::Result; use base64::{Engine as _, engine::general_purpose}; use reqwest::{ Client, Proxy, StatusCode, header::{HeaderMap, HeaderValue, USER_AGENT}, }; use smartstring::alias::String; use std::time::Duration; use sysproxy::Sysproxy; use tauri::Url; #[derive(Debug)] pub str...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
2461d8d87407370c
csharp
58
Monokai
// Copyright (c) Microsoft. All rights reserved. #pragma warning disable CS0618 // Testing obsolete ITextSearch, TextSearchOptions backward compatibility using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.SemanticKernel.Data; namespace SemanticKernel.UnitTests.Data; /// <summa...
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...
324d9dde5e7eceac
java
87
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...
1ab3844a8e1ddf3c
typescript
63
Solarized Light
import { Button } from "@/examples/base/ui/button" import { Input } from "@/examples/base/ui/input" import { Label } from "@/examples/base/ui/label" import { Popover, PopoverContent, PopoverTrigger, } from "@/examples/base/ui/popover" export default function PopoverDemo() { return ( <Popover> <Popove...
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...
95c7a783fc2ab6c1
python
39
Default Light+
from .common import InfoExtractor class FilmwebIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?filmweb\.no/(?P<type>trailere|filmnytt)/article(?P<id>\d+)\.ece' _TEST = { 'url': 'http://www.filmweb.no/trailere/article1264921.ece', 'md5': 'e353f47df98e557d67edaceda9dece89', 'info_di...
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...
eab7f09b822c3ada
python
291
Default Light+
import re from .common import InfoExtractor from ..utils import ( determine_ext, extract_attributes, filter_dict, get_element_by_class, get_element_html_by_id, int_or_none, mimetype2ext, parse_duration, str_or_none, update_url_query, url_or_none, ) from ..utils.traversal imp...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
a7a538215521fa72
csharp
378
Monokai
// Copyright (c) Microsoft. All rights reserved. #pragma warning disable CS0618 // ITextSearch is obsolete - Sample demonstrates legacy interface usage using System.Text.RegularExpressions; using HtmlAgilityPack; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Data; using Microsoft.SemanticKernel.Plug...
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"...
a8cd84506e91228b
csharp
283
Default Light+
// // BinaryOperatorExpression.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 /...
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"...
22d1b82dcc60883f
python
99
Solarized Light
""" A pure implementation of Dutch national flag (DNF) sort algorithm in Python. Dutch National Flag algorithm is an algorithm originally designed by Edsger Dijkstra. It is the most optimal sort for 3 unique values (eg. 0, 1, 2) in a sequence. DNF can sort a sequence of n size with [0 <= a[i] <= 2] at guaranteed O(n) ...
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...
1b531f0497e7ce95
rust
335
Solarized Light
//! Configuration file migration. use std::fmt::Debug; use std::path::Path; use std::{fs, mem}; use tempfile::NamedTempFile; use toml_edit::{DocumentMut, Item}; use crate::cli::MigrateOptions; use crate::config; mod yaml; /// Handle migration. pub fn migrate(options: MigrateOptions) { // Find configuration fil...
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" ...
68139641e3881c7b
python
76
Default Light+
from .common import InfoExtractor from ..utils import unified_timestamp class InternazionaleIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?internazionale\.it/video/(?:[^/]+/)*(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'https://www.internazionale.it/video/2015/02/19/richard-linklater-racconta-una-scena...
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.", ...
2311f3366fca1d84
typescript
88
Solarized Light
"use client" import * as React from "react" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/bases/radix/ui/collapsible" import { SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarSeparator, } from "@/regis...
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" ...
a7ae3890a3705cfd
typescript
159
Solarized Light
import { logger as _logger } from "../../../lib/logger"; import { Request, Response } from "express"; import { supabase_service } from "../../../services/supabase"; import crypto from "crypto"; import { z } from "zod"; import { validate as isUuid } from "uuid"; import { parseApi } from "../../../lib/parseApi"; /** * ...
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...
6a37aad4380d6ead
java
29
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...
e825e22101f60ac4
javascript
78
GitHub Dark
const HttpStatusCode = { Continue: 100, SwitchingProtocols: 101, Processing: 102, EarlyHints: 103, Ok: 200, Created: 201, Accepted: 202, NonAuthoritativeInformation: 203, NoContent: 204, ResetContent: 205, PartialContent: 206, MultiStatus: 207, AlreadyReported: 208, ImUsed: 226, MultipleCh...
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"...
4514bbe22bdbd900
rust
31
GitHub Dark
// returns the least common multiple of n numbers pub fn lcm(nums: &[usize]) -> usize { if nums.len() == 1 { return nums[0]; } let a = nums[0]; let b = lcm(&nums[1..]); a * b / gcd_of_two_numbers(a, b) } fn gcd_of_two_numbers(a: usize, b: usize) -> usize { if b == 0 { return a;...
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...
8d474cac38e853ba
typescript
77
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { CodeAssistServer } from '../server.js'; import { getClientMetadata } from './client_metadata.js'; import type { ListExperimentsResponse, Flag } from './types.js'; import * as fs from 'node:fs'; import { debugLogger } ...
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...
d9c9cf75edb5813c
python
330
Default Light+
import itertools import json import re from .common import InfoExtractor from ..networking import HEADRequest from ..utils import ( ExtractorError, UnsupportedError, determine_ext, int_or_none, parse_resolution, str_or_none, traverse_obj, unified_timestamp, url_basename, url_or_...
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...
ca0accb4d8ad0eb1
cpp
136
Dracula
/** * Copyright 2014-2026, XGBoost Contributors * * @brief General primitive for tree learning, * Updating a collection of trees given the information. * \author Tianqi Chen */ #ifndef XGBOOST_TREE_UPDATER_H_ #define XGBOOST_TREE_UPDATER_H_ #include <dmlc/registry.h> #include <xgboost/base.h> //...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
178d4489be188185
typescript
102
Solarized Light
"use client" import { Button } from "@/registry/bases/radix/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/bases/radix/ui/card" import { Checkbox } from "@/registry/bases/radix/ui/checkbox" import { Field, FieldGroup, FieldLabel } from "@/regis...
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" ...
8b57d6543825f215
typescript
24
One Dark Pro
import { computed } from "vue" import { useSetting } from "~/composables/settings" /** * Composable to determine mock server visibility based on experimental flags */ export function useMockServerVisibility() { const ENABLE_EXPERIMENTAL_MOCK_SERVERS = useSetting( "ENABLE_EXPERIMENTAL_MOCK_SERVERS" ) /** ...
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...
036c1da8c4bafe40
python
73
Monokai
from datetime import datetime from typing import Any from pydantic import BaseModel, ConfigDict, Field, field_serializer class Asset(BaseModel): """API view of an asset. Maps to DB ``AssetReference`` joined with its ``Asset`` blob; ``id`` here is the AssetReference id, not the content-addressed Asset id.""" ...
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...
ce7431f1e9a065ec
cpp
104
Dracula
/*! * Copyright 2019 by XGBoost Contributors * * \brief Implement `std::to_chars` and `std::from_chars` for float. Only base 10 with * scientific format is supported. The implementation guarantees roundtrip * reproducibility. */ #ifndef XGBOOST_COMMON_CHARCONV_H_ #define XGBOOST_COMMON_CHARCONV_H_...
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...
6b7ff88b3fcf401e
rust
69
One Dark Pro
// Copyright © 2019 Intel Corporation // Copyright © 2023 Rivos, Inc. // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 use vm_memory::{Bytes, GuestAddress, GuestMemory}; use zerocopy::little_endian::{U32, U64}; use zerocopy::{Immutable, IntoBytes}; u...
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"...
3e86947a81871012
rust
393
Dracula
use super::xdo::EnigoXdo; use crate::{Key, KeyboardControllable, MouseButton, MouseControllable, ResultType}; use std::io::Read; use tfc::{traits::*, Context as TFC_Context, Key as TFC_Key}; pub type CustomKeyboard = Box<dyn KeyboardControllable + Send>; pub type CustomMouce = Box<dyn MouseControllable + Send>; /// 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...
5ed036d2dd4c51bc
cpp
135
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...
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.", ...
f609a18547d5022b
typescript
109
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * Client-side auth configuration for A2A remote agents. * Corresponds to server-side SecurityScheme types from @a2a-js/sdk. * @see https://a2a-protocol.org/latest/specification/#451-securityscheme */ import type { Authenti...
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...
0e8d562234f43076
typescript
23
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { CommandKind, type OpenDialogActionReturn, type SlashCommand, } from './types.js'; export const privacyCommand: SlashCommand = { name: 'privacy', description: 'Display the privacy notice', kind: CommandKind.BUI...
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...
0e0ec43f78a03f8e
csharp
86
Monokai
using ScreenToGif.Domain.Enums; using ScreenToGif.Domain.Interfaces; namespace ScreenToGif.ViewModel.ExportPresets.Video.Mov; public class FfmpegMovPreset : MovPreset, IFfmpegPreset { public FfmpegMovPreset() { Encoder = EncoderTypes.FFmpeg; ImageId = "Vector.Ffmpeg"; RequiresFfmpeg = ...
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"...
85cae3c6c7bdb7f6
javascript
47
Dracula
import path from 'node:path' import module from 'node:module' import { defineConfig } from 'vite' const require = module.createRequire(import.meta.url) export default defineConfig({ resolve: { alias: [ { find: 'fs', replacement: path.resolve(import.meta.dirname, 'test.js') }, { find: 'fs-dir', repla...
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.", ...
a4a3931cfcf779fa
python
83
Dracula
#!/usr/bin/env python3 import re def strip(s): return re.sub(r'\s+\n', '\n', re.sub(r'\n\s+', '\n', s)) common_css = open('src/ui/common.css').read() common_tis = open('src/ui/common.tis', encoding='UTF8').read() index = open('src/ui/index.html').read() \ .replace('@import url(index.css);', open('src/ui/index....
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.", ...
00ea4ab16aa8f913
go
29
Default Light+
package seafile import ( "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/op" ) type Addition struct { driver.RootPath Address string `json:"address" required:"true"` UserName string `json:"username" required:"false"` Password string `json:"password" required:"false"` T...
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" ...
72cbe620df64b1b4
java
97
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" ...
3b65ed02fdebaa76
java
264
Dracula
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.math.BigDecimal; public class OmsOrderItem implements Serializable { private Long id; @ApiModelProperty(value = "订单id") private Long orderId; @ApiModelProperty(value = "订单编号") p...
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...
f592787a29c77981
cpp
375
Default Light+
#include "models.h" // this graph is used by llava, granite and glm // due to having embedding_stack (used by granite), we cannot reuse build_vit ggml_cgraph * clip_graph_llava::build() { const int batch_size = 1; const int n_pos = n_patches + (model.class_embedding ? 1 : 0); GGML_ASSERT(n_patches_x == 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" ...
50cf665d47608df7
java
395
GitHub Dark
package org.jeecg.modules.airag.prompts.service.impl; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONArray; import com.alibaba.fastjson2.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import dev.langchain4j.data.message.ChatMessage; import dev.langchain4j.dat...
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...
0a366c5741203ad7
csharp
244
Default Light+
// Copyright (c) 2020 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"...
72adb392cb49891a
csharp
43
Monokai
using System; namespace winPEAS._3rdParty.BouncyCastle { /** * this exception is thrown if a buffer that is meant to have output * copied into it turns out to be too short, or if we've been given * insufficient input. In general this exception will Get thrown rather * than an Array...
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"...
af3a5e46a333fdb5
python
155
Solarized Light
#!/usr/bin/env python # # Sort large text files in a minimum amount of memory # import argparse import os class FileSplitter: BLOCK_FILENAME_FORMAT = "block_{0}.dat" def __init__(self, filename): self.filename = filename self.block_filenames = [] def write_block(self, data, block_number...
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...
100f59416689a91a
typescript
55
One Dark Pro
import { getDefaultRESTRequest, safelyExtractRESTRequest, } from "@hoppscotch/data" import { z } from "zod" import { REST_TAB_STATE_SCHEMA } from "~/services/persistence/validation-schemas" type HoppRESTab = z.infer<typeof REST_TAB_STATE_SCHEMA> /** * Fixes broken request versions in the given REST tab documents...
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.", ...
aa32a870dc7d4e33
rust
36
GitHub Dark
use super::extended_euclidean_algorithm; fn mod_inv(x: i32, n: i32) -> Option<i32> { let (g, x, _) = extended_euclidean_algorithm(x, n); if g == 1 { Some((x % n + n) % n) } else { None } } pub fn chinese_remainder_theorem(residues: &[i32], modulli: &[i32]) -> Option<i32> { let prod...
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...
216dcbd0a695ba13
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 ...
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...
6ebbf565b2640c32
csharp
214
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"...
ea454c89e5014af4
python
50
Solarized Light
""" == Krishnamurthy Number == It is also known as Peterson Number A Krishnamurthy Number is a number whose sum of the factorial of the digits equals to the original number itself. For example: 145 = 1! + 4! + 5! So, 145 is a Krishnamurthy Number """ def factorial(digit: int) -> int: """ >>> factorial(3...
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...
271c5c2fc5ce3744
csharp
84
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel.Connectors.HuggingFace.Core; using Microsoft.SemanticKernel.Embeddings; using...
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...
272fcd9de9937016
csharp
74
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.OpenAI; using Microsoft.SemanticKernel.ChatCompletion; using OpenAI.Assistants; using Resources; namespace GettingStarted.OpenAIAssistants; /// <summary> /// ...
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...
0e69015707e3eb59
csharp
87
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; using Microsoft.SemanticKernel.Connectors.OpenAI; using OpenAI.Chat; namespace ChatCompletion; // The following example shows how to use Semantic Kernel with OpenAI API ...
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...
161747624fe030dc
python
82
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio import logging import os from collections.abc import Callable, Coroutine from typing import Any from azure.identity import AzureCliCredential from semantic_kernel import Kernel from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion from se...
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...
09d6608544b317df
java
30
Dracula
package com.macro.mall.mapper; import com.macro.mall.model.PmsProductAttributeValue; import com.macro.mall.model.PmsProductAttributeValueExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface PmsProductAttributeValueMapper { long countByExample(PmsProductAttributeValueExample...
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"...
a50062c96cd4c629
go
318
Default Dark+
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bufio" "net" "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/re...
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.", ...
c9f316a443b00bed
python
158
Monokai
import torch import torch.nn as nn import torch.nn.functional as F import math import comfy.model_management if 'sinc' in dir(torch): sinc = torch.sinc else: # This code is adopted from adefossez's julius.core.sinc under the MIT License # https://adefossez.github.io/julius/julius/core.html # LICENSE ...
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...
97b9025bad50969b
java
77
Default Light+
// Code by Pronay Debnath // Created:- 1/10/2023 // File Name should be RecursiveBinarySearch.java // Explanation:- https://www.tutorialspoint.com/java-program-for-binary-search-recursive package com.thealgorithms.searches; import java.util.Scanner; // Create a SearchAlgorithm class with a generic type abstract class...
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.", ...
55b95720074278c1
java
66
Default Light+
package com.thealgorithms.greedyalgorithms; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; /** * Implementation of the Gale-Shapley Algorithm for Stable Matching. * Problem link: https://en.wikipedia.org/wiki/Stable_marriage_problem */ public final class GaleShapley { private Gal...
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"...
6b056411b4bf09b7
cpp
71
Solarized Dark
#include <openpose/filestream/heatMapSaver.hpp> #include <openpose/utilities/openCv.hpp> #include <openpose/filestream/fileStream.hpp> namespace op { HeatMapSaver::HeatMapSaver(const std::string& directoryPath, const std::string& imageFormat) : FileSaver{directoryPath}, mImageFormat{imageFormat} ...
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.", ...
ac79e3fa83aac6c2
typescript
91
GitHub Dark
import { logger } from "@coder/logger" import express from "express" import { promises as fs } from "fs" import path from "path" import { HttpCode } from "../../common/http" import { rootPath } from "../constants" import { replaceTemplates } from "../http" import { escapeHtml, getMediaMime } from "../util" import type ...
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...
5a5d66a2d82a65bc
typescript
90
Solarized Light
"use client" import * as React from "react" import { cn } from "@/examples/base/lib/utils" import { Popover as PopoverPrimitive } from "@base-ui/react/popover" function Popover({ ...props }: PopoverPrimitive.Root.Props) { return <PopoverPrimitive.Root data-slot="popover" {...props} /> } function PopoverTrigger({ ....
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...