<commit_before>'use strict';

var BigNumber = require('bignumber.js');

var upperLimitMb = BigNumber(1024).times(16);
var min = function(x, y) { return x.comparedTo(y) < 0 ? x : y; };

module.exports = {
  accounts: {
    storageMb: {
      allocation: function(invites) {
          return min(BigNumber(2048).plus(BigNumber(500).times(invites)), upperLimitMb);
      }
    },
    invites: {}
  },
  notifications: {
    storageUsedOverQuota: function(storageMb) { return BigNumber(storageMb).lt(0); }
  }
};
<commit_msg>0.5GB is 512MB<commit_after>'use strict';

var BigNumber = require('bignumber.js');

var upperLimitMb = BigNumber(1024).times(16);
var min = function(x, y) { return x.comparedTo(y) < 0 ? x : y; };

module.exports = {
  accounts: {
    storageMb: {
      allocation: function(invites) {
        return min(BigNumber(2048).plus(BigNumber(512).times(invites)), upperLimitMb);
      }
    },
    invites: {}
  },
  notifications: {
    storageUsedOverQuota: function(storageMb) { return BigNumber(storageMb).lt(0); }
  }
};

{'fraction_non_alphanumeric': 0.16042267050912584, 'fraction_numerical': 0.03362151777137368, 'mean_word_length': 3.7363636363636363, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2674947', 'n_tokens_mistral': 392, 'n_tokens_neox': 364, 'n_words': 64}