<commit_before>module.exports = 
  url: '/buckets/:bucketId/edit'
  template: require('./edit-bucket-page.html')
  controller: ($scope, Records, $stateParams, $location, Toast) ->
    
    $scope.bucketLoaded = false
    bucketId = parseInt $stateParams.bucketId

    Records.buckets.findOrFetchById(bucketId).then (bucket) ->
      $scope.bucket = bucket
      $scope.bucketLoaded = true
      # temp hack to get around target form number validation
      $scope.bucket.target = parseInt $scope.bucket.target
          <commit_msg>remove hack to get around parse error - api returns correct type now<commit_after>module.exports = 
  url: '/buckets/:bucketId/edit'
  template: require('./edit-bucket-page.html')
  controller: ($scope, Records, $stateParams, $location, Toast) ->
    
    $scope.bucketLoaded = false
    bucketId = parseInt $stateParams.bucketId

    Records.buckets.findOrFetchById(bucketId).then (bucket) ->
      $scope.bucket = bucket
      $scope.bucketLoaded = true
          
{'fraction_non_alphanumeric': 0.11923847695390781, 'fraction_numerical': 0.0, 'mean_word_length': 3.3060344827586206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5996694', 'n_tokens_mistral': 291, 'n_tokens_neox': 285, 'n_words': 67}