ec8602f95ff5916925c54a9adfc867112b2d5b70,poseidon/poseidonStorage/test_poseidonStorage.py,,test_db_add_many_docs,#Any#,189

Before Change


    doc_two = {node_ip: "2.2.2.2", packet_lengths: [3, 5, 8]}
    doc_thr = {node_ip: "3.3.3.3", packet_lengths: [13, 21, 34]}
    doc_list = [doc_one, doc_two, doc_thr]
    doc_list = str(doc_list)
    doc_list = urllib.unquote(doc_list).encode("utf8")
    get_str = "/v1/storage/add_many_docs/poseidon_records/network_graph/" + doc_list
    resp = client.get(get_str)
    assert resp.status == falcon.HTTP_OK

After Change


    doc_thr["packet_lengths"] = [13, 21, 34]

    doc_list = [doc_one, doc_two, doc_thr]
    doc_str = ""
    for doc in doc_list:
        doc_str += bson.BSON.encode(doc)
    get_str = "/v1/storage/add_many_docs/poseidon_records/network_graph/" + doc_str
    resp = client.get(get_str)
    assert resp.status == falcon.HTTP_OK
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: CyberReboot/poseidon
Commit Name: ec8602f95ff5916925c54a9adfc867112b2d5b70
Time: 2016-08-09
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_many_docs


Project Name: CyberReboot/poseidon
Commit Name: 262f2dd76cd516d0be4a73e87e72a39938a18795
Time: 2016-08-10
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_many_docs


Project Name: hanxiao/bert-as-service
Commit Name: d97188ee62bc0627235578485c5df7d3245fa1ed
Time: 2018-12-02
Author: hanhxiao@tencent.com
File Name: example6.py
Class Name:
Method Name: