nus-yam/ex-repair huggingface dataset:
Program: 44080
Project: 44080
Buggy source:
public Context(String name,int colour,Icon icon,Long tracksId,Long tracksModified){
  this(null,name,colour,icon,tracksId,tracksModified);
}

Fixed version (ground truth):
public Context(String name,int colour,Icon icon,Long tracksId,long modified){
  this(null,name,colour,icon,tracksId,modified);
}
Program: 44081
Project: 44081
Buggy source:
public static Context buildFromDto(org.dodgybits.shuffle.dto.ShuffleProtos.Context dto,Resources res){
  Icon icon;
  if (dto.hasIcon()) {
    icon=Icon.createIcon(dto.getIcon(),res);
  }
 else {
    icon=Icon.NONE;
  }
  return new Context(dto.getId(),dto.getName(),dto.getColourIndex(),icon,null,null);
}

Fixed version (ground truth):
public static Context buildFromDto(org.dodgybits.shuffle.dto.ShuffleProtos.Context dto,Resources res){
  Icon icon;
  if (dto.hasIcon()) {
    icon=Icon.createIcon(dto.getIcon(),res);
  }
 else {
    icon=Icon.NONE;
  }
  Long tracksId=null;
  if (dto.hasTracksId()) {
    tracksId=dto.getTracksId();
  }
  long modified=fromDate(dto.getModified());
  return new Context(dto.getId(),dto.getName(),dto.getColourIndex(),icon,tracksId,modified);
}
Program: 44082
Project: 44082
Buggy source:
public org.dodgybits.shuffle.dto.ShuffleProtos.Context toDto(){
  Builder builder=org.dodgybits.shuffle.dto.ShuffleProtos.Context.newBuilder();
  builder.setId(id).setName(name).setColourIndex(colourIndex);
  if (icon != Icon.NONE) {
    builder.setIcon(icon.iconName);
  }
  return builder.build();
}

Fixed version (ground truth):
public org.dodgybits.shuffle.dto.ShuffleProtos.Context toDto(){
  Builder builder=org.dodgybits.shuffle.dto.ShuffleProtos.Context.newBuilder();
  builder.setId(id).setName(name).setColourIndex(colourIndex).setModified(toDate(modified));
  if (tracksId != null) {
    builder.setTracksId(tracksId);
  }
  if (icon != Icon.NONE) {
    builder.setIcon(icon.iconName);
  }
  return builder.build();
}
Program: 44083
Project: 44083
Buggy source:
@Override public Long getModified(){
  return modified;
}

Fixed version (ground truth):
@Override public long getModified(){
  return modified;
}
Program: 44084
Project: 44084
Buggy source:
public Project(String name,Long defaultContextId,boolean archived,Long tracksId,Long tracksModified){
  this(null,name,defaultContextId,archived,tracksId,tracksModified);
}

Fixed version (ground truth):
public Project(String name,Long defaultContextId,boolean archived,Long tracksId,long modified){
  this(null,name,defaultContextId,archived,tracksId,modified);
}
Program: 44085
Project: 44085
Buggy source:
public static Project buildFromDto(org.dodgybits.shuffle.dto.ShuffleProtos.Project dto,Locator<Context> contextLocator){
  Long defaultContextId=null;
  if (dto.hasDefaultContextId()) {
    Context defaultContext=contextLocator.findById(dto.getDefaultContextId());
    if (defaultContext != null) {
      defaultContextId=defaultContext.id;
    }
  }
  return new Project(dto.getId(),dto.getName(),defaultContextId,false,null,null);
}

Fixed version (ground truth):
public static Project buildFromDto(org.dodgybits.shuffle.dto.ShuffleProtos.Project dto,Locator<Context> contextLocator){
  Long defaultContextId=null;
  if (dto.hasDefaultContextId()) {
    Context defaultContext=contextLocator.findById(dto.getDefaultContextId());
    if (defaultContext != null) {
      defaultContextId=defaultContext.id;
    }
  }
  Long tracksId=null;
  if (dto.hasTracksId()) {
    tracksId=dto.getTracksId();
  }
  long modified=fromDate(dto.getModified());
  return new Project(dto.getId(),dto.getName(),defaultContextId,false,tracksId,modified);
}
Program: 44086
Project: 44086
Buggy source:
public org.dodgybits.shuffle.dto.ShuffleProtos.Project toDto(){
  Builder builder=org.dodgybits.shuffle.dto.ShuffleProtos.Project.newBuilder();
  builder.setId(id).setName(name);
  if (defaultContextId != null) {
    builder.setDefaultContextId(defaultContextId);
  }
  return builder.build();
}

Fixed version (ground truth):
public org.dodgybits.shuffle.dto.ShuffleProtos.Project toDto(){
  Builder builder=org.dodgybits.shuffle.dto.ShuffleProtos.Project.newBuilder();
  builder.setId(id).setName(name).setModified(toDate(modified));
  if (defaultContextId != null) {
    builder.setDefaultContextId(defaultContextId);
  }
  if (tracksId != null) {
    builder.setTracksId(tracksId);
  }
  return builder.build();
}
Program: 44087
Project: 44087
Buggy source:
@Override public Long getModified(){
  return modified;
}

Fixed version (ground truth):
@Override public long getModified(){
  return modified;
}
Program: 44088
Project: 44088
Buggy source:
public static Task buildFromDto(org.dodgybits.shuffle.dto.ShuffleProtos.Task dto,Locator<Context> contextLocator,Locator<Project> projectLocator){
  Long id=dto.getId();
  String description=dto.getDescription();
  String details=dto.getDetails();
  Context context=null;
  if (dto.hasContextId()) {
    context=contextLocator.findById(dto.getContextId());
  }
  Project project=null;
  if (dto.hasProjectId()) {
    project=projectLocator.findById(dto.getProjectId());
  }
  long created=fromDate(dto.getCreated());
  long modified=fromDate(dto.getModified());
  long startDate=fromDate(dto.getStartDate());
  long dueDate=fromDate(dto.getDueDate());
  String timezone=dto.getTimezone();
  Boolean allDay=dto.getAllDay();
  Boolean hasAlarms=false;
  Long calEventId=null;
  if (dto.hasCalEventId()) {
    calEventId=dto.getCalEventId();
  }
  Integer order=dto.getOrder();
  Boolean complete=dto.getComplete();
  return new Task(id,description,details,context,project,created,modified,startDate,dueDate,timezone,allDay,hasAlarms,calEventId,order,complete,null);
}

