<commit_before>/*globals angular */
angular.module('mathCraft').directive('item', function () {
    'use strict';
    return {
        restrict: 'E',
        transclude: true,
        scope: {
            imageUrl: '@',
            name: '@',
            plaintext: '@'
        },
        templateUrl: 'components/item/templates/item.html',
        link: function (scope, element, attrs, ctrl) {
        }
    };
});<commit_msg>created an option to allow no description text in items<commit_after>/*globals angular */
angular.module('mathCraft').directive('item', function () {
    'use strict';
    return {
        restrict: 'E',
        transclude: true,
        scope: {
            imageUrl: '@',
            name: '@',
            plaintext: '@',
            description: '=?'
        },
        templateUrl: 'components/item/templates/item.html',
        controller: function ($scope) {
            $scope.description = $scope.description || true;
        },
        link: function (scope, element, attrs, ctrl) {

        }
    };
});
{'fraction_non_alphanumeric': 0.15259117082533588, 'fraction_numerical': 0.0, 'mean_word_length': 1.9052924791086352, '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': '2556228', 'n_tokens_mistral': 286, 'n_tokens_neox': 288, 'n_words': 62}