import java.util.regex.Pattern;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.Function;

import org.apache.spark.api.java.function.PairFunction;
import org.apache.spark.api.java.function.VoidFunction;
import org.apache.spark.mllib.clustering.KMeans;
import org.apache.spark.mllib.clustering.KMeansModel;
import org.apache.spark.mllib.linalg.Vector;
import org.apache.spark.mllib.linalg.Vectors;
import scala.Tuple2;


public final class KMeansMP {
	// TODO
    public static void main(String[] args) {
        if (args.length < 2) {
            System.err.println(
                    "Usage: KMeansMP <input_file> <results>");
            System.exit(1);
        }
        String inputFile = args[0];
        String results_path = args[1];
        JavaPairRDD<Integer, Iterable<String>> results;
        int k = 4;
        int iterations = 100;
        int runs = 1;
        long seed = 0;
		final KMeansModel model;
		
        SparkConf sparkConf = new SparkConf().setAppName("KMeans MP");
        JavaSparkContext sc = new JavaSparkContext(sparkConf);

        //TODO

        results.saveAsTextFile(results_path);

        sc.stop();
    }
}
@@ -1,37 +1,4 @@
-import java.util.regex.Pattern;%0A%0A
 impo
@@ -78,50 +78,8 @@
 DD;%0A
-import org.apache.spark.api.java.JavaRDD;%0A
 impo
@@ -153,362 +153,36 @@
 ark.
-api.java.function.Function;%0A%0Aimport org.apache.spark.api.java.function.PairFunction;%0Aimport org.apache.spark.api.java.function.VoidFunction;%0Aimport org.apache.spark.mllib.clustering.KMeans;%0Aimport org.apache.spark.mllib.clustering.KMeansModel;%0Aimport org.apache.spark.mllib.linalg.Vector;%0Aimport org.apache.spark.mllib.linalg.Vectors;%0Aimport scala.Tuple2
+mllib.clustering.KMeansModel
 ;%0A%0A%0A
@@ -211,17 +211,20 @@
 ansMP %7B%0A
-%09
+    
 // TODO%0A
@@ -657,18 +657,24 @@
 ed = 0;%0A
-%09%09
+        
 final KM
@@ -694,10 +694,8 @@
 el;%0A
-%09%09
 %0A   
@@ -842,16 +842,18 @@
 //TODO%0A%0A
+//
         
@@ -917,8 +917,9 @@
 %0A    %7D%0A%7D
+%0A

make it compile