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
4284c7d34bb27d7a
java
56
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
5f7ee30705aefbf5
typescript
87
Solarized Light
"use client" import * as React from "react" import { CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from "@/examples/radix/ui/command" import { Calculator, Calendar, CreditCard, Settings, Smile, User, } from "lucide-re...
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...
63993f7cbf2855c1
typescript
84
One Dark Pro
import { Strategy, VerifyCallback, Profile } from 'passport-google-oauth20'; import { PassportStrategy } from '@nestjs/passport'; import { Injectable, UnauthorizedException } from '@nestjs/common'; import { UserService } from 'src/user/user.service'; import * as O from 'fp-ts/Option'; import { AuthService } from '../au...
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...
30f61afb5d0fefda
rust
176
Solarized Dark
use super::{Context, Module, ModuleConfig}; use crate::configs::kotlin::KotlinConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use crate::utils::get_command_string_output; use regex::Regex; const KOTLIN_VERSION_PATTERN: &str = "(?P<version>[\\d\\.]+[\\d\\.]+[\\d\\.]+)"; /// Crea...
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...
82a3544733d5dd93
python
66
Default Light+
#!/usr/bin/env python3 # Allow direct execution import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import argparse import contextlib import sys from devscripts.utils import calculate_version, run_process, write_file def get_git_head(): with contextlib.suppres...
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.", ...
519e35cfd3dcd74a
java
45
GitHub Dark
package org.jeecg.modules.system.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import lombok.extern.slf4j.Slf4j; import org.jeecg.modules.system.entity.SysThirdAppConfig; import org.jeecg.modules.system.mapper...
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...
7e3b67d502a60905
cpp
118
One Dark Pro
#include "models.h" llm_build_maincoder::llm_build_maincoder(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { const int64_t n_embd_head = hparams.n_embd_head_v(); GGML_ASSERT(n_embd_head == hparams.n_embd_head_k()); GGML_ASSERT(n_embd_head == n_rot); ggml_tens...
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.", ...
c7a4f7a2c77d042c
python
40
Solarized Light
""" This algorithm was created for sdbm (a public-domain reimplementation of ndbm) database library. It was found to do well in scrambling bits, causing better distribution of the keys and fewer splits. It also happens to be a good general hashing function with good distribution. The actual function (pseudo code) is: ...
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"...
c46ce6ee7bad391d
cpp
361
One Dark Pro
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // // 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 // ...
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...
efb19915496566a4
python
352
Default Light+
""" Hypertile module for splitting attention layers in SD-1.5 U-Net and SD-1.5 VAE Warn: The patch works well only if the input image has a width and height that are multiples of 128 Original author: @tfernd Github: https://github.com/tfernd/HyperTile """ from __future__ import annotations from dataclasses import dat...
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.", ...
1f3bf07debe21cfe
java
40
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright ยฉ 2014-2022 Ilkka Seppรคlรค * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
698cb55950afeef4
go
283
Default Light+
package _123Open import ( "bytes" "context" "crypto/md5" "encoding/hex" "encoding/json" "fmt" "github.com/alist-org/alist/v3/drivers/base" "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/internal/stream" "github.com/alist-org/alis...
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.", ...
9985f35ae83a2a44
python
56
Default Light+
from .common import InfoExtractor from ..utils import ( parse_duration, parse_iso8601, ) class GodTubeIE(InfoExtractor): _WORKING = False _VALID_URL = r'https?://(?:www\.)?godtube\.com/watch/\?v=(?P<id>[\da-zA-Z]+)' _TESTS = [ { 'url': 'https://www.godtube.com/watch/?v=0C0CNNNU...
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...
2251458f2f0e1eb6
cpp
75
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...
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...
495737810a6349f7
java
46
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...
deacb6fcc5fa6b4d
typescript
76
Solarized Light
import { createOpenAI } from "@ai-sdk/openai"; import { config } from "../config"; import { createOllama } from "ollama-ai-provider"; import { anthropic } from "@ai-sdk/anthropic"; import { groq } from "@ai-sdk/groq"; import { google } from "@ai-sdk/google"; import { createOpenRouter } from "@openrouter/ai-sdk-provider...
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"...
b5ef149cb82872de
csharp
77
Default Light+
using Ardalis.ListStartupServices; using FastEndpoints; using FastEndpoints.Swagger; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; using MinimalClean.Architecture.Web.Infrastructure.Data; using Scalar.AspNetCore; namespace MinimalClean.Architecture.Web.Configurations; public static class Mi...
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" ...
bcfa34cafdcebf9b
typescript
53
One Dark Pro
import * as Eq from "fp-ts/Eq" import * as S from "fp-ts/string" import isEqual from "lodash-es/isEqual" /* * Eq-s are fp-ts an interface (type class) that defines how the equality * of 2 values of a certain type are matched as equal */ /** * Create an Eq from a non-undefinable value and makes it accept undefined...
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...
c249f4498cae3048
csharp
67
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
a4af2b314739c9db
java
136
GitHub Dark
package com.github.mikephil.charting.data; import android.annotation.TargetApi; import android.graphics.Color; import android.graphics.drawable.Drawable; import com.github.mikephil.charting.interfaces.datasets.ILineRadarDataSet; import com.github.mikephil.charting.utils.Utils; import java.util.List; /** * Base da...
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...
dc195d6ed6a7f1bd
java
82
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...
27136f9bc05081b4
java
64
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...
ff6cca18bcffac73
typescript
66
GitHub Dark
import { ref } from 'vue'; import { getMenus } from '/@/router/menus'; export const useHideHomeDesign = (currentRoute) => { let menus: any = []; // ๆ˜ฏๅฆ้š่—้—จๆˆท่ฎพ่ฎก const isHideHomeDesign = ref(true); const getHideHomeDesign = (isCurItem, path) => { if (/^\/portal-view\/[^/]+$/.test(path) && isCurItem) { if ...
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" ...
6325110cb421d6af
csharp
329
Monokai
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Runtime.Serialization.Json; using System.Text; using System.Windows; using ScreenToGif.Domain.Enums; using ScreenToGif.Domain.Models; using ScreenToGif.Util; using ScreenToGif.Util.Codifi...
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"...
2e05f7b05d199fcf
csharp
217
Monokai
๏ปฟ// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using Microsoft.Extensions.Configuration; using Microsoft.SemanticKernel.Agents; using Xunit; namespace SemanticKernel.Agents.UnitTests.Yaml; /// <summary> /// Unit tests for <see cref="AgentDefinitionYaml"/>. /// </summary> public c...
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.", ...
b0b766d6392b6318
python
66
Solarized Light
""" Project Euler Problem 164: https://projecteuler.net/problem=164 Three Consecutive Digital Sum Limit How many 20 digit numbers n (without any leading zero) exist such that no three consecutive digits of n have a sum greater than 9? Brute-force recursive solution with caching of intermediate results. """ def sol...
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...
ddcccfad244a1362
go
107
Solarized Dark
// Copyright 2022 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
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"...
708a62875ea794bb
rust
284
One Dark Pro
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /// Module for CPUID instruction related content pub mod cpuid; /// Module for custom CPU templates pub mod custom_cpu_template; /// Module for static CPU templates pub mod static_cpu_templates; /// Module...
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...
00364d90d0298299
csharp
94
Monokai
๏ปฟ// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Globalization; using System.Threading.Tasks; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Plugins.Core; using SemanticKernel.UnitTests; using Xunit; namespace SemanticKernel.Plugins.UnitTes...
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...
d5490e8d00cb929f
python
49
Solarized Light
def aliquot_sum(input_num: int) -> int: """ Finds the aliquot sum of an input integer, where the aliquot sum of a number n is defined as the sum of all natural numbers less than n that divide n evenly. For example, the aliquot sum of 15 is 1 + 3 + 5 = 9. This is a simple O(n) implementation. ...
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...
e587a0002805d97d
java
86
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright ยฉ 2014-2022 Ilkka Seppรคlรค * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
a7dab31da3390c80
csharp
345
Monokai
๏ปฟ// Copyright (c) Microsoft. All rights reserved. using System; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using Microsoft.Azure.Cosmos; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.CosmosNoSql; using...
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.", ...
f628f3f6536b8ec2
typescript
72
Solarized Light
"use client" import { FrameIcon, MapIcon, PieChartIcon, PlusIcon } from "lucide-react" import { toast, Toaster } from "sonner" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvide...
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...
488e583b5273d307
rust
417
Default Dark+
use std::fs::File; use std::str::FromStr; use super::v2_to_v3::CompatV2ToV3; use crate::reader::{v1, v2, Document}; use crate::Result; pub struct CompatV1ToV2 { pub from: v1::V1Reader, } impl CompatV1ToV2 { pub fn new(v1: v1::V1Reader) -> Self { Self { from: v1 } } pub fn to_v3(self) -> Comp...
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...
3b0c379866c412b1
java
60
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
6f0f958bdc7a30cf
java
24
GitHub Dark
package org.jeecg.common.constant.enums; /** * ๅฎขๆˆท็ปˆ็ซฏ็ฑปๅž‹ */ public enum ClientTerminalTypeEnum { PC("pc", "็”ต่„‘็ปˆ็ซฏ"), H5("h5", "็งปๅŠจ็ฝ‘้กต็ซฏ"), APP("app", "ๆ‰‹ๆœบapp็ซฏ"); private String key; private String text; ClientTerminalTypeEnum(String value, String text) { this.key = value; this.text ...
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...
afde11e2121fa56a
rust
95
Dracula
use super::{ driver::{get_installed_driver_version, install_driver, uninstall_driver}, port::{check_add_local_port, check_delete_local_port}, printer::{add_printer, delete_printer}, }; use hbb_common::{allow_err, bail, lazy_static, log, ResultType}; use std::{path::PathBuf, sync::Mutex}; use windows_strings...
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.", ...
0140927837820a00
java
51
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.", ...
58b7909ae88fdaa9
go
73
Solarized Light
package postgres import ( "context" "strings" "github.com/usememos/memos/store" ) func (d *DB) UpsertInstanceSetting(ctx context.Context, upsert *store.InstanceSetting) (*store.InstanceSetting, error) { stmt := ` INSERT INTO system_setting ( name, value, description ) VALUES ($1, $2, $3) ON CONFLICT(n...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
eba866841b719a0d
typescript
27
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect, useState } from 'react'; import { persistentState } from '../../utils/persistentState.js'; interface UseTipsResult { showTips: boolean; } export function useTips(): UseTipsResult { const [tipsCount] = useS...
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...
8fdacdbe4308ac57
typescript
153
One Dark Pro
import * as E from "fp-ts/Either" import * as TE from "fp-ts/TaskEither" import * as O from "fp-ts/Option" import { pipe } from "fp-ts/function" import { ContentType, MediaType, content } from "@hoppscotch/kernel" import { EffectiveHoppRESTRequest } from "~/helpers/utils/EffectiveURL" /** * Content processors for co...
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"...
50dcf8eb1b30e918
csharp
65
Monokai
๏ปฟ// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; using Microsoft.SemanticKernel.PromptTemplates.Handlebars; namespace PromptTemplates; public sealed class ChatLoopWithPrompt(ITestOutputHelper output) : BaseTest(output) { /// <summary...
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" ...
2526b512e3219e86
typescript
45
Solarized Light
"use client" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, } from "@/examples/base/ui/sidebar" import { LifeBuoyIcon, SendIcon } from "lucide-react" export default function AppSidebar() { re...
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" ...
28c5d403f62cbb31
csharp
40
Monokai
๏ปฟnamespace winPEAS._3rdParty.BouncyCastle.asn1 { public class BerBitString : DerBitString { public BerBitString(byte[] data, int padBits) : base(data, padBits) { } public BerBitString(byte[] data) : base(data) { } public Be...
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...
c05de1b00c1fc19f
rust
55
Default Dark+
use std::io::{Read, Write}; use entry::Entry; pub mod entry; mod error; pub mod layer; pub mod processor; pub use error::Error; pub struct TraceWriter<W: Write> { writer: W, receiver: tokio::sync::mpsc::UnboundedReceiver<Entry>, } pub struct Trace { receiver: tokio::sync::mpsc::UnboundedReceiver<Entry>...
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.", ...
f9a51cc7e61f9d1c
rust
27
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 OspConfig<'a> { pub format: &'a str, pub symbol: &'a str, pub style: &'a str, pub ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
8a30a4244decae26
cpp
78
One Dark Pro
/****************************************************************************** ** Filename: MergeNF.c ** Purpose: Program for merging similar nano-feature protos ** Author: Dan Johnson ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License, Version 2.0 (the "License"); ...
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...
558a26c56af858b7
cpp
67
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"...
b43acc91e7f30334
typescript
26
Dracula
import type { ObjectHook, MinimalPluginContext as RolldownMinimalPluginContext, Plugin as RolldownPlugin, } from 'rolldown' export type NonNeverKeys<T> = { [K in keyof T]: T[K] extends never ? never : K }[keyof T] export type GetHookContextMap<Plugin> = { [K in keyof Plugin]-?: Plugin[K] extends ObjectHook<...
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.", ...
06797a90fe86c647
csharp
91
Monokai
๏ปฟ// Copyright (c) Microsoft. All rights reserved. using System; using System.Text; using System.Text.Json; using OpenAI.Chat; namespace Microsoft.SemanticKernel.Connectors.OpenAI; /// <summary> /// Helper class to build <see cref="ChatResponseFormat"/> object. /// </summary> internal static class OpenAIChatResponseF...
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"...
b3659861c69ec4d4
java
86
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...
be8bde57412a84a6
cpp
167
One Dark Pro
#include "models.h" llm_build_t5_dec::llm_build_t5_dec(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { const int64_t n_embd_head = hparams.n_embd_head_v(); //const int64_t n_embd_gqa = hparams.n_embd_v_gqa(); GGML_ASSERT(n_embd_head == hparams.n_embd_head_k()); ...
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...
daced1dac1ca9541
typescript
27
Default Dark+
import type { ResumesCommentVote, ResumesSection } from '@prisma/client'; /** * Returned by `resumeCommentsRouter` (query for 'resumes.comments.list') and received as prop by `Comment` in `CommentsList` * frontend-friendly representation of the query */ export type ResumeComment = Readonly<{ children: Array<Resum...
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.", ...
a7f158d6be40f8ce
java
164
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.", ...
ec0cbe13b0f4f1b4
typescript
147
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import os from 'node:os'; import { describe, expect, it, vi } from 'vitest'; import { NoopSandboxManager, LocalSandboxManager, createSandboxManager, } from './sandboxManager.js'; import { LinuxSandboxManager } from '../sandbo...
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.", ...
1ef75ed4fa0eb924
go
104
Solarized Dark
// Copyright 2018 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...
a36268c55f9ed39f
java
50
GitHub Dark
package org.jeecg.common.api.dto.message; import lombok.Data; import java.io.Serializable; import java.util.Map; /** * ๆจกๆฟๆถˆๆฏ * @author: jeecg-boot */ @Data public class TemplateMessageDTO extends TemplateDTO implements Serializable { private static final long serialVersionUID = 411137565170647585L; /** ...
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" ...
a68cc5e33e000e97
go
29
Default Dark+
package metrics import ( "strings" "testing" ) func TestSanitizeMethod(t *testing.T) { tests := []struct { method string expected string }{ {method: "get", expected: "GET"}, {method: "POST", expected: "POST"}, {method: "OPTIONS", expected: "OPTIONS"}, {method: "connect", expected: "CONNECT"}, {met...
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...
ec15712f84cd56e6
rust
92
One Dark Pro
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use vmm::cpu_config::templates::CustomCpuTemplate; use vmm::logger::{IncMetric, METRICS}; use vmm::rpc_interface::VmmAction; use super::super::parsed_request::{ParsedRequest, RequestError}; use super::Bod...
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...
5b59bdfaaada22c4
java
67
Solarized Dark
/* * Copyright 2012-2019 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
7c329edc3dff1c83
rust
302
Default Dark+
use std::cmp::Reverse; use std::collections::BinaryHeap; use std::ops::ControlFlow; use heed::Result; use roaring::RoaringBitmap; use super::{get_first_facet_value, get_highest_level}; use crate::heed_codec::facet::{ FacetGroupKey, FacetGroupKeyCodec, FacetGroupLazyValueCodec, FacetGroupValueCodec, }; use crate::...
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...
adb9e6c17479df14
cpp
257
Solarized Light
#include "UpdateChecker.h" #include <QMessageBox> #include <QIcon> #include <QDateTime> #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include <Gui/ReleaseNotesDialog.h> #include "StringUtil.h" #include "MiscUtil.h" #ifdef _WIN32 #include <windows.h> #include <Wininet.h> #include <functional> ...
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"...
d7850330ea8cdeff
csharp
244
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...
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.", ...
22fe9a2c10ec4804
java
32
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"...
cc4cb6f4d8309f0f
java
296
GitHub Dark
package com.github.mikephil.charting.data; import android.graphics.Paint; import com.github.mikephil.charting.interfaces.datasets.ICandleDataSet; import com.github.mikephil.charting.utils.ColorTemplate; import com.github.mikephil.charting.utils.Utils; import java.util.ArrayList; import java.util.List; /** * DataS...
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...
0c1d749a26ab8705
java
324
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
ec2540925318e381
java
44
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...
a32967e98b86d528
java
72
Solarized Dark
/** * When a number is expressed in decimal, the k-th digit represents a multiple of 10k. (Digits are numbered * from right to left, where the least significant digit is number 0.) For example, * 8130710 = 8 ร— 104 + 1 ร— 103 + 3 ร— 102 + 0 ร— 101 + 7 ร— 100 = 80000 + 1000 + 300 + 0 + 7 = 81307. * When a number is expre...
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...
319a1d1cfd876f29
rust
90
One Dark Pro
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. //! Implements virtio...
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...
d85f48d9c78e3681
cpp
145
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2011 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
112abe6861b5be87
typescript
24
Solarized Light
import { Badge } from "@/examples/base/ui/badge" export function BadgeCustomColors() { return ( <div className="flex flex-wrap gap-2"> <Badge className="bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300"> Blue </Badge> <Badge className="bg-green-50 text-green-700 dark:bg-gree...
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...
e617181080111b1a
csharp
63
Monokai
๏ปฟusing System; namespace winPEAS._3rdParty.BouncyCastle.crypto.digests { /** * Wrapper removes exposure to the IMemoable interface on an IDigest implementation. */ public class NonMemoableDigest : IDigest { protected readonly IDigest mBaseDigest; /** * Base con...
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"...
137b045feb239bc0
typescript
42
Default Light+
import React, { useState } from "react"; import { t } from "../i18n"; import { useExcalidrawContainer } from "./App"; import { Dialog } from "./Dialog"; export const ErrorDialog = ({ children, onClose, }: { children?: React.ReactNode; onClose?: () => void; }) => { const [modalIsShown, setModalIsShown] = us...
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" ...
75e52e4cf681a3f7
cpp
52
One Dark Pro
#include <content/global_actions.hpp> #include <hex/ui/view.hpp> #include <hex/api/project_file_manager.hpp> #include <hex/helpers/logger.hpp> #include <toasts/toast_notification.hpp> #include <wolv/utils/string.hpp> namespace hex::plugin::builtin { void openProject() { fs::openFileBrowser(fs::DialogMo...
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" ...
7095ebc71964872a
java
21
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...
4aefd962aa7673c5
csharp
36
Monokai
๏ปฟ// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Linq; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; using ModelContextProtocol.Protocol; namespace MCPClient; /// <summary> /// Extension methods for <see cref="GetPromptResult"/>. /// </...
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...
3ed7e4a1bab7a941
javascript
72
Dracula
/** * @typedef {[number, string]} TestCase * @property {number} decimal * @property {string} binary */ /** * @type {TestCase[]} */ export const testCases16Bits = [ [-65504, '1111101111111111'], [-10344, '1111000100001101'], [-27.15625, '1100111011001010'], [-1, '1011110000000000'], [-0.09997558, '10101...
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"...
5cbf4ce20856c017
cpp
156
Dracula
/** * Copyright 2023-2024, XGBoost Contributors */ #include "allgather.h" #include <algorithm> // for min, copy_n, fill_n #include <cstddef> // for size_t #include <cstdint> // for int8_t, int32_t, int64_t #include <memory> // for shared_ptr #include <utility> // for move #include "broadcast.h" #inclu...
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.", ...
a24e751ce0c35a86
cpp
99
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
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...
a632f08f2645f47f
go
179
Default Light+
package net //no http range // import ( "bytes" "context" "fmt" "io" "net/http" "sync" "testing" "github.com/alist-org/alist/v3/pkg/http_range" "github.com/sirupsen/logrus" "golang.org/x/exp/slices" ) var buf22MB = make([]byte, 1024*1024*22) func dummyHttpRequest(data []byte, p http_range.Range) io.ReadC...
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...
74f6ef043ceef395
javascript
91
GitHub Dark
'use strict'; import utils from '../utils.js'; class AxiosError extends Error { static from(error, code, config, request, response, customProps) { const axiosError = new AxiosError(error.message, code || error.code, config, request, response); axiosError.cause = error; axiosError.name = error.name; ...
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...
1a84ae7ec945c9d9
python
20
Monokai
# Copyright (c) Microsoft. All rights reserved. import logging from dataclasses import dataclass from semantic_kernel.contents.streaming_chat_message_content import StreamingChatMessageContent from semantic_kernel.utils.feature_stage_decorator import experimental logger: logging.Logger = logging.getLogger(__name__) ...
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.", ...
29f404b98c3b1e06
cpp
36
Solarized Dark
#ifndef OPENPOSE_NET_NET_CAFFE_HPP #define OPENPOSE_NET_NET_CAFFE_HPP #include <openpose/core/common.hpp> #include <openpose/net/net.hpp> namespace op { class OP_API NetCaffe : public Net { public: NetCaffe(const std::string& caffeProto, const std::string& caffeTrainedModel, const int gpuId = 0, ...
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...
e5f09590424c1adc
csharp
75
One Dark Pro
๏ปฟ#region License Information (GPL v3) /* ShareX - A program that allows you to take screenshots and share any file type Copyright (c) 2007-2026 ShareX Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
2cabd7224d757793
cpp
94
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: params_model.h // Description: Trained feature serialization for language parameter training. // Author: David Eger // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you...
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...
95427193d8b75c6f
cpp
64
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
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" ...
68f2c64967e7be0e
csharp
156
Default Light+
#nullable enable // Copyright (c) 2017 Daniel Grunwald // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify...
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...
abf5c7a1a84729dc
python
82
Solarized Light
""" The sum-of-subsets problem states that a set of non-negative integers, and a value M, determine all possible subsets of the given set whose summation sum equal to given M. Summation of the chosen numbers must be equal to given number M and one number can be used only once. """ def generate_sum_of_subsets_solutio...
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...
328644bd1d819edf
python
162
Solarized Light
# Implementation of Circular Queue using linked lists # https://en.wikipedia.org/wiki/Circular_buffer from __future__ import annotations from typing import Any class CircularQueueLinkedList: """ Circular FIFO list with the given capacity (default queue length : 6) >>> cq = CircularQueueLinkedList(2) ...
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...
b8544f3b211c4a88
go
47
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...
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...
be44b44494829595
rust
405
Default Dark+
/** Implements a "PathVisitor" which finds all paths of a certain cost from the START to END node of a ranking rule graph. A path is a list of conditions. A condition is the data associated with an edge, given by the ranking rule. Some edges don't have a condition associated with them, they are "unconditional". These ...
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...
48b01a6f0a51c73b
typescript
21
Solarized Light
import fs from "fs" import path from "path" import { faker } from "@faker-js/faker" import { labels, priorities, statuses } from "./data" const tasks = Array.from({ length: 100 }, () => ({ id: `TASK-${faker.number.int({ min: 1000, max: 9999 })}`, title: faker.hacker.phrase().replace(/^./, (letter) => letter.toUpp...
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"...
0045a294a511cd64
typescript
47
Solarized Light
import { AppSidebar } from "@/registry/new-york-v4/blocks/sidebar-14/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" import { SidebarInset, SidebarProvider, SidebarTrigger, }...
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...
9d5803e8a5159591
go
108
Default Light+
package bitqiu import "encoding/json" type Response[T any] struct { Code string `json:"code"` Message string `json:"message"` Data T `json:"data"` } type LoginData struct { UserID int64 `json:"userId"` } type ResourcePage struct { CurrentPage int `json:"currentPage"` PageSize int ...
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...
823ca0f04073e163
java
96
Default Light+
package com.thealgorithms.dynamicprogramming; /** * Class to find the maximum sum of non-adjacent elements in an array. This * class contains two approaches: one with O(n) space complexity and another * with O(1) space optimization. For more information, refer to * https://takeuforward.org/data-structure/maximum-s...
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...
e28cbff31b71f136
typescript
212
Solarized Dark
import { DndContext, closestCenter, PointerSensor, useSensor, useSensors, DragEndEvent, DragOverlay, } from '@dnd-kit/core' import { SortableContext } from '@dnd-kit/sortable' import { Add, NetworkCheck } from '@mui/icons-material' import { Box, IconButton, Tooltip, alpha, styled, Grid } from '@mui/materi...
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.", ...
a2656dbe07bdbe10
csharp
137
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
a830ef10bd83e05d
java
81
GitHub Dark
package org.jeecg.modules.system.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Dat...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
37c642648e8286c8
cpp
291
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. //---------------------------------------------------------------------------- // File trans.c // Copyright (C) 1995-96 Microsoft // Date 01-16-95 // // // Description // // Contains sin, co...
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" ...
0196cdbdf93800a9
csharp
78
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...