<commit_before>angular.module("slidenav",[])
	.constant('CSS_CLASSES',{
		site: 'site',
		content: 'content',
		nav: 'nav',
		menuOpen: 'drawer-open'
	})
	.factory('slidenav', ['$timeout', function($timeout){

	    var state = {
	    	isOpen: false
	    }

		return {
			state: state,
			open: function(){
				$timeout(function(){
					state.isOpen = true;	
				});
				
			},
			close: function(){
				$timeout(function(){
					state.isOpen = false;	
				});
				
			},
			isOpen: function(){
				return state.isOpen;
			}
		}
	}])
	.directive("slidenav", ['CSS_CLASSES',function(CSS_CLASSES){
	    return {
	        restrict: "E",
	        scope: {},
	        transclude: true,
	        template: '<div class="'+ CSS_CLASSES.site + '" ng-class="{\'' + CSS_CLASSES.menuOpen + '\': slidenav.isOpen()}" ng-transclude></div>',
	        replace: true,
	        controller: ['$scope', '$timeout', 'slidenav', '$element',function($scope, $timeout, slidenav, $element){

	        	$scope.slidenav = slidenav;

	        }],
	        link: function(scope, element, attrs){
	        }
	    }
	}])
	.directive("slidenavMenu", ['CSS_CLASSES', function(CSS_CLASSES){
	    return {
	        restrict: "E",
	        transclude: true,
	        scope: {},	
	        template: '<nav class="' + CSS_CLASSES.nav + '" ng-transclude></nav>',
	        replace: true,
	        controller: ['$scope',function($scope){
	        	
	        }],
	        link: function(scope, element, attrs){
	        }
	    }
	}])
	.directive("slidenavContent", ['slidenav', 'CSS_CLASSES', function(slidenav, CSS_CLASSES){
	    return {
	        restrict: "E",
	        transclude: true,
	        scope: {},
	        template: '<div class="' + CSS_CLASSES.content + '" ng-click="closeNav()" ng-transclude></div>',
	        replace: true,
	        controller: ['$scope', '$element', 'slidenav', function($scope, $element, slidenav){

	        	$scope.closeNav = function(){
	            	if(slidenav.isOpen()){
	            		slidenav.close();
	            	}
	            }

	        }],
	        link: function(scope, element, attrs, ctrl){
	        }
	    }
	}]);<commit_msg>Rename classes<commit_after>angular.module("slidenav",[])
	.constant('CSS_CLASSES',{
		site: 'st-site',
		content: 'st-content',
		nav: 'st-nav',
		menuOpen: 'st-drawer-open'
	})
	.factory('slidenav', ['$timeout', function($timeout){

	    var state = {
	    	isOpen: false
	    }

		return {
			state: state,
			open: function(){
				$timeout(function(){
					state.isOpen = true;	
				});
				
			},
			close: function(){
				$timeout(function(){
					state.isOpen = false;	
				});
				
			},
			isOpen: function(){
				return state.isOpen;
			}
		}
	}])
	.directive("slidenav", ['CSS_CLASSES',function(CSS_CLASSES){
	    return {
	        restrict: "E",
	        scope: {},
	        transclude: true,
	        template: '<div class="'+ CSS_CLASSES.site + '" ng-class="{\'' + CSS_CLASSES.menuOpen + '\': slidenav.isOpen()}" ng-transclude></div>',
	        replace: true,
	        controller: ['$scope', '$timeout', 'slidenav', '$element',function($scope, $timeout, slidenav, $element){

	        	$scope.slidenav = slidenav;

	        }],
	        link: function(scope, element, attrs){
	        }
	    }
	}])
	.directive("slidenavMenu", ['CSS_CLASSES', function(CSS_CLASSES){
	    return {
	        restrict: "E",
	        transclude: true,
	        scope: {},	
	        template: '<nav class="' + CSS_CLASSES.nav + '" ng-transclude></nav>',
	        replace: true,
	        controller: ['$scope',function($scope){
	        	
	        }],
	        link: function(scope, element, attrs){
	        }
	    }
	}])
	.directive("slidenavContent", ['slidenav', 'CSS_CLASSES', function(slidenav, CSS_CLASSES){
	    return {
	        restrict: "E",
	        transclude: true,
	        scope: {},
	        template: '<div class="' + CSS_CLASSES.content + '" ng-click="closeNav()" ng-transclude></div>',
	        replace: true,
	        controller: ['$scope', '$element', 'slidenav', function($scope, $element, slidenav){

	        	$scope.closeNav = function(){
	            	if(slidenav.isOpen()){
	            		slidenav.close();
	            	}
	            }

	        }],
	        link: function(scope, element, attrs, ctrl){
	        }
	    }
	}]);

{'fraction_non_alphanumeric': 0.1788048552754435, 'fraction_numerical': 0.0, 'mean_word_length': 2.200149365197909, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1940041', 'n_tokens_mistral': 1608, 'n_tokens_neox': 1377, 'n_words': 247}