Buggy code:
public class EvaluationMain { private static final String [ ] systems = new String [ ] { "eclipse-3.1" , "aspectj-1.5.3" , "swt-3.1" , "bookkeeper-4.1.0" , "derby-10.9.1.0" , "lucene-4.0" , "mahout-0.8" , "openjpa-2.2.0" , "pig-0.11.1" , "solr-4.4.0" , "tika-1.3" , "zookeeper-3.4.5" } ; public static void main ( String [ ] args ) throws IOException { ArgumentParser argumentParser = EvaluationMain . createArgumentParser ( ) ; Namespace arguments ; try { arguments = argumentParser . parseArgs ( args ) ; } catch ( ArgumentParserException e ) { argumentParser . handleError ( e ) ; return ; } Path dataPath = Paths . get ( arguments . getString ( "data_folder" ) ) ; Path indexPath = Paths . get ( arguments . getString ( "index_folder" ) ) ; Path outputFilePath = Paths . get ( arguments . getString ( "output_file" ) ) ; Path bugReportsPath = dataPath . resolve ( "processed-bug-reports" ) ; float alpha = arguments . getFloat ( "alpha" ) ; boolean fullAnalysis = arguments . getBoolean ( "full_analysis" ) ; if ( ! ( Files . exists ( dataPath ) ) ) { System . err . println ( String . format ( "Data<seq2seq4repair_space>folder<seq2seq4repair_space>'%s'<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist" , dataPath . toAbsolutePath ( ) . toString ( ) ) ) ; return ; } if ( ! ( Files . isDirectory ( dataPath ) ) ) { System . err . println ( String . format ( "Data<seq2seq4repair_space>folder<seq2seq4repair_space>'%s'<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>directory" , dataPath . toAbsolutePath ( ) . toString ( ) ) ) ; return ; } if ( ( ! ( Files . exists ( bugReportsPath ) ) ) || ( ! ( Files . isDirectory ( bugReportsPath ) ) ) ) { System . err . println ( String . format ( ( "Data<seq2seq4repair_space>folder<seq2seq4repair_space>'%s'<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist.<seq2seq4repair_space>This<seq2seq4repair_space>directory<seq2seq4repair_space>" + ( "should<seq2seq4repair_space>exist<seq2seq4repair_space>and<seq2seq4repair_space>contain<seq2seq4repair_space>the<seq2seq4repair_space>.json<seq2seq4repair_space>files<seq2seq4repair_space>corresponding<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>processed<seq2seq4repair_space>" + "bug<seq2seq4repair_space>reports<seq2seq4repair_space>used<seq2seq4repair_space>for<seq2seq4repair_space>evaluation." ) ) , bugReportsPath . toAbsolutePath ( ) . toString ( ) ) ) ; return ; } if ( Files . exists ( outputFilePath ) ) { System . err . println ( ( "Output<seq2seq4repair_space>file<seq2seq4repair_space>already<seq2seq4repair_space>exists,<seq2seq4repair_space>please<seq2seq4repair_space>choose<seq2seq4repair_space>a<seq2seq4repair_space>different<seq2seq4repair_space>output" + "file<seq2seq4repair_space>name<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>option<seq2seq4repair_space>-o" ) ) ; return ; } PrintWriter outputWriter = new PrintWriter ( outputFilePath . toFile ( ) ) ; EvaluationMain . buildIndexes ( indexPath , dataPath , fullAnalysis ) ; String evaluationType ; if ( fullAnalysis ) { evaluationType = "full" ; } else { evaluationType = "short" ; } System . out . println ( String . format ( "Beginning<seq2seq4repair_space>%s<seq2seq4repair_space>analysis" , evaluationType ) ) ; long startTime = System . currentTimeMillis ( ) ; outputWriter . println ( ( "Method;System;Alpha;%<seq2seq4repair_space>Top<seq2seq4repair_space>1;%<seq2seq4repair_space>Top<seq2seq4repair_space>5;%<seq2seq4repair_space>Top<seq2seq4repair_space>10;MRR;MAP;" + "Average<seq2seq4repair_space>Precision;Average<seq2seq4repair_space>Recall;Amount<seq2seq4repair_space>of<seq2seq4repair_space>Queries" ) ) ; for ( String system : EvaluationMain . systems ) { if ( ( ! fullAnalysis ) && ( system . startsWith ( "eclipse" ) ) ) { continue ; } String bugReportsFileName = system + ".json" ; if ( ! ( Files . exists ( bugReportsPath . resolve ( bugReportsFileName ) ) ) ) { System . err . println ( ( ( "Bug<seq2seq4repair_space>reports<seq2seq4repair_space>for<seq2seq4repair_space>\"" + system ) + "\"<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>data<seq2seq4repair_space>folder" ) ) ; continue ; } BugLocatorEvaluator bugLocatorEvaluator = new BugLocatorEvaluator ( system , UseField . TITLE_AND_DESCRIPTION , indexPath , dataPath , alpha ) ; BaselineEvaluator baselineEvaluator = new BaselineEvaluator ( system , UseField . TITLE_AND_DESCRIPTION , indexPath , dataPath ) ; EvaluationResult bugLocatorResult = bugLocatorEvaluator . evaluate ( ) ; EvaluationResult baselineResult = baselineEvaluator . evaluate ( ) ; outputWriter . println ( String . join ( ";" , Arrays . < CharSequence > asList ( "BugLocator" , system , String . valueOf ( alpha ) , bugLocatorResult . getCSVLine ( ) ) ) ) ; outputWriter . println ( String . join ( ";" , Arrays . < CharSequence > asList ( "Baseline<seq2seq4repair_space>(VSM)" , system , "-" , baselineResult . getCSVLine ( ) ) ) ) ; } outputWriter . close ( ) ; long finishTime = System . currentTimeMillis ( ) ; long runTime = finishTime - startTime ; float minutes = runTime // 60000.0F ; int minutesWhole = ( ( int ) ( Math . floor ( minutes ) ) ) ; <START_BUG> float seconds = ( minutes - minutesWhole ) * 1000.0F ; <END_BUG> int secondsWhole = ( ( int ) ( Math . floor ( seconds ) ) ) ; System . out . println ( String . format ( "Finished<seq2seq4repair_space>analysis<seq2seq4repair_space>in<seq2seq4repair_space>%d<seq2seq4repair_space>minutes<seq2seq4repair_space>and<seq2seq4repair_space>%d<seq2seq4repair_space>seconds" , minutesWhole , secondsWhole ) ) ; } private static void buildIndexes ( Path indexPath , Path dataPath , boolean fullAnalysis ) throws IOException { } private static void buildIndex ( Path originPath , Path destPath , BaseIndexBuilder indexBuilder ) throws IOException { } private static ArgumentParser createArgumentParser ( ) { } }

Fix:
float seconds = ( minutes - minutesWhole ) * 60.0F ;