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
fff10952b6fa8940
python
69
Default Light+
from ._tab import YoutubeTabBaseInfoExtractor from ._video import YoutubeIE from ...utils import ExtractorError, traverse_obj class YoutubeClipIE(YoutubeTabBaseInfoExtractor): IE_NAME = 'youtube:clip' _VALID_URL = r'https?://(?:www\.)?youtube\.com/clip/(?P<id>[^/?#]+)' _TESTS = [{ # FIXME: Other m...
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...
850bb0b9b91fa931
cpp
116
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2010 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
1941d2126a32d29b
java
141
Default Dark+
package org.schabi.newpipe; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.View; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import com...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
24ac049eb4ee33cd
java
22
GitHub Dark
package com.github.mikephil.charting.renderer; import com.github.mikephil.charting.utils.ViewPortHandler; /** * Abstract baseclass of all Renderers. * * @author Philipp Jahoda */ public abstract class Renderer { /** * the component that handles the drawing area of the chart and it's offsets */ ...
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...
f82a182965176d0e
go
130
Default Dark+
package integration import ( "fmt" "net/http" "slices" "strings" "testing" "github.com/caddyserver/caddy/v2/caddytest" ) func newH2ListenerWithVersionsWithTLSTester(t *testing.T, serverVersions []string, clientVersions []string) *caddytest.Tester { const baseConfig = ` { skip_install_trust admin localhos...
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"...
510ac461e5c32c02
java
46
Default Light+
package com.thealgorithms.others; /** * The two-pointer technique is a useful tool to utilize when searching for * pairs in a sorted array. * * <p> * Link: https://www.geeksforgeeks.org/two-pointers-technique/ */ public final class TwoPointers { private TwoPointers() { } /** * Checks whether 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...
86eab26f4daf6f20
python
32
Default Light+
from .common import InfoExtractor from .youtube import YoutubeIE class UnityIE(InfoExtractor): _WORKING = False _VALID_URL = r'https?://(?:www\.)?unity3d\.com/learn/tutorials/(?:[^/]+/)*(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'https://unity3d.com/learn/tutorials/topics/animation/animate-anything-meca...
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...
7c93434c53d26093
csharp
40
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; namespace Microsoft.SemanticKernel; /// <summary> /// Represents the base exception from which all Semantic Kernel exceptions derive. /// </summary> /// <remarks> /// Instances of this class optionally contain telemetry information in the Exception.Data...
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...
5894f1e0e8a0f5aa
cpp
121
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...
fd2b6260a048191c
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...
27e41c4e5ddd0cc4
java
383
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
80e215d97dacbf48
rust
405
Dracula
use std::{ collections::{HashMap, HashSet}, ffi::c_void, sync::{Arc, Mutex}, }; use crate::{ codec::{enable_vram_option, EncoderApi, EncoderCfg}, hwcodec::HwCodecConfig, AdapterDevice, CodecFormat, EncodeInput, EncodeYuvFormat, Pixfmt, }; use hbb_common::{ anyhow::{anyhow, bail, Context}, ...
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...
7c63952c1ada83a5
typescript
30
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect } from 'vitest'; import { calculateMainAreaWidth } from './ui-sizing.js'; import type { Config } from '@google/gemini-cli-core'; describe('ui-sizing', () => { describe('calculateMainAreaWidth', () =...
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.", ...
065008f237b124b1
typescript
71
GitHub Dark
import { computed, reactive, h } from 'vue'; import { JVxeTableMethods, JVxeTableProps } from '/@/components/jeecg/JVxeTable/src/types'; import { isEmpty } from '/@/utils/is'; import { Pagination } from 'ant-design-vue'; export function usePagination(props: JVxeTableProps, methods: JVxeTableMethods) { const innerPag...
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...
826e4234a269c28a
go
137
Solarized Dark
package vhost import ( "cmp" "errors" "slices" "strings" "sync" ) var ErrRouterConfigConflict = errors.New("router config conflict") type routerByHTTPUser map[string][]*Router type Routers struct { indexByDomain map[string]routerByHTTPUser mutex sync.RWMutex } type Router struct { domain string locatio...
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" ...
72664a2149ef344b
java
91
Solarized Dark
/** * In positional notation we know the position of a digit indicates the weight of that digit toward the * value of a number. For example, in the base 10 number 362 we know that 2 has the weight 100 * , 6 * has the weight 101 * , and 3 has the weight 102 * , yielding the value 3 × 102 + 6 × 101 + 2 × 100 * , o...
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.", ...
17d646c4ba38ba92
java
118
Dracula
/* Copyright (c) 2021-2024 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
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...
3471de6c90574246
java
81
GitHub Dark
package org.jeecg.modules.system.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Dat...
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...
09a36f6d767b230b
csharp
40
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; namespace Microsoft.SemanticKernel; /// <summary> /// Represents a group of edges in a kernel process. /// </summary> public sealed class KernelProcessEdgeGroupBuilder { /// <summary> /// Initializes a new instan...
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...
d339cec42a972ce8
rust
27
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 ContainerConfig<'a> { pub format: &'a str, pub symbol: &'a str, pub style: &'a str, ...
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...
1ca8e7ed6265254b
csharp
192
Monokai
#region License // ------------------------------------------------------------------ // Adapted work from DirectX.Capture // https://www.codeproject.com/articles/3566/directx-capture-class-library // http://creativecommons.org/licenses/publicdomain/ // -----------------------------------------------------------------...
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.", ...
2d4bd68767723f2b
typescript
157
Solarized Light
import IORedis, { Redis } from "ioredis"; import { config } from "../../config"; import { logger as _logger } from "../../lib/logger"; const logger = _logger.child({ module: "nuq/redis" }); const luaScripts = { semaphore: { acquire: ` -- KEYS[1]=leases_zset ; ARGV[1]=holder_id, ARGV[2]=limit, ARGV[3]=lease_ttl_...
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...
bfa3cb51ff94a815
python
41
Default Light+
from ldm.models.diffusion.ddpm import LatentDiffusion from typing import TYPE_CHECKING if TYPE_CHECKING: from modules.sd_models import CheckpointInfo class WebuiSdModel(LatentDiffusion): """This class is not actually instantinated, but its fields are created and fieeld by webui""" lowvram: bool """...
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" ...
87643175c0f8fa63
java
124
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...
3803a28356cd0a47
go
54
Default Light+
// Credits: https://pkg.go.dev/github.com/rclone/rclone@v1.65.2/cmd/serve/s3 // Package s3 implements a fake s3 server for alist package s3 import ( "path" "strings" "github.com/alist-org/gofakes3" ) func (b *s3Backend) entryListR(bucket, fdPath, name string, addPrefix bool, response *gofakes3.ObjectList) error {...
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...
4ed8dfae8f1876fe
rust
117
GitHub Dark
//! This module implements the Longest Common Subsequence (LCS) algorithm. //! The LCS problem is finding the longest subsequence common to two sequences. //! It differs from the problem of finding common substrings: unlike substrings, subsequences //! are not required to occupy consecutive positions within the origina...
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" ...
d85352c662f825ab
python
434
Monokai
import re import requests import base64 import os from pathlib import Path from .peasLoaded import PEASLoaded from .peassRecord import PEASRecord from .fileRecord import FileRecord from .linpeasModule import LinpeasModule from .yamlGlobals import ( TEMPORARY_LINPEAS_BASE_PATH, PEAS_FINDS_MARKUP, PEAS_FINDS...
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.", ...
6072261aa3677880
python
102
Default Light+
from .common import InfoExtractor from ..utils import ( ExtractorError, determine_ext, int_or_none, mimetype2ext, parse_iso8601, strip_jsonp, unified_timestamp, url_or_none, ) class AMPIE(InfoExtractor): # XXX: Conventionally, base classes should end with BaseIE/InfoExtractor # pa...
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...
3dc2518f7297b124
python
95
Solarized Light
""" Project Euler Problem 587: https://projecteuler.net/problem=587 A square is drawn around a circle as shown in the diagram below on the left. We shall call the blue shaded region the L-section. A line is drawn from the bottom left of the square to the top right as shown in the diagram on the right. We shall call th...
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...
8027c84e476686f5
java
46
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
1669180eb90780b8
csharp
119
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Linq; using System.Text.Json; using System.Text.Json.Nodes; using HandlebarsDotNet; namespace Microsoft.SemanticKernel.PromptTemplates.Handlebars.Helpers; /// <summary> /// Extension class to register additional helpers as Kernel System hel...
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.", ...
6af6caa2346503ed
cpp
204
One Dark Pro
//===--- Utility.h -------------------*- mode:c++;eval:(read-only-mode) -*-===// // Do not edit! See README.txt. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ...
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.", ...
46aa8740b840656c
typescript
116
Default Dark+
import Link from 'next/link'; import { ChevronRightIcon } from '@heroicons/react/20/solid'; import { BriefcaseIcon, CurrencyDollarIcon, DocumentTextIcon, } from '@heroicons/react/24/outline'; const links = [ { description: ( <> Explore offer data points, benchmark and analyze your offers ...
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"...
0831707e24ba05fc
rust
68
Solarized Light
use std::time::Duration; use serde::Serialize; use alacritty_config_derive::ConfigDeserialize; use crate::config::ui_config::Program; use crate::display::color::Rgb; #[derive(ConfigDeserialize, Serialize, Clone, Debug, PartialEq, Eq)] pub struct BellConfig { /// Visual bell animation function. pub animation...
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...
b6a00797ba5f03e1
go
52
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"...
dafee2198f1a3d8c
python
96
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio import os from azure.identity import AzureCliCredential from semantic_kernel.agents import ChatCompletionAgent from semantic_kernel.connectors.ai.open_ai import AzureChatCompletion from semantic_kernel.contents import ChatMessageContent, FunctionCallCont...
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...
b574397445871ad6
typescript
101
One Dark Pro
import { JSONArrayValue, JSONObjectMember, JSONObjectValue, JSONValue, } from "./jsonParse" type RootEntry = | { kind: "RootObject" astValue: JSONObjectValue } | { kind: "RootArray" astValue: JSONArrayValue } type ObjectMemberEntry = { kind: "ObjectMember" name: string ...
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...
e01ade2f03774c41
csharp
71
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...
1de12bb4cb653eda
java
96
GitHub Dark
package org.jeecg.modules.system.util; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.jeecg.common.util.MyCommonsMultipartFile; import org.springframework.web.multipart.MultipartFile; import...
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"...
9980cc0b3e8c9958
cpp
344
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: networkio.h // Description: Network input/output data, allowing float/int implementations. // Author: Ray Smith // // (C) Copyright 2014, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
e6c22b86d971857a
python
117
Solarized Light
""" In this problem, we want to determine all possible combinations of k numbers out of 1 ... n. We use backtracking to solve this problem. Time complexity: O(C(n,k)) which is O(n choose k) = O((n!/(k! * (n - k)!))), """ from __future__ import annotations from itertools import combinations def combination_lists(n:...
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...
650a4ab9cbde9a16
python
100
Solarized Light
""" Regex matching check if a text matches pattern or not. Pattern: 1. ``.`` Matches any single character. 2. ``*`` Matches zero or more of the preceding element. More info: https://medium.com/trick-the-interviwer/regular-expression-matching-9972eb74c03 """ def recursive_match(text: str, pattern: 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" ...
9c3b340179ebdb21
java
74
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.", ...
93370d4077a85cc1
go
60
Solarized Dark
// Copyright 2021 The frp Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
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...
dcb0291e76730315
cpp
62
One Dark Pro
/***************** 计数排序:统计小于等于该元素值的元素的个数i,于是该元素就放在目标数组的索引i位(i≥0)。 计数排序基于一个假设,待排序数列的所有数均为整数,且出现在(0,k)的区间之内。 如果 k(待排数组的最大值) 过大则会引起较大的空间复杂度,一般是用来排序 0 到 100 之间的数字的最好的算法,但是它不适合按字母顺序排序人名。 计数排序不是比较排序,排序的速度快于任何比较排序算法。 时间复杂度为 O(n+k),空间复杂度为 O(n+k) 算法的步骤如下: 1. 找出待排序的数组中最大和最小的元素 2. 统计数组中每个值为 i 的元素出现的次数,存入数组 C 的第 i 项 3. 对所有的计数累...
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" ...
89b5b416694974f0
java
44
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
a1a9e26e05b9490f
java
59
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...
6149b20b389dc5f2
java
26
Solarized Dark
// Given two strings S and T, determine if they are both one edit distance apart. public class OneEditDistance { public boolean isOneEditDistance(String s, String t) { //iterate through the length of the smaller string for(int i = 0; i < Math.min(s.length(), t.length()); i++) { //if 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...
58586bba4e7694e2
javascript
252
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { execSync } from 'node:child_process'; const PROJECT_ID = 36; const ORG = 'google-gemini'; const REPO = 'google-gemini/gemini-cli'; const MAINTAINERS_REPO = 'google-gemini/maintainers-gemini-cli'; // Parent issues to recu...
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" ...
080b4942708da50e
java
33
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
490f578b9eea557d
csharp
98
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel.Agents.Orchestration.Extensions; using Microsoft.SemanticKernel.Agents.Runtime; namespace Microsoft.SemanticKernel.Agents.O...
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"...
266fb1a9b98a055f
csharp
151
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 ...
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"...
111b75cea2acc64a
typescript
351
Solarized Light
import * as fs from "fs/promises" import { tmpdir } from "os" import * as path from "path" import { configSchema, registryItemFileSchema, registryItemSchema, } from "@/src/schema" import { Config } from "@/src/utils/get-config" import { getProjectInfo, ProjectInfo } from "@/src/utils/get-project-info" import { re...
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"...
f00d87d0a0500d01
python
55
Solarized Light
""" Finding the peak of a unimodal list using divide and conquer. A unimodal array is defined as follows: array is increasing up to index p, then decreasing afterwards. (for p >= 1) An obvious solution can be performed in O(n), to find the maximum of the array. (From Kleinberg and Tardos. Algorithm Design. Addison Wesl...
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"...
cc3b8566564a8ef6
python
68
Solarized Light
import random class Point: def __init__(self, x: float, y: float) -> None: self.x = x self.y = y def is_in_unit_circle(self) -> bool: """ True, if the point lies in the unit circle False, otherwise """ return (self.x**2 + self.y**2) <= 1 @classmeth...
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" ...
b0457e453dfad8c5
typescript
53
GitHub Dark
import type { Ref } from 'vue'; import { ref, watch, unref } from 'vue'; import { useThrottleFn, useDebounceFn } from '@vueuse/core'; export type RemoveEventFn = () => void; export interface UseEventParams { el?: Element | Ref<Element | undefined> | Window | any; name: string; listener: EventListener; options?...
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"...
94ea89d190c5d163
typescript
223
Solarized Light
import { Example, ExampleWrapper, } from "@/registry/bases/radix/components/example" import { Field, FieldContent, FieldDescription, FieldLabel, FieldLegend, FieldSet, } from "@/registry/bases/radix/ui/field" import { RadioGroup, RadioGroupItem, } from "@/registry/bases/radix/ui/radio-group" export...
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"...
361a9ff6d5e6bf44
python
129
Default Light+
import re from .common import PostProcessor from ..utils import Namespace, filter_dict, function_with_repr class MetadataParserPP(PostProcessor): def __init__(self, downloader, actions): super().__init__(downloader) self._actions = [] for f in actions: action, *args = f ...
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"...
c2b9eac262864a4f
typescript
164
Solarized Light
"use client" import * as React from "react" import { cn } from "@/examples/radix/lib/utils" import { Button } from "@/examples/radix/ui-rtl/button" import { XIcon } from "lucide-react" import { Dialog as DialogPrimitive } from "radix-ui" function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root...
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...
f682e7f484e9e687
cpp
149
One Dark Pro
#pragma once #include <hex/ui/popup.hpp> #include <hex/ui/imgui_imhex_extensions.h> #include <hex/api/localization_manager.hpp> #include <hex/helpers/http_requests.hpp> #include <functional> #include <string> namespace hex::plugin::builtin { class PopupDocsQuestion : public Popup<PopupDocsQuestion> { publ...
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...
fa8fe960461ff735
csharp
123
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
526d4245714849de
python
296
Default Light+
import math import numpy as np import skimage import modules.scripts as scripts import gradio as gr from PIL import Image, ImageDraw from modules import images from modules.processing import Processed, process_images from modules.shared import opts, state # this function is taken from https://github.com/parlance-z...
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"...
ef3410b589e0c664
java
67
Default Dark+
package org.schabi.newpipe.views; import android.content.Context; import android.util.AttributeSet; import android.view.animation.AccelerateDecelerateInterpolator; import android.view.animation.Animation; import android.view.animation.Transformation; import android.widget.ProgressBar; import androidx.annotation.Nulla...
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" ...
ba4fab63395caf36
csharp
22
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace Microsoft.SemanticKernel.ChatCompletion; /// <summary> /// Interface for reducing the chat history. /// </summary> public interface IChatHistoryReducer { /// <summar...
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" ...
91adb2b3c51bd70a
typescript
33
GitHub Dark
/** * 组件类型 */ export enum CompTypeEnum { //单选 Radio = 'radio', //按钮样式单选 RadioButton = 'radioButton', //下拉框 Select = 'select', //列表 List = 'list', //开关 Switch = 'switch', //下拉树 SelTree = 'sel_tree', //分类字典树 CatTree = 'cat_tree', //下拉搜索 SelSearch = 'search', //用户现在框 SelUser = 'sel_us...
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" ...
4dff6eca49391200
java
62
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
86487d7abc65ea66
csharp
75
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Text.Json.Serialization; using Microsoft.SemanticKernel.Agents; namespace Microsoft.SemanticKernel; /// <summary> /// Base class for all AI non-streaming results /// </summary> [JsonPolymorphic(TypeDiscriminatorPropertyN...
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...
0e4409affb390416
java
421
GitHub Dark
package org.jeecg.modules.airag.llm.service.impl; import com.alibaba.fastjson.JSONException; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; impor...
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...
6afc59950f27d941
python
64
Default Light+
from .common import InfoExtractor from ..networking import HEADRequest from ..utils import float_or_none class VocarooIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?(?:vocaroo\.com|voca\.ro)/(?:embed/)?(?P<id>\w+)' _EMBED_REGEX = [r'<iframe[^>]+src=(["\'])(?P<url>(?:https?://)?(?:www\.)?vocaroo\.com/emb...
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...
7717060d536f2176
typescript
60
Solarized Light
import type { Element } from "hast"; import { useLocation } from "react-router-dom"; import { type MemoFilter, stringifyFilters, useMemoFilterContext } from "@/contexts/MemoFilterContext"; import useNavigateTo from "@/hooks/useNavigateTo"; import { cn } from "@/lib/utils"; import { Routes } from "@/router"; import { us...
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"...
5773611cb63a7983
typescript
137
Solarized Light
import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "@/examples/base/ui/menubar" export default functio...
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" ...
fe7f5b09399a5fc4
csharp
417
Monokai
using System.ComponentModel; using System.Runtime.Serialization; using ScreenToGif.Domain.Enums; using ScreenToGif.Domain.Events; using ScreenToGif.Domain.Interfaces; using ScreenToGif.Domain.ViewModels; using ScreenToGif.Util; namespace ScreenToGif.ViewModel.ExportPresets; public abstract class ExportPreset : Bindab...
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...
e3778c11cb5fdfa2
typescript
108
Default Dark+
import { z } from 'zod'; import { Vote } from '@prisma/client'; import { createRouter } from '../context'; import type { AnswerComment } from '~/types/questions'; import { SortOrder, SortType } from '~/types/questions.d'; export const questionsAnswerCommentRouter = createRouter().query( 'getAnswerComments', { ...
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...
d4bd33a5a955d3e3
typescript
132
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { Box, Text } from 'ink'; import { RadioButtonSelect } from './shared/RadioButtonSelect.js'; import { theme } from '../semantic-colors.js'; import { AuthType } from '@google/gemini-cli-core'; ...
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.", ...
da463f2fd0a69482
java
169
Default Light+
package com.thealgorithms.sorts; /** * Smooth Sort is an in-place, comparison-based sorting algorithm proposed by Edsger W. Dijkstra (1981). * * <p>It can be viewed as a variant of heapsort that maintains a forest of heap-ordered Leonardo trees * (trees whose sizes are Leonardo numbers). The algorithm is adaptive:...
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.", ...
7c1d68e325a92f91
go
316
Default Light+
package server import ( "bytes" "encoding/json" "net/http" "strings" "testing" "time" "github.com/gin-gonic/gin" "github.com/google/go-cmp/cmp" "github.com/ollama/ollama/api" "github.com/ollama/ollama/fs/ggml" "github.com/ollama/ollama/llm" "github.com/ollama/ollama/ml" ) // TestGenerateWithBuiltinRende...
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"...
22ba615c5b144adf
python
63
Default Light+
from modules import modelloader, devices, errors from modules.shared import opts from modules.upscaler import Upscaler, UpscalerData from modules.upscaler_utils import upscale_with_model class UpscalerESRGAN(Upscaler): def __init__(self, dirname): self.name = "ESRGAN" self.model_url = "https://git...
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...
a65ec0c7e67d4342
csharp
171
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 ...
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.", ...
0927d5c525532546
rust
139
Default Dark+
use std::collections::BTreeSet; use std::fs::File; use std::io::{self, BufReader}; use obkv::KvReaderU16; use super::helpers::{ create_sorter, sorter_into_reader, try_split_array_at, GrenadParameters, MergeDeladdCboRoaringBitmaps, }; use crate::error::SerializationError; use crate::index::db_name::DOCID_WORD_...
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...
7a3126d2d1bffb65
python
313
Default Light+
import torch from modules import prompt_parser, sd_samplers_common from modules.shared import opts, state import modules.shared as shared from modules.script_callbacks import CFGDenoiserParams, cfg_denoiser_callback from modules.script_callbacks import CFGDenoisedParams, cfg_denoised_callback from modules.script_callb...
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...
7b860d871a35b6df
csharp
34
Default Light+
// Copyright (c) 2018 Daniel Grunwald // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publi...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
ad3beccc6f45ae75
python
217
Default Light+
import hashlib import random from .common import InfoExtractor from ..networking import HEADRequest from ..utils import ( clean_html, int_or_none, try_get, urlhandle_detect_ext, ) class JamendoIE(InfoExtractor): _VALID_URL = r'''(?x) https?:// (?: ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
cef3a07b21a60e22
python
95
Solarized Light
"""Absolute Value.""" def abs_val(num: float) -> float: """ Find the absolute value of a number. >>> abs_val(-5.1) 5.1 >>> abs_val(-5) == abs_val(5) True >>> abs_val(0) 0 """ return -num if num < 0 else num def abs_min(x: list[int]) -> int: """ >>> abs_min([0,5,1,11]...
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...
564dca25c96e3515
typescript
158
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as fs from 'node:fs/promises'; import * as path from 'node:path'; import { isNodeError } from '../utils/errors.js'; import { spawnAsync } from '../utils/shell-utils.js'; import { simpleGit, CheckRepoActions, type SimpleGit...
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...
ec43fcf60ec956a1
java
34
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" ...
f150b0f44c955fc5
typescript
395
Solarized Light
"use client" import * as React from "react" import Form from "next/form" import { type z } from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Checkbox } from "...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
077cf2b654b7b284
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 ...
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.", ...
d9e9ca10d0f9c92f
go
150
Default Light+
package llamarunner import ( "errors" "fmt" "hash/maphash" "log/slog" "sync" "time" "github.com/ollama/ollama/llama" ) const imageCacheSize = 4 type ImageContext struct { // mu is required to be held when generating embeddings or accessing the cache mu sync.Mutex mtmd *llama.MtmdContext // cache of ima...
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...
92bc3db28595ec35
java
137
Dracula
/* Copyright (c) 2014-2023 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
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...
c31590b7d24d6b95
cpp
148
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2011 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
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...
669105aea1c549b7
java
190
GitHub Dark
package org.jeecg.common.util; import java.security.Key; import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.PBEParameterSpec; /** * @Description: 密码工具类 * @author: jeecg-boot...
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"...
cf3a374b25afef19
typescript
124
Solarized Light
"use client" import * as React from "react" import { useMediaQuery } from "@/hooks/use-media-query" import { Button } from "@/registry/new-york-v4/ui/button" import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "@/registry/new-york-v4/ui/command" import { Drawer, ...
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...
f4f88970d5f0f0cc
typescript
42
GitHub Dark
import { computed, defineComponent, h } from 'vue'; import { useJVxeComponent, useJVxeCompProps } from '/@/components/jeecg/JVxeTable/src/hooks/useJVxeComponent'; import { JVxeComponent } from '/@/components/jeecg/JVxeTable/src/types/JVxeComponent'; export default defineComponent({ name: 'JVxeSlotCell', props: use...
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...
b05cdb16dfa74ea0
cpp
133
Solarized Light
#pragma once #include "HexDump.h" #include "TraceFileDump.h" //forward declaration // TODO: multiple dumps class TraceWidget; class TraceBrowser; class GotoDialog; class CommonActions; class TraceDump : public HexDump { Q_OBJECT public: explicit TraceDump(Architecture* architecture, TraceWidget* parent, Trac...
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...
d064de5d0c504904
typescript
68
Dracula
import type { OriginalMapping } from '@jridgewell/trace-mapping' import { originalPositionFor } from '@jridgewell/trace-mapping' import { posixDirname, posixResolve } from '../utils' interface SourceMapLike { version: number mappings?: string names?: string[] sources?: string[] sourcesContent?: string[] } t...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
efad9031a2a4e6e0
cpp
73
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 versi...
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...
54b22e8bb9a54b47
python
92
Solarized Light
# Numbers of alphabet which we call base alphabet_size = 256 # Modulus to hash a string modulus = 1000003 def rabin_karp(pattern: str, text: str) -> bool: """ The Rabin-Karp Algorithm for finding a pattern within a piece of text with complexity O(nm), most efficient when it is used with multiple patterns ...
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.", ...
e968ded27c20c182
csharp
65
Default Light+
using System; using System.Runtime.InteropServices; using System.Threading.Tasks; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { internal class AsyncUsing { internal class AsyncDisposableClass : IAsyncDisposable { public ValueTask DisposeAsync() { throw new NotImplementedException(); } ...
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...
82898bc4e9b9814a
csharp
76
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text; using Microsoft.SemanticKernel; using Microsoft.VisualStudio.TestTools.UnitTesting; using SemanticKernel.AotTests.Plugins; namespace SemanticKernel.AotTests.UnitTests.Core; internal static class GetWeatherFunctionAsserts { internal static async...
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"...
de53b6aa5915b542
java
92
GitHub Dark
package org.jeecg.modules.system.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Dat...
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...