5759edf0c8b9443cf08ac3c79521dedd6f9d9c43,unity_lab/lib/util.py,,smart_write,#Any#Any#,111

Before Change


    - {db-query} from dict, DataFrame
    - {*} from str(*)
    """
    return


def get_timestamp(pattern=FILE_TS_FORMAT):
    """

After Change


    @returns {data_path} The data path written to
    @example
    """
    data_path = smart_path(data_path)
    data_dir = os.path.dirname(data_path)
    os.makedirs(data_dir, exist_ok=True)
    ext = get_file_ext(data_path)
    if ext in DF_FILE_EXT:
        write_as_df(data, data_path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kengz/SLM-Lab
Commit Name: 5759edf0c8b9443cf08ac3c79521dedd6f9d9c43
Time: 2017-10-18
Author: kengzwl@gmail.com
File Name: unity_lab/lib/util.py
Class Name:
Method Name: smart_write


Project Name: kengz/SLM-Lab
Commit Name: a992ba3cb008f5ab0aae99a33d7943c72df6a9ab
Time: 2017-10-18
Author: kengzwl@gmail.com
File Name: unity_lab/lib/util.py
Class Name:
Method Name: smart_read


Project Name: kengz/SLM-Lab
Commit Name: 901cc588fee90215d2e2831bd4a3e7481b307ba7
Time: 2018-06-18
Author: kengzwl@gmail.com
File Name: slm_lab/lib/viz.py
Class Name:
Method Name: save_image