Program: 52088
Project: 52088
Buggy source:
private Animation getShowAnimation(SuperActivityToast superActivityToast){
  if (superActivityToast.getAnimation() == SuperToast.Animations.FLYIN) {
    TranslateAnimation translateAnimation=new TranslateAnimation(Animation.RELATIVE_TO_SELF,0.75f,Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.0f);
    AlphaAnimation alphaAnimation=new AlphaAnimation(0f,1f);
    AnimationSet animationSet=new AnimationSet(true);
    animationSet.addAnimation(translateAnimation);
    animationSet.addAnimation(alphaAnimation);
    animationSet.setInterpolator(new DecelerateInterpolator());
    animationSet.setDuration(250);
    return animationSet;
  }
 else   if (superActivityToast.getAnimation() == SuperToast.Animations.SCALE) {
    ScaleAnimation scaleAnimation=new ScaleAnimation(0.9f,1.0f,0.9f,1.0f,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
    AlphaAnimation alphaAnimation=new AlphaAnimation(0f,1f);
    AnimationSet animationSet=new AnimationSet(true);
    animationSet.addAnimation(scaleAnimation);
    animationSet.addAnimation(alphaAnimation);
    animationSet.setInterpolator(new DecelerateInterpolator());
    animationSet.setDuration(250);
    return animationSet;
  }
 else   if (superActivityToast.getAnimation() == SuperToast.Animations.POPUP) {
    TranslateAnimation translateAnimation=new TranslateAnimation(Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.1f,Animation.RELATIVE_TO_SELF,0.0f);
    AlphaAnimation alphaAnimation=new AlphaAnimation(0f,1f);
    AnimationSet animationSet=new AnimationSet(true);
    animationSet.addAnimation(translateAnimation);
    animationSet.addAnimation(alphaAnimation);
    animationSet.setInterpolator(new DecelerateInterpolator());
    animationSet.setDuration(250);
    return animationSet;
  }
 else {
    Animation animation=new AlphaAnimation(0f,1f);
    animation.setDuration(500);
    animation.setInterpolator(new DecelerateInterpolator());
    return animation;
  }
}

Fixed version (ground truth):
private Animation getShowAnimation(SuperActivityToast superActivityToast){
  if (superActivityToast.getAnimations() == SuperToast.Animations.FLYIN) {
    TranslateAnimation translateAnimation=new TranslateAnimation(Animation.RELATIVE_TO_SELF,0.75f,Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.0f);
    AlphaAnimation alphaAnimation=new AlphaAnimation(0f,1f);
    AnimationSet animationSet=new AnimationSet(true);
    animationSet.addAnimation(translateAnimation);
    animationSet.addAnimation(alphaAnimation);
    animationSet.setInterpolator(new DecelerateInterpolator());
    animationSet.setDuration(250);
    return animationSet;
  }
 else   if (superActivityToast.getAnimations() == SuperToast.Animations.SCALE) {
    ScaleAnimation scaleAnimation=new ScaleAnimation(0.9f,1.0f,0.9f,1.0f,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
    AlphaAnimation alphaAnimation=new AlphaAnimation(0f,1f);
    AnimationSet animationSet=new AnimationSet(true);
    animationSet.addAnimation(scaleAnimation);
    animationSet.addAnimation(alphaAnimation);
    animationSet.setInterpolator(new DecelerateInterpolator());
    animationSet.setDuration(250);
    return animationSet;
  }
 else   if (superActivityToast.getAnimations() == SuperToast.Animations.POPUP) {
    TranslateAnimation translateAnimation=new TranslateAnimation(Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.0f,Animation.RELATIVE_TO_SELF,0.1f,Animation.RELATIVE_TO_SELF,0.0f);
    AlphaAnimation alphaAnimation=new AlphaAnimation(0f,1f);
    AnimationSet animationSet=new AnimationSet(true);
    animationSet.addAnimation(translateAnimation);
    animationSet.addAnimation(alphaAnimation);
    animationSet.setInterpolator(new DecelerateInterpolator());
    animationSet.setDuration(250);
    return animationSet;
  }
 else {
    Animation animation=new AlphaAnimation(0f,1f);
    animation.setDuration(500);
    animation.setInterpolator(new DecelerateInterpolator());
    return animation;
  }
}