<commit_before>package DDG::Spice::GooglePlus;
# ABSTRACT: Search for Google+ users and return their bio.

use DDG::Spice;

spice to => 'https://www.googleapis.com/plus/v1/people/$1?query=$2&key={{ENV{DDG_SPICE_GOOGLE_PLUS_APIKEY}}}&callback={{callback}}';
spice from => '(?:([^/]*)/([^/]*)|)';

triggers startend => 'google+', 'google plus', 'g+', 'gplus', '+';

handle remainder => sub {
	my $query = $_;
	if($query =~ /(\d+)$/) {
		return $1, ''; 
	} elsif($query =~ /((?:[a-zA-Z]|\s)+)$/) {
		return '', $1; 
	}
	return;
};
1;
<commit_msg>Fixed google+ google+<commit_after>package DDG::Spice::GooglePlus;
# ABSTRACT: Search for Google+ users and return their bio.

use DDG::Spice;

spice to => 'https://www.googleapis.com/plus/v1/people/$1?query=$2&key={{ENV{DDG_SPICE_GOOGLE_PLUS_APIKEY}}}&callback={{callback}}';
spice from => '(?:([^/]*)/([^/]*)|)';

triggers startend => 'google+', 'google plus', 'g+', 'gplus', '+';

handle remainder => sub {
	my $query = $_;
	if($query =~ /(\d+)$/) {
		return $1, ''; 
	} else {
		return '', $query; 
	}
	return;
};
1;

{'fraction_non_alphanumeric': 0.2640977443609023, 'fraction_numerical': 0.010338345864661654, 'mean_word_length': 4.788043478260869, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '3191582', 'n_tokens_mistral': 450, 'n_tokens_neox': 431, 'n_words': 81}