nus-yam/ex-repair huggingface dataset:
Buggy code:
public class GiftWrap extends AbstractConvexHullGenerator2D { public GiftWrap ( ) { } public GiftWrap ( final boolean includeCollinearPoints ) { } public GiftWrap ( final boolean includeCollinearPoints , final double tolerance ) { } @ Override public Collection < Vector2D > generateHull ( final Collection < Vector2D > points ) { final double tolerance = getTolerance ( ) ; final List < Vector2D > hullVertices = new ArrayList < Vector2D > ( ) ; Vector2D pointOnHull = selectLeftMostPoint ( points ) ; Vector2D nextPoint ; do { hullVertices . add ( pointOnHull ) ; final Iterator < Vector2D > it = points . iterator ( ) ; nextPoint = null ; while ( ( it . hasNext ( ) ) && ( nextPoint == null ) ) { final Vector2D point = it . next ( ) ; if ( ( pointOnHull . distance ( point ) ) >= tolerance ) { nextPoint = point ; } } while ( it . hasNext ( ) ) { final Vector2D p = it . next ( ) ; final double location = p . crossProduct ( pointOnHull , nextPoint ) ; if ( ( FastMath . abs ( location ) ) < tolerance ) { final double distanceToCurrent = pointOnHull . distance ( p ) ; if ( ( distanceToCurrent < tolerance ) || ( ( nextPoint . distance ( p ) ) < tolerance ) ) { continue ; } final double distanceToNext = pointOnHull . distance ( nextPoint ) ; if ( isIncludeCollinearPoints ( ) ) { if ( distanceToCurrent < distanceToNext ) { nextPoint = p ; } } else { if ( distanceToCurrent > distanceToNext ) { nextPoint = p ; } } } else if ( location < 0.0 ) { nextPoint = p ; } } pointOnHull = nextPoint ; <START_BUG> } while ( nextPoint != ( hullVertices . get ( 0 ) ) ) ; <END_BUG> return hullVertices ; } private Vector2D selectLeftMostPoint ( final Collection < Vector2D > points ) { } }

Fix:
} while ( ( nextPoint != ( hullVertices . get ( 0 ) ) ) && ( nextPoint != null ) ) ;
Buggy code:
public class TestAtomicUpdate extends LuceneTestCase { private static final class MockIndexWriter extends IndexWriter { static Random RANDOM ; public MockIndexWriter ( Directory dir , IndexWriterConfig conf ) throws IOException { } @ Override boolean testPoint ( String name ) { } } private abstract static class TimedThread extends Thread { volatile boolean failed ; int count ; private static float RUN_TIME_SEC = 0.5F * ( RANDOM_MULTIPLIER ) ; private TestAtomicUpdate . TimedThread [ ] allThreads ; public abstract void doWork ( ) throws Throwable { } TimedThread ( TestAtomicUpdate . TimedThread [ ] threads ) { } @ Override public void run ( ) { } private boolean anyErrors ( ) { } } private static class IndexerThread extends TestAtomicUpdate . TimedThread { IndexWriter writer ; public IndexerThread ( IndexWriter writer , TestAtomicUpdate . TimedThread [ ] threads ) { } @ Override public void doWork ( ) throws Exception { } } private static class SearcherThread extends TestAtomicUpdate . TimedThread { private Directory directory ; public SearcherThread ( Directory directory , TestAtomicUpdate . TimedThread [ ] threads ) { } @ Override public void doWork ( ) throws Throwable { } } public void runTest ( Directory directory ) throws Exception { } public void testAtomicUpdates ( ) throws Exception { TestAtomicUpdate . MockIndexWriter . RANDOM = random ; Directory directory ; <START_BUG> directory = new MockDirectoryWrapper ( new RAMDirectory ( ) ) ; <END_BUG> runTest ( directory ) ; directory . close ( ) ; File dirPath = _TestUtil . getTempDir ( "lucene.test.atomic" ) ; directory = FSDirectory . open ( dirPath ) ; runTest ( directory ) ; directory . close ( ) ; _TestUtil . rmDir ( dirPath ) ; } }

Fix:
directory = new MockDirectoryWrapper ( random , new RAMDirectory ( ) ) ;
Buggy code:
class SubQ extends AbstractVal implements Subquery { private final ClassMapping _candidate ; private final boolean _subs ; private final String _alias ; private final SelectConstructor _cons = new SelectConstructor ( ) ; private Class _type = null ; private ClassMetaData _meta = null ; private QueryExpressions _exps = null ; public SubQ ( ClassMapping candidate , boolean subs , String alias ) { } public ClassMapping getCandidate ( ) { } public Class getType ( ) { <START_BUG> if ( ( _exps ) != null ) { <END_BUG> if ( ( _exps . projections . length ) == 0 ) return _candidate . getDescribedType ( ) ; if ( ( _exps . projections . length ) == 1 ) return _exps . projections [ 0 ] . getType ( ) ; } return _type ; } public void setImplicitType ( Class type ) { } public ClassMetaData getMetaData ( ) { } public void setMetaData ( ClassMetaData meta ) { } public String getCandidateAlias ( ) { } public void setQueryExpressions ( QueryExpressions query ) { } public ExpState initialize ( Select sel , ExpContext ctx , int flags ) { } public Object toDataStoreValue ( Select sel , ExpContext ctx , ExpState state , Object val ) { } public void select ( Select sel , ExpContext ctx , ExpState state , boolean pks ) { } public void selectColumns ( Select sel , ExpContext ctx , ExpState state , boolean pks ) { } public void groupBy ( Select sel , ExpContext ctx , ExpState state ) { } public void orderBy ( Select sel , ExpContext ctx , ExpState state , boolean asc ) { } private SQLBuffer newSQLBuffer ( Select sel , ExpContext ctx , ExpState state ) { } public Object load ( ExpContext ctx , ExpState state , Result res ) throws SQLException { } public void calculateValue ( Select sel , ExpContext ctx , ExpState state , Val other , ExpState otherState ) { } public int length ( Select sel , ExpContext ctx , ExpState state ) { } public void appendTo ( Select sel , ExpContext ctx , ExpState state , SQLBuffer sql , int index ) { } private void appendTo ( Select sel , ExpContext ctx , ExpState state , SQLBuffer sql , int index , boolean size ) { } public void appendIsEmpty ( Select sel , ExpContext ctx , ExpState state , SQLBuffer sql ) { } public void appendIsNotEmpty ( Select sel , ExpContext ctx , ExpState state , SQLBuffer sql ) { } public void appendSize ( Select sel , ExpContext ctx , ExpState state , SQLBuffer sql ) { } public void acceptVisit ( ExpressionVisitor visitor ) { } }

