nus-yam/ex-repair huggingface dataset:
Buggy code:
@ Entity @ Table ( name = "cvr_company" ) public class CompanyEntity extends DobbeltHistorikBase < CompanyEntity , CompanyVersionEntity > implements OutputFormattable , Cacheable { public CompanyEntity ( ) { } @ OneToMany ( mappedBy = "entity" , fetch = FetchType . LAZY , cascade = CascadeType . ALL ) private Collection < CompanyVersionEntity > versions ; @ Override public Collection < CompanyVersionEntity > getVersions ( ) { } public void setVersions ( Collection < CompanyVersionEntity > versions ) { } @ OneToOne ( fetch = FetchType . EAGER , cascade = CascadeType . ALL ) private CompanyVersionEntity latestVersion ; @ Override public CompanyVersionEntity getLatestVersion ( ) { } @ Override public void setLatestVersion ( CompanyVersionEntity latestVersion ) { } @ OneToOne private CompanyVersionEntity preferredVersion ; @ Override public CompanyVersionEntity getPreferredVersion ( ) { } @ Override public void setPreferredVersion ( CompanyVersionEntity preferredVersion ) { } @ Override protected CompanyVersionEntity createVersionEntity ( ) { } @ Column ( nullable = false ) @ Index ( name = "cvrNummerIndex" ) private String cvrNummer ; public String getCvrNummer ( ) { } public void setCvrNummer ( String cvrNummer ) { } @ Override public String getTypeName ( ) { } @ Override public JSONObject toJSON ( ) { } public JSONObject toJSON ( CompanyVersionEntity version ) { } @ Override public JSONObject toFullJSON ( ) { } public static final String databaseKey = "company" ; public static Condition cvrCondition ( SearchParameters parameters ) { } public static Condition cvrCondition ( String cvrNummer ) { } public static Condition virksomhedCondition ( SearchParameters parameters ) { if ( parameters . has ( VIRKSOMHED ) ) { <START_BUG> return RepositoryUtil . whereField ( parameters . get ( VIRKSOMHED ) , null , ( ( CompanyEntity . databaseKey ) + ".latestVersion.name" ) ) ; <END_BUG> } return null ; } public static String joinCompanyUnit ( ) { } @ Override public String [ ] getIdentifiers ( ) { } }

Fix:
return RepositoryUtil . whereField ( parameters . get ( VIRKSOMHED ) , null , ( ( CompanyEntity . databaseKey ) + ".latestVersion.companyInfo.name" ) ) ;
Buggy code:
public class ReplyWithTemplateCommand extends ReplyCommand { public ReplyWithTemplateCommand ( DefaultCommandReference [ ] references ) { } public void execute ( WorkerStatusController worker ) throws Exception { model = new ComposerModel ( ) ; MessageFolder folder = ( ( MessageFolder ) ( ( ( FolderCommandReference ) ( getReferences ( ) [ 0 ] ) ) . getFolder ( ) ) ) ; Object [ ] uids = ( ( FolderCommandReference ) ( getReferences ( ) [ 0 ] ) ) . getUids ( ) ; FolderCommandReference [ ] ref = new FolderCommandReference [ 1 ] ; ref [ 0 ] = new FolderCommandReference ( folder , uids ) ; ref [ 0 ] . setMarkVariant ( MARK_AS_ANSWERED ) ; MarkMessageCommand c = new MarkMessageCommand ( ref ) ; c . execute ( worker ) ; initHeader ( folder , uids ) ; MimeTree mimePartTree = folder . getMimePartTree ( uids [ 0 ] ) ; XmlElement html = config . getMainFrameOptionsConfig ( ) . getRoot ( ) . getElement ( "//options//html" ) ; MimePart bodyPart = null ; if ( Boolean . valueOf ( html . getAttribute ( "prefer" ) ) . booleanValue ( ) ) { bodyPart = mimePartTree . getFirstTextPart ( "html" ) ; } else { bodyPart = mimePartTree . getFirstTextPart ( "plain" ) ; } if ( bodyPart != null ) { initMimeHeader ( bodyPart ) ; StringBuffer bodyText ; Integer [ ] address = bodyPart . getAddress ( ) ; <START_BUG> String quotedBodyText = createQuotedBody ( folder , uids , address ) ; <END_BUG> String templateBody = getTemplateBody ( ) ; model . setBodyText ( ( quotedBodyText + templateBody ) ) ; } else { model . setBodyText ( getTemplateBody ( ) ) ; } } private String getTemplateBody ( ) throws IOException , Exception , CommandCancelledException { } }

Fix:
String quotedBodyText = createQuotedBody ( bodyPart . getHeader ( ) , folder , uids , address ) ;
Buggy code:
public class NewMemoryFragLayout extends BaseFragment { public interface OnNewMemoryFragmentListener { public void onAddPhotosClicked ( ) { } } private Activity context ; private NewMemoryFragLayout . OnNewMemoryFragmentListener listener ; private View view ; private ArrayList < EditText > friendsEditText = new ArrayList < > ( ) ; private LayoutInflater inflater ; private ImageView image1ImageView ; private ImageView image2ImageView ; private ImageView image3ImageView ; private TextView memoryDatePicker ; private RelativeLayout newPhotoView1 ; private RelativeLayout newPhotoView2 ; private RelativeLayout newPhotoView3 ; private List < String > imagesPaths = new ArrayList < > ( ) ; @ Override public void onAttach ( Activity activity ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } private void initAll ( ) { } private void updateView ( ) { } private void initFriends ( final ViewGroup finalMemoryItem , final LinearLayout friendsContainer ) { } private void initPhotos ( final ViewGroup finalMemoryItem , final LinearLayout photosContainer ) { } private void openGallery ( ) { } public void updatePhotos ( ) { if ( ( PhotoUtils . getSelectedPhotos ( ) . size ( ) ) > 0 ) { newPhotoView1 . setVisibility ( VISIBLE ) ; newPhotoView2 . setVisibility ( INVISIBLE ) ; newPhotoView3 . setVisibility ( INVISIBLE ) ; image1ImageView . setImageBitmap ( PhotoUtils . getSelectedPhotos ( ) . get ( 0 ) . getThumbnail ( ) ) ; image2ImageView . setImageDrawable ( getResources ( ) . getDrawable ( gallery_arrow_right ) ) ; } else { newPhotoView1 . setVisibility ( VISIBLE ) ; newPhotoView2 . setVisibility ( INVISIBLE ) ; newPhotoView3 . setVisibility ( INVISIBLE ) ; image1ImageView . setImageDrawable ( getResources ( ) . getDrawable ( gallery_arrow_right ) ) ; } if ( ( PhotoUtils . getSelectedPhotos ( ) . size ( ) ) > 1 ) { newPhotoView2 . setVisibility ( VISIBLE ) ; newPhotoView3 . setVisibility ( VISIBLE ) ; image1ImageView . setImageBitmap ( PhotoUtils . getSelectedPhotos ( ) . get ( 0 ) . getThumbnail ( ) ) ; image2ImageView . setImageBitmap ( PhotoUtils . getSelectedPhotos ( ) . get ( 1 ) . getThumbnail ( ) ) ; image3ImageView . setImageDrawable ( getResources ( ) . getDrawable ( gallery_arrow_right ) ) ; } else if ( ( PhotoUtils . getSelectedPhotos ( ) . size ( ) ) == 1 ) { newPhotoView2 . setVisibility ( VISIBLE ) ; newPhotoView3 . setVisibility ( INVISIBLE ) ; <START_BUG> image2ImageView . setImageBitmap ( PhotoUtils . getSelectedPhotos ( ) . get ( 0 ) . getThumbnail ( ) ) ; <END_BUG> } } private OnDateSetListener datePickerListener = new DatePickerDialog . OnDateSetListener ( ) { public void onDateSet ( DatePicker view , int selectedYear , int selectedMonth , int selectedDay ) { } } ; }

