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
0cf1ff26bfe010c4
cpp
30
One Dark Pro
// // Created by xiemenghui on 2018/7/21. // #include "BridgeMain.h" void BridgeMain() { // Create electrical appliances (electric lights, electric fans) IElectricalEquipment * light = new Light(); IElectricalEquipment * fan = new Fan(); // Create switch (pull chain switch, two-position switch) /...
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...
fc7e1d9e9a9663ea
python
94
Monokai
# Copyright (c) Microsoft. All rights reserved. import logging from enum import Enum from typing import Any, ClassVar, Literal, TypeVar from xml.etree.ElementTree import Element # nosec from pydantic import ConfigDict, Field from semantic_kernel.contents.const import ANNOTATION_CONTENT_TAG, ContentTypes from semant...
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" ...
d9b44f076ae47540
cpp
350
One Dark Pro
#include "content/views/view_yara.hpp" #include <hex/api/imhex_api/hex_editor.hpp> #include <hex/api/content_registry/file_type_handler.hpp> #include <hex/api/project_file_manager.hpp> #include <hex/helpers/fs.hpp> #include <hex/helpers/default_paths.hpp> #include <toasts/toast_notification.hpp> #include <popups/pop...
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...
0f43eaa9ae2d9516
csharp
145
Default Light+
// Copyright (c) 2020 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...
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...
a5a1326c2d6eee9f
typescript
457
Monokai
/* eslint-disable @typescript-eslint/no-use-before-define */ import type {AnyObject} from '../types/basic.js'; import type {ChartMeta} from '../types/index.js'; import type { ResolverObjectKey, ResolverCache, ResolverProxy, DescriptorDefaults, Descriptor, ContextCache, ContextProxy } from './helpers.confi...
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...
2d6f9e65271fc6e8
typescript
483
Solarized Dark
import { Delete, ExpandLess, ExpandMore } from '@mui/icons-material' import { Button, Divider, List, ListItem, ListItemText, ListItemButton, IconButton, TextField, Select, MenuItem, } from '@mui/material' import { forwardRef, useImperativeHandle, useState, useMemo } from 'react' import { useTranslat...
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.", ...
9730271ad7e66d73
cpp
78
Solarized Light
#include "StdIconTable.h" /************************************************************************************ Data Management ************************************************************************************/ void StdIconTable::setRowIcon(duint r, const QIcon & icon) { mIcon.a...
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...
1d7298e872269239
typescript
24
Default Light+
import dynamic from "next/dynamic"; import "../common.scss"; // Since client components get prerenderd on server as well hence importing the excalidraw stuff dynamically // with ssr false const Excalidraw = dynamic( async () => (await import("../excalidrawWrapper")).default, { ssr: false, }, ); export defa...
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...
4fdc2b4a456fd9ff
rust
129
GitHub Dark
use serde::{ de::{Error, SeqAccess, Visitor}, {Deserialize, Deserializer, Serialize, Serializer}, }; use crate::{Glob, GlobSet, GlobSetBuilder}; impl Serialize for Glob { fn serialize<S: Serializer>( &self, serializer: S, ) -> Result<S::Ok, S::Error> { serializer.serialize_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" ...
ba255101e748fa8f
javascript
65
Default Dark+
console.log("== Uptime Kuma Remove 2FA Tool =="); console.log("Loading the database"); const Database = require("../server/database"); const { R } = require("redbean-node"); const readline = require("readline"); const TwoFA = require("../server/2fa"); const args = require("args-parser")(process.argv); const rl = readl...
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" ...
99997ed11944df90
java
94
Default Light+
package com.thealgorithms.backtracking; /** * Word Search Problem * * This class solves the word search problem where given an m x n grid of characters (board) * and a target word, the task is to check if the word exists in the grid. * The word can be constructed from sequentially adjacent cells (horizontally or ...
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"...
5a12901e072a1006
go
119
Solarized Dark
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
e38ffb8477523d61
javascript
399
GitHub Dark
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { 'use strict'; if (typeof exports == 'object' && typeof module == 'object') // CommonJS mod(require('../../lib/codemirror')); else if (typeof define == 'function' &&...
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...
e7889d3926826dd0
csharp
277
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...
4d415044a26c7444
csharp
77
Default Light+
// // DestructorDeclaration.cs // // Author: // Mike Krüger <mkrueger@novell.com> // // Copyright (c) 2009 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // i...
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...
a08fbeabcf816627
rust
65
Solarized Dark
use anyhow::Result; use smartstring::alias::String; pub type CmdResult<T = ()> = Result<T, String>; // Command modules pub mod app; pub mod backup; pub mod clash; pub mod lightweight; pub mod media_unlock_checker; pub mod network; pub mod profile; pub mod proxy; pub mod runtime; pub mod save_profile; pub mod service;...
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...
cf855876790a1800
go
90
Default Light+
package gguf import ( "encoding/binary" "iter" "log/slog" ) type lazy[T any] struct { count uint64 next func() (T, bool) stop func() values []T // successFunc is called when all values have been successfully read. successFunc func() error } func newLazy[T any](f *File, fn func() (T, error)) (*lazy[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" ...
234e7183d43f89a6
python
63
Monokai
from typing_extensions import override import torch import comfy.utils from comfy_api.latest import ComfyExtension, io class SD_4XUpscale_Conditioning(io.ComfyNode): @classmethod def define_schema(cls): return io.Schema( node_id="SD_4XUpscale_Conditioning", category="conditioni...
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...
3fbaf1129029e5d7
java
160
Default Dark+
package org.schabi.newpipe.settings; import android.content.Context; import android.os.Bundle; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.preference.Preference; import org.schabi.newpipe.DownloaderImpl; import org.schabi.newpipe.R; impo...
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.", ...
c197d7697d6d628f
csharp
84
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...
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.", ...
fb111cf6871b86f3
javascript
26
Default Dark+
export let SECONDS_A_MINUTE = 60; export let SECONDS_A_HOUR = SECONDS_A_MINUTE * 60; export let SECONDS_A_DAY = SECONDS_A_HOUR * 24; export let SECONDS_A_WEEK = SECONDS_A_DAY * 7; export let MILLISECONDS_A_SECOND = 1e3; export let MILLISECONDS_A_MINUTE = SECONDS_A_MINUTE * MILLISECONDS_A_SECOND; export let MILLISECONDS...
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" ...
abfcf34042aa86b7
rust
495
Solarized Light
use std::collections::HashMap; use serde::{Deserialize, Serialize}; use crate::{ crawl::{CrawlErrorsResponse, CrawlStatus, CrawlStatusTypes}, scrape::ScrapeOptions, FirecrawlApp, FirecrawlError, API_VERSION, }; #[serde_with::skip_serializing_none] #[derive(Deserialize, Serialize, Debug, Default, Clone)] ...
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" ...
0ad88510dcfc48df
csharp
64
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; namespace DependencyInjection; // These examples show how to use HttpClient and HttpClientFactory within SK SDK. public class HttpClient_Registration(ITestOutputHelper output) : BaseTest(...
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.", ...
2e5872c5da8453a5
python
162
Solarized Light
""" Python implementation of the MSD radix sort algorithm. It used the binary representation of the integers to sort them. https://en.wikipedia.org/wiki/Radix_sort """ from __future__ import annotations def msd_radix_sort(list_of_ints: list[int]) -> list[int]: """ Implementation of the MSD radix sort algorit...
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...
1024de08627b74e1
csharp
137
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Text.Json; using Microsoft.SemanticKernel.Agents; using Moq; using Xunit; namespace SemanticKernel.Agents.UnitTests; public sealed class AgentExtensionsTests { [Fact] public void AsAIAgent_WithValidParameters_ReturnsSemanticKernelAI...
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...
53c82d0f1c1c6046
csharp
345
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...
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"...
6248998c909d47b0
go
95
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...
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...
78995f187d0b16c3
cpp
47
One Dark Pro
#include "../node_context.h" #include "../op_table.h" #include "../utils.h" #include <memory> #include <openvino/op/add.hpp> #include <openvino/op/constant.hpp> #include <openvino/op/divide.hpp> #include <openvino/op/multiply.hpp> #include <openvino/op/power.hpp> #include <openvino/op/reduce_mean.hpp> #include <openvi...
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...
1e54045006a0a7ed
csharp
87
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...
99b67ee5623fdcce
csharp
137
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.ClientModel; using System.Net.Http; using Azure.Core; using Microsoft.SemanticKernel.Agents.OpenAI; using Moq; using OpenAI; using Xunit; namespace SemanticKernel.Agents.UnitTests.OpenAI; /// <summary> /// Unit testing of <see cref="OpenAICl...
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...
36802c30f5e84264
cpp
62
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
f1d6bf2eb722295d
csharp
24
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; namespace Microsoft.Extensions.VectorData; /// <summary> /// Defines a base class for filter clauses. /// </summary> /// <remarks> /// A <see cref="FilterClause"/> is used to request that the underlying search service should /// filter search results ba...
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"...
67bb304a3ab5ccf2
rust
124
Default Dark+
mod admin; pub mod core; mod icons; mod identity; mod notifications; mod push; mod web; use rocket::serde::json::Json; use serde_json::Value; pub use crate::api::{ admin::catchers as admin_catchers, admin::routes as admin_routes, core::catchers as core_catchers, core::purge_auth_requests, core::pu...
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...
8938a3769e9470dc
java
61
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
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...
2ea8f9c0d9b94de9
csharp
44
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...
70524f121d754e0d
javascript
56
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ // // 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...
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" ...
30d3672e371dbce4
javascript
56
Default Dark+
// @ts-check const icons = { star: `<path fill-rule="evenodd" d="M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.75.75 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25zm0 2.445L6.615 5...
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"...
6dfe5d399cbb2c10
java
39
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"...
523e6cefcd27b69d
python
26
Dracula
from typing import Annotated, Any from fastapi import Depends, FastAPI app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = s...
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...
4c35b89e589b7d8f
csharp
363
Monokai
using System; using System.IO; using System.Text; using winPEAS._3rdParty.BouncyCastle.crypto.util; using winPEAS._3rdParty.BouncyCastle.math; namespace winPEAS._3rdParty.BouncyCastle.asn1 { public class DerObjectIdentifier : Asn1Object { private readonly string identifier; private by...
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...
cabea64020a40f66
typescript
135
Default Light+
import clsx from "clsx"; import { useCallback, useEffect, useRef, useState } from "react"; import { KEYS, normalizeInputColor } from "@excalidraw/common"; import { getShortcutKey } from "../..//shortcut"; import { useAtom } from "../../editor-jotai"; import { t } from "../../i18n"; import { useEditorInterface } from ...
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...
4832436aeec2a9c3
cpp
31
Default Light+
#pragma once #include "ggml-backend.h" #ifdef __cplusplus extern "C" { #endif #define RPC_PROTO_MAJOR_VERSION 3 #define RPC_PROTO_MINOR_VERSION 6 #define RPC_PROTO_PATCH_VERSION 0 #define GGML_RPC_MAX_SERVERS 16 // backend API GGML_BACKEND_API ggml_backend_t ggml_backend_rpc_init(const char * endpoi...
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...
084d150ecc2bb4d0
csharp
152
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.ComponentModel; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.Agents; using Microsoft.SemanticKernel.ChatCompletion; namespace Agents; /// <summary> /// Demonstrate consuming "streaming" message for <see cref="ChatCompletionAgent"/>. /// ...
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" ...
89e44e6ef5257e72
java
84
Solarized Dark
// You want to build a house on an empty land which reaches all buildings in the shortest amount of distance. You can only move up, down, left and right. You are given a 2D grid of values 0, 1 or 2, where: // Each 0 marks an empty land which you can pass by freely. // Each 1 marks a building which you cannot pass thro...
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...
581ff943bbbec315
python
500
Monokai
"""Tests for cache_state (AssetReference file path) query functions.""" import pytest from sqlalchemy.orm import Session from app.assets.database.models import Asset, AssetReference from app.assets.database.queries import ( list_references_by_asset_id, upsert_reference, get_unreferenced_unhashed_asset_ids,...
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.", ...
3dc7d4a102eb2fa9
rust
109
GitHub Dark
/// Recursive ternary search algorithm for finding maximum of unimodal function pub fn ternary_search_max_rec( f: fn(f32) -> f32, start: f32, end: f32, absolute_precision: f32, ) -> f32 { if (end - start).abs() >= absolute_precision { let mid1 = start + (end - start) / 3.0; let mid2 ...
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" ...
cb3b6c5bd9d0441a
rust
58
GitHub Dark
mod catalan_numbers; mod coin_change; mod egg_dropping; mod fibonacci; mod fractional_knapsack; mod integer_partition; mod is_subsequence; mod knapsack; mod longest_common_subsequence; mod longest_common_substring; mod longest_continuous_increasing_subsequence; mod longest_increasing_subsequence; mod matrix_chain_multi...
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...
c941c5cb047ba47e
typescript
37
Solarized Light
import * as React from "react" import { Card, CardContent } from "@/examples/radix/ui/card" import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from "@/examples/radix/ui/carousel" export default function CarouselSize() { return ( <Carousel opts={{ align: "s...
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" ...
e4996cb81a770522
java
68
Default Light+
package com.thealgorithms.maths; /** * This class provides a method to perform fast exponentiation (exponentiation by squaring), * which calculates (base^exp) % mod efficiently. * * <p>The algorithm works by repeatedly squaring the base and reducing the exponent * by half at each step. It exploits the fact that: ...
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"...
d0f5c1de7df0a75c
java
102
Default Light+
package com.thealgorithms.maths; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; /** * A Keith number is an n-digit positive integer where the sequence formed by * starting with its digits and repeatedly adding the previous n terms, * eventually reaches the number itself. * * ...
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.", ...
3a271b10fc5a037f
python
156
Default Light+
import json from .common import InfoExtractor from ..utils import ( float_or_none, int_or_none, try_get, unified_timestamp, url_or_none, ) class BannedVideoIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?banned\.video/watch\?id=(?P<id>[0-f]{24})' _TESTS = [{ 'url': 'https://b...
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...
27d8ca1c5f8b47cc
typescript
23
Solarized Light
import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/registry/new-york-v4/ui/toggle-group" export default function ToggleGroupDemo() { return ( <ToggleGroup type="multiple" size="lg"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bo...
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.", ...
12cd3f47f0ce123f
typescript
38
Solarized Light
import { Field, FieldDescription, FieldLabel } from "@/examples/radix/ui/field" import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue, } from "@/examples/radix/ui/select" export default function FieldSelect() { return ( <Field className="w-full max-w-xs"> <FieldLab...
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...
b82b3d24a9b7f42d
typescript
253
Default Dark+
import type { JobType } from '@prisma/client'; export type Profile = { analysis: ProfileAnalysis?; background: Background?; editToken: string?; id: string; isEditable: boolean; isSaved: boolean; offers: Array<ProfileOffer>; profileName: string; }; export type Background = { educations: Array<Educati...
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...
bce7444ba2450eac
go
283
Default Light+
package _123 import ( "context" "encoding/base64" "fmt" "net/http" "net/url" "strconv" "strings" "sync" "time" "golang.org/x/time/rate" "github.com/alist-org/alist/v3/drivers/base" "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/errs" "github.com/alist-org/alist/...
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...
a818efd58fdd820b
python
109
Default Light+
from .common import InfoExtractor from ..utils import ( clean_html, determine_ext, int_or_none, join_nonempty, parse_count, parse_duration, parse_iso8601, url_or_none, ) from ..utils.traversal import traverse_obj class ManyVidsIE(InfoExtractor): _VALID_URL = r'(?i)https?://(?:www\....
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...
fcd7449498c5fc90
csharp
173
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...
57598d6148bc0491
python
73
Solarized Light
""" A Sophie Germain prime is any prime p, where 2p + 1 is also prime. The second number, 2p + 1 is called a safe prime. Examples of Germain primes include: 2, 3, 5, 11, 23 Their corresponding safe primes: 5, 7, 11, 23, 47 https://en.wikipedia.org/wiki/Safe_and_Sophie_Germain_primes """ from maths.prime_check import...
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...
2f6864e9daf131b2
java
399
GitHub Dark
package com.github.mikephil.charting.renderer; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.drawable.Drawable; import com.github.mikephil.charting.animation.ChartAnimator; import com.github.mikephil.charting.charts...
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...
10ef7547e6eab69c
rust
123
Default Dark+
use tracing::{instrument, Span}; use tracing_error::{ErrorLayer, InstrumentResult, SpanTrace, TracedError}; #[instrument(level = "trace", target = "profile::indexing")] fn foo() -> Result<(), TracedError<Error>> { let _ = bar(40, 2); bar(40, 2) } #[derive(Debug)] pub enum Error { XTooBig, } impl std::fmt...
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...
b3966963db72b030
python
94
Default Light+
from .common import InfoExtractor from ..utils import ( ExtractorError, traverse_obj, unified_timestamp, ) class HSEShowBaseIE(InfoExtractor): _GEO_COUNTRIES = ['DE'] def _extract_redux_data(self, url, video_id): webpage = self._download_webpage(url, video_id) redux = self._html_s...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
98e86f323c9bf2b9
go
174
Default Dark+
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "reflect" "strings" "github.com/gin-gonic/gin/codec/json" ) // ErrorType is an unsigned 64-bit error code as defined 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" ...
19505a4101f7c99c
typescript
89
Solarized Light
"use client" import * as React from "react" import { cn } from "@/examples/radix/lib/utils" import { toggleVariants } from "@/examples/radix/ui-rtl/toggle" import { type VariantProps } from "class-variance-authority" import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui" const ToggleGroupContext = React.creat...
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...
962bc471fc79eb0c
rust
46
Default Dark+
use std::error::Error; use std::fmt; use std::str::FromStr; use serde::{Deserialize, Serialize}; #[derive(Debug, Copy, Clone, PartialOrd, Ord, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum FacetType { String, Number, } impl fmt::Display for FacetType { fn fmt(&self, f: &mut fmt::Formatter<'_>) -...
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.", ...
e7d7af1cb4526ac5
typescript
22
Solarized Light
import { Badge } from "@/examples/base/ui/badge" import { Field, FieldLabel } from "@/examples/base/ui/field" import { Input } from "@/examples/base/ui/input" export function InputBadge() { return ( <Field> <FieldLabel htmlFor="input-badge"> Webhook URL{" "} <Badge variant="secondary" class...
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.", ...
3c4a35ad5da5380d
typescript
149
Solarized Light
import * as SelectPrimitive from "@radix-ui/react-select"; import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"; import * as React from "react"; import { cn } from "@/lib/utils"; function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) { return <SelectPrimitive.Root data-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...
0790e993706b6e5c
python
44
Monokai
import torch import comfy.utils def convert_lora_bfl_control(sd): #BFL loras for Flux sd_out = {} for k in sd: k_to = "diffusion_model.{}".format(k.replace(".lora_B.bias", ".diff_b").replace("_norm.scale", "_norm.set_weight")) sd_out[k_to] = sd[k] sd_out["diffusion_model.img_in.reshape_we...
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" ...
b894104a670bf5db
cpp
38
One Dark Pro
// SPDX-License-Identifier: Apache-2.0 // File: export.h // Description: Place holder // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://w...
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...
a846638f75f59389
csharp
52
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...
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.", ...
1913185d3330ea04
csharp
86
Default Light+
// Copyright (c) 2020 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...
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...
80ce116d44261983
cpp
26
Solarized Dark
#ifndef OPENPOSE_HAND_HAND_CPU_RENDERER_HPP #define OPENPOSE_HAND_HAND_CPU_RENDERER_HPP #include <openpose/core/common.hpp> #include <openpose/core/renderer.hpp> #include <openpose/hand/handParameters.hpp> #include <openpose/hand/handRenderer.hpp> namespace op { class OP_API HandCpuRenderer : public Renderer, pub...
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.", ...
1d8822c0bb032a70
cpp
340
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <sstream> #include "Header Files/CalcEngine.h" using namespace std; using namespace CalcEngine; constexpr int C_NUM_MAX_DIGITS = MAX_STRLEN; constexpr int C_EXP_MAX_DIGITS = 4; void CalcNumSec::Clear() { val...
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"...
be06e73ac9755a33
cpp
322
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 versio...
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"...
8dc86929a44b51bf
java
50
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...
d4d3cd81445c12db
java
31
Solarized Dark
// Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. // Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively. // Note: // You are not suppose to use th...
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...
7dc58cd1fb9dbb3e
python
472
Default Light+
import json import re from .common import InfoExtractor from ..utils import ( determine_ext, dict_get, int_or_none, try_get, unified_timestamp, ) from ..utils.traversal import ( require, traverse_obj, ) class SVTBaseIE(InfoExtractor): _GEO_COUNTRIES = ['SE'] def _extract_video(se...
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...
873d0adff78c946a
cpp
63
One Dark Pro
#include <hex/api/localization_manager.hpp> #include <hex/helpers/scaling.hpp> #include <imgui.h> #include <hex/ui/imgui_imhex_extensions.h> namespace hex::plugin::builtin { void drawInvariantMultiplicationDecoder() { static u64 divisor = 1; static u64 multiplier = 1; static u64 numBits =...
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" ...
e5f8f66ec32d2542
typescript
60
Default Light+
import clsx from "clsx"; import { useContext } from "react"; import { t } from "../../i18n"; import { useEditorInterface } from "../App"; import { Button } from "../Button"; import { Tooltip } from "../Tooltip"; import { CloseIcon, PinIcon } from "../icons"; import { SidebarPropsContext } from "./common"; export con...
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"...
ba153a0fbaf4421f
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...
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" ...
1d6434b215fcbb0e
csharp
84
Monokai
using System; using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Input; using ScreenToGif.Domain.Enums; namespace ScreenToGif.Util; internal class NotificationManager { public static List<Notification> Notifications { get; set; } = new(); internal static void Add...
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...
557384314bb9fd9d
typescript
39
Default Light+
import clsx from "clsx"; import "./Switch.scss"; export type SwitchProps = { name: string; checked: boolean; title?: string; onChange: (value: boolean) => void; disabled?: boolean; }; export const Switch = ({ title, name, checked, onChange, disabled = false, }: SwitchProps) => { return ( <d...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
c95eb92545835e75
java
77
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" ...
a507519749c902ca
typescript
55
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as https from 'node:https'; export function getGitHubToken(): string | undefined { return process.env['GITHUB_TOKEN']; } export async function fetchJson<T>( url: string, redirectCount: number = 0, ): Promise<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...
5c35d14f1c08bd8c
cpp
72
One Dark Pro
// (C) Copyright 2017, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing,...
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" ...
d2008ba0ea2804df
java
111
GitHub Dark
package com.alibaba.csp.sentinel.dashboard.rule.nacos.entity; import com.alibaba.csp.sentinel.dashboard.datasource.entity.rule.RuleEntity; import com.alibaba.csp.sentinel.slots.block.Rule; import com.alibaba.csp.sentinel.slots.block.authority.AuthorityRule; import java.util.Date; /** * @author zyf * @description 重...
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...
bb7446dee251512c
java
90
GitHub Dark
package org.jeecg.modules.system.service; import org.jeecg.common.api.dto.message.MessageDTO; import org.jeecg.modules.system.vo.thirdapp.SyncInfoVo; import java.util.List; /** * 第三方App对接 * @author: jeecg-boot */ public interface IThirdAppService { /** * 获取AccessToken * @return String */ S...
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" ...
73ce23825b1adbd4
csharp
437
Monokai
using Microsoft.Win32; using ScreenToGif.Controls; using ScreenToGif.Util; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.IO; using System.IO.Compression; using System.Linq; using System.Management; using System.Reflection; using System.Tex...
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...
ef43cc43973f40e3
java
60
Default Dark+
package org.schabi.newpipe.util.text; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Extracts timestamps. */ public final class TimestampExtractor { public static final Pattern TIMESTAMPS_PATTERN = Pattern.compile( ...
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" ...
4d9e69a307d5164c
cpp
84
Dracula
/*! * Copyright 2017-2023 by Contributors * \file device_manager.cc */ #include "../sycl/device_manager.h" #include "../../src/collective/communicator-inl.h" namespace xgboost { namespace sycl { ::sycl::queue* DeviceManager::GetQueue(const DeviceOrd& device_spec) const { if (!device_spec.IsSycl()) { L...
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" ...
d1aaf207af5689b0
java
113
GitHub Dark
package com.xxmassdeveloper.mpchartexample.fragments; import android.graphics.Typeface; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import andr...
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"...
fd3c248d959982b5
typescript
298
Solarized Light
"use client" import * as React from "react" import { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, type ColumnDef, type ColumnFiltersState, type SortingState, type VisibilityState, } from "@tanstack/react-table" import { MoreHorizontalIco...
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"...
8ab8c2430f1e132b
python
53
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from enum import Enum from typing import TYPE_CHECKING from pydantic import Field from semantic_kernel.agents.strategies.termination.termination_strategy import TerminationStrategy from semantic_kernel.contents.chat_message_content import ChatMessageCont...
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...
42401cc1c82bc2a9
csharp
109
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 ...
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" ...
ce137871a946ca91
typescript
201
Solarized Light
import * as React from "react" import { cn } from "@/examples/base/lib/utils" import { Separator } from "@/examples/base/ui/separator" import { mergeProps } from "@base-ui/react/merge-props" import { useRender } from "@base-ui/react/use-render" import { cva, type VariantProps } from "class-variance-authority" function...
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" ...
919988ac933a28b0
csharp
280
Monokai
namespace winPEAS._3rdParty.SQLite.src { public partial class CSSQLite { /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for you...
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...
35d18ea90bf1e505
java
77
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...
f5377b5dd99aa00f
go
110
Solarized Light
package sqlite import ( "context" "strings" "github.com/pkg/errors" storepb "github.com/usememos/memos/proto/gen/store" "github.com/usememos/memos/store" ) func (d *DB) UpsertUserSetting(ctx context.Context, upsert *store.UserSetting) (*store.UserSetting, error) { stmt := ` INSERT INTO user_setting ( use...
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...
e70a166e46000df0
cpp
83
Solarized Light
#ifndef PDBDIATYPES_H_ #define PDBDIATYPES_H_ #pragma once #include <string> #include <stdint.h> #include <set> #include <vector> #include <deque> #include <map> #include <windows.h> #include <functional> #include <string> enum class DiaSymbolType { ANY = -1, FUNCTION = 0, CODE, DATA, LABEL, 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"...
e0b1f9e5da40f991
csharp
193
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 ...
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" ...
45156fce063e051e
go
106
Solarized Dark
// Copyright 2021 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
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"...