<commit_before>if (document.location.hostname == "localhost") {
    var baseurl = "";
} else {
    var baseurl = "https://noconfidencevote.openup.org.za";
}

var agent = navigator.userAgent.toLowerCase();
if (agent.includes("mobile") && agent.includes("android")) {
  // addEventListener only available in later chrome versions
  window.addEventListener("load",function(){
    document.getElementById("contactmps-embed-parent").children[0].setAttribute("style", "height: 3000px");
  });
  document.write('<div id="contactmps-embed-parent" style="height: 3000px"></div>');
} else {
  document.write('<div id="contactmps-embed-parent"></div>');
}
document.write('<script type="text/javascript" src="' + baseurl + '/static/javascript/pym.v1.min.js"></script>');

document.write("<script>var pymParent = new pym.Parent('contactmps-embed-parent', '" + baseurl + "/campaign/newsmedia/', {});</script>");
<commit_msg>Set iframe height attr<commit_after>if (document.location.hostname == "localhost") {
    var baseurl = "";
} else {
    var baseurl = "https://noconfidencevote.openup.org.za";
}

var agent = navigator.userAgent.toLowerCase();
if (agent.includes("mobile") && agent.includes("android")) {
  // addEventListener only available in later chrome versions
  window.addEventListener("load",function(){
    document.getElementById("contactmps-embed-parent").children[0].setAttribute("height", "3000px");
  });
  document.write('<div id="contactmps-embed-parent" style="height: 3000px"></div>');
} else {
  document.write('<div id="contactmps-embed-parent"></div>');
}
document.write('<script type="text/javascript" src="' + baseurl + '/static/javascript/pym.v1.min.js"></script>');

document.write("<script>var pymParent = new pym.Parent('contactmps-embed-parent', '" + baseurl + "/campaign/newsmedia/', {});</script>");

{'fraction_non_alphanumeric': 0.20032930845225028, 'fraction_numerical': 0.010976948408342482, 'mean_word_length': 5.677655677655678, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '2476075', 'n_tokens_mistral': 569, 'n_tokens_neox': 554, 'n_words': 92}