5e01619e1f495db4ce7201c1444a66fbf46059c4,chainercv/links/model/pickable_sequential_chain.py,PickableSequentialChain,pick,#PickableSequentialChain#Any#,91

Before Change


        else:
            return_tuple = False
            pick = (pick,)
        if any(name not in self.layer_names for name in pick):
            raise ValueError("Invalid layer name")

        self._return_tuple = return_tuple
        self._pick = tuple(pick)

    def remove_unused(self):

After Change


            return_tuple = False
            pick = (pick,)
        try:
            invalid_name = next(iter(filter(
                lambda n: n not in self.layer_names, pick)))
            raise ValueError("Invalid layer name ({:s})".format(invalid_name))
        except StopIteration:
            pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: chainer/chainercv
Commit Name: 5e01619e1f495db4ce7201c1444a66fbf46059c4
Time: 2019-02-23
Author: ktns.87@gmail.com
File Name: chainercv/links/model/pickable_sequential_chain.py
Class Name: PickableSequentialChain
Method Name: pick


Project Name: google/deepvariant
Commit Name: 7ed8c6bbcfb2dc0da9b1011ba21d12791239de79
Time: 2019-10-21
Author: gunjanbaid@google.com
File Name: deepvariant/postprocess_variants.py
Class Name:
Method Name: main


Project Name: dmlc/gluon-nlp
Commit Name: a076671d1f0da3d6297cbf3a9afdf1796c2e8e70
Time: 2019-01-06
Author: linhaibin.eric@gmail.com
File Name: src/gluonnlp/data/stream.py
Class Name: SimpleDatasetStream
Method Name: __iter__