<commit_before>scoreMeter = (selector, score) ->

  unless $(selector).exists()
    return

  twoPi = 2 * Math.PI

  arc = d3.svg.arc()
    .startAngle(0)
    .innerRadius(35)
    .outerRadius(45)

  color = d3.scale.linear()
    .domain([0.0, 0.5, 1.0])
    .range(["red", "yellow", "green"])

  width = height = 120
  svg = d3.select(selector).insert("svg")
    .attr("width", width)
    .attr("height", height)
    .append("g")
    .attr("transform", "translate(" + width / 2 + "," + height / 2 + ")")

  meter = svg.append("g")
    .attr("class", "progress-meter")

  meter.append("path")
    .attr("class", "background")<commit_msg>Change colors for the score meter<commit_after>scoreMeter = (selector, score) ->

  unless $(selector).exists()
    return

  twoPi = 2 * Math.PI

  arc = d3.svg.arc()
    .startAngle(0)
    .innerRadius(35)
    .outerRadius(45)

  color = d3.scale.linear()
    .domain([0.0, 0.5, 1.0])
    .range(["#CE1836", "#EDB92E", "#A3A948"])

  width = height = 120
  svg = d3.select(selector).insert("svg")
    .attr("width", width)
    .attr("height", height)
    .append("g")
    .attr("transform", "translate(" + width / 2 + "," + height / 2 + ")")

  meter = svg.append("g")
    .attr("class", "progress-meter")

  meter.append("path")
    .attr("class", "background")
{'fraction_non_alphanumeric': 0.212913143735588, 'fraction_numerical': 0.03843197540353574, 'mean_word_length': 2.9695121951219514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3389519', 'n_tokens_mistral': 513, 'n_tokens_neox': 469, 'n_words': 94}