b808d8f7cbe45d82fbf5a6417d09c50d6fa5e130,src/python/pants/backend/jvm/tasks/classpath_util.py,ClasspathUtil,_filtered_classpath_by_confs_iter,#Any#Any#Any#,77

Before Change


  def _filtered_classpath_by_confs_iter(cls, classpath_tuples, confs):
    accept = (lambda conf: conf in confs) if (confs is not None) else (lambda _: True)
    for conf, entry in classpath_tuples:
      if accept(conf):
        yield conf, entry

  @classmethod

After Change


  @classmethod
  def _filtered_classpath_by_confs_iter(cls, classpath_tuples, confs):
    filter_func = cls._accept_conf_filter(confs, unpack_func=lambda x: x[0])
    return itertools.ifilter(filter_func, classpath_tuples)

  @classmethod
  def _entries_iter(cls, classpath):
    for conf, entry in classpath:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: b808d8f7cbe45d82fbf5a6417d09c50d6fa5e130
Time: 2016-01-15
Author: wangpeiyu@gmail.com
File Name: src/python/pants/backend/jvm/tasks/classpath_util.py
Class Name: ClasspathUtil
Method Name: _filtered_classpath_by_confs_iter


Project Name: pymc-devs/pymc3
Commit Name: 9980af11ad3eab99761ca74c2a566302312add17
Time: 2011-03-22
Author: jsalvatier@gmail.com
File Name: mcex/step_methods/hmc.py
Class Name: HMCStep
Method Name: step


Project Name: pymc-devs/pymc3
Commit Name: 9980af11ad3eab99761ca74c2a566302312add17
Time: 2011-03-22
Author: jsalvatier@gmail.com
File Name: mcex/map.py
Class Name:
Method Name: find_MAP