nus-yam/ex-repair huggingface dataset:
Program: 33534
Project: 33534
Buggy source:
private void commitAndFinish(){
  commitChange(desk.getButtons());
  setResult(RESULT_OK);
  finish();
}

Fixed version (ground truth):
private void commitAndFinish(){
  if (desk.getSenator().getList() != null && desk.getSenator().getList().size() > 0) {
    commitChange(desk.getButtons());
    setResult(RESULT_OK);
  }
  finish();
}
Program: 33535
Project: 33535
Buggy source:
public ArrayList<MovableButton> getButtons(){
  ArrayList<MovableButton> buttons=new ArrayList<>();
  buttons.addAll(senator.getSortedList());
  return buttons;
}

Fixed version (ground truth):
public ArrayList<MovableButton> getButtons(){
  return buttons;
}
Program: 33536
Project: 33536
Buggy source:
@Override public void resetData(SubItem subItem){
  if (subItem.equals(this.subItem)) {
    triggerRefresh();
  }
 else {
    currentPage=-1;
    this.subItem=subItem;
    adapter.clear();
    adapter.notifyDataSetInvalidated();
    listView.setCanPullToRefresh(false);
    listView.setCanPullToLoadMore(false);
    headerView.getLayoutParams().height=1;
    headerView.setVisibility(View.GONE);
    loadOver();
  }
  hideMoreGroups();
  setTitle();
}

Fixed version (ground truth):
@Override public void resetData(SubItem subItem){
  if (subItem.equals(this.subItem)) {
    triggerRefresh();
  }
 else {
    currentPage=-1;
    this.subItem=subItem;
    adapter.clear();
    adapter.notifyDataSetInvalidated();
    listView.setCanPullToRefresh(false);
    listView.setCanPullToLoadMore(false);
    headerView.getLayoutParams().height=1;
    headerView.setVisibility(View.GONE);
    loadOver();
  }
  if (isMoreGroupsButtonShowing) {
    hideMoreGroups();
  }
  setTitle();
}
Program: 33537
Project: 33537
Buggy source:
@Override public void onAnimationEnd(Animator animation){
  moreGroupImageView.setRotation(0);
  commitChange(deskSimple.getButtons());
}

Fixed version (ground truth):
@Override public void onAnimationEnd(Animator animation){
  moreGroupImageView.setRotation(0);
  if (deskSimple.getButtons() != null && deskSimple.getButtons().size() > 0) {
    commitChange(deskSimple.getSortedButtons());
  }
}
Program: 33538
Project: 33538
Buggy source:
private void hideMoreGroups(){
  isMoreGroupsButtonShowing=false;
  moreGroupsLayout.setVisibility(View.VISIBLE);
  if (animatorSet != null && animatorSet.isRunning()) {
    animatorSet.cancel();
  }
  animatorSet=new AnimatorSet();
  ObjectAnimator layoutAnimator=ObjectAnimator.ofFloat(moreGroupsLayout,"String_Node_Str",moreGroupsLayout.getTranslationY(),-moreGroupsLayout.getHeight());
  layoutAnimator.setInterpolator(new DecelerateInterpolator());
  ObjectAnimator imageAnimator=ObjectAnimator.ofFloat(moreGroupImageView,"String_Node_Str",moreGroupImageView.getRotation(),360);
  imageAnimator.setInterpolator(new DecelerateInterpolator());
  ArrayList<Animator> animators=new ArrayList<>();
  animators.add(layoutAnimator);
  animators.add(imageAnimator);
  animatorSet.addListener(new Animator.AnimatorListener(){
    @Override public void onAnimationEnd(    Animator animation){
      moreGroupImageView.setRotation(0);
      commitChange(deskSimple.getButtons());
    }
    @Override public void onAnimationStart(    Animator animation){
    }
    @Override public void onAnimationCancel(    Animator animation){
    }
    @Override public void onAnimationRepeat(    Animator animation){
    }
  }
);
  animatorSet.playTogether(animators);
  animatorSet.setDuration(250);
  animatorSet.start();
}

Fixed version (ground truth):
private void hideMoreGroups(){
  isMoreGroupsButtonShowing=false;
  moreGroupsLayout.setVisibility(View.VISIBLE);
  if (animatorSet != null && animatorSet.isRunning()) {
    animatorSet.cancel();
  }
  animatorSet=new AnimatorSet();
  ObjectAnimator layoutAnimator=ObjectAnimator.ofFloat(moreGroupsLayout,"String_Node_Str",moreGroupsLayout.getTranslationY(),-moreGroupsLayout.getHeight());
  layoutAnimator.setInterpolator(new DecelerateInterpolator());
  ObjectAnimator imageAnimator=ObjectAnimator.ofFloat(moreGroupImageView,"String_Node_Str",moreGroupImageView.getRotation(),360);
  imageAnimator.setInterpolator(new DecelerateInterpolator());
  ArrayList<Animator> animators=new ArrayList<>();
  animators.add(layoutAnimator);
  animators.add(imageAnimator);
  animatorSet.addListener(new Animator.AnimatorListener(){
    @Override public void onAnimationEnd(    Animator animation){
      moreGroupImageView.setRotation(0);
      if (deskSimple.getButtons() != null && deskSimple.getButtons().size() > 0) {
        commitChange(deskSimple.getSortedButtons());
      }
    }
    @Override public void onAnimationStart(    Animator animation){
    }
    @Override public void onAnimationCancel(    Animator animation){
    }
    @Override public void onAnimationRepeat(    Animator animation){
    }
  }
);
  animatorSet.playTogether(animators);
  animatorSet.setDuration(250);
  animatorSet.start();
}
Program: 33539
Project: 33539
Buggy source:
public void getButtons(){
  List<MyGroup> unselectedSections=GroupHelper.getUnselectedGroups();
  ArrayList<MovableButton> unselectedButtons=new ArrayList<>();
  for (int i=0; i < unselectedSections.size(); i++) {
    MyGroup section=unselectedSections.get(i);
    GroupMovableButton button=new GroupMovableButton(getActivity());
    button.setSection(section);
    unselectedButtons.add(button);
  }
  deskSimple.setButtons(unselectedButtons);
}

