bd55e6b77c8efa4ebe4a5f2cae2bc9aa0d6b1c3a,Hotel-Management.py,,remove,#,216
Before Change
def remove():
file1 = open("Management.txt", "r")
contents = file1.read()
dictionary = eval(contents)
file1.close()
print("")
After Change
def remove():
File=open("Management.txt","r")
string=File.read()
string = string.replace("\"", "\"")
dictionary=json.loads(string)
File.close()
dict_num=dictionary.get("Room")
dict_len=len(dict_num)
if dict_len==0:
print("")
print("There is no data in our database")
print("")
menu()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: geekcomputers/Python
Commit Name: bd55e6b77c8efa4ebe4a5f2cae2bc9aa0d6b1c3a
Time: 2021-02-12
Author: Utkarshshail005@protonmail.com
File Name: Hotel-Management.py
Class Name:
Method Name: remove
Project Name: geekcomputers/Python
Commit Name: bd55e6b77c8efa4ebe4a5f2cae2bc9aa0d6b1c3a
Time: 2021-02-12
Author: Utkarshshail005@protonmail.com
File Name: Hotel-Management.py
Class Name:
Method Name: remove
Project Name: geekcomputers/Python
Commit Name: bd55e6b77c8efa4ebe4a5f2cae2bc9aa0d6b1c3a
Time: 2021-02-12
Author: Utkarshshail005@protonmail.com
File Name: Hotel-Management.py
Class Name:
Method Name: modify
Project Name: lingpy/lingpy
Commit Name: 6334808924b58b451890f4a43e120c6abe43ec80
Time: 2013-07-24
Author: pbouda@cidles.eu
File Name: distribute_setup.py
Class Name:
Method Name: _same_content