MaxLSB's picture
SASS post-training dataset
0749819
|
Raw History Blame Contribute Delete
3.24 kB
metadata
license: cc-by-4.0
language:
  - en
tags:
  - code
  - swe
  - sft
  - deduplicated
  - decontaminated
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*
dataset_info:
  features:
    - name: instance_id
      dtype: string
    - name: repo
      dtype: string
    - name: repo_url
      dtype: string
    - name: base_commit
      dtype: string
    - name: language
      dtype: string
    - name: source
      dtype: string
    - name: problem_statement
      dtype: string
    - name: gold
      list:
        - name: file
          dtype: string
        - name: start_line
          dtype: int32
        - name: end_line
          dtype: int32
  splits:
    - name: train
      num_bytes: 17547551
      num_examples: 10899
  download_size: 8362467
  dataset_size: 17547551

code-search-corpus-SFT

Self-mined SFT task instances, deduplicated and decontaminated against full ContextBench (1,136 instances, 67 repos, verified subset included) β€” 10919 instances total.

Schema

One row per task: instance_id, repo, repo_url, base_commit, language, source, problem_statement, and gold β€” a list of {file, start_line, end_line} spans at base_commit.

from datasets import load_dataset
ds = load_dataset("lightonai/code-search-corpus-SFT", split="train")

Cleaning stages

Deduplication first, then four decontamination layers (cheapest first):

  • D β€” dedup: exact duplicates by lowercased instance_id and by (repo, base_commit, sha1(gold)) (the gold spans stand in for the patch, which the corpus schema does not carry).
  • L1 β€” repo identity: normalized owner/name match against the 67 ContextBench repos.
  • L2 β€” shared commit SHAs: every row's base_commit checked against the full commit history of all 67 ContextBench repos (1,312,214 commits from blobless mirrors); any hit drops the whole training repo (catches forks, renames, and clone-push mirrors).
  • L3 β€” file-content (blob) overlap: surviving repos with a ContextBench name collision are blobless-cloned and checked for shared commits or >50% HEAD blob-SHA overlap (705,185 eval blobs).
  • L4 β€” 13-gram overlap: word-level 13-grams of ContextBench problem statements vs each row's problem_statement (the only text field the rows carry), with a too-common-gram guard (grams in β‰₯10 distinct training repos are boilerplate and discounted).

Drop counts

source original D dedup L1 repo L2 commits L3 blobs L4 13-gram kept
self-mined 11113 3 0 0 0 109 11001

Multi-SWE-bench decontamination (2026-08-09)

A repo-identity check against the two localization evals (SWE-bench Lite, ByteDance-Seed/Multi-SWE-bench-flash) found one overlap: serde-rs/serde, an eval repo of Multi-SWE-bench (82 rows, source self-mined). Those rows were removed. SWE-bench Lite had zero overlap at repo, commit, instance and 13-gram level.

Filtering note (2026-08-12)

20 instances were removed because at least one gold span pointed to a file that does not exist in the base-commit checkout (files newly created by the PR, which an agent searching the pre-PR repository can never predict). 10,919 β†’ 10,899 rows.