<commit_before>gfw.ui.model.Timeline = Backbone.Model.extend({
  defaults: {
    hidden: true,
    playing: false,
    animationSpeed: 300,
    animationDelay: 250
  }
});

gfw.ui.view.Timeline = gfw.ui.view.Widget.extend({
  className: "timeline",

  events: {

    "click .action":          "_onClickAction",
    "click .years li .month": "_onClickMonth",
    "click .years li .year":  "_onClickYear",
    "mouseenter .handle":     "_onMouseEnterHandle",
    "mouseleave .handle":     "_onMouseLeaveHandle"

  },

  initialize: function() {

    _.bindAll(this, "_onStartDrag", "toggle", "_onDrag", "_onStopDragging", "_animate", "_stopAnimation");

    var template = $("#timeline_new-template").html();

    this.model = new gfw.ui.model.Timeline({
      hidden:    true,
      startYear: 2006,
      endYear:   2012
    });

    this.add_related_model(this.model);

    this.model.set("play_mode", true);

    this.model.on("change:line",         this._onChangeLine,  this);

    this.model.on("change:left_handle",  this._onChangeLeftHandle,  this);<commit_msg>Adds 2014<commit_after>gfw.ui.model.Timeline = Backbone.Model.extend({
  defaults: {
    hidden: true,
    playing: false,
    animationSpeed: 300,
    animationDelay: 250
  }
});

gfw.ui.view.Timeline = gfw.ui.view.Widget.extend({
  className: "timeline",

  events: {

    "click .action":          "_onClickAction",
    "click .years li .month": "_onClickMonth",
    "click .years li .year":  "_onClickYear",
    "mouseenter .handle":     "_onMouseEnterHandle",
    "mouseleave .handle":     "_onMouseLeaveHandle"

  },

  initialize: function() {

    _.bindAll(this, "_onStartDrag", "toggle", "_onDrag", "_onStopDragging", "_animate", "_stopAnimation");

    var template = $("#timeline_new-template").html();

    this.model = new gfw.ui.model.Timeline({
      hidden:    true,
      startYear: 2006,
      endYear:   2014
    });

    this.add_related_model(this.model);

    this.model.set("play_mode", true);

    this.model.on("change:line",         this._onChangeLine,  this);

    this.model.on("change:left_handle",  this._onChangeLeftHandle,  this);
{'fraction_non_alphanumeric': 0.15586854460093896, 'fraction_numerical': 0.015023474178403756, 'mean_word_length': 3.162109375, 'pattern_counts': {'":': 10, '<': 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': '7137924', 'n_tokens_mistral': 749, 'n_tokens_neox': 690, 'n_words': 130}