<commit_before>(function () {
  var Iframe = {
    init: function () {
      this.buildFrame();
      this.attachEvents();
    },
    attachEvents: function () {
      var self = this,
          images;

      // Remove images that error out
      images = document.getElementsByClassName('instagram-img');
      for (var i = 1; i < images.length; i++) {
        images[i].addEventListener('error', function (e) {
          e.srcElement.parentNode.remove();
        }, false);
      }

      // Respond to viewport changes
      window.onresize = function (event) {
        self.buildFrame();
      };
    },
    // Sorting utility based on diff
    compare: function (a,b) {
      if (a.diff < b.diff) {
        return -1;
      }<commit_msg>Fix iframe image error off by one bug<commit_after>(function () {
  var Iframe = {
    init: function () {
      this.buildFrame();
      this.attachEvents();
    },
    attachEvents: function () {
      var self = this,
          images;

      // Remove images that error out
      images = document.getElementsByClassName('instagram-img');
      for (var i = 0; i < images.length; i++) {
        images[i].addEventListener('error', function (e) {
          e.srcElement.parentNode.remove();
        }, false);
      }

      // Respond to viewport changes
      window.onresize = function (event) {
        self.buildFrame();
      };
    },
    // Sorting utility based on diff
    compare: function (a,b) {
      if (a.diff < b.diff) {
        return -1;
      }
{'fraction_non_alphanumeric': 0.13509933774834437, 'fraction_numerical': 0.0026490066225165563, 'mean_word_length': 1.951171875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '241611', 'n_tokens_mistral': 442, 'n_tokens_neox': 433, 'n_words': 113}