nus-yam/ex-repair huggingface dataset:
Buggy code:
public class RaXmlDeploymentProcessor implements DeploymentUnitProcessor { public static final Logger log = Logger . getLogger ( "org.jboss.as.connector.deployer.raxmldeployer" ) ; private final MetadataRepository mdr ; public RaXmlDeploymentProcessor ( final MetadataRepository mdr ) { } public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { <START_BUG> final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext . getAttachment ( ATTACHMENT_KEY ) ; <END_BUG> if ( connectorXmlDescriptor == null ) { return ; } final ResourceAdapters raxmls = ResourceAdapterAttachment . getResourceAdaptersAttachment ( phaseContext ) ; if ( raxmls == null ) return ; RaXmlDeploymentProcessor . log . tracef ( "processing<seq2seq4repair_space>Raxml" ) ; Module module = phaseContext . getAttachment ( MODULE_ATTACHMENT_KEY ) ; if ( module == null ) throw new DeploymentUnitProcessingException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>module<seq2seq4repair_space>attachment<seq2seq4repair_space>for<seq2seq4repair_space>deployment:<seq2seq4repair_space>" + ( phaseContext . getName ( ) ) ) ) ; try { final ServiceTarget serviceTarget = phaseContext . getBatchBuilder ( ) ; for ( ResourceAdapter raxml : raxmls . getResourceAdapters ( ) ) { String archive = raxml . getArchive ( ) ; URL deployment = null ; Set < String > deployments = mdr . getResourceAdapters ( ) ; for ( String s : deployments ) { if ( ( s . endsWith ( archive ) ) || ( s . endsWith ( archive . substring ( 0 , archive . indexOf ( ".rar" ) ) ) ) ) deployment = new URL ( s ) ; } if ( deployment != null ) { Connector cmd = mdr . getResourceAdapter ( deployment . toExternalForm ( ) ) ; IronJacamar ijmd = mdr . getIronJacamar ( deployment . toExternalForm ( ) ) ; File root = mdr . getRoot ( deployment . toExternalForm ( ) ) ; cmd = new Merger ( ) . mergeConnectorWithCommonIronJacamar ( raxml , cmd ) ; String deploymentName = archive . substring ( 0 , archive . indexOf ( ".rar" ) ) ; ResourceAdapterXmlDeploymentService service = new ResourceAdapterXmlDeploymentService ( connectorXmlDescriptor , raxml , cmd , ijmd , module , deploymentName , root ) ; serviceTarget . addService ( RESOURCE_ADAPTER_XML_SERVICE_PREFIX . append ( deploymentName ) , service ) . addDependency ( IRONJACAMAR_MDR , MetadataRepository . class , service . getMdrInjector ( ) ) . addDependency ( RESOURCE_ADAPTER_REGISTRY_SERVICE , ResourceAdapterDeploymentRegistry . class , service . getRegistryInjector ( ) ) . addDependency ( JNDI_STRATEGY_SERVICE , JndiStrategy . class , service . getJndiInjector ( ) ) . addDependency ( JBOSS_TXN_TRANSACTION_MANAGER , TransactionManagerService . class , service . getTxmInjector ( ) ) . addDependency ( CONNECTOR_CONFIG_SERVICE , ConnectorSubsystemConfiguration . class , service . getConfigInjector ( ) ) . addDependency ( SERVICE_NAME ) . setInitialMode ( ACTIVE ) . install ( ) ; } } } catch ( Throwable t ) { throw new DeploymentUnitProcessingException ( t ) ; } } }

Fix:
final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext . getDeploymentUnitContext ( ) . getAttachment ( ATTACHMENT_KEY ) ;
Buggy code:
public class LearningProject { private final DBExchanger dbex ; private final MediaExchanger mex ; private final ProjectsController ctl ; private final int id ; private String title ; private int numberOfStacks ; private ArrayList < FlashCard > allCards ; public LearningProject ( ProjectsController ctl , String title , int numberOfStacks ) throws SQLException { } public LearningProject ( ProjectsController ctl , int id , String title , int numberOfStacks ) { } public void loadFlashcards ( IProgressPresenter t ) throws SQLException { } public void store ( ) throws SQLException { } public void update ( ) throws SQLException { } public void delete ( ) throws SQLException { } public XMLLearningProject toXMLLearningProject ( ) { } public void addCard ( FlashCard card ) { } public void removeCard ( FlashCard card ) { } public ArrayList < FlashCard > getAllCards ( ) { } public DBExchanger getDBEX ( ) { } public MediaExchanger getMex ( ) { } public String getTitle ( ) { } public void setTitle ( String title ) { } public int getId ( ) { } public int getNumberOfStacks ( ) { } public void setNumberOfStacks ( int newNumberOfStacks ) throws InvalidValueException , IOException , SQLException { } public boolean validNoOfStacks ( int noOfStacks ) { <START_BUG> return noOfStacks > 0 ; <END_BUG> } public int getNumberOfCards ( ) throws SQLException { } public int getNumberOfCards ( int stack ) throws SQLException { } public Status getStatus ( ) throws SQLException { } public String toString ( ) { } }

Fix:
return ( noOfStacks > 0 ) && ( noOfStacks < 100 ) ;
Buggy code:
public class MovingObject extends LevelObject { public static final int MOVE_NONE = - 1 ; public static final int MOVE_LEFT = 0 ; public static final int MOVE_RIGHT = 1 ; public static final int MOVE_UP = 2 ; public static final int MOVE_DOWN = 3 ; private float moveSpeed = 400.0F ; public int moveDirection = MovingObject . MOVE_NONE ; public float moveDistanceX = 0 ; public float moveDistanceY = 0 ; public MovingObject ( Texture texture , int TYPE_OBJECT ) { } public boolean isMoving ( ) { } public void setMove ( int MOVE_DIRECTION ) { } public void updateMove ( float deltaTime ) { if ( isMoving ( ) ) { float moveX = 0 ; float moveY = 0 ; if ( ( moveDistanceX ) != 0 ) { if ( ( moveDistanceX ) < 0 ) moveX = - ( deltaTime * ( moveSpeed ) ) ; else moveX = deltaTime * ( moveSpeed ) ; } if ( ( moveDistanceY ) != 0 ) { if ( ( moveDistanceY ) < 0 ) moveY = - ( deltaTime * ( moveSpeed ) ) ; else moveY = deltaTime * ( moveSpeed ) ; } sprite . setPosition ( ( ( sprite . getX ( ) ) + moveX ) , ( ( sprite . getY ( ) ) + moveY ) ) ; moveDistanceX -= moveX ; moveDistanceY -= moveY ; float epsilon = ( moveDistanceX ) + ( moveDistanceY ) ; if ( epsilon < 0 ) epsilon = - epsilon ; <START_BUG> if ( epsilon < 2.0F ) { <END_BUG> if ( ( moveDirection ) == ( MovingObject . MOVE_LEFT ) ) { setPositionColumn ( ( ( getPositionColumn ( ) ) - 1 ) ) ; } else if ( ( moveDirection ) == ( MovingObject . MOVE_RIGHT ) ) { setPositionColumn ( ( ( getPositionColumn ( ) ) + 1 ) ) ; } else if ( ( moveDirection ) == ( MovingObject . MOVE_UP ) ) { setPositionLine ( ( ( getPositionLine ( ) ) + 1 ) ) ; } else if ( ( moveDirection ) == ( MovingObject . MOVE_DOWN ) ) { setPositionLine ( ( ( getPositionLine ( ) ) - 1 ) ) ; } moveDistanceX = 0 ; moveDistanceY = 0 ; moveDirection = MovingObject . MOVE_NONE ; } } } }

Fix:
if ( epsilon < 10.0F ) {
Buggy code:
@ Singleton public class MaterialUnEmbedder { @ Inject private WorkspaceMaterialController workspaceMaterialController ; @ Inject private HtmlMaterialController htmlMaterialController ; @ Inject private PluginSettingsController pluginSettingsController ; @ Lock public void unembedWorkspaceMaterials ( WorkspaceNode parentNode ) throws DeusNexInternalException { } private void loadHtmlMaterialPieces ( ) throws IOException , JsonParseException , JsonMappingException { } private void saveHtmlMaterialPieces ( ) throws IOException , JsonGenerationException , JsonMappingException { } private void unembedWorkspaceNode ( WorkspaceNode parent , WorkspaceNode workspaceNode ) throws DeusNexInternalException , WorkspaceMaterialContainsAnswersExeption , IOException , ParserConfigurationException , TransformerException , XPathExpressionException , SAXException { } private boolean hasEmbeds ( HtmlMaterial htmlMaterial ) throws IOException , ParserConfigurationException , XPathExpressionException , SAXException { String html = htmlMaterial . getHtml ( ) ; <START_BUG> Document document = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) . parse ( html ) ; <END_BUG> NodeList iframes = DeusNexXmlUtils . findNodesByXPath ( document . getDocumentElement ( ) , "////iframe[@data-type='embedded-document']//" ) ; return ( iframes . getLength ( ) ) != 0 ; } private void unembedHtmlMaterial ( WorkspaceNode parent , WorkspaceMaterial workspaceMaterial , HtmlMaterial htmlMaterial ) throws DeusNexInternalException , WorkspaceMaterialContainsAnswersExeption , IOException , ParserConfigurationException , TransformerException , XPathExpressionException , SAXException { } private boolean isEmbedPiece ( Document documentPiece ) throws XPathExpressionException { } private long embeddedHtmlMaterialId ( Document documentPiece ) throws XPathExpressionException { } private List < Document > splitHtmlDocument ( Document document ) throws DeusNexInternalException , XPathExpressionException { } private boolean embedIframesInNonTopLevelElement ( Document document ) throws XPathExpressionException { } private void bubbleUpEmbedIframes ( Document document ) throws XPathExpressionException { } private void bubbleUp ( Node node ) { } private Map < Long , List < Long > > htmlMaterialPieces ; No newline ; at end ; of file ; }

Fix:
Document document = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) . parse ( new InputSource ( new StringReader ( html ) ) ) ;
Buggy code:
class WrappingPlyReader implements PlyReader { private final PlyReader reader ; private final Map < String , WrappingPlyReader . WrapperFactory > unwrappedMap ; private final Map < String , WrappingPlyReader . WrapperFactory > wrappedMap ; private final List < ElementType > elementTypes ; static abstract class WrapperFactory { private final ElementType unwrappedType ; private final ElementType wrappedType ; WrapperFactory ( final ElementType unwrappedType , final ElementType wrappedType ) { } public final ElementType getUnwrappedType ( ) { } public final ElementType getWrappedType ( ) { } public abstract ElementReader wrap ( final ElementReader reader ) { } } WrappingPlyReader ( final PlyReader reader , final WrappingPlyReader . WrapperFactory ... wrappers ) { } WrappingPlyReader ( final PlyReader reader , final Iterable < WrappingPlyReader . WrapperFactory > wrappers ) { } @ Override public List < ElementType > getElementTypes ( ) { } @ Override public int getElementCount ( final String elementType ) { if ( elementType == null ) { throw new NullPointerException ( "elementType<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null." ) ; } if ( ! ( wrappedMap . containsKey ( elementType ) ) ) { <START_BUG> throw new IllegalArgumentException ( "No<seq2seq4repair_space>such<seq2seq4repair_space>type<seq2seq4repair_space>found." ) ; <END_BUG> } ElementType unwrapped = wrappedMap . get ( elementType ) . getUnwrappedType ( ) ; return reader . getElementCount ( unwrapped . getName ( ) ) ; } @ Override public ElementReader nextElementReader ( ) throws IOException { } @ Override public void close ( ) throws IOException { } }

Fix:
return reader . getElementCount ( elementType ) ;
Buggy code:
abstract class AbstractPlatformMBeanResource implements Resource . ResourceEntry { private final PathElement pathElement ; AbstractPlatformMBeanResource ( PathElement pathElement ) { } @ Override public ModelNode getModel ( ) { } @ Override public void writeModel ( ModelNode newModel ) { } @ Override public boolean isModelDefined ( ) { } @ Override public Resource getChild ( PathElement element ) { } @ Override public Resource requireChild ( PathElement address ) { final Resource resource = getChild ( address ) ; if ( resource == null ) { <START_BUG> throw new NoSuchElementException ( address . toString ( ) ) ; <END_BUG> } return resource ; } @ Override public Resource navigate ( PathAddress address ) { } @ Override public Set < Resource . ResourceEntry > getChildren ( String childType ) { } @ Override public boolean hasChildren ( String childType ) { } @ Override public boolean hasChild ( PathElement element ) { } @ Override public Set < String > getChildrenNames ( String childType ) { } @ Override public void registerChild ( PathElement address , Resource resource ) { } @ Override public Resource removeChild ( PathElement address ) { } @ Override public boolean isRuntime ( ) { } @ Override public boolean isProxy ( ) { } @ Override public Resource clone ( ) { } @ Override public String getName ( ) { } @ Override public PathElement getPathElement ( ) { } abstract ResourceEntry getChildEntry ( String name ) { } abstract Set < String > getChildrenNames ( ) { } }

Fix:
throw new NoSuchResourceException ( address ) ;
Buggy code:
public class CurrentDirectoryMenu extends EnhancedMenu { public CurrentDirectoryMenu ( ) { } public void setPopupMenuVisible ( boolean b ) { if ( b ) { final View view = GUIUtilities . getView ( this ) ; if ( ( getMenuComponentCount ( ) ) != 0 ) removeAll ( ) ; final String path = MiscUtilities . getParentOfPath ( view . getBuffer ( ) . getPath ( ) ) ; JMenuItem mi = new JMenuItem ( path ) ; mi . setIcon ( openDirIcon ) ; mi . addActionListener ( new ActionListener ( ) { public void actionPerformed ( ActionEvent evt ) { VFSBrowser . browseDirectory ( view , path ) ; } } ) ; add ( mi ) ; addSeparator ( ) ; if ( ( view . getBuffer ( ) . getFile ( ) ) == null ) { mi = new JMenuItem ( jEdit . getProperty ( "current-directory.not-local" ) ) ; mi . setEnabled ( false ) ; add ( mi ) ; super . setPopupMenuVisible ( b ) ; return ; } File dir = new File ( path ) ; JMenu current = this ; ActionListener listener = new ActionListener ( ) { public void actionPerformed ( ActionEvent evt ) { jEdit . openFile ( view , evt . getActionCommand ( ) ) ; } } ; String backupPrefix = jEdit . getProperty ( "backup.prefix" ) ; String backupSuffix = jEdit . getProperty ( "backup.suffix" ) ; String [ ] list = dir . list ( ) ; if ( ( list == null ) || ( ( list . length ) == 0 ) ) { mi = new JMenuItem ( jEdit . getProperty ( "current-directory.no-files" ) ) ; mi . setEnabled ( false ) ; add ( mi ) ; } else { MiscUtilities . quicksort ( list , new MiscUtilities . StringICaseCompare ( ) ) ; for ( int i = 0 ; i < ( list . length ) ; i ++ ) { String name = list [ i ] ; if ( name . endsWith ( ".marks" ) ) continue ; if ( ( name . startsWith ( "#" ) ) && ( name . endsWith ( "#" ) ) ) continue ; if ( ( ( ( backupPrefix . length ( ) ) != 0 ) && ( name . startsWith ( backupPrefix ) ) ) || ( ( ( backupSuffix . length ( ) ) != 0 ) && ( name . endsWith ( backupSuffix ) ) ) ) continue ; File file = new File ( path , name ) ; if ( file . isDirectory ( ) ) continue ; mi = new JMenuItem ( name ) ; mi . setActionCommand ( file . getPath ( ) ) ; mi . addActionListener ( listener ) ; mi . setIcon ( fileIcon ) ; <START_BUG> if ( ( current . getItemCount ( ) ) >= 20 ) { <END_BUG> JMenu newCurrent = new JMenu ( jEdit . getProperty ( "common.more" ) ) ; current . add ( newCurrent ) ; current = newCurrent ; } current . add ( mi ) ; } } } super . setPopupMenuVisible ( b ) ; } }

Fix:
if ( ( ( current . getItemCount ( ) ) >= 20 ) && ( i != ( ( list . length ) - 1 ) ) ) {
Buggy code:
public class CompilationUnitDeclaration extends ASTNode implements ReferenceContext , ProblemSeverities { public ImportReference currentPackage ; public ImportReference [ ] imports ; public TypeDeclaration [ ] types ; public int [ ] [ ] comments ; public boolean ignoreFurtherInvestigation = false ; public boolean ignoreMethodBodies = false ; public CompilationUnitScope scope ; public ProblemReporter problemReporter ; public CompilationResult compilationResult ; public LocalTypeBinding [ ] localTypes ; public int localTypeCount = 0 ; public boolean isPropagatingInnerClassEmulation ; public Javadoc javadoc ; public CompilationUnitDeclaration ( ProblemReporter problemReporter , CompilationResult compilationResult , int sourceLength ) { } public void abort ( int abortLevel , IProblem problem ) { } public void analyseCode ( ) { } public void cleanUp ( ) { } private void cleanUp ( TypeDeclaration type ) { } public void checkUnusedImports ( ) { } public CompilationResult compilationResult ( ) { } public TypeDeclaration declarationOfType ( char [ ] [ ] typeName ) { } public void generateCode ( ) { } public char [ ] getFileName ( ) { } public char [ ] getMainTypeName ( ) { } public boolean isEmpty ( ) { } public boolean isPackageInfo ( ) { } public boolean hasErrors ( ) { } public StringBuffer print ( int indent , StringBuffer output ) { } public void propagateInnerEmulationForAllLocalTypes ( ) { isPropagatingInnerClassEmulation = true ; for ( int i = 0 , max = this . localTypeCount ; i < max ; i ++ ) { LocalTypeBinding localType = localTypes [ i ] ; <START_BUG> if ( ( ( localType . scope . referenceType ( ) . bits ) & ( IsReachableMASK ) ) != 0 ) { <END_BUG> localType . updateInnerEmulationDependents ( ) ; } } } public void record ( LocalTypeBinding localType ) { } public void resolve ( ) { } public void tagAsHavingErrors ( ) { } public void traverse ( ASTVisitor visitor , CompilationUnitScope unitScope ) { } }

Fix:
if ( ( ( localType . scope . referenceType ( ) . bits ) & ( ASTNode . IsReachable ) ) != 0 ) {
Buggy code:
public class RotationState extends AutonomousState { EntropyDrive entropyDrive ; Encoder leftEncoder ; Encoder rightEncoder ; static final double wheelBase = 24 ; private static final double scaleFactor = 0.05 ; double targetRotation ; double speed ; boolean leftOrRight ; boolean wiggle ; double leftEncoderDistance ; double rightEncoderDistance ; double error ; double rightSpeed ; double currentPosition ; double counter ; public RotationState ( double targetRotation , boolean leftOrRight , double speed , boolean wiggle , Encoder leftEncoder , Encoder rightEncoder , EntropyDrive entDrive ) { } public void Init ( ) { } public boolean Update ( ) { <START_BUG> if ( ( ( counter ) < 20 ) && ( ! ( wiggle ) ) ) { <END_BUG> ( counter ) ++ ; return false ; } else { error = ( leftEncoder . getDistance ( ) ) - ( rightEncoder . getDistance ( ) ) ; SmartDashboard . putString ( "State" , "Rotation<seq2seq4repair_space>State" ) ; SmartDashboard . putNumber ( "Right<seq2seq4repair_space>Encoder<seq2seq4repair_space>Distance" , rightEncoder . getDistance ( ) ) ; SmartDashboard . putNumber ( "Left<seq2seq4repair_space>Encoder<seq2seq4repair_space>Distance" , leftEncoder . getDistance ( ) ) ; SmartDashboard . putNumber ( "Error" , error ) ; rightSpeed = ( speed ) + ( ( error ) * ( RotationState . scaleFactor ) ) ; if ( ( ( Math . abs ( leftEncoder . getDistance ( ) ) ) >= ( targetRotation ) ) || ( ( Math . abs ( rightEncoder . getDistance ( ) ) ) >= ( targetRotation ) ) ) { entropyDrive . driveRobot ( 0 , 0 ) ; leftEncoder . reset ( ) ; rightEncoder . reset ( ) ; return true ; } else if ( leftOrRight ) { entropyDrive . wpiDrive . setLeftRightMotorOutputs ( speed , ( - ( speed ) ) ) ; return false ; } else { entropyDrive . wpiDrive . setLeftRightMotorOutputs ( ( - ( speed ) ) , speed ) ; return false ; } } } No newline ; at end ; of file ; }

Fix:
if ( ( ( counter ) < 40 ) && ( ! ( wiggle ) ) ) {
Buggy code:
public class TitanBootstrapper extends BootstrapClient { private long _vertexId ; private long _edgeId ; private BatchGraph < TitanGraph > _batchGraph ; public TitanBootstrapper ( String configPath ) { } public void shutdown ( ) { } @ Override protected long createUsers ( ) { } @ Override protected long createSubscriptions ( ) { } @ Override protected long createPosts ( ) { long numTotalPosts = 0 ; Vertex vertex ; Map < String , Object > postProperties ; long tsLastPost = System . currentTimeMillis ( ) ; long nodeId ; for ( User user : _users . getUsers ( ) ) { long [ ] userPostNodes = user . getPostNodeIds ( ) ; for ( int iPost = 0 ; iPost < ( userPostNodes . length ) ; ++ iPost ) { postProperties = new HashMap < > ( ) ; postProperties . put ( PROP_PUBLISHED , tsLastPost ) ; postProperties . put ( PROP_MESSAGE , generatePostMessage ( 140 ) ) ; vertex = _batchGraph . addVertex ( ( ( _vertexId ) ++ ) , postProperties ) ; nodeId = ( ( long ) ( vertex . getId ( ) ) ) ; userPostNodes [ iPost ] = nodeId ; tsLastPost += 1 ; numTotalPosts += 1 ; } <START_BUG> _batchGraph . getVertex ( user . getNodeId ( ) ) . setProperty ( PROP_LAST_STREAM_UDPATE , tsLastPost ) ; <END_BUG> } return numTotalPosts ; } @ Override protected long linkPosts ( ) { } private static boolean IS_SHUT_DOWN = false ; private static void shutdown ( TitanBootstrapper bootstrapClient ) { } public static void main ( String [ ] args ) throws IOException { } }

Fix:
_batchGraph . getVertex ( user . getNodeId ( ) ) . setProperty ( PROP_LAST_STREAM_UDPATE , ( tsLastPost - 1 ) ) ;
Buggy code:
final class RemoteServiceImpl implements IRemoteService { RemoteServiceReferenceImpl refImpl ; private Object service ; private long nextID ; public RemoteServiceImpl ( final RemoteServiceReferenceImpl refImpl , final Object service ) { } public void callAsynch ( final IRemoteCall call , final IRemoteCallListener listener ) { } public IFuture callAsynch ( final IRemoteCall call ) { <START_BUG> final FutureStatus result = new FutureStatus ( ) ; <END_BUG> final IRemoteCallListener listener = new IRemoteCallListener ( ) { public void handleEvent ( IRemoteCallEvent event ) { if ( event instanceof IRemoteCallCompleteEvent ) { IRemoteCallCompleteEvent cce = ( ( IRemoteCallCompleteEvent ) ( event ) ) ; if ( cce . hadException ( ) ) result . setException ( cce . getException ( ) ) ; else result . set ( cce . getResponse ( ) ) ; } } } ; callAsynch ( call , listener ) ; return result ; } public Object callSynch ( final IRemoteCall call ) throws ECFException { } public void fireAsynch ( final IRemoteCall call ) throws ECFException { } public Object getProxy ( ) throws ECFException { } synchronized long getNextID ( ) { } private class AsyncResult extends Thread implements IAsyncResult { Object result ; Throwable exception ; IRemoteCall call ; private IRemoteCallListener listener ; AsyncResult ( final IRemoteCall call , final IRemoteCallListener listener ) { } public synchronized void clear ( ) { } public Object get ( ) throws InterruptedException , InvocationTargetException { } public synchronized Object get ( final long msecs ) throws InterruptedException , InvocationTargetException { } public synchronized InvocationTargetException getException ( ) { } public synchronized boolean isReady ( ) { } public synchronized Object peek ( ) { } public void run ( ) { } } }

Fix:
final SingleOperationFuture result = new SingleOperationFuture ( ) ;
Buggy code:
public final class Value { private final DatastoreV1 . Value value ; private Value ( final DatastoreV1 . Value value ) { } public static final class Builder { private final DatastoreV1 . Value . Builder value ; private Builder ( ) { } private Builder ( final Value value ) { } private Builder ( final DatastoreV1 . Value value ) { } public Value build ( ) { } public Value . Builder value ( final Object value ) { } public Value . Builder value ( final List < Object > values ) { } public Value . Builder indexed ( final boolean indexed ) { } } public static Value . Builder builder ( ) { } public static Value . Builder builder ( final Value value ) { } public static Value . Builder builder ( final Object value ) { } public static Value . Builder builder ( final List < Object > values ) { } static Value . Builder builder ( final DatastoreV1 . Value value ) { } public String getString ( ) { } public long getInteger ( ) { } public boolean getBoolean ( ) { } public double getDouble ( ) { } public Date getDate ( ) { } public ByteString getBlob ( ) { } public Entity getEntity ( ) { } public Key getKey ( ) { } public List < Value > getList ( ) { } public < T > List < T > getList ( final Class < T > clazz ) { } @ SuppressWarnings ( { "unchecked" } ) < T > T convert ( Class < T > clazz ) { } public boolean isIndexed ( ) { } DatastoreV1 . Value getPb ( ) { } DatastoreV1 . Value getPb ( final String namespace ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( final Object obj ) { <START_BUG> return ( ( obj . getClass ( ) ) == ( this . getClass ( ) ) ) || ( ( obj instanceof Value ) && ( Objects . equals ( value , ( ( Value ) ( obj ) ) . value ) ) ) ; <END_BUG> } @ Override public String toString ( ) { } }

Fix:
return ( ( obj . getClass ( ) ) == ( this . getClass ( ) ) ) && ( ( obj instanceof Value ) && ( Objects . equals ( value , ( ( Value ) ( obj ) ) . value ) ) ) ;
Buggy code:
public class BeamExperimental implements Beam { private final double pixXSize ; private final double beamXSize ; private final double pixYSize ; private final double beamYSize ; private final double totalFlux ; private final double beamEnergy ; private double beamSum ; private double attenuatedFlux ; private double [ ] [ ] beamArray ; private final Double [ ] [ ] dataStructure ; public BeamExperimental ( final Double [ ] [ ] datastructure , final Double totalFlux , final Double beamEnergy , final Double pixelSizeX , final Double pixelSizeY ) { } public void generateBeamArray ( ) { } @ Override public double beamIntensity ( final double coordX , final double coordY , final double offAxisUM ) { } public static double bilinearInterpolate ( final double v00 , final double v10 , final double v01 , final double v11 , final double x , final double y ) { } @ Override public String getDescription ( ) { } @ Override public double getPhotonsPerSec ( ) { } @ Override public double getPhotonEnergy ( ) { } @ Override public void applyContainerAttenuation ( Container sampleContainer ) { <START_BUG> this . attenuatedFlux = ( sampleContainer . getContainerAttenuationFraction ( ) ) * ( this . totalFlux ) ; <END_BUG> } }

Fix:
this . attenuatedFlux = ( 1 - ( sampleContainer . getContainerAttenuationFraction ( ) ) ) * ( this . totalFlux ) ;
Buggy code:
public class BitFieldTest extends TestCase { public static void main ( String [ ] args ) { } public static Test suite ( ) { } private static BitField bf_multi = new BitField ( 16256 ) ; private static BitField bf_single = new BitField ( 16384 ) ; private static BitField bf_zero = new BitField ( 0 ) ; public BitFieldTest ( String name ) { } public void testGetValue ( ) { } public void testGetShortValue ( ) { } public void testGetRawValue ( ) { } public void testGetShortRawValue ( ) { } public void testIsSet ( ) { } public void testIsAllSet ( ) { for ( int j = 0 ; j < 16256 ; j += 128 ) { assertTrue ( ( ! ( BitFieldTest . bf_multi . isAllSet ( j ) ) ) ) ; <START_BUG> assertTrue ( ( ! ( BitFieldTest . bf_zero . isAllSet ( j ) ) ) ) ; <END_BUG> } assertTrue ( BitFieldTest . bf_multi . isAllSet ( 16256 ) ) ; assertTrue ( ( ! ( BitFieldTest . bf_single . isAllSet ( 0 ) ) ) ) ; assertTrue ( BitFieldTest . bf_single . isAllSet ( 16384 ) ) ; } public void testSetValue ( ) { } public void testSetShortValue ( ) { } public void testByte ( ) { } public void testClear ( ) { } public void testClearShort ( ) { } public void testSet ( ) { } public void testSetShort ( ) { } public void testSetBoolean ( ) { } public void testSetShortBoolean ( ) { } }

Fix:
assertTrue ( BitFieldTest . bf_zero . isAllSet ( j ) ) ;
Buggy code:
public class SelectionOnFieldType extends FieldDeclaration { public SelectionOnFieldType ( TypeReference type ) { } public StringBuffer printStatement ( int tab , StringBuffer output ) { <START_BUG> return type . print ( tab , output ) . append ( ';' ) ; <END_BUG> } }

Fix:
return this . type . print ( tab , output ) . append ( ';' ) ;
Buggy code:
public class TMResults extends AbstractTableModel { Vector _rowObjects ; Vector _diagrams ; public TMResults ( ) { } public void setTarget ( Vector results , Vector diagrams ) { } public int getColumnCount ( ) { } public int getRowCount ( ) { } public String getColumnName ( int c ) { } public Class getColumnClass ( int c ) { } public boolean isCellEditable ( int row , int col ) { } public Object getValueAt ( int row , int col ) { if ( ( row < 0 ) || ( row >= ( _rowObjects . size ( ) ) ) ) return "bad<seq2seq4repair_space>row!" ; if ( ( col < 0 ) || ( col >= 4 ) ) return "bad<seq2seq4repair_space>col!" ; Object rowObj = _rowObjects . elementAt ( row ) ; if ( rowObj instanceof Diagram ) { Diagram d = ( ( Diagram ) ( rowObj ) ) ; switch ( col ) { case 0 : if ( d instanceof UMLClassDiagram ) return "Class<seq2seq4repair_space>Diagram" ; if ( d instanceof UMLStateDiagram ) return "State<seq2seq4repair_space>Diagram" ; if ( d instanceof UMLUseCaseDiagram ) return "Use<seq2seq4repair_space>Case<seq2seq4repair_space>Diagram" ; return "Diagram" ; case 1 : return d . getName ( ) ; case 2 : return "N//A" ; case 3 : int numNodes = d . getNodes ( ) . size ( ) ; int numEdges = d . getEdges ( ) . size ( ) ; return ( ( numNodes + "<seq2seq4repair_space>nodes<seq2seq4repair_space>and<seq2seq4repair_space>" ) + numEdges ) + "<seq2seq4repair_space>edges" ; } } if ( rowObj instanceof MModelElement ) { <START_BUG> MModelElementImpl me = ( ( MModelElementImpl ) ( rowObj ) ) ; <END_BUG> Diagram d = null ; if ( ( _diagrams ) != null ) d = ( ( Diagram ) ( _diagrams . elementAt ( row ) ) ) ; switch ( col ) { case 0 : return me . getUMLClassName ( ) ; case 1 : return me . getName ( ) ; case 2 : return d == null ? "N//A" : d . getName ( ) ; case 3 : return "docs" ; } } switch ( col ) { case 0 : String clsName = rowObj . getClass ( ) . getName ( ) ; int lastDot = clsName . lastIndexOf ( "." ) ; return clsName . substring ( ( lastDot + 1 ) ) ; case 1 : return "" ; case 2 : return "??" ; case 3 : return "docs" ; } return "unknown!" ; } public void setValueAt ( Object aValue , int rowIndex , int columnIndex ) { } }

Fix:
MModelElement me = ( ( MModelElement ) ( rowObj ) ) ;
Buggy code:
public class GameBoard extends JPanel implements IPieceObserver { public static enum User { PLAYER1 , PLAYER2 ; } private static final Dimension PIECE_SIZE = new Dimension ( 80 , 80 ) ; protected AbstractPiece [ ] [ ] pieces ; protected AbstractPiece selectedPiece ; private GridBagLayout layout ; private GameBoard . User owner ; public GameBoard ( GameBoard . User owner ) { } protected void instantiateBoard ( ) { } public void addPiece ( int x , int y , AbstractPiece piece ) { } @ Override public void selectedButtonPressed ( Point gridLocation ) { } private boolean isEnemey ( AbstractPiece p1 , AbstractPiece p2 ) { <START_BUG> return ( ! ( p1 . getOwner ( ) . equals ( p2 . getOwner ( ) ) ) ) && ( ( p2 . getOwner ( ) ) != null ) ; <END_BUG> } @ Override public void nonSelectedButtonPressed ( Point gridLocation ) { } private void swapPieces ( AbstractPiece p1 , AbstractPiece p2 ) { } public String attack ( AbstractPiece p1 , AbstractPiece p2 ) { } private void removePiece ( AbstractPiece p ) { } }

Fix:
return ( ( ( p1 . getOwner ( ) ) != null ) && ( ! ( p1 . getOwner ( ) . equals ( p2 . getOwner ( ) ) ) ) ) && ( ( p2 . getOwner ( ) ) != null ) ;
Buggy code:
public class MainController implements Initializable { private static final String [ ] VIEW_FILES = new String [ ] { "..//gui//GraphView.fxml" , "..//gui//TextView.fxml" } ; @ FXML private TabPane content ; public MainController ( ) { } @ Override public void initialize ( URL location , ResourceBundle resources ) { List < Observer > views = new ArrayList < > ( ) ; List < Stock > stocks = new ArrayList < > ( ) ; List < MakeTheStock > stockMakers = new ArrayList < > ( ) ; List < Observer > stockObservers = new ArrayList < > ( ) ; double [ ] prices = new double [ ] { 11.3 , 44.4 , 5.23 } ; Stack < String > names = new Stack < > ( ) ; names . add ( "IBM" ) ; names . add ( "APPL" ) ; names . add ( "RTPSN" ) ; Observer view ; for ( String e : MainController . VIEW_FILES ) { view = tabLoader ( e ) ; if ( view != null ) views . add ( view ) ; } int i = 0 ; for ( double price : prices ) { stocks . add ( new Stock ( names . pop ( ) , price ) ) ; stockObservers . add ( new StockObserver ( views ) ) ; stocks . get ( i ) . addObserver ( stockObservers . get ( i ) ) ; stockMakers . add ( new MakeTheStock ( stocks . get ( i ) ) ) ; <START_BUG> new Thread ( stockMakers . get ( i ) ) . run ( ) ; <END_BUG> i ++ ; } } private Observer tabLoader ( String view ) { } }

Fix:
new Thread ( stockMakers . get ( i ) ) . start ( ) ;
Buggy code:
public class ClusteredCacheMetricsHandler extends AbstractRuntimeOnlyHandler { @ Override protected void executeRuntimeStep ( OperationContext context , ModelNode operation ) throws OperationFailedException { <START_BUG> PathAddress address = Operations . getPathAddress ( operation ) ; <END_BUG> String containerName = address . getElement ( ( ( address . size ( ) ) - 2 ) ) . getValue ( ) ; String cacheName = address . getElement ( ( ( address . size ( ) ) - 1 ) ) . getValue ( ) ; String name = Operations . getAttributeName ( operation ) ; ClusteredCacheMetric metric = ClusteredCacheMetric . forName ( name ) ; if ( metric == null ) { context . getFailureDescription ( ) . set ( ROOT_LOGGER . unknownMetric ( name ) ) ; } else { Cache < ? , ? > cache = ServiceContainerHelper . findValue ( context . getServiceRegistry ( false ) , CACHE . getServiceName ( containerName , cacheName ) ) ; if ( cache != null ) { context . getResult ( ) . set ( metric . getValue ( ( ( RpcManagerImpl ) ( cache . getAdvancedCache ( ) . getRpcManager ( ) ) ) ) ) ; } } context . completeStep ( NOOP_RESULT_HANDLER ) ; } }

Fix:
PathAddress address = context . getCurrentAddress ( ) ;
Buggy code:
public class VoldemortIOUtilsTest { @ Test public void testToString ( ) throws IOException { } @ Test public void testToStringSmall ( ) throws IOException { } @ Test public void testCloseQuietlyNullHttpResponse ( ) { <START_BUG> VoldemortIOUtils . closeQuietly ( null ) ; <END_BUG> } @ Test public void testCloseQuietlyNullEntity ( ) { } }

Fix:
VoldemortIOUtils . closeQuietly ( ( ( HttpResponse ) ( null ) ) ) ;
Buggy code:
public class HumanPlayer { private Hand humHand ; private double money ; private boolean stand ; private boolean playing = true ; Scanner in = new Scanner ( System . in ) ; public HumanPlayer ( ) { } public void addCards ( Cards card ) { } public void printHand ( ) { } public boolean playing ( ) { } public Cards getCard1 ( ) { } public Cards getCard2 ( ) { } public double smallBlind ( ) { } public void getMoney ( double winnings ) { } public void clearHand ( ) { } public boolean stand ( ) { } public double betting ( double bet ) { String choice ; double cost = 0 ; char c ; System . out . println ( "What<seq2seq4repair_space>would<seq2seq4repair_space>you<seq2seq4repair_space>like<seq2seq4repair_space>to<seq2seq4repair_space>do?" ) ; System . out . println ( "(call,<seq2seq4repair_space>raise,<seq2seq4repair_space>fold)" ) ; choice = in . nextLine ( ) ; choice = choice . toLowerCase ( ) ; c = choice . charAt ( 0 ) ; if ( c == 'c' ) { if ( bet <= ( money ) ) { money = ( money ) - bet ; cost = bet ; } else cost = money ; } else if ( c == 'r' ) { System . out . println ( "How<seq2seq4repair_space>much<seq2seq4repair_space>would<seq2seq4repair_space>you<seq2seq4repair_space>like<seq2seq4repair_space>to<seq2seq4repair_space>raise<seq2seq4repair_space>by?<seq2seq4repair_space>(only<seq2seq4repair_space>type<seq2seq4repair_space>in<seq2seq4repair_space>a<seq2seq4repair_space>number<seq2seq4repair_space>value)" ) ; String costString = in . nextLine ( ) ; cost = Double . parseDouble ( costString ) ; if ( cost <= 0 ) { System . out . println ( "Please<seq2seq4repair_space>input<seq2seq4repair_space>a<seq2seq4repair_space>value<seq2seq4repair_space>greater<seq2seq4repair_space>than<seq2seq4repair_space>0" ) ; cost = in . nextInt ( ) ; } else <START_BUG> if ( cost < ( money ) ) { <END_BUG> System . out . println ( "You<seq2seq4repair_space>can't<seq2seq4repair_space>bet<seq2seq4repair_space>more<seq2seq4repair_space>money<seq2seq4repair_space>than<seq2seq4repair_space>you<seq2seq4repair_space>have!" ) ; cost = in . nextInt ( ) ; } else { cost = cost + bet ; money = ( money ) - cost ; } } else { playing = false ; } return cost ; } public double printMoney ( ) { } public int compareToCards ( Cards flop1 , Cards flop2 , Cards flop3 , Cards turn , Cards river , Cards hand1 , Cards hand2 ) { } No newline ; at end ; of file ; }

Fix:
if ( cost > ( money ) ) {
Buggy code:
public class UploadInfo implements Serializable { private static final long serialVersionUID = 1L ; private transient long timeStarted ; private transient long totalBytes ; private transient long bytesUploaded ; public UploadInfo ( int totalBytes ) { } public long getBytesUploaded ( ) { } public void setBytesUploaded ( long bytesUploaded ) { } public String getBytesUploadedString ( ) { } public String getTotalBytesString ( ) { } public long getTotalBytes ( ) { } public long getElapsedMilliseconds ( ) { } public long getElapsedSeconds ( ) { } public long getTransferRateBPS ( ) { } public String getTransferRateString ( ) { } public int getPercentageComplete ( ) { } public long getRemainingMilliseconds ( ) { int percentageComplete = getPercentageComplete ( ) ; <START_BUG> long totalTime = ( ( getElapsedSeconds ( ) ) * 100 ) // percentageComplete ; <END_BUG> long remainingTime = totalTime - ( getElapsedSeconds ( ) ) ; long remainingTimeInMillis = remainingTime * 1000 ; return remainingTimeInMillis ; } public String getRemainingTimeString ( ) { } }

Fix:
long totalTime = ( ( getElapsedSeconds ( ) ) * 100 ) // ( Math . max ( percentageComplete , 1 ) ) ;
Buggy code:
public class AsyncAppender extends AppenderSkeleton implements AppenderAttachable { public static final int DEFAULT_BUFFER_SIZE = 128 ; private BoundedFIFO bf = new BoundedFIFO ( AsyncAppender . DEFAULT_BUFFER_SIZE ) ; AppenderAttachableImpl aai ; private Dispatcher dispatcher ; private boolean locationInfo = false ; private boolean interruptedWarningMessage = false ; public AsyncAppender ( ) { } public void addAppender ( Appender newAppender ) { } public void append ( LoggingEvent event ) { event . getNDC ( ) ; event . getThreadName ( ) ; <START_BUG> event . getMDCCopy ( ) ; <END_BUG> if ( locationInfo ) { event . getLocationInformation ( ) ; } synchronized ( bf ) { while ( bf . isFull ( ) ) { try { bf . wait ( ) ; } catch ( InterruptedException e ) { if ( ! ( interruptedWarningMessage ) ) { interruptedWarningMessage = true ; LogLog . warn ( "AsyncAppender<seq2seq4repair_space>interrupted." , e ) ; } else { LogLog . warn ( "AsyncAppender<seq2seq4repair_space>interrupted<seq2seq4repair_space>again." ) ; } } } bf . put ( event ) ; if ( bf . wasEmpty ( ) ) { bf . notify ( ) ; } } } public void close ( ) { } public Enumeration getAllAppenders ( ) { } public Appender getAppender ( String name ) { } public boolean getLocationInfo ( ) { } public boolean isAttached ( Appender appender ) { } public boolean requiresLayout ( ) { } public void removeAllAppenders ( ) { } public void removeAppender ( Appender appender ) { } public void removeAppender ( String name ) { } public void setLocationInfo ( boolean flag ) { } public void setBufferSize ( int size ) { } public int getBufferSize ( ) { } }

Fix:
event . createProperties ( ) ;
Buggy code:
public class ColumnOptionsPlugin extends AbstractFolderOptionsPlugin { public static final String [ ] COLUMNS = new String [ ] { "Status" , "Attachment" , "Flagged" , "Priority" , "Subject" , "From" , "Date" , "Size" , "Spam" } ; public ColumnOptionsPlugin ( MailFrameMediator mediator ) { } public static String [ ] getColumns ( ) { <START_BUG> String [ ] userDefined = CachedHeaderfields . getUserDefinedHeaderfieldArray ( ) ; <END_BUG> String [ ] stringList = new String [ ( userDefined . length ) + ( ColumnOptionsPlugin . COLUMNS . length ) ] ; int index = 0 ; for ( int i = 0 ; i < ( ColumnOptionsPlugin . COLUMNS . length ) ; i ++ ) { stringList [ i ] = ColumnOptionsPlugin . COLUMNS [ i ] ; index = i ; } index ++ ; for ( int i = 0 ; i < ( userDefined . length ) ; i ++ ) { stringList [ ( index + i ) ] = userDefined [ i ] ; } return stringList ; } private XmlElement findColumn ( XmlElement parent , String name ) { } public void saveOptionsToXml ( Folder folder ) { } public void loadOptionsFromXml ( Folder folder ) { } public XmlElement createDefaultElement ( boolean global ) { } private static XmlElement createColumn ( String name , String width ) { } }

Fix:
String [ ] userDefined = CachedHeaderfields . getUserDefinedHeaderfields ( ) ;
Buggy code:
public class PermissionsTest extends TestCase { Permissions perms ; public PermissionsTest ( String name ) { } public void setUp ( ) { } public void testDefaultGranted ( ) { } public void testGranted ( ) { } public void testGrantedAndRevoked ( ) { } public void testDefaultRevoked ( ) { } public void testOther ( ) { } public void testExit ( ) { perms . setSecurityManager ( ) ; try { System . out . println ( "If<seq2seq4repair_space>this<seq2seq4repair_space>is<seq2seq4repair_space>the<seq2seq4repair_space>last<seq2seq4repair_space>line<seq2seq4repair_space>on<seq2seq4repair_space>standard<seq2seq4repair_space>out<seq2seq4repair_space>the<seq2seq4repair_space>testExit<seq2seq4repair_space>f.a.i.l.e.d" ) ; System . exit ( 3 ) ; fail ( "Totaly<seq2seq4repair_space>impossible<seq2seq4repair_space>that<seq2seq4repair_space>this<seq2seq4repair_space>fail<seq2seq4repair_space>is<seq2seq4repair_space>ever<seq2seq4repair_space>executed.<seq2seq4repair_space>Please<seq2seq4repair_space>let<seq2seq4repair_space>me<seq2seq4repair_space>know<seq2seq4repair_space>if<seq2seq4repair_space>it<seq2seq4repair_space>is!" ) ; } catch ( ExitException e ) { if ( ( e . getStatus ( ) ) != 3 ) { fail ( "Received<seq2seq4repair_space>wrong<seq2seq4repair_space>exit<seq2seq4repair_space>status<seq2seq4repair_space>in<seq2seq4repair_space>Exit<seq2seq4repair_space>Exception." ) ; } <START_BUG> System . out . println ( "testExit<seq2seq4repair_space>successfull." ) ; <END_BUG> } finally { perms . restoreSecurityManager ( ) ; } } public void tearDown ( ) { } }

Fix:
System . out . println ( "testExit<seq2seq4repair_space>successful." ) ;
Buggy code:
public class DecompileArchivesRuleProvider extends WindupRuleProvider { @ Override public RulePhase getPhase ( ) { } @ Override public List < Class < ? extends WindupRuleProvider > > getClassDependencies ( ) { } @ Override public Configuration getConfiguration ( GraphContext context ) { <START_BUG> return ConfigurationBuilder . begin ( ) . addRule ( ) . when ( GraphSearchConditionBuilder . create ( "allUnzippedArchives" ) . ofType ( ArchiveModel . class ) ) . perform ( Iteration . over ( "allUnzippedArchives" ) . var ( ArchiveModel . class , "archive" ) . perform ( new ProcyonDecompilerOperation ( "archive" ) ) . endIteration ( ) ) ; <END_BUG> } }

Fix:
return ConfigurationBuilder . begin ( ) . addRule ( ) . when ( GraphSearchConditionBuilder . create ( "allUnzippedArchives" ) . ofType ( ArchiveModel . class ) ) . perform ( Iteration . over ( "allUnzippedArchives" ) . as ( ArchiveModel . class , "archive" ) . perform ( new ProcyonDecompilerOperation ( "archive" ) ) . endIteration ( ) ) ;
Buggy code:
public class ReceiveMessagesAction extends FrameAction { public ReceiveMessagesAction ( AbstractFrameController controller ) { } public void actionPerformed ( ActionEvent evt ) { FolderCommandReference [ ] refs = new FolderCommandReference [ 1 ] ; refs [ 0 ] = new FolderCommandReference ( treeModel . getFolder ( 101 ) ) ; <START_BUG> getFrameController ( ) . getSelectionManager ( ) . setSelection ( "mail.tree" , refs ) ; <END_BUG> ListIterator iterator = popServerCollection . getServerIterator ( ) ; while ( iterator . hasNext ( ) ) { POP3ServerController controller = ( ( POP3ServerController ) ( iterator . next ( ) ) ) ; boolean excludeFromCheckAll = controller . getAccountItem ( ) . getPopItem ( ) . getBoolean ( "exclude_from_checkall" , false ) ; if ( excludeFromCheckAll == true ) continue ; POP3CommandReference [ ] r = new POP3CommandReference [ 1 ] ; r [ 0 ] = new POP3CommandReference ( controller ) ; FetchNewMessagesCommand c = new FetchNewMessagesCommand ( r ) ; processor . addOp ( c ) ; } } }

Fix:
getFrameMediator ( ) . getSelectionManager ( ) . setSelection ( "mail.tree" , refs ) ;
Buggy code:
public class TextListenerTest extends TestCase { private JUnitCore runner ; private OutputStream results ; private TextListener listener ; @ Override public void setUp ( ) { } public static class OneTest { @ Test public void one ( ) { } } public void testSuccess ( ) throws Exception { } public static class ErrorTest { @ Test public void error ( ) throws Exception { } } public void testError ( ) throws Exception { } public static class Slow { @ Test public void pause ( ) throws InterruptedException { } } public void testTime ( ) { } private String convert ( String string ) { } public static class IgnoreTest { @ Ignore ( "Antimilos<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>Greek<seq2seq4repair_space>island<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>Cyclades,<seq2seq4repair_space>and<seq2seq4repair_space>an<seq2seq4repair_space>odd<seq2seq4repair_space>reason<seq2seq4repair_space>to<seq2seq4repair_space>ignore<seq2seq4repair_space>a<seq2seq4repair_space>test." ) @ Test public void failsIfRun ( ) { } } public void testIgnore ( ) { runner . run ( TextListenerTest . IgnoreTest . class ) ; <START_BUG> Assert . assertThat ( results . toString ( ) , both ( containsString ( "Antimilos" ) ) . and ( containsString ( "ignored<seq2seq4repair_space>test:" ) ) ) ; <END_BUG> } public static class AssumptionFailureTest { @ Test public void failsAssumption ( ) { } } public void testAssumptionFailureIsIgnore ( ) { } }

Fix:
Assert . assertThat ( results . toString ( ) , both ( containsString ( "Antimilos" ) ) . and ( containsString ( "ignored<seq2seq4repair_space>test:" ) ) . and ( containsString ( "IGNORED<seq2seq4repair_space>TEST<seq2seq4repair_space>1)" ) ) ) ;
Buggy code:
public class NamingLookupValue < T > implements Value < T > { private final InjectedValue < Context > contextValue = new InjectedValue < Context > ( ) ; private final String contextName ; public NamingLookupValue ( final String contextName ) { } public T getValue ( ) throws IllegalStateException { final Context context = contextValue . getValue ( ) ; try { return ( ( T ) ( context . lookup ( contextName ) ) ) ; } catch ( NamingException e ) { <START_BUG> throw new IllegalStateException ( ( ( ( ( "Jndi<seq2seq4repair_space>entry<seq2seq4repair_space>'" + ( contextName ) ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>yet<seq2seq4repair_space>registered<seq2seq4repair_space>in<seq2seq4repair_space>context<seq2seq4repair_space>'" ) + context ) + "'" ) ) ; <END_BUG> } } public Injector < Context > getContextInjector ( ) { } }

Fix:
throw new IllegalStateException ( ( ( ( ( "Jndi<seq2seq4repair_space>entry<seq2seq4repair_space>'" + ( contextName ) ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>yet<seq2seq4repair_space>registered<seq2seq4repair_space>in<seq2seq4repair_space>context<seq2seq4repair_space>'" ) + context ) + "'" ) , e ) ;