codelion commited on
Commit
f40f417
·
verified ·
1 Parent(s): 8171ac6

Update github_repo_analyzer.py

Browse files
Files changed (1) hide show
  1. github_repo_analyzer.py +1 -2
github_repo_analyzer.py CHANGED
@@ -191,7 +191,7 @@ def parse_llm_response(response):
191
  json_str = response[start:end]
192
  return json.loads(json_str)
193
  except (ValueError, json.JSONDecodeError):
194
- print(f"Warning: Failed to parse LLM response as JSON. Response: {response[:100]}...")
195
  return []
196
 
197
  def cluster_and_filter_items(items, n_clusters=5, n_items=10):
@@ -609,5 +609,4 @@ def generate_report(repo_info, code_analysis, issues_analysis, pr_analysis, fina
609
  report += "No structured pull requests analysis available.\n"
610
 
611
  report += f"\n## Synthesis and Recommendations\n{final_analysis}\n"
612
- print(report)
613
  return report
 
191
  json_str = response[start:end]
192
  return json.loads(json_str)
193
  except (ValueError, json.JSONDecodeError):
194
+ print(f"Warning: Failed to parse LLM response as JSON. Response: {response}...")
195
  return []
196
 
197
  def cluster_and_filter_items(items, n_clusters=5, n_items=10):
 
609
  report += "No structured pull requests analysis available.\n"
610
 
611
  report += f"\n## Synthesis and Recommendations\n{final_analysis}\n"
 
612
  return report