Judgment of Code Style

The Judgement of Code Style (JOCS) system is an automated tool that mimics the human grading of Java code style. Due to the emphasis on human-readable code in corporate and professional programming environments, students of computer science require comprehensive feedback on their code style. However, increases in enrollment in programming courses both online and oine make providing this feedback dicult. The JOCS system provides an automated, extensible solution that diers in scope from currently available tools. The JOCS system evaluates code for readability and style using metrics based on accepted stylistic guidelines such as consistency, code density, modularity, and documentation. Machine learning techniques are used to discern which metrics are appropriate for scoring a given corpus of code submissions, based on a history of human generated grades. The JOCS system is then used to generate style scores for future submissions. The results provide insight into which features of the code can be used as indicators of good or bad style.