Elevate repository to reproducible research artifact with shared library, unified scripts, CI, tests, and publication-grade documentation - #2
Merged
Conversation
…ipts Agent-Logs-Url: https://github.com/jorge-martinez-gil/small-code-models/sessions/3353d4e9-7998-4d35-9340-478a9aaaf65f Co-authored-by: jorge-martinez-gil <34342266+jorge-martinez-gil@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jorge-martinez-gil/small-code-models/sessions/3353d4e9-7998-4d35-9340-478a9aaaf65f Co-authored-by: jorge-martinez-gil <34342266+jorge-martinez-gil@users.noreply.github.com>
Agent-Logs-Url: https://github.com/jorge-martinez-gil/small-code-models/sessions/3353d4e9-7998-4d35-9340-478a9aaaf65f Co-authored-by: jorge-martinez-gil <34342266+jorge-martinez-gil@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update README.md to include comprehensive research details
Elevate repository to reproducible research artifact with shared library, unified scripts, CI, tests, and publication-grade documentation
May 7, 2026
jorge-martinez-gil
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR restructures the repository into a citation-ready, reproducible benchmark artifact aligned with the companion paper. It centralizes duplicated training/evaluation logic, formalizes packaging and CI, and upgrades documentation for faster adoption by researchers.
Documentation and research framing
README.mdwith a paper-centric structure: expanded abstract, contributions, model/HF Hub matrix, per-dataset benchmark summary tables, quick start, repository tree, citation formats (BibTeX + APA), related work, and contact details.docs/RESULTS.mdwith dataset-by-dataset result tables, key takeaways, and reproducibility notes.CHANGELOG.mdwith1.1.0entry reflecting the new architecture and reproducibility assets.Shared Python package (
small_code_models/)small_code_models/__init__.py,data.py,metrics.py, andtrainer.py.Trainerwrapper with consistent defaults and run flow.Script refactor and CLI standardization
--data_dir,--output_dir,--sample_pct,--epochs) and removed hardcoded Google Drive paths.Reproducibility and developer ergonomics
pyproject.tomlfor editable installation and dependency metadata.scripts/run_all_benchmarks.shto execute all model × dataset runs and emit a compact summary.notebooks/quick_start.ipynb(Colab-ready, self-contained synthetic demo).Quality gates
.github/workflows/ci.yml(Python 3.10, package install, lint, conditional tests).tests/test_metrics.pyandtests/test_data.pywith focused unit coverage for shared utilities..gitignorefor Python artifact hygiene.Original prompt
Goal
Transform the
small-code-modelsrepository into a highly professional, academic-quality research artifact that maximises citations, reproducibility, and community adoption. The companion paper is "Evaluating Small-Scale Code Models for Code Clone Detection" (arXiv:2506.10995, DOI: https://doi.org/10.48550/arXiv.2506.10995), authored by Jorge Martinez-Gil (ORCID: 0000-0002-1632-1580).1. Overhaul the README.md
Replace the existing
README.mdwith a much richer version that includes all the following sections, in order:Header section
# Evaluating Small-Scale Code Models for Code Clone Detection[](…)[](…)[](https://colab.research.google.com/github/jorge-martinez-gil/small-code-models/blob/main/notebooks/quick_start.ipynb)[](https://doi.org/10.48550/arXiv.2506.10995)[](…)Abstract
Keep the existing paragraph but add a final sentence: "All evaluation scripts, pre-processed dataset loaders, and results are publicly available in this repository to facilitate reproducibility and further research."
Key Contributions (bullet list)
Clearly enumerate the main research contributions:
small_code_models/) enabling researchers to plug in new models with ≤30 lines of code.Models Evaluated (keep existing table, add a "HuggingFace Hub ID" column)
microsoft/codebert-basemicrosoft/graphcodebert-baseuclanlp/plbart-baseNinedayWang/PolyCoder-0.4Bmicrosoft/unixcoder-baseSalesforce/codet5-baseBenchmark Results
Add a Results Summary table for each dataset (use placeholder values clearly marked as "representative values — see paper for exact figures"):
BigCloneBench (BCB)
(Add equivalent tables for POJ104, GCJ, Karnalim, PoolC.)
Add a note: "Exact figures are reported in Table 2 of the paper. Run the scripts to reproduce."
Quick Start (new section)
Also include a Google Colab badge pointing to
notebooks/quick_start.ipynb.Repository Structure (tree diagram)
Citing this work (keep and expand)
Add both BibTeX and APA format, plus a note:...
This pull request was created from Copilot chat.