Fixed version (ground truth):
public void getButtons(){
  unselectedSections=GroupHelper.getUnselectedGroups();
  ArrayList<MovableButton> unselectedButtons=new ArrayList<>();
  for (int i=0; i < unselectedSections.size(); i++) {
    MyGroup section=unselectedSections.get(i);
    GroupMovableButton button=new GroupMovableButton(getActivity());
    button.setSection(section);
    unselectedButtons.add(button);
  }
  deskSimple.setButtons(unselectedButtons);
}
Program: 33540
Project: 33540
Buggy source:
/** 
 * 临时办法  FIXME
 */
private void checkChannelList(){
  ArrayList<SubItem> subItems=adapter.getSubLists().get(1);
  SubItem item=subItems.get(0);
  boolean isItemMy=item.getType() == SubItem.Type_Private_Channel;
  if (UserAPI.isLoggedIn()) {
    if (!isItemMy) {
      subItems.add(0,new SubItem(SubItem.Section_Post,SubItem.Type_Private_Channel,"String_Node_Str","String_Node_Str"));
      adapter.notifyDataSetChanged();
    }
 else {
    }
  }
 else {
    if (isItemMy) {
      subItems.remove(0);
      adapter.notifyDataSetChanged();
    }
 else {
    }
  }
}

Fixed version (ground truth):
/** 
 * 临时办法  FIXME
 */
private void checkChannelList(){
  ArrayList<SubItem> subItems=adapter.getSubLists().get(1);
  SubItem item=subItems.get(0);
  boolean isItemMy=item.getType() == SubItem.Type_Private_Channel;
  if (UserAPI.isLoggedIn()) {
    if (GroupHelper.getMyGroupsNumber() > 0) {
      subItems.clear();
      subItems.add(0,new SubItem(SubItem.Section_Post,SubItem.Type_Private_Channel,"String_Node_Str","String_Node_Str"));
      subItems.addAll(GroupHelper.getSelectedGroupSubItems());
    }
 else {
      if (!isItemMy) {
        subItems.add(0,new SubItem(SubItem.Section_Post,SubItem.Type_Private_Channel,"String_Node_Str","String_Node_Str"));
        adapter.notifyDataSetChanged();
      }
    }
  }
 else {
    if (isItemMy) {
      subItems.remove(0);
      adapter.notifyDataSetChanged();
    }
 else {
    }
  }
}
Program: 33541
Project: 33541
Buggy source:
private void writePost(){
  if (UserAPI.isLoggedIn()) {
    Intent intent=new Intent(getActivity(),ShuffleActivity.class);
    intent.putExtra(Consts.Extra_SubItem,subItem);
    startActivityForResult(intent,Code_Publish_Post);
  }
 else {
    ((BaseActivity)getActivity()).notifyNeedLog();
  }
}

Fixed version (ground truth):
private void writePost(){
  if (UserAPI.isLoggedIn()) {
    Intent intent=new Intent(getActivity(),PublishPostActivity.class);
    intent.putExtra(Consts.Extra_SubItem,subItem);
    startActivityForResult(intent,Code_Publish_Post);
  }
 else {
    ((BaseActivity)getActivity()).notifyNeedLog();
  }
}
Program: 33542
Project: 33542
Buggy source:
/** 
 * 是否拦截打开的链接
 * @param uri
 * @return
 */
public static void redirectRequest(Uri uri){
  Intent intent=new Intent(Intent.ACTION_VIEW,uri);
  intent.putExtra(Browser.EXTRA_APPLICATION_ID,AppApplication.getApplication().getPackageName());
  AppApplication.getApplication().startActivity(intent);
}

Fixed version (ground truth):
/** 
 * 是否拦截打开的链接
 * @param uri
 * @return
 */
public static void redirectRequest(Uri uri){
  Intent intent=new Intent(Intent.ACTION_VIEW,uri);
  intent.putExtra(Browser.EXTRA_APPLICATION_ID,AppApplication.getApplication().getPackageName());
  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  AppApplication.getApplication().startActivity(intent);
}
Program: 33543
Project: 33543
Buggy source:
@SuppressLint("String_Node_Str") @Override public boolean onTouchEvent(MotionEvent ev){
  if (checkRefreshable(ev)) {
switch (ev.getAction()) {
case MotionEvent.ACTION_DOWN:
      touchDownY=ev.getY();
    currentY=touchDownY;
  lastY=currentY;
break;
case MotionEvent.ACTION_MOVE:
currentY=ev.getY();
if (dragging) {
float dist=currentY - lastY;
if (!headerView.handleMoveDistance(dist)) {
pulling=false;
return super.onTouchEvent(ev);
}
 else {
pulling=true;
}
lastY=currentY;
}
 else {
if (Math.abs(currentY - touchDownY) > touchSlop) {
dragging=true;
}
}
break;
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
headerView.handleOperationDone();
pulling=false;
dragging=false;
break;
default :
break;
}
if (ev.getAction() == MotionEvent.ACTION_MOVE && pulling) {
return true;
}
 else {
return super.onTouchEvent(ev);
}
}
return super.onTouchEvent(ev);
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") @Override public boolean onTouchEvent(MotionEvent ev){
  System.out.println(ev.getAction());
  if (checkRefreshable(ev)) {
switch (ev.getAction()) {
case MotionEvent.ACTION_DOWN:
      touchDownY=ev.getY();
    currentY=touchDownY;
  lastY=currentY;
break;
case MotionEvent.ACTION_MOVE:
currentY=ev.getY();
if (dragging) {
float dist=currentY - lastY;
if (!headerView.handleMoveDistance(dist)) {
pulling=false;
return super.onTouchEvent(ev);
}
 else {
pulling=true;
}
lastY=currentY;
}
 else {
if (Math.abs(currentY - touchDownY) > touchSlop) {
dragging=true;
lastY=currentY;
}
}
break;
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
headerView.handleOperationDone();
pulling=false;
dragging=false;
break;
default :
break;
}
if (ev.getAction() == MotionEvent.ACTION_MOVE && pulling) {
return true;
}
 else {
return super.onTouchEvent(ev);
}
}
return super.onTouchEvent(ev);
}
Program: 33544
Project: 33544
Buggy source:
/** 
 * 处理运动过程中的变化 好了问题来了：挖掘机技术到底哪家强？ 不对打错了，假如说我想让header的高度是变化的，那么如果使用margin来控制的话无疑增加了麻烦的计算。 所以呢最好的方式是不用margin，而是使用直接改变高度的方式
 * @param dist
 */
