<commit_before>function signIn(googleUser) {
    // Useful data for your client-side scripts:
  var profile = googleUser.getBasicProfile();
  console.log('ID: ' + profile.getId()); // Don't send this directly to your server!
  console.log('Name: ' + profile.getName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail());

    // The ID token you need to pass to your backend:
  var idToken = googleUser.getAuthResponse()['id_token'];
  console.log('ID Token: ' + idToken);
}

function signOut() {
  var auth2 = gapi.auth2.getAuthInstance();
  auth2.signOut().then(function () {
    console.log('User signed out.');
  });
}

document.getElementById('signOutLink')
  .addEventListener('click', signOut, false);<commit_msg>closure to signout<commit_after>function signIn(googleUser) {
    // Useful data for your client-side scripts:
  var profile = googleUser.getBasicProfile();
  console.log('ID: ' + profile.getId()); // Don't send this directly to your server!
  console.log('Name: ' + profile.getName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail());

    // The ID token you need to pass to your backend:
  var idToken = googleUser.getAuthResponse()['id_token'];
  console.log('ID Token: ' + idToken);
}

(function() {

function signOut() {
  var auth2 = gapi.auth2.getAuthInstance();
  auth2.signOut().then(function () {
    console.log('User signed out.');
  });
}

document.getElementById('signOutLink')
  .addEventListener('click', signOut, false);

})();
{'fraction_non_alphanumeric': 0.1652839821314614, 'fraction_numerical': 0.0038289725590299937, 'mean_word_length': 4.406896551724138, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '345642', 'n_tokens_mistral': 482, 'n_tokens_neox': 481, 'n_words': 114}