nus-yam/ex-repair huggingface dataset:
Buggy code:
@ Configuration @ EnableWebMvcSecurity public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @ Autowired private UserDetailsServiceImpl userDetailsService ; @ Override protected void configure ( HttpSecurity http ) throws Exception { <START_BUG> http . csrf ( ) . disable ( ) . authorizeRequests ( ) . antMatchers ( "//" ) . permitAll ( ) . anyRequest ( ) . authenticated ( ) . and ( ) . formLogin ( ) . loginPage ( "//" ) . permitAll ( ) . and ( ) . logout ( ) . permitAll ( ) ; <END_BUG> } @ Autowired public void configureGlobal ( AuthenticationManagerBuilder auth ) { } No newline ; at end ; of file ; }

Fix:
http . csrf ( ) . disable ( ) . authorizeRequests ( ) . antMatchers ( "//" ) . permitAll ( ) . anyRequest ( ) . authenticated ( ) . and ( ) . formLogin ( ) . loginPage ( "//login" ) . permitAll ( ) . and ( ) . logout ( ) . permitAll ( ) ;
Buggy code:
public final class SegmentReader extends AtomicReader { private final SegmentInfoPerCommit si ; private final Bits liveDocs ; private final int numDocs ; final SegmentCoreReaders core ; public SegmentReader ( SegmentInfoPerCommit si , int termInfosIndexDivisor , IOContext context ) throws IOException { } SegmentReader ( SegmentInfoPerCommit si , SegmentCoreReaders core , IOContext context ) throws IOException { } SegmentReader ( SegmentInfoPerCommit si , SegmentCoreReaders core , Bits liveDocs , int numDocs ) { } @ Override public Bits getLiveDocs ( ) { } @ Override protected void doClose ( ) throws IOException { } @ Override public boolean hasDeletions ( ) { } @ Override public FieldInfos getFieldInfos ( ) { } public StoredFieldsReader getFieldsReader ( ) { } @ Override public void document ( int docID , StoredFieldVisitor visitor ) throws IOException { } @ Override public Fields fields ( ) { } @ Override public int numDocs ( ) { } @ Override public int maxDoc ( ) { } public TermVectorsReader getTermVectorsReader ( ) { } @ Override public Fields getTermVectors ( int docID ) throws IOException { } private void checkBounds ( int docID ) { } @ Override public String toString ( ) { } public String getSegmentName ( ) { } SegmentInfoPerCommit getSegmentInfo ( ) { } public Directory directory ( ) { } @ Override public Object getCoreCacheKey ( ) { } @ Override public Object getCombinedCoreAndDeletesKey ( ) { } public int getTermInfosIndexDivisor ( ) { } @ Override public NumericDocValues getNumericDocValues ( String field ) throws IOException { } @ Override public BinaryDocValues getBinaryDocValues ( String field ) throws IOException { } @ Override public SortedDocValues getSortedDocValues ( String field ) throws IOException { } @ Override public NumericDocValues getNormValues ( String field ) throws IOException { ensureOpen ( ) ; <START_BUG> return core . getSimpleNormValues ( field ) ; <END_BUG> } public static interface CoreClosedListener { public void onClose ( SegmentReader owner ) { } } public void addCoreClosedListener ( SegmentReader . CoreClosedListener listener ) { } public void removeCoreClosedListener ( SegmentReader . CoreClosedListener listener ) { } }

Fix:
return core . getNormValues ( field ) ;
Buggy code:
public interface IChannelContainer { <START_BUG> public IChannel createChannel ( ID channelID ) throws ECFException ; <END_BUG> public IChannel getChannel ( ID channelID ) { } public boolean disposeChannel ( ID channelID ) { } }

Fix:
public IChannel createChannel ( IChannelDescription description ) throws ECFException ;
Buggy code:
public final class WicketMessageTagHandler extends AbstractMarkupFilter implements IComponentResolver { private static final long serialVersionUID = 1L ; private static final String WICKET_MESSAGE_ATTRIBUTE_NAME = "wicket:message" ; public static final String WICKET_MESSAGE_CONTAINER_ID = "_message_attr_" ; public static final IBehavior ATTRIBUTE_LOCALIZER = new WicketMessageTagHandler . AttributeLocalizer ( ) ; public WicketMessageTagHandler ( ) { } public final MarkupElement nextTag ( ) throws ParseException { } public static class AttributeLocalizer extends AbstractBehavior { private static final long serialVersionUID = 1L ; public void onComponentTag ( final Component component , final ComponentTag tag ) { String expr = tag . getAttributes ( ) . getString ( WicketMessageTagHandler . WICKET_MESSAGE_ATTRIBUTE_NAME ) ; if ( ! ( Strings . isEmpty ( expr ) ) ) { expr = expr . trim ( ) ; String [ ] attrsAndKeys = expr . split ( "," ) ; for ( int i = 0 ; i < ( attrsAndKeys . length ) ; i ++ ) { String attrAndKey = attrsAndKeys [ i ] ; <START_BUG> int colon = attrAndKey . indexOf ( ":" ) ; <END_BUG> if ( ( ( ( attrAndKey . length ( ) ) < 3 ) || ( colon < 1 ) ) || ( colon > ( ( attrAndKey . length ( ) ) - 2 ) ) ) { throw new WicketRuntimeException ( ( ( "wicket:message<seq2seq4repair_space>attribute<seq2seq4repair_space>contains<seq2seq4repair_space>an<seq2seq4repair_space>invalid<seq2seq4repair_space>value<seq2seq4repair_space>[[" + expr ) + "]],<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>of<seq2seq4repair_space>form<seq2seq4repair_space>(attr:key)+" ) ) ; } String attr = attrAndKey . substring ( 0 , colon ) ; String key = attrAndKey . substring ( ( colon + 1 ) ) ; final String value ; if ( tag . getAttributes ( ) . containsKey ( attr ) ) { value = component . getString ( key , null , tag . getAttributes ( ) . getString ( attr ) ) ; } else { value = component . getString ( key ) ; } tag . put ( attr , value ) ; } } } } public boolean resolve ( MarkupContainer container , MarkupStream markupStream , ComponentTag tag ) { } }

