Initial upload: MM-IssueLoc Bench v1.0 (canonical + function_level parquet, VCE+ preview, repo downloader)
Browse files- .gitattributes +33 -57
- .gitignore +219 -0
- LICENSE +408 -0
- README.md +238 -3
- commit_cache.json +0 -0
- data/canonical.parquet +3 -0
- data/function_level.parquet +3 -0
- examples/load_dataset.py +132 -0
- examples/preview/README.md +52 -0
- examples/preview/images/issue_1046002728_0.png +3 -0
- examples/preview/images/issue_1046002728_1.png +3 -0
- examples/preview/images/issue_1089563270_0.png +3 -0
- examples/preview/images/issue_1139055572_0.png +3 -0
- examples/preview/images/issue_1183794769_0.png +3 -0
- examples/preview/images/issue_1258254518_0.png +3 -0
- examples/preview/images/issue_1258254518_1.png +3 -0
- examples/preview/images/issue_1258254518_2.png +3 -0
- examples/preview/images/issue_1258254518_3.png +3 -0
- examples/preview/images/issue_1404291208_2.png +3 -0
- examples/preview/images/issue_1446535193_0.png +3 -0
- examples/preview/images/issue_1686961597_0.png +3 -0
- examples/preview/images/issue_1686961597_1.png +3 -0
- examples/preview/images/issue_1686961597_2.png +3 -0
- examples/preview/images/issue_1686961597_3.png +3 -0
- examples/preview/images/issue_1744195027_0.png +3 -0
- examples/preview/images/issue_1744195027_1.png +3 -0
- examples/preview/images/issue_1747755915_0.png +3 -0
- examples/preview/images/issue_1939776450_0.png +3 -0
- examples/preview/images/issue_1939776450_1.png +3 -0
- examples/preview/images/issue_2002892676_0.png +3 -0
- examples/preview/images/issue_2002892676_1.png +3 -0
- examples/preview/images/issue_2002892676_2.png +3 -0
- examples/preview/images/issue_2063202600_0.png +3 -0
- examples/preview/images/issue_2196559031_0.png +3 -0
- examples/preview/images/issue_2198685509_0.png +3 -0
- examples/preview/images/issue_2307825533_0.png +3 -0
- examples/preview/images/issue_2350500234_0.png +3 -0
- examples/preview/images/issue_2354946530_0.png +3 -0
- examples/preview/images/issue_2432031126_0.png +3 -0
- examples/preview/images/issue_713712983_0.png +3 -0
- examples/preview/preview.jsonl +0 -0
- examples/preview/vce_plus_preview.jsonl +20 -0
- scripts/download_repos.py +309 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,36 @@
|
|
| 1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
-
*
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 3 |
*.pkl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
examples/preview/images/issue_1046002728_0.png filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
examples/preview/images/issue_1046002728_1.png filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
examples/preview/images/issue_1089563270_0.png filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
examples/preview/images/issue_1139055572_0.png filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
examples/preview/images/issue_1183794769_0.png filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
examples/preview/images/issue_1258254518_0.png filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
examples/preview/images/issue_1258254518_1.png filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
examples/preview/images/issue_1258254518_2.png filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
examples/preview/images/issue_1258254518_3.png filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
examples/preview/images/issue_1404291208_2.png filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
examples/preview/images/issue_1446535193_0.png filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
examples/preview/images/issue_1686961597_0.png filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
examples/preview/images/issue_1686961597_1.png filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
examples/preview/images/issue_1686961597_2.png filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
examples/preview/images/issue_1686961597_3.png filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
examples/preview/images/issue_1744195027_0.png filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
examples/preview/images/issue_1744195027_1.png filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
examples/preview/images/issue_1747755915_0.png filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
examples/preview/images/issue_1939776450_0.png filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
examples/preview/images/issue_1939776450_1.png filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
examples/preview/images/issue_2002892676_0.png filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
examples/preview/images/issue_2002892676_1.png filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
examples/preview/images/issue_2002892676_2.png filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
examples/preview/images/issue_2063202600_0.png filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
examples/preview/images/issue_2196559031_0.png filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
examples/preview/images/issue_2198685509_0.png filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
examples/preview/images/issue_2307825533_0.png filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
examples/preview/images/issue_2350500234_0.png filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
examples/preview/images/issue_2354946530_0.png filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
examples/preview/images/issue_2432031126_0.png filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
examples/preview/images/issue_713712983_0.png filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Byte-compiled / optimized / DLL files
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[codz]
|
| 4 |
+
*$py.class
|
| 5 |
+
|
| 6 |
+
.DS_Store
|
| 7 |
+
# C extensions
|
| 8 |
+
*.so
|
| 9 |
+
|
| 10 |
+
# Distribution / packaging
|
| 11 |
+
.Python
|
| 12 |
+
build/
|
| 13 |
+
develop-eggs/
|
| 14 |
+
dist/
|
| 15 |
+
downloads/
|
| 16 |
+
eggs/
|
| 17 |
+
.eggs/
|
| 18 |
+
lib/
|
| 19 |
+
lib64/
|
| 20 |
+
parts/
|
| 21 |
+
sdist/
|
| 22 |
+
var/
|
| 23 |
+
wheels/
|
| 24 |
+
share/python-wheels/
|
| 25 |
+
*.egg-info/
|
| 26 |
+
.installed.cfg
|
| 27 |
+
*.egg
|
| 28 |
+
MANIFEST
|
| 29 |
+
|
| 30 |
+
# PyInstaller
|
| 31 |
+
# Usually these files are written by a python script from a template
|
| 32 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
| 33 |
+
*.manifest
|
| 34 |
+
*.spec
|
| 35 |
+
|
| 36 |
+
# Installer logs
|
| 37 |
+
pip-log.txt
|
| 38 |
+
pip-delete-this-directory.txt
|
| 39 |
+
|
| 40 |
+
# Unit test / coverage reports
|
| 41 |
+
htmlcov/
|
| 42 |
+
.tox/
|
| 43 |
+
.nox/
|
| 44 |
+
.coverage
|
| 45 |
+
.coverage.*
|
| 46 |
+
.cache
|
| 47 |
+
nosetests.xml
|
| 48 |
+
coverage.xml
|
| 49 |
+
*.cover
|
| 50 |
+
*.py.cover
|
| 51 |
+
.hypothesis/
|
| 52 |
+
.pytest_cache/
|
| 53 |
+
cover/
|
| 54 |
+
|
| 55 |
+
# Translations
|
| 56 |
+
*.mo
|
| 57 |
+
*.pot
|
| 58 |
+
|
| 59 |
+
# Django stuff:
|
| 60 |
+
*.log
|
| 61 |
+
local_settings.py
|
| 62 |
+
db.sqlite3
|
| 63 |
+
db.sqlite3-journal
|
| 64 |
+
|
| 65 |
+
# Flask stuff:
|
| 66 |
+
instance/
|
| 67 |
+
.webassets-cache
|
| 68 |
+
|
| 69 |
+
# Scrapy stuff:
|
| 70 |
+
.scrapy
|
| 71 |
+
|
| 72 |
+
# Sphinx documentation
|
| 73 |
+
docs/_build/
|
| 74 |
+
|
| 75 |
+
# PyBuilder
|
| 76 |
+
.pybuilder/
|
| 77 |
+
target/
|
| 78 |
+
|
| 79 |
+
# Jupyter Notebook
|
| 80 |
+
.ipynb_checkpoints
|
| 81 |
+
|
| 82 |
+
# IPython
|
| 83 |
+
profile_default/
|
| 84 |
+
ipython_config.py
|
| 85 |
+
|
| 86 |
+
# pyenv
|
| 87 |
+
# For a library or package, you might want to ignore these files since the code is
|
| 88 |
+
# intended to run in multiple environments; otherwise, check them in:
|
| 89 |
+
# .python-version
|
| 90 |
+
|
| 91 |
+
# pipenv
|
| 92 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
| 93 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
| 94 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
| 95 |
+
# install all needed dependencies.
|
| 96 |
+
# Pipfile.lock
|
| 97 |
+
|
| 98 |
+
# UV
|
| 99 |
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
| 100 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
| 101 |
+
# commonly ignored for libraries.
|
| 102 |
+
# uv.lock
|
| 103 |
+
|
| 104 |
+
# poetry
|
| 105 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
| 106 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
| 107 |
+
# commonly ignored for libraries.
|
| 108 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
| 109 |
+
# poetry.lock
|
| 110 |
+
# poetry.toml
|
| 111 |
+
|
| 112 |
+
# pdm
|
| 113 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
| 114 |
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
| 115 |
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
| 116 |
+
# pdm.lock
|
| 117 |
+
# pdm.toml
|
| 118 |
+
.pdm-python
|
| 119 |
+
.pdm-build/
|
| 120 |
+
|
| 121 |
+
# pixi
|
| 122 |
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
| 123 |
+
# pixi.lock
|
| 124 |
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
| 125 |
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
| 126 |
+
.pixi
|
| 127 |
+
|
| 128 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
| 129 |
+
__pypackages__/
|
| 130 |
+
|
| 131 |
+
# Celery stuff
|
| 132 |
+
celerybeat-schedule
|
| 133 |
+
celerybeat.pid
|
| 134 |
+
|
| 135 |
+
# Redis
|
| 136 |
+
*.rdb
|
| 137 |
+
*.aof
|
| 138 |
+
*.pid
|
| 139 |
+
|
| 140 |
+
# RabbitMQ
|
| 141 |
+
mnesia/
|
| 142 |
+
rabbitmq/
|
| 143 |
+
rabbitmq-data/
|
| 144 |
+
|
| 145 |
+
# ActiveMQ
|
| 146 |
+
activemq-data/
|
| 147 |
+
|
| 148 |
+
# SageMath parsed files
|
| 149 |
+
*.sage.py
|
| 150 |
+
|
| 151 |
+
# Environments
|
| 152 |
+
.env
|
| 153 |
+
.envrc
|
| 154 |
+
.venv
|
| 155 |
+
env/
|
| 156 |
+
venv/
|
| 157 |
+
ENV/
|
| 158 |
+
env.bak/
|
| 159 |
+
venv.bak/
|
| 160 |
+
|
| 161 |
+
# Spyder project settings
|
| 162 |
+
.spyderproject
|
| 163 |
+
.spyproject
|
| 164 |
+
|
| 165 |
+
# Rope project settings
|
| 166 |
+
.ropeproject
|
| 167 |
+
|
| 168 |
+
# mkdocs documentation
|
| 169 |
+
/site
|
| 170 |
+
|
| 171 |
+
# mypy
|
| 172 |
+
.mypy_cache/
|
| 173 |
+
.dmypy.json
|
| 174 |
+
dmypy.json
|
| 175 |
+
|
| 176 |
+
# Pyre type checker
|
| 177 |
+
.pyre/
|
| 178 |
+
|
| 179 |
+
# pytype static type analyzer
|
| 180 |
+
.pytype/
|
| 181 |
+
|
| 182 |
+
# Cython debug symbols
|
| 183 |
+
cython_debug/
|
| 184 |
+
|
| 185 |
+
# PyCharm
|
| 186 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
| 187 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
| 188 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
| 189 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
| 190 |
+
# .idea/
|
| 191 |
+
|
| 192 |
+
# Abstra
|
| 193 |
+
# Abstra is an AI-powered process automation framework.
|
| 194 |
+
# Ignore directories containing user credentials, local state, and settings.
|
| 195 |
+
# Learn more at https://abstra.io/docs
|
| 196 |
+
.abstra/
|
| 197 |
+
|
| 198 |
+
# Visual Studio Code
|
| 199 |
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
| 200 |
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
| 201 |
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
| 202 |
+
# you could uncomment the following to ignore the entire vscode folder
|
| 203 |
+
# .vscode/
|
| 204 |
+
# Temporary file for partial code execution
|
| 205 |
+
tempCodeRunnerFile.py
|
| 206 |
+
|
| 207 |
+
# Ruff stuff:
|
| 208 |
+
.ruff_cache/
|
| 209 |
+
|
| 210 |
+
# PyPI configuration file
|
| 211 |
+
.pypirc
|
| 212 |
+
|
| 213 |
+
# Marimo
|
| 214 |
+
marimo/_static/
|
| 215 |
+
marimo/_lsp/
|
| 216 |
+
__marimo__/
|
| 217 |
+
|
| 218 |
+
# Streamlit
|
| 219 |
+
.streamlit/secrets.toml
|
LICENSE
ADDED
|
@@ -0,0 +1,408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Attribution-NonCommercial 4.0 International
|
| 2 |
+
|
| 3 |
+
=======================================================================
|
| 4 |
+
|
| 5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
| 6 |
+
does not provide legal services or legal advice. Distribution of
|
| 7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
| 8 |
+
other relationship. Creative Commons makes its licenses and related
|
| 9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
| 10 |
+
warranties regarding its licenses, any material licensed under their
|
| 11 |
+
terms and conditions, or any related information. Creative Commons
|
| 12 |
+
disclaims all liability for damages resulting from their use to the
|
| 13 |
+
fullest extent possible.
|
| 14 |
+
|
| 15 |
+
Using Creative Commons Public Licenses
|
| 16 |
+
|
| 17 |
+
Creative Commons public licenses provide a standard set of terms and
|
| 18 |
+
conditions that creators and other rights holders may use to share
|
| 19 |
+
original works of authorship and other material subject to copyright
|
| 20 |
+
and certain other rights specified in the public license below. The
|
| 21 |
+
following considerations are for informational purposes only, are not
|
| 22 |
+
exhaustive, and do not form part of our licenses.
|
| 23 |
+
|
| 24 |
+
Considerations for licensors: Our public licenses are
|
| 25 |
+
intended for use by those authorized to give the public
|
| 26 |
+
permission to use material in ways otherwise restricted by
|
| 27 |
+
copyright and certain other rights. Our licenses are
|
| 28 |
+
irrevocable. Licensors should read and understand the terms
|
| 29 |
+
and conditions of the license they choose before applying it.
|
| 30 |
+
Licensors should also secure all rights necessary before
|
| 31 |
+
applying our licenses so that the public can reuse the
|
| 32 |
+
material as expected. Licensors should clearly mark any
|
| 33 |
+
material not subject to the license. This includes other CC-
|
| 34 |
+
licensed material, or material used under an exception or
|
| 35 |
+
limitation to copyright. More considerations for licensors:
|
| 36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
| 37 |
+
|
| 38 |
+
Considerations for the public: By using one of our public
|
| 39 |
+
licenses, a licensor grants the public permission to use the
|
| 40 |
+
licensed material under specified terms and conditions. If
|
| 41 |
+
the licensor's permission is not necessary for any reason--for
|
| 42 |
+
example, because of any applicable exception or limitation to
|
| 43 |
+
copyright--then that use is not regulated by the license. Our
|
| 44 |
+
licenses grant only permissions under copyright and certain
|
| 45 |
+
other rights that a licensor has authority to grant. Use of
|
| 46 |
+
the licensed material may still be restricted for other
|
| 47 |
+
reasons, including because others have copyright or other
|
| 48 |
+
rights in the material. A licensor may make special requests,
|
| 49 |
+
such as asking that all changes be marked or described.
|
| 50 |
+
Although not required by our licenses, you are encouraged to
|
| 51 |
+
respect those requests where reasonable. More considerations
|
| 52 |
+
for the public:
|
| 53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
| 54 |
+
|
| 55 |
+
=======================================================================
|
| 56 |
+
|
| 57 |
+
Creative Commons Attribution-NonCommercial 4.0 International Public
|
| 58 |
+
License
|
| 59 |
+
|
| 60 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 61 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 62 |
+
Attribution-NonCommercial 4.0 International Public License ("Public
|
| 63 |
+
License"). To the extent this Public License may be interpreted as a
|
| 64 |
+
contract, You are granted the Licensed Rights in consideration of Your
|
| 65 |
+
acceptance of these terms and conditions, and the Licensor grants You
|
| 66 |
+
such rights in consideration of benefits the Licensor receives from
|
| 67 |
+
making the Licensed Material available under these terms and
|
| 68 |
+
conditions.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
Section 1 -- Definitions.
|
| 72 |
+
|
| 73 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 74 |
+
Rights that is derived from or based upon the Licensed Material
|
| 75 |
+
and in which the Licensed Material is translated, altered,
|
| 76 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 77 |
+
permission under the Copyright and Similar Rights held by the
|
| 78 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 79 |
+
Material is a musical work, performance, or sound recording,
|
| 80 |
+
Adapted Material is always produced where the Licensed Material is
|
| 81 |
+
synched in timed relation with a moving image.
|
| 82 |
+
|
| 83 |
+
b. Adapter's License means the license You apply to Your Copyright
|
| 84 |
+
and Similar Rights in Your contributions to Adapted Material in
|
| 85 |
+
accordance with the terms and conditions of this Public License.
|
| 86 |
+
|
| 87 |
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
| 88 |
+
closely related to copyright including, without limitation,
|
| 89 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 90 |
+
Rights, without regard to how the rights are labeled or
|
| 91 |
+
categorized. For purposes of this Public License, the rights
|
| 92 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 93 |
+
Rights.
|
| 94 |
+
d. Effective Technological Measures means those measures that, in the
|
| 95 |
+
absence of proper authority, may not be circumvented under laws
|
| 96 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 97 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 98 |
+
agreements.
|
| 99 |
+
|
| 100 |
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 101 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 102 |
+
that applies to Your use of the Licensed Material.
|
| 103 |
+
|
| 104 |
+
f. Licensed Material means the artistic or literary work, database,
|
| 105 |
+
or other material to which the Licensor applied this Public
|
| 106 |
+
License.
|
| 107 |
+
|
| 108 |
+
g. Licensed Rights means the rights granted to You subject to the
|
| 109 |
+
terms and conditions of this Public License, which are limited to
|
| 110 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 111 |
+
Licensed Material and that the Licensor has authority to license.
|
| 112 |
+
|
| 113 |
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
| 114 |
+
under this Public License.
|
| 115 |
+
|
| 116 |
+
i. NonCommercial means not primarily intended for or directed towards
|
| 117 |
+
commercial advantage or monetary compensation. For purposes of
|
| 118 |
+
this Public License, the exchange of the Licensed Material for
|
| 119 |
+
other material subject to Copyright and Similar Rights by digital
|
| 120 |
+
file-sharing or similar means is NonCommercial provided there is
|
| 121 |
+
no payment of monetary compensation in connection with the
|
| 122 |
+
exchange.
|
| 123 |
+
|
| 124 |
+
j. Share means to provide material to the public by any means or
|
| 125 |
+
process that requires permission under the Licensed Rights, such
|
| 126 |
+
as reproduction, public display, public performance, distribution,
|
| 127 |
+
dissemination, communication, or importation, and to make material
|
| 128 |
+
available to the public including in ways that members of the
|
| 129 |
+
public may access the material from a place and at a time
|
| 130 |
+
individually chosen by them.
|
| 131 |
+
|
| 132 |
+
k. Sui Generis Database Rights means rights other than copyright
|
| 133 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 134 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 135 |
+
as amended and/or succeeded, as well as other essentially
|
| 136 |
+
equivalent rights anywhere in the world.
|
| 137 |
+
|
| 138 |
+
l. You means the individual or entity exercising the Licensed Rights
|
| 139 |
+
under this Public License. Your has a corresponding meaning.
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
Section 2 -- Scope.
|
| 143 |
+
|
| 144 |
+
a. License grant.
|
| 145 |
+
|
| 146 |
+
1. Subject to the terms and conditions of this Public License,
|
| 147 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 148 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 149 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 150 |
+
|
| 151 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 152 |
+
in part, for NonCommercial purposes only; and
|
| 153 |
+
|
| 154 |
+
b. produce, reproduce, and Share Adapted Material for
|
| 155 |
+
NonCommercial purposes only.
|
| 156 |
+
|
| 157 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 158 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 159 |
+
License does not apply, and You do not need to comply with
|
| 160 |
+
its terms and conditions.
|
| 161 |
+
|
| 162 |
+
3. Term. The term of this Public License is specified in Section
|
| 163 |
+
6(a).
|
| 164 |
+
|
| 165 |
+
4. Media and formats; technical modifications allowed. The
|
| 166 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 167 |
+
all media and formats whether now known or hereafter created,
|
| 168 |
+
and to make technical modifications necessary to do so. The
|
| 169 |
+
Licensor waives and/or agrees not to assert any right or
|
| 170 |
+
authority to forbid You from making technical modifications
|
| 171 |
+
necessary to exercise the Licensed Rights, including
|
| 172 |
+
technical modifications necessary to circumvent Effective
|
| 173 |
+
Technological Measures. For purposes of this Public License,
|
| 174 |
+
simply making modifications authorized by this Section 2(a)
|
| 175 |
+
(4) never produces Adapted Material.
|
| 176 |
+
|
| 177 |
+
5. Downstream recipients.
|
| 178 |
+
|
| 179 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 180 |
+
recipient of the Licensed Material automatically
|
| 181 |
+
receives an offer from the Licensor to exercise the
|
| 182 |
+
Licensed Rights under the terms and conditions of this
|
| 183 |
+
Public License.
|
| 184 |
+
|
| 185 |
+
b. No downstream restrictions. You may not offer or impose
|
| 186 |
+
any additional or different terms or conditions on, or
|
| 187 |
+
apply any Effective Technological Measures to, the
|
| 188 |
+
Licensed Material if doing so restricts exercise of the
|
| 189 |
+
Licensed Rights by any recipient of the Licensed
|
| 190 |
+
Material.
|
| 191 |
+
|
| 192 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 193 |
+
may be construed as permission to assert or imply that You
|
| 194 |
+
are, or that Your use of the Licensed Material is, connected
|
| 195 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 196 |
+
the Licensor or others designated to receive attribution as
|
| 197 |
+
provided in Section 3(a)(1)(A)(i).
|
| 198 |
+
|
| 199 |
+
b. Other rights.
|
| 200 |
+
|
| 201 |
+
1. Moral rights, such as the right of integrity, are not
|
| 202 |
+
licensed under this Public License, nor are publicity,
|
| 203 |
+
privacy, and/or other similar personality rights; however, to
|
| 204 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 205 |
+
assert any such rights held by the Licensor to the limited
|
| 206 |
+
extent necessary to allow You to exercise the Licensed
|
| 207 |
+
Rights, but not otherwise.
|
| 208 |
+
|
| 209 |
+
2. Patent and trademark rights are not licensed under this
|
| 210 |
+
Public License.
|
| 211 |
+
|
| 212 |
+
3. To the extent possible, the Licensor waives any right to
|
| 213 |
+
collect royalties from You for the exercise of the Licensed
|
| 214 |
+
Rights, whether directly or through a collecting society
|
| 215 |
+
under any voluntary or waivable statutory or compulsory
|
| 216 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 217 |
+
reserves any right to collect such royalties, including when
|
| 218 |
+
the Licensed Material is used other than for NonCommercial
|
| 219 |
+
purposes.
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
Section 3 -- License Conditions.
|
| 223 |
+
|
| 224 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 225 |
+
following conditions.
|
| 226 |
+
|
| 227 |
+
a. Attribution.
|
| 228 |
+
|
| 229 |
+
1. If You Share the Licensed Material (including in modified
|
| 230 |
+
form), You must:
|
| 231 |
+
|
| 232 |
+
a. retain the following if it is supplied by the Licensor
|
| 233 |
+
with the Licensed Material:
|
| 234 |
+
|
| 235 |
+
i. identification of the creator(s) of the Licensed
|
| 236 |
+
Material and any others designated to receive
|
| 237 |
+
attribution, in any reasonable manner requested by
|
| 238 |
+
the Licensor (including by pseudonym if
|
| 239 |
+
designated);
|
| 240 |
+
|
| 241 |
+
ii. a copyright notice;
|
| 242 |
+
|
| 243 |
+
iii. a notice that refers to this Public License;
|
| 244 |
+
|
| 245 |
+
iv. a notice that refers to the disclaimer of
|
| 246 |
+
warranties;
|
| 247 |
+
|
| 248 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 249 |
+
extent reasonably practicable;
|
| 250 |
+
|
| 251 |
+
b. indicate if You modified the Licensed Material and
|
| 252 |
+
retain an indication of any previous modifications; and
|
| 253 |
+
|
| 254 |
+
c. indicate the Licensed Material is licensed under this
|
| 255 |
+
Public License, and include the text of, or the URI or
|
| 256 |
+
hyperlink to, this Public License.
|
| 257 |
+
|
| 258 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 259 |
+
reasonable manner based on the medium, means, and context in
|
| 260 |
+
which You Share the Licensed Material. For example, it may be
|
| 261 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 262 |
+
hyperlink to a resource that includes the required
|
| 263 |
+
information.
|
| 264 |
+
|
| 265 |
+
3. If requested by the Licensor, You must remove any of the
|
| 266 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 267 |
+
reasonably practicable.
|
| 268 |
+
|
| 269 |
+
4. If You Share Adapted Material You produce, the Adapter's
|
| 270 |
+
License You apply must not prevent recipients of the Adapted
|
| 271 |
+
Material from complying with this Public License.
|
| 272 |
+
|
| 273 |
+
|
| 274 |
+
Section 4 -- Sui Generis Database Rights.
|
| 275 |
+
|
| 276 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 277 |
+
apply to Your use of the Licensed Material:
|
| 278 |
+
|
| 279 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 280 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 281 |
+
portion of the contents of the database for NonCommercial purposes
|
| 282 |
+
only;
|
| 283 |
+
|
| 284 |
+
b. if You include all or a substantial portion of the database
|
| 285 |
+
contents in a database in which You have Sui Generis Database
|
| 286 |
+
Rights, then the database in which You have Sui Generis Database
|
| 287 |
+
Rights (but not its individual contents) is Adapted Material; and
|
| 288 |
+
|
| 289 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 290 |
+
all or a substantial portion of the contents of the database.
|
| 291 |
+
|
| 292 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 293 |
+
replace Your obligations under this Public License where the Licensed
|
| 294 |
+
Rights include other Copyright and Similar Rights.
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 298 |
+
|
| 299 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 300 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 301 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 302 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 303 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 304 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 305 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 306 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 307 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 308 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 309 |
+
|
| 310 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 311 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 312 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 313 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 314 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 315 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 316 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 317 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 318 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 319 |
+
|
| 320 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 321 |
+
above shall be interpreted in a manner that, to the extent
|
| 322 |
+
possible, most closely approximates an absolute disclaimer and
|
| 323 |
+
waiver of all liability.
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
Section 6 -- Term and Termination.
|
| 327 |
+
|
| 328 |
+
a. This Public License applies for the term of the Copyright and
|
| 329 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 330 |
+
this Public License, then Your rights under this Public License
|
| 331 |
+
terminate automatically.
|
| 332 |
+
|
| 333 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 334 |
+
Section 6(a), it reinstates:
|
| 335 |
+
|
| 336 |
+
1. automatically as of the date the violation is cured, provided
|
| 337 |
+
it is cured within 30 days of Your discovery of the
|
| 338 |
+
violation; or
|
| 339 |
+
|
| 340 |
+
2. upon express reinstatement by the Licensor.
|
| 341 |
+
|
| 342 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 343 |
+
right the Licensor may have to seek remedies for Your violations
|
| 344 |
+
of this Public License.
|
| 345 |
+
|
| 346 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 347 |
+
Licensed Material under separate terms or conditions or stop
|
| 348 |
+
distributing the Licensed Material at any time; however, doing so
|
| 349 |
+
will not terminate this Public License.
|
| 350 |
+
|
| 351 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 352 |
+
License.
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
Section 7 -- Other Terms and Conditions.
|
| 356 |
+
|
| 357 |
+
a. The Licensor shall not be bound by any additional or different
|
| 358 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 359 |
+
|
| 360 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 361 |
+
Licensed Material not stated herein are separate from and
|
| 362 |
+
independent of the terms and conditions of this Public License.
|
| 363 |
+
|
| 364 |
+
|
| 365 |
+
Section 8 -- Interpretation.
|
| 366 |
+
|
| 367 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 368 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 369 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 370 |
+
be made without permission under this Public License.
|
| 371 |
+
|
| 372 |
+
b. To the extent possible, if any provision of this Public License is
|
| 373 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 374 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 375 |
+
cannot be reformed, it shall be severed from this Public License
|
| 376 |
+
without affecting the enforceability of the remaining terms and
|
| 377 |
+
conditions.
|
| 378 |
+
|
| 379 |
+
c. No term or condition of this Public License will be waived and no
|
| 380 |
+
failure to comply consented to unless expressly agreed to by the
|
| 381 |
+
Licensor.
|
| 382 |
+
|
| 383 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 384 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 385 |
+
that apply to the Licensor or You, including from the legal
|
| 386 |
+
processes of any jurisdiction or authority.
|
| 387 |
+
|
| 388 |
+
=======================================================================
|
| 389 |
+
|
| 390 |
+
Creative Commons is not a party to its public
|
| 391 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
| 392 |
+
its public licenses to material it publishes and in those instances
|
| 393 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
| 394 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
| 395 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
| 396 |
+
material is shared under a Creative Commons public license or as
|
| 397 |
+
otherwise permitted by the Creative Commons policies published at
|
| 398 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
| 399 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
| 400 |
+
of Creative Commons without its prior written consent including,
|
| 401 |
+
without limitation, in connection with any unauthorized modifications
|
| 402 |
+
to any of its public licenses or any other arrangements,
|
| 403 |
+
understandings, or agreements concerning use of licensed material. For
|
| 404 |
+
the avoidance of doubt, this paragraph does not form part of the
|
| 405 |
+
public licenses.
|
| 406 |
+
|
| 407 |
+
Creative Commons may be contacted at creativecommons.org.
|
| 408 |
+
|
README.md
CHANGED
|
@@ -1,3 +1,238 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-nc-4.0
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
pretty_name: MM-IssueLoc Bench
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-retrieval
|
| 8 |
+
- image-text-to-text
|
| 9 |
+
- feature-extraction
|
| 10 |
+
tags:
|
| 11 |
+
- multimodal
|
| 12 |
+
- code-localization
|
| 13 |
+
- repository-level
|
| 14 |
+
- software-engineering
|
| 15 |
+
- github-issues
|
| 16 |
+
- benchmark
|
| 17 |
+
size_categories:
|
| 18 |
+
- n<1K
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: canonical
|
| 21 |
+
default: true
|
| 22 |
+
data_files:
|
| 23 |
+
- split: test
|
| 24 |
+
path: data/canonical.parquet
|
| 25 |
+
- config_name: function_level
|
| 26 |
+
data_files:
|
| 27 |
+
- split: test
|
| 28 |
+
path: data/function_level.parquet
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
# MM-IssueLoc Bench
|
| 32 |
+
|
| 33 |
+
> **MM-IssueLoc: When Do Screenshots Help Localize Code? Toward Multimodal Localization in Software Repositories**
|
| 34 |
+
>
|
| 35 |
+
> _Authors anonymized for double-blind review (NeurIPS 2026 Datasets and Benchmarks Track)._
|
| 36 |
+
|
| 37 |
+
A repository-level, multimodal **issue → source-code localization** benchmark. Given a GitHub issue (title + body + screenshots / diagrams) and a target repository, the task is to retrieve the **file(s)** (and **function(s)**) that must be edited to resolve the issue. This is the first benchmark that pairs real multimodal issues with repository-scoped gold edits at two granularities.
|
| 38 |
+
|
| 39 |
+
| # | Task | Input | Output | # Instances |
|
| 40 |
+
|---|---|---|---|---|
|
| 41 |
+
| 1 | File-level localization | Issue text + images + repository tree / contents | Ranked list of files to edit | 652 |
|
| 42 |
+
| 2 | Function-level localization | Issue text + images + repository | Ranked list of `file:function` identifiers | 343 |
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## Dataset at a glance
|
| 47 |
+
|
| 48 |
+
- **652 canonical instances** (450 human-annotated + 202 AI-augmented).
|
| 49 |
+
- **23 programming languages** — TypeScript 151, Python 126, JavaScript 120, C++ 45, Java 44, Go 33, C# 33, Rust 27, C 21, PHP 20, remainder < 15 each.
|
| 50 |
+
- **7 image categories** — `ui_screenshot` 177, `behavior_demo` 99, `error_message` 92, `rendering_result` 85, `code_screenshot` 84, `log_output` 66, `data_visualization` 50.
|
| 51 |
+
- **3 difficulty buckets** (by `changed_files`) — easy 214 (1 file), medium 263 (2–3 files), hard 176 (≥ 4 files).
|
| 52 |
+
- **1050 issue screenshots embedded** in the canonical config (bytes, no external paths required).
|
| 53 |
+
- **Two-granularity gold labels** — `edit_files` (file level, 652/652 non-empty) and `edit_functions` (function level, 343/343 in the `function_level` config).
|
| 54 |
+
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## Repository
|
| 58 |
+
|
| 59 |
+
Start at `examples/preview/` for a zero-install skim of what an instance looks like; use `examples/load_dataset.py` for the full Parquet-backed workflow, and `scripts/download_repos.py` once you need repository snapshots at `base_commit`.
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## Configs
|
| 64 |
+
|
| 65 |
+
Two configs are shipped as separate Parquet files; every config contains a single `test` split (this is a pure evaluation benchmark).
|
| 66 |
+
|
| 67 |
+
### `canonical` — 652 rows
|
| 68 |
+
|
| 69 |
+
The full benchmark. Every instance has non-empty `edit_files`, so this config serves both the **file-level evaluation** directly and is the superset from which `function_level` is derived.
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
from datasets import load_dataset
|
| 73 |
+
|
| 74 |
+
ds = load_dataset("<hub-id>/MM-IssueLoc-Bench", name="canonical", split="test")
|
| 75 |
+
row = ds[0]
|
| 76 |
+
row["images"][0] # PIL.Image — first screenshot attached to the issue
|
| 77 |
+
row["edit_files"] # list[str] — gold-standard files to edit
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
### `function_level` — 343 rows
|
| 81 |
+
|
| 82 |
+
Subset of `canonical` where `supports_function_level == True` **and** `edit_functions` is non-empty. Identifiers follow the `path/to/file.py:Class.method` / `path/to/file.py:top_level_fn` convention. Use this config for function-level metrics.
|
| 83 |
+
|
| 84 |
+
```python
|
| 85 |
+
ds = load_dataset("<hub-id>/MM-IssueLoc-Bench", name="function_level", split="test")
|
| 86 |
+
row = ds[0]
|
| 87 |
+
row["edit_functions"] # list[str] — gold-standard functions to edit
|
| 88 |
+
row["added_functions"] # list[str] — functions created by the patch (exclude at eval time)
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
## Schema
|
| 92 |
+
|
| 93 |
+
### `canonical` & `function_level`
|
| 94 |
+
|
| 95 |
+
| Field | Type | Description |
|
| 96 |
+
|---|---|---|
|
| 97 |
+
| `instance_id` | `string` | Unique key, format `<owner>__<repo>__<issue_id>`. |
|
| 98 |
+
| `annotation_by` | `string` | `"human"` or `"ai"`. |
|
| 99 |
+
| `repo_full_name` | `string` | GitHub `owner/repo`. |
|
| 100 |
+
| `repo_language` | `string` | Primary language reported by GitHub. |
|
| 101 |
+
| `language` | `string` | Primary language of the actually edited files (lowercase). |
|
| 102 |
+
| `language_category` | `string` | Coarse bucket: `frontend` / `backend` / `systems` / `data_science` / … |
|
| 103 |
+
| `base_commit` | `string` | PR base commit SHA — checkout the repo here before evaluation. |
|
| 104 |
+
| `issue_title` | `string` | Issue title. |
|
| 105 |
+
| `issue_body` | `string` | Issue body in original markdown (images are referenced as markdown; see `images`). |
|
| 106 |
+
| `images` | `Sequence[Image]` | Issue screenshots, decoded as `PIL.Image` when loaded with 🤗 `datasets`. |
|
| 107 |
+
| `image_paths` | `Sequence[string]` | Original filenames (`issue_<issue_id>_<idx>.<ext>`), aligned with `images`. |
|
| 108 |
+
| `image_alts` | `Sequence[string]` | Markdown `alt` text per image. |
|
| 109 |
+
| `image_sources` | `Sequence[string]` | Per-image provenance tag (`body`, `comment`, …). |
|
| 110 |
+
| `image_category` | `string` | One of the 7 image categories. |
|
| 111 |
+
| `relevance_score` | `int32` | Annotator score for image–issue relevance. |
|
| 112 |
+
| `difficulty` | `string` | `easy` / `medium` / `hard` — bucketed by `changed_files` (see below). |
|
| 113 |
+
| `diff` | `string` | Full unified diff of the resolving PR. |
|
| 114 |
+
| `diff_files` | `Sequence[string]` | Files touched by `diff`. |
|
| 115 |
+
| `diff_status` | `string` | Diff-extraction status flag (e.g. `"ok"`). |
|
| 116 |
+
| `edit_files` | `Sequence[string]` | **Gold standard** for file-level evaluation. |
|
| 117 |
+
| `edit_functions` | `Sequence[string]` | **Gold standard** for function-level evaluation (may be empty in `canonical`). |
|
| 118 |
+
| `added_functions` | `Sequence[string]` | Functions introduced by the patch — exclude at function-level eval time. |
|
| 119 |
+
| `supports_function_level` | `bool` | Whether function-level evaluation is supported for this instance. |
|
| 120 |
+
| `additions` | `int32` | Lines added in the diff. |
|
| 121 |
+
| `deletions` | `int32` | Lines deleted in the diff. |
|
| 122 |
+
| `changed_files` | `int32` | Number of files touched. |
|
| 123 |
+
| `patch_count` | `int32` | Number of patches in the PR. |
|
| 124 |
+
| `repo_stars` | `int32` | Star count at collection time. |
|
| 125 |
+
| `repo_license` | `string` | Source repository license (SPDX-style where available). |
|
| 126 |
+
|
| 127 |
+
### `vce_plus_cache` (preview only — see `examples/preview/vce_plus_preview.jsonl`)
|
| 128 |
+
|
| 129 |
+
| Field | Type | Description |
|
| 130 |
+
|---|---|---|
|
| 131 |
+
| `instance_id` | `string` | Foreign key to `canonical.instance_id`. |
|
| 132 |
+
| `category` | `string` | Image category (redundant with `canonical.image_category`). |
|
| 133 |
+
| `records` | `List[Struct]` | One entry per screenshot; see below. |
|
| 134 |
+
|
| 135 |
+
Per-record struct:
|
| 136 |
+
|
| 137 |
+
| Field | Type | Description |
|
| 138 |
+
|---|---|---|
|
| 139 |
+
| `ocr_text` | `string` | OCR result. |
|
| 140 |
+
| `error_signal` | `struct` | `{kind, type, message, stack_hint[]}` — extracted error semantics. |
|
| 141 |
+
| `ui_elements` | `Sequence[string]` | Detected UI widgets. |
|
| 142 |
+
| `user_action` | `string` | Inferred user intent / action. |
|
| 143 |
+
| `code_hint` | `struct` | `{function_names[], file_patterns[], frameworks[]}` ,code-side hooks. |
|
| 144 |
+
| `visual_saliency` | `string` | Free-text description of the salient region. |
|
| 145 |
+
| `confidence` | `float32` | Extractor confidence ∈ [0, 1]. |
|
| 146 |
+
| `notes` | `string` | Extractor-side remarks. |
|
| 147 |
+
|
| 148 |
+
### `difficulty` bucketing
|
| 149 |
+
|
| 150 |
+
Bucketed on `changed_files` of the resolving PR. Rule is 100 % consistent with the 402 human-labelled difficulty fields in the original annotation pass (audited); the remaining 251 AI-augmented rows were back-filled with the same rule.
|
| 151 |
+
|
| 152 |
+
| Bucket | Rule | Count | Median `additions` | Median `deletions` |
|
| 153 |
+
|---|---|---:|---:|---:|
|
| 154 |
+
| `easy` | `changed_files == 1` | 214 | 6 | 2 |
|
| 155 |
+
| `medium` | `changed_files ∈ {2, 3}` | 263 | 28 | 6 |
|
| 156 |
+
| `hard` | `changed_files ≥ 4` | 176 | 59 | 16 |
|
| 157 |
+
|
| 158 |
+
---
|
| 159 |
+
|
| 160 |
+
## Evaluation protocol
|
| 161 |
+
|
| 162 |
+
### Repository snapshot
|
| 163 |
+
|
| 164 |
+
Every instance is evaluated against the repository state at its `base_commit`. The companion file `commit_cache.json` (at the root of this dataset) maps `instance_id → {repo, sha, dir_name}` and is consumed by the bundled download script.
|
| 165 |
+
|
| 166 |
+
**Recommended — use the bundled downloader.** Handles rate-limit-aware concurrent fetching, atomic extraction, and resumable retries out of the box:
|
| 167 |
+
|
| 168 |
+
```bash
|
| 169 |
+
export GITHUB_TOKEN=ghp_xxx
|
| 170 |
+
python3 scripts/download_repos.py
|
| 171 |
+
python3 scripts/download_repos.py --workers 8 # faster with more parallelism
|
| 172 |
+
python3 scripts/download_repos.py --retry-failed # after an interruption
|
| 173 |
+
```
|
| 174 |
+
|
| 175 |
+
The script uses the GitHub REST tarball API (`GET /repos/{owner}/{repo}/tarball/{sha}`), so a **personal access token with the `public_repo` scope is strongly recommended** (generate at <https://github.com/settings/tokens>; no elevated permissions needed for public repositories). Without a token, you are throttled to 60 requests/hour, which makes the full 653-repo download take ~11 hours instead of ~10 minutes.
|
| 176 |
+
|
| 177 |
+
On success you get:
|
| 178 |
+
|
| 179 |
+
```
|
| 180 |
+
repos/
|
| 181 |
+
├── fbaligand__kibana-enhanced-table__569e9d9ee2fb/
|
| 182 |
+
├── presscustomizr__hueman__0f3aeb3c5b2a/
|
| 183 |
+
└── ... (653 total; naming = <owner>__<repo>__<sha12>, no .git)
|
| 184 |
+
```
|
| 185 |
+
|
| 186 |
+
Failed downloads (archived / deleted / moved repos) are logged to `download_failures.json` for targeted re-runs.
|
| 187 |
+
|
| 188 |
+
Repository tarballs are **not** shipped here (they total several GB and individual repos have heterogeneous licenses); users fetch them from GitHub on demand using the script or the cache above.
|
| 189 |
+
|
| 190 |
+
### Metrics
|
| 191 |
+
|
| 192 |
+
File-level and function-level evaluation are tracked independently using the same family of ranking metrics at `K ∈ {1, 3, 5, 10}
|
| 193 |
+
|
| 194 |
+
- **Acc@K** — set-based hit rates.
|
| 195 |
+
- Other metrics avaliable:
|
| 196 |
+
- **MRR** — Mean Reciprocal Rank of the first hit.
|
| 197 |
+
- **Recall@K**, **Hit@K** — set-based hit rates.
|
| 198 |
+
- **MAP@K**, **NDCG@K** — order-sensitive metrics.
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
Recommended normalisation at scoring time:
|
| 202 |
+
|
| 203 |
+
1. Path normalisation — strip `./`, collapse separators, lowercase drive letters on Windows.
|
| 204 |
+
2. Function ID matching — accept `file:func` ≡ `file:Class.func` (relaxed class-qualifier match).
|
| 205 |
+
|
| 206 |
+
## Intended use & limitations
|
| 207 |
+
|
| 208 |
+
**Intended uses.**
|
| 209 |
+
|
| 210 |
+
- Benchmarking repository-level issue localization models, with or without multimodal inputs.
|
| 211 |
+
- Ablating the contribution of screenshots vs. text to localization accuracy.
|
| 212 |
+
- Studying how different image categories (UI screenshots vs. error messages vs. log output) help or hurt retrieval.
|
| 213 |
+
|
| 214 |
+
**Out-of-scope uses.**
|
| 215 |
+
|
| 216 |
+
- Patch generation / code repair — this dataset ships gold edits but is evaluated on localization, not synthesis. The `diff` field is provided for offline analysis but is not a supervised target.
|
| 217 |
+
- Training large-scale multimodal models end-to-end — the instance count (652) is deliberately sized for evaluation, not pre-training.
|
| 218 |
+
- **Commercial use**
|
| 219 |
+
|
| 220 |
+
**Known limitations.**
|
| 221 |
+
|
| 222 |
+
- Language skew towards web-ecosystem repos (TypeScript / Python / JavaScript together cover ~60 %).
|
| 223 |
+
- Repositories are real open-source projects; code licensing varies per row (`repo_license`).
|
| 224 |
+
|
| 225 |
+
## Ethics & privacy
|
| 226 |
+
|
| 227 |
+
All issues are drawn from public GitHub repositories. Screenshots occasionally contain user-visible strings from demo data (e.g., placeholder usernames, example URLs). We reviewed the top-frequency tokens in image OCR output and found no personally identifying information beyond public GitHub author handles already visible in `instance_id` / `repo_full_name`. No private data, no scraped user content outside the public issue tracker, no model-generated synthetic faces or identifiers.
|
| 228 |
+
|
| 229 |
+
---
|
| 230 |
+
|
| 231 |
+
## Citation
|
| 232 |
+
|
| 233 |
+
```bibtex
|
| 234 |
+
@misc{mmissueloc2026,
|
| 235 |
+
title = {MM-IssueLoc: When Do Screenshots Help Localize Code? Toward Multimodal Localization in Software Repositories},
|
| 236 |
+
}
|
| 237 |
+
}
|
| 238 |
+
```
|
commit_cache.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/canonical.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d59ad7730bd674c7b49d244c3f51dcda7e42f925f2f62ee032e332426405ce1b
|
| 3 |
+
size 170387255
|
data/function_level.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9e53d555b53ecd54f01d137c63b01d2a30914876011cbf0f3212f136dee237a
|
| 3 |
+
size 93391812
|
examples/load_dataset.py
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
The dataset ships two Parquet configs under `data/`:
|
| 3 |
+
|
| 4 |
+
canonical.parquet 652 rows — full benchmark; drives file-level eval
|
| 5 |
+
function_level.parquet 343 rows — subset where edit_functions is non-empty
|
| 6 |
+
|
| 7 |
+
This script walks through both evaluation granularities (file-level and
|
| 8 |
+
function-level), decodes an image, reads a 20-row VCE+ preview from
|
| 9 |
+
`examples/preview/vce_plus_preview.jsonl`, and shows how to materialize
|
| 10 |
+
the underlying GitHub repository snapshot required at scoring time.
|
| 11 |
+
|
| 12 |
+
Run:
|
| 13 |
+
python3 examples/load_dataset.py
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
from __future__ import annotations
|
| 17 |
+
|
| 18 |
+
import json
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
|
| 21 |
+
from datasets import Dataset
|
| 22 |
+
|
| 23 |
+
ROOT = Path(__file__).resolve().parent.parent
|
| 24 |
+
DATA = ROOT / "data"
|
| 25 |
+
|
| 26 |
+
ds = Dataset.from_parquet(str(DATA / "canonical.parquet"))
|
| 27 |
+
ds_fn = Dataset.from_parquet(str(DATA / "function_level.parquet"))
|
| 28 |
+
|
| 29 |
+
print(f"canonical: {len(ds):4d} rows (file-level eval — all edit_files non-empty)")
|
| 30 |
+
print(f"function_level: {len(ds_fn):4d} rows (function-level eval — strict subset)")
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
# ===========================================================================
|
| 34 |
+
# 1. File-level evaluation
|
| 35 |
+
# ===========================================================================
|
| 36 |
+
# Input : issue_title + issue_body + images + (repo snapshot at base_commit)
|
| 37 |
+
# Output: ranked list of files to edit
|
| 38 |
+
# Gold : row["edit_files"] — always non-empty in the canonical config.
|
| 39 |
+
# ===========================================================================
|
| 40 |
+
|
| 41 |
+
row = ds[0]
|
| 42 |
+
print(f"\n── file-level example ──────────────────────────────────────────────")
|
| 43 |
+
print(f" instance_id : {row['instance_id']}")
|
| 44 |
+
print(f" repo @ commit: {row['repo_full_name']} @ {row['base_commit'][:12]}")
|
| 45 |
+
print(f" language : {row['language']} ({row['language_category']})")
|
| 46 |
+
print(f" difficulty : {row['difficulty']} (changed_files={row['changed_files']})")
|
| 47 |
+
print(f" # images : {len(row['images'])}")
|
| 48 |
+
print(f" gold files : {row['edit_files']}")
|
| 49 |
+
print(f" (your model must rank {row['edit_files'][0]!r} near the top)")
|
| 50 |
+
|
| 51 |
+
# Decode the first screenshot — HF Image feature returns PIL.Image automatically.
|
| 52 |
+
img = row["images"][0]
|
| 53 |
+
print(f" image[0] : {img.size} px, mode={img.mode}, caption={row['image_alts'][0]!r}")
|
| 54 |
+
# img.save("first_issue_screenshot.png") # persist for visual inspection
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
# ===========================================================================
|
| 58 |
+
# 2. Function-level evaluation
|
| 59 |
+
# ===========================================================================
|
| 60 |
+
# Input : same as file-level
|
| 61 |
+
# Output: ranked list of `path/to/file:function` identifiers
|
| 62 |
+
# Gold : row["edit_functions"] (always non-empty in the function_level config)
|
| 63 |
+
# Caveat: exclude row["added_functions"] when scoring — those functions do
|
| 64 |
+
# not exist at base_commit, so they cannot be retrieved from the
|
| 65 |
+
# repository tree.
|
| 66 |
+
# ===========================================================================
|
| 67 |
+
|
| 68 |
+
fn_row = ds_fn[0]
|
| 69 |
+
print(f"\n── function-level example ──────────────────────────────────────────")
|
| 70 |
+
print(f" instance_id : {fn_row['instance_id']}")
|
| 71 |
+
print(f" edit_functions : {fn_row['edit_functions']}")
|
| 72 |
+
print(f" added_functions: {fn_row['added_functions']} ← exclude from scoring")
|
| 73 |
+
print(f" supports_function_level: {fn_row['supports_function_level']}")
|
| 74 |
+
|
| 75 |
+
# Pick any instance that is ONLY file-level (no function annotation) to
|
| 76 |
+
# illustrate the filter that separates the two configs.
|
| 77 |
+
file_only = next(r for r in ds if not r["supports_function_level"] or not r["edit_functions"])
|
| 78 |
+
print(f"\n (a file-level-only instance in canonical but NOT in function_level)")
|
| 79 |
+
print(f" instance_id : {file_only['instance_id']}")
|
| 80 |
+
print(f" supports_function_level : {file_only['supports_function_level']}")
|
| 81 |
+
print(f" edit_functions (empty here!) : {file_only['edit_functions']}")
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
# ===========================================================================
|
| 85 |
+
# 3. VCE+ preview (illustrative; not a shipped config)
|
| 86 |
+
# ===========================================================================
|
| 87 |
+
# VCE+ is a 7-dimensional structured extraction per screenshot (OCR, error
|
| 88 |
+
# signal, UI elements, user action, code hints, visual saliency, confidence)
|
| 89 |
+
# produced by a multimodal LLM. The FULL cache is a rerunnable byproduct and
|
| 90 |
+
# is NOT shipped in data/. A 20-row preview aligned by instance_id with
|
| 91 |
+
# examples/preview/preview.jsonl ships at examples/preview/vce_plus_preview.jsonl
|
| 92 |
+
# so the schema stays discoverable without running the extractor.
|
| 93 |
+
# ===========================================================================
|
| 94 |
+
|
| 95 |
+
vce_preview_path = ROOT / "examples" / "preview" / "vce_plus_preview.jsonl"
|
| 96 |
+
vce_rows = [json.loads(l) for l in vce_preview_path.open()]
|
| 97 |
+
print(f"\n── VCE+ preview (20 records) ──────────────────────────────────────")
|
| 98 |
+
print(f" path: {vce_preview_path.relative_to(ROOT)} ({len(vce_rows)} rows)")
|
| 99 |
+
vce_row = vce_rows[0]
|
| 100 |
+
print(f" sample instance_id: {vce_row['instance_id']} (category={vce_row['category']})")
|
| 101 |
+
for i, rec in enumerate(vce_row["records"]):
|
| 102 |
+
err = rec["error_signal"] or {}
|
| 103 |
+
ch = rec["code_hint"] or {}
|
| 104 |
+
print(
|
| 105 |
+
f" record[{i}]: conf={rec.get('confidence', 0.0):.2f} "
|
| 106 |
+
f"error={err.get('kind', '')}/{err.get('type', '')!r} "
|
| 107 |
+
f"ui_elements={(rec.get('ui_elements') or [])[:3]} "
|
| 108 |
+
f"frameworks={ch.get('frameworks', [])}"
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
# ===========================================================================
|
| 113 |
+
# 4. Repository snapshots
|
| 114 |
+
# ===========================================================================
|
| 115 |
+
# Scoring requires the repository tree at each row's base_commit. Repos are
|
| 116 |
+
# not embedded in the Parquet (they would total several GB and carry
|
| 117 |
+
# heterogeneous upstream licenses). Use commit_cache.json + the bundled
|
| 118 |
+
# script to fetch them:
|
| 119 |
+
#
|
| 120 |
+
# export GITHUB_TOKEN=ghp_xxx
|
| 121 |
+
# python3 scripts/download_repos.py # fetch all 653 repos
|
| 122 |
+
# python3 scripts/download_repos.py --only 5 # dry-run slice
|
| 123 |
+
# ===========================================================================
|
| 124 |
+
|
| 125 |
+
cache = json.loads((ROOT / "commit_cache.json").read_text())
|
| 126 |
+
entry = cache[row["instance_id"]]
|
| 127 |
+
print(f"\n── repo snapshot for the file-level example ─────────────────────────")
|
| 128 |
+
print(f" expected directory: repos/{entry['dir_name']}/")
|
| 129 |
+
print(f" equivalent to :")
|
| 130 |
+
print(f" git clone https://github.com/{entry['repo']} {entry['dir_name']}")
|
| 131 |
+
print(f" git -C {entry['dir_name']} checkout {entry['sha']}")
|
| 132 |
+
print(f" (or run: python3 scripts/download_repos.py — see scripts/download_repos.py)")
|
examples/preview/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Preview samples
|
| 2 |
+
|
| 3 |
+
**Quick human-readable look at the dataset in its original schema.**
|
| 4 |
+
|
| 5 |
+
> Parquet under `data/` is the canonical format for benchmarking and Hugging Face loading. This folder exists purely so reviewers and other researchers can skim a handful of real rows without writing any code or installing `datasets`.
|
| 6 |
+
|
| 7 |
+
## Contents
|
| 8 |
+
|
| 9 |
+
| File | Count | Notes |
|
| 10 |
+
|---|---|---|
|
| 11 |
+
| `preview.jsonl` | **20** rows | Stratified sample from `data/canonical.parquet`, in the source-native JSON-per-line schema. Fields are identical to those documented in the root `README.md`. |
|
| 12 |
+
| `vce_plus_preview.jsonl` | **20** rows | VCE+ 7-dimensional structured visual-evidence extractions **aligned by `instance_id`** to `preview.jsonl`, illustrating the auxiliary schema used by text-only baselines. |
|
| 13 |
+
| `images/` | 31 files | Every image referenced by `preview.jsonl.images[*].local_path`. Filenames follow `issue_<issue_id>_<idx>.{png,jpg,...}`. |
|
| 14 |
+
|
| 15 |
+
## Quick inspection
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
# Pretty-print the first canonical row
|
| 19 |
+
head -1 preview.jsonl | python3 -m json.tool
|
| 20 |
+
|
| 21 |
+
# All gold files across the 20 samples
|
| 22 |
+
python3 -c "import json; [print(r['instance_id'], '→', r['edit_files']) \
|
| 23 |
+
for r in map(json.loads, open('preview.jsonl'))]"
|
| 24 |
+
|
| 25 |
+
# VCE+ extraction for the same instance — side-by-side schema comparison
|
| 26 |
+
python3 - <<'PY'
|
| 27 |
+
import json
|
| 28 |
+
canon = {json.loads(l)["instance_id"]: json.loads(l) for l in open("preview.jsonl")}
|
| 29 |
+
vce = {json.loads(l)["instance_id"]: json.loads(l) for l in open("vce_plus_preview.jsonl")}
|
| 30 |
+
iid = next(iter(canon))
|
| 31 |
+
print("instance:", iid)
|
| 32 |
+
print(" issue title :", canon[iid]["issue_title"])
|
| 33 |
+
print(" image category:", canon[iid]["image_category"])
|
| 34 |
+
print(" VCE+ record[0]:", json.dumps(vce[iid]["records"][0], indent=2, ensure_ascii=False))
|
| 35 |
+
PY
|
| 36 |
+
|
| 37 |
+
# Open the image for the first sample
|
| 38 |
+
python3 -c "import json; r=json.loads(open('preview.jsonl').readline()); \
|
| 39 |
+
print('first image:', r['images'][0]['local_path'])"
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Full dataset
|
| 43 |
+
|
| 44 |
+
To work with all 652 instances, all 1050 images (embedded as bytes), and both evaluation granularities, use the Parquet configs from the root:
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from datasets import load_dataset
|
| 48 |
+
ds = load_dataset("<hub-id>/MM-IssueLoc-Bench", name="canonical", split="test")
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
See the root `README.md` and `examples/load_dataset.py` for full workflows.
|
| 52 |
+
|
examples/preview/images/issue_1046002728_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1046002728_1.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1089563270_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1139055572_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1183794769_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1258254518_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1258254518_1.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1258254518_2.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1258254518_3.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1404291208_2.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1446535193_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1686961597_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1686961597_1.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1686961597_2.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1686961597_3.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1744195027_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1744195027_1.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1747755915_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1939776450_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_1939776450_1.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2002892676_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2002892676_1.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2002892676_2.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2063202600_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2196559031_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2198685509_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2307825533_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2350500234_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2354946530_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_2432031126_0.png
ADDED
|
Git LFS Details
|
examples/preview/images/issue_713712983_0.png
ADDED
|
Git LFS Details
|
examples/preview/preview.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
examples/preview/vce_plus_preview.jsonl
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"instance_id": "Anarios__return-youtube-dislike__1404291208", "category": "ui_screenshot", "records": [{"ocr_text": "Creator Music\nYouTube Creators\n5.13M subscribers\nSubscribed\n5.7K\n710\nShare\nClip\nSave\n49K views 15 hours ago\nCreator Music helps you find and use mainstream music in your videos while still being able to monetize.\nComments 1.5K\nMight be the best feature added in years!\n1,502 Comments\nSort by\n...more", "error_signal": null, "ui_elements": ["Subscribed button", "Like button (5.7K)", "Dislike button (710)", "Share button", "Clip button", "Save button", "More options (...)", "Sort by dropdown", "Comments section", "Notification bell icon"], "user_action": "User is viewing a YouTube video page showing the updated UI layout", "code_hint": {"function_names": [], "file_patterns": [], "frameworks": ["YouTube", "Return YouTube Dislike"]}, "visual_saliency": "The like/dislike bar with green and red segments under the buttons, showing the new YouTube UI layout", "confidence": 0.9, "notes": "YouTube UI change broke extension layout"}]}
|
| 2 |
+
{"instance_id": "AnnoDesigner__anno-designer__713712983", "category": "data_visualization", "records": [{"ocr_text": null, "error_signal": {"kind": "logic_error", "type": "incorrect_radius_calculation", "message": "Influence radius of Base of Operations (3x3, 18 Range) is 4 tiles too large in the program", "stack_hint": []}, "ui_elements": ["grid overlay", "circle radius visualization", "building icons row"], "user_action": "Comparing the influence radius of Base of Operations building between the program and the actual game", "code_hint": {"function_names": [], "file_patterns": [], "frameworks": []}, "visual_saliency": "Row of highlighted building icons (houses) placed along the bottom of a large circle on a grid, demonstrating the oversized influence radius", "confidence": 0.78, "notes": "Influence radius circle is 4 tiles too large for Anno 1404 building"}]}
|
| 3 |
+
{"instance_id": "DevToys-app__DevToys__2354946530", "category": "behavior_demo", "records": [{"ocr_text": "DevToys\nPNG Compressor\nAdd to favorites\nConfiguration\nCompression mode\nLossless maintains the quality of the original image, while lossy compresses more but may alter some colors\nLossy (prefer size)\nDrag & drop any PNG files here\nor\nBrowse files / Browse folders / Paste\nSave all\nDelete all\ntmpzeeix1.png\n116.58 KB\n55 %\n52.26 KB\n(lossy)\ntmpf5r4wd.png\n235.24 KB\n61 %\n89.66 KB\n(lossy)\nSettings\nPersonalization > Colors\nCustom colors\nView colors\nShow accent color on Start and taskbar\nOff\nShow accent color on title bars and windows borders\nOn\nRelated settings\nContrast themes\nColor themes for low vision, light sensitivity\nRelated support\nHelp with Colors", "error_signal": null, "ui_elements": ["title bar", "accent color toggle", "Show accent color on title bars and windows borders toggle", "Windows Settings Colors panel", "DevToys window title bar"], "user_action": "User enabled 'Show accent color on title bars and windows borders' in Windows Settings, revealing a misaligned/incorrect title bar color on the DevToys app window.", "code_hint": null, "visual_saliency": "The DevToys window title bar shows a teal/green accent color that appears misaligned or incorrectly applied, alongside the Windows Settings showing the accent color on title bars is enabled with a dark teal color selected.", "confidence": 0.85, "notes": "Title bar accent color misaligned in DevToys on Windows 11"}]}
|
| 4 |
+
{"instance_id": "KhronosGroup__glTF-Sample-Viewer__1686961597", "category": "rendering_result", "records": [{"ocr_text": "Advanced Controls\nDebug Channels\nGeometry Tangent\nGeometry Bitangent\nDebug mode: Tangents\nDebug mode: Bitangents\nSplit position: -1.000\nOutput factor: 1.000\nIridescenceAbalone\nMETALLIC WORKFLOW\nCLEAR COAT\nIRIDESCENCE\nANISOTROPIC\nSHEEN\nSUBSURFACE\nNORMAL MAP\nDEBUG", "error_signal": null, "ui_elements": ["Debug Channels dropdown (Geometry Tangent/Bitangent)", "Debug mode selector (Tangents/Bitangents)", "glTF Sample Viewer", "Babylon.js Sandbox Inspector", "Scene Explorer", "Split position slider", "Output factor slider"], "user_action": "Comparing tangent and bitangent debug visualizations between glTF Sample Viewer and Babylon.js Sandbox for IridescenceAbalone model", "code_hint": {"function_names": ["MikkTSpace"], "file_patterns": null, "frameworks": ["Babylon.js", "glTF Sample Viewer"]}, "visual_saliency": "Left panels show glTF Sample Viewer with noisy/fragmented tangent and bitangent debug colors on abalone shell; right panels show Babylon.js with smooth green tangent and rainbow bitangent visualizations, highlighting quality difference in tangent generation", "confidence": 0.92, "notes": "Tangent quality comparison: shader derivatives vs MikkTSpace generation"}, {"ocr_text": "glTF Sample Viewer\ngithub.khronos.org/glTF-Sample-Viewer-Release/\nModels\nDamagedHelmet\nFlavor\nglTF\nScenes\nScene\nCameras\nUser Camera\nDisplay\nAnimation\nCredits\nAdvanced Controls", "error_signal": {"kind": "rendering_artifact", "type": "incorrect_tangents", "message": "DamagedHelmet model renders with broken/colorful triangulated appearance due to missing or incorrect tangent generation", "stack_hint": ["MikkTSpace", "shader derivative tangents", "anisotropy"]}, "ui_elements": ["Models dropdown (DamagedHelmet)", "Flavor dropdown (glTF)", "Scenes dropdown (Scene)", "Cameras dropdown (User Camera)", "Display tab", "Animation tab", "Credits tab", "Advanced Controls tab"], "user_action": "Loaded DamagedHelmet glTF model in the glTF Sample Viewer to demonstrate tangent generation quality issues", "code_hint": {"function_names": ["generateTangents", "MikkTSpace"], "file_patterns": ["*.glTF", "*.gltf"], "frameworks": ["glTF Sample Viewer", "Khronos glTF", "MikkTSpace"]}, "visual_saliency": "DamagedHelmet model rendered with multicolored triangulated/faceted appearance instead of smooth PBR shading, indicating broken tangent space calculations", "confidence": 0.92, "notes": "Helmet renders with broken colorful triangles due to shader-derivative tangent issues."}, {"ocr_text": "glTF Sample Viewer\ngithub.khronos.org/glTF-Sample-Viewer-Release/\nModels\nClearCoatTest\nFlavor\ngITF\nScenes\nScene\nCameras\nUser Camera\nDisplay\nAnimation\nCredits\nAdvanced Controls", "error_signal": {"kind": "rendering_artifact", "type": "tangent_generation_quality", "message": "Incorrect tangents calculated via shader derivatives cause visual artifacts in ClearCoatTest model", "stack_hint": ["MikkTSpace", "tangent generation", "shader derivatives"]}, "ui_elements": ["Models dropdown (ClearCoatTest)", "Flavor dropdown (gITF)", "Scenes dropdown (Scene)", "Cameras dropdown (User Camera)", "Display tab", "Animation tab", "Credits tab", "Advanced Controls tab"], "user_action": "Viewing ClearCoatTest model in glTF Sample Viewer to demonstrate tangent generation quality issues", "code_hint": {"function_names": ["generateTangents", "MikkTSpace"], "file_patterns": ["*.glsl", "*.gltf"], "frameworks": ["glTF", "WebGL", "glTF-Sample-Viewer"]}, "visual_saliency": "Grid of rendered tiles showing noisy/distorted colorful patterns on capsule-shaped objects and triangular shapes, indicating incorrect tangent-space calculations causing visual artifacts", "confidence": 0.82, "notes": "ClearCoatTest shows tangent artifacts from shader derivative approach"}]}
|
| 5 |
+
{"instance_id": "OpenEnergyPlatform__ontology__2307825533", "category": "log_output", "records": [{"ocr_text": "Annotations\n5 warnings\n\nbuild\nNode.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-java@v2. For more information see: https://github.blog/changelog/2023-09-22-github-a...\nShow more\n\nbuild\nThe following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-java@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all...\nShow more\n\nDeprecation notice: v1, v2, and v3 of the artifact actions\nThe following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: \"build-files\", \"test-report\". Please update your workflow to use v4 of the artifact actions. ...\nShow more\n\ntest\nNode.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v4, actions/setup-java@v2, actions/upload-artifact@3, schneegans/dynamic-bad...\nShow more\n\ntest\nThe following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-java@v2, schneegans/dynamic-badges-action@v1.0.0. For more info: https://github.blo...\nShow more", "error_signal": {"kind": "warning", "type": "deprecation", "message": "Node.js 16 actions are deprecated and node12 actions will be forced to run on node16; artifact actions v1-v3 scheduled for deprecation", "stack_hint": []}, "ui_elements": ["Annotations section", "5 warnings indicator", "Show more links", "warning triangle icons"], "user_action": "Reviewing GitHub Actions workflow annotations showing deprecation warnings in build and test jobs", "code_hint": {"function_names": [], "file_patterns": ["actions/checkout@v2", "actions/setup-java@v2", "actions/setup-python@v4", "actions/upload-artifact@3", "schneegans/dynamic-badges-action@v1.0.0"], "frameworks": ["GitHub Actions", "Node.js"]}, "visual_saliency": "Yellow warning triangles next to each annotation entry with deprecation messages on dark background", "confidence": 0.95, "notes": "5 deprecation warnings in GitHub Actions CI build and test jobs"}]}
|
| 6 |
+
{"instance_id": "SDClowen__RSBot__1446535193", "category": "behavior_demo", "records": [{"ocr_text": "Hunter Association\nTrader/Hunter Area\nBlacksmith\nStable\nDimensional Gate\nGrocery Shop\nStorage\nDrug Store\nSerapeum", "error_signal": null, "ui_elements": ["Blacksmith", "Stable", "Dimensional Gate", "Grocery Shop", "Storage", "Drug Store", "Hunter Association", "Serapeum"], "user_action": "Character loops in South Alexandria town area when low durability item triggers back-to-town behavior", "code_hint": null, "visual_saliency": "South Alexandria town map showing NPC locations and navigation points in the Trader/Hunter Area", "confidence": 0.72, "notes": "Town loop bug in South Alexandria with low durability trigger"}]}
|
| 7 |
+
{"instance_id": "ShrimpCryptid__Secret-Hitler-Online__1089563270", "category": "ui_screenshot", "records": [{"ocr_text": "POLICY ENACTED\nLIBERAL\nARTICLE\nOKAY", "error_signal": null, "ui_elements": ["Policy Enacted dialogue", "Liberal policy card", "OKAY button", "open folder/book graphic"], "user_action": "User reconnected during post-legislative stage and sees incorrect Liberal policy card", "code_hint": null, "visual_saliency": "Liberal policy card displayed in the Policy Enacted dialogue", "confidence": 0.92, "notes": "Reconnecting users always shown Liberal card regardless of actual policy enacted"}]}
|
| 8 |
+
{"instance_id": "babel__babel-polyfills__2196559031", "category": "log_output", "records": [{"ocr_text": "[21:47:01] Module not found: Error: Can't resolve '@babel/runtime-corejs3/core-js/promise/all-settled'", "error_signal": {"kind": "module_resolution", "type": "Module not found", "message": "Can't resolve '@babel/runtime-corejs3/core-js/promise/all-settled'", "stack_hint": []}, "ui_elements": null, "user_action": "Building project with webpack/babel-loader after upgrading Babel to 7.24.1", "code_hint": {"function_names": ["Promise.allSettled"], "file_patterns": ["@babel/runtime-corejs3/core-js/promise/all-settled"], "frameworks": ["babel", "webpack", "core-js"]}, "visual_saliency": "Single error log line displayed in white text on dark background", "confidence": 0.95, "notes": "Babel 7.24.1 upgrade breaks Promise.allSettled corejs3 resolution"}]}
|
| 9 |
+
{"instance_id": "filllabs__dependi__2432031126", "category": "rendering_result", "records": [{"ocr_text": "[dependencies]\nuuid = \"1.4\" ✅\nThe version requirem...\nVersions (View crate\n• 1.10.0 (docs)\n• 1.9.1\n• 1.9.0", "error_signal": {"kind": "logic_bug", "type": "false_negative", "message": "Green checkmark shown for outdated dependency uuid 1.4 when latest is 1.10.0", "stack_hint": []}, "ui_elements": ["green checkmark icon", "version tooltip/popup", "versions list dropdown", "View crate link", "dependency inline annotation"], "user_action": "User specifies uuid = \"1.4\" in Cargo.toml and expects an outdated version alert but sees green checkmark instead.", "code_hint": {"function_names": [], "file_patterns": ["Cargo.toml"], "frameworks": ["Rust", "crates.io"]}, "visual_saliency": "Red arrows pointing to the version string \"1.4\", the green checkmark, and the tooltip showing latest version 1.10.0, highlighting the mismatch between outdated version and positive indicator.", "confidence": 0.95, "notes": "Green check incorrectly shown for outdated minor version 1.4 vs 1.10.0."}]}
|
| 10 |
+
{"instance_id": "heroui-inc__tailwind-variants__1744195027", "category": "code_screenshot", "records": [{"ocr_text": "dots: boolean\n}\n\n(parameter) size: any\n\nconst Circle: FC<CircleType> = ({ size, contrast, className, dots, ...props }) => {\n return dots ? {", "error_signal": {"kind": "type_issue", "type": "any", "message": "VariantProps are of type `any` instead of proper types", "stack_hint": []}, "ui_elements": ["tooltip showing parameter type", "code editor"], "user_action": "Hovering over 'size' parameter to inspect its type, which shows 'any'", "code_hint": {"function_names": ["Circle"], "file_patterns": [], "frameworks": ["tailwind-variants", "React"]}, "visual_saliency": "Tooltip showing '(parameter) size: any' highlighted above the destructured parameter", "confidence": 0.92, "notes": "VariantProps resolving to any instead of specific types"}, {"ocr_text": "type CircleType = {\n [x: string]: any;\n [x: number]: any;\n [x: symbol]: any;\n}", "error_signal": {"kind": "type_issue", "type": "any", "message": "VariantProps are resolved to type `any` instead of specific variant types", "stack_hint": []}, "ui_elements": ["code editor", "TypeScript type definition tooltip"], "user_action": "Inspecting the inferred type of CircleType which shows all variant props as `any`", "code_hint": {"function_names": ["CircleType"], "file_patterns": [], "frameworks": ["tailwind-variants"]}, "visual_saliency": "The type definition showing all index signatures resolving to `any` type", "confidence": 0.92, "notes": "VariantProps incorrectly typed as any with index signatures"}]}
|
| 11 |
+
{"instance_id": "heroui-inc__tailwind-variants__1747755915", "category": "error_message", "records": [{"ocr_text": "export const tv: TV = (options, config) => {\n return tvBase(options, {\n ...config,\n twMerge: true,\n twMergeConfig: {},\n })\n};\n型 '{}' には 型 'Config' からの次のプロパティがありません: cacheSize, theme, classGroups, conflictingClassGroups ts(2739)\n⚠ Error(TS2739)\n型 {} には 型 Config からの次のプロパティがありません: cacheSize, theme, classGroups, conflictingClassGroups\n(property) twMergeConfig?: Config | undefined\nThe config object for tailwind-merge library.\n@see — https://github.com/dcastil/tailwind-merge/blob/v1.8.1/docs/configuration.md", "error_signal": {"kind": "assertion", "type": "TS2739", "message": "Type '{}' is missing the following properties from type 'Config': cacheSize, theme, classGroups, conflictingClassGroups", "stack_hint": []}, "ui_elements": ["code editor", "TypeScript error tooltip", "error squiggly underline"], "user_action": "Assigning empty object {} to twMergeConfig which expects full Config type", "code_hint": {"function_names": ["tv", "tvBase"], "file_patterns": [], "frameworks": ["tailwind-variants", "tailwind-merge"]}, "visual_saliency": "Red squiggly underline on twMergeConfig: {} and the error tooltip popup", "confidence": 0.95, "notes": "twMergeConfig requires full Config type, not Partial<Config>"}]}
|
| 12 |
+
{"instance_id": "lancaster-university__codal-microbit-v2__1046002728", "category": "data_visualization", "records": [{"ocr_text": "WaveForms (new workspace) Logic 1 Mode: Repeated Trigger: Normal Simple Pulse Protocol Buffer: 10 Source: Digital Inputs: 100MHz x16 DIO 0..15 Position: 0 s Base: 20 ms/div Done 4096 samples at 20 kHz | 2021-11-05 15:47:31.876 DIO 4 DIO 5 X1: -62.7622 ms X2: 24.3 ms ΔX: 87.06 ms 1/ΔX: 11.4859438 Hz Manual Trigger Discovery2 SN:210321AD132A USB Status: LV", "error_signal": {"kind": "timing_mismatch", "type": "delay_inconsistency", "message": "uBit.sleep() and target_wait_us() delays do not match expected timing", "stack_hint": ["uBit.sleep()", "target_wait_us()"]}, "ui_elements": ["Logic analyzer waveform view", "DIO 4 channel", "DIO 5 channel", "X1/X2 cursor markers", "Delta X measurement"], "user_action": "Measuring timing difference between DIO 4 and DIO 5 digital signals using logic analyzer cursors", "code_hint": {"function_names": ["uBit.sleep()", "target_wait_us()"], "file_patterns": null, "frameworks": ["Digilent WaveForms", "micro:bit CODAL"]}, "visual_saliency": "Red cursor lines spanning DIO 4 and DIO 5 waveforms showing ΔX: 87.06 ms timing measurement; DIO 5 highlighted in blue with irregular pulse widths indicating timing inconsistency", "confidence": 0.88, "notes": "Logic analyzer shows sleep/wait timing mismatch on micro:bit digital outputs"}, {"ocr_text": "WaveForms (new workspace) Logic 1 Mode: Repeated Trigger: Normal Simple Pulse Protocol Position: 0 s Buffer: 10 Source: Digital Inputs: 100MHz x16 DIO 0..15 Base: 5 ms/div DIO 4 DIO 4 X DIO 5 DIO 5 X Done 4096 samples at 80 kHz | 2021-11-05 15:22:03.498 X1: -19.8232 ms X2: 17.76 ms ΔX: 37.58 ms 1/ΔX: 26.6069429 Hz -25 ms -20 ms -15 ms -10 ms -5 ms 0 ms 5 ms 10 ms 15 ms 20 ms 25 ms Manual Trigger Discovery2 SN:210321AD132A USB Status: LV", "error_signal": null, "ui_elements": ["Logic analyzer waveform view", "DIO 4 channel", "DIO 5 channel", "Cursor measurements X1/X2/ΔX", "Time base 5 ms/div"], "user_action": "Measuring timing discrepancy between uBit.sleep() and target_wait_us() using logic analyzer on DIO 4 and DIO 5", "code_hint": {"function_names": ["uBit.sleep()", "target_wait_us()"], "file_patterns": null, "frameworks": ["WaveForms", "micro:bit CODAL"]}, "visual_saliency": "DIO 4 and DIO 5 digital waveforms show mismatched pulse widths/timing; red cursors highlight ΔX of 37.58 ms between transitions, indicating delays do not match expected values", "confidence": 0.88, "notes": "Logic analyzer shows uBit.sleep and target_wait_us timing mismatch on digital pins"}]}
|
| 13 |
+
{"instance_id": "nicolomantini__LinkedIn-Easy-Apply-Bot__2198685509", "category": "data_visualization", "records": [{"ocr_text": "qa.csv\nOpen with Microsoft Excel\nQuestions\n0\nAnswers", "error_signal": {"kind": "data_loss", "type": "EmptyData", "message": "CSV file contains only headers 'Questions' and 'Answers' with no actual data rows", "stack_hint": []}, "ui_elements": ["qa.csv file preview", "Open with Microsoft Excel button", "CSV table with headers"], "user_action": "User opened qa.csv to verify saved Q&A data but found it empty", "code_hint": {"function_names": [], "file_patterns": ["qa.csv"], "frameworks": []}, "visual_saliency": "Table showing only column headers 'Questions' and 'Answers' with row index 0 but no actual content, indicating data was not saved", "confidence": 0.85, "notes": "CSV file is empty; quiz Q&A data not persisted."}]}
|
| 14 |
+
{"instance_id": "privatenumber__snap-tweet__1139055572", "category": "ui_screenshot", "records": [{"ocr_text": "jack⚡️ @jack just setting up my twttr 5:50 PM · Mar 21, 2006 Read 10.1K replies", "error_signal": null, "ui_elements": ["tweet card", "username", "verified badge", "timestamp", "Read 10.1K replies button", "Twitter bird icon"], "user_action": "Generated a screenshot/snap of a tweet but it shows 'Read 10.1K replies' instead of engagement metrics", "code_hint": null, "visual_saliency": "The 'Read 10.1K replies' button at the bottom replacing expected reply, retweet, and like counts", "confidence": 0.92, "notes": "Tweet snapshot missing engagement metrics, shows reply link instead"}]}
|
| 15 |
+
{"instance_id": "qarmin__czkawka__1939776450", "category": "behavior_demo", "records": [{"ocr_text": "Czkawka (Hiccup)\nIncluded Directories\tExcluded Directories\tItems Configuration\nAdd\tFolders to Search\tReference Folders\n/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/ref_dir\t☑\n/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/other_dir\t☐\t☑ Recursive\nRemove\nManual Add\nCheck method\tHash\tHash type\tBlake3\nDuplicate Files\tSize\tFile Name\tPath\tModification Date\n☐\t253.50 KiB\ttwo.JPG\t/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/ref_dir\t2001-05-01 23:49:00\n☑\t253.50 KiB\ttwo.JPG\t/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/other_dir\t2001-05-01 23:49:00\n☐\t253.50 KiB\tone.JPG\t/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/ref_dir\t2001-04-28 21:26:26\n☑\t253.50 KiB\tone.JPG\t/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/other_dir\t2001-04-28 21:26:26\nEmpty Directories\nBig Files", "error_signal": null, "ui_elements": ["Included Directories tab", "Folders to Search list", "Reference Folders checkbox", "Recursive checkbox", "Check method dropdown (Hash)", "Hash type dropdown (Blake3)", "Duplicate Files results table", "Empty Directories tab", "Big Files tab", "Add button", "Remove button", "Manual Add button"], "user_action": "User configured ref_dir as reference folder and other_dir as search folder, ran duplicate hash search with Blake3, showing duplicate pairs with other_dir copies selected.", "code_hint": null, "visual_saliency": "The ref_dir row is highlighted in blue in the Folders to Search list; in the results table, the other_dir duplicate entries are highlighted with blue selection and checked checkboxes, while ref_dir entries are unchecked.", "confidence": 0.88, "notes": "Duplicate search results with reference folder; re-searching changes displayed data confusingly."}, {"ocr_text": "Czkawka (Hiccup)\nIncluded Directories\nExcluded Directories\nItems Configuration\nAdd\nRemove\nManual Add\nFolders to Search\nReference Folders\n/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/ref_dir\n/Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/other_dir\nRecursive\nCheck method Hash\nHash type Blake3\nDuplicate Files\nEmpty Directories\nBig Files\nSize\nFile Name\nPath\nModification Date\n253.50 KiB two.JPG /Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/ref_dir 2001-05-01 23:49:00\n253.50 KiB one.JPG /Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/other_dir 2001-04-28 21:26:26\n253.50 KiB two.JPG /Users/alexhunsley/Documents/dev/test_czkawka/test_data_for_ticket_with_images/other_dir 2001-05-01 23:49:00", "error_signal": null, "ui_elements": ["Included Directories tab", "Folders to Search list", "Reference Folders checkboxes", "Recursive checkbox", "Check method dropdown (Hash)", "Hash type dropdown (Blake3)", "Duplicate Files tab", "results table with checkboxes", "Add button", "Remove button", "Manual Add button"], "user_action": "User searched for duplicate files using Hash/Blake3 with a reference directory and an other directory, showing confusing results on re-search with caching.", "code_hint": null, "visual_saliency": "The ref_dir row is highlighted in blue in Folders to Search; in results, two files (one.JPG and two.JPG from other_dir) are checked with blue checkboxes while two.JPG from ref_dir is unchecked.", "confidence": 0.9, "notes": "Duplicate search results change confusingly on re-search with caching enabled."}]}
|
| 16 |
+
{"instance_id": "sfepy__sfepy__2350500234", "category": "error_message", "records": [{"ocr_text": "Uncaught ReferenceError: jQuery is not defined\n<anonymous> https://sfepy.org/doc-devel/search.html?q=neumann&check_keywords=yes&area=default#:165\n[En savoir plus]\nUncaught ReferenceError: jQuery is not defined\n<anonymous> https://sfepy.org/doc-devel/search.html?q=neumann&check_keywords=yes&area=default#:170\n[En savoir plus]\nGET https://sfepy.org/favicon.ico", "error_signal": {"kind": "exception", "type": "ReferenceError", "message": "jQuery is not defined", "stack_hint": ["<anonymous> https://sfepy.org/doc-devel/search.html?q=neumann&check_keywords=yes&area=default#:165", "<anonymous> https://sfepy.org/doc-devel/search.html?q=neumann&check_keywords=yes&area=default#:170"]}, "ui_elements": ["browser console", "error icons", "GET request entry"], "user_action": "User searched docs at sfepy.org and opened browser console to see errors", "code_hint": {"function_names": ["<anonymous>"], "file_patterns": ["search.html"], "frameworks": ["jQuery"]}, "visual_saliency": "Two red error icons with ReferenceError messages highlighted in red text", "confidence": 0.95, "notes": "jQuery not loaded causing search page to break"}]}
|
| 17 |
+
{"instance_id": "silevis__reactgrid__2063202600", "category": "error_message", "records": [{"confidence": 0.0}]}
|
| 18 |
+
{"instance_id": "strapi-community__strapi-plugin-transformer__1258254518", "category": "code_screenshot", "records": [{"ocr_text": "module.exports = ({ env }) => ({\n ...\n 'transformer': {\n enabled: env.bool('TRANSFORM_API', false),\n config: {\n prefix: env('API_PREFIX', '/api/'),\n responseTransforms: {\n removeAttributesKey: env.bool('TRANSFORM_API_ATTRIBUTES', false),\n removeDataKey: env.bool('TRANSFORM_API_DATA', false),\n }\n },\n },\n});", "error_signal": null, "ui_elements": [".env api tab", "plugins.js config M tab", "breadcrumb: apps > api > config > js plugins.js > <unknown> > exports > 'transformer' > config > prefix"], "user_action": "Configuring the transformer plugin with API prefix in plugins.js", "code_hint": {"function_names": ["module.exports", "env", "env.bool"], "file_patterns": ["plugins.js", ".env"], "frameworks": ["Strapi"]}, "visual_saliency": "Line 5 highlighted showing prefix configuration with env('API_PREFIX', '/api/'), with 'You, now • Uncommitted changes' annotation", "confidence": 0.95, "notes": "Strapi transformer plugin config in plugins.js, lines 1-12 visible."}, {"ocr_text": "25 API_PREFIX=/\n26 TRANSFORM_API=true\n27 TRANSFORM_API_ATTRIBUTES=true\n28 TRANSFORM_API_DATA=true", "error_signal": null, "ui_elements": null, "user_action": "Configuring environment variables for API prefix and transform settings", "code_hint": {"function_names": ["API_PREFIX", "TRANSFORM_API", "TRANSFORM_API_ATTRIBUTES", "TRANSFORM_API_DATA"], "file_patterns": [".env"], "frameworks": ["Strapi"]}, "visual_saliency": "Environment variable definitions on lines 25-28", "confidence": 0.92, "notes": "Lines 25-28: env vars setting API prefix to / causing admin clash"}, {"ocr_text": "Warning: An error occurred", "error_signal": {"kind": "warning", "type": "GenericError", "message": "Warning: An error occurred", "stack_hint": []}, "ui_elements": ["warning alert banner", "close button (X)", "error icon"], "user_action": "User accessed the Strapi admin panel and encountered a warning error alert.", "code_hint": {"function_names": [], "file_patterns": ["plugins.js"], "frameworks": ["Strapi"]}, "visual_saliency": "Red/pink warning banner with error icon and dismissible close button", "confidence": 0.85, "notes": "Strapi admin shows generic error due to API prefix clash."}]}
|
| 19 |
+
{"instance_id": "yihui__knitr__1183794769", "category": "rendering_result", "records": [{"ocr_text": "gęstość, pensja, 0.00015, 0.00010, 0.00005, 0.00000, 0, 10000, 20000, 30000, (a) Liczba klas dobrana ekspe-rymentalnie. (b) Liczba klas dobrana regułą Freedmana-Diaconisa. Rysunek 3: Histogram zmiennej pensja oraz gęstość rozkładu logarytmicznie", "error_signal": null, "ui_elements": ["subfloat", "histogram plot", "caption", "figure"], "user_action": "User generated LaTeX subfloats and noticed adjacent images/captions lack separators", "code_hint": {"function_names": ["subfloat"], "file_patterns": null, "frameworks": ["LaTeX"]}, "visual_saliency": "Two histogram subfigures placed directly adjacent with no horizontal separation between them, and their captions also appear merged together", "confidence": 0.88, "notes": "Subfloat images and captions lack separators in LaTeX output."}]}
|
| 20 |
+
{"instance_id": "yshui__picom__2002892676", "category": "log_output", "records": [{"ocr_text": "workstation:~/Work/picom$ unset HOME\nworkstation:/home/helix/Work/picom$ echo $HOME\n\nworkstation:/home/helix/Work/picom$ build/src/picom --config=/dev/null --invert-color-include=\"class_g = 'Chromium'\"\n[ 12/21/2023 23:02:58.504 x_create_picture_with_pictfmt_and_pixmap ERROR ] failed to create picture (X error 8 MATCH request 139 minor 4 serial 2309)\n[ 12/21/2023 23:02:58.504 root_damaged ERROR ] Failed to bind root back pixmap\n[ 12/21/2023 23:02:58.504 x_create_picture_with_pictfmt_and_pixmap ERROR ] failed to create picture (X error 8 MATCH request 139 minor 4 serial 2323)\n[ 12/21/2023 23:02:58.504 root_damaged ERROR ] Failed to bind root back pixmap", "error_signal": {"kind": "runtime_error", "type": "X error 8 MATCH", "message": "failed to create picture (X error 8 MATCH request 139 minor 4 serial 2309); Failed to bind root back pixmap", "stack_hint": ["x_create_picture_with_pictfmt_and_pixmap", "root_damaged"]}, "ui_elements": ["Terminal", "Settings - About Chromium", "Chromium Version 120.0.6099.109 (Official Build) Arch Linux (64-bit)"], "user_action": "User unsets HOME env variable then runs picom with --invert-color-include for Chromium, triggering X errors.", "code_hint": {"function_names": ["x_create_picture_with_pictfmt_and_pixmap", "root_damaged"], "file_patterns": ["build/src/picom", "--config=/dev/null"], "frameworks": ["picom", "X11", "Chromium"]}, "visual_saliency": "Red ERROR labels in terminal log lines highlighting X error failures when HOME is unset", "confidence": 0.95, "notes": "picom --invert-color-include fails with X errors when HOME env is unset"}, {"ocr_text": "workstation:~/Work/picom$ unset HOME\nworkstation:/home/helix/Work/picom$ echo $HOME\n\nworkstation:/home/helix/Work/picom$ build/src/picom --invert-color-include=\"class_g = 'Chromium'\"\n[ 12/21/2023 23:51:18.764 get_cfg WARN ] The egl backend is still experimental, use with care.\n[ 12/21/2023 23:51:18.764 session_init INFO ] Switching to log file: /home/helix/.local/state/picom.log", "error_signal": {"kind": "warning", "type": "WARN", "message": "The egl backend is still experimental, use with care.", "stack_hint": ["get_cfg", "session_init"]}, "ui_elements": ["Terminal", "Settings - About Chromium", "Chromium browser window showing non-inverted colors"], "user_action": "Running picom --invert-color-include with HOME unset to demonstrate color inversion failure", "code_hint": {"function_names": ["get_cfg", "session_init"], "file_patterns": ["/home/helix/.local/state/picom.log", "build/src/picom"], "frameworks": ["picom", "egl"]}, "visual_saliency": "Terminal showing unset HOME and picom command, with Chromium window below showing colors are NOT inverted", "confidence": 0.92, "notes": "picom invert-color-include fails when HOME env var is unset"}, {"ocr_text": "workstation:~/Work/picom$ unset HOME\nworkstation:/home/helix/Work/picom$ echo $HOME\n\nworkstation:/home/helix/Work/picom$ build/src/picom --invert-color-include=\"class_g = 'Chromium'\"\n[ 12/21/2023 23:51:18.764 get_cfg WARN ] The egl backend is still experimental, use with care.\n[ 12/21/2023 23:51:18.764 session_init INFO ] Switching to log file: /home/helix/.local/state/picom.log\n*Cworkstation:/home/helix/Work/picom$", "error_signal": {"kind": "warning", "type": "WARN", "message": "The egl backend is still experimental, use with care.", "stack_hint": ["get_cfg"]}, "ui_elements": ["Terminal", "Settings - About Chromium tab", "Chromium browser showing chrome://settings/help", "Version 120.0.6099.109 (Official Build) Arch Linux (64-bit)"], "user_action": "User unsets HOME env variable, then runs picom --invert-color-include targeting Chromium, showing it fails to invert colors.", "code_hint": {"function_names": ["get_cfg", "session_init"], "file_patterns": ["/home/helix/.local/state/picom.log", "build/src/picom"], "frameworks": ["picom", "egl"]}, "visual_saliency": "Terminal showing unset HOME and picom command output; Chromium browser below with non-inverted colors demonstrating the bug", "confidence": 0.93, "notes": "picom --invert-color-include fails silently when HOME env is unset."}]}
|
scripts/download_repos.py
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Download repository snapshots for MM-IssueLoc Bench at each PR base_commit.
|
| 2 |
+
|
| 3 |
+
For every entry in `commit_cache.json`, this script fetches a source-code
|
| 4 |
+
tarball at the exact `base_commit` via the GitHub REST API and extracts it
|
| 5 |
+
into `repos/<dir_name>/`. No `.git` history is retained.
|
| 6 |
+
|
| 7 |
+
Requirements
|
| 8 |
+
------------
|
| 9 |
+
- Python 3.10+ (stdlib only — no external packages).
|
| 10 |
+
- A GitHub personal access token with `public_repo` scope is strongly
|
| 11 |
+
recommended: the anonymous rate limit is 60 req/hour, vs 5000/hour with
|
| 12 |
+
a token. Pass it via `--token` or set `GITHUB_TOKEN` / `GH_TOKEN`.
|
| 13 |
+
Generate one at https://github.com/settings/tokens (no extra permissions
|
| 14 |
+
needed for public repositories).
|
| 15 |
+
|
| 16 |
+
Example
|
| 17 |
+
-------
|
| 18 |
+
export GITHUB_TOKEN=ghp_xxx
|
| 19 |
+
python3 scripts/download_repos.py # ~10 min w/ token
|
| 20 |
+
python3 scripts/download_repos.py --workers 8
|
| 21 |
+
python3 scripts/download_repos.py --only 5 # dry-run small slice
|
| 22 |
+
python3 scripts/download_repos.py --retry-failed # retry failures
|
| 23 |
+
|
| 24 |
+
Resumability
|
| 25 |
+
------------
|
| 26 |
+
Already-extracted directories are skipped by default. Partial downloads
|
| 27 |
+
use a `<dir>.tmp` staging directory that is renamed atomically on success,
|
| 28 |
+
so a Ctrl+C never leaves a half-extracted repo under `repos/`.
|
| 29 |
+
|
| 30 |
+
Disk / bandwidth
|
| 31 |
+
----------------
|
| 32 |
+
Full download is ~5–20 GB across 653 repos; size is dominated by a few
|
| 33 |
+
large upstream projects. Individual tarballs are streamed in memory
|
| 34 |
+
(typical peak RSS < 500 MB) and extracted immediately.
|
| 35 |
+
"""
|
| 36 |
+
|
| 37 |
+
from __future__ import annotations
|
| 38 |
+
|
| 39 |
+
import argparse
|
| 40 |
+
import concurrent.futures as cf
|
| 41 |
+
import json
|
| 42 |
+
import os
|
| 43 |
+
import shutil
|
| 44 |
+
import sys
|
| 45 |
+
import tarfile
|
| 46 |
+
import time
|
| 47 |
+
import urllib.error
|
| 48 |
+
import urllib.request
|
| 49 |
+
from dataclasses import dataclass
|
| 50 |
+
from io import BytesIO
|
| 51 |
+
from pathlib import Path
|
| 52 |
+
|
| 53 |
+
API_ROOT = "https://api.github.com"
|
| 54 |
+
UA = "mm-issueloc-bench-downloader/1.0"
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
# ---------------------------------------------------------------------------
|
| 58 |
+
# Types
|
| 59 |
+
# ---------------------------------------------------------------------------
|
| 60 |
+
|
| 61 |
+
@dataclass
|
| 62 |
+
class Job:
|
| 63 |
+
instance_id: str
|
| 64 |
+
repo: str # "owner/name"
|
| 65 |
+
sha: str # full commit SHA
|
| 66 |
+
dir_name: str # target directory name
|
| 67 |
+
|
| 68 |
+
@property
|
| 69 |
+
def owner(self) -> str:
|
| 70 |
+
return self.repo.split("/", 1)[0]
|
| 71 |
+
|
| 72 |
+
@property
|
| 73 |
+
def name(self) -> str:
|
| 74 |
+
return self.repo.split("/", 1)[1]
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
@dataclass
|
| 78 |
+
class Result:
|
| 79 |
+
job: Job
|
| 80 |
+
ok: bool
|
| 81 |
+
files: int = 0
|
| 82 |
+
error: str = ""
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
# ---------------------------------------------------------------------------
|
| 86 |
+
# GitHub API
|
| 87 |
+
# ---------------------------------------------------------------------------
|
| 88 |
+
|
| 89 |
+
def _request(url: str, token: str | None, timeout: int = 180) -> bytes:
|
| 90 |
+
"""GET a URL, returning the raw body. Follows redirects (tarball → codeload)."""
|
| 91 |
+
headers = {"Accept": "application/vnd.github+json", "User-Agent": UA}
|
| 92 |
+
if token:
|
| 93 |
+
headers["Authorization"] = f"Bearer {token}"
|
| 94 |
+
req = urllib.request.Request(url, headers=headers)
|
| 95 |
+
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
| 96 |
+
return resp.read()
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def fetch_tarball(job: Job, token: str | None, max_retries: int = 5) -> bytes:
|
| 100 |
+
"""Fetch the repo as a gzipped tarball at the target commit.
|
| 101 |
+
|
| 102 |
+
Retries on 403 rate-limit and transient network errors with exponential backoff.
|
| 103 |
+
"""
|
| 104 |
+
url = f"{API_ROOT}/repos/{job.repo}/tarball/{job.sha}"
|
| 105 |
+
last_err: Exception | None = None
|
| 106 |
+
for attempt in range(max_retries):
|
| 107 |
+
try:
|
| 108 |
+
return _request(url, token)
|
| 109 |
+
except urllib.error.HTTPError as e:
|
| 110 |
+
body = e.read().decode("utf-8", errors="replace") if hasattr(e, "read") else ""
|
| 111 |
+
if e.code == 403 and ("rate limit" in body.lower() or "secondary" in body.lower()):
|
| 112 |
+
wait = min(60 * (2 ** attempt), 900)
|
| 113 |
+
print(f" rate limited ({e.code}); sleeping {wait}s (attempt {attempt + 1}/{max_retries})",
|
| 114 |
+
file=sys.stderr, flush=True)
|
| 115 |
+
time.sleep(wait)
|
| 116 |
+
last_err = e
|
| 117 |
+
continue
|
| 118 |
+
# 404 / 451 / 410 etc — repo is gone, don't retry
|
| 119 |
+
raise RuntimeError(f"HTTP {e.code} — {body[:200]}") from e
|
| 120 |
+
except (urllib.error.URLError, TimeoutError, ConnectionError) as e:
|
| 121 |
+
wait = 2 ** attempt
|
| 122 |
+
print(f" network error ({e}); retrying in {wait}s", file=sys.stderr, flush=True)
|
| 123 |
+
time.sleep(wait)
|
| 124 |
+
last_err = e
|
| 125 |
+
raise RuntimeError(f"exhausted retries: {last_err}")
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
# ---------------------------------------------------------------------------
|
| 129 |
+
# Extraction
|
| 130 |
+
# ---------------------------------------------------------------------------
|
| 131 |
+
|
| 132 |
+
_TAR_KW = {"filter": "data"} if sys.version_info >= (3, 12) else {}
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def extract_tarball(data: bytes, dest: Path) -> int:
|
| 136 |
+
"""Extract into dest/, stripping the GitHub tarball's top-level dir.
|
| 137 |
+
|
| 138 |
+
GitHub tarballs have a top-level directory like `owner-name-shortsha/`;
|
| 139 |
+
we strip it so that dest/ holds the repo contents directly.
|
| 140 |
+
"""
|
| 141 |
+
dest.mkdir(parents=True, exist_ok=True)
|
| 142 |
+
n = 0
|
| 143 |
+
with tarfile.open(fileobj=BytesIO(data), mode="r:gz") as tf:
|
| 144 |
+
members = tf.getmembers()
|
| 145 |
+
if not members:
|
| 146 |
+
return 0
|
| 147 |
+
root = members[0].name.split("/", 1)[0] + "/"
|
| 148 |
+
for m in members:
|
| 149 |
+
if not m.name.startswith(root):
|
| 150 |
+
continue
|
| 151 |
+
m.name = m.name[len(root):]
|
| 152 |
+
if not m.name:
|
| 153 |
+
continue
|
| 154 |
+
try:
|
| 155 |
+
tf.extract(m, path=dest, **_TAR_KW)
|
| 156 |
+
n += 1
|
| 157 |
+
except Exception as e:
|
| 158 |
+
# Skip problematic members (broken symlinks, etc.) but keep going
|
| 159 |
+
print(f" skipped member {m.name!r}: {e}", file=sys.stderr)
|
| 160 |
+
return n
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
# ---------------------------------------------------------------------------
|
| 164 |
+
# Per-job driver
|
| 165 |
+
# ---------------------------------------------------------------------------
|
| 166 |
+
|
| 167 |
+
def run_one(job: Job, out_dir: Path, token: str | None) -> Result:
|
| 168 |
+
dest = out_dir / job.dir_name
|
| 169 |
+
tmp = dest.with_suffix(".tmp")
|
| 170 |
+
if tmp.exists():
|
| 171 |
+
shutil.rmtree(tmp)
|
| 172 |
+
try:
|
| 173 |
+
data = fetch_tarball(job, token)
|
| 174 |
+
n = extract_tarball(data, tmp)
|
| 175 |
+
tmp.rename(dest)
|
| 176 |
+
return Result(job, ok=True, files=n)
|
| 177 |
+
except Exception as e:
|
| 178 |
+
if tmp.exists():
|
| 179 |
+
shutil.rmtree(tmp, ignore_errors=True)
|
| 180 |
+
return Result(job, ok=False, error=str(e))
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
# ---------------------------------------------------------------------------
|
| 184 |
+
# Main
|
| 185 |
+
# ---------------------------------------------------------------------------
|
| 186 |
+
|
| 187 |
+
def _load_jobs(cache_path: Path, out_dir: Path, *, skip_existing: bool) -> tuple[list[Job], int]:
|
| 188 |
+
cache: dict[str, dict] = json.loads(cache_path.read_text())
|
| 189 |
+
jobs: list[Job] = []
|
| 190 |
+
skipped = 0
|
| 191 |
+
for iid, entry in cache.items():
|
| 192 |
+
job = Job(
|
| 193 |
+
instance_id=iid,
|
| 194 |
+
repo=entry["repo"],
|
| 195 |
+
sha=entry["sha"],
|
| 196 |
+
dir_name=entry["dir_name"],
|
| 197 |
+
)
|
| 198 |
+
dest = out_dir / job.dir_name
|
| 199 |
+
if skip_existing and dest.exists() and any(dest.iterdir()):
|
| 200 |
+
skipped += 1
|
| 201 |
+
continue
|
| 202 |
+
jobs.append(job)
|
| 203 |
+
return jobs, skipped
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
def _load_failed(failures_path: Path, out_dir: Path) -> list[Job]:
|
| 207 |
+
records = json.loads(failures_path.read_text())
|
| 208 |
+
return [
|
| 209 |
+
Job(instance_id=r["instance_id"], repo=r["repo"], sha=r["sha"], dir_name=r["dir_name"])
|
| 210 |
+
for r in records
|
| 211 |
+
]
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
def main() -> int:
|
| 215 |
+
ap = argparse.ArgumentParser(description=__doc__.split("\n")[0])
|
| 216 |
+
ap.add_argument("--output-dir", type=Path, default=Path("repos"),
|
| 217 |
+
help="Directory to place `<dir_name>/` snapshots into (default: repos)")
|
| 218 |
+
ap.add_argument("--cache-file", type=Path, default=Path("commit_cache.json"),
|
| 219 |
+
help="Path to commit_cache.json (default: ./commit_cache.json)")
|
| 220 |
+
ap.add_argument("--workers", type=int, default=4,
|
| 221 |
+
help="Parallel download workers (default: 4)")
|
| 222 |
+
ap.add_argument("--only", type=int, default=0,
|
| 223 |
+
help="Download only the first N jobs (for testing)")
|
| 224 |
+
ap.add_argument("--token", default=os.environ.get("GITHUB_TOKEN") or os.environ.get("GH_TOKEN"),
|
| 225 |
+
help="GitHub token; falls back to $GITHUB_TOKEN / $GH_TOKEN")
|
| 226 |
+
ap.add_argument("--no-skip-existing", action="store_true",
|
| 227 |
+
help="Re-download even if the target directory already exists")
|
| 228 |
+
ap.add_argument("--retry-failed", action="store_true",
|
| 229 |
+
help="Retry entries from download_failures.json instead of the full cache")
|
| 230 |
+
args = ap.parse_args()
|
| 231 |
+
|
| 232 |
+
if not args.cache_file.exists():
|
| 233 |
+
print(f"error: {args.cache_file} not found — run from the dataset root.", file=sys.stderr)
|
| 234 |
+
return 2
|
| 235 |
+
if not args.token:
|
| 236 |
+
print("WARNING: no token provided. Unauthenticated rate limit is 60 req/hour.\n"
|
| 237 |
+
" Set GITHUB_TOKEN or pass --token for a 5000/hour limit.",
|
| 238 |
+
file=sys.stderr)
|
| 239 |
+
|
| 240 |
+
args.output_dir.mkdir(parents=True, exist_ok=True)
|
| 241 |
+
failures_path = args.output_dir.parent / "download_failures.json"
|
| 242 |
+
|
| 243 |
+
if args.retry_failed:
|
| 244 |
+
if not failures_path.exists():
|
| 245 |
+
print(f"error: no {failures_path} — nothing to retry.", file=sys.stderr)
|
| 246 |
+
return 2
|
| 247 |
+
jobs = _load_failed(failures_path, args.output_dir)
|
| 248 |
+
skipped = 0
|
| 249 |
+
print(f"Retrying {len(jobs)} previously failed entries from {failures_path}")
|
| 250 |
+
else:
|
| 251 |
+
jobs, skipped = _load_jobs(
|
| 252 |
+
args.cache_file, args.output_dir, skip_existing=not args.no_skip_existing,
|
| 253 |
+
)
|
| 254 |
+
if args.only:
|
| 255 |
+
jobs = jobs[: args.only]
|
| 256 |
+
|
| 257 |
+
if not jobs:
|
| 258 |
+
print(f"Nothing to do — {skipped} already present in {args.output_dir}/.")
|
| 259 |
+
return 0
|
| 260 |
+
|
| 261 |
+
print(f"Downloading {len(jobs)} repos into {args.output_dir}/ ({skipped} already present) "
|
| 262 |
+
f"with {args.workers} workers.")
|
| 263 |
+
|
| 264 |
+
failures: list[Result] = []
|
| 265 |
+
start = time.time()
|
| 266 |
+
with cf.ThreadPoolExecutor(max_workers=args.workers) as ex:
|
| 267 |
+
futures = {ex.submit(run_one, j, args.output_dir, args.token): j for j in jobs}
|
| 268 |
+
try:
|
| 269 |
+
for i, fut in enumerate(cf.as_completed(futures), 1):
|
| 270 |
+
res = fut.result()
|
| 271 |
+
tag = "ok " if res.ok else "FAIL"
|
| 272 |
+
short_sha = res.job.sha[:12]
|
| 273 |
+
extra = f"{res.files:>5} files" if res.ok else res.error[:80]
|
| 274 |
+
print(f" [{i:>4}/{len(jobs)}] {tag} {res.job.repo:<55s} @ {short_sha} {extra}",
|
| 275 |
+
flush=True)
|
| 276 |
+
if not res.ok:
|
| 277 |
+
failures.append(res)
|
| 278 |
+
except KeyboardInterrupt:
|
| 279 |
+
print("\nInterrupted — waiting for in-flight downloads to finish cleanly...",
|
| 280 |
+
file=sys.stderr)
|
| 281 |
+
ex.shutdown(cancel_futures=True)
|
| 282 |
+
return 130
|
| 283 |
+
|
| 284 |
+
elapsed = time.time() - start
|
| 285 |
+
n_ok = len(jobs) - len(failures)
|
| 286 |
+
print(f"\n{n_ok}/{len(jobs)} repos fetched in {elapsed:.0f}s.")
|
| 287 |
+
|
| 288 |
+
if failures:
|
| 289 |
+
failures_path.write_text(json.dumps(
|
| 290 |
+
[
|
| 291 |
+
{
|
| 292 |
+
"instance_id": r.job.instance_id,
|
| 293 |
+
"repo": r.job.repo,
|
| 294 |
+
"sha": r.job.sha,
|
| 295 |
+
"dir_name": r.job.dir_name,
|
| 296 |
+
"error": r.error,
|
| 297 |
+
}
|
| 298 |
+
for r in failures
|
| 299 |
+
],
|
| 300 |
+
indent=2,
|
| 301 |
+
))
|
| 302 |
+
print(f"{len(failures)} failures logged to {failures_path}\n"
|
| 303 |
+
f"Retry with: python3 scripts/download_repos.py --retry-failed", file=sys.stderr)
|
| 304 |
+
return 1
|
| 305 |
+
return 0
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
if __name__ == "__main__":
|
| 309 |
+
sys.exit(main())
|