<commit_before><div class="SideMenu">
  <% if !Cartodb.config[:cartodb_com_hosted].present? %>
    <a class="Filters-link" href="<%= current_user.plan_url(request.protocol) %>">
  <% end %>

  <div class="SideMenu-progress">
    <% per = (current_user.db_size_in_bytes * 100) / current_user.quota_in_bytes %>
    <% className = '' %>
    <% if (per > 80 && per < 90) %>
      <% className = 'caution' %>
    <% elsif (per > 89) %>
      <% className = 'danger' %>
    <% end %>
    <div class="SideMenu-progressBar">
      <div class="progress-bar">
        <span class="bar-2 <%= className %>" style="width:<%= per %>%"></span>
      </div>
    </div>
    <span class="SideMenu-progressSize"><%= number_to_human_size(current_user.db_size_in_bytes, precision: 2, significant: false).gsub(/ |Bytes/, {" "=>"", "Bytes"=>"B"}) %> of <%= number_to_human_size(current_user.quota_in_bytes).gsub(/ |Bytes/, {" "=>"", "Bytes"=>"B"}) %></span>
  </div>
<commit_msg>Don't break if user has 0 quota #7727<commit_after><div class="SideMenu">
  <% if !Cartodb.config[:cartodb_com_hosted].present? %>
    <a class="Filters-link" href="<%= current_user.plan_url(request.protocol) %>">
  <% end %>

  <div class="SideMenu-progress">
    <% per = current_user.quota_in_bytes.to_i == 0 ? 100 : (current_user.db_size_in_bytes * 100) / current_user.quota_in_bytes %>
    <% className = '' %>
    <% if (per > 80 && per < 90) %>
      <% className = 'caution' %>
    <% elsif (per > 89) %>
      <% className = 'danger' %>
    <% end %>
    <div class="SideMenu-progressBar">
      <div class="progress-bar">
        <span class="bar-2 <%= className %>" style="width:<%= per %>%"></span>
      </div>
    </div>
    <span class="SideMenu-progressSize"><%= number_to_human_size(current_user.db_size_in_bytes, precision: 2, significant: false).gsub(/ |Bytes/, {" "=>"", "Bytes"=>"B"}) %> of <%= number_to_human_size(current_user.quota_in_bytes).gsub(/ |Bytes/, {" "=>"", "Bytes"=>"B"}) %></span>
  </div>

{'fraction_non_alphanumeric': 0.22401614530776992, 'fraction_numerical': 0.01564076690211907, 'mean_word_length': 3.8365853658536584, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 67, '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': '3624261', 'n_tokens_mistral': 793, 'n_tokens_neox': 697, 'n_words': 122}