{'fraction_non_alphanumeric': 0.010498687664041995, 'fraction_numerical': 0.005249343832020997, 'mean_word_length': 5.521367521367521, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Toward automatic feedback of coding style for programming courses

In this research, we developed a methodology for automatic evaluation of coding style and estimate its effectiveness compared to human evaluation. To achieve this, we developed 179 features spanning 8 categories to capture code structure and other stylistic properties. Results based on a set of student assignments and code from a Python textbook validate the features as effective in classification tasks. The features were further used to optimise classifiers to predict the teacher’s evaluation of the student code and obtain good classification accuracy. The proposed feature set and experimental results provide a first step towards providing students with automatic coding style feedback.