Fix:
image2ImageView . setImageDrawable ( getResources ( ) . getDrawable ( gallery_arrow_right ) ) ;
Buggy code:
public class ActionGoToEdit extends UMLAction { protected String _tabName ; public ActionGoToEdit ( String tabName ) { } public boolean shouldBeEnabled ( ) { ProjectBrowser pb = ProjectBrowser . TheInstance ; <START_BUG> Project p = pb . getProject ( ) ; <END_BUG> if ( ( ! ( super . shouldBeEnabled ( ) ) ) || ( p == null ) ) return false ; MultiEditorPane mep = pb . getEditorPane ( ) ; return ( mep . getIndexOfNamedTab ( _tabName ) ) != ( - 1 ) ; } public void actionPerformed ( ActionEvent ae ) { } }

Fix:
Project p = ProjectManager . getManager ( ) . getCurrentProject ( ) ;
Buggy code:
public class JMSTopicAddJndiHandler extends AbstractAddJndiHandler { public static final JMSTopicAddJndiHandler INSTANCE = new JMSTopicAddJndiHandler ( ) ; private JMSTopicAddJndiHandler ( ) { } @ Override protected void addJndiNameToControl ( String toAdd , String resourceName , HornetQServer server , OperationContext context ) { } @ Override public ModelNode getModelDescription ( Locale locale ) { <START_BUG> return MessagingDescriptions . getAddJndiOperation ( locale , "topic" ) ; <END_BUG> } }

Fix:
return MessagingDescriptions . getAddJndiOperation ( locale , "jms-topic" ) ;
Buggy code:
public class SelectSelector extends BaseSelectorContainer { private String ifProperty ; private String unlessProperty ; public SelectSelector ( ) { } public String toString ( ) { } private SelectSelector getRef ( ) { } public boolean hasSelectors ( ) { } public int selectorCount ( ) { } public FileSelector [ ] getSelectors ( Project p ) { } public Enumeration selectorElements ( ) { } public void appendSelector ( FileSelector selector ) { } public void verifySettings ( ) { int cnt = selectorCount ( ) ; if ( ( cnt < 0 ) || ( cnt > 1 ) ) { <START_BUG> setError ( ( "Only<seq2seq4repair_space>one<seq2seq4repair_space>selector<seq2seq4repair_space>is<seq2seq4repair_space>allowed<seq2seq4repair_space>within<seq2seq4repair_space>the<seq2seq4repair_space>" + "<select><seq2seq4repair_space>tag" ) ) ; <END_BUG> } } public boolean passesConditions ( ) { } public void setIf ( String ifProperty ) { } public void setUnless ( String unlessProperty ) { } public boolean isSelected ( File basedir , String filename , File file ) { } }

Fix:
setError ( ( "Only<seq2seq4repair_space>one<seq2seq4repair_space>selector<seq2seq4repair_space>is<seq2seq4repair_space>allowed<seq2seq4repair_space>within<seq2seq4repair_space>the<seq2seq4repair_space>" + "<selector><seq2seq4repair_space>tag" ) ) ;
Buggy code:
public class ResponseReaderTest { @ Test public void testConstructor ( ) { } @ Test ( expected = ServerStatusException . class ) public void testBadStatusLine ( ) { } @ Test public void testGoodStatusLine ( ) { } @ Test public void testCommandError ( ) { } @ Test public void testCommandError2 ( ) { } @ Test ( expected = MessageSyntaxException . class ) public void testBadCommand ( ) { } @ Test ( expected = MessageSyntaxException . class ) public void testBadCommand2 ( ) { } @ Test ( expected = MessageSyntaxException . class ) public void testBadCommand3 ( ) { } @ Test ( expected = MessageSyntaxException . class ) public void testBadCommand4 ( ) { } @ Test ( expected = MessageSyntaxException . class ) public void testBadCommand5 ( ) { } @ Test public void testLogin ( ) { } @ Test public void testLogin2 ( ) { } @ Test public void testVirtualLogin ( ) { } @ Test public void testNewVirtualLogin ( ) { } @ Test public void testLoginRefused ( ) { } @ Test public void testVirtualLoginRefused ( ) { } @ Test public void testNewVirtualLoginRefused ( ) { } @ Test public void testStaffLoginRefused ( ) { } @ Test public void testStaffLoginAllowed ( ) { } @ Test public void testLogoutRefused ( ) { } @ Test public void testLogoutAllowed ( ) { } @ Test public void testAccountRefused ( ) { } @ Test public void testVirtualAccountRefused ( ) { } @ Test public void testNewVirtualAccountRefused ( ) { } @ Test public void testAccountAllowed ( ) { } @ Test public void testVirtualAccountAllowed ( ) { } @ Test public void testNewVirtualAccountAllowed ( ) { } @ Test public void testNoteAllowed ( ) { } @ Test public void testNoteRefused ( ) { } @ Test public void testFacilityAllowed ( ) { } @ Test public void testFacilityRefused ( ) { } @ Test public void testProjectYes ( ) { } @ Test public void testProjectNo ( ) { } @ Test public void testTimerYes ( ) { } @ Test public void testTimerNo ( ) { } @ Test public void testFullScreenYes ( ) { } @ Test public void testFullScreenNo ( ) { } @ Test public void testFacilityYes ( ) { } @ Test public void testFacilityNo ( ) { } @ Test public void testFacilityCount ( ) { } @ Test public void testFacilityList ( ) { <START_BUG> Response r = reader ( ) . read ( source ( "101:?f1;f2;f3;|\n" ) ) ; <END_BUG> assertEquals ( FACILITY_LIST , r . getType ( ) ) ; assertTrue ( ( r instanceof FacilityListResponse ) ) ; assertEquals ( 3 , ( ( FacilityListResponse ) ( r ) ) . getList ( ) . size ( ) ) ; assertEquals ( "f1" , ( ( FacilityListResponse ) ( r ) ) . getList ( ) . get ( 0 ) ) ; assertEquals ( "f2" , ( ( FacilityListResponse ) ( r ) ) . getList ( ) . get ( 1 ) ) ; assertEquals ( "f3" , ( ( FacilityListResponse ) ( r ) ) . getList ( ) . get ( 2 ) ) ; } @ Test public void testSystemPasswordNo ( ) { } @ Test public void testSystemPasswordYes ( ) { } @ Test public void testNetDriveNo ( ) { } @ Test public void testNetDriveYes ( ) { } @ Test public void testNetDriveYesEmpty ( ) { } private ResponseReader reader ( ) { } private InputStream source ( String text ) { } }

