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
5da3c76f579fdd5a
typescript
133
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { Text } from 'ink'; import { theme } from '../../semantic-colors.js'; export const MAX_WIDTH = 150; export interface ExpandableTextProps { label: string; matchedIndex?: number; userInput?:...
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...
8c51272ce8b18621
typescript
136
Default Light+
import { degreesToRadians, radiansToDegrees } from "@excalidraw/math"; import { getBoundTextElement } from "@excalidraw/element"; import { isArrowElement } from "@excalidraw/element"; import { isInGroup } from "@excalidraw/element"; import type { Degrees } from "@excalidraw/math"; import type { ExcalidrawElement } ...
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...
c6b4eb6f96f53248
typescript
107
Default Light+
import { CURSOR_TYPE, MIME_TYPES, THEME } from "@excalidraw/common"; import { isHandToolActive, isEraserActive } from "./appState"; import type { AppState, DataURL } from "./types"; const laserPointerCursorSVG_tag = `<svg viewBox="0 0 24 24" stroke-width="1" width="28" height="28" xmlns="http://www.w3.org/2000/svg">...
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.", ...
576263ee734a2ac7
typescript
20
Dracula
export interface JsonOptions { /** * Generate a named export for every property of the JSON object * @default true */ namedExports?: boolean /** * Generate performant output as JSON.parse("stringified"). * * When set to 'auto', the data will be stringified only if the data is bigger than 10kB. ...
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"...
0f1575bb140106f9
java
26
Dracula
package com.macro.mall.dto; import com.macro.mall.model.SmsCoupon; import com.macro.mall.model.SmsCouponProductCategoryRelation; import com.macro.mall.model.SmsCouponProductRelation; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.Setter; import java.util.List; /** * 优惠券信息封装,包括绑定...
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" ...
8c47c81436647068
rust
72
Default Dark+
use std::collections::BTreeMap; use milli::DocumentId; use crate::network::Remote; use crate::tasks::network::{ ImportState, InRemote, NetworkTopologyChange, ReceiveImportFinishedError, ReceiveTaskError, RemotesImportState, }; impl NetworkTopologyChange { pub fn export_to_process(&self) -> Option<(&BTree...
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" ...
b9610c84d214181b
typescript
134
Solarized Light
"use client" import { Field, FieldDescription, FieldGroup, FieldLabel, } from "@/examples/radix/ui/field" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, } from "@/examples/radix/ui/input-group" import { CopyIcon, EyeOffIcon, InfoIcon, MicIcon, Radio...
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...
8bc851496a0d88ba
go
48
Solarized Dark
// Copyright 2023 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...
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" ...
e5d999325589bd49
javascript
141
Dracula
import './minify.css' import './imported.css' import './sugarss.sss' import './sass.scss' import './less.less' import './less-plugin.less' import './stylus.styl' import './manual-chunk.css' import './postcss-inject-url.css' import urlCss from './url-imported.css?url' appendLinkStylesheet(urlCss) import rawCss from '....
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
35bb5da4821bb111
go
115
Solarized Dark
// Copyright 2025 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...
4b5609969e495e69
javascript
95
Dracula
import Trie from '../Trie'; describe('Trie', () => { it('should create trie', () => { const trie = new Trie(); expect(trie).toBeDefined(); expect(trie.head.toString()).toBe('*'); }); it('should add words to trie', () => { const trie = new Trie(); trie.addWord('cat'); expect(trie.head....
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...
401f48f479f46f8e
python
186
Solarized Light
from __future__ import annotations from dataclasses import dataclass @dataclass class ListNode: val: int = 0 next_node: ListNode | None = None def is_palindrome(head: ListNode | None) -> bool: """ Check if a linked list is a palindrome. Args: head: The head of the linked list. Ret...
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.", ...
45fab4f12df6020a
java
86
GitHub Dark
package com.github.mikephil.charting.highlight; import com.github.mikephil.charting.data.BarData; import com.github.mikephil.charting.data.DataSet; import com.github.mikephil.charting.data.Entry; import com.github.mikephil.charting.interfaces.dataprovider.BarDataProvider; import com.github.mikephil.charting.interfaces...
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...
89d3a460925db917
cpp
126
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: unicity_table.h // Description: a class to uniquify objects, manipulating them using integers // ids. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2....
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
a8f266130fd1260a
java
487
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...
163434c9fb42a05b
typescript
130
One Dark Pro
import { NextRequest } from "next/server"; import { getServerSideConfig } from "../config/server"; import md5 from "spark-md5"; import { ACCESS_CODE_PREFIX, ModelProvider } from "../constant"; function getIP(req: NextRequest) { let ip = req.ip ?? req.headers.get("x-real-ip"); const forwardedFor = req.headers.get("...
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...
0feec5ac9c916911
csharp
335
Default Light+
// Copyright (c) 2018 Siegfried Pammer // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publ...
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...
328e6074b38da5ec
python
43
Monokai
# Copyright (c) Microsoft. All rights reserved. import ast from types import NoneType from typing import get_args from pydantic import BaseModel, ValidationInfo, field_validator class BaseModelLLM(BaseModel): """A Pydantic base class for use when an LLM is completing fields. Provides a custom field validator an...
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" ...
1ee698f59462e1b0
javascript
53
Dracula
import permutateWithRepetitions from '../permutateWithRepetitions'; describe('permutateWithRepetitions', () => { it('should permutate string with repetition', () => { const permutations1 = permutateWithRepetitions(['A']); expect(permutations1).toEqual([ ['A'], ]); const permutations2 = permuta...
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...
e5b6ff422ab26183
rust
100
Default Dark+
use std::iter::{repeat_with, FromIterator}; use std::str; use fst::{SetBuilder, Streamer}; use heed::RwTxn; use crate::{Index, Result, SmallString32}; pub struct WordsPrefixesFst<'t, 'i> { wtxn: &'t mut RwTxn<'i>, index: &'i Index, threshold: usize, max_prefix_length: usize, } impl<'t, 'i> WordsPref...
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"...
28bd4c09fda4b8d4
java
39
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
2f2d3261c80515be
python
182
Default Light+
import base64 import urllib.parse from .common import InfoExtractor from ..utils import ( format_field, int_or_none, parse_iso8601, smuggle_url, unsmuggle_url, urlencode_postdata, ) class AWAANIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?(?:awaan|dcndigital)\.ae/(?:#/)?show/(?P<sh...
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"...
6fe8c04ee94bb5b7
rust
290
Solarized Dark
#![warn(clippy::disallowed_methods)] use clap::crate_authors; use std::io; use std::path::PathBuf; use std::time::SystemTime; use clap::{CommandFactory, Parser, Subcommand, ValueEnum}; use clap_complete::generate; use rand::RngExt; use starship::context::{Context, Properties, Target}; use starship::module::ALL_MODULE...
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...
8e84c7f9cf29ed3c
java
195
GitHub Dark
package com.alibaba.csp.sentinel.dashboard.rule.nacos.entity; import com.alibaba.csp.sentinel.dashboard.datasource.entity.rule.RuleEntity; import com.alibaba.csp.sentinel.slots.block.Rule; import com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowClusterConfig; import com.alibaba.csp.sentinel.slots.block.flow.pa...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
ffbca3fce00949c9
typescript
83
Solarized Light
import { createClient, SupabaseClient } from "@supabase/supabase-js"; import { logger } from "../../lib/logger"; import { configDotenv } from "dotenv"; import { config } from "../../config"; configDotenv(); // SupabaseLedgerService class initializes the Supabase client for the ledger schema class SupabaseLedgerService...
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"...
8e200f696a39f8e6
typescript
76
One Dark Pro
import * as O from "fp-ts/Option" import * as E from "fp-ts/Either" import { pipe, flow } from "fp-ts/function" import { MediaType, RelayResponseBody } from "@hoppscotch/kernel" import { decodeToString } from "~/helpers/functional/parse" import { safeParseJSONOrYAML } from "./yaml" type SafeParseJSON = { (str: 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...
4b60ccb26882d8fa
python
71
Solarized Light
""" Longest Common Substring Problem Statement: Given two sequences, find the longest common substring present in both of them. A substring is necessarily continuous. Example: ``abcdef`` and ``xabded`` have two longest common substrings, ``ab`` or ``de``. Therefore, algorithm should return any one ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
2ededfb7a5a696fd
java
45
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
7c38cd5d6cb8cbee
csharp
50
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.IO; using System.Text.Json.Nodes; using System.Threading.Tasks; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.PromptTemplates.Handlebars; using Xunit; namespace SemanticKernel.IntegrationTests.CrossLanguage; public class YamlPromptTest {...
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...
d6ab0d0ff9c81875
typescript
68
Solarized Light
"use client" import * as React from "react" import { Badge } from "@/examples/radix/ui-rtl/badge" import { BadgeCheck, BookmarkIcon } from "lucide-react" import { useTranslation, type Translations, } from "@/components/language-selector" const translations: Translations = { en: { dir: "ltr", values: { ...
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" ...
ee6324c1bf713fee
typescript
88
Solarized Light
"use client" import * as React from "react" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/bases/radix/ui/collapsible" import { SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarSeparator, } from "@/regis...
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"...
9482d5e0667b47ed
java
64
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...
b52ba1b9699a0813
java
43
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...
c989ad0d55ee9cbe
csharp
407
Monokai
using System.Collections; using System.Windows.Media; using Color = System.Windows.Media.Color; namespace ScreenToGif.Util.Codification.Gif.Encoder.Quantization; public class OctreeQuantizer : Quantizer { private readonly Octree _octree; public OctreeQuantizer(int maxColorBits = 8) : base(false) { ...
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"...
71cc7f73199d9d20
csharp
125
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.ClientModel; using Azure.AI.OpenAI; using Azure.Core; using Microsoft.Extensions.AI; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; namespace SemanticKernel.Connectors.AzureOpenAI.UnitTests.Extensions; publi...
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...
e3ee3dee2d1d9412
rust
145
One Dark Pro
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 use std::fmt::Debug; /// Simple abstraction of a state machine. /// /// `StateMachine<T>` is a wrapper over `T` that also encodes state information for `T`. /// /// Each state for `T` is represented by a ...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
f9a7a2b5c89a2586
java
31
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" ...
69f8279b21e2e697
python
201
Default Light+
import json from .turner import TurnerBaseIE from ..utils import ( determine_ext, float_or_none, int_or_none, mimetype2ext, parse_age_limit, parse_iso8601, strip_or_none, try_get, ) class AdultSwimIE(TurnerBaseIE): _VALID_URL = r'https?://(?:www\.)?adultswim\.com/videos/(?P<show_p...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
b1a6f48c719b239b
go
52
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...
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"...
67fef345990ca4fd
python
64
Monokai
# Copyright (c) Microsoft. All rights reserved. from collections.abc import MutableSequence, Sequence from typing import Literal from pydantic import Field from semantic_kernel.processes.dapr_runtime.dapr_step_info import DaprStepInfo from semantic_kernel.processes.kernel_process.kernel_process import KernelProcess...
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...
0cc163bc445f7fe1
java
58
Default Light+
package com.thealgorithms.bitmanipulation; /** * A utility class to swap every pair of adjacent bits in a given integer. * This operation shifts the even-positioned bits to odd positions and vice versa. * * Example: * - Input: 2 (binary: `10`) → Output: 1 (binary: `01`) * - Input: 43 (binary: `101011`) → Output:...
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...
0216db5943dd7a81
csharp
23
Dracula
namespace ServiceLib.Handler.Fmt; public class ClashFmt : BaseFmt { public static ProfileItem? ResolveFull(string strData, string? subRemarks) { if (Contains(strData, "rules", "-port", "proxies")) { var fileName = WriteAllText(strData, "yaml"); var profileItem = new Pro...
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...
abfb66c934b5d58d
typescript
365
Default Light+
import { Popover } from "radix-ui"; import clsx from "clsx"; import { useRef, useEffect } from "react"; import { COLOR_OUTLINE_CONTRAST_THRESHOLD, COLOR_PALETTE, isColorDark, isWritableElement, } from "@excalidraw/common"; import type { ColorTuple, ColorPaletteCustom } from "@excalidraw/common"; import type ...
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...
821a9cf9e7be939e
java
73
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.", ...
c195c402c4064462
rust
228
Solarized Dark
use super::{Context, Module, ModuleConfig}; use crate::configs::perl::PerlConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current perl version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("p...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
a541b9ef17697ac8
rust
106
Solarized Dark
use super::CmdResult; use crate::{cmd::StringifyErr as _, config::Config, core::CoreManager}; use anyhow::{Context as _, anyhow}; use clash_verge_logging::{Type, logging_error}; use serde_yaml_ng::Mapping; use smartstring::alias::String; use std::collections::{HashMap, HashSet}; /// 获取运行时配置 #[tauri::command] pub async...
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...
daf907e16439c43e
rust
375
Solarized Light
use std::{ collections::HashMap, ffi::CStr, fmt, os::raw::c_char, process::abort, slice, str, sync::atomic::AtomicUsize, }; use tree_sitter::Language; use super::{Error, TagsConfiguration, TagsContext}; const BUFFER_TAGS_RESERVE_CAPACITY: usize = 100; const BUFFER_DOCS_RESERVE_CAPACITY: usize = 1024; #[repr...
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...
344eac83219497b9
go
147
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...
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.", ...
21c92613d04d100d
csharp
103
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.AI; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel.Embeddings; namespace Microsoft.SemanticKerne...
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...
7bd97304eee60ee8
python
105
Dracula
"""Xgboost pyspark integration submodule for params.""" from typing import Dict from pyspark.ml.param import TypeConverters from pyspark.ml.param.shared import Param, Params class HasArbitraryParamsDict(Params): """ This is a Params based class that is extended by _SparkXGBParams and holds the variable ...
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...
673fa33c88b14d2a
csharp
47
Default Light+
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using VSLangProj; namespace ICSharpCode.ILSpy.AddIn.Commands { /// <summary> /// Represents an assembly reference item in Solution Explorer, which can be opened in ILSpy. /// </summary> class Assemb...
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.", ...
53da8dcf5bc32cde
python
66
Monokai
# Copyright (c) Microsoft. All rights reserved. from typing import TYPE_CHECKING, Any from opentelemetry import trace from semantic_kernel.utils.feature_stage_decorator import experimental from semantic_kernel.utils.telemetry.model_diagnostics.gen_ai_attributes import ( OPERATION, TOOL_CALL_ID, TOOL_DESC...
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...
8c0da08035b9d389
go
26
Default Light+
package v3_32_0 import ( "github.com/alist-org/alist/v3/internal/db" "github.com/alist-org/alist/v3/internal/op" "github.com/alist-org/alist/v3/pkg/utils" ) // UpdateAuthnForOldVersion updates users' authn // First published: bdfc159 fix: webauthn logspam (#6181) by itsHenry func UpdateAuthnForOldVersion() { user...
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...
43d323fdf226c86a
csharp
53
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData.ProviderServices; namespace Microsoft.SemanticKernel.Connectors.InMemory; internal class InMemoryModelBuilder() : CollectionModelBuilder(Validati...
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" ...
331b0beabbd6b5e7
cpp
48
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...
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" ...
ba691687b6864cb4
java
47
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Reproduce the code from this screenshot.", "role": "user" ...
54a7aad567230394
csharp
54
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Amazon.BedrockRuntime; using Microsoft.Extensions.Logging; using Microsoft.SemanticKernel.Connectors.Amazon.Core; using Microsoft.SemanticKernel.Embeddings; usin...
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"...
46aba35908032406
csharp
138
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.AI; using Microsoft.Extensions.VectorData; using Microsoft.Ext...
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.", ...
1392e03429cdd63a
cpp
43
Dracula
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "LiveRegionHost.h" using namespace CalculatorApp::ViewModel::Common::Automation; using namespace Windows::UI::Xaml::Automation; using namespace Windows::UI::Xaml::Automation::Peers; using namespa...
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.", ...
472d06b2791558cb
typescript
39
Solarized Light
"use client" import * as React from "react" import { InputOTP, InputOTPGroup, InputOTPSlot, } from "@/examples/base/ui/input-otp" export default function InputOTPControlled() { const [value, setValue] = React.useState("") return ( <div className="space-y-2"> <InputOTP maxLength={6} ...
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...
b1f0f56b8c0947b6
csharp
103
Default Light+
// Copyright (c) 2017 Daniel Grunwald // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publi...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
97beea89a27f443b
go
106
Default Dark+
package httpcaddyfile import ( "regexp" "strings" "github.com/caddyserver/caddy/v2/caddyconfig/caddyfile" ) type ComplexShorthandReplacer struct { search *regexp.Regexp replace string } type ShorthandReplacer struct { complex []ComplexShorthandReplacer simple *strings.Replacer } func NewShorthandReplacer(...
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...
5101c683061a607a
javascript
41
Default Dark+
const { checkLogin } = require("../util-server"); const Database = require("../database"); /** * Handlers for database * @param {Socket} socket Socket.io instance * @returns {void} */ module.exports.databaseSocketHandler = (socket) => { // Post or edit incident socket.on("getDatabaseSize", async (callback)...
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.", ...
ab63551481290b73
csharp
68
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...
b6c665f5683534ac
cpp
307
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: detlinefit.cpp // Description: Deterministic least median squares line fitting. // Author: Ray Smith // // (C) Copyright 2008, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use th...
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"...
e9f1a0f1df70964c
javascript
40
Default Dark+
exports.up = function (knex) { return knex.schema .alterTable("stat_daily", function (table) { table .float("ping_min") .notNullable() .defaultTo(0) .comment("Minimum ping during this period in milliseconds"); table ...
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"...
5ad13812582e95e2
java
146
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...
68a92e2bf7d16a58
typescript
284
Default Dark+
import { startOfMonth } from 'date-fns'; import { useEffect, useState } from 'react'; import { Controller, useForm } from 'react-hook-form'; import { ArrowPathIcon } from '@heroicons/react/20/solid'; import type { QuestionsQuestionType } from '@prisma/client'; import type { TypeaheadOption } from '~/ui'; import { Check...
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...
8d7d05d27b31084f
go
239
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...
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...
7d3b56bbaa0cebf4
javascript
53
Dracula
/** * Picks the random item based on its weight. * The items with higher weight will be picked more often (with a higher probability). * * For example: * - items = ['banana', 'orange', 'apple'] * - weights = [0, 0.2, 0.8] * - weightedRandom(items, weights) in 80% of cases will return 'apple', in 20% of cases wil...
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...
b6e3f925817a9058
javascript
284
GitHub Dark
module.exports = { env: { es6: true }, parserOptions: { ecmaVersion: 6, sourceType: 'module' }, plugins: [ 'import' ], settings: { 'import/resolver': { node: { extensions: ['.mjs', '.js', '.json'] } }, 'import/extensions': [ '.js', '.mjs', ...
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...
0844790b9b03a17c
cpp
159
Solarized Light
#ifndef _TASKTHREAD_H #define _TASKTHREAD_H #include "_global.h" #include <thread> #include <tuple> #include <type_traits> const size_t TASK_THREAD_DEFAULT_SLEEP_TIME = 100; template <typename F, typename... Args> class TaskThread_ { protected: F fn; std::tuple<Args...> args; bool active = true; HAND...
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...
2f69d235d1d6c06d
csharp
65
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...
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" ...
a83463b56bf67056
csharp
320
Monokai
using System; using winPEAS._3rdParty.BouncyCastle.crypto.util; using winPEAS._3rdParty.BouncyCastle.util; namespace winPEAS._3rdParty.BouncyCastle.crypto.digests { /// <summary> /// Implementation of Chinese SM3 digest as described at /// http://tools.ietf.org/html/draft-shen-sm3-hash-00 /// and at .... ( Chines...
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...
c4fb64463506ecac
python
117
Monokai
# Copyright (c) Microsoft. All rights reserved. from dataclasses import dataclass from pydantic import ValidationError from semantic_kernel import Kernel from semantic_kernel.connectors.ai.function_calling_utils import kernel_function_metadata_to_function_call_format from semantic_kernel.connectors.ai.open_ai import ...
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...
df96632560112c93
typescript
56
One Dark Pro
import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js"; import { MCPClientLogger } from "./logger"; import { ListToolsResponse, McpRequestMessage, ServerConfig } from "./types"; import { z } from "zod"; const logger = new MCP...
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...
60a398111d86e45f
java
288
Monokai
package com.termux.app.api.file; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.provider.OpenableColumns; import android.util.Patterns; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import 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...
09c51026d231c3a3
python
121
Solarized Dark
import re import base64 import binascii from urllib.parse import parse_qs, urlparse from typing import Any, BinaryIO from bs4 import BeautifulSoup from .._base_converter import DocumentConverter, DocumentConverterResult from .._stream_info import StreamInfo from ._markdownify import _CustomMarkdownify ACCEPTED_MIME_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"...
d51ed50107e1d066
typescript
30
Default Light+
import React, { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import "@excalidraw/excalidraw/index.css"; import type * as TExcalidraw from "@excalidraw/excalidraw"; import App from "./components/ExampleApp"; declare global { interface Window { ExcalidrawLib: typeof TExcalidraw; }...
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" ...
0235d5e8d99f63a3
csharp
21
Monokai
using System; using System.Globalization; using System.Windows.Data; namespace ScreenToGif.Util.Converters; public class IntToString : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is not int number|| number == 0) ...
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...
ce6867211ba5ba41
java
89
Default Light+
package com.thealgorithms.sorts; import java.util.Arrays; /** * Implementation of Merge Sort without using extra space for merging. * This implementation performs in-place merging to sort the array of integers. */ public final class MergeSortNoExtraSpace { private MergeSortNoExtraSpace() { } /** ...
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...
2a8d519556558860
csharp
26
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Threading.Tasks; using Dapr.Actors; namespace Microsoft.SemanticKernel; // estenori-note: // for some reason dapr doesn't like if instead public interface IExternalMessageBuffer : IActor, IExternalKernelProcessMessageChannelBase // instead defining the 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.", ...
81d92e09108b3ac9
go
145
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" ...
4151054903ffdb34
cpp
136
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: unicharmap.cpp // Description: Unicode character/ligature to integer id class. // Author: Thomas Kielbus // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not us...
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...
b1ab520f4c041c7f
typescript
58
Default Light+
export async function* parseJsonlFromStream<T>( stream: ReadableStream<Uint8Array>, ): AsyncGenerator<T, void, unknown> { const reader = stream.getReader(); const decoder = new TextDecoder(); let buffer = ""; try { while (true) { const { done, value } = await reader.read(); if (done) { ...
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...
17aa8bae15b3648c
python
40
Monokai
from typing_extensions import override import nodes from comfy_api.latest import ComfyExtension, io class CLIPTextEncodePixArtAlpha(io.ComfyNode): @classmethod def define_schema(cls): return io.Schema( node_id="CLIPTextEncodePixArtAlpha", search_aliases=["pixart prompt"], ...
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...
016eb8c8647473f4
java
100
Monokai
package com.termux.shared.interact; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.Color; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.TextV...
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...
bb1f4851ac5f558e
java
39
Solarized Dark
// Given a string, find the length of the longest substring T that contains at most k distinct characters. // For example, Given s = “eceba” and k = 2, // T is "ece" which its length is 3. public class LongestSubstringWithAtMostKDistinctCharacters { public int lengthOfLongestSubstringKDistinct(String s, int k) {...
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...
5041a4d59b461708
java
98
GitHub Dark
package org.jeecg.common.constant.enums; import org.jeecg.common.util.oConvertUtils; /** * @Description: 部门类型枚举类 * * @author: wangshuai * @date: 2025/8/19 21:37 */ public enum DepartCategoryEnum { DEPART_CATEGORY_COMPANY("部门类型:公司","公司","1"), DEPART_CATEGORY_DEPART("部门类型:部门","部门","2"), DEPART_CATEGORY...
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...
407e9fc8b0ea3a7c
cpp
85
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
6
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Transcribe the code from this VS Code screenshot.", "role"...
ebc7882db4796059
java
53
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...
ca1af6ae5df1f7e6
typescript
66
Solarized Light
"use client" import * as React from "react" import { addDays, format } from "date-fns" import { CalendarIcon } from "lucide-react" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Calendar } from "@/registry/new-york-v4/ui/calendar" import { Popover, PopoverConte...
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...
7118b68c59e31555
csharp
49
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.SemanticKernel.ChatCompletion; using Microsoft.SemanticKernel.Experimental.Orchestration.Execution; using Xunit; namespace SemanticKernel.Experimental.Orchestration.Flow.UnitTests; public class ChatHistorySerializerTest { [Fact] public void Ca...
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...
8e6cca51a8ee6cde
typescript
84
GitHub Dark
import type { PropType } from 'vue'; import { FileBasicColumn } from './typing'; export const basicProps = { helpText: { type: String as PropType<string>, default: '', }, // 文件最大多少MB maxSize: { type: Number as PropType<number>, default: 2, }, // 最大数量的文件,Infinity不限制 maxNumber: { type: ...
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...
8a503da9ca3c606c
python
34
Solarized Light
from typing import Optional, Dict, Any from ...types import ScrapeOptions, Document from ...utils.normalize import normalize_document_input from ...utils.error_handler import handle_response_error from ...utils.validation import prepare_scrape_options, validate_scrape_options from ...utils.http_client_async import Asyn...
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...
289d8cf724c30062
python
86
Default Light+
from .common import InfoExtractor from ..utils import int_or_none class FiveTVIE(InfoExtractor): _VALID_URL = r'''(?x) https?:// (?:www\.)?5-tv\.ru/ (?: (?:[^/]+/)+(?P<id>\d+)| (?P<path>[^/?...
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...
aa071b2b575d7090
typescript
55
Solarized Light
"use client" import * as React from "react" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/bases/radix/ui/card" const FITNESS_WEEKLY_LOAD = [ { day: "M", load: 84 }, { day: "T", load: 52 }, { day: "W", load: 73 }, { day: "T", load: 66 }, { day: "F", load: 9...
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...
46d7ff04b6b4eee7
typescript
32
Default Light+
import React, { useEffect, useState } from "react"; import type { Theme } from "@excalidraw/element/types"; import { defaultLang, languages, setLanguage } from "../i18n"; import { LoadingMessage } from "./LoadingMessage"; import type { Language } from "../i18n"; interface Props { langCode: Language["code"]; ch...
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...
5bed2b24635655c5
python
102
Default Light+
import json from .common import InfoExtractor from ..utils import int_or_none, parse_iso8601, url_or_none from ..utils.traversal import traverse_obj class FrontoBaseIE(InfoExtractor): def _get_auth_headers(self, url): return traverse_obj(self._get_cookies(url), { 'authorization': ('frAccessTo...
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...
ed23c5bd00d4f053
java
128
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"...