greenmining 1.2.1__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {greenmining-1.2.1/greenmining.egg-info → greenmining-1.2.3}/PKG-INFO +1 -1
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/__init__.py +3 -1
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/services/local_repo_analyzer.py +6 -0
- {greenmining-1.2.1 → greenmining-1.2.3/greenmining.egg-info}/PKG-INFO +1 -1
- {greenmining-1.2.1 → greenmining-1.2.3}/pyproject.toml +1 -1
- {greenmining-1.2.1 → greenmining-1.2.3}/CHANGELOG.md +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/LICENSE +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/MANIFEST.in +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/README.md +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/__main__.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/analyzers/__init__.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/analyzers/code_diff_analyzer.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/analyzers/metrics_power_correlator.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/analyzers/statistical_analyzer.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/analyzers/temporal_analyzer.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/controllers/__init__.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/controllers/repository_controller.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/energy/__init__.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/energy/base.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/energy/carbon_reporter.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/energy/codecarbon_meter.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/energy/cpu_meter.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/energy/rapl.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/gsf_patterns.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/models/__init__.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/models/aggregated_stats.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/models/analysis_result.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/models/commit.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/models/repository.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/services/__init__.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/services/commit_extractor.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/services/data_aggregator.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/services/data_analyzer.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/services/github_graphql_fetcher.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/services/reports.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining/utils.py +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining.egg-info/SOURCES.txt +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining.egg-info/dependency_links.txt +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining.egg-info/requires.txt +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/greenmining.egg-info/top_level.txt +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/setup.cfg +0 -0
- {greenmining-1.2.1 → greenmining-1.2.3}/setup.py +0 -0
|
@@ -8,7 +8,7 @@ from greenmining.gsf_patterns import (
|
|
|
8
8
|
is_green_aware,
|
|
9
9
|
)
|
|
10
10
|
|
|
11
|
-
__version__ = "1.2.
|
|
11
|
+
__version__ = "1.2.3"
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def fetch_repositories(
|
|
@@ -72,6 +72,7 @@ def analyze_repositories(
|
|
|
72
72
|
github_token: str = None,
|
|
73
73
|
since_date: str = None,
|
|
74
74
|
to_date: str = None,
|
|
75
|
+
cleanup_after: bool = True,
|
|
75
76
|
):
|
|
76
77
|
# Analyze multiple repositories from URLs.
|
|
77
78
|
# Args:
|
|
@@ -107,6 +108,7 @@ def analyze_repositories(
|
|
|
107
108
|
include_source_code=include_source_code,
|
|
108
109
|
ssh_key_path=ssh_key_path,
|
|
109
110
|
github_token=github_token,
|
|
111
|
+
cleanup_after=cleanup_after,
|
|
110
112
|
**kwargs,
|
|
111
113
|
)
|
|
112
114
|
|
|
@@ -639,6 +639,9 @@ class LocalRepoAnalyzer:
|
|
|
639
639
|
colored_print(f"\n[{i}/{len(urls)}] Processing repository...", "cyan")
|
|
640
640
|
try:
|
|
641
641
|
result = self.analyze_repository(url)
|
|
642
|
+
if result.total_commits == 0:
|
|
643
|
+
colored_print(f" Skipping {result.name}: no commits in date range", "yellow")
|
|
644
|
+
continue
|
|
642
645
|
results.append(result)
|
|
643
646
|
except Exception as e:
|
|
644
647
|
colored_print(f" Error analyzing {url}: {e}", "red")
|
|
@@ -656,6 +659,9 @@ class LocalRepoAnalyzer:
|
|
|
656
659
|
url = future_to_url[future]
|
|
657
660
|
try:
|
|
658
661
|
result = future.result()
|
|
662
|
+
if result.total_commits == 0:
|
|
663
|
+
colored_print(f" Skipping {result.name}: no commits in date range", "yellow")
|
|
664
|
+
continue
|
|
659
665
|
results.append(result)
|
|
660
666
|
colored_print(f" Completed: {result.name}", "green")
|
|
661
667
|
except Exception as e:
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "greenmining"
|
|
7
|
-
version = "1.2.
|
|
7
|
+
version = "1.2.3"
|
|
8
8
|
description = "An empirical Python library for Mining Software Repositories (MSR) in Green IT research"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|