nus-yam/ex-repair huggingface dataset:
Program: 78159
Project: 78159
Buggy source:
public void setLocked(Boolean locked){
  this.locked=locked;
}

Fixed version (ground truth):
public void setLocked(boolean locked){
  this.locked=locked;
}
Program: 78160
Project: 78160
Buggy source:
public void setPasswordAuthenticationAllowed(Boolean passwordAuthenticationAllowed){
  this.passwordAuthenticationAllowed=passwordAuthenticationAllowed;
}

Fixed version (ground truth):
public void setPasswordAuthenticationAllowed(boolean passwordAuthenticationAllowed){
  this.passwordAuthenticationAllowed=passwordAuthenticationAllowed;
}
Program: 78161
Project: 78161
Buggy source:
public void setLocked(Boolean locked){
  this.locked=locked;
}

Fixed version (ground truth):
public void setLocked(boolean locked){
  this.locked=locked;
}
Program: 78162
Project: 78162
Buggy source:
public User mapForCreate(UserCreateForm source){
  if (source.getNewAuthenticators() == null) {
    source.setNewAuthenticators(new ArrayList<>());
  }
  User destination=new User();
  if (destination.getAuthenticators() == null) {
    destination.setAuthenticators(new ArrayList<>());
  }
  destination.setUserHandle(Base64Utils.decodeFromUrlSafeString(source.getUserHandle()));
  destination.setFirstName(source.getFirstName());
  destination.setLastName(source.getLastName());
  destination.setEmailAddress(source.getEmailAddress());
  destination.setPassword(passwordEncoder.encode(source.getRawPassword()));
  List<AuthenticatorCreateForm> authenticatorCreateForms=source.getNewAuthenticators().stream().filter(authenticatorCreateForm -> !authenticatorCreateForm.getDelete()).collect(Collectors.toList());
  List<Authenticator> authenticators=new ArrayList<>();
  for (  AuthenticatorCreateForm authenticatorCreateForm : authenticatorCreateForms) {
    authenticators.add(authenticatorHelper.mapForUpdate(authenticatorCreateForm,null));
  }
  destination.setAuthenticators(authenticators);
  destination.setLocked(source.getLocked());
  destination.setPasswordAuthenticationAllowed(source.getPasswordAuthenticationAllowed());
  return destination;
}

