<commit_before>var ojp = angular.module('orgjswapp',[]);

/*
This directive allows us to pass a function in on an enter key to do what we want.
 */
ojp.directive('ngEnter', function () {
    return function (scope, element, attrs) {
        element.bind("keydown keypress", function (event) {
            if(event.which === 13) {
                scope.$apply(function (){
                    scope.$eval(attrs.ngEnter);
                });
 
                event.preventDefault();
            }
        });
    };
});

ojp.controller('ajpctrlr', ['$scope' ,'$http',function ($scope,$http) {
	//$scope.articletitle="Title of Test";
	//$scope.mainarticle="dsdsds";	


	
$scope.LoadArticlesAgain=true;

$scope.LoadArticles=function(){
	
	

	if($scope.LoadArticlesAgain === false)
		return;

	$scope.hidelodr=false;
	
	$http({
		method:'POST',
		url:'/touch/srvc/dbgetCont.php?a=a&b=b', 
		data:$.param({l:0}),
		headers : {'Content-Type': 'application/x-www-form-urlencoded'}  

	}).success(function(data1) {
		$scope.LoadArticlesAgain=false;
		$scope.hidelodr=true;
		$scope.articles=data1.contdata;
		console.log($scope.articles);
		//$scope.assign($scope.articles,data1.contdata);
	    //console.log( "success",data1.contdata  );
	}).error(function(err) {
		$scope.hidelodr=true;
	    alert( "error" );
	  });<commit_msg>New site<commit_after>var ojp = angular.module('orgjswapp',[]);

/*
This directive allows us to pass a function in on an enter key to do what we want.
 */
ojp.directive('ngEnter', function () {
    return function (scope, element, attrs) {
        element.bind("keydown keypress", function (event) {
            if(event.which === 13) {
                scope.$apply(function (){
                    scope.$eval(attrs.ngEnter);
                });
 
                event.preventDefault();
            }
        });
    };
});

ojp.controller('ajpctrlr', ['$scope' ,'$http',function ($scope,$http) {
	//$scope.articletitle="Title of Test";
	//$scope.mainarticle="dsdsds";	


	
$scope.LoadArticlesAgain=true;

$scope.LoadArticles=function(){
	
	

	if($scope.LoadArticlesAgain === false)
		return;

	$scope.hidelodr=false;
	
	$http({
		method:'POST',
		url:'https://www.clancap.com/touch/srvc/dbgetCont.php?a=a&b=b', 
		data:$.param({l:0}),
		headers : {'Content-Type': 'application/x-www-form-urlencoded'}  

	}).success(function(data1) {
		$scope.LoadArticlesAgain=false;
		$scope.hidelodr=true;
		$scope.articles=data1.contdata;
		console.log($scope.articles);
		//$scope.assign($scope.articles,data1.contdata);
	    //console.log( "success",data1.contdata  );
	}).error(function(err) {
		$scope.hidelodr=true;
	    alert( "error" );
	  });
{'fraction_non_alphanumeric': 0.18144252441773104, 'fraction_numerical': 0.005259203606311044, 'mean_word_length': 3.0718654434250765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 3, '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': '5134389', 'n_tokens_mistral': 981, 'n_tokens_neox': 902, 'n_words': 141}