<commit_before>'use strict';

angular.module('BaubleApp')
    .controller('TaxonViewCtrl', function ($scope, $location, Alert, Taxon, DeleteModal) {

        $scope.taxon = null;
        $scope.counts = null;

        $scope.$watch('selected', function(selected) {
            $scope.taxon = $scope.selected;
            Taxon.get($scope.taxon, {embed: ['synonyms', 'vernacular_names']})
                .success(function(data, status, headers, config) {
                    $scope.taxon = data;
                })
                .error(function(data, status, headers, config) {
                    var defaultMessage = 'Could not get taxon details';<commit_msg>embed more fields for taxon view<commit_after>'use strict';

angular.module('BaubleApp')
    .controller('TaxonViewCtrl', function ($scope, $location, Alert, Taxon, DeleteModal) {

        $scope.taxon = null;
        $scope.counts = null;

        $scope.$watch('selected', function(selected) {
            $scope.taxon = $scope.selected;
            Taxon.get($scope.taxon, {embed: ['synonyms', 'vernacular_names', 'genus', 'genus.family']})
                .success(function(data, status, headers, config) {
                    $scope.taxon = data;
                })
                .error(function(data, status, headers, config) {
                    var defaultMessage = 'Could not get taxon details';
{'fraction_non_alphanumeric': 0.13795620437956205, 'fraction_numerical': 0.0, 'mean_word_length': 2.3036144578313253, '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': '655075', 'n_tokens_mistral': 397, 'n_tokens_neox': 376, 'n_words': 84}