42b7277ebce6c01da10d8526045ebe23f56dab7b,utils/__init__.py,,storage_dir,#,3

Before Change

import os

def storage_dir():
    return os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "storage")

def create_folders_if_necessary(path):
    dirname = os.path.dirname(path)

After Change

import os

def storage_dir():
    return "storage"

def create_folders_if_necessary(path):
    dirname = os.path.dirname(path)
    if not(os.path.isdir(dirname)):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: lcswillems/torch-rl
Commit Name: 42b7277ebce6c01da10d8526045ebe23f56dab7b
Time: 2018-04-24
Author: lcswillems@gmail.com
File Name: utils/__init__.py
Class Name:
Method Name: storage_dir


Project Name: nilearn/nilearn
Commit Name: 71056b585b9f6012765c7ce3ae8c6c748adb2d26
Time: 2016-02-18
Author: abraham.alexandre@gmail.com
File Name: nilearn/datasets/atlas.py
Class Name:
Method Name: fetch_atlas_power_2011


Project Name: lingpy/lingpy
Commit Name: 916c5ce3345c1e8aca35df47bc0838e1e3a9a2a0
Time: 2014-12-12
Author: xrotwang@googlemail.com
File Name: lingpy/tests/util.py
Class Name:
Method Name: test_data


Project Name: lcswillems/torch-rl
Commit Name: 42b7277ebce6c01da10d8526045ebe23f56dab7b
Time: 2018-04-24
Author: lcswillems@gmail.com
File Name: utils/__init__.py
Class Name:
Method Name: storage_dir