Datasets:
messages listlengths 2 2 |
|---|
[
{
"role": "user",
"content": "Write Python code that implements client_coroutines.py from ahmedbodi/AutobahnPython (path: examples/asyncio/websocket/echo/client_coroutines.py)."
},
{
"role": "assistant",
"content": "# examples/asyncio/websocket/echo/client_coroutines.py (from ahmedbodi/AutobahnP... |
[
{
"role": "user",
"content": "Write Python code that implements registry.py from ifduyue/django (path: django/core/checks/registry.py)."
},
{
"role": "assistant",
"content": "# django/core/checks/registry.py (from ifduyue/django, license: bsd-3-clause)\n\nfrom itertools import chain\n\nfrom djan... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from kmike/scikit-learn (path: sklearn/utils/__init__.py)."
},
{
"role": "assistant",
"content": "# sklearn/utils/__init__.py (from kmike/scikit-learn, license: bsd-3-clause)\n\n\"\"\"\nThe :mod:`sklearn.utils` module in... |
[
{
"role": "user",
"content": "Write Python code that implements cp1250.py from houlixin/BBB-TISDK (path: linux-devkit/sysroots/i686-arago-linux/usr/lib/python2.7/encodings/cp1250.py)."
},
{
"role": "assistant",
"content": "# linux-devkit/sysroots/i686-arago-linux/usr/lib/python2.7/encodings/cp12... |
[
{
"role": "user",
"content": "Write Python code that implements kernel_blacklist.py from dataxu/ansible (path: lib/ansible/modules/system/kernel_blacklist.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/modules/system/kernel_blacklist.py (from dataxu/ansible, license: gpl-3.0)\n\n#!/us... |
[
{
"role": "user",
"content": "Write Python code that implements cache.py from blackbliss/callme (path: flask/lib/python2.7/site-packages/werkzeug/contrib/cache.py)."
},
{
"role": "assistant",
"content": "# flask/lib/python2.7/site-packages/werkzeug/contrib/cache.py (from blackbliss/callme, licen... |
[
{
"role": "user",
"content": "Write Python code that implements tasks.py from pipet/pipet (path: pipet/sources/zendesk/tasks.py)."
},
{
"role": "assistant",
"content": "# pipet/sources/zendesk/tasks.py (from pipet/pipet, license: apache-2.0)\n\nfrom contextlib import contextmanager\nfrom datetim... |
[
{
"role": "user",
"content": "Write Python code that implements config.py from tomchristie/django (path: django/apps/config.py)."
},
{
"role": "assistant",
"content": "# django/apps/config.py (from tomchristie/django, license: bsd-3-clause)\n\nimport os\nfrom importlib import import_module\n\nfr... |
[
{
"role": "user",
"content": "Write Python code that implements test_bigip_gtm_datacenter.py from prutseltje/ansible (path: test/units/modules/network/f5/test_bigip_gtm_datacenter.py)."
},
{
"role": "assistant",
"content": "# test/units/modules/network/f5/test_bigip_gtm_datacenter.py (from pruts... |
[
{
"role": "user",
"content": "Write Python code that implements test_errno.py from antb/TPT----My-old-mod (path: src/python/stdlib/ctypes/test/test_errno.py)."
},
{
"role": "assistant",
"content": "# src/python/stdlib/ctypes/test/test_errno.py (from antb/TPT----My-old-mod, license: gpl-2.0)\n\ni... |
[
{
"role": "user",
"content": "Write Python code that implements creation.py from Sarah-Alsinan/muypicky (path: lib/python3.6/site-packages/django/db/backends/sqlite3/creation.py)."
},
{
"role": "assistant",
"content": "# lib/python3.6/site-packages/django/db/backends/sqlite3/creation.py (from Sa... |
[
{
"role": "user",
"content": "Write Python code that implements sysconfig.py from greenoaktree/MissionPlanner (path: Lib/sysconfig.py)."
},
{
"role": "assistant",
"content": "# Lib/sysconfig.py (from greenoaktree/MissionPlanner, license: gpl-3.0)\n\n\"\"\"Provide access to Python's configuration... |
[
{
"role": "user",
"content": "Write Python code that implements forms.py from marcoantoniooliveira/labweb (path: oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py)."
},
{
"role": "assistant",
"content": "# oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py (fro... |
[
{
"role": "user",
"content": "Write Python code that implements release.py from 2asoft/tdesktop (path: Telegram/build/release.py)."
},
{
"role": "assistant",
"content": "# Telegram/build/release.py (from 2asoft/tdesktop, license: gpl-3.0)\n\nimport os, sys, requests, pprint, re, json\nfrom urite... |
[
{
"role": "user",
"content": "Write Python code that implements hud.py from UASLab/ImageAnalysis (path: video/hud.py)."
},
{
"role": "assistant",
"content": "# video/hud.py (from UASLab/ImageAnalysis, license: mit)\n\nimport datetime\nimport ephem # dnf install python3-pyephem... |
[
{
"role": "user",
"content": "Write Python code that implements text.py from jdemel/gnuradio (path: gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py)."
},
{
"role": "assistant",
"content": "# gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py (from jdemel/gnuradio... |
[
{
"role": "user",
"content": "Write Python code that implements test_hhfit.py from dilawar/moose-full (path: moose-core/python/moose/neuroml2/test_hhfit.py)."
},
{
"role": "assistant",
"content": "# moose-core/python/moose/neuroml2/test_hhfit.py (from dilawar/moose-full, license: gpl-2.0)\n\n# t... |
[
{
"role": "user",
"content": "Write Python code that implements decomp_schur.py from 4rado/RepositoryForProject (path: Lib/site-packages/scipy/linalg/decomp_schur.py)."
},
{
"role": "assistant",
"content": "# Lib/site-packages/scipy/linalg/decomp_schur.py (from 4rado/RepositoryForProject, licens... |
[
{
"role": "user",
"content": "Write Python code that implements kvs.py from savi-dev/keystone (path: keystone/common/kvs.py)."
},
{
"role": "assistant",
"content": "# keystone/common/kvs.py (from savi-dev/keystone, license: apache-2.0)\n\n# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyrigh... |
[
{
"role": "user",
"content": "Write Python code that implements mnist_softmax_xla.py from zasdfgbnm/tensorflow (path: tensorflow/examples/tutorials/mnist/mnist_softmax_xla.py)."
},
{
"role": "assistant",
"content": "# tensorflow/examples/tutorials/mnist/mnist_softmax_xla.py (from zasdfgbnm/tenso... |
End of preview. Expand in Data Studio
CodeParrot Clean Python (sample)
Description
Teaches domain-specific instruction following and code generation for this expert.
Source
- codeparrot/codeparrot-clean - 500 MB streamed sample of 12.8 GB; the per-file licence field is preserved in the text
Formatted for the MoE-orchestrator project
(https://github.com/michaelowusuntim6/MoE-orchestrator). Expert target:
code_python.
Format
Each record is a JSON object with a messages field formatted for Qwen3.5's
native chat template:
{"messages": [
{"role": "system", "content": "..."},
{"role": "user", "content": "..."},
{"role": "assistant", "content": "..."}
]}
The records are consumed via tokenizer.apply_chat_template(). Special tokens
(<|im_start|>, <|im_end|>) are added by the template, never embedded in
content.
Splits
train: 47,048 recordsval: 975 records
Usage
from datasets import load_dataset
ds = load_dataset("michaelowusuntim6/python-codeparrot-qwen35", split="train")
print(ds[0]["messages"])
License
per-file (mostly MIT/Apache-2.0). Upstream sources keep their own licences - see the source list
above and docs/DATASET_SOURCES.md in the MoE-orchestrator repository for
per-source detail.
- Downloads last month
- 26