ibm-granite/granite-docling-258M
Image-Text-to-Text • Updated
• 167k • 1.13k
images images listlengths 1 1 | texts listlengths 1 1 |
|---|---|
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>#include <QXmlStreamWriter>\n#include <set>\n#include <QGuiApplication>\n#include <QtCore/qbuffer.h>\n#include \"documentsaver.h\"\n#include \"imageforever.h\"\n#include \"ds3file.h\"\n#include \"snapshotxml.h\"\n#include \"variablesxml.h\"\n#include ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>#!/usr/bin/env python\n# -*- encoding: utf-8 -*-\n\n# Copyright (c) 2002-2019 \"Neo4j,\"\n# Neo4j Sweden AB [http://neo4j.com]\n#\n# This file is part of Neo4j.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Dockerfile_>FROM alpine:latest\n\nRUN apk add --update htop\n\nCMD [\"htop\"]\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\" android:versionCode=\"1\" android:versionName=\"1.0\" package=\"com.companyname.awesomeapp\">\n <uses-sdk android:minSdkVersion=\"21\... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>N=int(input())\nAB = [tuple(map(int,input().spilt())) for i in range(N)]\nAB.sort(key = lambda x:x[1])\ncurtime = 0\nclear = True\nfor a,b in range(AB):\n if curtime > b:\n clear = False\n break\n curtime += a\nif clear:print(\"Yes\")... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_TypeScript_>import * as React from 'react';\nimport { SxProps } from '@mui/system';\nimport { Theme } from '../styles';\nimport { OverridableComponent, OverrideProps } from '../OverridableComponent';\nimport { BreadcrumbsClasses } from './breadcrumbsClasse... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_># Generated by Django 3.0.12 on 2021-03-01 11:06\n\nimport django.contrib.auth.models\nimport django.contrib.auth.validators\nfrom django.db import migrations, models\nimport django.utils.timezone\n\n\nclass Migration(migrations.Migration):\n\n initia... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_HTML_><div class=\"leaf flex\"><div class=\"inner justify\"><p> Salome knew that the Carmody people called him an infidel, and looked upon him as a very wicked man. But he had not been wicked; he had been good and kind in his own odd way.</p><p>The gentle little... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Rust_>#[allow(unused_imports)]\nuse std::cmp::{Ordering};\n\n#[allow(unused_imports)]\nuse std::collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, VecDeque};\n\n#[allow(unused_imports)]\nuse std::io::{stdin, stdout, BufWriter, Write};\n\n#[allow(unu... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_> )\n\n assert c1.transition_matrix == 1 / 2\n assert c2.transition_matrix == 1 / 2\n assert c3.transition_matrix == 1 / 2\n\n def test_adaptive_kernel_constants(self, adata):\n k = (\n 3\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>from typing import Union, Tuple, Iterable\n\nimport jax\nimport jax.numpy as jnp\nfrom xaby import fn, Fn, ArrayList, pack, collect\nfrom .utils import sum_in_out\n\n__all__ = [\n \"flatten\",\n \"shapes\",\n \"add\",\n \"sub\",\n \"mul\",... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#include \"stdafx.h\"\r\n#include \"imstat.h\"\r\n\r\n#include \"../wim_packet.h\"\r\n#include \"../packets/send_imstat.h\"\r\n#include \"../../../utils.h\"\r\n#include \"openssl/blowfish.h\"\r\n#include \"../../../core.h\"\r\n\r\nnamespace core\r\n{\r\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>const LEVEL = {\n off: 5,\n fatal: 4,\n error: 3,\n warn: 2,\n info: 1,\n debug: 0,\n};\n\nfunction print(maxLevel, currentLevel, msg) {\n if (LEVEL[maxLevel] <= LEVEL[currentLevel]) {\n // eslint-disable-next-line no-console\n console[c... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>package typingsSlinky.reactThemeableTs\n\nimport org.scalablytyped.runtime.StObject\nimport scala.scalajs.js\nimport scala.scalajs.js.`|`\nimport scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}\n\n/* This can be us... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>n = int(input())\na = list(map(int, input().split()))\na.sort()\nflag = False\nb = [False] * 1000010\nc = [False] * 1000010\nfor i in range(n - 1):\n if a[i] == a[i + 1]:\n b[a[i]] = True\n\nans = 0\nfor i in range(n):\n if b[a[i]]:\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import sys\nimport numpy as np\n\nstr = [int(i) for i in input().split()]\nl, r = str\n\nif l >= 2019:\n print(l * (l + 1) % 2019)\nelif r >= 2019:\n print(0)\nelse:\n s = 2020\n for i in range(l, r):\n for j in range(i + 1, r + 1):\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_HTML_><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from main_algorithm import MainAlgorithm\nm = MainAlgorithm()\n\nfrom api import Matrices\na = Matrices()\n\na.produce(\"PD\")\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>_base_ = [\r\n '../_base_/datasets/ade20k.py',\r\n '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py'\r\n]\r\n\r\n# model settings\r\nnorm_cfg = dict(type='SyncBN', requires_grad=True)\r\nmodel = dict(\r\n type='EncoderDecoder... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Cuda_> unsigned long long int table_size = remaining_words * sizeof(unsigned int);\n chkerr(cudaMalloc(&(p.results_table),table_size));\n chkerr(cudaMalloc(&(p.indexes_table),table_size));\n unsigned long long int cpu_table_size = CPU_FINAL_TAB... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_PHP_><!DOCTYPE html>\n<html lang=\"en\">\n<head>\n\n @php $pageTitle = \"Edit Details \" @endphp\n\n @include('layouts.app')\n\n</head>\n<body>\n\n @include('layouts.header')\n\n <section class=\"contact-img-area\">\n <div class=\"container\">... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>CREATE TABLE usuario(\n id BIGSERIAL PRIMARY KEY,\n nombre_usuario VARCHAR(50) UNIQUE NOT NULL,\n correo VARCHAR(100) UNIQUE NOT NULL,\n clave_encriptada VARCHAR(128) NOT NULL,\n tipo_usuario VARCHAR(20) NOT NULL,\n habilitado BOOLEAN NOT ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Ceylon_> ByteBuffer\n}\n\n\"Represents a [[FileDescriptor]] that you can `select`. \n This means that you can register listeners for this file \n descriptor on a given [[Selector]] object that will be \n called whenever there is data available to be read or \... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>fun main(args: Array<String>) {\n abc129d()\n}\n\nfun abc129d() {\n val (h, w) = readLine()!!.split(' ').map { it.toInt() }\n val wall = (1..h).map { readLine()!!.map { it == '#' }.toBooleanArray() }\n .toTypedArray()\n\n // down,up,ri... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_> from secrets import secrets\nexcept ImportError:\n print(\"WiFi secrets are kept in secrets.py, please add them there!\")\n raise\n\n# ESP32 Setup\ntry:\n esp32_cs = DigitalInOut(board.ESP_CS)\n esp32_ready = DigitalInOut(board.ESP_BUSY)\... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Rust_>// Copyright 2016 Google Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/lice... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>#include<stdio.h>\n#define N 100\n\nint main(){\n int n,p[N+1],m[N+1][N+1];\n int i,j,l,min,k;\n \n scanf(\"%d\",&n);\n for(i=1;i<=n;i++){\n scanf(\"%d %d\",&p[i-1],&p[i]);\n }\n\n for(i=1;i<=n;i++)m[i][i]=0;\n\n \n for(l=2;l<=n;l++){\n for(i=1... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>/*\n * This file is part of SpongeBT, licensed under the MIT License (MIT).\n *\n * Copyright (c) 2016 Katrix\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and\n * associated documentation files (the... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>fun main(args : Array<String>) {\n val (H, W, A, B) = readLine()!!.split(\" \").map { it.toInt() }\n\n val s = Array(H, { CharArray(W) } )\n val w = IntArray(W) { 0 }\n\n for (i in 0 until H) {\n var a = A\n for (j in 0 until W)... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_> inlines = [ChoiceInline]\n\nadmin.site.register(Question, QuestionAdmin)\n\n\n\n\n\n# Register your models here.\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.io.*;\nimport java.util.*;\npublic class Main\n{\n\tpublic static void main(String[] args)throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringToke... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><!--\n Fast configuration for local mode, ie. all members reside on the same host. Setting ip_ttl to 0 means that\n no multicast packet will make it outside the local host.\n Therefore, this configuration will NOT work to cluster members residing o... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>using Scripts.Data;\nusing Scripts.Enums;\nusing TMPro;\nusing UnityEngine;\n\nnamespace Scripts.UI.Displays\n{\n public class DisplayResource : MonoBehaviour\n {\n [SerializeField] private ResourceType _type = ResourceType.Credits;\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Dockerfile_>FROM debian:buster as builder\n\n# intall gcc and supporting packages\nRUN apt-get update && apt-get install -yq make gcc gettext autopoint bison libtool automake pkg-config\n\nWORKDIR /code\n\n# download util-linux sources\nENV UTIL_LINUX_VER=2.34\n... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_ObjectiveC_><node CREATED=\"1435661830480\" ID=\"ID_282975179\" MODIFIED=\"1435661835883\" TEXT=\"TCP/IP\"/>\n</node>\n<node CREATED=\"1435661772934\" ID=\"ID_1256461575\" MODIFIED=\"1435661774192\" POSITION=\"right\" TEXT=\"py\"/>\n<node CREATED=\"1435661774584... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>/* LICENSE>>\nCopyright 2020 Soji Yamakawa (CaptainYS, http://www.ysflight.com)\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from django.urls import reverse\nfrom django.test import TestCase, override_settings\nfrom zentral.contrib.inventory.models import BusinessUnit, MachineSnapshotCommit, MachineTag, Tag\nfrom accounts.models import User\n\n\n@override_settings(STATIC... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Awk_>S=$4{for(;c=substr(S,++i,1);)a+=$index(\"spr0\",C[i]=c>C[i-K]?c:0)}K=$2,RS=$0=a</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_> *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the Lice... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Haskell_>\n{-# LANGUAGE StandaloneDeriving #-}\n{-# LANGUAGE BangPatterns #-}\n\nmodule Main where\n\nimport Debug.Trace\n--import Data.List\n--import qualified Data.Set.Strict as Set\n--import qualified Data.Map.Strict as Map\n\nmain :: IO ()\nmain = do\n a <-... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_OCaml_>let () = Scanf.scanf \"%d %d %d %d\" (fun x1 y1 x2 y2 ->\n let (x3, y3, x4, y4) = \n match (x1, y1, x2, y2) with\n | (x1, y1, x2, y2) when (x1 <= x2 && y2 >= y1) ->\n (x2 - (y2 - y1), y2 + (x2 - x1), x1 - (y2 - y1), y1 + (x2 - x1))\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><resources>\n <string name=\"app_name\">SkinSwitch</string>\n</resources>\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_># Copyright (c) 2014 Adafruit Industries\n# Author: Tony DiCola\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software witho... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>SELECT *\nFROM {{ source('rickandmorty', 'episodes') }}\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>package io.vamp.model.notification\n\nimport io.vamp.common.notification.Notification\nimport io.vamp.model.artifact._\n\ncase class UnresolvedGatewayPortError(name: String, value: Any) extends Notification\n\ncase class UnresolvedEnvironmentVariableError... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_> * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for t... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_> else:\n zout.writestr(item, zin.read(item.filename))\n \n zout.close()\n zin.close()\n shutil.move(tempname[1], filename)\n\n\ndef main():\n args = sys.argv[1:]\n if len(args) != 1:\n print >> sys.stderr,... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>n = int(input())\ndict , ans = [] , []\n\nfor i in range(n):\n x , y = input().split()\n if x == \"insert\":\n dict.append(y)\n else:\n if y in dict:\n ans.append(\"yes\")\n else:\n ans.append(\"no\")\n... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Lisp_>;; Copyright 2010-2018 Ben Lambert\n\n;; Licensed under the Apache License, Version 2.0 (the \"License\");\n;; you may not use this file except in compliance with the License.\n;; You may obtain a copy of the License at\n\n;; http://www.apache.or... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>public class Multi {\n public static void main (String[] args ) {\n double x;\n x = xclubic(2);\n System.out.println(x);\n }\n public static double xclubic (double x) {\n double y;\n y = 3;\n return ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><Project Sdk=\"Microsoft.NET.Sdk\">\n <Import Project=\"../Tests.props\" />\n\n <PropertyGroup>\n <TargetFramework>net6</TargetFramework>\n <Nullable>enable</Nullable>\n </PropertyGroup>\n\n <ItemGroup>\n <PackageReference Include=\"PublicApiGe... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Lua_> return math.pi*(math.pi*(x + y)^3*(1.0*x + 1.0*y + 2.0)*math.cos(math.pi*x)*math.cos(math.pi*y) + 1.0*math.pi*(x + y)^3*math.cos(math.pi*x)*math.cos(math.pi*y) + 3.0*(x + y)^2*math.sin(math.pi*y)*math.cos(math.pi*x) + (4.0*(x + y)^3 + 6.0*(x + y)^2)*mat... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_>@extends('app')\n@section('title', \"SocialHub | \" . $userProfile->username)\n@section('body')\n <div class=\"img-fluid w-100 vertical-center text-md-left text-center\" style=\"background-image: url('{{ asset('img/banner-home.jpg') }}'); height: 2... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import math\nMAX = 7400000\nprime = [1]*MAX\nprime[0] = prime[1] = 0\nres = []\nsq = int(math.sqrt(MAX))\nfor i in xrange(2, sq+1):\n q = len(res)\n if prime[i]:\n res.append(i)\n for j in xrange(i*i, MAX, i):\n prime[j] = ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System;\n\nnamespace ConsoleApplication3\n{\n class Program\n {\n static void Main(string[] args)\n {\n float a, b;\n string[] input = Console.ReadLine().Split(' ');\n a = float.Parse(input[0]);\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>// Ver19.03\n#include <math.h>\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n#define INF 1 << 29\n#define LLINF 4545454545454545454\n#define MOD 1000000007\n#define ll long long\n#define ull unsigned long long\n#define MAX(a, b) ((a) > (b) ? ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>-- Copyright 2015 The Smpe Authors. All rights reserved.\r\n-- Use of this source code is governed by a BSD-style\r\n-- license that can be found in the LICENSE file.\r\n\r\nCREATE TABLE `help` (\r\n `HelpID` int(10) unsigned NOT NULL AUTO_INCREMENT,\r\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Julia_># This file was generated by the Julia Swagger Code Generator\n# Do not modify this file directly. Modify the swagger specification instead.\n\n\nmutable struct EncryptionScopeKeyVaultProperties <: SwaggerModel\n keyUri::Any # spec type: Union{ N... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>a,b,c,d = map(int,input().split())\n\nans = 0\n\nif d == 0:\n ans = 0\nelif a >= d:\n ans = d\nelif (a + b) >= d:\n ans = d\nelif (a + b - c) <= 0:\n ans = 0\nelse:\n ans = a - c\n\nprint(ans)</code>",
"source": "SynthCodeNetNoImageTag... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"utf-8\"?>\n<androidx.constraintlayout.widget.ConstraintLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n xmlns:tools=\"http://schemas.and... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>#!/usr/bin/env python\n#\n# (C) 2001 by Argonne National Laboratory.\n# See COPYRIGHT in top-level directory.\n#\n\n\"\"\"\nusage: mpd [--host=<host> --port=<portnum>] [--noconsole]\n [--trace] [--echo] [--daemon] [--bulletproof] ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Cuda_>/*\n * Copyright (c) 2021, NVIDIA CORPORATION.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># Licensed under the MIT License.\n\nimport pytest\nimport torch\n\nfrom torchgeo.models import RCF\n\n\nclass TestRCF:\n def test_in_channels(self) -> None:\n model = RCF(in_channels=5, features=4, kernel_size=3)\n x = torch.randn... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_HTML_><!DOCTYPE html>\n<html lang=\"pt-br\">\n<head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"></code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_> msg, remote_name=None)\n raise ConanException(msg)\n elif build_pref != pref and os.path.exists(build_folder) and hasattr(conanfile, \"build_id\"):\n self._output.info(... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>1\t2\t3\t4\t5\t6\t7\t8\t9\t10\t11\t12\n0.1029\t0.0878\t0.0671\t0.0581\t1.6302\t0.7698\t0.3501\t0.1595\t1.5814\t0.7836\t0.3369\t0.1584\n0.2603\t0.1388\t0.0881\t0.0696\t0.2438\t0.1293\t0.0852\t0.0693\t0.2142\t0.1321\t0.0827\t0.0684\n0.1554\t0.1089\t0.08... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_TypeScript_>import { BrowserModule } from \"@angular/platform-browser\";\nimport { NgModule } from \"@angular/core\";\nimport { HttpClientModule } from \"@angular/common/http\";\nimport { ReactiveFormsModule } from \"@angular/forms\";\n\nimport { AppCompon... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nusing System.Linq;\nclass Program\n{\n static void Main(string[] args)\n {\n string[] input = Console.ReadLine().Split(' ');\n int p = int.Parse(input[0]);\n int q = int.Parse(input[1]);\n int r = int.Parse(input[2]);\n int[] ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>'use strict'\nfunction Main(input){\n input=input.trim().split(/\\s+/);\n var N=input.shift()-0;\n var rightA=input.reduce((acc,str)=>acc+(str[str.length-1]==='A'?1:0), 0);\n var leftB=input.reduce((acc,str)=>acc+(str[0]==='B'?1:0), 0);\n var bo... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>import kotlinx.coroutines.flow.filterNotNull\nimport kozyriatskyi.anton.sked.data.repository.FirstDayOfWeekMode\nimport java.util.*\n\nclass AppConfigurationManager {\n\n private val _configurationChanges: MutableStateFlow<Configuration?> = MutableSta... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\"?>\n<config xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:App/etc/routes.xsd\">\n <router id=\"admin\">\n <route id=\"beecom_customstockstatus\" frontName=\... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>n, m = map(int,input().split())\n\nboolins =[]\nfor i in range(n):\n boolins.append(0)\n \nfor i in range(m):\n xxx = list(map(int,input().split()))\n if xxx[0] == 1:\n boolins[xxx[1]] = boolins[xxx[1]] + 1\n elif xxx[1] == n :\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>n = gets.to_i\na = []\nn.times do |i|\n a << gets.split.map(&:to_i).map { |x| x - 1 }\nend\nday = 0\nloop do\n cnt = 0\n players = Array.new(n)\n n.times do |i|\n unless players[i]\n next if a[i].empty?\n j = a[i][0]\n if j && a[j][0]... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>#import <Foundation/Foundation.h>\n\n@interface NSString (MD5)\n\n- (NSString *)MD5Hash;\n\n@end\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>BEGIN;\n\nCREATE EXTENSION IF NOT EXISTS \"pgcrypto\";\n\nCREATE TABLE users (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n username VARCHAR(32) NOT NULL UNIQUE,\n password VARCHAR(64) NOT NULL,\n created_at timestamp without time zone NOT NULL,\n... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># A,B,C,D=map(int,input().split())\n\ndef main():\n S=list(input())\n count=0\n if len(S)<4:\n print(0)\n exit()\n for i in range(len(S)-4):\n for j in range(len(S)-3-i):\n if not i+4+j>len(S):\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>import router from './Routes';\n\nexport default function (Vue) {\n\n Vue.helper = {\n back() {\n router.go(-1);\n },\n\n home() {\n router.push({name: 'discover'});\n },\n set_caption(capti... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.\n\npackage org.jetbrains.kotlin.idea.refactoring.changeSignature\n\nimport com.intellij.lang.La... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_TypeScript_>import {stdin} from 'process';\nlet input = \"\";\nstdin.on('data', x => {input += x});\nstdin.on('end', () => {\n let [n, aline] = input.split('\\n');\n let alist = aline.split(' ')\n .map(x=>x.trim()).map(x=>parseInt(x));\n le... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>export const size = {\n sm: '1px',\n md: '2px',\n lg: '3px'\n}\n\nexport const radius = {\n sm: '3px',\n md: '5px',\n lg: '10px'\n}\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_> self.update_display(self.array[j], self.array[j+1])\n\n\nclass InsertionSort(Algorithm):\n def __init__(self):\n super().__init__(\"InsertionSort\")\n\n def algorithm(self):\n for i in range(len(self.array)):\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Go_>package gorm\n\nimport (\n\t\"fmt\"\n\t\"reflect\"\n\t\"testing\"\n\n\t\"gorm.io/gorm/clause\"\n)\n\nfunc TestWhereCloneCorruption(t *testing.T) {\n\tfor whereCount := 1; whereCount <= 8; whereCount++ {\n\t\tt.Run(fmt.Sprintf(\"w=%d\", whereCount), fun... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>// The LLVM Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===-------------------------------------------------------------------... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_> <color name=\"light_grey\">#ffe6e6e6</color>\r\n <color name=\"light_black\">#1F1F1F</color>\r\n <color name=\"transparent\">#00000000</color>\r\n <color name=\"dark_grey\">#ffb4b4b4</color>\r\n <color name=\"blue\">#ff35abde</color>\r\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_> 'sourceType': 'module',\n },\n 'rules': {\n 'require-jsdoc': 'off',\n 'max-len': 'off',</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#include<bits/stdc++.h>\nusing namespace std;\nint n,x,ans=10000;\nint main()\n{\n cin>>n;\n for(int i=1;i<=n;i++)\n {\n cin>>x;\n int p=0;\n while(x%2==0)\n {\n x/=2;\n p++;\n }\n ans... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>package org.robolectric.res.android;\n\nimport static com.google.common.primitives.UnsignedBytes.max;\nimport static org.robolectric.res.android.Errors.BAD_INDEX;\nimport static org.robolectric.res.android.Errors.BAD_TYPE;\nimport static org.robolectric.re... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Nim_> # rubocop:enable Metrics/LineLength\n\"\"\".stripIndent))\n context(\"with no space between cops & comma\", proc (): void =\n let(\"source\", proc (): void =\n \"\"\" # rubocop:disable Metrics/LineLength\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_> \"description\": \"Authorization header is expected.\",\n },\n 401,\n )\n\n auth_header = request.headers['Authorization']\n header_parts = auth_header.split(' ')\n\n if len(header_parts) != 2:\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>package com.lt.sisyphus.rpc.registry;\n\nimport lombok.extern.slf4j.Slf4j;\n\nimport java.util.HashMap;\nimport java.util.Map;\n\n@Slf4j\npublic class RegistryManager {\n\n\n private static volatile RegistryManager RPC_REGISTRY_MANAGER = new RegistryMan... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_TypeScript_>import { networkName } from '../../utilities'\nimport {\n WalletCheckModal,\n StateAndHelpers,\n WalletCheckCustomOptions,\n AppState\n} from '../../interfaces'\nimport { networkIcon } from './icons'\n\nimport { app } from '../../stores'\n\nfunct... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>DROP FUNCTION IF EXISTS grest.tx_info (text[]);\n\nCREATE FUNCTION grest.tx_info (_tx_hashes text[])\n RETURNS TABLE (\n tx_hash text,\n block_hash text,\n block_height uinteger,\n epoch uinteger,\n epoch_slot uinteger,\n absolute_slot ui... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>k = int(input())\na = list(map(int, input().split()))\n\nif k == 1:\n if a[0] == 2:\n print(2, 3)\n else:\n print(-1)\n exit(0)\n\ntemp = a[-1]\nfor i in reversed(range(k-1)):\n if a[i] >= temp:\n temp = a[i]\n else:\n temp = (temp... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from sqlalchemy.engine import ResultProxy\n\nfrom drone_squadron.crud.squadron_crud import SquadronCrud\nfrom drone_squadron.schema import squadron\n\n\nclass TestSquadronCrud:\n crud = SquadronCrud\n\n def test_insert(self, setup):\n ... |
SynthCodeNet is a multimodal dataset created for training the SmolDocling model. It consists of over 9.3 million synthetically generated image-text pairs, covering code snippets from 56 different programming languages. Text data was sourced from permissively licensed sources, while images were synthetically generated at 120 DPI using LaTeX and Pygments to ensure visual diversity.
Total samples: 9,334,257
Modalities: Image, Text
Image Generation: Synthetic (LaTeX, Pygments)
| Language | Samples | Language | Samples | Language | Samples |
|---|---|---|---|---|---|
| Ada | 20,094 | Dart | 20,415 | Matlab | 1,170 |
| Awk | 22,334 | Dockerfile | 99,459 | MoonScript | 6,237 |
| Bash | 98,950 | Elixir | 20,387 | Nim | 37,236 |
| C | 599,096 | Erlang | 20,039 | OCaml | 32,297 |
| C# | 303,720 | FORTRAN | 34,023 | ObjectiveC | 158,398 |
| C++ | 698,870 | Forth | 5,548 | Octave | 2,537 |
| CMake | 19,910 | Go | 333,722 | PHP | 249,566 |
| COBOL | 5,153 | HTML | 245,228 | Pascal | 28,254 |
| CSS | 236,596 | Haskell | 39,848 | Perl | 33,938 |
| Ceylon | 8,369 | Haxe | 20,070 | Prolog | 2,058 |
| Clojure | 20,765 | Java | 698,421 | Python | 1,797,063 |
| Crystal | 24,720 | JavaScript | 530,899 | Racket | 4,340 |
| Cuda | 142,344 | Julia | 29,681 | Ruby | 348,976 |
| Cython | 22,136 | Kotlin | 292,986 | Rust | 344,491 |
| D | 20,338 | Lisp | 29,749 | SML | 19,333 |
| Lua | 25,328 | SQL | 493,412 | YAML | 249,011 |
| Scala | 273,825 | Scheme | 23,242 | VisualBasic | 13,908 |
| Swift | 25,374 | TypeScript | 255,475 | XML | 246,209 |
| bc | 249 | dc | 1,713 |
Each dataset entry is structured as follows:
{
"images": [PIL Image],
"texts": [
{
"assistant": "<loc_x0><loc_y0><loc_x1><loc_y1><_Language_>CODE_SNIPPET</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
]
}
Training multimodal models for document understanding, specifically:
If you use SynthCodeNet, please cite:
@article{nassar2025smoldocling,
title={SmolDocling: An ultra-compact vision-language model for end-to-end multi-modal document conversion},
author={Nassar, Ahmed and Marafioti, Andres and Omenetti, Matteo and Lysak, Maksym and Livathinos, Nikolaos and Auer, Christoph and Morin, Lucas and de Lima, Rafael Teixeira and Kim, Yusik and Gurbuz, A Said and others},
journal={arXiv preprint arXiv:2503.11576},
year={2025}
}