nus-yam/ex-repair huggingface dataset:
Buggy code:
public final class RootLoggerElement extends AbstractLoggerElement < RootLoggerElement > { private static final long serialVersionUID = 5284930321162426129L ; private static final QName ELEMENT_NAME = new QName ( CURRENT . getUriString ( ) , ROOT_LOGGER . getLocalName ( ) ) ; RootLoggerElement ( ) { } BatchServiceBuilder < Logger > createService ( final BatchBuilder builder ) { <START_BUG> return builder . addService ( JBOSS_LOGGING . append ( "logger" , "root" ) , new LoggerLevelService ( ) ) ; <END_BUG> } void configureService ( final BatchServiceBuilder < Logger > serviceBuilder , final BatchBuilder builder , final AbstractLoggerService loggerService ) { } QName getElementName ( ) { } protected void appendDifference ( final Collection < AbstractModelUpdate < RootLoggerElement > > target , final RootLoggerElement other ) { } protected Class < RootLoggerElement > getElementClass ( ) { } ServiceName getLoggerServiceName ( ) { } AbstractLoggerService getLoggerService ( ) { } }

Fix:
return builder . addService ( JBOSS_LOGGING . append ( "logger" , "root" ) , new LoggerLevelService ( "" ) ) ;
Buggy code:
public class Fraction extends Number implements Serializable , Comparable < Fraction > , FieldElement < Fraction > { public static final Fraction TWO = new Fraction ( 2 , 1 ) ; public static final Fraction ONE = new Fraction ( 1 , 1 ) ; public static final Fraction ZERO = new Fraction ( 0 , 1 ) ; public static final Fraction FOUR_FIFTHS = new Fraction ( 4 , 5 ) ; public static final Fraction ONE_FIFTH = new Fraction ( 1 , 5 ) ; public static final Fraction ONE_HALF = new Fraction ( 1 , 2 ) ; public static final Fraction ONE_QUARTER = new Fraction ( 1 , 4 ) ; public static final Fraction ONE_THIRD = new Fraction ( 1 , 3 ) ; public static final Fraction THREE_FIFTHS = new Fraction ( 3 , 5 ) ; public static final Fraction THREE_QUARTERS = new Fraction ( 3 , 4 ) ; public static final Fraction TWO_FIFTHS = new Fraction ( 2 , 5 ) ; public static final Fraction TWO_QUARTERS = new Fraction ( 2 , 4 ) ; public static final Fraction TWO_THIRDS = new Fraction ( 2 , 3 ) ; public static final Fraction MINUS_ONE = new Fraction ( ( - 1 ) , 1 ) ; private static final long serialVersionUID = 3698073679419233275L ; private final int denominator ; private final int numerator ; public Fraction ( double value ) throws FractionConversionException { } public Fraction ( double value , double epsilon , int maxIterations ) throws FractionConversionException { } public Fraction ( double value , int maxDenominator ) throws FractionConversionException { } private Fraction ( double value , double epsilon , int maxDenominator , int maxIterations ) throws FractionConversionException { } public Fraction ( int num ) { } public Fraction ( int num , int den ) { } public Fraction abs ( ) { } public int compareTo ( Fraction object ) { } @ Override public double doubleValue ( ) { } @ Override public boolean equals ( Object other ) { } @ Override public float floatValue ( ) { } public int getDenominator ( ) { } public int getNumerator ( ) { } @ Override public int hashCode ( ) { } @ Override public int intValue ( ) { } @ Override public long longValue ( ) { } public Fraction negate ( ) { } public Fraction reciprocal ( ) { } public Fraction add ( Fraction fraction ) { } public Fraction add ( final int i ) { } public Fraction subtract ( Fraction fraction ) { } public Fraction subtract ( final int i ) { } private Fraction addSub ( Fraction fraction , boolean isAdd ) { } public Fraction multiply ( Fraction fraction ) { } public Fraction multiply ( final int i ) { } public Fraction divide ( Fraction fraction ) { } public Fraction divide ( final int i ) { } public double percentageValue ( ) { <START_BUG> return multiply ( 100 ) . doubleValue ( ) ; <END_BUG> } public static Fraction getReducedFraction ( int numerator , int denominator ) { } @ Override public String toString ( ) { } public FractionField getField ( ) { } }

Fix:
return 100 * ( doubleValue ( ) ) ;
Buggy code:
public class Sorting { public static SortField getStringSortField ( String fieldName , boolean reverse , boolean nullLast , boolean nullFirst ) { if ( nullLast ) { if ( ! reverse ) return new SortField ( fieldName , Sorting . nullStringLastComparatorSource ) ; else return new SortField ( fieldName , SortField . STRING , true ) ; } else if ( nullFirst ) { if ( reverse ) <START_BUG> return new SortField ( fieldName , Sorting . nullStringLastComparatorSource ) ; <END_BUG> else return new SortField ( fieldName , SortField . STRING , false ) ; } else { return new SortField ( fieldName , SortField . STRING , reverse ) ; } } static final SortComparatorSource nullStringLastComparatorSource = new MissingStringLastComparatorSource ( ) ; }

Fix:
return new SortField ( fieldName , Sorting . nullStringLastComparatorSource , true ) ;
Buggy code:
public class Serialization { private static final String EMPTY_DF_STRING = "[empty<seq2seq4repair_space>data<seq2seq4repair_space>frame]" ; private static final String ELLIPSES = "..." ; private static final String NEWLINE = "\n" ; private static final String DELIMITER = "\t" ; private static final Object INDEX_KEY = new Object ( ) ; private static final int MAX_COLUMN_WIDTH = 20 ; public static String toString ( final DataFrame < ? > df , final int limit ) { } private static final int clamp ( final int lower , final int upper , final int value ) { } private static final String lpad ( final Object o , final int w ) { } private static final String rpad ( final Object o , final int w ) { } private static final String truncate ( final Object o , final int w ) { final String value = String . valueOf ( o ) ; <START_BUG> return ( value . length ( ) ) > w ? ( value . substring ( 0 , ( w - 3 ) ) ) + ( Serialization . ELLIPSES ) : value ; <END_BUG> } private static final String fmt ( final Class < ? > cls , final Object o ) { } public static DataFrame < Object > readCsv ( final String file ) throws IOException { } public static DataFrame < Object > readCsv ( final InputStream input ) throws IOException { } public static < V > void writeCsv ( final DataFrame < V > df , final String output ) throws IOException { } public static < V > void writeCsv ( final DataFrame < V > df , final OutputStream output ) throws IOException { } public static DataFrame < Object > readXls ( final String file ) throws IOException { } public static DataFrame < Object > readXls ( final InputStream input ) throws IOException { } public static < V > void writeXls ( final DataFrame < V > df , final String output ) throws IOException { } public static < V > void writeXls ( final DataFrame < V > df , final OutputStream output ) throws IOException { } private static final Object readCell ( final Cell cell ) { } private static final void writeCell ( final Cell cell , final Object value ) { } }

