<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/(?:\s*(?:i\s+|we\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;<commit_msg>github jobs now word triggered<commit_after>package DDG::Spice::GithubJobs;
# ABSTRACT: Search for jobs on Github.

use DDG::Spice;

triggers any => "job", "jobs";

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


handle query_lc => sub {
    if (/(?:\s*(?:i\s+|we\s+)?(?:need|want|deserve|seek|get)\s+(?:an?\s+)?)?(?:(.+)\s+)(?:jobs?|work|employment|internship)(?:\s+(?:in\s+)?(.+))?$/i) {
        if($1 && $2) {
            return $1.'-'.$2; 
        }
        if($1) {
            return $1.'-';
        }
        if($2) {
            return '-'.$2;
        }
    }
	return;
};

1;
{'fraction_non_alphanumeric': 0.2953795379537954, 'fraction_numerical': 0.018151815181518153, 'mean_word_length': 3.2711267605633805, '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': '6689761', 'n_tokens_mistral': 533, 'n_tokens_neox': 506, 'n_words': 72}