Towards a Universal Code Formatter through Machine Learning (2016)
arxiv.org
arxiv.org
For anyone interested in getting into machine learning, I hope you'll consider the MSAN program at USF (https://www.usfca.edu/arts-sciences/graduate-programs/analyt...). Terence is the guy that made this program happen at USF and it's turned into something really special.
Disclaimer: I'm a deep learning researcher and teacher at USF.
I've trained CharCNN on log files, and it generates really good examples files. To me that shows that even a comparatively simple model can capture syntax rules, so I'd imagine a LSTM would generate really good feature vectors.
A tool like this would be brilliant if it could automatically generate suggestions for "hybrid styles" that fit your existing codebase, and provide suggestions to migrate existing code patterns to "correct" ones over time.
[0]: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines