<commit_before>function userLogin(username,password,endpoint,callback)
{
  var data = {
     user: username,
     pass: password,
     uuid:"0xACA021" //Never changes?
  }

  $.ajax({ 
     url: endpoint, 
     data: data,
     type: "POST",
     xhrFields: {
        withCredentials: true
     },
     complete: callback
  }); 
}

var courses = new steroids.views.WebView("courses.html");

function login(){
  userLogin($("#email").val(), $("#password").val(), "https://my.hofstra.edu/cp/home/login", function(xhr, statusText) { 
       var response = xhr.responseText;

       if(response&&response.indexOf("Error: Failed Login") == -1){
           //Logged in
           alert("Logged in");
           userLogin($("#email").val(), $("#password").val(), "https://my.hofstra.edu/cp/home/login", function(xhr, statusText) { 
              alert("Setting Session");
              $.get("https://my.hofstra.edu/cp/home/next", function(){
                getData(function(data){
<<<<<<< HEAD
=======
                  localStorage['user_data'] = data;
                  steroids.layers.push(courses);
>>>>>>> 3d6c04dfc43b60fcc3f3cffc7acf93e1b4b78f47
                });
              });
           });
       }else{<commit_msg>Stupid git<commit_after>function userLogin(username,password,endpoint,callback)
{
  var data = {
     user: username,
     pass: password,
     uuid:"0xACA021" //Never changes?
  }

  $.ajax({ 
     url: endpoint, 
     data: data,
     type: "POST",
     xhrFields: {
        withCredentials: true
     },
     complete: callback
  }); 
}

var courses = new steroids.views.WebView("courses.html");

function login(){
  userLogin($("#email").val(), $("#password").val(), "https://my.hofstra.edu/cp/home/login", function(xhr, statusText) { 
       var response = xhr.responseText;

       if(response&&response.indexOf("Error: Failed Login") == -1){
           //Logged in
           alert("Logged in");
           userLogin($("#email").val(), $("#password").val(), "https://my.hofstra.edu/cp/home/login", function(xhr, statusText) { 
              alert("Setting Session");
              $.get("https://my.hofstra.edu/cp/home/next", function(){
                getData(function(data){
                  localStorage['user_data'] = data;
                  steroids.layers.push(courses);
                });
              });
           });
       }else{
{'fraction_non_alphanumeric': 0.1771140092553639, 'fraction_numerical': 0.012200252419015565, 'mean_word_length': 2.262002743484225, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 6, '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': '2333399', 'n_tokens_mistral': 743, 'n_tokens_neox': 705, 'n_words': 120}