<commit_before>const $ = require('jquery');
const Chart = require('chart.js');

$(function() {
  $.get('https://bell.lahs.club/api/stats', function(data) {
    var hits = [];
    var devices = [];

    for (var date in data.dailyStats) {
      hits.push({
        x: new Date(date),
        y: parseInt(data.dailyStats[date].totalHits)
      });
      devices.push({
        x: new Date(date),
        y: parseInt(data.dailyStats[date].devices)
      });
    }<commit_msg>Fix stats api client URL<commit_after>const $ = require('jquery');
const Chart = require('chart.js');

$(function() {
  $.get('/api/stats', function(data) {
    var hits = [];
    var devices = [];

    for (var date in data.dailyStats) {
      hits.push({
        x: new Date(date),
        y: parseInt(data.dailyStats[date].totalHits)
      });
      devices.push({
        x: new Date(date),
        y: parseInt(data.dailyStats[date].devices)
      });
    }
{'fraction_non_alphanumeric': 0.17684887459807075, 'fraction_numerical': 0.0, 'mean_word_length': 2.5245283018867926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3334510', 'n_tokens_mistral': 305, 'n_tokens_neox': 301, 'n_words': 62}