<commit_before><HTML>
	<HEAD>
		<TITLE>RuneScape Vis Wax Calculator</TITLE>
		<STYLE>
			table, th , td {
			  border: 1px solid grey;
			  border-collapse: collapse;
			  padding: 5px;
			}
			
			table tr:nth-child(odd) {
			  background-color: #f1f1f1;
			}
			table tr:nth-child(even) {
			  background-color: #ffffff;
			}		
		</STYLE>
		
		
		<!-- Components -->
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
		<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>

		<SCRIPT>
			var vwApp = angular.module("vwApp", []);

			vwApp.controller('vwCtrl', 
				function($scope,$http){                                	
                	
                	
                	$scope.rune_data = [
						{rsID: 556, name: "Air rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 557, name: "Earth rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 555, name: "Water rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 554, name: "Fire rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 4696, name: "Dust rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4699, name: "Lava rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4697, name: "Smoke rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4694, name: "Steam rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4695, name: "Mist rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4698, name: "Mud rune", vis: 300, shop: 0, ge: 0},
						{rsID: 558, name: "Mind rune", vis: 2000, shop: 17, ge: 0},
						{rsID: 559, name: "Body rune", vis: 2000, shop: 16, ge: 0},
						{rsID: 564, name: "Cosmic rune", vis: 400, shop: 0, ge: 0},
						{rsID: 562, name: "Chaos rune", vis: 500, shop: 140, ge: 0},
						{rsID: 561, name: "Nature rune", vis: 350, shop: 372, ge: 0},
						{rsID: 563, name: "Law rune", vis: 300, shop: 378, ge: 0},
						{rsID: 560, name: "Death rune", vis: 400, shop: 310, ge: 0},
						{rsID: 9075, name: "Astral rune", vis: 300, shop: 220, ge: 0},
						{rsID: 565, name: "Blood rune", vis: 350, shop: 550, ge: 0},
						{rsID: 566, name: "Soul rune", vis: 300, shop: 410, ge: 0}
                	];
                	
                	// vis wax rsID = 32092
                	
					$scope.total = function() {
						var total = 0;
						angular.forEach( $scope.rune_data, function(item) {
							total += item.vis * item.shop;
						})

						return total;
					}
					
					
                	// used to toggle ge data
                	var ge = 0;
                	
                	// ge scope.
					if (ge){
						for ( let idx in $scope.rune_data ){
							curr_ID = $scope.rune_data[idx].rsID;
							
							$http.get("http://services.runescape.com/m=itemdb_rs/api/catalogue/detail.json?item=" + curr_ID)
							.then(
								function(result){
									//console.log(result.data.item.current.price);
									$scope.rune_data[idx].ge = parseFloat(result.data.item.current.price);
								}
							);

							
						}
					}
					
				}
			);
		</SCRIPT>
		
	</HEAD>
	<BODY>
		<H1>Vis Wax Base Rune Prices.</H1>
		
		<BR>
		<DIV ng-app="vwApp" ng-controller="vwCtrl">
			
			<TABLE id="table">
				<TR>
					<TH WIDTH="100"><B>Name</B></TH>
					<TH WIDTH="100"><B>Shop Price</B></TH>
					<TH WIDTH="100"><B>G.E. Price</B></TH>
					<TH WIDTH="100"><B>Shop - G.E. Price</B></TH>
					<TH WIDTH="100"><B>Base Qty</B></TH>
					<TH WIDTH="100"><B>Shop Total</B></TH>
					<TH WIDTH="100"><B>G.E. Total</B></TH>
				</TR>
				<TR ng-repeat="rune in rune_data">
					<TD>{{rune.name}}</TD>
					<TD>{{rune.shop}} gp</TD>
					<TD>{{rune.ge}} gp</TD>
					<TD>{{rune.shop} - {rune.ge}} gp</TD>
					<TD>{{rune.vis}}</TD>
					<TD>{{rune.shop * rune.vis}} gp</TD>
					<TD>{{rune.ge * rune.vis}} gp</TD>
				</TR>
                    
			</TABLE>
			
		</DIV>
		<BR><BR>
        <HR>
        &copy 2017 The Reforged.

	</BODY>
</HTML><commit_msg>Fixed syntax of price difference calculation<commit_after><HTML>
	<HEAD>
		<TITLE>RuneScape Vis Wax Calculator</TITLE>
		<STYLE>
			table, th , td {
			  border: 1px solid grey;
			  border-collapse: collapse;
			  padding: 5px;
			}
			
			table tr:nth-child(odd) {
			  background-color: #f1f1f1;
			}
			table tr:nth-child(even) {
			  background-color: #ffffff;
			}		
		</STYLE>
		
		
		<!-- Components -->
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
		<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>

		<SCRIPT>
			var vwApp = angular.module("vwApp", []);

			vwApp.controller('vwCtrl', 
				function($scope,$http){                                	
                	
                	
                	$scope.rune_data = [
						{rsID: 556, name: "Air rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 557, name: "Earth rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 555, name: "Water rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 554, name: "Fire rune", vis: 1000, shop: 17, ge: 0},
						{rsID: 4696, name: "Dust rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4699, name: "Lava rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4697, name: "Smoke rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4694, name: "Steam rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4695, name: "Mist rune", vis: 500, shop: 0, ge: 0},
						{rsID: 4698, name: "Mud rune", vis: 300, shop: 0, ge: 0},
						{rsID: 558, name: "Mind rune", vis: 2000, shop: 17, ge: 0},
						{rsID: 559, name: "Body rune", vis: 2000, shop: 16, ge: 0},
						{rsID: 564, name: "Cosmic rune", vis: 400, shop: 0, ge: 0},
						{rsID: 562, name: "Chaos rune", vis: 500, shop: 140, ge: 0},
						{rsID: 561, name: "Nature rune", vis: 350, shop: 372, ge: 0},
						{rsID: 563, name: "Law rune", vis: 300, shop: 378, ge: 0},
						{rsID: 560, name: "Death rune", vis: 400, shop: 310, ge: 0},
						{rsID: 9075, name: "Astral rune", vis: 300, shop: 220, ge: 0},
						{rsID: 565, name: "Blood rune", vis: 350, shop: 550, ge: 0},
						{rsID: 566, name: "Soul rune", vis: 300, shop: 410, ge: 0}
                	];
                	
                	// vis wax rsID = 32092
                	
					$scope.total = function() {
						var total = 0;
						angular.forEach( $scope.rune_data, function(item) {
							total += item.vis * item.shop;
						})

						return total;
					}
					
					
                	// used to toggle ge data
                	var ge = 0;
                	
                	// ge scope.
					if (ge){
						for ( let idx in $scope.rune_data ){
							curr_ID = $scope.rune_data[idx].rsID;
							
							$http.get("http://services.runescape.com/m=itemdb_rs/api/catalogue/detail.json?item=" + curr_ID)
							.then(
								function(result){
									//console.log(result.data.item.current.price);
									$scope.rune_data[idx].ge = parseFloat(result.data.item.current.price);
								}
							);

							
						}
					}
					
				}
			);
		</SCRIPT>
		
	</HEAD>
	<BODY>
		<H1>Vis Wax Base Rune Prices.</H1>
		
		<BR>
		<DIV ng-app="vwApp" ng-controller="vwCtrl">
			
			<TABLE id="table">
				<TR>
					<TH WIDTH="100"><B>Name</B></TH>
					<TH WIDTH="100"><B>Shop Price</B></TH>
					<TH WIDTH="100"><B>G.E. Price</B></TH>
					<TH WIDTH="100"><B>Shop - G.E. Price</B></TH>
					<TH WIDTH="100"><B>Base Qty</B></TH>
					<TH WIDTH="100"><B>Shop Total</B></TH>
					<TH WIDTH="100"><B>G.E. Total</B></TH>
				</TR>
				<TR ng-repeat="rune in rune_data">
					<TD>{{rune.name}}</TD>
					<TD>{{rune.shop}} gp</TD>
					<TD>{{rune.ge}} gp</TD>
					<TD>{{rune.shop - rune.ge}} gp</TD>
					<TD>{{rune.vis}}</TD>
					<TD>{{rune.shop * rune.vis}} gp</TD>
					<TD>{{rune.ge * rune.vis}} gp</TD>
				</TR>
                    
			</TABLE>
			
		</DIV>
		<BR><BR>
        <HR>
        &copy 2017 The Reforged.

	</BODY>
</HTML>
{'fraction_non_alphanumeric': 0.19430485762144054, 'fraction_numerical': 0.06133230253833269, 'mean_word_length': 1.9807987711213517, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, 'https://': 4, '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': '5491058', 'n_tokens_mistral': 4277, 'n_tokens_neox': 3004, 'n_words': 742}