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 |
|---|---|---|---|---|---|---|
d68beeed45629713 | javascript | 187 | GitHub Dark | /**
* 字典 util
* author: scott
* date: 20190109
*/
import { ajaxGetDictItems, getDictItemsByCode } from './index';
/**
* 获取字典数组
* 【目前仅表单设计器页面使用该方法】
* @param dictCode 字典Code
* @param isTransformResponse 是否转换返回结果
* @return List<Map>
*/
export async function initDictOptions(dictCode, isTransformResponse = true)... | 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"... |
63108e25ede46ed3 | csharp | 30 | Monokai | using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Input;
namespace ScreenToGif.Util.Converters;
public class CommandToKeyGesture : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var command = value... | 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"... |
f66bab236bfcf751 | csharp | 131 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.Semant... | 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... |
a0fb026d2bdbb89c | typescript | 89 | Default Dark+ | import type { JsonObject } from 'type-fest'
import { WHERE_OPERATORS, type WhereOperator } from './where-operators.ts'
type OperatorObject = Partial<Record<WhereOperator, unknown>>
function isJSONObject(value: unknown): value is JsonObject {
return typeof value === 'object' && value !== null && !Array.isArray(valu... | 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... |
fc67b64ecd5ab252 | typescript | 261 | Solarized Light | import { describe, expect, it } from "vitest"
import { isContentSame } from "./compare"
describe("isContentSame", () => {
describe("basic comparisons", () => {
it("should return true for identical content", () => {
const content = `const foo = "bar"`
expect(isContentSame(content, content)).toBe(true... | 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... |
fc3cfeca6bbcdbda | go | 91 | 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... | 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... |
33da7dd96900a26e | go | 254 | 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... | 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.",
... |
e4638989a05fdaf5 | java | 67 | One Dark Pro | package com.litongjava.whisper.android.java.single;
import android.app.Application;
import android.os.Build;
import android.os.Handler;
import androidx.annotation.RequiresApi;
import com.blankj.utilcode.util.ToastUtils;
import com.blankj.utilcode.util.Utils;
import com.litongjava.jfinal.aop.Aop;
import com.litongjav... | 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.",
... |
37d6f982d6e1da67 | java | 73 | Default Light+ | package com.thealgorithms.scheduling;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* MultiAgentScheduling assigns tasks to different autonomous agents
* who independently decide the execution order of their assigned tasks.
* The focus is on collaboration be... | 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... |
926630307ebc0c79 | python | 56 | Solarized Light | """
A Hamming number is a positive integer of the form 2^i*3^j*5^k, for some
non-negative integers i, j, and k. They are often referred to as regular numbers.
More info at: https://en.wikipedia.org/wiki/Regular_number.
"""
def hamming(n_element: int) -> list:
"""
This function creates an ordered list of n len... | 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... |
2863e7b2b58fdc02 | java | 51 | One Dark Pro | package io.github.ggerganov.whispercpp.model;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* Structure representing token data.
*/
public class WhisperTokenData extends Structure {
/** Token ID. */
public int id;
/** Forced timestamp token ID. */
public int ti... | 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... |
f86ccca2a2f8410f | typescript | 288 | Solarized Light | import { Logger } from "winston";
import { z } from "zod";
import { InternalAction } from "../../../../controllers/v1/types";
import { robustFetch } from "../../lib/fetch";
import { MockState } from "../../lib/mock";
import { getDocFromGCS } from "../../../../lib/gcs-jobs";
import {
ActionError,
DNSResolutionError... | 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"... |
82763edf2d1b1d0c | cpp | 30 | Monokai | #pragma once
#ifndef EVENTHANDLER_H
#define EVENTHANDLER_H
#include "Based.h"
#include "SocksHelper.h"
bool eh_init();
void eh_free();
void threadStart();
void threadEnd();
void tcpConnectRequest(ENDPOINT_ID id, PNF_TCP_CONN_INFO info);
void tcpConnected(ENDPOINT_ID id, PNF_TCP_CONN_INFO info);
void tcpCanSend(ENDPOI... | 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... |
899c94ce28ef6df4 | java | 65 | 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"... |
b95a439f3ccaab79 | csharp | 44 | Monokai | using System.IO;
namespace ScreenToGif.Util.Codification.Psd;
internal class Channel : IPsdContent
{
public byte[] RawContent { get; }
public byte[][] RleCompressedContent { get; }
public long Length => Content?.Length ?? 0;
public byte[] Content
{
get
{
if (RleCompr... | 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... |
4d8316eaacca6d9d | csharp | 63 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System;
using System.Linq;
using Microsoft.SemanticKernel;
using ModelContextProtocol.Protocol;
namespace MCPClient;
/// <summary>
/// Extension methods for <see cref="ChatMessageContent"/>.
/// </summary>
public static class ChatMessageContentExtensions
{
... | 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"... |
e641d74a3ca74135 | go | 73 | Default Light+ | package fzf
import (
"os"
"os/exec"
"github.com/junegunn/fzf/src/tui"
)
func runTmux(args []string, opts *Options) (int, error) {
// Prepare arguments
fzf, rest := args[0], args[1:]
args = []string{"--bind=ctrl-z:ignore"}
if !opts.Tmux.border && (opts.BorderShape == tui.BorderUndefined || opts.BorderShape == ... | 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"... |
6ceb0f6b202c9526 | java | 56 | Monokai | /*
* This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt).
*
* The MIT License
* Copyright © 2014-2022 Ilkka Seppälä
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associat... | 3 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What is the exact code shown in this VS Code window?",
"ro... |
96262ad54601c0e2 | 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... | 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"... |
7b6dfc5b3c603cc8 | typescript | 186 | Solarized Light | /**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Options for formatForSpeech().
*/
export interface FormatForSpeechOptions {
/**
* Maximum output length in characters before truncating.
* @default 500
*/
maxLength?: number;
/**
* Number of trailing path ... | 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... |
3d990298c45276be | rust | 88 | Default Dark+ | use serde::Serialize;
use crate::{
config::Config,
error::OpenAIError,
project_api_keys::ProjectAPIKeys,
types::{Project, ProjectCreateRequest, ProjectListResponse, ProjectUpdateRequest},
Client, ProjectServiceAccounts, ProjectUsers,
};
/// Manage the projects within an organization includes creat... | 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... |
e438eb67b52715d7 | csharp | 192 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System;
using System.Reflection;
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.SemanticKernel.Connectors.OpenAI;
using OpenAI.Chat;
using Xunit;
namespace SemanticKernel.Connectors.OpenAI.UnitTests.Helpers;
/// <summary>
/// Unit... | 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"... |
d7b1e8d36d918e1d | javascript | 30 | GitHub Dark | 'use strict';
import stream from 'stream';
class ZlibHeaderTransformStream extends stream.Transform {
__transform(chunk, encoding, callback) {
this.push(chunk);
callback();
}
_transform(chunk, encoding, callback) {
if (chunk.length !== 0) {
this._transform = this.__transform;
// Add De... | 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"
... |
d7bcd7405fdfbd4b | cpp | 32 | Solarized Light | #pragma once
#include "jansson.h"
typedef json_t* JSON;
static JSON_INLINE
json_t* json_hex(unsigned json_int_t value)
{
char hexvalue[20];
sprintf_s(hexvalue, "0x%llX", value);
return json_string(hexvalue);
}
static JSON_INLINE
unsigned json_int_t json_hex_value(const json_t* hex)
{
unsigned json_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.",
... |
d344840e8941b42a | typescript | 193 | Monokai | import {_capitalize} from './helpers.core.js';
/**
* Binary search
* @param table - the table search. must be sorted!
* @param value - value to find
* @param cmp
* @private
*/
export function _lookup(
table: number[],
value: number,
cmp?: (value: number) => boolean
): {lo: number, hi: number};
export funct... | 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... |
af1f5aa8d4b3f38c | cpp | 80 | One Dark Pro | #pragma once
#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <windows.h>
# include <winevt.h>
#else
# include <dlfcn.h>
# include <unistd.h>
#endif
#include <filesystem>
namespace fs = std::filesystem;
#ifdef _WIN32
using dl_handle = std::remove... | 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... |
e3178aec3fbbd8c2 | csharp | 106 | Monokai | using System.Diagnostics;
using System.Net;
using Netch.Models;
using Netch.Servers;
using Socks5.Models;
using STUN.Client;
using STUN.Enums;
using STUN.Proxy;
using STUN.StunResult;
namespace Netch.Utils;
public static class Socks5ServerTestUtils
{
public static async Task<NatTypeTestResult> DiscoveryNatTypeAs... | 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... |
0f10ab5a44e44e21 | csharp | 53 | Monokai | #region License
// ------------------------------------------------------------------
// Adapted work from DirectX.Capture
// https://www.codeproject.com/articles/3566/directx-capture-class-library
// http://creativecommons.org/licenses/publicdomain/
// -----------------------------------------------------------------... | 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... |
e4d2b0f20ff1205a | java | 79 | 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... |
2d1f186da61b2288 | go | 140 | Default Light+ | package imageproc
import (
"image"
"image/color"
"golang.org/x/image/draw"
)
var (
ImageNetDefaultMean = [3]float32{0.485, 0.456, 0.406}
ImageNetDefaultSTD = [3]float32{0.229, 0.224, 0.225}
ImageNetStandardMean = [3]float32{0.5, 0.5, 0.5}
ImageNetStandardSTD = [3]float32{0.5, 0.5, 0.5}
ClipDefaultMean ... | 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"... |
a23e4572dce3c9d6 | csharp | 244 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
using Moq;
using Xunit;
namespace SemanticKernel.Agents.UnitTests.AIAgent;
public sealed class SemanticK... | 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... |
cdee1dc3a407a3aa | csharp | 28 | Dracula | namespace ServiceLib.Services.CoreConfig;
public partial class CoreConfigSingboxService
{
private void GenExperimental()
{
//if (_config.guiItem.enableStatistics)
{
_coreConfig.experimental ??= new Experimental4Sbox();
_coreConfig.experimental.clash_api = new Clash_Api4S... | 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... |
33f63979eb52f9b7 | typescript | 167 | Solarized Light | /**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import * as path from 'node:path';
import * as fs from 'node:fs';
import { opendir } from 'node:fs/promises';
import { homedir, type WorkspaceContext } from '@google/gemini-cli-core';
const MAX_SUGGESTIONS = 50;
const MATCH_BUFFER... | 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.",
... |
d99820a2e8a049df | python | 124 | Solarized Light | """
https://en.wikipedia.org/wiki/Taylor_series#Trigonometric_functions
"""
from math import factorial, pi
def maclaurin_sin(theta: float, accuracy: int = 30) -> float:
"""
Finds the maclaurin approximation of sin
:param theta: the angle to which sin is found
:param accuracy: the degree of accuracy ... | 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"
... |
c660d2803b9436a5 | typescript | 319 | GitHub Dark | import { FormProps, FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table/src/types/table';
export function getBasicColumns(): BasicColumn[] {
return [
{
title: 'ID',
dataIndex: 'id',
fixed: 'left',
width: 200,
},
{
title: '姓名',
data... | 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"... |
393b3a447e951c9c | java | 161 | 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.",
... |
0689d728776d5921 | rust | 246 | One Dark Pro | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
#![cfg(test)]
#![doc(hidden)]
use std::os::unix::io::{AsRawFd, RawFd};
use std::sync::Arc;
use vmm_sys_util::epoll::EventSet;
use vmm_sys_util::eventfd::EventFd;
use super::packet::{VsockPacketRx, Vsock... | 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"... |
705e7b1f66dcc523 | python | 47 | Solarized Light | def get_1s_count(number: int) -> int:
"""
Count the number of set bits in a 32 bit integer using Brian Kernighan's way.
Ref - https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetKernighan
>>> get_1s_count(25)
3
>>> get_1s_count(37)
3
>>> get_1s_count(21)
3
>>> get_1s... | 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... |
b8fa1aceb472d7c8 | cpp | 85 | Monokai | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#ifndef SPDLOG_HEADER_ONLY
#include <spdlog/async_logger.h>
#endif
#include <spdlog/details/thread_pool.h>
#include <spdlog/sinks/sink.h>
#include <memory>
#include... | 1 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "Please transcribe the source code shown in this editor screens... |
a623e856ccf5515c | csharp | 147 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
namespace Microsoft.SemanticKernel.Agents;
/// <summary>... | 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... |
f59dec62f6ed4ca4 | csharp | 120 | 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 ... | 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... |
715ee9b5adb82e67 | cpp | 75 | Dracula | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <wrl/wrappers/corewrappers.h>
namespace CalculatorApp
{
class AsyncHelper
{
public:
static concurrency::task<void> RunOnUIThreadAsync(std::function<void()>&& action);
stat... | 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... |
43283d8ae7f93a54 | cpp | 67 | Solarized Light | #pragma once
#include "RegistersView.h"
class CPURegistersView : public RegistersView
{
Q_OBJECT
public:
CPURegistersView(CPUWidget* parent = nullptr);
public slots:
void setRegister(REGISTER_NAME reg, duint value);
void updateRegistersSlot();
virtual void debugStateChangedSlot(DBGSTATE state);
... | 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"
... |
f4cbf7f7299ce4e2 | go | 34 | 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... | 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"
... |
d58f98449ac4c5a6 | java | 51 | 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"... |
abd4fa6cdbf3994c | typescript | 109 | One Dark Pro | import chalk from "chalk";
import { Command } from "commander";
import * as E from "fp-ts/Either";
import { version } from "../package.json";
import { test } from "./commands/test";
import { handleError } from "./handlers/error";
const accent = chalk.greenBright;
/**
* * Program Default Configuration
*/
const CLI_... | 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... |
d0711b3898f6b64e | python | 29 | Default Light+ | #!/usr/bin/env python3
# Allow direct execution
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from pathlib import Path
from devscripts.make_changelog import create_changelog, create_parser
from devscripts.utils import read_file, read_version, write_file
# Alwa... | 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.",
... |
5d520d906ef2b594 | python | 249 | Solarized Light | # Author: M. Yathurshan
# Black Formatter: True
"""
Implementation of SHA256 Hash function in a Python class and provides utilities
to find hash of string or hash of text from a file.
Usage: python sha256.py --string "Hello World!!"
python sha256.py --file "hello_world.txt"
When run without any argument... | 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"... |
5a67640b7864ac9b | csharp | 58 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.SemanticKernel.Agents.Extensions;
namespace Microsoft.SemanticKernel.Agents.Chat;
/// <summary>
/// Represents a round-robin ... | 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... |
4d6215967c724e63 | cpp | 227 | One Dark Pro | #include "utils.h"
#include "ggml-impl.h"
#include <cstddef>
#include <ctime>
#include <memory>
#include <openvino/op/add.hpp>
#include <openvino/op/clamp.hpp>
#include <openvino/op/convert.hpp>
#include <openvino/op/cos.hpp>
#include <openvino/op/divide.hpp>
#include <openvino/op/gather.hpp>
#include <openvino/op/ma... | 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... |
8df50a999b062c1e | java | 52 | 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.",
... |
4da7c2ace38b97f9 | python | 75 | Solarized Light | """
Project Euler Problem 206: https://projecteuler.net/problem=206
Find the unique positive integer whose square has the form 1_2_3_4_5_6_7_8_9_0,
where each “_” is a single digit.
-----
Instead of computing every single permutation of that number and going
through a 10^9 search space, we can narrow it down conside... | 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... |
e408a0b07b2574c0 | java | 58 | Monokai | /*
* This project is licensed under the MIT license. Module model-view-viewmodel is using ZK framework licensed under LGPL (see lgpl-3.0.txt).
*
* The MIT License
* Copyright © 2014-2022 Ilkka Seppälä
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associat... | 3 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What is the exact code shown in this VS Code window?",
"ro... |
26d047b31fd2eacd | python | 49 | Solarized Light | # https://en.wikipedia.org/wiki/Run-length_encoding
def run_length_encode(text: str) -> list:
"""
Performs Run Length Encoding
>>> run_length_encode("AAAABBBCCDAA")
[('A', 4), ('B', 3), ('C', 2), ('D', 1), ('A', 2)]
>>> run_length_encode("A")
[('A', 1)]
>>> run_length_encode("AA")
[('A... | 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"
... |
d10688f32d60b192 | python | 43 | Default Light+ | from .common import InfoExtractor
from ..utils import url_basename
class BehindKinkIE(InfoExtractor):
_WORKING = False
_VALID_URL = r'https?://(?:www\.)?behindkink\.com/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/(?P<id>[^/#?_]+)'
_TEST = {
'url': 'http://www.behindkink.com/2014/12/05... | 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"
... |
3cb786a86d236110 | java | 438 | 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.",
... |
e78b3d690fceb195 | python | 97 | Dracula | """Tests for inference."""
from typing import Type
import numpy as np
from scipy.special import logit # pylint: disable=no-name-in-module
from ..core import DMatrix
from ..training import train
from .shared import validate_leaf_output
from .updater import get_basescore
from .utils import Device
# pylint: disable=... | 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.",
... |
71ce8d0b5051d133 | typescript | 160 | Solarized Light | "use client"
import { Badge } from "@/registry/bases/base/ui/badge"
import {
Card,
CardAction,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/bases/base/ui/card"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export function SectionCards() {
return (... | 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... |
4afa0e3d80467432 | typescript | 23 | Solarized Light | export function parseApi(api: string) {
// Handle older versions of the API that don't have the fc- prefix
if (!api.startsWith("fc-")) {
return api;
}
// remove the fc- prefix
// re add all the dashes based on the uuidv4 format
// 3d478a29-6e59-403e-85c7-94aba81ffd2a
const uuid = api
.replace(/^f... | 5 | [
{
"content": "You are a code transcription assistant. When given a screenshot of code in a VS Code editor, you reproduce the exact source code shown, preserving all formatting, indentation, and syntax.",
"role": "system"
},
{
"content": "What source code is visible in this editor?",
"role": "use... |
1596eef90acfeb31 | typescript | 35 | Solarized Light | import { getAllBlockIds } from "@/lib/blocks"
import { registryCategories } from "@/lib/categories"
import { BlockDisplay } from "@/components/block-display"
import { getActiveStyle } from "@/registry/_legacy-styles"
export const revalidate = false
export const dynamic = "force-static"
export const dynamicParams = fal... | 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... |
028a76369f77dc29 | cpp | 144 | One Dark Pro | #include "validate_khmer.h"
#include "errcode.h"
#include "tprintf.h"
namespace tesseract {
// Returns whether codes matches the pattern for a Khmer Grapheme.
// Taken from unicode standard:
// http://www.unicode.org/versions/Unicode9.0.0/ch16.pdf.
// where it gives: B {R | C} {S {R}}* {{Z} V} {O} {S}, using differen... | 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"
... |
35294923ac41e942 | cpp | 255 | One Dark Pro | // (C) Copyright 2017, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 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... |
04cb63a354813e06 | rust | 364 | Default Dark+ | use std::cmp::Ordering;
use heed::RoTxn;
use itertools::Itertools;
use roaring::RoaringBitmap;
use crate::score_details::{ScoreDetails, ScoreValue, ScoringStrategy};
use crate::search::new::{distinct_fid, distinct_single_docid};
use crate::search::steps::SearchStep;
use crate::search::SemanticSearch;
use crate::vecto... | 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... |
9906498c899ac920 | rust | 48 | Default Dark+ | use std::borrow::Cow;
use std::marker::PhantomData;
use heed::{BoxedError, BytesDecode, BytesEncode};
use crate::heed_codec::SliceTooShortError;
use crate::{try_split_array_at, DocumentId, FieldId};
pub struct FieldDocIdFacetCodec<C>(PhantomData<C>);
impl<'a, C> BytesDecode<'a> for FieldDocIdFacetCodec<C>
where
... | 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... |
41f8062f0115cee4 | python | 60 | Solarized Light | """
This script demonstrates fetching simple COVID-19 statistics from the
Worldometers archive site using lxml. lxml is chosen over BeautifulSoup
for its speed and convenience in Python web projects (such as Django or
Flask).
"""
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "httpx",
# "lxml",... | 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... |
d8c2a905d8e58082 | python | 116 | Default Light+ | from .common import InfoExtractor
from ..utils import (
format_field,
int_or_none,
js_to_json,
try_get,
)
class JojIE(InfoExtractor):
_VALID_URL = r'''(?x)
(?:
joj:|
https?://media\.joj\.sk/embed/
)
... | 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... |
03d8c47eb7600230 | csharp | 41 | 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"
... |
0a12fbafd0752d3e | typescript | 183 | Solarized Light | import * as React from "react"
import { SearchForm } from "@/registry/new-york-v4/blocks/sidebar-01/components/search-form"
import { VersionSwitcher } from "@/registry/new-york-v4/blocks/sidebar-01/components/version-switcher"
import {
Sidebar,
SidebarContent,
SidebarGroup,
SidebarGroupContent,
SidebarGroupL... | 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.",
... |
dbdcfb22f7bb34af | typescript | 83 | One Dark Pro | import { pipe } from "fp-ts/function"
import * as TE from "fp-ts/lib/TaskEither"
import type ivmT from "isolated-vm"
import { createRequire } from "module"
import { getPreRequestScriptMethods } from "~/utils/shared"
import { SandboxPreRequestResult, TestResult } from "~/types"
import { getSerializedAPIMethods } from "... | 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"
... |
e716d0f02c423fd7 | java | 45 | Solarized Dark | // Given two sparse matrices A and B, return the result of AB.
// You may assume that A's column number is equal to B's row number.
// Example:
// A = [
// [ 1, 0, 0],
// [-1, 0, 3]
// ]
// B = [
// [ 7, 0, 0 ],
// [ 0, 0, 0 ],
// [ 0, 0, 1 ]
// ]
// | 1 0 0 | | 7 0 0 | | 7 0 0 |
// AB = | -1... | 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... |
e948b1591cff4f2d | java | 71 | 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... |
fc57d0de73ab3e94 | go | 97 | Solarized Dark | // Copyright 2019 fatedier, fatedier@gmail.com
//
// 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... | 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... |
46994474c13b5b4b | cpp | 77 | 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"
... |
7603f71b6d8553b2 | csharp | 145 | Dracula | namespace v2rayN.Views;
public partial class RoutingSettingWindow
{
public RoutingSettingWindow()
{
InitializeComponent();
Owner = Application.Current.MainWindow;
Closing += RoutingSettingWindow_Closing;
PreviewKeyDown += RoutingSettingWindow_PreviewKeyDown;
lstRoutings... | 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... |
38cd6e1d51264aa6 | go | 91 | Default Light+ | package model
import (
"github.com/ollama/ollama/x/mlxrunner/mlx"
"github.com/ollama/ollama/x/models/nn"
)
// LinearFactory builds linear layers using shared tensor maps and quant defaults.
type LinearFactory struct {
tensors map[string]*mlx.Array
defaultGroupSize int
defaultBits int
defaultMode ... | 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... |
121e4a38888e553c | csharp | 72 | 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 ... | 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... |
7fba0f7424a6918a | typescript | 293 | One Dark Pro | "use client";
import { ApiPath, CHATGLM_BASE_URL, ChatGLM } from "@/app/constant";
import {
useAccessStore,
useAppConfig,
useChatStore,
ChatMessageTool,
usePluginStore,
} from "@/app/store";
import { stream } from "@/app/utils/chat";
import {
ChatOptions,
getHeaders,
LLMApi,
LLMModel,
SpeechOptions,... | 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... |
779d7604b330ff6c | cpp | 39 | Dracula | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "Rational.h"
namespace CalcEngine::RationalMath
{
Rational Frac(Rational const& rat);
Rational Integer(Rational const& rat);
Rational Pow(Rational const& base, Rational const& pow);
... | 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... |
b9a32058098ba1e5 | cpp | 102 | Solarized Dark | #ifdef USE_3D_ADAM_MODEL
#ifndef OPENPOSE_3D_W_JOINT_ANGLE_ESTIMATION_HPP
#define OPENPOSE_3D_W_JOINT_ANGLE_ESTIMATION_HPP
#include <openpose/core/common.hpp>
#include <openpose/3d/jointAngleEstimation.hpp>
#include <openpose/thread/worker.hpp>
namespace op
{
template<typename TDatums>
class WJointAngleEstima... | 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... |
2ea656495416d6e5 | 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... | 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... |
22dd0aa8b48ffffe | typescript | 72 | Default Light+ | import clsx from "clsx";
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
import { useCallback, useState } from "react";
import { useEditorInterface } from "../App";
import { Island } from "../Island";
import Stack from "../Stack";
const BASE_ALIGN_OFFSET = -4;
const BASE_SIDE_OFFSET = 4;
const Dr... | 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"... |
f883bcdb7360045d | java | 35 | Solarized Dark | //Given an unsorted array of integers, find the length of longest increasing subsequence.
//For example,
//Given [10, 9, 2, 5, 3, 7, 101, 18],
//The longest increasing subsequence is [2, 3, 7, 101], therefore the length is 4. Note that there may be more than one LIS combination, it is only necessary for you to return ... | 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... |
f6e9b9ae5d0db68d | typescript | 67 | One Dark Pro | import * as React from "react";
import styles from "./button.module.scss";
import { CSSProperties } from "react";
import clsx from "clsx";
export type ButtonType = "primary" | "danger" | null;
export function IconButton(props: {
onClick?: () => void;
icon?: JSX.Element;
type?: ButtonType;
text?: string;
bo... | 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"
... |
794917eda7258112 | rust | 149 | GitHub Dark | /// ## Spiral Sorting
///
/// Given an n x m array, return the array elements arranged from outermost elements
/// to the middle element, traveling INWARD FROM TOP-LEFT, CLOCKWISE.
pub fn snail<T: Copy>(matrix: &[Vec<T>]) -> Vec<T> {
// break on empty matrix
if matrix.is_empty() || matrix[0].is_empty() {
... | 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.",
... |
9f07da6aae3f10d2 | csharp | 62 | Monokai | using System;
using System.Collections;
namespace winPEAS._3rdParty.BouncyCastle.util.collections
{
public class UnmodifiableListProxy
: UnmodifiableList
{
private readonly IList l;
public UnmodifiableListProxy(IList l)
{
this.l = l;
}
public override bool Contains(object o)
{
return l.Contain... | 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.",
... |
64ce8ce427794e2f | python | 367 | Solarized Light | # An OOP approach to representing and manipulating matrices
from __future__ import annotations
class Matrix:
"""
Matrix object generated from a 2D array where each element is an array representing
a row.
Rows can contain type int or float.
Common operations and information available.
>>> rows... | 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... |
a385d094d4e03aa2 | cpp | 24 | Solarized Light | #include "StdIconSearchListView.h"
StdIconSearchListView::StdIconSearchListView(QWidget* parent, bool enableRegex, bool enableLock)
: StdIconSearchListView(parent, enableRegex, enableLock, new StdTableSearchList(new StdIconTable(), new StdIconTable()))
{
}
StdIconSearchListView::StdIconSearchListView(QWidget* par... | 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... |
53c2f69aa04a4d44 | cpp | 459 | One Dark Pro | /********************************************************************************
*
* File: dawg.cpp (Formerly dawg.c)
* Description: Use a Directed Acyclic Word Graph
* Author: Mark Seaman, OCR Technology
*
* (c) Copyright 1987, Hewlett-Packard Company.
** Licensed under the Apache License, Vers... | 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... |
d1c722ee15e0a23f | python | 125 | Solarized Light | def quick_sort_3partition(sorting: list, left: int, right: int) -> None:
""" "
Python implementation of quick sort algorithm with 3-way partition.
The idea of 3-way quick sort is based on "Dutch National Flag algorithm".
:param sorting: sort list
:param left: left endpoint of sorting
:param rig... | 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"
... |
f4e67e67c2c3b24a | rust | 460 | One Dark Pro | // Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Portions Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the THIRD-PARTY file.
use std::convert::Try... | 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"... |
26d754c357769040 | javascript | 128 | Default Dark+ | // @ts-check
import { renderError } from "../src/common/render.js";
import { isLocaleAvailable } from "../src/translations.js";
import { renderGistCard } from "../src/cards/gist.js";
import { fetchGist } from "../src/fetchers/gist.js";
import {
CACHE_TTL,
resolveCacheSeconds,
setCacheHeaders,
setErrorCacheHead... | 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... |
1d1b058c4662f78d | python | 103 | Solarized Light | """https://en.wikipedia.org/wiki/Rail_fence_cipher"""
def encrypt(input_string: str, key: int) -> str:
"""
Shuffles the character of a string by placing each of them
in a grid (the height is dependent on the key) in a zigzag
formation and reading it left to right.
>>> encrypt("Hello World", 4)
... | 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"... |
5b7734a1aec949f1 | typescript | 77 | Solarized Light | "use client"
import {
Combobox,
ComboboxCollection,
ComboboxContent,
ComboboxEmpty,
ComboboxGroup,
ComboboxInput,
ComboboxItem,
ComboboxLabel,
ComboboxList,
ComboboxSeparator,
} from "@/examples/base/ui/combobox"
const timezones = [
{
value: "Americas",
items: [
"(GMT-5) New York",... | 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... |
e027bff77597ce80 | typescript | 136 | Default Light+ | import {
DEFAULT_GRID_SIZE,
KEYS,
MOBILE_ACTION_BUTTON_BG,
arrayToMap,
} from "@excalidraw/common";
import { getNonDeletedElements } from "@excalidraw/element";
import { LinearElementEditor } from "@excalidraw/element";
import {
getSelectedElements,
getSelectionStateForElements,
} from "@excalidraw/eleme... | 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.",
... |
bd44ca6d9c59da68 | cpp | 55 | One Dark Pro | /*
*
* Copyright (c) 2020
* John Maddock
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent version.
... | 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"
... |
c2dd880d49775fef | cpp | 34 | One Dark Pro | #pragma once
#include <hex.hpp>
#include <functional>
#include <string>
#include <vector>
EXPORT_MODULE namespace hex {
#if !defined(HEX_MODULE_EXPORT)
namespace prv { class Provider; }
#endif
/* Reports Registry. Allows adding new sections to exported reports */
namespace ContentRegistry::... | 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.",
... |
cd785869d1182107 | java | 29 | GitHub Dark | package org.jeecg.modules.system.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysPermissionDataRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 权限规则 Mapper 接口
* </p>
*
* @Author huangzhilin
* @since 2019-04-01
*/
pu... | 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"
... |
e124bf9ed4472d2c | csharp | 246 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System.Diagnostics;
using Azure.Monitor.OpenTelemetry.Exporter;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Agents;
using Microsoft.SemanticKernel.Agents.Chat;... | 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.",
... |
2b483623339bd8d5 | javascript | 188 | Dracula | #!/usr/bin/env node
'use strict';
const MAX_STDIN = 1024 * 1024;
const path = require('path');
const { splitShellSegments } = require('../lib/shell-split');
const DEV_COMMAND_WORDS = new Set([
'npm',
'pnpm',
'yarn',
'bun',
'npx',
'tmux'
]);
const SKIPPABLE_PREFIX_WORDS = new Set(['env', 'command', 'builti... | 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... |
9efe0b285460e33e | csharp | 102 | Monokai | // Copyright (c) Microsoft. All rights reserved.
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.ChatCompletion;
using Moq;
using Xunit;
namespace SemanticKernel.UnitTests.Functions;
public sealed cl... | 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.",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.