<commit_before><h1><%= @user.username %>'s profile</h1>
<div class="ques-answer">
<h3>Questions You've Asked:</h3>
  <% if @user.questions.empty? %>
    <p>You have asked 0 questions. </p>
    <p>Perhaps there's something you'd like to <%= link_to "ask", new_question_path %>.</p>
  <% else %>
  <ol>
    <% @user.questions.each do |q| %>
      <li><%= q.title %></li>
    <% end %>
  </ol>
  <% end %>
</div>
<div class="ques-answer">
  <h3>Answers You've Given:</h3>
  <% if @user.answers.empty? %>
    <p>You have answered 0 questions.</p>
    <p>Don't be shy, we want your insight! <%= link_to "Answer", root_path %> some questions!</p>
  <% else %>
      <ol>
        <% @user.answers.each do |a| %>
          <li>Answer: <%= a.content %> | Question: <%= a.question %>, by: <%= a.question.asker %></li>
        <% end %>
      </ol>
    <% end %>
</div>
<commit_msg>Add links to a user's questions and answers, and change title's to user username<commit_after><h1><%= @user.username %>'s profile</h1>
<div class="ques-answer cf">
<h3><%= @user.username %>'s Questions:</h3>
  <% if @user.questions.empty? %>
    <p>You have asked 0 questions. </p>
    <p>Perhaps there's something you'd like to <%= link_to "ask", new_question_path %>.</p>
  <% else %>
  <ol>
    <% @user.questions.each do |q| %>
      <li><%= link_to q.title, question_path(q) %> | Answers: <%= q.answers.count %> | Votes: <%= q.vote_count %></li>
    <% end %>
  </ol>
  <% end %>
</div>
<div class="ques-answer cf">
  <h3><%= @user.username %>'s Answers:</h3>
  <% if @user.answers.empty? %>
    <p>You have answered 0 questions.</p>
    <p>Don't be shy, we want your insight! <%= link_to "Answer", root_path %> some questions!</p>
  <% else %>
      <ol>
        <% @user.answers.each do |a| %>
          <li>Answer: <%= link_to a.content, question_path(a.question_id) %> | Votes: <%= a.vote_count %> | Question: <%= a.question.title %>, by: <%= a.question.asker.username %></li>
        <% end %>
      </ol>
    <% end %>
</div>

{'fraction_non_alphanumeric': 0.22559760956175298, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 3.00199203187251, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 94, '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': '1657793', 'n_tokens_mistral': 840, 'n_tokens_neox': 727, 'n_words': 185}