Fixed version (ground truth):
public static Task buildFromDto(org.dodgybits.shuffle.dto.ShuffleProtos.Task dto,Locator<Context> contextLocator,Locator<Project> projectLocator){
  Long id=dto.getId();
  String description=dto.getDescription();
  String details=dto.getDetails();
  Context context=null;
  if (dto.hasContextId()) {
    context=contextLocator.findById(dto.getContextId());
  }
  Project project=null;
  if (dto.hasProjectId()) {
    project=projectLocator.findById(dto.getProjectId());
  }
  long created=fromDate(dto.getCreated());
  long modified=fromDate(dto.getModified());
  long startDate=fromDate(dto.getStartDate());
  long dueDate=fromDate(dto.getDueDate());
  String timezone=dto.getTimezone();
  Boolean allDay=dto.getAllDay();
  Boolean hasAlarms=false;
  Long calEventId=null;
  if (dto.hasCalEventId()) {
    calEventId=dto.getCalEventId();
  }
  Integer order=dto.getOrder();
  Boolean complete=dto.getComplete();
  Long tracksId=null;
  if (dto.hasTracksId()) {
    tracksId=dto.getTracksId();
  }
  return new Task(id,description,details,context,project,created,modified,startDate,dueDate,timezone,allDay,hasAlarms,calEventId,order,complete,tracksId);
}
Program: 44089
Project: 44089
Buggy source:
public org.dodgybits.shuffle.dto.ShuffleProtos.Task toDto(){
  Builder builder=org.dodgybits.shuffle.dto.ShuffleProtos.Task.newBuilder();
  builder.setId(id).setDescription(description).setCreated(toDate(created)).setModified(toDate(modified)).setStartDate(toDate(startDate)).setDueDate(toDate(dueDate)).setAllDay(allDay).setOrder(order).setComplete(complete);
  if (details != null) {
    builder.setDetails(details);
  }
  if (context != null) {
    builder.setContextId(context.id);
  }
  if (project != null) {
    builder.setProjectId(project.id);
  }
  if (timezone != null) {
    builder.setTimezone(timezone);
  }
  if (calEventId != null) {
    builder.setCalEventId(calEventId);
  }
  return builder.build();
}

Fixed version (ground truth):
public org.dodgybits.shuffle.dto.ShuffleProtos.Task toDto(){
  Builder builder=org.dodgybits.shuffle.dto.ShuffleProtos.Task.newBuilder();
  builder.setId(id).setDescription(description).setCreated(toDate(created)).setModified(toDate(modified)).setStartDate(toDate(startDate)).setDueDate(toDate(dueDate)).setAllDay(allDay).setOrder(order).setComplete(complete);
  if (details != null) {
    builder.setDetails(details);
  }
  if (context != null) {
    builder.setContextId(context.id);
  }
  if (project != null) {
    builder.setProjectId(project.id);
  }
  if (timezone != null) {
    builder.setTimezone(timezone);
  }
  if (calEventId != null) {
    builder.setCalEventId(calEventId);
  }
  if (tracksId != null) {
    builder.setTracksId(tracksId);
  }
  return builder.build();
}
Program: 44090
Project: 44090
Buggy source:
@Override public Long getModified(){
  return modified;
}

Fixed version (ground truth):
@Override public long getModified(){
  return modified;
}
Program: 44091
Project: 44091
Buggy source:
public Long getModified();

Fixed version (ground truth):
public long getModified();
Program: 44092
Project: 44092
Buggy source:
private void handleRemoteEntity(Entity localContext,Entity remoteContext){
  if (remoteContext.getModified().equals(localContext.getModified()))   return;
  if (remoteContext.getModified() > localContext.getModified()) {
    saveLocalEntity(createMergedLocalEntity(localContext,remoteContext));
  }
 else {
    updateTracks(localContext);
  }
}

Fixed version (ground truth):
private void handleRemoteEntity(Entity localContext,Entity remoteContext){
  if (remoteContext.getModified() == localContext.getModified())   return;
  if (remoteContext.getModified() > localContext.getModified()) {
    saveLocalEntity(createMergedLocalEntity(localContext,remoteContext));
  }
 else {
    updateTracks(localContext);
  }
}
Program: 44093
Project: 44093
Buggy source:
public static Context readContext(Cursor cursor,Resources res){
  Long id=readLong(cursor,ID_INDEX);
  String name=readString(cursor,NAME_INDEX);
  int colour=cursor.getInt(COLOUR_INDEX);
  String iconName=readString(cursor,ICON_INDEX);
  Icon icon=Icon.createIcon(iconName,res);
  Long tracksId=readLong(cursor,TRACKS_ID_INDEX);
  Long tracksModified=readLong(cursor,TRACKS_MODIFIED_INDEX);
  return new Context(id,name,colour,icon,tracksId,tracksModified);
}

Fixed version (ground truth):
public static Context readContext(Cursor cursor,Resources res){
  Long id=readLong(cursor,ID_INDEX);
  String name=readString(cursor,NAME_INDEX);
  int colour=cursor.getInt(COLOUR_INDEX);
  String iconName=readString(cursor,ICON_INDEX);
  Icon icon=Icon.createIcon(iconName,res);
  Long tracksId=readLong(cursor,TRACKS_ID_INDEX);
  Long tracksModified=readLong(cursor,CONTEXTS_MODIFIED_INDEX);
  return new Context(id,name,colour,icon,tracksId,tracksModified);
}
Program: 44094
Project: 44094
Buggy source:
public static Project readProject(Cursor cursor){
  Long id=readLong(cursor,ID_INDEX);
  String name=readString(cursor,NAME_INDEX);
  Long defaultContextId=readLong(cursor,DEFAULT_CONTEXT_INDEX);
  Boolean archived=readBoolean(cursor,ARCHIVED_INDEX);
  Long tracksId=readLong(cursor,PROJECTS_TRACKS_ID_INDEX);
  Long tracksModified=readLong(cursor,PROJECTS_TRACKS_MODIFIED_INDEX);
  return new Project(id,name,defaultContextId,archived,tracksId,tracksModified);
}