Fix:
Response r = reader ( ) . read ( source ( "101:;f1;f2;f3;|\n" ) ) ;
Buggy code:
public class AnnotationDrivenBeanDefinitionParserTests { private GenericWebApplicationContext appContext ; @ Before public void setup ( ) { } @ Test public void testMessageCodesResolver ( ) { loadBeanDefinitions ( "mvc-config-message-codes-resolver.xml" ) ; RequestMappingHandlerAdapter adapter = appContext . getBean ( RequestMappingHandlerAdapter . class ) ; assertNotNull ( adapter ) ; <START_BUG> Object initializer = new org . springframework . beans . DirectFieldAccessor ( adapter ) . getPropertyValue ( "webBindingInitializer" ) ; <END_BUG> assertNotNull ( initializer ) ; MessageCodesResolver resolver = ( ( org . springframework . web . bind . support . ConfigurableWebBindingInitializer ) ( initializer ) ) . getMessageCodesResolver ( ) ; assertNotNull ( resolver ) ; assertEquals ( TestMessageCodesResolver . class , resolver . getClass ( ) ) ; } @ Test public void testMessageConverters ( ) { } @ Test public void testMessageConvertersWithoutDefaultRegistrations ( ) { } @ SuppressWarnings ( "unchecked" ) @ Test public void testArgumentResolvers ( ) { } @ SuppressWarnings ( "unchecked" ) @ Test public void testReturnValueHandlers ( ) { } @ Test public void beanNameUrlHandlerMapping ( ) { } private void loadBeanDefinitions ( String fileName ) { } @ SuppressWarnings ( "unchecked" ) private void verifyMessageConverters ( Object bean , boolean hasDefaultRegistrations ) { } }

Fix:
Object initializer = adapter . getWebBindingInitializer ( ) ;
Buggy code:
@ Injector public class MultiDataSourceServiceImpl implements MultiDataSourceService { static final Logger LOG = LoggerFactory . getLogger ( MultiDataSourceServiceImpl . class ) ; public static final String MULTI_DS_ID = "multi.datasource" ; public static final String PREFIX_FILE = "file." ; @ InjectPlugin static DataSourcePlugin _plugin ; Map < String , DataSourceService > dsMap = new HashMap < String , DataSourceService > ( ) ; @ Start public void start ( ) { String [ ] ids = MultiDataSourceServiceImpl . _plugin . getConfig ( MultiDataSourceServiceImpl . MULTI_DS_ID , "" ) . split ( "\\s+" ) ; for ( String id : ids ) { DruidServiceImpl ds = new DruidServiceImpl ( ) ; try { <START_BUG> ds . initDataSource ( ( ( MultiDataSourceServiceImpl . PREFIX_FILE ) + id ) ) ; <END_BUG> } catch ( PluginException e ) { MultiDataSourceServiceImpl . LOG . error ( ( "{}<seq2seq4repair_space>-><seq2seq4repair_space>" + ( e . getMessage ( ) ) ) , id ) ; System . exit ( 1 ) ; } dsMap . put ( id , ds ) ; } } @ Stop public void stop ( ) { } @ Override public DataSourceService getDataSourceService ( String id ) { } @ Override public Connection getConnection ( String id ) throws SQLException { } @ Override public void recycleConnection ( String id , Connection conn ) throws SQLException { } @ Override public void closeConnection ( String id , Connection conn ) throws SQLException { } }

Fix:
ds . initDataSource ( MultiDataSourceServiceImpl . _plugin . getConfig ( ( ( MultiDataSourceServiceImpl . PREFIX_FILE ) + id ) ) ) ;
Buggy code:
public class Json { private static final char C = '"' ; public static final String CC = "" + ( Json . C ) ; private static final char BACKSLASH = '\\' ; public static final String MASKED_BACKSLASH = ( ( Json . BACKSLASH ) + "" ) + ( Json . BACKSLASH ) ; private static final char QUOTE = '\'' ; public static final String MASKED_QUOTE = ( ( Json . BACKSLASH ) + "" ) + ( Json . QUOTE ) ; private final StringBuilder b ; private boolean appended ; public Json ( ) { } public Json s ( ) { } public Json link ( final String text , final String link , @ Nullable final String hoverText ) { } public Json add ( final String text , @ Nullable final Format ... formats ) { } public Json add ( final String text , @ Nullable final String hoverText , @ Nullable final Format ... formats ) { } public Json add ( final String text , @ Nullable final String hoverText , @ Nullable final String clickAction , @ Nullable final String clickValue , @ Nullable final Format ... formats ) { } private Json addFinal ( final String text , final String hoverText , final String clickAction , final String clickValue , final Format ... formats ) { } public void sendTo ( final String name ) { } public void sendToEveryone ( @ Nullable final String permission ) { } @ Override public String toString ( ) { } public static void sendTo ( final CommandSender cs , final String json ) { } public static void sendTo ( final String player , final String json ) { } public static void sendToU ( final String player , final String json ) { } public static String fixStrings ( final String s ) { } public static String escapeInputString ( final String s ) { <START_BUG> return s . replaceAll ( ( "" + ( Json . BACKSLASH ) ) , Json . MASKED_BACKSLASH ) . replace ( ( "" + ( Json . QUOTE ) ) , Json . MASKED_QUOTE ) ; <END_BUG> } No newline ; at end ; of file ; }

