Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
47 lines (47 loc) · 2.78 KB
/
Copy pathpackage.json
File metadata and controls
47 lines (47 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"name": "@webfuse-com/hashloc",
"version": "0.1.0",
"author": "Thassilo M. Schiepanski",
"type": "module",
"main": "./dist.lib/api.js",
"types": "./dist.lib/types/api.d.ts",
"scripts": {
"prepare": "husky",
"clean": "rm -rf ./dist.lib/ && rm -rf ./dist.browser/",
"build:lib": "npx esbuild \"./src/**/*.ts\" --outdir=./dist.lib/ --outbase=./src --platform=node --format=esm --target=es2022 --packages=external",
"build:lib:watch": "npm run build:lib -- --watch",
"build:browser": "npx esbuild ./src/api.browser.ts --outfile=./dist.browser/HashLoc.js --bundle",
"build:browser:watch": "npm run build:browser -- --watch",
"build:types": "npx tsc",
"_build": "npm run build:lib && npm run build:types && npm run build:browser",
"build": "npm run clean && npm run _build",
"lint": "npx eslint ./src/*",
"lint:fix": "npm run lint -- --fix",
"test:unit": "node --test \"test/unit/*.test.js\"",
"test:end-to-end": "node --test \"test/end-to-end/*.test.js\"",
"test": "npm run test:unit && npm run test:end-to-end",
"test:eval": "cd eval && python -m pytest -q tests",
"eval": "PYTHONPATH=eval python -m eval",
"eval:accuracy": "npm run eval -- --modes 1,firstlast --name accuracy",
"eval:accuracy:no-spatial": "npm run eval -- --methods similo,similo_pp,similo_pp_min,tag_text,idxpath,xpath,id --modes 1,firstlast --no-spatial --name nospatial",
"eval:decomposition": "npm run eval -- --methods similo_pp,similo --modes 1,firstlast --weights default,similopp,fitted --uncompressed --name decomposition",
"eval:drift": "npm run eval -- --methods similo_pp,similo --modes 1,3,6,9,12,firstlast --name drift",
"eval:crossval": "npm run eval -- --methods similo_pp,similo --crossval --name crossval",
"eval:sketches": "npm run eval -- --methods none --modes 1,firstlast --sketches minhash:4,minhash:2,minhash:1,simhash:1 --name sketches",
"eval:ablation": "npm run eval -- --methods none --profiles L --ablation L --modes 1,firstlast --name ablation",
"eval:buckets": "npm run eval -- --methods none --modes 1,firstlast --lookup buckets:1,buckets:2,buckets:3 --name buckets",
"eval:all": "npm run eval:accuracy && npm run eval:decomposition && npm run eval:drift && npm run eval:crossval && npm run eval:sketches && npm run eval:ablation",
"eval:rho": "PYTHONPATH=eval python eval/rho/dump_pairs.py dataset eval/results/rho-pairs.jsonl && node eval/rho/rho.mjs eval/results/rho-pairs.jsonl | tee eval/results/rho.txt",
"eval:_summarize": "PYTHONPATH=eval python -m _summarize --date"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/jsdom": "^28.0.1",
"esbuild": "^0.25.4",
"eslint": "^10.2.1",
"husky": "^9.1.7",
"jsdom": "^30.1.2",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.1"
}
}