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
a2481fed5e610336
typescript
289
Solarized Dark
import { Delete as DeleteIcon } from '@mui/icons-material' import { Box, Button, Divider, List, ListItem, TextField } from '@mui/material' import { useLockFn, useRequest } from 'ahooks' import { forwardRef, useImperativeHandle, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import { Ba...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
de1a8b6e7a50f699
python
89
Solarized Light
""" In a binary search tree (BST): * The floor of key 'k' is the maximum value that is smaller than or equal to 'k'. * The ceiling of key 'k' is the minimum value that is greater than or equal to 'k'. Reference: https://bit.ly/46uB0a2 Author : Arunkumar Date : 14th October 2023 """ from __future__ import annotations...
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...
9fc94524841b3b82
cpp
99
Dracula
/** * Copyright 2014-2025, XGBoost Contributors * \file updater_prune.cc * \brief prune a tree given the statistics * \author Tianqi Chen */ #include <xgboost/tree_updater.h> #include <memory> #include "../common/timer.h" #include "./param.h" #include "xgboost/base.h" #include "xgboost/gradient.h" // for Gradie...
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...
2dc2d2b48f949f0b
rust
40
GitHub Dark
pub fn prime_numbers(max: usize) -> Vec<usize> { let mut result: Vec<usize> = Vec::new(); if max >= 2 { result.push(2) } for i in (3..=max).step_by(2) { let stop: usize = (i as f64).sqrt() as usize + 1; let mut status = true; for j in (3..stop).step_by(2) { ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
2c3034ca4aedadb5
python
106
Solarized Light
""" Project Euler Problem 092: https://projecteuler.net/problem=92 Square digit chains A number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before. For example, 44 → 32 → 13 → 10 → 1 → 1 85 → 89 → 145 → 42 → 20 → 4 → 16 → 37 → 58 → 89 Therefor...
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...
6f45c50b8d39daf1
csharp
333
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...
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.", ...
4b3954e7973e77a5
csharp
105
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData.ProviderServices; namespace Microsoft.SemanticKernel.Connectors.CosmosNoSql; internal class CosmosNoSqlModelBui...
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...
a9232c91167f604c
csharp
71
Monokai
// Copyright (c) Microsoft. All rights reserved. using Azure.AI.ContentSafety; using ContentSafety.Exceptions; using Microsoft.SemanticKernel; namespace ContentSafety.Filters; /// <summary> /// This filter performs text moderation using Azure AI Content Safety service. /// For more information: https://learn.micros...
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...
874e279e160ef675
rust
466
Solarized Light
use std::{ cmp::Ordering, fmt, hash::{Hash, Hasher}, sync::LazyLock, }; use crate::{ grammars::{ LexicalGrammar, NO_RESERVED_WORDS, Production, ProductionStep, ReservedWordSetId, SyntaxGrammar, }, rules::{Associativity, Precedence, Symbol, SymbolType, TokenSet}, }; static S...
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.", ...
6bf67ebd5d513b4f
javascript
171
Dracula
import path from 'node:path' import { defaultClientConditions, defineConfig, normalizePath } from 'vite' import { a } from './config-dep.cjs' const virtualFile = '@virtual-file' const virtualId = '\0' + virtualFile const virtualFile9036 = 'virtual:file-9036.js' const virtualId9036 = '\0' + virtualFile9036 const virt...
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"...
121bd9a6b677de2a
typescript
169
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { CommandModule } from 'yargs'; import { updateAllUpdatableExtensions, type ExtensionUpdateInfo, checkForAllExtensionUpdates, updateExtension, } from '../../config/extensions/update.js'; import { checkForExtensi...
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"...
18e9ed5626d345ba
python
242
Monokai
# Copyright (c) Microsoft. All rights reserved. import inspect import logging import sys from collections.abc import Awaitable, Callable from functools import wraps from typing import Any from semantic_kernel.agents.agent import Agent, AgentThread from semantic_kernel.agents.orchestration.orchestration_base import D...
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...
bcbce97003d54ca8
csharp
158
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.Chat; using Xunit; namespace SemanticKernel.Agents.UnitTests.Core.Chat;...
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...
b79a8ee7674f47f9
java
280
GitHub Dark
package org.jeecg.config.firewall.SqlInjection.impl; import lombok.extern.slf4j.Slf4j; import org.jeecg.common.constant.SymbolConstant; import org.jeecg.common.exception.JeecgSqlInjectionException; import org.jeecg.common.util.oConvertUtils; import org.jeecg.config.JeecgBaseConfig; import org.jeecg.config.firewall.Sql...
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...
2b9fa7d72f46c1d8
cpp
57
Solarized Dark
#ifndef OPENPOSE_CORE_RENDERER_HPP #define OPENPOSE_CORE_RENDERER_HPP #include <atomic> #include <openpose/core/common.hpp> #include <openpose/core/enumClasses.hpp> namespace op { class OP_API Renderer { public: explicit Renderer(const float renderThreshold, const float alphaKeypoint, const float ...
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.", ...
01803dfb032bb40b
go
61
Solarized Dark
// Copyright 2025 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
b22637d83d2a38da
cpp
90
Solarized Dark
#ifndef OPENPOSE_GUI_W_ADD_GUI_INFO_HPP #define OPENPOSE_GUI_W_ADD_GUI_INFO_HPP #include <openpose/core/common.hpp> #include <openpose/gui/guiInfoAdder.hpp> #include <openpose/thread/worker.hpp> namespace op { template<typename TDatums> class WGuiInfoAdder : public Worker<TDatums> { public: ex...
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...
f973fe0d29b62cde
csharp
189
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...
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...
ff45eea084c8b7f4
python
50
Default Light+
from .common import InfoExtractor from .wat import WatIE from ..utils import ExtractorError, int_or_none from ..utils.traversal import traverse_obj class LCIIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?(?:lci|tf1info)\.fr/(?:[^/?#]+/)+[\w-]+-(?P<id>\d+)\.html' _TESTS = [{ 'url': 'https://www.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" ...
45fcc1f70da353d1
rust
152
Dracula
use crate::{quartz, Frame, Pixfmt}; use std::marker::PhantomData; use std::sync::{Arc, Mutex, TryLockError}; use std::{io, mem}; pub struct Capturer { inner: quartz::Capturer, frame: Arc<Mutex<Option<quartz::Frame>>>, saved_raw_data: Vec<u8>, // for faster compare and copy } impl Capturer { pub fn new...
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.", ...
c94891a5937e7a33
javascript
129
Default Dark+
// // bark.js // UptimeKuma // // Created by Lakr Aream on 2021/10/24. // Copyright © 2021 Lakr Aream. All rights reserved. // const NotificationProvider = require("./notification-provider"); const { DOWN, UP } = require("../../src/util"); const { default: axios } = require("axios"); // bark is an APN bridge that...
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...
e2e2441dc715349d
cpp
36
Solarized Light
#include "CloseDialog.h" #include "ui_CloseDialog.h" #include "MiscUtil.h" #include <QCloseEvent> CloseDialog::CloseDialog(QWidget* parent) : QDialog(parent), ui(new Ui::CloseDialog) { ui->setupUi(this); setModal(true); setWindowFlags(windowFlags() & ~(Qt::WindowContextHelpButtonHint | Qt::WindowCloseButto...
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...
93bba4ec2c0ecf98
java
26
Solarized Dark
/* implement a function to check if a binary tree is balanced. For the purpose of this * question, a balanced tree is defined to be a tree such that the heights of the two * subtrees of any node never differ by more than one */ public class BinaryTreeIsBalanaced { public static int getHeight(TreeNode root) { if(r...
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...
fd382951ccfc137b
typescript
312
Dracula
import { dirname } from 'node:path' import type * as esbuild from 'esbuild' import type { ImportKind, LoadResult, PartialResolvedId, PluginContext, ResolveIdResult, Plugin as RolldownPlugin, RolldownPluginOption, } from 'rolldown' type MaybePromise<T> = T | Promise<T> type EsbuildOnResolveCallback = ( ...
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...
16daa10d01018d4b
csharp
35
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Microsoft.SemanticKernel.Plugins.MsGraph; /// <summary> /// Interface for organization hierarchy connections (e.g. Azure AD). /// </summary> public interface IOrganizati...
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...
dc678b7763d36c99
cpp
438
One Dark Pro
// Real-time speech recognition of input from a microphone // // A very quick-n-dirty implementation serving mainly as a proof of concept. // #include "common-sdl.h" #include "common.h" #include "common-whisper.h" #include "whisper.h" #include <chrono> #include <cstdio> #include <fstream> #include <string> #include <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...
505f17db6da5fd43
typescript
44
GitHub Dark
import { Tray, ipcMain, BrowserWindow, app, Notification } from 'electron'; import type { NotificationConstructorOptions, IpcMainInvokeEvent } from 'electron'; import { openInBrowser } from '../utils'; import { omit } from 'lodash-es'; ipcMain.on('open-in-browser', (event: IpcMainInvokeEvent, url: string) => openInBro...
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" ...
c796fb2aed22d489
typescript
76
Solarized Light
import { Avatar, AvatarFallback, AvatarImage } from "@/examples/radix/ui/avatar" import { Button } from "@/examples/radix/ui/button" import { Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, } from "@/examples/radix/ui/item" import { Plus } from "lucide-react" export function ItemAvat...
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...
ec0d210332056d0e
csharp
358
Dracula
using System.Collections.Specialized; namespace ServiceLib.Handler.Fmt; public class BaseFmt { private static readonly string[] _allowInsecureArray = new[] { "insecure", "allowInsecure", "allow_insecure" }; protected static string GetIpv6(string address) { if (Utils.IsIpv6(address)) { ...
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...
89592a942ac796b0
csharp
114
Monokai
using System.IO; using System.Windows; using System.Windows.Media.Imaging; namespace ScreenToGif.Util.Extensions; public static class ImageExtensions { /// <summary> /// Gets the BitmapSource from the source and closes the file usage. /// </summary> /// <param name="fileSource">The file to open.</para...
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"...
be34186fc1ae6f9d
typescript
122
Dracula
import { type Connect, type Plugin, type PluginOption, createServerModuleRunner, defineConfig, } from 'vite' export default defineConfig((env) => ({ clearScreen: false, appType: 'custom', plugins: [ vitePluginSsrMiddleware({ entry: '/src/entry-server', preview: new URL('./dist/server/in...
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" ...
4ec7602385128fc5
go
214
Default Light+
// Package vae provides shared utilities for VAE (Variational Autoencoder) operations. package vae import ( "github.com/ollama/ollama/x/imagegen/mlx" ) // TilingConfig holds configuration for tiled VAE decoding. // This is a general technique to reduce memory usage when decoding large latents. type TilingConfig stru...
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...
41a4d82dd15da0b0
java
353
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...
6e4e165bfad4098c
java
64
GitHub Dark
package org.jeecg.modules.system.model; import io.swagger.v3.oas.annotations.media.Schema; /** * 登录表单 * * @Author scott * @since 2019-01-18 */ @Schema(description="登录对象") public class SysLoginModel { @Schema(description = "账号") private String username; @Schema(description = "密码") private String passw...
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...
2ae0bc61f42376ff
python
107
Monokai
# Copyright (c) Microsoft. All rights reserved. import logging from collections.abc import Mapping from copy import copy from typing import Any from openai import AsyncOpenAI from pydantic import ConfigDict, Field, validate_call from semantic_kernel.connectors.ai.open_ai.services.open_ai_handler import OpenAIHandler...
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...
6d64e7251f36fb27
csharp
338
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Diagnostics; namespace Microsoft.SemanticKernel.Memory; /// <summary> /// Implements the classic 'heap' data structure. By default, the item with the lowest value is at the top of the heap. /// </summary> /...
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"...
30e0a5ee1d431993
cpp
36
Solarized Light
#pragma once #include <QObject> #include <QSyntaxHighlighter> #include <QTextCharFormat> #include <QRegularExpression> #include "CodeEditor.h" QT_BEGIN_NAMESPACE class QTextDocument; QT_END_NAMESPACE class PatternHighlighter : public QSyntaxHighlighter { Q_OBJECT public: PatternHighlighter(const CodeEditor*...
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"...
b3b111e83327bc7c
csharp
68
Monokai
namespace ScreenToGif.Util.Codification.Gif.Encoder; internal class BitEncoder { /// <summary> /// The last remaining bit /// </summary> private int _currentBit = 0; /// <summary> /// Output byte of data collection. /// </summary> internal List<byte> OutList = new(); /// <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...
14c17cb99a4d1998
cpp
33
One Dark Pro
/********************************************************************** * File: polyaprx.h * Description: Code for polygonal approximation from old edgeprog. * Author: Ray Smith * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may ...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
cfc30fa6b7bc8faf
typescript
24
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { CommandKind, type SlashCommand } from './types.js'; import { MessageType, type HistoryItemHelp } from '../types.js'; export const helpCommand: SlashCommand = { name: 'help', kind: CommandKind.BUILT_IN, description: ...
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...
66fc8389a0f56147
csharp
115
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Data.Common; using System.Diagnostics; using System.Runtime.InteropServices; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData.ProviderServices; namespace Microsoft.SemanticKernel.Connectors.SqliteVec; /// <summary> /// C...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
63a05972c4abf17f
rust
268
Default Dark+
use std::fs::{self, File}; use std::io::{BufRead, BufReader}; use std::path::{Path, PathBuf}; use serde::Deserialize; use tempfile::TempDir; use time::OffsetDateTime; use super::compat::v1_to_v2::CompatV1ToV2; use super::Document; use crate::{IndexMetadata, Result, Version}; pub mod settings; pub mod update; pub st...
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...
fb94af4380b65116
python
137
Default Light+
import re from .common import InfoExtractor from ..utils import ( clean_html, format_field, get_element_by_class, parse_duration, parse_qs, traverse_obj, unified_timestamp, update_url_query, url_basename, ) class TelegramEmbedIE(InfoExtractor): IE_NAME = 'telegram:embed' _...
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" ...
1ddb5862b933e8c0
go
29
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...
dfe7e3d74ce512fa
go
282
Default Light+
package llm import ( "context" "errors" "fmt" "strings" "testing" "github.com/ollama/ollama/api" "github.com/ollama/ollama/format" "github.com/ollama/ollama/ml" "golang.org/x/sync/semaphore" ) func TestLLMServerFitGPU(t *testing.T) { minMemory := 457 * format.MebiByte tests := []struct { name st...
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" ...
a5844f5382443283
go
383
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
9520fcd11e5ff1c5
go
255
Default Light+
package nn import "github.com/ollama/ollama/x/mlxrunner/mlx" // Layer is the interface for neural network layers with a Forward method. type Layer interface { Forward(x *mlx.Array) *mlx.Array } // LinearLayer is an interface for linear layers (both regular and quantized). type LinearLayer interface { Forward(x *ml...
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.", ...
9b612f9cc274d25a
java
26
Solarized Dark
// Given two strings, write a method to decide if one is a permutation of the other public class Permutation { public boolean permutation(String s, String t) { if(s.length() != t.length()) { return false; } int[] letters = new int[256]; char[] s_array = s.toCharArray(); for(char c : s_array) { lette...
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...
403b1706e45eec07
python
77
Default Light+
from .common import InfoExtractor from ..utils import parse_iso8601, url_or_none from ..utils.traversal import traverse_obj class NTSLiveIE(InfoExtractor): IE_NAME = 'nts.live' _VALID_URL = r'https?://(?:www\.)?nts\.live/shows/[^/?#]+/episodes/(?P<id>[^/?#]+)' _TESTS = [ { # embedded s...
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...
c5e21d3da28a5056
typescript
109
Default Dark+
import { Fragment, useEffect, useRef } from 'react'; import { Transition } from '@headlessui/react'; import { CheckIcon } from '@heroicons/react/24/outline'; import { XMarkIcon } from '@heroicons/react/24/solid'; type ToastVariant = 'failure' | 'success'; export type ToastMessage = { duration?: number; subtitle?:...
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"...
ebf61c21c188038a
java
191
GitHub Dark
//package org.jeecg.common.util.sqlparse; // //import lombok.extern.slf4j.Slf4j; //import net.sf.jsqlparser.JSQLParserException; //import net.sf.jsqlparser.expression.*; //import net.sf.jsqlparser.parser.CCJSqlParserManager; //import net.sf.jsqlparser.schema.Column; //import net.sf.jsqlparser.schema.Table; //import net...
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...
75425e4c1c9ff69f
python
57
Monokai
# Copyright (c) Microsoft. All rights reserved. from semantic_kernel.exceptions.kernel_exceptions import KernelException class ContentException(KernelException): """Base class for all content exceptions.""" pass class ContentInitializationError(ContentException): """An error occurred while initializin...
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...
f0723eeefd188178
cpp
36
Dracula
/*! * Copyright 2019 XGBoost contributors */ #ifndef XGBOOST_COMMON_VERSION_H_ #define XGBOOST_COMMON_VERSION_H_ #include <dmlc/io.h> #include <string> #include <tuple> #include "xgboost/base.h" namespace xgboost { class Json; // a static class for handling version info struct Version { using TripletT = std::tup...
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...
43d90608f70c8840
python
20
Dracula
from typing import Annotated from fastapi import FastAPI from fastapi.temp_pydantic_v1_params import Body from pydantic.v1 import BaseModel class Item(BaseModel): name: str description: str | None = None size: float app = FastAPI() @app.post("/items/") async def create_item(item: Annotated[Item, 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.", ...
d4bd321a9be2aa26
javascript
38
Dracula
import fs from 'node:fs' import path from 'node:path' import { defineConfig } from 'vite' const dirname = import.meta.dirname export default defineConfig({ plugins: [ { name: 'copy', writeBundle() { fs.mkdirSync(path.resolve(dirname, 'dist/views')) fs.mkdirSync(path.resolve(dirname, ...
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...
073bb813bfb2ad19
cpp
342
One Dark Pro
#include <hex/helpers/fs.hpp> #include <hex/helpers/logger.hpp> #include <hex/helpers/fmt.hpp> #include <hex/helpers/utils_linux.hpp> #include <hex/helpers/auto_reset.hpp> #if defined(OS_WINDOWS) #include <windows.h> #include <shlobj.h> #include <shellapi.h> #elif defined(OS_LINUX) || defined(OS_WEB) ...
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...
5df80ae409fa14f3
typescript
122
Solarized Light
"use client" import { TrendingUp } from "lucide-react" import { Area, AreaChart, CartesianGrid, XAxis } from "recharts" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartContainer, ChartTooltip, ChartTooltipContent, ...
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...
08e525f54e48534f
java
58
GitHub Dark
package org.jeecg.modules.system.service; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.modules.system.entity.SysTableWhiteList; import java.util.Map; /** * @Description: 系统表白名单 * @Author: jeecg-boot * @Date: 2023-09-12 * @Version: V1.0 */ public interface ISysTableWhiteListServic...
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...
f6289b6d9d7bace1
python
296
Default Light+
import re from .common import InfoExtractor from .wistia import WistiaIE from ..utils import ( ExtractorError, clean_html, get_element_by_class, int_or_none, strip_or_none, urlencode_postdata, urljoin, ) class TeachableBaseIE(InfoExtractor): _NETRC_MACHINE = 'teachable' _URL_PREFI...
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...
3f11d254edbdfb1d
java
35
Dracula
package com.macro.mall.search.config; import com.macro.mall.common.config.BaseSwaggerConfig; import com.macro.mall.common.domain.SwaggerProperties; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Config...
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...
be99774538af0edf
cpp
78
Solarized Light
#include "_scriptapi_debug.h" SCRIPT_EXPORT void Script::Debug::Wait() { _plugin_waituntilpaused(); } SCRIPT_EXPORT void Script::Debug::Run() { if(DbgCmdExecDirect("run")) Wait(); } SCRIPT_EXPORT void Script::Debug::Pause() { if(DbgCmdExecDirect("pause")) Wait(); } SCRIPT_EXPORT void Scr...
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.", ...
9e9251c887b1dc54
cpp
151
Default Light+
#include "models.h" llm_build_ernie4_5_moe::llm_build_ernie4_5_moe(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { const int64_t n_embd_head = hparams.n_embd_head_v; GGML_ASSERT(n_embd_head == hparams.n_embd_head_k); GGML_ASSERT(n_embd_head == hparams.n_rot)...
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...
c215dbed98b4bbc1
rust
48
GitHub Dark
// Function to calculate combinations of k elements from a set of n elements pub fn combinations(n: i64, k: i64) -> i64 { // Check if either n or k is negative, and panic if so if n < 0 || k < 0 { panic!("Please insert positive values"); } let mut res: i64 = 1; for i in 0..k { // Ca...
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...
0eca41b798bb7fa0
csharp
145
Monokai
using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Input; using ScreenToGif.Util; using ScreenToGif.ViewModel.UploadPresets.Imgur; namespace ScreenToGif.Windows.Other; public partial class PickAlbumDialog { private List<ImgurAlbum> AlbumList { get; set; } public P...
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...
5f69b4bb24a3b126
typescript
25
One Dark Pro
import { defineVersion } from "verzod" import { z } from "zod" import { HoppRESTHeaders, HoppRESTParams } from "../../../rest/v/7" import { HoppRESTReqBody } from "../../../rest/v/6" import { HoppRESTRequestVariables } from "../../../rest/v/2" import { HoppRESTAuth } from "../../../rest/v/8/auth" export const V1_SCHE...
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...
e1bc16c890eeccb5
typescript
86
Solarized Light
"use client" import * as React from "react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/bases/base/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "@/registry/bases/base/ui/sidebar" import { IconPlaceholder } fr...
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...
832b9b8bfa265998
typescript
61
GitHub Dark
import { Ref, unref, computed } from 'vue'; import { useI18n } from '/@/hooks/web/useI18n'; const { t } = useI18n(); export function useUploadType({ acceptRef, helpTextRef, maxNumberRef, maxSizeRef, }: { acceptRef: Ref<string[]>; helpTextRef: Ref<string>; maxNumberRef: Ref<number>; maxSizeRef: Ref<numbe...
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...
dcdce293b25e0f43
typescript
87
Solarized Dark
import { ipv4, ipv6 } from 'cidr-block' import validator from 'validator' const stripBrackets = (value: string) => value.startsWith('[') && value.endsWith(']') ? value.slice(1, -1) : value const isIpv4 = (value: string) => validator.isIP(value, 4) const isIpv6 = (value: string) => validator.isIP(value, 6) const isH...
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...
424373b66716e426
rust
30
Default Dark+
use std::borrow::Cow; use std::convert::TryInto; use std::str; use heed::BoxedError; pub struct BEU16StrCodec; impl<'a> heed::BytesDecode<'a> for BEU16StrCodec { type DItem = (u16, &'a str); fn bytes_decode(bytes: &'a [u8]) -> Result<Self::DItem, BoxedError> { let (n_bytes, str_bytes) = bytes.split_...
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"...
709d6f2a872cec80
csharp
45
Monokai
// Copyright (c) Microsoft. All rights reserved. namespace Microsoft.SemanticKernel.Plugins.AI.CrewAI; /// <summary> /// Represents the state of a CrewAI Crew kickoff. /// </summary> public enum CrewAIKickoffState { /// <summary> /// The kickoff is pending and has not started yet. /// </summary> Pend...
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.", ...
3220e08bfc9c0267
java
42
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...
29f755141a6dcf00
typescript
361
Solarized Light
"use client" import * as React from "react" import { NavFavorites } from "@/registry/bases/base/blocks/sidebar-10/components/nav-favorites" import { NavMain } from "@/registry/bases/base/blocks/sidebar-10/components/nav-main" import { NavSecondary } from "@/registry/bases/base/blocks/sidebar-10/components/nav-seconda...
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...
a7ba74dfcf7a3724
javascript
161
Dracula
'use strict'; const fs = require('fs'); const path = require('path'); const sessionManager = require('../session-manager'); const sessionAliases = require('../session-aliases'); const { normalizeClaudeHistorySession, persistCanonicalSnapshot } = require('./canonical-session'); function parseClaudeTarget(target) { ...
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...
e44772ef5d9b57d2
java
36
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
ea7cb5b79ea5fe85
csharp
106
Default Light+
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, cop...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
0a0d426be8133fe7
typescript
90
Solarized Light
"use client" import * as React from "react" import { Toggle as TogglePrimitive } from "@base-ui/react/toggle" import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group" import { type VariantProps } from "class-variance-authority" import { cn } from "@/registry/bases/base/lib/utils" import { tog...
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...
69cbeff3b74e794f
typescript
22
Solarized Light
import { Button } from "@/examples/base/ui/button" import { Kbd } from "@/examples/base/ui/kbd" import { Tooltip, TooltipContent, TooltipTrigger, } from "@/examples/base/ui/tooltip" import { SaveIcon } from "lucide-react" export function TooltipKeyboard() { return ( <Tooltip> <TooltipTrigger render={...
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" ...
bb42ffb401af5b5a
java
70
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
fdb92f6cec15be0f
java
45
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
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"...
50501a1f24edf878
rust
37
Solarized Dark
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct RubyConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str...
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"...
c8ecee6eca2c7af5
typescript
290
Solarized Dark
import { DeleteForeverRounded, TableChartRounded, TableRowsRounded, } from '@mui/icons-material' import { Box, Button, ButtonGroup, Fab, IconButton, MenuItem, Zoom, } from '@mui/material' import { useLockFn } from 'ahooks' import { useCallback, useMemo, useRef, useState } from 'react' import { useTr...
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"...
63922f84f88ff7b4
java
244
GitHub Dark
package com.github.mikephil.charting.highlight; import com.github.mikephil.charting.components.YAxis; /** * Contains information needed to determine the highlighted value. * * @author Philipp Jahoda */ public class Highlight { /** * the x-value of the highlighted value */ private float mX = Fl...
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...
60bd630d1cb0b142
typescript
36
Solarized Light
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "@/examples/radix/ui/alert-dialog" import { Button } from "@/examples/radix/ui/button" export function AlertDialog...
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...
6634f2a4bbc9d4a5
typescript
120
Solarized Light
"use client" import * as React from "react" import { Field, FieldDescription, FieldGroup, FieldLabel, } from "@/examples/radix/ui-rtl/field" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from "@/examples/radix/ui-rtl/input-group" impo...
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.", ...
6b6f4ca3644dcdab
java
28
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...
bec1adc08ab31803
python
405
Dracula
"""Utilities for packaging R code and running tests.""" import argparse import os import shutil import subprocess from io import StringIO from pathlib import Path from platform import system try: import pandas as pd except ImportError: pd = None from test_utils import R_PACKAGE, ROOT, DirectoryExcursion, cd,...
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" ...
a27479f8bf842255
csharp
76
Default Light+
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, cop...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
8101e5e5c20a5397
typescript
341
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { type HttpHeaders, DefaultAgentCardResolver } from '@a2a-js/sdk/client'; import type { AgentCard } from '@a2a-js/sdk'; import { BaseA2AAuthProvider } from './base-provider.js'; import type { OAuth2AuthConfig } from './types...
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...
033ee1227793dc1c
python
261
Solarized Light
import os from firecrawl import FirecrawlApp import json from dotenv import load_dotenv from openai import OpenAI # ANSI color codes class Colors: CYAN = '\033[96m' YELLOW = '\033[93m' GREEN = '\033[92m' RED = '\033[91m' MAGENTA = '\033[95m' BLUE = '\033[94m' RESET = '\033[0m' # Load envir...
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...
00f63895d61a7b8d
typescript
52
GitHub Dark
import { ref, unref } from 'vue'; import { tryOnUnmounted } from '@vueuse/core'; export function useCountdown(count: number) { const currentCount = ref(count); const isStart = ref(false); let timerId: ReturnType<typeof setInterval> | null; function clear() { timerId && window.clearInterval(timerId); }...
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...
311395fd0d14cbc3
typescript
51
Solarized Light
import fs from "fs" import path from "path" import fm from "front-matter" import { source } from "@/lib/source" export type ChangelogPageData = { title: string description?: string } export type ChangelogPage = ReturnType<typeof source.getPages>[number] & { date: Date | null } // Reads the date from the front...
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" ...
eff78a039dd2abd4
go
104
Solarized Dark
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
b25e9735490ff295
rust
75
GitHub Dark
pub fn euler_totient(n: u64) -> u64 { let mut result = n; let mut num = n; let mut p = 2; // Find all prime factors and apply formula while p * p <= num { // Check if p is a divisor of n if num.is_multiple_of(p) { // If yes, then it is a prime factor // Appl...
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"...
ff16935bf7e85a4f
cpp
185
One Dark Pro
// (C) Copyright 2017, Google Inc. // 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 in writing,...
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"...
22f84881d9d8a092
typescript
24
Dracula
import type { Connect } from '#dep-types/connect' /** * disallows request that contains `#` in the URL */ export function rejectInvalidRequestMiddleware(): Connect.NextHandleFunction { // Keep the named function. The name is visible in debug logs via `DEBUG=connect:dispatcher ...` return function viteRejectInval...
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" ...
56fc30117cb600fb
csharp
197
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"...
12bb7a85146e7696
python
61
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from semantic_kernel.agents import BedrockAgent, BedrockAgentThread """ This sample shows how to interact with a Bedrock agent in the simplest way. This sample uses the following main component(s): - a Bedrock agent You will learn how to create a new Bed...
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...
7be6d8865367cc39
typescript
52
Solarized Light
import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-06/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" import { Separator } from "@/registry/new-york-v4/ui/separator"...
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"...
f1aabac269d4a7a5
go
367
Default Light+
package qbittorrent import ( "bytes" "errors" "io" "mime/multipart" "net/http" "net/http/cookiejar" "net/url" "github.com/alist-org/alist/v3/pkg/utils" ) type Client interface { AddFromLink(link string, savePath string, id string) error GetInfo(id string) (TorrentInfo, error) GetFiles(id string) ([]FileIn...
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"...
da88e98e058c5587
cpp
34
One Dark Pro
// // MIT license // Copyright (C) 2024 Intel Corporation // SPDX-License-Identifier: MIT // // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // #ifndef GGML_SYCL_...
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.", ...