Fixed version (ground truth):
public User mapForCreate(UserCreateForm source){
  if (source.getNewAuthenticators() == null) {
    source.setNewAuthenticators(new ArrayList<>());
  }
  User destination=new User();
  if (destination.getAuthenticators() == null) {
    destination.setAuthenticators(new ArrayList<>());
  }
  destination.setUserHandle(Base64Utils.decodeFromUrlSafeString(source.getUserHandle()));
  destination.setFirstName(source.getFirstName());
  destination.setLastName(source.getLastName());
  destination.setEmailAddress(source.getEmailAddress());
  destination.setPassword(passwordEncoder.encode(source.getRawPassword()));
  List<AuthenticatorCreateForm> authenticatorCreateForms=source.getNewAuthenticators().stream().filter(authenticatorCreateForm -> !authenticatorCreateForm.getDelete()).collect(Collectors.toList());
  List<Authenticator> authenticators=new ArrayList<>();
  for (  AuthenticatorCreateForm authenticatorCreateForm : authenticatorCreateForms) {
    authenticators.add(authenticatorHelper.mapForUpdate(authenticatorCreateForm,null));
  }
  destination.setAuthenticators(authenticators);
  destination.setLocked(source.isLocked());
  destination.setPasswordAuthenticationAllowed(source.isPasswordAuthenticationAllowed());
  return destination;
}
Program: 78163
Project: 78163
Buggy source:
@Override public void validate(Object target,Errors errors){
  UserCreateForm form=(UserCreateForm)target;
  int authenticatorCount=0;
  if (form.getNewAuthenticators() != null) {
    authenticatorCount+=form.getNewAuthenticators().stream().filter(item -> !item.getDelete()).count();
  }
  if ((form.getPasswordAuthenticationAllowed() == null || !form.getPasswordAuthenticationAllowed()) && authenticatorCount == 0) {
    errors.rejectValue("String_Node_Str","String_Node_Str","String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void validate(Object target,Errors errors){
  UserCreateForm form=(UserCreateForm)target;
  int authenticatorCount=0;
  if (form.getNewAuthenticators() != null) {
    authenticatorCount+=form.getNewAuthenticators().stream().filter(item -> !item.getDelete()).count();
  }
  if (!form.isPasswordAuthenticationAllowed() && authenticatorCount == 0) {
    errors.rejectValue("String_Node_Str","String_Node_Str","String_Node_Str");
  }
}
Program: 78164
Project: 78164
Buggy source:
@Override public void validate(Object target,Errors errors){
  UserUpdateForm form=(UserUpdateForm)target;
  int authenticatorCount=0;
  if (form.getNewAuthenticators() != null) {
    authenticatorCount+=form.getNewAuthenticators().stream().filter(item -> !item.getDelete()).count();
  }
  if (form.getAuthenticators() != null) {
    authenticatorCount+=form.getAuthenticators().stream().filter(item -> !item.getDelete()).count();
  }
  if ((form.getPasswordAuthenticationAllowed() == null || !form.getPasswordAuthenticationAllowed()) && authenticatorCount == 0) {
    errors.rejectValue("String_Node_Str","String_Node_Str","String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void validate(Object target,Errors errors){
  UserUpdateForm form=(UserUpdateForm)target;
  int authenticatorCount=0;
  if (form.getNewAuthenticators() != null) {
    authenticatorCount+=form.getNewAuthenticators().stream().filter(item -> !item.getDelete()).count();
  }
  if (form.getAuthenticators() != null) {
    authenticatorCount+=form.getAuthenticators().stream().filter(item -> !item.getDelete()).count();
  }
  if (!form.isPasswordAuthenticationAllowed() && authenticatorCount == 0) {
    errors.rejectValue("String_Node_Str","String_Node_Str","String_Node_Str");
  }
}
Program: 78165
Project: 78165
Buggy source:
@Test public void map_UserToUserCreateForm(){
  User original=new User();
  original.setFirstName("String_Node_Str");
  original.setLastName("String_Node_Str");
  original.setEmailAddress("String_Node_Str");
  original.setPassword("String_Node_Str");
  original.setLocked(true);
  original.setPasswordAuthenticationAllowed(true);
  UserUpdateForm result=new UserUpdateForm();
  userHelper.map(original,result);
  assertThat(result.getFirstName()).isEqualTo("String_Node_Str");
  assertThat(result.getLastName()).isEqualTo("String_Node_Str");
  assertThat(result.getEmailAddress()).isEqualTo("String_Node_Str");
  assertThat(result.getLocked()).isTrue();
  assertThat(result.getPasswordAuthenticationAllowed()).isTrue();
}

Fixed version (ground truth):
@Test public void map_UserToUserCreateForm(){
  User original=new User();
  original.setFirstName("String_Node_Str");
  original.setLastName("String_Node_Str");
  original.setEmailAddress("String_Node_Str");
  original.setPassword("String_Node_Str");
  original.setLocked(true);
  original.setPasswordAuthenticationAllowed(true);
  UserUpdateForm result=new UserUpdateForm();
  userHelper.map(original,result);
  assertThat(result.getFirstName()).isEqualTo("String_Node_Str");
  assertThat(result.getLastName()).isEqualTo("String_Node_Str");
  assertThat(result.getEmailAddress()).isEqualTo("String_Node_Str");
  assertThat(result.isLocked()).isTrue();
  assertThat(result.isPasswordAuthenticationAllowed()).isTrue();
}
Program: 78166
Project: 78166
Buggy source:
private byte[] getBytesFromECPublicKey(ECPublicKey ecPublicKey){
  ECPoint ecPoint=ecPublicKey.getW();
  byte type=0x04;
  byte[] x=ecPoint.getAffineX().toByteArray();
  byte[] y=ecPoint.getAffineY().toByteArray();
  return ByteBuffer.allocate(1 + 32 + 32).put(type).put(Arrays.copyOfRange(x,x.length - 32,x.length)).put(Arrays.copyOfRange(y,y.length - 32,y.length)).array();
}

Fixed version (ground truth):
private byte[] getBytesFromECPublicKey(ECPublicKey ecPublicKey){
  ECPoint ecPoint=ecPublicKey.getW();
  byte type=0x04;
  byte[] x=ecPoint.getAffineX().toByteArray();
  byte[] y=ecPoint.getAffineY().toByteArray();
  x=Arrays.copyOfRange(x,Math.max(0,x.length - 32),x.length);
  y=Arrays.copyOfRange(y,Math.max(0,y.length - 32),y.length);
  ByteBuffer byteBuffer=ByteBuffer.allocate(1 + 32 + 32);
  byteBuffer.put(type);
  byteBuffer.position(byteBuffer.position() + 32 - x.length);
  byteBuffer.put(x);
  byteBuffer.position(byteBuffer.position() + 32 - y.length);
  byteBuffer.put(y);
  return byteBuffer.array();
}
Program: 78167
Project: 78167
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  ButterKnife.bind(this);
  List<String> names=new ArrayList<>();
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  rvList.setErrorImage(R.drawable.ic_launcher_background);
  rvList.setLoadingImage(R.mipmap.cat);
  rvList.toggleLoading(true);
  new Handler().postDelayed(() -> {
    rvList.toggleError(true);
  }
,1000);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  ButterKnife.bind(this);
  List<String> names=new ArrayList<>();
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  rvList.setErrorImage(R.drawable.ic_launcher_background);
  rvList.setLoadingImage(R.mipmap.cat);
  rvList.toggleLoading(true);
  new Handler().postDelayed(() -> {
    rvList.toggleError(true);
  }
,10000);
}
Program: 78168
Project: 78168
Buggy source:
@Override public void setProgressBarColor(int color){
  pdLoad.setTint(color);
}

Fixed version (ground truth):
@Override public void setProgressBarColor(int color){
  pdLoad.setTint(getResources().getColorStateList(color));
}
Program: 78169
Project: 78169
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  ButterKnife.bind(this);
  List<String> names=new ArrayList<>();
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  rvList.setErrorImage(R.drawable.ic_launcher_background);
  rvList.setLoadingImage(R.mipmap.cat);
  rvList.toggleLoading(true);
  new Handler().postDelayed(() -> {
    rvList.toggleError(true);
  }
,7000);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  ButterKnife.bind(this);
  List<String> names=new ArrayList<>();
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  names.add("String_Node_Str");
  rvList.setErrorImage(R.drawable.ic_launcher_background);
  rvList.setLoadingImage(R.mipmap.cat);
  rvList.toggleLoading(true);
  new Handler().postDelayed(() -> {
    rvList.toggleError(true);
  }
,1000);
}
Program: 78172
Project: 78172
Buggy source:
public static synchronized void submit(InstanceTaskExecutor instanceTaskExecutor){
  if (instanceTaskExecutor == null) {
    logger.error("String_Node_Str");
    return;
  }
  InstanceTaskKeyDetail instanceTaskKeyDetail=instanceTaskExecutor.getInstanceTaskKeyDetail();
  InstanceTask instanceTask=instanceTaskExecutor.getInstanceTask();
  if (instanceTask == null) {
    logger.error("String_Node_Str" + instanceTaskKeyDetail);
    return;
  }
  Integer taskId=instanceTaskKeyDetail.getTaskId();
  TaskRunInfo taskRunInfo=taskRunInfoMap.get(taskId);
  if (taskRunInfo == null) {
    ThreadPoolExecutor threadPoolExecutor=ThreadPublicFactory.getThreadPoolExecutor(instanceTask.getQueueId());
    threadPoolExecutor.submit(instanceTaskExecutor);
    return;
  }
  if (taskRunInfo.getRunningSize() >= instanceTask.getMaxRunNum()) {
    taskRunInfo.getWaitingTaskQueue().put(instanceTaskExecutor);
  }
 else {
    ThreadPoolExecutor threadPoolExecutor=ThreadPublicFactory.getThreadPoolExecutor(instanceTask.getQueueId());
    threadPoolExecutor.submit(instanceTaskExecutor);
  }
}

Fixed version (ground truth):
public static synchronized void submit(InstanceTaskExecutor instanceTaskExecutor){
  if (addInstatnceTask(instanceTaskExecutor)) {
    return;
  }
  InstanceTask instanceTask=instanceTaskExecutor.getInstanceTask();
  ThreadPoolExecutor threadPoolExecutor=ThreadPublicFactory.getThreadPoolExecutor(instanceTask.getQueueId());
  threadPoolExecutor.submit(instanceTaskExecutor);
}
Program: 78173
Project: 78173
Buggy source:
public static synchronized void delInstatnceTask(Integer taskId,Date taskDate){
  TaskRunInfo taskRunInfo=taskRunInfoMap.get(taskId);
  if (taskRunInfo == null) {
    logger.error("String_Node_Str",taskId,DateUtils2.dateStr(taskDate));
    return;
  }
  if (taskRunInfo.removeRunning(taskDate)) {
    InstanceTaskExecutor instanceTaskExecutor=taskRunInfo.getWaitingTaskQueue().poll();
    if (instanceTaskExecutor != null) {
      InstanceTask instanceTask=instanceTaskExecutor.getInstanceTask();
      if (instanceTask != null) {
        ThreadPoolExecutor threadPoolExecutor=ThreadPublicFactory.getThreadPoolExecutor(instanceTask.getQueueId());
        threadPoolExecutor.submit(instanceTaskExecutor);
      }
 else {
        logger.error("String_Node_Str" + taskId);
      }
    }
  }
  if (taskRunInfo.isEmpty()) {
    taskRunInfoMap.remove(taskId);
  }
}

Fixed version (ground truth):
public static synchronized void delInstatnceTask(Integer taskId,Date taskDate){
  TaskRunInfo taskRunInfo=taskRunInfoMap.get(taskId);
  if (taskRunInfo == null) {
    logger.error("String_Node_Str",taskId,DateUtils2.dateStr(taskDate));
    return;
  }
  if (taskRunInfo.removeRunning(taskDate)) {
    InstanceTaskExecutor instanceTaskExecutor=taskRunInfo.getWaitingTaskQueue().poll();
    while (instanceTaskExecutor != null && instanceTaskExecutor.getInstanceTask() != null && (instanceTaskExecutor.getInstanceTask().getIsValid() == null || instanceTaskExecutor.getInstanceTask().getIsValid() == 0)) {
      instanceTaskExecutor=taskRunInfo.getWaitingTaskQueue().poll();
    }
    submit(instanceTaskExecutor);
  }
  if (taskRunInfo.isEmpty()) {
    taskRunInfoMap.remove(taskId);
  }
}
Program: 78178
Project: 78178
Buggy source:
@Override public void update(BigInteger difficulty,String data,long limit,String publicKey,long blockHeight,Miner.callbackMiner caller){
  if (this.limit != limit) {
    for (    Share s : sharePool) {
      if (s.getDuration() < this.limit) {
        System.out.println("String_Node_Str");
        parent.submit(s.getRawNonce(),s.getArgonHash() + "String_Node_Str",s.getDuration(),this.difficulty.longValue(),this.getType());
        if (s.getDuration() <= 240) {
          finds++;
          caller.onFind(s.getDuration() + "String_Node_Str");
          System.out.println("String_Node_Str");
        }
 else {
          shares++;
          System.out.println("String_Node_Str");
          caller.onShare(s.getDuration() + "String_Node_Str");
        }
        argos=0;
      }
    }
  }
  super.update(difficulty,data,limit,publicKey,blockHeight,caller);
  this.caller=caller;
}

Fixed version (ground truth):
@Override public void update(BigInteger difficulty,String data,long limit,String publicKey,long blockHeight,Miner.callbackMiner caller){
  if (this.limit != limit) {
    for (    Share s : sharePool) {
      if (s.getDuration() < this.limit) {
        System.out.println("String_Node_Str");
        parent.submit(s.getRawNonce(),s.getArgonHash() + "String_Node_Str",s.getDuration(),this.difficulty.longValue(),this.getType());
        if (s.getDuration() <= 240) {
          finds++;
          caller.onFind(s.getDuration() + "String_Node_Str");
          System.out.println("String_Node_Str");
        }
 else {
          shares++;
          System.out.println("String_Node_Str");
          caller.onShare(s.getDuration() + "String_Node_Str");
        }
      }
    }
  }
  if (this.blockHeight != blockHeight) {
    sharePool.clear();
    nonces.clear();
  }
  super.update(difficulty,data,limit,publicKey,blockHeight,caller);
  this.caller=caller;
}
Program: 78181
Project: 78181
Buggy source:
public void makeNotification(final String contentsmall){
  Handler h=new Handler(HomeView.this.getMainLooper());
  h.post(new Runnable(){
    @Override public void run(){
      NotificationCompat.Builder mBuilder=new NotificationCompat.Builder(HomeView.this,"String_Node_Str").setSmallIcon(R.drawable.aro).setContentTitle("String_Node_Str").setContentText(contentsmall).setColor(ContextCompat.getColor(HomeView.this,R.color.colorPrimary)).setDefaults(Notification.FLAG_ONGOING_EVENT).setColorized(true).setChannelId("String_Node_Str").setPriority(NotificationCompat.PRIORITY_DEFAULT);
      NotificationManager mNotificationManager=(NotificationManager)HomeView.this.getSystemService(Context.NOTIFICATION_SERVICE);
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        NotificationChannel channel=new NotificationChannel("String_Node_Str","String_Node_Str",NotificationManager.IMPORTANCE_DEFAULT);
        mNotificationManager.createNotificationChannel(channel);
      }
      mNotificationManager.notify(1047 + new Random().nextInt(1000),mBuilder.build());
      TextView t=findViewById(R.id.shares);
      String text=t.getText().toString();
      int parsed=0;
      try {
        parsed=Integer.parseInt(text);
      }
 catch (      Exception e) {
      }
      if (contentsmall.startsWith("String_Node_Str"))       t.setText((parsed + 1) + "String_Node_Str");
    }
  }
);
}

Fixed version (ground truth):
public void makeNotification(final String contentsmall){
  Handler h=new Handler(HomeView.this.getMainLooper());
  h.post(new Runnable(){
    @Override public void run(){
      NotificationCompat.Builder mBuilder=new NotificationCompat.Builder(HomeView.this,"String_Node_Str").setSmallIcon(R.drawable.aro).setContentTitle("String_Node_Str").setContentText(contentsmall).setColor(ContextCompat.getColor(HomeView.this,R.color.colorPrimary)).setColorized(true).setChannelId("String_Node_Str").setPriority(NotificationCompat.PRIORITY_DEFAULT);
      NotificationManager mNotificationManager=(NotificationManager)HomeView.this.getSystemService(Context.NOTIFICATION_SERVICE);
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        NotificationChannel channel=new NotificationChannel("String_Node_Str","String_Node_Str",NotificationManager.IMPORTANCE_DEFAULT);
        mNotificationManager.createNotificationChannel(channel);
      }
      mNotificationManager.notify(1047 + new Random().nextInt(1000),mBuilder.build());
      TextView t=findViewById(R.id.shares);
      String text=t.getText().toString();
      int parsed=0;
      try {
        parsed=Integer.parseInt(text);
      }
 catch (      Exception e) {
      }
      if (contentsmall.startsWith("String_Node_Str"))       t.setText((parsed + 1) + "String_Node_Str");
    }
  }
);
}
Program: 78187
Project: 78187
Buggy source:
@Override public void onClick(View view){
  EditText address=findViewById(R.id.address_text);
  EditText publickey=findViewById(R.id.public_text);
  EditText privatekey=findViewById(R.id.private_text);
  saveString("String_Node_Str",address.getText().toString());
  saveString("String_Node_Str",publickey.getText().toString());
  saveString("String_Node_Str",privatekey.getText().toString());
  Intent i=new Intent(IntroViewActivity.this,MainActivity.class);
  i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  startActivity(i);
}

