nus-yam/ex-repair huggingface dataset:
Buggy code:
public class DefsTable { public static final byte [ ] DEFINITION_SCHEMA_COLUMN_NAME = "Avro//Schema" . getBytes ( Charsets . UTF_8 ) ; public static synchronized void dumpToStorage ( UUID version ) throws IOException { } public static synchronized Collection < KSMetaData > loadFromStorage ( UUID version ) throws IOException { DecoratedKey vkey = StorageService . getPartitioner ( ) . decorateKey ( Migration . toUTF8Bytes ( version ) ) ; Table defs = Table . open ( SYSTEM_TABLE ) ; ColumnFamilyStore cfStore = defs . getColumnFamilyStore ( SCHEMA_CF ) ; QueryFilter filter = QueryFilter . getIdentityFilter ( vkey , new org . apache . cassandra . db . filter . QueryPath ( Migration . SCHEMA_CF ) ) ; ColumnFamily cf = cfStore . getColumnFamily ( filter ) ; IColumn avroschema = cf . getColumn ( DefsTable . DEFINITION_SCHEMA_COLUMN_NAME ) ; if ( avroschema == null ) throw new RuntimeException ( "Cannot<seq2seq4repair_space>read<seq2seq4repair_space>system<seq2seq4repair_space>table!<seq2seq4repair_space>Are<seq2seq4repair_space>you<seq2seq4repair_space>upgrading<seq2seq4repair_space>a<seq2seq4repair_space>pre-release<seq2seq4repair_space>version?" ) ; Schema schema = Schema . parse ( new String ( avroschema . value ( ) ) ) ; Collection < KSMetaData > keyspaces = new ArrayList < KSMetaData > ( ) ; for ( IColumn column : cf . getSortedColumns ( ) ) { if ( Arrays . equals ( column . name ( ) , DefsTable . DEFINITION_SCHEMA_COLUMN_NAME ) ) continue ; <START_BUG> KsDef ks = SerDeUtils . < KsDef > deserialize ( schema , column . value ( ) ) ; <END_BUG> keyspaces . add ( KSMetaData . inflate ( ks ) ) ; } return keyspaces ; } public static Collection < File > getFiles ( String table , final String cf ) { } }

Fix:
KsDef ks = SerDeUtils . deserialize ( schema , column . value ( ) , new KsDef ( ) ) ;
Buggy code:
public interface FormResponseService { public Long createFormResponse ( FormResponse formResponse ) throws AppException { } @ PreAuthorize ( "hasRole('ROLE_ROOT')" ) public void createFormResponses ( List < FormResponse > formResponses ) throws AppException { } @ PostFilter ( "hasPermission(filterObject,<seq2seq4repair_space>'READ')<seq2seq4repair_space>or<seq2seq4repair_space>hasRole('ROLE_ADMIN')" ) public List < FormResponse > getFormResponses ( int numberOfFormResponses , Long startIndex ) throws AppException { } @ PostFilter ( "hasPermission(filterObject,<seq2seq4repair_space>'WRITE')" ) public List < FormResponse > getMyFormResponses ( int numberOfFormResponses , Long startIndex ) throws AppException { } <START_BUG> @ PostAuthorize ( "hasPermission(#returnObject,<seq2seq4repair_space>'read')<seq2seq4repair_space>or<seq2seq4repair_space>hasRole('ROLE_ADMIN')" ) <END_BUG> public FormResponse getFormResponseById ( Long id ) throws AppException ; @ PostFilter ( "hasPermission(filterObject,<seq2seq4repair_space>'read')<seq2seq4repair_space>or<seq2seq4repair_space>hasRole('ROLE_ADMIN')" ) public List < FormResponse > getFormResponsesByFormId ( Long id , int numberOfFormResponses , int page ) throws AppException { } @ PreAuthorize ( "hasPermission(#formResponse,<seq2seq4repair_space>'write')<seq2seq4repair_space>or<seq2seq4repair_space>hasRole('ROLE_ADMIN')" ) public void updateFullyFormResponse ( FormResponse formResponse ) throws AppException { } @ PreAuthorize ( "hasPermission(#formResponse,<seq2seq4repair_space>'write')<seq2seq4repair_space>or<seq2seq4repair_space>hasRole('ROLE_ADMIN')" ) public void updatePartiallyFormResponse ( FormResponse formResponse ) throws AppException { } @ PreAuthorize ( "hasPermission(#formResponse,<seq2seq4repair_space>'delete')<seq2seq4repair_space>or<seq2seq4repair_space>hasRole('ROLE_ADMIN')" ) public void deleteFormResponse ( FormResponse formResponse ) { } @ PreAuthorize ( "hasRole('ROLE_ROOT')" ) public void deleteFormResponses ( ) { } public FormResponse verifyFormResponseExistenceById ( Long id ) { } public int getNumberOfFormResponses ( ) { } public void uploadFile ( InputStream uploadedInputStream , String uploadedFileLocation ) throws AppException { } public List < String > getFileNames ( FormResponse formResponse ) throws AppException { } public Object getUploadFile ( String uploadedFileLocation ) throws AppException { } public void deleteUploadFile ( String uploadedFileLocation ) throws AppException { } }

Fix:
@ PostAuthorize ( "hasPermission(returnObject,<seq2seq4repair_space>'read')<seq2seq4repair_space>or<seq2seq4repair_space>hasRole('ROLE_ADMIN')" )
Buggy code:
public final class SlopeOneDiffsToAveragesJob { private SlopeOneDiffsToAveragesJob ( ) { } public static void main ( String [ ] args ) throws IOException { } public static JobConf buildJobConf ( String prefsFile , String outputPath ) throws IOException { Path prefsFilePath = new Path ( prefsFile ) ; Path outputPathPath = new Path ( outputPath ) ; JobConf jobConf = new JobConf ( SlopeOnePrefsToDiffsJob . class ) ; <START_BUG> FileSystem fs = FileSystem . get ( jobConf ) ; <END_BUG> if ( fs . exists ( outputPathPath ) ) { fs . delete ( outputPathPath , true ) ; } jobConf . setInputFormat ( SequenceFileInputFormat . class ) ; FileInputFormat . setInputPaths ( jobConf , prefsFilePath ) ; jobConf . setMapperClass ( IdentityMapper . class ) ; jobConf . setMapOutputKeyClass ( ItemItemWritable . class ) ; jobConf . setMapOutputValueClass ( DoubleWritable . class ) ; jobConf . setReducerClass ( SlopeOneDiffsToAveragesReducer . class ) ; jobConf . setOutputKeyClass ( ItemItemWritable . class ) ; jobConf . setOutputValueClass ( DoubleWritable . class ) ; jobConf . setOutputFormat ( TextOutputFormat . class ) ; FileOutputFormat . setOutputPath ( jobConf , outputPathPath ) ; return jobConf ; } }

