nus-yam/ex-repair huggingface dataset:
Buggy code:
public class FilteredTree extends Composite { protected Text filterText ; protected ToolBarManager filterToolBar ; protected TreeViewer treeViewer ; protected Composite filterComposite ; private PatternFilter patternFilter ; protected String initialText = "" ; private Job refreshJob ; protected Composite parent ; protected boolean showFilterControls ; protected Composite treeComposite ; private static final String CLEAR_ICON = "org.eclipse.ui.internal.dialogs.CLEAR_ICON" ; private static final String DCLEAR_ICON = "org.eclipse.ui.internal.dialogs.DCLEAR_ICON" ; private static final long SOFT_MAX_EXPAND_TIME = 200 ; public FilteredTree ( Composite parent , int treeStyle , PatternFilter filter ) { } protected FilteredTree ( Composite parent ) { } protected void init ( int treeStyle , PatternFilter filter ) { } protected void createControl ( Composite parent , int treeStyle ) { } protected Composite createFilterControls ( Composite parent ) { } protected Control createTreeControl ( Composite parent , int style ) { } protected TreeViewer doCreateTreeViewer ( Composite parent , int style ) { } private TreeItem getFirstMatchingItem ( TreeItem [ ] items ) { } private void createRefreshJob ( ) { } protected void updateToolbar ( boolean visible ) { } protected void createFilterText ( Composite parent ) { } protected Text doCreateFilterText ( Composite parent ) { <START_BUG> return new Text ( parent , ( ( SWT . SINGLE ) | ( SWT . BORDER ) ) ) ; <END_BUG> } private String previousFilterText ; private boolean narrowingDown ; protected void textChanged ( ) { } public void setBackground ( Color background ) { } private void createClearText ( Composite parent ) { } protected void clearText ( ) { } protected void setFilterText ( String string ) { } public final PatternFilter getPatternFilter ( ) { } public TreeViewer getViewer ( ) { } public Text getFilterControl ( ) { } protected String getFilterString ( ) { } public void setInitialText ( String text ) { } protected void selectAll ( ) { } protected String getInitialText ( ) { } public static Font getBoldFont ( Object element , FilteredTree tree , PatternFilter filter ) { } }

Fix:
return new Text ( parent , ( ( ( SWT . SINGLE ) | ( SWT . BORDER ) ) | ( SWT . SEARCH ) ) ) ;
Buggy code:
public class TestModisLSTListDatesFiles { private static DownloadMetaData data ; private static ProjectInfoFile projectInfoFile ; @ BeforeClass public static void setUpBeforeClass ( ) throws Exception { String mode = "HTTP" ; FTP myFtp = null ; HTTP myHttp = new HTTP ( "http:////e4ftl01.cr.usgs.gov//MOLT//MOD11A2.005//" ) ; String className = null ; String timeZone = null ; int filesPerDay = - 1 ; String datePatternStr = "\\d{4}" ; String fileNamePatternStr = "MOD11A2.A(\\d{7}).h(\\d{2})v(\\d{2}).005.(\\d{13}).hdf" ; LocalDate ld = LocalDate . parse ( "Sun<seq2seq4repair_space>Mar<seq2seq4repair_space>01<seq2seq4repair_space>00:00:01<seq2seq4repair_space>CDT<seq2seq4repair_space>2015" , DateTimeFormatter . ofPattern ( "EEE<seq2seq4repair_space>MMM<seq2seq4repair_space>dd<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>zzz<seq2seq4repair_space>uuuu" ) ) ; TestModisLSTListDatesFiles . data = new DownloadMetaData ( null , null , null , null , null , mode , myFtp , myHttp , className , timeZone , filesPerDay , datePatternStr , fileNamePatternStr , ld ) ; TestModisLSTListDatesFiles . projectInfoFile = new ProjectInfoFile ( "C:\\Users\\yi.liu\\git\\EastWeb.V2\\src\\version2\\prototype\\ProjectInfoMetaData\\Project_TW_TRMMrt.xml" ) ; <START_BUG> ArrayList < String > modisTiles = TestModisLSTListDatesFiles . projectInfoFile . GetModisTiles ( ) ; <END_BUG> for ( String tile : modisTiles ) { System . out . println ( tile ) ; } } @ AfterClass public static void tearDownAfterClass ( ) throws Exception { } @ Test public void testListDatesFilesHTTP ( ) throws IOException { } }

Fix:
ArrayList < String > modisTiles = TestModisLSTListDatesFiles . projectInfoFile . GetPlugins ( ) . get ( 0 ) . GetModisTiles ( ) ;
Buggy code:
public class GreenMail extends ConfiguredGreenMail { private Managers managers ; private Map < String , Service > services ; private ServerSetup [ ] config ; public GreenMail ( ) { } public GreenMail ( ServerSetup config ) { } public GreenMail ( ServerSetup [ ] config ) { } private void init ( ) { } @ Override public synchronized void start ( ) { } @ Override public synchronized void stop ( ) { } @ Override public void reset ( ) { } private static Map < String , Service > createServices ( ServerSetup [ ] config , Managers mgr ) { } @ Override public SmtpServer getSmtp ( ) { } @ Override public ImapServer getImap ( ) { } @ Override public Pop3Server getPop3 ( ) { } @ Override public SmtpServer getSmtps ( ) { } @ Override public ImapServer getImaps ( ) { } @ Override public Pop3Server getPop3s ( ) { } @ Override public Managers getManagers ( ) { } @ Override public boolean waitForIncomingEmail ( long timeout , int emailCount ) { } @ Override public boolean waitForIncomingEmail ( int emailCount ) { } @ Override public MimeMessage [ ] getReceivedMessages ( ) { } @ Override public MimeMessage [ ] getReceviedMessagesForDomain ( String domain ) { } @ Override public GreenMailUser setUser ( String login , String password ) { } @ Override public GreenMailUser setUser ( String email , String login , String password ) { <START_BUG> GreenMailUser user = managers . getUserManager ( ) . getUser ( email ) ; <END_BUG> if ( null == user ) { try { user = managers . getUserManager ( ) . createUser ( email , login , password ) ; } catch ( UserException e ) { throw new RuntimeException ( e ) ; } } else { user . setPassword ( password ) ; } return user ; } @ Override public void setQuotaSupported ( boolean isEnabled ) { } @ Override public void setUsers ( Properties users ) { } @ Override public GreenMail withConfiguration ( GreenMailConfiguration config ) { } public GreenMailUtil util ( ) { } }

