nus-yam/ex-repair huggingface dataset:
Buggy code:
; private static final int MASK_6BITS = 63 ; private static final int MASK_8BITS = 255 ; private final byte [ ] encodeTable ; private final int lineLength ; private final byte [ ] lineSeparator ; private final int decodeSize ; private final int encodeSize ; private byte [ ] buf ; private int pos ; private int readPos ; private int currentLinePos ; private int modulus ; private boolean eof ; private int x ; public Base64 ( ) { } public Base64 ( boolean urlSafe ) { } public Base64 ( int lineLength ) { } public Base64 ( int lineLength , byte [ ] lineSeparator ) { } public Base64 ( int lineLength , byte [ ] lineSeparator , boolean urlSafe ) { } public boolean isUrlSafe ( ) { } boolean hasData ( ) { } int avail ( ) { } private void resizeBuf ( ) { } int readResults ( byte [ ] b , int bPos , int bAvail ) { } void setInitialBuffer ( byte [ ] out , int outPos , int outAvail ) { } void encode ( byte [ ] in , int inPos , int inAvail ) { if ( eof ) { return ; } if ( inAvail < 0 ) { eof = true ; if ( ( ( buf ) == null ) || ( ( ( buf . length ) - ( pos ) ) < ( encodeSize ) ) ) { resizeBuf ( ) ; } switch ( modulus ) { case 1 : buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) > > 2 ) & ( Base64 . MASK_6BITS ) ) ] ; buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) << 4 ) & ( Base64 . MASK_6BITS ) ) ] ; if ( ( encodeTable ) == ( Base64 . STANDARD_ENCODE_TABLE ) ) { buf [ ( ( pos ) ++ ) ] = Base64 . PAD ; buf [ ( ( pos ) ++ ) ] = Base64 . PAD ; } break ; case 2 : buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) > > 10 ) & ( Base64 . MASK_6BITS ) ) ] ; buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) > > 4 ) & ( Base64 . MASK_6BITS ) ) ] ; buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) << 2 ) & ( Base64 . MASK_6BITS ) ) ] ; if ( ( encodeTable ) == ( Base64 . STANDARD_ENCODE_TABLE ) ) { buf [ ( ( pos ) ++ ) ] = Base64 . PAD ; } break ; } <START_BUG> if ( ( lineLength ) > 0 ) { <END_BUG> System . arraycopy ( lineSeparator , 0 , buf , pos , lineSeparator . length ) ; pos += lineSeparator . length ; } } else { for ( int i = 0 ; i < inAvail ; i ++ ) { if ( ( ( buf ) == null ) || ( ( ( buf . length ) - ( pos ) ) < ( encodeSize ) ) ) { resizeBuf ( ) ; } modulus = ( ++ ( modulus ) ) % 3 ; int b = in [ ( inPos ++ ) ] ; if ( b < 0 ) { b += 256 ; } x = ( ( x ) << 8 ) + b ; if ( 0 == ( modulus ) ) { buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) > > 18 ) & ( Base64 . MASK_6BITS ) ) ] ; buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) > > 12 ) & ( Base64 . MASK_6BITS ) ) ] ; buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( ( x ) > > 6 ) & ( Base64 . MASK_6BITS ) ) ] ; buf [ ( ( pos ) ++ ) ] = encodeTable [ ( ( x ) & ( Base64 . MASK_6BITS ) ) ] ; currentLinePos += 4 ; if ( ( ( lineLength ) > 0 ) && ( ( lineLength ) <= ( currentLinePos ) ) ) { System . arraycopy ( lineSeparator , 0 , buf , pos , lineSeparator . length ) ; pos += lineSeparator . length ; currentLinePos = 0 ; }