Fixed version (ground truth):
@Override public void onClick(View view){
  EditText address=findViewById(R.id.address_text);
  EditText publickey=findViewById(R.id.public_text);
  EditText privatekey=findViewById(R.id.private_text);
  if (address.getText().toString().isEmpty() || publickey.getText().toString().isEmpty()) {
    Snackbar mySnackbar=Snackbar.make(findViewById(R.id.introtop),"String_Node_Str",Snackbar.LENGTH_SHORT);
    mySnackbar.show();
    return;
  }
  saveString("String_Node_Str",address.getText().toString());
  saveString("String_Node_Str",publickey.getText().toString());
  saveString("String_Node_Str",privatekey.getText().toString());
  Intent i=new Intent(IntroViewActivity.this,MainActivity.class);
  i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  startActivity(i);
}
Program: 78188
Project: 78188
Buggy source:
@Override public boolean onTouchEvent(MotionEvent event){
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
    glSurfaceView.queueEvent(new Runnable(){
      @Override public void run(){
      }
    }
);
  break;
case MotionEvent.ACTION_UP:
glSurfaceView.queueEvent(new Runnable(){
  @Override public void run(){
  }
}
);
break;
default :
break;
}
return super.onTouchEvent(event);
}

Fixed version (ground truth):
@Override public boolean onTouchEvent(final MotionEvent event){
  glSurfaceView.queueEvent(new Runnable(){
    @Override public void run(){
      panoRenderer.handleMotionEvent(event,getWindowManager().getDefaultDisplay().getHeight());
    }
  }
);
  glSurfaceView.requestRender();
  return true;
}
Program: 78189
Project: 78189
Buggy source:
@Override public void run(){
}

Fixed version (ground truth):
@Override public void run(){
  panoRenderer.handleMotionEvent(event,getWindowManager().getDefaultDisplay().getHeight());
}
Program: 78190
Project: 78190
Buggy source:
/** 
 * 不断清屏，提高效率
 * @param gl
 */
@Override public void onDrawFrame(GL10 gl){
  glClearColor(0f,0f,0f,1f);
  Matrix.setLookAtM(mCameraMatrix,0,mAngleX,mAngleY,mAngleZ,0,0,0,0,1,0);
  Matrix.multiplyMM(mMVPMatrix,0,mProjectionMatrix,0,mCameraMatrix,0);
  GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  GLES20.glUseProgram(mProgramId);
  GLES20.glEnableVertexAttribArray(mPositionHandle);
  GLES20.glVertexAttribPointer(mPositionHandle,3,GLES20.GL_FLOAT,false,12,verticalsBuffer);
  GLES20.glEnableVertexAttribArray(mTexCoordHandle);
  GLES20.glVertexAttribPointer(mTexCoordHandle,2,GLES20.GL_FLOAT,false,0,mUvTexVertexBuffer);
  GLES20.glUniformMatrix4fv(mMatrixHandle,1,false,mMVPMatrix,0);
  GLES20.glUniform1i(mTexSamplerHandle,0);
  GLES20.glDrawArrays(GLES20.GL_TRIANGLES,0,(180 / CAP) * (360 / CAP) * 6);
  GLES20.glDisableVertexAttribArray(mPositionHandle);
}

Fixed version (ground truth):
/** 
 * 不断清屏，提高效率
 * @param gl
 */
@Override public void onDrawFrame(GL10 gl){
  Matrix.setLookAtM(mCameraMatrix,0,mAngleX,mAngleY,mAngleZ,0,0,0,0,1,0);
  Matrix.multiplyMM(mMVPMatrix,0,mProjectionMatrix,0,mCameraMatrix,0);
  GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  GLES20.glUseProgram(mProgramId);
  GLES20.glEnableVertexAttribArray(mPositionHandle);
  GLES20.glVertexAttribPointer(mPositionHandle,3,GLES20.GL_FLOAT,false,12,verticalsBuffer);
  GLES20.glEnableVertexAttribArray(mTexCoordHandle);
  GLES20.glVertexAttribPointer(mTexCoordHandle,2,GLES20.GL_FLOAT,false,0,mUvTexVertexBuffer);
  GLES20.glUniformMatrix4fv(mMatrixHandle,1,false,mMVPMatrix,0);
  GLES20.glUniform1i(mTexSamplerHandle,0);
  GLES20.glDrawArrays(GLES20.GL_TRIANGLES,0,(180 / CAP) * (360 / CAP) * 6);
  GLES20.glDisableVertexAttribArray(mPositionHandle);
}
Program: 78193
Project: 78193
Buggy source:
/** 
 * 不断清屏，提高效率
 * @param gl
 */
@Override public void onDrawFrame(GL10 gl){
  glClearColor(0f,0f,0f,1f);
  Log.d(TAG,"String_Node_Str" + "String_Node_Str" + mAngleX + "String_Node_Str"+ mAngleY+ "String_Node_Str"+ mAngleZ);
  programDataInit();
  Matrix.frustumM(mProjectionMatrix,0,-1,1,-ratio,ratio,0.78f,7);
  Matrix.setLookAtM(mCameraMatrix,0,mAngleX,mAngleY,mAngleZ,0,0,0,0,1,0);
  Matrix.multiplyMM(mMVPMatrix,0,mProjectionMatrix,0,mCameraMatrix,0);
  GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  GLES20.glUseProgram(mProgramId);
  GLES20.glEnableVertexAttribArray(mPositionHandle);
  GLES20.glVertexAttribPointer(mPositionHandle,3,GLES20.GL_FLOAT,false,12,verticalsBuffer);
  GLES20.glEnableVertexAttribArray(mTexCoordHandle);
  GLES20.glVertexAttribPointer(mTexCoordHandle,2,GLES20.GL_FLOAT,false,0,mUvTexVertexBuffer);
  GLES20.glUniformMatrix4fv(mMatrixHandle,1,false,mMVPMatrix,0);
  GLES20.glUniform1i(mTexSamplerHandle,0);
  GLES20.glDrawArrays(GLES20.GL_TRIANGLES,0,(180 / CAP) * (360 / CAP) * 6);
  GLES20.glDisableVertexAttribArray(mPositionHandle);
}

Fixed version (ground truth):
/** 
 * 不断清屏，提高效率
 * @param gl
 */
@Override public void onDrawFrame(GL10 gl){
  glClearColor(0f,0f,0f,1f);
  Log.d(TAG,"String_Node_Str" + "String_Node_Str" + mAngleX + "String_Node_Str"+ mAngleY+ "String_Node_Str"+ mAngleZ+ "String_Node_Str"+ sphereRadius+ "String_Node_Str"+ ratio);
  if (sphereRadius >= MAX_SCALE_VALUE) {
    sphereRadius=MAX_SCALE_VALUE;
  }
 else   if (sphereRadius <= MIN_SCALE_VALUE) {
    sphereRadius=MIN_SCALE_VALUE;
  }
  programDataInit();
  Matrix.frustumM(mProjectionMatrix,0,-1,1,-ratio,ratio,0.78f,7);
  Matrix.setLookAtM(mCameraMatrix,0,mAngleX,mAngleY,mAngleZ,0,0,0,0,1,0);
  Matrix.multiplyMM(mMVPMatrix,0,mProjectionMatrix,0,mCameraMatrix,0);
  GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  GLES20.glUseProgram(mProgramId);
  GLES20.glEnableVertexAttribArray(mPositionHandle);
  GLES20.glVertexAttribPointer(mPositionHandle,3,GLES20.GL_FLOAT,false,12,verticalsBuffer);
  GLES20.glEnableVertexAttribArray(mTexCoordHandle);
  GLES20.glVertexAttribPointer(mTexCoordHandle,2,GLES20.GL_FLOAT,false,0,mUvTexVertexBuffer);
  GLES20.glUniformMatrix4fv(mMatrixHandle,1,false,mMVPMatrix,0);
  GLES20.glUniform1i(mTexSamplerHandle,0);
  GLES20.glDrawArrays(GLES20.GL_TRIANGLES,0,(180 / CAP) * (360 / CAP) * 6);
  GLES20.glDisableVertexAttribArray(mPositionHandle);
}
Program: 78196
Project: 78196
Buggy source:
@Override public boolean onTouchEvent(final MotionEvent event){
  glSurfaceView.queueEvent(new Runnable(){
    @Override public void run(){
      panoRenderer.handleMotionEvent(event,getWindowManager().getDefaultDisplay().getHeight());
      panoRenderer.handleTouchEvent(event);
    }
  }
);
  if (LoggerConfig.ON) {
    Log.d(TAG,"String_Node_Str" + "String_Node_Str" + getWindowManager().getDefaultDisplay().getHeight() + '\t'+ "String_Node_Str"+ getWindowManager().getDefaultDisplay().getWidth());
  }
  glSurfaceView.requestRender();
  return true;
}

Fixed version (ground truth):
@Override public boolean onTouchEvent(final MotionEvent event){
  glSurfaceView.queueEvent(new Runnable(){
    @Override public void run(){
      panoRenderer.handleMotionEvent(event,getWindowManager().getDefaultDisplay().getHeight());
    }
  }
);
  if (LoggerConfig.ON) {
    Log.d(TAG,"String_Node_Str" + "String_Node_Str" + getWindowManager().getDefaultDisplay().getHeight() + '\t'+ "String_Node_Str"+ getWindowManager().getDefaultDisplay().getWidth());
  }
  glSurfaceView.requestRender();
  return true;
}
Program: 78197
Project: 78197
Buggy source:
@Override public void run(){
  panoRenderer.handleMotionEvent(event,getWindowManager().getDefaultDisplay().getHeight());
  panoRenderer.handleTouchEvent(event);
}

Fixed version (ground truth):
@Override public void run(){
  panoRenderer.handleMotionEvent(event,getWindowManager().getDefaultDisplay().getHeight());
}
Program: 78198
Project: 78198
Buggy source:
/** 
 * 不断清屏，提高效率
 * @param gl
 */
@Override public void onDrawFrame(GL10 gl){
  glClearColor(0f,0f,0f,1f);
  programDataInit();
  Matrix.setIdentityM(mCameraMatrix,0);
  Matrix.rotateM(mCameraMatrix,0,mDeltaY,1.0f,0.0f,0.0f);
  Matrix.rotateM(mCameraMatrix,0,mDeltaX,0.0f,1.0f,0.0f);
  Matrix.frustumM(mProjectionMatrix,0,-1,1,-ratio,ratio,0.78f,7);
  Matrix.setLookAtM(mCameraMatrix,0,mAngleX,mAngleY,mAngleZ,0,0,0,0,1,0);
  Matrix.multiplyMM(mMVPMatrix,0,mProjectionMatrix,0,mCameraMatrix,0);
  GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  GLES20.glUseProgram(mProgramId);
  GLES20.glEnableVertexAttribArray(mPositionHandle);
  GLES20.glVertexAttribPointer(mPositionHandle,3,GLES20.GL_FLOAT,false,12,verticalsBuffer);
  GLES20.glEnableVertexAttribArray(mTexCoordHandle);
  GLES20.glVertexAttribPointer(mTexCoordHandle,2,GLES20.GL_FLOAT,false,0,mUvTexVertexBuffer);
  GLES20.glUniformMatrix4fv(mMatrixHandle,1,false,mMVPMatrix,0);
  GLES20.glUniform1i(mTexSamplerHandle,0);
  GLES20.glDrawArrays(GLES20.GL_TRIANGLES,0,(180 / CAP) * (360 / CAP) * 6);
  GLES20.glDisableVertexAttribArray(mPositionHandle);
}

Fixed version (ground truth):
/** 
 * 不断清屏，提高效率
 * @param gl
 */
@Override public void onDrawFrame(GL10 gl){
  glClearColor(0f,0f,0f,1f);
  Log.d(TAG,"String_Node_Str" + "String_Node_Str" + mAngleX + "String_Node_Str"+ mAngleY+ "String_Node_Str"+ mAngleZ);
  programDataInit();
  Matrix.frustumM(mProjectionMatrix,0,-1,1,-ratio,ratio,0.78f,7);
  Matrix.setLookAtM(mCameraMatrix,0,mAngleX,mAngleY,mAngleZ,0,0,0,0,1,0);
  Matrix.multiplyMM(mMVPMatrix,0,mProjectionMatrix,0,mCameraMatrix,0);
  GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
  GLES20.glUseProgram(mProgramId);
  GLES20.glEnableVertexAttribArray(mPositionHandle);
  GLES20.glVertexAttribPointer(mPositionHandle,3,GLES20.GL_FLOAT,false,12,verticalsBuffer);
  GLES20.glEnableVertexAttribArray(mTexCoordHandle);
  GLES20.glVertexAttribPointer(mTexCoordHandle,2,GLES20.GL_FLOAT,false,0,mUvTexVertexBuffer);
  GLES20.glUniformMatrix4fv(mMatrixHandle,1,false,mMVPMatrix,0);
  GLES20.glUniform1i(mTexSamplerHandle,0);
  GLES20.glDrawArrays(GLES20.GL_TRIANGLES,0,(180 / CAP) * (360 / CAP) * 6);
  GLES20.glDisableVertexAttribArray(mPositionHandle);
}
Program: 78199
Project: 78199
Buggy source:
/** 
 * 计算两个指尖的距离 用于后续缩放比的计算
 * @param event
 * @return
 */
private float distance(MotionEvent event){
  float x=0f;
  float y=0f;
  try {
    x=event.getX(0) - event.getX(1);
    y=event.getY(0) - event.getY(1);
    if (LoggerConfig.ON) {
      Log.d(TAG,"String_Node_Str" + (float)Math.sqrt(x * x + y * y));
    }
  }
 catch (  IllegalArgumentException e) {
    e.printStackTrace();
  }
 finally {
    return (float)Math.sqrt(x * x + y * y);
  }
}

