<commit_before><!DOCTYPE html>
<html lang="en">
	<head>
		<title>Welcome to Two Ridges Presbyterian Directory</title>
		<?php require_once("../include/head.php"); ?>
		<!--<script>.thumbnail {margin-bottom:10px;}</script>-->
		<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"></script>
		<script src="/js/ui-bootstrap-tpls-0.11.2.min.js"></script>
		<script>
			var site = "http://www.tworidges.org";
			var page = "/directory/mysql_to_json.php";
			angular.module('myApp', ['ui.bootstrap']);
			angular.module('myApp').controller('myCtrl', function ($scope,$http) {
				change = function () {
					var limit = 9;
					var offset = 0;
					$scope.numPerPage = limit;
					if (!isNaN($scope.currentPage)) {
						offset = ($scope.currentPage - 1) * limit;
					}
					$http.get(site + page + "?offset=" + offset + "&limit=" + limit).success(function(response) {
						console.log('offset is: ' + offset);
						console.log('limit is: ' + limit);
						$scope.names = response;
					});

					$http.get(site + page + "?q=count").success(function(response) {
						$scope.totalItems = response;
					});
				}

				$scope.maxSize = 5;

				change();

				$scope.pageChanged = function() {
					console.log('Page changed to: ' + $scope.currentPage);
					change();
				};
			});
		</script>
	</head>

  	<body ng-app="myApp">
	<?php require_once("../include/navbar.php"); ?>

    <!-- Begin page content -->
	<div class="container mytext" ng-controller="myCtrl">
		<div class="text-center">
			<pagination total-items="totalItems" ng-model="currentPage" max-size="maxSize" items-per-page="numPerPage" class="pagination-sm" boundary-links="true" ng-change="pageChanged()"></pagination>
		</div>
		<div class="row">
			<div class="col-lg-4 col-sm-6 col-xs-12" ng-repeat="x in names">
				<a href="http://res.cloudinary.com/tworidges/image/upload/{{ x.Image }}">
		             <img src="http://res.cloudinary.com/tworidges/image/upload/c_fill,g_faces:center,h_600,w_800/{{ x.Image }}" class="thumbnail img-responsive">
		        </a>
		        <b>Name: </b>{{ x.FirstName }} {{ x.LastName }}<br>
		        <b>Address: </b>{{ x.Address }}<br>{{ x.City }}, {{ x.State }} {{ x.Zip }} <br>
		        <b>Home Phone: </b>{{ x.HomePhone }}<br>
		        <b>Cell Phone: </b>{{ x.CellPhone }}<br>
		        <b>Work Phone: </b>{{ x.WorkPhone }}<br>
		        <b>Email: </b>{{ x.Email }}<br><br>
			</div>
		</div>
		<div class="text-center">
			<pagination total-items="totalItems" ng-model="currentPage" max-size="maxSize" items-per-page="numPerPage" class="pagination-sm" boundary-links="true" ng-change="pageChanged()"></pagination>
		</div>
	</div>	
	<?php require_once("../include/js.php"); ?>
  	</body>
</html><commit_msg>Moved directory images to subfolder<commit_after><!DOCTYPE html>
<html lang="en">
	<head>
		<title>Welcome to Two Ridges Presbyterian Directory</title>
		<?php require_once("../include/head.php"); ?>
		<!--<script>.thumbnail {margin-bottom:10px;}</script>-->
		<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"></script>
		<script src="/js/ui-bootstrap-tpls-0.11.2.min.js"></script>
		<script>
			var site = "http://www.tworidges.org";
			var page = "/directory/mysql_to_json.php";
			angular.module('myApp', ['ui.bootstrap']);
			angular.module('myApp').controller('myCtrl', function ($scope,$http) {
				change = function () {
					var limit = 9;
					var offset = 0;
					$scope.numPerPage = limit;
					if (!isNaN($scope.currentPage)) {
						offset = ($scope.currentPage - 1) * limit;
					}
					$http.get(site + page + "?offset=" + offset + "&limit=" + limit).success(function(response) {
						console.log('offset is: ' + offset);
						console.log('limit is: ' + limit);
						$scope.names = response;
					});

					$http.get(site + page + "?q=count").success(function(response) {
						$scope.totalItems = response;
					});
				}

				$scope.maxSize = 5;

				change();

				$scope.pageChanged = function() {
					console.log('Page changed to: ' + $scope.currentPage);
					change();
				};
			});
		</script>
	</head>

  	<body ng-app="myApp">
	<?php require_once("../include/navbar.php"); ?>

    <!-- Begin page content -->
	<div class="container mytext" ng-controller="myCtrl">
		<div class="text-center">
			<pagination total-items="totalItems" ng-model="currentPage" max-size="maxSize" items-per-page="numPerPage" class="pagination-sm" boundary-links="true" ng-change="pageChanged()"></pagination>
		</div>
		<div class="row">
			<div class="col-lg-4 col-sm-6 col-xs-12" ng-repeat="x in names">
				<a href="http://res.cloudinary.com/tworidges/image/upload/directory/{{ x.Image }}">
		             <img src="http://res.cloudinary.com/tworidges/image/upload/c_fill,g_faces:center,h_600,w_800/directory/{{ x.Image }}" class="thumbnail img-responsive">
		        </a>
		        <b>Name: </b>{{ x.FirstName }} {{ x.LastName }}<br>
		        <b>Address: </b>{{ x.Address }}<br>{{ x.City }}, {{ x.State }} {{ x.Zip }} <br>
		        <b>Home Phone: </b>{{ x.HomePhone }}<br>
		        <b>Cell Phone: </b>{{ x.CellPhone }}<br>
		        <b>Work Phone: </b>{{ x.WorkPhone }}<br>
		        <b>Email: </b>{{ x.Email }}<br><br>
			</div>
		</div>
		<div class="text-center">
			<pagination total-items="totalItems" ng-model="currentPage" max-size="maxSize" items-per-page="numPerPage" class="pagination-sm" boundary-links="true" ng-change="pageChanged()"></pagination>
		</div>
	</div>	
	<?php require_once("../include/js.php"); ?>
  	</body>
</html>
{'fraction_non_alphanumeric': 0.21606948968512488, 'fraction_numerical': 0.008686210640608035, 'mean_word_length': 3.2482705611068408, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2534006', 'n_tokens_mistral': 2258, 'n_tokens_neox': 1919, 'n_words': 339}