images
images listlengths
1
1
texts
listlengths
1
1
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>#ifndef DISPLAY_MAX_DECAY_H\n#define DISPLAY_MAX_DECAY_H\n\n#include \"DisplayBase.h\"\n#include \"DecayClasses.h\"\n#include \"ArraySharedPtr.h\"\n#include \"Compression.h\"\n\n#include <limits>\n\nclass DisplayLimitDecay : public DisplayBase\n{\n public:\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#pragma once\n\n#include \"continuation.hpp\"\n\nnamespace kuro\n{\n\nclass cancellation\n{\npublic:\n void trigger()\n {\n m_set = true;\n m_continuation.resume_all();\n }\n bool is_set() const\n {\n return m_set;\n }...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>\nimport logging\nimport numpy as np\nimport os.path\nimport scipy.linalg\nimport scipy.spatial.distance\nimport sys\nfrom sklearn.decomposition import TruncatedSVD\n\nfrom wmf_embed.core.utils import nearest_neighbors\nfrom wmf_embed.train.neighbor_grap...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from src.data.preprocessing import check_urls, get_contents, get_next_page\nimport pytest\nimport requests\nfrom collections import defaultdict\n\n\n@pytest.fixture\ndef valid_rental_url():\n url = \"https://my.roomz.asia/api?c=Rooms&a=getAsyncD...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>\n@protocol OS_dispatch_semaphore;\n@class NSURLSessionTask, NSHTTPURLResponse, NSMutableData, NSError, NSObject;\n\n@interface TLSTestHarnessResult : NSObject {\n\n\tNSURLSessionTask* _task;\n\tNSHTTPURLResponse* _response;\n\tNSMutableData* _data;\n\t...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.\n\npackage iot\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/aws/aws-sdk-go-v2/aws\"\n\t\"github.com/aws/aws-sdk-go-v2/internal/awsutil\"\n\t\"github.com/aws/aws-sdk-go-v2/private...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_TypeScript_>import {OAuthError} from \"./OAuthError\";\n\nexport class ServerError extends OAuthError {\n constructor(message?){\n super(503,message);\n }\n}</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_TypeScript_>import React from 'react';\n\nimport { Meta, Story } from '@storybook/react/dist/client/preview/types-6-0';\n\nimport { ITextEditorComponentProps } from '../components/TextEditor/model';\nimport { TextEditor } from '../components/TextEditor/TextEdito...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>object Libs {\n const val androidGradlePlugin = \"com.android.tools.build:gradle:4.2.0-alpha07\"\n\n const val gradlePlayPublisher = \"com.github.triplet.gradle:play-publisher:3.0.0-SNAPSHOT\"\n\n const val threeTenBp = \"org.threeten:threetenbp...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Go_>/*\nCopyright 2016 The Kubernetes Authors.\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/lice...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>\"use strict\";\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (type...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_> \"< Back\"\n )\n )\n )\n .build\n}\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_> app 'Brave Browser Dev.app'\n\n zap trash: [\n '~/Library/Application Support/brave',\n '~/Library/Preferences/com.electron.brave.plist',\n '~/Library/Saved Application State/com.electron.brave.savedState',\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_><?php\n\nnamespace Eton\\Model;\n\nuse Core\\Model\\CommonEntity;\nuse Doctrine\\ORM\\Mapping as ORM;\n\n\n/**\n * Class Poll\n * \n * @ORM\\Entity\n * @ORM\\Table(name=\"et_poll\")\n * \n * @author Petr Blazicek 2016\n */\nclass Poll extends CommonEn...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n String n = sc.next();\n System.out.println(ABC\" + n );\n \n }\n}\n</code>"...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>a,b,c,k = map(int,input().split())\n\n'''\nif k%2==0:\n num = (2**k+2)/3\n tak = num*a+(num-1)*b+(num-1)*c\n nak = (num-1)*a+num*b+(num-1)*c\n\nelse:\n num = (2**k+1)/3\n tak = (num-1)*a+num*b+num*c\n nak = num*a+(num-1)*b+num*c\n'''\ni...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_XML_><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE module PUBLIC \"-//NetBeans//DTD Module Status 1.0//EN\"\n \"http://www.netbeans.org/dtds/module-status-1_0.dtd\">\n<module name=\"org.netbeans.modules.testng.maven\">\n <param ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Rust_>const BLOCK_SIZE: usize = 64;\nconst RESULT_SIZE: usize = 32;\nconst STATE_SIZE: usize = 8;\nconst INIT_STATE: [u32; STATE_SIZE] = [0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19];\nconst K256: [u32; 64] = [\...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>each library implements a handler for the same tag and/or a handler\nfor which a built-in handler already exists. How do we decide what\ntakes precedence. Is this even something we have to worry about?\n\nSo, the idea is to find an element, then do...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>interactions:\n- request:\n body: '{\"name\": \"sample-datasource\", \"type\": \"azureblob\", \"credentials\": {\"connectionString\":\n \"connection_string\"},\n \"container\": {\"name\": \"searchcontainer\"}}'\n headers:\n Accep...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>from collections import deque\nimport operator\n\nclass FCFS:\n def __init__(self,ProcesoA,ProcesoB,ProcesoC,ProcesoD,ProcesoE): #Tiempos en donde entran al sistema\n #SE ASIGNAN LOS PROCESOS Y DECLARAN T,P,E TOTAL\n self.A=ProcesoA\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>\r\nnamespace MikhailKhalizev.Max.Program\r\n{\r\n public partial class RawProgram\r\n {\r\n [MethodInfo(\"0x1018_f44b-990d\")]\r\n public void /* sys_mve */ Method_1018_f44b_v2()\r\n {\r\n ii(0x1018_f44b, 2); mov(ah, b...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.util.InputMismatchException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_HTML_><!DOCTYPE html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta name=\"description\" content=\"\">\n<meta name=\"author\" content=\"\">\n<meta name=\"keywo...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>// flow-typed signature: 8bc24b48d95b0f66a99092872791c7e3\n// flow-typed version: <<STUB>>/supertest_v^3.1.0/flow_v0.76.0\n\n/**\n * This is an autogenerated libdef stub for:\n *\n * 'supertest'\n *\n * Fill this stub out by replacing all the...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>from briefcase.exceptions import BriefcaseCommandError\nfrom briefcase.integrations.xcode import ensure_xcode_is_installed\n\nDEFAULT_OUTPUT_FORMAT = 'xcode'\n\n\nclass iOSMixin:\n platform = 'iOS'\n\n def verify_tools(self):\n if self.host_...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>apiVersion: v1\nkind: Pod\nmetadata:\n name: image-demo-5469\nspec:\n containers:\n - name: nginx\n image: nginx #ritaacr.azurecr.io/nginx:latest</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_PHP_><?php\n\n\nnamespace App\\Http\\Requests\\Employees\\Employee;\n\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass EditEmployeeRequest extends FormRequest\n{\n\n public function authorize()\n {\n// return Gate::allows('admin.');\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># Copyright 2015 Google Inc. 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 at\n#\n# http:...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_> std::vector<ValueType::Dimension> *unsorted = nullptr);\n\nValueType from_spec(const vespalib::string &spec);\nValueType from_spec(const vespalib::string &spec, std::vector<ValueType::Dimension> &unsorted);\nvespalib::string to_spec(const...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>if S<=D/T:\n print('Yes')\nelse:\n print('No')\n </code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># Generated by Django 3.1.13 on 2021-08-22 12:30\n\nfrom django.conf import settings\nimport django.contrib.gis.db.models.fields\nfrom django.db import migrations, models\nimport django.db.models.deletion\n\n\nclass Migration(migrations.Migration):...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>/*\n * Copyright (c) 1999-2000 Image Power, Inc. and the University of\n * British Columbia.\n * Copyright (c) 2001-2002 Michael David Adams.\n * All rights reserved.\n */\n\n/* __START_OF_JASPER_LICENSE__\n * \n * JasPer License Version 2.0\n * \n * Copyri...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.\r\n// See the LICENCE file in the repository root for full licence text.\r\n\r\nusing osu.Framework.Allocation;\r\nusing osu.Framework.Bindables;\r\nusing osu.Framework.Grap...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>*/\n\n#include \"hphp/runtime/debugger/cmd/cmd_signal.h\"\n\n#include \"hphp/runtime/debugger/debugger_client.h\"\n\nnamespace HPHP { namespace Eval {\n///////////////////////////////////////////////////////////////////////////////\n\nTRACE_SET_MOD(debugger...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Nim_>import\n unittest, os,\n stew/shims/net,\n chronos, confutils,\n ../beacon_chain/[conf, eth2_network]\n\ntemplate asyncTest*(name, body: untyped) =\n timedTest name:\n proc scenario {.async.} = body\n waitFor scenario()\n\nasyncTest \"connect two...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#include <iostream>\n#include <cstdio>\n#include <vector>\n#include <algorithm>\n#include <map>\n#include <set>\n#include <vector>\n#include <queue>\n#include <cmath>\n#include <bitset>\n#include <cstdlib>\nusing namespace std;\ntypedef long long LL;\ntyped...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Go_>package main\n\nimport (\n\t\"bufio\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\t\"strconv\"\n)\n\n// const abcd = \"abcdefghijklmnopqrstuvwxyz\"\n// const ABCD = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n\n// var dy = [...]int{1, 1, 0, -1, -1, -1, 0, 1}\n// var dx = [....
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_YAML_>networks:\n hyperledger:\n\nservices:\n explorer:\n image: lihongyong/docker-blockchain-explorer\n container_name: explorer\n restart: always\n volumes:\n - ./explorer-artifacts/pgconfig.json:/blockchain-explorer/app/persistence/po...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_>#include<stdio.h>\nint main(){\n char s[110];\n int k,i=0;\n scanf(\"%s%d\",s,&k);\n while(s[i]=='1'&&i<k-1){\n i++;\n }\n printf(\"%c\\n\",s[i]);\n return 0;\n}\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_HTML_><META name=\"description\" content=\"The Crimson Fairy Book, by Andrew Lang, [1903], full text etext at sacred-texts.com\">\n<META name=\"keywords\" content=\"Colored Fairy Books Crimson Fairy Tales Folklore Folk lore Children Literature\">\n<TITLE>T...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Scala_>package au.id.tmm.probability.distribution.exhaustive\n\nimport au.id.tmm.probability.distribution.ProbabilityDistributionTypeclass\nimport au.id.tmm.probability.distribution.exhaustive.ProbabilityDistribution.ProbabilityDistributionBuilder\nimport au.id....
[ { "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<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<title>Uses of Class or...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>#if defined(LV_LVGL_H_INCLUDE_SIMPLE)\n#include \"lvgl.h\"\n#else\n#include \"lvgl/lvgl.h\"\n#endif\n\n\n#ifndef LV_ATTRIBUTE_MEM_ALIGN\n#define LV_ATTRIBUTE_MEM_ALIGN\n#endif\n\n#ifndef LV_ATTRIBUTE_IMG_TIME2\n#define LV_ATTRIBUTE_IMG_TIME2\n#endif\n\n...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>\t(2, 2, 2, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 2, 2, 2, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0), # 25\n\t(2, 2, 1, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 1, 1, 2, 1, 1, 0, 1, 0, 0, 1, 0), # 26\n\t(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 0, 0, 0, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>#!/usr/bin/env puppet\n\nhome = ENV[\"HOME\"]\n#cwd = File.dirname(__FILE__)\nDir.chdir(\"#{home}/dotfiles\")\nlinkables = Dir.glob('*/**{.symlink}')\n\ncwd = Dir.getwd\n\nnode :default do\n linkables.each do |linkable|\n shorname = linkable.split('/')...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_CSS_>\n.ss-custom-select::after {\n border-bottom: 2px solid #000000;\n border-right: 2px solid #000000;\n content: \"\";\n display: block;\n height: 8px;\n width: 8px;\n margin-top: -7px;\n pointer-events: none;\n position: absolute;\n right: 2.4rem;\...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>s = input().lower()\nn = 0\nwhile True:\n q = []\n q = input().split()\n if q == [\"END_OF_TEXT\"]:\n break\n\n for i in q:\n i = i.lower()\n if s == i:\n n += 1\nprint(n)</code>", "source": "SynthCod...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_># -*- coding: utf-8 -*-\n# Part of Odoo. See LICENSE file for full copyright and licensing details.\n\nfrom . import phone_validation\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nusing System.Linq;\nusing System.Collections.Generic;\nusing System.Diagnostics;\nusing Debug = System.Diagnostics.Trace;\nusing SB = System.Text.StringBuilder;\nusing System.Numerics;\nusing static System.Math;\nnamespace Program {\n\tp...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nclass main\n{\n static void Main(string[] args)\n {\n while (true)\n {\n string s = Console.ReadLine();\n\n if (s != null)\n {\n string[] s1 = s.Split(' ');\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Ruby_>require 'pact_broker/api/resources/base_resource'\nrequire 'pact_broker/db/clean'\nrequire 'pact_broker/matrix/unresolved_selector'\n\nmodule PactBroker\n module Api\n module Resources\n class Clean < BaseResource\n def content_types_accept...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_CSS_> height: 40px;\n background-color: #ffffff;\n border: 1px solid transparent;\n border-color: turquoise;\n cursor:pointer;\n transition: all 0.5s ease;\n}\n#submit:hover{\n background: turquoise;\n box-shadow:5px 20px 20px #9999...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System;\nusing System.Linq;\nusing System.Collections.Generic;\n\nusing E = System.Linq.Enumerable;\n\npublic class Program\n{\n public static void Main()\n {\n var nmst = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_TypeScript_>\nimport { Side } from '../core/models/enum/side';\nimport { Position } from '../core/models/position';\nimport { GeometryService, Sector } from './geometry.service';\n\nfdescribe('GeometryService', () => {\n let service: GeometryService;\n\n const...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_YAML_>title: Meloen\nlogo: /assets/img/logo2.png\ndescription: Sjabloon voor een website met GitHub Pages, thema gebaseerd op Minimal, uitgebreid met tags, paginering en RSS feed.\nshow_downloads: true\ngoogle_analytics:\ntheme: jekyll-theme-minimal\nauthor: Kee...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_> [Key]\n public int Id { get; set; }\n\n [Column(\"name\")]\n [StringLength(100)]\n [Required]\n public string Name { get; set; }\n\n [Column(\"slug\")]\n [StringLength(50)]\n [Required]\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_>//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//\n// Copyright (c) 2017-21, Lawrence Livermore National Security, LLC\n// and RAJA Performance Suite project contributors.\n// See the RAJAPerf/LICENSE file for details.\n/...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_TypeScript_>import { customElement, useView, PLATFORM } from 'aurelia-framework';\nimport { bindable } from 'aurelia-typed-observable-plugin';\n\n/**\n * @selector mdc-fab\n * @selector a[mdc-fab]\n * @selector button[mdc-fab]\n */\n@useView(PLATFORM.moduleName(...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>/** @file\r\n GPIO pins for SKL-PCH-H,\r\n\r\n @copyright\r\n Copyright 2014 - 2021 Intel Corporation. <BR>\r\n\r\n SPDX-License-Identifier: BSD-2-Clause-Patent\r\n**/\r\n\r\n#ifndef _GPIO_PINS_SKL_H_H_\r\n#define _GPIO_PINS_SKL_H_H_\r\n///\r\n/// T...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Bash_>#!/bin/bash\n# SPDX-License-Identifier: GPL-2.0+\n#\n# Run a kvm-based test of the specified tree on the specified configs.\n# Fully automated run and error checking, no graphics console.\n#\n# Execute this in the source tree. Do not run it as a backgroun...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>\"\"\"\nWSGI config for myfirst project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfro...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Java_>/*\n * Copyright (c) 2007, 2018, 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 GN...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_HTML_> local policy forbids the use of the old KDF.\n\n\n\n\n\n<span class=\"grey\">Hornquist Astrand, et al. Standards Track [Page 11]</span></pre>\n<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id=\"page-12\" ></span>\n<s...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Rust_>use actix_web::{\n http::{header, StatusCode},\n HttpRequest, HttpResponse,\n};\nuse futures::{future, Future, FutureExt, Stream, TryStreamExt};\nuse std::{\n io::Write,\n path::{Component, Path, PathBuf},\n pin::Pin,\n};\n\nuse crate::error...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_># -*- coding: utf-8 -*-\n# Generated by Django 1.11.7 on 2018-01-15 01:56\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('userprofil...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_HTML_><html>\n <body>\n <h2>Hello World!</h2>\n <a href=\"./secured\">Access Secured Servlet</a>\n </body>\n</html>\n</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_><?php namespace App\\Http\\Controllers;\n\nuse Illuminate\\Support\\Facades\\DB;\nuse App\\Http\\Controllers\\Controller;\nuse App\\hero;\n\nclass HeroController extends Controller {\n\n public function index($ativo)\n {\n\n\t\t$heros = hero::wh...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from core.domain import story_domain\nfrom core.domain import topic_domain\nfrom core.platform import models\nimport python_utils\n\nmemory_cache_services = models.Registry.import_cache_services()\n\n# NOTE: Namespaces and sub-namespaces cannot con...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Kotlin_>package com.falcon.turingx.lifecycle.util\n\nimport androidx.lifecycle.LiveData\nimport androidx.lifecycle.MutableLiveData\nimport androidx.lifecycle.Observer\nimport java.util.concurrent.CountDownLatch\nimport java.util.concurrent.TimeUnit\n\n/** Tells ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>-- insert data whith create range partition table on a char field and add a partition and then query all partitions and drop table\n\ncreate table range_test(id int not null,\n\t\t\ttest_int int,\n\t\t\ttest_char char(50),\n\t\t\ttest_varchar varchar...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>from time import sleep\nfrom media_analyzer import queue\nfrom media_analyzer import exceptions\nimport pytest\n\n\n@pytest.fixture\ndef channel():\n with queue.connection() as conn:\n channel = conn.channel()\n channel.queue_declare(que...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_SQL_>-- +migrate Up\n-- SQL in section 'Up' is executed when this migration is applied\nALTER TABLE `templates` ADD `updated_at` datetime DEFAULT NULL;\n\n-- +migrate Down\n-- SQL section 'Down' is executed when this migration is rolled back\nALTER TABLE `...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#define GL_SILENCE_DEPRECATION // OpenGL has been deprecated on macOS\n\n#include <GLFW/glfw3.h>\n#include <OpenGL/gl3.h>\n#include <fstream>\n#include <iostream>\n\n// We need to keep the aspect 1 because the calculations in the geometry shader\n// assume ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C#_>using System.Xml.XPath;\n\nnamespace Mvp.Xml.Common.XPath\n{\n\t/// <summary>\n\t/// <see cref=\"XPathNodeIterator\"/> over a single node. Can be used to return a single\n\t/// node out of an XSLT or XPath extension function.\n\t/// </summary>\n\t/// <remark...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C_>//\n// MLVideoWatermarkProducer.h\n// MomoChat\n//\n// Created by YuAo on 11/10/16.\n// Copyright © 2016 wemomo.com. All rights reserved.\n//\n#import \"MLVideoProcessor.h\"\n\n@interface MLVideoWatermarkProducer : NSObject\n\n- (instancetype)init N...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_>// <copyright file=\"CurrentSpanTests.cs\" company=\"OpenTelemetry Authors\">\n// Copyright The OpenTelemetry Authors\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#include <bits/stdc++.h>\nusing namespace std;\n#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)\ntypedef long long ll;\ntypedef pair<ll, ll> P;\nconst ll INF = 1001001001;\n\nll mp[10000005] = {};\nll mp2[10000005] = {};\n\nll beki(ll a, ll b) {\n if (b...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>res = \"\"\nfor i in range(3):\n line = input()\n res += line[i]\n\nprint(res)\n</code>", "source": "SynthCodeNetNoImageTag", "user": "<code>" } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_> }\r\n else if (key == 'u') {\r\n instrumentUp();\r</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_PHP_> <div class=\"card-header card-header-image\" style=\"width: 19.5rem; margin: 10px;\">\n <img class=\"img\" src=\"{{ $galeri->foto }}\" alt=\"Card image cap\">\n <div class=\"card-img-overlay text-right\">\n ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>from datetime import datetime, timedelta\n\nimport jwt\n\nfrom .openapi import ApiClient, Authenticate, Configuration, V3Api\nfrom .versions import host_remove_version\n\n# Get new token REFRESH_TIME_DELTA before it really expires.\nREFRESH_TIME_DE...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C++_> // Size: 0x8\r\n // Offset: 0x20\r\n ::GlobalNamespace::SongPackMasksModel* songPackMasksModel;\r\n // Field size check\r\n static_assert(sizeof(::GlobalNamespace::SongPackMasksModel*) == 0x8);\r\n // private readonly System.Text.St...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Erlang_>\n-ifndef(COSTRANSACTIONS_HRL).\n-define(COSTRANSACTIONS_HRL, true).\n\n\n-record('CosTransactions_otid_t', {formatID, bqual_length, tid}).\n-record('CosTransactions_TransIdentity', {coord, term, otid}).\n-record('CosTransactions_PropagationContext', {ti...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Kotlin_>import java.io.IOException\nimport java.lang.NumberFormatException\nimport java.lang.StringBuilder\nimport java.util.ArrayDeque\nimport kotlin.math.max\nimport kotlin.math.min\n\nobject DMain{\n fun solve(){\n val mmax = 5000000\n\n ...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Go_>// Copyright 2018 The Go Cloud Development Kit Authors\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><_YAML_>OC\\PlatformBundle\\Entity\\Delay:\n type: entity\n table: delay\n indexes:\n datas_id_idx:\n columns:\n - datas_id\n id:\n id:\n type: bigint\n nullable: false\n op...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>N = int(input())\np = [int(input()) for _ in range(N)]\nprint(sum(p)-max(p)//2)</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C++_>#define DPF_MODNAME \"CDirectVoiceDirectXTransport::GetTransportSettings\"\r\nHRESULT CDirectVoiceDirectXTransport::GetTransportSettings( LPDWORD lpdwSessionType, LPDWORD lpdwFlags )\r\n{\r\n\tHRESULT hr = DV_OK;\r\n\t\r\n\tif( !m_initialized )\r\n\t\thr = ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Python_>A, B, C = tuple(map(int, input().split()))\nif A < C < B or B < C < A:\n print(\"Yes\")\nelse:\n print(\"No\")</code>", "source": "SynthCodeNetNoImageTag", "user": "Convert code to text." } ]
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_JavaScript_>// JavaScript Document\n\n$(document).ready(function() {\n $('#interviewForm').bootstrapValidator({\n feedbackIcons: {\n valid: 'fa fa-check-circle',\n invalid: 'fa fa-times-circle',\n validating: 'fa ...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>public class Main\n{\n\n public static void main(String[] args) throws IOException\n {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);\n String s = r.readLine();\n int n = Integer.parseInt(s);\n s = r.readL...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_JavaScript_>(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"babylonjs\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"b...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_Java_>/*\n * ******************************************************************************\n * *\n * *\n * * This program and the accompanying materials are made available under the\n * * terms of the Apache License, Version 2.0 which is available at...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_SQL_>-- update aws tags leaving only enabled keys\nwith cte_enabled_keys as (\n select coalesce(array_agg(key), '{}'::text[])::text[] as keys\n from {{schema | sqlsafe}}.reporting_awsenabledtagkeys\n)\nupdate {{schema | sqlsafe}}.reporting_awscostentryli...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_HTML_><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n</head>\n<body>\n<h6 class=\"heading\"><span class=\"type\">Paragraph</span></h6>\n<p>eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee</p>\n<span...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Python_>def zero_origin(s: str):\n return int(s) - 1\n\n\nclass UnionFindTree:\n \"\"\"Union Find Tree for disjoint-set data structure.\n\n Args:\n n (int): number of the vertices.\n \"\"\"\n def __init__(self, n: int):\n self.parent = list(range(n))\...
[ { "assistant": "<code><loc_0><loc_0><loc_500><loc_500><_C#_> /// <summary>\n /// Gets or sets unique identifier of the user who created the record.\n /// </summary>\n [JsonProperty(PropertyName = \"_createdby_value\")]\n public string _createdbyValue { get; set; }\n\n /...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_C_> * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the...
[ { "assistant": "<loc_0><loc_0><loc_500><loc_500><_Nim_>import strutils\nlet code_0 = 0\nlet code_1 = 1\nlet l_a = @[code_0, code_1]\nlet code_a = \"a\"\nlet code_b = \"b\"\nlet l_b = @[code_a, code_b]\nproc main() =\n for i in l_a:\n echo i\n for j in l_b:\n echo j\n if \"a\" in @[\"a\", \"b\"]:\n e...