<commit_before><% if @project.github_repository.present? %>
<hr>
<div class='row'>
  <div class='col-md-6'>
    <% repo = @project.github_repository %>
    <h4>
      <%= image_tag repo.avatar_url, width: 60, height: 60 %>
      <%= link_to repo, repo.url %>
    </h4>

    <p>
      <%= repo.description %>
    </p>
    <% if repo.homepage.present? %>
      <p>
        <%= link_to repo.homepage, repo.homepage %>
      </p>
    <% end %>
    <% if repo.fork %>
    <p>
      Fork: <%= repo.fork? %>
    </p>
    <% end %>
    <p>
      Language: <%= link_to repo.language, language_path(repo.language) %>
    </p>
    <p>
      Created: <%= repo.created_at.to_s(:long) %>
    </p>
    <p>
      Last updated: <%= repo.updated_at.to_s(:long) %>
    </p>
    <p>
      Last pushed: <%= repo.pushed_at.to_s(:long) %>
    </p>
    <p>
      Size: <%= number_to_human_size repo.size*1000 %>
    </p>
    <p>
      Stars: <%= link_to number_with_delimiter(repo.stargazers_count), repo.stargazers_url %>
    </p>
    <p>
      Forks: <%= link_to number_with_delimiter(repo.forks_count), repo.forks_url %>
    </p>
    <p>
      Watchers: <%= link_to number_with_delimiter(repo.subscribers_count), repo.watchers_url %>
    </p>
    <p>
      Contributors: <%= link_to repo.github_contributions.count, repo.contributors_url %>
    </p>

    <p>
      Open issues: <%= repo.has_issues? ? link_to(number_with_delimiter(repo.open_issues_count), repo.issues_url) : 'disabled'  %>
    </p>
    <% if repo.has_wiki? %>
    <p>
      <%= link_to 'Wiki', repo.wiki_url %>
    </p>
    <% end %>
    <% if repo.has_pages? %>
    <p>
      <%= link_to 'Pages', repo.pages_url %>
    </p>
    <% end %>
    <% if repo.mirror_url.present? %>
    <p>
      Mirror of <%= repo.mirror_url %>
    </p>
    <% end %>
  </div>
  <div class='col-md-6'>
    <%= render 'projects/contributions' %>
  </div>
</div>

<% else %>
  <% if @project.github_url.present? %>
    <p>
      Repo: <%= link_to @project.github_url, @project.github_url %>
    </p>
  <% end %>
<% end %>
<commit_msg>Only show contributors count if its been downlaoded<commit_after><% if @project.github_repository.present? %>
<hr>
<div class='row'>
  <div class='col-md-6'>
    <% repo = @project.github_repository %>
    <h4>
      <%= image_tag repo.avatar_url, width: 60, height: 60 %>
      <%= link_to repo, repo.url %>
    </h4>
    <p>
      <%= repo.description %>
    </p>
    <% if repo.homepage.present? %>
      <p>
        <%= link_to repo.homepage, repo.homepage %>
      </p>
    <% end %>
    <% if repo.fork %>
    <p>
      Fork: <%= repo.fork? %>
    </p>
    <% end %>
    <p>
      Language: <%= link_to repo.language, language_path(repo.language) %>
    </p>
    <p>
      Created: <%= repo.created_at.to_s(:long) %>
    </p>
    <p>
      Last updated: <%= repo.updated_at.to_s(:long) %>
    </p>
    <p>
      Last pushed: <%= repo.pushed_at.to_s(:long) %>
    </p>
    <p>
      Size: <%= number_to_human_size repo.size*1000 %>
    </p>
    <p>
      Stars: <%= link_to number_with_delimiter(repo.stargazers_count), repo.stargazers_url %>
    </p>
    <p>
      Forks: <%= link_to number_with_delimiter(repo.forks_count), repo.forks_url %>
    </p>
    <p>
      Watchers: <%= link_to number_with_delimiter(repo.subscribers_count), repo.watchers_url %>
    </p>
    <% contributions = repo.github_contributions.count %>
    <% if contributions > 0 %>
      <p>
        Contributors: <%= link_to contributions, repo.contributors_url %>
      </p>
    <% end %>
    <p>
      Open issues: <%= repo.has_issues? ? link_to(number_with_delimiter(repo.open_issues_count), repo.issues_url) : 'disabled'  %>
    </p>
    <% if repo.has_wiki? %>
    <p>
      <%= link_to 'Wiki', repo.wiki_url %>
    </p>
    <% end %>
    <% if repo.has_pages? %>
    <p>
      <%= link_to 'Pages', repo.pages_url %>
    </p>
    <% end %>
    <% if repo.mirror_url.present? %>
    <p>
      Mirror of <%= repo.mirror_url %>
    </p>
    <% end %>
  </div>
  <div class='col-md-6'>
    <%= render 'projects/contributions' %>
  </div>
</div>

<% else %>
  <% if @project.github_url.present? %>
    <p>
      Repo: <%= link_to @project.github_url, @project.github_url %>
    </p>
  <% end %>
<% end %>

{'fraction_non_alphanumeric': 0.194293798632398, 'fraction_numerical': 0.005894836123555765, 'mean_word_length': 2.372019077901431, 'pattern_counts': {'":': 0, '<': 164, '<?xml version=': 0, '>': 165, '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': '5507063', 'n_tokens_mistral': 1805, 'n_tokens_neox': 1599, 'n_words': 289}