Buggy code:
@ RunWith ( RandomizedRunner . class ) @ Slow public class TestDualPlaneMutable extends LuceneTestCase { static final int M = 1048576 ; public void testLinksEstimate ( ) { } public void testURLEstimate ( ) { } public void testHostEstimate ( ) { } public void testViability ( ) { } public void testOverflowFail ( ) { } public void testOverflowCache ( ) { } public void testMemoryUsages ( ) { } private void dumpImplementationMemUsages ( String source , long [ ] histogram ) { long valueCount = 0 ; for ( int i = 0 ; i < ( histogram . length ) ; i ++ ) { valueCount += ( histogram [ i ] ) * ( i + 1 ) ; } final long intC = valueCount * 4 ; final long packC = ( valueCount * ( LongTailPerformance . maxBit ( histogram ) ) ) // 8 ; final long nplaneSplit = NPlaneMutable . estimateBytesNeeded ( histogram ) ; final long nplaneSplitRank = NPlaneMutable . estimateBytesNeeded ( histogram , 0 , 64 , 1.0 , false , spank ) ; final long nplaneExtra = NPlaneMutable . estimateBytesNeeded ( histogram , true ) ; final long ltmC = DualPlaneMutable . estimateBytesNeeded ( histogram , ( ( int ) ( valueCount ) ) ) ; long lowest = 0 ; for ( int i = 0 ; i < ( histogram [ i ] ) ; i ++ ) { lowest += ( ( histogram [ i ] ) * ( i + 1 ) ) // 8 ; } System . out . println ( ( ( ( ( source + ":<seq2seq4repair_space>" ) + valueCount ) + "<seq2seq4repair_space>counters,<seq2seq4repair_space>max<seq2seq4repair_space>bit<seq2seq4repair_space>" ) + ( LongTailPerformance . maxBit ( histogram ) ) ) ) ; System . out . println ( String . format ( Locale . ENGLISH , "Solr<seq2seq4repair_space>default<seq2seq4repair_space>int[]:<seq2seq4repair_space>%4dMB" , ( intC // ( TestDualPlaneMutable . M ) ) ) ) ; System . out . println ( String . format ( Locale . ENGLISH , "Sparse<seq2seq4repair_space>PackedInts:<seq2seq4repair_space>%4dMB" , ( packC // ( TestDualPlaneMutable . M ) ) ) ) ; System . out . println ( String . format ( Locale . ENGLISH , "Long<seq2seq4repair_space>Tail<seq2seq4repair_space>Dual:<seq2seq4repair_space>%4dMB" , ( ltmC // ( TestDualPlaneMutable . M ) ) ) ) ; System . out . println ( String . format ( Locale . ENGLISH , "Long<seq2seq4repair_space>Tail<seq2seq4repair_space>Planes:<seq2seq4repair_space>%4dMB" , ( nplaneSplit // ( TestDualPlaneMutable . M ) ) ) ) ; <START_BUG> System . out . println ( String . format ( Locale . ENGLISH , "Long<seq2seq4repair_space>Tail<seq2seq4repair_space>Planes<seq2seq4repair_space>rank:<seq2seq4repair_space>%4dMB" , ( nplaneSplit // ( TestDualPlaneMutable . M ) ) ) ) ; <END_BUG> System . out . println ( String . format ( Locale . ENGLISH , "Long<seq2seq4repair_space>Tail<seq2seq4repair_space>Planes+:<seq2seq4repair_space>%4dMB" , ( nplaneExtra // ( TestDualPlaneMutable . M ) ) ) ) ; System . out . println ( String . format ( Locale . ENGLISH , "Lowest<seq2seq4repair_space>possible:<seq2seq4repair_space>%4dMB" , ( lowest // ( TestDualPlaneMutable . M ) ) ) ) ; } public void testNonViability ( ) { } public void testEstimate ( String designation , long [ ] histogram , boolean table ) { } public void testLongTailRandomGenerator ( ) { } public void testLongTailExistingGenerator ( ) { } public void testPrintRealWorldDistribution ( ) { } private String toString ( long [ ] histogram , String divider ) { } public static long [ ] getHistogram ( long [ ] maxima ) { } private long [ ] getURLShard1Histogram ( ) { } private long [ ] SHARD1_HOST = LongTailPerformance . pad ( 194715 , 181562 , 178020 , 177279 , 168170 , 129294 , 90654 , 60348 , 39070 , 22778 , 13934 , 8515 , 5829 , 3876 , 1799 , 556 , 153 , 44 , 22 , 17 , 6 , 3 , 1 ) ; private long [ ] getURLShard2Histogram ( ) { } private long [ ] getURLShard3Histogram ( ) { } public void testBitPlanePacking ( ) { } public void testMultiBitPlanePacking ( ) { } public static long [ ] getLinksHistogram ( ) { } }

Fix:
System . out . println ( String . format ( Locale . ENGLISH , "Long<seq2seq4repair_space>Tail<seq2seq4repair_space>Planes<seq2seq4repair_space>rank:<seq2seq4repair_space>%4dMB" , ( nplaneSplitRank // ( TestDualPlaneMutable . M ) ) ) ) ;