<commit_before>package DDG::Spice::GithubJobs;
# ABSTRACT: Search for jobs on Github.

use DDG::Spice;

spice to => 'http://jobs.github.com/positions.json?description=$1&location=$2&callback={{callback}}';
spice from => '(.*?)-(.*)';

triggers query_lc => qr/(?:(?:i\s+)?(?:need|want|deserve|seek)\s+(?:an?\s+)?)?(?:(.+)\s+)?(?:jobs?|work|employment)(?:\s+(?:in\s+)?(.+))?$/i;

handle query_lc => sub {
	if($1 && $2) {
		return $1.'-'.$2; 
	}
    if($1) {
		return $1.'-';
	}
	if($2) {
		return '-'.$2;
	}
	return;
};

1;<commit_msg>get a job should work<commit_after>package DDG::Spice::GithubJobs;
# ABSTRACT: Search for jobs on Github.

use DDG::Spice;

spice to => 'http://jobs.github.com/positions.json?description=$1&location=$2&callback={{callback}}';
spice from => '(.*?)-(.*)';

triggers query_lc => qr/(?:\s*(?:i\s+)?(?:need|want|deserve|seek|get)\s+(?:an?\s+)?)?(?:(.+)\s+)?(?:jobs?|work|employment)(?:\s+(?:in\s+)?(.+))?$/i;

handle query_lc => sub {
	if($1 && $2) {
		return $1.'-'.$2; 
	}
    if($1) {
		return $1.'-';
	}
	if($2) {
		return '-'.$2;
	}
	return;
};

1;
{'fraction_non_alphanumeric': 0.3154486586493987, 'fraction_numerical': 0.020351526364477335, 'mean_word_length': 4.4646464646464645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '745534', 'n_tokens_mistral': 506, 'n_tokens_neox': 481, 'n_words': 69}