296fbaab0845e1e1c25ff1f64ab7a0583e9c4cbc,Generator/gan_main.py,GAN,train,#GAN#,99
Before Change
str_html))
// Save gene information when last epoch.
if epoch == (self.num_epoch - 1):
lst_scripts.append([lst_genom, str_html, noise])
// Save weights of network each epoch.
self.generator.save_weights(self.util.join_path(self.weight_dir,
self.gen_weight_file.replace("*", str(epoch))))
discriminator.save_weights(self.util.join_path(self.weight_dir,
self.dis_weight_file.replace("*", str(epoch))))
After Change
// Evaluate generated injection code.
for eval_place in self.eval_place_list:
// Build html syntax.
html = self.template.render({eval_place: str_html})
with codecs.open(self.eval_html_path, "w", encoding="utf-8") as fout:
fout.write(html)
// Evaluate individual using selenium.
selenium_score, error_flag = self.util.check_individual_selenium(self.obj_browser,
self.eval_html_path)
if error_flag:
continue
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 296fbaab0845e1e1c25ff1f64ab7a0583e9c4cbc
Time: 2018-09-12
Author: takaesu235@gmail.com
File Name: Generator/gan_main.py
Class Name: GAN
Method Name: train
Project Name: geek-ai/MAgent
Commit Name: 2c00aa18540df4ab4c3afeacd44b556b3ce90782
Time: 2017-12-01
Author: zhenglianmin96@163.com
File Name: python/magent/utility.py
Class Name:
Method Name: download_file
Project Name: philipperemy/keras-tcn
Commit Name: 0cfe82c6beb9a28a5ff7da81b86fa0e93c388f14
Time: 2019-11-20
Author: premy@cogent.co.jp
File Name: tasks/save_reload_model.py
Class Name:
Method Name: