nus-yam/ex-repair huggingface dataset:
Buggy code:
public class ElementParseService { protected static IInterface parseInterface ( Element element ) { if ( element . hasAttribute ( propertyPortRange ) ) <START_BUG> return new at . skobamg . generator . model . Interface ( element . getAttribute ( propertyPortBezeichnunglang ) , IInterface . propertyPortBezeichnungkurz , IInterface . propertyPortRange ) ; <END_BUG> else return new at . skobamg . generator . model . Interface ( element . getAttribute ( propertyPortBezeichnunglang ) , element . getAttribute ( propertyPortBezeichnungkurz ) ) ; } protected static ISection parseSection ( Element section ) throws InvalidTypeException { } protected static ICommand parseCommand ( Element command ) throws InvalidTypeException { } protected static IParameter parseParameter ( Element parameter ) throws InvalidTypeException { } protected static ISnippet parseSnippet ( Element snippetElement ) throws InvalidTypeException { } }

Fix:
return new at . skobamg . generator . model . Interface ( element . getAttribute ( propertyPortBezeichnunglang ) , element . getAttribute ( propertyPortBezeichnungkurz ) , element . getAttribute ( propertyPortRange ) ) ;
Buggy code:
public class SelectionOnLocalName extends LocalDeclaration { public SelectionOnLocalName ( char [ ] name , int sourceStart , int sourceEnd ) { } public void resolve ( BlockScope scope ) { super . resolve ( scope ) ; <START_BUG> throw new SelectionNodeFound ( this , binding ) ; <END_BUG> } public StringBuffer printStatement ( int tab , StringBuffer output ) { } }

Fix:
throw new SelectionNodeFound ( binding ) ;
Buggy code:
public abstract class ServerModelTestBase extends DomainModelElementTestBase { public ServerModelTestBase ( String name ) { } public void testName ( ) throws Exception { } public void testProfile ( ) throws Exception { } public void testSystemProperties ( ) throws Exception { } public void testDeployments ( ) throws Exception { } public void testSerializationDeserialization ( ) throws Exception { } ServerModel parse ( final String content ) throws XMLStreamException , UpdateFailedException { } String getFullContent ( final String content ) { <START_BUG> return ModelParsingSupport . getXmlContent ( "server" , getTargetNamespace ( ) , getTargetNamespaceLocation ( ) , content ) ; <END_BUG> } }

Fix:
return ModelParsingSupport . getXmlContent ( "standalone" , getTargetNamespace ( ) , getTargetNamespaceLocation ( ) , content ) ;
Buggy code:
public class PluginManagerTest extends TestCase { private File file ; protected void setUp ( ) throws Exception { } protected void tearDown ( ) throws Exception { } public void test ( ) { IPluginManager manager = PluginManager . getInstance ( ) ; <START_BUG> manager . initPlugins ( ) ; <END_BUG> } }

Fix:
manager . initCorePlugins ( ) ;
Buggy code:
class BinaryMethod extends BinaryMember implements IMethod { class DecodeParametersNames extends SourceElementRequestorAdapter { String [ ] parametersNames ; public void enterMethod ( int declarationStart , int modifiers , char [ ] returnTypeName , char [ ] selector , int nameSourceStart , int nameSourceEnd , char [ ] [ ] paramTypes , char [ ] [ ] paramNames , char [ ] [ ] exceptions ) { } public void enterConstructor ( int declarationStart , int modifiers , char [ ] selector , int nameSourceStart , int nameSourceEnd , char [ ] [ ] paramTypes , char [ ] [ ] paramNames , char [ ] [ ] exceptions ) { } public String [ ] getParametersNames ( ) { } } protected String [ ] parameterTypes ; protected String [ ] parameterNames ; protected static final String [ ] NO_TYPES = new String [ ] { } ; protected String [ ] exceptionTypes ; protected String returnType ; protected BinaryMethod ( JavaElement parent , String name , String [ ] paramTypes ) { } public boolean equals ( Object o ) { } public String [ ] getExceptionTypes ( ) throws JavaModelException { } public int getElementType ( ) { } public int getFlags ( ) throws JavaModelException { } public String getHandleMemento ( ) { } protected char getHandleMementoDelimiter ( ) { } public int getNumberOfParameters ( ) { } public String [ ] getParameterNames ( ) throws JavaModelException { } public String [ ] getParameterTypes ( ) { } public String [ ] getTypeParameterSignatures ( ) throws JavaModelException { } public String getReturnType ( ) throws JavaModelException { } public String getSignature ( ) throws JavaModelException { } public int hashCode ( ) { int hash = super . hashCode ( ) ; for ( int i = 0 , length = parameterTypes . length ; i < length ; i ++ ) { <START_BUG> hash = Util . combineHashCodes ( parameterTypes [ i ] . hashCode ( ) , hash ) ; <END_BUG> } return hash ; } public boolean isConstructor ( ) throws JavaModelException { } public boolean isMainMethod ( ) throws JavaModelException { } public boolean isSimilar ( IMethod method ) { } public String readableName ( ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info ) { } protected void toStringName ( StringBuffer buffer ) { } }

Fix:
hash = Util . combineHashCodes ( hash , parameterTypes [ i ] . hashCode ( ) ) ;
Buggy code:
public class RefinedSoundex implements StringEncoder { public static final String US_ENGLISH_MAPPING_STRING = "01360240043788015936020505" ; private static final char [ ] US_ENGLISH_MAPPING = RefinedSoundex . US_ENGLISH_MAPPING_STRING . toCharArray ( ) ; private final char [ ] soundexMapping ; public static final RefinedSoundex US_ENGLISH = new RefinedSoundex ( ) ; public RefinedSoundex ( ) { } public RefinedSoundex ( char [ ] mapping ) { } public RefinedSoundex ( String mapping ) { } public int difference ( String s1 , String s2 ) throws EncoderException { } @ Override public Object encode ( Object obj ) throws EncoderException { } @ Override public String encode ( String str ) { } char getMappingCode ( char c ) { } public String soundex ( String str ) { if ( str == null ) { return null ; } str = SoundexUtils . clean ( str ) ; if ( ( str . length ( ) ) == 0 ) { return str ; } <START_BUG> StringBuffer sBuf = new StringBuffer ( ) ; <END_BUG> sBuf . append ( str . charAt ( 0 ) ) ; char last ; char current ; last = '*' ; for ( int i = 0 ; i < ( str . length ( ) ) ; i ++ ) { current = getMappingCode ( str . charAt ( i ) ) ; if ( current == last ) { continue ; } else if ( current != 0 ) { sBuf . append ( current ) ; } last = current ; } return sBuf . toString ( ) ; } }

