Program: 42578
Project: 42578
Buggy source:
@Override public LogisticRegressionModel call() throws Exception {
  JSONObject json=new JSONObject(userResponse);
  SparkConf conf=new SparkConf().setAppName("String_Node_Str").setMaster("String_Node_Str");
  JavaSparkContext sc=new JavaSparkContext(conf);
  JavaRDD<String> lines=sc.textFile(json.getString("String_Node_Str"));
  String headerRow=lines.take(1).get(0);
  String[] headerItems=headerRow.split(json.getString("String_Node_Str"));
  String response=json.getString("String_Node_Str");
  Integer responseIndex;
  for (int i=0; i < headerItems.length; i++) {
    if (response.equals(headerItems[i])) {
      responseIndex=i;
      break;
    }
  }
  Header header=new Header(headerRow);
  JavaRDD<String> data=lines.filter(header);
  Pattern COMMA=Pattern.compile(json.getString("String_Node_Str"));
  LineToTokens lineToTokens=new LineToTokens(COMMA);
  JavaRDD<String[]> tokens=data.map(lineToTokens);
  TokensToLabeledPoints tokensToLabeledPoints=new TokensToLabeledPoints(8);
  TokensToLabeledPoints tokensToLabeledPoints=new TokensToLabeledPoints(9);
  JavaRDD<LabeledPoint> labeledPoints=tokens.map(tokensToLabeledPoints);
  JavaRDD<LabeledPoint> trainingData=labeledPoints.sample(false,0.7,11L);
  JavaRDD<LabeledPoint> testingData=labeledPoints.subtract(trainingData);
  LogisticRegressionWithSGD lrSGD=new LogisticRegressionWithSGD(json.getDouble("String_Node_Str"),json.getInt("String_Node_Str"),json.getDouble("String_Node_Str"),1.0);
  if ("String_Node_Str".equals(json.getString("String_Node_Str"))) {
    lrSGD.optimizer().setUpdater(new L1Updater());
  }
 else   if ("String_Node_Str".equals(json.getString("String_Node_Str"))) {
    lrSGD.optimizer().setUpdater(new SquaredL2Updater());
  }
  lrSGD.setIntercept(true);
  LogisticRegressionModel model=lrSGD.run(trainingData.rdd());
  sc.stop();
  return model;
}

Fixed version (ground truth):
@Override public LogisticRegressionModel call() throws Exception {
  JSONObject json=new JSONObject(userResponse);
  SparkConf conf=new SparkConf().setAppName("String_Node_Str").setMaster("String_Node_Str");
  JavaSparkContext sc=new JavaSparkContext(conf);
  JavaRDD<String> lines=sc.textFile(json.getString("String_Node_Str"));
  String headerRow=lines.take(1).get(0);
  String[] headerItems=headerRow.split(json.getString("String_Node_Str"));
  String response=json.getString("String_Node_Str");
  Integer responseIndex;
  for (int i=0; i < headerItems.length; i++) {
    if (response.equals(headerItems[i])) {
      responseIndex=i;
      break;
    }
  }
  Header header=new Header(headerRow);
  JavaRDD<String> data=lines.filter(header);
  Pattern COMMA=Pattern.compile(json.getString("String_Node_Str"));
  LineToTokens lineToTokens=new LineToTokens(COMMA);
  JavaRDD<String[]> tokens=data.map(lineToTokens);
  TokensToLabeledPoints tokensToLabeledPoints=new TokensToLabeledPoints(8);
  JavaRDD<LabeledPoint> labeledPoints=tokens.map(tokensToLabeledPoints);
  JavaRDD<LabeledPoint> trainingData=labeledPoints.sample(false,0.7,11L);
  JavaRDD<LabeledPoint> testingData=labeledPoints.subtract(trainingData);
  LogisticRegressionWithSGD lrSGD=new LogisticRegressionWithSGD(json.getDouble("String_Node_Str"),json.getInt("String_Node_Str"),json.getDouble("String_Node_Str"),1.0);
  if ("String_Node_Str".equals(json.getString("String_Node_Str"))) {
    lrSGD.optimizer().setUpdater(new L1Updater());
  }
 else   if ("String_Node_Str".equals(json.getString("String_Node_Str"))) {
    lrSGD.optimizer().setUpdater(new SquaredL2Updater());
  }
  lrSGD.setIntercept(true);
  LogisticRegressionModel model=lrSGD.run(trainingData.rdd());
  sc.stop();
  return model;
}