Fix:
if ( ( ( lineLength ) > 0 ) && ( ( pos ) > 0 ) ) {
Buggy code:
public class TabFolder extends Composite { TabItem [ ] items ; ImageList imageList ; public TabFolder ( Composite parent , int style ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } int childStyle ( ) { } public void addSelectionListener ( SelectionListener listener ) { } int clientHandle ( ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } public Rectangle computeTrim ( int x , int y , int width , int height ) { } void createHandle ( int index ) { } void createWidget ( int index ) { } void createItem ( TabItem item , int index ) { } void destroyItem ( TabItem item ) { } int eventHandle ( ) { <START_BUG> return fixedHandle ; <END_BUG> } public TabItem getItem ( int index ) { } public int getItemCount ( ) { } public TabItem [ ] getItems ( ) { } public TabItem [ ] getSelection ( ) { } public int getSelectionIndex ( ) { } int gtk_focus ( int widget , int directionType ) { } int gtk_switch_page ( int widget , int page , int page_num ) { } void hookEvents ( ) { } public int indexOf ( TabItem item ) { } Point minimumSize ( int wHint , int hHint , boolean flushCache ) { } boolean mnemonicHit ( char key ) { } boolean mnemonicMatch ( char key ) { } void releaseChildren ( boolean destroy ) { } void releaseWidget ( ) { } void removeControl ( Control control ) { } public void removeSelectionListener ( SelectionListener listener ) { } int setBounds ( int x , int y , int width , int height , boolean move , boolean resize ) { } void setFontDescription ( int font ) { } void setForegroundColor ( GdkColor color ) { } public void setSelection ( int index ) { } void setSelection ( int index , boolean notify ) { } public void setSelection ( TabItem item ) { } public void setSelection ( TabItem [ ] items ) { } boolean traversePage ( final boolean next ) { } }

Fix:
return handle ;
Buggy code:
class DateTimeTab extends Tab { DateTime dateTime1 ; Group dateTimeGroup ; Button dateButton ; Button timeButton ; Button calendarButton ; DateTimeTab ( ControlExample instance ) { } void createExampleGroup ( ) { } void createExampleWidgets ( ) { } void createStyleGroup ( ) { } Control [ ] getExampleWidgets ( ) { } String [ ] getMethodNames ( ) { <START_BUG> return new String [ ] { "Day" , "Hour" , "Minute" , "Month" , "Second" , "Year" } ; <END_BUG> } String getTabText ( ) { } void setExampleWidgetState ( ) { } }

Fix:
return new String [ ] { "Day" , "Hours" , "Minutes" , "Month" , "Seconds" , "Year" } ;
Buggy code:
public class TestKeywordAnalyzer extends BaseTokenStreamTestCase { private Directory directory ; private IndexSearcher searcher ; private IndexReader reader ; @ Override public void setUp ( ) throws Exception { } @ Override public void tearDown ( ) throws Exception { } public void testMutipleDocument ( ) throws Exception { } public void testOffsets ( ) throws Exception { } public void testRandomStrings ( ) throws Exception { <START_BUG> checkRandomData ( random ( ) , new KeywordAnalyzer ( ) , ( 10000 * ( RANDOM_MULTIPLIER ) ) ) ; <END_BUG> } }

Fix:
checkRandomData ( random ( ) , new KeywordAnalyzer ( ) , ( 1000 * ( RANDOM_MULTIPLIER ) ) ) ;
Buggy code:
public class Server implements Service < Server > { private final String defaultHost ; private final String name ; private final NameVirtualHostHandler virtualHostHandler = new NameVirtualHostHandler ( ) ; private final InjectedValue < ServletContainerService > servletContainer = new InjectedValue ( ) ; private final InjectedValue < UndertowService > undertowService = new InjectedValue ( ) ; private volatile HttpHandler root ; private final List < AbstractListenerService < ? > > listeners = new LinkedList < > ( ) ; private final Set < Host > hosts = new CopyOnWriteArraySet < > ( ) ; protected Server ( String name , String defaultHost ) { } @ Override public void start ( StartContext startContext ) throws StartException { } protected void registerListener ( AbstractListenerService < ? > listener ) { listeners . add ( listener ) ; if ( listener . isSecure ( ) ) { SocketBinding binding = ( ( SocketBinding ) ( listener . getBinding ( ) . getValue ( ) ) ) ; <START_BUG> servletContainer . getValue ( ) . registerSecurePort ( listener . getName ( ) , binding . getPort ( ) ) ; <END_BUG> } } protected void unregisterListener ( AbstractListenerService < ? > listener ) { } protected void registerHost ( final Host host ) { } protected void unregisterHost ( Host host ) { } @ Override public void stop ( StopContext stopContext ) { } @ Override public Server getValue ( ) throws IllegalArgumentException , IllegalStateException { } protected InjectedValue < ServletContainerService > getServletContainer ( ) { } protected HttpHandler getRoot ( ) { } protected InjectedValue < UndertowService > getUndertowService ( ) { } public String getName ( ) { } public String getDefaultHost ( ) { } public Set < Host > getHosts ( ) { } public List < AbstractListenerService < ? > > getListeners ( ) { } }

Fix:
servletContainer . getValue ( ) . registerSecurePort ( listener . getName ( ) , binding . getSocketAddress ( ) . getPort ( ) ) ;
Buggy code:
public class ResponseBroadcastReceiver extends WakefulBroadcastReceiver { @ Override public void onReceive ( Context context , Intent intent ) { <START_BUG> Log . i ( "Brodcastrec" , "Received<seq2seq4repair_space>packet" ) ; <END_BUG> ComponentName componentName = new ComponentName ( context . getPackageName ( ) , MessageIntentService . class . getName ( ) ) ; startWakefulService ( context , intent . setComponent ( componentName ) ) ; setResultCode ( RESULT_OK ) ; } }

Fix:
Log . i ( "Brodcastreceiver" , "Received<seq2seq4repair_space>packet" ) ;
Buggy code:
public class Pager { public boolean isInit ( ) { } public int getSize ( ) { <START_BUG> return ( len ) // ( Pager . LINES ) ; <END_BUG> } public boolean isFirst ( ) { } public boolean isLast ( ) { } private int x ; private int y ; private int cur ; private int len ; public static final int LINES = 120 ; public int getLen ( ) { } public void setLen ( int len ) { } public int getCur ( ) { } public void setCur ( int cur ) { } public int getX ( ) { } public void setX ( int x ) { } public int getY ( ) { } public void setY ( int y ) { } }

Fix:
return ( ( len ) // ( Pager . LINES ) ) + ( ( ( len ) % ( Pager . LINES ) ) == 0 ? 0 : 1 ) ;
Buggy code:
public class TestTargetedIFaceRelations extends TestCase { private EntityManagerFactory emf ; public void setUp ( ) { <START_BUG> Map props = new HashMap ( ) ; <END_BUG> props . put ( "openjpa.MetaDataFactory" , ( ( "jpa(Types=" + ( TargetedIFaceRelationParent . class . getName ( ) ) ) + ")" ) ) ; emf = Persistence . createEntityManagerFactory ( "test" , props ) ; } public void tearDown ( ) { } public void testPersist ( ) { } public static void main ( String [ ] args ) { } }

Fix:
Map props = new HashMap ( System . getProperties ( ) ) ;
Buggy code:
public class ScreenService extends NgnBaseService implements IScreenService { private static final String TAG = ScreenService . class . getCanonicalName ( ) ; private int mLastScreensIndex = - 1 ; private final String [ ] mLastScreens = new String [ ] { null , null , null , null } ; @ Override public boolean start ( ) { } @ Override public boolean stop ( ) { } @ Override public boolean back ( ) { } @ Override public boolean bringToFront ( int action , String [ ] ... args ) { } @ Override public boolean bringToFront ( String [ ] ... args ) { } @ Override public boolean show ( Class < ? extends Activity > cls , String id ) { final Main mainActivity = ( ( Main ) ( Engine . getInstance ( ) . getMainActivity ( ) ) ) ; String screen_id = ( id == null ) ? cls . getCanonicalName ( ) : id ; Intent intent = new Intent ( mainActivity , cls ) ; intent . putExtra ( "id" , screen_id ) ; <START_BUG> intent . setFlags ( FLAG_ACTIVITY_CLEAR_TOP ) ; <END_BUG> final Window window = mainActivity . getLocalActivityManager ( ) . startActivity ( screen_id , intent ) ; if ( window != null ) { View view = mainActivity . getLocalActivityManager ( ) . startActivity ( screen_id , intent ) . getDecorView ( ) ; LinearLayout layout = ( ( LinearLayout ) ( mainActivity . findViewById ( main_linearLayout_principal ) ) ) ; layout . removeAllViews ( ) ; layout . addView ( view , new LayoutParams ( LayoutParams . FILL_PARENT , LayoutParams . FILL_PARENT ) ) ; this . mLastScreens [ ( ( ++ ( this . mLastScreensIndex ) ) % ( this . mLastScreens . length ) ) ] = screen_id ; this . mLastScreensIndex %= this . mLastScreens . length ; return true ; } return false ; } @ Override public boolean show ( Class < ? extends Activity > cls ) { } @ Override public boolean show ( String id ) { } @ Override public void runOnUiThread ( Runnable r ) { } @ Override public boolean destroy ( String id ) { } @ Override public void setProgressInfoText ( String text ) { } @ Override public IBaseScreen getCurrentScreen ( ) { } @ Override public IBaseScreen getScreen ( String id ) { } }

Fix:
intent . setFlags ( FLAG_ACTIVITY_REORDER_TO_FRONT ) ;
Buggy code:
public class GamblerAIPlayer extends AIPlayer { public GamblerAIPlayer ( String name , GreedGameModel model ) { } @ Override public void decide ( ) { selectAllCombinations ( ) ; <START_BUG> List < Dice > diceList = getUnselectedDice ( ) ; <END_BUG> if ( ( ( diceList . size ( ) ) >= 2 ) && ( ( getScore ( ) ) < 10000 ) ) { setDecision ( KEEP_ROLLING ) ; } else { setDecision ( BANK ) ; } } }

Fix:
List < Dice > diceList = getFreeDice ( ) ;
Buggy code:
public class WizardNewFolderMainPage extends WizardPage implements Listener { private static final int SIZING_CONTAINER_GROUP_HEIGHT = 250 ; private IStructuredSelection currentSelection ; private IContainer currentParent ; private IFolder newFolder ; private IPath linkTargetPath ; private ResourceAndContainerGroup resourceGroup ; private Button advancedButton ; private CreateLinkedResourceGroup linkedResourceGroup ; public WizardNewFolderMainPage ( String pageName , IStructuredSelection selection ) { } protected void createAdvancedControls ( Composite parent ) { } public void createControl ( Composite parent ) { } protected void createFolder ( IFolder folderHandle , IProgressMonitor monitor ) throws CoreException { } protected IFolder createFolderHandle ( IPath folderPath ) { } protected void createLinkTarget ( ) { } public IFolder createNewFolder ( ) { } protected void handleAdvancedButtonSelect ( ) { } public void handleEvent ( Event ev ) { } protected void initializePage ( ) { } protected IStatus validateLinkedResource ( ) { } protected boolean validatePage ( ) { boolean valid = true ; IWorkspace workspace = WorkbenchPlugin . getPluginWorkspace ( ) ; IStatus nameStatus = null ; String folderName = resourceGroup . getResource ( ) ; if ( ( folderName . indexOf ( IPath . SEPARATOR ) ) != ( - 1 ) ) { StringTokenizer tok = new StringTokenizer ( folderName , String . valueOf ( IPath . SEPARATOR ) ) ; while ( tok . hasMoreTokens ( ) ) { String pathFragment = tok . nextToken ( ) ; nameStatus = workspace . validateName ( pathFragment , IResource . FOLDER ) ; if ( ! ( nameStatus . isOK ( ) ) ) { break ; } } } if ( nameStatus == null ) nameStatus = workspace . validateName ( folderName , IResource . FOLDER ) ; if ( ! ( nameStatus . isOK ( ) ) ) { setErrorMessage ( nameStatus . getMessage ( ) ) ; return false ; } if ( ! ( resourceGroup . areAllValuesValid ( ) ) ) { if ( ( ( resourceGroup . getProblemType ( ) ) == ( ResourceAndContainerGroup . PROBLEM_RESOURCE_EMPTY ) ) || ( ( resourceGroup . getProblemType ( ) ) == ( ResourceAndContainerGroup . PROBLEM_CONTAINER_EMPTY ) ) ) { setMessage ( resourceGroup . getProblemMessage ( ) ) ; setErrorMessage ( null ) ; } else setErrorMessage ( resourceGroup . getProblemMessage ( ) ) ; valid = false ; } IStatus linkedResourceStatus = null ; if ( valid && ( ( linkedResourceGroup ) != null ) ) { linkedResourceStatus = validateLinkedResource ( ) ; <START_BUG> if ( ( linkedResourceStatus . getCode ( ) ) == ( IStatus . ERROR ) ) <END_BUG> valid = false ; } if ( valid && ( ( linkedResourceStatus == null ) || ( linkedResourceStatus . isOK ( ) ) ) ) { setMessage ( null ) ; setErrorMessage ( null ) ; } return valid ; } public void setVisible ( boolean visible ) { } }

Fix:
if ( ( linkedResourceStatus . getSeverity ( ) ) == ( IStatus . ERROR ) )
Buggy code:
public class FragmentUserRegisterOfferFriend extends Fragment implements IGetContactListener , IGetInstalledAppsListener { public static final String TAG = "OfferFriend" ; public String tabOneTitle ; public String tabTwoTitle ; public String tabThreeTitle ; FragmentUserRegisterOfferFriendAdd fragAdd ; FragmentUserRegisterOfferFriendInvite fragInvite ; FragmentUserRegisterOfferFriendSMS fragSMS ; public ArrayList < ContactEntry > noneCharsooEmailContactsList ; public ArrayList < ContactEntry > noneCharsooPhoneNumberContactsList ; public ArrayList < ContactEntry > charsooContactsList ; ArrayList < PackageInfoCustom > applicationList ; WaitDialog progressDialog ; boolean haveContactList = false ; private PagerSlidingTabStrip tabs ; Context context ; private CustomViewPager mViewPager ; View view ; private View fragAddView ; private View fragInviteView ; private View fragSMSView ; @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onViewCreated ( View view , Bundle savedInstanceState ) { mViewPager = ( ( CustomViewPager ) ( view . findViewById ( viewpager ) ) ) ; mViewPager . setAdapter ( new FragmentUserRegisterOfferFriend . ViewPagerAdapter ( getFragmentManager ( ) ) ) ; mViewPager . setScrollDurationFactor ( 0.3 ) ; <START_BUG> tabs = ( ( PagerSlidingTabStrip ) ( view . findViewById ( R . id . tabs ) ) ) ; <END_BUG> tabs . setViewPager ( mViewPager ) ; if ( ( applicationList ) != null ) { fragInvite . setApplicationList ( applicationList ) ; } else new ir . rasen . charsoo . controller . helper . GetInstalledApps ( getActivity ( ) , this ) ; if ( ( charsooContactsList ) == null ) { new ir . rasen . charsoo . model . GetContactData ( context , this ) . execute ( ) ; } else doOnContactListReady ( ) ; if ( ( ( applicationList ) != null ) && ( ( charsooContactsList ) != null ) ) view . findViewById ( ll_ProgressBar ) . setVisibility ( GONE ) ; } private void initialStrings ( ) { } @ Override public void getContacts ( ArrayList < ContactEntry > charsooContacts , ArrayList < ContactEntry > noneCharsooPhoneContacts , ArrayList < ContactEntry > noneCharsooEmailContacts ) { } public void doOnContactListReady ( ) { } @ Override public void setAppResults ( ArrayList < PackageInfoCustom > appList ) { } private class ViewPagerAdapter extends FragmentStatePagerAdapter { public ViewPagerAdapter ( FragmentManager fm ) { } public Fragment getItem ( int num ) { } @ Override public int getCount ( ) { } @ Override public CharSequence getPageTitle ( int position ) { } } public int getSizeInPixelFromDp ( int dpToConvert ) { } public void setContactLists ( ArrayList < ContactEntry > charsooContacts , ArrayList < ContactEntry > noneCharsooPhoneContacts , ArrayList < ContactEntry > noneCharsooEmailContacts ) { } public void setApplicationList ( ArrayList < PackageInfoCustom > appList ) { } public boolean ifHideEmailList ( ) { } }

Fix:
tabs = ( ( PagerSlidingTabStrip ) ( view . findViewById ( sliding_tabs ) ) ) ;
Buggy code:
public class Player { public static final int FUE = 1 ; public static final int CON = 2 ; public static final int DES = 3 ; public static final int INT = 4 ; public static final int SAB = 5 ; public static final int CAR = 6 ; public static final int CA = 1 ; public static final int FORT = 2 ; public static final int REF = 3 ; public static final int VOL = 4 ; public static final int ACROBACIAS = 1 ; public static final int AGUANTE = 2 ; public static final int ARCANOS = 3 ; public static final int ATLETISMO = 4 ; public static final int DIPLOMACIA = 5 ; public static final int DUNGEONS = 6 ; public static final int ENGAÑAR = 7 ; public static final int HISTORIA = 8 ; public static final int HURTO = 9 ; public static final int INTIMIDAR = 10 ; public static final int NATURALEZA = 11 ; public static final int PERCEPCIÓN = 12 ; public static final int PERSPICACIA = 13 ; public static final int RECURSOS = 14 ; public static final int RELIGIÓN = 15 ; public static final int SANAR = 16 ; public static final int SIGILO = 17 ; public static final String [ ] abilityString = new String [ ] { "Acrobacias" , "Aguante" , "Arcanos" , "Atletismo" , "Diplomacia" , "Dungeons" , "Engañar" , "Historia" , "Hurto" , "Intimidar" , "Naturaleza" , "Percepción" , "Perspicacia" , "Recursos" , "Religión" , "Sanar" , "Sigilo" } ; public static final int OK = 1 ; public static final int MALHERIDO = 2 ; public static final int DEBILITADO = 3 ; public static final int MUERTO = 4 ; public static final int USE_CURATIVE_EFFORT = - 1 ; public static final int CURED = 1 ; public static final int NOT_CURED = 0 ; public static final int MAXED = - 1 ; private int pg ; private int maxPg ; private int state ; private int curativeEfforts ; private int maxCurativeEfforts ; private int [ ] atk ; private int [ ] def ; private int [ ] abilities ; private Power [ ] powers ; private String name ; private String className ; private String raceName ; private int level ; public Player ( String name , String className , String raceName , int level , int maxPg , int pg , int maxCurativeEfforts , int curativeEfforts , int [ ] atk , int [ ] def , int [ ] abilities , Power [ ] powers ) { } public int getMaxCurativeEfforts ( ) { } public int getCurativeEfforts ( ) { } public void setCurativeEffort ( int curativeEfforts ) { } public int getLevel ( ) { } public int getMaxPg ( ) { } public void setMaxPg ( int pg ) { } public int getPg ( ) { } public void setPg ( int pg ) { } public void losePg ( int damage ) { } public int recoverPg ( int recovered , boolean uses ) { if ( recovered == ( Player . USE_CURATIVE_EFFORT ) ) { if ( uses && ( ( curativeEfforts ) <= 0 ) ) return Player . NOT_CURED ; else { <START_BUG> if ( uses ) <END_BUG> ( curativeEfforts ) -- ; pg += ( maxPg ) // 4 ; } } else { pg += recovered ; } setState ( ) ; if ( ( pg ) > ( maxPg ) ) { pg = maxPg ; return Player . MAXED ; } return Player . CURED ; } public int getState ( ) { } private void setState ( ) { } public String getName ( ) { } public String getClassName ( ) { } public String getRaceName ( ) { } public void rest ( boolean length ) { } No newline ; at end ; of file ; }

Fix:
if ( uses && ( ( pg ) < ( maxPg ) ) )
Buggy code:
public class ProjectHelper { public static final String ANT_CORE_URI = "antlib:org.apache.tools.ant" ; public static final String ANT_CURRENT_URI = "ant:current" ; public static final String ANTLIB_URI = "antlib:" ; public static final String HELPER_PROPERTY = "org.apache.tools.ant.ProjectHelper" ; public static final String SERVICE_ID = "META-INF//services//org.apache.tools.ant.ProjectHelper" ; public static void configureProject ( Project project , File buildFile ) throws BuildException { } public ProjectHelper ( ) { } private Vector importStack = new Vector ( ) ; public Vector getImportStack ( ) { } public void parse ( Project project , Object source ) throws BuildException { } public static ProjectHelper getProjectHelper ( ) throws BuildException { } private static ProjectHelper newHelper ( String helperClass ) throws BuildException { } public static ClassLoader getContextClassLoader ( ) { } public static void configure ( Object target , AttributeList attrs , Project project ) throws BuildException { } public static void addText ( Project project , Object target , char [ ] buf , int start , int count ) throws BuildException { } public static void addText ( Project project , Object target , String text ) throws BuildException { } public static void storeChild ( Project project , Object parent , Object child , String tag ) { } public static String replaceProperties ( Project project , String value ) throws BuildException { } public static String replaceProperties ( Project project , String value , Hashtable keys ) throws BuildException { } public static void parsePropertyString ( String value , Vector fragments , Vector propertyRefs ) throws BuildException { } public static String genComponentName ( String uri , String name ) { } public static String extractUriFromComponentName ( String componentName ) { } public static String extractNameFromComponentName ( String componentName ) { } public static BuildException addLocationToBuildException ( BuildException ex , Location newLocation ) { if ( ( ( ex . getLocation ( ) ) == null ) || ( ( ex . getMessage ( ) ) == null ) ) { return ex ; } <START_BUG> String errorMessage = ( ( "Following<seq2seq4repair_space>error<seq2seq4repair_space>occured<seq2seq4repair_space>while<seq2seq4repair_space>executing<seq2seq4repair_space>this<seq2seq4repair_space>line" + ( System . getProperty ( "line.separator" ) ) ) + ( ex . getLocation ( ) . toString ( ) ) ) + ( ex . getMessage ( ) ) ; <END_BUG> if ( newLocation == null ) { return new BuildException ( errorMessage , ex ) ; } else { return new BuildException ( errorMessage , ex , newLocation ) ; } } }

Fix:
String errorMessage = ( ( "The<seq2seq4repair_space>following<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>while<seq2seq4repair_space>executing<seq2seq4repair_space>this<seq2seq4repair_space>line:" + ( System . getProperty ( "line.separator" ) ) ) + ( ex . getLocation ( ) . toString ( ) ) ) + ( ex . getMessage ( ) ) ;
Buggy code:
_builder . append ( "<argument>//${project.basedir}//" ) ; String _sourceFolder = RuntimeProjectDescriptor . this . sourceFolder ( MAIN_RESOURCES ) ; _builder . append ( _sourceFolder , "\t\t\t\t\t" ) ; _builder . append ( "//" ) ; String _workflowFilePath = RuntimeProjectDescriptor . this . getWorkflowFilePath ( ) ; _builder . append ( _workflowFilePath , "\t\t\t\t\t" ) ; _builder . append ( "<//argument>" ) ; _builder . newLineIfNotEmpty ( ) ; _builder . append ( "\t\t\t\t\t" ) ; _builder . append ( "<argument>-p<//argument>" ) ; _builder . newLine ( ) ; _builder . append ( "\t\t\t\t\t" ) ; <START_BUG> _builder . append ( "<argument>runtimeProject=//${project.basedir}<//argument>" ) ; <END_BUG>

Fix:
_builder . append ( "<argument>projectPath=//${project.basedir}<//argument>" ) ;
Buggy code:
public class ContentUtils { public static < TableClass extends Model > Uri insert ( Uri insertUri , TableClass model ) { } @ SuppressWarnings ( "unchecked" ) public static < TableClass extends Model > Uri insert ( ContentResolver contentResolver , Uri insertUri , TableClass model ) { } public static < TableClass extends Model > int update ( Uri updateUri , TableClass model ) { } @ SuppressWarnings ( "unchecked" ) public static < TableClass extends Model > int update ( ContentResolver contentResolver , Uri updateUri , TableClass model ) { ModelAdapter < TableClass > adapter = ( ( ModelAdapter < TableClass > ) ( FlowManager . getModelAdapter ( model . getClass ( ) ) ) ) ; ContentUtils . checkModel ( model , adapter ) ; ContentValues contentValues = new ContentValues ( ) ; adapter . bindToContentValues ( contentValues , model ) ; <START_BUG> return contentResolver . update ( updateUri , contentValues , null , null ) ; <END_BUG> } @ SuppressWarnings ( "unchecked" ) public static < TableClass extends Model > int delete ( Uri deleteUri , TableClass model ) { } @ SuppressWarnings ( "unchecked" ) public static < TableClass extends Model > int delete ( ContentResolver contentResolver , Uri deleteUri , TableClass model ) { } public static < TableClass extends Model > Cursor query ( ContentResolver contentResolver , Uri queryUri , Class < TableClass > table , ConditionQueryBuilder < TableClass > whereConditions , String orderBy , String ... columns ) { } public static < TableClass extends Model > List < TableClass > queryList ( Uri queryUri , Class < TableClass > table , ConditionQueryBuilder < TableClass > whereConditions , String orderBy , String ... columns ) { } public static < TableClass extends Model > List < TableClass > queryList ( ContentResolver contentResolver , Uri queryUri , Class < TableClass > table , ConditionQueryBuilder < TableClass > whereConditions , String orderBy , String ... columns ) { } public static < TableClass extends Model > TableClass querySingle ( Uri queryUri , Class < TableClass > table , ConditionQueryBuilder < TableClass > whereConditions , String orderBy , String ... columns ) { } public static < TableClass extends Model > TableClass querySingle ( ContentResolver contentResolver , Uri queryUri , Class < TableClass > table , ConditionQueryBuilder < TableClass > whereConditions , String orderBy , String ... columns ) { } protected static void checkModel ( Model model , ModelAdapter modelAdapter ) { } }

Fix:
return contentResolver . update ( updateUri , contentValues , adapter . getPrimaryModelWhere ( model ) . getQuery ( ) , null ) ;
Buggy code:
public class PartSite implements IWorkbenchPartSite { private IWorkbenchPart part ; private IWorkbenchPage page ; private PartPane pane ; private IConfigurationElement configElement ; private String extensionID ; private String pluginID ; private String extensionName ; private ISelectionProvider selectionProvider ; private SubActionBars actionBars ; private KeyBindingService keyBindingService ; private ArrayList menuExtenders ; private IActionService actionService ; private IContextService contextService ; public PartSite ( IWorkbenchPart part , IWorkbenchPage page ) { } public void dispose ( ) { } public IActionBars getActionBars ( ) { } public IConfigurationElement getConfigurationElement ( ) { } public String getId ( ) { } public IWorkbenchPage getPage ( ) { } public PartPane getPane ( ) { } public IWorkbenchPart getPart ( ) { } public String getPluginId ( ) { } public String getRegisteredName ( ) { } public ISelectionProvider getSelectionProvider ( ) { } public Shell getShell ( ) { } public IWorkbenchWindow getWorkbenchWindow ( ) { } public void registerContextMenu ( String menuID , MenuManager menuMgr , ISelectionProvider selProvider ) { } public void registerContextMenu ( MenuManager menuMgr , ISelectionProvider selProvider ) { } public void setActionBars ( SubActionBars bars ) { } public void setConfigurationElement ( IConfigurationElement configElement ) { } public void setPane ( PartPane pane ) { } public void setPart ( IWorkbenchPart newPart ) { } public void setSelectionProvider ( ISelectionProvider provider ) { } public IKeyBindingService getKeyBindingService ( ) { if ( ( keyBindingService ) == null ) { <START_BUG> keyBindingService = new KeyBindingService ( ) ; <END_BUG> if ( ( this ) instanceof EditorSite ) { EditorActionBuilder . ExternalContributor contributor = ( ( EditorActionBuilder . ExternalContributor ) ( ( ( EditorSite ) ( this ) ) . getExtensionActionBarContributor ( ) ) ) ; if ( contributor != null ) { ActionDescriptor [ ] actionDescriptors = contributor . getExtendedActions ( ) ; if ( actionDescriptors != null ) { for ( int i = 0 ; i < ( actionDescriptors . length ) ; i ++ ) { ActionDescriptor actionDescriptor = actionDescriptors [ i ] ; if ( actionDescriptor != null ) { IAction action = actionDescriptors [ i ] . getAction ( ) ; if ( ( action != null ) && ( ( action . getActionDefinitionId ( ) ) != null ) ) keyBindingService . registerAction ( action ) ; } } } } } keyBindingService . setScopes ( new String [ ] { getInitialScopeId ( ) } ) ; } return keyBindingService ; } protected String getInitialScopeId ( ) { } public IActionService getActionService ( ) { } public IContextService getContextService ( ) { } }

Fix:
keyBindingService = new KeyBindingService ( getActionService ( ) , getContextService ( ) ) ;
Buggy code:
public class ServerModelDeploymentStopUpdate extends AbstractServerModelUpdate < Void > { private static final long serialVersionUID = 5773083013951607950L ; private ServerGroupDeploymentElement deploymentElement ; private final String deploymentUnitName ; public ServerModelDeploymentStopUpdate ( final String deploymentUnitName ) { } public String getDeploymentUnitName ( ) { } @ Override public ServerModelDeploymentStartUpdate getCompensatingUpdate ( ServerModel original ) { ServerGroupDeploymentElement element = original . getDeployment ( getDeploymentUnitName ( ) ) ; if ( element == null ) { return null ; } <START_BUG> return new ServerModelDeploymentStartUpdate ( deploymentUnitName , element . getRuntimeName ( ) , element . getSha1Hash ( ) ) ; <END_BUG> } @ Override public void applyUpdate ( ServerModel serverModel ) throws UpdateFailedException { } @ Override public < P > void applyUpdate ( final UpdateContext updateContext , final UpdateResultHandler < ? super Void , P > resultHandler , final P param ) { } }

Fix:
return new ServerModelDeploymentStartUpdate ( deploymentUnitName ) ;
Buggy code:
public class CheckBoxMultipleChoice extends ListMultipleChoice { private static final long serialVersionUID = 1L ; private class SuffixChange extends Change { private static final long serialVersionUID = 1L ; final String prevSuffix ; SuffixChange ( String prevSuffix ) { } public void undo ( ) { } } private class PrefixChange extends Change { private static final long serialVersionUID = 1L ; final String prevPrefix ; PrefixChange ( String prevSuffix ) { } public void undo ( ) { } } private String prefix = "" ; private String suffix = "<br//>\n" ; public CheckBoxMultipleChoice ( final String id ) { } public CheckBoxMultipleChoice ( final String id , final List choices ) { } public CheckBoxMultipleChoice ( final String id , final List choices , final IChoiceRenderer renderer ) { } public CheckBoxMultipleChoice ( final String id , IModel model , final List choices ) { } public CheckBoxMultipleChoice ( final String id , IModel model , final List choices , final IChoiceRenderer renderer ) { } public CheckBoxMultipleChoice ( String id , IModel choices ) { } public CheckBoxMultipleChoice ( String id , IModel model , IModel choices ) { } public CheckBoxMultipleChoice ( String id , IModel choices , IChoiceRenderer renderer ) { } public CheckBoxMultipleChoice ( String id , IModel model , IModel choices , IChoiceRenderer renderer ) { } public String getPrefix ( ) { } public final CheckBoxMultipleChoice setPrefix ( final String prefix ) { } public String getSuffix ( ) { } public final CheckBoxMultipleChoice setSuffix ( final String suffix ) { } protected final void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { final StringBuffer buffer = new StringBuffer ( ) ; final List choices = getChoices ( ) ; for ( int index = 0 ; index < ( choices . size ( ) ) ; index ++ ) { final Object choice = choices . get ( index ) ; final String label = getChoiceRenderer ( ) . getDisplayValue ( choice ) ; if ( label != null ) { buffer . append ( getPrefix ( ) ) ; String id = getChoiceRenderer ( ) . getIdValue ( choice , index ) ; final String idAttr = ( ( getInputName ( ) ) + "_" ) + id ; buffer . append ( ( ( ( ( ( ( ( ( ( "<input<seq2seq4repair_space>name=\"" + ( getInputName ( ) ) ) + "\"" ) + "<seq2seq4repair_space>type=\"checkbox\"" ) + ( isSelected ( choice , index ) ? "<seq2seq4repair_space>checked=\"checked\"" : "" ) ) + "<seq2seq4repair_space>value=\"" ) + id ) + "\"<seq2seq4repair_space>id=\"" ) + idAttr ) + "\"//>" ) ) ; <START_BUG> String display = getLocalizer ( ) . getString ( ( ( ( getId ( ) ) + "." ) + label ) , this , label ) ; <END_BUG> String escaped = Strings . escapeMarkup ( display , false , true ) ; buffer . append ( ( ( "<label<seq2seq4repair_space>for=\"" + idAttr ) + "\">" ) ) . append ( escaped ) . append ( "<//label>" ) ; buffer . append ( getSuffix ( ) ) ; } } replaceComponentTagBody ( markupStream , openTag , buffer . toString ( ) ) ; } }

Fix:
String display = getLocalizer ( ) . getString ( label , this , label ) ;
Buggy code:
public final class LineComment extends Comment { private static final List PROPERTY_DESCRIPTORS ; public static List propertyDescriptors ( int apiLevel ) { } LineComment ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { LineComment result = new LineComment ( target ) ; <START_BUG> result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <END_BUG> return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ;
Buggy code:
public class IntroLoadingScreen extends AbstractScreen { TextItem loadingTextItem ; public IntroLoadingScreen ( MBreak game ) { } @ Override public void render ( float delta ) { super . render ( delta ) ; if ( Assets . getAssetManager ( ) . update ( ) ) { game . setScreen ( new SplashScreen ( game ) ) ; dispose ( ) ; } <START_BUG> loadingTextItem . setString ( ( ( "Now<seq2seq4repair_space>Loading<seq2seq4repair_space>" + ( ( int ) ( ( Assets . getAssetManager ( ) . getProgress ( ) ) * 100 ) ) ) + "%" ) ) ; <END_BUG> loadingTextItem . setX ( ( ( ( graphics . getWidth ( ) ) - ( loadingTextItem . getWidth ( ) ) ) // 2 ) ) ; } }

Fix:
loadingTextItem . setText ( ( ( "Now<seq2seq4repair_space>Loading<seq2seq4repair_space>" + ( ( int ) ( ( Assets . getAssetManager ( ) . getProgress ( ) ) * 100 ) ) ) + "%" ) ) ;
Buggy code:
public class ValaHighlighter extends SyntaxHighlighterBase { public static final TextAttributesKey STRING = createTextAttributesKey ( "VALA_STRING" , DefaultLanguageHighlighterColors . STRING ) ; private static final TextAttributesKey NUMBER = createTextAttributesKey ( "VALA_NUMBER" , DefaultLanguageHighlighterColors . NUMBER ) ; private static final TextAttributesKey BLOCK_COMMENT = createTextAttributesKey ( "VALA_BLOCK_COMMENT" , DefaultLanguageHighlighterColors . BLOCK_COMMENT ) ; private static final TextAttributesKey LINE_COMMENT = createTextAttributesKey ( "VALA_LINE_COMMENT" , DefaultLanguageHighlighterColors . LINE_COMMENT ) ; private static final TextAttributesKey KEYWORD = createTextAttributesKey ( "VALA_KEYWORD" , DefaultLanguageHighlighterColors . KEYWORD ) ; @ NotNull @ Override public Lexer getHighlightingLexer ( ) { } @ NotNull @ Override public TextAttributesKey [ ] getTokenHighlights ( IElementType tokenType ) { <START_BUG> if ( KEYWORDS . contains ( tokenType ) ) <END_BUG> return pack ( ValaHighlighter . KEYWORD ) ; if ( ( tokenType == ( ValaTypes . STRING ) ) || ( tokenType == ( ValaTypes . VERBATIM_STRING_LITERAL ) ) ) return pack ( ValaHighlighter . STRING ) ; if ( ( tokenType == ( ValaTypes . INTEGER_LITERAL ) ) || ( tokenType == ( ValaTypes . REAL_LITERAL ) ) ) return pack ( ValaHighlighter . NUMBER ) ; if ( tokenType == ( ValaTypes . LINE_COMMENT ) ) return pack ( ValaHighlighter . LINE_COMMENT ) ; if ( tokenType == ( ValaTypes . BLOCK_COMMENT ) ) return pack ( ValaHighlighter . BLOCK_COMMENT ) ; return EMPTY ; } }

Fix:
if ( ( KEYWORDS . contains ( tokenType ) ) || ( BUILT_IN_TYPES . contains ( tokenType ) ) )
Buggy code:
public class Javah extends Task { private static final String FAIL_MSG = "Compile<seq2seq4repair_space>failed,<seq2seq4repair_space>messages<seq2seq4repair_space>should<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>provided." ; private static String lSep = System . getProperty ( "line.separator" ) ; private ArrayList classes = new ArrayList ( 2 ) ; private Path classpath = null ; private File outputFile = null ; private boolean verbose = false ; private boolean force = false ; private boolean old = false ; private boolean stubs = false ; private Path bootclasspath ; private String cls ; private File destDir ; public void setBootClasspathRef ( Reference r ) { } public void setBootclasspath ( Path src ) { } public void setClass ( String cls ) { } public void setClasspath ( Path src ) { } public void setClasspathRef ( Reference r ) { } public void setDestdir ( File destDir ) { } public void setForce ( boolean force ) { } public void setOld ( boolean old ) { } public void setOutputFile ( File outputFile ) { } public void setStubs ( boolean stubs ) { } public void setVerbose ( boolean verbose ) { } public Path createBootclasspath ( ) { } public Javah . ClassArgument createClass ( ) { } public Path createClasspath ( ) { } public void execute ( ) throws TaskException { if ( ( ( cls ) == null ) && ( ( classes . size ( ) ) == 0 ) ) { throw new TaskException ( "class<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" ) ; } if ( ( ( cls ) != null ) && ( ( classes . size ( ) ) > 0 ) ) { throw new TaskException ( "set<seq2seq4repair_space>class<seq2seq4repair_space>attribute<seq2seq4repair_space>or<seq2seq4repair_space>class<seq2seq4repair_space>element,<seq2seq4repair_space>not<seq2seq4repair_space>both." ) ; } if ( ( destDir ) != null ) { if ( ! ( destDir . isDirectory ( ) ) ) { throw new TaskException ( ( ( "destination<seq2seq4repair_space>directory<seq2seq4repair_space>\"" + ( destDir ) ) + "\"<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist<seq2seq4repair_space>or<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>directory" ) ) ; } if ( ( outputFile ) != null ) { throw new TaskException ( "destdir<seq2seq4repair_space>and<seq2seq4repair_space>outputFile<seq2seq4repair_space>are<seq2seq4repair_space>mutually<seq2seq4repair_space>exclusive" ) ; } } if ( ( classpath ) == null ) { classpath = Path . systemClasspath ; } String compiler = getProject ( ) . getProperty ( "build.compiler" ) ; if ( compiler == null ) { <START_BUG> if ( ( JavaVersion . JAVA1_2 ) != ( getJavaVersion ( ) ) ) { <END_BUG> compiler = "modern" ; } else { compiler = "classic" ; } } doClassicCompile ( ) ; } protected void logAndAddFilesToCompile ( Commandline cmd ) { } private Commandline setupJavahCommand ( ) { } private void doClassicCompile ( ) throws TaskException { } public class ClassArgument { private String name ; public ClassArgument ( ) { } public void setName ( String name ) { } public String getName ( ) { } } }

Fix:
if ( ( JavaVersion . JAVA1_2 ) != ( JavaVersion . getCurrentJavaVersion ( ) ) ) {
Buggy code:
public class MethodInfo extends ClassFileStruct implements Comparable , AttributeNamesConstants , IBinaryMethod { private static final char [ ] [ ] noException = CharOperation . NO_CHAR_CHAR ; private int accessFlags ; private int attributeBytes ; private int [ ] constantPoolOffsets ; private char [ ] descriptor ; private char [ ] [ ] exceptionNames ; private char [ ] name ; private char [ ] signature ; private int signatureUtf8Offset ; public MethodInfo ( byte [ ] classFileBytes , int [ ] offsets , int offset ) { } public int compareTo ( Object o ) { } public char [ ] [ ] getArgumentNames ( ) { } public char [ ] [ ] getExceptionTypeNames ( ) { } public char [ ] getGenericSignature ( ) { } public char [ ] getMethodDescriptor ( ) { } public int getModifiers ( ) { } public char [ ] getSelector ( ) { } void initialize ( ) { } public boolean isClinit ( ) { } public boolean isConstructor ( ) { } public boolean isSynthetic ( ) { } private void readDeprecatedAndSyntheticAttributes ( ) { } private void readExceptionAttributes ( ) { } protected void reset ( ) { } public int sizeInBytes ( ) { } public String toString ( ) { int modifiers = getModifiers ( ) ; char [ ] desc = getGenericSignature ( ) ; if ( desc == null ) desc = getMethodDescriptor ( ) ; StringBuffer buffer = new StringBuffer ( this . getClass ( ) . getName ( ) ) ; <START_BUG> return buffer . append ( "{" ) . append ( ( ( ( ( ( ( ( ( ( modifiers & ( AccDeprecated ) ) != 0 ? "deprecated<seq2seq4repair_space>" : "" ) + ( ( modifiers & 1 ) == 1 ? "public<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 2 ) == 2 ? "private<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 4 ) == 4 ? "protected<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 8 ) == 8 ? "static<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 16 ) == 16 ? "final<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 64 ) == 64 ? "volatile<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 128 ) == 128 ? "transient<seq2seq4repair_space>" : "" ) ) ) . append ( getSelector ( ) ) . append ( desc ) . append ( "}" ) . toString ( ) ; <END_BUG> } }

Fix:
return buffer . append ( "{" ) . append ( ( ( ( ( ( ( ( ( ( modifiers & ( AccDeprecated ) ) != 0 ? "deprecated<seq2seq4repair_space>" : "" ) + ( ( modifiers & 1 ) == 1 ? "public<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 2 ) == 2 ? "private<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 4 ) == 4 ? "protected<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 8 ) == 8 ? "static<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 16 ) == 16 ? "final<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 64 ) == 64 ? "volatile<seq2seq4repair_space>" : "" ) ) + ( ( modifiers & 128 ) == 128 ? "varargs<seq2seq4repair_space>" : "" ) ) ) . append ( getSelector ( ) ) . append ( desc ) . append ( "}" ) . toString ( ) ;
Buggy code:
public class Assignment extends Expression { public Expression lhs ; public Expression expression ; public Assignment ( Expression lhs , Expression expression , int sourceEnd ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } void checkAssignmentEffect ( BlockScope scope ) { } void checkAssignment ( BlockScope scope , TypeBinding lhsType , TypeBinding rhsType ) { FieldBinding leftField = getLastField ( this . lhs ) ; if ( ( ( ( leftField != null ) && ( rhsType != ( NullBinding ) ) ) && ( lhsType . isWildcard ( ) ) ) && ( ( ( ( WildcardBinding ) ( lhsType ) ) . kind ) != ( Wildcard . SUPER ) ) ) { scope . problemReporter ( ) . wildcardAssignment ( lhsType , rhsType , this . expression ) ; } else <START_BUG> if ( ( ( leftField != null ) && ( leftField . declaringClass . isRawType ( ) ) ) && ( ( rhsType . isParameterizedType ( ) ) || ( rhsType . isGenericType ( ) ) ) ) { <END_BUG> scope . problemReporter ( ) . unsafeRawFieldAssignment ( leftField , rhsType , this . lhs ) ; } else if ( ( rhsType . isRawType ( ) ) && ( ( lhsType . isBoundParameterizedType ( ) ) || ( lhsType . isGenericType ( ) ) ) ) { scope . problemReporter ( ) . unsafeRawConversion ( this . expression , rhsType , lhsType ) ; } } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } Binding getDirectBinding ( Expression someExpression ) { } FieldBinding getLastField ( Expression someExpression ) { } public StringBuffer print ( int indent , StringBuffer output ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public StringBuffer printExpressionNoParenthesis ( int indent , StringBuffer output ) { } public StringBuffer printStatement ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { } public TypeBinding resolveTypeExpecting ( BlockScope scope , TypeBinding expectedType ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
if ( ( ( ( leftField != null ) && ( ( leftField . declaringClass ) != null ) ) && ( leftField . declaringClass . isRawType ( ) ) ) && ( ( rhsType . isParameterizedType ( ) ) || ( rhsType . isGenericType ( ) ) ) ) {
Buggy code:
public class Common { public static final ResponseCodeHandler MOVED_PERMANENTLY = new ResponseCodeHandler ( 301 ) ; public static final ResponseCodeHandler TEMPORARY_REDIRECT = new ResponseCodeHandler ( 307 ) ; public static final ResponseCodeHandler UNAUTHORIZED = new ResponseCodeHandler ( 403 ) ; public static final ResponseCodeHandler NOT_FOUND = ResponseCodeHandler . HANDLE_404 ; public static final ResponseCodeHandler METHOD_NOT_ALLOWED_HANDLER = new ResponseCodeHandler ( 405 ) ; public static final ResponseCodeHandler UNSUPPORTED_MEDIA_TYPE = new ResponseCodeHandler ( 415 ) ; public static final ResponseCodeHandler INTERNAL_SERVER_ERROR = new ResponseCodeHandler ( 500 ) ; public static final ResponseCodeHandler SERVICE_UNAVAIABLE = new ResponseCodeHandler ( 503 ) ; static final String APPLICATION_DMR_ENCODED = "application//dmr-encoded" ; static final String APPLICATION_JSON = "application//json" ; static final String TEXT_PLAIN = "text//plain" ; static final String TEXT_HTML = "text//html" ; static final int ONE_WEEK = ( ( 7 * 24 ) * 60 ) * 60 ; static String UTF_8 = "utf-8" ; static void sendError ( HttpServerExchange exchange , boolean encode , String msg ) { } static void sendError ( HttpServerExchange exchange , boolean encode , ModelNode msg ) { } private static void sendError ( HttpServerExchange exchange , boolean encode , ModelNode msg , int errorCode ) { } private static int getErrorResponseCode ( String failureMsg ) { int result = 500 ; <START_BUG> if ( ( failureMsg != null ) && ( failureMsg . contains ( "JBAS013456" ) ) ) { <END_BUG> result = 403 ; } return result ; } }

Fix:
if ( ( failureMsg != null ) && ( failureMsg . contains ( "WFLYCTL0313" ) ) ) {