Fixed version (ground truth):
public static Project readProject(Cursor cursor){
  Long id=readLong(cursor,ID_INDEX);
  String name=readString(cursor,NAME_INDEX);
  Long defaultContextId=readLong(cursor,DEFAULT_CONTEXT_INDEX);
  Boolean archived=readBoolean(cursor,ARCHIVED_INDEX);
  Long tracksId=readLong(cursor,PROJECTS_TRACKS_ID_INDEX);
  Long tracksModified=readLong(cursor,PROJECTS_MODIFIED_INDEX);
  return new Project(id,name,defaultContextId,archived,tracksId,tracksModified);
}
Program: 44095
Project: 44095
Buggy source:
@Override protected void updateInsertExtras(Bundle extras,Project project){
  extras.putString(Shuffle.Tasks.PROJECT_ID,project.name);
  if (project.defaultContextId != null) {
    Context context=BindingUtils.fetchContextById(this,project.defaultContextId);
    if (context != null) {
      extras.putLong(Shuffle.Tasks.CONTEXT_ID,context.id);
    }
  }
}

Fixed version (ground truth):
@Override protected void updateInsertExtras(Bundle extras,Project project){
  extras.putLong(Shuffle.Tasks.PROJECT_ID,project.id);
  if (project.defaultContextId != null) {
    Context context=BindingUtils.fetchContextById(this,project.defaultContextId);
    if (context != null) {
      extras.putLong(Shuffle.Tasks.CONTEXT_ID,context.id);
    }
  }
}
Program: 44096
Project: 44096
Buggy source:
@Override public void onUpgrade(SQLiteDatabase db,int oldVersion,int newVersion){
  Log.i(cTag,"String_Node_Str" + oldVersion + "String_Node_Str"+ newVersion);
switch (oldVersion) {
case 9:
    db.execSQL("String_Node_Str" + cContextTableName + "String_Node_Str");
  createContextTable(db);
db.execSQL("String_Node_Str" + cContextTableName + "String_Node_Str"+ "String_Node_Str");
db.execSQL("String_Node_Str");
case 10:
createTaskProjectIdIndex(db);
createTaskContextIdIndex(db);
case 11:
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
createRemindersTable(db);
createRemindersEventIdIndex(db);
createTaskCleanupTrigger(db);
break;
default :
Log.w(cTag,"String_Node_Str");
onCreate(db);
break;
}
}

Fixed version (ground truth):
@Override public void onUpgrade(SQLiteDatabase db,int oldVersion,int newVersion){
  Log.i(cTag,"String_Node_Str" + oldVersion + "String_Node_Str"+ newVersion);
switch (oldVersion) {
case 9:
    db.execSQL("String_Node_Str" + cContextTableName + "String_Node_Str");
  createContextTable(db);
db.execSQL("String_Node_Str" + cContextTableName + "String_Node_Str"+ "String_Node_Str");
db.execSQL("String_Node_Str");
case 10:
createTaskProjectIdIndex(db);
createTaskContextIdIndex(db);
case 11:
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str");
db.execSQL("String_Node_Str" + cTaskTableName + "String_Node_Str"+ "String_Node_Str");
createRemindersTable(db);
createRemindersEventIdIndex(db);
createTaskCleanupTrigger(db);
break;
default :
Log.w(cTag,"String_Node_Str");
onCreate(db);
break;
}
}
Program: 44098
Project: 44098
Buggy source:
public void onClick(DialogInterface dialog,int which){
  if (which == DialogInterface.BUTTON2) {
    Log.i(cTag,"String_Node_Str" + groupId);
    AbstractDrilldownListActivity.super.deleteItem();
    Log.i(cTag,"String_Node_Str" + groupId);
    deleteChildren(groupId);
  }
 else {
    Log.d(cTag,"String_Node_Str");
  }
}

Fixed version (ground truth):
public void onClick(DialogInterface dialog,int which){
  if (which == DialogInterface.BUTTON2) {
    Log.i(cTag,"String_Node_Str" + groupId);
    AbstractDrilldownListActivity.super.deleteItem(groupId);
    Log.i(cTag,"String_Node_Str" + groupId);
    deleteChildren(groupId);
  }
 else {
    Log.d(cTag,"String_Node_Str");
  }
}
Program: 44099
Project: 44099
Buggy source:
/** 
 * Permanently delete the selected item.
 */
protected void deleteItem(){
  int childCount=getSelectedItemChildCount();
  if (childCount > 0) {
    final int groupId=(int)getSelectedItemId();
    OnClickListener buttonListener=new OnClickListener(){
      public void onClick(      DialogInterface dialog,      int which){
        if (which == DialogInterface.BUTTON2) {
          Log.i(cTag,"String_Node_Str" + groupId);
          AbstractDrilldownListActivity.super.deleteItem();
          Log.i(cTag,"String_Node_Str" + groupId);
          deleteChildren(groupId);
        }
 else {
          Log.d(cTag,"String_Node_Str");
        }
      }
    }
;
    AlertUtils.showDeleteGroupWarning(this,getItemName(),getChildName(),childCount,buttonListener);
  }
 else {
    super.deleteItem();
  }
}

Fixed version (ground truth):
/** 
 * Permanently delete the selected item.
 */
protected void deleteItem(){
  int childCount=getSelectedItemChildCount();
  if (childCount > 0) {
    final int groupId=(int)getSelectedItemId();
    OnClickListener buttonListener=new OnClickListener(){
      public void onClick(      DialogInterface dialog,      int which){
        if (which == DialogInterface.BUTTON2) {
          Log.i(cTag,"String_Node_Str" + groupId);
          AbstractDrilldownListActivity.super.deleteItem(groupId);
          Log.i(cTag,"String_Node_Str" + groupId);
          deleteChildren(groupId);
        }
 else {
          Log.d(cTag,"String_Node_Str");
        }
      }
    }
;
    AlertUtils.showDeleteGroupWarning(this,getItemName(),getChildName(),childCount,buttonListener);
  }
 else {
    super.deleteItem(getSelectedItemId());
  }
}
Program: 44100
Project: 44100
Buggy source:
@Override public boolean onPrepareOptionsMenu(Menu menu){
  super.onPrepareOptionsMenu(menu);
  final boolean haveItems=getItemCount() > 0;
  Uri selectedContentUri=getSelectedContentUri();
  Boolean childSelected=isChildSelected();
  if (haveItems && childSelected != null && !childSelected && (selectedContentUri != null)) {
    long selectedId=getSelectedId();
    Uri selectedUri=ContentUris.withAppendedId(selectedContentUri,selectedId);
    MenuUtils.addSelectedAlternativeMenuItems(menu,selectedUri,this,false);
    MenuUtils.addDeleteMenuItem(menu);
  }
 else {
    menu.removeGroup(Menu.CATEGORY_ALTERNATIVE);
  }
  menu.findItem(MenuUtils.DELETE_ID).setVisible(haveItems);
  return true;
}

