23a45d5eb839c763c94c0e413ad599d9f9b5e184,codes/scripts/create_lmdb.py,,,#,8

Before Change


        // The encode is only essential in Python 3
        txn.put(key, data)
        txn.put(meta_key, meta.encode("ascii"))
print("Finish writing to lmdb - {}.".format(len(file_list)))

// create keys cache
keys_cache_file = os.path.join(lmdb_save_path, "_keys_cache.p")

After Change


import lmdb
import cv2

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from utils.progress_bar import ProgressBar

// configurations
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: xinntao/BasicSR
Commit Name: 23a45d5eb839c763c94c0e413ad599d9f9b5e184
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/create_lmdb.py
Class Name:
Method Name:


Project Name: Esri/raster-functions
Commit Name: 164b392ce45a1baa7523212c451fa3d20cb06450
Time: 2015-05-21
Author: akferoz@esri.com
File Name: setup.py
Class Name:
Method Name: main


Project Name: vatlab/SoS
Commit Name: ced4357a7174cb02821b66cb67686a261cb1fa62
Time: 2017-06-05
Author: BPeng1@BCBW31517465254.mdanderson.edu
File Name: sos/hosts.py
Class Name: RemoteHost
Method Name: _receive_from_host


Project Name: xinntao/BasicSR
Commit Name: 23a45d5eb839c763c94c0e413ad599d9f9b5e184
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/create_lmdb.py
Class Name:
Method Name: