03d22bbb0177117498b3021e068611c6b9421e15,nilmtk/dataset_converters/wikienergy/download_wikienergy.py,,download_wikienergy,#Any#Any#Any#Any#,38
Before Change
chunk_start = chunk_start + chunk_size
// saves all chunks
if len(dataframe_list) > 0:
dataframe_concat = pd.concat(dataframe_list)
//dataframe_concat.to_csv(output_directory + str(building_id) + ".csv")
store.close()
After Change
store = pd.HDFStore(hdf_filename, "w", complevel=9, complib="zlib")
// remove existing building yaml files in module dir
for f in os.listdir(join(_get_module_directory(), "metadata")):
if re.search("^building", f):
os.remove(join(_get_module_directory(), "metadata", f))
// get tables in database schema
sql_query = ("SELECT TABLE_NAME" +
" FROM INFORMATION_SCHEMA.TABLES" +
" WHERE TABLE_TYPE = "BASE TABLE"" +
" AND TABLE_SCHEMA="" + database_schema + """ +
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: nilmtk/nilmtk
Commit Name: 03d22bbb0177117498b3021e068611c6b9421e15
Time: 2014-07-21
Author: oliparson@gmail.com
File Name: nilmtk/dataset_converters/wikienergy/download_wikienergy.py
Class Name:
Method Name: download_wikienergy
Project Name: Rostlab/nalaf
Commit Name: 890ad5903a5ebd18e890bc56f8115cf10da42470
Time: 2015-06-01
Author: aleksandar.bojchevski@gmail.com
File Name: nala/preprocessing/definers.py
Class Name: TestNLDefiner
Method Name: define
Project Name: Rostlab/nalaf
Commit Name: d8ff24c9e49dd199c01e8e099420f2d5b170df7b
Time: 2015-05-28
Author: carsten.uhlig@gmail.com
File Name: source/preprocessing/definers.py
Class Name: TestNLDefiner
Method Name: define