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
74f4efeec605b5c3
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...
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"...
9050c161b7a0f0bf
cpp
101
One Dark Pro
/* * * Copyright (c) 1998-2000 * Dr John Maddock * * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) * */ /* * LOCATION: see http://www.boost.org/libs/regex for doc...
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"...
41a63f2e82b89ba5
csharp
24
Monokai
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace ScreenToGif.Util.Converters; public class StringToStaticResource : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var str = value as str...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
9e348cc54b1037b4
csharp
31
Default Light+
using Clean.Architecture.Core.ContributorAggregate; using Clean.Architecture.Core.ContributorAggregate.Events; using Clean.Architecture.Core.Interfaces; namespace Clean.Architecture.Core.Services; /// <summary> /// This is here mainly so there's an example of a domain service /// and also to demonstrate how to fire ...
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.", ...
894300911ba70511
rust
97
Default Dark+
use std::fs::File; use std::io::{self, BufReader}; use obkv::KvReaderU16; use super::helpers::{ create_sorter, sorter_into_reader, try_split_array_at, GrenadParameters, MergeDeladdCboRoaringBitmaps, }; use crate::error::SerializationError; use crate::index::db_name::DOCID_WORD_POSITIONS; use crate::update::de...
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...
05ee5e4905f63746
go
237
Default Light+
package client import ( "encoding/binary" "encoding/json" "fmt" "io" "os" "path/filepath" "strconv" "github.com/ollama/ollama/x/create" "github.com/ollama/ollama/x/imagegen/mlx" ) // quantizeParams maps quantization type names to MLX quantize parameters. var quantizeParams = map[string]struct { groupSize i...
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...
fa091d0ba1bf1ebd
go
66
Solarized Dark
// Copyright 2026 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
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" ...
47520238dd3eae94
typescript
20
Solarized Dark
import { Select, SelectProps, styled } from '@mui/material' export const BaseStyledSelect = styled((props: SelectProps<string>) => { return ( <Select size="small" autoComplete="new-password" sx={{ width: 120, height: 33.375, mr: 1, '[role="button"]': { py: 0.65 }...
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...
aa986b63d6be34b7
cpp
340
Solarized Light
#include "CPUWidget.h" #include "ui_CPUWidget.h" #include <QDesktopWidget> #include <QTabWidget> #include <QVBoxLayout> #include "CPUSideBar.h" #include "CPUDisassembly.h" #include "CPUMultiDump.h" #include "CPUStack.h" #include "CPURegistersView.h" #include "CPUInfoBox.h" #include "CPUArgumentWidget.h" #include "Disas...
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...
d42fc8be019f8ebb
python
120
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from azure.identity.aio import AzureCliCredential from semantic_kernel.agents import AgentGroupChat, AzureAIAgent, AzureAIAgentSettings from semantic_kernel.agents.strategies import TerminationStrategy from semantic_kernel.contents import AuthorRole """...
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...
92e1d05a0acfc959
csharp
28
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using Microsoft.SemanticKernel.Agents; using Xunit; namespace SemanticKernel.Agents.UnitTests.Definition; /// <summary> /// Unit testing of <see cref="AgentDefinition"/> and related model classes. /// </summary> public class AgentDefinitionModelTests { ...
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...
436584955a08f472
csharp
22
Monokai
// Copyright (c) Microsoft. All rights reserved. #pragma warning disable IDE0005 // Using directive is unnecessary using System; using System.ComponentModel; using Microsoft.SemanticKernel; #pragma warning restore IDE0005 // Using directive is unnecessary namespace StepwisePlannerMigration.Plugins; /// <summary> ...
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.", ...
2088b2663198ee0e
csharp
101
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text.Json; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Data; using Microsoft.VisualStudio.TestTools.UnitTesting; using SemanticKernel.AotTests.JsonSerializerContexts; using SemanticKernel.AotTests.Plugins; namespace SemanticKernel.AotTe...
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...
10be9c0c9de1562d
java
163
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...
c695b52af3d64372
go
136
Solarized Dark
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
97a5b43eddb7544b
rust
41
Solarized Dark
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct DockerContextConfig<'a> { pub symbol: &'a str, pub style: &'a str, pub format: &'a str...
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...
bac6663357357985
typescript
66
Solarized Light
// All available UI components. export const UI_COMPONENTS = [ "accordion", "alert", "alert-dialog", "aspect-ratio", "avatar", "badge", "breadcrumb", "button", "button-group", "calendar", "card", "carousel", "chart", "checkbox", "collapsible", "combobox", "command", "context-menu", ...
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...
2d64a725ac9c2a7d
java
41
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" ...
91b22a49a0df1688
typescript
107
Default Light+
import { THEME, applyDarkModeFilter } from "@excalidraw/common"; import type { StaticCanvasRenderConfig } from "../scene/types"; import type { AppState, StaticCanvasAppState } from "../types"; export const fillCircle = ( context: CanvasRenderingContext2D, cx: number, cy: number, radius: number, stroke: bool...
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...
9b96fd4a4f125778
rust
42
Solarized Light
use rand::{RngExt, SeedableRng, distr::Alphanumeric, rngs::StdRng}; const OPERATORS: &[char] = &[ '+', '-', '<', '>', '(', ')', '*', '/', '&', '|', '!', ',', '.', '%', ]; pub struct Rand(StdRng); impl Rand { #[must_use] pub fn new(seed: usize) -> Self { Self(StdRng::seed_from_u64(seed as u64)) ...
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" ...
91d3d36a9ee12a58
java
298
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...
3201f4973bd3d481
typescript
37
Solarized Light
import { Field, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSet, } from "@/examples/radix/ui/field" import { Input } from "@/examples/radix/ui/input" export function FieldFieldset() { return ( <FieldSet className="w-full max-w-sm"> <FieldLegend>Address Information</FieldLegend> ...
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...
a7fb7504a36bf8da
typescript
25
Solarized Light
import { Field, FieldContent, FieldDescription, FieldLabel, } from "@/registry/new-york-v4/ui/field" import { Switch } from "@/registry/new-york-v4/ui/switch" export default function FieldSwitch() { return ( <div className="w-full max-w-md"> <Field orientation="horizontal"> <FieldContent> ...
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...
2c279b787b0d514a
typescript
62
GitHub Dark
//第三方app配置表单 import { FormSchema } from '/@/components/Form'; //第三方app表单 export const thirdAppFormSchema: FormSchema[] = [ { label: 'id', field: 'id', component: 'Input', show: false, }, { label: 'thirdType', field: 'thirdType', component: 'Input', show: false, }, { label:...
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...
7f4c5e5d8a81eb2d
csharp
50
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; namespace Microsoft.SemanticKernel.Agents; /// <summary> /// Defines the connection for a model. /// </summary> [Experimental("SKEXP0110")] public sealed cl...
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...
80f114085c2f1bb9
java
147
Dracula
package com.macro.mall.controller; import com.macro.mall.common.api.CommonPage; import com.macro.mall.common.api.CommonResult; import com.macro.mall.dto.PmsProductParam; import com.macro.mall.dto.PmsProductQueryParam; import com.macro.mall.dto.PmsProductResult; import com.macro.mall.model.PmsProduct; import com.macro....
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...
f9ee9623e99c5e71
java
83
Monokai
package com.termux.app.fragments.settings.termux; import android.content.Context; import android.os.Bundle; import androidx.annotation.Keep; import androidx.preference.PreferenceDataStore; import androidx.preference.PreferenceFragmentCompat; import androidx.preference.PreferenceManager; import com.termux.R; import 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...
4825d82e67eae07b
python
72
Monokai
# from https://github.com/bebebe666/OptimalSteps import numpy as np import torch from typing_extensions import override from comfy_api.latest import ComfyExtension, io def loglinear_interp(t_steps, num_steps): """ Performs log-linear interpolation of a given array of decreasing numbers. """ xs = np....
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.", ...
1c593a5fd523ecad
java
145
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.", ...
6691d87f7fe04e00
csharp
86
Monokai
using ScreenToGif.Domain.Enums; using ScreenToGif.Domain.Interfaces; namespace ScreenToGif.ViewModel.ExportPresets.Video.Mp4; public class FfmpegMp4Preset : Mp4Preset, IFfmpegPreset { public FfmpegMp4Preset() { Encoder = EncoderTypes.FFmpeg; ImageId = "Vector.Ffmpeg"; RequiresFfmpeg = ...
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...
a4a951fd63e9119a
javascript
40
Dracula
import path from 'node:path' import { defineConfig } from 'vite' const root = process.env.VITEST ? path.resolve(import.meta.dirname, '../../playground-temp/lib') : import.meta.dirname export default defineConfig({ build: { lib: { // set multiple entrypoint to trigger css chunking entry: { ...
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" ...
c0ab09a6fdc49ed1
cpp
98
One Dark Pro
// (C) Copyright 2017, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing,...
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...
f220680774653623
typescript
71
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { Box, Text } from 'ink'; import { ThemedGradient } from './ThemedGradient.js'; import { theme } from '../semantic-colors.js'; import type { ReactNode } from 'react'; export function getFormattedBannerContent( rawText: st...
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.", ...
364b38d40eb56208
java
146
Monokai
/* * Copyright (c) 2007, 2011, 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 ...
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...
9c497d69f7c3f69d
java
93
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"...
abef6de977cafd3e
csharp
66
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.IO; using System.Linq; using System.Reflection; using Microsoft.SemanticKernel; using Xunit; namespace SemanticKernel.IntegrationTests; internal static class TestHelpers { private const string PluginsFolder = "../../../../../../prompt_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" ...
492cc6404cb110ab
python
173
Monokai
# Copyright (c) Microsoft. All rights reserved. from collections.abc import Callable from enum import Enum from typing import Any from semantic_kernel.connectors.ai.bedrock.bedrock_prompt_execution_settings import ( BedrockChatPromptExecutionSettings, BedrockEmbeddingPromptExecutionSettings, BedrockTextPr...
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...
097c3cfc05c2da46
cpp
162
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...
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...
7f42bf35ed363e83
python
155
Monokai
# Copyright (c) Microsoft. All rights reserved. from semantic_kernel.exceptions.kernel_exceptions import KernelException class BlockException(KernelException): """Base class for all block exceptions.""" pass class BlockSyntaxError(BlockException): """A invalid block syntax was found.""" pass c...
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" ...
3cbac18d591d6e93
cpp
254
One Dark Pro
/********************************************************************** * File: makerow.h (Formerly makerows.h) * Description: Code to arrange blobs into rows of text. * Author: Ray Smith * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ...
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" ...
39513cb0da3bd533
typescript
427
One Dark Pro
import { mockDeep, mockReset } from 'jest-mock-extended'; import { PrismaService } from 'src/prisma/prisma.service'; import { TeamEnvironment } from './team-environments.model'; import { TeamEnvironmentsService } from './team-environments.service'; import { TEAM_ENVIRONMENT_NOT_FOUND, TEAM_ENVIRONMENT_SHORT_NAME, ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
e24df6c63e8c6f64
typescript
176
One Dark Pro
import { HoppRESTRequest } from "@hoppscotch/data" import * as E from "fp-ts/Either" import * as TE from "fp-ts/TaskEither" import { cloneDeep } from "lodash" import { defaultModules, postRequestModule } from "~/cage-modules" import { HoppFetchHook, TestDescriptor, TestResponse, TestResult, } from "~/types" im...
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.", ...
b9c1e7a4852f6546
typescript
110
One Dark Pro
import { Service } from "dioc" import { Component } from "vue" /** * Defines how to render the text in a Context Menu Search Result */ export type ContextMenuTextType<T extends object | Component = never> = | { type: "text" text: string } | { type: "custom" /** * The component ...
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...
9df9c049ccdefeb4
python
70
Solarized Light
# https://en.wikipedia.org/wiki/Electrical_reactance#Inductive_reactance from __future__ import annotations from math import pi def ind_reactance( inductance: float, frequency: float, reactance: float ) -> dict[str, float]: """ Calculate inductive reactance, frequency or inductance from two given electri...
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" ...
1721422e457979f0
typescript
126
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { LocalLiteRtLmClient } from './localLiteRtLmClient.js'; import type { Config } from '../config/config.js'; const mockGenerateContent = vi.fn(); vi.mock('@googl...
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...
3188524cf4a21059
cpp
49
Solarized Light
#pragma once #include <QLineEdit> namespace Ui { class HexLineEdit; } class HexLineEdit : public QLineEdit { Q_OBJECT public: explicit HexLineEdit(QWidget* parent = nullptr); ~HexLineEdit(); void keyPressEvent(QKeyEvent* event); void setData(const QByteArray & data); QByteArray data()...
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...
5d1bfd884552d1be
rust
80
Default Dark+
use std::borrow::Cow; use std::convert::TryInto; use std::mem::size_of; use std::str; use heed::BoxedError; use super::SliceTooShortError; pub struct StrBEU32Codec; impl<'a> heed::BytesDecode<'a> for StrBEU32Codec { type DItem = (&'a str, u32); fn bytes_decode(bytes: &'a [u8]) -> Result<Self::DItem, BoxedE...
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...
494a4d81a14b5d46
typescript
42
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { tokenLimit, DEFAULT_TOKEN_LIMIT } from './tokenLimits.js'; import { DEFAULT_GEMINI_FLASH_LITE_MODEL, DEFAULT_GEMINI_FLASH_MODEL, DEFAULT_GEMINI_MODEL, PREVIEW_GEMINI_F...
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...
051ba56c5e1e4ded
csharp
30
Default Light+
using NimblePros.SampleToDo.Core.Interfaces; namespace NimblePros.SampleToDo.UseCases.Contributors.Commands.Delete; public class DeleteContributorHandler : ICommandHandler<DeleteContributorCommand, Result> { private readonly IDeleteContributorService _deleteContributorService; public DeleteContributorHandler(ID...
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" ...
cb2f623e46203384
java
46
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
0251a432e68ecc7d
typescript
88
Default Light+
import { useEffect } from "react"; import { EVENT } from "@excalidraw/common"; export function useOutsideClick<T extends HTMLElement>( ref: React.RefObject<T | null>, /** if performance is of concern, memoize the callback */ callback: (event: Event & { target: T }) => void, /** * Optional callback which is...
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...
729322b2440f89dd
javascript
223
GitHub Dark
import utils from '../utils.js'; import settle from '../core/settle.js'; import transitionalDefaults from '../defaults/transitional.js'; import AxiosError from '../core/AxiosError.js'; import CanceledError from '../cancel/CanceledError.js'; import parseProtocol from '../helpers/parseProtocol.js'; import platform from '...
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...
cf407eafa44f22dd
csharp
75
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Microsoft.SemanticKernel.ChatCompletion; /// <summary> /// Truncate the chat history to the target message count. /// </summary> /// <re...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
60121a65df120c4a
rust
277
Solarized Light
//! Code for running a reader/writer on another thread while driving it through `polling`. use std::io::prelude::*; use std::marker::PhantomData; use std::sync::{Arc, Mutex}; use std::task::{Context, Poll, Wake, Waker}; use std::{io, thread}; use piper::{Reader, Writer, pipe}; use polling::os::iocp::{CompletionPacket...
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...
7728a8a3062edb23
java
204
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
1fd22785959c70ae
python
34
Monokai
# Copyright (c) Microsoft. All rights reserved. from abc import ABC, abstractmethod from dapr.actor import ActorInterface, actormethod from semantic_kernel.utils.feature_stage_decorator import experimental @experimental class MessageBufferInterface(ActorInterface, ABC): """Abstract base class for a message eve...
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...
01f3ada82b5d23a1
cpp
48
One Dark Pro
// __ _____ _____ _____ // __| | __| | | | JSON for Modern C++ // | | |__ | | | | | | version 3.12.0 // |_____|_____|_____|_|___| https://github.com/nlohmann/json // // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann <https://nlohmann.me> // SPDX-License-Identifier: MIT #pragma once // restor...
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...
cec116d6561f40de
python
67
Default Light+
import re import urllib.parse from .common import InfoExtractor from ..utils import ( ExtractorError, parse_duration, remove_end, ) class VuClipIE(InfoExtractor): _VALID_URL = r'https?://(?:m\.)?vuclip\.com/w\?.*?cid=(?P<id>[0-9]+)' _TEST = { 'url': 'http://m.vuclip.com/w?cid=1129900602&...
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"...
6451dd7a96c7cf0b
cpp
106
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2013 Nils Maier * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or ...
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...
c1f5fc84e3d4870d
java
58
Default Light+
package com.thealgorithms.dynamicprogramming; import java.util.Arrays; /* Given an array of non-negative integers , partition the array in two subset that difference in sum of elements for both subset minimum. Return the minimum difference in sum of these subsets you can achieve. Input: array[] = {1, 6, 11, 4} Outp...
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...
9b221d0524c5b175
java
142
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...
6192d2b785456e27
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 ...
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"...
5bed7a4252dd792e
typescript
86
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { isApiError, isStructuredError } from './quotaErrorDetection.js'; import { DEFAULT_GEMINI_FLASH_MODEL } from '../config/models.js'; import type { UserTierId } from '../code_assist/types.js'; import { AuthType } from '../cor...
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.", ...
1f676f8031a2f0e4
csharp
214
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatCompletion; using QualityCheckWithFilters.Filters; using QualityCheckWithFilters.Models; using QualityCheckWithFilters...
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...
72b608067de187be
go
39
Solarized Dark
package vhost import ( "crypto/tls" "net" "testing" "time" "github.com/stretchr/testify/require" ) func TestGetHTTPSHostname(t *testing.T) { require := require.New(t) l, err := net.Listen("tcp", "127.0.0.1:") require.NoError(err) defer l.Close() var conn net.Conn go func() { conn, _ = l.Accept() req...
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"...
07e789f6d5329779
csharp
78
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.OpenAI; using Microsoft.SemanticKernel.ChatCompletion; using OpenAI.Assistants; using Plugins; namespace GettingStarted.OpenAIAssistants; /// <summary> /// Thi...
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"...
8adf5c4d2e54c542
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 ...
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...
1441e39cdbf6fcce
typescript
122
GitHub Dark
import { Router, Request } from "express" import { promises as fs } from "fs" import { RateLimiter as Limiter } from "limiter" import * as path from "path" import { rootPath } from "../constants" import { authenticated, getCookieOptions, redirect, replaceTemplates } from "../http" import i18n from "../i18n" import { ge...
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"...
14f117f2ae20b382
typescript
50
Solarized Light
"use client" import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig, } from "@/examples/base/ui/chart" import { Bar, BarChart, CartesianGrid, XAxis } from "recharts" const chartData = [ { month: "January", desktop: 186, mobile: 80 }, { month: "February", desktop: 305, mobile: 200 }, ...
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"...
8abaf53c0afcfeea
java
430
GitHub Dark
package org.jeecg.modules.system.model; import org.jeecg.modules.system.entity.SysDepart; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Objects; /** * <p> * 部门表 存储树结构数据的实体类 * <p> * * @Author Steve * @Since 2019-01-22 */ public class S...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
65c7d4441bfea632
typescript
121
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { ToolGroupMessage } from './ToolGroupMessage.js'; import { renderWithProviders } from '../../../test-utils/render.js'; import { StreamingState, type IndividualToolCallDisplay }...
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" ...
7df198b3caa67eaf
java
262
Monokai
package com.termux.shared.termux.settings.preferences; import android.content.Context; import android.util.TypedValue; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.termux.shared.android.PackageUtils; import com.termux.shared.settings.preferences.AppSharedPreferences; import com...
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"...
b1da4270254726d2
typescript
40
Solarized Light
import { Field, FieldDescription, FieldLabel, FieldLegend, FieldSet, } from "@/examples/radix/ui/field" import { RadioGroup, RadioGroupItem } from "@/examples/radix/ui/radio-group" export function RadioGroupInvalid() { return ( <FieldSet className="w-full max-w-xs"> <FieldLegend variant="label">N...
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...
6abf9a60c813a4a4
csharp
79
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...
2ceaa7bb2e958c89
typescript
29
Default Light+
import { CODES, KEYS } from "@excalidraw/common"; import { CaptureUpdateAction } from "@excalidraw/element"; import { abacusIcon } from "../components/icons"; import { register } from "./register"; export const actionToggleStats = register({ name: "stats", label: "stats.fullTitle", icon: abacusIcon, viewMod...
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.", ...
02628f7ef571e4fa
csharp
221
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using Microsoft.Extensions.VectorData.ProviderServices; using Microsoft.Extensions.VectorData.ProviderServices.Filter; using MongoDB.Bson; namespace Mic...
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...
b7cae3888ac191ce
csharp
64
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Linq; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.Agents.AzureAI; using Xunit; namespace SemanticKernel.Agents.UnitTests.AzureAI.Extensions; /// <summary> /// Unit tests for YamlAgentDefinitionExte...
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...
7abf1e257a67c939
typescript
328
Dracula
import { nanoid } from 'nanoid/non-secure' import type { CustomPayload, HotPayload } from '#types/hmrPayload' import { promiseWithResolvers } from './utils' import type { InvokeMethods, InvokeResponseData, InvokeSendData, } from './invokeMethods' export type ModuleRunnerTransportHandlers = { onMessage: (data: ...
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" ...
9cdc0d24df40aa04
typescript
59
Solarized Dark
import { styled } from '@mui/material/styles' import { default as MuiSwitch, SwitchProps } from '@mui/material/Switch' export const Switch = styled((props: SwitchProps) => ( <MuiSwitch focusVisibleClassName=".Mui-focusVisible" disableRipple {...props} /> ))(({ theme }) => ({ width: 42, height: 26, ...
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...
0075efb2d956ac5a
java
87
GitHub Dark
package com.github.mikephil.charting.data; import android.annotation.SuppressLint; import android.graphics.drawable.Drawable; import android.util.Log; /** * @author Philipp Jahoda */ @SuppressLint("ParcelCreator") public class PieEntry extends Entry { private String label; public PieEntry(float value) { ...
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" ...
223166f866bb4f50
javascript
43
Dracula
import path from 'node:path' import { createServer } from 'vite' const isSourceMapEnabled = process.argv[2] === 'true' const ext = process.argv[3] process.setSourceMapsEnabled(isSourceMapEnabled) console.log('# sourcemaps enabled:', isSourceMapEnabled) console.log('# source file extension:', ext) const isTest = proce...
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"...
aa04861481b2cb57
java
135
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...
55c27780cd722e9b
cpp
167
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2012 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
c7c17d7e78a6a190
cpp
75
Dracula
/** * Copyright 2020-2026, XGBoost Contributors */ #include "random.h" #include <algorithm> // for sort, max, copy #include <memory> // for shared_ptr #include <sstream> // for stringstream #include <string> // for string #include "xgboost/host_device_vector.h" // for HostDeviceVector #include "xgboost...
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...
765fc90294c73317
typescript
236
GitHub Dark
import type { BasicTableProps, TableRowSelection, BasicColumn } from '../types/table'; import type { Ref, ComputedRef, Slots } from 'vue'; import { computed, unref, ref, nextTick, watch } from 'vue'; import { getViewportOffset } from '/@/utils/domUtils'; import { isBoolean } from '/@/utils/is'; import { useWindowSizeFn...
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.", ...
fbc16c5c66377a45
java
21
Dracula
package com.macro.mall.portal.domain; import com.macro.mall.model.OmsOrder; import com.macro.mall.model.OmsOrderItem; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.util.List; /** * 包含商品信息的订单详情 * Created by macro on 2018/9/4. */ @Getter @Setter public class...
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...
58fdf4cc2065e501
cpp
60
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...
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...
540053bc9b9d7080
csharp
37
Default Dark+
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 [assembly: AssemblyTitle("RevokeMsgPatcher.MultiInstance")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [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" ...
3ff24c17dca28cc7
typescript
85
Default Light+
import { isRenderThrottlingEnabled } from "../reactUtils"; export type Animation<R extends object> = (params: { deltaTime: number; state?: R; }) => R | null | undefined; export class AnimationController { private static isRunning = false; private static animations = new Map< string, { animation:...
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...
4701e7bb7593c643
typescript
86
Solarized Light
"use client" import * as React from "react" import { cn } from "@/examples/radix/lib/utils" import { OTPInput, OTPInputContext } from "input-otp" import { MinusIcon } from "lucide-react" function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & { containerClassName...
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...
749823fb382d87da
java
88
Dracula
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; public class PmsProductVertifyRecord implements Serializable { private Long id; private Long productId; private Date createTime; @ApiModelProperty(value = "审核人") pri...
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...
43dac1c64f4b7893
cpp
152
Default Light+
#include "models.h" llm_build_qwen2moe::llm_build_qwen2moe(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { const int64_t n_embd_head = hparams.n_embd_head_v; GGML_ASSERT(n_embd_head == hparams.n_embd_head_k); GGML_ASSERT(n_embd_head == hparams.n_rot); ggml_te...
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...
a3bd6ebabe928282
csharp
52
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel; using Xunit; namespace SemanticKernel.UnitTests.Utilities; public class FunctionNameTests { [Fact] public void ItShouldParseFullyQualifiedNameThatHasPluginNameAndFunctionName() { // Arrange & act var sut = 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.", ...
5945b96c7756ec51
go
177
Solarized Light
package sqlite import ( "context" "fmt" "strings" "github.com/pkg/errors" "github.com/usememos/memos/store" ) func (d *DB) CreateUser(ctx context.Context, create *store.User) (*store.User, error) { fields := []string{"`username`", "`role`", "`email`", "`nickname`", "`password_hash`, `avatar_url`"} placeholde...
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"...
531b09a2f868bb4e
csharp
56
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.ComponentModel; using Microsoft.SemanticKernel; namespace Step04.Plugins; internal sealed record WeatherForecast( string Date, string Location, string HighTemperature, string LowTemperature, string Precipition); /// <summary> /// Mock...
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...
b36d0bea82d2f1dc
csharp
57
Default Light+
// Copyright (c) 2018 Siegfried Pammer // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publ...
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...
9d4de53a2ce5a3d4
typescript
454
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useEffect, useReducer, useRef } from 'react'; import { setTimeout as setTimeoutPromise } from 'node:timers/promises'; import * as path from 'node:path'; import { FileSearchFactory, escapePath, FileDiscoveryService, ...
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" ...
b88eee7e83fdb643
python
119
Default Light+
from .common import InfoExtractor from ..utils import ( ExtractorError, dict_get, traverse_obj, try_get, ) class MirrativBaseIE(InfoExtractor): def assert_error(self, response): error_message = traverse_obj(response, ('status', 'error')) if error_message: raise Extracto...
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" ...
6f8b774cca02ff22
cpp
100
One Dark Pro
#pragma once #include <functional> #include <string> #include <vector> #include <hex/helpers/utils.hpp> #if defined(OS_WINDOWS) #include <Windows.h> #else #include <dlfcn.h> #endif namespace hex::script::loader { class ScriptLoader; struct Script { std::string name; std::fs::path pa...
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...
48b7520e89806bad
java
214
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...