4a878f17f0c18bf1dce3553b47f90f5c2c8e91d2,w3af/plugins/grep/password_profiling.py,password_profiling,end,#password_profiling#,190

Before Change


                else:
                    x_len = list_length

                for i in xrange(x_len):
                    msg = "- [" + str(i + 1) + "] " + items[
                        i][0] + " with " + str(items[i][1])
                    msg += " repetitions."
                    om.out.information(msg)

    def get_plugin_deps(self):
        
        :return: A list with the names of the plugins that should be run before
                 the current one.

After Change


        
        profiling_data = kb.kb.raw_read(self, self.get_name())

        if not profiling_data:
            return

        // pylint: disable=E1103
        items = profiling_data.items()
        items.sort(sort_func)
        items = items[:100]

        om.out.information("Password profiling TOP 100:")

        for i, (password, repetitions) in enumerate(items):
            msg = " - [%s] %s with %s repetitions"
            args = (i + 1, password, repetitions)
            om.out.information(msg % args)

    def get_plugin_deps(self):
        
        :return: A list with the names of the plugins that should be run before
                 the current one.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: andresriancho/w3af
Commit Name: 4a878f17f0c18bf1dce3553b47f90f5c2c8e91d2
Time: 2018-07-19
Author: andres.riancho@gmail.com
File Name: w3af/plugins/grep/password_profiling.py
Class Name: password_profiling
Method Name: end


Project Name: RaRe-Technologies/gensim
Commit Name: 19a2292b8b21da8fd83e5f8129debb4b9ab4c14f
Time: 2014-07-01
Author: radimrehurek@seznam.cz
File Name: gensim/corpora/dictionary.py
Class Name: Dictionary
Method Name: from_corpus


Project Name: reinforceio/tensorforce
Commit Name: 42521d66b07e4c1b2c0f27180980db7481880ff0
Time: 2016-10-23
Author: k@ifricke.com
File Name: tensorforce/neural_networks/neural_network.py
Class Name:
Method Name: get_network