nus-yam/ex-repair huggingface dataset:
Buggy code:
public class PanelTest extends WicketTestCase { public PanelTest ( String name ) { } public void testRenderHomePage_1 ( ) throws Exception { boolean hit = false ; try { executeTest ( PanelPage_1 . class , "Dummy.html" ) ; } catch ( MarkupException mex ) { hit = true ; assertNotNull ( mex . getMarkupStream ( ) ) ; <START_BUG> assertTrue ( ( ( mex . getMessage ( ) . indexOf ( "did<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>close<seq2seq4repair_space>tag" ) ) != ( - 1 ) ) ) ; <END_BUG> assertTrue ( ( ( mex . getMessage ( ) . indexOf ( "SimplePanel_1.html" ) ) != ( - 1 ) ) ) ; } assertTrue ( "Did<seq2seq4repair_space>expect<seq2seq4repair_space>a<seq2seq4repair_space>MarkupException" , hit ) ; } public void testRenderHomePage_2 ( ) throws Exception { } public void testInlinePanel ( ) throws Exception { } public void testInlinePanel_2 ( ) throws Exception { } public void testInlinePanel_3 ( ) throws Exception { } public void testInlinePanel_4 ( ) throws Exception { } public void testInlinePanel_6 ( ) throws Exception { } public void testPanelWithAttributeModifier ( ) throws Exception { } }

Fix:
assertTrue ( ( ( mex . getMessage ( ) . indexOf ( "does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>close<seq2seq4repair_space>tag" ) ) != ( - 1 ) ) ) ;
Buggy code:
public class MarkupComponentBorder extends AbstractBehavior { private static final long serialVersionUID = 1L ; private transient MarkupStream markupStream ; @ Override public void beforeRender ( final Component component ) { } @ Override public void onRendered ( final Component component ) { } private MarkupStream getMarkupStream ( final Component component ) { } private MarkupStream findMarkupStream ( final Component owner ) { final String markupType = getMarkupType ( owner ) ; final IResourceStreamLocator locator = Application . get ( ) . getResourceSettings ( ) . getResourceStreamLocator ( ) ; final String style = owner . getStyle ( ) ; final String variation = owner . getVariation ( ) ; final Locale locale = owner . getLocale ( ) ; MarkupResourceStream markupResourceStream = null ; Class < ? > containerClass = getClass ( ) ; while ( ! ( containerClass . equals ( MarkupComponentBorder . class ) ) ) { String path = containerClass . getName ( ) . replace ( '.' , '//' ) ; <START_BUG> IResourceStream resourceStream = locator . locate ( containerClass , path , style , variation , locale , markupType ) ; <END_BUG> if ( resourceStream != null ) { ContainerInfo ci = new ContainerInfo ( containerClass , locale , style , variation , markupType ) ; markupResourceStream = new MarkupResourceStream ( resourceStream , ci , containerClass ) ; break ; } containerClass = containerClass . getSuperclass ( ) ; } if ( markupResourceStream == null ) { throw new WicketRuntimeException ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>markup<seq2seq4repair_space>for<seq2seq4repair_space>component<seq2seq4repair_space>border<seq2seq4repair_space>`" + ( getClass ( ) . getName ( ) ) ) + "`" ) ) ; } try { IMarkupFragment markup = MarkupFactory . get ( ) . newMarkupParser ( markupResourceStream ) . parse ( ) ; return new MarkupStream ( markup ) ; } catch ( Exception e ) { throw new WicketRuntimeException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>parse<seq2seq4repair_space>markup<seq2seq4repair_space>from<seq2seq4repair_space>markup<seq2seq4repair_space>resource<seq2seq4repair_space>stream:<seq2seq4repair_space>" + ( markupResourceStream . toString ( ) ) ) ) ; } finally { try { markupResourceStream . close ( ) ; } catch ( IOException e ) { throw new WicketRuntimeException ( ( "Cannot<seq2seq4repair_space>close<seq2seq4repair_space>markup<seq2seq4repair_space>resource<seq2seq4repair_space>stream:<seq2seq4repair_space>" + markupResourceStream ) , e ) ; } } } private String getMarkupType ( Component component ) { } }

Fix:
IResourceStream resourceStream = locator . locate ( containerClass , path , style , variation , locale , markupType , false ) ;
Buggy code:
public class FractionTest extends TestCase { private void assertFraction ( int expectedNumerator , int expectedDenominator , Fraction actual ) { } public void testConstructor ( ) { } public void testGoldenRatio ( ) { } public void testDoubleConstructor ( ) throws ConvergenceException { } public void testDigitLimitConstructor ( ) throws ConvergenceException { } public void testIntegerOverflow ( ) { } private void checkIntegerOverflow ( double a ) { } public void testEpsilonLimitConstructor ( ) throws ConvergenceException { } public void testCompareTo ( ) { } public void testDoubleValue ( ) { } public void testFloatValue ( ) { } public void testIntValue ( ) { } public void testLongValue ( ) { } public void testConstructorDouble ( ) { } public void testAbs ( ) { } public void testReciprocal ( ) { } public void testNegate ( ) { } public void testAdd ( ) { } public void testDivide ( ) { } public void testMultiply ( ) { } public void testSubtract ( ) { } public void testEqualsAndHashCode ( ) { Fraction zero = new Fraction ( 0 , 1 ) ; Fraction nullFraction = null ; assertTrue ( zero . equals ( zero ) ) ; assertFalse ( zero . equals ( nullFraction ) ) ; <START_BUG> assertFalse ( zero . equals ( Double . valueOf ( 0 ) ) ) ; <END_BUG> Fraction zero2 = new Fraction ( 0 , 2 ) ; assertTrue ( zero . equals ( zero2 ) ) ; assertEquals ( zero . hashCode ( ) , zero2 . hashCode ( ) ) ; Fraction one = new Fraction ( 1 , 1 ) ; assertFalse ( ( ( one . equals ( zero ) ) || ( zero . equals ( one ) ) ) ) ; } public void testGetReducedFraction ( ) { } }

Fix:
assertFalse ( zero . equals ( new Double ( 0 ) ) ) ;
Buggy code:
@ SuppressWarnings ( "serial" ) public class TestCode extends Applet { public void init ( ) { } public void paint ( Graphics g ) { <START_BUG> J3D . gen3DRect ( g , 100 , 100 , 200 , 200 , 100 , 50 ) ; <END_BUG> } }

