equal
  deleted
  inserted
  replaced
  
    
    
     1 // Part 1 about Code Similarity  | 
     1 // Preliminary Part about Code Similarity  | 
     2 //==============================  | 
     2 //========================================  | 
         | 
     3   | 
         | 
     4   | 
         | 
     5 object CW7a {  | 
         | 
     6   | 
     3   | 
     7   | 
     4 //(1) Complete the clean function below. It should find  | 
     8 //(1) Complete the clean function below. It should find  | 
     5 //    all words in a string using the regular expression  | 
     9 //    all words in a string using the regular expression  | 
     6 //    \w+  and the library function   | 
    10 //    \w+  and the library function   | 
     7 //  | 
    11 //  | 
   106    | 
   110    | 
   107 // The punchline: everything above 0.6 looks suspicious and   | 
   111 // The punchline: everything above 0.6 looks suspicious and   | 
   108 // should be investigated by staff.  | 
   112 // should be investigated by staff.  | 
   109   | 
   113   | 
   110 */  | 
   114 */  | 
         | 
   115   | 
         | 
   116 }  |