<commit_before><html>
<head>
  <link href="/stylesheets/styles.css" rel="stylesheet">
</head>
<body>

  <div class="page">
    <div class="page-header">
      <a href="http://culturehack.org.uk" class="logo-link">
        <img src="/images/culture-hack.svg" alt="Culture Hack" class="logo" height="96">
      </a>

      <nav class="primary-nav">
        <a href="http://culturehack.org.uk">Home</a>
        <a href="http://culturehack.org.uk/about/">About</a>
        <a href="http://culturehack.org.uk/blog/">Blog</a>
        <a href="http://culturehack.org.uk/prototypes/">Prototypes</a>
        <a href="http://culturehack.org.uk/hack-events/">Hack events</a>
        <a href="/" class="active">Toolkit</a>
        <a href="http://culturehack.org.uk/get-in-touch/">Get in touch</a>
      </nav>
    </div>

    <div class="page-content">
      <h1>Data sources</h1>

      <nav class="filter">
        Filter: 

        <% ['Art', 'Literature', 'Music', 'Performance', 'Fashion', 'Media', 'History'].each do |category| %>
          <a href="./?categories=<%= category %>" class="<%= 'selected' if @categories.include?(category) %>"><%= category %></a> 
        <% end %>
      </nav>

      <ul>
        <% @sources.each do |source| %>
          <li><a href="/dataset/<%= source[:path] %>"><%= source[:title] %></a></li>
        <% end %>
      </ul>
    </div>

  </div>
</body><commit_msg>Turning buttons into on/off filters<commit_after><html>
<head>
  <link href="/stylesheets/styles.css" rel="stylesheet">
</head>
<body>

  <div class="page">
    <div class="page-header">
      <a href="http://culturehack.org.uk" class="logo-link">
        <img src="/images/culture-hack.svg" alt="Culture Hack" class="logo" height="96">
      </a>

      <nav class="primary-nav">
        <a href="http://culturehack.org.uk">Home</a>
        <a href="http://culturehack.org.uk/about/">About</a>
        <a href="http://culturehack.org.uk/blog/">Blog</a>
        <a href="http://culturehack.org.uk/prototypes/">Prototypes</a>
        <a href="http://culturehack.org.uk/hack-events/">Hack events</a>
        <a href="/" class="active">Toolkit</a>
        <a href="http://culturehack.org.uk/get-in-touch/">Get in touch</a>
      </nav>
    </div>

    <div class="page-content">
      <h1>Data sources</h1>

      <nav class="filter">
        Filter: 

        <% ['Art', 'Literature', 'Music', 'Performance', 'Fashion', 'Media', 'History'].each do |category| %>

          <% if @categories.include?(category) %>
            <% link_categories = @categories.select {|x| x != category} %>
            <% html_class = 'selected' %>
          <% else %>
            <% link_categories = (@categories + [category]) %>
          <% end %>

          <a href="./?categories=<%= link_categories.sort.join(',') %>" class="<%= html_class %>"><%= category %></a> 
        <% end %>
      </nav>

      <ul>
        <% @sources.each do |source| %>
          <li><a href="/dataset/<%= source[:path] %>"><%= source[:title] %></a></li>
        <% end %>
      </ul>
    </div>

  </div>
</body>
{'fraction_non_alphanumeric': 0.23136999674585096, 'fraction_numerical': 0.0026033192320208264, 'mean_word_length': 2.5252293577981653, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, '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': '712662', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1026, 'n_words': 183}