<commit_before>/**
 * Controls the creation of a table that shows the monthly amount
 * difference between two AmountEntryCollections.
 *
 * Copyright 2015 <NAME>
 */

var _ = require('underscore'),
    Backbone = require('backbone'),
    ControlBones = require('./ControlBones'),
    AmountEntry = require('../model/AmountEntry'),
    ParticularsModel = require('../model/ParticularsModel'),
    StatementCollection = require('../model/StatementCollection'),
    StatementsByCategory = require('../model/operations/statements/StatementsByCategory'),
    TotalByMonth = require('../model/operations/entries/TotalByMonth'),
    EntryCollectionNegator = require('../model/operations/entries/EntryCollectionNegator'),
    LinearEntrySum = require('../model/operations/entries/LinearEntrySum'),
    TableRowModel = require('../model/table/TableRowModel'),
    TableView = require('../view/table/TableView'),
    TableRow = require('../view/table/TableRow'),
    AmountEntryCell = require('../view/table/cell/AmountEntryCell'),
    TableMonthRow = require('../view/table/rows/TableMonthRow'),
    SummaryBlock = require('../view/SummaryBlock');


var DifferenceController = ControlBones.extend({
   title: 'Difference Table',
   editable: false,  // Editable is not supported by this type

   /**
    * @param collections Array - Example:
    * {
    *    'minuend': AmountEntryCollection,
    *    'subtrahend': AmountEntryCollection
    * }
    */
   render: function(collections) {
      var self = this;

      // Convert the individual AmountEntry items to a set of monthly<commit_msg>Cleanup requires for DifferenceController<commit_after>/**
 * Controls the creation of a table that shows the monthly amount
 * difference between two AmountEntryCollections.
 *
 * Copyright 2015 <NAME>
 */

var Backbone = require('backbone'),
    ControlBones = require('./ControlBones'),

    // Model
    EntryCollectionNegator = require('../model/operations/entries/EntryCollectionNegator'),
    LinearEntrySum = require('../model/operations/entries/LinearEntrySum'),
    TotalByMonth = require('../model/operations/entries/TotalByMonth'),
    TableRowModel = require('../model/table/TableRowModel'),

    // View
    SummaryBlock = require('../view/SummaryBlock'),
    TableView = require('../view/table/TableView'),
    TableMonthRow = require('../view/table/rows/TableMonthRow'),
    AmountEntryCell = require('../view/table/cell/AmountEntryCell');


var DifferenceController = ControlBones.extend({
   title: 'Difference Table',
   editable: false,  // Editable is not supported by this type

   /**
    * @param collections Array - Example:
    * {
    *    'minuend': AmountEntryCollection,
    *    'subtrahend': AmountEntryCollection
    * }
    */
   render: function(collections) {
      var self = this;

      // Convert the individual AmountEntry items to a set of monthly
{'fraction_non_alphanumeric': 0.13535142658315935, 'fraction_numerical': 0.0027835768963117608, 'mean_word_length': 3.659643435980551, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1198878', 'n_tokens_mistral': 788, 'n_tokens_neox': 762, 'n_words': 171}