greenmining 1.2.1__py3-none-any.whl → 1.2.3__py3-none-any.whl

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/__init__.py CHANGED
@@ -8,7 +8,7 @@ from greenmining.gsf_patterns import (
8
8
  is_green_aware,
9
9
  )
10
10
 
11
- __version__ = "1.2.1"
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: greenmining
3
- Version: 1.2.1
3
+ Version: 1.2.3
4
4
  Summary: An empirical Python library for Mining Software Repositories (MSR) in Green IT research
5
5
  Author-email: Adam Bouafia <a.bouafia@student.vu.nl>
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- greenmining/__init__.py,sha256=W-CMUfo3U7pWBGAKtwT5XwjcMxbKjF5c42ViFFsOBS4,4096
1
+ greenmining/__init__.py,sha256=2giUY7aYzaq81FQ1t2GsJAvuIMmBK9VYkPW63c0FbCw,4165
2
2
  greenmining/__main__.py,sha256=NYOVS7D4w2XDLn6SyXHXPKE5GrNGOeoWSTb_KazgK5c,590
3
3
  greenmining/gsf_patterns.py,sha256=UvNJPY3HlAx1SicwUqci40TlLg8lCL0tszSOH4haxQs,55921
4
4
  greenmining/utils.py,sha256=-dnLUw9taCzvQ2dk6uc66GAohOFiXJFKs9TLSEPk5kM,2893
@@ -25,10 +25,10 @@ greenmining/services/commit_extractor.py,sha256=qBM9QpGzPZRmGMFufJ6gP8eWIuufTowL
25
25
  greenmining/services/data_aggregator.py,sha256=BU_HUb-8c0n0sa_7VZRB8jIVnaVhRLf-E6KA4ASh-08,19427
26
26
  greenmining/services/data_analyzer.py,sha256=0XqW-slrnt7RotrHDweOqKtoN8XIA7y6p7s2Jau6cMg,7431
27
27
  greenmining/services/github_graphql_fetcher.py,sha256=ZklXdEAc60KeFL83zRYMwW_-2OwMKpfPY7Wrifl0D50,11539
28
- greenmining/services/local_repo_analyzer.py,sha256=kdqN9O7GlmOs1_H1iNni1HEcCzF9bBCPeP3wMStGe5Q,25306
28
+ greenmining/services/local_repo_analyzer.py,sha256=RfhIdI6GBmHndBl1zZQwUlEuVIO55PILIE_ShP6eQtA,25668
29
29
  greenmining/services/reports.py,sha256=nhJuYiA5tPD_9AjtgSLEnrpW3x15sZXrwIxpxQEBbh0,23219
30
- greenmining-1.2.1.dist-info/licenses/LICENSE,sha256=M7ma3JHGeiIZIs3ea0HTcFl_wLFPX2NZElUliYs4bCA,1083
31
- greenmining-1.2.1.dist-info/METADATA,sha256=ZmLnx5P5jN8XpRGgfx_gVzykWvUZdsHrTEpg3Plh9-A,10522
32
- greenmining-1.2.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
33
- greenmining-1.2.1.dist-info/top_level.txt,sha256=nreXgXxZIWI-42yQknQ0HXtUrFnzZ8N1ra4Mdy2KcsI,12
34
- greenmining-1.2.1.dist-info/RECORD,,
30
+ greenmining-1.2.3.dist-info/licenses/LICENSE,sha256=M7ma3JHGeiIZIs3ea0HTcFl_wLFPX2NZElUliYs4bCA,1083
31
+ greenmining-1.2.3.dist-info/METADATA,sha256=33ItQrNW_1q2J4iuefPKJlL4uUZmxO4WKP8ZmN9ZnUg,10522
32
+ greenmining-1.2.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
33
+ greenmining-1.2.3.dist-info/top_level.txt,sha256=nreXgXxZIWI-42yQknQ0HXtUrFnzZ8N1ra4Mdy2KcsI,12
34
+ greenmining-1.2.3.dist-info/RECORD,,