Combine structural and semantic evidence
Dependency graphs capture coupling; embeddings add signals about class intent. An LLM synthesizes recommendations. Combining these views can expose disagreements that a single signal would miss.
Finding a better home for Java classes.
A Python research prototype combining dependency analysis, semantic embeddings, and LLM reasoning to recommend package relocations.
A class can compile correctly while belonging to the wrong package. The project explores how structural dependencies and semantic intent can reveal misplaced classes and suggest better destinations.
I contributed to a Python prototype combining dependency analysis, semantic embeddings, and an LLM module for class relocation recommendations. I applied static analysis and AI-assisted refactoring techniques to large Java codebases as part of a collaborative research internship.
Collaborative research, not sole authorship. The public repository documents the current tool; it may include additions beyond the original internship.
Conceptual flow, based on the CV and available project documentation. This is not a production topology or a live system.
Dependency graphs capture coupling; embeddings add signals about class intent. An LLM synthesizes recommendations. Combining these views can expose disagreements that a single signal would miss.
The public tool offers a Streamlit dashboard and CSV export. It also documents deterministic heuristic reasoning when Hugging Face model access is unavailable.
The repository describes synthetic toy-project benchmarks and a corruption test that deliberately misplaces classes. These test recovery from injected changes; they do not by themselves establish real-world architectural quality. No numeric benchmark is claimed here.
Read the repository documentationNext steps: compare structural-only, embedding-only, and combined variants; test on independently reviewed real Java systems; examine utility classes and cross-cutting concerns where package intent is ambiguous.
Have a challenging problem, a research idea, or a team I could contribute to? I’d love to hear about it.
haythem.idi@ensi-uma.tn