Fix:
return s . replace ( ( "" + ( Json . BACKSLASH ) ) , Json . MASKED_BACKSLASH ) . replace ( ( "" + ( Json . QUOTE ) ) , Json . MASKED_QUOTE ) ;
Buggy code:
public class TCPClient { Socket socket ; DataOutputStream outToServer ; InputStream is ; PrintWriter out ; public void startTCP ( String host , int port ) throws IOException , UnknownHostException { } public void closeTCP ( ) throws IOException { } public String read ( ) throws IOException { } public String readAll ( ) throws IOException { } public void write ( String output ) throws IOException { <START_BUG> out . print ( output ) ; <END_BUG> } }

Fix:
out . println ( output ) ;
Buggy code:
@ Repository ( "chatUserDaoImpl" ) public class ChatUserDaoImpl extends AbstractDaoImpl < ChatUser > implements ChatUserDao { private static final Logger log = Logger . getLogger ( ClassNameUtil . getCurrentClassName ( ) ) ; @ Autowired @ Qualifier ( "jdbcTemplate" ) private JdbcTemplate jdbcTemplate ; public ChatUserDaoImpl ( ) { } @ Override public List < ChatRoom > listOfRoomsByUserId ( Integer userId ) { } @ Override public Boolean createRoomInUserList ( Integer userId , Integer roomId ) { <START_BUG> Integer seqId = super . getIdFromSequencer ( "USERS_ROOMS_SEQ" ) ; <END_BUG> String query = "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>CHAT.USERS_ROOMS<seq2seq4repair_space>VALUES<seq2seq4repair_space>(?,<seq2seq4repair_space>?,<seq2seq4repair_space>?)" ; ChatUserDaoImpl . log . info ( ( ( ( ( ( ( ( query + "<seq2seq4repair_space>[seqId=" ) + seqId ) + ",<seq2seq4repair_space>userId=" ) + userId ) + ",<seq2seq4repair_space>roomId=" ) + roomId ) + "]" ) ) ; int result = jdbcTemplate . update ( query , new Object [ ] { seqId , userId , roomId } ) ; return result == 1 ? true : false ; } @ Override public Boolean deleteRoomFromUserList ( Integer userId , Integer roomId ) { } }

Fix:
Integer seqId = super . getIdFromSequencer ( ) ;
Buggy code:
public class FilterToolbar extends JPanel implements ActionListener , ItemListener , ISelectionListener { public JButton clearButton ; private JButton searchButton ; private ComboMenu criteriaComboMenu ; private JLabel label ; private JTextField textField ; private TableController tableController ; private IFolder sourceFolder ; private String selectedItem ; private boolean active ; String [ ] strs = new String [ ] { "subject_contains" , "from_contains" , "to_contains" , "cc_contains" , "bcc_contains" , "body_contains" , "separator" , "unread_messages" , "flagged_messages" , "high_priority" , "spam_message" , "separator" , "custom_search" } ; private IFolder selectedFolder ; public FilterToolbar ( TableController headerTableViewer ) { } private ComboMenu createComboMenu ( ) { } public void initComponents ( ) { } public void layoutComponents ( ) { setBorder ( BorderFactory . createEmptyBorder ( 1 , 0 , 1 , 0 ) ) ; <START_BUG> FormLayout l = new FormLayout ( "default,<seq2seq4repair_space>1dlu,<seq2seq4repair_space>fill:default:grow,<seq2seq4repair_space>3dlu,<seq2seq4repair_space>default,<seq2seq4repair_space>3dlu,<seq2seq4repair_space>default" , "fill:default:grow" ) ; <END_BUG> PanelBuilder b = new PanelBuilder ( this , l ) ; CellConstraints c = new CellConstraints ( ) ; b . add ( criteriaComboMenu , c . xy ( 1 , 1 ) ) ; b . add ( textField , c . xy ( 3 , 1 ) ) ; b . add ( searchButton , c . xy ( 5 , 1 ) ) ; b . add ( clearButton , c . xy ( 7 , 1 ) ) ; } private void update ( ) throws Exception { } private int getIndex ( String name ) { } public void actionPerformed ( ActionEvent e ) { } private void resetToolbar ( ) { } private void executeSearch ( ) { } private VirtualFolder prepareSearchFolder ( FilterCriteria c , IFolder folder ) { } private FilterCriteria createFilterCriteria ( int index ) { } public void setPattern ( String pattern ) { } class MyKeyListener implements KeyListener { public void keyTyped ( KeyEvent e ) { } public void keyPressed ( KeyEvent e ) { } public void keyReleased ( KeyEvent e ) { } } class MyDocumentListener implements DocumentListener { public void insertUpdate ( DocumentEvent e ) { } public void removeUpdate ( DocumentEvent e ) { } public void changedUpdate ( DocumentEvent e ) { } public void update ( ) { } } public void itemStateChanged ( ItemEvent event ) { } private void executeCustomSearch ( ) { } public void selectionChanged ( SelectionChangedEvent e ) { } }

Fix:
FormLayout l = new FormLayout ( "default,<seq2seq4repair_space>3dlu,<seq2seq4repair_space>fill:default:grow,<seq2seq4repair_space>3dlu,<seq2seq4repair_space>default,<seq2seq4repair_space>3dlu,<seq2seq4repair_space>default" , "fill:default:grow" ) ;
Buggy code:
public class IntegerProperty extends NumberProperty { private static final long serialVersionUID = 240L ; private int value ; private int savedValue ; public IntegerProperty ( String name , int value ) { } @ Override public void setRunningVersion ( boolean runningVersion ) { } public void recoverRunningVersion ( TestElement owner ) { } public IntegerProperty ( String name ) { } public IntegerProperty ( ) { } public void setValue ( int value ) { } @ Override protected void setNumberValue ( Number n ) { } @ Override protected void setNumberValue ( String n ) throws NumberFormatException { } public String getStringValue ( ) { } public Object getObjectValue ( ) { <START_BUG> return new Integer ( value ) ; <END_BUG> } @ Override public Object clone ( ) { } @ Override public boolean getBooleanValue ( ) { } @ Override public double getDoubleValue ( ) { } @ Override public float getFloatValue ( ) { } @ Override public int getIntValue ( ) { } @ Override public long getLongValue ( ) { } }

