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
7c9e54778ce8b049
csharp
49
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Text.Json; using System.Threading.Tasks; namespace Microsoft.SemanticKernel; internal sealed class ProcessStateManager { private readonly Type? _stateType; private object? _instance; public ProcessStateManager(Type? stateType, ...
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...
0074d5a5e8c57d44
python
101
Solarized Light
""" Finds the top K most frequent words from the provided word list. This implementation aims to show how to solve the problem using the Heap class already present in this repository. Computing order statistics is, in fact, a typical usage of heaps. This is mostly shown for educational purposes, since the problem can...
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.", ...
f2793c09b0de3f72
typescript
242
Solarized Light
"use client" import * as React from "react" import { cn } from "@/examples/base/lib/utils" import { Button } from "@/examples/base/ui-rtl/button" import useEmblaCarousel, { type UseEmblaCarouselType, } from "embla-carousel-react" import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react" type CarouselApi = Us...
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...
0c17771666267665
java
138
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...
08e0d585097b7812
javascript
34
Dracula
import { defineConfig } from 'vite' import baseConfig from './vite.config.js' /** see `ports` variable in test-utils.ts */ const port = 9525 export default defineConfig({ ...baseConfig, base: `http://localhost:${port}/`, server: { port, strictPort: true, }, build: { ...baseConfig.build, outD...
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"...
f389c134c6f104af
typescript
454
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { IDE_MAX_OPEN_FILES, IDE_MAX_SELECTED_TEXT_LENGTH, } from './constants.js'; import { describe, it, expect, beforeEach, vi, afterEach } from 'vitest'; import { IdeContextStore } from './ideContext.js'; import { type Id...
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...
8031974aa69c6391
typescript
132
Default Light+
import { useMemo, useEffect, useState } from "react"; import { isImageFile } from "@/utils/imageUtils"; export interface ImageData { filename: string; data: Uint8Array | number[] | string; type?: string; } interface ImageThumbnailProps { image: ImageData; className?: string; alt?: string; onError?: () =...
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" ...
742416a6a8828660
cpp
168
Monokai
// Formatting library for C++ - std::ostream support // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #ifndef FMT_OSTREAM_H_ #define FMT_OSTREAM_H_ #ifndef FMT_MODULE # include <fstream> // std::filebuf #endif #ifdef _WIN32 # ifdef _...
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...
cdce39274e506fcb
java
29
Solarized Dark
//Given two lists Aand B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A. //We want to find an index mapping P, from A to B. A mapping P[i] = j means the ith element in A appears in B at index j. //These lists A and B may contain duplicates. If there are mul...
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...
55ea891f2c9297dc
go
119
Default Light+
package netease_music import ( "context" "io" "net/http" "strconv" "strings" "time" "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/internal/sign" "github.com/alist-org/alist/v3/pkg/http_range" "github.com/alist-org/alist/v3/pkg/...
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...
ceeb55e71bd9e190
java
31
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
367be291f6ac61e0
javascript
79
Default Dark+
/* From https://github.com/DiegoZoracKy/image-data-uri/blob/master/lib/image-data-uri.js Modified with 0 dependencies */ let fs = require("fs"); const { log } = require("../src/util"); let ImageDataURI = (() => { /** * Decode the data:image/ URI * @param {string} dataURI data:image/ URI to decod...
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...
2850e0b4c2295cd8
python
219
Monokai
import logging from typing import Optional import torch import comfy.model_management from .base import WeightAdapterBase, weight_decompose class BOFTAdapter(WeightAdapterBase): name = "boft" def __init__(self, loaded_keys, weights): self.loaded_keys = loaded_keys self.weights = weights ...
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...
f7e6411452f600b1
java
73
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...
795e41a12555c54e
java
27
Solarized Dark
// You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken into...
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.", ...
f920be5fcded4f9f
go
57
Default Dark+
package binding import ( "fmt" "io" "net/http" "reflect" "github.com/gin-gonic/gin/internal/bytesconv" ) type plainBinding struct{} func (plainBinding) Name() string { return "plain" } func (plainBinding) Bind(req *http.Request, obj any) error { all, err := io.ReadAll(req.Body) if err != nil { return err...
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"...
264b2cd6278b46ea
csharp
445
One Dark Pro
namespace ShareX.MediaLib { partial class ImageBeautifierForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; #region Windows Form Designer generated code /// <summary> /// Requi...
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.", ...
55f14cc9091fcfe5
go
49
Default Light+
package tool import ( "path/filepath" "strings" "testing" ) func TestSecureJoin(t *testing.T) { baseDir := t.TempDir() tests := []struct { name string entry string wantErr bool }{ {name: "ok", entry: "a/b/c.txt", wantErr: false}, {name: "parent", entry: "../evil.txt", wantErr: true}, {name: "pa...
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"...
a46130d0a0f67e9d
javascript
120
Monokai
import effects from '../helpers/helpers.easing.js'; import {resolve} from '../helpers/helpers.options.js'; import {color as helpersColor} from '../helpers/helpers.color.js'; const transparent = 'transparent'; const interpolators = { boolean(from, to, factor) { return factor > 0.5 ? to : from; }, /** * @pa...
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...
ec9dff563a1dd237
cpp
34
Default Light+
#pragma once #include "ggml-metal-device.h" #ifdef __cplusplus extern "C" { #endif // // backend context // typedef struct ggml_metal * ggml_metal_t; ggml_metal_t ggml_metal_init(ggml_metal_device_t dev); void ggml_metal_free(ggml_metal_t ctx); void ggml_metal_synchronize(ggml_metal_t ctx); void ggml_metal_set_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" ...
f99dd9d67efd5a1a
cpp
127
Default Light+
#include "models.h" llm_build_mpt::llm_build_mpt(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); ggml_t...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
b3ca5d8084aeda13
python
39
Default Light+
# flake8: noqa: F401 import warnings from .common import ( HEADRequest, PATCHRequest, PUTRequest, Request, RequestDirector, RequestHandler, Response, ) # isort: split # TODO: all request handlers should be safely imported from . import _urllib from ..utils import bug_reports_message try: ...
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" ...
83d6415ec4e192fe
rust
400
One Dark Pro
use std::sync::Arc; use axum::{ body::Bytes, extract::{Path, State}, http::HeaderMap, Json, }; use axum_extra::{ headers::{authorization::Bearer, Authorization}, TypedHeader, }; use chrono::Utc; use rand::Rng; use serde_json::json; use tauri::{AppHandle, Emitter}; use uuid::Uuid; use x25519_dal...
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...
77cbf9f0f9854c68
go
22
Default Light+
package v3_41_0 import ( "github.com/alist-org/alist/v3/internal/op" "github.com/alist-org/alist/v3/pkg/utils" ) // GrantAdminPermissions gives admin Permission 0(can see hidden) - 9(webdav manage) and // 12(can read archives) - 13(can decompress archives) // This patch is written to help users upgrading from older...
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...
eb6dcb052817b251
typescript
163
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useEffect, useMemo } from 'react'; import { getAsciiArtWidth } from '../utils/textUtils.js'; import { debugState } from '../debug.js'; import { themeManager } from '../themes/theme-manager.js'; import { Holiday }...
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"...
61c5e079c6047b86
csharp
96
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // // CalculatorScientificAngleButtons.xaml.h // Declaration of the CalculatorScientificAngleButtons class // using CalculatorApp.Utils; using CalculatorApp.ViewModel; using CalculatorApp.ViewModel.Common; using Windows.U...
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...
47899e1f824f0112
typescript
161
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, type Mock } from 'vitest'; import readline from 'node:readline'; import process from 'node:process'; import { coreEvents } from './events.js'; import { getConsentForOauth } from './aut...
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...
edc13c4f528cccfd
cpp
36
Solarized Light
#include "HexValidator.h" #include <QObject> HexValidator::HexValidator(QObject* parent) : QValidator(parent) { } HexValidator::~HexValidator() { } static bool isXDigit(const QChar & c) { return c.isDigit() || (c.toUpper() >= 'A' && c.toUpper() <= 'F'); } void HexValidator::fixup(QString & input) const { fo...
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"...
235a522b6c407a95
cpp
51
One Dark Pro
#include <algorithm> #include <hex/api/event_manager.hpp> namespace hex { std::multimap<void *, EventManager::EventList::iterator>& EventManager::getTokenStore() { static std::multimap<void *, EventManager::EventList::iterator> tokenStore; return tokenStore; } EventManager::EventList& Ev...
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...
ea8452115ed557b9
python
58
Solarized Light
def to_title_case(word: str) -> str: """ Converts a string to capitalized case, preserving the input as is >>> to_title_case("Aakash") 'Aakash' >>> to_title_case("aakash") 'Aakash' >>> to_title_case("AAKASH") 'Aakash' >>> to_title_case("aAkAsH") 'Aakash' """ """ ...
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...
67393ad3ef1b5d9e
csharp
58
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using Microsoft.SemanticKernel.Agents.OpenAI.Internal; using OpenAI.Assistants; using OpenAI.Responses; namespace Microsoft.SemanticKernel.Agents.OpenAI; /// <summary> /// Convenience extensions for co...
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...
d0e190f28dd74d80
go
174
Default Light+
package template import ( "context" "fmt" "strconv" "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/internal/op" "github.com/alist-org/alist/v3/pkg/utils" "github.com/go-resty/resty/v2" "github.com/xhofe/wopan-sdk-go" ) type Wopan...
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...
4bf14fc42a49abb5
go
131
Default Light+
package model import ( "strings" "github.com/ollama/ollama/x/mlxrunner/mlx" ) // QuantizationParams returns default groupSize, bits, and mode for a quantization type. func QuantizationParams(quantization string) (groupSize, bits int, mode string) { switch strings.ToUpper(quantization) { case "NVFP4": return 16...
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...
1b33b5672972a6a2
typescript
93
Default Light+
import { getVisibleElements } from "@excalidraw/element"; import { sceneCoordsToViewportCoords, viewportCoordsToSceneCoords, } from "@excalidraw/common"; import { getClosestElementBounds } from "@excalidraw/element"; import { getCommonBounds } from "@excalidraw/element"; import type { ExcalidrawElement } from "@...
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"...
4b34465da7ab6dbf
python
56
Default Light+
from .common import InfoExtractor from .dailymotion import DailymotionIE class KickerIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)kicker\.(?:de)/(?P<id>[\w-]+)/video' _TESTS = [{ 'url': 'https://www.kicker.de/pogba-dembel-co-die-top-11-der-abloesefreien-spieler-905049/video', 'info_dict...
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...
a80fac062a38d765
rust
131
Solarized Dark
use super::CmdResult; use crate::core::{autostart, handle}; use crate::utils::resolve::ui::{self, UiReadyStage}; use crate::{cmd::StringifyErr as _, feat, utils::dirs}; use clash_verge_logging::{Type, logging}; use smartstring::alias::String; use tauri::{AppHandle, Manager as _}; /// 打开应用程序所在目录 #[tauri::command] pub a...
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" ...
9c4bb1e9ba655cf7
csharp
29
Monokai
using System.Diagnostics; namespace winPEAS.Helpers { internal static class MemoryHelper { public static void DisplayMemoryStats() { using (Process process = Process.GetCurrentProcess()) { if (!process.HasExited) { pro...
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.", ...
8c573eec5a9b376d
typescript
290
Default Light+
import { COLORS_PER_ROW, COLOR_PALETTE, KEYS } from "@excalidraw/common"; import type { ColorPickerColor, ColorPalette, ColorPaletteCustom, } from "@excalidraw/common"; import type { ValueOf } from "@excalidraw/common/utility-types"; import { colorPickerHotkeyBindings, getColorNameAndShadeFromColor, } from...
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.", ...
5e828876fdff209d
java
62
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...
e1a57cf7460a8db8
java
79
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...
0c2a26ed3e6b49c9
python
68
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from azure.identity import AzureCliCredential from semantic_kernel.agents import AzureResponsesAgent from semantic_kernel.connectors.ai.open_ai import AzureOpenAISettings """ The following sample demonstrates how to create an OpenAI Responses Agent using...
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...
612da60c415c496d
python
23
Dracula
from fastapi import FastAPI from fastapi.responses import JSONResponse from pydantic import BaseModel class Item(BaseModel): id: str value: str class Message(BaseModel): message: str app = FastAPI() @app.get("/items/{item_id}", response_model=Item, responses={404: {"model": Message}}) async def read...
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.", ...
f917c2a38aee294c
cpp
71
Solarized Light
/** * Code originally from: * * (c) 2015 Alexandro Sanchez Bach. All rights reserved. * https://github.com/AlexAltea/nucleus/blob/9103d7eb52cc861cb6e317f0007246bd03d663a2/nucleus/assert.h * https://github.com/AlexAltea/nucleus/blob/9103d7eb52cc861cb6e317f0007246bd03d663a2/LICENSE * Released under GPL v2 license. ...
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...
b449edde420835f3
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...
dfbd80742dc58055
java
61
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
e843ab8d45bead15
java
48
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.", ...
c51bb119e0aba7c6
java
48
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...
11c7a9660e87bc74
java
41
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" ...
0be3ba5a1788811c
python
116
Dracula
""" Demo for training continuation ============================== """ import os import pickle import tempfile from sklearn.datasets import load_breast_cancer import xgboost def training_continuation(tmpdir: str, use_pickle: bool) -> None: """Basic training continuation.""" # Train 128 iterations in 1 sessi...
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...
17c619f28f7ed021
typescript
175
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ export const IDE_DEFINITIONS = { devin: { name: 'devin', displayName: 'Devin' }, replit: { name: 'replit', displayName: 'Replit' }, cursor: { name: 'cursor', displayName: 'Cursor' }, cloudshell: { name: 'cloudshell', displa...
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...
2a4a9c070311885f
typescript
22
Default Light+
import { defineConfig, mergeConfig } from "vite"; import path from "path"; import baseConfig from "./vite.config"; export default defineConfig((configEnv) => mergeConfig( baseConfig(configEnv), defineConfig({ resolve: { alias: { "@": path.resolve(__dirname, "./src"), "@/goty...
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...
24751097e88e37c8
javascript
232
Default Dark+
"use strict"; /* eslint-env es2017, browser */ /* global _post:readable, BASE_URL:readable */ function smtpTest(event) { event.preventDefault(); event.stopPropagation(); if (formHasChanges(config_form)) { alert("Config has been changed but not yet saved.\nPlease save the changes first before sendin...
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.", ...
c2506c9904b6cef7
java
38
Solarized Dark
// Given two binary strings, return their sum (also a binary string). // For example, // a = "11" // b = "1" // Return "100" public class AddBinary { public String addBinary(String a, String b) { StringBuilder result = new StringBuilder(); int carry = 0; int i = a.length() - 1; ...
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...
02e6457720ef297a
csharp
83
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...
6f3bcfcadd42e2af
java
173
GitHub Dark
package com.xxl.job.admin.controller; import com.xxl.job.admin.core.exception.XxlJobException; import com.xxl.job.admin.core.model.XxlJobGroup; import com.xxl.job.admin.core.model.XxlJobInfo; import com.xxl.job.admin.core.model.XxlJobUser; import com.xxl.job.admin.core.route.ExecutorRouteStrategyEnum; import com.xxl.j...
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.", ...
e88a9b8e032d75f3
java
32
Dracula
package com.macro.mall.dto; import com.macro.mall.model.*; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.List; /** * 创建和修改商品的请求参数 * Created by macro on 2018/4/26. */ @Data @EqualsAndHashCode public class PmsProductParam extends PmsProduct{ ...
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...
a098255175cbaf76
java
99
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
09b1c34941ce3231
csharp
83
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; namespace Memory; // The following example shows how to use Semantic Kernel with Onnx GenAI API. public class Onnx_EmbeddingGeneration(ITestOutputHelper out...
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...
76a4f6f74fd18f18
typescript
228
Solarized Light
"use client" import * as React from "react" import { CartesianGrid, Line, LineChart, XAxis } from "recharts" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig, } fro...
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...
45066b2c5a9913ae
java
43
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...
09919b1aba52a2c5
csharp
300
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.ClientModel; using System.Diagnostics.CodeAnalysis; using System.Net.Http; using Microsoft.Extensions.AI; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Connectors.OpenAI; using Microsoft.Se...
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...
35865f826d7d6212
java
94
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.", ...
2c09ed3ce9442e73
java
103
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" ...
23e3237f56715363
java
31
GitHub Dark
package org.jeecg.modules.system.service.impl; import java.util.IdentityHashMap; import java.util.List; import java.util.Map; import org.jeecg.modules.system.entity.SysRole; import org.jeecg.modules.system.entity.SysUser; import org.jeecg.modules.system.entity.SysUserRole; import org.jeecg.modules.system.mapper.SysUs...
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"...
d197333bd6caa3e0
javascript
53
GitHub Dark
import js from '@eslint/js'; import globals from 'globals'; export default [ { ...js.configs.recommended, files: ['lib/**/*.js'], linterOptions: { reportUnusedDisableDirectives: 'off' }, languageOptions: { ecmaVersion: 2018, sourceType: 'module' }, rules: { ...js.c...
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...
f1520e8a4743c248
typescript
247
Solarized Light
"use client" import * as React from "react" import { SearchForm } from "@/registry/bases/base/blocks/sidebar-05/components/search-form" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/bases/base/ui/collapsible" import { Sidebar, SidebarContent, SidebarGroup, SidebarHeade...
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" ...
b8d958cfcace760a
go
40
Solarized Dark
package slug import "testing" func TestGenerate(t *testing.T) { tests := []struct { name string input string expected string }{ { name: "with spaces", input: "some string with spaces", expected: "some-string-with-spaces", }, { name: "with out any non-literal chars", inpu...
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...
f4ffca137889d582
csharp
73
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Runtime.Serialization; namespace Microsoft.SemanticKernel; /// <summary> /// Represents the actions that can be performed by a process agent. /// </summary> [DataContract] public sealed class ProcessAgentActions { /// <summary> /// ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
c4635ace840f3916
csharp
103
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 ...
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...
56bc9126f371dc8f
python
22
Dracula
from typing import Annotated from fastapi import Body, FastAPI from pydantic import BaseModel, Field app = FastAPI() class Item(BaseModel): name: str description: str | None = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="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...
9b2e84e76d0f0893
java
62
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
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" ...
d39da170e1b7ddf2
typescript
104
Default Dark+
import type { ResumeBadgeProps } from '../resume-badge'; export default function ResumeBadgeSageIcon({ className }: ResumeBadgeProps) { return ( <svg aria-hidden="true" className={className} viewBox="0 0 512 512" x="0px" xmlns="http://www.w3.org/2000/svg" y="0px"> <g> ...
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...
0d8dc5b5480b0d2b
typescript
251
Solarized Dark
import { BuildRounded, DeleteForeverRounded, PauseCircleOutlineRounded, PlayCircleOutlineRounded, SettingsRounded, WarningRounded, } from '@mui/icons-material' import { Box, Typography, alpha, useTheme } from '@mui/material' import { useLockFn } from 'ahooks' import React, { useCallback, useRef, useState } ...
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...
04fdc5a4833c344f
java
90
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...
e25b79069218daea
cpp
206
Solarized Light
#pragma once #include "AbstractTableView.h" #include "VaHistory.h" #include "QZydis.h" #include "TraceFileReader.h" class TraceWidget; class BreakpointMenu; class CommonActions; class TraceBrowser : public AbstractTableView { Q_OBJECT public: explicit TraceBrowser(TraceFileReader* traceFile, TraceWidget* par...
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...
372d68b0340efc8c
python
68
Solarized Light
""" Round Robin is a scheduling algorithm. In Round Robin each process is assigned a fixed time slot in a cyclic way. https://en.wikipedia.org/wiki/Round-robin_scheduling """ from __future__ import annotations from statistics import mean def calculate_waiting_times(burst_times: list[int]) -> list[int]: """ ...
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...
dbe910aa3bbf988e
typescript
50
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, afterEach, vi } from 'vitest'; import { renderWithProviders } from '../../../test-utils/render.js'; import { SectionHeader } from './SectionHeader.js'; describe('<SectionHeader />', () => { afterEa...
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" ...
285326db4fc6ecf1
typescript
28
Solarized Light
import { ButtonGroup, ButtonGroupText } from "@/examples/base/ui/button-group" import { InputGroup, InputGroupAddon, InputGroupInput, } from "@/examples/base/ui/input-group" import { Label } from "@/examples/base/ui/label" import { Link2Icon } from "lucide-react" export default function InputGroupButtonGroup() {...
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.", ...
9b05acc0f8416745
java
39
Default Light+
package com.thealgorithms.strings.zigZagPattern; final class ZigZagPattern { private ZigZagPattern() { } /** * Encodes a given string into a zig-zag pattern. * * @param s the input string to be encoded * @param numRows the number of rows in the zigzag pattern * @return the ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
28f47a438f789572
rust
38
Dracula
use hbb_common::{ get_time, message_proto::{Message, VoiceCallRequest, VoiceCallResponse}, }; use scrap::CodecFormat; use std::collections::HashMap; #[derive(Debug, Default)] pub struct QualityStatus { pub speed: Option<String>, pub fps: HashMap<usize, i32>, pub delay: Option<i32>, pub target_b...
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...
534f74b1594879ae
csharp
66
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Threading.Tasks; using Microsoft.Extensions.Configuration; using Microsoft.SemanticKernel.Connectors.OpenAI; using Microsoft.SemanticKernel.Embeddings; using SemanticKernel.IntegrationTests.TestSettings; using Xunit; namespace SemanticKernel...
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...
eb17ab3c9d1482b7
typescript
251
Solarized Light
import { IconArrowUpRight, IconFolderCode } from "@tabler/icons-react" import { PlusIcon, SearchIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent } from "@/registry/new-york-v4/ui/card" import { Dialog, DialogContent, DialogDescription, DialogHeader...
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.", ...
b91a3b007047f1cb
go
94
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
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" ...
ae2b954d4d5016d9
java
112
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
b55aa5b8ca0d5f71
cpp
21
Solarized Light
#pragma once #include <QInputDialog> #include "Types.h" class GotoDialog : private QInputDialog { public: GotoDialog(QWidget* parent = nullptr, bool checkAddress = true); using QInputDialog::exec; duint address() const; protected: void done(int r) override; private: bool mCheckAddress = true; ...
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.", ...
b85f1391a01ccdfe
rust
150
GitHub Dark
/// An error that occurs when parsing a human readable size description. /// /// This error provides an end user friendly message describing why the /// description couldn't be parsed and what the expected format is. #[derive(Clone, Debug, Eq, PartialEq)] pub struct ParseSizeError { original: String, kind: Pars...
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...
4811cf98ab036983
csharp
73
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using OpenAI.Assistants; using OpenAI.Responses; namespace Microsoft.SemanticKernel.Agents.OpenAI; /// <summary> /// Extensions for <see cref="KernelFunction"/> to support OpenAI specific operations. /// </summary> public static class KernelFunctionExten...
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" ...
5b96dd30bd4db407
java
34
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
3d71735a066cc6e9
java
69
Monokai
/* * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
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...
1194d55610658070
csharp
238
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Azure.AI.Agents.Persistent; using Azure.AI.Projects; using Azure.Core.Pipeline; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; using Microsoft.Se...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
6a920fe1834e46dd
typescript
85
One Dark Pro
import { UseGuards } from '@nestjs/common'; import { Args, Mutation, Resolver, Subscription } from '@nestjs/graphql'; import { GqlUser } from 'src/decorators/gql-user.decorator'; import { GqlAuthGuard } from 'src/guards/gql-auth.guard'; import { User } from 'src/user/user.model'; import * as E from 'fp-ts/Either'; impo...
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...
0ef916dc1342b184
typescript
74
Solarized Light
"use client" import { ChevronRight, type LucideIcon } from "lucide-react" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/new-york-v4/ui/collapsible" import { SidebarGroup, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarM...
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" ...
4925e70aedd212e2
java
38
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
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...
a24cecca64aae14b
typescript
21
Default Light+
import { useQuery } from "@tanstack/react-query"; import { getCloudStatus, type CloudStatusResponse } from "@/api"; export function useCloudStatus() { const cloudQuery = useQuery<CloudStatusResponse | null>({ queryKey: ["cloudStatus"], queryFn: getCloudStatus, retry: false, staleTime: 60 * 1000, })...
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"...
ae880f9e68dbd8c7
typescript
23
One Dark Pro
import { defineVersion } from "verzod" import { z } from "zod" import { V8_SCHEMA } from "../8" import { HoppRESTReqBody } from "./body" export const V9_SCHEMA = V8_SCHEMA.extend({ v: z.literal("9"), body: HoppRESTReqBody, }) export default defineVersion({ schema: V9_SCHEMA, initial: false, up(old: z.infer...
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...
8ff1ffecc34620d5
java
57
Solarized Dark
//Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. //push(x) -- Push element x onto stack. //pop() -- Removes the element on top of the stack. //top() -- Get the top element. //getMin() -- Retrieve the minimum element in the stack. /** * Your MinStack object will be in...
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...
115f7e9c0106136d
go
103
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...
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...
8cc04fa4284a30e4
go
110
Default Light+
package create import ( "encoding/binary" "fmt" "math" "strings" "github.com/d4l3k/go-bfloat16" "github.com/x448/float16" ) // DTypeSize returns the byte size of a single element for the given dtype string. func DTypeSize(dtype string) (int, error) { switch strings.ToUpper(dtype) { case "BF16", "F16": retu...
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...
96dd7bea04083956
cpp
200
Solarized Light
/** @file _plugins.cpp @brief Implements the plugins class. */ #include "_plugins.h" #include "plugin_loader.h" #include "console.h" #include "debugger.h" #include "threading.h" #include "murmurhash.h" ///debugger plugin exports (wrappers) PLUG_IMPEXP void _plugin_registercallback(int pluginHandle, CBTYPE cbType,...
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" ...
5cbdd64afc26001c
java
75
Default Light+
package com.thealgorithms.stacks; import java.util.NoSuchElementException; import java.util.Stack; /** * A class that implements a stack that gives the maximum element in O(1) time. * The mainStack is used to store the all the elements of the stack * While the maxStack stores the maximum elements * When we want 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...