BayouJava 代码自动化编写工具
Bayou 是一个数据驱动的计算机程序代码合成系统,它从 GitHub 上采集数据,通过深度学习算法和训练,将 Java 代码编写部分自动化。
依赖:
- JDK 1.8
 - Python3 (Tested with 3.5.1)
 - Tensorflow (Tested with 1.4)
 - scikit-learn (Tested with 0.19)
 
在 Ubuntu / Mac 上,编译和运行 Bayou 源代码:
安装依赖项
cd bayou/tool_files/build_scripts
sudo ./install_dependencies.sh
 
编译 Bayou
./build.sh
 
运行 Bayou
cd out/
./start_bayou.sh &
 
等待结果:
===================================
            Bayou Ready            
===================================
 
执行:
./synthesize.sh
 
在输出时,应该看到下面的分隔字符
---------- BEGIN PROGRAM  ----------
 
要在提供的一些示例上运行 Bayou,需执行以下操作
./synthesize.sh example_inputs/<Program.java>
 
示例程序名称 Program.java
评论
