3de6f010c364b4d1942a31204e6a8dd348e904f0,strings/remove_duplicate.py,,remove_duplicates,#Any#,4
Before Change
"Java Python also and great is"
sen_list = sentence.split(" ")
check = set()
for a_word in sen_list:
check.add(a_word)
return " ".join(sorted(check))
if __name__ == "__main__":
After Change
>>> remove_duplicates("Python is great and Java is also great")
"Java Python also and great is"
return " ".join(sorted(set(sentence.split(" ")) ))
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: TheAlgorithms/Python
Commit Name: 3de6f010c364b4d1942a31204e6a8dd348e904f0
Time: 2020-06-10
Author: mtszzwdzk@gmail.com
File Name: strings/remove_duplicate.py
Class Name:
Method Name: remove_duplicates
Project Name: pantsbuild/pants
Commit Name: 6229c419d8f1b63cac22f23f24e19ef28d89b0a3
Time: 2018-06-27
Author: dawagner@gmail.com
File Name: src/python/pants/backend/graph_info/tasks/cloc.py
Class Name: CountLinesOfCode
Method Name: console_output
Project Name: pgmpy/pgmpy
Commit Name: 93671933a1cb70b162add89159317ecb437126d6
Time: 2014-01-01
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: _no_missing_states
Project Name: pgmpy/pgmpy
Commit Name: 62569af29003dca99f7fefc0fbcee0e06e5b6ef7
Time: 2014-01-01
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: _no_extra_states