820de79517aaed577f9af9131f5ec87cd432f04a,mltsp/featurize.py,,shorten_fname,#Any#,39

Before Change



    
    return fname.split("/")[-1].replace(
        ("." + fname.split(".")[-1] if "." in fname.split("/")[-1] else ""), "")


def parse_prefeaturized_csv_data(features_file_path):

After Change


    Return shortened file name without full path and suffix.

    
    return os.path.splitext(ntpath.basename(fname))[0]


def parse_prefeaturized_csv_data(features_file_path):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: 820de79517aaed577f9af9131f5ec87cd432f04a
Time: 2015-02-06
Author: a.crellinquick@gmail.com
File Name: mltsp/featurize.py
Class Name:
Method Name: shorten_fname


Project Name: deepchem/deepchem
Commit Name: bdb4e4b23f90a312afa77c245846b048be10cfb4
Time: 2016-01-26
Author: evan.n.feinberg@gmail.com
File Name: deepchem/utils/save.py
Class Name:
Method Name: load_from_disk


Project Name: sony/nnabla
Commit Name: 5b4184010ec83d3424bf3a2d3cb07c1e11ca9e30
Time: 2017-11-01
Author: Takuya.Narihira@sony.com
File Name: build-tools/code_formatter/auto_format_command.py
Class Name:
Method Name: command