f37a2477721902d17410e75dfcde5df3b49db9ca,code/SecuML/Data/idents_tools.py,,getAllIdents,#Any#,36

Before Change


    query  = "SELECT Idents.ident "
    query += "FROM Idents;"
    cursor.execute(query)
    return [x[0] for x in cursor.fetchall()]

After Change


    row = cursor.fetchone()
    while row is not None:
        idents[str(row[0])] = row[1]
        row = cursor.fetchone()
    return idents
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ANSSI-FR/SecuML
Commit Name: f37a2477721902d17410e75dfcde5df3b49db9ca
Time: 2017-08-01
Author: anael.bonneton@ssi.gouv.fr
File Name: code/SecuML/Data/idents_tools.py
Class Name:
Method Name: getAllIdents


Project Name: numerai/submission-criteria
Commit Name: 3bf5f2de89807642dcd1e030e45226ff3944779b
Time: 2017-11-10
Author: xander@numer.ai
File Name: common.py
Class Name:
Method Name: get_filename


Project Name: biolab/orange3
Commit Name: 333b54d0a7ba18750b84802abb809c947d5e6921
Time: 2013-07-24
Author: anze.staric@gmail.com
File Name: Orange/data/sql/postgre_backend.py
Class Name: PostgreBackend
Method Name: query


Project Name: numerai/submission-criteria
Commit Name: 3bf5f2de89807642dcd1e030e45226ff3944779b
Time: 2017-11-10
Author: xander@numer.ai
File Name: database_manager.py
Class Name: DatabaseManager
Method Name: get_date_created