Code comment is one of the most effective ways to help programmers to understand the source code. High-quality comment decisions can not only cover the core code snippets in the software system but also avoid generati...
详细信息
ISBN:
(数字)9781728161068
ISBN:
(纸本)9781728161075
Code comment is one of the most effective ways to help programmers to understand the source code. High-quality comment decisions can not only cover the core code snippets in the software system but also avoid generating redundant code comments. However, in actual development, there is no uniform comment specification, and most of the comment decisions depend on personal experience and domain knowledge. This paper has learned a common comment decision specification from a large number of code comment examples to assist programmers in making appropriate comment decisions during code development. This paper proposes a method to extract the code structure from the context code of the current code line, and use the machine learning algorithm to determine the possibility that the current code needs to add comments. The proposed method was evaluated on 8 well-known open-source Python projects in GitHub and the experimental results show the feasibility and effectiveness of the method in some code types.
According to the single release form of product information on the network in machine manufacturing enterprises and the high price of the conventional NC simulation software, a machining simulation system based on Web...
详细信息
ISBN:
(纸本)9781424456956
According to the single release form of product information on the network in machine manufacturing enterprises and the high price of the conventional NC simulation software, a machining simulation system based on Web is developed in this paper. Making use of the superiority of Java and JavaScript on Web and the interaction of VRML technology, 3D browsing, virtual assembly and machining simulation are realized on the network. Based on the authenticity and real-time of virtual reality, a network distributed virtual simulation system is designed. This method of NC machining simulation is not dependent on the expensive CAD/CAM software, and for the size of the system files is small, it can be transferred on the network conveniently. Using the browser with the plug as the client, the system has free installation, authenticity, interaction, low cost, portability, low requirements for the client, etc.
暂无评论