eb5e2a3850e6bd9df812cf72e08c3812776c1958,util/guess.py,GuessList,number_guesses,#GuessList#Any#Any#,56

Before Change



    def number_guesses(self, question: Any, guesser: str) -> int:
        query = "SELECT COUNT(*) FROM guesses WHERE question=? AND guesser=?;"
        c = self._conn.cursor()
        c.execute(query, (question.qnum, guesser,))
        for count, in c:
            return count
        return 0

After Change



    def number_guesses(self, question: Any, guesser: str) -> int:
        query = "SELECT COUNT(*) FROM guesses WHERE question=? AND guesser=?;"
        c = self._cursor()
        c.execute(query, (question.qnum, guesser,))
        for count, in c:
            return count
        return 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: Pinafore/qb
Commit Name: eb5e2a3850e6bd9df812cf72e08c3812776c1958
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: number_guesses


Project Name: Pinafore/qb
Commit Name: eb5e2a3850e6bd9df812cf72e08c3812776c1958
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: get_guesses


Project Name: Pinafore/qb
Commit Name: eb5e2a3850e6bd9df812cf72e08c3812776c1958
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: all_guesses


Project Name: Pinafore/qb
Commit Name: eb5e2a3850e6bd9df812cf72e08c3812776c1958
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: add_guesses


Project Name: Pinafore/qb
Commit Name: eb5e2a3850e6bd9df812cf72e08c3812776c1958
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: guesser_statistics


Project Name: Pinafore/qb
Commit Name: eb5e2a3850e6bd9df812cf72e08c3812776c1958
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: check_recall