<commit_before>class Scheduler.Milestone extends Backbone.Model
  urlRoot: '/scheduler/milestones'
  
  constructor: ->
    super
    @tickets = []
  
  complexity: ->
    complexity = 0
    indeterminate = false
    for ticket in @tickets
      effort = ticket.get('estimatedEffort')
      if effort > 0
        complexity += +effort
      else
        indeterminate = true
    
    complexity += '+' if indeterminate
    complexity

class Scheduler.Milestones extends Backbone.Collection
  model: Scheduler.Milestone<commit_msg>[improvement] Milestones: rounded complexity up rather than showing an arbitrary number of decimal places (1m)<commit_after>class Scheduler.Milestone extends Backbone.Model
  urlRoot: '/scheduler/milestones'
  
  constructor: ->
    super
    @tickets = []
  
  complexity: ->
    complexity = 0
    indeterminate = false
    for ticket in @tickets
      effort = ticket.get('estimatedEffort')
      if effort > 0
        complexity += +effort
      else
        indeterminate = true
    
    complexity = Math.ceil(complexity)
    complexity += '+' if indeterminate
    complexity

class Scheduler.Milestones extends Backbone.Collection
  model: Scheduler.Milestone
{'fraction_non_alphanumeric': 0.0794314381270903, 'fraction_numerical': 0.004180602006688963, 'mean_word_length': 2.9245901639344263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '677796', 'n_tokens_mistral': 348, 'n_tokens_neox': 340, 'n_words': 91}