nus-yam/ex-repair huggingface dataset:
Program: 35144
Project: 35144
Buggy source:
/** 
 * Updates one or more existing test runs in a plan (partial updates are supported, i.e. you can submit and update specific fields only).
 * @param planId The ID of the test plan
 * @param entryId The ID of the test plan entry (note: not the test run ID)
 * @param updatePlanEntry the (partial) updates to the plan entry
 * @return the updated plan entry
 */
public PlanEntry updateTestPlanEntry(int planId,int entryId,UpdatePlanEntry updatePlanEntry){
  return postRESTBodyReturn(TestRailCommand.UPDATE_PLAN_ENTRY.getCommand(),Integer.toString(planId) + "String_Node_Str" + Integer.toString(entryId),updatePlanEntry,PlanEntry.class);
}

Fixed version (ground truth):
/** 
 * Updates one or more existing test runs in a plan (partial updates are supported, i.e. you can submit and update specific fields only).
 * @param planId The ID of the test plan
 * @param entryId The ID of the test plan entry (note: not the test run ID)
 * @param updatePlanEntry the (partial) updates to the plan entry
 * @return the updated plan entry
 */
public PlanEntry updateTestPlanEntry(int planId,String entryId,UpdatePlanEntry updatePlanEntry){
  return postRESTBodyReturn(TestRailCommand.UPDATE_PLAN_ENTRY.getCommand(),Integer.toString(planId) + "String_Node_Str" + entryId,updatePlanEntry,PlanEntry.class);
}
Program: 35145
Project: 35145
Buggy source:
public void setCaseId(Integer testId){
  this.caseId=caseId;
}

Fixed version (ground truth):
public void setCaseId(Integer caseId){
  this.caseId=caseId;
}
Program: 35146
Project: 35146
Buggy source:
public void setCaseIds(Integer milestoneId){
  this.caseIds=caseIds;
}

Fixed version (ground truth):
public void setCaseIds(Integer[] caseIds){
  this.caseIds=caseIds;
}
Program: 35147
Project: 35147
Buggy source:
public void setAssignedToId(Integer milestoneId){
  this.assignedToId=assignedToId;
}