Fixed version (ground truth):
@Override public boolean onPrepareOptionsMenu(Menu menu){
  super.onPrepareOptionsMenu(menu);
  final boolean haveItems=getItemCount() > 0;
  Uri selectedContentUri=getSelectedContentUri();
  if (haveItems && (selectedContentUri != null)) {
    long selectedId=getSelectedId();
    Uri selectedUri=ContentUris.withAppendedId(selectedContentUri,selectedId);
    MenuUtils.addSelectedAlternativeMenuItems(menu,selectedUri,this,false);
    MenuUtils.addDeleteMenuItem(menu);
  }
 else {
    menu.removeGroup(Menu.CATEGORY_ALTERNATIVE);
  }
  menu.findItem(MenuUtils.DELETE_ID).setVisible(haveItems);
  return true;
}
Program: 44102
Project: 44102
Buggy source:
@Override public boolean onPrepareOptionsMenu(Menu menu){
  super.onPrepareOptionsMenu(menu);
  final boolean haveItems=getItemCount() > 0;
  if (haveItems && getSelectedItemPosition() > -1) {
    Uri uri=ContentUris.withAppendedId(getContentUri(),getSelectedItemId());
    MenuUtils.addSelectedAlternativeMenuItems(menu,uri,this,supportsViewAction());
    MenuUtils.addDeleteMenuItem(menu);
  }
 else {
    menu.removeGroup(Menu.CATEGORY_ALTERNATIVE);
  }
  menu.findItem(MenuUtils.DELETE_ID).setVisible(haveItems);
  return true;
}

Fixed version (ground truth):
@Override public boolean onPrepareOptionsMenu(Menu menu){
  super.onPrepareOptionsMenu(menu);
  final boolean haveItems=getItemCount() > 0;
  if (haveItems && getSelectedItemPosition() > -1) {
    Uri uri=ContentUris.withAppendedId(getContentUri(),getSelectedItemId());
    MenuUtils.addSelectedAlternativeMenuItems(menu,uri,this,supportsViewAction());
  }
 else {
    menu.removeGroup(Menu.CATEGORY_ALTERNATIVE);
  }
  return true;
}
Program: 44103
Project: 44103
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@SuppressWarnings("String_Node_Str") @Override public void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResId());
  setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT);
  Intent intent=getIntent();
  if (intent.getData() == null) {
    intent.setData(getContentUri());
  }
  mCursor=createItemQuery();
  setListAdapter(createListAdapter(mCursor));
  animateList();
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@SuppressWarnings("String_Node_Str") @Override public void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResId());
  setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT);
  Intent intent=getIntent();
  if (intent.getData() == null) {
    intent.setData(getContentUri());
  }
  getListView().setOnCreateContextMenuListener(this);
  mCursor=createItemQuery();
  setListAdapter(createListAdapter(mCursor));
  animateList();
}
Program: 44104
Project: 44104
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case MenuUtils.DELETE_ID:
    deleteItem();
  return true;
case MenuUtils.INSERT_ID:
insertItem();
return true;
}
if (MenuUtils.checkCommonItemsSelected(item,this,getCurrentViewMenuId())) {
return true;
}
return super.onOptionsItemSelected(item);
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case MenuUtils.INSERT_ID:
    insertItem();
  return true;
}
if (MenuUtils.checkCommonItemsSelected(item,this,getCurrentViewMenuId())) {
return true;
}
return super.onOptionsItemSelected(item);
}
Program: 44105
Project: 44105
Buggy source:
/** 
 * Permanently delete the selected item.
 */
protected void deleteItem(){
  Uri uri=ContentUris.withAppendedId(Shuffle.Contexts.CONTENT_URI,getSelectedItemId());
  getContentResolver().delete(uri,null,null);
}

Fixed version (ground truth):
/** 
 * Permanently delete the selected item.
 */
protected void deleteItem(long id){
  getContentResolver().delete(getListContentUri(),BaseColumns._ID + "String_Node_Str",new String[]{String.valueOf(id)});
}
Program: 44106
Project: 44106
Buggy source:
protected final void toggleComplete(){
  mCursor.moveToPosition(getSelectedItemPosition());
  BindingUtils.toggleTaskComplete(this,mCursor,getSelectedItemId());
}

Fixed version (ground truth):
protected final void toggleComplete(){
  Cursor c=(Cursor)getListAdapter().getItem(getSelectedItemPosition());
  BindingUtils.toggleTaskComplete(this,c,getListContentUri(),getSelectedItemId());
}
Program: 44107
Project: 44107
Buggy source:
@Override protected Cursor createItemQuery(){
  Log.d(cTag,"String_Node_Str");
  return managedQuery(Shuffle.Tasks.CONTENT_URI,Shuffle.Tasks.cExpandedProjection,Shuffle.Tasks.CONTEXT_ID + "String_Node_Str",new String[]{String.valueOf(mContextId)},Shuffle.Tasks.CREATED_DATE + "String_Node_Str");
}

Fixed version (ground truth):
@Override protected Cursor createItemQuery(){
  Log.d(cTag,"String_Node_Str");
  return managedQuery(getListContentUri(),Shuffle.Tasks.cExpandedProjection,Shuffle.Tasks.CONTEXT_ID + "String_Node_Str",new String[]{String.valueOf(mContextId)},Shuffle.Tasks.CREATED_DATE + "String_Node_Str");
}
Program: 44108
Project: 44108
Buggy source:
@Override protected void onResume(){
  super.onResume();
  Cursor cursor=getContentResolver().query(Shuffle.Contexts.cContextTasksContentURI,Shuffle.Contexts.cFullTaskProjection,null,null,null);
  mTaskCountArray=BindingUtils.readCountArray(cursor);
  cursor.close();
}

Fixed version (ground truth):
@Override protected void onResume(){
  super.onResume();
  Cursor cursor=getContentResolver().query(getListContentUri(),Shuffle.Contexts.cFullTaskProjection,null,null,null);
  mTaskCountArray=BindingUtils.readCountArray(cursor);
  cursor.close();
}
Program: 44109
Project: 44109
Buggy source:
public void onClick(DialogInterface dialog,int which){
  if (which == DialogInterface.BUTTON2) {
    final long groupId=getSelectedId();
    Log.i(cTag,"String_Node_Str" + groupId);
    Uri uri=ContentUris.withAppendedId(getGroupContentUri(),groupId);
    getContentResolver().delete(uri,null,null);
    Log.i(cTag,"String_Node_Str" + groupId);
    getContentResolver().delete(getChildContentUri(),getGroupIdColumnName() + "String_Node_Str",new String[]{String.valueOf(groupId)});
  }
 else {
    Log.d(cTag,"String_Node_Str");
  }
}

