<commit_before><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  <script src="js/clipboard.min.js" charset="utf-8"></script>
  <link rel="stylesheet" href="css/main.min.css">
  <title>Document</title>
</head>
<body>
  <div id="inner">
  <h1>Hej hej hej</h1>
  <!-- Target -->
<input id="foo" value="hej">

<!-- Trigger -->
<button class="btn" data-clipboard-target="#foo">
    <img src="assets/clippy.svg" alt="Copy to clipboard">
</button>
</div>
  <script type="text/javascript">
    new Clipboard('.btn');
  </script>
  <script type="application/javascript">
  //get the IP addresses associated with an account
function getIPs(callback){
  var ip_dups = {};

  //compatibility for firefox and chrome
  var RTCPeerConnection = window.RTCPeerConnection
      || window.mozRTCPeerConnection
      || window.webkitRTCPeerConnection;
  var useWebKit = !!window.webkitRTCPeerConnection;

  //bypass naive webrtc blocking using an iframe
  if(!RTCPeerConnection){
      //NOTE: you need to have an iframe in the page right above the script tag
      //
      //<iframe id="iframe" sandbox="allow-same-origin" style="display: none"></iframe>
      //<script>...getIPs called in here...
      //
      var win = iframe.contentWindow;
      RTCPeerConnection = win.RTCPeerConnection
          || win.mozRTCPeerConnection
          || win.webkitRTCPeerConnection;
      useWebKit = !!win.webkitRTCPeerConnection;
  }

  //minimal requirements for data connection
  var mediaConstraints = {
      optional: [{RtpDataChannels: true}]
  };

  var servers = {iceServers: [{urls: "stun:stun.services.mozilla.com"}]};

  //construct a new RTCPeerConnection
  var pc = new RTCPeerConnection(servers, mediaConstraints);

  function handleCandidate(candidate){
      //match just the IP address
      var ip_regex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/
      var ip_addr = ip_regex.exec(candidate)[1];

      //remove duplicates
      if(ip_dups[ip_addr] === undefined)
          callback(ip_addr);

      ip_dups[ip_addr] = true;
  }

  //listen for candidate events
  pc.onicecandidate = function(ice){

      //skip non-candidate events
      if(ice.candidate)
          handleCandidate(ice.candidate.candidate);
  };

  //create a bogus data channel
  pc.createDataChannel("");

  //create an offer sdp
  pc.createOffer(function(result){

      //trigger the stun server request
      pc.setLocalDescription(result, function(){}, function(){});

  }, function(){});

  //wait for a while to let everything done
  setTimeout(function(){
      //read candidate info from local description
      var lines = pc.localDescription.sdp.split('\n');

      lines.forEach(function(line){
          if(line.indexOf('a=candidate:') === 0)
              handleCandidate(line);
      });
  }, 1000);
}

//Test: Print the IP addresses into the console
getIPs(function(ip){alert(ip);});
</script>
</body>
</html><commit_msg>Basic HTML structure<commit_after><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/main.min.css">
    <title>Document</title>

    <script src="js/app.js" charset="utf-8"></script>
</head>
<body>

        <div class="block-full">
          <h1>Localizer</h1><div class="after">Hej</div>
        </div>
        <!-- Target -->
        <input placeholder="enter your text" onfocus="this.placeholder = ''" onblur="this.placeholder = 'enter your text'" />
        <!-- Trigger -->
        <button>
      Convert
  </button>
    <!-- Insert this line above script imports  -->
    <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <!-- Insert this line after script imports -->
    <script>if (window.module) module = window.module;</script>
    <script src="js/app.js" charset="utf-8"></script>

</body>

</html>
{'fraction_non_alphanumeric': 0.16953488372093023, 'fraction_numerical': 0.01, 'mean_word_length': 3.309619238476954, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '41141', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1374, 'n_words': 302}