Fix:
if ( ( ( _exps ) != null ) && ( ( _type ) == null ) ) {
Buggy code:
public class JBossWebParsingDeploymentProcessor implements DeploymentUnitProcessor { private static final String JBOSS_WEB_XML = "WEB-INF//jboss-web.xml" ; public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { if ( ! ( WarDeploymentMarker . isWarDeployment ( phaseContext . getDeploymentUnit ( ) ) ) ) { return ; } <START_BUG> final VirtualFile deploymentRoot = phaseContext . getAttachment ( DEPLOYMENT_ROOT ) . getRoot ( ) ; <END_BUG> final VirtualFile jbossWebXml = deploymentRoot . getChild ( JBossWebParsingDeploymentProcessor . JBOSS_WEB_XML ) ; WarMetaData warMetaData = phaseContext . getAttachment ( ATTACHMENT_KEY ) ; assert warMetaData != null ; if ( jbossWebXml . exists ( ) ) { InputStream is = null ; try { is = jbossWebXml . openStream ( ) ; final XMLInputFactory inputFactory = XMLInputFactory . newInstance ( ) ; inputFactory . setXMLResolver ( NoopXmlResolver . create ( ) ) ; XMLStreamReader xmlReader = inputFactory . createXMLStreamReader ( is ) ; warMetaData . setJbossWebMetaData ( JBossWebMetaDataParser . parse ( xmlReader ) ) ; } catch ( Exception e ) { throw new DeploymentUnitProcessingException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>" + jbossWebXml ) , e ) ; } finally { try { if ( is != null ) { is . close ( ) ; } } catch ( IOException e ) { } } } } public void undeploy ( DeploymentUnit context ) { } }

Fix:
final VirtualFile deploymentRoot = phaseContext . getDeploymentUnit ( ) . getAttachment ( DEPLOYMENT_ROOT ) . getRoot ( ) ;
Buggy code:
public class ElementPSVImpl implements ElementPSVI { protected XSElementDecl fDeclaration = null ; protected XSNotationDecl fNotation = null ; protected XSTypeDecl fMemberType = null ; protected short fValidationAttempted = ElementPSVI . NO_VALIDATION ; protected short fValidity = ElementPSVI . UNKNOWN_VALIDITY ; protected Vector fErrorCodes = new Vector ( 10 ) ; protected String fValidationContext = null ; protected String fTargetNS = null ; public boolean isMemberTypeAnonymous ( ) { } public String getMemberTypeName ( ) { } public String getMemberTypeNamespace ( ) { } public String schemaDefault ( ) { } public String schemaNormalizedValue ( ) { } public boolean schemaSpecified ( ) { } public boolean isTypeAnonymous ( ) { } public String getTypeName ( ) { if ( ( ( fDeclaration ) != null ) && ( ( fDeclaration . fType ) != null ) ) { <START_BUG> return fDeclaration . fType . getXSTypeName ( ) ; <END_BUG> } return null ; } public String getTypeNamespace ( ) { } public short getTypeDefinitionType ( ) { } public short getValidationAttempted ( ) { } public short getValidity ( ) { } public String [ ] getErrorCodes ( ) { } public String getValidationContext ( ) { } public boolean isNil ( ) { } public String getNotationPublicId ( ) { } public String getNotationSystemId ( ) { } public String getSchemaNamespace ( ) { } public void reset ( ) { } public void setErrorCode ( String error ) { } }

Fix:
return fDeclaration . fType . getTypeName ( ) ;
Buggy code:
public class MusicLogicDrillGenerator { public static void main ( String [ ] args ) { QuizPageAssembler generator = new QuizPageAssembler ( ) ; ChordSpellingQuizGenerator chordSpellingGen = new ChordSpellingQuizGenerator ( ) ; IntervalQuizGenerator intervalDrillGen = new IntervalQuizGenerator ( ) ; ScaleSpellingQuizGenerator scaleSpellingGen = new ScaleSpellingQuizGenerator ( ) ; List < QuizPage > quizPages ; generator . addQuestions ( "Chord<seq2seq4repair_space>Spelling" , chordSpellingGen . getAllQuizzes ( ) ) ; generator . addQuestions ( "Interval<seq2seq4repair_space>Drills" , intervalDrillGen . getAllQuizzes ( ) ) ; <START_BUG> generator . addQuestions ( "Scale<seq2seq4repair_space>Spelling:" , scaleSpellingGen . getAllQuizzes ( ) ) ; <END_BUG> int noteLowerLimit = - 11 ; int noteUpperLimit = 11 ; NoteReadingQuizGenerator noteReadingGen = new NoteReadingQuizGenerator ( ) ; String lilypondString = noteReadingGen . generateRandomNotes ( noteUpperLimit , noteLowerLimit ) ; String lilypondTitle = "Music<seq2seq4repair_space>Reading<seq2seq4repair_space>Exercises" ; String lilypondSubtitle = "For<seq2seq4repair_space>powerleveling<seq2seq4repair_space>music<seq2seq4repair_space>reading<seq2seq4repair_space>skills" ; String lilypondMaintainer = "RJ<seq2seq4repair_space>Salvador" ; String lilypondMaintainerEmail = "rjsalvadorr@gmail.com" ; LilypondScore lilypondScore = new LilypondScore ( lilypondString , lilypondTitle , lilypondSubtitle , lilypondMaintainer , lilypondMaintainerEmail ) ; try { quizPages = generator . generate ( ) ; System . out . println ( "Quiz<seq2seq4repair_space>generated.<seq2seq4repair_space>Writing<seq2seq4repair_space>to<seq2seq4repair_space>files..." ) ; NoteReadingQuizWriter noteReadingQuizWriter = new NoteReadingQuizWriter ( ) ; noteReadingQuizWriter . writeLilypondFile ( lilypondScore ) ; PdfDrillWriter pdfGenerator = new PdfDrillWriter ( ) ; pdfGenerator . generateFromQuizPages ( quizPages ) ; } catch ( QuizGenerationException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } System . out . println ( "QuizPageAssembler<seq2seq4repair_space>test<seq2seq4repair_space>complete!" ) ; } }

Fix:
generator . addQuestions ( "Scale<seq2seq4repair_space>Spelling" , scaleSpellingGen . getAllQuizzes ( ) ) ;
Buggy code:
public abstract class AbstractDeploymentUploadHandler implements OperationStepHandler { private final ContentRepository contentRepository ; protected final AttributeDefinition attribute ; protected AbstractDeploymentUploadHandler ( final ContentRepository contentRepository , final AttributeDefinition attribute ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { try { attribute . validateOperation ( operation ) ; InputStream is = getContentInputStream ( context , operation ) ; try { byte [ ] hash = contentRepository . addContent ( is ) ; context . getResult ( ) . set ( hash ) ; } finally { AbstractDeploymentUploadHandler . safeClose ( is ) ; } } catch ( IOException e ) { throw MESSAGES . caughtIOExceptionUploadingContent ( e ) ; } <START_BUG> context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; <END_BUG> } protected abstract InputStream getContentInputStream ( OperationContext context , ModelNode operation ) throws IOException , OperationFailedException { } private static void safeClose ( InputStream is ) { } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public class NullIdeUIAdapter implements IdeUIAdapter { public void displayStatusInformation ( String message ) { <START_BUG> System . out . println ( ( "><seq2seq4repair_space>status<seq2seq4repair_space>message:<seq2seq4repair_space>" + message ) ) ; <END_BUG> } public void resetGUI ( ) { } }

Fix:
System . out . println ( ( "><seq2seq4repair_space>NullIdeUIAdapter<seq2seq4repair_space>status<seq2seq4repair_space>:<seq2seq4repair_space>" + message ) ) ;
Buggy code:
public class BluetoothServiceProxy { public static final String TAG = "BluetoothServiceProxy" ; public static String name ; public static String mac ; public static int i = 0 ; public static BluetoothSocket btSocket ; public static OutputStream outStream ; public static boolean open_flag = false ; public static boolean music_flag = false ; public static boolean connect_flag = false ; public static final short MODE_TAG_1 = 17 ; public static final short MODE_TAG_2 = 18 ; public static final short MODE_TAG_3 = 19 ; public static final short MODE_TAG_4 = 20 ; public static final short MODE_TAG_5 = 21 ; public static final short MODE_TAG_6 = 22 ; public static final short MODE_TAG_7 = 23 ; public static final short MODE_TAG_8 = 24 ; public static final short [ ] MODES = new short [ ] { BluetoothServiceProxy . MODE_TAG_1 , BluetoothServiceProxy . MODE_TAG_2 , BluetoothServiceProxy . MODE_TAG_3 , BluetoothServiceProxy . MODE_TAG_4 , BluetoothServiceProxy . MODE_TAG_5 , BluetoothServiceProxy . MODE_TAG_6 , BluetoothServiceProxy . MODE_TAG_7 , BluetoothServiceProxy . MODE_TAG_8 } ; public static final short STRENGTH_TAG = 49 ; public static final short TIME_TAG = 81 ; public static final short H_FR_TAG = 113 ; public static final short L_FR_TAG = 114 ; BluetoothServiceProxy ( ) { } private static boolean isChangeMassageMode ( short command ) { } private static byte [ ] shortToByteArray ( short s ) { } public static Boolean sendCommandToDevice ( short command ) { } public static void disconnectBluetooth ( ) { } public static Boolean isconnect ( ) { if ( ( BluetoothServiceProxy . btSocket ) != null ) { if ( ( VERSION . SDK_INT ) >= 14 ) { if ( BluetoothServiceProxy . btSocket . isConnected ( ) ) { return true ; } } else { <START_BUG> return true ; <END_BUG> } } return false ; } }

Fix:
return false ;
Buggy code:
public class LoggerAdd extends AbstractAddStepHandler { public static final LoggerAdd INSTANCE = new LoggerAdd ( ) ; @ Override protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) throws OperationFailedException { final PathAddress address = PathAddress . pathAddress ( operation . get ( OP_ADDR ) ) ; final String name = address . getLastElement ( ) . getValue ( ) ; final ModelNode level = CommonAttributes . LEVEL . resolveModelAttribute ( context , model ) ; final ModelNode useParentHandlers = CommonAttributes . USE_PARENT_HANDLERS . resolveModelAttribute ( context , model ) ; final ModelNode filter = CommonAttributes . FILTER . resolveModelAttribute ( context , model ) ; final ServiceTarget target = context . getServiceTarget ( ) ; try { final LoggerService service = new LoggerService ( name ) ; if ( level . isDefined ( ) ) service . setLevel ( ModelParser . parseLevel ( level ) ) ; if ( useParentHandlers . isDefined ( ) ) service . setUseParentHandlers ( useParentHandlers . asBoolean ( ) ) ; if ( filter . isDefined ( ) ) service . setFilter ( ModelParser . parseFilter ( context , filter ) ) ; newControllers . add ( target . addService ( LogServices . loggerName ( name ) , service ) . addListener ( verificationHandler ) . setInitialMode ( ACTIVE ) . install ( ) ) ; } catch ( Throwable t ) { throw new OperationFailedException ( new ModelNode ( ) . set ( t . getLocalizedMessage ( ) ) ) ; } try { final ModelNode handlers = CommonAttributes . HANDLERS . resolveModelAttribute ( context , model ) ; if ( handlers . isDefined ( ) ) { <START_BUG> newControllers . addAll ( LogServices . installLoggerHandlers ( target , name , handlers , verificationHandler ) ) ; <END_BUG> } } catch ( Throwable t ) { throw new OperationFailedException ( new ModelNode ( ) . set ( t . getLocalizedMessage ( ) ) ) ; } } }

Fix:
newControllers . addAll ( LoggerAssignHandler . addHandlers ( CommonAttributes . HANDLERS , model , context , name , verificationHandler ) ) ;
Buggy code:
@ Version ( AsVersion . V_7_1_3_Final ) public class SimpleMixedDomain_7_1_3_Final_TestCase extends SimpleMixedDomainTest { @ BeforeClass public static void beforeClass ( ) { <START_BUG> SimpleMixedDomain_7_1_3_Final_TestCase . beforeClass ( SimpleMixedDomain_7_1_3_Final_TestCase . class ) ; <END_BUG> } }

Fix:
MixedDomainTestSuite . getSupport ( SimpleMixedDomain_7_1_3_Final_TestCase . class ) ;
Buggy code:
public class AnalyticsUmeng implements InterfaceAnalytics { private Context mContext = null ; protected static String TAG = "AnalyticsUmeng" ; protected static void LogE ( String msg , Exception e ) { } private static boolean isDebug = true ; protected static void LogD ( String msg ) { } public AnalyticsUmeng ( Context context ) { } public boolean isValid ( ) { } @ Override public void startSession ( String appKey ) { } @ Override public void stopSession ( ) { } @ Override public void setSessionContinueMillis ( int millis ) { } @ Override public void setCaptureUncaughtException ( boolean isEnabled ) { } @ Override public void setDebugMode ( boolean isDebugMode ) { } @ Override public void logError ( String errorId , String message ) { } @ Override public void logEvent ( String eventId ) { } @ Override public void logEvent ( String eventId , Hashtable < String , String > paramMap ) { } @ Override public void logTimedEventBegin ( String eventId ) { } @ Override public void logTimedEventEnd ( String eventId ) { } @ Override public String getSDKVersion ( ) { } protected String getConfigParams ( String key ) { } protected void updateOnlineConfig ( ) { } protected void logEventWithLabel ( JSONObject eventInfo ) { } protected void logEventWithDurationLabel ( JSONObject eventInfo ) { } protected void logEventWithDurationParams ( JSONObject eventInfo ) { } protected void logEventWithDuration ( JSONObject eventInfo ) { AnalyticsUmeng . LogD ( ( "logEventWithDuration<seq2seq4repair_space>invoked!<seq2seq4repair_space>event<seq2seq4repair_space>:<seq2seq4repair_space>" + ( eventInfo . toString ( ) ) ) ) ; if ( ! ( isValid ( ) ) ) return ; try { String eventId = eventInfo . getString ( "Param1" ) ; <START_BUG> int duration = eventInfo . getInt ( "Param2" ) ; <END_BUG> MobclickAgent . onEventDuration ( mContext , eventId , duration ) ; } catch ( Exception e ) { AnalyticsUmeng . LogE ( "Exception<seq2seq4repair_space>in<seq2seq4repair_space>logEventWithDuration" , e ) ; } } protected void logTimedEventWithLabelBegin ( JSONObject eventInfo ) { } protected void logTimedEventWithLabelEnd ( JSONObject eventInfo ) { } protected void logTimedKVEventBegin ( JSONObject eventInfo ) { } protected void logTimedKVEventEnd ( JSONObject eventInfo ) { } private HashMap < String , String > changeTableToMap ( Hashtable < String , String > param ) { } private HashMap < String , String > getMapFromJson ( JSONObject json ) { } @ Override public String getPluginVersion ( ) { } }

Fix:
int duration = Integer . parseInt ( eventInfo . getString ( "Param2" ) ) ;
Buggy code:
public class SystemInitialize { public static void main ( String [ ] argv ) { new AssignResourceToProject ( new Integer ( 100 ) , "AssignResourceToProject" ) ; new ListResources ( new Integer ( 101 ) , "ListResourcesComponent" ) ; new ListProjects ( new Integer ( 102 ) , "ListProjectsComponent" ) ; new ListProjectsAssignedToResource ( new Integer ( 103 ) , "ListProjectsAssignedToResourceComponent" ) ; new ListResourcesAssignedToProject ( new Integer ( 104 ) , "ListResourcesAssignedToProjectComponent" ) ; Executive executiveComponent = new Executive ( new Integer ( 105 ) , "ExecutiveComponent" ) ; new ListProjectsPreviouslyAssignedToResource ( new Integer ( 106 ) , "ListProjectsPreviouslyAssignedToResourceComponent" ) ; <START_BUG> new ListAllRolesAssignedToProject ( new Integer ( 107 ) , "ListAllRolesAssignedToProject" ) ; <END_BUG> executiveComponent . execute ( ) ; } No newline ; at end ; of file ; }

Fix:
new ListAllRolesAssignedToProject ( new Integer ( 107 ) , "ListAllRolesAssignedToProjectComponent" ) ;
Buggy code:
public class JcaCachedConnectionManagerDefinition extends SimpleResourceDefinition { protected static final PathElement PATH_CACHED_CONNECTION_MANAGER = PathElement . pathElement ( Constants . CACHED_CONNECTION_MANAGER , Constants . CACHED_CONNECTION_MANAGER ) ; static final JcaCachedConnectionManagerDefinition INSTANCE = new JcaCachedConnectionManagerDefinition ( ) ; private JcaCachedConnectionManagerDefinition ( ) { } @ Override public void registerAttributes ( ManagementResourceRegistration resourceRegistration ) { super . registerAttributes ( resourceRegistration ) ; for ( final JcaCachedConnectionManagerDefinition . CcmParameters parameter : JcaCachedConnectionManagerDefinition . CcmParameters . values ( ) ) { if ( parameter != ( JcaCachedConnectionManagerDefinition . CcmParameters . INSTALL ) ) { <START_BUG> resourceRegistration . registerReadWriteAttribute ( parameter . getAttribute ( ) , null , JcaAttributeWriteHandler . INSTANCE ) ; <END_BUG> } else { AttributeDefinition ad = parameter . getAttribute ( ) ; resourceRegistration . registerReadWriteAttribute ( ad , null , new org . jboss . as . controller . ReloadRequiredWriteAttributeHandler ( ad ) ) ; } } } public static enum CcmParameters { DEBUG ( SimpleAttributeDefinitionBuilder . create ( "debug" , BOOLEAN ) . setAllowExpression ( true ) . setAllowNull ( true ) . setDefaultValue ( new ModelNode ( ) . set ( false ) ) . setMeasurementUnit ( NONE ) . setRestartAllServices ( ) . setXmlName ( "debug" ) . build ( ) ) , ERROR ( SimpleAttributeDefinitionBuilder . create ( "error" , BOOLEAN ) . setAllowExpression ( true ) . setAllowNull ( true ) . setDefaultValue ( new ModelNode ( ) . set ( false ) ) . setMeasurementUnit ( NONE ) . setRestartAllServices ( ) . setXmlName ( "error" ) . build ( ) ) , INSTALL ( SimpleAttributeDefinitionBuilder . create ( "install" , BOOLEAN ) . setAllowExpression ( false ) . setAllowNull ( true ) . setDefaultValue ( new ModelNode ( ) . set ( false ) ) . setMeasurementUnit ( NONE ) . setRestartAllServices ( ) . build ( ) ) ; private CcmParameters ( SimpleAttributeDefinition attribute ) { } public SimpleAttributeDefinition getAttribute ( ) { } private SimpleAttributeDefinition attribute ; } }

Fix:
resourceRegistration . registerReadWriteAttribute ( parameter . getAttribute ( ) , null , JcaCachedConnectionManagerWriteHandler . INSTANCE ) ;
Buggy code:
public class BeauticianResponseTask extends BaseHttpPost { private MessageResponse mMessageResponse ; public BeauticianResponseTask ( Context ctx , HttpCallback callback , MessageResponse messageResponse ) { } @ Override protected Object continueInBackground ( String result ) { } @ Override protected void prepare ( String request ) { } private long getDateInMillis ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( mMessageResponse . getDate ( ) ) ; sb . append ( "<seq2seq4repair_space>" ) ; sb . append ( mMessageResponse . getHour ( ) ) ; <START_BUG> long date = TimeUtils . dateAndTimeToTimestamp ( sb . toString ( ) ) ; <END_BUG> return date ; } private JSONArray getTreatmentsForJson ( ) { } }

Fix:
long date = TimeUtils . dateAndTimeToLocalTimestamp ( sb . toString ( ) ) ;
Buggy code:
public abstract class AbstractSubHyperplane < S extends Space , T extends Space > implements SubHyperplane < S > { private final Hyperplane < S > hyperplane ; private final Region < T > remainingRegion ; protected AbstractSubHyperplane ( final Hyperplane < S > hyperplane , final Region < T > remainingRegion ) { } protected abstract AbstractSubHyperplane < S , T > buildNew ( final Hyperplane < S > hyper , final Region < T > remaining ) { } public AbstractSubHyperplane < S , T > copySelf ( ) { <START_BUG> return buildNew ( hyperplane , remainingRegion ) ; <END_BUG> } public Hyperplane < S > getHyperplane ( ) { } public Region < T > getRemainingRegion ( ) { } public double getSize ( ) { } public AbstractSubHyperplane < S , T > reunite ( final SubHyperplane < S > other ) { } public AbstractSubHyperplane < S , T > applyTransform ( final Transform < S , T > transform ) { } private BSPTree < T > recurseTransform ( final BSPTree < T > node , final Hyperplane < S > transformed , final Transform < S , T > transform ) { } public abstract Side side ( Hyperplane < S > hyper ) { } public abstract SplitSubHyperplane < S > split ( Hyperplane < S > hyper ) { } public boolean isEmpty ( ) { } }

Fix:
return buildNew ( hyperplane . copySelf ( ) , remainingRegion ) ;
Buggy code:
public class Animator extends Thread { MatrixTiles mt ; public Animator ( MatrixTiles t ) { } @ Override public void run ( ) { while ( true ) { try { Thread . sleep ( 300 ) ; <START_BUG> mt . getTileAt ( mt . currentFil , mt . currentCol ) . changeImage ( ) ; <END_BUG> for ( Box i : mt . cherry_boxes ) { mt . getTileAt ( i . fil , i . col ) . changePosition ( ) ; } } catch ( InterruptedException e ) { System . err . println ( "thread<seq2seq4repair_space>interrupted." ) ; } catch ( ConcurrentModificationException ex ) { System . err . println ( "Concurrent<seq2seq4repair_space>modificaiton<seq2seq4repair_space>exception" ) ; } } } }

Fix:
mt . getTileAt ( mt . currentFil , mt . currentCol ) . changeFrame ( ) ;
Buggy code:
public class HashGroupifyDistribution { private IntIntOpenHashMap distribution = new IntIntOpenHashMap ( ) ; private int suppressed = 0 ; private HashGroupifyEntry [ ] entries ; private int offset = 0 ; private double numTuples ; private double numClasses = 0 ; HashGroupifyDistribution ( HashGroupifyEntry entry ) { } public RiskModelEquivalenceClasses getEquivalenceClasses ( ) { } public int suppressNextClass ( ) { } private void addToDistribution ( int size ) { } private void removeFromDistribution ( int size ) { } public double getAverageClassSize ( ) { <START_BUG> return ( numClasses ) // ( numTuples ) ; <END_BUG> } public double getFractionOfTuplesInClassesOfSize ( int size ) { } public int getNumberOfTuples ( ) { } }

Fix:
return ( numTuples ) // ( numClasses ) ;
Buggy code:
public class TypeAnnotationAccessVar extends BcelVar { private BcelVar target ; public TypeAnnotationAccessVar ( ResolvedTypeX type , BcelVar theAnnotatedTargetIsStoredHere ) { } public String toString ( ) { } public Instruction createLoad ( InstructionFactory fact ) { } public Instruction createStore ( InstructionFactory fact ) { } public InstructionList createCopyFrom ( InstructionFactory fact , int oldSlot ) { } public void appendLoad ( InstructionList il , InstructionFactory fact ) { } public InstructionList createLoadInstructions ( ResolvedTypeX toType , InstructionFactory fact ) { InstructionList il = new InstructionList ( ) ; Type jlClass = BcelWorld . makeBcelType ( JAVA_LANG_CLASS ) ; Type jlaAnnotation = BcelWorld . makeBcelType ( TypeX . forSignature ( "Ljava.lang.annotation.Annotation;" ) ) ; il . append ( target . createLoad ( fact ) ) ; il . append ( fact . createInvoke ( "java//lang//Object" , "getClass" , jlClass , new Type [ ] { } , INVOKEVIRTUAL ) ) ; <START_BUG> il . append ( fact . createConstant ( new org . aspectj . apache . bcel . generic . ObjectType ( toType . getClassName ( ) ) ) ) ; <END_BUG> il . append ( fact . createInvoke ( "java//lang//Class" , "getAnnotation" , jlaAnnotation , new Type [ ] { jlClass } , INVOKEVIRTUAL ) ) ; il . append ( Utility . createConversion ( fact , jlaAnnotation , BcelWorld . makeBcelType ( toType ) ) ) ; return il ; } public void appendLoadAndConvert ( InstructionList il , InstructionFactory fact , ResolvedTypeX toType ) { } public void insertLoad ( InstructionList il , InstructionFactory fact ) { } }

Fix:
il . append ( fact . createConstant ( new org . aspectj . apache . bcel . generic . ObjectType ( toType . getName ( ) ) ) ) ;
Buggy code:
public class ProgressViewerContentProvider extends ProgressContentProvider { protected AbstractProgressViewer progressViewer ; private KeptJobsListener keptJobListener ; private boolean showFinished ; public ProgressViewerContentProvider ( AbstractProgressViewer structured , boolean debug , boolean showFinished ) { } private KeptJobsListener getKeptJobListener ( ) { } public void refresh ( ) { } public void refresh ( Object [ ] elements ) { } public Object [ ] getElements ( Object inputElement ) { Object [ ] elements = super . getElements ( inputElement ) ; if ( ! ( showFinished ) ) return elements ; Set kept = FinishedJobs . getInstance ( ) . getKeptAsSet ( ) ; if ( ( kept . size ( ) ) == 0 ) return elements ; Set all = new HashSet ( ) ; for ( int i = 0 ; i < ( elements . length ) ; i ++ ) { Object element = elements [ i ] ; all . add ( element ) ; } Iterator keptIterator = kept . iterator ( ) ; while ( keptIterator . hasNext ( ) ) { JobTreeElement next = ( ( JobTreeElement ) ( keptIterator . next ( ) ) ) ; <START_BUG> if ( ( ( next . getParent ( ) ) != null ) && ( kept . contains ( next . getParent ( ) ) ) ) <END_BUG> continue ; all . add ( next ) ; } return all . toArray ( ) ; } private Object [ ] getRoots ( Object [ ] elements , boolean subWithParent ) { } public void add ( Object [ ] elements ) { } public void remove ( Object [ ] elements ) { } public void dispose ( ) { } }

Fix:
if ( ( ( next . getParent ( ) ) != null ) && ( all . contains ( next . getParent ( ) ) ) )
Buggy code:
public class CpioArchiveInputStream extends ArchiveInputStream implements CpioConstants { private boolean closed = false ; private CpioArchiveEntry entry ; private long entryBytesRead = 0 ; private boolean entryEOF = false ; private final byte [ ] tmpbuf = new byte [ 4096 ] ; private long crc = 0 ; private final InputStream in ; private final byte [ ] TWO_BYTES_BUF = new byte [ 2 ] ; private final byte [ ] FOUR_BYTES_BUF = new byte [ 4 ] ; private final byte [ ] SIX_BYTES_BUF = new byte [ 6 ] ; private final int blockSize ; private final ZipEncoding encoding ; public CpioArchiveInputStream ( final InputStream in ) { } public CpioArchiveInputStream ( final InputStream in , String encoding ) { } public CpioArchiveInputStream ( final InputStream in , int blockSize ) { } public CpioArchiveInputStream ( final InputStream in , int blockSize , String encoding ) { } @ Override public int available ( ) throws IOException { } @ Override public void close ( ) throws IOException { } private void closeEntry ( ) throws IOException { } private void ensureOpen ( ) throws IOException { } public CpioArchiveEntry getNextCPIOEntry ( ) throws IOException { } private void skip ( int bytes ) throws IOException { } @ Override public int read ( final byte [ ] b , final int off , final int len ) throws IOException { } private final int readFully ( final byte [ ] b , final int off , final int len ) throws IOException { } private long readBinaryLong ( final int length , final boolean swapHalfWord ) throws IOException { } private long readAsciiLong ( final int length , final int radix ) throws IOException { } private CpioArchiveEntry readNewEntry ( final boolean hasCrc ) throws IOException { } private CpioArchiveEntry readOldAsciiEntry ( ) throws IOException { } private CpioArchiveEntry readOldBinaryEntry ( final boolean swapHalfWord ) throws IOException { } private String readCString ( final int length ) throws IOException { } @ Override public long skip ( final long n ) throws IOException { } @ Override <START_BUG> public CpioArchiveEntry getNextEntry ( ) throws IOException { <END_BUG> return getNextCPIOEntry ( ) ; } private void skipRemainderOfLastBlock ( ) throws IOException { } public static boolean matches ( byte [ ] signature , int length ) { } }

Fix:
public ArchiveEntry getNextEntry ( ) throws IOException {
Buggy code:
public class Note implements Comparable { public static final HashMap < Character , Integer > noteSymbolToNoteValue ; public static final HashMap < Integer , Character > valueToNoteSymbol ; private int pitchValue ; private boolean halftone ; public int getPitchValue ( ) { } public void setPitchValue ( char note , int octave ) { <START_BUG> this . pitchValue = note * ( Note . noteSymbolToNoteValue . get ( note ) ) ; <END_BUG> } public int getOctave ( ) { } public char getPitch ( ) { } @ Override public String toString ( ) { } @ Override public int compareTo ( Object note2 ) { } public boolean isHalftone ( ) { } public void setHalftone ( boolean halftone ) { } }

Fix:
this . pitchValue = octave * ( Note . noteSymbolToNoteValue . get ( note ) ) ;
Buggy code:
public class BaseNCodecOutputStream extends FilterOutputStream { private final boolean doEncode ; private final BaseNCodec baseNCodec ; private final byte [ ] singleByte = new byte [ 1 ] ; public BaseNCodecOutputStream ( OutputStream out , BaseNCodec basedCodec , boolean doEncode ) { } public void write ( int i ) throws IOException { } public void write ( byte [ ] b , int offset , int len ) throws IOException { } private void flush ( boolean propogate ) throws IOException { <START_BUG> int avail = baseNCodec . avail ( ) ; <END_BUG> if ( avail > 0 ) { byte [ ] buf = new byte [ avail ] ; int c = baseNCodec . readResults ( buf , 0 , avail ) ; if ( c > 0 ) { out . write ( buf , 0 , c ) ; } } if ( propogate ) { out . flush ( ) ; } } public void flush ( ) throws IOException { } public void close ( ) throws IOException { } }

Fix:
int avail = baseNCodec . available ( ) ;
Buggy code:
public class ImportTask extends Task { private String file ; private boolean optional ; private static final FileUtils FILE_UTILS = FileUtils . newFileUtils ( ) ; public void setOptional ( boolean optional ) { <START_BUG> this . optional = true ; <END_BUG> } public void setFile ( String file ) { } public void execute ( ) { } private static String getPath ( File file ) { } }

Fix:
this . optional = optional ;
Buggy code:
public class ConnectionFactoryAddJndiHandler extends AbstractAddJndiHandler { public static final ConnectionFactoryAddJndiHandler INSTANCE = new ConnectionFactoryAddJndiHandler ( ) ; private ConnectionFactoryAddJndiHandler ( ) { } @ Override protected void addJndiNameToControl ( String toAdd , String resourceName , HornetQServer server , OperationContext context ) { ManagementService mgmt = server . getManagementService ( ) ; ConnectionFactoryControl control = ConnectionFactoryControl . class . cast ( mgmt . getResource ( ( ( ResourceNames . JMS_CONNECTION_FACTORY ) + resourceName ) ) ) ; try { control . addJNDI ( toAdd ) ; } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { <START_BUG> context . getFailureDescription ( ) . set ( e . toString ( ) ) ; <END_BUG> } } @ Override public ModelNode getModelDescription ( Locale locale ) { } }

Fix:
context . getFailureDescription ( ) . set ( e . getLocalizedMessage ( ) ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ ServerSetup ( WebSecurityProgrammaticLoginTestCase . SecurityDomainSetup . class ) public class WebSecurityProgrammaticLoginTestCase { @ ArquillianResource private ManagementClient managementClient ; @ Deployment ( testable = true ) public static WebArchive deployment ( ) { } @ Test public void testPasswordBasedSuccessfulAuth ( ) throws Exception { } @ Test public void testPasswordBasedUnsuccessfulAuth ( ) throws Exception { } protected void makeCall ( String user , String pass , int expectedStatusCode ) throws Exception { DefaultHttpClient httpclient = new DefaultHttpClient ( ) ; try { <START_BUG> HttpGet httpget = new HttpGet ( ( ( ( ( ( ( ( "http:////" + ( managementClient . getMgmtAddress ( ) ) ) + ":8080//" ) + ( getContextPath ( ) ) ) + "//login//?username=" ) + user ) + "&password=" ) + pass ) ) ; <END_BUG> System . out . println ( ( "executing<seq2seq4repair_space>request" + ( httpget . getRequestLine ( ) ) ) ) ; HttpResponse response = httpclient . execute ( httpget ) ; HttpEntity entity = response . getEntity ( ) ; System . out . println ( "----------------------------------------" ) ; StatusLine statusLine = response . getStatusLine ( ) ; System . out . println ( statusLine ) ; if ( entity != null ) { System . out . println ( ( "Response<seq2seq4repair_space>content<seq2seq4repair_space>length:<seq2seq4repair_space>" + ( entity . getContentLength ( ) ) ) ) ; } assertEquals ( expectedStatusCode , statusLine . getStatusCode ( ) ) ; EntityUtils . consume ( entity ) ; } finally { httpclient . getConnectionManager ( ) . shutdown ( ) ; } } public String getContextPath ( ) { } static class SecurityDomainSetup extends AbstractSecurityDomainSetup { @ Override protected String getSecurityDomainName ( ) { } @ Override public void setup ( final ManagementClient managementClient , final String containerId ) { } } }

Fix:
HttpGet httpget = new HttpGet ( ( ( ( ( ( ( ( managementClient . getWebUri ( ) ) + "//" ) + ( getContextPath ( ) ) ) + "//login//?username=" ) + user ) + "&password=" ) + pass ) ) ;
Buggy code:
public class DreamLandPlayerListener extends PlayerListener { private static DreamLand plugin ; public DreamLandPlayerListener ( DreamLand instance ) { } public void onPlayerPortal ( PlayerPortalEvent event ) { } public void onPlayerInteract ( PlayerInteractEvent event ) { } public void onPlayerMove ( PlayerMoveEvent event ) { DreamLandPlayer player = DreamLandPlayerListener . plugin . player ( event . getPlayer ( ) ) ; DreamLandWorld world = DreamLandPlayerListener . plugin . world ( player . getWorld ( ) ) ; if ( player . Dreaming ( ) ) { <START_BUG> if ( ( event . getTo ( ) . getY ( ) ) < 0 ) { <END_BUG> player . leaveDream ( ) ; return ; } if ( ( DreamLandPlayerListener . plugin . options . morningReturn ) && ( ! ( player . hasPermission ( "dreamland.nowakeup" , false ) ) ) ) { long time = player . getBedWorld ( ) . getTime ( ) ; if ( ( time >= 0 ) && ( time <= 12000 ) ) { player . sendMessage ( "It<seq2seq4repair_space>is<seq2seq4repair_space>morning,<seq2seq4repair_space>WAKEUP!" ) ; player . leaveDream ( ) ; return ; } } if ( world . Flaming ) { player . self ( ) . setFireTicks ( ( 3 * 30 ) ) ; } if ( ( new Random ( ) . nextInt ( 1000 ) ) < ( world . MobChance ) ) { for ( String mob : world . Mobs ) { CreatureType ct = CreatureType . fromName ( mob ) ; if ( ct == null ) continue ; int amount = new Random ( ) . nextInt ( 3 ) ; for ( int i = 0 ; i < amount ; i ++ ) { Location loc = player . getLocation ( ) ; loc . setX ( ( ( loc . getX ( ) ) + 10 ) ) ; world . getWorld ( ) . spawnCreature ( loc , ct ) ; } } } } } public void onPlayerBedEnter ( PlayerBedEnterEvent event ) { } public void onPlayerQuit ( PlayerQuitEvent event ) { } public void onPlayerRespawn ( PlayerRespawnEvent event ) { } public void onPlayerKick ( PlayerKickEvent event ) { } public void onPlayerLogin ( PlayerLoginEvent event ) { } public boolean checkBedSigned ( Block block ) { } }

Fix:
if ( ( event . getTo ( ) . getY ( ) ) < 10 ) {
Buggy code:
public class BootStrapper { private static final Logger logger = LoggerFactory . getLogger ( BootStrapper . class ) ; protected final InetAddress address ; protected final Token token ; protected final TokenMetadata tokenMetadata ; public BootStrapper ( InetAddress address , Token token , TokenMetadata tmd ) { } public void bootstrap ( ) throws IOException { } public static Token getBootstrapToken ( final TokenMetadata metadata , final Map < InetAddress , Double > load ) throws IOException , ConfigurationException { } public static Token getBalancedToken ( TokenMetadata metadata , Map < InetAddress , Double > load ) { } static InetAddress getBootstrapSource ( final TokenMetadata metadata , final Map < InetAddress , Double > load ) { } Multimap < Range , InetAddress > getRangesWithSources ( String table ) { } static Token < ? > getBootstrapTokenFrom ( InetAddress maxEndpoint ) { } static Multimap < InetAddress , Range > getWorkMap ( Multimap < Range , InetAddress > rangesWithSourceTarget ) { } static Multimap < InetAddress , Range > getWorkMap ( Multimap < Range , InetAddress > rangesWithSourceTarget , IFailureDetector failureDetector ) { } public static class BootstrapTokenVerbHandler implements IVerbHandler { public void doVerb ( Message message ) { StorageService ss = StorageService . instance ; String tokenString = StorageService . getPartitioner ( ) . getTokenFactory ( ) . toString ( ss . getBootstrapToken ( ) ) ; <START_BUG> Message response = message . getInternalReply ( tokenString . getBytes ( Charsets . UTF_8 ) ) ; <END_BUG> MessagingService . instance ( ) . sendOneWay ( response , message . getFrom ( ) ) ; } } private static class BootstrapTokenCallback implements IAsyncCallback { private volatile Token < ? > token ; private final Condition condition = new SimpleCondition ( ) ; public Token < ? > getToken ( ) { } public void response ( Message msg ) { } } }

Fix:
Message response = message . getInternalReply ( tokenString . getBytes ( Charsets . UTF_8 ) , message . getVersion ( ) ) ;
Buggy code:
public class ServletContextFacade implements ServletContext { private StringManager sm = StringManager . getManager ( Package ) ; private ContextManager contextM ; private Context context ; ServletContextFacade ( ContextManager server , Context context ) { } public Context getRealContext ( ) { } public Object getAttribute ( String name ) { } public Enumeration getAttributeNames ( ) { } public void setAttribute ( String name , Object object ) { } public void removeAttribute ( String name ) { } public ServletContext getContext ( String path ) { } public int getMajorVersion ( ) { } public int getMinorVersion ( ) { } public String getMimeType ( String filename ) { } public String getRealPath ( String path ) { } public InputStream getResourceAsStream ( String path ) { } public URL getResource ( String path ) throws MalformedURLException { } public RequestDispatcher getRequestDispatcher ( String path ) { } public RequestDispatcher getNamedDispatcher ( String name ) { } public String getServerInfo ( ) { <START_BUG> return contextM . getServerInfo ( ) ; <END_BUG> } public void log ( String msg ) { } public String getInitParameter ( String name ) { } public Enumeration getInitParameterNames ( ) { } public void log ( String msg , Throwable t ) { } public void log ( Exception e , String msg ) { } public Servlet getServlet ( String name ) throws ServletException { } public Enumeration getServlets ( ) { } public Enumeration getServletNames ( ) { } private String normPath ( String path ) { } }

Fix:
return context . getEngineHeader ( ) ;
Buggy code:
final class WholeBreakIterator extends BreakIterator { private CharacterIterator text ; private int start ; private int end ; private int current ; @ Override public int current ( ) { } @ Override public int first ( ) { } @ Override public int following ( int pos ) { } @ Override public CharacterIterator getText ( ) { } @ Override public int last ( ) { } @ Override public int next ( ) { } @ Override public int next ( int n ) { } @ Override public int preceding ( int pos ) { } @ Override public int previous ( ) { } @ Override public void setText ( CharacterIterator newText ) { start = newText . getBeginIndex ( ) ; end = newText . getEndIndex ( ) ; text = newText ; <START_BUG> current = newText . getIndex ( ) ; <END_BUG> } }

Fix:
current = start ;
Buggy code:
public class RowMutationVerbHandler implements IVerbHandler { private static Logger logger_ = LoggerFactory . getLogger ( RowMutationVerbHandler . class ) ; public void doVerb ( Message message ) { byte [ ] bytes = message . getMessageBody ( ) ; ByteArrayInputStream buffer = new ByteArrayInputStream ( bytes ) ; try { RowMutation rm = RowMutation . serializer ( ) . deserialize ( new DataInputStream ( buffer ) ) ; if ( RowMutationVerbHandler . logger_ . isDebugEnabled ( ) ) RowMutationVerbHandler . logger_ . debug ( ( "Applying<seq2seq4repair_space>" + rm ) ) ; byte [ ] hintedBytes = message . getHeader ( HINT ) ; if ( hintedBytes != null ) { assert ( hintedBytes . length ) > 0 ; ByteBuffer bb = ByteBuffer . wrap ( hintedBytes ) ; byte [ ] addressBytes = new byte [ FBUtilities . getLocalAddress ( ) . getAddress ( ) . length ] ; while ( ( bb . remaining ( ) ) > 0 ) { bb . get ( addressBytes ) ; InetAddress hint = InetAddress . getByAddress ( addressBytes ) ; if ( RowMutationVerbHandler . logger_ . isDebugEnabled ( ) ) RowMutationVerbHandler . logger_ . debug ( ( "Adding<seq2seq4repair_space>hint<seq2seq4repair_space>for<seq2seq4repair_space>" + hint ) ) ; <START_BUG> RowMutation hintedMutation = new RowMutation ( Table . SYSTEM_TABLE , rm . getTable ( ) ) ; <END_BUG> hintedMutation . addHints ( rm . key ( ) , addressBytes ) ; hintedMutation . apply ( ) ; } } Table . open ( rm . getTable ( ) ) . apply ( rm , bytes , true ) ; WriteResponse response = new WriteResponse ( rm . getTable ( ) , rm . key ( ) , true ) ; Message responseMessage = WriteResponse . makeWriteResponseMessage ( message , response ) ; if ( RowMutationVerbHandler . logger_ . isDebugEnabled ( ) ) RowMutationVerbHandler . logger_ . debug ( ( ( ( ( rm + "<seq2seq4repair_space>applied.<seq2seq4repair_space>Sending<seq2seq4repair_space>response<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( message . getMessageId ( ) ) ) + "@" ) + ( message . getFrom ( ) ) ) ) ; instance . sendOneWay ( responseMessage , message . getFrom ( ) ) ; } catch ( IOException e ) { RowMutationVerbHandler . logger_ . error ( "Error<seq2seq4repair_space>in<seq2seq4repair_space>row<seq2seq4repair_space>mutation" , e ) ; } } }

Fix:
RowMutation hintedMutation = new RowMutation ( Table . SYSTEM_TABLE , rm . getTable ( ) . getBytes ( UTF8 ) ) ;
Buggy code:
public class TestSpansAdvanced2 extends TestSpansAdvanced { IndexSearcher searcher2 ; @ Override protected void setUp ( ) throws Exception { super . setUp ( ) ; <START_BUG> final IndexWriter writer = new IndexWriter ( mDirectory , new org . apache . lucene . analysis . standard . StandardAnalyzer ( Version . LUCENE_CURRENT ) , false , MaxFieldLength . LIMITED ) ; <END_BUG> addDocument ( writer , "A" , "Should<seq2seq4repair_space>we,<seq2seq4repair_space>could<seq2seq4repair_space>we,<seq2seq4repair_space>would<seq2seq4repair_space>we?" ) ; addDocument ( writer , "B" , "It<seq2seq4repair_space>should.<seq2seq4repair_space>Should<seq2seq4repair_space>it?" ) ; addDocument ( writer , "C" , "It<seq2seq4repair_space>shouldn't." ) ; addDocument ( writer , "D" , "Should<seq2seq4repair_space>we,<seq2seq4repair_space>should<seq2seq4repair_space>we,<seq2seq4repair_space>should<seq2seq4repair_space>we." ) ; writer . close ( ) ; searcher2 = new IndexSearcher ( mDirectory , true ) ; } public void testVerifyIndex ( ) throws Exception { } public void testSingleSpanQuery ( ) throws IOException { } public void testMultipleDifferentSpanQueries ( ) throws IOException { } @ Override public void testBooleanQueryWithSpanQueries ( ) throws IOException { } }

Fix:
final IndexWriter writer = new IndexWriter ( mDirectory , new org . apache . lucene . analysis . standard . StandardAnalyzer ( TEST_VERSION_CURRENT ) , false , MaxFieldLength . LIMITED ) ;