Fix:
int colon = attrAndKey . lastIndexOf ( ":" ) ;
Buggy code:
public class ActionBar extends JPanel { public ActionBar ( final View view , boolean temp ) { } public HistoryTextField getField ( ) { } public void goToActionBar ( ) { } public void actionListChanged ( ) { } private static NameSpace namespace = new NameSpace ( BeanShell . getNameSpace ( ) , "action<seq2seq4repair_space>bar<seq2seq4repair_space>namespace" ) ; private View view ; private boolean temp ; private int repeatCount ; private HistoryTextField action ; private ActionBar . CompletionPopup popup ; private RolloverButton close ; private String [ ] actions ; private void initActions ( ) { } private void invoke ( ) { } private String [ ] getCompletions ( String str ) { } private void complete ( boolean insertLongestPrefix ) { String text = action . getText ( ) . trim ( ) ; String [ ] completions = getCompletions ( text ) ; if ( ( completions . length ) == 1 ) { if ( insertLongestPrefix ) action . setText ( completions [ 0 ] ) ; } else if ( ( completions . length ) != 0 ) { if ( insertLongestPrefix ) { <START_BUG> String prefix = MiscUtilities . getLongestPrefix ( completions ) ; <END_BUG> if ( ( prefix . indexOf ( text ) ) != ( - 1 ) ) action . setText ( prefix ) ; } if ( ( popup ) != null ) popup . setModel ( completions ) ; else popup = new ActionBar . CompletionPopup ( completions ) ; return ; } if ( ( popup ) != null ) { popup . dispose ( ) ; popup = null ; } } class ActionHandler implements ActionListener { public void actionPerformed ( ActionEvent evt ) { } } class DocumentHandler implements DocumentListener { public void insertUpdate ( DocumentEvent evt ) { } public void removeUpdate ( DocumentEvent evt ) { } public void changedUpdate ( DocumentEvent evt ) { } } class ActionTextField extends HistoryTextField { boolean repeat ; boolean nonDigit ; ActionTextField ( ) { } public boolean isManagingFocus ( ) { } public boolean getFocusTraversalKeysEnabled ( ) { } public void processKeyEvent ( KeyEvent evt ) { } private void passToView ( final KeyEvent evt ) { } public void addNotify ( ) { } } class CompletionPopup extends JWindow { ActionBar . CompletionPopup . CompletionList list ; CompletionPopup ( String [ ] actions ) { } void setModel ( String [ ] actions ) { } class MouseHandler extends MouseAdapter { public void mouseClicked ( MouseEvent evt ) { } } class CompletionList extends JList { CompletionList ( Object [ ] data ) { } public void processKeyEvent ( KeyEvent evt ) { } } class KeyHandler extends KeyAdapter { public void keyTyped ( KeyEvent evt ) { } public void keyPressed ( KeyEvent evt ) { } } } }

Fix:
String prefix = MiscUtilities . getLongestPrefix ( completions , true ) ;
Buggy code:
public class Main { public static void main ( String [ ] args ) { String file = "program.txt" ; <START_BUG> loader loader = new loader ( file ) ; <END_BUG> } No newline ; at end ; of file ; }

Fix:
Loader loader = new Loader ( file ) ;
Buggy code:
public class BaseChannel extends TransactionSharedObject implements IChannel { static class ChannelMsg implements Serializable { private static final long serialVersionUID = 9065358269778864152L ; byte [ ] channelData = null ; ChannelMsg ( ) { } ChannelMsg ( byte [ ] data ) { } byte [ ] getData ( ) { } } protected IChannelListener listener ; protected void setChannelListener ( IChannelListener l ) { } public BaseChannel ( ISharedObjectTransactionConfig config , IChannelListener listener ) { } public BaseChannel ( ) { } protected void replicaHandleChannelEvent ( IChannelEvent channelEvent ) { if ( channelEvent instanceof IChannelMessageEvent ) <START_BUG> System . out . println ( ( ( ( ( ( ( ( "replica.channelMessage(" + ( getID ( ) ) ) + "," ) + ( getLocalContainerID ( ) ) ) + ")<seq2seq4repair_space>fromContainerID=" ) + ( ( ( IChannelMessageEvent ) ( channelEvent ) ) . getFromContainerID ( ) ) ) + "<seq2seq4repair_space>message=" ) + ( new String ( ( ( IChannelMessageEvent ) ( channelEvent ) ) . getData ( ) ) ) ) ) ; <END_BUG> else System . out . println ( ( ( "replica.handleChannelEvent(" + ( channelEvent . getChannelID ( ) ) ) + ")" ) ) ; } protected void initialize ( ) { } protected ReplicaSharedObjectDescription getReplicaDescription ( ID receiver ) { } public Object getAdapter ( Class clazz ) { } private IChannelGroupJoinEvent createChannelGroupJoinEvent ( final boolean hasJoined , final ID targetID ) { } private IChannelGroupDepartEvent createChannelGroupDepartEvent ( final boolean hasJoined , final ID targetID ) { } private Event handleMessageEvent ( final ISharedObjectMessageEvent event ) { } public void sendMessage ( byte [ ] message ) throws ECFException { } public void sendMessage ( ID receiver , byte [ ] message ) throws ECFException { } }

