<commit_before>'use strict';

app.directive ('ghRepos', function () {
    return {
        restrict: 'E' ,
        templateUrl: '../../views/partials/Repos.html' ,
        link: function (scope, element, attr) {
            scope.$watch ('repos', function (repos) {
                if (repos) {
                    //
                }
            });
        }
    };
});<commit_msg>added show/hide logic<commit_after>'use strict';

app.directive ('ghRepos', function () {
    return {
        restrict: 'E' ,
        templateUrl: '../../views/partials/Repos.html' ,
        link: function (scope, element, attr) {
            scope.$on ('repos', function (event) {
                if (event.currentScope.repos) {
                    scope.repos = event.currentScope.repos;

                    $('.repo').fadeOut (1000, function () {
                        $('.repos').fadeIn ();
                    });
                }
                else {
                    $('.repos').fadeOut (1000, function () {
                        $('.repo').fadeIn ();
                    });
                }
            });
        }
    };
});
{'fraction_non_alphanumeric': 0.16063548102383055, 'fraction_numerical': 0.00706090026478376, 'mean_word_length': 1.16, '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': '237697', 'n_tokens_mistral': 321, 'n_tokens_neox': 290, 'n_words': 55}