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
b3c392cf0ddd7286
python
121
Solarized Light
# https://www.investopedia.com from __future__ import annotations def simple_interest( principal: float, daily_interest_rate: float, days_between_payments: float ) -> float: """ >>> simple_interest(18000.0, 0.06, 3) 3240.0 >>> simple_interest(0.5, 0.06, 3) 0.09 >>> simple_interest(18000.0...
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...
92e4b140ce34f711
go
356
Default Light+
package launch import ( "fmt" "os" "os/exec" "slices" "strings" ) // IntegrationInstallSpec describes how launcher should detect and guide installation. type IntegrationInstallSpec struct { CheckInstalled func() bool EnsureInstalled func() error URL string Command []string } // Integrat...
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"...
a4ec37e1ebc11f50
typescript
98
Solarized Light
"use client" import { ActivateAgentDialog } from "@/registry/bases/base/blocks/preview/cards/activate-agent-dialog" import { AnalyticsCard } from "@/registry/bases/base/blocks/preview/cards/analytics-card" import { AnomalyAlert } from "@/registry/bases/base/blocks/preview/cards/anomaly-alert" import { AssignIssue } fr...
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"...
626439402e449b97
csharp
84
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text.Json; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; using SemanticKernel.AotTests.JsonSerializerContexts; using SemanticKernel.AotTests.Plugins; namespace SemanticKernel...
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...
0ed2881decf9a2d3
csharp
43
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.IO; using System.Text.Json.Nodes; using System.Threading.Tasks; using Microsoft.SemanticKernel; using Xunit; namespace SemanticKernel.IntegrationTests.CrossLanguage; public class PromptWithChatRolesTest { private const string Prompt = "<message role=...
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...
38c29f8311ad197e
cpp
39
One Dark Pro
#pragma once #include <hex/api/task_manager.hpp> #include <hex/ui/view.hpp> #include <ui/widgets.hpp> #include <vector> #include <hex/api/content_registry/disassemblers.hpp> namespace hex::plugin::disasm { class ViewDisassembler : public View::Window { public: explicit ViewDisassembler(); ~...
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"...
5ed55100167085e4
typescript
49
Default Dark+
import type { ProductNavigationItems } from '~/components/global/ProductNavigation'; const navigation: ProductNavigationItems = [ { href: '/offers/submit', name: 'Analyze your offers' }, { href: '/offers/features', name: 'Features' }, { href: '/offers/about', name: 'About' }, ]; const navigationAuthenticated: P...
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.", ...
e4542bd0d60991fb
go
197
Default Light+
package baiduphoto import ( "fmt" "time" "github.com/alist-org/alist/v3/pkg/utils" "github.com/alist-org/alist/v3/internal/model" ) type TokenErrResp struct { ErrorDescription string `json:"error_description"` ErrorMsg string `json:"error"` } func (e *TokenErrResp) Error() string { return fmt.Sprint...
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...
0a9b62fce1dea17e
python
46
Solarized Light
""" Problem Description: Given a binary tree, return its mirror. """ def binary_tree_mirror_dict(binary_tree_mirror_dictionary: dict, root: int): if not root or root not in binary_tree_mirror_dictionary: return left_child, right_child = binary_tree_mirror_dictionary[root][:2] binary_tree_mirror_di...
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...
04c13ca5e26fe2d5
csharp
91
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.ClientModel; using System.Diagnostics; using Azure.Identity; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.OpenAI; using OpenAI; using OpenAI.Assistants; using OpenAI.Files; /// <summary> /// ...
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...
663c31e527a65256
csharp
240
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel.Diagnostics; using Xunit; namespace SemanticKernel.UnitTests...
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...
e3a843ddd52954ce
cpp
176
One Dark Pro
#include "content/views/view_settings.hpp" #include <fonts/fonts.hpp> #include <hex/api/content_registry/user_interface.hpp> #include <hex/api/events/requests_gui.hpp> #include <hex/helpers/logger.hpp> #include <nlohmann/json.hpp> #include <popups/popup_question.hpp> #include <fonts/vscode_icons.hpp> namespace hex:...
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...
e97239e8748db616
java
279
Monokai
package com.termux.shared.activities; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Typeface; import android.os.Bundle; import android.text.Editable; import android.text.InputFilter; import android.text.TextWa...
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"...
b6a5df8246e1ceea
rust
86
Default Dark+
use bumparaw_collections::RawMap; use heed::RoTxn; use rustc_hash::FxBuildHasher; use crate::documents::{PrimaryKey, DEFAULT_PRIMARY_KEY}; use crate::update::new::StdResult; use crate::{FieldsIdsMap, Index, Result, UserError}; /// Returns the primary key that has already been set for this index or the /// one we will...
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...
6e9d945fd74751d2
java
47
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...
1a2607688753624b
typescript
289
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, type Mock } from 'vitest'; import { ToolModificationHandler } from './tool-modifier.js'; import { CoreToolCallStatus, type WaitingToolCall, type ToolCallRequestInfo, } from './ty...
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...
6f30727c9a9d1bb9
csharp
28
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel; using Step02.Models; namespace Step02.Steps; /// <summary> /// Mock step that emulates Mail Service with a message for the user. /// </summary> public class MailServiceStep : KernelProcessStep { public static class ProcessStepFunct...
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...
93fd248dc974bd7b
rust
345
Default Dark+
use derive_builder::Builder; use serde::{Deserialize, Serialize}; use crate::error::OpenAIError; #[derive(Debug, Serialize, Deserialize, Clone, Default, PartialEq)] #[serde(untagged)] pub enum NEpochs { NEpochs(u8), #[default] #[serde(rename = "auto")] Auto, } #[derive(Debug, Serialize, Deserialize, ...
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...
69aa2ddb504bb93a
rust
133
GitHub Dark
use std::cell::RefCell; use std::collections::BTreeMap; use std::collections::VecDeque; use std::rc::{Rc, Weak}; #[derive(Default)] struct ACNode { trans: BTreeMap<char, Rc<RefCell<ACNode>>>, suffix: Weak<RefCell<ACNode>>, // the suffix(fail) link lengths: Vec<usize>, // lengths of matched patter...
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...
d7ed26d39400cae2
java
160
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...
ea2d98f05e3007d6
cpp
99
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...
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...
1a036755c5dba944
rust
101
One Dark Pro
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //! Defines the metrics system for entropy devices. //! //! # Metrics format //! The metrics are flushed in JSON when requested by vmm::logger::metrics::METRICS.write(). //! //! ## JSON example with metric...
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...
de2a93b76afe8cfa
rust
341
Solarized Dark
use crate::{core::handle, utils::resolve::window::build_new_window}; use clash_verge_limiter::Limiter; use clash_verge_logging::{Type, logging}; use once_cell::sync::Lazy; use std::pin::Pin; use std::time::Duration; use tauri::{Manager as _, WebviewWindow, Wry}; /// 窗口操作结果 #[derive(Debug, Clone, Copy, PartialEq)] pub ...
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.", ...
fdb2084c0785fc14
python
80
Default Light+
from .common import InfoExtractor from ..utils import ( dict_get, float_or_none, ) class PlaywireIE(InfoExtractor): _VALID_URL = r'https?://(?:config|cdn)\.playwire\.com(?:/v2)?/(?P<publisher_id>\d+)/(?:videos/v2|embed|config)/(?P<id>\d+)' _EMBED_REGEX = [r'<script[^>]+data-config=(["\'])(?P<url>(?:ht...
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.", ...
2e908b3767663489
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 ...
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...
bdb8be09e0b303f8
python
28
Default Light+
from .mtv import MTVServicesBaseIE class ComedyCentralIE(MTVServicesBaseIE): _VALID_URL = r'https?://(?:www\.)?cc\.com/video-clips/(?P<id>[\da-z]{6})' _TESTS = [{ 'url': 'https://www.cc.com/video-clips/wl12cx', 'info_dict': { 'id': 'dec6953e-80c8-43b3-96cd-05e9230e704d', ...
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"...
ea1748c06444edb0
go
100
Default Light+
package renderers import ( "testing" "github.com/google/go-cmp/cmp" "github.com/ollama/ollama/api" ) func TestGlmOcrRenderer_Images(t *testing.T) { tests := []struct { name string renderer *GlmOcrRenderer messages []api.Message expected string }{ { name: "use_img_tags_single_image", ren...
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...
8518a1e6fc3194f1
cpp
23
Solarized Light
#pragma once #include <QDialog> namespace Ui { class CodepageSelectionDialog; } class CodepageSelectionDialog : public QDialog { Q_OBJECT public: explicit CodepageSelectionDialog(QWidget* parent = nullptr); ~CodepageSelectionDialog(); QByteArray getSelectedCodepage(); private: Ui::CodepageS...
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...
7ac0ae53c0fe21f0
typescript
41
Solarized Light
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogTitle, AlertDialogTrigger, } from "@/examples/base/ui/alert-dialog" import { Button } from "@/examples/base/ui/button" import { 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...
04b4dc0374a27663
csharp
63
One Dark Pro
namespace ShareX { partial class BeforeUploadControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
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...
41bbc1f2bcae995d
csharp
97
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using FluentAssertions; using Xunit; namespace Microsoft.SemanticKernel.Agents.Runtime.InProcess.Tests; [Trait("Category", "Unit")] public class SendMessageTests {...
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...
b4c5f6c4f3212e9b
csharp
108
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
dfebb4389addce3a
typescript
106
Solarized Dark
import { Box } from '@mui/material' import { useEffect, useMemo, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import { Virtuoso, VirtuosoHandle } from 'react-virtuoso' import { BaseEmpty, BasePage, BaseSearchBox } from '@/components/base' import { ScrollTopButton } from '@/components/...
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...
41ee601d8d303b5a
javascript
84
Default Dark+
const { ConditionExpressionGroup, ConditionExpression, LOGICAL } = require("./expression"); const { operatorMap } = require("./operators"); /** * @param {ConditionExpression} expression Expression to evaluate * @param {object} context Context to evaluate against; These are values for variables in the expression * @...
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" ...
2f61dff6845226dd
python
52
Solarized Light
""" This script demonstrates an implementation of the Gaussian Error Linear Unit function. * https://en.wikipedia.org/wiki/Activation_function#Comparison_of_activation_functions The function takes a vector of K real numbers as input and returns x * sigmoid(1.702*x). Gaussian Error Linear Unit (GELU) is a high-performi...
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...
a58894019788e9cf
csharp
29
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...
f21e177b4aa645a1
typescript
451
Solarized Light
import { Response } from "express"; import { config } from "../../config"; import { logger as _logger } from "../../lib/logger"; import { Document, FormatObject, RequestWithAuth, ScrapeRequest, scrapeRequestSchema, ScrapeResponse, } from "./types"; import { v7 as uuidv7 } from "uuid"; import { hasFormatOfTy...
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...
1f9b20998dfb1ca0
typescript
125
Monokai
import {PI, TAU, HALF_PI} from './helpers.math.js'; const atEdge = (t: number) => t === 0 || t === 1; const elasticIn = (t: number, s: number, p: number) => -(Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * TAU / p)); const elasticOut = (t: number, s: number, p: number) => Math.pow(2, -10 * t) * Math.sin((t - s) * TAU...
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" ...
6f196135eb8be7f7
csharp
96
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" ...
fa9364030bfbecab
cpp
100
One Dark Pro
/********************************************************************** * File: drawtord.h (Formerly drawto.h) * Description: Draw things to do with textord. * Author: Ray Smith * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed 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" ...
cf76609c2961e0a9
csharp
44
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text.Json.Serialization; using Microsoft.SemanticKernel; namespace Microsoft.Extensions.AI; /// <summary> /// This class allows a <see cref="Kernel"/>, <see cref="PromptExecutionSettings"/> and a <see cref="ChatMessageContent"/> to be used /// for intern...
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...
00d4dc67c9d5ce32
java
61
Default Light+
package com.thealgorithms.searches; import com.thealgorithms.devutils.searches.SearchAlgorithm; /** * Searches for a key in a sorted array that has been rotated at an unknown pivot. * * <p> * Example: * {@code [8, 9, 10, 1, 2, 3, 4, 5, 6, 7]} * * <p> * This is a modified binary search. When the array contains...
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...
aa7806fda4b259c7
cpp
104
One Dark Pro
#include <hex/helpers/utils.hpp> #include <content/visualizer_helpers.hpp> #include <hex/helpers/scaling.hpp> #include <imgui.h> #include <hex/ui/imgui_imhex_extensions.h> #include <numbers> #include <chrono> #include <fmt/chrono.h> namespace hex::plugin::visualizers { void drawTimestampVisualizer(pl::ptrn::P...
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...
45a687a8d74d2fd9
cpp
202
Dracula
/** * Copyright 2023-2024, XGBoost contributors * * Higher level functions built on top the Communicator API, taking care of behavioral differences * between row-split vs column-split distributed training, and horizontal vs vertical federated * learning. */ #pragma once #include <limits> #include <string> #includ...
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...
1baf386b38fa9a16
java
44
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
d25f0015e22d2f23
cpp
98
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2013 Nils Maier * * 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 License, or ...
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...
f9e2161c18aad2e5
typescript
40
Solarized Light
import { Button } from "@/examples/radix/ui/button" import { ArrowUpRightIcon } from "lucide-react" export default function ButtonSize() { return ( <div className="flex flex-col items-start gap-8 sm:flex-row"> <div className="flex items-start gap-2"> <Button size="xs" variant="outline"> E...
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.", ...
39ac2e2863857b12
typescript
141
Dracula
import path from 'node:path' import fs from 'node:fs' import { parseErrorStacktrace } from '@vitest/utils/source-map' import c from 'picocolors' import type { ForwardConsolePayload } from '#types/customEvent' import type { DevEnvironment, Plugin } from '..' import { normalizePath } from '..' import { extractSourcemapFr...
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" ...
b83f33eaea7a1f58
go
160
Solarized Light
package filter // Condition represents a boolean expression derived from the CEL filter. type Condition interface { isCondition() } // LogicalOperator enumerates the supported logical operators. type LogicalOperator string const ( LogicalAnd LogicalOperator = "AND" LogicalOr LogicalOperator = "OR" ) // LogicalC...
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.", ...
cb8c624a63ee266a
java
25
GitHub Dark
package org.jeecg.modules.airag.llm.service; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.modules.airag.llm.entity.AiragKnowledge; import java.util.Map; /** * AIRag知识库 * * @Author: jeecg-boot * @Date: 2025-02-18 * @Version: V1.0 */ public interface IAiragKnowledgeService extends...
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...
680e2816e3161c5d
typescript
103
Solarized Light
import { IconTrendingDown, IconTrendingUp } from "@tabler/icons-react" import { Badge } from "@/registry/new-york-v4/ui/badge" import { Card, CardAction, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" export function SectionCards() { return ( <div classNa...
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...
df7be2a3f953f86d
csharp
142
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...
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.", ...
1e6994fb109627d1
csharp
105
Default Light+
// // MethodDeclaration.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 // in 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.", ...
e7ee4903f33474d3
typescript
48
Default Dark+
import clsx from 'clsx'; import { useLayoutEffect, useRef, useState } from 'react'; type ResumeExpandableTextProps = Readonly<{ text: string; }>; export default function ResumeExpandableText({ text, }: ResumeExpandableTextProps) { const ref = useRef<HTMLSpanElement>(null); const [isExpanded, setIsExpanded] = ...
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"...
f97c21a1dbf38a77
java
45
Default Light+
package com.thealgorithms.others; /** * Provides a method to perform a left rotation on an array. * A left rotation operation shifts each element of the array * by a specified number of positions to the left. * * @author sangin-lee */ public final class ArrayLeftRotation { private ArrayLeftRotation() { }...
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.", ...
b961834c963b718e
rust
77
One Dark Pro
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use vmm::logger::{IncMetric, METRICS}; use vmm::rpc_interface::VmmAction; use super::super::parsed_request::{ParsedRequest, RequestError}; use super::Body; pub(crate) fn parse_put_logger(body: &Body) -> ...
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.", ...
4b6037c089cb3e83
java
38
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...
ff30a0db58dc22b3
rust
169
Solarized Light
//! The graphics platform that is used by the renderer. use std::num::NonZeroU32; use glutin::config::{ColorBufferType, Config, ConfigTemplateBuilder, GetGlConfig}; use glutin::context::{ ContextApi, ContextAttributesBuilder, GlProfile, NotCurrentContext, Robustness, Version, }; use glutin::display::{Display, Dis...
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.", ...
84620a8144cbfcbc
python
34
Dracula
import subprocess from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manually context = browse...
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...
1ccb65c19fc97f63
java
105
Default Light+
package com.thealgorithms.searches; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * The Union-Find data structure, also known as Disjoint Set Union (DSU), * is a data structure that tracks a set of elements partitioned into * disjoint (non-overlapping) subsets. It supports two mai...
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" ...
e3bb4b606187dcfc
cpp
309
Monokai
// Copyright(c) 2015-present, Gabi Melman, mguludag and spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // // Custom sink for QPlainTextEdit or QTextEdit and its children (QTextBrowser... // etc) Building and using requires Qt library. // // Warning: the qt_...
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...
92d3a6581fd936ca
csharp
162
Default Light+
#nullable enable // 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 ...
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...
3dfdaaf354216e79
cpp
243
One Dark Pro
#include "common-ggml.h" #include <regex> #include <map> static const std::map<std::string, enum ggml_ftype> GGML_FTYPE_MAP = { {"q4_0", GGML_FTYPE_MOSTLY_Q4_0}, {"q4_1", GGML_FTYPE_MOSTLY_Q4_1}, {"q5_0", GGML_FTYPE_MOSTLY_Q5_0}, {"q5_1", GGML_FTYPE_MOSTLY_Q5_1}, {"q8_0", GGML_FTYPE_MOSTLY_Q8_0}, ...
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...
74bc8455b3542d7b
csharp
23
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.IO; using System.Resources; namespace SemanticKernel.Functions.UnitTests.Grpc.Protobuf.TestPlugins; internal static class ResourcePluginsProvider { /// <summary> /// Loads .proto file from assembly resource. /// </summary> /// <param name...
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...
18411bf1448e6435
typescript
159
Solarized Light
import { create } from "@bufbuild/protobuf"; import { createContext, type ReactNode, useCallback, useContext, useMemo, useState } from "react"; import { instanceServiceClient } from "@/connect"; import { updateInstanceConfig } from "@/instance-config"; import { InstanceProfile, InstanceProfileSchema, InstanceSett...
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"...
5d99978a94d2c71b
csharp
159
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...
24e2c66abf1ab962
go
222
Default Light+
package convert import ( "cmp" "fmt" "math" "strings" "github.com/pdevine/tensor" "github.com/pdevine/tensor/native" "github.com/ollama/ollama/fs/ggml" ) type llamaModel struct { ModelParameters NLayers uint32 `json:"n_layers"` NumHiddenLayers uint32 `json:"num_hidden_layers"` NLaye...
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.", ...
80f987119ac42916
csharp
93
One Dark Pro
namespace ShareX.HelpersLib { partial class DownloaderForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
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...
2b71aeb94e47b5c4
java
110
Default Light+
package com.thealgorithms.physics; /** * Models a damped harmonic oscillator, capturing the behavior of a mass-spring-damper system. * * <p>The system is defined by the second-order differential equation: * x'' + 2 * gamma * x' + omega₀² * x = 0 * where: * <ul> * <li><b>omega₀</b> is the natural (undamped...
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" ...
7956da28c093fd99
typescript
96
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { Box, Text } from 'ink'; import { render } from '../../test-utils/render.js'; import { ShowMoreLines } from './ShowMoreLines.js'; import { useOverflow...
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...
e1b8e9b1476e5153
python
98
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from typing import Annotated from semantic_kernel.agents import AgentRegistry, OpenAIResponsesAgent from semantic_kernel.functions import kernel_function """ The following sample demonstrates how to create an OpenAI Assistant agent that answers questions ...
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...
11958e95b7b997ec
java
121
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
7485d6d5fb47bdb9
typescript
20
Solarized Light
import * as React from "react"; export const VisuallyHidden = React.forwardRef<HTMLSpanElement, React.HTMLAttributes<HTMLSpanElement>>(({ children, ...props }, ref) => { return ( <span ref={ref} className="absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0" style={{ ...
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...
865757961401b9b7
javascript
47
Dracula
import RadixSort from '../radix-sort/RadixSort'; /** * Bucket Sort * * @param {number[]} arr * @param {number} bucketsNum * @return {number[]} */ export default function BucketSort(arr, bucketsNum = 1) { const buckets = new Array(bucketsNum).fill(null).map(() => []); const minValue = Math.min(...arr); con...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
161dc11d331bba0b
csharp
30
Monokai
using System; namespace winPEAS._3rdParty.BouncyCastle.asn1 { #if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || PORTABLE) [Serializable] #endif public class Asn1ParsingException : InvalidOperationException { public Asn1ParsingException() : base() { } public Asn1ParsingException( string message) : ...
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...
2b96680a6e1a709a
csharp
90
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"...
c27527cc97dc16b5
javascript
34
Dracula
/** * Divide and Conquer solution. * Complexity: O(n^2) in case if no memoization applied * * @param {Number[]} inputArray * @return {Number[]} */ export default function dcMaximumSubarraySum(inputArray) { /** * We are going through the inputArray array and for each element we have two options: * - to pic...
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...
bb540ffb5e0106c5
cpp
211
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: unicharset_training_utils.cpp // Description: Training utilities for UNICHARSET. // Author: Ray Smith // // (C) Copyright 2014, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use 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...
f6d4e059a61ced1b
csharp
110
One Dark Pro
namespace ShareX.HelpersLib { partial class LabeledNumericUpDown { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summa...
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" ...
e387ecba4e258a8a
typescript
53
Solarized Light
import { Response } from "express"; import { AgentCancelResponse, RequestWithAuth } from "./types"; import { supabaseGetAgentByIdDirect, supabaseGetAgentRequestByIdDirect, } from "../../lib/supabase-jobs"; import { config } from "../../config"; export async function agentCancelController( req: RequestWithAuth<{ ...
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...
1158ddfcecd6e703
rust
89
Default Dark+
use crate::{ config::Config, error::OpenAIError, types::{ ChatCompletionResponseStream, CreateChatCompletionRequest, CreateChatCompletionResponse, }, Client, }; /// Given a list of messages comprising a conversation, the model will return a response. /// /// Related guide: [Chat completions...
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...
2ed833ea403aa0f4
cpp
47
Solarized Light
#include "MemoryPage.h" #include <Bridge.h> MemoryPage::MemoryPage(duint parBase, duint parSize, QObject* parent) : QObject(parent), mBase(0), mSize(0) { Q_UNUSED(parBase); Q_UNUSED(parSize); } bool MemoryPage::read(void* parDest, dsint parRVA, duint parSize) const { return DbgMemRead(mBase + parRVA, rein...
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...
ec68804379d7c907
rust
187
Dracula
#[cfg(target_os = "linux")] use crate::ipc::start_pa; use crate::ui_cm_interface::{start_ipc, ConnectionManager, InvokeUiCM}; use hbb_common::{allow_err, log}; use sciter::{make_args, Element, Value, HELEMENT}; use std::sync::Mutex; use std::{ops::Deref, sync::Arc}; lazy_static::lazy_static! { pub static ref HIDE...
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...
058fe1d688129cb7
python
445
Solarized Light
""" Created on Mon Feb 26 14:29:11 2018 @author: Christian Bender @license: MIT-license This module contains some useful classes and functions for dealing with linear algebra in python. Overview: - class Vector - function zero_vector(dimension) - function unit_basis_vector(dimension, pos) - function axpy(scalar, ve...
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...
64a5842b6e37bb4b
java
25
GitHub Dark
package com.xxl.job.admin.core.route; import com.xxl.job.core.biz.model.ReturnT; import com.xxl.job.core.biz.model.TriggerParam; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.List; /** * Created by xuxueli on 17/3/10. */ public abstract class ExecutorRouter { protected static Logger...
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.", ...
045a81be16f0672e
csharp
180
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Microsoft.SemanticKernel.ChatCompletion; /// <summary> /// Reduce the chat history by summarizing message past the target message count....
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...
2aa82e1f2167ff6f
java
20
Solarized Dark
/* give two lines on a Cartesian plane, determine whether the two lines would intersect */ public class WouldIntersect { //placeholder for class name } class Line { static double epsilon = 0.000001; public double slope; public double yintercept; public Line(double s, double y) { this.slope = s; this.yinterc...
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...
7d3223ee4dd498af
cpp
134
One Dark Pro
/********************************************************************** * File: pithsync.h (Formerly pitsync2.h) * Description: Code to find the optimum fixed pitch segmentation of some blobs. * Author: Ray Smith * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version...
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...
6c8358b04e6e2e1c
go
118
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
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...
c634ec98edb60e03
csharp
49
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Threading.Tasks; namespace Microsoft.SemanticKernel; /// <summary> /// A class that can run a process locally or in-process. /// </summary> public static class LocalKernelProcessFactory { /// <summary> /// Starts the specified proce...
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...
04a77a516d8404f0
csharp
310
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Linq; using Microsoft.SemanticKernel; using Xunit; namespace SemanticKernel.UnitTests.AI.FunctionChoiceBehaviors; /// <summary> /// Unit tests for <see cref="AutoFunctionChoiceBehavior"/> /// </summary> public sealed class AutoFunctionChoiceBehaviorTests...
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...
dc460d7e4f8fdfc1
typescript
73
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { Box, Text } from 'ink'; import { Colors } from '../../colors.js'; import type { SessionBrowserState } from '../SessionBrowser.js'; const Kbd = ({ name, shortcut }: { name: string; shortcut:...
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"...
dacc3735da7740f2
go
35
Default Light+
package _115_share import ( "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/op" ) type Addition struct { Cookie string `json:"cookie" type:"text" help:"one of QR code token and cookie required"` QRCodeToken string `json:"qrcode_token" type:"text" help:"one of QR 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...
5088b4b127b24269
csharp
31
Default Light+
#nullable enable using ICSharpCode.Decompiler.TypeSystem; namespace ICSharpCode.Decompiler.IL { partial class ExpressionTreeCast { public bool IsChecked { get; set; } public ExpressionTreeCast(IType type, ILInstruction argument, bool isChecked) : base(OpCode.ExpressionTreeCast, argument) { this.type = 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...
7574e399126a234a
go
57
Solarized Dark
// Copyright 2017 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
55903ad8ce4c7a53
cpp
69
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...
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"...
baed4ec93a604aba
java
161
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...
330b49a8edbc32c8
csharp
221
Monokai
using ScreenToGif.Domain.Models; namespace ScreenToGif.Settings.Migrations; // ReSharper disable once InconsistentNaming public static class Migration0To2_28_0 { public static bool Up(List<Property> properties) { #region Upload presets var uploadPresets = new Property { Ty...
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.", ...
fe13e1a7336deceb
typescript
87
Solarized Light
"use client" import * as React from "react" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@/examples/radix/ui/input-group" import { Popover, PopoverContent, PopoverTrigger, } from "@/examples/radix/ui/popover" import { IconCheck, IconCopy, IconInfoCircle, IconSt...
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...
2f864d7d563dcaa7
typescript
106
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useMemo, useCallback, useRef } from 'react'; import { ExtensionRegistryClient, type RegistryExtension, } from '../../config/extensionRegistryClient.js'; export interface UseExtensionRegistryResult...
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"...