Fix:
System . out . println ( ( ( ( ( ( ( ( "replica.receiveChannelMessage(" + ( getID ( ) ) ) + "," ) + ( getLocalContainerID ( ) ) ) + ")<seq2seq4repair_space>fromContainerID=" ) + ( ( ( IChannelMessageEvent ) ( channelEvent ) ) . getFromContainerID ( ) ) ) + "<seq2seq4repair_space>message=" ) + ( new String ( ( ( IChannelMessageEvent ) ( channelEvent ) ) . getData ( ) ) ) ) ) ;
Buggy code:
public class CourseOffering extends BaseCourseOffering { private static final long serialVersionUID = 1L ; private String courseName ; public static final String CRS_OFFERING_LIST_ATTR_NAME = "crsOfferingList" ; public CourseOffering ( ) { } public CourseOffering ( Long uniqueId ) { } public CourseOffering ( Long uniqueId , org . unitime . timetable . model . SubjectArea subjectArea , org . unitime . timetable . model . InstructionalOffering instructionalOffering , Boolean isControl , Integer nbrExpectedStudents , String courseNbr ) { } public String getCourseName ( ) { } public String getCourseNameWithTitle ( ) { } public String toString ( ) { } public Boolean getIsControl ( ) { } public static List search ( Long acadSessionId , String subjAreaId , String courseNbr ) { } public static CourseOffering findBySessionSubjAreaAbbvCourseNbr ( Long acadSessionId , String subjAreaAbbv , String courseNbr ) { } public static synchronized CourseOffering addNew ( String subjAreaId , String courseNbr ) throws Exception { } public static Vector getControllingCourses ( Long sessionId ) { } public Department getDepartment ( ) { } public boolean isFullyEditableBy ( User user ) { } public boolean isEditableBy ( User user ) { } public boolean isLimitedEditableBy ( User user ) { } public boolean isViewableBy ( User user ) { if ( user == null ) return false ; if ( user . isAdmin ( ) ) return true ; if ( ( getDepartment ( ) ) == null ) return false ; if ( isEditableBy ( user ) ) return true ; <START_BUG> if ( ( user . getCurrentRole ( ) . equals ( VIEW_ALL_ROLE ) ) || ( user . getCurrentRole ( ) . equals ( EXAM_MGR_ROLE ) ) ) <END_BUG> return true ; if ( ( getInstructionalOffering ( ) ) != null ) { for ( Iterator i1 = getInstructionalOffering ( ) . getInstrOfferingConfigs ( ) . iterator ( ) ; i1 . hasNext ( ) ; ) { InstrOfferingConfig ioc = ( ( InstrOfferingConfig ) ( i1 . next ( ) ) ) ; for ( Iterator i2 = ioc . getSchedulingSubparts ( ) . iterator ( ) ; i2 . hasNext ( ) ; ) { SchedulingSubpart ss = ( ( SchedulingSubpart ) ( i2 . next ( ) ) ) ; if ( ss . canUserView ( user ) ) return true ; } } } return false ; } public List getCourseOfferingDemands ( ) { } public List getLastLikeSemesterCourseOfferingDemands ( ) { } public Collection getReservations ( boolean acadArea ) { } public Collection effectiveReservations ( boolean acadArea ) { } public Object clone ( ) { } public static List findAll ( Long sessionId ) { } public static CourseOffering findBySubjectAreaCourseNbr ( Long sessionId , String subjectAreaAbbv , String courseNbr ) { } public static CourseOffering findByExternalId ( Long sessionId , String externalId ) { } public static CourseOffering findByIdRolledForwardFrom ( Long sessionId , Long uniqueIdRolledForwardFrom ) { } }

Fix:
if ( ( ( user . getCurrentRole ( ) ) != null ) && ( ( user . getCurrentRole ( ) . equals ( VIEW_ALL_ROLE ) ) || ( user . getCurrentRole ( ) . equals ( EXAM_MGR_ROLE ) ) ) )
Buggy code:
public class BitcoindController { private static Logger LOGGER = Logger . getLogger ( BitcoindController . class ) ; private static final Bitcoin BITCOIN = new BitcoinJSONRPCClient ( ) ; private static int keyPoolCounter = 0 ; public BitcoindController ( ) { } public static String sendCoins ( String address , BigDecimal amount ) throws BitcoinException { } public static boolean validateAddress ( String address ) throws BitcoinException { } public static String getNewAddress ( ) throws BitcoinException { } public static void listenIncomingTransactions ( ) throws BitcoinException { } public static void listenIncomingBigTransactions ( ) throws BitcoinException { } public static void listenOutgoingTransactions ( ) throws BitcoinException { ConfirmedPaymentListener outgoingTxListener = new ConfirmedPaymentListener ( Config . MIN_CONFIRMATIONS_SMALL_TRANSACTIONS ) { @ Override public void confirmed ( Bitcoin . Transaction transaction ) { if ( transaction . category ( ) . equals ( "send" ) ) { <START_BUG> BitcoindController . LOGGER . info ( ( ( ( ( ( "Outoging<seq2seq4repair_space>transaction:<seq2seq4repair_space>amount:<seq2seq4repair_space>" + ( transaction . amount ( ) ) ) + ",<seq2seq4repair_space>account:<seq2seq4repair_space>" ) + ( transaction . account ( ) ) ) + ",<seq2seq4repair_space>address:<seq2seq4repair_space>" ) + ( transaction . address ( ) ) ) ) ; <END_BUG> PayOutTransactionService . check ( transaction ) ; } } } ; BitcoinAcceptor ba = new BitcoinAcceptor ( BitcoindController . BITCOIN , outgoingTxListener , true ) ; Thread t = new Thread ( ba ) ; t . start ( ) ; } public static void backupWallet ( ) { } private static void keyPoolCheck ( ) throws BitcoinException { } No newline ; at end ; of file ; }

Fix:
BitcoindController . LOGGER . info ( ( ( ( ( ( "Outgoing<seq2seq4repair_space>transaction:<seq2seq4repair_space>amount:<seq2seq4repair_space>" + ( transaction . amount ( ) ) ) + ",<seq2seq4repair_space>account:<seq2seq4repair_space>" ) + ( transaction . account ( ) ) ) + ",<seq2seq4repair_space>address:<seq2seq4repair_space>" ) + ( transaction . address ( ) ) ) ) ;
Buggy code:
public class HomePageTest extends WicketTestCase { @ Override public void setUp ( ) throws Exception { } public void testWithoutBorder ( ) { } public void testWithoutBorder2 ( ) { } public void testWithBorder ( ) { } public void testWithBorder2 ( ) { TextField textfield = ( ( TextField ) ( tester . getLastRenderedPage ( ) . get ( "border:form2:border_body:textfield1" ) ) ) ; <START_BUG> tester . getRequest ( ) . getPostRequestParameters ( ) . setParameterValue ( textfield . getInputName ( ) , "abcde" ) ; <END_BUG> tester . executeAjaxEvent ( "border:form2:submit" , "onclick" ) ; tester . assertNoErrorMessage ( ) ; assertFalse ( ( ( MyBorder ) ( tester . getLastRenderedPage ( ) . get ( "border" ) ) ) . hitOnError ) ; assertTrue ( ( ( MyBorder ) ( tester . getLastRenderedPage ( ) . get ( "border" ) ) ) . hitOnSubmit ) ; } public void testWithPanelAjax ( ) { } public void testWithPanelForm ( ) { } public void test_2589 ( ) throws Exception { } }

Fix:
tester . getRequest ( ) . getPostParameters ( ) . setParameterValue ( textfield . getInputName ( ) , "abcde" ) ;
Buggy code:
public final class YuiLib implements IClusterable { private static final long serialVersionUID = 1L ; public static void load ( IHeaderResponse response ) { <START_BUG> response . renderJavascriptReference ( new JavascriptResourceReference ( YuiLib . class , "yahoo//yahoo-min.js" ) ) ; <END_BUG> response . renderJavascriptReference ( new JavascriptResourceReference ( YuiLib . class , "yuiloader-beta.js" ) ) ; } private YuiLib ( ) { } }

