galtimur commited on
Commit
c3a2163
1 Parent(s): 2d3525d

Update src/leaderboard_formatting.py

Browse files
Files changed (1) hide show
  1. src/leaderboard_formatting.py +4 -4
src/leaderboard_formatting.py CHANGED
@@ -90,9 +90,9 @@ def get_columns_per_task(task_id: str) -> List[str]:
90
  return ["Model Name", "Context"] + metrics_per_task + ["Availability", "Submitted By", "Resources"]
91
 
92
  if task_id == 'ci_builds_repair':
93
- return ["Model Name", "Context Size"] + metrics_per_task + ["Availability", "Submitted By", "Resources"]
94
 
95
- return ["Model Name", "Context Size", "Task type", "Availability"] + metrics_per_task + ["Submitted By", "Resources"]
96
 
97
 
98
  def get_types_per_task(task_id: str) -> List[str]:
@@ -102,5 +102,5 @@ def get_types_per_task(task_id: str) -> List[str]:
102
  if task_id == 'bug_localization':
103
  return ["html", "markdown", "markdown", "html"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]
104
  if task_id == 'ci_builds_repair':
105
- return ["html", "markdown"] + ["number" for _ in metrics_per_task] + ["markdown", "markdown", "html"]
106
- return ["html", "markdown", "markdown", "markdown"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]
 
90
  return ["Model Name", "Context"] + metrics_per_task + ["Availability", "Submitted By", "Resources"]
91
 
92
  if task_id == 'ci_builds_repair':
93
+ return ["Model Name", "Context Size", "Task type"] + metrics_per_task + ["Availability", "Submitted By", "Resources"]
94
 
95
+ return ["Model Name", "Context Size", "Availability"] + metrics_per_task + ["Submitted By", "Resources"]
96
 
97
 
98
  def get_types_per_task(task_id: str) -> List[str]:
 
102
  if task_id == 'bug_localization':
103
  return ["html", "markdown", "markdown", "html"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]
104
  if task_id == 'ci_builds_repair':
105
+ return ["html", "markdown", "markdown"] + ["number" for _ in metrics_per_task] + ["markdown", "markdown", "html"]
106
+ return ["html", "markdown", "markdown"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]