Fix:
J3D . gen3DRect ( g , 500 , 500 , 200 , 200 , 100 , 50 ) ;
Buggy code:
public class CodeSnippetEvaluator extends Evaluator implements EvaluationConstants { static final boolean DEVELOPMENT_MODE = false ; char [ ] codeSnippet ; CodeSnippetToCuMapper mapper ; CodeSnippetEvaluator ( char [ ] codeSnippet , EvaluationContext context , INameEnvironment environment , Map options , IRequestor requestor , IProblemFactory problemFactory ) { } protected void addEvaluationResultForCompilationProblem ( Map resultsByIDs , IProblem problem , char [ ] cuSource ) { } protected char [ ] getClassName ( ) { } Compiler getCompiler ( ICompilerRequestor compilerRequestor ) { Compiler compiler = null ; if ( ! ( CodeSnippetEvaluator . DEVELOPMENT_MODE ) ) { <START_BUG> compiler = new CodeSnippetCompiler ( this . environment , DefaultErrorHandlingPolicies . exitAfterAllProblems ( ) , this . options , compilerRequestor , this . problemFactory , this . context , getMapper ( ) . startPosOffset , ( ( ( getMapper ( ) . startPosOffset ) + ( codeSnippet . length ) ) - 1 ) ) ; <END_BUG> IBinaryType binary = this . context . getRootCodeSnippetBinary ( ) ; if ( binary != null ) { compiler . lookupEnvironment . cacheBinaryType ( binary ) ; } VariablesInfo installedVars = this . context . installedVars ; if ( installedVars != null ) { ClassFile [ ] globalClassFiles = installedVars . classFiles ; for ( int i = 0 ; i < ( globalClassFiles . length ) ; i ++ ) { ClassFileReader binaryType = null ; try { binaryType = new ClassFileReader ( globalClassFiles [ i ] . getBytes ( ) , null ) ; } catch ( ClassFormatException e ) { e . printStackTrace ( ) ; } compiler . lookupEnvironment . cacheBinaryType ( binaryType ) ; } } } else { compiler = new Compiler ( getWrapperEnvironment ( ) , DefaultErrorHandlingPolicies . exitAfterAllProblems ( ) , this . options , compilerRequestor , this . problemFactory ) ; } return compiler ; } private CodeSnippetToCuMapper getMapper ( ) { } protected char [ ] getSource ( ) { } private INameEnvironment getWrapperEnvironment ( ) { } }

Fix:
compiler = new CodeSnippetCompiler ( this . environment , DefaultErrorHandlingPolicies . exitAfterAllProblems ( ) , this . options , compilerRequestor , this . problemFactory , this . context , getMapper ( ) . startPosOffset , ( ( ( getMapper ( ) . startPosOffset ) + ( this . codeSnippet . length ) ) - 1 ) ) ;
Buggy code:
class SizeRotatingFileHandlerAdd extends FlushingHandlerAddProperties < SizeRotatingFileHandlerService > { static final SizeRotatingFileHandlerAdd INSTANCE = new SizeRotatingFileHandlerAdd ( ) ; private SizeRotatingFileHandlerAdd ( ) { } @ Override protected SizeRotatingFileHandlerService createHandlerService ( OperationContext context , final ModelNode model ) throws OperationFailedException { } @ Override protected void updateRuntime ( final OperationContext context , final ServiceBuilder < Handler > serviceBuilder , final String name , final SizeRotatingFileHandlerService service , final ModelNode model ) throws OperationFailedException { super . updateRuntime ( context , serviceBuilder , name , service , model ) ; final ModelNode append = CommonAttributes . APPEND . resolveModelAttribute ( context , model ) ; if ( append . isDefined ( ) ) { service . setAppend ( append . asBoolean ( ) ) ; } final ModelNode file = CommonAttributes . FILE . resolveModelAttribute ( context , model ) ; if ( file . isDefined ( ) ) { final HandlerFileService fileService = new HandlerFileService ( CommonAttributes . PATH . resolveModelAttribute ( context , file ) . asString ( ) ) ; final ServiceBuilder < ? > fileBuilder = context . getServiceTarget ( ) . addService ( LogServices . handlerFileName ( name ) , fileService ) ; final ModelNode relativeTo = CommonAttributes . RELATIVE_TO . resolveModelAttribute ( context , file ) ; if ( relativeTo . isDefined ( ) ) { fileBuilder . addDependency ( AbstractPathService . pathNameOf ( relativeTo . asString ( ) ) , String . class , fileService . getRelativeToInjector ( ) ) ; } fileBuilder . setInitialMode ( ACTIVE ) . install ( ) ; serviceBuilder . addDependency ( LogServices . handlerFileName ( name ) , String . class , service . getFileNameInjector ( ) ) ; } final ModelNode maxBackupIndex = CommonAttributes . MAX_BACKUP_INDEX . resolveModelAttribute ( context , model ) ; if ( maxBackupIndex . isDefined ( ) ) { service . setMaxBackupIndex ( maxBackupIndex . asInt ( ) ) ; } final ModelNode rotateSizeNode = CommonAttributes . ROTATE_SIZE . resolveModelAttribute ( context , model ) ; if ( rotateSizeNode . isDefined ( ) ) { <START_BUG> service . setRotateSize ( SizeValidator . parseSize ( rotateSizeNode . asString ( ) ) ) ; <END_BUG> } } }

Fix:
service . setRotateSize ( ModelParser . parseSize ( rotateSizeNode ) ) ;
Buggy code:
public class AES { public static byte [ ] encode ( String message , String passWord ) { } public static String getRightPassword ( String passWord ) { if ( ( passWord . length ( ) ) > 16 ) { char [ ] a = passWord . toCharArray ( ) ; passWord = new String ( ) ; <START_BUG> for ( int i = 0 ; i < 32 ; i ++ ) <END_BUG> passWord += a [ i ] ; } else if ( ( passWord . length ( ) ) < 16 ) { while ( ( passWord . length ( ) ) < 16 ) { passWord += "x" ; } } return passWord ; } public static Vector < String > decodeAsVector ( byte [ ] messageBytes , String passWord ) { } public static String decode ( byte [ ] messageBytes , String passWord ) { } }

Fix:
for ( int i = 0 ; i < 16 ; i ++ )
Buggy code:
public class UserCachedService implements IUserService { private IUserService service ; private UserStorage storage ; public UserCachedService ( IUserService service , UserStorage storage ) { } @ Override public UserResult getUser ( String email , String password ) { } @ Override public UserResult createUser ( String email , String password ) { <START_BUG> UserResult result = service . getUser ( email , password ) ; <END_BUG> if ( ! ( result . hasError ( ) ) ) storage . save ( result . user ( ) ) ; return result ; } }

