nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Addition { private String yesOrNo ; private Scanner userInput = new Scanner ( System . in ) ; Decide userDecision = new Decide ( ) ; public void decide ( ) { } private void one ( ) { } private void two ( ) { } private void three ( ) { } private int recursiveLoop ( int firstInt , int secondInt , int answer ) { } private void repeat ( ) { System . out . println ( "Do<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>keep<seq2seq4repair_space>going?" ) ; System . out . println ( "Yes<seq2seq4repair_space>to<seq2seq4repair_space>continue.<seq2seq4repair_space>No<seq2seq4repair_space>to<seq2seq4repair_space>quit.\n" ) ; System . out . println ( "Type<seq2seq4repair_space>\'menu\'<seq2seq4repair_space>to<seq2seq4repair_space>return<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>menu<seq2seq4repair_space>\nor<seq2seq4repair_space>\'home\'<seq2seq4repair_space>to<seq2seq4repair_space>go<seq2seq4repair_space>back<seq2seq4repair_space>and<seq2seq4repair_space>choose<seq2seq4repair_space>a<seq2seq4repair_space>different<seq2seq4repair_space>problem" ) ; yesOrNo = userInput . nextLine ( ) ; if ( yesOrNo . equalsIgnoreCase ( "yes" ) ) <START_BUG> one ( ) ; <END_BUG> if ( yesOrNo . equalsIgnoreCase ( "no" ) ) return ; if ( yesOrNo . equalsIgnoreCase ( "menu" ) ) decide ( ) ; if ( yesOrNo . equalsIgnoreCase ( "home" ) ) userDecision . startUp ( ) ; } No newline ; at end ; of file ; }

Fix:
decide ( ) ;
Buggy code:
public class Window { private Integer timestamp ; private ArrayList < Double > values ; private Double minValue ; public Window ( ) { } public void addValue ( double value ) { } public ArrayList < Double > getValues ( ) { } public void setTimestamp ( Integer timestamp ) { } public Integer getTimestamp ( ) { } public void printInfo ( ) { } public void printData ( ) { } public Double calculateDistance ( Window otherWindow ) { ArrayList < Double > otherWindowValues = otherWindow . getValues ( ) ; double [ ] [ ] cache = new double [ this . values . size ( ) ] [ otherWindowValues . size ( ) ] ; for ( int i = 1 ; i < ( this . values . size ( ) ) ; i ++ ) { for ( int j = 1 ; j < ( otherWindowValues . size ( ) ) ; j ++ ) { Vector < Double > tmp = new Vector < Double > ( ) ; tmp . add ( this . getCacheElement ( cache , ( i - 1 ) , j ) ) ; tmp . add ( this . getCacheElement ( cache , ( i - 1 ) , ( j - 1 ) ) ) ; tmp . add ( this . getCacheElement ( cache , i , ( j - 1 ) ) ) ; <START_BUG> double d = ( Math . abs ( ( ( this . values . get ( i ) ) - ( otherWindowValues . get ( i ) ) ) ) ) + ( this . getMinOfVector ( tmp ) ) ; <END_BUG> cache [ i ] [ j ] = d ; } } return cache [ ( ( this . values . size ( ) ) - 1 ) ] [ ( ( otherWindowValues . size ( ) ) - 1 ) ] ; } public void alterAllValues ( Double alterValue ) { } public Double getDeltaValue ( ) { } private double getMinOfVector ( Vector < Double > vector ) { } private double getCacheElement ( double [ ] [ ] cache , int x , int y ) { } }

