images
images listlengths
1
1
texts
listlengths
1
1
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_CSS_>/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_YAML_>### YamlMime:PythonClass\nuid: azure.search.documents.indexes.models.MicrosoftLanguageStemmingTokenizer\nname: MicrosoftLanguageStemmingTokenizer\nfullName: azure.search.documents.indexes.models.MicrosoftLanguageStemmingTokenizer\nmodule: azure.search.docu...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>#ABC090-C\ndef IL(): return list(map(int,input().split()))\ndef SL(): return input().split()\ndef I(): return int(input())\ndef S(): return list(input())\nn,m=IL()\nif n==1 and m==1:\n print(1)\nelif n==1 or m==1:\n print(max(0,n-2,m-2))\nels...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>import numpy as np\nimport cv2\nimport math\n\n\ndef norm_image(img):\n \"\"\" normalize image input \"\"\"\n img = img.astype(np.float32)\n var = np.var(img, axis=(0, 1), keepdims=True)\n mean = np.mean(img, axis=(0, 1), keepdims=True)\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>n = int(input())\na = b = c = d = e = 0\nfor _ in range(n):\n s = input()\n if s[0] == 'M':\n a += 1\n elif s[0] == 'A':\n b += 1\n elif s[0] == 'R':\n c += 1\n elif s[0] == 'C':\n d += 1\n elif s[0] == 'H':\...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Cuda_>}\n\nCUDA_HOST_DEVICE Vector3 Random::PointOnUnitSphere()\n{\n double u1 = Double();\n double u2 = Double();\n double lambda = acos(2.0 * u1 - 1) - PI / 2.0;\n double phi = 2.0 * PI * u2;</code>", "source": "SynthCodeNetNoImageTag", "us...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Cuda_>// Copyright (c) 2019 PaddlePaddle Authors. 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 License a...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>\n @mock.patch.object(imagecache.images, 'fetch')\n def test_cache_rescue_image_bigger_than_flavor(self, mock_fetch):\n fake_rescue_image_id = 'fake_rescue_image_id'\n\n self.imagecache._vhdutils.get_vhd_info.return_value = {\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_> path: /logout\nadmin_home:\n path: /admin/home\n defaults: { _controller: UserBundle:Default:adminhome }\nuser_home:\n path: /user/home\n defaults: { _controller: UserBundle:Default:userhome }</code>", "source": "Synth...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#include <iostream>\n#include <vector>\n#include <cstdio>\nusing namespace std;\nvector <int> ami[100][100];\nint hi[1000];\nint n,m,a,mh;\n\n\nint kuji(int x,int h) {\n //cout << \"start kuji()\"<<endl;\n int t;\n int fl = 0;\n int i;\n // cout << \"h...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Rust_>use std::io::*;\nuse std::str::FromStr;\n\npub fn read<T: FromStr>() -> T {\n let stdin = stdin();\n let stdin = stdin.lock();\n let token: String = stdin\n .bytes()\n .map(|c| c.expect(\"failed to read char\") as char)\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_># -*- coding: utf-8 -*-\nfrom pygame import *\ntime.Clock()\nimport socket\nfrom toolbox.EasyGame import entry\nfrom toolbox.Menu import slidemenu\nimport threading\n \nclass Game(list,object):\n \n blanc = image.load('blanc.png')\n noir = im...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>ports:\n - port: 4000\n - port: 35729\ntasks:\n - before: cd ./gitbook\n init: yarn install\n command: yarn book\n openIn: bottom</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>/* {{{ module stuff */\nzend_module_entry readline_module_entry = {\n\tSTANDARD_MODULE_HEADER,\n\t\"readline\",\n\text_functions,\n\tPHP_MINIT(readline),\n\tPHP_MSHUTDOWN(readline),\n\tNULL,\n\tPHP_RSHUTDOWN(readline),\n\tPHP_MINFO(readline),\n\tPHP_READLINE_...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>CREATE TABLE categories\n(\n id int IDENTITY\n CONSTRAINT categories_pk PRIMARY KEY NONCLUSTERED,\n name varchar(100) NOT NULL\n)\n\ncreate table products\n(\n id int IDENTITY\n CONSTRAINT products_pk PRIMARY KEY NONCLUSTERED,\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>\t})\n);\n</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>CREATE TABLE produkte\n (p_id INTEGER NOT NULL, \n name VARCHAR(50), lagernr INTEGER, anzahl INTEGER,\n PRIMARY KEY (p_id));\n\n-- oder als Spaltenconstraint\n\n-- CREATE TABLE produkte\n-- (p_id PRIMARY KEY, \n-- name VARCHAR(50), lagernr INTEGER, ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>/* Copyright (C) 1991,95,96,97,2002 Free Software Foundation, Inc.\n This file is part of the GNU C Library.\n\n The GNU C Library is free software; you can redistribute it and/or\n modify it under the terms of the GNU Lesser General Public\n Li...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Dockerfile_>#\n# NOTE: THIS DOCKERFILE IS GENERATED VIA \"apply-templates.sh\"\n#\n# PLEASE DO NOT EDIT IT DIRECTLY.\n#\n\nFROM eclipse-temurin:11-jre-focal\n\nENV CATALINA_HOME /usr/local/tomcat\nENV PATH $CATALINA_HOME/bin:$PATH\nRUN mkdir -p \"$CATALINA...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>package dev.johnoreilly.fantasypremierleague.presentation.fixtures\n\nimport androidx.compose.foundation.Image\nimport androidx.compose.foundation.clickable\nimport androidx.compose.foundation.layout.*\nimport androidx.compose.foundation.shape.Roun...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>/*\n * Copyright 2021 ThoughtWorks, 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...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[135],{\"F/+k\":function(e,c,t){\"use strict\";t.r(c);var a=t(\"q1tI\"),n={icon:{tag:\"svg\",attrs:{viewBox:\"64 64 896 896\",focusable:\"false\"},children:[{tag:\"path\",attrs:{d:\"M697.8...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>-- This SQL code was generated by sklearn2sql (development version).\n-- Copyright 2018\n\n-- Model : KerasClassifier_LSTM\n-- Dataset : BinaryClass_10\n-- Database : sqlite\n\n\n-- This SQL code can contain one or more statements, to be executed in the ord...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Rust_>// Copyright 2018 PingCAP, 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/lic...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>require 'enkrip/model'\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_>@charset \"UTF-8\";\r\n\r\n@font-face {\r\n font-family: \"untitled-font-1\";\r\n src:url(\"https://file.myfontastic.com/gC6yNbQq8CqvXgSqXQZAoH/fonts/1459824891.eot\");\r\n src:url(\"https://file.myfontastic.com/gC6yNbQq8CqvXgSqXQZAoH/fonts/1459824...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>// Copyright (c) 2011-2016 The Readercoin Core developers\n// Distributed under the MIT software license, see the accompanying\n// file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\n#ifndef READERCOIN_QT_WALLETFRAME_H\n#define READERCOIN_Q...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using Microsoft.AspNetCore.Builder;\nusing Microsoft.AspNetCore.Hosting;\nusing Microsoft.AspNetCore.Http;\nusing Microsoft.EntityFrameworkCore;\nusing Microsoft.Extensions.Configuration;\nusing Microsoft.Extensions.DependencyInjection;\nusing Microsoft.AspN...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_> bgp_server_->database()->FindTable(\"bgp.l3vpn.0\"));\n ASSERT_TRUE(inetvpn_table != NULL);\n inetvpn_table->Enqueue(&request);\n }\n\n void DeleteInetVpnRoute(IPeer *peer, const string &instance_name,\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_HTML_>{% include base_path %}\n\n<div class=\"masthead\">\n <div class=\"masthead__inner-wrap\">\n <div class=\"masthead__menu\">\n <nav id=\"site-nav\" class=\"greedy-nav\">\n <button><div class=\"navicon\"></div></button>\n <ul class=\"v...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>ALTER TABLE `cocktail_dev`.`coctail_user` DROP COLUMN `lastGps`;\nALTER TABLE `cocktail_dev`.`coctail_user` DROP COLUMN `numSessions`;\nALTER TABLE `cocktail_dev`.`coctail_user` DROP COLUMN `userAge`;\nALTER TABLE `cocktail_dev`.`coctail_user` DROP COLUMN `...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Ruby_>class User < ApplicationRecord\n\n VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i\n\n attr_accessor :remember_token, :activation_token, :reset_token\n\n has_many :microposts, dependent: :destroy\n has_many :activ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>\n\t/* Remove other source */\n\tif (fd == context->p1[0]) {\n\t\twl_event_source_remove(context->source2);\n\t\tcontext->source2 = NULL;\n\t} else if (fd == context->p2[0]) {\n\t\twl_event_source_remove(context->source1);\n\t\tcontext->source1 = NULL;\...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>\t\tparticles.add(particle);\n\t}\n\n\tprivate void updateVBO(Matrix4 view, Matrix4 projection) {\n\t\tbuffer.clear();\n\n\t\tfor (Particle p : particles) {\n\t\t\tbuffer.put(p.color.r).put(p.color.g).put(p.color.b).put(p.color.a);\n\t\t\tprojection.mul(p....
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_># Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>#include <stdio.h>\n\nint main()\n{\n int a=0,b=0,d=0,r=0;\n float f=0;\n \n scanf(\"%d %d\\n\",&a,&b);\n \n d=a/b;\n r=a%b;\n f=1.0*a/b;\n \n printf(\"%d %d %f\\n\",d,r,f);\n \n return 0;\n}\n</code>", "source": ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>'use strict';\n\n/**\n * Module dependencies.\n */\nvar mongoose = require('mongoose'),\n crypto = require('crypto'),\n\t Schema = mongoose.Schema;\n\n/**\n * AccessToken Schema\n */\nvar AccessTokenSchema = new Schema({\n user: {\n type: Sch...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_> * If you did not receive a copy of the license and are unable to\n * obtain it through the world-wide-web, please send an email\n * to license@zend.com so we can send you a copy immediately.\n *\n * @category Zend\n * @package Zend_Dojo\n * @cop...