Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

ranking-eval: add the copyright headers CI requires

KageBinaryb5054d6210b3
diff --git a/ix-cli/scripts/ranking-eval/configs.mjs b/ix-cli/scripts/ranking-eval/configs.mjs
index f73f4a6b..444a2c3d 100644
--- a/ix-cli/scripts/ranking-eval/configs.mjs
+++ b/ix-cli/scripts/ranking-eval/configs.mjs
@@ -1,3 +1,5 @@
+// Copyright 2026 Ix Infrastructure Inc.
+
// Named variants. Round 1 changes one thing from `base` each; later rounds
// combine what won on dev.
const DOCS_SITE = /(^|\/)(site|website|guides|demos?|playground|benchmarks?)\//;
diff --git a/ix-cli/scripts/ranking-eval/corpus.mjs b/ix-cli/scripts/ranking-eval/corpus.mjs
index 2f0e4664..7fbb2c8a 100644
--- a/ix-cli/scripts/ranking-eval/corpus.mjs
+++ b/ix-cli/scripts/ranking-eval/corpus.mjs
@@ -1,3 +1,5 @@
+// Copyright 2026 Ix Infrastructure Inc.
+
// Read a repository snapshot straight from ix-bench's bare clones: no
// checkout, no backend. `git ls-tree` lists the tracked files at the base
// commit; `git cat-file --batch` reads the source ones in one process.
diff --git a/ix-cli/scripts/ranking-eval/defs.mjs b/ix-cli/scripts/ranking-eval/defs.mjs
index 0e2592af..2149405e 100644
--- a/ix-cli/scripts/ranking-eval/defs.mjs
+++ b/ix-cli/scripts/ranking-eval/defs.mjs
@@ -1,3 +1,5 @@
+// Copyright 2026 Ix Infrastructure Inc.
+
// A stand-in for `ix search --name-only` with no backend: the definitions of
// a name, found by regex over the snapshot's source files. Only good enough to
// measure the plan's ranking (starting files, then BM25) offline; the graph's
diff --git a/ix-cli/scripts/ranking-eval/eval.mjs b/ix-cli/scripts/ranking-eval/eval.mjs
index c7f1a293..58cc9ca6 100644
--- a/ix-cli/scripts/ranking-eval/eval.mjs
+++ b/ix-cli/scripts/ranking-eval/eval.mjs
@@ -1,3 +1,5 @@
+// Copyright 2026 Ix Infrastructure Inc.
+
// Score BM25 variants on the dev (or, once, the test) split.
//
// node eval.mjs --set dev --variants base,code --out results/dev.jsonl [--plan] [--check]
diff --git a/ix-cli/scripts/ranking-eval/make_split.py b/ix-cli/scripts/ranking-eval/make_split.py
index 6c9b97bf..9715afbf 100644
--- a/ix-cli/scripts/ranking-eval/make_split.py
+++ b/ix-cli/scripts/ranking-eval/make_split.py
@@ -1,3 +1,5 @@
+# Copyright 2026 Ix Infrastructure Inc.
+
"""Fix the dev/test split before any results are looked at.
DEV = every instance id in the earlier ix-bench runs (tuning allowed).
diff --git a/ix-cli/scripts/ranking-eval/speed.mjs b/ix-cli/scripts/ranking-eval/speed.mjs
index fb524856..fc348087 100644
--- a/ix-cli/scripts/ranking-eval/speed.mjs
+++ b/ix-cli/scripts/ranking-eval/speed.mjs
@@ -1,3 +1,5 @@
+// Copyright 2026 Ix Infrastructure Inc.
+
// Time per issue of the baseline and the current bm25Rank, over the same
// files and issue text: median of 7 runs after one warm-up.
//
diff --git a/ix-cli/scripts/ranking-eval/summarize.mjs b/ix-cli/scripts/ranking-eval/summarize.mjs
index b123a41e..a29f674d 100644
--- a/ix-cli/scripts/ranking-eval/summarize.mjs
+++ b/ix-cli/scripts/ranking-eval/summarize.mjs
@@ -1,3 +1,5 @@
+// Copyright 2026 Ix Infrastructure Inc.
+
// Tables from eval.mjs output: mean recall @5/@10/@20 per language and
// overall, and per-instance wins/losses against a reference variant (a win is
// a higher recall at that cutoff).
diff --git a/ix-cli/scripts/ranking-eval/variants.mjs b/ix-cli/scripts/ranking-eval/variants.mjs
index 7bae8352..ae903182 100644
--- a/ix-cli/scripts/ranking-eval/variants.mjs
+++ b/ix-cli/scripts/ranking-eval/variants.mjs
@@ -1,3 +1,5 @@
+// Copyright 2026 Ix Infrastructure Inc.
+
// BM25 variants for the ranking study, one knob at a time. `base` reproduces
// issue.ts's bm25Rank exactly (checked by eval.mjs --check); the rest change
// one thing each, so a gain can be attributed.