cd7bd3f453dc906c4ca1541232236b3a4bdc2bb7,networkml/parsers/pcap/reader.py,,packetizer,#Any#,98

Before Change


    packet_dict = OrderedDict()
    // Go through all the lines of the output
    for line in proc.stdout:
        if not line.startswith(b"\t"):
            head = parse_packet_head(line)
            if head is not None:
                packet_dict[head] = ""
        elif head is not None:
            data = parse_packet_data(line)
            if data is not None:
                packet_dict[head] += data
    return packet_dict


def sessionizer(path, duration=None, threshold_time=None):

After Change


    buf = ""
    for line in proc.stdout:
        line = line.decode("utf-8")
        if not line.startswith(" "):
            continue
        if line.startswith("  ,"):
            continue
        buf += line
        if line.startswith("  }"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: CyberReboot/NetworkML
Commit Name: cd7bd3f453dc906c4ca1541232236b3a4bdc2bb7
Time: 2019-12-10
Author: josh@vandervecken.com
File Name: networkml/parsers/pcap/reader.py
Class Name:
Method Name: packetizer


Project Name: floydhub/dockerfiles
Commit Name: 40a882d47b80ca9c8743510320288477445a14a2
Time: 2017-05-14
Author: dave2008713@gmail.com
File Name: floydker/src/floydker/render.py
Class Name:
Method Name: render_matrix


Project Name: tensorflow/transform
Commit Name: 4bf19837a0df0c7c8e7bd3f3c6a55ddd62e30c6b
Time: 2018-04-30
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/saved/saved_transform_io.py
Class Name:
Method Name: _partially_apply_saved_transform_impl