code2snapshot

ICMLA'22: Code2Snapshot

https://github.com/mdrafiqulrabin/code2snapshot

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 9 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

ICMLA'22: Code2Snapshot

Basic Info
  • Host: GitHub
  • Owner: mdrafiqulrabin
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 5.71 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

Code2Snapshot (Encoding Program as Image)

This repository contains the artifact of our paper Code2Snapshot: Using Code Snapshots for Learning Representations of Source Code [arXiv, IEEE Xplore] accepted at ICMLA'22.


Structure

├── script/ ├── preprocess # prepare preprocessed data ├── models # train and predict with models ├── summary # compute summary results ├── output/ ├── logs # logging train/val/test status ├── predict # predicted labels on test set ├── others/ # related draft exp and files


Example

|Example of Snapshots| :--------------------------------------------------------: | Example of different code snapshots. |


Workflow

|Workflow of Code2Snapshot| :--------------------------------------------------------------: | Workflow of the proposed Code2Snapshot approach. |


Experimental Settings

  • Tasks: Method Name Prediction, Code Classification, Vulnerability Detection.
  • Models: code2vec & code2seq, BiLSTM, AlexNet & ResNet.
  • Datasets: JavaTop10 & JavaTop50, Java-Sort, s-bAbI.

Citation:

Code2Snapshot: Using Code Snapshots for Learning Representations of Source Code

@inproceedings{rabin2022Code2Snapshot, author = {Md Rafiqul Islam Rabin and Mohammad Amin Alipour}, title = {{Code2Snapshot}: Using Code Snapshots for Learning Representations of Source Code}, booktitle = {Proceedings of the 21st IEEE International Conference on Machine Learning and Applications}, year = {2022}, publisher = {IEEE}, address = {New York, NY, USA}, url = {https://doi.org/10.1109/ICMLA55696.2022.00140}, doi = {10.1109/ICMLA55696.2022.00140}, location = {Nassau, The Bahamas}, series = {ICMLA 2022} }

Owner

  • Name: M.R.I. Rabin
  • Login: mdrafiqulrabin
  • Kind: user
  • Location: Houston, TX
  • Company: University of Houston

Ph.D. Candidate in Computer Science at the University of Houston.

Citation (CITATION.cff)

@inproceedings{rabin2022Code2Snapshot,
  author = {Md Rafiqul Islam Rabin and Mohammad Amin Alipour},
  title = {{Code2Snapshot}: Using Code Snapshots for Learning Representations of Source Code},
  booktitle = {Proceedings of the 21st IEEE International Conference on Machine Learning and Applications},
  year = {2022},
  publisher = {IEEE},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1109/ICMLA55696.2022.00140},
  doi = {10.1109/ICMLA55696.2022.00140},
  location = {Nassau, The Bahamas},
  series = {ICMLA 2022}
}

GitHub Events

Total
Last Year

Dependencies

script/preprocess/code2token/JavaLoader/pom.xml maven
  • com.github.javaparser:javaparser-core 3.14.5
script/preprocess/code2token/JavaTokenizer/pom.xml maven
  • com.github.javaparser:javaparser-core 3.14.5
  • org.glassfish:javax.json 1.0.4