Fix:
GreenMailUser user = managers . getUserManager ( ) . getUser ( login ) ;
Buggy code:
public class DeploymentUndeployHandler implements ModelUpdateOperationHandler , DescriptionProvider , RuntimeOperationHandler { public static final String OPERATION_NAME = "undeploy" ; static final ModelNode getOperation ( ModelNode address ) { } public static final DeploymentUndeployHandler INSTANCE = new DeploymentUndeployHandler ( ) ; private DeploymentUndeployHandler ( ) { } @ Override public ModelNode getModelDescription ( Locale locale ) { <START_BUG> return DeploymentDescription . getDeployDeploymentOperation ( locale ) ; <END_BUG> } @ Override public Cancellable execute ( NewOperationContext context , ModelNode operation , ResultHandler resultHandler ) { } private void undeploy ( ModelNode model , NewOperationContext context , ResultHandler resultHandler , ModelNode compensatingOp ) { } }

Fix:
return DeploymentDescription . getUndeployDeploymentOperation ( locale ) ;
Buggy code:
public class RuleReport { private static final Float MAX_SCORE = 100.0F ; private static final Float MIN_SCORE = 0.0F ; private Rule rule ; private String suggestion ; private List < ReportEntry > entries ; private Float debt ; public RuleReport ( Rule rule , String suggestion , Float debt ) { } public Float getScore ( ) { if ( ( entries . size ( ) ) == 0 ) { <START_BUG> return RuleReport . MAX_SCORE ; <END_BUG> } Float score = RuleReport . MIN_SCORE ; for ( ReportEntry e : entries ) { if ( e . isSuccess ( ) ) { score ++ ; } } return ( score * ( RuleReport . MAX_SCORE ) ) // ( ( float ) ( entries . size ( ) ) ) ; } public boolean addEntry ( ReportEntry entry ) { } public List < ReportEntry > getEntries ( ) { } public String getSuggestion ( ) { } public Rule getRule ( ) { } public Float getDebt ( ) { } public String [ ] getColumns ( ) { } }

Fix:
return null ;
Buggy code:
@ Path ( "//Portfolio" ) public class Portfolio { @ GET @ Produces ( "text//html" ) public String getTrades ( ) throws SQLException { Connection cn = DriverManager . getConnection ( "jdbc:mysql:////localhost//ad3db" , "root" , "password" ) ; <START_BUG> String result = "<table<seq2seq4repair_space>class='table<seq2seq4repair_space>table-striped'><thead><tr><th><seq2seq4repair_space>Author<seq2seq4repair_space><//th><th><seq2seq4repair_space>Date<seq2seq4repair_space><//th>" + ( "<th><seq2seq4repair_space>Company<seq2seq4repair_space>Name<seq2seq4repair_space><//th><th><seq2seq4repair_space>Ask<seq2seq4repair_space>Price<seq2seq4repair_space><//th><th><seq2seq4repair_space>Bid<seq2seq4repair_space>Price<seq2seq4repair_space><//th><th><seq2seq4repair_space>Position<seq2seq4repair_space><//th>" + "<th><seq2seq4repair_space>Size<seq2seq4repair_space><//th><th><seq2seq4repair_space>Profit<seq2seq4repair_space>%<seq2seq4repair_space><//th><th><seq2seq4repair_space>Shares<seq2seq4repair_space><//th><th><seq2seq4repair_space>Dollar<seq2seq4repair_space>Profit<seq2seq4repair_space><//th><//tr><//thead>" ) ; <END_BUG> try { Statement st = cn . createStatement ( ) ; ResultSet rs = st . executeQuery ( "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Trades" ) ; while ( rs . next ( ) ) { result += ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<tr><td>" + ( rs . getString ( 2 ) ) ) + "<//td><td>" ) + ( rs . getDate ( 3 ) ) ) + "<//td><td>" ) + ( rs . getString ( 4 ) ) ) + "<//td><td>" ) + ( rs . getDouble ( 5 ) ) ) + "<//td><td>" ) + ( rs . getDouble ( 6 ) ) ) + "<//td><td>" ) + ( rs . getString ( 7 ) ) ) + "<//td><td>" ) + ( rs . getInt ( 10 ) ) ) + "<//td><td>" ) + ( rs . getString ( 11 ) ) ) + "<//td><//tr>" ; } result += "<//table>" ; } catch ( Exception ex ) { System . out . println ( ( "ERROR:<seq2seq4repair_space>" + ( ex . getMessage ( ) ) ) ) ; } finally { if ( cn != null ) { cn . close ( ) ; } } return result ; } }

Fix:
String result = "<table<seq2seq4repair_space>class='table<seq2seq4repair_space>table-striped'><thead><tr><th><seq2seq4repair_space>Author<seq2seq4repair_space><//th><th><seq2seq4repair_space>Date<seq2seq4repair_space><//th>" + ( "<th><seq2seq4repair_space>Company<seq2seq4repair_space>Name<seq2seq4repair_space><//th><th><seq2seq4repair_space>Ask<seq2seq4repair_space>Price<seq2seq4repair_space><//th><th><seq2seq4repair_space>Bid<seq2seq4repair_space>Price<seq2seq4repair_space><//th><th><seq2seq4repair_space>Position<seq2seq4repair_space><//th>" + "<th><seq2seq4repair_space>Shares<seq2seq4repair_space><//th><th><seq2seq4repair_space>Dollar<seq2seq4repair_space>Profit<seq2seq4repair_space><//th><//tr><//thead>" ) ;
Buggy code:
public class BoundedInputStream extends FilterInputStream { private final int size ; private int count = 0 ; private boolean eof = false ; private int mark ; public BoundedInputStream ( InputStream in , int size ) { } @ Override public synchronized int read ( ) throws IOException { } @ Override public int read ( byte [ ] b ) throws IOException { } @ Override public int read ( byte [ ] b , int off , int len ) throws IOException { if ( ( eof ) || ( ( count ) >= ( size ) ) ) { return - 1 ; } else { len = Math . min ( len , ( ( size ) - ( count ) ) ) ; int read = super . read ( b , off , len ) ; if ( read == ( - 1 ) ) { eof = true ; } else { <START_BUG> count += len ; <END_BUG> } return read ; } } @ Override public long skip ( long n ) throws IOException { } @ Override public int available ( ) throws IOException { } @ Override public void mark ( int readlimit ) { } @ Override public void reset ( ) throws IOException { } }

Fix:
count += read ;
Buggy code:
public final class MultiRegistrationAction extends Action { private Log log = LogFactory . getFactory ( ) . getInstance ( this . getClass ( ) . getName ( ) ) ; public ActionForward execute ( ActionMapping mapping , ActionForm form , HttpServletRequest request , HttpServletResponse response ) throws Exception { HttpSession session = request . getSession ( ) ; Locale locale = getLocale ( request ) ; MessageResources messages = getResources ( request ) ; RegistrationForm info = ( ( RegistrationForm ) ( form ) ) ; String action = request . getParameter ( "action" ) ; if ( isCancelled ( request ) ) { if ( log . isInfoEnabled ( ) ) { log . info ( ( ( "<seq2seq4repair_space>" + ( mapping . getAttribute ( ) ) ) + "<seq2seq4repair_space>-<seq2seq4repair_space>Registration<seq2seq4repair_space>transaction<seq2seq4repair_space>was<seq2seq4repair_space>cancelled" ) ) ; } removeFormBean ( mapping , request ) ; return mapping . findForward ( "success" ) ; } ActionErrors errors = info . validate ( mapping , request ) ; <START_BUG> if ( ( errors != null ) && ( errors . empty ( ) ) ) { <END_BUG> if ( ( info . getPage ( ) ) == 1 ) return mapping . findForward ( "input2" ) ; if ( ( info . getPage ( ) ) == 2 ) return mapping . findForward ( "success" ) ; } else { saveErrors ( request , errors ) ; if ( ( info . getPage ( ) ) == 1 ) return mapping . findForward ( ( "input" + ( info . getPage ( ) ) ) ) ; if ( ( info . getPage ( ) ) == 2 ) return mapping . findForward ( ( "input" + ( info . getPage ( ) ) ) ) ; } return mapping . findForward ( "input1" ) ; } protected void removeFormBean ( ActionMapping mapping , HttpServletRequest request ) { } }

Fix:
if ( ( errors != null ) && ( errors . isEmpty ( ) ) ) {
Buggy code:
public class SpringExampleApplication extends SpringApplication { public void initSettings ( ) { <START_BUG> getSettings ( ) . setHomePage ( SpringHtmlPage . class ) ; <END_BUG> getSettings ( ) . setResourcePollFrequency ( ONE_SECOND ) ; } }

Fix:
getPages ( ) . setHomePage ( SpringHtmlPage . class ) ;
Buggy code:
public class JettyWebSocketTestServer implements WebSocketTestServer { private Server jettyServer ; private int port = - 1 ; @ Override public void setup ( ) { } @ Override public int getPort ( ) { } @ Override public void deployConfig ( WebApplicationContext cxt , Filter ... filters ) { } private EnumSet < DispatcherType > getDispatcherTypes ( ) { } @ Override public void undeployConfig ( ) { } @ Override public void start ( ) throws Exception { } @ Override public void stop ( ) throws Exception { if ( this . jettyServer . isRunning ( ) ) { <START_BUG> this . jettyServer . setStopTimeout ( 0 ) ; <END_BUG> this . jettyServer . stop ( ) ; } } }

Fix:
this . jettyServer . setStopTimeout ( 5000 ) ;
Buggy code:
public final class PELoader { private static final Logger logger = LogManager . getLogger ( PELoader . class . getName ( ) ) ; private final File file ; private PELoader ( File file ) { } public static PEData loadPE ( File peFile ) throws IOException { } private PEData loadData ( ) throws IOException { } private int getOptHeaderSize ( long offset ) { } private COFFFileHeader reloadCOFFFileHeader ( PESignature pesig , MemoryMappedPE mmBytes , PEData data ) throws IOException { } private OptionalHeader reloadOptionalHeader ( PESignature pesig , MemoryMappedPE mmBytes , PEData data ) throws IOException { } private MSDOSHeader loadMSDOSHeader ( RandomAccessFile raf , long peSigOffset ) throws IOException { } private SectionTable loadSectionTable ( PESignature pesig , COFFFileHeader coff , RandomAccessFile raf ) throws IOException { } private COFFFileHeader loadCOFFFileHeader ( PESignature pesig , RandomAccessFile raf ) throws IOException { } private OptionalHeader loadOptionalHeader ( PESignature pesig , COFFFileHeader coff , RandomAccessFile raf ) throws IOException { } public static void main ( String [ ] args ) throws AWTException , IOException { PELoader . logger . entry ( ) ; <START_BUG> File file = new File ( "//home//katja//samples//7011d1af961170f91c1c54afd5cb38e9ba954a68c84b62ab9a822ad88f81e06e" ) ; <END_BUG> PEData data = PELoader . loadPE ( file ) ; ReportCreator reporter = ReportCreator . newInstance ( data . getFile ( ) ) ; reporter . printReport ( ) ; VisualizerBuilder builder = new VisualizerBuilder ( ) ; Visualizer vi = builder . build ( ) ; final BufferedImage entropyImage = vi . createEntropyImage ( file ) ; final BufferedImage structureImage = vi . createImage ( file ) ; final BufferedImage appendedImage = ImageUtil . appendImages ( entropyImage , structureImage ) ; PELoader . show ( appendedImage ) ; } private static void show ( final BufferedImage image ) { } }

Fix:
File file = new File ( "//home//katja//samples//Tickets//599143_MyPhoneExplorer//63ea67424bb3089e376f36c47a8fa32b0a828ddbe34447a9f9d97f8947e9ad60" ) ;
Buggy code:
public class AppDataLoader { private static final Log log = LogFactory . getLog ( AppDataLoader . class ) ; public static App load ( App app , GenericArtifact artifact , String action ) { try { app . setId ( artifact . getId ( ) ) ; app . setName ( artifact . getAttribute ( "overview_name" ) ) ; app . setPlatform ( artifact . getAttribute ( "overview_platform" ) ) ; app . setVersion ( artifact . getAttribute ( "overview_version" ) ) ; app . setType ( artifact . getAttribute ( "overview_type" ) ) ; <START_BUG> app . setIconImage ( artifact . getAttribute ( "overview_thumbnail" ) ) ; <END_BUG> if ( "Enterprise" . equals ( artifact . getAttribute ( "overview_type" ) ) ) { app . setType ( "enterprise" ) ; if ( "install" . equals ( action ) ) { app . setLocation ( ( ( HostResolver . getHost ( MobileConfigurations . getInstance ( ) . getAppDownloadHost ( ) ) ) + ( artifact . getAttribute ( "overview_url" ) ) ) ) ; } } else if ( "Market" . equals ( artifact . getAttribute ( "overview_type" ) ) ) { app . setType ( "public" ) ; } else if ( "Web<seq2seq4repair_space>App" . equals ( artifact . getAttribute ( "overview_type" ) ) ) { app . setType ( "webapp" ) ; app . setLocation ( artifact . getAttribute ( "overview_url" ) ) ; app . setIdentifier ( artifact . getAttribute ( "overview_url" ) ) ; } if ( "android" . equals ( artifact . getAttribute ( "overview_platform" ) ) ) { app . setPackageName ( artifact . getAttribute ( "overview_packagename" ) ) ; app . setIdentifier ( artifact . getAttribute ( "overview_packagename" ) ) ; } else if ( "ios" . equals ( artifact . getAttribute ( "overview_platform" ) ) ) { app . setPackageName ( artifact . getAttribute ( "overview_packagename" ) ) ; app . setAppIdentifier ( artifact . getAttribute ( "overview_appid" ) ) ; app . setIdentifier ( artifact . getAttribute ( "overview_appid" ) ) ; } } catch ( GovernanceException e ) { AppDataLoader . log . error ( "Error<seq2seq4repair_space>occurred<seq2seq4repair_space>while<seq2seq4repair_space>retrieving<seq2seq4repair_space>information<seq2seq4repair_space>from<seq2seq4repair_space>governance<seq2seq4repair_space>registry" ) ; AppDataLoader . log . debug ( ( "Error:<seq2seq4repair_space>" + e ) ) ; } finally { return app ; } } }

Fix:
app . setIconImage ( ( ( HostResolver . getHostWithHTTP ( ) ) + ( artifact . getAttribute ( "images_thumbnail" ) ) ) ) ;
Buggy code:
public final class Settings { private Plugin plugin ; private Strings strings ; private File configFile ; private FileConfiguration fileSettingConfiguration ; public Settings ( Plugin plugin , File configFile , Strings strings ) { } private void checkAndCreate ( ) { } private void loadProperties ( ) { } public boolean checkConfigVersion ( boolean notify ) { } public void doConfigurationUpgrade ( ) { } private void createDefaultSettings ( ) { } public int getIntProperty ( String property ) { } public boolean getBooleanProperty ( String property ) { } public String getStringProperty ( String property ) { } public int getIntervalInMinutes ( ) { String settingBackupInterval = getStringProperty ( "backupinterval" ) ; <START_BUG> if ( settingBackupInterval . equals ( "-1" ) ) { <END_BUG> return 0 ; } String lastLetter = settingBackupInterval . substring ( ( ( settingBackupInterval . length ( ) ) - 1 ) , settingBackupInterval . length ( ) ) ; int amountTime = Integer . parseInt ( settingBackupInterval . substring ( 0 , ( ( settingBackupInterval . length ( ) ) - 1 ) ) ) ; if ( lastLetter . equals ( "H" ) ) amountTime = amountTime * 60 ; else if ( lastLetter . equals ( "D" ) ) amountTime = amountTime * 1440 ; else if ( lastLetter . equals ( "W" ) ) amountTime = amountTime * 10080 ; return amountTime ; } }

Fix:
if ( ( settingBackupInterval . trim ( ) . equals ( "-1" ) ) || ( settingBackupInterval == null ) ) {
Buggy code:
public class DeleteGroupListener implements EventListener { @ Override public void execute ( Event event ) throws EventExecutedException { try { if ( "delete-group" . equals ( event . getType ( ) ) ) { Group group = new Group ( ) . from ( event . getSource ( ) ) ; if ( ( group . getInt ( "level" ) ) > 1 ) return ; List < VMModel > list = VMHelper . getVMsByGroupID ( group . getId ( ) , new BasicDBObject ( "jenkins" , true ) ) ; if ( ( list . size ( ) ) == 1 ) { VMModel jenkins = list . get ( 0 ) ; List < VMModel > vms = VMHelper . getVMsByGroupID ( group . getId ( ) ) ; for ( VMModel vm : vms ) { VMHelper . removeVM ( vm ) ; VirtualMachineAPI . destroyVM ( VMHelper . getCloudStackClient ( ) , vm . getId ( ) , true ) ; if ( ! ( vm . getBoolean ( "system" ) ) ) { new org . ats . jenkins . JenkinsSlave ( new org . ats . jenkins . JenkinsMaster ( jenkins . getPublicIP ( ) , "http" , 8080 ) , vm . getPublicIP ( ) ) . release ( ) ; <START_BUG> VMHelper . getKnife ( ) . deleteNode ( vm . getName ( ) ) ; <END_BUG> } } } OfferingHelper . removeDefaultOfferingOfGroup ( group . getId ( ) ) ; } } catch ( Exception e ) { Logger . error ( "DeleteGroupListener<seq2seq4repair_space>error" , e ) ; } } }

Fix:
VMHelper . getKnife ( jenkins ) . deleteNode ( vm . getName ( ) ) ;
Buggy code:
public class ServerShutdownHandler implements OperationStepHandler { private static final SimpleAttributeDefinition RESTART = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( ModelDescriptionConstants . RESTART , ModelType . BOOLEAN ) . setDefaultValue ( new ModelNode ( false ) ) . setAllowNull ( true ) . build ( ) ; public static final SimpleOperationDefinition DEFINITION = new org . jboss . as . controller . SimpleOperationDefinitionBuilder ( "shutdown" , ServerDescriptions . getResourceDescriptionResolver ( ) ) . setParameters ( ServerShutdownHandler . RESTART ) . build ( ) ; private final ControlledProcessState processState ; public ServerShutdownHandler ( ControlledProcessState processState ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { final boolean restart = ServerShutdownHandler . RESTART . resolveModelAttribute ( context , operation ) . asBoolean ( ) ; context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { processState . setStopping ( ) ; final Thread thread = new Thread ( new Runnable ( ) { public void run ( ) { <START_BUG> System . exit ( ( restart ? ExitCodes . RESTART_PROCESS_FROM_STARTUP_SCRIPT : 0 ) ) ; <END_BUG> } } ) ; thread . setName ( "Management<seq2seq4repair_space>Triggered<seq2seq4repair_space>Shutdown" ) ; thread . start ( ) ; context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; } } , RUNTIME ) ; context . stepCompleted ( ) ; } }

Fix:
System . exit ( ( restart ? ExitCodes . RESTART_PROCESS_FROM_STARTUP_SCRIPT : ExitCodes . NORMAL ) ) ;
Buggy code:
public class Lib_Util_File { public static InputStream clearBom ( InputStream in ) throws IOException { } public static boolean isExistSDCard ( ) { } public static long getSDAvaiableSize ( ) { } public static long getSDSize ( ) { } public static boolean saveToFile ( InputStream in , String savePath ) { } public static String getFilePath ( String fileDir , String fileName ) { } public static boolean saveToFile ( Bitmap bitmap , String savePath ) { } public static long getSDFreeDiskSpace ( ) { } public static long getSystemFreeDiskSpace ( ) { } public static void deleteFile ( File file ) { } public static String getFileSuffix ( String filePath ) { } @ SuppressWarnings ( "resource" ) public static Serializable readObject ( String objectFilePath ) { } public static boolean writeObject ( Serializable object , String savePath ) { } public static String getBuildInPath ( Context context ) { } public static void copyAssetToSDCard ( Context context , String assetsFileName , File sdFile ) { if ( ! ( sdFile . canWrite ( ) ) ) { throw new IllegalArgumentException ( "sdFile<seq2seq4repair_space>不能写" ) ; } if ( sdFile . exists ( ) ) { <START_BUG> sdFile . delete ( ) ; <END_BUG> } InputStream ins = null ; FileOutputStream out = null ; try { ins = context . getAssets ( ) . open ( assetsFileName ) ; out = new FileOutputStream ( sdFile ) ; byte [ ] buffer = new byte [ 1024 ] ; int count = - 1 ; while ( ( count = ins . read ( buffer ) ) != ( - 1 ) ) { out . write ( buffer , 0 , count ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } finally { if ( ins != null ) { try { ins . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } if ( out != null ) { try { out . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } } }

Fix:
return ;
Buggy code:
public class CodeProcessor { public CodeProcessor ( ) { } public int runCodeJava ( String Rawcode , String uname , String pid , String lang ) throws IOException , ExecuteException { } public int RunAndCompare ( String pid , String uname ) throws IOException , ExecuteException { int status = 1 ; ArrayList < String > list = new ArrayList < > ( ) ; File testcases = new File ( ( ( "//home//gaurav//CodeSalad//Problems//" + pid ) + "//testcases.txt" ) ) ; FileInputStream fIn = new FileInputStream ( testcases ) ; BufferedReader bRead = new BufferedReader ( new InputStreamReader ( fIn ) ) ; String values ; String temp1 = "" ; String temp2 = "" ; int track = 0 ; while ( ( values = bRead . readLine ( ) ) != null ) { for ( int i = 0 ; i < ( values . length ( ) ) ; i ++ ) { if ( ( values . charAt ( i ) ) != '|' ) { temp1 += values . charAt ( i ) ; } if ( ( values . charAt ( i ) ) == '|' ) { temp1 += "<seq2seq4repair_space>" ; track = i ; break ; } } for ( int j = track + 1 ; j < ( values . length ( ) ) ; j ++ ) { <START_BUG> temp2 += values . charAt ( j ) ; <END_BUG> } } File testoutputs = new File ( ( ( "//home//gaurav//CodeSalad//Problems//" + pid ) + "//testoutputs.txt" ) ) ; testoutputs . createNewFile ( ) ; FileWriter fWriter = new FileWriter ( testoutputs ) ; fWriter . write ( temp2 ) ; fWriter . flush ( ) ; fWriter . close ( ) ; String address1 = ( "//home//gaurav//CodeSalad//Users//" + uname ) + "//output.txt" ; String address2 = ( "//home//gaurav//CodeSalad//Problems//" + pid ) + "//testoutputs.txt" ; String script = ( ( ( ( ( "#!//bin//bash<seq2seq4repair_space>\n<seq2seq4repair_space>echo<seq2seq4repair_space>" + temp1 ) + "<seq2seq4repair_space>|<seq2seq4repair_space>java<seq2seq4repair_space>-classpath<seq2seq4repair_space>//home//gaurav//CodeSalad//Users//" ) + uname ) + "<seq2seq4repair_space>Main<seq2seq4repair_space>><seq2seq4repair_space>//home//gaurav//CodeSalad//Users//" ) + uname ) + "//output.txt" ; System . out . println ( script ) ; Scriptinator newScript = new Scriptinator ( script , "Compare" ) ; String line = "//home//gaurav//CodeSalad//Scripts//Compare.sh<seq2seq4repair_space>" ; CommandLine cmdLine = CommandLine . parse ( line ) ; DefaultExecutor executor = new DefaultExecutor ( ) ; try { status = executor . execute ( cmdLine ) ; } catch ( Exception e ) { return status ; } File f1 = new File ( address1 ) ; File f2 = new File ( address2 ) ; FileInputStream fIn1 = new FileInputStream ( f1 ) ; BufferedReader bRead1 = new BufferedReader ( new InputStreamReader ( fIn1 ) ) ; String in ; String F1 = "" ; String F2 = "" ; while ( ( in = bRead1 . readLine ( ) ) != null ) { F1 += in ; } fIn = new FileInputStream ( f2 ) ; bRead = new BufferedReader ( new InputStreamReader ( fIn ) ) ; in = "" ; while ( ( in = bRead . readLine ( ) ) != null ) { F2 += in ; } if ( F1 . equals ( F2 ) ) { status = 0 ; } return status ; } public String errGen ( String pid , String uname ) throws IOException { } public static void main ( String [ ] args ) throws IOException { } }

Fix:
temp2 += ( values . charAt ( j ) ) + "\n" ;
Buggy code:
public class WorkbenchErrorHandler extends AbstractStatusHandler { public void handle ( final StatusAdapter statusAdapter , int style ) { if ( ( style & ( StatusManager . SHOW ) ) == ( StatusManager . SHOW ) ) { <START_BUG> StatusNotificationManager . getInstance ( ) . addError ( statusAdapter . getStatus ( ) , null ) ; <END_BUG> } if ( ( style & ( StatusManager . LOG ) ) == ( StatusManager . LOG ) ) { StatusManager . getManager ( ) . addLoggedStatus ( statusAdapter . getStatus ( ) ) ; WorkbenchPlugin . getDefault ( ) . getLog ( ) . log ( statusAdapter . getStatus ( ) ) ; } } }

Fix:
StatusNotificationManager . getInstance ( ) . addError ( statusAdapter ) ;
Buggy code:
public class ForecastFragment extends ListFragment { String [ ] fakeData = new String [ ] { "Pogoda!<seq2seq4repair_space>Khorosho!" , "Pogoda!<seq2seq4repair_space>Khorosho!" , "Pogoda!<seq2seq4repair_space>Khorosho!" , "Pogoda!<seq2seq4repair_space>Khorosho!" , "Pogoda!<seq2seq4repair_space>Khorosho!" , "Pogoda!<seq2seq4repair_space>Khorosho!" , "Pogoda!<seq2seq4repair_space>Khorosho!" } ; SwipeRefreshLayout refreshLayout ; TextView text ; ArrayAdapter < String > adapter ; public void updateForecast ( ) { } @ Override public void onActivityCreated ( @ Nullable Bundle savedInstanceState ) { } @ Override public void onStart ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } private class GetForecast extends AsyncTask < String , Void , Forecast > { @ Override protected Forecast doInBackground ( String ... params ) { HttpURLConnection urlConnection = null ; BufferedReader bufferedReader = null ; String format = "json" ; String units = "metric" ; String days = "7" ; Forecast forecast = null ; try { <START_BUG> final String BASE_URL = "http:////api.openweathermap.org//data//2.5//forecast//daily?i" ; <END_BUG> final String QUERY_PARAM = "id" ; final String FORMAT_PARAM = "mode" ; final String UNITS_PARAM = "units" ; final String DAYS_PARAM = "cnt" ; Uri buirdUri = Uri . parse ( BASE_URL ) . buildUpon ( ) . appendQueryParameter ( QUERY_PARAM , params [ 0 ] ) . appendQueryParameter ( FORMAT_PARAM , format ) . appendQueryParameter ( UNITS_PARAM , units ) . appendQueryParameter ( DAYS_PARAM , days ) . build ( ) ; URL url = new URL ( buirdUri . toString ( ) ) ; Log . v ( "Forecast<seq2seq4repair_space>URL" , url . toString ( ) ) ; urlConnection = ( ( HttpURLConnection ) ( url . openConnection ( ) ) ) ; urlConnection . setRequestMethod ( "GET" ) ; urlConnection . connect ( ) ; InputStream inputStream = urlConnection . getInputStream ( ) ; if ( inputStream == null ) { return null ; } bufferedReader = new BufferedReader ( new InputStreamReader ( inputStream ) ) ; Gson gson = new Gson ( ) ; forecast = gson . fromJson ( bufferedReader , Forecast . class ) ; } catch ( MalformedURLException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } finally { if ( urlConnection != null ) { urlConnection . disconnect ( ) ; } if ( bufferedReader != null ) { try { bufferedReader . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } return forecast ; } @ Override protected void onPostExecute ( Forecast forecast ) { } } }

Fix:
final String BASE_URL = "http:////api.openweathermap.org//data//2.5//forecast//daily?" ;
Buggy code:
public class ModeServerThread extends ServerThread { public ModeServerThread ( DataCenter data_center , int target ) { } public ModeServerThread ( DataCenter data_center , Socket s ) { } @ Override public void run ( ) { } protected void processPacket ( Packet packet ) { ModeDataCenter replica = ( ( ModeDataCenter ) ( data_center ) ) ; switch ( packet . getType ( ) ) { case Insert : { int key = packet . getKey ( ) ; int value = packet . getValue ( ) ; long time = packet . getTimestamp ( ) ; replica . insert ( key , value , time ) ; Packet p = buildAckMsg ( packet ) ; p . setContent ( ( ( "Insert<seq2seq4repair_space>Ack<seq2seq4repair_space>For<seq2seq4repair_space>-><seq2seq4repair_space>\"" + ( packet . getContent ( ) ) ) + "\"" ) ) ; p . setType ( Ack ) ; replica . insertAckMessage ( p ) ; break ; } case Search : { int key = packet . getKey ( ) ; Content res = replica . get ( key ) ; Packet p = buildAckMsg ( packet ) ; p . setContent ( ( ( ( "Search<seq2seq4repair_space>Ack<seq2seq4repair_space>For<seq2seq4repair_space>-><seq2seq4repair_space>\"" + ( packet . getContent ( ) ) ) + "\";<seq2seq4repair_space>res<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( res != null ) ) ) ; p . setType ( SearchAck ) ; p . setValueTimestamp ( res ) ; replica . insertAckMessage ( p ) ; break ; } case Update : { int key = packet . getKey ( ) ; int value = packet . getValue ( ) ; long time = packet . getTimestamp ( ) ; replica . update ( key , value , time ) ; Packet p = buildAckMsg ( packet ) ; p . setContent ( ( ( "Update<seq2seq4repair_space>Ack<seq2seq4repair_space>For<seq2seq4repair_space>-><seq2seq4repair_space>\"" + ( packet . getContent ( ) ) ) + "\"" ) ) ; p . setType ( Ack ) ; <START_BUG> replica . insertMessage ( p ) ; <END_BUG> break ; } case Delete : { int key = packet . getKey ( ) ; replica . delete ( key ) ; Packet p = buildAckMsg ( packet ) ; p . setContent ( ( ( "Delete<seq2seq4repair_space>Ack<seq2seq4repair_space>For<seq2seq4repair_space>-><seq2seq4repair_space>\"" + ( packet . getContent ( ) ) ) + "\"" ) ) ; p . setType ( Ack ) ; replica . insertAckMessage ( p ) ; break ; } case Get : { int key = packet . getKey ( ) ; Content content = replica . get ( key ) ; Packet p = buildAckMsg ( packet ) ; p . setType ( GetAck ) ; p . setValueTimestamp ( content ) ; replica . insertAckMessage ( p ) ; break ; } case GetAck : { processGetAck ( packet ) ; break ; } case SearchAck : { processSearchAck ( packet ) ; break ; } case Ack : { replica . increaseAck ( packet . getId ( ) ) ; break ; } default : System . out . println ( "Can't<seq2seq4repair_space>recognize<seq2seq4repair_space>the<seq2seq4repair_space>packet." ) ; } } private void processSearchAck ( Packet p ) { } private void processGetAck ( Packet p ) { } private Packet buildAckMsg ( Packet packet ) { } }

Fix:
replica . insertAckMessage ( p ) ;
Buggy code:
public class FilesystemDialog extends DialogFragment { public static final String EXTERNAL_STORAGE_PATH = Environment . getExternalStorageDirectory ( ) . getPath ( ) ; private ListView filesListView ; private TextView emptyFolderTextView ; private ArrayList < File > files ; private FileAdapter filesAdapter ; private File rootDir ; private File currentDir ; private Button previousDirButton ; private boolean isMovingFile ; private boolean isSelectingFolder ; private boolean isSelectingForWidget ; private String selectedPath ; private TextView workingDirectoryText ; private OnDismissListener onDismissListener ; public FilesystemDialog ( ) { } public void sendBroadcast ( String name ) { Intent broadcast = new Intent ( ) ; if ( isMovingFile ) { broadcast . setAction ( FILESYSTEM_MOVE_DIALOG_TAG ) ; broadcast . putExtra ( FILESYSTEM_FILE_NAME , name ) ; } else <START_BUG> if ( isSelectingFolder ) { <END_BUG> broadcast . setAction ( FILESYSTEM_SELECT_FOLDER_TAG ) ; broadcast . putExtra ( FILESYSTEM_FILE_NAME , name ) ; } else { broadcast . setAction ( FILESYSTEM_IMPORT_DIALOG_TAG ) ; broadcast . putExtra ( FILESYSTEM_FILE_NAME , name ) ; } getActivity ( ) . sendBroadcast ( broadcast ) ; } @ Override public Dialog onCreateDialog ( Bundle savedInstanceState ) { } @ Override public void onResume ( ) { } private File getRootFolderFromPrefsOrDefault ( ) { } private void showCurrentDirectory ( String folder ) { } private void listFilesInDirectory ( File directory ) { } private void listDirectories ( File directory ) { } private void goToPreviousDir ( ) { } private void checkDirectoryStatus ( ) { } public void setOnDismissListener ( DialogInterface . OnDismissListener onDismissListener ) { } private class FilesItemClickListener implements AdapterView . OnItemClickListener { @ Override public void onItemClick ( AdapterView < ? > adapterView , View view , int i , long l ) { } } private class PreviousDirClickListener implements View . OnClickListener { @ Override public void onClick ( View v ) { } } @ Override public void onDismiss ( DialogInterface dialog ) { } }

Fix:
if ( ( isSelectingFolder ) || ( isSelectingForWidget ) ) {
Buggy code:
public class ListIteratorWrapper < E > implements ResettableListIterator < E > { private static final String UNSUPPORTED_OPERATION_MESSAGE = "ListIteratorWrapper<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>support<seq2seq4repair_space>optional<seq2seq4repair_space>operations<seq2seq4repair_space>of<seq2seq4repair_space>ListIterator." ; private static final String CANNOT_REMOVE_MESSAGE = "Cannot<seq2seq4repair_space>remove<seq2seq4repair_space>element<seq2seq4repair_space>at<seq2seq4repair_space>index<seq2seq4repair_space>{0}." ; private final Iterator < ? extends E > iterator ; private final List < E > list = new ArrayList < E > ( ) ; private int currentIndex = 0 ; private int wrappedIteratorIndex = 0 ; private boolean removeState ; public ListIteratorWrapper ( final Iterator < ? extends E > iterator ) { } public void add ( final E obj ) throws UnsupportedOperationException { } public boolean hasNext ( ) { } public boolean hasPrevious ( ) { } public E next ( ) throws NoSuchElementException { } public int nextIndex ( ) { } public E previous ( ) throws NoSuchElementException { } public int previousIndex ( ) { } public void remove ( ) throws UnsupportedOperationException { if ( ( iterator ) instanceof ListIterator ) { iterator . remove ( ) ; return ; } int removeIndex = currentIndex ; if ( ( currentIndex ) == ( wrappedIteratorIndex ) ) { -- removeIndex ; } if ( ( ! ( removeState ) ) || ( ( ( wrappedIteratorIndex ) - ( currentIndex ) ) > 1 ) ) { <START_BUG> throw new IllegalStateException ( MessageFormat . format ( ListIteratorWrapper . CANNOT_REMOVE_MESSAGE , removeIndex ) ) ; <END_BUG> } iterator . remove ( ) ; list . remove ( removeIndex ) ; currentIndex = removeIndex ; ( wrappedIteratorIndex ) -- ; removeState = false ; } public void set ( final E obj ) throws UnsupportedOperationException { } public void reset ( ) { } }

Fix:
throw new IllegalStateException ( MessageFormat . format ( ListIteratorWrapper . CANNOT_REMOVE_MESSAGE , Integer . valueOf ( removeIndex ) ) ) ;
Buggy code:
public class WicketFilter implements Filter { private static final Logger log = LoggerFactory . getLogger ( WicketFilter . class ) ; public static final String FILTER_MAPPING_PARAM = "filterMappingUrlPattern" ; public static final String APP_FACT_PARAM = "applicationFactoryClassName" ; private WebApplication application ; private IWebApplicationFactory applicationFactory ; private FilterConfig filterConfig ; private String filterPath ; private int filterPathLength = - 1 ; protected ClassLoader getClassLoader ( ) { } boolean processRequest ( ServletRequest request , final ServletResponse response , final FilterChain chain ) throws IOException , ServletException { } public void doFilter ( final ServletRequest request , final ServletResponse response , final FilterChain chain ) throws IOException , ServletException { } protected IWebApplicationFactory getApplicationFactory ( ) { } public final void init ( final FilterConfig filterConfig ) throws ServletException { } public void init ( final boolean isServlet , final FilterConfig filterConfig ) throws ServletException { } protected String getFilterPathFromAnnotation ( boolean isServlet ) { } protected String getFilterPathFromWebXml ( final boolean isServlet , final FilterConfig filterConfig ) { <START_BUG> return new WebXmlFile ( ) . getFilterPath ( isServlet , filterConfig ) ; <END_BUG> } public FilterConfig getFilterConfig ( ) { } protected String getFilterPath ( final HttpServletRequest request ) { } protected String getFilterPathFromConfig ( FilterConfig filterConfig ) { } public void destroy ( ) { } private String checkIfRedirectRequired ( final HttpServletRequest request ) { } protected final String checkIfRedirectRequired ( final String requestURI , final String contextPath ) { } public final void setFilterPath ( final String filterPath ) { } }

Fix:
return new WebXmlFile ( ) . getUniqueFilterPath ( isServlet , filterConfig ) ;
Buggy code:
public class ConstructorDeclaration extends AbstractMethodDeclaration { public ExplicitConstructorCall constructorCall ; public static final char [ ] ConstantPoolName = "<init>" . toCharArray ( ) ; public boolean isDefaultConstructor = false ; public ConstructorDeclaration ( CompilationResult compilationResult ) { } public void analyseCode ( ClassScope classScope , InitializationFlowContext initializerFlowContext , FlowInfo flowInfo ) { } public void generateCode ( ClassScope classScope , ClassFile classFile ) { } <START_BUG> public void generateSyntheticFieldInitializationsIfNecessary ( MethodScope scope , CodeStream codeStream , ReferenceBinding declaringClass ) { <END_BUG> if ( ! ( declaringClass . isNestedType ( ) ) ) return ; NestedTypeBinding nestedType = ( ( NestedTypeBinding ) ( declaringClass ) ) ; SyntheticArgumentBinding [ ] syntheticArgs = nestedType . syntheticEnclosingInstances ( ) ; for ( int i = 0 , max = ( syntheticArgs == null ) ? 0 : syntheticArgs . length ; i < max ; i ++ ) { SyntheticArgumentBinding syntheticArg ; if ( ( ( syntheticArg = syntheticArgs [ i ] ) . matchingField ) != null ) { codeStream . aload_0 ( ) ; codeStream . load ( syntheticArg ) ; codeStream . putfield ( syntheticArg . matchingField ) ; } } syntheticArgs = nestedType . syntheticOuterLocalVariables ( ) ; for ( int i = 0 , max = ( syntheticArgs == null ) ? 0 : syntheticArgs . length ; i < max ; i ++ ) { SyntheticArgumentBinding syntheticArg ; if ( ( ( syntheticArg = syntheticArgs [ i ] ) . matchingField ) != null ) { codeStream . aload_0 ( ) ; codeStream . load ( syntheticArg ) ; codeStream . putfield ( syntheticArg . matchingField ) ; } } } private void internalGenerateCode ( ClassScope classScope , ClassFile classFile ) { } public boolean isConstructor ( ) { } public boolean isDefaultConstructor ( ) { } public boolean isInitializationMethod ( ) { } public boolean isRecursive ( ArrayList visited ) { } public void parseStatements ( Parser parser , CompilationUnitDeclaration unit ) { } public void resolveStatements ( ) { } public String toStringStatements ( int tab ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , ClassScope classScope ) { } }

Fix:
public void generateSyntheticFieldInitializationsIfNecessary ( MethodScope methodScope , CodeStream codeStream , ReferenceBinding declaringClass ) {
Buggy code:
@ Repository public interface AnuncioRepository extends CrudRepository < Anuncio , Long > { @ Query ( "SELECT<seq2seq4repair_space>an<seq2seq4repair_space>FROM<seq2seq4repair_space>Anuncio<seq2seq4repair_space>an<seq2seq4repair_space>WHERE<seq2seq4repair_space>an.ativo<seq2seq4repair_space>=<seq2seq4repair_space>'true'<seq2seq4repair_space>ORDER<seq2seq4repair_space>BY<seq2seq4repair_space>an.dataPostagem<seq2seq4repair_space>DESC" ) public List < Anuncio > findAll ( ) { } <START_BUG> @ Query ( "SELECT<seq2seq4repair_space>an<seq2seq4repair_space>FROM<seq2seq4repair_space>Anuncio<seq2seq4repair_space>an<seq2seq4repair_space>INNER<seq2seq4repair_space>JOIN<seq2seq4repair_space>an.loja<seq2seq4repair_space>as<seq2seq4repair_space>loj<seq2seq4repair_space>WHERE<seq2seq4repair_space>loj.codigo<seq2seq4repair_space>=<seq2seq4repair_space>?" ) <END_BUG> public List < Anuncio > findByLoja ( Long id ) ; @ Query ( "SELECT<seq2seq4repair_space>an<seq2seq4repair_space>FROM<seq2seq4repair_space>Anuncio<seq2seq4repair_space>an<seq2seq4repair_space>WHERE<seq2seq4repair_space>an.categoria<seq2seq4repair_space>=<seq2seq4repair_space>?" ) public List < Anuncio > findByCategoria ( CategoriaAnuncio categoria ) { } @ Query ( "SELECT<seq2seq4repair_space>an<seq2seq4repair_space>FROM<seq2seq4repair_space>Anuncio<seq2seq4repair_space>an<seq2seq4repair_space>WHERE<seq2seq4repair_space>an.ativo<seq2seq4repair_space>=<seq2seq4repair_space>'true'<seq2seq4repair_space>AND<seq2seq4repair_space>an.permanente<seq2seq4repair_space>=<seq2seq4repair_space>'true'" ) public List < Anuncio > findByAtivoNaoPermanentes ( ) { } @ Query ( "SELECT<seq2seq4repair_space>an<seq2seq4repair_space>FROM<seq2seq4repair_space>Anuncio<seq2seq4repair_space>an<seq2seq4repair_space>WHERE<seq2seq4repair_space>an.ativo<seq2seq4repair_space>=<seq2seq4repair_space>'false'<seq2seq4repair_space>AND<seq2seq4repair_space>an.permanente<seq2seq4repair_space>=<seq2seq4repair_space>'true'" ) public List < Anuncio > findByNaoAtivosNaoPermanentes ( ) { } }

Fix:
@ Query ( "SELECT<seq2seq4repair_space>an<seq2seq4repair_space>FROM<seq2seq4repair_space>Anuncio<seq2seq4repair_space>an<seq2seq4repair_space>INNER<seq2seq4repair_space>JOIN<seq2seq4repair_space>an.loja<seq2seq4repair_space>as<seq2seq4repair_space>loj<seq2seq4repair_space>WHERE<seq2seq4repair_space>loj.codigo<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>and<seq2seq4repair_space>an.ativo<seq2seq4repair_space>=<seq2seq4repair_space>'true'" )
Buggy code:
public class CrusherRecipeHandler extends TemplateRecipeHandler { @ Override public String getOverlayIdentifier ( ) { } @ Override public String getGuiTexture ( ) { } @ Override public void loadUsageRecipes ( ItemStack ingredient ) { } @ Override public void loadCraftingRecipes ( ItemStack result ) { } @ Override public void loadUsageRecipes ( String inputId , Object ... ingredients ) { } @ Override public void loadCraftingRecipes ( String outputId , Object ... results ) { } @ Override public TemplateRecipeHandler newInstance ( ) { } @ Override public String getRecipeName ( ) { } @ Override public void loadTransferRects ( ) { <START_BUG> transferRects . add ( new RecipeTransferRect ( new Rectangle ( 95 , 33 , 18 , 18 ) , "crusher" ) ) ; <END_BUG> } @ Override public Class < ? extends GuiContainer > getGuiClass ( ) { } public static class GuiCrusher extends GuiContainer { ResourceLocation guiDisplayImage = new ResourceLocation ( ( ( BaseMetals . MODID ) + ":textures//gui//nei//nei_crusher.png" ) ) ; public GuiCrusher ( Container container ) { } @ Override protected void drawGuiContainerBackgroundLayer ( float f , int i , int j ) { } } public static class ContainerCrusher extends Container { @ Override public boolean canInteractWith ( EntityPlayer playerIn ) { } } public class CrusherPair extends CachedRecipe { public CrusherPair ( ItemStack ingred , ItemStack result ) { } public List < PositionedStack > getIngredients ( ) { } public PositionedStack getResult ( ) { } PositionedStack ingred ; PositionedStack result ; } }

Fix:
transferRects . add ( new RecipeTransferRect ( new Rectangle ( 95 , 23 , 18 , 18 ) , "crusher" ) ) ;