Spaces:
Running
Running
data-line commited on
Commit ·
8aee0db
1
Parent(s): 627a3d6
portal: catalog page of repository commit 4e588544f03c
Browse filesFiles of catalog/portal/ (9), digest 9940c2bae94f88c244c22da5520ad96a9bb281a3c833fe13e9403ccc5f5a5e07.
- README.md +1 -1
- app.js +1 -2
- data.js +0 -15
- first.json +2 -2
- portal.json +3 -3
README.md
CHANGED
|
@@ -53,7 +53,7 @@ without a redeploy.
|
|
| 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`
|
| 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` |
|
|
|
|
| 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` |
|
| 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` |
|
app.js
CHANGED
|
@@ -765,8 +765,7 @@ function detail(s) {
|
|
| 765 |
const origins = [...new Set(metas.map((m) => m.pool_source?.origin).filter(Boolean))];
|
| 766 |
const hosts = [...new Set(rows.map((r) => hostOf(r.uri)).filter(Boolean))];
|
| 767 |
const from = origins.length ? origins : hosts;
|
| 768 |
-
dl.append(item('pin', 'Comes from', st.sample === 'loading' ? '…' : from.length ? el('span', { class: 'chips' }, from.slice(0, 3).map((h) => el('span', { class: 'chip mono-chip' }, h))) : 'Not recorded'
|
| 769 |
-
s.link.kind === 'ok' || s.link.kind === 'partial' ? el('span', { class: `small ${s.link.kind === 'partial' ? 'problem-text' : ''}` }, ` · links ${fmtPct(s.link.ok, s.link.total)} reachable`) : null));
|
| 770 |
// 4 self-contained or companions
|
| 771 |
const comps = [...new Set(rows.filter((r, i) => metas[i].role === 'companion').map((r) => r.uri.split('/').pop()))];
|
| 772 |
dl.append(item('layers', 'Stands alone', s.isTask
|
|
|
|
| 765 |
const origins = [...new Set(metas.map((m) => m.pool_source?.origin).filter(Boolean))];
|
| 766 |
const hosts = [...new Set(rows.map((r) => hostOf(r.uri)).filter(Boolean))];
|
| 767 |
const from = origins.length ? origins : hosts;
|
| 768 |
+
dl.append(item('pin', 'Comes from', st.sample === 'loading' ? '…' : from.length ? el('span', { class: 'chips' }, from.slice(0, 3).map((h) => el('span', { class: 'chip mono-chip' }, h))) : 'Not recorded'));
|
|
|
|
| 769 |
// 4 self-contained or companions
|
| 770 |
const comps = [...new Set(rows.filter((r, i) => metas[i].role === 'companion').map((r) => r.uri.split('/').pop()))];
|
| 771 |
dl.append(item('layers', 'Stands alone', s.isTask
|
data.js
CHANGED
|
@@ -175,19 +175,6 @@ export function parseRequirements(md) {
|
|
| 175 |
return out;
|
| 176 |
}
|
| 177 |
|
| 178 |
-
const LINK_RE = /^(\d{4}-\d{2}-\d{2}): ([\d,]+) of ([\d,]+) reachable/;
|
| 179 |
-
function linkOf(text) {
|
| 180 |
-
if (!text) return { kind: 'unchecked' };
|
| 181 |
-
const m = String(text).match(LINK_RE);
|
| 182 |
-
if (m) {
|
| 183 |
-
const ok = intOf(m[2]);
|
| 184 |
-
const total = intOf(m[3]);
|
| 185 |
-
return { kind: ok >= total ? 'ok' : 'partial', ok, total, date: m[1] };
|
| 186 |
-
}
|
| 187 |
-
if (/^needs /.test(text)) return { kind: 'login', text: String(text) };
|
| 188 |
-
return { kind: 'other', text: String(text) };
|
| 189 |
-
}
|
| 190 |
-
|
| 191 |
/** What every row of a source allows, from sources.json license_rows: 'yes' (every row), 'cond' (yes or
|
| 192 |
* conditional for every row) or 'no' (some rows are no or unknown). */
|
| 193 |
function permission(lr) {
|
|
@@ -296,8 +283,6 @@ export async function loadIndex(params, onNote) {
|
|
| 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,
|
| 299 |
-
link: linkOf(r.link_check),
|
| 300 |
-
linkText: r.link_check || null,
|
| 301 |
train: permission(info.license_rows?.training_ok),
|
| 302 |
redist: permission(info.license_rows?.redistribution_ok),
|
| 303 |
info,
|
|
|
|
| 175 |
return out;
|
| 176 |
}
|
| 177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
/** What every row of a source allows, from sources.json license_rows: 'yes' (every row), 'cond' (yes or
|
| 179 |
* conditional for every row) or 'no' (some rows are no or unknown). */
|
| 180 |
function permission(lr) {
|
|
|
|
| 283 |
rowsNoSize: num(r.files_without_size) || 0,
|
| 284 |
topTypes: Array.isArray(r.top_types) ? r.top_types : r.top_types?.toArray?.() || [],
|
| 285 |
needsAuth: r.needs_auth || null,
|
|
|
|
|
|
|
| 286 |
train: permission(info.license_rows?.training_ok),
|
| 287 |
redist: permission(info.license_rows?.redistribution_ok),
|
| 288 |
info,
|
first.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
{
|
| 2 |
"answers": 149,
|
| 3 |
"bytes": 4133949413374042,
|
| 4 |
-
"date": "2026-10-
|
| 5 |
"distinct_bytes": null,
|
| 6 |
"format": "portal-first/1",
|
| 7 |
-
"index": "
|
| 8 |
"raw_rows": 1104762981,
|
| 9 |
"raw_sources": 89,
|
| 10 |
"ready_sources": 107,
|
|
|
|
| 1 |
{
|
| 2 |
"answers": 149,
|
| 3 |
"bytes": 4133949413374042,
|
| 4 |
+
"date": "2026-10-27",
|
| 5 |
"distinct_bytes": null,
|
| 6 |
"format": "portal-first/1",
|
| 7 |
+
"index": "eb1f478b631569050a902478b125123cbd80f370",
|
| 8 |
"raw_rows": 1104762981,
|
| 9 |
"raw_sources": 89,
|
| 10 |
"ready_sources": 107,
|
portal.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"commit": "
|
| 3 |
-
"digest": "
|
| 4 |
"files": 9,
|
| 5 |
"format": "portal-deploy/1",
|
| 6 |
-
"index": "
|
| 7 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"commit": "4e588544f03c1e534db1b5824f8bda8545ac9bcc",
|
| 3 |
+
"digest": "9940c2bae94f88c244c22da5520ad96a9bb281a3c833fe13e9403ccc5f5a5e07",
|
| 4 |
"files": 9,
|
| 5 |
"format": "portal-deploy/1",
|
| 6 |
+
"index": "eb1f478b631569050a902478b125123cbd80f370"
|
| 7 |
}
|