nus-yam/ex-repair huggingface dataset:
Buggy code:
public class ConsentServlet extends HttpServlet { private static final long serialVersionUID = 1L ; private String ErrorPage = "//ErrorPage.jsp" ; private final String SurveyPage = "//Survey.jsp" ; private final String QuestionMicrotaskPage = "//QuestionMicrotask.jsp" ; private final String SorryPage = "//SorryPage.jsp" ; private StorageStrategy storage ; public ConsentServlet ( ) { } protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } private Cookie validateWorker ( HttpServletRequest request ) { } private void loadFirstMicrotask ( HttpServletRequest request , HttpServletResponse response , Worker worker , String fileName , String page ) throws IOException , ServletException { storage = StorageStrategy . initializeSingleton ( ) ; WorkerSession session = storage . readNewSession ( worker . getWorkerId ( ) , fileName ) ; if ( ( session == null ) || ( session . isClosed ( ) ) ) <START_BUG> showErrorPage ( request , response , "@<seq2seq4repair_space>SkillTestServlet<seq2seq4repair_space>-<seq2seq4repair_space>no<seq2seq4repair_space>microtask<seq2seq4repair_space>available" ) ; <END_BUG> else { response . addCookie ( new Cookie ( "w" , worker . getWorkerId ( ) ) ) ; request . setAttribute ( "timeStamp" , TimeStampUtil . getTimeStampMillisec ( ) ) ; request . setAttribute ( "workerId" , worker . getWorkerId ( ) ) ; request . setAttribute ( "sessionId" , session . getId ( ) ) ; request = MicrotaskServlet . generateRequest ( request , storage . getNextMicrotask ( session . getId ( ) ) ) ; request . getRequestDispatcher ( page ) . forward ( request , response ) ; } } private void newWorker ( HttpServletRequest request , HttpServletResponse response , Worker worker , String fileName ) throws IOException , ServletException { } private void existingWorker ( HttpServletRequest request , HttpServletResponse response , Worker worker , String fileName ) throws IOException , ServletException { } private void surveyPage ( HttpServletRequest request , HttpServletResponse response , Worker worker , String fileName ) throws IOException , ServletException { } private void questionPage ( HttpServletRequest request , HttpServletResponse response , Worker worker , String fileName ) throws IOException , ServletException { } private void showErrorPage ( HttpServletRequest request , HttpServletResponse response , String message ) throws IOException , ServletException { } private void sorryPage ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } }

Fix:
showErrorPage ( request , response , "@ConsentServlet<seq2seq4repair_space>-<seq2seq4repair_space>no<seq2seq4repair_space>microtask<seq2seq4repair_space>available" ) ;
Buggy code:
public class BatchMoveLineHandler extends CommandHandlerWithHelp { public BatchMoveLineHandler ( ) { } @ Override public boolean isAvailable ( CommandContext ctx ) { } @ Override protected void doHandle ( CommandContext ctx ) { BatchManager batchManager = ctx . getBatchManager ( ) ; if ( ! ( batchManager . isBatchActive ( ) ) ) { ctx . printLine ( "No<seq2seq4repair_space>active<seq2seq4repair_space>batch." ) ; return ; } Batch batch = batchManager . getActiveBatch ( ) ; final int batchSize = batch . size ( ) ; if ( batchSize == 0 ) { ctx . printLine ( "The<seq2seq4repair_space>batch<seq2seq4repair_space>is<seq2seq4repair_space>empty." ) ; return ; } <START_BUG> List < String > arguments = ctx . getArguments ( ) ; <END_BUG> if ( arguments . isEmpty ( ) ) { ctx . printLine ( "Missing<seq2seq4repair_space>line<seq2seq4repair_space>number." ) ; return ; } if ( ( arguments . size ( ) ) != 2 ) { ctx . printLine ( ( "Expected<seq2seq4repair_space>two<seq2seq4repair_space>arguments<seq2seq4repair_space>but<seq2seq4repair_space>received:<seq2seq4repair_space>" + arguments ) ) ; return ; } String intStr = arguments . get ( 0 ) ; final int lineNumber ; try { lineNumber = Integer . parseInt ( intStr ) ; } catch ( NumberFormatException e ) { ctx . printLine ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>line<seq2seq4repair_space>number<seq2seq4repair_space>'" + intStr ) + "':<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } if ( ( lineNumber < 1 ) || ( lineNumber > batchSize ) ) { ctx . printLine ( ( ( ( lineNumber + "<seq2seq4repair_space>isn't<seq2seq4repair_space>in<seq2seq4repair_space>range<seq2seq4repair_space>[1.." ) + batchSize ) + "]." ) ) ; return ; } intStr = arguments . get ( 1 ) ; final int toLineNumber ; try { toLineNumber = Integer . parseInt ( intStr ) ; } catch ( NumberFormatException e ) { ctx . printLine ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>line<seq2seq4repair_space>number<seq2seq4repair_space>'" + intStr ) + "':<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } if ( ( toLineNumber < 1 ) || ( toLineNumber > batchSize ) ) { ctx . printLine ( ( ( ( toLineNumber + "<seq2seq4repair_space>isn't<seq2seq4repair_space>in<seq2seq4repair_space>range<seq2seq4repair_space>[1.." ) + batchSize ) + "]." ) ) ; return ; } batch . move ( ( lineNumber - 1 ) , ( toLineNumber - 1 ) ) ; } }

Fix:
List < String > arguments = ctx . getOtherArguments ( ) ;
Buggy code:
public class DocCheckouter implements AsyncCallback < Document > { private Editor editor ; public DocCheckouter ( ) { } public DocCheckouter ( Editor editor ) { } public void checkoutDocument ( String key , String clientId ) { } @ Override public void onFailure ( Throwable caught ) { } @ Override public void onSuccess ( Document result ) { if ( result != null ) { if ( ( this . editor ) != null ) this . editor . refresh ( result ) ; new edu . caltech . cs141b . collaborator . ui . Notification ( ( ( "Document<seq2seq4repair_space>\"" + ( result . getTitle ( ) ) ) + "\"<seq2seq4repair_space>checked<seq2seq4repair_space>out." ) ) . show ( ) ; if ( result . getSimulate ( ) ) { final Document doc = result ; final Editor editor = this . editor ; Random randomGenerator = new Random ( ) ; Timer t = new Timer ( ) { public void run ( ) { if ( editor != null ) { doc . setContents ( ( ( ( doc . getContents ( ) ) + "\n" ) + ( Main . clientId ) ) ) ; new DocCommitter ( editor ) . commitDocument ( doc , clientId ) ; new DocCheckinner ( editor ) . checkinDocument ( doc , clientId ) ; } else { new DocCommitter ( ) . commitDocument ( doc , clientId ) ; new DocCheckinner ( ) . checkinDocument ( doc , clientId ) ; } } } ; <START_BUG> t . schedule ( randomGenerator . nextInt ( 15000 ) ) ; <END_BUG> } } } No newline ; at end ; of file ; }

