<commit_before>App.module("Predictor", function(Mod, App, Backbone, Marionette, $, _) {

  Mod.views.FlightParametersEditor = Marionette.ItemView.extend({
    template: 'flightParametersEditor',
    model: Mod.FlightModel,
    tagName: 'form',
    events: {
      'click #next': 'next',
      'click #prev': 'prev'
    },

    onShow: function() {
      // Populate form with current data
      Backbone.Syphon.deserialize(this, Mod.currentPrediction.attributes);
    },

    next: function() {
      // Serialize the form
      var data = Backbone.Syphon.serialize(this);
      console.log(data);
      // Store the data in the current model
      if(data.brand) Mod.currentPrediction.set({'brand':data.brand});
      if(data.size) Mod.currentPrediction.set({'size':data.size});
      if(data.mass) Mod.currentPrediction.set({'mass':data.mass});
      if(data.lift) Mod.currentPrediction.set({'lift':data.lift});
      // Save the model
      Mod.currentPrediction.save();

      // Go to the next step
      App.vent.trigger('ForwardPrediction:Display', 3);
    },

    prev: function() {
      App.vent.trigger('ForwardPrediction:Display', 1);<commit_msg>Remove debug console output from ParametersEditor.<commit_after>App.module("Predictor", function(Mod, App, Backbone, Marionette, $, _) {

  Mod.views.FlightParametersEditor = Marionette.ItemView.extend({
    template: 'flightParametersEditor',
    model: Mod.FlightModel,
    tagName: 'form',
    events: {
      'click #next': 'next',
      'click #prev': 'prev'
    },

    onShow: function() {
      // Populate form with current data
      Backbone.Syphon.deserialize(this, Mod.currentPrediction.attributes);
    },

    next: function() {
      // Serialize the form
      var data = Backbone.Syphon.serialize(this);
      // Store the data in the current model
      if(data.brand) Mod.currentPrediction.set({'brand':data.brand});
      if(data.size) Mod.currentPrediction.set({'size':data.size});
      if(data.mass) Mod.currentPrediction.set({'mass':data.mass});
      if(data.lift) Mod.currentPrediction.set({'lift':data.lift});
      // Save the model
      Mod.currentPrediction.save();

      // Go to the next step
      App.vent.trigger('ForwardPrediction:Display', 3);
    },

    prev: function() {
      App.vent.trigger('ForwardPrediction:Display', 1);
{'fraction_non_alphanumeric': 0.1490549828178694, 'fraction_numerical': 0.001718213058419244, 'mean_word_length': 3.1963963963963966, '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': '2137051', 'n_tokens_mistral': 731, 'n_tokens_neox': 700, 'n_words': 139}