nus-yam/ex-repair huggingface dataset:
Buggy code:
public final class dns { private static Resolver res ; private static Cache cache ; private static Name [ ] searchPath ; private static boolean searchPathSet ; private dns ( ) { } static boolean matchType ( short type1 , short type2 ) { } public static String inaddrString ( InetAddress addr ) { } public static String inaddrString ( String s ) { } public static void setResolver ( Resolver _res ) { } public static void setSearchPath ( String [ ] domains ) { } private static Record [ ] lookup ( Name name , short type , short dclass , byte cred ) { Record [ ] answers ; int answerCount = 0 ; int n = 0 ; Enumeration e ; <START_BUG> CacheResponse cached = dns . cache . lookupRecords ( name , type , dclass , cred ) ; <END_BUG> if ( cached . isSuccessful ( ) ) { RRset [ ] rrsets = cached . answers ( ) ; answerCount = 0 ; for ( int i = 0 ; i < ( rrsets . length ) ; i ++ ) answerCount += rrsets [ i ] . size ( ) ; answers = new Record [ answerCount ] ; for ( int i = 0 ; i < ( rrsets . length ) ; i ++ ) { e = rrsets [ i ] . rrs ( ) ; while ( e . hasMoreElements ( ) ) { Record r = ( ( Record ) ( e . nextElement ( ) ) ) ; answers [ ( n ++ ) ] = r ; } } } else if ( cached . isNegative ( ) ) { return null ; } else { Record question = Record . newRecord ( name , type , dclass ) ; Message query = Message . newQuery ( question ) ; Message response = dns . res . send ( query ) ; short rcode = response . getHeader ( ) . getRcode ( ) ; if ( ( rcode == ( Rcode . NOERROR ) ) || ( rcode == ( Rcode . NXDOMAIN ) ) ) dns . cache . addMessage ( response ) ; if ( rcode != ( Rcode . NOERROR ) ) return null ; e = response . getSection ( ANSWER ) ; while ( e . hasMoreElements ( ) ) { Record r = ( ( Record ) ( e . nextElement ( ) ) ) ; if ( dns . matchType ( r . getType ( ) , type ) ) answerCount ++ ; } if ( answerCount == 0 ) return null ; answers = new Record [ answerCount ] ; e = response . getSection ( ANSWER ) ; while ( e . hasMoreElements ( ) ) { Record r = ( ( Record ) ( e . nextElement ( ) ) ) ; if ( dns . matchType ( r . getType ( ) , type ) ) answers [ ( n ++ ) ] = r ; } } return answers ; } public static Record [ ] getRecords ( String namestr , short type , short dclass , byte cred ) { } public static Record [ ] getRecords ( String namestr , short type , short dclass ) { } public static Record [ ] getAnyRecords ( String namestr , short type , short dclass ) { } public static Record [ ] getRecords ( String name , short type ) { } public static Record [ ] getAnyRecords ( String name , short type ) { } public static Record [ ] getRecordsByAddress ( String addr , short type ) { } public static Record [ ] getAnyRecordsByAddress ( String addr , short type ) { } }

