244940504e919a9f5c4e191f3d121ecebec00950,tests/chunking/test_chunking.py,,load_input,#Any#,12
Before Change
content = " ".join(content)
return content
else:
content = [text.split("\t")[0].decode("utf-8") for text in open(input_file, "r").read().strip().split("\n")]
content = u" ".join(content)
return content
After Change
def load_input(input_file):
lines = read(input_file).strip().split("\n")
content = [line.split("\t")[0] for line in lines]
content = u" ".join(content)
return content
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: undertheseanlp/underthesea
Commit Name: 244940504e919a9f5c4e191f3d121ecebec00950
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/chunking/test_chunking.py
Class Name:
Method Name: load_input
Project Name: home-assistant/home-assistant
Commit Name: 754d536974fccd0768b90938d79071ba0910714a
Time: 2016-10-21
Author: martin@dasos.com
File Name: homeassistant/components/media_player/squeezebox.py
Class Name: LogitechMediaServer
Method Name: get_player_status
Project Name: pantsbuild/pants
Commit Name: dd9d7ec6f38eceba49a50a1f5158afcc0f7df7a8
Time: 2015-10-24
Author: matt@digital-wanderlust.com
File Name: src/python/pants/backend/python/tasks/checkstyle/common.py
Class Name: PythonFile
Method Name: _remove_coding_header