Fix:
StringBuilder sBuf = new StringBuilder ( ) ;
Buggy code:
public class MongoMapper { public Check checkFrom ( DBObject dbo ) { } public ParkingLot parkinglotFrom ( DBObject dbo ) { } public Subscription subscriptionFrom ( DBObject dbo ) { } public Alert alertFrom ( DBObject dbo ) { } public DBObject checkToDBObject ( Check check ) { } public DBObject parkinglotsToDBObject ( ParkingLot pl ) { } public DBObject subscriptionToDBObject ( Subscription subscription ) { } public DBObject alertToDBObject ( Alert alert ) { } @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private Map propertiesToMap ( Check check ) { } @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private Map propertiesToMap ( ParkingLot pl ) { } @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private Map propertiesToMap ( Subscription subscription ) { } @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private Map propertiesToMap ( Alert alert ) { } private boolean getBoolean ( DBObject dbo , String key ) { } private boolean getOptionalBoolean ( DBObject dbo , String key , boolean defaultValue ) { } private DateTime getDateTime ( DBObject dbo , String key ) { } private LocalTime getLocalTime ( DBObject dbo , String hourKey , String minKey ) { } private String getString ( DBObject dbo , String key ) { } private BigDecimal getBigDecimal ( DBObject dbo , String key ) { } private Integer getInteger ( DBObject dbo , String key ) { <START_BUG> return ( ( Integer ) ( dbo . get ( key ) ) ) ; <END_BUG> } private Double getDouble ( DBObject dbo , String key ) { } private BasicDBList getBasicDBList ( DBObject dbo , String key ) { } private SubscriptionType getSubscriptionType ( String value ) { } }

Fix:
return Integer . parseInt ( ( ( String ) ( dbo . get ( key ) ) ) ) ;
Buggy code:
public class TimerSessionHolder implements Iterable < TimerSession > , Observer { private TimerController timerController ; private List < TimerSession > timers ; private HashMap < Integer , TimerSession > timersIdMap ; private Adapter recyclerViewAdapter ; private TimerWeekView timerWeekView ; private TimerSessionHolder ( ) { } private static final TimerSessionHolder instance = new TimerSessionHolder ( ) ; public static TimerSessionHolder getInstance ( ) { } public TimerSessionHolder setContext ( Context ctx ) { } public void setAdapter ( RecyclerView . Adapter recyclerViewAdapter ) { } public void setView ( TimerWeekView timerWeekView ) { } private void initialPopulateHolder ( List < TimerSession > allTimers ) { } public void addTimer ( TimerSession ... timerSessions ) throws TimerConflictException { for ( TimerSession timerSession : timerSessions ) { if ( isTimerConflict ( timerSession ) ) { throw new TimerConflictException ( ( ( "Timer<seq2seq4repair_space>" + timerSession ) + "<seq2seq4repair_space>conflicts<seq2seq4repair_space>with<seq2seq4repair_space>existing<seq2seq4repair_space>timers" ) ) ; } else { timerSession . setId ( timerController . generateNextId ( ) ) ; timerSession . addObserver ( this ) ; <START_BUG> if ( ! ( timerSession . getActive ( ) ) ) { <END_BUG> timerController . setAlarm ( timerSession ) ; } timers . add ( timerSession ) ; timersIdMap . put ( timerSession . getId ( ) , timerSession ) ; notifyViewChanged ( ) ; } } } public TimerSession get ( int pos ) { } public TimerSession getTimerById ( int id ) { } public List < TimerSession > getTimerOnThisDay ( int day ) { } public boolean removeTimer ( TimerSession timerSession ) { } public boolean removeTimer ( int pos ) { } private boolean remove ( TimerSession timerSession ) { } public void removeAll ( ) { } @ Override public Iterator < TimerSession > iterator ( ) { } public boolean isEmpty ( ) { } public int getSize ( ) { } public void snoozeTimer ( TimerSession timerSession ) { } public void wakeTimer ( TimerSession timerSession ) { } private boolean isTimerConflict ( TimerSession timer ) { } private boolean hasConflict ( TimerSession timerToAdd , int day ) { } public void update ( Observable observable , Object o ) { } private void notifyViewChanged ( ) { } }

