nus-yam/ex-repair huggingface dataset:
Buggy code:
public class KmlDemoActivity extends BaseDemoActivity { GoogleMap mMap ; protected int getLayoutId ( ) { } public void startDemo ( ) { try { Log . i ( "Demo" , "Start" ) ; mMap = getMap ( ) ; <START_BUG> KmlLayer layer = new KmlLayer ( getMap ( ) , raw . german , getApplicationContext ( ) ) ; <END_BUG> layer . addLayer ( ) ; Log . i ( "Demo" , "End" ) ; } catch ( Exception e ) { Log . e ( "Exception<seq2seq4repair_space>caught" , e . toString ( ) ) ; } } private class DownloadKmlFile extends AsyncTask < String , Void , byte [ ] > { private final String mUrl ; public DownloadKmlFile ( String url ) { } @ Override protected byte [ ] doInBackground ( String ... params ) { } @ Override protected void onPostExecute ( byte [ ] byteArr ) { } } }

Fix:
KmlLayer layer = new KmlLayer ( getMap ( ) , raw . sample , getApplicationContext ( ) ) ;
Buggy code:
public class New implements Command { private static Set commands = new HashSet ( ) ; public New ( ) { } public Set getActionNames ( ) { } public void doAction ( ActionEvent e ) { <START_BUG> ActionRouter . getInstance ( ) . actionPerformed ( new ActionEvent ( e . getSource ( ) , e . getID ( ) , CheckDirty . CHECK_DIRTY ) ) ; <END_BUG> GuiPackage guiPackage = GuiPackage . getInstance ( ) ; if ( guiPackage . isDirty ( ) ) { if ( ( JOptionPane . showConfirmDialog ( GuiPackage . getInstance ( ) . getMainFrame ( ) , JMeterUtils . getResString ( "cancel_new_to_save" ) , JMeterUtils . getResString ( "Save?" ) , JOptionPane . YES_NO_OPTION , JOptionPane . QUESTION_MESSAGE ) ) == ( JOptionPane . YES_OPTION ) ) { ActionRouter . getInstance ( ) . doActionNow ( new ActionEvent ( e . getSource ( ) , e . getID ( ) , CheckDirty . SAVE_ALL ) ) ; } } guiPackage . getTreeModel ( ) . clearTestPlan ( ) ; guiPackage . getTreeListener ( ) . getJTree ( ) . setSelectionRow ( 1 ) ; Save save = ( ( Save ) ( ActionRouter . getInstance ( ) . getAction ( "save" , "org.apache.jmeter.gui.action.Save" ) ) ) ; save . setTestPlanFile ( null ) ; ActionRouter . getInstance ( ) . actionPerformed ( new ActionEvent ( e . getSource ( ) , e . getID ( ) , CheckDirty . ADD_ALL ) ) ; } }

Fix:
ActionRouter . getInstance ( ) . doActionNow ( new ActionEvent ( e . getSource ( ) , e . getID ( ) , CheckDirty . CHECK_DIRTY ) ) ;
Buggy code:
public class Radio < T > extends WebMarkupContainer < T > { private static final String ATTR_DISABLED = "disabled" ; private static final long serialVersionUID = 1L ; public Radio ( MarkupContainer parent , String id ) { } public Radio ( MarkupContainer parent , String id , IModel < T > model ) { } @ SuppressWarnings ( "unchecked" ) @ Override protected void onComponentTag ( final ComponentTag tag ) { super . onComponentTag ( tag ) ; checkComponentTag ( tag , "input" ) ; checkComponentTagAttribute ( tag , "type" , "radio" ) ; final RadioGroup group = Radio . findParent ( RadioGroup . class ) ; final String path = Radio . getPath ( ) ; if ( group == null ) { throw new WicketRuntimeException ( ( ( "Radio<seq2seq4repair_space>component<seq2seq4repair_space>[" + path ) + "]<seq2seq4repair_space>cannot<seq2seq4repair_space>find<seq2seq4repair_space>its<seq2seq4repair_space>parent<seq2seq4repair_space>RadioGroup.<seq2seq4repair_space>All<seq2seq4repair_space>Radio<seq2seq4repair_space>components<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>child<seq2seq4repair_space>of<seq2seq4repair_space>or<seq2seq4repair_space>below<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>hierarchy<seq2seq4repair_space>of<seq2seq4repair_space>a<seq2seq4repair_space>RadioGroup<seq2seq4repair_space>component." ) ) ; } final String relativePath = path . substring ( ( ( group . getPath ( ) . length ( ) ) + 1 ) ) ; tag . put ( "name" , group . getInputName ( ) ) ; tag . put ( "value" , relativePath ) ; if ( group . hasRawInput ( ) ) { String rawInput = group . getRawInput ( ) ; if ( ( rawInput != null ) && ( rawInput . equals ( relativePath ) ) ) { tag . put ( "checked" , "checked" ) ; } } else if ( Objects . equal ( group . getModelObject ( ) , Radio . getModelObject ( ) ) ) { tag . put ( "checked" , "checked" ) ; } if ( group . wantOnSelectionChangedNotifications ( ) ) { final CharSequence url = group . urlFor ( INTERFACE ) ; Form form = ( ( Form ) ( group . findParent ( Form . class ) ) ) ; if ( form != null ) { tag . put ( "onclick" , form . getJsForInterfaceUrl ( url ) ) ; } else { tag . put ( "onclick" , ( ( ( ( "location.href='" + url ) + "&" ) + ( group . getInputName ( ) ) ) + "='<seq2seq4repair_space>+<seq2seq4repair_space>this.value;" ) ) ; } } <START_BUG> if ( ( ! ( isActionAuthorized ( ENABLE ) ) ) || ( ! ( Radio . isEnabled ( ) ) ) ) { <END_BUG> tag . put ( Radio . ATTR_DISABLED , Radio . ATTR_DISABLED ) ; } } }

