Buggy code:
vectorGlobal "Z([A-Z])\\[([0-9])\\]" , "Z$1$2" ) ; } if ( ( ( replace . contains ( "C[" ) ) || ( replace . contains ( "K[" ) ) ) && ( altArray ) ) { StringBuffer sb = new StringBuffer ( ) ; Pattern p = Pattern . compile ( "([C,<seq2seq4repair_space>K])\\[([0-9]+)\\]" ) ; Matcher m = p . matcher ( replace ) ; while ( m . find ( ) ) { int index = Integer . parseInt ( m . group ( 2 ) ) ; m . appendReplacement ( sb , ( ( ( "$1[" + ( index // 4 ) ) + "].s" ) + ( index % 4 ) ) ) ; } m . appendTail ( sb ) ; replace = sb . toString ( ) ; } source += ( replace . replaceAll ( "Z" , DiabloMiner . UPPER [ y ] ) . replaceAll ( "z" , DiabloMiner . LOWER [ y ] ) ) + "\n" ; } } else if ( sourceLine . contains ( "__global" ) ) { if ( ( ( vectors [ 0 ] ) > 1 ) && ( ! ( vstore ) ) ) source += ( sourceLine . replaceAll ( "uint" , ( "uint" + ( vectors [ 0 ] ) ) ) ) + "\n" ; else source += sourceLine + "\n" ; } else if ( ( ( sourceLine . contains ( "C[16]" ) ) || ( sourceLine . contains ( "K[64]" ) ) ) && ( altArray ) ) { source += ( sourceLine . replace ( "uint" , "uint4" ) . replace ( "16" , "4" ) . replace ( "64" , "16" ) ) + "\n" ; int y = 1 ; while ( ! ( sourceLines [ ( x + y ) ] . contains ( "}" ) ) ) { sourceLines [ ( x + y ) ] = sourceLines [ ( x + y ) ] . replace ( "<seq2seq4repair_space>" , "<seq2seq4repair_space>(uint4)(" ) . replaceAll ( ",$" , ")," ) ; y ++ ; } sourceLines [ ( ( x + y ) - 1 ) ] += ")" ; } else { source += sourceLine + "\n" ; } } if ( line . hasOption ( "ds" ) ) { System . out . println ( ( "\n---\n" + ( source ) ) ) ; throw new DiabloMiner . DiabloMinerFatalException ( "Debug<seq2seq4repair_space>kernel<seq2seq4repair_space>source<seq2seq4repair_space>output,<seq2seq4repair_space>quitting" ) ; } targetFPSBasis = 1000.0 // ( ( targetFPS ) * ( DiabloMiner . EXECUTION_TOTAL ) ) ; info ( "Started" ) ; StringBuilder list = new StringBuilder ( networkStates [ 0 ] . queryUrl . toString ( ) ) ; if ( ! ( donate ) ) { for ( int i = 1 ; i < ( networkStatesCount ) ; i ++ ) list . append ( ( ",<seq2seq4repair_space>" + ( networkStates [ i ] . queryUrl ) ) ) ; } else { for ( int i = 1 ; i < ( ( networkStatesCount ) - 1 ) ; i ++ ) list . append ( ( ",<seq2seq4repair_space>" + ( networkStates [ i ] . queryUrl ) ) ) ; } info ( ( "Connecting<seq2seq4repair_space>to:<seq2seq4repair_space>" + list ) ) ; List < CLPlatform > platforms = null ; try { CL . create ( ) ; platforms = CLPlatform . getPlatforms ( ) ; } catch ( Exception e ) { throw new DiabloMiner . DiabloMinerFatalException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>initialize<seq2seq4repair_space>OpenCL,<seq2seq4repair_space>make<seq2seq4repair_space>sure<seq2seq4repair_space>your<seq2seq4repair_space>environment<seq2seq4repair_space>is<seq2seq4repair_space>setup<seq2seq4repair_space>correctly" ) ; } if ( ( platforms == null ) || ( platforms . isEmpty ( ) ) ) throw new DiabloMiner . DiabloMinerFatalException ( "No<seq2seq4repair_space>OpenCL<seq2seq4repair_space>platforms<seq2seq4repair_space>found" ) ; int count = 1 ; int platformCount = 0 ; for ( CLPlatform platform : platforms ) { info ( ( ( ( "Using<seq2seq4repair_space>" + ( platform . getInfoString ( CL_PLATFORM_NAME ) . trim ( ) ) ) + "<seq2seq4repair_space>" ) + ( platform . getInfoString ( CL_PLATFORM_VERSION ) ) ) ) ; List < CLDevice > devices = platform . getDevices ( ( ( CL10 . CL_DEVICE_TYPE_GPU ) | ( CL10 . CL_DEVICE_TYPE_ACCELERATOR ) ) ) ; if ( ( devices == null ) || ( devices . isEmpty ( ) ) ) error ( ( ( "OpenCL<seq2seq4repair_space>platform<seq2seq4repair_space>" + ( platform . getInfoString ( CL_PLATFORM_NAME ) . trim ( ) ) ) + "<seq2seq4repair_space>contains<seq2seq4repair_space>no<seq2seq4repair_space>devices" ) ) ; if ( devices != null ) { for ( CLDevice device : devices ) { if ( ( ( ( enabledDevices ) == null ) || ( enabledDevices . contains ( ( ( platformCount + "." ) + count ) ) ) ) || ( enabledDevices . contains ( Integer . toString ( count ) ) ) ) deviceStates . add ( this . new DeviceState ( platform , device , count ) ) ; count ++ ; } } platformCount ++ ; } CL10 . clUnloadCompiler ( ) ; deviceStatesCount = deviceStates . size ( ) ; if ( ( deviceStatesCount ) == 0 ) throw new DiabloMiner . DiabloMinerFatalException ( "No<seq2seq4repair_space>OpenCL<seq2seq4repair_space>devices<seq2seq4repair_space>found" ) ; long previousHashCount = 0 ; double previousAdjustedHashCount = 0.0 ; long previousAdjustedStartTime = startTime = ( getNow ( ) ) - 1 ; StringBuilder hashMeter = new StringBuilder ( 80 ) ; Formatter hashMeterFormatter = new Formatter ( hashMeter ) ; while ( running . get ( ) ) { for ( int i = 0 ; i < ( deviceStatesCount ) ; i ++ ) deviceStates . get ( i ) . checkDevice ( ) ; long now = getNow ( ) ; long currentHashCount = hashCount . get ( ) ; double adjustedHashCount = ( ( double ) ( currentHashCount - previousHashCount ) ) // ( ( double ) ( now - previousAdjustedStartTime ) ) ; double hashLongCount = ( ( ( double ) ( currentHashCount ) ) // ( ( double ) ( now - ( startTime ) ) ) ) // 1000.0 ; if ( ( now - ( startTime ) ) > ( ( DiabloMiner . TIME_OFFSET ) * 2 ) ) { double averageHashCount = ( ( ( double ) ( adjustedHashCount + previousAdjustedHashCount ) ) // 2.0 ) // 1000.0 ; hashMeter . setLength ( 0 ) ; if ( ! ( debug ) ) { hashMeterFormatter . format ( "\rmhash:<seq2seq4repair_space>%.1f//%.1f<seq2seq4repair_space>|<seq2seq4repair_space>accept:<seq2seq4repair_space>%d<seq2seq4repair_space>|<seq2seq4repair_space>reject:<seq2seq4repair_space>%d<seq2seq4repair_space>|<seq2seq4repair_space>hw<seq2seq4repair_space>error:<seq2seq4repair_space>%d" , averageHashCount , hashLongCount , currentBlocks . get ( ) , currentRejects . get ( ) , currentHWErrors . get ( ) ) ; } else { <START_BUG> hashMeterFormatter . format ( "\rmhash:<seq2seq4repair_space>%.1f//%.1f<seq2seq4repair_space>|<seq2seq4repair_space>a//r//hwe:<seq2seq4repair_space>%d//%d//%d<seq2seq4repair_space>|<seq2seq4repair_space>ghash:<seq2seq4repair_space>" , averageHashCount , hashLongCount , currentBlocks . get ( ) , currentRejects . get ( ) , currentHWErrors . get ( ) ) ; <END_BUG>

Fix:
hashMeterFormatter . format ( "\rmh:<seq2seq4repair_space>%.1f//%.1f<seq2seq4repair_space>|<seq2seq4repair_space>a//r//hwe:<seq2seq4repair_space>%d//%d//%d<seq2seq4repair_space>|<seq2seq4repair_space>gh:<seq2seq4repair_space>" , averageHashCount , hashLongCount , currentBlocks . get ( ) , currentRejects . get ( ) , currentHWErrors . get ( ) ) ;