TECHNOLOGY

ETH Py150: preserve project boundaries in Python completion

In this article
THE QUICK TAKE

Removing forks and duplicate files is not the same as holding out whole repositories; inspect the actual partition unit of each Py150 derivative.

Choose source text or the original AST release

The ETH owner page distinguishes version 1.0 parsed ASTs from the source-file archive. The AST JSON represents nodes with type, optional value, and optional child indices. Source manifests align with the corresponding AST order, while repository revision information is supplied separately. Preserve that alignment rather than joining an independently sorted path list to AST rows. The original parser uses Python 2.7, so modern parsing can change both accepted files and node representations without changing the collection’s informal name.

Keep collection filtering separate from holdout design

ETH describes duplicate-file and fork removal, parsing restrictions, and attempts to exclude obfuscated files. Its documented training/evaluation division is expressed in files. These collection filters do not establish that every repository is exclusive to a partition. If the question is transfer to unseen projects, construct and label a separate project-grouped experiment. Retain repository identity through preprocessing and apply leakage checks to copied or closely related code as well as literal duplicate files.

Identify the open manifest derivative precisely

The official eth_py150_open repository releases selection manifests rather than a new source archive. Entries carry filepath and license; train and development derive from the original training files through a file-level division. The open subset excludes unavailable repositories and applies its documented license-selection rules. A license field records the selection’s evidence, not blanket permission for every later redistribution or model use. Do not transfer the original collection’s row counts or split identities to this smaller selected artifact.

Record token normalization as a task change

The CodeXGLUE completion task describes another preparation: tokenized text, normalized literals, sequence boundaries, and an explicit end-of-line marker for Python. Its development set is selected from the original training files. Those tokens are not the raw AST node sequence. Preserve the task preparation and revision in provenance metadata when comparing scores. A literal normalized to a generic marker is an easier and different prediction target from the exact original string.

Match a score to its prediction unit

CodeXGLUE evaluates next-token agreement under its token format, while line completion is a distinct task. Neither result directly measures whether a generated project executes or implements a user’s desired feature. An editorial evaluation can report token categories or project-held-out slices, clearly labeling additions to the released protocol. ETH Py150 is useful for studying historical Python code representations and completion. Its file selection, older syntax, and derivative-specific normalization define the limits of any conclusion about present-day repository assistance.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles