├── Figures ├── CE.png ├── Overview.png └── SupCon.png ├── LICENSE ├── README.md ├── models ├── __init__.py ├── detectors │ ├── DeepWuKong │ │ ├── __init__.py │ │ ├── configurations.py │ │ ├── model.py │ │ ├── pretrain.py │ │ └── train.py │ ├── Devign │ │ ├── __init__.py │ │ ├── configurations.py │ │ ├── model.py │ │ ├── train.py │ │ └── util.py │ ├── Reveal │ │ ├── __init__.py │ │ ├── configurations.py │ │ ├── model.py │ │ ├── preprocessing.py │ │ ├── pretrain.py │ │ ├── train.py │ │ └── util.py │ ├── __init__.py │ └── common_model.py ├── self_supervised │ ├── __init__.py │ ├── moco.py │ ├── simclr.py │ └── utils.py └── vulexplainer │ ├── __init__.py │ ├── explainer_models.py │ └── util.py └── preprocess ├── __init__.py ├── code2class_vocab.py ├── graphs_vocab.py ├── parser ├── languages.exp ├── languages.lib └── languages.so ├── sitter-libs ├── c │ ├── Cargo.toml │ ├── LICENSE │ ├── Package.swift │ ├── README.md │ ├── binding.gyp │ ├── bindings │ │ ├── node │ │ │ ├── binding.cc │ │ │ └── index.js │ │ ├── rust │ │ │ ├── README.md │ │ │ ├── build.rs │ │ │ └── lib.rs │ │ └── swift │ │ │ └── TreeSitterC │ │ │ └── c.h │ ├── examples │ │ ├── cluster.c │ │ ├── malloc.c │ │ └── parser.c │ ├── grammar.js │ ├── package.json │ ├── queries │ │ └── highlights.scm │ ├── src │ │ ├── grammar.json │ │ ├── node-types.json │ │ ├── parser.c │ │ └── tree_sitter │ │ │ └── parser.h │ └── test │ │ ├── corpus │ │ ├── ambiguities.txt │ │ ├── crlf.txt │ │ ├── declarations.txt │ │ ├── expressions.txt │ │ ├── microsoft.txt │ │ ├── preprocessor.txt │ │ ├── statements.txt │ │ └── types.txt │ │ └── highlight │ │ ├── keywords.c │ │ └── names.c └── cpp │ ├── Cargo.toml │ ├── LICENSE │ ├── Package.swift │ ├── README.md │ ├── binding.gyp │ ├── bindings │ ├── node │ │ ├── binding.cc │ │ └── index.js │ ├── rust │ │ ├── README.md │ │ ├── build.rs │ │ └── lib.rs │ └── swift │ │ └── TreeSitterCPP │ │ └── cpp.h │ ├── examples │ ├── marker-index.h │ └── rule.cc │ ├── grammar.js │ ├── package.json │ ├── queries │ ├── highlights.scm │ └── injections.scm │ ├── src │ ├── grammar.json │ ├── node-types.json │ ├── parser.c │ ├── scanner.cc │ └── tree_sitter │ │ ├── parser.h │ │ └── runtime.h │ └── test │ ├── corpus │ ├── ambiguities.txt │ ├── concepts.txt │ ├── declarations.txt │ ├── definitions.txt │ ├── expressions.txt │ ├── microsoft.txt │ ├── statements.txt │ └── types.txt │ └── highlight │ ├── keywords.cpp │ └── names.cpp ├── tokenize.py └── transformations ├── __init__.py ├── block_swap_transformations.py ├── confusion_remove.py ├── dead_code_inserter.py ├── demo_transformation.py ├── for_while_transformation.py ├── no_transform.py ├── operand_swap_transformations.py ├── syntactic_noising_transformation.py ├── transformation_base.py ├── transformation_main.py └── var_renaming_transformation.py /Figures/CE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/Figures/CE.png -------------------------------------------------------------------------------- /Figures/Overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/Figures/Overview.png -------------------------------------------------------------------------------- /Figures/SupCon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/Figures/SupCon.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/README.md -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/detectors/DeepWuKong/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | # https://github.com/jumormt/DeepWukong -------------------------------------------------------------------------------- /models/detectors/DeepWuKong/configurations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/DeepWuKong/configurations.py -------------------------------------------------------------------------------- /models/detectors/DeepWuKong/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/DeepWuKong/model.py -------------------------------------------------------------------------------- /models/detectors/DeepWuKong/pretrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/DeepWuKong/pretrain.py -------------------------------------------------------------------------------- /models/detectors/DeepWuKong/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/DeepWuKong/train.py -------------------------------------------------------------------------------- /models/detectors/Devign/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | ## https://github.com/saikat107/Devign -------------------------------------------------------------------------------- /models/detectors/Devign/configurations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Devign/configurations.py -------------------------------------------------------------------------------- /models/detectors/Devign/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Devign/model.py -------------------------------------------------------------------------------- /models/detectors/Devign/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Devign/train.py -------------------------------------------------------------------------------- /models/detectors/Devign/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Devign/util.py -------------------------------------------------------------------------------- /models/detectors/Reveal/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | ## https://github.com/VulDetProject/ReVeal -------------------------------------------------------------------------------- /models/detectors/Reveal/configurations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Reveal/configurations.py -------------------------------------------------------------------------------- /models/detectors/Reveal/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Reveal/model.py -------------------------------------------------------------------------------- /models/detectors/Reveal/preprocessing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Reveal/preprocessing.py -------------------------------------------------------------------------------- /models/detectors/Reveal/pretrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Reveal/pretrain.py -------------------------------------------------------------------------------- /models/detectors/Reveal/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Reveal/train.py -------------------------------------------------------------------------------- /models/detectors/Reveal/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/Reveal/util.py -------------------------------------------------------------------------------- /models/detectors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/detectors/common_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/detectors/common_model.py -------------------------------------------------------------------------------- /models/self_supervised/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/self_supervised/__init__.py -------------------------------------------------------------------------------- /models/self_supervised/moco.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/self_supervised/moco.py -------------------------------------------------------------------------------- /models/self_supervised/simclr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/self_supervised/simclr.py -------------------------------------------------------------------------------- /models/self_supervised/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/self_supervised/utils.py -------------------------------------------------------------------------------- /models/vulexplainer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/vulexplainer/__init__.py -------------------------------------------------------------------------------- /models/vulexplainer/explainer_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/vulexplainer/explainer_models.py -------------------------------------------------------------------------------- /models/vulexplainer/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/models/vulexplainer/util.py -------------------------------------------------------------------------------- /preprocess/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/__init__.py -------------------------------------------------------------------------------- /preprocess/code2class_vocab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/code2class_vocab.py -------------------------------------------------------------------------------- /preprocess/graphs_vocab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/graphs_vocab.py -------------------------------------------------------------------------------- /preprocess/parser/languages.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/parser/languages.exp -------------------------------------------------------------------------------- /preprocess/parser/languages.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/parser/languages.lib -------------------------------------------------------------------------------- /preprocess/parser/languages.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/parser/languages.so -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/Cargo.toml -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/LICENSE -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/Package.swift -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/README.md -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/binding.gyp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/binding.gyp -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/bindings/node/binding.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/bindings/node/binding.cc -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/bindings/node/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/bindings/node/index.js -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/bindings/rust/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/bindings/rust/README.md -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/bindings/rust/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/bindings/rust/build.rs -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/bindings/rust/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/bindings/rust/lib.rs -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/bindings/swift/TreeSitterC/c.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/bindings/swift/TreeSitterC/c.h -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/examples/cluster.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/examples/cluster.c -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/examples/malloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/examples/malloc.c -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/examples/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/examples/parser.c -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/grammar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/grammar.js -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/package.json -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/queries/highlights.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/queries/highlights.scm -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/src/grammar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/src/grammar.json -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/src/node-types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/src/node-types.json -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/src/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/src/parser.c -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/src/tree_sitter/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/src/tree_sitter/parser.h -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/ambiguities.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/ambiguities.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/crlf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/crlf.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/declarations.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/declarations.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/expressions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/expressions.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/microsoft.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/microsoft.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/preprocessor.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/preprocessor.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/statements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/statements.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/corpus/types.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/corpus/types.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/highlight/keywords.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/highlight/keywords.c -------------------------------------------------------------------------------- /preprocess/sitter-libs/c/test/highlight/names.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/c/test/highlight/names.c -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/Cargo.toml -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/LICENSE -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/Package.swift -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/README.md -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/binding.gyp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/binding.gyp -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/bindings/node/binding.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/bindings/node/binding.cc -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/bindings/node/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/bindings/node/index.js -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/bindings/rust/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/bindings/rust/README.md -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/bindings/rust/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/bindings/rust/build.rs -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/bindings/rust/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/bindings/rust/lib.rs -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/bindings/swift/TreeSitterCPP/cpp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/bindings/swift/TreeSitterCPP/cpp.h -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/examples/marker-index.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/examples/marker-index.h -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/examples/rule.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/examples/rule.cc -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/grammar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/grammar.js -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/package.json -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/queries/highlights.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/queries/highlights.scm -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/queries/injections.scm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/queries/injections.scm -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/src/grammar.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/src/grammar.json -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/src/node-types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/src/node-types.json -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/src/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/src/parser.c -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/src/scanner.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/src/scanner.cc -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/src/tree_sitter/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/src/tree_sitter/parser.h -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/src/tree_sitter/runtime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/src/tree_sitter/runtime.h -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/ambiguities.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/ambiguities.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/concepts.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/concepts.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/declarations.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/declarations.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/definitions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/definitions.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/expressions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/expressions.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/microsoft.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/microsoft.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/statements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/statements.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/corpus/types.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/corpus/types.txt -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/highlight/keywords.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/highlight/keywords.cpp -------------------------------------------------------------------------------- /preprocess/sitter-libs/cpp/test/highlight/names.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/sitter-libs/cpp/test/highlight/names.cpp -------------------------------------------------------------------------------- /preprocess/tokenize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/tokenize.py -------------------------------------------------------------------------------- /preprocess/transformations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/__init__.py -------------------------------------------------------------------------------- /preprocess/transformations/block_swap_transformations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/block_swap_transformations.py -------------------------------------------------------------------------------- /preprocess/transformations/confusion_remove.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/confusion_remove.py -------------------------------------------------------------------------------- /preprocess/transformations/dead_code_inserter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/dead_code_inserter.py -------------------------------------------------------------------------------- /preprocess/transformations/demo_transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/demo_transformation.py -------------------------------------------------------------------------------- /preprocess/transformations/for_while_transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/for_while_transformation.py -------------------------------------------------------------------------------- /preprocess/transformations/no_transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/no_transform.py -------------------------------------------------------------------------------- /preprocess/transformations/operand_swap_transformations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/operand_swap_transformations.py -------------------------------------------------------------------------------- /preprocess/transformations/syntactic_noising_transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/syntactic_noising_transformation.py -------------------------------------------------------------------------------- /preprocess/transformations/transformation_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/transformation_base.py -------------------------------------------------------------------------------- /preprocess/transformations/transformation_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/transformation_main.py -------------------------------------------------------------------------------- /preprocess/transformations/var_renaming_transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CocaVul/Coca/HEAD/preprocess/transformations/var_renaming_transformation.py --------------------------------------------------------------------------------