messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Write python code for the following: Add py solution for Binary Search Tree Iterator\n\nBinary Search Tree Iterator: https://leetcode.com/problems/binary-search-tree-iterator/" }, { "role": "assistant", "content": "# Definition for a binary tree node\n# class TreeN...
python
new_file
1
6
apache-2.0
f12ba8623078322a57f23c55c9ce44883d22d18b
ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode
py/binary-search-tree-iterator.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Print true if the character is present in the string" }, { "role": "assistant", "content": "def main():\n a=raw_input()\n c=raw_input()\n if a.find(c)>=0:\n print \"True\"\n else:\n print \"False\" \n\n ...
python
new_file
3
2
mit
4ec4acf3b70f939e261dfb3425b23dad97a799f6
kumarisneha/practice_repo
techgig_string_membership.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add custom style which imitates the offical coloring" }, { "role": "assistant", "content": "from pygments.style import Style\nfrom pygments.token import Keyword, Name, Comment, String, Error, \\\n Number, Operator, Generic\n\...
python
new_file
6
0
bsd-2-clause
a7d8442482b7862b96adf3c8f40015072221f600
dscorbett/pygments,pygments/pygments,dscorbett/pygments,pygments/pygments,pygments/pygments,dscorbett/pygments,dscorbett/pygments,dscorbett/pygments,dscorbett/pygments,dscorbett/pygments,pygments/pygments,dscorbett/pygments,dscorbett/pygments,pygments/pygments,dscorbett/pygments,dscorbett/pygments,dscorbett/pygments,ds...
pygments/styles/igor.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Write python code for the following: Add core functionality for formatter" }, { "role": "assistant", "content": "import sys\n\ndef fixFormat(file_name):\n\n original = open(file_name, 'r')\n fixed_copy = open(\"fixed_\" + file_name, 'w')\n \n for line in...
python
new_file
1
2
mit
4daca355a9ba2807b9f992199e6a1ca78d3678fd
HenryDangPRG/WordPress-Code-Formatter
wordpress_formatter.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test for ping endpoint" }, { "role": "assistant", "content": "from flask.ext.resty import Api\nimport pytest\n\n# -----------------------------------------------------------------------------\n\n\n@pytest.fixture(autouse=True...
python
new_file
1
1
mit
a94aab8fa6e795d1e440e20e9751810393ac0a73
taion/flask-jsonapiview,4Catalyzer/flask-jsonapiview,4Catalyzer/flask-resty
tests/test_ping.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add script: fix boost dylib id on Mac OSX [skip ci]" }, { "role": "assistant", "content": "#!/usr/bin/env python3\n\n# Copyright (c) 2013, Ruslan Baratov\n# All rights reserved.\n\nimport argparse\nimport glob\nimport os\nimport ...
python
new_file
1
0
bsd-2-clause
7c1807c7981ab6d934efcf4e3044ee502da81bc5
dvirtz/hunter,NeroBurner/hunter,ulricheck/hunter,x10mind/hunter,sumedhghaisas/hunter,isaachier/hunter,ulricheck/hunter,tatraian/hunter,daminetreg/hunter,ErniBrown/hunter,RomanYudintsev/hunter,ikliashchou/hunter,mchiasson/hunter,ThomasFeher/hunter,dvirtz/hunter,madmongo1/hunter,stohrendorf/hunter,madmongo1/hunter,mchias...
scripts/fix-boost-dylib-id.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add ability to load wordlists into useable datastructures." }, { "role": "assistant", "content": "#!/usr/bin/env python3\n\nfrom collections import namedtuple\nimport csv\n\nWordList = namedtuple(\"WordList\", ['nouns', 'verbs', ...
python
new_file
3
6
mit
8976733c9e2cf0fb03d93187fb138c07416648d9
SilverWingedSeraph/tor-to-terabithia
ttt.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add a put_object sample script." }, { "role": "assistant", "content": "#!/usr/bin/env python\n\nimport pprint\nimport sys\nfrom os import environ as env\n\nfrom swiftclient.client import get_auth, put_object, put_container\nfrom ...
python
new_file
8
2
apache-2.0
45b42cf32fa82a590e854ac1fe765525ddef4f41
yoyama/swift_book
sample/python/swift_put_object.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Write python code for the following: Add a brute force solution for the maximum subarray" }, { "role": "assistant", "content": "# brute force solution\n# it works, but Time Limit Exceeded in leetcode\nclass Solution1:\n # @param {integer[]} nums\n # @return {i...
python
new_file
6
5
mit
84796e96d8ad413fd657b6207025a0e64d680598
chancyWu/leetcode
src/maximum_subarray.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Write python code for the following: Add tests for org task util" }, { "role": "assistant", "content": "import mock\nfrom requests import HTTPError\n\nfrom django.test import TestCase\n\nfrom temba.base import TembaAPIError\n\nfrom tracpro.test import factories\n\nf...
python
new_file
1
1
bsd-3-clause
9df3c8f04c25866a92b262218ca5976536097837
xkmato/tracpro,rapidpro/tracpro,rapidpro/tracpro,xkmato/tracpro,xkmato/tracpro,xkmato/tracpro,rapidpro/tracpro
tracpro/orgs_ext/tests/test_utils.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add initial code for exercise 43." }, { "role": "assistant", "content": "class Scene(object):\n\n def enter(self):\n pass\n\nclass Engine(object):\n\n def __init__(self, scene_map):\n pass\n\n def play(self...
python
new_file
1
1
mit
c13d90c3feeec531ee9ad4a3d9346390782cba7c
hectoregm/lphw
ex43.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add extra utility to generate a URL list." }, { "role": "assistant", "content": "#!/usr/bin/env python\n\"\"\" twitch_channels.py - Queries Twitch for channels of interest.\n Used in conjunction with livestreamer-completion.\n...
python
new_file
1
7
mit
dbff077245130f175fdabaa347e33de7a2b71450
chrippa/livestreamer-completion,chrippa/livestreamer-completion
twitch_channels.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add tool for debug of Calisphere id." }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n# Use this to get data from the couchdb instance for a record from calisphere\n# defaults to the staging environment\nimport sys...
python
new_file
8
1
bsd-3-clause
c9e0f57b867404ba5ae7871caa63c4ccd8b90a1d
mredar/ucldc_api_data_quality,mredar/ucldc_api_data_quality,mredar/ucldc_api_data_quality,mredar/ucldc_api_data_quality
reporting/get_couchdata_for_calisphere_id.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Write python code for the following: Add form validation for target" }, { "role": "assistant", "content": "from django.forms import ModelForm\nfrom breach.models import Target\n\n\nclass TargetForm(ModelForm):\n class Meta:\n model = Target\n fields...
python
new_file
1
0
mit
1b8085059f3c0983e3696e118c718ec44904097c
dimriou/rupture,dimriou/rupture,dionyziz/rupture,esarafianou/rupture,dionyziz/rupture,esarafianou/rupture,dimriou/rupture,dimkarakostas/rupture,dionyziz/rupture,dimriou/rupture,dimkarakostas/rupture,dionyziz/rupture,esarafianou/rupture,dionyziz/rupture,dimriou/rupture,dimkarakostas/rupture,esarafianou/rupture,dimkarako...
backend/breach/forms.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add a wget replacement for platforms that don't have wget\n\nsvn:r13313" }, { "role": "assistant", "content": "#!/usr/bin/python\n\n###\n### Simple HTTP download utility for platforms without wget\n###\n### Copyright 2008 Steven ...
python
new_file
4
6
bsd-3-clause
07e9f20a190e07650e064985b4eee7b10de442e5
Shondoit/torbrowser,Shondoit/torbrowser,Shondoit/torbrowser,Shondoit/torbrowser
build-scripts/pyget.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add migration to prune toi" }, { "role": "assistant", "content": "from redis import StrictRedis\nfrom tilequeue.cache import RedisCacheIndex\nfrom tilequeue.config import make_config_from_argparse\nfrom tilequeue.tile import coor...
python
new_file
1
0
mit
a9cf7e78edbe4623115b2be43399fb65c4f5bc7e
mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource
data/migrations/v0.9.0-prune-toi.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add two dimensional forward python solver" }, { "role": "assistant", "content": "import numpy as np\nimport matplotlib.pyplot as plt\nimport matplotlib.animation as animation\nimport seaborn as sns\nsns.set()\n\nfig = plt.figure(...
python
new_file
1
0
mit
ea0675713e3fee74d7cf3ae8345ff1b1d2745c7b
Caronthir/FYS3150,Caronthir/FYS3150,Caronthir/FYS3150
Project5/two_dim_solver.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Test response code of current user's (HTML) page" }, { "role": "assistant", "content": "\"\"\"\n:Copyright: 2006-2018 Jochen Kupperschmidt\n:License: Modified BSD, see LICENSE for details.\n\"\"\"\n\nfrom tests.base import Abstra...
python
new_file
1
1
bsd-3-clause
48c9860f506bf08fe733ae2033e0ecbc1472d58e
homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps
tests/blueprints/user/test_views_current_user.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add datamigration from mozillians.geo data to cities_light." }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations\nfrom django.db.models import...
python
new_file
1
3
bsd-3-clause
adc8a93c46f3efe70b6fafb750470245c1838dc4
akatsoulas/mozillians,fxa90id/mozillians,mozilla/mozillians,johngian/mozillians,johngian/mozillians,akatsoulas/mozillians,fxa90id/mozillians,fxa90id/mozillians,fxa90id/mozillians,akatsoulas/mozillians,akatsoulas/mozillians,mozilla/mozillians,johngian/mozillians,mozilla/mozillians,mozilla/mozillians,johngian/mozillians
mozillians/users/migrations/0013_auto_20170302_0230.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add a real-time frequency meter example" }, { "role": "assistant", "content": "#!/usr/bin/env python3\n\nfrom phasortoolbox import PDC,Client\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport logging\nlogging.basicConf...
python
new_file
1
3
mit
209699334645a9e5d497ff9adc112e31b798c0b1
sonusz/PhasorToolBox
examples/freq_meter.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test for calcprops in pipeline related objects" }, { "role": "assistant", "content": "import pytest\n\ndef test_analysis_step_version_name_calcprop(testapp, analysis_step_version):\n assert analysis_step_version['minor_ver...
python
new_file
3
1
mit
1c5bad48cf058022a14756615d0faa5833a63501
ENCODE-DCC/encoded,ENCODE-DCC/encoded,ENCODE-DCC/encoded,ENCODE-DCC/encoded
src/encoded/tests/data/inserts/test_types_pipeline.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add missing python script to explore python config and set vars in cmake" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n#\n# Copyright (c) 2007, Simon Edwards <<EMAIL>>\n# All rights reserved.\n#\n# Redis...
python
new_file
1
0
apache-2.0
b22d2e023affc9621235eb447d21c784405577d7
siconos/siconos-deb,siconos/siconos-deb,radarsat1/siconos,radarsat1/siconos,fperignon/siconos,siconos/siconos-deb,bremond/siconos,bremond/siconos,fperignon/siconos,fperignon/siconos,siconos/siconos-deb,bremond/siconos,siconos/siconos-deb,radarsat1/siconos,fperignon/siconos,siconos/siconos,bremond/siconos,radarsat1/sico...
Numerics/cmake/explore_python_config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import abort, json\nimport requests\n\n\ndef render_content(text, gfm=False, context=None, username=None, password=None):\n \"\"\"Renders the specified markup using the GitHub API.\"\"\"\n if gfm:\n url = 'https://ap...
python
edit
1
6
mit
12d239d62c293cdb1a3fa1a69df06bf9c8e65366
jbarreras/grip,ssundarraj/grip,joeyespo/grip,mgoddard-pivotal/grip,mgoddard-pivotal/grip,jbarreras/grip,joeyespo/grip,ssundarraj/grip
grip/github_renderer.py
rejected_duplicate
Near-duplicate of sample 808
true
[ { "role": "user", "content": "Write python code for the following: Add script for adding B/W locations\n\nin the hope that it will be useful in future generations." }, { "role": "assistant", "content": "#!/usr/bin/env python2\n\nfrom codecs import open\n\nfrom pokedex.db import connect, identifi...
python
new_file
1
0
mit
03813bd7658ee8657e9b1253d280b20fb87e3ab7
veekun/pokedex,xfix/pokedex,mschex1/pokedex,RK905/pokedex-1,veekun/pokedex,DaMouse404/pokedex
scripts/add-bw-locations.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Package for Melange specific views added.\n\nIt will contain modules with view classes and functions that are not specific neither CI nor SOC package." }, { "role": "assistant", "content": "# Copyright 2013 the Melange authors.\n...
python
new_file
1
0
apache-2.0
129e717143d2b04f244afca31c4f47d9740ea66e
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
app/melange/views/__init__.py
rejected_duplicate
Near-duplicate of sample 3094
true
[ { "role": "user", "content": "Write python code for the following: Add tests for `v2ex sign`" }, { "role": "assistant", "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n Tests for the `v2ex last` function\n\"\"\"\n\nfrom __future__ import absolute_import, unicode_literals...
python
new_file
1
1
mit
84f7a4c7fcde6875fe5b414f4340cc15fc4e9740
lord63/v2ex_daily_mission,lord63/v2ex_daily_mission
tests/test_get_money.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Write function that returns first instance of non-repeating character in input string" }, { "role": "assistant", "content": "# Given a string s, find and return the first instance of a non-repeating character in it. If there is ...
python
new_file
1
5
mit
09425139bd06b4b7d96504c53f897c9329331d91
derekmpham/interview-prep,derekmpham/interview-prep
array/first-nonrepeat-char.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add tests for yatsm cache CLI" }, { "role": "assistant", "content": "\"\"\" Tests for ``yatsm cache``\n\"\"\"\nfrom click.testing import CliRunner\nimport pytest\n\nfrom yatsm.cli.main import cli\n\n\ndef test_cli_cache_pass_1(ex...
python
new_file
3
1
mit
d15a45301689e1ac8b1e75c1152f9218f08ef82f
ceholden/yatsm,c11/yatsm,valpasq/yatsm,c11/yatsm,valpasq/yatsm,ceholden/yatsm
tests/cli/test_cache.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add file sql tutorial with sqlachemy" }, { "role": "assistant", "content": "#!/usr/bin/python2\n\nfrom sqlalchemy import create_engine\nfrom sqlalchemy.ext.declarative import declarative_base\nfrom sqlalchemy import Column, Integ...
python
new_file
6
1
unlicense
ba030dc7877632b8eaf59fdbca4d11daf4225f95
phunghv/meu_sender
database.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Write python code for the following: Add tests for dynamodb throughput.\n\nPiperOrigin-RevId: 445294911" }, { "role": "assistant", "content": "# Copyright 2022 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the...
python
new_file
1
1
apache-2.0
45ab98f8439845fdc5035525f8843dc78f8986c5
GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker
tests/linux_benchmarks/aws_dynamodb_ycsb_benchmark_test.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add unit tests for Block" }, { "role": "assistant", "content": "import unittest\n\nfrom struct import error\nfrom DAT.Block import Block, BlockChain\n\n\nclass TestBlock(unittest.TestCase):\n\n def test_parse_valid_blob(self):...
python
new_file
3
1
mit
0ab7f8489a2fe783fde98d7336dc291dddb01275
ccressent/acnav
tests/DAT/test_Block.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test for np.empty 1d case" }, { "role": "assistant", "content": "from __future__ import print_function, absolute_import, division\n\nimport numpy as np\n\nfrom numba import unittest_support as unittest\nfrom numba import njit...
python
new_file
1
2
bsd-2-clause
6cd0721a953a0708a99828dc8276c510b1b57c11
cpcloud/numba,pitrou/numba,pombredanne/numba,pombredanne/numba,gdementen/numba,cpcloud/numba,cpcloud/numba,seibert/numba,sklam/numba,ssarangi/numba,stefanseefeld/numba,jriehl/numba,stuartarchibald/numba,sklam/numba,stuartarchibald/numba,stonebig/numba,sklam/numba,stefanseefeld/numba,pitrou/numba,stonebig/numba,GaZ3ll3/...
numba/tests/test_dyn_array.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add simple web service for Eidos reading" }, { "role": "assistant", "content": "import json\nfrom flask import Flask, request\nfrom indra.sources.eidos.eidos_reader import EidosReader\n\n\napp = Flask(__name__)\n\n\n@app.route('/...
python
new_file
1
2
bsd-2-clause
cc046c9a70ebdfec404992f69c09c9fbbfc0b471
johnbachman/indra,johnbachman/indra,johnbachman/belpy,sorgerlab/indra,sorgerlab/belpy,sorgerlab/belpy,pvtodorov/indra,johnbachman/belpy,sorgerlab/indra,bgyori/indra,bgyori/indra,pvtodorov/indra,sorgerlab/indra,sorgerlab/belpy,johnbachman/belpy,bgyori/indra,pvtodorov/indra,johnbachman/indra,pvtodorov/indra
indra/sources/eidos/eidos_server.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add tests that check for database access during status and stop commands." }, { "role": "assistant", "content": "\"\"\"\nTests for `kolibri.utils.cli` module.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ impor...
python
new_file
1
2
mit
117d74fa54e8557e2ab09f5d11a61d8ad4e7736a
mrpau/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,learningequality/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,mrpau/kolibri,learningequality/kolibri,learningequality/kolibri,learningequality/kolibri,mrpau/kolibri,mrpau/kolibri
kolibri/utils/tests/test_cli_at_import.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add a signal timeout handler\n\nMany thanks to @ekimekim for writing this." }, { "role": "assistant", "content": "# Taken from https://gist.github.com/ekimekim/b01158dc36c6e2155046684511595d57\nimport os\nimport signal\nimport su...
python
new_file
1
2
mit
8eaa6c9c80b097186887e2ebbfcc561f07630d2b
Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot
heufybot/utils/signaltimeout.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test coverage for security module" }, { "role": "assistant", "content": "#\n# (C) Copyright IBM Corp. 2017\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in complia...
python
new_file
3
1
apache-2.0
ae10061cbff2017c28099682cccf9c7b9257cb54
lresende/toree-gateway,lresende/toree-gateway
python/security_test.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add PyQt5 gui for the matcher" }, { "role": "assistant", "content": "#!/usr/bin/python2\n\nimport signal\nsignal.signal(signal.SIGINT, signal.SIG_DFL)\nimport sys\nimport os\nfrom PyQt5.QtWidgets import (QApplication, QWidget, QP...
python
new_file
5
1
mit
d954988fad088278e3a58d16b5928d5918a7e79a
piotrwicijowski/whistler,piotrwicijowski/whistler
microphone_match_gui.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Write python code for the following: Add a migration script accounting for flask changes\n\nPer the script's docstring, the only thing about the schema that's\nchanged is that the table names Flask-SQLAlchemy generates are slightly\ndifferent. The schema is otherwise the same, ...
python
new_file
1
3
apache-2.0
9b7d8998066c7963de11e32bd5755f9e1fff0baf
SahilTikale/haas,henn/hil,henn/haas,henn/hil_sahil,kylehogan/haas,meng-sun/hil,meng-sun/hil,kylehogan/hil,CCI-MOC/haas,henn/hil,kylehogan/hil,henn/hil_sahil
migrations/versions/6a8c19565060_move_to_flask.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add placeholder for relu gradient tests" }, { "role": "assistant", "content": "import pytest\n\n\n@pytest.mark.skip\ndef test_relu_clips_negative(model, input_BI):\n # TODO: There was a bug related to this\n pass\n\n\n@pyte...
python
new_file
1
1
mit
f1d830609d460e8213252251bf3b512511032add
spacy-io/thinc,explosion/thinc,explosion/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc,spacy-io/thinc
thinc/neural/tests/integration/test_relu_gradient.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add skeleton code for fetching and updating database data. Hard coded for now" }, { "role": "assistant", "content": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may n...
python
new_file
1
1
apache-2.0
56c933ad84837f60f5dbb36c2a8c0fc26b1d5ce9
googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks
project/scripts/main.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Variable: Add new test for custom variable initialisation to check types" }, { "role": "assistant", "content": "from parcels import Grid, ScipyParticle, JITParticle, Variable\nimport numpy as np\nimport pytest\n\n\nptype = {'scip...
python
new_file
1
7
mit
112fbecf8458541b2277d877c58837ec93911a35
OceanPARCELS/parcels,OceanPARCELS/parcels
tests/test_particles.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add implementation of matrix factorization" }, { "role": "assistant", "content": "#!/usr/bin/python\n\nimport numpy\n\n\ndef matrix_factorization(R,\n P,\n Q,\n ...
python
new_file
5
6
mit
1fc00c46538052c008dd9f7da9693987fc8a1da6
tobegit3hub/ml_implementation
fm/matrix_factorization.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Write python code for the following: Add the consistency config file" }, { "role": "assistant", "content": "from config.experiment_config_lib import ControllerConfig\nfrom sts.topology import BufferedPatchPanel\nfrom sts.topology import ConsistencyTopology\nfrom sts...
python
new_file
1
0
apache-2.0
1d086e026e5f480c8205951dfe714cceaad929c7
jmiserez/sts,jmiserez/sts
config/trace_pox_l2_consistency.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add new utility to make source documents" }, { "role": "assistant", "content": "#!/usr/bin/env python\n#\n# mk_topic.py\n#\n# Make a notebook for a new topic\n#\nimport datetime\nimport os\nimport sys\n\nimport lib\nfrom jinja2 i...
python
new_file
4
2
mit
0008b7f22ee3d5f16c1d6bf4e62211633818a30c
holdenweb/nbtools,holdenweb/nbtools
project/tools/mktopic.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add command to testing future implementation of get multiple records for driver profile." }, { "role": "assistant", "content": "from django.core.management.base import BaseCommand, CommandError\nfrom driver27.models import Driver...
python
new_file
3
2
mit
fc2ab4cadd4c4bac34c35aeaeb3047da30524063
SRJ9/django-driver27,SRJ9/django-driver27,SRJ9/django-driver27
driver27/management/commands/testing_multirecord.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add contrib code to load GP data from Celestrak" }, { "role": "assistant", "content": "\"\"\"\nAuthor: Juan Luis Cano Rodríguez\n\nCode to read GP data from Celestrak using the HTTP API and python-sgp4.\n\nRequires some extra dep...
python
new_file
1
4
mit
e9917a9f4855ebb3b464977a26c7549baeb6a610
poliastro/poliastro
contrib/satgpio.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add migration: add 'private' field to Post table, drop Photo table" }, { "role": "assistant", "content": "\"\"\"empty message\n\nRevision ID: 530a92c42c5\nRevises: 3255e6bed08\nCreate Date: 2016-08-09 19:46:36.752946\n\n\"\"\"\n\...
python
new_file
1
1
mit
00462a7270f48846a5287520f5764a190b11928c
heejongahn/hjlog,heejongahn/hjlog,heejongahn/hjlog,heejongahn/hjlog
migrations/versions/530a92c42c5_.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add function to load neighborhood data" }, { "role": "assistant", "content": "# Copyright (c) 2013 Azavea, Inc.\n# See LICENSE in the project root for copying permission\n\nfrom django.core.management.base import BaseCommand\nfro...
python
new_file
1
2
mit
53e9bf58bebf8b440f76558575d656e41cbaf4f9
smartchicago/chicago-early-learning,smartchicago/chicago-early-learning,smartchicago/chicago-early-learning,smartchicago/chicago-early-learning
python/ecep/portal/management/commands/load_neighborhoods.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test for cps file" }, { "role": "assistant", "content": "import pytest\n# from ogusa.execute.scipts import runner\n\ndef test_set_data(monkeypatch):\n \"\"\"\n Check that setting `data` to 'cps' uses cps data\n \"\"\...
python
new_file
6
1
mit
00c61d58532a6ace185e8740bf4d7cbbfa2c960a
OpenSourcePolicyCenter/dynamic,OpenSourcePolicyCenter/dynamic,OpenSourcePolicyCenter/dynamic,OpenSourcePolicyCenter/dynamic,OpenSourcePolicyCenter/dynamic
ogusa/tests/test_data.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nimport warnings\n\nfrom .commands.test import AstropyTest\n\n\n# Leaving this module here for now, but really it needn't exist\...
python
edit
3
0
bsd-3-clause
6f6bfbd7d627b518be830567a36b89a0859b4974
astropy/astropy-helpers,bsipocz/astropy-helpers,dpshelio/astropy-helpers,Cadair/astropy-helpers,embray/astropy_helpers,dpshelio/astropy-helpers,bsipocz/astropy-helpers,larrybradley/astropy-helpers,astropy/astropy-helpers,bsipocz/astropy-helpers,larrybradley/astropy-helpers,embray/astropy_helpers,embray/astropy_helpers,...
astropy_helpers/test_helpers.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add python implementation of toh" }, { "role": "assistant", "content": "def move( n, src, dest, temp ):\n\n\tif n >= 1 : \n\t\tmove( n - 1, src, temp, dest )\n\t\n\t\tprint( \"Moving %d -> %d\" % (src, dest))\n\n\t\tmove( n - 1, ...
python
new_file
1
2
cc0-1.0
f8342d9bb3cfecacf0d1d0ab24fdba45459afae8
EUNIX-TRIX/al-go-rithms,Cnidarias/al-go-rithms,ZoranPandovski/al-go-rithms,manikTharaka/al-go-rithms,arijitkar98/al-go-rithms,manikTharaka/al-go-rithms,EUNIX-TRIX/al-go-rithms,Cnidarias/al-go-rithms,ZoranPandovski/al-go-rithms,EUNIX-TRIX/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,EUNIX-TRIX/al...
towers_of_hanoi/python/towers_of_hanoi.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Change the field escuela in the Integrante form to plantel. And add a\noptional value escuela to all members\n\nMerge migrations" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n# Generated by Django 1.10.2 on 2017...
python
new_file
1
0
mit
1409d2276f5533c9704903197f491beae65c125a
erikiado/jp2_online,erikiado/jp2_online,erikiado/jp2_online
familias/migrations/0036_merge_20170621_2219.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add classe RandList.py para gerar um deck embaralhado" }, { "role": "assistant", "content": "# encoding:utf-8\n\nimport random\n\ndef main():\n rl = RandList(500, 1000)\n rl.gen_random_list()\n rl.print_block_list()\n ...
python
new_file
5
3
mit
d3188c550c486c4219cf0cc0e38f6696f8b340af
tonussi/freezing-dubstep,tonussi/freezing-dubstep,tonussi/freezing-dubstep
pratica-01/randlist.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\n\nfrom flask import Blueprint, request, current_app\n# from rowboat.redis import rdb\n# from rowboat.util.decos import authed\n\nfrom disco.types.message import MessageEmbed\nfrom disco.types.webhook import Webhook\n\nweb...
python
edit
1
7
mit
b92e1548f3944465cc7ac112d4c88e9aae8f4ead
ThaTiemsz/jetski,aliasfalse/rowboat,aliasfalse/rowboat,aliasfalse/rowboat,ThaTiemsz/jetski,b1naryth1ef/rowboat,b1naryth1ef/rowboat,aliasfalse/rowboat,b1naryth1ef/rowboat,ThaTiemsz/jetski,b1naryth1ef/rowboat,ThaTiemsz/jetski
rowboat/views/webhooks.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add utility script for searching Jenkins console logs\n\nThis small python script can be used to quickly check the last\n100 (or more if you're willing to edit and wait) to see if a\nstring is present within the console log. This can help fi...
python
new_file
3
0
bsd-3-clause
da8b184267d04ae8c95772b4cbfaef7603d4ed67
daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine
scripts/jenkins_console_log_search.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add tests for assets version extraction" }, { "role": "assistant", "content": "import unittest\nfrom hamcrest import *\n\nfrom service.smplayservice import SmPlayServiceStarter\nfrom smcontext import SmContext, SmApplication\n\nc...
python
new_file
6
1
apache-2.0
abe3f5489fb91102ea45b85ea6200542e7ca5f67
hmrc/service-manager,hmrc/service-manager,hmrc/service-manager,hmrc/service-manager
test/unit/test_smplayservice.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Write python code for the following: Add migration for additional slug fields." }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n# Generated by Django 1.9.7 on 2016-09-19 11:49\nfrom __future__ import unicode_literals\n\nfrom django.db import migration...
python
new_file
1
0
mit
1ef3cda8915d22e6e862eab06796783af43fe0e5
teamtaverna/core
app/timetables/migrations/0009_auto_20160919_1149.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add kubernetes.client.apis as an alias to kubernetes.client.api\n\nReference: https://github.com/kubernetes-client/python/issues/974\n\nSigned-off-by: Nabarun Pal <<EMAIL>>" }, { "role": "assistant", "content": "from __future__ i...
python
new_file
1
0
apache-2.0
146119213c6d96301b475f49cedde830e0f8e84f
kubernetes-client/python,kubernetes-client/python
kubernetes/client/apis/__init__.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add script to co-add repeat visits of stars" }, { "role": "assistant", "content": "\n\n\"\"\"\nStack RAVE spectra from repeat visits.\n\"\"\"\n\nimport cPickle as pickle\nimport os\nimport numpy as np\nfrom astropy.table import T...
python
new_file
1
1
mit
a6f75a09d028a02681fd549f6841e8cce791fe56
AnnieJumpCannon/RAVE,AnnieJumpCannon/RAVE
stack_repeat_visit_spectra.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Implement example codes to use Cars196 with the modified SerialIterator" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Mon Jan 23 13:09:27 2017\n\n@author: sakurai\n\"\"\"\n\nimport numpy as np...
python
new_file
4
0
mit
17dc07a496d976b082189395498a476089d66108
ronekko/deep_metric_learning
chainer_datasets.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add program for anagram in string_fundamental." }, { "role": "assistant", "content": "\"\"\"\n An anagram of a string is another string that contains same characters, only the order of characters can be different.\n For example \...
python
new_file
1
2
cc0-1.0
8d1a849026447e8bcf49d7e74dbd280f5b2a3e9e
ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs...
string_fundamental/Anagram.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Solve equality in a array" }, { "role": "assistant", "content": "from collections import Counter\n\nsize = int(input().strip())\ncounts = Counter((map(int, input().strip().split(' '))))\nelement, count = counts.most_common(1)[0]\...
python
new_file
1
0
mit
059f084da18bf5e27aa0369bc4658dbccc6789a4
rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank
python/equality_in_a_array.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test for constraint bindings" }, { "role": "assistant", "content": "import pytest\nimport toppra.cpp as tac\n\n\ndef test_linear_vel():\n c = tac.LinearJointVelocity([-1, -1], [1, 1])\n c.discretizationType = tac.Discre...
python
new_file
3
1
mit
13332854f1d8a863a53504be6edac57f267b0569
hungpham2511/toppra,hungpham2511/toppra,hungpham2511/toppra
tests/cpp/test_constraints.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add unit testing for sequence average pool operator." }, { "role": "assistant", "content": "import unittest\nimport numpy as np\nfrom op_test import OpTest\n\n\nclass TestSeqAvgPool1D(OpTest):\n def setUp(self):\n self....
python
new_file
1
2
apache-2.0
05680d0d5a88adaae83d144558eeee5af1ce0c02
luotao1/Paddle,hedaoyuan/Paddle,lcy-seso/Paddle,baidu/Paddle,PaddlePaddle/Paddle,reyoung/Paddle,reyoung/Paddle,pengli09/Paddle,hedaoyuan/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,lcy-seso/Paddle,jacquesqiao/Paddle,hedaoyuan/Paddle,chengduoZH/Paddle,pengli09/Paddle,chengduoZH/Paddle,putcn/Paddle,tensor-tang/Paddle,pkuyy...
python/paddle/v2/framework/tests/test_seq_pool.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add dummy int/long object implementing Number" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nint/long implementation.\n\"\"\"\n\nfrom __future__ import print_function, division, absolute_import\n\nfrom ...
python
new_file
4
1
bsd-2-clause
7b22421343cc29695f254c9334db0481c2c34f64
flypy/flypy,flypy/flypy
numba2/runtime/obj/intobject.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add a tool script to make geom.json files." }, { "role": "assistant", "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016 Jérémie DECOCK (http://www.jdhp.org)\n\n# This script is provided under the...
python
new_file
4
2
mit
58d0bd08b942f07f80ba3e4a0bd0a6849919e4c9
jdhp-sap/data-pipeline-standalone-scripts,jdhp-sap/sap-cta-data-pipeline,jdhp-sap/data-pipeline-standalone-scripts,jdhp-sap/sap-cta-data-pipeline
utils/simtel_to_astri_cropped_geom_json_file.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Split functions to avoid eventlet import.\n\nSome of these functions are used in setup.py. In a virtualenv\nbased workflow, python setup.py sdist is called to create a\ntarball which is then installed into the virtualenv. These\nfunctions ne...
python
new_file
4
5
apache-2.0
e0e7ccbea4a0c55533e27e595b59e442a9da263d
markmc/oslo.packaging,markmc/oslo.packaging
openstack/common/setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Implement solution for sum of first 1000 primes" }, { "role": "assistant", "content": "\ndef gen_primes():\n # logic from Sieve of Eratosthenes\n # by David Eppstein, UC Irvine, 28 Feb 2002\n # http://code.activestate.co...
python
new_file
2
4
mit
2b5cad439ef59cf1aa1ebec396f02b1bec7cdaaa
MikeDelaney/CodeEval
sum_primes/sum_primes.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Relocate dict generator for the locations." }, { "role": "assistant", "content": "def get_location_dict(item, location_type):\n return {\n 'type': location_type,\n 'latitude': item.position.latitude,\n 'lo...
python
new_file
1
1
bsd-3-clause
9ff26b3e351e9bb686d59529454b00b52afde0af
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
us_ignite/maps/utils.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add backwards compatible Distributed Joblib hook\n\nDepending on the versions of Distributed, Joblib, and scikit-learn,\nthere are different strategies for registering the Joblib backend. Try\ngoing with the standard Distributed technique fi...
python
new_file
5
0
apache-2.0
b2dfa7ea44a0b9e061ffbb346fe9196ba96c2a44
nanshe-org/nanshe_workflow,DudLab/nanshe_workflow
nanshe_workflow/_reg_joblib.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Write python code for the following: Add a cli for ontology report generator" }, { "role": "assistant", "content": "from etk.ontology_api import Ontology\nfrom etk.ontology_report_generator import OntologyReportGenerator\n\n\ndef add_arguments(parser):\n parser.d...
python
new_file
1
2
mit
29d2f9f79917cebaf5e126b4ddac4f341ef2a2ae
usc-isi-i2/etk,usc-isi-i2/etk,usc-isi-i2/etk
etk/cli/ontodocgen.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Test suite for new gettext.py module." }, { "role": "assistant", "content": "import os\nimport gettext\n\ndef get_qualified_path(name):\n \"\"\"Return a more qualified path to name\"\"\"\n import sys\n import os\n pat...
python
new_file
27
4
mit
ee1343d8e1bbe0ad8533125b28956b150a41147a
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Lib/test/test_gettext.py
rejected_lint
Too many lint violations: 27
true
[ { "role": "user", "content": "Write python code for the following: Implement GCI url patterns module based on the core url patterns module.\n\nThis code is partly taken from Selwyn's patches during GSoC 2011. Thanks\nto Selwyn for the patch.\n\n--HG--\nextra : rebase_source : a64b9d703c2e309084a77aec627b8c7...
python
new_file
1
1
apache-2.0
284913283fa2340681bdfb5ca3ca3faef9d404b4
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
app/soc/modules/gci/views/helper/url_patterns.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add script to make some test data" }, { "role": "assistant", "content": "import sqlite3\n\n\nINSERT_SONG = '''\nINSERT INTO jukebox_song_queue VALUES (?)\n'''\n\nTEST_URIS = [\n 'spotify:track:5lB3bZKPhng9s4hKB1sSIe', \n 's...
python
new_file
1
0
mit
51760a4cf96074b9d2eb609451512b3fafff7aaa
projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox
make_test_data.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Create script to compare resource id of all volumes" }, { "role": "assistant", "content": "from faasclient.client import Client\n\n\ncredential = get_credentials_for(Environment.objects.get(name='dev'), CredentialType.FAAS)\nfaas...
python
new_file
3
0
bsd-3-clause
74e5e9e8d6dd117b91466f30b961593ef43dd618
globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service
dbaas/maintenance/scripts/compare_resource_id.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test for relative root_map." }, { "role": "assistant", "content": "import pathlib\nimport shutil\n\nfrom bluesky.plans import count\nfrom databroker._drivers.jsonl import BlueskyJSONLCatalog\nimport intake\nfrom ophyd.sim imp...
python
new_file
1
1
bsd-3-clause
4a3c77eb0e69b1bd79c411e2956c158f969bf04c
ericdill/databroker,ericdill/databroker
databroker/tests/test_v2/test_relative_root_map.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add plugin for venue Jack the rooster." }, { "role": "assistant", "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\nfrom typing import List\n\nimport lxml.html\n\nimport re\nimport time\n\nfrom venues.abstract_venue im...
python
new_file
1
3
isc
53cfbf8ffd1485bf6a88f5d92fcb9fdaf9c6866a
weezel/BandEventNotifier
venues/plugin_jacktherooster.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add missing migrations related to video URL\n\nRelated to #668\n\nSigned-off-by: Nabarun Pal <<EMAIL>>" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n# Generated by Django 1.9 on 2020-06-17 18:07\nfrom __future__...
python
new_file
1
0
mit
d84f748f60542d91542ef2e623947f72d562ca35
pythonindia/junction,pythonindia/junction,pythonindia/junction,pythonindia/junction
junction/proposals/migrations/0028_auto_20200617_2337.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Update enabled to be simpler and match rpc-openstack." }, { "role": "assistant", "content": "DASHBOARD = 'rackspace'\n\nADD_INSTALLED_APPS = [\n 'rackspace',\n]\n\nADD_ANGULAR_MODULES = ['horizon.dashboard.rackspace']\n\n# If ...
python
new_file
1
0
apache-2.0
6f632dc5b0f1ee35aaf0041d5bd09f3458dd9d42
BjoernT/rpc-openstack,jacobwagner/rpc-openstack,rcbops/rpc-openstack,robb-romans/rpc-openstack,galstrom21/rpc-openstack,xeregin/rpc-openstack,jacobwagner/rpc-openstack,darrenchan/rpc-openstack,xeregin/rpc-openstack,cloudnull/rpc-openstack,xeregin/rpc-openstack,cloudnull/rpc-openstack,sigmavirus24/rpc-openstack,darrench...
enabled/_50_rackspace.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add sample basic auth layers\n\nNot very flexible, these are more meant to be a sample for others\ncreating Layers. Given how similar the code is and how basic most\nhande_request() methods will be, it might be worth creating something\nsim...
python
new_file
1
3
mit
b7e0811fccbd76ee690c9e042ca86ad419b2d226
numberoverzero/pyservice
pyservice/extensions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Build the project with Biicode.\n\nimport bootstrap, glob, os, shutil\nfrom download import Downloader\nfrom subprocess import check_call\n\nos_name = os.environ['TRAVIS_OS_NAME']\nif os_name == 'linux':\n # Instal...
python
edit
1
0
bsd-2-clause
e1b62a5d39fd3a4adb7d783c131fd122ba09c3d5
blaquee/cppformat,mojoBrendan/fmt,cppformat/cppformat,mojoBrendan/fmt,seungrye/cppformat,lightslife/cppformat,nelson4722/cppformat,alabuzhev/fmt,alabuzhev/fmt,lightslife/cppformat,lightslife/cppformat,cppformat/cppformat,alabuzhev/fmt,cppformat/cppformat,Jopie64/cppformat,blaquee/cppformat,mojoBrendan/fmt,dean0x7d/cppf...
support/biicode-build.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add script for finding sentences that cannot be parsed with our IRTG" }, { "role": "assistant", "content": "#!/usr/bin/env python\n# *-* coding=utf-8 *-*\n\n# Compares the nolarge.graphs file (the one without #-lines) and Alto's ...
python
new_file
1
3
mit
964607453ea240f8f281a1d84c24fe3b98fda6f4
kornai/4lang,kornai/4lang,kornai/4lang,kornai/4lang
exp/alto/tools/find_nulls.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: DOC: Add example for Top-K with Others." }, { "role": "assistant", "content": "\"\"\"\nTop-K plot with Others\n----------------------\nThis example shows how to use aggregate, window, and calculate transfromations\nto display the...
python
new_file
1
0
bsd-3-clause
8a2979ae72bcd691521e2694c974219edfe5dc3b
altair-viz/altair,jakevdp/altair
altair/examples/top_k_with_others.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add basic spreadsheet service which can get a range from a public spreadsheet.\n\nJustification: the owners and some other more minor details about\nbenchmarks are currently stored in a spreadsheet. I need to get that\ndata to make a solid b...
python
new_file
1
2
bsd-3-clause
95c33d94d5efa5157c45c96cb7f2279c655568a7
catapult-project/catapult,sahiljain/catapult,benschmaus/catapult,benschmaus/catapult,benschmaus/catapult,sahiljain/catapult,sahiljain/catapult,benschmaus/catapult,catapult-project/catapult-csm,benschmaus/catapult,catapult-project/catapult-csm,catapult-project/catapult-csm,catapult-project/catapult-csm,sahiljain/catapul...
dashboard/dashboard/services/google_sheets_service.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add py solution for 451. Sort Characters By Frequency\n\n451. Sort Characters By Frequency: https://leetcode.com/problems/sort-characters-by-frequency/" }, { "role": "assistant", "content": "from collections import Counter\nclass...
python
new_file
1
2
apache-2.0
34968a1c507af6d5343e15e4c2da533fd90740da
ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode,ckclark/leetcode
py/sort-characters-by-frequency.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Create migration file for accounts app" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n# Generated by Django 1.9 on 2016-05-07 19:02\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, mo...
python
new_file
1
0
mit
94f1a090214d13d6b2dc28576014c2b83d93d18d
mazulo/SGT,mazulo/SGT
sgt/accounts/migrations/0003_auto_20160507_1902.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add missing migration, bump to version 0.3.2\n\nIt's only metadata (labels), so not a dealbreaker." }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import m...
python
new_file
1
0
mit
fd6a777857bc55f1744d86d3756051b236b7f822
yunojuno/django-package-monitor,yunojuno/django-package-monitor
package_monitor/migrations/0004_auto_20160109_1339.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Convert a Spotify playylist from Exportify to yaml" }, { "role": "assistant", "content": "\"\"\"Convert Exportify csv Spotify playlists to yaml.\"\"\"\nimport os\nimport glob\nimport pandas\nimport yaml\n\n\ncsv_files = glob.glob...
python
new_file
1
0
mit
7d6d73dab90be9d3c77cfd81d73e0b5e21c340fa
mdpiper/wunderkammer,mdpiper/wunderkammer,mdpiper/wunderkammer,mdpiper/wunderkammer
playlist-to-yaml.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"EVELink - Python bindings for the EVE API.\"\"\"\n\nimport logging\n\nfrom evelink import account\nfrom evelink import api\nfrom evelink import char\nfrom evelink import constants\nfrom evelink import corp\nfrom evelink import eve\nfr...
python
edit
2
1
mit
0534a6a8a59d16d189b6dc8f452a29b4dee4ff72
bastianh/evelink,zigdon/evelink,ayust/evelink,Morloth1274/EVE-Online-POCO-manager,FashtimeDotCom/evelink
evelink/__init__.py
rejected_duplicate
Near-duplicate of sample 1961
true
[ { "role": "user", "content": "Write python code for the following: Convert a given image to gray color model" }, { "role": "assistant", "content": "import requests\nimport json\n\n# Convert a given image to gray color model. A grayscale (or graylevel) image is simply one in which the only colors...
python
new_file
3
0
bsd-2-clause
4bc449e790bec8faf700162e3b9c98e001aa1ff2
symisc/pixlab,symisc/pixlab,symisc/pixlab
python/grayscale.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Check in anaconda-mode.py so pip doesn't need to install it." }, { "role": "assistant", "content": "\"\"\"\n anaconda_mode\n ~~~~~~~~~~~~~\n\n This is anaconda_mode autocompletion server.\n\n :copyright: (c) 2013-2015...
python
new_file
1
3
mit
221ce25961d1344acf04146c1006c5dc239649ac
Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d,Wilfred/.emacs.d
anaconda-mode/0.1.1/anaconda_mode.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add script to synthesize all uploaded files.\nPatch by Dan Callahan.\n\n\ngit-svn-id: 757818eefc3e095bf4f5c16d67ad3f55b5150c3d@608 072f9a9a-8cf7-0310-8ca5-bf92c90cb7c1" }, { "role": "assistant", "content": "#!/usr/bin/python\n\"\...
python
new_file
4
2
bsd-3-clause
51e04ff17bccb4b71b8d5db4057a782fd2f8520c
techtonik/pydotorg.pypi,techtonik/pydotorg.pypi
tools/touch_all_files.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add unit tests for package resource" }, { "role": "assistant", "content": "import pytest\n\nfrom mock import patch, Mock\n\nfrom spanky.resources import package\n\n\nclass TestPackageResource(object):\n\n def test_package_inst...
python
new_file
4
1
bsd-3-clause
a4e5a2d0efa013847f0b1e90954739fe7224e30d
pglbutt/spanky,pglbutt/spanky,pglbutt/spanky
tests/test_resources.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add bias to cosine distance for two tower models\n\nSummary: Currently using two tower models with cosine distance results in bad calibration. Adding bias to the output of cosine term solves the problem.\n\nReviewed By: xianjiec\n\nDifferent...
python
new_file
3
2
apache-2.0
d3eaa685f788fc6dd19681175d9e0b45a6989fdf
pietern/caffe2,pietern/caffe2,xzturn/caffe2,pietern/caffe2,bwasti/caffe2,pietern/caffe2,davinwang/caffe2,pietern/caffe2,xzturn/caffe2,davinwang/caffe2,davinwang/caffe2,bwasti/caffe2,xzturn/caffe2,davinwang/caffe2,xzturn/caffe2,Yangqing/caffe2,xzturn/caffe2,davinwang/caffe2,bwasti/caffe2,bwasti/caffe2,Yangqing/caffe2,sf...
caffe2/python/layers/add_bias.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add some unit tests for cache object" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n'''\n tests.unit.utils.cache_test\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n Test the salt cache objects\n'''\n\n# Import Salt T...
python
new_file
1
1
apache-2.0
96c76f7a73f247374f5f0113ca048a8970398009
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
tests/unit/utils/cache_test.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add human machine interface node" }, { "role": "assistant", "content": "#!/usr/bin/env python\n\nimport rospy\nfrom std_msgs.msg import Int32\nfrom controller.msg import control\n\n\nmux_pub = rospy.Publisher('pwm_signal_input', ...
python
new_file
1
1
mit
a414bf58797809c3d79251fe0c818b1496bb36a8
vortexntnu/rov-control,vortexntnu/rov-control,vortexntnu/rov-control
scripts/hmi.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add unit test suite for PgBackup" }, { "role": "assistant", "content": "# coding: utf-8\n\"\"\"\nUnit tests for essential functions in postgresql backup.\n\"\"\"\nfrom unittest.mock import MagicMock, mock_open, patch\nimport pyte...
python
new_file
3
1
mit
9a56b447aaf546814e4e87bc6d60855b33fdf3ff
SUSE/smdba,SUSE/smdba
tests/test_pgbackup.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add Python Chapter 4 Challenges" }, { "role": "assistant", "content": "import math\n\nclass Opt:\n def __init__(self, v = None):\n self.valid = (v != None)\n self.value = v\n\ndef safe_rezi(x):\n if x == 0:\n ...
python
new_file
1
2
mit
592786370f21730bcf574b2ce483550ee176ca20
stefanheyder/ReadingCourseCategoryTheroy,stefanheyder/ReadingCourseCategoryTheroy
python/chapter_4.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add PL Calculator for unrealized profit and loss calculation" }, { "role": "assistant", "content": "from decimal import Decimal\n\nfrom cryptex.transaction import Deposit, Withdrawal\nfrom cryptex.trade import Buy, Sell\nfrom fun...
python
new_file
4
6
mit
eee3d08ae24174ae0c44853a688e30d3adaf13c5
coink/cryptex
cryptex/pl_calculator.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add a mosaic drawer in Python" }, { "role": "assistant", "content": "import optparse\nimport fractions\n\nimport cairo\n\nimport turkshead\n\nwidth = 8\nheight = 6\nsize = 200\n\nimg = cairo.ImageSurface( cairo.FORMAT_RGB24, widt...
python
new_file
3
0
mit
c50700f935c81d8fde838192c6201a513d3ab1cf
jacquev6/DrawTurksHead,jacquev6/DrawTurksHead,jacquev6/DrawTurksHead
src/draw_mosaic.py
accepted
null
true