repo_id stringclasses 400
values | cross_repo_split stringclasses 1
value | commit_index int32 0 1.19k | commit_sha stringlengths 40 40 | commit_timestamp stringdate 2008-07-09 01:24:20+0200 2026-03-01 16:40:22+0200 | in_repo_split stringclasses 3
values | production_code_diff large_stringlengths 0 8.52M | n_new_assertions int32 1 9.48k | n_added_assertions int32 0 6.98k | n_modified_assertions int32 0 5.29k |
|---|---|---|---|---|---|---|---|---|---|
0xricksanchez/like-dbg | train | 0 | cea877b92f35369a255c540a120ca04a1041c9aa | 2022-10-17T17:51:37+02:00 | train | diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..2ae7a5c
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,36 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: bug
+assignees: ''
+
+---
+... | 39 | 39 | 0 |
0xricksanchez/like-dbg | train | 1 | a7059b6eb18bbef0be27d8baee2778d1b0ef4c93 | 2022-10-18T19:44:41+02:00 | train | diff --git a/README.md b/README.md
index 6464379..9ad39d5 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
[](https://github.com/0xricksanchez/like-dbg/actions?query=workflow%3Aflake8)
[:
warn = kwargs.get("warn", False)
return self.ssh_conn.run(f"cd {self.docker_mnt}/{self.kernel_root} && {... | 68 | 68 | 0 |
0xricksanchez/like-dbg | train | 4 | 6247319f4c17b87e1e0c2efb1ae2fb1e16cdd6ce | 2022-10-24T18:16:22+02:00 | train | diff --git a/src/debuggee.py b/src/debuggee.py
index a4fd1b9..f540dc6 100644
--- a/src/debuggee.py
+++ b/src/debuggee.py
@@ -16,7 +16,7 @@ class Debuggee(DockerRunner):
def __init__(self, **kwargs):
super().__init__(**kwargs)
user_cfg = kwargs.get("user_cfg", "")
- cfg_setter(self, ["debug... | 48 | 43 | 5 |
0xricksanchez/like-dbg | train | 5 | 7b29359bf1d3027eb7d7d712cb17036d0e84415b | 2022-10-25T16:34:06+02:00 | train | diff --git a/src/debuggee.py b/src/debuggee.py
index f540dc6..827adef 100644
--- a/src/debuggee.py
+++ b/src/debuggee.py
@@ -49,11 +49,9 @@ class Debuggee(DockerRunner):
return 0
elif "wait" in self.panic:
try:
- ret = self.panic.split(" ")[1]
- if not re... | 88 | 61 | 27 |
0xricksanchez/like-dbg | train | 6 | a183993b779a70b6776c724a2a9aa2303bbdb068 | 2022-10-27T15:30:01+02:00 | train | 14 | 10 | 4 | |
0xricksanchez/like-dbg | train | 7 | e8cdfaa81f4303ef6bcc0b015b531506b26d9c3c | 2022-10-28T10:15:59+02:00 | train | 1 | 0 | 1 | |
0xricksanchez/like-dbg | train | 8 | 2b1a0027f0eb08ddd4fc4349ee15f7ff791fa815 | 2022-11-12T15:40:16+01:00 | train | diff --git a/examples/c_kmod/README.md b/examples/c_kmod/README.md
index 0883311..6b0736f 100644
--- a/examples/c_kmod/README.md
+++ b/examples/c_kmod/README.md
@@ -1,7 +1,6 @@
# README
-This directory houses example kernel modules that can automatically be compiled into a kernel by
-tweaking your `LIKE_DBG` config:... | 34 | 22 | 12 |
0xricksanchez/like-dbg | train | 9 | cfaae72d22e4380f8b5967f47dfc99c929b02614 | 2022-11-12T16:27:29+01:00 | train | 36 | 36 | 0 | |
0xricksanchez/like-dbg | train | 10 | 522c24530a5987bcf196375f97462af0490a9e91 | 2022-11-14T16:08:21+01:00 | train | diff --git a/examples/README.md b/examples/README.md
new file mode 100644
index 0000000..c02d234
--- /dev/null
+++ b/examples/README.md
@@ -0,0 +1,3 @@
+# README
+
+This directory houses example use cases and demo configutations for LIKE-DBG.
diff --git a/examples/c_kmod/README.md b/examples/c_kmod/README.md
index 6b07... | 24 | 24 | 0 |
0xricksanchez/like-dbg | train | 11 | aef7e643e3fd44e5960f00054e247354e1dc6365 | 2022-12-27T16:48:40+01:00 | val | diff --git a/ctf/misc/bin2charr.py b/ctf/misc/bin2charr.py
new file mode 100755
index 0000000..39015de
--- /dev/null
+++ b/ctf/misc/bin2charr.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python
+import sys
+from pathlib import Path
+
+
+def chunks(blist: bytes, chunk_sz: int):
+ bs = list(blist)
+ for i in range(0, len(bs... | 31 | 30 | 1 |
0xricksanchez/like-dbg | train | 12 | 3532d9215aeeec431f3045ffab92ac4f82612ee3 | 2022-12-31T19:16:23+01:00 | test | diff --git a/README.md b/README.md
index 32c1ecb..f6cf957 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,9 @@ On the upside, despite its early stages, a couple of useful features are already
* Powered by [QEMU](https://github.com/qemu/qemu)
* Customization of QEMU runtime options from within the `configs/*.i... | 96 | 59 | 37 |
0xricksanchez/like-dbg | train | 13 | 6432fa835fb0a2b6273c8a8b64efd3b014d97ee9 | 2023-09-26T11:46:44+02:00 | test | diff --git a/README.md b/README.md
index f6cf957..ae54baf 100644
--- a/README.md
+++ b/README.md
@@ -84,8 +84,8 @@ To get started, you have to ensure to have the following requirements set up in
* `docker`
* `tmux`
-* `python>=3.9`
- * `venv`
+* `python>=3.11`
+* `poetry` # <https://python-poetry.org/docs/>
It ... | 148 | 39 | 109 |
AlignmentResearch/tuned-lens | train | 0 | f58b16fa152a3c110d26a29333ffeb191bc6c867 | 2022-10-04T00:49:15+00:00 | train | diff --git a/README.md b/README.md
new file mode 100644
index 0000000..768fb0e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+# logit-lens
+Tools for understanding how transformer predictions are built up iteratively layer-by-layer
diff --git a/logit_lens/__init__.py b/logit_lens/__init__.py
new file mode 100644
index ... | 1 | 1 | 0 |
AlignmentResearch/tuned-lens | train | 1 | e3be6252ff1656e7a3369c66212d95cfb95336e3 | 2022-10-04T10:25:09+00:00 | train | diff --git a/logit_lens/__init__.py b/logit_lens/__init__.py
index e69de29..9e84018 100644
--- a/logit_lens/__init__.py
+++ b/logit_lens/__init__.py
@@ -0,0 +1 @@
+from .feature_extraction import record_residual_stream
diff --git a/logit_lens/data.py b/logit_lens/data.py
index 216666d..57b6413 100644
--- a/logit_lens/d... | 1 | 0 | 1 |
Code2LoRA-GRU commit-level dataset (smart-cap)
Per-repository commit sequences with test-file assertion QnA pairs, used to
train the Code2LoRA-GRUcommit hypernetwork. The model
ingests the filtered production-code diff at each commit, evolves a GRU
hidden state across the commit history, and at each step generates a LoRA
that adapts a base LLM (Qwen/Qwen2.5-Coder-1.5B) to the repository's
current state. Targets are RHSs of newly-introduced assertions at each
commit.
Splits
- Cross-repo split (
cross_repo_split∈ {train, cr_val, cr_test}): Each repository is assigned to exactly one of these sets. Held-out repositories are never seen during training. - In-repo split (
in_repo_split∈ {train, val, test}): For each repo the kept commits are chopped 80 / 10 / 10 chronologically. Only thetrainslice contributes to the LoRA loss during training; the GRU is still allowed to ingest every diff in order.
Smart-cap filtering
The qna/train.parquet shipped here is the smart-cap snapshot of the
raw QnA table. It applies three additive filters on the cross-repo
training set:
- Drop trivial targets (single-token bools / Nones / empty strings).
- Per-(
test_file,test_function) round-robin: at mostmax_per_function = 4assertions per function. - Per-commit hard cap: at most
max_per_commit = 8distinct (file, function, target) triples per commit. Theqna/cr_val.parquetandqna/cr_test.parquetfiles are unfiltered (verbatim copies of the canonical RepoPeftBench QnAs) so that cross-repo evaluation numbers stay comparable across model versions.
Schemas
commits
| column | type | description |
|---|---|---|
| repo_id | string | <owner>/<repo> |
| cross_repo_split | string | train / cr_val / cr_test |
| commit_index | int32 | 0-based index within the kept sequence |
| commit_sha | string | git SHA of this kept commit |
| commit_timestamp | string | ISO 8601 |
| in_repo_split | string | train / val / test (chronological 80/10/10) |
| production_code_diff | large_string | filtered unified diff vs prev kept commit (test hunks removed) |
| n_new_assertions | int32 | number of assertion events introduced |
| n_added_assertions | int32 | events newly added at this commit |
| n_modified_assertions | int32 | events modified at this commit |
qna
| column | type | description |
|---|---|---|
| repo_id | string | <owner>/<repo> |
| commit_sha | string | commit at which this assertion event lives |
| commit_index | int32 | matches the commits row |
| in_repo_split | string | train / val / test |
| cross_repo_split | string | train / cr_val / cr_test |
| test_file | string | path inside the repo, posix style |
| test_function | string | enclosing pytest / unittest function name |
| prefix | large_string | structured context: imports + class + helpers + test body up to the assertion |
| target | large_string | the assertion RHS to predict |
| assertion_type | string | pytest / unittest / numpy / etc. |
| assertion_event | string | added or modified |
| difficulty | string | easy / medium / hard (heuristic) |
Usage
from datasets import load_dataset
commits = load_dataset("nanigock/repopeft-gru-commits", "commits")
qna = load_dataset("nanigock/repopeft-gru-commits", "qna")
print(commits)
# DatasetDict({train, cr_val, cr_test})
print(qna["train"][0]["prefix"][:200])
Training code
The model and training script live at
github.com/lilianahotsko/RepoPeftData.
See scripts/slurm/train_code2lora_gru_commits.sh for the SLURM launcher
and hypernetwork/train_code2lora_gru_commits.py for the trainer.
Citation
@misc{repopeft_gru_commits_2026,
title = {Code2LoRA-GRU: A commit-sequential hypernetwork for repository-aware LoRA adaptation},
year = {2026},
author = {RepoPeftData authors},
}
- Downloads last month
- 40