Program: 58303
Project: 58303
Buggy source:
@Override public void onViewCreated(final View view,Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  mListener.onHomeSetTitle("String_Node_Str");
  refreshReceiver=new BroadcastReceiver(){
    @Override public void onReceive(    Context context,    Intent intent){
      loadStatsFromSource(view);
    }
  }
;
  getActivity().registerReceiver(refreshReceiver,new IntentFilter(ActivityReceiver.SEND_STATS_ACTION));
  loadStatsFromSource(view);
  TextView textView;
  textView=(TextView)view.findViewById(R.id.buttonResetStats);
  textView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View textView){
      new AlertDialog.Builder(getActivity()).setTitle("String_Node_Str").setMessage("String_Node_Str").setPositiveButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          UnbounceStatsCollection.getInstance().resetStats(getActivity(),UnbounceStatsCollection.STAT_CURRENT);
          loadStatsFromSource(view);
          Intent intent=new Intent(XposedReceiver.RESET_ACTION);
          intent.putExtra(XposedReceiver.STAT_TYPE,UnbounceStatsCollection.STAT_CURRENT);
          try {
            getActivity().sendBroadcast(intent);
          }
 catch (          IllegalStateException ise) {
          }
        }
      }
).setNegativeButton("String_Node_Str",new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  SharedPreferences prefs=getActivity().getSharedPreferences("String_Node_Str" + "String_Node_Str",Context.MODE_WORLD_READABLE);
  if (prefs.getBoolean("String_Node_Str",true)) {
    SettingsHelper.resetToDefaults(prefs);
    textView=(TextView)view.findViewById(R.id.textviewCloseBanner);
    textView.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View textview){
        ViewGroup bannerContainer=(ViewGroup)view;
        LayoutTransition lt=new LayoutTransition();
        float endLocation=view.getHeight();
        DisplayMetrics metrics=Resources.getSystem().getDisplayMetrics();
        float dp=endLocation / (metrics.densityDpi / 160f);
        AnimatorSet animator=new AnimatorSet();
        ObjectAnimator moveBanner=ObjectAnimator.ofFloat(null,View.TRANSLATION_Y,0,dp);
        ObjectAnimator fadeBanner=ObjectAnimator.ofFloat(null,View.ALPHA,1,0);
        animator.playTogether(moveBanner,fadeBanner);
        lt.setAnimator(LayoutTransition.DISAPPEARING,animator);
        bannerContainer.setLayoutTransition(lt);
        View banner=(View)view.findViewById(R.id.banner);
        bannerContainer.removeView(banner);
      }
    }
);
    View banner=view.findViewById(R.id.banner);
    banner.setVisibility(View.VISIBLE);
  }
  LinearLayout layout=(LinearLayout)view.findViewById(R.id.buttonKarma1);
  layout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",1,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layout=(LinearLayout)view.findViewById(R.id.buttonKarma5);
  layout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",5,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layout=(LinearLayout)view.findViewById(R.id.buttonKarma10);
  layout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",10,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  LinearLayout layoutAgain=(LinearLayout)view.findViewById(R.id.buttonKarma1Again);
  layoutAgain.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",1,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layoutAgain=(LinearLayout)view.findViewById(R.id.buttonKarma5Again);
  layoutAgain.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",5,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layoutAgain=(LinearLayout)view.findViewById(R.id.buttonKarma10Again);
  layoutAgain.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",10,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  textView=(TextView)view.findViewById(R.id.buttonHelpFurther);
  final LinearLayout expanded=(LinearLayout)view.findViewById(R.id.layoutExpandedDonateAgain);
  final ScrollView scroll=(ScrollView)view.findViewById(R.id.scrollView);
  textView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      expanded.setVisibility(View.VISIBLE);
      scroll.post(new Runnable(){
        @Override public void run(){
          scroll.fullScroll(View.FOCUS_DOWN);
        }
      }
);
    }
  }
);
  updatePremiumUi();
  requestRefresh();
}