Fix:
return ( ( value . length ( ) ) - ( Serialization . ELLIPSES . length ( ) ) ) > w ? ( value . substring ( 0 , ( w - ( Serialization . ELLIPSES . length ( ) ) ) ) ) + ( Serialization . ELLIPSES ) : value ;
Buggy code:
public class AppEntry { public static void main ( String [ ] args ) throws IOException , InvalidFormatException { <START_BUG> System . getProperty ( CONFIG_FILE , args [ 0 ] ) ; <END_BUG> Config config = ConfigFacade . getConfig ( ) ; IssueSyncApp app = new IssueSyncApp ( ) ; for ( SyncItem syncItem : config . getSyncItems ( ) ) { app . execute ( syncItem ) ; } } }

Fix:
System . setProperty ( CONFIG_FILE , args [ 0 ] ) ;
Buggy code:
@ Controller public class MainController { @ RequestMapping ( value = "//" , method = RequestMethod . GET ) public ModelAndView printWelcome ( Model m , HttpServletRequest request ) { } <START_BUG> @ RequestMapping ( value = "//aboutus" , method = RequestMethod . POST ) <END_BUG> public String aboutus ( ModelMap model ) { SearchSummonerBean searchSummonerBean = new SearchSummonerBean ( ) ; model . addAttribute ( "searchSummonerBean" , searchSummonerBean ) ; return "aboutus" ; } No newline ; at end ; of file ; }

