<commit_before><!DOCTYPE html>
<html>
    <head>
        <title>PGB Kitchen Sink</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
    </head>
    <body>

		<div data-role="page" id="pageEvents" data-cache="never">
			<script type="text/javascript" charset="utf-8">
				//http://docs.phonegap.com/en/2.3.0/cordova_events_events.md.html#Events
				
				$("#pageEvents").bind('pageshow', function() {
					
					document.addEventListener("pause", onPause, false);
					document.addEventListener("resume", onResume, false);
					document.addEventListener("online", onOnline, false);
					
					document.addEventListener("volumedownbutton", onVolumeDownKeyDown, false);
					document.addEventListener("volumeupbutton", onVolumeUpKeyDown, false);
					
				});
				
				function onPause() {
					$("#eventMessage").html("Pause event fired");
				}
								
				function onResume() {
					$("#eventMessage").html("Resume event fired");
				}

				function onOnline() {
					$("#eventMessage").html("You just got online!");
				}

				// Handle the volume down button
				//
				function onVolumeDownKeyDown() {
					$("#eventMessage").html("Volume Down Pressed");
				}

				// Handle the volume up button
				//
				function onVolumeUpKeyDown() {
					$("#eventMessage").html("Volume Up Pressed");
				}

			</script>
		
			<div data-role="header">
				<h1>Events</h1>
			</div><!-- /header -->

			<div data-role="content">	
				<div id="eventMessage"></div>
			</div><!-- /content -->

		</div><!-- /page -->
    				
    </body>
</html><commit_msg>updated events<commit_after><!DOCTYPE html>
<html>
    <head>
        <title>PGB Kitchen Sink</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
    </head>
    <body>

		<div data-role="page" id="pageEvents" data-cache="never">
			<script type="text/javascript" charset="utf-8">
				//http://docs.phonegap.com/en/2.3.0/cordova_events_events.md.html#Events
				
				$("#pageEvents").bind('pageshow', function() {
					
					document.addEventListener("pause", onPause, false);
					document.addEventListener("resume", onResume, false);
					document.addEventListener("online", onOnline, false);
					document.addEventListener("offline", onOffline, false);					
					document.addEventListener("backbutton", onBackKeyDown, false);
					
					window.addEventListener("batterycritical", onBatteryCritical, false);
					window.addEventListener("batterylow", onBatteryLow, false);
					
					document.addEventListener("volumedownbutton", onVolumeDownKeyDown, false);
					document.addEventListener("volumeupbutton", onVolumeUpKeyDown, false);
					
				});
				
				function onPause() {
					$("#eventMessage").html("Pause event fired");
				}
								
				function onResume() {
					$("#eventMessage").html("Resume event fired");
				}

				function onOnline() {
					$("#eventMessage").html("You just got online!");
				}
				
				// Handle the offline event
				//
				function onOffline() {
					$("#eventMessage").html("You are now offline");
				}
				
				// Handle the back button
				//
				function onBackKeyDown() {
					$("#eventMessage").html("Back button was pressed");
				}
				
				// Handle the batterycritical event
				//
				function onBatteryCritical(info) {
					$("#batteryMessage").html("<span style='color:red;'>Battery Level Critical " + info.level + " - Recharge Soon!</span>");
				}
				
				// Handle the batterylow event
				//
				function onBatteryLow(info) {
					$("#batteryMessage").html("Battery Level Low " + info.level + "%"); 
				}

				// Handle the batterystatus event
				//
				function onBatteryStatus(info) {
					$("#batteryMessage").html("Level: " + info.level + " isPlugged: " + info.isPlugged); 
				}

				// Handle the volume down button
				//
				function onVolumeDownKeyDown() {
					$("#eventMessage").html("Volume Down Pressed");
				}

				// Handle the volume up button
				//
				function onVolumeUpKeyDown() {
					$("#eventMessage").html("Volume Up Pressed");
				}

			</script>
		
			<div data-role="header" data-add-back-btn="true">
				<h1>Events</h1>
			</div><!-- /header -->

			<div data-role="content">
				<label>System Events:</label>
				<br />
				<div id="eventMessage"></div>
				<br />
				<label>Battery Events:</label>
				<br />
				<div id="batteryMessage"></div>
			</div><!-- /content -->
					
		</div><!-- /page -->
    				
    </body>
</html>
{'fraction_non_alphanumeric': 0.17234513274336283, 'fraction_numerical': 0.0035398230088495575, 'mean_word_length': 2.7487562189054726, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 66, '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': '5845900', 'n_tokens_mistral': 1808, 'n_tokens_neox': 1346, 'n_words': 259}