34d4608fcd3df6f5c02e6a56afda51fd9d00be0b,Orange/canvas/report/__init__.py,,describe_data_brief,#Any#,240

Before Change




def describe_data_brief(data):
    domain = data.domain
    items = OrderedDict([
        ("Data instances", len(data)),
        ("Features", len(domain.attributes) or "None"),
        ("Meta attributes", len(domain.metas) or "None")])
    if domain.has_discrete_class:
        items["Target"] = "Class "{}"".format(domain.class_var.name)
    elif domain.has_continuous_class:
        items["Target"] = "Numeric variable "{}"". \
            format(domain.class_var.name)
    elif domain.class_vars:
        items["Targets"] = len(domain.class_vars)
    else:
        items["Targets"] = False
    return items

After Change


    :type data: Orange.data.Table
    :rtype: OrderedDict
    
    items = OrderedDict()
    items["Data instances"] = len(data)
    items.update(describe_domain_brief(data.domain))
    return items
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: biolab/orange3
Commit Name: 34d4608fcd3df6f5c02e6a56afda51fd9d00be0b
Time: 2015-10-30
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/report/__init__.py
Class Name:
Method Name: describe_data_brief


Project Name: akkana/scripts
Commit Name: 1c5022cf24af600351183513af494366f96652ec
Time: 2018-10-15
Author: akkana@shallowsky.com
File Name: phonewords.py
Class Name:
Method Name: find_dups


Project Name: biolab/orange3
Commit Name: 1349a412f5b3912b0e90afb17ccb90745c50a430
Time: 2015-12-04
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/report/__init__.py
Class Name:
Method Name: describe_data_brief