in bistro/config/JobFilters.cpp [100:109]
bool JobFilters::doesPass(const string& salt, const string& s) const {
return isEmpty_ || (
(whitelist_.empty() || whitelist_.count(s))
&& (whitelistRegex_.empty() || boost::regex_search(s, whitelistRegex_))
&& (blacklist_.empty() || !blacklist_.count(s))
&& (blacklistRegex_.empty() || !boost::regex_search(s, blacklistRegex_))
&& (fractionOfNodes_ == 1.0
|| hasher_(make_pair(s, salt)) < fractionCutoff_)
);
}