@tricoteuses/senat 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,7 @@ async function main() {
107
107
  // Disambiguation by first name prefix
108
108
  const targetFirstName = normalizeForComparison(row.senateur.prenom);
109
109
  const byFirstName = candidates.filter((c) => normalizeForComparison(c.prenom_usuel).startsWith(targetFirstName));
110
- let senator = null;
110
+ let senator;
111
111
  if (candidates.length === 1) {
112
112
  senator = candidates[0];
113
113
  }
@@ -127,7 +127,8 @@ async function main() {
127
127
  // Deduplication
128
128
  const nName = normalizeForComparison(row.collaborateur.nom);
129
129
  const nFirstName = normalizeForComparison(row.collaborateur.prenom);
130
- if (!collabs.some((c) => normalizeForComparison(c.nom) === nName && normalizeForComparison(c.prenom) === nFirstName)) {
130
+ if (!collabs.some((c) => normalizeForComparison(c.nom) === nName &&
131
+ normalizeForComparison(c.prenom) === nFirstName)) {
131
132
  collabs.push({
132
133
  civilite: row.collaborateur.civilite,
133
134
  nom: row.collaborateur.nom,
@@ -157,7 +158,9 @@ async function main() {
157
158
  }
158
159
  console.log(`${nbEnriched} senator(s) enriched with their collaborators`);
159
160
  if (unresolvedNames.size > 0) {
160
- console.warn(`${nbUnresolved} PDF senator(s) could not be matched: ${[...unresolvedNames].slice(0, 10).join(", ")}${unresolvedNames.size > 10 ? "…" : ""}`);
161
+ const shown = [...unresolvedNames].slice(0, 10).join(", ");
162
+ const ellipsis = unresolvedNames.size > 10 ? "…" : "";
163
+ console.warn(`${nbUnresolved} PDF senator(s) could not be matched: ${shown}${ellipsis}`);
161
164
  }
162
165
  }
163
166
  main().catch((error) => {
@@ -306,7 +306,7 @@ function cmpBestOverall(a, b) {
306
306
  return bMar - aMar;
307
307
  return 0;
308
308
  }
309
- describe("video matching LIVE benchmark (gold) — HIT/WRONG/MISS", () => {
309
+ describe.skip("video matching LIVE benchmark (gold) — HIT/WRONG/MISS", () => {
310
310
  it("grid search (target WRONG=0, maximize HIT)", async () => {
311
311
  const gold = await readJson(GOLD_PATH);
312
312
  // Prefetch + features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/senat",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Handle French Sénat's open data",
5
5
  "keywords": [
6
6
  "France",