Fix:
return Integer . valueOf ( value ) ;
Buggy code:
public class ProjectTreeNodeRenderer implements NodeRenderer < TreeNode < ? > > { private final ProjectTreeNodeRenderer . Css css ; private final ProjectTreeNodeRenderer . Resources resources ; private IconRegistry iconRegistry ; private FileTypeRegistry fileTypeRegistry ; private CoreLocalizationConstant constant ; private AppContext appContext ; @ Inject public ProjectTreeNodeRenderer ( ProjectTreeNodeRenderer . Resources resources , IconRegistry iconRegistry , FileTypeRegistry fileTypeRegistry , CoreLocalizationConstant constant , AppContext appContext ) { } @ Override public Element getNodeKeyTextContainer ( SpanElement treeNodeLabel ) { } @ Override public SpanElement renderNodeContents ( TreeNode < ? > data ) { } private SpanElement renderNodeContents ( ProjectTreeNodeRenderer . Css css , TreeNode < ? > node , boolean renderIcon ) { } private SVGImage detectIcon ( TreeNode < ? > node ) { } private boolean hasProblems ( ProjectListStructure . ProjectNode project ) { } @ Override public void updateNodeContents ( TreeNodeElement < TreeNode < ? > > treeNode ) { } private void setIdProperty ( com . google . gwt . dom . client . Element element , TreeNode < ? > node ) { String id = "//" + ( node . getId ( ) ) ; TreeNode < ? > parent = node . getParent ( ) ; while ( ( parent != null ) && ( ! ( parent . getId ( ) . equals ( "ROOT" ) ) ) ) { id = ( "//" + ( parent . getId ( ) ) ) + id ; parent = parent . getParent ( ) ; } <START_BUG> UIObject . ensureDebugId ( element , ( "projectTree-" + ( TextUtils . md5 ( id ) ) ) ) ; <END_BUG> } public interface Css extends TreeNodeMutator . Css { String file ( ) { } String folder ( ) { } String folderOpen ( ) { } String folderLoading ( ) { } String project ( ) { } String projectOpen ( ) { } String icon ( ) { } String label ( ) { } String folderFont ( ) { } String fileFont ( ) { } String defaultFont ( ) { } String root ( ) { } @ Override String nodeNameInput ( ) { } String treeFileIcon ( ) { } } public interface Resources extends Tree . Resources { @ Source ( { "FileTreeNodeRenderer.css" , "com//codenvy//ide//common//constants.css" , "com//codenvy//ide//api//ui//style.css" } ) ProjectTreeNodeRenderer . Css workspaceNavigationFileTreeNodeRendererCss ( ) { } @ Source ( "toConfigure.svg" ) SVGResource projectProblem ( ) { } @ Source ( "file.png" ) ImageResource file ( ) { } @ Source ( "folder_loading.gif" ) ImageResource folderLoading ( ) { } @ Source ( "folder_open.png" ) ImageResource folderOpen ( ) { } @ Source ( "folder.png" ) ImageResource folder ( ) { } @ Source ( "project_open.png" ) ImageResource projectOpen ( ) { } @ Source ( "project.png" ) ImageResource project ( ) { } } }

