<commit_before>(function(){
  // console.log("IIFE working!") //tracer bullet
  // $.ajax({url: "https://api.github.com/users/octocat"});
  // console.log($.ajax({url:"../apis/github/users/octocat.json"}));


  // console.log($.ajax("../apis/github/users/octocat.json"));
  // $.ajax("../apis/github/users/octocat.json").then(function(){
  //   console.log(arguments)
  // });
  // var email;
  // console.log("first email: " + email);
  // $.ajax("../apis/github/users/octocat.json").then(function(){
  //   console.log(arguments[0].email);
  //   email = arguments[0].email;
  //   console.log("email: " + email);
  // });
  // console.log("outside the function - email: " + email);

  $("nav#tabs h3").on('click', function(){
    // console.log("clicked a tab");
    $("nav#tabs h3").removeClass("active");
    $(this).addClass("active");
    $elementId = $("h3.active").get(0).id;
    // console.log($elementId);
    $("section.panel").addClass("inactive");
    $("section#"+$elementId).removeClass("inactive");
  });

  $.getJSON("../apis/github/users/s4dmw.json", function(){
    info = arguments[0];
    // console.log(info.name);
    $("#user-info img").attr("src", info.avatar_url);
    $("h1:contains('name')").html(info.name);
    $("h2:contains('login')").html(info.login);
    $("li:contains('company')").html(info.company);
    $("li:contains('location')").html(info.location);
    $("a:contains('email')").html(info.email).attr("href", "mailto:"+info.email);
    // console.log(new Date(info.created_at));
    $("li:contains('created_at')").html(new Date(info.created_at));
    $("strong:contains('followers')").html(info.followers);
    $("strong:contains('following')").html(info.following);
  }); //end user data section

//not the right way to do this but just making something happen so i can go to bed!!
  $.getJSON("../apis/github/users/s4dmw/repositories.json", function(){
    repos = arguments[0][0];
    console.log(repos);
    $("li :contains('name')").html(repos.name);
    $("li :contains('description')").html(repos.description);
    $("li :contains('updated_at')").html(repos.updated_at);
    $("li :contains('language')").html(repos.language);
    $("li :contains('stargazers_count')").html(repos.stargazers_count);
    $("li :contains('forks_count')").html(repos.forks_count);
  }); //end repos section

})();<commit_msg>added controller for tablet view<commit_after>(function(){
  // console.log("IIFE working!") //tracer bullet
  // $.ajax({url: "https://api.github.com/users/octocat"});
  // console.log($.ajax({url:"../apis/github/users/octocat.json"}));


  // console.log($.ajax("../apis/github/users/octocat.json"));
  // $.ajax("../apis/github/users/octocat.json").then(function(){
  //   console.log(arguments)
  // });
  // var email;
  // console.log("first email: " + email);
  // $.ajax("../apis/github/users/octocat.json").then(function(){
  //   console.log(arguments[0].email);
  //   email = arguments[0].email;
  //   console.log("email: " + email);
  // });
  // console.log("outside the function - email: " + email);

  $("nav#tabs h3").on('click', function(){
    // console.log("clicked a tab");
    $("nav#tabs h3").removeClass("active");
    $(this).addClass("active");
    $elementId = $("h3.active").get(0).id;
    // console.log($elementId);
    $("section.panel").addClass("inactive");
    $("section#"+$elementId).removeClass("inactive");
  });

  $.getJSON("../apis/github/users/s4dmw.json", function(){
    info = arguments[0];
    // console.log(info.name);
    $("#user-info img").attr("src", info.avatar_url);
    $("h1:contains('name')").html(info.name);
    $("h2:contains('login')").html(info.login);
    $("li:contains('company')").html(info.company);
    $("li:contains('location')").html(info.location);
    $("a:contains('email')").html(info.email).attr("href", "mailto:"+info.email);
    // console.log(new Date(info.created_at));
    $("li:contains('created_at')").html(new Date(info.created_at));
    $("strong:contains('followers')").html(info.followers);
    $("strong:contains('following')").html(info.following);
  }); //end user data section

//not the right way to do this but just making something happen so i can go to bed!!
  $.getJSON("../apis/github/users/s4dmw/repositories.json", function(){
    repos = arguments[0][0];
    // console.log(repos);
    $("li :contains('name')").html(repos.name);
    $("li :contains('description')").html(repos.description);
    $("li :contains('updated_at')").html(repos.updated_at);
    $("li :contains('language')").html(repos.language);
    $("li :contains('stargazers_count')").html(repos.stargazers_count);
    $("li :contains('forks_count')").html(repos.forks_count);
  }); //end repos section

  //mobile tabs
  $("nav#tablet-view-left").click(function(){
    console.log("clicked on the left tablet tab");
    $(this).addClass("active")
    $("nav#tablet-view-right").removeClass("active");
    $("section#user-info").addClass("active");
  });

  $("nav#tablet-view-right").click(function(){
    console.log("clicked on the right tablet tab");
    $(this).addClass("active")
    $("nav#tablet-view-left").removeClass("active");
    $("section#user-info").removeClass("active");
  });


})();
{'fraction_non_alphanumeric': 0.25004786521156425, 'fraction_numerical': 0.004977982002680452, 'mean_word_length': 4.066925315227934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '712361', 'n_tokens_mistral': 1789, 'n_tokens_neox': 1753, 'n_words': 232}