images images listlengths 1 1 | texts listlengths 1 1 |
|---|---|
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#include <bits/stdc++.h>\n\nusing namespace std;\n\ntypedef long long int LL;\ntypedef unsigned long long int ULL;\ntypedef pair<int, int> PII;\ntypedef map<int, int> MII;\n\nconst int SZ = 112345;\nconst int MOD = 1e9 + 7;\n\nint h, n, a[SZ];\n\nint main()... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>// CvPlotQt - https://github.com/Profactor/cv-plot-qt\n// Copyright (c) 2020 by PROFACTOR GmbH - https://www.profactor.at/\n\n#pragma once\n\n#include <CvPlotQt/libdef.h></code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>package cmd\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"time\"\n\n\t\"github.com/jenkins-x/jx/pkg/auth\"\n\t\"github.com/jenkins-x/jx/pkg/gits\"\n\t\"github.com/jenkins-x/jx/pkg/issues\"\n\t\"github.com/jenkins-x/jx/pkg/kube\"\n\t\"github.com/jenkins-x/jx/p... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import sys\nimport numpy as np\ninput = sys.stdin.readline\nN, W = map(int, input().split())\ndef knapsack():\n dp = np.zeros((N+1, W+1), dtype=int)\n c = np.arange(1, N+1)\n cc = np.arange(1, W+1)\n for i in c:\n w, v = map(int, input().split())\... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>INSERT INTO albums_songs (album_id, song_id)\nVALUES (2, 1);\nINSERT INTO albums_songs (album_id, song_id)\nVALUES (2, 2);\nINSERT INTO albums_songs (album_id, song_id)\nVALUES (2, 3);\nINSERT INTO albums_songs (album_id, song_id)\nVALUES (2, 4);\nINS... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_>* {outline:none !important;}\nbody {\n color:#525252;\n background:#353535;\n}\n.body-expanded, .modal-open {\n overflow-y:hidden;\n margin-right: 15px;\n}\n.modal-open #content {z-index: inherit;}\n.body-expanded .expanded-panel, .fancybox-margin... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>/*=========================================================================\n\nLibrary: TubeTK\n\nCopyright 2010 Kitware Inc. 28 Corporate Drive,\nClifton Park, NY, 12065, USA.\n\nAll rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>#coding:utf-8\n#\n# id: bugs.core_1550_postfix\n# title: Unnecessary index scan happens when the same index is mapped to both WHERE and ORDER BY clauses\n# decription: \n# http://sourceforge.net/p/firebird/code/... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>#!/usr/bin/env python3\nfrom pwn import *\n\ncontext.update(log_level=\"debug\")\n\nHOST = \"vulnbox-test.faust.ninja\"\nPORT = 1337\n\npr = remote(HOST, PORT)\n\npr.recvuntil(\"-> quit\\r\\n >\")\npr.sendline(\"moneymoneymoney\")\n\nfinished = False\nw... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_ObjectiveC_>// Copyright (c) 2011-2013 The Bitcoin Core developers\n// Copyright (c) 2015-2017 The PIVX Developers\n// Distributed under the MIT/X11 software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>#include<iostream>\n using namespace std ;\n int main()\n{\n string a,b,c,d,e,f,g,h,i;\n cin>> a>> b>>c;\ncin>> d>>e>>f;\n cin>>g>>h>>i;\n cout<< a<<e<<i;\n}</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_D_>// unihernandez22\n// https://atcoder.jp/contests/abc061/tasks/abc061_a\n// implementation\n\nimport std.stdio: readf, writeln;\n\nvoid main() {\n\tint a, b, c;\n\t\"%s %s %s\\n\".readf(&a, &b, &c);\n\n\tif (c >= a && c <= b)\n\t\twriteln(\"Yes\");\n\te... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_HTML_><ion-header>\n <ion-navbar>\n <ion-title>\n MyAppVersion\n </ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding class=\"center home\">\n <button ion-button (click)=\"getVersion()\">Get App Version</button>\n <p class=\"large\"... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>/**\n* TimerChain\n* http://mins01.com\n* https://github.com/mins01/js_TimerChain\n* Date : 2019-05-17\n*/\nvar cnt = 0;\nvar TimerChain = (function(){\n\t\"use strict\";\n\tvar TimerChain = function(){\t\n\t};\n\tTimerChain.prototype = Object.... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>#! /usr/bin/env python\n\nimport rospy\nimport time\nfrom std_msgs.msg import Empty\nfrom geometry_msgs.msg import Twist\n\nclass Control():\n def __init__(self):\n self.ctrl_c = False\n self._pub_cmd_vel = rospy.Publisher('/cmd_vel', Tw... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_TypeScript_>/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License;\n * you may not use this file except in compliance with the Elastic License.\n *... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>/*\n * Copyright 2021 Squircle IDE contributors.\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 * ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>from collections import Counter\n\nN = int(input())\ndata = list(map(int, input().split()))\n\ncount = Counter(data)\n\nfor i in range(1, N+1):\n ans = count[i]\n print(ans)\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>_id: 93754ac0-09aa-11eb-b513-cd3f92c55f5e\nmessage: \"Need cash? Launch this robot and see what it can. \\r\\nLink - http://www.google.com/url?q=%68%74%74%70%73%3A%2F%2F%68%64%72%65%64%74%75%62%65%33%2e%6d%6f%62%69%2F%62%74%73%6d%61%72%74%23%48%4b%4d... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>### YamlMime:JavaMember\nuid: \"com.microsoft.store.partnercenter.models.invoices.DailyUsageLineItem.getMeteredService*\"\nfullName: \"com.microsoft.store.partnercenter.models.invoices.DailyUsageLineItem.getMeteredService\"\nname: \"getMeteredService... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_YAML_> - php\n depends_on:\n - php\n\n php:\n build: docker/php\n expose:\n - 9000\n restart: always\n volumes:\n - ./docker/php/conf/php.ini:/usr/local/etc/php/conf.d/custom.ini\n... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>#include \"lue/info/space/mobile_space_point.hpp\"\n#include \"lue/core/tag.hpp\"\n\n\nnamespace lue {\nnamespace data_model {\n\nMobileSpacePoint::MobileSpacePoint(\n hdf5::Group const& parent):\n\n same_shape::constant_shape::Value{parent, coo... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>N=int(input())\nN_list=[input() for i in range(N)]\n\nresult_list=[]\n\nfor i in range(len(N_list)):\n if i==(a for a in N_list):\n result_list.append(i)\n\nprint(len(result_list))</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>from __future__ import absolute_import\n\nfrom dcmviewer._version import __version__\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_> (1) The 'x[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\n \"\"\"\n return self['x']\n\n @x.setter\n def x(self, val):\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>import subprocess\nfrom test_pitr.base import internal_connection_string\n\nsubprocess.call([\"docker-compose\", \"exec\", \"postgres\", \"bash\", \"-c\", f\"psql {internal_connection_string} -c 'select pg_switch_wal();'\"])</code>",
"source": ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License;\n * you may not use this file except in compliance with the Elastic License.\n */\npackage o... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>package me.ddevil.mal.manga\n\nenum class MangaType {\n ONE_SHOT,\n MANGA,\n NOVEL\n}</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Cuda_>.set_attr<FCompute>(\"FCompute<gpu>\", BinaryScalarOp::Compute<gpu, mshadow_op::mod>);\n\n//NNVM_REGISTER_OP(_backward_mod_scalar)\n//.set_attr<FCompute>(\"FCompute<gpu>\", BinaryScalarOp::Backward<\n// gpu, mshadow_op::mod_grad>);\n\nNNVM_REGISTER_OP(_rm... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_> struct sendmsg s2;\n \n //memset(buf,0,sizeof(buf));\n memset(&s2,0,sizeof(struct sendmsg));\n int len=recv(*it,(char*)&s2,sizeof(struct sendmsg),0);\n //memcpy... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Dockerfile_>RUN pip install -U -r /app/requirements.txt --no-cache-dir\nRUN cd /app/project/assets/ \\\n && npm install \\\n && npm cache clear\n\nADD . /app/\n\nRUN cd /app/project/assets/ \\\n && npm run build\nRUN python manage.py collectstatic... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>import re\nimport random\nimport copy\nimport nbformat\nimport base64\nimport pickle\nfrom nbgrader.preprocessors import NbGraderPreprocessor\n\nclass Scramble(NbGraderPreprocessor):\n \n def __init__(self, **kw):\n self.__seed = rando... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># -*- coding: utf-8 -*\n\nimport torch.nn as nn\n\nfrom videoanalyst.model.backbone.backbone_base import (TRACK_BACKBONES,\n VOS_BACKBONES)\nfrom videoanalyst.model.common_opr.common_block impor... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SML_>X, Y, TStamp, Pres., EndPts\nDataSize: 226\n8986 16022 0 30 0\n8936 16143 10 40 0\n8887 16384 15 52 0\n8837 16865 25 47 0\n8887 17468 31 52 0\n8887 18191 47 47 0\n8986 19034 57 50 0\n9085 19636 62 63 0\n9284 20238 78 61 0\n9532 20720 88 65 0\n9780 210... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>START TRANSACTION;\nSET time_zone = \"+00:00\";\n\n\n/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;\n/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>/*------------------------------------------------------------------------\n* (The MIT License)\n* \n* Copyright (c) 2008-2011 Rhomobile, Inc.\n* \n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>// Automatically generated - do not modify!\n\n@file:JsModule(\"@mui/icons-material/AccessibleOutlined\")\n@file:JsNonModule\n\npackage mui.icons.material\n\n@JsName(\"default\")\nexternal val AccessibleOutlined: SvgIconComponent\n</code>",
"source":... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Go_>// Code generated by protoc-gen-gogo. DO NOT EDIT.\n// source: k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto\n\n/*\n\tPackage v1 is a generated protocol buffer package.\n\n\tIt is generated from these files:\n\t\tk8s.io/apimachinery/pkg/apis/met... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nusing System.Collections.Generic;\n\nnamespace ITP1_8_B\n{\n class Program\n {\n static void Main(string[] args)\n {\n var result = new List<int>();\n string input;\n while ((input = Console... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_> *\n */\n void listen() {\n while (true) {\n auto recv_buffer = allocate_buffer();\n recv_buffer->resize(m_buffer_capacity); // TODO: does this clear?\n MPI_Status status;\n ASSERT_MPI(MPI_Recv(recv_buffer->data(), m_buffer_cap... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Dockerfile_>COPY --from=BUILDER /usr/bin/indexer /usr/bin/indexer\n\nWORKDIR /home/depscloud\nUSER 13490:13490\n\nENTRYPOINT [ \"/usr/bin/indexer\" ]\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_>@foreach ($messages as $message)\n <li>\n <a href=\"/messages/{{ $message->msgId }}/edit\">\n\n <div class=\"row message-container justify-content-center\">\n <h4>{{ ucwords($message->username) }}</h4>\n <span class=\"... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>/*\n * arch/arm/mach-mv78xx0/include/mach/mv78xx0.h\n *\n * Generic definitions for Marvell MV78xx0 SoC flavors:\n * MV781x0 and MV782x0.\n *\n * This file is licensed under the terms of the GNU General Public\n * License version 2. This program is li... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Go_>package main\n\nimport (\n\t\"fmt\"\n)\n\nfunc main() {\n\tvar n int\n\tfmt.Scan(&n)\n\tas := make([]int, n)\n\tfor i := 0; i < n; i++ {\n\t\tfmt.Scan(&as[i])\n\t}\n\n\tnum := f(as[0])\n\n\tif n == 1 {\n\t\tfmt.Println(num)\n\t} else {\n\t\tfor i := 1;... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import base64\nimport io\nimport os\n\nfrom django.conf import settings\nfrom PIL import Image\n\nfrom core.utils import random_uuid4\nfrom projects.workers.base import Worker\nfrom projects.workers.exceptions import WorkerNoInputException\n\n\nclass Gra... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Dockerfile_># AUTOGENERATED FILE\nFROM balenalib/intel-nuc-ubuntu:bionic-build\n\nENV GO_VERSION 1.13.14\n\nRUN mkdir -p /usr/local/go \\\n\t&& curl -SLO \"https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz\" \\\n\t&& echo \"32617db984b18308f... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_> * not participate in collisions. Drawn on top of all other actors.\n */\nexport class ScreenElement extends Actor {\n /**\n * @param xOrConfig The starting x coordinate of the actor or the actor option bag\n * @param y The starting... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>#include <iostream>\n#include <cmath>\n\nusing namespace std;\n\ntypedef long long ll;\n\nvoid solve(ll a, ll b, ll v[], int m) {\n for (int i = 0; i < m; i++) {\n if ( a + b >= 0 && a - b >= 0 ) {\n cout << \"R\";\n a ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Bash_>#!/bin/bash\n#$ -hold_jid 539126,539127,539128,539129,539130,539131,539132,539133,539134,539135,539136,539137,539138,539139,539140,539141,539142,539143,539144,539145,539146,539147,539148,539149,539150,539151,539152,539153,539154,539155,539156,539157,539158... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_CSS_>#apply-gift-card {\r\n display: table-cell;\r\n white-space: nowrap;\r\n margin-left: 1em;\r\n}\r\n\r\n#gift-card-number {\r\n width: 70%;\r\n}\r\n\r\n#gift-card-pin {\r\n width: 26%;\r\n}\r\n</code>",
"source": "SynthCodeNetNoImageTag",
... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>//=================================================================================================\n/*!\n// \\file src/mathtest/smatdmatsub/UCbHDa.cpp\n// \\brief Source file for the UCbHDa sparse matrix/dense matrix subtraction math test\n//\n// ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Matthww/ConnectedIP\nbranches:\n- master\nprojects:\n ConnectedIP:\n path: \"\"\n...\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>//\n// Copyright (C) 2014-2016 LunarG, Inc.\n// Copyright (C) 2015-2016 Google, Inc.\n// Copyright (C) 2017 ARM Limited.\n//\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>package typingsSlinky.awsSdk.inspectorMod\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\ntrait _Severit... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] array = new int[n];\n ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Rust_>use std::env;\n\nuse futures::Stream;\nuse tokio::runtime::Runtime;\n\nuse hubcaps::branches::Protection;\nuse hubcaps::{Credentials, Github, Result};\n\nfn main() -> Result<()> {\n pretty_env_logger::init();\n match env::var(\"GITHUB_TOKEN\").... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Nim_>#=== Template_Base =========================== {{{\n\nimport strutils, sequtils, math, algorithm, macros\nwhen (not (NimMajor <= 0)) or NimMinor >= 19:\n import sugar\nelse:\n import future\n\n# type\n# si = seq[int]\n# ssi = seq[seq[int]]\n# ... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>ALTER TABLE `game_blocks` ADD `load_time` FLOAT NOT NULL DEFAULT '0' AFTER `num_transactions`, ADD `time_loaded` INT NULL DEFAULT NULL AFTER `load_time`;</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>const { ci, repo, branch, sha } = require('ci-env')\nconst fetch = require('node-fetch')\n\nlet API = 'https://bundlesize-cache.now.sh'\n// if (ci === 'custom') API = 'http://localhost:3001'\n\nconst api = {\n get: async ({ repo }) => {\n r... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_> This file is part of GAS, the GNU Assembler.\n\n GAS is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 3, or (at your op... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n xmlns:tools=\"http://schemas.android.com/tools\"\n android:layo... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Scala_>import java.util.UUID\n\nimport scala.concurrent.Future\n\nimport com.outworkers.phantom.dsl._\n\nimport org.joda.time.Instant\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>import java.util.regex.Pattern\n\nfun main(args: Array<String>) {\n val charCount = readLine()!!.toInt()\n val text = readLine()!!\n val regex = Pattern.compile(\"ABC\")\n val matcher = regex.matcher(text)\n var i = 0\n while(matc... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>/**\n * Copyright (c) 2018 - 2020, Nordic Semiconductor ASA\n *\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification,\n * are permitted provided that the following conditions are met:\n *\n * 1... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>\nconst babelrc = require('./babelrc.js');\n\nmodule.exports = {\n devtool: 'source-map',\n entry: __dirname + '/src/index',\n output: {\n path: __dirname + '/dist/assets/',\n publicPath: \"/assets/\",\n filename: \"dist.js\",\n },\n mo... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>package com.cheuwo.app\n\nimport android.view.LayoutInflater\nimport android.view.ViewGroup\nimport androidx.recyclerview.widget.RecyclerView\n\n/**\n * Handles data representation in the RecyclerView\n */\nclass OfferAdapterRV(private val list: List<Off... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>}\n\n\nwchar_t * tinyfd_saveFileDialogW(\n wchar_t const * aTitle, /* NULL or \"\" */\n wchar_t const * aDefaultPathAndFile, /* NULL or \"\" */\n int aNumOfFilterPatterns, /* 0 */\n wchar_t const * const * aFilterPatterns, /* NULL ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>end\n\nGiven('there is one past scrum with invalid youtube id') do\n create(:event_instance,\n yt_video_id: nil,\n title: 'Invalid',\n category: 'Scrum',\n project_id: nil)\nend\n\nThen(\"video with youtube id nil shouldn't... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><app-list>\n\n <application>\n <kb_color window=\"firefox\">yellow white blue</kb_color>\n </application>\n\n <application>\n <kb_color window=\"Google-chrome\">red blue yellow</kb_color>\n </application>\n\n <application>\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Lisp_>(eval-when (:compile-toplevel :load-toplevel :execute)\n (sb-int:defconstant-eqx OPT\n #+swank '(optimize (speed 3) (safety 2))\n #-swank '(optimize (speed 3) (safety 0) (debug 0))\n #'equal)\n #+swank (ql:quickload '(:cl-debug-print :fiveam) :s... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>#!/usr/bin/env python\nimport os\nimport time\nimport re\nimport numpy\nfrom pyscf import lib\nfrom pyscf import gto, scf, dft, mcscf, mp, cc, lo\n\ndef sort_mo(casscf, idx, mo_coeff):\n mol = casscf.mol\n corth = lo.orth.orth_ao(mol)\n casorb =... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_TypeScript_>import { Component, OnInit, ViewChild } from '@angular/core';\nimport { map } from 'rxjs/operators';\nimport { TaskMasterFacade } from '../+state/task-master';\nimport { ColumnType, TableComponent } from '@core/table';\nimport { Router } from '@angul... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_> }\n\n public void setMessage(String message) {\n this.message = message;\n }\n\n public String getRequestCode() {\n return requestCode;\n }\n\n public void setRequestCode(String requestCode) {\n this.requestCode = re... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_></td><td align=\"center\" valign=\"middle\" rowspan=\"1\" colspan=\"1\">\n</td><td align=\"center\" valign=\"middle\" rowspan=\"1\" colspan=\"1\">\n</td><td align=\"center\" valign=\"middle\" rowspan=\"1\" colspan=\"1\">\n</td><td align=\"center\" val... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_ObjectiveC_>#import <UIKit/UIKit.h>\n\n#include <UnityFramework/UnityFramework.h>\n#include <UnityFramework/NativeCallProxy.h>\n\nUnityFramework* UnityFrameworkLoad()\n{\n NSString* bundlePath = nil;\n bundlePath = [[NSBundle mainBundle] bundlePath];... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>a,b,c= map(int, input().split())\n\nm=max(a,b,c)\n\nif m==a:\n print((a+10)+b+c)\nelif:m==b:\n print((b+10)+a+c)\nelse:\n print((c+10)+a+b)</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><partInstance>\n<version>2.1</version>\n<targetInstances>\n<targetPart>\n\t<id>NPCT501</id>\n\t<type>chip-NPCT501</type>\n\t<is_root>true</is_root>\n\t<instance_name>NPCT501</instance_name>\n\t<position>-1</position>\n\t<parent>mrw-chip</parent>\n\t<parent_... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_D_>import std.stdio;\n\nint main(string[] args){\nint n,k,max=0;\nint val[5004];\nint sumArray[5004];\n\n\nscanf(\"%d %d\",&n,&k);\n\nfor(int i=0;i<n;i++){\nscanf(\"%d\",&val[i]);\nif(i == 0)sumArray[i]=val[i];\nelse sumArray[i]=sumArray[i-1]+val[i];\n}\n\... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>var express = require('express');\nvar router = express.Router();\nvar request = require('request');\n\nrouter.get('/', function(req, res, next) {\n var fs = require('fs');\n fs.access('./temp_files/temp.txt', error => {\n //if fil... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>/*\n * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.\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 Lic... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_XML_><annotation>\n\t<folder>Train</folder>\n\t<filename>677.jpg</filename>\n\t<path>C:/Users/Buse/Desktop/Train/677.jpg</path>\n\t<source>\n\t\t<database>Unknown</database>\n\t</source>\n\t<size>\n\t\t<width>640</width>\n\t\t<height>426</height>\n\t\t<dep... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import bisect\nans=0\n\nN,a,b,c=open(0).read().rstrip().split('\\n')\nN=int(N)\nA=[int(i) for i in a.split()]\nB=[int(i) for i in b.split()]\nC=[int(i) for i in c.split()]\nA.sort()\nB.sort()\nC.sort()\n\nfor i in A:\n if i>=B[-1]:\n break\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#include <bits/stdc++.h>\nusing namespace std;\n#define FOR(i,k,n) for(int i = (k); i < (n); i++)\n#define REP(i,n) FOR(i,0,n)\n#define ALL(a) begin(a),end(a)\n#define MS(m,v) memset(m,v,sizeof(m))\n#define D10 fixed<<setprecision(10)\ntypedef vector<int> v... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>/*\n * This header is generated by classdump-dyld 1.5\n * on Tuesday, November 10, 2020 at 10:19:11 PM Mountain Standard Time\n * Operating System: Version 14.2 (Build 18K57)\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>//---------------------------------------------------------------------------//\n// Copyright (c) 2014 Roshan <thisisroshansmail@gmail.com>\n//\n// Distributed under the Boost Software License, Version 1.0\n// See accompanying file LICENSE_1_0.txt or copy a... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>A, B, C, K = map(int, input().split())\nif K < A: print(K)\nelif A + B >= K: print(A)\nelse: print(A - (K - (A + B)))</code>",
"source": "SynthCodeNetNoImageTag",
"user": "Convert code to text."
}
] | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>\t\treturn 'POST'\n\n\tdef getapiname(self):\n\t\treturn 'dingtalk.oapi.live.grouplive.statistics'\n</code>",
"source": "SynthCodeNetNoImageTag",
"user": "<code>"
}
] | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Pascal_>Turbo Pascal Optimization Contest # 51.\r\n\r\nNo tangible prizes, just some bragging rights, and a brain workout.\r\n\r\nAssignment: Write conversion routines similar to VAL and STR that can\r\n handle a radix (base) of any number. F... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>// Copyright (c) 2014-2015 Dropbox, 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.... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>import React from 'react';\nimport { Button } from 'react-bootstrap';\nimport { FormattedMessage } from 'react-intl';\nimport { getCountries, getQualityLevel } from '../../../utils/utility';\nimport AppForm from '../../../components/form/AppForm';\ni... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_>module One9\n class NoReportError < StandardError; end\n module Report\n extend self\n\n def list(*args)\n parse_options(args)\n meths, stacks = setup\n meths = query_methods(meths, args[0])\n print(meths, stacks)\n end... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>-----------------------------------------------------------------------------------\n--Do not modify this file, instead use an alter proc to over-write the procedure.--\n--Make sure you follow the same expected interface of parameters, and resultsets.... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>n,x=map(int,input().split())\nx=list(map(int,input().split()))\nx.sort()\ndef lcm(a,b):\n if b==0:\n return a \n return lcm(b,a%b)\nans=x[1]-x[0]\n\nfor i in range(n-1):\n sa=x[i+1]-x[i]\n ans=lcm(sa,ans)\nprint(ans)\n\n</code>",... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_> var match = regex.Match(titleText);\n\n if (match.Success)\n {\n var format = (BanlistType)Enum.Parse(typeof(BanlistType), match.Groups[1].Value, true);\n var startDate = DateTime.Parse($\"{matc... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>--------------------------------------------------------\n-- DDL for Index PK_EQUIPE\n--------------------------------------------------------\n\n CREATE UNIQUE INDEX \"G11_FLIGHT\".\"PK_EQUIPE\" ON \"G11_FLIGHT\".\"EQUIPE\" (\"TOUR_ANNEE\", \"EQUIP... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># Generated by Django 3.0.8 on 2020-07-25 16:18\n\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n initial = True\n\n dependencies = [\n ]\n\n operations = [\n migrations.CreateModel(\n ... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>\tpublic void setClientPort(int clientPort) {\n\t\tthis.clientPort = clientPort;\n\t}\n\n\tpublic long getNodeId() {\n\t\treturn nodeId;\n\t}\n\n\tpublic void setNodeId(long nodeId) {\n\t\tthis.nodeId = nodeId;\n\t}\n\n}\n</code>",
"source": "SynthCode... | |
[
{
"assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>package org.firstinspires.ftc.teamcode;\n\nimport com.qualcomm.robotcore.eventloop.opmode.Autonomous;\nimport com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;\nimport com.qualcomm.robotcore.hardware.DcMotor;\nimport com.qualcomm.robotcore.hardware.Ser... | |
[
{
"assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>\tconst int FUNC_V_1 = 4;\n\tconst int FUNC_V_3 = 5;\n\n#pragma endregion\n\n}\n\nclass myGame::Actor : public Node {\n\tCC_SYNTHESIZE(int, type, Type);\n\tCC_SYNTHESIZE(int, func, Func);\n\n\tCC_SYNTHESIZE(pii, pos, Pos);\n\n\tCC_SYNTHESIZE_RETAIN(Spri... |