Fix:
@ RequestMapping ( value = "//aboutus" , method = RequestMethod . GET )
Buggy code:
public class ThrowStatement extends Statement { public static final ChildPropertyDescriptor EXPRESSION_PROPERTY = new ChildPropertyDescriptor ( ThrowStatement . class , "expression" , Expression . class , ASTNode . MANDATORY , ASTNode . CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; public static List propertyDescriptors ( int apiLevel ) { } private Expression expression = null ; ThrowStatement ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { ThrowStatement result = new ThrowStatement ( target ) ; <START_BUG> result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <END_BUG> result . copyLeadingComment ( this ) ; result . setExpression ( ( ( Expression ) ( getExpression ( ) . clone ( target ) ) ) ) ; return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Expression getExpression ( ) { } public void setExpression ( Expression expression ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ;
Buggy code:
final class EmbedBlob extends ConnectionChild implements Blob , EngineLOB { private boolean materialized ; private InputStream myStream ; private int locator ; private long myLength = - 1 ; private long pos ; private BinaryToRawStream biStream ; private static int BLOB_BUF_SIZE = 4096 ; private byte [ ] buf ; private boolean isValid = true ; private LOBStreamControl control ; EmbedBlob ( byte [ ] blobBytes , EmbedConnection con ) throws SQLException { } protected EmbedBlob ( DataValueDescriptor dvd , EmbedConnection con ) throws StandardException { } private void setPosition ( long newPos ) throws IOException , StandardException { } private int read ( ) throws IOException , SQLException { } public long length ( ) throws SQLException { } public byte [ ] getBytes ( long startPos , int length ) throws SQLException { } public InputStream getBinaryStream ( ) throws SQLException { } public long position ( byte [ ] pattern , long start ) throws SQLException { } private boolean checkMatch ( byte [ ] pattern ) throws IOException , SQLException { } public long position ( Blob pattern , long start ) throws SQLException { } private boolean checkMatch ( Blob pattern ) throws IOException , SQLException { } private SQLException handleMyExceptions ( Throwable t ) throws SQLException { } protected void finalize ( ) { } public int setBytes ( long pos , byte [ ] bytes ) throws SQLException { } public int setBytes ( long pos , byte [ ] bytes , int offset , int len ) throws SQLException { } public OutputStream setBinaryStream ( long pos ) throws SQLException { } public void truncate ( long len ) throws SQLException { } public void free ( ) throws SQLException { } public InputStream getBinaryStream ( long pos , long length ) throws SQLException { checkValidity ( ) ; if ( pos <= 0 ) { throw Util . generateCsSQLException ( BLOB_BAD_POSITION , new Long ( pos ) ) ; } if ( length < 0 ) { throw Util . generateCsSQLException ( BLOB_NONPOSITIVE_LENGTH , new Long ( length ) ) ; } <START_BUG> if ( length > ( ( this . length ( ) ) - pos ) ) { <END_BUG> throw Util . generateCsSQLException ( POS_AND_LENGTH_GREATER_THAN_LOB , new Long ( pos ) , new Long ( length ) ) ; } try { return new UpdatableBlobStream ( this , getBinaryStream ( ) , ( pos - 1 ) , length ) ; } catch ( IOException ioe ) { throw Util . setStreamFailure ( ioe ) ; } } private void checkValidity ( ) throws SQLException { } boolean isMaterialized ( ) { } public int getLocator ( ) { } }

Fix:
if ( length > ( ( this . length ( ) ) - ( pos - 1 ) ) ) {
Buggy code:
public class NumberValue extends Value { private static final long serialVersionUID = 1L ; private double value ; public NumberValue ( final double value ) { } public int compareToNumber ( final NumberValue other ) { } @ Override public boolean equals ( final Object obj ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } final NumberValue other = ( ( NumberValue ) ( obj ) ) ; <START_BUG> if ( ( Double . doubleToLongBits ( value ) ) != ( Double . doubleToLongBits ( other . value ) ) ) { <END_BUG> return false ; } return true ; } public double getValue ( ) { } @ Override public int hashCode ( ) { } @ Override public boolean isNumeric ( ) { } public void setValue ( final double value ) { } public void plusNumber ( double value ) { } @ Override public String toString ( ) { } @ Override public Column getType ( String name ) { } }

Fix:
if ( ! ( Double . valueOf ( value ) . equals ( other . value ) ) ) {
Buggy code:
public class HeaderTest extends WicketTestCase { public HeaderTest ( String name ) { } public void test_1 ( ) throws Exception { executeTest ( TestPage . class , "TestPage_ExpectedResult-1.html" ) ; TestPage page = ( ( TestPage ) ( tester . getLastRenderedPage ( ) ) ) ; <START_BUG> executedListener ( TestPage . class , page . get ( "link" ) , "TestPage_ExpectedResult-2.html" ) ; <END_BUG> } }

Fix:
executeListener ( page . get ( "link" ) , "TestPage_ExpectedResult-2.html" ) ;
Buggy code:
public abstract class AbstractThreadGroupGui extends AbstractJMeterGuiComponent { private static final long serialVersionUID = 240L ; private JRadioButton continueBox ; private JRadioButton startNextLoop ; private JRadioButton stopThrdBox ; private JRadioButton stopTestBox ; private JRadioButton stopTestNowBox ; public AbstractThreadGroupGui ( ) { } @ Override public Collection < String > getMenuCategories ( ) { } @ Override public JPopupMenu createPopupMenu ( ) { JPopupMenu pop = new JPopupMenu ( ) ; pop . add ( MenuFactory . makeMenus ( new String [ ] { MenuFactory . CONTROLLERS , MenuFactory . CONFIG_ELEMENTS , MenuFactory . TIMERS , MenuFactory . PRE_PROCESSORS , MenuFactory . SAMPLERS , MenuFactory . POST_PROCESSORS , MenuFactory . ASSERTIONS , MenuFactory . LISTENERS } , JMeterUtils . getResString ( "add" ) , ADD ) ) ; MenuFactory . addEditMenu ( pop , true ) ; <START_BUG> MenuFactory . addFileMenu ( pop ) ; <END_BUG> return pop ; } @ Override public Dimension getPreferredSize ( ) { } @ Override public void clearGui ( ) { } private void init ( ) { } private void initGui ( ) { } private JPanel createOnErrorPanel ( ) { } private void setSampleErrorBoxes ( AbstractThreadGroup te ) { } private String onSampleError ( ) { } @ Override public void configure ( TestElement tg ) { } @ Override protected void configureTestElement ( TestElement tg ) { } }

Fix:
MenuFactory . addFileMenu ( pop , false ) ;
Buggy code:
public class IndentPrinter extends Printer { private StringBuffer _line ; private StringBuffer _text ; private int _spaces ; private int _thisIndent ; private int _nextIndent ; public IndentPrinter ( Writer writer , OutputFormat format ) { } public void enterDTD ( ) { } public String leaveDTD ( ) { if ( ( _writer ) == ( _dtdWriter ) ) { _line . append ( _text ) ; _text = new StringBuffer ( 20 ) ; flushLine ( false ) ; _writer = _docWriter ; return _dtdWriter . toString ( ) ; <START_BUG> } else <END_BUG> return null ; } public void printText ( String text ) { } public void printText ( StringBuffer text ) { } public void printText ( char ch ) { } public void printText ( char [ ] chars , int start , int length ) { } public void printSpace ( ) { } public void breakLine ( ) { } public void breakLine ( boolean preserveSpace ) { } public void flushLine ( boolean preserveSpace ) { } public void flush ( ) { } public void indent ( ) { } public void unindent ( ) { } public int getNextIndent ( ) { } public void setNextIndent ( int indent ) { } public void setThisIndent ( int indent ) { } }

Fix:
}
Buggy code:
@ Deprecated public class SortableLongField extends FieldType { @ Override protected void init ( IndexSchema schema , Map < String , String > args ) { } @ Override public SortField getSortField ( SchemaField field , boolean reverse ) { } @ Override public ValueSource getValueSource ( SchemaField field , QParser qparser ) { } @ Override public String toInternal ( String val ) { } @ Override public String indexedToReadable ( String indexedForm ) { } public CharsRef indexedToReadable ( BytesRef input , CharsRef charsRef ) { final char [ ] indexedToReadable = indexedToReadable ( input . utf8ToChars ( charsRef ) . toString ( ) ) . toCharArray ( ) ; <START_BUG> charsRef . copy ( indexedToReadable , 0 , indexedToReadable . length ) ; <END_BUG> return charsRef ; } @ Override public String toExternal ( IndexableField f ) { } @ Override public Long toObject ( IndexableField f ) { } @ Override public void write ( TextResponseWriter writer , String name , IndexableField f ) throws IOException { } }

Fix:
charsRef . copyChars ( indexedToReadable , 0 , indexedToReadable . length ) ;
Buggy code:
public class DefaultProxyContainerFinder extends AbstractProxyContainerFinder implements IProxyContainerFinder { private boolean autoCreateContainer = false ; public DefaultProxyContainerFinder ( boolean autoCreateContainer ) { } public IRemoteServiceContainer [ ] findProxyContainers ( IServiceID serviceID , IRemoteServiceEndpointDescription endpointDescription ) { trace ( "findProxyContainers" , ( ( ( "serviceID=" + serviceID ) + "<seq2seq4repair_space>endpointDescription=" ) + endpointDescription ) ) ; ID endpointID = endpointDescription . getEndpointAsID ( ) ; String [ ] remoteSupportedConfigs = endpointDescription . getSupportedConfigs ( ) ; ID connectTargetID = endpointDescription . getConnectTargetID ( ) ; <START_BUG> Collection rsContainers = findExistingProxyContainers ( endpointID , remoteSupportedConfigs ) ; <END_BUG> if ( ( ( rsContainers . size ( ) ) == 0 ) && ( autoCreateContainer ) ) rsContainers = createAndConfigureProxyContainers ( remoteSupportedConfigs , endpointDescription . getProperties ( ) ) ; connectContainersToTarget ( rsContainers , connectTargetID ) ; return ( ( IRemoteServiceContainer [ ] ) ( rsContainers . toArray ( new IRemoteServiceContainer [ ] { } ) ) ) ; } }

Fix:
Collection rsContainers = findExistingProxyContainers ( endpointID , remoteSupportedConfigs , connectTargetID ) ;
Buggy code:
public class PackageReferenceLocator extends PatternLocator { protected PackageReferencePattern pattern ; public static boolean isDeclaringPackageFragment ( IPackageFragment packageFragment , ReferenceBinding typeBinding ) { char [ ] fileName = typeBinding . getFileName ( ) ; if ( fileName != null ) { <START_BUG> CharOperation . replace ( fileName , '//' , '\\' ) ; <END_BUG> fileName = CharOperation . lastSegment ( fileName , '\\' ) ; try { switch ( packageFragment . getKind ( ) ) { case IPackageFragmentRoot . K_SOURCE : if ( ( ! ( Util . isJavaLikeFileName ( fileName ) ) ) || ( ! ( packageFragment . getCompilationUnit ( new String ( fileName ) ) . exists ( ) ) ) ) { return false ; } break ; case IPackageFragmentRoot . K_BINARY : if ( ( ! ( org . eclipse . jdt . internal . compiler . util . Util . isClassFileName ( fileName ) ) ) || ( ! ( packageFragment . getClassFile ( new String ( fileName ) ) . exists ( ) ) ) ) { return false ; } break ; } } catch ( JavaModelException e ) { } } return true ; } public PackageReferenceLocator ( PackageReferencePattern pattern ) { } public int match ( ASTNode node , MatchingNodeSet nodeSet ) { } public int match ( Reference node , MatchingNodeSet nodeSet ) { } public int match ( TypeReference node , MatchingNodeSet nodeSet ) { } protected int matchLevel ( ImportReference importRef ) { } protected int matchLevelForTokens ( char [ ] [ ] tokens ) { } protected void matchLevelAndReportImportRef ( ImportReference importRef , Binding binding , MatchLocator locator ) throws CoreException { } protected void matchReportImportRef ( ImportReference importRef , Binding binding , IJavaElement element , int accuracy , MatchLocator locator ) throws CoreException { } protected void matchReportReference ( ASTNode reference , IJavaElement element , Binding elementBinding , int accuracy , MatchLocator locator ) throws CoreException { } protected int referenceType ( ) { } public int resolveLevel ( ASTNode node ) { } public int resolveLevel ( Binding binding ) { } protected int resolveLevel ( QualifiedNameReference qNameRef ) { } public String toString ( ) { } }

Fix:
fileName = CharOperation . replaceOnCopy ( fileName , '//' , '\\' ) ;
Buggy code:
public final class SslTerminationHelper { protected static final Log LOG = LogFactory . getLog ( SslTerminationHelper . class ) ; public static boolean modificationStatus ( SslTermination sslTermination , LoadBalancer dbLoadBalancer ) throws BadRequestException { } public static boolean isProtocolSecure ( LoadBalancer loadBalancer ) throws BadRequestException { } public static boolean verifyPortSecurePort ( LoadBalancer loadBalancer , SslTermination sslTermination , Map < Integer , List < LoadBalancer > > vipPorts , Map < Integer , List < LoadBalancer > > vip6Ports ) { } public static void verifyCertificationCredentials ( ZeusCertFile zeusCertFile ) throws BadRequestException { } public static SslTermination verifyAttributes ( SslTermination queTermination , org . openstack . atlas . service . domain . entities . SslTermination dbTermination ) { if ( dbTermination == null ) { dbTermination = new org . openstack . atlas . service . domain . entities . SslTermination ( ) ; } if ( ( queTermination . isEnabled ( ) ) != null ) { dbTermination . setEnabled ( queTermination . isEnabled ( ) ) ; } if ( ( queTermination . isSecureTrafficOnly ( ) ) != null ) { <START_BUG> if ( ( ( ! ( queTermination . isEnabled ( ) ) ) || ( ! ( dbTermination . isEnabled ( ) ) ) ) && ( ( queTermination . isSecureTrafficOnly ( ) ) || ( dbTermination . isSecureTrafficOnly ( ) ) ) ) { <END_BUG> dbTermination . setSecureTrafficOnly ( false ) ; } else { dbTermination . setSecureTrafficOnly ( queTermination . isSecureTrafficOnly ( ) ) ; } } if ( ( queTermination . getSecurePort ( ) ) != null ) { dbTermination . setSecurePort ( queTermination . getSecurePort ( ) ) ; } if ( ( queTermination . getCertificate ( ) ) != null ) { dbTermination . setCertificate ( queTermination . getCertificate ( ) ) ; } if ( ( queTermination . getIntermediateCertificate ( ) ) != null ) { dbTermination . setIntermediateCertificate ( queTermination . getIntermediateCertificate ( ) ) ; } else { if ( ( ( queTermination . getCertificate ( ) ) != null ) && ( ( queTermination . getCertificate ( ) ) != null ) ) { dbTermination . setIntermediateCertificate ( null ) ; } } if ( ( queTermination . getPrivatekey ( ) ) != null ) { dbTermination . setPrivatekey ( queTermination . getPrivatekey ( ) ) ; } return dbTermination ; } public static void cleanSSLCertKeyEntries ( org . openstack . atlas . service . domain . entities . SslTermination sslTermination ) { } }

Fix:
if ( ( ( ( queTermination . isEnabled ( ) ) != null ) && ( ! ( queTermination . isEnabled ( ) ) ) ) || ( ( ! ( dbTermination . isEnabled ( ) ) ) && ( ( queTermination . isSecureTrafficOnly ( ) ) || ( dbTermination . isSecureTrafficOnly ( ) ) ) ) ) {
Buggy code:
public class ClientServerWarNoContextPathIntegrationTest extends AbstractClientServerSharedClassloadersAndTestClasspathIntegrationTest { private static final int SERVER_HTTP_PORT = PortFactory . findFreePort ( ) ; private static final int SERVER_HTTPS_PORT = PortFactory . findFreePort ( ) ; private static final int TEST_SERVER_HTTP_PORT = PortFactory . findFreePort ( ) ; private static Tomcat tomcat ; private static EchoServer echoServer ; @ BeforeClass public static void startServer ( ) throws Exception { servletContext = "" ; ClientServerWarNoContextPathIntegrationTest . tomcat = new Tomcat ( ) ; ClientServerWarNoContextPathIntegrationTest . tomcat . setBaseDir ( ( ( ( ( new File ( "." ) . getCanonicalPath ( ) ) + ( File . separatorChar ) ) + "tomcat" ) + ( ( servletContext . length ( ) ) > 0 ? "_" + ( servletContext ) : "" ) ) ) ; ClientServerWarNoContextPathIntegrationTest . tomcat . setPort ( ClientServerWarNoContextPathIntegrationTest . SERVER_HTTP_PORT ) ; <START_BUG> SSLFactory . getInstance ( ) . buildKeyStore ( ) ; <END_BUG> Connector httpsConnector = new Connector ( ) ; httpsConnector . setPort ( ClientServerWarNoContextPathIntegrationTest . SERVER_HTTPS_PORT ) ; httpsConnector . setSecure ( true ) ; httpsConnector . setAttribute ( "keyAlias" , KEY_STORE_CERT_ALIAS ) ; httpsConnector . setAttribute ( "keystorePass" , ConfigurationProperties . javaKeyStorePassword ( ) ) ; httpsConnector . setAttribute ( "keystoreFile" , new File ( ConfigurationProperties . javaKeyStoreFilePath ( ) ) . getAbsoluteFile ( ) ) ; httpsConnector . setAttribute ( "sslProtocol" , "TLS" ) ; httpsConnector . setAttribute ( "clientAuth" , false ) ; httpsConnector . setAttribute ( "SSLEnabled" , true ) ; Service service = ClientServerWarNoContextPathIntegrationTest . tomcat . getService ( ) ; service . addConnector ( httpsConnector ) ; Connector defaultConnector = ClientServerWarNoContextPathIntegrationTest . tomcat . getConnector ( ) ; defaultConnector . setRedirectPort ( ClientServerWarNoContextPathIntegrationTest . SERVER_HTTPS_PORT ) ; Context ctx = ClientServerWarNoContextPathIntegrationTest . tomcat . addContext ( ( "//" + ( servletContext ) ) , new File ( "." ) . getAbsolutePath ( ) ) ; ClientServerWarNoContextPathIntegrationTest . tomcat . addServlet ( ( "//" + ( servletContext ) ) , "mockServerServlet" , new MockServerServlet ( ) ) ; ctx . addServletMapping ( "//*" , "mockServerServlet" ) ; ClientServerWarNoContextPathIntegrationTest . tomcat . start ( ) ; ClientServerWarNoContextPathIntegrationTest . echoServer = new EchoServer ( ClientServerWarNoContextPathIntegrationTest . TEST_SERVER_HTTP_PORT , false ) ; mockServerClient = new org . mockserver . client . server . MockServerClient ( "localhost" , ClientServerWarNoContextPathIntegrationTest . SERVER_HTTP_PORT , servletContext ) ; } @ AfterClass public static void stopServer ( ) throws Exception { } @ Override public int getMockServerPort ( ) { } @ Override public int getMockServerSecurePort ( ) { } @ Override public int getTestServerPort ( ) { } }

Fix:
SSLFactory . getInstance ( ) . buildKeyStore ( true ) ;
Buggy code:
public class BcelAdvice extends Advice { private Test pointcutTest ; private ExposedState exposedState ; private boolean hasMatchedAtLeastOnce = false ; public BcelAdvice ( AjAttribute . AdviceAttribute attribute , Pointcut pointcut , Member signature , ResolvedType concreteAspect ) { } public BcelAdvice ( AdviceKind kind , Pointcut pointcut , Member signature , int extraArgumentFlags , int start , int end , ISourceContext sourceContext , ResolvedType concreteAspect ) { } public void specializeOn ( Shadow shadow ) { } private boolean canInline ( Shadow s ) { } public void implementOn ( Shadow s ) { } private Collection collectCheckedExceptions ( UnresolvedType [ ] excs ) { } private Collection thrownExceptions = null ; public Collection getThrownExceptions ( ) { } public boolean mustCheckExceptions ( ) { } public boolean hasDynamicTests ( ) { } InstructionList getAdviceInstructions ( BcelShadow s , BcelVar extraArgVar , InstructionHandle ifNoAdvice ) { } public InstructionList getAdviceArgSetup ( BcelShadow shadow , BcelVar extraVar , InstructionList closureInstantiation ) { } public InstructionList getNonTestAdviceInstructions ( BcelShadow shadow ) { } public InstructionList getTestInstructions ( BcelShadow shadow , InstructionHandle sk , InstructionHandle fk , InstructionHandle next ) { } public int compareTo ( Object other ) { if ( ! ( other instanceof BcelAdvice ) ) return 0 ; BcelAdvice o = ( ( BcelAdvice ) ( other ) ) ; if ( ( kind . getPrecedence ( ) ) != ( o . kind . getPrecedence ( ) ) ) { if ( ( kind . getPrecedence ( ) ) > ( o . kind . getPrecedence ( ) ) ) return + 1 ; else return - 1 ; } if ( kind . isCflow ( ) ) { boolean isBelow = ( kind ) == ( AdviceKind . CflowBelowEntry ) ; if ( this . innerCflowEntries . contains ( o ) ) return isBelow ? + 1 : - 1 ; else if ( o . innerCflowEntries . contains ( this ) ) return isBelow ? - 1 : + 1 ; else return 0 ; } if ( ( kind . isPerEntry ( ) ) || ( ( kind ) == ( AdviceKind . Softener ) ) ) { return 0 ; } World world = concreteAspect . getWorld ( ) ; <START_BUG> int ret = concreteAspect . getWorld ( ) . compareByDominates ( concreteAspect , o . concreteAspect ) ; <END_BUG> if ( ret != 0 ) return ret ; ResolvedType declaringAspect = getDeclaringAspect ( ) . resolve ( world ) ; ResolvedType o_declaringAspect = o . getDeclaringAspect ( ) . resolve ( world ) ; if ( declaringAspect == o_declaringAspect ) { if ( ( kind . isAfter ( ) ) || ( o . kind . isAfter ( ) ) ) { return ( this . getStart ( ) ) < ( o . getStart ( ) ) ? - 1 : + 1 ; } else { return ( this . getStart ( ) ) < ( o . getStart ( ) ) ? + 1 : - 1 ; } } else if ( declaringAspect . isAssignableFrom ( o_declaringAspect ) ) { return - 1 ; } else if ( o_declaringAspect . isAssignableFrom ( declaringAspect ) ) { return + 1 ; } else { return 0 ; } } public BcelVar [ ] getExposedStateAsBcelVars ( ) { } public boolean hasMatchedSomething ( ) { } }

Fix:
int ret = concreteAspect . getWorld ( ) . compareByPrecedence ( concreteAspect , o . concreteAspect ) ;
Buggy code:
public class TestRussianAnalyzer extends BaseTokenStreamTestCase { public void testDigitsInRussianCharset ( ) throws IOException { } @ Deprecated public void testReusableTokenStream30 ( ) throws Exception { } public void testReusableTokenStream ( ) throws Exception { } public void testWithStemExclusionSet ( ) throws Exception { } public void testRandomStrings ( ) throws Exception { <START_BUG> checkRandomData ( random ( ) , new RussianAnalyzer ( TEST_VERSION_CURRENT ) , ( 10000 * ( RANDOM_MULTIPLIER ) ) ) ; <END_BUG> } }

Fix:
checkRandomData ( random ( ) , new RussianAnalyzer ( TEST_VERSION_CURRENT ) , ( 1000 * ( RANDOM_MULTIPLIER ) ) ) ;
Buggy code:
public class PublishToServerAction extends AbstractReportContextAction { public PublishToServerAction ( ) { } public void actionPerformed ( final ActionEvent e ) { final ReportDesignerContext reportDesignerContext = getReportDesignerContext ( ) ; final ReportDocumentContext activeContext = getActiveContext ( ) ; if ( activeContext == null ) { return ; } if ( activeContext . isChanged ( ) ) { final int option = JOptionPane . showConfirmDialog ( reportDesignerContext . getView ( ) . getParent ( ) , Messages . getInstance ( ) . getString ( "PublishToServerAction.ReportModifiedWarning.Message" ) , Messages . getInstance ( ) . getString ( "PublishToServerAction.ReportModifiedWarning.Title" ) , JOptionPane . YES_NO_CANCEL_OPTION , JOptionPane . WARNING_MESSAGE ) ; if ( option == ( JOptionPane . YES_OPTION ) ) { <START_BUG> if ( ( SaveReportAction . saveReport ( reportDesignerContext , activeContext , reportDesignerContext . getView ( ) . getParent ( ) ) ) == false ) { <END_BUG> return ; } } if ( option == ( JOptionPane . CANCEL_OPTION ) ) { return ; } } final PublishToServerTask publishToServerTask = new PublishToServerTask ( reportDesignerContext , reportDesignerContext . getView ( ) . getParent ( ) ) ; final LoginTask loginTask = new LoginTask ( reportDesignerContext , reportDesignerContext . getView ( ) . getParent ( ) , publishToServerTask , null , true ) ; SwingUtilities . invokeLater ( loginTask ) ; } }

Fix:
if ( ( new SaveReportAction ( ) . saveReport ( reportDesignerContext , activeContext , reportDesignerContext . getView ( ) . getParent ( ) ) ) == false ) {
Buggy code:
public class StringUtils { public static String [ ] join ( String [ ] ... arrays ) { } public static String removeIllegalFilenameChars ( String s ) { } public static String removeIllegalWindowsChars ( String text ) { text = text . replace ( "|" , "" ) ; text = text . replace ( "\"" , "" ) ; text = text . replace ( "<" , "" ) ; text = text . replace ( ">" , "" ) ; text = text . replace ( "?" , "" ) ; text = text . replace ( "*" , "" ) ; text = text . replace ( ":" , "" ) ; text = text . replace ( "//" , "" ) ; text = text . replace ( "\\" , "" ) ; <START_BUG> if ( text . substring ( ( ( text . length ( ) ) - 1 ) ) . equals ( "." ) ) { <END_BUG> text = text . substring ( 0 , ( ( text . length ( ) ) - 1 ) ) ; } return text . trim ( ) ; } }

Fix:
if ( ( ( text . length ( ) ) > 0 ) && ( text . substring ( ( ( text . length ( ) ) - 1 ) ) . equals ( "." ) ) ) {
Buggy code:
public class RewriteRelation { private KRunState finalState ; private Optional < KRunGraph > executionGraph ; public RewriteRelation ( KRunState finalState ) { } public RewriteRelation ( KRunState finalState , KRunGraph executionTraceGraph ) { } public KRunState getFinalState ( ) { } public void setFinalState ( KRunState finalState ) { } public Optional < KRunGraph > getExecutionGraph ( ) { } public void setExecutionGraph ( KRunGraph executionGraph ) { <START_BUG> this . executionGraph = Optional . of ( executionGraph ) ; <END_BUG> } }

Fix:
this . executionGraph = Optional . ofNullable ( executionGraph ) ;
Buggy code:
public abstract class BeanUtils { private static final Log logger = LogFactory . getLog ( BeanUtils . class ) ; private static final Map < Class < ? > , Boolean > unknownEditorTypes = Collections . synchronizedMap ( new WeakHashMap < Class < ? > , Boolean > ( ) ) ; public static < T > T instantiate ( Class < T > clazz ) throws BeanInstantiationException { } public static < T > T instantiateClass ( Class < T > clazz ) throws BeanInstantiationException { } public static < T > T instantiateClass ( Constructor < T > ctor , Object ... args ) throws BeanInstantiationException { } public static Method findMethod ( Class < ? > clazz , String methodName , Class < ? > ... paramTypes ) { } public static Method findDeclaredMethod ( Class < ? > clazz , String methodName , Class < ? > [ ] paramTypes ) { } public static Method findMethodWithMinimalParameters ( Class < ? > clazz , String methodName ) throws IllegalArgumentException { } public static Method findDeclaredMethodWithMinimalParameters ( Class < ? > clazz , String methodName ) throws IllegalArgumentException { } public static Method findMethodWithMinimalParameters ( Method [ ] methods , String methodName ) throws IllegalArgumentException { } public static Method resolveSignature ( String signature , Class < ? > clazz ) { } public static PropertyDescriptor [ ] getPropertyDescriptors ( Class < ? > clazz ) throws BeansException { CachedIntrospectionResults cr = CachedIntrospectionResults . forClass ( clazz ) ; <START_BUG> return cr . getBeanInfo ( ) . getPropertyDescriptors ( ) ; <END_BUG> } public static PropertyDescriptor getPropertyDescriptor ( Class < ? > clazz , String propertyName ) throws BeansException { } public static PropertyDescriptor findPropertyForMethod ( Method method ) throws BeansException { } public static PropertyEditor findEditorByConvention ( Class < ? > targetType ) { } public static Class < ? > findPropertyType ( String propertyName , Class < ? > [ ] beanClasses ) { } public static MethodParameter getWriteMethodParameter ( PropertyDescriptor pd ) { } public static boolean isSimpleProperty ( Class < ? > clazz ) { } public static boolean isSimpleValueType ( Class < ? > clazz ) { } public static void copyProperties ( Object source , Object target ) throws BeansException { } public static void copyProperties ( Object source , Object target , Class < ? > editable ) throws BeansException { } public static void copyProperties ( Object source , Object target , String [ ] ignoreProperties ) throws BeansException { } private static void copyProperties ( Object source , Object target , Class < ? > editable , String [ ] ignoreProperties ) throws BeansException { } }

Fix:
return cr . getPropertyDescriptors ( ) ;
Buggy code:
@ Configuration @ EnableWebMvcSecurity @ EnableGlobalMethodSecurity ( securedEnabled = true ) public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @ Qualifier ( "restAuthenticationExceptionHandler" ) @ Autowired private SimpleUrlAuthenticationFailureHandler restError ; @ Override public void configure ( WebSecurity web ) throws Exception { } @ Override protected void configure ( HttpSecurity http ) throws Exception { http . csrf ( ) . disable ( ) ; <START_BUG> http . authorizeRequests ( ) . antMatchers ( "//user//singIn" ) . permitAll ( ) . anyRequest ( ) . authenticated ( ) . and ( ) . formLogin ( ) . usernameParameter ( "j_username" ) . passwordParameter ( "j_password" ) . loginProcessingUrl ( "//j_spring_security_check" ) . failureHandler ( restError ) . defaultSuccessUrl ( "//user" ) . loginPage ( "//notLogin" ) . permitAll ( ) . and ( ) . logout ( ) . permitAll ( ) . logoutUrl ( "//logout" ) . logoutSuccessUrl ( "//" ) . invalidateHttpSession ( true ) ; <END_BUG> } @ Configuration protected static class AuthenticationConfiguration extends GlobalAuthenticationConfigurerAdapter { @ Qualifier ( "userDetailsServiseImpl" ) @ Autowired private UserDetailsService userDetailsServise ; @ Override public void init ( AuthenticationManagerBuilder auth ) throws Exception { } } No newline ; at end ; of file ; }

Fix:
http . authorizeRequests ( ) . antMatchers ( "//user//singIn" ) . permitAll ( ) . anyRequest ( ) . authenticated ( ) . and ( ) . formLogin ( ) . usernameParameter ( "j_username" ) . passwordParameter ( "j_password" ) . loginProcessingUrl ( "//j_spring_security_check" ) . failureHandler ( restError ) . defaultSuccessUrl ( "//user" ) . loginPage ( "//notLogin" ) . permitAll ( ) . and ( ) . logout ( ) . permitAll ( ) . logoutUrl ( "//logout" ) . logoutSuccessUrl ( "//notLogin" ) . invalidateHttpSession ( true ) ;
Buggy code:
@ Repository public class DomainSearchByNsNameStrategy extends AbstractDomainSearchStrategy { protected static final Logger LOGGER = LoggerFactory . getLogger ( DomainSearchByNsNameStrategy . class ) ; @ Override public boolean support ( QueryParam queryParam ) { } @ Override public Long searchCount ( QueryParam queryParam , JdbcTemplate jdbcTemplate ) { } @ Override public List < Domain > search ( QueryParam queryParam , JdbcTemplate jdbcTemplate ) { DomainSearchParam domainQueryParam = ( ( DomainSearchParam ) ( queryParam ) ) ; final String punyName = domainQueryParam . getPunyName ( ) ; final String punyNameLikeClause = generateLikeClause ( punyName ) ; final String sql = "select<seq2seq4repair_space>distinct<seq2seq4repair_space>domain.*,status.*<seq2seq4repair_space>from<seq2seq4repair_space>RDAP_DOMAIN<seq2seq4repair_space>domain<seq2seq4repair_space>inner<seq2seq4repair_space>join<seq2seq4repair_space>" + ( ( ( ( "<seq2seq4repair_space>REL_DOMAIN_NAMESERVER<seq2seq4repair_space>rel<seq2seq4repair_space>on<seq2seq4repair_space>domain.DOMAIN_ID<seq2seq4repair_space>=<seq2seq4repair_space>rel.DOMAIN_ID<seq2seq4repair_space>" + "<seq2seq4repair_space>inner<seq2seq4repair_space>join<seq2seq4repair_space>RDAP_NAMESERVER<seq2seq4repair_space>ns<seq2seq4repair_space>" ) + "<seq2seq4repair_space>on<seq2seq4repair_space>rel.NAMESERVER_ID<seq2seq4repair_space>=<seq2seq4repair_space>ns.NAMESERVER_ID<seq2seq4repair_space>" ) + "<seq2seq4repair_space>where<seq2seq4repair_space>ns.LDH_NAME<seq2seq4repair_space>LIKE<seq2seq4repair_space>?<seq2seq4repair_space>" ) + "<seq2seq4repair_space>order<seq2seq4repair_space>by<seq2seq4repair_space>domain.LDH_NAME<seq2seq4repair_space>limit<seq2seq4repair_space>?,?<seq2seq4repair_space>" ) ; final PageBean page = queryParam . getPageBean ( ) ; int startPage = ( page . getCurrentPage ( ) ) - 1 ; startPage = ( startPage >= 0 ) ? startPage : 0 ; final long startRow = startPage * ( page . getMaxRecords ( ) ) ; DomainQueryDaoImpl domainDao = new DomainQueryDaoImpl ( ) ; List < Domain > result = jdbcTemplate . query ( new PreparedStatementCreator ( ) { @ Override public PreparedStatement createPreparedStatement ( Connection connection ) throws SQLException { PreparedStatement ps = connection . prepareStatement ( sql ) ; ps . setString ( 1 , punyNameLikeClause ) ; ps . setLong ( 2 , startRow ) ; ps . setLong ( 3 , page . getMaxRecords ( ) ) ; return ps ; } } , domainDao . new DomainWithStatusResultSetExtractor ( ) ) ; for ( Domain domain : result ) { <START_BUG> domainDao . queryDomainStatus ( domain ) ; <END_BUG> } return result ; } }

Fix:
domainDao . queryDomainStatus ( domain , jdbcTemplate ) ;
Buggy code:
public class AddGroupCardAction extends FrameAction { public AddGroupCardAction ( AbstractFrameController frameController ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> AddressbookFrameController addressbookFrameController = ( ( AddressbookFrameController ) ( frameController ) ) ; <END_BUG> Folder folder = ( ( Folder ) ( addressbookFrameController . getTree ( ) . getView ( ) . getSelectedFolder ( ) ) ) ; if ( folder == null ) return ; EditGroupDialog dialog = new EditGroupDialog ( addressbookFrameController . getView ( ) , addressbookFrameController , null ) ; dialog . setHeaderList ( folder . getHeaderItemList ( ) ) ; dialog . setVisible ( true ) ; if ( dialog . getResult ( ) ) { GroupListCard card = new GroupListCard ( ) ; dialog . updateComponents ( card , null , false ) ; folder . add ( card ) ; addressbookFrameController . getTable ( ) . getView ( ) . setFolder ( folder ) ; } } }

Fix:
AddressbookFrameController addressbookFrameController = ( ( AddressbookFrameController ) ( frameMediator ) ) ;
Buggy code:
public class PageProvider implements IPageProvider { private final Integer renderCount ; private final Integer pageId ; private IPageSource pageSource ; private IRequestablePage pageInstance ; private Class < ? extends IRequestablePage > pageClass ; private PageParameters pageParameters ; public PageProvider ( final int pageId , final Integer renderCount ) { } public PageProvider ( final int pageId , final Class < ? extends IRequestablePage > pageClass , Integer renderCount ) { } public PageProvider ( final int pageId , final Class < ? extends IRequestablePage > pageClass , final PageParameters pageParameters , final Integer renderCount ) { } public PageProvider ( final Class < ? extends IRequestablePage > pageClass , final PageParameters pageParameters ) { } public PageProvider ( Class < ? extends IRequestablePage > pageClass ) { } public PageProvider ( IRequestablePage page ) { } public IRequestablePage getPageInstance ( ) { } public PageParameters getPageParameters ( ) { if ( ( pageParameters ) != null ) { return pageParameters ; } else <START_BUG> if ( ( pageInstance ) != null ) { <END_BUG> return pageInstance . getPageParameters ( ) ; } else { return null ; } } public boolean isNewPageInstance ( ) { } public Class < ? extends IRequestablePage > getPageClass ( ) { } protected IPageSource getPageSource ( ) { } private IRequestablePage getPageInstance ( Integer pageId , Class < ? extends IRequestablePage > pageClass , PageParameters pageParameters , Integer renderCount ) { } private IRequestablePage getStoredPage ( final int pageId ) { } public void detach ( ) { } public void setPageSource ( IPageSource pageSource ) { } private void setPageClass ( Class < ? extends IRequestablePage > pageClass ) { } private void setPageParameters ( PageParameters pageParameters ) { } public Integer getPageId ( ) { } public Integer getRenderCount ( ) { } }

Fix:
if ( ( isNewPageInstance ( ) ) == false ) {
Buggy code:
public class MapActivity extends AppCompatActivity { public static final String EXTRA_MUSEUM_ID = "museumId" ; public static final int NO_EXTRA = - 1 ; private static final String TAG = "MapActivity" ; private static final String EXTRA_ROOM_ID = "roomId" ; private static final int RC_BARCODE_CAPTURE = 156 ; @ Bind ( id . grp_map_container ) ViewGroup grpMapContainer ; @ Bind ( id . room ) RoomView roomView ; private Room room ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onBackPressed ( ) { } @ OnClick ( id . btn_scan ) public void openQrScanner ( ) { } @ Override protected void onPause ( ) { } @ Override protected void onResume ( ) { super . onResume ( ) ; <START_BUG> roomView . resume ( ) ; <END_BUG> } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } }

Fix:
roomView . resume ( this ) ;
Buggy code:
public class SimpleDOMBuilder extends AbstractDOMBuilder implements ISourceElementRequestor { public void acceptProblem ( CategorizedProblem problem ) { } public void acceptImport ( int declarationStart , int declarationEnd , char [ ] [ ] tokens , boolean onDemand , int modifiers ) { } public void acceptPackage ( ImportReference importReference ) { } public IDOMCompilationUnit createCompilationUnit ( String sourceCode , String name ) { } public IDOMCompilationUnit createCompilationUnit ( ICompilationUnit compilationUnit ) { initializeBuild ( compilationUnit . getContents ( ) , true , true ) ; <START_BUG> getParser ( JavaCore . getOptions ( ) ) . parseCompilationUnit ( compilationUnit , false ) ; <END_BUG> return super . createCompilationUnit ( compilationUnit ) ; } protected void enterAbstractMethod ( ISourceElementRequestor . MethodInfo methodInfo ) { } public void enterConstructor ( ISourceElementRequestor . MethodInfo methodInfo ) { } public void enterField ( ISourceElementRequestor . FieldInfo fieldInfo ) { } public void enterInitializer ( int declarationSourceStart , int modifiers ) { } public void enterMethod ( ISourceElementRequestor . MethodInfo methodInfo ) { } public void enterType ( ISourceElementRequestor . TypeInfo typeInfo ) { } public void exitConstructor ( int declarationEnd ) { } public void exitField ( int initializationStart , int declarationEnd , int declarationSourceEnd ) { } public void exitInitializer ( int declarationEnd ) { } protected void exitMember ( int declarationEnd ) { } public void exitMethod ( int declarationEnd , Expression defaultValue ) { } public void exitType ( int declarationEnd ) { } protected SourceElementParser getParser ( Map settings ) { } }

Fix:
getParser ( JavaCore . getOptions ( ) ) . parseCompilationUnit ( compilationUnit , false , null ) ;
Buggy code:
public class ClientDisconnectEvent { @ SubscribeEvent public void onDisconnectedFromServerEvent ( FMLNetworkEvent . ClientDisconnectionFromServerEvent event ) { <START_BUG> System . out . println ( "######<seq2seq4repair_space>Disconnect<seq2seq4repair_space>from<seq2seq4repair_space>server" ) ; <END_BUG> RfToolsDimensionManager . unregisterDimensions ( ) ; KnownDimletConfiguration . clean ( ) ; } }

Fix:
RFTools . log ( "Disconnect<seq2seq4repair_space>from<seq2seq4repair_space>server:<seq2seq4repair_space>Unregistering<seq2seq4repair_space>RFTools<seq2seq4repair_space>dimensions" ) ;
Buggy code:
@ Component public class UserDetailsServiceImpl implements UserDetailsService { @ Autowired private ConvertAdministrators convertAdministrators ; @ Autowired private AdministratorRepository adminRepository ; @ Override public UserDetails loadUserByUsername ( String username ) { <START_BUG> Administrator admin = adminRepository . findByUsername ( username ) ; <END_BUG> if ( admin == null ) { throw new UsernameNotFoundException ( "User<seq2seq4repair_space>not<seq2seq4repair_space>found!" ) ; } return convertAdministrators . convertAdmin ( admin ) ; } No newline ; at end ; of file ; }

Fix:
Administrator admin = adminRepository . findByAdministratorUsername ( username ) ;