nus-yam/ex-repair huggingface dataset:
Buggy code:
public class ClassLiteralAccess extends Expression { public TypeReference type ; public TypeBinding targetType ; FieldBinding syntheticField ; public ClassLiteralAccess ( int sourceEnd , TypeReference t ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { SourceTypeBinding sourceType = currentScope . outerMostMethodScope ( ) . enclosingSourceType ( ) ; if ( ( ! ( ( sourceType . isInterface ( ) ) || ( sourceType . isBaseType ( ) ) ) ) && ( ( currentScope . environment ( ) . options . sourceLevel ) <= ( ClassFileConstants . JDK1_5 ) ) ) { <START_BUG> syntheticField = sourceType . addSyntheticField ( targetType , currentScope ) ; <END_BUG> } return flowInfo ; } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
syntheticField = sourceType . addSyntheticFieldForClassLiteral ( targetType , currentScope ) ;
Buggy code:
public class MetaAction extends ReadAction { public static final String StartValue = "0" ; public static final String LimitValue = "50" ; public MetaAction ( ActionParameters actionParameters ) { } @ Override public void writeResponse ( JsonObject writer ) throws Throwable { } private void writeSortFields ( JsonObject writer , Collection < Field > sortFields ) { } private void writeGroupFields ( JsonObject writer , Collection < Field > groupFields ) { } class Section { FieldGroup group = null ; Collection < Object > controls = new ArrayList < Object > ( ) ; Section ( FieldGroup group ) { } void add ( Object control ) { } boolean isEmpty ( ) { } } private MetaAction . Section getSections ( FieldGroup group , Collection < Field > fields ) { } <START_BUG> @ SuppressWarnings ( "unchecked" ) <END_BUG> private Collection < Control > collectControls ( ) { Query query = getQuery ( ) ; if ( ( actionParameters ( ) . link ) != null ) { return ( ( Collection ) ( getSelectFields ( ) ) ) ; } Collection < Control > controls = new ArrayList < Control > ( ) ; Query context = query . getContext ( ) ; if ( context != null ) { controls = context . getControls ( ) ; } if ( controls . isEmpty ( ) ) { controls = query . getControls ( ) ; } Query rootQuery = query . getRootQuery ( ) ; if ( ( controls . isEmpty ( ) ) && ( rootQuery != query ) ) { controls = rootQuery . getControls ( ) ; } return controls ; } private void writeSections ( JsonObject writer , Collection < Field > fields ) { } private void writeSection ( JsonObject writer , MetaAction . Section section ) { } }

Fix:
@ SuppressWarnings ( { "unchecked" , "rawtypes" } )
Buggy code:
public class TestSpecialNumbers2 extends BaseKernelTest { public TestSpecialNumbers2 ( String name ) { } public void setUp ( ) { } public void testShortMax ( ) { } public void testShortMin ( ) { } public void testLongMax ( ) { } public void testLongMin ( ) { } public void testIntegerMax ( ) { } public void testIntegerMin ( ) { } public void testFloatMax ( ) { } public void testFloatMin ( ) { } public void testFloatNaN ( ) { } public void testFloatNegativeInfinity ( ) { } public void testFloatPostivieInfinity ( ) { } public void testDoubleMax ( ) { } public void testDoubleMin ( ) { try { AllFieldTypesTest aftt = new AllFieldTypesTest ( ) ; aftt . setTestdouble ( Double . MIN_VALUE ) ; saveAndQuery ( aftt , "testdouble<seq2seq4repair_space>=" , new Double ( Double . MIN_VALUE ) ) ; } catch ( Exception e ) { bug ( EnumSet . of ( POSTGRESQL , SQLSERVER , ORACLE , EMPRESS , DB2 , INFORMIX , DERBY ) , 494 , e , "Some<seq2seq4repair_space>databases<seq2seq4repair_space>cannot<seq2seq4repair_space>store<seq2seq4repair_space>Double.MIN_VALUE" ) ; } catch ( AssertionFailedError e ) { <START_BUG> bug ( MYSQL , 494 , e , "Some<seq2seq4repair_space>databases<seq2seq4repair_space>cannot<seq2seq4repair_space>store<seq2seq4repair_space>Double.MIN_VALUE" ) ; <END_BUG> } } public void testDoubleNaN ( ) { } public void testDoubleNegativeInfinity ( ) { } public void testDoublePostivieInfinity ( ) { } public void testByteMin ( ) { } public void testByteMax ( ) { } public void testZeroBigInteger ( ) { } public void testOneBigInteger ( ) { } private void saveAndQuery ( Object obj , String query , Object param ) { } }

Fix:
bug ( EnumSet . of ( MARIADB , MYSQL ) , 494 , e , "Some<seq2seq4repair_space>databases<seq2seq4repair_space>cannot<seq2seq4repair_space>store<seq2seq4repair_space>Double.MIN_VALUE" ) ;
Buggy code:
public class WorldScreen extends Screen { GameManager myManager ; int [ ] oppArray = new int [ 8 ] ; public WorldScreen ( Game game ) { } public int location ; public int bubbleType ; public void bgmPlayer ( int BGM ) { } public void openRegionScreen ( int regionNum ) { myManager . setCurrentRegion ( regionNum ) ; switch ( myManager . getOpportunityArray ( ) [ ( regionNum - 1 ) ] ) { case 0 : game . setScreen ( new RegionScreen ( game ) ) ; break ; case 1 : myManager . getOpportunityArray ( ) [ ( regionNum - 1 ) ] = 0 ; if ( regionNum < 5 ) game . setScreen ( new BuyScreen ( game ) ) ; else game . setScreen ( new SellScreen ( game ) ) ; break ; case 2 : myManager . getOpportunityArray ( ) [ ( regionNum - 1 ) ] = 0 ; <START_BUG> game . setScreen ( new EventScreen ( game , true ) ) ; <END_BUG> break ; } } @ Override public void update ( float deltaTime ) { } @ Override public void present ( float deltaTime ) { } public void displayBubble ( int location , int bubbleType ) { } @ Override public void pause ( ) { } @ Override public void resume ( ) { } @ Override public void dispose ( ) { } }

Fix:
game . setScreen ( new EventScreen ( game , true , myManager . generateEvent ( ) ) ) ;
Buggy code:
class TransactionSubsystem13Parser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { public static final TransactionSubsystem13Parser INSTANCE = new TransactionSubsystem13Parser ( ) ; private TransactionSubsystem13Parser ( ) { } @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { } private void parseJts ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } private void parseUsehornetqstore ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } static void parseObjectStoreEnvironmentElementAndEnrichOperation ( final XMLExtendedStreamReader reader , ModelNode operation ) throws XMLStreamException { } static void parseJdbcStoreElementAndEnrichOperation ( final XMLExtendedStreamReader reader , ModelNode operation ) throws XMLStreamException { } static void parseJdbcStoreConfigElementAndEnrichOperation ( final XMLExtendedStreamReader reader , final ModelNode operation , final SimpleAttributeDefinition tablePrefix , final SimpleAttributeDefinition dropTable ) throws XMLStreamException { } static void parseCoordinatorEnvironmentElement ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } static void parseCoreEnvironmentElement ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } static void parseProcessIdEnvironmentElement ( XMLExtendedStreamReader reader , ModelNode coreEnvironmentAdd ) throws XMLStreamException { } static void parseSocketProcessIdElement ( XMLExtendedStreamReader reader , ModelNode coreEnvironmentAdd ) throws XMLStreamException { } static void parseRecoveryEnvironmentElement ( final XMLExtendedStreamReader reader , final ModelNode operation ) throws XMLStreamException { } @ Override public void writeContent ( XMLExtendedStreamWriter writer , SubsystemMarshallingContext context ) throws XMLStreamException { } private void writeProcessId ( final XMLExtendedStreamWriter writer , final ModelNode value ) throws XMLStreamException { writer . writeStartElement ( PROCESS_ID . getLocalName ( ) ) ; <START_BUG> if ( value . get ( PROCESS_ID_UUID . getName ( ) ) . asBoolean ( ) ) { <END_BUG> writer . writeEmptyElement ( UUID . getLocalName ( ) ) ; } else { writer . writeStartElement ( SOCKET . getLocalName ( ) ) ; PROCESS_ID_SOCKET_BINDING . marshallAsAttribute ( value , writer ) ; PROCESS_ID_SOCKET_MAX_PORTS . marshallAsAttribute ( value , writer ) ; writer . writeEndElement ( ) ; } writer . writeEndElement ( ) ; } }

