nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Painter implements ActionListener { private final StichColor stichColor = new StichColor ( Table . Standard ) ; private final List < JRadioButtonMenuItem > menuitems = new ArrayList < > ( ) ; public List < JRadioButtonMenuItem > createMenuItems ( ) { } public List < JRadioButtonMenuItem > getMenuitems ( ) { } public JMenu createMenu ( ) { } public void drawMouseData ( Graphics g , Visual v , List < Point > mousepath ) { } public void drawStichData ( Graphics g , StichData sd , int initx , int inity , int crosssize , int stichesCurrent , double scale ) { g . setColor ( stichColor . getCurrentColor ( ) ) ; <START_BUG> Stich last = sd . get ( 0 ) ; <END_BUG> for ( int count = 0 ; count < ( sd . size ( ) ) ; count ++ ) { Stich stich = sd . get ( count ) ; if ( count > stichesCurrent ) { return ; } int lx = ( ( int ) ( ( initx + ( last . getX ( ) ) ) // scale ) ) ; int ly = ( ( int ) ( ( inity + ( last . getY ( ) ) ) // scale ) ) ; int lxm = lx - ( crosssize // 2 ) ; int lym = ly - ( crosssize // 2 ) ; int x = ( ( int ) ( ( initx + ( stich . getX ( ) ) ) // scale ) ) ; int y = ( ( int ) ( ( inity + ( stich . getY ( ) ) ) // scale ) ) ; int x1 = x - crosssize ; int x2 = x + crosssize ; int y1 = y - crosssize ; int y2 = y + crosssize ; int xm = x - ( crosssize // 2 ) ; int ym = y - ( crosssize // 2 ) ; if ( count == ( ( sd . size ( ) ) - 1 ) ) { g . setColor ( Color . PINK ) ; g . drawLine ( x1 , y2 , x2 , y1 ) ; g . drawLine ( x1 , y1 , x2 , y2 ) ; } if ( stich . isEOF ( ) ) { g . setColor ( Color . BLACK ) ; g . drawRect ( lxm , lym , crosssize , crosssize ) ; } else if ( stich . isColorChange ( ) ) { stichColor . setCurrentColor ( stich ) ; g . setColor ( Color . GREEN ) ; g . drawRect ( xm , ym , crosssize , crosssize ) ; } else { if ( stich . isJump ( ) ) { g . setColor ( Color . RED ) ; g . drawOval ( xm , ym , crosssize , crosssize ) ; } else { g . setColor ( stichColor . getCurrentColor ( count ) ) ; } g . drawLine ( lx , ly , x , y ) ; } last = stich ; } } public void drawSmallScaleData ( Graphics g , double scale ) { } public void drawBigScaleData ( Graphics g , double scale ) { } @ Override public void actionPerformed ( ActionEvent e ) { } }

Fix:
Stich last = ( sd . isEmpty ( ) ) ? new Stich ( ) : sd . get ( 0 ) ;
Buggy code:
final class DocumentsWriter { Directory directory ; private volatile boolean closed ; PrintStream infoStream ; SimilarityProvider similarityProvider ; List < String > newFiles ; final IndexWriter indexWriter ; private AtomicInteger numDocsInRAM = new AtomicInteger ( 0 ) ; volatile DocumentsWriterDeleteQueue deleteQueue = new DocumentsWriterDeleteQueue ( ) ; private final Queue < DocumentsWriter . FlushTicket > ticketQueue = new LinkedList < DocumentsWriter . FlushTicket > ( ) ; private Collection < String > abortedFiles ; final IndexingChain chain ; final DocumentsWriterPerThreadPool perThreadPool ; final FlushPolicy flushPolicy ; final DocumentsWriterFlushControl flushControl ; final Healthiness healthiness ; DocumentsWriter ( IndexWriterConfig config , Directory directory , IndexWriter writer , FieldNumberBiMap globalFieldNumbers , BufferedDeletesStream bufferedDeletesStream ) throws IOException { } synchronized void deleteQueries ( final Query ... queries ) throws IOException { } synchronized void deleteTerms ( final Term ... terms ) throws IOException { } DocumentsWriterDeleteQueue currentDeleteSession ( ) { } private void applyAllDeletes ( DocumentsWriterDeleteQueue deleteQueue ) throws IOException { } synchronized void setInfoStream ( PrintStream infoStream ) { this . infoStream = infoStream ; final Iterator < ThreadState > it = perThreadPool . getAllPerThreadsIterator ( ) ; while ( it . hasNext ( ) ) { <START_BUG> it . next ( ) . perThread . docState . infoStream = infoStream ; <END_BUG> } } int getNumDocs ( ) { } Collection < String > abortedFiles ( ) { } boolean message ( String message ) { } private void ensureOpen ( ) throws AlreadyClosedException { } synchronized void abort ( ) throws IOException { } boolean anyChanges ( ) { } public int getBufferedDeleteTermsSize ( ) { } public int getNumBufferedDeleteTerms ( ) { } public boolean anyDeletions ( ) { } void close ( ) { } boolean updateDocument ( final Document doc , final Analyzer analyzer , final Term delTerm ) throws IOException , CorruptIndexException { } private boolean doFlush ( DocumentsWriterPerThread flushingDWPT ) throws IOException { } private void applyFlushTickets ( ) throws IOException { } private void finishFlush ( FlushedSegment newSegment , FrozenBufferedDeletes bufferedDeletes ) throws IOException { } final void subtractFlushedNumDocs ( int numFlushed ) { } private void publishFlushedSegment ( FlushedSegment newSegment , FrozenBufferedDeletes globalPacket ) throws IOException { } private volatile DocumentsWriterDeleteQueue currentFullFlushDelQueue = null ; private synchronized boolean setFlushingDeleteQueue ( DocumentsWriterDeleteQueue session ) { } final boolean flushAllThreads ( ) throws IOException { } final void finishFullFlush ( boolean success ) { } static final class FlushTicket { final FrozenBufferedDeletes frozenDeletes ; FlushedSegment segment ; boolean isSegmentFlush ; FlushTicket ( FrozenBufferedDeletes frozenDeletes , boolean isSegmentFlush ) { } boolean canPublish ( ) { } } }

Fix:
it . next ( ) . perThread . setInfoStream ( infoStream ) ;
Buggy code:
public final class PageableListViewNavigationLink extends PageLink { private static final long serialVersionUID = 9064718260408332988L ; private final PageableListView pageableListView ; private final int pageNumber ; public PageableListViewNavigationLink ( final String id , final PageableListView pageableListView , final int pageNumber ) { } public void onClick ( ) { <START_BUG> getRequestCycle ( ) . setRedirect ( false ) ; <END_BUG> super . onClick ( ) ; } public final int getPageNumber ( ) { } public boolean isFirst ( ) { } public boolean isLast ( ) { } public boolean linksTo ( final Page page ) { } }

Fix:
setRedirect ( false ) ;
Buggy code:
public class DeploymentDescriptorMethodProcessor implements DeploymentUnitProcessor { @ Override public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final EEModuleDescription eeModuleDescription = deploymentUnit . getAttachment ( EE_MODULE_DESCRIPTION ) ; final DeploymentReflectionIndex reflectionIndex = deploymentUnit . getAttachment ( REFLECTION_INDEX ) ; final DeploymentClassIndex classIndex = deploymentUnit . getAttachment ( CLASS_INDEX ) ; if ( eeModuleDescription != null ) { for ( final ComponentDescription component : eeModuleDescription . getComponentDescriptions ( ) ) { if ( component instanceof EJBComponentDescription ) { try { if ( ( component instanceof SessionBeanComponentDescription ) || ( component instanceof MessageDrivenComponentDescription ) ) handleSessionBean ( ( ( EJBComponentDescription ) ( component ) ) , classIndex , reflectionIndex ) ; if ( ( component instanceof StatelessComponentDescription ) || ( component instanceof MessageDrivenComponentDescription ) ) { handleStatelessSessionBean ( ( ( EJBComponentDescription ) ( component ) ) , classIndex , reflectionIndex ) ; } } catch ( ClassNotFoundException e ) { <START_BUG> throw EjbMessages . MESSAGES . failToLoadComponentClass ( e ) ; <END_BUG> } } } } } private void handleStatelessSessionBean ( final EJBComponentDescription component , final DeploymentClassIndex classIndex , final DeploymentReflectionIndex reflectionIndex ) throws ClassNotFoundException , DeploymentUnitProcessingException { } private void handleSessionBean ( final EJBComponentDescription component , final DeploymentClassIndex classIndex , final DeploymentReflectionIndex reflectionIndex ) throws ClassNotFoundException , DeploymentUnitProcessingException { } @ Override public void undeploy ( final DeploymentUnit context ) { } }

Fix:
throw EjbMessages . MESSAGES . failToLoadComponentClass ( e , component . getComponentName ( ) ) ;
Buggy code:
public class SendMail { private final String mailSMTPServer ; private final String mailSMTPServerPort ; public SendMail ( ) { } SendMail ( String mailSMTPServer , String mailSMTPServerPort ) { } public void sendMail ( String from , String to , String subject , String message ) { Properties props = new Properties ( ) ; props . put ( "mail.transport.protocol" , "smtp" ) ; props . put ( "mail.smtp.starttls.enable" , "true" ) ; props . put ( "mail.smtp.host" , mailSMTPServer ) ; props . put ( "mail.smtp.auth" , "true" ) ; props . put ( "mail.smtp.user" , from ) ; props . put ( "mail.debug" , "true" ) ; props . put ( "mail.smtp.port" , mailSMTPServerPort ) ; props . put ( "mail.smtp.socketFactory.port" , mailSMTPServerPort ) ; props . put ( "mail.smtp.socketFactory.class" , "javax.net.ssl.SSLSocketFactory" ) ; props . put ( "mail.smtp.socketFactory.fallback" , "false" ) ; SendMail . SimpleAuth auth ; <START_BUG> auth = new SendMail . SimpleAuth ( "charlesportoferreira@gmail.com" , "cHpf871170" ) ; <END_BUG> Session session = Session . getInstance ( props , auth ) ; session . setDebug ( true ) ; Message msg = new javax . mail . internet . MimeMessage ( session ) ; try { msg . setRecipient ( TO , new InternetAddress ( to ) ) ; msg . setFrom ( new InternetAddress ( from ) ) ; msg . setSubject ( subject ) ; Multipart mpCorpoPrincipal = new MimeMultipart ( "related" ) ; MimeMultipart mpContent = new MimeMultipart ( "alternative" ) ; MimeBodyPart corpoRaiz = new MimeBodyPart ( ) ; corpoRaiz . setContent ( mpContent ) ; mpCorpoPrincipal . addBodyPart ( corpoRaiz ) ; MimeBodyPart mbpTextPlain = new MimeBodyPart ( ) ; mbpTextPlain . setText ( "Seja<seq2seq4repair_space>bem<seq2seq4repair_space>vindo<seq2seq4repair_space>ao<seq2seq4repair_space>JavaMail" , "iso-8859-1" , "plain" ) ; mpContent . addBodyPart ( mbpTextPlain ) ; File f = new File ( "analiseResultados.csv" ) ; MimeBodyPart mbpAnexo = new MimeBodyPart ( ) ; mbpAnexo . setDisposition ( ATTACHMENT ) ; mbpAnexo . setDataHandler ( new DataHandler ( new FileDataSource ( f ) ) ) ; mbpAnexo . setFileName ( f . getName ( ) ) ; mpCorpoPrincipal . addBodyPart ( mbpAnexo ) ; msg . setContent ( mpCorpoPrincipal ) ; } catch ( MessagingException e ) { System . out . println ( ">><seq2seq4repair_space>Erro:<seq2seq4repair_space>Completar<seq2seq4repair_space>Mensagem" ) ; e . printStackTrace ( ) ; } Transport tr ; try { tr = session . getTransport ( "smtp" ) ; tr . connect ( mailSMTPServer , "charlesportoferreira@gmail.com" , "cHpf871170" ) ; msg . saveChanges ( ) ; tr . sendMessage ( msg , msg . getAllRecipients ( ) ) ; tr . close ( ) ; } catch ( MessagingException e ) { System . out . println ( ">><seq2seq4repair_space>Erro:<seq2seq4repair_space>Envio<seq2seq4repair_space>Mensagem" ) ; e . printStackTrace ( ) ; } } class SimpleAuth extends Authenticator { public String username = null ; public String password = null ; public SimpleAuth ( String user , String pwd ) { } @ Override protected PasswordAuthentication getPasswordAuthentication ( ) { } } }

Fix:
auth = new SendMail . SimpleAuth ( "charlesportoferreira@gmail.com" , "vc_nao_devia_olhar" ) ;
Buggy code:
public class ChangeLanguage implements Command { private static final Set commands = new HashSet ( ) ; public static final String CHANGE_LANGUAGE = "change_language" ; private Logger log = Hierarchy . getDefaultHierarchy ( ) . getLoggerFor ( GUI ) ; public void doAction ( ActionEvent e ) { <START_BUG> Locale loc = new Locale ( ( ( Component ) ( e . getSource ( ) ) ) . getName ( ) ) ; <END_BUG> log . debug ( ( "Changing<seq2seq4repair_space>language<seq2seq4repair_space>to<seq2seq4repair_space>" + ( loc . getLanguage ( ) ) ) ) ; JMeterUtils . reinitializeLocale ( loc ) ; } public Set getActionNames ( ) { } }

Fix:
Locale loc = new Locale ( ( ( Component ) ( e . getSource ( ) ) ) . getName ( ) , "" ) ;
Buggy code:
@ Configuration @ EnableWebMvcSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @ Override protected void configure ( HttpSecurity http ) throws Exception { } @ Override protected void configure ( AuthenticationManagerBuilder auth ) throws Exception { <START_BUG> auth . inMemoryAuthentication ( ) . withUser ( "user" ) . password ( "password" ) . roles ( "USER" ) . and ( ) . withUser ( "adminr" ) . password ( "password" ) . roles ( "ADMIN" , "USER" ) ; <END_BUG> } @ Bean @ Override public UserDetailsService userDetailsServiceBean ( ) throws Exception { } }

Fix:
auth . inMemoryAuthentication ( ) . withUser ( "user" ) . password ( "password" ) . roles ( "USER" ) . and ( ) . withUser ( "admin" ) . password ( "password" ) . roles ( "ADMIN" , "USER" ) ;
Buggy code:
public class NewEncryptionWizard extends Wizard implements INewWizard { private PageResource pageResource = null ; private PageOpenKey pageOpenKey = null ; private PageCreateKey pageCreateKey = null ; private PageCreateKeystore pageCreateKeystore = null ; private PageAlgorithms pageAlgorithms = null ; private IFile file ; private ITextSelection textSelection ; private Encryption encryption ; public static final String SETTING_KEYSTORE = "enc_keystore" ; public static final String SETTING_KEY_NAME = "enc_key_name" ; public static final String SETTING_BSP_COMPLIANT_ENCRYPTION = "enc_bsp_compliant" ; public static final String SETTING_SET_PLAIN_ROOT_ELEMENT = "enc_plain_root_element" ; public static final String SETTING_CALL_SIGNATURE_WIZARD = "enc_sign" ; public NewEncryptionWizard ( ) { } private IDialogSettings getEncryptionWizardSettings ( ) { } public void init ( final IWorkbench workbench , final IStructuredSelection selection ) { } public void init ( final IFile file ) { } public void init ( final IFile file , final ITextSelection textSelection ) { } public void addPages ( ) { String path = file . getLocation ( ) . removeFileExtension ( ) . removeLastSegments ( 1 ) . toString ( ) ; String name = file . getLocation ( ) . removeFileExtension ( ) . removeLastSegments ( 1 ) . lastSegment ( ) ; pageResource = new PageResource ( encryption , file , ( ( textSelection ) != null ? true : false ) ) ; addPage ( pageResource ) ; pageOpenKey = new PageOpenKey ( encryption , path ) ; addPage ( pageOpenKey ) ; <START_BUG> pageCreateKey = new PageCreateKey ( encryption , path ) ; <END_BUG> addPage ( pageCreateKey ) ; pageCreateKeystore = new PageCreateKeystore ( encryption , path , name ) ; addPage ( pageCreateKeystore ) ; pageAlgorithms = new PageAlgorithms ( encryption , file ) ; addPage ( pageAlgorithms ) ; } public boolean canFinish ( ) { } public boolean performFinish ( ) { } public Encryption getModel ( ) { } public PageResource getPageResource ( ) { } public PageOpenKey getPageOpenKey ( ) { } public PageCreateKey getPageCreateKey ( ) { } public PageCreateKeystore getPageCreateKeystore ( ) { } public PageAlgorithms getPageAlgorithms ( ) { } }

Fix:
pageCreateKey = new PageCreateKey ( encryption , path , name ) ;
Buggy code:
public class MarkupCache { private static final Logger log = LoggerFactory . getLogger ( MarkupCache . class ) ; private Map < CharSequence , MarkupFragment > markupCache = new ConcurrentHashMap < CharSequence , MarkupFragment > ( ) ; private final Watcher afterLoadListeners = new Watcher ( ) ; private final Application application ; public MarkupCache ( final Application application ) { } public void clear ( ) { } public int size ( ) { } public final void addAfterLoadListener ( final MarkupResourceStream resourceStream , final IChangeListener listener ) { } public void removeAllListeners ( ) { } public final void removeMarkup ( final MarkupResourceStream markupResourceStream ) { } public final MarkupFragment getMarkup ( final MarkupContainer container , final boolean throwException ) { } public final boolean hasAssociatedMarkup ( final MarkupContainer container ) { } public final MarkupFragment getMarkup ( final MarkupContainer < ? > container , final Class < ? extends MarkupContainer > clazz ) { } protected IMarkupResourceStreamProvider getMarkupResourceStreamProvider ( final MarkupContainer container ) { } protected IMarkupCacheKeyProvider getMarkupCacheKeyProvider ( final MarkupContainer container ) { } private final MarkupFragment loadMarkup ( final MarkupContainer container , final MarkupResourceStream markupResourceStream ) { } private final MarkupFragment loadMarkupAndWatchForChanges ( final MarkupContainer container , final MarkupResourceStream markupResourceStream ) { } protected IMarkupLoader newMarkupLoader ( ) { <START_BUG> return new DefaultMarkupLoader ( ) ; <END_BUG> } public void setCacheMap ( Map < CharSequence , MarkupFragment > markupCache ) { } }

Fix:
return new wicket . markup . loader . DefaultMarkupLoader ( application ) ;
Buggy code:
public class Tbx2rdfServlet extends HttpServlet { protected void processRequest ( HttpServletRequest req , HttpServletResponse resp ) throws IOException , ServletException { String action = req . getParameter ( "action" ) ; String tbx = req . getParameter ( "tbx" ) ; String namespace = req . getParameter ( "namespace" ) ; String lenient = req . getParameter ( "lenient" ) ; tbx = URLDecoder . decode ( tbx , "UTF-8" ) ; String uri = req . getRequestURI ( ) ; <START_BUG> PrintWriter archivo = new PrintWriter ( "//home//vrodriguez//tbx.txt" ) ; <END_BUG> archivo . println ( ( uri + ( req . getParameter ( "current" ) ) ) ) ; archivo . close ( ) ; String rdf = "Ooops" ; if ( action . contains ( "enrich" ) ) rdf = "Feature<seq2seq4repair_space>coming<seq2seq4repair_space>soon!" ; else { try { InputStream in = getClass ( ) . getResourceAsStream ( "//tbx2rdfservice//servlets//mappings.default" ) ; BufferedReader reader = new BufferedReader ( new InputStreamReader ( in ) ) ; final Mappings mappings = Mappings . readInMappings ( reader ) ; rdf = new TBX2RDF_Converter ( ) . convert ( tbx , mappings , namespace ) ; } catch ( Exception e ) { rdf = "An<seq2seq4repair_space>ERROR<seq2seq4repair_space>has<seq2seq4repair_space>happened.<seq2seq4repair_space>We<seq2seq4repair_space>are<seq2seq4repair_space>sorry.\n\n\n" ; rdf += e . getMessage ( ) ; } } resp . getWriter ( ) . println ( rdf ) ; resp . setContentType ( "text//plain" ) ; } @ Override protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } @ Override protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } }

Fix:
PrintWriter archivo = new PrintWriter ( "//tmp//tbx.txt" ) ;
Buggy code:
public class WarDeploymentProcessor implements DeploymentUnitProcessor { private final String defaultHost ; public WarDeploymentProcessor ( String defaultHost ) { } @ Override public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } public static String hostNameOfDeployment ( final WarMetaData metaData , final String defaultHost ) { } @ Override public void undeploy ( final DeploymentUnit context ) { } protected void processDeployment ( final String hostName , final WarMetaData warMetaData , final DeploymentUnit deploymentUnit , final ServiceTarget serviceTarget ) throws DeploymentUnitProcessingException { } public static String pathNameOfDeployment ( final DeploymentUnit deploymentUnit , final JBossWebMetaData metaData ) { } void processManagement ( final DeploymentUnit unit , JBossWebMetaData metaData ) { for ( final JBossServletMetaData servlet : metaData . getServlets ( ) ) { try { <START_BUG> final String name = servlet . getName ( ) . replace ( '<seq2seq4repair_space>' , '_' ) ; <END_BUG> final ModelNode node = unit . createDeploymentSubModel ( "web" , PathElement . pathElement ( "servlet" , name ) ) ; node . get ( "servlet-class" ) . set ( servlet . getServletClass ( ) ) ; node . get ( "servlet-name" ) . set ( servlet . getServletName ( ) ) ; } catch ( Exception e ) { continue ; } } } protected Object getInstance ( Module module , String moduleName , String className , List < ParamValueMetaData > params ) throws DeploymentUnitProcessingException { } private String getJBossAppSecurityDomain ( final DeploymentUnit deploymentUnit ) { } }

