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.1k stars 286 forks source link

Issue 106: ZeroDivisionError while preprocessing #109

Closed gOATiful closed 1 year ago

gOATiful commented 3 years ago

addresses #106.

TMP_DIR was not set correctly and caused files created in the wrong directory. The tmp dir path in ExtractFeaturesForDir should be "/tmp/feature_extractorXXXX" but was "". This lead to empty *.rar.txt files. Which finally causes the ZeroDivisionError.