<commit_before>$(document).ready(function(event){
   $('#submit').click(function(event){
      getData();
      
   });
   $('#formThing').submit(function(event){
      event.preventDefault();
      getData();
   });
});
function getData(){
    $.get('https://api.twitch.tv/kraken/channels/' + $('#inputText').val(), "", function(data){
         
         var avatar = data['logo'];
         var Username = data['display_name'];
         var followers = data['followers'];
         var Follows = data['follows']['name'];
         var totalViews = data['views'];
         var sub = data['partner'];
         var mature = data['mature'];
         var online = data['status'];
         if(data['game'] != null){
            var lastPlayed = data['game'];
         }else{
            var lastPlayed = "None";
         }
         var joined = data['created_at'];
         var html = '<center><img src="' + avatar + '"width="100px" height="100px" style="border:3px solid #fff">';
         html += '<h1><span class="label label-success">' + Username + '</h1>';
         html += '<br><b><span class="label label-success">Followers:' + followers + '</b>';
         html += '<br><b><span class="label label-success">Last Follower:' + Follows + '</b>';
         html += '<br><b><span class="label label-success">Total Views:' + totalViews + '</b>';
         html += "<br>";
         html += '<br><b><span class="label label-success">Current Status: ' + online + '</b>';
         html += "<br>";
         html += '<br><b><span class="label label-info"><font color="White"><a href="https://twitch.tv/' + Username + '">Twitch.tv/'+ Username +'</a></font></b>';
         html += '<br><b><span class="label label-danger">Partnered:' + sub + '</b>';
         html += '<br><b><span class="label label-primary">Has mature content: ' + mature + '</b>';
         html += '<br><b><span class="label label-primary">Last Played: ' + lastPlayed + '</b>';
         html += '<br><b><span class="label label-success">Joined on: '+joined+' </b>'.replace('T', ' at ');
         $('.profile').html(html);
      }).fail(function(data){<commit_msg>Update main.js<commit_after>$(document).ready(function(event){
   $('#submit').click(function(event){
      getData();
      
   });
   $('#formThing').submit(function(event){
      event.preventDefault();
      getData();
   });
});
function getData(){
    $.get('https://api.twitch.tv/kraken/channels/' + $('#inputText').val(), "", function(data){
         
         var avatar = data['logo'];
         var Username = data['display_name'];
         var followers = data['followers'];
         var Follows = data['follows'];
         var totalViews = data['views'];
         var sub = data['partner'];
         var mature = data['mature'];
         var online = data['status'];
         if(data['game'] != null){
            var lastPlayed = data['game'];
         }else{
            var lastPlayed = "None";
         }
         var joined = data['created_at'];
         var html = '<center><img src="' + avatar + '"width="100px" height="100px" style="border:3px solid #fff">';
         html += '<h1><span class="label label-success">' + Username + '</h1>';
         html += '<br><b><span class="label label-success">Followers:' + followers + '</b>';
         html += '<br><b><span class="label label-success">Last Follower:' + Follows + '</b>';
         html += '<br><b><span class="label label-success">Total Views:' + totalViews + '</b>';
         html += "<br>";
         html += '<br><b><span class="label label-success">Current Status: ' + online + '</b>';
         html += "<br>";
         html += '<br><b><span class="label label-info"><font color="White"><a href="https://twitch.tv/' + Username + '">Twitch.tv/'+ Username +'</a></font></b>';
         html += '<br><b><span class="label label-danger">Partnered:' + sub + '</b>';
         html += '<br><b><span class="label label-primary">Has mature content: ' + mature + '</b>';
         html += '<br><b><span class="label label-primary">Last Played: ' + lastPlayed + '</b>';
         html += '<br><b><span class="label label-success">Joined on: '+joined+' </b>'.replace('T', ' at ');
         $('.profile').html(html);
      }).fail(function(data){
{'fraction_non_alphanumeric': 0.2280369405635804, 'fraction_numerical': 0.004262372720814586, 'mean_word_length': 2.829555757026292, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 4, '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': '163486', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1245, 'n_words': 270}