Fix:
response . renderJavascriptReference ( new JavascriptResourceReference ( YuiLib . class , "yahoo//yahoo.js" ) ) ;
Buggy code:
public class ScanResultActivity extends Activity { private Scan scan ; private SharedPref pref ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_scan_result ) ; final ImageView imageViewStar = ( ( ImageView ) ( findViewById ( ImageViewStar ) ) ) ; final RelativeLayout RelativeLayoutBack = ( ( RelativeLayout ) ( findViewById ( RelativeButton ) ) ) ; pref = new SharedPref ( this ) ; RelativeLayoutBack . setOnClickListener ( new View . OnClickListener ( ) { public void onClick ( View v ) { Intent intent = new Intent ( ScanResultActivity . this , OverviewActivity . class ) ; startActivity ( intent ) ; } } ) ; imageViewStar . setOnClickListener ( new View . OnClickListener ( ) { public void onClick ( View v ) { if ( pref . IsStarred ( scan ) ) { imageViewStar . setImageResource ( details_star ) ; pref . RemoveStarred ( scan ) ; } else { imageViewStar . setImageResource ( details_starred ) ; pref . AddStarred ( scan ) ; } } } ) ; <START_BUG> SetTaskBar setTaskBar = new SetTaskBar ( this ) ; <END_BUG> GetScanByCode getScanByCode = new GetScanByCode ( ) ; try { scan = getScanByCode . execute ( getIntent ( ) . getExtras ( ) . getString ( "barcode" ) ) . get ( ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } catch ( ExecutionException e ) { e . printStackTrace ( ) ; } if ( ( scan ) != null ) { updateLabels ( ) ; if ( pref . IsStarred ( scan ) ) { imageViewStar . setImageResource ( details_starred ) ; } } else { finish ( ) ; } } private void updateLabels ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
new SetTaskBar ( this ) ;
Buggy code:
public class GroupPopupController { @ FXML private TextField nameField ; @ FXML private Text errorText ; private Stage popupStage ; private ObservableList < CheckListObject > memberList = FXCollections . observableArrayList ( ) ; @ FXML private VBox members ; @ FXML private Text memberListText ; @ FXML private Button OKBtn ; private TreeView < Group > treeView ; private boolean editingExisting ; private boolean createSub ; private boolean isPrivate ; private TreeItem < Group > group ; private DBConnection db ; private MainApp mainApp ; @ FXML private void initialize ( ) { } public void setPopupStage ( Stage popupStage ) { } public void setTreeView ( TreeView < Group > treeView ) { } @ FXML private void handleOk ( ) { } private String isValidInput ( ) { String errorText = "" ; if ( nameField . getText ( ) . equals ( "" ) ) { <START_BUG> errorText += "Beskrivelse<seq2seq4repair_space>kan<seq2seq4repair_space>ikke<seq2seq4repair_space>være<seq2seq4repair_space>tom\n" ; <END_BUG> } return errorText ; } @ FXML private void handleCancel ( ) { } public void fillPopup ( TreeItem < Group > group , boolean createSub , MainApp mainApp ) { } }

Fix:
errorText += "Beskrivelse<seq2seq4repair_space>kan<seq2seq4repair_space>ikke<seq2seq4repair_space>vï¿½re<seq2seq4repair_space>tom\n" ;
Buggy code:
public class MatlabTheme implements Theme { @ Override public Color getChartBackgroundColor ( ) { } @ Override public Color getChartFontColor ( ) { } @ Override public int getChartPadding ( ) { } @ Override public Font getChartTitleFont ( ) { } @ Override public boolean isChartTitleVisible ( ) { } @ Override public boolean isChartTitleBoxVisible ( ) { } @ Override public Color getChartTitleBoxBackgroundColor ( ) { } @ Override public Color getChartTitleBoxBorderColor ( ) { } @ Override public int getChartTitlePadding ( ) { } @ Override public Font getLegendFont ( ) { } @ Override public boolean isLegendVisible ( ) { } @ Override public Color getLegendBackgroundColor ( ) { } @ Override public Color getLegendBorderColor ( ) { } @ Override public int getLegendPadding ( ) { } @ Override public int getLegendSeriesLineLength ( ) { } @ Override public LegendPosition getLegendPosition ( ) { } @ Override public boolean isXAxisTitleVisible ( ) { } @ Override public boolean isYAxisTitleVisible ( ) { } @ Override public Font getAxisTitleFont ( ) { } @ Override public boolean isXAxisTicksVisible ( ) { } @ Override public boolean isYAxisTicksVisible ( ) { } @ Override public Font getAxisTickLabelsFont ( ) { } @ Override public int getAxisTickMarkLength ( ) { } @ Override public int getAxisTickPadding ( ) { } @ Override public Color getAxisTickMarksColor ( ) { } @ Override public Stroke getAxisTickMarksStroke ( ) { <START_BUG> return new BasicStroke ( 1 , BasicStroke . CAP_BUTT , BasicStroke . JOIN_BEVEL ) ; <END_BUG> } @ Override public Color getAxisTickLabelsColor ( ) { } @ Override public boolean isAxisTicksLineVisible ( ) { } @ Override public boolean isAxisTicksMarksVisible ( ) { } @ Override public int getPlotPadding ( ) { } @ Override public int getAxisTitlePadding ( ) { } @ Override public int getXAxisTickMarkSpacingHint ( ) { } @ Override public int getYAxisTickMarkSpacingHint ( ) { } @ Override public boolean isPlotGridLinesVisible ( ) { } @ Override public Color getPlotBackgroundColor ( ) { } @ Override public Color getPlotBorderColor ( ) { } @ Override public boolean isPlotBorderVisible ( ) { } @ Override public boolean isPlotTicksMarksVisible ( ) { } @ Override public Color getPlotGridLinesColor ( ) { } @ Override public Stroke getPlotGridLinesStroke ( ) { } @ Override public double getBarWidthPercentage ( ) { } @ Override public boolean isBarsOverlapped ( ) { } @ Override public boolean isBarFilled ( ) { } @ Override public int getMarkerSize ( ) { } @ Override public Color getErrorBarsColor ( ) { } @ Override public boolean isErrorBarsColorSeriesColor ( ) { } }

