From 510ca58500e92ad65a15921b699552e977b28c5f Mon Sep 17 00:00:00 2001 From: Zaki-Mohd Date: Wed, 12 Feb 2025 11:38:00 +0530 Subject: [PATCH] update: app.py add: test.R --- parallel/app.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/parallel/app.py b/parallel/app.py index c5e8487..8018d72 100644 --- a/parallel/app.py +++ b/parallel/app.py @@ -65,7 +65,6 @@ def analyze_code(): if not code: return Response("No code provided.", status=400, mimetype='text/plain') - # Create a ThreadPoolExecutor to run analyses in parallel with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor: # Create partial functions with the code parameter analysis_functions = [ @@ -89,7 +88,6 @@ def analyze_code(): "complexity": "Complexity analysis failed" } - # Collect results as they complete for future in concurrent.futures.as_completed(future_to_analysis): analysis_name = future_to_analysis[future] try: @@ -97,7 +95,6 @@ def analyze_code(): except Exception as e: results[analysis_name] = f"Error in {analysis_name}: {str(e)}" - # Format the response as HTML response_html = f"""