<commit_before>Trade.SandboxShipmentsRoute = Trade.BeforeRoute.extend
  queryParams: {
    validation_error_id: { refreshModel: true },
    page: { refreshModel: true }
  }

  model: (params, transition) ->
    @validationError = Trade.ValidationError.find(params.validation_error_id)
    Trade.SandboxShipment.find(params)

  setupController: (controller, model) ->
    controller.set('model', model)
    @controllerFor('annualReportUpload').set('currentError', @validationError)<commit_msg>fix for validation error that doesn't exist any more<commit_after>Trade.SandboxShipmentsRoute = Trade.BeforeRoute.extend
  queryParams: {
    validation_error_id: { refreshModel: true },
    page: { refreshModel: true }
  }

  model: (params, transition) ->
    @annualReportUpload = @modelFor('annualReportUpload')
    Trade.ValidationError.find(params.validation_error_id).then((validationError) =>
      @validationError = validationError
      Trade.SandboxShipment.find(params)
    , (validationError) =>
      @transitionTo('annual_report_upload', @annualReportUpload)
    )

  setupController: (controller, model) ->
    controller.set('model', model)
    @controllerFor('annualReportUpload').set('currentError', @validationError)
{'fraction_non_alphanumeric': 0.11960943856794141, 'fraction_numerical': 0.0, 'mean_word_length': 5.119402985074627, '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': '1373847', 'n_tokens_mistral': 358, 'n_tokens_neox': 354, 'n_words': 57}