<commit_before><!--!
   Copyright 2015 CityGrid Media, LLC

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<!DOCTYPE html>
<html lang="en-US"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      metal:define-macro="layout">
  <head profile="http://www.w3.org/2005/10/profile">
    <link rel="icon"
        type="image/png"
        href="/static/img/favico.png?v=3">
    <link href="/static/css/arsenal.css" rel="stylesheet" type="text/css" />
    <link href="/static/css/singleton.css" rel="stylesheet" type="text/css" />
    <script src="/static/js/jquery-2.1.3.min.js"></script>
    <script src="/static/js/jquery-ui.min.js"></script>
    <script src="/static/js/jquery.dragtable.js"></script>
    <script src="/static/js/jquery.tablesorter.min.js"></script>
    <script src="/static/js/resizable.js"></script>
  </head>
  <body>
    <div tal:condition="physical_elevation">
      <div id="page_title_s">
        <span class="page_title_type_s">objects/physical_elevation/</span> <span class="page_title_name_s">${physical_elevation.elevation}</span>
      </div>
      <ul class="tabs">
        <li>
          <input type="radio" checked name="tabs" id="tab1">
          <label for="tab1">Physical Elevation</label>
          <div id="tab-content1" class="tab-content">
            <table>
                <tr>
                    <td>ID</td><td><span class="mono">${physical_elevation.id}</span></td>
                </tr>
                <tr>
                    <td>Elevation</td><td><span class="mono">${physical_elevation.elevation}</span></td>
                </tr>
                <tr>
                    <td>Physical Location</td><td><span class="mono">${physical_elevation.physical_rack.physical_location.name}</span></td>
                </tr>
                <tr>
                    <td>Physical Rack</td><td><span class="mono">${physical_elevation.physical_rack.name}</span></td>
                </tr>
                <tr>
                    <td>Created At</td><td><span class="mono">${physical_elevation.created}</span></td>
                </tr>
                <tr>
                    <td>Updated At</td><td><span class="mono">${physical_elevation.updated}</span></td>
                </tr>
                <tr>
                    <td>Updated By</td><td><span class="mono">${physical_elevation.updated_by}</span></td>
                </tr>
            </table>
          </div>
        </li>
        <li>
          <input type="radio" name="tabs" id="tab_hist">
          <label for="tab_hist">History</label>
          <div id="tab-content_hist" class="tab-content">
              <div id="history_insert">
                  <a class="show_history" tal:attributes="href '/physical_elevations_audit/{0}'.format(physical_elevation.id)">Show history for this Physical Elevation</a>
              </div>
          </div>
        </li>
      </ul>
    </div>
    <div tal:condition="not physical_elevation">
      <div id="page_title_s">
        <span class="page_title_type_s">objects/physical_elevation/</span> <span class="page_title_name_s">Not Found</span>
      </div>
    </div>
    <script>
      $(document).ready(function() {
        // History tab ajax loader
        $('.show_history').click(function(event){
            event.preventDefault();
            var url = $(this).attr('href');
            $.ajax({
                url: url,
                success: function(result){
                  $("#history_insert").html(result);
                },
                error: function (jXHR, textStatus, errorThrown) {
                  $("#history_insert").html(errorThrown);
                }
            });
        });
        $(document).ajaxStart(function() {
          $("#history_insert").html('<div id="loading_image_c"><img src="/static/img/ajax-loader.gif"></div>');
        });
      });
    </script>
  </body>
