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
os.chmod(fullname, 0o644)
// 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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
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: pantsbuild/pants
Commit Name: 076e01d237ab3b58cdb395fb04a7f176ab02209d
Time: 2013-10-31
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/python/python_chroot.py
Class Name: PythonChroot
Method Name: _dump_built_library
Project Name: comic/grand-challenge.org
Commit Name: 219836ccac7852a51df3f8b3b26c1e43f1f559c2
Time: 2020-05-21
Author: 51329283+miriam-groeneveld@users.noreply.github.com
File Name: app/tests/cases_tests/test_background_tasks.py
Class Name:
Method Name: test_check_compressed_and_extract