nus-yam/ex-repair huggingface dataset:
Buggy code:
@ SuppressWarnings ( "serial" ) public class CheckboxTag extends AbstractSingleCheckedElementTag { @ Override protected int writeTagContent ( TagWriter tagWriter ) throws JspException { } @ Override protected void writeTagDetails ( TagWriter tagWriter ) throws JspException { tagWriter . writeAttribute ( "type" , getInputType ( ) ) ; Object boundValue = getBoundValue ( ) ; Class valueType = getBindStatus ( ) . getValueType ( ) ; if ( ( Boolean . class . equals ( valueType ) ) || ( boolean . class . equals ( valueType ) ) ) { if ( boundValue instanceof String ) { boundValue = Boolean . valueOf ( ( ( String ) ( boundValue ) ) ) ; } Boolean booleanValue = ( boundValue != null ) ? ( ( Boolean ) ( boundValue ) ) : Boolean . FALSE ; renderFromBoolean ( booleanValue , tagWriter ) ; } else { Object value = getValue ( ) ; if ( value == null ) { throw new IllegalArgumentException ( "Attribute<seq2seq4repair_space>'value'<seq2seq4repair_space>is<seq2seq4repair_space>required<seq2seq4repair_space>when<seq2seq4repair_space>binding<seq2seq4repair_space>to<seq2seq4repair_space>non-boolean<seq2seq4repair_space>values" ) ; } <START_BUG> Object resolvedValue = ( value instanceof String ) ? evaluate ( "value" , ( ( String ) ( value ) ) ) : value ; <END_BUG> renderFromValue ( resolvedValue , tagWriter ) ; } } @ Override protected String getInputType ( ) { } }

Fix:
Object resolvedValue = ( value instanceof String ) ? evaluate ( "value" , value ) : value ;
Buggy code:
@ NotThreadSafe public class FileBackedBitArray implements BitArray { protected final RandomAccessFile backingFile ; protected final int maxElements ; protected final int numBytes ; public FileBackedBitArray ( File backingFile , int maxElements ) throws IOException { } @ Override public boolean getBit ( int index ) { } @ Override public boolean setBit ( int index ) { } @ Override public void clear ( ) { } @ Override public void clearBit ( int index ) { } @ Override public boolean setBitIfUnset ( int index ) { <START_BUG> if ( this . getBit ( index ) ) { <END_BUG> return this . setBit ( index ) ; } return false ; } @ Override public void or ( BitArray bitArray ) { } @ Override public void and ( BitArray bitArray ) { } @ Override public int bitSize ( ) { } protected void extendFile ( final long newLength ) throws IOException { } @ Override public void close ( ) throws IOException { } @ Override public int numBytes ( ) { } @ Override public byte [ ] toByteArray ( ) { } @ Override public int getHighestBitSet ( ) { } @ Override public int getLowestBitSet ( ) { } }

Fix:
if ( ! ( this . getBit ( index ) ) ) {
Buggy code:
public class BasicNewFileResourceWizard extends BasicNewResourceWizard { private WizardNewFileCreationPage mainPage ; private WizardNewLinkPage linkPage ; public BasicNewFileResourceWizard ( ) { } public void addPages ( ) { super . addPages ( ) ; mainPage = new WizardNewFileCreationPage ( "newFilePage1" , getSelection ( ) ) ; mainPage . setTitle ( ResourceMessages . getString ( "FileResource.pageTitle" ) ) ; mainPage . setDescription ( ResourceMessages . getString ( "FileResource.description" ) ) ; addPage ( mainPage ) ; linkPage = new WizardNewLinkPage ( "newLinkPage" , IResource . FILE ) ; linkPage . setTitle ( ResourceMessages . getString ( "NewLink.pageTitle" ) ) ; <START_BUG> linkPage . setDescription ( ResourceMessages . getString ( "NewLink.description" ) ) ; <END_BUG> addPage ( linkPage ) ; } public IWizardPage getNextPage ( IWizardPage page ) { } public void init ( IWorkbench workbench , IStructuredSelection currentSelection ) { } protected void initializeDefaultPageImageDescriptor ( ) { } public boolean performFinish ( ) { } }

Fix:
linkPage . setDescription ( ResourceMessages . getString ( "NewLink.fileDescription" ) ) ;
Buggy code:
public final class XTSServices { public static final ServiceName JBOSS_XTS = JBOSS . append ( "xts" ) ; public static final ServiceName JBOSS_XTS_MAIN = XTSServices . JBOSS_XTS . append ( "main" ) ; public static final ServiceName JBOSS_XTS_ENDPOINT = XTSServices . JBOSS_XTS . append ( "endpoint" ) ; public static final ServiceName JBOSS_XTS_TXBRIDGE_INBOUND_RECOVERY = XTSServices . JBOSS_XTS . append ( "txbridgeInboundRecovery" ) ; public static final ServiceName JBOSS_XTS_TXBRIDGE_OUTBOUND_RECOVERY = XTSServices . JBOSS_XTS . append ( "txbridgeOutboundRecovery" ) ; public static ServiceName endpointServiceName ( String name ) { } public static < T > T notNull ( T value ) { if ( value == null ) <START_BUG> throw new IllegalStateException ( "Service<seq2seq4repair_space>not<seq2seq4repair_space>started" ) ; <END_BUG> return value ; } private XTSServices ( ) { } }

Fix:
throw MESSAGES . xtsServiceIsNotStarted ( ) ;
Buggy code:
public class LoopController extends GenericController implements Serializable { private static final String LOOPS = "LoopController.loops" ; private static final long serialVersionUID = 7833960784370272300L ; private static final String CONTINUE_FOREVER = "LoopController.continue_forever" ; private transient int loopCount = 0 ; private Integer nbLoops ; public LoopController ( ) { } public void setLoops ( int loops ) { } public void setLoops ( String loopValue ) { } public int getLoops ( ) { } public String getLoopString ( ) { } public void setContinueForever ( boolean forever ) { } private void setContinueForever_private ( boolean forever ) { } private boolean getContinueForever ( ) { } @ Override public Sampler next ( ) { } private boolean endOfLoop ( ) { } @ Override protected void setDone ( boolean done ) { nbLoops = null ; <START_BUG> super . setDone ( true ) ; <END_BUG> } @ Override protected Sampler nextIsNull ( ) throws NextIsNullException { } @ Override public void triggerEndOfLoop ( ) { } protected void incrementLoopCount ( ) { } protected void resetLoopCount ( ) { } @ Override protected int getIterCount ( ) { } @ Override protected void reInitialize ( ) { } public void startNextLoop ( ) { } }

Fix:
super . setDone ( done ) ;
Buggy code:
public class ModClusterAddProxy implements OperationStepHandler , DescriptionProvider { static final ModClusterAddProxy INSTANCE = new ModClusterAddProxy ( ) ; @ Override public ModelNode getModelDescription ( Locale locale ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { <START_BUG> if ( ( context . getType ( ) ) == ( Type . SERVER ) ) { <END_BUG> context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { ServiceController < ? > controller = context . getServiceRegistry ( false ) . getService ( NAME ) ; ModCluster modcluster = ( ( ModCluster ) ( controller . getValue ( ) ) ) ; ModClusterLogger . ROOT_LOGGER . debugf ( "add-proxy:<seq2seq4repair_space>%s" , operation ) ; Proxy proxy = new Proxy ( operation ) ; modcluster . addProxy ( proxy . host , proxy . port ) ; context . completeStep ( ) ; } } , RUNTIME ) ; } context . completeStep ( ) ; } }