Fix:
final String name = servlet . getName ( ) ;
Buggy code:
public class NewMethodTypeMunger extends ResolvedTypeMunger { public NewMethodTypeMunger ( ResolvedMember signature , Set superMethodsCalled ) { } public ResolvedMember getInterMethodBody ( UnresolvedType aspectType ) { } public ResolvedMember getInterMethodDispatcher ( UnresolvedType aspectType ) { } public void write ( DataOutputStream s ) throws IOException { } public static ResolvedTypeMunger readMethod ( VersionedDataInputStream s , ISourceContext context ) throws IOException { <START_BUG> ResolvedTypeMunger munger = new NewMethodTypeMunger ( ResolvedMember . readResolvedMember ( s , context ) , readSuperMethodsCalled ( s ) ) ; <END_BUG> if ( ResolvedTypeMunger . persistSourceLocation ) munger . setSourceLocation ( readSourceLocation ( s ) ) ; return munger ; } public ResolvedMember getMatchingSyntheticMember ( Member member , ResolvedType aspectType ) { } }

Fix:
ResolvedTypeMunger munger = new NewMethodTypeMunger ( ResolvedMemberImpl . readResolvedMember ( s , context ) , readSuperMethodsCalled ( s ) ) ;
Buggy code:
@ Controller public class LoginController { @ Autowired private UserManager userManager ; public void setUserManager ( UserManager userManager ) { } @ RequestMapping ( value = "//signIn" , method = RequestMethod . GET ) public String signInGet ( Model model , @ ModelAttribute ( "user" ) User user , BindingResult result , HttpServletRequest request ) { } @ RequestMapping ( value = "//signIn" , method = RequestMethod . POST ) public String signInPost ( Model model , @ Valid @ ModelAttribute ( "user" ) User user , BindingResult result , HttpSession session ) { } @ RequestMapping ( value = "//signUp" , method = RequestMethod . GET ) public String signUpGet ( Model model , @ ModelAttribute ( "user" ) User user , BindingResult result ) { } @ RequestMapping ( value = "//signUp" , method = RequestMethod . POST ) public String signUpPost ( Model model , @ Valid @ ModelAttribute ( "user" ) User user , BindingResult result ) { if ( result . hasErrors ( ) ) { return "signup" ; } try { System . out . println ( ( "[LoginController]<seq2seq4repair_space>Intentando<seq2seq4repair_space>registrar<seq2seq4repair_space>usuario:<seq2seq4repair_space>" + user ) ) ; this . userManager . newUser ( user ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } System . out . println ( "[LoginController]<seq2seq4repair_space>Usuario<seq2seq4repair_space>registrado" ) ; <START_BUG> return "index" ; <END_BUG> } }

Fix:
return "redirect:" ;
Buggy code:
public class EMailSender { public static void sendEmail ( String to , String body , String from , String pass ) { Properties props = System . getProperties ( ) ; String host = "smtp.gmail.com" ; props . put ( "mail.smtp.starttls.enable" , "true" ) ; props . put ( "mail.smtp.host" , host ) ; props . put ( "mail.smtp.user" , from ) ; props . put ( "mail.smtp.password" , pass ) ; props . put ( "mail.smtp.port" , "587" ) ; props . put ( "mail.smtp.auth" , "true" ) ; Session session = Session . getDefaultInstance ( props ) ; MimeMessage message = new MimeMessage ( session ) ; try { <START_BUG> message . setFrom ( new InternetAddress ( "from-email@gmail.com" ) ) ; <END_BUG> message . setRecipients ( TO , InternetAddress . parse ( to ) ) ; message . setSubject ( "HR<seq2seq4repair_space>Georgia" , "UTF-8" ) ; message . setText ( ( "მესიჯი<seq2seq4repair_space>" + body ) , "UTF-8" ) ; Transport transport = session . getTransport ( "smtp" ) ; transport . connect ( host , from , pass ) ; transport . sendMessage ( message , message . getAllRecipients ( ) ) ; transport . close ( ) ; } catch ( AddressException e ) { e . printStackTrace ( ) ; } catch ( MessagingException e ) { e . printStackTrace ( ) ; } } }

Fix:
message . setFrom ( new InternetAddress ( "hrgeofreeuni@gmail.com" ) ) ;
Buggy code:
public class FileStreamTask extends WrappedRunnable { private static Logger logger = LoggerFactory . getLogger ( FileStreamTask . class ) ; public static final int CHUNK_SIZE = 64 * 1024 ; public static final int MAX_CONNECT_ATTEMPTS = 8 ; protected final StreamHeader header ; protected final InetAddress to ; private Socket socket ; private OutputStream output ; private OutputStream compressedoutput ; private DataInputStream input ; private final byte [ ] transferBuffer = new byte [ FileStreamTask . CHUNK_SIZE ] ; private final Throttle throttle ; private final StreamReplyVerbHandler handler = new StreamReplyVerbHandler ( ) ; public FileStreamTask ( StreamHeader header , InetAddress to ) { } public void runMayThrow ( ) throws IOException { } private void stream ( ) throws IOException { } private void receiveReply ( ) throws IOException { MessagingService . validateMagic ( input . readInt ( ) ) ; int msheader = input . readInt ( ) ; assert ( MessagingService . getBits ( msheader , 3 , 1 ) ) == 0 : "Stream<seq2seq4repair_space>received<seq2seq4repair_space>before<seq2seq4repair_space>stream<seq2seq4repair_space>reply" ; int version = MessagingService . getBits ( msheader , 15 , 8 ) ; <START_BUG> int totalSize = input . readInt ( ) ; <END_BUG> String id = input . readUTF ( ) ; Header header = Header . serializer ( ) . deserialize ( input , version ) ; int bodySize = input . readInt ( ) ; byte [ ] body = new byte [ bodySize ] ; input . readFully ( body ) ; Message message = new Message ( header , body , version ) ; assert ( message . getVerb ( ) ) == ( Verb . STREAM_REPLY ) : "Non-reply<seq2seq4repair_space>message<seq2seq4repair_space>received<seq2seq4repair_space>on<seq2seq4repair_space>stream<seq2seq4repair_space>socket" ; handler . doVerb ( message , id ) ; } protected long write ( RandomAccessReader reader , long length , long bytesTransferred ) throws IOException { } private void connectAttempt ( ) throws IOException { } protected void close ( ) throws IOException { } public String toString ( ) { } }

Fix:
input . readInt ( ) ;
Buggy code:
public abstract class TrailListAdapter extends ArrayAdapter < Trail > implements Observer { protected ArrayList < Trail > trails ; private Context context ; private View v ; private Trail trail ; private ImageView listImg ; public TrailListAdapter ( Context context , int textViewResourceId , ArrayList < Trail > trails ) { } public abstract void update ( Observable observable , Object data ) { } @ Override public View getView ( int position , View convertView , ViewGroup parent ) { } private static String getDistanceText ( Trail trail ) { } public void setTrailIcon ( ) { } private void loadImage ( ) throws Exception { Drawable trailDraw = null ; File imageFile = new File ( context . getFilesDir ( ) , ( ( String . valueOf ( trail . getTrailId ( ) ) ) + "_120.png" ) ) ; if ( imageFile . exists ( ) ) { trailDraw = new android . graphics . drawable . BitmapDrawable ( BitmapFactory . decodeFile ( imageFile . getAbsolutePath ( ) ) ) ; } else { <START_BUG> if ( ( trail . getImageUrl120 ( ) ) != null ) { <END_BUG> InputStream is = ( ( InputStream ) ( new URL ( trail . getImageUrl120 ( ) ) . getContent ( ) ) ) ; trailDraw = Drawable . createFromStream ( is , "src<seq2seq4repair_space>name" ) ; saveDownloadedFile ( trailDraw ) ; } } if ( trailDraw != null ) { listImg . setImageDrawable ( trailDraw ) ; } else { listImg . setImageResource ( icon ) ; } } private void saveDownloadedFile ( Drawable trailDraw ) throws FileNotFoundException , IOException { } }

Fix:
if ( ( ( trail . getImageUrl120 ( ) ) != null ) && ( ! ( "null" . equals ( trail . getImageUrl120 ( ) ) ) ) ) {
Buggy code:
public class Server extends ServerSocket { public static Trace debug = Trace . create ( "connection" ) ; ISocketAcceptHandler acceptHandler ; Thread listenerThread ; ThreadGroup threadGroup ; protected void debug ( String msg ) { } protected void dumpStack ( String msg , Throwable e ) { } public Server ( ThreadGroup group , int port , ISocketAcceptHandler handler ) throws IOException { } public Server ( int port , ISocketAcceptHandler handler ) throws IOException { } protected Thread setupListener ( ) { return new Thread ( threadGroup , new Runnable ( ) { public void run ( ) { while ( true ) { try { handleAccept ( accept ( ) ) ; } catch ( Exception e ) { if ( ( Trace . ON ) && ( ( Server . debug ) != null ) ) { Server . debug . dumpStack ( e , "Exception<seq2seq4repair_space>in<seq2seq4repair_space>accept" ) ; } break ; } } if ( ( Trace . ON ) && ( ( Server . debug ) != null ) ) { Server . debug . msg ( "Closing<seq2seq4repair_space>listener<seq2seq4repair_space>normally." ) ; } } <START_BUG> } , ( ( "Server(" + ( getLocalPort ( ) ) ) + ")" ) ) ; <END_BUG> } protected void handleAccept ( final Socket aSocket ) { } public synchronized void close ( ) throws IOException { } }

Fix:
} , ( ( "ServerApplication(" + ( getLocalPort ( ) ) ) + ")" ) ) ;
Buggy code:
public class LoginPacket extends TCP_Packet { private String username ; private static final int dimension = 30 ; public String getUsername ( ) { } public LoginPacket ( String userName ) { } public LoginPacket ( ByteBuffer buffer ) { } @ Override public void createBuffer ( ) { buffer = ByteBuffer . allocate ( ( ( LoginPacket . dimension ) + 1 ) ) ; buffer . clear ( ) ; <START_BUG> buffer . put ( ( ( byte ) ( - 128 ) ) ) ; <END_BUG> int i = 0 ; try { for ( ; i < ( username . getBytes ( "ASCII" ) . length ) ; i ++ ) buffer . put ( username . getBytes ( "ASCII" ) [ i ] ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } for ( ; i < 30 ; i ++ ) buffer . put ( ( ( byte ) ( 32 ) ) ) ; buffer . rewind ( ) ; } @ Override protected boolean recognizePacket ( ) { } }

Fix:
buffer . put ( ( ( byte ) ( 0 ) ) ) ;
Buggy code:
public class CloudMLCommandBuilder extends ShellCommandsBaseVisitor < CloudMlCommand > { @ Override public CloudMlCommand visitAnalyseRobustness ( ShellCommandsParser . AnalyseRobustnessContext ctx ) { } @ Override public CloudMlCommand visitDeploy ( ShellCommandsParser . DeployContext ctx ) { } @ Override public CloudMlCommand visitUpload ( ShellCommandsParser . UploadContext ctx ) { } @ Override public CloudMlCommand visitConnect ( ShellCommandsParser . ConnectContext ctx ) { } @ Override public CloudMlCommand visitDisconnect ( ShellCommandsParser . DisconnectContext ctx ) { } @ Override public CloudMlCommand visitDestroy ( ShellCommandsParser . DestroyContext ctx ) { } @ Override public CloudMlCommand visitInstall ( ShellCommandsParser . InstallContext ctx ) { } @ Override public CloudMlCommand visitInstantiate ( ShellCommandsParser . InstantiateContext ctx ) { } @ Override public CloudMlCommand visitList ( ShellCommandsParser . ListContext ctx ) { } @ Override public CloudMlCommand visitLoad ( ShellCommandsParser . LoadContext ctx ) { } @ Override public CloudMlCommand visitStore ( ShellCommandsParser . StoreContext ctx ) { } @ Override public CloudMlCommand visitView ( ShellCommandsParser . ViewContext ctx ) { } @ Override public CloudMlCommand visitShotImage ( ShellCommandsParser . ShotImageContext ctx ) { } @ Override public CloudMlCommand visitSnapshot ( ShellCommandsParser . SnapshotContext ctx ) { } @ Override public CloudMlCommand visitScaleOut ( ShellCommandsParser . ScaleOutContext ctx ) { } @ Override public CloudMlCommand visitImage ( ShellCommandsParser . ImageContext ctx ) { } @ Override public CloudMlCommand visitReset ( ShellCommandsParser . ResetContext ctx ) { } @ Override public CloudMlCommand visitStop ( ShellCommandsParser . StopContext ctx ) { } @ Override public CloudMlCommand visitUninstall ( ShellCommandsParser . UninstallContext ctx ) { } @ Override public CloudMlCommand visitStart ( ShellCommandsParser . StartContext ctx ) { } @ Override public CloudMlCommand visitValidate ( ShellCommandsParser . ValidateContext ctx ) { } @ Override public CloudMlCommand visitDebugMode ( ShellCommandsParser . DebugModeContext ctx ) { <START_BUG> return new DebugMode ( ctx . state . equals ( "true" ) ) ; <END_BUG> } @ Override public CloudMlCommand visitBurst ( ShellCommandsParser . BurstContext ctx ) { } }

Fix:
return new DebugMode ( ctx . state . getText ( ) . equals ( "true" ) ) ;
Buggy code:
public class App { private static final SettingsControl prefctrl = new SettingsControl ( ) ; public static void main ( String [ ] args ) throws Exception { } public static Options getCLIOptions ( ) { Options options = new Options ( ) ; options . addOption ( "help" , false , "print<seq2seq4repair_space>this<seq2seq4repair_space>message" ) ; options . addOption ( "nogui" , false , "run<seq2seq4repair_space>in<seq2seq4repair_space>cli<seq2seq4repair_space>mode" ) ; options . addOption ( "R" , "recursive" , false , "search<seq2seq4repair_space>every<seq2seq4repair_space>folder<seq2seq4repair_space>found<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>folder" ) ; options . addOption ( "language" , true , "gives<seq2seq4repair_space>the<seq2seq4repair_space>language<seq2seq4repair_space>to<seq2seq4repair_space>search<seq2seq4repair_space>for<seq2seq4repair_space>example:<seq2seq4repair_space>--language<seq2seq4repair_space>nl<seq2seq4repair_space>only<seq2seq4repair_space>nl<seq2seq4repair_space>or<seq2seq4repair_space>en" ) ; options . addOption ( "debug" , false , "enables<seq2seq4repair_space>logging" ) ; options . addOption ( "trace" , false , "more<seq2seq4repair_space>logging" ) ; options . addOption ( "importpreferences" , true , "import<seq2seq4repair_space>preferences" ) ; options . addOption ( "force" , false , "force<seq2seq4repair_space>to<seq2seq4repair_space>overwrite<seq2seq4repair_space>the<seq2seq4repair_space>subtitle<seq2seq4repair_space>on<seq2seq4repair_space>disk" ) ; <START_BUG> options . addOption ( "folder" , false , "folder<seq2seq4repair_space>to<seq2seq4repair_space>search" ) ; <END_BUG> options . addOption ( "downloadall" , false , "Download<seq2seq4repair_space>all<seq2seq4repair_space>found<seq2seq4repair_space>subs<seq2seq4repair_space>using<seq2seq4repair_space>'-v1'<seq2seq4repair_space>system<seq2seq4repair_space>" ) ; options . addOption ( "updatefromonlinemapping" , false , "Update<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>Mappings<seq2seq4repair_space>from<seq2seq4repair_space>online" ) ; options . addOption ( "selection" , false , "Subtitle<seq2seq4repair_space>selection<seq2seq4repair_space>possible<seq2seq4repair_space>if<seq2seq4repair_space>multiple<seq2seq4repair_space>subtitles<seq2seq4repair_space>detected" ) ; options . addOption ( "speedy" , false , "speed<seq2seq4repair_space>somethings<seq2seq4repair_space>up" ) ; return options ; } }

Fix:
options . addOption ( "folder" , true , "folder<seq2seq4repair_space>to<seq2seq4repair_space>search" ) ;
Buggy code:
public final class IRCConnectWizard extends Wizard implements IConnectWizard { public static final String DEFAULT_GUEST_USER = "guest" ; private IRCConnectWizardPage page ; private IContainer container ; private ID targetID ; private IConnectContext connectContext ; private String authorityAndPath = null ; public IRCConnectWizard ( ) { } public IRCConnectWizard ( String authorityAndPart ) { } public void addPages ( ) { } public void init ( IWorkbench workbench , IContainer container ) { } public boolean performFinish ( ) { final String connectID = page . getConnectID ( ) ; final String password = page . getPassword ( ) ; connectContext = ConnectContextFactory . createPasswordConnectContext ( password ) ; page . saveComboText ( ) ; try { targetID = IDFactory . getDefault ( ) . createID ( container . getConnectNamespace ( ) , connectID ) ; } catch ( IDCreateException e ) { new org . eclipse . ecf . ui . dialogs . IDCreateErrorDialog ( null , connectID , e ) . open ( ) ; return false ; } IChatRoomManager manager = ( ( IChatRoomManager ) ( this . container . getAdapter ( IChatRoomManager . class ) ) ) ; IRCUI ui = new IRCUI ( this . container , manager , null ) ; ui . showForTarget ( targetID ) ; if ( ! ( ui . isContainerConnected ( ) ) ) { page . saveComboItems ( ) ; new org . eclipse . ecf . ui . actions . AsynchContainerConnectAction ( container , targetID , connectContext , null , new Runnable ( ) { public void run ( ) { <START_BUG> cachePassword ( connectID , password ) ; <END_BUG> } } ) . run ( ) ; } return true ; } protected void cachePassword ( final String connectID , String password ) { } }

Fix:
cachePassword ( page . getPasswordKeyFromUserName ( connectID ) , password ) ;
Buggy code:
public class RuleSearch { private ProofSearch proofSearch ; public RuleSearch ( ProofSearch proofSearch ) { } public UnificationResult unifyRuleBody ( UnificationScope scope , RuleBody ruleBody ) { if ( ruleBody instanceof RuleAnd ) { RuleAnd ruleAnd = ( ( RuleAnd ) ( ruleBody ) ) ; RuleBody left = ruleAnd . getLeft ( ) ; RuleBody right = ruleAnd . getRight ( ) ; UnificationResult finalResult = new UnificationResult ( ) ; UnificationResult currentResult = finalResult ; UnificationResult leftResult = unifyRuleBody ( new UnificationScope ( scope ) , left ) ; while ( leftResult != null ) { if ( ( leftResult . getSuccess ( ) ) == ( UnificationSuccess . YES ) ) { UnificationResult rightResult = unifyRuleBody ( new UnificationScope ( leftResult . getScope ( ) ) , right ) ; while ( rightResult != null ) { if ( ( rightResult . getSuccess ( ) ) == ( UnificationSuccess . YES ) ) { currentResult = currentResult . next ( new UnificationResult ( rightResult . getScope ( ) , left , right ) ) ; } rightResult = rightResult . getNext ( ) ; } } leftResult = leftResult . getNext ( ) ; } if ( finalResult != currentResult ) { return finalResult . getNext ( ) ; } return finalResult ; } else if ( ruleBody instanceof RuleOr ) { RuleOr ruleOr = ( ( RuleOr ) ( ruleBody ) ) ; RuleBody left = ruleOr . getLeft ( ) ; RuleBody right = ruleOr . getRight ( ) ; UnificationResult finalResult = new UnificationResult ( ) ; UnificationResult currentResult = finalResult ; UnificationResult leftResult = unifyRuleBody ( new UnificationScope ( scope ) , left ) ; while ( leftResult != null ) { if ( ( leftResult . getSuccess ( ) ) == ( UnificationSuccess . YES ) ) { currentResult = currentResult . next ( new UnificationResult ( leftResult . getScope ( ) , left , right ) ) ; } leftResult = leftResult . getNext ( ) ; } UnificationResult rightResult = unifyRuleBody ( new UnificationScope ( scope ) , right ) ; while ( rightResult != null ) { if ( ( rightResult . getSuccess ( ) ) == ( UnificationSuccess . YES ) ) { currentResult = currentResult . next ( new UnificationResult ( rightResult . getScope ( ) , left , right ) ) ; } rightResult = rightResult . getNext ( ) ; } if ( finalResult != currentResult ) { return finalResult . getNext ( ) ; } return finalResult ; } else { <START_BUG> return proofSearch . ask ( ( ( Term ) ( ruleBody ) ) ) ; <END_BUG> } } public UnificationResult ask ( Term question , Rule rule ) { } public UnificationResult ask ( UnificationScope scope , Term question , Rule rule ) { } }

Fix:
return proofSearch . ask ( scope , ( ( Term ) ( ruleBody ) ) ) ;
Buggy code:
interface StackOverflowService { <START_BUG> @ GET ( "//2.2//questions?order=desc&sort=hot" ) <END_BUG> Call < QuestionsPage > listQuestions ( @ Query ( "page" ) int page , @ Query ( "tagged" ) String tagged , @ Query ( "site" ) String site ) ; }

Fix:
@ GET ( "//2.2//questions?pagesize=100&order=desc&sort=votes" )
Buggy code:
public class Scriptaculous { private static final Scriptaculous scriptaculuous = new Scriptaculous ( ) ; private final PackageResourceReference refPrototype ; private final PackageResourceReference refScriptaculous ; private final PackageResourceReference refBehavior ; private Scriptaculous ( ) { } public static final Scriptaculous get ( ) { } public void renderHead ( HtmlHeaderContainer container ) { } private void addJavascriptReference ( final HtmlHeaderContainer container , final PackageResourceReference ref ) { <START_BUG> write ( container , ( ( ( "\t<script<seq2seq4repair_space>language=\'JavaScript\'<seq2seq4repair_space>type=\'text//javascript\'<seq2seq4repair_space>" + "src='" ) + ( container . getPage ( ) . urlFor ( ref . getPath ( ) ) ) ) + "\'><//script>\n" ) ) ; <END_BUG> } protected void write ( MarkupContainer container , String s ) { } }

Fix:
write ( container , ( ( ( "\t<script<seq2seq4repair_space>language=\'JavaScript\'<seq2seq4repair_space>type=\'text//javascript\'<seq2seq4repair_space>" + "src='" ) + ( container . urlFor ( ref . getPath ( ) ) ) ) + "\'><//script>\n" ) ) ;
Buggy code:
class ManagedCache implements Serializable { private static final Localizer _loc = Localizer . forPackage ( ManagedCache . class ) ; private Map _main ; private Map _conflicts = null ; private Map _news = null ; private Collection _embeds = null ; private Collection _untracked = null ; private BrokerImpl broker ; ManagedCache ( BrokerImpl broker ) { } public StateManagerImpl getById ( Object oid , boolean allowNew ) { if ( oid == null ) return null ; StateManagerImpl sm = ( ( StateManagerImpl ) ( _main . get ( oid ) ) ) ; StateManagerImpl sm2 ; if ( sm != null ) { <START_BUG> if ( sm . isNew ( ) ) <END_BUG> return allowNew ? sm : null ; if ( ( ! allowNew ) || ( ! ( sm . isDeleted ( ) ) ) ) return sm ; if ( ( _conflicts ) != null ) { sm2 = ( ( StateManagerImpl ) ( _conflicts . get ( oid ) ) ) ; if ( sm2 != null ) return sm2 ; } } if ( ( allowNew && ( ( _news ) != null ) ) && ( ! ( _news . isEmpty ( ) ) ) ) { sm2 = ( ( StateManagerImpl ) ( _news . get ( oid ) ) ) ; if ( sm2 != null ) return sm2 ; } return sm ; } public void add ( StateManagerImpl sm ) { } public void remove ( Object id , StateManagerImpl sm ) { } public void persist ( StateManagerImpl sm ) { } public void assignObjectId ( Object id , StateManagerImpl sm ) { } public void commitNew ( Object id , StateManagerImpl sm ) { } public Collection copy ( ) { } public void clear ( ) { } public void clearNew ( ) { } void dirtyCheck ( ) { } }

Fix:
if ( ( sm . isNew ( ) ) && ( ! ( sm . isDeleted ( ) ) ) )
Buggy code:
public class TPCMaster extends Thread implements KVStore { private TPCNode node ; public TreeSet < Integer > yesList = null ; public TreeSet < Integer > noList = null ; public TreeSet < Integer > ackList = null ; public ArrayList < Message > stateReports = null ; public TreeSet < Integer > uncertainList = null ; private boolean recovery = false ; private final int TIME_OUT = 4 ; public TPCMaster ( TPCNode node ) { } public TPCMaster ( TPCNode node , boolean r ) { } public void run ( ) { } @ Override public boolean add ( String song , String url ) { } @ Override public boolean delete ( String song , String url ) { } @ Override public boolean edit ( String song , String url ) { } public int getProcNum ( ) { } public void logToScreen ( String m ) { <START_BUG> node . logToScreen ( m ) ; <END_BUG> } public void broadcast ( Message m ) { } public void unicast ( int dst , Message m ) { } public void doPreCommit ( TreeSet < Integer > list ) { } public void doCommit ( ) { } public void doAbort ( TreeSet < Integer > list ) { } public boolean twoPC ( Message m ) { } public void startTPC ( Message m ) { } public void finishTPC ( ) { } public boolean collectReply ( int time_out ) { } public boolean collectAck ( int time_out ) { } public boolean threePC ( Message m ) { } public void startTermination ( ) { } public void collectStateReport ( int time_out ) { } public SlaveState countStateReport ( ) { } public void runTermination ( ) { } class Listener extends Thread { public void run ( ) { } public void processMessage ( Message m ) { } } No newline ; at end ; of file ; }

Fix:
node . logToScreen ( ( "M:<seq2seq4repair_space>" + m ) ) ;
Buggy code:
public class RemoveContactTest extends AbstractFolderTstCase { public RemoveContactTest ( String test ) { } public void testRemoveObject ( ) throws Exception { ContactModel c = new ContactModel ( ) ; c . setNickName ( "nickname" ) ; <START_BUG> Object uid = getSourceFolder ( ) . add ( c ) ; <END_BUG> getSourceFolder ( ) . remove ( uid ) ; assertEquals ( "folder<seq2seq4repair_space>contact<seq2seq4repair_space>count<seq2seq4repair_space>==<seq2seq4repair_space>0" , 0 , getSourceFolder ( ) . count ( ) ) ; } }

Fix:
String uid = getSourceFolder ( ) . add ( c ) ;
Buggy code:
public class Lock { private boolean locked ; private Object locker ; public Lock ( ) { } public synchronized boolean tryToGetLock ( Object locker ) { <START_BUG> if ( ( this . locker ) == locker ) <END_BUG> return true ; if ( locked ) { return false ; } else { locked = true ; this . locker = locker ; return true ; } } public void release ( ) { } }

Fix:
if ( ( ( this . locker ) == locker ) && ( locker != null ) )
Buggy code:
public class JDBCInformixCreateCommand extends JDBCIdentityColumnCreateCommand { private static final String NAME = "class-name" ; private static final String DEFAULT_CLASS = "com.informix.jdbc.IfxStatement" ; private static final String METHOD = "method" ; private static final String DEFAULT_METHOD = "getSerial" ; private String className ; private String methodName ; private Method method ; public void init ( JDBCStoreManager manager ) throws DeploymentException { super . init ( manager ) ; try { <START_BUG> Class psClass = Thread . currentThread ( ) . getContextClassLoader ( ) . loadClass ( className ) ; <END_BUG> method = psClass . getMethod ( methodName , null ) ; } catch ( ClassNotFoundException e ) { throw new DeploymentException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>load<seq2seq4repair_space>driver<seq2seq4repair_space>class:<seq2seq4repair_space>" + ( className ) ) , e ) ; } catch ( NoSuchMethodException e ) { throw new DeploymentException ( ( ( "Driver<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>method:<seq2seq4repair_space>" + ( methodName ) ) + "()" ) ) ; } } protected void initEntityCommand ( JDBCEntityCommandMetaData entityCommand ) throws DeploymentException { } protected int executeInsert ( int paramIndex , PreparedStatement ps , EntityEnterpriseContext ctx ) throws SQLException { } }

Fix:
Class psClass = GetTCLAction . getContextClassLoader ( ) . loadClass ( className ) ;
Buggy code:
public class SqRtRenderer implements GLSurfaceView . Renderer { public static FrameBuffer fb = null ; private World world = null ; private RGBColor back = new RGBColor ( 170 , 200 , 255 ) ; private boolean iscreated ; private Context context ; private SqRtGLSurfaceView srglsv ; public SqRtRenderer ( SqRtGLSurfaceView srglsv , SquareRootActivity context ) { } @ Override public void onDrawFrame ( GL10 arg0 ) { } @ Override public void onSurfaceChanged ( GL10 gl , int w , int h ) { if ( ( SqRtRenderer . fb ) != null ) { SqRtRenderer . fb . dispose ( ) ; } SqRtRenderer . fb = new FrameBuffer ( w , h ) ; if ( ! ( SquareRootActivity . rendererinitialized ) ) { Texture . defaultToKeepPixels ( true ) ; world = new World ( ) ; world . setAmbientLight ( 50 , 50 , 50 ) ; world . setClippingPlanes ( 1 , 5000 ) ; setupTextures ( ) ; Camera cam = world . getCamera ( ) ; <START_BUG> Controls . setup ( context , cam ) ; <END_BUG> Game . setup ( world ) ; Controls . setupLevel ( level , w , h ) ; activity . world = world ; SquareRootActivity . rendererinitialized = true ; } else { world = activity . world ; } } @ Override public void onSurfaceCreated ( GL10 arg0 , EGLConfig arg1 ) { } public void onStop ( ) { } public void onPause ( ) { } public void onResume ( ) { } public void setupTextures ( ) { } }

Fix:
Controls . setup ( cam ) ;