<commit_before>define(function (require) {
  'use strict';

  var modules = require('modules');
  var states = require('states');

  require('scripts/components/services/csar');
  require('scripts/common/services/websocket_services');
  require('scripts/deployment/services/deployment_services');

  states.state('components.csars.csardetail', {
    url: '/:csarId',
    templateUrl: 'views/components/csar_details.html',
    controller: 'CsarDetailsCtrl'
  });

  modules.get('a4c-components', ['ui.router', 'ui.bootstrap', 'a4c-deployment']).controller(
    'CsarDetailsCtrl', ['$scope', '$stateParams', '$state', 'csarService', 'deploymentServices', 'webSocketServices', '$translate', 'toaster',
    function($scope, $stateParams, $state, csarService, deploymentServices, webSocketServices, $translate, toaster) {
      /* Retrieve CSAR to display */
      $scope.csarId = $stateParams.csarId;

      $scope.refreshDetails = function() {
        csarService.getAndDeleteCsar.get({
          csarId: $scope.csarId
        }, function(successResult) {
          $scope.csar = successResult.data;
          refreshDeploymentStatus();<commit_msg>Fix csar detail url matching to avoid conflict with csar list url.<commit_after>define(function (require) {
  'use strict';

  var modules = require('modules');
  var states = require('states');

  require('scripts/components/services/csar');
  require('scripts/common/services/websocket_services');
  require('scripts/deployment/services/deployment_services');

  states.state('components.csars.csardetail', {
    url: '/detail/:csarId',
    templateUrl: 'views/components/csar_details.html',
    controller: 'CsarDetailsCtrl'
  });

  modules.get('a4c-components', ['ui.router', 'ui.bootstrap', 'a4c-deployment']).controller(
    'CsarDetailsCtrl', ['$scope', '$stateParams', '$state', 'csarService', 'deploymentServices', 'webSocketServices', '$translate', 'toaster',
    function($scope, $stateParams, $state, csarService, deploymentServices, webSocketServices, $translate, toaster) {
      /* Retrieve CSAR to display */
      $scope.csarId = $stateParams.csarId;

      $scope.refreshDetails = function() {
        csarService.getAndDeleteCsar.get({
          csarId: $scope.csarId
        }, function(successResult) {
          $scope.csar = successResult.data;
          refreshDeploymentStatus();
{'fraction_non_alphanumeric': 0.15148936170212765, 'fraction_numerical': 0.001702127659574468, 'mean_word_length': 4.467441860465116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1091694', 'n_tokens_mistral': 709, 'n_tokens_neox': 691, 'n_words': 122}