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# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information.\n#\n# Code gen... | [
{
"content": "Here is some code:\n<|memory_start|>```python\n# coding=utf-8\n# --------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See License.txt in the project root for\n# license information... | ```python
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
... |
[
{
"content": "```python\n# -*- encoding: utf-8 -*-\n##############################################################################\n#\n# OpenERP, Open Source Management Solution\n# Copyright (C) 2011-2012 Smile. All Rights Reserved\n#\n# This program is free software: you can redistribute it and/or mod... | [
{
"content": "<|memory_start|>```python\n# -*- encoding: utf-8 -*-\n##############################################################################\n#\n# OpenERP, Open Source Management Solution\n# Copyright (C) 2011-2012 Smile. All Rights Reserved\n#\n# This program is free software: you can redistribu... | ```python
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2011-2012 Smile. All Rights Reserved
#
# This program is free software: you can redistribute it and/or modify
# it under the terms o... |
[
{
"content": "Here is some code:\n```python\n#!/usr/bin/python\n# Copyright (c) 2012 The Native Client 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 optparse\nimport os.path\nimport shutil\nimport subprocess\nimpor... | [
{
"content": "Here is some code:\n<|memory_start|>```python\n#!/usr/bin/python\n# Copyright (c) 2012 The Native Client 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 optparse\nimport os.path\nimport shutil\nimport s... | ```python
#!/usr/bin/python
# Copyright (c) 2012 The Native Client 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 optparse
import os.path
import shutil
import subprocess
import stat
import sys
import time
import traceback
ARC... |
[
{
"content": "Replicate the source code:\n```python\nfrom enigma import getPrevAsciiCode\nfrom Tools.NumericalTextInput import NumericalTextInput\nfrom Tools.Directories import resolveFilename, SCOPE_CONFIG, fileExists\nfrom Components.Harddisk import harddiskmanager\nfrom copy import copy as copy_copy\nfrom os... | [
{
"content": "Replicate the source code:\n<|memory_start|>```python\nfrom enigma import getPrevAsciiCode\nfrom Tools.NumericalTextInput import NumericalTextInput\nfrom Tools.Directories import resolveFilename, SCOPE_CONFIG, fileExists\nfrom Components.Harddisk import harddiskmanager\nfrom copy import copy as co... | ```python
from enigma import getPrevAsciiCode
from Tools.NumericalTextInput import NumericalTextInput
from Tools.Directories import resolveFilename, SCOPE_CONFIG, fileExists
from Components.Harddisk import harddiskmanager
from copy import copy as copy_copy
from os import path as os_path
from time import localtime, strf... |
[
{
"content": "```python\nimport os\nimport vtkAll as vtk\nimport math\nimport time\nimport re\nimport numpy as np\n\nfrom director.timercallback import TimerCallback\nfrom director import objectmodel as om\nfrom director.simpletimer import SimpleTimer\nfrom director.utime import getUtime\nfrom director import r... | [
{
"content": "<|memory_start|>```python\nimport os\nimport vtkAll as vtk\nimport math\nimport time\nimport re\nimport numpy as np\n\nfrom director.timercallback import TimerCallback\nfrom director import objectmodel as om\nfrom director.simpletimer import SimpleTimer\nfrom director.utime import getUtime\nfrom d... | ```python
import os
import vtkAll as vtk
import math
import time
import re
import numpy as np
from director.timercallback import TimerCallback
from director import objectmodel as om
from director.simpletimer import SimpleTimer
from director.utime import getUtime
from director import robotstate
import copy
import pick... |
[
{
"content": "Repeat the code precisely as written (spacing intact):\n```python\nfrom ..utils import TranspileTestCase\n\n\nclass AssignmentTests(TranspileTestCase):\n def test_simple_assignment(self):\n self.assertCodeExecution(\"\"\"\n x = 42\n print(x)\n print('Done... | [
{
"content": "Repeat the code precisely as written (spacing intact):\n<|memory_start|>```python\nfrom ..utils import TranspileTestCase\n\n\nclass AssignmentTests(TranspileTestCase):\n def test_simple_assignment(self):\n self.assertCodeExecution(\"\"\"\n x = 42\n print(x)\n ... | ```python
from ..utils import TranspileTestCase
class AssignmentTests(TranspileTestCase):
def test_simple_assignment(self):
self.assertCodeExecution("""
x = 42
print(x)
print('Done.')
""")
def test_multiple_assignment(self):
self.assertCodeExecu... |
[
{
"content": "Provide a verbatim copy of the code:\n```python\nOLD_LISTING_MODE = 'OLD_LISTING_MODE'\nLIVE_EVENTS_MODE = 'LIVE_EVENTS'\nPLAY_MODE = 'PLAY'\nPLAY_ITEM_MODE = 'PLAY_ITEM'\nPLAY_TV_MODE = 'PLAY_TV'\n\nUPCOMING_MODE = 'UPCOMING'\nAUTHENTICATE_MODE = 'AUTHENTICATE'\nAUTHENTICATION_DETAILS_MODE = 'AUT... | [
{
"content": "Provide a verbatim copy of the code:\n<|memory_start|>```python\nOLD_LISTING_MODE = 'OLD_LISTING_MODE'\nLIVE_EVENTS_MODE = 'LIVE_EVENTS'\nPLAY_MODE = 'PLAY'\nPLAY_ITEM_MODE = 'PLAY_ITEM'\nPLAY_TV_MODE = 'PLAY_TV'\n\nUPCOMING_MODE = 'UPCOMING'\nAUTHENTICATE_MODE = 'AUTHENTICATE'\nAUTHENTICATION_DET... | ```python
OLD_LISTING_MODE = 'OLD_LISTING_MODE'
LIVE_EVENTS_MODE = 'LIVE_EVENTS'
PLAY_MODE = 'PLAY'
PLAY_ITEM_MODE = 'PLAY_ITEM'
PLAY_TV_MODE = 'PLAY_TV'
UPCOMING_MODE = 'UPCOMING'
AUTHENTICATE_MODE = 'AUTHENTICATE'
AUTHENTICATION_DETAILS_MODE = 'AUTHENTICATION_DETAILS'
NETWORK_ID = 'NETWORK_ID'
EVENT_ID = 'EVENT_ID... |
[
{
"content": "```python\n# -*- coding: utf-8 -*-\n\nimport math\nimport unittest\n\nfrom rainbowrunners.utils import Colors, get_terminal_size\n\n__all__ = (\n 'NyanCatResult',\n)\n\n\nclass BaseRainbowResult(unittest.TestResult):\n \"\"\"A test result class that can print rainbow and awesome pet to a str... | [
{
"content": "<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\nimport math\nimport unittest\n\nfrom rainbowrunners.utils import Colors, get_terminal_size\n\n__all__ = (\n 'NyanCatResult',\n)\n\n\nclass BaseRainbowResult(unittest.TestResult):\n \"\"\"A test result class that can print rainbow and awes... | ```python
# -*- coding: utf-8 -*-
import math
import unittest
from rainbowrunners.utils import Colors, get_terminal_size
__all__ = (
'NyanCatResult',
)
class BaseRainbowResult(unittest.TestResult):
"""A test result class that can print rainbow and awesome pet to a stream.
"""
separator1 = '\033[{0... |
[
{
"content": "Here is a code file:\n```python\nfrom settings_local import SUBSCRIPTION_ID, STORAGE_ACCOUNT_NAME, STORAGE_ACCOUNT_KEY, EMAIL_USERNAME, EMAIL_PASSWORD\n\n__author__ = 'Natalie Sanders'\n\n__author__ = 'Natalie Sanders'\n\nfrom azure.servicemanagement import *\nfrom azure.storage import *\nfrom sub... | [
{
"content": "Here is a code file:\n<|memory_start|>```python\nfrom settings_local import SUBSCRIPTION_ID, STORAGE_ACCOUNT_NAME, STORAGE_ACCOUNT_KEY, EMAIL_USERNAME, EMAIL_PASSWORD\n\n__author__ = 'Natalie Sanders'\n\n__author__ = 'Natalie Sanders'\n\nfrom azure.servicemanagement import *\nfrom azure.storage im... | ```python
from settings_local import SUBSCRIPTION_ID, STORAGE_ACCOUNT_NAME, STORAGE_ACCOUNT_KEY, EMAIL_USERNAME, EMAIL_PASSWORD
__author__ = 'Natalie Sanders'
__author__ = 'Natalie Sanders'
from azure.servicemanagement import *
from azure.storage import *
from subprocess import call
from os import chdir
import os
im... |
[
{
"content": "```python\nfrom django.test import TestCase\nfrom django.conf import settings\nfrom restclients.exceptions import DataFailureException\nimport restclients.trumba.calendar as Calendar\nfrom restclients.trumba.exceptions import TrumbaException, CalendarNotExist, CalendarOwnByDiffAccount, NoDataRetur... | [
{
"content": "<|memory_start|>```python\nfrom django.test import TestCase\nfrom django.conf import settings\nfrom restclients.exceptions import DataFailureException\nimport restclients.trumba.calendar as Calendar\nfrom restclients.trumba.exceptions import TrumbaException, CalendarNotExist, CalendarOwnByDiffAcco... | ```python
from django.test import TestCase
from django.conf import settings
from restclients.exceptions import DataFailureException
import restclients.trumba.calendar as Calendar
from restclients.trumba.exceptions import TrumbaException, CalendarNotExist, CalendarOwnByDiffAccount, NoDataReturned, UnknownError, Unexpect... |
[
{
"content": "Repeat the full code snippet:\n```python\nimport os.path\n\nfrom PyQt5.QtCore import QObject, QStandardPaths, QDir, pyqtSlot, pyqtProperty\n\nfrom .res import getRes\n\n\nclass Resources(QObject):\n\n appDataDir = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)\n\n soundFileE... | [
{
"content": "Repeat the full code snippet:\n<|memory_start|>```python\nimport os.path\n\nfrom PyQt5.QtCore import QObject, QStandardPaths, QDir, pyqtSlot, pyqtProperty\n\nfrom .res import getRes\n\n\nclass Resources(QObject):\n\n appDataDir = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)\n... | ```python
import os.path
from PyQt5.QtCore import QObject, QStandardPaths, QDir, pyqtSlot, pyqtProperty
from .res import getRes
class Resources(QObject):
appDataDir = QStandardPaths.writableLocation(QStandardPaths.AppDataLocation)
soundFileExt = '.wav'
iconFileExt = '.svg'
homeAppDir = os.path.... |
[
{
"content": "Repeat the code precisely:\n```python\n# coding: utf-8\n\n\nclass Solution:\n def numDecodings(self, s):\n \"\"\"\n :type s: str\n :rtype: int\n \"\"\"\n if s == \"\" or s[0] == '0':\n return 0\n\n # Initialization\n before_previous = ... | [
{
"content": "Repeat the code precisely:\n<|memory_start|>```python\n# coding: utf-8\n\n\nclass Solution:\n def numDecodings(self, s):\n \"\"\"\n :type s: str\n :rtype: int\n \"\"\"\n if s == \"\" or s[0] == '0':\n return 0\n\n # Initialization\n be... | ```python
# coding: utf-8
class Solution:
def numDecodings(self, s):
"""
:type s: str
:rtype: int
"""
if s == "" or s[0] == '0':
return 0
# Initialization
before_previous = 0
previous_one = 0
current = 1
for i in range(1... |
[
{
"content": "Repeat the following code:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n\"\"\" This module contains an implementation of the 'b64' transport. \"\"\"\n\nfrom obfsproxy.transports.base import BaseTransport\n\nimport base64\n\nimport obfsproxy.common.log as logging\n\nlog = logging.get_o... | [
{
"content": "Repeat the following code:\n<|memory_start|>```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n\"\"\" This module contains an implementation of the 'b64' transport. \"\"\"\n\nfrom obfsproxy.transports.base import BaseTransport\n\nimport base64\n\nimport obfsproxy.common.log as logging\n\nlog... | ```python
#!/usr/bin/python
# -*- coding: utf-8 -*-
""" This module contains an implementation of the 'b64' transport. """
from obfsproxy.transports.base import BaseTransport
import base64
import obfsproxy.common.log as logging
log = logging.get_obfslogger()
def _get_b64_chunks_from_str(string):
"""
Given... |
[
{
"content": "Here is the script:\n```python\nimport argparse\nimport os\nimport struct\n\nimport tqdm\n\nfrom program_synthesis.karel.tools import indexed_file\n\n\nif __name__ == '__main__':\n parser = argparse.ArgumentParser()\n parser.add_argument('--input', required=True)\n parser.add_argument('--... | [
{
"content": "Here is the script:\n<|memory_start|>```python\nimport argparse\nimport os\nimport struct\n\nimport tqdm\n\nfrom program_synthesis.karel.tools import indexed_file\n\n\nif __name__ == '__main__':\n parser = argparse.ArgumentParser()\n parser.add_argument('--input', required=True)\n parser.... | ```python
import argparse
import os
import struct
import tqdm
from program_synthesis.karel.tools import indexed_file
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--input', required=True)
parser.add_argument('--num-pieces', required=True, type=int)
args = parser.... |
[
{
"content": "Repeat the code precisely as written (spacing intact):\n```python\n#!/usr/bin/python\n#\n# Copyright (c) 2014-2015 Sylvain Peyrefitte\n#\n# This file is part of rdpy.\n#\n# rdpy is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as publi... | [
{
"content": "Repeat the code precisely as written (spacing intact):\n<|memory_start|>```python\n#!/usr/bin/python\n#\n# Copyright (c) 2014-2015 Sylvain Peyrefitte\n#\n# This file is part of rdpy.\n#\n# rdpy is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public ... | ```python
#!/usr/bin/python
#
# Copyright (c) 2014-2015 Sylvain Peyrefitte
#
# This file is part of rdpy.
#
# rdpy 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... |
[
{
"content": "Here is the snippet:\n```python\n# -*- coding: utf-8 -*-\nfrom south.utils import datetime_utils as 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 # Adding field '... | [
{
"content": "Here is the snippet:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\nfrom south.utils import datetime_utils as 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 ... | ```python
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'SonoSensor.muscle'
db.add_column(u'feed_sonosen... |
[
{
"content": "```python\n#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2016, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the fi... | [
{
"content": "<|memory_start|>```python\n#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2016, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full lice... | ```python
#-----------------------------------------------------------------------------
# Copyright (c) 2005-2016, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed w... |
[
{
"content": "Repeat the full code snippet:\n```python\nfrom __future__ import absolute_import\n# Copyright (c) 2010-2018 openpyxl\n\nimport re\n\nfrom openpyxl.compat import unicode, long\n\nfrom openpyxl.cell import Cell\nfrom openpyxl.utils import get_column_letter\nfrom openpyxl.utils.datetime import from_e... | [
{
"content": "Repeat the full code snippet:\n<|memory_start|>```python\nfrom __future__ import absolute_import\n# Copyright (c) 2010-2018 openpyxl\n\nimport re\n\nfrom openpyxl.compat import unicode, long\n\nfrom openpyxl.cell import Cell\nfrom openpyxl.utils import get_column_letter\nfrom openpyxl.utils.dateti... | ```python
from __future__ import absolute_import
# Copyright (c) 2010-2018 openpyxl
import re
from openpyxl.compat import unicode, long
from openpyxl.cell import Cell
from openpyxl.utils import get_column_letter
from openpyxl.utils.datetime import from_excel
from openpyxl.styles import is_date_format
from openpyxl.s... |
[
{
"content": "```python\n#Copyright (C) 2017 Paolo Galeone <nessuno@nerdz.eu>\n#\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#Exhibit B is not attached; thi... | [
{
"content": "<|memory_start|>```python\n#Copyright (C) 2017 Paolo Galeone <nessuno@nerdz.eu>\n#\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#Exhibit B is n... | ```python
#Copyright (C) 2017 Paolo Galeone <nessuno@nerdz.eu>
#
#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/.
#Exhibit B is not attached; this software is compatible wit... |
[
{
"content": "```python\nimport typing as T\n\nimport pytest\nfrom docstring_parser.numpydoc import parse\n\n\n@pytest.mark.parametrize(\n \"source, expected\",\n [\n (\"\", None),\n (\"\\n\", None),\n (\"Short description\", \"Short description\"),\n (\"\\nShort description\\n... | [
{
"content": "<|memory_start|>```python\nimport typing as T\n\nimport pytest\nfrom docstring_parser.numpydoc import parse\n\n\n@pytest.mark.parametrize(\n \"source, expected\",\n [\n (\"\", None),\n (\"\\n\", None),\n (\"Short description\", \"Short description\"),\n (\"\\nShor... | ```python
import typing as T
import pytest
from docstring_parser.numpydoc import parse
@pytest.mark.parametrize(
"source, expected",
[
("", None),
("\n", None),
("Short description", "Short description"),
("\nShort description\n", "Short description"),
("\n Short des... |
[
{
"content": "Replicate the code snippet exactly, without paraphrasing or reformatting:\n```python\n#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2021\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free softw... | [
{
"content": "Replicate the code snippet exactly, without paraphrasing or reformatting:\n<|memory_start|>```python\n#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2021\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This progr... | ```python
#!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2021
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as publ... |
[
{
"content": "Recreate the entire code block with identical formatting:\n```python\n# -*- coding: utf-8 -*-\n#------------------------------------------------------------\n# pelisalacarta - XBMC Plugin\n# XBMC Tools\n# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n#-----------------------------------... | [
{
"content": "Recreate the entire code block with identical formatting:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n#------------------------------------------------------------\n# pelisalacarta - XBMC Plugin\n# XBMC Tools\n# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/\n#-------------------... | ```python
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# XBMC Tools
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urllib, urllib2
import xbmc
import xbmcgui
import xbm... |
[
{
"content": "```python\n# -*- coding: utf-8 -*-\n\nimport os\n\nfrom json import encoder\nfrom json import dumps\n\nfrom sklearn_porter.estimator.classifier.Classifier import Classifier\n\n\nclass MLPClassifier(Classifier):\n \"\"\"\n See also\n --------\n sklearn.neural_network.MLPClassifier\n\n ... | [
{
"content": "<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\nimport os\n\nfrom json import encoder\nfrom json import dumps\n\nfrom sklearn_porter.estimator.classifier.Classifier import Classifier\n\n\nclass MLPClassifier(Classifier):\n \"\"\"\n See also\n --------\n sklearn.neural_network.MLP... | ```python
# -*- coding: utf-8 -*-
import os
from json import encoder
from json import dumps
from sklearn_porter.estimator.classifier.Classifier import Classifier
class MLPClassifier(Classifier):
"""
See also
--------
sklearn.neural_network.MLPClassifier
http://scikit-learn.org/stable/modules/g... |
[
{
"content": "Replicate the code snippet exactly, without paraphrasing or reformatting:\n```python\n'''Driver for the TSL2561 digital luminosity (light) sensors.\n\nPick one up at http://www.adafruit.com/products/439\n\nAdafruit invests time and resources providing this open source code,\nplease support Adafrui... | [
{
"content": "Replicate the code snippet exactly, without paraphrasing or reformatting:\n<|memory_start|>```python\n'''Driver for the TSL2561 digital luminosity (light) sensors.\n\nPick one up at http://www.adafruit.com/products/439\n\nAdafruit invests time and resources providing this open source code,\nplease... | ```python
'''Driver for the TSL2561 digital luminosity (light) sensors.
Pick one up at http://www.adafruit.com/products/439
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Code ported from Adafruit Arduino lib... |
[
{
"content": "```python\n#!/usr/bin/env python3\nimport os\nfrom setuptools import setup, find_packages\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2) it's easier to type in the README file than to put a raw\n... | [
{
"content": "<|memory_start|>```python\n#!/usr/bin/env python3\nimport os\nfrom setuptools import setup, find_packages\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2) it's easier to type in the README file tha... | ```python
#!/usr/bin/env python3
import os
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read... |
[
{
"content": "Output the full code verbatim (no extra comments):\n```python\n\"\"\"\n Copyright (c) 2018-2019 Alan Yorinks All rights reserved.\n\n This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n Version 3 as published by the F... | [
{
"content": "Output the full code verbatim (no extra comments):\n<|memory_start|>```python\n\"\"\"\n Copyright (c) 2018-2019 Alan Yorinks All rights reserved.\n\n This program is free software; you can redistribute it and/or\n modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE\n Version 3 as pu... | ```python
"""
Copyright (c) 2018-2019 Alan Yorinks All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
Version 3 as published by the Free Software Foundation; either
or (at your option) any later version.
This libra... |
[
{
"content": "Repeat the code precisely:\n```python\n# Copyright (c) 2015 Stephen Warren\n# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.\n#\n# SPDX-License-Identifier: GPL-2.0\n\n# Common logic to interact with U-Boot via the console. This class provides\n# the interface that tests use to e... | [
{
"content": "Repeat the code precisely:\n<|memory_start|>```python\n# Copyright (c) 2015 Stephen Warren\n# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.\n#\n# SPDX-License-Identifier: GPL-2.0\n\n# Common logic to interact with U-Boot via the console. This class provides\n# the interface tha... | ```python
# Copyright (c) 2015 Stephen Warren
# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0
# Common logic to interact with U-Boot via the console. This class provides
# the interface that tests use to execute U-Boot shell commands and wait for
# their results... |
[
{
"content": "Repeat the code exactly as the original, including blank lines:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n#\n# Copyright (C) 2009-2016 Glencoe Software, Inc. All Rights Reserved.\n# Use is subject to license terms supplied in LICENSE.txt\n#\n# This program is free software; you... | [
{
"content": "Repeat the code exactly as the original, including blank lines:\n<|memory_start|>```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n#\n# Copyright (C) 2009-2016 Glencoe Software, Inc. All Rights Reserved.\n# Use is subject to license terms supplied in LICENSE.txt\n#\n# This program is fr... | ```python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2016 Glencoe Software, Inc. All Rights Reserved.
# Use is subject to license terms supplied in LICENSE.txt
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... |
[
{
"content": "Recreate the entire code block with identical formatting:\n```python\n# -*- coding: utf8 -*-\n# This file is part of PYBOSSA.\n#\n# Copyright (C) 2015 SF Isle of Man Limited\n#\n# PYBOSSA is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public... | [
{
"content": "Recreate the entire code block with identical formatting:\n<|memory_start|>```python\n# -*- coding: utf8 -*-\n# This file is part of PYBOSSA.\n#\n# Copyright (C) 2015 SF Isle of Man Limited\n#\n# PYBOSSA is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affer... | ```python
# -*- coding: utf8 -*-
# This file is part of PYBOSSA.
#
# Copyright (C) 2015 SF Isle of Man Limited
#
# PYBOSSA 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... |
[
{
"content": "Repeat the following code:\n```python\nfrom multiprocessing import Process\nfrom bs4 import BeautifulSoup\nimport time\n\nfrom google.google_gmail import get_gmail_lists, get_gmail_message_mime, delete_gmail_message\nfrom config.cfg import put_config_axiscare_url\nfrom log.log import log_general, ... | [
{
"content": "Repeat the following code:\n<|memory_start|>```python\nfrom multiprocessing import Process\nfrom bs4 import BeautifulSoup\nimport time\n\nfrom google.google_gmail import get_gmail_lists, get_gmail_message_mime, delete_gmail_message\nfrom config.cfg import put_config_axiscare_url\nfrom log.log impo... | ```python
from multiprocessing import Process
from bs4 import BeautifulSoup
import time
from google.google_gmail import get_gmail_lists, get_gmail_message_mime, delete_gmail_message
from config.cfg import put_config_axiscare_url
from log.log import log_general, log_error
def eml_list():
return get_gmail_lists()
... |
[
{
"content": "```python\nimport pytest\nimport sys\nimport unittest\n\nfrom exam import Exam, fixture\nfrom lxml import etree, html\nfrom lxml.cssselect import CSSSelector\n\nfrom toronado import Rule, Properties, inline, from_string\n\ntry:\n from lxml.html import soupparser\nexcept ImportError:\n souppa... | [
{
"content": "<|memory_start|>```python\nimport pytest\nimport sys\nimport unittest\n\nfrom exam import Exam, fixture\nfrom lxml import etree, html\nfrom lxml.cssselect import CSSSelector\n\nfrom toronado import Rule, Properties, inline, from_string\n\ntry:\n from lxml.html import soupparser\nexcept ImportEr... | ```python
import pytest
import sys
import unittest
from exam import Exam, fixture
from lxml import etree, html
from lxml.cssselect import CSSSelector
from toronado import Rule, Properties, inline, from_string
try:
from lxml.html import soupparser
except ImportError:
soupparser = None
class TestCase(Exam, u... |
[
{
"content": "Return the code exactly, with no changes:\n```python\nimport pygame\r\n\r\npygame.init()\r\n\r\ndisplay_width = 800\r\ndisplay_height = 600\r\n\r\ngameDisplay = pygame.display.set_mode((display_width,display_height))\r\npygame.display.set_caption('PyPet')\r\n\r\nblack = (0,0,0)\r\nwhite = (255,255... | [
{
"content": "Return the code exactly, with no changes:\n<|memory_start|>```python\nimport pygame\r\n\r\npygame.init()\r\n\r\ndisplay_width = 800\r\ndisplay_height = 600\r\n\r\ngameDisplay = pygame.display.set_mode((display_width,display_height))\r\npygame.display.set_caption('PyPet')\r\n\r\nblack = (0,0,0)\r\n... | ```python
import pygame
pygame.init()
display_width = 800
display_height = 600
gameDisplay = pygame.display.set_mode((display_width,display_height))
pygame.display.set_caption('PyPet')
black = (0,0,0)
white = (255,255,255)
clock = pygame.time.Clock()
crashed = False
catImg = pygame.image.load('resou... |
[
{
"content": "```python\n#!/usr/bin/python\n#\n# Fishfeedtime powers down Powerheads/Filters/Pumps of your choice (which are connected to 433.92MHz power socket controllers)\n# for a set duration.\n#\n\n## GPIO Pin Definitions\n# Pin with button circuit GPIO Pullup\nBUTTON = 25\n# LED Pin if present...\nLED = T... | [
{
"content": "<|memory_start|>```python\n#!/usr/bin/python\n#\n# Fishfeedtime powers down Powerheads/Filters/Pumps of your choice (which are connected to 433.92MHz power socket controllers)\n# for a set duration.\n#\n\n## GPIO Pin Definitions\n# Pin with button circuit GPIO Pullup\nBUTTON = 25\n# LED Pin if pre... | ```python
#!/usr/bin/python
#
# Fishfeedtime powers down Powerheads/Filters/Pumps of your choice (which are connected to 433.92MHz power socket controllers)
# for a set duration.
#
## GPIO Pin Definitions
# Pin with button circuit GPIO Pullup
BUTTON = 25
# LED Pin if present...
LED = True
LEDPIN = 11
# Pin connect to ... |
[
{
"content": "Repeat the full code snippet:\n```python\nimport argparse\nimport os\nimport re\nimport sys\n\nfrom django.core.management import base\n\n\nclass Command(base.BaseCommand):\n help = \\\n \"\"\"\n Clears .pyc files from the project.\n \"\"\"\n\n pattern = r'^.+\\.pyc$'\n\... | [
{
"content": "Repeat the full code snippet:\n<|memory_start|>```python\nimport argparse\nimport os\nimport re\nimport sys\n\nfrom django.core.management import base\n\n\nclass Command(base.BaseCommand):\n help = \\\n \"\"\"\n Clears .pyc files from the project.\n \"\"\"\n\n pattern = ... | ```python
import argparse
import os
import re
import sys
from django.core.management import base
class Command(base.BaseCommand):
help = \
"""
Clears .pyc files from the project.
"""
pattern = r'^.+\.pyc$'
def add_arguments(self, parser):
parser.add_argument(
... |
[
{
"content": "```python\n#!/usr/bin/env python\n# coding: utf-8\n\nimport numpy as np\n\n\ndef identity_function(x):\n return x\n\n\ndef step_function(x):\n return np.array(x > 0, dtype=np.int)\n\n\ndef sigmoid(x):\n return 1 / (1 + np.exp(-x))\n\n\ndef sigmoid_grad(x):\n return (1.0 - sigmoid(x)) *... | [
{
"content": "<|memory_start|>```python\n#!/usr/bin/env python\n# coding: utf-8\n\nimport numpy as np\n\n\ndef identity_function(x):\n return x\n\n\ndef step_function(x):\n return np.array(x > 0, dtype=np.int)\n\n\ndef sigmoid(x):\n return 1 / (1 + np.exp(-x))\n\n\ndef sigmoid_grad(x):\n return (1.0... | ```python
#!/usr/bin/env python
# coding: utf-8
import numpy as np
def identity_function(x):
return x
def step_function(x):
return np.array(x > 0, dtype=np.int)
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def sigmoid_grad(x):
return (1.0 - sigmoid(x)) * sigmoid(x)
def relu(x):
return np.m... |
[
{
"content": "Reconstruct the code file line-for-line, unmodified:\n```python\n# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.... | [
{
"content": "Reconstruct the code file line-for-line, unmodified:\n<|memory_start|>```python\n# Copyright 2016 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#... | ```python
# Copyright 2016 Google 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
#
# Unless required by applicable law or agreed to in... |
[
{
"content": "Here is some code:\n```python\n#!/usr/bin/env python\n# Test this by entering the search string \"election\" on a command line like this:\n# /home/wevote/WeVoteServer/search/query_test_script.py election\n\nfrom elasticsearch import Elasticsearch\nimport sys\n\nes = Elasticsearch([\"172.31.24.246:... | [
{
"content": "Here is some code:\n<|memory_start|>```python\n#!/usr/bin/env python\n# Test this by entering the search string \"election\" on a command line like this:\n# /home/wevote/WeVoteServer/search/query_test_script.py election\n\nfrom elasticsearch import Elasticsearch\nimport sys\n\nes = Elasticsearch([... | ```python
#!/usr/bin/env python
# Test this by entering the search string "election" on a command line like this:
# /home/wevote/WeVoteServer/search/query_test_script.py election
from elasticsearch import Elasticsearch
import sys
es = Elasticsearch(["172.31.24.246:9200"], timeout = 120, max_retries = 5, retry_on_time... |
[
{
"content": "```python\nimport asyncio, contextlib, io, inspect, sys, functools, subprocess, discord\nfrom discord.ext import commands\nfrom .utils import checks\n\n@contextlib.contextmanager\ndef stdoutIO(stdout=None):\n old = sys.stdout\n if stdout == None:\n stdout = io.StringIO... | [
{
"content": "<|memory_start|>```python\nimport asyncio, contextlib, io, inspect, sys, functools, subprocess, discord\nfrom discord.ext import commands\nfrom .utils import checks\n\n@contextlib.contextmanager\ndef stdoutIO(stdout=None):\n old = sys.stdout\n if stdout == None:\n stdo... | ```python
import asyncio, contextlib, io, inspect, sys, functools, subprocess, discord
from discord.ext import commands
from .utils import checks
@contextlib.contextmanager
def stdoutIO(stdout=None):
old = sys.stdout
if stdout == None:
stdout = io.StringIO()
sys.stdout = stdout
... |
[
{
"content": "```python\nimport os.path\n\nimport pygame.mixer\n\nimport data\n\nLOOP = -1\n\n\ndef load_music(music_ref):\n \"\"\"\n Charge une musique en mémoire mais ne la joue pas\n music_ref - La référence de la musique\n \"\"\"\n music_path = data.get_sound_path(\n os.path.join(\"mus... | [
{
"content": "<|memory_start|>```python\nimport os.path\n\nimport pygame.mixer\n\nimport data\n\nLOOP = -1\n\n\ndef load_music(music_ref):\n \"\"\"\n Charge une musique en mémoire mais ne la joue pas\n music_ref - La référence de la musique\n \"\"\"\n music_path = data.get_sound_path(\n os... | ```python
import os.path
import pygame.mixer
import data
LOOP = -1
def load_music(music_ref):
"""
Charge une musique en mémoire mais ne la joue pas
music_ref - La référence de la musique
"""
music_path = data.get_sound_path(
os.path.join("music", music_ref + ".ogg"))
pygame.mixer.mu... |
[
{
"content": "Repeat the code exactly:\n```python\nimport sys\n\ndef find_max_crossing_subarray(A, low, mid, high):\n\tleft_sum = -sys.maxint\n\tsum = 0\n\ti = mid\n\tmax_left = mid\n\twhile i >= low:\n\t\tsum += A[i]\n\t\tif sum > left_sum:\n\t\t\tmax_left = i\n\t\t\tleft_sum = sum\n\t\ti -= 1\n\n\tright_sum =... | [
{
"content": "Repeat the code exactly:\n<|memory_start|>```python\nimport sys\n\ndef find_max_crossing_subarray(A, low, mid, high):\n\tleft_sum = -sys.maxint\n\tsum = 0\n\ti = mid\n\tmax_left = mid\n\twhile i >= low:\n\t\tsum += A[i]\n\t\tif sum > left_sum:\n\t\t\tmax_left = i\n\t\t\tleft_sum = sum\n\t\ti -= 1\... | ```python
import sys
def find_max_crossing_subarray(A, low, mid, high):
left_sum = -sys.maxint
sum = 0
i = mid
max_left = mid
while i >= low:
sum += A[i]
if sum > left_sum:
max_left = i
left_sum = sum
i -= 1
right_sum = -sys.maxint
sum = 0
i = mid + 1
max_right = mid + 1
while i <= high:
sum +... |
[
{
"content": "Reconstruct the code exactly:\n```python\n# -*- coding: utf-8 -*-\n# © 2016 Chafique DELLI @ Akretion\n# Copyright (C) 2016-Today: GRAP (http://www.grap.coop)\n# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)\n# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).\n\nfrom... | [
{
"content": "Reconstruct the code exactly:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n# © 2016 Chafique DELLI @ Akretion\n# Copyright (C) 2016-Today: GRAP (http://www.grap.coop)\n# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)\n# License AGPL-3.0 or later (http://www.gnu.org/licenses/agp... | ```python
# -*- coding: utf-8 -*-
# © 2016 Chafique DELLI @ Akretion
# Copyright (C) 2016-Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, api, fields
import odoo.addons.decimal_... |
[
{
"content": "```python\n#!/usr/bin/python\n#\n# linearize-data.py: Construct a linear, no-fork version of the chain.\n#\n# Copyright (c) 2013-2014 The Moneta developers\n# Distributed under the MIT/X11 software license, see the accompanying\n# file COPYING or http://www.opensource.org/licenses/mit-license.php.... | [
{
"content": "<|memory_start|>```python\n#!/usr/bin/python\n#\n# linearize-data.py: Construct a linear, no-fork version of the chain.\n#\n# Copyright (c) 2013-2014 The Moneta developers\n# Distributed under the MIT/X11 software license, see the accompanying\n# file COPYING or http://www.opensource.org/licenses/... | ```python
#!/usr/bin/python
#
# linearize-data.py: Construct a linear, no-fork version of the chain.
#
# Copyright (c) 2013-2014 The Moneta developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from __future__ import pr... |
[
{
"content": "Repeat the code exactly as the original, including blank lines:\n```python\nimport unittest\n\nfrom astropy import constants as astroconst\nfrom astropy import units as u\nfrom astropy.time import Time\n\nfrom CelestialMechanics.kepler import constants\nfrom CelestialMechanics.orbits import ellips... | [
{
"content": "Repeat the code exactly as the original, including blank lines:\n<|memory_start|>```python\nimport unittest\n\nfrom astropy import constants as astroconst\nfrom astropy import units as u\nfrom astropy.time import Time\n\nfrom CelestialMechanics.kepler import constants\nfrom CelestialMechanics.orbi... | ```python
import unittest
from astropy import constants as astroconst
from astropy import units as u
from astropy.time import Time
from CelestialMechanics.kepler import constants
from CelestialMechanics.orbits import ellipse
from CelestialMechanics.orbits.ellipse import delta_t_t0_aeangle
class MyTestCase(unittest.... |
[
{
"content": "```python\n#! /usr/bin/env python3\n# Name: PySongGen\n#\n# Version: 0.0.1\n#\n# Author: Sinuhe Jaime Valencia\n#\n# Author_email: sierisimo@gmail.com\n#\n# Description:\n# Main code for running instances of pysonggen\n\n\nfrom pysonggen import grammar\nfrom pysonggen.songgen import SongG\n\ng... | [
{
"content": "<|memory_start|>```python\n#! /usr/bin/env python3\n# Name: PySongGen\n#\n# Version: 0.0.1\n#\n# Author: Sinuhe Jaime Valencia\n#\n# Author_email: sierisimo@gmail.com\n#\n# Description:\n# Main code for running instances of pysonggen\n\n\nfrom pysonggen import grammar\nfrom pysonggen.songgen i... | ```python
#! /usr/bin/env python3
# Name: PySongGen
#
# Version: 0.0.1
#
# Author: Sinuhe Jaime Valencia
#
# Author_email: sierisimo@gmail.com
#
# Description:
# Main code for running instances of pysonggen
from pysonggen import grammar
from pysonggen.songgen import SongG
gram = grammar.Grammar('./examples/examp... |
[
{
"content": "Repeat the code exactly as the original, including blank lines:\n```python\n# -*- coding: iso-8859-1 -*-\n# Copyright (C) 2000-2009 Bastian Kleineidam\n\"\"\"\nGroup filter rules into folders.\n\"\"\"\nfrom ... import fileutil, configuration\nfrom . import Rule\n\n\ndef recalc_up_down(rules):\n ... | [
{
"content": "Repeat the code exactly as the original, including blank lines:\n<|memory_start|>```python\n# -*- coding: iso-8859-1 -*-\n# Copyright (C) 2000-2009 Bastian Kleineidam\n\"\"\"\nGroup filter rules into folders.\n\"\"\"\nfrom ... import fileutil, configuration\nfrom . import Rule\n\n\ndef recalc_up_d... | ```python
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2000-2009 Bastian Kleineidam
"""
Group filter rules into folders.
"""
from ... import fileutil, configuration
from . import Rule
def recalc_up_down(rules):
"""
Add .up and .down attributes to rules, used for display up/down
arrows in GUIs
"""
... |
[
{
"content": "Repeat the full code snippet:\n```python\n#@+leo-ver=5-thin\n#@+node:2014fall.20141212095015.1775: * @file wsgi.py\n# coding=utf-8\n# 上面的程式內容編碼必須在程式的第一或者第二行才會有作用\n\n################# (1) 模組導入區\n# 導入 cherrypy 模組, 為了在 OpenShift 平台上使用 cherrypy 模組, 必須透過 setup.py 安裝\n\n\n#@@language python\n#@@tabwidth... | [
{
"content": "Repeat the full code snippet:\n<|memory_start|>```python\n#@+leo-ver=5-thin\n#@+node:2014fall.20141212095015.1775: * @file wsgi.py\n# coding=utf-8\n# 上面的程式內容編碼必須在程式的第一或者第二行才會有作用\n\n################# (1) 模組導入區\n# 導入 cherrypy 模組, 為了在 OpenShift 平台上使用 cherrypy 模組, 必須透過 setup.py 安裝\n\n\n#@@language pyt... | ```python
#@+leo-ver=5-thin
#@+node:2014fall.20141212095015.1775: * @file wsgi.py
# coding=utf-8
# 上面的程式內容編碼必須在程式的第一或者第二行才會有作用
################# (1) 模組導入區
# 導入 cherrypy 模組, 為了在 OpenShift 平台上使用 cherrypy 模組, 必須透過 setup.py 安裝
#@@language python
#@@tabwidth -4
#@+<<declarations>>
#@+node:2014fall.20141212095015.1776: *... |
[
{
"content": "Reconstruct the code exactly:\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 # Adding field 'CustomEmail.system'\n ... | [
{
"content": "Reconstruct the code exactly:\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 # Adding field 'CustomEmai... | ```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):
# Adding field 'CustomEmail.system'
db.add_column('admin_custom_emails', 'system',
... |
[
{
"content": "```python\n\"\"\"\nThis file is part of PUQ\nCopyright (c) 2013 PUQ Authors\nSee LICENSE file for terms.\n\"\"\"\nfrom __future__ import absolute_import, division, print_function\n\nimport time, os, re, h5py, sys, string\nimport numpy as np\nfrom puq.testprogram import TestProgram\nfrom numpy impo... | [
{
"content": "<|memory_start|>```python\n\"\"\"\nThis file is part of PUQ\nCopyright (c) 2013 PUQ Authors\nSee LICENSE file for terms.\n\"\"\"\nfrom __future__ import absolute_import, division, print_function\n\nimport time, os, re, h5py, sys, string\nimport numpy as np\nfrom puq.testprogram import TestProgram\... | ```python
"""
This file is part of PUQ
Copyright (c) 2013 PUQ Authors
See LICENSE file for terms.
"""
from __future__ import absolute_import, division, print_function
import time, os, re, h5py, sys, string
import numpy as np
from puq.testprogram import TestProgram
from numpy import ndarray
from puq.hdf import get_outp... |
[
{
"content": "Here is a code snippet:\n```python\n# -*- coding: utf-8 -*-\n\n# Form implementation generated from reading ui file '/home/gugu/w/calibre/src/calibre/gui2/dialogs/conversion_error.ui'\n#\n# Created: Thu Jul 19 23:32:30 2012\n# by: PyQt4 UI code generator 4.9.1\n#\n# WARNING! All changes made ... | [
{
"content": "Here is a code snippet:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\n# Form implementation generated from reading ui file '/home/gugu/w/calibre/src/calibre/gui2/dialogs/conversion_error.ui'\n#\n# Created: Thu Jul 19 23:32:30 2012\n# by: PyQt4 UI code generator 4.9.1\n#\n# WARNING! A... | ```python
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/gugu/w/calibre/src/calibre/gui2/dialogs/conversion_error.ui'
#
# Created: Thu Jul 19 23:32:30 2012
# by: PyQt4 UI code generator 4.9.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, Q... |
[
{
"content": "```python\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\"\"\"A simple (improved + 1) ACBT scraper to download course files (by /u/chehanr).\"\"\"\n\nimport getpass\nimport os\nimport urllib\nfrom argparse import ArgumentParser\n\nimport requests\nfrom bs4 import BeautifulSoup, SoupStrainer\... | [
{
"content": "<|memory_start|>```python\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n\"\"\"A simple (improved + 1) ACBT scraper to download course files (by /u/chehanr).\"\"\"\n\nimport getpass\nimport os\nimport urllib\nfrom argparse import ArgumentParser\n\nimport requests\nfrom bs4 import BeautifulSou... | ```python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""A simple (improved + 1) ACBT scraper to download course files (by /u/chehanr)."""
import getpass
import os
import urllib
from argparse import ArgumentParser
import requests
from bs4 import BeautifulSoup, SoupStrainer
CWD = os.getcwd()
class Download:
... |
[
{
"content": "```python\nimport os\nimport sys\n\nimport tensorflow as tf\nimport Input\n\nimport os, re\n\nFLAGS = tf.app.flags.FLAGS\nTOWER_NAME = 'tower'\n\ntf.app.flags.DEFINE_integer('batch_size', 1, \"hello\")\n\ndef _activation_summary(x):\n with tf.device('/cpu:0'):\n tensor_name = re.sub('%s_... | [
{
"content": "<|memory_start|>```python\nimport os\nimport sys\n\nimport tensorflow as tf\nimport Input\n\nimport os, re\n\nFLAGS = tf.app.flags.FLAGS\nTOWER_NAME = 'tower'\n\ntf.app.flags.DEFINE_integer('batch_size', 1, \"hello\")\n\ndef _activation_summary(x):\n with tf.device('/cpu:0'):\n tensor_na... | ```python
import os
import sys
import tensorflow as tf
import Input
import os, re
FLAGS = tf.app.flags.FLAGS
TOWER_NAME = 'tower'
tf.app.flags.DEFINE_integer('batch_size', 1, "hello")
def _activation_summary(x):
with tf.device('/cpu:0'):
tensor_name = re.sub('%s_[0-9]*/' % TOWER_NAME, '', x.op.name)
... |
[
{
"content": "```python\n# -*- encoding: utf-8 -*-\nfrom django.views.generic import TemplateView\n\nfrom braces.views import (\n LoginRequiredMixin,\n StaffuserRequiredMixin,\n)\n\nfrom base.view_utils import BaseMixin\nfrom block.forms import ContentEmptyForm\nfrom block.views import (\n ContentCreat... | [
{
"content": "<|memory_start|>```python\n# -*- encoding: utf-8 -*-\nfrom django.views.generic import TemplateView\n\nfrom braces.views import (\n LoginRequiredMixin,\n StaffuserRequiredMixin,\n)\n\nfrom base.view_utils import BaseMixin\nfrom block.forms import ContentEmptyForm\nfrom block.views import (\n... | ```python
# -*- encoding: utf-8 -*-
from django.views.generic import TemplateView
from braces.views import (
LoginRequiredMixin,
StaffuserRequiredMixin,
)
from base.view_utils import BaseMixin
from block.forms import ContentEmptyForm
from block.views import (
ContentCreateView,
ContentPublishView,
... |
[
{
"content": "Reconstruct the code file line-for-line, unmodified:\n```python\n#!/usr/bin/env python2\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Jun 7 16:19:11 2017\n\n@author: psamtik071\n\"\"\"\n\nfrom workflow.data import trip_data\nimport os\n\n\nfor year in xrange(2017,2018):\n for month in xrang... | [
{
"content": "Reconstruct the code file line-for-line, unmodified:\n<|memory_start|>```python\n#!/usr/bin/env python2\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Jun 7 16:19:11 2017\n\n@author: psamtik071\n\"\"\"\n\nfrom workflow.data import trip_data\nimport os\n\n\nfor year in xrange(2017,2018):\n fo... | ```python
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 7 16:19:11 2017
@author: psamtik071
"""
from workflow.data import trip_data
import os
for year in xrange(2017,2018):
for month in xrange(1,13):
basepath = 'tripdata/'
to_filename = '{}{:02}-citibike-tripdata.csv'.f... |
[
{
"content": "```python\n\"\"\"Event arrays are 2D label arrays (time x ROI) that are generated from an\narray of fluorescent traces of the same size.\n\n Uses the following inequality to determine if an event occured at a specific time in a cell:\n dF/F of cell > (baseline of cell + std_threshold * s... | [
{
"content": "<|memory_start|>```python\n\"\"\"Event arrays are 2D label arrays (time x ROI) that are generated from an\narray of fluorescent traces of the same size.\n\n Uses the following inequality to determine if an event occured at a specific time in a cell:\n dF/F of cell > (baseline of cell + s... | ```python
"""Event arrays are 2D label arrays (time x ROI) that are generated from an
array of fluorescent traces of the same size.
Uses the following inequality to determine if an event occured at a specific time in a cell:
dF/F of cell > (baseline of cell + std_threshold * std of cell * alpha)
See t... |
[
{
"content": "```python\nimport sys\n\ntry:\n from django.conf import settings\n\n settings.configure(\n DEBUG=True,\n USE_TZ=True,\n DATABASES={\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n }\n },\n ROOT_URLCONF=\... | [
{
"content": "<|memory_start|>```python\nimport sys\n\ntry:\n from django.conf import settings\n\n settings.configure(\n DEBUG=True,\n USE_TZ=True,\n DATABASES={\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n }\n },\n ... | ```python
import sys
try:
from django.conf import settings
settings.configure(
DEBUG=True,
USE_TZ=True,
DATABASES={
"default": {
"ENGINE": "django.db.backends.sqlite3",
}
},
ROOT_URLCONF="dedal.urls",
INSTALLED_APPS=[
... |
[
{
"content": "Write the code verbatim:\n```python\nOpenness = ['Adventurousness','Artistic interests','Emotionality','Imagination','Intellect','Authority-challenging']\nConscientiousness = ['Achievement striving','Cautiousness','Dutifulness','Orderliness','Self-discipline','Self-efficacy']\nExtraversion = ['Act... | [
{
"content": "Write the code verbatim:\n<|memory_start|>```python\nOpenness = ['Adventurousness','Artistic interests','Emotionality','Imagination','Intellect','Authority-challenging']\nConscientiousness = ['Achievement striving','Cautiousness','Dutifulness','Orderliness','Self-discipline','Self-efficacy']\nExtr... | ```python
Openness = ['Adventurousness','Artistic interests','Emotionality','Imagination','Intellect','Authority-challenging']
Conscientiousness = ['Achievement striving','Cautiousness','Dutifulness','Orderliness','Self-discipline','Self-efficacy']
Extraversion = ['Activity level','Assertiveness','Cheerfulness','Excite... |
[
{
"content": "Repeat the code exactly as the original, including blank lines:\n```python\nrun_script = True\n\nimport scribus\nfrom tempfile import NamedTemporaryFile\n\ntry:\n import markdown\nexcept:\n scribus.messageBox('python-markdown not installed',\n 'You need to install python-markdown for this... | [
{
"content": "Repeat the code exactly as the original, including blank lines:\n<|memory_start|>```python\nrun_script = True\n\nimport scribus\nfrom tempfile import NamedTemporaryFile\n\ntry:\n import markdown\nexcept:\n scribus.messageBox('python-markdown not installed',\n 'You need to install python-m... | ```python
run_script = True
import scribus
from tempfile import NamedTemporaryFile
try:
import markdown
except:
scribus.messageBox('python-markdown not installed',
'You need to install python-markdown for this script to work', scribus.ICON_WARNING)
run_script = False
run_script &= bool(scribus.getSel... |
[
{
"content": "Reproduce the code exactly as provided (keep formatting):\n```python\nfrom compat import patterns, url\n\n\nurlpatterns = patterns('copywriting',\n url(r'^author/(?P<author>\\w[^/]+)$', 'views.listArticlesByAuthor'),\n url(r'^author/(?P<author>\\w[^/]+)/$', 'views.listArticlesByAuthor', name... | [
{
"content": "Reproduce the code exactly as provided (keep formatting):\n<|memory_start|>```python\nfrom compat import patterns, url\n\n\nurlpatterns = patterns('copywriting',\n url(r'^author/(?P<author>\\w[^/]+)$', 'views.listArticlesByAuthor'),\n url(r'^author/(?P<author>\\w[^/]+)/$', 'views.listArticle... | ```python
from compat import patterns, url
urlpatterns = patterns('copywriting',
url(r'^author/(?P<author>\w[^/]+)$', 'views.listArticlesByAuthor'),
url(r'^author/(?P<author>\w[^/]+)/$', 'views.listArticlesByAuthor', name='copywriting_by_author'),
url(r'^tag/(?P<in_tag>\w[^/]+)$', 'views.withTag'),
ur... |
[
{
"content": "Here is a code snippet:\n```python\n\"\"\" reports.py\r\nThis file contains report definitions. A report definition is some kind \r\ncallable that should output data in whatever format. Once defined, it \r\nshould be added to the ALL_REPORTS dictionary, where the key is the \r\npublic name used to... | [
{
"content": "Here is a code snippet:\n<|memory_start|>```python\n\"\"\" reports.py\r\nThis file contains report definitions. A report definition is some kind \r\ncallable that should output data in whatever format. Once defined, it \r\nshould be added to the ALL_REPORTS dictionary, where the key is the \r\npub... | ```python
""" reports.py
This file contains report definitions. A report definition is some kind
callable that should output data in whatever format. Once defined, it
should be added to the ALL_REPORTS dictionary, where the key is the
public name used to reference the report, like from the CLI.
Example defini... |
[
{
"content": "Provide an exact copy of the source code:\n```python\nimport requests\n\nfrom .sentry_api_client.api import get_api_instance\n\n\nclass Patrol:\n def __init__(self, sentry_api_token, timeout=None):\n self.headers = {\"Authorization\": \"Bearer {}\".format(sentry_api_token)}\n self... | [
{
"content": "Provide an exact copy of the source code:\n<|memory_start|>```python\nimport requests\n\nfrom .sentry_api_client.api import get_api_instance\n\n\nclass Patrol:\n def __init__(self, sentry_api_token, timeout=None):\n self.headers = {\"Authorization\": \"Bearer {}\".format(sentry_api_token... | ```python
import requests
from .sentry_api_client.api import get_api_instance
class Patrol:
def __init__(self, sentry_api_token, timeout=None):
self.headers = {"Authorization": "Bearer {}".format(sentry_api_token)}
self.timeout = timeout
self.api = get_api_instance(sentry_api_token, timeo... |
[
{
"content": "Here is a code snippet:\n```python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2013 - 2015 CoNWeT Lab., Universidad Politécnica de Madrid\n\n# This file belongs to the business-charging-backend\n# of the Business API Ecosystem.\n\n# This program is free software: you can redistribute it and/or mod... | [
{
"content": "Here is a code snippet:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2013 - 2015 CoNWeT Lab., Universidad Politécnica de Madrid\n\n# This file belongs to the business-charging-backend\n# of the Business API Ecosystem.\n\n# This program is free software: you can redistribu... | ```python
# -*- coding: utf-8 -*-
# Copyright (c) 2013 - 2015 CoNWeT Lab., Universidad Politécnica de Madrid
# This file belongs to the business-charging-backend
# of the Business API Ecosystem.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Publ... |
[
{
"content": "Here is a code file:\n```python\n# Copyright (c) 2014 Artem Rozumenko (artyom.rozumenko@gmail.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# ht... | [
{
"content": "Here is a code file:\n<|memory_start|>```python\n# Copyright (c) 2014 Artem Rozumenko (artyom.rozumenko@gmail.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... | ```python
# Copyright (c) 2014 Artem Rozumenko (artyom.rozumenko@gmail.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 ... |
[
{
"content": "Return the code exactly, with no changes:\n```python\nfrom sqlalchemy import Column, String, Integer, DateTime, PickleType, Boolean\nfrom mcmeAPI.db import Base\n\nclass User(Base):\n __tablename__ = 'users'\n\n name = Column(String(20), primary_key=True)\n group = Column(String(15)) #ran... | [
{
"content": "Return the code exactly, with no changes:\n<|memory_start|>```python\nfrom sqlalchemy import Column, String, Integer, DateTime, PickleType, Boolean\nfrom mcmeAPI.db import Base\n\nclass User(Base):\n __tablename__ = 'users'\n\n name = Column(String(20), primary_key=True)\n group = Column(... | ```python
from sqlalchemy import Column, String, Integer, DateTime, PickleType, Boolean
from mcmeAPI.db import Base
class User(Base):
__tablename__ = 'users'
name = Column(String(20), primary_key=True)
group = Column(String(15)) #rank
updated = Column(DateTime())
ob = Column(Boolean)
staff = C... |
[
{
"content": "Here is the script:\n```python\n# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.... | [
{
"content": "Here is the script:\n<|memory_start|>```python\n# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#... | ```python
# Copyright 2017 The TensorFlow Authors. 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 ... |
[
{
"content": "Write out the code verbatim, preserving indentation and whitespace:\n```python\n# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtai... | [
{
"content": "Write out the code verbatim, preserving indentation and whitespace:\n<|memory_start|>```python\n# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\... | ```python
# Copyright 2017 The TensorFlow Authors. 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 ... |
[
{
"content": "Here is some code:\n```python\n# -*- coding: utf-8 -*-\nfrom django.utils import timezone\n\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.db import models, transaction\nfrom django.db.models import F\nfrom... | [
{
"content": "Here is some code:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\nfrom django.utils import timezone\n\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.db import models, transaction\nfrom django.db.model... | ```python
# -*- coding: utf-8 -*-
from django.utils import timezone
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.db import models, transaction
from django.db.models import F
from django.utils.translation import ugettext_lazy as ... |
[
{
"content": "Provide an exact copy of the source code:\n```python\n# coding=utf-8\n#\n# Copyright © 2015 VMware, Inc. All Rights Reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the... | [
{
"content": "Provide an exact copy of the source code:\n<|memory_start|>```python\n# coding=utf-8\n#\n# Copyright © 2015 VMware, Inc. All Rights Reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\n# documentation files (the \"Software\")... | ```python
# coding=utf-8
#
# Copyright © 2015 VMware, Inc. All Rights Reserved.
#
# 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 ... |
[
{
"content": "Repeat the code exactly as the original, including blank lines:\n```python\n\"\"\"KF experiments development.\"\"\"\nfrom cgmtools import utils\nfrom cgmtools import plotting\nfrom cgmtools.forecast import kf\nimport datetime\nimport numpy as np\nimport pickle as pkl\n\n###########################... | [
{
"content": "Repeat the code exactly as the original, including blank lines:\n<|memory_start|>```python\n\"\"\"KF experiments development.\"\"\"\nfrom cgmtools import utils\nfrom cgmtools import plotting\nfrom cgmtools.forecast import kf\nimport datetime\nimport numpy as np\nimport pickle as pkl\n\n###########... | ```python
"""KF experiments development."""
from cgmtools import utils
from cgmtools import plotting
from cgmtools.forecast import kf
import datetime
import numpy as np
import pickle as pkl
###############################################################################
# Load full data set from pickle file (see data_... |
[
{
"content": "```python\n\"\"\" Combine several other nodes together in parallel\n\nThis is useful to be combined with the\n:class:`~pySPACE.missions.nodes.meta.flow_node.FlowNode`.\n\"\"\"\n\nimport numpy\nfrom pySPACE.environments.chains.node_chain import NodeChainFactory\n\nfrom pySPACE.missions.nodes.base_n... | [
{
"content": "<|memory_start|>```python\n\"\"\" Combine several other nodes together in parallel\n\nThis is useful to be combined with the\n:class:`~pySPACE.missions.nodes.meta.flow_node.FlowNode`.\n\"\"\"\n\nimport numpy\nfrom pySPACE.environments.chains.node_chain import NodeChainFactory\n\nfrom pySPACE.missi... | ```python
""" Combine several other nodes together in parallel
This is useful to be combined with the
:class:`~pySPACE.missions.nodes.meta.flow_node.FlowNode`.
"""
import numpy
from pySPACE.environments.chains.node_chain import NodeChainFactory
from pySPACE.missions.nodes.base_node import BaseNode
from pySPACE.resou... |
[
{
"content": "Here is some code:\n```python\nfrom model.group import Group\n\nclass GroupHelper:\n\n def __init__(self, app):\n self.app = app\n\n def open_group_page(self):\n wd = self.app.wd\n if not (wd.current_url.endswith(\"/group.php\") and len(wd.find_elements_by_name(\"new\"))... | [
{
"content": "Here is some code:\n<|memory_start|>```python\nfrom model.group import Group\n\nclass GroupHelper:\n\n def __init__(self, app):\n self.app = app\n\n def open_group_page(self):\n wd = self.app.wd\n if not (wd.current_url.endswith(\"/group.php\") and len(wd.find_elements_b... | ```python
from model.group import Group
class GroupHelper:
def __init__(self, app):
self.app = app
def open_group_page(self):
wd = self.app.wd
if not (wd.current_url.endswith("/group.php") and len(wd.find_elements_by_name("new")) > 0):
wd.find_element_by_link_text("groups"... |
[
{
"content": "Return the code unaltered:\n```python\nfrom manifestgen.app import convert_filenames_to_urls\n\nimport unittest\n\nclass TestConvertFilenamesToUrls(unittest.TestCase):\n \n def test_cannonical(self):\n result = convert_filenames_to_urls( [ '/usr/proj/index.html', '/usr/proj/js/util.js... | [
{
"content": "Return the code unaltered:\n<|memory_start|>```python\nfrom manifestgen.app import convert_filenames_to_urls\n\nimport unittest\n\nclass TestConvertFilenamesToUrls(unittest.TestCase):\n \n def test_cannonical(self):\n result = convert_filenames_to_urls( [ '/usr/proj/index.html', '/usr... | ```python
from manifestgen.app import convert_filenames_to_urls
import unittest
class TestConvertFilenamesToUrls(unittest.TestCase):
def test_cannonical(self):
result = convert_filenames_to_urls( [ '/usr/proj/index.html', '/usr/proj/js/util.js'], '/usr/proj', '/sample/static' )
self.assertEqu... |
[
{
"content": "Here is some code:\n```python\n#!/usr/bin/env python\r\n# -*- coding: utf-8 -*-\r\n\r\n# ---------------------------------------------------\r\n# Copyright (c) 2013 Pablo Caro. All Rights Reserved.\r\n# Pablo Caro <me@pcaro.es> - http://pcaro.es/\r\n# ProgressBar.py\r\n# --------------------------... | [
{
"content": "Here is some code:\n<|memory_start|>```python\n#!/usr/bin/env python\r\n# -*- coding: utf-8 -*-\r\n\r\n# ---------------------------------------------------\r\n# Copyright (c) 2013 Pablo Caro. All Rights Reserved.\r\n# Pablo Caro <me@pcaro.es> - http://pcaro.es/\r\n# ProgressBar.py\r\n# ----------... | ```python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ---------------------------------------------------
# Copyright (c) 2013 Pablo Caro. All Rights Reserved.
# Pablo Caro <me@pcaro.es> - http://pcaro.es/
# ProgressBar.py
# ---------------------------------------------------
import sys
class Progre... |
[
{
"content": "Here is the script:\n```python\n#! /usr/bin/env python\n\n# Goal: Merge and run coverage analysis on the two Samples generated.\n# Output: A mered bam file, and coverage analysis on the merged bam file.\n\nfrom optparse import OptionParser\nimport os\nimport os.path\nimport sys\nimport re\nimpor... | [
{
"content": "Here is the script:\n<|memory_start|>```python\n#! /usr/bin/env python\n\n# Goal: Merge and run coverage analysis on the two Samples generated.\n# Output: A mered bam file, and coverage analysis on the merged bam file.\n\nfrom optparse import OptionParser\nimport os\nimport os.path\nimport sys\n... | ```python
#! /usr/bin/env python
# Goal: Merge and run coverage analysis on the two Samples generated.
# Output: A mered bam file, and coverage analysis on the merged bam file.
from optparse import OptionParser
import os
import os.path
import sys
import re
import datetime
import json
from QC_Run import QC_Run
from ... |
[
{
"content": "Here is the source code:\n```python\n#!/usr/bin/env python3\n\nfrom test_framework.test_framework import BitcoinTestFramework\nfrom test_framework.util import *\nfrom test_framework.script import *\nfrom test_framework.mininode import *\nfrom test_framework.berycoin import *\nfrom test_framework.a... | [
{
"content": "Here is the source code:\n<|memory_start|>```python\n#!/usr/bin/env python3\n\nfrom test_framework.test_framework import BitcoinTestFramework\nfrom test_framework.util import *\nfrom test_framework.script import *\nfrom test_framework.mininode import *\nfrom test_framework.berycoin import *\nfrom ... | ```python
#!/usr/bin/env python3
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from test_framework.script import *
from test_framework.mininode import *
from test_framework.berycoin import *
from test_framework.address import *
from test_framework.blocktools import *
... |
[
{
"content": "Reconstruct the code exactly:\n```python\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n# Copyright 2017--2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You may not\n# use this file except in compliance wit... | [
{
"content": "Reconstruct the code exactly:\n<|memory_start|>```python\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n# Copyright 2017--2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You may not\n# use this file except i... | ```python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2017--2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License
# is located at
#
# h... |
[
{
"content": "Here is some code:\n```python\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, i... | [
{
"content": "Here is some code:\n<|memory_start|>```python\n\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-present Rapptz\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software withou... | ```python
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
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, mo... |
[
{
"content": "```python\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Dec 9 21:31:53 2015\n\nCreate random synthetic velocity profile + linear first guesses\n\n@author: alex\n\"\"\"\n\nimport random\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D\n\ndef savitzky... | [
{
"content": "<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Dec 9 21:31:53 2015\n\nCreate random synthetic velocity profile + linear first guesses\n\n@author: alex\n\"\"\"\n\nimport random\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D... | ```python
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 9 21:31:53 2015
Create random synthetic velocity profile + linear first guesses
@author: alex
"""
import random
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
def savitzky_golay(y, window_size, order, deriv=0, rate... |
[
{
"content": "Here is the source code:\n```python\nfrom ovito import *\nfrom ovito.io import *\nfrom ovito.modifiers import *\nimport numpy as np\n\nnode = import_file(\"../../files/NetCDF/sheared_aSi.nc\")\n\nmodifier = WignerSeitzAnalysisModifier()\nnode.modifiers.append(modifier)\nmodifier.reference.load(\".... | [
{
"content": "Here is the source code:\n<|memory_start|>```python\nfrom ovito import *\nfrom ovito.io import *\nfrom ovito.modifiers import *\nimport numpy as np\n\nnode = import_file(\"../../files/NetCDF/sheared_aSi.nc\")\n\nmodifier = WignerSeitzAnalysisModifier()\nnode.modifiers.append(modifier)\nmodifier.re... | ```python
from ovito import *
from ovito.io import *
from ovito.modifiers import *
import numpy as np
node = import_file("../../files/NetCDF/sheared_aSi.nc")
modifier = WignerSeitzAnalysisModifier()
node.modifiers.append(modifier)
modifier.reference.load("../../files/NetCDF/sheared_aSi.nc")
dataset.anim.current_fram... |
[
{
"content": "Repeat the code exactly as the original, including blank lines:\n```python\nfrom infoporto.odoo.core.odoo import OdooInstance\n\n\nclass Odoo(object):\n\n # settings\n def getCurrency(self):\n \"\"\" Retrieve currency from Odoo Company settings \"\"\"\n odoo_core = OdooInstance... | [
{
"content": "Repeat the code exactly as the original, including blank lines:\n<|memory_start|>```python\nfrom infoporto.odoo.core.odoo import OdooInstance\n\n\nclass Odoo(object):\n\n # settings\n def getCurrency(self):\n \"\"\" Retrieve currency from Odoo Company settings \"\"\"\n odoo_cor... | ```python
from infoporto.odoo.core.odoo import OdooInstance
class Odoo(object):
# settings
def getCurrency(self):
""" Retrieve currency from Odoo Company settings """
odoo_core = OdooInstance()
# company ID should be dynamic
return odoo_core.read('res.company', 1, ['currency_... |
[
{
"content": "```python\n# -*- coding: utf-8 -*-\n#\n# PyQt documentation build configuration file, created by\n# sphinx-quickstart on Sat May 30 14:28:55 2009.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present ... | [
{
"content": "<|memory_start|>```python\n# -*- coding: utf-8 -*-\n#\n# PyQt documentation build configuration file, created by\n# sphinx-quickstart on Sat May 30 14:28:55 2009.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration val... | ```python
# -*- coding: utf-8 -*-
#
# PyQt documentation build configuration file, created by
# sphinx-quickstart on Sat May 30 14:28:55 2009.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... |
[
{
"content": "Write the code verbatim:\n```python\n# coding=utf-8\n# Copyright 2021 The TensorFlow Datasets Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ht... | [
{
"content": "Write the code verbatim:\n<|memory_start|>```python\n# coding=utf-8\n# Copyright 2021 The TensorFlow Datasets Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License... | ```python
# coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 requir... |
[
{
"content": "Write out the code verbatim, preserving indentation and whitespace:\n```python\nfrom future.builtins import str, object\nfrom .context import log, queue_job\nimport datetime\nimport ujson as json\nimport time\n\n\ndef _hash_task(task):\n \"\"\" Returns a unique hash for identify a task and its ... | [
{
"content": "Write out the code verbatim, preserving indentation and whitespace:\n<|memory_start|>```python\nfrom future.builtins import str, object\nfrom .context import log, queue_job\nimport datetime\nimport ujson as json\nimport time\n\n\ndef _hash_task(task):\n \"\"\" Returns a unique hash for identify... | ```python
from future.builtins import str, object
from .context import log, queue_job
import datetime
import ujson as json
import time
def _hash_task(task):
""" Returns a unique hash for identify a task and its params """
params = task.get("params")
if params:
params = json.dumps(sorted(list(task... |
[
{
"content": "```python\n#-------------------------------------------------------------------------------\n# Copyright (c) 2011 Anton Golubkov.\n# All rights reserved. This program and the accompanying materials\n# are made available under the terms of the GNU Lesser Public License v2.1\n# which accompanies thi... | [
{
"content": "<|memory_start|>```python\n#-------------------------------------------------------------------------------\n# Copyright (c) 2011 Anton Golubkov.\n# All rights reserved. This program and the accompanying materials\n# are made available under the terms of the GNU Lesser Public License v2.1\n# which... | ```python
#-------------------------------------------------------------------------------
# Copyright (c) 2011 Anton Golubkov.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU Lesser Public License v2.1
# which accompanies this distribution, and is avai... |
[
{
"content": "```python\n# -*- coding=utf8 -*-\n#******************************************************************************\n# addon.py\n#------------------------------------------------------------------------------\n#\n# Copyright (c) 2013 LivingOn <LivingOn@xmail.net>\n#\n# This program is free software;... | [
{
"content": "<|memory_start|>```python\n# -*- coding=utf8 -*-\n#******************************************************************************\n# addon.py\n#------------------------------------------------------------------------------\n#\n# Copyright (c) 2013 LivingOn <LivingOn@xmail.net>\n#\n# This program i... | ```python
# -*- coding=utf8 -*-
#******************************************************************************
# addon.py
#------------------------------------------------------------------------------
#
# Copyright (c) 2013 LivingOn <LivingOn@xmail.net>
#
# This program is free software; you can redistribute it and/o... |
[
{
"content": "Provide a verbatim copy of the code:\n```python\n# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represented by the\n# Administrator of the National Aeronautics and Space Administration.\n# All Rights Reserved.\n#\n# Licensed under the Apache License,... | [
{
"content": "Provide a verbatim copy of the code:\n<|memory_start|>```python\n# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represented by the\n# Administrator of the National Aeronautics and Space Administration.\n# All Rights Reserved.\n#\n# Licensed under the... | ```python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except... |
[
{
"content": "Repeat the code exactly:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n Binary Indexed Tree\n -------------------\n\n Based on the proposed C/C++ implementation by\n Yannis Chatzimichos @ https://git.softlab.ntua.gr/public/pdp-camp/blob/master/2013/advanced_data_structures.pdf\n\n ... | [
{
"content": "Repeat the code exactly:\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n Binary Indexed Tree\n -------------------\n\n Based on the proposed C/C++ implementation by\n Yannis Chatzimichos @ https://git.softlab.ntua.gr/public/pdp-camp/blob/master/2013/advanced_data_struct... | ```python
# -*- coding: utf-8 -*-
"""
Binary Indexed Tree
-------------------
Based on the proposed C/C++ implementation by
Yannis Chatzimichos @ https://git.softlab.ntua.gr/public/pdp-camp/blob/master/2013/advanced_data_structures.pdf
Supports the operations
- ADD S X
Add X to the su... |
[
{
"content": "Provide a verbatim copy of the code:\n```python\nfrom __future__ import absolute_import, unicode_literals\n\nfrom django.core.urlresolvers import reverse\nfrom django.test.utils import override_settings\nfrom django.utils import timezone\nfrom mock import patch\nfrom temba.types import Broadcast\n... | [
{
"content": "Provide a verbatim copy of the code:\n<|memory_start|>```python\nfrom __future__ import absolute_import, unicode_literals\n\nfrom django.core.urlresolvers import reverse\nfrom django.test.utils import override_settings\nfrom django.utils import timezone\nfrom mock import patch\nfrom temba.types im... | ```python
from __future__ import absolute_import, unicode_literals
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from django.utils import timezone
from mock import patch
from temba.types import Broadcast
from tracpro.msgs.models import Message, COHORT_ALL, COHORT_RESPONDE... |
[
{
"content": "Here is the snippet:\n```python\n#!user/bin/env python\n# -*- coding: utf8 -*- \n'''\nCreated on Jul 11, 2012\n\n@author: joseph\n'''\nimport urllib,urllib2\nimport mimetypes\n\n\ndef uploadfile(fields, files):\n BOUNDARY = '----------267402204411258'\n CRLF = '\\r\\n'\n L = []\n for (... | [
{
"content": "Here is the snippet:\n<|memory_start|>```python\n#!user/bin/env python\n# -*- coding: utf8 -*- \n'''\nCreated on Jul 11, 2012\n\n@author: joseph\n'''\nimport urllib,urllib2\nimport mimetypes\n\n\ndef uploadfile(fields, files):\n BOUNDARY = '----------267402204411258'\n CRLF = '\\r\\n'\n L... | ```python
#!user/bin/env python
# -*- coding: utf8 -*-
'''
Created on Jul 11, 2012
@author: joseph
'''
import urllib,urllib2
import mimetypes
def uploadfile(fields, files):
BOUNDARY = '----------267402204411258'
CRLF = '\r\n'
L = []
for (key, value) in fields:
L.append('--' + BOUNDARY)
... |
[
{
"content": "Output the full code verbatim (no extra comments):\n```python\n# Copyright 2019 The LUCI Authors. All rights reserved.\n# Use of this source code is governed under the Apache License, Version 2.0\n# that can be found in the LICENSE file.\n\n\"\"\"This file is a recipe demonstrating reading trigger... | [
{
"content": "Output the full code verbatim (no extra comments):\n<|memory_start|>```python\n# Copyright 2019 The LUCI Authors. All rights reserved.\n# Use of this source code is governed under the Apache License, Version 2.0\n# that can be found in the LICENSE file.\n\n\"\"\"This file is a recipe demonstrating... | ```python
# Copyright 2019 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""This file is a recipe demonstrating reading triggers of the current build."""
import json
from google.protobuf import json_format
... |
[
{
"content": "Repeat the code precisely as written (spacing intact):\n```python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport falcon\nimport pytest\nfrom falcon import testing\nfrom falcon.cmd.print_routes import print_routes\n\nfrom falcon_resourc... | [
{
"content": "Repeat the code precisely as written (spacing intact):\n<|memory_start|>```python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport falcon\nimport pytest\nfrom falcon import testing\nfrom falcon.cmd.print_routes import print_routes\n\nfro... | ```python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
import falcon
import pytest
from falcon import testing
from falcon.cmd.print_routes import print_routes
from falcon_resource_factory import ResourceFactory
def detail_view(resource, req, res, **kwargs):
res... |
[
{
"content": "```python\nimport sys\nimport os.path\nfrom PIL import Image\nimport numpy as np\nfrom arg_parser import parse_args\n\nfrom printer import print_header, print_usage, print_line\n\ndef init_images(app_data):\n print(\"[init.py] : initializing images...\")\n\n app_args = app_data['app_args']\n... | [
{
"content": "<|memory_start|>```python\nimport sys\nimport os.path\nfrom PIL import Image\nimport numpy as np\nfrom arg_parser import parse_args\n\nfrom printer import print_header, print_usage, print_line\n\ndef init_images(app_data):\n print(\"[init.py] : initializing images...\")\n\n app_args = app_da... | ```python
import sys
import os.path
from PIL import Image
import numpy as np
from arg_parser import parse_args
from printer import print_header, print_usage, print_line
def init_images(app_data):
print("[init.py] : initializing images...")
app_args = app_data['app_args']
# input image:
img_path = a... |
[
{
"content": "Repeat the following code:\n```python\n# Guillaume Valadon <guillaume@valadon.net>\n\n\"\"\"\nScapy *BSD native support - BPF sockets\n\"\"\"\n\nfrom ctypes import c_long, sizeof\nimport errno\nimport fcntl\nimport os\nimport platform\nfrom select import select\nimport struct\nimport time\n\nfrom ... | [
{
"content": "Repeat the following code:\n<|memory_start|>```python\n# Guillaume Valadon <guillaume@valadon.net>\n\n\"\"\"\nScapy *BSD native support - BPF sockets\n\"\"\"\n\nfrom ctypes import c_long, sizeof\nimport errno\nimport fcntl\nimport os\nimport platform\nfrom select import select\nimport struct\nimpo... | ```python
# Guillaume Valadon <guillaume@valadon.net>
"""
Scapy *BSD native support - BPF sockets
"""
from ctypes import c_long, sizeof
import errno
import fcntl
import os
import platform
from select import select
import struct
import time
from scapy.arch.bpf.core import get_dev_bpf, attach_filter
from scapy.arch.bp... |
[
{
"content": "Here is a code file:\n```python\n''' \nThis study is a Bogazici University - NETAS Nova V-Gate collaboration and funded by TEYDEB project \"Realization of Anomaly Detection and Prevention with Learning System Architectures, Quality Improvement, High Rate Service Availability and Rich Services in a... | [
{
"content": "Here is a code file:\n<|memory_start|>```python\n''' \nThis study is a Bogazici University - NETAS Nova V-Gate collaboration and funded by TEYDEB project \"Realization of Anomaly Detection and Prevention with Learning System Architectures, Quality Improvement, High Rate Service Availability and Ri... | ```python
'''
This study is a Bogazici University - NETAS Nova V-Gate collaboration and funded by TEYDEB project "Realization of Anomaly Detection and Prevention with Learning System Architectures, Quality Improvement, High Rate Service Availability and Rich Services in a VoIP Firewall Product'', by the Scientific and... |
[
{
"content": "```python\nfrom __future__ import with_statement\n\nfrom kombu.common import maybe_declare\nfrom kombu.pools import producers\n\nfrom queues import task_exchange\n\npriority_to_routing_key = {'high': 'hipri',\n 'mid': 'midpri',\n 'low': 'lopri'}\... | [
{
"content": "<|memory_start|>```python\nfrom __future__ import with_statement\n\nfrom kombu.common import maybe_declare\nfrom kombu.pools import producers\n\nfrom queues import task_exchange\n\npriority_to_routing_key = {'high': 'hipri',\n 'mid': 'midpri',\n ... | ```python
from __future__ import with_statement
from kombu.common import maybe_declare
from kombu.pools import producers
from queues import task_exchange
priority_to_routing_key = {'high': 'hipri',
'mid': 'midpri',
'low': 'lopri'}
def send_as_task(connection, f... |
[
{
"content": "Here is a code file:\n```python\n#\n# Copyright (C) 2006, 2013 UNINETT AS\n#\n# This file is part of Network Administration Visualized (NAV).\n#\n# NAV is free software: you can redistribute it and/or modify it under\n# the terms of the GNU General Public License version 2 as published by\n# the F... | [
{
"content": "Here is a code file:\n<|memory_start|>```python\n#\n# Copyright (C) 2006, 2013 UNINETT AS\n#\n# This file is part of Network Administration Visualized (NAV).\n#\n# NAV is free software: you can redistribute it and/or modify it under\n# the terms of the GNU General Public License version 2 as publi... | ```python
#
# Copyright (C) 2006, 2013 UNINETT AS
#
# This file is part of Network Administration Visualized (NAV).
#
# NAV is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# This program is distrib... |
[
{
"content": "Here is the code content:\n```python\n#!/usr/bin/env python\n\n\"\"\"Service process base class and service management\"\"\"\n\n__author__ = 'Adam R. Smith, Michael Meisinger'\n\nimport json\nfrom types import ModuleType\nfrom zope.interface import implementedBy\n\nfrom pyon.core.exception import ... | [
{
"content": "Here is the code content:\n<|memory_start|>```python\n#!/usr/bin/env python\n\n\"\"\"Service process base class and service management\"\"\"\n\n__author__ = 'Adam R. Smith, Michael Meisinger'\n\nimport json\nfrom types import ModuleType\nfrom zope.interface import implementedBy\n\nfrom pyon.core.e... | ```python
#!/usr/bin/env python
"""Service process base class and service management"""
__author__ = 'Adam R. Smith, Michael Meisinger'
import json
from types import ModuleType
from zope.interface import implementedBy
from pyon.core.exception import BadRequest, ServerError, NotFound
from pyon.util.log import log
fr... |
[
{
"content": "Repeat the code precisely:\n```python\n\"\"\"\nTests:\n\n1. Galaxies positions are all within the light-cone geometry\n2. The number of Galaxies in Catalogue 0 matches the expected number (optional)\n3. The galaxy ids are unique across all light-cones (optional)\n\"\"\"\nimport logging\n\nfrom tao... | [
{
"content": "Repeat the code precisely:\n<|memory_start|>```python\n\"\"\"\nTests:\n\n1. Galaxies positions are all within the light-cone geometry\n2. The number of Galaxies in Catalogue 0 matches the expected number (optional)\n3. The galaxy ids are unique across all light-cones (optional)\n\"\"\"\nimport log... | ```python
"""
Tests:
1. Galaxies positions are all within the light-cone geometry
2. The number of Galaxies in Catalogue 0 matches the expected number (optional)
3. The galaxy ids are unique across all light-cones (optional)
"""
import logging
from tao_validate import ValidateJob
logger = logging.getLogger('detest.'... |
[
{
"content": "Reconstruct the code exactly:\n```python\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# Un... | [
{
"content": "Reconstruct the code exactly:\n<|memory_start|>```python\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... | ```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, softw... |
[
{
"content": "```python\n#\n# ParameterWeaver: a code generator to handle command line parameters\n# and configuration files for C/C++/Fortran/R/Octave\n# Copyright (C) 2013 Geert Jan Bex <geertjan.bex@uhasselt.be>\n# \n# This program is free software: you can redistribute it and/or modify\n# it under the terms... | [
{
"content": "<|memory_start|>```python\n#\n# ParameterWeaver: a code generator to handle command line parameters\n# and configuration files for C/C++/Fortran/R/Octave\n# Copyright (C) 2013 Geert Jan Bex <geertjan.bex@uhasselt.be>\n# \n# This program is free software: you can redistribute it and/or modify\n# it... | ```python
#
# ParameterWeaver: a code generator to handle command line parameters
# and configuration files for C/C++/Fortran/R/Octave
# Copyright (C) 2013 Geert Jan Bex <geertjan.bex@uhasselt.be>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Li... |
[
{
"content": "Here is the script:\n```python\n# Copyright 2020 Makani Technologies 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/... | [
{
"content": "Here is the script:\n<|memory_start|>```python\n# Copyright 2020 Makani Technologies 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.apac... | ```python
# Copyright 2020 Makani Technologies 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.