<commit_before>var apiKey = require('./../.env').apiKey;


function GithubSearch() {

}

GithubSearch.prototype.getRepos = function(userName, displayName) {
  $.get('https://api.github.com/users/' + userName + '?access_token=' + apiKey).then(function(response){
     displayName(response.name);
   }).fail(function(error){
     console.log(error.responseJSON.message);
   });
// user name
   $.get('https://api.github.com/users/' + userName + '/repos?access_token=' + apiKey).then(function(response){
     for (var index = 0; index <= response.length; index++ ) {
       console.log(response[index].name);
       console.log(response[index].description);
     }
   });
};


exports.searchModule = GithubSearch;<commit_msg>change console log to display response in html<commit_after>var apiKey = require('./../.env').apiKey;


function GithubSearch() {

}

GithubSearch.prototype.getRepos = function(userName, displayName, displayRepo, description) {
  $.get('https://api.github.com/users/' + userName + '?access_token=' + apiKey).then(function(response){
     displayName(response.name);
   }).fail(function(error){
     console.log(error.responseJSON.message);
   });
// user name
   $.get('https://api.github.com/users/' + userName + '/repos?access_token=' + apiKey).then(function(response){
     for (var index = 0; index <= response.length; index++ ) {
       displayRepo(response[index].name);
       description(response[index].description);
     }
   });
};


exports.searchModule = GithubSearch;
{'fraction_non_alphanumeric': 0.17831004657351962, 'fraction_numerical': 0.0013306719893546241, 'mean_word_length': 4.046979865771812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7076103', 'n_tokens_mistral': 466, 'n_tokens_neox': 458, 'n_words': 72}