nus-yam/ex-repair huggingface dataset:
Buggy code:
public class RollUntilPickup extends CommandBase { public RollUntilPickup ( ) { } protected void initialize ( ) { } protected void execute ( ) { } protected boolean isFinished ( ) { <START_BUG> return ! ( indexer . hasBall ( ) ) ; <END_BUG> } protected void end ( ) { } protected void interrupted ( ) { } }

Fix:
return indexer . hasBall ( ) ;
Buggy code:
public class XmlPropertyTest extends BuildFileTest { private static FileUtils fileUtils = FileUtils . newFileUtils ( ) ; public XmlPropertyTest ( String name ) { } public void setUp ( ) { } public void testProperties ( ) { } public void testDTD ( ) { } public void testNone ( ) { } public void testKeeproot ( ) { } public void testCollapse ( ) { } public void testSemantic ( ) { } public void testKeeprootCollapse ( ) { } public void testKeeprootSemantic ( ) { } public void testCollapseSemantic ( ) { } public void testKeeprootCollapseSemantic ( ) { } public void testInclude ( ) { } public void testSemanticInclude ( ) { } public void testSemanticLocal ( ) { } public void testNeedsCatalog ( ) { } private void doTest ( String msg , boolean keepRoot , boolean collapse , boolean semantic , boolean include , boolean localRoot ) { <START_BUG> Enumeration iter = XmlPropertyTest . getFiles ( new File ( "src//etc//testcases//taskdefs//xmlproperty//inputs" ) ) ; <END_BUG> while ( iter . hasMoreElements ( ) ) { File inputFile = ( ( File ) ( iter . nextElement ( ) ) ) ; File workingDir ; if ( localRoot ) { workingDir = XmlPropertyTest . fileUtils . getParentFile ( inputFile ) ; } else { workingDir = XmlPropertyTest . fileUtils . resolveFile ( new File ( "." ) , "." ) ; } try { File propertyFile = XmlPropertyTest . getGoldfile ( inputFile , keepRoot , collapse , semantic , include , localRoot ) ; if ( ! ( propertyFile . exists ( ) ) ) { continue ; } Project project = new Project ( ) ; XmlProperty xmlproperty = new XmlProperty ( ) ; xmlproperty . setProject ( project ) ; xmlproperty . setFile ( inputFile ) ; xmlproperty . setKeeproot ( keepRoot ) ; xmlproperty . setCollapseAttributes ( collapse ) ; xmlproperty . setSemanticAttributes ( semantic ) ; xmlproperty . setIncludeSemanticAttribute ( include ) ; xmlproperty . setRootDirectory ( workingDir ) ; project . setNewProperty ( "override.property.test" , "foo" ) ; xmlproperty . execute ( ) ; Properties props = new Properties ( ) ; props . load ( new FileInputStream ( propertyFile ) ) ; XmlPropertyTest . ensureProperties ( msg , inputFile , workingDir , project , props ) ; XmlPropertyTest . ensureReferences ( msg , inputFile , project . getReferences ( ) ) ; } catch ( IOException ex ) { fail ( ex . toString ( ) ) ; } } } private static void ensureProperties ( String msg , File inputFile , File workingDir , Project project , Properties properties ) { } private static void printProperties ( Hashtable xmlproperties ) { } private static void ensureReferences ( String msg , File inputFile , Hashtable references ) { } private static File getGoldfile ( File input , boolean keepRoot , boolean collapse , boolean semantic , boolean include , boolean localRoot ) { } private static Enumeration getFiles ( final File startingDir ) { } private static void getFiles ( final File startingDir , Vector collect ) { } }

Fix:
Enumeration iter = XmlPropertyTest . getFiles ( new File ( System . getProperty ( "root" ) , "src//etc//testcases//taskdefs//xmlproperty//inputs" ) ) ;
Buggy code:
public final class Jdk12Interceptor extends BaseInterceptor { private ContextManager cm ; private int debug = 0 ; public Jdk12Interceptor ( ) { } public void setContextManager ( ContextManager cm ) { } public void setDebug ( int i ) { } public void preServletInit ( Context ctx , ServletWrapper sw ) throws TomcatException { } public void preServletDestroy ( Context ctx , ServletWrapper sw ) throws TomcatException { } public void postServletInit ( Context ctx , ServletWrapper sw ) throws TomcatException { } public int preService ( Request request , Response response ) { } private final void fixJDKContextClassLoader ( Context ctx ) { <START_BUG> final ClassLoader cl = ctx . getServletLoader ( ) . getClassLoader ( ) ; <END_BUG> if ( cl == null ) { log ( "ERROR:<seq2seq4repair_space>Jdk12Interceptor:<seq2seq4repair_space>classloader==null" ) ; return ; } AccessController . doPrivileged ( new PrivilegedAction ( ) { public Object run ( ) { Thread . currentThread ( ) . setContextClassLoader ( cl ) ; return null ; } } ) ; } }