Fix:
UIObject . ensureDebugId ( element , ( "projectTree-" + ( TextUtils . md5 ( node . getDisplayName ( ) ) ) ) ) ;
Buggy code:
public class XAxisRendererRadarChart extends XAxisRenderer { private RadarChart mChart ; public XAxisRendererRadarChart ( ViewPortHandler viewPortHandler , XAxis xAxis , RadarChart chart ) { } @ Override public void renderAxisLabels ( Canvas c ) { if ( ( ! ( mXAxis . isEnabled ( ) ) ) || ( ! ( mXAxis . isDrawLabelsEnabled ( ) ) ) ) return ; mAxisPaint . setTypeface ( mXAxis . getTypeface ( ) ) ; mAxisPaint . setTextSize ( mXAxis . getTextSize ( ) ) ; mAxisPaint . setColor ( mXAxis . getTextColor ( ) ) ; float sliceangle = mChart . getSliceAngle ( ) ; float factor = mChart . getFactor ( ) ; PointF center = mChart . getCenterOffsets ( ) ; for ( int i = 0 ; i < ( mXAxis . getValues ( ) . size ( ) ) ; i ++ ) { String text = mXAxis . getValues ( ) . get ( i ) ; float angle = ( ( sliceangle * i ) + ( mChart . getRotationAngle ( ) ) ) % 360.0F ; <START_BUG> PointF p = Utils . getPosition ( center , ( ( ( mChart . getYChartMax ( ) ) * factor ) + ( ( mXAxis . mLabelWidth ) // 2.0F ) ) , angle ) ; <END_BUG> c . drawText ( text , p . x , ( ( p . y ) + ( ( mXAxis . mLabelHeight ) // 2.0F ) ) , mAxisPaint ) ; } } }

Fix:
PointF p = Utils . getPosition ( center , ( ( ( mChart . getYRange ( ) ) * factor ) + ( ( mXAxis . mLabelWidth ) // 2.0F ) ) , angle ) ;
Buggy code:
public class Perms { Client c ; private File f = new File ( "Permissions.txt" ) ; private File usr = new File ( "Users.txt" ) ; private Map < Integer , List < String > > commandPerms ; private Map < String , Integer > userPerms ; public Perms ( Client client ) { } public boolean register ( int level , String command ) { boolean result = false ; List < String > commands = commandPerms . get ( level ) ; <START_BUG> if ( commands != null ) { <END_BUG> commands . add ( command ) ; result = true ; } return result ; } public boolean hasPermisssion ( String command , String username ) { } public void setUserPerms ( String username , String permsLevel ) { } public void removeUserPerms ( String username ) { } private void addLine ( String line ) { } private void removeLine ( String line ) { } private static boolean isContain ( String source , String subItem ) { } }

Fix:
if ( ( commands != null ) && ( ! ( commands . contains ( commands ) ) ) ) {
Buggy code:
public class MaterialTabHost extends TabHost implements ViewPager . OnPageChangeListener { private static final int APP_TAB_ELEVATION = 4 ; public static enum Type { FullScreenWidth , Centered , LeftOffset ; } public interface OnTabChangeListener { public void onTabSelected ( int position ) { } } private final LayoutInflater inflater ; private final TabWidget tabWidget ; private final ShapeDrawable indicator ; private final int indicatorHeight ; private final int leftOffset ; private final int colorControlActivated ; private MaterialTabHost . Type type = MaterialTabHost . Type . FullScreenWidth ; private MaterialTabHost . OnTabChangeListener listener ; private int maxTabWidth = Integer . MIN_VALUE ; private int scrollingState = ViewPager . SCROLL_STATE_IDLE ; private int position = 0 ; private float positionOffset = 0 ; public MaterialTabHost ( Context context ) { } public MaterialTabHost ( Context context , AttributeSet attrs ) { } protected int getLayoutId ( MaterialTabHost . Type type ) { } public void addTab ( CharSequence title ) { } public void addTab ( View view ) { } @ Override protected void onLayout ( boolean changed , int left , int top , int right , int bottom ) { } @ Override protected void dispatchDraw ( Canvas canvas ) { } public void setOnTabChangeListener ( MaterialTabHost . OnTabChangeListener l ) { } public void setType ( MaterialTabHost . Type type ) { } @ Override public void onPageSelected ( int position ) { if ( ( scrollingState ) == ( ViewPager . SCROLL_STATE_IDLE ) ) { updateIndicatorPosition ( position , 0 ) ; } <START_BUG> tabWidget . setCurrentTab ( position ) ; <END_BUG> } @ Override public void onPageScrollStateChanged ( int state ) { } @ Override public void onPageScrolled ( int position , float positionOffset , int positionOffsetPixels ) { } private void updateIndicatorPosition ( int position , float positionOffset ) { } }

Fix:
setCurrentTab ( position ) ;
Buggy code:
public class JavaSearchScope implements IJavaSearchScope { private ArrayList elements ; private IPath [ ] paths = new IPath [ 1 ] ; private boolean [ ] pathWithSubFolders = new boolean [ 1 ] ; private int pathsCount = 0 ; private IPath [ ] enclosingProjectsAndJars = new IPath [ 0 ] ; private void addEnclosingProjectOrJar ( IPath path ) { } public void add ( IJavaProject javaProject , boolean includesPrereqProjects , HashSet visitedProjects ) throws JavaModelException { } public void add ( IJavaElement element ) throws JavaModelException { IPackageFragmentRoot root = null ; switch ( element . getElementType ( ) ) { case IJavaElement . JAVA_MODEL : break ; case IJavaElement . JAVA_PROJECT : this . add ( ( ( IJavaProject ) ( element ) ) , true , new HashSet ( 2 ) ) ; break ; case IJavaElement . PACKAGE_FRAGMENT_ROOT : root = ( ( IPackageFragmentRoot ) ( element ) ) ; this . add ( root . getPath ( ) , true ) ; break ; case IJavaElement . PACKAGE_FRAGMENT : root = ( ( IPackageFragmentRoot ) ( element . getParent ( ) ) ) ; if ( root . isArchive ( ) ) { this . add ( root . getPath ( ) . append ( new Path ( element . getElementName ( ) . replace ( '.' , '//' ) ) ) , false ) ; } else { IResource resource = element . getUnderlyingResource ( ) ; if ( ( resource != null ) && ( resource . isAccessible ( ) ) ) { this . add ( resource . getFullPath ( ) , false ) ; } } break ; default : IResource resource = element . getUnderlyingResource ( ) ; if ( ( resource != null ) && ( resource . isAccessible ( ) ) ) { if ( element instanceof IMember ) { if ( ( this . elements ) == null ) { this . elements = new ArrayList ( ) ; } this . elements . add ( element ) ; } this . add ( resource . getFullPath ( ) , true ) ; IJavaElement parent = element . getParent ( ) ; while ( ( parent != null ) && ( ! ( parent instanceof IPackageFragmentRoot ) ) ) { parent = parent . getParent ( ) ; } if ( parent instanceof IPackageFragmentRoot ) { root = ( ( IPackageFragmentRoot ) ( parent ) ) ; } } } if ( root != null ) { <START_BUG> if ( root . isArchive ( ) ) { <END_BUG> this . addEnclosingProjectOrJar ( root . getPath ( ) ) ; } else { this . addEnclosingProjectOrJar ( root . getJavaProject ( ) . getProject ( ) . getFullPath ( ) ) ; } } } private void add ( IPath path , boolean withSubFolders ) { } public boolean encloses ( String resourcePathString ) { } private boolean encloses ( IPath path ) { } public boolean encloses ( IJavaElement element ) { } public IPath [ ] enclosingProjectsAndJars ( ) { } private IPath fullPath ( IJavaElement element ) { } public boolean includesBinaries ( ) { } public boolean includesClasspaths ( ) { } public void setIncludesBinaries ( boolean includesBinaries ) { } public void setIncludesClasspaths ( boolean includesClasspaths ) { } }

Fix:
if ( ( root . getKind ( ) ) == ( IPackageFragmentRoot . K_BINARY ) ) {
Buggy code:
public final class Lookup { private static Resolver defaultResolver ; private static Name [ ] defaultSearchPath ; private static Map defaultCaches ; private Resolver resolver ; private Name [ ] searchPath ; private Cache cache ; private boolean temporary_cache ; private int credibility ; private Name name ; private int type ; private int dclass ; private boolean verbose ; private int iterations ; private boolean foundAlias ; private boolean done ; private boolean doneCurrent ; private List aliases ; private Record [ ] answers ; private int result ; private String error ; private boolean nxdomain ; private boolean badresponse ; private String badresponse_error ; private boolean networkerror ; private boolean timedout ; private boolean nametoolong ; private boolean referral ; private static final Name [ ] noAliases = new Name [ 0 ] ; public static final int SUCCESSFUL = 0 ; public static final int UNRECOVERABLE = 1 ; public static final int TRY_AGAIN = 2 ; public static final int HOST_NOT_FOUND = 3 ; public static final int TYPE_NOT_FOUND = 4 ; public static synchronized void refreshDefault ( ) { try { Lookup . defaultResolver = new ExtendedResolver ( ) ; } catch ( UnknownHostException e ) { throw new RuntimeException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>initialize<seq2seq4repair_space>resolver" ) ; } <START_BUG> Lookup . defaultSearchPath = FindServer . searchPath ( ) ; <END_BUG> Lookup . defaultCaches = new HashMap ( ) ; } public static synchronized Resolver getDefaultResolver ( ) { } public static synchronized void setDefaultResolver ( Resolver resolver ) { } public static synchronized Cache getDefaultCache ( int dclass ) { } public static synchronized void setDefaultCache ( Cache cache , int dclass ) { } public static synchronized Name [ ] getDefaultSearchPath ( ) { } public static synchronized void setDefaultSearchPath ( Name [ ] domains ) { } public static synchronized void setDefaultSearchPath ( String [ ] domains ) throws TextParseException { } private final void reset ( ) { } public Lookup ( Name name , int type , int dclass ) { } public Lookup ( Name name , int type ) { } public Lookup ( Name name ) { } public Lookup ( String name , int type , int dclass ) throws TextParseException { } public Lookup ( String name , int type ) throws TextParseException { } public Lookup ( String name ) throws TextParseException { } public void setResolver ( Resolver resolver ) { } public void setSearchPath ( Name [ ] domains ) { } public void setSearchPath ( String [ ] domains ) throws TextParseException { } public void setCache ( Cache cache ) { } public void setCredibility ( int credibility ) { } private void follow ( Name name , Name oldname ) { } private void processResponse ( Name name , SetResponse response ) { } private void lookup ( Name current ) { } private void resolve ( Name current , Name suffix ) { } public Record [ ] run ( ) { } private void checkDone ( ) { } public Record [ ] getAnswers ( ) { } public Name [ ] getAliases ( ) { } public int getResult ( ) { } public String getErrorString ( ) { } }

Fix:
Lookup . defaultSearchPath = ResolverConfig . getCurrentConfig ( ) . searchPath ( ) ;
Buggy code:
public final class StringValueTransformer < T > implements Serializable , Transformer < T , String > { private static final long serialVersionUID = 7511110693171758606L ; public static final Transformer < Object , String > INSTANCE = new StringValueTransformer < Object > ( ) ; @ SuppressWarnings ( "unchecked" ) public static < T > Transformer < T , String > stringValueTransformer ( ) { } private StringValueTransformer ( ) { } <START_BUG> public String transform ( T input ) { <END_BUG> return String . valueOf ( input ) ; } private Object readResolve ( ) { } }

Fix:
public String transform ( final T input ) {
Buggy code:
public abstract class CombatSpell extends Spell { @ Override public final void startCast ( CharacterNode cast , CharacterNode castOn ) { if ( ( cast . getType ( ) ) == ( NodeType . PLAYER ) ) { Optional < Animation > optional = castAnimation ( ) ; if ( optional . isPresent ( ) ) { Animation animation = new Animation ( optional . get ( ) . getId ( ) , optional . get ( ) . getDelay ( ) , AnimationPriority . NORMAL ) ; cast . animation ( animation ) ; } } else <START_BUG> if ( ( castOn . getType ( ) ) == ( NodeType . NPC ) ) { <END_BUG> cast . animation ( new Animation ( ( ( com . asteria . game . character . npc . Npc ) ( cast ) ) . getDefinition ( ) . getAttackAnimation ( ) ) ) ; } startGraphic ( ) . ifPresent ( cast :: graphic ) ; projectile ( cast , castOn ) . ifPresent ( ( g ) -> { TaskHandler . submit ( new Task ( 2 , false ) { @ Override public void execute ( ) { g . sendProjectile ( ) ; this . cancel ( ) ; } } ) ; } ) ; } public abstract int spellId ( ) { } public abstract int maximumHit ( ) { } public abstract Optional < Animation > castAnimation ( ) { } public abstract Optional < Graphic > startGraphic ( ) { } public abstract Optional < Projectile > projectile ( CharacterNode cast , CharacterNode castOn ) { } public abstract Optional < Graphic > endGraphic ( ) { } public abstract void executeOnHit ( CharacterNode cast , CharacterNode castOn , boolean accurate , int damage ) { } }

Fix:
if ( ( cast . getType ( ) ) == ( NodeType . NPC ) ) {
Buggy code:
@ RunWith ( BMUnitRunner . class ) public class JGroupsSubsystemTransformerTestCase extends OperationTestCaseBase { protected String getSubsystemXml ( ) throws IOException { } @ Test public void testTransformerAS712 ( ) throws Exception { } @ Test public void testTransformerAS713 ( ) throws Exception { } private void testTransformer_1_1_0 ( ModelTestControllerVersion controllerVersion ) throws Exception { } @ Ignore @ Test <START_BUG> @ BMRule ( name = "Test<seq2seq4repair_space>support<seq2seq4repair_space>for<seq2seq4repair_space>expression<seq2seq4repair_space>resolution" , targetClass = "^org.jboss.as.controller.AbstractAddStepHandler" , targetMethod = "performRuntime" , targetLocation = "AT<seq2seq4repair_space>ENTRY" , binding = "context:OperationContext<seq2seq4repair_space>=<seq2seq4repair_space>$1;<seq2seq4repair_space>operation:ModelNode<seq2seq4repair_space>=<seq2seq4repair_space>$2;<seq2seq4repair_space>model:ModelNode<seq2seq4repair_space>=<seq2seq4repair_space>$3" , condition = "operation.hasDefined(\"name\")<seq2seq4repair_space>AND<seq2seq4repair_space>operation.hasDefined(\"value\")" , action = "traceln(\"resolved<seq2seq4repair_space>value<seq2seq4repair_space>=<seq2seq4repair_space>\"<seq2seq4repair_space>+<seq2seq4repair_space>org.jboss.as.clustering.jgroups.subsystem.PropertyResource.VALUE.resolveModelAttribute(context,model))" ) <END_BUG> public void testProtocolStackPropertyResolve ( ) throws Exception { String subsystemXml = getSubsystemXml ( ) ; KernelServices services = createKernelServicesBuilder ( null ) . setSubsystemXmlResource ( subsystemXml ) . build ( ) ; ModelNode operation = getTransportPropertyAddOperation ( "maximal" , "bundler_type" , "${the_bundler_type:new}" ) ; ModelNode mainResult = services . executeOperation ( operation ) ; assertEquals ( mainResult . toJSONString ( true ) , SUCCESS , mainResult . get ( OUTCOME ) . asString ( ) ) ; } @ Test public void testRejectExpressionsAS712 ( ) throws Exception { } @ Test public void testRejectExpressionsAS713 ( ) throws Exception { } private void testRejectExpressions_1_1_0 ( ModelTestControllerVersion controllerVersion ) throws Exception { } }

Fix:
@ BMRule ( name = "Test<seq2seq4repair_space>support<seq2seq4repair_space>for<seq2seq4repair_space>expression<seq2seq4repair_space>resolution" , targetClass = "^org.jboss.as.controller.AbstractAddStepHandler" , targetMethod = "performRuntime" , targetLocation = "AT<seq2seq4repair_space>ENTRY" , binding = "context:OperationContext<seq2seq4repair_space>=<seq2seq4repair_space>$1;<seq2seq4repair_space>operation:ModelNode<seq2seq4repair_space>=<seq2seq4repair_space>$2;<seq2seq4repair_space>model:ModelNode<seq2seq4repair_space>=<seq2seq4repair_space>$3" , condition = "operation.hasDefined(\"name\")<seq2seq4repair_space>AND<seq2seq4repair_space>operation.hasDefined(\"value\")" , action = "traceln(\"resolved<seq2seq4repair_space>value<seq2seq4repair_space>=<seq2seq4repair_space>\"<seq2seq4repair_space>+<seq2seq4repair_space>org.jboss.as.clustering.jgroups.subsystem.PropertyResourceDefinition.VALUE.resolveModelAttribute(context,model))" )
Buggy code:
public class PerformanceTest { private final int max = 10 ; private static final File BIG_FILE = new File ( System . getProperty ( "java.io.tmpdir" ) , "worldcitiespop.txt" ) ; @ BeforeClass public static void setUpClass ( ) throws FileNotFoundException , IOException { } private BufferedReader getBufferedReader ( ) throws IOException { } private long parse ( final Reader in , final boolean traverseColumns ) throws IOException { <START_BUG> final CSVFormat format = CSVFormat . newBuilder ( ) . withIgnoreSurroundingSpaces ( false ) . build ( ) ; <END_BUG> long recordCount = 0 ; for ( final CSVRecord record : format . parse ( in ) ) { recordCount ++ ; if ( traverseColumns ) { for ( final String value : record ) { } } } return recordCount ; } private void println ( final String s ) { } private long readAll ( final BufferedReader in ) throws IOException { } public long testParseBigFile ( final boolean traverseColumns ) throws Exception { } @ Test public void testParseBigFileRepeat ( ) throws Exception { } @ Test public void testReadBigFile ( ) throws Exception { } }

Fix:
final CSVFormat format = DEFAULT . withIgnoreSurroundingSpaces ( false ) ;
Buggy code:
public class HighScoresState extends GameState { private final int TABLEWIDTH = 300 ; private final int TABLEHEIGHT = 350 ; public HighScoresState ( GamePanel gp ) { } @ Override public void tick ( ) { } @ Override public void draw ( Graphics2D g , double interpolation ) { } @ Override public void restart ( ) { } @ Override public void init ( ) { this . objects = new ObjectHandler ( ) ; MenuButton e ; try { e = new MenuButton ( gp , this , MenuButton . MEDIUM , "Back" , this . getClass ( ) . getDeclaredMethod ( "buttonBackAction" ) ) ; e . align ( ALIGN_CENTER ) ; e . setY ( 480 ) ; buttons . add ( e ) ; } catch ( NoSuchMethodException | SecurityException ex ) { Logger . getLogger ( MainMenuState . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } elements . add ( new MenuLabel ( gp , this , ( ( size . width ) // 2 ) , 100 , "High<seq2seq4repair_space>Scores" , MenuLabel . TYPE_H2 , MenuLabel . ALIGN_CENTER ) ) ; String scores = HttpRequester . getTopTen ( ) ; if ( scores . equals ( "ERROR" ) ) { elements . add ( new MenuLabel ( gp , this , ( ( size . width ) // 2 ) , 400 , "ERROR" , MenuLabel . TYPE_H2 , MenuLabel . ALIGN_CENTER ) ) ; } else { String [ ] [ ] table = new String [ 10 ] [ 3 ] ; String [ ] records = scores . split ( "\n" ) ; for ( int i = 0 ; i < ( table . length ) ; i ++ ) { String [ ] data ; if ( i >= ( records . length ) ) { data = new String [ ] { "" , "" } ; } else { <START_BUG> data = records [ i ] . split ( "<seq2seq4repair_space>" ) ; <END_BUG> } table [ i ] [ 0 ] = String . valueOf ( ( i + 1 ) ) ; table [ i ] [ 1 ] = data [ 0 ] ; table [ i ] [ 2 ] = data [ 1 ] ; } elements . add ( new cubicmadness . menuelements . MenuTable ( gp , this , ( ( ( size . width ) // 2 ) - ( ( this . TABLEWIDTH ) // 2 ) ) , 120 , this . TABLEWIDTH , this . TABLEHEIGHT ) . setHeader ( new MenuTableRow ( new String [ ] { "Rank" , "Nickname" , "Score" } ) . setAligns ( new Byte [ ] { MenuTableRow . ALIGN_CENTER , MenuTableRow . ALIGN_CENTER , MenuTableRow . ALIGN_CENTER } ) ) . appendRow ( new MenuTableRow ( table [ 0 ] ) . setAligns ( new Byte [ ] { MenuTableRow . ALIGN_RIGHT , MenuTableRow . ALIGN_LEFT , MenuTableRow . ALIGN_RIGHT } ) ) . appendRow ( new MenuTableRow ( table [ 1 ] ) ) . appendRow ( new MenuTableRow ( table [ 2 ] ) ) . appendRow ( new MenuTableRow ( table [ 3 ] ) ) . appendRow ( new MenuTableRow ( table [ 4 ] ) ) . appendRow ( new MenuTableRow ( table [ 5 ] ) ) . appendRow ( new MenuTableRow ( table [ 6 ] ) ) . appendRow ( new MenuTableRow ( table [ 7 ] ) ) . appendRow ( new MenuTableRow ( table [ 8 ] ) ) . appendRow ( new MenuTableRow ( table [ 9 ] ) ) . setCellMargine ( 2 ) . setPadding ( 5 ) . setColumnWidth ( new Float [ ] { 0.2F , 0.5F , 0.3F } ) . setBgrColor ( new Color ( 200 , 200 , 200 , 50 ) ) ) ; } } @ Override public void init ( Object o ) { } public void buttonBackAction ( ) { } }

Fix:
data = records [ i ] . split ( ";" ) ;
Buggy code:
public class TestCaseClassLoaderTest extends TestCase { public TestCaseClassLoaderTest ( String name ) { } public void testClassLoading ( ) throws Exception { } public void testJarClassLoading ( ) throws Exception { URL url = getClass ( ) . getResource ( "test.jar" ) ; assertNotNull ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>test.jar" , url ) ; String path = url . getFile ( ) ; TestCaseClassLoader loader = new TestCaseClassLoader ( path ) ; <START_BUG> Class loadedClass = loader . loadClass ( "junit.tests.LoadedFromJar" , true ) ; <END_BUG> Object o = loadedClass . newInstance ( ) ; Method method = loadedClass . getDeclaredMethod ( "verify" , new Class [ 0 ] ) ; method . invoke ( o , new Class [ 0 ] ) ; } }

Fix:
Class loadedClass = loader . loadClass ( "junit.tests.runner.LoadedFromJar" , true ) ;
Buggy code:
public class AjdeModuleTests extends TestCase { <START_BUG> public static Test suite ( ) { <END_BUG> TestSuite suite = new TestSuite ( AjdeModuleTests . class . getName ( ) ) ; suite . addTest ( AjdeTests . suite ( ) ) ; suite . addTest ( AjdeInternalTests . suite ( ) ) ; suite . addTest ( AjdeUiTests . suite ( ) ) ; return suite ; } public AjdeModuleTests ( String name ) { } }

Fix:
public static TestSuite suite ( ) {