<commit_before>#!/usr/bin/env python

""" Assignment 1, Exercise 3, INF1340, Fall, 2015. Troubleshooting Car Issues.

This module contains one function diagnose_car(). It is an expert system to
interactive diagnose car issues. This program take "Y" and "y" as yes, "N" and "n" as no.
The following test cases had been tested with both upper cases and lower cases

TEST CASE 1
Input:              y
                    y
Expected Output:    Are the battery terminals corroded?
                    Clean terminals and try start.
Actual Output:      Are the battery terminals corroded?
                    Clean terminals and try start.

TEST CASE 2
Input:              y
                    n
Expected Output:    Are the battery terminals corroded?
                    Replace cables and try again.
Actual Output:      Are the battery terminals corroded?<commit_msg>Update ex3<commit_after>#!/usr/bin/env python

""" Assignment 1, Exercise 3, INF1340, Fall, 2015. Troubleshooting Car Issues.

This module contains one function diagnose_car(). It is an expert system to
interactive diagnose car issues. 

Please note:
1) This program take "Y" and "y" as yes, "N" and "n" as no.
2) The following test cases had been tested with both upper cases and lower cases. 
3) For space saving, below only list the test cases with lower case inputs, but we tested same way with upper case inputs
4) Below test cases DO NOT include the initial output of "Is the car silent when you turn the key?". Because the initial
   output is not depending on any condition, we are not displaying them. 

TEST CASE 1
Input:              y
                    y
Expected Output:    Are the battery terminals corroded?
                    Clean terminals and try start.
Actual Output:      Are the battery terminals corroded?
                    Clean terminals and try start.

TEST CASE 2
Input:              y
                    n
Expected Output:    Are the battery terminals corroded?
                    Replace cables and try again.
Actual Output:      Are the battery terminals corroded?
{'fraction_non_alphanumeric': 0.049394673123486686, 'fraction_numerical': 0.014043583535108959, 'mean_word_length': 2.398026315789474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '6832848', 'n_tokens_mistral': 569, 'n_tokens_neox': 495, 'n_words': 282}