Fix:
FileSystem fs = FileSystem . get ( outputPathPath . toUri ( ) , jobConf ) ;
Buggy code:
public class Touch extends Task { private interface DateFormatFactory { DateFormat getPrimaryFormat ( ) { } DateFormat getFallbackFormat ( ) { } } private static final Touch . DateFormatFactory DEFAULT_DF_FACTORY = new Touch . DateFormatFactory ( ) { public DateFormat getPrimaryFormat ( ) { } public DateFormat getFallbackFormat ( ) { } } ; private static final FileUtils FILE_UTILS = FileUtils . getFileUtils ( ) ; private File file ; private long millis = - 1 ; private String dateTime ; private Vector filesets = new Vector ( ) ; private Union resources = new Union ( ) ; private boolean dateTimeConfigured ; private boolean mkdirs ; private boolean verbose = true ; private FileNameMapper fileNameMapper = null ; private Touch . DateFormatFactory dfFactory = Touch . DEFAULT_DF_FACTORY ; public Touch ( ) { } public void setFile ( File file ) { } public void setMillis ( long millis ) { } public void setDatetime ( String dateTime ) { } public void setMkdirs ( boolean mkdirs ) { } public void setVerbose ( boolean verbose ) { } public void setPattern ( final String pattern ) { } public void addConfiguredMapper ( Mapper mapper ) { } public void add ( FileNameMapper fileNameMapper ) throws BuildException { } public void addFileset ( FileSet set ) { } public void addFilelist ( FileList list ) { } public void add ( ResourceCollection rc ) { } protected synchronized void checkConfiguration ( ) throws BuildException { } public void execute ( ) throws BuildException { } protected void touch ( ) throws BuildException { } protected void touch ( File file ) { } private long getTimestamp ( ) { } private void touch ( Resource r , long defaultTimestamp ) { if ( ( fileNameMapper ) == null ) { if ( r instanceof FileResource ) { touch ( ( ( FileResource ) ( r ) ) . getFile ( ) , defaultTimestamp ) ; } else { ( ( org . apache . tools . ant . types . resources . Touchable ) ( r ) ) . touch ( defaultTimestamp ) ; } } else { String [ ] mapped = fileNameMapper . mapFileName ( r . getName ( ) ) ; if ( ( mapped != null ) && ( ( mapped . length ) > 0 ) ) { long modTime = ( r . isExists ( ) ) ? r . getLastModified ( ) : defaultTimestamp ; for ( int i = 0 ; i < ( mapped . length ) ; i ++ ) { <START_BUG> touch ( Touch . FILE_UTILS . resolveFile ( getProject ( ) . getBaseDir ( ) , mapped [ i ] ) , modTime ) ; <END_BUG> } } } } private void touch ( File file , long modTime ) { } }

