<commit_before>  <div class="row-fluid">
    <div class="span12">
        <h2>Attribute This Dataset</h2>
        
            <% if @attribution_data[:attribution_text] %>
                <p>The creator of this data has specified the attribution text they would like you to use:</p>            
                <div class="well">
                    <a href="<%= attribution_url( @attribution_data ) %>"><%= @attribution_data[:attribution_text] %></a>
                </div>
            <% else %>
            
                <% text = attribution_text(@attribution_data) %>
    
                <% if text %>
                    <p>The creator of the data has not specified the attribution text to use. Here are some possible formats for attributing this dataset:</p>
                    
                    <div class="well">
                        Uses data supplied by <a href="<%= attribution_url( @attribution_data ) %>"><%= text %></a>
                    </div>
    
                    <% if @attribution_data[:title] %>
                        <p>
                        Or:
                        </p>                
                        <div class="well">
                            Uses data from "<a href="<%= attribution_url( @attribution_data ) %>"><%= @attribution_data[:title] %></a>", supplied by <a href="<%= attribution_url( @attribution_data ) %>"><%= text %></a>
                        </div>                
                    <% end %>
                            

                <% else %>
                    <p>Unable to build text for attribution link from metadata</p>                
                <% end %>
            <% end %>                
    </div>
  </div>

  <div class="row-fluid">
    <div class="span12">
        <h2>Cite This Dataset</h2>
        
        <div class="well">
            TODO
        </div>
        
    </div>
  </div>

  <div class="row-fluid">
    <div class="span12">
        <h2>Explanation</h2>
        
        <div class="well">
            <pre><%= JSON.pretty_generate( @attribution_data ) %></pre>                    
        </div>            
    </div>
  </div><commit_msg>Added some additional variants<commit_after>  <div class="row-fluid">
    <div class="span12">
        <h2>Attribute This Dataset</h2>
        
            <% if @attribution_data[:attribution_text] %>
                <p>The creator of this data has specified the attribution text they would like you to use:</p>            
                <div class="well">
                    <a href="<%= attribution_url( @attribution_data ) %>"><%= @attribution_data[:attribution_text] %></a>
                </div>
            <% else %>
            
                <% text = attribution_text(@attribution_data) %>
    
                <% if text %>
                    <p>The creator of the data has not specified the attribution text to use. Here are some possible formats for attributing this dataset:</p>
                    
                    <% if @attribution_data[:title] && !@attribution_data[:publisher_name] %>
                        <div class="well">
                            Uses data from <a href="<%= attribution_url( @attribution_data ) %>"><%= text %></a>
                        </div>
                    <% end %>
                    
                    <% if !@attribution_data[:title] && @attribution_data[:publisher_name] %>
                        <div class="well">
                            Uses data supplied by <a href="<%= attribution_url( @attribution_data ) %>"><%= text %></a>
                        </div>
                    <% end %>                    
                        
                    <% if @attribution_data[:title] && @attribution_data[:publisher_name] %>
                        <div class="well">
                            Uses data from "<a href="<%= attribution_url( @attribution_data ) %>"><%= @attribution_data[:title] %></a>", supplied by <a href="<%= attribution_url( @attribution_data ) %>"><%= text %></a>
                        </div>                
                    <% end %>

                <% else %>
                    <p>Unable to build text for attribution link from the extracted metadata</p>                
                <% end %>
            <% end %>                
    </div>
  </div>

  <div class="row-fluid">
    <div class="span12">
        <h2>Cite This Dataset</h2>
        
        <div class="well">
            TODO
        </div>
        
    </div>
  </div>

  <div class="row-fluid">
    <div class="span12">
        <h2>Explanation</h2>
        
        <div class="well">
            <pre><%= JSON.pretty_generate( @attribution_data ) %></pre>                    
        </div>            
    </div>
  </div>
{'fraction_non_alphanumeric': 0.13544065312957923, 'fraction_numerical': 0.0050240736864140675, 'mean_word_length': 1.238987816307404, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1751176', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1215, 'n_words': 306}