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
e8a93aa8fd559c4d
java
40
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...
a77b98fe8c7a59db
go
353
Default Light+
package anthropic import ( "encoding/json" "fmt" "sort" "github.com/ollama/ollama/api" ) // Trace truncation limits. const ( TraceMaxStringRunes = 240 TraceMaxSliceItems = 8 TraceMaxMapEntries = 16 TraceMaxDepth = 4 ) // TraceTruncateString shortens s to TraceMaxStringRunes, appending a count of // ...
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...
d46fd640d9985be1
go
31
Default Light+
package setting import ( "strconv" "github.com/alist-org/alist/v3/internal/op" ) func GetStr(key string, defaultValue ...string) string { val, _ := op.GetSettingItemByKey(key) if val == nil { if len(defaultValue) > 0 { return defaultValue[0] } return "" } return val.Value } func GetInt(key string, de...
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...
210ba391cf504989
csharp
41
Monokai
// Copyright (c) Microsoft. All rights reserved. #if NET using System; using System.Globalization; using System.Text.Json; using System.Text.Json.Serialization; namespace Microsoft.SemanticKernel.Connectors.Weaviate; /// <summary> /// Converts <see cref="DateOnly"/> to RFC 3339 formatted string for Weaviate. /// D...
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...
0381faaf2e09a372
csharp
32
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text.Json.Serialization; namespace Microsoft.SemanticKernel.Connectors.Amazon.Core; /// <summary> /// Anthropic Claude completion response. /// </summary> internal class ClaudeResponse { /// <summary> /// The resulting completion up to and exclud...
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.", ...
cada31506a339359
javascript
46
Dracula
/** * @param {Graph} graph * @param {GraphVertex} startVertex * @return {{distances, previousVertices}} */ export default function bellmanFord(graph, startVertex) { const distances = {}; const previousVertices = {}; // Init all distances with infinity assuming that currently we can't reach // any of the ve...
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"...
10d46b8ac8b05c73
csharp
41
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
6edb90196cd74cc1
csharp
50
Default Light+
using NimblePros.SampleToDo.Core.ContributorAggregate; using NimblePros.SampleToDo.UseCases.Contributors.Queries.Get; using NimblePros.SampleToDo.Web.Extensions; namespace NimblePros.SampleToDo.Web.Contributors; public class GetById(IMediator mediator) : Endpoint<GetContributorByIdRequest, Results<Ok<...
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...
320012eb8edb68d4
java
73
GitHub Dark
package org.jeecg.common.online.api; import com.alibaba.fastjson.JSONObject; import org.jeecg.common.system.vo.DictModel; import java.util.List; import java.util.Map; /** * 表单设计器【Online】翻译API接口 * * @author sunjianlei */ public interface IOnlineBaseExtApi { /** * 【Online】 表单设计器专用:同步新增 * @param tabl...
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" ...
57f595aa0a206c4d
cpp
393
Default Light+
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
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...
73531f81285f1b93
csharp
56
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Threading.Tasks; namespace Microsoft.SemanticKernel; /// <summary> /// Provides step related functionality for Kernel Functions running in a step. /// </summary> public sealed class KernelProcessStepContext { private readonly IKernelProcessMessageCha...
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...
7427a5c828a099b2
java
23
Dracula
package com.macro.mall.demo.validator; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.*; /** * 用户验证状态是否在指定范围内的注解 */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD,ElementType.PARAMETER}) @Constraint(validatedBy = FlagValidatorClass.class)...
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...
54de5fbe35318d4a
python
376
Monokai
# Copyright (c) Microsoft. All rights reserved. import sys from collections.abc import AsyncGenerator, AsyncIterable, Callable from typing import TYPE_CHECKING, Any, ClassVar import vertexai from pydantic import ValidationError from typing_extensions import deprecated from vertexai.generative_models import Candidate,...
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" ...
82b48757acda05f6
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 ...
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...
d7c5852e9c24498b
csharp
101
Monokai
using System.Runtime.InteropServices; namespace ScreenToGif.Util; public static class NetworkHelper { [ComImport, Guid("DCB00C01-570F-4A9B-8D69-199FDBA5723B"), ClassInterface(ClassInterfaceType.None)] private class NetworkListManager { } [ComImport, Guid("DCB00008-570F-4A9B-8D69-199FDBA5723B"), Interface...
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"...
67f16f9c5360647e
javascript
39
Default Dark+
const { checkLogin } = require("../util-server"); const { UptimeCalculator } = require("../uptime-calculator"); const { log } = require("../../src/util"); module.exports.chartSocketHandler = (socket) => { socket.on("getMonitorChartData", async (monitorID, period, callback) => { try { checkLogin...
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...
cfef12e384c43838
java
85
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"...
ba99412389cd059a
python
40
Default Light+
from .common import InfoExtractor class Canal1IE(InfoExtractor): _VALID_URL = r'https?://(?:www\.|noticias\.)?canal1\.com\.co/(?:[^?#&])+/(?P<id>[\w-]+)' _TESTS = [{ 'url': 'https://canal1.com.co/noticias/napa-i-una-cadena-de-produccion-de-arroz-que-se-quedo-en-veremos-y-abandonada-en-el-departamento...
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.", ...
0f37af186b9b8bff
csharp
98
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...
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" ...
f789e818ed7d4005
csharp
76
Default Light+
using NimblePros.SampleToDo.Core.ContributorAggregate; using NimblePros.SampleToDo.Core.ProjectAggregate; using NimblePros.SampleToDo.Infrastructure.Data; namespace NimblePros.SampleToDo.Web; public static class SeedData { public static readonly Contributor Contributor1 = new(ContributorName.From("Ardalis")); pu...
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...
f06b34832ca74c9e
typescript
79
One Dark Pro
import { HoppModule } from "." import { ref, onMounted } from "vue" import { usePwaPrompt } from "@composables/pwa" import { registerSW } from "virtual:pwa-register" export type HoppPWARegistrationStatus = | { status: "NOT_INSTALLED" } | { status: "INSTALLED"; registration: ServiceWorkerRegistration | undefined } ...
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...
e1574b35711bc923
javascript
119
Default Dark+
// @ts-check import { MissingParamError } from "../common/error.js"; import { request } from "../common/http.js"; import { retryer } from "../common/retryer.js"; /** * Repo data fetcher. * * @param {object} variables Fetcher variables. * @param {string} token GitHub token. * @returns {Promise<import('axios').Axi...
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"...
a1eb566cbd21ab89
go
46
Default Light+
package fs import ( "context" "path" "path/filepath" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/internal/op" ) // WalkFS traverses filesystem fs starting at name up to depth levels. // // WalkFS will stop when current depth > `depth`. For each visited node, // WalkFS calls wal...
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.", ...
d992664302e1d960
go
352
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...
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"...
85013c311ce0f29a
typescript
83
Solarized Light
import { ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuTrigger, } from "@/examples/radix/ui/context-menu" export function ContextMenuSides() { return ( <div className="grid w-full max-w-sm grid-cols-2 gap-4"> <ContextMenu> <ContextMenuTrigger className="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...
b02ecb03d79dc330
rust
438
Default Dark+
use std::collections::{BTreeMap, HashMap}; use std::fmt::Display; use std::io::Read as _; use std::sync::Arc; use anyhow::{bail, Context as _}; use reqwest::StatusCode; use serde::{Deserialize, Serialize}; use serde_json::Value; use similar_asserts::SimpleDiff; use crate::common::assets::{fetch_asset, Asset}; use cra...
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...
af2ae3d26e4600ae
cpp
69
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...
f0b4280b25eba1df
java
118
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...
00283113632e0c42
cpp
56
Solarized Light
#include <Windows.h> #include <stdio.h> static wchar_t szLibraryPath[512]; extern "C" NTSTATUS NTAPI RtlGetLastNtStatus( VOID ); int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) { wchar_t szTemp[256]; swprintf_s(szTemp, L"Local\\...
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"...
500101e5348c849a
rust
165
Default Dark+
use std::fs::File; use std::io::BufReader; use std::{iter, mem}; use grenad::CompressionType; use heed::types::{Bytes, LazyDecode}; use heed::{Database, RwTxn}; use rayon::prelude::*; use roaring::MultiOps; use tempfile::tempfile; use crate::facet::FacetType; use crate::heed_codec::facet::{FacetGroupKey, FacetGroupKe...
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...
7a5519076af42e18
csharp
114
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using Azure.AI.Agents.Persistent; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents.AzureAI; using Microsoft.SemanticKernel.Agents.AzureAI.Internal; using Microsoft.SemanticKernel.ChatCompletion; using Xunit; namespace SemanticKernel.A...
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.", ...
2d4a9aec42b45c20
python
25
Monokai
# Copyright (c) Microsoft. All rights reserved. from typing import Any from semantic_kernel.functions import kernel_function from semantic_kernel.processes.kernel_process import ( KernelProcessEventVisibility, KernelProcessStep, KernelProcessStepContext, ) class ExternalStep(KernelProcessStep): ext...
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...
8db15943892316ba
java
31
GitHub Dark
package org.jeecg.modules.system.vo; import java.io.Serializable; import java.util.List; import lombok.Data; /** * @Description: 系统部门VO * @author: jeecg-boot */ @Data public class SysDepartUsersVO implements Serializable{ private static final long serialVersionUID = 1L; /**部门id*/ private String depId; /**对应...
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...
5f29fd955eb10e9e
typescript
57
Solarized Light
"use client" import { Check, Clipboard } from "lucide-react" import { toast } from "sonner" import { type Color } from "@/lib/colors" import { trackEvent } from "@/lib/events" import { useColors } from "@/hooks/use-colors" import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard" export function Color({ col...
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...
81ae7b938cc34aa1
csharp
68
Default Light+
// Copyright (c) 2010-2021 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...
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"...
f9c10d86d7cbd557
cpp
144
One Dark Pro
#include "models.h" llm_build_bailingmoe::llm_build_bailingmoe(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { ggml_tensor * cur; ggml_tensor * inpL; inpL = build_inp_embd(model.tok_embd); // inp_pos - contains the positions ggml_tensor * inp_pos = build_...
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...
c44b700f5954a0d7
go
71
Default Light+
//go:build windows || darwin package logrotate import ( "os" "path/filepath" "strconv" "testing" ) func TestRotate(t *testing.T) { logDir := t.TempDir() logFile := filepath.Join(logDir, "testlog.log") // No log exists Rotate(logFile) if err := os.WriteFile(logFile, []byte("1"), 0o644); err != nil { t.Fa...
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...
e657a5631450144d
typescript
357
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { mapToDisplay } from './toolMapping.js'; import { type AnyDeclarativeTool, type AnyToolInvocation, type ToolCallRequestInfo, type ToolCallResponseInfo, ...
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" ...
b17f34402c14d3bd
csharp
38
Monokai
using System.IO; using System.Windows.Data; using ScreenToGif.Util.Extensions; namespace ScreenToGif.Util.Converters; /// <summary> /// URI to BitmapImage converter. /// </summary> public class UriToBitmap : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalizat...
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" ...
95e60e4d77205fe9
python
100
Monokai
# Copyright (c) Microsoft. All rights reserved. import io import logging import wave from typing import ClassVar import pyaudio from pydantic import BaseModel from semantic_kernel.contents import AudioContent logging.basicConfig(level=logging.WARNING) logger: logging.Logger = logging.getLogger(__name__) class Aud...
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" ...
962db6094be6082a
cpp
81
Solarized Dark
#ifndef OPENPOSE_POSE_POSE_EXTRACTOR_NET_HPP #define OPENPOSE_POSE_POSE_EXTRACTOR_NET_HPP #include <atomic> #include <openpose/core/common.hpp> #include <openpose/core/enumClasses.hpp> #include <openpose/pose/poseParameters.hpp> namespace op { class OP_API PoseExtractorNet { public: PoseExtractorN...
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" ...
f4ea9376c8df6ff7
csharp
29
Default Light+
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using MinimalClean.Architecture.Web.Domain.CartAggregate; namespace MinimalClean.Architecture.Web.Infrastructure.Data.Config; public class CartItemConfiguration : IEntityTypeConfiguration<CartItem> { public void Configure(En...
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...
af11e561fad76357
python
33
Dracula
from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str | None = None description: str | None = None price: float | None = None tax: float = 10.5 tags: list[str] = [] items = { "foo": {"name": ...
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"...
2bacd0507e0bae20
typescript
198
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useStdin } from 'ink'; import type React from 'react'; import { createContext, useCallback, useContext, useEffect, useRef, } from 'react'; import { ESC } from '../utils/input.js'; import { debugLogger } from '@go...
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...
1244711a8c4a921d
cpp
47
Monokai
/* * aria2 - The high speed download utility * * Copyright (C) 2010 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your o...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
4d9b3d1bbfa097c3
csharp
115
Default Light+
// Copyright (c) 2024 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...
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...
5cafd58f7cceecd7
typescript
34
GitHub Dark
/** * Global authority directive * Used for fine-grained control of component permissions * @Example v-auth="RoleEnum.TEST" */ import type { App, Directive, DirectiveBinding } from 'vue'; import { usePermission } from '/@/hooks/web/usePermission'; function isAuth(el: Element, binding: any) { // update-begin--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...
489f9a7f06c38133
python
32
Dracula
from collections.abc import AsyncIterable from typing import Annotated from fastapi import FastAPI, Header from fastapi.sse import EventSourceResponse, ServerSentEvent from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float items = [ Item(name="Plumbus", price=32.9...
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"...
904cd24242994eab
csharp
237
One Dark Pro
namespace ShareX.MediaLib { partial class ImageThumbnailerForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </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...
e40510b5659425a2
csharp
67
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 ...
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...
0b8ad1a6d776ae08
typescript
162
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { parseSGRMouseEvent, parseX11MouseEvent, isIncompleteMouseSequence, parseMouseEvent, } from './mouse.js'; import { ESC } from './input.js'; describe('mouse utils', () ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
e50ce50d83cdd527
typescript
291
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { GoogleGenAI, type CountTokensResponse, type GenerateContentResponse, type GenerateContentParameters, type CountTokensParameters, type EmbedContentResponse, type EmbedContentParameters, } from '@google/genai';...
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"...
f4d952420eedc7fa
cpp
178
One Dark Pro
/* * * Copyright (c) 2003 * John Maddock * * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) * */ /* * LOCATION: see http://www.boost.org for most recent version. ...
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...
241e177fef362063
go
34
Solarized Dark
// Copyright 2023 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
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...
907dfd659982f17d
java
60
Default Light+
package com.thealgorithms.datastructures.trees; import com.thealgorithms.datastructures.trees.BinaryTree.Node; /** * Check if a binary tree is symmetric or not. * A binary tree is a symmetric tree if the left and right subtree of root are mirror image. * Below is a symmetric tree * 1...
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.", ...
9f7cdb887a627a38
typescript
52
Solarized Light
"use client" import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card" import { cn } from "@/registry/bases/base/lib/utils" function HoverCard({ ...props }: PreviewCardPrimitive.Root.Props) { return <PreviewCardPrimitive.Root data-slot="hover-card" {...props} /> } function HoverCardTrigger...
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...
91b56080c8fb12d3
java
92
GitHub Dark
package org.jeecg.modules.system.vo; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.jeecg.common.aspect.annotation.Dict; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.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...
82c1cd98e9fab3f6
rust
165
GitHub Dark
//! Provides functions to calculate the Levenshtein distance between two strings. //! //! The Levenshtein distance is a measure of the similarity between two strings by calculating the minimum number of single-character //! edits (insertions, deletions, or substitutions) required to change one string into the other. u...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
3af61d4b7b7aa53d
java
30
Dracula
package com.macro.mall.mapper; import com.macro.mall.model.SmsCouponHistory; import com.macro.mall.model.SmsCouponHistoryExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface SmsCouponHistoryMapper { long countByExample(SmsCouponHistoryExample example); int deleteByExam...
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...
9ca270a4c68e670a
typescript
334
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as child_process from 'node:child_process'; import * as process from 'node:process'; import * as path from 'node:path'; import * as fs from 'node:fs'; import { IDE_DEFINITIONS, type IdeInfo } from './detect-ide.js'; import...
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"...
0187e52d5ea60b18
typescript
34
GitHub Dark
import type { Ref } from 'vue'; import type { BasicTableProps, TableActionType } from '../types/table'; import { provide, inject, ComputedRef } from 'vue'; // 为每个表格实例创建唯一的 Symbol key,避免父子组件或同级组件间的 context 冲突 // Vue 的 provide/inject 是按组件树传递的,使用唯一 Symbol 可以确保每个 BasicTable 实例独立 let tableIdCounter = 0; type Instance = Ta...
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.", ...
45b94595f3c6ef8e
typescript
228
Solarized Light
"use client" import { useMemo } from "react" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/registry/bases/radix/lib/utils" import { Label } from "@/registry/bases/radix/ui/label" import { Separator } from "@/registry/bases/radix/ui/separator" function FieldSet({ className, ....
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"...
1abd733af7e39aa4
rust
35
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 ElmConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str,...
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...
f35f62cacc814d20
cpp
80
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2012 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
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...
fd5d7ccd52f8c0c1
cpp
281
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: indexmapbidi.cpp // Description: Bi-directional mapping between a sparse and compact space. // Author: rays@google.com (Ray Smith) // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (the "Li...
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.", ...
edb71ccbdb2c5aa8
csharp
110
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Threading.Tasks; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.Chat; using Xunit; namespace SemanticKernel.Agents.UnitTests.Core.Chat; /// <summary> /// Unit testing of <see cref="SequentialSe...
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.", ...
e3b2e1d69d3a7f2f
java
22
GitHub Dark
package org.jeecg.modules.openapi.swagger; import lombok.Data; import java.util.List; import java.util.Map; /** * @date 2025/1/26 11:05 */ @Data public class SwaggerModel { private String swagger; private SwaggerInfo info; private String host; private String basePath; private List<SwaggerTag> 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.", ...
c132c6c2d9624ed7
csharp
145
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.", ...
25c3dea47d9b79ed
java
42
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
04c02f6073de048f
python
108
Default Light+
from .brightcove import BrightcoveNewIE from .common import InfoExtractor from ..utils import ExtractorError, traverse_obj class OneNewsNZIE(InfoExtractor): IE_NAME = '1News' IE_DESC = '1news.co.nz article videos' _VALID_URL = r'https?://(?:www\.)?(?:1|one)news\.co\.nz/\d+/\d+/\d+/(?P<id>[^/?#&]+)' _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" ...
4cd885358e22b35c
csharp
119
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.OpenAI; using Xunit; namespace SemanticKernel.Agents.UnitTests.OpenAI.Extensions; /// <summary> /// Unit tests for YamlAgentDefinitionExtensions /// </summar...
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...
59ec27d01506270b
go
410
Default Light+
package _189pc import ( "context" "fmt" "net/http" "strconv" "strings" "time" "github.com/alist-org/alist/v3/drivers/base" "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/errs" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/pkg/utils" ...
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...
baf2bdaf8d3ed4f8
csharp
48
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using Microsoft.SemanticKernel.Connectors.MistralAI; using Xunit; namespace SemanticKernel.IntegrationTests.Connectors.MistralAI; /// <summary> /// Integration 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.", ...
ca4e30c96d87adba
typescript
67
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { render } from '../../test-utils/render.js'; import { ApprovalModeIndicator } from './ApprovalModeIndicator.js'; import { describe, it, expect } from 'vitest'; import { ApprovalMode } from '@google/gemini-cli-core'; descri...
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...
7295b8e52e7c3730
python
423
Monokai
# Copyright (c) Microsoft. All rights reserved. import contextlib import logging import sys import uuid from inspect import isawaitable from azure.core.credentials import AzureKeyCredential, TokenCredential from azure.core.exceptions import ResourceNotFoundError from azure.search.documents.indexes.aio import SearchIn...
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...
54936afa3d0e91c5
typescript
49
Solarized Light
import { Button } from "@/examples/radix/ui/button" import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/examples/radix/ui/dialog" export function DialogStickyFooter() { return ( <Dialog> <DialogTrigger asChild> ...
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" ...
119a75912e1f8be7
rust
225
GitHub Dark
use std::ops::{Add, Mul, MulAssign, Sub}; // f64 complex #[derive(Clone, Copy, Debug)] pub struct Complex64 { pub re: f64, pub im: f64, } impl Complex64 { #[inline] pub fn new(re: f64, im: f64) -> Self { Self { re, im } } #[inline] pub fn square_norm(&self) -> f64 { self.r...
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.", ...
d682d4c886b8f5fe
typescript
68
Solarized Light
"use client" import { useState } from "react" import { Field, FieldDescription, FieldTitle, } from "@/examples/base/ui-rtl/field" import { Slider } from "@/examples/base/ui-rtl/slider" import { useLanguageContext } from "@/components/language-selector" const translations = { ar: { dir: "rtl" as const, ...
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...
041dc0f71e04933d
csharp
194
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...
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" ...
75d344e429749f52
java
155
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
05628d09e5801929
go
187
Default Light+
package _189 import ( "bytes" "crypto/aes" "crypto/hmac" "crypto/md5" "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/x509" "encoding/base64" "encoding/hex" "encoding/pem" "fmt" "net/url" "regexp" "strconv" "strings" myrand "github.com/alist-org/alist/v3/pkg/utils/random" log "github.com/sirupsen/l...
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"...
4d27b82603a5e795
rust
110
GitHub Dark
use std::f64::consts::PI; const EARTH_RADIUS: f64 = 6371000.0; pub fn rhumb_dist(lat1: f64, long1: f64, lat2: f64, long2: f64) -> f64 { let phi1 = lat1 * PI / 180.00; let phi2 = lat2 * PI / 180.00; let del_phi = phi2 - phi1; let mut del_lambda = (long2 - long1) * PI / 180.00; if del_lambda > PI {...
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"...
4fb0bad4566a7203
java
169
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
8a699001bae77bb7
csharp
120
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Net.Http.Headers; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Memory; namespace Agents; #pragma warning disable SKEXP0130 // Type is for evaluation purposes only and is subject to change or remova...
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"...
fd969ce1a93b2a77
java
43
Dracula
package com.macro.mall.service; import com.macro.mall.dto.PmsProductAttributeCategoryItem; import com.macro.mall.model.PmsProductAttributeCategory; import java.util.List; /** * 商品属性分类管理Service * Created by macro on 2018/4/26. */ public interface PmsProductAttributeCategoryService { /** * 创建属性分类 */ ...
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...
6023e0d7dad1a5b1
javascript
38
GitHub Dark
//判断是否IE<11浏览器 export function isIE() { return navigator.userAgent.indexOf('compatible') > -1 && navigator.userAgent.indexOf('MSIE') > -1; } export function isIE11() { return navigator.userAgent.indexOf('Trident') > -1 && navigator.userAgent.indexOf('rv:11.0') > -1; } //判断是否IE的Edge浏览器 export function isEdge() { ...
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...
ad1b1f5266fccf44
csharp
282
One Dark Pro
namespace ShareX.MediaLib { partial class VideoConverterForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </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...
0ee2cd5bc2a97402
cpp
116
Dracula
/** * Copyright 2024, XGBoost Contributors */ #pragma once #include <cstdint> // for int32_t #include <memory> // for shared_ptr #include <vector> // for vector #include "proxy_dmatrix.h" // for DataIterProxy #include "xgboost/data.h" // for DMatrix, BatchIterator, SparsePage #include "xgboost/span.h" // f...
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.", ...
a052457dda923ab0
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...
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...
4bc09b292a30455c
csharp
431
Default Light+
// Copyright (c) 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, copy, mo...
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" ...
afbb88d80e2ade97
python
302
Default Light+
import base64 import re import urllib.parse from .common import InfoExtractor from ..utils import ( int_or_none, parse_duration, parse_iso8601, str_or_none, str_to_int, try_get, unified_timestamp, url_or_none, ) class FourTubeBaseIE(InfoExtractor): def _extract_formats(self, url, ...
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.", ...
cb51523c682b8dc5
python
60
Default Light+
from __future__ import annotations import pathlib import shlex import subprocess import tempfile from yt_dlp.extractor.youtube.jsc._builtin.ejs import EJSBaseJCP from yt_dlp.extractor.youtube.jsc.provider import ( JsChallengeProvider, JsChallengeProviderError, JsChallengeRequest, register_preference, ...
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" ...
c1a939e0ff36bfb4
typescript
66
Solarized Light
import { Response } from "express"; import { ErrorResponse, RequestWithAuth } from "./types"; import { supabase_rr_service } from "../../services/supabase"; interface CreditUsageHistoricalResponse { success: true; periods: { startDate: string | null; endDate: string | null; apiKey?: string; credits...
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...
f79a8e7af3098c7c
java
61
Default Light+
package com.thealgorithms.datastructures.queues; import java.util.ArrayList; import java.util.List; /** * This class implements a GenericArrayListQueue, a queue data structure that * holds elements of any type specified at runtime, allowing flexibility in the type * of elements it stores. * * <p>The GenericArray...
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"...
e69a6c5978c6f97b
python
39
Solarized Light
from collections.abc import Iterator def lexical_order(max_number: int) -> Iterator[int]: """ Generate numbers in lexical order from 1 to max_number. >>> " ".join(map(str, lexical_order(13))) '1 10 11 12 13 2 3 4 5 6 7 8 9' >>> list(lexical_order(1)) [1] >>> " ".join(map(str, lexical_orde...
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...
0f29c74fceffda2b
go
139
Default Light+
package utils import ( "net/url" stdpath "path" "strings" "github.com/alist-org/alist/v3/internal/errs" ) // FixAndCleanPath // The upper layer of the root directory is still the root directory. // So ".." And "." will be cleared // for example // 1. ".." or "." => "/" // 2. "../..." or "./..." => "/..." // 3. "...
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.", ...
f70ddba1eccad95d
rust
442
Default Dark+
use meili_snap::snapshot; use meilisearch_auth::AuthFilter; use meilisearch_types::index_uid_pattern::IndexUidPattern; use meilisearch_types::tasks::{IndexSwap, KindWithContent, Status}; use time::{Duration, OffsetDateTime}; use crate::insta_snapshot::{snapshot_bitmap, snapshot_index_scheduler}; use crate::test_utils:...
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...
99c58253c7b7c460
cpp
173
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: colpartitionset.h // Description: Class to hold a list of ColPartitions of the page that // correspond roughly to columns. // Author: Ray Smith // // (C) Copyright 2008, Google Inc. // Licensed under the Apache Lic...
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...
0ecfe4c3d26cad46
csharp
41
Monokai
using System.Runtime.InteropServices; using System.Windows; namespace ScreenToGif.Domain.Models.Native; [StructLayout(LayoutKind.Sequential)] public struct NativeRect { public int Left; // x position of upper-left corner public int Top; // y position of upper-left corner public int Right; ...
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...
a0309d8ba3d03aae
csharp
64
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Reflection; namespace Resources; /// <summary> /// Resource helper to load resources embedded in the assembly. By default we embed only /// text files, so the helper is limited to returning text. /// /// You can find information about embedded resources ...
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"...