Fix:
double d = ( Math . abs ( ( ( this . values . get ( i ) ) - ( otherWindowValues . get ( j ) ) ) ) ) + ( this . getMinOfVector ( tmp ) ) ;
Buggy code:
public class QualifiedName extends Name { private Name qualifier = null ; private SimpleName name = null ; QualifiedName ( AST ast ) { } public int getNodeType ( ) { } ASTNode clone ( AST target ) { } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Name getQualifier ( ) { } public void setQualifier ( Name qualifier ) { if ( qualifier == null ) { throw new IllegalArgumentException ( ) ; } <START_BUG> replaceChild ( ( ( ASTNode ) ( this . qualifier ) ) , ( ( ASTNode ) ( qualifier ) ) , true ) ; <END_BUG> this . qualifier = qualifier ; } public SimpleName getName ( ) { } public void setName ( SimpleName name ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
replaceChild ( this . qualifier , qualifier , true ) ;
Buggy code:
public class TriggerKEBEmpty extends BasicTrigger { public TriggerKEBEmpty ( ) { } @ Override public boolean isTriggerActive ( TileEntity target , ForgeDirection side , IStatementContainer source , IStatementParameter [ ] parameters ) { <START_BUG> return ( target instanceof TileKineticEnergyBufferBase ) && ( ( ( ( TileKineticEnergyBufferBase ) ( target ) ) . getEnergyLevel ( ) ) == 0 ) ; <END_BUG> } }

Fix:
return ( target instanceof TileKineticEnergyBufferBase ) && ( ( ( ( TileKineticEnergyBufferBase ) ( target ) ) . getEnergyStored ( UNKNOWN ) ) == 0 ) ;
Buggy code:
public class FilteredReadResourceTestCase extends AbstractRbacTestBase { public static final String UNCONSTRAINED_RESOURCE = "unconstrained-resource" ; public static final String SENSITIVE_CONSTRAINED_RESOURCE = "sensitive-constrained-resource" ; public static final String FOO = "foo" ; public static final String BAR = "bar" ; @ Before public void setup ( ) { } @ Test public void testMonitor ( ) { } @ Test public void testOperator ( ) { } @ Test public void testMaintainer ( ) { } @ Test public void testAdministrator ( ) { } @ Test public void testAuditor ( ) { } @ Test public void testSuperuser ( ) { } @ Test public void testMonitorOperator ( ) { } @ Test public void testMonitorAdministrator ( ) { } @ Test public void testAdministratorAuditor ( ) { } private void test ( boolean sensitiveResourceVisible , StandardRole ... roles ) { ModelNode operation = Util . createOperation ( READ_RESOURCE_OPERATION , PathAddress . EMPTY_ADDRESS ) ; operation . get ( RECURSIVE ) . set ( true ) ; ModelNode result = executeWithRoles ( operation , roles ) ; assertEquals ( SUCCESS , result . get ( OUTCOME ) . asString ( ) ) ; assertTrue ( result . get ( RESULT , FilteredReadResourceTestCase . UNCONSTRAINED_RESOURCE ) . has ( FilteredReadResourceTestCase . FOO ) ) ; assertTrue ( result . get ( RESULT , FilteredReadResourceTestCase . UNCONSTRAINED_RESOURCE ) . has ( FilteredReadResourceTestCase . BAR ) ) ; assertEquals ( sensitiveResourceVisible , result . get ( RESULT , FilteredReadResourceTestCase . SENSITIVE_CONSTRAINED_RESOURCE ) . has ( FilteredReadResourceTestCase . FOO ) ) ; assertEquals ( sensitiveResourceVisible , result . get ( RESULT , FilteredReadResourceTestCase . SENSITIVE_CONSTRAINED_RESOURCE ) . has ( FilteredReadResourceTestCase . BAR ) ) ; <START_BUG> assertEquals ( ( ! sensitiveResourceVisible ) , result . get ( RESPONSE_HEADERS , "access-control" ) . get ( 0 ) . get ( "hidden-children-types" ) . get ( 0 ) . asString ( ) . equals ( FilteredReadResourceTestCase . SENSITIVE_CONSTRAINED_RESOURCE ) ) ; <END_BUG> } private static final SensitivityClassification MY_SENSITIVITY = new SensitivityClassification ( "test" , "my-sensitivity" , true , true , true ) ; private static final AccessConstraintDefinition MY_SENSITIVE_CONSTRAINT = new org . jboss . as . controller . access . constraint . management . SensitiveTargetAccessConstraintDefinition ( FilteredReadResourceTestCase . MY_SENSITIVITY ) ; @ Override protected void initModel ( Resource rootResource , ManagementResourceRegistration registration ) { } private static final class TestResourceDefinition extends SimpleResourceDefinition { private final List < AccessConstraintDefinition > constraintDefinitions ; TestResourceDefinition ( String path , AccessConstraintDefinition ... constraintDefinitions ) { } @ Override public List < AccessConstraintDefinition > getAccessConstraints ( ) { } } }

Fix:
assertEquals ( ( ! sensitiveResourceVisible ) , result . get ( RESPONSE_HEADERS , "access-control" ) . get ( 0 ) . get ( "filtered-children-types" ) . get ( 0 ) . asString ( ) . equals ( FilteredReadResourceTestCase . SENSITIVE_CONSTRAINED_RESOURCE ) ) ;
Buggy code:
public class TestCJKAnalyzer extends BaseTokenStreamTestCase { private Analyzer analyzer = new CJKAnalyzer ( TEST_VERSION_CURRENT ) ; public void testJa1 ( ) throws IOException { } public void testJa2 ( ) throws IOException { } public void testC ( ) throws IOException { } public void testFinalOffset ( ) throws IOException { } public void testMix ( ) throws IOException { } public void testMix2 ( ) throws IOException { } public void testNonIdeographic ( ) throws IOException { } public void testNonIdeographicNonLetter ( ) throws IOException { } public void testSurrogates ( ) throws IOException { } public void testReusableTokenStream ( ) throws IOException { } public void testSingleChar ( ) throws IOException { } public void testTokenStream ( ) throws IOException { } public void testChangedOffsets ( ) throws IOException { final NormalizeCharMap . Builder builder = new NormalizeCharMap . Builder ( ) ; builder . add ( "a" , "一二" ) ; builder . add ( "b" , "二三" ) ; final NormalizeCharMap norm = builder . build ( ) ; Analyzer analyzer = new Analyzer ( ) { @ Override protected TokenStreamComponents createComponents ( String fieldName , Reader reader ) { Tokenizer tokenizer = new org . apache . lucene . analysis . standard . StandardTokenizer ( TEST_VERSION_CURRENT , reader ) ; return new TokenStreamComponents ( tokenizer , new CJKBigramFilter ( tokenizer ) ) ; } @ Override <START_BUG> protected Reader initReader ( Reader reader ) { <END_BUG> return new org . apache . lucene . analysis . charfilter . MappingCharFilter ( norm , CharReader . get ( reader ) ) ; } } ; assertAnalyzesTo ( analyzer , "ab" , new String [ ] { "一二" , "二二" , "二三" } , new int [ ] { 0 , 0 , 1 } , new int [ ] { 1 , 1 , 2 } ) ; } private static class FakeStandardTokenizer extends TokenFilter { final TypeAttribute typeAtt = addAttribute ( TypeAttribute . class ) ; public FakeStandardTokenizer ( TokenStream input ) { } @ Override public boolean incrementToken ( ) throws IOException { } } public void testSingleChar2 ( ) throws Exception { } public void testRandomStrings ( ) throws Exception { } public void testRandomHugeStrings ( ) throws Exception { } public void testEmptyTerm ( ) throws IOException { } }

Fix:
protected Reader initReader ( String fieldName , Reader reader ) {
Buggy code:
public class AttributeDefinitionImpl < V_ARRAY > implements AttributeMetadataHolder < V_ARRAY > , AttributeDefinition { private final AttributeMetadata < V_ARRAY > attributeMetadata ; private final int attributeType ; private final String [ ] defaultValue ; private final Localizer localizer ; private final String [ ] optionLabels ; private final String [ ] optionValues ; public AttributeDefinitionImpl ( final AttributeMetadata < V_ARRAY > attributeMetadata , final Localizer localizer ) { } private int convertValueTypeToAttributeType ( final Class < ? > valueType ) { <START_BUG> if ( valueType . equals ( Boolean . class ) ) { <END_BUG> return AttributeDefinition . BOOLEAN ; } else if ( byte . class . equals ( valueType ) ) { return AttributeDefinition . BYTE ; } else if ( char . class . equals ( valueType ) ) { return AttributeDefinition . CHARACTER ; } else if ( double . class . equals ( valueType ) ) { return AttributeDefinition . DOUBLE ; } else if ( float . class . equals ( valueType ) ) { return AttributeDefinition . FLOAT ; } else if ( int . class . equals ( valueType ) ) { return AttributeDefinition . INTEGER ; } else if ( long . class . equals ( valueType ) ) { return AttributeDefinition . LONG ; } else if ( short . class . equals ( valueType ) ) { return AttributeDefinition . SHORT ; } else if ( attributeMetadata . getClass ( ) . equals ( PasswordAttributeMetadata . class ) ) { return AttributeDefinition . PASSWORD ; } else { return AttributeDefinition . STRING ; } } private String [ ] createDefaultValueArray ( ) { } @ Override public int getCardinality ( ) { } @ Override public String [ ] getDefaultValue ( ) { } @ Override public String getDescription ( ) { } @ Override public String getID ( ) { } @ Override public AttributeMetadata < V_ARRAY > getMetadata ( ) { } @ Override public String getName ( ) { } @ Override public String [ ] getOptionLabels ( ) { } @ Override public String [ ] getOptionValues ( ) { } @ Override public int getType ( ) { } @ Override public String validate ( final String value ) { } }

Fix:
if ( boolean . class . equals ( valueType ) ) {
Buggy code:
public class BinaryResponseParser extends ResponseParser { public String getWriterType ( ) { } public NamedList < Object > processResponse ( InputStream body , String encoding ) { } public String getVersion ( ) { <START_BUG> return "1" ; <END_BUG> } public NamedList < Object > processResponse ( Reader reader ) { } }

Fix:
return "2" ;
Buggy code:
public class BindingJacksonJsonView extends AbstractView { public static final String DEFAULT_CONTENT_TYPE = "application//json" ; private ObjectMapper objectMapper = new ObjectMapper ( ) ; private JsonEncoding encoding = JsonEncoding . UTF8 ; private boolean prefixJson = false ; private Set < String > renderedAttributes ; public BindingJacksonJsonView ( ) { } public void setObjectMapper ( ObjectMapper objectMapper ) { } public void setEncoding ( JsonEncoding encoding ) { } public void setPrefixJson ( boolean prefixJson ) { } public void setRenderedAttributes ( Set < String > renderedAttributes ) { } @ Override protected void prepareResponse ( HttpServletRequest request , HttpServletResponse response ) { } @ Override protected void renderMergedOutputModel ( Map < String , Object > model , HttpServletRequest request , HttpServletResponse response ) throws Exception { } protected Map < String , Object > filterModel ( Map < String , Object > model ) { Map < String , Object > result = new HashMap < String , Object > ( model . size ( ) ) ; Set < String > renderedAttributes = ( ! ( CollectionUtils . isEmpty ( this . renderedAttributes ) ) ) ? this . renderedAttributes : model . keySet ( ) ; for ( Map . Entry < String , Object > entry : model . entrySet ( ) ) { <START_BUG> if ( ( ! ( entry instanceof BindingResult ) ) && ( renderedAttributes . contains ( entry . getKey ( ) ) ) ) { <END_BUG> result . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } } return result ; } }

Fix:
if ( ( ! ( ( entry . getValue ( ) ) instanceof BindingResult ) ) && ( renderedAttributes . contains ( entry . getKey ( ) ) ) ) {
Buggy code:
public class RollingFileAppender extends FileAppender { Logger logger = Logger . getLogger ( RollingFileAppender . class ) ; File activeFile ; TriggeringPolicy triggeringPolicy ; RollingPolicy rollingPolicy ; public RollingFileAppender ( ) { } public void activateOptions ( ) { } public void rollover ( ) { <START_BUG> this . closeFile ( ) ; <END_BUG> rollingPolicy . rollover ( ) ; fileName = rollingPolicy . getActiveLogFileName ( ) ; logger . debug ( ( ( "Active<seq2seq4repair_space>file<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>[" + ( fileName ) ) + "]." ) ) ; activeFile = new File ( fileName ) ; try { this . setFile ( fileName , false , bufferedIO , bufferSize ) ; } catch ( IOException e ) { errorHandler . error ( ( ( "setFile(" + ( fileName ) ) + ",<seq2seq4repair_space>false)<seq2seq4repair_space>call<seq2seq4repair_space>failed." ) , e , ErrorCode . FILE_OPEN_FAILURE ) ; } } protected void subAppend ( LoggingEvent event ) { } public RollingPolicy getRollingPolicy ( ) { } public TriggeringPolicy getTriggeringPolicy ( ) { } public void setRollingPolicy ( RollingPolicy policy ) { } public void setTriggeringPolicy ( TriggeringPolicy policy ) { } }

Fix:
this . closeWriter ( ) ;
Buggy code:
public class MainActivity extends BaseActivity implements OnClickListener { private static final String TAG = MainActivity . class . getSimpleName ( ) ; private Activity mActivity ; private Context mContext ; private ImageView ivBanner ; private Button btnLearn ; private Button btnRewards ; private Button btnExtras ; private boolean isInitLaunch = false ; private ShareAppUtil shareApp ; private SharedPref sharedPref ; private Handler mHandler ; private int prevBannerId = 0 ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void getIds ( ) { } private void speakInstructions ( ) { } private void startAnimations ( ) { } @ Override public void onClick ( View v ) { } private void prepareMusicToChange ( ) { } private void dialog ( ) { } private void setDefaultLevelSettings ( ) { sharedPref . setPref ( PREF_DEFAULT_LV_SETTINGS , true ) ; for ( int i = 0 ; i < 12 ; i ++ ) { String strPrefNameUnlock = LV_UNLOCKED . concat ( ( "_" + i ) ) ; if ( i < 4 ) { sharedPref . setPref ( strPrefNameUnlock , true ) ; } else { if ( Constants . DEBUG ) { <START_BUG> sharedPref . setPref ( strPrefNameUnlock , true ) ; <END_BUG> } else { sharedPref . setPref ( strPrefNameUnlock , false ) ; } } } if ( ( Constants . DEBUG ) && ( Constants . DEBUG_HIGH_VERBOSITY ) ) { for ( int i = 0 ; i < 12 ; i ++ ) { String strPrefNameUnlock = LV_UNLOCKED . concat ( ( "_" + i ) ) ; Logger . d ( MainActivity . TAG , ( ( ( "lv<seq2seq4repair_space>" + i ) + ":<seq2seq4repair_space>" ) + ( sharedPref . getBooleanPref ( strPrefNameUnlock , false ) ) ) ) ; } } } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override protected void onResume ( ) { } @ Override protected void onPause ( ) { } @ Override public void onBackPressed ( ) { } }

Fix:
sharedPref . setPref ( strPrefNameUnlock , false ) ;
Buggy code:
public class A5 extends TranslatorBlock { public A5 ( Long blockId , Translator translator , String codePrefix , String codeSuffix , String label ) { } @ Override public String toCode ( ) throws SocketNullException { <START_BUG> return ( ( codePrefix ) + "6" ) + ( codeSuffix ) ; <END_BUG> } }

Fix:
return ( ( codePrefix ) + "5" ) + ( codeSuffix ) ;
Buggy code:
public class DB_Check { public static final String copyrightNotice = Copyright . SHORT_2004 ; public static void doChecks ( Connection conn ) throws SQLException { Statement stmt = conn . createStatement ( ) ; ResultSet rs = stmt . executeQuery ( ( "SELECT<seq2seq4repair_space>CS.CONSTRAINTNAME,<seq2seq4repair_space>" + ( ( "CS.TABLEID,<seq2seq4repair_space>CS.SCHEMAID,<seq2seq4repair_space>CK.CHECKDEFINITION<seq2seq4repair_space>FROM<seq2seq4repair_space>SYS.SYSCONSTRAINTS<seq2seq4repair_space>CS,<seq2seq4repair_space>" + "SYS.SYSCHECKS<seq2seq4repair_space>CK<seq2seq4repair_space>WHERE<seq2seq4repair_space>CS.CONSTRAINTID<seq2seq4repair_space>=<seq2seq4repair_space>" ) + "CK.CONSTRAINTID<seq2seq4repair_space>AND<seq2seq4repair_space>CS.STATE<seq2seq4repair_space>!=<seq2seq4repair_space>'D'<seq2seq4repair_space>ORDER<seq2seq4repair_space>BY<seq2seq4repair_space>CS.TABLEID" ) ) ) ; boolean firstTime = true ; while ( rs . next ( ) ) { String tableId = rs . getString ( 2 ) ; String tableName = dblook . lookupTableId ( tableId ) ; if ( dblook . isExcludedTable ( tableName ) ) continue ; if ( firstTime ) { Logs . reportString ( "----------------------------------------------" ) ; <START_BUG> Logs . reportMessage ( "CSLOOK_Header" , "checks" ) ; <END_BUG> Logs . reportString ( "----------------------------------------------\n" ) ; } StringBuffer chkString = DB_Check . createCheckString ( tableName , rs ) ; Logs . writeToNewDDL ( chkString . toString ( ) ) ; Logs . writeStmtEndToNewDDL ( ) ; Logs . writeNewlineToNewDDL ( ) ; firstTime = false ; } stmt . close ( ) ; rs . close ( ) ; return ; } private static StringBuffer createCheckString ( String tableName , ResultSet aCheck ) throws SQLException { } }

Fix:
Logs . reportMessage ( "CSLOOK_ChecksHeader" ) ;
Buggy code:
public class MostRecentlyUsedMap < K , V > extends LinkedHashMap < K , V > { private static final long serialVersionUID = 1L ; protected V removedValue ; private final int maxEntries ; public MostRecentlyUsedMap ( final int maxEntries ) { } <START_BUG> public Object getRemovedValue ( ) { <END_BUG> return removedValue ; } @ Override protected boolean removeEldestEntry ( final Map . Entry < K , V > eldest ) { } }

Fix:
public V getRemovedValue ( ) {
Buggy code:
public class ExpressionState { private final EvaluationContext relatedContext ; private Stack < ExpressionState . VariableScope > variableScopes ; private Stack < TypedValue > contextObjects ; private final TypedValue rootObject ; private SpelParserConfiguration configuration ; public ExpressionState ( EvaluationContext context ) { } public ExpressionState ( EvaluationContext context , SpelParserConfiguration configuration ) { } public ExpressionState ( EvaluationContext context , TypedValue rootObject ) { } public ExpressionState ( EvaluationContext context , TypedValue rootObject , SpelParserConfiguration configuration ) { } private void ensureVariableScopesInitialized ( ) { } public TypedValue getActiveContextObject ( ) { } public void pushActiveContextObject ( TypedValue obj ) { } public void popActiveContextObject ( ) { } public TypedValue getRootContextObject ( ) { } public void setVariable ( String name , Object value ) { } public TypedValue lookupVariable ( String name ) { } public TypeComparator getTypeComparator ( ) { } public Class < ? > findType ( String type ) throws EvaluationException { } public Object convertValue ( Object value , TypeDescriptor targetTypeDescriptor ) throws EvaluationException { } public Object convertValue ( TypedValue value , TypeDescriptor targetTypeDescriptor ) throws EvaluationException { <START_BUG> return this . relatedContext . getTypeConverter ( ) . convertValue ( value . getValue ( ) , TypeDescriptor . forObject ( value . getValue ( ) ) , targetTypeDescriptor ) ; <END_BUG> } public void enterScope ( Map < String , Object > argMap ) { } public void enterScope ( String name , Object value ) { } public void exitScope ( ) { } public void setLocalVariable ( String name , Object value ) { } public Object lookupLocalVariable ( String name ) { } public TypedValue operate ( Operation op , Object left , Object right ) throws EvaluationException { } public List < PropertyAccessor > getPropertyAccessors ( ) { } public EvaluationContext getEvaluationContext ( ) { } public SpelParserConfiguration getConfiguration ( ) { } private static class VariableScope { private final Map < String , Object > vars = new HashMap < String , Object > ( ) ; public VariableScope ( ) { } public VariableScope ( Map < String , Object > arguments ) { } public VariableScope ( String name , Object value ) { } public Object lookupVariable ( String name ) { } public void setVariable ( String name , Object value ) { } public boolean definesVariable ( String name ) { } } }

Fix:
return this . relatedContext . getTypeConverter ( ) . convertValue ( value . getValue ( ) , targetTypeDescriptor ) ;
Buggy code:
public class XMPPNamespace extends Namespace { private static final long serialVersionUID = 3257569499003041590L ; private static final String XMPP_PROTOCOL = "xmpp" ; <START_BUG> public ID createInstance ( Class [ ] argTypes , Object [ ] args ) throws IDCreateException { <END_BUG> try { return new XMPPID ( this , ( ( String ) ( args [ 0 ] ) ) ) ; } catch ( Exception e ) { throw new IDCreateException ( "XMPP<seq2seq4repair_space>ID<seq2seq4repair_space>creation<seq2seq4repair_space>exception" , e ) ; } } public String getScheme ( ) { } }

Fix:
public ID createInstance ( Object [ ] args ) throws IDCreateException {
Buggy code:
public class TownScene extends Scene { public static final SceneID ID = SceneID . TOWN ; private static final int BUTTON_WIDTH = 200 ; private static final int BUTTON_HEIGHT = 60 ; private Party party ; private LocationNode location ; private Button trailButton ; public TownScene ( Party party , LocationNode location ) { } @ Override public void init ( GameContainer container , StateBasedGame game ) throws SlickException { super . init ( container , game ) ; Font h1 = FontStore . get ( H1 ) ; Font h2 = FontStore . get ( H2 ) ; Font fieldFont = FontStore . get ( FIELD ) ; <START_BUG> Label titleLabel = new Label ( container , h1 , Color . white , location . getLocationName ( ) ) ; <END_BUG> Label subtitleLabel = new Label ( container , h2 , Color . white , "Press<seq2seq4repair_space>Enter<seq2seq4repair_space>to<seq2seq4repair_space>Go<seq2seq4repair_space>to<seq2seq4repair_space>Store" ) ; trailButton = new Button ( container , TownScene . BUTTON_WIDTH , TownScene . BUTTON_HEIGHT , new Label ( container , fieldFont , Color . white , "Go<seq2seq4repair_space>To<seq2seq4repair_space>Trail" ) ) ; trailButton . addListener ( new TownScene . ButtonListener ( ) ) ; mainLayer . add ( trailButton , mainLayer . getPosition ( BOTTOMCENTER ) , TOPCENTER , 0 , ( - 100 ) ) ; mainLayer . add ( titleLabel , mainLayer . getPosition ( CENTERCENTER ) , Positionable . ReferencePoint . BOTTOMCENTER , 0 , ( - 5 ) ) ; mainLayer . add ( subtitleLabel , titleLabel . getPosition ( Positionable . ReferencePoint . BOTTOMCENTER ) , TOPCENTER , 0 , 5 ) ; backgroundLayer . add ( new component . Panel ( container , new Color ( 16004 ) ) ) ; } @ Override public void update ( GameContainer container , StateBasedGame game , int delta ) throws SlickException { } @ Override public void enter ( GameContainer container , StateBasedGame game ) { } @ Override public void keyReleased ( int key , char c ) { } @ Override public int getID ( ) { } private class ButtonListener implements ComponentListener { public void componentActivated ( AbstractComponent source ) { } } }

Fix:
Label titleLabel = new Label ( container , h1 , Color . white , location . getName ( ) ) ;
Buggy code:
public class SavableComponent extends AbstractSavable { private final ChainBuilder chainBuilder ; private final SupplyChain supplyChain ; public SavableComponent ( ChainBuilder chainBuilder ) { } public void unregisterChainBuilder ( ) { } @ Override protected String findDisplayName ( ) { } @ Override protected void handleSave ( ) throws IOException { if ( chainBuilder . validate ( ) ) { if ( ( supplyChain . getFilepath ( ) ) != null ) { NotifyDescriptor dd = new NotifyDescriptor . Confirmation ( "Would<seq2seq4repair_space>you<seq2seq4repair_space>like<seq2seq4repair_space>to<seq2seq4repair_space>overwrite<seq2seq4repair_space>the<seq2seq4repair_space>existing<seq2seq4repair_space>supply<seq2seq4repair_space>chain<seq2seq4repair_space>file?" ) ; dd . setMessageType ( YES_NO_CANCEL_OPTION ) ; Object retval = DialogDisplayer . getDefault ( ) . notify ( dd ) ; if ( retval . equals ( YES_OPTION ) ) { <START_BUG> supplyChain . setFilepath ( ( ( ( supplyChain . getFilepath ( ) ) + ( File . separator ) ) + ( supplyChain . getName ( ) ) ) ) ; <END_BUG> supplyChain . saveToFile ( ) ; } else if ( retval . equals ( NO_OPTION ) ) { openFileChooser ( ) ; } } else { openFileChooser ( ) ; } } else { DialogDescriptor dialogDescriptor = new DialogDescriptor ( ( ( "The<seq2seq4repair_space>supply<seq2seq4repair_space>chain<seq2seq4repair_space>" + ( supplyChain . getName ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>invalid.<seq2seq4repair_space>An<seq2seq4repair_space>invalid<seq2seq4repair_space>supply<seq2seq4repair_space>chain<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>saved.<seq2seq4repair_space>Please<seq2seq4repair_space>close<seq2seq4repair_space>the<seq2seq4repair_space>window<seq2seq4repair_space>and<seq2seq4repair_space>make<seq2seq4repair_space>the<seq2seq4repair_space>supply<seq2seq4repair_space>chain<seq2seq4repair_space>valid." ) , "Error<seq2seq4repair_space>while<seq2seq4repair_space>saving" ) ; dialogDescriptor . setMessageType ( PLAIN_MESSAGE ) ; dialogDescriptor . setOptions ( new Object [ ] { DialogDescriptor . OK_OPTION } ) ; Object retval = DialogDisplayer . getDefault ( ) . notify ( dialogDescriptor ) ; if ( retval . equals ( OK_OPTION ) ) { throw new nl . fontys . sofa . limo . view . InvalidSupplyChainException ( ( ( "The<seq2seq4repair_space>supply<seq2seq4repair_space>chain<seq2seq4repair_space>" + ( supplyChain . getName ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>invalid." ) ) ; } } } private void openFileChooser ( ) throws HeadlessException , IOException { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } }

Fix:
supplyChain . setFilepath ( supplyChain . getFilepath ( ) ) ;
Buggy code:
public class JavaTest extends BuildFileTest { private static final int TIME_TO_WAIT = 4 ; private static final int SECURITY_MARGIN = 1000 ; private boolean runFatalTests = false ; public JavaTest ( String name ) { } public void setUp ( ) { } public void tearDown ( ) { } public void testNoJarNoClassname ( ) { } public void testJarNoFork ( ) { } public void testJarAndClassName ( ) { } public void testClassnameAndJar ( ) { } public void testRun ( ) { } public void testRunFail ( ) { } public void testRunFailFoe ( ) { } public void testRunFailFoeFork ( ) { } public void testExcepting ( ) { } public void testExceptingFork ( ) { } public void testExceptingFoe ( ) { } public void testExceptingFoeFork ( ) { } public void testResultPropertyZero ( ) { } public void testResultPropertyNonZero ( ) { executeTarget ( "testResultPropertyNonZero" ) ; <START_BUG> assertEquals ( "-1" , project . getProperty ( "exitcode" ) ) ; <END_BUG> } public void testSpawn ( ) { } public static class EntryPoint { public static void main ( String [ ] argv ) { } } public static class ExceptingEntryPoint { public static void main ( String [ ] argv ) { } } public static class SpawnEntryPoint { public static void main ( String [ ] argv ) { } } }

Fix:
assertEquals ( "2" , project . getProperty ( "exitcode" ) ) ;
Buggy code:
public class StatisticContainer implements Renderable { private Strength strength ; private Agility agility ; private Hardiness hardiness ; private Intellect intellect ; private Movement movement ; private Experience experience ; private LivesLeft livesLeft ; private Level level ; private Life life ; private Mana mana ; private OffensiveRating offensiveRating ; private DefensiveRating defensiveRating ; private ArmorRating armorRating ; public StatisticContainer ( ) { } public Strength getStrength ( ) { } public Agility getAgility ( ) { } public Hardiness getHardiness ( ) { } public Intellect getIntellect ( ) { } public Movement getMovement ( ) { } public Experience getExperience ( ) { } public LivesLeft getLivesLeft ( ) { } public Level getLevel ( ) { } public Life getLife ( ) { } public Mana getMana ( ) { } public OffensiveRating getOffensiveRating ( ) { } public void setWeaponDamage ( Double damage ) { } public DefensiveRating getDefensiveRating ( ) { } public ArmorRating getArmorRating ( ) { } public void setArmorValue ( double armorValue ) { } @ Override public Decal [ ] [ ] getRenderable ( ) { } public Decal [ ] [ ] getStageRenderable ( ) { Decal [ ] [ ] rendrend = new Decal [ 6 ] [ ] ; rendrend [ 0 ] = combineWithSpacing ( renderizeOnStageUnary ( getStrength ( ) ) , renderizeOnStageBinary ( getLife ( ) ) , 25 ) ; rendrend [ 1 ] = combineWithSpacing ( renderizeOnStageUnary ( getAgility ( ) ) , renderizeOnStageBinary ( getMana ( ) ) , 25 ) ; rendrend [ 2 ] = combineWithSpacing ( renderizeOnStageUnary ( getHardiness ( ) ) , renderizeOnStageUnary ( getOffensiveRating ( ) ) , 25 ) ; rendrend [ 3 ] = combineWithSpacing ( renderizeOnStageUnary ( getIntellect ( ) ) , renderizeOnStageUnary ( getDefensiveRating ( ) ) , 25 ) ; <START_BUG> rendrend [ 4 ] = combineWithSpacing ( renderizeOnStageUnary ( getMovement ( ) ) , renderizeOnStageUnary ( getDefensiveRating ( ) ) , 25 ) ; <END_BUG> rendrend [ 5 ] = combineWithSpacing ( renderizeOnStageUnary ( getExperience ( ) ) , renderizeOnStageUnary ( getLivesLeft ( ) ) , 25 ) ; return rendrend ; } public Decal [ ] renderize ( Statistic stat ) { } public Decal [ ] renderizeOnStageBinary ( Statistic stat ) { } public Decal [ ] renderizeOnStageUnary ( Statistic stat ) { } public Decal [ ] combine ( Decal [ ] first , Decal [ ] second ) { } public Decal [ ] combineWithSpacing ( Decal [ ] first , Decal [ ] second , int amtOfSpaces ) { } }

Fix:
rendrend [ 4 ] = combineWithSpacing ( renderizeOnStageUnary ( getMovement ( ) ) , renderizeOnStageUnary ( getArmorRating ( ) ) , 25 ) ;
Buggy code:
class BSHReturnStatement extends SimpleNode implements ParserConstants { public int kind ; BSHReturnStatement ( int id ) { } public Object eval ( CallStack callstack , Interpreter interpreter ) throws EvalError { Object value ; if ( ( jjtGetNumChildren ( ) ) > 0 ) value = ( ( SimpleNode ) ( jjtGetChild ( 0 ) ) ) . eval ( callstack , interpreter ) ; else value = Primitive . VOID ; <START_BUG> return new ReturnControl ( kind , value ) ; <END_BUG> } }

Fix:
return new ReturnControl ( kind , value , this ) ;
Buggy code:
public class FrgCurrentOrder extends CommonFragment { private RecyclerView recyclerView ; private OpenOrderAdapter adapter ; private ArrayList < Order > orderList ; private TextView tvNoCurrentOrder ; @ Override public void onCreate ( @ Nullable Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; <START_BUG> orderList = AppContext . getWritableDatabase ( ) . getOrderList ( ) ; <END_BUG> } @ Nullable @ Override public View onCreateView ( final LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onResume ( ) { } @ Override public String getTitle ( ) { } No newline ; at end ; of file ; }

Fix:
orderList = AppContext . getWritableDatabase ( ) . getCurrentOrderList ( ) ;
Buggy code:
public class DoStatement extends Statement { private Expression expression = null ; private Statement body = null ; DoStatement ( AST ast ) { } public int getNodeType ( ) { } ASTNode clone ( AST target ) { DoStatement result = new DoStatement ( target ) ; result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <START_BUG> result . setLeadingComment ( getLeadingComment ( ) ) ; <END_BUG> result . setExpression ( ( ( Expression ) ( getExpression ( ) . clone ( target ) ) ) ) ; result . setBody ( ( ( Statement ) ( getBody ( ) . clone ( target ) ) ) ) ; return result ; } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Expression getExpression ( ) { } public void setExpression ( Expression expression ) { } public Statement getBody ( ) { } public void setBody ( Statement statement ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . copyLeadingComment ( this ) ;
Buggy code:
public class AgentClient { private static final ILogger log = Logger . getLogger ( AgentClient . class ) ; final String publicAddress ; final String privateIp ; public AgentClient ( AgentAddress address ) { } public String getPublicAddress ( ) { } public String getPrivateIp ( ) { } Object execute ( AgentRemoteService . Service service , Object ... args ) throws Exception { } private Socket newSocket ( ) throws IOException { ConnectException connectException = null ; for ( int k = 0 ; k < 30 ; k ++ ) { try { InetAddress hostAddress = InetAddress . getByName ( publicAddress ) ; return new Socket ( hostAddress , AgentRemoteService . PORT ) ; } catch ( ConnectException e ) { if ( k < 10 ) { AgentClient . log . finest ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>public<seq2seq4repair_space>address:<seq2seq4repair_space>" + ( publicAddress ) ) + "<seq2seq4repair_space>sleeping<seq2seq4repair_space>for<seq2seq4repair_space>1<seq2seq4repair_space>second<seq2seq4repair_space>and<seq2seq4repair_space>trying<seq2seq4repair_space>again" ) ) ; } else { <START_BUG> AgentClient . log . finest ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>public<seq2seq4repair_space>address:<seq2seq4repair_space>" + ( publicAddress ) ) + "<seq2seq4repair_space>sleeping<seq2seq4repair_space>for<seq2seq4repair_space>1<seq2seq4repair_space>second<seq2seq4repair_space>and<seq2seq4repair_space>trying<seq2seq4repair_space>again" ) ) ; <END_BUG> } Utils . sleepSeconds ( 1 ) ; connectException = e ; } catch ( IOException e ) { throw new IOException ( ( ( ( "Couldn't<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>publicAddress:<seq2seq4repair_space>" + ( publicAddress ) ) + ":" ) + ( AgentRemoteService . PORT ) ) , e ) ; } } throw new IOException ( ( ( ( "Couldn't<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>publicAddress:<seq2seq4repair_space>" + ( publicAddress ) ) + ":" ) + ( AgentRemoteService . PORT ) ) , connectException ) ; } @ Override public String toString ( ) { } No newline ; at end ; of file ; }

Fix:
AgentClient . log . warning ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>public<seq2seq4repair_space>address:<seq2seq4repair_space>" + ( publicAddress ) ) + "<seq2seq4repair_space>sleeping<seq2seq4repair_space>for<seq2seq4repair_space>1<seq2seq4repair_space>second<seq2seq4repair_space>and<seq2seq4repair_space>trying<seq2seq4repair_space>again" ) ) ;
Buggy code:
public class StateDiagramGraph extends Graph { private static final Node [ ] NODE_PROTOTYPES = new Node [ ] { new StateNode ( ) , new CircularStateNode ( ) , new CircularStateNode ( ) , new NoteNode ( ) } ; private static final Edge [ ] EDGE_PROTOTYPES = new Edge [ ] { new StateTransitionEdge ( ) , new NoteEdge ( ) } ; @ Override public Node [ ] getNodePrototypes ( ) { } @ Override public Edge [ ] getEdgePrototypes ( ) { } @ Override public String getFileExtension ( ) { } @ Override public String getDescription ( ) { } @ Override public boolean connect ( Edge pEdge , Point2D pPoint1 , Point2D pPoint2 ) { Node n1 = findNode ( pPoint1 ) ; Node n2 = findNode ( pPoint2 ) ; if ( n1 != null ) { if ( n1 instanceof CircularStateNode ) { CircularStateNode end = ( ( CircularStateNode ) ( n1 ) ) ; if ( end . isFinal ( ) ) { return false ; } <START_BUG> } else <END_BUG> if ( n2 instanceof CircularStateNode ) { CircularStateNode begin = ( ( CircularStateNode ) ( n2 ) ) ; if ( ! ( begin . isFinal ( ) ) ) { return false ; } } } return super . connect ( pEdge , pPoint1 , pPoint2 ) ; } }

Fix:
}
Buggy code:
public class TimestampVersionStrategy extends ColumnVersionStrategy { public static final String ALIAS = "timestamp" ; public String getAlias ( ) { } protected int getJavaType ( ) { } protected Object nextVersion ( Object version ) { } public Map getBulkUpdateValues ( ) { Column [ ] cols = vers . getColumns ( ) ; Map map = new HashMap ( cols . length ) ; <START_BUG> Date d = new Date ( ) ; <END_BUG> for ( int i = 0 ; i < ( cols . length ) ; i ++ ) map . put ( cols [ i ] , d ) ; return map ; } }

Fix:
Object d = nextVersion ( null ) ;
Buggy code:
public class ArticleDaoImpl extends AbstractDao < Article , Integer > implements ArticleDao { public List < Article > findLastArticles ( ) { } public List < Article > findSearchedArticles ( List < String > listRequest ) { EntityManager em = getEntityManager ( ) ; EntityTransaction t = em . getTransaction ( ) ; List < Article > articleList = null ; String req = "SELECT<seq2seq4repair_space>a<seq2seq4repair_space>FROM<seq2seq4repair_space>Article<seq2seq4repair_space>a<seq2seq4repair_space>WHERE<seq2seq4repair_space>1=1" ; for ( String elem : listRequest ) { req = ( ( req + "<seq2seq4repair_space>AND<seq2seq4repair_space>articleTitle<seq2seq4repair_space>LIKE<seq2seq4repair_space>'%" ) + elem ) + "%'" ; } try { t . begin ( ) ; TypedQuery < Article > query = em . createQuery ( req , Article . class ) ; <START_BUG> query . setMaxResults ( 33 ) ; <END_BUG> articleList = query . getResultList ( ) ; t . commit ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { if ( t . isActive ( ) ) { t . rollback ( ) ; em . close ( ) ; } } return articleList ; } public Map < String , List < Article > > findSearchedArticles2 ( List < String > listRequest ) { } }

Fix:
query . setMaxResults ( 24 ) ;
Buggy code:
public class BackgroundImageDispatcher extends Thread { private CacheTaskQueue taskQueue ; private Repositories repositories ; private final ImageFileUtility imageFileUtil ; private volatile boolean stop = false ; public BackgroundImageDispatcher ( Repositories repositories , CacheTaskQueue taskQueue ) { } public void requestStop ( ) { } @ Override public void run ( ) { Integer lastIndex = - 1 ; while ( ! ( this . stop ) ) { List < Screenshot > toProcess = repositories . getScreenshotRepository ( ) . findNotProcessedEdge ( lastIndex ) ; for ( Screenshot s : toProcess ) { lastIndex = Math . max ( s . getId ( ) , lastIndex ) ; <START_BUG> for ( int colorIndex = - 1 ; colorIndex <= 2 ; colorIndex ++ ) { <END_BUG> String algorithm = ProcessedImageUtility . getAlgorithmNameForEdge ( colorIndex ) ; ProcessedImageKey key = new ProcessedImageKey ( s . getId ( ) , algorithm ) ; if ( repositories . getProcessedImageRepository ( ) . exists ( key ) ) continue ; addTask ( s , colorIndex , key ) ; } } try { Thread . sleep ( 10000 ) ; } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; return ; } } } private void addTask ( Screenshot s , int colorIndex , ProcessedImageKey key ) { } }

Fix:
for ( int colorIndex = - 1 ; colorIndex <= 1 ; colorIndex ++ ) {
Buggy code:
public class FontPreferencePage extends PreferencePage implements IWorkbenchPreferencePage { Hashtable namesToIds ; Hashtable idsToFontData ; List fontList ; Button changeFontButton ; Button useDefaultsButton ; private Label valueControl ; private FontPreferencePage . DefaultPreviewer previewer ; private static class DefaultPreviewer { private Text text ; private Font font ; public DefaultPreviewer ( Composite parent ) { } public Control getControl ( ) { } public void setFont ( FontData [ ] fontData ) { } public int getPreferredHeight ( ) { } } public Control createContents ( Composite parent ) { } public FontPreferencePage ( ) { } private void createFontList ( Composite firstColumn ) { } private String getSelectedFontId ( ) { } private void createChangeControl ( Composite parent , String changeButtonLabel ) { } private void createUseDefaultsControl ( Composite parent , String useSystemLabel ) { } private void createPreviewControl ( Composite parent ) { Label label = new Label ( parent , SWT . LEFT ) ; label . setText ( WorkbenchMessages . getString ( "FontsPreference.preview" ) ) ; label . setFont ( parent . getFont ( ) ) ; previewer = new FontPreferencePage . DefaultPreviewer ( parent ) ; Control control = previewer . getControl ( ) ; GridData gd = new GridData ( ) ; <START_BUG> gd . horizontalAlignment = gd . FILL ; <END_BUG> gd . grabExcessHorizontalSpace = true ; gd . heightHint = previewer . getPreferredHeight ( ) ; control . setLayoutData ( gd ) ; } private void createValueControl ( Composite parent ) { } private void updateForFont ( FontData [ ] font ) { } public void init ( IWorkbench workbench ) { } protected void performDefaults ( ) { } public boolean performOk ( ) { } }

Fix:
gd . horizontalAlignment = GridData . FILL ;
Buggy code:
public class TestIris { @ BeforeClass public static void setUpBeforeClass ( ) throws Exception { } @ AfterClass public static void tearDownAfterClass ( ) throws Exception { } @ Before public void setUp ( ) throws Exception { } @ After public void tearDown ( ) throws Exception { } @ Test public void testIrisDataProvider ( ) { } @ Test public void testOpenCL ( ) { } @ Test public void test ( ) { boolean openCL = true ; int costType = 0 ; NeuralNetwork mlp = new MultiLayerPerceptron ( new int [ ] { 4 , 33 , 3 } , true ) ; int batchSize = 150 ; IrisDataProvider tp = new IrisDataProvider ( batchSize , false ) ; <START_BUG> mlp . train ( tp , costType , 0.005F , 0.0F , 0 , 0 , 10000 , openCL ) ; <END_BUG> IrisDataProvider tp1 = new IrisDataProvider ( 150 , false ) ; float errorRate = mlp . test ( tp1 , false ) ; assertEquals ( 0 , errorRate , 0.01 ) ; } }

Fix:
mlp . train ( tp , costType , 0.5F , 0.0F , 0 , 0 , 10000 , openCL ) ;
Buggy code:
public class PerformanceTest { private final int max = 10 ; private static final File BIG_FILE = new File ( System . getProperty ( "java.io.tmpdir" ) , "worldcitiespop.txt" ) ; @ BeforeClass public static void setUpClass ( ) throws FileNotFoundException , IOException { } private BufferedReader getBufferedReader ( ) throws IOException { } private long parse ( final Reader in , boolean traverseColumns ) throws IOException { <START_BUG> final CSVFormat format = DEFAULT . withIgnoreSurroundingSpaces ( false ) ; <END_BUG> long recordCount = 0 ; for ( final CSVRecord record : format . parse ( in ) ) { recordCount ++ ; if ( traverseColumns ) { for ( String value : record ) { } } } return recordCount ; } private void println ( final String s ) { } private long readAll ( final BufferedReader in ) throws IOException { } public long testParseBigFile ( boolean traverseColumns ) throws Exception { } @ Test public void testParseBigFileRepeat ( ) throws Exception { } @ Test public void testReadBigFile ( ) throws Exception { } }

Fix:
final CSVFormat format = CSVFormat . defaults ( ) . withIgnoreSurroundingSpaces ( false ) . build ( ) ;
Buggy code:
public final class SecantSolverTest extends BaseSecantSolverAbstractTest { @ Override <START_BUG> protected UnivariateRealSolver getSolver ( ) { <END_BUG> return new SecantSolver ( ) ; } @ Override protected int [ ] getQuinticEvalCounts ( ) { } }

Fix:
protected UnivariateSolver getSolver ( ) {
Buggy code:
public class MavenBuildTest extends HudsonTestCase { @ Bug ( 4192 ) public void testMavenWorkspaceExists ( ) throws Exception { } @ Bug ( 4177 ) public void testTestFailureInEarlyTaskSegment ( ) throws Exception { configureDefaultMaven ( ) ; MavenModuleSet m = createMavenProject ( ) ; m . setGoals ( "clean<seq2seq4repair_space>install<seq2seq4repair_space>findbugs:findbugs" ) ; <START_BUG> m . setScm ( new ExtractResourceSCM ( getClass ( ) . getResource ( "maven-test-failure-findbugs.zip" ) ) ) ; <END_BUG> assertBuildStatus ( UNSTABLE , m . scheduleBuild2 ( 0 ) . get ( ) ) ; } public void testCompilationFailure ( ) throws Exception { } @ Bug ( 4226 ) public void ignore_testParallelModuleBuild ( ) throws Exception { } @ Bug ( 8395 ) public void testMaven2BuildWrongScope ( ) throws Exception { } @ Bug ( 8390 ) public void testMaven2BuildWrongInheritence ( ) throws Exception { } @ Bug ( 8445 ) public void testMaven2SeveralModulesInDirectory ( ) throws Exception { } @ Email ( "https:////groups.google.com//d//msg//hudson-users//Xhw00UopVN0//FA9YqDAIsSYJ" ) public void testMavenWithDependencyVersionInEnvVar ( ) throws Exception { } private static class TestReporter extends MavenReporter { @ Override public boolean end ( MavenBuild build , Launcher launcher , BuildListener listener ) throws IOException , InterruptedException { } } }

Fix:
m . setScm ( new org . jvnet . hudson . test . ExtractResourceSCM ( m . getClass ( ) . getResource ( "maven-test-failure-findbugs.zip" ) ) ) ;
Buggy code:
public class MethodAnnotationAggregator { public static < A extends Annotation , T > RuntimeAnnotationInformation < T > runtimeAnnotationInformation ( final Class < ? > componentClass , final EEApplicationClasses applicationClasses , final DeploymentReflectionIndex index , final Class < A > annotationType ) { } public static < A extends Annotation , T > Set < Method > runtimeAnnotationPresent ( final Class < ? > componentClass , final EEApplicationClasses applicationClasses , final DeploymentReflectionIndex index , final Class < A > annotationType ) { RuntimeAnnotationInformation < Object > result = MethodAnnotationAggregator . runtimeAnnotationInformation ( componentClass , applicationClasses , index , annotationType ) ; <START_BUG> return new HashSet < Method > ( result . getMethodAnnotations ( ) . keySet ( ) ) ; <END_BUG> } }

Fix:
return result . getMethodAnnotations ( ) . keySet ( ) ;