Fix:
return new BasicStroke ( 1 , BasicStroke . CAP_BUTT , BasicStroke . JOIN_BEVEL , 10.0F , new float [ ] { 3.0F , 0.0F } , 0.0F ) ;
Buggy code:
public class Vertex < T extends DataInfo > implements Comparable < Vertex < T > > { private DirectedGraph graph ; private T data ; private Set < Edge < T > > incoming = null ; private Set < Edge < T > > outgoing = null ; public Vertex ( DirectedGraph graph , T data ) { } public void addEdgeTo ( Vertex destination , Object type ) { } public void addEdgeTo ( T destination , Object type ) { } public boolean removeEdgeTo ( Vertex destination ) { } public void removeAllEdges ( ) { } public int inDegree ( ) { } public int outDegree ( ) { } public Iterable < Edge < T > > getIncomingEdgesOfType ( Object type ) { } public Iterable < Edge < T > > getIncomingEdgesNotOfType ( Object type ) { } public Iterable < Edge < T > > getOutgoingEdgesOfType ( Object type ) { } public T getIncomingSourceData ( ) { } public T getIncomingSourceDataOfType ( Object type ) { } public Iterable < T > getIncomingSourcesData ( ) { } public Iterable < T > getIncomingSourcesDataOfType ( Object type ) { } public Iterable < T > getIncomingSourcesDataNotOfType ( Object type ) { } public Iterable < Edge < T > > getOutgoingEdgesNotOfType ( Object type ) { } public Iterable < T > getOutgoingDestinationsData ( ) { } public Iterable < T > getOutgoingDestinationsDataOfType ( Object type ) { } public Iterable < T > getOutgoingDestinationsDataNotOfType ( Object type ) { } public T getOutgoingDestinationData ( ) { Edge < T > edge = getSingleEdge ( getOutgoingEdges ( ) . iterator ( ) , "" ) ; <START_BUG> return edge == null ? null : edge . getSource ( ) . getData ( ) ; <END_BUG> } public T getOutgoingDestinationDataOfType ( Object type ) { } private Edge < T > getSingleEdge ( Iterator < Edge < T > > iterator , Object type ) { } public Edge < T > getIncomingEdgeOfType ( Object type ) { } public Edge < T > getOutgoingEdgeOfType ( Object type ) { } public Edge < T > getIncomingEdge ( ) { } public Edge < T > getOutgoingEdge ( ) { } public Set < Edge < T > > getIncomingEdges ( ) { } public Set < Edge < T > > getOutgoingEdges ( ) { } public T getData ( ) { } @ Override public String toString ( ) { } public int compareTo ( Vertex < T > that ) { } }

Fix:
return edge == null ? null : edge . getDestination ( ) . getData ( ) ;
Buggy code:
public class ViewerColorUpdater extends SourceViewerConfigurer { private Color fForegroundColor ; private Color fBackgroundColor ; private Color fSelectionForegroundColor ; private Color fSelectionBackgroundColor ; public ViewerColorUpdater ( IPreferenceStore prefStore , ProjectionViewerExt sourceViewer ) { } @ Override protected void doConfigureViewer ( ) { fForegroundColor = updateColorFromSetting ( fForegroundColor , PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT , PREFERENCE_COLOR_FOREGROUND ) ; styledText . setForeground ( fForegroundColor ) ; fBackgroundColor = updateColorFromSetting ( fBackgroundColor , PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT , PREFERENCE_COLOR_BACKGROUND ) ; <START_BUG> styledText . setBackground ( fForegroundColor ) ; <END_BUG> fSelectionForegroundColor = updateColorFromSetting ( fSelectionForegroundColor , EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR , EDITOR_SELECTION_FOREGROUND_COLOR ) ; styledText . setSelectionForeground ( fSelectionForegroundColor ) ; fSelectionBackgroundColor = updateColorFromSetting ( fSelectionBackgroundColor , EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR , EDITOR_SELECTION_BACKGROUND_COLOR ) ; styledText . setSelectionBackground ( fSelectionBackgroundColor ) ; } @ Override protected void doUnconfigureViewer ( ) { } protected static final List < String > PROP_KEY_LIST = listFrom ( PREFERENCE_COLOR_FOREGROUND , PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT , PREFERENCE_COLOR_BACKGROUND , PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT , EDITOR_SELECTION_FOREGROUND_COLOR , EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR , EDITOR_SELECTION_BACKGROUND_COLOR , EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR ) ; @ Override protected void handlePropertyChange ( PropertyChangeEvent event ) { } protected Color updateColorFromSetting ( Color currentOwnedColor , String prefKeyUseDefault , String prefKeyColorRgb ) { } protected Color createColor ( IPreferenceStore store , String key , Display display ) { } No newline ; at end ; of file ; }

Fix:
styledText . setBackground ( fBackgroundColor ) ;
Buggy code:
public class ResourceStreamRequestTarget implements IRequestTarget { private static final Logger log = LoggerFactory . getLogger ( ResourceStreamRequestTarget . class ) ; private String fileName ; private final IResourceStream resourceStream ; public ResourceStreamRequestTarget ( IResourceStream resourceStream ) { } public void detach ( RequestCycle requestCycle ) { } public boolean equals ( Object obj ) { if ( obj instanceof ResourceStreamRequestTarget ) { ResourceStreamRequestTarget that = ( ( ResourceStreamRequestTarget ) ( obj ) ) ; <START_BUG> return ( resourceStream . equals ( that . resourceStream ) ) && ( ( fileName ) != null ? fileName . equals ( this . fileName ) : true ) ; <END_BUG> } return false ; } public String getFileName ( ) { } public final IResourceStream getResourceStream ( ) { } public int hashCode ( ) { } public void respond ( RequestCycle requestCycle ) { } public ResourceStreamRequestTarget setFileName ( String fileName ) { } public String toString ( ) { } protected void configure ( final RequestCycle requestCycle , final Response response , final IResourceStream resourceStream ) { } }