Fix:
t . schedule ( randomGenerator . nextInt ( mealTime ) ) ;
Buggy code:
public class PropertySetter { protected Object obj ; protected PropertyDescriptor [ ] props ; public PropertySetter ( Object obj ) { } protected void introspect ( ) { } public static void setProperties ( Object obj , Properties properties , String prefix ) { } public void setProperties ( Properties properties , String prefix ) { } public void setProperty ( String name , String value ) { } public void setProperty ( PropertyDescriptor prop , String name , String value ) throws PropertySetterException { } protected Object convertArg ( String val , Class type ) { if ( val == null ) return null ; String v = val . trim ( ) ; if ( String . class . isAssignableFrom ( type ) ) { return val ; } else if ( Integer . TYPE . isAssignableFrom ( type ) ) { return new Integer ( v ) ; } else if ( Long . TYPE . isAssignableFrom ( type ) ) { return new Long ( v ) ; } else if ( Boolean . TYPE . isAssignableFrom ( type ) ) { if ( "true" . equalsIgnoreCase ( v ) ) { return Boolean . TRUE ; } else if ( "false" . equalsIgnoreCase ( v ) ) { return Boolean . FALSE ; } } else <START_BUG> if ( Level . class . isAssignableFrom ( type ) ) { <END_BUG> return OptionConverter . toLevel ( v , Level . DEBUG ) ; } return null ; } protected PropertyDescriptor getPropertyDescriptor ( String name ) { } public void activate ( ) { } }

