<commit_before><html>
<head>
<title>RoBCode (SVG)</title>
<script>
var base_colour_array = ["#FF0000", "#FFB300", "#FFFF00", "#00FF00", "#00FFFF", "#0000FF", "#7700D8", "#FF00FF", "#000000", "#000000"] ; 
var black_array = ["black", "black", "black", "black", "black", "black", "black", "black", "black", "black"];

function set_table_colour() {
  for(var i=0; i<9; i += 1) {
    document.getElementById("table1_cell_colour_" + i).value = base_colour_array[i];
  }
}

function reverse_colours() {
  var tmp;
  for(var i=0; i < 4; i += 1) {
    tmp = base_colour_array[i];
    base_colour_array[i] = base_colour_array[7 - i];
    base_colour_array[7 - i] = tmp;
  }
  set_table_colour();
}

function set_colour(colour_id) {
  var index = parseInt(colour_id.id.slice(-1));
  colour_array[index] = colour_id.value;
  return true;
}

function polarToCartesianCoordinates(centerX, centerY, radius, angleInDegrees) {
  var angleInRadians = (angleInDegrees-90) * Math.PI / 180.0;

  return {
    x: centerX + (radius * Math.cos(angleInRadians)),
    y: centerY + (radius * Math.sin(angleInRadians))
  };
}

function describeSVGArc(center_x, center_y, inner_radius, outer_radius, startAngle, endAngle){
  var inner_start = polarToCartesianCoordinates(center_x, center_y, inner_radius, endAngle);
  var inner_end = polarToCartesianCoordinates(center_x, center_y, inner_radius, startAngle);
  var outer_start = polarToCartesianCoordinates(center_x, center_y, outer_radius, endAngle);
  var outer_end = polarToCartesianCoordinates(center_x, center_y, outer_radius, startAngle);

  var arcSweep = endAngle - startAngle <= 180 ? "0" : "1";

  var d = [
      "M", outer_start.x, outer_start.y, 
      "A", outer_radius, outer_radius, 0, arcSweep, 0, outer_end.x, outer_end.y,
      "L", inner_end.x, inner_end.y,
      "A", inner_radius, inner_radius, 0, arcSweep, 1, inner_start.x, inner_start.y,
      "L", outer_start.x, outer_start.y
  ].join(" ");<commit_msg>Bug fix: Didn't change colour_array to base_colour_array<commit_after><html>
<head>
<title>RoBCode (SVG)</title>
<script>
var base_colour_array = ["#FF0000", "#FFB300", "#FFFF00", "#00FF00", "#00FFFF", "#0000FF", "#7700D8", "#FF00FF", "#000000", "#000000"] ; 
var black_array = ["black", "black", "black", "black", "black", "black", "black", "black", "black", "black"];

function set_table_colour() {
  for(var i=0; i<9; i += 1) {
    document.getElementById("table1_cell_colour_" + i).value = base_colour_array[i];
  }
}

function reverse_colours() {
  var tmp;
  for(var i=0; i < 4; i += 1) {
    tmp = base_colour_array[i];
    base_colour_array[i] = base_colour_array[7 - i];
    base_colour_array[7 - i] = tmp;
  }
  set_table_colour();
}

function set_colour(colour_id) {
  var index = parseInt(colour_id.id.slice(-1));
  base_colour_array[index] = colour_id.value;
  return true;
}

function polarToCartesianCoordinates(centerX, centerY, radius, angleInDegrees) {
  var angleInRadians = (angleInDegrees-90) * Math.PI / 180.0;

  return {
    x: centerX + (radius * Math.cos(angleInRadians)),
    y: centerY + (radius * Math.sin(angleInRadians))
  };
}

function describeSVGArc(center_x, center_y, inner_radius, outer_radius, startAngle, endAngle){
  var inner_start = polarToCartesianCoordinates(center_x, center_y, inner_radius, endAngle);
  var inner_end = polarToCartesianCoordinates(center_x, center_y, inner_radius, startAngle);
  var outer_start = polarToCartesianCoordinates(center_x, center_y, outer_radius, endAngle);
  var outer_end = polarToCartesianCoordinates(center_x, center_y, outer_radius, startAngle);

  var arcSweep = endAngle - startAngle <= 180 ? "0" : "1";

  var d = [
      "M", outer_start.x, outer_start.y, 
      "A", outer_radius, outer_radius, 0, arcSweep, 0, outer_end.x, outer_end.y,
      "L", inner_end.x, inner_end.y,
      "A", inner_radius, inner_radius, 0, arcSweep, 1, inner_start.x, inner_start.y,
      "L", outer_start.x, outer_start.y
  ].join(" ");
{'fraction_non_alphanumeric': 0.15544303797468353, 'fraction_numerical': 0.03189873417721519, 'mean_word_length': 4.959276018099548, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1491570', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1456, 'n_words': 310}