<commit_before><div class="jumbotron">

 <% provide(:title, @user.name) %>
 <div class="row">
   <aside class="col-md-12">
     <section class="user_info">
       <h3>
         <%= gravatar_for @user %>
         <%= @user.name %>
       </h3>
     </section>
   </aside>
  <div class="col-md-12">
  <% if @user.projects.any? %>
  <br><br>
   <table class="table table-bordered table-striped table-responsive">
     <thead>
       <tr>
         <th>Name</th>
         <th>Description</th>
         <th>Website</th>
         <th>License</th>
         <th>Badge</th>
       </tr>
     </thead>

     <tbody>
       <% @projects.each do |project| %>
         <tr>
           <td><%= link_to (project.name.presence || "(Name Unknown)"),
                   project %></td>
           <td><%= project.description %></td>
           <td>
             <%# Defend against bad data - link only if plausible URL. %>
             <% if project.project_homepage_url.presence &&
                   project.project_homepage_url.match(/\Ahttps?:\/\//) %>
               <a href="<%= project.project_homepage_url %>"><%= project.project_homepage_url %></a>
             <% else %>
               <%= project.project_homepage_url %>
             <% end %>
           </td>
           <td><%= project.license %></td>
           <td><%= link_to "<img src='/projects/#{project.id}/badge'>".html_safe,
                           project %></td>
         </tr><commit_msg>Add badge % achieved under user profile<commit_after><div class="center">

 <% provide(:title, @user.name) %>
 <div class="row">
   <aside class="col-md-12">
     <section class="user_info">
       <h3>
         <%= gravatar_for @user %>
         <%= @user.name %>
       </h3>
     </section>
   </aside>
  <div class="col-md-12">
  <% if @user.projects.any? %>
  <br><br>
   <table class="table table-bordered table-striped table-responsive">
     <thead>
       <tr>
         <th>Name</th>
         <th>Description</th>
         <th>Website</th>
         <th>License</th>
         <th>%Achieved</th>
         <th>Badge</th>
       </tr>
     </thead>

     <tbody>
       <% @projects.each do |project| %>
         <tr>
           <td><%= link_to (project.name.presence || "(Name Unknown)"),
                   project %></td>
           <td><%= project.description %></td>
           <td>
             <%# Defend against bad data - link only if plausible URL. %>
             <% if project.project_homepage_url.presence &&
                   project.project_homepage_url.match(/\Ahttps?:\/\//) %>
               <a href="<%= project.project_homepage_url %>"><%= project.project_homepage_url %></a>
             <% else %>
               <%= project.project_homepage_url %>
             <% end %>
           </td>
           <td><%= project.license %></td>
           <td><%= Project.badge_percentage(project) %>%</td>
           <td><%= link_to "<img src='/projects/#{project.id}/badge'>".html_safe,
                           project %></td>
         </tr>
{'fraction_non_alphanumeric': 0.1877700232635427, 'fraction_numerical': 0.003988035892323031, 'mean_word_length': 1.7363636363636363, 'pattern_counts': {'":': 0, '<': 124, '<?xml version=': 0, '>': 124, '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': '5975415', 'n_tokens_mistral': 1027, 'n_tokens_neox': 942, 'n_words': 174}