5b4184010ec83d3424bf3a2d3cb07c1e11ca9e30,build-tools/code_formatter/auto_format_command.py,,command,#Any#,47

Before Change




def command(arg):
    for root in ["include", "src", "python", "examples", "tutorial"]:
        for dirname, dirnames, filenames in os.walk(os.path.join(arg.base, root)):
            for filename in filenames:
                basename, extname = os.path.splitext(filename)

After Change


    // chmod document files
    for dirname, _, filenames in os.walk(arg.base):
        for filename in filenames:
            _, extname = os.path.splitext(filename)
            extname = extname.lower()
            fullname = os.path.join(dirname, filename)
            if extname in file_formatter.doc_extensions:
                os.chmod(fullname, 0o644)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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


Project Name: pyinstaller/pyinstaller
Commit Name: 7e8b3ec991803087e56ecedf3b70963b90cf411b
Time: 2018-04-02
Author: bjones@ece.msstate.edu
File Name: PyInstaller/hooks/hook-PyQt5.Qt.py
Class Name:
Method Name:


Project Name: chainer/chainercv
Commit Name: 93fde518ce45a1373c4b635c15e25312b2cc3a0f
Time: 2017-03-10
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/cub/cub_utils.py
Class Name:
Method Name: get_cub


Project Name: tensorflow/magenta
Commit Name: 8f838bb28ef7a3122732c56ad6604df6298323ef
Time: 2018-11-28
Author: jesse.engel@gmail.com
File Name: magenta/models/nsynth/wavenet/nsynth_generate.py
Class Name:
Method Name: main