nus-yam/ex-repair huggingface dataset:
Buggy code:
public class PlaceDialog extends ActionDialog { World world ; Place place ; Layer layer ; int px ; int py ; Area area_null ; JTextField textfield_name ; JComboBox < Area > combobox_area ; JComboBox < RiskLevel > combobox_risk ; JSpinner spinner_rec_lvl_min ; JSpinner spinner_rec_lvl_max ; public PlaceDialog ( JFrame _parent , World _world , Place _place ) { } public PlaceDialog ( JFrame _parent , World _world , Layer _layer , int _px , int _py ) { } @ Override void create ( ) { <START_BUG> setLayout ( new GridLayout ( 0 , 2 ) ) ; <END_BUG> add ( new JLabel ( "Name" ) ) ; if ( ( place ) != null ) textfield_name = new JTextField ( place . get_name ( ) ) ; else textfield_name = new JTextField ( ) ; add ( textfield_name ) ; area_null = new Area ( "none" , null ) ; add ( new JLabel ( "Area" ) ) ; combobox_area = new JComboBox < Area > ( ) ; combobox_area . addItem ( area_null ) ; for ( Area a : world . get_areas ( ) ) combobox_area . addItem ( a ) ; if ( ( ( place ) != null ) && ( ( place . get_area ( ) ) != null ) ) combobox_area . setSelectedItem ( place . get_area ( ) ) ; add ( combobox_area ) ; add ( new JLabel ( "Risk<seq2seq4repair_space>level" ) ) ; combobox_risk = new JComboBox < RiskLevel > ( ) ; for ( RiskLevel rl : world . get_risk_levels ( ) ) combobox_risk . addItem ( rl ) ; if ( ( ( place ) != null ) && ( ( place . get_risk_level ( ) ) != null ) ) combobox_risk . setSelectedItem ( place . get_risk_level ( ) ) ; add ( combobox_risk ) ; add ( new JLabel ( "Recommended<seq2seq4repair_space>level<seq2seq4repair_space>min" ) ) ; spinner_rec_lvl_min = new JSpinner ( ) ; spinner_rec_lvl_min . setModel ( new SpinnerNumberModel ( ( ( place ) != null ? place . get_rec_lvl_min ( ) : - 1 ) , ( - 1 ) , 1000 , 1 ) ) ; add ( spinner_rec_lvl_min ) ; add ( new JLabel ( "Recommended<seq2seq4repair_space>level<seq2seq4repair_space>max" ) ) ; spinner_rec_lvl_max = new JSpinner ( ) ; spinner_rec_lvl_max . setModel ( new SpinnerNumberModel ( ( ( place ) != null ? place . get_rec_lvl_max ( ) : - 1 ) , ( - 1 ) , 1000 , 1 ) ) ; add ( spinner_rec_lvl_max ) ; JButton button_cancel = new JButton ( "Cancel" ) ; add ( button_cancel ) ; button_cancel . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent arg0 ) { dispose ( ) ; } } ) ; JButton button_ok = new JButton ( "Ok" ) ; add ( button_ok ) ; getRootPane ( ) . setDefaultButton ( button_ok ) ; button_ok . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent arg0 ) { save ( ) ; dispose ( ) ; } } ) ; getRootPane ( ) . registerKeyboardAction ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent arg0 ) { dispose ( ) ; } } , KeyStroke . getKeyStroke ( KeyEvent . VK_ESCAPE , 0 ) , JComponent . WHEN_IN_FOCUSED_WINDOW ) ; pack ( ) ; setLocation ( ( ( getParent ( ) . getX ( ) ) + ( ( ( getParent ( ) . getWidth ( ) ) - ( getWidth ( ) ) ) // 2 ) ) , ( ( getParent ( ) . getY ( ) ) + ( ( ( getParent ( ) . getHeight ( ) ) - ( getHeight ( ) ) ) // 2 ) ) ) ; } public void save ( ) { } public Place get_place ( ) { } }

Fix:
setLayout ( new GridLayout ( 0 , 2 , 4 , 4 ) ) ;
Buggy code:
public class MaxEmbeddedByteArrayFieldStrategy extends MaxEmbeddedLobFieldStrategy { private static final Localizer _loc = Localizer . forPackage ( MaxEmbeddedByteArrayFieldStrategy . class ) ; private int _maxSize = 0 ; protected int getExpectedJavaType ( ) { } protected void update ( OpenJPAStateManager sm , Row row ) throws SQLException { byte [ ] b = PrimitiveWrapperArrays . toByteArray ( sm . fetchObject ( field . getIndex ( ) ) ) ; <START_BUG> if ( ( b == null ) || ( ( b . length ) > ( _maxSize ) ) ) <END_BUG> row . setBytes ( field . getColumns ( ) [ 0 ] , null ) ; else row . setBytes ( field . getColumns ( ) [ 0 ] , b ) ; } protected Boolean isCustom ( OpenJPAStateManager sm , JDBCStore store ) { } protected void putData ( OpenJPAStateManager sm , ResultSet rs , DBDictionary dict ) throws SQLException { } protected Object load ( Column col , Result res , Joins joins ) throws SQLException { } public void map ( boolean adapt ) { } public void initialize ( ) { } }

Fix:
if ( ( b == null ) || ( ( ( b . length ) > ( _maxSize ) ) && ( ! ( field . getColumns ( ) [ 0 ] . isNotNull ( ) ) ) ) )
Buggy code:
public class Helper { public static Path getAssetsFolder ( ) { } public static String getAssetsFolderStr ( ) { } public static List < DataVector > setupTestingData ( int dataSize , int attrSize , int classSize ) { } public static void printData ( List < DataVector > data ) { for ( int i = 0 , len = data . size ( ) ; i < len ; i ++ ) { System . out . print ( data . get ( i ) . cls ) ; System . out . print ( "<seq2seq4repair_space>:<seq2seq4repair_space>" ) ; for ( int j = 0 , len2 = data . get ( i ) . feature . length ; j < len2 ; j ++ ) { <START_BUG> System . out . print ( data . get ( i ) . feature [ i ] ) ; <END_BUG> System . out . print ( ",<seq2seq4repair_space>" ) ; } System . out . println ( ) ; } } public static int getModeInt ( List < Integer > list ) { } }

Fix:
System . out . print ( data . get ( i ) . feature [ j ] ) ;
Buggy code:
public final class Naming { private Naming ( ) { } public static ClusterRegistry getRegistry ( String host , int port ) throws RemoteException { } public static ClusterRegistry getRegistry ( NamingContextHostPort [ ] hp ) throws RemoteException { int n = hp . length ; if ( n == 0 ) return null ; ClusterRegistry r = Naming . getRegistry ( hp [ 0 ] . host , hp [ 0 ] . port ) ; if ( n == 1 ) return r ; <START_BUG> ClusterRegistryImplCStub cstub = new ClusterRegistryImplCStub ( r ) ; <END_BUG> for ( int i = 1 ; i < n ; i ++ ) { cstub . setStub ( Naming . getRegistry ( hp [ i ] . host , hp [ i ] . port ) ) ; } return cstub ; } public static ClusterRegistry getLocalRegistry ( NamingContextHostPort [ ] hp ) throws MalformedURLException , RemoteException { } public static Object lookup ( String name ) throws MalformedURLException , NotBoundException , RemoteException { } public static void bind ( String name , Remote obj ) throws MalformedURLException , AlreadyBoundException , RemoteException { } public static void rebind ( String name , Remote obj ) throws MalformedURLException , RemoteException { } public static void unbind ( String name ) throws MalformedURLException , NotBoundException , RemoteException { } public static String [ ] list ( String name ) throws MalformedURLException , RemoteException { } }

Fix:
ClusterRegistryImpl_Cluster cstub = new ClusterRegistryImpl_Cluster ( r ) ;
Buggy code:
public class ZkCollectionLock { private WriteLock lock ; private volatile boolean gotLock = false ; public ZkCollectionLock ( SolrZkClient zkClient ) { } public void lock ( ) throws InterruptedException , KeeperException { if ( lock . lock ( ) ) { gotLock = true ; return ; } int cnt = 0 ; while ( ! ( gotLock ) ) { if ( ( cnt ++ ) == 15 ) { lock . unlock ( ) ; <START_BUG> throw new RuntimeException ( "Coulnd't<seq2seq4repair_space>aquire<seq2seq4repair_space>the<seq2seq4repair_space>shard<seq2seq4repair_space>lock" ) ; <END_BUG> } Thread . sleep ( 1000 ) ; } } public void unlock ( ) { } }

Fix:
throw new RuntimeException ( "Couldn't<seq2seq4repair_space>acquire<seq2seq4repair_space>the<seq2seq4repair_space>shard<seq2seq4repair_space>lock" ) ;
Buggy code:
public class BinaryMember extends Member { protected BinaryMember ( int type , IJavaElement parent , String name ) { } public void copy ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public ISourceRange getNameRange ( ) { } public ISourceRange getSourceRange ( ) throws JavaModelException { } public boolean isBinary ( ) { } public boolean isStructureKnown ( ) throws JavaModelException { } public void move ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected void openHierarchy ( ) throws JavaModelException { Openable openableParent = ( ( Openable ) ( getOpenableParent ( ) ) ) ; if ( openableParent != null ) { JavaElementInfo openableParentInfo = ( ( JavaElementInfo ) ( fgJavaModelManager . getInfo ( ( ( IJavaElement ) ( openableParent ) ) ) ) ) ; if ( openableParentInfo == null ) { <START_BUG> openableParent . openWhenClosed ( null ) ; <END_BUG> openableParentInfo = ( ( JavaElementInfo ) ( fgJavaModelManager . getInfo ( ( ( IJavaElement ) ( openableParent ) ) ) ) ) ; } ClassFileInfo cfi = ( ( ClassFileInfo ) ( openableParentInfo ) ) ; cfi . getBinaryChildren ( ) ; } } public void rename ( String name , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public void setContents ( String contents , IProgressMonitor monitor ) throws JavaModelException { } }

Fix:
openableParent . openWhenClosed ( null , null ) ;
Buggy code:
public class ValidationError implements IClusterable , IValidationError { private static final long serialVersionUID = 1L ; private static final Map < String , Object > EMPTY_VARS = Collections . emptyMap ( ) ; private final List < String > keys = new ArrayList < String > ( 1 ) ; private Map < String , Object > vars ; private String message ; public ValidationError ( ) { } public ValidationError addMessageKey ( String key ) { } public ValidationError setVariable ( String name , Object value ) { } public final Map < String , Object > getVariables ( ) { } public final ValidationError setVariables ( Map < String , Object > vars ) { } public final String getErrorMessage ( IErrorMessageSource messageSource ) { } public final String getMessage ( ) { } public final ValidationError setMessage ( String message ) { } public List < String > getKeys ( ) { } @ Override public String toString ( ) { <START_BUG> StringBuffer tostring = new StringBuffer ( ) ; <END_BUG> tostring . append ( "[" ) . append ( Classes . simpleName ( getClass ( ) ) ) ; tostring . append ( "<seq2seq4repair_space>message=[" ) . append ( message ) ; tostring . append ( "],<seq2seq4repair_space>keys=[" ) ; if ( ( keys ) != null ) { Iterator < String > i = keys . iterator ( ) ; while ( i . hasNext ( ) ) { tostring . append ( i . next ( ) ) ; if ( i . hasNext ( ) ) { tostring . append ( ",<seq2seq4repair_space>" ) ; } } } else { tostring . append ( "null" ) ; } tostring . append ( "],<seq2seq4repair_space>variables=[" ) ; if ( ( vars ) != null ) { Iterator < Map . Entry < String , Object > > i = vars . entrySet ( ) . iterator ( ) ; while ( i . hasNext ( ) ) { final Map . Entry < String , Object > e = i . next ( ) ; tostring . append ( "[" ) . append ( e . getKey ( ) ) . append ( "=" ) . append ( e . getValue ( ) ) . append ( "]" ) ; if ( i . hasNext ( ) ) { tostring . append ( "," ) ; } } } else { tostring . append ( "null" ) ; } tostring . append ( "]" ) ; tostring . append ( "]" ) ; return tostring . toString ( ) ; } }

Fix:
StringBuilder tostring = new StringBuilder ( ) ;
Buggy code:
public class EvaluationTests extends ExpressionTestCase { public void testRelOperatorGT01 ( ) { } public void testRelOperatorLT01 ( ) { } public void testRelOperatorLE01 ( ) { } public void testRelOperatorGE01 ( ) { } public void testRelOperatorGE02 ( ) { } public void testRelOperatorsIs01 ( ) { } public void testRelOperatorsIs04 ( ) { } public void testRelOperatorsIs05 ( ) { } public void testRelOperatorsIs06 ( ) { } public void testRelOperatorsMatches01 ( ) { } public void testRelOperatorsMatches02 ( ) { } public void testRelOperatorsMatches03 ( ) { } public void testRelOperatorsMatches04 ( ) { } public void testRelOperatorsMatches05 ( ) { } public void testMixingOperators01 ( ) { } public void testPropertyField01 ( ) { evaluate ( "name" , "Nikola<seq2seq4repair_space>Tesla" , String . class , false ) ; <START_BUG> evaluateAndCheckError ( "madeup" , PROPERTY_OR_FIELD_NOT_FOUND , 0 , "madeup" , "org.springframework.expression.spel.testresources.Inventor" ) ; <END_BUG> } public void testPropertiesNested01 ( ) { } public void testPropertiesNested02 ( ) { } public void testMethods01 ( ) { } public void testMethods02 ( ) { } public void testConstructorInvocation01 ( ) { } public void testConstructorInvocation05 ( ) { } public void testConstructorInvocation06 ( ) throws Exception { } public void testUnaryMinus01 ( ) { } public void testUnaryPlus01 ( ) { } public void testUnaryNot01 ( ) { } public void testAssignmentToVariables01 ( ) { } public void testTernaryOperator01 ( ) { } public void testTernaryOperator02 ( ) { } public void testTernaryOperator03 ( ) { } public void testTernaryOperator04 ( ) throws Exception { } public void testIndexer03 ( ) { } public void testIndexerError ( ) { } public void testStaticRef02 ( ) { } public void testVariableAccess01 ( ) { } public void testFunctionAccess01 ( ) { } public void testFunctionAccess02 ( ) { } public void testTypeReferences01 ( ) { } public void testTypeReferencesAndQualifiedIdentifierCaching ( ) throws Exception { } public void testTypeReferencesPrimitive ( ) { } public void testTypeReferences02 ( ) { } public void testStringType ( ) { } public void testNumbers01 ( ) { } public void testAdvancedNumerics ( ) throws Exception { } public void testComparison ( ) throws Exception { } public void testResolvingList ( ) throws Exception { } public void testResolvingString ( ) throws Exception { } }

Fix:
evaluateAndCheckError ( "madeup" , PROPERTY_OR_FIELD_NOT_READABLE , 0 , "madeup" , "org.springframework.expression.spel.testresources.Inventor" ) ;
Buggy code:
@ SuppressWarnings ( "serial" ) public class OriginalDataView extends NavigationView { public OriginalDataView ( ) { } public void buildView ( ) { if ( ( this . getData ( ) ) == null ) return ; setCaption ( ( ( String ) ( this . getData ( ) ) ) ) ; HadoopData hd = HadoopData . getInstance ( ) ; HashMap < String , String > des = hd . getOriginalDes ( ( ( String ) ( this . getData ( ) ) ) ) ; final VerticalComponentGroup content = new VerticalComponentGroup ( ) ; final Button submitButton = new Button ( "Cluster" ) ; submitButton . setData ( this . getData ( ) ) ; submitButton . addClickListener ( new ClickListener ( ) { @ Override public void buttonClick ( ClickEvent event ) { ShellExec shell = new ShellExec ( ) ; Button nb = ( ( Button ) ( event . getComponent ( ) ) ) ; ArrayList < String > tmp = new ArrayList < String > ( ) ; tmp . add ( ( ( String ) ( nb . getData ( ) ) ) ) ; shell . setParas ( tmp ) ; shell . execCluster ( ) ; } } ) ; if ( des != null ) { TextField field = new TextField ( "Name" ) ; field . setEnabled ( false ) ; field . setInputPrompt ( des . get ( "name" ) ) ; content . addComponent ( field ) ; field = new TextField ( "Description" ) ; field . setEnabled ( false ) ; field . setInputPrompt ( des . get ( "des" ) ) ; content . addComponent ( field ) ; field = new TextField ( "Number" ) ; field . setEnabled ( false ) ; field . setInputPrompt ( des . get ( "num" ) ) ; content . addComponent ( field ) ; final Button showButton = new Button ( "Show<seq2seq4repair_space>in<seq2seq4repair_space>Map" ) ; showButton . setData ( this . getData ( ) ) ; showButton . addClickListener ( new ClickListener ( ) { @ Override public void buttonClick ( ClickEvent event ) { ClinicalTrialsTouchKitUI app = ClinicalTrialsTouchKitUI . getApp ( ) ; Button btn = ( ( Button ) ( event . getComponent ( ) ) ) ; app . showOriginalDataSet ( ( ( String ) ( btn . getData ( ) ) ) ) ; } } ) ; setContent ( new com . vaadin . ui . CssLayout ( content , showButton , submitButton ) ) ; } else { ShellExec shell = new ShellExec ( ) ; ArrayList < String > tmp = new ArrayList < String > ( ) ; <START_BUG> tmp . add ( ( ( String ) ( this . getData ( ) ) ) ) ; <END_BUG> shell . setParas ( tmp ) ; shell . execOriginal ( ) ; setContent ( new com . vaadin . ui . CssLayout ( content , submitButton ) ) ; } } }

Fix:
tmp . add ( ( ( "\"" + ( ( String ) ( this . getData ( ) ) ) ) + "\"" ) ) ;
Buggy code:
public class CSharpFileStubElementType extends IStubFileElementType < CSharpFileStub > { public static final Key < Set < String > > PREPROCESSOR_VARIABLES = Key . create ( "csharp.preprocessor.variables" ) ; public CSharpFileStubElementType ( ) { } @ Override public StubBuilder getBuilder ( ) { } @ RequiredReadAction @ Override protected ASTNode doParseContents ( @ NotNull ASTNode chameleon , @ NotNull PsiElement psi ) { } @ NotNull @ Deprecated public static List < TextRange > collectDisabledBlocks ( PsiFile macroFile , @ NotNull DotNetSimpleModuleExtension < ? > extension ) { } @ NotNull @ Deprecated private static List < TextRange > collectDisabledBlocks ( PsiFile templateFile , @ NotNull final List < String > baseVariables ) { } @ NotNull @ Override public CSharpFileStub deserialize ( @ NotNull StubInputStream dataStream , StubElement parentStub ) throws IOException { } @ Override public int getStubVersion ( ) { <START_BUG> return 76 ; <END_BUG> } @ NotNull @ Override public String getExternalId ( ) { } }

Fix:
return 77 ;
Buggy code:
public class ZipArchiveInputStream extends ArchiveInputStream { private static final int SHORT = 2 ; private static final int WORD = 4 ; private final ZipEncoding zipEncoding ; private final boolean useUnicodeExtraFields ; private final InputStream in ; private final Inflater inf = new Inflater ( true ) ; private final CRC32 crc = new CRC32 ( ) ; private final byte [ ] buf = new byte [ ZipArchiveOutputStream . BUFFER_SIZE ] ; private ZipArchiveEntry current = null ; private boolean closed = false ; private boolean hitCentralDirectory = false ; private int readBytesOfEntry = 0 ; private int offsetInBuffer = 0 ; private int bytesReadFromStream = 0 ; private int lengthOfLastRead = 0 ; private boolean hasDataDescriptor = false ; private static final int LFH_LEN = 30 ; public ZipArchiveInputStream ( InputStream inputStream ) { } public ZipArchiveInputStream ( InputStream inputStream , String encoding , boolean useUnicodeExtraFields ) { } public ZipArchiveEntry getNextZipEntry ( ) throws IOException { } public ArchiveEntry getNextEntry ( ) throws IOException { } public boolean canRead ( ArchiveEntry ae ) { if ( ae instanceof ZipArchiveEntry ) { ZipArchiveEntry ze = ( ( ZipArchiveEntry ) ( ae ) ) ; return ( ! ( ze . isEncrypted ( ) ) ) && ( ( ( ze . getMethod ( ) ) == ( ZipArchiveEntry . STORED ) ) || ( ( ze . getMethod ( ) ) == ( ZipArchiveEntry . DEFLATED ) ) ) ; } <START_BUG> return super . canRead ( ae ) ; <END_BUG> } public int read ( byte [ ] buffer , int start , int length ) throws IOException { } public void close ( ) throws IOException { } public long skip ( long value ) throws IOException { } public static boolean matches ( byte [ ] signature , int length ) { } private static boolean checksig ( byte [ ] signature , byte [ ] expected ) { } private void closeEntry ( ) throws IOException { } private void fill ( ) throws IOException { } private void readFully ( byte [ ] b ) throws IOException { } }

Fix:
return false ;
Buggy code:
public class AbstractIdentifierAwareJaxRsProvider { @ Context private UriInfo uriInfo ; protected final String getIdentifier ( ) { <START_BUG> return uriInfo . getPathParameters ( ) . getFirst ( IDENTIFIER ) ; <END_BUG> } protected final Optional < InstanceIdentifierContext > getIdentifierWithSchema ( ) { } protected InstanceIdentifierContext getInstanceIdentifierContext ( ) { } protected UriInfo getUriInfo ( ) { } }

Fix:
return uriInfo . getPathParameters ( false ) . getFirst ( IDENTIFIER ) ;
Buggy code:
public class WebConnectorRemove extends AbstractWebSubsystemUpdate < Void > { private static final long serialVersionUID = - 5287654247889240561L ; private final String name ; public WebConnectorRemove ( final String name ) { } protected void applyUpdate ( WebSubsystemElement element ) throws UpdateFailedException { } protected < P > void applyUpdate ( UpdateContext context , UpdateResultHandler < ? super Void , P > resultHandler , P param ) { <START_BUG> final ServiceController < ? > service = context . getServiceContainer ( ) . getService ( JBOSS_WEB_CONNECTOR . append ( name ) ) ; <END_BUG> if ( service == null ) { resultHandler . handleSuccess ( null , param ) ; } else { service . addListener ( new UpdateResultHandler . ServiceRemoveListener < P > ( resultHandler , param ) ) ; } } public AbstractSubsystemUpdate < WebSubsystemElement , ? > getCompensatingUpdate ( WebSubsystemElement original ) { } }

Fix:
final ServiceController < ? > service = context . getServiceRegistry ( ) . getService ( JBOSS_WEB_CONNECTOR . append ( name ) ) ;
Buggy code:
public class DomReadyOrderPage extends WebPage { private static final long serialVersionUID = 1L ; public DomReadyOrderPage ( ) { } private static class Link extends AjaxFallbackLink { private static final long serialVersionUID = 1L ; public Link ( String id ) { } @ Override public void renderHead ( HtmlHeaderContainer container ) { } @ Override public void onClick ( AjaxRequestTarget target ) { <START_BUG> target . addComponent ( this ) ; <END_BUG> } } }

Fix:
target . add ( this ) ;
Buggy code:
@ ServerSetup ( NonExistingProfileTestCase . NonExistingProfileTestCaseSetup . class ) @ RunWith ( Arquillian . class ) public class NonExistingProfileTestCase extends AbstractLoggingTest { private static Logger log = Logger . getLogger ( NonExistingProfileTestCase . class ) ; @ ArquillianResource ( LoggingServlet . class ) URL url ; private static final String LOG_FILE_NAME = "non-existing-profile-test.log" ; private static File loggingTestLog ; static class NonExistingProfileTestCaseSetup extends AbstractMgmtServerSetupTask { @ Override protected void doSetup ( ManagementClient managementClient ) throws Exception { } @ Override public void tearDown ( ManagementClient managementClient , String containerId ) throws Exception { } } @ Deployment public static WebArchive createDeployment ( ) { } @ AfterClass @ RunAsClient public static void cleanCustomFile ( ) { } @ Test @ RunAsClient public void warningMessageTest ( ) throws IOException { BufferedReader br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( NonExistingProfileTestCase . loggingTestLog ) , StandardCharsets . UTF_8 ) ) ; String line ; boolean warningFound = false ; while ( ( line = br . readLine ( ) ) != null ) { <START_BUG> if ( line . contains ( "WFLYLOG0010" ) ) { <END_BUG> warningFound = true ; break ; } } br . close ( ) ; Assert . assertTrue ( warningFound ) ; } @ Test @ RunAsClient public void defaultLoggingTest ( ) throws IOException { } }

Fix:
if ( line . contains ( "JBAS011509" ) ) {
Buggy code:
public class AjaxLazyLoadPanelTesterTest extends WicketTestCase { public void test ( ) { final Page dummyPanelPage = new DummyPanelPage ( new TestPanelSource ( ) { private static final long serialVersionUID = 1L ; public Panel getTestPanel ( String panelId ) { return new AjaxLazyLoadPanel ( panelId ) { private static final long serialVersionUID = 1L ; @ Override public Component getLazyLoadComponent ( String markupId ) { return new Label ( markupId , "lazy<seq2seq4repair_space>panel<seq2seq4repair_space>test" ) . setRenderBodyOnly ( true ) ; } } ; } } ) ; tester . startPage ( dummyPanelPage ) ; <START_BUG> tester . assertLabel ( "panel:content" , "<img<seq2seq4repair_space>alt=\"Loading...\"<seq2seq4repair_space>src=\"resource//org.apache.wicket.ajax.AbstractDefaultAjaxBehavior//indicator.gif\"//>" ) ; <END_BUG> AjaxLazyLoadPanelTester . executeAjaxLazyLoadPanel ( tester , dummyPanelPage ) ; tester . debugComponentTrees ( ) ; tester . assertLabel ( "panel:content" , "lazy<seq2seq4repair_space>panel<seq2seq4repair_space>test" ) ; String doc = tester . getLastResponseAsString ( ) ; assertNotNull ( doc ) ; } }

Fix:
tester . assertLabel ( "panel:content" , "<img<seq2seq4repair_space>alt=\"Loading...\"<seq2seq4repair_space>src=\".//resource//org.apache.wicket.ajax.AbstractDefaultAjaxBehavior//indicator.gif\"//>" ) ;
Buggy code:
public abstract class ResourceInstaller { public static ResourceInstaller newInstance ( Coordination coordination , Resource resource , AriesSubsystem subsystem ) { } protected final Coordination coordination ; protected final AriesSubsystem provisionTo ; protected final Resource resource ; protected final AriesSubsystem subsystem ; public ResourceInstaller ( Coordination coordination , Resource resource , AriesSubsystem subsystem ) { } public abstract Resource install ( ) throws Exception { } protected void addConstituent ( final Resource resource ) { } protected void addReference ( final Resource resource ) { } protected String getLocation ( ) { <START_BUG> return ( ( ( ( provisionTo . getSubsystemId ( ) ) + "@" ) + ( provisionTo . getSymbolicName ( ) ) ) + "@" ) + ( ResourceHelper . getSymbolicNameAttribute ( resource ) ) ; <END_BUG> } protected boolean isContent ( ) { } protected boolean isDependency ( ) { } protected boolean isReferencedProvisionTo ( ) { } protected boolean isReferencedSubsystem ( ) { } }

Fix:
return ( ( provisionTo . getLocation ( ) ) + "!//" ) + ( ResourceHelper . getLocation ( resource ) ) ;
Buggy code:
public class GenerateIupacEncoding extends RJavaBridge { public final double maxCopyNumber ; private GenerateIupacEncoding ( int maxCopyNumber ) { } public static GenerateIupacEncoding withCopyNumber ( int maxCopyNumber ) { } public String getResourceDir ( ) { <START_BUG> return "//Users//sohrab//project//conifercp//src//main//resources//" ; <END_BUG> } @ Override public String rTemplateResourceURL ( ) { } public String getOutput ( ) { } private transient String output ; public void toUPAC ( String output ) { } public static void main ( String [ ] args ) { } }

Fix:
return ( System . getProperty ( "user.dir" ) ) + "//src//main//resources//" ;
Buggy code:
public class Server { private int port ; private final Logger logger = Logger . getLogger ( Server . class . getName ( ) ) ; public static void main ( String [ ] args ) throws Exception { } public Server ( int port ) { } public void run ( ) throws Exception { EventLoopGroup bossGroup = new NioEventLoopGroup ( ) ; EventLoopGroup workerGroup = new NioEventLoopGroup ( ) ; try { ServerBootstrap bootStrap = new ServerBootstrap ( ) . group ( bossGroup , workerGroup ) . channel ( NioServerSocketChannel . class ) . childHandler ( new Initializer ( ) ) . option ( SO_BACKLOG , 128 ) . childOption ( SO_KEEPALIVE , true ) ; logger . info ( ( ( "서버를<seq2seq4repair_space>시작합니다.<seq2seq4repair_space>(" + ( port ) ) + ")" ) ) ; ChannelFuture f = bootStrap . bind ( port ) . sync ( ) ; <START_BUG> DataBase . connect ( System . getEnv ( "DANBI_DATABASE_URL" ) , "docker" , "docker" ) ; <END_BUG> GameData . loadSettings ( ) ; Map . loadMap ( 2 ) ; while ( Handler . isRunning ) { Thread . sleep ( 100 ) ; for ( Map map : Map . getAll ( ) . values ( ) ) { map . update ( ) ; } } f . channel ( ) . closeFuture ( ) . sync ( ) ; } finally { workerGroup . shutdownGracefully ( ) ; bossGroup . shutdownGracefully ( ) ; bossGroup . terminationFuture ( ) . sync ( ) ; workerGroup . terminationFuture ( ) . sync ( ) ; } } }

Fix:
DataBase . connect ( System . getenv ( "DANBI_DATABASE_URL" ) , "docker" , "docker" ) ;
Buggy code:
public class MeCommand extends CommandAreaShop { public MeCommand ( AreaShop plugin ) { } @ Override public String getCommandStart ( ) { } @ Override public String getHelp ( CommandSender target ) { } @ Override public void execute ( CommandSender sender , Command command , String [ ] args ) { if ( ! ( sender . hasPermission ( "areashop.me" ) ) ) { plugin . message ( sender , "me-noPermission" ) ; return ; } if ( ! ( sender instanceof Player ) ) { plugin . message ( sender , "me-notAPlayer" ) ; return ; } Player player = ( ( Player ) ( sender ) ) ; Set < RentRegion > rentRegions = new HashSet < RentRegion > ( ) ; for ( RentRegion region : plugin . getFileManager ( ) . getRents ( ) ) { if ( region . isOwner ( player ) ) { rentRegions . add ( region ) ; } } Set < BuyRegion > buyRegions = new HashSet < BuyRegion > ( ) ; for ( BuyRegion region : plugin . getFileManager ( ) . getBuys ( ) ) { if ( region . isOwner ( player ) ) { buyRegions . add ( region ) ; } } if ( rentRegions . isEmpty ( ) ) { plugin . message ( player , "me-noRentRegions" ) ; } else { plugin . message ( player , "me-rentRegions" ) ; for ( RentRegion region : rentRegions ) { plugin . messageNoPrefix ( player , "me-rentLine" , region ) ; } } if ( buyRegions . isEmpty ( ) ) { plugin . message ( player , "me-noBuyRegions" ) ; } else { plugin . message ( player , "me-buyRegions" ) ; for ( BuyRegion region : buyRegions ) { plugin . messageNoPrefix ( player , "me-buyLine" , region ) ; } } Set < GeneralRegion > friendRegions = new HashSet < GeneralRegion > ( ) ; for ( GeneralRegion region : plugin . getFileManager ( ) . getRegions ( ) ) { <START_BUG> if ( region . getFriends ( ) . contains ( player . getUniqueId ( ) ) ) { <END_BUG> friendRegions . add ( region ) ; } } if ( friendRegions . isEmpty ( ) ) { plugin . message ( player , "me-noFriendRegions" ) ; } else { plugin . message ( player , "me-friendRegions" ) ; for ( GeneralRegion region : friendRegions ) { plugin . messageNoPrefix ( player , "me-friendLine" , region ) ; } } } @ Override public List < String > getTabCompleteList ( int toComplete , String [ ] start ) { } }

Fix:
if ( ( ( region . getFriends ( ) ) != null ) && ( region . getFriends ( ) . contains ( player . getUniqueId ( ) ) ) ) {
Buggy code:
public class ContinuedFraction { private int x ; private int y ; private ArrayList < Integer > tempCoeff = new ArrayList < Integer > ( ) ; private int [ ] coeff ; private ArrayList < int [ ] > convergents = new ArrayList < int [ ] > ( ) ; public ContinuedFraction ( int x , int y ) { } private void generateCoeffs ( int x , int y ) { } private int [ ] convergentStep ( int a , int b , int n ) { } private int [ ] convergent ( int start ) { } private void calcConvergents ( ) { convergents . add ( new int [ ] { 1 , coeff [ 1 ] } ) ; for ( int i = 2 ; i < ( ( coeff . length ) - 1 ) ; i ++ ) { convergents . add ( convergent ( i ) ) ; } <START_BUG> convergents . add ( new int [ ] { x , y } ) ; <END_BUG> } public ArrayList < int [ ] > getConvergents ( ) { } public static int [ ] Simplify ( int a , int b ) { } public static int gcd ( int a , int b ) { } public static void main ( String [ ] args ) { } }

Fix:
convergents . add ( ContinuedFraction . Simplify ( x , y ) ) ;
Buggy code:
public class ViewAccountInfoPanelAction extends AbstractSelectableAction { public ViewAccountInfoPanelAction ( FrameMediator frameMediator ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> ( ( org . columba . mail . gui . composer . ComposerView ) ( frameMediator . getBaseView ( ) ) ) . showAccountInfoPanel ( ) ; <END_BUG> } }

Fix:
( ( org . columba . mail . gui . composer . ComposerView ) ( frameMediator . getView ( ) ) ) . showAccountInfoPanel ( ) ;
Buggy code:
public class DiskDataStore implements IDataStore { private static final Logger log = LoggerFactory . getLogger ( DiskDataStore . class ) ; private static final String INDEX_FILE_NAME = "DiskDataStoreIndex" ; private final String applicationName ; private final Bytes maxSizePerPageSession ; private final File fileStoreFolder ; private final ConcurrentMap < String , DiskDataStore . SessionEntry > sessionEntryMap ; public DiskDataStore ( final String applicationName , final File fileStoreFolder , final Bytes maxSizePerSession ) { } public void destroy ( ) { } public byte [ ] getData ( final String sessionId , final int id ) { } public boolean isReplicated ( ) { } public void removeData ( final String sessionId , final int id ) { } public void removeData ( final String sessionId ) { } public void storeData ( final String sessionId , final int id , final byte [ ] data ) { DiskDataStore . SessionEntry sessionEntry = getSessionEntry ( sessionId , true ) ; if ( sessionEntry != null ) { <START_BUG> DiskDataStore . log . debug ( "Stroing<seq2seq4repair_space>data<seq2seq4repair_space>for<seq2seq4repair_space>page<seq2seq4repair_space>with<seq2seq4repair_space>id<seq2seq4repair_space>'{}'<seq2seq4repair_space>in<seq2seq4repair_space>session<seq2seq4repair_space>with<seq2seq4repair_space>id<seq2seq4repair_space>'{}'" , new Object [ ] { id , sessionId } ) ; <END_BUG> sessionEntry . savePage ( id , data ) ; } } protected DiskDataStore . SessionEntry getSessionEntry ( final String sessionId , final boolean create ) { } @ SuppressWarnings ( "unchecked" ) private void loadIndex ( ) { } private void saveIndex ( ) { } protected static class SessionEntry implements Serializable { private static final long serialVersionUID = 1L ; private final String sessionId ; private transient DiskDataStore diskDataStore ; private String fileName ; private PageWindowManager manager ; private boolean unbound = false ; protected SessionEntry ( DiskDataStore diskDataStore , String sessionId ) { } public PageWindowManager getManager ( ) { } private String getFileName ( ) { } public String getSessionId ( ) { } public synchronized void savePage ( int pageId , byte [ ] data ) { } public synchronized void removePage ( int pageId ) { } public byte [ ] loadPage ( PageWindow window ) { } private FileChannel getFileChannel ( boolean create ) { } public synchronized byte [ ] loadPage ( int id ) { } public synchronized void unbind ( ) { } } private String getSessionFileName ( String sessionId , boolean createSessionFolder ) { } protected File getStoreFolder ( ) { } protected File getSessionFolder ( String sessionId , final boolean create ) { } }

Fix:
DiskDataStore . log . debug ( "Storing<seq2seq4repair_space>data<seq2seq4repair_space>for<seq2seq4repair_space>page<seq2seq4repair_space>with<seq2seq4repair_space>id<seq2seq4repair_space>'{}'<seq2seq4repair_space>in<seq2seq4repair_space>session<seq2seq4repair_space>with<seq2seq4repair_space>id<seq2seq4repair_space>'{}'" , new Object [ ] { id , sessionId } ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class OneOffPatchTestCase { @ ArquillianResource private ContainerController controller ; @ Test public void testOneOffPatchAddingAMiscFile ( ) throws Exception { controller . start ( PatchingTestUtil . CONTAINER ) ; File tempDir = mkdir ( new File ( System . getProperty ( "java.io.tmpdir" ) ) , PatchingTestUtil . randomString ( ) ) ; String patchID = PatchingTestUtil . randomString ( ) ; File oneOffPatchDir = mkdir ( tempDir , patchID ) ; ContentModification miscFileAdded = ContentModificationUtils . addMisc ( oneOffPatchDir , patchID , "content" , "awesomeDirectory" , "awesomeFile" ) ; ProductConfig productConfig = new ProductConfig ( PatchingTestUtil . PRODUCT , PatchingTestUtil . AS_VERSION , "consoleSlot" ) ; <START_BUG> Patch oneOffPatch = PatchBuilder . create ( ) . setPatchId ( patchID ) . setDescription ( "A<seq2seq4repair_space>one-off<seq2seq4repair_space>patch<seq2seq4repair_space>used<seq2seq4repair_space>for<seq2seq4repair_space>testing<seq2seq4repair_space>purposes." ) . oneOffPatchIdentity ( productConfig . getProductName ( ) , productConfig . getProductVersion ( ) , NOT_PATCHED ) . getParent ( ) . addContentModification ( miscFileAdded ) . build ( ) ; <END_BUG> PatchingTestUtil . createPatchXMLFile ( oneOffPatchDir , oneOffPatch ) ; File zippedPatch = PatchingTestUtil . createZippedPatchFile ( oneOffPatchDir , patchID ) ; System . out . println ( ( "ZIPFILE:<seq2seq4repair_space>" + ( zippedPatch . getAbsolutePath ( ) ) ) ) ; CliUtilsForPatching . applyPatch ( zippedPatch . getAbsolutePath ( ) ) ; controller . stop ( PatchingTestUtil . CONTAINER ) ; controller . start ( PatchingTestUtil . CONTAINER ) ; String path = ( PatchingTestUtil . AS_DISTRIBUTION ) + "//awesomeDirectory//awesomeFile" ; Assert . assertTrue ( path , new File ( path ) . exists ( ) ) ; controller . stop ( PatchingTestUtil . CONTAINER ) ; controller . start ( PatchingTestUtil . CONTAINER ) ; CliUtilsForPatching . rollbackPatch ( patchID ) ; controller . stop ( PatchingTestUtil . CONTAINER ) ; controller . start ( PatchingTestUtil . CONTAINER ) ; Assert . assertFalse ( new File ( path ) . exists ( ) ) ; controller . stop ( PatchingTestUtil . CONTAINER ) ; } }

Fix:
Patch oneOffPatch = PatchBuilder . create ( ) . setPatchId ( patchID ) . setDescription ( "A<seq2seq4repair_space>one-off<seq2seq4repair_space>patch<seq2seq4repair_space>used<seq2seq4repair_space>for<seq2seq4repair_space>testing<seq2seq4repair_space>purposes." ) . oneOffPatchIdentity ( productConfig . getProductName ( ) , productConfig . getProductVersion ( ) ) . getParent ( ) . addContentModification ( miscFileAdded ) . build ( ) ;
Buggy code:
public class SnapshotReader implements BufferInput < SnapshotReader > { private final Buffer buffer ; private final Snapshot snapshot ; SnapshotReader ( Buffer buffer , Snapshot snapshot ) { } @ Override public long remaining ( ) { } @ Override public boolean hasRemaining ( ) { } @ Override public SnapshotReader skip ( long bytes ) { } @ Override public SnapshotReader read ( Bytes bytes ) { } @ Override public SnapshotReader read ( byte [ ] bytes ) { } @ Override public SnapshotReader read ( Bytes bytes , long offset , long length ) { } @ Override public SnapshotReader read ( byte [ ] bytes , long offset , long length ) { } @ Override public SnapshotReader read ( Buffer buffer ) { <START_BUG> buffer . read ( buffer ) ; <END_BUG> return this ; } @ Override public int readByte ( ) { } @ Override public int readUnsignedByte ( ) { } @ Override public char readChar ( ) { } @ Override public short readShort ( ) { } @ Override public int readUnsignedShort ( ) { } @ Override public int readMedium ( ) { } @ Override public int readUnsignedMedium ( ) { } @ Override public int readInt ( ) { } @ Override public long readUnsignedInt ( ) { } @ Override public long readLong ( ) { } @ Override public float readFloat ( ) { } @ Override public double readDouble ( ) { } @ Override public boolean readBoolean ( ) { } @ Override public String readString ( ) { } @ Override public String readUTF8 ( ) { } @ Override public void close ( ) { } }

Fix:
this . buffer . read ( buffer ) ;
Buggy code:
public class FileTransferNamespace extends Namespace { private static final long serialVersionUID = 8204058147686930765L ; public static final String PROTOCOL = Messages . FileTransferNamespace_Namespace_Protocol ; private String getInitFromExternalForm ( Object [ ] args ) { } public ID createInstance ( Object [ ] args ) throws IDCreateException { } public String [ ] getSupportedSchemes ( ) { } public String getScheme ( ) { } public Class [ ] [ ] getSupportedParameterTypes ( ) { <START_BUG> return new Class [ ] [ ] { new Class [ ] { URL . class } , new Class [ ] { String . class } } ; <END_BUG> } }

Fix:
return new Class [ ] [ ] { new Class [ ] { URL . class } , new Class [ ] { String . class } , new Class [ ] { URI . class } } ;
Buggy code:
class DataHelper { LocalPersistance local = new LocalPersistance ( ) ; NetworkPersistance network = new NetworkPersistance ( ) ; public void saveClaim ( Claim claim ) { } public void DeleteClaim ( String claimID ) { } public void saveClaimExpenses ( ExpenseItemList expenseList ) { } public void loadClaimsByUserName ( String userName ) { if ( DataManager . isNetworkAvailable ( ) ) { new LoadASyncTask ( ) . execute ( userName ) ; } else { <START_BUG> local . LoadClaims ( userName , DataManager . getCurrentContext ( ) ) ; <END_BUG> } } public String LoadLocalClaims ( ) { } public void searchClaimsForUserName ( String userName ) { } public void searchClaimsByID ( String claimID ) { } public void searchExepensesByClaimID ( String claimID ) { } public void searchExpenseByExpenseID ( String expenseID ) { } }

Fix:
local . LoadClaims ( DataManager . getCurrentContext ( ) ) ;
Buggy code:
class PatchingHistoryDirArtifact extends AbstractArtifact < PatchingArtifacts . PatchID , PatchingFileArtifact . DirectoryArtifactState > implements PatchingFileArtifact < PatchingArtifacts . PatchID , PatchingFileArtifact . DirectoryArtifactState > { PatchingHistoryDirArtifact ( ) { } @ Override public boolean process ( PatchingArtifacts . PatchID parent , PatchingArtifactProcessor processor ) { <START_BUG> final InstalledIdentity identity = processor . getInstalledIdentity ( ) ; <END_BUG> final File history = identity . getInstalledImage ( ) . getPatchHistoryDir ( parent . getPatchID ( ) ) ; final PatchingFileArtifact . DirectoryArtifactState state = new PatchingFileArtifact . DirectoryArtifactState ( history , this ) ; return processor . process ( this , state ) ; } }

Fix:
final InstalledIdentity identity = processor . getValidationContext ( ) . getOriginalIdentity ( ) ;
Buggy code:
class ReflectiveConstructorExecutor implements ConstructorExecutor { private final Constructor < ? > ctor ; private final int [ ] argsRequiringConversion ; public ReflectiveConstructorExecutor ( Constructor < ? > ctor , int [ ] argsRequiringConversion ) { } public TypedValue execute ( EvaluationContext context , Object ... arguments ) throws AccessException { try { if ( ( ( argsRequiringConversion ) != null ) && ( arguments != null ) ) { ReflectionHelper . convertArguments ( this . ctor . getParameterTypes ( ) , this . ctor . isVarArgs ( ) , context . getTypeConverter ( ) , this . argsRequiringConversion , arguments ) ; } if ( this . ctor . isVarArgs ( ) ) { arguments = ReflectionHelper . setupArgumentsForVarargsInvocation ( this . ctor . getParameterTypes ( ) , arguments ) ; } ReflectionUtils . makeAccessible ( this . ctor ) ; <START_BUG> return new TypedValue ( this . ctor . newInstance ( arguments ) , TypeDescriptor . valueOf ( this . ctor . getClass ( ) ) ) ; <END_BUG> } catch ( Exception ex ) { throw new AccessException ( ( "Problem<seq2seq4repair_space>invoking<seq2seq4repair_space>constructor:<seq2seq4repair_space>" + ( this . ctor ) ) , ex ) ; } } }

Fix:
return new TypedValue ( this . ctor . newInstance ( arguments ) , TypeDescriptor . valueOf ( this . ctor . getDeclaringClass ( ) ) ) ;
Buggy code:
public class WLStop extends Task { private int delay = 0 ; private File beaHome = null ; private Path classpath ; private String password ; private String serverURL ; private String username ; public void setBEAHome ( File beaHome ) { } public void setClasspath ( Path path ) { } public void setDelay ( String s ) { } public void setPassword ( String s ) { } public void setUrl ( String s ) { } public void setUser ( String s ) { } public Path createClasspath ( ) { if ( ( classpath ) == null ) { <START_BUG> classpath = new Path ( getProject ( ) ) ; <END_BUG> } return classpath . createPath ( ) ; } public void execute ( ) throws TaskException { } }

Fix:
classpath = new Path ( ) ;
Buggy code:
public class STOP extends Activity implements View . OnClickListener { private ImageButton respond ; private ImageButton back ; private ImageButton next ; private ImageButton done ; private ImageButton cancel ; private ImageButton clear ; private ImageButton voice ; private LinearLayout nav ; private LinearLayout respBtns ; private RelativeLayout blob ; private RelativeLayout resp ; private ImageView s ; private ImageView t ; private ImageView o ; private ImageView p ; private ImageView message ; private EditText response ; private int state = 0 ; private final int S_STATE = 0 ; private final int T_STATE = 1 ; private final int O_STATE = 2 ; private final int P_STATE = 3 ; private static final int SPEECH_REQUEST_CODE = 0 ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; requestWindowFeature ( FEATURE_NO_TITLE ) ; setRequestedOrientation ( SCREEN_ORIENTATION_PORTRAIT ) ; setContentView ( activity_stop ) ; <START_BUG> respond = ( ( ImageButton ) ( findViewById ( doneBtn ) ) ) ; <END_BUG> back = ( ( ImageButton ) ( findViewById ( backBtn ) ) ) ; next = ( ( ImageButton ) ( findViewById ( nextBtn ) ) ) ; s = ( ( ImageView ) ( findViewById ( sView ) ) ) ; t = ( ( ImageView ) ( findViewById ( tView ) ) ) ; o = ( ( ImageView ) ( findViewById ( oView ) ) ) ; p = ( ( ImageView ) ( findViewById ( pView ) ) ) ; message = ( ( ImageView ) ( findViewById ( messageView ) ) ) ; response = ( ( EditText ) ( findViewById ( responseTxt ) ) ) ; done = ( ( ImageButton ) ( findViewById ( doneBtn ) ) ) ; cancel = ( ( ImageButton ) ( findViewById ( cancelBtn ) ) ) ; clear = ( ( ImageButton ) ( findViewById ( clearBtn ) ) ) ; voice = ( ( ImageButton ) ( findViewById ( voiceBtn ) ) ) ; nav = ( ( LinearLayout ) ( findViewById ( navLayout ) ) ) ; respBtns = ( ( LinearLayout ) ( findViewById ( respBtnLayout ) ) ) ; resp = ( ( RelativeLayout ) ( findViewById ( respLayout ) ) ) ; blob = ( ( RelativeLayout ) ( findViewById ( blobLayout ) ) ) ; response . setTypeface ( Typeface . createFromAsset ( getAssets ( ) , "agentorange.ttf" ) ) ; respond . setOnClickListener ( this ) ; back . setOnClickListener ( this ) ; next . setOnClickListener ( this ) ; done . setOnClickListener ( this ) ; cancel . setOnClickListener ( this ) ; clear . setOnClickListener ( this ) ; voice . setOnClickListener ( this ) ; } @ Override public void onClick ( View v ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
respond = ( ( ImageButton ) ( findViewById ( respondBtn ) ) ) ;
Buggy code:
public class LogWriterWebsphereAsync implements LogWriter { @ Override public void write ( final LogMessageContainer logMessageContainer ) { } private class SoapWork implements Work { private final LogMessageContainer logMessageContainer ; public SoapWork ( final LogMessageContainer logMessageContainer ) { } @ Override public void release ( ) { } @ Override public void run ( ) { try { Transactions transactions = new ProxyObjectMapperImpl ( ) . logToSOAPTransactions ( logMessageContainer ) ; QName QName = new QName ( "urn:generic.com:Global:TransactionLogger" , "TransactionLogAsynchronousService" ) ; URL wsdlLocation = null ; try { wsdlLocation = new URL ( InitialContext . < String > doLookup ( LOGMESSAGESERVICE_WSDL_LOCATION_ASYNC ) ) ; } catch ( NamingException e ) { wsdlLocation = new URL ( LoggerPropertyUtil . getProperty ( LOGMESSAGESERVICE_WSDL_LOCATION_ASYNC ) ) ; } TransactionLogAsynchronousService service = new TransactionLogAsynchronousService ( wsdlLocation , QName ) ; service . getTransactionLogAsynchronousInPort ( ) . persist ( transactions ) ; } catch ( MalformedURLException ex ) { String msgText = getMalformedURLExceptionText ( LOGMESSAGESERVICE_WSDL_LOCATION_ASYNC ) . toString ( ) ; <START_BUG> Logger . getLogger ( LogWriterGlassFishAsync . class . getName ( ) ) . log ( Level . SEVERE , msgText ) ; <END_BUG> Logger . getLogger ( LogWriterWebsphereAsync . class . getName ( ) ) . log ( Level . SEVERE , ex . getMessage ( ) ) ; } } } private StringBuilder getMalformedURLExceptionText ( String wsdl_location ) { } }

Fix:
Logger . getLogger ( LogWriterWebsphereAsync . class . getName ( ) ) . log ( Level . SEVERE , msgText ) ;
Buggy code:
@ Named ( "accountManager" ) @ RequestScoped public class AccountManager implements Serializable { private static final long serialVersionUID = 16247164405L ; @ EJB private Controller controller ; private String name ; private String surname ; private String ssn ; private String email ; private String username ; private String password ; private String message ; private Exception transactionFailure ; public boolean getSuccess ( ) { } public Exception getException ( ) { } private void handleException ( Exception e ) { } private String jsf22Bugfix ( ) { } public String register ( ) { message = "" ; transactionFailure = null ; <START_BUG> if ( ( controller . getPerson ( username ) ) != null ) { <END_BUG> setMessage ( "This<seq2seq4repair_space>username<seq2seq4repair_space>already<seq2seq4repair_space>exists.<seq2seq4repair_space>Please,<seq2seq4repair_space>choose<seq2seq4repair_space>another<seq2seq4repair_space>one." ) ; return "login" ; } else { controller . createPerson ( username , email , name , password , surname ) ; setMessage ( "You<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>successfully<seq2seq4repair_space>registered.<seq2seq4repair_space>Now<seq2seq4repair_space>you<seq2seq4repair_space>can<seq2seq4repair_space>log<seq2seq4repair_space>in." ) ; return "confirmation" ; } } public String getName ( ) { } public void setName ( String name ) { } public String getSurname ( ) { } public void setSurname ( String surname ) { } public String getSsn ( ) { } public void setSsn ( String ssn ) { } public String getEmail ( ) { } public void setEmail ( String email ) { } public void setMessage ( String message ) { } public String getMessage ( ) { } public void setUsername ( String username ) { } public String getUsername ( ) { } public void setPassword ( String password ) { } public String getPassword ( ) { } }

Fix:
if ( ( controller . getPerson ( username ) ) != true ) {