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
96761915f4a866e4
python
423
Default Light+
import base64 import re from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, js_to_json, merge_dicts, parse_duration, traverse_obj, try_call, url_or_none, urljoin, variadic, ) def decode_base64(text): return base64.b64decode(text.translate(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"...
0fc695042eec8db0
csharp
137
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.ComponentModel; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel.Http; namespace Microsoft.SemanticK...
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...
25d4769302ad10ed
cpp
89
Solarized Dark
#ifndef OPENPOSE_FILESTREAM_W_VIDEO_SAVER_HPP #define OPENPOSE_FILESTREAM_W_VIDEO_SAVER_HPP #include <openpose/core/common.hpp> #include <openpose/filestream/videoSaver.hpp> #include <openpose/thread/workerConsumer.hpp> namespace op { template<typename TDatums> class WVideoSaver : public WorkerConsumer<TDatum...
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.", ...
edacc7931cfe0574
java
192
GitHub Dark
package org.jeecg.modules.airag.llm.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotation...
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"...
6ae33358a9a1b8ec
cpp
214
One Dark Pro
/* * * Copyright (c) 1998-2002 * John Maddock * * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) * */ /* * LOCATION: see http://www.boost.org for most recent version....
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
7b5c501b882b23a4
python
42
Solarized Light
# Eulers Totient function finds the number of relative primes of a number n from 1 to n def totient(n: int) -> list: """ >>> n = 10 >>> totient_calculation = totient(n) >>> for i in range(1, n): ... print(f"{i} has {totient_calculation[i]} relative primes.") 1 has 0 relative primes. 2 ha...
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...
07c130d8f3b5b28c
rust
165
Default Dark+
//! Rust library for OpenAI //! //! ## Creating client //! //! ``` //! use async_openai::{Client, config::OpenAIConfig}; //! //! // Create a OpenAI client with api key from env var OPENAI_API_KEY and default base url. //! let client = Client::new(http_client::policy::IpPolicy::danger_always_allow()); //! //! // Above i...
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"...
f73dfee7828c349c
csharp
147
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.AI; namespace Microsoft.SemanticKernel.ChatCompletion; /// <summary> /// Extension methods for chat history. /// </summary> public st...
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...
6b71620527553df9
python
122
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from typing import Annotated from semantic_kernel.agents import OpenAIResponsesAgent from semantic_kernel.connectors.ai.open_ai import OpenAISettings from semantic_kernel.contents import AuthorRole, FunctionCallContent, FunctionResultContent from semantic_...
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"...
c08f008f0dab392a
typescript
128
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi } from 'vitest'; import { DefaultStrategy } from './defaultStrategy.js'; import type { RoutingContext } from '../routingStrategy.js'; import type { BaseLlmClient } from '../../core/baseLlmClient.js...
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...
3f83ad5bf356ac77
python
99
Solarized Light
""" Given the root of a binary tree, determine if it is a valid binary search tree (BST). A valid binary search tree is defined as follows: - The left subtree of a node contains only nodes with keys less than the node's key. - The right subtree of a node contains only nodes with keys greater than the node's key. - Bot...
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"...
98e368e8d13b71cd
java
40
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
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...
10870c3d557b2bad
csharp
29
Default Light+
using NimblePros.SampleToDo.Core.ProjectAggregate; namespace NimblePros.SampleToDo.UseCases.Projects.Update; public class UpdateProjectHandler : ICommandHandler<UpdateProjectCommand, Result<ProjectDto>> { private readonly IRepository<Project> _repository; public UpdateProjectHandler(IRepository<Project> reposit...
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...
2e12b1eef0b2bee9
typescript
59
Default Light+
import { Popover } from "radix-ui"; import { MOBILE_ACTION_BUTTON_BG } from "@excalidraw/common"; import type { FontFamilyValues } from "@excalidraw/element/types"; import { t } from "../../i18n"; import { ButtonIcon } from "../ButtonIcon"; import { TextIcon } from "../icons"; import { useExcalidrawSetAppState } fr...
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...
7ceb61b9f898076b
typescript
239
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { ModifiableDeclarativeTool, ModifyContext, } from '../tools/modifiable-tool.js'; import { BaseDeclarativeTool, BaseToolInvocation, Kind, type ToolCallConfirmationDetails, type ToolInvocation, type ToolR...
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.", ...
ee84343eb550edbe
java
81
Default Light+
package com.thealgorithms.scheduling.diskscheduling; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Circular Look Scheduling (C-LOOK) is a disk scheduling algorithm similar to * the C-SCAN algorithm but with a key difference. In C-LOOK, the disk arm also * moves in one direc...
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"...
c895dcc4b7f1ded4
java
32
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
bfe48b1c10d28a61
csharp
22
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Threading.Tasks; namespace Microsoft.SemanticKernel; #pragma warning disable CA1716 // Identifiers should not match keywords (Func<FunctionCallInvocationContext, Task> next) /// <summary> /// Interface for filtering actions during automati...
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.", ...
a5dde12e6f9d3197
csharp
115
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
f8c321b4b2ea1e48
java
143
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...
aaf982dc1adaf187
java
29
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...
cec132513018c6a1
cpp
49
One Dark Pro
/****************************************************************************** * * File: plotedges.h * Description: Convert the various data type into line lists * Author: Mark Seaman, OCR Technology * * (c) Copyright 1989, Hewlett-Packard Company. ** Licensed under the Apache License, Version 2....
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...
f2460f25dc942561
java
33
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"...
eb406737a05f8e02
cpp
107
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...
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"...
5b57d9567ce7756c
typescript
283
One Dark Pro
import * as E from "fp-ts/Either" import { BehaviorSubject, Subscription } from "rxjs" import { Subscription as WSubscription } from "wonka" import { pipe } from "fp-ts/function" import { GQLError, runGQLQuery, runGQLSubscription } from "../backend/GQLClient" import { GetTeamEnvironmentsDocument, TeamEnvironmentCre...
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...
9d1199aab8ea583b
typescript
32
GitHub Dark
import { defHttp } from '/@/utils/http/axios'; enum Api { list = '/sys/dataLog/list', queryDataVerList = '/sys/dataLog/queryDataVerList', queryCompareList = '/sys/dataLog/queryCompareList', } /** * 查询数据日志列表 * @param params */ export const getDataLogList = (params) => { return defHttp.get({ url: Api.list, p...
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"...
5542342a290b4298
typescript
246
Solarized Light
"use client" import * as React from "react" import { DayPicker, getDefaultClassNames, type DayButton, type Locale, } from "react-day-picker" import { cn } from "@/registry/bases/base/lib/utils" import { Button, buttonVariants } from "@/registry/bases/base/ui/button" import { IconPlaceholder } from "@/app/(cre...
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.", ...
6df61e885f543748
java
105
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
194b44600588f412
typescript
116
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { StreamingState } from '../ui/types.js'; export interface TerminalTitleOptions { streamingState: StreamingState; thoughtSubject?: string; isConfirming: boolean; isSilentWorking: boolean; folderName: string; sho...
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...
c435b34f7eafcd91
rust
58
Default Dark+
use crate::make_enum_progress; make_enum_progress! { pub enum IndexingStep { PreparingPayloads, AssigningDocumentsIds, ReorderingPayloadOffsets, ExtractingDocuments, ExtractingFacets, ExtractingWords, ExtractingWordProximity, ExtractingEmbeddings, ...
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...
8870627a9344b229
cpp
33
Solarized Light
#pragma once #include <QTextBrowser> #include <QTextCursor> #include <QTimer> #include <QMap> #include <functional> class ImageTextBrowser : public QTextBrowser { Q_OBJECT public: explicit ImageTextBrowser(QWidget* parent = nullptr); void resizeImages(); using DownloadFn = std::function<QImage(const...
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...
315df65bcdbf140a
java
55
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...
be3fdbe2531ac923
csharp
46
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Diagnostics.CodeAnalysis; namespace Microsoft.SemanticKernel.Agents; /// <summary> /// Provides extension methods for <see cref="AgentDefinition"/>. /// </summary> [Experimental("SKEXP0110")] public static class AgentToolDefinitionExtension...
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...
62a7fdd5a2ed5fae
csharp
58
Default Light+
// Copyright (c) 2014 Daniel Grunwald // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publi...
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...
28267cb0bfca7671
csharp
51
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threading; using System.Threading.Tasks; namespace SemanticKernel.Connectors.HuggingFace.UnitTests; internal sealed class HttpMessageHandlerStub : DelegatingHandler { ...
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...
4c601802b6944b0f
typescript
102
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { act } from 'react'; import { render } from '../../test-utils/render.js'; import { useAnimatedScrollbar } from './useAnimatedScrollbar.js'; import { debugState } from '../debug.js'; import { describe, it, expect, beforeEach...
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...
fd8cf58ff5dbfd55
cpp
31
Solarized Light
#pragma once #include <QDialog> namespace Ui { class BrowseDialog; } class BrowseDialog : public QDialog { Q_OBJECT public: BrowseDialog(QWidget* parent, const QString & title, const QString & text, const QString & filter, const QString & defaultPath, bool save); ~BrowseDialog(); void setConfir...
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"...
f7d8b86e89fbc855
cpp
29
Solarized Light
#pragma once #include <QIcon> #include <functional> #include "Types.h" class QWidget; class QByteArray; //void SetApplicationIcon(WId winId); QByteArray & ByteReverse(QByteArray & array); QByteArray ByteReverse(QByteArray && array); bool SimpleInputBox(QWidget* parent, const QString & title, QString defaultValue, QS...
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...
1479a3b8c539a835
csharp
52
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.IO; using System.Text.Json.Nodes; using System.Threading.Tasks; using Microsoft.SemanticKernel; using Xunit; namespace SemanticKernel.IntegrationTests.CrossLanguage; public class PromptWithSimpleVariableTest { private const string SkPrompt = "Can you...
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...
0513c94835199e04
typescript
42
GitHub Dark
import { createLoading } from '/@/components/Loading'; import type { Directive, App } from 'vue'; const loadingDirective: Directive = { mounted(el, binding) { const tip = el.getAttribute('loading-tip'); const background = el.getAttribute('loading-background'); const size = el.getAttribute('loading-size')...
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" ...
0f18a51494cb7500
typescript
158
GitHub Dark
import type { ModalFunc, ModalFuncProps } from 'ant-design-vue/lib/modal/Modal'; import { Modal, message as Message, notification } from 'ant-design-vue'; import { InfoCircleFilled, CheckCircleFilled, CloseCircleFilled } from '@ant-design/icons-vue'; import { NotificationArgsProps, ConfigProps } from 'ant-design-vue/...
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...
77ad3843535a43f4
typescript
199
Solarized Light
import { Response } from "express"; import { mapRequestSchema, RequestWithAuth, MapRequest, MapResponse, } from "./types"; import { configDotenv } from "dotenv"; import { billTeam } from "../../services/billing/credit_billing"; import { logMap, logRequest } from "../../services/logging/log_job"; import { logger...
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...
fb5c5f29e98d4151
javascript
191
Solarized Light
#!/usr/bin/env node /** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import path from 'node:path'; import * as fs from 'node:fs'; import { spawn, execSync } from 'node:child_process'; import { OTEL_DIR, BIN_DIR, fileExists, waitForPort, ensureBinary, manageTelemetryS...
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"...
f00c97d1510a91c6
cpp
39
One Dark Pro
#pragma once #include <hex/helpers/keys.hpp> #if defined(OS_MACOS) #if !defined(HEX_MODULE_EXPORT) struct GLFWwindow; #endif extern "C" { void errorMessageMacos(const char *message); void openWebpageMacos(const char *url); bool isMacosSystemDarkModeEnabled(); boo...
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...
5d133945d0859aca
cpp
79
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 #include ...
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...
dfb6ef3292fc8e5d
java
84
Default Light+
package com.thealgorithms.strings; /** * Finds the longest substring that occurs at least twice in a given string. * * <p>Uses the suffix array (via {@link SuffixArray}) and Kasai's algorithm * to build the LCP (Longest Common Prefix) array, then returns the substring * corresponding to the maximum LCP value.</p>...
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.", ...
44ba45cc8fa539da
csharp
93
Monokai
using System.IO; namespace ScreenToGif.Util.Codification.Gif.Decoder; public enum FrameDisposalMethod { None = 0, DoNotDispose = 1, RestoreBackground = 2, RestorePrevious = 3 } public class FrameMetadata { public int Left { get; set; } public int Top { get; set; } public int Width { get; ...
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.", ...
a7f0f92ffa131979
typescript
215
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { renderWithProviders } from '../../test-utils/render.js'; import { DialogManager } from './DialogManager.js'; import { describe, it, expect, vi } from 'vitest'; import { Text } from 'ink'; import { type UIState } from '../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...
de0534183304bfd9
typescript
161
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { diag, SpanStatusCode, trace, type AttributeValue, type SpanOptions, } from '@opentelemetry/api'; import { safeJsonStringify } from '../utils/safeJsonStringify.js'; import { type GeminiCliOperation, GEN_AI_AGE...
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...
0a6fce9e2723b16c
java
32
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
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...
06fe2613b2c4f007
java
37
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"...
d0423d4941700372
go
79
Default Light+
package common import ( "time" "github.com/Xhofe/go-cache" "github.com/alist-org/alist/v3/internal/conf" "github.com/alist-org/alist/v3/internal/model" "github.com/golang-jwt/jwt/v4" "github.com/pkg/errors" ) var SecretKey []byte type UserClaims struct { Username string `json:"username"` PwdTS int64 `js...
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.", ...
3a10e80315fbcf0e
csharp
36
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Net.Http; using System.Text.Json.Serialization; namespace Microsoft.SemanticKernel.Connectors.Chroma; internal sealed class DeleteEmbeddingsRequest { [JsonIgnore] public string CollectionId { get; set; } [JsonPropertyName("ids")] public ...
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...
e7e3553ae18b5a6f
rust
82
Dracula
use super::{PrivacyMode, PrivacyModeState}; use hbb_common::{anyhow::anyhow, ResultType}; extern "C" { fn MacSetPrivacyMode(on: bool) -> bool; } pub const PRIVACY_MODE_IMPL: &str = "privacy_mode_impl_macos"; pub struct PrivacyModeImpl { impl_key: String, conn_id: i32, } impl PrivacyModeImpl { pub fn...
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...
d21557c45c1d2285
typescript
120
Solarized Light
export default function TypographyDemo() { return ( <div> <h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight text-balance"> Taxing Laughter: The Joke Tax Chronicles </h1> <p className="text-xl leading-7 text-muted-foreground [&:not(:first-child)]:mt-6"> Once upon a...
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"...
9f01a6da1625142b
java
99
GitHub Dark
package com.xxl.job.admin.service; import com.xxl.job.admin.core.model.XxlJobInfo; import com.xxl.job.admin.core.model.XxlJobUser; import com.xxl.job.core.biz.model.ReturnT; import java.util.Date; import java.util.Map; /** * core job action for xxl-job * * @author xuxueli 2016-5-28 15:30:33 */ public interface...
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...
af390bc1ff7fe396
typescript
64
GitHub Dark
import { FormSchema } from '/@/components/Form'; export const step1Schemas: FormSchema[] = [ { field: 'account', component: 'Select', label: '付款账户', required: true, defaultValue: '1', componentProps: { options: [ { label: 'anncwb@126.com', value: '1', ...
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"...
3ebc898aff16f6c1
typescript
45
Solarized Light
"use client" import { Toggle as TogglePrimitive } from "@base-ui/react/toggle" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/registry/bases/base/lib/utils" const toggleVariants = cva( "cn-toggle group/toggle inline-flex items-center justify-center whitespace-nowrap outline...
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" ...
17e1421e3a3759b3
java
87
GitHub Dark
package org.jeecg.modules.system.mapper; import com.baomidou.mybatisplus.annotation.InterceptorIgnore; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.jeec...
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...
9eb062312827e502
java
80
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
85cc242d825672ef
typescript
259
One Dark Pro
import { DEFAULT_MODELS, ServiceProvider } from "../constant"; import { LLMModel } from "../client/api"; const CustomSeq = { val: -1000, //To ensure the custom model located at front, start from -1000, refer to constant.ts cache: new Map<string, number>(), next: (id: string) => { if (CustomSeq.cache.has(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...
cdc33ace19c04ad0
csharp
60
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace Microsoft.SemanticKernel.Agents.Chat; /// <summary> /// Defines aggregation behavior for <see cref="AggregatorTe...
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.", ...
14b9b214841ed283
rust
150
One Dark Pro
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use serde::Serialize; use crate::fingerprint::{Fingerprint, FingerprintField}; #[derive(Debug, thiserror::Error, displaydoc::Display)] pub enum FingerprintCompareError { /// Difference detected betwe...
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...
6fd4b87a452b0d42
go
172
Default Light+
package tokenizer import ( "fmt" "iter" "strings" "unicode" "github.com/ollama/ollama/logutil" ) type WordPiece struct { vocab *Vocabulary lowercase bool } // ggmlPrefix is the prefix used by GGML vocabularies to indicate word boundaries. // this differs from original word piece which uses "##" to indica...
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...
18886c36dabb975c
python
178
Default Light+
import re from .common import InfoExtractor from ..utils import ( ExtractorError, dict_get, int_or_none, join_nonempty, parse_iso8601, traverse_obj, try_get, unescapeHTML, urljoin, ) class PikselIE(InfoExtractor): _VALID_URL = r'''(?x)https?:// (?: (?: ...
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"...
8c434be798fcd5e5
go
143
Default Light+
package pikpak import ( "context" "fmt" "github.com/alist-org/alist/v3/internal/conf" "github.com/alist-org/alist/v3/internal/setting" "strconv" "github.com/alist-org/alist/v3/drivers/pikpak" "github.com/alist-org/alist/v3/internal/errs" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/al...
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"...
24631937b3286ded
java
101
Dracula
package com.macro.mall.common.api; import com.github.pagehelper.PageInfo; import org.springframework.data.domain.Page; import java.util.List; /** * 通用分页数据封装类 * Created by macro on 2019/4/19. */ public class CommonPage<T> { /** * 当前页码 */ private Integer pageNum; /** * 每页数量 */ pr...
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...
3b53bad243d2097d
csharp
181
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"...
4feb967db3f96f59
cpp
51
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "EngineResourceProvider.h" #include "Common/LocalizationSettings.h" using namespace CalculatorApp::ViewModel::Common; using namespace Platform; using namespace Windows::ApplicationModel::Resources...
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.", ...
29fd780f17b9cf06
typescript
149
GitHub Dark
import type { FormProps, FormActionType, UseFormReturnType, FormSchema } from '../types/form'; import type { NamePath, ValidateOptions } from 'ant-design-vue/lib/form/interface'; import type { DynamicProps } from '/#/utils'; import { handleRangeValue } from '../utils/formUtils'; import { ref, onUnmounted, unref, nextTi...
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...
82587e5eb56926db
csharp
247
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Net.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel.ChatCompletion; using Microsoft.SemanticKernel.Connectors.HuggingFace; using Microsoft.SemanticKernel.Embeddings; usi...
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...
986f4e8b6506af32
java
68
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...
06fc19ebf7e435b7
go
112
Default Light+
// tokenizer.go - BPE and SentencePiece tokenizer for HuggingFace models // // Based on standard BPE algorithm (Sennrich et al. 2015) with: // - GPT-2 byte-level encoding (OpenAI tiktoken) // - HuggingFace tokenizer.json pretokenizer patterns // - SentencePiece ▁-style space handling package tokenizer import "regexp"...
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" ...
5ae76ac3a494bb71
cpp
59
One Dark Pro
#include <hex/helpers/utils.hpp> #include <content/visualizer_helpers.hpp> #include <imgui.h> #include <imgui_internal.h> #include <hex/ui/imgui_imhex_extensions.h> #include <pl/patterns/pattern_array_static.hpp> #include <pl/patterns/pattern_array_dynamic.hpp> #include <pl/patterns/pattern_bitfield.hpp> namespace...
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...
be19101e16055549
csharp
143
Monokai
// Copyright (c) Microsoft. All rights reserved. #pragma warning disable CA1716 // Identifiers should not match keywords using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.SemanticKernel.S...
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...
de2ca11e543e6653
go
108
Solarized Dark
// Copyright 2017 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...
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" ...
884ac4d24cbb1db4
csharp
95
Default Light+
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, cop...
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...
ed5d685e04805799
javascript
28
Default Dark+
const { R } = require("redbean-node"); const { log } = require("../../src/util"); const Database = require("../database"); /** * Run incremental_vacuum and checkpoint the WAL. * @returns {Promise<void>} A promise that resolves when the process is finished. */ const incrementalVacuum = async () => { try { ...
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...
5878841f4ee3611b
python
46
Default Light+
import os from modules import ui_extra_networks, sd_hijack, shared from modules.ui_extra_networks import quote_js class ExtraNetworksPageTextualInversion(ui_extra_networks.ExtraNetworksPage): def __init__(self): super().__init__('Textual Inversion') self.allow_negative_prompt = True def refr...
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"...
5daa9e9032212207
python
118
Monokai
# Copyright (c) Microsoft. All rights reserved. from collections.abc import Mapping from typing import Any, TypeVar from azure.core.credentials import TokenCredential from openai import AsyncAzureOpenAI from openai.lib.azure import AsyncAzureADTokenProvider from pydantic import ValidationError from semantic_kernel.c...
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"...
ed09a6331da7f6de
typescript
50
Solarized Light
"use client" import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig, } from "@/examples/radix/ui/chart" import { Bar, BarChart, CartesianGrid, XAxis } from "recharts" const chartData = [ { month: "January", desktop: 186, mobile: 80 }, { month: "February", desktop: 305, mobile: 200 },...
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.", ...
8aa593af825003cf
python
79
Dracula
# coding: utf-8 """Find the path to xgboost dynamic library files.""" import os import platform import sys from typing import List class XGBoostLibraryNotFound(Exception): """Error thrown by when xgboost is not found""" def is_sphinx_build() -> bool: """`XGBOOST_BUILD_DOC` is used by the sphinx conf.py to ...
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...
adeac91be6afb729
go
47
Default Light+
package middlewares import ( "net/url" stdpath "path" "github.com/alist-org/alist/v3/internal/errs" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/internal/op" "github.com/alist-org/alist/v3/server/common" "github.com/gin-gonic/gin" "github.com/pkg/errors" ) func FsUp(c *gin.Co...
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...
5318fa1d5681a5bd
javascript
314
Dracula
const fs = require('fs'); const path = require('path'); let Ajv = null; try { // Prefer schema-backed validation when dependencies are installed. // The fallback validator below keeps source checkouts usable in bare environments. const ajvModule = require('ajv'); Ajv = ajvModule.default || ajvModule; } catch (...
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"...
02533d0a40f5b723
go
84
Default Light+
package deepseekocr import ( "bytes" "image" "image/color" "math" "slices" "golang.org/x/image/draw" "github.com/ollama/ollama/ml" "github.com/ollama/ollama/model/imageproc" ) type ratio struct { x, y int } func ProcessImage(ctx ml.Context, bts []byte) (ml.Tensor, ml.Tensor, []int, error) { img, _, err :...
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...
ed778550ff0c67f9
java
186
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...
6ff86a5ac7660f31
typescript
158
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { OAuthClientInformation, OAuthClientInformationFull, OAuthClientMetadata, OAuthTokens, } from '@modelcontextprotocol/sdk/shared/auth.js'; import { GoogleAuth } from 'google-auth-library'; import { OAuthUtils, F...
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...
cc2acd076313b8cf
typescript
74
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { safeJsonStringify } from './safeJsonStringify.js'; describe('safeJsonStringify', () => { it('should stringify normal objects without issues', () => { const obj = { 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...
2d3ef1021e327573
typescript
274
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { renderWithProviders } from '../../test-utils/render.js'; import { waitFor } from '../../test-utils/async.js'; import { FooterConfigDialog } 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...
4ba76d6eb5120864
typescript
178
Solarized Light
import { INTERNAL, Point, Range, SIZE_OF_INT, SIZE_OF_NODE, SIZE_OF_POINT, C } from "./constants"; import { Node } from "./node"; import { Tree } from "./tree"; // eslint-disable-next-line @typescript-eslint/no-unused-vars import { Query, QueryCapture, type QueryMatch } from "./query"; import { TreeCursor } from "./tre...
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...
16bb06f3007399ee
python
61
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from azure.identity import AzureCliCredential from semantic_kernel.agents import AssistantAgentThread, AzureAssistantAgent from semantic_kernel.connectors.ai.open_ai import AzureOpenAISettings """ The following sample demonstrates how to create an OpenAI...
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...
ea4c5558d8ca442f
rust
98
GitHub Dark
use std::io::{self, Write}; use termcolor::{ColorSpec, HyperlinkSpec, WriteColor}; /// A writer that counts the number of bytes that have been successfully /// written. #[derive(Clone, Debug)] pub(crate) struct CounterWriter<W> { wtr: W, count: u64, total_count: u64, } impl<W: Write> CounterWriter<W> { ...
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" ...
d099810c265471b8
cpp
105
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "NavCategory.h" #include "CalculatorButtonUser.h" // A trace logging provider can only be instantiated and registered once per module. // This class implements a singleton model ensure that only one ...
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.", ...
aba5a0d8dd48c240
typescript
234
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { renderWithProviders } from '../../../test-utils/render.js'; import { Scrollable } from './Scrollable.js'; import { Text, Box } from 'ink'; import { describe, it, expect, vi, beforeEach } from 'vitest'; import * as ScrollPr...
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...
01eebd55194a5be2
typescript
371
GitHub Dark
import type { UserInfo, LoginInfo } from '/#/store'; import type { ErrorMessageMode } from '/#/axios'; import { defineStore } from 'pinia'; import { store } from '/@/store'; import { RoleEnum } from '/@/enums/roleEnum'; import { PageEnum } from '/@/enums/pageEnum'; import { ROLES_KEY, TOKEN_KEY, USER_INFO_KEY, LOGIN_IN...
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" ...
dd394916a561f172
rust
61
GitHub Dark
// Author : cyrixninja // Octal to Binary Converter : Converts Octal to Binary // Wikipedia References : 1. https://en.wikipedia.org/wiki/Octal // 2. https://en.wikipedia.org/wiki/Binary_number pub fn octal_to_binary(octal_str: &str) -> Result<String, &'static str> { let octal_str = octal_...
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.", ...
f8bfd36cd0d14ad4
rust
50
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 ShellConfig<'a> { pub format: &'a str, pub bash_indicator: &'a str, pub fish_indicator...
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.", ...
5f77eac9eb1fb9d1
csharp
404
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using System.Text.Json.Nodes; using Microsoft.Extensions.AI; using OpenAI.Chat; namespace Microsoft.SemanticKernel.Connectors.OpenAI; /// <summary> /// Represents a function 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...
e97abcde783217ca
javascript
139
Default Dark+
const NotificationProvider = require("./notification-provider"); const axios = require("axios"); const { DOWN, UP } = require("../../src/util"); class Ntfy extends NotificationProvider { name = "ntfy"; /** * @inheritdoc */ async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {...
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" ...
f2b9c649e4c242ab
java
80
Default Light+
package com.thealgorithms.maths; /** * Utility class for calculating Leonardo Numbers. * <p> * Leonardo numbers are a sequence of numbers defined by the recurrence: * L(n) = L(n-1) + L(n-2) + 1, with L(0) = 1 and L(1) = 1 * <p> * The sequence begins: 1, 1, 3, 5, 9, 15, 25, 41, 67, 109, 177, ... * <p> * This cl...
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...