prompt
listlengths
1
1
compression_prompt
listlengths
1
1
target
stringlengths
1.03k
828k
[ { "content": "Here is some code:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"This module provides features to create and evaluate garbled circuits\"\"\"\n\n__all__ = [\"AbstractCreatorGarbledCircuit\", \"AbstractEvaluatorGarbledCircuit\"]\n\n### CreatorGarbledCircuit\nclass AbstractCreatorGarbledCircuit(object...
[ { "content": "Here is some code:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\n\"\"\"This module provides features to create and evaluate garbled circuits\"\"\"\n\n__all__ = [\"AbstractCreatorGarbledCircuit\", \"AbstractEvaluatorGarbledCircuit\"]\n\n### CreatorGarbledCircuit\nclass AbstractCreatorGarbl...
```python # -*- coding: utf-8 -*- """This module provides features to create and evaluate garbled circuits""" __all__ = ["AbstractCreatorGarbledCircuit", "AbstractEvaluatorGarbledCircuit"] ### CreatorGarbledCircuit class AbstractCreatorGarbledCircuit(object): """ Creator Garbled Circuit Abstract Class DO...
[ { "content": "Write out the code verbatim, preserving indentation and whitespace:\n```python\n# -*- coding: utf-8 -*-\n\n# Mathmaker Lib offers lualatex-printable mathematical objects.\n# Copyright 2006-2017 Nicolas Hainaux <nh.techn@gmail.com>\n\n# This file is part of Mathmaker Lib.\n\n# Mathmaker Lib is free...
[ { "content": "Write out the code verbatim, preserving indentation and whitespace:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\n# Mathmaker Lib offers lualatex-printable mathematical objects.\n# Copyright 2006-2017 Nicolas Hainaux <nh.techn@gmail.com>\n\n# This file is part of Mathmaker Lib.\n\n# Mathm...
```python # -*- coding: utf-8 -*- # Mathmaker Lib offers lualatex-printable mathematical objects. # Copyright 2006-2017 Nicolas Hainaux <nh.techn@gmail.com> # This file is part of Mathmaker Lib. # Mathmaker Lib is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public Lic...
[ { "content": "Here is the code content:\n```python\n#!/usr/bin/env python\n# Copyright (c) 2012 Cloudera, Inc. All rights reserved.\n#\n# This test suite validates query results in recordservice are always updated.\n\nfrom subprocess import call\nfrom tests.common.impala_test_suite import *\n\nTEST_DB1 = 'tmpDb...
[ { "content": "Here is the code content:\n<|memory_start|>```python\n#!/usr/bin/env python\n# Copyright (c) 2012 Cloudera, Inc. All rights reserved.\n#\n# This test suite validates query results in recordservice are always updated.\n\nfrom subprocess import call\nfrom tests.common.impala_test_suite import *\n\nT...
```python #!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # # This test suite validates query results in recordservice are always updated. from subprocess import call from tests.common.impala_test_suite import * TEST_DB1 = 'tmpDb1' TEST_DB2 = 'tmpDb2' TEST_TBL1 = 'tmpTbl1' TEST_TBL2 = '...
[ { "content": "```python\n#!/usr/bin/python\n# This file is part of Ansible\n#\n# Ansible 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 of the License, or\n# (at your option) any la...
[ { "content": "<|memory_start|>```python\n#!/usr/bin/python\n# This file is part of Ansible\n#\n# Ansible 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 of the License, or\n# (at you...
```python #!/usr/bin/python # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is d...
[ { "content": "```python\n###############################################################################\n##\n## Copyright (C) 2014 Greg Fausak\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 ...
[ { "content": "<|memory_start|>```python\n###############################################################################\n##\n## Copyright (C) 2014 Greg Fausak\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## Y...
```python ############################################################################### ## ## Copyright (C) 2014 Greg Fausak ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at ## ## ...
[ { "content": "Here is some code:\n```python\n\"\"\"\nModule containing class used for loading config files.\n\nCopyright 2012 Red Hat, Inc.\nLicensed under the GNU General Public License, version 2 as\npublished by the Free Software Foundation; see COPYING for details.\n\"\"\"\n\n__author__ = \"\"\"\nolichtne@r...
[ { "content": "Here is some code:\n<|memory_start|>```python\n\"\"\"\nModule containing class used for loading config files.\n\nCopyright 2012 Red Hat, Inc.\nLicensed under the GNU General Public License, version 2 as\npublished by the Free Software Foundation; see COPYING for details.\n\"\"\"\n\n__author__ = \"...
```python """ Module containing class used for loading config files. Copyright 2012 Red Hat, Inc. Licensed under the GNU General Public License, version 2 as published by the Free Software Foundation; see COPYING for details. """ __author__ = """ olichtne@redhat.com (Ondrej Lichtner) """ import os import sys import ...
[ { "content": "Return the code exactly, with no changes:\n```python\n#!/usr/bin/env python\n#\n# Copyright 2009 Facebook\n#\n# 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# ...
[ { "content": "Return the code exactly, with no changes:\n<|memory_start|>```python\n#!/usr/bin/env python\n#\n# Copyright 2009 Facebook\n#\n# 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 Lice...
```python #!/usr/bin/env python # # Copyright 2009 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ { "content": "Here is a code file:\n```python\nfrom flask import Blueprint\nfrom models import db, GithubRepo, GithubRepoEvent\nimport json\n\ngh_renderer = Blueprint('github', __name__)\n\n@gh_renderer.route('/github/<int:repo_id>')\ndef get_gh_entry(repo_id):\n entry = db.session.query(GithubRepoEvent)\\\n...
[ { "content": "Here is a code file:\n<|memory_start|>```python\nfrom flask import Blueprint\nfrom models import db, GithubRepo, GithubRepoEvent\nimport json\n\ngh_renderer = Blueprint('github', __name__)\n\n@gh_renderer.route('/github/<int:repo_id>')\ndef get_gh_entry(repo_id):\n entry = db.session.query(Gith...
```python from flask import Blueprint from models import db, GithubRepo, GithubRepoEvent import json gh_renderer = Blueprint('github', __name__) @gh_renderer.route('/github/<int:repo_id>') def get_gh_entry(repo_id): entry = db.session.query(GithubRepoEvent)\ .filter_by(repo_id = repo_id)\ ...
[ { "content": "Here is the snippet:\n```python\nfrom binascii import hexlify, unhexlify\nfrom hashlib import sha512\nfrom random import sample\nfrom re import findall\nfrom six import b\nimport unittest\n\nfrom .makwa import Makwa, hashpw, checkpw\n\nn = int(\n 'C22C40BBD056BB213AAD7C830519101AB926AE18E3E9FC9...
[ { "content": "Here is the snippet:\n<|memory_start|>```python\nfrom binascii import hexlify, unhexlify\nfrom hashlib import sha512\nfrom random import sample\nfrom re import findall\nfrom six import b\nimport unittest\n\nfrom .makwa import Makwa, hashpw, checkpw\n\nn = int(\n 'C22C40BBD056BB213AAD7C830519101...
```python from binascii import hexlify, unhexlify from hashlib import sha512 from random import sample from re import findall from six import b import unittest from .makwa import Makwa, hashpw, checkpw n = int( 'C22C40BBD056BB213AAD7C830519101AB926AE18E3E9FC9699C806E0AE5C2594' '14A01AC1D52E873EC08046A68E344C8...
[ { "content": "Produce an exact reconstruction of the code:\n```python\n# -*- coding: utf-8 -*-\nimport datetime\nfrom south.db import db\nfrom south.v2 import SchemaMigration\nfrom django.db import models\n\n\nclass Migration(SchemaMigration):\n\n def forwards(self, orm):\n # Deleting field 'GroupMigr...
[ { "content": "Produce an exact reconstruction of the code:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\nimport datetime\nfrom south.db import db\nfrom south.v2 import SchemaMigration\nfrom django.db import models\n\n\nclass Migration(SchemaMigration):\n\n def forwards(self, orm):\n # Deleting ...
```python # -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'GroupMigration.members_deactivated_entered' db.delete_column('vkontakte_groups_g...
[ { "content": "```python\nfrom sqlite3 import IntegrityError\n\nfrom controller.util import get_image_from_blob\nfrom database_manager.friend_manager import MinimumFriendParameterException\nfrom database_manager.util import ChumMeDBManager\nfrom .friend_form import FriendForm\n\nclass UpdateFriendForm(FriendForm...
[ { "content": "<|memory_start|>```python\nfrom sqlite3 import IntegrityError\n\nfrom controller.util import get_image_from_blob\nfrom database_manager.friend_manager import MinimumFriendParameterException\nfrom database_manager.util import ChumMeDBManager\nfrom .friend_form import FriendForm\n\nclass UpdateFrien...
```python from sqlite3 import IntegrityError from controller.util import get_image_from_blob from database_manager.friend_manager import MinimumFriendParameterException from database_manager.util import ChumMeDBManager from .friend_form import FriendForm class UpdateFriendForm(FriendForm): def __init__(self, frie...
[ { "content": "Repeat the code precisely as written (spacing intact):\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom lib.meos import MEoS\nfrom lib import unidades\n\n\nclass nC5(MEoS):\n \"\"\"Multiparameter equation of state for n-pentane\"\"\"\n name = \"pentane\"\n CASNumber = \"109-...
[ { "content": "Repeat the code precisely as written (spacing intact):\n<|memory_start|>```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom lib.meos import MEoS\nfrom lib import unidades\n\n\nclass nC5(MEoS):\n \"\"\"Multiparameter equation of state for n-pentane\"\"\"\n name = \"pentane\"\n CA...
```python #!/usr/bin/python # -*- coding: utf-8 -*- from lib.meos import MEoS from lib import unidades class nC5(MEoS): """Multiparameter equation of state for n-pentane""" name = "pentane" CASNumber = "109-66-0" formula = "CH3-(CH2)3-CH3" synonym = "R-601" rhoc = unidades.Density(232.) T...
[ { "content": "Here is some code:\n```python\nimport pandas as pd\nimport pandas.util.testing as tm\nimport pytest\nfrom pytest import param\n\nimport ibis\nimport ibis.common.exceptions as com\n\npytestmark = pytest.mark.pandas\n\n\njoin_type = pytest.mark.parametrize(\n 'how',\n [\n 'inner',\n ...
[ { "content": "Here is some code:\n<|memory_start|>```python\nimport pandas as pd\nimport pandas.util.testing as tm\nimport pytest\nfrom pytest import param\n\nimport ibis\nimport ibis.common.exceptions as com\n\npytestmark = pytest.mark.pandas\n\n\njoin_type = pytest.mark.parametrize(\n 'how',\n [\n ...
```python import pandas as pd import pandas.util.testing as tm import pytest from pytest import param import ibis import ibis.common.exceptions as com pytestmark = pytest.mark.pandas join_type = pytest.mark.parametrize( 'how', [ 'inner', 'left', 'right', 'outer', para...
[ { "content": "Here is a code snippet:\n```python\n# \n# The BSD License\n# \n# Copyright (c) 2008, Florian Noeding\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# Redistributio...
[ { "content": "Here is a code snippet:\n<|memory_start|>```python\n# \n# The BSD License\n# \n# Copyright (c) 2008, Florian Noeding\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# \...
```python # # The BSD License # # Copyright (c) 2008, Florian Noeding # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice,...
[ { "content": "Here is some code:\n```python\n# Copyright 2020 Google LLC\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/licenses/LICENSE-2.0\n#...
[ { "content": "Here is some code:\n<|memory_start|>```python\n# Copyright 2020 Google LLC\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/license...
```python # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
[ { "content": "```python\nfrom pprint import pprint\nfrom django.shortcuts import render\nfrom django.http import HttpResponse\nfrom django.conf import settings\nfrom stock.models import Hero, mastery, Rune\nimport json, requests, grequests\n\n# Create your procedures here.\n\n\n\n\ndef searchSummonerStats(summo...
[ { "content": "<|memory_start|>```python\nfrom pprint import pprint\nfrom django.shortcuts import render\nfrom django.http import HttpResponse\nfrom django.conf import settings\nfrom stock.models import Hero, mastery, Rune\nimport json, requests, grequests\n\n# Create your procedures here.\n\n\n\n\ndef searchSum...
```python from pprint import pprint from django.shortcuts import render from django.http import HttpResponse from django.conf import settings from stock.models import Hero, mastery, Rune import json, requests, grequests # Create your procedures here. def searchSummonerStats(summoner_id): context = {} if t...
[ { "content": "Provide a verbatim copy of the code:\n```python\n\"\"\"\nDjango settings for mmsn project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.6/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.6/ref/settings/\n...
[ { "content": "Provide a verbatim copy of the code:\n<|memory_start|>```python\n\"\"\"\nDjango settings for mmsn project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.6/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.6...
```python """ Django settings for mmsn project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import socket import dj_database_url from django.utils.crypto import...
[ { "content": "Here is some code:\n```python\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\n\"\"\"\"\nthese are the rules that transform a raw crash into a...
[ { "content": "Here is some code:\n<|memory_start|>```python\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\n\"\"\"\"\nthese are the rules that transform a ...
```python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """" these are the rules that transform a raw crash into a processed crash """ from socorro.lib.ver_tools imp...
[ { "content": "Write the code verbatim:\n```python\nfrom corehq.apps.reports.dont_use.fields import ReportSelectField\nfrom corehq.apps.reports.filters.users import SelectCaseOwnerFilter\nfrom django.utils.translation import ugettext_noop\nfrom django.utils.translation import ugettext as _\nfrom corehq.apps.es i...
[ { "content": "Write the code verbatim:\n<|memory_start|>```python\nfrom corehq.apps.reports.dont_use.fields import ReportSelectField\nfrom corehq.apps.reports.filters.users import SelectCaseOwnerFilter\nfrom django.utils.translation import ugettext_noop\nfrom django.utils.translation import ugettext as _\nfrom ...
```python from corehq.apps.reports.dont_use.fields import ReportSelectField from corehq.apps.reports.filters.users import SelectCaseOwnerFilter from django.utils.translation import ugettext_noop from django.utils.translation import ugettext as _ from corehq.apps.es import CaseES def _get_blocks(domain): query = (...
[ { "content": "```python\nimport copy\n\nfrom nose import with_setup\n\nfrom pybbn.graph.variable import Variable\n\n\ndef setup():\n \"\"\"\n Setup.\n :return: None.\n \"\"\"\n pass\n\n\ndef teardown():\n \"\"\"\n Teardown.\n :return: None.\n \"\"\"\n pass\n\n\n@with_setup(setup, t...
[ { "content": "<|memory_start|>```python\nimport copy\n\nfrom nose import with_setup\n\nfrom pybbn.graph.variable import Variable\n\n\ndef setup():\n \"\"\"\n Setup.\n :return: None.\n \"\"\"\n pass\n\n\ndef teardown():\n \"\"\"\n Teardown.\n :return: None.\n \"\"\"\n pass\n\n\n@wit...
```python import copy from nose import with_setup from pybbn.graph.variable import Variable def setup(): """ Setup. :return: None. """ pass def teardown(): """ Teardown. :return: None. """ pass @with_setup(setup, teardown) def test_copy(): """ Tests variable copy....
[ { "content": "Repeat the full code snippet:\n```python\nimport json\nimport sys\nfrom tornado import gen\n\nfrom tornado.httpclient import AsyncHTTPClient, HTTPError\n\nfrom tornado.log import app_log\n\nfrom vizydrop.sdk.source import DataSource, SourceSchema, SourceFilter\nfrom vizydrop.fields import *\n\nRES...
[ { "content": "Repeat the full code snippet:\n<|memory_start|>```python\nimport json\nimport sys\nfrom tornado import gen\n\nfrom tornado.httpclient import AsyncHTTPClient, HTTPError\n\nfrom tornado.log import app_log\n\nfrom vizydrop.sdk.source import DataSource, SourceSchema, SourceFilter\nfrom vizydrop.fields...
```python import json import sys from tornado import gen from tornado.httpclient import AsyncHTTPClient, HTTPError from tornado.log import app_log from vizydrop.sdk.source import DataSource, SourceSchema, SourceFilter from vizydrop.fields import * RESPONSE_SIZE_LIMIT = 10 # MB class TrelloCardSourceFilters(Sourc...
[ { "content": "```python\n# Copyright 2014-2016 Ivan Kravets <me@ikravets.com>\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/licenses/LICENSE-2.0...
[ { "content": "<|memory_start|>```python\n# Copyright 2014-2016 Ivan Kravets <me@ikravets.com>\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/lice...
```python # Copyright 2014-2016 Ivan Kravets <me@ikravets.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ { "content": "Here is a code snippet:\n```python\n\"\"\"Support for monitoring a Smappee energy sensor.\"\"\"\nfrom datetime import timedelta\nimport logging\n\nfrom homeassistant.const import ENERGY_KILO_WATT_HOUR, POWER_WATT\nfrom homeassistant.helpers.entity import Entity\n\nfrom . import DATA_SMAPPEE\n\n_LO...
[ { "content": "Here is a code snippet:\n<|memory_start|>```python\n\"\"\"Support for monitoring a Smappee energy sensor.\"\"\"\nfrom datetime import timedelta\nimport logging\n\nfrom homeassistant.const import ENERGY_KILO_WATT_HOUR, POWER_WATT\nfrom homeassistant.helpers.entity import Entity\n\nfrom . import DAT...
```python """Support for monitoring a Smappee energy sensor.""" from datetime import timedelta import logging from homeassistant.const import ENERGY_KILO_WATT_HOUR, POWER_WATT from homeassistant.helpers.entity import Entity from . import DATA_SMAPPEE _LOGGER = logging.getLogger(__name__) SENSOR_PREFIX = "Smappee" S...
[ { "content": "Replicate the source code:\n```python\n\"\"\" Learned classification model \"\"\"\nimport tensorflow as tf\nfrom PeriodicClassification import ModelConfig as myConfig\nfrom PeriodicClassification import Preprocess as pre\n\n\ndef _model(X, keep_prob):\n # input\n W1 = tf.Variable(tf.random_n...
[ { "content": "Replicate the source code:\n<|memory_start|>```python\n\"\"\" Learned classification model \"\"\"\nimport tensorflow as tf\nfrom PeriodicClassification import ModelConfig as myConfig\nfrom PeriodicClassification import Preprocess as pre\n\n\ndef _model(X, keep_prob):\n # input\n W1 = tf.Vari...
```python """ Learned classification model """ import tensorflow as tf from PeriodicClassification import ModelConfig as myConfig from PeriodicClassification import Preprocess as pre def _model(X, keep_prob): # input W1 = tf.Variable(tf.random_normal([myConfig.INPUT_SIZE, myConfig.HIDDEN_SIZE]), name="weight1...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n```python\nclass Semigroup:\n \"\"\"\n In mathematics, a semigroup is an algebraic structure\n consisting of a set together with an associative binary operation.\n A semigroup generalizes a monoid in that there might not exist ...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n<|memory_start|>```python\nclass Semigroup:\n \"\"\"\n In mathematics, a semigroup is an algebraic structure\n consisting of a set together with an associative binary operation.\n A semigroup generalizes a monoid in that there ...
```python class Semigroup: """ In mathematics, a semigroup is an algebraic structure consisting of a set together with an associative binary operation. A semigroup generalizes a monoid in that there might not exist an identity element. It also (originally) generalized a group (a monoid with all inve...
[ { "content": "Provide an exact copy of the source code:\n```python\n# ------------------------------------------------------------------------------\n# Screenshot All Channels\n# ------------------------------------------------------------------------------\n# Will do Screenshots of all Channels and export them...
[ { "content": "Provide an exact copy of the source code:\n<|memory_start|>```python\n# ------------------------------------------------------------------------------\n# Screenshot All Channels\n# ------------------------------------------------------------------------------\n# Will do Screenshots of all Channels...
```python # ------------------------------------------------------------------------------ # Screenshot All Channels # ------------------------------------------------------------------------------ # Will do Screenshots of all Channels and export them based on the path provided # in Screenshot Settings # --------------...
[ { "content": "Replicate the source code:\n```python\nfrom sympy import (\n symbols, expand, expand_func, nan, oo, Float, conjugate, diff,\n re, im, Abs, O, factorial, exp_polar, polar_lift, gruntz, limit,\n Symbol, I, integrate, S,\n sqrt, sin, cos, sinh, cosh, exp, log, pi, EulerGamma,\n erf, er...
[ { "content": "Replicate the source code:\n<|memory_start|>```python\nfrom sympy import (\n symbols, expand, expand_func, nan, oo, Float, conjugate, diff,\n re, im, Abs, O, factorial, exp_polar, polar_lift, gruntz, limit,\n Symbol, I, integrate, S,\n sqrt, sin, cos, sinh, cosh, exp, log, pi, EulerGam...
```python from sympy import ( symbols, expand, expand_func, nan, oo, Float, conjugate, diff, re, im, Abs, O, factorial, exp_polar, polar_lift, gruntz, limit, Symbol, I, integrate, S, sqrt, sin, cos, sinh, cosh, exp, log, pi, EulerGamma, erf, erfc, erfi, erf2, erfinv, erfcinv, erf2inv, gamma, upp...
[ { "content": "Output the full code verbatim (no extra comments):\n```python\n# This file is part of geometriki.\n#\n# geometriki is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version ...
[ { "content": "Output the full code verbatim (no extra comments):\n<|memory_start|>```python\n# This file is part of geometriki.\n#\n# geometriki is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation,...
```python # This file is part of geometriki. # # geometriki is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of # the License, or (at your option) any later version. # # geometriki is di...
[ { "content": "```python\ninput_name = 'input/piezo.py'\noutput_name = 'test_piezo.vtk'\n\n\nfrom testsBasic import TestInput\n\nclass Test( TestInput ):\n\n def from_conf( conf, options ):\n return TestInput.from_conf( conf, options, cls = Test )\n from_conf = staticmethod( from_conf )\n\n def t...
[ { "content": "<|memory_start|>```python\ninput_name = 'input/piezo.py'\noutput_name = 'test_piezo.vtk'\n\n\nfrom testsBasic import TestInput\n\nclass Test( TestInput ):\n\n def from_conf( conf, options ):\n return TestInput.from_conf( conf, options, cls = Test )\n from_conf = staticmethod( from_con...
```python input_name = 'input/piezo.py' output_name = 'test_piezo.vtk' from testsBasic import TestInput class Test( TestInput ): def from_conf( conf, options ): return TestInput.from_conf( conf, options, cls = Test ) from_conf = staticmethod( from_conf ) def test_ebc( self ): import num...
[ { "content": "Return the code exactly, with no changes:\n```python\nimport socket\nimport sys\n__author__ = 'sekely'\n\nclass SimpleServer(object):\n\n def __init__(self, addr='localhost', port=50000, buf=1024):\n self.buf = buf\n self.server_address = (addr, port)\n print('setting up se...
[ { "content": "Return the code exactly, with no changes:\n<|memory_start|>```python\nimport socket\nimport sys\n__author__ = 'sekely'\n\nclass SimpleServer(object):\n\n def __init__(self, addr='localhost', port=50000, buf=1024):\n self.buf = buf\n self.server_address = (addr, port)\n prin...
```python import socket import sys __author__ = 'sekely' class SimpleServer(object): def __init__(self, addr='localhost', port=50000, buf=1024): self.buf = buf self.server_address = (addr, port) print('setting up server up on %s port %s' % self.server_address) self._bind() def...
[ { "content": "```python\n#implimentation of a shitty ui system I made 2 years ago in lua\n#should be fine\nimport pygame\ntrue = True;\nclass Redam:\n def __init__(self, telrus):\n #create local instance of telrus\n self.telrus = telrus;\n #self.uielements = {};\n self.pygame = te...
[ { "content": "<|memory_start|>```python\n#implimentation of a shitty ui system I made 2 years ago in lua\n#should be fine\nimport pygame\ntrue = True;\nclass Redam:\n def __init__(self, telrus):\n #create local instance of telrus\n self.telrus = telrus;\n #self.uielements = {};\n ...
```python #implimentation of a shitty ui system I made 2 years ago in lua #should be fine import pygame true = True; class Redam: def __init__(self, telrus): #create local instance of telrus self.telrus = telrus; #self.uielements = {}; self.pygame = telrus.pygame; def createObje...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n```python\n# -*- encoding: utf-8 -*-\n# Copyright (C) 2015 Alejandro López Espinosa (kudrom)\n\nclass NotFoundDescriptor(Exception):\n def __init__(self, name):\n self.name = name\n\n def __str__(self):\n return \"Desc...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n<|memory_start|>```python\n# -*- encoding: utf-8 -*-\n# Copyright (C) 2015 Alejandro López Espinosa (kudrom)\n\nclass NotFoundDescriptor(Exception):\n def __init__(self, name):\n self.name = name\n\n def __str__(self):\n ...
```python # -*- encoding: utf-8 -*- # Copyright (C) 2015 Alejandro López Espinosa (kudrom) class NotFoundDescriptor(Exception): def __init__(self, name): self.name = name def __str__(self): return "Descriptor %s couldn't have been found" % self.name class NotListenerFound(Exception): de...
[ { "content": "Provide an exact copy of the source code:\n```python\nimport gym\nimport matplotlib.pyplot as plt\nimport pandas as pd\nimport numpy as np\nimport pickle\nimport tensorflow as tf\nimport tf_util\nimport argparse\nimport tqdm\n\n\ndef main():\n parser = argparse.ArgumentParser()\n parser.add_...
[ { "content": "Provide an exact copy of the source code:\n<|memory_start|>```python\nimport gym\nimport matplotlib.pyplot as plt\nimport pandas as pd\nimport numpy as np\nimport pickle\nimport tensorflow as tf\nimport tf_util\nimport argparse\nimport tqdm\n\n\ndef main():\n parser = argparse.ArgumentParser()\...
```python import gym import matplotlib.pyplot as plt import pandas as pd import numpy as np import pickle import tensorflow as tf import tf_util import argparse import tqdm def main(): parser = argparse.ArgumentParser() parser.add_argument('env', type=str) args = parser.parse_args() inputs, outputs, e...
[ { "content": "Here is some code:\n```python\nimport collections\nimport functools\nimport sys\n\nfrom numba.core import utils\nfrom numba.core.ir import Loc\nfrom numba.core.errors import UnsupportedError\n\n# List of bytecodes creating a new block in the control flow graph\n# (in addition to explicit jump labe...
[ { "content": "Here is some code:\n<|memory_start|>```python\nimport collections\nimport functools\nimport sys\n\nfrom numba.core import utils\nfrom numba.core.ir import Loc\nfrom numba.core.errors import UnsupportedError\n\n# List of bytecodes creating a new block in the control flow graph\n# (in addition to ex...
```python import collections import functools import sys from numba.core import utils from numba.core.ir import Loc from numba.core.errors import UnsupportedError # List of bytecodes creating a new block in the control flow graph # (in addition to explicit jump labels). NEW_BLOCKERS = frozenset(['SETUP_LOOP', 'FOR_IT...
[ { "content": "Here is the code content:\n```python\n# -*- coding: UTF-8 -*-\n#\n# Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend.\n#\n# Authors: David Versmisse <david.versmisse@itaapy.com>\n# Hervé Cauwelier <herve@itaapy.com>\n# Romain Gauthier <romain@itaapy.com>\n#\n# This fil...
[ { "content": "Here is the code content:\n<|memory_start|>```python\n# -*- coding: UTF-8 -*-\n#\n# Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend.\n#\n# Authors: David Versmisse <david.versmisse@itaapy.com>\n# Hervé Cauwelier <herve@itaapy.com>\n# Romain Gauthier <romain@itaapy.com...
```python # -*- coding: UTF-8 -*- # # Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend. # # Authors: David Versmisse <david.versmisse@itaapy.com> # Hervé Cauwelier <herve@itaapy.com> # Romain Gauthier <romain@itaapy.com> # # This file is part of Lpod (see: http://lpod-project.org). # Lpod i...
[ { "content": "Reconstruct the code exactly:\n```python\n# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>\n# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>\n# Created By:\n# Maintained By:\n\nfrom ggrc import db\nfrom sqlalchemy import event\nfrom sqlal...
[ { "content": "Reconstruct the code exactly:\n<|memory_start|>```python\n# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>\n# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>\n# Created By:\n# Maintained By:\n\nfrom ggrc import db\nfrom sqlalchemy import e...
```python # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: # Maintained By: from ggrc import db from sqlalchemy import event from sqlalchemy.sql.expression import text from sqlalchemy.schema impor...
[ { "content": "Write the code verbatim:\n```python\n#!/usr/bin/env python\n\n__author__ = 'Donovan Parks'\n__copyright__ = 'Copyright 2013'\n__credits__ = ['Donovan Parks']\n__license__ = 'GPL3'\n__version__ = '1.0.0'\n__maintainer__ = 'Donovan Parks'\n__email__ = 'donovan.parks@gmail.com'\n__status__ = 'Develop...
[ { "content": "Write the code verbatim:\n<|memory_start|>```python\n#!/usr/bin/env python\n\n__author__ = 'Donovan Parks'\n__copyright__ = 'Copyright 2013'\n__credits__ = ['Donovan Parks']\n__license__ = 'GPL3'\n__version__ = '1.0.0'\n__maintainer__ = 'Donovan Parks'\n__email__ = 'donovan.parks@gmail.com'\n__sta...
```python #!/usr/bin/env python __author__ = 'Donovan Parks' __copyright__ = 'Copyright 2013' __credits__ = ['Donovan Parks'] __license__ = 'GPL3' __version__ = '1.0.0' __maintainer__ = 'Donovan Parks' __email__ = 'donovan.parks@gmail.com' __status__ = 'Development' import argparse def isNumber(s): try: float(s) ...
[ { "content": "Reconstruct the code exactly:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.11.7 on 2017-11-03 03:24\nfrom __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.db import migrations, models\nimport django.db.models.deletion\nimport sigs.managers\n\n\ncl...
[ { "content": "Reconstruct the code exactly:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.11.7 on 2017-11-03 03:24\nfrom __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.db import migrations, models\nimport django.db.models.deletion\nimport sigs....
```python # -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-03 03:24 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import sigs.managers class Migration(migrations.Migration): initial = True de...
[ { "content": "Return the code exactly, with no changes:\n```python\nimport requests\n\nhost = 'localhost'\nconfiguration = 'Debug'\nservice_name = 'DEQEnviro/MapService'\n\ntoken_url = 'http://{}:6080/arcgis/admin/generateToken'.format(host)\nupdate_soe_url = 'http://{}:6080/arcgis/admin/services/types/extensio...
[ { "content": "Return the code exactly, with no changes:\n<|memory_start|>```python\nimport requests\n\nhost = 'localhost'\nconfiguration = 'Debug'\nservice_name = 'DEQEnviro/MapService'\n\ntoken_url = 'http://{}:6080/arcgis/admin/generateToken'.format(host)\nupdate_soe_url = 'http://{}:6080/arcgis/admin/service...
```python import requests host = 'localhost' configuration = 'Debug' service_name = 'DEQEnviro/MapService' token_url = 'http://{}:6080/arcgis/admin/generateToken'.format(host) update_soe_url = 'http://{}:6080/arcgis/admin/services/types/extensions/update'.format( host) upload_url = 'http://{}:6080/arcgis/admin/up...
[ { "content": "Repeat the code exactly:\n```python\nfrom flask import Flask, jsonify\nimport threading\nimport zmq\nimport time\nimport logging\nfrom Queue import Queue\n\n# Clear the Log file if it exists\nwith open(\"server.log\", \"w\"):\n pass\n\nlogging.basicConfig(filename='server.log',level=logging.DEB...
[ { "content": "Repeat the code exactly:\n<|memory_start|>```python\nfrom flask import Flask, jsonify\nimport threading\nimport zmq\nimport time\nimport logging\nfrom Queue import Queue\n\n# Clear the Log file if it exists\nwith open(\"server.log\", \"w\"):\n pass\n\nlogging.basicConfig(filename='server.log',l...
```python from flask import Flask, jsonify import threading import zmq import time import logging from Queue import Queue # Clear the Log file if it exists with open("server.log", "w"): pass logging.basicConfig(filename='server.log',level=logging.DEBUG,\ format='%(levelname)s:%(asctime)s %(message)s', dat...
[ { "content": "Here is a code file:\n```python\n#!/usr/bin/env python3\n\n# This file is part of the Soletta Project\n#\n# Copyright (C) 2015 Intel Corporation. All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following...
[ { "content": "Here is a code file:\n<|memory_start|>```python\n#!/usr/bin/env python3\n\n# This file is part of the Soletta Project\n#\n# Copyright (C) 2015 Intel Corporation. All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided th...
```python #!/usr/bin/env python3 # This file is part of the Soletta Project # # Copyright (C) 2015 Intel Corporation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of so...
[ { "content": "Repeat the full code snippet:\n```python\nfrom django.db import models as model_fields\nfrom django.conf.urls import url, include\nfrom django.contrib.auth import models as django_models\nfrom polymorphic import PolymorphicModel\nfrom cabot.cabotapp import models\nfrom rest_framework import router...
[ { "content": "Repeat the full code snippet:\n<|memory_start|>```python\nfrom django.db import models as model_fields\nfrom django.conf.urls import url, include\nfrom django.contrib.auth import models as django_models\nfrom polymorphic import PolymorphicModel\nfrom cabot.cabotapp import models\nfrom rest_framewo...
```python from django.db import models as model_fields from django.conf.urls import url, include from django.contrib.auth import models as django_models from polymorphic import PolymorphicModel from cabot.cabotapp import models from rest_framework import routers, serializers, viewsets, mixins import logging logger = l...
[ { "content": "Here is some code:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nThis experiment was created using PsychoPy2 Experiment Builder (v1.90.1),\n on Tue May 8 15:02:31 2018\n\nCreated 5/8/18 by DJ.\nUpdated 5/8/18 by DJ - added NetStationEEG code from https://github.com/imnota...
[ { "content": "Here is some code:\n<|memory_start|>```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nThis experiment was created using PsychoPy2 Experiment Builder (v1.90.1),\n on Tue May 8 15:02:31 2018\n\nCreated 5/8/18 by DJ.\nUpdated 5/8/18 by DJ - added NetStationEEG code from https://g...
```python #!/usr/bin/env python # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy2 Experiment Builder (v1.90.1), on Tue May 8 15:02:31 2018 Created 5/8/18 by DJ. Updated 5/8/18 by DJ - added NetStationEEG code from https://github.com/imnotamember/PyNetstation (per Pete's instructions) Updated...
[ { "content": "Output the full code verbatim (no extra comments):\n```python\n\"\"\" Implementes functions ring support.\n\"\"\"\n#\n# Author: Pearu Peterson\n# Created: April, 2008\n#\n\n__all__ = ['FunctionRing']\n\nfrom ..core import classes, objects, init_module\nfrom ..basealgebra import Verbatim, Algebra\n...
[ { "content": "Output the full code verbatim (no extra comments):\n<|memory_start|>```python\n\"\"\" Implementes functions ring support.\n\"\"\"\n#\n# Author: Pearu Peterson\n# Created: April, 2008\n#\n\n__all__ = ['FunctionRing']\n\nfrom ..core import classes, objects, init_module\nfrom ..basealgebra import Ver...
```python """ Implementes functions ring support. """ # # Author: Pearu Peterson # Created: April, 2008 # __all__ = ['FunctionRing'] from ..core import classes, objects, init_module from ..basealgebra import Verbatim, Algebra from ..ring import CommutativeRing init_module.import_heads() class FunctionRing(Commutat...
[ { "content": "```python\n\"\"\"Utilities to create clients\n\nClients are virtual machines provisioned on a ``provisioning_server``. All\nvirtual machine images are stored on the ``image_dir`` path on the provisioning\nserver.\n\nMake sure to configure the ``clients`` section on the configuration file. Also\nma...
[ { "content": "<|memory_start|>```python\n\"\"\"Utilities to create clients\n\nClients are virtual machines provisioned on a ``provisioning_server``. All\nvirtual machine images are stored on the ``image_dir`` path on the provisioning\nserver.\n\nMake sure to configure the ``clients`` section on the configuratio...
```python """Utilities to create clients Clients are virtual machines provisioned on a ``provisioning_server``. All virtual machine images are stored on the ``image_dir`` path on the provisioning server. Make sure to configure the ``clients`` section on the configuration file. Also make sure that the server have in p...
[ { "content": "Here is some code:\n```python\nfrom __future__ import unicode_literals\nfrom future.builtins import str\nfrom future.utils import native\n\nimport os\nfrom shutil import rmtree\nfrom uuid import uuid4\n\nfrom zhiliao.conf import settings\nfrom zhiliao.core.templatetags.mezzanine_tags import thumbn...
[ { "content": "Here is some code:\n<|memory_start|>```python\nfrom __future__ import unicode_literals\nfrom future.builtins import str\nfrom future.utils import native\n\nimport os\nfrom shutil import rmtree\nfrom uuid import uuid4\n\nfrom zhiliao.conf import settings\nfrom zhiliao.core.templatetags.mezzanine_ta...
```python from __future__ import unicode_literals from future.builtins import str from future.utils import native import os from shutil import rmtree from uuid import uuid4 from zhiliao.conf import settings from zhiliao.core.templatetags.mezzanine_tags import thumbnail from zhiliao.galleries.models import Gallery, GA...
[ { "content": "Repeat the code precisely as written (spacing intact):\n```python\n#!/usr/bin/python\n\n# This script is used with an LED and a momentary button, perhaps the same,\n# like https://www.sparkfun.com/products/10440\n# The LED should be wired to GPIO pin 23 and the button to pin 24.\n# The idea is tha...
[ { "content": "Repeat the code precisely as written (spacing intact):\n<|memory_start|>```python\n#!/usr/bin/python\n\n# This script is used with an LED and a momentary button, perhaps the same,\n# like https://www.sparkfun.com/products/10440\n# The LED should be wired to GPIO pin 23 and the button to pin 24.\n#...
```python #!/usr/bin/python # This script is used with an LED and a momentary button, perhaps the same, # like https://www.sparkfun.com/products/10440 # The LED should be wired to GPIO pin 23 and the button to pin 24. # The idea is that it is run at startup (for example, from rc.local) # It turns the LED on to indicat...
[ { "content": "```python\nfrom twitter import Twitter\nimport ConfigParser as configparser\nfrom twitter import OAuth\nfrom time import sleep\nimport mcpi.minecraft as minecraft\n\n\n\ndef auth():\n config = configparser.ConfigParser()\n config.read(\"api.config\")\n auth_details = OAuth(config.get(\"ap...
[ { "content": "<|memory_start|>```python\nfrom twitter import Twitter\nimport ConfigParser as configparser\nfrom twitter import OAuth\nfrom time import sleep\nimport mcpi.minecraft as minecraft\n\n\n\ndef auth():\n config = configparser.ConfigParser()\n config.read(\"api.config\")\n auth_details = OAuth...
```python from twitter import Twitter import ConfigParser as configparser from twitter import OAuth from time import sleep import mcpi.minecraft as minecraft def auth(): config = configparser.ConfigParser() config.read("api.config") auth_details = OAuth(config.get("api","token"), config.get("api"...
[ { "content": "Provide an exact copy of the source code:\n```python\n## @package sparse_lookup\n# Module caffe2.python.layers.sparse_lookup\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nfrom caffe2.pytho...
[ { "content": "Provide an exact copy of the source code:\n<|memory_start|>```python\n## @package sparse_lookup\n# Module caffe2.python.layers.sparse_lookup\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nf...
```python ## @package sparse_lookup # Module caffe2.python.layers.sparse_lookup from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python.helpers.arg_scope import get_current_scope from caffe2.python import sc...
[ { "content": "Here is the code content:\n```python\nfrom django.test.utils import override_settings\nfrom django.test import TestCase\nimport os\nfrom casexml.apps.case.mock import CaseBlock\nfrom casexml.apps.phone.tests.utils import synclog_from_restore_payload\nfrom couchforms.util import post_xform_to_couch...
[ { "content": "Here is the code content:\n<|memory_start|>```python\nfrom django.test.utils import override_settings\nfrom django.test import TestCase\nimport os\nfrom casexml.apps.case.mock import CaseBlock\nfrom casexml.apps.phone.tests.utils import synclog_from_restore_payload\nfrom couchforms.util import pos...
```python from django.test.utils import override_settings from django.test import TestCase import os from casexml.apps.case.mock import CaseBlock from casexml.apps.phone.tests.utils import synclog_from_restore_payload from couchforms.util import post_xform_to_couch from casexml.apps.case.models import CommCareCase from...
[ { "content": "Repeat the full code snippet:\n```python\n\"\"\"\nCode to help with managing a TVTK data set in Pythonic ways.\n\"\"\"\n\n# Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in>\n# Copyright (c) 2008, Enthought, Inc.\n# License: BSD Style.\n\nfrom enthought.traits.api import (HasTraits, Instance, A...
[ { "content": "Repeat the full code snippet:\n<|memory_start|>```python\n\"\"\"\nCode to help with managing a TVTK data set in Pythonic ways.\n\"\"\"\n\n# Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in>\n# Copyright (c) 2008, Enthought, Inc.\n# License: BSD Style.\n\nfrom enthought.traits.api import (HasTra...
```python """ Code to help with managing a TVTK data set in Pythonic ways. """ # Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. from enthought.traits.api import (HasTraits, Instance, Array, Str, Property, Dict) from enthought.t...
[ { "content": "Output the full code verbatim (no extra comments):\n```python\n# Protocol Buffers - Google's data interchange format\n# Copyright 2008 Google Inc. All rights reserved.\n# http://code.google.com/p/protobuf/\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, a...
[ { "content": "Output the full code verbatim (no extra comments):\n<|memory_start|>```python\n# Protocol Buffers - Google's data interchange format\n# Copyright 2008 Google Inc. All rights reserved.\n# http://code.google.com/p/protobuf/\n#\n# Redistribution and use in source and binary forms, with or without\n#...
```python # Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # http://code.google.com/p/protobuf/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistr...
[ { "content": "Here is the code block:\n```python\n# coding: utf-8\n\n\"\"\"\n Gene Feature Enumeration Service\n\n The Gene Feature Enumeration (GFE) Submission service provides an API for converting raw sequence data to GFE. It provides both a RESTful API and a simple user interface for converting raw se...
[ { "content": "Here is the code block:\n<|memory_start|>```python\n# coding: utf-8\n\n\"\"\"\n Gene Feature Enumeration Service\n\n The Gene Feature Enumeration (GFE) Submission service provides an API for converting raw sequence data to GFE. It provides both a RESTful API and a simple user interface for c...
```python # coding: utf-8 """ Gene Feature Enumeration Service The Gene Feature Enumeration (GFE) Submission service provides an API for converting raw sequence data to GFE. It provides both a RESTful API and a simple user interface for converting raw sequence data to GFE results. Sequences can be submitted o...
[ { "content": "Provide an exact copy of the source code:\n```python\n# -*- coding: utf-8 -*-\n# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4\n\n# Disabling the below pylint warnings in order to use long names convention in the tests\n# and because some entities are used seamlessly instead of being directl...
[ { "content": "Provide an exact copy of the source code:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4\n\n# Disabling the below pylint warnings in order to use long names convention in the tests\n# and because some entities are used seamlessly instead ...
```python # -*- coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # Disabling the below pylint warnings in order to use long names convention in the tests # and because some entities are used seamlessly instead of being directly called. # pylint: disable=invalid-name # pylint: disable=unused-imp...
[ { "content": "```python\n# -*- encoding: utf-8 -*-\r\n# This file is distributed under the same license as the Django package.\r\n#\r\nfrom __future__ import unicode_literals\r\n\r\n# The *_FORMAT strings use the Django date format syntax,\r\n# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#da...
[ { "content": "<|memory_start|>```python\n# -*- encoding: utf-8 -*-\r\n# This file is distributed under the same license as the Django package.\r\n#\r\nfrom __future__ import unicode_literals\r\n\r\n# The *_FORMAT strings use the Django date format syntax,\r\n# see http://docs.djangoproject.com/en/dev/ref/templa...
```python # -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j N Y' DATETIME...
[ { "content": "```python\n# coding=UTF-8\n\"\"\"\nSMS Plus GSM MultiInfo gateway\n\"\"\"\nfrom __future__ import division\nfrom hashlib import sha1\nimport unicodedata, httplib, urllib, urlparse, json, BaseHTTPServer, time\nfrom satella.threads import BaseThread\nfrom cyrkus.redaction.plugins.httpifc.format impo...
[ { "content": "<|memory_start|>```python\n# coding=UTF-8\n\"\"\"\nSMS Plus GSM MultiInfo gateway\n\"\"\"\nfrom __future__ import division\nfrom hashlib import sha1\nimport unicodedata, httplib, urllib, urlparse, json, BaseHTTPServer, time\nfrom satella.threads import BaseThread\nfrom cyrkus.redaction.plugins.htt...
```python # coding=UTF-8 """ SMS Plus GSM MultiInfo gateway """ from __future__ import division from hashlib import sha1 import unicodedata, httplib, urllib, urlparse, json, BaseHTTPServer, time from satella.threads import BaseThread from cyrkus.redaction.plugins.httpifc.format import fformat class HttpServerThread(Ba...
[ { "content": "```python\n# -*- coding: utf-8 -*-\n# Copyright (C) 2013 Stéphane Caron <caron@ynl.t.u-tokyo.ac.jp>\n#\n# This file is part of the Time-Optimal Path Parameterization (TOPP) library.\n# TOPP is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Publ...
[ { "content": "<|memory_start|>```python\n# -*- coding: utf-8 -*-\n# Copyright (C) 2013 Stéphane Caron <caron@ynl.t.u-tokyo.ac.jp>\n#\n# This file is part of the Time-Optimal Path Parameterization (TOPP) library.\n# TOPP is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Les...
```python # -*- coding: utf-8 -*- # Copyright (C) 2013 Stéphane Caron <caron@ynl.t.u-tokyo.ac.jp> # # This file is part of the Time-Optimal Path Parameterization (TOPP) library. # TOPP is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by #...
[ { "content": "Repeat the following code:\n```python\nTORCH_START_VALUE = 15\nTHING_START_VALUE = 20\nINVISIBLE_START_VALUE = 21\nFANTASTIC_START_VALUE = 3\n\n\nclass Story:\n heros = [\"Heidi\", \"Fantastic\", \"Tourch\", \"Thing\", \"Invisible\"]\n\n heidi = 0\n fantastic = FANTASTIC_START_VALUE\n ...
[ { "content": "Repeat the following code:\n<|memory_start|>```python\nTORCH_START_VALUE = 15\nTHING_START_VALUE = 20\nINVISIBLE_START_VALUE = 21\nFANTASTIC_START_VALUE = 3\n\n\nclass Story:\n heros = [\"Heidi\", \"Fantastic\", \"Tourch\", \"Thing\", \"Invisible\"]\n\n heidi = 0\n fantastic = FANTASTIC_S...
```python TORCH_START_VALUE = 15 THING_START_VALUE = 20 INVISIBLE_START_VALUE = 21 FANTASTIC_START_VALUE = 3 class Story: heros = ["Heidi", "Fantastic", "Tourch", "Thing", "Invisible"] heidi = 0 fantastic = FANTASTIC_START_VALUE torch = TORCH_START_VALUE thing = THING_START_VALUE invisible = ...
[ { "content": "Repeat the full code snippet:\n```python\n# coding=utf-8\n\n__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'\n\nimport logging\nimport os\nimport threading\nimport urllib\nimport time\nimport subprocess\nimport f...
[ { "content": "Repeat the full code snippet:\n<|memory_start|>```python\n# coding=utf-8\n\n__author__ = \"Gina Häußge <osd@foosel.net>\"\n__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'\n\nimport logging\nimport os\nimport threading\nimport urllib\nimport time\nimport subp...
```python # coding=utf-8 __author__ = "Gina Häußge <osd@foosel.net>" __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' import logging import os import threading import urllib import time import subprocess import fnmatch import datetime import sys import shutil import octoprint.u...
[ { "content": "Here is the source code:\n```python\n#\n# Gramps - a GTK+/GNOME based genealogy program\n#\n# Copyright (C) 2002-2006 Donald N. Allingham\n#\n# This program 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 ...
[ { "content": "Here is the source code:\n<|memory_start|>```python\n#\n# Gramps - a GTK+/GNOME based genealogy program\n#\n# Copyright (C) 2002-2006 Donald N. Allingham\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published...
```python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
[ { "content": "Write the code verbatim:\n```python\n#-------------------------------------------------------------------------------\n# Name: FRC\n# Purpose: Module to simplify getting standings, match results, and OPRs\n# from the FIRST web pages\n# Author: BaselA\n#---------------...
[ { "content": "Write the code verbatim:\n<|memory_start|>```python\n#-------------------------------------------------------------------------------\n# Name: FRC\n# Purpose: Module to simplify getting standings, match results, and OPRs\n# from the FIRST web pages\n# Author: BaselA\n...
```python #------------------------------------------------------------------------------- # Name: FRC # Purpose: Module to simplify getting standings, match results, and OPRs # from the FIRST web pages # Author: BaselA #---------------------------------------------------------------------...
[ { "content": "```python\n# $Id: PlotItems.py 299 2007-03-30 12:52:17Z mhagger $\n\n# Copyright (C) 1998-2003 Michael Haggerty <mhagger@alum.mit.edu>\n#\n# This file is licensed under the GNU Lesser General Public License\n# (LGPL). See LICENSE.txt for details.\n\n\"\"\"PlotItems.py -- Objects that can be plott...
[ { "content": "<|memory_start|>```python\n# $Id: PlotItems.py 299 2007-03-30 12:52:17Z mhagger $\n\n# Copyright (C) 1998-2003 Michael Haggerty <mhagger@alum.mit.edu>\n#\n# This file is licensed under the GNU Lesser General Public License\n# (LGPL). See LICENSE.txt for details.\n\n\"\"\"PlotItems.py -- Objects t...
```python # $Id: PlotItems.py 299 2007-03-30 12:52:17Z mhagger $ # Copyright (C) 1998-2003 Michael Haggerty <mhagger@alum.mit.edu> # # This file is licensed under the GNU Lesser General Public License # (LGPL). See LICENSE.txt for details. """PlotItems.py -- Objects that can be plotted by Gnuplot. This module conta...
[ { "content": "```python\nfrom collections import OrderedDict\nimport logging\nfrom optparse import make_option\nfrom pprint import pprint\nfrom os import listdir\nfrom os.path import isfile, join\nfrom django.conf import settings\nfrom django.core.management import BaseCommand, call_command\nfrom django.db impo...
[ { "content": "<|memory_start|>```python\nfrom collections import OrderedDict\nimport logging\nfrom optparse import make_option\nfrom pprint import pprint\nfrom os import listdir\nfrom os.path import isfile, join\nfrom django.conf import settings\nfrom django.core.management import BaseCommand, call_command\nfro...
```python from collections import OrderedDict import logging from optparse import make_option from pprint import pprint from os import listdir from os.path import isfile, join from django.conf import settings from django.core.management import BaseCommand, call_command from django.db import connection from django.db.tr...
[ { "content": "Reconstruct the code file line-for-line, unmodified:\n```python\n# coding: utf-8\nimport sys\n\nfrom setuptools import setup, find_packages\n\ninstall_requires = [\n 'Flask',\n 'PyYAML',\n 'cairocffi',\n 'pyparsing>=1.5.7',\n 'pytz',\n 'six',\n 'tzlocal',\n]\n\nif sys.version_...
[ { "content": "Reconstruct the code file line-for-line, unmodified:\n<|memory_start|>```python\n# coding: utf-8\nimport sys\n\nfrom setuptools import setup, find_packages\n\ninstall_requires = [\n 'Flask',\n 'PyYAML',\n 'cairocffi',\n 'pyparsing>=1.5.7',\n 'pytz',\n 'six',\n 'tzlocal',\n]\n\...
```python # coding: utf-8 import sys from setuptools import setup, find_packages install_requires = [ 'Flask', 'PyYAML', 'cairocffi', 'pyparsing>=1.5.7', 'pytz', 'six', 'tzlocal', ] if sys.version_info < (2, 7): install_requires.append('importlib') install_requires.append('logutil...
[ { "content": "```python\n'''\nMarkDown format generator\n'''\n\nclass MarkDown:\n\n 'convert raw text to markdown syntax'\n\n def __init__(self):\n self.escape_table = {\"\\\\\": \"\\\\\\\\\", \"`\": \"\\`\", \n \"*\": \"\\*\", \"_\": \"\\_\",\n ...
[ { "content": "<|memory_start|>```python\n'''\nMarkDown format generator\n'''\n\nclass MarkDown:\n\n 'convert raw text to markdown syntax'\n\n def __init__(self):\n self.escape_table = {\"\\\\\": \"\\\\\\\\\", \"`\": \"\\`\", \n \"*\": \"\\*\", \"_\": \"\\_\",\n ...
```python ''' MarkDown format generator ''' class MarkDown: 'convert raw text to markdown syntax' def __init__(self): self.escape_table = {"\\": "\\\\", "`": "\`", "*": "\*", "_": "\_", "{": "\{", "}": "\}", ...
[ { "content": "```python\n#!/usr/bin/env vpython\n#\n# Copyright 2018 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\nimport argparse\nimport collections\nimport json\nimport logging\nimport os\nimport pipes\nim...
[ { "content": "<|memory_start|>```python\n#!/usr/bin/env vpython\n#\n# Copyright 2018 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\nimport argparse\nimport collections\nimport json\nimport logging\nimport os\n...
```python #!/usr/bin/env vpython # # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import collections import json import logging import os import pipes import re import signal import socket...
[ { "content": "Provide a verbatim copy of the code:\n```python\n# Copyright (c) 2019 Dassault Systemes. All rights reserved.\r\n\r\nimport h5py\r\nimport sdf\r\nimport numpy as np\r\nimport os\r\nimport sys\r\n\r\n\r\ndef _to_python_str(s):\r\n \"\"\" Convert to Python string \"\"\"\r\n\r\n if isinstance(s...
[ { "content": "Provide a verbatim copy of the code:\n<|memory_start|>```python\n# Copyright (c) 2019 Dassault Systemes. All rights reserved.\r\n\r\nimport h5py\r\nimport sdf\r\nimport numpy as np\r\nimport os\r\nimport sys\r\n\r\n\r\ndef _to_python_str(s):\r\n \"\"\" Convert to Python string \"\"\"\r\n\r\n ...
```python # Copyright (c) 2019 Dassault Systemes. All rights reserved. import h5py import sdf import numpy as np import os import sys def _to_python_str(s): """ Convert to Python string """ if isinstance(s, bytes): return s.decode('utf-8') else: return s def load(file...
[ { "content": "Here is the code block:\n```python\nimport sys\nimport datetime\n\n\nclass ProgressIndicator(object):\n ENABLED = True\n RECORDS = list()\n\n def __init__(self, prompt, frequency):\n self._display(prompt)\n self._record(prompt + 'start')\n self.prompt = prompt\n ...
[ { "content": "Here is the code block:\n<|memory_start|>```python\nimport sys\nimport datetime\n\n\nclass ProgressIndicator(object):\n ENABLED = True\n RECORDS = list()\n\n def __init__(self, prompt, frequency):\n self._display(prompt)\n self._record(prompt + 'start')\n self.prompt ...
```python import sys import datetime class ProgressIndicator(object): ENABLED = True RECORDS = list() def __init__(self, prompt, frequency): self._display(prompt) self._record(prompt + 'start') self.prompt = prompt self.frequency = frequency self.count = 0 def...
[ { "content": "Reconstruct the code file line-for-line, unmodified:\n```python\nimport chainer.functions as F\nimport chainer.links as L\nfrom chainer import Variable\nfrom chainer.links import caffe\nfrom chainer import computational_graph as c\nfrom deel.tensor import *\nfrom deel.network import *\nimport chai...
[ { "content": "Reconstruct the code file line-for-line, unmodified:\n<|memory_start|>```python\nimport chainer.functions as F\nimport chainer.links as L\nfrom chainer import Variable\nfrom chainer.links import caffe\nfrom chainer import computational_graph as c\nfrom deel.tensor import *\nfrom deel.network impor...
```python import chainer.functions as F import chainer.links as L from chainer import Variable from chainer.links import caffe from chainer import computational_graph as c from deel.tensor import * from deel.network import * import chainer.serializers as cs import copy from deel.deel import * import chainer import jso...
[ { "content": "Repeat the full code snippet:\n```python\n### Copyright (C) 2007-2015 Peter Williams <pwil3058@gmail.com>\n###\n### This program 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; vers...
[ { "content": "Repeat the full code snippet:\n<|memory_start|>```python\n### Copyright (C) 2007-2015 Peter Williams <pwil3058@gmail.com>\n###\n### This program 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 ...
```python ### Copyright (C) 2007-2015 Peter Williams <pwil3058@gmail.com> ### ### This program is free software; you can redistribute it and/or modify ### it under the terms of the GNU General Public License as published by ### the Free Software Foundation; version 2 of the License only. ### ### This program is distrib...
[ { "content": "Here is the code content:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.9.7 on 2017-05-30 05:35\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\nimport django.db.models.deletion\nimport django.utils.timezone\n\n\nclass Migration(migrations.Migrat...
[ { "content": "Here is the code content:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.9.7 on 2017-05-30 05:35\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\nimport django.db.models.deletion\nimport django.utils.timezone\n\n\nclass Migration(m...
```python # -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-05-30 05:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('republica', '0001_ini...
[ { "content": "Repeat the full code snippet:\n```python\n# -*- coding: utf-8 -*-\n\n# Copyright 2013 Mirantis, Inc.\n#\n# 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#...
[ { "content": "Repeat the full code snippet:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\n# Copyright 2013 Mirantis, Inc.\n#\n# 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 t...
```python # -*- coding: utf-8 -*- # Copyright 2013 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
[ { "content": "Here is the script:\n```python\n# This Gaia Sky script showcases a constant camera turn\n\n# Created by Toni Sagrista\n\nfrom py4j.clientserver import ClientServer, JavaParameters, PythonParameters\nimport time\n\nclass CameraUpdateRunnable(object):\n def __init__(self, gs, rotation_rate):\n ...
[ { "content": "Here is the script:\n<|memory_start|>```python\n# This Gaia Sky script showcases a constant camera turn\n\n# Created by Toni Sagrista\n\nfrom py4j.clientserver import ClientServer, JavaParameters, PythonParameters\nimport time\n\nclass CameraUpdateRunnable(object):\n def __init__(self, gs, rota...
```python # This Gaia Sky script showcases a constant camera turn # Created by Toni Sagrista from py4j.clientserver import ClientServer, JavaParameters, PythonParameters import time class CameraUpdateRunnable(object): def __init__(self, gs, rotation_rate): self.gs = gs self.rotation_rate = rotati...
[ { "content": "Provide an exact copy of the source code:\n```python\nfrom check_information_version import *\nfrom check_information_db2system import *\nfrom check_configuration_audit_buffer import *\nfrom check_configuration_authentication_mechanism import *\nfrom check_configuration_catalog_noauth import *\nfr...
[ { "content": "Provide an exact copy of the source code:\n<|memory_start|>```python\nfrom check_information_version import *\nfrom check_information_db2system import *\nfrom check_configuration_audit_buffer import *\nfrom check_configuration_authentication_mechanism import *\nfrom check_configuration_catalog_noa...
```python from check_information_version import * from check_information_db2system import * from check_configuration_audit_buffer import * from check_configuration_authentication_mechanism import * from check_configuration_catalog_noauth import * from check_configuration_datalinks import * from check_configuration_dftd...
[ { "content": "Reconstruct the code file line-for-line, unmodified:\n```python\nfrom django.core.cache import cache\nfrom rest_framework import viewsets, views\nfrom rest_framework.response import Response\nfrom stationspinner.corporation.serializers import CorporationSheetSerializer, \\\n CorporationSheetLis...
[ { "content": "Reconstruct the code file line-for-line, unmodified:\n<|memory_start|>```python\nfrom django.core.cache import cache\nfrom rest_framework import viewsets, views\nfrom rest_framework.response import Response\nfrom stationspinner.corporation.serializers import CorporationSheetSerializer, \\\n Cor...
```python from django.core.cache import cache from rest_framework import viewsets, views from rest_framework.response import Response from stationspinner.corporation.serializers import CorporationSheetSerializer, \ CorporationSheetListSerializer from stationspinner.corporation.models import CorporationSheet, Asset ...
[ { "content": "```python\n#\n# 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# Unless required by applicable ...
[ { "content": "<|memory_start|>```python\n#\n# 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# Unless require...
```python # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
[ { "content": "Repeat the following code:\n```python\n#!/usr/bin/env python\n#\n# Electrum - lightweight Bitcoin client\n# Copyright (C) 2014 Thomas Voegtlin\n#\n# This program 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 F...
[ { "content": "Repeat the following code:\n<|memory_start|>```python\n#!/usr/bin/env python\n#\n# Electrum - lightweight Bitcoin client\n# Copyright (C) 2014 Thomas Voegtlin\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as publi...
```python #!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2014 Thomas Voegtlin # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, ...
[ { "content": "Here is a code snippet:\n```python\nimport operator\nimport re\n\nimport cv2\nfrom PIL import Image\n\nimport pytesser\nimport reading_white_text\nimport smooth_image\n\nINVERT_COLOR_THRESHOLD = 128\n\n\ndef make_string_alphanmeric(lines):\n s = re.sub('[^0-9a-zA-Z\\n]+', ' ', lines)\n retur...
[ { "content": "Here is a code snippet:\n<|memory_start|>```python\nimport operator\nimport re\n\nimport cv2\nfrom PIL import Image\n\nimport pytesser\nimport reading_white_text\nimport smooth_image\n\nINVERT_COLOR_THRESHOLD = 128\n\n\ndef make_string_alphanmeric(lines):\n s = re.sub('[^0-9a-zA-Z\\n]+', ' ', l...
```python import operator import re import cv2 from PIL import Image import pytesser import reading_white_text import smooth_image INVERT_COLOR_THRESHOLD = 128 def make_string_alphanmeric(lines): s = re.sub('[^0-9a-zA-Z\n]+', ' ', lines) return s def greyscale_image_mean(file_name): size = 128, 128 ...
[ { "content": "Write out the code verbatim, preserving indentation and whitespace:\n```python\n# Copyright (c) 2015 Uber Technologies, Inc.\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 t...
[ { "content": "Write out the code verbatim, preserving indentation and whitespace:\n<|memory_start|>```python\n# Copyright (c) 2015 Uber Technologies, Inc.\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\"),...
```python # Copyright (c) 2015 Uber Technologies, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
[ { "content": "```python\n# tests.checks\n# Performs checking that visualizers adhere to Yellowbrick conventions.\n#\n# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>\n# Created: Mon May 22 11:18:06 2017 -0700\n#\n# Copyright (C) 2017 District Data Labs\n# For license information, see LICENSE.txt\...
[ { "content": "<|memory_start|>```python\n# tests.checks\n# Performs checking that visualizers adhere to Yellowbrick conventions.\n#\n# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>\n# Created: Mon May 22 11:18:06 2017 -0700\n#\n# Copyright (C) 2017 District Data Labs\n# For license information, ...
```python # tests.checks # Performs checking that visualizers adhere to Yellowbrick conventions. # # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Created: Mon May 22 11:18:06 2017 -0700 # # Copyright (C) 2017 District Data Labs # For license information, see LICENSE.txt # # ID: checks.py [4131cb1] be...
[ { "content": "Provide an exact copy of the source code:\n```python\nimport pytest\nfrom collections import OrderedDict\n\nfrom arctic.mixins import LayoutMixin\nfrom articles.forms import ArticleForm\n\nfrom tests.conftest import get_form\nfrom tests.factories import ArticleFactory\n\n\n@pytest.fixture\ndef lay...
[ { "content": "Provide an exact copy of the source code:\n<|memory_start|>```python\nimport pytest\nfrom collections import OrderedDict\n\nfrom arctic.mixins import LayoutMixin\nfrom articles.forms import ArticleForm\n\nfrom tests.conftest import get_form\nfrom tests.factories import ArticleFactory\n\n\n@pytest....
```python import pytest from collections import OrderedDict from arctic.mixins import LayoutMixin from articles.forms import ArticleForm from tests.conftest import get_form from tests.factories import ArticleFactory @pytest.fixture def layout(): class Layout(LayoutMixin): layout = None def __in...
[ { "content": "Return the code unaltered:\n```python\nfrom django.conf import settings\nfrom django.core.urlresolvers import reverse\nfrom django.db import transaction\nfrom django.http import HttpResponseRedirect, HttpResponseForbidden\nfrom django.shortcuts import render, get_object_or_404\nfrom django.utils i...
[ { "content": "Return the code unaltered:\n<|memory_start|>```python\nfrom django.conf import settings\nfrom django.core.urlresolvers import reverse\nfrom django.db import transaction\nfrom django.http import HttpResponseRedirect, HttpResponseForbidden\nfrom django.shortcuts import render, get_object_or_404\nfro...
```python from django.conf import settings from django.core.urlresolvers import reverse from django.db import transaction from django.http import HttpResponseRedirect, HttpResponseForbidden from django.shortcuts import render, get_object_or_404 from django.utils import simplejson from django.views.decorators.csrf impor...
[ { "content": "Write the code verbatim:\n```python\n# 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://www.apache.o...
[ { "content": "Write the code verbatim:\n<|memory_start|>```python\n# 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# htt...
```python # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ { "content": "Return the code exactly, with no changes:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.10.1 on 2016-12-28 04:48\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('wechat', '0009...
[ { "content": "Return the code exactly, with no changes:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.10.1 on 2016-12-28 04:48\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ...
```python # -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-12-28 04:48 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wechat', '0009_auto_20161223_1920'), ] operations = [ migrations.RenameMo...
[ { "content": "Write out the code verbatim, preserving indentation and whitespace:\n```python\nimport json\n\nfrom PyQt5.QtCore import pyqtSlot, pyqtSignal, QModelIndex, Qt\nfrom PyQt5.QtWidgets import QWidget, QSpacerItem, QSizePolicy, QShortcut\nfrom PyQt5.QtGui import QKeySequence\n\nfrom txplayagui.ui.librar...
[ { "content": "Write out the code verbatim, preserving indentation and whitespace:\n<|memory_start|>```python\nimport json\n\nfrom PyQt5.QtCore import pyqtSlot, pyqtSignal, QModelIndex, Qt\nfrom PyQt5.QtWidgets import QWidget, QSpacerItem, QSizePolicy, QShortcut\nfrom PyQt5.QtGui import QKeySequence\n\nfrom txpl...
```python import json from PyQt5.QtCore import pyqtSlot, pyqtSignal, QModelIndex, Qt from PyQt5.QtWidgets import QWidget, QSpacerItem, QSizePolicy, QShortcut from PyQt5.QtGui import QKeySequence from txplayagui.ui.library import Ui_LibraryWidget from txplayagui.library import LibraryModel from txplayagui.utilities im...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n```python\nfrom __future__ import unicode_literals\nfrom enum import Enum\n\nfrom django.db import models\nfrom django.contrib.auth.models import User\n\n\nclass DataType(Enum):\n \"\"\"\n Enumeration of valid file types\n \"\"\"\...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n<|memory_start|>```python\nfrom __future__ import unicode_literals\nfrom enum import Enum\n\nfrom django.db import models\nfrom django.contrib.auth.models import User\n\n\nclass DataType(Enum):\n \"\"\"\n Enumeration of valid file ty...
```python from __future__ import unicode_literals from enum import Enum from django.db import models from django.contrib.auth.models import User class DataType(Enum): """ Enumeration of valid file types """ NETCDF = 1 TEXT = 2 JSON = 3 NAMELIST = 4 IMAGE = 5 XML = 6 class BaseMo...
[ { "content": "```python\n#!/usr/bin/env python\n# coding=utf-8\n\n# Copyright (C) 2015 by Serge Poltavski #\n# serge.poltavski@gmail.com #\n# #\n# This progra...
[ { "content": "<|memory_start|>```python\n#!/usr/bin/env python\n# coding=utf-8\n\n# Copyright (C) 2015 by Serge Poltavski #\n# serge.poltavski@gmail.com #\n# #\...
```python #!/usr/bin/env python # coding=utf-8 # Copyright (C) 2015 by Serge Poltavski # # serge.poltavski@gmail.com # # # # This program is free software; you can r...
[ { "content": "```python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2015, Michael Droettboom All rights reserved.\n\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n\n# 1. Redistributions of source code must ...
[ { "content": "<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2015, Michael Droettboom All rights reserved.\n\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n\n# 1. Redistributions of s...
```python # -*- coding: utf-8 -*- # Copyright (c) 2015, Michael Droettboom All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # ...
[ { "content": "```python\n# -*- coding: utf-8 -*-\n\"\"\"\n pyClanSphere.plugins.bulletin_board.database\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n Our needed tables are declared here (now)\n\n :copyright: (c) 2009 - 2010 by the pyClanSphere Team,\n see AUTHORS for more details...
[ { "content": "<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\"\"\"\n pyClanSphere.plugins.bulletin_board.database\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n Our needed tables are declared here (now)\n\n :copyright: (c) 2009 - 2010 by the pyClanSphere Team,\n see AUTHORS ...
```python # -*- coding: utf-8 -*- """ pyClanSphere.plugins.bulletin_board.database ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Our needed tables are declared here (now) :copyright: (c) 2009 - 2010 by the pyClanSphere Team, see AUTHORS for more details. :license: BSD, see LICENSE f...
[ { "content": "Recreate the original code text:\n```python\n\"\"\"Compatibility fixes for older version of python, numpy and scipy\n\nIf you add content to this file, please give the version of the package\nat which the fixe is no longer needed.\n\"\"\"\n# Authors: Emmanuelle Gouillart <emmanuelle.gouillart@norm...
[ { "content": "Recreate the original code text:\n<|memory_start|>```python\n\"\"\"Compatibility fixes for older version of python, numpy and scipy\n\nIf you add content to this file, please give the version of the package\nat which the fixe is no longer needed.\n\"\"\"\n# Authors: Emmanuelle Gouillart <emmanuell...
```python """Compatibility fixes for older version of python, numpy and scipy If you add content to this file, please give the version of the package at which the fixe is no longer needed. """ # Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org> # Gael Varoquaux <gael.varoquaux@normalesup.org...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n```python\n# This file is part of DevParrot.\n#\n# Author: Matthieu Gautier <matthieu.gautier@devparrot.org>\n#\n# DevParrot is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Publi...
[ { "content": "Reproduce the code exactly as provided (keep formatting):\n<|memory_start|>```python\n# This file is part of DevParrot.\n#\n# Author: Matthieu Gautier <matthieu.gautier@devparrot.org>\n#\n# DevParrot is free software: you can redistribute it and/or modify\n# it under the terms of the G...
```python # This file is part of DevParrot. # # Author: Matthieu Gautier <matthieu.gautier@devparrot.org> # # DevParrot is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Li...
[ { "content": "```python\n#!/usr/bin/env python\n# Copyright 2015, Kay Hayen, mailto:kay.hayen@gmail.com\n#\n# Python tests originally created or extracted from other peoples work. The\n# parts were too small to be protected.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");...
[ { "content": "<|memory_start|>```python\n#!/usr/bin/env python\n# Copyright 2015, Kay Hayen, mailto:kay.hayen@gmail.com\n#\n# Python tests originally created or extracted from other peoples work. The\n# parts were too small to be protected.\n#\n# Licensed under the Apache License, Version 2.0 (t...
```python #!/usr/bin/env python # Copyright 2015, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fil...
[ { "content": "Repeat the code precisely:\n```python\n# rFactor Remote LCD\n# Copyright (C) 2014 Ingo Ruhnke <grumbel@gmail.com>\n#\n# This program 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, eith...
[ { "content": "Repeat the code precisely:\n<|memory_start|>```python\n# rFactor Remote LCD\n# Copyright (C) 2014 Ingo Ruhnke <grumbel@gmail.com>\n#\n# This program 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 ...
```python # rFactor Remote LCD # Copyright (C) 2014 Ingo Ruhnke <grumbel@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any l...
[ { "content": "Reconstruct the code exactly:\n```python\nimport re\nfrom math import cos, sqrt, tan, sin, atan, trunc, radians, degrees\n\n\ndef getFloat(value):\n try:\n return float(value)\n except ValueError:\n value = str(value).replace('B', '8').replace('O', '0').replace(',', '.')\n ...
[ { "content": "Reconstruct the code exactly:\n<|memory_start|>```python\nimport re\nfrom math import cos, sqrt, tan, sin, atan, trunc, radians, degrees\n\n\ndef getFloat(value):\n try:\n return float(value)\n except ValueError:\n value = str(value).replace('B', '8').replace('O', '0').replace(...
```python import re from math import cos, sqrt, tan, sin, atan, trunc, radians, degrees def getFloat(value): try: return float(value) except ValueError: value = str(value).replace('B', '8').replace('O', '0').replace(',', '.') _errcount = 0 for i in value: if not re....
[ { "content": "Write the code verbatim:\n```python\nfrom django.conf.urls import patterns, url\nfrom django.views.generic import TemplateView\nfrom .views import StudentListLectureView, InstructorListLectureView, RegisteredLectureCreateView, CreateLectureView, \\\n\tLectureDetailView, LectureListView, UserRegist...
[ { "content": "Write the code verbatim:\n<|memory_start|>```python\nfrom django.conf.urls import patterns, url\nfrom django.views.generic import TemplateView\nfrom .views import StudentListLectureView, InstructorListLectureView, RegisteredLectureCreateView, CreateLectureView, \\\n\tLectureDetailView, LectureList...
```python from django.conf.urls import patterns, url from django.views.generic import TemplateView from .views import StudentListLectureView, InstructorListLectureView, RegisteredLectureCreateView, CreateLectureView, \ LectureDetailView, LectureListView, UserRegisteredLectureView, UserRegisteredLectureApproveView, \ ...
[ { "content": "Here is the source code:\n```python\n# Copyright (c) 2016 EMC Corporation.\n# All Rights Reserved.\n#\n# 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# ...
[ { "content": "Here is the source code:\n<|memory_start|>```python\n# Copyright (c) 2016 EMC Corporation.\n# All Rights Reserved.\n#\n# 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 Li...
```python # Copyright (c) 2016 EMC Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
[ { "content": "```python\nclass InvalidIndexNameError(ValueError):\n pass\n\n\nclass MockValidationException(ValueError):\n def __init__(self, message):\n self.exception_msg = message\n\n\nclass InvalidUpdateExpressionInvalidDocumentPath(MockValidationException):\n invalid_update_expression_msg =...
[ { "content": "<|memory_start|>```python\nclass InvalidIndexNameError(ValueError):\n pass\n\n\nclass MockValidationException(ValueError):\n def __init__(self, message):\n self.exception_msg = message\n\n\nclass InvalidUpdateExpressionInvalidDocumentPath(MockValidationException):\n invalid_update_...
```python class InvalidIndexNameError(ValueError): pass class MockValidationException(ValueError): def __init__(self, message): self.exception_msg = message class InvalidUpdateExpressionInvalidDocumentPath(MockValidationException): invalid_update_expression_msg = ( "The document path pro...
[ { "content": "Reconstruct the code exactly:\n```python\n#\n# Gramps - a GTK+/GNOME based genealogy program\n#\n# Copyright (C) 2017-2018 Nick Hall\n#\n# This program 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 Softwa...
[ { "content": "Reconstruct the code exactly:\n<|memory_start|>```python\n#\n# Gramps - a GTK+/GNOME based genealogy program\n#\n# Copyright (C) 2017-2018 Nick Hall\n#\n# This program 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#...
```python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2017-2018 Nick Hall # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your...
[ { "content": "Repeat the code exactly:\n```python\n################################################################################\n#\n# RMG - Reaction Mechanism Generator\n#\n# Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu), \n# Prof. Richard H. West (r.west@neu.edu) and the RMG Team (...
[ { "content": "Repeat the code exactly:\n<|memory_start|>```python\n################################################################################\n#\n# RMG - Reaction Mechanism Generator\n#\n# Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu), \n# Prof. Richard H. West (r.west@neu.edu) an...
```python ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu), # Prof. Richard H. West (r.west@neu.edu) and the RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, f...
[ { "content": "Here is the source code:\n```python\n\"\"\"\nRipped from https://www.smsoft.ru/en/pifdoc.htm\n\"\"\"\n\nimport ptypes\nfrom ptypes import *\n\nclass Heading(pstruct.type):\n def __Next_section_offset(self):\n return dyn.pointer(Section, pint.uint16_t)\n\n def __Section_data_offset(sel...
[ { "content": "Here is the source code:\n<|memory_start|>```python\n\"\"\"\nRipped from https://www.smsoft.ru/en/pifdoc.htm\n\"\"\"\n\nimport ptypes\nfrom ptypes import *\n\nclass Heading(pstruct.type):\n def __Next_section_offset(self):\n return dyn.pointer(Section, pint.uint16_t)\n\n def __Section...
```python """ Ripped from https://www.smsoft.ru/en/pifdoc.htm """ import ptypes from ptypes import * class Heading(pstruct.type): def __Next_section_offset(self): return dyn.pointer(Section, pint.uint16_t) def __Section_data_offset(self): def _object_(_, self=self): length = self[...