<commit_before>﻿<div style="height:436px; overflow: hidden;padding-left: 15px;padding-right: 15px;">
  <div class="row well" style="padding:0px;margin-bottom: 3px;">
    <ul class="list-inline" style="margin:2px;">
      <li>
        <small class="text-primary">{{msg.time | chatTime}}</small>
      </li>
      <li class="text-primary">
        <{{msg.name}}>
      </li>
      <li>
        {{msg.message}}
      </li>
    </ul>
  </div>
</div>
<div class="row well" style="margin-top:10px;">
  <div class="col-xs-2">
    <button class="btn btn-info" onclick="sendMessages()"><b>Send</b></button>
    <button class="btn btn-info" onclick="askMessages()"><b>Ask messages</b></button>
  </div>
  <div class="form-group col-xs-10">
    <input class="form-control" id="message" type="text" maxlength="240">
  </div>
</div>

<script>
  var lastTime;
  function askMessages() {
    $.ajax({
      type: "POST",
      url: "Chat/GetMessage",
      data: { fromTime: lastTime },
      success: function (data) {
        lastTime = $.now();
        alert(data);
      }
    });
  };
  function sendMessages() {
    $.ajax({
      type: "POST",
      url: "Chat/SendMessage",
      data: { message: $("#message").val()},
      success: function (data) {
        $("#message").val() = "";
        alert(data);
      }
    });
  };
</script><commit_msg>Fix get messages url. Fix send message syntax error.<commit_after>﻿<div style="height:436px; overflow: hidden;padding-left: 15px;padding-right: 15px;">
  <div class="row well" style="padding:0px;margin-bottom: 3px;">
    <ul class="list-inline" style="margin:2px;">
      <li>
        <small class="text-primary">{{msg.time | chatTime}}</small>
      </li>
      <li class="text-primary">
        <{{msg.name}}>
      </li>
      <li>
        {{msg.message}}
      </li>
    </ul>
  </div>
</div>
<div class="row well" style="margin-top:10px;">
  <div class="col-xs-2">
    <button class="btn btn-info" onclick="sendMessages()"><b>Send</b></button>
    <button class="btn btn-info" onclick="askMessages()"><b>Ask messages</b></button>
  </div>
  <div class="form-group col-xs-10">
    <input class="form-control" id="message" type="text" maxlength="240">
  </div>
</div>

<script>
  var lastTime = $.now();
  function askMessages() {
    $.ajax({
      type: "POST",
      url: "Chat/GetMessages",
      data: { fromTime: lastTime },
      success: function (data) {
        lastTime = $.now();
        alert(data);
      }
    });
  };
  function sendMessages() {
    $.ajax({
      type: "POST",
      url: "Chat/SendMessage",
      data: { message: $("#message").val()},
      success: function (data) {
        $("#message").val = "";
        alert(data);
      }
    });
  };
</script>
{'fraction_non_alphanumeric': 0.21266471449487556, 'fraction_numerical': 0.013177159590043924, 'mean_word_length': 2.754120879120879, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '5889459', 'n_tokens_mistral': 955, 'n_tokens_neox': 922, 'n_words': 188}