<commit_before><%
# WontoMedia - a wontology web application
# Copyright (C) 2009 - <NAME>
#    www.wontology.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version
# 3 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program in the file COPYING and/or LICENSE.  If not,
# see "http://www.gnu.org/licenses/".
%>


<script type="text/javascript">
  function sizeDescDiv(name){
    var h = document.viewport.getHeight() / 6;
    $(name + "_desc").style.height = h + "px";
    var w = $("edge_" + name + "_id").getWidth();
    $(name + "_desc").style.width  = w + "px";
  }
</script>
<style>
  div.desc {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
  }
</style>


<p class="directions">
  You must select a node for each of the
  <span id="subject_required">subject</span>,
  <span id="predicate_required">relationship</span>, and
  <span id="obj_required">object</span>.
</p>

<table>
  <tr><td style="text-align: right">
    <%= f.label :subject_id %>
  </td><td>
    <%= select_tag "edge[subject_id]",
          options_for_select(
            [[ "- this object -", "" ]] +
              nodes.map do |n|
                [ h("#{n.name} : #{n.title}"), n.id ]<commit_msg>Fix to prevent node Description text from overflowing the <div> that contains it.  Tweaked top margin for <p> within <div> to tighten up display.<commit_after><%
# WontoMedia - a wontology web application
# Copyright (C) 2009 - <NAME>
#    www.wontology.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version
# 3 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program in the file COPYING and/or LICENSE.  If not,
# see "http://www.gnu.org/licenses/".
%>


<script type="text/javascript">
  function sizeDescDiv(name){
    var h = document.viewport.getHeight() / 6;
    $(name + "_desc").style.height = h + "px";
    var w = $("edge_" + name + "_id").getWidth();
    $(name + "_desc").style.width  = w + "px";
  }
</script>
<style>
  div {
    overflow: auto;
  }
  div.desc {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
  }
  div p {
    margin-top: 0.5ex;
  }
</style>


<p class="directions">
  You must select a node for each of the
  <span id="subject_required">subject</span>,
  <span id="predicate_required">relationship</span>, and
  <span id="obj_required">object</span>.
</p>

<table>
  <tr><td style="text-align: right">
    <%= f.label :subject_id %>
  </td><td>
    <%= select_tag "edge[subject_id]",
          options_for_select(
            [[ "- this object -", "" ]] +
              nodes.map do |n|
                [ h("#{n.name} : #{n.title}"), n.id ]
{'fraction_non_alphanumeric': 0.13574920908829452, 'fraction_numerical': 0.004026459591601955, 'mean_word_length': 3.2106537530266346, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5927192', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1071, 'n_words': 382}