nus-yam/ex-repair huggingface dataset:
Buggy code:
public class XCamera extends Activity { public static int count = 20 ; public static Map < String , Bitmap > imageCache = new LinkedHashMap < String , Bitmap > ( ) ; private XAdapter xAdp = null ; public static final class XCameraConst { public static int VERSION = - 1 ; public static final String VIEW_NAME_IMAGE_ITEM = "ItemImage" ; public static final String VIEW_NAME_IMAGE_RESC = "ItemResource" ; public static final String VIEW_NAME_CAMERA_ID = "id_camera_preview" ; public static int SCREEN_WIDTH = - 1 ; public static int SCREEN_HEIGHT = - 1 ; public static int PHOTO_ITEM_WIDTH = - 1 ; public static int PHOTO_ITEM_HEIGHT = - 1 ; public static float WIDTH_DIVIDE_HEIGHT = 0 ; public static void setWidthHeight ( int width , int height ) { } public static String GLOBAL_X_CACHE_PATH = null ; public static String GLOBAL_X_DEFAULT_CAMERA_PATH = null ; public static String GLOBAL_X_CAMERA_PATH = null ; } private GridView xGridView ; public static final Integer COMPLETED = 0 ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( xcamera ) ; initParameters ( ) ; this . xAdp = new XAdapter ( this , new LinkedList < XAdapterBase > ( ) ) ; this . xGridView = ( ( GridView ) ( findViewById ( photo_grid ) ) ) ; this . xGridView . setOnScrollListener ( new XScrollListener ( this ) ) ; XCamera . XCameraConst . GLOBAL_X_CAMERA_PATH = getString ( picture_folder_path ) ; <START_BUG> XCamera . XCameraConst . GLOBAL_X_CACHE_PATH = getString ( cash_picture_folder_path ) ; <END_BUG> XCamera . XCameraConst . GLOBAL_X_DEFAULT_CAMERA_PATH = getString ( default_picture_folder_path ) ; new XInitialAsyncTask ( ) . execute ( ) ; } @ Override protected void onStart ( ) { } @ Override protected void onResume ( ) { } @ Override protected void onPause ( ) { } private void initParameters ( ) { } @ Override protected void onDestroy ( ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } private void moveAndLoadPhotos ( boolean reloadFlag ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public GridView getxView ( ) { } public void setxView ( GridView xView ) { } public XAdapter getXAdapter ( List < XAdapterBase > data ) { } public XAdapter getXAdapter ( ) { } }

Fix:
XCamera . XCameraConst . GLOBAL_X_CACHE_PATH = this . getCacheDir ( ) . getAbsolutePath ( ) ;
Buggy code:
@ RunAsClient @ RunWith ( Arquillian . class ) public class AddressControlManagementTestCase { private static JMSAdminOperations adminSupport ; private static long count = System . currentTimeMillis ( ) ; @ BeforeClass public static void setup ( ) throws Exception { AddressControlManagementTestCase . adminSupport = new JMSAdminOperations ( ) ; ( AddressControlManagementTestCase . count ) ++ ; TransportConfiguration transportConfiguration = new TransportConfiguration ( NettyConnectorFactory . class . getName ( ) ) ; ServerLocator locator = HornetQClient . createServerLocatorWithoutHA ( transportConfiguration ) ; ClientSessionFactory factory = locator . createSessionFactory ( ) ; <START_BUG> AddressControlManagementTestCase . session = factory . createSession ( ) ; <END_BUG> AddressControlManagementTestCase . session . createQueue ( AddressControlManagementTestCase . getAddress ( ) , AddressControlManagementTestCase . getQueueName ( ) , false ) ; AddressControlManagementTestCase . session . createQueue ( AddressControlManagementTestCase . getAddress ( ) , AddressControlManagementTestCase . getOtherQueueName ( ) , false ) ; } @ AfterClass public static void cleanup ( ) throws Exception { } private static ClientSession session ; @ Test public void testSubsystemRootOperations ( ) throws Exception { } @ Test public void testAddressGlobalOperations ( ) throws Exception { } @ Test public void testReadResource ( ) throws Exception { } @ Test public void testGetRolesAsJson ( ) throws Exception { } private ModelNode getSubsystemOperation ( String operationName ) { } private ModelNode getAddressOperation ( String operationName ) { } private ModelNode execute ( final ModelNode op , final boolean expectSuccess ) throws IOException { } private static String getAddress ( ) { } private static String getQueueName ( ) { } private static String getOtherQueueName ( ) { } }

Fix:
AddressControlManagementTestCase . session = factory . createSession ( "guest" , "guest" , false , true , true , false , 1 ) ;
Buggy code:
public class AnySimpleType extends AbstractDatatypeValidator { public AnySimpleType ( ) { } public AnySimpleType ( DatatypeValidator base , Hashtable facets , boolean derivedByList , XMLErrorReporter reporter ) { } <START_BUG> public Object validate ( String content , Object state ) throws InvalidDatatypeValueException { <END_BUG> return null ; } public int compare ( String value1 , String value2 ) { } public Object clone ( ) throws CloneNotSupportedException { } public short getWSFacet ( ) { } }