Fix:
final ClassLoader cl = ctx . getClassLoader ( ) ;
Buggy code:
public class ItemManagement extends BorderPane { @ FXML private TextField searchbar ; @ FXML private Button removeButton ; @ FXML private ListView < Item > itemList ; @ FXML private Button addButton ; @ FXML private Button saveButton ; @ FXML private ScrollPane listScroller ; @ FXML private HBox listCommands ; private ItemManagementController controller ; private SearchPredicate searchPredicate ; private FilteredList < Item > filteredList ; private Binding detailView ; public void setController ( ItemManagementController cont ) { } public ItemManagementController getController ( ) { } public ItemManagement ( ItemManagementController controller ) { } public void updateList ( ) { } @ FXML public void onBoek ( ) { } @ FXML public void onSpelletje ( ) { } @ FXML public void onCd ( ) { } @ FXML public void onDvd ( ) { } @ FXML public void onStoryBag ( ) { } @ FXML public void onAll ( ) { } @ FXML public void onSave ( ) { } @ FXML public void onAdd ( ) { if ( ( searchPredicate . getSelectedClass ( ) ) != null ) { try { <START_BUG> if ( ( searchPredicate . getSelectedClass ( ) ) == null ) { <END_BUG> PopupUtil . showNotification ( "Geen<seq2seq4repair_space>type<seq2seq4repair_space>geselecteerd" , "Gelieve<seq2seq4repair_space>een<seq2seq4repair_space>type<seq2seq4repair_space>(boek,<seq2seq4repair_space>dvd,<seq2seq4repair_space>verteltas,<seq2seq4repair_space>cd,<seq2seq4repair_space>of<seq2seq4repair_space>spelletje)<seq2seq4repair_space>te<seq2seq4repair_space>selecteren<seq2seq4repair_space>alvorens<seq2seq4repair_space>een<seq2seq4repair_space>voorwerp<seq2seq4repair_space>toe<seq2seq4repair_space>te<seq2seq4repair_space>voegen!" , WARNING ) ; return ; } searchbar . setText ( "" ) ; Item added = ( ( Item ) ( searchPredicate . getSelectedClass ( ) . getConstructor ( ) . newInstance ( ) ) ) ; ItemRepository . getInstance ( ) . add ( added ) ; added . setName ( "<seq2seq4repair_space>" ) ; updateList ( ) ; added . setName ( "" ) ; itemList . getSelectionModel ( ) . select ( added ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } } } @ FXML public void onRemove ( ) { } public Button getSaveButton ( ) { } public HBox getListCommands ( ) { } public ObservableList < Item > getFilteredList ( ) { } public Node getDetailView ( ) { } }

Fix:
if ( searchPredicate . getSelectedClass ( ) . equals ( Object . class ) ) {
Buggy code:
public class Test { public static void main ( String [ ] args ) { } public String send ( String msg ) { <START_BUG> ClassPathXmlApplicationContext springContext = new ClassPathXmlApplicationContext ( "classpath:camel-client.xml" ) ; <END_BUG> String batch = "" ; batch += "<batch-execution<seq2seq4repair_space>lookup=\"ksession1\">\n" ; batch += "<seq2seq4repair_space><insert<seq2seq4repair_space>out-identifier=\"message\">\n" ; batch += "<seq2seq4repair_space><org.test.Message>\n" ; batch += ( "<seq2seq4repair_space><text>" + msg ) + "<//text>\n" ; batch += "<seq2seq4repair_space><//org.test.Message>\n" ; batch += "<seq2seq4repair_space><//insert>\n" ; batch += "<//batch-execution>\n" ; Test test = new Test ( ) ; String response = test . execute ( batch , ( ( CamelContext ) ( springContext . getBean ( "camel" ) ) ) ) ; return response ; } public String execute ( String msg , CamelContext camelContext ) { } public String execute ( SOAPMessage soapMessage , CamelContext camelContext ) throws IOException , SOAPException { } }

Fix:
ClassPathXmlApplicationContext springContext = new ClassPathXmlApplicationContext ( "classpath://camel-client.xml" ) ;
Buggy code:
@ RunWith ( Arquillian . class ) public class TransactionInvocationTestCase { public static final String SERVER_DEPLOYMENT = "server" ; public static final String CLIENT_DEPLOYMENT = "client" ; @ Deployment ( name = "server" , testable = false ) @ TargetsContainer ( "multinode-server" ) public static Archive < ? > deployment ( ) { } @ Deployment ( name = "client" , testable = true ) @ TargetsContainer ( "multinode-client" ) public static Archive < ? > clientDeployment ( ) { final JavaArchive jar = ShrinkWrap . create ( JavaArchive . class , ( ( TransactionInvocationTestCase . CLIENT_DEPLOYMENT ) + ".jar" ) ) ; jar . addClasses ( ClientEjb . class , TransactionalRemote . class , TransactionInvocationTestCase . class , TransactionalStatefulRemote . class ) ; <START_BUG> jar . addAsManifestResource ( "META-INF//jboss-ejb-client-receivers.xml" , "jboss-ejb-client.xml" ) ; <END_BUG> return jar ; } @ Test @ OperateOnDeployment ( "client" ) public void testRemoteInvocation ( ) throws IOException , NamingException , NotSupportedException , SystemException { } @ Test @ OperateOnDeployment ( "client" ) public void testRollbackOnly ( ) throws IOException , NamingException , NotSupportedException , SystemException { } @ Test @ OperateOnDeployment ( "client" ) public void testRollbackOnlyBeforeCompletion ( ) throws IOException , NamingException , HeuristicMixedException , HeuristicRollbackException , NotSupportedException , SystemException { } @ Test @ OperateOnDeployment ( "client" ) public void testSameTransactionEachCall ( ) throws IOException , NamingException , NotSupportedException , SystemException { } @ Test @ OperateOnDeployment ( "client" ) public void testSynchronizationSucceeded ( ) throws IOException , NamingException , HeuristicMixedException , HeuristicRollbackException , NotSupportedException , RollbackException , SystemException { } @ Test @ OperateOnDeployment ( "client" ) public void testSynchronizationFailed ( ) throws IOException , NamingException , HeuristicMixedException , HeuristicRollbackException , NotSupportedException , RollbackException , SystemException { } private ClientEjb getClient ( ) throws NamingException { } }

Fix:
jar . addAsManifestResource ( "META-INF//jboss-ejb-client.xml" , "jboss-ejb-client.xml" ) ;
Buggy code:
public class TrayItem extends Item { Tray parent ; ToolTip toolTip ; String toolTipText ; boolean visible = true ; boolean highlight ; int handle ; int nsImage ; int view ; int jniRef ; static final float BORDER = 8.0F ; public TrayItem ( Tray parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } protected void checkSubclass ( ) { } void createWidget ( ) { } void destroyWidget ( ) { } Point getLocation ( ) { } public Tray getParent ( ) { } public ToolTip getToolTip ( ) { } public String getToolTipText ( ) { } public boolean getVisible ( ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setImage ( Image image ) { } public void setToolTip ( ToolTip toolTip ) { } public void setToolTipText ( String string ) { } void _setToolTipText ( String string ) { } public void setVisible ( boolean visible ) { } void showMenu ( ) { } int trayItemProc ( int target , int userData , int selector , int arg0 ) { switch ( selector ) { case 0 : { int mask = ( Cocoa . objc_msgSend ( arg0 , S_modifierFlags ) ) & ( Cocoa . NSDeviceIndependentModifierFlagsMask ) ; <START_BUG> if ( ( mask & ( Cocoa . NSControlKeyMask ) ) == mask ) { <END_BUG> showMenu ( ) ; } else { highlight = true ; Cocoa . objc_msgSend ( view , S_setNeedsDisplay , 1 ) ; int clickCount = Cocoa . objc_msgSend ( arg0 , S_clickCount ) ; postEvent ( ( clickCount == 2 ? SWT . DefaultSelection : SWT . Selection ) ) ; } break ; } case 1 : { highlight = false ; Cocoa . objc_msgSend ( view , S_setNeedsDisplay , 1 ) ; break ; } case 2 : { showMenu ( ) ; break ; } case 3 : { NSRect rect = new NSRect ( ) ; Cocoa . memcpy ( rect , arg0 , sizeof ) ; Cocoa . objc_msgSend ( handle , S_drawStatusBarBackgroundInRect_withHighlight , rect , ( highlight ? 1 : 0 ) ) ; } } return 0 ; } }

Fix:
if ( mask == ( Cocoa . NSControlKeyMask ) ) {
Buggy code:
public class KickHandler extends AbstractCmd { private static final Logger log = LoggerFactory . getLogger ( KickHandler . class ) ; private String marker = Marker . ANY_NON_NULL_MARKER ; private AbstractClient client ; private String cmd ; private String args ; private String nick = null ; private String reason = null ; public void execute ( String cmd , String args , AbstractClient client ) { } private void kick ( ) { if ( ( nick ) == null ) { showHelp ( ) ; } else { <START_BUG> ClientUtils . kickClient ( client , nick , reason ) ; <END_BUG> sendError ( ( ( ( "nick<seq2seq4repair_space>" + ( nick ) ) + "<seq2seq4repair_space>reason<seq2seq4repair_space>" ) + ( reason ) ) ) ; } } private void showHelp ( ) { } private void sendError ( String mess ) { } }

Fix:
ClientUtils . kickOrBanClient ( client , nick , 0 , null , reason ) ;
Buggy code:
public class UtilLoggingLevel extends Level { public static final int SEVERE_INT = 17000 ; public static final int WARNING_INT = 16000 ; public static final int INFO_INT = 15000 ; public static final int CONFIG_INT = 14000 ; public static final int FINE_INT = 13000 ; public static final int FINER_INT = 12000 ; public static final int FINEST_INT = 11000 ; public static final int UNKNOWN_INT = 10000 ; public static final UtilLoggingLevel SEVERE = new UtilLoggingLevel ( UtilLoggingLevel . SEVERE_INT , "SEVERE" , 0 ) ; public static final UtilLoggingLevel WARNING = new UtilLoggingLevel ( UtilLoggingLevel . WARNING_INT , "WARNING" , 4 ) ; public static final UtilLoggingLevel INFO = new UtilLoggingLevel ( UtilLoggingLevel . INFO_INT , "INFO" , 5 ) ; public static final UtilLoggingLevel CONFIG = new UtilLoggingLevel ( UtilLoggingLevel . CONFIG_INT , "CONFIG" , 6 ) ; public static final UtilLoggingLevel FINE = new UtilLoggingLevel ( UtilLoggingLevel . FINE_INT , "FINE" , 7 ) ; public static final UtilLoggingLevel FINER = new UtilLoggingLevel ( UtilLoggingLevel . FINER_INT , "FINER" , 8 ) ; public static final UtilLoggingLevel FINEST = new UtilLoggingLevel ( UtilLoggingLevel . FINEST_INT , "FINEST" , 9 ) ; protected UtilLoggingLevel ( int level , String levelStr , int syslogEquivalent ) { } public static UtilLoggingLevel toLevel ( int val , UtilLoggingLevel defaultLevel ) { switch ( val ) { case UtilLoggingLevel . SEVERE_INT : return UtilLoggingLevel . SEVERE ; case UtilLoggingLevel . WARNING_INT : return UtilLoggingLevel . WARNING ; case UtilLoggingLevel . INFO_INT : return UtilLoggingLevel . INFO ; case UtilLoggingLevel . CONFIG_INT : return UtilLoggingLevel . CONFIG ; case UtilLoggingLevel . FINE_INT : return UtilLoggingLevel . FINE ; case UtilLoggingLevel . FINER_INT : return UtilLoggingLevel . FINER ; case UtilLoggingLevel . FINEST_INT : return UtilLoggingLevel . FINEST ; default : <START_BUG> return UtilLoggingLevel . FINEST ; <END_BUG> } } public static Level toLevel ( int val ) { } public static List getAllPossibleLevels ( ) { } public static Level toLevel ( String s ) { } public static Level toLevel ( String sArg , Level defaultLevel ) { } }

Fix:
return defaultLevel ;
Buggy code:
public class Selector { Connection dbConnection ; private static Log log = LogFactory . getLog ( Selector . class ) ; public void Selector ( Connection dbConnection ) { } private void selectorInstanceLevel ( ArrayList < String > seriesFkList ) { } private void selectorSeriesLevel ( ArrayList < String > seriesFkList ) { } private void selectorStudyLevel ( ArrayList < String > studyFkList ) { } private ArrayList < String > getSelectorPkByAnalyseLvl ( String analyseLvl ) { } private String getLevelFkByPk ( String pk , String level ) { } private HashMap < String , String > getSelectorLevelHashmap ( String pk , String level ) { } private ArrayList < String > getColomnNamesFromTable ( String tableName ) { } private HashMap < String , String > getLevelHashmap ( String pk , String level ) { } private boolean isEqualSeriesHashmaps ( HashMap < String , String > selectorSeriesMap , HashMap < String , String > seriesMap ) { } private boolean isEqualStudyHashmaps ( HashMap < String , String > selectorStudyMap , HashMap < String , String > studyMap ) { } private boolean isEqualPatientHashmaps ( HashMap < String , String > selectorPatientMap , HashMap < String , String > patientMap ) { } private boolean isEqualInstanceHashmaps ( HashMap < String , String > selectorInstanceMap , HashMap < String , String > instanceMap ) { } private String getStudyFkFromSeries ( String seriesFk ) { } private String getPatientFkFromStudy ( String studyFk ) { } private ArrayList < String > getInstancePkListFromInstance ( String seriesFk ) { } private ArrayList < String > getSeriesPkListFromSeries ( String studyFk ) { } private static boolean matches ( String text , String pattern ) { boolean searchmatch = false ; String [ ] searchparams = pattern . split ( ";" ) ; for ( String param : searchparams ) { param = param . trim ( ) ; <START_BUG> searchmatch = searchmatch || ( text . matches ( ( "(?i)" + ( param . replace ( "?" , ".?" ) . replace ( "*" , ".*?" ) ) ) ) ) ; <END_BUG> } return searchmatch ; } }

Fix:
searchmatch = searchmatch || ( text . trim ( ) . matches ( ( "(?i)" + ( param . replace ( "?" , ".?" ) . replace ( "*" , ".*?" ) ) ) ) ) ;
Buggy code:
public abstract class AbstractResource implements IResource { private static final long serialVersionUID = 1L ; public AbstractResource ( ) { } protected abstract AbstractResource . ResourceResponse newResourceResponse ( Attributes attributes ) { } public static class ResourceResponse { private Integer errorCode ; private String errorMessage ; private String fileName = null ; private ContentDisposition contentDisposition = ContentDisposition . INLINE ; private String contentType = null ; private String textEncoding ; private long contentLength = - 1 ; private Date lastModified = null ; private AbstractResource . WriteCallback writeCallback ; private int cacheDuration ; private boolean cachePublic ; public ResourceResponse ( ) { } public void setError ( Integer errorCode ) { } public void setError ( Integer errorCode , String errorMessage ) { } public Integer getErrorCode ( ) { } public String getErrorMessage ( ) { } public void setFileName ( String fileName ) { } public String getFileName ( ) { } public void setContentDisposition ( ContentDisposition contentDisposition ) { } public ContentDisposition getContentDisposition ( ) { } public void setContentType ( String contentType ) { } public String getContentType ( ) { } public void setTextEncoding ( String textEncoding ) { } protected String getTextEncoding ( ) { } public void setContentLength ( long contentLength ) { } public long getContentLength ( ) { } public void setLastModified ( Date lastModified ) { } public Date getLastModified ( ) { } public boolean dataNeedsToBeWritten ( Attributes attributes ) { } public void disableCaching ( ) { } public void setCacheDurationToMaximum ( ) { <START_BUG> cacheDuration = Integer . MAX_VALUE ; <END_BUG> } public void setCacheDuration ( int cacheDuration ) { } public int getCacheDuration ( ) { } public boolean isCachePublic ( ) { } public void setCachePublic ( boolean cachePublic ) { } public void setWriteCallback ( final AbstractResource . WriteCallback writeCallback ) { } public AbstractResource . WriteCallback getWriteCallback ( ) { } } protected void configureCache ( final WebRequest request , final WebResponse response , final AbstractResource . ResourceResponse data , final Attributes attributes ) { } public final void respond ( final Attributes attributes ) { } public abstract static class WriteCallback { public abstract void writeData ( Attributes attributes ) { } protected final void writeStream ( Attributes attributes , InputStream stream ) { } } }

Fix:
cacheDuration = RequestUtils . MAX_CACHE_DURATION ;
Buggy code:
public class CrosscuttingMembers { private ResolvedTypeX inAspect ; private World world ; private PerClause perClause ; private List shadowMungers = new ArrayList ( 4 ) ; private List typeMungers = new ArrayList ( 4 ) ; private List declareParents = new ArrayList ( 4 ) ; private List declareSofts = new ArrayList ( 0 ) ; private List declareDominates = new ArrayList ( 4 ) ; public CrosscuttingMembers ( ResolvedTypeX inAspect ) { } public void addConcreteShadowMunger ( ShadowMunger m ) { } public void addShadowMungers ( Collection c ) { } private void addShadowMunger ( ShadowMunger m ) { } public void addTypeMungers ( Collection c ) { } public void addTypeMunger ( ConcreteTypeMunger m ) { } public void addDeclares ( Collection c ) { } public void addDeclare ( Declare declare ) { if ( declare instanceof DeclareErrorOrWarning ) { ShadowMunger m = new Checker ( ( ( DeclareErrorOrWarning ) ( declare ) ) ) ; addShadowMunger ( m ) ; } else <START_BUG> if ( declare instanceof DeclareDominates ) { <END_BUG> declareDominates . add ( declare ) ; } else if ( declare instanceof DeclareParents ) { DeclareParents dp = ( ( DeclareParents ) ( declare ) ) ; exposeTypes ( dp . getParents ( ) . getExactTypes ( ) ) ; declareParents . add ( dp ) ; } else if ( declare instanceof DeclareSoft ) { DeclareSoft d = ( ( DeclareSoft ) ( declare ) ) ; Pointcut concretePointcut = d . getPointcut ( ) . concretize ( inAspect , 0 ) ; declareSofts . add ( new DeclareSoft ( d . getException ( ) , concretePointcut ) ) ; ShadowMunger m = Advice . makeSoftener ( world , concretePointcut , d . getException ( ) ) ; addConcreteShadowMunger ( m ) ; } else { throw new RuntimeException ( "unimplemented" ) ; } } public void exposeTypes ( Collection typesToExpose ) { } public void exposeType ( TypeX typeToExpose ) { } public void addPrivilegedAccesses ( Collection accessedMembers ) { } private void addPrivilegedAccess ( ResolvedMember member ) { } public Collection getCflowEntries ( ) { } public boolean replaceWith ( CrosscuttingMembers other ) { } public PerClause getPerClause ( ) { } public void setPerClause ( PerClause perClause ) { } public List getDeclareDominates ( ) { } public List getDeclareParents ( ) { } public List getDeclareSofts ( ) { } public List getShadowMungers ( ) { } public List getTypeMungers ( ) { } }

Fix:
if ( declare instanceof DeclarePrecedence ) {
Buggy code:
public class ReadAttributeHandler extends BaseOperationCommand { private final ArgumentWithValue node ; private final ArgumentWithValue name ; private final ArgumentWithValue includeDefaults ; private final ArgumentWithoutValue verbose ; public ReadAttributeHandler ( CommandContext ctx ) { } @ Override public ModelNode buildRequestWithoutHeaders ( CommandContext ctx ) throws CommandFormatException { } protected void handleResponse ( CommandContext ctx , ModelNode response , boolean composite ) throws CommandFormatException { } protected StringBuilder formatResponse ( CommandContext ctx , ModelNode opResponse , boolean composite , StringBuilder buf ) throws CommandFormatException { } protected OperationRequestAddress getAddress ( CommandContext ctx ) throws CommandFormatException { final ParsedCommandLine args = ctx . getParsedCommandLine ( ) ; final OperationRequestAddress address ; if ( node . isPresent ( args ) ) { address = new org . jboss . as . cli . operation . impl . DefaultOperationRequestAddress ( ctx . getCurrentNodePath ( ) ) ; CommandLineParser . CallbackHandler handler = new org . jboss . as . cli . operation . impl . DefaultCallbackHandler ( address ) ; <START_BUG> String nodePath = args . getSubstitutedLine ( ) ; <END_BUG> int nodeArgInd = nodePath . indexOf ( "<seq2seq4repair_space>--node=" ) ; if ( nodeArgInd < 0 ) { throw new CommandFormatException ( ( ( "Couldn't<seq2seq4repair_space>locate<seq2seq4repair_space>'<seq2seq4repair_space>--node='<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>line:<seq2seq4repair_space>'" + nodePath ) + "'" ) ) ; } int nodeArgEndInd = nodeArgInd + 8 ; do { nodeArgEndInd = nodePath . indexOf ( '<seq2seq4repair_space>' , nodeArgEndInd ) ; if ( nodeArgEndInd < 0 ) { nodeArgEndInd = nodePath . length ( ) ; } else if ( ( nodePath . charAt ( ( nodeArgEndInd - 1 ) ) ) == '\\' ) { ++ nodeArgEndInd ; } else { break ; } } while ( nodeArgEndInd < ( nodePath . length ( ) ) ) ; nodePath = nodePath . substring ( ( nodeArgInd + 8 ) , nodeArgEndInd ) ; ctx . getCommandLineParser ( ) . parse ( nodePath , handler ) ; } else { address = new org . jboss . as . cli . operation . impl . DefaultOperationRequestAddress ( ctx . getCurrentNodePath ( ) ) ; } return address ; } }

Fix:
String nodePath = args . getOriginalLine ( ) ;
Buggy code:
public class ImageCollection { private final HashMap < String , ImagePlusInfo > background_ ; private final HashMap < String , HashMap < String , ImagePlusInfo > > flatFields_ ; private final String BASEIMAGE = "base" ; public ImageCollection ( ) { } public void setBackground ( String file ) throws MMException { background_ . clear ( ) ; if ( ! ( file . equals ( "" ) ) ) { Opener opener = new Opener ( ) ; ImagePlus ip = opener . openImage ( file ) ; if ( ip == null ) { throw new MMException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>open<seq2seq4repair_space>file:<seq2seq4repair_space>" + file ) ) ; } ImagePlusInfo bg = new ImagePlusInfo ( ip ) ; background_ . put ( BASEIMAGE , bg ) ; <START_BUG> background_ . put ( makeKey ( 1 , bg . getOriginalRoi ( ) ) , null ) ; <END_BUG> } } public ImagePlusInfo getBackground ( ) { } public ImagePlusInfo getBackground ( int binning , Rectangle roi ) throws MMException { } public void addFlatField ( String preset , String file ) throws MMException { } public ImagePlusInfo getFlatField ( String preset ) { } public void clearFlatFields ( ) { } public void removeFlatField ( String preset ) { } public ImagePlusInfo getFlatField ( String preset , int binning , Rectangle roi ) throws MMException { } private String makeKey ( int binning , Rectangle roi ) { } private ImagePlusInfo makeDerivedImage ( ImagePlusInfo ipi , int binning , Rectangle roi ) throws MMException { } public static Rectangle TagToRectangle ( String search ) throws MMException { } }

Fix:
background_ . put ( makeKey ( 1 , bg . getOriginalRoi ( ) ) , bg ) ;
Buggy code:
public class Commands implements CommandExecutor { private SkyVote plugin ; public Commands ( SkyVote plugin ) { } public boolean Glos ( Player player , String arg ) { } public void Glosowani ( Player player , String tresc , String glos1 , String glos2 , String czas , String vip ) { tresc = tresc . replaceAll ( "&" , "<seq2seq4repair_space>" ) ; plugin . vote . put ( "tresc" , tresc ) ; plugin . vote . put ( "glos1" , glos1 ) ; plugin . vote . put ( "glos2" , glos2 ) ; plugin . vote . put ( "vip" , vip ) ; plugin . vote_last . put ( "tresc" , tresc ) ; plugin . vote_last . put ( "glos1" , glos1 ) ; plugin . vote_last . put ( "glos2" , glos2 ) ; plugin . vote . put ( "czas" , czas ) ; <START_BUG> if ( ( Integer . valueOf ( czas ) ) == null ) { <END_BUG> player . sendMessage ( ( ( ChatColor . RED ) + ( plugin . messages . get ( "g30" ) . toString ( ) ) ) ) ; } else { int czas1 = Integer . valueOf ( czas ) ; plugin . vote_info = new Vote . VoteInfo ( plugin , vip ) . runTaskTimer ( plugin , 20 , ( ( 20 * czas1 ) // 3 ) ) ; plugin . vote_delete = new Vote . VoteDelete ( plugin , vip ) . runTaskLater ( plugin , ( 20 * czas1 ) ) ; plugin . ScoreBoardCreate ( ) ; for ( Player player1 : Bukkit . getOnlinePlayers ( ) ) { if ( vip == null ) { player1 . setScoreboard ( plugin . getScoreboard ( ) ) ; } else if ( vip . toLowerCase ( ) . equals ( "vip" ) ) { if ( player1 . hasPermission ( "svote.vip" ) ) { player1 . setScoreboard ( plugin . getScoreboard ( ) ) ; } } else { player1 . setScoreboard ( plugin . getScoreboard ( ) ) ; } } plugin . getScoreboard ( ) . getObjective ( SIDEBAR ) . getScore ( ( ( ( ChatColor . GREEN ) + glos1 ) + ":<seq2seq4repair_space>" ) ) . setScore ( 0 ) ; plugin . getScoreboard ( ) . getObjective ( SIDEBAR ) . getScore ( ( ( ( ChatColor . GREEN ) + glos2 ) + ":<seq2seq4repair_space>" ) ) . setScore ( 0 ) ; player . sendMessage ( ( ( ChatColor . GOLD ) + ( plugin . messages . get ( "g2" ) . toString ( ) ) ) ) ; } } @ Override public boolean onCommand ( CommandSender sender , Command cmd , String label , String [ ] args ) { } No newline ; at end ; of file ; }

Fix:
if ( ( plugin . isInteger ( czas ) ) == false ) {
Buggy code:
public class MigrationsProgressStep extends MigrationStep { public static final String ID = "progress" ; private volatile MigrationsProgressStep . FinishedState myFinishedState = null ; private boolean myNoErrors = true ; private MigrationManager myManager ; private JBList myList ; private Task myTask ; private InlineProgressIndicator myProgress ; private Set < String > myExecuted = new HashSet < String > ( ) ; public MigrationsProgressStep ( Project project , MigrationManager manager ) { } @ Override protected final void createComponent ( ) { } @ Override public void autostart ( final _void_P0_E0 later ) { } private void doRun ( ProgressIndicator progress ) { } public void setFraction ( final ProgressIndicator p , final double fraction ) { ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { public void run ( ) { p . setFraction ( fraction ) ; } <START_BUG> } , ModalityState . current ( ) ) ; <END_BUG> } private void addElementToMigrationList ( final String step ) { } private boolean executeSingleStep ( final MigrationManager . MigrationStep result ) { } @ Override public Object getNextStepId ( ) { } @ Override public Object getPreviousStepId ( ) { } @ Override public boolean isComplete ( ) { } @ Override public boolean canBeCancelled ( ) { } public boolean isEverythingOk ( ) { } public static class FinishedState { private final boolean myPreErrors ; private final boolean myMigrationsCompleted ; private final boolean myPostErrors ; public FinishedState ( boolean preErrors , boolean migrationsCompleted , boolean postErrors ) { } public boolean preErrors ( ) { } public boolean migrationsCompleted ( ) { } public boolean postErrors ( ) { } public boolean isEverythingOk ( ) { } } }

Fix:
} , ModalityState . any ( ) ) ;
Buggy code:
public class UMLListSubMenuItem extends JMenuItem implements ActionListener { protected static Category cat = Category . getInstance ( UMLListSubMenuItem . class ) ; private Object _actionObj ; private int _index ; private MModelElement _subEntry ; private Method _action ; private static final Class [ ] _PARAMETER_SIGNATURE = new Class [ ] { int . class , MModelElement . class } ; public UMLListSubMenuItem ( String caption , Object actionObj , String action , int index , MModelElement subEntry ) { } public void actionPerformed ( final ActionEvent event ) { try { Object [ ] argValue = new Object [ ] { new Integer ( _index ) , _subEntry } ; _action . invoke ( _actionObj , argValue ) ; } catch ( InvocationTargetException ex ) { <START_BUG> if ( UMLListSubMenuItem . cat . getPriority ( ) . equals ( Priority . ERROR ) ) { <END_BUG> StringBuffer buf = new StringBuffer ( ) ; buf . append ( ( ( ( ( this . getClass ( ) . toString ( ) ) + ":<seq2seq4repair_space>actionPerformed().<seq2seq4repair_space>" ) + ( ex . getTargetException ( ) . toString ( ) ) ) + "<seq2seq4repair_space>when<seq2seq4repair_space>invoking<seq2seq4repair_space>" ) ) ; buf . append ( "\n" ) ; buf . append ( ( ( ( ( ( ( _actionObj . toString ( ) ) + "(" ) + ( _index ) ) + ",<seq2seq4repair_space>" ) + ( _subEntry . toString ( ) ) ) + ")" ) ) ; buf . append ( "\n" ) ; UMLListSubMenuItem . cat . error ( buf . toString ( ) , ex ) ; } } catch ( Exception e ) { UMLListSubMenuItem . cat . error ( ( ( ( this . getClass ( ) . toString ( ) ) + ":<seq2seq4repair_space>actionPerformed().<seq2seq4repair_space>" ) + ( e . toString ( ) ) ) , e ) ; } } }

Fix:
if ( ( ( UMLListSubMenuItem . cat . getPriority ( ) ) != null ) && ( UMLListSubMenuItem . cat . getPriority ( ) . equals ( Priority . ERROR ) ) ) {
Buggy code:
public class MMU { Slot [ ] memory ; private int chunkSize ; private int memorySize ; private int numChunks ; public MMU ( int memSize , int chunkSize ) { } public boolean allocate ( Process p ) { int processSize = p . size ( ) ; int i = chunkSize ; while ( i < processSize ) { i = i << 1 ; } int chunksNeeded = i // ( chunkSize ) ; i = 0 ; boolean allocated = false ; while ( ( i < ( numChunks ) ) && ( ! allocated ) ) { Slot s = memory [ i ] ; int initialSlotSize = s . getSize ( ) ; if ( s . isHole ( ) ) { if ( ( s . getSize ( ) ) >= chunksNeeded ) { while ( ( ( s . getSize ( ) ) // 2 ) >= chunksNeeded ) { s . cutSize ( ) ; s . setPoint ( ( ( s . getPoint ( ) ) * 2 ) ) ; Slot hole = new Slot ( null , s . getSize ( ) , ( ( s . getPoint ( ) ) + 1 ) , s . getPoint ( ) ) ; memory [ ( i + ( s . getSize ( ) ) ) ] = hole ; s . setRef ( ( ( s . getPoint ( ) ) + 1 ) ) ; } s . setProcess ( p ) ; allocated = true ; } } i += initialSlotSize ; } <START_BUG> return false ; <END_BUG> } public boolean deallocate ( String name ) { } private boolean partition ( int index ) { } private boolean merge ( int index ) { } private boolean setReference ( int index ) { } public String toString ( ) { } No newline ; at end ; of file ; }

Fix:
return allocated ;
Buggy code:
public class IndexSelector { IJavaSearchScope searchScope ; IJavaElement focus ; IndexManager indexManager ; IIndex [ ] indexes ; public IndexSelector ( IJavaSearchScope searchScope , IJavaElement focus , IndexManager indexManager ) { } private boolean canSeeFocus ( IPath projectOrJarPath ) { } private void computeIndexes ( ) { ArrayList indexesInScope = new ArrayList ( ) ; IPath [ ] projectsAndJars = this . searchScope . enclosingProjectsAndJars ( ) ; <START_BUG> IWorkspaceRoot root = this . indexManager . workspace . getRoot ( ) ; <END_BUG> for ( int i = 0 ; i < ( projectsAndJars . length ) ; i ++ ) { IPath location ; IPath path = projectsAndJars [ i ] ; if ( ( ( ( ! ( root . getProject ( path . lastSegment ( ) ) . exists ( ) ) ) && ( ( path . segmentCount ( ) ) > 1 ) ) && ( ( ( location = root . getFile ( path ) . getLocation ( ) ) == null ) || ( ! ( new File ( location . toOSString ( ) ) . exists ( ) ) ) ) ) && ( ! ( new File ( path . toOSString ( ) ) . exists ( ) ) ) ) { continue ; } if ( ( ( this . focus ) == null ) || ( this . canSeeFocus ( path ) ) ) { IIndex index = this . indexManager . getIndex ( path ) ; if ( ( indexesInScope . indexOf ( index ) ) == ( - 1 ) ) { indexesInScope . add ( index ) ; } } } this . indexes = new IIndex [ indexesInScope . size ( ) ] ; indexesInScope . toArray ( this . indexes ) ; } public IIndex [ ] getIndexes ( ) { } private IJavaProject getJavaProject ( IPath path , IJavaModel model ) { } private boolean haveSameParent ( IPath jarPath1 , IPath jarPath2 , IJavaModel model ) { } }

Fix:
IWorkspaceRoot root = ResourcesPlugin . getWorkspace ( ) . getRoot ( ) ;
Buggy code:
public class MenuManagerImpl { private final ServiceTracker < InterfaceExtender , InterfaceExtender > tracker ; public MenuManagerImpl ( ) { } public void close ( ) { } public Menu getMainMenu ( final HttpServletRequest request ) { } public Menu getActions ( final HttpServletRequest request , final Object context ) { } public Menu getViews ( final HttpServletRequest request , final Object context ) { } protected Menu getEntries ( final Function < InterfaceExtender , List < MenuEntry > > func ) { } protected Menu convert ( List < MenuEntry > entries ) { } private List < MenuEntry > condenseCategories ( final List < MenuEntry > entries ) { final Map < String , Integer > map = new HashMap < > ( ) ; for ( final MenuEntry entry : entries ) { final String cat = entry . getCategory ( ) ; if ( cat == null ) { continue ; } final Integer prio = map . get ( cat ) ; if ( ( prio == null ) && ( ( entry . getCategoryOrder ( ) ) != ( Integer . MAX_VALUE ) ) ) { map . put ( cat , entry . getCategoryOrder ( ) ) ; } } final List < MenuEntry > result = new java . util . ArrayList ( entries . size ( ) ) ; for ( final MenuEntry entry : entries ) { final String cat = entry . getCategory ( ) ; if ( cat == null ) { result . add ( entry ) ; continue ; } final Integer prio = map . get ( cat ) ; if ( prio == null ) { result . add ( entry ) ; map . put ( cat , entry . getCategoryOrder ( ) ) ; } else { <START_BUG> result . add ( new MenuEntry ( entry . getCategory ( ) , prio , entry . getLabel ( ) , entry . getEntryOrder ( ) , entry . getTarget ( ) , entry . getModifier ( ) , entry . getIcon ( ) ) ) ; <END_BUG> } } return result ; } private Entry convertEntry ( final MenuEntry entry ) { } }

Fix:
result . add ( new MenuEntry ( entry . getCategory ( ) , prio , entry . getLabel ( ) , entry . getEntryOrder ( ) , entry . getTarget ( ) , entry . getModifier ( ) , entry . getIcon ( ) , entry . isNewWindow ( ) ) ) ;
Buggy code:
public final class OnlineLogisticRegressionTest extends OnlineBaseTest { Logger logger = LoggerFactory . getLogger ( OnlineLogisticRegressionTest . class ) ; @ Test public void crossValidation ( ) throws IOException { } @ Test public void crossValidatedAuc ( ) throws IOException { } @ Test public void testClassify ( ) { } @ Test public void iris ( ) throws IOException { RandomUtils . useTestSeed ( ) ; Splitter onComma = Splitter . on ( "," ) ; List < String > raw = Resources . readLines ( Resources . getResource ( "iris.csv" ) , Charsets . UTF_8 ) ; List < Vector > data = Lists . newArrayList ( ) ; List < Integer > target = Lists . newArrayList ( ) ; Dictionary dict = new Dictionary ( ) ; List < Integer > order = Lists . newArrayList ( ) ; for ( String line : raw . subList ( 1 , raw . size ( ) ) ) { order . add ( order . size ( ) ) ; Vector v = new DenseVector ( 5 ) ; v . set ( 0 , 1 ) ; int i = 1 ; Iterable < String > values = onComma . split ( line ) ; for ( String value : Iterables . limit ( values , 4 ) ) { v . set ( ( i ++ ) , Double . parseDouble ( value ) ) ; } data . add ( v ) ; target . add ( dict . intern ( Iterables . get ( values , 4 ) ) ) ; } Random random = RandomUtils . getRandom ( ) ; Collections . shuffle ( order , random ) ; List < Integer > train = order . subList ( 0 , 100 ) ; List < Integer > test = order . subList ( 100 , 150 ) ; logger . warn ( ( "Training<seq2seq4repair_space>set<seq2seq4repair_space>=<seq2seq4repair_space>" + train ) ) ; logger . warn ( ( "Test<seq2seq4repair_space>set<seq2seq4repair_space>=<seq2seq4repair_space>" + test ) ) ; <START_BUG> int [ ] correct = new int [ test . size ( ) ] ; <END_BUG> for ( int run = 0 ; run < 200 ; run ++ ) { OnlineLogisticRegression lr = new OnlineLogisticRegression ( 3 , 5 , new L2 ( 1 ) ) ; for ( int pass = 0 ; pass < 30 ; pass ++ ) { Collections . shuffle ( train , random ) ; for ( int k : train ) { lr . train ( target . get ( k ) , data . get ( k ) ) ; } } int x = 0 ; int [ ] count = new int [ 3 ] ; for ( Integer k : test ) { int r = lr . classifyFull ( data . get ( k ) ) . maxValueIndex ( ) ; ( count [ r ] ) ++ ; x += ( r == ( target . get ( k ) ) ) ? 1 : 0 ; } ( correct [ x ] ) ++ ; } for ( int i = 0 ; i < ( Math . floor ( ( 0.95 * ( test . size ( ) ) ) ) ) ; i ++ ) { assertEquals ( String . format ( "%d<seq2seq4repair_space>trials<seq2seq4repair_space>had<seq2seq4repair_space>unacceptable<seq2seq4repair_space>accuracy<seq2seq4repair_space>of<seq2seq4repair_space>only<seq2seq4repair_space>%.0f%%:<seq2seq4repair_space>" , correct [ i ] , ( ( 100.0 * i ) // ( test . size ( ) ) ) ) , 0 , correct [ i ] ) ; } assertEquals ( String . format ( "%d<seq2seq4repair_space>trials<seq2seq4repair_space>had<seq2seq4repair_space>unrealistic<seq2seq4repair_space>accuracy<seq2seq4repair_space>of<seq2seq4repair_space>100%%" , correct [ ( ( test . size ( ) ) - 1 ) ] ) , 0 , correct [ ( ( test . size ( ) ) - 1 ) ] ) ; } @ Test public void testTrain ( ) throws Exception { } }

Fix:
int [ ] correct = new int [ ( test . size ( ) ) + 1 ] ;
Buggy code:
public class ByteBufferBuf implements ByteBuf { private final ByteBuffer buf ; public ByteBufferBuf ( ByteBuffer buf ) { } public ByteBuffer buffer ( ) { } @ Override public int position ( ) { } @ Override public ByteBuf position ( int position ) { } @ Override public int limit ( ) { } @ Override public int capacity ( ) { } @ Override public ByteBuf limit ( int limit ) { } @ Override public ByteBuf clear ( ) { } @ Override public ByteBuf flip ( ) { } @ Override public void shift ( int position , int length , int distance ) { } @ Override public int read ( ) throws IOException { <START_BUG> return buf . get ( ) ; <END_BUG> } @ Override public void read ( byte [ ] b , int off , int len ) throws IOException { } @ Override public void write ( int b ) throws IOException { } @ Override public void write ( byte [ ] b , int off , int len ) throws IOException { } @ Override public String readStringUtf8 ( int len ) throws IOException { } }

Fix:
return 255 & ( buf . get ( ) ) ;
Buggy code:
public class Stroke5Table { public static final String TABLE_NAME = "stroke5" ; public static final String COLUMN_ID = "_id" ; public static final String COLUMN_CHAR = "char" ; public static final String COLUMN_CODE = "code" ; public static final String COLUMN_USAGE = "usage" ; protected static final String TABLE_CREATE = ( ( ( ( ( ( ( ( ( ( "create<seq2seq4repair_space>table<seq2seq4repair_space>" + ( Stroke5Table . TABLE_NAME ) ) + "(<seq2seq4repair_space>" ) + ( Stroke5Table . COLUMN_ID ) ) + "<seq2seq4repair_space>integer<seq2seq4repair_space>primary<seq2seq4repair_space>key<seq2seq4repair_space>autoincrement,<seq2seq4repair_space>" ) + ( Stroke5Table . COLUMN_CHAR ) ) + "<seq2seq4repair_space>VARCHAR(5)<seq2seq4repair_space>not<seq2seq4repair_space>null,<seq2seq4repair_space>" ) + ( Stroke5Table . COLUMN_CODE ) ) + "<seq2seq4repair_space>VARCHAR(5)<seq2seq4repair_space>not<seq2seq4repair_space>null,<seq2seq4repair_space>" ) + ( Stroke5Table . COLUMN_USAGE ) ) + "<seq2seq4repair_space>integer<seq2seq4repair_space>DEFAULT<seq2seq4repair_space>0<seq2seq4repair_space>" ) + "<seq2seq4repair_space>);" ; protected static final String TABLE_DROP = "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>EXISTS<seq2seq4repair_space>" + ( Stroke5Table . TABLE_NAME ) ; private boolean isWritable ; private SQLiteDatabase database ; private Stroke5SQLiteHelper dbHelper ; private String [ ] searchColumns = new String [ ] { Stroke5Table . COLUMN_CHAR } ; public Stroke5Table ( Context context , boolean isWritable ) { } public void open ( ) throws SQLException { } public void close ( ) { } public void createRecord ( String ch , String code ) { } public ArrayList < String > searchRecord ( String input ) { ArrayList < String > result = new ArrayList < String > ( ) ; String [ ] args = new String [ ] { input } ; <START_BUG> String order = ( ( ( Stroke5Table . COLUMN_USAGE ) + ",<seq2seq4repair_space>" ) + ( Stroke5Table . COLUMN_CHAR ) ) + "<seq2seq4repair_space>DESC" ; <END_BUG> Cursor cursor = database . query ( Stroke5Table . TABLE_NAME , searchColumns , ( ( Stroke5Table . COLUMN_CODE ) + "<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>" ) , args , null , null , order ) ; cursor . moveToFirst ( ) ; while ( ! ( cursor . isAfterLast ( ) ) ) { String ch = cursor . getString ( cursor . getColumnIndex ( Stroke5Table . COLUMN_CHAR ) ) ; result . add ( ch ) ; cursor . moveToNext ( ) ; } cursor . close ( ) ; return result ; } }

Fix:
String order = ( ( ( Stroke5Table . COLUMN_USAGE ) + "<seq2seq4repair_space>DESC<seq2seq4repair_space>,<seq2seq4repair_space>" ) + ( Stroke5Table . COLUMN_ID ) ) + "<seq2seq4repair_space>ASC" ;
Buggy code:
public class Version { private Version ( ) { } public static String id ( ) { <START_BUG> return "4.5-SNAPSHOT-20080110-0022" ; <END_BUG> } public static void main ( String [ ] args ) { } }

Fix:
return "4.5-SNAPSHOT-20080125-0912" ;
Buggy code:
@ Repository public interface BaseCostFipRepository extends GraphRepository < BaseCostFip > { @ Query ( value = "g.v(tech).in('BASECOST_FOR_TECHNOLOGY').as('x').out('BASECOST_FOR_LOCATION').filter{it==g.v(gridnode)}.back('x').filter{it.startTime==tick}" , type = QueryType . Gremlin ) public BaseCostFip findOneBaseCostForTechnologyAndNodeAndTime ( @ Param ( "gridnode" ) PowerGridNode node , @ Param ( "tech" ) PowerGeneratingTechnology technology , @ Param ( "tick" ) long tick ) { } <START_BUG> @ Query ( value = "g.v(tech).in('BASECOST_FOR_TECHNOLOGY').as('x').out('BASECOST_FOR_LOCATION').back('x').filter{it.startTime>=timeFrom<seq2seq4repair_space>&&<seq2seq4repair_space>it.startTime<=timeTo}" , type = QueryType . Gremlin ) <END_BUG> Iterable < BaseCostFip > findAllBaseCostFipsForTechnologyLocationAndTimeRange ( @ Param ( "gridnode" ) PowerGridNode node , @ Param ( "tech" ) PowerGeneratingTechnology technology , @ Param ( "timeFrom" ) long timeFrom , @ Param ( "timeTo" ) long timeTo ) ; }

Fix:
@ Query ( value = "g.v(tech).in('BASECOST_FOR_TECHNOLOGY').as('x').out('BASECOST_FOR_LOCATION').filter{it==g.v(gridnode)}.back('x').filter{it.startTime>=timeFrom<seq2seq4repair_space>&&<seq2seq4repair_space>it.startTime<=timeTo}" , type = QueryType . Gremlin )
Buggy code:
public class JMSQueueAdd extends AbstractJMSSubsystemUpdate < Void > { private static final long serialVersionUID = 5900849533546313463L ; private final String name ; private Set < String > bindings ; private String selector ; private Boolean durable ; static JMSQueueAdd create ( final JMSQueueElement queue ) { } public JMSQueueAdd ( String name ) { } protected void applyUpdate ( JMSSubsystemElement element ) throws UpdateFailedException { } protected < P > void applyUpdate ( UpdateContext context , UpdateResultHandler < ? super Void , P > handler , P param ) { final JMSQueueService service = new JMSQueueService ( name , selector , durableDefault ( ) , jndiBindings ( ) ) ; final ServiceName serviceName = JMS_QUEUE_BASE . append ( name ) ; <START_BUG> context . getBatchBuilder ( ) . addService ( serviceName , service ) . addDependency ( JMS_MANAGER , JMSServerManager . class , service . getJmsServer ( ) ) . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( handler , param ) ) . setInitialMode ( IMMEDIATE ) ; <END_BUG> } public AbstractSubsystemUpdate < JMSSubsystemElement , ? > getCompensatingUpdate ( JMSSubsystemElement original ) { } public Set < String > getBindings ( ) { } public void setBindings ( Set < String > bindings ) { } public String getSelector ( ) { } public void setSelector ( String selector ) { } public Boolean getDurable ( ) { } public void setDurable ( Boolean durable ) { } public String getName ( ) { } private boolean durableDefault ( ) { } private String [ ] jndiBindings ( ) { } }

Fix:
context . getBatchBuilder ( ) . addService ( serviceName , service ) . addDependency ( JMS_MANAGER , JMSServerManager . class , service . getJmsServer ( ) ) . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( handler , param ) ) . setInitialMode ( ACTIVE ) ;
Buggy code:
public class StaticContentStep extends WizardStep { private static final long serialVersionUID = 1L ; private final boolean allowHtml ; private IModel content ; public StaticContentStep ( MarkupContainer < ? > parent , boolean allowHtml ) { } public StaticContentStep ( MarkupContainer < ? > parent , IModel title , IModel summary , IModel content , boolean allowHtml ) { } public StaticContentStep ( MarkupContainer < ? > parent , IModel title , IModel summary , String content , boolean allowHtml ) { } public StaticContentStep ( MarkupContainer < ? > parent , String title , String summary , IModel content , boolean allowHtml ) { } public StaticContentStep ( MarkupContainer < ? > parent , String title , String summary , String content , boolean allowHtml ) { } public final boolean getAllowHtml ( ) { } public final String getContent ( ) { } public final IModel getContentModel ( ) { } public final void setContentModel ( IModel content ) { this . content = content ; <START_BUG> replace ( new wicket . markup . html . basic . Label ( this , "content" , content ) . setEscapeModelStrings ( ( ! ( allowHtml ) ) ) ) ; <END_BUG> } }

Fix:
new wicket . markup . html . basic . Label ( this , "content" , content ) . setEscapeModelStrings ( ( ! ( allowHtml ) ) ) ;