Fix:
if ( Priority . class . isAssignableFrom ( type ) ) {
Buggy code:
public class TextBox extends MenuWidget { private final Font font ; public String text ; public boolean hAlign ; public boolean vAlign ; public TextBox ( Font font , int x , int y , int w , int h ) { } public TextBox ( Font font , int x , int y , int w , int h , String text ) { } public TextBox ( Font font , String text , int xPos , int yPos ) { } @ Override public void render ( ) { updateBounds ( ) ; <START_BUG> font . render ( text , xPos , yPos , width , height , hAlign , vAlign ) ; <END_BUG> } }

Fix:
font . render ( text , ( ( int ) ( xPos ) ) , ( ( int ) ( yPos ) ) , ( ( int ) ( width ) ) , ( ( int ) ( height ) ) , hAlign , vAlign ) ;
Buggy code:
public class AnnotationPatternList extends PatternNode { private AnnotationTypePattern [ ] typePatterns ; int ellipsisCount = 0 ; public static final AnnotationPatternList EMPTY = new AnnotationPatternList ( new AnnotationTypePattern [ ] { } ) ; public static final AnnotationPatternList ANY = new AnnotationPatternList ( new AnnotationTypePattern [ ] { AnnotationTypePattern . ELLIPSIS } ) ; public AnnotationPatternList ( ) { } public AnnotationPatternList ( AnnotationTypePattern [ ] arguments ) { } public AnnotationPatternList ( List l ) { } public void resolve ( World inWorld ) { } public FuzzyBoolean matches ( ResolvedTypeX [ ] someArgs ) { int numArgsMatchedByEllipsis = ( ( someArgs . length ) + ( ellipsisCount ) ) - ( typePatterns . length ) ; if ( numArgsMatchedByEllipsis < 0 ) return FuzzyBoolean . NO ; if ( ( numArgsMatchedByEllipsis > 0 ) && ( ( ellipsisCount ) == 0 ) ) { return FuzzyBoolean . NO ; } FuzzyBoolean ret = FuzzyBoolean . YES ; int argsIndex = 0 ; for ( int i = 0 ; i < ( typePatterns . length ) ; i ++ ) { if ( ( typePatterns [ i ] ) == ( AnnotationTypePattern . ELLIPSIS ) ) { argsIndex += numArgsMatchedByEllipsis ; } else if ( ( typePatterns [ i ] ) == ( AnnotationTypePattern . ANY ) ) { argsIndex ++ ; } else { ExactAnnotationTypePattern ap = ( ( ExactAnnotationTypePattern ) ( typePatterns [ i ] ) ) ; FuzzyBoolean matches = ap . matches ( someArgs [ argsIndex ] ) ; if ( matches == ( FuzzyBoolean . NO ) ) { <START_BUG> return FuzzyBoolean . NO ; <END_BUG> } else { argsIndex ++ ; ret = ret . and ( matches ) ; } } } return ret ; } public int size ( ) { } public AnnotationTypePattern get ( int index ) { } public AnnotationPatternList resolveBindings ( IScope scope , Bindings bindings , boolean allowBinding ) { } public AnnotationPatternList resolveReferences ( IntMap bindings ) { } public String toString ( ) { } public boolean equals ( Object other ) { } public int hashCode ( ) { } public static AnnotationPatternList read ( DataInputStream s , ISourceContext context ) throws IOException { } public void write ( DataOutputStream s ) throws IOException { } }

Fix:
return FuzzyBoolean . MAYBE ;
Buggy code:
public class Gallery { public Result add ( com . zzti . bean . Gallery data ) { } public Result update ( com . zzti . bean . Gallery data ) { } public Result delete ( com . zzti . bean . Gallery data ) { } public TResult < com . zzti . bean . Gallery > getModel ( com . zzti . bean . Gallery data ) { } public ListResult < com . zzti . bean . Gallery > getList ( com . zzti . bean . Gallery data ) { ListResult < com . zzti . bean . Gallery > result = new ListResult < com . zzti . bean . Gallery > ( ) ; Connection conn = null ; Statement stmt = null ; ResultSet rs = null ; try { String condition = "<seq2seq4repair_space>where<seq2seq4repair_space>1=1<seq2seq4repair_space>" ; String limit = "" ; if ( ( data . getPage ( ) ) != null ) { int start = ( ( data . getPage ( ) . getPageIndex ( ) ) - 1 ) * ( data . getPage ( ) . getPageSize ( ) ) ; int num = data . getPage ( ) . getPageSize ( ) ; limit = ( ( "<seq2seq4repair_space>limit<seq2seq4repair_space>" + start ) + "," ) + num ; } if ( ( data . getCid ( ) ) > 0 ) { condition += "<seq2seq4repair_space>and<seq2seq4repair_space>cid=" + ( data . getCid ( ) ) ; } String sql = ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>Gallery<seq2seq4repair_space>" + condition ) + limit ; conn = PoolManager . getConnection ( ) ; stmt = conn . createStatement ( ) ; rs = stmt . executeQuery ( sql ) ; List < com . zzti . bean . Gallery > list = new ArrayList < com . zzti . bean . Gallery > ( ) ; while ( rs . next ( ) ) { int id = rs . getInt ( "ID" ) ; int cid = rs . getInt ( "CID" ) ; String cname = rs . getString ( "CName" ) ; String title = rs . getString ( "Title" ) ; String caption = rs . getString ( "Caption" ) ; String content = rs . getString ( "Content" ) ; String picture = rs . getString ( "Picture" ) ; Date addDate = rs . getDate ( "AddDate" ) ; Date updateDate = rs . getDate ( "UpdateDate" ) ; data = new com . zzti . bean . Gallery ( id , cid , cname , title , caption , content , picture , addDate , updateDate ) ; list . add ( data ) ; } rs . close ( ) ; <START_BUG> sql = "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>Gallery<seq2seq4repair_space>" + condition ; <END_BUG> rs = stmt . executeQuery ( sql ) ; int count = 0 ; while ( rs . next ( ) ) { count = rs . getInt ( "count" ) ; } result . setObj ( count ) ; result . setResult ( 1 ) ; result . setList ( list ) ; } catch ( SQLException e ) { e . printStackTrace ( ) ; result . setResult ( 0 ) ; result . setMessage ( e . getMessage ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; result . setResult ( 0 ) ; result . setMessage ( e . getMessage ( ) ) ; } finally { PoolManager . free ( rs , stmt , conn ) ; } return result ; } }

Fix:
sql = "select<seq2seq4repair_space>count(1)<seq2seq4repair_space>as<seq2seq4repair_space>count<seq2seq4repair_space>from<seq2seq4repair_space>Gallery<seq2seq4repair_space>" + condition ;
Buggy code:
public class MainActivity extends FragmentContainerActivity implements OnPlaylistRefreshListener { private static final String ACCOUNT_KEY = "account" ; public static final boolean SHOW_PULL_TO_REFRESH = true ; public static final boolean READER_SUPPORT = false ; private Drive mDriveService = null ; private final int REQUEST_AUTHORIZATION = 1 ; private final int REQUEST_ACCOUNT_PICKER = 0 ; private static GoogleAccountCredential mCredential ; public static PodcastService mPodcastServiceBinder = null ; public static HTTPDService mHTTPDServiceBinder = null ; static boolean mBound = false ; public static CloudProvider gReader = null ; protected static Cursor mCursor = null ; protected boolean mInit = false ; public static Account mAccount ; private AudioManager mAudioManager ; private ComponentName mRemoteControlResponder ; private SharedPreferences prefs ; private int currentTheme ; public static ServiceConnection mHTTPDServiceConnection = new ServiceConnection ( ) { @ Override public void onServiceConnected ( ComponentName className , IBinder service ) { } @ Override public void onServiceDisconnected ( ComponentName className ) { } } ; private HeadsetReceiver receiver ; @ Override public void onCreate ( Bundle savedInstanceState ) { } private void refreshTheme ( ) { } private boolean isMyServiceRunning ( String serviceName ) { } public static GoogleAccountCredential getCredentials ( ) { } @ Override protected void onActivityResult ( final int requestCode , final int resultCode , final Intent data ) { } @ Override protected void onPause ( ) { } @ Override protected void onDestroy ( ) { } @ Override public void onRefreshPlaylist ( ) { } @ Override public void onResume ( ) { } @ Override public void onLowMemory ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { switch ( item . getItemId ( ) ) { case id . menu_add : AddPodcastDialog . addPodcast ( this ) ; return true ; case id . menu_settings : <START_BUG> TransitionUtils . openSettings ( getBaseContext ( ) ) ; <END_BUG> return true ; case id . menu_refresh : PodcastDownloadManager . start_update ( this ) ; return true ; } return super . onOptionsItemSelected ( item ) ; } private Drive getDriveService ( GoogleAccountCredential credential ) { } }

Fix:
TransitionUtils . openSettings ( this ) ;
Buggy code:
public class LoginActivity extends Activity implements LoaderCallbacks < Cursor > { private AutoCompleteTextView mEmailView ; private EditText mPasswordView ; private Button mEmailSignInButton ; private View mProgressView ; private View mLoginFormView ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void populateAutoComplete ( ) { } public void attemptLogin ( ) { } private boolean isEmailValid ( String email ) { } private boolean isPasswordValid ( String password ) { } @ TargetApi ( VERSION_CODES . HONEYCOMB_MR2 ) public void showProgress ( final boolean show ) { } @ Override public Loader < Cursor > onCreateLoader ( int i , Bundle bundle ) { } @ Override public void onLoadFinished ( Loader < Cursor > cursorLoader , Cursor cursor ) { } @ Override public void onLoaderReset ( Loader < Cursor > cursorLoader ) { } private interface ProfileQuery { String [ ] PROJECTION = new String [ ] { Email . ADDRESS , Email . IS_PRIMARY } ; int ADDRESS = 0 ; int IS_PRIMARY = 1 ; } @ Override public void onBackPressed ( ) { } private void addEmailsToAutoComplete ( List < String > emailAddressCollection ) { } private void callMainActivity ( ) { <START_BUG> Intent intent = new Intent ( this , BaseActivity . class ) ; <END_BUG> startActivity ( intent ) ; finish ( ) ; } private void login ( final String email , String password ) { } }

Fix:
Intent intent = new Intent ( this , MainActivity . class ) ;
Buggy code:
public class SystemBolt implements IBolt { private static Logger LOG = LoggerFactory . getLogger ( SystemBolt . class ) ; private static boolean _prepareWasCalled = false ; private static class MemoryUsageMetric implements IMetric { IFn _getUsage ; public MemoryUsageMetric ( IFn getUsage ) { } @ Override public Object getValueAndReset ( ) { MemoryUsage memUsage = ( ( MemoryUsage ) ( _getUsage . invoke ( ) ) ) ; HashMap m = new HashMap ( ) ; m . put ( "maxBytes" , memUsage . getMax ( ) ) ; m . put ( "committedBytes" , memUsage . getCommitted ( ) ) ; m . put ( "initBytes" , memUsage . getInit ( ) ) ; m . put ( "usedBytes" , memUsage . getUsed ( ) ) ; m . put ( "virtualFreeBytes" , ( ( memUsage . getMax ( ) ) - ( memUsage . getUsed ( ) ) ) ) ; m . put ( "unusedBytes" , ( ( memUsage . getCommitted ( ) ) - ( memUsage . getUsed ( ) ) ) ) ; return m ; } } private static class GarbageCollectorMetric implements IMetric { GarbageCollectorMXBean _gcBean ; Long _collectionCount ; Long _collectionTime ; public GarbageCollectorMetric ( GarbageCollectorMXBean gcBean ) { } @ Override public Object getValueAndReset ( ) { Long collectionCountP = _gcBean . getCollectionCount ( ) ; <START_BUG> Long collectionTimeP = _gcBean . getCollectionCount ( ) ; <END_BUG> Map ret = null ; if ( ( ( _collectionCount ) != null ) && ( ( _collectionTime ) != null ) ) { ret = new HashMap ( ) ; ret . put ( "count" , ( collectionCountP - ( _collectionCount ) ) ) ; ret . put ( "timeMs" , ( collectionTimeP - ( _collectionTime ) ) ) ; } _collectionCount = collectionCountP ; _collectionTime = collectionTimeP ; return ret ; } } @ Override public void prepare ( final Map stormConf , TopologyContext context , OutputCollector collector ) { } @ Override public void execute ( Tuple input ) { } @ Override public void cleanup ( ) { } }

Fix:
Long collectionTimeP = _gcBean . getCollectionTime ( ) ;
Buggy code:
public class RolloutPlanTestCase extends AbstractCliTestBase { private static File warFile ; private static final int TEST_PORT = 8081 ; private static final String [ ] serverGroups = new String [ ] { "main-server-group" , "other-server-group" , "test-server-group" } ; @ BeforeClass public static void before ( ) throws Exception { } @ AfterClass public static void after ( ) throws Exception { } @ After public void afterTest ( ) throws Exception { } @ Test public void testInSeriesRolloutPlan ( ) throws Exception { } @ Test public void testMaxFailServersRolloutPlan ( ) throws Exception { } @ Test public void testMaxFailServersPercentageRolloutPlan ( ) throws Exception { } @ Test public void testRollbackAcrossGroupsRolloutPlan ( ) throws Exception { } private CLIOpResult testAddConnector ( String rolloutPlanId ) throws Exception { } private CLIOpResult testRemoveConnector ( String rolloutPlanId ) throws Exception { } private void testCleanupConnector ( String rolloutPlanId ) throws Exception { } private boolean getServerStatus ( String serverName , CLIOpResult result ) throws Exception { } private static String checkURL ( String server , boolean shouldFail ) throws Exception { } private static String checkURL ( String server , boolean shouldFail , String path ) throws Exception { String address = hostAddresses . get ( RolloutPlanTestCase . getServerHost ( server ) ) ; Integer portOffset = portOffsets . get ( server ) ; URL url = new URL ( "http" , address , ( 8080 + portOffset ) , path ) ; boolean failed = false ; String response = null ; try { <START_BUG> response = HttpRequest . get ( url . toString ( ) , 60 , TimeUnit . SECONDS ) ; <END_BUG> } catch ( Exception e ) { failed = true ; if ( ! shouldFail ) throw new Exception ( "Http<seq2seq4repair_space>request<seq2seq4repair_space>failed." , e ) ; } if ( shouldFail ) Assert . assertTrue ( failed ) ; return response ; } private static String getServerHost ( String server ) { } private static void waitUntilState ( final String serverName , final String state ) throws TimeoutException { } private static class NoResponseException extends Exception { private static final long serialVersionUID = 1L ; private NoResponseException ( String serverName ) { } } }

Fix:
response = HttpRequest . get ( url . toString ( ) , 10 , TimeUnit . SECONDS ) ;
Buggy code:
public class StarPolyTab extends GraphicsTab { int [ ] radial ; static final int POINTS = 11 ; Combo fillRuleCb ; public StarPolyTab ( GraphicsExample example ) { } public void createControlPanel ( Composite parent ) { } public String getCategory ( ) { } public String getText ( ) { } public String getDescription ( ) { } public void paint ( GC gc , int width , int height ) { int centerX = width // 2 ; int centerY = height // 2 ; int pos = 0 ; for ( int i = 0 ; i < ( StarPolyTab . POINTS ) ; ++ i ) { double r = ( ( ( Math . PI ) * 2 ) * pos ) // ( StarPolyTab . POINTS ) ; radial [ ( i * 2 ) ] = ( ( int ) ( ( 1 + ( Math . cos ( r ) ) ) * centerX ) ) ; radial [ ( ( i * 2 ) + 1 ) ] = ( ( int ) ( ( 1 + ( Math . sin ( r ) ) ) * centerY ) ) ; pos = ( pos + ( ( StarPolyTab . POINTS ) // 2 ) ) % ( StarPolyTab . POINTS ) ; } gc . setFillRule ( ( ( fillRuleCb . getSelectionIndex ( ) ) != 0 ? SWT . FILL_WINDING : SWT . FILL_EVEN_ODD ) ) ; <START_BUG> gc . setBackground ( gc . getDevice ( ) . getSystemColor ( COLOR_WHITE ) ) ; <END_BUG> gc . fillPolygon ( radial ) ; gc . drawPolygon ( radial ) ; } }

Fix:
gc . setBackground ( gc . getDevice ( ) . getSystemColor ( COLOR_YELLOW ) ) ;
Buggy code:
public class Signature { public enum Rest { NONE , NORM , ANON , STAR ; } public static final Signature NO_ARGUMENTS = new Signature ( 0 , 0 , 0 , Signature . Rest . NONE ) ; public static final Signature ONE_ARGUMENT = new Signature ( 1 , 0 , 0 , Signature . Rest . NONE ) ; public static final Signature TWO_ARGUMENTS = new Signature ( 2 , 0 , 0 , Signature . Rest . NONE ) ; public static final Signature THREE_ARGUMENTS = new Signature ( 3 , 0 , 0 , Signature . Rest . NONE ) ; public static final Signature OPTIONAL = new Signature ( 0 , 0 , 0 , Signature . Rest . NORM ) ; public static final Signature ONE_REQUIRED = new Signature ( 1 , 0 , 0 , Signature . Rest . NORM ) ; public static final Signature TWO_REQUIRED = new Signature ( 2 , 0 , 0 , Signature . Rest . NORM ) ; public static final Signature THREE_REQUIRED = new Signature ( 3 , 0 , 0 , Signature . Rest . NORM ) ; private final int pre ; private final int opt ; private final Signature . Rest rest ; private final int post ; private final Arity arity ; public Signature ( int pre , int opt , int post , Signature . Rest rest ) { } public int pre ( ) { } public int opt ( ) { } public Signature . Rest rest ( ) { } public int post ( ) { } public int required ( ) { } public Arity arity ( ) { } public static Signature from ( int pre , int opt , int post , Signature . Rest rest ) { } public static Signature from ( IterNode iter ) { } private static Signature . Rest restFromArg ( Node restArg ) { } public static Signature from ( ForNode iter ) { } public static Signature from ( PreExeNode iter ) { } public static Signature from ( PostExeNode iter ) { } public long encode ( ) { } public static Signature decode ( long l ) { } public String toString ( ) { } public void checkArity ( Ruby runtime , IRubyObject [ ] args ) { if ( ( args . length ) < ( required ( ) ) ) { throw runtime . newArgumentError ( ( ( ( ( "wrong<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>arguments<seq2seq4repair_space>(" + ( args . length ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>" ) + ( required ( ) ) ) + ")" ) ) ; } if ( ( ( rest ) == ( Signature . Rest . NONE ) ) || ( ( rest ) == ( Signature . Rest . ANON ) ) ) { if ( ( args . length ) > ( ( required ( ) ) + ( opt ( ) ) ) ) { <START_BUG> throw runtime . newArgumentError ( ( ( ( ( ( "wrong<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>arguments<seq2seq4repair_space>(" + ( args . length ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>" ) + ( required ( ) ) ) + ( opt ) ) + ")" ) ) ; <END_BUG> } } } }

Fix:
throw runtime . newArgumentError ( ( ( ( ( "wrong<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>arguments<seq2seq4repair_space>(" + ( args . length ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>" ) + ( ( required ( ) ) + ( opt ) ) ) + ")" ) ) ;
Buggy code:
public class StringResourceModel extends AbstractReadOnlyDetachableModel { private transient Locale locale ; private transient Localizer localizer ; private IModel model ; private Object [ ] parameters ; private Component component ; private String resourceKey ; public StringResourceModel ( final String resourceKey , final Component component , final IModel model ) { } public StringResourceModel ( final String resourceKey , final Component component , final IModel model , final Object [ ] parameters ) { } public Localizer getLocalizer ( ) { } <START_BUG> public final Object getNestedModel ( ) { <END_BUG> return model ; } public final String getString ( ) { } public void setLocalizer ( final Localizer localizer ) { } public String toString ( ) { } protected final Object [ ] getParameters ( ) { } protected final String getResourceKey ( ) { } protected final void onAttach ( ) { } protected final void onDetach ( ) { } protected final Object onGetObject ( final Component component ) { } }

Fix:
public final IModel getNestedModel ( ) {
Buggy code:
public class ExamTemplate { private List < Double > exams ; private long rowId ; private long gradeFamilyId ; private long ponderationId ; public static List < ExamTemplate > instanciateAll ( DBAdapter mDbHelper , long courseId ) { } private ExamTemplate ( Cursor c ) { } public void populateExams ( DBAdapter mDbHelper , long studentId ) { <START_BUG> Cursor c = mDbHelper . allExamsWithFkId ( rowId ) ; <END_BUG> for ( boolean hasItem = c . moveToFirst ( ) ; hasItem ; hasItem = c . moveToNext ( ) ) { exams . add ( new Double ( ExamGrade . decodeAsDouble ( gradeFamilyId , c . getLong ( c . getColumnIndex ( E_GRADE ) ) ) ) ) ; } } public double calculateWithPonderation ( ) { } public double getFinalGrade ( ) { } }

Fix:
Cursor c = mDbHelper . allExamsWithFkIdAndStudent ( rowId , studentId ) ;
Buggy code:
public class NoopOperationStepHandler implements OperationStepHandler { public static final NoopOperationStepHandler WITH_RESULT = new NoopOperationStepHandler ( true ) ; public static final NoopOperationStepHandler WITHOUT_RESULT = new NoopOperationStepHandler ( false ) ; private final boolean setResult ; private NoopOperationStepHandler ( boolean setResult ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { if ( setResult ) { context . getResult ( ) ; } <START_BUG> context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; <END_BUG> } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public class AsteroidesLevelController implements ControllerInterface { private SpaceShip ship ; private SpaceShipControl shipControl ; private Score score ; private Background background ; private AsteroideManager asteroideManager ; private Music music ; private LevelManager levelManager ; private boolean playerWin = false ; private TextCenter textCenter ; public AsteroidesLevelController ( Context context , SpaceShip ship , Background background , Music music , int asteroidesNumber , int velocity , LevelManager levelManager ) { } @ Override public void initObjects ( Canvas canvas ) { } @ Override public void stepObjects ( Canvas canvas ) { ship . step ( canvas ) ; score . step ( canvas ) ; background . step ( canvas ) ; asteroideManager . step ( canvas ) ; for ( Asteroide a : asteroideManager . getAsteroides ( ) ) { <START_BUG> if ( Collision . isCollided ( a , ship ) ) { <END_BUG> ship . explodir ( ) ; levelManager . setGameState ( END ) ; playerWin = false ; } for ( Shot shot : ship . getShots ( ) ) { if ( Collision . isCollided ( shot , a ) ) { a . explodir ( ) ; } } } if ( ( asteroideManager . isAllAsteroidesCreated ( ) ) && ( ! ( ship . isExploded ( ) ) ) ) { playerWin = true ; levelManager . setGameState ( END ) ; } } @ Override public void drawObjects ( Canvas canvas ) { } @ Override public void stepObjectsFinal ( Canvas canvas ) { } @ Override public void drawObjectsFinal ( Canvas canvas ) { } @ Override public void unloadObjects ( ) { } @ Override public void touchEvent ( MotionEvent event ) { } No newline ; at end ; of file ; }

Fix:
if ( ( Collision . isCollided ( a , ship ) ) && ( ! ( a . isExploded ( ) ) ) ) {
Buggy code:
public class TableGenerator { public static String generateTableDrop ( TableDetails tableDetails , boolean prettyPrint ) { } public static String generateTableCreate ( TableDetails tableDetails , boolean prettyPrint ) { } public static List < String > generateIndecesCreate ( TableDetails tableDetails , boolean prettyPrint ) { List < String > indeces = new ArrayList < > ( ) ; for ( Index index : tableDetails . getIndices ( ) ) { StringBuilder tableQuery = new StringBuilder ( ) ; TableGenerator . prettyPrint ( 1 , prettyPrint , tableQuery ) ; tableQuery . append ( "CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>" ) ; <START_BUG> tableQuery . append ( "IDX_" ) . append ( tableDetails . getTableName ( ) ) . append ( index . indexName ( ) ) ; <END_BUG> tableQuery . append ( "<seq2seq4repair_space>ON<seq2seq4repair_space>" ) ; tableQuery . append ( tableDetails . getTableName ( ) ) ; tableQuery . append ( "<seq2seq4repair_space>(" ) ; int length = index . indexColumns ( ) . length ; for ( int i = 0 ; i < length ; i ++ ) { String column = index . indexColumns ( ) [ i ] ; tableQuery . append ( column ) ; if ( ( i + 1 ) < length ) tableQuery . append ( ",<seq2seq4repair_space>" ) ; } tableQuery . append ( ");\n" ) ; TableGenerator . prettyPrint ( 1 , prettyPrint , tableQuery ) ; indeces . add ( tableQuery . toString ( ) ) ; } return indeces ; } private static void prettyPrint ( int tabSpace , boolean prettyPrint , StringBuilder tableQuery ) { } private static StringBuilder createColumnDefinition ( TableDetails . ColumnDetails columnDetails ) { } private static StringBuilder createTableConstraint ( TableConstraint constraint ) { } }

Fix:
tableQuery . append ( "IDX_" ) . append ( tableDetails . getTableName ( ) ) . append ( "_" ) . append ( index . indexName ( ) ) ;
Buggy code:
public class ComplexFormat { private static final String DEFAULT_IMAGINARY_CHARACTER = "i" ; private final String imaginaryCharacter ; private final NumberFormat imaginaryFormat ; private final NumberFormat realFormat ; public ComplexFormat ( ) { } public ComplexFormat ( NumberFormat format ) { } public ComplexFormat ( NumberFormat realFormat , NumberFormat imaginaryFormat ) { } public ComplexFormat ( String imaginaryCharacter ) { } public ComplexFormat ( String imaginaryCharacter , NumberFormat format ) { } public ComplexFormat ( String imaginaryCharacter , NumberFormat realFormat , NumberFormat imaginaryFormat ) { } public static Locale [ ] getAvailableLocales ( ) { } public String format ( Complex c ) { } public String format ( Double c ) { } public StringBuffer format ( Complex complex , StringBuffer toAppendTo , FieldPosition pos ) { pos . setBeginIndex ( 0 ) ; pos . setEndIndex ( 0 ) ; double re = complex . getReal ( ) ; CompositeFormat . formatDouble ( re , getRealFormat ( ) , toAppendTo , pos ) ; double im = complex . getImaginary ( ) ; <START_BUG> StringBuffer imAppendTo = new StringBuffer ( ) ; <END_BUG> if ( im < 0.0 ) { toAppendTo . append ( "<seq2seq4repair_space>-<seq2seq4repair_space>" ) ; imAppendTo = formatImaginary ( ( - im ) , new StringBuffer ( ) , pos ) ; toAppendTo . append ( imAppendTo ) ; toAppendTo . append ( getImaginaryCharacter ( ) ) ; } else if ( ( im > 0.0 ) || ( Double . isNaN ( im ) ) ) { toAppendTo . append ( "<seq2seq4repair_space>+<seq2seq4repair_space>" ) ; imAppendTo = formatImaginary ( im , new StringBuffer ( ) , pos ) ; toAppendTo . append ( imAppendTo ) ; toAppendTo . append ( getImaginaryCharacter ( ) ) ; } return toAppendTo ; } private StringBuffer formatImaginary ( double absIm , StringBuffer toAppendTo , FieldPosition pos ) { } public StringBuffer format ( Object obj , StringBuffer toAppendTo , FieldPosition pos ) { } public String getImaginaryCharacter ( ) { } public NumberFormat getImaginaryFormat ( ) { } public static ComplexFormat getInstance ( ) { } public static ComplexFormat getInstance ( Locale locale ) { } public static ComplexFormat getInstance ( String imaginaryCharacter , Locale locale ) { } public NumberFormat getRealFormat ( ) { } public Complex parse ( String source ) { } public Complex parse ( String source , ParsePosition pos ) { } }

Fix:
StringBuffer imAppendTo ;
Buggy code:
public class TabDocs extends TabText { public TabDocs ( ) { } protected String genText ( ) { Object modelObject = _target ; <START_BUG> if ( ! ( modelObject instanceof MElementImpl ) ) <END_BUG> return null ; if ( ( _target ) instanceof FigNode ) modelObject = ( ( FigNode ) ( _target ) ) . getOwner ( ) ; if ( ( _target ) instanceof FigEdge ) modelObject = ( ( FigEdge ) ( _target ) ) . getOwner ( ) ; if ( modelObject == null ) return null ; return DocumentationManager . getDocs ( modelObject , "" ) ; } protected void parseText ( String s ) { } }

Fix:
if ( ! ( modelObject instanceof MElement ) )
Buggy code:
public class MapBackedARFFModel implements ARFFModel { private static final Pattern QUOTE_PATTERN = Pattern . compile ( "\"" ) ; private long wordCount = 1 ; private String relation ; private final Map < String , Integer > labelBindings ; private final Map < Integer , String > idxLabel ; private final Map < Integer , ARFFType > typeMap ; private final Map < Integer , DateFormat > dateMap ; private final Map < String , Map < String , Integer > > nominalMap ; private final Map < String , Long > words ; public MapBackedARFFModel ( ) { } public MapBackedARFFModel ( Map < String , Long > words , long wordCount , Map < String , Map < String , Integer > > nominalMap ) { } @ Override public String getRelation ( ) { } @ Override public void setRelation ( String relation ) { } @ Override public double getValue ( String data , int idx ) { } protected double processNominal ( String label , String data ) { } protected double processString ( String data ) { } protected static double processNumeric ( String data ) { if ( MapBackedARFFModel . isNumeric ( data ) ) { return Double . parseDouble ( data ) ; } <START_BUG> return 0.0 ; <END_BUG> } public static boolean isNumeric ( String str ) { } protected double processDate ( String data , int idx ) { } @ Override public Map < String , Integer > getLabelBindings ( ) { } public Map < Integer , ARFFType > getTypeMap ( ) { } public Map < Integer , DateFormat > getDateMap ( ) { } @ Override public Map < String , Map < String , Integer > > getNominalMap ( ) { } @ Override public Map < String , Long > getWords ( ) { } @ Override public Integer getNominalValue ( String label , String nominal ) { } @ Override public void addNominal ( String label , String nominal , int idx ) { } @ Override public DateFormat getDateFormat ( Integer idx ) { } @ Override public void addDateFormat ( Integer idx , DateFormat format ) { } @ Override public Integer getLabelIndex ( String label ) { } @ Override public void addLabel ( String label , Integer idx ) { } @ Override public ARFFType getARFFType ( Integer idx ) { } @ Override public void addType ( Integer idx , ARFFType type ) { } @ Override public long getWordCount ( ) { } @ Override public int getLabelSize ( ) { } }

Fix:
return Double . NaN ;
Buggy code:
public class CpioArchiveInputStream extends ArchiveInputStream implements CpioConstants { private boolean closed = false ; private CpioArchiveEntry entry ; private long entryBytesRead = 0 ; private boolean entryEOF = false ; private final byte [ ] tmpbuf = new byte [ 4096 ] ; private long crc = 0 ; private final InputStream in ; private final byte [ ] TWO_BYTES_BUF = new byte [ 2 ] ; private final byte [ ] FOUR_BYTES_BUF = new byte [ 4 ] ; private final byte [ ] SIX_BYTES_BUF = new byte [ 6 ] ; private final int blockSize ; public CpioArchiveInputStream ( final InputStream in ) { } public CpioArchiveInputStream ( final InputStream in , int blockSize ) { } @ Override public int available ( ) throws IOException { } @ Override public void close ( ) throws IOException { } private void closeEntry ( ) throws IOException { } private void ensureOpen ( ) throws IOException { } public CpioArchiveEntry getNextCPIOEntry ( ) throws IOException { } private void skip ( int bytes ) throws IOException { } @ Override public int read ( final byte [ ] b , final int off , final int len ) throws IOException { } private final int readFully ( final byte [ ] b , final int off , final int len ) throws IOException { } private long readBinaryLong ( final int length , final boolean swapHalfWord ) throws IOException { } private long readAsciiLong ( final int length , final int radix ) throws IOException { } private CpioArchiveEntry readNewEntry ( final boolean hasCrc ) throws IOException { } private CpioArchiveEntry readOldAsciiEntry ( ) throws IOException { } private CpioArchiveEntry readOldBinaryEntry ( final boolean swapHalfWord ) throws IOException { } private String readCString ( final int length ) throws IOException { } @ Override public long skip ( final long n ) throws IOException { } @ Override <START_BUG> public ArchiveEntry getNextEntry ( ) throws IOException { <END_BUG> return getNextCPIOEntry ( ) ; } private void skipRemainderOfLastBlock ( ) throws IOException { } public static boolean matches ( byte [ ] signature , int length ) { } }

Fix:
public CpioArchiveEntry getNextEntry ( ) throws IOException {
Buggy code:
public class XmlnsTest extends BuildFileTest { public XmlnsTest ( String name ) { } public void setUp ( ) { } public void testXmlns ( ) { } public void testXmlnsFile ( ) { } public void testCore ( ) { } public void testExcluded ( ) { <START_BUG> expectBuildExceptionContaining ( "excluded" , "excluded<seq2seq4repair_space>uri" , "Attempt<seq2seq4repair_space>to<seq2seq4repair_space>use<seq2seq4repair_space>use<seq2seq4repair_space>a<seq2seq4repair_space>reserved<seq2seq4repair_space>URI<seq2seq4repair_space>ant:notallowed" ) ; <END_BUG> } public static class MyTask extends Task { public void execute ( ) { } } }

Fix:
expectBuildExceptionContaining ( "excluded" , "excluded<seq2seq4repair_space>uri" , "Attempt<seq2seq4repair_space>to<seq2seq4repair_space>use<seq2seq4repair_space>a<seq2seq4repair_space>reserved<seq2seq4repair_space>URI<seq2seq4repair_space>ant:notallowed" ) ;
Buggy code:
public class Update extends Message { private Name origin ; private int dclass ; public Update ( Name zone , int dclass ) { } public Update ( Name zone ) { } private void newPrereq ( Record rec ) { } private void newUpdate ( Record rec ) { } public void present ( Name name ) { } public void present ( Name name , int type ) { } public void present ( Name name , int type , String record ) throws IOException { } public void present ( Name name , int type , Tokenizer tokenizer ) throws IOException { } public void present ( Record record ) { } public void absent ( Name name ) { } public void absent ( Name name , int type ) { } public void add ( Name name , int type , int ttl , String record ) throws IOException { } public void add ( Name name , int type , int ttl , Tokenizer tokenizer ) throws IOException { } public void add ( Record record ) { } public void add ( Record [ ] records ) { } public void add ( RRset rrset ) { } public void delete ( Name name ) { } public void delete ( Name name , int type ) { } public void delete ( Name name , int type , String record ) throws IOException { } public void delete ( Name name , int type , Tokenizer tokenizer ) throws IOException { } public void delete ( Record record ) { <START_BUG> newUpdate ( record . withDClass ( NONE ) ) ; <END_BUG> } public void delete ( Record [ ] records ) { } public void delete ( RRset rrset ) { } public void replace ( Name name , int type , int ttl , String record ) throws IOException { } public void replace ( Name name , int type , int ttl , Tokenizer tokenizer ) throws IOException { } public void replace ( Record record ) { } public void replace ( Record [ ] records ) { } public void replace ( RRset rrset ) { } }

Fix:
newUpdate ( record . withDClass ( NONE , 0 ) ) ;
Buggy code:
public class TestUMLCognitiveResourceBundle extends TestCase { public TestUMLCognitiveResourceBundle ( String name ) { } public void testMain ( ) { <START_BUG> CheckResourceBundle . checkResourceBundle ( this , new UMLCognitiveResourceBundle ( ) ) ; <END_BUG> } }

Fix:
CheckResourceBundle . checkResourceBundle ( this , "org.argouml.i18n.UMLCognitiveResourceBundle" ) ;
Buggy code:
public class DeclarationOfReferencedTypesPattern extends TypeReferencePattern { HashSet knownTypes ; IJavaElement enclosingElement ; public DeclarationOfReferencedTypesPattern ( IJavaElement enclosingElement ) { } protected void matchReportReference ( AstNode reference , IJavaElement element , int accuracy , MatchLocator locator ) throws CoreException { if ( accuracy == ( IJavaSearchResultCollector . POTENTIAL_MATCH ) ) return ; while ( ( element != null ) && ( ! ( this . enclosingElement . equals ( element ) ) ) ) { element = element . getParent ( ) ; } if ( element == null ) return ; int maxType = - 1 ; TypeBinding typeBinding = null ; if ( reference instanceof TypeReference ) { typeBinding = ( ( TypeReference ) ( reference ) ) . binding ; maxType = Integer . MAX_VALUE ; } else if ( reference instanceof QualifiedNameReference ) { QualifiedNameReference qNameRef = ( ( QualifiedNameReference ) ( reference ) ) ; Binding binding = qNameRef . binding ; maxType = ( qNameRef . tokens . length ) - 1 ; switch ( ( qNameRef . bits ) & ( AstNode . RestrictiveFlagMASK ) ) { case BindingIds . FIELD : <START_BUG> typeBinding = ( ( FieldBinding ) ( binding ) ) . declaringClass ; <END_BUG> int otherBindingsCount = ( ( qNameRef . otherBindings ) == null ) ? 0 : qNameRef . otherBindings . length ; maxType -= otherBindingsCount + 1 ; break ; case BindingIds . TYPE : typeBinding = ( ( TypeBinding ) ( binding ) ) ; } } else if ( reference instanceof SingleNameReference ) { typeBinding = ( ( TypeBinding ) ( ( ( SingleNameReference ) ( reference ) ) . binding ) ) ; maxType = 1 ; } if ( ( typeBinding == null ) || ( typeBinding instanceof BaseTypeBinding ) ) return ; if ( typeBinding instanceof ArrayBinding ) { typeBinding = ( ( ArrayBinding ) ( typeBinding ) ) . leafComponentType ; } this . reportDeclaration ( typeBinding , maxType , locator ) ; } private void reportDeclaration ( TypeBinding typeBinding , int maxType , MatchLocator locator ) throws CoreException { } }

Fix:
typeBinding = qNameRef . actualReceiverType ;
Buggy code:
public class Receiver implements Runnable { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private boolean active ; private final QueueSession session ; private final QueueReceiver consumer ; private final QueueConnection conn ; private Receiver ( QueueConnectionFactory factory , Queue receiveQueue ) throws JMSException { } public static synchronized Receiver createReceiver ( QueueConnectionFactory factory , Queue receiveQueue ) throws JMSException { } public void run ( ) { activate ( ) ; Message reply ; while ( isActive ( ) ) { reply = null ; try { reply = consumer . receive ( 5000 ) ; if ( reply != null ) { if ( Receiver . log . isDebugEnabled ( ) ) { Receiver . log . debug ( ( "Received<seq2seq4repair_space>message,<seq2seq4repair_space>correlation<seq2seq4repair_space>id:" + ( reply . getJMSCorrelationID ( ) ) ) ) ; } if ( ( reply . getJMSCorrelationID ( ) ) == null ) { Receiver . log . warn ( "Received<seq2seq4repair_space>message<seq2seq4repair_space>with<seq2seq4repair_space>correlation<seq2seq4repair_space>id<seq2seq4repair_space>null.<seq2seq4repair_space>Discarding<seq2seq4repair_space>message<seq2seq4repair_space>..." ) ; } else { <START_BUG> MessageAdmin . getAdmin ( ) . putReply ( reply . getJMSCorrelationID ( ) , reply ) ; <END_BUG> } } } catch ( JMSException e1 ) { Receiver . log . error ( "Error<seq2seq4repair_space>handling<seq2seq4repair_space>receive" , e1 ) ; } } if ( ( consumer ) != null ) { try { consumer . close ( ) ; } catch ( JMSException e ) { Receiver . log . error ( "Error<seq2seq4repair_space>closing<seq2seq4repair_space>connection" , e ) ; } } try { session . close ( ) ; } catch ( JMSException e ) { Receiver . log . error ( "Error<seq2seq4repair_space>closing<seq2seq4repair_space>session" , e ) ; } try { conn . close ( ) ; } catch ( JMSException e ) { Receiver . log . error ( "Error<seq2seq4repair_space>closing<seq2seq4repair_space>connection" , e ) ; } } public synchronized void activate ( ) { } public synchronized void deactivate ( ) { } private synchronized boolean isActive ( ) { } }

Fix:
MessageAdmin . getAdmin ( ) . putReply ( reply . getJMSMessageID ( ) , reply ) ;
Buggy code:
public class NodeCachingLinkedListTest < E > extends AbstractLinkedListTest < E > { public NodeCachingLinkedListTest ( final String testName ) { } public static Test suite ( ) { } @ Override public NodeCachingLinkedList < E > makeObject ( ) { } @ Override public String getCompatibilityVersion ( ) { } @ SuppressWarnings ( "unchecked" ) public void testShrinkCache ( ) { <START_BUG> if ( ( ( NodeCachingLinkedListTest . isRemoveSupported ( ) ) == false ) || ( ( NodeCachingLinkedListTest . isAddSupported ( ) ) == false ) ) { <END_BUG> return ; } NodeCachingLinkedListTest . resetEmpty ( ) ; final NodeCachingLinkedList < E > list = getCollection ( ) ; list . addAll ( Arrays . asList ( ( ( E [ ] ) ( new String [ ] { "1" , "2" , "3" , "4" } ) ) ) ) ; list . removeAllNodes ( ) ; list . setMaximumCacheSize ( 2 ) ; list . addAll ( Arrays . asList ( ( ( E [ ] ) ( new String [ ] { "1" , "2" , "3" , "4" } ) ) ) ) ; NodeCachingLinkedListTest . checkNodes ( ) ; list . removeNode ( list . getNode ( 0 , false ) ) ; list . removeNode ( list . getNode ( 0 , false ) ) ; list . removeNode ( list . getNode ( 0 , false ) ) ; NodeCachingLinkedListTest . checkNodes ( ) ; list . addAll ( Arrays . asList ( ( ( E [ ] ) ( new String [ ] { "1" , "2" , "3" , "4" } ) ) ) ) ; NodeCachingLinkedListTest . checkNodes ( ) ; } public static void compareSpeed ( ) { } @ Override public NodeCachingLinkedList < E > getCollection ( ) { } }

Fix:
if ( ( ! ( NodeCachingLinkedListTest . isRemoveSupported ( ) ) ) || ( ! ( NodeCachingLinkedListTest . isAddSupported ( ) ) ) ) {