Spaces:
Running
Running
data-line commited on
Commit 路
627a3d6
1
Parent(s): 856d716
portal: catalog page of repository commit 9da9e4d972bd
Browse filesFiles of catalog/portal/ (9), digest ce9abec5ba6254a74f583f5bf95c7e6913d57846dca47abf57b284ff39049bf1.
- README.md +19 -4
- app.js +29 -4
- data.js +2 -0
- first.js +17 -2
- first.json +4 -1
- index.html +1 -0
- llms.txt +2 -1
- portal.json +2 -2
- style.css +3 -0
README.md
CHANGED
|
@@ -32,6 +32,18 @@ muted line. "Shippable" is the share of rows whose redistribution is yes
|
|
| 32 |
or conditional (`license_rows.redistribution_ok`), weighted by task-ready units, or by raw rows when a category has no
|
| 33 |
task-ready unit (then labelled "Shippable, raw").
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## What it reads
|
| 36 |
|
| 37 |
The page asks the Hub for the latest commit of the dataset
|
|
@@ -41,7 +53,7 @@ without a redeploy.
|
|
| 41 |
|
| 42 |
| File | Read | Fields used |
|
| 43 |
|---|---|---|
|
| 44 |
-
| `meta/catalog.parquet` | at load | `source`, `title`, `summary`, `description`, `status`, `status_reasons`, `domain`, `form` (when published), `license` (`spdx`, `tier`, `note`, `ship`), `contamination` (`level`, `benchmark`, `scope`; level `not scanned` reads as not known), `pii` (`level`, `evidence`), `files`, `bytes`, `files_without_size`, `unit`, `top_types`, `needs_auth`, `link_check` |
|
| 45 |
| `meta/sources.json` | at load | per source: `license_rows` (training and redistribution, rows per answer), `license` (`name`, `statement`, `attribution`, `url`), `by_ext`, `size_quantiles_upper_bytes` |
|
| 46 |
| `meta/coverage.json` | at load | `by_license.training_ok` (rows per answer) |
|
| 47 |
| `meta/batches.parquet` | at load | `source`, `batch`, `rows`, `status` |
|
|
@@ -75,7 +87,7 @@ the code. Maps from code to name, and nested `children`, are read too.
|
|
| 75 |
The filters scope the map, the source list and "Get the data"; the overview, the history and "Not included" describe the
|
| 76 |
whole index. The licence filters keep a source only when every one of its rows has that permission
|
| 77 |
(`meta/sources.json`, `license_rows`), so the counts, the SQL and the CSV agree without a per-row licence condition.
|
| 78 |
-
"Source size" is the total known size of a source.
|
| 79 |
|
| 80 |
## Files
|
| 81 |
|
|
@@ -109,6 +121,8 @@ whole index. The licence filters keep a source only when every one of its rows h
|
|
| 109 |
release, built from its own coverage (`meta/coverage.json`, `projections.bench.sources`: how many sources, and how
|
| 110 |
many task-ready sources, were compared with the benchmark list; `index_projection.bench_coverage_text`): the
|
| 111 |
projection fills it into the README, the deploy step into the `llms.txt` it pushes, from the index commit it reads.
|
|
|
|
|
|
|
| 112 |
|
| 113 |
Fonts: Inter (400 to 800) for text and numbers, Noto Sans SC for CJK, IBM Plex Mono for commands, from Google Fonts.
|
| 114 |
Motion (update highlights, sections fading in, cards lifting, view transitions) is off under `prefers-reduced-motion`.
|
|
@@ -122,6 +136,7 @@ writes one).
|
|
| 122 |
|
| 123 |
The data line pushes this folder to the Space when its sha256, or the commit of the index, differs from what the
|
| 124 |
Space's `portal.json` records, after the push has passed its outbound checks. It fills the benchmark sentence into
|
| 125 |
-
`llms.txt` and adds `first.json`: the first screen's
|
| 126 |
-
numbers (task-ready units and sources, units with an answer, raw rows, sources
|
|
|
|
| 127 |
computed with the same rule as `data.js`.
|
|
|
|
| 32 |
or conditional (`license_rows.redistribution_ok`), weighted by task-ready units, or by raw rows when a category has no
|
| 33 |
task-ready unit (then labelled "Shippable, raw").
|
| 34 |
|
| 35 |
+
## Size
|
| 36 |
+
|
| 37 |
+
The page leads with distinct content: per source the catalog column `distinct_bytes` (its `bytes` minus the sizes of
|
| 38 |
+
its rows that `meta/duplicates.parquet` lists as duplicates, from `meta/coverage.json` `projections.duplicate_bytes`,
|
| 39 |
+
which the daily snapshot records with every rebuild of that table), in total their sum. Referenced (`bytes`, the sum
|
| 40 |
+
of `size_bytes` over the rows, so content that several rows point to counts once per row) stands beside it, with the
|
| 41 |
+
rows that have no size (`files_without_size`), which are in neither number. The first screen and the note under the
|
| 42 |
+
source table use the words of the index README, section Size (`index_projection.size_text`); the source table has a
|
| 43 |
+
column for each. Archive members whose archive the same source also lists whole are not listed as duplicates, so they
|
| 44 |
+
are not subtracted. Without `distinct_bytes` (an index commit before it) the page shows referenced alone and says that
|
| 45 |
+
distinct content is not recorded yet.
|
| 46 |
+
|
| 47 |
## What it reads
|
| 48 |
|
| 49 |
The page asks the Hub for the latest commit of the dataset
|
|
|
|
| 53 |
|
| 54 |
| File | Read | Fields used |
|
| 55 |
|---|---|---|
|
| 56 |
+
| `meta/catalog.parquet` | at load | `source`, `title`, `summary`, `description`, `status`, `status_reasons`, `domain`, `form` (when published), `license` (`spdx`, `tier`, `note`, `ship`), `contamination` (`level`, `benchmark`, `scope`; level `not scanned` reads as not known), `pii` (`level`, `evidence`), `files`, `bytes`, `distinct_bytes` (when published), `files_without_size`, `unit`, `top_types`, `needs_auth`, `link_check` |
|
| 57 |
| `meta/sources.json` | at load | per source: `license_rows` (training and redistribution, rows per answer), `license` (`name`, `statement`, `attribution`, `url`), `by_ext`, `size_quantiles_upper_bytes` |
|
| 58 |
| `meta/coverage.json` | at load | `by_license.training_ok` (rows per answer) |
|
| 59 |
| `meta/batches.parquet` | at load | `source`, `batch`, `rows`, `status` |
|
|
|
|
| 87 |
The filters scope the map, the source list and "Get the data"; the overview, the history and "Not included" describe the
|
| 88 |
whole index. The licence filters keep a source only when every one of its rows has that permission
|
| 89 |
(`meta/sources.json`, `license_rows`), so the counts, the SQL and the CSV agree without a per-row licence condition.
|
| 90 |
+
"Source size" is the total known size of a source (referenced).
|
| 91 |
|
| 92 |
## Files
|
| 93 |
|
|
|
|
| 121 |
release, built from its own coverage (`meta/coverage.json`, `projections.bench.sources`: how many sources, and how
|
| 122 |
many task-ready sources, were compared with the benchmark list; `index_projection.bench_coverage_text`): the
|
| 123 |
projection fills it into the README, the deploy step into the `llms.txt` it pushes, from the index commit it reads.
|
| 124 |
+
The marker `{content_size}` takes the size sentences of the release (`index_projection.size_text`: distinct content,
|
| 125 |
+
referenced beside it, the rows without a size, the method), filled the same two ways.
|
| 126 |
|
| 127 |
Fonts: Inter (400 to 800) for text and numbers, Noto Sans SC for CJK, IBM Plex Mono for commands, from Google Fonts.
|
| 128 |
Motion (update highlights, sections fading in, cards lifting, view transitions) is off under `prefers-reduced-motion`.
|
|
|
|
| 136 |
|
| 137 |
The data line pushes this folder to the Space when its sha256, or the commit of the index, differs from what the
|
| 138 |
Space's `portal.json` records, after the push has passed its outbound checks. It fills the benchmark sentence into
|
| 139 |
+
`llms.txt` (and the size sentences) and adds `first.json`: the first screen's
|
| 140 |
+
numbers (task-ready units and sources, units with an answer, raw rows, sources, distinct content `distinct_bytes`, referenced
|
| 141 |
+
`bytes` and `unsized_rows`) from the commit main of the index points to,
|
| 142 |
computed with the same rule as `data.js`.
|
app.js
CHANGED
|
@@ -598,7 +598,8 @@ const COLS = [
|
|
| 598 |
{ key: 'domain', label: 'Category' },
|
| 599 |
{ key: 'form', label: 'Form' },
|
| 600 |
{ key: 'units', label: 'Units or rows', r: true },
|
| 601 |
-
{ key: '
|
|
|
|
| 602 |
{ key: 'tier', label: 'Licence' },
|
| 603 |
{ key: 'fit', label: 'Fit' },
|
| 604 |
];
|
|
@@ -610,6 +611,7 @@ function sortValue(s, k) {
|
|
| 610 |
case 'form': return formName(formKeyOf(s)).toLowerCase();
|
| 611 |
// task-ready units above raw rows (never compared as one count): a raw corpus has fewer than 1e12 rows
|
| 612 |
case 'units': return s.isTask ? 1e12 + s.readyUnits : s.rawRows;
|
|
|
|
| 613 |
case 'bytes': return s.bytes ?? -1;
|
| 614 |
case 'tier': return (TIER[s.tier] || s.tier).toLowerCase();
|
| 615 |
case 'fit': return fitScore(s);
|
|
@@ -617,6 +619,25 @@ function sortValue(s, k) {
|
|
| 617 |
}
|
| 618 |
}
|
| 619 |
const sizeText = (s) => (s.bytes == null ? 'Unknown' : fmtBytes(s.bytes));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 620 |
|
| 621 |
function renderSources(sel) {
|
| 622 |
const dir = F.dir === 'asc' ? 1 : -1;
|
|
@@ -654,13 +675,15 @@ function renderSources(sel) {
|
|
| 654 |
el('td', { class: 'r num', 'data-label': s.isTask ? 'Units' : 'Rows' }, s.isTask
|
| 655 |
? [fmtInt(s.readyUnits), el('span', { class: 'unit-word' }, s.readyUnits === 1 ? ' unit' : ' units')]
|
| 656 |
: el('span', { class: 'muted' }, fmtCompact(s.rawRows), el('span', { class: 'unit-word' }, ' raw rows'))),
|
| 657 |
-
el('td', { class: 'r num', 'data-label': '
|
|
|
|
| 658 |
el('td', { 'data-label': 'Licence' }, TIER[s.tier] || human(s.tier)),
|
| 659 |
el('td', { class: 'fit-cell' }, fitStrip(s))));
|
| 660 |
if (open) tbody.append(el('tr', { class: 'detail-row' }, el('td', { colspan: String(COLS.length), id: `d-${s.id}` }, detail(s))));
|
| 661 |
}
|
| 662 |
body.append(el('div', { class: 'list-key' }, el('span', { class: 'small' }, 'Fit:'), FIT.map((x) => el('span', { class: 'fit-name' }, icon(x.icon, { size: 14 }), x.label)), fitKey()));
|
| 663 |
body.append(el('table', { class: 'src-table' }, el('caption', { class: 'visually-hidden' }, 'Sources'), el('thead', {}, head), tbody));
|
|
|
|
| 664 |
if (list.length > FIRST_ROWS) {
|
| 665 |
body.append(el('p', { class: 'more' }, el('button', { type: 'button', class: 'link', 'aria-expanded': String(UI.showAll),
|
| 666 |
onclick: () => { UI.showAll = !UI.showAll; renderSources(selected()); } }, UI.showAll ? `First ${FIRST_ROWS}` : `All ${fmtInt(list.length)}`)));
|
|
@@ -766,8 +789,8 @@ function detail(s) {
|
|
| 766 |
el('span', { class: 'mini-title' }, 'Shipping'), stack(permit('redistribution_ok'), s.rows))));
|
| 767 |
// 8 size and units
|
| 768 |
const q = info.size_quantiles_upper_bytes || {};
|
| 769 |
-
dl.append(item('size', 'Size', el('span', { class: 'lic' }, el('b', {},
|
| 770 |
-
`${s.isTask ? `${plural(s.readyUnits, 'unit')} 路 ${plural(s.rows, 'file')}` : `${fmtInt(s.rawRows)} raw rows`}${s.rowsNoSize ? ` 路 ${fmtCompact(s.rowsNoSize)} unsized` : ''}`)),
|
| 771 |
q.p50 ? sizeStrip(q) : null));
|
| 772 |
// 9 one example file
|
| 773 |
let ex = null;
|
|
@@ -980,10 +1003,12 @@ function renderHistory() {
|
|
| 980 |
// ---- hero, request link, progress bar, reveal
|
| 981 |
function renderHeader() {
|
| 982 |
const S = IX.sources;
|
|
|
|
| 983 |
markFromIndex();
|
| 984 |
drawHero({
|
| 985 |
ready_units: sum(S, (s) => s.readyUnits), ready_sources: S.filter((s) => s.isTask).length,
|
| 986 |
answers: sum(S, (s) => s.answered), raw_rows: sum(S, (s) => s.rawRows), sources: S.length,
|
|
|
|
| 987 |
index: IX.sha, date: IX.date,
|
| 988 |
});
|
| 989 |
if (IX.overrides.catalog || IX.overrides.vocabulary) {
|
|
|
|
| 598 |
{ key: 'domain', label: 'Category' },
|
| 599 |
{ key: 'form', label: 'Form' },
|
| 600 |
{ key: 'units', label: 'Units or rows', r: true },
|
| 601 |
+
{ key: 'distinct', label: 'Distinct size', r: true },
|
| 602 |
+
{ key: 'bytes', label: 'Referenced size', r: true },
|
| 603 |
{ key: 'tier', label: 'Licence' },
|
| 604 |
{ key: 'fit', label: 'Fit' },
|
| 605 |
];
|
|
|
|
| 611 |
case 'form': return formName(formKeyOf(s)).toLowerCase();
|
| 612 |
// task-ready units above raw rows (never compared as one count): a raw corpus has fewer than 1e12 rows
|
| 613 |
case 'units': return s.isTask ? 1e12 + s.readyUnits : s.rawRows;
|
| 614 |
+
case 'distinct': return s.distinct ?? -1;
|
| 615 |
case 'bytes': return s.bytes ?? -1;
|
| 616 |
case 'tier': return (TIER[s.tier] || s.tier).toLowerCase();
|
| 617 |
case 'fit': return fitScore(s);
|
|
|
|
| 619 |
}
|
| 620 |
}
|
| 621 |
const sizeText = (s) => (s.bytes == null ? 'Unknown' : fmtBytes(s.bytes));
|
| 622 |
+
const distinctText = (s) => (s.distinct == null ? 'Unknown' : fmtBytes(s.distinct));
|
| 623 |
+
// #364: the same words as the index README, section Size (artpool/projection_templates/text.json, size_text)
|
| 624 |
+
const SIZE_METHOD = 'Distinct content is referenced minus the sizes of the rows meta/duplicates.parquet lists as duplicates '
|
| 625 |
+
+ '(the same natural key, a superseded snapshot, or the same sha256, sha1 or md5 as the copy that is kept), per source in '
|
| 626 |
+
+ 'the catalog column distinct_bytes; archive members whose archive the same source also lists whole are not listed there, '
|
| 627 |
+
+ 'so they are not subtracted.';
|
| 628 |
+
/** Distinct, referenced and rows without a size of the sources S: the rule of index_projection.size_totals. */
|
| 629 |
+
function sizeTotals(S) {
|
| 630 |
+
const known = S.filter((s) => s.distinct != null);
|
| 631 |
+
return { distinct: known.length ? sum(known, (s) => s.distinct) : null, referenced: sum(S, (s) => s.bytes || 0),
|
| 632 |
+
unsized: sum(S, (s) => s.rowsNoSize) };
|
| 633 |
+
}
|
| 634 |
+
function sizeNote(S) {
|
| 635 |
+
const t = sizeTotals(S);
|
| 636 |
+
const unsized = t.unsized ? ` ${fmtInt(t.unsized)} rows have no size and are ${t.distinct == null ? 'not in that number' : 'in neither number'}.` : '';
|
| 637 |
+
return t.distinct == null
|
| 638 |
+
? `Referenced: ${fmtBytes(t.referenced)}, the sum of size_bytes over the rows, so content that several rows point to counts once per row.${unsized} Distinct content (referenced minus the sizes of the rows meta/duplicates.parquet lists as duplicates) is not recorded for this release yet.`
|
| 639 |
+
: `Distinct content: ${fmtBytes(t.distinct)}. Referenced: ${fmtBytes(t.referenced)}, the sum of size_bytes over the rows, so content that several rows point to counts once per row.${unsized} ${SIZE_METHOD}`;
|
| 640 |
+
}
|
| 641 |
|
| 642 |
function renderSources(sel) {
|
| 643 |
const dir = F.dir === 'asc' ? 1 : -1;
|
|
|
|
| 675 |
el('td', { class: 'r num', 'data-label': s.isTask ? 'Units' : 'Rows' }, s.isTask
|
| 676 |
? [fmtInt(s.readyUnits), el('span', { class: 'unit-word' }, s.readyUnits === 1 ? ' unit' : ' units')]
|
| 677 |
: el('span', { class: 'muted' }, fmtCompact(s.rawRows), el('span', { class: 'unit-word' }, ' raw rows'))),
|
| 678 |
+
el('td', { class: 'r num', 'data-label': 'Distinct size' }, distinctText(s)),
|
| 679 |
+
el('td', { class: 'r num', 'data-label': 'Referenced size' }, sizeText(s)),
|
| 680 |
el('td', { 'data-label': 'Licence' }, TIER[s.tier] || human(s.tier)),
|
| 681 |
el('td', { class: 'fit-cell' }, fitStrip(s))));
|
| 682 |
if (open) tbody.append(el('tr', { class: 'detail-row' }, el('td', { colspan: String(COLS.length), id: `d-${s.id}` }, detail(s))));
|
| 683 |
}
|
| 684 |
body.append(el('div', { class: 'list-key' }, el('span', { class: 'small' }, 'Fit:'), FIT.map((x) => el('span', { class: 'fit-name' }, icon(x.icon, { size: 14 }), x.label)), fitKey()));
|
| 685 |
body.append(el('table', { class: 'src-table' }, el('caption', { class: 'visually-hidden' }, 'Sources'), el('thead', {}, head), tbody));
|
| 686 |
+
body.append(el('p', { class: 'small size-note' }, sizeNote(sel)));
|
| 687 |
if (list.length > FIRST_ROWS) {
|
| 688 |
body.append(el('p', { class: 'more' }, el('button', { type: 'button', class: 'link', 'aria-expanded': String(UI.showAll),
|
| 689 |
onclick: () => { UI.showAll = !UI.showAll; renderSources(selected()); } }, UI.showAll ? `First ${FIRST_ROWS}` : `All ${fmtInt(list.length)}`)));
|
|
|
|
| 789 |
el('span', { class: 'mini-title' }, 'Shipping'), stack(permit('redistribution_ok'), s.rows))));
|
| 790 |
// 8 size and units
|
| 791 |
const q = info.size_quantiles_upper_bytes || {};
|
| 792 |
+
dl.append(item('size', 'Size', el('span', { class: 'lic' }, el('b', {}, `${distinctText(s)} distinct`), el('span', { class: 'small' },
|
| 793 |
+
`${sizeText(s)} referenced (sum over rows) 路 ${s.isTask ? `${plural(s.readyUnits, 'unit')} 路 ${plural(s.rows, 'file')}` : `${fmtInt(s.rawRows)} raw rows`}${s.rowsNoSize ? ` 路 ${fmtCompact(s.rowsNoSize)} unsized` : ''}`)),
|
| 794 |
q.p50 ? sizeStrip(q) : null));
|
| 795 |
// 9 one example file
|
| 796 |
let ex = null;
|
|
|
|
| 1003 |
// ---- hero, request link, progress bar, reveal
|
| 1004 |
function renderHeader() {
|
| 1005 |
const S = IX.sources;
|
| 1006 |
+
const size = sizeTotals(S);
|
| 1007 |
markFromIndex();
|
| 1008 |
drawHero({
|
| 1009 |
ready_units: sum(S, (s) => s.readyUnits), ready_sources: S.filter((s) => s.isTask).length,
|
| 1010 |
answers: sum(S, (s) => s.answered), raw_rows: sum(S, (s) => s.rawRows), sources: S.length,
|
| 1011 |
+
distinct_bytes: size.distinct, bytes: size.referenced, unsized_rows: size.unsized,
|
| 1012 |
index: IX.sha, date: IX.date,
|
| 1013 |
});
|
| 1014 |
if (IX.overrides.catalog || IX.overrides.vocabulary) {
|
data.js
CHANGED
|
@@ -291,6 +291,8 @@ export async function loadIndex(params, onNote) {
|
|
| 291 |
pii: r.pii || {},
|
| 292 |
rows,
|
| 293 |
bytes: bytes && bytes > 0 ? bytes : null,
|
|
|
|
|
|
|
| 294 |
rowsNoSize: num(r.files_without_size) || 0,
|
| 295 |
topTypes: Array.isArray(r.top_types) ? r.top_types : r.top_types?.toArray?.() || [],
|
| 296 |
needsAuth: r.needs_auth || null,
|
|
|
|
| 291 |
pii: r.pii || {},
|
| 292 |
rows,
|
| 293 |
bytes: bytes && bytes > 0 ? bytes : null,
|
| 294 |
+
// distinct content (#364): bytes minus the sizes of the rows meta/duplicates.parquet lists; null when not recorded
|
| 295 |
+
distinct: has('distinct_bytes') ? num(r.distinct_bytes) : null,
|
| 296 |
rowsNoSize: num(r.files_without_size) || 0,
|
| 297 |
topTypes: Array.isArray(r.top_types) ? r.top_types : r.top_types?.toArray?.() || [],
|
| 298 |
needsAuth: r.needs_auth || null,
|
first.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
// The first screen, drawn before the index is read: the pictograms, and the hero from first.json (written by the deploy
|
| 2 |
// step from the index commit of the day). app.js redraws the hero from the index itself when it has read it; the numbers
|
| 3 |
// are the same when both name the same index commit (portal.py first_screen and data.js count alike).
|
| 4 |
-
import { fmtCompact, fmtInt } from './charts.js';
|
| 5 |
import { icon } from './icons.js';
|
| 6 |
|
| 7 |
const reduced = () => matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
@@ -39,11 +39,26 @@ function dateText(iso) {
|
|
| 39 |
return Number.isNaN(d.getTime()) ? iso.slice(0, 10) : d.toLocaleDateString('en-GB', { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' });
|
| 40 |
}
|
| 41 |
|
| 42 |
-
/**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
export function drawHero(v) {
|
| 44 |
if (!v) return;
|
| 45 |
setNumber(document.getElementById('hero-big'), 'ready_units', v.ready_units, fmtInt);
|
| 46 |
setNumber(document.getElementById('material-n'), 'material_units', v.ready_units, fmtInt);
|
|
|
|
| 47 |
for (const li of document.querySelectorAll('#hero-facts .fact-tile')) {
|
| 48 |
const k = li.dataset.k;
|
| 49 |
if (v[k] != null) setNumber(li.querySelector('.fact-num'), k, v[k], FACTS[k]);
|
|
|
|
| 1 |
// The first screen, drawn before the index is read: the pictograms, and the hero from first.json (written by the deploy
|
| 2 |
// step from the index commit of the day). app.js redraws the hero from the index itself when it has read it; the numbers
|
| 3 |
// are the same when both name the same index commit (portal.py first_screen and data.js count alike).
|
| 4 |
+
import { fmtBytes, fmtCompact, fmtInt } from './charts.js';
|
| 5 |
import { icon } from './icons.js';
|
| 6 |
|
| 7 |
const reduced = () => matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
|
|
| 39 |
return Number.isNaN(d.getTime()) ? iso.slice(0, 10) : d.toLocaleDateString('en-GB', { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' });
|
| 40 |
}
|
| 41 |
|
| 42 |
+
/** The size line (#364): distinct content first, referenced (the sum over rows) beside it, and the rows without a
|
| 43 |
+
* size, in neither number; the words of the index README, section Size. */
|
| 44 |
+
function drawSize(v) {
|
| 45 |
+
const node = document.getElementById('hero-size');
|
| 46 |
+
if (!node || v.bytes == null) return;
|
| 47 |
+
const known = v.distinct_bytes != null;
|
| 48 |
+
const big = document.createElement('b');
|
| 49 |
+
const unsized = v.unsized_rows ? ` 路 ${fmtInt(v.unsized_rows)} rows have no size and are ${known ? 'in neither number' : 'not in that number'}` : '';
|
| 50 |
+
node.replaceChildren(big, known
|
| 51 |
+
? ` distinct content 路 ${fmtBytes(v.bytes)} referenced, the sum of size_bytes over the rows${unsized}`
|
| 52 |
+
: ` referenced, the sum of size_bytes over the rows${unsized} 路 distinct content not recorded yet`);
|
| 53 |
+
setNumber(big, known ? 'distinct_bytes' : 'bytes', known ? v.distinct_bytes : v.bytes, fmtBytes);
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/** v: {ready_units, ready_sources, answers, raw_rows, sources, distinct_bytes, bytes, unsized_rows, index, date}. */
|
| 57 |
export function drawHero(v) {
|
| 58 |
if (!v) return;
|
| 59 |
setNumber(document.getElementById('hero-big'), 'ready_units', v.ready_units, fmtInt);
|
| 60 |
setNumber(document.getElementById('material-n'), 'material_units', v.ready_units, fmtInt);
|
| 61 |
+
drawSize(v);
|
| 62 |
for (const li of document.querySelectorAll('#hero-facts .fact-tile')) {
|
| 63 |
const k = li.dataset.k;
|
| 64 |
if (v[k] != null) setNumber(li.querySelector('.fact-num'), k, v[k], FACTS[k]);
|
first.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
{
|
| 2 |
"answers": 149,
|
|
|
|
| 3 |
"date": "2026-10-26",
|
|
|
|
| 4 |
"format": "portal-first/1",
|
| 5 |
"index": "196f3aadf1f8f9e08bed6304cb0e8247b958f42d",
|
| 6 |
"raw_rows": 1104762981,
|
| 7 |
"raw_sources": 89,
|
| 8 |
"ready_sources": 107,
|
| 9 |
"ready_units": 298,
|
| 10 |
-
"sources": 196
|
|
|
|
| 11 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"answers": 149,
|
| 3 |
+
"bytes": 4133949413374042,
|
| 4 |
"date": "2026-10-26",
|
| 5 |
+
"distinct_bytes": null,
|
| 6 |
"format": "portal-first/1",
|
| 7 |
"index": "196f3aadf1f8f9e08bed6304cb0e8247b958f42d",
|
| 8 |
"raw_rows": 1104762981,
|
| 9 |
"raw_sources": 89,
|
| 10 |
"ready_sources": 107,
|
| 11 |
"ready_units": 298,
|
| 12 |
+
"sources": 196,
|
| 13 |
+
"unsized_rows": 247031491
|
| 14 |
}
|
index.html
CHANGED
|
@@ -44,6 +44,7 @@
|
|
| 44 |
<span class="display" id="hero-big"><span class="sk sk-display"></span></span>
|
| 45 |
<span class="display-label">task-ready units</span>
|
| 46 |
</div>
|
|
|
|
| 47 |
<div class="hero-cta">
|
| 48 |
<a class="btn hero-btn" href="#material" data-icon="browse" data-size="18">Browse categories</a>
|
| 49 |
<a class="btn hero-btn ghost" href="#get" data-icon="get" data-size="18">Get the data</a>
|
|
|
|
| 44 |
<span class="display" id="hero-big"><span class="sk sk-display"></span></span>
|
| 45 |
<span class="display-label">task-ready units</span>
|
| 46 |
</div>
|
| 47 |
+
<p class="hero-size" id="hero-size"><span class="sk sk-line"></span></p>
|
| 48 |
<div class="hero-cta">
|
| 49 |
<a class="btn hero-btn" href="#material" data-icon="browse" data-size="18">Browse categories</a>
|
| 50 |
<a class="btn hero-btn ghost" href="#get" data-icon="get" data-size="18">Get the data</a>
|
llms.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
# Agentic Env Index: for agents
|
| 2 |
|
| 3 |
-
- Pick sources from `meta/catalog.parquet` (one row per source, about 50 KB; do not download `meta/` whole, `meta/duplicates.parquet` is about 4 GB). Columns: `source`; `domain`, a list of codes D1 to D10 or leaves such as D3.5, or `multi`, `unclassified`; `form`, such as `test-suites` or `spreadsheets-with-answers`; `units` (a unit is one test case or one workbook; a raw corpus has one unit per row), `answers` (units that have an answer, the expected results kept apart) and `files` (files of every role); `language` (the language codes of the rows' labels, what the default profile filters on; `not recorded` when a row has none); `contamination.level` (`not scanned` when no comparison is recorded for the source); `license.ship`; `pii.level`; `bytes`. The vocabulary is `meta/vocabulary.json`: every domain code with its name, what it covers and its parent, and every form with what it means.
|
|
|
|
| 4 |
- Task-ready sources are collections whose rows carry the roles unit, companion and answer (`answers` above 0, or `units` below `files`): each unit comes with its expected results. Every other source is a raw corpus to mine, one unit per row.
|
| 5 |
- Fetch with one command: `uv run https://huggingface.co/datasets/Battam/agentic-env-index/resolve/main/tools/fetch.py --domain D3 --form spreadsheets-with-answers --sample 3 --out ./data`. Without uv: `pip install duckdb`, download `tools/fetch.py` and run it with `python`. Select with `--source`, `--domain`, `--form`, `--tag`, `--ext`; `--sample N` takes N units per source, `--dry-run` only counts and writes `_meta/fetch_manifest.jsonl` with one line per file of the selection (status selected, removed with the criterion in removed_by, or not_taken), as many lines as the files the summary counts.
|
| 6 |
- It pins the commit it reads and prints it; pass `--revision <commit>` to get the same files later. A name that does not exist stops with exit code 2 and the closest names.
|
|
|
|
| 1 |
# Agentic Env Index: for agents
|
| 2 |
|
| 3 |
+
- Pick sources from `meta/catalog.parquet` (one row per source, about 50 KB; do not download `meta/` whole, `meta/duplicates.parquet` is about 4 GB). Columns: `source`; `domain`, a list of codes D1 to D10 or leaves such as D3.5, or `multi`, `unclassified`; `form`, such as `test-suites` or `spreadsheets-with-answers`; `units` (a unit is one test case or one workbook; a raw corpus has one unit per row), `answers` (units that have an answer, the expected results kept apart) and `files` (files of every role); `language` (the language codes of the rows' labels, what the default profile filters on; `not recorded` when a row has none); `contamination.level` (`not scanned` when no comparison is recorded for the source); `license.ship`; `pii.level`; `distinct_bytes` (distinct content) and `bytes` (referenced, the sum over rows). The vocabulary is `meta/vocabulary.json`: every domain code with its name, what it covers and its parent, and every form with what it means.
|
| 4 |
+
- Size of this release: Referenced: 4.13 PB, the sum of `size_bytes` over the rows, so content that several rows point to counts once per row. 247,031,491 rows have no size and are not in that number. Distinct content (referenced minus the sizes of the rows `meta/duplicates.parquet` lists as duplicates) is not recorded for this release yet.
|
| 5 |
- Task-ready sources are collections whose rows carry the roles unit, companion and answer (`answers` above 0, or `units` below `files`): each unit comes with its expected results. Every other source is a raw corpus to mine, one unit per row.
|
| 6 |
- Fetch with one command: `uv run https://huggingface.co/datasets/Battam/agentic-env-index/resolve/main/tools/fetch.py --domain D3 --form spreadsheets-with-answers --sample 3 --out ./data`. Without uv: `pip install duckdb`, download `tools/fetch.py` and run it with `python`. Select with `--source`, `--domain`, `--form`, `--tag`, `--ext`; `--sample N` takes N units per source, `--dry-run` only counts and writes `_meta/fetch_manifest.jsonl` with one line per file of the selection (status selected, removed with the criterion in removed_by, or not_taken), as many lines as the files the summary counts.
|
| 7 |
- It pins the commit it reads and prints it; pass `--revision <commit>` to get the same files later. A name that does not exist stops with exit code 2 and the closest names.
|
portal.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"commit": "
|
| 3 |
-
"digest": "
|
| 4 |
"files": 9,
|
| 5 |
"format": "portal-deploy/1",
|
| 6 |
"index": "196f3aadf1f8f9e08bed6304cb0e8247b958f42d"
|
|
|
|
| 1 |
{
|
| 2 |
+
"commit": "9da9e4d972bd4ba53d87cc51f55ff07b4e9a4292",
|
| 3 |
+
"digest": "ce9abec5ba6254a74f583f5bf95c7e6913d57846dca47abf57b284ff39049bf1",
|
| 4 |
"files": 9,
|
| 5 |
"format": "portal-deploy/1",
|
| 6 |
"index": "196f3aadf1f8f9e08bed6304cb0e8247b958f42d"
|
style.css
CHANGED
|
@@ -161,6 +161,9 @@ button.link { border: 0; background: none; color: var(--link); text-decoration:
|
|
| 161 |
.display { font-size: var(--fs-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: #fff;
|
| 162 |
font-variant-numeric: proportional-nums; min-width: 2ch; }
|
| 163 |
.display-label { font-size: var(--fs-sub); color: var(--on-dark-2); font-weight: 500; }
|
|
|
|
|
|
|
|
|
|
| 164 |
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
|
| 165 |
.hero .hero-btn { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; background: #fff; color: var(--hero-a); border-color: #fff; }
|
| 166 |
.hero .hero-btn:visited { color: var(--hero-a); }
|
|
|
|
| 161 |
.display { font-size: var(--fs-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: #fff;
|
| 162 |
font-variant-numeric: proportional-nums; min-width: 2ch; }
|
| 163 |
.display-label { font-size: var(--fs-sub); color: var(--on-dark-2); font-weight: 500; }
|
| 164 |
+
.hero-size { margin: calc(-1 * var(--s2)) 0 var(--s4); font-size: 15px; color: var(--on-dark-2); max-width: 64ch; }
|
| 165 |
+
.hero-size b { color: #fff; font-size: var(--fs-sub); font-weight: 700; font-variant-numeric: proportional-nums; }
|
| 166 |
+
.size-note { margin: var(--s2) 0 0; }
|
| 167 |
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
|
| 168 |
.hero .hero-btn { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; background: #fff; color: var(--hero-a); border-color: #fff; }
|
| 169 |
.hero .hero-btn:visited { color: var(--hero-a); }
|