3feb6844805087de1a68aaca34236a7697736211,w3af/core/data/parsers/utils/form_params.py,FormParameters,_get_sample_paths,#FormParameters#Any#Any#,479

Before Change


                // >>>
                variants_total = min(variants_total, self.MAX_VARIANTS_TOTAL)

                for path in rand.sample(range(variants_total),
                                        self.TOP_VARIANTS):
                    yield self._decode_path(path, matrix)

            // Less than TOP_VARIANTS elems in matrix

After Change


                variants_total = min(variants_total, self.MAX_VARIANTS_TOTAL)

                for _ in xrange(self.TOP_VARIANTS):
                    path = rand.randint(0, variants_total)
                    yield self._decode_path(path, matrix)

            // Less than TOP_VARIANTS elems in matrix
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: andresriancho/w3af
Commit Name: 3feb6844805087de1a68aaca34236a7697736211
Time: 2018-02-16
Author: andres.riancho@gmail.com
File Name: w3af/core/data/parsers/utils/form_params.py
Class Name: FormParameters
Method Name: _get_sample_paths


Project Name: rusty1s/pytorch_geometric
Commit Name: 69dd0827d09eae0b4e6b95df854b2814175c9248
Time: 2019-04-10
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/models/autoencoder.py
Class Name: GAE
Method Name: negative_sampling


Project Name: andresriancho/w3af
Commit Name: 8ecc5cc5800cb24e5db82ef17f44ea9edee46ed1
Time: 2018-02-15
Author: andres.riancho@gmail.com
File Name: w3af/core/data/parsers/utils/form_params.py
Class Name: FormParameters
Method Name: _get_sample_paths