<commit_before><div id="search-data">
  <%- form_for(@model, :url => search_project_yogo_data_path(@project, @model.name.demodulize), :html => {:method => :get} ) do |f| -%>
    <%= text_field_tag("search_term") %>
    <%= f.submit('Search within this set') %>
  <%- end -%>
</div>

<div id="data-index">

  <H3><%= @model.name.demodulize.titleize %> (<%= @model.count %>)</H3>

  <!-- This is an alternative to the table using google visualiztion api (the javascript is now included in the app) -->
  <%# cols = @model.properties.map { |prop| [ Yogo::Types.dm_to_gv(prop.type), Extlib::Inflection.humanize(prop.name.to_s) ] }%>
  <%# gvdata = @data.map { |item| @model.properties.map { |p| item[p.name]  } } %>
  <%# visualization("test_table", "Table", {:data => gvdata, :columns => cols }) { } %>

  <table id="data-index-table">
    <thead>
      <tr>
        <th class="data-index-table-actions"></th>
        <%- @model.usable_properties.each do |h| %>
        <th><%= h.name.to_s.titleize %></th>
        <%- end %>
      </tr>
    </thead>
    <tbody>
    <%- @data.each do |d| %>
      <tr class="<%=cycle("alternate-rows0","") %>">
        <td class="data-index-table-actions"><%= link_to(image_tag('view.gif', :alt => "View Item", :title => "View Item"), project_yogo_data_path(@project, @model.name.demodulize, d.yogo_id)) %>
        <%= link_to(image_tag('edit.png',:alt => "Edit Item", :title => "Edit Item"), edit_project_yogo_data_path(@project, @model.name.demodulize, d.yogo_id)) %>
        <%= link_to(image_tag('remove.png',:alt => "Delete Item", :title => "Delete Item"), project_yogo_data_path(@project, @model.name.demodulize, d.yogo_id), :method => :delete, :confirm => "There is no undo.\n Continue?") %></td>
        <%- @model.usable_properties.each do |p| %>
        <td><%= d[p.name] %></td>
        <%- end %>
      </tr>
      <%- end %><commit_msg>updated google data grid to use usable_properties.<commit_after><div id="search-data">
  <%- form_for(@model, :url => search_project_yogo_data_path(@project, @model.name.demodulize), :html => {:method => :get} ) do |f| -%>
    <%= text_field_tag("search_term") %>
    <%= f.submit('Search within this set') %>
  <%- end -%>
</div>

<div id="data-index">

  <H3><%= @model.name.demodulize.titleize %> (<%= @model.count %>)</H3>

  <!-- This is an alternative to the table using google visualiztion api (the javascript is now included in the app) -->
  <%# cols = @model.usable_properties.map { |prop| [ Yogo::Types.dm_to_gv(prop.type), Extlib::Inflection.humanize(prop.name.to_s) ] }%>
  <%# gvdata = @data.map { |item| @model.usable_properties.map { |p| item[p.name]  } } %>
  <%# visualization("test_table", "Table", {:data => gvdata, :columns => cols }) { } %>

  <table id="data-index-table">
    <thead>
      <tr>
        <th class="data-index-table-actions"></th>
        <%- @model.usable_properties.each do |h| %>
        <th><%= h.name.to_s.titleize %></th>
        <%- end %>
      </tr>
    </thead>
    <tbody>
    <%- @data.each do |d| %>
      <tr class="<%=cycle("alternate-rows0","") %>">
        <td class="data-index-table-actions"><%= link_to(image_tag('view.gif', :alt => "View Item", :title => "View Item"), project_yogo_data_path(@project, @model.name.demodulize, d.yogo_id)) %>
        <%= link_to(image_tag('edit.png',:alt => "Edit Item", :title => "Edit Item"), edit_project_yogo_data_path(@project, @model.name.demodulize, d.yogo_id)) %>
        <%= link_to(image_tag('remove.png',:alt => "Delete Item", :title => "Delete Item"), project_yogo_data_path(@project, @model.name.demodulize, d.yogo_id), :method => :delete, :confirm => "There is no undo.\n Continue?") %></td>
        <%- @model.usable_properties.each do |p| %>
        <td><%= d[p.name] %></td>
        <%- end %>
      </tr>
      <%- end %>
{'fraction_non_alphanumeric': 0.2259249540802939, 'fraction_numerical': 0.001574389923904487, 'mean_word_length': 3.5059101654846336, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 115, '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': '1765819', 'n_tokens_mistral': 1493, 'n_tokens_neox': 1386, 'n_words': 264}