public void handleMotion(float dist){
switch (currentState) {
case LListView.State_Pull_To_Refresh:
    break;
case LListView.State_Release_To_Refresh:
  break;
case LListView.State_Refreshing:
break;
}
setHeight((int)(getHeight() + dist));
}

Fixed version (ground truth):
/** 
 * 处理运动过程中的变化 假如说我想让header的高度是变化的，那么如果使用margin来控制的话无疑增加了麻烦的计算。 所以呢最好的方式是不用margin，而是使用直接改变高度的方式
 * @param dist
 */
public void handleMotion(float dist){
switch (currentState) {
case LListView.State_Pull_To_Refresh:
    break;
case LListView.State_Release_To_Refresh:
  break;
case LListView.State_Refreshing:
break;
}
setHeight((int)(getHeight() + dist));
}
Program: 33545
Project: 33545
Buggy source:
public boolean handleMoveDistance(float dist){
  if (dist < 0 && !isVisible()) {
    return false;
  }
  handleMotion(dist);
  if (currentState != LListView.State_Refreshing) {
    if (isOverReleaseThreshold()) {
      currentState=LListView.State_Release_To_Refresh;
    }
 else {
      currentState=LListView.State_Pull_To_Refresh;
    }
  }
  if (lastState != currentState) {
    if (currentState == LListView.State_Pull_To_Refresh) {
      if (lastState == LListView.State_Normal) {
        normal2Pull();
      }
 else       if (lastState == LListView.State_Release_To_Refresh) {
        release2Pull();
      }
    }
 else     if (currentState == LListView.State_Release_To_Refresh) {
      pull2Release();
    }
  }
  lastState=currentState;
  return true;
}

Fixed version (ground truth):
public boolean handleMoveDistance(float dist){
  if (dist < 0 && !isVisible()) {
    return false;
  }
  float rat=1.5f;
  dist/=rat;
  handleMotion(dist);
  if (currentState != LListView.State_Refreshing) {
    if (isOverReleaseThreshold()) {
      currentState=LListView.State_Release_To_Refresh;
    }
 else {
      currentState=LListView.State_Pull_To_Refresh;
    }
  }
  if (lastState != currentState) {
    if (currentState == LListView.State_Pull_To_Refresh) {
      if (lastState == LListView.State_Normal) {
        normal2Pull();
      }
 else       if (lastState == LListView.State_Release_To_Refresh) {
        release2Pull();
      }
    }
 else     if (currentState == LListView.State_Release_To_Refresh) {
      pull2Release();
    }
  }
  lastState=currentState;
  return true;
}
Program: 33546
Project: 33546
Buggy source:
@SuppressLint("String_Node_Str") @Override public boolean onTouchEvent(MotionEvent ev){
  if (checkRefreshable(ev)) {
switch (ev.getAction()) {
case MotionEvent.ACTION_DOWN:
      touchDownY=ev.getY();
    currentY=touchDownY;
  lastY=currentY;
break;
case MotionEvent.ACTION_MOVE:
currentY=ev.getY();
if (dragging) {
float dist=currentY - lastY;
if (!headerView.handleMoveDistance(dist)) {
pulling=false;
return super.onTouchEvent(ev);
}
 else {
pulling=true;
}
lastY=currentY;
}
 else {
if (Math.abs(currentY - touchDownY) > touchSlop) {
dragging=true;
lastY=currentY;
}
}
break;
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
headerView.handleOperationDone();
pulling=false;
dragging=false;
break;
default :
break;
}
if (ev.getAction() == MotionEvent.ACTION_MOVE && pulling) {
return true;
}
 else {
return super.onTouchEvent(ev);
}
}
return super.onTouchEvent(ev);
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") @Override public boolean onTouchEvent(MotionEvent ev){
  if (checkRefreshable(ev)) {
switch (ev.getAction()) {
case MotionEvent.ACTION_DOWN:
      touchDownY=ev.getY();
    currentY=touchDownY;
  lastY=currentY;
break;
case MotionEvent.ACTION_MOVE:
currentY=ev.getY();
if (dragging) {
float dist=currentY - lastY;
if (Math.abs(dist) > handMoveThreshold) {
if (!headerView.handleMoveDistance(dist)) {
  pulling=false;
  return super.onTouchEvent(ev);
}
 else {
  pulling=true;
}
lastY=currentY;
}
}
 else {
if (Math.abs(currentY - touchDownY) > touchSlop) {
dragging=true;
lastY=currentY;
}
}
break;
case MotionEvent.ACTION_CANCEL:
case MotionEvent.ACTION_UP:
headerView.handleOperationDone();
pulling=false;
dragging=false;
break;
default :
break;
}
if (ev.getAction() == MotionEvent.ACTION_MOVE && pulling) {
return true;
}
 else {
return super.onTouchEvent(ev);
}
}
return super.onTouchEvent(ev);
}
Program: 33547
Project: 33547
Buggy source:
private void addViews(Context context){
  touchSlop=ViewConfiguration.get(getContext()).getScaledTouchSlop();
  headerView=new LListHeader(context);
  addHeaderView(headerView);
}

