From 49888002b4a5efeccca31f222df03dd2887aaab8 Mon Sep 17 00:00:00 2001 From: William Jeynes Date: Wed, 8 Apr 2026 21:05:45 +0100 Subject: [PATCH] Move frontend to correct directory --- graphviz/{processing => }/frontend/.gitignore | 0 graphviz/{processing => }/frontend/package-lock.json | 0 graphviz/{processing => }/frontend/package.json | 0 graphviz/{processing => }/frontend/src/App.css | 0 graphviz/{processing => }/frontend/src/App.tsx | 2 +- graphviz/{processing => }/frontend/src/index.html | 0 graphviz/{processing => }/frontend/src/index.tsx | 0 graphviz/{processing => }/frontend/tsconfig.json | 0 graphviz/processing/create_clusters.py | 2 +- 9 files changed, 2 insertions(+), 2 deletions(-) rename graphviz/{processing => }/frontend/.gitignore (100%) rename graphviz/{processing => }/frontend/package-lock.json (100%) rename graphviz/{processing => }/frontend/package.json (100%) rename graphviz/{processing => }/frontend/src/App.css (100%) rename graphviz/{processing => }/frontend/src/App.tsx (98%) rename graphviz/{processing => }/frontend/src/index.html (100%) rename graphviz/{processing => }/frontend/src/index.tsx (100%) rename graphviz/{processing => }/frontend/tsconfig.json (100%) diff --git a/graphviz/processing/frontend/.gitignore b/graphviz/frontend/.gitignore similarity index 100% rename from graphviz/processing/frontend/.gitignore rename to graphviz/frontend/.gitignore diff --git a/graphviz/processing/frontend/package-lock.json b/graphviz/frontend/package-lock.json similarity index 100% rename from graphviz/processing/frontend/package-lock.json rename to graphviz/frontend/package-lock.json diff --git a/graphviz/processing/frontend/package.json b/graphviz/frontend/package.json similarity index 100% rename from graphviz/processing/frontend/package.json rename to graphviz/frontend/package.json diff --git a/graphviz/processing/frontend/src/App.css b/graphviz/frontend/src/App.css similarity index 100% rename from graphviz/processing/frontend/src/App.css rename to graphviz/frontend/src/App.css diff --git a/graphviz/processing/frontend/src/App.tsx b/graphviz/frontend/src/App.tsx similarity index 98% rename from graphviz/processing/frontend/src/App.tsx rename to graphviz/frontend/src/App.tsx index 0a8cb62..52daa87 100644 --- a/graphviz/processing/frontend/src/App.tsx +++ b/graphviz/frontend/src/App.tsx @@ -67,7 +67,7 @@ export function App() { ctx.arc(node.x, node.y, 2*node.members.length , 0, 2 * Math.PI, false); ctx.fill(); - if (node.members.length > 2) { + if (node.members.length >= 2) { ctx.fillStyle = "black"; ctx.fillText(node.label, node.x + 12, node.y + 4); } diff --git a/graphviz/processing/frontend/src/index.html b/graphviz/frontend/src/index.html similarity index 100% rename from graphviz/processing/frontend/src/index.html rename to graphviz/frontend/src/index.html diff --git a/graphviz/processing/frontend/src/index.tsx b/graphviz/frontend/src/index.tsx similarity index 100% rename from graphviz/processing/frontend/src/index.tsx rename to graphviz/frontend/src/index.tsx diff --git a/graphviz/processing/frontend/tsconfig.json b/graphviz/frontend/tsconfig.json similarity index 100% rename from graphviz/processing/frontend/tsconfig.json rename to graphviz/frontend/tsconfig.json diff --git a/graphviz/processing/create_clusters.py b/graphviz/processing/create_clusters.py index 61b666a..5d4d098 100644 --- a/graphviz/processing/create_clusters.py +++ b/graphviz/processing/create_clusters.py @@ -13,7 +13,7 @@ from tqdm import tqdm INPUT_CSV = "../../data/dataset-dev.csv" OUTPUT_JSON = "../../data/clustered_output.json" MODEL_NAME = "all-MiniLM-L6-v2" -SIMILARITY_THRESHOLD = 0.55 +SIMILARITY_THRESHOLD = 0.65 def generate_guid(): return str(uuid.uuid4())