Spaces:
Build error
Build error
Xingyao Wang commited on
Commit ·
565afe1
1
Parent(s): 0d2d477
show errrors
Browse filesFiles changed (2)
45 unmodified lines4647484950515245 unmodified linesswe_bench_results = swe_bench_results[['agent_name', 'note','model_name','success_rate', 'solved', 'total','max_iterations', 'git_commit', 'start_time']]swe_bench_results = swe_bench_results.sort_values(by='success_rate', ascending=False)45 unmodified lines4647484950515245 unmodified linesswe_bench_results = swe_bench_results[['agent_name', 'note','model_name','success_rate', 'n_solved', 'n_error', 'total','max_iterations', 'git_commit', 'start_time']]swe_bench_results = swe_bench_results.sort_values(by='success_rate', ascending=False)
73 unmodified lines74757677787930 unmodified lines11011111211311411515 unmodified lines13113213313413513613713813973 unmodified linesfor idx, entry in df.iterrows():history = entry['history']test_result = entry['test_result']['result']# additional metrircs:apply_test_patch_success = entry['test_result']['metadata'][30 unmodified lines'model_name': entry['metadata']['model_name'],'n_turns': len(history),**test_result,'empty_generation': empty_generation,'apply_test_patch_success': apply_test_patch_success,'test_cmd_exit_error': test_cmd_exit_error,15 unmodified linesdf = load_df_from_selected_filepaths(filepath)stats = agg_stats(df)resolved = stats['resolved'].sum() / len(stats)tot_instances = len(stats)return {'success_rate': resolved,'solved': stats['resolved'].sum(),'total': tot_instances,}73 unmodified lines7475767778798030 unmodified lines11111211311411511611715 unmodified lines13313413513613713813914014114214373 unmodified linesfor idx, entry in df.iterrows():history = entry['history']test_result = entry['test_result']['result']error = entry.get('error', None)# additional metrircs:apply_test_patch_success = entry['test_result']['metadata'][30 unmodified lines'model_name': entry['metadata']['model_name'],'n_turns': len(history),**test_result,'contains_error': bool(error),'empty_generation': empty_generation,'apply_test_patch_success': apply_test_patch_success,'test_cmd_exit_error': test_cmd_exit_error,15 unmodified linesdf = load_df_from_selected_filepaths(filepath)stats = agg_stats(df)resolved = stats['resolved'].sum() / len(stats)num_contains_error = stats['contains_error'].sum()tot_instances = len(stats)return {'success_rate': resolved,'n_solved': stats['resolved'].sum(),'n_error': num_contains_error,'total': tot_instances,}
0_📊_OpenDevin_Benchmark.py+1-1
utils/swe_bench.py+5-1