Fix:
SetResponse cached = dns . cache . lookupRecords ( name , type , dclass , cred ) ;
Buggy code:
public class StoreFavoriteFragment extends StoreListFragment { private static final String ARG_SECTION_NUMBER = "section_number" ; private int mSectionNumber ; public StoreFavoriteFragment ( ) { } public static StoreFavoriteFragment newInstance ( int sectionNumber ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void loadStoreList ( ) { List < FavoriteStores > resultSet = new Select ( ) . from ( FavoriteStores . class ) . orderBy ( "store_id<seq2seq4repair_space>ASC" ) . execute ( ) ; if ( ( resultSet . size ( ) ) == 0 ) { stores = new ArrayList ( ) ; } else { String list = "(" ; if ( ( resultSet . size ( ) ) == 1 ) list = ( "(" + ( resultSet . get ( 0 ) . getStoreId ( ) ) ) + ")" ; else { for ( int i = 0 ; i < ( resultSet . size ( ) ) ; i ++ ) { <START_BUG> if ( i == ( ( resultSet . size ( ) ) - 1 ) ) <END_BUG> list += ( resultSet . get ( i ) . getStoreId ( ) ) + ",<seq2seq4repair_space>" ; else list += resultSet . get ( i ) . getStoreId ( ) ; } list += ")" ; } stores = new Select ( ) . from ( Store . class ) . where ( ( "store_id<seq2seq4repair_space>IN<seq2seq4repair_space>" + list ) ) . execute ( ) ; } } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onResume ( ) { } public interface OnFragmentInteractionListener { public void onStoreFavoriteFragmentInteraction ( String id ) { } } }

Fix:
if ( i != ( ( resultSet . size ( ) ) - 1 ) )
Buggy code:
public class ProcessSearchResult { private String search ; private final String USER_AGENT = "Mozilla//5.0<seq2seq4repair_space>(Windows<seq2seq4repair_space>NT<seq2seq4repair_space>5.1;<seq2seq4repair_space>rv:19.0)<seq2seq4repair_space>Gecko//20100101<seq2seq4repair_space>Firefox//19.0" ; static Connection conn ; public ProcessSearchResult ( String search ) { } public String getContent ( ) { String content = "" ; try { this . search = this . search . replaceAll ( "<seq2seq4repair_space>" , "%20" ) ; <START_BUG> String url = ( "http:////192.168.0.110:8983//solr//gettingstarted_shard1_replica1//select?q=" + ( this . search ) ) + "&rows=10000000&wt=json&indent=true" ; <END_BUG> URL obj = new URL ( url ) ; HttpURLConnection con = ( ( HttpURLConnection ) ( obj . openConnection ( ) ) ) ; con . setRequestMethod ( "GET" ) ; con . setRequestProperty ( "User-Agent" , USER_AGENT ) ; int responseCode = con . getResponseCode ( ) ; System . out . println ( ( "\nSending<seq2seq4repair_space>\'GET\'<seq2seq4repair_space>request<seq2seq4repair_space>to<seq2seq4repair_space>URL<seq2seq4repair_space>:<seq2seq4repair_space>" + url ) ) ; System . out . println ( ( "Response<seq2seq4repair_space>Code<seq2seq4repair_space>:<seq2seq4repair_space>" + responseCode ) ) ; BufferedReader in = new BufferedReader ( new InputStreamReader ( con . getInputStream ( ) ) ) ; String inputLine ; StringBuffer response = new StringBuffer ( ) ; while ( ( inputLine = in . readLine ( ) ) != null ) { response . append ( inputLine ) ; } in . close ( ) ; content = response . toString ( ) ; } catch ( Exception e ) { System . out . println ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>getting<seq2seq4repair_space>content<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>query" ) ; e . printStackTrace ( ) ; } return content ; } public static HashMap < String , Object > getContenForTimeTimeLine ( String content ) { } public static void updateDocumentRating ( String doc_id , int rating ) { } public static void updateDocumentHits ( String doc_id ) { } public static HashMap < String , Integer > getDocumentRating ( String doc_id ) { } public static double getRatingForDoc ( HashMap < String , Integer > ratingsForDocument , double meanRatingOfSystem , double totalHits ) { } public static int getNumberOfVotes ( HashMap < String , Integer > ratingsForDocument ) { } public static double getMeanRating ( HashMap < String , Integer > ratingsForDocument , double noOfVotes ) { } static class MyComparator implements Comparator < Document > { @ Override public int compare ( Document doc1 , Document doc2 ) { } } }

Fix:
String url = ( "http:////10.202.157.33:8983//solr//gettingstarted_shard1_replica1//select?q=" + ( this . search ) ) + "&rows=10000000&wt=json&indent=true" ;
Buggy code:
public class CartManager { private String TAG = "CartManager" ; private String userID ; private String chainID ; private String storeID ; private String cartID ; public String getCartID ( ) { } public String cartToken ; public ArrayList < Product > cartProducts ; private static ObjectMapper sMapper = new ObjectMapper ( ) ; private CartManager . OnCartItemsCallback callback ; public CartManager ( String userID , String chainID , String storeID , CartManager . OnCartItemsCallback callback ) { } public interface OnCartInitCallback { public void OnCartInit ( boolean success , String cartID ) { } } public interface OnCartItemsCallback { public void OnCartItemsLoaded ( ) { } } public BigDecimal getTotalPrice ( ) { } public int getTotalItems ( ) { } public void initCart ( Context context , final CartManager . OnCartInitCallback callback ) { AsyncHttpClient client = new AsyncHttpClient ( ) ; JSONObject jsonParams = new JSONObject ( ) ; try { jsonParams . put ( "UserId" , userID ) ; jsonParams . put ( "ChainId" , chainID ) ; jsonParams . put ( "StoreId" , storeID ) ; StringEntity entity = new StringEntity ( jsonParams . toString ( ) ) ; client . post ( context , "http:////payaway.me//api//cart" , entity , "application//json" , new JsonHttpResponseHandler ( ) { @ Override public void onStart ( ) { } @ Override public void onSuccess ( int statusCode , Header [ ] headers , JSONObject response ) { try { cartID = response . getString ( "CartId" ) ; cartToken = response . getString ( "Token" ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } System . out . println ( cartID ) ; callback . OnCartInit ( true , cartID ) ; } @ Override public void onFailure ( int statusCode , cz [ ] headers , Throwable throwable , JSONObject errorResponse ) { <START_BUG> System . out . println ( "wtf" ) ; <END_BUG> } @ Override public void onSuccess ( int statusCode , Header [ ] headers , JSONArray timeline ) { } @ Override public void onRetry ( int retryNo ) { } } ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } } public void loadCartData ( ) { } }

Fix:
System . out . println ( ( ( TAG ) + "wtf" ) ) ;
Buggy code:
@ Component public class CommandValidatorFactory implements InitializingBean { private Multimap < Class < ? > , CommandValidator < ? > > commandValidators = ArrayListMultimap . create ( ) ; private CommandConstraintsValidator commandConstraintsValidator = new CommandConstraintsValidator ( ) ; @ Autowired ( required = false ) private List < CommandValidator > foundValidators = Lists . newArrayList ( ) ; @ Override public void afterPropertiesSet ( ) throws Exception { for ( CommandValidator < ? > validator : foundValidators ) { Class < ? > commandClazz = extractCommandClazz ( validator ) ; <START_BUG> if ( commandValidators . isEmpty ( ) ) { <END_BUG> commandValidators . put ( commandClazz , commandConstraintsValidator ) ; } commandValidators . put ( commandClazz , validator ) ; } } private < C extends Command > Class < C > extractCommandClazz ( CommandValidator < C > validator ) { } @ SuppressWarnings ( "unchecked" ) public < C extends Command > List < CommandValidator < C > > getValidators ( C command ) { } }

Fix:
if ( ! ( commandValidators . containsKey ( commandClazz ) ) ) {
Buggy code:
@ Ignore ( "Test<seq2seq4repair_space>migrated<seq2seq4repair_space>to<seq2seq4repair_space>managed<seq2seq4repair_space>container" ) public class ServerInModuleDeploymentTestCase extends AbstractServerInModuleTestCase { @ Test public void testDeploymentStreamApi ( ) throws Exception { } @ Test public void testDeploymentFileApi ( ) throws Exception { } @ Test public void testFilesystemDeployment ( ) throws Exception { } @ Test public void testExplodedFilesystemDeployment ( ) throws Exception { } private ModelNode addDeploymentScanner ( final File deployDir , final ModelControllerClient client , final String scannerName ) throws IOException { } private File createDeploymentDir ( String dir ) { } private void testDeployments ( ServerInModuleDeploymentTestCase . DeploymentExecutor deploymentExecutor ) throws Exception { <START_BUG> final MBeanServerConnectionProvider provider = new MBeanServerConnectionProvider ( InetAddress . getLocalHost ( ) , 1090 ) ; <END_BUG> final MBeanServerConnection mbeanServer = provider . getConnection ( ) ; final ObjectName name = new ObjectName ( "jboss.test:service=testdeployments" ) ; final ServerInModuleDeploymentTestCase . TestNotificationListener listener = new ServerInModuleDeploymentTestCase . TestNotificationListener ( name ) ; mbeanServer . addNotificationListener ( MBeanServerDelegate . DELEGATE_NAME , listener , null , null ) ; try { deploymentExecutor . initialDeploy ( ) ; listener . await ( ) ; Assert . assertNotNull ( mbeanServer . getMBeanInfo ( name ) ) ; listener . reset ( 2 ) ; deploymentExecutor . fullReplace ( ) ; listener . await ( ) ; Assert . assertNotNull ( mbeanServer . getMBeanInfo ( name ) ) ; listener . reset ( 1 ) ; deploymentExecutor . undeploy ( ) ; listener . await ( ) ; try { mbeanServer . getMBeanInfo ( name ) ; Assert . fail ( "Should<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>found<seq2seq4repair_space>MBean" ) ; } catch ( InstanceNotFoundException expected ) { } } finally { mbeanServer . removeNotificationListener ( MBeanServerDelegate . DELEGATE_NAME , listener ) ; } } private void awaitDeploymentExecution ( Future < ? > future ) { } private static void cleanFile ( File toClean ) { } private interface DeploymentExecutor { void initialDeploy ( ) throws IOException { } void fullReplace ( ) throws IOException { } void undeploy ( ) throws IOException { } } private static class TestNotificationListener implements NotificationListener { private final ObjectName name ; private volatile CountDownLatch latch = new CountDownLatch ( 1 ) ; private TestNotificationListener ( ObjectName name ) { } @ Override public void handleNotification ( Notification notification , Object handback ) { } void reset ( int i ) { } void await ( ) throws Exception { } } }

Fix:
final MBeanServerConnectionProvider provider = MBeanServerConnectionProvider . defaultProvider ( ) ;
Buggy code:
public class RecorderEntry implements BuildLogger { private String filename = null ; private boolean record = true ; private int loglevel = Project . MSG_INFO ; private PrintStream out = null ; private long targetStartTime = 0L ; protected RecorderEntry ( String name ) { } private static String formatTime ( long millis ) { } public void setEmacsMode ( boolean emacsMode ) { } public void setErrorPrintStream ( PrintStream err ) { } public void setMessageOutputLevel ( int level ) { } public void setOutputPrintStream ( PrintStream output ) { } public void setRecordState ( Boolean state ) { } public String getFilename ( ) { } public void buildFinished ( BuildEvent event ) { } public void buildStarted ( BuildEvent event ) { } public void messageLogged ( BuildEvent event ) { log ( "---<seq2seq4repair_space>MESSAGE<seq2seq4repair_space>LOGGED" , MSG_DEBUG ) ; StringBuffer buf = new StringBuffer ( ) ; if ( ( event . getTask ( ) ) != null ) { <START_BUG> String name = ( "[" + ( event . getTask ( ) . getTaskName ( ) ) ) + "]" ; <END_BUG> for ( int i = 0 ; i < ( 12 - ( name . length ( ) ) ) ; i ++ ) { buf . append ( "<seq2seq4repair_space>" ) ; } buf . append ( name ) ; } buf . append ( event . getMessage ( ) ) ; log ( buf . toString ( ) , event . getPriority ( ) ) ; } public void targetFinished ( BuildEvent event ) { } public void targetStarted ( BuildEvent event ) { } public void taskFinished ( BuildEvent event ) { } public void taskStarted ( BuildEvent event ) { } private void log ( String mesg , int level ) { } }

Fix:
String name = ( "[" + ( event . getTask ( ) . getName ( ) ) ) + "]" ;
Buggy code:
public class BackupService extends Service { public static final String ACTION_BACKUP = "Backup" ; public static final String ACTION_BACKUP_IMMEDIATELY = "BackupImmediately" ; public static final String ACTION_RESTORE = "Restore" ; private static final String TAG = "BackupService" ; private static final String FILE_NAME = "ServiceDroidBackup.sdml" ; private static final String DIRECTORY = "backups" ; private static final long SCHEDULE_DELAY = ( 1000 * 60 ) * 5 ; private static final boolean DO_NOTIFY = true ; private static final boolean DONT_NOTIFY = false ; private Handler mHandler = new Handler ( ) ; private Runnable mScheduler = new Runnable ( ) { public void run ( ) { } } ; @ Override public void onCreate ( ) { } @ Override public void onStart ( Intent intent , int startId ) { } @ Override public int onStartCommand ( Intent intent , int flags , int startId ) { } protected void handleCommand ( Intent intent ) { } protected void onBackup ( ) { } protected void doBackup ( ) { } protected void doBackup ( final boolean notifyOnSuccess ) { } protected void backupImmediately ( ) { } protected void notifySuccess ( ) { } protected void writeToSDCard ( String raw ) { } protected void onRestore ( ) { } protected void doRestore ( ) { } protected void notifyRestoreFailure ( ) { } protected String readFromSDCard ( ) { File root = Environment . getExternalStorageDirectory ( ) ; File dir = new File ( root , BackupService . DIRECTORY ) ; File file = new File ( dir , BackupService . FILE_NAME ) ; StringBuilder sb = new StringBuilder ( ) ; try { BufferedReader in = new BufferedReader ( new FileReader ( file ) ) ; String line = null ; while ( ( line = in . readLine ( ) ) != null ) { sb . append ( line ) ; } in . close ( ) ; } catch ( IOException e ) { <START_BUG> Log . w ( BackupService . TAG , "error<seq2seq4repair_space>writing<seq2seq4repair_space>to<seq2seq4repair_space>file" ) ; <END_BUG> } return sb . toString ( ) ; } @ Override public IBinder onBind ( Intent arg0 ) { } }

Fix:
Log . e ( BackupService . TAG , "error<seq2seq4repair_space>reading<seq2seq4repair_space>ServiceDroidBackup.sdml" ) ;
Buggy code:
public class CollectionsHandler extends RequestHandlerBase { protected static Logger log = LoggerFactory . getLogger ( CollectionsHandler . class ) ; protected final CoreContainer coreContainer ; public CollectionsHandler ( ) { } public CollectionsHandler ( final CoreContainer coreContainer ) { } @ Override public final void init ( NamedList args ) { } public CoreContainer getCoreContainer ( ) { } @ Override public void handleRequestBody ( SolrQueryRequest req , SolrQueryResponse rsp ) throws Exception { } public static long DEFAULT_ZK_TIMEOUT = 60 * 1000 ; private void handleResponse ( String operation , ZkNodeProps m , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private void handleResponse ( String operation , ZkNodeProps m , SolrQueryResponse rsp , long timeout ) throws InterruptedException , KeeperException { } private void handleReloadAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private void handleSyncShardAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws IOException , InterruptedException , SolrServerException , KeeperException { } private void handleCreateAliasAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws Exception { } private void handleDeleteAliasAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws Exception { } private void handleDeleteAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private void handleCreateAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private void handleRemoveReplica ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private void handleCreateShard ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private static void copyIfNotNull ( SolrParams params , Map < String , Object > props , String ... keys ) { } private void copyPropertiesIfNotNull ( SolrParams params , Map < String , Object > props ) { Iterator < String > iter = params . getParameterNamesIterator ( ) ; while ( iter . hasNext ( ) ) { String param = iter . next ( ) ; <START_BUG> if ( ( param . indexOf ( COLL_PROP_PREFIX ) ) != ( - 1 ) ) { <END_BUG> props . put ( param , params . get ( param ) ) ; } } } private void handleDeleteShardAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private void handleSplitShardAction ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } private void handleMigrate ( SolrQueryRequest req , SolrQueryResponse rsp ) throws InterruptedException , KeeperException { } public static ModifiableSolrParams params ( String ... params ) { } @ Override public String getDescription ( ) { } @ Override public String getSource ( ) { } }

Fix:
if ( param . startsWith ( COLL_PROP_PREFIX ) ) {
Buggy code:
public class BcelAdvice extends Advice { private Test pointcutTest ; private ExposedState exposedState ; public BcelAdvice ( AjAttribute . AdviceAttribute attribute , Pointcut pointcut , Member signature , ResolvedTypeX concreteAspect ) { } public BcelAdvice ( AdviceKind kind , Pointcut pointcut , Member signature , int extraArgumentFlags , int start , int end , ISourceContext sourceContext , ResolvedTypeX concreteAspect ) { } public void specializeOn ( Shadow shadow ) { } private boolean canInline ( Shadow s ) { if ( attribute . isProceedInInners ( ) ) return false ; if ( ( ( concreteAspect ) == null ) || ( ( concreteAspect ) == ( ResolvedTypeX . MISSING ) ) ) return false ; if ( concreteAspect . getWorld ( ) . isXnoInline ( ) ) return false ; <START_BUG> return ( ( ( BcelObjectType ) ( concreteAspect ) ) . getLazyClassGen ( ) . getWeaverState ( ) ) == ( WeaverStateKind . Woven ) ; <END_BUG> } public void implementOn ( Shadow s ) { } public boolean hasDynamicTests ( ) { } InstructionList getAdviceInstructions ( BcelShadow s , BcelVar extraArgVar , InstructionHandle ifNoAdvice ) { } public InstructionList getAdviceArgSetup ( BcelShadow shadow , BcelVar extraVar , InstructionList closureInstantiation ) { } public InstructionList getNonTestAdviceInstructions ( BcelShadow shadow ) { } public InstructionList getTestInstructions ( BcelShadow shadow , InstructionHandle sk , InstructionHandle fk , InstructionHandle next ) { } public int compareTo ( Object other ) { } public BcelVar [ ] getExposedStateAsBcelVars ( ) { } }

Fix:
return ( BcelWorld . getBcelObjectType ( concreteAspect ) . getLazyClassGen ( ) . getWeaverState ( ) ) == ( WeaverStateKind . Woven ) ;
Buggy code:
public class BulkLoadJob extends AbstractHadoopJob { protected static final Logger log = LoggerFactory . getLogger ( BulkLoadJob . class ) ; @ Override public int run ( String [ ] args ) throws Exception { Options options = new Options ( ) ; try { options . addOption ( OPTION_INPUT_PATH ) ; options . addOption ( OPTION_HTABLE_NAME ) ; options . addOption ( OPTION_CUBE_NAME ) ; parseOptions ( options , args ) ; String tableName = getOptionValue ( OPTION_HTABLE_NAME ) . toUpperCase ( ) ; String input = getOptionValue ( OPTION_INPUT_PATH ) ; Configuration conf = HadoopUtil . getCurrentHBaseConfiguration ( ) ; FileSystem fs = FileSystem . get ( conf ) ; String cubeName = getOptionValue ( OPTION_CUBE_NAME ) . toUpperCase ( ) ; KylinConfig config = KylinConfig . getInstanceFromEnv ( ) ; CubeManager cubeMgr = CubeManager . getInstance ( config ) ; CubeInstance cube = cubeMgr . getCube ( cubeName ) ; CubeDesc cubeDesc = cube . getDescriptor ( ) ; FsPermission permission = new FsPermission ( ( ( short ) ( 511 ) ) ) ; for ( HBaseColumnFamilyDesc cf : cubeDesc . getHBaseMapping ( ) . getColumnFamily ( ) ) { String cfName = cf . getName ( ) ; <START_BUG> Path columnFamilyPath = new Path ( ( input + cfName ) ) ; <END_BUG> if ( fs . exists ( columnFamilyPath ) ) { fs . setPermission ( columnFamilyPath , permission ) ; } } String [ ] newArgs = new String [ 2 ] ; newArgs [ 0 ] = input ; newArgs [ 1 ] = tableName ; BulkLoadJob . log . debug ( "Start<seq2seq4repair_space>to<seq2seq4repair_space>run<seq2seq4repair_space>LoadIncrementalHFiles" ) ; int ret = ToolRunner . run ( new org . apache . hadoop . hbase . mapreduce . LoadIncrementalHFiles ( conf ) , newArgs ) ; BulkLoadJob . log . debug ( "End<seq2seq4repair_space>to<seq2seq4repair_space>run<seq2seq4repair_space>LoadIncrementalHFiles" ) ; return ret ; } catch ( Exception e ) { printUsage ( options ) ; throw e ; } } public static void main ( String [ ] args ) throws Exception { } }

Fix:
Path columnFamilyPath = new Path ( input , cfName ) ;
Buggy code:
public class CommandFactory { public Command getCommand ( List < OptionEntity > optionList , List < URL > urlList ) { } private OutputWriter getWriter ( List < File > files ) { } private Queue < UrlFileHandling > combineUrlFile ( List < URL > urlList , List < File > files ) { Queue < UrlFileHandling > result = new ArrayDeque < UrlFileHandling > ( ) ; for ( int i = 0 ; i < ( urlList . size ( ) ) ; i ++ ) { if ( files . isEmpty ( ) ) { <START_BUG> result . add ( new UrlFileHandling ( urlList . get ( i ) , new UrlFileHandling . StdOut ( null ) ) ) ; <END_BUG> } else { result . add ( new UrlFileHandling ( urlList . get ( i ) , files . get ( i ) ) ) ; } } return result ; } private boolean proxy ( List < OptionEntity > optionList ) { } private boolean isVerbose ( List < OptionEntity > optionList ) { } private Map < String , String > getHeaders ( List < OptionEntity > optionList ) { } private String [ ] parseHeader ( String str ) { } private String command ( List < OptionEntity > optionList ) { } private List < File > getFileList ( List < OptionEntity > optionList ) { } }

Fix:
result . add ( new UrlFileHandling ( urlList . get ( i ) , new UrlFileHandling . StdOut ( "stdout" ) ) ) ;
Buggy code:
public class WebSocketTransport implements Transport { private static Log logger = LogFactory . getLog ( WebSocketTransport . class ) ; private final WebSocketClient webSocketClient ; public WebSocketTransport ( WebSocketClient webSocketClient ) { } public WebSocketClient getWebSocketClient ( ) { } @ Override public ListenableFuture < WebSocketSession > connect ( TransportRequest request , WebSocketHandler handler ) { final SettableListenableFuture < WebSocketSession > future = new SettableListenableFuture < WebSocketSession > ( ) ; WebSocketClientSockJsSession session = new WebSocketClientSockJsSession ( request , handler , future ) ; handler = new WebSocketTransport . ClientSockJsWebSocketHandler ( session ) ; request . addTimeoutTask ( session . getTimeoutTask ( ) ) ; URI url = request . getTransportUrl ( ) ; WebSocketHttpHeaders headers = new WebSocketHttpHeaders ( request . getHandshakeHeaders ( ) ) ; if ( WebSocketTransport . logger . isDebugEnabled ( ) ) { <START_BUG> WebSocketTransport . logger . debug ( ( "Opening<seq2seq4repair_space>WebSocket<seq2seq4repair_space>connection,<seq2seq4repair_space>url=" + url ) ) ; <END_BUG> } this . webSocketClient . doHandshake ( handler , headers , url ) . addCallback ( new org . springframework . util . concurrent . ListenableFutureCallback < WebSocketSession > ( ) { @ Override public void onSuccess ( WebSocketSession webSocketSession ) { } @ Override public void onFailure ( Throwable t ) { future . setException ( t ) ; } } ) ; return future ; } @ Override public String toString ( ) { } private static class ClientSockJsWebSocketHandler extends TextWebSocketHandler { private final WebSocketClientSockJsSession sockJsSession ; private final AtomicInteger connectCount = new AtomicInteger ( 0 ) ; private ClientSockJsWebSocketHandler ( WebSocketClientSockJsSession session ) { } @ Override public void afterConnectionEstablished ( WebSocketSession webSocketSession ) throws Exception { } @ Override public void handleTextMessage ( WebSocketSession webSocketSession , TextMessage message ) throws Exception { } @ Override public void handleTransportError ( WebSocketSession webSocketSession , Throwable ex ) throws Exception { } @ Override public void afterConnectionClosed ( WebSocketSession webSocketSession , CloseStatus status ) throws Exception { } } }

Fix:
WebSocketTransport . logger . debug ( ( "Starting<seq2seq4repair_space>WebSocket<seq2seq4repair_space>session<seq2seq4repair_space>url=" + url ) ) ;
Buggy code:
public class LazyInitProxyFactoryTest extends TestCase { private static InterfaceObject interfaceObject = new InterfaceObject ( "interface" ) ; private static ConcreteObject concreteObject = new ConcreteObject ( "concrete" ) ; private static IProxyTargetLocator interfaceObjectLocator = new IProxyTargetLocator ( ) { private static final long serialVersionUID = 1L ; public Object locateProxyTarget ( ) { } } ; private static IProxyTargetLocator concreteObjectLocator = new IProxyTargetLocator ( ) { private static final long serialVersionUID = 1L ; public Object locateProxyTarget ( ) { } } ; public void testInterfaceProxy ( ) { } public void testConcreteProxy ( ) { } public void testCGLibInterceptorReplacement ( ) { ProxyReplacement ser = new ProxyReplacement ( ConcreteObject . class . getName ( ) , LazyInitProxyFactoryTest . concreteObjectLocator ) ; <START_BUG> ConcreteObject proxy2 = ( ( ConcreteObject ) ( Objects . cloneObject ( ser ) ) ) ; <END_BUG> assertEquals ( proxy2 . getMessage ( ) , "concrete" ) ; } }

Fix:
ConcreteObject proxy2 = ( ( ConcreteObject ) ( Objects . cloneObject ( ( ( Object ) ( ser ) ) ) ) ) ;
Buggy code:
public class PageProvider implements IPageProvider { private Integer renderCount ; private IPageSource pageSource ; private IRequestablePage pageInstance ; private Class < ? extends IRequestablePage > pageClass ; private Integer pageId ; private PageParameters pageParameters ; public PageProvider ( final int pageId , final Integer renderCount ) { } public PageProvider ( final int pageId , final Class < ? extends IRequestablePage > pageClass , Integer renderCount ) { } public PageProvider ( final int pageId , final Class < ? extends IRequestablePage > pageClass , final PageParameters pageParameters , final Integer renderCount ) { } public PageProvider ( final Class < ? extends IRequestablePage > pageClass , final PageParameters pageParameters ) { } public PageProvider ( Class < ? extends IRequestablePage > pageClass ) { } public PageProvider ( IRequestablePage page ) { } public IRequestablePage getPageInstance ( ) { } public PageParameters getPageParameters ( ) { } public boolean isNewPageInstance ( ) { } public Class < ? extends IRequestablePage > getPageClass ( ) { } protected boolean prepareForRenderNewPage ( ) { } protected IPageSource getPageSource ( ) { } private IRequestablePage getPageInstance ( Integer pageId , Class < ? extends IRequestablePage > pageClass , PageParameters pageParameters , Integer renderCount ) { IRequestablePage page = null ; boolean freshCreated = false ; if ( pageId != null ) { page = getPageSource ( ) . getPageInstance ( pageId ) ; if ( ( ( page != null ) && ( pageClass != null ) ) && ( ( page . getClass ( ) . equals ( pageClass ) ) == false ) ) { page = null ; } else if ( ( page != null ) && ( pageParameters != null ) ) { <START_BUG> page . getPageParameters ( ) . assign ( pageParameters ) ; <END_BUG> } } if ( page == null ) { if ( pageClass != null ) { page = getPageSource ( ) . newPageInstance ( pageClass , pageParameters ) ; freshCreated = true ; if ( ( prepareForRenderNewPage ( ) ) && ( page instanceof Page ) ) { ( ( Page ) ( page ) ) . prepareForRender ( false ) ; } } } if ( ( page != null ) && ( ! freshCreated ) ) { if ( ( renderCount != null ) && ( ( page . getRenderCount ( ) ) != renderCount ) ) { throw new org . apache . wicket . request . mapper . StalePageException ( page ) ; } } return page ; } public void detach ( ) { } public void setPageSource ( IPageSource pageSource ) { } private void setPageClass ( Class < ? extends IRequestablePage > pageClass ) { } private void setPageParameters ( PageParameters pageParameters ) { } private void touchPageInstance ( ) { } }

Fix:
page . getPageParameters ( ) . overwriteWith ( pageParameters ) ;
Buggy code:
public class ByteBufferUtil { public static int compareUnsigned ( ByteBuffer o1 , ByteBuffer o2 ) { } public static int compare ( byte [ ] o1 , ByteBuffer o2 ) { } public static int compare ( ByteBuffer o1 , byte [ ] o2 ) { } public static String string ( ByteBuffer buffer ) { } public static String string ( ByteBuffer buffer , Charset charset ) { } public static String string ( ByteBuffer buffer , int offset , int length ) { } public static String string ( ByteBuffer buffer , int offset , int length , Charset charset ) { if ( buffer . hasArray ( ) ) <START_BUG> return new String ( buffer . array ( ) , ( ( buffer . arrayOffset ( ) ) + offset ) , ( length + ( buffer . arrayOffset ( ) ) ) , charset ) ; <END_BUG> byte [ ] buff = ByteBufferUtil . getArray ( buffer , offset , length ) ; return new String ( buff , charset ) ; } public static byte [ ] getArray ( ByteBuffer buffer ) { } public static byte [ ] getArray ( ByteBuffer b , int start , int length ) { } public static int lastIndexOf ( ByteBuffer buffer , byte valueToFind , int startIndex ) { } public static ByteBuffer bytes ( String s ) { } public static ByteBuffer clone ( ByteBuffer o ) { } public static void arrayCopy ( ByteBuffer buffer , int position , byte [ ] bytes , int offset , int length ) { } public static void writeWithLength ( ByteBuffer bytes , DataOutput out ) throws IOException { } public static void write ( ByteBuffer buffer , DataOutput out ) throws IOException { } public static void writeWithShortLength ( ByteBuffer buffer , DataOutput out ) { } }

Fix:
return new String ( buffer . array ( ) , ( ( buffer . arrayOffset ( ) ) + offset ) , length , charset ) ;
Buggy code:
public class RolesApplication extends WebApplication implements ISessionFactory { public static List < User > USERS = Arrays . asList ( new User [ ] { new User ( "jon" , "ADMIN" ) , new User ( "kay" , "USER" ) , new User ( "pam" , "" ) } ) ; public RolesApplication ( ) { } @ Override public Class getHomePage ( ) { } public Session newSession ( Request request , Response response ) { <START_BUG> return new RolesSession ( this , request , response ) ; <END_BUG> } @ Override protected void init ( ) { } }

Fix:
return new RolesSession ( this , request ) ;
Buggy code:
public class Parser implements IParser { enum OperationType { ADD , DELETE , MODIFY , ARCHIVE , CLEAR , INVALID ; } HashMap < String , Parser . OperationType > cmdHash = new HashMap < String , Parser . OperationType > ( ) ; private void initCommandHash ( ) { } private String [ ] tokeniser ( String userInput ) { } private Command parseTokens ( String [ ] tokenList ) { } private String [ ] getParameterArray ( String [ ] tokenList ) { } public String parseInput ( String userInput ) { <START_BUG> Token [ ] userTokens = tokeniser ( userInput ) ; <END_BUG> Command userCommand = parseTokens ( userTokens ) ; return Logic . executeCommand ( userCommand ) ; } }

Fix:
String [ ] userTokens = tokeniser ( userInput ) ;
Buggy code:
@ WebServlet ( name = "LogoutServlet" , urlPatterns = "//staffLogout.sec" ) public class LogoutServlet extends HttpServlet { protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { HttpSession session = request . getSession ( ) ; session . invalidate ( ) ; <START_BUG> response . sendRedirect ( "//staffLogin" ) ; <END_BUG> } }

Fix:
response . sendRedirect ( "staffLogin" ) ;
Buggy code:
public class StorageTest { private Storage _storage ; private List < Task > _tasks ; private List < String > _deletedIDs ; private String _filename ; @ Before public void setUp ( ) throws Exception { } @ After public void tearDown ( ) throws Exception { } @ Test public void testSaveAndLoad ( ) { } @ Test public void testSavingEmpty ( ) { } @ Test public void testSavingSpecialCharacters ( ) { } @ Test public void testSavingIntoOpenedFiles ( ) throws IOException { } @ Test public void testLoadingNonexistingFile ( ) { } @ Test public void testSavingValidFilepath ( ) { } @ Test public void testSavingValidFilepath2 ( ) { Error caught = null ; try { _filename = "C:\\legal.json" ; _storage . saveFile ( _tasks , _deletedIDs , _filename ) ; } catch ( Error e ) { caught = e ; } if ( caught != null ) { <START_BUG> assertNotEquals ( String . format ( ERROR_WRITE_FILE , _filename ) , caught . getMessage ( ) ) ; <END_BUG> } } @ Test public void testSavingInvalidFilepath1 ( ) { } @ Test public void testSavingInvalidFilepath2 ( ) { } @ Test public void testSavingInvalidFilepath3 ( ) { } @ Test public void testSavingInvalidFilepath4 ( ) { } @ Test public void testSavingInvalidFilepath5 ( ) { } @ Test public void testSavingInvalidFilepath6 ( ) { } @ Test public void testSavingInvalidFilepath7 ( ) { } @ Test public void testLoadingValidFilepath ( ) { } @ Test public void testLoadingInvalidFilepath1 ( ) { } @ Test public void testLoadingInvalidFilepath2 ( ) { } @ Test public void testLoadingInvalidFilepath3 ( ) { } @ Test public void testLoadingInvalidFilepath4 ( ) { } @ Test public void testLoadingInvalidFilepath5 ( ) { } @ Test public void testLoadingInvalidFilepath6 ( ) { } @ Test public void testLoadingInvalidFilepath7 ( ) { } private String nextPriority ( String priority ) { } private Calendar oneMinuteAfter ( Calendar instance ) { } private Task instantiateTask ( String name , String description , String priority , String googleId , Calendar start , Calendar due , Calendar lastUpdated , boolean isCompleted , boolean shouldSync , boolean hasStartTime , boolean hasDueTime ) { } private void assertTaskEquals ( Task expected , Task actual ) { } private void assertCalendarEquals ( Calendar expected , Calendar actual ) { } }

Fix:
assertNotEquals ( ERROR_INVALID_FILEPATH , caught . getMessage ( ) ) ;
Buggy code:
public class DefaultRequestTargetResolverStrategy implements IRequestTargetResolverStrategy { public DefaultRequestTargetResolverStrategy ( ) { } public final IRequestTarget resolve ( RequestCycle requestCycle , RequestParameters requestParameters ) { } protected IRequestTarget resolveSharedResource ( final RequestCycle requestCycle , RequestParameters requestParameters ) { } protected IRequestTarget resolveRenderedPage ( RequestCycle requestCycle , RequestParameters requestParameters ) { } protected IRequestTarget resolveListenerInterfaceTarget ( RequestCycle requestCycle , final Page page , final String componentPath , final String interfaceName ) { if ( interfaceName . equals ( "IRedirectListener" ) ) { return new wicket . request . target . RedirectPageRequestTarget ( page ) ; } else { Method listenerMethod = requestCycle . getRequestInterfaceMethod ( interfaceName ) ; if ( listenerMethod == null ) { throw new WicketRuntimeException ( ( "Attempt<seq2seq4repair_space>to<seq2seq4repair_space>access<seq2seq4repair_space>unknown<seq2seq4repair_space>interface<seq2seq4repair_space>" + interfaceName ) ) ; } <START_BUG> String componentPart = Strings . afterFirstPathComponent ( componentPath , ':' ) ; <END_BUG> if ( Strings . isEmpty ( componentPart ) ) { throw new WicketRuntimeException ( ( ( "when<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>call<seq2seq4repair_space>" + listenerMethod ) + ",<seq2seq4repair_space>a<seq2seq4repair_space>component<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>provided" ) ) ; } Component component = page . get ( componentPart ) ; if ( ! ( component . isVisible ( ) ) ) { throw new WicketRuntimeException ( "Calling<seq2seq4repair_space>listener<seq2seq4repair_space>methods<seq2seq4repair_space>on<seq2seq4repair_space>components<seq2seq4repair_space>that<seq2seq4repair_space>are<seq2seq4repair_space>not<seq2seq4repair_space>visible<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>allowed" ) ; } if ( interfaceName . equals ( "IResourceListener" ) ) { return new wicket . request . target . ComponentResourceRequestTarget ( page , component , listenerMethod ) ; } return new wicket . request . target . ListenerInterfaceRequestTarget ( page , component , listenerMethod ) ; } } protected IRequestTarget resolveBookmarkablePage ( RequestCycle requestCycle , RequestParameters requestParameters ) { } protected IRequestTarget resolveHomePageTarget ( RequestCycle requestCycle , RequestParameters requestParameters ) { } protected IRequestTarget resolveExternalResource ( RequestCycle requestCycle ) { } }

Fix:
String componentPart = Strings . afterFirstPathComponent ( componentPath , PATH_SEPARATOR ) ;
Buggy code:
public class LatexFragment extends Fragment { private static final String LOG_TAG = LatexFragment . class . getSimpleName ( ) ; private static final String ARG_PARAM1 = "param1" ; private String getLatexCode ( ) { } private String mLatexCode ; public static LatexFragment newInstance ( String param1 ) { } public LatexFragment ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { View root = inflater . inflate ( fragment_latex , container , false ) ; WebView latexView = ( ( WebView ) ( root . findViewById ( latexWebView ) ) ) ; latexView . getSettings ( ) . setJavaScriptEnabled ( true ) ; latexView . getSettings ( ) . setBuiltInZoomControls ( false ) ; TypedValue typedValue = new TypedValue ( ) ; Resources . Theme theme = getActivity ( ) . getTheme ( ) ; theme . resolveAttribute ( windowBackgroundColor , typedValue , true ) ; latexView . setBackgroundColor ( typedValue . data ) ; latexView . loadDataWithBaseURL ( "http:////bar" , ( "<script<seq2seq4repair_space>type='text//x-mathjax-config'>" + ( ( ( ( ( ( ( ( ( ( "MathJax.Hub.Config({<seq2seq4repair_space>" + "messageStyle:<seq2seq4repair_space>'none'," ) + "showMathMenu:<seq2seq4repair_space>false,<seq2seq4repair_space>" ) + "jax:<seq2seq4repair_space>['input//TeX','output//HTML-CSS'],<seq2seq4repair_space>" ) + "extensions:<seq2seq4repair_space>['tex2jax.js'],<seq2seq4repair_space>" ) + "TeX:<seq2seq4repair_space>{<seq2seq4repair_space>extensions:<seq2seq4repair_space>['AMSmath.js','AMSsymbols.js'," ) + "'noErrors.js','noUndefined.js']<seq2seq4repair_space>}<seq2seq4repair_space>" ) + "});<//script>" ) + "<script<seq2seq4repair_space>type='text//javascript'<seq2seq4repair_space>" ) + "src='file://////android_asset//MathJax//MathJax.js'" ) + "><//script><span<seq2seq4repair_space>id='math'><//span>" ) ) , "text//html" , "utf-8" , "" ) ; Log . v ( LatexFragment . LOG_TAG , ( "Loading<seq2seq4repair_space>latexCode:<seq2seq4repair_space>" + ( mLatexCode ) ) ) ; latexView . setWebViewClient ( new WebViewClient ( ) { private String mLatexCode = null ; @ Override public void onPageFinished ( WebView view , String url ) { super . onPageFinished ( view , url ) ; if ( ( VERSION . SDK_INT ) < 19 ) { <START_BUG> view . loadUrl ( ( ( "javascript:document.getElementById(\'math\').innerHTML=\'\\\\[" + ( getLatexCode ( ) ) ) + "\\\\]\'" ) ) ; <END_BUG> view . loadUrl ( "javascript:MathJax.Hub.Queue(['Typeset',MathJax.Hub]);" ) ; } else { view . evaluateJavascript ( ( ( "javascript:document.getElementById(\'math\').innerHTML=\'\\\\[" + ( doubleEscapeTeX ( getLatexCode ( ) ) ) ) + "\\\\]\'" ) , null ) ; view . evaluateJavascript ( "javascript:MathJax.Hub.Queue(['Typeset',MathJax.Hub]);" , null ) ; } } } ) ; return root ; } private String doubleEscapeTeX ( String s ) { } }

Fix:
view . loadUrl ( ( ( "javascript:document.getElementById(\'math\').innerHTML=\'\\\\[" + ( doubleEscapeTeX ( getLatexCode ( ) ) ) ) + "\\\\]\'" ) ) ;
Buggy code:
public class RubyLocator { public static final String RUBY_GEMSET_REGEX = "[\\w\\d\\.\\-_]+@[\\w\\d\\.\\-_]+" ; final FileSystemHelper fileSystemHelper ; final RvmInstallation rvmInstallation ; public RubyLocator ( FileSystemHelper fileSystemHelper , RvmInstallation rvmInstallation ) { } public Map < String , String > buildEnv ( String rubyRuntimeName , Map < String , String > currentEnv ) { RubyRuntime rubyRuntime = getRubyRuntime ( rubyRuntimeName ) ; final String rubyHomePath = RvmUtil . buildRubyHomePath ( rvmInstallation . getRubiesPath ( ) , rubyRuntime . getRubyName ( ) ) ; final String rubyName = rubyRuntime . getRubyName ( ) ; final String gemHomePath = rubyRuntime . getGemPath ( ) ; final String gemPath = RvmUtil . buildGemPath ( rvmInstallation . getGemsPath ( ) , rubyRuntime . getRubyName ( ) , rubyRuntime . getGemSetName ( ) ) ; final String rvmGemSetName = rubyRuntime . getGemSetName ( ) ; <START_BUG> final String rvmPathPrefix = RvmUtil . buildGemBinPath ( rvmInstallation . getGemsPath ( ) , rubyRuntime . getRubyName ( ) , rubyRuntime . getGemSetName ( ) ) ; <END_BUG> final String currentPath = StringUtils . defaultString ( currentEnv . get ( "PATH" ) , "" ) ; Map < String , String > envVars = Maps . newHashMap ( ) ; envVars . put ( MY_RUBY_HOME , rubyHomePath ) ; envVars . put ( GEM_HOME , gemHomePath ) ; envVars . put ( GEM_PATH , gemPath ) ; envVars . put ( BUNDLE_HOME , gemHomePath ) ; envVars . put ( RVM_GEM_SET , rvmGemSetName ) ; envVars . put ( RVM_RUBY_STRING , rubyName ) ; envVars . put ( PATH , ( ( rvmPathPrefix + ( File . pathSeparator ) ) + currentPath ) ) ; return envVars ; } @ Nullable public String searchForRubyExecutable ( String rubyRuntimeName , String name ) { } public RubyRuntime getRubyRuntime ( final String rubyName , final String gemSetName ) { } public RubyRuntime getRubyRuntime ( String rubyRuntimeName ) { } public List < RubyRuntime > listRubyRuntimes ( ) { } public boolean hasRuby ( String rubyNamePattern ) { } }

Fix:
final String rvmPathPrefix = RvmUtil . buildBinPath ( rvmInstallation . getRubiesPath ( ) , rvmInstallation . getGemsPath ( ) , rubyRuntime . getRubyName ( ) , rubyRuntime . getGemSetName ( ) ) ;
Buggy code:
class SourceMethod extends NamedMember implements IMethod { protected String [ ] fParameterTypes ; protected SourceMethod ( JavaElement parent , String name , String [ ] parameterTypes ) { } protected void closing ( Object info ) throws JavaModelException { } public boolean equals ( Object o ) { } protected boolean equalsDOMNode ( IDOMNode node ) { } public int getElementType ( ) { } public String [ ] getExceptionTypes ( ) throws JavaModelException { } protected void getHandleMemento ( StringBuffer buff ) { ( ( JavaElement ) ( getParent ( ) ) ) . getHandleMemento ( buff ) ; char delimiter = getHandleMementoDelimiter ( ) ; buff . append ( delimiter ) ; escapeMementoName ( buff , getElementName ( ) ) ; for ( int i = 0 ; i < ( fParameterTypes . length ) ; i ++ ) { buff . append ( delimiter ) ; <START_BUG> buff . append ( fParameterTypes [ i ] ) ; <END_BUG> } if ( ( this . occurrenceCount ) > 1 ) { buff . append ( JavaElement . JEM_COUNT ) ; buff . append ( this . occurrenceCount ) ; } } protected char getHandleMementoDelimiter ( ) { } public int getNumberOfParameters ( ) { } public String [ ] getParameterNames ( ) throws JavaModelException { } public String [ ] getParameterTypes ( ) { } public ITypeParameter getTypeParameter ( String typeParameterName ) { } public ITypeParameter [ ] getTypeParameters ( ) throws JavaModelException { } public String [ ] getTypeParameterSignatures ( ) throws JavaModelException { } public IJavaElement getPrimaryElement ( boolean checkOwner ) { } public String getReturnType ( ) throws JavaModelException { } public String getSignature ( ) throws JavaModelException { } public int hashCode ( ) { } public boolean isConstructor ( ) throws JavaModelException { } public boolean isMainMethod ( ) throws JavaModelException { } public boolean isSimilar ( IMethod method ) { } public String readableName ( ) { } protected boolean signatureEquals ( IDOMMethod method ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info ) { } protected void toStringName ( StringBuffer buffer ) { } }

Fix:
escapeMementoName ( buff , fParameterTypes [ i ] ) ;