Fixed version (ground truth):
/** 
 * 计算两个指尖的距离 用于后续缩放比的计算
 * @param event
 * @return
 */
private float distance(MotionEvent event){
  float x=0f;
  float y=0f;
  try {
    x=event.getX(0) - event.getX(1);
    y=event.getY(0) - event.getY(1);
  }
 catch (  IllegalArgumentException e) {
    e.printStackTrace();
  }
 finally {
    if (LoggerConfig.ON) {
      Log.d(TAG,"String_Node_Str" + (float)Math.sqrt(x * x + y * y));
    }
    return (float)Math.sqrt(x * x + y * y);
  }
}
Program: 78201
Project: 78201
Buggy source:
public ArrayList<MailVO> getMail(Integer sIndex){
  ArrayList<MailVO> msgList=new ArrayList<MailVO>();
  try {
    for (int i=sIndex; i < msgs.length; i++) {
      MailVO mailInfo=new MailVO();
      dumpPart(msgs[i],mailInfo);
      msgList.add(mailInfo);
      if (msgList.size() == 10)       break;
    }
  }
 catch (  Exception e) {
  }
  return msgList;
}

Fixed version (ground truth):
public ArrayList<MailVO> getMail(Integer sIndex){
  ArrayList<MailVO> msgList=new ArrayList<MailVO>();
  try {
    for (int i=sIndex; i < msgs.length; i++) {
      MailVO mailInfo=new MailVO();
      dumpPart(msgs[i],mailInfo);
      msgList.add(mailInfo);
      if (msgList.size() == 100)       break;
    }
  }
 catch (  Exception e) {
  }
  return msgList;
}
Program: 78202
Project: 78202
Buggy source:
public void run(){
  Imap mail=new Imap();
  List<?> list=mailSvc.selectMailInfoList(userno);
  try {
    for (int i=0; i < list.size(); i++) {
      MailInfoVO mivo=(MailInfoVO)list.get(i);
      String lastdate=mailSvc.selectLastMail(mivo.getEmino());
      mail.connect(mivo.getEmiimap(),mivo.getEmiuser(),mivo.getEmipw());
      Integer total=mail.patchMessage(lastdate);
      int cnt=0;
      while (cnt < total) {
        ArrayList<MailVO> msgList=mail.getMail(cnt);
        mailSvc.insertMails(msgList,userno,mivo.getEmino());
        cnt+=msgList.size();
        break;
      }
      mail.disconnect();
    }
  }
 catch (  Exception e) {
  }
  session.removeAttribute("String_Node_Str");
}

