<commit_before><% own_list = @view_user == current_user %>

<script>
   var global_table_settings = [];
</script>

<ol class="breadcrumb">
   <li><%= me_breadcrumb() %></li>
   <li><%= link_to "my families", families_path %></li>
   <li><%= link_to @view_family.name, family_path(@view_family) %></li>
   <li class="active"><%= user_breadcrumb(@view_user, current_user, false) %></li>
   <li><%= link_to "user info", user_info_path(@view_user) %></li>
</ol>

<div class="panel panel-primary">
   <div class="panel-heading">
      <h2 class="panel-title">lists<%= !own_list ? raw(' | <input id="show_gone_items" type="checkbox" unchecked> show gone items</h2>') : '' %>
   </div>
   <div class="panel-body">
      <%= render @lists %>
   </div>
</div>

<script>

   $.fn.dataTable.ext.search.push(
   function( settings, data, dataIndex ) {
      table_settings = global_table_settings[settings.sTableId]
      table_hidden_status = table_settings ? table_settings.hidden_status : false;

      if(table_hidden_status) return true;

      var show_gone = $('#show_gone_items')[0].checked;
      var status = data[3];
      var not_gone = status.indexOf("gone (") == -1;

      return not_gone || show_gone;
   }
   );

</script>
<commit_msg>Restore gone item check<commit_after><% own_list = @view_user == current_user %>

<script>
   var global_table_settings = [];
</script>

<ol class="breadcrumb">
   <li><%= me_breadcrumb() %></li>
   <li><%= link_to "my families", families_path %></li>
   <li><%= link_to @view_family.name, family_path(@view_family) %></li>
   <li class="active"><%= user_breadcrumb(@view_user, current_user, false) %></li>
   <li><%= link_to "user info", user_info_path(@view_user) %></li>
</ol>

<div class="panel panel-primary">
   <div class="panel-heading">
      <h2 class="panel-title">lists<%= !own_list ? raw(' | <input id="show_gone_items" type="checkbox" checked> show gone items</h2>') : '' %>
   </div>
   <div class="panel-body">
      <%= render @lists %>
   </div>
</div>

<script>

   $.fn.dataTable.ext.search.push(
   function( settings, data, dataIndex ) {
      table_settings = global_table_settings[settings.sTableId]
      table_hidden_status = table_settings ? table_settings.hidden_status : false;

      if(table_hidden_status) return true;

      var show_gone = $('#show_gone_items')[0].checked;
      var status = data[3];
      var not_gone = status.indexOf("gone (") == -1;

      return not_gone || show_gone;
   }
   );

</script>

{'fraction_non_alphanumeric': 0.18408360128617363, 'fraction_numerical': 0.0040192926045016075, 'mean_word_length': 3.997991967871486, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '6248061', 'n_tokens_mistral': 908, 'n_tokens_neox': 865, 'n_words': 181}