cd83fed56a184063215f932ef768f8834328654c,networkml/featurizers/funcs/host.py,HostBase,_get_flags,#HostBase#,81

Before Change


        for flags in unique_flags:
            if flags:
                for bit, decoded_flag in decode_map.items():
                    if flags & (2**bit):
                        flags_counter[decoded_flag] += 1
        if field_name is None:
            field_name = col_name.replace(".", "_")
        if suffix is not None:
            return {"tshark_%s_%s_%s" % (

After Change


        decoded_flags = set()
        for bit, decoded_flag in decode_map.items():
            bitval = 2**bit
            for flags in sorted(filter(lambda x: x >= bitval, unique_flags)):
                if flags & bitval:
                    decoded_flags.add(decoded_flag)
        if field_name is None:
            field_name = col_name.replace(".", "_")
        if suffix is not None:
            return {"tshark_%s_%s_%s" % (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: CyberReboot/NetworkML
Commit Name: cd83fed56a184063215f932ef768f8834328654c
Time: 2020-04-01
Author: josh@vandervecken.com
File Name: networkml/featurizers/funcs/host.py
Class Name: HostBase
Method Name: _get_flags


Project Name: pgmpy/pgmpy
Commit Name: e1ef6a6cdf5e2d722453e483adfbde35ab7f3562
Time: 2015-10-21
Author: yashuseth2503@gmail.com
File Name: pgmpy/models/ClusterGraph.py
Class Name: ClusterGraph
Method Name: check_model


Project Name: snorkel-team/snorkel
Commit Name: 21678f424e8a7b0734e2dcc31d0a2ee2e10af097
Time: 2016-09-04
Author: ajratner@gmail.com
File Name: snorkel/annotations.py
Class Name: AnnotationManager
Method Name: load