Fixed version (ground truth):
private void addViews(Context context){
  touchSlop=(int)(ViewConfiguration.get(getContext()).getScaledTouchSlop() * 1.5);
  headerView=new LListHeader(context);
  addHeaderView(headerView);
}
Program: 33549
Project: 33549
Buggy source:
private TableMetadata createTable() throws ConnectorException {
  TableMetadataBuilder tableMetadataBuilder=new TableMetadataBuilder(CATALOG,TABLE);
  TableMetadata tableMetadata=tableMetadataBuilder.addColumn(LONG_COLUMN,ColumnType.BIGINT).addColumn(STRING_COLUMN,ColumnType.VARCHAR).build(false);
  sConnector.getMetadataEngine().createTable(getClusterName(),tableMetadata);
  return tableMetadata;
}

Fixed version (ground truth):
private TableMetadata createTable() throws ConnectorException {
  ClusterName clusterName=getClusterName();
  TableMetadataBuilder tableMetadataBuilder=new TableMetadataBuilder(CATALOG,TABLE,clusterName.getName());
  TableMetadata tableMetadata=tableMetadataBuilder.addColumn(LONG_COLUMN,ColumnType.BIGINT).addColumn(STRING_COLUMN,ColumnType.VARCHAR).build(false);
  sConnector.getMetadataEngine().createTable(clusterName,tableMetadata);
  return tableMetadata;
}
Program: 33554
Project: 33554
Buggy source:
private void insertValuesToStream(TableMetadata tableMetadata,RowToInsertDefault rowToInsert) throws ConnectorException {
  StreamingInserter streamingInserter=new StreamingInserter(sConnector,getClusterName(),tableMetadata,rowToInsert);
  streamingInserter.numOfElement(10).elementPerSecond(5);
  streamingInserter.start();
  streamingInserter.addTypeToInsert(ColumnType.BIGINT).addTypeToInsert(ColumnType.VARCHAR);
  waitSeconds(10);
  streamingInserter.end();
}

Fixed version (ground truth):
private void insertValuesToStream(TableMetadata tableMetadata,RowToInsertDefault rowToInsert) throws ConnectorException {
  StreamingInserter streamingInserter=new StreamingInserter(sConnector,getClusterName(),tableMetadata,rowToInsert);
  streamingInserter.numOfElement(10).elementPerSecond(5);
  streamingInserter.addTypeToInsert(ColumnType.BIGINT).addTypeToInsert(ColumnType.VARCHAR);
  streamingInserter.start();
  waitSeconds(10);
  streamingInserter.end();
}
Program: 33555
Project: 33555
Buggy source:
public Long getBigLong(Integer value){
  return new Long(value + +new Long(Long.MAX_VALUE / 2));
}

Fixed version (ground truth):
public Long getBigLong(Integer value){
  return new Long(value + new Long(Long.MAX_VALUE / 2));
}
Program: 33556
Project: 33556
Buggy source:
/** 
 * This method create a type in Streaming.
 * @param streamMetadata the stream configuration.
 * @throws UnsupportedException if any operation is not supported.
 * @throws ExecutionException   if an error occur.
 */