Fix:
touch ( getProject ( ) . resolveFile ( mapped [ i ] ) , modTime ) ;
Buggy code:
public class JRMPRegistry implements NameService { public int port = 1099 ; public Registry registry = null ; public void start ( ) throws NameServiceException { if ( TraceCarol . isDebugJndiCarol ( ) ) { TraceCarol . debugJndiCarol ( ( "JRMPRegistry.start()<seq2seq4repair_space>on<seq2seq4repair_space>port:" + ( port ) ) ) ; } try { if ( ! ( isStarted ( ) ) ) { if ( ( port ) >= 0 ) { registry = LocateRegistry . createRegistry ( port ) ; Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { public void run ( ) { try { <START_BUG> stop ( ) ; <END_BUG> } catch ( Exception e ) { TraceCarol . error ( "JRMPRegistry<seq2seq4repair_space>ShutdownHook<seq2seq4repair_space>problem" , e ) ; } } } ) ; } else { if ( TraceCarol . isDebugJndiCarol ( ) ) { TraceCarol . debugJndiCarol ( ( ( "Can't<seq2seq4repair_space>start<seq2seq4repair_space>JRMPRegistry,<seq2seq4repair_space>port=" + ( port ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space><<seq2seq4repair_space>0" ) ) ; } } } else { if ( TraceCarol . isDebugJndiCarol ( ) ) { TraceCarol . debugJndiCarol ( ( "JRMPRegistry<seq2seq4repair_space>is<seq2seq4repair_space>already<seq2seq4repair_space>start<seq2seq4repair_space>on<seq2seq4repair_space>port:" + ( port ) ) ) ; } } } catch ( Exception e ) { throw new NameServiceException ( ( "can<seq2seq4repair_space>not<seq2seq4repair_space>start<seq2seq4repair_space>rmi<seq2seq4repair_space>registry:<seq2seq4repair_space>" + e ) ) ; } } public void stop ( ) throws NameServiceException { } public boolean isStarted ( ) { } public void setPort ( int p ) { } }

Fix:
JRMPRegistry . this . stop ( ) ;
Buggy code:
public class HeaderInfoInterceptor extends HandlerInterceptorAdapter { @ Autowired MemberService memberService ; @ Override public void postHandle ( HttpServletRequest request , HttpServletResponse response , Object handler , ModelAndView modelAndView ) throws Exception { if ( null == modelAndView ) { return ; } if ( memberService . getAuthenticatedMember ( ) . isPresent ( ) ) { <START_BUG> modelAndView . addObject ( "member" , memberService . getAuthenticatedMember ( ) . get ( ) ) ; <END_BUG> } } }

Fix:
modelAndView . addObject ( "loggedInMember" , memberService . getAuthenticatedMember ( ) . get ( ) ) ;
Buggy code:
public class Ant1CompatBuilder { protected void _init ( BuildHelper helper ) { } protected void check_for_optional_packages ( BuildHelper helper ) { } protected void ant1compat ( BuildHelper helper ) { helper . mkdir ( "${bin.dir}//ant1src_copy" ) ; helper . mkdir ( "${bin.dir}//ant1compat" ) ; helper . copyFilesetRef ( "ant1src_tocopy" , "${bin.dir}//ant1src_copy" ) ; helper . javac ( "${bin.dir}//ant1src_copy:${java.dir}//antlibs//ant1compat" , "${bin.dir}//ant1compat" , "classpath" ) ; helper . copyFileset ( "${bin.dir}//ant1src_copy" , "${bin.dir}//ant1compat" ) ; helper . copyFileset ( "${ant1etc.dir}" , "${bin.dir}//ant1compat//${optional.package}//junit//xsl" ) ; <START_BUG> helper . jar ( "${bin.dir}//ant1compat" , "${distlib.dir}//antlibs//ant1compat.jar" , "${java.dir}//antlibs//ant1compat" , "antlib.xml" ) ; <END_BUG> } protected void clean ( BuildHelper helper ) { } }

Fix:
helper . jar ( "${bin.dir}//ant1compat" , "${distlib.dir}//antlibs//ant1compat.jar" , "${java.dir}//antlibs//ant1compat" , "antlib.xml" , null , null ) ;
Buggy code:
public abstract class Device implements Drawable { int xDisplay ; int shellHandle ; public static boolean DEBUG ; boolean debug = Device . DEBUG ; boolean tracking = Device . DEBUG ; Error [ ] errors ; Object [ ] objects ; GdkColor [ ] gdkColors ; int [ ] colorRefCount ; boolean disposed ; int logProc ; Callback logCallback ; String [ ] log_domains = new String [ ] { "GLib-GObject" , "GLib" , "GObject" , "Pango" , "ATK" , "GdkPixbuf" , "Gdk" , "Gtk" , "GnomeVFS" } ; int [ ] handler_ids = new int [ log_domains . length ] ; int warningLevel ; static Callback XErrorCallback ; static Callback XIOErrorCallback ; static int XErrorProc ; static int XIOErrorProc ; static int XNullErrorProc ; static int XNullIOErrorProc ; static Device [ ] Devices = new Device [ 4 ] ; Color COLOR_BLACK ; Color COLOR_DARK_RED ; Color COLOR_DARK_GREEN ; Color COLOR_DARK_YELLOW ; Color COLOR_DARK_BLUE ; Color COLOR_DARK_MAGENTA ; Color COLOR_DARK_CYAN ; Color COLOR_GRAY ; Color COLOR_DARK_GRAY ; Color COLOR_RED ; Color COLOR_GREEN ; Color COLOR_YELLOW ; Color COLOR_BLUE ; Color COLOR_MAGENTA ; Color COLOR_CYAN ; Color COLOR_WHITE ; Font systemFont ; int emptyTab ; static final Object CREATE_LOCK = new Object ( ) ; protected static Device CurrentDevice ; protected static Runnable DeviceFinder ; static synchronized Device getDevice ( ) { } public Device ( ) { } public Device ( DeviceData data ) { } void checkCairo ( ) { try { Class . forName ( "org.eclipse.swt.internal.cairo.Cairo" ) ; } catch ( Throwable t ) { <START_BUG> SWT . error ( ERROR_NO_GRAPHICS_LIBRARY , t ) ; <END_BUG> } } protected void checkDevice ( ) { } protected void create ( DeviceData data ) { } public void dispose ( ) { } void dispose_Object ( Object object ) { } static synchronized Device findDevice ( int xDisplay ) { } static synchronized void deregister ( Device device ) { } protected void destroy ( ) { } public Rectangle getBounds ( ) { } public DeviceData getDeviceData ( ) { } public Rectangle getClientArea ( ) { } public int getDepth ( ) { } public Point getDPI ( ) { } public FontData [ ] getFontList ( String faceName , boolean scalable ) { } public Color getSystemColor ( int id ) { } public Font getSystemFont ( ) { } public boolean getWarnings ( ) { } protected void init ( ) { } public abstract int internal_new_GC ( GCData data ) { } public abstract void internal_dispose_GC ( int handle , GCData data ) { } public boolean isDisposed ( ) { } int logProc ( int log_domain , int log_level , int message , int user_data ) { } void new_Object ( Object object ) { } static synchronized void register ( Device device ) { } protected void release ( ) { } public void setWarnings ( boolean warnings ) { } static int XErrorProc ( int xDisplay , int xErrorEvent ) { } static int XIOErrorProc ( int xDisplay ) { } }

Fix:
SWT . error ( ERROR_NO_GRAPHICS_LIBRARY , t , "<seq2seq4repair_space>[Cairo<seq2seq4repair_space>is<seq2seq4repair_space>required]" ) ;
Buggy code:
public class JavacExternal extends DefaultCompilerAdapter { public boolean execute ( ) throws BuildException { attributes . log ( "Using<seq2seq4repair_space>external<seq2seq4repair_space>javac<seq2seq4repair_space>compiler" , MSG_VERBOSE ) ; Commandline cmd = new Commandline ( ) ; cmd . setExecutable ( getJavac ( ) . getJavacExecutable ( ) ) ; setupModernJavacCommandlineSwitches ( cmd ) ; <START_BUG> int firstFileName = cmd . size ( ) ; <END_BUG> logAndAddFilesToCompile ( cmd ) ; return ( executeExternalCompile ( cmd . getCommandline ( ) , firstFileName ) ) == 0 ; } }

Fix:
int firstFileName = ( assumeJava11 ( ) ) ? - 1 : cmd . size ( ) ;
Buggy code:
public abstract class Configuration { public static long DEFAULT_SNOOZE_MS = ( 5 * 60 ) * 1000 ; public static long getSnoozeTimeMillis ( ) { <START_BUG> return Configuration . DEFAULT_SNOOZE_MS ; <END_BUG> } }

Fix:
return ( System . currentTimeMillis ( ) ) + ( Configuration . DEFAULT_SNOOZE_MS ) ;
Buggy code:
public class MainApp extends Application { private Stage primaryStage ; private BorderPane rootLayout ; private ControlsController controlsController ; private Pane canvas ; private static MainApp instance ; public static MainApp getInstance ( ) { } public MainApp ( ) { } @ Override public void start ( final Stage primaryStage ) { } public void start ( final Stage primaryStage , boolean defaultMap ) { start ( primaryStage ) ; if ( defaultMap ) { <START_BUG> SimulationController . getInstance ( ) . getMap ( ) . loadMap ( new File ( MainApp . class . getResource ( "//resources//default.map" ) . getFile ( ) ) ) ; <END_BUG> } } private void initRootLayout ( ) { } private void showControls ( ) { } public void resetCanvas ( ) { } public Pane getCanvas ( ) { } public ControlsController getControlsController ( ) { } public Stage getPrimaryStage ( ) { } public BorderPane getRootLayout ( ) { } public void setPrimaryStage ( Stage primaryStage ) { } public void getInitRobotLayout ( ) { } public void getShowControls ( ) { } public static void main ( String [ ] args ) { } }

Fix:
SimulationController . getInstance ( ) . getMap ( ) . loadMap ( new File ( MainApp . class . getResource ( "//resources//maps//default.map" ) . getFile ( ) ) ) ;
Buggy code:
public class TestMetaDataRepository extends AbstractPersistenceTestCase { private final String PU_NAME = "mdr-pu" ; @ Override public void setUp ( ) throws Exception { } public void testPreloadBasic ( ) { OpenJPAEntityManagerFactorySPI emf = null ; try { <START_BUG> emf = createNamedEMF ( PU_NAME , "openjpa.MetaDataRepository" , "Preload=true,NoLock=true" ) ; <END_BUG> MetaDataRepository mdr = emf . getConfiguration ( ) . getMetaDataRepositoryInstance ( ) ; ClassMetaData metadata = mdr . getCachedMetaData ( MdrTestEntity . class ) ; assertNotNull ( metadata ) ; int numEntities = mdr . getPersistentTypeNames ( false , AccessController . doPrivileged ( J2DoPrivHelper . getContextClassLoaderAction ( ) ) ) . size ( ) ; Collection < String > aliases = mdr . getAliasNames ( ) ; assertTrue ( ( ( aliases . size ( ) ) == numEntities ) ) ; QueryMetaData query = mdr . getCachedQueryMetaData ( MdrTestEntity . class , "query" ) ; assertNotNull ( query ) ; } finally { if ( emf != null ) { emf . close ( ) ; } } } }

Fix:
emf = createNamedEMF ( PU_NAME , "openjpa.MetaDataRepository" , "Preload=true" ) ;
Buggy code:
public class Cmd { public static void main ( String [ ] args ) throws Exception { <START_BUG> if ( ( args . length ) != 2 ) { <END_BUG> System . err . println ( "\n***<seq2seq4repair_space>Test<seq2seq4repair_space>your<seq2seq4repair_space>Yubikey<seq2seq4repair_space>against<seq2seq4repair_space>Yubico<seq2seq4repair_space>OTP<seq2seq4repair_space>validation<seq2seq4repair_space>server<seq2seq4repair_space>***" ) ; System . err . println ( "\nUsage:<seq2seq4repair_space>java<seq2seq4repair_space>-jar<seq2seq4repair_space>client.jar<seq2seq4repair_space>Client_ID<seq2seq4repair_space>Client_key<seq2seq4repair_space>OTP" ) ; System . err . println ( "\nEg.<seq2seq4repair_space>java<seq2seq4repair_space>-jar<seq2seq4repair_space>client.jar<seq2seq4repair_space>28<seq2seq4repair_space>vvfucnlcrrnejlbuthlktguhclhvegbungldcrefbnku" ) ; System . err . println ( "\nTouch<seq2seq4repair_space>Yubikey<seq2seq4repair_space>to<seq2seq4repair_space>generate<seq2seq4repair_space>the<seq2seq4repair_space>OTP.<seq2seq4repair_space>Visit<seq2seq4repair_space>Yubico.com<seq2seq4repair_space>for<seq2seq4repair_space>more<seq2seq4repair_space>details." ) ; return ; } String otp = args [ 2 ] ; YubicoClient yc = YubicoClient . getClient ( Integer . parseInt ( args [ 0 ] ) , args [ 1 ] ) ; VerificationResponse response = yc . verify ( otp ) ; if ( ( response != null ) && ( ( response . getStatus ( ) ) == ( ResponseStatus . OK ) ) ) { System . out . println ( "\n*<seq2seq4repair_space>OTP<seq2seq4repair_space>verified<seq2seq4repair_space>OK" ) ; } else { System . out . println ( "\n*<seq2seq4repair_space>Failed<seq2seq4repair_space>to<seq2seq4repair_space>verify<seq2seq4repair_space>OTP" ) ; } System . out . println ( ( "\n*<seq2seq4repair_space>Last<seq2seq4repair_space>response:<seq2seq4repair_space>" + response ) ) ; System . exit ( 0 ) ; } }

Fix:
if ( ( args . length ) != 3 ) {
Buggy code:
) @ RequestMapping ( value = "//{id}" , method = RequestMethod . DELETE , produces = MediaType . APPLICATION_JSON_VALUE ) public RestResponse < Boolean > delete ( @ ApiParam ( value = "Id<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>cloud<seq2seq4repair_space>to<seq2seq4repair_space>delete." , required = true ) @ Valid @ NotBlank @ PathVariable String id ) { } @ ApiOperation ( "Get<seq2seq4repair_space>details<seq2seq4repair_space>of<seq2seq4repair_space>a<seq2seq4repair_space>cloud." ) @ RequestMapping ( value = "//{id}" , method = RequestMethod . GET , produces = MediaType . APPLICATION_JSON_VALUE ) public RestResponse < CloudDTO > get ( @ ApiParam ( value = "Id<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>cloud<seq2seq4repair_space>for<seq2seq4repair_space>which<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>details." , required = true ) @ Valid @ NotBlank @ PathVariable String id ) { Cloud cloud = cloudService . getMandatoryCloud ( id ) ; AuthorizationUtil . checkAuthorizationForCloud ( cloud , CLOUD_DEPLOYER ) ; Map < String , CloudImage > images = cloudImageService . getMultiple ( cloud . getImages ( ) ) ; Map < String , MatchedCloudImage > matchedImages = Maps . newHashMap ( ) ; for ( Map . Entry < String , CloudImage > imageEntry : images . entrySet ( ) ) { matchedImages . put ( imageEntry . getKey ( ) , new MatchedCloudImage ( imageEntry . getValue ( ) , cloud . getImageMapping ( ) . get ( imageEntry . getKey ( ) ) ) ) ; } Map < String , MatchedCloudImageFlavor > matchedFlavors = Maps . newHashMap ( ) ; for ( CloudImageFlavor flavor : cloud . getFlavors ( ) ) { matchedFlavors . put ( flavor . getId ( ) , new MatchedCloudImageFlavor ( flavor , cloud . getFlavorMapping ( ) . get ( flavor . getId ( ) ) ) ) ; } Map < String , MatchedNetworkTemplate > matchedNetworks = Maps . newHashMap ( ) ; for ( NetworkTemplate network : cloud . getNetworks ( ) ) { matchedNetworks . put ( network . getId ( ) , new MatchedNetworkTemplate ( network , cloud . getNetworkMapping ( ) . get ( network . getId ( ) ) ) ) ; } Map < String , MatchedStorageTemplate > matchedStorages = Maps . newHashMap ( ) ; for ( StorageTemplate storage : cloud . getStorages ( ) ) { <START_BUG> matchedStorages . put ( storage . getId ( ) , new MatchedStorageTemplate ( storage , cloud . getNetworkMapping ( ) . get ( storage . getId ( ) ) ) ) ; <END_BUG>

Fix:
matchedStorages . put ( storage . getId ( ) , new MatchedStorageTemplate ( storage , cloud . getStorageMapping ( ) . get ( storage . getId ( ) ) ) ) ;
Buggy code:
public class XBitmapCacheAsyncTask extends AsyncTask < Void , Void , Void > { private int position ; private String resourcePath ; private ImageView imageView ; private Bitmap varBitmap ; public XBitmapCacheAsyncTask ( Integer position , String resourcePath , ImageView imageView ) { } @ Override protected Void doInBackground ( Void ... params ) { } private Bitmap cutPicture ( final Bitmap original ) { } private Options getOptionsInCalculate ( ) { BitmapFactory . Options opt = new BitmapFactory . Options ( ) ; opt . inJustDecodeBounds = true ; BitmapFactory . decodeFile ( this . resourcePath , opt ) ; <START_BUG> float width_divide_height = ( opt . outHeight ) // ( opt . outWidth ) ; <END_BUG> int cal_width = 0 ; int cal_height = 0 ; if ( width_divide_height > ( XCameraConst . WIDTH_DIVIDE_HEIGHT ) ) { if ( ( opt . outHeight ) > ( XCameraConst . PHOTO_ITEM_HEIGHT ) ) { cal_height = XCameraConst . PHOTO_ITEM_HEIGHT ; cal_width = cal_height * ( ( opt . outWidth ) // ( opt . outHeight ) ) ; } else { cal_height = opt . outHeight ; cal_width = opt . outWidth ; } opt . inSampleSize = ( opt . outHeight ) // cal_height ; } else { if ( ( opt . outWidth ) > ( XCameraConst . PHOTO_ITEM_WIDTH ) ) { cal_width = XCameraConst . PHOTO_ITEM_WIDTH ; cal_height = cal_width * ( ( opt . outHeight ) // ( opt . outWidth ) ) ; } else { cal_height = opt . outHeight ; cal_width = opt . outWidth ; } opt . inSampleSize = ( opt . outWidth ) // cal_width ; } opt . outHeight = cal_height ; opt . outWidth = cal_width ; opt . inSampleSize = opt . inSampleSize ; Logger . log ( ( ( ( ( ( "cal_height:<seq2seq4repair_space>" + cal_height ) + "==cal_width:" ) + cal_width ) + "==inSampleSize:" ) + ( opt . inSampleSize ) ) ) ; opt . inJustDecodeBounds = false ; return opt ; } }

Fix:
float width_divide_height = ( opt . outWidth ) // ( opt . outHeight ) ;
Buggy code:
public class AddExistedTaskAction extends PermissionAction { private static Log log = LogFactory . getLog ( AddExistedTaskAction . class ) ; @ Override public boolean isValidAction ( ) { } @ Override public boolean isXML ( ) { } @ Override public StringBuilder getResponse ( ActionMapping mapping , ActionForm form , HttpServletRequest request , HttpServletResponse response ) { AddExistedTaskAction . log . info ( "Add<seq2seq4repair_space>wild<seq2seq4repair_space>tasks<seq2seq4repair_space>in<seq2seq4repair_space>AddExistedTaskAction" ) ; IProject project = ( ( IProject ) ( SessionManager . getProject ( request ) ) ) ; IUserSession session = ( ( IUserSession ) ( request . getSession ( ) . getAttribute ( "UserSession" ) ) ) ; String [ ] selectedTaskIds = request . getParameterValues ( "selected" ) ; String sprintId = request . getParameter ( "sprintID" ) ; Long storyId = Long . parseLong ( request . getParameter ( "issueID" ) ) ; SprintBacklogHelper sprintBacklogHelper = new SprintBacklogHelper ( project , session , sprintId ) ; <START_BUG> sprintBacklogHelper . addExistingTask ( selectedTaskIds , storyId ) ; <END_BUG> return new StringBuilder ( "" ) ; } }

Fix:
sprintBacklogHelper . addExistingTasksToStory ( selectedTaskIds , storyId ) ;
Buggy code:
public abstract class ItemsList extends NbActivity implements DefaultFeedViewChangedListener , ReadFilterChangedListener , StoryOrderChangedListener , StateChangedListener { public static final String EXTRA_STATE = "currentIntelligenceState" ; public static final String EXTRA_BLURBLOG_USERNAME = "blurblogName" ; public static final String EXTRA_BLURBLOG_USERID = "blurblogId" ; public static final String EXTRA_BLURBLOG_USER_ICON = "userIcon" ; public static final String EXTRA_BLURBLOG_TITLE = "blurblogTitle" ; private static final String STORY_ORDER = "storyOrder" ; private static final String READ_FILTER = "readFilter" ; private static final String DEFAULT_FEED_VIEW = "defaultFeedView" ; public static final String BUNDLE_FEED_IDS = "feedIds" ; protected ItemListFragment itemListFragment ; protected FragmentManager fragmentManager ; protected int currentState ; private FeedSet fs ; protected boolean stopLoading = false ; @ Override protected void onCreate ( Bundle bundle ) { <START_BUG> this . fs = getFeedSet ( ) ; <END_BUG> requestWindowFeature ( FEATURE_PROGRESS ) ; requestWindowFeature ( FEATURE_INDETERMINATE_PROGRESS ) ; super . onCreate ( bundle ) ; setContentView ( activity_itemslist ) ; fragmentManager = getFragmentManager ( ) ; currentState = getIntent ( ) . getIntExtra ( ItemsList . EXTRA_STATE , 0 ) ; getActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; } protected abstract FeedSet createFeedSet ( ) { } public FeedSet getFeedSet ( ) { } protected void onResume ( ) { } public void triggerRefresh ( int desiredStoryCount ) { } public abstract void markItemListAsRead ( ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } protected abstract StoryOrder getStoryOrder ( ) { } protected abstract ReadFilter getReadFilter ( ) { } protected abstract DefaultFeedView getDefaultFeedView ( ) { } @ Override public void handleUpdate ( ) { } @ Override public void changedState ( int state ) { } @ Override public void storyOrderChanged ( StoryOrder newValue ) { } public abstract void updateStoryOrderPreference ( StoryOrder newValue ) { } @ Override public void readFilterChanged ( ReadFilter newValue ) { } protected abstract void updateReadFilterPreference ( ReadFilter newValue ) { } }

Fix:
this . fs = createFeedSet ( ) ;
Buggy code:
public class Node { private Node parent ; private Node leftChild ; private Node rightChild ; private int size ; private Data data ; private int location ; public Node ( int size ) throws SizeException { } public Node ( Node parent , int size , int locat ) { } public void setChildren ( Node left , Node right ) { } public void deleteChildren ( ) { } public int getLocation ( ) { } public void addData ( Data data ) { } public void deleteData ( ) { } public Data getData ( ) { } public Node getLeftChild ( ) { } public Node getRightChild ( ) { } public Node getParent ( ) { } public int getSize ( ) { } public boolean isEmpty ( ) { } public boolean mergeable ( ) { } public int getWasted ( ) { } @ Override public String toString ( ) { String returnString = "Chunk<seq2seq4repair_space>Size:<seq2seq4repair_space>" + ( size ) ; if ( ( data ) == null ) { returnString += "<seq2seq4repair_space>---<seq2seq4repair_space>empty<seq2seq4repair_space>---" ; } else { returnString += "<seq2seq4repair_space>" + ( data . toString ( ) ) ; } <START_BUG> return returnString ; <END_BUG> } }

Fix:
return ( returnString + "<seq2seq4repair_space>Location:<seq2seq4repair_space>" ) + ( location ) ;
Buggy code:
public class DeclarationOfAccessedFieldsPattern extends FieldReferencePattern { HashSet knownFields ; IJavaElement enclosingElement ; public DeclarationOfAccessedFieldsPattern ( IJavaElement enclosingElement ) { } protected void matchReportReference ( AstNode reference , IJavaElement element , int accuracy , MatchLocator locator ) throws CoreException { } private void reportDeclaration ( FieldBinding fieldBinding , MatchLocator locator ) throws CoreException { <START_BUG> if ( fieldBinding == ( LengthField ) ) <END_BUG> return ; ReferenceBinding declaringClass = fieldBinding . declaringClass ; IType type = locator . lookupType ( declaringClass ) ; if ( type == null ) return ; char [ ] bindingName = fieldBinding . name ; IField field = type . getField ( new String ( bindingName ) ) ; if ( this . knownFields . contains ( field ) ) return ; this . knownFields . add ( field ) ; IResource resource = type . getResource ( ) ; boolean isBinary = type . isBinary ( ) ; IBinaryType info = null ; if ( isBinary ) { if ( resource == null ) { resource = type . getJavaProject ( ) . getProject ( ) ; } info = locator . getBinaryInfo ( ( ( ClassFile ) ( type . getClassFile ( ) ) ) , resource ) ; locator . reportBinaryMatch ( resource , field , info , IJavaSearchResultCollector . EXACT_MATCH ) ; } else { TypeDeclaration typeDecl = ( ( SourceTypeBinding ) ( declaringClass ) ) . scope . referenceContext ; FieldDeclaration fieldDecl = null ; FieldDeclaration [ ] fieldDecls = typeDecl . fields ; for ( int i = 0 , length = fieldDecls . length ; i < length ; i ++ ) { if ( CharOperation . equals ( bindingName , fieldDecls [ i ] . name ) ) { fieldDecl = fieldDecls [ i ] ; break ; } } if ( fieldDecl != null ) { locator . report ( resource , fieldDecl . sourceStart , fieldDecl . sourceEnd , field , IJavaSearchResultCollector . EXACT_MATCH ) ; } } } }

Fix:
if ( fieldBinding == ( ArrayBinding . ArrayLength ) )
Buggy code:
class AppClientServerConfiguration { private AppClientServerConfiguration ( ) { } public static List < ModelNode > serverConfiguration ( final String filePath , final String deploymentName , final String globalModules , final String hostUrl , final List < String > parameters ) { } private static void webservices ( final List < ModelNode > nodes ) { } private static void appclient ( List < ModelNode > nodes , final String filePath , final String deploymentName , final String hostUrl , final List < String > parameters ) { } private static void naming ( List < ModelNode > nodes ) { } private static void ee ( List < ModelNode > nodes , final String globalModules ) { } private static void ejb3 ( List < ModelNode > nodes ) { } private static void security ( List < ModelNode > nodes ) { } private static void jacorb ( List < ModelNode > nodes ) { } private static void transactions ( List < ModelNode > nodes ) { } private static void socketBindings ( List < ModelNode > nodes ) { } private static void interfaces ( List < ModelNode > nodes ) { ModelNode add = new ModelNode ( ) ; add . get ( OP_ADDR ) . set ( new ModelNode ( ) . setEmptyList ( ) ) . add ( INTERFACE , "public" ) ; add . get ( OP ) . set ( ADD ) ; <START_BUG> add . get ( CRITERIA ) . get ( "inet-address" ) . set ( "127.0.0.1" ) ; <END_BUG> nodes . add ( add ) ; } private static void loadExtension ( List < ModelNode > nodes , String moduleName ) { } }

Fix:
add . get ( "inet-address" ) . set ( "127.0.0.1" ) ;
Buggy code:
public class Fragment < T > extends WebMarkupContainer < T > { private static final long serialVersionUID = 1L ; private String markupId ; private MarkupContainer markupProvider ; private transient MarkupFragment fragment ; public Fragment ( final MarkupContainer parent , final String id , final String markupId ) { } public Fragment ( final MarkupContainer parent , final String id , final String markupId , final IModel < T > model ) { } public Fragment ( final MarkupContainer parent , final String id , final String markupId , final MarkupContainer markupProvider ) { } public Fragment ( final MarkupContainer parent , final String id , final String markupId , final MarkupContainer markupProvider , final IModel < T > model ) { } private MarkupFragment getFragment ( ) { <START_BUG> MarkupFragment fragment = this . markupProvider . getAssociatedMarkupFragment ( false ) ; <END_BUG> if ( fragment == null ) { fragment = this . markupProvider . getMarkupFragment ( ) ; } fragment = fragment . getChildFragment ( markupId , true ) ; return fragment ; } public final String getFragmentMarkupId ( ) { } public final void setMarkupTagReferenceId ( final String markupId ) { } protected MarkupFragment getMarkupFragment ( final String id ) { } @ Override protected void onComponentTag ( final ComponentTag tag ) { } @ Override protected void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } private void renderFragment ( final MarkupStream providerMarkupStream , final ComponentTag openTag ) { } public final MarkupContainer getMarkupProvider ( ) { } }

Fix:
MarkupFragment fragment = this . markupProvider . getAssociatedMarkup ( false ) ;
Buggy code:
public class CheckForNewMessagesCommand extends FolderCommand { FolderCommandAdapter adapter ; IMAPFolder inboxFolder ; boolean needGUIUpdate ; public CheckForNewMessagesCommand ( DefaultCommandReference [ ] references ) { } public CheckForNewMessagesCommand ( FrameMediator frame , DefaultCommandReference [ ] references ) { } public void execute ( WorkerStatusController worker ) throws Exception { FolderCommandReference [ ] references = ( ( FolderCommandReference [ ] ) ( getReferences ( ) ) ) ; adapter = new FolderCommandAdapter ( references ) ; FolderCommandReference [ ] r = adapter . getSourceFolderReferences ( ) ; IMAPRootFolder srcFolder = ( ( IMAPRootFolder ) ( r [ 0 ] . getFolder ( ) ) ) ; ( ( StatusObservableImpl ) ( srcFolder . getObservable ( ) ) ) . setWorker ( worker ) ; inboxFolder = ( ( IMAPFolder ) ( srcFolder . findChildWithName ( "Inbox" , false ) ) ) ; int total = inboxFolder . getMessageFolderInfo ( ) . getExists ( ) ; int recent = inboxFolder . getMessageFolderInfo ( ) . getRecent ( ) ; int unseen = inboxFolder . getMessageFolderInfo ( ) . getUnseen ( ) ; <START_BUG> inboxFolder . getHeaderList ( ) ; <END_BUG> int newTotal = inboxFolder . getMessageFolderInfo ( ) . getExists ( ) ; int newRecent = inboxFolder . getMessageFolderInfo ( ) . getRecent ( ) ; int newUnseen = inboxFolder . getMessageFolderInfo ( ) . getUnseen ( ) ; if ( ( ( newRecent != recent ) || ( newTotal != total ) ) || ( newUnseen != unseen ) ) { needGUIUpdate = true ; ImapItem item = srcFolder . getAccountItem ( ) . getImapItem ( ) ; if ( ( newRecent != recent ) && ( item . getBoolean ( "enable_sound" ) ) ) { Toolkit kit = Toolkit . getDefaultToolkit ( ) ; kit . beep ( ) ; } } } public void updateGUI ( ) throws Exception { } }

Fix:
inboxFolder . synchronizeHeaderlist ( ) ;
Buggy code:
public class HandlerDisable implements OperationStepHandler { public static final HandlerDisable INSTANCE = new HandlerDisable ( ) ; public void execute ( OperationContext context , ModelNode operation ) { final PathAddress address = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final String name = address . getLastElement ( ) . getValue ( ) ; <START_BUG> if ( ( context . getType ( ) ) == ( Type . SERVER ) ) { <END_BUG> context . addStep ( new OperationStepHandler ( ) { public void execute ( final OperationContext context , ModelNode operation ) { final ServiceRegistry serviceRegistry = context . getServiceRegistry ( true ) ; final ServiceController < ? > controller = serviceRegistry . getService ( LogServices . handlerName ( name ) ) ; if ( controller != null ) { controller . addListener ( new org . jboss . msc . service . AbstractServiceListener < Object > ( ) { public void listenerAdded ( ServiceController < ? > serviceController ) { serviceController . setMode ( NEVER ) ; } public void serviceStopped ( ServiceController < ? > serviceController ) { context . completeStep ( ) ; } } ) ; } else { context . completeStep ( ) ; } } } , RUNTIME ) ; } context . completeStep ( ) ; } }

Fix:
if ( context . isNormalServer ( ) ) {
Buggy code:
public class GoDiagramToEdge implements TreeModelPrereqs { public String toString ( ) { <START_BUG> return Localizer . localize ( "Tree" , "Diagram->Edge" ) ; <END_BUG> } public Object getRoot ( ) { } public Object getChild ( Object parent , int index ) { } public int getChildCount ( Object parent ) { } public int getIndexOfChild ( Object parent , Object child ) { } public boolean isLeaf ( Object node ) { } public void valueForPathChanged ( TreePath path , Object newValue ) { } public void addTreeModelListener ( TreeModelListener l ) { } public void removeTreeModelListener ( TreeModelListener l ) { } public Vector getPrereqs ( ) { } public Vector getProvidedTypes ( ) { } }

Fix:
return Localizer . localize ( "Tree" , "misc.diagram.edge" ) ;
Buggy code:
public class JRTraceDebugTarget extends DebugElement implements IDebugTarget { public static final String JRTRACE_DEBUG_MODEL = "bytemam.debug.model" ; private String pid ; private IJRTraceVM machine ; private ILaunch launch ; private boolean isDisconnected = false ; private boolean isTerminated = false ; private JRTraceConsoleConnector JRTraceConsole ; IProcess process ; private JRTraceMarkerManager markerManager ; private IProject theProject ; public JRTraceDebugTarget ( IJRTraceVM vm , ILaunch launch , final IProject theProject , boolean uploadHelperOnConnect ) { } private void createConsole ( ) { } public IJRTraceVM getJRTraceMachine ( ) { } @ Override public IDebugTarget getDebugTarget ( ) { } @ Override public ILaunch getLaunch ( ) { } @ Override public String getModelIdentifier ( ) { } @ Override public boolean canTerminate ( ) { } @ Override public boolean isTerminated ( ) { } @ Override public void terminate ( ) throws DebugException { } @ Override public boolean canResume ( ) { } @ Override public boolean canSuspend ( ) { } @ Override public boolean isSuspended ( ) { } @ Override public void resume ( ) throws DebugException { } @ Override public void suspend ( ) throws DebugException { } @ Override public void breakpointAdded ( IBreakpoint breakpoint ) { } @ Override public void breakpointRemoved ( IBreakpoint breakpoint , IMarkerDelta delta ) { } @ Override public void breakpointChanged ( IBreakpoint breakpoint , IMarkerDelta delta ) { } @ Override public boolean canDisconnect ( ) { } @ Override public void disconnect ( ) throws DebugException { } @ Override public boolean isDisconnected ( ) { } @ Override public boolean supportsStorageRetrieval ( ) { } @ Override public IMemoryBlock getMemoryBlock ( long startAddress , long length ) throws DebugException { } @ Override public IProcess getProcess ( ) { } @ Override public IThread [ ] getThreads ( ) throws DebugException { } @ Override public boolean hasThreads ( ) throws DebugException { } @ Override public String getName ( ) throws DebugException { <START_BUG> return machine . getPID ( ) ; <END_BUG> } @ Override public boolean supportsBreakpoint ( IBreakpoint breakpoint ) { } public void installJar ( byte [ ] bytes ) { } public void runJava ( File jarFile , String theClassLoader , String className , String methodName ) { } private void disconnectAfterConnectionProblem ( ) { } public void installEngineX ( File jarFile ) { } public IProject getProject ( ) { } }

Fix:
return machine . toString ( ) ;
Buggy code:
public abstract class AbstractImageBuilder implements ICompilerRequestor { protected JavaBuilder javaBuilder ; protected State newState ; protected IContainer outputFolder ; protected IContainer [ ] sourceFolders ; protected BuildNotifier notifier ; protected boolean hasSeparateOutputFolder ; protected NameEnvironment nameEnvironment ; protected Compiler compiler ; protected WorkQueue workQueue ; protected ArrayList problemTypeLocations ; protected boolean compiledAllAtOnce ; private boolean inCompiler ; public static int MAX_AT_ONCE = 1000 ; protected AbstractImageBuilder ( JavaBuilder javaBuilder ) { } public void acceptResult ( CompilationResult result ) { } protected void cleanUp ( ) { } protected void compile ( String [ ] filenames , String [ ] initialTypeNames ) { } void compile ( SourceFile [ ] units , String [ ] initialTypeNames , String [ ] additionalFilenames ) { } protected void createErrorFor ( IResource resource , String message ) { } protected String extractTypeNameFrom ( String sourceLocation ) { for ( int j = 0 , k = sourceFolders . length ; j < k ; j ++ ) { <START_BUG> String folderLocation = ( sourceFolders [ j ] . getLocation ( ) . toString ( ) ) + '//' ; <END_BUG> if ( sourceLocation . startsWith ( folderLocation ) ) return sourceLocation . substring ( folderLocation . length ( ) , ( ( sourceLocation . length ( ) ) - 5 ) ) ; } return sourceLocation ; } protected void finishedWith ( String sourceLocation , CompilationResult result , char [ ] mainTypeName , ArrayList definedTypeNames , ArrayList duplicateTypeNames ) throws CoreException { } protected IContainer getOutputFolder ( IPath packagePath ) throws CoreException { } protected RuntimeException internalException ( CoreException t ) { } protected Compiler newCompiler ( ) { } protected IResource resourceForLocation ( String sourceLocation ) { } protected void storeProblemsFor ( IResource resource , IProblem [ ] problems ) throws CoreException { } protected void updateProblemsFor ( String sourceLocation , CompilationResult result ) throws CoreException { } protected char [ ] writeClassFile ( ClassFile classFile , boolean isSecondaryType ) throws CoreException { } protected boolean writeClassFileCheck ( IFile file , String fileName , byte [ ] bytes , boolean isSecondaryType ) throws CoreException { } }

Fix:
String folderLocation = sourceFolders [ j ] . getLocation ( ) . addTrailingSeparator ( ) . toString ( ) ;
Buggy code:
public class TestNRTReaderWithThreads extends LuceneTestCase { AtomicInteger seq = new AtomicInteger ( 1 ) ; public void testIndexing ( ) throws Exception { } public class RunThread extends Thread { IndexWriter writer ; volatile boolean run = true ; volatile Throwable ex ; int delCount = 0 ; int addCount = 0 ; int type ; final Random r = new Random ( random . nextLong ( ) ) ; public RunThread ( int type , IndexWriter writer ) { } @ Override public void run ( ) { try { while ( run ) { if ( ( type ) == 0 ) { int i = seq . addAndGet ( 1 ) ; <START_BUG> Document doc = TestIndexWriterReader . createDocument ( i , "index1" , 10 ) ; <END_BUG> writer . addDocument ( doc ) ; ( addCount ) ++ ; } else if ( ( type ) == 1 ) { IndexReader reader = writer . getReader ( ) ; int id = r . nextInt ( seq . intValue ( ) ) ; Term term = new Term ( "id" , Integer . toString ( id ) ) ; int count = TestIndexWriterReader . count ( term , reader ) ; writer . deleteDocuments ( term ) ; reader . close ( ) ; delCount += count ; } } } catch ( Throwable ex ) { ex . printStackTrace ( System . out ) ; this . ex = ex ; run = false ; } } } }

Fix:
Document doc = DocHelper . createDocument ( i , "index1" , 10 ) ;
Buggy code:
public class KeepCommand < T > extends EditCommand < T > { public KeepCommand ( final T object ) { } @ Override public void accept ( final CommandVisitor < T > visitor ) { <START_BUG> visitor . visitKeepCommand ( object ) ; <END_BUG> } }

Fix:
visitor . visitKeepCommand ( KeepCommand . getObject ( ) ) ;
Buggy code:
public class AllMembersSupplier extends ParameterSupplier { static class MethodParameterValue extends PotentialAssignment { private final Method fMethod ; private MethodParameterValue ( Method method ) { } @ Override public Object getValue ( ) throws CouldNotGenerateValueException { } @ Override public String getDescription ( ) throws CouldNotGenerateValueException { } } private final TestClass fClass ; public AllMembersSupplier ( TestClass type ) { } @ Override public List < PotentialAssignment > getValueSources ( ParameterSignature sig ) { } private void addMultiPointMethods ( List < PotentialAssignment > list ) { } private void addSinglePointMethods ( ParameterSignature sig , List < PotentialAssignment > list ) { } private void addFields ( ParameterSignature sig , List < PotentialAssignment > list ) { <START_BUG> for ( final Field field : fClass . getFields ( ) ) { <END_BUG> if ( Modifier . isStatic ( field . getModifiers ( ) ) ) { Class < ? > type = field . getType ( ) ; if ( ( sig . canAcceptArrayType ( type ) ) && ( ( field . getAnnotation ( DataPoints . class ) ) != null ) ) { addArrayValues ( field . getName ( ) , list , getStaticFieldValue ( field ) ) ; } else if ( sig . canAcceptType ( type ) ) { list . add ( PotentialAssignment . forValue ( field . getName ( ) , getStaticFieldValue ( field ) ) ) ; } } } } private void addArrayValues ( String name , List < PotentialAssignment > list , Object array ) { } private Object getStaticFieldValue ( final Field field ) { } }

Fix:
for ( final Field field : fClass . getJavaClass ( ) . getFields ( ) ) {
Buggy code:
public class SummaryReport extends AbstractVisualizer implements Clearable { private final String [ ] COLUMNS = new String [ ] { JMeterUtils . getResString ( "sampler_label" ) , JMeterUtils . getResString ( "aggregate_report_count" ) , JMeterUtils . getResString ( "average" ) , JMeterUtils . getResString ( "aggregate_report_min" ) , JMeterUtils . getResString ( "aggregate_report_max" ) , JMeterUtils . getResString ( "aggregate_report_error%" ) , JMeterUtils . getResString ( "aggregate_report_rate" ) , JMeterUtils . getResString ( "aggregate_report_bandwidth" ) , JMeterUtils . getResString ( "average_bytes" ) } ; private final String TOTAL_ROW_LABEL = JMeterUtils . getResString ( "aggregate_report_total_label" ) ; protected JTable myJTable ; protected JScrollPane myScrollPane ; private transient ObjectTableModel model ; Map tableRows = Collections . synchronizedMap ( new HashMap ( ) ) ; private static final TableCellRenderer [ ] RENDERERS = new TableCellRenderer [ ] { null , null , null , null , null , new NumberRenderer ( "#0.00%" ) , new RateRenderer ( "#.0" ) , new NumberRenderer ( "#0.00" ) , new NumberRenderer ( "#.0" ) } ; public SummaryReport ( ) { } public static boolean testFunctors ( ) { SummaryReport instance = new SummaryReport ( ) ; <START_BUG> return instance . model . checkFunctors ( null ) ; <END_BUG> } public String getLabelResource ( ) { } public void add ( SampleResult res ) { } public void clear ( ) { } public TestElement createTestElement ( ) { } private void init ( ) { } }

Fix:
return instance . model . checkFunctors ( null , instance . getClass ( ) ) ;