nus-yam/ex-repair huggingface dataset:
Buggy code:
public class QualifiedName extends Name { public static final ChildPropertyDescriptor QUALIFIER_PROPERTY = new ChildPropertyDescriptor ( QualifiedName . class , "qualifier" , Name . class , ASTNode . MANDATORY , ASTNode . CYCLE_RISK ) ; public static final ChildPropertyDescriptor NAME_PROPERTY = new ChildPropertyDescriptor ( QualifiedName . class , "name" , SimpleName . class , ASTNode . MANDATORY , ASTNode . NO_CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; public static List propertyDescriptors ( int apiLevel ) { } private Name qualifier = null ; private SimpleName name = null ; QualifiedName ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { QualifiedName result = new QualifiedName ( target ) ; <START_BUG> result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <END_BUG> result . setQualifier ( ( ( Name ) ( getQualifier ( ) . clone ( target ) ) ) ) ; result . setName ( ( ( SimpleName ) ( getName ( ) . clone ( target ) ) ) ) ; return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Name getQualifier ( ) { } public void setQualifier ( Name qualifier ) { } public SimpleName getName ( ) { } public void setName ( SimpleName name ) { } void appendName ( StringBuffer buffer ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ;
Buggy code:
public class PostWriter { protected static final String BOUNDARY = "---------------------------7d159c1302d0y0" ; private static final byte [ ] CRLF = new byte [ ] { 13 , 10 } ; protected static final String encoding = "iso-8859-1" ; public void sendPostData ( URLConnection connection , HTTPSampler sampler ) throws IOException { } public void setHeaders ( URLConnection connection , HTTPSampler sampler ) throws IOException { ( ( HttpURLConnection ) ( connection ) ) . setRequestMethod ( "POST" ) ; <START_BUG> String filename = sampler . getFileField ( ) ; <END_BUG> if ( ( filename != null ) && ( ( filename . trim ( ) . length ( ) ) > 0 ) ) { connection . setRequestProperty ( "Content-Type" , ( "multipart//form-data;<seq2seq4repair_space>boundary=" + ( PostWriter . BOUNDARY ) ) ) ; connection . setDoOutput ( true ) ; connection . setDoInput ( true ) ; } else { String postData = sampler . getQueryString ( ) ; connection . setRequestProperty ( "Content-Length" , ( "" + ( postData . length ( ) ) ) ) ; connection . setRequestProperty ( "Content-Type" , "application//x-www-form-urlencoded" ) ; connection . setDoOutput ( true ) ; } } private InputStream getFileStream ( String filename ) throws IOException { } private void writeFileToURL ( OutputStream out , String filename , String fieldname , InputStream in , String mimetype ) throws IOException { } private void writeFormMultipartStyle ( OutputStream out , String name , String value ) throws IOException { } private String encode ( String value ) { } private void writeln ( OutputStream out , String value ) throws IOException , UnsupportedEncodingException { } }

Fix:
String filename = sampler . getFilename ( ) ;
Buggy code:
public class TestMultipleSameTypedEmbeddedWithEagerRelations extends TestCase { private EntityManagerFactory emf ; public void setUp ( ) { <START_BUG> Map props = new HashMap ( ) ; <END_BUG> props . put ( "openjpa.MetaDataFactory" , ( ( ( ( "jpa(Types=" + ( EmbeddableWithRelation . class . getName ( ) ) ) + ";" ) + ( MultipleSameTypedEmbedded . class . getName ( ) ) ) + ")" ) ) ; emf = Persistence . createEntityManagerFactory ( "test" , props ) ; EmbeddableWithRelation embed1 = new EmbeddableWithRelation ( ) ; embed1 . setName ( "embed1" ) ; EmbeddableWithRelation embed2 = new EmbeddableWithRelation ( ) ; embed2 . setName ( "embed2" ) ; MultipleSameTypedEmbedded m1 = new MultipleSameTypedEmbedded ( ) ; m1 . setName ( "m1" ) ; m1 . setEmbed1 ( embed1 ) ; m1 . setEmbed2 ( embed2 ) ; MultipleSameTypedEmbedded m2 = new MultipleSameTypedEmbedded ( ) ; m2 . setName ( "m2" ) ; m2 . setEmbed1 ( embed2 ) ; m2 . setEmbed2 ( embed1 ) ; embed1 . setRel ( m1 ) ; embed2 . setRel ( m2 ) ; EntityManager em = emf . createEntityManager ( ) ; em . getTransaction ( ) . begin ( ) ; em . persist ( m1 ) ; em . persist ( m2 ) ; em . getTransaction ( ) . commit ( ) ; em . close ( ) ; } public void tearDown ( ) { } public void testQuery ( ) { } public static void main ( String [ ] args ) { } }

Fix:
Map props = new HashMap ( System . getProperties ( ) ) ;
Buggy code:
@ Component ( designateFactory = Concentrator . Config . class , immediate = true , provide = { AgentEndpoint . class , ObservableAgent . class , MatcherEndpoint . class } ) public class Concentrator extends BaseAgentEndpoint implements MatcherEndpoint { private final BidHistoryStore sentBids = new BidHistoryStore ( ) ; private final class MatcherPart extends BaseMatcherEndpoint { @ Override public void init ( String agentId ) { } @ Override protected void performUpdate ( AggregatedBid aggregatedBid ) { } } @ Meta . OCD public static interface Config { @ AD ( deflt = "concentrator" ) String agentId ( ) { } @ AD ( deflt = "auctioneer" ) String desiredParentId ( ) { } @ AD ( deflt = "1000" , description = "Mimimum<seq2seq4repair_space>time<seq2seq4repair_space>between<seq2seq4repair_space>two<seq2seq4repair_space>BidUpdates<seq2seq4repair_space>generated<seq2seq4repair_space>by<seq2seq4repair_space>the<seq2seq4repair_space>Concentratro<seq2seq4repair_space>in<seq2seq4repair_space>milliseconds" ) long minTimeBetweenBidUpdates ( ) { } } private final Concentrator . MatcherPart matcherPart = new Concentrator . MatcherPart ( ) ; protected Concentrator . Config config ; @ Activate public void activate ( final Map < String , ? > properties ) { } public void activate ( Concentrator . Config config ) { } @ Override public void setContext ( FlexiblePowerContext context ) { } @ Override @ Deactivate public void deactivate ( ) { } @ Override public void connectToMatcher ( Session session ) { } @ Override public void matcherEndpointDisconnected ( Session session ) { } @ Override public void handlePriceUpdate ( PriceUpdate priceUpdate ) { super . handlePriceUpdate ( priceUpdate ) ; try { SentBidInformation info = sentBids . retrieveAggregatedBid ( priceUpdate . getBidNumber ( ) ) ; Price price = transformPrice ( priceUpdate . getPrice ( ) , info ) ; matcherPart . publishPrice ( price , info . getOriginalBid ( ) ) ; } catch ( IllegalArgumentException ex ) { <START_BUG> LOGGER . warn ( "Received<seq2seq4repair_space>a<seq2seq4repair_space>price<seq2seq4repair_space>update<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>bid<seq2seq4repair_space>that<seq2seq4repair_space>I<seq2seq4repair_space>never<seq2seq4repair_space>sent,<seq2seq4repair_space>id:<seq2seq4repair_space>{}" , priceUpdate . getBidNumber ( ) ) ; <END_BUG> } } protected Bid transformBid ( Bid aggregatedBid ) { } protected Price transformPrice ( Price price , SentBidInformation info ) { } @ Override public void agentEndpointDisconnected ( Session session ) { } @ Override public void connectToAgent ( Session session ) { } @ Override public void handleBidUpdate ( Session session , BidUpdate bidUpdate ) { } @ Override public void addObserver ( AgentObserver observer ) { } @ Override public void removeObserver ( AgentObserver observer ) { } }

Fix:
LOGGER . warn ( ex . getMessage ( ) , ex ) ;
Buggy code:
public class Proxy extends Thread { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String NEW_LINE = "\n" ; private Socket clientSocket = null ; private ProxyControl target ; private boolean captureHttpHeaders ; private boolean httpsSpoof ; public Proxy ( ) { } Proxy ( Socket clientSocket , ProxyControl target ) { } void configure ( Socket _clientSocket , ProxyControl _target ) { } public void run ( ) { HttpRequestHdr request = new HttpRequestHdr ( ) ; SampleResult result = null ; HeaderManager headers = null ; HTTPSamplerBase sampler = null ; try { request . parse ( new BufferedInputStream ( clientSocket . getInputStream ( ) ) ) ; sampler = request . getSampler ( ) ; headers = request . getHeaderManager ( ) ; sampler . setHeaderManager ( headers ) ; if ( httpsSpoof ) { sampler . setProtocol ( "https" ) ; } result = sampler . sample ( ) ; <START_BUG> if ( ( httpsSpoof ) && ( ( result . getDataType ( ) ) == ( result . TEXT ) ) ) { <END_BUG> String noHttpsResult = new String ( result . getResponseData ( ) ) ; result . setResponseData ( noHttpsResult . replaceAll ( "https" , "http" ) . getBytes ( ) ) ; } writeToClient ( result , new BufferedOutputStream ( clientSocket . getOutputStream ( ) ) ) ; headers . removeHeaderNamed ( "cookie" ) ; } catch ( UnknownHostException uhe ) { Proxy . log . warn ( "Server<seq2seq4repair_space>Not<seq2seq4repair_space>Found." , uhe ) ; writeErrorToClient ( HttpReplyHdr . formServerNotFound ( ) ) ; } catch ( Exception e ) { Proxy . log . error ( "" , e ) ; writeErrorToClient ( HttpReplyHdr . formTimeout ( ) ) ; } finally { if ( sampler == null ) { sampler = HTTPSamplerFactory . newInstance ( ) ; } target . deliverSampler ( sampler , new TestElement [ ] { captureHttpHeaders ? headers : null } , result ) ; try { clientSocket . close ( ) ; } catch ( Exception e ) { Proxy . log . error ( "" , e ) ; } } } private void writeToClient ( SampleResult res , OutputStream out ) throws IOException { } private String massageResponseHeaders ( SampleResult res , String headers ) { } private void writeErrorToClient ( String message ) { } }

Fix:
if ( ( httpsSpoof ) && ( TEXT . equals ( result . getDataType ( ) ) ) ) {
Buggy code:
public abstract class PassivationStoreRemove extends AbstractRemoveStepHandler { private final PassivationStoreAdd add ; PassivationStoreRemove ( PassivationStoreAdd add ) { } @ Override protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { } @ Override protected void recoverServices ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { if ( context . isResourceServiceRestartAllowed ( ) ) { <START_BUG> this . add . installRuntimeServices ( context , model , null ) ; <END_BUG> } else { context . revertReloadRequired ( ) ; } } void removeRuntimeService ( OperationContext context , ModelNode operation ) { } }

Fix:
this . add . installRuntimeServices ( context , operation , model , null ) ;
Buggy code:
public class RemotingModelControllerClient extends AbstractModelControllerClient { private Endpoint endpoint ; private ManagementClientChannelStrategy strategy ; private boolean closed ; private final ModelControllerClientConfiguration clientConfiguration ; public RemotingModelControllerClient ( final ModelControllerClientConfiguration configuration ) { } @ Override public void close ( ) throws IOException { } protected synchronized Channel getChannel ( ) throws IOException { if ( closed ) { throw ControllerClientMessages . MESSAGES . objectIsClosed ( ModelControllerClient . class . getSimpleName ( ) ) ; } if ( ( strategy ) == null ) { try { final ProtocolChannelClient . Configuration configuration = ProtocolConfigurationFactory . create ( clientConfiguration ) ; endpoint = Remoting . createEndpoint ( "management-client" , EMPTY ) ; <START_BUG> endpoint . addConnectionProvider ( "remote" , new RemoteConnectionProviderFactory ( ) , OptionMap . create ( SSL_ENABLED , Boolean . FALSE ) ) ; <END_BUG> configuration . setEndpoint ( endpoint ) ; configuration . setEndpointName ( "management-client" ) ; final ProtocolChannelClient setup = ProtocolChannelClient . create ( configuration ) ; strategy = ManagementClientChannelStrategy . create ( setup , this , clientConfiguration . getCallbackHandler ( ) , clientConfiguration . getSaslOptions ( ) ) ; } catch ( IOException e ) { throw e ; } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } } return strategy . getChannel ( ) ; } }

Fix:
endpoint . addConnectionProvider ( "remote" , new RemoteConnectionProviderFactory ( ) , EMPTY ) ;
Buggy code:
public class TreeColumn extends Item { Tree parent ; boolean resizable ; boolean moveable ; public TreeColumn ( Tree parent , int style ) { } public TreeColumn ( Tree parent , int style , int index ) { } public void addControlListener ( ControlListener listener ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } public int getAlignment ( ) { } public boolean getMoveable ( ) { } String getNameText ( ) { } public Tree getParent ( ) { } public boolean getResizable ( ) { } public int getWidth ( ) { } public void pack ( ) { } void releaseChild ( ) { } void releaseWidget ( ) { } public void removeControlListener ( ControlListener listener ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setAlignment ( int alignment ) { } public void setImage ( Image image ) { } void setImage ( Image image , boolean sort , boolean right ) { } public void setMoveable ( boolean moveable ) { } public void setResizable ( boolean resizable ) { } void setSortDirection ( int direction ) { if ( ( OS . COMCTL32_MAJOR ) >= 6 ) { int hwndHeader = parent . hwndHeader ; if ( hwndHeader != 0 ) { int index = parent . indexOf ( this ) ; if ( index == ( - 1 ) ) return ; HDITEM hdItem = new HDITEM ( ) ; hdItem . mask = ( OS . HDI_FORMAT ) | ( OS . HDI_IMAGE ) ; OS . SendMessage ( hwndHeader , HDM_GETITEM , index , hdItem ) ; switch ( direction ) { case SWT . UP : hdItem . fmt &= ~ ( OS . HDF_IMAGE ) ; hdItem . fmt |= OS . HDF_SORTUP ; break ; case SWT . DOWN : hdItem . fmt &= ~ ( OS . HDF_IMAGE ) ; hdItem . fmt |= OS . HDF_SORTDOWN ; break ; case SWT . NONE : hdItem . fmt &= ~ ( ( OS . HDF_SORTUP ) | ( OS . HDF_SORTDOWN ) ) ; if ( ( image ) != null ) { hdItem . fmt |= OS . HDF_IMAGE ; <START_BUG> hdItem . iImage = parent . imageIndex ( image ) ; <END_BUG> } else { hdItem . fmt &= ~ ( OS . HDF_IMAGE ) ; } break ; } OS . SendMessage ( hwndHeader , HDM_SETITEM , index , hdItem ) ; } } else { switch ( direction ) { case SWT . UP : case SWT . DOWN : setImage ( display . getSortImage ( direction ) , true , true ) ; break ; case SWT . NONE : setImage ( image , false , false ) ; break ; } } } public void setText ( String string ) { } public void setWidth ( int width ) { } }

Fix:
hdItem . iImage = parent . imageIndex ( image , index ) ;
Buggy code:
public class ParallelCommandExecutorTask implements Runnable { private SSHConnection connection ; private SSHSession session ; private Server server ; private Command command ; private StringBuilder commandOutputBuffer ; private Future < ? > commandOutputLoggerTaskFuture ; private Logger logger = LogManager . getLogger ( ParallelCommandExecutorTask . class ) ; protected ParallelCommandExecutorTask ( CustomizedSSHConnection shellConnection , Server server , Command unixCommand ) { } private void validateParams ( CustomizedSSHConnection shellConnection , Server server , Command unixCommand ) { } @ Override public void run ( ) { } private void createSession ( ) { } private void executeCommandAndDisconnectSession ( ) { } private void executeCommand ( ) { } private void executeCommandInSession ( String unixCommand ) { } private void endSession ( ) { } private void executeCommandInSessionAndCollectOutput ( String unixCommand ) throws IOException { } private void collectOutputFromSession ( ) throws IOException { this . commandOutputBuffer = new StringBuilder ( ) ; <START_BUG> InputStream inputStream = this . session . getStdOut ( ) ; <END_BUG> parseAndPopulateOutput ( inputStream ) ; } private void parseAndPopulateOutput ( InputStream inputStream ) throws IOException { } private void logCommandOutputAsynchronously ( ) { } public Future < ? > commandOutputLoggerTaskFuture ( ) { } }

Fix:
InputStream inputStream = this . session . stdOutputStream ( ) ;
Buggy code:
public class ShowCheckForUpdateCommand extends CommandBase implements ICommand { public static final String NAME = "Check<seq2seq4repair_space>For<seq2seq4repair_space>Updates..." ; public String getName ( ) { } public String getDescription ( ) { } public ImageIcon getIcon ( ) { } public KeyStroke getAcceleratorKey ( ) { } @ Override public void apply ( NexusStreamParser np ) throws Exception { } public void actionPerformed ( ActionEvent ev ) { ApplicationDisplayMode applicationDisplayMode = ( ProgramProperties . isUseGUI ( ) ) ? ApplicationDisplayMode . GUI : ApplicationDisplayMode . CONSOLE ; UpdateDescriptor updateDescriptor ; try { updateDescriptor = UpdateChecker . getUpdateDescriptor ( "http:////www-ab.informatik.uni-tuebingen.de//data//software//dendroscope//download//updates.xml" , applicationDisplayMode ) ; } catch ( Exception e ) { Basic . caught ( e ) ; new jloda . util . Alert ( MultiViewer . getLastActiveFrame ( ) , "Installed<seq2seq4repair_space>version<seq2seq4repair_space>is<seq2seq4repair_space>up-to-date" ) ; return ; } if ( ( updateDescriptor . getEntries ( ) . length ) > 0 ) { if ( ! ( ProgramProperties . isUseGUI ( ) ) ) { UpdateDescriptorEntry entry = updateDescriptor . getEntries ( ) [ 0 ] ; new jloda . util . Alert ( MultiViewer . getLastActiveFrame ( ) , ( ( "New<seq2seq4repair_space>version<seq2seq4repair_space>available:<seq2seq4repair_space>" + ( entry . getNewVersion ( ) ) ) + "\nPlease<seq2seq4repair_space>download<seq2seq4repair_space>from:<seq2seq4repair_space>http:////www-ab.informatik.uni-tuebingen.de//data//software//dendroscope//download//" ) ) ; return ; } } else { new jloda . util . Alert ( MultiViewer . getLastActiveFrame ( ) , "Installed<seq2seq4repair_space>version<seq2seq4repair_space>is<seq2seq4repair_space>up-to-date" ) ; return ; } <START_BUG> ApplicationLauncher . launchApplicationInProcess ( "1691242142" , null , new ApplicationLauncher . Callback ( ) { <END_BUG> public void exited ( int exitValue ) { } public void prepareShutdown ( ) { ProgramProperties . store ( ) ; } } , FRAME , null ) ; } public boolean isCritical ( ) { } public boolean isApplicable ( ) { } @ Override public String getSyntax ( ) { } public String getUndo ( ) { } }

Fix:
ApplicationLauncher . launchApplicationInProcess ( "1691242312" , null , new ApplicationLauncher . Callback ( ) {
Buggy code:
public class HierarchicalFSMTest extends _HierarchicalTest { public HierarchicalFSMTest ( ) { } @ Override final void _testMultiThreaded ( final int n , final int delayMode , final boolean fifo ) { _HFTTask t ; _HFTWaitThread wt ; final long et ; long ct ; final Random r ; ForkJoinPool fjp ; r = new Random ( ) ; <START_BUG> et = ( System . currentTimeMillis ( ) ) + 10000 ; <END_BUG> for ( ; ; ) { ct = System . currentTimeMillis ( ) ; if ( ct >= et ) { return ; } wt = new _HFTWaitThread ( r . nextInt ( Math . max ( 1 , ( ( int ) ( et - ct ) ) ) ) ) ; wt . start ( ) ; fjp = ( fifo ) ? new ForkJoinPool ( n , ForkJoinPool . defaultForkJoinWorkerThreadFactory , null , true ) : new ForkJoinPool ( n ) ; try ( _HFTDummyHierarchicalFSM d = new _HFTDummyHierarchicalFSM ( null ) ) { t = new _HFTTask ( wt , d , 0 , delayMode ) ; fjp . execute ( t ) ; fjp . shutdown ( ) ; try { fjp . awaitTermination ( Long . MAX_VALUE , TimeUnit . MILLISECONDS ) ; wt . join ( ) ; } catch ( final Throwable xt ) { Assert . fail ( xt . getMessage ( ) ) ; } wt . _checkFailed ( ) ; } } } @ SuppressWarnings ( "resource" ) @ Test ( timeout = 3600000 , expected = IllegalStateException . class ) public void testExpectedErrorOnClose ( ) { } @ SuppressWarnings ( { "resource" , "unused" } ) @ Test ( timeout = 3600000 , expected = IllegalStateException . class ) public void testExpectedErrorNestA ( ) { } @ SuppressWarnings ( { "resource" , "unused" } ) @ Test ( timeout = 3600000 , expected = IllegalStateException . class ) public void testExpectedErrorNestB ( ) { } @ SuppressWarnings ( { "resource" , "unused" } ) @ Test ( timeout = 3600000 , expected = IllegalStateException . class ) public void testExpectedErrorNestC ( ) { } @ SuppressWarnings ( { "resource" , "unused" } ) @ Test ( timeout = 3600000 , expected = IllegalStateException . class ) public void testExpectedErrorNestD ( ) { } @ SuppressWarnings ( { "resource" , "unused" } ) @ Test ( timeout = 3600000 , expected = IllegalStateException . class ) public void testExpectedErrorNestE ( ) { } @ SuppressWarnings ( { "resource" , "unused" } ) @ Test ( timeout = 3600000 , expected = IllegalStateException . class ) public void testExpectedErrorNestF ( ) { } }

Fix:
et = ( System . currentTimeMillis ( ) ) + 5000L ;
Buggy code:
public class KEYRecord extends Record { private short flags ; private byte proto ; private byte alg ; private byte [ ] key ; private int footprint = - 1 ; public static final int FLAG_NOCONF = 32768 ; public static final int FLAG_NOAUTH = 16384 ; public static final int FLAG_NOKEY = 49152 ; public static final int OWNER_ZONE = 256 ; public static final int OWNER_HOST = 512 ; public static final int OWNER_USER = 0 ; public static final int PROTOCOL_TLS = 1 ; public static final int PROTOCOL_EMAIL = 2 ; public static final int PROTOCOL_DNSSEC = 3 ; public static final int PROTOCOL_IPSEC = 4 ; public static final int PROTOCOL_ANY = 255 ; private KEYRecord ( ) { } public KEYRecord ( Name _name , short _dclass , int _ttl , int _flags , int _proto , int _alg , byte [ ] _key ) { } KEYRecord ( Name _name , short _dclass , int _ttl , int length , DataByteInputStream in , Compression c ) throws IOException { } KEYRecord ( Name _name , short _dclass , int _ttl , MyStringTokenizer st , Name origin ) throws IOException { } public String rdataToString ( ) { } public short getFlags ( ) { } public byte getProtocol ( ) { } public byte getAlgorithm ( ) { } public byte [ ] getKey ( ) { } public short getFootprint ( ) { if ( ( footprint ) >= 0 ) return ( ( short ) ( footprint ) ) ; int foot = 0 ; DataByteOutputStream out = new DataByteOutputStream ( ) ; try { rrToWire ( out , null ) ; } catch ( IOException e ) { } byte [ ] rdata = out . toByteArray ( ) ; if ( ( alg ) == ( DNSSEC . RSA ) ) { int d1 = ( rdata [ ( ( key . length ) - 3 ) ] ) & 255 ; int d2 = ( rdata [ ( ( key . length ) - 2 ) ] ) & 255 ; foot = ( d1 << 8 ) + d2 ; } else { int i ; for ( i = 0 ; i < ( ( rdata . length ) - 1 ) ; i += 2 ) { int d1 = ( rdata [ i ] ) & 255 ; int d2 = ( rdata [ ( i + 1 ) ] ) & 255 ; foot += ( d1 << 8 ) + d2 ; } <START_BUG> if ( i <= ( rdata . length ) ) { <END_BUG> int d1 = ( rdata [ i ] ) & 255 ; foot += d1 << 8 ; } foot += ( foot > > 16 ) & 65535 ; } footprint = foot & 65535 ; return ( ( short ) ( footprint ) ) ; } void rrToWire ( DataByteOutputStream out , Compression c ) throws IOException { } }

Fix:
if ( i < ( rdata . length ) ) {
Buggy code:
public class HbaseManager { private static final String [ ] FAMILIES = new String [ ] { "c" } ; private static final Logger LOG = Logger . getLogger ( HbaseManager . class ) ; private static final int MAX_KEY_VALUE_SIZE = ( IngestFiles . MAX_CONTENT_SIZE ) + 200 ; public static final int MAX_VERSIONS = 20 ; private final HTable table ; private final HBaseAdmin admin ; public HbaseManager ( String name , boolean create ) throws Exception { } public boolean addRecord ( String key , String date , byte [ ] data , String type ) { try { SimpleDateFormat dateFormat = new SimpleDateFormat ( "yyyyMMddhhmmss" ) ; Date parsedDate = dateFormat . parse ( date ) ; Timestamp timestamp = new Timestamp ( parsedDate . getTime ( ) ) ; Put put = new Put ( Bytes . toBytes ( key ) ) ; put . setWriteToWAL ( false ) ; <START_BUG> put . add ( Bytes . toBytes ( HbaseManager . FAMILIES [ 0 ] ) , Bytes . toBytes ( type ) , timestamp . getTime ( ) , data ) ; <END_BUG> table . put ( put ) ; return true ; } catch ( Exception e ) { HbaseManager . LOG . error ( ( "Couldn't<seq2seq4repair_space>insert<seq2seq4repair_space>key:<seq2seq4repair_space>" + key ) ) ; HbaseManager . LOG . error ( ( "File<seq2seq4repair_space>Size:<seq2seq4repair_space>" + ( data . length ) ) ) ; HbaseManager . LOG . error ( e . getMessage ( ) ) ; e . printStackTrace ( ) ; return false ; } } public static void main ( String [ ] args ) throws ParseException { } }

Fix:
put . add ( Bytes . toBytes ( HbaseManager . FAMILIES [ 0 ] ) , Bytes . toBytes ( ( ( type + "<seq2seq4repair_space>" ) + ( timestamp . getTime ( ) ) ) ) , timestamp . getTime ( ) , data ) ;
Buggy code:
class SubTaskInfo extends JobTreeElement { protected String taskName ; JobInfo jobInfo ; SubTaskInfo ( JobInfo parentJob , String name ) { } Object [ ] getChildren ( ) { <START_BUG> return new Object [ 0 ] ; <END_BUG> } String getDisplayString ( ) { } boolean hasChildren ( ) { } void setTaskName ( String name ) { } String getTaskName ( ) { } Object getParent ( ) { } boolean isJobInfo ( ) { } boolean isActive ( ) { } }

Fix:
return ProgressManagerUtil . EMPTY_OBJECT_ARRAY ;
Buggy code:
public class TestPhrasePrefixQuery extends LuceneTestCase { public void testPhrasePrefix ( ) throws IOException { Directory indexStore = newDirectory ( ) ; RandomIndexWriter writer = new RandomIndexWriter ( random ( ) , indexStore ) ; Document doc1 = new Document ( ) ; Document doc2 = new Document ( ) ; Document doc3 = new Document ( ) ; Document doc4 = new Document ( ) ; Document doc5 = new Document ( ) ; doc1 . add ( newTextField ( "body" , "blueberry<seq2seq4repair_space>pie" , YES ) ) ; doc2 . add ( newTextField ( "body" , "blueberry<seq2seq4repair_space>strudel" , YES ) ) ; doc3 . add ( newTextField ( "body" , "blueberry<seq2seq4repair_space>pizza" , YES ) ) ; doc4 . add ( newTextField ( "body" , "blueberry<seq2seq4repair_space>chewing<seq2seq4repair_space>gum" , YES ) ) ; doc5 . add ( newTextField ( "body" , "piccadilly<seq2seq4repair_space>circus" , YES ) ) ; writer . addDocument ( doc1 ) ; writer . addDocument ( doc2 ) ; writer . addDocument ( doc3 ) ; writer . addDocument ( doc4 ) ; writer . addDocument ( doc5 ) ; IndexReader reader = writer . getReader ( ) ; <START_BUG> writer . close ( ) ; <END_BUG> IndexSearcher searcher = newSearcher ( reader ) ; MultiPhraseQuery query1 = new MultiPhraseQuery ( ) ; MultiPhraseQuery query2 = new MultiPhraseQuery ( ) ; query1 . add ( new Term ( "body" , "blueberry" ) ) ; query2 . add ( new Term ( "body" , "strawberry" ) ) ; LinkedList < Term > termsWithPrefix = new LinkedList < > ( ) ; String prefix = "pi" ; TermsEnum te = MultiFields . getFields ( reader ) . terms ( "body" ) . iterator ( null ) ; te . seekCeil ( new BytesRef ( prefix ) ) ; do { String s = te . term ( ) . utf8ToString ( ) ; if ( s . startsWith ( prefix ) ) { termsWithPrefix . add ( new Term ( "body" , s ) ) ; } else { break ; } } while ( ( te . next ( ) ) != null ) ; query1 . add ( termsWithPrefix . toArray ( new Term [ 0 ] ) ) ; query2 . add ( termsWithPrefix . toArray ( new Term [ 0 ] ) ) ; ScoreDoc [ ] result ; result = searcher . search ( query1 , null , 1000 ) . scoreDocs ; assertEquals ( 2 , result . length ) ; result = searcher . search ( query2 , null , 1000 ) . scoreDocs ; assertEquals ( 0 , result . length ) ; reader . close ( ) ; indexStore . close ( ) ; } }

Fix:
writer . shutdown ( ) ;
Buggy code:
public class EvalCall extends Visitor { Bubble curBub ; ArrayList < Bubble > bubbleList ; SymbolTable table ; SymbolTable dynamicTypeTable ; public EvalCall ( Bubble curBub , ArrayList < Bubble > bubbleList , SymbolTable table ) { } public String visitUnaryExpression ( GNode n ) { } public String visitThisExpression ( GNode n ) { } public String visitSuperExpression ( GNode n ) { } public String visitShiftExpression ( GNode n ) { } public String visitSelectionExpression ( GNode n ) { if ( n . getNode ( 0 ) . hasName ( "SuperExpression" ) ) { String ty = ( ( String ) ( table . lookup ( ( "$" + ( n . getNode ( 0 ) . getString ( 0 ) ) ) ) ) ) ; if ( ty == null ) return ( ( String ) ( table . lookup ( n . getNode ( 0 ) . getString ( 0 ) ) ) ) ; } if ( n . getNode ( 0 ) . hasName ( "ThisExpression" ) ) <START_BUG> return ( ( String ) ( table . lookup ( n . getNode ( 0 ) . getString ( 0 ) ) ) ) ; <END_BUG> System . out . println ( "please<seq2seq4repair_space>inspect<seq2seq4repair_space>something<seq2seq4repair_space>is<seq2seq4repair_space>wrong<seq2seq4repair_space>in<seq2seq4repair_space>EvalCall<seq2seq4repair_space>visit<seq2seq4repair_space>Selection<seq2seq4repair_space>Expression" ) ; return "Problem" ; } public String visitStringLiteral ( GNode n ) { } public String visitPostfixExpression ( GNode n ) { } public String visitNewClassExpression ( GNode n ) { } public String visitNewArrayExpression ( GNode n ) { } public String visitMultiplicativeExpression ( GNode n ) { } public String visitLogicalNegationExpression ( GNode n ) { } public String visitLogicalOrExpression ( GNode n ) { } public String visitLogicalAndExpression ( GNode n ) { } public String visitInstanceOfExpression ( GNode n ) { } public String visitExpressionList ( GNode n ) { } public String visitRelationalExpression ( GNode n ) { } public String visitEqualityExpression ( GNode n ) { } public String visitExpression ( GNode n ) { } public String visitConditionalExpression ( GNode n ) { } public String visitExpressionStatement ( GNode n ) { } public String visitClassLiteralExpression ( GNode n ) { } public String visitCastExpression ( GNode n ) { } public String visitCallExpression ( GNode n ) { } public String visitArguments ( GNode n ) { } public String visitBitwiseAndExpression ( GNode n ) { } public String visitBitwiseOrExpression ( GNode n ) { } public String visitBitwiseNegationExpression ( GNode n ) { } public String visitBitwiseXorExpression ( GNode n ) { } public String visitBasicCastExpression ( GNode n ) { } public String visitAdditiveExpression ( GNode n ) { } public String visitPrimaryIdentifier ( GNode n ) { } public String visitIntegerLiteral ( GNode n ) { } public String visitCharacterLiteral ( GNode n ) { } public String visitFloatingPointLiteral ( GNode n ) { } public String visitQualifiedIdentifier ( GNode n ) { } public String visit ( Node o ) { } }

Fix:
return ( ( String ) ( table . lookup ( n . getString ( 1 ) ) ) ) ;
Buggy code:
public class NSGA2 { private static final double mutationEta = 20 ; private static final double crossoverEta = 20 ; private final Problem problem ; private final SolutionStorage storage ; private final int storageSize ; private final int iterationSize ; private final boolean jmetalComparison ; private int evaluations ; private final double mutationProbability ; private int [ ] permutation ; private int index ; public NSGA2 ( Problem problem , SolutionStorage storage , int storageSize , int iterationSize , boolean debSelection , boolean jmetalComparison ) { } public void initialize ( ) { } private QueryResult selectOne ( ) { if ( ( permutation ) == null ) { return storage . getRandom ( ) ; } else { if ( ( index ) == 0 ) { Random r = FastRandom . threadLocal ( ) ; for ( int i = 1 ; i < ( storageSize ) ; ++ i ) { int j = r . nextInt ( ( i + 1 ) ) ; if ( j != i ) { int tmp = permutation [ i ] ; permutation [ i ] = permutation [ j ] ; permutation [ j ] = tmp ; } } } <START_BUG> SolutionStorage . QueryResult q = storage . getKth ( index ) ; <END_BUG> index = ( ( index ) + 1 ) % ( storageSize ) ; return q ; } } private double [ ] select ( ) { } private double [ ] [ ] crossover ( double [ ] a , double [ ] b , int howManyNeeded ) { } private void mutation ( double [ ] ind ) { } public double currentHyperVolume ( ) { } public void performIteration ( ) { } }

Fix:
SolutionStorage . QueryResult q = storage . getKth ( permutation [ index ] ) ;
Buggy code:
public class ItemSwordExtended extends ItemSword implements IExtendedReach { public ItemSwordExtended ( ToolMaterial parMaterial ) { } @ Override public float getReach ( ) { <START_BUG> return 12.0F ; <END_BUG> } }

Fix:
return 30.0F ;
Buggy code:
public class ParseScript extends NoopScript { private final List < Cmd > mCmds = new ArrayList < Cmd > ( ) ; public List < Cmd > getCmds ( ) { } @ Override public void setLogic ( Logics logic ) throws UnsupportedOperationException { } @ Override public void setOption ( String opt , Object value ) throws SMTLIBException , UnsupportedOperationException { } @ Override public void setInfo ( String info , Object value ) { } @ Override public void declareSort ( String sort , int arity ) throws SMTLIBException { } @ Override public void defineSort ( String sort , Sort [ ] sortParams , Sort definition ) throws SMTLIBException { } @ Override public void declareFun ( String fun , Sort [ ] paramSorts , Sort resultSort ) throws SMTLIBException { } @ Override public void defineFun ( String fun , TermVariable [ ] params , Sort resultSort , Term definition ) throws SMTLIBException { } @ Override public void push ( int levels ) { } @ Override public void pop ( int levels ) throws SMTLIBException { } @ Override public LBool assertTerm ( Term term ) throws SMTLIBException { } @ Override public LBool checkSat ( ) { } @ Override public Term [ ] getAssertions ( ) throws SMTLIBException { } @ Override public Term getProof ( ) throws SMTLIBException , UnsupportedOperationException { } @ Override public Term [ ] getUnsatCore ( ) throws SMTLIBException , UnsupportedOperationException { } @ Override public Map < Term , Term > getValue ( Term [ ] terms ) throws SMTLIBException , UnsupportedOperationException { } @ Override public Assignments getAssignment ( ) throws SMTLIBException , UnsupportedOperationException { } @ Override public Object getOption ( String opt ) throws UnsupportedOperationException { } @ Override public Object getInfo ( String info ) throws UnsupportedOperationException { } @ Override public Term simplify ( Term term ) throws SMTLIBException { } @ Override public Term [ ] getInterpolants ( Term [ ] partition , int [ ] startOfSubtree ) throws SMTLIBException , UnsupportedOperationException { } @ Override public void exit ( ) { } @ Override public Model getModel ( ) throws SMTLIBException , UnsupportedOperationException { } @ Override public Iterable < Term [ ] > checkAllsat ( Term [ ] predicates ) throws SMTLIBException , UnsupportedOperationException { } private void ensureNotFresh ( String fun ) { if ( fun . startsWith ( FRESH_PREFIX ) ) { <START_BUG> String tail = fun . substring ( ( ( FRESH_PREFIX . length ( ) ) + 1 ) ) ; <END_BUG> try { ReplaceByFreshTerm . ensureNotFresh ( Integer . parseInt ( tail ) ) ; } catch ( NumberFormatException ignored ) { } } } }

Fix:
String tail = fun . substring ( FRESH_PREFIX . length ( ) ) ;
Buggy code:
public class KEYConverter { private static final BigInteger DHPRIME768 = new BigInteger ( "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A63A3620FFFFFFFFFFFFFFFF" , 16 ) ; private static final BigInteger DHPRIME1024 = new BigInteger ( "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE65381FFFFFFFFFFFFFFFF" , 16 ) ; private static final BigInteger TWO = new BigInteger ( "2" , 16 ) ; static int BigIntegerLength ( BigInteger i ) { } static RSAPublicKey parseRSA ( DataByteInputStream in ) throws IOException { } static DHPublicKey parseDH ( DataByteInputStream in ) throws IOException { } static DSAPublicKey parseDSA ( DataByteInputStream in ) throws IOException { } public static PublicKey parseRecord ( KEYRecord r ) { } static byte [ ] buildRSA ( RSAPublicKey key ) { } static byte [ ] buildDH ( DHPublicKey key ) { } static byte [ ] buildDSA ( DSAPublicKey key ) { } <START_BUG> public static KEYRecord buildRecord ( Name name , short dclass , int ttl , int flags , int proto , PublicKey key ) { <END_BUG> byte [ ] data ; byte alg ; if ( key instanceof RSAPublicKey ) { alg = DNSSEC . RSAMD5 ; data = KEYConverter . buildRSA ( ( ( RSAPublicKey ) ( key ) ) ) ; } else if ( key instanceof DHPublicKey ) { alg = DNSSEC . DH ; data = KEYConverter . buildDH ( ( ( DHPublicKey ) ( key ) ) ) ; } else if ( key instanceof DSAPublicKey ) { alg = DNSSEC . DSA ; data = KEYConverter . buildDSA ( ( ( DSAPublicKey ) ( key ) ) ) ; } else return null ; if ( data == null ) return null ; return new KEYRecord ( name , dclass , ttl , flags , proto , alg , data ) ; } }

Fix:
public static KEYRecord buildRecord ( Name name , int dclass , int ttl , int flags , int proto , PublicKey key ) {
Buggy code:
public class AssertStatement extends Statement { private Expression expression = null ; private Expression optionalMessageExpression = null ; AssertStatement ( AST ast ) { } public int getNodeType ( ) { } ASTNode clone ( AST target ) { AssertStatement result = new AssertStatement ( target ) ; result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <START_BUG> result . setLeadingComment ( getLeadingComment ( ) ) ; <END_BUG> result . setExpression ( ( ( Expression ) ( ASTNode . copySubtree ( target , getExpression ( ) ) ) ) ) ; result . setMessage ( ( ( Expression ) ( ASTNode . copySubtree ( target , getMessage ( ) ) ) ) ) ; return result ; } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Expression getExpression ( ) { } public void setExpression ( Expression expression ) { } public Expression getMessage ( ) { } public void setMessage ( Expression expression ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . copyLeadingComment ( this ) ;
Buggy code:
public abstract class HeaderResponse implements IHeaderResponse { private static final long serialVersionUID = 1L ; private final Set rendered = new HashSet ( ) ; private boolean closed ; public HeaderResponse ( ) { } public final void markRendered ( Object object ) { } public void renderCSSReference ( ResourceReference reference ) { } public void renderCSSReference ( ResourceReference reference , String media ) { } public void renderCSSReference ( String url ) { } public void renderCSSReference ( String url , String media ) { } public void renderJavascriptReference ( ResourceReference reference ) { } public void renderJavascriptReference ( ResourceReference reference , String id ) { } public void renderJavascriptReference ( String url ) { } public void renderJavascriptReference ( String url , String id ) { if ( Strings . isEmpty ( url ) ) { throw new IllegalArgumentException ( "url<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>empty<seq2seq4repair_space>or<seq2seq4repair_space>null" ) ; } if ( ! ( closed ) ) { List token1 = Arrays . asList ( new Object [ ] { "javascript" , url } ) ; List token2 = Arrays . asList ( new Object [ ] { "javascript" , id } ) ; <START_BUG> if ( ( ( wasRendered ( token1 ) ) == false ) && ( wasRendered ( token2 ) ) ) { <END_BUG> JavascriptUtils . writeJavascriptUrl ( getResponse ( ) , url , id ) ; markRendered ( token1 ) ; markRendered ( token2 ) ; } } } public void renderJavascript ( CharSequence javascript , String id ) { } public void renderString ( CharSequence string ) { } public final boolean wasRendered ( Object object ) { } public void renderOnDomReadyJavascript ( String javascript ) { } public void renderOnLoadJavascript ( String javascript ) { } public void renderOnEventJavacript ( String target , String event , String javascript ) { } public void close ( ) { } public final Response getResponse ( ) { } public boolean isClosed ( ) { } protected abstract Response getRealResponse ( ) { } }

Fix:
if ( ( ( wasRendered ( token1 ) ) == false ) && ( ( wasRendered ( token2 ) ) == false ) ) {
Buggy code:
public abstract class AbstractPluginHandler implements PluginHandlerInterface { protected String id ; protected XmlElement parentNode ; protected PluginListConfig pluginListConfig ; protected PluginManager pluginManager ; protected Hashtable transformationTable ; protected Map pluginMap ; protected List externalPlugins ; public AbstractPluginHandler ( String id , String config ) { } protected PluginListConfig getConfig ( ) { } public String getId ( ) { } public Object getPlugin ( String name , Object [ ] args ) throws Exception { log . info ( ( "name=" + name ) ) ; log . info ( ( "arguments=" + args ) ) ; String className = getPluginClassName ( name , "class" ) ; log . info ( ( "class=" + className ) ) ; if ( className == null ) { if ( MainInterface . DEBUG ) { XmlElement . printNode ( parentNode , "<seq2seq4repair_space>" ) ; } NotifyDialog dialog = new NotifyDialog ( ) ; <START_BUG> dialog . showDialog ( ( ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>instanciate<seq2seq4repair_space>plugin<seq2seq4repair_space>" + name ) + ".\n<seq2seq4repair_space>Classname<seq2seq4repair_space>wasn\'t<seq2seq4repair_space>found.<seq2seq4repair_space>This<seq2seq4repair_space>probably<seq2seq4repair_space>means<seq2seq4repair_space>that<seq2seq4repair_space>plugin.xml<seq2seq4repair_space>is<seq2seq4repair_space>broken<seq2seq4repair_space>or<seq2seq4repair_space>incomplete." ) ) ; <END_BUG> return null ; } return getPlugin ( name , className , args ) ; } protected Object getPlugin ( String name , String className , Object [ ] args ) throws Exception { } protected String getPluginClassName ( String name , String id ) { } public String getAttribute ( String name , String attribute ) { } public String [ ] getPluginIdList ( ) { } public boolean exists ( String id ) { } public ListIterator getExternalPlugins ( ) { } public PluginManager getPluginManager ( ) { } protected Object loadPlugin ( String className , Object [ ] args ) throws Exception { } public void setPluginManager ( PluginManager pluginManager ) { } public String getUserVisibleName ( String id ) { } public void addExtension ( String id , XmlElement extension ) { } public XmlElement getParent ( ) { } }

Fix:
dialog . showDialog ( ( ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>instantiate<seq2seq4repair_space>plugin<seq2seq4repair_space>" + name ) + ".\n<seq2seq4repair_space>Classname<seq2seq4repair_space>wasn\'t<seq2seq4repair_space>found.<seq2seq4repair_space>This<seq2seq4repair_space>probably<seq2seq4repair_space>means<seq2seq4repair_space>that<seq2seq4repair_space>plugin.xml<seq2seq4repair_space>is<seq2seq4repair_space>broken<seq2seq4repair_space>or<seq2seq4repair_space>incomplete." ) ) ;
Buggy code:
public class CaptchaDeckHandler { public static enum ModusType { STACK ( StackModus . class ) , QUEUE ( QueueModus . class ) , QUEUE_STACK ( QueuestackModus . class ) , TREE ( TreeModus . class ) ; private final Class < ? extends Modus > c ; ModusType ( Class < ? extends Modus > c ) { } public Modus createInstance ( ) { } public static CaptchaDeckHandler . ModusType getType ( Modus modus ) { } } public static final int EMPTY_SYLLADEX = - 1 ; public static final int EMPTY_CARD = - 2 ; public static Random rand ; @ SideOnly ( Side . CLIENT ) public static Modus clientSideModus ; public static void launchItem ( EntityPlayer player , ItemStack item ) { } public static void launchAnyItem ( EntityPlayer player , ItemStack item ) { } public static void useItem ( EntityPlayerMP player ) { } public static void captchalougeItem ( EntityPlayerMP player ) { } public static void getItem ( EntityPlayerMP player , int index , boolean asCard ) { } public static void dropSylladex ( EntityPlayer player ) { Modus modus = CaptchaDeckHandler . getModus ( player ) ; if ( modus == null ) return ; ItemStack [ ] stacks = modus . getItems ( ) ; int size = modus . getSize ( ) ; if ( ! ( MinestuckConfig . dropItemsInCards ) ) { for ( ItemStack stack : stacks ) if ( stack != null ) player . dropItem ( stack , true , false ) ; } else for ( ItemStack stack : stacks ) if ( stack != null ) { ItemStack card = AlchemyRecipeHandler . createCard ( stack , false ) ; player . dropItem ( card , true , false ) ; size -- ; } if ( ( MinestuckConfig . sylladexDropMode ) >= 1 ) for ( ; size > 0 ; size = Math . max ( ( size - 16 ) , 0 ) ) player . dropItem ( new ItemStack ( Minestuck . captchaCard , Math . min ( 16 , size ) ) , true , false ) ; if ( ( MinestuckConfig . sylladexDropMode ) == 2 ) { player . dropItem ( new ItemStack ( Minestuck . modusCard , 1 , CaptchaDeckHandler . ModusType . getType ( modus ) . ordinal ( ) ) , true , false ) ; CaptchaDeckHandler . setModus ( player , null ) ; } else modus . initModus ( null , size ) ; <START_BUG> MinestuckPacket packet = MinestuckPacket . makePacket ( CAPTCHA , DATA , CaptchaDeckHandler . writeToNBT ( modus ) ) ; <END_BUG> MinestuckChannelHandler . sendToPlayer ( packet , player ) ; } public static NBTTagCompound writeToNBT ( Modus modus ) { } public static Modus readFromNBT ( NBTTagCompound nbt , boolean clientSide ) { } public static Modus getModus ( EntityPlayer player ) { } public static void setModus ( EntityPlayer player , Modus modus ) { } }

Fix:
MinestuckPacket packet = MinestuckPacket . makePacket ( CAPTCHA , DATA , CaptchaDeckHandler . writeToNBT ( CaptchaDeckHandler . getModus ( player ) ) ) ;
Buggy code:
class XSDWildcardTraverser extends XSDAbstractTraverser { XSDWildcardTraverser ( XSDHandler handler , XSAttributeChecker gAttrCheck ) { } XSParticleDecl traverseAny ( Element elmNode , XSDocumentInfo schemaDoc , SchemaGrammar grammar ) { } XSWildcardDecl traverseAnyAttribute ( Element elmNode , XSDocumentInfo schemaDoc , SchemaGrammar grammar ) { } XSWildcardDecl traverseWildcardDecl ( Element elmNode , Object [ ] attrValues , XSDocumentInfo schemaDoc , SchemaGrammar grammar ) { XSWildcardDecl namespace = ( ( XSWildcardDecl ) ( attrValues [ XSAttributeChecker . ATTIDX_NAMESPACE ] ) ) ; XInt processContentsAttr = ( ( XInt ) ( attrValues [ XSAttributeChecker . ATTIDX_PROCESSCONTENTS ] ) ) ; XSWildcardDecl wildcard = new XSWildcardDecl ( ) ; wildcard . fType = namespace . fType ; wildcard . fNamespaceList = namespace . fNamespaceList ; wildcard . fProcessContents = processContentsAttr . shortValue ( ) ; Element child = DOMUtil . getFirstChildElement ( elmNode ) ; if ( child != null ) { if ( DOMUtil . getLocalName ( child ) . equals ( ELT_ANNOTATION ) ) { traverseAnnotationDecl ( child , attrValues , false , schemaDoc ) ; child = DOMUtil . getNextSiblingElement ( child ) ; } if ( child != null ) { <START_BUG> reportSchemaError ( "s4s-elt-must-match" , new Object [ ] { "wildcard" , "(annotation?)" } ) ; <END_BUG> } } return wildcard ; } }

Fix:
reportSchemaError ( "s4s-elt-must-match" , new Object [ ] { "wildcard" , "(annotation?)" } , elmNode ) ;