Program: 166521
Project: 166521
Buggy source:
@Test public void testDateTimeExtract() throws DDFException {
  DDF ddf3=ddf.sql2ddf("String_Node_Str");
  List<String> rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 20);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2015);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2015);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 4);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 1);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 22);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 4);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 22);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 23);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
}

Fixed version (ground truth):
@Test public void testDateTimeExtract() throws DDFException {
  DDF ddf3=ddf.sql2ddf("String_Node_Str");
  List<String> rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 20);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2015);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2015);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 4);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 1);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 22);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 4);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 22);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 23);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2015);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2015);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 23);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 6);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 4);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 4);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 155);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 3);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2101);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 2101);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 23);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 6);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 6);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 1);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 157);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 6);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 47);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 27);
  ddf3=ddf.sql2ddf("String_Node_Str");
  rows=ddf3.VIEWS.head(1);
  System.out.println(rows.get(0));
  Assert.assertTrue(Integer.parseInt(rows.get(0)) == 0);
}