Fix:
if ( timerSession . getActive ( ) ) {
Buggy code:
@ Controller @ RequestMapping ( "//storage//" ) public class StorageController { @ Autowired private StorageService storageService ; @ RequestMapping ( value = "add" , method = RequestMethod . GET ) public String loadAddStorage ( HttpServletRequest request , Map < String , Object > map ) { } @ RequestMapping ( "list" ) public String listStorage ( Map < String , Object > map ) { } @ RequestMapping ( value = "add" , method = RequestMethod . POST ) public String addStorage ( HttpServletRequest request , @ ModelAttribute ( "storage" ) @ Valid Storage storage , BindingResult result ) { if ( ( ! ( request . isUserInRole ( "ADMIN" ) ) ) && ( request . isUserInRole ( "USER" ) ) ) { return "redirect://403" ; } if ( ( ! ( request . isUserInRole ( "ADMIN" ) ) ) && ( ! ( request . isUserInRole ( "USER" ) ) ) ) { return "redirect://login" ; } if ( result . hasErrors ( ) ) { <START_BUG> return "storage" ; <END_BUG> } storageService . create ( storage ) ; return "redirect://storage//add" ; } @ RequestMapping ( "//delete//{storageId}" ) public String deleteStorage ( HttpServletRequest request , @ PathVariable ( "storageId" ) Long storageId ) { } }

Fix:
return "addStorage" ;
Buggy code:
public class ManifestAttachmentProcessor implements DeploymentUnitProcessor { public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { <START_BUG> final DeploymentUnit deploymentUnitContext = phaseContext . getDeploymentUnitContext ( ) ; <END_BUG> Manifest manifest = deploymentUnitContext . getAttachment ( MANIFEST ) ; if ( manifest != null ) return ; final VirtualFile deploymentRoot = deploymentUnitContext . getAttachment ( DEPLOYMENT_ROOT ) ; try { manifest = VFSUtils . getManifest ( deploymentRoot ) ; if ( manifest != null ) deploymentUnitContext . putAttachment ( MANIFEST , manifest ) ; } catch ( IOException e ) { throw new DeploymentUnitProcessingException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>manifest<seq2seq4repair_space>for<seq2seq4repair_space>deployment<seq2seq4repair_space>" + deploymentRoot ) , e ) ; } } public void undeploy ( final DeploymentUnit context ) { } }

Fix:
final DeploymentUnit deploymentUnitContext = phaseContext . getDeploymentUnit ( ) ;
Buggy code:
public final class FalsePredicate < T > implements Serializable , Predicate < T > { private static final long serialVersionUID = 7533784454832764388L ; public static final Predicate < Object > INSTANCE = new FalsePredicate < Object > ( ) ; @ SuppressWarnings ( "unchecked" ) public static < T > Predicate < T > falsePredicate ( ) { } private FalsePredicate ( ) { } <START_BUG> public boolean evaluate ( T object ) { <END_BUG> return false ; } private Object readResolve ( ) { } }

Fix:
public boolean evaluate ( final T object ) {
Buggy code:
public class Query { public Query ( Connection connection , String queryText ) { } private Connection connection ; private Map < String , String > columnMappings ; private Map < String , Method > methodsMap ; private NamedParameterStatement statement ; private boolean caseSensitive ; public Query addParameter ( String name , Object value ) { } public Query addParameter ( String name , int value ) { } public Query addParameter ( String name , long value ) { } public Query addParameter ( String name , String value ) { } public Query addParameter ( String name , Timestamp value ) { } public Query addParameter ( String name , Date value ) { } public Query addParameter ( String name , java . util . Date value ) { <START_BUG> Date sqlDate = new Date ( value . getTime ( ) ) ; <END_BUG> return addParameter ( name , sqlDate ) ; } public Query addParameter ( String name , Time value ) { } public Query addParameter ( String name , DateTime value ) { } public boolean isCaseSensitive ( ) { } public Query setCaseSensitive ( boolean caseSensitive ) { } private String getSetterName ( String fieldName ) { } private String getGetterName ( String fieldName ) { } private void prepareColumnMappings ( Class objClass ) { } private Map < String , Class > mappedTypes = null ; private void prepareColumnMappingsIfNecessary ( Class objClass ) { } private void setField ( Object obj , String fieldName , Object value ) throws IllegalAccessException , InvocationTargetException { } private Class getValueClass ( Object value ) { } private Object instantiateIfNecessary ( Object obj , String fieldName ) throws IllegalAccessException , InstantiationException , InvocationTargetException { } public < T > List < T > executeAndFetch ( Class returnType ) { } public < T > T executeAndFetchFirst ( Class returnType ) { } public Connection executeUpdate ( ) { } public Object executeScalar ( ) { } public < T > List < T > executeScalarList ( ) { } public Query addToBatch ( ) { } public Connection executeBatch ( ) { } public Map < String , String > getColumnMappings ( ) { } public Query addColumnMapping ( String columnName , String fieldName ) { } private void closeConnectionIfNecessary ( ) { } }

Fix:
Date sqlDate = ( value == null ) ? null : new Date ( value . getTime ( ) ) ;
Buggy code:
class BootstrapMetadataMessage { private static ICompactSerializer < BootstrapMetadataMessage > serializer_ ; protected static ICompactSerializer < BootstrapMetadataMessage > serializer ( ) { } protected static Message makeBootstrapMetadataMessage ( BootstrapMetadataMessage bsMetadataMessage ) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; DataOutputStream dos = new DataOutputStream ( bos ) ; BootstrapMetadataMessage . serializer ( ) . serialize ( bsMetadataMessage , dos ) ; <START_BUG> return new Message ( StorageService . getLocalStorageEndPoint ( ) , "" , StorageService . bsMetadataVerbHandler_ , new Object [ ] { bos . toByteArray ( ) } ) ; <END_BUG> } protected BootstrapMetadata [ ] bsMetadata_ = new BootstrapMetadata [ 0 ] ; BootstrapMetadataMessage ( BootstrapMetadata [ ] bsMetadata ) { } }

Fix:
return new Message ( StorageService . getLocalStorageEndPoint ( ) , "" , StorageService . bsMetadataVerbHandler_ , bos . toByteArray ( ) ) ;
Buggy code:
public class Location { private Room room = null ; private Floor floor = null ; private final List < AccessPoint > aps ; private final Coordinate location ; protected Location ( Coordinate location , Floor floor , List < AccessPoint > aps ) { } protected Location ( Coordinate location , Room room , List < AccessPoint > aps ) { } protected Location ( Coordinate location , List < AccessPoint > aps ) { } public Coordinate getLocation ( ) { } public Floor getFloor ( ) { } public Room getRoom ( ) { } public static Location getFromReadings ( List < WifiReading > readings ) throws ConnectionException , ServerException , UnrecognizedResponseException { } private static JSONObject readingsToJSON ( List < WifiReading > readings ) { JSONObject aps = new JSONObject ( ) ; for ( WifiReading reading : readings ) { try { aps . put ( reading . mac , reading . signal ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } } JSONObject req = new JSONObject ( ) ; try { req . put ( "request" , "location" ) ; req . put ( "aps" , aps ) ; } catch ( JSONException e ) { <START_BUG> e . printStackTrace ( ) ; <END_BUG> } return req ; } }

Fix:
throw new RuntimeException ( e ) ;
Buggy code:
public abstract class AbstractQueryCacheTest extends SingleEMFTestCase { private Class [ ] entityClassTypes = new Class [ ] { Part . class , PartBase . class , PartComposite . class , Supplier . class , Usage . class } ; protected boolean deleteData = false ; protected boolean recreateData = true ; public void setUp ( Object ... props ) { } public void tearDown ( ) throws Exception { } protected void reCreateData ( ) { } protected void deleteAllData ( ) { EntityManager em = emf . createEntityManager ( ) ; em . getTransaction ( ) . begin ( ) ; <START_BUG> em . createNativeQuery ( "delete<seq2seq4repair_space>from<seq2seq4repair_space>supplier_part" ) . executeUpdate ( ) ; <END_BUG> em . createQuery ( "delete<seq2seq4repair_space>from<seq2seq4repair_space>PartBase<seq2seq4repair_space>s" ) . executeUpdate ( ) ; em . createQuery ( "delete<seq2seq4repair_space>from<seq2seq4repair_space>Supplier<seq2seq4repair_space>s" ) . executeUpdate ( ) ; em . createQuery ( "delete<seq2seq4repair_space>from<seq2seq4repair_space>Usage<seq2seq4repair_space>u" ) . executeUpdate ( ) ; em . createQuery ( "delete<seq2seq4repair_space>from<seq2seq4repair_space>Part<seq2seq4repair_space>p" ) . executeUpdate ( ) ; em . getTransaction ( ) . commit ( ) ; em . close ( ) ; } protected void loadQueryCache ( ) { } protected void updateAnEntity ( ) { } protected ConcurrentQueryCache getQueryCache ( ) { } protected int queryCacheGet ( ) { } protected boolean checkSupportsIdentityGenerationType ( ) { } public void testEviction ( ) { } }

Fix:
em . createNativeQuery ( "delete<seq2seq4repair_space>from<seq2seq4repair_space>Supplier_Part" ) . executeUpdate ( ) ;
Buggy code:
public class Player { char type ; String [ ] hand = new String [ 2 ] ; int influence ; int coins ; String name = null ; public Player ( ) { } public Player ( char t ) throws IllegalArgumentException { } public Player ( char t , String s ) throws IllegalArgumentException { } public char getType ( ) { } public int getInf ( ) { } public int getCoins ( ) { } public String getName ( ) { } public String [ ] getHand ( ) { } public Vector < String > getHandVec ( ) { } public void setType ( char t ) throws IllegalArgumentException { } public void AIaddHandInfo ( String card1 , String card2 ) { } public void setHand ( String [ ] h ) throws IllegalArgumentException { } public void setCard ( int n , String s ) throws IllegalArgumentException { if ( ( n < 1 ) || ( n > 2 ) ) { throw new IllegalArgumentException ( "Card<seq2seq4repair_space>number<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>either<seq2seq4repair_space>1<seq2seq4repair_space>or<seq2seq4repair_space>2." ) ; } Vector < String > vc = new Vector < String > ( ) ; vc . addElement ( "DUKE" ) ; vc . addElement ( "CONTESSA" ) ; vc . addElement ( "ASSASSIN" ) ; vc . addElement ( "AMBASSADOR" ) ; vc . addElement ( "CAPTAIN" ) ; if ( ! ( vc . contains ( s ) ) ) { <START_BUG> throw new IllegalArgumentException ( "Invalid<seq2seq4repair_space>card<seq2seq4repair_space>name" ) ; <END_BUG> } vc . clear ( ) ; hand [ ( n - 1 ) ] = s ; } public void setInf ( int n ) throws IllegalArgumentException { } public void setName ( String s ) { } public void removeInf ( Scanner gs ) { } public void addCoins ( int n ) { } public boolean AIchallenge ( String s ) { } public boolean challenge ( String s , Scanner gs ) throws IllegalArgumentException { } public boolean AIblock ( String s ) { } public boolean block ( String s , Scanner gs ) throws IllegalArgumentException { } public char AIdecision ( String s ) { } public char decision ( String s , Scanner gs ) throws IllegalArgumentException { } public String AImove ( ) { } public String move ( Vector < String > vi , Scanner gs ) { } public boolean hasCard ( String card ) throws IllegalArgumentException { } public void swap ( String card , Deck d ) throws IllegalArgumentException { } public String [ ] AIambassador ( String card1 , String card2 ) { } public void ambassador ( Deck d , Scanner gs ) { } public void AIrevealCard ( String card ) { } public String AIcardToReveal ( ) { } public void AIgotChallenged ( String s , boolean won ) { } public void AIchallengeResult ( String s , boolean won ) { } public void AIdoesMove ( String s ) { } public void AInewCard ( String newCard , String oldCard ) { } public void AIgotCouped ( ) { } }

Fix:
throw new IllegalArgumentException ( ( "Invalid<seq2seq4repair_space>card<seq2seq4repair_space>name:<seq2seq4repair_space>" + s ) ) ;
Buggy code:
public class UndertowConnector implements Connector { private final ListenerService < ? > listener ; public UndertowConnector ( ListenerService < ? > listener ) { } @ Override public boolean isReverse ( ) { <START_BUG> return true ; <END_BUG> } @ Override public Type getType ( ) { } @ Override public InetAddress getAddress ( ) { } @ Override public void setAddress ( InetAddress address ) { } @ Override public int getPort ( ) { } @ Override public boolean isAvailable ( ) { } @ Override public int getMaxThreads ( ) { } @ Override public int getBusyThreads ( ) { } @ Override public long getBytesSent ( ) { } @ Override public long getBytesReceived ( ) { } @ Override public long getRequestCount ( ) { } @ Override public String toString ( ) { } @ Override public boolean equals ( Object object ) { } @ Override public int hashCode ( ) { } }

Fix:
return false ;
Buggy code:
public class MetaDataHierarchyImpl implements MetaDataHierarchy { public enum ItemType { METADATA , IMAGE , SELECTION ; } public enum ImageGroup { ALL_IMAGE , SELECTED ; } public static int NB_PLANE_THREAD = 10 ; private final CheckBoxTreeItem rootItem ; private final HashMap < PlaneDB , TreeItem > planeNodeMap ; private final HashMap < PlaneDB , MetaDataHierarchyImpl . ImageListeners > imageListenersMap ; private final ReadOnlyListProperty < PlaneDB > planes ; private final ReadOnlyListProperty < String > hierarchy ; private final ReadOnlyBooleanWrapper updatingProperty ; private final ReadOnlyBooleanWrapper updatedProperty ; private final ReadOnlyDoubleWrapper progressProperty ; private final Project project ; private Future futureTask ; public MetaDataHierarchyImpl ( Project project , ReadOnlyListProperty < String > hierarchy , ReadOnlyListProperty < PlaneDB > planes ) { } @ Override public CheckBoxTreeItem getRoot ( ) { } private void createTree ( ) { } @ Override public ReadOnlyBooleanProperty updatingProperty ( ) { } @ Override public ReadOnlyDoubleProperty progressProperty ( ) { } @ Override public ReadOnlyBooleanProperty updatedProperty ( ) { } private void clearEmptyFolderRec ( TreeItem item ) { } private void removeItemFromTree ( TreeItem item ) { } private void updateImagePosition ( PlaneDB image ) { } private void placeImageInFolder ( PlaneDB image , TreeItem root , HashMap < PlaneDB , TreeItem > map ) { } private void createMetaDataItem ( int hierarchyIndex , TreeItem root , PlaneDB image ) { } private void addImageItem ( HashMap < PlaneDB , TreeItem > map , PlaneDB image , TreeItem parent ) { } private void removeImageItem ( HashMap < PlaneDB , TreeItem > map , PlaneDB image ) { } private boolean imageContainsKey ( PlaneDB image , String key ) { <START_BUG> return image . getMetaDataSetProperty ( MODIFIED_METADATASET ) . containsKey ( key ) ; <END_BUG> } private void addImage ( PlaneDB newPlane ) { } private void removeImage ( PlaneDB removedPlane ) { } @ Override public void stopListening ( ) { } private void handleMetaDataSetChange ( MapChangeListener . Change < ? extends String , ? extends MetaData > change , PlaneDB plane ) { } private void handleHierarchyChange ( ObservableValue < ? extends ObservableList < String > > observable , ObservableList < String > oldValue , ObservableList < String > newValue ) { } private void handlePlaneListChange ( ListChangeListener . Change < ? extends PlaneDB > c ) { } private Task < Void > createTask ( List < PlaneDB > planeList , Consumer < PlaneDB > c ) { } public class ImageListeners { private ChangeListener < Boolean > selectionListener ; private MapChangeListener metaDataListener ; private final PlaneDB image ; private ImageListeners ( PlaneDB image ) { } private void setMetaDataListener ( MapChangeListener listener ) { } private void stopListeningMetaData ( ) { } private void stopListening ( ) { } } private void addGraphicToItem ( TreeItem item , MetaDataHierarchyImpl . ItemType itemType ) { } private void runTask ( Task task ) { } }

Fix:
return image . getMetaDataSet ( ) . containsKey ( key ) ;
Buggy code:
public class LPBCTileGenericPipe extends TileGenericPipe implements IBCTilePart { private final LPBCPipe bcPipe ; private final LPBCPluggableState bcPlugState ; private final LPBCPipeRenderState bcRenderState ; private final LogisticsTileGenericPipe lpPipe ; private boolean blockPluggableAccess = false ; public LPBCTileGenericPipe ( LPBCPipe pipe , LogisticsTileGenericPipe lpPipe ) throws IllegalAccessException , IllegalArgumentException , NoSuchFieldException , SecurityException { } @ Override public void writeToNBT_LP ( NBTTagCompound nbt ) { } @ Override public void readFromNBT_LP ( NBTTagCompound nbt ) { } @ Override public void invalidate_LP ( ) { } @ Override public void validate_LP ( ) { } @ Override @ SneakyThrows ( { NoSuchFieldException . class , SecurityException . class , IllegalArgumentException . class , IllegalAccessException . class , NoSuchMethodException . class , InvocationTargetException . class } ) public void updateEntity_LP ( ) { } @ Override public IBCRenderState getBCRenderState ( ) { } @ Override public IBCPipePart getBCPipePart ( ) { } @ Override public IBCPluggableState getBCPlugableState ( ) { } @ Override public void readOldRedStone ( NBTTagCompound nbt ) { } @ Override public IBCPipePluggable getBCPipePluggable ( final ForgeDirection sideHit ) { } @ Override public PipePluggable getPipePluggable ( ForgeDirection side ) { if ( blockPluggableAccess ) { StackTraceElement [ ] trace = Thread . currentThread ( ) . getStackTrace ( ) ; <START_BUG> if ( ( ( ( ( trace . length ) > 2 ) && ( trace [ 2 ] . getMethodName ( ) . equals ( "onBlockActivated" ) ) ) && ( trace [ 2 ] . getClassName ( ) . equals ( "buildcraft.transport.BlockGenericPipe" ) ) ) && ( ( trace [ 2 ] . getLineNumber ( ) ) > 680 ) ) { <END_BUG> return null ; } } return super . getPipePluggable ( side ) ; } @ Override public void disablePluggableAccess ( ) { } @ Override public void reenablePluggableAccess ( ) { } @ Override public void afterStateUpdated ( ) { } @ Override public Object getOriginal ( ) { } @ Override public Block getBlock ( ForgeDirection to ) { } @ Override public TileEntity getTile ( ForgeDirection to ) { } @ Override public void sendUpdateToClient ( ) { } @ Override public void setWorldObj_LP ( World world ) { } @ Override public PipeType getPipeType ( ) { } @ Override public boolean isPipeConnected ( ForgeDirection with ) { } }

Fix:
if ( ( ( ( ( trace . length ) > 2 ) && ( ( trace [ 2 ] . getMethodName ( ) . equals ( "onBlockActivated" ) ) || ( trace [ 2 ] . getMethodName ( ) . equals ( "func_149727_a" ) ) ) ) && ( trace [ 2 ] . getClassName ( ) . equals ( "buildcraft.transport.BlockGenericPipe" ) ) ) && ( ( trace [ 2 ] . getLineNumber ( ) ) > 680 ) ) {
Buggy code:
public class NGramTokenFilterTest extends BaseTokenStreamTestCase { private TokenStream input ; @ Override public void setUp ( ) throws Exception { } public void testInvalidInput ( ) throws Exception { } public void testInvalidInput2 ( ) throws Exception { } public void testUnigrams ( ) throws Exception { } public void testBigrams ( ) throws Exception { } public void testNgrams ( ) throws Exception { } public void testOversizedNgrams ( ) throws Exception { } public void testSmallTokenInStream ( ) throws Exception { input = new org . apache . lucene . analysis . WhitespaceTokenizer ( Version . LUCENE_CURRENT , new StringReader ( "abc<seq2seq4repair_space>de<seq2seq4repair_space>fgh" ) ) ; NGramTokenFilter filter = new NGramTokenFilter ( input , 3 , 3 ) ; <START_BUG> assertTokenStreamContents ( filter , new String [ ] { "abc" , "fgh" } , new int [ ] { 0 , 0 } , new int [ ] { 3 , 3 } ) ; <END_BUG> } public void testReset ( ) throws Exception { } }

Fix:
assertTokenStreamContents ( filter , new String [ ] { "abc" , "fgh" } , new int [ ] { 0 , 7 } , new int [ ] { 3 , 10 } ) ;
Buggy code:
public class SimpleP4OutputHandler extends P4HandlerAdapter { P4Base parent ; public SimpleP4OutputHandler ( P4Base parent ) { } public void process ( String line ) throws BuildException { if ( parent . util . match ( "//^exit//" , line ) ) { return ; } if ( ( parent . util . match ( "//error://" , line ) ) && ( ! ( parent . util . match ( "//up-to-date//" , line ) ) ) ) { throw new BuildException ( line ) ; } <START_BUG> parent . log ( parent . util . substitute ( "s//^.*:<seq2seq4repair_space>////" , line ) , MSG_INFO ) ; <END_BUG> } }

Fix:
parent . log ( parent . util . substitute ( "s//^[^:]*:<seq2seq4repair_space>////" , line ) , MSG_INFO ) ;
Buggy code:
public class StringLiteral extends Expression { private static final String SPECIALS = "\b\t\n\f\r\"\'\\" ; private static final String QUOTED_SPECIALS = "btnfr\"\'\\" ; private String escapedValue = "\"\"" ; StringLiteral ( AST ast ) { } ASTNode clone ( AST target ) { } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public String getEscapedValue ( ) { } public void setEscapedValue ( String token ) { if ( token == null ) { throw new IllegalArgumentException ( ) ; } Scanner scanner = getAST ( ) . scanner ; char [ ] source = token . toCharArray ( ) ; <START_BUG> scanner . setSourceBuffer ( source ) ; <END_BUG> scanner . resetTo ( 0 , source . length ) ; try { int tokenType = scanner . getNextToken ( ) ; switch ( tokenType ) { case Scanner . TokenNameStringLiteral : break ; default : throw new IllegalArgumentException ( ) ; } } catch ( InvalidInputException e ) { throw new IllegalArgumentException ( ) ; } modifying ( ) ; this . escapedValue = token ; } public String getLiteralValue ( ) { } public void setLiteralValue ( String value ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
scanner . setSource ( source ) ;
Buggy code:
public class CustomFtpFile extends NativeFtpFile { public CustomFtpFile ( String name , File file ) { } @ Override public boolean isWritable ( ) { } @ Override public boolean isRemovable ( ) { } @ Override public boolean delete ( ) { } @ Override public boolean move ( FtpFile dest ) { } @ Override public boolean mkdir ( ) { } @ Override public boolean isHidden ( ) { } public List < FtpFile > listFiles ( ) { if ( ! ( getPhysicalFile ( ) . isDirectory ( ) ) ) { return null ; } File [ ] files = getPhysicalFile ( ) . listFiles ( ) ; if ( files == null ) { return null ; } Arrays . sort ( files , new Comparator < File > ( ) { public int compare ( File f1 , File f2 ) { return f1 . getName ( ) . compareTo ( f2 . getName ( ) ) ; } } ) ; String virtualFileStr = getAbsolutePath ( ) ; if ( ( virtualFileStr . charAt ( ( ( virtualFileStr . length ( ) ) - 1 ) ) ) != '//' ) { virtualFileStr += '//' ; } FtpFile [ ] virtualFiles = new FtpFile [ files . length ] ; for ( int i = 0 ; i < ( files . length ) ; ++ i ) { File fileObj = files [ i ] ; String fileName = virtualFileStr + ( fileObj . getPath ( ) . substring ( getPhysicalFile ( ) . getPath ( ) . length ( ) ) . replaceAll ( "\\\\" , "//" ) ) ; <START_BUG> virtualFiles [ i ] = new CustomFtpFile ( FtpUtils . getName ( fileName , getAbsolutePath ( ) ) , fileObj ) ; <END_BUG> } return Collections . unmodifiableList ( Arrays . asList ( virtualFiles ) ) ; } }

Fix:
virtualFiles [ i ] = new CustomFtpFile ( fileName , fileObj ) ;
Buggy code:
public class InsertTest { static GenericXmlApplicationContext factory ; static Logger log = Logger . getLogger ( InsertTest . class ) ; @ BeforeClass public static void setUpBeforeClass ( ) throws Exception { InsertTest . log . info ( "###<seq2seq4repair_space>setUpBeforeClass" ) ; <START_BUG> InsertTest . factory = new GenericXmlApplicationContext ( "classpath://webapp//resource//beans.xml" ) ; <END_BUG> } @ AfterClass public static void tearDownAfterClass ( ) throws Exception { } @ Test public void testInsert ( ) throws SQLException { } }

Fix:
InsertTest . factory = new GenericXmlApplicationContext ( "classpath://webapp//spring//beans.xml" ) ;
Buggy code:
public class TestHandlerToRelationMaps extends SingleEMTestCase { public void setUp ( ) { <START_BUG> setUp ( HandlerToRelationMapInstance . class , AllFieldTypes . class , CLEAR_TABLES , "openjpa.Log" , "SQL=TRACE" ) ; <END_BUG> } public void testHandlerToRelationMaps ( ) { } }

Fix:
setUp ( HandlerToRelationMapInstance . class , AllFieldTypes . class , CLEAR_TABLES ) ;
Buggy code:
public class ManagementPongHeader extends ManagementProtocolHeader { protected ManagementPongHeader ( int version ) { } @ Override public byte getType ( ) { <START_BUG> return ManagementProtocol . TYPE_PING ; <END_BUG> } }

Fix:
return ManagementProtocol . TYPE_PONG ;
Buggy code:
public class JMSTopicService implements Service < Void > { private final InjectedValue < JMSServerManager > jmsServer = new InjectedValue < JMSServerManager > ( ) ; private final String name ; private final String [ ] jndi ; public JMSTopicService ( String name , String [ ] jndi ) { } public synchronized void start ( StartContext context ) throws StartException { final JMSServerManager jmsManager = jmsServer . getValue ( ) ; try { jmsManager . createTopic ( false , name , jndi ) ; } catch ( Exception e ) { <START_BUG> throw new StartException ( MessagingMessages . MESSAGES . failedToCreate ( "queue" ) , e ) ; <END_BUG> } } public synchronized void stop ( StopContext context ) { } public Void getValue ( ) throws IllegalStateException { } public InjectedValue < JMSServerManager > getJmsServer ( ) { } }

Fix:
throw MessagingMessages . MESSAGES . failedToCreate ( e , "queue" ) ;
Buggy code:
@ Test ( groups = "unit" , testName = "PerformanceStatisticsJAXBParsingTest" ) public class PerformanceStatisticsJAXBParsingTest extends BaseRestClientTest { private SimpleDateFormatDateService dateService ; @ BeforeMethod public void setUp ( ) { } @ BeforeClass void setupFactory ( ) { } public void testParseWithJAXB ( ) throws Exception { } private void assertVirtalMachineStatistics ( Set < VirtualMachinePerformanceStatistic > vmStatistics ) { assertEquals ( vmStatistics . size ( ) , 1 ) ; VirtualMachinePerformanceStatistic statistic = Iterables . getOnlyElement ( vmStatistics ) ; <START_BUG> assertEquals ( statistic . getStatistics ( ) . size ( ) , 24 ) ; <END_BUG> for ( PerformanceStatistic stat : statistic . getStatistics ( ) ) { assertNotNull ( stat . getTime ( ) ) ; assertNotNull ( stat . getUsed ( ) ) ; } } }

Fix:
assertEquals ( statistic . getStatistics ( ) . size ( ) , 7 ) ;
Buggy code:
public class ExplicitConstructorCall extends Statement implements InvocationSite { public Expression [ ] arguments ; public Expression qualification ; public MethodBinding binding ; public int accessMode ; public static final int ImplicitSuper = 1 ; public static final int Super = 2 ; public static final int This = 3 ; public VariableBinding [ ] [ ] implicitArguments ; boolean discardEnclosingInstance ; MethodBinding syntheticAccessor ; public ExplicitConstructorCall ( int accessMode ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public boolean isImplicitSuper ( ) { } public boolean isSuperAccess ( ) { } public boolean isTypeAccess ( ) { } void manageEnclosingInstanceAccessIfNecessary ( BlockScope currentScope ) { } public void manageSyntheticAccessIfNecessary ( BlockScope currentScope ) { if ( ( binding . isPrivate ( ) ) && ( ( accessMode ) != ( ExplicitConstructorCall . This ) ) ) { if ( currentScope . environment ( ) . options . isPrivateConstructorAccessChangingVisibility ) { binding . tagForClearingPrivateModifier ( ) ; } else { <START_BUG> syntheticAccessor = ( ( SourceTypeBinding ) ( binding . declaringClass ) ) . addSyntheticMethod ( binding ) ; <END_BUG> currentScope . problemReporter ( ) . needToEmulateMethodAccess ( binding , this ) ; } } } public void resolve ( BlockScope scope ) { } public void setActualReceiverType ( ReferenceBinding receiverType ) { } public void setDepth ( int depth ) { } public void setFieldIndex ( int depth ) { } public String toString ( int tab ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope scope ) { } }

Fix:
syntheticAccessor = ( ( SourceTypeBinding ) ( binding . declaringClass ) ) . addSyntheticMethod ( binding , isSuperAccess ( ) ) ;
Buggy code:
@ NoReplayedEvents public class ConfirmEmailAddressSaga extends AbstractAnnotatedSaga { @ Resource private transient CommandGateway commandGateway ; public CommandGateway getCommandGateway ( ) { } public void setCommandGateway ( CommandGateway commandGateway ) { } @ StartSaga @ SagaEventHandler ( associationProperty = "userId" ) public void handle ( UserRegistered event ) { } @ StartSaga @ SagaEventHandler ( associationProperty = "userId" ) public void handle ( UnconfirmedUserEmailAddressSupplied event ) { } private String autoConfirmTestUsersEmailAddress_HACK ( UserId userId , String emailAddress , String emailVerificationCode ) { <START_BUG> if ( emailAddress . endsWith ( "@boerrild.dk" ) ) { <END_BUG> commandGateway . send ( new net . maritimecloud . identityregistry . command . api . VerifyEmailAddress ( userId , emailVerificationCode ) ) ; } return emailVerificationCode ; } @ EndSaga @ SagaEventHandler ( associationProperty = "userId" ) public void handle ( UserEmailAddressVerified event ) { } }

Fix:
if ( emailAddress . endsWith ( "@auto.demo.dma.dk" ) ) {
Buggy code:
public class TrapezoidIntegrator implements SampledFunctionIntegrator { public double [ ] integrate ( SampledFunctionIterator iter ) throws ExhaustedSampleException , FunctionException { TrapezoidIntegratorSampler sampler = new TrapezoidIntegratorSampler ( iter ) ; double [ ] sum = null ; try { while ( true ) { <START_BUG> sum = sampler . nextSamplePoint ( ) . getY ( ) ; <END_BUG> } } catch ( ExhaustedSampleException e ) { } return sum ; } }

Fix:
sum = sampler . nextSamplePoint ( ) . y ;
Buggy code:
public class ActionSaveConfiguration extends UMLAction { public static ActionSaveConfiguration SINGLETON = new ActionSaveConfiguration ( ) ; protected ActionSaveConfiguration ( ) { } public void actionPerformed ( ActionEvent event ) { <START_BUG> TheInstance . saveScreenConfiguration ( ) ; <END_BUG> if ( ! ( Configuration . save ( ) ) ) Configuration . save ( true ) ; } }

Fix:
ProjectBrowser . getInstance ( ) . saveScreenConfiguration ( ) ;
Buggy code:
public class MyLoggerTest { public static void main ( String [ ] args ) { if ( ( args . length ) == 0 ) { Logger root = Logger . getRootLogger ( ) ; Layout layout = new PatternLayout ( "%p<seq2seq4repair_space>[%t]<seq2seq4repair_space>%c<seq2seq4repair_space>(%F:%L)<seq2seq4repair_space>-<seq2seq4repair_space>%m%n" ) ; root . addAppender ( new ConsoleAppender ( layout , ConsoleAppender . SYSTEM_OUT ) ) ; } else if ( ( args . length ) == 1 ) { if ( args [ 0 ] . endsWith ( "xml" ) ) { JoranConfigurator jc = new JoranConfigurator ( ) ; jc . doConfigure ( args [ 0 ] , LogManager . getLoggerRepository ( ) ) ; } else { PropertyConfigurator . configure ( args [ 0 ] ) ; } } else { MyLoggerTest . usage ( "Incorrect<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>parameters." ) ; } try { <START_BUG> MyLogger c = ( ( MyLogger ) ( MyLogger . getInstance ( "some.cat" ) ) ) ; <END_BUG> c . trace ( "Hello" ) ; c . debug ( "Hello" ) ; } catch ( ClassCastException e ) { LogLog . error ( "Did<seq2seq4repair_space>you<seq2seq4repair_space>forget<seq2seq4repair_space>to<seq2seq4repair_space>set<seq2seq4repair_space>the<seq2seq4repair_space>factory<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>config<seq2seq4repair_space>file?" , e ) ; } } static void usage ( String errMsg ) { } }

Fix:
MyLogger c = ( ( MyLogger ) ( MyLogger . getLogger ( "some.cat" ) ) ) ;
Buggy code:
public class RequestorWrapper implements IRequestor { ICodeSnippetRequestor requestor ; public RequestorWrapper ( ICodeSnippetRequestor requestor ) { } public boolean acceptClassFiles ( ClassFile [ ] classFiles , char [ ] codeSnippetClassName ) { } public void acceptProblem ( CategorizedProblem problem , char [ ] fragmentSource , int fragmentKind ) { try { IMarker marker = ResourcesPlugin . getWorkspace ( ) . getRoot ( ) . createMarker ( IJavaModelMarker . TRANSIENT_PROBLEM ) ; marker . setAttribute ( IJavaModelMarker . ID , problem . getID ( ) ) ; marker . setAttribute ( IMarker . CHAR_START , problem . getSourceStart ( ) ) ; marker . setAttribute ( IMarker . CHAR_END , ( ( problem . getSourceEnd ( ) ) + 1 ) ) ; marker . setAttribute ( IMarker . LINE_NUMBER , problem . getSourceLineNumber ( ) ) ; marker . setAttribute ( IMarker . MESSAGE , problem . getMessage ( ) ) ; marker . setAttribute ( IMarker . SEVERITY , ( problem . isWarning ( ) ? IMarker . SEVERITY_WARNING : IMarker . SEVERITY_ERROR ) ) ; <START_BUG> marker . setAttribute ( GENERATED_BY , JavaBuilder . SOURCE_ID ) ; <END_BUG> this . requestor . acceptProblem ( marker , new String ( fragmentSource ) , fragmentKind ) ; } catch ( CoreException e ) { e . printStackTrace ( ) ; } } }

Fix:
marker . setAttribute ( IMarker . SOURCE_ID , JavaBuilder . SOURCE_ID ) ;
Buggy code:
public class RequestListenerInterface { private static final Map < String , RequestListenerInterface > interfaces = Collections . synchronizedMap ( new HashMap < String , RequestListenerInterface > ( ) ) ; private static final Logger log = LoggerFactory . getLogger ( RequestListenerInterface . class ) ; public static final RequestListenerInterface forName ( final String interfaceName ) { } private Method method ; private final String name ; private boolean recordsPageVersion = true ; public RequestListenerInterface ( final Class < ? extends IRequestListener > listenerInterfaceClass ) { } public RequestListenerInterface ( final Class < ? extends IRequestListener > listenerInterfaceClass , boolean recordsPageVersion ) { } public final Method getMethod ( ) { } public final String getName ( ) { } public final boolean getRecordsPageVersion ( ) { } public final void invoke ( final IRequestableComponent component ) { <START_BUG> if ( ( ! ( component . isEnabledInHierarchy ( ) ) ) || ( ! ( component . isVisibleInHierarchy ( ) ) ) ) { <END_BUG> RequestListenerInterface . log . info ( ( "component<seq2seq4repair_space>not<seq2seq4repair_space>enabled<seq2seq4repair_space>or<seq2seq4repair_space>visible;<seq2seq4repair_space>ignoring<seq2seq4repair_space>call.<seq2seq4repair_space>Component:<seq2seq4repair_space>" + component ) ) ; return ; } try { method . invoke ( component , new Object [ ] { } ) ; } catch ( InvocationTargetException e ) { if ( ( ( ( e . getTargetException ( ) ) instanceof ReplaceHandlerException ) || ( ( e . getTargetException ( ) ) instanceof AuthorizationException ) ) || ( ( e . getTargetException ( ) ) instanceof WicketRuntimeException ) ) { throw ( ( RuntimeException ) ( e . getTargetException ( ) ) ) ; } throw new WicketRuntimeException ( ( ( ( ( ( ( "Method<seq2seq4repair_space>" + ( method . getName ( ) ) ) + "<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( method . getDeclaringClass ( ) ) ) + "<seq2seq4repair_space>targeted<seq2seq4repair_space>at<seq2seq4repair_space>component<seq2seq4repair_space>" ) + component ) + "<seq2seq4repair_space>threw<seq2seq4repair_space>an<seq2seq4repair_space>exception" ) , e ) ; } catch ( Exception e ) { throw new WicketRuntimeException ( ( ( ( ( ( ( "Method<seq2seq4repair_space>" + ( method . getName ( ) ) ) + "<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( method . getDeclaringClass ( ) ) ) + "<seq2seq4repair_space>targeted<seq2seq4repair_space>at<seq2seq4repair_space>component<seq2seq4repair_space>" ) + component ) + "<seq2seq4repair_space>threw<seq2seq4repair_space>an<seq2seq4repair_space>exception" ) , e ) ; } finally { } } public final void invoke ( final IRequestableComponent component , final IBehavior behavior ) { } public void register ( ) { } @ Override public String toString ( ) { } private final void registerRequestListenerInterface ( final RequestListenerInterface requestListenerInterface ) { } }

Fix:
if ( ! ( component . canCallListenerInterface ( ) ) ) {
Buggy code:
public class Snippet { private static final HashMap < String , ArrayList < Instruction > > snips = new HashMap < String , ArrayList < Instruction > > ( ) ; private static final HashMap < String , String > snippetLabels = new HashMap < String , String > ( ) ; private static int countStars ( String in ) { } private static void loadSnippet ( String snippet ) { } public static void Init ( ) { Snippet . loadSnippet ( "header" ) ; Snippet . loadSnippet ( "char_to_number" ) ; Snippet . snippetLabels . put ( "char_to_number" , "CHRNMN" ) ; Snippet . loadSnippet ( "char_to_pointer" ) ; Snippet . snippetLabels . put ( "char_to_pointer" , "CHRPTR" ) ; Snippet . loadSnippet ( "clean_number" ) ; Snippet . snippetLabels . put ( "clean_number" , "CLNNMN" ) ; Snippet . loadSnippet ( "number_to_pointer" ) ; Snippet . snippetLabels . put ( "number_to_pointer" , "NMNPTR" ) ; Snippet . loadSnippet ( "pointer_to_number" ) ; Snippet . snippetLabels . put ( "pointer_to_number" , "PTRNMN" ) ; Snippet . loadSnippet ( "pointer_to_char" ) ; Snippet . snippetLabels . put ( "pointer_to_char" , "PTRCHR" ) ; Snippet . loadSnippet ( "SNIP_DIV" ) ; Snippet . snippetLabels . put ( "SNIP_DIV" , "SNPDIV" ) ; Snippet . loadSnippet ( "number_to_char" ) ; <START_BUG> Snippet . snippetLabels . put ( "number_to_char" , "NUMCHR" ) ; <END_BUG> } public static String getSnippetLabel ( String snippet ) { } public static ArrayList < Instruction > getSnippet ( String snippet ) { } }

Fix:
Snippet . snippetLabels . put ( "number_to_char" , "NMNCHR" ) ;
Buggy code:
public interface IOptionRenderer < T > extends IClusterable { <START_BUG> public String getDisplayValue ( Object object ) ; <END_BUG> public IModel < T > getModel ( Object value ) { } }

Fix:
public String getDisplayValue ( T object ) ;