SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.07070 · 2023

Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanations

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2311.07070.json · badge: /api/ran/2311.07070.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
pootiet/explain-then-translate canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
assoc_to_dict_list Ran
ran; our contract draft was wrong, not the code
pootiet/explain-then-translate/MultiPL-C2C/inference/openai_multimodel_multikey.py
pointer only (licence: NONE) · get_code("23aff1b8ab7d99ca")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

completion_is_nearly_all_comments Ran
ran, violated the contract we drafted
pootiet/explain-then-translate/MultiPL-C2C/src/single_experiment_error_types.py
pointer only (licence: NONE) · get_code("4322fa221ee62af1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

estimator Ran
ran, honoured the contract we drafted
pootiet/explain-then-translate/MultiPL-C2C/src/single_experiment_pass_k.py
pointer only (licence: NONE) · get_code("9f3bd1f5682c5042")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

estimator Ran
ran, honoured the contract we drafted
pootiet/explain-then-translate/MultiPL-C2C/src/single_experiment_error_types.py
pointer only (licence: NONE) · get_code("3011ffdc360d52b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

for_file Ran
ran, honoured the contract we drafted
pootiet/explain-then-translate/MultiPL-C2C/src/single_experiment_pass_k.py
pointer only (licence: NONE) · get_code("4a86d5bc60b72487")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gunzip_json Ran
ran; our contract draft was wrong, not the code
pootiet/explain-then-translate/MultiPL-C2C/util.py
pointer only (licence: NONE) · get_code("ac69a012e5b2b50f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

last_index Ran
ran; our contract draft was wrong, not the code
pootiet/explain-then-translate/CodeGenMirror/codegen_sources/model/contex_embed.py
pointer only (licence: NONE) · get_code("a8a816153618c124")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

open_json Ran
ran; our contract draft was wrong, not the code
pootiet/explain-then-translate/MultiPL-C2C/src/single_experiment_error_types.py
pointer only (licence: NONE) · get_code("929eacd69001d272")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

remove_all_after_last_elem Ran
ran; our contract draft was wrong, not the code
pootiet/explain-then-translate/CodeGenMirror/codegen_sources/model/contex_embed.py
pointer only (licence: NONE) · get_code("5590c5c65aecd3ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sinkhorn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pootiet/explain-then-translate/CodeGenMirror/codegen_sources/model/contex_embed.py
pointer only (licence: NONE) · get_code("a61f428c6d2822f2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_script Not yet run
unverified (harvested, no recorded run)
pootiet/explain-then-translate/MultiPL-C2C/src/check_go.py
pointer only (licence: NONE) · get_code("9ceaec66f3dd3f63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

check_script Not yet run
unverified (harvested, no recorded run)
pootiet/explain-then-translate/MultiPL-C2C/src/check_swift.py
pointer only (licence: NONE) · get_code("eb7bbd2a96647ce8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pootiet/explain-then-translate when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
estimator 1 other paper
1 later
2401.15545 (2024-01)
PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This work explores the use of self-generated natural language explanations as an intermediate step for code-to-code translation with language models. Across three types of explanations and 19 programming languages constructed from the MultiPL-E dataset, we find the explanations to be particularly effective in the zero-shot case, improving performance by 12% on average. Improvements with natural language explanations are particularly pronounced on difficult programs. We release our dataset, code, and canonical solutions in all 19 languages.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.07070")
get_code_for_paper("2311.07070")
have("2311.07070")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2311.07070.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2311.07070.svg)](https://syntology.ai/paper/2311.07070)

Connect an agent — have() is free.