Fix:
UserResult result = service . createUser ( email , password ) ;
Buggy code:
public final class SwingUtils { public static final String SWING_LABEL_FONT = "Label.font" ; @ SuppressWarnings ( "unchecked" ) public static < TYPE extends Container > TYPE getAncestorOfClass ( final Class < TYPE > aClass , final Component aComponent ) { } public static final Window getCurrentWindow ( ) { } public static JComponent getDeepestComponentAt ( final Component aParent , final int aXpos , final int aYpos ) { } public static JComponent getDeepestComponentAt ( final MouseEvent aEvent ) { } public static final Window getOwningWindow ( final AWTEvent aEvent ) { } public static final Window getOwningWindow ( final Component aComponent ) { } public static int getStringWidth ( final Font aFont , final String aString ) { } public static int getStringWidth ( final String aString ) { } public static void registerKeyBinding ( final JComponent aComponent , final char aKey , final Action aAction ) { } public static void registerKeyBinding ( final JComponent aComponent , final KeyStroke aKeyStroke , final Action aAction ) { final String name = "KeyBinding." . concat ( aKeyStroke . toString ( ) ) ; <START_BUG> aComponent . getInputMap ( ) . put ( aKeyStroke , name ) ; <END_BUG> aComponent . getActionMap ( ) . put ( name , aAction ) ; } public static void registerKeyBinding ( final JComponent aComponent , final String aKeyStroke , final Action aAction ) { } private static FontMetrics createFontMetrics ( final Font aFont ) { } }

Fix:
aComponent . getInputMap ( JComponent . WHEN_IN_FOCUSED_WINDOW ) . put ( aKeyStroke , name ) ;
Buggy code:
public class PutLatencyTest extends OnesidedTestBase { private int size ; private int i ; int disp ; double tStart ; double tEnd ; private Win win ; private byte [ ] sbuf = new byte [ MAX_SIZE ] ; @ Override public void initialize ( String [ ] args ) { super . initialize ( args ) ; tStart = tEnd = disp = 0 ; <START_BUG> getReporter ( ) . setColumnNames ( new String [ ] { "Size<seq2seq4repair_space>(MB)" , "Latency<seq2seq4repair_space>(µs)" } ) ; <END_BUG> } private double collectResult ( int size , double tStart , double tEnd ) { } private double collectResult ( int size , double tStart , double tEnd , double multiplier ) { } @ Override protected void runTestWithFlush ( ) { } @ Override protected void runTestWithFlushLocal ( ) { } @ Override protected void runTestWithLockAll ( ) { } @ Override protected void runTestWithFence ( ) { } @ Override protected void runTestWithPscw ( ) { } @ Override protected void runTestWithLock ( ) { } }

Fix:
getReporter ( ) . setColumnNames ( new String [ ] { "Size<seq2seq4repair_space>(MB)" , "Latency<seq2seq4repair_space>(us)" } ) ;
Buggy code:
public final class DetectArchiverTestCase extends AbstractTestCase { public void testDetection ( ) throws Exception { final ArchiveStreamFactory factory = new ArchiveStreamFactory ( ) ; final ArchiveInputStream ar = factory . createArchiveInputStream ( new BufferedInputStream ( new FileInputStream ( new File ( getClass ( ) . getClassLoader ( ) . getResource ( "bla.ar" ) . getFile ( ) ) ) ) ) ; assertNotNull ( ar ) ; assertTrue ( ( ar instanceof ArArchiveInputStream ) ) ; final ArchiveInputStream tar = factory . createArchiveInputStream ( new BufferedInputStream ( new FileInputStream ( new File ( getClass ( ) . getClassLoader ( ) . getResource ( "bla.tar" ) . getFile ( ) ) ) ) ) ; assertNotNull ( tar ) ; assertTrue ( ( tar instanceof TarArchiveInputStream ) ) ; final ArchiveInputStream zip = factory . createArchiveInputStream ( new BufferedInputStream ( new FileInputStream ( new File ( getClass ( ) . getClassLoader ( ) . getResource ( "bla.zip" ) . getFile ( ) ) ) ) ) ; assertNotNull ( zip ) ; assertTrue ( ( zip instanceof ZipArchiveInputStream ) ) ; final ArchiveInputStream jar = factory . createArchiveInputStream ( new BufferedInputStream ( new FileInputStream ( new File ( getClass ( ) . getClassLoader ( ) . getResource ( "bla.jar" ) . getFile ( ) ) ) ) ) ; assertNotNull ( jar ) ; <START_BUG> assertTrue ( ( jar instanceof JarArchiveInputStream ) ) ; <END_BUG> final ArchiveInputStream cpio = factory . createArchiveInputStream ( new BufferedInputStream ( new FileInputStream ( new File ( getClass ( ) . getClassLoader ( ) . getResource ( "bla.cpio" ) . getFile ( ) ) ) ) ) ; assertNotNull ( cpio ) ; assertTrue ( ( cpio instanceof CpioArchiveInputStream ) ) ; } }

