Program: 43130
Project: 43130
Buggy source:
/** 
 * Report a click from an in app search result back to global search for shortcutting porpoises.
 * @param c The cursor that is pointing to the clicked position.
 * @param intent The intent that will be launched for the click.
 */
private void reportInAppClickToGlobalSearch(Cursor c,Intent intent){
  Uri uri=getClickReportingUri();
  final ContentValues cv=new ContentValues();
  cv.put(SearchManager.SEARCH_CLICK_REPORT_COLUMN_QUERY,mUserQuery);
  final ComponentName source=mSearchable.getSearchActivity();
  cv.put(SearchManager.SEARCH_CLICK_REPORT_COLUMN_COMPONENT,source.flattenToShortString());
  cv.put(SearchManager.SUGGEST_COLUMN_INTENT_ACTION,intent.getAction());
  cv.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA,intent.getDataString());
  cv.put(SearchManager.SUGGEST_COLUMN_INTENT_COMPONENT_NAME,intent.getStringExtra(SearchManager.COMPONENT_NAME_KEY));
  cv.put(SearchManager.SUGGEST_COLUMN_ICON_1,wrapIconForPackage(mSearchable.getSuggestPackage(),getColumnString(c,SearchManager.SUGGEST_COLUMN_ICON_1)));
  cv.put(SearchManager.SUGGEST_COLUMN_ICON_2,wrapIconForPackage(mSearchable.getSuggestPackage(),getColumnString(c,SearchManager.SUGGEST_COLUMN_ICON_2)));
  cv.put(SearchManager.SUGGEST_COLUMN_FORMAT,getColumnString(c,SearchManager.SUGGEST_COLUMN_FORMAT));
  cv.put(SearchManager.SUGGEST_COLUMN_TEXT_1,getColumnString(c,SearchManager.SUGGEST_COLUMN_TEXT_1));
  cv.put(SearchManager.SUGGEST_COLUMN_TEXT_2,getColumnString(c,SearchManager.SUGGEST_COLUMN_TEXT_2));
  cv.put(SearchManager.SUGGEST_COLUMN_QUERY,getColumnString(c,SearchManager.SUGGEST_COLUMN_QUERY));
  cv.put(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID,getColumnString(c,SearchManager.SUGGEST_COLUMN_SHORTCUT_ID));
  mContext.getContentResolver().insert(uri,cv);
}

Fixed version (ground truth):
/** 
 * Report a click from an in app search result back to global search for shortcutting porpoises.
 * @param c The cursor that is pointing to the clicked position.
 * @param intent The intent that will be launched for the click.
 */
private void reportInAppClickToGlobalSearch(Cursor c,Intent intent){
  Uri uri=getClickReportingUri();
  final ContentValues cv=new ContentValues();
  cv.put(SearchManager.SEARCH_CLICK_REPORT_COLUMN_QUERY,mUserQuery);
  final ComponentName source=mSearchable.getSearchActivity();
  cv.put(SearchManager.SEARCH_CLICK_REPORT_COLUMN_COMPONENT,source.flattenToShortString());
  cv.put(SearchManager.SUGGEST_COLUMN_INTENT_ACTION,intent.getAction());
  cv.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA,intent.getDataString());
  cv.put(SearchManager.SUGGEST_COLUMN_INTENT_COMPONENT_NAME,intent.getComponent().flattenToShortString());
  cv.put(SearchManager.SUGGEST_COLUMN_ICON_1,wrapIconForPackage(mSearchable.getSuggestPackage(),getColumnString(c,SearchManager.SUGGEST_COLUMN_ICON_1)));
  cv.put(SearchManager.SUGGEST_COLUMN_ICON_2,wrapIconForPackage(mSearchable.getSuggestPackage(),getColumnString(c,SearchManager.SUGGEST_COLUMN_ICON_2)));
  cv.put(SearchManager.SUGGEST_COLUMN_FORMAT,getColumnString(c,SearchManager.SUGGEST_COLUMN_FORMAT));
  cv.put(SearchManager.SUGGEST_COLUMN_TEXT_1,getColumnString(c,SearchManager.SUGGEST_COLUMN_TEXT_1));
  cv.put(SearchManager.SUGGEST_COLUMN_TEXT_2,getColumnString(c,SearchManager.SUGGEST_COLUMN_TEXT_2));
  cv.put(SearchManager.SUGGEST_COLUMN_QUERY,getColumnString(c,SearchManager.SUGGEST_COLUMN_QUERY));
  cv.put(SearchManager.SUGGEST_COLUMN_SHORTCUT_ID,getColumnString(c,SearchManager.SUGGEST_COLUMN_SHORTCUT_ID));
  mContext.getContentResolver().insert(uri,cv);
}