Program: 29048
Project: 29048
Buggy source:
@Test public void testWindowPartitionQuery4() throws InterruptedException {
  log.info("String_Node_Str");
  SiddhiManager siddhiManager=new SiddhiManager();
  String executionPlan="String_Node_Str" + "String_Node_Str";
  ExecutionPlanRuntime executionRuntime=siddhiManager.createExecutionPlanRuntime(executionPlan);
  executionRuntime.addCallback("String_Node_Str",new StreamCallback(){
    @Override public void receive(    Event[] events){
      EventPrinter.print(events);
      for (      Event event : events) {
        if (event.isExpired()) {
          removeEventCount++;
        }
 else {
          inEventCount++;
          if (inEventCount == 1) {
            Assert.assertEquals(70.0,event.getData()[1]);
          }
 else           if (inEventCount == 2) {
            Assert.assertEquals(700.0,event.getData()[1]);
          }
 else           if (inEventCount == 3) {
            Assert.assertEquals(300.0,event.getData()[1]);
          }
 else           if (inEventCount == 4) {
            Assert.assertEquals(75.5999984741211,event.getData()[1]);
          }
 else           if (inEventCount == 5) {
            Assert.assertEquals(1500.0,event.getData()[1]);
          }
        }
        eventArrived=true;
      }
    }
  }
);
  InputHandler inputHandler=executionRuntime.getInputHandler("String_Node_Str");
  executionRuntime.start();
  inputHandler.send(new Object[]{"String_Node_Str",70f,100});
  inputHandler.send(new Object[]{"String_Node_Str",700f,100});
  inputHandler.send(new Object[]{"String_Node_Str",100f,100});
  inputHandler.send(new Object[]{"String_Node_Str",200f,100});
  inputHandler.send(new Object[]{"String_Node_Str",75.6f,100});
  inputHandler.send(new Object[]{"String_Node_Str",1000f,100});
  inputHandler.send(new Object[]{"String_Node_Str",500f,100});
  Thread.sleep(1000);
  Assert.assertTrue(eventArrived);
  Assert.assertTrue(7 >= inEventCount);
  Assert.assertEquals(0,removeEventCount);
  executionRuntime.shutdown();
}

Fixed version (ground truth):
@Test public void testWindowPartitionQuery4() throws InterruptedException {
  log.info("String_Node_Str");
  SiddhiManager siddhiManager=new SiddhiManager();
  String executionPlan="String_Node_Str" + "String_Node_Str";
  ExecutionPlanRuntime executionRuntime=siddhiManager.createExecutionPlanRuntime(executionPlan);
  executionRuntime.addCallback("String_Node_Str",new StreamCallback(){
    @Override public void receive(    Event[] events){
      EventPrinter.print(events);
      for (      Event event : events) {
        if (event.isExpired()) {
          removeEventCount++;
        }
 else {
          inEventCount++;
          if (inEventCount == 1) {
            Assert.assertEquals(70.0,event.getData()[1]);
          }
 else           if (inEventCount == 2) {
            Assert.assertEquals(700.0,event.getData()[1]);
          }
 else           if (inEventCount == 3) {
            Assert.assertEquals(170.0,event.getData()[1]);
          }
 else           if (inEventCount == 4) {
            Assert.assertEquals(300.0,event.getData()[1]);
          }
 else           if (inEventCount == 5) {
            Assert.assertEquals(75.5999984741211,event.getData()[1]);
          }
 else           if (inEventCount == 6) {
            Assert.assertEquals(1700.0,event.getData()[1]);
          }
 else           if (inEventCount == 7) {
            Assert.assertEquals(1500.0,event.getData()[1]);
          }
        }
        eventArrived=true;
      }
    }
  }
);
  InputHandler inputHandler=executionRuntime.getInputHandler("String_Node_Str");
  executionRuntime.start();
  inputHandler.send(new Object[]{"String_Node_Str",70f,100});
  inputHandler.send(new Object[]{"String_Node_Str",700f,100});
  inputHandler.send(new Object[]{"String_Node_Str",100f,100});
  inputHandler.send(new Object[]{"String_Node_Str",200f,100});
  inputHandler.send(new Object[]{"String_Node_Str",75.6f,100});
  inputHandler.send(new Object[]{"String_Node_Str",1000f,100});
  inputHandler.send(new Object[]{"String_Node_Str",500f,100});
  Thread.sleep(1000);
  Assert.assertTrue(eventArrived);
  Assert.assertTrue(7 >= inEventCount);
  Assert.assertEquals(0,removeEventCount);
  executionRuntime.shutdown();
}