<commit_before>$(document).ready(function(){
  console.log("Connected");
  Search.form_listener();
  Display.list_listener();
})

var Search = (function(){
  return{
    form_listener: function(){
      $("#search_container").on("submit", "#search_form", function(event){
        event.preventDefault();
        var formData = $("input[name='search']").serialize();
        Search.request_search(formData);
      })
    },

    request_search: function(formData){
      var ajaxFind =
        $.ajax({
          type: "POST",
          url: "search/find",
          data: formData,
          dataType: "HTML"
        });

      ajaxFind.done(function(response){
        Search.html_results(response);
      })
    },

    html_results: function(responsePackage){
      $("#results_container").html(responsePackage);
    }
  }
}())

var Display = (function(){
  return {
    list_listener: function(){
      $("#results_container").on("click", "a", function(event){
        event.preventDefault();
        var contact_id = $(this).attr("data-id");

      })
    },
    request_contact: function(id){
      var pacakgeData = {id: id};
      var ajax
    }
  };
}())<commit_msg>Add Displayy.request_contact_template javascript method to hit #display route with contact ID expecting a template in return<commit_after>$(document).ready(function(){
  console.log("Connected");
  Search.form_listener();
  Display.list_listener();
})

var Search = (function(){
  return{
    form_listener: function(){
      $("#search_container").on("submit", "#search_form", function(event){
        event.preventDefault();
        var formData = $("input[name='search']").serialize();
        Search.request_search(formData);
      })
    },

    request_search: function(formData){
      var ajaxFind =
        $.ajax({
          type: "POST",
          url: "search/find",
          data: formData,
          dataType: "HTML"
        });

      ajaxFind.done(function(response){
        Search.html_results(response);
      })
    },

    html_results: function(responsePackage){
      $("#results_container").html(responsePackage);
    }
  }
}())

var Display = (function(){
  return {
    list_listener: function(){
      $("#results_container").on("click", "a", function(event){
        event.preventDefault();
        var contact_id = $(this).attr("data-id");

      })
    },
    request_contact_template: function(id){
      var packageData = {id: id};
      var ajaxDisplay =
        $.ajax({
          type: "POST",
          url: "search/display",
          data: packageData,
          dataType: "HTML"
        });

      ajaxDisplay.done(function(response){
        console.log(response);
      })
    }
  };
}())
{'fraction_non_alphanumeric': 0.16303142329020331, 'fraction_numerical': 0.0, 'mean_word_length': 2.6176470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3381312', 'n_tokens_mistral': 783, 'n_tokens_neox': 774, 'n_words': 140}