nus-yam/ex-repair huggingface dataset:
Buggy code:
public class DefaultProblemFactory implements IProblemFactory { public String [ ] messageTemplates ; private Locale locale ; private static String [ ] DEFAULT_LOCALE_TEMPLATES ; private static final char [ ] DOUBLE_QUOTES = "''" . toCharArray ( ) ; private static final char [ ] SINGLE_QUOTE = "'" . toCharArray ( ) ; public DefaultProblemFactory ( Locale loc ) { } public IProblem createProblem ( char [ ] originatingFileName , int problemId , String [ ] problemArguments , String [ ] messageArguments , int severity , int startPosition , int endPosition , int lineNumber ) { } public Locale getLocale ( ) { } public final String getLocalizedMessage ( int id , String [ ] problemArguments ) { StringBuffer output = new StringBuffer ( 80 ) ; String message = messageTemplates [ ( id & ( IProblem . IgnoreCategoriesMask ) ) ] ; if ( message == null ) { <START_BUG> return ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>retrieve<seq2seq4repair_space>the<seq2seq4repair_space>error<seq2seq4repair_space>message<seq2seq4repair_space>for<seq2seq4repair_space>problem<seq2seq4repair_space>id:<seq2seq4repair_space>" + id ) + ".<seq2seq4repair_space>Check<seq2seq4repair_space>compiler<seq2seq4repair_space>resources." ; <END_BUG> } char [ ] messageWithNoDoubleQuotes = CharOperation . replace ( message . toCharArray ( ) , DefaultProblemFactory . DOUBLE_QUOTES , DefaultProblemFactory . SINGLE_QUOTE ) ; message = new String ( messageWithNoDoubleQuotes ) ; int length = message . length ( ) ; int start = - 1 ; int end = length ; while ( true ) { if ( ( end = message . indexOf ( '{' , start ) ) > ( - 1 ) ) { output . append ( message . substring ( ( start + 1 ) , end ) ) ; if ( ( start = message . indexOf ( '}' , end ) ) > ( - 1 ) ) { try { output . append ( problemArguments [ Integer . parseInt ( message . substring ( ( end + 1 ) , start ) ) ] ) ; } catch ( NumberFormatException nfe ) { output . append ( message . substring ( ( end + 1 ) , ( start + 1 ) ) ) ; } catch ( ArrayIndexOutOfBoundsException e ) { return ( "Corrupted<seq2seq4repair_space>compiler<seq2seq4repair_space>resources<seq2seq4repair_space>for<seq2seq4repair_space>problem<seq2seq4repair_space>id:<seq2seq4repair_space>" + ( id & ( IProblem . IgnoreCategoriesMask ) ) ) + ".<seq2seq4repair_space>Check<seq2seq4repair_space>compiler<seq2seq4repair_space>resources." ; } } else { output . append ( message . substring ( end , length ) ) ; break ; } } else { output . append ( message . substring ( ( start + 1 ) , length ) ) ; break ; } } return output . toString ( ) ; } public final String localizedMessage ( IProblem problem ) { } public static String [ ] loadMessageTemplates ( Locale loc ) { } public DefaultProblemFactory ( ) { } }

Fix:
return ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>retrieve<seq2seq4repair_space>the<seq2seq4repair_space>error<seq2seq4repair_space>message<seq2seq4repair_space>for<seq2seq4repair_space>problem<seq2seq4repair_space>id:<seq2seq4repair_space>" + ( id & ( IProblem . IgnoreCategoriesMask ) ) ) + ".<seq2seq4repair_space>Check<seq2seq4repair_space>compiler<seq2seq4repair_space>resources." ;
Buggy code:
public class NewTaskActivity extends BaseActivity implements OnDateSetListener , OnClickListener , OnStudentsVerifiedListener { private static final String ST_SUBJECTS = "st.subjects" ; private static final String ST_TYPES = "st.types" ; private static final String TAG = NewTaskActivity . class . getSimpleName ( ) ; private Task task ; private ArrayList < String > mSubjectNames ; private ArrayList < String > mTypesNames ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void setupSpinners ( ) { } public ArrayList < String > getTypesNames ( ) { } private ArrayList < String > getSubjectNames ( ) { } private Spinner getSubjectSpinner ( ) { } private Spinner getTypeSpinner ( ) { } @ Override protected void onSaveInstanceState ( Bundle outState ) { super . onSaveInstanceState ( outState ) ; <START_BUG> outState . putString ( EXTRA_TASKNAME , task . getName ( ) ) ; <END_BUG> outState . putStringArrayList ( NewTaskActivity . ST_SUBJECTS , mSubjectNames ) ; outState . putStringArrayList ( NewTaskActivity . ST_TYPES , mTypesNames ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override public void onClick ( View v ) { } private boolean createNewTask ( View v ) { } @ Override public void onDateSet ( DatePicker picker , int year , int monthOfYear , int dayOfMonth ) { } @ Override public void onStudentsVerified ( Task task ) { } @ Override public void addStudent ( Student std ) { } @ Override public void removeStudent ( Student std ) { } }

Fix:
outState . putSerializable ( EXTRA_TASKNAME , task ) ;
Buggy code:
public abstract class RatingPanel extends Panel { private final class RatingStarBar extends Loop { private static final long serialVersionUID = 1L ; private RatingStarBar ( String id , IModel model ) { } protected void populateItem ( LoopItem item ) { AjaxFallbackLink link = new AjaxFallbackLink ( "link" ) { private static final long serialVersionUID = 1L ; public void onClick ( AjaxRequestTarget target ) { LoopItem item = ( ( LoopItem ) ( getParent ( ) ) ) ; onRated ( ( ( item . getIteration ( ) ) + 1 ) , target ) ; if ( target != null ) { target . addComponent ( RatingPanel . this . get ( "rater" ) ) ; } } public boolean isEnabled ( ) { <START_BUG> return ! ( ( ( Boolean ) ( hasVoted . getObject ( RatingPanel . this ) ) ) . booleanValue ( ) ) ; <END_BUG> } } ; int iteration = item . getIteration ( ) ; link . add ( new WebMarkupContainer ( "star" ) . add ( new SimpleAttributeModifier ( "src" , ( onIsStarActive ( iteration ) ? getActiveStarUrl ( iteration ) : getInactiveStarUrl ( iteration ) ) ) ) ) ; item . add ( link ) ; } } private static final long serialVersionUID = 1L ; public static final ResourceReference STAR0 = new ResourceReference ( RatingPanel . class , "star0.gif" ) ; public static final ResourceReference STAR1 = new ResourceReference ( RatingPanel . class , "star1.gif" ) ; private IModel nrOfStars = new Model ( new Integer ( 5 ) ) ; private IModel nrOfVotes ; private IModel hasVoted ; private Component ratingLabel ; public RatingPanel ( String id ) { } public RatingPanel ( String id , IModel rating ) { } public RatingPanel ( String id , int nrOfStars ) { } public RatingPanel ( String id , IModel rating , int nrOfStars , boolean addDefaultCssStyle ) { } public RatingPanel ( String id , IModel rating , int nrOfStars , IModel nrOfVotes , boolean addDefaultCssStyle ) { } public RatingPanel ( String id , IModel rating , IModel nrOfStars , IModel nrOfVotes , IModel hasVoted , boolean addDefaultCssStyle ) { } public final void addDefaultCssStyle ( ) { } protected Component newRatingStarBar ( String id , IModel nrOfStars ) { } protected Component newRatingLabel ( String id , IModel rating , IModel nrOfVotes ) { } protected String getActiveStarUrl ( int iteration ) { } protected String getInactiveStarUrl ( int iteration ) { } public RatingPanel setRatingLabelVisible ( boolean visible ) { } protected abstract boolean onIsStarActive ( int star ) { } protected abstract void onRated ( int rating , AjaxRequestTarget target ) { } }

Fix:
return ! ( ( ( Boolean ) ( hasVoted . getObject ( ) ) ) . booleanValue ( ) ) ;
Buggy code:
public class Test_org_eclipse_swt_widgets_TreeItem extends Test_org_eclipse_swt_widgets_Item { public Test_org_eclipse_swt_widgets_TreeItem ( String name ) { } public static void main ( String [ ] args ) { } protected void setUp ( ) { } protected void tearDown ( ) { } public void test_ConstructorLorg_eclipse_swt_widgets_TreeI ( ) { } public void test_ConstructorLorg_eclipse_swt_widgets_TreeII ( ) { } public void test_ConstructorLorg_eclipse_swt_widgets_TreeItemI ( ) { } public void test_ConstructorLorg_eclipse_swt_widgets_TreeItemII ( ) { } public void test_getBackground ( ) { } public void test_getBounds ( ) { } public void test_getChecked ( ) { } public void test_getExpanded ( ) { } public void test_getForeground ( ) { } public void test_getGrayed ( ) { } public void test_getItemCount ( ) { } public void test_getItems ( ) { } public void test_getParent ( ) { } public void test_getParentItem ( ) { } public void test_setBackgroundLorg_eclipse_swt_graphics_Color ( ) { } public void test_setCheckedZ ( ) { } public void test_setExpandedZ ( ) { } public void test_setForegroundLorg_eclipse_swt_graphics_Color ( ) { } public void test_setGrayedZ ( ) { } public void test_setImageLorg_eclipse_swt_graphics_Image ( ) { } public void test_setTextLjava_lang_String ( ) { try { <START_BUG> treeItem . setText ( null ) ; <END_BUG> fail ( "No<seq2seq4repair_space>exception<seq2seq4repair_space>thrown<seq2seq4repair_space>for<seq2seq4repair_space>string<seq2seq4repair_space>==<seq2seq4repair_space>null" ) ; } catch ( IllegalArgumentException e ) { } } public static Test suite ( ) { } public static Vector methodNames ( ) { } protected void runTest ( ) throws Throwable { } TreeItem treeItem ; Tree tree ; }

Fix:
treeItem . setText ( ( ( String ) ( null ) ) ) ;
Buggy code:
public class ReverseOrdFieldSource extends ValueSource { public String field ; public ReverseOrdFieldSource ( String field ) { } @ Override public String description ( ) { } @ Override public DocValues getValues ( Map context , AtomicReaderContext readerContext ) throws IOException { } @ Override public boolean equals ( Object o ) { <START_BUG> if ( ( o . getClass ( ) ) != ( ReverseOrdFieldSource . class ) ) <END_BUG> return false ; ReverseOrdFieldSource other = ( ( ReverseOrdFieldSource ) ( o ) ) ; return this . field . equals ( other . field ) ; } private static final int hcode = ReverseOrdFieldSource . class . hashCode ( ) ; @ Override public int hashCode ( ) { } }

Fix:
if ( ( o == null ) || ( ( o . getClass ( ) ) != ( ReverseOrdFieldSource . class ) ) )
Buggy code:
public class Comment { private FacebookUser author ; private String text ; private String objId ; public Comment ( ) { } public Comment ( String objId , FacebookUser author , String text ) { } public static Comment ParseToFeed ( ParseObject parseComment , FacebookUser author ) { } public FacebookUser getAuthor ( ) { } public String getText ( ) { <START_BUG> return getText ( ) ; <END_BUG> } public String getObjId ( ) { } }

Fix:
return this . text ;
Buggy code:
public class HeartsActivity extends GameActivity implements Serializable { private boolean finishedSwapping = false ; private List < List < Card > > chosenLists = new ArrayList < List < Card > > ( ) ; private List < Card > chosenCards = new ArrayList < Card > ( ) ; Map < Pair < Integer , View > , AnimatorSet > animationsActive = new HashMap < Pair < Integer , View > , AnimatorSet > ( ) ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public void onPause ( ) { } @ Override public void onConfigurationChanged ( Configuration config ) { } public void findStartPlayer ( ) { } public void playerHandle ( View v ) { } public void botHandle ( final long delay ) { } public void restOfRoundHandle ( ) { } public void endGame ( ) { } public void gameClick ( View v ) { } public void endPot ( ) { ( currentPotTurn ) ++ ; manager . potAnalyze ( ) ; currentPlayerInteracting = manager . startPlayer ; HeartsPlayer winPlayer = ( ( HeartsPlayer ) ( manager . getPlayers ( ) [ manager . startPlayer ] ) ) ; winPlayer . obtainedCards = true ; for ( Card c : pot . values ( ) ) winPlayer . endPile . add ( c ) ; pot . clear ( ) ; roundScores . clear ( ) ; for ( int i = 0 ; i < ( manager . getPlayers ( ) . length ) ; i ++ ) { roundScores . add ( ( ( HeartsPlayer ) ( manager . getPlayers ( ) [ i ] ) ) . tallyRoundScore ( ) ) ; } GameAnimation . collectEndPile ( this , new Runnable ( ) { @ Override public void run ( ) { displayEndPiles ( roundScores ) ; usedCards . addAll ( pot . values ( ) ) ; potClear ( ) ; displayPot ( ) ; <START_BUG> if ( ( currentPotTurn ) == 13 ) <END_BUG> finishedRound ( ) ; } } , currentPlayerInteracting ) ; } public void finishedRound ( ) { } public void chooseCards ( Card chosenCard , int swapRound , View v ) { } public void swapCards ( int swapRound ) { } public void reset ( ) { } public void displayEndPiles ( List < Integer > scores ) { } public void displayHands ( int player , boolean cardsClickable ) { } public void dealCards ( ) { } public void loadGame ( ) { } public void saveGame ( ) { } public void openGuessDialog ( final int currentPlayer ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
if ( ( currentPotTurn ) == 12 )
Buggy code:
public class EjbcHelper { private File descriptorDirectory ; private File generatedFilesDirectory ; private File manifestFile ; private String classpath ; private File sourceDirectory ; String [ ] descriptors ; private boolean keepGenerated ; public static void main ( String [ ] args ) throws Exception { } private EjbcHelper ( String [ ] args ) { } private String [ ] getCommandLine ( boolean debug , File descriptorFile ) { } private boolean isRegenRequired ( File descriptorFile ) throws IOException { } private void process ( ) throws Exception { String manifest = "Manifest-Version:<seq2seq4repair_space>1.0\n\n" ; for ( int i = 0 ; i < ( descriptors . length ) ; ++ i ) { String descriptorName = descriptors [ i ] ; File descriptorFile = new File ( descriptorDirectory , descriptorName ) ; if ( isRegenRequired ( descriptorFile ) ) { System . out . println ( ( "Running<seq2seq4repair_space>ejbc<seq2seq4repair_space>for<seq2seq4repair_space>" + ( descriptorFile . getName ( ) ) ) ) ; regenerateSupportClasses ( descriptorFile ) ; } else { System . out . println ( ( ( descriptorFile . getName ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>up<seq2seq4repair_space>to<seq2seq4repair_space>date" ) ) ; } <START_BUG> manifest += ( "Name:<seq2seq4repair_space>" + ( descriptorFile . getName ( ) ) ) + "\nEnterprise-Bean:<seq2seq4repair_space>True\n\n" ; <END_BUG> } FileWriter fw = new FileWriter ( manifestFile ) ; PrintWriter pw = new PrintWriter ( fw ) ; pw . print ( manifest ) ; fw . flush ( ) ; fw . close ( ) ; } private void regenerateSupportClasses ( File descriptorFile ) throws Exception { } }

Fix:
manifest += ( "Name:<seq2seq4repair_space>" + ( descriptorName . replace ( '\\' , '//' ) ) ) + "\nEnterprise-Bean:<seq2seq4repair_space>True\n\n" ;
Buggy code:
public class Game extends Camera { private final Mesh mesh ; private final Material material ; private final Shader shader ; private final Transform transform ; @ SuppressWarnings ( "LeakingThisInConstructor" ) public Game ( ) { } float temp = 0.0F ; public void updateGame ( ) { temp += Time . getDelta ( ) ; float sinTemp = ( ( float ) ( Math . sin ( temp ) ) ) ; <START_BUG> transform . setM_translation ( 0 , 0 , 5 ) ; <END_BUG> transform . setM_rotation ( 0 , ( sinTemp * 180 ) , 0 ) ; } public void render ( ) { } }

Fix:
transform . setM_translation ( 0 , 0 , 0 ) ;
Buggy code:
@ RunWith ( Arquillian . class ) public class BundleStateTestCase { @ Inject public BundleContext context ; @ Deployment @ StartLevelAware ( startLevel = 3 ) public static JavaArchive createdeployment ( ) { final JavaArchive archive = ShrinkWrap . create ( JavaArchive . class , "example-bundlestate" ) ; archive . addClass ( OSGiTestSupport . class ) ; archive . setManifest ( new Asset ( ) { public InputStream openStream ( ) { OSGiManifestBuilder builder = OSGiManifestBuilder . newInstance ( ) ; builder . addBundleSymbolicName ( archive . getName ( ) ) ; builder . addBundleManifestVersion ( 2 ) ; builder . addImportPackages ( BundleStateMBean . class ) ; <START_BUG> builder . addImportPackages ( StartLevel . class , MBeanServer . class , MBeanProxy . class ) ; <END_BUG> return builder . openStream ( ) ; } } ) ; return archive ; } @ Test public void testBundleStateMBean ( ) throws Exception { } }

Fix:
builder . addImportPackages ( StartLevel . class , MBeanServer . class , MBeanProxy . class , TabularData . class ) ;
Buggy code:
public class IndoorRobotRepair implements Workstation { @ Override public void execute ( ) { <START_BUG> System . out . println ( "Performing<seq2seq4repair_space>indoor<seq2seq4repair_space>diagnosis<seq2seq4repair_space>tasks<seq2seq4repair_space>on<seq2seq4repair_space>robot." ) ; <END_BUG> } }

Fix:
System . out . println ( "Performing<seq2seq4repair_space>indoor<seq2seq4repair_space>repair<seq2seq4repair_space>tasks<seq2seq4repair_space>on<seq2seq4repair_space>robot." ) ;
Buggy code:
public class dsearch extends JFrame { String url ; String response ; URL obj ; HttpURLConnection con ; int responseCode ; BufferedReader in ; public dsearch ( ) { } @ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { } private void executeActionPerformed ( ActionEvent evt ) { try { url = "https:////domai.nr//api//json//search?q=" + ( site . getText ( ) ) ; obj = new URL ( url ) ; con = ( ( HttpURLConnection ) ( obj . openConnection ( ) ) ) ; con . setRequestProperty ( "User-Agent" , "Anagha" ) ; responseCode = con . getResponseCode ( ) ; if ( ( responseCode ) != 200 ) { status . setText ( "Cannot<seq2seq4repair_space>Process" ) ; } else { in = new BufferedReader ( new InputStreamReader ( con . getInputStream ( ) ) ) ; response = in . readLine ( ) ; String query = JsonPath . read ( response , "$.query" ) ; List < String > domains = JsonPath . read ( response , "$.results[*].domain" ) ; List < String > availability = JsonPath . read ( response , "$.results[*].availability" ) ; value . append ( ( ( "Query:<seq2seq4repair_space>" + query ) + "\n" ) ) ; for ( int i = 0 ; i < ( domains . size ( ) ) ; i ++ ) { value . append ( ( ( ( domains . get ( i ) ) + "<seq2seq4repair_space>:<seq2seq4repair_space>" ) + ( availability . get ( i ) ) ) ) ; value . append ( "\n" ) ; } in . close ( ) ; status . setText ( "Finished" ) ; } } catch ( IOException ex ) { <START_BUG> Logger . getLogger ( sitevalue . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; <END_BUG> } } private void backActionPerformed ( ActionEvent evt ) { } private void addActionPerformed ( ActionEvent evt ) { } private void siteMouseClicked ( MouseEvent evt ) { } private void siteKeyPressed ( KeyEvent evt ) { } public static void main ( String [ ] args ) { } private JPanel C1 ; private JButton add ; private JButton back ; private JButton execute ; private JScrollPane jScrollPane2 ; private JTextField site ; private JLabel status ; private JTextArea value ; }

Fix:
Logger . getLogger ( dsearch . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ;
Buggy code:
public final class InsertNode extends DMLModStatementNode { public ResultColumnList targetColumnList ; public boolean deferred ; public ValueNode checkConstraints ; public Properties targetProperties ; public FKInfo fkInfo ; protected boolean bulkInsert ; private boolean bulkInsertReplace ; protected RowLocation [ ] autoincRowLocation ; public void init ( Object targetName , Object insertColumns , Object queryExpression , Object targetProperties ) { } public String toString ( ) { } public String statementToString ( ) { } public void printSubNodes ( int depth ) { } public void bindStatement ( ) throws StandardException { } private void enhanceAndCheckForAutoincrement ( ResultSetNode resultSet , boolean inOrder , int numTableColumns , int [ ] colMap , DataDictionary dataDictionary , TableDescriptor targetTableDescriptor , FromVTI targetVTI ) throws StandardException { } int getPrivType ( ) { } public boolean referencesSessionSchema ( ) throws StandardException { } private void verifyTargetProperties ( DataDictionary dd ) throws StandardException { } private boolean verifyBulkInsert ( DataDictionary dd , String mode ) throws StandardException { } public ConstantAction makeConstantAction ( ) throws StandardException { } public boolean [ ] getIndexedCols ( ) throws StandardException { } public void generate ( ActivationClassBuilder acb , MethodBuilder mb ) throws StandardException { generateCodeForTemporaryTable ( acb , acb . getExecuteMethod ( ) ) ; generateParameterValueSet ( acb ) ; if ( ( targetTableDescriptor ) != null ) { acb . pushGetResultSetFactoryExpression ( mb ) ; resultSet . generate ( acb , mb ) ; <START_BUG> generateGenerationClauses ( resultColumnList , resultSet . getResultSetNumber ( ) , acb , mb ) ; <END_BUG> generateCheckConstraints ( checkConstraints , acb , mb ) ; mb . callMethod ( INVOKEINTERFACE , ( ( String ) ( null ) ) , "getInsertResultSet" , ResultSet , 3 ) ; } else { targetVTI . assignCostEstimate ( resultSet . getNewCostEstimate ( ) ) ; acb . pushGetResultSetFactoryExpression ( mb ) ; resultSet . generate ( acb , mb ) ; targetVTI . generate ( acb , mb ) ; mb . callMethod ( INVOKEINTERFACE , ( ( String ) ( null ) ) , "getInsertVTIResultSet" , ResultSet , 2 ) ; } } protected final int getStatementType ( ) { } static final int getStatementType ( Properties targetProperties ) { } private void getAffectedIndexes ( TableDescriptor td ) throws StandardException { } }

Fix:
generateGenerationClauses ( resultColumnList , resultSet . getResultSetNumber ( ) , false , acb , mb ) ;
Buggy code:
public class ExecutableManager { private static final Logger logger = LoggerFactory . getLogger ( ExecutableManager . class ) ; private static final ConcurrentHashMap < KylinConfig , ExecutableManager > CACHE = new ConcurrentHashMap < KylinConfig , ExecutableManager > ( ) ; private JobDao jobDao ; public static ExecutableManager getInstance ( KylinConfig config ) { } private ExecutableManager ( KylinConfig config ) { } public void addJob ( AbstractExecutable executable ) { } private void addJobOutput ( AbstractExecutable executable ) throws PersistentException { } public void deleteJob ( AbstractExecutable executable ) { } public AbstractExecutable getJob ( String uuid ) { } public Output getOutput ( String uuid ) { } public List < AbstractExecutable > getAllExecutables ( ) { } public void updateAllRunningJobsToError ( ) { } public void resumeJob ( String jobId ) { } public void discardJob ( String jobId ) { } public void updateJobOutput ( String jobId , ExecutableState newStatus , Map < String , String > info , String output ) { try { final JobOutputPO jobOutput = jobDao . getJobOutput ( jobId ) ; ExecutableState oldStatus = ExecutableState . valueOf ( jobOutput . getStatus ( ) ) ; <START_BUG> if ( ( newStatus != null ) && ( oldStatus == newStatus ) ) { <END_BUG> if ( ! ( ExecutableState . isValidStateTransfer ( oldStatus , newStatus ) ) ) { throw new com . kylinolap . job2 . exception . IllegalStateTranferException ( ( ( ( "there<seq2seq4repair_space>is<seq2seq4repair_space>no<seq2seq4repair_space>valid<seq2seq4repair_space>state<seq2seq4repair_space>transfer<seq2seq4repair_space>from:" + oldStatus ) + "<seq2seq4repair_space>to:" ) + newStatus ) ) ; } jobOutput . setStatus ( newStatus . toString ( ) ) ; } if ( info != null ) { jobOutput . setInfo ( info ) ; } if ( output != null ) { jobOutput . setContent ( output ) ; } jobDao . updateJobOutput ( jobOutput ) ; ExecutableManager . logger . info ( ( ( ( ( ( "job<seq2seq4repair_space>id:" + jobId ) + "<seq2seq4repair_space>from<seq2seq4repair_space>" ) + oldStatus ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + newStatus ) ) ; } catch ( PersistentException e ) { ExecutableManager . logger . error ( ( ( ( "error<seq2seq4repair_space>change<seq2seq4repair_space>job:" + jobId ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( newStatus . toString ( ) ) ) ) ; throw new RuntimeException ( e ) ; } } public void addJobInfo ( String id , Map < String , String > info ) { } public void addJobInfo ( String id , String key , String value ) { } private void stopJob ( AbstractExecutable job ) { } private JobPO getJobPO ( AbstractExecutable executable ) { } private AbstractExecutable parseTo ( JobPO jobPO ) { } }

Fix:
if ( ( newStatus != null ) && ( oldStatus != newStatus ) ) {
Buggy code:
public final class TextMessage extends WebSocketMessage < String > { public TextMessage ( CharSequence payload ) { } public TextMessage ( CharSequence payload , boolean isLast ) { } @ Override protected int getPayloadSize ( ) { } @ Override protected String toStringPayload ( ) { <START_BUG> return ( getPayloadSize ( ) ) > 80 ? ( getPayload ( ) . substring ( 0 , 80 ) ) + "..." : getPayload ( ) ; <END_BUG> } }

Fix:
return ( getPayloadSize ( ) ) > 10 ? ( getPayload ( ) . substring ( 0 , 10 ) ) + ".." : getPayload ( ) ;
Buggy code:
public abstract class Token < T extends Comparable > implements Serializable , Comparable < Token < T > > { private static final Token . TokenSerializer serializer = new Token . TokenSerializer ( ) ; public static Token . TokenSerializer serializer ( ) { } T token ; protected Token ( T token ) { } public int compareTo ( Token < T > o ) { } public String toString ( ) { <START_BUG> return ( "Token(" + ( token ) ) + ")" ; <END_BUG> } public boolean equals ( Object obj ) { } public int hashCode ( ) { } public abstract static class TokenFactory < T extends Comparable > { public abstract byte [ ] toByteArray ( Token < T > token ) { } public abstract Token < T > fromByteArray ( byte [ ] bytes ) { } public abstract String toString ( Token < T > token ) { } public abstract Token < T > fromString ( String string ) { } } public static class TokenSerializer implements ICompactSerializer < Token > { public void serialize ( Token token , DataOutputStream dos ) throws IOException { } public Token deserialize ( DataInputStream dis ) throws IOException { } } }

Fix:
return token . toString ( ) ;
Buggy code:
public interface IMobil { public void setSpeedX ( int miSpeedX ) { } public double setSpeedX ( ) { } public void setSpeedY ( int miSpeedY ) { } <START_BUG> public int getSpeedX ( ) ; <END_BUG> public double getSpeedY ( ) { } public void setSpeed ( int x , int y ) { } public void move ( ) { } public void moveAceleration ( ) { } void aceleration ( ) { } void speedMove ( ) { } void limitMove ( ) { } public void setReceiveCollision ( boolean b ) { } public boolean getReceiveCollision ( ) { } }

Fix:
public double getSpeedX ( ) ;
Buggy code:
public class TSIGRecord extends Record { private Name alg ; private Date timeSigned ; private short fudge ; private byte [ ] signature ; private int originalID ; private short error ; private byte [ ] other ; public TSIGRecord ( Name _name , short _dclass , int _ttl , Name _alg , Date _timeSigned , short _fudge , byte [ ] _signature , int _originalID , short _error , byte [ ] _other ) throws IOException { } TSIGRecord ( Name _name , short _dclass , int _ttl , int length , DataByteInputStream in , Compression c ) throws IOException { } public String toString ( ) { StringBuffer sb = toStringNoData ( ) ; if ( ( alg ) == null ) return sb . toString ( ) ; sb . append ( alg ) ; sb . append ( "<seq2seq4repair_space>(\n\t" ) ; sb . append ( ( ( timeSigned . getTime ( ) ) // 1000 ) ) ; sb . append ( "<seq2seq4repair_space>" ) ; <START_BUG> sb . append ( Rcode . string ( error ) ) ; <END_BUG> sb . append ( "\n" ) ; sb . append ( base64 . formatString ( signature , 64 , "\t" , false ) ) ; if ( ( other ) != null ) { sb . append ( "\n\t<seq2seq4repair_space><" ) ; if ( ( error ) == ( Rcode . BADTIME ) ) { try { DataByteInputStream is ; is = new DataByteInputStream ( other ) ; long time = is . readUnsignedShort ( ) ; time <<= 32 ; time += ( ( long ) ( is . readInt ( ) ) ) & - 1 ; sb . append ( "Server<seq2seq4repair_space>time:<seq2seq4repair_space>" ) ; sb . append ( new Date ( ( time * 1000 ) ) ) ; } catch ( IOException e ) { sb . append ( "Truncated<seq2seq4repair_space>BADTIME<seq2seq4repair_space>other<seq2seq4repair_space>data" ) ; } } else sb . append ( base64 . toString ( other ) ) ; sb . append ( ">" ) ; } sb . append ( "<seq2seq4repair_space>)" ) ; return sb . toString ( ) ; } public Name getAlg ( ) { } public Date getTimeSigned ( ) { } public short getFudge ( ) { } public byte [ ] getSignature ( ) { } public int getOriginalID ( ) { } public short getError ( ) { } public byte [ ] getOther ( ) { } void rrToWire ( DataByteOutputStream out , Compression c ) throws IOException { } void rrToWireCanonical ( DataByteOutputStream out ) throws IOException { } }

Fix:
sb . append ( Rcode . TSIGstring ( error ) ) ;
Buggy code:
public class NewPageComponent extends CustomComponent { private static final Logger logger = Logger . getLogger ( NewPageComponent . class . getName ( ) ) ; private final ObjectProperty < String > urlProperty = new ObjectProperty ( "" ) ; public NewPageComponent ( ) { } private void download ( ) { Downloader downloader ; String baseUrl = urlProperty . getValue ( ) ; Util . NamedPath namedPath = Util . makeWorkDir ( ) ; if ( namedPath == null ) { throw new NullPointerException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>create<seq2seq4repair_space>work<seq2seq4repair_space>dir" ) ; } try { URL url = new URL ( baseUrl ) ; downloader = new Downloader ( namedPath . getPath ( ) ) ; downloader . download ( url ) ; } catch ( MalformedURLException mue ) { NewPageComponent . logger . log ( Level . SEVERE , ( "Malformed<seq2seq4repair_space>url:" + baseUrl ) , mue ) ; } catch ( IOException ioe ) { NewPageComponent . logger . log ( Level . SEVERE , "IOException<seq2seq4repair_space>while<seq2seq4repair_space>downloading:" , ioe ) ; } Properties config = new Properties ( ) ; config . put ( "url" , baseUrl ) ; try ( OutputStream os = Files . newOutputStream ( namedPath . getPath ( ) . resolve ( "config.properties" ) ) ) { config . store ( os , "Parsing<seq2seq4repair_space>settings" ) ; } catch ( IOException ioe ) { NewPageComponent . logger . log ( Level . SEVERE , "IOException<seq2seq4repair_space>while<seq2seq4repair_space>writing<seq2seq4repair_space>config:" , ioe ) ; } URI location = getUI ( ) . getPage ( ) . getLocation ( ) ; <START_BUG> String newLocation = ( ( location . toString ( ) ) + "edit?id=" ) + ( namedPath . getName ( ) ) ; <END_BUG> getUI ( ) . getPage ( ) . open ( newLocation , null , false ) ; } }

Fix:
String newLocation = ( ( location . toString ( ) ) + "//edit?id=" ) + ( namedPath . getName ( ) ) ;
Buggy code:
public interface Bootstrap { AsyncFuture < ServiceContainer > bootstrap ( Bootstrap . Configuration configuration , List < ServiceActivator > extraServices ) { } AsyncFuture < ServiceContainer > startup ( Bootstrap . Configuration configuration , List < ServiceActivator > extraServices ) { } final class Configuration { private ServerEnvironment serverEnvironment ; private ModuleLoader moduleLoader = Module . getBootModuleLoader ( ) ; private ExtensibleConfigurationPersister configurationPersister ; private long startTime = Module . getStartTime ( ) ; public void setPortOffset ( final int portOffset ) { } public ServerEnvironment getServerEnvironment ( ) { } public synchronized void setServerEnvironment ( final ServerEnvironment serverEnvironment ) { } public ModuleLoader getModuleLoader ( ) { } public void setModuleLoader ( final ModuleLoader moduleLoader ) { } public synchronized ExtensibleConfigurationPersister getConfigurationPersister ( ) { if ( ( configurationPersister ) == null ) { if ( ( serverEnvironment ) == null ) { configurationPersister = new NullConfigurationPersister ( new StandaloneXml ( moduleLoader ) ) ; } else { QName rootElement = new QName ( CURRENT . getUriString ( ) , "server" ) ; StandaloneXml parser = new StandaloneXml ( Module . getBootModuleLoader ( ) ) ; BackupXmlConfigurationPersister persister = new BackupXmlConfigurationPersister ( serverEnvironment . getServerConfigurationFile ( ) , rootElement , parser , parser ) ; <START_BUG> persister . registerAdditionalRootElement ( new QName ( DOMAIN_1_1 . getUriString ( ) , "server" ) , parser ) ; <END_BUG> configurationPersister = persister ; } } return configurationPersister ; } public synchronized void setConfigurationPersister ( final ExtensibleConfigurationPersister configurationPersister ) { } public long getStartTime ( ) { } public void setStartTime ( final long startTime ) { } } final class Factory { private Factory ( ) { } public static Bootstrap newInstance ( ) { } } }

Fix:
persister . registerAdditionalRootElement ( new QName ( DOMAIN_1_0 . getUriString ( ) , "server" ) , parser ) ;
Buggy code:
public class TumblrRipper extends AlbumRipper { private static final String DOMAIN = "tumblr.com" ; private static final String HOST = "tumblr" ; private static final String IMAGE_PATTERN = "([^\\s]+(\\.(?i)(jpg|png|gif|bmp))$)" ; private enum ALBUM_TYPE { SUBDOMAIN , TAG , POST ; } private TumblrRipper . ALBUM_TYPE albumType ; private String subdomain ; private String tagName ; private String postNumber ; private static final String API_KEY ; public TumblrRipper ( URL url ) throws IOException { } @ Override public boolean canRip ( URL url ) { } @ Override public URL sanitizeURL ( URL url ) throws MalformedURLException { } public boolean isTumblrURL ( URL url ) { } @ Override public void rip ( ) throws IOException { } private boolean handleJSON ( JSONObject json ) { } private String getTumblrApiURL ( String mediaType , int offset ) { } @ Override public String getHost ( ) { } @ Override public String getGID ( URL url ) throws MalformedURLException { final String DOMAIN_REGEX = "^https?:////([a-zA-Z0-9\\-\\.]+)" ; Pattern p ; Matcher m ; p = Pattern . compile ( ( DOMAIN_REGEX + "//tagged//([a-zA-Z0-9\\-%]+).*$" ) ) ; m = p . matcher ( url . toExternalForm ( ) ) ; if ( m . matches ( ) ) { this . albumType = TumblrRipper . ALBUM_TYPE . TAG ; this . subdomain = m . group ( 1 ) ; this . tagName = m . group ( 2 ) ; this . tagName = this . tagName . replace ( '-' , '+' ) . replace ( "_" , "%20" ) ; return ( ( this . subdomain ) + "_tag_" ) + ( this . tagName . replace ( "%20" , "<seq2seq4repair_space>" ) ) ; } p = Pattern . compile ( ( DOMAIN_REGEX + "//post//([0-9]+).*$" ) ) ; m = p . matcher ( url . toExternalForm ( ) ) ; if ( m . matches ( ) ) { this . albumType = TumblrRipper . ALBUM_TYPE . POST ; this . subdomain = m . group ( 1 ) ; this . postNumber = m . group ( 2 ) ; return ( ( this . subdomain ) + "_post_" ) + ( this . postNumber ) ; } <START_BUG> p = Pattern . compile ( ( DOMAIN_REGEX + ".*$" ) ) ; <END_BUG> m = p . matcher ( url . toExternalForm ( ) ) ; if ( m . matches ( ) ) { this . albumType = TumblrRipper . ALBUM_TYPE . SUBDOMAIN ; this . subdomain = m . group ( 1 ) ; return this . subdomain ; } throw new MalformedURLException ( "Expected<seq2seq4repair_space>format:<seq2seq4repair_space>http:////subdomain[.tumblr.com][//tagged//tag|//post//postno]" ) ; } }

Fix:
p = Pattern . compile ( ( DOMAIN_REGEX + "//?$" ) ) ;
Buggy code:
public class IDFactory implements IIDFactory { public static final String SECURITY_PROPERTY = ( IDFactory . class . getName ( ) ) + ".security" ; private static final int IDENTITY_CREATION_ERRORCODE = 2001 ; private static Hashtable namespaces = new Hashtable ( ) ; private static boolean securityEnabled = false ; protected static IIDFactory instance = null ; protected IDFactory ( ) { } public static IIDFactory getDefault ( ) { } public Namespace addNamespace ( Namespace namespace ) throws SecurityException { } protected static final Namespace addNamespace0 ( Namespace namespace ) { } protected static final void checkPermission ( NamespacePermission namespacepermission ) throws SecurityException { } public boolean containsNamespace ( Namespace namespace ) throws SecurityException { } public List getNamespaces ( ) { } protected static final boolean containsNamespace0 ( Namespace n ) { } public Namespace getNamespace ( Namespace namespace ) throws SecurityException { } public Namespace getNamespaceByName ( String name ) throws SecurityException { } protected static final Namespace getNamespace0 ( Namespace n ) { } protected static final Namespace getNamespace0 ( String name ) { } public ID createGUID ( ) throws IDCreateException { } public ID createGUID ( int length ) throws IDCreateException { } protected static void logAndThrow ( String s , Throwable t ) throws IDCreateException { IDCreateException e = null ; if ( t != null ) { e = new IDCreateException ( ( ( ( ( s + ":<seq2seq4repair_space>" ) + ( t . getClass ( ) . getName ( ) ) ) + ":<seq2seq4repair_space>" ) + ( t . getMessage ( ) ) ) ) ; e . setStackTrace ( t . getStackTrace ( ) ) ; } else { e = new IDCreateException ( s ) ; } <START_BUG> Trace . catching ( Activator . getDefault ( ) , EXCEPTIONS_THROWING , IDFactory . class , "logAndThrow" , e ) ; <END_BUG> Activator . getDefault ( ) . getLog ( ) . log ( new Status ( IStatus . ERROR , Activator . PLUGIN_ID , IDFactory . IDENTITY_CREATION_ERRORCODE , s , e ) ) ; throw e ; } public ID createID ( Namespace n , Object [ ] args ) throws IDCreateException { } public ID createID ( String namespacename , Object [ ] args ) throws IDCreateException { } public ID createID ( Namespace namespace , String uri ) throws IDCreateException { } public ID createID ( String namespace , String uri ) throws IDCreateException { } public ID createStringID ( String idstring ) throws IDCreateException { } public ID createLongID ( long l ) throws IDCreateException { } public Namespace removeNamespace ( Namespace n ) throws SecurityException { } protected static final Namespace removeNamespace0 ( Namespace n ) { } }

Fix:
Trace . throwing ( Activator . getDefault ( ) , EXCEPTIONS_THROWING , IDFactory . class , "logAndThrow" , e ) ;
Buggy code:
public class CallTarget extends Task { private Ant delegate ; private String subTarget ; public void init ( ) { } public void execute ( ) { if ( ( subTarget ) == null ) { throw new BuildException ( "Attribute<seq2seq4repair_space>target<seq2seq4repair_space>is<seq2seq4repair_space>required." , location ) ; } <START_BUG> delegate . setDir ( "." ) ; <END_BUG> delegate . setAntfile ( project . getProperty ( "ant.file" ) ) ; delegate . setTarget ( subTarget ) ; delegate . execute ( ) ; } public Property createParam ( ) { } public void setTarget ( String target ) { } }

Fix:
delegate . setDir ( project . getBaseDir ( ) ) ;
Buggy code:
public class ShowViewHandler extends AbstractHandler { private String viewId ; public ShowViewHandler ( String viewId ) { } public Object execute ( Map parameterValuesByName ) throws ExecutionException { IWorkbenchWindow activeWorkbenchWindow = PlatformUI . getWorkbench ( ) . getActiveWorkbenchWindow ( ) ; if ( activeWorkbenchWindow == null ) return null ; IWorkbenchPage activePage = activeWorkbenchWindow . getActivePage ( ) ; if ( activePage == null ) return null ; try { activePage . showView ( viewId ) ; } catch ( PartInitException e ) { <START_BUG> ErrorDialog . openError ( activePage . getWorkbenchWindow ( ) . getShell ( ) , WorkbenchMessages . getString ( "ShowView.errorTitle" ) , e . getMessage ( ) , e . getStatus ( ) ) ; <END_BUG> } return null ; } }

Fix:
ErrorDialog . openError ( activePage . getWorkbenchWindow ( ) . getShell ( ) , ShowView_errorTitle , e . getMessage ( ) , e . getStatus ( ) ) ;
Buggy code:
public class VLCDirectMediaPlayerComponent extends JPanel { private static final long serialVersionUID = 1L ; private BufferedImage image ; private int componentWidth = 512 ; private int componentHeight = 360 ; private int imageWidth = componentWidth ; private int imageHeight = componentHeight ; private MediaPlayerFactory factory ; private DirectMediaPlayer mediaPlayer ; private String [ ] overlayStyles = new String [ ] { "なし" , "上部" , "中央" , "下部" } ; private int iOverlaidTextStyle = 0 ; private Font overlaidTextFont = new Font ( Font . SANS_SERIF , Font . PLAIN , 16 ) ; private int textHeight = 0 ; private int textDescent = 0 ; private FontMetrics fm ; private String overlaidText = "" ; private Color bgColor ; public VLCDirectMediaPlayerComponent ( ) throws InterruptedException , InvocationTargetException { } public void init ( ) { } @ Override public void paint ( Graphics g ) { Graphics2D g2 = ( ( Graphics2D ) ( g ) ) ; int x0 = ( ( componentWidth ) - ( imageWidth ) ) // 2 ; int y0 = ( ( componentHeight ) - ( imageHeight ) ) // 2 ; g2 . drawImage ( image , null , x0 , y0 ) ; if ( ( iOverlaidTextStyle ) != 0 ) { g2 . setFont ( overlaidTextFont ) ; if ( ( fm ) == null ) { fm = g2 . getFontMetrics ( ) ; textHeight = fm . getHeight ( ) ; textDescent = fm . getDescent ( ) ; bgColor = getBackground ( ) ; } switch ( iOverlaidTextStyle ) { case 0 : return ; case 1 : g2 . setColor ( bgColor ) ; g2 . fillRect ( x0 , 0 , fm . stringWidth ( overlaidText ) , textHeight ) ; g2 . setColor ( Color . DARK_GRAY ) ; <START_BUG> g2 . drawString ( overlaidText , x0 , textHeight ) ; <END_BUG> break ; case 2 : g2 . setColor ( bgColor ) ; g2 . fillRect ( x0 , ( ( componentHeight ) // 2 ) , fm . stringWidth ( overlaidText ) , textHeight ) ; g2 . setColor ( Color . DARK_GRAY ) ; g2 . drawString ( overlaidText , x0 , ( ( ( ( componentHeight ) // 2 ) + ( textHeight ) ) - ( textDescent ) ) ) ; break ; case 3 : g2 . setColor ( bgColor ) ; g2 . fillRect ( x0 , ( ( ( componentHeight ) - ( textHeight ) ) - 4 ) , fm . stringWidth ( overlaidText ) , textHeight ) ; g2 . setColor ( Color . DARK_GRAY ) ; g2 . drawString ( overlaidText , x0 , ( ( ( componentHeight ) - ( textDescent ) ) - 4 ) ) ; break ; } } } public DirectMediaPlayer getMediaPlayer ( ) { } public DirectMediaPlayer getMediaPlayer ( float videoAspectRatio ) { } public void clearDisplay ( ) { } public void setMarquee ( String text ) { } public String [ ] getAvailableTextOverlayStyles ( ) { } public void setTextOverlayStyle ( int iOverlayStyle ) { } class VLCRenderCallback extends RenderCallbackAdapter { public VLCRenderCallback ( ) { } @ Override public void onDisplay ( DirectMediaPlayer mediaPlayer , int [ ] data ) { } } class VLCBufferFormatCallback implements BufferFormatCallback { @ Override public BufferFormat getBufferFormat ( int sourceWidth , int sourceHeight ) { } } }

Fix:
g2 . drawString ( overlaidText , x0 , ( ( textHeight ) - ( textDescent ) ) ) ;
Buggy code:
public class DynamicSynonymPlugin extends AbstractPlugin { @ Override public String description ( ) { } @ Override public String name ( ) { <START_BUG> return "dynamic<seq2seq4repair_space>synonym" ; <END_BUG> } @ Override public void processModule ( Module module ) { } }

Fix:
return "analysis-dynamic-synonym" ;
Buggy code:
public class MapProperty extends AbstractProperty { Map value ; public MapProperty ( String name , Map value ) { } public MapProperty ( ) { } public void setObjectValue ( Object v ) { } public void addProperty ( JMeterProperty prop ) { } public JMeterProperty get ( String key ) { } protected Class getPropertyType ( ) { } public String getStringValue ( ) { } public Object getObjectValue ( ) { } public Object clone ( ) { MapProperty prop = ( ( MapProperty ) ( super . clone ( ) ) ) ; prop . value = cloneMap ( ) ; <START_BUG> return value ; <END_BUG> } private Map cloneMap ( ) { } public PropertyIterator valueIterator ( ) { } public void mergeIn ( JMeterProperty prop ) { } public void addProperty ( String name , JMeterProperty prop ) { } public void setMap ( Map newMap ) { } public void recoverRunningVersion ( TestElement owner ) { } public void setRunningVersion ( boolean running ) { } public void setTemporary ( boolean temporary , TestElement owner ) { } }

Fix:
return prop ;
Buggy code:
public class KubernetesDiscoveryService implements DiscoveryService { private static final Logger LOGGER = LoggerFactory . getLogger ( KubernetesDiscoveryService . class ) ; private String kubernetesHost ; private String kubernetesPort ; private String kubernetesPodLabelKey ; private String kubernetesPodLabelValue ; private KubernetesClient kubernetesClient ; public KubernetesDiscoveryService ( ) { } public void init ( ) { try { String kubernetesUrl = ( ( "http:////" + ( kubernetesHost ) ) + ":" ) + ( kubernetesPort ) ; KubernetesDiscoveryService . LOGGER . debug ( "CELLAR<seq2seq4repair_space>KUBERNETES:<seq2seq4repair_space>query<seq2seq4repair_space>API<seq2seq4repair_space>at<seq2seq4repair_space>{}<seq2seq4repair_space>..." , kubernetesUrl ) ; kubernetesClient = new KubernetesClient ( new KubernetesFactory ( kubernetesUrl ) ) ; <START_BUG> KubernetesDiscoveryService . LOGGER . debug ( "CELLAR<seq2seq4repair_space>KUBERNETES:<seq2seq4repair_space>discovery<seq2seq4repair_space>service<seq2seq4repair_space>initalized" ) ; <END_BUG> } catch ( Exception e ) { KubernetesDiscoveryService . LOGGER . error ( "CELLAR<seq2seq4repair_space>KUBERNETES:<seq2seq4repair_space>can't<seq2seq4repair_space>init<seq2seq4repair_space>discovery<seq2seq4repair_space>service" , e ) ; } } public void destroy ( ) { } public void update ( Map < String , Object > properties ) { } @ Override public Set < String > discoverMembers ( ) { } @ Override public void signIn ( ) { } @ Override public void refresh ( ) { } @ Override public void signOut ( ) { } public String getKubernetesHost ( ) { } public void setKubernetesHost ( String kubernetesHost ) { } public String getKubernetesPort ( ) { } public void setKubernetesPort ( String kubernetesPort ) { } public String getKubernetesPodLabelKey ( ) { } public void setKubernetesPodLabelKey ( String kubernetesPodLabelKey ) { } public String getKubernetesPodLabelValue ( ) { } public void setKubernetesPodLabelValue ( String kubernetesPodLabelValue ) { } }

Fix:
KubernetesDiscoveryService . LOGGER . debug ( "CELLAR<seq2seq4repair_space>KUBERNETES:<seq2seq4repair_space>discovery<seq2seq4repair_space>service<seq2seq4repair_space>initialized" ) ;
Buggy code:
class EnableStatisticsWriteHandler extends AbstractWriteAttributeHandler < Void > { static EnableStatisticsWriteHandler INSTANCE = new EnableStatisticsWriteHandler ( ) ; EnableStatisticsWriteHandler ( ) { } @ Override protected boolean applyUpdateToRuntime ( final OperationContext context , final ModelNode operation , final String attributeName , final ModelNode resolvedValue , final ModelNode currentValue , final HandbackHolder < Void > voidHandbackHolder ) throws OperationFailedException { } @ Override protected void revertUpdateToRuntime ( final OperationContext context , final ModelNode operation , final String attributeName , final ModelNode valueToRestore , final ModelNode valueToRevert , final Void handback ) throws OperationFailedException { } void updateToRuntime ( final OperationContext context , final ModelNode model ) throws OperationFailedException { final ModelNode enableStatisticsModel = EJB3SubsystemRootResourceDefinition . ENABLE_STATISTICS . resolveModelAttribute ( context , model ) ; <START_BUG> final boolean enableStatistics = ( enableStatisticsModel . isDefined ( ) ) ? enableStatisticsModel . asBoolean ( ) : false ; <END_BUG> EnableStatisticsWriteHandler . utilities ( context ) . setStatisticsEnabled ( enableStatistics ) ; } private static EJBUtilities utilities ( final OperationContext context ) { } }

Fix:
final boolean enableStatistics = ( enableStatisticsModel . isDefined ( ) ) && ( enableStatisticsModel . asBoolean ( ) ) ;
Buggy code:
public class Snippet94 { public static void main ( String [ ] args ) { Display display = new Display ( ) ; final Clipboard cb = new Clipboard ( display ) ; final Shell shell = new Shell ( display ) ; shell . setLayout ( new FormLayout ( ) ) ; final Text text = new Text ( shell , ( ( ( ( SWT . BORDER ) | ( SWT . MULTI ) ) | ( SWT . V_SCROLL ) ) | ( SWT . H_SCROLL ) ) ) ; Button copy = new Button ( shell , SWT . PUSH ) ; copy . setText ( "Copy" ) ; copy . addListener ( Selection , new Listener ( ) { public void handleEvent ( Event e ) { String textData = text . getSelectionText ( ) ; if ( ( textData . length ( ) ) > 0 ) { TextTransfer textTransfer = TextTransfer . getInstance ( ) ; cb . setContents ( new Object [ ] { textData } , new Transfer [ ] { textTransfer } ) ; } } } ) ; Button paste = new Button ( shell , SWT . PUSH ) ; paste . setText ( "Paste" ) ; paste . addListener ( Selection , new Listener ( ) { public void handleEvent ( Event e ) { TextTransfer transfer = TextTransfer . getInstance ( ) ; String data = ( ( String ) ( cb . getContents ( transfer ) ) ) ; if ( data != null ) { text . insert ( data ) ; } } } ) ; FormData data = new FormData ( ) ; data . right = new FormAttachment ( 100 , ( - 5 ) ) ; data . top = new FormAttachment ( 0 , 5 ) ; copy . setLayoutData ( data ) ; data = new FormData ( ) ; data . right = new FormAttachment ( 100 , ( - 5 ) ) ; data . top = new FormAttachment ( copy , 5 ) ; paste . setLayoutData ( data ) ; data = new FormData ( ) ; data . left = new FormAttachment ( 0 , 5 ) ; data . top = new FormAttachment ( 0 , 5 ) ; <START_BUG> data . right = new FormAttachment ( copy , ( - 5 ) ) ; <END_BUG> data . bottom = new FormAttachment ( 100 , ( - 5 ) ) ; text . setLayoutData ( data ) ; shell . setSize ( 200 , 200 ) ; shell . open ( ) ; while ( ! ( shell . isDisposed ( ) ) ) { if ( ! ( display . readAndDispatch ( ) ) ) display . sleep ( ) ; } cb . dispose ( ) ; display . dispose ( ) ; } }

Fix:
data . right = new FormAttachment ( paste , ( - 5 ) ) ;