<commit_before>taxi.DriverView = Backbone.View.extend({
  className : 'taxi-driver',
  contexts : {},
  destroy : function () {
    var
      runners = this.model.get('passengers'),
      afterEach = this.model.get('afterEach'),
      contexts = this.contexts;
    if (afterEach) {
      _.each(runners, function (runner) {
        afterEach.call(contexts[runner.key]);
      });
    }
  },
  render : function () {
    var
      data = this.getRenderData(),
      html = taxi.templates.driver(data);
    this.$el.html(html);
    this.$runners = this.$el.find('.taxi-driver-runners');
    this.renderRunners();
    return this;
  },
  renderRunners : function () {
    var
      key = this.model.get('key'),
      $runners = this.$runners,
      runners = this.model.get('passengers'),
      beforeEach = this.model.get('beforeEach'),
      contexts = this.contexts;
    _.each(runners, function (runner) {
      var
        context = {},
        $html = $(taxi.templates.runner({
          'runner' : runner,
          'driver_key' : key
        })),
        $container = $html.find('.taxi-runner-container'),
        options = {
          $container : $container
        };
      if (beforeEach) {
        beforeEach.call(context, options);
      }
      if (runner.callback) {
        runner.callback.call(context, options);
      }
      $runners.append($html);
      contexts[runner.key] = context;
    });
  },
  getRenderData : function () {
    return this.model.toJSON();
  },
  scroll : function (key) {
    var
      selector = '[data-key="' + key + '"]',
      $runner = this.$runners.children().filter(selector),
      position = $runner.position();
    if (position) {
      console.log(position.top);
      this.$el.scrollTop(position.top);
    }
  }
});<commit_msg>Remove console log.<commit_after>taxi.DriverView = Backbone.View.extend({
  className : 'taxi-driver',
  contexts : {},
  destroy : function () {
    var
      runners = this.model.get('passengers'),
      afterEach = this.model.get('afterEach'),
      contexts = this.contexts;
    if (afterEach) {
      _.each(runners, function (runner) {
        afterEach.call(contexts[runner.key]);
      });
    }
  },
  render : function () {
    var
      data = this.getRenderData(),
      html = taxi.templates.driver(data);
    this.$el.html(html);
    this.$runners = this.$el.find('.taxi-driver-runners');
    this.renderRunners();
    return this;
  },
  renderRunners : function () {
    var
      key = this.model.get('key'),
      $runners = this.$runners,
      runners = this.model.get('passengers'),
      beforeEach = this.model.get('beforeEach'),
      contexts = this.contexts;
    _.each(runners, function (runner) {
      var
        context = {},
        $html = $(taxi.templates.runner({
          'runner' : runner,
          'driver_key' : key
        })),
        $container = $html.find('.taxi-runner-container'),
        options = {
          $container : $container
        };
      if (beforeEach) {
        beforeEach.call(context, options);
      }
      if (runner.callback) {
        runner.callback.call(context, options);
      }
      $runners.append($html);
      contexts[runner.key] = context;
    });
  },
  getRenderData : function () {
    return this.model.toJSON();
  },
  scroll : function (key) {
    var
      selector = '[data-key="' + key + '"]',
      $runner = this.$runners.children().filter(selector),
      position = $runner.position();
    if (position) {
      this.$el.scrollTop(position.top);
    }
  }
});
{'fraction_non_alphanumeric': 0.1635077793493635, 'fraction_numerical': 0.0, 'mean_word_length': 2.27104532839963, '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': '4580116', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1100, 'n_words': 185}