Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codesectools/datasets/BenchmarkJava/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BenchmarkJava(PrebuiltFileDataset):
license_url (str): A URL to the full text of the license.
build_command (str): The command to build the Java project.
prebuilt_expected (tuple): A tuple defining the path and glob pattern for expected build artifacts.
artefacts_arg (str): The argument to specify the location of build artifacts for SAST tools.
artifacts_arg (str): The argument to specify the location of build artifacts for SAST tools.

"""

Expand All @@ -67,7 +67,7 @@ class BenchmarkJava(PrebuiltFileDataset):

build_command = "mvn clean compile"
prebuilt_expected = (Path("target/classes/org/owasp/benchmark/testcode"), "*.class")
artefacts_arg = "."
artifacts_arg = "."

def __init__(self, lang: None | str = None) -> None:
"""Initialize the BenchmarkJava dataset.
Expand Down
2 changes: 1 addition & 1 deletion codesectools/datasets/JulietTestSuiteC/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class JulietTestSuiteC(PrebuiltFileDataset):

build_command = f"bear -- make -C ./C individuals -j{CPU_COUNT}"
prebuilt_expected = (Path("."), "compile_commands.json")
artefacts_arg = "compile_commands.json"
artifacts_arg = "compile_commands.json"

def __init__(self, lang: None | str = None) -> None:
"""Initialize the JulietTestSuiteC dataset.
Expand Down
4 changes: 2 additions & 2 deletions codesectools/datasets/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ class PrebuiltDatasetMixin:
build_command (str): The command required to build the dataset.
prebuilt_expected (tuple[Path, str]): A tuple containing the path and glob pattern
to find the built artifacts.
artefacts_arg (str): The argument to pass to the SAST tool command template.
artifacts_arg (str): The argument to pass to the SAST tool command template.

"""

build_command: str
prebuilt_expected: tuple[Path, str]
artefacts_arg: str
artifacts_arg: str

def is_built(self) -> bool:
"""Check if the dataset has been built."""
Expand Down
Loading