dfa0c1f47a6920ebe0efde372f5aee07284f2f68,deeppavlov/vocabs/static_dictionary.py,StaticDictionary,__init__,#StaticDictionary#Any#,28

Before Change



        if not is_done(data_dir):
            print("Trying to build a dictionary in {}".format(data_dir))
            if os.path.isdir(data_dir):
                shutil.rmtree(data_dir)
            os.makedirs(data_dir, 0o755)

After Change


    def __init__(self, data_dir=None, *args, **kwargs):
        if data_dir is None:
            data_dir = paths.USR_PATH
        data_dir = Path(data_dir)
        if self.dict_name is None:
            self.dict_name = args[0] if args else kwargs.get("dictionary_name", "dictionary")

        data_dir = data_dir / self.dict_name
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: dfa0c1f47a6920ebe0efde372f5aee07284f2f68
Time: 2017-12-29
Author: yoptar@gmail.com
File Name: deeppavlov/vocabs/static_dictionary.py
Class Name: StaticDictionary
Method Name: __init__


Project Name: matplotlib/matplotlib
Commit Name: 52136a7dda72978004f6af8e90e9ebe7596c27b8
Time: 2019-11-26
Author: anntzer.lee@gmail.com
File Name: examples/misc/image_thumbnail_sgskip.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: cb5c9497e19c8f04a89497f3bbcde7c5cf10a433
Time: 2020-01-09
Author: ericarellano@me.com
File Name: src/python/pants/option/arg_splitter.py
Class Name: ArgSplitter
Method Name: spec


Project Name: PavlosMelissinos/enet-keras
Commit Name: 28e7817f3ec42a59054a772f80a5782812a02448
Time: 2019-12-17
Author: PavlosMelissinos@users.noreply.github.com
File Name: src/data/utils.py
Class Name:
Method Name: ensure_dir