Fix:
if ( value . get ( PROCESS_ID_UUID . getName ( ) ) . asBoolean ( false ) ) {
Buggy code:
public class JORClientTester { private final Display display ; private final Shell shell ; private final JavaOnRailsClient client ; private final JavaOnRailsServer server ; public JORClientTester ( ) { } public void run ( ) { shell . open ( ) ; <START_BUG> client . goToUrl ( "http:////localhost:3000//test.txt" ) ; <END_BUG> while ( ! ( shell . isDisposed ( ) ) ) { if ( ! ( display . readAndDispatch ( ) ) ) display . sleep ( ) ; } display . dispose ( ) ; client . dispose ( ) ; } static JORClientTester jorct ; public static void main ( String [ ] args ) throws URISyntaxException { } }

Fix:
client . goToUrl ( "http:////localhost:3000//assets//badger.png" ) ;
Buggy code:
public class ContactTest { @ Before public void resetLastIdTest ( ) { } @ Test public void getNameTest ( ) { } @ Test public void addGetNotesTest ( ) { } @ Test public void getIDTest ( ) { ContactImpl testCon1 = new ContactImpl ( "joe<seq2seq4repair_space>Bloggs" ) ; ContactImpl testCon2 = new ContactImpl ( "John<seq2seq4repair_space>Smith" ) ; ContactImpl testCon3 = new ContactImpl ( "Mrs<seq2seq4repair_space>Something" ) ; ContactImpl testCon4 = new ContactImpl ( "Mr<seq2seq4repair_space>Nobody" ) ; <START_BUG> int output = testCon3 . getId ( ) ; <END_BUG> int expected = 4 ; assertEquals ( expected , output ) ; } }

Fix:
int output = testCon4 . getId ( ) ;
Buggy code:
public class QuickAccessDialog extends PopupDialog { private static final int INITIAL_COUNT_PER_PROVIDER = 5 ; private static final int MAX_COUNT_TOTAL = 20 ; private Text filterText ; private QuickAccessProvider [ ] providers ; private IWorkbenchWindow window ; private Table table ; private LocalResourceManager resourceManager = new LocalResourceManager ( JFaceResources . getResources ( ) ) ; private static final String TEXT_ARRAY = "textArray" ; private static final String TEXT_ENTRIES = "textEntries" ; private static final String ORDERED_PROVIDERS = "orderedProviders" ; private static final String ORDERED_ELEMENTS = "orderedElements" ; static final int MAXIMUM_NUMBER_OF_ELEMENTS = 60 ; static final int MAXIMUM_NUMBER_OF_TEXT_ENTRIES_PER_ELEMENT = 3 ; protected String rememberedText ; protected Map textMap = new HashMap ( ) ; protected Map elementMap = new HashMap ( ) ; private LinkedList previousPicksList = new LinkedList ( ) ; protected Map providerMap ; private Color grayColor ; private TextLayout textLayout ; private TriggerSequence [ ] invokingCommandKeySequences ; private Command invokingCommand ; private KeyAdapter keyAdapter ; private boolean showAllMatches = false ; protected boolean resized = false ; QuickAccessDialog ( IWorkbenchWindow window , final Command invokingCommand ) { } protected Control createTitleControl ( Composite parent ) { } protected Control createDialogArea ( Composite parent ) { } private int computeNumberOfItems ( ) { } private void refresh ( String filter ) { } protected final TriggerSequence [ ] getInvokingCommandKeySequences ( ) { } private KeyAdapter getKeyAdapter ( ) { } private void toggleShowAllMatches ( ) { } private int refreshTable ( QuickAccessElement perfectMatch , List [ ] entries ) { } private List [ ] computeMatchingEntries ( String filter , QuickAccessElement perfectMatch , int maxCount ) { } protected Control getFocusControl ( ) { } public boolean close ( ) { } protected Point getInitialSize ( ) { <START_BUG> if ( ! ( getPersistBounds ( ) ) ) { <END_BUG> return new Point ( 350 , 420 ) ; } return super . getInitialSize ( ) ; } protected Point getInitialLocation ( Point initialSize ) { } protected IDialogSettings getDialogSettings ( ) { } protected String getId ( ) { } private void storeDialog ( IDialogSettings dialogSettings ) { } private void restoreDialog ( ) { } protected void handleElementSelected ( String text , Object selectedElement ) { } private void addPreviousPick ( String text , Object element ) { } private void handleSelection ( ) { } private class PreviousPicksProvider extends QuickAccessProvider { public QuickAccessElement getElementForId ( String id ) { } public QuickAccessElement [ ] getElements ( ) { } public QuickAccessElement [ ] getElementsSorted ( ) { } public String getId ( ) { } public ImageDescriptor getImageDescriptor ( ) { } public String getName ( ) { } } }

Fix:
if ( ! ( getPersistSize ( ) ) ) {
Buggy code:
public interface IColumnContainer { public void addColumn ( IColumn column ) { } public boolean isMarkedForDelete ( ) { } <START_BUG> public long getMarkedForDeleteAt ( ) ; <END_BUG> public AbstractType getComparator ( ) { } }

Fix:
public IClock getMarkedForDeleteAt ( ) ;
Buggy code:
public final class StandardDeployerConfiguration implements DeployerConfiguration { private final int deploymentTimeoutSeconds ; private final PathReference deploymentPickupDirectory ; private final int scanIntervalMillis ; public StandardDeployerConfiguration ( int deploymentTimeout , File pickupDirectory , int scanIntervalMillis ) { } public int getDeploymentTimeoutSeconds ( ) { } public PathReference getDeploymentPickupDirectory ( ) { } public int getScanIntervalMillis ( ) { } public String toString ( ) { <START_BUG> return String . format ( "Timeout:<seq2seq4repair_space>'%s',<seq2seq4repair_space>Pickup<seq2seq4repair_space>directory:<seq2seq4repair_space>'%s',<seq2seq4repair_space>Scan<seq2seq4repair_space>interval<seq2seq4repair_space>in<seq2seq4repair_space>millis" , this . deploymentTimeoutSeconds , this . deploymentPickupDirectory , this . scanIntervalMillis ) ; <END_BUG> } }

Fix:
return String . format ( "Timeout:<seq2seq4repair_space>'%s',<seq2seq4repair_space>Pickup<seq2seq4repair_space>directory:<seq2seq4repair_space>'%s',<seq2seq4repair_space>Scan<seq2seq4repair_space>interval<seq2seq4repair_space>in<seq2seq4repair_space>millis:<seq2seq4repair_space>'%s'" , this . deploymentTimeoutSeconds , this . deploymentPickupDirectory , this . scanIntervalMillis ) ;
Buggy code:
final class SaddlePointExpansion { private static final double HALF_LOG_2_PI = 0.5 * ( FastMath . log ( TWO_PI ) ) ; private static final double [ ] EXACT_STIRLING_ERRORS = new double [ ] { 0.0 , 0.15342640972002736 , 0.08106146679532726 , 0.05481412105191765 , 0.0413406959554093 , 0.03316287351993629 , 0.02767792568499834 , 0.023746163656297496 , 0.020790672103765093 , 0.018488450532673187 , 0.016644691189821193 , 0.015134973221917378 , 0.013876128823070748 , 0.012810465242920227 , 0.01189670994589177 , 0.011104559758206917 , 0.010411265261972096 , 0.009799416126158804 , 0.009255462182712733 , 0.008768700134139386 , 0.00833056343336287 , 0.00793411456431402 , 0.007573675487951841 , 0.007244554301320383 , 0.00694284010720953 , 0.006665247032707682 , 0.006408994188004207 , 0.006171712263039458 , 0.0059513701127588475 , 0.0057462165130101155 , 0.005554733551962801 } ; private SaddlePointExpansion ( ) { } static double getStirlingError ( double z ) { } static double getDeviancePart ( double x , double mu ) { double ret ; if ( ( FastMath . abs ( ( x - mu ) ) ) < ( 0.1 * ( x + mu ) ) ) { double d = x - mu ; double v = d // ( x + mu ) ; double s1 = v * d ; double s = Double . NaN ; double ej = ( 2.0 * x ) * v ; <START_BUG> v = v * v ; <END_BUG> int j = 1 ; while ( s1 != s ) { s = s1 ; ej *= v ; s1 = s + ( ej // ( ( j * 2 ) + 1 ) ) ; ++ j ; } ret = s1 ; } else { ret = ( ( x * ( FastMath . log ( ( x // mu ) ) ) ) + mu ) - x ; } return ret ; } static double logBinomialProbability ( int x , int n , double p , double q ) { } }

Fix:
v *= v ;
Buggy code:
public class MainActivity extends Activity implements MainDrawerFragment . NavigationDrawerCallbacks { private static String TAG = MainActivity . class . getSimpleName ( ) ; private MainDrawerFragment mNavigationDrawerFragment ; private CharSequence mTitle ; DBAdapter db ; private static String API_URL = "https:////personal-trainer-api.herokuapp.com//" ; private SharedPreferences mPreferences ; private User currentUser ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_main ) ; mNavigationDrawerFragment = ( ( MainDrawerFragment ) ( getFragmentManager ( ) . findFragmentById ( navigation_drawer ) ) ) ; mTitle = getTitle ( ) ; mNavigationDrawerFragment . setUp ( navigation_drawer , ( ( DrawerLayout ) ( findViewById ( drawer_layout ) ) ) ) ; mNavigationDrawerFragment . closeDrawer ( ) ; createDB ( ) ; Log . v ( MainActivity . TAG , "database<seq2seq4repair_space>created" ) ; db = new DBAdapter ( this ) ; Log . v ( MainActivity . TAG , "DBAdapter<seq2seq4repair_space>initialised." ) ; try { db . open ( ) ; Log . v ( MainActivity . TAG , "Database<seq2seq4repair_space>opened." ) ; db . close ( ) ; Log . v ( MainActivity . TAG , "Database<seq2seq4repair_space>closed." ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } <START_BUG> mPreferences = getSharedPreferences ( "CurrentUser" , MODE_PRIVATE ) ; <END_BUG> if ( ! ( mPreferences . contains ( "AuthToken" ) ) ) { navigateToLogin ( ) ; } else { } } @ Override public void onNavigationDrawerItemSelected ( int position ) { } public void onSectionAttached ( int number ) { } public void restoreActionBar ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public static class PlaceholderFragment extends Fragment { private static final String ARG_SECTION_NUMBER = "section_number" ; public static MainActivity . PlaceholderFragment newInstance ( int sectionNumber ) { } public PlaceholderFragment ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onAttach ( Activity activity ) { } } public void navigateToLogin ( ) { } private void copyDB ( InputStream input , OutputStream output ) throws IOException { } private void createDB ( ) { } public void createDefaultWorkout ( ) { } public User getCurrentUser ( ) { } public void setCurrentUser ( User currentUser ) { } }

Fix:
mPreferences = getApplicationContext ( ) . getSharedPreferences ( "CurrentUser" , MODE_PRIVATE ) ;
Buggy code:
public class ModClusterListProxies implements OperationStepHandler , DescriptionProvider { static final ModClusterListProxies INSTANCE = new ModClusterListProxies ( ) ; @ Override public ModelNode getModelDescription ( Locale locale ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { <START_BUG> if ( context . getProcessType ( ) . isServer ( ) ) { <END_BUG> context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { ServiceController < ? > controller = context . getServiceRegistry ( false ) . getService ( NAME ) ; ModCluster modcluster = ( ( ModCluster ) ( controller . getValue ( ) ) ) ; Map < InetSocketAddress , String > map = modcluster . getProxyInfo ( ) ; ModClusterLogger . ROOT_LOGGER . debugf ( "Mod_cluster<seq2seq4repair_space>ListProxies<seq2seq4repair_space>%s" , map ) ; if ( ! ( map . isEmpty ( ) ) ) { final ModelNode result = new ModelNode ( ) ; Object [ ] addr = map . keySet ( ) . toArray ( ) ; for ( int i = 0 ; i < ( addr . length ) ; i ++ ) { InetSocketAddress address = ( ( InetSocketAddress ) ( addr [ i ] ) ) ; result . add ( ( ( ( address . getHostName ( ) ) + ":" ) + ( address . getPort ( ) ) ) ) ; } context . getResult ( ) . set ( result ) ; } context . completeStep ( ) ; } } , RUNTIME ) ; } context . completeStep ( ) ; } }

Fix:
if ( context . isNormalServer ( ) ) {
Buggy code:
public class DefaultWeavingContext implements IWeavingContext { protected ClassLoader loader ; private String shortName ; public DefaultWeavingContext ( ClassLoader loader ) { } public Enumeration getResources ( String name ) throws IOException { } public String getBundleIdFromURL ( URL url ) { } public String getClassLoaderName ( ) { <START_BUG> return ( loader ) != null ? ( ( loader . getClass ( ) . getName ( ) ) + "@" ) + ( Integer . toHexString ( loader . hashCode ( ) ) ) : "null" ; <END_BUG> } public String getFile ( URL url ) { } public String getId ( ) { } public String getSuffix ( ) { } public boolean isLocallyDefined ( String classname ) { } }

Fix:
return ( loader ) != null ? ( ( loader . getClass ( ) . getName ( ) ) + "@" ) + ( Integer . toHexString ( System . identityHashCode ( loader ) ) ) : "null" ;
Buggy code:
public class HttpRequest { private static String execute ( final Callable < String > task , final long timeout , final TimeUnit unit ) throws IOException , TimeoutException { } public static String get ( final String spec , final long timeout , final TimeUnit unit ) throws IOException , ExecutionException , TimeoutException { } public static String get ( final String spec , final long waitUntilAvailableMs , final long responseTimeout , final TimeUnit responseTimeoutUnit ) throws IOException , ExecutionException , TimeoutException { } public static String get ( final String spec , final String username , final String password , final long timeout , final TimeUnit unit ) throws IOException , TimeoutException { } private static String read ( final InputStream in ) throws IOException { } private static String processResponse ( HttpURLConnection conn ) throws IOException { int responseCode = conn . getResponseCode ( ) ; if ( responseCode != ( HttpURLConnection . HTTP_OK ) ) { final InputStream err = conn . getErrorStream ( ) ; try { <START_BUG> throw new IOException ( HttpRequest . read ( err ) ) ; <END_BUG> } finally { err . close ( ) ; } } final InputStream in = conn . getInputStream ( ) ; try { return HttpRequest . read ( in ) ; } finally { in . close ( ) ; } } public static String put ( final String spec , final String message , final long timeout , final TimeUnit unit ) throws MalformedURLException , ExecutionException , TimeoutException { } private static String execRequestMethod ( final String spec , final String message , final long timeout , final TimeUnit unit , final String requestMethod ) throws MalformedURLException , ExecutionException , TimeoutException { } public static String post ( final String spec , final String message , final long timeout , final TimeUnit unit ) throws MalformedURLException , ExecutionException , TimeoutException { } public static String delete ( final String spec , final String message , final long timeout , final TimeUnit unit ) throws MalformedURLException , ExecutionException , TimeoutException { } public static String head ( final String spec , final String message , final long timeout , final TimeUnit unit ) throws MalformedURLException , ExecutionException , TimeoutException { } private static void write ( OutputStream out , String message ) throws IOException { } }

Fix:
throw new IOException ( ( ( ( "HTTP<seq2seq4repair_space>Status<seq2seq4repair_space>" + responseCode ) + "<seq2seq4repair_space>Response:<seq2seq4repair_space>" ) + ( HttpRequest . read ( err ) ) ) ) ;
Buggy code:
class SecurityActions { static ModuleClassLoader getModuleClassLoader ( final String moduleSpec ) throws ModuleLoadException { try { return AccessController . doPrivileged ( new PrivilegedExceptionAction < ModuleClassLoader > ( ) { public ModuleClassLoader run ( ) throws ModuleLoadException { <START_BUG> ModuleLoader loader = Module . getCurrentModuleLoader ( ) ; <END_BUG> ModuleIdentifier identifier = ModuleIdentifier . fromString ( moduleSpec ) ; return loader . loadModule ( identifier ) . getClassLoader ( ) ; } } ) ; } catch ( PrivilegedActionException pae ) { throw new ModuleLoadException ( pae ) ; } } }

Fix:
ModuleLoader loader = Module . getCallerModuleLoader ( ) ;
Buggy code:
public class EnabledEditor extends AbstractCellEditor implements TableCellEditor { JCheckBox component = new JCheckBox ( ) ; PluginNode currentNode ; public EnabledEditor ( ) { } public int getClickCountToStart ( ) { } public Component getTableCellEditorComponent ( JTable table , Object value , boolean isSelected , int rowIndex , int vColIndex ) { } public Object getCellEditorValue ( ) { <START_BUG> Boolean b = new Boolean ( ( ( JCheckBox ) ( component ) ) . isSelected ( ) ) ; <END_BUG> currentNode . setEnabled ( b . booleanValue ( ) ) ; System . out . println ( ( "cell-editor=" + b ) ) ; return b ; } public Component getComponent ( ) { } }

Fix:
Boolean b = Boolean . valueOf ( ( ( JCheckBox ) ( component ) ) . isSelected ( ) ) ;
Buggy code:
public abstract class Document { private String text ; protected Document ( String text ) { } protected List < String > getTokens ( String pattern ) { } protected int countSyllables ( String word ) { } public static boolean testCase ( Document doc , int syllables , int words , int sentences ) { } public abstract int getNumWords ( ) { } public abstract int getNumSentences ( ) { } public abstract int getNumSyllables ( ) { } public String getText ( ) { } public double getFleschScore ( ) { <START_BUG> return ( 206.835 - ( 1.015 * ( ( getNumWords ( ) ) // ( getNumSentences ( ) ) ) ) ) - ( 84.6 * ( ( getNumSyllables ( ) ) // ( getNumWords ( ) ) ) ) ; <END_BUG> } }

Fix:
return ( 206.835 - ( ( 1.015 * ( getNumWords ( ) ) ) // ( getNumSentences ( ) ) ) ) - ( ( 84.6 * ( getNumSyllables ( ) ) ) // ( getNumWords ( ) ) ) ;
Buggy code:
@ SuppressWarnings ( "deprecation" ) public class HWPFFileHandler extends POIFSFileHandler { @ Override public void handleFile ( InputStream stream ) throws Exception { } protected void handleWordDocument ( HWPFDocument doc ) throws IOException { } @ Test public void test ( ) throws Exception { <START_BUG> File file = new File ( "test-data//document//47304.doc" ) ; <END_BUG> InputStream stream = new FileInputStream ( file ) ; try { handleFile ( stream ) ; } finally { stream . close ( ) ; } handleExtracting ( file ) ; stream = new FileInputStream ( file ) ; try { WordExtractor extractor = new WordExtractor ( stream ) ; try { assertNotNull ( extractor . getText ( ) ) ; } finally { extractor . close ( ) ; } } finally { stream . close ( ) ; } } No newline ; at end ; of file ; }

Fix:
File file = new File ( "test-data//document//51921-Word-Crash067.doc" ) ;
Buggy code:
public class ComplexFormat extends Format implements Serializable { private static final long serialVersionUID = - 6337346779577272306L ; private static final String DEFAULT_IMAGINARY_CHARACTER = "i" ; private String imaginaryCharacter ; private NumberFormat imaginaryFormat ; private 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 String formatComplex ( Complex c ) { } public StringBuffer format ( Complex complex , StringBuffer toAppendTo , FieldPosition pos ) { } public StringBuffer format ( Object obj , StringBuffer toAppendTo , FieldPosition pos ) { } private StringBuffer formatDouble ( double value , NumberFormat format , StringBuffer toAppendTo , FieldPosition pos ) { } public static Locale [ ] getAvailableLocales ( ) { } private static NumberFormat getDefaultNumberFormat ( ) { } private static NumberFormat getDefaultNumberFormat ( Locale locale ) { } public String getImaginaryCharacter ( ) { } public NumberFormat getImaginaryFormat ( ) { } public static ComplexFormat getInstance ( ) { } public static ComplexFormat getInstance ( Locale locale ) { } public NumberFormat getRealFormat ( ) { } public Complex parse ( String source ) throws ParseException { } public Complex parse ( String source , ParsePosition pos ) { } private void parseAndIgnoreWhitespace ( String source , ParsePosition pos ) { } private char parseNextCharacter ( String source , ParsePosition pos ) { } private Number parseNumber ( String source , double value , ParsePosition pos ) { Number ret = null ; StringBuffer sb = new StringBuffer ( ) ; sb . append ( '(' ) ; sb . append ( value ) ; sb . append ( ')' ) ; int n = sb . length ( ) ; int startIndex = pos . getIndex ( ) ; int endIndex = startIndex + n ; if ( endIndex < ( source . length ( ) ) ) { if ( ( source . substring ( startIndex , endIndex ) . compareTo ( sb . toString ( ) ) ) == 0 ) { <START_BUG> ret = Double . valueOf ( value ) ; <END_BUG> pos . setIndex ( endIndex ) ; } } return ret ; } private Number parseNumber ( String source , NumberFormat format , ParsePosition pos ) { } public Object parseObject ( String source , ParsePosition pos ) { } public void setImaginaryCharacter ( String imaginaryCharacter ) { } public void setImaginaryFormat ( NumberFormat imaginaryFormat ) { } public void setRealFormat ( NumberFormat realFormat ) { } }

Fix:
ret = new Double ( value ) ;
Buggy code:
public class JSONString extends JSONObject { protected String value ; public JSONString ( ) { } public JSONString ( String value ) { } public JSONString ( String fieldName , String value ) { } @ Override public String toJSON ( ) { String result = createFieldName ( ) ; <START_BUG> result += ( "\"" + ( value ) ) + "\"" ; <END_BUG> return result ; } public String getValue ( ) { } public void setValue ( String value ) { } }

Fix:
result += ( "\"" + ( safeJSONString ( value ) ) ) + "\"" ;
Buggy code:
public class StreamRequestVerbHandler implements IVerbHandler { private static Logger logger_ = Logger . getLogger ( StreamRequestVerbHandler . class ) ; public void doVerb ( Message message ) { if ( StreamRequestVerbHandler . logger_ . isDebugEnabled ( ) ) StreamRequestVerbHandler . logger_ . debug ( ( "Received<seq2seq4repair_space>a<seq2seq4repair_space>StreamRequestMessage<seq2seq4repair_space>from<seq2seq4repair_space>" + ( message . getFrom ( ) ) ) ) ; byte [ ] body = message . getMessageBody ( ) ; ByteArrayInputStream bufIn = new ByteArrayInputStream ( body ) ; try { StreamRequestMessage streamRequestMessage = StreamRequestMessage . serializer ( ) . deserialize ( new DataInputStream ( bufIn ) ) ; StreamRequestMetadata [ ] streamRequestMetadata = streamRequestMessage . streamRequestMetadata_ ; for ( StreamRequestMetadata srm : streamRequestMetadata ) { if ( StreamRequestVerbHandler . logger_ . isDebugEnabled ( ) ) StreamRequestVerbHandler . logger_ . debug ( srm . toString ( ) ) ; <START_BUG> StreamOut . transferRanges ( srm . target_ , srm . ranges_ , null ) ; <END_BUG> } } catch ( IOException ex ) { throw new IOError ( ex ) ; } } }

Fix:
StreamOut . transferRanges ( srm . target_ , srm . table_ , srm . ranges_ , null ) ;
Buggy code:
public class FlagActivity extends Activity { private String text ; private String id ; private String date ; private byte [ ] pic ; private String weather ; private static final String TAG = "FlagActivity" ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( flag_layout ) ; Bundle bundle = getIntent ( ) . getExtras ( ) ; text = bundle . getString ( "text" ) ; id = bundle . getString ( "id" ) ; date = bundle . getString ( "date" ) ; weather = bundle . getString ( "weather" ) ; ImageView iw = ( ( ImageView ) ( findViewById ( R . id . pic ) ) ) ; if ( ( bundle . getByteArray ( "pic" ) ) != null ) { pic = new byte [ bundle . getByteArray ( "pic" ) . length ] ; System . arraycopy ( bundle . getByteArray ( "pic" ) , 0 , pic , 0 , pic . length ) ; iw . setImageBitmap ( BitmapFactory . decodeByteArray ( pic , 0 , pic . length ) ) ; } else { iw . setMaxHeight ( 0 ) ; iw . setMaxWidth ( 0 ) ; } ( ( android . widget . EditText ) ( findViewById ( R . id . text ) ) ) . setText ( text ) ; <START_BUG> final String weatherString = ( ( weather ) == "" ) ? "" : ",<seq2seq4repair_space>" + ( weather ) ; <END_BUG> if ( ! ( userIdMap . containsKey ( id ) ) ) { Utils . fetchFbUsername ( id ) ; final Handler handler = new Handler ( ) ; handler . post ( new Runnable ( ) { @ Override public void run ( ) { if ( ! ( userIdMap . containsKey ( id ) ) ) handler . postDelayed ( this , UPDATE_DELAY ) ; else ( ( TextView ) ( findViewById ( author ) ) ) . setText ( ( ( ( ( userIdMap . get ( id ) ) + ",<seq2seq4repair_space>" ) + ( date ) ) + weatherString ) ) ; } } ) ; } else ( ( TextView ) ( findViewById ( author ) ) ) . setText ( ( ( ( ( userIdMap . get ( id ) ) + ",<seq2seq4repair_space>" ) + ( date ) ) + weatherString ) ) ; if ( ! ( userProfilePicMapLarge . containsKey ( id ) ) ) { try { Utils . fetchFbProfilePic ( id , LARGE_PIC_SIZE ) ; } catch ( MalformedURLException mue ) { mue . printStackTrace ( ) ; } catch ( IOException ioe ) { ioe . printStackTrace ( ) ; } final Handler handler = new Handler ( ) ; handler . post ( new Runnable ( ) { @ Override public void run ( ) { if ( ! ( userProfilePicMapLarge . containsKey ( id ) ) ) handler . postDelayed ( this , UPDATE_DELAY ) ; else streamProfilePic ( ) ; } } ) ; } else streamProfilePic ( ) ; } protected void streamProfilePic ( ) { } }

Fix:
final String weatherString = ( ( ( weather ) == null ) || ( weather . equals ( "" ) ) ) ? "" : ",<seq2seq4repair_space>" + ( weather ) ;
Buggy code:
public class DefaultProxyContainerFinder extends AbstractContainerFinder implements IProxyContainerFinder { protected IContainer [ ] getContainers ( IServiceID serviceID , IRemoteServiceEndpointDescription endpointDescription ) { <START_BUG> IContainer [ ] allContainers = getAllContainers ( ) ; <END_BUG> if ( allContainers == null ) return null ; List results = new ArrayList ( ) ; for ( int i = 0 ; i < ( allContainers . length ) ; i ++ ) { ID containerID = allContainers [ i ] . getID ( ) ; if ( ( containerID == null ) || ( containerID . equals ( endpointDescription . getEndpointAsID ( ) ) ) ) continue ; if ( includeContainerWithConnectNamespace ( allContainers [ i ] , ( ( String ) ( endpointDescription . getProperty ( ENDPOINT_CONTAINERID_NAMESPACE ) ) ) ) ) results . add ( allContainers [ i ] ) ; } return ( ( IContainer [ ] ) ( results . toArray ( new IContainer [ ] { } ) ) ) ; } protected IRemoteServiceContainer [ ] getRemoteServiceContainers ( IServiceID serviceID , IRemoteServiceEndpointDescription endpointDescription ) { } public IRemoteServiceContainer [ ] findProxyContainers ( IServiceID serviceID , IRemoteServiceEndpointDescription endpointDescription , IProgressMonitor monitor ) { } protected IConnectContext getConnectContext ( IRemoteServiceContainer rsContainer , ID connectTargetID ) { } protected IRemoteServiceContainer [ ] connectRemoteServiceContainers ( IRemoteServiceContainer [ ] rsContainers , ID connectTargetID , IProgressMonitor monitor ) { } }

Fix:
IContainer [ ] allContainers = getContainers ( ) ;
Buggy code:
public class SecurityPanel extends DefaultPanel implements ActionListener { private JLabel idLabel ; private JTextField idTextField ; private JLabel typeLabel ; private JComboBox typeComboBox ; private JLabel pathLabel ; private JButton pathButton ; private JCheckBox enableCheckBox ; private JCheckBox alwaysSignCheckBox ; private JCheckBox alwaysEncryptCheckBox ; private PGPItem item ; public SecurityPanel ( PGPItem item ) { } protected void updateComponents ( boolean b ) { } protected void layoutComponents ( ) { <START_BUG> FormLayout layout = new FormLayout ( "10dlu,<seq2seq4repair_space>max(100;default),<seq2seq4repair_space>3dlu,<seq2seq4repair_space>fill:max(150dlu;default):grow<seq2seq4repair_space>" , "" ) ; <END_BUG> DefaultFormBuilder builder = new DefaultFormBuilder ( this , layout ) ; builder . setDefaultDialogBorder ( ) ; builder . setLeadingColumnOffset ( 1 ) ; builder . appendSeparator ( MailResourceLoader . getString ( "dialog" , "account" , "pgp_options" ) ) ; builder . nextLine ( ) ; builder . append ( enableCheckBox , 3 ) ; builder . nextLine ( ) ; builder . append ( idLabel , 1 ) ; builder . append ( idTextField ) ; builder . nextLine ( ) ; builder . append ( alwaysSignCheckBox , 3 ) ; builder . nextLine ( ) ; } protected void initComponents ( ) { } public void enablePGP ( boolean b ) { } public void actionPerformed ( ActionEvent e ) { } public boolean isFinished ( ) { } }

Fix:
FormLayout layout = new FormLayout ( "10dlu,<seq2seq4repair_space>max(70dlu;default),<seq2seq4repair_space>3dlu,<seq2seq4repair_space>fill:max(150dlu;default):grow<seq2seq4repair_space>" , "" ) ;
Buggy code:
public class MarkupCache { private static final Log log = LogFactory . getLog ( MarkupCache . class ) ; private final Map markupCache = new HashMap ( ) ; private final Application application ; public MarkupCache ( final Application application ) { } public final MarkupStream getMarkupStream ( final MarkupContainer container , final Class clazz ) { final Markup markup = getMarkup ( container , clazz ) ; if ( markup != ( Markup . NO_MARKUP ) ) { return new MarkupStream ( markup ) ; } else { <START_BUG> throw new WicketRuntimeException ( ( ( "Markup<seq2seq4repair_space>not<seq2seq4repair_space>found.<seq2seq4repair_space>Component<seq2seq4repair_space>class:<seq2seq4repair_space>" + ( clazz . getName ( ) ) ) + "<seq2seq4repair_space>Enable<seq2seq4repair_space>debug<seq2seq4repair_space>messages<seq2seq4repair_space>for<seq2seq4repair_space>wicket.util.resource.Resource<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>a<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>all<seq2seq4repair_space>filenames<seq2seq4repair_space>tried." ) ) ; <END_BUG> } } public final boolean hasAssociatedMarkup ( final MarkupContainer container , final Class clazz ) { } private final Markup getMarkup ( final MarkupContainer container , Class clazz ) { } private final Markup loadMarkup ( final String key , final IResourceStream markupResourceStream ) { } private final Markup loadMarkupAndWatchForChanges ( final String key , final IResourceStream markupResourceStream ) { } private final String markupKey ( final MarkupContainer container , final Class clazz ) { } public void clear ( ) { } }

Fix:
throw new wicket . WicketRuntimeException ( ( ( "Markup<seq2seq4repair_space>not<seq2seq4repair_space>found.<seq2seq4repair_space>Component<seq2seq4repair_space>class:<seq2seq4repair_space>" + ( clazz != null ? clazz . getName ( ) : container . getClass ( ) . getName ( ) ) ) + "<seq2seq4repair_space>Enable<seq2seq4repair_space>debug<seq2seq4repair_space>messages<seq2seq4repair_space>for<seq2seq4repair_space>wicket.util.resource.Resource<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>a<seq2seq4repair_space>list<seq2seq4repair_space>of<seq2seq4repair_space>all<seq2seq4repair_space>filenames<seq2seq4repair_space>tried." ) ) ;
Buggy code:
public class Main { private static final int PATCH_VERSION = 0 ; private static final int MINOR_VERSION = 1 ; private static final int MAJOR_VERSION = 0 ; public static final int WIDTH = 800 ; public static final int HEIGHT = 800 ; public static void main ( String [ ] args ) { String version = ( ( ( ( "v" + ( Main . MAJOR_VERSION ) ) + "." ) + ( Main . MINOR_VERSION ) ) + "." ) + ( Main . PATCH_VERSION ) ; int bckgrndTerrainShift = ( ( int ) ( ( ( Math . random ( ) ) * 30 ) * 2 ) ) - 30 ; System . out . println ( bckgrndTerrainShift ) ; Window window = new Window ( ) ; <START_BUG> Terrain terrain = new Terrain ( 1.0F , 1.0F , ( - 0.5F ) , bckgrndTerrainShift , 6 , new Vector2i ( 0 , 5 ) ) ; <END_BUG> Terrain bckgrndTerrain = new Terrain ( 1.0F , 1.0F , ( - 0.5F ) , ( bckgrndTerrainShift + 10 ) , 6 , new Vector2i ( 0 , 40 ) ) ; Terrain bckgrndTerrain2 = new Terrain ( 1.0F , 1.0F , ( - 0.8F ) , ( bckgrndTerrainShift + 15 ) , 6 , new Vector2i ( 0 , 60 ) ) ; Sky sky = new Sky ( ) ; Player player = new Player ( ) ; window . addBase ( sky ) ; window . addBase ( bckgrndTerrain2 ) ; window . addBase ( bckgrndTerrain ) ; window . addBase ( terrain ) ; window . addBase ( player ) ; window . create ( ( "Artillery<seq2seq4repair_space>" + version ) , Main . WIDTH , Main . HEIGHT ) ; } }

Fix:
Terrain terrain = new Terrain ( 1.0F , 1.0F , 0 , bckgrndTerrainShift , 6 , new Vector2i ( 0 , 5 ) ) ;
Buggy code:
public class FxChangeRepository { private static final String BASE_URL = "http:////ministocks-app.appspot.com//getcurrencydata" ; private boolean hasFxSymbols ( List < String > symbols ) { } public HashMap < String , String > getChanges ( Cache cache , List < String > symbols ) { HashMap < String , String > changes = new HashMap < > ( ) ; if ( ! ( this . hasFxSymbols ( symbols ) ) ) { return changes ; } try { JSONObject jsonChanges = retrieveChangesAsJson ( cache ) ; String symbol ; for ( Iterator < String > iter = jsonChanges . keys ( ) ; iter . hasNext ( ) ; ) { symbol = iter . next ( ) ; <START_BUG> changes . put ( symbol , jsonChanges . getString ( iter . next ( ) ) ) ; <END_BUG> } } catch ( JSONException e ) { return null ; } return changes ; } public JSONObject retrieveChangesAsJson ( Cache cache ) throws JSONException { } }

Fix:
changes . put ( symbol , jsonChanges . getString ( symbol ) ) ;
Buggy code:
public final class DataSourcesAdd extends AbstractSubsystemAdd < DataSourcesSubsystemElement > { private static final long serialVersionUID = - 874698675049495644L ; private DataSources datasources ; public DataSources getDatasources ( ) { } public void setDatasources ( DataSources datasources ) { } protected DataSourcesAdd ( ) { } protected < P > void applyUpdate ( UpdateContext updateContext , UpdateResultHandler < ? super Void , P > resultHandler , P param ) { } @ Override protected void applyUpdateBootAction ( final BootUpdateContext updateContext ) { applyUpdate ( updateContext , NULL , null ) ; <START_BUG> updateContext . addDeploymentProcessor ( new org . jboss . as . connector . deployers . processors . DataSourcesAttachmentProcessor ( datasources ) , DATA_SOURCES_ATTACHMENT_PROCESSOR ) ; <END_BUG> } protected DataSourcesSubsystemElement createSubsystemElement ( ) { } }

Fix:
updateContext . addDeploymentProcessor ( PARSE , new org . jboss . as . connector . deployers . processors . DataSourcesAttachmentProcessor ( datasources ) , PARSE_DATA_SOURCES ) ;
Buggy code:
public class SecureRoundsUI extends JFrame { static String tagID ; public SecureRoundsUI ( ) { } @ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { } private void quitButtomActionPerformed ( ActionEvent evt ) { } private void submitButtonActionPerformed ( ActionEvent evt ) { String user = usernameBox . getText ( ) ; String pass = passwordBox . getText ( ) ; if ( ( ( ( ( user . contains ( "dbyland" ) ) && ( pass . contains ( "dbyland123" ) ) ) || ( ( user . contains ( "jcooper" ) ) && ( pass . contains ( "jcooper123" ) ) ) ) || ( ( user . contains ( "jmanno" ) ) && ( pass . contains ( "jmanno123" ) ) ) ) || ( ( user . contains ( "kvydra" ) ) && ( pass . contains ( "katya123" ) ) ) ) { this . setVisible ( false ) ; new mainMenu ( ) . setVisible ( true ) ; } else { <START_BUG> JOptionPane . showMessageDialog ( null , "Either<seq2seq4repair_space>the<seq2seq4repair_space>name<seq2seq4repair_space>of<seq2seq4repair_space>password<seq2seq4repair_space>is<seq2seq4repair_space>incorrect,<seq2seq4repair_space>try<seq2seq4repair_space>again." , "Wrong<seq2seq4repair_space>Login" , JOptionPane . ERROR_MESSAGE ) ; <END_BUG> } } public static void main ( String [ ] args ) { } private JLabel jLabel1 ; private JLabel jLabel2 ; private JLabel jLabel3 ; private JPanel jPanel1 ; private JPanel jPanel3 ; private JPasswordField passwordBox ; private JButton quitButtom ; private JButton submitButton ; private JTextField usernameBox ; }

Fix:
JOptionPane . showMessageDialog ( null , "Either<seq2seq4repair_space>the<seq2seq4repair_space>name<seq2seq4repair_space>or<seq2seq4repair_space>password<seq2seq4repair_space>is<seq2seq4repair_space>incorrect,<seq2seq4repair_space>try<seq2seq4repair_space>again." , "Wrong<seq2seq4repair_space>Login" , JOptionPane . ERROR_MESSAGE ) ;
Buggy code:
public class SQLGenerator { private IdentifierManager idManager ; public SQLGenerator ( IdentifierManager idManager ) { } public String getSQL ( boolean isSelectDistinct , String selectPath , String userWhereClause , JDBCReadAheadMetaData readAhead ) { } public String getSelectClause ( boolean isSelectDistinct , String selectPath , JDBCReadAheadMetaData readAhead ) { } private String getSelectClause ( AbstractSchema schema , JDBCReadAheadMetaData readAhead ) { JDBCEntityBridge selectEntity = schema . getEntityBridge ( ) ; List loadFields = new ArrayList ( ) ; loadFields . addAll ( selectEntity . getPrimaryKeyFields ( ) ) ; <START_BUG> if ( ! ( readAhead . isOnFind ( ) ) ) { <END_BUG> String eagerLoadGroupName = readAhead . getEagerLoadGroup ( ) ; loadFields . addAll ( selectEntity . getLoadGroup ( eagerLoadGroupName ) ) ; } String identifier = idManager . getTableAlias ( schema ) ; return SQLUtil . getColumnNamesClause ( loadFields , identifier ) ; } private String getSelectClause ( CMRField cmrField , JDBCReadAheadMetaData readAhead ) { } private String getSelectClause ( CMPField cmpField ) { } public String getFromClause ( ) { } public String getTableDeclarations ( EntityPathElement pathElement ) { } public String getWhereClause ( String whereClause ) { } public String getTableWhereClause ( CMRField cmrField ) { } }

Fix:
if ( readAhead . isOnFind ( ) ) {
Buggy code:
public class TeleportCommand extends CommandAreaShop { public TeleportCommand ( AreaShop plugin ) { } @ Override public String getCommandStart ( ) { } @ Override public String getHelp ( CommandSender target ) { } @ Override public void execute ( CommandSender sender , Command command , String [ ] args ) { <START_BUG> if ( ( ( ( ! ( sender . hasPermission ( "areashop.teleport" ) ) ) && ( ! ( sender . hasPermission ( "areashop.teleportall" ) ) ) ) && ( ! ( sender . hasPermission ( "areashop.teleportsign" ) ) ) ) && ( ! ( sender . hasPermission ( "areashop.teleportsignall" ) ) ) ) { <END_BUG> plugin . message ( sender , "teleport-noPermission" ) ; return ; } if ( ! ( sender instanceof Player ) ) { plugin . message ( sender , "cmd-onlyByPlayer" ) ; return ; } if ( ( ( args . length ) <= 1 ) || ( ( args [ 1 ] ) == null ) ) { plugin . message ( sender , "teleport-help" ) ; return ; } Player player = ( ( Player ) ( sender ) ) ; GeneralRegion region = plugin . getFileManager ( ) . getRegion ( args [ 1 ] ) ; if ( region == null ) { plugin . message ( player , "teleport-noRentOrBuy" , args [ 1 ] ) ; return ; } if ( ( ( args . length ) >= 3 ) && ( ( ( args [ 2 ] . equalsIgnoreCase ( "sign" ) ) || ( args [ 2 ] . equalsIgnoreCase ( "yes" ) ) ) || ( args [ 2 ] . equalsIgnoreCase ( "true" ) ) ) ) { region . teleportPlayer ( player , true ) ; } else { region . teleportPlayer ( player , false ) ; } } @ Override public List < String > getTabCompleteList ( int toComplete , String [ ] start , CommandSender sender ) { } }

Fix:
if ( ( ( ( ( ( ! ( sender . hasPermission ( "areashop.teleport" ) ) ) && ( ! ( sender . hasPermission ( "areashop.teleportall" ) ) ) ) && ( ! ( sender . hasPermission ( "areashop.teleportsign" ) ) ) ) && ( ! ( sender . hasPermission ( "areashop.teleportsignall" ) ) ) ) && ( ! ( sender . hasPermission ( "areashop.teleportfriend" ) ) ) ) && ( ! ( sender . hasPermission ( "teleportfriendsign" ) ) ) ) {