<commit_before>'use strict';
function displayAvailChart(bikeArray, dockArray) {
  console.log('displaying bike availability chart');
  var bikectx = document.getElementById('chart-bikeavail').getContext('2d');
  var bikeAvailChart = new Chart(bikectx, {
    type: 'line',
    responsive: true,
    maintainAspectRatio: false,
    data: {
      labels: bikeArray, //TODO: this needs to be an array of labels; either figure out how to disable this or figure something out instead of reusing
      datasets: [{
        label: 'Avg. Weekly Bike Availability',
        fill: false,
        lineTension: 0.25,
        backgroundColor: 'rgba(220,180,0,0.4)',
        borderColor: 'rgba(220,180,0,1)',
        borderCapStyle: 'butt',
        borderDash: [],
        borderDashOffset: 0.0,
        borderJoinStyle: 'miter',
        pointBorderColor: 'rgba(220,180,0,1)',
        pointBackgroundColor: '#fff',
        pointBorderWidth: 1,
        pointHoverRadius: 5,
        pointHoverBackgroundColor: 'rgba(220,180,0,1)',
        pointHoverBorderColor: 'rgba(220,180,0,1)',
        pointHoverBorderWidth: 2,
        pointRadius: 1,
        pointHitRadius: 10,
        data: bikeArray,
      },{
        label: 'Avg. Weekly Dock Availability',
        fill: false,
        lineTension: 0.25,
        backgroundColor: 'rgba(75,192,192,0.4)',
        borderColor: 'rgba(75,192,192,1)',
        borderCapStyle: 'butt',
        borderDash: [],
        borderDashOffset: 0.0,
        borderJoinStyle: 'miter',
        pointBorderColor: 'rgba(75,192,192,1)',
        pointBackgroundColor: '#fff',
        pointBorderWidth: 1,
        pointHoverRadius: 5,
        pointHoverBackgroundColor: 'rgba(75,192,192,1)',
        pointHoverBorderColor: 'rgba(220,220,220,1)',
        pointHoverBorderWidth: 2,
        pointRadius: 1,
        pointHitRadius: 10,
        data: dockArray,
      }]
    },<commit_msg>restyles chart for color scheme and data points per @tetsaiga86<commit_after>'use strict';
function displayAvailChart(bikeArray, dockArray) {
  console.log('displaying bike availability chart');
  var bikectx = document.getElementById('chart-bikeavail').getContext('2d');
  var bikeAvailChart = new Chart(bikectx, {
    type: 'line',
    responsive: true,
    maintainAspectRatio: false,
    data: {
      labels: bikeArray, //TODO: this needs to be an array of labels; either figure out how to disable this or figure something out instead of reusing
      datasets: [{
        label: 'Avg. Weekly Bike Availability',
        fill: false,
        lineTension: 0.25,
        backgroundColor: 'rgba(105,190,40,0.4)',
        borderColor: 'rgba(105,190,40,1)',
        borderCapStyle: 'butt',
        borderDash: [],
        borderDashOffset: 0.0,
        borderJoinStyle: 'miter',
        pointBorderColor: 'rgba(105,190,40,1)',
        pointBackgroundColor: 'rgba(105,190,40,1)',
        pointBorderWidth: 1,
        pointHoverRadius: 5,
        pointHoverBackgroundColor: 'rgba(105,190,40,1)',
        pointHoverBorderColor: 'rgba(105,190,40,1)',
        pointHoverBorderWidth: 2,
        pointRadius: 3,
        pointHitRadius: 10,
        data: bikeArray,
      },{
        label: 'Avg. Weekly Dock Availability',
        fill: false,
        lineTension: 0.25,
        backgroundColor: 'rgba(0,21,50,0.4)',
        borderColor: 'rgba(0,21,50,1)',
        borderCapStyle: 'butt',
        borderDash: [],
        borderDashOffset: 0.0,
        borderJoinStyle: 'miter',
        pointBorderColor: 'rgba(0,21,50,1)',
        pointBackgroundColor: 'rgba(0,21,50,1)',
        pointBorderWidth: 1,
        pointHoverRadius: 5,
        pointHoverBackgroundColor: 'rgba(0,21,50,1)',
        pointHoverBorderColor: 'rgba(0,21,50,1)',
        pointHoverBorderWidth: 2,
        pointRadius: 3,
        pointHitRadius: 10,
        data: dockArray,
      }]
    },
{'fraction_non_alphanumeric': 0.12467464862051016, 'fraction_numerical': 0.059344091618948464, 'mean_word_length': 2.7529296875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '793353', 'n_tokens_mistral': 1353, 'n_tokens_neox': 1221, 'n_words': 267}