Skip to content
Merged
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
8 changes: 4 additions & 4 deletions src/review_classification/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main(
# ---------------------------------------------------------------------------


def _fetch_single(
def _fetch_repo(
repo_name: str,
start_date: str | None,
end_date: str | None,
Expand Down Expand Up @@ -95,7 +95,7 @@ def _fetch_single(
typer.echo(f"Successfully saved {len(prs)} PRs for {repo.owner}/{repo.name}.")


def _detect_single(
def _classify_repo(
repo_name: str,
threshold: float,
min_samples: int,
Expand Down Expand Up @@ -403,7 +403,7 @@ def fetch(
)

for target in targets:
_fetch_single(
_fetch_repo(
target.name,
target.collate_start,
target.collate_end,
Expand Down Expand Up @@ -516,7 +516,7 @@ def classify(
)

repo_results = [
_detect_single(
_classify_repo(
target.name,
target.threshold if target.threshold is not None else threshold,
target.min_samples if target.min_samples is not None else min_samples,
Expand Down
Loading