<commit_before><div>
  <% if @model.name =~ /3D/ %>
  <p>Sorry, but 3D models cannot be viewed as applets.  You must download this model to try it.</p>
  <% else %>
  <applet
     code="org.nlogo.lite.Applet"
     align="baseline"
     width="<%= @model.dimensions[:width] -%>" height="<%= @model.dimensions[:height] -%>"
     archive="/applet/<%= @model.netlogo_version_for_applet -%>/NetLogoLite.jar">
    <param name="DefaultModel" value="<%= url_for :controller => :browse, :action => :model_contents, :id => @model.id %> ">
  </applet>
  <% end %>

<div id="applet-html"><%= @applet_html -%></div>

</div>
<commit_msg>Got applet classes right, I think!<commit_after><div>
  <% if @model.name =~ /3D/ %>
  <p>Sorry, but 3D models cannot be viewed as applets.  You must download this model to try it.</p>
  <% else %>
  <applet
<% if @model.netlogo_version_for_applet =~ /4\.1/ %>
     code="org.nlogo.lite.Applet"
<% end %>
     code="org.nlogo.window.Applet"
<% else %>
     align="baseline"
     width="<%= @model.dimensions[:width] -%>" height="<%= @model.dimensions[:height] -%>"
     archive="/applet/<%= @model.netlogo_version_for_applet -%>/NetLogoLite.jar">
    <param name="DefaultModel" value="<%= url_for :controller => :browse, :action => :model_contents, :id => @model.id %> ">
  </applet>
  <% end %>

<div id="applet-html"><%= @applet_html -%></div>

</div>

{'fraction_non_alphanumeric': 0.21641249092229484, 'fraction_numerical': 0.004357298474945534, 'mean_word_length': 3.8181818181818183, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2483061', 'n_tokens_mistral': 550, 'n_tokens_neox': 507, 'n_words': 111}