25bdfd7ca876bf714309c84648317b4a3f7227ce,plantcv-pipeline.py,,db_connect,#Any#,370

Before Change


        // Change the text output format from unicode to UTF-8
        args.connect.text_factory = str
        // Database handler
        args.sq = args.connect.cursor()
        // Run and image IDs
        args.run_id = 0
        args.image_id = 0

After Change


    for row in args.sq.execute("SELECT name FROM sqlite_master WHERE type="table""):
        if row["name"] == "runinfo":
            runinfo = True
        elif row["name"] == "metadata":
            metadata = True

    if runinfo is True and metadata is True:
        for row in args.sq.execute("SELECT MAX(run_id) AS max FROM runinfo"):
            if row["max"] is not None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: danforthcenter/plantcv
Commit Name: 25bdfd7ca876bf714309c84648317b4a3f7227ce
Time: 2017-04-05
Author: noahfahlgren@gmail.com
File Name: plantcv-pipeline.py
Class Name:
Method Name: db_connect


Project Name: commonsense/conceptnet5
Commit Name: 86d8964413704826a7c7f19c5bf6d6f01f40f938
Time: 2014-07-25
Author: rob@luminoso.com
File Name: conceptnet5/formats/sql.py
Class Name: EdgeIndexWriter
Method Name: add_prefixes


Project Name: commonsense/conceptnet5
Commit Name: 86d8964413704826a7c7f19c5bf6d6f01f40f938
Time: 2014-07-25
Author: rob@luminoso.com
File Name: conceptnet5/formats/sql.py
Class Name: EdgeIndexWriter
Method Name: add_string_index