<commit_before>function GetURLParameter(sParam) {
  var sPageURL = window.location.search.substring(1);
  var sURLVariables = sPageURL.split('&');
  for (var i = 0; i < sURLVariables.length; i++)
  {
    var sParameterName = sURLVariables[i].split('=');
    if (sParameterName[0] == sParam)
    {
      return sParameterName[1];
    }
  }
}

function SetConsumerName() {
  var encodedName = GetURLParameter("consumer_name");
  var consumerName = decodeURIComponent(encodedName);
  $(".form-signin-heading").prepend(consumerName);
}

function SetConsumerLogo() {
  var encodedLogoURL = GetURLParameter("logo_url");
  var consumerLogoURL =  decodeURIComponent(encodedLogoURL);
  $("#consumer-logo").html("<img src='" + consumerLogoURL + "' alt='Consumer Logo Alt Text'>")
}

$(document).ready(function() {
  SetConsumerName()
  SetConsumerLogo()
});<commit_msg>hide logos if no customer logo available<commit_after>function GetURLParameter(sParam) {
  var sPageURL = window.location.search.substring(1);
  var sURLVariables = sPageURL.split('&');
  for (var i = 0; i < sURLVariables.length; i++)
  {
    var sParameterName = sURLVariables[i].split('=');
    if (sParameterName[0] == sParam)
    {
      return sParameterName[1];
    }
  }
}

function SetConsumerName() {
  var encodedName = GetURLParameter("consumer_name");
  var consumerName = decodeURIComponent(encodedName);
  $(".form-signin-heading").prepend(consumerName);
}

function SetConsumerLogo() {
  var encodedLogoURL = GetURLParameter("logo_url");
  var consumerLogoURL =  decodeURIComponent(encodedLogoURL);
  if (encodedLogoURL) {
    $("#consumer-logo").html("<img src='" + consumerLogoURL + "' alt='Consumer Logo Alt Text'>");
  } else {
    $("#sharing-logos").hide();
  }
}

$(document).ready(function() {
  SetConsumerName()
  SetConsumerLogo()
});
{'fraction_non_alphanumeric': 0.1561297416162727, 'fraction_numerical': 0.0043980208905992305, 'mean_word_length': 4.928338762214984, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2852435', 'n_tokens_mistral': 595, 'n_tokens_neox': 595, 'n_words': 110}