<commit_before>.container
  .page-header
    %h1 When users joined
  #chart

:css
  .bar rect {
    fill: steelblue;
    shape-rendering: crispEdges;
  }

  .bar text {
    fill: #fff;
  }

  .axis path, .axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
  }

%script{:src => "https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"}

:coffee
  d3.json '/users.json', (error, users) ->
    # Convert to dates
    users.forEach (d, i) ->
      d.created_at = Date.parse(d.created_at)<commit_msg>Use d3 lib that's locally installed<commit_after>.container
  .page-header
    %h1 When users joined
  #chart

:css
  .bar rect {
    fill: steelblue;
    shape-rendering: crispEdges;
  }

  .bar text {
    fill: #fff;
  }

  .axis path, .axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
  }

= javascript_include_tag "d3.js"

:coffee
  d3.json '/users.json', (error, users) ->
    # Convert to dates
    users.forEach (d, i) ->
      d.created_at = Date.parse(d.created_at)
{'fraction_non_alphanumeric': 0.14466019417475728, 'fraction_numerical': 0.01650485436893204, 'mean_word_length': 2.530821917808219, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '4098732', 'n_tokens_mistral': 417, 'n_tokens_neox': 395, 'n_words': 90}