Fix:
public Object validate ( String content , ValidationContext state ) throws InvalidDatatypeValueException {
Buggy code:
public abstract class AbstractMapBag < E > implements Bag < E > { private transient Map < E , AbstractMapBag . MutableInteger > map ; private int size ; private transient int modCount ; private transient Set < E > uniqueSet ; protected AbstractMapBag ( ) { } protected AbstractMapBag ( Map < E , AbstractMapBag . MutableInteger > map ) { } protected Map < E , AbstractMapBag . MutableInteger > getMap ( ) { } public int size ( ) { } public boolean isEmpty ( ) { } public int getCount ( Object object ) { } public boolean contains ( Object object ) { } public boolean containsAll ( Collection < ? > coll ) { } boolean containsAll ( Bag < ? > other ) { } public Iterator < E > iterator ( ) { } static class BagIterator < E > implements Iterator < E > { private final AbstractMapBag < E > parent ; private final Iterator < Map . Entry < E , AbstractMapBag . MutableInteger > > entryIterator ; private Map . Entry < E , AbstractMapBag . MutableInteger > current ; private int itemCount ; private final int mods ; private boolean canRemove ; public BagIterator ( AbstractMapBag < E > parent ) { } public boolean hasNext ( ) { } public E next ( ) { } public void remove ( ) { } } public boolean add ( E object ) { } public boolean add ( E object , int nCopies ) { } public boolean addAll ( Collection < ? extends E > coll ) { } public void clear ( ) { } public boolean remove ( Object object ) { } public boolean remove ( Object object , int nCopies ) { } public boolean removeAll ( Collection < ? > coll ) { } public boolean retainAll ( Collection < ? > coll ) { } boolean retainAll ( Bag < ? > other ) { } protected static class MutableInteger { protected int value ; MutableInteger ( int value ) { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } } public Object [ ] toArray ( ) { } @ SuppressWarnings ( "unchecked" ) public < T > T [ ] toArray ( T [ ] array ) { } public Set < E > uniqueSet ( ) { if ( ( uniqueSet ) == null ) { <START_BUG> uniqueSet = UnmodifiableSet . < E > decorate ( map . keySet ( ) ) ; <END_BUG> } return uniqueSet ; } protected void doWriteObject ( ObjectOutputStream out ) throws IOException { } protected void doReadObject ( Map < E , AbstractMapBag . MutableInteger > map , ObjectInputStream in ) throws IOException , ClassNotFoundException { } @ Override public boolean equals ( Object object ) { } @ Override public int hashCode ( ) { } @ Override public String toString ( ) { } }

Fix:
uniqueSet = org . apache . commons . collections . set . UnmodifiableSet . < E > unmodifiableSet ( map . keySet ( ) ) ;
Buggy code:
public class JasonsTheme extends MetalTheme { private final ColorUIResource primary1 = new ColorUIResource ( 102 , 102 , 153 ) ; private final ColorUIResource primary2 = new ColorUIResource ( 153 , 153 , 204 ) ; private final ColorUIResource primary3 = new ColorUIResource ( 204 , 204 , 255 ) ; private final ColorUIResource secondary1 = new ColorUIResource ( 102 , 102 , 102 ) ; private final ColorUIResource secondary2 = new ColorUIResource ( 153 , 153 , 153 ) ; private final ColorUIResource secondary3 = new ColorUIResource ( 204 , 204 , 204 ) ; private final FontUIResource controlFont = new FontUIResource ( "SansSerif" , Font . BOLD , 10 ) ; private final FontUIResource systemFont = new FontUIResource ( "Dialog" , Font . PLAIN , 10 ) ; private final FontUIResource windowTitleFont = new FontUIResource ( "SansSerif" , Font . BOLD , 10 ) ; private final FontUIResource userFont = new FontUIResource ( "SansSerif" , Font . PLAIN , 10 ) ; private final FontUIResource smallFont = new FontUIResource ( "Dialog" , Font . PLAIN , 9 ) ; public String getName ( ) { <START_BUG> return "Steel" ; <END_BUG> } protected ColorUIResource getPrimary1 ( ) { } protected ColorUIResource getPrimary2 ( ) { } protected ColorUIResource getPrimary3 ( ) { } protected ColorUIResource getSecondary1 ( ) { } protected ColorUIResource getSecondary2 ( ) { } protected ColorUIResource getSecondary3 ( ) { } public FontUIResource getControlTextFont ( ) { } public FontUIResource getSystemTextFont ( ) { } public FontUIResource getUserTextFont ( ) { } public FontUIResource getMenuTextFont ( ) { } public FontUIResource getEmphasisTextFont ( ) { } public FontUIResource getSubTextFont ( ) { } public FontUIResource getWindowTitleFont ( ) { } }

Fix:
return "JasonsSmall" ;
Buggy code:
public class DummyRequestLogger implements IRequestLogger { protected static Logger log = LoggerFactory . getLogger ( DummyRequestLogger . class ) ; private static MetaDataKey < RequestData > REQUEST_DATA = new MetaDataKey < RequestData > ( ) { private static final long serialVersionUID = 1L ; } ; private final AtomicInteger totalCreatedSessions = new AtomicInteger ( ) ; private final AtomicInteger peakSessions = new AtomicInteger ( ) ; private final List < RequestData > requests ; private final Map < String , SessionData > liveSessions ; private final ThreadLocal < RequestData > currentRequest = new ThreadLocal < RequestData > ( ) ; private final AtomicInteger activeRequests = new AtomicInteger ( ) ; public DummyRequestLogger ( ) { } public int getCurrentActiveRequestCount ( ) { } public SessionData [ ] getLiveSessions ( ) { <START_BUG> final SessionData [ ] sessions = liveSessions . values ( ) . toArray ( new SessionData [ 0 ] ) ; <END_BUG> Arrays . sort ( sessions ) ; return sessions ; } public int getPeakSessions ( ) { } public List < RequestData > getRequests ( ) { } public int getTotalCreatedSessions ( ) { } public void logEventTarget ( IRequestHandler requestHandler ) { } public void logResponseTarget ( IRequestHandler requestHandler ) { } private String getRequestHandlerString ( final IRequestHandler requestHandler ) { } public void objectCreated ( Object value ) { } public void objectRemoved ( Object value ) { } public void objectUpdated ( Object value ) { } public void requestTime ( long timeTaken ) { } public void sessionCreated ( String sessionId ) { } public void sessionDestroyed ( String sessionId ) { } RequestData getCurrentRequest ( ) { } protected void log ( RequestData rd , SessionData sd ) { } protected final AppendingStringBuffer createLogString ( RequestData rd , SessionData sd , boolean includeRuntimeInfo ) { } private Object getSessionInfo ( Session session ) { } }

Fix:
final SessionData [ ] sessions = liveSessions . values ( ) . toArray ( new SessionData [ liveSessions . values ( ) . size ( ) ] ) ;
Buggy code:
public class JPEGImageUtil implements ImageDecoder , ImageEncoder { private static final JPEGImageUtil static_object = new JPEGImageUtil ( ) ; public static JPEGImageUtil getInstance ( ) { } @ SuppressWarnings ( "rawtypes" ) public ImageHeader decodeImageHeader ( InputStream is ) throws IOException { } public FloatImage decodeImage ( InputStream is ) throws IOException { } public void encodeImage ( FloatImage image , ImageHeader header , OutputStream os ) throws IOException { ImageOutputStream ios = ImageIO . createImageOutputStream ( os ) ; Iterator < ImageWriter > writers = ImageIO . getImageWritersByFormatName ( "jpeg" ) ; ImageWriter writer = writers . next ( ) ; writer . setOutput ( ios ) ; BufferedImage bufferedImage = new BufferedImage ( image . getWidth ( ) , image . getHeight ( ) , BufferedImage . TYPE_INT_RGB ) ; float [ ] data = image . getData ( ) ; int [ ] rgb = new int [ ( image . getWidth ( ) ) * ( image . getHeight ( ) ) ] ; <START_BUG> for ( int i = 0 ; i < ( ( image . getWidth ( ) ) * ( image . getHeight ( ) ) ) ; i ++ ) { <END_BUG> int r = Math . min ( Math . max ( ( ( int ) ( ( data [ ( i * 3 ) ] ) * 255 ) ) , 0 ) , 255 ) ; int g = Math . min ( Math . max ( ( ( int ) ( ( data [ ( ( i * 3 ) + 1 ) ] ) * 255 ) ) , 0 ) , 255 ) ; int b = Math . min ( Math . max ( ( ( int ) ( ( data [ ( ( i * 3 ) + 2 ) ] ) * 255 ) ) , 0 ) , 255 ) ; rgb [ i ] = ( ( r << 16 ) | ( g << 8 ) ) | b ; } bufferedImage . setRGB ( 0 , 0 , image . getWidth ( ) , image . getHeight ( ) , rgb , 0 , image . getWidth ( ) ) ; IIOImage iioImage = new IIOImage ( bufferedImage , null , null ) ; ImageWriteParam param = writer . getDefaultWriteParam ( ) ; writer . write ( null , iioImage , param ) ; } public ImageHeader createSimpleHeader ( FloatImage image ) { } }

Fix:
for ( int i = 0 ; i < ( ( ( image . getWidth ( ) ) * ( image . getHeight ( ) ) ) // 3 ) ; i ++ ) {
Buggy code:
class ServerInventory implements ManagedServerLifecycleCallback { private static final Logger log = Logger . getLogger ( "org.jboss.as.host.controller" ) ; private final Map < String , ManagedServer > servers = new HashMap < String , ManagedServer > ( ) ; private final HostControllerEnvironment environment ; private final ProcessControllerClient processControllerClient ; private final InetSocketAddress managementAddress ; private HostControllerImpl hostController ; ServerInventory ( final HostControllerEnvironment environment , final InetSocketAddress managementAddress , final ProcessControllerClient processControllerClient ) { } void setHostController ( HostControllerImpl hostController ) { } ServerStatus determineServerStatus ( final String serverName ) { } ServerStatus startServer ( final String serverName , final ModelNode hostModel , final DomainController domainController ) { } ServerStatus restartServer ( String serverName , final int gracefulTimeout , final ModelNode hostModel , final DomainController domainController ) { } ServerStatus stopServer ( final String serverName , final int gracefulTimeout ) { } @ Override public void serverRegistered ( String serverName , Connection connection ) { try { final ManagedServer server = servers . get ( serverName ) ; if ( server == null ) { ServerInventory . log . errorf ( "No<seq2seq4repair_space>server<seq2seq4repair_space>called<seq2seq4repair_space>%s<seq2seq4repair_space>available" , serverName ) ; return ; } server . setServerManagementConnection ( connection ) ; server . setState ( STARTED ) ; <START_BUG> hostController . registerRunningServer ( serverName , server . getServerConnection ( ) ) ; <END_BUG> } catch ( final Exception e ) { ServerInventory . log . errorf ( e , "Could<seq2seq4repair_space>not<seq2seq4repair_space>start<seq2seq4repair_space>server<seq2seq4repair_space>%s" , serverName ) ; } } @ Override public void serverDown ( String serverName ) { } @ Override public void serverStarted ( String serverName ) { } @ Override public void serverStartFailed ( String serverName ) { } @ Override public void serverStopped ( String serverName ) { } void reconnectedServer ( final String serverName , final ServerState state ) { } private void checkState ( final ManagedServer server , final ServerState expected ) { } private ManagedServer createManagedServer ( final String serverName , final ModelNode hostModel , final DomainController domainController ) { } }

Fix:
hostController . registerRunningServer ( server . getServerName ( ) , server . getServerConnection ( ) ) ;
Buggy code:
public class Assignment extends Expression { public Reference lhs ; public Expression expression ; public Assignment ( Expression lhs , Expression expression , int sourceEnd ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } void checkAssignmentEffect ( BlockScope scope ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } Binding getDirectBinding ( Expression someExpression ) { if ( someExpression instanceof SingleNameReference ) { return ( ( SingleNameReference ) ( someExpression ) ) . binding ; } else if ( someExpression instanceof FieldReference ) { FieldReference fieldRef = ( ( FieldReference ) ( someExpression ) ) ; <START_BUG> if ( fieldRef . receiver . isThis ( ) ) { <END_BUG> return fieldRef . binding ; } } return null ; } public TypeBinding resolveType ( BlockScope scope ) { } public String toString ( int tab ) { } public String toStringExpression ( ) { } public String toStringExpressionNoParenthesis ( ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope scope ) { } }

Fix:
if ( ( fieldRef . receiver . isThis ( ) ) && ( ! ( ( fieldRef . receiver ) instanceof QualifiedThisReference ) ) ) {
Buggy code:
public class SelectionManager implements PAppletRenderObject { public enum SelectionStatus { SELECTED , HOVERIRNG , ERROR , NONE ; } private static Logger LOGGER = Logger . getLogger ( SelectionManager . class . getName ( ) ) ; private PApplet parent ; private FlyingObjectManager flyingObjectManager ; private Deck deck ; private HandTracker handTracker ; private boolean hasSelection ; private LinkedList < FlyingObject > selectedObjects ; LinkedList < FlyingObject > hoverObjects ; ActionError currentError ; public SelectionManager ( PApplet p , FlyingObjectManager f , Deck d , HandTracker t ) { } public void setFlyingObjectManager ( FlyingObjectManager m ) { } public boolean selectAircraftWithNumber ( int number ) { } public boolean selectAircraftAtFingerLocation ( boolean multipleSelection , AircraftType typeRestriction ) { } private LinkedList < FlyingObject > selectSurroundingObjects ( LinkedList < FlyingObject > potentialObjects , AircraftType typeRestriction ) { } public Point getCurrentFingerPoint ( ) { } private void selectObjects ( LinkedList < FlyingObject > objects ) { } public void clearSelection ( ) { } public boolean hasSelection ( ) { } public ActionError getError ( ) { } public LinkedList < FlyingObject > getSelection ( ) { } public LinkedList < FlyingObject > getHoverObjects ( ) { synchronized ( this ) { <START_BUG> return this . hoverObjects ; <END_BUG> } } @ Override public void update ( long elapsedTime ) { } @ Override public void render ( PApplet p ) { } }

Fix:
return new LinkedList < FlyingObject > ( this . hoverObjects ) ;
Buggy code:
public class ProxyClient extends ProxyCommon { @ Override public void register ( ) { } @ Override public Object getClientGuiElement ( int ID , EntityPlayer player , World world , int x , int y , int z ) { TileEntity tile = world . getTileEntity ( x , y , z ) ; if ( tile != null ) { if ( ( ID == 0 ) && ( tile instanceof TEDecomposer ) ) { <START_BUG> return new GuiDecomposer ( new com . temportalist . scanner . common . inventory . ContainerDecomposer ( ( ( TEDecomposer ) ( tile ) ) , player . inventory ) ) ; <END_BUG> } } return super . getClientGuiElement ( ID , player , world , x , y , z ) ; } }

Fix:
return new GuiDecomposer ( ( ( ContainerDecomposer ) ( this . getServerGuiElement ( ID , player , world , x , y , z ) ) ) ) ;
Buggy code:
public class MorseTranslator { public static MorseTranslator instance ; private MorseTranslator . Node root ; private class Node { private MorseTranslator . Node point ; private MorseTranslator . Node line ; String letter ; public Node ( String letter ) { } public MorseTranslator . Node getPoint ( ) { } public void setPoint ( MorseTranslator . Node point ) { } public MorseTranslator . Node getLine ( ) { } public void setLine ( MorseTranslator . Node line ) { } public String getLetter ( ) { } } public static MorseTranslator getInstance ( ) { } private MorseTranslator ( ) { } private void initDecodeTree ( ) { } private String parseStringToMorse ( char imput ) { imput = Character . toUpperCase ( imput ) ; switch ( imput ) { case 'A' : return ".-" ; case 'B' : return "-..." ; case 'C' : return "-.-." ; case 'D' : return "-.." ; case 'E' : return "." ; case 'F' : return "..-." ; case 'G' : return "--." ; case 'H' : return "...." ; case 'I' : return ".." ; case 'J' : return ".---" ; case 'K' : return "-.-" ; case 'L' : return ".-.." ; case 'M' : return "--" ; case 'N' : return "-." ; case 'O' : return "---" ; case 'P' : return ".--." ; case 'Q' : return "--.-" ; case 'R' : return ".-." ; case 'S' : return "..." ; case 'T' : return "-" ; case 'U' : return "..-" ; case 'V' : return "...-" ; case 'W' : return ".--" ; case 'X' : return "-..-" ; case 'Y' : return "-.--" ; case 'Z' : return "--.." ; case '0' : return "-----" ; case '1' : return ".----" ; case '2' : return "..---" ; case '3' : return "...--" ; case '4' : return "....-" ; case '5' : return "....." ; case '6' : return "-...." ; case '7' : return "--..." ; case '8' : return "---.." ; case '9' : return "----." ; case 'Ä' : return ".-.-" ; case 'Ö' : return "---." ; case 'Ü' : return "..--" ; case 'ß' : return "...--.." ; case '.' : return ".-.-.-" ; case ',' : return "--..--" ; case ':' : return "---..." ; case ';' : return "-.-.-." ; case '?' : return "..--.." ; case '-' : return "-....-" ; case '_' : return "..--.-" ; case '(' : return "-.--." ; case ')' : return "-.--.-" ; <START_BUG> case 39 : <END_BUG> return ".----." ; case '=' : return "-...-" ; case '+' : return ".-.-." ; case '//' : return "-..-." ; case '@' : return ".--.-." ; default : return "..--.." ; } } public LinkedList < String > stringToMorse ( String inputString ) { } public String morseToString ( LinkedList < String > imputList ) { } }

Fix:
case '\'' :
Buggy code:
public class TransactionLocalEntityCache implements ReadyEntityCache { private final TransactionSynchronizationRegistry transactionSynchronizationRegistry ; private final ConcurrentMap < Object , Map < Object , TransactionLocalEntityCache . CacheEntry > > cache = new ConcurrentHashMap < Object , Map < Object , TransactionLocalEntityCache . CacheEntry > > ( Runtime . getRuntime ( ) . availableProcessors ( ) ) ; private final EntityBeanComponent component ; public TransactionLocalEntityCache ( final EntityBeanComponent component ) { } @ Override public synchronized boolean contains ( final Object key ) { } @ Override public synchronized boolean containsNotRemoved ( final Object key ) { } @ Override public EntityBeanComponentInstance get ( final Object key ) throws NoSuchEJBException { } @ Override public void discard ( final EntityBeanComponentInstance instance ) { } @ Override public void create ( final EntityBeanComponentInstance instance ) throws NoSuchEJBException { } private void realCreate ( final EntityBeanComponentInstance instance , boolean incRefCount ) throws NoSuchEJBException { } @ Override public void release ( final EntityBeanComponentInstance instance , boolean success ) { } public void reference ( EntityBeanComponentInstance instance ) { } @ Override public synchronized void start ( ) { } @ Override public synchronized void stop ( ) { } private Map < Object , TransactionLocalEntityCache . CacheEntry > prepareCache ( ) { } private EntityBeanComponentInstance createInstance ( Object pk ) { final EntityBeanComponentInstance instance = component . acquireUnAssociatedInstance ( ) ; <START_BUG> instance . associate ( pk ) ; <END_BUG> return instance ; } private boolean isTransactionActive ( ) { } private class CacheEntry { private final AtomicInteger referenceCount = new AtomicInteger ( 0 ) ; private final EntityBeanComponentInstance instance ; private CacheEntry ( EntityBeanComponentInstance instance ) { } } }

Fix:
instance . activate ( pk ) ;
Buggy code:
public class PrefsFragment extends PreferenceFragment { ListPreference prefSumBusMap ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onPreferenceTreeClick ( PreferenceScreen preferenceScreen , Preference preference ) { Log . i ( "PrefsFragment" , "onPreferenceTreeClick" ) ; Log . i ( "PrefsFragment" , ( "onPreferenceTreeClick<seq2seq4repair_space>preference<seq2seq4repair_space>" + ( preference . getKey ( ) ) ) ) ; if ( preference . getKey ( ) . equals ( "KEY41" ) ) { Log . i ( "PrefsFragment" , "preference<seq2seq4repair_space>==<seq2seq4repair_space>markerUI" ) ; MapsActivity . addPokeBusMarker ( ) ; FragmentManager fm = getFragmentManager ( ) ; FragmentTransaction ft = fm . beginTransaction ( ) ; ft . remove ( this ) ; ft . commit ( ) ; } else if ( preference . getKey ( ) . equals ( "KEY32" ) ) { Log . i ( "PrefsFragment" , "preference<seq2seq4repair_space>==<seq2seq4repair_space>aboutscreen" ) ; Intent intent = new Intent ( MapsActivity . mContext , AboutScreen . class ) ; startActivity ( intent ) ; } else if ( preference . getKey ( ) . equals ( "KEY2" ) ) { MapsActivity . stopTimerTask ( ) ; MapsActivity . updateBusDistance ( ) ; } else if ( preference . getKey ( ) . equals ( "KEY4888" ) ) { Log . i ( "PrefsFragment" , "preference<seq2seq4repair_space>==<seq2seq4repair_space>aboutscreen" ) ; Intent intent = new Intent ( MapsActivity . mContext , BusMap . class ) ; intent . putExtra ( "maptype" , prefSumBusMap . getSummary ( ) ) ; startActivity ( intent ) ; } else if ( preference . getKey ( ) . equals ( "KEY1" ) ) { <START_BUG> Log . i ( "PrefsFragment" , "preference<seq2seq4repair_space>==<seq2seq4repair_space>aboutscreen" ) ; <END_BUG> } else if ( preference . getKey ( ) . equals ( "KEY99" ) ) { } return true ; } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } @ Override public void onDestroyView ( ) { } No newline ; at end ; of file ; }

Fix:
Log . i ( "PrefsFragment" , "radius" ) ;
Buggy code:
public interface FileDataInput extends Closeable , DataInput { public String getPath ( ) { } public boolean isEOF ( ) throws IOException { } public long bytesRemaining ( ) throws IOException { } public FileMark mark ( ) { } public void reset ( FileMark mark ) throws IOException { } <START_BUG> public int bytesPastMark ( FileMark mark ) ; <END_BUG> public ByteBuffer readBytes ( int length ) throws IOException { } }

Fix:
public long bytesPastMark ( FileMark mark ) ;
Buggy code:
public class SocketNode implements Runnable { Socket socket ; LoggerRepository hierarchy ; ObjectInputStream ois ; static Logger logger = Logger . getLogger ( SocketNode . class ) ; public SocketNode ( Socket socket , LoggerRepository hierarchy ) { } public void run ( ) { LoggingEvent event ; Logger remoteLogger ; try { while ( true ) { event = ( ( LoggingEvent ) ( ois . readObject ( ) ) ) ; remoteLogger = hierarchy . getLogger ( event . categoryName ) ; event . logger = remoteLogger ; <START_BUG> if ( event . level . isGreaterOrEqual ( remoteLogger . getChainedLevel ( ) ) ) { <END_BUG> remoteLogger . callAppenders ( event ) ; } } } catch ( EOFException e ) { SocketNode . logger . info ( "Caught<seq2seq4repair_space>java.io.EOFException<seq2seq4repair_space>closing<seq2seq4repair_space>conneciton." ) ; } catch ( SocketException e ) { SocketNode . logger . info ( "Caught<seq2seq4repair_space>java.net.SocketException<seq2seq4repair_space>closing<seq2seq4repair_space>conneciton." ) ; } catch ( IOException e ) { SocketNode . logger . info ( ( "Caught<seq2seq4repair_space>java.io.IOException:<seq2seq4repair_space>" + e ) ) ; SocketNode . logger . info ( "Closing<seq2seq4repair_space>connection." ) ; } catch ( Exception e ) { SocketNode . logger . error ( "Unexpected<seq2seq4repair_space>exception.<seq2seq4repair_space>Closing<seq2seq4repair_space>conneciton." , e ) ; } try { ois . close ( ) ; } catch ( Exception e ) { SocketNode . logger . info ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>close<seq2seq4repair_space>connection." , e ) ; } } }

Fix:
if ( event . level . isGreaterOrEqual ( remoteLogger . getEffectiveLevel ( ) ) ) {
Buggy code:
public abstract class LMSimilarity extends SimilarityBase { protected final LMSimilarity . CollectionModel collectionModel ; public LMSimilarity ( LMSimilarity . CollectionModel collectionModel ) { } public LMSimilarity ( ) { } @ Override protected BasicStats newStats ( float queryBoost ) { } @ Override protected void fillBasicStats ( BasicStats stats , IndexSearcher searcher , String fieldName , TermContext termContext ) throws IOException { } @ Override protected void explain ( Explanation expl , BasicStats stats , int doc , float freq , float docLen ) { } public abstract String getName ( ) { } @ Override public String toString ( ) { } public static class LMStats extends BasicStats { private float collectionProbability ; public LMStats ( float queryBoost ) { } public final float getCollectionProbability ( ) { } public final void setCollectionProbability ( float collectionProbability ) { } } public static interface CollectionModel { public float computeProbability ( BasicStats stats ) ; public String getName ( ) { } } public static class DefaultCollectionModel implements LMSimilarity . CollectionModel { @ Override public float computeProbability ( BasicStats stats ) { <START_BUG> return ( ( float ) ( stats . getTotalTermFreq ( ) ) ) // ( ( stats . getNumberOfFieldTokens ( ) ) + 1 ) ; <END_BUG> } @ Override public String getName ( ) { } } }

Fix:
return ( ( stats . getTotalTermFreq ( ) ) + 1.0F ) // ( ( stats . getNumberOfFieldTokens ( ) ) + 1.0F ) ;
Buggy code:
public class LocalDatabaseInstanceManager extends AbstractLocalService implements DatabaseInstanceManager { public LocalDatabaseInstanceManager ( final Subject user , final BrokerPool pool ) { } @ Override public String getName ( ) throws XMLDBException { } @ Override public String getVersion ( ) throws XMLDBException { } @ Override public void shutdown ( ) throws XMLDBException { <START_BUG> shutdown ( 0 ) ; <END_BUG> } @ Override public void shutdown ( final long delay ) throws XMLDBException { } @ Override public boolean enterServiceMode ( ) throws XMLDBException { } @ Override public void exitServiceMode ( ) throws XMLDBException { } @ Override public DatabaseStatus getStatus ( ) throws XMLDBException { } @ Override public boolean isLocalInstance ( ) { } @ Override public String getProperty ( final String name ) throws XMLDBException { } @ Override public void setProperty ( final String name , final String value ) throws XMLDBException { } @ Override public boolean isXACMLEnabled ( ) throws XMLDBException { } }

Fix:
brokerPool . shutdown ( ) ;
Buggy code:
class SSTableSliceIterator extends AbstractIterator < IColumn > implements ColumnIterator { private final boolean reversed ; private final byte [ ] startColumn ; private final byte [ ] finishColumn ; private final AbstractType comparator ; private SSTableSliceIterator . ColumnGroupReader reader ; public SSTableSliceIterator ( SSTableReader ssTable , String key , byte [ ] startColumn , byte [ ] finishColumn , boolean reversed ) throws IOException { } private boolean isColumnNeeded ( IColumn column ) { } public ColumnFamily getColumnFamily ( ) { <START_BUG> return reader . getEmptyColumnFamily ( ) ; <END_BUG> } protected IColumn computeNext ( ) { } public void close ( ) throws IOException { } class ColumnGroupReader { private final ColumnFamily emptyColumnFamily ; private final List < IndexHelper . IndexInfo > indexes ; private final FileDataInput file ; private int curRangeIndex ; private Deque < IColumn > blockColumns = new ArrayDeque < IColumn > ( ) ; public ColumnGroupReader ( SSTableReader ssTable , DecoratedKey key , FileDataInput input ) throws IOException { } public ColumnFamily getEmptyColumnFamily ( ) { } public IColumn pollColumn ( ) { } public boolean getNextBlock ( ) throws IOException { } public void close ( ) throws IOException { } } }

Fix:
return ( reader ) == null ? null : reader . getEmptyColumnFamily ( ) ;
Buggy code:
public class ViewScheduleActivity extends ActionBarActivity implements custButtonListener { private ArrayList < String > workoutItems = new ArrayList < > ( ) ; private String name ; private int id ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void loadGoogleCalendar ( ) { } private void loadEditStrengthWorkout ( ) { } private void displayUpcomingWorkouts ( ) { } @ Override public void onBackPressed ( ) { } private void loadHomeScreen ( ) { } private void loadAddWorkout ( ) { } public void loadViewSchedule ( Calendar dateToShow ) { } public void onButtonClickListener ( int position , String value ) { String [ ] valArr = value . split ( ":" , 2 ) ; id = Integer . parseInt ( valArr [ 0 ] ) ; name = valArr [ 1 ] ; switch ( name ) { case "Walking" : loadEditCardioWorkout ( ) ; break ; case "Jogging" : loadEditCardioWorkout ( ) ; break ; case "Running" : loadEditCardioWorkout ( ) ; break ; case "Elliptical" : loadEditCardioWorkout ( ) ; break ; <START_BUG> case "Biking" : <END_BUG> loadEditCardioWorkout ( ) ; break ; default : loadEditStrengthWorkout ( ) ; } } private void loadEditCardioWorkout ( ) { } public String [ ] getWorkoutsString ( ) { } No newline ; at end ; of file ; }

Fix:
case "Cycling" :
Buggy code:
public abstract class AbstractFormValidator implements IFormValidator { protected final Map messageModel ( ) { } public void error ( FormComponent fc ) { } public void error ( FormComponent fc , final String resourceKey ) { } public void error ( FormComponent fc , final Map vars ) { } public void error ( FormComponent fc , final String resourceKey , Map vars ) { if ( fc == null ) { throw new IllegalArgumentException ( "Argument<seq2seq4repair_space>[[fc]]<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; } if ( vars == null ) { throw new IllegalArgumentException ( "Argument<seq2seq4repair_space>[[vars]]<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; } if ( resourceKey == null ) { throw new IllegalArgumentException ( "Argument<seq2seq4repair_space>[[resourceKey]]<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; } ValidationError error = new ValidationError ( ) . addMessageKey ( resourceKey ) ; final String defaultKey = Classes . simpleName ( getClass ( ) ) ; if ( ! ( resourceKey . equals ( defaultKey ) ) ) { error . addMessageKey ( defaultKey ) ; } <START_BUG> error . setVars ( vars ) ; <END_BUG> fc . error ( ( ( IValidationError ) ( error ) ) ) ; } protected Map variablesMap ( ) { } protected String resourceKey ( ) { } }

Fix:
error . setVariables ( vars ) ;
Buggy code:
public class Move extends Copy { public Move ( ) { } protected void validateAttributes ( ) throws BuildException { if ( ( ( file ) != null ) && ( file . isDirectory ( ) ) ) { if ( ( ( ( destFile ) != null ) && ( ( destDir ) != null ) ) || ( ( ( destFile ) == null ) && ( ( destDir ) == null ) ) ) { throw new BuildException ( ( "One<seq2seq4repair_space>and<seq2seq4repair_space>only<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>tofile<seq2seq4repair_space>and<seq2seq4repair_space>todir<seq2seq4repair_space>" + "must<seq2seq4repair_space>be<seq2seq4repair_space>set." ) ) ; } destFile = ( ( destFile ) == null ) ? new File ( destDir , file . getName ( ) ) : destFile ; <START_BUG> destDir = ( ( destDir ) == null ) ? fileUtils . getParentFile ( destFile ) : destDir ; <END_BUG> completeDirMap . put ( file , destFile ) ; file = null ; } else { super . validateAttributes ( ) ; } } protected void doFileOperations ( ) { } private void moveFile ( File fromFile , File toFile , boolean filtering , boolean overwrite ) { } private void copyFile ( File fromFile , File toFile , boolean filtering , boolean overwrite ) { } protected boolean okToDelete ( File d ) { } protected void deleteDir ( File d ) { } protected void deleteDir ( File d , boolean deleteFiles ) { } protected boolean renameFile ( File sourceFile , File destFile , boolean filtering , boolean overwrite ) throws IOException , BuildException { } }

Fix:
destDir = ( ( destDir ) == null ) ? destFile . getParentFile ( ) : destDir ;
Buggy code:
public class NonBlockingJoin implements StaticObservable { private final AtomicBoolean leftDone = new AtomicBoolean ( false ) ; private final AtomicBoolean completed = new AtomicBoolean ( false ) ; private final AtomicBoolean sentCompleted = new AtomicBoolean ( false ) ; private final Observer < TupleEvent > out ; private final ConcurrentSkipListSet < TupleEvent > leftTable = new ConcurrentSkipListSet < TupleEvent > ( ) ; private final ConcurrentSkipListSet < TupleEvent > rightTable = new ConcurrentSkipListSet < TupleEvent > ( ) ; public NonBlockingJoin ( Observer < TupleEvent > out ) { } private void drainRight ( ) { TupleEvent t ; if ( leftDone . get ( ) ) { while ( ( t = rightTable . pollFirst ( ) ) != null ) { if ( leftTable . contains ( t ) ) { out . onNext ( t ) ; } } if ( completed . get ( ) ) { while ( ( t = rightTable . pollFirst ( ) ) != null ) { if ( leftTable . contains ( t ) ) { out . onNext ( t ) ; } } <START_BUG> if ( ( sentCompleted . getAndSet ( true ) ) == false ) { <END_BUG> out . onCompleted ( ) ; } } } } public Observer < TupleEvent > wireLeft ( ) { } public Observer < TupleEvent > wireRight ( ) { } }

Fix:
if ( ! ( sentCompleted . getAndSet ( true ) ) ) {
Buggy code:
public class FileListPanel extends JPanel implements ActionListener { private JTable files = null ; private transient ObjectTableModel tableModel = null ; private static final String ACTION_BROWSE = "browse" ; private JButton browse = new JButton ( JMeterUtils . getResString ( FileListPanel . ACTION_BROWSE ) ) ; private JButton clear = new JButton ( JMeterUtils . getResString ( "clear" ) ) ; private JButton delete = new JButton ( JMeterUtils . getResString ( "delete" ) ) ; private List listeners = new LinkedList ( ) ; private String title ; private String filetype ; public FileListPanel ( ) { } public FileListPanel ( String title ) { } public FileListPanel ( String title , String filetype ) { } public FileListPanel ( ChangeListener l , String title ) { } public void addChangeListener ( ChangeListener l ) { } private void init ( ) { } public void enableFile ( boolean enable ) { } public void addFilename ( String f ) { } public void clearFiles ( ) { } public void setFiles ( String [ ] files ) { } public String [ ] getFiles ( ) { } protected void deleteFile ( ) { } private void fireFileChanged ( ) { } protected void initializeTableModel ( ) { } public void actionPerformed ( ActionEvent e ) { if ( ( e . getSource ( ) ) == ( clear ) ) { this . clearFiles ( ) ; } else if ( e . getActionCommand ( ) . equals ( FileListPanel . ACTION_BROWSE ) ) { JFileChooser chooser = new JFileChooser ( ) ; String start = JMeterUtils . getPropDefault ( "user.dir" , "" ) ; chooser . setCurrentDirectory ( new File ( start ) ) ; chooser . setFileFilter ( new JMeterFileFilter ( new String [ ] { filetype } ) ) ; chooser . setFileSelectionMode ( JFileChooser . FILES_AND_DIRECTORIES ) ; chooser . setMultiSelectionEnabled ( true ) ; chooser . showOpenDialog ( GuiPackage . getInstance ( ) . getMainFrame ( ) ) ; File [ ] cfiles = chooser . getSelectedFiles ( ) ; <START_BUG> if ( ( chooser != null ) && ( cfiles != null ) ) { <END_BUG> for ( int idx = 0 ; idx < ( cfiles . length ) ; idx ++ ) { this . addFilename ( cfiles [ idx ] . getPath ( ) ) ; } fireFileChanged ( ) ; } } else if ( ( e . getSource ( ) ) == ( delete ) ) { this . deleteFile ( ) ; } else { fireFileChanged ( ) ; } } }

Fix:
if ( cfiles != null ) {
Buggy code:
public class Comment implements SilverpeasContent { private static final long serialVersionUID = 3738544756345055840L ; private CommentPK pk ; private WAPrimaryKey foreign_key ; private int owner_id ; private String message ; private Date creation_date ; private Date modification_date ; private UserDetail ownerDetail ; private void init ( CommentPK pk , WAPrimaryKey foreign_key , int owner_id , String message , Date creation_date , Date modification_date ) { } public Comment ( CommentPK pk , WAPrimaryKey foreign_key , int owner_id , String owner , String message , Date creation_date , Date modification_date ) { } public void setCommentPK ( CommentPK pk ) { } public CommentPK getCommentPK ( ) { } public void setForeignKey ( WAPrimaryKey foreign_key ) { } public WAPrimaryKey getForeignKey ( ) { } public int getOwnerId ( ) { } public String getOwner ( ) { } public void setMessage ( String message ) { } public String getMessage ( ) { } public void setCreationDate ( Date creation_date ) { } @ Override public Date getCreationDate ( ) { } public void setModificationDate ( Date modification_date ) { } public Date getModificationDate ( ) { } public UserDetail getOwnerDetail ( ) { <START_BUG> return ownerDetail ; <END_BUG> } public void setOwnerDetail ( UserDetail ownerDetail ) { } @ Override public String toString ( ) { } @ Override public UserDetail getCreator ( ) { } @ Override public String getTitle ( ) { } @ Override public String getURL ( ) { } @ Override public String getId ( ) { } @ Override public String getComponentInstanceId ( ) { } private OrganizationController getOrganizationController ( ) { } No newline ; at end ; of file ; }

Fix:
return getCreator ( ) ;
Buggy code:
public class ProteinFamilyDisplayer extends ReportDisplayer { public ProteinFamilyDisplayer ( ReportDisplayerConfig config , InterMineAPI im ) { } @ Override @ SuppressWarnings ( "unchecked" ) public void display ( HttpServletRequest request , ReportObject reportObject ) { } private PathQuery getScores ( BioEntity b ) { PathQuery query = new PathQuery ( im . getModel ( ) ) ; query . addViews ( "ProteinFamily.id" , "ProteinFamily.clusterId" , "ProteinFamily.clusterName" , "ProteinFamily.memberCount" , "ProteinFamily.methodId" , "ProteinFamily.methodName" , "ProteinFamily.member.membershipDetail" , "ProteinFamily.msa.id" ) ; query . addOrderBy ( "ProteinFamily.clusterId" , ASC ) ; <START_BUG> query . addConstraint ( Constraints . eq ( "ProteinFamily.member.protein.name" , b . getPrimaryIdentifier ( ) ) ) ; <END_BUG> query . setOuterJoinStatus ( "ProteinFamily.msa" , OUTER ) ; return query ; } public class ProteinFamily { private Integer familyId ; private Integer clusterId ; private String clusterName ; private Integer memberCount ; private Integer methodId ; private String methodName ; private String membershipDetail ; private Integer msaId ; public ProteinFamily ( List < ResultElement > resultRow ) { } public Integer getFamilyId ( ) { } public Integer getClusterId ( ) { } public String getClusterName ( ) { } public Integer getMemberCount ( ) { } public Integer getMethodId ( ) { } public String getMethodName ( ) { } public String getMembershipDetail ( ) { } public Integer getMsaId ( ) { } } }

Fix:
query . addConstraint ( Constraints . eq ( "ProteinFamily.member.protein.secondaryIdentifier" , b . getSecondaryIdentifier ( ) ) ) ;
Buggy code:
public class CartesianPolyFilterBuilder { public static final double MILES_FLOOR = 1.0 ; private IProjector projector = new SinusoidalProjector ( ) ; private final String tierPrefix ; private int minTier ; private int maxTier ; public CartesianPolyFilterBuilder ( String tierPrefix , int minTierIndexed , int maxTierIndexed ) { } public Shape getBoxShape ( double latitude , double longitude , double miles ) { if ( miles < ( CartesianPolyFilterBuilder . MILES_FLOOR ) ) { miles = CartesianPolyFilterBuilder . MILES_FLOOR ; } LLRect box1 = LLRect . createBox ( new FloatLatLng ( latitude , longitude ) , miles , miles ) ; LatLng lowerLeft = box1 . getLowerLeft ( ) ; LatLng upperRight = box1 . getUpperRight ( ) ; double latUpperRight = upperRight . getLat ( ) ; double latLowerLeft = lowerLeft . getLat ( ) ; double longUpperRight = upperRight . getLng ( ) ; double longLowerLeft = lowerLeft . getLng ( ) ; <START_BUG> CartesianTierPlotter ctp = new CartesianTierPlotter ( miles , projector , tierPrefix , minTier , maxTier ) ; <END_BUG> Shape shape = new Shape ( ctp . getTierLevelId ( ) ) ; if ( longUpperRight < longLowerLeft ) { addBoxes ( shape , ctp , latLowerLeft , longLowerLeft , latUpperRight , LONGITUDE_DEGREE_MAX ) ; addBoxes ( shape , ctp , latLowerLeft , ( - ( LatLng . LONGITUDE_DEGREE_MIN ) ) , latUpperRight , longUpperRight ) ; } else { addBoxes ( shape , ctp , latLowerLeft , longLowerLeft , latUpperRight , longUpperRight ) ; } return shape ; } private void addBoxes ( Shape shape , CartesianTierPlotter tierPlotter , double lat1 , double long1 , double lat2 , double long2 ) { } public Filter getBoundingArea ( double latitude , double longitude , double miles ) { } }

Fix:
CartesianTierPlotter ctp = new CartesianTierPlotter ( CartesianTierPlotter . bestFit ( miles , minTier , maxTier ) , projector , tierPrefix ) ;
Buggy code:
public class mtTestCase { public String name = null ; public String file = null ; public String propFile = null ; public float weight = ( ( float ) ( 0.5 ) ) ; public Hashtable ignoreErrors = null ; public String description = null ; private int iterations ; private int attempts ; public void mtTestCase ( ) { } public void setName ( String name ) { } public String getName ( ) { } public void setFile ( String name ) { } public void setInputDir ( String dir ) { } public String getFile ( ) { } public void setPropFile ( String name ) { } public String getPropFile ( ) { } public void setWeight ( int weight ) { } public void setIgnoreErrors ( Hashtable t ) { } public void setDescription ( String description ) { } public synchronized BufferedInputStream initialize ( ) throws FileNotFoundException , IOException { } public synchronized BufferedInputStream initialize ( String inputDir ) throws FileNotFoundException , IOException { } public synchronized boolean grab ( ) { } public void runMe ( LocalizedOutput log , LocalizedOutput out , BufferedInputStream infile ) { utilMain utilInstance ; LocalizedInput is ; is = LocalizedResource . getInstance ( ) . getNewInput ( infile ) ; LocalizedInput [ ] in = new LocalizedInput [ ] { is } ; out . println ( ( ( "--------------" + ( file ) ) + "-----------------" ) ) ; utilInstance = new utilMain ( 1 , out , ignoreErrors ) ; utilInstance . initFromEnvironment ( ) ; utilInstance . setMtUse ( true ) ; <START_BUG> utilInstance . go ( in , out , ( ( Properties ) ( null ) ) ) ; <END_BUG> log . flush ( ) ; out . flush ( ) ; } public void updateURLProperties ( Properties p , String newURLPrefix ) { } public String alterURL ( String url , String newURLPrefix ) { } public String toString ( ) { } }

Fix:
utilInstance . go ( in , out ) ;
Buggy code:
public class FolderInfoPanel extends ContainerInfoPanel implements ISelectionListener { private JLabel leftLabel ; private JLabel readLabel ; private JLabel unreadLabel ; private JLabel recentLabel ; private JPanel rightPanel ; private MailboxInfo info ; private IFolderItem item ; public FolderInfoPanel ( FrameMediator controller ) { } public void initComponents ( ) { } public void resetRenderer ( ) { } public void setFolder ( IMailFolder newFolder ) { } public void selectionChanged ( SelectionChangedEvent e ) { TreeSelectionChangedEvent treeEvent = ( ( TreeSelectionChangedEvent ) ( e ) ) ; <START_BUG> if ( ( treeEvent . getSelected ( ) [ 0 ] ) != null ) { <END_BUG> setFolder ( ( ( AbstractMessageFolder ) ( treeEvent . getSelected ( ) [ 0 ] ) ) ) ; } else { resetRenderer ( ) ; } } }

Fix:
if ( ( ( treeEvent . getSelected ( ) [ 0 ] ) != null ) && ( ( treeEvent . getSelected ( ) [ 0 ] ) instanceof AbstractMessageFolder ) ) {
Buggy code:
public class CommonExpression extends Expression { private AbstractExpression e ; public CommonExpression ( String data ) throws Exception { } public CommonExpression ( GraphBuilder builder , String data ) throws Exception { } public CommonExpression ( File file ) throws Exception { } public CommonExpression ( GraphBuilder builder , File file ) throws Exception { } public CommonExpression ( File file , String path ) throws Exception { } public CommonExpression ( GraphBuilder builder , File file , String path ) throws Exception { } public CommonExpression ( InputStream stream ) throws Exception { } public CommonExpression ( GraphBuilder builder , InputStream stream ) throws Exception { } public CommonExpression ( InputStream stream , String path ) throws Exception { } public CommonExpression ( GraphBuilder builder , InputStream stream , String path ) throws Exception { } private static boolean isAnimo ( String path ) { } @ Override protected Relationship relationship ( ) { <START_BUG> return e ; <END_BUG> } }

Fix:
return e . relationship ( ) ;