<commit_before>window.addEventListener('load', function() {
  var lock = new Auth0Lock(AUTH0_CLIENT_ID, AUTH0_DOMAIN);
  var btn_login = document.getElementById('btn-login');

  if (btn_login) {
    btn_login.addEventListener('click', function() {
      lock.show();
    });
  }

  document.getElementById('btn-logout').addEventListener('click', function() {
    logout();
  });
<commit_msg>Used CONTEXT as base URL.<commit_after>window.addEventListener('load', function() {
  var lock = new Auth0Lock(AUTH0_CLIENT_ID, AUTH0_DOMAIN);
  var btn_login = document.getElementById('btn-login');

  var href = window.location.href;
  var baseUrl = href.split(CONTEXT)[0] + CONTEXT;
  document.write('<base href="'+ baseUrl + '" />');

  if (btn_login) {
    btn_login.addEventListener('click', function() {
      lock.show();
    });
  }

  document.getElementById('btn-logout').addEventListener('click', function() {
    logout();
  });

{'fraction_non_alphanumeric': 0.16630901287553648, 'fraction_numerical': 0.0075107296137339056, 'mean_word_length': 4.553571428571429, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6106838', 'n_tokens_mistral': 288, 'n_tokens_neox': 285, 'n_words': 50}