<commit_before>/* agent related stuff */
$(document).ready(function(){

  var template = '<form action="/projects/{{projectname}}/agents/new" method="post">\
      <label class="formlabel agents" for="agentname">Name: </label><br> \
      <input type="text" \
            class="forminput" \
            id="agentname" \
            name="agentname" \
            value="{{agentname}}"><br> \
      <label class="formlabel agents" for="description">Description: </label><br> \
      <input type="text" \
            class="forminput" \
            id="description" \
            name="description" \
            value="{{description}}"><br> \
      <label class="formlabel agents" for="callback">Token: </label><br> \
      <input type="text" \
            class="forminput" \
            id="callback" \
            name="token" \
            value="{{callback}}"><br> \
      <label class="formlabel agents" for="agenturl">URL: </label><br> \
      <input type="text" \
            class="forminput" \
            id="agenturl" \
            name="agenturl" \
            value="{{agenturl}}"><br> \
      <input type="submit" value="Save"> <input type="reset"></form>';

  //var view = $.get('/projects/'+$project+'/agents');
  var name = $("#projectname").attr("value");
  var view = {projectname: name };

  $("#newagentlink").click(function(){
        alert(view);
        $("#newagentdiv").html($.mustache(template, view));
      });

});
<commit_msg>don't alert with view<commit_after>/* agent related stuff */
$(document).ready(function(){

  var template = '<form action="/projects/{{projectname}}/agents/new" method="post">\
      <label class="formlabel agents" for="agentname">Name: </label><br> \
      <input type="text" \
            class="forminput" \
            id="agentname" \
            name="agentname" \
            value="{{agentname}}"><br> \
      <label class="formlabel agents" for="description">Description: </label><br> \
      <input type="text" \
            class="forminput" \
            id="description" \
            name="description" \
            value="{{description}}"><br> \
      <label class="formlabel agents" for="callback">Token: </label><br> \
      <input type="text" \
            class="forminput" \
            id="callback" \
            name="token" \
            value="{{callback}}"><br> \
      <label class="formlabel agents" for="agenturl">URL: </label><br> \
      <input type="text" \
            class="forminput" \
            id="agenturl" \
            name="agenturl" \
            value="{{agenturl}}"><br> \
      <input type="submit" value="Save"> <input type="reset"></form>';

  //var view = $.get('/projects/'+$project+'/agents');
  var name = $("#projectname").attr("value");
  var view = {projectname: name };

  $("#newagentlink").click(function(){
        $("#newagentdiv").html($.mustache(template, view));
      });

});

{'fraction_non_alphanumeric': 0.20254908715122288, 'fraction_numerical': 0.0, 'mean_word_length': 2.3650057937427578, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '2861335', 'n_tokens_mistral': 828, 'n_tokens_neox': 816, 'n_words': 148}