Skip to content

Commit

Permalink
move rust core pkg list
Browse files Browse the repository at this point in the history
  • Loading branch information
leondz committed Jan 20, 2025
1 parent 583ad88 commit f3902ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
File renamed without changes.
4 changes: 3 additions & 1 deletion garak/detectors/packagehallucination.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ class RustCrates(PackageHallucinationDetector):
def _load_package_list(self):
super()._load_package_list()
with open(
data_path / "pkghallu-rust_std_entries-1_84_0", "r", encoding="utf-8"
data_path / "packagehallucination" / "rust_std_entries-1_84_0",
"r",
encoding="utf-8",
) as rust_std_entries_file:
rust_std_entries = set(rust_std_entries_file.read().strip().split())
self.packages = (
Expand Down

0 comments on commit f3902ba

Please sign in to comment.