Fixed version (ground truth):
@Override public void onViewCreated(final View view,Bundle savedInstanceState){
  super.onViewCreated(view,savedInstanceState);
  mListener.onHomeSetTitle(getResources().getString(R.string.title_home));
  refreshReceiver=new BroadcastReceiver(){
    @Override public void onReceive(    Context context,    Intent intent){
      loadStatsFromSource(view);
    }
  }
;
  getActivity().registerReceiver(refreshReceiver,new IntentFilter(ActivityReceiver.SEND_STATS_ACTION));
  loadStatsFromSource(view);
  TextView textView;
  textView=(TextView)view.findViewById(R.id.buttonResetStats);
  textView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View textView){
      new AlertDialog.Builder(getActivity()).setTitle(R.string.alert_delete_stats_title).setMessage(R.string.alert_delete_stats_content).setPositiveButton(R.string.dialog_delete,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
          UnbounceStatsCollection.getInstance().resetStats(getActivity(),UnbounceStatsCollection.STAT_CURRENT);
          loadStatsFromSource(view);
          Intent intent=new Intent(XposedReceiver.RESET_ACTION);
          intent.putExtra(XposedReceiver.STAT_TYPE,UnbounceStatsCollection.STAT_CURRENT);
          try {
            getActivity().sendBroadcast(intent);
          }
 catch (          IllegalStateException ise) {
          }
        }
      }
).setNegativeButton(R.string.dialog_cancel,new DialogInterface.OnClickListener(){
        public void onClick(        DialogInterface dialog,        int which){
        }
      }
).setIcon(android.R.drawable.ic_dialog_alert).show();
    }
  }
);
  SharedPreferences prefs=getActivity().getSharedPreferences("String_Node_Str" + "String_Node_Str",Context.MODE_WORLD_READABLE);
  if (prefs.getBoolean("String_Node_Str",true)) {
    SettingsHelper.resetToDefaults(prefs);
    textView=(TextView)view.findViewById(R.id.textviewCloseBanner);
    textView.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View textview){
        ViewGroup bannerContainer=(ViewGroup)view;
        LayoutTransition lt=new LayoutTransition();
        float endLocation=view.getHeight();
        DisplayMetrics metrics=Resources.getSystem().getDisplayMetrics();
        float dp=endLocation / (metrics.densityDpi / 160f);
        AnimatorSet animator=new AnimatorSet();
        ObjectAnimator moveBanner=ObjectAnimator.ofFloat(null,View.TRANSLATION_Y,0,dp);
        ObjectAnimator fadeBanner=ObjectAnimator.ofFloat(null,View.ALPHA,1,0);
        animator.playTogether(moveBanner,fadeBanner);
        lt.setAnimator(LayoutTransition.DISAPPEARING,animator);
        bannerContainer.setLayoutTransition(lt);
        View banner=(View)view.findViewById(R.id.banner);
        bannerContainer.removeView(banner);
      }
    }
);
    View banner=view.findViewById(R.id.banner);
    banner.setVisibility(View.VISIBLE);
  }
  LinearLayout layout=(LinearLayout)view.findViewById(R.id.buttonKarma1);
  layout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",1,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layout=(LinearLayout)view.findViewById(R.id.buttonKarma5);
  layout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",5,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layout=(LinearLayout)view.findViewById(R.id.buttonKarma10);
  layout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",10,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  LinearLayout layoutAgain=(LinearLayout)view.findViewById(R.id.buttonKarma1Again);
  layoutAgain.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",1,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layoutAgain=(LinearLayout)view.findViewById(R.id.buttonKarma5Again);
  layoutAgain.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",5,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  layoutAgain=(LinearLayout)view.findViewById(R.id.buttonKarma10Again);
  layoutAgain.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ((MaterialSettingsActivity)getActivity()).mHelper.launchPurchaseFlow(getActivity(),"String_Node_Str",10,((MaterialSettingsActivity)getActivity()).mPurchaseFinishedListener,"String_Node_Str");
    }
  }
);
  textView=(TextView)view.findViewById(R.id.buttonHelpFurther);
  final LinearLayout expanded=(LinearLayout)view.findViewById(R.id.layoutExpandedDonateAgain);
  final ScrollView scroll=(ScrollView)view.findViewById(R.id.scrollView);
  textView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      expanded.setVisibility(View.VISIBLE);
      scroll.post(new Runnable(){
        @Override public void run(){
          scroll.fullScroll(View.FOCUS_DOWN);
        }
      }
);
    }
  }
);
  updatePremiumUi();
  requestRefresh();
}