</html>
<commit_msg>INFRA-15903: Adding physical device to singl elevation view<commit_after><!--!
   Copyright 2015 CityGrid Media, LLC

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<!DOCTYPE html>
<html lang="en-US"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      metal:define-macro="layout">
  <head profile="http://www.w3.org/2005/10/profile">
    <link rel="icon"
        type="image/png"
        href="/static/img/favico.png?v=3">
    <link href="/static/css/arsenal.css" rel="stylesheet" type="text/css" />
    <link href="/static/css/singleton.css" rel="stylesheet" type="text/css" />
    <script src="/static/js/jquery-2.1.3.min.js"></script>
    <script src="/static/js/jquery-ui.min.js"></script>
    <script src="/static/js/jquery.dragtable.js"></script>
    <script src="/static/js/jquery.tablesorter.min.js"></script>
    <script src="/static/js/resizable.js"></script>
  </head>
  <body>
    <div tal:condition="physical_elevation">
      <div id="page_title_s">
        <span class="page_title_type_s">objects/physical_elevation/</span> <span class="page_title_name_s">${physical_elevation.elevation}</span>
      </div>
      <ul class="tabs">
        <li>
          <input type="radio" checked name="tabs" id="tab1">
          <label for="tab1">Physical Elevation</label>
          <div id="tab-content1" class="tab-content">
            <table>
                <tr>
                    <td>ID</td><td><span class="mono">${physical_elevation.id}</span></td>
                </tr>
                <tr>
                    <td>Elevation</td><td><span class="mono">${physical_elevation.elevation}</span></td>
                </tr>
                <tr>
                    <td>Physical Location</td><td><span class="mono">${physical_elevation.physical_rack.physical_location.name}</span></td>
                </tr>
                <tr>
                    <td>Physical Rack</td><td><span class="mono">${physical_elevation.physical_rack.name}</span></td>
                </tr>
                <tr>
                    <td>Created At</td><td><span class="mono">${physical_elevation.created}</span></td>
                </tr>
                <tr>
                    <td>Updated At</td><td><span class="mono">${physical_elevation.updated}</span></td>
                </tr>
                <tr>
                    <td>Updated By</td><td><span class="mono">${physical_elevation.updated_by}</span></td>
                </tr>
            </table>
          </div>
        </li>
        <li>
          <input type="radio" name="tabs" id="tab2">
          <label for="tab2">Physical Device</label>
          <div id="tab-content2" class="tab-content">
            <table>
                <tr>
                    <td>ID</td><td><span class="mono">${physical_elevation.physical_device.id}</span></td>
                </tr>
                <tr>
                    <td>Serial Number</td><td><span class="mono">${physical_elevation.physical_device.serial_number}</span></td>
                </tr>
                <tr>
                    <td>Hardware Profile</td><td><span class="mono">${physical_elevation.physical_device.hardware_profile.name}</span></td>
                </tr>
                <tr>
                    <td>Physical Rack</td><td><span class="mono">${physical_elevation.physical_rack.name}</span></td>
                </tr>
            </table>
              <span tal:condition="not physical_elevation.physical_device" class="mono">No physical device found for physical elevation.</span>
          </div>
        </li>
        <li>
          <input type="radio" name="tabs" id="tab_hist">
          <label for="tab_hist">History</label>
          <div id="tab-content_hist" class="tab-content">
              <div id="history_insert">
                  <a class="show_history" tal:attributes="href '/physical_elevations_audit/{0}'.format(physical_elevation.id)">Show history for this Physical Elevation</a>
              </div>
          </div>
        </li>
      </ul>
    </div>
    <div tal:condition="not physical_elevation">
      <div id="page_title_s">
        <span class="page_title_type_s">objects/physical_elevation/</span> <span class="page_title_name_s">Not Found</span>
      </div>
    </div>
    <script>
      $(document).ready(function() {
        // History tab ajax loader
        $('.show_history').click(function(event){
            event.preventDefault();
            var url = $(this).attr('href');
            $.ajax({
                url: url,
                success: function(result){
                  $("#history_insert").html(result);
                },
                error: function (jXHR, textStatus, errorThrown) {
                  $("#history_insert").html(errorThrown);
                }
            });
        });
        $(document).ajaxStart(function() {
          $("#history_insert").html('<div id="loading_image_c"><img src="/static/img/ajax-loader.gif"></div>');
        });
      });
    </script>
  </body>
</html>

{'fraction_non_alphanumeric': 0.16368870359340879, 'fraction_numerical': 0.006352987889616835, 'mean_word_length': 2.139607354315986, 'pattern_counts': {'":': 0, '<': 286, '<?xml version=': 0, '>': 286, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 10}, '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': '7314163', 'n_tokens_mistral': 3143, 'n_tokens_neox': 2935, 'n_words': 543}