Program: 157500
Project: 157500
Buggy source:
private void upgradeSettingsValues(SharedPreferences sp){
  if (AnyApplication.DEBUG)   Log.d(TAG,"String_Node_Str");
  int configurationVersion=sp.getInt(CONFIGURATION_VERSION,4);
  if (configurationVersion < 1) {
    boolean oldLandscapeFullScreenValue=sp.getBoolean("String_Node_Str",mContext.getResources().getBoolean(R.bool.settings_default_landscape_fullscreen));
    if (AnyApplication.DEBUG)     Log.d(TAG,"String_Node_Str");
    Editor e=sp.edit();
    e.putBoolean(mContext.getString(R.string.settings_key_landscape_fullscreen),oldLandscapeFullScreenValue);
    e.remove("String_Node_Str");
    e.putInt(CONFIGURATION_VERSION,1);
    e.commit();
  }
  if (configurationVersion < 2) {
    if (AnyApplication.DEBUG)     Log.d(TAG,"String_Node_Str");
    Editor e=sp.edit();
    e.putString("String_Node_Str",mContext.getString(R.string.settings_default_portrait_keyboard_height_factor));
    e.putString("String_Node_Str",mContext.getString(R.string.settings_default_landscape_keyboard_height_factor));
    e.putInt(CONFIGURATION_VERSION,2);
    e.commit();
  }
  if (configurationVersion < 3) {
    Editor e=sp.edit();
    if (Workarounds.getApiLevel() <= 7) {
      if (AnyApplication.DEBUG)       Log.d(TAG,"String_Node_Str");
      final String bottomRowKey=mContext.getString(R.string.settings_key_ext_kbd_bottom_row_key);
      String currentBottomRowId=sp.getString(bottomRowKey,mContext.getString(R.string.settings_default_ext_kbd_bottom_row_key));
      String newBottomRowId="String_Node_Str";
      if (currentBottomRowId.equals("String_Node_Str")) {
        newBottomRowId="String_Node_Str";
      }
 else       if (currentBottomRowId.equals("String_Node_Str")) {
        newBottomRowId="String_Node_Str";
      }
      if (!TextUtils.isEmpty(newBottomRowId)) {
        Log.i(TAG,"String_Node_Str" + currentBottomRowId + "String_Node_Str"+ newBottomRowId+ "String_Node_Str");
        e.putString(bottomRowKey,newBottomRowId);
      }
    }
    e.putInt(CONFIGURATION_VERSION,3);
    e.commit();
  }
  if (configurationVersion < 4) {
    Editor e=sp.edit();
    if (AnyApplication.DEBUG)     Log.d(TAG,"String_Node_Str");
    e.putBoolean(mContext.getString(R.string.settings_key_landscape_fullscreen),mContext.getResources().getBoolean(R.bool.settings_default_landscape_fullscreen));
    e.putInt(CONFIGURATION_VERSION,4);
    e.commit();
  }
}

Fixed version (ground truth):
private void upgradeSettingsValues(SharedPreferences sp){
  if (AnyApplication.DEBUG)   Log.d(TAG,"String_Node_Str");
  int configurationVersion=sp.getInt(CONFIGURATION_VERSION,5);
  if (configurationVersion < 1) {
    boolean oldLandscapeFullScreenValue=sp.getBoolean("String_Node_Str",mContext.getResources().getBoolean(R.bool.settings_default_landscape_fullscreen));
    Log.i(TAG,"String_Node_Str");
    Editor e=sp.edit();
    e.putBoolean(mContext.getString(R.string.settings_key_landscape_fullscreen),oldLandscapeFullScreenValue);
    e.remove("String_Node_Str");
    e.putInt(CONFIGURATION_VERSION,1);
    e.commit();
  }
  if (configurationVersion < 2) {
    Log.i(TAG,"String_Node_Str");
    Editor e=sp.edit();
    e.putString("String_Node_Str",mContext.getString(R.string.settings_default_portrait_keyboard_height_factor));
    e.putString("String_Node_Str",mContext.getString(R.string.settings_default_landscape_keyboard_height_factor));
    e.putInt(CONFIGURATION_VERSION,2);
    e.commit();
  }
  if (configurationVersion < 3) {
    Editor e=sp.edit();
    if (Workarounds.getApiLevel() <= 7) {
      Log.i(TAG,"String_Node_Str");
      final String bottomRowKey=mContext.getString(R.string.settings_key_ext_kbd_bottom_row_key);
      String currentBottomRowId=sp.getString(bottomRowKey,mContext.getString(R.string.settings_default_ext_kbd_bottom_row_key));
      String newBottomRowId="String_Node_Str";
      if (currentBottomRowId.equals("String_Node_Str")) {
        newBottomRowId="String_Node_Str";
      }
 else       if (currentBottomRowId.equals("String_Node_Str")) {
        newBottomRowId="String_Node_Str";
      }
      if (!TextUtils.isEmpty(newBottomRowId)) {
        Log.i(TAG,"String_Node_Str" + currentBottomRowId + "String_Node_Str"+ newBottomRowId+ "String_Node_Str");
        e.putString(bottomRowKey,newBottomRowId);
      }
    }
    e.putInt(CONFIGURATION_VERSION,3);
    e.commit();
  }
  if (configurationVersion < 4) {
    Editor e=sp.edit();
    Log.i(TAG,"String_Node_Str");
    e.putBoolean(mContext.getString(R.string.settings_key_landscape_fullscreen),mContext.getResources().getBoolean(R.bool.settings_default_landscape_fullscreen));
    e.putInt(CONFIGURATION_VERSION,4);
    e.commit();
  }
  if (configurationVersion < 5) {
    Editor e=sp.edit();
    Log.i(TAG,"String_Node_Str");
    e.putBoolean(mContext.getString(R.string.settings_key_workaround_disable_rtl_fix),getAlwaysUseDrawTextDefault());
    e.putInt(CONFIGURATION_VERSION,5);
    e.commit();
  }
}