Remove extra column
Browse files
src/leaderboard_formatting.py
CHANGED
@@ -73,7 +73,7 @@ SORT_COLUMN_PER_TASK = {
|
|
73 |
def get_columns_per_task(task_id: str) -> List[str]:
|
74 |
metrics_per_task = METRICS_PER_TASK[task_id]
|
75 |
if task_id == 'project_code_completion':
|
76 |
-
return ["Model Name", "Context Size", "Dataset Name"
|
77 |
if task_id == 'bug_localization':
|
78 |
return ["Model Name", "Availability", "Context Size", "Dataset"] + metrics_per_task + ["Submitted By", "Resources"]
|
79 |
|
@@ -89,7 +89,7 @@ def get_columns_per_task(task_id: str) -> List[str]:
|
|
89 |
def get_types_per_task(task_id: str) -> List[str]:
|
90 |
metrics_per_task = METRICS_PER_TASK.get(task_id, (0, 0, 0, 0, 0))
|
91 |
if task_id == 'project_code_completion':
|
92 |
-
return ["html", "markdown", "markdown"
|
93 |
if task_id == 'bug_localization':
|
94 |
return ["html", "markdown", "markdown", "html"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]
|
95 |
return ["html", "markdown", "markdown"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]
|
|
|
73 |
def get_columns_per_task(task_id: str) -> List[str]:
|
74 |
metrics_per_task = METRICS_PER_TASK[task_id]
|
75 |
if task_id == 'project_code_completion':
|
76 |
+
return ["Model Name", "Context Size", "Dataset Name"] + metrics_per_task + ["Availability", "Submitted By", "Resources"]
|
77 |
if task_id == 'bug_localization':
|
78 |
return ["Model Name", "Availability", "Context Size", "Dataset"] + metrics_per_task + ["Submitted By", "Resources"]
|
79 |
|
|
|
89 |
def get_types_per_task(task_id: str) -> List[str]:
|
90 |
metrics_per_task = METRICS_PER_TASK.get(task_id, (0, 0, 0, 0, 0))
|
91 |
if task_id == 'project_code_completion':
|
92 |
+
return ["html", "markdown", "markdown"] + ["number" for _ in metrics_per_task] + ["markdown", "markdown", "html"]
|
93 |
if task_id == 'bug_localization':
|
94 |
return ["html", "markdown", "markdown", "html"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]
|
95 |
return ["html", "markdown", "markdown"] + ["number" for _ in metrics_per_task] + ["markdown", "html"]
|