<commit_before><?php
        session_start();
        include('config.php');
        include('hybridauth/Hybrid/Auth.php');
        if(isset($_GET['provider']))
        {
        	$provider = $_GET['provider'];
        	
        	try{
        	
        	$hybridauth = new Hybrid_Auth( $config );
        	
        	$authProvider = $hybridauth->authenticate($provider);

                $user_timeline = $authProvider->getUserActivity( "timeline" );

	        $user_profile = $authProvider->getUserProfile();
	        
			if($user_profile && isset($user_profile->identifier))
	        {
	        	echo "<b>Name</b> :".$user_profile->displayName."<br>";
	        	echo "<b>Profile URL</b> :".$user_profile->profileURL."<br>";
	        	echo "<b>Image</b> :".$user_profile->photoURL."<br> ";
	        	echo "<img src='".$user_profile->photoURL."'/><br>";
	        	echo "<b>Email</b> :".$user_profile->email."<br>";	
                        //echo "<b>User profile variable:".$user_profile."<br>";       		        		        	
	        	echo "<br> <a href='logout.php'>Logout</a>";

                        //iterate over timeline
                        // foreach( $user_timeline as $item ){
                        //      echo $item->user->displayName . ": " . $item->text . "<hr />";
                        //   }

                        $response = $authProvider->api()->get('statuses/user_timeline.json');
                        echo "User statuses:".$response."<br>";

                        //print_r($response);
                        echo "Type of response variable:";
                        print_r(gettype($response));<commit_msg>Adding tests for OpenShift SQL<commit_after><?php
        session_start();
        include('config.php');
        include('hybridauth/Hybrid/Auth.php');
        if(isset($_GET['provider']))
        {
        	$provider = $_GET['provider'];
        	
        	try{
        	
        	$hybridauth = new Hybrid_Auth( $config );
        	
        	$authProvider = $hybridauth->authenticate($provider);

                $user_timeline = $authProvider->getUserActivity( "timeline" );

	        $user_profile = $authProvider->getUserProfile();
	        
			if($user_profile && isset($user_profile->identifier))
	        {
	        	echo "<b>Name</b> :".$user_profile->firstName."<br>";
	        	echo "<b>Profile URL</b> :".$user_profile->profileURL."<br>";
	        	echo "<b>Image</b> :".$user_profile->photoURL."<br> ";
	        	echo "<img src='".$user_profile->photoURL."'/><br>";
	        	echo "<b>Email</b> :".$user_profile->email."<br>";	
                        //echo "<b>User profile variable:".$user_profile."<br>";       		        		        	
	        	echo "<br> <a href='logout.php'>Logout</a>";



                        //iterate over timeline
                        // foreach( $user_timeline as $item ){
                        //      echo $item->user->displayName . ": " . $item->text . "<hr />";
                        //   }

                        $response = $authProvider->api()->get('statuses/user_timeline.json');
                        echo "User statuses:".$response."<br>";

                        //print_r($response);
                        echo "Type of response variable:";
                        print_r(gettype($response));
{'fraction_non_alphanumeric': 0.16994254611430298, 'fraction_numerical': 0.0, 'mean_word_length': 1.5663304887509697, 'pattern_counts': {'":': 2, '<': 47, '<?xml version=': 0, '>': 73, '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': '4497435', 'n_tokens_mistral': 977, 'n_tokens_neox': 903, 'n_words': 139}