for-just-we / VulDetectArtifact

Artifact for TOSEM
4 stars 1 forks source link

Cannot label sequence dataset #2

Open nguyendacthienngan opened 4 months ago

nguyendacthienngan commented 4 months ago

Although labeling in preprocessing step has "sequence" level It doesn't support because there is only case:

if level == "function":
        cpg_graphs: List[Dict[str, Union[str, List[str], List[int]]]] = \
            json.load(open(json_data_file, 'r', encoding='utf-8'))
        vul_samples, normal_samples = process_func_datas(label_info, cpg_graphs)
        dump_to_output_dir(vul_samples, normal_samples, output_dir)
nguyendacthienngan commented 4 months ago

I've updated the label_graphs.py in HERE. Hope this help