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 |
|---|---|---|---|---|---|---|
218d79cfacb90f4d | csharp | 28 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
namespace SemanticKernel.UnitTests.Utilities;
public class FakeLogger : ILogger
{
public List<(LogLevel Level, string Message, Exception? Exception)> Logs { get; } = [];
publ... | 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"
... |
9bb10a5ea347f240 | cpp | 120 | Monokai | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
//
// Custom sink for kafka
// Building and using requires librdkafka library.
// For building librdkafka library check the url below
// https://github.com/confluenti... | 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... |
50f4ea6d4002bc93 | cpp | 63 | Monokai | /* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2011 Tatsuhiro Tsujikawa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lice... | 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"
... |
6faa2608a2655e71 | csharp | 87 | Monokai | using System;
using System.Collections.Generic;
using winPEAS.Helpers.Registry;
namespace winPEAS.Info.SystemInfo.WindowsDefender
{
internal class WindowsDefenderSettings
{
public IList<string> PathExclusions { get; }
public IList<string> PolicyManagerPathExclusions { get; }
public ILi... | 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"... |
7e62ffda966138d1 | cpp | 52 | One Dark Pro | /******************************************************************************
** Filename: stopper.h
** Purpose: Stopping criteria for word classifier.
** Author: Dan Johnson
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Licensed under the Apache License, Version 2.0 (the "License");
** you... | 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... |
4dc5495a128fbad4 | java | 78 | Default Light+ | package com.thealgorithms.matrix;
import java.util.ArrayList;
import java.util.List;
/**
* Utility class to print a matrix in spiral order.
* <p>
* Given a 2D array (matrix), this class provides a method to return the
* elements
* of the matrix in spiral order, starting from the top-left corner and moving
* clo... | 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... |
db69b03cb87b20a2 | csharp | 33 | Default Light+ | using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using MinimalClean.Architecture.Web.Domain.OrderAggregate;
namespace MinimalClean.Architecture.Web.Infrastructure.Data.Config;
public class OrderConfiguration : IEntityTypeConfiguration<Order>
{
public void Configure(EntityT... | 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... |
c2a28c5bbf3151cb | python | 189 | Default Light+ | import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
determine_ext,
int_or_none,
parse_iso8601,
traverse_obj,
variadic,
)
class OpencastBaseIE(InfoExtractor):
_INSTANCES_RE = r'''(?:
opencast\.informatik\.kit\.edu|
... | 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"... |
a890a50f02473a0b | java | 36 | Solarized Dark | // Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine if a person could attend all meetings.
// For example,
// Given [[0, 30],[5, 10],[15, 20]],
// return false.
/**
* Definition for an interval.
* public class Interval {
* int start;
* i... | 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... |
a6c3dd872a5823d4 | java | 43 | Solarized Dark | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 3 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What is the exact code shown in this VS Code window?",
"ro... |
daef250ff0481512 | rust | 373 | Solarized Dark | use super::{Context, Detected, Module, ModuleConfig};
use crate::configs::username::UsernameConfig;
use crate::formatter::StringFormatter;
#[cfg(not(target_os = "windows"))]
const USERNAME_ENV_VAR: &str = "USER";
#[cfg(target_os = "windows")]
const USERNAME_ENV_VAR: &str = "USERNAME";
/// Creates a module with the ... | 4 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "Reproduce the code from this screenshot.",
"role": "user"
... |
fa2003da8f48ccaf | java | 63 | Monokai | /*
* This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt).
*
* The MIT License
* Copyright © 2014-2022 Ilkka Seppälä
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associat... | 2 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "Extract and reproduce the code visible in this screenshot.",
... |
64c2d56fce96d294 | java | 53 | 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"
... |
2a17325bf6853217 | python | 136 | Solarized Light | # Source : https://computersciencewiki.org/index.php/Max-pooling_/_Pooling
# Importing the libraries
import numpy as np
from PIL import Image
# Maxpooling Function
def maxpooling(arr: np.ndarray, size: int, stride: int) -> np.ndarray:
"""
This function is used to perform maxpooling on the input array of 2D ma... | 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... |
ba8444455a74322b | csharp | 91 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Microsoft.SemanticKernel.Connectors.Amazon.Core;
/// <summary>
/// The Command Text Generation Response body.
/// </summary>
internal sealed class CommandResponse
{
/// <summary>
... | 0 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What code is displayed in this VS Code screenshot?",
"role... |
0541b0573c5e173e | go | 77 | Solarized Dark | // Copyright 2021 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 0 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What code is displayed in this VS Code screenshot?",
"role... |
16ecfa4a1574c2ca | python | 52 | Dracula | """
Demo for GLM
============
"""
import os
import xgboost as xgb
##
# this script demonstrate how to fit generalized linear model in xgboost
# basically, we are using linear model, instead of tree for our boosters
##
CURRENT_DIR = os.path.dirname(__file__)
dtrain = xgb.DMatrix(
os.path.join(CURRENT_DIR, "../da... | 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... |
6750c92697c7ffc6 | python | 197 | Default Light+ | # this code is adapted from the script contributed by anon from /h/
import pickle
import collections
import torch
import numpy
import _codecs
import zipfile
import re
# PyTorch 1.13 and later have _TypedStorage renamed to TypedStorage
from modules import errors
TypedStorage = torch.storage.TypedStorage if hasattr(... | 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.",
... |
3e7ff3b8bd27aab7 | java | 46 | Solarized Dark | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 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... |
2e4c1060770083f9 | typescript | 59 | Solarized Light | import * as React from "react"
import { Avatar, AvatarFallback, AvatarImage } from "@/examples/base/ui/avatar"
import { Button } from "@/examples/base/ui/button"
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
ItemGroup,
ItemMedia,
ItemSeparator,
ItemTitle,
} from "@/examples/base/ui/item"
imp... | 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.",
... |
423ca3fbc642e5bd | java | 44 | Solarized Dark | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 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... |
674c402c3ab08096 | python | 418 | Dracula | import binascii
from base64 import b64decode
from typing import Annotated
from annotated_doc import Doc
from fastapi.exceptions import HTTPException
from fastapi.openapi.models import HTTPBase as HTTPBaseModel
from fastapi.openapi.models import HTTPBearer as HTTPBearerModel
from fastapi.security.base import SecurityBa... | 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... |
17d0d84ebcd298ce | rust | 214 | Solarized Dark | use super::utils::truncate::truncate_text;
use super::{Context, Module, ModuleConfig, vcs};
use crate::configs::pijul_channel::PijulConfig;
use crate::formatter::StringFormatter;
/// Creates a module with the Pijul channel in the current directory
///
/// Will display the channel lame if the current directory is a pi... | 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... |
62e5e48011004c3e | java | 308 | Default Light+ | package com.thealgorithms.others;
import java.util.Scanner;
/**
* PageRank Algorithm Implementation
*
* <p>
* The PageRank algorithm is used by Google Search to rank web pages in their
* search engine
* results. It was named after Larry Page, one of the founders of Google.
* PageRank is a way of
* measuring 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.",
... |
9b687ef7951ec41e | typescript | 206 | Solarized Light | /**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { describe, it, expect, vi, afterEach } from 'vitest';
import { renderWithProviders } from '../../test-utils/render.js';
import { ToastDisplay, shouldShowToast } from './ToastDisplay.js';
import { TransientMessageType } 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.",
... |
8d402d1d21669d6f | csharp | 73 | Monokai | using System.ComponentModel;
using System.Globalization;
using System.Reflection;
namespace ScreenToGif.Util.Extensions;
/// <summary>
/// From https://stackoverflow.com/a/60529952/1735672.
/// </summary>
public static class EnumExtensions
{
public static string GetDescription(this Enum value)
{
retur... | 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.",
... |
125bc263ba1adaa1 | go | 32 | Default Dark+ | // Copyright 2014 Manu Martinez-Almeida. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package render
import (
"net/http"
"strconv"
)
// Data contains ContentType and bytes data.
type Data struct {
ContentType string
Data []byt... | 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... |
0e2905b929316d4c | 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... | 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"... |
546c20566c75f84e | csharp | 447 | Monokai | // Copyright (c) Microsoft. All rights reserved.
#pragma warning disable CS0618 // ITextSearch is obsolete - this class provides backward compatibility
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Linq.Expressions;
using System.Text.RegularExp... | 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... |
49d28407b8a5fa7f | typescript | 250 | Default Light+ | import { Emitter } from "@excalidraw/common";
import {
CaptureUpdateAction,
StoreChange,
StoreDelta,
} from "@excalidraw/element";
import type { StoreSnapshot, Store } from "@excalidraw/element";
import type { SceneElementsMap } from "@excalidraw/element/types";
import type { AppState } from "./types";
expor... | 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... |
a5dbee2bfe8db80e | typescript | 43 | GitHub Dark | import ResizeObserver from 'resize-observer-polyfill';
const isServer = typeof window === 'undefined';
/* istanbul ignore next */
function resizeHandler(entries: any[]) {
for (const entry of entries) {
const listeners = entry.target.__resizeListeners__ || [];
if (listeners.length) {
listeners.forEach(... | 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"... |
e34614577e7cfb57 | csharp | 64 | 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... |
d41209922ee0732a | cpp | 154 | One Dark Pro | #pragma once
#include <hex/api/imhex_api/provider.hpp>
#include <hex/api/events/events_provider.hpp>
#include <hex/api/events/events_lifecycle.hpp>
#include <hex/api/events/requests_provider.hpp>
#include <map>
#include <ranges>
#include <utility>
namespace hex {
#if !defined(HEX_MODULE_EXPORT)
namespa... | 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"
... |
20f1eeb9f2e5f03b | rust | 161 | Default Dark+ | use std::collections::{BTreeMap, HashMap};
use std::ops::Range;
use std::time::Duration;
use serde::{Deserialize, Serialize};
use crate::entry::{Entry, NewCallsite, SpanClose, SpanEnter, SpanExit};
use crate::{Error, TraceReader};
#[derive(Debug, Clone, Copy)]
enum SpanStatus {
Outside,
Inside(std::time::Dur... | 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.",
... |
92c7ff688fef0580 | rust | 92 | GitHub Dark | //! This module provides a generic `Queue` data structure, implemented using
//! Rust's `LinkedList` from the standard library. The queue follows the FIFO
//! (First-In-First-Out) principle, where elements are added to the back of
//! the queue and removed from the front.
use std::collections::LinkedList;
#[derive(De... | 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.",
... |
bea0313515cf21bc | csharp | 206 | Monokai | using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using Color = System.Drawing.Color;
using PixelFormat = System.Drawing.Imaging.PixelFormat;
namespace ScreenToGif.Util.Codification.Gif.LegacyEncoder;
/// <summary>
/// Helper Class that gets and sets image pixels using Marshal ... | 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"
... |
74b46fbc3cbb3ad4 | cpp | 103 | One Dark Pro | #include "backend-dispatched.h"
#include "backend-virgl-apir.h"
#include "ggml-backend-impl.h"
#include "ggml-backend.h"
#include "ggml-impl.h"
#include "shared/apir_backend.h"
#include <cstdint>
static uint32_t validate_graph_operation(size_t cgraph_size, uint32_t shmem_res_id, const char * operation) {
if (cgra... | 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... |
a06bfe7b4fcadb69 | typescript | 53 | Solarized Light | import { LatLng } from "leaflet";
import { MapPinIcon } from "lucide-react";
import { useState } from "react";
import { LocationPicker } from "@/components/map";
import { cn } from "@/lib/utils";
import type { Location } from "@/types/proto/api/v1/memo_service_pb";
import { Popover, PopoverContent, PopoverTrigger } fro... | 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.",
... |
c7ff03d97bc486bc | typescript | 227 | Solarized Light | /**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { describe, it, expect, beforeAll, vi } from 'vitest';
import chalk from 'chalk';
import { parseMarkdownToANSI } from './markdownParsingUtils.js';
// Mock the theme to use explicit colors instead of empty strings from the d... | 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.",
... |
cc93b62b832c11e0 | typescript | 53 | GitHub Dark | import { unref } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
const { createConfirm } = useMessage();
export enum Api {
list = '/sys/message/sysMessage/list',
delete = '/sys/message/sysMessage/delete',
deleteBatch = '/sys/message/sysMessage/del... | 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"... |
560e537e50cdc313 | cpp | 89 | Default Light+ | /* Copyright © 2023-2024 Apple Inc. */
#ifndef MLX_STREAM_H
#define MLX_STREAM_H
#include <stdbool.h>
#include "mlx/c/device.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* \defgroup mlx_stream Stream
* MLX stream object.
*/
/**@{*/
/**
* A MLX stream object.
*/
typedef struct mlx_stream_ {
void* ctx;
} ml... | 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... |
015720f0e05f5669 | 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... | 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... |
a98454f1389cb2bc | typescript | 77 | Solarized Light | import { logger } from "../../../lib/logger";
import { config } from "../../../config";
import * as Sentry from "@sentry/node";
import { Request, Response } from "express";
export async function checkFireEngine(req: Request, res: Response) {
try {
if (!config.FIRE_ENGINE_BETA_URL) {
logger.warn("Fire engin... | 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... |
9939a5f37f8adcc4 | go | 67 | Solarized Dark | // Copyright 2015 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 3 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What is the exact code shown in this VS Code window?",
"ro... |
46282d769c0de7a7 | rust | 275 | Dracula | use super::*;
#[cfg(not(target_os = "android"))]
use crate::clipboard::clipboard_listener;
#[cfg(not(target_os = "android"))]
pub use crate::clipboard::{check_clipboard, ClipboardContext, ClipboardSide};
pub use crate::clipboard::{CLIPBOARD_INTERVAL as INTERVAL, CLIPBOARD_NAME as NAME};
#[cfg(windows)]
use crate::ipc::... | 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... |
a223750ead06b11a | typescript | 20 | One Dark Pro | import { Container, ServiceClassInstance } from "dioc"
import { KernelInterceptor } from "~/services/kernel-interceptor.service"
export type KernelInterceptorDef =
| {
type: "standalone"
interceptor: KernelInterceptor
}
| {
type: "service"
service: ServiceClassInstance<unknown> & {
... | 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.",
... |
74f87cd17c535004 | csharp | 71 | 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 ... | 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... |
7bab288aaff3f729 | typescript | 125 | GitHub Dark | export interface ListItem {
title: string;
icon: string;
color?: string;
}
export interface TabItem {
key: string;
name: string;
component: string;
}
export const tags: string[] = ['很有想法的', '专注设计', '川妹子', '大长腿', '海纳百川', '前端开发', 'vue3'];
<span class="iconify" data-icon="jam:codepen-circle" data-inline="fal... | 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... |
ecaac5278593e39d | go | 205 | Default Light+ | package aliyundrive
import (
"crypto/sha256"
"encoding/hex"
"errors"
"fmt"
"net/http"
"github.com/alist-org/alist/v3/drivers/base"
"github.com/alist-org/alist/v3/internal/op"
"github.com/alist-org/alist/v3/pkg/utils"
"github.com/dustinxie/ecc"
"github.com/go-resty/resty/v2"
"github.com/google/uuid"
)
func... | 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... |
7682856d9e39aa00 | typescript | 449 | Default Light+ | import type { LocalPoint, Radians } from "@excalidraw/math";
import type {
FONT_FAMILY,
ROUNDNESS,
TEXT_ALIGN,
THEME,
VERTICAL_ALIGN,
} from "@excalidraw/common";
import type {
MakeBrand,
MarkNonNullable,
Merge,
ValueOf,
} from "@excalidraw/common/utility-types";
export type ChartType = "bar" | "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.",
... |
14ed02909ad70041 | java | 297 | Default Light+ | package com.thealgorithms.maths;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
/**
* Class for calculating the Fast Fourier Transform (FFT) of a discrete signal
* using the Cooley-Tukey algorithm.
*
* @author Ioannis Karavitsis
* @version 1.0
*/
public final class FFT {
... | 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... |
076cfba5a34a84da | python | 64 | Monokai | # Copyright (c) Microsoft. All rights reserved.
from typing import Any
from semantic_kernel.connectors.ai.bedrock.bedrock_prompt_execution_settings import (
BedrockChatPromptExecutionSettings,
BedrockTextPromptExecutionSettings,
)
from semantic_kernel.connectors.ai.bedrock.services.model_provider.utils import... | 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... |
cc40ab27b8c7b7f6 | csharp | 25 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System;
using System.Threading.Tasks;
namespace Microsoft.SemanticKernel.Process.UnitTests.Steps;
/// <summary>
/// Kick off step for the process.
/// </summary>
public sealed class KickoffStep : KernelProcessStep
{
public static class ProcessFunctions
... | 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... |
5493026c4b01a85b | java | 297 | Monokai | package com.termux.shared.termux.shell.command.runner.terminal;
import android.content.Context;
import android.system.OsConstants;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.common.base.Joiner;
import com.termux.shared.R;
import com.termux.shared.shell.command.Executio... | 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... |
1b2b24f68665092c | python | 185 | Solarized Light | from __future__ import annotations
import random
import string
class ShuffledShiftCipher:
"""
This algorithm uses the Caesar Cipher algorithm but removes the option to
use brute force to decrypt the message.
The passcode is a random password from the selection buffer of
1. uppercase letters of t... | 3 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What is the exact code shown in this VS Code window?",
"ro... |
98317106991b519a | csharp | 29 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using Microsoft.Extensions.AI;
namespace Microsoft.SemanticKernel.Connectors.Pinecone;
/// <summary>
/// Options when creating a <see cref="PineconeVectorStore"/>.
/// </summary>
public sealed class PineconeVectorStoreOptions
{
/// <summary>
/// Gets or sets ... | 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... |
60e69cfaea4ddae2 | cpp | 43 | Dracula | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "HistoryItemViewModel.h"
#include "Common/LocalizationService.h"
using namespace CalculatorApp::ViewModel::Common;
using namespace CalculatorApp::ViewModel;
using namespace std;
using namespace Pl... | 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"
... |
6610092fba80809c | rust | 247 | One Dark Pro | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//! Defines traits which allow byte slices to be interpreted as sequences of bytes that stand for
//! different values packed together using network byte ordering (such as network packets).
//!
//! The mai... | 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... |
1f0eedc39ff7d1bd | cpp | 59 | 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... |
4a40af5baee296bb | typescript | 38 | Default Light+ | import { sanitizeUrl } from "@braintree/sanitize-url";
import { escapeDoubleQuotes } from "./utils";
export const normalizeLink = (link: string) => {
link = link.trim();
if (!link) {
return link;
}
return sanitizeUrl(escapeDoubleQuotes(link));
};
export const isLocalLink = (link: string | null) => {
re... | 5 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What source code is visible in this editor?",
"role": "use... |
0690dfc035f2803a | python | 58 | Default Light+ | from .common import InfoExtractor
from ..utils import ExtractorError, UserNotLive, urlencode_postdata
class BigoIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?bigo\.tv/(?:[a-z]{2,}/)?(?P<id>[^/]+)'
_TESTS = [{
'url': 'https://www.bigo.tv/ja/221338632',
'info_dict': {
'id': '... | 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... |
edc170ee677074a6 | csharp | 26 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel;
using QualityCheckWithFilters.Models;
using QualityCheckWithFilters.Services;
namespace QualityCheckWithFilters.Filters;
/// <summary>
/// Factory class for function invocation filters based on evalu... | 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... |
fd6a9bdcc8981b88 | typescript | 95 | Solarized Light | "use client"
import { Bar, BarChart, XAxis } from "recharts"
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/registry/new-york-v4/ui/card"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
type ChartConfig,
} from "@/registry/new-york-v4/ui/chart"
export cons... | 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"
... |
afc1ad884596e348 | typescript | 33 | One Dark Pro | import { ModelProvider } from "@/app/constant";
import { prettyObject } from "@/app/utils/format";
import { NextRequest, NextResponse } from "next/server";
import { auth } from "./auth";
import { requestOpenai } from "./common";
export async function handle(
req: NextRequest,
{ params }: { params: { path: string[]... | 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"
... |
cb30cd64bcd0ef51 | cpp | 87 | Solarized Dark | #ifndef OPENPOSE_FILESTREAM_W_VIDEO_SAVER_3D_HPP
#define OPENPOSE_FILESTREAM_W_VIDEO_SAVER_3D_HPP
#include <openpose/core/common.hpp>
#include <openpose/filestream/videoSaver.hpp>
#include <openpose/thread/workerConsumer.hpp>
namespace op
{
template<typename TDatums>
class WVideoSaver3D : public WorkerConsume... | 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... |
b14709cb33cbdb00 | typescript | 139 | Solarized Light | /**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { performInitialAuth } from './auth.js';
import {
type Config,
ValidationRequiredError,
ProjectIdRequiredError,
AuthType,
} from '@google/gemini-cli-core... | 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... |
6b8b94540b8a253c | typescript | 25 | Solarized Light | import { type ColorPalette } from "@/lib/colors"
import { Color } from "@/components/color"
import { ColorFormatSelector } from "@/components/color-format-selector"
export function ColorPalette({ colorPalette }: { colorPalette: ColorPalette }) {
return (
<div id={colorPalette.name} className="scroll-mt-20 rounde... | 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.",
... |
2ef0333f5076ad0b | typescript | 144 | Solarized Light | import * as React from "react"
import { ChevronRight, File, Folder } from "lucide-react"
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@/registry/new-york-v4/ui/collapsible"
import {
Sidebar,
SidebarContent,
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
SidebarMenu,
... | 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... |
93202d8a98b99eba | 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... | 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"... |
87a43792938f38be | java | 84 | 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.",
... |
d1d892b87ce2650f | typescript | 39 | Solarized Light | import {
Pagination,
PaginationContent,
PaginationEllipsis,
PaginationItem,
PaginationLink,
PaginationNext,
PaginationPrevious,
} from "@/registry/new-york-v4/ui/pagination"
export default function PaginationDemo() {
return (
<Pagination>
<PaginationContent>
<PaginationItem>
... | 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"... |
fec89c65d8f5b02b | java | 60 | Monokai | /*
* This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt).
*
* The MIT License
* Copyright © 2014-2022 Ilkka Seppälä
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associat... | 2 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "Extract and reproduce the code visible in this screenshot.",
... |
37128454b7701581 | typescript | 117 | Dracula | import colors from 'picocolors'
import type { EvaluatedModuleNode } from 'vite/module-runner'
import {
ESModulesEvaluator,
ModuleRunner,
createNodeImportMeta,
} from 'vite/module-runner'
import type { ViteDevServer } from '../server'
import { unwrapId } from '../../shared/utils'
import type { DevEnvironment } fro... | 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... |
970dfe1f03b32f6d | cpp | 82 | Monokai | /* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lice... | 4 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "Reproduce the code from this screenshot.",
"role": "user"
... |
aaf072f4a18f48a6 | typescript | 20 | Solarized Light | import { Button } from "@/components/ui/button"
export default function Page() {
return (
<div className="flex min-h-svh p-6">
<div className="flex max-w-md min-w-0 flex-col gap-4 text-sm leading-loose">
<div>
<h1 className="font-medium">Project ready!</h1>
<p>You may now add co... | 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... |
913d84e358b3a726 | python | 115 | Monokai | import torch
import comfy.model_management
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
from kornia.morphology import dilation, erosion, opening, closing, gradient, top_hat, bottom_hat
import kornia.color
class Morphology(io.ComfyNode):
@classmethod
def define_schema... | 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"
... |
ebfc7f807642044b | typescript | 199 | Solarized Light | /**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { createHash } from 'node:crypto';
import { type Content, Type } from '@google/genai';
import { type BaseLlmClient } from '../core/baseLlmClient.js';
import { LRUCache } from 'mnemonist';
import { getPromptIdWithFallback } 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.",
... |
e5f524711bf28573 | java | 35 | 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... |
2b946b26f5cc2ce1 | python | 182 | Monokai | # Copyright (c) Microsoft. All rights reserved.
import asyncio
from functools import reduce
from typing import TYPE_CHECKING
from samples.concepts.setup.chat_completion_services import Services, get_chat_completion_service_and_request_settings
from semantic_kernel import Kernel
from semantic_kernel.connectors.ai.func... | 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... |
2ef3b0c8bec7cf40 | 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"
... |
4a38d0b129613005 | go | 127 | Default Light+ | //go:build integration
package integration
import (
"context"
"errors"
"log/slog"
"os"
"strconv"
"strings"
"sync"
"testing"
"time"
"github.com/ollama/ollama/api"
)
func TestMaxQueue(t *testing.T) {
t.Skip("this test needs to be re-evaluated to use a proper embedding model")
if os.Getenv("OLLAMA_TEST_EX... | 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"... |
34d6a5ef0287c8e8 | python | 44 | Solarized Light | # /// script
# requires-python = ">=3.13"
# dependencies = [
# "pytest",
# ]
# ///
import pytest
from maths.factorial import factorial, factorial_recursive
@pytest.mark.parametrize("function", [factorial, factorial_recursive])
def test_zero(function):
assert function(0) == 1
@pytest.mark.parametrize("func... | 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"
... |
181e6f50ad21b54f | java | 40 | Default Light+ | package com.thealgorithms.bitmanipulation;
/**
* CountLeadingZeros class contains a method to count the number of leading zeros in the binary representation of a number.
* The number of leading zeros is the number of zeros before the leftmost 1 bit.
* For example, the number 5 has 29 leading zeros in its 32-bit bin... | 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... |
ebefc02d0631d514 | csharp | 197 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System;
using System.ClientModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Azure.Identity;
using Microsoft.Extensions.Configuration;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents... | 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... |
1f76726fe5147afd | typescript | 71 | Default Light+ | export type VersionedSnapshot<T> = Readonly<{
version: number;
value: T;
}>;
export class VersionedSnapshotStore<T> {
private version = 0;
private value: T;
private readonly waiters = new Set<
(snapshot: VersionedSnapshot<T>) => void
>();
private readonly subscribers = new Set<
(snapshot: 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... |
261a5ef6e7ec13a2 | go | 237 | Solarized Light | // Code generated by protoc-gen-connect-go. DO NOT EDIT.
//
// Source: api/v1/shortcut_service.proto
package apiv1connect
import (
connect "connectrpc.com/connect"
context "context"
errors "errors"
v1 "github.com/usememos/memos/proto/gen/api/v1"
emptypb "google.golang.org/protobuf/types/known/emptypb"
http "net... | 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... |
1cbb73e192d918a0 | java | 68 | Dracula | package com.macro.mall.portal.service.impl;
import com.macro.mall.common.service.RedisService;
import com.macro.mall.mapper.UmsMemberMapper;
import com.macro.mall.model.UmsMember;
import com.macro.mall.portal.service.UmsMemberCacheService;
import com.macro.mall.security.annotation.CacheException;
import org.springfram... | 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"
... |
7f0092b0c1b5aeb5 | java | 66 | Dracula | /*
Copyright (c) 2014-2026 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 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... |
b528ba6e9808c63f | 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 ... | 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... |
7cfca2372634f3cb | rust | 25 | One Dark Pro | // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// automatically generated by tools/bindgen.sh
#![allow(
non_camel_case_types,
non_upper_case_globals,
dead_code,
non_snake_case,
clippy::ptr_as_ptr,
clippy::undocumented_unsafe_bl... | 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.",
... |
907fbe3f798a3e44 | rust | 150 | One Dark Pro | // Copyright © 2019 Intel Corporation
// Copyright 2023 Rivos, Inc.
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
use vm_memory::{GuestAddress, GuestMemory, GuestMemoryError};
pub mod aml;
pub mod dsdt;
pub mod fadt;
pub mod madt;
pub mod mcfg;
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... |
5cc5790694966da0 | python | 55 | Default Light+ | from ..compat.compat_utils import passthrough_module
from ..globals import extractors as _extractors_context
from ..globals import plugin_ies as _plugin_ies_context
from ..plugins import PluginSpec, register_plugin_spec
passthrough_module(__name__, '.extractors')
del passthrough_module
register_plugin_spec(PluginSpec... | 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"... |
71dcd4604f536cbd | python | 66 | Default Light+ | from .common import InfoExtractor
from ..utils import (
clean_html,
float_or_none,
int_or_none,
try_get,
)
class HitRecordIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?hitrecord\.org/records/(?P<id>\d+)'
_TEST = {
'url': 'https://hitrecord.org/records/2954362',
'md5': 'f... | 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... |
0a7f14e392e92690 | csharp | 63 | Monokai | /* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation t... | 6 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "Transcribe the code from this VS Code screenshot.",
"role"... |
7f96378e7854e3ae | cpp | 84 | Solarized Light | #ifndef TREE_SITTER_HIGHLIGHT_H_
#define TREE_SITTER_HIGHLIGHT_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
typedef enum {
TSHighlightOk,
TSHighlightUnknownScope,
TSHighlightTimeout,
TSHighlightInvalidLanguage,
TSHighlightInvalidUtf8,
TSHighlightInvalidRegex,
TSHighlightInvalidQuery,
}... | 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... |
1daf0e55666dc0ed | typescript | 187 | Solarized Light | "use client"
import * as React from "react"
import { Button } from "@/examples/base/ui-rtl/button"
import { ButtonGroup } from "@/examples/base/ui-rtl/button-group"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenu... | 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... |
70a5340cc0e40526 | python | 290 | Default Light+ | import base64
import re
import urllib.parse
from .common import InfoExtractor
from ..utils import (
ExtractorError,
float_or_none,
int_or_none,
traverse_obj,
try_get,
unified_timestamp,
url_or_none,
urljoin,
)
class SohuIE(InfoExtractor):
_VALID_URL = r'https?://(?P<mytv>my\.)?tv\... | 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"... |
781764d7b67c51f2 | cpp | 87 | 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... | 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... |
2a3fb6dd1e3050e6 | java | 57 | 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"
... |
43918100b41afb63 | go | 422 | Default Light+ | package fzf
import (
"math"
"sort"
"unicode"
"github.com/junegunn/fzf/src/tui"
"github.com/junegunn/fzf/src/util"
)
// Offset holds two 32-bit integers denoting the offsets of a matched substring
type Offset [2]int32
type colorOffset struct {
offset [2]int32
color tui.ColorPair
match bool
url *url
}
... | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.