Fixed version (ground truth):
public void onClick(DialogInterface dialog,int which){
  if (which == DialogInterface.BUTTON1) {
    final long groupId=getExpandableListAdapter().getGroupId(groupPosition);
    Log.i(cTag,"String_Node_Str" + groupId);
    Uri uri=ContentUris.withAppendedId(getGroupContentUri(),groupId);
    getContentResolver().delete(uri,null,null);
    Log.i(cTag,"String_Node_Str" + groupId);
    getContentResolver().delete(getChildContentUri(),getGroupIdColumnName() + "String_Node_Str",new String[]{String.valueOf(groupId)});
  }
 else {
    Log.d(cTag,"String_Node_Str");
  }
}
Program: 44110
Project: 44110
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case MenuUtils.DELETE_ID:
    deleteItem();
  return true;
case MenuUtils.INSERT_CHILD_ID:
insertItem(getChildContentUri());
return true;
case MenuUtils.INSIDE_GROUP_ID:
insertItem(getGroupContentUri());
return true;
}
if (MenuUtils.checkCommonItemsSelected(item,this,getCurrentViewMenuId())) return true;
return super.onOptionsItemSelected(item);
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case MenuUtils.INSERT_CHILD_ID:
    insertItem(getChildContentUri());
  return true;
case MenuUtils.INSIDE_GROUP_ID:
insertItem(getGroupContentUri());
return true;
}
if (MenuUtils.checkCommonItemsSelected(item,this,getCurrentViewMenuId())) return true;
return super.onOptionsItemSelected(item);
}
Program: 44111
Project: 44111
Buggy source:
@Override public void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResId());
  setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT);
  Cursor groupCursor=createGroupQuery();
  mAdapter=createExpandableListAdapter(groupCursor);
  setListAdapter(mAdapter);
  animateList();
}

Fixed version (ground truth):
@Override public void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResId());
  setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT);
  getExpandableListView().setOnCreateContextMenuListener(this);
  Cursor groupCursor=createGroupQuery();
  mAdapter=createExpandableListAdapter(groupCursor);
  setListAdapter(mAdapter);
  animateList();
}
Program: 44113
Project: 44113
Buggy source:
protected Boolean isChildSelected(){
  long packed=this.getSelectedPosition();
  int type=ExpandableListView.getPackedPositionType(packed);
  Boolean isChild=null;
switch (type) {
case ExpandableListView.PACKED_POSITION_TYPE_CHILD:
    isChild=Boolean.TRUE;
  break;
case ExpandableListView.PACKED_POSITION_TYPE_GROUP:
isChild=Boolean.FALSE;
}
return isChild;
}

Fixed version (ground truth):
protected Boolean isChildSelected(){
  long packed=this.getSelectedPosition();
  return isChild(packed);
}
Program: 44114
Project: 44114
Buggy source:
/** 
 * @return Number of items in the list.
 */
protected final int getItemCount(){
  return mCursor.getCount();
}

Fixed version (ground truth):
/** 
 * @return Number of items in the list.
 */
protected final int getItemCount(){
  return getListAdapter().getCount();
}
Program: 44115
Project: 44115
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@SuppressWarnings("String_Node_Str") @Override public void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResId());
  setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT);
  Intent intent=getIntent();
  if (intent.getData() == null) {
    intent.setData(getContentUri());
  }
  getListView().setOnCreateContextMenuListener(this);
  mCursor=createItemQuery();
  setListAdapter(createListAdapter(mCursor));
  animateList();
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@SuppressWarnings("String_Node_Str") @Override public void onCreate(Bundle icicle){
  super.onCreate(icicle);
  setContentView(getContentViewResId());
  setDefaultKeyMode(DEFAULT_KEYS_SHORTCUT);
  Intent intent=getIntent();
  if (intent.getData() == null) {
    intent.setData(getContentUri());
  }
  getListView().setOnCreateContextMenuListener(this);
  Cursor cursor=createItemQuery();
  setListAdapter(createListAdapter(cursor));
  animateList();
}
Program: 44116
Project: 44116
Buggy source:
@Override public void onCreateContextMenu(ContextMenu menu,View view,ContextMenuInfo menuInfo){
  AdapterView.AdapterContextMenuInfo info;
  try {
    info=(AdapterView.AdapterContextMenuInfo)menuInfo;
  }
 catch (  ClassCastException e) {
    Log.e(cTag,"String_Node_Str",e);
    return;
  }
  Cursor cursor=(Cursor)getListAdapter().getItem(info.position);
  if (cursor == null) {
    return;
  }
  menu.setHeaderTitle(cursor.getString(1));
  MenuUtils.addDeleteMenuItem(menu);
}

Fixed version (ground truth):
@Override public void onCreateContextMenu(ContextMenu menu,View view,ContextMenuInfo menuInfo){
  AdapterView.AdapterContextMenuInfo info;
  try {
    info=(AdapterView.AdapterContextMenuInfo)menuInfo;
  }
 catch (  ClassCastException e) {
    Log.e(cTag,"String_Node_Str",e);
    return;
  }
  Cursor cursor=(Cursor)getListAdapter().getItem(info.position);
  if (cursor == null) {
    return;
  }
  menu.setHeaderTitle(cursor.getString(1));
  Uri selectedUri=ContentUris.withAppendedId(getContentUri(),info.id);
  MenuUtils.addSelectedAlternativeMenuItems(menu,selectedUri,this,false);
  MenuUtils.addDeleteMenuItem(menu);
}
Program: 44117
Project: 44117
Buggy source:
protected final void toggleComplete(){
  Cursor c=(Cursor)getListAdapter().getItem(getSelectedItemPosition());
  BindingUtils.toggleTaskComplete(this,c,getListContentUri(),getSelectedItemId());
}

Fixed version (ground truth):
protected final void toggleComplete(int position,long id){
  Cursor c=(Cursor)getListAdapter().getItem(position);
  BindingUtils.toggleTaskComplete(this,c,getListContentUri(),id);
}
Program: 44118
Project: 44118
Buggy source:
private void updateCursor(){
  mCursor=createItemQuery();
  SimpleCursorAdapter adapter=(SimpleCursorAdapter)getListAdapter();
  adapter.changeCursor(mCursor);
  setTitle(createTitle());
}

