28204a95e521ecb5b8451a82350265ed24e7743f,secuml/exp/data/annotations.py,Annotations,load_partial_annotations,#Annotations#Any#Any#,54
Before Change
% filename)
conn = self.session.connection().connection
cursor = conn.cursor()
if self.secuml_conf.db_type == "mysql":
mysql_specific.load_partial_annotations(
cursor,
filename,
annotations_id,
self.dataset_conf.dataset_id)
elif self.secuml_conf.db_type == "postgresql":
postgresql_specific.load_partial_annotations(
cursor,
filename,
annotations_id,
self.dataset_conf.dataset_id)
else:
assert(False)
self.session.flush()
def get_annotations_type(self, annotations_id):
query = self.session.query(ExpAnnotationsAlchemy)
After Change
% filename)
conn = self.session.connection().connection
cursor = conn.cursor()
call_specific_db_func(self.secuml_conf.db_type,
"load_partial_annotations",
(cursor, filename, annotations_id,
self.dataset_conf.dataset_id))
self.session.flush()
def get_annotations_type(self, annotations_id):
query = self.session.query(ExpAnnotationsAlchemy)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances
Project Name: ANSSI-FR/SecuML
Commit Name: 28204a95e521ecb5b8451a82350265ed24e7743f
Time: 2019-04-19
Author: anael.bonneton@ssi.gouv.fr
File Name: secuml/exp/data/annotations.py
Class Name: Annotations
Method Name: load_partial_annotations
Project Name: ANSSI-FR/SecuML
Commit Name: 28204a95e521ecb5b8451a82350265ed24e7743f
Time: 2019-04-19
Author: anael.bonneton@ssi.gouv.fr
File Name: secuml/exp/data/ground_truth.py
Class Name: GroundTruth
Method Name: load
Project Name: ANSSI-FR/SecuML
Commit Name: 28204a95e521ecb5b8451a82350265ed24e7743f
Time: 2019-04-19
Author: anael.bonneton@ssi.gouv.fr
File Name: secuml/exp/data/idents.py
Class Name: Idents
Method Name: load