Buggy code:
public class Installer { private static final String RESOURCE_URL = "https:////github.com//downloads//romanzenka//swift//integration-resources.zip" ; private static final String RESOURCE_MD5 = "4a96b0517fa528234f0e630d63c64653" ; private static final long RESOURCE_LENGTH = 33578126 ; private static final String ROOT = "integration-resources" ; private static Date lastChecked = null ; private static final String UNKNOWN_INSTALL_ACTION = "Unknown<seq2seq4repair_space>install<seq2seq4repair_space>action<seq2seq4repair_space>{0}" ; public enum Action { INSTALL , UNINSTALL ; } private static final List < String > EXTRACT_MSN_FILES = Arrays . asList ( "//extract_msn//extract_msn.exe" , "//extract_msn//Fileio.dll" , "//extract_msn//Fregistry.dll" , "//extract_msn//MFC42U.DLL" , "//extract_msn//MSVCP60.DLL" , "//extract_msn//readme.txt" , "//extract_msn//UnifiedFile.dll" ) ; private static final List < String > OMSSA_LINUX = Arrays . asList ( "!//omssa//linux//omssacl" , "//omssa//linux//mods.xml" , "!//omssa//linux//mgf2omssa.pl" ) ; private static final List < String > OMSSA_WINDOWS = Arrays . asList ( "//omssa//windows//omssacl.exe" , "//omssa//windows//mods.xml" , "//omssa//windows//msvcp80.dll" , "//omssa//windows//msvcr80.dll" , "//omssa//windows//OMSSA.xsd" ) ; private static final List < String > FORMATDB_LINUX = Arrays . asList ( "!//formatdb//linux//formatdb" ) ; private static final List < String > FORMATDB_WINDOWS = Arrays . asList ( "//formatdb//windows//formatdb.exe" ) ; private static final List < String > TANDEM_LINUX = Arrays . asList ( "!//tandem//tandem-linux-10-12-01-1//bin//tandem.exe" ) ; private static final List < String > TANDEM_WINDOWS = Arrays . asList ( "//tandem//tandem-win32-10-12-01-1//bin//tandem.exe" ) ; private static final List < String > MSMSEVAL_WINDOWS = Arrays . asList ( "//win//cygexpat-0.dll" , "//win//cygwin1.dll" , "//win//msmsEval.exe" ) ; private static final List < String > MSMSEVAL_LINUX = Arrays . asList ( "//linux_x86_64//msmsEval" ) ; private static final String MYRIMATCH_EXE_WINDOWS = "myrimatch.exe" ; private static final String MYRIMATCH_EXE_LINUX = "myrimatch" ; private static final List < String > MYRIMATCH_WINDOWS = Arrays . asList ( "agtsampleinforw.dll" , "BaseCommon.dll" , "BaseDataAccess.dll" , "BaseError.dll" , "BaseTof.dll" , "BDal.CXt.Lc.dll" , "BDal.CXt.Lc.Factory.dll" , "BDal.CXt.Lc.Interfaces.dll" , "BDal.CXt.Lc.UntU2.dll" , "boost_date_time-vc80-mt-1_33_1-BDAL_20070424.dll" , "boost_regex-vc80-mt-1_33_1-BDAL_20070424.dll" , "boost_thread-vc80-mt-1_33_1-BDAL_20070424.dll" , "Clearcore2.Data.AnalystDataProvider.dll" , "Clearcore2.Data.CommonInterfaces.dll" , "Clearcore2.Data.dll" , "Clearcore2.Data.WiffReader.dll" , "Clearcore2.InternalRawXYProcessing.dll" , "Clearcore2.ProjectUtilities.dll" , "Clearcore2.StructuredStorage.dll" , "Clearcore2.Utility.dll" , "CompassXtractMS.dll" , "EULA.MHDAC" , "EULA.MSFileReader" , "fileio.dll" , "FlexVariableTable.xml" , "fregistry.dll" , "HSReadWrite.dll" , "ICRVariableTable.xml" , "Interop.DataExplorer.dll" , "Interop.EDAL.dll" , "Interop.EDAL.SxS.manifest" , "Interop.HSREADWRITELib.dll" , "Interop.HSREADWRITELib.SxS.manifest" , "libfftw3-3.dll" , "libfftw3f-3.dll" , "MassLynxRaw.dll" , "MassSpecDataReader.dll" , "MSFileReader.XRawfile2.dll" , "MSFileReader.XRawfile2.SxS.manifest" , Installer . MYRIMATCH_EXE_WINDOWS , "NTB-vc80-mt-1_5_97.dll" ) ; private static final List < String > MYRIMATCH_LINUX = Arrays . asList ( ( "!//myrimatch_2_1_87//linux//" + ( Installer . MYRIMATCH_EXE_LINUX ) ) ) ; private static final String WRAPPER_SCRIPT = "unixXvfbWrapper.sh" ; private static final List < String > UNIX_XVFB_WRAPPER = Arrays . asList ( ( "!//util//" + ( Installer . WRAPPER_SCRIPT ) ) ) ; private static final List < String > FASTA_TEST = Arrays . asList ( "//test_in.fasta" , "//test_in.fasta.gz" ) ; private static final List < String > FASTA_YEAST = Arrays . asList ( "//SprotYeast080226A.fasta" ) ; private static final List < String > MGF_TEST = Arrays . asList ( "//test.mgf" ) ; private static final List < String > RAW_FILES = Arrays . asList ( "//test.RAW" ) ; private static final int EXECUTABLE = 493 ; private static final String DIGEST_INSTANCE = "MD5" ; private static File installList ( File folder , String defaultFolder , Collection < String > files ) { } private static File installList ( File folder , Collection < String > files , ZipFile zipFile ) { } private static File folderOrDefault ( File folder , String defaultFolder ) { } private static void uninstallList ( File folder , Collection < String > files ) { } private static File processList ( File folder , String defaultFolder , Collection < String > files , Installer . Action action ) { } public static File extractMsn ( File folder , Installer . Action action ) { } public static File omssa ( File folder , Installer . Action action ) { } public static File tandem ( File folder , Installer . Action action ) { } public static File myrimatch ( File folder , Installer . Action action ) { } public static File msmsEval ( File folder , Installer . Action action ) { } public static File formatDb ( File folder , Installer . Action action ) { } public static File xvfbWrapper ( File folder , Installer . Action action ) { } public static File testFastaFiles ( File folder , Installer . Action action ) { } public static File yeastFastaFiles ( File folder , Installer . Action action ) { } public static File mgfFiles ( File folder , Installer . Action action ) { } public static File rawFiles ( File folder , Installer . Action action ) { } public static byte [ ] checksum ( File file ) { } public static File getIntegrationArchive ( ) { File resource = new File ( FileUtilities . getDefaultTempDirectory ( ) , ( ( "integration-" + ( Installer . RESOURCE_MD5 ) ) + ".zip" ) ) ; if ( ( Installer . lastChecked ) == null ) { if ( ! ( resource . exists ( ) ) ) { HttpClientUtility . downloadUrlHttps ( Installer . RESOURCE_URL , resource ) ; } final long actualLength = resource . length ( ) ; if ( ( Installer . RESOURCE_LENGTH ) != actualLength ) { <START_BUG> throw new MprcException ( MessageFormat . format ( "The<seq2seq4repair_space>downloaded<seq2seq4repair_space>integration<seq2seq4repair_space>file<seq2seq4repair_space>[{0}]<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>the<seq2seq4repair_space>expected<seq2seq4repair_space>size:<seq2seq4repair_space>expected<seq2seq4repair_space>{2},<seq2seq4repair_space>got<seq2seq4repair_space>{3}<seq2seq4repair_space>bytes" , resource . getAbsolutePath ( ) , Installer . RESOURCE_LENGTH , actualLength ) ) ; <END_BUG> } final String checksum = StringUtilities . toHex ( Installer . checksum ( resource ) , "" ) ; if ( ! ( Installer . RESOURCE_MD5 . equals ( checksum ) ) ) { throw new MprcException ( MessageFormat . format ( "The<seq2seq4repair_space>downloaded<seq2seq4repair_space>integration<seq2seq4repair_space>file<seq2seq4repair_space>[{0}]<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>the<seq2seq4repair_space>expected<seq2seq4repair_space>{1}<seq2seq4repair_space>checksum<seq2seq4repair_space>{2}" , resource . getAbsolutePath ( ) , Installer . DIGEST_INSTANCE , Installer . RESOURCE_MD5 ) ) ; } Installer . lastChecked = new Date ( ) ; } return resource ; } private static List < String > getTandemFiles ( ) { } private static File processSingleFile ( File folder , String defaultFolder , List < String > files , String mainFile , Installer . Action action ) { } }

Fix:
throw new MprcException ( MessageFormat . format ( "The<seq2seq4repair_space>downloaded<seq2seq4repair_space>integration<seq2seq4repair_space>file<seq2seq4repair_space>[{0}]<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>the<seq2seq4repair_space>expected<seq2seq4repair_space>size:<seq2seq4repair_space>expected<seq2seq4repair_space>{1},<seq2seq4repair_space>got<seq2seq4repair_space>{2}<seq2seq4repair_space>bytes" , resource . getAbsolutePath ( ) , Installer . RESOURCE_LENGTH , actualLength ) ) ;