Fixed version (ground truth):
private void updateCursor(){
  Cursor cursor=createItemQuery();
  SimpleCursorAdapter adapter=(SimpleCursorAdapter)getListAdapter();
  adapter.changeCursor(cursor);
  setTitle(createTitle());
}
Program: 44120
Project: 44120
Buggy source:
/** 
 * Web service operation
 */
@WebMethod(operationName="String_Node_Str") public boolean processPurchaseOrder(@WebParam(name="String_Node_Str") PurchaseOrder aPO){
  MessageContext ctxt=wsc.getMessageContext();
  ServletContext req=(ServletContext)ctxt.get(ctxt.SERVLET_CONTEXT);
  String path=req.getRealPath("String_Node_Str");
  ORDERS_XML=path + "String_Node_Str" + ORDERS_XML;
  if (aPO.getUnitPrice() >= aPO.getProduct().getUnitPrice()) {
    if (produce(aPO.getProduct().getProductName(),aPO.getQuantity())) {
      System.out.println("String_Node_Str");
      File file=new File(ORDERS_XML);
      try {
        DocumentBuilderFactory dbf=DocumentBuilderFactory.newInstance();
        DocumentBuilder db=dbf.newDocumentBuilder();
        InputSource is=new InputSource();
        is.setCharacterStream(new FileReader(file));
        Document doc=db.parse(is);
        Element root=doc.getDocumentElement();
        Element e=doc.createElement("String_Node_Str");
        String keys[]={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
        String values[]={aPO.getOrderNum(),aPO.getCustomerRef(),aPO.getProduct().getProductName(),Integer.toString(aPO.getQuantity()),Float.toString(aPO.getUnitPrice())};
        for (int i=0; i < keys.length; i++) {
          Element tmp=doc.createElement(keys[i]);
          tmp.setTextContent(values[i]);
          e.appendChild(tmp);
        }
        Element status=doc.createElement("String_Node_Str");
        status.setTextContent("String_Node_Str");
        e.appendChild(status);
        Element total=doc.createElement("String_Node_Str");
        float orderTotal=aPO.getQuantity() * aPO.getUnitPrice();
        total.setTextContent(Float.toString(orderTotal));
        e.appendChild(total);
        root.appendChild(e);
        TransformerFactory tf=TransformerFactory.newInstance();
        Transformer m=tf.newTransformer();
        DOMSource source=new DOMSource(root);
        StreamResult result=new StreamResult(file);
        m.transform(source,result);
      }
 catch (      Exception e) {
        System.out.println("String_Node_Str" + e.getMessage());
      }
      return true;
    }
  }
  System.out.println("String_Node_Str");
  return false;
}

Fixed version (ground truth):
/** 
 * Web service operation
 */
@WebMethod(operationName="String_Node_Str") public boolean processPurchaseOrder(@WebParam(name="String_Node_Str") PurchaseOrder aPO){
}
Program: 44125
Project: 44125
Buggy source:
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.route);
  mRoute=(Route)getIntent().getParcelableExtra("String_Node_Str");
  initActionBar(mRoute.getTitle());
  mMapView=(MapView)findViewById(R.id.mapview);
  mMapView.setBuiltInZoomControls(true);
  mMapOverlays=mMapView.getOverlays();
  itemizedOverlay=new PlaceItemizedOverlay(this,mMapView);
  initList(mRoute);
  int index=1;
  for (  Place place : mRoute.getPlaces()) {
    addPlaceOverlay(place,index);
    index++;
  }
  mMapOverlays.add(itemizedOverlay);
  myLocationOverlay(mMapView);
  mMc=mMapView.getController();
  final MapController mc=mMc;
  if (mMapOverlays.size() > 0) {
    PlaceItemizedOverlay first=(PlaceItemizedOverlay)mMapOverlays.get(0);
    GeoPoint point=first.getCenter();
    mc.animateTo(point);
    mc.setZoom(14);
  }
}

Fixed version (ground truth):
/** 
 * Called when the activity is first created. 
 */
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.route);
  mRoute=(Route)getIntent().getParcelableExtra("String_Node_Str");
  initActionBar(mRoute.getTitle());
  mMapView=(MapView)findViewById(R.id.mapview);
  mMapView.setBuiltInZoomControls(true);
  mMapOverlays=mMapView.getOverlays();
  itemizedOverlay=new PlaceItemizedOverlay(this,mMapView);
  initList(mRoute);
  int index=1;
  for (  Place place : mRoute.getPlaces()) {
    addPlaceOverlay(place,index);
    index++;
  }
  mMapOverlays.add(itemizedOverlay);
  myLocationOverlay(mMapView);
  mMc=mMapView.getController();
  final MapController mc=mMc;
  if (mMapOverlays.size() > 0) {
    PlaceItemizedOverlay first=(PlaceItemizedOverlay)mMapOverlays.get(0);
    GeoPoint point=first.getCenter();
    mc.animateTo(point);
    mc.setZoom(14);
  }
  onRotationChange(getResources().getConfiguration());
}
Program: 44126
Project: 44126
Buggy source:
/** 
 * @see android.app.Activity#onConfigurationChanged(android.content.res.Configuration)
 */
@Override public void onConfigurationChanged(Configuration newConfig){
  if (newConfig.orientation == newConfig.ORIENTATION_LANDSCAPE) {
    Log.d("String_Node_Str","String_Node_Str");
    mPlacesList.setVisibility(View.VISIBLE);
  }
 else {
    mPlacesList.setVisibility(View.GONE);
  }
  super.onConfigurationChanged(newConfig);
}

Fixed version (ground truth):
/** 
 * @see android.app.Activity#onConfigurationChanged(android.content.res.Configuration)
 */
@Override public void onConfigurationChanged(Configuration newConfig){
  onRotationChange(newConfig);
  super.onConfigurationChanged(newConfig);
}
Program: 44128
Project: 44128
Buggy source:
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeString(this.title);
  dest.writeString(this.description);
  dest.writeTypedList(this.places);
}

Fixed version (ground truth):
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeString(title);
  dest.writeParcelable(createdBy,0);
  dest.writeString(description);
  dest.writeTypedList(places);
}
Program: 44129
Project: 44129
Buggy source:
public Route(Parcel parcel){
  this.title=parcel.readString();
  this.description=parcel.readString();
  this.places=new ArrayList<Place>();
  parcel.readTypedList(this.places,Place.CREATOR);
}

