<commit_before><?php
require_once 'google-api-php-client/src/apiClient.php';
require_once 'google-api-php-client/src/contrib/apiPlusService.php';

/* Callback function to generate a comment */
function mytheme_comment($comment, $args, $depth) {
   $GLOBALS['comment'] = $comment; ?>
   <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
     <div id="comment-<?php comment_ID(); ?>">

      <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?></div>

      <div class="comment-author vcard">
         <?php echo get_avatar($comment,$size='48'); ?>

         <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
      </div>
      <?php if ($comment->comment_approved == '0') : ?>
         <em><?php _e('Your comment is awaiting moderation.') ?></em>
         <br />
      <?php endif; ?>


      <?php comment_text() ?>

      <div class="reply">
         <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
      </div>
     </div>
<?php
        }

if ( function_exists('register_sidebar') )
    register_sidebar();

function gPlusProfile( ) {
	$client = new apiClient();
	$client->setDeveloperKey('<KEY>');
	$client->setAuthClass('apiAuthNone');
	$plus = new apiPlusService($client);
	$client->authenticate();

	return $plus->people->get( '103203488152334135508' );
}

function gPlusPic() {
	$profile = gPlusProfile();
	return $profile['image']['url'];
}
?><commit_msg>Gprofile image was returning 50px x 50px by default so now fetching larger image<commit_after><?php
require_once 'google-api-php-client/src/apiClient.php';
require_once 'google-api-php-client/src/contrib/apiPlusService.php';

/* Callback function to generate a comment */
function mytheme_comment($comment, $args, $depth) {
   $GLOBALS['comment'] = $comment; ?>
   <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
     <div id="comment-<?php comment_ID(); ?>">

      <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?></div>

      <div class="comment-author vcard">
         <?php echo get_avatar($comment,$size='48'); ?>

         <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
      </div>
      <?php if ($comment->comment_approved == '0') : ?>
         <em><?php _e('Your comment is awaiting moderation.') ?></em>
         <br />
      <?php endif; ?>


      <?php comment_text() ?>

      <div class="reply">
         <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
      </div>
     </div>
<?php
        }

if ( function_exists('register_sidebar') )
    register_sidebar();

function gPlusProfile( ) {
	$client = new apiClient();
	$client->setDeveloperKey('<KEY>');
	$client->setAuthClass('apiAuthNone');
	$plus = new apiPlusService($client);
	$client->authenticate();

	return $plus->people->get( '103203488152334135508' );
}

function gPlusPic( $size = 200 ) {
	$profile = gPlusProfile();
	$url = $profile['image']['url'];
    return str_replace( "sz=50", "sz=$size", $url );
}
?>
{'fraction_non_alphanumeric': 0.2078984485190409, 'fraction_numerical': 0.017207334273624825, 'mean_word_length': 4.316341829085458, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3983328', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1160, 'n_words': 232}