<commit_before><%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <meta name="layout" content="admin"/>
  <title><g:message code="admin.title"/></title>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <script>
    $(function() {
      $("#searchForm").on("submit", function(event) {
        var searchFor = $("input[name=searchFor]:checked").val();
        var searchText = $("#searchText").val();

        if (searchText.length === 0) {
          return false;
        }

        $.ajax({
          url:"/admin/search",
          type:"POST",
          data:{searchFor:searchFor, searchText:searchText},
          success:function(data) {
            $("#searchResults").html(data)
          },
          error: function(data) {
            console.log(data)
          }
        });

        return false;
      });
    });
  </script>
  <style>
    #searchForm {
      max-width: 300px;
      border: 1px solid black;
      padding: 5px;
    }
    #searchForm p {
      margin-bottom: 0;
    }
    #searchText {
      min-width: 250px;
      margin: 5px;
    }
    #searchResults {
      margin-top: 20px;
    }
    #searchResults ul {
      padding-left: 2px;
      list-style: none;
    }
  </style>
</head>
<body>
  <div id="content">
    <div id="searchForm">
      <tmpl:searchForm />
    </div>
    <div id="searchResults"></div><commit_msg>DEVIDM-34: fix to show log search<commit_after><%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
  <meta name="layout" content="admin"/>
  <title><g:message code="admin.title"/></title>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  <script>
    $(function() {
      $("#searchForm").on("submit", function(event) {
        var searchFor = $("input[name=searchFor]:checked").val();
        var searchText = $("#searchText").val();

        if (searchText.length === 0) {
          return false;
        }

        $.ajax({
          url:"/admin/search",
          type:"POST",
          data:{searchFor:searchFor, searchText:searchText},
          success:function(data) {
            $("#searchResults").html(data)
          },
          error: function(data) {
            console.log(data)
          }
        });

        return false;
      });
    });
  </script>
  <style>
    #searchForm {
      max-width: 300px;
      border: 1px solid black;
      padding: 5px;
    }
    #searchForm p {
      margin-bottom: 0;
    }
    #searchText {
      min-width: 250px;
      margin: 5px;
    }
    #searchResults {
      margin-top: 20px;
    }
    #searchResults ul {
      padding-left: 2px;
      list-style: none;
    }
  </style>
</head>
<body>
  <div id="content">
    <div id="searchForm">
      <tmpl:searchForm />
    </div>
    <div id="searchResults">
      <g:render template="searchResults" model="[eventLog: eventLog]"/>
    </div>
{'fraction_non_alphanumeric': 0.17590361445783131, 'fraction_numerical': 0.013769363166953529, 'mean_word_length': 2.1080213903743314, 'pattern_counts': {'":': 0, '<': 46, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4490359', 'n_tokens_mistral': 981, 'n_tokens_neox': 939, 'n_words': 167}