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
19019cffdaa2e9bc
python
51
Dracula
""" Using xgboost on GPU devices ============================ Shows how to train a model on the `forest cover type <https://archive.ics.uci.edu/ml/datasets/covertype>`_ dataset using GPU acceleration. The forest cover type dataset has 581,012 rows and 54 features, making it time consuming to process. We compare the ru...
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.", ...
787b4d320120e70d
rust
381
GitHub Dark
use std::{ cmp::{max, Ordering}, iter::FromIterator, mem, ops::Not, }; /// An internal node of an `AVLTree`. struct AVLNode<T: Ord> { value: T, height: usize, left: Option<Box<AVLNode<T>>>, right: Option<Box<AVLNode<T>>>, } /// A set based on an AVL Tree. /// /// An AVL Tree is a self-...
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...
b37db6fb8022a1af
python
257
Monokai
""" This file is part of ComfyUI. Copyright (C) 2024 Stability AI 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 3 of the License, or (at your option) any late...
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...
17effb8492a4612c
python
248
Solarized Light
import os import json import time import requests from dotenv import load_dotenv from serpapi.google_search import GoogleSearch from openai import OpenAI # ANSI color codes class Colors: CYAN = '\033[96m' YELLOW = '\033[93m' GREEN = '\033[92m' RED = '\033[91m' MAGENTA = '\033[95m' BLUE = '\033[...
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"...
f0fff87d0f978aa1
java
50
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
e4d7737aa17d83b2
javascript
60
Default Dark+
const { checkLogin } = require("../util-server"); const { Proxy } = require("../proxy"); const { sendProxyList } = require("../client"); const { UptimeKumaServer } = require("../uptime-kuma-server"); const server = UptimeKumaServer.getInstance(); /** * Handlers for proxy * @param {Socket} socket Socket.io instance ...
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...
77c1e0a594254ae7
csharp
70
Default Light+
// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
147b9cef287cf602
cpp
142
Solarized Dark
// ----------------------------- OpenPose C++ API Tutorial - Example 1 - Body from image ----------------------------- // It reads an image, process it, and displays it with the pose keypoints. // Third-party dependencies #include <opencv2/opencv.hpp> // Command-line user interface #define OPENPOSE_FLAGS_DISABLE_POSE ...
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" ...
e893399da144650b
typescript
87
Default Dark+
import Head from 'next/head'; import { Button } from '~/ui'; import Container from '~/components/shared/Container'; const features = [ { description: "Preparing resumes for your next role? Browse for our community's best resumes. Upload yours and source for community reviews. Start your next job/internshi...
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...
acd13a0deb03a904
java
50
Solarized Dark
/** * Many well-known cryptographic operations require modular exponentiation. That is, given integers x, * y and n, compute x * y mod n. In this question, you are tasked to program an efficient way to execute * this calculation. * Input * The input consists of a line containing the number c of datasets, followed...
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...
b766990093f36dff
rust
102
One Dark Pro
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::env; use std::ffi::CStr; use std::path::Path; use std::ptr::null; use vmm_sys_util::syscall::SyscallReturnCode; use super::{JailerError, to_cstring}; const OLD_ROOT_DIR: &CStr = c"old_root"; co...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
d7f782dcd0a3dc6c
csharp
46
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...
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...
56b7e87cec003805
java
42
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
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" ...
efffab6e4a61003a
rust
23
One Dark Pro
// Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 pub mod device; mod event_handler; pub mod metrics; pub mod persist; mod request; use vm_memory::GuestAddress; pub use self::device::{VirtioMem, VirtioMemError, VirtioMemStatus}; use crate::arch::FIRST_A...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
5c97145e302673eb
go
46
Default Light+
//go:build windows || darwin // package logrotate provides utilities for rotating logs // TODO (jmorgan): this most likely doesn't need it's own // package and can be moved to app where log files are created package logrotate import ( "log/slog" "os" "strconv" "strings" ) const MaxLogFiles = 5 func Rotate(filen...
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...
9ec7d5044df33bbe
python
231
Solarized Light
""" https://en.wikipedia.org/wiki/Doubly_linked_list """ class Node: def __init__(self, data): self.data = data self.previous = None self.next = None def __str__(self): return f"{self.data}" class DoublyLinkedList: def __init__(self): self.head = None sel...
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...
72dd8dc333565043
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...
b3b8edc0de906426
csharp
66
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 ...
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...
b140017e63283f70
csharp
77
One Dark Pro
namespace ShareX.UploadersLib { partial class TextUploadForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
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" ...
98ce10cce1b6b4cf
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...
f5f50cd4daad7d4b
javascript
38
Default Dark+
const NotificationProvider = require("./notification-provider"); const axios = require("axios"); class Pushy extends NotificationProvider { name = "pushy"; /** * @inheritdoc */ async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { const okMsg = "Sent Successfully."; ...
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" ...
b547b7cd80676a3b
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 ...
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" ...
d9a8fe90acb9b01c
java
148
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
65939b975b508f9c
typescript
309
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi } from 'vitest'; import { FileExclusions, BINARY_EXTENSIONS, extractExtensionsFromPatterns, } from './ignorePatterns.js'; import type { Config } from '../config/config.js'; // Mock the memor...
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" ...
bf58a9832453ef00
csharp
65
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel.Agents.Chat; using Moq; using Xunit; namespace SemanticKernel.Agents.UnitTests.Core.Chat; /// <summary> /// Unit testing of <see cref="AgentGroupChatSettings"/>. /// </summary> public class AgentGroupChatSettingsTests { /// <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.", ...
1642d931e7837f50
go
209
Default Light+
package gguf import ( "testing" "github.com/google/go-cmp/cmp" ) func split(name string, values map[string][]any) (matched []any, unmatched []any) { for key, value := range values { if key == name { matched = value } else { unmatched = append(unmatched, value...) } } return } func TestValue(t *test...
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...
cdc4d6e06d38a73b
typescript
109
Default Dark+
import { Fragment, useState } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import { HorizontalDivider, useToast } from '~/ui'; import DiscardDraftDialog from './DiscardDraftDialog'; import type { ContributeQuestionFormProps } from './forms/ContributeQuestionForm'; import ContributeQuestionForm...
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" ...
f44bbf326f7f4b9a
java
25
Dracula
package com.macro.mall.config; import com.aliyun.oss.OSSClient; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * OSS对象存储相关配置 * Created by macro on 2018/5/17. */ @Configuration public cla...
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"...
dec25da7f3dabe8a
javascript
79
Dracula
/** * The minimalistic (ad hoc) version of a DisjointSet (or a UnionFind) data structure * that doesn't have external dependencies and that is easy to copy-paste and * use during the coding interview if allowed by the interviewer (since many * data structures in JS are missing). * * Time Complexity: * * - Const...
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.", ...
0cf9787af28e47cb
cpp
221
Monokai
// // Copyright(c) 2018 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // // latency.cpp : spdlog latency benchmarks // #include "benchmark/benchmark.h" #include "spdlog/spdlog.h" #include "spdlog/async.h" #include "spdlog/sinks/basic_file_sink.h" #include "spdlog/sinks/dai...
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...
ade626d4e940260a
java
208
Monokai
package com.termux.shared.markdown; import android.content.Context; import android.graphics.Typeface; import android.text.Spanned; import android.text.style.AbsoluteSizeSpan; import android.text.style.BackgroundColorSpan; import android.text.style.BulletSpan; import android.text.style.QuoteSpan; import android.text.st...
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...
793b8c70a9f11b9a
python
234
Solarized Light
""" FP-GraphMiner - A Fast Frequent Pattern Mining Algorithm for Network Graphs A novel Frequent Pattern Graph Mining algorithm, FP-GraphMiner, that compactly represents a set of network graphs as a Frequent Pattern Graph (or FP-Graph). This graph can be used to efficiently mine frequent subgraphs including maximal fr...
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" ...
0774c7a6bc4c241f
typescript
143
Solarized Light
"use client" import * as React from "react" import { Example, ExampleWrapper, } from "@/registry/bases/base/components/example" import { Item, ItemActions, ItemContent, ItemGroup, ItemMedia, ItemTitle, } from "@/registry/bases/base/ui/item" import { Progress, ProgressLabel, ProgressValue, } from...
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...
cd591df5f5967bf5
java
106
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...
0d06f70553f69464
typescript
173
Solarized Light
import type { Action } from "../controllers/v1/types"; import type { BrandingProfile } from "../types/branding"; export type PageOptions = { includeMarkdown?: boolean; includeExtract?: boolean; onlyMainContent?: boolean; includeHtml?: boolean; includeRawHtml?: boolean; fallback?: boolean; fetchPageConten...
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...
725987a5e0dfe5e6
typescript
92
GitHub Dark
import { openWindow } from '..'; import { dataURLtoBlob, urlToBase64 } from './base64Conver'; /** * Download online pictures * @param url * @param filename * @param mime * @param bom */ export function downloadByOnlineUrl(url: string, filename: string, mime?: string, bom?: BlobPart) { urlToBase64(url).then((ba...
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...
c4eef5bd7d5a015c
java
233
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.", ...
f22d7093b5610505
java
70
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...
9df20d5974138db4
java
35
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...
5168b775c7b79bcb
csharp
74
Default Light+
// Copyright (c) 2024 Holger Schmidt // // 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, // publis...
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" ...
12832c9e2e49a6dc
java
113
GitHub Dark
package org.jeecg.config.sign.aspect; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Pointcut; import org.aspectj.lang.reflect.MethodSignature; import org.jeecg.config.sign.ann...
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...
2c4efdc28337f4d6
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 ...
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...
3fa3c564a214ec48
csharp
34
Monokai
// Copyright (c) Microsoft. All rights reserved. namespace Microsoft.SemanticKernel; /// <summary> /// Class for extensions methods to define functions using prompt markdown format. /// </summary> public static class MarkdownKernelExtensions { /// <summary> /// Creates a <see cref="KernelFunction"/> instance...
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...
9421c343475636a7
typescript
249
GitHub Dark
import { HandlerEnum, tabsThemeOptions} from './enum'; import { updateHeaderBgColor, updateSidebarBgColor } from '/@/logics/theme/updateBackground'; import { updateColorWeak } from '/@/logics/theme/updateColorWeak'; import { updateGrayMode } from '/@/logics/theme/updateGrayMode'; import { useAppStore } from '/@/store/...
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.", ...
c8c67a471091ae31
python
34
Monokai
# Copyright (c) Microsoft. All rights reserved. import logging from typing import Any from pydantic import Field from semantic_kernel.connectors.ai.prompt_execution_settings import PromptExecutionSettings logger = logging.getLogger(__name__) class OpenAIAudioToTextExecutionSettings(PromptExecutionSettings): "...
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...
b52cbd3e0809f806
go
390
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...
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...
24334977a533fea9
cpp
122
Default Light+
#include "models.h" llm_build_olmo::llm_build_olmo(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_tensor * 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" ...
4692151213996a37
java
44
Monokai
package com.termux.shared.net.socket.local; import com.termux.shared.errors.Errno; public class LocalSocketErrno extends Errno { public static final String TYPE = "LocalSocket Error"; /** Errors for {@link LocalSocketManager} (100-150) */ public static final Errno ERRNO_START_LOCAL_SOCKET_LIB_LOAD_FAIL...
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...
532bbd80169312f2
typescript
87
Solarized Light
import * as React from "react" import Image from "next/image" import { Example, ExampleWrapper, } from "@/registry/bases/base/components/example" import { ScrollArea, ScrollBar } from "@/registry/bases/base/ui/scroll-area" import { Separator } from "@/registry/bases/base/ui/separator" const tags = Array.from({ le...
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"...
8dba64605aca5360
typescript
74
GitHub Dark
import {defHttp} from '/@/utils/http/axios'; import { useMessage } from "/@/hooks/web/useMessage"; const { createConfirm } = useMessage(); enum Api { list = '/airag/prompts/list', save='/airag/prompts/add', edit='/airag/prompts/edit', deleteOne = '/airag/prompts/delete', deleteBatch = '/airag/prompts/delete...
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" ...
5b3059fa4aeccf13
rust
281
Solarized Dark
use crate::{ config::Config, core::{timer::Timer, tray::Tray}, process::AsyncHandler, }; use clash_verge_logging::{Type, logging, logging_error}; use crate::utils::window_manager::WindowManager; use anyhow::{Context as _, Result}; use delay_timer::prelude::TaskBuilder; use std::sync::atomic::{AtomicU8, At...
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"...
8be7500cc4f25299
csharp
182
Monokai
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace System.Yaml { /// <summary> /// Validates a text as a global tag in YAML. /// /// <a href="http://www.faqs.org/rfcs/rfc4151.html">RFC4151 - The 'tag' URI Scheme</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" ...
35addcad41d1f285
typescript
92
Solarized Light
import { Example, ExampleWrapper, } from "@/registry/bases/radix/components/example" import { Button } from "@/registry/bases/radix/ui/button" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/registry/bases/radix/ui/dialog" import { HoverCard, Ho...
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...
1a565c893c158c44
python
49
Solarized Light
""" Title : Calculating the speed of sound Description : The speed of sound (c) is the speed that a sound wave travels per unit time (m/s). During propagation, the sound wave propagates through an elastic medium. Sound propagates as longitudinal waves in liquids and gases and as transverse waves in so...
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...
8469eb42585068fa
csharp
67
Default Light+
#nullable enable // Copyright (c) 2017 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...
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.", ...
902b6f3f8a29ed18
typescript
278
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, expect, it } from 'vitest'; import { MockAgentSession } from './mock.js'; import type { AgentEvent } from './types.js'; describe('MockAgentSession', () => { it('should yield queued events on send and stream', ...
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" ...
a09b92c14eb5af51
go
43
Default Light+
package db import ( "fmt" "strings" log "github.com/sirupsen/logrus" "github.com/alist-org/alist/v3/internal/conf" "github.com/alist-org/alist/v3/internal/db" "github.com/alist-org/alist/v3/internal/search/searcher" ) var config = searcher.Config{ Name: "database", AutoUpdate: true, } func init() { ...
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...
03fe9091d601a517
rust
117
GitHub Dark
use super::strongly_connected_components::StronglyConnectedComponents as SCCs; pub type Condition = (i64, i64); type Graph = Vec<Vec<usize>>; #[inline] fn variable(var: i64) -> usize { if var < 0 { (((-var) << 1) + 1) as usize } else { (var << 1) as usize } } /// Returns an assignment tha...
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.", ...
1d4938958d11b48f
java
101
Solarized Dark
/* * Copyright 2012-2022 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
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...
472abbe80dcc3f54
cpp
388
Monokai
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // Thread safe logger (except for set_error_handler()) // Has name, log level, vector of std::shared sink pointers and formatter // Upon each log write the logger: //...
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"...
28aa94acd5db7857
rust
181
Dracula
use hbb_common::{bail, ResultType}; use tiny_skia::{FillRule, Paint, PathBuilder, PixmapMut, Point, Rect, Transform}; use ttf_parser::Face; // A helper struct to bridge `ttf-parser` and `tiny-skia`. struct PathBuilderWrapper<'a> { path_builder: &'a mut PathBuilder, transform: Transform, } impl ttf_parser::Outl...
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...
bc2a2df74a830fee
rust
118
GitHub Dark
use std::collections::VecDeque; // All four potential movements from a cell are listed here. fn validate(matrix: &[Vec<i32>], visited: &[Vec<bool>], row: isize, col: isize) -> bool { // Check if it is possible to move to the position (row, col) from the current cell. let (row, col) = (row as usize, col as usi...
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...
46d9849a937430ce
java
69
GitHub Dark
package org.jeecg.modules.system.job; import cn.hutool.core.collection.CollectionUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import lombok.extern.slf4j.Slf4j; import org.jeecg.common.api.dto.message.MessageDTO; import org.jeecg.common.constant.enums.NoticeTypeEnum; import org.jeecg....
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.", ...
1e18bdb863d22b03
typescript
113
Default Dark+
import { useRouter } from 'next/router'; import { BookmarkSlashIcon } from '@heroicons/react/20/solid'; import { ArrowRightIcon } from '@heroicons/react/24/outline'; import { Button, useToast } from '~/ui'; import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics'; import DashboardOfferCard from '~/comp...
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...
acd76df8b83bcdef
cpp
49
One Dark Pro
#include "ggml-backend-dl.h" #ifdef _WIN32 dl_handle * dl_load_library(const fs::path & path) { // suppress error dialogs for missing DLLs DWORD old_mode = SetErrorMode(SEM_FAILCRITICALERRORS); SetErrorMode(old_mode | SEM_FAILCRITICALERRORS); HMODULE handle = LoadLibraryW(path.wstring().c_str()); ...
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" ...
71c92cd4da2626f7
java
37
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"...
f4c54c1d98251704
csharp
80
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; using Azure.AI.Agents.Persistent; namespace Microsoft.SemanticKernel.Agents.AzureAI; /// <summary> /// Provides a <see cref="AgentFactory"/> which creates instances of <see c...
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...
dc8fe93c5d03aef0
csharp
42
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Net.Http; using OpenAI; using OpenAI.Responses; namespace SemanticKernel.Agents.UnitTests.OpenAI; /// <summary> /// Base tests which use <see cref="ResponsesClient"/> /// </summ...
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...
47ffb79a8395a8b3
typescript
97
Default Dark+
import { useState } from 'react'; import type { TypeaheadOption } from '~/ui'; import { Button } from '~/ui'; import { useToast } from '~/ui'; import { HorizontalDivider } from '~/ui'; import CitiesTypeahead from '~/components/shared/CitiesTypeahead'; import CompaniesTypeahead from '~/components/shared/CompaniesTypeah...
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...
4ab84ccc8472db70
cpp
310
One Dark Pro
#include <sycl/sycl.hpp> #include "dpct/helper.hpp" #include "common.hpp" #include "ggml.h" #include "gated_delta_net.hpp" #include <cmath> template <int S_v, bool KDA> void gated_delta_net_sycl(const float * q, const float * k, const float * v, ...
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...
31c688f7b433cbcb
typescript
133
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { sortSessions, findTextMatches, filterSessions } from './utils.js'; import type { SessionInfo } from '../../../utils/sessionUtils.js'; describe('SessionBrowser utils', () => {...
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.", ...
34022c5ec87ec138
javascript
23
Default Dark+
/** * Error whose message is a translation key. * @augments Error */ class TranslatableError extends Error { /** * Indicates that the error message is a translation key. */ msgi18n = true; /** * Create a TranslatableError. * @param {string} key - Translation key present in src/lang/e...
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...
d42a152cda9a85fb
python
83
Default Light+
from .common import InfoExtractor from ..utils import int_or_none, parse_qs class ToggoIE(InfoExtractor): IE_NAME = 'toggo' _VALID_URL = r'https?://(?:www\.)?toggo\.de/(?:toggolino/)?[^/?#]+/(?:folge|video)/(?P<id>[^/?#]+)' _TESTS = [{ 'url': 'https://www.toggo.de/weihnachtsmann--co-kg/folge/ein-g...
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"...
bd0e04fd0553f248
typescript
314
Solarized Light
/* eslint-disable react/no-children-prop */ "use client" import * as React from "react" import { useForm } from "@tanstack/react-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardFooter } from "@/registry/new-york-v4...
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...
a4c047f8457a8691
csharp
200
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...
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...
5196b6532591b213
python
21
Solarized Light
def wave(txt: str) -> list: """ Returns a so called 'wave' of a given string >>> wave('cat') ['Cat', 'cAt', 'caT'] >>> wave('one') ['One', 'oNe', 'onE'] >>> wave('book') ['Book', 'bOok', 'boOk', 'booK'] """ return [ txt[:a] + txt[a].upper() + txt[a + 1 :] for a 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...
94f7a7e8b12b4ef4
javascript
61
Default Dark+
import React from 'react'; import QuestionGroups from './QuestionGroups.json'; function DifficultyLabel({ difficulty }) { return ( <span style={{ fontWeight: 600, color: { Easy: 'rgb(0, 184, 163)', Medium: 'rgb(255, 192, 30)', Hard: 'rgb(255, 55, 95)', ...
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" ...
05c28397b75ab8e4
csharp
99
One Dark Pro
#region License Information (GPL v3) /* ShareX - A program that allows you to take screenshots and share any file type Copyright (c) 2007-2026 ShareX Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
51ab9e9515cb9574
java
230
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...
fd629709f983a533
rust
35
Solarized Dark
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct HaskellConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
861d55a5ac6c7cdf
typescript
118
Solarized Light
import { supabase_service } from "../../services/supabase"; import { config } from "../../config"; import { logger } from "../logger"; import { normalizeUrl, normalizeUrlOnlyHostname } from "../canonical-url"; interface LlmsTextCache { origin_url: string; llmstxt: string; llmstxt_full: string; max_urls: number...
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"...
1a89019cda51fb3a
cpp
157
One Dark Pro
/** * @author huihut * @E-mail:huihut@outlook.com * @version 创建时间:2016年9月23日 * 说明:本程序实现了一个具有头结点的单链表。 */ #include "stdio.h" #include "stdlib.h" #include "malloc.h" //5个常量定义 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define OVERFLOW -1 //类型定义 typedef int Status; typedef int ElemType; //测试程序长度定义 #def...
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" ...
0bcaff710af5a0aa
csharp
39
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"...
780d7fc36fd6afa3
typescript
55
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { validateTheme } from './theme.js'; import { themeManager } from '../ui/themes/theme-manager.js'; import { type LoadedSettings } from '../config/settings.js'; ...
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...
bc73365482b49f57
cpp
53
Dracula
/** * Copyright 2025, XGBoost Contributors */ #pragma once #include <xgboost/base.h> // for GradientPair #include <xgboost/linalg.h> // for Matrix #include <xgboost/logging.h> #include <cstddef> // for size_t namespace xgboost { /** * @brief Container for gradient produced by objective. */ struct GradientCo...
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...
167837a9613ec3b3
cpp
36
Solarized Light
#pragma once #include <BasicView/StdTable.h> #include "FileParser.h" #include "MagicMenu.h" #include "Navigation.h" class MiniMemoryMap : public StdTable, public MagicMenu<MiniMemoryMap> { Q_OBJECT public: explicit MiniMemoryMap(Navigation* navigation, QWidget* parent = nullptr); void loadFileParser(File...
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" ...
993f0599a9fb642d
python
60
Solarized Light
# https://en.m.wikipedia.org/wiki/Electric_power from __future__ import annotations from typing import NamedTuple class Result(NamedTuple): name: str value: float def electric_power(voltage: float, current: float, power: float) -> tuple: """ This function can calculate any one of the three (voltage...
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"...
d4fd8eea2307dd37
csharp
102
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
0b41ef249d8421b7
go
50
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...
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...
e4780f7c276f008d
javascript
28
Dracula
import { defineConfig } from 'vite' export default defineConfig({ build: { outDir: 'dist/preload-disabled', minify: 'terser', terserOptions: { format: { beautify: true, }, compress: { passes: 3, }, }, rollupOptions: { output: { // manualChunks...
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...
00f42567f1fec300
typescript
54
Solarized Light
"use client" import { Checkbox } from "@/examples/radix/ui/checkbox" import { Field, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldTitle, } from "@/examples/radix/ui/field" import { Label } from "@/examples/radix/ui/label" export default function CheckboxDemo() { return ( <FieldGroup ...
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...
1da7062f4e8e9d93
typescript
49
GitHub Dark
import type { AppRouteModule } from '/@/router/types'; import { LAYOUT } from '/@/router/constant'; const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue'); import { t } from '/@/hooks/web/useI18n'; const iframe: AppRouteModule = { path: '/frame', name: 'Frame', component: LAYOUT, redirect: '/frame/...
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...
8690757fb4b5938d
python
328
Monokai
"""Metadata extraction for asset scanning. Tier 1: Filesystem metadata (zero parsing) Tier 2: Safetensors header metadata (fast JSON read only) """ from __future__ import annotations import json import logging import mimetypes import os import struct from dataclasses import dataclass from typing import Any from uti...
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...
b79535edb106a007
typescript
79
GitHub Dark
import { MenuModeEnum } from '/@/enums/menuEnum'; import type { Menu as MenuType } from '/@/router/types'; import type { MenuState } from './types'; import { computed, Ref, toRaw } from 'vue'; import { unref } from 'vue'; import { uniq } from 'lodash-es'; import { useMenuSetting } from '/@/hooks/setting/useMenuSettin...
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...
6482ea732617cf21
typescript
56
One Dark Pro
import { pipe } from "fp-ts/function" import * as TE from "fp-ts/TaskEither" import { platform } from "~/platform" import { runMutation } from "../GQLClient" import { RevokeTeamInvitationDocument, RevokeTeamInvitationMutation, RevokeTeamInvitationMutationVariables, TeamAccessRole, } from "../graphql" import { E...
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.", ...
7649c568c5e4839a
rust
51
One Dark Pro
use axum::Router; use std::sync::Arc; use tokio_util::sync::CancellationToken; use tower_http::cors::CorsLayer; use crate::route; use crate::state::AppState; #[tracing::instrument(skip(state, cancellation_token, app_handle))] pub async fn run_server( state: Arc<AppState>, cancellation_token: CancellationToken...
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.", ...
09686c6145a262ed
python
427
Default Light+
import functools import json from .common import InfoExtractor from ..utils import ( ExtractorError, OnDemandPagedList, filter_dict, int_or_none, parse_qs, str_or_none, traverse_obj, unified_timestamp, url_or_none, ) class NiconicoChannelPlusBaseIE(InfoExtractor): _WEBPAGE_BAS...
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...
ba3fc9989419de0b
java
35
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
dc4c05d5816a0903
csharp
46
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 ...
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...
db7e79fbb04c4c4a
java
83
Default Light+
package com.thealgorithms.maths; import java.util.ArrayList; import java.util.List; /** * Sieve of Eratosthenes Algorithm * An efficient algorithm to find all prime numbers up to a given limit. * * Algorithm: * 1. Create a boolean array of size n+1, initially all true * 2. Mark 0 and 1 as not prime * 3. For ea...
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...