images
images listlengths
1
1
texts
listlengths
1
1
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import sys\n\nfor line in sys.stdin:\n h, w = map(int, line.rstrip().split())\n if h == 0 and w == 0:\n break\n\n edge = '#'*w + '\\n'\n rect = edge + ('#' + '.'*(w-2) + '#\\n') * (h-2) + edge\n print(rect)</code>", "source": "S...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_YAML_>dependencies:\n - { role: system_host }\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>def main():\n s = input()\n ind_a = 0\n ind_z = 0\n for i in range(len(s)):\n if(s[i]==\"A\"):\n ind_a = i\n break\n for i in range(len(s)-1,-1,-1):\n if(s[i]==\"Z\"):\n ind_z = i\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>a = input().split(\"\\n\")[1]\nprint(a.count(\"ABC\"))</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>\nCREATE TABLE public.bruno (\n field1 integer\n);\n\nALTER TABLE ONLY public.bruno ALTER COLUMN field1 SET (n_distinct=1, n_distinct_inherited=1);\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Rust_>// See the License for the specific language governing permissions and\n// limitations under the License.\n\nuse pro_lang_codegen::generate_code;\nuse proc_macro2::TokenStream as TokenStream2;\nuse syn::Result;\n\npub fn generate(attr: TokenStream2, ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>a, b, c, d = map(int, input().split())\ni = 0\nwhile a>0 and c>0:\n if i%2==0:\n c -= b\n else:\n a -= d\n i += 1\n\nif a < c:\n print(\"No\")\nelse:\n print(\"Yes\")</code>", "source": "SynthCodeNetNoImageTag", ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from django.conf import settings\nfrom django.urls import include, path\nfrom django.conf.urls.static import static\nfrom django.contrib import admin\nfrom django.views.generic import TemplateView\nfrom django.views import defaults as default_views...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>public class HealthCheckController {\n\n @GetMapping\n public String healthCheck() {\n return \"OK\";\n } \n \n}\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_ObjectiveC_> fWind = NULL;\n return self;\n}\n\n- (id)initWithCoder:(NSCoder*)coder {\n if ((self = [super initWithCoder:coder])) {\n self = [self initWithDefaults];\n [self setUpWindow];\n }\n return self;\n}\n\n- (id)initWith...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_> */\npublic class FundingsMissingIndicatorPlugin extends LotAverageIndicatorPlugin {\n /**\n * Plugin type.\n */\n public static final String TYPE = TenderIndicatorType.TRANSPARENCY_MISSING_OR_INCOMPLETE_FUNDINGS_INFO.name();\n\n /**\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>s = input()\n\nwhile \"B\" in s:\n if s[0] == \"B\":\n s = s[1:len(s)+1]\n s = s.replace(\"0B\", \"\")\n s = s.replace(\"1B\", \"\")\n\nprint(s)</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>K,S = map(int,input().split(\" \"))\n \ns = 0\n \nfor x in range(K+1):\n for y in range(min(K+1,S-x+1)):\n if 0<=S-x - y <= K:\n s+=1\n \nprint(s)</code>", "source": "SynthCodeNetNoImageTag",...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_> grid.fit(X)\n return grid, grid.best_estimator_\n else:\n return None, clone(kde).fit(X)\n\n def _similarity(self, doc, samples):\n distance = _distances(doc, samples, metric=self.metric)\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Bash_>#!/usr/bin/env bash\n\nPYTHON=${PYTHON:-\"python\"}\n\nCONFIG=$1\nCHECKPOINT=$2\nGPUS=$3\n\n$PYTHON -m torch.distributed.launch --nproc_per_node=$GPUS \\\n $(dirname \"$0\")/test_recognizer.py $CONFIG $CHECKPOINT --launcher pytorch ${@:4}\n</code>...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Rust_> }\n\n let mut polygon = geo_polygon.clone();\n polygon.map_coords_inplace(|(x, y)| {\n let point = geom::LonLat::new(*x, *y).to_pt(bounds);\n (point.x(), point.y())\n...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_CSS_>@import url(https://fonts.googleapis.com/css?family=Nunito);@charset \"UTF-8\";\n\n.mapboxgl-map {\n font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif;\n overflow: hidden;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>package de.sambalmueslie.padlet.client.wishes\n\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties\nimport com.fasterxml.jackson.annotation.JsonProperty\n\n@JsonIgnoreProperties(ignoreUnknown = true)\ndata class WishesPage(\n @JsonProperty(...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_ObjectiveC_> }\n break;\n\n case SystemDecorationsFull:\n [Window setHasShadow:YES];\n [Window setTitleVisibility:NSWindowTitleVisible];\n [Window setTitlebarAppearsTrans...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_PHP_><?php\n\n/*\n * This file is part of the Apisearch Server\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n *\n * Feel free to edit as you please, and have fun.\n *\n * @au...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># Copyright 2014-2016 OpenMarket Ltd\n# Copyright 2018 New Vector 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 Licens...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>module Pwb\n class ApplicationController < ActionController::Base\n protect_from_forgery with: :exception\n\n before_action :footer_content, :current_agency_and_website, :sections,\n :set_locale, :set_theme_path\n\n def set_theme_path\n t...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>S = str(input())\na = 'a'\n\nfor x in S:\n if a == x:\n print ( 'Bad' )\n exit(0)\n a = x\n \nprint ( 'Good' )\n\n</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>// $Id: pow_op.hpp 3757 2015-11-30 12:03:07Z bradbell $\n# ifndef CPPAD_POW_OP_HPP\n# define CPPAD_POW_OP_HPP\n\n/* --------------------------------------------------------------------------\nCppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bra...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>/**\n * Copyright 2019-2020 Huawei Technologies 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": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>/****** Object: StoredProcedure [dbo].[sp_Create_StoredProcedures_ave_foreignkey_drop] Script Date: 07/12/2013 08:49:43 ******/\nSET ANSI_NULLS ON\nGO\n\nSET QUOTED_IDENTIFIER ON\nGO\n\nCreate Procedure [dbo].[sp_Create_StoredProcedures_ave_foreig...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>/**\n * DevExtreme (ui/widget/bindable_template.js)\n * Version: 16.2.5\n * Build date: Mon Feb 27 2017\n *\n * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED\n * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.x...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>/* Copyright 2017 WALLIX\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://www.apache.org/licenses/LICENSE-2.0\n\nUnle...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_PHP_><?php\n\nnamespace ShaoZeMing\\AliVod\\SDK;\n\n/**\n * Request of GetTranscodeSummary\n *\n * @method string getResourceOwnerId()\n * @method string getResourceOwnerAccount()\n * @method string getOwnerId()\n * @method string getVideoIds()\n */\nclass GetTr...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>package midas\npackage models\n\nimport freechips.rocketchip.config._\n\nimport chisel3._\n\nimport org.json4s._\n\nimport Console.{UNDERLINED, GREEN, RESET}\nimport java.io.{File, FileWriter}\n\n// Hacky utilities to get console input from user.\ntrait H...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_>module Latest\n class MagLevRetriever\n\n def retrieve(maglev)\n page = Net::HTTP.get(URI(maglev.source))\n page.scan(/MagLev-(\\d\\.\\d\\.\\d)\\.tar\\.gz/).\n uniq.flatten.map { |v| RubyVersion.new(v) }.max\n end\n\n end\nen...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Scala_>package definiti.tests.end2end.controls.expression\n\nimport definiti.common.ast.{Root, TypeReference}\nimport definiti.common.program.Ko\nimport definiti.common.tests.LocationPath\nimport definiti.tests.ConfigurationBuilder\nimport definiti.tests.e...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, division, print_function\n\n\n__metaclass__ = type\n\nANSIBLE_METADATA = {'metadata_version': '1.1',\n 'status': ['preview'],\n 's...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_PHP_> \n public function updateCMSFields(FieldList $fields) {\n \n $fields->addFieldsToTab('Root.Main', [\n UploadField::create('BrandLogo', 'Brand Logo')\n ->setAllowedMaxFileNumber(1),\n UploadField::cre...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from collections import defaultdict\nA = input()\nN = len(A)\n\nd = defaultdict(list)\nfor i, a in enumerate(A):\n d[a].append(i)\n\npair = 0\nfor k, v in d.items():\n n = len(v)\n pair += n * (n - 1) // 2\n\nans = N * (N - 1) // 2\nans = ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>/* 222. One to Many Relationship */\n\nCREATE SCHEMA db222;\nUSE db222;\n\nCREATE TABLE manufacturers(\n\tmanufacturer_id INT AUTO_INCREMENT NOT NULL,\n name VARCHAR(20) NOT NULL,\n established_on DATE NULL,\n PRIMARY KEY(manufacturer_id)\n);\n\nCR...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>/**\n * code generated by JHelper\n * More info: https://github.com/AlexeyDmitriev/JHelper\n * @author aajisaka\n */\n\n#include<bits/stdc++.h>\n\nusing namespace std;\n\nvoid debug_out() { cerr << endl; }\ntemplate <typename Head, typename... Tail>\n...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>N=int(input())\nA=list(map(int,input().split()))\nans=0\nfor i in range(N-1):\n temp=0\n for j in range(i+1,N):\n temp+=A[j]\n ans+=A[i]*(temp%(10**9+7))\nprint(ans%(10**9+7))\n</code>", "source": "SynthCodeNetNoImageTag", "...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>-- :name list-stories :?\n-- :doc Retrieve list of all stories\nselect id, title, url, votes from stories; \n\n-- :name create-story! :!\n-- :doc Create a new story submission\ninsert into stories (title, url) values (:title, :link);\n\n-- :name upvote-stor...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_># -*- coding: utf-8 -*-\n\n# ToMaTo (Topology management software) \n# Copyright (C) 2014 Integrated Communication Systems Lab, University of Kaiserslautern\n#\n# This file is part of the ToMaTo project\n#\n# ToMaTo is free software: you can redistribute...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_>\n#nearby {\n\tmargin-top: 0px;\n\tpadding-left: 40px;\n}\n\n.loader {\n position: fixed;\n top: 50%;\n left: 35%;\n /* bring your own prefixes */\n transform: translate(-50%, -50%);\n}\n</code>", "source": "SynthCodeNetNoImageTag", "user...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>extern MyMainFrame *main_frame;\n\nclass MyAssetPanelParent : public AssetPanelParent\n{\n\n\t\tfriend class GroupDropTarget;\n\t\tfriend class RenameDialog;\n\nprivate:\n\n\n\n\t\tlong highlighted_item;\n\n\t\tbool name_is_being_edited;\n\t\tbool shoul...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>package com.viewpagerindicator.sample;\n\nimport android.graphics.Color;\nimport android.os.Bundle;\nimport android.support.v4.app.Fragment;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.wid...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Erlang_>%%\n%% ICalendar\n%%\n , <<\"Schedule.Agenda.Event.RRule\">> => {<<\"BackboneElement\">>,\n [\n {<<\"frequency\">>, {{code, <<\"rrule_freq\">>}, optional}},\n {<<\"byweekno \">>, {{code, <<\"rrule_byweekno\">>}, optional}},\...
[ { "assistant": "<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></code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>const BaseStep = require('../basestep.js');\nconst GamePipeline = require('../../gamepipeline.js');\nconst SimpleStep = require('../simplestep.js');\nconst ChooseParticipantsPrompt = require('./ChooseParticipantsPrompt');\nconst ChooseStealthTargets ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!--\r\n Copyright (C) 2006-2007 the original author or authors.\r\n\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the Lic...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_>/*\n * jQuery UI Selectable 1.8.7\n *\n * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)\n * Dual licensed under the MIT or GPL Version 2 licenses.\n * http://jquery.org/license\n *\n * http://docs.jquery.com/UI/Selectable#theming\n */\n.ui-s...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Go_>package main\n\ntype FSInformationSector struct {\n\tSignature [4]byte // offset 0x000 // 0x52 0x52 0x61 0x41 (RRaA)\n\tSignature2 [4]byte // offset 0x1E4 // 0x72 0x72 0x41 0x61 (rrAa)\n\tFreeClusters uint...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_HTML_><?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" dir=\"ltr\" lang=\"en\" xml:lang=\...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_>\n @type = File.extname(@package)\n unless SUPPORTED_ARCHIVE_FORMATS.include?(@type)\n error \"File #{@package} must have format: #{SUPPORTED_ARCHIVE_FORMATS.join(', ')}\"\n end\n end\n\n def extract\n print_title('Ex...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>module Sass::Script::Value\r\n # A SassScript object representing a variable argument list. This works just\r\n # like a normal list, but can also contain keyword arguments.\r\n #\r\n # The keyword arguments attached to this list are unused except when...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Perl_>// ------------------------------------------------------------------------------------------------\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License. See License.txt in the project root for license informatio...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>package com.h5190019.ibrahim_metehan_barutcu;\n\nimport android.app.Application;\n\npublic class GameApplication extends Application {\n}\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>'use strict'\nconst path = require('path')\nconst utils = require('./utils')\nconst webpack = require('webpack')\nconst config = require('../config')\nconst merge = require('webpack-merge')\nconst baseWebpackConfig = require('./webpack.base.conf')\nc...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>/*\n * The MIT License\n *\n * Copyright (c) 2017 Fulcrum Genomics\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...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>/*\n * This header is generated by classdump-dyld 1.5\n * on Friday, April 30, 2021 at 11:36:57 AM Mountain Standard Time\n * Operating System: Version 13.5.1 (Build 17F80)\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>\t\t\t*was_alldone = !rcu_segcblist_pend_cbs(&rdp->cblist);\n\t\t\tif (*was_alldone)\n\t\t\t\ttrace_rcu_nocb_wake(rcu_state.name, rdp->cpu,\n\t\t\t\t\t\t TPS(\"FirstQ\"));\n\t\t\tWARN_ON_ONCE(rcu_cblist_n_cbs(&rdp->nocb_bypass));\n\t\t\treturn false; // Ca...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>import java.util.*;\n\npublic class Main {\n static Scanner scanner = new Scanner(System.in);\n\n public static void main(String[]$) {\n int n = scanner.nextInt();\n long a = scanner.nextInt();\n long b = scanner.nextInt();\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>with agent_installed_vm as (\n select\n distinct a.vm_id\n from\n azure_compute_virtual_machine as a,\n jsonb_array_elements(extensions) as b\n where\n b ->> 'Publisher' = 'Microsoft.GuestConfiguration'\n and b ->> 'ProvisioningState' = 'S...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_HTML_><div data-scope=\"posts\">\n\n\t<div data---=\"layout2__null__parent:.ui-layout2-section\" class=\"invisible\">\n\n\t\t<section data-type=\"top2\" data-size=\"44\">\n\t\t\t<div class=\"header\">\n\t\t\t\t<label><i class=\"fa fa-newspaper-o\"></i>@(List of ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_> ON U.numero_utente = CM.utente\n INNER JOIN medico M\n ON CM.medico = M.numero_ordem\n\nWHERE CM.realizada = 0 \n AND CM.data_hora < NOW();\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_><?php\n\n/*\n * This file is part of Respect/Validation.\n *\n * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>\n *\n * For the full copyright and license information, please view the \"LICENSE.md\"\n * file that was distributed with this sourc...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_> if (diffOnly){\n this._original = this.toObject();\n }\n });\n\n function setMetadata(original, d, historyDoc, callback){\n async.each(metadata, (m, cb) => {\n if (typeof(m.value) === 'function'...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>CREATE TABLE authors (\n id INTEGER PRIMARY KEY,\n name TEXT\n);</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>/*\nThis is the Quaternion header file for the 3dbasics program, which provides simple tools \nto represent and compute a 3D environment.\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_> border: none;\n color: #fff;\n border-radius: 2px;\n}\n\n.field{\n background-color: #ccc;\n border-radius: 2px;\n flex-grow: 0;\n font-family: SANS-SERIF;\n font-size: 1em;\n height: 1em;\n margin: 2px;\n padding: 0....
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>package com.kickstarter.services.firebase\n\nimport android.content.Context\nimport androidx.work.Worker\nimport androidx.work.WorkerParameters\nimport com.google.firebase.crashlytics.FirebaseCrashlytics\nimport com.google.firebase.iid.FirebaseInstanceId...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_> }\n\n @Override\n public String toString() {\n return \"DarwinThread start_routine=\" + start_routine + \", arg=\" + arg;\n }\n\n @Override\n protected Number runThread(AbstractEmulator<?> emulator) {\n Backend backend = em...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>ans = Array.new(5,0)\n3.times do\n a,b = gets.split.map(&:to_i)\n ans[a] += 1\n ans[b] += 1\nend\n\nputs ans.index{|e| e > 2} ? \"NO\" : \"YES\"</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Python version: 3.8\n\nimport os\nimport copy\nimport json\nimport datetime, time\nimport numpy as np\nimport operator\nfrom tensorboardX import SummaryWriter\nfrom statsmodels.stats.weightstats imp...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>--\n-- PostgreSQL database dump\n--\n\n-- Dumped from database version 12.1\n-- Dumped by pg_dump version 12.1\n\nSET statement_timeout = 0;\nSET lock_timeout = 0;\nSET idle_in_transaction_session_timeout = 0;\nSET client_encoding = 'UTF8';\nSET standard_co...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n int count = 0;\n for (int i = 0; ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Dockerfile_># AUTOGENERATED FILE\nFROM balenalib/raspberrypi400-64-debian:stretch-build\n\nENV NODE_VERSION 16.13.1\nENV YARN_VERSION 1.22.4\n\nRUN for key in \\\n\t6A010C5166006599AA17F08146C2130DFD2497F5 \\\n\t; do \\</code>", "source": "SynthCodeNet...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>s= input()\nprint(\"No\" if len(set(s)) == 1 else \"Yes\")</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_TypeScript_>export class PlanificacionAcompanamientoComponent implements OnInit {\n titleDocente= TutoriaConstants.DATOSDOCENTE;\n titleTutoria= TutoriaConstants.DATOSTUTORIA;\n titleRegistro= TutoriaConstants.DATOSREGISTRO;\n aula: boolean = true\n constru...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>import java.util.Scanner\n\nobject Main extends App {\n val sc = new Scanner(System.in)\n val ans = Vector(sc.nextInt, sc.nextInt, sc.nextInt) match {\n case Vector(5, 5, 7) => \"YES\"\n case Vector(5, 7, 5) => \"YES\"\n case Vector(7, 5, 5) =>...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>package com.github.yamamotoj.daggersinglemoduleapp.package01\nimport javax.inject.Inject\nclass Foo00136 @Inject constructor(){\n fun method0() { Foo00135().method5() }\n fun method1() { method0() }\n fun method2() { method1() }\n fun m...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>union all\nselect * from {{ ref('node_1072') }}\nunion all\nselect * from {{ ref('node_1153') }}\nunion all\nselect * from {{ ref('node_1820') }}\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:brick=\"https://brickschema.org/schema/Brick#\" xmlns:csvw=\"http://www.w3.org/ns/c...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>const mongoose = require(\"mongoose\");\n\nconst productSchema = new mongoose.Schema({\n title: {type: String, required: true},\n description: {type: String, required: true},\n creator: {type: String, required: true},\n price: {type...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_>* {\n box-sizing: border-box;\n}\n\n.header {\n background: #9b2a2a;\n margin: 0px;\n padding: 10px;\n text-align: center;\n border-radius: inherit;\n display: flex;\n flex-direction: row;\n justify-content: center;\n ali...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>\nclass ErrorCode(AbstractEnum):\n BAD_REQUEST = () # Generic name, from the name of HTTP 400.\n REQUEST_VARIABLE_MISSING = ()\n REQUEST_VARIABLE_INVALID = ()\n INVALID_JSON = ()\n BAD_IMAGE = ()\n REALM_UPLOAD_QUOTA = ()\n BAD_NARR...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_>require 'agave/utils/seo_tags_builder'\nrequire 'agave/utils/favicon_tags_builder'\n\nmodule Agave\nend\n</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nusing System.Collections.Generic;\nusing System.Linq;\n \nnamespace ALDS1_13_B2\n{\n class Program\n {\n static int[] dx = { -1, 0, 1, 0 };\n static int[] dy = { 0, -1, 0, 1 };\n \n static void Main(string[] args)\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_>array = gets.split(\" \").map(&:to_i)\np1 = array[0] - array[1]\np2 = array[1] - array[0]\nif array[3].even? && p1 < 1000000000000000000\n puts p1\nelsif array[3].odd? && p2 < 1000000000000000000\n puts p2\nelse\n puts 'Unfair'\nend</code>", "...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Lisp_>;;;Copyright (c) 2017 Wilfredo Velázquez-Rodríguez\n;;;\n;;;This software is provided 'as-is', without any express or implied\n;;;warranty. In no event will the authors be held liable for any damages\n;;;arising from the use of this software.\n;;;\n;;;Perm...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_>{\n /**\n * Run the migrations.\n *\n * @return void\n */\n public function up()\n {\n Schema::create('settings', function (Blueprint $table) {\n $table->id();\n $table->char('form_status', 1)->def...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>#include <bits/stdc++.h>\nusing namespace std;\n \nint main() {\n int x;\n cin >>x;\n int kazu=x/100;\n int amari=x%100;\n for(int i=0;i<=kazu;i++){\n for(int j=0;j<=kazu;j++){\n for(int k=0;k<=kazu;k++){\n for(int m=0;m<=kazu;m++)...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>#!/usr/bin/env python3\nimport sys\n\ndef append_zero(x):\n if 0 in x:\n return\n if x[0] > 0:\n x.insert(0, 0)\n return\n if x[len(x)-1] < 0:\n x.appnd(0)\n return\n for i in range(1, len(x)):\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Rust_>use proconio::input;\n\n#[allow(unused_imports)]\nuse proconio::marker::{Bytes, Chars, Usize1};\n#[allow(unused_imports)]\nuse std::cmp::*;\n#[allow(unused_imports)]\nuse std::collections::*;\n#[allow(unused_imports)]\nuse std::ops::*;\n\n#[derive(Clone, D...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>/*\n * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.\n * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n *\n * This code is free software; you can redistribute it and/or modify it\n * under the terms of the GNU...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Scala_>\n test(\"can use Some.unapply in pattern matching\") {\n val result = WartTestTraverser(SomeApply) {\n Option(\"test\") match {\n case Some(test) => println(test)\n case None => println(\"not gonna happen\")\n }\n }\n...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_TypeScript_>export declare module UIConstants {\n var AppKey: string;\n var Title: string;\n var SubTitle: string;\n var Version: string;\n var Http: {\n BaseUrl: string;\n Headers: any;\n AuthorizationHeader: any;\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># Third-party packages and modules:\nfrom collections import deque\nimport numpy as np\nimport abc\n# My modules and packages:\nimport utils\nimport my_neural_network as mnn\n\nclass Agent:\n # Constructor is \"overloaded\" by the functions bell...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>\"\"\"This package includes all the modules related to data loading and preprocessing\n\n To add a custom dataset class called 'dummy', you need to add a file called 'dummy_dataset.py' and define a subclass 'DummyDataset' inherited from BaseDataset...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_> $nik = $this->session->userdata('nik');\n $cuti = $this->model_cuti->cuti_konfirm_member($nik);\n $bagian = $this->model_cuti->get_bagian($nik)->row_array();\n \n $pdf = new FPDF('P','...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Rust_>#![allow(unused_imports, unused_macros)]\n\nuse kyoproio::*;\nuse std::{\n collections::*,\n io::{self, prelude::*},\n iter,\n mem::{replace, swap},\n};\n\nfn main() -> io::Result<()> {\n std::thread::Builder::new()\n .stack_size(64 *...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>package com.hc.gqgs.tools;\n\npublic class StringUtil {\n\n\tpublic static Boolean isEmptyOrNull(String s){\n\t\treturn (s == null || s.length() <= 0);\n\t}\n\tpublic static Boolean isEmptyOrNull(Integer i){\n\t\treturn (i == null || i== 0);\n\t}\n\t...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>N, T = map(int, input().split())\nc, t = list(map(int, input().split()))\n\ncosts = []\nfor i in range(N):\n if t[i] <= T:\n costs.append(c[i])\n \nprint(min(costs))</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]