<commit_before><html ng-app="demo">
	<head>
		<title title>NgIdle Sample</title>
		<script src="../bower_components/angular/angular.js"></script>
		<script src="../angular-idle.min.js"></script>
		<script type="text/javascript">
			var app = angular.module('demo', ['ngIdle']);
			app
			.controller('EventsCtrl', function($scope, Idle) {
				$scope.events = [];
				$scope.idle = 5;
				$scope.timeout = 5;

				$scope.$on('IdleStart', function() {
					$scope.events.push({event: 'IdleStart', date: new Date()});
				});

				$scope.$on('IdleEnd', function() {
					$scope.events.push({event: 'IdleEnd', date: new Date()});
				});

				$scope.$on('IdleWarn', function(e, countdown) {
					$scope.events.push({event: 'IdleWarn', date: new Date(), countdown: countdown});
				});

				$scope.$on('IdleTimeout', function() {
					$scope.events.push({event: 'IdleTimeout', date: new Date()});
				});

				$scope.$on('Keepalive', function() {
					$scope.events.push({event: 'Keepalive', date: new Date()});
				});

				$scope.reset = function() {
					Idle.watch();
				}

				$scope.$watch('idle', function(value) {
					if (value !== null) Idle.setIdle(value);
				});

				$scope.$watch('timeout', function(value) {
					if (value !== null) Idle.setTimeout(value);
				});
			})
			.config(function(IdleProvider, KeepaliveProvider) {
				KeepaliveProvider.interval(10);
			})
			.run(function($rootScope, Idle, $log, Keepalive){
				Idle.watch();

				$log.debug('app started.');
			});
		</script>
	</head>
	<body>
		<div ng-controller="EventsCtrl" idle-countdown="countdown">
			<h1>Idle and Keepalive events</h1>
			<button type="button" ng-click="reset()">Reset manually</button>
			<ul>
				<li ng-repeat="event in events">{{event}}</li>
			</ul>

			Timeout in {{countdown}} seconds.

			<div>
				Change idle value <input type="number" ng-model="idle" />
			</div>
			<div>
				Change timeout value <input type="number" ng-model="timeout" />
			</div>
		</div>
	</body>
</html><commit_msg>Title attribute must be added to title for 1.2 :-/<commit_after><html ng-app="demo">
	<head>
		<title title>NgIdle Sample</title>
		<script src="../bower_components/angular/angular.js"></script>
		<script src="../angular-idle.min.js"></script>
		<script type="text/javascript">
			var app = angular.module('demo', ['ngIdle']);
			app
			.controller('EventsCtrl', function($scope, Idle) {
				$scope.events = [];
				$scope.idle = 5;
				$scope.timeout = 5;

				$scope.$on('IdleStart', function() {
					$scope.events.push({event: 'IdleStart', date: new Date()});
				});

				$scope.$on('IdleEnd', function() {
					$scope.events.push({event: 'IdleEnd', date: new Date()});
				});

				$scope.$on('IdleWarn', function(e, countdown) {
					$scope.events.push({event: 'IdleWarn', date: new Date(), countdown: countdown});
				});

				$scope.$on('IdleTimeout', function() {
					$scope.events.push({event: 'IdleTimeout', date: new Date()});
				});

				$scope.$on('Keepalive', function() {
					$scope.events.push({event: 'Keepalive', date: new Date()});
				});

				$scope.reset = function() {
					Idle.watch();
				}

				$scope.$watch('idle', function(value) {
					if (value !== null) Idle.setIdle(value);
				});

				$scope.$watch('timeout', function(value) {
					if (value !== null) Idle.setTimeout(value);
				});
			})
			.config(function(IdleProvider, KeepaliveProvider) {
				KeepaliveProvider.interval(10);
			})
			.run(function($rootScope, Idle, $log, Keepalive){
				Idle.watch();

				$log.debug('app started.');
			});
		</script>
	</head>
	<body ng-controller="EventsCtrl">
		<div idle-countdown="countdown">
			<h1>Idle and Keepalive events</h1>
			<button type="button" ng-click="reset()">Reset manually</button>
			<ul>
				<li ng-repeat="event in events">{{event}}</li>
			</ul>

			Timeout in {{countdown}} seconds.

			<div>
				Change idle value <input type="number" ng-model="idle" />
			</div>
			<div>
				Change timeout value <input type="number" ng-model="timeout" />
			</div>
		</div>
	</body>
</html>
{'fraction_non_alphanumeric': 0.2100569729997523, 'fraction_numerical': 0.0034679217240525142, 'mean_word_length': 3.4227820372398687, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '3659348', 'n_tokens_mistral': 1707, 'n_tokens_neox': 1390, 'n_words': 270}