Fix:
if ( context . getProcessType ( ) . isServer ( ) ) {
Buggy code:
public class ARLILExplanationEngineTest { @ Test ( groups = "1s" ) public void test1 ( ) { } @ Test ( groups = "1s" ) public void test2 ( ) { } @ Test ( groups = "1s" ) public void test3 ( ) { } @ Test ( groups = "1s" ) public void test4 ( ) { } @ Test ( groups = "10s" ) public void testNosol0E ( ) { } @ Test ( groups = "10s" ) public void testNosol0B ( ) { } @ Test ( groups = "10s" ) public void testNosol1E ( ) { } @ Test ( groups = "10s" ) public void testNosol1B ( ) { } @ Test ( groups = "1s" ) public void testReif ( ) { } @ Test ( groups = "1s" ) public void testReif2 ( ) { } @ Test ( groups = "1s" ) public void testReif3 ( ) { } private void configure ( Solver solver , int conf ) { } @ Test ( groups = "30m" ) public void testLS ( ) { } @ Test ( groups = "30m" ) public void testCA ( ) { } @ Test ( groups = "30m" ) public void testGR ( ) { } @ Test ( groups = "30m" ) public void testLN ( ) { } @ Test ( groups = "30m" ) public void testMS ( ) { } @ Test ( groups = "30m" ) public void testPa ( ) { } @ Test ( groups = "1s" ) public void testClauses ( ) { } @ Test ( groups = "1s" ) public void testClauses2 ( ) { <START_BUG> int n = 3 ; <END_BUG> Solver solver = new Solver ( ) ; BoolVar [ ] bs = VF . boolArray ( "B" , n , solver ) ; SatFactory . addBoolOrArrayEqualTrue ( bs ) ; SatFactory . addBoolIsLeVar ( bs [ 0 ] , bs [ 1 ] , bs [ 2 ] ) ; SatFactory . addBoolIsLeVar ( bs [ 1 ] , bs [ 0 ] , bs [ 2 ] ) ; SatFactory . addBoolNot ( bs [ 0 ] , bs [ 1 ] ) ; ARLILExplanationEngine ee = new ARLILExplanationEngine ( solver ) ; Reason r = null ; try { solver . propagate ( ) ; IntStrategy is = ISF . lexico_LB ( bs ) ; Decision d = is . getDecision ( ) ; d . buildNext ( ) ; d . apply ( ) ; solver . propagate ( ) ; } catch ( ContradictionException c ) { r = ee . explain ( c ) ; } Assert . assertNotNull ( r ) ; } }

Fix:
int n = 5 ;
Buggy code:
public class Tag extends Node { public static final String TYPE = "TAG" ; public static final String TAGNAME = "$<TAGNAME>$" ; public static final String EMPTYTAG = "$<EMPTYTAG>$" ; private static final int TAG_BEFORE_PARSING_STATE = 1 ; private static final int TAG_BEGIN_PARSING_STATE = 2 ; private static final int TAG_FINISHED_PARSING_STATE = 3 ; private static final int TAG_ILLEGAL_STATE = 4 ; private static final int TAG_IGNORE_DATA_STATE = 5 ; private static final int TAG_IGNORE_BEGIN_TAG_STATE = 6 ; private static final String EMPTY_STRING = "" ; private static AttributeParser paramParser = new AttributeParser ( ) ; private static TagParser tagParser ; protected StringBuffer tagContents ; private boolean emptyXmlTag = false ; protected Hashtable attributes = null ; protected TagScanner thisScanner = null ; private String tagLine ; private String [ ] tagLines ; private int startLine ; protected static HashSet breakTags ; public Tag ( TagData tagData ) { } public void append ( char ch ) { } public void append ( String ch ) { } public static Tag find ( NodeReader reader , String input , int position ) { } private Hashtable parseAttributes ( ) { } public String getAttribute ( String name ) { } public void setAttribute ( String key , String value ) { } public String getParameter ( String name ) { } public Hashtable getAttributes ( ) { } public String getTagName ( ) { } public String getTagLine ( ) { } public String [ ] getTagLines ( ) { } public String getText ( ) { } public TagScanner getThisScanner ( ) { } public static String extractWord ( String s ) { } public Node scan ( Map scanners , String url , NodeReader reader ) throws ParserException { } public void setAttributes ( Hashtable attributes ) { } public void setTagBegin ( int tagBegin ) { } public int getTagBegin ( ) { } public void setTagEnd ( int tagEnd ) { } public int getTagEnd ( ) { } public int getTagStartLine ( ) { } public int getTagEndLine ( ) { } public void setTagLine ( String newTagLine ) { } public void setText ( String text ) { } public void setThisScanner ( TagScanner scanner ) { } public String toPlainTextString ( ) { } public String toHtml ( ) { } private boolean containsMoreThanOneKey ( ) { } public String toString ( ) { } public static void setTagParser ( TagParser tagParser ) { } public boolean breaksFlow ( ) { } public void collectInto ( NodeList collectionList , String filter ) { <START_BUG> if ( ( ( thisScanner ) != null ) && ( ( thisScanner . getFilter ( ) ) == filter ) ) <END_BUG> collectionList . add ( this ) ; } public Hashtable getParsed ( ) { } public Hashtable redoParseAttributes ( ) { } public void accept ( NodeVisitor visitor ) { } public String getType ( ) { } public boolean isEmptyXmlTag ( ) { } public void setEmptyXmlTag ( boolean emptyXmlTag ) { } }

Fix:
if ( ( ( thisScanner ) != null ) && ( thisScanner . getFilter ( ) . equals ( filter ) ) )
Buggy code:
public abstract class DefaultMailboxImporter { public static int TYPE_FILE = 0 ; public static int TYPE_DIRECTORY = 1 ; protected Folder destinationFolder ; protected File [ ] sourceFiles ; protected int counter ; public DefaultMailboxImporter ( Folder destinationFolder , File [ ] sourceFiles ) { } public void init ( ) { } public int getType ( ) { } public abstract void importMailboxFile ( File file , WorkerStatusController worker , Folder destFolder ) throws Exception { } public String getDescription ( ) { } public void setSourceFiles ( File [ ] files ) { } public void setDestinationFolder ( Folder folder ) { } public int getCount ( ) { } public void run ( WorkerStatusController worker ) { } public void importMailbox ( WorkerStatusController worker ) { } protected void saveMessage ( String rawString , WorkerStatusController worker , Folder destFolder ) throws Exception { <START_BUG> destFolder . addMessage ( rawString , worker ) ; <END_BUG> ( counter ) ++ ; worker . setDisplayText ( ( "Importing<seq2seq4repair_space>messages:<seq2seq4repair_space>" + ( getCount ( ) ) ) ) ; } public Folder getDestinationFolder ( ) { } public File [ ] getSourceFiles ( ) { } }

Fix:
destFolder . addMessage ( rawString ) ;
Buggy code:
public class DeploymentAddHandlerTestCase { @ Ignore ( "TODO:<seq2seq4repair_space>JBAS-9020:<seq2seq4repair_space>Archive<seq2seq4repair_space>deployments<seq2seq4repair_space>are<seq2seq4repair_space>not<seq2seq4repair_space>yet<seq2seq4repair_space>implemented" ) @ Test public void testContent ( ) throws OperationFailedException { final DeploymentAddHandler handler = DeploymentAddHandler . create ( contentRepository , null ) ; final OperationContext context = Mockito . mock ( OperationContext . class ) ; Mockito . when ( context . getResult ( ) ) . thenReturn ( new ModelNode ( ) ) ; Mockito . when ( context . readModelForUpdate ( EMPTY_ADDRESS ) ) . thenReturn ( new ModelNode ( ) ) ; Mockito . when ( context . getProcessType ( ) ) . thenReturn ( STANDALONE_SERVER ) ; Mockito . when ( context . getRunningMode ( ) ) . thenReturn ( NORMAL ) ; Mockito . when ( context . isNormalServer ( ) ) . thenReturn ( true ) ; final ModelNode operation = new ModelNode ( ) ; operation . get ( "address" ) . get ( 0 ) . setExpression ( "deployment" , "test.war" ) ; operation . get ( "content" ) . get ( 0 ) . get ( "archive" ) . set ( true ) ; operation . get ( "content" ) . get ( 0 ) . get ( "path" ) . set ( "test.war" ) ; handler . execute ( context , operation ) ; Mockito . verify ( context ) . addStep ( Mockito . any ( OperationStepHandler . class ) , RUNTIME ) ; <START_BUG> Mockito . verify ( context ) . completeStep ( ) ; <END_BUG> } @ Test ( expected = OperationFailedException . class ) public void testTooMuchContent ( ) throws OperationFailedException { } @ Test public void testValidator ( ) throws OperationFailedException { } private ContentRepository contentRepository = new ContentRepository ( ) { @ Override public void removeContent ( byte [ ] hash ) { } @ Override public boolean syncContent ( byte [ ] hash ) { } @ Override public boolean hasContent ( byte [ ] hash ) { } @ Override public VirtualFile getContent ( byte [ ] hash ) { } @ Override public byte [ ] addContent ( InputStream stream ) throws IOException { } } ; }

Fix:
Mockito . verify ( context ) . stepCompleted ( ) ;
Buggy code:
public class LocalPatchGarbageCollectionHandler implements OperationStepHandler { public static final LocalPatchGarbageCollectionHandler INSTANCE = new LocalPatchGarbageCollectionHandler ( ) ; private final String PATCH_ID = PatchResourceDefinition . PATCH_ID . getName ( ) ; @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final String patchId = operation . require ( PATCH_ID ) . asString ( ) ; context . acquireControllerLock ( ) ; final ServiceController < ? > mgrService = context . getServiceRegistry ( false ) . getRequiredService ( NAME ) ; final InstallationManager mgr = ( ( InstallationManager ) ( mgrService . getValue ( ) ) ) ; final PatchableTarget . TargetInfo info ; try { info = mgr . getIdentity ( ) . loadTargetInfo ( ) ; } catch ( IOException e ) { throw new OperationFailedException ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>identity<seq2seq4repair_space>info" , e ) ; } <START_BUG> if ( info . getReleasePatchID ( ) . equals ( patchId ) ) { <END_BUG> throw MESSAGES . patchActive ( patchId ) ; } if ( info . getPatchIDs ( ) . contains ( patchId ) ) { throw MESSAGES . patchActive ( patchId ) ; } final InstalledImage installedImage = info . getDirectoryStructure ( ) . getInstalledImage ( ) ; final File history = installedImage . getPatchHistoryDir ( patchId ) ; if ( history . exists ( ) ) { LocalPatchGarbageCollectionHandler . recursiveDelete ( history ) ; } final File patchRoot = installedImage . getPatchHistoryDir ( patchId ) ; if ( patchRoot . exists ( ) ) { LocalPatchGarbageCollectionHandler . recursiveDelete ( patchRoot ) ; } context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; } static boolean recursiveDelete ( File root ) { } }

Fix:
if ( info . getCumulativePatchID ( ) . equals ( patchId ) ) {
Buggy code:
public class TransactionController extends GenericController implements Serializable , Controller , SampleListener { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private transient TransactionSampler transactionSampler ; private transient ListenerNotifier lnf ; private transient SampleResult res ; private transient int calls ; private transient int noFailingSamples ; private static final String PARENT = "TransactionController.parent" ; public TransactionController ( ) { } private Object readResolve ( ) { } public void setParent ( boolean _parent ) { } public boolean isParent ( ) { } public Sampler next ( ) { } private Sampler next1 ( ) { } protected Sampler nextIsAController ( Controller controller ) throws NextIsNullException { } private Sampler next2 ( ) { if ( isFirst ( ) ) { calls = 0 ; noFailingSamples = 0 ; res = new SampleResult ( ) ; res . setSampleLabel ( getName ( ) ) ; res . setSuccessful ( true ) ; res . sampleStart ( ) ; } Sampler returnValue = super . next ( ) ; if ( returnValue == null ) { if ( ( res ) != null ) { res . sampleEnd ( ) ; res . setResponseMessage ( ( ( ( "Number<seq2seq4repair_space>of<seq2seq4repair_space>samples<seq2seq4repair_space>in<seq2seq4repair_space>transaction<seq2seq4repair_space>:<seq2seq4repair_space>" + ( calls ) ) + ",<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>failing<seq2seq4repair_space>samples<seq2seq4repair_space>:<seq2seq4repair_space>" ) + ( noFailingSamples ) ) ) ; if ( res . isSuccessful ( ) ) { res . setResponseCodeOK ( ) ; } JMeterContext threadContext = getThreadContext ( ) ; JMeterVariables threadVars = threadContext . getVariables ( ) ; SamplePackage pack = ( ( SamplePackage ) ( threadVars . getObject ( PACKAGE_OBJECT ) ) ) ; if ( pack == null ) { TransactionController . log . warn ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>fetch<seq2seq4repair_space>SamplePackage" ) ; } else { <START_BUG> SampleEvent event = new SampleEvent ( res , threadContext . getThreadGroup ( ) . getName ( ) ) ; <END_BUG> res = null ; lnf . notifyListeners ( event , pack . getSampleListeners ( ) ) ; } } } else { ( calls ) ++ ; } return returnValue ; } public void sampleOccurred ( SampleEvent se ) { } public void sampleStarted ( SampleEvent e ) { } public void sampleStopped ( SampleEvent e ) { } }

Fix:
SampleEvent event = new SampleEvent ( res , threadContext . getThreadGroup ( ) . getName ( ) , threadVars ) ;
Buggy code:
public class NodeCmd { private static final String HOST_OPT_LONG = "host" ; private static final String HOST_OPT_SHORT = "h" ; private static final String PORT_OPT_LONG = "port" ; private static final String PORT_OPT_SHORT = "p" ; private static final int defaultPort = 8080 ; private static Options options = null ; private NodeProbe probe ; public NodeCmd ( NodeProbe probe ) { } private static void printUsage ( ) { HelpFormatter hf = new HelpFormatter ( ) ; <START_BUG> String header = String . format ( ( "%nAvailable<seq2seq4repair_space>commands:<seq2seq4repair_space>ring,<seq2seq4repair_space>info,<seq2seq4repair_space>cleanup,<seq2seq4repair_space>compact,<seq2seq4repair_space>cfstats,<seq2seq4repair_space>snapshot<seq2seq4repair_space>[snapshotname],<seq2seq4repair_space>clearsnapshot,<seq2seq4repair_space>" + ( ( ( "tpstats,<seq2seq4repair_space>flush,<seq2seq4repair_space>drain,<seq2seq4repair_space>repair,<seq2seq4repair_space>decommission,<seq2seq4repair_space>move,<seq2seq4repair_space>loadbalance,<seq2seq4repair_space>removetoken,<seq2seq4repair_space>" + "setcachecapacity<seq2seq4repair_space><keyspace><seq2seq4repair_space><cfname><seq2seq4repair_space><keycachecapacity><seq2seq4repair_space><rowcachecapacity>,<seq2seq4repair_space>" ) + "getcompactionthreshold,<seq2seq4repair_space>setcompactionthreshold<seq2seq4repair_space>[minthreshold]<seq2seq4repair_space>([maxthreshold])" ) + "streams<seq2seq4repair_space>[host]" ) ) ) ; <END_BUG> String usage = String . format ( "java<seq2seq4repair_space>%s<seq2seq4repair_space>--host<seq2seq4repair_space><arg><seq2seq4repair_space><command>%n" , NodeCmd . class . getName ( ) ) ; hf . printHelp ( usage , "" , NodeCmd . options , header ) ; } public void printRing ( PrintStream outs ) { } public void printThreadPoolStats ( PrintStream outs ) { } public void printInfo ( PrintStream outs ) { } public void printStreamInfo ( final InetAddress addr , PrintStream outs ) { } public void printColumnFamilyStats ( PrintStream outs ) { } public static void main ( String [ ] args ) throws IOException , InterruptedException , ParseException { } }

Fix:
String header = String . format ( ( "%nAvailable<seq2seq4repair_space>commands:<seq2seq4repair_space>ring,<seq2seq4repair_space>info,<seq2seq4repair_space>cleanup,<seq2seq4repair_space>compact,<seq2seq4repair_space>cfstats,<seq2seq4repair_space>snapshot<seq2seq4repair_space>[snapshotname],<seq2seq4repair_space>clearsnapshot,<seq2seq4repair_space>" + ( ( ( "tpstats,<seq2seq4repair_space>flush,<seq2seq4repair_space>drain,<seq2seq4repair_space>repair,<seq2seq4repair_space>decommission,<seq2seq4repair_space>move,<seq2seq4repair_space>loadbalance,<seq2seq4repair_space>removetoken,<seq2seq4repair_space>" + "setcachecapacity<seq2seq4repair_space><keyspace><seq2seq4repair_space><cfname><seq2seq4repair_space><keycachecapacity><seq2seq4repair_space><rowcachecapacity>,<seq2seq4repair_space>" ) + "getcompactionthreshold,<seq2seq4repair_space>setcompactionthreshold<seq2seq4repair_space>[minthreshold]<seq2seq4repair_space>([maxthreshold]),<seq2seq4repair_space>" ) + "streams<seq2seq4repair_space>[host]" ) ) ) ;
Buggy code:
public class JUnitTestSuite { @ Test public void TestHubert ( ) { GameEngine ge = new GameEngine ( 4 ) ; ge . DetermineFirstPlayer ( ) ; int CurrentPlayerIndex = ge . GetCurrentPlayer ( ) ; GreenCards Hubert = new GreenCards ( "Hubert" , 1 , true , CardType . GreenCards ) ; List < String > ListVerb = new Vector < String > ( ) ; ListVerb . add ( "give" ) ; List < String > ListSymbol = new Vector < String > ( ) ; ListSymbol . add ( "s" ) ; ListSymbol . add ( "m" ) ; List < String > ListObject = new Vector < String > ( ) ; ListObject . add ( "3$<seq2seq4repair_space>to<seq2seq4repair_space>another<seq2seq4repair_space>player<seq2seq4repair_space>of<seq2seq4repair_space>choice" ) ; <START_BUG> Action a = new Action ( 1 , ListVerb , ListObject , null , "and" , false ) ; <END_BUG> Hubert . AddAction ( a ) ; Hubert . AddSymbols ( "s" ) ; Hubert . AddSymbols ( "m" ) ; ge . ListPlayer . get ( CurrentPlayerIndex ) . PlayerCards . add ( Hubert ) ; boolean Success = ge . PlayCard ( CurrentPlayerIndex , 0 ) ; } @ Test public void TestGamePlayerBoundary ( ) { } @ Test public void TestGreenCardCreation ( ) { } }

Fix:
Action a = new Action ( 1 , ListVerb , ListObject , null , null , "and" , false ) ;
Buggy code:
public class FloatDatatypeValidator extends AbstractDatatypeValidator { private Locale fLocale = null ; private DatatypeValidator fBaseValidator = null ; private float [ ] fEnumFloats = null ; private String fPattern = null ; private boolean fDerivedByList = false ; private float fMaxInclusive = Float . MAX_VALUE ; private float fMaxExclusive = Float . MAX_VALUE ; private float fMinInclusive = Float . MIN_VALUE ; private float fMinExclusive = Float . MIN_VALUE ; private int fFacetsDefined = 0 ; private boolean isMaxExclusiveDefined = false ; private boolean isMaxInclusiveDefined = false ; private boolean isMinExclusiveDefined = false ; private boolean isMinInclusiveDefined = false ; private DatatypeMessageProvider fMessageProvider = new DatatypeMessageProvider ( ) ; private RegularExpression fRegex = null ; public FloatDatatypeValidator ( ) throws InvalidDatatypeFacetException { } public FloatDatatypeValidator ( DatatypeValidator base , Hashtable facets , boolean derivedByList ) throws InvalidDatatypeFacetException { } public Object validate ( String content , Object state ) throws InvalidDatatypeValueException { } private void boundsCheck ( float f ) throws InvalidDatatypeValueException { boolean inUpperBound = false ; boolean inLowerBound = false ; if ( isMaxInclusiveDefined ) { inUpperBound = f <= ( fMaxInclusive ) ; } else if ( isMaxExclusiveDefined ) { inUpperBound = f < ( fMaxExclusive ) ; } if ( isMinInclusiveDefined ) { inLowerBound = f >= ( fMinInclusive ) ; } else if ( isMinExclusiveDefined ) { inLowerBound = f > ( fMinExclusive ) ; } if ( ( inUpperBound == false ) || ( inLowerBound == false ) ) { <START_BUG> getErrorString ( OutOfBounds , MSG_NONE , new Object [ ] { new Float ( f ) } ) ; <END_BUG> } } private void enumCheck ( float v ) throws InvalidDatatypeValueException { } public void setLocale ( Locale locale ) { } public int compare ( String content1 , String content2 ) { } public Hashtable getFacets ( ) { } public Object clone ( ) throws CloneNotSupportedException { } private String getErrorString ( int major , int minor , Object [ ] args ) { } private void setBasetype ( DatatypeValidator base ) { } private void checkContent ( String content ) throws InvalidDatatypeValueException { } }

Fix:
getErrorString ( OutOfBounds , MSG_NONE , new Object [ ] { new Float ( f ) , "" , "" , "" , "" } ) ;
Buggy code:
public class DE { private ObjectiveFunction function ; private int dimension ; private double [ ] lowerLimit ; private double [ ] upperLimit ; private int populationSize ; private double [ ] [ ] population ; private int iterations ; private double crossoverProbability ; private double weight ; private double [ ] bestCandidate ; private double bestScore = Double . POSITIVE_INFINITY ; private double [ ] scores ; private boolean logging = true ; private String iterationLogFormat ; private long timeStarted ; private long timeFinished ; public DE ( ObjectiveFunction function , double [ ] lowerLimit , double [ ] upperLimit , int iterations , int populationSize , double crossoverProbability , double weight , boolean logging ) { } private void initialize ( ) { } private void initializePopulation ( ) { } public void log ( int iteration ) { } private void generatePopulation ( ) { } public void run ( ) { } public double [ ] getBestCandidate ( ) { } public void diagnose ( ) { } private static String candidateToString ( double [ ] candidate ) { } private static int minIndex ( double [ ] array ) { int index = - 1 ; double min = Double . POSITIVE_INFINITY ; for ( int i = 0 ; i < ( array . length ) ; i ++ ) { <START_BUG> if ( ( array [ i ] ) < min ) { <END_BUG> min = array [ i ] ; index = i ; } } return index ; } No newline ; at end ; of file ; }

Fix:
if ( ( array [ i ] ) <= min ) {
Buggy code:
public class AnnouncementController { @ Inject private AnnouncementDAO announcementDAO ; @ Inject private AnnouncementUserGroupDAO announcementUserGroupDAO ; @ Inject private UserGroupEntityController userGroupEntityController ; public Announcement create ( UserEntity publisher , String caption , String content , Date startDate , Date endDate , boolean publiclyVisible ) { } public Announcement update ( Announcement announcement , String caption , String content , Date startDate , Date endDate ) { } public List < Announcement > listUnarchived ( ) { } public List < Announcement > listAll ( ) { } public List < Announcement > listActive ( ) { } public Announcement findById ( Long id ) { } public void archive ( Announcement announcement ) { } public void addAnnouncementTargetGroup ( Announcement announcement , UserGroupEntity userGroupEntity ) { } public List < Announcement > listActiveByUserGroupEntities ( List < UserGroupEntity > userGroupEntities ) { } public List < Announcement > listActiveByTargetedUserEntity ( UserEntity targetedUserEntity ) { <START_BUG> List < UserGroupEntity > userGroupEntities = userGroupEntityController . listUserGroupsByUser ( targetedUserEntity ) ; <END_BUG> return listActiveByUserGroupEntities ( userGroupEntities ) ; } }

Fix:
List < UserGroupEntity > userGroupEntities = userGroupEntityController . listUserGroupsByUserEntity ( targetedUserEntity ) ;
Buggy code:
@ SuppressWarnings ( "unused" ) public class DnsClient { @ Property public static List < InetSocketAddress > DNS_SERVER_LIST = Arrays . asList ( new InetSocketAddress ( "8.8.8.8" , 53 ) , new InetSocketAddress ( "8.8.4.4" , 53 ) , new InetSocketAddress ( "208.67.222.222" , 53 ) , new InetSocketAddress ( "208.67.220.220" , 53 ) , new InetSocketAddress ( "37.235.1.174" , 53 ) , new InetSocketAddress ( "37.235.1.177" , 53 ) ) ; private static final String ptrSuffix = ".in-addr.arpa" ; public static String getVersion ( ) { <START_BUG> return "1.6" ; <END_BUG> } public static String getPublicIp ( ) { } private final Logger logger = org . slf4j . LoggerFactory . getLogger ( getClass ( ) ) ; private final DnsNameResolver resolver ; private final Map < DnsRecordType , RecordDecoder < ? > > customDecoders = new HashMap < DnsRecordType , RecordDecoder < ? > > ( ) ; private ThreadGroup threadGroup ; public static final String THREAD_NAME = "DnsClient" ; private EventLoopGroup eventLoopGroup ; public DnsClient ( final String nameServerAddresses ) { } public DnsClient ( final InetSocketAddress nameServerAddresses ) { } public DnsClient ( Collection < InetSocketAddress > nameServerAddresses ) { } public DnsClient ( Collection < InetSocketAddress > nameServerAddresses , int minTtl , int maxTtl ) { } public String resolve ( String hostname ) { } @ SuppressWarnings ( "unchecked" ) private < T > T resolve ( String hostname , DnsRecordType type ) { } public void reset ( ) { } public void stop ( ) { } private void stopInThread ( ) { } public ServiceRecord resolveSRV ( final String hostname ) { } public MailExchangerRecord resolveMX ( final String hostname ) { } public String resolveCNAME ( final String hostname ) { } public String resolveNS ( final String hostname ) { } public String resolvePTR ( String hostname ) { } public String resolveA ( final String hostname ) { } public String resolveAAAA ( final String hostname ) { } public StartOfAuthorityRecord resolveSOA ( final String hostname ) { } public List < String > resolveTXT ( final String hostname ) { } }

Fix:
return "1.8" ;
Buggy code:
public class FunctionHelper extends JDialog implements ActionListener , ChangeListener { private JLabeledChoice functionList ; private ArgumentsPanel parameterPanel ; private JLabeledTextField cutPasteFunction ; private final Map < String , Class < ? > > functionMap = new HashMap < String , Class < ? > > ( ) ; private JButton generateButton ; public FunctionHelper ( ) { } private void init ( ) { } private void initializeFunctionList ( ) { } public void stateChanged ( ChangeEvent event ) { } public void actionPerformed ( ActionEvent e ) { <START_BUG> StringBuffer functionCall = new StringBuffer ( "${" ) ; <END_BUG> functionCall . append ( functionList . getText ( ) ) ; Arguments args = ( ( Arguments ) ( parameterPanel . createTestElement ( ) ) ) ; if ( ( args . getArguments ( ) . size ( ) ) > 0 ) { functionCall . append ( "(" ) ; PropertyIterator iter = args . iterator ( ) ; boolean first = true ; while ( iter . hasNext ( ) ) { Argument arg = ( ( Argument ) ( iter . next ( ) . getObjectValue ( ) ) ) ; if ( ! first ) { functionCall . append ( "," ) ; } functionCall . append ( arg . getValue ( ) ) ; first = false ; } functionCall . append ( ")" ) ; } functionCall . append ( "}" ) ; cutPasteFunction . setText ( functionCall . toString ( ) ) ; } private class HelpListener implements ActionListener { public void actionPerformed ( ActionEvent e ) { String [ ] source = new String [ ] { Help . HELP_FUNCTIONS , functionList . getText ( ) } ; ActionEvent helpEvent = new ActionEvent ( source , e . getID ( ) , "help" ) ; org . apache . jmeter . gui . action . ActionRouter . getInstance ( ) . actionPerformed ( helpEvent ) ; } } }

Fix:
StringBuilder functionCall = new StringBuilder ( "${" ) ;
Buggy code:
public class PositionalConstraintChecker { public static TreeMap < Integer , String > ConstraintChecker ( TreeMap < Integer , String > wordList , String constraint ) { char letter ; int position ; boolean failed ; String [ ] words ; TreeMap < Integer , String > validWords = new TreeMap < Integer , String > ( ) ; for ( Map . Entry < Integer , String > entry : wordList . entrySet ( ) ) { words = entry . getValue ( ) . split ( "\\s+" ) ; for ( String word : words ) { failed = false ; for ( int j = 0 ; j < ( constraint . length ( ) ) ; j += 2 ) { letter = constraint . charAt ( j ) ; position = ( constraint . charAt ( ( j + 1 ) ) ) - '1' ; <START_BUG> if ( ( position > ( word . length ( ) ) ) || ( letter != ( word . charAt ( position ) ) ) ) { <END_BUG> failed = true ; break ; } } if ( ! failed ) { String wordOfSameScore = validWords . get ( entry . getKey ( ) ) ; if ( wordOfSameScore == null ) { wordOfSameScore = word ; } else { wordOfSameScore = ( wordOfSameScore + "<seq2seq4repair_space>" ) + word ; } validWords . put ( entry . getKey ( ) , wordOfSameScore ) ; } } } return validWords ; } No newline ; at end ; of file ; }

Fix:
if ( ( position > ( ( word . length ( ) ) - 1 ) ) || ( letter != ( word . charAt ( position ) ) ) ) {
Buggy code:
public class QuotedPrintableCodec implements BinaryDecoder , BinaryEncoder , StringDecoder , StringEncoder { private final String charset ; private static final BitSet PRINTABLE_CHARS = new BitSet ( 256 ) ; private static final byte ESCAPE_CHAR = '=' ; private static final byte TAB = 9 ; private static final byte SPACE = 32 ; public QuotedPrintableCodec ( ) { } public QuotedPrintableCodec ( String charset ) { } private static final void encodeQuotedPrintable ( int b , ByteArrayOutputStream buffer ) { } public static final byte [ ] encodeQuotedPrintable ( BitSet printable , byte [ ] bytes ) { } public static final byte [ ] decodeQuotedPrintable ( byte [ ] bytes ) throws DecoderException { } public byte [ ] encode ( byte [ ] bytes ) { } public byte [ ] decode ( byte [ ] bytes ) throws DecoderException { } public String encode ( String pString ) throws EncoderException { if ( pString == null ) { return null ; } try { return encode ( pString , getDefaultCharset ( ) ) ; } catch ( UnsupportedEncodingException e ) { <START_BUG> throw new EncoderException ( e . getMessage ( ) ) ; <END_BUG> } } public String decode ( String pString , String charset ) throws UnsupportedEncodingException , DecoderException { } public String decode ( String pString ) throws DecoderException { } public Object encode ( Object pObject ) throws EncoderException { } public Object decode ( Object pObject ) throws DecoderException { } public String getDefaultCharset ( ) { } public String encode ( String pString , String charset ) throws UnsupportedEncodingException { } }

Fix:
throw new EncoderException ( e . getMessage ( ) , e ) ;
Buggy code:
@ SuppressWarnings ( "serial" ) public class AddSemesterAction extends RefreshAction { public AddSemesterAction ( IShell shell , KeyChain authClient ) { } @ Override protected void asyncActionPerformed ( ActionEvent e ) { Schedule sched = ( ( Schedule ) ( shell . getModel ( ) ) ) ; String current = new edu . gemini . spModel . core . Semester ( sched . getSite ( ) , new Date ( sched . getStart ( ) ) ) . toString ( ) ; String message = ( "Select<seq2seq4repair_space>an<seq2seq4repair_space>additional<seq2seq4repair_space>semester<seq2seq4repair_space>to<seq2seq4repair_space>add.\n" + current ) + "<seq2seq4repair_space>and<seq2seq4repair_space>valid<seq2seq4repair_space>rollovers<seq2seq4repair_space>are<seq2seq4repair_space>automatic." ; SortedSet < String > set = new TreeSet < String > ( Collections . < Object > reverseOrder ( ) ) ; set . addAll ( sched . getMiniModel ( ) . getAllSemesters ( ) ) ; set . removeAll ( sched . getExtraSemesters ( ) ) ; set . remove ( current ) ; if ( set . isEmpty ( ) ) { JOptionPane . showMessageDialog ( shell . getPeer ( ) , "There<seq2seq4repair_space>are<seq2seq4repair_space>no<seq2seq4repair_space>more<seq2seq4repair_space>semesters<seq2seq4repair_space>available." ) ; return ; } Object [ ] options = set . toArray ( ) ; String extra = ( ( String ) ( JOptionPane . showInputDialog ( shell . getPeer ( ) , message , "Add<seq2seq4repair_space>Semester" , JOptionPane . OK_CANCEL_OPTION , ADD_SEMESTER , options , options [ 0 ] ) ) ) ; if ( extra != null ) { <START_BUG> sched . addExtraSemseter ( extra ) ; <END_BUG> super . asyncActionPerformed ( e ) ; } } }

Fix:
sched . addExtraSemester ( extra ) ;
Buggy code:
public class TestBean { private Double x = Double . valueOf ( 1.0 ) ; private String y = "1.0" ; public Double getX ( ) { } public String getY ( ) { } public void setX ( Double double1 ) { } public void setY ( String string ) { } public Double getZ ( ) { <START_BUG> throw new MathRuntimeException ( ) ; <END_BUG> } public void setZ ( Double double1 ) { } }

Fix:
throw new MathRuntimeException ( "?" , null ) ;
Buggy code:
public class Flou { private ArrayList < ImagePlus > m_Stack ; public Flou ( File [ ] files ) { } public Flou ( File [ ] files , String backgroud ) { } public void LoadImage ( File [ ] files ) { } public ImagePlus GetImage ( int arg ) { } public ArrayList < ImagePlus > GetImagesList ( ) { } public double [ ] GetX ( ) { } public double [ ] GetMean ( ) { } public double [ ] GetArea ( ) { } public double [ ] GetMax ( ) { } public double [ ] GetMin ( ) { } public ImagePlus GetImageSum ( ) { ImageCalculator ic = new ImageCalculator ( ) ; ImagePlus imp3 = m_Stack . get ( 0 ) ; for ( int i = 1 ; i < ( m_Stack . size ( ) ) ; i ++ ) { <START_BUG> imp3 = ic . run ( "Subtract<seq2seq4repair_space>create" , m_Stack . get ( 0 ) , imp3 ) ; <END_BUG> } return imp3 ; } }

Fix:
imp3 = ic . run ( "Subtract<seq2seq4repair_space>create" , m_Stack . get ( i ) , imp3 ) ;
Buggy code:
public class AddContactCardAction extends FrameAction { public AddContactCardAction ( AbstractFrameController frameController ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> AddressbookFrameController addressbookFrameController = ( ( AddressbookFrameController ) ( frameController ) ) ; <END_BUG> ContactDialog dialog = new ContactDialog ( addressbookFrameController . getView ( ) ) ; dialog . setVisible ( true ) ; if ( dialog . getResult ( ) ) { System . out . println ( "saving<seq2seq4repair_space>contact" ) ; ContactCard card = new ContactCard ( ) ; dialog . updateComponents ( card , false ) ; Folder folder = addressbookFrameController . getTree ( ) . getView ( ) . getSelectedFolder ( ) ; folder . add ( card ) ; addressbookFrameController . getTable ( ) . getView ( ) . setFolder ( folder ) ; } } }

Fix:
AddressbookFrameController addressbookFrameController = ( ( AddressbookFrameController ) ( frameMediator ) ) ;
Buggy code:
public class NestedTypeBinding extends SourceTypeBinding { public SourceTypeBinding enclosingType ; public SyntheticArgumentBinding [ ] enclosingInstances ; public SyntheticArgumentBinding [ ] outerLocalVariables ; public int enclosingInstancesSlotSize ; public int outerLocalVariablesSlotSize ; public NestedTypeBinding ( char [ ] [ ] typeName , ClassScope scope , SourceTypeBinding enclosingType ) { } public SyntheticArgumentBinding addSyntheticArgument ( LocalVariableBinding actualOuterLocalVariable ) { } public SyntheticArgumentBinding addSyntheticArgument ( ReferenceBinding enclosingType ) { } public SyntheticArgumentBinding addSyntheticArgumentAndField ( LocalVariableBinding actualOuterLocalVariable ) { } public SyntheticArgumentBinding addSyntheticArgumentAndField ( ReferenceBinding enclosingType ) { } public final void computeSyntheticArgumentSlotSizes ( ) { } public ReferenceBinding enclosingType ( ) { } public SyntheticArgumentBinding getSyntheticArgument ( LocalVariableBinding actualOuterLocalVariable ) { } public SyntheticArgumentBinding [ ] syntheticEnclosingInstances ( ) { } public ReferenceBinding [ ] syntheticEnclosingInstanceTypes ( ) { } public SyntheticArgumentBinding [ ] syntheticOuterLocalVariables ( ) { } public void updateInnerEmulationDependents ( ) { } <START_BUG> public SyntheticArgumentBinding getSyntheticArgument ( ReferenceBinding targetEnclosingType , BlockScope scope , boolean onlyExactMatch ) { <END_BUG> if ( ( enclosingInstances ) == null ) return null ; for ( int i = enclosingInstances . length ; ( -- i ) >= 0 ; ) if ( ( enclosingInstances [ i ] . type ) == targetEnclosingType ) if ( ( enclosingInstances [ i ] . actualOuterLocalVariable ) == null ) return enclosingInstances [ i ] ; if ( ! onlyExactMatch ) { for ( int i = enclosingInstances . length ; ( -- i ) >= 0 ; ) if ( ( enclosingInstances [ i ] . actualOuterLocalVariable ) == null ) if ( targetEnclosingType . isSuperclassOf ( ( ( ReferenceBinding ) ( enclosingInstances [ i ] . type ) ) ) ) return enclosingInstances [ i ] ; } return null ; } }

Fix:
public SyntheticArgumentBinding getSyntheticArgument ( ReferenceBinding targetEnclosingType , boolean onlyExactMatch ) {
Buggy code:
public class Vibration extends CordovaPlugin { String macAdd = "AC:3F:A4:1C:2A:90" ; private Connection printerConnection ; private ZebraPrinter printer ; private final String numeroDeAtencionAlCliente = "01<seq2seq4repair_space>(452)<seq2seq4repair_space>523<seq2seq4repair_space>4135" ; String [ ] [ ] p ; private String direction = "Paraguay<seq2seq4repair_space>#1736" ; private String colonia = "Los<seq2seq4repair_space>Angeles." ; private String ciudad = "Uruapan,<seq2seq4repair_space>Mich." ; private String id = "999757908007" ; private String cliente = "TIENDA<seq2seq4repair_space>MERZA<seq2seq4repair_space>CENTRO" ; private String atiende = "MARTIN<seq2seq4repair_space>NAVARRO" ; private Calendar today ; public Vibration ( ) { } public boolean execute ( String action , JSONArray args , CallbackContext callbackContext ) throws JSONException { if ( action . equals ( "vibrate" ) ) { this . vibrate ( args . getLong ( 0 ) ) ; } else if ( action . equals ( "vibrateWithPattern" ) ) { JSONArray pattern = args . getJSONArray ( 0 ) ; int repeat = args . getInt ( 1 ) ; long [ ] patternArray = new long [ ( pattern . length ( ) ) + 1 ] ; patternArray [ 0 ] = 0 ; for ( int i = 0 ; i < ( pattern . length ( ) ) ; i ++ ) { patternArray [ ( i + 1 ) ] = pattern . getLong ( i ) ; } this . vibrateWithPattern ( patternArray , repeat ) ; } else if ( action . equals ( "cancelVibration" ) ) { this . cancelVibration ( ) ; } else if ( action . equals ( "printTicket" ) ) { JSONObject client = new JSONObject ( args . getString ( 0 ) ) ; this . direction = client . getString ( "direction" ) ; this . colonia = client . getString ( "colonia" ) ; this . ciudad = client . getString ( "ciudad" ) ; this . id = client . getString ( "id" ) ; this . cliente = client . getString ( "cliente" ) ; this . atiende = client . getString ( "atiende" ) ; JSONArray productsArray = new JSONArray ( args . getString ( 1 ) ) ; p = new String [ productsArray . length ( ) ] [ 4 ] ; <START_BUG> for ( int i = 0 ; i < ( p . length ( ) ) ; i ++ ) { <END_BUG> JSONObject product = productsArray . getJSONObject ( i ) ; p [ i ] [ 0 ] = product . getString ( "art" ) ; p [ i ] [ 1 ] = product . getString ( "cant" ) ; p [ i ] [ 2 ] = product . getString ( "precio" ) ; p [ i ] [ 3 ] = product . getString ( "total" ) ; } cordova . getThreadPool ( ) . execute ( new Runnable ( ) { public void run ( ) { System . out . println ( "printTicket<seq2seq4repair_space>Test<seq2seq4repair_space>Run" ) ; android . os . Looper . prepare ( ) ; doConnectionTest ( ) ; android . os . Looper . loop ( ) ; android . os . Looper . myLooper ( ) . quit ( ) ; } } ) ; } else { return false ; } callbackContext . success ( ) ; return true ; } public void vibrate ( long time ) { } public void vibrateWithPattern ( long [ ] pattern , int repeat ) { } public void cancelVibration ( ) { } public ZebraPrinter connect ( ) { } public void disconnect ( ) { } private void doConnectionTest ( ) { } private void sendTestLabel ( ) { } private byte [ ] getConfigLabel ( String [ ] [ ] products ) { } public static void sleep ( int ms ) { } }

Fix:
for ( int i = 0 ; i < ( p . length ) ; i ++ ) {
Buggy code:
public class MyceliumPopulator extends SurfacePopulator { @ Override public void chanceBlock ( int x , int z , Block block ) { <START_BUG> if ( ( ( block . getBiome ( ) ) == ( Biome . MUSHROOM_ISLAND ) ) || ( ( block . getBiome ( ) ) == ( Biome . MUSHROOM_SHORE ) ) ) { <END_BUG> if ( ( block . getType ( ) ) == ( Material . GRASS ) ) { block . setType ( MYCEL ) ; } } } }

Fix:
if ( ( block . getBiome ( ) ) == ( Biome . MUSHROOM_ISLAND ) ) {
Buggy code:
public class RealTimeOutputBolt extends BaseBasicBolt { private static final long serialVersionUID = 1L ; private DBRealTimeOutputBoltHelper DBHelper = null ; @ Override public void execute ( Tuple input , BasicOutputCollector collector ) { } private void dealNormalDate ( Tuple input ) { String msisdn = input . getStringByField ( MSISDN . name ( ) ) ; Long recordTime = input . getLongByField ( RECORDTIME . name ( ) ) ; double realInfoFee = input . getDoubleByField ( REALINFORFEE . name ( ) ) ; String channelCode = input . getStringByField ( CHANNELCODE . name ( ) ) ; String provinceId = input . getStringByField ( PROVINCEID . name ( ) ) ; String contentId = input . getStringByField ( CONTENTID . name ( ) ) ; <START_BUG> String contentType = input . getStringByField ( ACCESSTYPE . name ( ) ) ; <END_BUG> DBHelper . updateData ( msisdn , recordTime , channelCode , provinceId , "0" , realInfoFee , contentId , contentType ) ; } private void dealAbnormalData ( Tuple input ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } }

Fix:
String contentType = input . getStringByField ( CONTENTTYPE . name ( ) ) ;
Buggy code:
public class StreamOut { private static Logger logger = LoggerFactory . getLogger ( StreamOut . class ) ; public static void transferRanges ( InetAddress target , String tableName , Collection < Range > ranges , Runnable callback , OperationType type ) { } private static Table flushSSTable ( String tableName ) throws IOException { } public static void transferRangesForRequest ( StreamOutSession session , Collection < Range > ranges , OperationType type ) { } public static void transferSSTables ( StreamOutSession session , Collection < SSTableReader > sstables , Collection < Range > ranges , OperationType type ) throws IOException { } private static List < PendingFile > createPendingFiles ( Collection < SSTableReader > sstables , Collection < Range > ranges , OperationType type ) { List < PendingFile > pending = new ArrayList < PendingFile > ( ) ; for ( SSTableReader sstable : sstables ) { Descriptor desc = sstable . descriptor ; List < Pair < Long , Long > > sections = sstable . getPositionsForRanges ( ranges ) ; if ( sections . isEmpty ( ) ) continue ; <START_BUG> pending . add ( new PendingFile ( sstable , desc , SSTable . COMPONENT_DATA , sections , type ) ) ; <END_BUG> } StreamOut . logger . info ( "Stream<seq2seq4repair_space>context<seq2seq4repair_space>metadata<seq2seq4repair_space>{},<seq2seq4repair_space>{}<seq2seq4repair_space>sstables." , pending , sstables . size ( ) ) ; return pending ; } }

Fix:
pending . add ( new PendingFile ( sstable , desc , SSTable . COMPONENT_DATA , sections , type , sstable . estimatedKeys ( ) ) ) ;