<commit_before>var RGif = (function() {
  function getRandomInt(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
  }

  function preloadImage(name) {
    var image = new Image();
    image.src = name;
  }
  
  function constructor(id, images, range) {
    this.id = id;
    this.element = document.getElementById(this.id);
    this.images = images;
    this.range = range;
    this.currentImageIndex = 0;
    this.timeout = undefined;

    for (var i = 0; i < this.images.length; i++) {
      preloadImage(this.images[i]);
    }
  }

  constructor.prototype = {
    start: function() {
      var updateImage = (function() {
        this.element.src = this.images[++this.currentImageIndex];
<commit_msg>Documented utility functions.<commit_after>var RGif = (function() {

  /* Returns a random integer between 'min' and 'max' */
  function getRandomInt(min, max) {    
    return Math.floor(Math.random() * (max - min + 1)) + min;
  }

  /* Pre loads a given image with path 'name' */
  function preloadImage(name) {
    var image = new Image();
    image.src = name;
  }
  
  function constructor(id, images, range) {
    this.id = id;
    this.element = document.getElementById(this.id);
    this.images = images;
    this.range = range;
    this.currentImageIndex = 0;
    this.timeout = undefined;

    for (var i = 0; i < this.images.length; i++) {
      preloadImage(this.images[i]);
    }
  }

  constructor.prototype = {
    start: function() {
      var updateImage = (function() {
        this.element.src = this.images[++this.currentImageIndex];

{'fraction_non_alphanumeric': 0.14231499051233396, 'fraction_numerical': 0.003795066413662239, 'mean_word_length': 2.7937649880095923, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3452724', 'n_tokens_mistral': 518, 'n_tokens_neox': 502, 'n_words': 122}