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
157621ee91788ce4
python
37
Dracula
from fastapi import FastAPI, Header, HTTPException from pydantic import BaseModel fake_secret_token = "coneofsilence" fake_db = { "foo": {"id": "foo", "title": "Foo", "description": "There goes my hero"}, "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"}, } app = FastAPI() class Item(Ba...
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...
e100efceffb7cdb4
typescript
157
Solarized Light
"use client" import * as React from "react" import { Dialog as DialogPrimitive } from "@base-ui/react/dialog" import { cn } from "@/registry/bases/base/lib/utils" import { Button } from "@/registry/bases/base/ui/button" import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder" function Dialog({ .....
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...
45e76d8dd7204728
javascript
84
Default Dark+
const { MonitorType } = require("./monitor-type"); const { log, UP } = require("../../src/util"); const dayjs = require("dayjs"); const postgresConParse = require("pg-connection-string").parse; const { Client } = require("pg"); class PostgresMonitorType extends MonitorType { name = "postgres"; /** * @inh...
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...
5c0425f5bf62e99b
java
30
Dracula
package com.macro.mall.mapper; import com.macro.mall.model.UmsAdminPermissionRelation; import com.macro.mall.model.UmsAdminPermissionRelationExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UmsAdminPermissionRelationMapper { long countByExample(UmsAdminPermissionRelatio...
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...
2411bf53c215a8ef
python
317
Monokai
# Copyright (c) Microsoft. All rights reserved. import json from collections.abc import Sequence from dataclasses import asdict, dataclass, fields from typing import Any, ClassVar, Protocol, TypeVar, cast, get_args, get_origin, runtime_checkable from google.protobuf import any_pb2 from google.protobuf.message import ...
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" ...
fdd2fce97744bd83
python
54
Solarized Light
# https://en.wikipedia.org/wiki/Continuous_knapsack_problem # https://www.guru99.com/fractional-knapsack-problem-greedy.html # https://medium.com/walkinthecode/greedy-algorithm-fractional-knapsack-problem-9aba1daecc93 from __future__ import annotations def fractional_knapsack( value: list[int], weight: list[int]...
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...
d35b128e0f7a2b6d
csharp
112
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; using Microsoft.SemanticKernel; using Microsoft.SemanticKernel.ChatComp...
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...
2f4e34a76b52675e
python
34
Dracula
from typing import Annotated from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("...
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" ...
59be6ab7073edeb1
csharp
50
Monokai
// Copyright (c) Microsoft. All rights reserved. #pragma warning disable IDE0005 // Using directive is unnecessary using ChatWithAgent.Web; using ChatWithAgent.Web.Components; using Microsoft.AspNetCore.Http.Timeouts; using Microsoft.Extensions.Http.Resilience; #pragma warning restore IDE0005 // Using directive is un...
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" ...
6aabe3bbea000474
typescript
44
Solarized Light
"use client" import * as React from "react" import { Button } from "@/examples/base/ui/button" import { cn } from "@/lib/utils" import { copyToClipboardWithMeta } from "@/components/copy-button" import { usePresetCode } from "@/app/(create)/hooks/use-design-system" export function CopyPreset({ className }: React.Com...
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.", ...
fe0cb365c13f0cfc
java
99
Default Light+
package com.thealgorithms.dynamicprogramming; import java.util.Arrays; import java.util.HashSet; import java.util.Set; /** * Utility class to find the number of unique subsequences that can be * produced from a given string. * * <p> This class contains static methods to compute the unique subsequence count * usi...
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" ...
42e17f755e2d35a8
rust
54
GitHub Dark
pub fn area_under_curve(start: f64, end: f64, func: fn(f64) -> f64, step_count: usize) -> f64 { assert!(step_count > 0); let (start, end) = if start > end { (end, start) } else { (start, end) }; //swap if bounds reversed let step_length: f64 = (end - start) / step_count as f64; ...
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.", ...
3fca8423134b5558
csharp
369
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.ClientModel; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Azure.AI.OpenAI; using Azure.Core; using Azure.Identity; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.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...
2ebc45b846650cb8
python
180
Default Light+
import itertools from .common import InfoExtractor from ..utils import ( filter_dict, float_or_none, int_or_none, parse_qs, str_or_none, try_get, unified_timestamp, url_or_none, ) from ..utils.traversal import traverse_obj def _extract_episode(data, episode_id=None): title = data[...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
b4baa7cf817b7da1
go
46
Solarized Light
package cron import ( "time" ) // Option represents a modification to the default behavior of a Cron. type Option func(*Cron) // WithLocation overrides the timezone of the cron instance. func WithLocation(loc *time.Location) Option { return func(c *Cron) { c.location = loc } } // WithSeconds overrides the pars...
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"...
deccb4c74ce456e3
java
34
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...
d60848e31711ba5f
go
189
Default Light+
package handles import ( "strconv" "strings" "github.com/alist-org/alist/v3/internal/conf" "github.com/alist-org/alist/v3/internal/model" "github.com/alist-org/alist/v3/internal/op" "github.com/alist-org/alist/v3/internal/sign" "github.com/alist-org/alist/v3/pkg/utils/random" "github.com/alist-org/alist/v3/se...
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"...
6cdc7f171c65a967
python
37
Monokai
import torch import torch.nn as nn from comfy.ldm.modules.attention import optimized_attention import comfy.ops class AttentionPool(nn.Module): def __init__(self, spacial_dim: int, embed_dim: int, num_heads: int, output_dim: int = None, dtype=None, device=None, operations=None): super().__init__() ...
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" ...
7ffe6d8a89232642
go
59
Solarized Dark
// Copyright 2018 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
42c4a8a5bc1484a0
go
23
Solarized Dark
// Copyright 2024 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...
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.", ...
7d79282d793a35bf
cpp
307
One Dark Pro
/////////////////////////////////////////////////////////////////////// // File: linerec.cpp // Description: Top-level line-based recognition module for Tesseract. // Author: Ray Smith // // (C) Copyright 2013, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use...
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.", ...
17813b1818e9012b
csharp
97
Monokai
using System; using System.Runtime.InteropServices; using System.Text; using winPEAS.Native; namespace winPEAS.KnownFileCreds.Browsers.Firefox { /// <summary> /// Firefox helper class /// </summary> static class FFDecryptor { static IntPtr NSS3; [UnmanagedFunctionPointer(CallingCo...
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...
363570d3cac430f0
rust
102
Dracula
#![allow(non_snake_case)] use hbb_common::{bail, ResultType}; use std::{io, ptr::null_mut}; use winapi::{ shared::{ minwindef::{BOOL, DWORD, FALSE, LPBYTE, LPDWORD}, ntdef::{LPCWSTR, LPWSTR}, }, um::winbase::{lstrcmpiW, lstrlenW}, }; use windows_strings::PCWSTR; mod driver; mod port; pub(c...
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...
59bb9435dfe2d29d
csharp
77
Default Light+
// Copyright (c) 2018 Siegfried Pammer // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation the rights to use, copy, modify, merge, // publ...
3
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What is the exact code shown in this VS Code window?", "ro...
05160c6c82467b44
python
57
Monokai
# Copyright (c) Microsoft. All rights reserved. from openai.types import CompletionUsage as OpenAICompletionUsage from openai.types.completion_usage import CompletionTokensDetails, PromptTokensDetails from semantic_kernel.kernel_pydantic import KernelBaseModel class CompletionUsage(KernelBaseModel): """A class...
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...
72429cda84a47f09
typescript
31
Dracula
// This file is an augmentation to the built-in ImportMeta interface // Thus cannot contain any top-level imports // <https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation> // This is tested in `packages/vite/src/node/__tests_dts__/typeOptions.ts` // eslint-disable-next-line @typesc...
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...
f5d805feef97f04f
csharp
77
Monokai
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation t...
1
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Please transcribe the source code shown in this editor screens...
75d10a5a5200f388
typescript
215
Solarized Light
/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import React from 'react'; import { render } from 'ink'; import { basename } from 'node:path'; import { AppContainer } from './ui/AppContainer.js'; import { ConsolePatcher } from './ui/utils/ConsolePatcher.js'; import { registerCle...
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.", ...
5704a45e1fa69cb2
cpp
55
Monokai
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2010 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
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...
d2fe61f56b21a999
java
94
Solarized Dark
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
84cae9673de680e1
rust
37
GitHub Dark
pub fn rot13(text: &str) -> String { let to_enc = text.to_uppercase(); to_enc .chars() .map(|c| match c { 'A'..='M' => ((c as u8) + 13) as char, 'N'..='Z' => ((c as u8) - 13) as char, _ => c, }) .collect() } #[cfg(test)] mod test { use sup...
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"...
f13a7c97268d6ab2
cpp
423
Solarized Light
#include "Breakpoints.h" #include "EditBreakpointDialog.h" #include "StringUtil.h" /** * @brief Set a new breakpoint according to the given type at the given address. * * @param[in] type Type of the breakpoint * @param[in] va Virtual Address * * @return Nothing. */ void Breakpoints::setBP...
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"...
e562912e0e349f55
typescript
122
Solarized Light
/* eslint-disable react/no-children-prop */ "use client" import { useForm } from "@tanstack/react-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } 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...
0fe4e50a384fa75c
cpp
59
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...
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.", ...
0e51b35e3b8c2faa
typescript
100
One Dark Pro
import { NextRequest, NextResponse } from "next/server"; import { getServerSideConfig } from "@/app/config/server"; import { ModelProvider, STABILITY_BASE_URL } from "@/app/constant"; import { auth } from "@/app/api/auth"; export async function handle( req: NextRequest, { params }: { params: { path: string[] } }, ...
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...
f9279857a84bfcae
python
122
Default Light+
from .common import InfoExtractor from ..utils import js_to_json, remove_end, update_url_query class MojevideoIE(InfoExtractor): IE_DESC = 'mojevideo.sk' _VALID_URL = r'https?://(?:www\.)?mojevideo\.sk/video/(?P<id>\w+)/(?P<display_id>[\w()]+?)\.html' _TESTS = [{ 'url': 'https://www.mojevideo.sk/...
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" ...
e844857ce448a56b
typescript
80
Solarized Light
"use client" import { TrendingUp } from "lucide-react" import { PolarAngleAxis, PolarGrid, Radar, RadarChart } from "recharts" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartContainer, ChartTooltip, ChartTooltipCo...
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...
1774fd57c5a402de
csharp
129
Monokai
// Copyright (c) Microsoft. All rights reserved. using ChatWithAgent.AppHost.Extensions; using ChatWithAgent.Configuration; var builder = DistributedApplication.CreateBuilder(args); // Load host configuration. var hostConfig = new HostConfig(builder.Configuration); // Add Api Service AI upstream dependencies var a...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
03c85c35c983ac88
csharp
95
One Dark Pro
#region License Information (GPL v3) /* ShareX - A program that allows you to take screenshots and share any file type Copyright (c) 2007-2026 ShareX Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
2b208582e5f4a359
java
66
Default Dark+
package org.schabi.newpipe.info_list.holder; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import org.schabi.newpipe.R; import org.schabi.newpipe.extractor.InfoItem; import org.schabi.newpipe.extractor.playlist.PlaylistInfoItem; import org.schabi.newpipe.info_list.Inf...
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...
c35d690d26546fb5
csharp
201
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Web; using Microsoft.Extensions.Logging; using Microsoft.Exten...
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"...
866f9ed7ad70389c
cpp
68
One Dark Pro
#pragma once #include <hex.hpp> #include <hex/api/localization_manager.hpp> #include <wolv/container/interval_tree.hpp> #include <vector> #include <memory> EXPORT_MODULE namespace hex { #if !defined(HEX_MODULE_EXPORT) namespace prv { class Provider; } #endif /* Diffing Registry. Allows adding...
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...
74aa80377968a66e
java
283
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...
92588189aba933a8
typescript
70
Solarized Light
"use client" import Script from "next/script" import { Button } from "@/examples/base/ui/button" import { DiceFaces05Icon } from "@hugeicons/core-free-icons" import { HugeiconsIcon } from "@hugeicons/react" import { cn } from "@/lib/utils" import { useRandom } from "@/app/(create)/hooks/use-random" export const RAND...
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...
735c88e34855936f
csharp
54
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.ComponentModel; using System.Text.Json; namespace Microsoft.SemanticKernel.Agents.Magentic; /// <summary> /// Structured response for the ledger evaluation. /// </summary> public sealed record MagenticProgressLedger( [property:Description("The name o...
2
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "Extract and reproduce the code visible in this screenshot.", ...
6dc20286fcefe8a6
java
49
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.", ...
8e70d08a67aa0e51
typescript
434
Dracula
import { LitElement, css, html } from 'lit' import { customElement, property } from 'lit/decorators.js' import litLogo from './assets/lit.svg' import viteLogo from './assets/vite.svg' import heroImg from './assets/hero.png' /** * An example element. * * @slot - This element has a slot * @csspart button - The butto...
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...
3985d054dc5ca751
typescript
159
One Dark Pro
import axios from "axios"; import { md5 } from "js-md5"; import { exceptionColors } from "../getters"; export interface DigestAuthParams { username: string; password: string; realm: string; nonce: string; endpoint: string; method: string; algorithm: string; qop: string; nc?: string; opaque?: strin...
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...
c0de477d733739b5
python
218
Solarized Light
"""Author Alexandre De Zotti Draws Julia sets of quadratic polynomials and exponential maps. More specifically, this iterates the function a fixed number of times then plots whether the absolute value of the last iterate is greater than a fixed threshold (named "escape radius"). For the exponential map this is not ...
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...
a35b45d18e2882f2
cpp
81
One Dark Pro
/********************************************************************** * File: ligature_table.h * Description: Class for adding and removing optional latin ligatures, * conditional on codepoint support by a specified font * (if specified). * Author: Ranjith Unnikrishnan * Cr...
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...
dfdd302db8e9e946
rust
254
Default Dark+
use std::cell::RefCell; use std::sync::RwLock; use actix_web_lab::sse::{self, Event}; use async_openai::types::{ ChatChoiceStream, ChatCompletionMessageToolCall, ChatCompletionMessageToolCallChunk, ChatCompletionRequestAssistantMessage, ChatCompletionRequestMessage, ChatCompletionStreamResponseDelta, ChatC...
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"...
b6f5b6951c7d3a4f
rust
130
One Dark Pro
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // /// `MuxerKillQ` implements a helper object that `VsockMuxer` can use for scheduling forced /// connection termination. I.e. after one peer issues a clean shutdown request /// (VSOCK_OP_SHUTDOWN), the c...
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...
0ce95c020f8d6f03
csharp
35
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.Extensions.AI; using Microsoft.SemanticKernel; using xRetry; #pragma warning disable format // Format item can be simplified #pragma warning disable CA1861 // Avoid constant arrays as arguments namespace Memory; // The following example shows how to ...
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...
0e12789718152d3d
csharp
37
Monokai
namespace winPEAS.Native.Enums { public enum WTS_INFO_CLASS { WTSInitialProgram = 0, WTSApplicationName = 1, WTSWorkingDirectory = 2, WTSOEMId = 3, WTSSessionId = 4, WTSUserName = 5, WTSWinStationName = 6, WTSDomainName = 7, WTSConnectStat...
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...
3c234a2e2f1e6200
cpp
26
Solarized Light
#pragma once #include "command.h" bool cbInstrChd(int argc, char* argv[]); bool cbInstrZzz(int argc, char* argv[]); bool cbDebugHide(int argc, char* argv[]); bool cbDebugLoadLib(int argc, char* argv[]); bool cbDebugFreeLib(int argc, char* argv[]); bool cbInstrAssemble(int argc, char* argv[]); bool cbInstrGpa(int arg...
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.", ...
7cc72afd45171fb6
rust
33
Default Dark+
use std::cell::{RefCell, RefMut}; pub trait RefCellExt<T: ?Sized> { fn try_borrow_mut_or_yield( &self, ) -> std::result::Result<RefMut<'_, T>, std::cell::BorrowMutError>; #[track_caller] fn borrow_mut_or_yield(&self) -> RefMut<'_, T> { self.try_borrow_mut_or_yield().unwrap() } } i...
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"...
bcbf98a57ca0c224
go
35
Solarized Dark
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
0
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What code is displayed in this VS Code screenshot?", "role...
8029033bf42c9946
csharp
48
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; using Microsoft.SemanticKernel.Agents.Runtime.Core; namespace Microsoft.SemanticKernel.Agents.Runtime.InProcess.Tests; public abstract class TestAgent : BaseAgent { ...
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"...
9473abe1c22d47fb
typescript
86
Solarized Light
"use client" import { TrendingUp } from "lucide-react" import { Pie, PieChart } from "recharts" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig, } fr...
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...
2a8bd370e0840914
typescript
29
Solarized Light
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { AsyncLocalStorage } from 'node:async_hooks'; import { debugLogger } from './debugLogger.js'; export const promptIdContext = new AsyncLocalStorage<string>(); /** * Retrieves the prompt ID from the context, or generates a...
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...
77867d5c3ff834ae
cpp
205
Solarized Dark
#include <openpose/producer/flirReader.hpp> #include <openpose/utilities/fastMath.hpp> #include <openpose/utilities/string.hpp> #include <openpose_private/utilities/openCvMultiversionHeaders.hpp> namespace op { FlirReader::FlirReader(const std::string& cameraParameterPath, const Point<int>& cameraResolution, ...
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...
ce6d2186add97453
cpp
336
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...
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" ...
b6329bf84560938e
csharp
52
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Linq; using Microsoft.SemanticKernel; using Xunit; namespace SemanticKernel.IntegrationTests.Plugins; public class SamplePluginsTests { [Fact] public void CanLoadSamplePluginsExecutionSettings() { // Arrange var kernel = new K...
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...
e9a5670fdfa31497
cpp
50
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...
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" ...
5c11fc9cd9e74da3
java
48
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...
2f13b459b1058053
typescript
446
One Dark Pro
import { BuiltinMask } from "./typing"; export const CN_MASKS: BuiltinMask[] = [ { avatar: "1f5bc-fe0f", name: "AI文生图", context: [ { id: "text-to-pic-0", role: "system", content: "You are a useful Assistant that won't refuse to draw picture, instead, you will outpu...
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" ...
d60199490ac0dcce
java
168
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.", ...
29447df6fdca6d3c
python
76
Default Light+
import datetime as dt import hashlib import hmac import urllib.parse from .common import InfoExtractor class AWSIE(InfoExtractor): # XXX: Conventionally, base classes should end with BaseIE/InfoExtractor _AWS_ALGORITHM = 'AWS4-HMAC-SHA256' _AWS_REGION = 'us-east-1' def _aws_execute_api(self, aws_dict, ...
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.", ...
b6a8d33787e51ced
java
30
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.", ...
5a5db3a9414ba5e1
csharp
48
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.Logging; namespace Microsoft.SemanticKernel.Agents.Chat; #pragma warning disable SYSLIB1006 // Multiple logging methods cannot use the same event id within a class /// <summary> /// Exten...
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" ...
2844e95253aa1579
typescript
35
Solarized Light
import Link from "next/link" import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" export default function BreadcrumbWithCustomSeparator() { return ( <Breadcrumb> <BreadcrumbList> <Breadcr...
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...
8912f7c10a125b90
python
59
Solarized Light
""" Problem 28 Url: https://projecteuler.net/problem=28 Statement: Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows: 21 22 23 24 25 20 7 8 9 10 19 6 1 2 11 18 5 4 3 12 17 16 15 14 13 It can be verified that the sum of the num...
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...
063f6962c4e4524c
java
84
Monokai
/* * This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt). * * The MIT License * Copyright © 2014-2022 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associat...
5
[ { "content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.", "role": "system" }, { "content": "What source code is visible in this editor?", "role": "use...
27fcd3344240afe8
csharp
91
Monokai
// Copyright (c) Microsoft. All rights reserved. using Microsoft.Extensions.VectorData; using Microsoft.SemanticKernel.Connectors.InMemory; namespace Memory; /// <summary> /// An example showing how to do paging when there are many records in the database and you want to page through these page by page. /// /// 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"...
c3bbe483647c14c0
python
186
Solarized Light
""" Locally weighted linear regression, also called local regression, is a type of non-parametric linear regression that prioritizes data closest to a given prediction point. The algorithm estimates the vector of model coefficients β using weighted least squares regression: β = (XᵀWX)⁻¹(XᵀWy), where X is the design m...
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.", ...
2640fb07a321c046
csharp
274
Monokai
// Copyright (c) Microsoft. All rights reserved. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.AI; using OllamaSharp; using OllamaSharp.Models.Chat; usi...
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.", ...
4a1d0b9f2f6516f3
java
26
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.", ...
efc52cc85f941e11
python
300
Monokai
#taken from https://github.com/TencentARC/T2I-Adapter import torch import torch.nn as nn from collections import OrderedDict def conv_nd(dims, *args, **kwargs): """ Create a 1D, 2D, or 3D convolution module. """ if dims == 1: return nn.Conv1d(*args, **kwargs) elif dims == 2: return...
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...
221eab3814664510
go
28
Default Light+
package webdav import ( "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/op" ) type Addition struct { Vendor string `json:"vendor" type:"select" options:"sharepoint,other" default:"other"` Address string `json:"address" required:"true"` Username string `json:"username" r...
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" ...
49652bf7923b62a6
typescript
79
GitHub Dark
import { on } from '/@/utils/domUtils'; import { isServer } from '/@/utils/is'; import type { ComponentPublicInstance, DirectiveBinding, ObjectDirective } from 'vue'; type DocumentHandler = <T extends MouseEvent>(mouseup: T, mousedown: T) => void; type FlushList = Map< HTMLElement, { documentHandler: Document...
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" ...
d16b7b25352e4ef8
typescript
254
Solarized Light
"use client" import * as React from "react" import { NavMain } from "@/registry/bases/radix/blocks/sidebar-08/components/nav-main" import { NavProjects } from "@/registry/bases/radix/blocks/sidebar-08/components/nav-projects" import { NavSecondary } from "@/registry/bases/radix/blocks/sidebar-08/components/nav-second...
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...
291ba550925d2744
java
44
Solarized Dark
//You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend makes a guess, you provide a hint that indicates how many digits in said guess match your secret number exactly in both digit and position (called "bulls")...
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" ...
20a8450e2c67ff87
python
70
Solarized Light
""" https://en.wikipedia.org/wiki/Rayleigh_quotient """ from typing import Any import numpy as np def is_hermitian(matrix: np.ndarray) -> bool: """ Checks if a matrix is Hermitian. >>> import numpy as np >>> A = np.array([ ... [2, 2+1j, 4], ... [2-1j, 3, 1j], ... [4, -1j, 1]]) ...
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" ...
371d285ad4e0759d
python
74
Solarized Light
""" Project Euler Problem 2: https://projecteuler.net/problem=2 Even Fibonacci Numbers Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci sequenc...
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"...
e73188edfd1bd319
python
177
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio from semantic_kernel import Kernel from semantic_kernel.connectors.ai import FunctionChoiceBehavior from semantic_kernel.connectors.ai.open_ai import OpenAIChatCompletion, OpenAIChatPromptExecutionSettings from semantic_kernel.contents import ChatHistory,...
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" ...
aef8b147b7bc8fe5
java
24
GitHub Dark
package org.jeecg.modules.system.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import org.jeecg.modules.system.entity.SysDepartRole; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * @Description: 部门角色 * @Author: jeecg-boot * @Date: 2020-02-12 * @Version: V1.0 */ publi...
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.", ...
06706823c8169dc0
python
151
Solarized Light
#!/usr/bin/env python3 # /// script # requires-python = ">=3.13" # dependencies = [ # "beautifulsoup4", # "fake-useragent", # "httpx", # ] # /// from __future__ import annotations import json import httpx from bs4 import BeautifulSoup from fake_useragent import UserAgent headers = {"UserAgent": UserAge...
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" ...
b763db9db8f42480
python
272
Monokai
# Copyright (c) Microsoft. All rights reserved. """ Simple OAuth provider for MCP servers. This module contains a basic OAuth implementation using hardcoded user credentials for demonstration purposes. No external authentication provider is required. NOTE: this is a simplified example for demonstration purposes. Thi...
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"...
dc855dda9cd927e3
typescript
43
One Dark Pro
import { ComposerTranslation } from "vue-i18n" import { GQLError } from "../backend/GQLClient" export const getErrorMessage = ( err: GQLError<string>, t: ComposerTranslation ) => { console.error(err) if (err.type === "network_error") { return t("error.network_error") } switch (err.error) { case "te...
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...
114354be0f1bad36
csharp
24
Monokai
// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; using System.Net.Http; namespace Microsoft.SemanticKernel.Plugins.OpenApi; /// <summary> /// Represents a delegate for creating a payload for a REST API operation. /// </summary> /// <param name="operation">The REST API operation.</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"...
e7727998b3253654
python
304
Monokai
# Copyright (c) Microsoft. All rights reserved. import asyncio import logging import uuid from collections.abc import Callable from inspect import isawaitable from queue import Queue from typing import Any from pydantic import Field, model_validator from semantic_kernel import Kernel from semantic_kernel.exceptions ...
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"...
ca13308fd0c2ad29
rust
22
Default Dark+
use std::io::LineWriter; use anyhow::Context; use tracing_subscriber::fmt::format::FmtSpan; use tracing_subscriber::layer::SubscriberExt; use tracing_subscriber::Layer; pub fn setup_logs(log_filter: &str) -> anyhow::Result<()> { let filter: tracing_subscriber::filter::Targets = log_filter.parse().context(...
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...
ff5ba501de10fd86
csharp
222
Monokai
using Microsoft.Win32; using System; using System.Collections.Generic; using System.Linq; using System.Security.AccessControl; using System.Security.Principal; using winPEAS.Helpers; namespace winPEAS.Helpers.Registry { internal class RegistryWritableKeyInfo { public string Hive { get; set; } 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"...
46c23d63c0ae2206
go
111
Default Light+
package netease_music import ( "context" "strings" "github.com/alist-org/alist/v3/internal/driver" "github.com/alist-org/alist/v3/internal/errs" "github.com/alist-org/alist/v3/internal/model" _ "golang.org/x/image/webp" ) type NeteaseMusic struct { model.Storage Addition csrfToken string musicU ...
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" ...
60b2936bf6f30304
python
84
Default Light+
import base64 from .common import InfoExtractor from ..utils import ( ExtractorError, get_element_by_id, int_or_none, js_to_json, str_or_none, traverse_obj, ) class IxiguaIE(InfoExtractor): _VALID_URL = r'https?://(?:\w+\.)?ixigua\.com/(?:video/)?(?P<id>\d+).+' _TESTS = [{ 'ur...
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...
2ffb3c04f42f4299
python
73
Default Light+
import json from .common import InfoExtractor from ..utils import ( determine_ext, int_or_none, js_to_json, ) class MuenchenTVIE(InfoExtractor): _WORKING = False _VALID_URL = r'https?://(?:www\.)?muenchen\.tv/livestream' IE_DESC = 'münchen.tv' _TEST = { 'url': 'http://www.muenchen...
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" ...
a25f24395ec1d8d4
csharp
81
Dracula
using CliWrap.Buffered; using DialogHostAvalonia; namespace v2rayN.Desktop.Views; public partial class SudoPasswordInputView : UserControl { public SudoPasswordInputView() { InitializeComponent(); Loaded += (s, e) => txtPassword.Focus(); btnSave.Click += async (_, _) => await SavePas...
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" ...
bdb7f46c730adfb2
typescript
225
Solarized Light
"use client" import * as React from "react" import { SearchForm } from "@/registry/bases/radix/blocks/sidebar-02/components/search-form" import { VersionSwitcher } from "@/registry/bases/radix/blocks/sidebar-02/components/version-switcher" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } 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...
a2fd743d0b256cf3
cpp
51
Solarized Dark
#ifdef USE_3D_ADAM_MODEL #ifndef OPENPOSE_3D_JOINT_ANGLE_ESTIMATION_HPP #define OPENPOSE_3D_JOINT_ANGLE_ESTIMATION_HPP #ifdef USE_EIGEN #include <Eigen/Core> #endif #ifdef USE_3D_ADAM_MODEL #include <adam/totalmodel.h> #endif #include <openpose/core/common.hpp> namespace op { OP_API int mapOPToAdam(const ...
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...
61adbcb1a4409a3b
csharp
333
Monokai
namespace winPEAS._3rdParty.SQLite.src { using u8 = System.Byte; public partial class CSSQLite { /* ** 2001 September 15 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May ...
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...