356b51458d2ed75e8f03123124e12c141503ad7c,sorts/bubble_sort.py,,,#,44
Before Change
return collection
if __name__ == "__main__":
try:
raw_input // Python 2
except NameError:
raw_input = input // Python 3
user_input = raw_input("Enter numbers separated by a comma:\n").strip()
unsorted = [int(item) for item in user_input.split(",")]
print(bubble_sort(unsorted))
After Change
bubbleSort(arr)
print ("Sorted array is:")
for i in range(len(arr)):
print ("%d" %arr[i]),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: TheAlgorithms/Python
Commit Name: 356b51458d2ed75e8f03123124e12c141503ad7c
Time: 2018-10-05
Author: 43875858+prateekyo@users.noreply.github.com
File Name: sorts/bubble_sort.py
Class Name:
Method Name:
Project Name: PyThaiNLP/pythainlp
Commit Name: dff9fec2881dfb43222ad1c84aa95fd8c42715c8
Time: 2019-07-25
Author: wannaphong@yahoo.com
File Name: pythainlp/corpus/__init__.py
Class Name:
Method Name: _download
Project Name: cesium-ml/cesium
Commit Name: 1cf1a4c00ba6404bb7387c722187a22357b2f193
Time: 2015-02-13
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: parse_tsdata_from_file