nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Version { private Version ( ) { } public static String id ( ) { <START_BUG> return "4.3" ; <END_BUG> } public static void main ( String [ ] args ) { } }

Fix:
return "4.4-snapshot-20070322-1027" ;
Buggy code:
class SegmentTermDocs implements TermDocs { protected SegmentReader parent ; private InputStream freqStream ; private int count ; private int df ; private BitVector deletedDocs ; int doc = 0 ; int freq ; private int skipInterval ; private int skipCount ; private InputStream skipStream ; private int skipDoc ; private long freqPointer ; private long proxPointer ; private long skipPointer ; private boolean haveSkipped ; SegmentTermDocs ( SegmentReader parent ) throws IOException { } public void seek ( Term term ) throws IOException { } public void seek ( ) { } void seek ( TermInfo ti ) throws IOException { } public void close ( ) throws IOException { } public final int doc ( ) { } public final int freq ( ) { } protected void skippingDoc ( ) throws IOException { } public boolean next ( ) throws IOException { } public int read ( final int [ ] docs , final int [ ] freqs ) throws IOException { } protected void skipProx ( long proxPointer ) throws IOException { } public boolean skipTo ( int target ) throws IOException { if ( ( df ) > ( skipInterval ) ) { if ( ( skipStream ) == null ) skipStream = ( ( InputStream ) ( freqStream . clone ( ) ) ) ; if ( ! ( haveSkipped ) ) { skipStream . seek ( skipPointer ) ; haveSkipped = true ; } int lastSkipDoc = skipDoc ; long lastFreqPointer = freqStream . getFilePointer ( ) ; long lastProxPointer = - 1 ; int numSkipped = ( - 1 ) - ( ( count ) % ( skipInterval ) ) ; while ( target > ( skipDoc ) ) { lastSkipDoc = skipDoc ; lastFreqPointer = freqPointer ; lastProxPointer = proxPointer ; if ( ( ( skipDoc ) != 0 ) && ( ( skipDoc ) >= ( doc ) ) ) numSkipped += skipInterval ; <START_BUG> if ( ( ( ( count ) + numSkipped ) + ( skipInterval ) ) > ( df ) ) <END_BUG> break ; skipDoc += skipStream . readVInt ( ) ; freqPointer += skipStream . readVInt ( ) ; proxPointer += skipStream . readVInt ( ) ; ( skipCount ) ++ ; } if ( lastFreqPointer > ( freqStream . getFilePointer ( ) ) ) { freqStream . seek ( lastFreqPointer ) ; skipProx ( lastProxPointer ) ; doc = lastSkipDoc ; count += numSkipped ; } } do { if ( ! ( next ( ) ) ) return false ; } while ( target > ( doc ) ) ; return true ; } }

Fix:
if ( ( ( ( count ) + numSkipped ) + ( skipInterval ) ) >= ( df ) )
Buggy code:
public class Service_Notify extends Service { Piggate _piggate ; static String notificationMsg = "Click<seq2seq4repair_space>to<seq2seq4repair_space>see<seq2seq4repair_space>the<seq2seq4repair_space>offer" ; @ Override public void onCreate ( ) { super . onCreate ( ) ; _piggate = new Piggate ( this ) ; _piggate . setListenerBeacon ( new Piggate . PiggateBeaconCallback ( ) { @ Override public void DeviceNotCompatible ( ) { } @ Override <START_BUG> public void BluetoohNotConnect ( ) { <END_BUG> } @ Override public void PreScanning ( ) { } @ Override public void onReady ( ) { } @ Override public void onErrorScanning ( ) { } @ Override public void GetNewBeacons ( ArrayList < PiggateBeacon > beacons ) { _piggate . postNotification ( "New<seq2seq4repair_space>offer!" , Service_Notify . notificationMsg , Activity_Main . class , ic_launcher ) ; } @ Override public void GetBeacons ( ArrayList < PiggateBeacon > beacons ) { } } ) ; _piggate . onStart ( ) ; } @ Override public int onStartCommand ( Intent intent , int flags , int startId ) { } @ Override public IBinder onBind ( Intent arg0 ) { } @ Override public void onDestroy ( ) { } @ Override public void onTaskRemoved ( Intent rootIntent ) { } }