@Override protected void createTable(TableMetadata streamMetadata,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  String streamName=StreamUtil.createStreamName(streamMetadata.getName());
  try {
    List<ColumnNameType> columnList=new ArrayList<ColumnNameType>();
    for (    ColumnName columnInfo : streamMetadata.getColumns().keySet()) {
      String columnName=columnInfo.getName();
      com.stratio.streaming.commons.constants.ColumnType columnType=convertType(streamMetadata.getColumns().get(columnInfo).getColumnType());
      columnList.add(new ColumnNameType(columnName,columnType));
    }
    connection.getNativeConnection().createStream(streamName,columnList);
  }
 catch (  StratioEngineOperationException|StratioEngineStatusException|StratioAPISecurityException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}

Fixed version (ground truth):
/** 
 * This method create a type in Streaming.
 * @param streamMetadata the stream configuration.
 * @throws UnsupportedException if any operation is not supported.
 * @throws ExecutionException if an error occur.
 */
@Override protected void createTable(TableMetadata streamMetadata,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  String streamName=StreamUtil.createStreamName(streamMetadata.getName());
  try {
    List<ColumnNameType> columnList=new ArrayList<ColumnNameType>();
    for (    ColumnName columnInfo : streamMetadata.getColumns().keySet()) {
      String columnName=columnInfo.getName();
      com.stratio.streaming.commons.constants.ColumnType columnType=convertType(streamMetadata.getColumns().get(columnInfo).getColumnType());
      columnList.add(new ColumnNameType(columnName,columnType));
    }
    connection.getNativeConnection().createStream(streamName,columnList);
  }
 catch (  StratioEngineOperationException|StratioEngineStatusException|StratioAPISecurityException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}
Program: 33557
Project: 33557
Buggy source:
/** 
 * This method create a index in ES.
 * @param indexMetaData the index configuration.
 * @throws UnsupportedException if any operation is not supported.
 * @throws ExecutionException   if an error occur.
 */
@Override protected void createCatalog(CatalogMetadata indexMetaData,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * This method create a index in ES.
 * @param indexMetaData the index configuration.
 * @throws UnsupportedException if any operation is not supported.
 * @throws ExecutionException if an error occur.
 */
@Override protected void createCatalog(CatalogMetadata indexMetaData,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}
Program: 33558
Project: 33558
Buggy source:
/** 
 * This method drop a index in Streaming.
 * @param indexName  the index name
 * @param connection the connection.
 * @throws UnsupportedException if the operation is not supported.
 */
@Override protected void dropCatalog(CatalogName indexName,Connection<IStratioStreamingAPI> connection) throws ExecutionException, UnsupportedException {
  throw new UnsupportedException("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * This method drop a index in Streaming.
 * @param indexName the index name
 * @param connection the connection.
 * @throws UnsupportedException if the operation is not supported.
 */
@Override protected void dropCatalog(CatalogName indexName,Connection<IStratioStreamingAPI> connection) throws ExecutionException, UnsupportedException {
  throw new UnsupportedException("String_Node_Str");
}
Program: 33559
Project: 33559
Buggy source:
/** 
 * This method create a index.
 * @param indexMetadata the index metadata.
 * @param connection    the conection.
 * @throws UnsupportedException if the operation is not supported.
 * @throws ExecutionException   if any error happens.
 */
@Override protected void createIndex(IndexMetadata indexMetadata,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * This method create a index.
 * @param indexMetadata the index metadata.
 * @param connection the conection.
 * @throws UnsupportedException if the operation is not supported.
 * @throws ExecutionException if any error happens.
 */
@Override protected void createIndex(IndexMetadata indexMetadata,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}
Program: 33560
Project: 33560
Buggy source:
/** 
 * This method drop a type in Streaming.
 * @param stream     the stream name.
 * @param connection the connection.
 * @throws ExecutionException if any error happens.
 */
@Override protected void dropTable(TableName stream,Connection<IStratioStreamingAPI> connection) throws ExecutionException, UnsupportedException {
  String streamName=StreamUtil.createStreamName(stream);
  try {
    connection.getNativeConnection().dropStream(streamName);
  }
 catch (  StratioStreamingException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}

Fixed version (ground truth):
/** 
 * This method drop a type in Streaming.
 * @param stream the stream name.
 * @param connection the connection.
 * @throws ExecutionException if any error happens.
 */
@Override protected void dropTable(TableName stream,Connection<IStratioStreamingAPI> connection) throws ExecutionException, UnsupportedException {
  String streamName=StreamUtil.createStreamName(stream);
  try {
    connection.getNativeConnection().dropStream(streamName);
  }
 catch (  StratioStreamingException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}
Program: 33561
Project: 33561
Buggy source:
/** 
 * Allow add columns to an existing stream.
 * @param name the stream name
 * @param alterOptions the alter options
 * @param connection the connection
 * @throws UnsupportedException if the operation is not supported
 */
@Override protected void alterTable(TableName name,AlterOptions alterOptions,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  if (alterOptions.getOption() == AlterOperation.ADD_COLUMN) {
    String streamName=StreamUtil.createStreamName(name);
    com.stratio.streaming.commons.constants.ColumnType columnType=convertType(alterOptions.getColumnMetadata().getColumnType());
    ColumnNameType column=new ColumnNameType(alterOptions.getColumnMetadata().getName().getName(),columnType);
    try {
      connection.getNativeConnection().alterStream(streamName,Arrays.asList(column));
    }
 catch (    StratioEngineOperationException|StratioEngineStatusException|StratioAPISecurityException e) {
      String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
      logger.error(msg);
      throw new ExecutionException(msg,e);
    }
  }
 else   throw new UnsupportedException("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Allow add columns to an existing stream.
 * @param name the stream name
 * @param alterOptions the alter options
 * @param connection the connection
 * @throws UnsupportedException if the operation is not supported
 */
@Override protected void alterTable(TableName name,AlterOptions alterOptions,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  if (alterOptions.getOption() == AlterOperation.ADD_COLUMN) {
    String streamName=StreamUtil.createStreamName(name);
    com.stratio.streaming.commons.constants.ColumnType columnType=convertType(alterOptions.getColumnMetadata().getColumnType());
    ColumnNameType column=new ColumnNameType(alterOptions.getColumnMetadata().getName().getName(),columnType);
    try {
      connection.getNativeConnection().alterStream(streamName,Arrays.asList(column));
    }
 catch (    StratioEngineOperationException|StratioEngineStatusException|StratioAPISecurityException e) {
      String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
      logger.error(msg);
      throw new ExecutionException(msg,e);
    }
  }
 else {
    throw new UnsupportedException("String_Node_Str");
  }
}
Program: 33562
Project: 33562
Buggy source:
/** 
 * This method drop a index.
 * @param indexMetadata the index metadata.
 * @param connection    the conection.
 * @throws UnsupportedException if the operation is not supported.
 * @throws ExecutionException   if any error happens.
 */
@Override protected void dropIndex(IndexMetadata indexMetadata,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * This method drop a index.
 * @param indexMetadata the index metadata.
 * @param connection the conection.
 * @throws UnsupportedException if the operation is not supported.
 * @throws ExecutionException if any error happens.
 */
@Override protected void dropIndex(IndexMetadata indexMetadata,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}
Program: 33563
Project: 33563
Buggy source:
/** 
 * Insert a set of documents in Streaming.
 * @param rows the set of rows.
 * @throws ExecutionException   in case of failure during the execution.
 * @throws UnsupportedException if the operation is not supported.
 */
@Override protected void insert(TableMetadata targetStream,Collection<Row> rows,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  String streamName=targetStream.getName().getName();
  try {
    for (    Row row : rows) {
      insert(targetStream,row,connection);
    }
  }
 catch (  ExecutionException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}

Fixed version (ground truth):
/** 
 * Insert a set of documents in Streaming.
 * @param rows the set of rows.
 * @throws ExecutionException in case of failure during the execution.
 * @throws UnsupportedException if the operation is not supported.
 */
@Override protected void insert(TableMetadata targetStream,Collection<Row> rows,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  String streamName=targetStream.getName().getName();
  try {
    for (    Row row : rows) {
      insert(targetStream,row,connection);
    }
  }
 catch (  ExecutionException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}
Program: 33564
Project: 33564
Buggy source:
/** 
 * Constructor.
 * @param credentials the credentials.
 * @param config The cluster configuration.
 * @throws StratioEngineConnectionException if an connections error happens.
 */
public StreamingConnection(ICredentials credentials,ConnectorClusterConfig config) throws StratioEngineConnectionException {
  if (credentials != null) {
    throw new StratioEngineConnectionException("String_Node_Str");
  }
  String kafkaServer=ConnectorParser.hosts(config.getClusterOptions().get(KAFKA_SERVER))[0];
  int kafkaPort=Integer.parseInt(ConnectorParser.ports(config.getClusterOptions().get(KAFKA_PORT))[0]);
  String zooKeeperServer=ConnectorParser.hosts(config.getClusterOptions().get(ZOOKEEPER_SERVER))[0];
  int zooKeeperPort=Integer.parseInt(ConnectorParser.ports(config.getClusterOptions().get(ZOOKEEPER_PORT))[0]);
  stratioStreamingAPI=StratioStreamingAPIFactory.create().initializeWithServerConfig(kafkaServer,kafkaPort,zooKeeperServer,zooKeeperPort);
  connectionName=config.getName().getName();
  logger.info("String_Node_Str" + connectionName + "String_Node_Str");
  isConnect=true;
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param credentials the credentials.
 * @param config The cluster configuration.
 * @throws ConnectionException
 * @throws StratioEngineConnectionException if an connections error happens.
 */
public StreamingConnection(ICredentials credentials,ConnectorClusterConfig config) throws ConnectionException {
  if (credentials != null) {
    throw new ConnectionException("String_Node_Str");
  }
  String kafkaServer=ConnectorParser.hosts(config.getClusterOptions().get(KAFKA_SERVER))[0];
  int kafkaPort=Integer.parseInt(ConnectorParser.ports(config.getClusterOptions().get(KAFKA_PORT))[0]);
  String zooKeeperServer=ConnectorParser.hosts(config.getClusterOptions().get(ZOOKEEPER_SERVER))[0];
  int zooKeeperPort=Integer.parseInt(ConnectorParser.ports(config.getClusterOptions().get(ZOOKEEPER_PORT))[0]);
  stratioStreamingAPI=StratioStreamingAPIFactory.create().withServerConfig(kafkaServer,kafkaPort,zooKeeperServer,zooKeeperPort);
  try {
    stratioStreamingAPI.init();
    logger.info("String_Node_Str" + config.getName().getName() + "String_Node_Str");
    isConnected=true;
  }
 catch (  StratioEngineConnectionException e) {
    String msg="String_Node_Str" + e.getMessage();
    logger.error(msg);
    throw new ConnectionException(msg,e);
  }
}
Program: 33565
Project: 33565
Buggy source:
/** 
 * This method close the connection.
 */
public void close(){
  if (stratioStreamingAPI != null) {
    stratioStreamingAPI.close();
    isConnect=false;
    stratioStreamingAPI=null;
    logger.info("String_Node_Str" + connectionName + "String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * This method close the connection.
 */
public void close(){
  if (stratioStreamingAPI != null) {
    stratioStreamingAPI.close();
    isConnected=false;
    stratioStreamingAPI=null;
    logger.info("String_Node_Str" + connectionName + "String_Node_Str");
  }
}
Program: 33566
Project: 33566
Buggy source:
/** 
 * This method creates a steaming native connection.
 * @param iCredentials the credentials.
 * @param connectorClusterConfig the configuration.
 * @return a logic connection with a native connection inside.
 * @throws CreateNativeConnectionException if a error happens.
 */
@Override protected Connection<IStratioStreamingAPI> createNativeConnection(ICredentials iCredentials,ConnectorClusterConfig connectorClusterConfig) throws CreateNativeConnectionException {
  Connection<IStratioStreamingAPI> con=null;
  try {
    con=new StreamingConnection(iCredentials,connectorClusterConfig);
  }
 catch (  StratioEngineConnectionException e) {
    String msg="String_Node_Str" + e.getMessage();
    logger.error(msg);
    throw new CreateNativeConnectionException(msg,e);
  }
  return con;
}

Fixed version (ground truth):
/** 
 * This method creates a steaming native connection.
 * @param iCredentials the credentials.
 * @param connectorClusterConfig the configuration.
 * @return a logic connection with a native connection inside.
 * @throws ConnectionException if an error happens establishing the connection.
 */
@Override protected Connection<IStratioStreamingAPI> createNativeConnection(ICredentials iCredentials,ConnectorClusterConfig connectorClusterConfig) throws ConnectionException {
  Connection<IStratioStreamingAPI> con=new StreamingConnection(iCredentials,connectorClusterConfig);
  return con;
}
Program: 33567
Project: 33567
Buggy source:
/** 
 * Turn cross data type into streaming types.
 * @param columnType the crossdata type.
 * @return the streaming type.
 * @throws UnsupportedException if columnType is not supported.
 */
private com.stratio.streaming.commons.constants.ColumnType convertType(ColumnType columnType) throws UnsupportedException {
  com.stratio.streaming.commons.constants.ColumnType returnType=null;
switch (columnType) {
case BIGINT:
    returnType=com.stratio.streaming.commons.constants.ColumnType.LONG;
  break;
case BOOLEAN:
returnType=com.stratio.streaming.commons.constants.ColumnType.BOOLEAN;
break;
case DOUBLE:
returnType=com.stratio.streaming.commons.constants.ColumnType.DOUBLE;
break;
case FLOAT:
returnType=com.stratio.streaming.commons.constants.ColumnType.FLOAT;
break;
case INT:
returnType=com.stratio.streaming.commons.constants.ColumnType.INTEGER;
break;
case TEXT:
case VARCHAR:
returnType=com.stratio.streaming.commons.constants.ColumnType.STRING;
break;
default :
throw new UnsupportedException("String_Node_Str" + columnType.name() + "String_Node_Str");
}
return returnType;
}

Fixed version (ground truth):
/** 
 * Turn cross data type into streaming types.
 * @param columnType the crossdata type.
 * @return the streaming type.
 * @throws ExecutionException if columnType is not supported.
 */
private com.stratio.streaming.commons.constants.ColumnType convertType(ColumnType columnType) throws ExecutionValidationException {
  com.stratio.streaming.commons.constants.ColumnType returnType=null;
switch (columnType) {
case BIGINT:
    returnType=com.stratio.streaming.commons.constants.ColumnType.LONG;
  break;
case BOOLEAN:
returnType=com.stratio.streaming.commons.constants.ColumnType.BOOLEAN;
break;
case DOUBLE:
returnType=com.stratio.streaming.commons.constants.ColumnType.DOUBLE;
break;
case FLOAT:
returnType=com.stratio.streaming.commons.constants.ColumnType.FLOAT;
break;
case INT:
returnType=com.stratio.streaming.commons.constants.ColumnType.INTEGER;
break;
case TEXT:
case VARCHAR:
returnType=com.stratio.streaming.commons.constants.ColumnType.STRING;
break;
default :
throw new ExecutionValidationException("String_Node_Str" + columnType.name() + "String_Node_Str");
}
return returnType;
}
Program: 33568
Project: 33568
Buggy source:
/** 
 * Allow add columns to an existing stream.
 * @param name the stream name
 * @param alterOptions the alter options
 * @param connection the connection
 * @throws UnsupportedException if the operation is not supported
 */
@Override protected void alterTable(TableName name,AlterOptions alterOptions,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  if (alterOptions.getOption() == AlterOperation.ADD_COLUMN) {
    String streamName=StreamUtil.createStreamName(name);
    com.stratio.streaming.commons.constants.ColumnType columnType=convertType(alterOptions.getColumnMetadata().getColumnType());
    ColumnNameType column=new ColumnNameType(alterOptions.getColumnMetadata().getName().getName(),columnType);
    try {
      connection.getNativeConnection().alterStream(streamName,Arrays.asList(column));
    }
 catch (    StratioEngineOperationException|StratioEngineStatusException|StratioAPISecurityException e) {
      String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
      logger.error(msg);
      throw new ExecutionException(msg,e);
    }
  }
 else {
    throw new UnsupportedException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Allow add columns to an existing stream.
 * @param name the stream name
 * @param alterOptions the alter options
 * @param connection the connection
 * @throws ExecutionValidationException if the operation is not supported
 */
@Override protected void alterTable(TableName name,AlterOptions alterOptions,Connection<IStratioStreamingAPI> connection) throws ExecutionValidationException, ExecutionException {
  if (alterOptions.getOption() == AlterOperation.ADD_COLUMN) {
    String streamName=StreamUtil.createStreamName(name);
    com.stratio.streaming.commons.constants.ColumnType columnType=convertType(alterOptions.getColumnMetadata().getColumnType());
    ColumnNameType column=new ColumnNameType(alterOptions.getColumnMetadata().getName().getName(),columnType);
    try {
      connection.getNativeConnection().alterStream(streamName,Arrays.asList(column));
    }
 catch (    StratioEngineOperationException|StratioEngineStatusException|StratioAPISecurityException e) {
      String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
      logger.error(msg);
      throw new ExecutionException(msg,e);
    }
  }
 else {
    throw new ExecutionValidationException("String_Node_Str");
  }
}
Program: 33569
Project: 33569
Buggy source:
/** 
 * This method stop a query.
 * @param queryId the queryId.
 * @throws UnsupportedException if any operation is not supported.
 * @throws ExecutionException if any error happens.
 */
@Override public synchronized void stop(String queryId) throws UnsupportedException, ExecutionException {
  try {
    ConnectorProcess process=connectorProcessHandler.getProcess(queryId);
    connectionHandler.endWork(process.getProject().getClusterName().getName());
    connectorProcessHandler.stopProcess(queryId);
  }
 catch (  ConnectionProcessException e) {
    logger.error("String_Node_Str" + e.getMessage());
    throw new ExecutionException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
/** 
 * This method stop a query.
 * @param queryId the queryId.
 * @throws ExecutionException if any error happens.
 */
@Override public synchronized void stop(String queryId) throws ExecutionException {
  try {
    ConnectorProcess process=connectorProcessHandler.getProcess(queryId);
    connectionHandler.endWork(process.getProject().getClusterName().getName());
    connectorProcessHandler.stopProcess(queryId);
  }
 catch (  ConnectionProcessException e) {
    logger.error("String_Node_Str" + e.getMessage());
    throw new ExecutionException("String_Node_Str",e);
  }
}
Program: 33570
Project: 33570
Buggy source:
/** 
 * This method initialize a process.
 * @param queryId the queryId.
 * @param workflow the workflow.
 * @param resultHandler the result handler.
 * @return a query process.
 * @throws ConnectionProcessException if the connection fails.
 * @throws HandlerConnectionException if handling the connection fails.
 */
private QueryProcess initProcess(String queryId,LogicalWorkflow workflow,IResultHandler resultHandler) throws ConnectionProcessException, HandlerConnectionException {
  Project project=(Project)workflow.getInitialSteps().get(0);
  String clusterName=project.getClusterName().getName();
  connectionHandler.startWork(clusterName);
  return new QueryProcess(queryId,project,resultHandler,connectionHandler.getConnection(clusterName));
}

Fixed version (ground truth):
/** 
 * This method initialize a process.
 * @param queryId the queryId.
 * @param workflow the workflow.
 * @param resultHandler the result handler.
 * @return a query process.
 * @throws ExecutionException if the execution fails.
 */
private QueryProcess initProcess(String queryId,LogicalWorkflow workflow,IResultHandler resultHandler) throws ExecutionException {
  Project project=(Project)workflow.getInitialSteps().get(0);
  String clusterName=project.getClusterName().getName();
  connectionHandler.startWork(clusterName);
  return new QueryProcess(queryId,project,resultHandler,connectionHandler.getConnection(clusterName));
}
Program: 33571
Project: 33571
Buggy source:
/** 
 * Execute a asynchronous query.
 * @param queryId the queryId.
 * @param workflow the work flow witch represents the query.
 * @param resultHandler the result handler.
 * @return the query result.
 * @throws UnsupportedException if aany operation is not supported.
 * @throws ExecutionException if any error happens.
 */
@Override public void asyncExecute(String queryId,LogicalWorkflow workflow,IResultHandler resultHandler) throws UnsupportedException, ExecutionException {
  validateLogicalWorkflow(queryId,workflow,resultHandler);
  try {
    connectorProcessHandler.startProcess(queryId,initProcess(queryId,workflow,resultHandler));
  }
 catch (  ConnectionProcessException|HandlerConnectionException e) {
    logger.error("String_Node_Str" + e.getMessage());
    resultHandler.processException(queryId,new ExecutionException("String_Node_Str",e));
  }
 finally {
  }
}

Fixed version (ground truth):
/** 
 * Execute a asynchronous query.
 * @param queryId the queryId.
 * @param workflow the work flow witch represents the query.
 * @param resultHandler the result handler.
 * @return the query result.
 * @throws ExecutionException if any error happens.
 */
@Override public void asyncExecute(String queryId,LogicalWorkflow workflow,IResultHandler resultHandler) throws ExecutionException {
  validateLogicalWorkflow(queryId,workflow,resultHandler);
  try {
    connectorProcessHandler.startProcess(queryId,initProcess(queryId,workflow,resultHandler));
  }
 catch (  ConnectionProcessException e) {
    logger.error("String_Node_Str" + e.getMessage());
    resultHandler.processException(queryId,new ExecutionException("String_Node_Str",e));
  }
 finally {
  }
}
Program: 33572
Project: 33572
Buggy source:
/** 
 * Execute a query.
 * @param workflow the work flow witch represents the query.
 * @return the query result.
 * @throws UnsupportedException if aany operation is not supported.
 * @throws ExecutionException if any error happens.
 */
@Override public QueryResult execute(LogicalWorkflow workflow) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Execute a query.
 * @param workflow the work flow witch represents the query.
 * @return the query result.
 * @throws ExecutionException if any error happens.
 */
@Override public QueryResult execute(LogicalWorkflow workflow) throws UnsupportedException, ExecutionException {
  throw new UnsupportedException("String_Node_Str");
}
Program: 33573
Project: 33573
Buggy source:
/** 
 * Insert a set of documents in Streaming.
 * @param rows the set of rows.
 * @throws ExecutionException in case of failure during the execution.
 * @throws UnsupportedException if the operation is not supported.
 */
@Override protected void insert(TableMetadata targetStream,Collection<Row> rows,Connection<IStratioStreamingAPI> connection) throws UnsupportedException, ExecutionException {
  String streamName=targetStream.getName().getName();
  try {
    for (    Row row : rows) {
      insert(targetStream,row,connection);
    }
  }
 catch (  ExecutionException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}

Fixed version (ground truth):
/** 
 * Insert a set of documents in Streaming.
 * @param rows the set of rows.
 * @throws ExecutionException in case of failure during the execution.
 */
@Override protected void insert(TableMetadata targetStream,Collection<Row> rows,Connection<IStratioStreamingAPI> connection) throws ExecutionException {
  String streamName=targetStream.getName().getName();
  try {
    for (    Row row : rows) {
      insert(targetStream,row,connection);
    }
  }
 catch (  ExecutionException e) {
    String msg="String_Node_Str" + streamName + "String_Node_Str"+ e.getMessage();
    logger.error(msg);
    throw new ExecutionException(msg,e);
  }
}
Program: 33574
Project: 33574
Buggy source:
/** 
 * This method create a query.
 * @param queryData the query data.
 * @return the string query representation.
 * @throws ExecutionException in any error happens.
 * @throws UnsupportedException if any operation is not supported.
 */
public String createQuery(ConnectorQueryData queryData) throws ExecutionException, UnsupportedException {
  createInputQuery(queryData);
  createProjection(queryData);
  createOutputQuery(queryData);
  return querySb.toString();
}

Fixed version (ground truth):
/** 
 * This method create a query.
 * @param queryData the query data.
 * @return the string query representation.
 * @throws ExecutionException in any error happens.
 * @throws ExecutionValidationException if any operation is not supported.
 */
public String createQuery(ConnectorQueryData queryData) throws ExecutionException, ExecutionValidationException {
  createInputQuery(queryData);
  createProjection(queryData);
  createOutputQuery(queryData);
  return querySb.toString();
}
Program: 33575
Project: 33575
Buggy source:
/** 
 * Create the condition query part.
 * @param queryData the query data.
 * @throws UnsupportedException if any operation is not supported.
 * @throws ExecutionException in any error happens.
 */
private void createConditionList(ConnectorQueryData queryData) throws UnsupportedException, ExecutionException {
  querySb.append("String_Node_Str");
  Iterator<Filter> filterIter=queryData.getFilter().iterator();
  while (filterIter.hasNext()) {
    Relation rel=filterIter.next().getRelation();
    String value=SelectorHelper.getValue(String.class,rel.getRightTerm());
    querySb.append(SelectorHelper.getValue(String.class,rel.getLeftTerm())).append("String_Node_Str").append(getSiddhiOperator(rel.getOperator())).append("String_Node_Str");
    if (rel.getRightTerm() instanceof StringSelector) {
      querySb.append("String_Node_Str").append(value).append("String_Node_Str");
    }
 else {
      querySb.append(value);
    }
    if (filterIter.hasNext()) {
      querySb.append("String_Node_Str");
    }
  }
  querySb.append("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Create the condition query part.
 * @param queryData the query data.
 * @throws ExecutionValidationException if any operation is not supported.
 * @throws ExecutionException in any error happens.
 */
private void createConditionList(ConnectorQueryData queryData) throws ExecutionValidationException, ExecutionException {
  querySb.append("String_Node_Str");
  Iterator<Filter> filterIter=queryData.getFilter().iterator();
  while (filterIter.hasNext()) {
    Relation rel=filterIter.next().getRelation();
    String value=SelectorHelper.getValue(String.class,rel.getRightTerm());
    querySb.append(SelectorHelper.getValue(String.class,rel.getLeftTerm())).append("String_Node_Str").append(getSiddhiOperator(rel.getOperator())).append("String_Node_Str");
    if (rel.getRightTerm() instanceof StringSelector) {
      querySb.append("String_Node_Str").append(value).append("String_Node_Str");
    }
 else {
      querySb.append(value);
    }
    if (filterIter.hasNext()) {
      querySb.append("String_Node_Str");
    }
  }
  querySb.append("String_Node_Str");
}