tech-srl / code2vec

TensorFlow code for the neural network presented in the paper: "code2vec: Learning Distributed Representations of Code"
https://code2vec.org
MIT License
1.11k stars 286 forks source link

detailed example to understand pre-processing #102

Closed riyaj8888 closed 3 years ago

riyaj8888 commented 3 years ago

can you provide one detailed example containing

  1. input function (from which context path to be extracted.)
  2. output file (what exactly its format)
  3. which code to be run to get above result (if already available).
urialon commented 3 years ago

Hi @riyaj8888 , Thank you for your interest in code2vec!

You can just take the preprocess.sh script and point it to preprocess a directory that contains a single Java function, and inspect the output.

Best, Uri

urialon commented 3 years ago

Closing due to inactivity, but feel free to re-open if you have additional questions.