<commit_before>%h1= @repo.name.capitalize

#chart

.table-responsive
  %table.table.table-striped
    %tr
      %th= "#{Commit.name} #{Commit.human_attribute_name(:message)}"
      %th= Commit.human_attribute_name(:sha1).upcase
      %th= Commit.human_attribute_name(:created_at)

    - @commits.each do |commit|
      %tr
        %td= commit.message
        %td= link_to commit.sha1, commit.url, target: '_blank'
        %td= commit.created_at

- content_for(:footer) do
  :javascript
    var char = c3.generate({
      bindto: "#chart",
      data: {
        x: 'Commit SHA1',
        columns: [
          #{['Commit SHA1'].concat(@commits_sha1s)},
          #{@commits_data['TOTAL']},
          #{@commits_data['FREE']},
          #{@commits_data['T_OBJECT']},
          #{@commits_data['T_MODULE']},
          #{@commits_data['T_FLOAT']},<commit_msg>Set width for table columns.<commit_after>%h1= @repo.name.capitalize

#chart

.table-responsive
  %table.table.table-striped
    %tr
      %th= "#{Commit.name} #{Commit.human_attribute_name(:message)}"
      %th= Commit.human_attribute_name(:sha1).upcase
      %th= Commit.human_attribute_name(:created_at)

    - @commits.each do |commit|
      %tr
        %td.col-xs-6
          = commit.message

        %td.col-xs-4
          = link_to commit.sha1, commit.url, target: '_blank'

        %td.col-xs-2
          = commit.created_at

- content_for(:footer) do
  :javascript
    var char = c3.generate({
      bindto: "#chart",
      data: {
        x: 'Commit SHA1',
        columns: [
          #{['Commit SHA1'].concat(@commits_sha1s)},
          #{@commits_data['TOTAL']},
          #{@commits_data['FREE']},
          #{@commits_data['T_OBJECT']},
          #{@commits_data['T_MODULE']},
          #{@commits_data['T_FLOAT']},
{'fraction_non_alphanumeric': 0.16694677871148458, 'fraction_numerical': 0.009523809523809525, 'mean_word_length': 2.5296442687747036, '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': '1337957', 'n_tokens_mistral': 623, 'n_tokens_neox': 634, 'n_words': 97}