mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
feat: add thin stripes to all the "No Junior" columns in the graph
This commit is contained in:
parent
bb8b0e32f2
commit
bb50e1a959
1 changed files with 22 additions and 1 deletions
|
@ -65,12 +65,17 @@ o1-preview as Senior and Deepseek as Junior, raising the SOTA from 79.7% up to 8
|
||||||
};
|
};
|
||||||
var backgroundColors = [];
|
var backgroundColors = [];
|
||||||
var borderColors = [];
|
var borderColors = [];
|
||||||
|
var pattern = ctx.createPattern(createStripePattern(), 'repeat');
|
||||||
{% assign grouped_data = sorted_data | group_by: "model" %}
|
{% assign grouped_data = sorted_data | group_by: "model" %}
|
||||||
{% for group in grouped_data %}
|
{% for group in grouped_data %}
|
||||||
{% for item in group.items %}
|
{% for item in group.items %}
|
||||||
labels.push("{{ item.junior_model | default: "(No Junior)" }} {{ item.junior_edit_format | default: item.edit_format }}");
|
labels.push("{{ item.junior_model | default: "(No Junior)" }} {{ item.junior_edit_format | default: item.edit_format }}");
|
||||||
data.push({{ item.pass_rate_2 }});
|
data.push({{ item.pass_rate_2 }});
|
||||||
backgroundColors.push(colorMapping["{{ item.model }}"]);
|
if ("{{ item.junior_model }}" == "(No Junior)") {
|
||||||
|
backgroundColors.push(pattern);
|
||||||
|
} else {
|
||||||
|
backgroundColors.push(colorMapping["{{ item.model }}"]);
|
||||||
|
}
|
||||||
borderColors.push(borderColorMapping["{{ item.model }}"]);
|
borderColors.push(borderColorMapping["{{ item.model }}"]);
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -168,6 +173,22 @@ o1-preview as Senior and Deepseek as Junior, raising the SOTA from 79.7% up to 8
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function createStripePattern() {
|
||||||
|
var canvas = document.createElement('canvas');
|
||||||
|
canvas.width = 10;
|
||||||
|
canvas.height = 10;
|
||||||
|
var ctx = canvas.getContext('2d');
|
||||||
|
|
||||||
|
ctx.strokeStyle = 'rgba(0, 0, 0, 0.1)';
|
||||||
|
ctx.lineWidth = 2;
|
||||||
|
ctx.beginPath();
|
||||||
|
ctx.moveTo(0, 0);
|
||||||
|
ctx.lineTo(10, 10);
|
||||||
|
ctx.stroke();
|
||||||
|
|
||||||
|
return canvas;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
## Motivation
|
## Motivation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue