Buggy code:
public final class CredentialsProviderCLI { private static final String ESGF_NODES_PROP = "getcredentials.properties" ; public static void main ( final String [ ] args ) throws Exception { CredentialsProvider credentialsProvider = CredentialsProvider . getInstance ( ) ; String esgPath = credentialsProvider . getCredentialsDirectory ( ) ; <START_BUG> final String doc = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "esgf-getcredentials.\n" + ( ( ( ( ( ( ( ( ( ( "\n" + "Usage:\n" ) + "<seq2seq4repair_space>esgf-getcredentials\n" ) + "<seq2seq4repair_space>esgf-getcredentials<seq2seq4repair_space>(-o<seq2seq4repair_space><openid><seq2seq4repair_space>|<seq2seq4repair_space>--openid<seq2seq4repair_space><openid>)<seq2seq4repair_space>[options]\n" ) + "<seq2seq4repair_space>esgf-getcredentials<seq2seq4repair_space>(-h<seq2seq4repair_space>|<seq2seq4repair_space>--help)\n" ) + "<seq2seq4repair_space>esgf-getcredentials<seq2seq4repair_space>--version\n" ) + "Options:\n" ) + "<seq2seq4repair_space>-o<seq2seq4repair_space><openid><seq2seq4repair_space>--openid<seq2seq4repair_space><openid><seq2seq4repair_space>OpenID<seq2seq4repair_space>endpoint<seq2seq4repair_space>from<seq2seq4repair_space>where<seq2seq4repair_space>myproxy<seq2seq4repair_space>information<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>gathered.\n" ) + "<seq2seq4repair_space>-p<seq2seq4repair_space>--password<seq2seq4repair_space><password><seq2seq4repair_space>OpenID<seq2seq4repair_space>passphrase.\n" ) + "<seq2seq4repair_space>--output<seq2seq4repair_space><path><seq2seq4repair_space>Path<seq2seq4repair_space>of<seq2seq4repair_space>folder<seq2seq4repair_space>where<seq2seq4repair_space>the<seq2seq4repair_space>retrieved<seq2seq4repair_space>certificates<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>stored" ) + "[default:<seq2seq4repair_space>" ) ) + esgPath ) + "].\n" ) + "<seq2seq4repair_space>-w<seq2seq4repair_space>--writeall<seq2seq4repair_space>Generate<seq2seq4repair_space>all<seq2seq4repair_space>credentials<seq2seq4repair_space>files.<seq2seq4repair_space>The<seq2seq4repair_space>files<seq2seq4repair_space>generated<seq2seq4repair_space>are<seq2seq4repair_space>the<seq2seq4repair_space>same" ) + "<seq2seq4repair_space>files<seq2seq4repair_space>generated<seq2seq4repair_space>with<seq2seq4repair_space>opts:<seq2seq4repair_space>--credentials<seq2seq4repair_space>--cacertspem<seq2seq4repair_space>--cacertsjks<seq2seq4repair_space>--cacerts<seq2seq4repair_space>--jkskeystore<seq2seq4repair_space>--jcekskeystore\n" ) + "<seq2seq4repair_space>-b<seq2seq4repair_space>--bootstrap<seq2seq4repair_space>To<seq2seq4repair_space>bootstrapping<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>myproxy<seq2seq4repair_space>service.\n" ) + "<seq2seq4repair_space>--credentials<seq2seq4repair_space>Write<seq2seq4repair_space>user<seq2seq4repair_space>certificate<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>in<seq2seq4repair_space>pem<seq2seq4repair_space>format.\n" ) + "<seq2seq4repair_space>--cacertspem<seq2seq4repair_space>Write<seq2seq4repair_space>trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>pem<seq2seq4repair_space>format.\n" ) + "<seq2seq4repair_space>--cacertsjks<seq2seq4repair_space>Write<seq2seq4repair_space>trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>JKS<seq2seq4repair_space>keystore<seq2seq4repair_space>format.\n" ) + "<seq2seq4repair_space>--cacerts<seq2seq4repair_space>Write<seq2seq4repair_space>trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>a<seq2seq4repair_space>folder.\n" ) + "<seq2seq4repair_space>--keystorejks<seq2seq4repair_space>Write<seq2seq4repair_space>JKS<seq2seq4repair_space>keystore<seq2seq4repair_space>file.<seq2seq4repair_space>This<seq2seq4repair_space>keystore<seq2seq4repair_space>contains<seq2seq4repair_space>certificate," ) + "<seq2seq4repair_space>certificate<seq2seq4repair_space>chain<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>of<seq2seq4repair_space>user\n" ) + "<seq2seq4repair_space>--keystorejceks<seq2seq4repair_space>Write<seq2seq4repair_space>JCEKS<seq2seq4repair_space>keystore<seq2seq4repair_space>file.<seq2seq4repair_space>This<seq2seq4repair_space>keystore<seq2seq4repair_space>contains<seq2seq4repair_space>certificate," ) + "<seq2seq4repair_space>certificate<seq2seq4repair_space>chain<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>of<seq2seq4repair_space>user\n" ) + "<seq2seq4repair_space>-d<seq2seq4repair_space>--debug<seq2seq4repair_space>Turn<seq2seq4repair_space>debugging<seq2seq4repair_space>info<seq2seq4repair_space>on.\n" ) + "<seq2seq4repair_space>-h<seq2seq4repair_space>--help<seq2seq4repair_space>Show<seq2seq4repair_space>this<seq2seq4repair_space>screen.\n" ) + "<seq2seq4repair_space>--version<seq2seq4repair_space>Show<seq2seq4repair_space>version.\n" ) + "\n" ; <END_BUG> if ( ( ( args . length ) < 1 ) && ( ! ( GraphicsEnvironment . isHeadless ( ) ) ) ) { InputStream is = CredentialsProvider . class . getClassLoader ( ) . getResourceAsStream ( CredentialsProviderCLI . ESGF_NODES_PROP ) ; Properties esgfNodes = new Properties ( ) ; try { esgfNodes . load ( is ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; System . err . print ( ( ( "Error<seq2seq4repair_space>reading<seq2seq4repair_space>" + ( CredentialsProviderCLI . ESGF_NODES_PROP ) ) + "<seq2seq4repair_space>file" ) ) ; } String strNodes = esgfNodes . getProperty ( "getcredentials.nodes" ) ; String [ ] nodes = strNodes . split ( "<seq2seq4repair_space>" ) ; CredentialsProviderGUI ui = new CredentialsProviderGUI ( credentialsProvider , nodes ) ; } else { Docopt docopt = new Docopt ( doc ) ; docopt . withVersion ( "esgf-getcredentials<seq2seq4repair_space>0.1" ) ; final Map < String , Object > opts = docopt . parse ( args ) ; String openid = ( ( String ) ( opts . get ( "--openid" ) ) ) ; String password = ( ( String ) ( opts . get ( "--password" ) ) ) ; String outputCredPath = ( ( String ) ( opts . get ( "--output" ) ) ) ; boolean bootstrap = ( ( Boolean ) ( opts . get ( "--bootstrap" ) ) ) ; boolean debug = ( ( Boolean ) ( opts . get ( "--debug" ) ) ) ; boolean writeAll = ( ( Boolean ) ( opts . get ( "--writeall" ) ) ) ; boolean writeTruststore ; boolean writeTrustroots = false ; boolean writeJKSkeystore ; boolean writeJCEKSkeystore = false ; boolean writeCacert ; boolean writeCredentials = false ; if ( writeAll ) { writeTruststore = true ; writeTrustroots = true ; writeJKSkeystore = true ; writeJCEKSkeystore = true ; writeCacert = true ; writeCredentials = true ; } else { writeTruststore = ( ( Boolean ) ( opts . get ( "--cacertsjks" ) ) ) ; writeTrustroots = ( ( Boolean ) ( opts . get ( "--cacerts" ) ) ) ; writeJKSkeystore = ( ( Boolean ) ( opts . get ( "--keystorejks" ) ) ) ; writeJCEKSkeystore = ( ( Boolean ) ( opts . get ( "--keystorejceks" ) ) ) ; writeCacert = ( ( Boolean ) ( opts . get ( "--cacertspem" ) ) ) ; writeCredentials = ( ( Boolean ) ( opts . get ( "--credentials" ) ) ) ; } credentialsProvider . setMyProxyLib ( MYPROXYLOGON ) ; if ( password == null ) { if ( ( System . console ( ) ) != null ) { password = System . console ( ) . readPassword ( "Password:<seq2seq4repair_space>" ) . toString ( ) ; } else { BufferedReader br = new BufferedReader ( new InputStreamReader ( System . in ) ) ; System . out . print ( "Password:<seq2seq4repair_space>" ) ; br = new BufferedReader ( new InputStreamReader ( System . in ) ) ; password = br . readLine ( ) ; } } credentialsProvider . setOpenID ( openid , password . toCharArray ( ) ) ; if ( outputCredPath != null ) { credentialsProvider . setCredentialsDirectory ( outputCredPath ) ; } credentialsProvider . setBootstrap ( bootstrap ) ; credentialsProvider . setWriteCaCertsPem ( writeCacert ) ; credentialsProvider . setWriteJCEKSKeystore ( writeJCEKSkeystore ) ; credentialsProvider . setWriteJKSKeystore ( writeJKSkeystore ) ; credentialsProvider . setWritePem ( writeCredentials ) ; credentialsProvider . setWriteTrustRootsCerts ( writeTrustroots ) ; credentialsProvider . setWriteTruststore ( writeTruststore ) ; if ( debug ) { Logger rootlogger = Logger . getLogger ( "" ) ; rootlogger . setLevel ( Level . FINEST ) ; LogManager . getRootLogger ( ) . setLevel ( org . apache . log4j . Level . DEBUG ) ; } else { for ( String name : java . util . logging . LogManager . getLoggingMXBean ( ) . getLoggerNames ( ) ) { java . util . logging . LogManager . getLoggingMXBean ( ) . setLoggerLevel ( name , "SEVERE" ) ; } } credentialsProvider . retrieveCredentials ( ) ; System . out . println ( "Success!" ) ; System . out . println ( ( "The<seq2seq4repair_space>follow<seq2seq4repair_space>files<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>written<seq2seq4repair_space>in<seq2seq4repair_space>" + outputCredPath ) ) ; if ( writeCredentials ) { System . out . println ( ( "-<seq2seq4repair_space>User<seq2seq4repair_space>certificate<seq2seq4repair_space>and<seq2seq4repair_space>private" + "<seq2seq4repair_space>key<seq2seq4repair_space>in<seq2seq4repair_space>pem<seq2seq4repair_space>format" ) ) ; } if ( writeCacert ) { System . out . println ( "-<seq2seq4repair_space>Trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>pem<seq2seq4repair_space>format" ) ; } if ( writeTruststore ) { System . out . println ( "-<seq2seq4repair_space>Trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>JKS<seq2seq4repair_space>keystore<seq2seq4repair_space>format" ) ; } if ( writeTrustroots ) { System . out . println ( "-<seq2seq4repair_space>Trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>a<seq2seq4repair_space>folder" ) ; } if ( writeJKSkeystore ) { System . out . println ( ( "-<seq2seq4repair_space>JKS<seq2seq4repair_space>keystore<seq2seq4repair_space>file.<seq2seq4repair_space>This<seq2seq4repair_space>keystore<seq2seq4repair_space>contains<seq2seq4repair_space>certificate," + "<seq2seq4repair_space>certificate<seq2seq4repair_space>chain<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>of<seq2seq4repair_space>user" ) ) ; } if ( writeJCEKSkeystore ) { System . out . println ( ( "-<seq2seq4repair_space>JCEKS<seq2seq4repair_space>keystore<seq2seq4repair_space>file.<seq2seq4repair_space>This<seq2seq4repair_space>keystore<seq2seq4repair_space>contains<seq2seq4repair_space>certificate," + "<seq2seq4repair_space>certificate<seq2seq4repair_space>chain<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>of<seq2seq4repair_space>user" ) ) ; } } } }

