Program: 2500
Project: 2500
Buggy source:
/** 
 * @param context everything needs a context :(
 */
public GlobalScreenshot(Context context){
  Resources r=context.getResources();
  mContext=context;
  LayoutInflater layoutInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mDisplayMatrix=new Matrix();
  mScreenshotLayout=layoutInflater.inflate(R.layout.global_screenshot,null);
  mBackgroundView=(ImageView)mScreenshotLayout.findViewById(R.id.global_screenshot_background);
  mScreenshotView=(ImageView)mScreenshotLayout.findViewById(R.id.global_screenshot);
  mScreenshotFlash=(ImageView)mScreenshotLayout.findViewById(R.id.global_screenshot_flash);
  mScreenshotLayout.setFocusable(true);
  mScreenshotLayout.setOnTouchListener(new View.OnTouchListener(){
    @Override public boolean onTouch(    View v,    MotionEvent event){
      return true;
    }
  }
);
  mWindowLayoutParams=new WindowManager.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT,0,0,WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY,WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED,PixelFormat.TRANSLUCENT);
  mWindowLayoutParams.setTitle("String_Node_Str");
  mWindowManager=(WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
  mNotificationManager=(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
  mDisplay=mWindowManager.getDefaultDisplay();
  mDisplayMetrics=new DisplayMetrics();
  mDisplay.getRealMetrics(mDisplayMetrics);
  mNotificationIconSize=r.getDimensionPixelSize(android.R.dimen.notification_large_icon_height);
  mBgPadding=(float)r.getDimensionPixelSize(R.dimen.global_screenshot_bg_padding);
  mBgPaddingScale=mBgPadding / mDisplayMetrics.widthPixels;
  mCameraSound=new MediaActionSound();
  mCameraSound.load(MediaActionSound.SHUTTER_CLICK);
  Log.d(TAG,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * @param context everything needs a context :(
 */
public GlobalScreenshot(Context context){
  Resources r=context.getResources();
  mContext=context;
  LayoutInflater layoutInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mDisplayMatrix=new Matrix();
  mScreenshotLayout=layoutInflater.inflate(R.layout.global_screenshot,null);
  mBackgroundView=(ImageView)mScreenshotLayout.findViewById(R.id.global_screenshot_background);
  mScreenshotView=(ImageView)mScreenshotLayout.findViewById(R.id.global_screenshot);
  mScreenshotFlash=(ImageView)mScreenshotLayout.findViewById(R.id.global_screenshot_flash);
  mScreenshotLayout.setFocusable(true);
  mScreenshotLayout.setOnTouchListener(new View.OnTouchListener(){
    @Override public boolean onTouch(    View v,    MotionEvent event){
      return true;
    }
  }
);
  mWindowLayoutParams=new WindowManager.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,ViewGroup.LayoutParams.MATCH_PARENT,0,0,WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY,WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED,PixelFormat.TRANSLUCENT);
  mWindowLayoutParams.setTitle("String_Node_Str");
  mWindowManager=(WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
  mNotificationManager=(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
  mDisplay=mWindowManager.getDefaultDisplay();
  mDisplayMetrics=new DisplayMetrics();
  mDisplay.getRealMetrics(mDisplayMetrics);
  mNotificationIconSize=r.getDimensionPixelSize(android.R.dimen.notification_large_icon_height);
  mBgPadding=(float)r.getDimensionPixelSize(R.dimen.global_screenshot_bg_padding);
  mBgPaddingScale=mBgPadding / mDisplayMetrics.widthPixels;
  mCameraSound=new MediaActionSound();
  mCameraSound.load(MediaActionSound.SHUTTER_CLICK);
}