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
fd05e627ed8ed6ce
javascript
99
Dracula
import MinHeap from '../heap/MinHeap'; import Comparator from '../../utils/comparator/Comparator'; // It is the same as min heap except that when comparing two elements // we take into account its priority instead of the element's value. export default class PriorityQueue extends MinHeap { constructor() { // Cal...
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...
f237aea0facda9bc
csharp
121
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.AI.Agents.Persistent; using Microsoft.SemanticKernel.Agents.AzureAI.Internal; namespace Microsoft.Seman...
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"...
0d9c0de7dbd6eb8a
java
45
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
35b4d51419595759
python
75
Default Light+
from .common import InfoExtractor from ..utils import int_or_none, join_nonempty class PerformGroupIE(InfoExtractor): _VALID_URL = r'https?://player\.performgroup\.com/eplayer(?:/eplayer\.html|\.js)#/?(?P<id>[0-9a-f]{26})\.(?P<auth_token>[0-9a-z]{26})' _TESTS = [{ # http://www.faz.net/aktuell/sport/fu...
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...
018fe44c60e04729
go
211
Solarized Dark
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
0e20ed2a091174cb
typescript
60
GitHub Dark
import { isFunction, isUnDef } from '/@/utils/is'; import { ref, unref } from 'vue'; export interface ScrollToParams { el: any; to: number; duration?: number; callback?: () => any; } const easeInOutQuad = (t: number, b: number, c: number, d: number) => { t /= d / 2; if (t < 1) { return (c / 2) * t * 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...
1aec5747119020be
go
74
Solarized Light
package util //nolint:revive // util namespace is intentional for shared helpers import ( "crypto/rand" "math/big" "net/mail" "strconv" "strings" "github.com/google/uuid" ) // ConvertStringToInt32 converts a string to int32. func ConvertStringToInt32(src string) (int32, error) { parsed, err := strconv.ParseIn...
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"...
55275fb04368a292
typescript
62
Solarized Light
"use client" import * as React from "react" import { addDays, format } from "date-fns" import { CalendarIcon } from "lucide-react" import { type DateRange } from "react-day-picker" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Calendar } from "@/registry/new-york-...
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" ...
005119f72093df09
go
264
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy 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 applicab...
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" ...
8788278a89618e67
python
191
Monokai
#Taken from: https://github.com/dbolya/tomesd import torch from typing import Tuple, Callable, Optional from typing_extensions import override from comfy_api.latest import ComfyExtension, io import math def do_nothing(x: torch.Tensor, mode:str=None): return x def mps_gather_workaround(input, dim, index): if...
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...
ce8321f32e91afcc
csharp
48
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Extensions.AI; using SemanticKernel.Connectors.MistralAI.UnitTests; using Xunit; namespace Microsoft.SemanticKernel.Connectors.MistralAI.UnitTests.Services; /// <summary> /// Unit tests f...
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...
bd7640a488764d3d
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 ...
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...
f0d558c33bfa85df
typescript
140
Dracula
/** * Run Tests Tool * * Custom OpenCode tool to run test suites with various options. * Automatically detects the package manager and test framework. */ import { tool } from "@opencode-ai/plugin/tool" import * as path from "path" import * as fs from "fs" export default tool({ description: "Run the test su...
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...
c2b3ba01d1652c59
typescript
291
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { describe, it, expect, vi, afterEach, beforeEach } from 'vitest'; import nodePath from 'node:path'; import { ApprovalMode } from './types.js'; import { isDirectorySecure } from '../utils/security.js'; // Mock dependencies ...
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.", ...
85eba04135e963a4
python
87
Solarized Light
class BinaryHeap: """ A max-heap implementation in Python >>> binary_heap = BinaryHeap() >>> binary_heap.insert(6) >>> binary_heap.insert(10) >>> binary_heap.insert(15) >>> binary_heap.insert(12) >>> binary_heap.pop() 15 >>> binary_heap.pop() 12 >>> binary_heap.get_list ...
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...
6ae7260841051df9
go
493
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy 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 applicab...
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...
b92ae25ed02542ce
python
169
Default Light+
import json from .common import InfoExtractor from ..utils import float_or_none, parse_iso8601, str_or_none, try_call, url_or_none from ..utils.traversal import traverse_obj, value class PrankCastIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?prankcast\.com/[^/?#]+/showreel/(?P<id>\d+)-(?P<display_id>[^/?#...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
fd57bcdcdeacef67
python
118
Solarized Light
""" Project Euler Problem 203: https://projecteuler.net/problem=203 The binomial coefficients (n k) can be arranged in triangular form, Pascal's triangle, like this: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 ...
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...
1fe4526248acc4aa
java
121
Monokai
package com.termux.shared.activity.media; import androidx.annotation.IdRes; import androidx.annotation.NonNull; import androidx.annotation.StyleRes; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.widge...
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...
baf7cded99441416
python
308
Monokai
import math from typing import Optional import comfy.ldm.common_dit import torch from comfy.ldm.lightricks.model import ( CrossAttention, FeedForward, generate_freq_grid_np, interleaved_freqs_cis, split_freqs_cis, ) from torch import nn class BasicTransformerBlock1D(nn.Module): r""" A bas...
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...
c751deb7f7e08bfa
go
40
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy 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 applicab...
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"...
908d166eb86ec2d8
rust
87
One Dark Pro
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // Copyright 2018 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-BSD-3-Clause file. // // SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause /// ...
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...
7320c72042fe3f96
javascript
20
Dracula
import barJson from 'virtual:/bar.json' import fooJson from './foo.json' // 'TRANSFORM_COUNT' is injected by the transform plugin document.getElementById('transform-count').innerHTML = TRANSFORM_COUNT document.getElementById('module-type-json-pre').innerHTML = fooJson.moduleTypePre document.getElementById('module-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...
577ac3d9055c6b40
csharp
119
Default Light+
// // PropertyDeclaration.cs // // Author: // Mike Krüger <mkrueger@novell.com> // // Copyright (c) 2010 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 // 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" ...
f01b475a26ca4e23
csharp
430
Monokai
using System; using winPEAS._3rdParty.BouncyCastle.util; namespace winPEAS._3rdParty.BouncyCastle.crypto.digests { /// <remarks> /// <p>Implementation of RipeMD256.</p> /// <p><b>Note:</b> this algorithm offers the same level of security as RipeMD128.</p> /// </remarks> public class RipeMD256Digest...
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...
f3f6097350966ae5
typescript
98
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { useMemo } from 'react'; import { Box, Text } from 'ink'; import type { ThoughtSummary } from '@google/gemini-cli-core'; import { theme } from '../../semantic-colors.js'; import { normalizeEs...
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...
cafac9065fda5a5c
csharp
266
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...
17b882ad9d69f090
csharp
145
Default Light+
/* Copyright (c) 2015 Ki 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, publish, distribute, sublice...
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...
4b37ab0914e1fc45
javascript
129
Default Dark+
const { checkLogin, setSetting, setting, doubleCheckPassword } = require("../util-server"); const { CloudflaredTunnel } = require("node-cloudflared-tunnel"); const { UptimeKumaServer } = require("../uptime-kuma-server"); const { log } = require("../../src/util"); const io = UptimeKumaServer.getInstance().io; const pre...
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" ...
78ec4962729c994d
go
128
Default Dark+
// Copyright 2015 Matthew Holt and The Caddy 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 applicab...
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...
59fa0371e1bd4a34
csharp
111
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Microsoft.SemanticKernel.Connectors.HuggingFace.Core; namespace Microsoft.SemanticKernel.Connectors.HuggingFace; /// <summary> /// Represents the metadata o...
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...
d53766864c7a953a
typescript
223
Solarized Dark
import { getName, getVersion } from '@tauri-apps/api/app' import { fetch } from '@tauri-apps/plugin-http' import { asyncRetry } from 'foxts/async-retry' import { extractErrorMessage } from 'foxts/extract-error-message' import { once } from 'foxts/once' import { debugLog } from '@/utils/debug' const getUserAgentPromis...
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"...
18a6cb94d01a66e9
python
89
Default Light+
from .common import InfoExtractor from ..utils import ( get_element_by_id, int_or_none, merge_dicts, mimetype2ext, url_or_none, ) class AparatIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?aparat\.com/(?:v/|video/video/embed/videohash/)(?P<id>[a-zA-Z0-9]+)' _EMBED_REGEX = [r'<iframe ...
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...
d0e22a3fbde4ae05
csharp
228
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Amazon.BedrockRuntime; using Amazon.BedrockRuntime.Model; using Microsoft.Ext...
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...
c6cabf208fe958af
typescript
213
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { openDiff, type EditorType } from '../utils/editor.js'; import os from 'node:os'; import path from 'node:path'; import fs from 'node:fs'; import * as Diff from 'diff'; import { DEFAULT_DIFF_OPTIONS } from './diffOptions.js'...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
0eaf2697b079d4fe
go
189
Solarized Dark
// Copyright 2020 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
f6dd8e584fd33a34
python
306
Default Light+
import re from .adobepass import AdobePassIE from ..utils import ( ExtractorError, determine_ext, int_or_none, join_nonempty, parse_age_limit, unified_timestamp, urlencode_postdata, ) from ..utils.traversal import traverse_obj class GoIE(AdobePassIE): _SITE_INFO = { 'abc': { ...
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" ...
b2065206ebfa8a32
cpp
55
Solarized Light
#include "xrefsanalysis.h" #include "xrefs.h" #include "console.h" #include <module.h> XrefsAnalysis::XrefsAnalysis(duint base, duint size) : Analysis(base, size) { modbase = ModBaseFromAddr(base); modsize = ModSizeFromAddr(modbase); } void XrefsAnalysis::Analyse() { dputs("Starting xref analysis...")...
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"...
bbf85df43d94f063
go
23
One Dark Pro
package main import "fmt" /////////////////////////////////////////////////////////////////////////////// // CONSTANTS const ( Reset = "\033[0m" RGBPrefix = "\033[38;5;" // followed by RGB values in decimal format separated by colons RGBSuffix = "m" ) /////////////////////////////////////////////////////////...
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...
54bb88c961978975
java
52
Default Light+
package com.thealgorithms.sorts; /** * OddEvenSort class implements the SortAlgorithm interface using the odd-even sort technique. * Odd-even sort is a comparison sort related to bubble sort. * It operates by comparing all (odd, even)-indexed pairs of adjacent elements in the list and, if a pair is in the wrong ord...
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...
208b16d6fb2add97
python
38
Dracula
import subprocess import time import httpx from playwright.sync_api import Playwright, sync_playwright # Run playwright codegen to generate the code below, copy paste the sections in run() def run(playwright: Playwright) -> None: browser = playwright.chromium.launch(headless=False) # Update the viewport manu...
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...
5aab672c7194378b
csharp
239
Monokai
using System.Windows; using System.Windows.Media; using ScreenToGif.Domain.Enums; using ScreenToGif.Util; using ScreenToGif.Util.Settings; namespace ScreenToGif.ViewModel.Tasks; public class KeyStrokesViewModel : BaseTaskViewModel { #region Variables private bool _ignoreNonModifiers; private bool _ignore...
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.", ...
f9396d4442008f93
typescript
242
Solarized Light
"use client" import * as React from "react" import { cn } from "@/examples/radix/lib/utils" import { Button } from "@/examples/radix/ui/button" import useEmblaCarousel, { type UseEmblaCarouselType, } from "embla-carousel-react" import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react" type CarouselApi = UseE...
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"...
febd40984847b8f9
java
31
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
6540dc3876b9807d
java
72
GitHub Dark
//package org.jeecg.common.util.superSearch; // //import org.jeecg.common.util.oConvertUtils; // ///** // * Query 规则 常量 // * @Author Scott // * @Date 2019年02月14日 // */ //public enum QueryRuleEnum { // // /**查询规则 大于*/ // GT(">","大于"), // /**查询规则 大于等于*/ // GE(">=","大于等于"), // /**查询规则 小于*/ // LT("<","小于"...
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...
7d10eec6c686acd4
typescript
57
Solarized Light
"use client" import { Button } from "@/examples/base/ui-rtl/button" import { ButtonGroup } from "@/examples/base/ui-rtl/button-group" import { ArrowLeftIcon, ArrowRightIcon } from "lucide-react" import { useLanguageContext } from "@/components/language-selector" const translations = { ar: { dir: "rtl" as const...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
f4cad4609dbd2852
rust
136
One Dark Pro
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use kvm_bindings::{ KVM_DEV_ARM_ITS_RESTORE_TABLES, KVM_DEV_ARM_ITS_SAVE_TABLES, KVM_DEV_ARM_VGIC_GRP_CTRL, KVM_DEV_ARM_VGIC_GRP_ITS_REGS, }; use kvm_ioctls::DeviceFd; use serde::{Deserialize, Seri...
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...
4b76bc95ebe6bb62
python
54
Default Light+
from .common import InfoExtractor from ..utils import ( parse_duration, parse_iso8601, ) class HuajiaoIE(InfoExtractor): IE_DESC = '花椒直播' _VALID_URL = r'https?://(?:www\.)?huajiao\.com/l/(?P<id>[0-9]+)' _TEST = { 'url': 'http://www.huajiao.com/l/38941232', 'md5': 'd08bf9ac98787d24d...
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" ...
905972c9ff7d0134
python
129
Solarized Light
import glob import os import random from string import ascii_lowercase, digits import cv2 """ Flip image and bounding box for computer vision task https://paperswithcode.com/method/randomhorizontalflip """ # Params LABEL_DIR = "" IMAGE_DIR = "" OUTPUT_DIR = "" FLIP_TYPE = 1 # (0 is vertical, 1 is horizontal) def ...
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...
af8cf8bca4709b69
python
215
Monokai
from comfy.ldm.cosmos.predict2 import MiniTrainDIT import torch from torch import nn import torch.nn.functional as F def rotate_half(x): x1 = x[..., : x.shape[-1] // 2] x2 = x[..., x.shape[-1] // 2 :] return torch.cat((-x2, x1), dim=-1) def apply_rotary_pos_emb(x, cos, sin, unsqueeze_dim=1): cos = c...
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...
34792893a808ad86
java
157
Dracula
package com.macro.mall.model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class PmsProductCategory implements Serializable { private Long id; @ApiModelProperty(value = "上机分类的编号:0表示一级分类") private Long parentId; private String name; @ApiModelProperty(value ...
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...
119ee561290393ff
javascript
20
GitHub Dark
'use strict'; import utils from '../utils.js'; import toFormData from './toFormData.js'; import platform from '../platform/index.js'; export default function toURLEncodedForm(data, options) { return toFormData(data, new platform.classes.URLSearchParams(), { visitor: function (value, key, path, helpers) { ...
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...
2c939380b7db8c5c
python
82
Default Dark+
#!/usr/bin/env python3 # # This script generates a global equivalent domains JSON file from # the upstream Bitwarden source repo. # import json import re import sys import urllib.request from collections import OrderedDict if not 2 <= len(sys.argv) <= 3: print(f"usage: {sys.argv[0]} <OUTPUT-FILE> [GIT-REF]") ...
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...
25ab07c250d68a68
go
171
Default Light+
package parsers import ( "context" "log/slog" "strings" "unicode" "github.com/ollama/ollama/api" "github.com/ollama/ollama/logutil" ) type olmo3ThinkParserState int const ( olmo3CollectingThink olmo3ThinkParserState = iota olmo3CollectingContent ) const ( olmo3ThinkCloseTag = "</think>" ) type Olmo3Think...
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...
449816102ddcfc73
go
156
Default Light+
package convert import ( "cmp" "errors" "io" "iter" "path" "slices" "strconv" "strings" "github.com/pdevine/tensor" "github.com/pdevine/tensor/native" "github.com/ollama/ollama/fs/ggml" ) type split struct { *strings.Replacer dim int slices []tensor.Slice // afterFunc is an optional function to a...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
18c659b6aabb6fb7
cpp
235
One Dark Pro
#include "set_rows.hpp" #include "cpy.hpp" namespace utils { template<typename T> static constexpr bool is_arithmetic_v() { return std::is_arithmetic_v<T> || std::is_same_v<T, sycl::half> || std::is_same_v<T, sycl::ext::oneapi::bfloat16>; } } template<typename TIn, typename TOut> static inline std::enable_if_t<ut...
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...
bf38d662f0a747e1
java
90
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...
95b8ac86c8451bad
python
59
Solarized Light
""" https://en.wikipedia.org/wiki/Component_(graph_theory) Finding connected components in graph """ test_graph_1 = {0: [1, 2], 1: [0, 3], 2: [0], 3: [1], 4: [5, 6], 5: [4, 6], 6: [4, 5]} test_graph_2 = {0: [1, 2, 3], 1: [0, 3], 2: [0], 3: [0, 1], 4: [], 5: []} def dfs(graph: dict, vert: int, visited: list) -> li...
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...
f696d78f9ff13d11
cpp
145
Default Light+
#include "models.h" llm_build_deepseek::llm_build_deepseek(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { const int64_t n_embd_head = hparams.n_embd_head_v; GGML_ASSERT(n_embd_head == hparams.n_embd_head_k); GGML_ASSERT(n_embd_head == hparams.n_rot); g...
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...
c1f87fa5987126ce
cpp
55
Monokai
/* * Wslay - The WebSocket Library * * Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa * * 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 limitati...
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...
bf2aa7ab9253d173
go
122
Solarized Light
package postgres 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 ( u...
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.", ...
9d4a9bf35a77075f
cpp
389
One Dark Pro
#include <content/views/view_pattern_data.hpp> #include <hex/api/content_registry/settings.hpp> #include <hex/providers/memory_provider.hpp> #include <hex/api/events/requests_interaction.hpp> #include <hex/api/events/events_interaction.hpp> #include <fonts/vscode_icons.hpp> #include <fonts/tabler_icons.hpp> #include...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
1e547716f1e91e30
cpp
77
One Dark Pro
#pragma once #include <hex.hpp> #include <hex/api/localization_manager.hpp> #include <span> #include <optional> #include <vector> #if !defined(HEX_MODULE_EXPORT) struct ImFont; #endif EXPORT_MODULE namespace hex { /* Functions for adding new font types */ namespace ImHexApi::Fonts { struct Of...
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...
a06f3772ba98331b
python
23
Dracula
from datetime import datetime from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from pydantic import BaseModel fake_db = {} class Item(BaseModel): title: str timestamp: datetime description: str | None = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, it...
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...
e0e19fb9dea9cb4a
csharp
85
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"...
18315ccba9f7e122
go
30
Solarized Dark
// Copyright 2016 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"...
d660d70a6adc1a97
typescript
33
Solarized Dark
export const PROXY_TYPES = [ 'tcp', 'udp', 'http', 'https', 'tcpmux', 'stcp', 'sudp', 'xtcp', ] as const export type ProxyType = (typeof PROXY_TYPES)[number] export const VISITOR_TYPES = ['stcp', 'sudp', 'xtcp'] as const export type VisitorType = (typeof VISITOR_TYPES)[number] export const PLUGIN_TY...
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" ...
9e1e50c52f17e281
typescript
298
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { isFolderTrustEnabled, loadTrustedFolders, } from '../../config/trustedFolders.js'; import { MultiFolderTrustDialog } from '../components/MultiFolderTrustDialog.js'; import { CommandKind, type SlashCommand, type C...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
43e98ff415d0f4b8
typescript
91
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { useState, useCallback } from 'react'; import type { LoadableSettingScope, LoadedSettings, } from '../../config/settings.js'; import { MessageType } from '../types.js'; import type { EditorType } from '@google/gemini-cl...
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...
8bf77cd877f98944
python
124
Monokai
import json from urllib import request #This is the ComfyUI api prompt format. #If you want it for a specific workflow you can "File -> Export (API)" in the interface. #this is the one for the default workflow prompt_text = """ { "3": { "class_type": "KSampler", "inputs": { "cfg": 8, ...
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...
009be541fb9fcc8d
python
158
Default Light+
import re from .common import InfoExtractor from ..utils import ( clean_html, extract_attributes, join_nonempty, js_to_json, mimetype2ext, parse_resolution, unified_strdate, url_or_none, urljoin, ) from ..utils.traversal import ( find_element, traverse_obj, ) class BpbIE(I...
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.", ...
34e668254ecd71c9
typescript
59
Solarized Light
"use client" import * as React from "react" import type { Slider as SliderPrimitive } from "radix-ui" import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/registry/new-york-v4/ui/hover-card" import { Label } from "@/registry/new-york-v4/ui/label" import { Slider } from "@/registry/new-york-v4/ui/sl...
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...
e7a91c34e3a31261
cpp
113
Default Light+
#include "models.h" llm_build_gemma::llm_build_gemma(const llama_model & model, const llm_graph_params & params) : llm_graph_context(params) { const int64_t n_embd_head = hparams.n_embd_head_v; ggml_tensor * cur; ggml_tensor * inpL; inpL = build_inp_embd(model.tok_embd); inpL = ggml_scale(ctx0,...
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...
421d8a4463988fac
java
87
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"...
f75fe4e478c9db85
python
39
Default Light+
from ..compat.compat_utils import passthrough_module try: import Cryptodome as _parent except ImportError: try: import Crypto as _parent except (ImportError, SyntaxError): # Old Crypto gives SyntaxError in newer Python _parent = passthrough_module(__name__, 'no_Cryptodome') __bool_...
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"...
c1c92c19cf71b494
typescript
22
Solarized Light
import { InputGroup, InputGroupAddon, InputGroupInput, } from "@/examples/base/ui/input-group" import { Kbd } from "@/examples/base/ui/kbd" import { SearchIcon } from "lucide-react" export function InputGroupKbd() { return ( <InputGroup className="max-w-sm"> <InputGroupInput placeholder="Search..." /...
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...
c2b11661be69bed5
java
73
Monokai
package com.termux.shared.net.socket.local; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.termux.shared.errors.Error; /** * The interface for the {@link LocalSocketManager} for callbacks to manager client/server starter. */ public interface ILocalSocketManager { /** ...
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...
98dacd57c762cc2d
typescript
174
Default Light+
import { useEffect, useState, useRef } from "react"; import StreamingMarkdownContent from "./StreamingMarkdownContent"; export default function Thinking({ thinking, startTime, endTime, }: { thinking: string; startTime?: Date; endTime?: Date; }) { const [isCollapsed, setIsCollapsed] = useState(true); co...
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...
82e5ba97c8d620de
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 ...
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"...
c67585fbc02a58c6
csharp
26
Default Light+
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { public static class GloballyQualifiedTypeInStringInterpolation { public static string Root => $"Prefix {(global::System.DateTime.Now)} suffix"; public static string Cast => $"Prefix {((int)global::System.DateTime.Now.Ticks)} suffix"; #if CS100 && NET60 p...
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...
c6b181ebfd3d1cf2
typescript
250
One Dark Pro
import { HoppRESTRequest } from "@hoppscotch/data"; import { TestDescriptor } from "@hoppscotch/js-sandbox"; import { runTestScript } from "@hoppscotch/js-sandbox/node"; import * as A from "fp-ts/Array"; import * as RA from "fp-ts/ReadonlyArray"; import * as T from "fp-ts/Task"; import * as TE from "fp-ts/TaskEither"; ...
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...
0d4537a90da2a5e9
cpp
135
One Dark Pro
// dear imgui test engine // (performance tool) // Browse and visualize samples recorded by ctx->PerfCapture() calls. // User access via 'Test Engine UI -> Tools -> Perf Tool' // This file is governed by the "Dear ImGui Test Engine License". // Details of the license are provided in the LICENSE.txt file in the same di...
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...
c78655b9333d101d
typescript
52
Solarized Light
import { ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger, } from "@/examples/radix/ui/context-menu" export function ContextMenuShortcuts() { return ( <ContextMenu> <ContextMenuTrigger className="flex aspect-vide...
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...
b65c3a51759c6b80
go
108
Solarized Dark
package model import ( "fmt" "strings" v1 "github.com/fatedier/frp/pkg/config/v1" ) type VisitorDefinition struct { Name string `json:"name"` Type string `json:"type"` STCP *v1.STCPVisitorConfig `json:"stcp,omitempty"` SUDP *v1.SUDPVisitorConfig `json:"sudp,omitempty"` XTCP *v1.XTCPVisitorConfig `json:"xtcp...
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.", ...
17d55e519e93ddd2
typescript
294
Solarized Light
"use client" import * as React from "react" import { Menu as MenuPrimitive } from "@base-ui/react/menu" import { cn } from "@/registry/bases/base/lib/utils" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" function Picker({ ...props }: MenuPrimitive.Root.Props) { return <MenuPrimitive.R...
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.", ...
c01c2a53c5706274
cpp
228
One Dark Pro
#pragma once #include <hex.hpp> #include <imgui.h> #include <hex/ui/imgui_imhex_extensions.h> #include <hex/api/shortcut_manager.hpp> #include <hex/api/localization_manager.hpp> #include <hex/providers/provider_data.hpp> #include <hex/helpers/scaling.hpp> #include <map> #include <string> namespace hex { cla...
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.", ...
a433fc8424935f4c
csharp
22
Dracula
namespace ServiceLib.Models; [Serializable] public class ServerSpeedItem : ServerStatItem { public long ProxyUp { get; set; } public long ProxyDown { get; set; } public long DirectUp { get; set; } public long DirectDown { get; set; } } [Serializable] public class TrafficItem { public ulong Up {...
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...
9d4ffa5c7d03c7cc
go
172
Default Dark+
package caddycmd import ( "fmt" "github.com/spf13/cobra" "github.com/caddyserver/caddy/v2" ) var defaultFactory = newRootCommandFactory(func() *cobra.Command { bin := caddy.CustomBinaryName if bin == "" { bin = "caddy" } long := caddy.CustomLongDescription if long == "" { long = `Caddy is an extensible...
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"...
a699a0c28e35b13a
typescript
52
Solarized Light
import { Button } from "@/examples/radix/ui/button" import { ButtonGroup } from "@/examples/radix/ui/button-group" import { Field, FieldDescription, FieldLabel } from "@/examples/radix/ui/field" import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from "@/exam...
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...
f3738f1f591fc851
cpp
122
Solarized Light
#pragma once #include <QAction> #include <QMenu> #include <functional> /** * @brief The MenuBuilder class implements the dynamic context menu system for many views. */ class MenuBuilder : public QObject { Q_OBJECT public: typedef std::function<bool(QMenu*)> BuildCallback; explicit MenuBuilder(QObject* ...
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.", ...
e910f678d2d66a72
python
87
Default Light+
from .common import InfoExtractor from ..utils import ExtractorError class Sport5IE(InfoExtractor): _VALID_URL = r'https?://(?:www|vod)?\.sport5\.co\.il/.*\b(?:Vi|docID)=(?P<id>\d+)' _TESTS = [ { 'url': 'http://vod.sport5.co.il/?Vc=147&Vi=176331&Page=1', 'info_dict': { ...
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"...
612cc54c1476c3fe
csharp
205
Default Light+
using System; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { internal class ThrowExpressions { private class ArgumentCheckingCtor { private int initializedFromCtor = CountSheep() ?? throw new Exception("No sheep?!"); private object cacheObj = TryGetObj() ?? throw new Exception("What?"); priv...
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...
f24739c3f2c1c33a
csharp
25
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Text.Json.Serialization; namespace ContentSafety.Services.PromptShield; /// <summary> /// Input for Prompt Shield service. /// More information here: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-jailbreak#analyze-attacks ...
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...
0d9821007fb73389
typescript
45
Solarized Dark
import { URI_AnyTLS } from './anytls' import { normalizeUriAndGetScheme } from './helpers' import { URI_HTTP } from './http' import { URI_Hysteria } from './hysteria' import { URI_Hysteria2 } from './hysteria2' import { URI_SOCKS } from './socks' import { URI_SS } from './ss' import { URI_SSR } from './ssr' import { UR...
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...
98be3674fef65b91
cpp
149
One Dark Pro
/********************************************************************** * File: tface.cpp (Formerly tface.c) * Description: C side of the Tess/tessedit C/C++ interface. * Author: Ray Smith * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ...
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.", ...
a0d84c4fe9629ca9
go
170
Solarized Dark
// Copyright 2016 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
ab6c95f0ca31d9a1
javascript
151
Dracula
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const path = require('path'); const { createAdapterRegistry, inspectSessionTarget } = require('./lib/session-adapters/registry'); const { readSkillObservations } = require('./lib/skill-improvement/observations'); const { buildSkillHealthReport } = require('....
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...
6c60ec3a64b2f9bf
typescript
224
Solarized Light
import { type RegistryItem } from "shadcn/schema" export const fonts = [ { name: "font-geist", title: "Geist", type: "registry:font", font: { family: "'Geist Variable', sans-serif", provider: "google", variable: "--font-sans", subsets: ["latin"], import: "Geist", d...
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...
9054cc9302b05753
python
134
Default Light+
import re from .yahoo import YahooIE from ..utils import ( ExtractorError, int_or_none, parse_qs, url_or_none, ) class AolIE(YahooIE): # XXX: Do not subclass from concrete IE _WORKING = False IE_NAME = 'aol.com' _VALID_URL = r'(?:aol-video:|https?://(?:www\.)?aol\.(?:com|ca|co\.uk|de|jp)...
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...
ac76378cd36dec6b
typescript
126
GitHub Dark
import { isFunction } from '/@/utils/is'; import type { BasicTableProps, TableRowSelection } from '../types/table'; import { computed, ComputedRef, nextTick, Ref, ref, toRaw, unref, watch } from 'vue'; import { ROW_KEY } from '../const'; import { omit } from 'lodash-es'; import { findNodeAll } from '/@/utils/helper/tre...
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" ...