nus-yam/ex-repair huggingface dataset:
Buggy code:
@ Singleton public class InfoSessionUtil { @ Inject InfoSessionPreferenceManager mPreferenceManager ; @ Inject AlarmManager mAlarmManager ; public void shareInfoSession ( Context context , WaterlooInfoSession infoSession ) { } @ TargetApi ( VERSION_CODES . ICE_CREAM_SANDWICH ) public void launchCalendarIntent ( Context context , WaterlooInfoSession infoSession ) { } public void rsvp ( Context context , WaterlooInfoSession infoSession ) { } public void cancelRsvp ( Context context , WaterlooInfoSession infoSession ) { } private int mAlarmChoice ; public void doAlarmLogic ( Activity context , final WaterlooInfoSession infoSession ) { Resources res = context . getResources ( ) ; WaterlooInfoSessionPreferences prefs = mPreferenceManager . getPreferences ( infoSession ) ; if ( prefs . hasAlarm ( ) ) { int minutes = prefs . getAlarm ( ) ; String message ; if ( minutes >= 60 ) { message = res . getQuantityString ( remove_alarm_message_hours , ( minutes // 60 ) , ( minutes // 60 ) ) ; } else { <START_BUG> message = res . getQuantityString ( remove_alarm_message_minutes , ( minutes // 60 ) , ( minutes // 60 ) ) ; <END_BUG> } new android . app . AlertDialog . Builder ( context ) . setTitle ( remove_alarm ) . setMessage ( message ) . setPositiveButton ( yes , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { mAlarmManager . cancelAlarm ( infoSession ) ; Toast . makeText ( MyApplication . getInstance ( ) . getApplicationContext ( ) , "Reminder<seq2seq4repair_space>removed" , LENGTH_SHORT ) . show ( ) ; } } ) . setNegativeButton ( no , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { } } ) . create ( ) . show ( ) ; } else { mAlarmChoice = 0 ; new android . app . AlertDialog . Builder ( context ) . setTitle ( alarm_choices_title ) . setSingleChoiceItems ( alarm_choices , 0 , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { mAlarmChoice = which ; } } ) . setPositiveButton ( add , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { int minutes = MyApplication . getInstance ( ) . getResources ( ) . getIntArray ( alarm_choices_minutes_values ) [ mAlarmChoice ] ; mAlarmManager . setAlarm ( infoSession , minutes ) ; Toast . makeText ( MyApplication . getInstance ( ) . getApplicationContext ( ) , "Reminder<seq2seq4repair_space>added" , LENGTH_SHORT ) . show ( ) ; } } ) . setNegativeButton ( cancel , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { } } ) . create ( ) . show ( ) ; } } }

Fix:
message = res . getQuantityString ( remove_alarm_message_minutes , minutes , minutes ) ;
Buggy code:
public class MasterDomainControllerOperationHandlerService extends AbstractModelControllerOperationHandlerFactoryService { private static final Logger log = Logger . getLogger ( "org.jboss.as.host.controller" ) ; public static final ServiceName SERVICE_NAME = DomainController . SERVICE_NAME . append ( OPERATION_HANDLER_NAME_SUFFIX ) ; private final DomainController domainController ; private final UnregisteredHostChannelRegistry registry ; public MasterDomainControllerOperationHandlerService ( final DomainController domainController , final UnregisteredHostChannelRegistry registry ) { } @ Override public Key initialize ( final ManagementChannel channel ) { <START_BUG> final MasterDomainControllerOperationHandlerImpl handler = new MasterDomainControllerOperationHandlerImpl ( getExecutor ( ) , getController ( ) , registry , domainController , channel ) ; <END_BUG> final Channel . Receiver receiver = handler ; channel . setReceiver ( receiver ) ; return channel . addCloseHandler ( new org . jboss . remoting3 . CloseHandler < Channel > ( ) { @ Override public void handleClose ( Channel closed , IOException exception ) { handler . shutdown ( ) ; } } ) ; } }

Fix:
final MasterDomainControllerOperationHandlerImpl handler = new MasterDomainControllerOperationHandlerImpl ( getExecutor ( ) , getController ( ) , registry , domainController ) ;
Buggy code:
public class BunnyDoorsCommandExecutor implements CommandExecutor { BunnyDoors plugin ; public BunnyDoorsCommandExecutor ( BunnyDoors p ) { } @ Override public boolean onCommand ( CommandSender sender , Command cmd , String commandLabel , String [ ] args ) { } private String getValidKeysAsString ( ) { } private boolean hasPerm ( CommandSender sender , String perm ) { } private boolean reload ( CommandSender s ) { } private void usage ( CommandSender s ) { } private String usageLine ( String cmd , String desc ) { } private String usageLine ( String cmd , String arg , String desc ) { } private void lockall ( CommandSender sender ) { } private void unlockall ( CommandSender sender ) { } private boolean info ( CommandSender sender ) { if ( ! ( sender instanceof Player ) ) { sender . sendMessage ( ( ( ChatColor . RED ) + "<seq2seq4repair_space>You<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>player<seq2seq4repair_space>to<seq2seq4repair_space>do<seq2seq4repair_space>this!" ) ) ; return false ; } Player p = ( ( Player ) ( sender ) ) ; Block b = p . getTargetBlock ( null , 10 ) ; String msg = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "Info:<seq2seq4repair_space>" + ( ChatColor . LIGHT_PURPLE ) ) + "Meta:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( Byte . toString ( b . getData ( ) ) ) ) + "<seq2seq4repair_space>" ) + ( ChatColor . LIGHT_PURPLE ) ) + "World:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( b . getWorld ( ) . getName ( ) ) ) + "<seq2seq4repair_space>" ) + ( ChatColor . LIGHT_PURPLE ) ) + "x:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( b . getX ( ) ) ) + "<seq2seq4repair_space>" ) + ( ChatColor . LIGHT_PURPLE ) ) + "y:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( b . getY ( ) ) ) + "<seq2seq4repair_space>" ) + ( ChatColor . LIGHT_PURPLE ) ) + "z:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( b . getZ ( ) ) ) + "<seq2seq4repair_space>" ; sender . sendMessage ( msg ) ; BunnyDoor d = BunnyDoor . getFromBlock ( b ) ; <START_BUG> if ( ! ( d . isNative ( ) ) ) { <END_BUG> sender . sendMessage ( ( ( ChatColor . WHITE ) + "Not<seq2seq4repair_space>A<seq2seq4repair_space>Bunny<seq2seq4repair_space>Door" ) ) ; } else { sender . sendMessage ( ( ( ChatColor . LIGHT_PURPLE ) + "Bunny<seq2seq4repair_space>Door" ) ) ; sender . sendMessage ( ( ( ( ( ( ChatColor . LIGHT_PURPLE ) + "ID:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( d . getId ( ) ) ) + "<seq2seq4repair_space>" ) ) ; sender . sendMessage ( ( ( ( ( ( ChatColor . LIGHT_PURPLE ) + "Key:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( d . getKey ( ) ) ) + "<seq2seq4repair_space>" ) ) ; sender . sendMessage ( ( ( ( ( ChatColor . LIGHT_PURPLE ) + "Locked<seq2seq4repair_space>By:<seq2seq4repair_space>" ) + ( ChatColor . WHITE ) ) + ( d . getLocker ( ) ) ) ) ; } return true ; } private boolean lock ( CommandSender sender , String key ) { } private boolean unlock ( CommandSender sender ) { } }

Fix:
if ( d . isNative ( ) ) {
Buggy code:
public class RModuleIssueType extends org . tigris . scarab . om . BaseRModuleIssueType implements Persistent { public ScarabModule getScarabModule ( ) { } public void setScarabModule ( ScarabModule module ) { } public void setModule ( ModuleEntity me ) throws Exception { } public ModuleEntity getModule ( ) throws Exception { } public void delete ( ScarabUser user ) throws Exception { ModuleEntity module = getModule ( ) ; if ( user . hasPermission ( MODULE__EDIT , module ) ) { <START_BUG> List attGroups = getIssueType ( ) . getAttributeGroups ( module ) ; <END_BUG> for ( int j = 0 ; j < ( attGroups . size ( ) ) ; j ++ ) { AttributeGroup attGroup = ( ( AttributeGroup ) ( attGroups . get ( j ) ) ) ; attGroup . delete ( user ) ; } Criteria c = new Criteria ( ) . add ( MODULE_ID , getModuleId ( ) ) . add ( ISSUE_TYPE_ID , getIssueTypeId ( ) ) ; RModuleIssueTypePeer . doDelete ( c ) ; save ( ) ; } else { throw new org . tigris . scarab . util . ScarabException ( ScarabConstants . NO_PERMISSION_MESSAGE ) ; } } public String getDisplayText ( ) throws Exception { } public RModuleIssueType copy ( ) throws Exception { } public void save ( DBConnection dbCon ) throws Exception { } }

Fix:
List attGroups = module . getAttributeGroups ( getIssueType ( ) ) ;
Buggy code:
public class XSEmptyCM implements XSCMValidator { private static final short STATE_START = 0 ; public int [ ] startContentModel ( ) { } public Object oneTransition ( QName elementName , int [ ] currentState , SubstitutionGroupHandler subGroupHandler ) { <START_BUG> if ( ( currentState [ 0 ] ) == ( XSCMValidator . FIRST_ERROR ) ) { <END_BUG> currentState [ 0 ] = XSCMValidator . SUBSEQUENT_ERROR ; return null ; } currentState [ 0 ] = XSCMValidator . FIRST_ERROR ; return null ; } public boolean endContentModel ( int [ ] currentState ) { } public boolean checkUniqueParticleAttribution ( SubstitutionGroupHandler subGroupHandler ) throws XMLSchemaException { } }

Fix:
if ( ( currentState [ 0 ] ) < 0 ) {
Buggy code:
public class SandhiSolverHandler extends AbstractHandler { @ Override public ResponseContainer processRequest ( AppRuntime ar , ClientRequest request , ILogInterface log ) throws Exception { log . info ( "Invoking<seq2seq4repair_space>sandhi<seq2seq4repair_space>solver" ) ; String word = request . getRequestParameter ( "word" ) ; String originalWord = word ; String fromConvention = request . getRequestParameter ( "from" ) ; String toConvention = request . getRequestParameter ( "to" ) ; ITransliterator tFromTo = Instance . get ( fromConvention , "HKC" ) ; ITransliterator tToFrom = Instance . get ( "HKC" , fromConvention ) ; if ( ( ( tFromTo == null ) || ( tToFrom == null ) ) && ( ( ! ( fromConvention . equalsIgnoreCase ( "HKC" ) ) ) && ( ! ( toConvention . equals ( "HKC" ) ) ) ) ) { throw new Exception ( "No<seq2seq4repair_space>suitable<seq2seq4repair_space>transliterator<seq2seq4repair_space>could<seq2seq4repair_space>be<seq2seq4repair_space>found!" ) ; } if ( ! ( fromConvention . toUpperCase ( ) . equals ( "HKC" ) ) ) { word = tFromTo . transliterate ( word ) ; } SandhiSolver sandhiSolver = ar . getSandhiSolver ( ) ; ArrayList < String > res = sandhiSolver . sandhiSplit ( word ) ; String [ ] result = new String [ 1 ] ; result [ 0 ] = originalWord ; <START_BUG> if ( ! ( res . get ( 0 ) . equals ( originalWord ) ) ) { <END_BUG> res . add ( originalWord ) ; result = res . toArray ( new String [ 0 ] ) ; } if ( ! ( toConvention . toUpperCase ( ) . equals ( "HKC" ) ) ) { return this . createSuccessResponse ( ( ( JObject ) ( ar . getFormatConverterManager ( ) . convert ( "sandhisolverforms" , "json" , result , tToFrom ) ) ) ) ; } return this . createSuccessResponse ( ( ( JObject ) ( ar . getFormatConverterManager ( ) . convert ( "sandhisolverforms" , "json" , result , null ) ) ) ) ; } }

Fix:
if ( ! ( res . get ( 0 ) . equals ( word ) ) ) {
Buggy code:
public class StringFields extends AbstractFields { public static final long serialVersionUID = 4298649925601364399L ; private String fieldKey ; private String value ; @ DataBoundConstructor public StringFields ( String fieldKey , String value ) { } public String getFieldKey ( ) { } public String getValue ( ) { } @ Override public String toString ( ) { } @ Override public FieldInput getFieldInput ( TestResult test , EnvVars envVars ) { } public Object readResolve ( ) { } @ Extension public static class StringFieldsDescriptor extends Descriptor < AbstractFields > { @ Override public String getDisplayName ( ) { } public ListBoxModel doFillFieldKeyItems ( @ QueryParameter @ RelativePath ( ".." ) String projectKey , @ QueryParameter @ RelativePath ( ".." ) String issueType ) { JiraTestDataPublisherDescriptor jiraDescriptor = JiraUtils . getJiraDescriptor ( ) ; <START_BUG> if ( ( projectKey == "" ) || ( issueType == "" ) ) <END_BUG> return new ListBoxModel ( ) ; try { return jiraDescriptor . getCacheEntry ( projectKey , issueType ) . getStringFieldBox ( ) ; } catch ( NullPointerException e ) { return new ListBoxModel ( ) ; } } } }

Fix:
if ( ( projectKey . equals ( "" ) ) || ( issueType . equals ( "" ) ) )
Buggy code:
public class AbstractTransmissionResponse implements TransmissionResponse { TransmissionId transmissionId ; private final PeppolStandardBusinessHeader sbdh ; private final URL url ; private final BusDoxProtocol busDoxProtocol ; private final CommonName commonName ; public AbstractTransmissionResponse ( TransmissionId transmissionId , PeppolStandardBusinessHeader sbdh , URL url , BusDoxProtocol busDoxProtocol , CommonName commonName ) { } <START_BUG> @ SuppressWarnings ( "unused" ) <END_BUG> public PeppolStandardBusinessHeader getStandardBusinessHeader ( ) { return sbdh ; } @ Override public TransmissionId getTransmissionId ( ) { } @ Override public URL getURL ( ) { } @ Override public BusDoxProtocol getProtocol ( ) { } @ Override public CommonName getCommonName ( ) { } }

Fix:
@ Override
Buggy code:
@ Service public class MessageService implements IMessageService { @ Autowired private IMessageRepository repository ; @ Override @ Transactional public Message getMessageById ( Long id ) { } @ Override @ Transactional public void addMessage ( Message message ) { } @ Override @ Transactional public void modifyMessage ( Message message ) { } @ Override @ Transactional public List < Message > getAllMessages ( ) { } @ Override @ Transactional public List < Message > getByChatRoom ( Long chatroom_id ) { } @ Override @ Transactional public List < Message > getBySenderId ( Long userid ) { } @ Override @ Transactional public Long getCount ( ) { } @ Override @ Transactional public Long getCountBySenderId ( Long userid ) { } @ Override @ Transactional public Long getCountByChatroomId ( Long chatroom_id ) { } @ Override @ Transactional public Long getNextId ( ) { } @ Override @ Transactional public void delete ( Message message ) { <START_BUG> repository . deleteById ( message . getId ( ) ) ; <END_BUG> } }

Fix:
repository . delete ( message ) ;
Buggy code:
public class HibernateProductEntryRepository implements ProductEntryRepository { @ Override public List < ProductEntry > findSelected ( final String clientSettingsId , final int groupId , final boolean useCustomCategories ) throws Exception { } @ Override public void add ( final String clientsId , final Collection < ProductEntry > productEntries ) throws Exception { } @ Override public void delete ( final Collection < ProductEntry > productsToDelete ) throws Exception { final List < String > ids = new ArrayList < > ( ) ; for ( ProductEntry productEntry : productsToDelete ) ids . add ( productEntry . id ) ; execute ( new Update ( ) { @ Override public void execute ( org . hibernate . Session session ) { <START_BUG> session . createSQLQuery ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>product_entry<seq2seq4repair_space>WHERE<seq2seq4repair_space>product_entry.id<seq2seq4repair_space>IN<seq2seq4repair_space>(:values)" ) . setParameter ( "values" , ids ) . executeUpdate ( ) ; <END_BUG> } } ) ; } @ Override public List < ProductEntry > getWithChecked ( final String clientId , final String categoryId , final int groupId ) throws Exception { } @ Override public Map < String , Integer > getCountPerCategory ( final String clientId , final String groupId ) { } @ Override public Set < ProductEntry > get ( final String clientId , final String categoryId ) { } @ Override public Set < ProductEntry > get ( final String clientId ) { } @ Override public List < ProductEntry > get ( final String clientId , final int groupId , final Collection < String > ids ) { } @ Override public List < ProductEntry > getWithCheckedPage ( final String clientId , final String categoryId , final int groupId , final int offset , final int limit ) { } @ Override public ProductEntry find ( final String productEntryId ) { } @ Override public ProductEntry find ( final String clientId , final String clientsProductId ) { } @ Override public void update ( final ProductEntry entry ) { } }

Fix:
session . createSQLQuery ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>product_entry<seq2seq4repair_space>WHERE<seq2seq4repair_space>product_entry.id<seq2seq4repair_space>IN<seq2seq4repair_space>(:values)" ) . setParameterList ( "values" , ids ) . executeUpdate ( ) ;
Buggy code:
public class SIRENTranslator { private static SIRENTranslator instance = null ; private SIRENTranslator ( ) { } public static SIRENTranslator getInstance ( ) { } public String getMusicString ( String siren_string ) { String [ ] voices = new String [ 16 ] ; for ( int i = 0 ; i < 16 ; i ++ ) { voices [ i ] = ( "V" + i ) + "<seq2seq4repair_space>R//0.25" ; } Scanner sc = new Scanner ( siren_string ) ; int currentRegister = 5 ; int currentVoice = 0 ; float currentTime = 0.25F ; while ( sc . hasNext ( ) ) { String token = sc . next ( ) ; if ( token . startsWith ( "!" ) ) { String tempo = token . substring ( 1 ) ; voices [ 0 ] = ( ( "T" + tempo ) + "<seq2seq4repair_space>" ) + ( voices [ 0 ] ) ; continue ; } else if ( token . startsWith ( "@" ) ) { String inst = token . substring ( 1 ) ; voices [ currentVoice ] = ( ( ( voices [ currentVoice ] ) + "<seq2seq4repair_space>I[" ) + inst ) + "]" ; continue ; } else if ( token . startsWith ( "$" ) ) { String vol = token . substring ( 1 ) ; voices [ currentVoice ] = ( ( voices [ currentVoice ] ) + "<seq2seq4repair_space>X[Volume]=" ) + vol ; continue ; } else if ( ( token . startsWith ( "{" ) ) || ( token . startsWith ( "}" ) ) ) { continue ; } else if ( token . startsWith ( "[" ) ) { continue ; } else if ( token . startsWith ( "]" ) ) { continue ; } else { token = token . replace ( "V" , "C#" ) ; token = token . replace ( "W" , "D#" ) ; token = token . replace ( "X" , "F#" ) ; token = token . replace ( "Y" , "G#" ) ; token = token . replace ( "Z" , "A#" ) ; float duration = Float . parseFloat ( token . substring ( ( ( token . indexOf ( "//" ) ) + 1 ) ) ) ; currentTime = currentTime + duration ; voices [ currentVoice ] = ( ( voices [ currentVoice ] ) + "<seq2seq4repair_space>" ) + token ; continue ; } } String music_string = "" ; for ( int i = 0 ; i < 16 ; i ++ ) { <START_BUG> music_string = ( music_string + "<seq2seq4repair_space>" ) + ( voices [ i ] ) ; <END_BUG> } System . out . println ( music_string ) ; return music_string . trim ( ) ; } }

Fix:
music_string = ( ( music_string + "<seq2seq4repair_space>" ) + ( voices [ i ] ) ) + "<seq2seq4repair_space>R//0.25" ;
Buggy code:
public class PathogenUtil { public static void extractResourceIfNotExist ( String resourceName , String destination ) { Log . d ( ( ( ( ( "Extracting<seq2seq4repair_space>resource<seq2seq4repair_space>'" + resourceName ) + "'<seq2seq4repair_space>to<seq2seq4repair_space>'" ) + destination ) + "'..." ) ) ; try { File f = new File ( destination ) ; Log . d ( ( "" + ( f . length ( ) ) ) ) ; if ( ( f . exists ( ) ) && ( ( f . length ( ) ) > 0 ) ) { return ; } new File ( f . getParent ( ) ) . mkdirs ( ) ; f . createNewFile ( ) ; <START_BUG> InputStream inputStream = PathogenUtil . class . getClassLoader ( ) . getResourceAsStream ( resourceName ) ; <END_BUG> if ( inputStream == null ) { Log . e ( ( ( "Resource<seq2seq4repair_space>'" + resourceName ) + "'<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>found!" ) ) ; } OutputStream outputStream = new FileOutputStream ( f ) ; int read = 0 ; byte [ ] bytes = new byte [ 1024 ] ; while ( ( read = inputStream . read ( bytes ) ) != ( - 1 ) ) { outputStream . write ( bytes , 0 , read ) ; } inputStream . close ( ) ; outputStream . flush ( ) ; outputStream . close ( ) ; Log . m ( ( ( ( ( "Extracted<seq2seq4repair_space>resource<seq2seq4repair_space>'" + resourceName ) + "'<seq2seq4repair_space>to<seq2seq4repair_space>'" ) + destination ) + "'<seq2seq4repair_space>sucessfully." ) ) ; } catch ( Exception e ) { Log . e ( ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>extract<seq2seq4repair_space>resource<seq2seq4repair_space>'" + resourceName ) + "'<seq2seq4repair_space>to<seq2seq4repair_space>'" ) + destination ) + "'" ) ) ; e . printStackTrace ( ) ; } } }

Fix:
InputStream inputStream = PathogenUtil . class . getClassLoader ( ) . getResourceAsStream ( ( "lang//" + resourceName ) ) ;
Buggy code:
public class Reader { protected Column [ ] columns ; protected String delimiter ; public Reader ( Column [ ] cols , String dlmtr ) { } public final RecordList read ( final String filePath , Boolean colnames ) throws IOException { } protected void parseLine ( RecordList recordList , String line ) { } protected final void readColumnNames ( String line ) { } protected void addMetaData ( RecordList recordList , String line ) { } public Record createRecord ( String line ) throws ParseException { <START_BUG> String [ ] parts = line . split ( delimiter ) ; <END_BUG> Record record = new Record ( getSortTimeStamp ( parts ) ) ; for ( int i = 0 ; i < ( columns . length ) ; i ++ ) { if ( columns [ i ] . isExcluded ( ) ) { continue ; } switch ( columns [ i ] . characteristic ) { case TIME : case DATEandTIME : case DATE : DateColumn dColumn = ( ( DateColumn ) ( columns [ i ] ) ) ; record . put ( columns [ i ] . getName ( ) , createDataField ( parts [ i ] , dColumn ) ) ; break ; case COMMENT : record . addCommentToRecord ( parts [ i ] ) ; break ; case INT : record . put ( columns [ i ] . getName ( ) , createIntegerField ( parts [ i ] ) ) ; break ; case DOUBLE : record . put ( columns [ i ] . getName ( ) , createDoubleField ( parts [ i ] ) ) ; break ; default : record . put ( columns [ i ] . getName ( ) , new DataFieldString ( parts [ i ] ) ) ; } } return record ; } private LocalDateTime getSortTimeStamp ( String [ ] fields ) throws ParseException { } protected DataField createIntegerField ( String input ) throws NumberFormatException { } protected DataField createDoubleField ( String input ) throws NumberFormatException { } private DataField createDataField ( String input , DateColumn dColumn ) throws ParseException { } public static String readLimited ( String path , int lines ) throws IOException { } }

Fix:
String [ ] parts = line . split ( ( "\\" + ( delimiter ) ) , ( - 1 ) ) ;
Buggy code:
public class CheckWordsFragment extends Fragment { public static final String TAG = "check_words" ; private List < Vocable > unsolved ; private final List < Vocable > wrong = new ArrayList < > ( ) ; private int id ; private Vocable vocable ; @ Nullable @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; DatabaseHandler db = new DatabaseHandler ( getActivity ( ) ) ; TextView Text = ( ( TextView ) ( getView ( ) . findViewById ( native_language ) ) ) ; EditText EditText = ( ( EditText ) ( getView ( ) . findViewById ( translated ) ) ) ; ImageView Image = ( ( ImageView ) ( getView ( ) . findViewById ( imageView ) ) ) ; <START_BUG> FloatingActionButton ButtonSubmit = ( ( FloatingActionButton ) ( getView ( ) . findViewById ( add_dialog ) ) ) ; <END_BUG> unsolved = db . getAllUnsolvedVocables ( ) ; if ( ( unsolved . size ( ) ) > 0 ) { id = ( ( MainActivity ) ( getActivity ( ) ) ) . generateRandom ( 0 , ( ( unsolved . size ( ) ) - 1 ) ) ; vocable = unsolved . get ( id ) ; Text . setText ( vocable . get_native_word ( ) ) ; } else { Image . setImageResource ( finished ) ; EditText . setVisibility ( INVISIBLE ) ; ( ( MainActivity ) ( getActivity ( ) ) ) . hideKeyboard ( ) ; ButtonSubmit . setVisibility ( INVISIBLE ) ; Text . setText ( "" ) ; } EditText . setOnEditorActionListener ( new EditText . OnEditorActionListener ( ) { @ Override public boolean onEditorAction ( TextView v , int actionId , KeyEvent event ) { if ( actionId == ( EditorInfo . IME_ACTION_DONE ) ) { submit ( ) ; return true ; } return false ; } } ) ; db . close ( ) ; } private void submit ( ) { } No newline ; at end ; of file ; }

Fix:
FloatingActionButton ButtonSubmit = ( ( FloatingActionButton ) ( getView ( ) . findViewById ( submit ) ) ) ;
Buggy code:
public class LoginViewAndWellnessImpl extends Composite implements LoginView { @ UiTemplate ( "LoginViewAndWellness.ui.xml" ) interface LoginBoxViewUiBinder extends UiBinder < Widget , LoginViewAndWellnessImpl > { } private static LoginViewAndWellnessImpl . LoginBoxViewUiBinder uiBinder = GWT . create ( LoginViewAndWellnessImpl . LoginBoxViewUiBinder . class ) ; @ UiField TextBox userNameTextBox ; @ UiField PasswordTextBox passwordTextBox ; @ UiField Button loginButton ; private Presenter presenter ; public LoginViewAndWellnessImpl ( ) { } private void initEventHandlers ( ) { } private void submit ( ) { } public void setPresenter ( Presenter presenter ) { } @ Override public void setLoginFailed ( String msg ) { <START_BUG> ErrorDialog . show ( "Login<seq2seq4repair_space>failed." , msg ) ; <END_BUG> } @ Override public String getUsername ( ) { } @ Override public String getPassword ( ) { } @ Override public void disableLoginForm ( ) { } @ Override public void enableLoginForm ( ) { } @ Override public void showError ( String errorMsg ) { } }

Fix:
ErrorDialog . show ( "Invalid<seq2seq4repair_space>username<seq2seq4repair_space>or<seq2seq4repair_space>password" , msg ) ;
Buggy code:
public class Gerp { private String chr ; private int pos ; private float score ; public Gerp ( ) { } public void setValues ( String chr , int pos , float score ) { } public boolean isSameSite ( String chr , int pos ) { <START_BUG> if ( ( this . chr . equalsIgnoreCase ( chr ) ) && ( ( this . pos ) != pos ) ) { <END_BUG> return true ; } return false ; } public float getScore ( ) { } }

Fix:
if ( ( this . chr . equalsIgnoreCase ( chr ) ) && ( ( this . pos ) == pos ) ) {
Buggy code:
public class VFSFile implements Serializable { public static final int FILE = 0 ; public static final int DIRECTORY = 1 ; public static final int FILESYSTEM = 2 ; public String name ; public String path ; public String symlinkPath ; public String deletePath ; public int type ; public long length ; public boolean hidden ; public boolean canRead ; public boolean canWrite ; public VFSFile ( ) { } public VFSFile ( String name , String path , String deletePath , int type , long length , boolean hidden ) { } public String getName ( ) { } public void setName ( String name ) { } public String getPath ( ) { } public void setPath ( String path ) { } public String getSymlinkPath ( ) { } public void setSymlinkPath ( String symlinkPath ) { } public String getDeletePath ( ) { } public void setDeletePath ( String deletePath ) { } public int getType ( ) { } public void setType ( int type ) { } public long getLength ( ) { } public void setLength ( long length ) { } public boolean isHidden ( ) { } public void setHidden ( boolean hidden ) { } public boolean isReadable ( ) { } public void setReadable ( boolean canRead ) { } public boolean isWriteable ( ) { } public void setWriteable ( boolean canWrite ) { } protected boolean colorCalculated ; protected Color color ; public String getExtendedAttribute ( String name ) { if ( name . equals ( EA_TYPE ) ) { switch ( getType ( ) ) { case VFSFile . FILE : return jEdit . getProperty ( "vfs.browser.type.file" ) ; case VFSFile . DIRECTORY : return jEdit . getProperty ( "vfs.browser.type.directory" ) ; case VFSFile . FILESYSTEM : return jEdit . getProperty ( "vfs.browser.type.filesystem" ) ; default : throw new IllegalArgumentException ( ) ; } } else if ( name . equals ( EA_STATUS ) ) { if ( isReadable ( ) ) { if ( isWriteable ( ) ) return jEdit . getProperty ( "vfs.browser.status.rw" ) ; else return jEdit . getProperty ( "vfs.browser.status.ro" ) ; } else { if ( isWriteable ( ) ) return jEdit . getProperty ( "vfs.browser.status.append" ) ; else return jEdit . getProperty ( "vfs.browser.status.no" ) ; } } else <START_BUG> if ( getName ( ) . equals ( EA_SIZE ) ) { <END_BUG> if ( ( getType ( ) ) != ( VFSFile . FILE ) ) return null ; else return MiscUtilities . formatFileSize ( getLength ( ) ) ; } else return null ; } public Color getColor ( ) { } public String toString ( ) { } protected boolean fetchedAttrs ( ) { } protected void fetchAttrs ( ) { } private boolean fetchedAttrs ; }

Fix:
if ( name . equals ( EA_SIZE ) ) {
Buggy code:
public class LocationWidget implements Widget { private Location location ; private List < Location > options ; public LocationWidget ( ) { } @ Override public String generateHtml ( FormEntryContext context ) { if ( ( context . getMode ( ) ) == ( Mode . VIEW ) ) { if ( ( location ) != null ) return WidgetFactory . displayValue ( location . getName ( ) ) ; else return "" ; } StringBuilder sb = new StringBuilder ( ) ; <START_BUG> sb . append ( ( ( "<select<seq2seq4repair_space>name=\"" + ( context . getFieldName ( this ) ) ) + "\">" ) ) ; <END_BUG> sb . append ( "\n<option<seq2seq4repair_space>value=\"\">" ) ; sb . append ( Context . getMessageSourceService ( ) . getMessage ( "htmlformentry.chooseALocation" ) ) ; sb . append ( "<//option>" ) ; List < Location > useLocations ; if ( ( options ) != null ) { useLocations = options ; } else { useLocations = Context . getLocationService ( ) . getAllLocations ( ) ; Collections . sort ( useLocations , new Comparator < Location > ( ) { @ Override public int compare ( Location left , Location right ) { return left . getName ( ) . compareTo ( right . getName ( ) ) ; } } ) ; } for ( Location l : useLocations ) { sb . append ( "\n<option" ) ; if ( ( ( location ) != null ) && ( location . equals ( l ) ) ) sb . append ( "<seq2seq4repair_space>selected=\"true\"" ) ; sb . append ( ( ( "<seq2seq4repair_space>value=\"" + ( l . getLocationId ( ) ) ) + "\">" ) ) . append ( l . getName ( ) ) . append ( "<//option>" ) ; } sb . append ( "<//select>" ) ; return sb . toString ( ) ; } @ Override public Object getValue ( FormEntryContext context , HttpServletRequest request ) { } @ Override public void setInitialValue ( Object initialValue ) { } public void setOptions ( List < Location > options ) { } }

Fix:
sb . append ( ( ( ( ( "<select<seq2seq4repair_space>id=\"" + ( context . getFieldName ( this ) ) ) + "\"<seq2seq4repair_space>name=\"" ) + ( context . getFieldName ( this ) ) ) + "\">" ) ) ;
Buggy code:
public class StreamingSimpleHttpRequestFactoryTests extends AbstractHttpRequestFactoryTestCase { @ Override protected ClientHttpRequestFactory createRequestFactory ( ) { SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory ( ) ; <START_BUG> factory . setStreaming ( true ) ; <END_BUG> return factory ; } @ Test @ Ignore public void largeFileUpload ( ) throws Exception { } }

Fix:
factory . setBufferRequestBody ( false ) ;
Buggy code:
public class MainActivity extends SneerActivity { private MainAdapter adapter ; private ListView conversationList ; private final Party self = sneer . android . SneerAndroidSingleton . sneer ( ) . self ( ) ; private final Profile ownProfile = sneer . android . SneerAndroidSingleton . sneer ( ) . profileFor ( self ) ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void makeConversationList ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void openSharePukDialog ( ) { } protected void onClicked ( Conversation conversation ) { Intent intent = new Intent ( ) ; intent . setClass ( this , ConversationActivity . class ) ; <START_BUG> intent . putExtra ( "partyPuk" , conversation . party ( ) . publicKey ( ) . current ( ) ) ; <END_BUG> startActivity ( intent ) ; } @ Override protected void onDestroy ( ) { } @ Override protected void onRestart ( ) { } @ Override protected void onPause ( ) { } @ Override protected void onResume ( ) { } private void startProfileActivityIfFirstTime ( ) { } private boolean isOwnNameLocallyAvailable ( ) { } }

Fix:
intent . putExtra ( "partyPuk" , conversation . contact ( ) . party ( ) . current ( ) . publicKey ( ) . current ( ) ) ;
Buggy code:
public class World extends GameObject { static final int maxLevel = 7 ; boolean explored ; static float transitionRadius = 200 ; static float portalRadius = 50 ; int br ; int bg ; int bb ; static int swarmlingsGenerated = 10 ; public int count = 0 ; public int obstacleNumber = 0 ; public int obstaclesAroundEntrance = 6 ; public int obstaclesRemainingAroundEntrance = 6 ; static int stationaryObstacleMaxNumber = 250 ; static int stationaryObstacleMinNumber = 150 ; static float worldRadius = 1000 ; int stationaryObstaclesNumber ; int bgColor ; int blotchColor ; int cloudColor ; public int wanderingEnemyNumber = 0 ; Nest nest ; static int easiestObstacleSpawnPeriod = 150 ; static int easiestObstacleMax = 15 ; static int easiestWanderingEnemySpawnPeriod = 300 ; static int easiestWanderingEnemyMax = 1 ; ChasingEnemy chasingEnemy ; static int hardestObstacleSpawnPeriod = 80 ; static int hardestObstacleMax = 20 ; static int hardestWanderingEnemySpawnPeriod = 200 ; static int hardestWanderingEnemyMax = 5 ; int obstacleSpawnPeriod = 300 ; int obstacleMax = 10 ; int wanderingEnemySpawnPeriod = 200 ; int wanderingEnemyMax = 1 ; World parent ; ArrayList < World > children ; ArrayList < GameObject > contents ; ArrayList < World . Blotch > blotches ; ArrayList < World . Cloud > clouds ; class Blotch { float x ; float y ; float r ; Blotch ( ) { } } class Cloud { float orbitRadius ; float phase ; float radius ; float speed ; Cloud ( float ior , float ip , float ir , float is ) { } void draw ( WorldView view ) { } } void generateClouds ( ) { } public int level = 1 ; public float difficulty = 1.0F ; Key key = null ; World ( Sketch s , World p , float ix , float iy ) { } public void generateContents ( ) { } public void explore ( ) { } public void generateKey ( ) { float tmp = sketch . random ( 0 , 1 ) ; <START_BUG> if ( ( level ) >= 1 ) { <END_BUG> float ix = sketch . random ( 0 , Sketch . sqrt ( radius ) ) ; float iy = sketch . random ( 0 , Sketch . sqrt ( radius ) ) ; key = new Key ( sketch , ix , iy ) ; float theta = sketch . random ( TWO_PI ) ; while ( ( key . obstaclesAroundKey ) > 0 ) { float obDiameter = sketch . montecarlo ( ( ( ( StationaryObstacle . stationaryObstacleMaxRadius ) - ( StationaryObstacle . stationaryObstacleMinRadius ) ) // 2 ) , ( ( ( StationaryObstacle . stationaryObstacleMaxRadius ) + ( StationaryObstacle . stationaryObstacleMinRadius ) ) // 2 ) ) ; StationaryObstacle sob = new StationaryObstacle ( sketch , ( obDiameter // 1.5F ) ) ; sob . key = key ; sob . x = ( x ) - ( ( Sketch . cos ( theta ) ) * ( sob . radius ) ) ; sob . y = ( y ) - ( ( Sketch . sin ( theta ) ) * ( sob . radius ) ) ; theta = theta + ( ( 3.1415F * 2 ) // ( key . obstaclesRemaining ) ) ; contents . add ( sob ) ; ( key . obstaclesAroundKey ) -- ; } this . contents . add ( key ) ; } } public void generateStationaryObstacles ( int minNumber , int maxNumber ) { } public void generateMovingObstacles ( ) { } public void generateWanderingEnemy ( ) { } public boolean update ( ) { } public WorldView getView ( ) { } public void draw ( WorldView view ) { } }

Fix:
if ( ( tmp < ( difficulty ) ) && ( ( level ) >= 3 ) ) {
Buggy code:
@ RunWith ( Arquillian . class ) public class BasicIIOPInvocationTestCase { @ Deployment ( name = "server" , testable = false ) @ TargetsContainer ( "iiop-server" ) public static Archive < ? > deployment ( ) { } @ Deployment ( name = "client" , testable = true ) @ TargetsContainer ( "iiop-client" ) public static Archive < ? > clientDeployment ( ) { } @ Test @ OperateOnDeployment ( "client" ) public void testRemoteIIOPInvocation ( ) throws IOException , NamingException { } @ Test @ OperateOnDeployment ( "client" ) public void testHomeHandle ( ) throws IOException , NamingException { } @ Test @ OperateOnDeployment ( "client" ) public void testHandle ( ) throws IOException , NamingException { } @ Test @ OperateOnDeployment ( "client" ) public void testWrappedHandle ( ) throws IOException , NamingException { final ClientEjb ejb = client ( ) ; <START_BUG> Assert . assertEquals ( "hello" , ejb . getRemoteViaWrappedHandle ( ) ) ; <END_BUG> } @ Test @ OperateOnDeployment ( "client" ) public void testEjbMetadata ( ) throws IOException , NamingException { } @ Test @ OperateOnDeployment ( "client" ) public void testIsIdentical ( ) throws IOException , NamingException { } private ClientEjb client ( ) throws NamingException { } }

Fix:
Assert . assertEquals ( "hello" , ejb . getRemoteViaHandleMessage ( ) ) ;
Buggy code:
public class ToList extends DefaultReporter { public Syntax getSyntax ( ) { } public Object report ( Argument [ ] args , Context context ) throws ExtensionException , LogoException { String s = args [ 0 ] . getString ( ) ; LogoListBuilder list = new LogoListBuilder ( ) ; for ( char c : s . toCharArray ( ) ) { <START_BUG> list . add ( c ) ; <END_BUG> } return list . toLogoList ( ) ; } }

Fix:
list . add ( Character . toString ( c ) ) ;
Buggy code:
public class WrappedLargeByteBuffer implements LargeByteBuffer { public final ByteBuffer [ ] underlying ; private final Long totalCapacity ; private final long [ ] chunkOffsets ; private long _pos ; private int currentBufferIdx ; private ByteBuffer currentBuffer ; private long limit ; public WrappedLargeByteBuffer ( ByteBuffer [ ] underlying ) { } @ Override public long capacity ( ) { } @ Override public void get ( byte [ ] dest , int offset , int length ) { int moved = 0 ; while ( moved < length ) { int toRead = Math . min ( ( length - moved ) , currentBuffer . remaining ( ) ) ; <START_BUG> currentBuffer . get ( dest , offset , toRead ) ; <END_BUG> moved += toRead ; updateCurrentBuffer ( ) ; } _pos += moved ; } @ Override public byte get ( ) { } private void updateCurrentBuffer ( ) { } @ Override public void put ( LargeByteBuffer bytes ) { } @ Override public long position ( ) { } @ Override public void position ( long newPosition ) { } @ Override public long remaining ( ) { } @ Override public WrappedLargeByteBuffer duplicate ( ) { } @ Override public long limit ( ) { } @ Override public void limit ( long newLimit ) { } @ Override public long writeTo ( WritableByteChannel channel ) throws IOException { } @ Override public ByteBuffer firstByteBuffer ( ) { } @ Override public List < ByteBuffer > nioBuffers ( ) { } }

Fix:
currentBuffer . get ( dest , ( offset + moved ) , toRead ) ;
Buggy code:
public class UploadPage extends WicketExamplePage { private static Log log = LogFactory . getLog ( UploadPage . class ) ; private List files = new ArrayList ( ) ; private UploadPage . FileListView fileListView ; private Folder uploadFolder ; public UploadPage ( final PageParameters parameters ) { } private void refreshFiles ( ) { <START_BUG> fileListView . modelChangeImpending ( ) ; <END_BUG> files . clear ( ) ; files . addAll ( Arrays . asList ( uploadFolder . listFiles ( ) ) ) ; } private void checkFileExists ( File newFile ) { } private class FileUploadForm extends UploadForm { private FileUploadField fileUploadField ; public FileUploadForm ( String name ) { } protected void onSubmit ( ) { } private String afterLast ( final String s , final char c ) { } } private class FileListView extends ListView { public FileListView ( String name , final List files ) { } protected void populateItem ( ListItem listItem ) { } } }

Fix:
fileListView . modelChanging ( ) ;
Buggy code:
public class KVMServer { private final Object setupLock = new Object ( ) ; private MonitorSetup setup ; private InputManager mouseManager = new InputManager ( this ) ; private Monitor activeMonitor ; private Monitor hostMonitor ; @ Inject private MioServer server ; @ Inject private Stage configStage ; @ Inject private MouseMessager messager ; @ Inject private EventEmitter emitter ; @ Inject private String newMonitorBalloonHeader ; @ Inject private String newMonitorBalloonText ; @ Inject private String monitorReconnectBalloonHeader ; @ Inject private String monitorReconnectBalloonText ; @ PostConstruct void initialise ( ) { } public void setConfiguration ( MonitorSetup setup ) { } public MonitorSetup getConfiguration ( ) { } static final int BORDER = 2 ; void setMousePosition ( Point p ) { synchronized ( setupLock ) { <START_BUG> if ( ( this . setup ) != null ) { <END_BUG> try { DimensionScale scale = new DimensionScale ( this . hostMonitor . getSize ( ) , this . activeMonitor . getSize ( ) ) ; Point scaledPoint = scale . scalePoint ( p ) ; this . activeMonitor . setMousePosition ( scaledPoint ) ; updateActiveClient ( ) ; if ( ( activeMonitor . getMousePosition ( ) . x ) > ( ( activeMonitor . getSize ( ) . width ) - ( KVMServer . BORDER ) ) ) { this . doTransition ( 1 , 0 , KVMServer . BORDER , p . y ) ; } else if ( ( activeMonitor . getMousePosition ( ) . x ) < ( KVMServer . BORDER ) ) { this . doTransition ( ( - 1 ) , 0 , ( ( hostMonitor . getSize ( ) . width ) - ( KVMServer . BORDER ) ) , p . y ) ; } else if ( ( activeMonitor . getMousePosition ( ) . y ) > ( ( activeMonitor . getSize ( ) . height ) - ( KVMServer . BORDER ) ) ) { this . doTransition ( 0 , 1 , p . x , KVMServer . BORDER ) ; } else if ( ( activeMonitor . getMousePosition ( ) . y ) < ( KVMServer . BORDER ) ) { this . doTransition ( 0 , ( - 1 ) , p . x , ( ( hostMonitor . getSize ( ) . height ) - ( KVMServer . BORDER ) ) ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } } } } void updateActiveClient ( ) { } private void doTransition ( int x , int y , int px , int py ) { } void mousePressed ( int button ) { } void mouseReleased ( int button ) { } void keyPressed ( int k ) { } void keyReleased ( int k ) { } private void onConnection ( AsynchronousObjectSocketChannel client ) { } private void onDisconnect ( AsynchronousObjectSocketChannel client ) { } }

Fix:
if ( ( ( this . setup ) != null ) && ( ( hostMonitor ) != null ) ) {
Buggy code:
public class FileBtree < Value extends Sizeofable > { private Long root ; private int depth ; private RamFileBtree ramParent ; public FileBtree ( BTree bTree , long keyMaxSize , long ValueMaxSize , RamFileBtree ramParent ) { } class FileBtNode < Value extends Sizeofable & Parsable > { protected final Class valueClassType ; protected Long myPointer ; protected Long parent ; private int size ; protected final int NODE_HALF_MAX_SIZE ; protected final int NODE_MAX_SIZE ; protected final int KEY_MAX_SIZE ; protected final int VALUE_MAX_SIZE ; protected Vector < Pair < String , Value > > keyValPair ; protected Vector < Long > child ; FileBtNode ( Long myPointer , int nodeHalfMaxSize , Class valueClassType , int keyMaxSize , int ValueMaxSize ) { } private void fetchNodeFromHard ( ) { } private void commitChanges ( ) { } protected void insert ( Pair < String , Value > newNode , long biggerChildPointer , long smallerChildPointer ) { } private int binarySearchForLocationToAdd ( String key ) { } private int binarySearchForLocationToAdd ( String key , int from , int to ) { } protected FileBtree . FileBtNode [ ] splitCurrentNode ( ) { } protected void moveDataToSiblingAndParent ( FileBtree . FileBtNode newNode , int offset ) { for ( int i = offset ; i <= ( NODE_MAX_SIZE ) ; i ++ ) { if ( ( ( ( keyValPair . size ( ) ) - 1 ) < offset ) || ( ( ( child . size ( ) ) - 1 ) < offset ) ) System . out . println ( "ohhhh<seq2seq4repair_space>nooo" ) ; if ( i == offset ) { Long smallerChild = child . remove ( offset ) ; Long biggerChild = child . remove ( offset ) ; newNode . insert ( keyValPair . remove ( offset ) , biggerChild , smallerChild ) ; } else <START_BUG> newNode . insert ( keyValPair . remove ( offset ) , child . remove ( offset ) , null ) ; <END_BUG> } } public int getSize ( ) { } } No newline ; at end ; of file ; }

Fix:
newNode . insert ( keyValPair . remove ( offset ) , child . remove ( offset ) , ( - 1 ) ) ;
Buggy code:
public final class WicketTagIdentifier extends AbstractMarkupFilter { private static List < String > wellKnownTagNames ; private final MarkupResourceStream markup ; public WicketTagIdentifier ( final MarkupResourceStream markup ) { } @ Override protected MarkupElement onComponentTag ( ComponentTag tag ) throws ParseException { final String namespace = markup . getWicketNamespace ( ) ; final String wicketIdValue = tag . getAttributes ( ) . getString ( ( namespace + ":id" ) ) ; if ( namespace . equalsIgnoreCase ( tag . getNamespace ( ) ) ) { tag = new org . apache . wicket . markup . WicketTag ( tag . getXmlTag ( ) ) ; if ( Strings . isEmpty ( wicketIdValue ) ) { <START_BUG> tag . setId ( ( ( "_" + ( tag . getName ( ) ) ) + ( getCount ( ) ) ) ) ; <END_BUG> tag . setAutoComponentTag ( true ) ; tag . setModified ( true ) ; } if ( ! ( isWellKnown ( tag ) ) ) { throw new org . apache . wicket . markup . WicketParseException ( ( ( "Unknown<seq2seq4repair_space>tag<seq2seq4repair_space>name<seq2seq4repair_space>with<seq2seq4repair_space>Wicket<seq2seq4repair_space>namespace:<seq2seq4repair_space>'" + ( tag . getName ( ) ) ) + "'.<seq2seq4repair_space>Might<seq2seq4repair_space>be<seq2seq4repair_space>you<seq2seq4repair_space>haven't<seq2seq4repair_space>installed<seq2seq4repair_space>the<seq2seq4repair_space>appropriate<seq2seq4repair_space>resolver?" ) , tag ) ; } } if ( wicketIdValue != null ) { if ( ( wicketIdValue . trim ( ) . length ( ) ) == 0 ) { throw new org . apache . wicket . markup . WicketParseException ( "The<seq2seq4repair_space>wicket:id<seq2seq4repair_space>attribute<seq2seq4repair_space>value<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>empty.<seq2seq4repair_space>May<seq2seq4repair_space>be<seq2seq4repair_space>unmatched<seq2seq4repair_space>quotes?!?" , tag ) ; } tag . setId ( wicketIdValue ) ; } return tag ; } public static final void registerWellKnownTagName ( final String name ) { } private boolean isWellKnown ( final ComponentTag tag ) { } }

Fix:
tag . setId ( ( "_wicket_" + ( tag . getName ( ) ) ) ) ;
Buggy code:
public class ReachTopology { public static Map < String , List < String > > TWEETERS_DB = new HashMap < String , List < String > > ( ) { } ; public static Map < String , List < String > > FOLLOWERS_DB = new HashMap < String , List < String > > ( ) { } ; public static class GetTweeters extends BaseBasicBolt { @ Override public void execute ( Tuple tuple , BasicOutputCollector collector ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static class GetFollowers extends BaseBasicBolt { @ Override public void execute ( Tuple tuple , BasicOutputCollector collector ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static class PartialUniquer extends BaseBatchBolt { BatchOutputCollector _collector ; Object _id ; Set < String > _followers = new HashSet < String > ( ) ; @ Override public void prepare ( Map conf , TopologyContext context , BatchOutputCollector collector , Object id ) { } @ Override public void execute ( Tuple tuple ) { } @ Override public void finishBatch ( ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static class CountAggregator extends BaseBatchBolt { BatchOutputCollector _collector ; Object _id ; int _count = 0 ; @ Override public void prepare ( Map conf , TopologyContext context , BatchOutputCollector collector , Object id ) { } @ Override public void execute ( Tuple tuple ) { } @ Override public void finishBatch ( ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static LinearDRPCTopologyBuilder construct ( ) { } public static void main ( String [ ] args ) throws Exception { LinearDRPCTopologyBuilder builder = ReachTopology . construct ( ) ; Config conf = new Config ( ) ; if ( ( args == null ) || ( ( args . length ) == 0 ) ) { conf . setMaxTaskParallelism ( 3 ) ; LocalDRPC drpc = new LocalDRPC ( ) ; LocalCluster cluster = new LocalCluster ( ) ; cluster . submitTopology ( "reach-drpc" , conf , builder . createLocalTopology ( drpc ) ) ; String [ ] urlsToTry = new String [ ] { "foo.com//blog//1" , "engineering.twitter.com//blog//5" , "notaurl.com" } ; for ( String url : urlsToTry ) { System . out . println ( ( ( ( "Reach<seq2seq4repair_space>of<seq2seq4repair_space>" + url ) + ":<seq2seq4repair_space>" ) + ( drpc . execute ( "reach" , url ) ) ) ) ; } cluster . shutdown ( ) ; drpc . shutdown ( ) ; } else { conf . setNumWorkers ( 6 ) ; <START_BUG> StormSubmitter . submitTopologyWithProgressBar ( args [ 0 ] , conf , builder . createRemoteTopology ( ) ) ; <END_BUG> } } }

Fix:
StormSubmitter . submitTopology ( args [ 0 ] , conf , builder . createRemoteTopology ( ) ) ;