<commit_before>`// @ngInject`
angular.module('cobudget').factory 'RoundModel',  (AllocationModel, BucketModel) ->
  class RoundModel
    constructor: (data = {}) ->
      @id = data.id
      @name = data.name
      @groupId = data.group_id
      @allocations = _.map data.allocations, (allocation) ->
        new AllocationModel(allocation)
      @buckets = _.map data.buckets, (bucket) ->
        new BucketModel(bucket)

    getMyContributions: ->
      @myContributions = _.map @buckets, (bucket) ->
        bucket.myContribution

    getMyAllocationsLeftCents: (myAllocationsCents) ->
      myContributionsCents = _.reduce _.pluck(@myContributions, "amountCents"), (sum, num) ->
        sum + num
      console.log(myAllocationsCents, myContributionsCents)
      @myAllocationsLeftCents = myAllocationsCents - myContributionsCents


    getStatus: ->
      if (@myAllocationsLeftCents >= 0)
        console.log('yay!')
        null
      else
        console.log('awe...')
        'warning'<commit_msg>remove old console.logs<commit_after>`// @ngInject`
angular.module('cobudget').factory 'RoundModel',  (AllocationModel, BucketModel) ->
  class RoundModel
    constructor: (data = {}) ->
      @id = data.id
      @name = data.name
      @groupId = data.group_id
      @allocations = _.map data.allocations, (allocation) ->
        new AllocationModel(allocation)
      @buckets = _.map data.buckets, (bucket) ->
        new BucketModel(bucket)

    getMyContributions: ->
      @myContributions = _.map @buckets, (bucket) ->
        bucket.myContribution

    getMyAllocationsLeftCents: (myAllocationsCents) ->
      myContributionsCents = _.reduce _.pluck(@myContributions, "amountCents"), (sum, num) ->
        sum + num
      console.log(myAllocationsCents, myContributionsCents)
      @myAllocationsLeftCents = myAllocationsCents - myContributionsCents


    getStatus: ->
      if (@myAllocationsLeftCents >= 0)
        null
      else
        'warning'
{'fraction_non_alphanumeric': 0.12169042769857434, 'fraction_numerical': 0.0010183299389002036, 'mean_word_length': 2.8757396449704142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '5609938', 'n_tokens_mistral': 631, 'n_tokens_neox': 600, 'n_words': 115}