Program: 73869
Project: 73869
Buggy source:
private void createSortTestBindings(ICubeQueryDefinition cqd) throws DataException {
  cqd.createMeasure("String_Node_Str");
  IBinding binding1=new Binding("String_Node_Str");
  binding1.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding1);
  IBinding binding2=new Binding("String_Node_Str");
  binding2.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding2);
  IBinding binding3=new Binding("String_Node_Str");
  binding3.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding3);
  IBinding binding4=new Binding("String_Node_Str");
  binding4.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding4);
  IBinding binding5=new Binding("String_Node_Str");
  binding5.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding5);
  IBinding binding6=new Binding("String_Node_Str");
  binding6.setExpression(new ScriptExpression("String_Node_Str"));
  binding6.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding6.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding6);
  IBinding binding7=new Binding("String_Node_Str");
  binding7.setExpression(new ScriptExpression("String_Node_Str"));
  binding7.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding7.addAggregateOn("String_Node_Str");
  binding7.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding7);
  IBinding binding8=new Binding("String_Node_Str");
  binding8.setExpression(new ScriptExpression("String_Node_Str"));
  binding8.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  cqd.addBinding(binding8);
  IBinding binding9=new Binding("String_Node_Str");
  binding9.setExpression(new ScriptExpression("String_Node_Str"));
  binding9.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding9.addAggregateOn("String_Node_Str");
  binding9.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding9);
  IBinding binding10=new Binding("String_Node_Str");
  binding10.setExpression(new ScriptExpression("String_Node_Str"));
  binding10.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding10.addAggregateOn("String_Node_Str");
  binding10.addAggregateOn("String_Node_Str");
  binding10.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding10);
  IBinding binding11=new Binding("String_Node_Str");
  binding11.setExpression(new ScriptExpression("String_Node_Str"));
  binding11.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding11.addAggregateOn("String_Node_Str");
  binding11.addAggregateOn("String_Node_Str");
  binding11.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding11);
  IBinding binding12=new Binding("String_Node_Str");
  binding12.setExpression(new ScriptExpression("String_Node_Str"));
  binding12.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding12.addAggregateOn("String_Node_Str");
  binding12.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding12);
  IBinding binding13=new Binding("String_Node_Str");
  binding13.setExpression(new ScriptExpression("String_Node_Str"));
  binding13.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding13.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding13);
}

Fixed version (ground truth):
private void createSortTestBindings(ICubeQueryDefinition cqd) throws DataException {
  cqd.createMeasure("String_Node_Str");
  IBinding binding1=new Binding("String_Node_Str");
  binding1.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding1);
  IBinding binding2=new Binding("String_Node_Str");
  binding2.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding2);
  IBinding binding3=new Binding("String_Node_Str");
  binding3.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding3);
  IBinding binding4=new Binding("String_Node_Str");
  binding4.setExpression(new ScriptExpression("String_Node_Str"));
  cqd.addBinding(binding4);
  IBinding binding5=new Binding("String_Node_Str");
  binding5.setExpression(new ScriptExpression("String_Node_Str"));
  binding5.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding5.addAggregateOn("String_Node_Str");
  binding5.addAggregateOn("String_Node_Str");
  binding5.addAggregateOn("String_Node_Str");
  binding5.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding5);
  IBinding binding6=new Binding("String_Node_Str");
  binding6.setExpression(new ScriptExpression("String_Node_Str"));
  binding6.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding6.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding6);
  IBinding binding7=new Binding("String_Node_Str");
  binding7.setExpression(new ScriptExpression("String_Node_Str"));
  binding7.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding7.addAggregateOn("String_Node_Str");
  binding7.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding7);
  IBinding binding8=new Binding("String_Node_Str");
  binding8.setExpression(new ScriptExpression("String_Node_Str"));
  binding8.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  cqd.addBinding(binding8);
  IBinding binding9=new Binding("String_Node_Str");
  binding9.setExpression(new ScriptExpression("String_Node_Str"));
  binding9.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding9.addAggregateOn("String_Node_Str");
  binding9.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding9);
  IBinding binding10=new Binding("String_Node_Str");
  binding10.setExpression(new ScriptExpression("String_Node_Str"));
  binding10.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding10.addAggregateOn("String_Node_Str");
  binding10.addAggregateOn("String_Node_Str");
  binding10.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding10);
  IBinding binding11=new Binding("String_Node_Str");
  binding11.setExpression(new ScriptExpression("String_Node_Str"));
  binding11.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding11.addAggregateOn("String_Node_Str");
  binding11.addAggregateOn("String_Node_Str");
  binding11.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding11);
  IBinding binding12=new Binding("String_Node_Str");
  binding12.setExpression(new ScriptExpression("String_Node_Str"));
  binding12.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding12.addAggregateOn("String_Node_Str");
  binding12.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding12);
  IBinding binding13=new Binding("String_Node_Str");
  binding13.setExpression(new ScriptExpression("String_Node_Str"));
  binding13.setAggrFunction(IBuildInAggregation.TOTAL_SUM_FUNC);
  binding13.addAggregateOn("String_Node_Str");
  cqd.addBinding(binding13);
}