e44d8f023adb0c45ce4d88be5c671f3f3d99ea12,anvio/tables/miscdata.py,MiscDataTableFactory,__init__,#MiscDataTableFactory#Any#Any#Any#,991

Before Change



        // FIXME
        if target_data_table == "items":
            TableForItemAdditionalData.__init__(self, args, r=self.run, p=self.progress)
        elif target_data_table == "layers":
            TableForLayerAdditionalData.__init__(self, args, r=self.run, p=self.progress)
        elif target_data_table == "layer_orders":
            TableForLayerOrders.__init__(self, args, r=self.run, p=self.progress)

After Change


                              "must contain the `target_data_table` variable.")

        // FIXME
        try:
            table_classes[target_data_table].__init__(self, args, r=self.run, p=self.progress)
        except KeyError:
            raise ConfigError("MiscDataTableFactory does not know about target data tables for "%s" :( "
                              "You can go to the online documentation, or you can try any of %s" % \
                              (target_data_table, ", ".join([""%s"" % table for table in table_classes])))


table_classes = {
    "items": TableForItemAdditionalData,
    "layers": TableForLayerAdditionalData,
    "layer_orders": TableForLayerOrders
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: merenlab/anvio
Commit Name: e44d8f023adb0c45ce4d88be5c671f3f3d99ea12
Time: 2020-04-28
Author: kiefl.evan@gmail.com
File Name: anvio/tables/miscdata.py
Class Name: MiscDataTableFactory
Method Name: __init__


Project Name: DexterInd/GoPiGo3
Commit Name: b2e3d2222fdff00374c4a4b03beef09a79f01cbc
Time: 2017-08-18
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: __init__


Project Name: DexterInd/GoPiGo3
Commit Name: 89d37f85c8bae9d535931b1414eb7fe6fab8adf2
Time: 2017-08-14
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: __init__