<commit_before>(function(App) {

  'use strict';

  App.Controller = App.Controller || {};

  App.Controller.Activities = App.Controller.Page.extend({

    index: function(params) {
      new App.View.Masonry({
        el: '#masonry-layout'
      });
      this.filtersView = new App.View.MediaFilters({
        callback: this._filter.bind(this)
      });
    },

    show: function(params) {
      new App.View.ActivitiesAnchors({});
      if(this.isMobile) {
        this.initSliders();
      } else {
        new App.View.Masonry({
          el: '#masonry-layouts'
        });
      }
    },

    _filter: function() {
      jQuery.ajaxSetup({cache: true});
      $.getScript($(location).attr('href'));
      return false;
    },

    initSliders: function() {
      Array.prototype.slice.call(document.querySelectorAll('.js_slider')).forEach(function (element, index) {
        var loryOptions = {
          enableMouseEvents: true
        };
        if(false) {
          loryOptions['infinite'] = 1;
        } else {
          loryOptions['rewind'] = true;
        }

        lory(element, loryOptions);<commit_msg>Lory options<commit_after>(function(App) {

  'use strict';

  App.Controller = App.Controller || {};

  App.Controller.Activities = App.Controller.Page.extend({

    index: function(params) {
      new App.View.Masonry({
        el: '#masonry-layout'
      });
      this.filtersView = new App.View.MediaFilters({
        callback: this._filter.bind(this)
      });
    },

    show: function(params) {
      new App.View.ActivitiesAnchors({});
      if(this.isMobile) {
        this.initSliders();
      } else {
        new App.View.Masonry({
          el: '#masonry-layouts'
        });
      }
    },

    _filter: function() {
      jQuery.ajaxSetup({cache: true});
      $.getScript($(location).attr('href'));
      return false;
    },

    initSliders: function() {
      Array.prototype.slice.call(document.querySelectorAll('.js_slider')).forEach(function (element, index) {
        lory(element, {
          rewind: true,
          enableMouseEvents: true
        });
{'fraction_non_alphanumeric': 0.15245354930919486, 'fraction_numerical': 0.0004764173415912339, 'mean_word_length': 2.2061068702290076, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7148365', 'n_tokens_mistral': 650, 'n_tokens_neox': 639, 'n_words': 99}