Fixed version (ground truth):
public void setAssignedToId(Integer assignedToId){
  this.assignedToId=assignedToId;
}
Program: 35148
Project: 35148
Buggy source:
@Test public void testAddCustomTestCaseStatus(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestStatus.addStatus("String_Node_Str",6);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  try {
    TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  }
 catch (  IOException e) {
    Assert.fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testAddCustomTestCaseStatus(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestStatus.addStatus("String_Node_Str",6);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  TestResult returnedResult=TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  if (returnedResult == null) {
    Assert.fail("String_Node_Str");
  }
}
Program: 35149
Project: 35149
Buggy source:
@Test public void testAddTestCaseResultRetest(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  try {
    TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  }
 catch (  IOException e) {
    Assert.fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testAddTestCaseResultRetest(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  TestResult returnedResult=TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  if (returnedResult == null) {
    Assert.fail("String_Node_Str");
  }
}
Program: 35150
Project: 35150
Buggy source:
@Test public void testAddTestCaseResultFail(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  try {
    TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  }
 catch (  IOException e) {
    Assert.fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testAddTestCaseResultFail(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  TestResult returnedResult=TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  if (returnedResult == null) {
    Assert.fail("String_Node_Str");
  }
}
Program: 35151
Project: 35151
Buggy source:
@Test public void testAddTestCaseResultUntested(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  try {
    TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  }
 catch (  IOException e) {
    Assert.fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testAddTestCaseResultUntested(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  TestResult returnedResult=TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  if (returnedResult == null) {
    Assert.fail("String_Node_Str");
  }
}
Program: 35152
Project: 35152
Buggy source:
@Test public void testAddTestCaseResultsList(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResults results=new TestResults();
  TestResult result1=new TestResult();
  result1.setVerdict("String_Node_Str");
  result1.setTestId(TestIntegrationSuite.testInstance.getId());
  result1.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result1.setComment("String_Node_Str");
  results.addResult(result1);
  TestResult result2=new TestResult();
  result2.setTestId(TestIntegrationSuite.testInstance.getId());
  result2.setVerdict("String_Node_Str");
  result2.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result2.setComment("String_Node_Str");
  results.addResult(result2);
  TestResult result3=new TestResult();
  result3.setTestId(TestIntegrationSuite.testInstance.getId());
  result3.setVerdict("String_Node_Str");
  result3.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result3.setComment("String_Node_Str");
  results.addResult(result3);
  try {
    TestIntegrationSuite.getService().addTestResults(TestIntegrationSuite.testRun.getId(),results);
  }
 catch (  IOException e) {
    Assert.fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testAddTestCaseResultsList(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResults results=new TestResults();
  TestResult result1=new TestResult();
  result1.setVerdict("String_Node_Str");
  result1.setTestId(TestIntegrationSuite.testInstance.getId());
  result1.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result1.setComment("String_Node_Str");
  results.addResult(result1);
  TestResult result2=new TestResult();
  result2.setTestId(TestIntegrationSuite.testInstance.getId());
  result2.setVerdict("String_Node_Str");
  result2.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result2.setComment("String_Node_Str");
  results.addResult(result2);
  TestResult result3=new TestResult();
  result3.setTestId(TestIntegrationSuite.testInstance.getId());
  result3.setVerdict("String_Node_Str");
  result3.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result3.setComment("String_Node_Str");
  results.addResult(result3);
  TestResults returnedResults=TestIntegrationSuite.getService().addTestResults(TestIntegrationSuite.testRun.getId(),results);
  if (returnedResults == null) {
    Assert.fail("String_Node_Str");
  }
}
Program: 35153
Project: 35153
Buggy source:
@Test public void testAddTestCaseResultBlocked(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  try {
    TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  }
 catch (  IOException e) {
    Assert.fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testAddTestCaseResultBlocked(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  TestResult returnedResult=TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  if (returnedResult == null) {
    Assert.fail("String_Node_Str");
  }
}
Program: 35154
Project: 35154
Buggy source:
@Test public void testAddTestCaseResultPass(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  try {
    TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  }
 catch (  IOException e) {
    Assert.fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test public void testAddTestCaseResultPass(){
  Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);
  Assume.assumeTrue(TestIntegrationSuite.testInstance != null);
  TestResult result=new TestResult();
  result.setTestId(TestIntegrationSuite.testInstance.getId());
  result.setVerdict("String_Node_Str");
  result.setAssignedtoId(TestIntegrationSuite.assignedToId);
  result.setComment("String_Node_Str");
  TestResult returnedResult=TestIntegrationSuite.getService().addTestResult(TestIntegrationSuite.testInstance.getId(),result);
  if (returnedResult == null) {
    Assert.fail("String_Node_Str");
  }
}
Program: 35155
Project: 35155
Buggy source:
/** 
 * Updates one or more existing test runs in a plan (partial updates are supported, i.e. you can submit and update specific fields only).
 * @param planId The ID of the test plan
 * @param entryId The ID of the test plan entry (note: not the test run ID)
 * @param updatePlanEntry the (partial) updates to the plan entry
 * @return the updated plan entry
 */
public PlanEntry updateTestPlanEntry(int planId,int entryId,UpdatePlanEntry updatePlanEntry){
}

Fixed version (ground truth):
/** 
 * Updates one or more existing test runs in a plan (partial updates are supported, i.e. you can submit and update specific fields only).
 * @param planId The ID of the test plan
 * @param entryId The ID of the test plan entry (note: not the test run ID)
 * @param updatePlanEntry the (partial) updates to the plan entry
 * @return the updated plan entry
 */
public PlanEntry updateTestPlanEntry(int planId,int entryId,UpdatePlanEntry updatePlanEntry){
  return postRESTBodyReturn(TestRailCommand.UPDATE_PLAN_ENTRY.getCommand(),Integer.toString(planId) + "String_Node_Str" + Integer.toString(entryId),updatePlanEntry,PlanEntry.class);
}
Program: 35156
Project: 35156
Buggy source:
/** 
 * Returns a list of all the Milestones in the given project ID
 * @param projectId the ID of project you want the Milestones from
 * @param isCompleted only accepts ApiFilter.IS_COMPLETED (numerical boolean {0|1})
 * @return the list of all the Milestones in the project
 */
public List<Milestone> getMilestones(int projectId,ApiFilterValue... isCompleted){
  return getEntityList(Milestone.class,TestRailCommand.GET_MILESTONES.getCommand(),Integer.toString(projectId) + isCompleted[0].append());
}

Fixed version (ground truth):
/** 
 * Returns a list of all the Milestones in the given project ID
 * @param projectId the ID of project you want the Milestones from
 * @param isCompleted only accepts ApiFilter.IS_COMPLETED (numerical boolean {0|1})
 * @return the list of all the Milestones in the project
 */
public List<Milestone> getMilestones(int projectId,ApiFilterValue... isCompleted){
  return getEntityList(Milestone.class,TestRailCommand.GET_MILESTONES.getCommand(),Integer.toString(projectId) + (isCompleted.length > 0 ? isCompleted[0].append() : null));
}
Program: 35161
Project: 35161
Buggy source:
private static void logMethod(MethodHookParam param){
  boolean isOutputJson=false;
  String settingValue=LogManager.getSetting(Util.JSON_OUTPUT_SETTING);
  if (settingValue != null && settingValue.equals("String_Node_Str"))   isOutputJson=true;
  Method method=(Method)param.method;
  Class<?>[] argTypes=method.getParameterTypes();
  String[] argTypeNames=new String[argTypes.length];
  for (int i=0; i < argTypes.length; i++)   argTypeNames[i]=argTypes[i].getName();
  String argsValue=Parser.parseParameters(argTypeNames,param.args,isOutputJson);
  Object returnObject=param.getResult();
  String returnTypeName="String_Node_Str";
  String returnValue="String_Node_Str";
  if (returnObject != null) {
    returnTypeName=method.getReturnType().getName();
    returnValue=Parser.parseReturnValue(returnTypeName,returnObject);
  }
  String formattedRes=null;
  if (isOutputJson)   formattedRes=String.format("String_Node_Str",method.getDeclaringClass().getName(),method.getName(),argsValue,returnTypeName,returnValue);
 else   formattedRes=String.format("String_Node_Str",method.getDeclaringClass().getName(),method.getName(),argsValue,returnValue);
  Log.i(Util.LOG_TAG,formattedRes);
}

Fixed version (ground truth):
private static void logMethod(MethodHookParam param){
  boolean isOutputJson=false;
  String settingValue=LogManager.getSetting(Util.JSON_OUTPUT_SETTING);
  if (settingValue != null && settingValue.equals("String_Node_Str")) {
    isOutputJson=true;
  }
  Method method=(Method)param.method;
  Class<?>[] argTypes=method.getParameterTypes();
  String[] argTypeNames=new String[argTypes.length];
  for (int i=0; i < argTypes.length; i++)   argTypeNames[i]=argTypes[i].getName();
  String argsValue=Parser.parseParameters(argTypeNames,param.args,isOutputJson);
  Object returnObject=param.getResult();
  String returnTypeName="String_Node_Str";
  String returnValue="String_Node_Str";
  if (returnObject != null) {
    returnTypeName=method.getReturnType().getName();
    returnValue=Parser.parseReturnValue(returnTypeName,returnObject);
  }
  String formattedRes=null;
  if (isOutputJson)   formattedRes=String.format("String_Node_Str",method.getDeclaringClass().getName(),method.getName(),argsValue,returnTypeName,returnValue);
 else   formattedRes=String.format("String_Node_Str",method.getDeclaringClass().getName(),method.getName(),argsValue,returnValue);
  Log.i(Util.LOG_TAG,formattedRes);
}
Program: 35162
Project: 35162
Buggy source:
@Override public String getSetting(String name) throws RemoteException {
  String value=null;
  if (allowAccess()) {
    try {
      SQLiteDatabase policyDb=getDatabase();
      if (mStmtGetSetting == null) {
        String sql="String_Node_Str" + cTableSetting + "String_Node_Str";
        mStmtGetSetting=policyDb.compileStatement(sql);
      }
      mLock.readLock().lock();
      policyDb.beginTransaction();
      try {
        try {
synchronized (mStmtGetSetting) {
            mStmtGetSetting.clearBindings();
            mStmtGetSetting.bindString(1,name);
            value=mStmtGetSetting.simpleQueryForString();
          }
        }
 catch (        SQLiteDoneException ignored) {
        }
        policyDb.setTransactionSuccessful();
      }
  finally {
        try {
          policyDb.endTransaction();
        }
  finally {
          mLock.readLock().unlock();
        }
      }
    }
 catch (    Throwable ex) {
      Util.bug(null,ex);
      throw new RemoteException(ex.toString());
    }
  }
  return value;
}

Fixed version (ground truth):
@Override public String getSetting(String name) throws RemoteException {
  String value=null;
  try {
    SQLiteDatabase policyDb=getDatabase();
    if (mStmtGetSetting == null) {
      String sql="String_Node_Str" + cTableSetting + "String_Node_Str";
      mStmtGetSetting=policyDb.compileStatement(sql);
    }
    mLock.readLock().lock();
    policyDb.beginTransaction();
    try {
      try {
synchronized (mStmtGetSetting) {
          mStmtGetSetting.clearBindings();
          mStmtGetSetting.bindString(1,name);
          value=mStmtGetSetting.simpleQueryForString();
        }
      }
 catch (      SQLiteDoneException ignored) {
      }
      policyDb.setTransactionSuccessful();
    }
  finally {
      try {
        policyDb.endTransaction();
      }
  finally {
        mLock.readLock().unlock();
      }
    }
  }
 catch (  Throwable ex) {
    Util.bug(null,ex);
    throw new RemoteException(ex.toString());
  }
  return value;
}
Program: 35163
Project: 35163
Buggy source:
@Override public boolean onCreateOptionsMenu(Menu menu){
  MenuInflater inflater=getMenuInflater();
  inflater.inflate(R.menu.menu_app,menu);
  mMenu=menu;
  menu.findItem(R.id.menu_user_apps).setEnabled(false);
  return true;
}

Fixed version (ground truth):
@Override public boolean onCreateOptionsMenu(Menu menu){
  MenuInflater inflater=getMenuInflater();
  inflater.inflate(R.menu.menu_app,menu);
  mMenu=menu;
  menu.findItem(R.id.menu_user_apps).setEnabled(false);
  String outputFormat=LogManager.getSetting(Util.JSON_OUTPUT_SETTING);
  if (outputFormat != null && outputFormat.equals("String_Node_Str"))   menu.findItem(R.id.menu_output).setTitle(getString(R.string.menu_default));
 else   menu.findItem(R.id.menu_output).setTitle(getString(R.string.menu_json));
  return true;
}
Program: 35164
Project: 35164
Buggy source:
private static Context getContext(){
  Context context=null;
  try {
    Class<?> cam=Class.forName("String_Node_Str");
    Object am=cam.getMethod("String_Node_Str").invoke(null);
    if (am != null) {
      context=(Context)cam.getDeclaredField("String_Node_Str").get(am);
    }
  }
 catch (  Throwable ex) {
    Util.bug(null,ex);
  }
  return context;
}

Fixed version (ground truth):
private static Context getContext(){
  Context context=null;
  try {
    Class<?> cam=Class.forName("String_Node_Str");
    Object am=cam.getMethod("String_Node_Str").invoke(null);
    if (am != null) {
      Field contextField=cam.getDeclaredField("String_Node_Str");
      contextField.setAccessible(true);
      context=(Context)contextField.get(am);
    }
  }
 catch (  Throwable ex) {
    Util.bug(null,ex);
  }
  return context;
}
Program: 35165
Project: 35165
Buggy source:
private final void setEnableMGetOp(){
  StringTokenizer tokens=new StringTokenizer(version,"String_Node_Str");
  String makedVersion=tokens.nextToken() + "String_Node_Str" + tokens.nextToken();
  double versionStandard=Double.parseDouble(makedVersion);
  if (version.contains("String_Node_Str")) {
    enabledMGetOp=versionStandard >= 0.7;
  }
 else {
    enabledMGetOp=versionStandard >= 1.11;
  }
}

Fixed version (ground truth):
private final void setEnableMGetOp(){
  StringTokenizer tokens=new StringTokenizer(version,"String_Node_Str");
  int majorVersion=Integer.parseInt(tokens.nextToken());
  int minorVersion=Integer.parseInt(tokens.nextToken());
  if (version.contains("String_Node_Str")) {
    enabledMGetOp=(majorVersion > 0 || (majorVersion == 0 && minorVersion > 6));
  }
 else {
    enabledMGetOp=(majorVersion > 1 || (majorVersion == 1 && minorVersion > 10));
  }
}
Program: 35166
Project: 35166
Buggy source:
public void testSMGetMissAll(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(oldFuture.getMissedKeyList().toString(),10,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(future.getMissedKeyList().toString(),10,future.getMissedKeyList().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetMissAll(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(oldFuture.getMissedKeyList().toString(),10,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(future.getMissedKeys().toString(),10,future.getMissedKeys().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35169
Project: 35169
Buggy source:
public void testSMGetHitHalfDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      if (i % 2 == 0)       mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
 else       mc.asyncBopInsert(KEY + i,i,null,"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeyList().toString(),5,future.getMissedKeyList().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetHitHalfDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      if (i % 2 == 0)       mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
 else       mc.asyncBopInsert(KEY + i,i,null,"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeys().toString(),5,future.getMissedKeys().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35171
Project: 35171
Buggy source:
public void testSMGetHitHalf(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      if (i % 2 == 0)       mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
 else       mc.asyncBopInsert(KEY + i,i,null,"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeyList().toString(),5,future.getMissedKeyList().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetHitHalf(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      if (i % 2 == 0)       mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
 else       mc.asyncBopInsert(KEY + i,i,null,"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeys().toString(),5,future.getMissedKeys().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35173
Project: 35173
Buggy source:
public void testSMGetHitAllDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 10; i++) {
      if (i % 2 == 0)       mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
 else       mc.asyncBopInsert(KEY + i,i,null,"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(oldFuture.getMissedKeyList().isEmpty());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(future.getMissedKeyList().isEmpty());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetHitAllDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 10; i++) {
      if (i % 2 == 0)       mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
 else       mc.asyncBopInsert(KEY + i,i,null,"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(oldFuture.getMissedKeyList().isEmpty());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(future.getMissedKeys().isEmpty());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35174
Project: 35174
Buggy source:
public void testSMGetMissAll(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(oldFuture.getMissedKeyList().toString(),10,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(future.getMissedKeyList().toString(),10,future.getMissedKeyList().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetMissAll(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(oldFuture.getMissedKeyList().toString(),10,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,1,2,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertTrue(map.isEmpty());
    Assert.assertEquals(future.getMissedKeys().toString(),10,future.getMissedKeys().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35177
Project: 35177
Buggy source:
public void testSMGetHitHalfDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeyList().toString(),5,future.getMissedKeyList().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetHitHalfDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeys().toString(),5,future.getMissedKeys().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35179
Project: 35179
Buggy source:
public void testSMGetHitHalf(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeyList().toString(),5,future.getMissedKeyList().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetHitHalf(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 5; i++) {
      mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(oldFuture.getMissedKeyList().toString(),5,oldFuture.getMissedKeyList().size());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,0,10,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    assertEquals(5,map.size());
    assertEquals(future.getMissedKeys().toString(),5,future.getMissedKeys().size());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35181
Project: 35181
Buggy source:
public void testSMGetHitAllDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 10; i++) {
      mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(oldFuture.getMissedKeyList().isEmpty());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(future.getMissedKeyList().isEmpty());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}

Fixed version (ground truth):
public void testSMGetHitAllDesc(){
  try {
    keyList=new ArrayList<String>();
    for (int i=0; i < 10; i++) {
      mc.delete(KEY + i).get();
      keyList.add(KEY + i);
    }
    for (int i=0; i < 10; i++) {
      mc.asyncBopInsert(KEY + i,i,"String_Node_Str".getBytes(),"String_Node_Str" + i,new CollectionAttributes()).get();
    }
  }
 catch (  Exception e) {
    fail(e.getMessage());
  }
  SMGetMode smgetMode=SMGetMode.UNIQUE;
  SMGetFuture<List<SMGetElement<Object>>> oldFuture=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,0,10);
  try {
    List<SMGetElement<Object>> map=oldFuture.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(oldFuture.getMissedKeyList().isEmpty());
  }
 catch (  Exception e) {
    oldFuture.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
  SMGetFuture<List<SMGetElement<Object>>> future=mc.asyncBopSortMergeGet(keyList,10,0,ElementFlagFilter.DO_NOT_FILTER,10,smgetMode);
  try {
    List<SMGetElement<Object>> map=future.get(1000L,TimeUnit.SECONDS);
    Assert.assertEquals(10,map.size());
    Assert.assertTrue(future.getMissedKeys().isEmpty());
  }
 catch (  Exception e) {
    future.cancel(true);
    e.printStackTrace();
    Assert.fail(e.getMessage());
  }
}
Program: 35182
Project: 35182
Buggy source:
@Override public CollectionFuture<Long> asyncBopDecr(String key,byte[] subkey,int by,long initial,byte[] eFlag){
  return this.getClient().asyncBopIncr(key,subkey,by,initial,eFlag);
}

Fixed version (ground truth):
@Override public CollectionFuture<Long> asyncBopDecr(String key,byte[] subkey,int by,long initial,byte[] eFlag){
  return this.getClient().asyncBopDecr(key,subkey,by,initial,eFlag);
}
Program: 35184
Project: 35184
Buggy source:
@Override public void decodeKeyHeader(String keyHeader){
  String[] splited=keyHeader.split("String_Node_Str");
  this.key=splited[1];
}

Fixed version (ground truth):
@Override public void decodeKeyHeader(String keyHeader){
  String[] splited=keyHeader.split("String_Node_Str");
  this.key=splited[1];
  if (splited.length == 5) {
    this.flag=Integer.valueOf(splited[3]);
  }
}
Program: 35185
Project: 35185
Buggy source:
public T call() throws Exception {
  return v;
}

Fixed version (ground truth):
public T call() throws Exception {
  return get(key,tc);
}
Program: 35186
Project: 35186
Buggy source:
public Element getElement(String key){
  return cache.get(key);
}

Fixed version (ground truth):
public Element getElement(String key){
  Element element=cache.get(key);
  if (logger.isDebugEnabled()) {
    if (null != element) {
      logger.debug("String_Node_Str",key);
    }
  }
  return element;
}
Program: 35187
Project: 35187
Buggy source:
@Override public void decodeKeyHeader(String keyHeader){
  String[] splited=keyHeader.split("String_Node_Str");
  this.key=splited[1];
}

Fixed version (ground truth):
@Override public void decodeKeyHeader(String keyHeader){
  String[] splited=keyHeader.split("String_Node_Str");
  this.key=splited[1];
  if (splited.length == 5) {
    this.flag=Integer.valueOf(splited[3]);
  }
}
Program: 35188
Project: 35188
Buggy source:
public void initialize(){
  String cmd=collectionGet.getCommand();
  String args=collectionGet.stringify();
  byte[] additionalArgs=collectionGet.getAddtionalArgs();
  ByteBuffer bb=ByteBuffer.allocate(KeyUtil.getKeyBytes(key).length + cmd.length() + args.length()+ (additionalArgs == null ? 0 : additionalArgs.length)+ 16);
  setArguments(bb,cmd,key,args);
  if (additionalArgs != null) {
    setArguments(bb,additionalArgs);
  }
  bb.flip();
  setBuffer(bb);
  if (getLogger().isDebugEnabled()) {
    getLogger().debug("String_Node_Str" + (new String(bb.array())).replace("String_Node_Str","String_Node_Str"));
  }
}

Fixed version (ground truth):
public void initialize(){
  String cmd=collectionGet.getCommand();
  String args=collectionGet.stringify();
  byte[] additionalArgs=collectionGet.getAddtionalArgs();
  ByteBuffer bb=ByteBuffer.allocate(KeyUtil.getKeyBytes(key).length + cmd.length() + args.length()+ (additionalArgs == null ? 0 : additionalArgs.length)+ 16);
  setArguments(bb,cmd,key,args);
  if (additionalArgs != null) {
    bb.put(additionalArgs);
    bb.put(CRLF);
  }
  bb.flip();
  setBuffer(bb);
  if (getLogger().isDebugEnabled()) {
    getLogger().debug("String_Node_Str" + (new String(bb.array())).replace("String_Node_Str","String_Node_Str"));
  }
}
Program: 35189
Project: 35189
Buggy source:
/** 
 * Returns the socket address of a given MemcachedNode.
 * @param node The node which we're interested in
 * @return String the socket address of that node.
 */
protected String getSocketAddressForNode(MemcachedNode node){
  String result=socketAddresses.get(node);
  if (result == null) {
    result=String.valueOf(node.getSocketAddress());
    if (result.startsWith("String_Node_Str")) {
      result=result.substring(1);
    }
    socketAddresses.put(node,result);
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Returns the socket address of a given MemcachedNode.
 * @param node The node which we're interested in
 * @return String the socket address of that node.
 */
protected String getSocketAddressForNode(MemcachedNode node){
  String result=socketAddresses.get(node);
  if (result == null) {
    result=String.valueOf(node.getSocketAddress());
    result=result.substring(result.indexOf('/') + 1);
    socketAddresses.put(node,result);
  }
  return result;
}
Program: 35191
Project: 35191
Buggy source:
private ArcusReplNodeAddress(String group,boolean master,String ip,int port){
  super(ip,port);
  this.group=group;
  this.master=master;
  this.ip=ip;
  this.port=port;
}

Fixed version (ground truth):
public ArcusReplNodeAddress(ArcusReplNodeAddress addr){
  this(addr.group,addr.master,addr.ip,addr.port);
}
Program: 35194
Project: 35194
Buggy source:
/** 
 * get value of element flag by hex.
 * @return element flag by hex (e.g. 0x01)
 */
public String getFlagByHex(){
  return BTreeUtil.toHex(eflag);
}

Fixed version (ground truth):
/** 
 * get value of element flag by hex.
 * @return element flag by hex (e.g. 0x01)
 */
public String getFlagByHex(){
  if (eflag == null) {
    return "String_Node_Str";
  }
  if (eflag.length == 0) {
    return "String_Node_Str";
  }
  return BTreeUtil.toHex(eflag);
}