Fixed version (ground truth):
public Route(Parcel parcel){
  title=parcel.readString();
  createdBy=parcel.readParcelable(User.class.getClassLoader());
  description=parcel.readString();
  places=new ArrayList<Place>();
  parcel.readTypedList(places,Place.CREATOR);
}
Program: 44131
Project: 44131
Buggy source:
public void setUser(User user){
  this.user=user;
}

Fixed version (ground truth):
public <T extends User>T setUser(T user){
  this.user=user;
  return user;
}
Program: 44132
Project: 44132
Buggy source:
public ViewSpeakerPage(){
  add(new UserInfoPanel("String_Node_Str",fetchSpeaker(),true));
}

Fixed version (ground truth):
public ViewSpeakerPage(){
  add(new UserInfoPanel("String_Node_Str",getSession().setUser(fetchSpeaker()),true));
}
Program: 44133
Project: 44133
Buggy source:
/** 
 * Sets the property used to discriminate between the different document types
 * @param discriminatorField
 */
public void setDiscriminatorField(String discriminatorField){
  this.discriminatorField=discriminatorField;
}

Fixed version (ground truth):
/** 
 * Sets the property used to discriminate between the different document types
 * @param discriminatorField    property used to discriminate between the different document types
 */
public void setDiscriminatorField(String discriminatorField){
  this.discriminatorField=discriminatorField;
}
Program: 44134
Project: 44134
Buggy source:
/** 
 * Sets the parse path info at which the type discrimination is applied.
 * @param parsePathInfo
 */
public void setParsePathInfo(String parsePathInfo){
  this.pathMatcher=new EqualsPathMatcher(parsePathInfo);
}

Fixed version (ground truth):
/** 
 * Sets the parse path info at which the type discrimination is applied.
 * @param parsePathInfo parse path to match with an EqualsPathMatcher for this type mapper.
 */
public void setParsePathInfo(String parsePathInfo){
  this.pathMatcher=new EqualsPathMatcher(parsePathInfo);
}
Program: 44135
Project: 44135
Buggy source:
/** 
 * If set to <code>true</code>, java.util.HashMap will be used for discriminator field values that are mapped to no class. Otherwise an exception is thrown in that case.
 * @param allowUndefined
 */
public void setAllowUndefined(boolean allowUndefined){
  this.allowUndefined=allowUndefined;
}

Fixed version (ground truth):
/** 
 * If set to <code>true</code>, java.util.HashMap will be used for discriminator field values that are mapped to no class. Otherwise an exception is thrown in that case.
 * @param allowUndefined    <code>true</code> if you objects with undefined type to be parsed as HashMap instead ofthe mapper throwing an error.
 */
public void setAllowUndefined(boolean allowUndefined){
  this.allowUndefined=allowUndefined;
}
Program: 44136
Project: 44136
Buggy source:
/** 
 * Sets the base type to which all created instances must be assignable to.
 * @param enforcedBaseType
 */
public void setEnforcedBaseType(Class enforcedBaseType){
  this.enforcedBaseType=enforcedBaseType;
}

Fixed version (ground truth):
/** 
 * Sets the base type to which all created instances must be assignable to.
 * @param enforcedBaseType  if <code>true</code>, make sure that the instances create are assignable to the givenbase type
 */
public void setEnforcedBaseType(Class enforcedBaseType){
  this.enforcedBaseType=enforcedBaseType;
}
Program: 44137
Project: 44137
Buggy source:
/** 
 * Sets the base package that is put before the given type to form the fully qualified class names.
 * @param basePackage
 */
public void setBasePackage(String basePackage){
  this.basePackage=basePackage;
}

Fixed version (ground truth):
/** 
 * Sets the base package that is put before the given type to form the fully qualified class names.
 * @param basePackage   the base package that is put before the given type to form the fully qualifiedclass names
 */
public void setBasePackage(String basePackage){
  this.basePackage=basePackage;
}
Program: 44138
Project: 44138
Buggy source:
/** 
 * Sets the type mappers that are consulted for type hints in the order in which they are in the list
 * @param typeMappers
 */
public void setTypeMappers(List<TypeMapper> typeMappers){
  this.typeMappers=typeMappers;
}

Fixed version (ground truth):
/** 
 * Sets the type mappers that are consulted for type hints in the order in which they are in the list
 * @param typeMappers   list of type mappers to compose 
 */
public void setTypeMappers(List<TypeMapper> typeMappers){
  this.typeMappers=typeMappers;
}
Program: 44139
Project: 44139
Buggy source:
/** 
 * returns value of the attribute with the given name.
 * @param name
 */
Object getProperty(String name);

Fixed version (ground truth):
/** 
 * returns value of the attribute with the given name.
 * @param name      property name
 * @return property value
 */
Object getProperty(String name);
Program: 44140
Project: 44140
Buggy source:
/** 
 * Returns the set of available dynamic attribute names.
 * @return
 */
Set<String> propertyNames();

Fixed version (ground truth):
/** 
 * Returns the set of available dynamic attribute names.
 * @return set of available dynamic attribute names
 */
Set<String> propertyNames();
Program: 44141
Project: 44141
Buggy source:
/** 
 * Sets the attribute with the given name to the given value.
 * @param name
 * @param value if <code>null</code>, the attribute is removed.
 */
void setProperty(String name,Object value);

Fixed version (ground truth):
/** 
 * Sets the attribute with the given name to the given value.
 * @param name      property name
 * @param value     if <code>null</code>, the attribute is removed.
 */
void setProperty(String name,Object value);
Program: 44142
Project: 44142
Buggy source:
/** 
 * Returns <code>true</code> if this DynamicProperties object has a property with the given name.
 * @param name
 * @return
 */
boolean hasProperty(String name);

Fixed version (ground truth):
/** 
 * Returns <code>true</code> if this DynamicProperties object has a property with the given name.
 * @param name      property name
 * @return <code>true</code> if this DynamicProperties object has a property with the given name
 */
boolean hasProperty(String name);
Program: 44143
Project: 44143
Buggy source:
/** 
 * Removes the property with the given name from this DynamicProperties object.
 * @param name
 * @return  the previous value of the removed property. 
 */
Object removeProperty(String name);

Fixed version (ground truth):
/** 
 * Removes the property with the given name from this DynamicProperties object.
 * @param name      property name
 * @return  the previous value of the removed property.
 */