Fix:
if ( ( ( ! ( isActionAuthorized ( ENABLE ) ) ) || ( ! ( Radio . isEnabled ( ) ) ) ) || ( ! ( group . isEnabled ( ) ) ) ) {
Buggy code:
public class ContactManagerTester { ContactManager manager ; @ Before public void setUp ( ) { } @ After public void tearDown ( ) { } @ Test ( expected = NullPointerException . class ) public void testNewContactNameException ( ) { } @ Test ( expected = NullPointerException . class ) public void testNewContactNotesException ( ) { } @ Test public void testGettingContactByNameFromEmptyList ( ) { } private boolean hasContact ( Set < Contact > set , String name ) { } @ Test public void testAddingAndGettingSingleContactByName ( ) { } @ Test public void testGettingNonExistingContact ( ) { } @ Test public void testGettingEmptyNamedContact ( ) { } @ Test public void testGettingSimilarilyNamedContacts ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void gettingContactNegativeIdException ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void gettingContactNonExistingIdException ( ) { } @ Test public void testGettingContactsViaID ( ) { manager . addNewContact ( "c1" , "notes1" ) ; manager . addNewContact ( "c2" , "notes2" ) ; manager . addNewContact ( "c3" , "notes3" ) ; Set < Contact > several = manager . getContacts ( 2 , 1 ) ; <START_BUG> assertEquals ( 3 , several . size ( ) ) ; <END_BUG> assertTrue ( hasContact ( several , "c1" ) ) ; assertTrue ( hasContact ( several , "c2" ) ) ; } No newline ; at end ; of file ; }

Fix:
assertEquals ( 2 , several . size ( ) ) ;
Buggy code:
public class MainActivity extends BaseViewActivity { private Toolbar mToolbar ; private DrawerLayout mDrawerLayout ; private WebView mWebView ; private ProgressWheel mProgressWheel ; private ImageView mImageView ; private TextView mUserIdTextView ; private TextView mUserTypeTextView ; private TextView mUserNameTextView ; private LinearLayout mHomeLinearLayout ; private LinearLayout mScoreLinearLayout ; private LinearLayout mTableLinearLayout ; private LinearLayout mCourseLinearLayout ; private LinearLayout mExamLinearLayout ; private LinearLayout mSignupLinearLayout ; private LinearLayout mAppraiseLinearLayout ; private LinearLayout mCalendarLinearLayout ; private LinearLayout mGuestLinearLayout ; private LinearLayout mSettingsLinearLayout ; private LinearLayout mHelpLinearLayout ; private ScrollView mItemScrollView ; private ActionBarDrawerToggle mActionBarDrawerToggle ; private final String USERNAME = "USERNAME" ; private final String PASSWORD = "PASSWORD" ; private DrawDialog mDrawDialog = new DrawDialog ( this ) ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onStart ( ) { } @ Override protected void onRestart ( ) { super . onRestart ( ) ; <START_BUG> if ( mDataHelper . getSharedPreferencesValue ( APPACCOUNT , URL ) . contains ( URL ) ) { <END_BUG> finish ( ) ; } } @ Override protected void onResume ( ) { } private void doLogin ( boolean b ) { } @ Override protected void onPause ( ) { } @ Override protected void onDestroy ( ) { } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void login ( String username , String password ) { } private void login ( ) { } private void clearCookies ( ) { } private OnClickListener changeListener ( ) { } private void share ( ) { } protected void initView ( ) { } @ Override protected void goNextActivity ( boolean isComplete ) { } private void layoutClick ( ) { } private void setmWebView ( ) { } private void showUpdateDialog ( ) { } private void updateCount ( ) { } private String getVersionInfo ( int type ) { } }

Fix:
if ( mDataHelper . getSharedPreferencesValue ( APPINFO , UPDATATIME ) . contains ( UPDATATIME ) ) {
Buggy code:
public class NQueens { static final String clear = "[2J" ; static final String hide = "[?25l" ; static final String show = "[?25h" ; private char [ ] [ ] board ; private String go ( int x , int y ) { } public void wait ( int millis ) { } public String name ( ) { } public NQueens ( int size ) { } public String toString ( ) { } public boolean solve ( ) { } public boolean solve ( int x ) { } public boolean solve ( int x , int y ) { if ( x == ( board . length ) ) { return true ; } <START_BUG> if ( ( y == ( board . length ) ) || ( findQueens ( x , y ) ) ) { <END_BUG> return false ; } board [ y ] [ x ] = 'Q' ; for ( int i = 0 ; i < ( board . length ) ; i ++ ) { if ( solve ( ( x + 1 ) , i ) ) { return true ; } } board [ y ] [ x ] = '_' ; if ( solve ( x , ( y + 1 ) ) ) { return true ; } return false ; } public boolean findQueens ( int x , int y ) { } }

Fix:
if ( ( y >= ( board . length ) ) || ( findQueens ( x , y ) ) ) {
Buggy code:
@ Entity @ Table ( name = "taxi_order" , schema = "public" , catalog = "tracksee" ) public class TaxiOrderEntity { private Long trackingNumber ; private OrderStatus status ; private BigDecimal price ; private Service service ; private String description ; private CarCategory carCategory ; private WayOfPayment wayOfPayment ; private Sex driverSex ; private String musicStyle ; private Boolean animalTransportation ; private Boolean freeWifi ; private Boolean smokingDriver ; private Boolean airConditioner ; private String comment ; private Integer userId ; @ Id @ GeneratedValue ( generator = "orderSeq" ) @ SequenceGenerator ( name = "orderSeq" , sequenceName = "taxi_order_tracking_number_seq" , allocationSize = 1 , initialValue = 1 ) @ Column ( name = "tracking_number" ) public Long getTrackingNumber ( ) { } public void setTrackingNumber ( Long trackingNumber ) { } @ Basic @ Column ( name = "user_id" ) public Integer getUserId ( ) { } public void setUserId ( Integer userId ) { } @ Basic @ Enumerated ( STRING ) @ Column ( name = "status" , nullable = false ) public OrderStatus getStatus ( ) { } public void setStatus ( OrderStatus status ) { } @ Basic @ Column ( name = "price" ) public BigDecimal getPrice ( ) { } public void setPrice ( BigDecimal price ) { } @ Basic @ Enumerated ( STRING ) @ Column ( name = "service" ) public Service getService ( ) { } public void setService ( Service service ) { } @ Basic @ Column ( name = "description" ) public String getDescription ( ) { } public void setDescription ( String description ) { } @ Basic @ Enumerated ( STRING ) @ Column ( name = "car_category" ) public CarCategory getCarCategory ( ) { } public void setCarCategory ( CarCategory carCategory ) { } @ Basic @ Enumerated ( STRING ) @ Column ( name = "way_of_payment" ) public WayOfPayment getWayOfPayment ( ) { } public void setWayOfPayment ( WayOfPayment wayOfPayment ) { } @ Basic @ Enumerated ( STRING ) @ Column ( name = "driver_sex" ) public Sex getDriverSex ( ) { } public void setDriverSex ( Sex driverSex ) { } @ Basic @ Column ( name = "music_style" ) public String getMusicStyle ( ) { } public void setMusicStyle ( String musicStyle ) { } @ Basic @ Column ( name = "animal_transportation" ) public Boolean getAnimalTransportation ( ) { } public void setAnimalTransportation ( Boolean animalTransportation ) { } @ Basic @ Column ( name = "free_wifi" ) public Boolean getFreeWifi ( ) { } public void setFreeWifi ( Boolean freeWifi ) { } @ Basic <START_BUG> @ Column ( name = "smoking_driver" ) <END_BUG> public Boolean getSmokingDriver ( ) { return smokingDriver ; } public void setSmokingDriver ( Boolean smokingDriver ) { } @ Basic @ Column ( name = "air_conditioner" ) public Boolean getAirConditioner ( ) { } public void setAirConditioner ( Boolean airConditioner ) { } @ Basic @ Column ( name = "comment" ) public String getComment ( ) { } public void setComment ( String comment ) { } @ Override public boolean equals ( Object o ) { } @ Override public int hashCode ( ) { } }

Fix:
@ Column ( name = "non_smoking_driver" )
Buggy code:
public class ComparisonExecutor { public static List < ComparisonResult > executeComparisonsForPaths ( List < PathIndex > paths , Algorithm method , DirectedBackEdgeGraph graph ) { List < ComparisonResult > res = new ArrayList < > ( ) ; for ( PathIndex path : paths ) { <START_BUG> int estimation = method . query ( path . getPathAsLongList ( ) ) ; <END_BUG> int result = graph . solvePathQuery ( path . getPathAsIntArray ( ) ) . size ( ) ; res . add ( new ComparisonResult ( path , result , estimation ) ) ; } return res ; } }

Fix:
int estimation = method . query ( path . getPathAsIntArray ( ) ) ;
Buggy code:
public class RegionBasedHierarchyBuilder extends HierarchyBuilder { public RegionBasedHierarchyBuilder ( TypeHierarchy hierarchy ) throws JavaModelException { } public void build ( boolean computeSubtypes ) { JavaModelManager manager = JavaModelManager . getJavaModelManager ( ) ; try { manager . cacheZipFiles ( ) ; if ( ( ( this . hierarchy . focusType ) == null ) || computeSubtypes ) { IProgressMonitor typeInRegionMonitor = ( ( this . hierarchy . progressMonitor ) == null ) ? null : new SubProgressMonitor ( this . hierarchy . progressMonitor , 30 ) ; HashMap allOpenablesInRegion = determineOpenablesInRegion ( typeInRegionMonitor ) ; this . hierarchy . initialize ( allOpenablesInRegion . size ( ) ) ; IProgressMonitor buildMonitor = ( ( this . hierarchy . progressMonitor ) == null ) ? null : new SubProgressMonitor ( this . hierarchy . progressMonitor , 70 ) ; createTypeHierarchyBasedOnRegion ( allOpenablesInRegion , buildMonitor ) ; ( ( RegionBasedTypeHierarchy ) ( this . hierarchy ) ) . pruneDeadBranches ( ) ; } else { this . hierarchy . initialize ( 1 ) ; <START_BUG> this . buildSupertypes ( ) ; <END_BUG> } } finally { manager . flushZipFiles ( ) ; } } private void createTypeHierarchyBasedOnRegion ( HashMap allOpenablesInRegion , IProgressMonitor monitor ) { } private HashMap determineOpenablesInRegion ( IProgressMonitor monitor ) { } private void injectAllOpenablesForJavaProject ( IJavaProject project , ArrayList openables ) { } private void injectAllOpenablesForPackageFragment ( IPackageFragment packFrag , ArrayList openables ) { } private void injectAllOpenablesForPackageFragmentRoot ( IPackageFragmentRoot root , ArrayList openables ) { } }

Fix:
buildSupertypes ( ) ;
Buggy code:
public abstract class AbstractCalendar extends WebComponent { public static final DateFormat FORMAT_DATE = new SimpleDateFormat ( "MM//dd//yyyy" ) ; public static final DateFormat FORMAT_PAGEDATE = new SimpleDateFormat ( "MM//yyyy" ) ; private static final long serialVersionUID = 1L ; public AbstractCalendar ( String id ) { } public AbstractCalendar ( String id , boolean contributeDependencies ) { } public final String getJavascriptId ( ) { } public final String getJavascriptWidgetId ( ) { <START_BUG> return "YAHOO.org.apache.wicket." + ( getJavascriptId ( ) ) ; <END_BUG> } private void contributeDependencies ( ) { } protected void appendToInit ( String markupId , String javascriptId , String javascriptWidgetId , StringBuffer b ) { } protected void configureWidgetProperties ( Map widgetProperties ) { } }

Fix:
return "YAHOO.wicket." + ( getJavascriptId ( ) ) ;
Buggy code:
public class LdapConfigGui extends AbstractConfigGui implements ItemListener { private JTextField rootdn = new JTextField ( 20 ) ; private JTextField searchbase = new JTextField ( 20 ) ; private JTextField searchfilter = new JTextField ( 20 ) ; private JTextField delete = new JTextField ( 20 ) ; private JTextField add = new JTextField ( 20 ) ; private JTextField modify = new JTextField ( 20 ) ; private JTextField servername = new JTextField ( 20 ) ; private JTextField port = new JTextField ( 20 ) ; private JCheckBox user_Defined = new JCheckBox ( JMeterUtils . getResString ( "user_defined_test" ) ) ; private JRadioButton addTest = new JRadioButton ( JMeterUtils . getResString ( "add_test" ) ) ; private JRadioButton modifyTest = new JRadioButton ( JMeterUtils . getResString ( "modify_test" ) ) ; private JRadioButton deleteTest = new JRadioButton ( JMeterUtils . getResString ( "delete_test" ) ) ; private JRadioButton searchTest = new JRadioButton ( JMeterUtils . getResString ( "search_test" ) ) ; private ButtonGroup bGroup = new ButtonGroup ( ) ; private boolean displayName = true ; ArgumentsPanel tableAddPanel = new ArgumentsPanel ( JMeterUtils . getResString ( "add_test" ) ) ; ArgumentsPanel tableModifyPanel = new ArgumentsPanel ( JMeterUtils . getResString ( "modify_test" ) ) ; private JPanel cards ; public LdapConfigGui ( ) { } public String getLabelResource ( ) { } public void configure ( TestElement element ) { } public TestElement createTestElement ( ) { } public void modifyTestElement ( TestElement element ) { } public void clearGui ( ) { super . clearGui ( ) ; rootdn . setText ( "" ) ; searchbase . setText ( "" ) ; searchfilter . setText ( "" ) ; delete . setText ( "" ) ; add . setText ( "" ) ; modify . setText ( "" ) ; servername . setText ( "" ) ; port . setText ( "" ) ; user_Defined . setSelected ( false ) ; <START_BUG> addTest . setSelected ( false ) ; <END_BUG> modifyTest . setSelected ( false ) ; deleteTest . setSelected ( false ) ; searchTest . setSelected ( false ) ; } public void itemStateChanged ( ItemEvent ie ) { } public LdapConfigGui ( boolean displayName ) { } private JPanel createServernamePanel ( ) { } private JPanel createPortPanel ( ) { } private JPanel createRootdnPanel ( ) { } private JPanel createSearchPanel ( ) { } private JPanel createDeletePanel ( ) { } private JPanel createAddPanel ( ) { } private JPanel createModifyPanel ( ) { } private JPanel testPanel ( ) { } private JPanel createTestPanel ( ) { } private void init ( ) { } }

Fix:
addTest . setSelected ( true ) ;
Buggy code:
public class CommandConfigure { public String CommandName = "shell" ; public String GrammarFile = null ; public String Expression = null ; public String StartingPoint = "File" ; public String InputFileName = null ; public UList < String > InputFileLists = null ; public String InputText = null ; public String OutputFileName = null ; public int WarningLevel = 1 ; public int DebugLevel = 1 ; public boolean VerboseMode = false ; public int OptimizationLevel = 2 ; public static Recorder rec = null ; public static String RecorderFileName = "results.csv" ; void showUsage ( String Message ) { } void parseCommandOption ( String [ ] args ) { } private static UMap < Command > commandTable = new UMap < Command > ( ) ; private static void addCommand ( String name , Command com ) { } public final Command getCommand ( ) { } public final Grammar getGrammar ( ) { } public final Production getProduction ( String start , boolean enableASTConstruction , boolean enablePackratParsing , int CompilerOption ) { } public final Production getProduction ( String start ) { } private boolean ShellMode = true ; public final boolean hasInput ( ) { } public final SourceContext getInputSourceContext ( ) { if ( ( this . InputText ) != null ) { String text = this . InputText ; this . InputText = null ; return SourceContext . newStringSourceContext ( text ) ; } if ( ( this . InputFileName ) != null ) { String f = this . InputFileName ; <START_BUG> this . InputFileName = f ; <END_BUG> try { return SourceContext . loadSource ( f ) ; } catch ( IOException e ) { ConsoleUtils . exit ( 1 , ( "cannot<seq2seq4repair_space>open:<seq2seq4repair_space>" + f ) ) ; } } return SourceContext . newStringSourceContext ( "" ) ; } }

Fix:
this . InputFileName = null ;
Buggy code:
public class ClientSideImageMap extends Panel { private static final long serialVersionUID = 1L ; private static final String CIRCLE = "circle" ; private static final String POLYGON = "polygon" ; private static final String RECTANGLE = "rect" ; private RepeatingView areas ; public ClientSideImageMap ( String id , Image image ) { } private String circleCoordinates ( int x , int y , int radius ) { } private String polygonCoordinates ( int ... coordinates ) { <START_BUG> final StringBuffer buffer = new StringBuffer ( ) ; <END_BUG> for ( int i = 0 ; i < ( coordinates . length ) ; i ++ ) { buffer . append ( coordinates [ i ] ) ; if ( i < ( ( coordinates . length ) - 1 ) ) { buffer . append ( ',' ) ; } } return buffer . toString ( ) ; } private String rectangleCoordinates ( int x1 , int y1 , int x2 , int y2 ) { } private String shapeCoordinates ( Shape shape ) { } @ Override protected void onComponentTag ( ComponentTag tag ) { } public String newChildId ( ) { } public ClientSideImageMap addCircleArea ( AbstractLink link , int x , int y , int radius ) { } public ClientSideImageMap addPolygonArea ( AbstractLink link , int ... coordinates ) { } public ClientSideImageMap addRectangleArea ( AbstractLink link , int x1 , int y1 , int x2 , int y2 ) { } public ClientSideImageMap addShapeArea ( AbstractLink link , Shape shape ) { } private static class Area extends AbstractBehavior { private static final long serialVersionUID = 1L ; private final String coordinates ; private final String type ; protected Area ( final String coordinates , final String type ) { } @ Override public void onComponentTag ( Component component , ComponentTag tag ) { } } private class UsemapModel extends Model < String > { private static final long serialVersionUID = 1L ; @ Override public String getObject ( ) { } } }

Fix:
final StringBuilder buffer = new StringBuilder ( ) ;
Buggy code:
public class GraphNode implements Comparable < GraphNode > , WithACL { private static final Logger logger = Logger . getLogger ( GraphNode . class ) ; protected Probe < ? , ? > probe ; private String viewPath = null ; private GraphDesc gd ; private String name = null ; private String graphTitle = null ; private ACL acl = ACL . ALLOWEDACL ; private PlottableMap customData = null ; private Map < String , String > beans = Collections . emptyMap ( ) ; public GraphNode ( Probe < ? , ? > theStore , GraphDesc gd ) { } protected GraphNode ( ) { } public int hashCode ( ) { } public Probe < ? , ? > getProbe ( ) { } protected void setProbe ( Probe < ? , ? > probe ) { } public LinkedList < String > getTreePathByHost ( ) { } public LinkedList < String > getTreePathByView ( ) { } private final String parseTemplate ( String template ) { } public String getGraphTitle ( ) { } public String getName ( ) { } public String getQualifiedName ( ) { } public GraphDesc getGraphDesc ( ) { } protected void setGraphDesc ( GraphDesc gd ) { } public Graph getGraph ( ) { Class < Graph > gclass = gd . getGraphClass ( ) ; try { Graph g = gclass . getConstructor ( GraphNode . class ) . newInstance ( this ) ; Map < String , GenericBean > beansList = ArgFactory . getBeanPropertiesMap ( gclass , Graph . class ) ; for ( Map . Entry < String , String > e : beans . entrySet ( ) ) { String name = Util . parseTemplate ( e . getKey ( ) , probe ) ; String textValue = Util . parseTemplate ( e . getValue ( ) , probe ) ; GenericBean bean = beansList . get ( name ) ; if ( bean == null ) { <START_BUG> GraphNode . logger . error ( String . format ( "Unknonw<seq2seq4repair_space>bean<seq2seq4repair_space>for<seq2seq4repair_space>%s:<seq2seq4repair_space>%s" , gd . getName ( ) , name ) ) ; <END_BUG> continue ; } GraphNode . logger . trace ( Util . delayedFormatString ( "Found<seq2seq4repair_space>attribute<seq2seq4repair_space>%s<seq2seq4repair_space>with<seq2seq4repair_space>value<seq2seq4repair_space>%s" , name , textValue ) ) ; bean . set ( g , textValue ) ; } return g ; } catch ( Exception e ) { throw new RuntimeException ( HostBuilder . class . getName ( ) , e ) ; } } public int compareTo ( GraphNode arg0 ) { } @ Override public String toString ( ) { } public void addACL ( ACL acl ) { } public ACL getACL ( ) { } public PlottableMap getCustomData ( ) { } public void setCustomData ( PlottableMap customData ) { } public Map < String , String > getBeans ( ) { } public void setBeans ( Map < String , String > beans ) { } }

Fix:
GraphNode . logger . error ( String . format ( "Unknown<seq2seq4repair_space>bean<seq2seq4repair_space>for<seq2seq4repair_space>%s:<seq2seq4repair_space>%s" , gd . getName ( ) , name ) ) ;
Buggy code:
public class ServerDeploymentRepositoryRemove extends AbstractServerModelUpdate < Void > { private static final long serialVersionUID = - 8749135039011134115L ; private final String path ; public ServerDeploymentRepositoryRemove ( String path ) { } protected void applyUpdate ( ServerModel element ) throws UpdateFailedException { } public AbstractServerModelUpdate < ? > getCompensatingUpdate ( ServerModel original ) { } public < P > void applyUpdate ( UpdateContext context , UpdateResultHandler < ? super Void , P > resultHandler , P param ) { <START_BUG> final ServiceController < ? > controller = context . getServiceContainer ( ) . getService ( DeploymentScannerService . getServiceName ( path ) ) ; <END_BUG> if ( controller == null ) { resultHandler . handleSuccess ( null , param ) ; return ; } controller . addListener ( new UpdateResultHandler . ServiceRemoveListener < P > ( resultHandler , param ) ) ; } }

Fix:
final ServiceController < ? > controller = context . getServiceRegistry ( ) . getService ( DeploymentScannerService . getServiceName ( path ) ) ;
Buggy code:
public class ItemDao { private Table tables = null ; private final String TABLE_NAME = "tableHBaseSales" ; public ItemDao ( ) { } public ArrayList < Item > getAll ( String startRow , String stopRow , Long minStamp , Long maxStamp , String fCity , String fPrice ) { ArrayList < Item > rows = new ArrayList < Item > ( ) ; try { Scan s = new Scan ( ) ; s . addColumn ( Bytes . toBytes ( "data" ) , Bytes . toBytes ( "City" ) ) ; s . addColumn ( Bytes . toBytes ( "data" ) , Bytes . toBytes ( "Price" ) ) ; if ( ( minStamp != null ) && ( maxStamp != null ) ) { s . setTimeRange ( minStamp , maxStamp ) ; } else if ( ( minStamp == null ) && ( maxStamp != null ) ) { s . setTimeRange ( 0L , maxStamp ) ; } else if ( ( maxStamp == null ) && ( minStamp != null ) ) { <START_BUG> s . setTimeRange ( minStamp , 1429886358562L ) ; <END_BUG> } if ( startRow != null ) { s . setStartRow ( Bytes . toBytes ( startRow ) ) ; } if ( stopRow != null ) { s . setStopRow ( Bytes . toBytes ( stopRow ) ) ; } FilterList flMaster = new FilterList ( Operator . MUST_PASS_ALL ) ; if ( fCity != null ) { flMaster . addFilter ( new org . apache . hadoop . hbase . filter . SingleColumnValueFilter ( Bytes . toBytes ( "data" ) , Bytes . toBytes ( "City" ) , CompareOp . EQUAL , new SubstringComparator ( fCity ) ) ) ; } if ( fPrice != null ) { flMaster . addFilter ( new org . apache . hadoop . hbase . filter . SingleColumnValueFilter ( Bytes . toBytes ( "data" ) , Bytes . toBytes ( "Price" ) , CompareOp . EQUAL , new SubstringComparator ( fPrice ) ) ) ; } if ( flMaster . hasFilterRow ( ) ) { s . setFilter ( flMaster ) ; } ResultScanner scanner = tables . getScanner ( s ) ; for ( Result rr : scanner ) { rows . add ( new Item ( Bytes . toString ( rr . getRow ( ) ) , Bytes . toString ( rr . getValue ( Bytes . toBytes ( "data" ) , Bytes . toBytes ( "City" ) ) ) , Bytes . toString ( rr . getValue ( Bytes . toBytes ( "data" ) , Bytes . toBytes ( "Price" ) ) ) , getMaxTimestamp ( rr ) ) ) ; } scanner . close ( ) ; } catch ( IOException e ) { Logger . getLogger ( ItemDao . class ) . error ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>extract<seq2seq4repair_space>data!" , e ) ; } return rows ; } public Item getById ( String id ) { } public void putToTable ( Item item ) { } private Long getMaxTimestamp ( Result rr ) { } No newline ; at end ; of file ; }

Fix:
s . setTimeRange ( minStamp , 9223372036854775807L ) ;
Buggy code:
@ Category ( SlowTests . class ) public class HiveExploreObjectMappedTableTestRun extends BaseHiveExploreServiceTest { private static Record record1 ; private static Record record2 ; @ BeforeClass public static void start ( ) throws Exception { <START_BUG> startServices ( ) ; <END_BUG> datasetFramework . addInstance ( ObjectMappedTable . class . getName ( ) , MY_TABLE , ObjectMappedTableProperties . builder ( ) . setType ( Record . class ) . setExploreKeyName ( "row_key" ) . setExploreKeyType ( STRING ) . build ( ) ) ; ObjectMappedTable < Record > table = datasetFramework . getDataset ( MY_TABLE , NO_ARGUMENTS , null ) ; Assert . assertNotNull ( table ) ; TransactionAware txTable = ( ( TransactionAware ) ( table ) ) ; Transaction tx1 = transactionManager . startShort ( 100 ) ; txTable . startTx ( tx1 ) ; HiveExploreObjectMappedTableTestRun . record1 = new Record ( 123 , 1234567890L , 3.14159F , 3.1415926535 , "foobar" , new byte [ ] { 1 , 2 , 3 } ) ; HiveExploreObjectMappedTableTestRun . record2 = new Record ( ( 0 - 987 ) , 9876543210L , 2.71F , 2.71112384 , "hello<seq2seq4repair_space>world" , new byte [ ] { 4 , 5 , 6 } ) ; table . write ( "123" , HiveExploreObjectMappedTableTestRun . record1 ) ; table . write ( "456" , HiveExploreObjectMappedTableTestRun . record2 ) ; Assert . assertTrue ( txTable . commitTx ( ) ) ; transactionManager . canCommit ( tx1 , txTable . getTxChanges ( ) ) ; transactionManager . commit ( tx1 ) ; txTable . postTxCommit ( ) ; Transaction tx2 = transactionManager . startShort ( 100 ) ; txTable . startTx ( tx2 ) ; } @ AfterClass public static void stop ( ) throws Exception { } @ Test public void testSchema ( ) throws Exception { } @ Test public void testSelectStar ( ) throws Exception { } @ Test public void testSelect ( ) throws Exception { } }

Fix:
initialize ( ) ;
Buggy code:
public class Snippet301 { public static void main ( String [ ] args ) { Display display = new Display ( ) ; Shell shell = new Shell ( display ) ; FillLayout layout = new FillLayout ( ) ; layout . marginHeight = 10 ; layout . marginWidth = 10 ; shell . setLayout ( layout ) ; <START_BUG> Table table = new Table ( shell , ( ( ( SWT . BORDER ) | ( SWT . MULTI ) ) | ( SWT . NO_SCROLL ) ) ) ; <END_BUG> for ( int i = 0 ; i < 10 ; i ++ ) { TableItem item = new TableItem ( table , SWT . NONE ) ; item . setText ( ( "Item<seq2seq4repair_space>" + i ) ) ; } shell . pack ( ) ; shell . open ( ) ; while ( ! ( shell . isDisposed ( ) ) ) { if ( ! ( display . readAndDispatch ( ) ) ) display . sleep ( ) ; } display . dispose ( ) ; } }

Fix:
Table table = new Table ( shell , ( ( SWT . BORDER ) | ( SWT . NO_SCROLL ) ) ) ;
Buggy code:
public class TeamGenerator { private final int NUMBER_OF_GOALKEEPER = 2 ; private final int NUMBER_OF_DEFENDER = 5 ; private final int NUMBER_OF_MIDDFIELDER = 5 ; private final int NUMBER_OF_OFFENSIVE = 3 ; private final int NUMBER_OF_PLAYER = ( ( ( NUMBER_OF_DEFENDER ) + ( NUMBER_OF_GOALKEEPER ) ) + ( NUMBER_OF_MIDDFIELDER ) ) + ( NUMBER_OF_OFFENSIVE ) ; public static final int TEAM_WORTH = 20000000 ; public static final double TEAM_WORTH_TOLERANZ = 0.25 ; private final int DEFAULT_NUMBER_KEEPERS = 1 ; private final int DEFAULT_NUMBER_OFFENSIVES = 2 ; private final int DEFAULT_NUMBER_MIDDFIELDERS = 4 ; private final int DEFAULT_NUMBER_DEFENDERS = 4 ; private Map < String , Integer > formation ; private int teamWorth = 0 ; private int goalkeepers = 0 ; private int defenders = 0 ; private int middfielders = 0 ; private int offensives = 0 ; private List < Player > playerList ; private int heighestPlayerID ; private int communityID ; private int managerID ; private boolean breakFlag = false ; private static final Logger LOGGER = Logger . getLogger ( TeamGenerator . class ) ; public int generateTeamForUser ( int managerID , int communityID ) { } public List < Player > matchPlayersInFormation ( List < Player > playerList ) { } private List < Player > createRandomTeam ( ) { } private static final Comparator < Integer > INT_COMPARATOR = ( a , b ) -> { if ( a < b ) { return - 1 ; } if ( a > b ) { return 1 ; } return 0 ; } ; private boolean correctWorth ( ) { } private void findBetterPlayer ( Comparator < Integer > com ) { } private void updateDatabaseWithPlayers ( Player p ) { } private void updatePlayerPerPosition ( String position , int update ) { } private boolean isPlayerInUse ( int playerID ) { } private boolean playerFitsInTeam ( String position ) { } private Player getNewRandomPlayer ( ) { } private void reset ( ) { teamWorth = 0 ; goalkeepers = 0 ; defenders = 0 ; middfielders = 0 ; offensives = 0 ; formation = new HashMap < > ( ) ; formation . put ( KEEPER , DEFAULT_NUMBER_KEEPERS ) ; formation . put ( DEFENCE , DEFAULT_NUMBER_DEFENDERS ) ; formation . put ( MIDDLE , DEFAULT_NUMBER_MIDDFIELDERS ) ; <START_BUG> formation . put ( OFFENCE , DEFAULT_NUMBER_MIDDFIELDERS ) ; <END_BUG> } }

Fix:
formation . put ( OFFENCE , DEFAULT_NUMBER_OFFENSIVES ) ;
Buggy code:
public class Attacker { static int position = - 1 ; public static void print_and_exit ( String str ) { } public static void main ( String [ ] argv ) { String [ ] attack_moves = new String [ ] { "I" , "P" , "O" } ; Attacker . position = ( ( Attacker . position ) + 1 ) % 3 ; <START_BUG> if ( ( Integer . valueOf ( argv [ 5 ] ) ) == 0 ) <END_BUG> Attacker . print_and_exit ( "B" ) ; else Attacker . print_and_exit ( attack_moves [ Attacker . position ] ) ; } }

Fix:
if ( ( ( argv . length ) != 4 ) && ( ( Integer . valueOf ( argv [ 5 ] ) ) == 0 ) )
Buggy code:
public class Composite extends Scrollable { Layout layout ; Control [ ] tabList ; int scrolledVisibleRgn ; int siblingsVisibleRgn ; int layoutCount ; int backgroundMode ; Composite ( ) { } public Composite ( Composite parent , int style ) { } Control [ ] _getChildren ( ) { } Control [ ] _getTabList ( ) { } boolean acceptsFirstResponder ( ) { if ( ( ( state ) & ( CANVAS ) ) != 0 ) { return ( ( style ) & ( SWT . NO_FOCUS ) ) == 0 ; } <START_BUG> return acceptsFirstResponder ( ) ; <END_BUG> } public void changed ( Control [ ] changed ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } protected void checkSubclass ( ) { } Control [ ] computeTabList ( ) { } NSView contentView ( ) { } void createHandle ( ) { } void createHandle ( NSView parent ) { } Composite findDeferredControl ( ) { } Menu [ ] findMenus ( Control control ) { } void fixChildren ( Shell newShell , Shell oldShell , Decorations newDecorations , Decorations oldDecorations , Menu [ ] menus ) { } void fixTabList ( Control control ) { } public int getBackgroundMode ( ) { } public Control [ ] getChildren ( ) { } int getChildrenCount ( ) { } public Layout getLayout ( ) { } public boolean getLayoutDeferred ( ) { } public Control [ ] getTabList ( ) { } boolean hooksKeys ( ) { } public boolean isLayoutDeferred ( ) { } boolean isTabGroup ( ) { } public void layout ( ) { } public void layout ( boolean changed ) { } public void layout ( boolean changed , boolean all ) { } public void layout ( Control [ ] changed ) { } void markLayout ( boolean changed , boolean all ) { } Point minimumSize ( int wHint , int Hint , boolean changed ) { } void releaseChildren ( boolean destroy ) { } void releaseWidget ( ) { } void removeControl ( Control control ) { } public void setBackgroundMode ( int mode ) { } int setBounds ( int x , int y , int width , int height , boolean move , boolean resize ) { } public boolean setFocus ( ) { } public void setLayout ( Layout layout ) { } public void setLayoutDeferred ( boolean defer ) { } boolean setScrollBarVisible ( ScrollBar bar , boolean visible ) { } boolean setTabGroupFocus ( ) { } public void setTabList ( Control [ ] tabList ) { } int traversalCode ( int key , int theEvent ) { } void updateBackgroundMode ( ) { } void updateLayout ( boolean all ) { } }

Fix:
return super . acceptsFirstResponder ( ) ;
Buggy code:
public class BookmarkablePageRequestTarget implements IBookmarkablePageRequestTarget { private Page page ; private final Class < ? extends Page > pageClass ; private final String pageMapName ; private final PageParameters pageParameters ; public BookmarkablePageRequestTarget ( Class < ? extends Page > pageClass ) { } public BookmarkablePageRequestTarget ( Class < ? extends Page > pageClass , PageParameters pageParameters ) { } public BookmarkablePageRequestTarget ( String pageMapName , Class < ? extends Page > pageClass ) { } public BookmarkablePageRequestTarget ( String pageMapName , Class < ? extends Page > pageClass , PageParameters pageParameters ) { } public void detach ( RequestCycle requestCycle ) { if ( ( page ) != null ) { <START_BUG> page . internalDetach ( ) ; <END_BUG> } } @ Override public boolean equals ( Object obj ) { } public final Page getPage ( ) { } public final Class < ? extends Page > getPageClass ( ) { } public final String getPageMapName ( ) { } public final PageParameters getPageParameters ( ) { } @ Override public int hashCode ( ) { } public void processEvents ( RequestCycle requestCycle ) { } public void respond ( RequestCycle requestCycle ) { } public Object getLock ( RequestCycle requestCycle ) { } @ Override public String toString ( ) { } protected Page newPage ( final Class < ? extends Page > pageClass , final RequestCycle requestCycle ) { } protected final Page getPage ( RequestCycle requestCycle ) { } }

Fix:
page . detach ( ) ;
Buggy code:
public class EmailTaskExecutionBehavior extends TaskExecutionBehavior { static Logger log = Logger . getLogger ( EmailTaskExecutionBehavior . class . getName ( ) ) ; private final int controlNode_id ; private final DbEmailConfiguration emailConfiguration = new DbEmailConfiguration ( ) ; private int port ; private String serverAddress ; private String receiverMail ; private String sendMail ; private String subject ; private String message ; public EmailTaskExecutionBehavior ( int activityInstance_id , ScenarioInstance scenarioInstance , ControlNodeInstance controlNodeInstance ) { } @ Override public void execute ( ) { } private void setValues ( ) { } private void setDataAttributes ( ) { } private void sendMail ( ) { Email email = new SimpleEmail ( ) ; email . setHostName ( serverAddress ) ; email . setSmtpPort ( port ) ; email . setAuthentication ( "bp2014w01@framsteg.org" , "UjB9T8kAS8H9g4YC1f8U" ) ; try { email . setFrom ( sendMail ) ; email . setSubject ( subject ) ; email . setMsg ( message ) ; email . addTo ( receiverMail ) ; email . send ( ) ; } catch ( EmailException e ) { <START_BUG> EmailTaskExecutionBehavior . log . error ( "Error:" , e ) ; <END_BUG> } } }

Fix:
EmailTaskExecutionBehavior . log . error ( "Error<seq2seq4repair_space>by<seq2seq4repair_space>sending<seq2seq4repair_space>e-Mail:" , e ) ;
Buggy code:
public class CookieValuePersister implements IValuePersister { private static final Log log = LogFactory . getLog ( CookieValuePersister . class ) ; public void clear ( FormComponent component ) { } public void load ( FormComponent component ) { } public void save ( FormComponent component ) { } private void clear ( Cookie cookie ) { } private String cookieToDebugString ( Cookie cookie ) { } private Cookie getCookie ( final FormComponent component ) { } private Cookie [ ] getCookies ( ) { } private CookieValuePersisterSettings getSettings ( ) { } private WebRequest getWebRequest ( ) { } private WebResponse getWebResponse ( ) { } private Cookie save ( Cookie cookie ) { if ( cookie == null ) { return null ; } else { final String comment = getSettings ( ) . getComment ( ) ; if ( comment != null ) { cookie . setComment ( comment ) ; } final String domain = getSettings ( ) . getDomain ( ) ; if ( domain != null ) { cookie . setDomain ( domain ) ; } cookie . setVersion ( getSettings ( ) . getVersion ( ) ) ; cookie . setSecure ( getSettings ( ) . isSecure ( ) ) ; <START_BUG> getWebResponse ( ) . addCookie ( cookie ) ; <END_BUG> if ( CookieValuePersister . log . isDebugEnabled ( ) ) { CookieValuePersister . log . debug ( ( "saved:<seq2seq4repair_space>" + ( cookieToDebugString ( cookie ) ) ) ) ; } return cookie ; } } }

Fix:
getWebResponse ( ) . getHttpServletResponse ( ) . addCookie ( cookie ) ;
Buggy code:
public class ServerModelDeploymentStartUpdate extends AbstractServerModelUpdate < Void > { private static final long serialVersionUID = 5773083013951607950L ; private ServerGroupDeploymentElement deploymentElement ; private final String deploymentUnitName ; public ServerModelDeploymentStartUpdate ( final String deploymentUnitName ) { } public String getDeploymentUnitName ( ) { } @ Override public ServerModelDeploymentStopUpdate getCompensatingUpdate ( ServerModel original ) { } @ Override public void applyUpdate ( ServerModel serverModel ) throws UpdateFailedException { } @ Override public < P > void applyUpdate ( final UpdateContext updateContext , final UpdateResultHandler < ? super Void , P > resultHandler , final P param ) { final ServiceName deploymentUnitServiceName = JBOSS_DEPLOYMENT . append ( deploymentUnitName ) ; final ServiceRegistry serviceRegistry = updateContext . getServiceRegistry ( ) ; final ServiceController < ? > controller = serviceRegistry . getService ( deploymentUnitServiceName ) ; if ( ( deploymentElement ) != null ) { if ( controller != null ) { controller . setMode ( ACTIVE ) ; } else { final ServiceTarget serviceTarget = updateContext . getServiceTarget ( ) ; <START_BUG> final DeploymentUnitService service = new DeploymentUnitService ( deploymentUnitName , deploymentElement . getRuntimeName ( ) , deploymentElement . getSha1Hash ( ) , null ) ; <END_BUG> serviceTarget . addService ( deploymentUnitServiceName , service ) . addDependency ( JBOSS_DEPLOYMENT_CHAINS , DeployerChains . class , service . getDeployerChainsInjector ( ) ) . addDependency ( SERVICE_NAME , ServerDeploymentRepository . class , service . getServerDeploymentRepositoryInjector ( ) ) . setInitialMode ( ACTIVE ) . install ( ) ; } } else if ( resultHandler != null ) { resultHandler . handleSuccess ( null , param ) ; } } }

Fix:
final RootDeploymentUnitService service = new RootDeploymentUnitService ( deploymentUnitName , deploymentElement . getRuntimeName ( ) , deploymentElement . getSha1Hash ( ) , null ) ;
Buggy code:
@ ManagedBean ( name = "loanController" ) public class LoanController extends AbstractSessionController { @ EJB private LoanFacade loanFacade ; @ EJB private CommunityFacade communityFacade ; @ EJB private SerieFacade serieFacade ; private String username ; private String idVolumeSearched ; @ ManagedProperty ( "#{param.id}" ) private String idCurrentLoan ; private List < Loan > userLoans = new ArrayList < Loan > ( ) ; private Loan currentLoan ; private List < User > possibleUser = new ArrayList < User > ( ) ; @ ManagedProperty ( "#{param.idUser}" ) private String idUserToLoan ; private String nameSerie ; @ ManagedProperty ( "#{param.idVolume}" ) private String idVolume ; private Map < String , List < Volume > > series2Volumes = new HashMap < String , List < Volume > > ( ) ; @ PostConstruct public void initLoan ( ) { } public String listLoan ( ) { } public String giveBack ( ) { } public String getLoanInformation ( ) { currentLoan = this . loanFacade . find ( new Long ( idCurrentLoan ) ) ; <START_BUG> System . out . println ( currentLoan ) ; <END_BUG> return "//loan//info" ; } public String showUser ( ) { } public String selectUser ( ) { } public String removeVolume ( ) { } public String addVolume ( ) { } public String searchSeries ( ) { } public String getUsername ( ) { } public void setUsername ( String username ) { } public String getIdVolumeSearched ( ) { } public void setIdVolumeSearched ( String idVolumeSearched ) { } public String getIdCurrentLoan ( ) { } public void setIdCurrentLoan ( String idCurrentLoan ) { } public List < Loan > getUserLoans ( ) { } public void setUserLoans ( List < Loan > userLoans ) { } public Loan getCurrentLoan ( ) { } public void setCurrentLoan ( Loan currentLoan ) { } public List < User > getPossibleUser ( ) { } public void setPossibleUser ( List < User > possibleUser ) { } public String getIdUserToLoan ( ) { } public void setIdUserToLoan ( String idUserToLoan ) { } public String getNameSerie ( ) { } public void setNameSerie ( String nameSerie ) { } public String getIdVolume ( ) { } public void setIdVolume ( String idVolume ) { } public Map < String , List < Volume > > getSeries2Volumes ( ) { } public void setSeries2Volumes ( Map < String , List < Volume > > series2Volumes ) { } }

Fix:
System . out . println ( currentLoan . getVolumes ( ) ) ;
Buggy code:
@ Mod ( name = "MTUtils" , modid = "MTUtils" , dependencies = ( ( "after:UndergroundBiomes;" + "after:" ) + ( ModIDs . API ) ) + ";after:TabulaRasa" ) public class DamageTweaker { @ Mod . EventHandler public void preInit ( FMLPreInitializationEvent event ) { <START_BUG> if ( Loader . isModLoaded ( modid ) ) <END_BUG> UBC . UBCLoad ( event ) ; } @ Mod . EventHandler public void PostInit ( FMLPostInitializationEvent event ) { } public static ItemStack toStack ( IItemStack iStack ) { } public static Block toBlock ( IItemStack input ) { } public static ItemStack [ ] toStacks ( IItemStack [ ] stack ) { } public static FluidStack toFluid ( ILiquidStack iStack ) { } public static FluidStack [ ] toFluids ( ILiquidStack [ ] iStack ) { } }

Fix:
if ( ( Loader . isModLoaded ( modid ) ) || ( Loader . isModLoaded ( "UndergroundBiomes" ) ) )
Buggy code:
public class Logger { public static void debug ( String message ) { <START_BUG> if ( config . DEBUG_FLAG ) { <END_BUG> System . out . println ( ( "Debug:<seq2seq4repair_space>" + message ) ) ; } } public static void error ( String message ) { } public static void error ( String message , Exception e ) { } }

Fix:
if ( config . isDebugEnabled ( ) ) {
Buggy code:
public class TransferObjectFactory { public static void transferMetadataProfile ( MetadataProfile vo , MetadataProfileTO to ) { } public static void transferCollection ( CollectionImeji vo , CollectionTO to ) { } public static void transferPerson ( Person p , PersonTO pto ) { } public static void transferContributorOrganizations ( Collection < Organization > orgas , PersonTO pto ) { } public static void transferProperties ( Properties vo , PropertiesTO to ) { } public static void transferItem ( Item vo , ItemTO to ) { } public static void tranferItemMetadata ( MetadataProfile profile , Collection < Metadata > voMds , ItemTO to ) { } public static String formatDate ( Date d ) { String output = "" ; SimpleDateFormat f = new SimpleDateFormat ( "yyyy-MM-dd" ) ; output = f . format ( d ) ; <START_BUG> f = new SimpleDateFormat ( "HH:mm:SS<seq2seq4repair_space>Z" ) ; <END_BUG> output += "T" + ( f . format ( d ) ) ; return output ; } public static String extractIDFromURI ( URI uri ) { } }

Fix:
f = new SimpleDateFormat ( "HH:mm:ss<seq2seq4repair_space>Z" ) ;
Buggy code:
public class ImportWizardLauncher { public ImportWizardLauncher ( ) { } public void launchWizard ( ) { final ImportPluginHandler pluginHandler ; try { pluginHandler = ( ( ImportPluginHandler ) ( pluginManager . getHandler ( "org.columba.addressbook.import" ) ) ) ; } catch ( PluginHandlerNotFoundException ex ) { NotifyDialog d = new NotifyDialog ( ) ; d . showDialog ( ex ) ; return ; } DataModel data = new DataModel ( ) ; data . registerDataLookup ( "Plugin.handler" , new DataLookup ( ) { public Object lookupData ( ) { return pluginHandler ; } } ) ; WizardModel model = new net . javaprog . ui . wizard . DefaultWizardModel ( new Step [ ] { new PluginStep ( data ) , new LocationStep ( data ) } ) ; model . addWizardModelListener ( new AddressbookImporter ( data ) ) ; <START_BUG> Wizard wizard = new Wizard ( model , AddressbookResourceLoader . getString ( "dialog" , "addressbookimport" , "title" ) , ImageLoader . getSmallImageIcon ( "stock_convert.png" ) ) ; <END_BUG> wizard . pack ( ) ; wizard . setLocationRelativeTo ( null ) ; wizard . setVisible ( true ) ; } }

Fix:
Wizard wizard = new Wizard ( model , AddressbookResourceLoader . getString ( "dialog" , "addressbookimport" , "title" ) , ImageLoader . getSmallImageIcon ( "stock_convert-32.png" ) ) ;