3b3db8d3806e2aec4ffe25deb3e892b54ef2e1d5,Orange/widgets/data/owfile.py,,addOrigin,#Any#Any#,11

Before Change


    strings = [var for var in vars if isinstance(var, StringVariable)]
    dirname, basename = os.path.split(filename)
    for var in strings:
        if hasattr(var, "type") and not hasattr(var, "origin"):
            var.attributes["origin"] = dirname

class OWFile(widget.OWWidget):

After Change


    strings = [var for var in vars if isinstance(var, StringVariable)]
    dirname, basename = os.path.split(filename)
    for var in strings:
        if "type" in var.attributes and "origin" not in var.attributes:
            var.attributes["origin"] = dirname

class OWFile(widget.OWWidget):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: biolab/orange3
Commit Name: 3b3db8d3806e2aec4ffe25deb3e892b54ef2e1d5
Time: 2014-08-19
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/data/owfile.py
Class Name:
Method Name: addOrigin


Project Name: facebookresearch/pythia
Commit Name: c0c834e3bd880f89e36ff1748623456fb98507e9
Time: 2020-10-19
Author: apsdehal@gmail.com
File Name: mmf/modules/losses.py
Class Name: Losses
Method Name: forward


Project Name: vatlab/SoS
Commit Name: 52e0c10fafb7b6d2615a4ff583a2d1861ef274af
Time: 2017-04-21
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name: TaskEngine
Method Name: resume_task