Fix:
return ( resourceStream . equals ( that . resourceStream ) ) && ( ( fileName ) != null ? fileName . equals ( that . fileName ) : true ) ;
Buggy code:
public class SourceListFragment extends BaseListFragment implements BaseClient . OnResultCallback < ListContents > , BranchManager , TitleProvider { public static final String OWNER = "OWNER" ; public static final String REPO = "REPO" ; public static final String BRANCH = "BRANCH" ; private String owner ; private String repo ; private RepoSourceAdapter contentAdapter ; private RefreshListener refreshListener ; private Map < Content , ListContents > treeContent ; private Content rootContent = new Content ( ) ; private Content currentSelectedContent = rootContent ; private Branch currentBranch ; private String branch ; public static SourceListFragment newInstance ( String owner , String repo , String branchName , RefreshListener refreshListener ) { } @ Override public void onViewCreated ( View view , Bundle savedInstanceState ) { } @ Override protected void loadArguments ( ) { } @ Override protected IconValue getNoDataIcon ( ) { } @ Override protected int getNoDataText ( ) { } @ Override public void onResponseOk ( ListContents contents , Response r ) { } private void displayContent ( ListContents contents ) { <START_BUG> if ( contents != null ) { <END_BUG> try { ListContents currentContents = treeContent . get ( currentSelectedContent ) ; Context context = getActivity ( ) ; int style = style . AppTheme_Repos ; if ( currentContents == null ) { int size = ( contents . size ( ) ) + ( ( currentSelectedContent . parent ) != null ? 1 : 0 ) ; currentContents = new ListContents ( size ) ; treeContent . put ( currentSelectedContent , currentContents ) ; if ( ( currentSelectedContent . parent ) != null ) { Content up = new UpContent ( ) ; up . parent = currentSelectedContent . parent ; currentContents . add ( up ) ; } Collections . sort ( contents , TYPE ) ; currentContents . addAll ( contents ) ; contentAdapter = new RepoSourceAdapter ( context , currentContents , style ) ; } else { contentAdapter = new RepoSourceAdapter ( context , contents , style ) ; } setListAdapter ( contentAdapter ) ; if ( ( refreshListener ) != null ) { refreshListener . cancelRefresh ( ) ; } } catch ( Exception e ) { Crashlytics . logException ( e ) ; } } } @ Override public void onFail ( RetrofitError error ) { } @ Override public void onListItemClick ( ListView l , View v , int position , long id ) { } public void setRefreshListener ( RefreshListener refreshListener ) { } @ Override public void setCurrentBranch ( Branch branch ) { } private void getContent ( ) { } private void getPathContent ( Content item ) { } @ Override public CharSequence getTitle ( ) { } @ Override protected boolean useFAB ( ) { } @ Override protected IconValue getFABGithubIcon ( ) { } @ Override protected void fabClick ( ) { } }