Object removeProperty(String name);
Program: 44144
Project: 44144
Buggy source:
/** 
 * Returns the properties this JSON generator ignores.
 * @return
 */
public Collection<String> getIgnoredProperties(){
  return ignoredProperties;
}

Fixed version (ground truth):
/** 
 * Returns the properties this JSON generator ignores.
 * @return the currently ignored property names
 */
public Collection<String> getIgnoredProperties(){
  return ignoredProperties;
}
Program: 44145
Project: 44145
Buggy source:
/** 
 * Returns a JSON representation of the given object as String.
 * @param o
 * @param ignoredProps  collection of property names to ignore. Overrides the ignored properties set on the JSON generator
 * @return
 */
public String forValue(Object o,Collection<String> ignoredProps){
  StringBuilderSink tmp=new StringBuilderSink();
  dumpObject(tmp,o,ignoredProps);
  return tmp.getContent();
}

Fixed version (ground truth):
/** 
 * Returns a JSON representation of the given object as String.
 * @param o                 object to convert to JSON
 * @param ignoredProps      collection of property names to ignore. Overrides the ignored properties set on the JSON generator
 * @return JSON representation of the given object
 */
public String forValue(Object o,Collection<String> ignoredProps){
  StringBuilderSink tmp=new StringBuilderSink();
  dumpObject(tmp,o,ignoredProps);
  return tmp.getContent();
}
Program: 44146
Project: 44146
Buggy source:
/** 
 * Sets the properties this JSON generator ignores. Most effective when  called with a set.
 * @param ignoredProperties 
 */
public void setIgnoredProperties(Collection<String> ignoredProperties){
  this.ignoredProperties=ignoredProperties;
}

Fixed version (ground truth):
/** 
 * Sets the properties this JSON generator ignores. Most effective when  called with a set.
 * @param ignoredProperties     property names to ignore
 */
public void setIgnoredProperties(Collection<String> ignoredProperties){
  this.ignoredProperties=ignoredProperties;
}
Program: 44147
Project: 44147
Buggy source:
/** 
 * Allows single quotes to be used for quoting JSON strings.
 * @param allowSingleQuotes
 */
public void setAllowSingleQuotes(boolean allowSingleQuotes){
  this.allowSingleQuotes=allowSingleQuotes;
}

Fixed version (ground truth):
/** 
 * Allows single quotes to be used for quoting JSON strings.
 * @param allowSingleQuotes     <code>true</code> if you want to parse JSON quoted with single quotes. (e.g.<code>{'MyObject':'single quoted'}</code>)
 */
public void setAllowSingleQuotes(boolean allowSingleQuotes){
  this.allowSingleQuotes=allowSingleQuotes;
}
Program: 44148
Project: 44148
Buggy source:
/** 
 * Makes it possible to define which implementation is to be used for an interface. Per default   {@link Collection} and {@link List} are mapped to {@link ArrayList} and {@link Map} is mapped to {@link HashMap}.
 * @param interfaceMappings
 */
public void setInterfaceMappings(Map<Class,Class> interfaceMappings){
  for (  Map.Entry<Class,Class> e : interfaceMappings.entrySet()) {
    Class iface=e.getKey();
    Class cls=e.getValue();
    if (!iface.isInterface()) {
      throw new IllegalArgumentException("String_Node_Str" + iface + "String_Node_Str");
    }
    if (cls.isInterface()) {
      throw new IllegalArgumentException("String_Node_Str" + cls + "String_Node_Str");
    }
    if (!iface.isAssignableFrom(cls)) {
      throw new IllegalArgumentException("String_Node_Str" + cls + "String_Node_Str"+ iface);
    }
  }
  this.interfaceMappings=interfaceMappings;
}

Fixed version (ground truth):
/** 
 * Makes it possible to define which implementation is to be used for an interface. Per default   {@link Collection} and {@link List} are mapped to {@link ArrayList} and {@link Map} is mapped to {@link HashMap}.
 * @param interfaceMappings     map mapping interface classes to the implementations to use to parse them
 */
public void setInterfaceMappings(Map<Class,Class> interfaceMappings){
  for (  Map.Entry<Class,Class> e : interfaceMappings.entrySet()) {
    Class iface=e.getKey();
    Class cls=e.getValue();
    if (!iface.isInterface()) {
      throw new IllegalArgumentException("String_Node_Str" + iface + "String_Node_Str");
    }
    if (cls.isInterface()) {
      throw new IllegalArgumentException("String_Node_Str" + cls + "String_Node_Str");
    }
    if (!iface.isAssignableFrom(cls)) {
      throw new IllegalArgumentException("String_Node_Str" + cls + "String_Node_Str"+ iface);
    }
  }
  this.interfaceMappings=interfaceMappings;
}
Program: 44149
Project: 44149
Buggy source:
/** 
 * Sets a   {@link TypeMapper} to use on the token streams parsedby this parser.
 * @param typeMapper
 */
public void setTypeMapper(TypeMapper typeMapper){
  this.typeMapper=typeMapper;
}

Fixed version (ground truth):
/** 
 * Sets a   {@link TypeMapper} to use on the token streams parsedby this parser.
 * @param typeMapper    type mapper to use for this parser
 */
public void setTypeMapper(TypeMapper typeMapper){
  this.typeMapper=typeMapper;
}
Program: 44151
Project: 44151
Buggy source:
/** 
 * Sets the type hint map that maps a parse path info to a type to use for this parse path location. ( e.g. <code>".value[]"</code> mapped to <code>FooBean.class</code> would make the parser create FooBean instances for all array elements inside the value property of the root object )
 * @param typeHints
 */
public void setTypeHints(Map<String,Class> typeHints){
  this.typeHints=new HashMap<PathMatcher,Class>();
  for (  Map.Entry<String,Class> e : typeHints.entrySet()) {
    this.typeHints.put(new EqualsPathMatcher(e.getKey()),e.getValue());
  }
}

Fixed version (ground truth):
/** 
 * Sets the type hint map that maps a parse path info to a type to use for this parse path location. ( e.g. <code>".value[]"</code> mapped to <code>FooBean.class</code> would make the parser create FooBean instances for all array elements inside the value property of the root object )
 * @param typeHints map of type hints
 */
public void setTypeHints(Map<String,Class> typeHints){
  this.typeHints=new HashMap<PathMatcher,Class>();
  for (  Map.Entry<String,Class> e : typeHints.entrySet()) {
    this.typeHints.put(new EqualsPathMatcher(e.getKey()),e.getValue());
  }
}