{"size": 462, "ext": "js", "max_stars_repo_path": "kadira-engine/lib/parsers/_expire.js", "max_stars_repo_name": "fuww/kadira-server", "max_stars_repo_stars_event_min_datetime": "2017-04-07T16:34:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-11T22:53:08.000Z", "max_issues_repo_path": "kadira-engine/lib/parsers/_expire.js", "max_issues_repo_name": "fuww/kadira-server", "max_issues_repo_issues_event_min_datetime": "2021-05-09T11:50:39.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T05:40:49.000Z", "max_forks_repo_path": "kadira-engine/lib/parsers/_expire.js", "max_forks_repo_name": "fuww/kadira-server", "max_forks_repo_forks_event_min_datetime": "2017-04-07T08:52:21.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-31T21:09:24.000Z"}
{"max_stars_count": 336, "max_issues_count": 3, "max_forks_count": 201, "avg_line_length": 24.3157894737, "max_line_length": 83, "alphanum_fraction": 0.5735930736}
var ttls = {
  'free': 1000*60*60*24*2, // 2days
  'solo': 1000*60*60*24*4, // 2days
  'startup': 1000*60*60*24*16, //16days
  'pro': 1000*60*60*24*97, //97days since we don't show more than 93 days on the UI
  'business': 1000*60*60*24*97 //97days
};

module.exports = {
  getTTL: function (app) {
    if(app.perHostBilling) {
      return ttls['startup'];
    } else {
      var plan = app.plan || 'free';
      return ttls[plan] || ttls['free'];
    }
  }
};
