<commit_before>var analytics = require('analytics');
var convert = require('convert');
var Feedback = require('feedback-modal');
var mouseenter = require('mouseenter');
var mouseleave = require('mouseleave');
var Calculator = require('route-cost-calculator');
var RouteDirections = require('route-directions-table');
var RouteModal = require('route-modal');
var routeSummarySegments = require('route-summary-segments');
var routeResource = require('route-resource');
var session = require('session');
var transitive = require('transitive');
var view = require('view');
var showMapView = require('map-view');
/**
 * Expose `View`
 */

var View = module.exports = view(require('./template.html'), function(view, model) {
  mouseenter(view.el, function() {
    var itineraries = model.plan();
    console.log("itineraries ->", itineraries);
    console.log("view ->", view);
    console.log("model ->", model);
    showMapView.cleanPolyline();


    for (var i = 0; i < itineraries.legs.length; i++) {
        for (var ii=0; ii < itineraries[i].legs.length; ii++) {
          console.log("se envia", itineraries[i].legs[ii], itineraries[i].legs[ii].mode)
          showMapView.drawRouteAmigo(itineraries[i].legs[ii], itineraries[i].legs[ii].mode);
        }

    }

  });

  mouseleave(view.el, function() {
    if (!view.el.classList.contains('expanded')) {
      var itineraries = model.plan();
      console.log("mouseleave");
        for (var i = 0; i < itineraries.legs.length; i++) {
            for (var ii=0; ii < itineraries[i].legs.length; ii++) {
              console.log("se envia", itineraries[i].legs[ii], itineraries[i].legs[ii].mode)
              showMapView.drawRouteAmigo(itineraries[i].legs[ii], itineraries[i].legs[ii].mode);
            }

        }


    }
  });
});

View.prototype.calculator = function() {
  return new Calculator(this.model);
};

View.prototype.directions = function() {<commit_msg>remove console.log<commit_after>var analytics = require('analytics');
var convert = require('convert');
var Feedback = require('feedback-modal');
var mouseenter = require('mouseenter');
var mouseleave = require('mouseleave');
var Calculator = require('route-cost-calculator');
var RouteDirections = require('route-directions-table');
var RouteModal = require('route-modal');
var routeSummarySegments = require('route-summary-segments');
var routeResource = require('route-resource');
var session = require('session');
var transitive = require('transitive');
var view = require('view');
var showMapView = require('map-view');
/**
 * Expose `View`
 */

var View = module.exports = view(require('./template.html'), function(view, model) {
  mouseenter(view.el, function() {
    var itineraries = model.plan();
    console.log("itineraries ->", itineraries);
    console.log("view ->", view);
    console.log("model ->", model);
    showMapView.cleanPolyline();


    for (var i = 0; i < itineraries.legs.length; i++) {

              console.log("se envia", itineraries.legs[ii], itineraries.legs[ii].mode);
              //showMapView.drawRouteAmigo(itineraries[i].legs[ii], itineraries[i].legs[ii].mode);


        }

  });

  mouseleave(view.el, function() {
    if (!view.el.classList.contains('expanded')) {
      var itineraries = model.plan();
      console.log("mouseleave");
        for (var i = 0; i < itineraries.legs.length; i++) {

              console.log("se envia", itineraries.legs[ii], itineraries.legs[ii].mode);
              //showMapView.drawRouteAmigo(itineraries[i].legs[ii], itineraries[i].legs[ii].mode);


        }


    }
  });
});

View.prototype.calculator = function() {
  return new Calculator(this.model);
};

View.prototype.directions = function() {
{'fraction_non_alphanumeric': 0.17516869095816465, 'fraction_numerical': 0.0016194331983805667, 'mean_word_length': 3.8699080157687256, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4016567', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1133, 'n_words': 219}