Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Code and data for paper "Detecting Code Clones with Graph Neural Network and Flow-Augmented Abstract Syntax Tree".

Notifications You must be signed in to change notification settings

shaileshj2803/graphmatch_clone

Open more actions menu
 
 

Repository files navigation

Detecting Code Clones with Graph Neural Network and Flow-Augmented Abstract Syntax Tree

Code for paper "Detecting Code Clones with Graph Neural Network and Flow-Augmented Abstract Syntax Tree", SANER 2020
Requires:
pytorch
javalang
pytorch-geometric

Data

Google Code Jam snippets in googlejam4_src.zip
Google Code Jam clone pairs in javadata.zip
BigCloneBench snippets and clone pairs in BCB.zip

Running

Run experiments on Google Code Jam:
python run_java.py
For BigCloneBench:
python run_bcb.py

This operation include training, validation, testing and writing test results to files.

Arguments:
nextsib, ifedge, whileedge, foredge, blockedge, nexttoken, nextuse: whether to include these edge types in FA-AST
data_setting: whether to perform data balance on training set
'0': no data balance
'11': pos:neg = 1:1
'13': pos:neg = 1:3
'0'/'11'/'13'/+'small': use a smaller version of the training set

About

Code and data for paper "Detecting Code Clones with Graph Neural Network and Flow-Augmented Abstract Syntax Tree".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.