Fix:
assertTrue ( ( jar instanceof ZipArchiveInputStream ) ) ;
Buggy code:
public class LmfsPlan { private static final String DOMESTIC = "DOMESTIC" ; private static final String PROPOSED = "PROPOSED" ; private static final String DIRECT = "DCT" ; private boolean mValid ; private String mId ; public String flightRules ; public String aircraftIdentifier ; public String departure ; public String destination ; public String departureInstant ; public String flightDuration ; public String altDestination1 ; public String altDestination2 ; public String aircraftType ; public String numberOfAircraft ; public String heavyWakeTurbulence ; public String aircraftEquipment ; public String speedKnots ; public String altitudeFL ; public String fuelOnBoard ; public String pilotData ; public String peopleOnBoard ; public String aircraftColor ; public String route ; public String type ; public String remarks ; public String currentState ; public String versionStamp ; private void init ( ) { } public LmfsPlan ( ) { } public boolean isValid ( ) { } public String getId ( ) { } public void setId ( String id ) { } public LmfsPlan ( String data ) { } private void put ( Map < String , String > params , String name , String val ) { } public Map < String , String > makeHashMap ( ) { } public String makeJSON ( ) { } public static String getTime ( String future ) { } public static String getTimeFromInstance ( String instance ) { } public static String getTimeFromInput ( String time ) { } public static String getDurationFromInput ( String input ) { } public static String durationToTime ( String input ) { } public static String timeToDuration ( double time ) { } public void setFromPlan ( Plan p ) { int num = p . getDestinationNumber ( ) ; if ( num >= 2 ) { if ( p . getDestination ( ( num - 1 ) ) . getType ( ) . equals ( BASE ) ) { destination = p . getDestination ( ( num - 1 ) ) . getID ( ) ; } if ( p . getDestination ( 0 ) . getType ( ) . equals ( BASE ) ) { departure = p . getDestination ( 0 ) . getID ( ) ; } } double time = 0 ; try { time = ( p . getDistance ( ) ) // ( Double . parseDouble ( speedKnots ) ) ; } catch ( Exception e ) { } flightDuration = LmfsPlan . timeToDuration ( time ) ; fuelOnBoard = LmfsPlan . timeToDuration ( ( time + 0.75 ) ) ; departureInstant = LmfsPlan . getTime ( "0" ) ; if ( num > 2 ) { route = "" ; for ( int dest = 1 ; dest < ( num - 1 ) ; dest ++ ) { String type = p . getDestination ( dest ) . getType ( ) ; if ( ( type . equals ( FIX ) ) || ( type . equals ( NAVAID ) ) ) { <START_BUG> route += p . getDestination ( dest ) . getID ( ) ; <END_BUG> } } } if ( route . equals ( "" ) ) { route = LmfsPlan . DIRECT ; } } }

Fix:
route += ( p . getDestination ( dest ) . getID ( ) ) + "<seq2seq4repair_space>" ;
Buggy code:
public class ReflectionToStringBuilderMutateInspectConcurrencyTest { class TestFixture { private final LinkedList < Integer > listField = new LinkedList < Integer > ( ) ; private final Random random = new Random ( ) ; private int N = 100 ; public TestFixture ( ) { } public synchronized void add ( ) { } public synchronized void delete ( ) { <START_BUG> listField . removeFirstOccurrence ( Integer . valueOf ( random . nextInt ( N ) ) ) ; <END_BUG> } } class MutatingClient implements Runnable { private final ReflectionToStringBuilderMutateInspectConcurrencyTest . TestFixture testFixture ; private final Random random = new Random ( ) ; public MutatingClient ( ReflectionToStringBuilderMutateInspectConcurrencyTest . TestFixture testFixture ) { } public void run ( ) { } } class InspectingClient implements Runnable { private final ReflectionToStringBuilderMutateInspectConcurrencyTest . TestFixture testFixture ; private final Random random = new Random ( ) ; public InspectingClient ( ReflectionToStringBuilderMutateInspectConcurrencyTest . TestFixture testFixture ) { } public void run ( ) { } } @ Test @ Ignore public void testConcurrency ( ) throws Exception { } }

Fix:
listField . remove ( Integer . valueOf ( random . nextInt ( N ) ) ) ;
Buggy code:
public class Tagger { public static HashMap < String , Tag > existingTags ; public String [ ] tagNews ( String body ) throws Exception { } public void addTag ( String tagName ) { } public String mayBeTag ( String token ) { <START_BUG> return Tagger . existingTags . get ( token ) . getName ( ) ; <END_BUG> } }

Fix:
return Tagger . existingTags . get ( token ) . getContent ( ) ;
Buggy code:
public class DeckCreator extends Activity { public static final String EMPTY_DECK_NAME = "empty.anki" ; private String mPrefDeckPath ; private Button mCreate ; private Button mCancel ; private EditText mFilename ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private boolean createDeck ( String filename ) { Log . d ( TAG , ( "Creating<seq2seq4repair_space>deck:<seq2seq4repair_space>" + filename ) ) ; filename = filename + ".anki" ; File decksDirectory = new File ( mPrefDeckPath ) ; <START_BUG> AnkiDroidApp . createDecksDirectoryIfMissing ( decksDirectory ) ; <END_BUG> File destinationFile = new File ( mPrefDeckPath , filename ) ; if ( destinationFile . exists ( ) ) { return false ; } try { InputStream stream = getResources ( ) . getAssets ( ) . open ( DeckCreator . EMPTY_DECK_NAME ) ; Utils . writeToFile ( stream , destinationFile . getAbsolutePath ( ) ) ; stream . close ( ) ; } catch ( IOException e ) { Log . e ( TAG , Log . getStackTraceString ( e ) ) ; Log . e ( TAG , "onCreate<seq2seq4repair_space>-<seq2seq4repair_space>The<seq2seq4repair_space>copy<seq2seq4repair_space>of<seq2seq4repair_space>empty.anki<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>SD<seq2seq4repair_space>card<seq2seq4repair_space>failed." ) ; return false ; } return true ; } private void closeDeckCreator ( ) { } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } }

Fix:
AnkiDroidApp . createDirectoryIfMissing ( decksDirectory ) ;
Buggy code:
public class FederationManagerAgent extends CmAgent implements CleverMessageHandler { private String Name = "" ; private Agent owner ; private String agentName = "FederationManagerAgent" ; private String nodoFederatedpartner = "Matching_FED_Partner" ; private String nodoMigratedVm = "Matching_VM_Federator_Host" ; private String nodoSharedVFS = "Matching_VFS_Federation" ; private String nodeFederateDomain = "Domain_name" ; private String nodefederatedCM = "CM_Name" ; private final String cfgPath = ".//cfg//configuration_federation.xml" ; private ConnectionXMPP conn = null ; private String room = "" ; private String username = "" ; private String password = "" ; private String nickname = "" ; private String fedName = "" ; private String server = "" ; private int port = 0 ; private ParserXML pXML ; private String domain = "" ; private long defaultTimeout ; private int attempts ; private RoomListener messageListener ; private FederationMessagePoolThread federationMessagePoolThread ; private final HashMap < Integer , Request > requestPool ; private FederationManagerPlugin federationManagerPlugin ; public ConnectionXMPP getConn ( ) { } public String getFedName ( ) { } public FederationManagerPlugin getFederationManagerPlugin ( ) { } public void setFedName ( String f ) { } public String getNickname ( ) { } public void setNickname ( String nickname ) { } public String getName ( ) { } public void setName ( String Name ) { } public String getRoom ( ) { } public void setRoom ( String room ) { } public String getUsername ( ) { } public void setUsername ( String username ) { } public String getPassword ( ) { } public void setPassword ( String password ) { } public String getServer ( ) { } public void setServer ( String server ) { } public int getPort ( ) { } public void setPort ( int port ) { } public String getDomain ( ) { } public void setDomain ( String domain ) { } public long getDefaultTimeout ( ) { } public void setDefaultTimeout ( long defaultTimeout ) { } public int getAttempts ( ) { } public void setAttempts ( int attempts ) { } @ Override public synchronized void setPluginState ( boolean pluginState ) { } public FederationManagerAgent ( ) throws CleverException { } @ Override public void initialization ( ) throws Exception { } @ Override public Class getPluginClass ( ) { } @ Override public Object getPlugin ( ) { <START_BUG> return this ; <END_BUG> } @ Override public void shutDown ( ) { } @ Override public void handleNotification ( Notification notification ) throws CleverException { } @ Override public void handleCleverMessage ( final CleverMessage msg ) { } public FederationMessagePoolThread getFederationMessagePoolThread ( ) { } public HashMap < Integer , Request > getRequestPool ( ) { } public void sendMessage ( final CleverMessage msg ) { } private boolean registerFederationElement ( FederationManagerAgent . functionEnum fE , FederatorDataContainer container ) { } public static enum functionEnum { VM_Migration , CreateFederation ; } public void connectionEstablished ( ) throws Exception { } public synchronized void setAsActiveCM ( Boolean active ) { } }

Fix:
return this . pluginInstantiation ;
Buggy code:
public class login { public JDialog dijalog ; static final Logger logger = Logger . getLogger ( login . class ) ; private JFrame frmVrti ; private JTextField textField ; private JPasswordField passwordField ; private Session s ; public void OtvoriFormu ( ) { } public login ( Session s ) { } private void initialize ( ) { } public void loginAction ( ) { Korisnik user = new Korisnik ( ) ; KorisnikServis userS = new KorisnikServis ( s ) ; String passText = new String ( passwordField . getPassword ( ) ) ; if ( userS . provjeriSifruKorisnika ( textField . getText ( ) , userS . Plus4Hash ( passText ) ) ) { ArrayList < Korisnik > korisnici = userS . dajKorisnike ( ) ; for ( int i = 0 ; i < ( korisnici . size ( ) ) ; i ++ ) { if ( korisnici . get ( i ) . getKorisnickoIme ( ) . equals ( textField . getText ( ) ) ) { user = korisnici . get ( i ) ; } } if ( user . getPrivilegije ( ) . equals ( "blagajnik" ) ) { GlavniProzorBlagajnik mainFormaBlagajnik = new GlavniProzorBlagajnik ( s , user . getIdKorisnika ( ) ) ; mainFormaBlagajnik . OtvoriFormu ( ) ; frmVrti . setVisible ( false ) ; } else if ( user . getPrivilegije ( ) . equals ( "direktor" ) ) { GlavniProzorDirektor mainForma = new GlavniProzorDirektor ( s , user . getIdKorisnika ( ) ) ; mainForma . OtvoriFormu ( ) ; frmVrti . setVisible ( false ) ; } else { frmVrti . setAlwaysOnTop ( false ) ; JOptionPane . showMessageDialog ( null , "Greka!" ) ; frmVrti . setAlwaysOnTop ( true ) ; } } else { frmVrti . setAlwaysOnTop ( false ) ; <START_BUG> JOptionPane . showMessageDialog ( null , "Neispravna<seq2seq4repair_space>ifra!" ) ; <END_BUG> frmVrti . setAlwaysOnTop ( true ) ; } } }

Fix:
JOptionPane . showMessageDialog ( null , "Neispravno<seq2seq4repair_space>korisnièko<seq2seq4repair_space>ime<seq2seq4repair_space>ili<seq2seq4repair_space>password!" ) ;
Buggy code:
public class ParsingBlock { private static final Map < String , String [ ] > exceptions = new HashMap < > ( ) ; private static final Map < String , String [ ] > parentExceptions = new HashMap < > ( ) ; private static final Map < String , String [ ] > namedBlocks = new HashMap < > ( ) ; private static final Map < String , Iterable < String > > modifiers = new HashMap < > ( ) ; private static final String TRUE = "yes" ; private static final String FALSE = "no" ; private final String type ; private final ParsingBlock parent ; private int nesting ; private final List < String > contents ; private final Collection < String > output ; private boolean inversion ; private boolean inversionOverride = false ; public ParsingBlock ( String type , ParsingBlock parent , List < String > contents , int nesting , Collection < String > output , boolean negative ) { } private void parseBlock ( ) { } private void handleBlockContents ( ) { } private void handleBlockType ( ) { if ( ( type ) != null ) { if ( ( ParsingBlock . needsName ( type ) ) || ( ( nesting ) == 1 ) ) { handleName ( ) ; if ( inversion ) { inversion = false ; inversionOverride = true ; } } else if ( ( nesting ) > 1 ) { if ( ParsingBlock . isInversion ( type ) ) { inversion = ! ( inversion ) ; ( nesting ) -- ; } else { if ( ParsingBlock . parentExceptions . containsKey ( parent . type ) ) <START_BUG> ParsingBlock . output ( Token . tokenize ( ( ( ( type ) + "_" ) + ( parent ) ) , inversion ) . toString ( ) , output , nesting ) ; <END_BUG> else ParsingBlock . output ( Token . tokenize ( type , inversion ) . toString ( ) , output , nesting ) ; if ( ( inversion ) && ( ParsingBlock . overridesInversion ( type ) ) ) { inversion = false ; inversionOverride = true ; } } } } } private static boolean isOutputType ( String type , String parent ) { } private void handleName ( ) { } private static boolean isName ( String type , String parent ) { } private static boolean needsName ( String type ) { } private void handleSpecialCommand ( ) { } private static boolean isSpecialCommand ( String type ) { } private static final Set < String > NEGATIONS = new HashSet < String > ( Arrays . asList ( new String [ ] { "not" , "nor" } ) ) ; private static boolean isInversion ( String type ) { } private static boolean overridesInversion ( String type ) { } private static final String HEADER = "\n==<seq2seq4repair_space>%s<seq2seq4repair_space>==" ; private static final String BOLD = "\n\'\'\'%s\'\'\'\n" ; private static void output ( String s , Collection < String > output , int nesting ) { } public static void parseModifiers ( List < String > readFile ) { } public static void main ( String [ ] args ) throws IOException { } }

Fix:
ParsingBlock . output ( Token . tokenize ( ( ( ( type ) + "_" ) + ( parent . type ) ) , inversion ) . toString ( ) , output , nesting ) ;
Buggy code:
public class AlarmReceiver extends BroadcastReceiver { Builder notificationBuilder ; Intent notificationResultIntent ; ArrayList < Show > shows ; SharedPreferences spSpreadsheets ; SharedPreferences spNotifications ; final String showSpreadsheetURL = "https:////docs.google.com//spreadsheets//d//1Ax2-gUY33i_pRHZIwR8AULy6-nbnAbM8Qm5-CGISevc//gviz//tq" ; public void onReceive ( Context context , Intent intent ) { System . out . println ( "AlarmReceiver<seq2seq4repair_space>created" ) ; spNotifications = context . getSharedPreferences ( "notificationToggle" , MODE_PRIVATE ) ; spSpreadsheets = context . getSharedPreferences ( "spreadsheets" , MODE_PRIVATE ) ; <START_BUG> if ( spNotifications . getBoolean ( "notifications" , false ) ) { <END_BUG> int nextRegularShowIndex = 0 ; int i = 0 ; shows = new ArrayList ( ) ; try { if ( spSpreadsheets . getString ( "showsSpreadsheet" , "" ) . equals ( "" ) ) getShows ( context ) ; shows = processShowsJson ( new JSONObject ( spSpreadsheets . getString ( "showsSpreadsheet" , "" ) ) ) ; while ( ( shows . get ( i ) . getShowTime ( ) ) != 0 ) { i ++ ; nextRegularShowIndex = i ; } checkForPastShows ( ) ; notificationBuilder = new android . support . v4 . app . NotificationCompat . Builder ( context ) . setSmallIcon ( applogo ) . setContentTitle ( "Comedy<seq2seq4repair_space>Club<seq2seq4repair_space>of<seq2seq4repair_space>Jacksonville" ) . setContentText ( ( ( ( shows . get ( nextRegularShowIndex ) . getComedian ( ) ) + "<seq2seq4repair_space>headlines<seq2seq4repair_space>this<seq2seq4repair_space>weekend<seq2seq4repair_space>at<seq2seq4repair_space>the<seq2seq4repair_space>Comedy<seq2seq4repair_space>" ) + "Club<seq2seq4repair_space>of<seq2seq4repair_space>Jacksonville.<seq2seq4repair_space>Click<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>more." ) ) . setDefaults ( DEFAULT_ALL ) ; notificationResultIntent = new Intent ( context , ThisWeekendFromNotification . class ) . putParcelableArrayListExtra ( "shows" , shows ) ; TaskStackBuilder stackBuilder = TaskStackBuilder . create ( context ) ; stackBuilder . addParentStack ( ThisWeekend . class ) ; stackBuilder . addNextIntent ( notificationResultIntent ) ; PendingIntent resultPendingIntent = stackBuilder . getPendingIntent ( 0 , FLAG_UPDATE_CURRENT ) ; notificationBuilder . setContentIntent ( resultPendingIntent ) ; notificationBuilder . setAutoCancel ( true ) ; NotificationManager mNotificationManager = ( ( NotificationManager ) ( context . getSystemService ( NOTIFICATION_SERVICE ) ) ) ; mNotificationManager . notify ( 0 , notificationBuilder . build ( ) ) ; System . out . println ( "Notification<seq2seq4repair_space>built" ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } } private ArrayList < Show > processShowsJson ( JSONObject object ) { } public void getShows ( Context context ) { } public void checkForPastShows ( ) { } }

Fix:
if ( spNotifications . getBoolean ( "notifications" , true ) ) {
Buggy code:
public interface MiruSeaAnomalyServiceConfig extends Config { @ StringDefault ( "//miru//writer//client//ingress" ) public String getMiruIngressEndpoint ( ) { } @ StringDefault ( "unspecifiedHost:0" ) public String getMiruWriterHosts ( ) { } <START_BUG> @ StringDefault ( "soa-prime-data7.phx1.jivehosted.com:10004" ) <END_BUG> public String getMiruReaderHosts ( ) ; }

Fix:
@ StringDefault ( "soa-prime-data8.phx1.jivehosted.com:10004" )
Buggy code:
public class JmeterHitsChartTemplate extends BaseChart2DTemplateWithInterval { @ Override public Chart2DConfig generateChartConfig ( ) { int interval = getInterval ( ) ; if ( interval < 1 ) interval = 10000 ; List < Chart2DSeriesConfigRule > rules ; FieldSelector timestampField = new IndexFieldSelector ( 1 ) ; FieldSelector yField = new IndexFieldSelector ( 2 ) ; rules = new ArrayList < Chart2DSeriesConfigRule > ( ) ; <START_BUG> rules . add ( new Chart2DSeriesConfigRule ( "^HIT-.*" , "Hits" , "" , getLabelField ( ) , timestampField , yField , new CountCalculation ( interval , ( 1000.0 // interval ) ) ) ) ; <END_BUG> return createConfig ( "Hits<seq2seq4repair_space>over<seq2seq4repair_space>Time" , "Time" , "Hits" , rules , TIME ) ; } }

Fix:
rules . add ( new Chart2DSeriesConfigRule ( "^HIT$" , "Hits" , "" , getLabelField ( ) , timestampField , yField , new CountCalculation ( interval , ( 1000.0 // interval ) ) ) ) ;
Buggy code:
public class MainActivity extends MaterialNavigationDrawer { MaterialSection teamsSection ; MaterialSection fixtureSection ; MaterialSection venueSection ; MaterialSection contactSection ; @ Override public void init ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { int id = item . getItemId ( ) ; if ( id == ( id . action_open_playstore ) ) { try { startActivity ( new Intent ( Intent . ACTION_VIEW , Uri . parse ( ( "market:////search?q=pub:" + "Maxx" ) ) ) ) ; } catch ( android anfe ) { startActivity ( new Intent ( Intent . ACTION_VIEW , Uri . parse ( ( "http:////play.google.com//store//search?q=pub:" + "Maxx" ) ) ) ) ; } return true ; } if ( id == ( id . action_share_link ) ) { try { Intent i = new Intent ( Intent . ACTION_SEND ) ; i . setType ( "text//plain" ) ; i . putExtra ( EXTRA_SUBJECT , "Cricket<seq2seq4repair_space>World<seq2seq4repair_space>Cup<seq2seq4repair_space>15" ) ; <START_BUG> String sAux = "\nAds<seq2seq4repair_space>free<seq2seq4repair_space>World<seq2seq4repair_space>Cup<seq2seq4repair_space>2015<seq2seq4repair_space>App,<seq2seq4repair_space>requires<seq2seq4repair_space>no<seq2seq4repair_space>permissions<seq2seq4repair_space>to<seq2seq4repair_space>install\n\n" ; <END_BUG> sAux = sAux + "https:////play.google.com//store//apps//details?id=ws.mahesh.cwc2015lite<seq2seq4repair_space>\n\n" ; i . putExtra ( EXTRA_TEXT , sAux ) ; startActivity ( Intent . createChooser ( i , "Share<seq2seq4repair_space>using" ) ) ; } catch ( Exception e ) { } } return super . onOptionsItemSelected ( item ) ; } No newline ; at end ; of file ; }

Fix:
String sAux = "\nStay<seq2seq4repair_space>up<seq2seq4repair_space>to<seq2seq4repair_space>date<seq2seq4repair_space>on<seq2seq4repair_space>Cricket<seq2seq4repair_space>World<seq2seq4repair_space>Cup<seq2seq4repair_space>2015!\n\n<seq2seq4repair_space>Note:<seq2seq4repair_space>No<seq2seq4repair_space>ads<seq2seq4repair_space>and<seq2seq4repair_space>no<seq2seq4repair_space>permissions<seq2seq4repair_space>required<seq2seq4repair_space>to<seq2seq4repair_space>install,<seq2seq4repair_space>we<seq2seq4repair_space>promote<seq2seq4repair_space>privacy\n\n" ;
Buggy code:
public class EmbeddedCassandraServiceTest { private static EmbeddedCassandraService cassandra ; @ BeforeClass public static void setup ( ) throws IOException , InterruptedException , ConfigurationException , TTransportException { } @ Test public void testEmbeddedCassandraService ( ) throws UnsupportedEncodingException , InvalidRequestException , NotFoundException , TimedOutException , UnavailableException , TException { Cassandra . Client client = getClient ( ) ; <START_BUG> String key_user_id = "1" ; <END_BUG> long timestamp = System . currentTimeMillis ( ) ; ColumnPath cp = new ColumnPath ( "Standard1" ) ; cp . setColumn ( "name" . getBytes ( "utf-8" ) ) ; client . insert ( "Keyspace1" , key_user_id , cp , "Ran" . getBytes ( "UTF-8" ) , timestamp , ONE ) ; ColumnOrSuperColumn got = client . get ( "Keyspace1" , key_user_id , cp , ONE ) ; assertNotNull ( "Got<seq2seq4repair_space>a<seq2seq4repair_space>null<seq2seq4repair_space>ColumnOrSuperColumn" , got ) ; assertEquals ( "Ran" , new String ( got . getColumn ( ) . getValue ( ) , "utf-8" ) ) ; } private Client getClient ( ) throws TTransportException { } }

Fix:
byte [ ] key_user_id = "1" . getBytes ( ) ;
Buggy code:
public class RecordDatabase { private ArrayList < Record > recordList ; public RecordDatabase ( ) { } public void fillUpWithTestInfo ( ) { } public ArrayList < Record > getRecordsFromPatient ( User p ) { ArrayList < Record > list = new ArrayList < Record > ( ) ; Record record ; for ( int i = 0 ; i < ( recordList . size ( ) ) ; i ++ ) { record = recordList . get ( i ) ; <START_BUG> if ( ( ( record . patient ) != null ) && ( record . patient . equals ( p . name ) ) ) { <END_BUG> list . add ( record ) ; } } return list ; } }

Fix:
if ( ( ( record . patient ) != null ) && ( record . patient . equals ( p . getName ( ) ) ) ) {
Buggy code:
public class SendFileTransfer extends AbstractOutgoingFileTransfer { JREProxyHelper proxyHelper = null ; public SendFileTransfer ( ) { } protected void hardClose ( ) { } protected void openStreams ( ) throws SendFileTransferException { try { setInputStream ( new BufferedInputStream ( new FileInputStream ( getFileTransferInfo ( ) . getFile ( ) ) ) ) ; <START_BUG> final IFileStore fileStore = EFS . getStore ( new URI ( getRemoteFileURL ( ) . getFile ( ) ) ) ; <END_BUG> setOutputStream ( fileStore . openOutputStream ( 0 , null ) ) ; listener . handleTransferEvent ( new IOutgoingFileTransferResponseEvent ( ) { private static final long serialVersionUID = 8414116325104138848L ; public String toString ( ) { final StringBuffer sb = new StringBuffer ( "IOutgoingFileTransferResponseEvent[" ) ; sb . append ( "isdone=" ) . append ( done ) . append ( ";" ) ; sb . append ( "bytesSent=" ) . append ( bytesSent ) . append ( "]" ) ; return sb . toString ( ) ; } public boolean requestAccepted ( ) { return true ; } public IOutgoingFileTransfer getSource ( ) { return SendFileTransfer . this ; } } ) ; } catch ( final Exception e ) { throw new SendFileTransferException ( e ) ; } } protected void setupProxy ( Proxy proxy ) { } }

Fix:
final IFileStore fileStore = EFS . getStore ( new URI ( getRemoteFileURL ( ) . getPath ( ) ) ) ;
Buggy code:
public class NewNamingExtension implements NewExtension { public static final String SUBSYSTEM_NAME = "naming" ; public static final String NAMESPACE = "urn:jboss:domain:naming:1.0" ; private static final NewNamingExtension . NamingSubsystemParser parser = new NewNamingExtension . NamingSubsystemParser ( ) ; public void initialize ( NewExtensionContext context ) { } public void initializeParsers ( ExtensionParsingContext context ) { } static class NamingSubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < ModelNode > { public void writeContent ( XMLExtendedStreamWriter writer , ModelNode node ) throws XMLStreamException { } public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { ParseUtils . requireNoAttributes ( reader ) ; ParseUtils . requireNoContent ( reader ) ; final ModelNode subsystem = new ModelNode ( ) ; subsystem . get ( OP ) . set ( ADD ) ; <START_BUG> subsystem . get ( OP_ADDR ) . set ( SUBSYSTEM , NewNamingExtension . SUBSYSTEM_NAME ) ; <END_BUG> list . add ( subsystem ) ; } } }

Fix:
subsystem . get ( OP_ADDR ) . add ( SUBSYSTEM , NewNamingExtension . SUBSYSTEM_NAME ) ;
Buggy code:
public class GamePanel extends JPanel { private static final long serialVersionUID = 1L ; private final String FRAME_TITLE ; private JFrame frame ; private final int DEFAULT_WIDTH ; private final int SCALE ; private final AspectRatio ASPECT_RATIO ; private final BufferedImage ICON ; private Color defaultColor = Color . BLACK ; public GamePanel ( String title , int width , AspectRatio aspectRatio , BufferedImage icon ) { } public void initialize ( ) { } public void paintComponent ( Graphics g ) { super . paintComponent ( g ) ; GameStateManager . draw ( ( ( Graphics2D ) ( g ) ) ) ; g . setColor ( Color . BLACK ) ; <START_BUG> g . setFont ( new Font ( "Century<seq2seq4repair_space>Gothic" , Font . PLAIN , 10 ) ) ; <END_BUG> if ( ( Game . getGameLoop ( ) ) != null ) { DecimalFormat df = new DecimalFormat ( "#.##" ) ; g . drawString ( ( ( df . format ( Game . getGameLoop ( ) . getCurrentFPS ( ) ) ) + "<seq2seq4repair_space>FPS" ) , 5 , 10 ) ; int x = 5 ; int y = 10 ; for ( String line : DebugStats . getAllDebugInfo ( ) . split ( "\n" ) ) g . drawString ( line , x , ( y += g . getFontMetrics ( ) . getHeight ( ) ) ) ; } } public int getPreferredScale ( ) { } public int getScale ( ) { } public int getDefaultWidth ( ) { } }

Fix:
g . setFont ( new Font ( "Century<seq2seq4repair_space>Gothic" , Font . PLAIN , ( 5 * ( SCALE ) ) ) ) ;
Buggy code:
public class BundleInfoAttachmentProcessor implements DeploymentUnitProcessor { private ServiceRegistry serviceRegistry ; public BundleInfoAttachmentProcessor ( ServiceRegistry serviceRegistry ) { } @ Override public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; BundleInfo info = BundleInfoAttachment . getBundleInfoAttachment ( deploymentUnit ) ; if ( info != null ) return ; <START_BUG> VirtualFile virtualFile = phaseContext . getAttachment ( DEPLOYMENT_ROOT ) . getRoot ( ) ; <END_BUG> Manifest manifest = phaseContext . getAttachment ( MANIFEST ) ; if ( manifest == null ) { try { manifest = VFSUtils . getManifest ( virtualFile ) ; if ( manifest != null ) phaseContext . putAttachment ( MANIFEST , manifest ) ; } catch ( IOException ex ) { throw new DeploymentUnitProcessingException ( ( "Cannot<seq2seq4repair_space>read<seq2seq4repair_space>manifest<seq2seq4repair_space>from:<seq2seq4repair_space>" + virtualFile ) ) ; } } if ( BundleInfo . isValidateBundleManifest ( manifest ) ) { try { String location = InstallBundleInitiatorService . getLocation ( serviceRegistry , deploymentUnit . getName ( ) ) ; info = BundleInfo . createBundleInfo ( AbstractVFS . adapt ( virtualFile ) , location ) ; BundleInfoAttachment . attachBundleInfo ( deploymentUnit , info ) ; } catch ( BundleException ex ) { throw new DeploymentUnitProcessingException ( ( "Cannot<seq2seq4repair_space>create<seq2seq4repair_space>bundle<seq2seq4repair_space>deployment<seq2seq4repair_space>from:<seq2seq4repair_space>" + virtualFile ) ) ; } } } public void undeploy ( DeploymentUnit context ) { } }

Fix:
VirtualFile virtualFile = phaseContext . getDeploymentUnit ( ) . getAttachment ( DEPLOYMENT_ROOT ) . getRoot ( ) ;
Buggy code:
public final class LookupBindingSourceDescription extends BindingSourceDescription { private final String lookupName ; public LookupBindingSourceDescription ( final String lookupName ) { } public void getResourceValue ( final AbstractComponentDescription componentDescription , final BindingDescription bindingDescription , final ServiceBuilder < ? > serviceBuilder , final DeploymentPhaseContext phaseContext , final Injector < JndiInjectable > injector ) { if ( lookupName . startsWith ( "java:" ) ) { <START_BUG> final String compName = componentDescription . getComponentName ( ) ; <END_BUG> final String moduleName = componentDescription . getModuleName ( ) ; final String appName = componentDescription . getApplicationName ( ) ; final ServiceName sourceServiceName = ContextNames . serviceNameOfContext ( appName , moduleName , compName , lookupName ) ; serviceBuilder . addDependency ( sourceServiceName , JndiInjectable . class , injector ) ; } } }

Fix:
final String compName = ( ( componentDescription . getNamingMode ( ) ) == ( ComponentNamingMode . CREATE ) ) ? componentDescription . getComponentName ( ) : componentDescription . getModuleName ( ) ;
Buggy code:
public class FunctionHelper extends JDialog implements ActionListener , ChangeListener { JLabeledChoice functionList ; ArgumentsPanel parameterPanel ; JLabeledTextField cutPasteFunction ; private Map functionMap = new HashMap ( ) ; JButton generateButton ; public FunctionHelper ( ) { } private void init ( ) { } private void initializeFunctionList ( ) { } public void stateChanged ( ChangeEvent event ) { } public void actionPerformed ( ActionEvent e ) { StringBuffer functionCall = new StringBuffer ( "${" ) ; functionCall . append ( functionList . getText ( ) ) ; Arguments args = ( ( Arguments ) ( parameterPanel . createTestElement ( ) ) ) ; if ( ( args . getArguments ( ) . size ( ) ) > 0 ) { functionCall . append ( "(" ) ; PropertyIterator iter = args . iterator ( ) ; boolean first = true ; while ( iter . hasNext ( ) ) { Argument arg = ( ( Argument ) ( iter . next ( ) . getObjectValue ( ) ) ) ; if ( ! first ) { functionCall . append ( "," ) ; } functionCall . append ( ( ( String ) ( arg . getValue ( ) ) ) ) ; first = false ; } functionCall . append ( ")" ) ; } functionCall . append ( "}" ) ; cutPasteFunction . setText ( functionCall . toString ( ) ) ; } private class HelpListener implements ActionListener { public void actionPerformed ( ActionEvent e ) { <START_BUG> String [ ] source = new String [ ] { Help . HELP_PAGE , functionList . getText ( ) } ; <END_BUG> ActionEvent helpEvent = new ActionEvent ( source , e . getID ( ) , "help" ) ; org . apache . jmeter . gui . action . ActionRouter . getInstance ( ) . actionPerformed ( helpEvent ) ; } } }

Fix:
String [ ] source = new String [ ] { Help . HELP_FUNCTIONS , functionList . getText ( ) } ;
Buggy code:
public class Application extends WicketExampleApplication { public Application ( ) { } @ Override protected void init ( ) { super . init ( ) ; <START_BUG> getRootMapperAsCompound ( ) . add ( new MountedMapper ( "//hello" , HelloWorld . class ) ) ; <END_BUG> } @ Override public Class < ? extends Page > getHomePage ( ) { } }

Fix:
getRootRequestMapperAsCompound ( ) . add ( new MountedMapper ( "//hello" , HelloWorld . class ) ) ;