Fix:
if ( ( ( getActivity ( ) ) != null ) && ( contents != null ) ) {
Buggy code:
public class IndexPath { private final String path ; private IndexPath ( final String path ) { } public static IndexPath from ( final String path ) { } public static IndexPath from ( final Property property ) { } public String getPath ( ) { } private static class IndexFieldNameNormalizer { private static final String FIELD_PATH_SEPARATOR = "." ; private static final String INDEX_PATH_SEPARATOR = "_" ; public static String normalize ( final String path ) { } private static String doNormalize ( final String path ) { } public static String [ ] normalize ( final Collection < String > paths ) { } } @ Override public String toString ( ) { } @ Override public boolean equals ( final Object o ) { if ( ( this ) == o ) { return true ; } if ( ( o == null ) || ( ( getClass ( ) ) != ( o . getClass ( ) ) ) ) { return false ; } final IndexPath indexPath = ( ( IndexPath ) ( o ) ) ; <START_BUG> if ( ( path ) != null ? ! ( path . equals ( indexPath . path ) ) : ( indexPath . path ) != null ) { <END_BUG> return false ; } return true ; } @ Override public int hashCode ( ) { } }

Fix:
if ( ( path ) != null ? ! ( path . equalsIgnoreCase ( indexPath . path ) ) : ( indexPath . path ) != null ) {
Buggy code:
public class JoinRoomRequestPayload extends ServerPayload { String roomName ; @ Override public void executePayload ( ClientConnection clientConnection , ServerManager serverManager ) { if ( ( clientConnection . isConnected ( ) ) && ( clientConnection . isLoggedIn ( ) ) ) { ServerRoom room = serverManager . getRoomManager ( ) . findRoomByName ( roomName ) ; if ( room != null ) { if ( clientConnection . getPlayer ( ) . getCurrentRoom ( ) . equals ( room ) ) { NotifyClientPayload payload = Pools . obtain ( NotifyClientPayload . class ) ; payload . setMessage ( "You<seq2seq4repair_space>are<seq2seq4repair_space>already<seq2seq4repair_space>connected<seq2seq4repair_space>to<seq2seq4repair_space>this<seq2seq4repair_space>room" ) ; payload . setComsType ( TCP ) ; clientConnection . send ( payload ) ; Pools . free ( payload ) ; } else { try { serverManager . joinRoom ( room , clientConnection . getPlayer ( ) ) ; JoinRoomSuccessPayload payload = Pools . obtain ( JoinRoomSuccessPayload . class ) ; payload . setRoom ( room . getClientRoom ( ) ) ; payload . setComsType ( TCP ) ; clientConnection . send ( payload ) ; Pools . free ( payload ) ; } catch ( TooManyPlayersException e ) { NotifyClientPayload payload = Pools . obtain ( NotifyClientPayload . class ) ; <START_BUG> payload . setMessage ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>lobby<seq2seq4repair_space>as<seq2seq4repair_space>it<seq2seq4repair_space>was<seq2seq4repair_space>full" ) ; <END_BUG> payload . setComsType ( TCP ) ; clientConnection . send ( payload ) ; Pools . free ( payload ) ; } } } else { NotifyClientPayload payload = Pools . obtain ( NotifyClientPayload . class ) ; payload . setMessage ( ( ( "No<seq2seq4repair_space>room<seq2seq4repair_space>found<seq2seq4repair_space>with<seq2seq4repair_space>name<seq2seq4repair_space>[" + ( roomName ) ) + "]" ) ) ; payload . setComsType ( TCP ) ; clientConnection . send ( payload ) ; Pools . free ( payload ) ; } } else { NotifyClientPayload payload = Pools . obtain ( NotifyClientPayload . class ) ; payload . setMessage ( "You<seq2seq4repair_space>are<seq2seq4repair_space>not<seq2seq4repair_space>logged<seq2seq4repair_space>in,<seq2seq4repair_space>please<seq2seq4repair_space>login<seq2seq4repair_space>first" ) ; payload . setComsType ( TCP ) ; clientConnection . send ( payload ) ; Pools . free ( payload ) ; } } public String getRoomName ( ) { } public void setRoomName ( String roomName ) { } }

Fix:
payload . setMessage ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>room<seq2seq4repair_space>as<seq2seq4repair_space>it<seq2seq4repair_space>was<seq2seq4repair_space>full" ) ;
Buggy code:
public class Query { private QuestionType questionType = QuestionType . SELECT ; private String predicate ; private String subject ; private QueryFilter firstFilter = new QueryFilter ( ) ; private QueryFilter secondFilter = new QueryFilter ( ) ; public static final List < String > URI_PREFIXES ; public void setSubject ( String subject ) { } public String getSubject ( ) { } public void setQuestionType ( QuestionType questionType ) { } public QuestionType getQuestionType ( ) { } public void setSecondFilter ( QueryFilter secondFilter ) { } public QueryFilter getSecondFilter ( ) { } public void setFirstFilter ( QueryFilter firstFilter ) { } public QueryFilter getFirstFilter ( ) { } public boolean isNull ( ) { } @ Override public String toString ( ) { } public String toSparqlString ( ) { } public String filterToSparqlBGP ( QueryFilter filter ) { StringBuilder bgp = new StringBuilder ( ) ; bgp . append ( "?sub<seq2seq4repair_space><" ) ; bgp . append ( filter . getPredicate ( ) ) ; bgp . append ( "><seq2seq4repair_space>" ) ; boolean isURI = false ; String object = filter . getObject ( ) ; for ( String prefix : Query . URI_PREFIXES ) { if ( object . startsWith ( prefix ) ) { isURI = true ; break ; } } if ( isURI ) { object = ( "<" + object ) + ">" ; } else <START_BUG> if ( ( ( object . startsWith ( "b" ) ) && ( ( object . length ( ) ) == 16 ) ) && ( ! ( object . contains ( "<seq2seq4repair_space>" ) ) ) ) { <END_BUG> object = ( "<bnode:" + object ) + ">" ; } else { object = ( ( ( ( ( "?obj<seq2seq4repair_space>.<seq2seq4repair_space>FILTER<seq2seq4repair_space>(?obj<seq2seq4repair_space>=<seq2seq4repair_space>\"" + object ) + "\"<seq2seq4repair_space>||<seq2seq4repair_space>?obj<seq2seq4repair_space>=<seq2seq4repair_space>\"" ) + object ) + "\"@EN<seq2seq4repair_space>||<seq2seq4repair_space>?obj<seq2seq4repair_space>=<seq2seq4repair_space>\"" ) + object ) + "\"@en)" ; } bgp . append ( object ) ; bgp . append ( "<seq2seq4repair_space>.<seq2seq4repair_space>" ) ; return bgp . toString ( ) ; } public void setPredicate ( String predicate ) { } public String getPredicate ( ) { } }

Fix:
if ( ( ( object . startsWith ( "b" ) ) && ( ( object . length ( ) ) > 16 ) ) && ( ! ( object . contains ( "<seq2seq4repair_space>" ) ) ) ) {
Buggy code:
public class UpdateTest extends ATest { @ Test public void test_00 ( ) throws Exception { } @ Test public void test_001 ( ) throws Exception { __ ( new AnimoExpression ( "the<seq2seq4repair_space>a<seq2seq4repair_space>x<seq2seq4repair_space>z." ) ) ; <START_BUG> assertAnimoResult ( new AnimoExpression ( "all<seq2seq4repair_space>x" ) , "z." ) ; <END_BUG> } @ Test public void test_002 ( ) throws Exception { } @ Test public void test_01 ( ) throws Exception { } @ Test public void test_02 ( ) throws Exception { } @ Test public void test_03 ( ) throws Exception { } @ Test public void test_04 ( ) throws Exception { } @ Test public void test_05 ( ) throws Exception { } @ Test public void test_06 ( ) throws Exception { } @ Test public void test_07 ( ) throws Exception { } @ Test public void test_08 ( ) throws Exception { } @ Test public void test_09 ( ) throws Exception { } @ Test public void test_10 ( ) throws Exception { } No newline ; at end ; of file ; }

Fix:
assertAnimoResult ( "all<seq2seq4repair_space>x" , "z." ) ;
Buggy code:
public class ClassificationDataSet extends DataSet { protected CategoricalData predicting ; protected List < DataPoint > datapoints ; protected IntList category ; public ClassificationDataSet ( DataSet dataSet , int predicting ) { } public ClassificationDataSet ( List < DataPoint > data , int predicting ) { } public ClassificationDataSet ( List < DataPointPair < Integer > > data , CategoricalData predicting ) { } public ClassificationDataSet ( int numerical , CategoricalData [ ] categories , CategoricalData predicting ) { } private void generateGenericNumericNames ( ) { } public int getClassSize ( ) { } public static ClassificationDataSet comineAllBut ( List < ClassificationDataSet > list , int exception ) { } @ Override public DataPoint getDataPoint ( int i ) { } public DataPointPair < Integer > getDataPointPair ( int i ) { } @ Override public void setDataPoint ( int i , DataPoint dp ) { } public int getDataPointCategory ( int i ) { } @ Override public List < ClassificationDataSet > cvSet ( int folds , Random rnd ) { } public List < ClassificationDataSet > stratSet ( int folds , Random rnd ) { } @ Override public List < ClassificationDataSet > cvSet ( int folds ) { } public void addDataPoint ( Vec v , int [ ] classes , int classification ) { } private static final int [ ] emptyInt = new int [ 0 ] ; public void addDataPoint ( Vec v , int classification ) { } public void addDataPoint ( Vec v , int classification , double weight ) { <START_BUG> addDataPoint ( v , ClassificationDataSet . emptyInt , classification , 1.0 ) ; <END_BUG> } public void addDataPoint ( Vec v , int [ ] classes , int classification , double weight ) { } public void addDataPoint ( DataPoint dp , int classification ) { } public List < DataPoint > getSamples ( int category ) { } public Vec getSampleVariableVector ( int category , int n ) { } public CategoricalData getPredicting ( ) { } public List < DataPointPair < Integer > > getAsDPPList ( ) { } public List < DataPointPair < Double > > getAsFloatDPPList ( ) { } public double [ ] getPriors ( ) { } public int classSampleCount ( int targetClass ) { } @ Override public int getSampleSize ( ) { } @ Override public ClassificationDataSet shallowClone ( ) { } @ Override public ClassificationDataSet getTwiceShallowClone ( ) { } }

Fix:
addDataPoint ( v , ClassificationDataSet . emptyInt , classification , weight ) ;
Buggy code:
public class HolidayRequestServiceTest extends AbstractServiceTest { private static final String DATE1 = "01//01//2012" ; private static final String DATE2 = "01//03//2012" ; private static final String DATE3 = "01//05//2012" ; private static final String DATE4 = "12//30//2011" ; private static final String DATE5 = "01//20//2012" ; private static final String R_COMMENT = "I<seq2seq4repair_space>want<seq2seq4repair_space>my<seq2seq4repair_space>holidays<seq2seq4repair_space>!" ; private static final String USERNAME = "test_username" ; private static final String TEST_STRING = "type" ; private static final int QUANTITY = 3 ; @ Inject private HolidayRequestService holidayRequestService ; @ Inject private UserService userService ; @ Inject private RoleService roleService ; @ Inject private HolidayService holidayService ; @ Inject private HolidayBalanceService holidayBalanceService ; private UserDTO createUserForTest ( ) { } private HolidayDTO createHolidayTypeForTest ( ) { } @ Test public void registerRequestTest ( ) { } @ Test public void waitingRequestTest ( ) { } @ Test public void acceptRequestTest ( ) { } @ Test public void commentManagerRequestTest ( ) { HolidayDTO hdto = this . createHolidayTypeForTest ( ) ; UserDTO udto = this . createUserForTest ( ) ; authenticateAs ( HolidayRequestServiceTest . USERNAME ) ; holidayBalanceService . createHolidayBalance ( udto . id , hdto . id ) ; HolidayDetailCreationRequestDTO detailDTO1 = new HolidayDetailCreationRequestDTO ( ) ; detailDTO1 . day = HolidayRequestServiceTest . DATE1 ; detailDTO1 . typeId = hdto . id ; List < HolidayDetailCreationRequestDTO > list = new ArrayList < HolidayDetailCreationRequestDTO > ( ) ; list . add ( detailDTO1 ) ; HolidayRequestCreationRequestDTO request = new HolidayRequestCreationRequestDTO ( ) ; request . details = list ; request . requesterComment = HolidayRequestServiceTest . R_COMMENT ; holidayRequestService . registerRequestAndDetails ( request ) ; List < HolidayRequestDTO > dtos = holidayRequestService . getAllRequestsWithStatus ( PENDING_STATUS ) ; <START_BUG> holidayRequestService . addManagerComentary ( dtos . get ( 0 ) . id , "managerComment" ) ; <END_BUG> dtos = holidayRequestService . getAllRequestsWithStatus ( PENDING_STATUS ) ; assertEquals ( "managerComment" , dtos . get ( 0 ) . managerComment ) ; } @ Test public void denyRequestTest ( ) { } @ Test public void cancelRequestTest ( ) { } @ Test public void getCalendarIntervalTest ( ) { } @ Test public void getCalendarIntervalOnTwoYearsTest ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void getCalendarWithWrongArgumentsTest ( ) { } }

Fix:
holidayRequestService . addManagerCommentary ( dtos . get ( 0 ) . id , "managerComment" ) ;
Buggy code:
public class TestScoredDocIDsUtils extends FacetTestCase { @ Test public void testComplementIterator ( ) throws Exception { final int n = atLeast ( 10000 ) ; final FixedBitSet bits = new FixedBitSet ( n ) ; Random random = random ( ) ; for ( int i = 0 ; i < n ; i ++ ) { int idx = random . nextInt ( n ) ; bits . flip ( idx , ( idx + 1 ) ) ; } <START_BUG> FixedBitSet verify = new FixedBitSet ( bits ) ; <END_BUG> ScoredDocIDs scoredDocIDs = ScoredDocIdsUtils . createScoredDocIds ( bits , n ) ; Directory dir = newDirectory ( ) ; IndexReader reader = TestScoredDocIDsUtils . createReaderWithNDocs ( random , n , dir ) ; try { assertEquals ( ( n - ( verify . cardinality ( ) ) ) , ScoredDocIdsUtils . getComplementSet ( scoredDocIDs , reader ) . size ( ) ) ; } finally { reader . close ( ) ; dir . close ( ) ; } } @ Test public void testAllDocs ( ) throws Exception { } static IndexReader createReaderWithNDocs ( Random random , int nDocs , Directory directory ) throws IOException { } private static class DocumentFactory { protected static final String field = "content" ; protected static final String delTxt = "delete" ; protected static final String alphaTxt = "alpha" ; private static final Field deletionMark = new org . apache . lucene . document . StringField ( TestScoredDocIDsUtils . DocumentFactory . field , TestScoredDocIDsUtils . DocumentFactory . delTxt , Store . NO ) ; private static final Field alphaContent = new org . apache . lucene . document . StringField ( TestScoredDocIDsUtils . DocumentFactory . field , TestScoredDocIDsUtils . DocumentFactory . alphaTxt , Store . NO ) ; public DocumentFactory ( int totalNumDocs ) { } public boolean markedDeleted ( int docNum ) { } public Document getDoc ( int docNum ) { } public boolean haveAlpha ( int docNum ) { } } static IndexReader createReaderWithNDocs ( Random random , int nDocs , TestScoredDocIDsUtils . DocumentFactory docFactory , Directory dir ) throws IOException { } }

Fix:
FixedBitSet verify = bits . clone ( ) ;
Buggy code:
public class JMSTopicRemove extends AbstractJMSSubsystemUpdate < Void > { private static final long serialVersionUID = 141328949523686903L ; private final String topicName ; public JMSTopicRemove ( final String topicName ) { } protected void applyUpdate ( JMSSubsystemElement element ) throws UpdateFailedException { } protected < P > void applyUpdate ( UpdateContext context , UpdateResultHandler < ? super Void , P > handler , P param ) { <START_BUG> final ServiceController < ? > service = context . getServiceContainer ( ) . getService ( JMS_TOPIC_BASE . append ( topicName ) ) ; <END_BUG> if ( service == null ) { handler . handleSuccess ( null , param ) ; } else { service . addListener ( new UpdateResultHandler . ServiceRemoveListener < P > ( handler , param ) ) ; } } public AbstractSubsystemUpdate < JMSSubsystemElement , ? > getCompensatingUpdate ( JMSSubsystemElement original ) { } }

Fix:
final ServiceController < ? > service = context . getServiceRegistry ( ) . getService ( JMS_TOPIC_BASE . append ( topicName ) ) ;