🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/tests/integration/test_mle_star_integration_fixed.py

This commit is contained in:
rUv committed 2025-08-06 01:55:03 +00:00
1 parent d8da815b69
commit 375fdcc47e
9 files changed
+128

No files matched your search

@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-015407", "file": "/workspaces/claude-code-flow/benchmark/GITHUB_ISSUE_599_UPDATE.md", "timestamp": "2025-08-06T01:54:07Z", "type": "pre-edit", "original_branch": "alpha-88"}
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-015409", "file": "/workspaces/claude-code-flow/benchmark/GITHUB_ISSUE_599_UPDATE.md", "timestamp": "2025-08-06T01:54:09Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/system-metrics.json | 204 +++++ benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/system-metrics.json | 14 + benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754445190.json | 1 + benchmark/.claude/checkpoints/1754445191.json | 1 + benchmark/GITHUB_ISSUE_599_UPDATE.md | 166 ++++ benchmark/ci_performance_integration.py | 754 ----------------- benchmark/compare_optimizations.py | 172 ---- benchmark/continuous_performance_monitor.py | 673 --------------- benchmark/demo_comprehensive.py | 233 ----- benchmark/demo_mle_star.py | 152 ---- benchmark/demo_real_benchmark.py | 219 ----- benchmark/demo_reports/benchmark_summary.json | 89 -- ...-mesh_54f77f50-5c84-4bee-a929-207b1194ac7d.json | 129 --- ...-mesh_826e8b63-4f5e-4aea-bd83-04b4496cfc4e.json | 129 --- ...-mesh_bdb0f91c-4de0-4459-aacd-702df5b8dd3d.json | 129 --- ...lized_0ccd161d-5c63-4117-a8b2-59db5a9dda48.json | 131 --- ...lized_b7461443-088c-4cb3-a90d-5936cc4c9891.json | 131 --- ...lized_b7e1dad2-453d-4983-8f6f-14f7be7dc716.json | 131 --- ...hical_62f546df-f93c-468a-b4e7-cf665a791aaf.json | 131 --- ...hical_6611c450-c58b-4e9c-badd-7c5aaf89f4fd.json | 131 --- ...hical_e723cdc5-93b9-4480-b136-281f9990ef3e.json | 131 --- ...lized_14cf0a3f-11f8-4297-8250-619a7c57d8b2.json | 129 --- ...lized_8621aa31-c81a-437e-b5b0-5500ad975393.json | 129 --- ...lized_9afe8bb8-143d-429b-9da1-ed6722d18dd3.json | 129 --- ...ybrid_20e5e971-c1aa-411f-a4c1-bd9c831d468a.json | 129 --- ...ybrid_a563ac83-1474-4f2e-8628-cf38d363f4d2.json | 129 --- ...ybrid_e81f77c8-485f-449c-9160-4639ecff6741.json | 129 --- ...buted_02e44433-4487-4983-8cb5-dfd39be0e393.json | 129 --- ...buted_67cab5d5-e07c-48fb-94fc-8bfb59d8a030.json | 129 --- ...buted_7f0d6c07-159e-4956-bbfa-c80906c87c97.json | 129 --- ...buted_c88872a5-d0bd-4d5f-9bfd-39904d4000bd.json | 126 --- ...buted_c941e576-5936-4044-9133-f6aa6d292a3e.json | 126 --- ...buted_de30d0d7-afab-42bd-b244-5e1fc4e55adc.json | 126 --- benchmark/example_usage.py | 249 ------ .../__pycache__/benchmark_runner.cpython-312.pyc | Bin 24173 -> 0 bytes .../automated_test_runner.cpython-312.pyc | Bin 32696 -> 0 bytes .../__pycache__/parallel_executor.cpython-312.pyc | Bin 23676 -> 0 bytes .../__pycache__/result_collector.cpython-312.pyc | Bin 39201 -> 0 bytes benchmark/hive-mind-load-test.py | 902 -------------------- benchmark/hive-mind-stress-test.py | 935 --------------------- benchmark/mle_star_benchmark_example.py | 229 ----- .../optimization_comparison_20250614_200237.json | 52 -- benchmark/performance_dashboard.py | 769 ----------------- benchmark/quick_test_integration.py | 44 - benchmark/real_benchmark_results.json | 92 -- ...ized_0756a031-b873-43e1-9ea2-7ea25b5c092c.json} | 52 +- .../reports/examples/all_examples_results.json | 96 +-- benchmark/run-load-tests.py | 479 ----------- benchmark/run_performance_tests.py | 550 ------------ benchmark/simple-load-test.py | 322 ------- benchmark/simple_load_test_results.json | 123 --- benchmark/simple_test_results.json | 25 - .../__pycache__/__init__.cpython-312.pyc | Bin 2870 -> 2879 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 1345 -> 0 bytes .../__pycache__/memory_profiler.cpython-312.pyc | Bin 43459 -> 0 bytes .../__pycache__/metric_aggregator.cpython-312.pyc | Bin 42675 -> 0 bytes .../__pycache__/neural_benchmarks.cpython-312.pyc | Bin 44186 -> 0 bytes .../performance_analyzer.cpython-312.pyc | Bin 57821 -> 0 bytes .../__pycache__/token_optimizer.cpython-312.pyc | Bin 40053 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 1652 -> 0 bytes .../__pycache__/batch_processor.cpython-312.pyc | Bin 40756 -> 0 bytes .../__pycache__/decision_engine.cpython-312.pyc | Bin 44984 -> 0 bytes .../automation/__pycache__/models.cpython-312.pyc | Bin 2252 -> 0 bytes .../__pycache__/pipeline_manager.cpython-312.pyc | Bin 32505 -> 0 bytes .../__pycache__/resource_pool.cpython-312.pyc | Bin 38372 -> 0 bytes .../__pycache__/workflow_executor.cpython-312.pyc | Bin 43709 -> 0 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 738 -> 0 bytes .../__pycache__/optimizer.cpython-312.pyc | Bin 27444 -> 0 bytes .../__pycache__/rules_engine.cpython-312.pyc | Bin 20977 -> 0 bytes .../__pycache__/tempLine truncated
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
/**
* Simple Hello World function in JavaScript
* @param {string} name - Optional name parameter
* @returns {string} Greeting message
*/
export function helloWorld(name = 'World') {
return `Hello, ${name}!`;
}
// Example usage
console.log(helloWorld()); // Output: Hello, World!
console.log(helloWorld('Claude')); // Output: Hello, Claude!
+21
View File
@@ -0,0 +1,21 @@
"""
Simple Hello World function in Python
"""
def hello_world(name: str = "World") -> str:
"""
Simple Hello World function
Args:
name (str): Optional name parameter, defaults to 'World'
Returns:
str: Greeting message
"""
return f"Hello, {name}!"
# Example usage
if __name__ == "__main__":
print(hello_world()) # Output: Hello, World!
print(hello_world("Claude")) # Output: Hello, Claude!
+39
View File
@@ -0,0 +1,39 @@
/**
* Unit tests for Hello World function
*/
import { helloWorld } from './hello_world.js';
// Simple test framework
function test(description, testFunc) {
try {
testFunc();
console.log(`✓ ${description}`);
} catch (error) {
console.log(`✗ ${description}`);
console.error(` Error: ${error.message}`);
}
}
function assert(condition, message) {
if (!condition) {
throw new Error(message || 'Assertion failed');
}
}
// Run tests
console.log('Running JavaScript Hello World Tests:\n');
test('should return "Hello, World!" with no parameter', () => {
assert(helloWorld() === 'Hello, World!', 'Default parameter not working');
});
test('should return custom greeting with name parameter', () => {
assert(helloWorld('Claude') === 'Hello, Claude!', 'Custom name not working');
});
test('should handle empty string', () => {
assert(helloWorld('') === 'Hello, !', 'Empty string not handled');
});
console.log('\nAll tests completed!');
+33
View File
@@ -0,0 +1,33 @@
"""
Unit tests for Hello World function
"""
from hello_world import hello_world
def test_hello_world_default():
"""Test default parameter"""
assert hello_world() == "Hello, World!"
print("✓ Default parameter test passed")
def test_hello_world_custom_name():
"""Test with custom name"""
assert hello_world("Claude") == "Hello, Claude!"
print("✓ Custom name test passed")
def test_hello_world_empty_string():
"""Test with empty string"""
assert hello_world("") == "Hello, !"
print("✓ Empty string test passed")
if __name__ == "__main__":
print("Running Python Hello World Tests:\n")
test_hello_world_default()
test_hello_world_custom_name()
test_hello_world_empty_string()
print("\nAll tests completed!")
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""
Test script for MLE-STAR ensemble integration.
This script tests the basic functionality of the MLE-STAR implementation
including ensemble execution, voting strategies, and performance tracking.
"""
import asyncio
import logging
import sys
import os
from pathlib import Path
# Add the src directory to Python path
sys.path.insert(0, str(Path(__file__).parent.parent.parent / "src"))
from swarm_benchmark.mle_star import (
MLEStarEnsembleExecutor, MLEStarConfig,
MLScenarios, ClassificationScenario, RegressionScenario
)