images images listlengths 1 1 | texts listlengths 1 1 |
|---|---|
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>package com.genedev.retinalclassifierfull.Activities;\n\nimport android.app.Dialog;</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>from __future__ import absolute_import, unicode_literals\n\nimport os\n\nfrom setuptools import find_packages, setup\n\nfrom wagtailcaptcha import __version__\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:\n README = re... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>OverviewPage</class>\n <widget class=\"QWidget\" name=\"OverviewPage\">\n <property name=\"geometry\">\n <rect>\n <x>0</x>\n <y>0</y>\n <width>573</width>\n <height>342... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_PHP_> <section id=\"main-content\">\n \t<section class=\"wrapper site-min-height\">\n \t<div id=\"page-wrapper\"> \t\n \t\t<div class=\"panel panel-default\"></code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>CREATE VIEW viewGIAMDOC AS\nSELECT DA.mada, DA.tenda, DA.kinhphi, PB.tenphong, CN.tencn, NV.hoten, sum(CT.soTien) as tongchi\nFROM dbaDuAn.duan DA, dbaDuAn.nhanvien NV, dbaDuAn.phongban PB, dbaDuAn.chinhanh CN, dbaDuAn.chitieu CT\nWHERE DA.phongchutri... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Rust_> })\n } else {\n None\n }\n },\n ExprKind::MethodCall(path, _, args, _) => {\n if_chain! {\n if let [obj, _] = args;\n if cx.typeck_results... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>files.each do |file|\n describe file(\"#{file}\") do\n it { should be_file }\n it { should be_mode 644 }\n it { should be_owned_by 'root' }\n end\nend\n\nservices.each do |service|\n describe service(\"#{service}\") do\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Cuda_>#pragma once\n#include <tuple>\n#include <algorithm>\n#include <random>\n#include <type_traits>\n#include <vector>\n#include <map>\n\n#include <cudf/types.h>\n\nnamespace without_agg {\n\ntemplate <typename... T>\nusing VTuple = std::tuple<std::vecto... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_> model = models.Trapezoid1D(amplitude=4.2, x_0=2.0, width=1.0, slope=3)\n xx = np.linspace(0, 4, 8)\n yy = model(xx)\n yy_ref = [0., 1.41428571, 3.12857143, 4.2, 4.2, 3.12857143, 1.41428571, 0.]\n assert_allclose(yy, yy_ref, rtol=0, ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<!DOCTYPE cref SYSTEM \"cref.dtd\">\n\n<cref>\n <header>\n <copyright>\n <year>1996</year><year>2016</year>\n <holder>Ericsson AB. All Rights Reserved.</holder>\n </copyright>\n <legalno... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Set;\n\npublic class Main {\n\tfinal int INF = 1 << 28;\n\n\tvoid run() {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tDice[][] d... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>select\n id\n, datetime_columns\n, timestamp_columns\n, nil_datetime_columns\nFROM\n goma_date_types\nWHERE\n id = :id\n\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_>@font-face {\n font-family: 'iconfont'; /* project id 2062009 */\n src: url('//at.alicdn.com/t/font_2062009_7vczhza48qo.eot');\n src: url('//at.alicdn.com/t/font_2062009_7vczhza48qo.eot?#iefix') format('embedded-opentype'),\n url('//at.al... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System;\n\nnamespace AOJ.Volume1\n{\n public class ExitSurvey\n {\n public static int Main()\n {\n int n = int.Parse(Console.ReadLine());\n ulong sum = 0;\n for (int p = 0; p < n; p++)\n {... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tint S = sc.nextInt();\n\t\tint count = 0;\n\t\tfor (int x = 0; x <= K; x++) {\n\t\t... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>CREATE DATABASE IF NOT EXISTS `algernon_cloud` /*!40100 DEFAULT CHARACTER SET latin1 */;\r\nUSE `algernon_cloud`;\r\n-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64)\r\n--\r\n-- Host: 52.202.170.133 Database: algernon_cloud\r\n-- ----------------... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>-- 2021-12-21T13:36:06.857Z\n-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator\nUPDATE AD_Element_Trl SET Name='Asynchrone Verarbeitung erzwingen', PrintName='Asynchrone Verarbeitung erzwingen',Updated=TO_TIMESTAMP('2021-12-21 15:36:06... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_> </resource>\n <resource id=\"Magento_Backend::stores\">\n <resource id=\"Magento_Backend::stores_settings\">\n <resource id=\"Magento_Config::config\">\n <re... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_YAML_>### YamlMime:UniversalReference\napi_name: []\nitems:\n- children: []\n class: azure.mgmt.compute.v2019_12_01.models.InnerError\n fullName: azure.mgmt.compute.v2019_12_01.models.InnerError\n inheritance:\n - inheritance:\n - type: builtins.object\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># Copyright 2020 CS Systemes d'Information, http://www.c-s.fr\n#\n# This file is part of pytest-executable\n# https://www.github.com/CS-SI/pytest-executable\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><_C_> *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of con... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>import itertools\nk=int(input())\ndef solve(a,b,c):\n\tif a==0 or b==0 or c==0:\n\t\treturn max(a,b,c)\n\tif a==b and b==c:\n\t\treturn a\n\tif a<=b<=c:\n\t\treturn solve(a,b%a,c%a)\n\telif b<=a<=c:\n\t\treturn solve(a%b,b,c%b)\n\telse:\n\t\treturn... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_> task :marks => :environment do\n puts 'Assign Marks for Assignments'\n\n #Function used to create marks for both criterias\n def create_mark(result_id, markable_type, markable)\n Mark.create(\n result_id: result_id,\n ma... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_>\t<parent>\n\t\t<groupId>org.leapframework</groupId>\n\t\t<artifactId>tests</artifactId>\n\t\t<version>0.7.14b-SNAPSHOT</version>\n\t\t<relativePath>../pom.xml</relativePath>\n\t</parent>\n\t<artifactId>webunit-test1</artifactId>\n\t<packaging>war</pa... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>package agent\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time\"\n\n\t\"github.com/fnproject/fn/api/agent/drivers\"\n\t\"github.com/fnproject/fn/api/common\"\n\t\"github.com/fnproject/fn/ap... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_> -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)\r\n--\r\n-- Host: 127.0.0.1 Database: grandmalifev2\r\n-- ------------------------------------------------------\r\n-- Server version\t5.5.5-10.1.19-MariaDB\r\n\r\n/*!40101 SET @OLD_CHARACTER... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_> figure_saver.save_figure(fig, \"__\".join(features), sub_directory=\"pdp_2d\")\n\n X_train, X_test, y_train, y_test = data_split_cache.load()\n rf = get_model()\n columns_list = list(combinations(X_train.columns, 2))\n</code>",
... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<jcr:root xmlns:sling=\"http://sling.apache.org/jcr/sling/1.0\" xmlns:cq=\"http://www.day.com/jcr/cq/1.0\" xmlns:jcr=\"http://www.jcp.org/jcr/1.0\"\n jcr:primaryType=\"cq:Page\">\n <jcr:content\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nusing System.Linq;\nusing System.Collections.Generic;\n\nclass Program\n{\n static void Main(string[] args)\n {\n var N = int.Parse(Console.ReadLine());\n var sum = 180 * (N - 2);\n Console.WriteLine(sum);\n }\n}\... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n <modelVersion>4.0.0</modelVersion></c... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>PRIMARY KEY (ID)\n/\n\n\n\n\n\n\n\n-----------------------------------------------------------------------------\n-- KRIM_ENTITY_T\n-----------------------------------------------------------------------------\nDECLARE temp NUMBER;\nBEGIN\n SELECT COUNT(... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>\nvoid SimpleSpecies::setName(string name){\n\tthis->name = name;\n}\n\nvoid SimpleSpecies::setPopulation(double newPopulation){\n\tthis->population = newPopulation;\n}\n\nvoid SimpleSpecies::changePopulation(double deltaPopulation){\n\tthis->population += ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>n=str(input())\n\nif n[-1]==3:\n print('bon')\nelif n[-1]==0 or n[-1]==1 or n[-1]==6 or n[-1]==8:\n print('pon')\nelse:\n print('hon')</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.util.*;\nimport java.math.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int C = sc.nextInt();\n sc.close();\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>package com.example.ebapigateway;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.test.context.junit4.SpringRunner;\n\n@RunWith(SpringRunner.class)\n@Spri... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_SML_> next (! (prev b)) := Null\n );\n next f := b;\n prev b := f\n )\n \n fun insertFront (f, b) x =\n let\n val curr = ! (next f)\n val new = Node (x, ref f, ref curr)\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>var GET = (function () {function f(s) {return new g(s);}function g(s) {this._s = s.trim().split(\"\\n\");}g.prototype.getValue = function (n) {return this._s[n];};g.prototype.getArray = function (n) {return this.stoa(this._s[n]);};g.prototype.slice =... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>/**\n * netzhaut - Web Browser Engine\n * Copyright (C) 2021 The netzhaut Authors\n * Published under MIT\n */\n\n#include \"../../UI/Message.h\"\n#include \"../Result.h\"\n\n#undef NH_MAKE_CHECK\n#define NH_MAKE_CHECK(checkReturn, checkable) ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>n,k,q=map(int,input().split());a={i+1:k for i in range(n)}\nfor _ in range(q):\n m=int(input())\n for i in range(1,n+1):\n if i==m: continue\n a[i]-=1\nprint(*['Yes' if a[i]>0 else 'No' for i in range(1,n+1)],sep='\\n')</code>",
"source... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>#include <signal.h>\n\nint sigandset(sigset_t *dest, const sigset_t *left, const sigset_t *right)\n{\n\tunsigned long i = 0, *d = (void*) dest, *l = (void*) left, *r = (void*) right;\n\tfor(; i < _SIGSET_SIZE; i++) d[i] = l[i] & r[i];\n\treturn 0;\n}\n\... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>function toggleSection(sectionId) {\n const toggle = document.getElementById(sectionId).querySelector(\".toggle-section\");\n const upArrow = document.getElementById(sectionId).querySelector(\"#up-arrow\");\n const downArrow = document.getElementB... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>/**\r\n * Copyright (c) 2018, hiwepy (https://github.com/hiwepy).\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n * use this file except in compliance with the License. You may obtain a copy of\r\n * the Licens... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>'use strict';\n\nvar path = require('path');\nvar conf = require('./gulp/conf');\n\nvar _ = require('lodash');\nvar wiredep = require('wiredep');\n\nvar pathSrcHtml = [\n path.join(conf.paths.src, '/**/*.html')\n];\n\nfunction listFiles() {\n var w... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>// Copyright (c) 2018, The Monero Project\n//\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without modification, are\n// permitted provided that the following conditions are met:\n//\n// 1. Redistribution... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>r, g, b = input().split()\nprint('YES' if int(r + g + b) % 4 == 0 else 'NO')</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_YAML_>name: LoT - Lot of Things\ndescription: Organize and search things via custom properties.\nwebsite: https://jisco.me/lot\ncategory: Utilities\nrepository: https://github.com/Jisco/LotOfThings\nkeywords:\n - things\n - organize\n - search\n - find\n - ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>import plotly.graph_objects as go\n\n\ndef plotly_interactive_paths(turn_points: dict,\n central_port: tuple,\n knot: tuple = None,\n title: str = 'Wire paths',\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Perl_><NO YES>[words.sum==15].say</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>a = set(map(int,input()))\nprint(len(a))</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>package ax25\n\nimport (\n\t\"fmt\"\n)\n\ntype Address struct {\n\tCallsign string\n\tSSID int // Secondary Station ID\n}\n\nfunc (a Address) String() string {\n\treturn fmt.Sprintf(\"%s-%d\", a.Callsign, a.SSID)\n}\n\ntype Frame struct {\n\tSource ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>'use strict'\n\nfunction main(s) {\n\n s = s.split('\\n')[0].split(' ').map(n => Number(n));\n\n const w = s[0];\n const a = s[1];\n const b = s[2];\n\n let ans = 0;\n\n if ((b + w) < a) ans = a - (b + w);\n if (b > (a + w)) ans = b - (a + w);... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>N, M = map(int, input().split())\nnodes = [[] for i in range(N)]\n\nfor i in range(M):\n u, v = map(int, input().split())\n u -= 1\n v -= 1\n nodes[u].append(v)\n\ns, t = map(int, input().split())\ns -= 1\nt -= 1\n\nnum = s\nstep = 0\nq = [[n... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>package sizing\n\nimport (\n\t\"testing\"\n\n\t\"github.com/bivas/rivi/pkg/mocks\"\n\t\"github.com/bivas/rivi/pkg/util/log\"\n\t\"github.com/bivas/rivi/pkg/util/state\"\n\t\"github.com/stretchr/testify/assert\"\n)\n\nfunc buildRule(name, label string, change... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nusing System.Collections.Generic;\nusing System.Text;\n\nnamespace ConsoleApplication9\n{\n class Program\n {\n static void Main(string[] args)\n {\n String[] str = Console.ReadLine().Split(' ');\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>build:\n languages:\n - go\n\nrun:\nweb: go-trophy\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>a,b = map(int,input().split())\nlis = []\nfor i in range(50):\n\tg = []\n\tfor m in range(100):\n\t\tg.append(\".\")\n\tlis.append(g)\nfor i in range(50):\n\tg = []\n\tfor m in range(100):\n\t\tg.append(\"#\")\n\tlis.append(g)\ncou = 0\nco = 0\nfor k in ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_> 'crashpad_client_win_test.cc',\n 'prune_crash_reports_test.cc',\n 'settings_test.cc',\n 'simple_address_range_bag_test.cc',\n 'simple_string_dictionary_test.cc',\n 'simulate_crash_mac_test.cc',\n ],\n... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>n = int(input())\na_ar = list(map(int, input().split()))\ntotal = 0\nseven = (10 ** 9)+ 7\na_ar = list(map(lambda x: x % seven, a_ar))\nfor i in range(len(a_ar) - 1):\n for j in range(i+1, len(a_ar)):\n ans = a_ar[i] * a_ar[j]\n to... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_> return (Criteria) this;\n }\n\n public Criteria andVipCountNotBetween(Integer value1, Integer value2) {\n addCriterion(\"vip_count not between\", value1, value2, \"vipCount\");\n return (Criteria) this;... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_TypeScript_> * Do not edit the class manually.\n *\n * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.\n * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.c... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>n,m = map(int,input().split())\ndp = [0]*n\n\nfor i in range(m):\n dp[int(input())-1] = 10**12\n \nif dp[0] == 10**12:\n dp[0] = 0\nelse:\n dp[0] = 1\n\nif dp[1] == 10**12:\n dp[1] = 0\nelse:\n dp[1] = 1+ dp[0]\n\nmod = 1000000007\n\nfo... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Cython_>)\n\n# Single precision\ncdef int ssmoothed_estimators_measurement_alternative(sKalmanSmoother smoother, sKalmanFilter kfilter, sStatespace model) except *\ncdef int ssmoothed_estimators_time_alternative(sKalmanSmoother smoother, sKalmanFilter kfil... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_CSS_>@font-face {\r\n font-family: 'BebasNeueRegular';\r\n \r\n src: \r\n url('fonts/BebasNeue-webfont.woff') format('woff'),\r\n url('fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg'); \r\n}\r\n\r\n/* CSS reset */\r\nbody,di... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>'''\nzip\nlambda\nset\ndict\nlist \nsum\ntuple\n'''\n\na = [1, 2, 3, 1, 2, 4, 5]\nb = set()\nfor i in a:\n\tb.add(i)\nb = list(b)\nprint(b)\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>/*\n * Copyright 2015 Rockchip Electronics Co. LTD\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": "<loc_0><loc_0><loc_500><loc_500><_Java_>package io.rtcore.sip.channels;\n\nimport java.util.concurrent.Flow;\n\n/**\n * SipFlowTube is an I/O abstraction that allows reading from and writing to a destination\n * asynchronously. This is not a {@link Flow.Processor Flow.Processor<SipMessage,\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_>while line = gets\n\tputs \"#{gcd(a,b)},#{lcm(a,b)}\"\nend\n\ndef gcd(a,b)\n\ta,b = b,a if b>a\n\tif a % b == 0\n\t\treturn b\n\telse\n\t\treturn gcd(a,a%b)\n\tend\nend\n\ndef lcm(a,b)\n\treturn a*b/gcd(a,b)\nend</code>",
"source": "SynthCodeNetN... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>package com.github.czyzby.lml.vis.parser.impl.tag;\n\nimport com.badlogic.gdx.scenes.scene2d.Actor;\nimport com.github.czyzby.lml.parser.LmlParser;\nimport com.github.czyzby.lml.parser.impl.tag.builder.TextLmlActorBuilder;\nimport com.github.czyzby.l... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_D_>import std.stdio, std.conv, std.string, std.array, std.range, std.algorithm, std.container;\nimport std.math, std.random, std.bigint, std.datetime, std.format;\nvoid main(string[] args){ if(args.length > 1) if(args[1] == \"-debug\") DEBUG = 1; solve(); ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Cuda_>/* \n * ------------------------------------------------------------------------------\n *\n * MIT License\n *\n * Copyright (c) 2021 Parallel Applications Modelling Group - GMAP\n * GMAP website: https://gmap.pucrs.br\n *\n * Pontifical Catholic Univ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Racket_>#lang scribble/doc\n@(require scribble/manual\n scribble/bnf \n \"common.rkt\"\n (for-label racket/base\n racket/contract\n setup/link\n setup/dirs))\n\n@title[#... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Go_>package crypto\n\nimport (\n\t\"errors\"\n\n\t\"github.com/elastos/Elastos.ELA/common\"\n)\n\nconst (\n\tPUSH1 = 0x51\n\n\t// encoded public key length 0x21 || encoded public key (33 bytes) || OP_CHECKSIG(0xac)\n\tPublicKeyScriptLength = 35\n\n\t// sig... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Rust_>//=============================================================================\n//\n// WARNING: This file is AUTO-GENERATED\n//\n// Do not make changes directly to this file.\n//\n// If you would like to make a change to the libra... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>/***************************\n * @eonRenderRenderer\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports)\n : typeof define === 'function' && define.amd ? define(['exports'], ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>function Main(input) {\n input = input.trim()\nvar a = input*800\na-=math.floor(input/15)*200;\nconsole.log(a);\n}\nMain(require(\"fs\").readFileSync(\"/dev/stdin\", \"utf8\"));</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Con... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Elixir_>defmodule Mix do\n @moduledoc ~S\"\"\"\n Mix is a build tool that provides tasks for creating, compiling,\n and testing Elixir projects, managing its dependencies, and more.\n\n ## Mix.Project\n\n The foundation of Mix is a project. A project can be... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>\r\n#ifndef BOOST_MPL_SET_SET30_HPP_INCLUDED\r\n#define BOOST_MPL_SET_SET30_HPP_INCLUDED\r\n\r\n// Copyright Aleksey Gurtovoy 2000-2004\r\n// Copyright David Abrahams 2003-2004\r\n//\r\n// Distributed under the Boost Software License, Version 1.0. \r\... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>#include<stdio.h>\n#include<stdlib.h>\n#include<string.h>\n\nint sort(int N, int *a, int *b) {\n\tint neat;\n\tint i;\n\tint temp;\n\twhile(neat < N - 1) {\n\t\tneat = 0;\n\t\tfor(i = 0; i < N - 1; i += 1) {\n\t\t\tif(a[i] > a[i + 1]) {\n\t\t\t\ttemp = a[i];\... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_HTML_><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<!-- NewPage -->\n<html lang=\"en\">\n<head>\n<!-- Generated by javadoc -->\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UT... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>package com.aoshenfengyu.testamazingtalker.constant\n\nobject Constant {\n const val CALENDAR_COLUMN_COUNT = 7\n const val CALENDAR_TIME_INTERVAL_MINUTE = 30\n}</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to tex... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>\npath = 'data/api_keys.json'\n\n\ndef load_key(keyName):\n try:\n with open(path, 'r') as f:\n j = json.load(f)\n\n if keyName in j:\n return j[keyName]\n else:\n j[keyName] = None\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>/// wa ^3^\n\n#pragma GCC optimize(\"O3\")\n\n#include<bits/stdc++.h>\n \n#define x first\n#define y second\n#define pb push_back\n#define sz(x) (int) x.size()\n \nusing namespace std;\n \nusing ll = long long;\nusing pii = p... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>package com.kylecorry.andromeda.pdf\n\nimport java.io.BufferedReader\nimport java.io.InputStream\nimport java.io.InputStreamReader\n\nclass PDFParser {\n\n fun parse(pdf: InputStream, ignoreStreams: Boolean = false): List<PDFObject> {\n v... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>package experiments.set2;\n\nimport AMSPlayground.*;\nimport Group12.Group12AI;\nimport game.Game;\nimport game.types.state.GameType;\nimport main.collections.FastArrayList;\nimport mcts.*;\nimport util.*;\n\nimport java.util.ArrayList;\nimport java.... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>import httplib2\nimport urllib\nimport huxt as H\nimport os\nfrom pyhdf.SD import SD, SDC \nimport numpy as np\nimport astropy.units as u\nfrom scipy.io import netcdf\n\n\ndef get_MAS_boundary_conditions(cr=np.NaN, observatory='', runtype='', runn... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_CSS_>@import url('https://fonts.googleapis.com/css?family=Lato');\n\nhtml, body {\nheight: 100%;\n margin: 0px; \n}\n\n\n.wrapper {\n display: flex;\n height: 100%;\n}\n\n.side {\n flex: 1;\n}\n\n.font{\n width: 100%;\n margin: 0px;\n}\n\n\n.side:last-of-ty... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import math\nA, B = map(int, input().split())\nprint(A * B / gcd(A, B))\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import _plotly_utils.basevalidators\n\n\nclass BgcolorValidator(_plotly_utils.basevalidators.ColorValidator):\n def __init__(self, plotly_name=\"bgcolor\", parent_name=\"layout.scene\", **kwargs):\n super(BgcolorValidator, self).__init__(\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>\n\nclass CaptionReadError(Exception):\n \"\"\"\n Generic error raised when the reading of the caption file failed.\n \"\"\"\n def __str__(self):\n return \"%s(%s)\" % (self.__class__.__name__, self.args)\n\n\nclass CaptionReadNo... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>N,K=map(int,input().split())\nprint(N-K+1)</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>__all__ = [\"ModelAdapter\"]\n\nfrom icevision.models.mmdet.lightning.model_adapter import MMDetModelAdapter\nfrom icevision.models.mmdet.common.mask import convert_raw_predictions\n\n\nclass ModelAdapter(MMDetModelAdapter):\n def convert_raw_predicti... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>#include <iostream>\n#include <fstream>\n#include <iomanip>\n#include <climits>\n#include <limits>\n#include <algorithm>\n#include <vector>\n#include <deque>\n#include <queue>\n#include <list>\n#include <stack>\n#include <string>\n#include <functional... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_># Generated by the protocol buffer compiler. DO NOT EDIT!\n# source: google/ads/googleads/v7/enums/lead_form_desired_intent.proto\n\nrequire 'google/protobuf'\n\nrequire 'google/api/annotations_pb'\nGoogle::Protobuf::DescriptorPool.generated_pool.bu... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_OCaml_>open Printf open Scanf\nmodule MyInt = struct let (+) = (+) let (-) = (-) let (/) = (/) let ( * ) = ( * ) let (mod) = (mod) let (%) = (mod) let (+=) r v = r := !r + v let (-=) r v = r := !r - v let ( *=) r v= r := !r * v let (/=) r v = r := !r / v let abs... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>func (hs *HelmSuite) TestRookInstallViaHelm() {\n\tcheckIfRookClusterIsInstalled(hs.Suite, hs.kh, hs.namespace, hs.namespace, 1)\n}\n\n//Test BlockCreation on Rook that was installed via Helm\nfunc (hs *HelmSuite) TestBlockStoreOnRookInstalledViaHelm() {\n\t... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Nim_>import hashes\n\ntype\n # the bits of a primitive numerical (signed, unsigned or floating) type\n BitsKind* = enum\n bitsWord\n bitsCustom\n Bits* = object\n case kind*: BitsKind\n of bitsWord: discard\n of bitsCustom: bits*: uint8\n... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n// See the LICENSE file in the project root for more information.\n\nusing Microsoft.Build.Framework;\nusing NuGe... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_> t.timestamps\n end\n end\nend\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] |