Fix:
public void BluetoothNotConnect ( ) {
Buggy code:
public class AOConfigPropertyAdd extends AbstractBoottimeAddStepHandler implements DescriptionProvider { public static final AOConfigPropertyAdd INSTANCE = new AOConfigPropertyAdd ( ) ; @ Override public ModelNode getModelDescription ( Locale locale ) { } @ Override protected void populateModel ( ModelNode operation , ModelNode modelNode ) throws OperationFailedException { } @ Override protected void performBoottime ( OperationContext context , ModelNode operation , ModelNode recoveryEnvModel , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > serviceControllers ) throws OperationFailedException { <START_BUG> final String configPropertyValue = Constants . CONFIG_PROPERTY_VALUE . validateResolvedOperation ( recoveryEnvModel ) . asString ( ) ; <END_BUG> final ModelNode address = operation . require ( OP_ADDR ) ; PathAddress path = PathAddress . pathAddress ( address ) ; final String archiveName = path . getElement ( ( ( path . size ( ) ) - 3 ) ) . getValue ( ) ; final String aoName = path . getElement ( ( ( path . size ( ) ) - 2 ) ) . getValue ( ) ; final String configPropertyName = PathAddress . pathAddress ( address ) . getLastElement ( ) . getValue ( ) ; ServiceName serviceName = ServiceName . of ( RA_SERVICE , archiveName , aoName , configPropertyName ) ; ServiceName aoServiceName = ServiceName . of ( RA_SERVICE , archiveName , aoName ) ; final ServiceTarget serviceTarget = context . getServiceTarget ( ) ; final AOConfigPropertiesService service = new AOConfigPropertiesService ( configPropertyName , configPropertyValue ) ; ServiceController < ? > controller = serviceTarget . addService ( serviceName , service ) . setInitialMode ( ACTIVE ) . addDependency ( aoServiceName , ModifiableAdminObject . class , service . getAOInjector ( ) ) . addListener ( verificationHandler ) . install ( ) ; context . addStep ( verificationHandler , VERIFY ) ; } }

Fix:
final String configPropertyValue = Constants . CONFIG_PROPERTY_VALUE . resolveModelAttribute ( context , recoveryEnvModel ) . asString ( ) ;
Buggy code:
public class PanelMarkupSourcingStrategy extends AssociatedMarkupSourcingStrategy { public static final String PANEL = "panel" ; public PanelMarkupSourcingStrategy ( ) { } @ Override public void onComponentTagBody ( final Component component , final MarkupStream markupStream , final ComponentTag openTag ) { } @ Override public IMarkupFragment getMarkup ( final MarkupContainer parent , final Component child ) { IMarkupFragment markup = parent . getAssociatedMarkup ( ) ; if ( markup == null ) { throw new org . apache . wicket . markup . MarkupNotFoundException ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>markup<seq2seq4repair_space>file<seq2seq4repair_space>associated.<seq2seq4repair_space>" + ( parent . getClass ( ) . getSimpleName ( ) ) ) + ":<seq2seq4repair_space>" ) + ( parent . toString ( ) ) ) ) ; } IMarkupFragment panelMarkup = PanelMarkupSourcingStrategy . findPanelTag ( markup ) ; if ( panelMarkup == null ) { throw new org . apache . wicket . markup . MarkupNotFoundException ( ( "Expected<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space><wicket:panel><seq2seq4repair_space>in<seq2seq4repair_space>associated<seq2seq4repair_space>markup<seq2seq4repair_space>file.<seq2seq4repair_space>Markup:<seq2seq4repair_space>" + ( markup . toString ( ) ) ) ) ; } if ( child == null ) { return panelMarkup ; } markup = panelMarkup . find ( child . getId ( ) ) ; <START_BUG> if ( ( child == null ) || ( markup != null ) ) { <END_BUG> return markup ; } return findMarkupInAssociatedFileHeader ( parent , child ) ; } private static final IMarkupFragment findPanelTag ( final IMarkupFragment markup ) { } }

Fix:
if ( markup != null ) {
Buggy code:
public class ProgressView extends ViewPart implements IViewPart { ProgressTreeViewer viewer ; private Action cancelAction ; private Action deleteAction ; private Action showErrorAction ; public void createPartControl ( Composite parent ) { } public void setFocus ( ) { } protected void initContentProvider ( ) { } protected void initLabelProvider ( ) { } private void initContextMenu ( ) { } private void initPulldownMenu ( ) { IMenuManager menuMgr = ( ( org . eclipse . ui . internal . ViewSite ) ( getSite ( ) ) ) . getActionBars ( ) . getMenuManager ( ) ; menuMgr . add ( new Action ( ProgressMessages . getString ( "ProgressView.VerboseAction" ) , IAction . AS_CHECK_BOX ) { public void run ( ) { JobProgressManager provider = JobProgressManager . getInstance ( ) ; provider . debug = ! ( provider . debug ) ; setChecked ( provider . debug ) ; <START_BUG> provider . refreshViewers ( null ) ; <END_BUG> } } ) ; } private IStructuredSelection getSelection ( ) { } private JobInfo getSelectedInfo ( ) { } private ViewerSorter getViewerSorter ( ) { } private void createCancelAction ( ) { } private void createDeleteAction ( ) { } private void createShowErrorAction ( ) { } }

Fix:
provider . refreshAll ( ) ;
Buggy code:
public class DexResolver { private Map < File , DexlibWrapper > cache = new TreeMap < File , DexlibWrapper > ( ) ; public DexResolver ( Singletons . Global g ) { } public static DexResolver v ( ) { } public Dependencies resolveFromFile ( File file , String className , SootClass sc ) { DexlibWrapper wrapper = cache . get ( file ) ; if ( wrapper == null ) { wrapper = new DexlibWrapper ( file ) ; cache . put ( file , wrapper ) ; wrapper . initialize ( ) ; } Dependencies deps = wrapper . makeSootClass ( sc , className ) ; <START_BUG> DexResolver . addSourceFileTag ( sc , file . getAbsolutePath ( ) ) ; <END_BUG> return deps ; } protected static void addSourceFileTag ( SootClass sc , String fileName ) { } }

Fix:
DexResolver . addSourceFileTag ( sc , file . getName ( ) ) ;
Buggy code:
public class MonoHybrid { private int f ; ArrayList < MonoCreature > bufferMC = new ArrayList < MonoCreature > ( ) ; ArrayList < ArrayList < MonoCreature > > monoCreaturesTotalList = new ArrayList < ArrayList < MonoCreature > > ( ) ; MonoCreature [ ] seedCreatures = new MonoCreature [ 2 ] ; public MonoHybrid ( int maxGenerationsToSee ) { } protected void seedParents ( MonoCreature parent1 , MonoCreature parent2 ) { } private void fuseTwo ( MonoCreature parent1 , MonoCreature parent2 ) { <START_BUG> String [ ] gamete = new String [ 4 ] ; <END_BUG> MonoCreature [ ] offSpring = new MonoCreature [ 4 ] ; if ( parent1 . hasFused ( parent2 ) ) { System . out . println ( "Parents<seq2seq4repair_space>have<seq2seq4repair_space>already<seq2seq4repair_space>fused." ) ; System . out . println ( "Returning" ) ; return ; } else if ( parent1 == parent2 ) { System . out . println ( "Both<seq2seq4repair_space>parents<seq2seq4repair_space>are<seq2seq4repair_space>same" ) ; System . out . println ( "Returning" ) ; return ; } else if ( ( parent1 . hasNotFused ( parent2 ) ) || ( parent2 . hasNotFused ( parent1 ) ) ) { for ( int i = 0 ; i < 4 ; i ++ ) { if ( ( i == 0 ) || ( i == 1 ) ) { gamete [ i ] = parent1 . getGamete ( i ) ; System . out . print ( "From<seq2seq4repair_space>p1:<seq2seq4repair_space>" ) ; } else if ( ( i == 2 ) || ( i == 3 ) ) { gamete [ i ] = parent2 . getGamete ( ( i - 2 ) ) ; System . out . print ( "From<seq2seq4repair_space>p2:<seq2seq4repair_space>" ) ; } System . out . println ( ( ( ( "Gamete<seq2seq4repair_space>" + i ) + "<seq2seq4repair_space>is<seq2seq4repair_space>" ) + ( gamete [ i ] ) ) ) ; } System . out . println ( "\n" ) ; offSpring [ 0 ] = new MonoCreature ( gamete [ 0 ] , gamete [ 2 ] ) ; offSpring [ 1 ] = new MonoCreature ( gamete [ 0 ] , gamete [ 3 ] ) ; offSpring [ 2 ] = new MonoCreature ( gamete [ 1 ] , gamete [ 2 ] ) ; offSpring [ 3 ] = new MonoCreature ( gamete [ 1 ] , gamete [ 3 ] ) ; for ( int childInt = 0 ; childInt < 4 ; childInt ++ ) { System . out . println ( ( "for<seq2seq4repair_space>" + childInt ) ) ; System . out . println ( ( ( "Adding<seq2seq4repair_space>" + ( offSpring [ childInt ] . geneMakeup ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>buffer<seq2seq4repair_space>AL" ) ) ; bufferMC . add ( offSpring [ childInt ] ) ; System . out . println ( ( ( ( ( offSpring [ childInt ] . geneMakeup ( ) ) + "<seq2seq4repair_space>added\nTotal<seq2seq4repair_space>length<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>buffer<seq2seq4repair_space>array-list:<seq2seq4repair_space>" ) + ( bufferMC . size ( ) ) ) + "\n" ) ) ; } parent1 . fusedWith ( parent2 ) ; parent2 . fusedWith ( parent1 ) ; } } private void addToList ( ) { } private void generator ( ) { } private int totalCreaturesEver ( ) { } private void debugMC ( ) { } protected void nextGen ( ) { } }

Fix:
char [ ] gamete = new char [ 4 ] ;
Buggy code:
public class ChatList2 extends ArrayAdapter < String > { private Activity Cont ; private ArrayList < Message > Messages ; private Boolean TimeStamps ; private Boolean TimeFormat ; private SharedPreferences SharedPrefs ; private int TextColor ; private Typeface FontStyle ; public ChatList2 ( Activity context , ArrayList < Message > messages , ArrayList < String > text , int txtColor , Typeface fontStyle ) { } @ Override public View getView ( int position , View view , ViewGroup parent ) { TimeStamps = SharedPrefs . getBoolean ( "TimeStampEnabled" , false ) ; TimeFormat = SharedPrefs . getBoolean ( "24hrEnabled" , false ) ; Calendar c = Calendar . getInstance ( ) ; String timeStamp = "" ; if ( TimeStamps ) { SimpleDateFormat formatT = new SimpleDateFormat ( "hh:mm<seq2seq4repair_space>a" ) ; if ( TimeFormat ) { formatT = new SimpleDateFormat ( "HH:mm" ) ; } timeStamp = formatT . format ( c . getTime ( ) ) ; } LayoutInflater inflater = Cont . getLayoutInflater ( ) ; View rowView = inflater . inflate ( chat_list , null , true ) ; TextView txtHeader = ( ( TextView ) ( rowView . findViewById ( head ) ) ) ; TextView txtMessage = ( ( TextView ) ( rowView . findViewById ( msg ) ) ) ; txtHeader . setTextColor ( TextColor ) ; txtMessage . setTextColor ( TextColor ) ; txtHeader . setTypeface ( FontStyle ) ; txtMessage . setTypeface ( FontStyle ) ; String headerText = String . format ( "%s:<seq2seq4repair_space>%s" , Messages . get ( position ) . getName ( ) , timeStamp ) ; txtHeader . setText ( headerText ) ; txtMessage . setText ( Messages . get ( position ) . getMessage ( ) ) ; ImageView imageView = ( ( ImageView ) ( rowView . findViewById ( img ) ) ) ; BitmapDrawable currImg = null ; <START_BUG> if ( ( Messages . get ( position ) ) != null ) { <END_BUG> currImg = new BitmapDrawable ( Cont . getResources ( ) , Messages . get ( position ) . getPicture ( ) ) ; } if ( currImg == null ) { RelativeLayout . LayoutParams imgParams = ( ( RelativeLayout . LayoutParams ) ( imageView . getLayoutParams ( ) ) ) ; imgParams . height = 0 ; imgParams . topMargin = 0 ; imageView . setLayoutParams ( imgParams ) ; ViewGroup . LayoutParams msgParams = txtMessage . getLayoutParams ( ) ; txtMessage . setLayoutParams ( msgParams ) ; } else { Log . d ( "Str" , ( ( ( currImg . getIntrinsicHeight ( ) ) + "<seq2seq4repair_space>" ) + ( currImg . getIntrinsicWidth ( ) ) ) ) ; imageView . setBackground ( currImg ) ; } return rowView ; } public void setTextColor ( int newColor ) { } public void setFontStyle ( Typeface font ) { } }

Fix:
if ( ( Messages . get ( position ) . getPicture ( ) ) != null ) {
Buggy code:
public class Chmod extends ExecuteOn { private FileSet defaultSet = new FileSet ( ) ; private boolean defaultSetDefined = false ; private boolean havePerm = false ; public Chmod ( ) { } public void setProject ( Project project ) { } public void setFile ( File src ) { } public void setDir ( File src ) { } public void setPerm ( String perm ) { } public NameEntry createInclude ( ) { } public NameEntry createExclude ( ) { } public PatternSet createPatternSet ( ) { } public void setIncludes ( String includes ) { } public void setExcludes ( String excludes ) { } public void setDefaultexcludes ( boolean useDefaultExcludes ) { } protected void checkConfiguration ( ) { } public void execute ( ) throws BuildException { } public void setExecutable ( String e ) { } public void setCommand ( Commandline cmdl ) { } public void setSkipEmptyFilesets ( boolean skip ) { } public void setAddsourcefile ( boolean b ) { } protected boolean isValidOs ( ) { <START_BUG> return ( Os . isFamily ( "unix" ) ) && ( super . isValidOs ( ) ) ; <END_BUG> } }

Fix:
return ( Os . isFamily ( FAMILY_UNIX ) ) && ( super . isValidOs ( ) ) ;
Buggy code:
public class XMLSchemaAssertion extends AbstractTestElement implements Serializable , Assertion { public static final String FILE_NAME_IS_REQUIRED = "FileName<seq2seq4repair_space>is<seq2seq4repair_space>required" ; public static final String JAXP_SCHEMA_LANGUAGE = "http:////java.sun.com//xml//jaxp//properties//schemaLanguage" ; public static final String W3C_XML_SCHEMA = "http:////www.w3.org//2001//XMLSchema" ; public static final String JAXP_SCHEMA_SOURCE = "http:////java.sun.com//xml//jaxp//properties//schemaSource" ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; public static final String XSD_FILENAME_KEY = "xmlschema_assertion_filename" ; public AssertionResult getResult ( SampleResult response ) { AssertionResult result = new AssertionResult ( ) ; byte [ ] data = response . getResponseData ( ) ; <START_BUG> if ( ( data == null ) || ( ( data . length ) == 0 ) ) { <END_BUG> return result . setResultForNull ( ) ; } String resultData = new String ( getResultBody ( data ) ) ; String xsdFileName = getXsdFileName ( ) ; if ( XMLSchemaAssertion . log . isDebugEnabled ( ) ) { XMLSchemaAssertion . log . debug ( ( "xmlString:<seq2seq4repair_space>" + resultData ) ) ; XMLSchemaAssertion . log . debug ( ( "xsdFileName:<seq2seq4repair_space>" + xsdFileName ) ) ; } if ( ( xsdFileName == null ) || ( ( xsdFileName . length ( ) ) == 0 ) ) { result . setResultForFailure ( XMLSchemaAssertion . FILE_NAME_IS_REQUIRED ) ; } else { setSchemaResult ( result , resultData , xsdFileName ) ; } return result ; } private byte [ ] getResultBody ( byte [ ] resultData ) { } public void setXsdFileName ( String xmlSchemaFileName ) throws IllegalArgumentException { } public String getXsdFileName ( ) { } private void setSchemaResult ( AssertionResult result , String xmlStr , String xsdFileName ) { } private static String errorDetails ( SAXParseException spe ) { } private static class SAXErrorHandler implements ErrorHandler { private AssertionResult result ; public SAXErrorHandler ( AssertionResult result ) { } public void error ( SAXParseException exception ) throws SAXParseException { } public void fatalError ( SAXParseException exception ) throws SAXParseException { } public void warning ( SAXParseException exception ) throws SAXParseException { } } }

Fix:
if ( ( data . length ) == 0 ) {
Buggy code:
public class SetupConference extends TestCase { public SetupConference ( String name ) { } public static Test suite ( ) { } public void startFocus ( ) { } public void checkFocusJoinRoom ( ) { } public void startSecondParticipant ( ) { } public void checkSecondParticipantJoinRoom ( ) { } public void waitsFocusToJoinConference ( ) { } public void waitsSecondParticipantToJoinConference ( ) { } private void waitForSendReceiveData ( WebDriver participant ) { new WebDriverWait ( participant , 15 ) . until ( new ExpectedCondition < Boolean > ( ) { public Boolean apply ( WebDriver d ) { <START_BUG> Map stats = ( ( Map ) ( ( ( JavascriptExecutor ) ( ConferenceFixture . getFocus ( ) ) ) . executeScript ( "return<seq2seq4repair_space>ConnectionQuality.getStats();" ) ) ) ; <END_BUG> Map < String , Long > bitrate = ( ( Map < String , Long > ) ( stats . get ( "bitrate" ) ) ) ; if ( bitrate != null ) { long download = bitrate . get ( "download" ) ; long upload = bitrate . get ( "upload" ) ; if ( ( download > 0 ) && ( upload > 0 ) ) return true ; } return false ; } } ) ; } public void waitForFocusSendReceiveData ( ) { } public void waitForSecondParticipantSendReceiveData ( ) { } }

Fix:
Map stats = ( ( Map ) ( ( ( JavascriptExecutor ) ( ConferenceFixture . getFocus ( ) ) ) . executeScript ( "return<seq2seq4repair_space>connectionquality.getStats();" ) ) ) ;
Buggy code:
public abstract class SubRoutineStatement extends Statement { public static final ExceptionLabel [ ] NO_EXCEPTION_HANDLER = new ExceptionLabel [ 0 ] ; ExceptionLabel [ ] anyExceptionLabels = SubRoutineStatement . NO_EXCEPTION_HANDLER ; int anyExceptionLabelsCount = 0 ; public abstract boolean isSubRoutineEscaping ( ) { } public abstract void generateSubRoutineInvocation ( BlockScope currentScope , CodeStream codeStream ) { } public ExceptionLabel enterAnyExceptionHandler ( CodeStream codeStream ) { } public void exitAnyExceptionHandler ( ) { if ( ( this . anyExceptionLabelsCount ) == 0 ) return ; ExceptionLabel currentLabel = this . anyExceptionLabels [ ( ( this . anyExceptionLabelsCount ) - 1 ) ] ; if ( ( currentLabel . start ) == ( currentLabel . codeStream . position ) ) { <START_BUG> this . anyExceptionLabels [ ( ( this . anyExceptionLabelsCount ) -- ) ] = null ; <END_BUG> } currentLabel . placeEnd ( ) ; } public void placeAllAnyExceptionHandlers ( ) { } public static void reenterExceptionHandlers ( SubRoutineStatement [ ] subroutines , int max , CodeStream codeStream ) { } public void resetStateForCodeGeneration ( ) { } }

Fix:
this . anyExceptionLabels [ ( -- ( this . anyExceptionLabelsCount ) ) ] = null ;
Buggy code:
public class QueryTreeBuilder implements QueryBuilder { public static final String QUERY_TREE_BUILDER_TAGID = QueryTreeBuilder . class . getName ( ) ; private HashMap < Class < ? extends QueryNode > , QueryBuilder > queryNodeBuilders ; private HashMap < String , QueryBuilder > fieldNameBuilders ; public QueryTreeBuilder ( ) { } public void setBuilder ( String fieldName , QueryBuilder builder ) { } @ Deprecated public void setBuilder ( CharSequence fieldName , QueryBuilder builder ) { } public void setBuilder ( Class < ? extends QueryNode > queryNodeClass , QueryBuilder builder ) { } private void process ( QueryNode node ) throws QueryNodeException { } private QueryBuilder getBuilder ( QueryNode node ) { QueryBuilder builder = null ; if ( ( ( this . fieldNameBuilders ) != null ) && ( node instanceof FieldableNode ) ) { builder = this . fieldNameBuilders . get ( StringUtils . toString ( ( ( FieldableNode ) ( node ) ) . getField ( ) ) ) ; } if ( ( builder == null ) && ( ( this . queryNodeBuilders ) != null ) ) { Class < ? > clazz = node . getClass ( ) ; do { builder = getQueryBuilder ( clazz ) ; if ( builder == null ) { <START_BUG> Class < ? > [ ] classes = node . getClass ( ) . getInterfaces ( ) ; <END_BUG> for ( Class < ? > actualClass : classes ) { builder = getQueryBuilder ( actualClass ) ; if ( builder != null ) { break ; } } } } while ( ( builder == null ) && ( ( clazz = clazz . getSuperclass ( ) ) != null ) ) ; } return builder ; } private void processNode ( QueryNode node , QueryBuilder builder ) throws QueryNodeException { } private QueryBuilder getQueryBuilder ( Class < ? > clazz ) { } public Object build ( QueryNode queryNode ) throws QueryNodeException { } }

Fix:
Class < ? > [ ] classes = clazz . getInterfaces ( ) ;
Buggy code:
@ Component ( "referenceCCDATreeJsonView" ) public class ReferenceCCDATreeJsonView extends AbstractView { private Logger logger = Logger . getLogger ( ReferenceCCDATreeJsonView . class ) ; public ReferenceCCDATreeJsonView ( ) { } @ Override protected void renderMergedOutputModel ( Map map , HttpServletRequest request , HttpServletResponse response ) throws Exception { logger . info ( ( "Resolving<seq2seq4repair_space>ajax<seq2seq4repair_space>request<seq2seq4repair_space>view<seq2seq4repair_space>-<seq2seq4repair_space>" + map ) ) ; logger . info ( map . toString ( ) ) ; logger . info ( ( "content<seq2seq4repair_space>Type<seq2seq4repair_space>=<seq2seq4repair_space>" + ( getContentType ( ) ) ) ) ; response . setContentType ( "text//plain" ) ; response . setCharacterEncoding ( "UTF-8" ) ; response . getWriter ( ) . write ( map . get ( "jsonRoot" ) . toString ( ) ) ; System . out . println ( "000000000000000000000" ) ; System . out . println ( map . get ( "jsonRoot" ) . toString ( ) ) ; System . out . println ( request . toString ( ) ) ; <START_BUG> System . out . println ( "000000000000000000000" ) ; <END_BUG> response . getWriter ( ) . flush ( ) ; } No newline ; at end ; of file ; }

Fix:
System . out . println ( "ReferenceCCDATreeJsonView====View=====" ) ;
Buggy code:
public class Resource extends DataType implements Cloneable , Comparable , ResourceCollection { public static final long UNKNOWN_SIZE = - 1 ; public static final long UNKNOWN_DATETIME = 0L ; protected static final int MAGIC = Resource . getMagicNumber ( "Resource" . getBytes ( ) ) ; private static final int NULL_NAME = Resource . getMagicNumber ( "null<seq2seq4repair_space>name" . getBytes ( ) ) ; protected static int getMagicNumber ( byte [ ] seed ) { } private String name = null ; private Boolean exists = null ; private Long lastmodified = null ; private Boolean directory = null ; private Long size = null ; public Resource ( ) { } public Resource ( String name ) { } public Resource ( String name , boolean exists , long lastmodified ) { } public Resource ( String name , boolean exists , long lastmodified , boolean directory ) { } public Resource ( String name , boolean exists , long lastmodified , boolean directory , long size ) { } public String getName ( ) { } public void setName ( String name ) { } public boolean isExists ( ) { } public void setExists ( boolean exists ) { } public long getLastModified ( ) { } public void setLastModified ( long lastmodified ) { } public boolean isDirectory ( ) { } public void setDirectory ( boolean directory ) { } public void setSize ( long size ) { } public long getSize ( ) { } public Object clone ( ) { } public int compareTo ( Object other ) { } public boolean equals ( Object other ) { } public int hashCode ( ) { } public InputStream getInputStream ( ) throws IOException { } public OutputStream getOutputStream ( ) throws IOException { } public Iterator iterator ( ) { } public int size ( ) { } public boolean isFilesystemOnly ( ) { <START_BUG> return ( ( isReference ( ) ) && ( ( ( Resource ) ( getCheckedRef ( ) ) ) . isFilesystemOnly ( ) ) ) || ( ( this ) instanceof FileProvider ) ; <END_BUG> } public String toString ( ) { } public final String toLongString ( ) { } public void setRefid ( Reference r ) { } public Object as ( Class clazz ) { } }

Fix:
return ( ( isReference ( ) ) && ( ( ( Resource ) ( getCheckedRef ( ) ) ) . isFilesystemOnly ( ) ) ) || ( ( this . as ( FileProvider . class ) ) != null ) ;
Buggy code:
public class CrawlerTask implements Task < HttpURL , List < String > > { private static final long serialVersionUID = 3659366838266519515L ; private CrawlerJob _job ; public CrawlerTask ( CrawlerJob job ) { } @ Override public List < String > exec ( HttpURL a ) { try { <START_BUG> URLParser parser = new URLParser ( a . openConnection ( ) . getContent ( ) ) ; <END_BUG> parser . parse ( ) ; for ( HttpURL url : parser . get_urls ( ) ) { _job . getArgPool ( ) . put ( url ) ; } return parser . get_mailTos ( ) ; } catch ( UnknownHostException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } catch ( BadLocationException e ) { e . printStackTrace ( ) ; } return null ; } No newline ; at end ; of file ; }

Fix:
URLParser parser = new URLParser ( a . openConnection ( ) . getContent ( ) , a ) ;
Buggy code:
public class SingletonComponent extends SessionBeanComponent implements LockableComponent { private volatile SingletonComponentInstance singletonComponentInstance ; private final boolean initOnStartup ; private final Map < String , LockType > beanLevelLockType ; private final Map < EJBBusinessMethod , LockType > methodLockTypes ; private final Map < EJBBusinessMethod , AccessTimeoutDetails > methodAccessTimeouts ; private final List < ServiceName > dependsOn ; private final DefaultAccessTimeoutService defaultAccessTimeoutProvider ; private final Object creationLock = new Object ( ) ; public SingletonComponent ( final SingletonComponentCreateService singletonComponentCreateService , final List < ServiceName > dependsOn ) { } @ Override protected BasicComponentInstance instantiateComponentInstance ( Interceptor preDestroyInterceptor , Map < Method , Interceptor > methodInterceptors , Map < Object , Object > context ) { } public SingletonComponentInstance getComponentInstance ( ) { } @ Override public void start ( ) { super . start ( ) ; if ( this . initOnStartup ) { <START_BUG> ROOT_LOGGER . debugf ( "%s<seq2seq4repair_space>bean<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>@Startup<seq2seq4repair_space>(a.k.a<seq2seq4repair_space>init-on-startup)<seq2seq4repair_space>bean,<seq2seq4repair_space>creating//getting<seq2seq4repair_space>the<seq2seq4repair_space>singleton<seq2seq4repair_space>instance" , this . getComponentName ( ) ) ; <END_BUG> this . getComponentInstance ( ) ; } } @ Override public void done ( ) { } @ Override public LockType getLockType ( Method method ) { } @ Override public AccessTimeoutDetails getAccessTimeout ( Method method ) { } @ Override public AccessTimeoutDetails getDefaultAccessTimeout ( ) { } private void destroySingletonInstance ( ) { } @ Override public AllowedMethodsInformation getAllowedMethodsInformation ( ) { } private static ServiceContainer currentServiceContainer ( ) { } }

Fix:
ROOT_LOGGER . debug ( ( ( this . getComponentName ( ) ) + "<seq2seq4repair_space>bean<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>@Startup<seq2seq4repair_space>(a.k.a<seq2seq4repair_space>init-on-startup)<seq2seq4repair_space>bean,<seq2seq4repair_space>creating//getting<seq2seq4repair_space>the<seq2seq4repair_space>singleton<seq2seq4repair_space>instance" ) ) ;
Buggy code:
public class MainActivity extends ActionBarActivity { @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } <START_BUG> public void start ( View knapp ) { <END_BUG> Intent intent = new Intent ( this , test . class ) ; startActivity ( intent ) ; } }

Fix:
public void start ( View v ) {
Buggy code:
public class TestCompany { Company company ; @ Before public void initialize ( ) { <START_BUG> company = new Company . Builder ( ) . id ( 15 ) . name ( "Test" ) . build ( ) ; <END_BUG> } @ Test public void testGetId ( ) { } @ Test public void testGetName ( ) { } No newline ; at end ; of file ; }

Fix:
company = new Company . Builder ( ) . id ( 15L ) . name ( "Test" ) . build ( ) ;
Buggy code:
public class ShellBolt implements IBolt { public static Logger LOG = Logger . getLogger ( ShellBolt . class ) ; Process _subprocess ; OutputCollector _collector ; Map < String , Tuple > _inputs = new ConcurrentHashMap < String , Tuple > ( ) ; private String [ ] _command ; private ShellProcess _process ; private volatile boolean _running = true ; private volatile Throwable _exception ; private LinkedBlockingQueue _pendingWrites = new LinkedBlockingQueue ( ) ; private Random _rand ; private Thread _readerThread ; private Thread _writerThread ; public ShellBolt ( ShellComponent component ) { } public ShellBolt ( String ... command ) { } public void prepare ( Map stormConf , TopologyContext context , final OutputCollector collector ) { _rand = new Random ( ) ; _process = new ShellProcess ( _command ) ; _collector = collector ; try { Number subpid = _process . launch ( stormConf , context ) ; ShellBolt . LOG . info ( ( "Launched<seq2seq4repair_space>subprocess<seq2seq4repair_space>with<seq2seq4repair_space>pid<seq2seq4repair_space>" + subpid ) ) ; } catch ( IOException e ) { <START_BUG> throw new RuntimeException ( ( "Error<seq2seq4repair_space>when<seq2seq4repair_space>launching<seq2seq4repair_space>multilang<seq2seq4repair_space>subprocess\n" + ( _process . getErrorsString ( ) ) ) , e ) ; <END_BUG> } _readerThread = new Thread ( new Runnable ( ) { public void run ( ) { while ( _running ) { try { JSONObject action = _process . readMessage ( ) ; if ( action == null ) { } String command = ( ( String ) ( action . get ( "command" ) ) ) ; if ( command . equals ( "ack" ) ) { handleAck ( action ) ; } else if ( command . equals ( "fail" ) ) { handleFail ( action ) ; } else if ( command . equals ( "log" ) ) { String msg = ( ( String ) ( action . get ( "msg" ) ) ) ; ShellBolt . LOG . info ( ( "Shell<seq2seq4repair_space>msg:<seq2seq4repair_space>" + msg ) ) ; } else if ( command . equals ( "emit" ) ) { handleEmit ( action ) ; } } catch ( InterruptedException e ) { } catch ( Throwable t ) { die ( t ) ; } } } } ) ; _readerThread . start ( ) ; _writerThread = new Thread ( new Runnable ( ) { public void run ( ) { while ( _running ) { try { Object write = _pendingWrites . poll ( 1 , TimeUnit . SECONDS ) ; if ( write != null ) { _process . writeMessage ( write ) ; } } catch ( InterruptedException e ) { } catch ( Throwable t ) { die ( t ) ; } } } } ) ; _writerThread . start ( ) ; } public void execute ( Tuple input ) { } public void cleanup ( ) { } private void handleAck ( Map action ) { } private void handleFail ( Map action ) { } private void handleEmit ( Map action ) throws InterruptedException { } private void die ( Throwable exception ) { } }

Fix:
throw new RuntimeException ( "Error<seq2seq4repair_space>when<seq2seq4repair_space>launching<seq2seq4repair_space>multilang<seq2seq4repair_space>subprocess" , e ) ;
Buggy code:
public class DefaultSessionBeanAccessTimeoutWriteHandler extends AbstractWriteAttributeHandler < Void > { private final AttributeDefinition attribute ; private final ServiceName serviceName ; public DefaultSessionBeanAccessTimeoutWriteHandler ( final AttributeDefinition attribute , final ServiceName serviceName ) { } @ Override protected void validateResolvedValue ( String attributeName , ModelNode value ) throws OperationFailedException { } @ Override protected boolean applyUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode resolvedValue , ModelNode currentValue , HandbackHolder < Void > handbackHolder ) throws OperationFailedException { } @ Override protected void revertUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode valueToRestore , ModelNode valueToRevert , Void handback ) throws OperationFailedException { } private void applyModelToRuntime ( OperationContext context , final ModelNode model ) throws OperationFailedException { <START_BUG> long timeout = attribute . validateResolvedOperation ( model ) . asLong ( ) ; <END_BUG> final ServiceRegistry serviceRegistry = context . getServiceRegistry ( true ) ; ServiceController < DefaultAccessTimeoutService > controller = ( ( ServiceController < DefaultAccessTimeoutService > ) ( serviceRegistry . getService ( serviceName ) ) ) ; if ( controller != null ) { DefaultAccessTimeoutService service = controller . getValue ( ) ; if ( service != null ) { service . setDefaultAccessTimeout ( timeout ) ; } } } }

Fix:
long timeout = attribute . resolveModelAttribute ( context , model ) . asLong ( ) ;
Buggy code:
public class ComponentUtil { public static final Object [ ] EMPTY_ARRAY = new Object [ 0 ] ; private static ComponentRegistry registry ; private static ExtensionPointManager uiExtensionPoints = null ; private static ServiceExtensionPoint partServices = null ; private ComponentUtil ( ) { } public static ComponentRegistry getRegistry ( ) { } public static void disposeRegistry ( ) { } public static String getSimpleClassName ( String fullyQualifiedClassName ) { } public static Throwable getCause ( Throwable toQuery ) { } public static Class loadClass ( ClassIdentifier type ) throws ComponentException { } public static final ClassIdentifier getClassFromInitializationData ( IConfigurationElement config , Object data ) throws CoreException { } public static String getMessage ( Throwable toQuery ) { } public static String getAttribute ( IConfigurationElement element , String attributeId ) throws CoreException { String result = element . getAttribute ( attributeId ) ; if ( result == null ) { <START_BUG> throw new CoreException ( new Status ( IStatus . ERROR , element . getDeclaringExtension ( ) . getNamespace ( ) , IStatus . OK , NLS . bind ( ComponentUtil_missing_attribute , new Object [ ] { element . getName ( ) , attributeId , element . getDeclaringExtension ( ) . getExtensionPointUniqueIdentifier ( ) } ) , null ) ) ; <END_BUG> } return result ; } public static Throwable getMostSpecificCause ( Throwable exception ) { } private static Throwable getMostSpecificException ( Throwable exception ) { } public static Object createInstance ( Class implementation ) throws ComponentException { } public static IComponentScope getScope ( String scope ) { } public static ServiceFactory getContext ( String scope ) { } }

Fix:
throw new CoreException ( new Status ( IStatus . ERROR , element . getNamespace ( ) , IStatus . OK , NLS . bind ( ComponentUtil_missing_attribute , new Object [ ] { element . getName ( ) , attributeId , element . getDeclaringExtension ( ) . getExtensionPointUniqueIdentifier ( ) } ) , null ) ) ;
Buggy code:
public class RegionBasedHierarchyBuilder extends HierarchyBuilder { public RegionBasedHierarchyBuilder ( TypeHierarchy hierarchy ) throws JavaModelException { } public void build ( boolean computeSubtypes ) { JavaModelManager manager = JavaModelManager . getJavaModelManager ( ) ; try { manager . cacheZipFiles ( ) ; <START_BUG> if ( ( ( this . hierarchy . type ) == null ) || computeSubtypes ) { <END_BUG> IProgressMonitor typeInRegionMonitor = ( ( this . hierarchy . progressMonitor ) == null ) ? null : new SubProgressMonitor ( this . hierarchy . progressMonitor , 30 ) ; ArrayList allTypesInRegion = determineTypesInRegion ( typeInRegionMonitor ) ; this . hierarchy . initialize ( allTypesInRegion . size ( ) ) ; IProgressMonitor buildMonitor = ( ( this . hierarchy . progressMonitor ) == null ) ? null : new SubProgressMonitor ( this . hierarchy . progressMonitor , 70 ) ; createTypeHierarchyBasedOnRegion ( allTypesInRegion , buildMonitor ) ; ( ( RegionBasedTypeHierarchy ) ( this . hierarchy ) ) . pruneDeadBranches ( ) ; } else { this . hierarchy . initialize ( 1 ) ; this . buildSupertypes ( ) ; } } finally { manager . flushZipFiles ( ) ; } } private void createTypeHierarchyBasedOnRegion ( ArrayList allTypesInRegion , IProgressMonitor monitor ) { } private ArrayList determineTypesInRegion ( IProgressMonitor monitor ) { } private void injectAllTypesForJavaProject ( IJavaProject project , ArrayList types ) { } private void injectAllTypesForPackageFragment ( IPackageFragment packFrag , ArrayList types ) { } private void injectAllTypesForPackageFragmentRoot ( IPackageFragmentRoot root , ArrayList types ) { } private void injectAllTypesForTypeContainers ( IClassFile [ ] containers , ArrayList types ) { } private void injectAllTypesForTypeContainers ( ICompilationUnit [ ] containers , ArrayList types ) { } }

Fix:
if ( ( ( this . hierarchy . focusType ) == null ) || computeSubtypes ) {
Buggy code:
public class Canvas extends Composite { Caret caret ; Canvas ( ) { } public Canvas ( Composite parent , int style ) { } public Caret getCaret ( ) { } Caret getIMCaret ( ) { } void redrawWidget ( int x , int y , int width , int height , boolean redrawAll , boolean allChildren ) { } void releaseCildren ( boolean destroy ) { if ( ( caret ) != null ) { <START_BUG> caret . releaseChildren ( false ) ; <END_BUG> caret = null ; } super . releaseChildren ( destroy ) ; } public void scroll ( int destX , int destY , int x , int y , int width , int height , boolean all ) { } public void setCaret ( Caret caret ) { } boolean setBounds ( int x , int y , int width , int height , boolean move , boolean resize ) { } public void setFont ( Font font ) { } int XExposure ( int w , int client_data , int call_data , int continue_to_dispatch ) { } int xFocusIn ( XFocusChangeEvent xEvent ) { } int xFocusOut ( XFocusChangeEvent xEvent ) { } }

Fix:
caret . release ( false ) ;
Buggy code:
public class ID3ClassifierTest { @ Test public void testBasicID3Entropy ( ) throws IOException { } @ Test public void testBasicID3InfoGain ( ) throws IOException { Frame df = Datasets . loadPlay ( ) ; df = new rapaio . data . filter . frame . FFRetainTypes ( VarType . NOMINAL ) . fitApply ( df ) ; final String className = "class" ; <START_BUG> CTree id3 = new CTree ( ) . withNominalMethod ( new CTreeNominalMethod . Full ( ) ) . withNumericMethod ( new CTreeNumericMethod . IGNORE ( ) ) . withSplitter ( new CTreeSplitter . RemainsIgnored ( ) ) . withFunction ( new CTreeTestFunction . InfoGain ( ) ) ; <END_BUG> id3 . learn ( df , className ) ; id3 . predict ( df ) ; id3 . summary ( ) ; DensityTable dtWindy = new DensityTable ( df . var ( "windy" ) , df . var ( "class" ) ) ; DensityTable dtOutlook = new DensityTable ( df . var ( "outlook" ) , df . var ( "class" ) ) ; String splitCol = ( ( dtWindy . getInfoGain ( ) ) > ( dtOutlook . getInfoGain ( ) ) ) ? "windy" : "outlook" ; Assert . assertTrue ( id3 . getRoot ( ) . getChildren ( ) . get ( 0 ) . getGroupName ( ) . startsWith ( splitCol ) ) ; Summary . summary ( id3 ) ; } }

Fix:
CTree id3 = new CTree ( ) . withNominalMethod ( new CTreeNominalMethod . Full ( ) ) . withNumericMethod ( new CTreeNumericMethod . Ignore ( ) ) . withSplitter ( new CTreeSplitter . RemainsIgnored ( ) ) . withFunction ( new CTreeTestFunction . InfoGain ( ) ) ;
Buggy code:
public class AccessPage { public static void getPage ( String base64login , String urlp1 , String urlp2 ) throws IOException { Calendar now = Calendar . getInstance ( ) ; int calendarWeek = now . get ( Calendar . WEEK_OF_YEAR ) ; if ( ( ( now . get ( Calendar . DAY_OF_WEEK ) ) == ( Calendar . SATURDAY ) ) || ( ( now . get ( Calendar . DAY_OF_WEEK ) ) == ( Calendar . SUNDAY ) ) ) calendarWeek ++ ; <START_BUG> String url = ( urlp1 + calendarWeek ) + urlp2 ; <END_BUG> double start = System . nanoTime ( ) ; Document doc = Jsoup . connect ( url ) . header ( "Authorization" , ( "Basic<seq2seq4repair_space>" + base64login ) ) . get ( ) ; System . out . println ( ( ( "Connecting<seq2seq4repair_space>took:<seq2seq4repair_space>" + ( ( ( System . nanoTime ( ) ) - start ) // 1000000.0 ) ) + "ms." ) ) ; start = System . nanoTime ( ) ; ParseCancel . parse ( doc ) ; System . out . println ( ( ( "Parsing<seq2seq4repair_space>took:<seq2seq4repair_space>" + ( ( ( System . nanoTime ( ) ) - start ) // 1000000.0 ) ) + "ms." ) ) ; } No newline ; at end ; of file ; }

Fix:
String url = ( ( urlp1 + ( calendarWeek < 10 ? "0" : "" ) ) + calendarWeek ) + urlp2 ;
Buggy code:
public class PlaintextDaoTest { private static Logger log = Logger . getLogger ( PlaintextDaoTest . class ) ; private static ApplicationContext context ; private static BeanFactory factory ; @ BeforeClass public static void setUp ( ) throws Exception { } @ Test public void testFindByPlaintextId ( ) { PlaintextDao plaintextDao = ( ( PlaintextDao ) ( PlaintextDaoTest . factory . getBean ( "plaintextDao" ) ) ) ; Solution solution = new Solution ( 1 , 0 , 0 ) ; solution . setId ( 26 ) ; PlaintextId plaintextId = new PlaintextId ( solution , 5 ) ; Plaintext plaintext = plaintextDao . findByPlaintextId ( plaintextId ) ; <START_BUG> PlaintextDaoTest . log . info ( plaintext ) ; <END_BUG> } @ AfterClass public static void cleanUp ( ) { } }

Fix:
PlaintextDaoTest . log . info ( ( "Plaintext:<seq2seq4repair_space>" + plaintext ) ) ;
Buggy code:
public class Gen6Stats extends Stats { private static final int MAX_EV = 255 ; private static final int MAX_IV = 31 ; private static final int MAX_BASE = 255 ; private static final int MAX_VALUE = 714 ; private static final int MIN_EV = 0 ; private static final int MIN_IV = 0 ; private static final int MIN_BASE = 1 ; private static final int MIN_VALUE = 0 ; public Map < Stat , Integer > ivs ; public Map < Stat , Integer > evs ; public Map < Stat , Integer > base ; public Map < Stat , Integer > values ; public Nature nature ; public int level ; public Gen6Stats ( int level , int [ ] baseStats ) { } @ Override public boolean checkForValidValues ( ) { } private boolean checkForValidValues ( Map < Stat , Integer > values , int max , int min ) { } @ Override public int gen ( ) { } @ Override public Stats setIvs ( int hp , int attack , int defense , int spattack , int spdefense , int speed ) { } @ Override public Stats setEvs ( int hp , int attack , int defense , int spattack , int spdefense , int speed ) { } @ Override public Stats setBaseStats ( int hp , int attack , int defense , int spattack , int spdefense , int speed ) { } @ Override public Stats setCurrentValues ( int hp , int attack , int defense , int spattack , int spdefense , int speed ) { } @ Override public Stats setValuesFromStats ( int level ) { } private int calculateValue ( Stat stat , int base , int iv , int ev ) { } @ Override public Stats setNature ( Nature nature ) { } @ Override public Bundle save ( ) { } @ Override public Map < Stat , List < Integer > > calculateIvs ( ) { Map < Stat , List < Integer > > result = new HashMap < > ( ) ; for ( Stat stat : Stat . values ( gen ( ) ) ) { <START_BUG> result . put ( stat , IvTools . calculatePossibleStatValues ( gen ( ) , level , base . get ( stat ) , ivs . get ( stat ) , evs . get ( stat ) , nature . statModifier ( stat ) ) ) ; <END_BUG> } return result ; } @ Override public Stats calculateStats ( ) { } @ Override public Stats putIv ( Stat stat , int value ) { } @ Override public Stats putEv ( Stat stat , int value ) { } private int [ ] toArray ( Map < Stat , Integer > map ) { } @ Override public Stats updateWith ( Stats newStats ) { } @ Override public Map < Stat , Integer > ivs ( ) { } @ Override public Map < Stat , Integer > evs ( ) { } @ Override public Map < Stat , Integer > base ( ) { } @ Override public Map < Stat , Integer > currentValues ( ) { } }

Fix:
result . put ( stat , IvTools . calculatePossibleIvValues ( gen ( ) , level , base . get ( stat ) , ivs . get ( stat ) , evs . get ( stat ) , nature . statModifier ( stat ) ) ) ;
Buggy code:
public abstract class WorkbenchPartReference implements IWorkbenchPartReference { protected IWorkbenchPart part ; private String id ; protected PartPane pane ; private String title ; private String tooltip ; private Image image ; private ImageDescriptor imageDescritor ; private ListenerList propChangeListeners = new ListenerList ( 2 ) ; public WorkbenchPartReference ( ) { } public void init ( String id , String title , String tooltip , ImageDescriptor desc ) { } public void releaseReferences ( ) { } public void addPropertyListener ( IPropertyListener listener ) { } public void removePropertyListener ( IPropertyListener listener ) { } public String getId ( ) { } public String getTitleToolTip ( ) { } public String getTitle ( ) { } public Image getTitleImage ( ) { } public void setPart ( IWorkbenchPart part ) { this . part = part ; if ( part == null ) return ; Object [ ] listeners = propChangeListeners . getListeners ( ) ; for ( int i = 0 ; i < ( listeners . length ) ; i ++ ) { part . addPropertyListener ( ( ( IPropertyListener ) ( listeners [ i ] ) ) ) ; } PartSite site = ( ( PartSite ) ( part . getSite ( ) ) ) ; <START_BUG> if ( site != null ) { <END_BUG> site . setPane ( this . pane ) ; this . pane = null ; } } public void setPane ( PartPane pane ) { } public PartPane getPane ( ) { } public void dispose ( ) { } public abstract String getRegisteredName ( ) { } }

Fix:
if ( ( site != null ) && ( ( this . pane ) != null ) ) {
Buggy code:
public class ColumbaDesktop implements IDesktop { private static ColumbaDesktop instance = new ColumbaDesktop ( ) ; IDesktop activeDesktop ; protected ColumbaDesktop ( ) { } public String getMimeType ( File file ) { } public String getMimeType ( String ext ) { } public boolean supportsOpen ( ) { } public boolean open ( File file ) { } public boolean openAndWait ( File file ) { <START_BUG> return activeDesktop . open ( file ) ; <END_BUG> } public boolean supportsBrowse ( ) { } public void browse ( URL url ) { } public IDesktop getActiveDesktop ( ) { } public void setActiveDesktop ( IDesktop activeDesktop ) { } public static ColumbaDesktop getInstance ( ) { } }

Fix:
return activeDesktop . openAndWait ( file ) ;
Buggy code:
public class IntegrationTest extends MorcTestBuilder { public void configure ( ) { } protected EtlExecutor newEtlExecutor ( ) { } <START_BUG> protected ConfigurationEl loadConfiguration ( final String path ) { <END_BUG> ConfigurationFactory cf = new ConfigurationFactory ( ) ; final URL resource = this . getClass ( ) . getClassLoader ( ) . getResource ( path ) ; if ( resource == null ) { throw new IllegalStateException ( ( ( "Resource<seq2seq4repair_space>" + path ) + "<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ) ; } cf . setResourceURL ( resource ) ; return cf . createConfiguration ( ) ; } }

Fix:
protected ConfigurationEl loadConfiguration ( String path ) {