Fixed version (ground truth):
public void run(){
  Imap mail=new Imap();
  List<?> list=mailSvc.selectMailInfoList(userno);
  try {
    for (int i=0; i < list.size(); i++) {
      MailInfoVO mivo=(MailInfoVO)list.get(i);
      String lastdate=mailSvc.selectLastMail(mivo.getEmino());
      mail.connect(mivo.getEmiimap(),mivo.getEmiuser(),mivo.getEmipw());
      Integer total=mail.patchMessage(lastdate);
      int cnt=0;
      while (cnt < total) {
        ArrayList<MailVO> msgList=mail.getMail(cnt);
        mailSvc.insertMails(msgList,userno,mivo.getEmino());
        cnt+=msgList.size();
      }
      mail.disconnect();
    }
  }
 catch (  Exception e) {
  }
  session.removeAttribute("String_Node_Str");
}
Program: 78203
Project: 78203
Buggy source:
@Override public void run(){
  while (true) {
    try {
      activeClientList=new ArrayList();
      for (      DConcurrentClient client : clientList) {
        if (checkService(client.hostAndPort)) {
          activeClientList.add(client);
        }
      }
      if (activeClientList.size() < clientList.size() / (double)2) {
        activeClientList=new ArrayList();
        System.out.println("String_Node_Str");
      }
      Thread.sleep(10000);
    }
 catch (    Exception ignore) {
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  List<DConcurrentClient> tmpClients;
  while (true) {
    try {
      tmpClients=new ArrayList();
      for (      DConcurrentClient client : clientList) {
        if (checkService(client.hostAndPort)) {
          tmpClients.add(client);
        }
      }
      if (tmpClients.size() <= clientList.size() / (double)2) {
        activeClientList=new ArrayList();
        System.out.println("String_Node_Str");
      }
 else {
        activeClientList=tmpClients;
      }
      Thread.sleep(10000);
    }
 catch (    Exception ignore) {
    }
  }
}
Program: 78205
Project: 78205
Buggy source:
@Override public void process(EndpointNode endpointNode,List<AnnotationAttachmentNode> annotations){
  DockerDataHolder.getInstance().setCanProcess(true);
  String endpointType=endpointNode.getEndPointType().getTypeName().getValue();
  if (isBlank(endpointType) || !endpointType.endsWith(LISTENER)) {
    dlog.logDiagnostic(Diagnostic.Kind.ERROR,endpointNode.getPosition(),"String_Node_Str" + "String_Node_Str");
    return;
  }
  try {
    for (    AnnotationAttachmentNode attachmentNode : annotations) {
      DockerAnnotation dockerAnnotation=DockerAnnotation.valueOf(attachmentNode.getAnnotationName().getValue());
switch (dockerAnnotation) {
case Config:
        DockerDataHolder.getInstance().setDockerModel(dockerAnnotationProcessor.processConfigAnnotation(attachmentNode));
      break;
case CopyFiles:
    DockerDataHolder.getInstance().addExternalFile(dockerAnnotationProcessor.processCopyFileAnnotation(attachmentNode));
  break;
case Expose:
List<BLangRecordLiteral.BLangRecordKeyValue> config=((BLangRecordLiteral)endpointNode.getConfigurationExpression()).getKeyValuePairs();
DockerDataHolder.getInstance().addPort(extractPort(config));
break;
default :
break;
}
}
}
 catch (DockerPluginException e) {
dlog.logDiagnostic(Diagnostic.Kind.ERROR,endpointNode.getPosition(),e.getMessage());
}
}

Fixed version (ground truth):
@Override public void process(EndpointNode endpointNode,List<AnnotationAttachmentNode> annotations){
  DockerDataHolder dataHolder=DockerContext.getInstance().getDataHolder();
  dataHolder.setCanProcess(true);
  String endpointType=endpointNode.getEndPointType().getTypeName().getValue();
  if (isBlank(endpointType) || !endpointType.endsWith(LISTENER)) {
    dlog.logDiagnostic(Diagnostic.Kind.ERROR,endpointNode.getPosition(),"String_Node_Str" + "String_Node_Str");
    return;
  }
  try {
    for (    AnnotationAttachmentNode attachmentNode : annotations) {
      DockerAnnotation dockerAnnotation=DockerAnnotation.valueOf(attachmentNode.getAnnotationName().getValue());
switch (dockerAnnotation) {
case Config:
        dataHolder.setDockerModel(dockerAnnotationProcessor.processConfigAnnotation(attachmentNode));
      break;
case CopyFiles:
    dataHolder.addExternalFile(dockerAnnotationProcessor.processCopyFileAnnotation(attachmentNode));
  break;
case Expose:
List<BLangRecordLiteral.BLangRecordKeyValue> config=((BLangRecordLiteral)endpointNode.getConfigurationExpression()).getKeyValuePairs();
dataHolder.addPort(extractPort(config));
break;
default :
break;
}
}
}
 catch (DockerPluginException e) {
dlog.logDiagnostic(Diagnostic.Kind.ERROR,endpointNode.getPosition(),e.getMessage());
}
}
Program: 78206
Project: 78206
Buggy source:
@Override public void codeGenerated(Path binaryPath){
  if (DockerDataHolder.getInstance().isCanProcess()) {
    String filePath=binaryPath.toAbsolutePath().toString();
    String userDir=new File(filePath).getParentFile().getAbsolutePath();
    DockerAnnotationProcessor dockerAnnotationProcessor=new DockerAnnotationProcessor();
    String targetPath=userDir + File.separator + ARTIFACT_DIRECTORY+ File.separator;
    if (userDir.endsWith("String_Node_Str")) {
      targetPath=userDir + File.separator + extractBalxName(filePath);
    }
    try {
      DockerGenUtils.deleteDirectory(targetPath);
      dockerAnnotationProcessor.processDockerModel(DockerDataHolder.getInstance(),filePath,targetPath);
    }
 catch (    DockerPluginException e) {
      printError(e.getMessage());
      dlog.logDiagnostic(Diagnostic.Kind.ERROR,null,e.getMessage());
      try {
        DockerGenUtils.deleteDirectory(targetPath);
      }
 catch (      DockerPluginException ignored) {
      }
    }
  }
}

Fixed version (ground truth):
@Override public void codeGenerated(PackageID packageID,Path binaryPath){
  DockerContext.getInstance().setCurrentPackage(packageID.toString());
  if (DockerContext.getInstance().getDataHolder().isCanProcess()) {
    String filePath=binaryPath.toAbsolutePath().toString();
    String userDir=new File(filePath).getParentFile().getAbsolutePath();
    DockerAnnotationProcessor dockerAnnotationProcessor=new DockerAnnotationProcessor();
    String targetPath=userDir + File.separator + ARTIFACT_DIRECTORY+ File.separator;
    if (userDir.endsWith("String_Node_Str")) {
      targetPath=userDir + File.separator + extractBalxName(filePath);
    }
    try {
      DockerGenUtils.deleteDirectory(targetPath);
      dockerAnnotationProcessor.processDockerModel(DockerContext.getInstance().getDataHolder(),filePath,targetPath);
    }
 catch (    DockerPluginException e) {
      printError(e.getMessage());
      dlog.logDiagnostic(Diagnostic.Kind.ERROR,null,e.getMessage());
      try {
        DockerGenUtils.deleteDirectory(targetPath);
      }
 catch (      DockerPluginException ignored) {
      }
    }
  }
}
Program: 78207
Project: 78207
Buggy source:
private DockerDataHolder(){
  dockerModel=new DockerModel();
  ports=new HashSet<>();
  files=new HashSet<>();
}

Fixed version (ground truth):
public DockerDataHolder(){
  dockerModel=new DockerModel();
  ports=new HashSet<>();
  files=new HashSet<>();
}
Program: 78208
Project: 78208
Buggy source:
public DockerArtifactHandler(DockerModel dockerModel){
  this.dockerModel=dockerModel;
  if (dockerModel.getDockerCertPath() == null) {
    System.setProperty("String_Node_Str",dockerModel.getDockerCertPath());
  }
}

Fixed version (ground truth):
public DockerArtifactHandler(DockerModel dockerModel){
  this.dockerModel=dockerModel;
  if (dockerModel.getDockerCertPath() != null) {
    System.setProperty("String_Node_Str",dockerModel.getDockerCertPath());
  }
}
Program: 78209
Project: 78209
Buggy source:
private void registerSaveConfigHook(JSONObject config){
  Runtime.getRuntime().addShutdownHook(new Thread(() -> {
    ofNullable(config).orElse(new JSONObject()).put("String_Node_Str",userList);
    String configJsonString=toJSONString(config,WriteMapNullValue,PrettyFormat);
    try {
      FileUtils.writeStringToFile(new File(getConfigFilePath()),configJsonString,UTF_8);
      logger.info("String_Node_Str");
    }
 catch (    IOException e) {
      logger.info("String_Node_Str");
    }
  }
));
}

Fixed version (ground truth):
private void registerSaveConfigHook(JSONObject config){
  Runtime.getRuntime().addShutdownHook(new Thread(() -> {
    JSONObject configToSave=ofNullable(config).orElse(new JSONObject());
    configToSave.put("String_Node_Str",userList);
    String configJsonString=toJSONString(configToSave,WriteMapNullValue,PrettyFormat);
    try {
      FileUtils.writeStringToFile(new File(getConfigFilePath()),configJsonString,UTF_8);
      logger.info("String_Node_Str");
    }
 catch (    IOException e) {
      logger.info("String_Node_Str");
    }
  }
));
}
Program: 78210
Project: 78210
Buggy source:
private void supplementUser(int n){
  List<HttpHost> proxyListForRegister=getXunFreeProxy();
  while (userList.size() < n) {
    if (proxyListForRegister.isEmpty()) {
      logger.info("String_Node_Str");
      proxyListForRegister=getXunFreeProxy();
      if (proxyListForRegister.isEmpty()) {
        throw new RegisterException("String_Node_Str");
      }
    }
    try {
      HttpHost proxy=getXunFreeProxy().remove(0);
      logger.info("String_Node_Str",proxy.getAddress(),proxy.getPort());
      User user=register();
      userList.add(user);
      logger.info("String_Node_Str",user.getName());
    }
 catch (    RegisterException e) {
      logger.info("String_Node_Str",e.getMessage());
    }
  }
}

Fixed version (ground truth):
private void supplementUser(int n){
  List<HttpHost> proxyListForRegister=emptyList();
  while (userList.size() < n) {
    if (proxyListForRegister.isEmpty()) {
      logger.info("String_Node_Str");
      proxyListForRegister=getXunFreeProxy();
      if (proxyListForRegister.isEmpty()) {
        throw new RegisterException("String_Node_Str");
      }
    }
    HttpHost proxy=getXunFreeProxy().remove(0);
    logger.info("String_Node_Str",proxy.getHostName(),proxy.getPort());
    try {
      User user=register(proxy);
      userList.add(user);
      logger.info("String_Node_Str",user.getName());
    }
 catch (    RegisterException e) {
      logger.info("String_Node_Str",e.getMessage());
    }
  }
}
Program: 78211
Project: 78211
Buggy source:
public static List<HttpHost> getXunFreeProxy(){
  JSONObject json=getJson("String_Node_Str","String_Node_Str");
  if (json.getIntValue("String_Node_Str") != 0) {
    logger.error("String_Node_Str",json.toString());
    return emptyList();
  }
  return json.getJSONObject("String_Node_Str").getJSONArray("String_Node_Str").stream().map(x -> {
    JSONObject y=(JSONObject)x;
    return new HttpHost(y.getString("String_Node_Str"),y.getIntValue("String_Node_Str"));
  }
).collect(toList());
}

Fixed version (ground truth):
public static List<HttpHost> getXunFreeProxy(){
  JSONObject json=getJson("String_Node_Str","String_Node_Str");
  if (json.getIntValue("String_Node_Str") != 0) {
    logger.error("String_Node_Str",json.toString());
    return emptyList();
  }
  List<HttpHost> proxyList=json.getJSONObject("String_Node_Str").getJSONArray("String_Node_Str").stream().map(x -> {
    JSONObject y=(JSONObject)x;
    return new HttpHost(y.getString("String_Node_Str"),y.getIntValue("String_Node_Str"));
  }
).collect(toList());
  return check(proxyList);
}
Program: 78212
Project: 78212
Buggy source:
public static byte[] getBytes(String method,String url,HttpHost proxy,List<NameValuePair> paramsList){
  for (int i=1; i <= MAX_RETRY; i++) {
    Request request=null;
    if ("String_Node_Str".equalsIgnoreCase(method)) {
      if (paramsList != null && !paramsList.isEmpty()) {
        url=url + "String_Node_Str" + paramsList.stream().map(x -> x.getName() + "String_Node_Str" + x.getValue()).collect(Collectors.joining("String_Node_Str"));
      }
      request=Request.Get(url);
    }
 else     if ("String_Node_Str".equalsIgnoreCase(method)) {
      request=Request.Post(url);
      if (paramsList != null && !paramsList.isEmpty()) {
        request.bodyForm(paramsList);
      }
    }
 else {
      throw new IllegalArgumentException(method);
    }
    if (proxy != null) {
      request.viaProxy(proxy);
    }
    request.addHeader("String_Node_Str","String_Node_Str");
    request.addHeader("String_Node_Str",joinCookie());
    try {
      HttpResponse httpResponse=request.execute().returnResponse();
      int statusCode=httpResponse.getStatusLine().getStatusCode();
      if (statusCode != HttpStatus.SC_OK) {
        logger.info("String_Node_Str",url,statusCode,i);
        continue;
      }
      Arrays.stream(httpResponse.getHeaders("String_Node_Str")).forEach(header -> {
        String[] kv=header.getValue().split("String_Node_Str")[0].split("String_Node_Str");
        cookieMap.put(kv[0],kv[1]);
      }
);
      return IOUtils.toByteArray(httpResponse.getEntity().getContent());
    }
 catch (    IOException e) {
      logger.info("String_Node_Str",url,i);
    }
  }
  return null;
}

Fixed version (ground truth):
public static byte[] getBytes(String method,String url,HttpHost proxy,List<NameValuePair> paramsList){
  return getBytes(method,url,proxy,paramsList,MAX_RETRY);
}
Program: 78213
Project: 78213
Buggy source:
@RequestMapping(value={"String_Node_Str","String_Node_Str"},method=RequestMethod.POST,produces={"String_Node_Str"}) @ResponseBody public LoginResult<LoginInfo> login(@RequestBody(required=false) User user,@PathVariable(value="String_Node_Str",required=false) String tokenString){
  LoginResult<LoginInfo> lr;
  if (tokenString != null) {
    Token token=new Token(tokenString);
    try {
      User u=loginService.checkToken(token);
      u.setUserId(-1);
      u.setPassWd(null);
      lr=new LoginResult<>(true,new LoginInfo(u,token));
    }
 catch (    Exception e) {
      lr=new LoginResult<>(false,"String_Node_Str");
    }
  }
 else {
    try {
      System.out.print("String_Node_Str");
      if (user == null)       return new LoginResult<>(false,"String_Node_Str");
      System.out.print("String_Node_Str");
      User u=loginService.checkLogin(user);
      System.out.print("String_Node_Str");
      System.out.print(u);
      if (u == null)       return new LoginResult<>(false,"String_Node_Str");
      int userId=u.getUserId();
      Token t=new Token(jwtUtil.createToken(user));
      u.setUserId(-1);
      u.setPassWd(null);
      lr=new LoginResult<>(true,new LoginInfo(u,t));
    }
 catch (    Exception e) {
      lr=new LoginResult<>(false,"String_Node_Str");
    }
  }
  return lr;
}

Fixed version (ground truth):
@RequestMapping(value={"String_Node_Str","String_Node_Str"},method=RequestMethod.POST,produces={"String_Node_Str"}) @ResponseBody public LoginResult<LoginInfo> login(@RequestBody(required=false) User user,@PathVariable(value="String_Node_Str",required=false) String tokenString){
  LoginResult<LoginInfo> lr;
  if (tokenString != null) {
    Token token=new Token(tokenString);
    try {
      User u=loginService.checkToken(token);
      u.setUserId(-1);
      u.setPassWd(null);
      lr=new LoginResult<>(true,new LoginInfo(u,token));
    }
 catch (    Exception e) {
      lr=new LoginResult<>(false,"String_Node_Str");
    }
  }
 else {
    try {
      if (user == null)       return new LoginResult<>(false,"String_Node_Str");
      User u=loginService.checkLogin(user);
      if (u == null)       return new LoginResult<>(false,"String_Node_Str");
      int userId=u.getUserId();
      Token t=new Token(jwtUtil.createToken(u));
      loginService.insertToken(t,u);
      u.setUserId(-1);
      u.setPassWd(null);
      lr=new LoginResult<>(true,new LoginInfo(u,t));
    }
 catch (    Exception e) {
      lr=new LoginResult<>(false,"String_Node_Str");
    }
  }
  return lr;
}
Program: 78214
Project: 78214
Buggy source:
public void compile(String[] args){
  options.compilerArgSolve(args);
  buildAst();
  typeCheck();
  if (options.dumpAst)   dumpAst();
  buildIR();
  if (options.memorizeSearch)   memorizeSearch();
  if (options.functionInline)   functionInliner();
  livenessAnalysis();
  if (options.dumpIR)   dumpIR();
  allocate();
  codeGenerate();
}

Fixed version (ground truth):
public void compile(String[] args){
  options.compilerArgSolve(args);
  buildAst();
  typeCheck();
  if (options.dumpAst)   dumpAst();
  buildIR();
  if (options.functionInline)   functionInliner();
  if (options.memorizeSearch)   memorizeSearch();
  livenessAnalysis();
  if (options.dumpIR)   dumpIR();
  allocate();
  codeGenerate();
}