Fix:
final String doc = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "esgf-getcredentials.\n" + ( ( ( ( ( ( ( ( ( ( "\n" + "Usage:\n" ) + "<seq2seq4repair_space>esgf-getcredentials\n" ) + "<seq2seq4repair_space>esgf-getcredentials<seq2seq4repair_space>(-o<seq2seq4repair_space><openid><seq2seq4repair_space>|<seq2seq4repair_space>--openid<seq2seq4repair_space><openid>)<seq2seq4repair_space>[options]\n" ) + "<seq2seq4repair_space>esgf-getcredentials<seq2seq4repair_space>(-h<seq2seq4repair_space>|<seq2seq4repair_space>--help)\n" ) + "<seq2seq4repair_space>esgf-getcredentials<seq2seq4repair_space>--version\n" ) + "Options:\n" ) + "<seq2seq4repair_space>-o<seq2seq4repair_space><openid><seq2seq4repair_space>--openid<seq2seq4repair_space><openid><seq2seq4repair_space>OpenID<seq2seq4repair_space>endpoint<seq2seq4repair_space>from<seq2seq4repair_space>where<seq2seq4repair_space>myproxy<seq2seq4repair_space>information<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>gathered.\n" ) + "<seq2seq4repair_space>-p<seq2seq4repair_space><password><seq2seq4repair_space>--password<seq2seq4repair_space><password><seq2seq4repair_space>OpenID<seq2seq4repair_space>passphrase.\n" ) + "<seq2seq4repair_space>--output<seq2seq4repair_space><path><seq2seq4repair_space>Path<seq2seq4repair_space>of<seq2seq4repair_space>folder<seq2seq4repair_space>where<seq2seq4repair_space>the<seq2seq4repair_space>retrieved<seq2seq4repair_space>certificates<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>stored" ) + "[default:<seq2seq4repair_space>" ) ) + esgPath ) + "].\n" ) + "<seq2seq4repair_space>-w<seq2seq4repair_space>--writeall<seq2seq4repair_space>Generate<seq2seq4repair_space>all<seq2seq4repair_space>credentials<seq2seq4repair_space>files.<seq2seq4repair_space>The<seq2seq4repair_space>files<seq2seq4repair_space>generated<seq2seq4repair_space>are<seq2seq4repair_space>the<seq2seq4repair_space>same" ) + "<seq2seq4repair_space>files<seq2seq4repair_space>generated<seq2seq4repair_space>with<seq2seq4repair_space>opts:<seq2seq4repair_space>--credentials<seq2seq4repair_space>--cacertspem<seq2seq4repair_space>--cacertsjks<seq2seq4repair_space>--cacerts<seq2seq4repair_space>--jkskeystore<seq2seq4repair_space>--jcekskeystore\n" ) + "<seq2seq4repair_space>-b<seq2seq4repair_space>--bootstrap<seq2seq4repair_space>To<seq2seq4repair_space>bootstrapping<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>myproxy<seq2seq4repair_space>service.\n" ) + "<seq2seq4repair_space>--credentials<seq2seq4repair_space>Write<seq2seq4repair_space>user<seq2seq4repair_space>certificate<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>in<seq2seq4repair_space>pem<seq2seq4repair_space>format.\n" ) + "<seq2seq4repair_space>--cacertspem<seq2seq4repair_space>Write<seq2seq4repair_space>trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>pem<seq2seq4repair_space>format.\n" ) + "<seq2seq4repair_space>--cacertsjks<seq2seq4repair_space>Write<seq2seq4repair_space>trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>JKS<seq2seq4repair_space>keystore<seq2seq4repair_space>format.\n" ) + "<seq2seq4repair_space>--cacerts<seq2seq4repair_space>Write<seq2seq4repair_space>trust<seq2seq4repair_space>CA<seq2seq4repair_space>certificates<seq2seq4repair_space>in<seq2seq4repair_space>a<seq2seq4repair_space>folder.\n" ) + "<seq2seq4repair_space>--keystorejks<seq2seq4repair_space>Write<seq2seq4repair_space>JKS<seq2seq4repair_space>keystore<seq2seq4repair_space>file.<seq2seq4repair_space>This<seq2seq4repair_space>keystore<seq2seq4repair_space>contains<seq2seq4repair_space>certificate," ) + "<seq2seq4repair_space>certificate<seq2seq4repair_space>chain<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>of<seq2seq4repair_space>user\n" ) + "<seq2seq4repair_space>--keystorejceks<seq2seq4repair_space>Write<seq2seq4repair_space>JCEKS<seq2seq4repair_space>keystore<seq2seq4repair_space>file.<seq2seq4repair_space>This<seq2seq4repair_space>keystore<seq2seq4repair_space>contains<seq2seq4repair_space>certificate," ) + "<seq2seq4repair_space>certificate<seq2seq4repair_space>chain<seq2seq4repair_space>and<seq2seq4repair_space>private<seq2seq4repair_space>key<seq2seq4repair_space>of<seq2seq4repair_space>user\n" ) + "<seq2seq4repair_space>-d<seq2seq4repair_space>--debug<seq2seq4repair_space>Turn<seq2seq4repair_space>debugging<seq2seq4repair_space>info<seq2seq4repair_space>on.\n" ) + "<seq2seq4repair_space>-h<seq2seq4repair_space>--help<seq2seq4repair_space>Show<seq2seq4repair_space>this<seq2seq4repair_space>screen.\n" ) + "<seq2seq4repair_space>--version<seq2seq4repair_space>Show<seq2seq4repair_space>version.\n" ) + "\n" ;