<commit_before><%= stylesheet_link_tag 'cytoscape_isa_graph' %>
<%= javascript_include_tag 'cytoscape_isa_graph' %>


<%
   current_item ||= nil
   max_node_number ||= 10
   force_max_node ||= true
   cytoscape_elements = cytoscape_elements(root_item, deep, current_item)

   #show only current node and connected nodes
   #if set force_max_node to true, show only max_node_number if (current node + connected nodes) is bigger then max_node_number
   reduced_elements = reduced_elements(cytoscape_elements, max_node_number, force_max_node, root_item, current_item)
%>

<div class="row">

  <div class="hidden-xs clearfix">
    <div class="col-md-12 col-sm-12 isa_graph box_about_actor curved with_smaller_shadow">

      <% if cytoscape_elements.size > reduced_elements.size %>
          <%= link_to_function ("Full graph "+image("expand")).html_safe,
                               "drawGraph(elements,current_element_id);$('full_graph_expand_image').toggle();$('reduced_graph_collapse_image').toggle();return false;",
                               :id => 'full_graph_expand_image',
                               :class => 'graph_toggle'
          -%>
          <%= link_to_function ("Reduced graph "+image("collapse")).html_safe,
                               "drawGraph(reduced_elements,current_element_id);$('full_graph_expand_image').toggle();$('reduced_graph_collapse_image').toggle();return false;",
                               :id => 'reduced_graph_collapse_image',
                               :style => "display:none",
                               :class => 'graph_toggle'
          -%>
      <% end %>

      <div class="row">
        <div class="alert alert-info" role="alert" id="node_info">

          </div><commit_msg>Stopped ISA graph being so small<commit_after><%= stylesheet_link_tag 'cytoscape_isa_graph' %>
<%= javascript_include_tag 'cytoscape_isa_graph' %>


<%
   current_item ||= nil
   max_node_number ||= 10
   force_max_node ||= true
   cytoscape_elements = cytoscape_elements(root_item, deep, current_item)

   #show only current node and connected nodes
   #if set force_max_node to true, show only max_node_number if (current node + connected nodes) is bigger then max_node_number
   reduced_elements = reduced_elements(cytoscape_elements, max_node_number, force_max_node, root_item, current_item)
%>

<div class="row">

  <div class="hidden-xs">
    <div class="col-md-12 col-sm-12 isa_graph box_about_actor curved with_smaller_shadow">

      <% if cytoscape_elements.size > reduced_elements.size %>
          <%= link_to_function ("Full graph "+image("expand")).html_safe,
                               "drawGraph(elements,current_element_id);$('full_graph_expand_image').toggle();$('reduced_graph_collapse_image').toggle();return false;",
                               :id => 'full_graph_expand_image',
                               :class => 'graph_toggle'
          -%>
          <%= link_to_function ("Reduced graph "+image("collapse")).html_safe,
                               "drawGraph(reduced_elements,current_element_id);$('full_graph_expand_image').toggle();$('reduced_graph_collapse_image').toggle();return false;",
                               :id => 'reduced_graph_collapse_image',
                               :style => "display:none",
                               :class => 'graph_toggle'
          -%>
      <% end %>

      <div class="row">
        <div class="alert alert-info" role="alert" id="node_info">

          </div>
{'fraction_non_alphanumeric': 0.12235563178959405, 'fraction_numerical': 0.003430531732418525, 'mean_word_length': 2.7827027027027027, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6798959', 'n_tokens_mistral': 1071, 'n_tokens_neox': 998, 'n_words': 185}