<commit_before>var activeMentors = function () {
  this.endpoint = "/api/mentor_requests/available";
  this.template;
};

activeMentors.prototype.getMentors = function () {
  var self = this;
  $.ajax({
    method: "get",
    url: self.endpoint
  }).done( function(response) {
    self.updateView(response)
  });
};

activeMentors.prototype.updateView = function (data) {
  if (data.length > 0) {
    var html = this.template(data);
    $('#active-mentor-list').html(html)
  } else {
    $('#active-mentor-list').text("There doesn't appear to be any mentors here")
  }
};

activeMentors.prototype.setup = function () {
  this.template = Handlebars.compile($("#mentor-template").html());
  this.getMentors();
  this.poll();
};

activeMentors.prototype.poll = function () {
  var self = this
  setTimeout(function(){
    self.getMentors();
    self.poll();
  }, 120000);
};

var mentorList = new activeMentors()
<commit_msg>Fix english<commit_after>var activeMentors = function () {
  this.endpoint = "/api/mentor_requests/available";
  this.template;
};

activeMentors.prototype.getMentors = function () {
  var self = this;
  $.ajax({
    method: "get",
    url: self.endpoint
  }).done( function(response) {
    self.updateView(response)
  });
};

activeMentors.prototype.updateView = function (data) {
  if (data.length > 0) {
    var html = this.template(data);
    $('#active-mentor-list').html(html)
  } else {
    $('#active-mentor-list').text("There doesn't appear to be any mentors on duty currently.")
  }
};

activeMentors.prototype.setup = function () {
  this.template = Handlebars.compile($("#mentor-template").html());
  this.getMentors();
  this.poll();
};

activeMentors.prototype.poll = function () {
  var self = this
  setTimeout(function(){
    self.getMentors();
    self.poll();
  }, 120000);
};

var mentorList = new activeMentors()

{'fraction_non_alphanumeric': 0.17079741379310345, 'fraction_numerical': 0.007543103448275862, 'mean_word_length': 3.8233766233766233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6121868', 'n_tokens_mistral': 633, 'n_tokens_neox': 621, 'n_words': 117}