<commit_before>angular.module('jtt_bricklayer', [])
    .directive('bricklayer', ['$timeout', function ($timeout) {
        return {
            restrict: 'C',
            link: function (scope, element, attrs) {
                var bricklayer = new Bricklayer(element[0]);

                $timeout(function () {
                    bricklayer.redraw();
                });

                scope.$on('bricklayer.append', function (event, element) {
                    bricklayer.append(element);
                    bricklayer.redraw();
                });

                scope.$on('bricklayer.prepend', function (event, element) {
                    bricklayer.prepend(element);
                    bricklayer.redraw();
                });

                scope.$on('bricklayer.redraw', function () {
                    bricklayer.redraw();
                });
            }
        }
    }])
    .directive('bricklayerAppend', function () {
        return {
            require: '?bricklayer',
            restrict: 'ACE',
            link: function (scope, element, attrs) {
                scope.$emit('bricklayer.append', element[0]);
            }
        }
    })
    .directive('bricklayerPrepend', function () {
        return {
            require: '?bricklayer',
            restrict: 'ACE',
            link: function (scope, element, attrs) {
                scope.$emit('bricklayer.prepend', element[0]);
            }
        }
    });<commit_msg>fixed require<commit_after>angular.module('jtt_bricklayer', [])
    .directive('bricklayer', ['$timeout', function ($timeout) {
        return {
            restrict: 'C',
            link: function (scope, element, attrs) {
                var bricklayer = new Bricklayer(element[0]);

                $timeout(function () {
                    bricklayer.redraw();
                });

                scope.$on('bricklayer.append', function (event, element) {
                    bricklayer.append(element);
                    bricklayer.redraw();
                });

                scope.$on('bricklayer.prepend', function (event, element) {
                    bricklayer.prepend(element);
                    bricklayer.redraw();
                });

                scope.$on('bricklayer.redraw', function () {
                    bricklayer.redraw();
                });
            },
            controller: function ($scope) {}
        }
    }])
    .directive('bricklayerAppend', function () {
        return {
            require: '^^bricklayer',
            restrict: 'ACE',
            link: function (scope, element, attrs) {
                scope.$emit('bricklayer.append', element[0]);
            }
        }
    })
    .directive('bricklayerPrepend', function () {
        return {
            require: '^^bricklayer',
            restrict: 'ACE',
            link: function (scope, element, attrs) {
                scope.$emit('bricklayer.prepend', element[0]);
            }
        }
    });
{'fraction_non_alphanumeric': 0.13621151271753681, 'fraction_numerical': 0.002008032128514056, 'mean_word_length': 1.3873801916932906, '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': '1174655', 'n_tokens_mistral': 779, 'n_tokens_neox': 760, 'n_words': 128}