9fcd270f8aff0fdc457e0f4bc78d885ecd3d395a,anvio/tables/views.py,TablesForViews,create_new_view,#TablesForViews#Any#Any#Any#Any#Any#Any#,36

Before Change


            anvio_db.db.create_table(table_name, table_structure, table_types)
        except:
            if not append_mode:
                raise ConfigError("Table already exists")

        db_entries = [tuple([item] + [data_dict[item][h] for h in table_structure[1:]]) for item in data_dict]
        anvio_db.db._exec_many("""INSERT INTO %s VALUES (%s)""" % (table_name, ",".join(["?"] * len(table_structure))), db_entries)

After Change


            if not append_mode:
                raise ConfigError("Something bad happened when anvi"o was trying to create table `%s` in database\
                                   "%s". Here is how the part of the code that was about this described the\
                                   problem: "%s"." % (table_name, self.db_path, str(e)))

        db_entries = [tuple([item] + [data_dict[item][h] for h in table_structure[1:]]) for item in data_dict]
        anvio_db.db._exec_many("""INSERT INTO %s VALUES (%s)""" % (table_name, ",".join(["?"] * len(table_structure))), db_entries)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: merenlab/anvio
Commit Name: 9fcd270f8aff0fdc457e0f4bc78d885ecd3d395a
Time: 2019-09-20
Author: a.murat.eren@gmail.com
File Name: anvio/tables/views.py
Class Name: TablesForViews
Method Name: create_new_view


Project Name: deepmipt/DeepPavlov
Commit Name: 0ddd27b71f54be5682da90473d00ea671a3459ca
Time: 2018-01-29
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save


Project Name: deepmipt/DeepPavlov
Commit Name: 6b33ca24d5df63dcae69f4e6140327f5fecbc897
Time: 2018-01-26
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: save