<commit_before><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test for PaymentRequest object destruction</title>
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="../../style.css">
<script src="../util.js"></script>
</head>
<body>
<div id="contents">
<h1>Test for PaymentRequest object destruction</h1>

<p>This page creates iframes with PaymentRequest objects and then refreshes them.</p>

<button onclick="runTest()">Run a test</button>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<div id="msg"></div>
</div>
<script>
const iframeUrl = 'https://happy-zippy-danthus.glitch.me/';
const maxMs = 5000;
const iframes = document.getElementsByTagName('iframe');

function refreshIframeAfterRandomInterval(iframe) {
  const interval = Math.floor(Math.random() * maxMs);
  window.setTimeout(() => {
    iframe.src = iframeUrl + '?randomNumber=' + str(interval);
    refreshIframeAfterRandomInterval(iframe);
  }, interval);
}

function runTest() {
  try {
    for (const iframe of iframes) {
      iframe.src = iframeUrl;
      refreshIframeAfterRandomInterval(iframe);
    }
  } catch (e) {
    error(e.toString());
  }
}
</script>
</body>
</html><commit_msg>Correct toString<commit_after><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Test for PaymentRequest object destruction</title>
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" type="text/css" href="../../style.css">
<script src="../util.js"></script>
</head>
<body>
<div id="contents">
<h1>Test for PaymentRequest object destruction</h1>

<p>This page creates iframes with PaymentRequest objects and then refreshes them.</p>

<button onclick="runTest()">Run a test</button>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<iframe allow="payment"></iframe>
<div id="msg"></div>
</div>
<script>
const iframeUrl = 'https://happy-zippy-danthus.glitch.me/';
const maxMs = 5000;
const iframes = document.getElementsByTagName('iframe');

function refreshIframeAfterRandomInterval(iframe) {
  const interval = Math.floor(Math.random() * maxMs);
  window.setTimeout(() => {
    iframe.src = iframeUrl + '?randomNumber=' + (interval).toString();
    refreshIframeAfterRandomInterval(iframe);
  }, interval);
}

function runTest() {
  try {
    for (const iframe of iframes) {
      iframe.src = iframeUrl;
      refreshIframeAfterRandomInterval(iframe);
    }
  } catch (e) {
    error(e.toString());
  }
}
</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.18510998307952622, 'fraction_numerical': 0.0054145516074450084, 'mean_word_length': 5.525386313465783, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '4081301', 'n_tokens_mistral': 1003, 'n_tokens_neox': 932, 'n_words': 212}