a55a363a24b87f6b6fa6bdd62fd961190f120b8b,nalaf/learning/lib/sklsvm.py,SklSVM,__convert_edges_features_to_vector_instances,#SklSVM#,238

Before Change


        if __class__._vector_instances_already_computed(corpus):
            return __class__._convert_edges_features_reusing_computed_vector_instances(corpus)
        else:
            return self.__gen_vector_instances(corpus, len(self.final_allowed_feature_mapping))


    @staticmethod
    def _vector_instances_already_computed(corpus):

After Change


            return __class__._convert_edges_features_reusing_computed_vector_instances(corpus)
        else:
            // + 1 since the keys are 0-indexed, that is a sole feature indexed by 0 means having 1 feature
            return self.__gen_vector_instances(corpus, max(next(corpus.edges()).features.keys()) + 1)


    @staticmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: a55a363a24b87f6b6fa6bdd62fd961190f120b8b
Time: 2017-02-19
Author: i@juanmi.rocks
File Name: nalaf/learning/lib/sklsvm.py
Class Name: SklSVM
Method Name: __convert_edges_features_to_vector_instances


Project Name: akkana/scripts
Commit Name: 9aceadde003d2b200dc7d31ebd4d9ca1f1298603
Time: 2019-09-07
Author: akkana@shallowsky.com
File Name: check_monitors.py
Class Name: XDisp
Method Name: find_orphans


Project Name: shaypal5/pdpipe
Commit Name: 1f5c89e0ce4323df8937ad29cf8df6ed0b2f2209
Time: 2021-02-23
Author: shaypal5@gmail.com
File Name: pdpipe/shared.py
Class Name:
Method Name: _get_args_list


Project Name: Kaixhin/Rainbow
Commit Name: 83c9130b8ac6e5cf76fb804282c652343ed2167d
Time: 2018-05-06
Author: design@kaixhin.com
File Name: env.py
Class Name: Env
Method Name: reset