44f318668f68ccf396da80fddcae44665aa455e4,textacy/datasets/utils.py,,validate_set_member_filter,#Any#Any#Any#,51
Before Change
filter_vals = utils.to_collection(filter_vals, vals_type, set)
if valid_vals is not None:
if not all(filter_val in valid_vals for filter_val in filter_vals):
raise ValueError(
"not all values in filter are valid: {}".format(
filter_vals.difference(valid_vals)
After Change
def validate_set_member_filter(filter_vals, vals_type, valid_vals=None):
utils.deprecated(
"This function has been moved to `textacy.utils.validate_set_members()` "
"and is aliased here only for backwards compatibility. "
"This alias will be removed in v0.10.0.",
action="once",
)
return utils.validate_set_members(filter_vals, vals_type, valid_vals=valid_vals)
def validate_and_clip_range_filter(filter_range, full_range, val_type=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: chartbeat-labs/textacy
Commit Name: 44f318668f68ccf396da80fddcae44665aa455e4
Time: 2019-08-21
Author: burtdewilde@gmail.com
File Name: textacy/datasets/utils.py
Class Name:
Method Name: validate_set_member_filter
Project Name: pantsbuild/pants
Commit Name: a368267b6b4cf50138ba567f582409ed31bf5db9
Time: 2018-10-26
Author: nh@baroquebobcat.com
File Name: src/python/pants/backend/python/tasks/pex_build_util.py
Class Name:
Method Name: dump_requirement_libs
Project Name: bokeh/bokeh
Commit Name: efe2564eca95d2b58d8aff63300a832201146b4e
Time: 2017-08-09
Author: bryanv@continuum.io
File Name: bokeh/models/plots.py
Class Name: Plot
Method Name: add_tools