<commit_before>define([
  'text!template/recent.html',
  'text!template/checkin.html',
  'text!template/progress.html',
  'view/drawer',
  'view/venue',
  'view/searchVenue',
  'collection/recent',
  'model/venue'
], function (template, checkinTemplate, progressTemplate, Drawer, Venue, SearchVenue, Recent, VenueModel) {
  'use strict';
  var _drawer,
    _recent,
    _fetch,
    _remove,
    _add,
    _update;

  function _searchVenue(event) {
    event.preventDefault();
    return new SearchVenue(_drawer);
  }

  /**
    Method shows the main view. After the spinner.

    @method _initialize
    @namespace View
    @for Recent
    @static
    @private
  */
  function _show(collection) {
    _drawer.setContent(_.template(template));
    $(collection.models).each(function() {
      _add(this);
    });
    $('body > section > header').prepend('<menu type="toolbar"><a href="#"><span class="icon icon-update">add</span></a></menu>');
    $('body > section > header > menu > a .icon-update').on('click', _update);
    _recent.on('add', _add);
  }

  /**
    Method is called when Login object is initialised.

    @method _initialize
    @namespace View
    @for Recent
    @static
    @private
  */
  function _initialize() {
    _drawer = new Drawer(_remove, _update);
    _drawer.setTitle('Recent checkins');
    _drawer.setContent(_.template(progressTemplate));

    _recent = new Recent();
    _fetch = _recent.fetch({
      success: _show<commit_msg>Added missing description. Removed jquery each() for backbone each().<commit_after>define([
  'text!template/recent.html',
  'text!template/checkin.html',
  'text!template/progress.html',
  'view/drawer',
  'view/venue',
  'view/searchVenue',
  'collection/recent',
  'model/venue'
], function (template, checkinTemplate, progressTemplate, Drawer, Venue, SearchVenue, Recent, VenueModel) {
  'use strict';
  var _drawer,
    _recent,
    _fetch,
    _remove,
    _add,
    _update;

  function _searchVenue(event) {
    event.preventDefault();
    return new SearchVenue(_drawer);
  }

  /**
    Method shows the main view. After the spinner.

    @method _initialize
    @namespace View
    @for Recent
    @param {Backbone.Collection} collection of recent checkins.
    @static
    @private
  */
  function _show(collection) {
    _drawer.setContent(_.template(template));
    collection.each(function(checkin) {
      _add(checkin);
    });
    $('body > section > header').prepend('<menu type="toolbar"><a href="#"><span class="icon icon-update">add</span></a></menu>');
    $('body > section > header > menu > a .icon-update').on('click', _update);
    _recent.on('add', _add);
  }

  /**
    Method is called when Login object is initialised.

    @method _initialize
    @namespace View
    @for Recent
    @static
    @private
  */
  function _initialize() {
    _drawer = new Drawer(_remove, _update);
    _drawer.setTitle('Recent checkins');
    _drawer.setContent(_.template(progressTemplate));

    _recent = new Recent();
    _fetch = _recent.fetch({
      success: _show
{'fraction_non_alphanumeric': 0.14468503937007873, 'fraction_numerical': 0.0, 'mean_word_length': 3.4060693641618496, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 27, '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': '5485857', 'n_tokens_mistral': 986, 'n_tokens_neox': 959, 'n_words': 217}