254b1ec370a07bbd7d60c502ce3b38f4c1fef567,python/setup.py,build_ext,move_file,#build_ext#Any#,155

Before Change


        destination = os.path.join(self.build_lib, filename)
        // Create the target directory if it doesn"t already exist.
        parent_directory = os.path.dirname(destination)
        if not os.path.exists(parent_directory):
            os.makedirs(parent_directory)
        if not os.path.exists(destination):
            print("Copying {} to {}.".format(source, destination))
            shutil.copy(source, destination, follow_symlinks=True)

After Change


        os.makedirs(os.path.dirname(destination), exist_ok=True)
        if not os.path.exists(destination):
            print("Copying {} to {}.".format(source, destination))
            if sys.platform == "win32":
                // Does not preserve file mode (needed to avoid read-only bit)
                shutil.copyfile(source, destination, follow_symlinks=True)
            else:
                // Preserves file mode (needed to copy executable bit)
                shutil.copy(source, destination, follow_symlinks=True)


class BinaryDistribution(Distribution):
    def has_ext_modules(self):
        return True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 254b1ec370a07bbd7d60c502ce3b38f4c1fef567
Time: 2020-04-29
Author: mehrdadn@users.noreply.github.com
File Name: python/setup.py
Class Name: build_ext
Method Name: move_file


Project Name: NervanaSystems/nlp-architect
Commit Name: 794bd558da80b65713b51a964ec61e7ef36d4bf2
Time: 2018-05-14
Author: peteriz@users.noreply.github.com
File Name: examples/intent_extraction/interactive.py
Class Name:
Method Name:


Project Name: deepmipt/DeepPavlov
Commit Name: 7d7c9cfcb200722f256f67337a6a6a827e7b4540
Time: 2019-08-08
Author: ignatov.fedor@gmail.com
File Name: deeppavlov/utils/socket/socket.py
Class Name: SocketServer
Method Name: __init__