nus-yam/ex-repair huggingface dataset:
Buggy code:
public class JSThingActionCompiler extends CommonThingActionCompiler { @ Override public void generate ( SendAction action , StringBuilder builder , Context ctx ) { } @ Override public void generate ( FunctionCallStatement action , StringBuilder builder , Context ctx ) { } @ Override public void generate ( LocalVariable action , StringBuilder builder , Context ctx ) { } @ Override public void generate ( ErrorAction action , StringBuilder builder , Context ctx ) { } @ Override public void generate ( PrintAction action , StringBuilder builder , Context ctx ) { } @ Override public void generate ( EventReference expression , StringBuilder builder , Context ctx ) { } @ Override public void generate ( PropertyReference expression , StringBuilder builder , Context ctx ) { } @ Override public void generate ( EnumLiteralRef expression , StringBuilder builder , Context ctx ) { <START_BUG> builder . append ( ( ( ( ( ( "Enum." + ( ctx . firstToUpper ( expression . getEnum ( ) . getName ( ) ) ) ) + "_ENUM." ) + ( ( ( ThingMLElement ) ( expression . getLiteral ( ) . eContainer ( ) ) ) . getName ( ) . toUpperCase ( ) ) ) + "_" ) + ( expression . getLiteral ( ) . getName ( ) . toUpperCase ( ) ) ) ) ; <END_BUG> } @ Override public void generate ( FunctionCallExpression expression , StringBuilder builder , Context ctx ) { } @ Override public void generate ( EqualsExpression expression , StringBuilder builder , Context ctx ) { } }

Fix:
builder . append ( ( ( ( "Enum." + ( ctx . firstToUpper ( expression . getEnum ( ) . getName ( ) ) ) ) + "_ENUM." ) + ( expression . getLiteral ( ) . getName ( ) . toUpperCase ( ) ) ) ) ;
Buggy code:
public class Table extends AbstractTable { private static final long serialVersionUID = 240L ; public Table ( ) { } <START_BUG> @ SuppressWarnings ( "unchecked" ) <END_BUG> @ Override public String [ ] [ ] getTableData ( List data ) { return new String [ 0 ] [ 0 ] ; } }

Fix:
@ SuppressWarnings ( "rawtypes" )
Buggy code:
class XidTransactionPrepareTask extends XidTransactionManagementTask { private static final Logger logger = Logger . getLogger ( XidTransactionPrepareTask . class ) ; XidTransactionPrepareTask ( final TransactionRequestHandler txRequestHandler , final EJBRemoteTransactionsRepository transactionsRepository , final MarshallerFactory marshallerFactory , final XidTransactionID xidTransactionID , final ChannelAssociation channelAssociation , final short invocationId ) { } @ Override public void run ( ) { } @ Override protected void manageTransaction ( ) throws Throwable { } private int prepareTransaction ( ) throws Throwable { <START_BUG> final Transaction transaction = this . transactionsRepository . removeTransaction ( this . xidTransactionID ) ; <END_BUG> if ( transaction == null ) { if ( EJB3_INVOCATION_LOGGER . isDebugEnabled ( ) ) { EJB3_INVOCATION_LOGGER . debug ( ( ( "Not<seq2seq4repair_space>preparing<seq2seq4repair_space>transaction<seq2seq4repair_space>" + ( this . xidTransactionID ) ) + "<seq2seq4repair_space>as<seq2seq4repair_space>is<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>server" ) ) ; } return XAResource . XA_OK ; } this . resumeTransaction ( transaction ) ; try { final Xid xid = this . xidTransactionID . getXid ( ) ; final SubordinateTransaction subordinateTransaction = SubordinationManager . getTransactionImporter ( ) . getImportedTransaction ( xid ) ; int result = subordinateTransaction . doPrepare ( ) ; switch ( result ) { case TwoPhaseOutcome . PREPARE_READONLY : SubordinationManager . getTransactionImporter ( ) . removeImportedTransaction ( xid ) ; return XAResource . XA_RDONLY ; case TwoPhaseOutcome . PREPARE_OK : return XAResource . XA_OK ; case TwoPhaseOutcome . PREPARE_NOTOK : Exception initCause = null ; int xaExceptionCode = XAException . XA_RBROLLBACK ; try { subordinateTransaction . doRollback ( ) ; } catch ( HeuristicCommitException e ) { initCause = e ; xaExceptionCode = XAException . XAER_RMERR ; } catch ( HeuristicMixedException e ) { initCause = e ; xaExceptionCode = XAException . XAER_RMERR ; } catch ( SystemException e ) { initCause = e ; xaExceptionCode = XAException . XAER_RMERR ; } catch ( final HeuristicRollbackException e ) { initCause = e ; xaExceptionCode = XAException . XAER_RMERR ; } SubordinationManager . getTransactionImporter ( ) . removeImportedTransaction ( xid ) ; final XAException xaException = new XAException ( xaExceptionCode ) ; if ( initCause != null ) { xaException . initCause ( initCause ) ; } throw xaException ; case TwoPhaseOutcome . INVALID_TRANSACTION : throw new XAException ( XAException . XAER_NOTA ) ; default : throw new XAException ( XAException . XA_RBOTHER ) ; } } finally { this . transactionsRepository . getTransactionManager ( ) . suspend ( ) ; } } }

Fix:
final Transaction transaction = this . transactionsRepository . getTransaction ( this . xidTransactionID ) ;
Buggy code:
public abstract class AbstractPageableView extends RefreshingView implements IPageable { private static final long serialVersionUID = 1L ; private int itemsPerPage = Integer . MAX_VALUE ; private int currentPage ; private int cachedItemCount ; public AbstractPageableView ( String id , IModel model ) { } public AbstractPageableView ( String id ) { } protected Iterator getItemModels ( ) { } protected void onBeforeRender ( ) { } protected abstract Iterator getItemModels ( int offset , int size ) { } private void clearCachedItemCount ( ) { } private void setCachedItemCount ( int itemCount ) { } private int getCachedItemCount ( ) { } private boolean isItemCountCached ( ) { } protected final int internalGetRowsPerPage ( ) { } protected final void internalSetRowsPerPage ( int items ) { } protected abstract int internalGetItemCount ( ) { } public final int getRowCount ( ) { } public final int getCurrentPage ( ) { } public final void setCurrentPage ( int page ) { <START_BUG> if ( ( page < 0 ) || ( ( page >= ( getPageCount ( ) ) ) && ( ( getPageCount ( ) ) > 0 ) ) ) { <END_BUG> throw new IndexOutOfBoundsException ( ( ( ( "argument<seq2seq4repair_space>[page]=" + page ) + ",<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>0<=page<" ) + ( getPageCount ( ) ) ) ) ; } if ( ( currentPage ) != page ) { if ( isVersioned ( ) ) { addStateChange ( new Change ( ) { private static final long serialVersionUID = 1L ; private final int old = currentPage ; public void undo ( ) { currentPage = old ; } public String toString ( ) { return ( ( ( "CurrentPageChange[component:<seq2seq4repair_space>" + ( getPath ( ) ) ) + ",<seq2seq4repair_space>currentPage:<seq2seq4repair_space>" ) + ( old ) ) + "]" ; } } ) ; } } currentPage = page ; } public final int getPageCount ( ) { } protected int getViewOffset ( ) { } protected int getViewSize ( ) { } private static class CappedIteratorAdapter implements Iterator { private final int max ; private int index ; private final Iterator delegate ; public CappedIteratorAdapter ( Iterator delegate , int max ) { } public void remove ( ) { } public boolean hasNext ( ) { } public Object next ( ) { } } }

Fix:
if ( ( page != 0 ) && ( ( page < 0 ) || ( ( page >= ( getPageCount ( ) ) ) && ( ( getPageCount ( ) ) > 0 ) ) ) ) {
Buggy code:
public class HomeDAOEBean implements HomeDAO { protected static final String TABLE = "hsp_home" ; private final ConfigCore configCore ; private final EbeanStorageUtil util ; private EbeanServer ebean ; public HomeDAOEBean ( final EbeanServer ebean , final ConfigCore configCore , final EbeanStorageUtil util ) { } public void setEbeanServer ( final EbeanServer ebean ) { } @ Override public Home findHomeById ( int id ) { } @ Override public Home findDefaultHome ( String world , String playerName ) { } @ Override public Home findBedHome ( String world , String playerName ) { } @ Override public Home findHomeByNameAndPlayer ( String homeName , String playerName ) { } @ Override public Set < ? extends Home > findHomesByWorldAndPlayer ( String world , String playerName ) { } public Set < ? extends Home > findHomesByPlayer ( String playerName ) { } @ Override public Set < ? extends Home > findAllHomes ( ) { } @ Override public void saveHome ( final Home homeArg ) { } @ Override public void deleteHome ( Home home ) { } @ Override public int purgePlayerData ( long purgeTime ) { } @ Override public int purgeWorldData ( final String world ) { } @ Override public int purgePlayer ( String playerName ) { <START_BUG> return util . deleteRows ( HomeDAOEBean . TABLE , "playerName" , playerName ) ; <END_BUG> } @ Override public Set < String > getAllPlayerNames ( ) { } }

Fix:
return util . deleteRows ( HomeDAOEBean . TABLE , "player_name" , playerName ) ;
Buggy code:
public class OCCZConnector extends OCConnector { private static final String GEOCODE_PREFIX = "OZ" ; public OCCZConnector ( ) { } @ Override @ Nullable public String getGeocodeFromUrl ( @ NonNull final String url ) { if ( ! ( StringUtils . containsIgnoreCase ( url , "opencaching.cz" ) ) ) { return null ; } final String id = StringUtils . substringAfter ( url , "cacheid=" ) ; try { <START_BUG> final String geocode = ( OCCZConnector . GEOCODE_PREFIX ) + ( StringUtils . leftPad ( Integer . toHexString ( Integer . valueOf ( id ) ) , 4 , '0' ) ) ; <END_BUG> if ( canHandle ( geocode ) ) { return geocode ; } } catch ( final NumberFormatException e ) { Log . e ( ( "Unexpected<seq2seq4repair_space>URL<seq2seq4repair_space>for<seq2seq4repair_space>opencaching.cz<seq2seq4repair_space>" + url ) ) ; } return super . getGeocodeFromUrl ( url ) ; } }

Fix:
final String geocode = ( OCCZConnector . GEOCODE_PREFIX ) + ( StringUtils . leftPad ( Integer . toHexString ( Integer . parseInt ( id ) ) , 4 , '0' ) ) ;
Buggy code:
public class YVM { protected OutputStream flux ; protected boolean error = false ; protected int indent = 0 ; protected int loopCounterName = - 1 ; protected Stack < Integer > loopDepthStack = new Stack < Integer > ( ) ; public YVM ( ) { } public YVM ( String name ) { } public String getFileExtension ( ) { } public void startLoop ( ) { } public void condLoop ( ) { } public void endLoop ( ) { int id = ( ( int ) ( loopDepthStack . pop ( ) ) ) ; jump ( ( ( "FAIRE" + id ) + "<seq2seq4repair_space>:" ) ) ; <START_BUG> Ecriture . ecrireStringln ( flux , ( ( "FAIT" + id ) + ":" ) , indent ) ; <END_BUG> ( indent ) -- ; } public void iadd ( ) { } public void isub ( ) { } public void imul ( ) { } public void idiv ( ) { } public void inot ( ) { } public void ineg ( ) { } public void iand ( ) { } public void ior ( ) { } public void iinf ( ) { } public void isup ( ) { } public void iinfegal ( ) { } public void isupegal ( ) { } public void iegal ( ) { } public void idiff ( ) { } public void iconst ( int valeur ) { } public void istore ( int offset ) { } public void iload ( int offset ) { } public void ifeq ( String etiquette ) { } public void iffaux ( String etiquette ) { } public void jump ( String etiquette ) { } public void entete ( ) { } public void ouvrePrinc ( int nbVar ) { } public void queue ( ) { } public void ecrireChaine ( String chaine ) { } public void ecrireEnt ( ) { } public void ecrireBool ( ) { } public void lireEnt ( int offset ) { } public void aLaLigne ( ) { } }

Fix:
Ecriture . ecrireStringln ( flux , ( ( "FAIT" + id ) + ":" ) ) ;
Buggy code:
public final class MessagingExtension implements Extension { private static final SubsystemFactory < MessagingSubsystemElement > FACTORY = new SubsystemFactory < MessagingSubsystemElement > ( ) { public MessagingSubsystemElement createSubsystemElement ( ) { } } ; public void initialize ( ExtensionContext context ) { <START_BUG> context . registerSubsystem ( MESSAGING_1_0 . getUriString ( ) , MessagingExtension . FACTORY , MessagingSubsystemParser . getInstance ( ) ) ; <END_BUG> } public void activate ( final ServiceActivatorContext context ) { } }

Fix:
context . registerSubsystem ( MESSAGING_1_0 . getUriString ( ) , MessagingSubsystemParser . getInstance ( ) ) ;
Buggy code:
public class MultiCategoryListsFacetsExample { private final Directory indexDir = new RAMDirectory ( ) ; private final Directory taxoDir = new RAMDirectory ( ) ; private final FacetsConfig config = new FacetsConfig ( ) ; public MultiCategoryListsFacetsExample ( ) { } private void index ( ) throws IOException { IndexWriter indexWriter = new IndexWriter ( indexDir , new org . apache . lucene . index . IndexWriterConfig ( FacetExamples . EXAMPLES_VER , new org . apache . lucene . analysis . core . WhitespaceAnalyzer ( FacetExamples . EXAMPLES_VER ) ) ) ; DirectoryTaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter ( taxoDir ) ; Document doc = new Document ( ) ; doc . add ( new FacetField ( "Author" , "Bob" ) ) ; doc . add ( new FacetField ( "Publish<seq2seq4repair_space>Date" , "2010" , "10" , "15" ) ) ; indexWriter . addDocument ( config . build ( taxoWriter , doc ) ) ; doc = new Document ( ) ; doc . add ( new FacetField ( "Author" , "Lisa" ) ) ; doc . add ( new FacetField ( "Publish<seq2seq4repair_space>Date" , "2010" , "10" , "20" ) ) ; indexWriter . addDocument ( config . build ( taxoWriter , doc ) ) ; doc = new Document ( ) ; doc . add ( new FacetField ( "Author" , "Lisa" ) ) ; doc . add ( new FacetField ( "Publish<seq2seq4repair_space>Date" , "2012" , "1" , "1" ) ) ; indexWriter . addDocument ( config . build ( taxoWriter , doc ) ) ; doc = new Document ( ) ; doc . add ( new FacetField ( "Author" , "Susan" ) ) ; doc . add ( new FacetField ( "Publish<seq2seq4repair_space>Date" , "2012" , "1" , "7" ) ) ; indexWriter . addDocument ( config . build ( taxoWriter , doc ) ) ; doc = new Document ( ) ; doc . add ( new FacetField ( "Author" , "Frank" ) ) ; doc . add ( new FacetField ( "Publish<seq2seq4repair_space>Date" , "1999" , "5" , "5" ) ) ; indexWriter . addDocument ( config . build ( taxoWriter , doc ) ) ; <START_BUG> indexWriter . close ( ) ; <END_BUG> taxoWriter . close ( ) ; } private List < FacetResult > search ( ) throws IOException { } public List < FacetResult > runSearch ( ) throws IOException { } public static void main ( String [ ] args ) throws Exception { } }

Fix:
indexWriter . shutdown ( ) ;
Buggy code:
public class GUIDeck extends GUIObject { private Deck deck ; private boolean isFaceUp = false ; public GUIDeck ( IntVector location , Deck deck , Type type ) { } @ Override protected void internalDraw ( Graphics g ) { IntVector offsetLocation = new IntVector ( location ) ; offsetLocation = offsetLocation . add ( DECK_OFFSET ) ; <START_BUG> Card bottomCard = new Card ( 1 , true ) ; <END_BUG> Card topCard = new Card ( deck . peek ( ) . value , isFaceUp ) ; Drawer . drawCard ( g , bottomCard , offsetLocation ) ; Drawer . drawCard ( g , topCard , location ) ; } public void setIsFaceUp ( boolean isFaceUp ) { } }

Fix:
Card bottomCard = new Card ( ( - 1 ) , true ) ;
Buggy code:
public class ExerciseContainer { private static final String SUPERSTAR_BADGE_NAME = "greattimedproblembadge" ; private final List < Exercise > superStarExercises = new ArrayList < Exercise > ( ) ; private final List < Exercise > proficientExercises = new ArrayList < Exercise > ( ) ; private final List < Exercise > reviewingExercises = new ArrayList < Exercise > ( ) ; private final List < Exercise > strugglingExercises = new ArrayList < Exercise > ( ) ; private final List < Exercise > inProgressExercises = new ArrayList < Exercise > ( ) ; private final List < Exercise > notStartedExercises = new ArrayList < Exercise > ( ) ; public ExerciseContainer ( final List < Exercise > exercises , final List < Badge > badges ) { } public List < Exercise > getInProgressExercises ( ) { } public List < Exercise > getNotStartedExercises ( ) { } public List < Exercise > getProficientExercises ( ) { } public List < Exercise > getReviewingExercises ( ) { } public List < Exercise > getStrugglingExercises ( ) { } private List < String > getSuperStarExerciseNames ( final List < Badge > badges ) { final List < String > superStarNames = new ArrayList < String > ( ) ; for ( final Badge badge : badges ) { final String badgeName = badge . getName ( ) ; <START_BUG> if ( badgeName . equals ( ExerciseContainer . SUPERSTAR_BADGE_NAME ) ) { <END_BUG> final List < UserBadge > userBadges = badge . getUserBadges ( ) ; if ( userBadges != null ) { for ( final UserBadge userBadge : userBadges ) { final TargetContext targetContext = userBadge . getTargetContext ( ) ; if ( ( targetContext != null ) && ( ( targetContext . getName ( ) ) != null ) ) { superStarNames . add ( targetContext . getName ( ) ) ; } } } break ; } } return superStarNames ; } public List < Exercise > getSuperStarExercises ( ) { } private void init ( final List < Exercise > exercises , final List < Badge > badges ) { } }

Fix:
if ( ExerciseContainer . SUPERSTAR_BADGE_NAME . equals ( badgeName ) ) {
Buggy code:
@ RunWith ( SpringJUnit4ClassRunner . class ) @ WebAppConfiguration @ ContextConfiguration ( "classpath:mvc-dispatcher-servlet.xml" ) public class TestMultipleCriteriaSearches { @ Autowired private WebApplicationContext wac ; private MockMvc mockMvc ; @ Before public void setup ( ) { } @ Test public void authorAndPages ( ) throws Exception { } @ Test public void authorAndYear ( ) throws Exception { <START_BUG> mockMvc . perform ( post ( "//suggestions?preference1=Author&preference2=Year&author=Kafka&maxYear=1920" ) ) . andExpect ( status ( ) . isOk ( ) ) . andExpect ( model ( ) . attribute ( "books" , Matchers . hasSize ( 22 ) ) ) ; <END_BUG> } No newline ; at end ; of file ; }

Fix:
mockMvc . perform ( post ( "//suggestions?preference1=Author&preference2=Years&author=Kafka&maxYear=1920" ) ) . andExpect ( status ( ) . isOk ( ) ) . andExpect ( model ( ) . attribute ( "books" , Matchers . hasSize ( 22 ) ) ) ;
Buggy code:
public class FormTagTests extends AbstractHtmlElementTagTests { private static final String REQUEST_URI = "//my//form" ; private static final String QUERY_STRING = "foo=bar" ; private FormTag tag ; private MockHttpServletRequest request ; @ Override @ SuppressWarnings ( "serial" ) protected void onSetUp ( ) { } @ Override protected void extendRequest ( MockHttpServletRequest request ) { } public void testWriteForm ( ) throws Exception { } public void testWithActionFromRequest ( ) throws Exception { } public void testPrependServletPath ( ) throws Exception { } public void testWithNullResolvedCommand ( ) throws Exception { try { <START_BUG> tag . setCommandName ( "${null}" ) ; <END_BUG> tag . doStartTag ( ) ; fail ( "Must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>able<seq2seq4repair_space>to<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>command<seq2seq4repair_space>name<seq2seq4repair_space>that<seq2seq4repair_space>resolves<seq2seq4repair_space>to<seq2seq4repair_space>null" ) ; } catch ( IllegalArgumentException ex ) { } } public void testXSSScriptingExploitWhenActionIsResolvedFromQueryString ( ) throws Exception { } public void testGet ( ) throws Exception { } public void testPost ( ) throws Exception { } public void testPut ( ) throws Exception { } public void testDelete ( ) throws Exception { } public void testCustomMethodParameter ( ) throws Exception { } public void testClearAttributesOnFinally ( ) throws Exception { } public void testRequestDataValueProcessorHooks ( ) throws Exception { } private String getFormTag ( String output ) { } private String getInputTag ( String output ) { } private static void assertFormTagOpened ( String output ) { } private static void assertFormTagClosed ( String output ) { } }

Fix:
tag . setCommandName ( null ) ;
Buggy code:
public class CacheMetricsHandler extends AbstractRuntimeOnlyHandler { public static final CacheMetricsHandler INSTANCE = new CacheMetricsHandler ( ) ; public enum CacheMetrics { CACHE_STATUS ( CacheResourceDefinition . CACHE_STATUS ) , NUMBER_OF_LOCKS_AVAILABLE ( LockingResource . NUMBER_OF_LOCKS_AVAILABLE ) , NUMBER_OF_LOCKS_HELD ( LockingResource . NUMBER_OF_LOCKS_HELD ) , CONCURRENCY_LEVEL ( LockingResource . CURRENT_CONCURRENCY_LEVEL ) , AVERAGE_READ_TIME ( CacheResourceDefinition . AVERAGE_READ_TIME ) , AVERAGE_WRITE_TIME ( CacheResourceDefinition . AVERAGE_WRITE_TIME ) , ELAPSED_TIME ( CacheResourceDefinition . ELAPSED_TIME ) , EVICTIONS ( EvictionResourceDefinition . EVICTIONS ) , HIT_RATIO ( CacheResourceDefinition . HIT_RATIO ) , HITS ( CacheResourceDefinition . HITS ) , MISSES ( CacheResourceDefinition . MISSES ) , NUMBER_OF_ENTRIES ( CacheResourceDefinition . NUMBER_OF_ENTRIES ) , READ_WRITE_RATIO ( CacheResourceDefinition . READ_WRITE_RATIO ) , REMOVE_HITS ( CacheResourceDefinition . REMOVE_HITS ) , REMOVE_MISSES ( CacheResourceDefinition . REMOVE_MISSES ) , STORES ( CacheResourceDefinition . STORES ) , TIME_SINCE_RESET ( CacheResourceDefinition . TIME_SINCE_RESET ) , AVERAGE_REPLICATION_TIME ( ClusteredCacheResourceDefinition . AVERAGE_REPLICATION_TIME ) , REPLICATION_COUNT ( ClusteredCacheResourceDefinition . REPLICATION_COUNT ) , REPLICATION_FAILURES ( ClusteredCacheResourceDefinition . REPLICATION_FAILURES ) , SUCCESS_RATIO ( ClusteredCacheResourceDefinition . SUCCESS_RATIO ) , COMMITS ( TransactionResourceDefinition . COMMITS ) , PREPARES ( TransactionResourceDefinition . PREPARES ) , ROLLBACKS ( TransactionResourceDefinition . ROLLBACKS ) , INVALIDATIONS ( CacheResourceDefinition . INVALIDATIONS ) , PASSIVATIONS ( CacheResourceDefinition . PASSIVATIONS ) , ACTIVATIONS ( CacheResourceDefinition . ACTIVATIONS ) , CACHE_LOADER_LOADS ( BaseStoreResourceDefinition . CACHE_LOADER_LOADS ) , CACHE_LOADER_MISSES ( BaseStoreResourceDefinition . CACHE_LOADER_MISSES ) ; private static final Map < String , CacheMetricsHandler . CacheMetrics > MAP = new HashMap < String , CacheMetricsHandler . CacheMetrics > ( ) ; final AttributeDefinition definition ; private CacheMetrics ( final AttributeDefinition definition ) { } @ Override public final String toString ( ) { } public static CacheMetricsHandler . CacheMetrics getStat ( final String stringForm ) { } } @ Override protected void executeRuntimeStep ( OperationContext context , ModelNode operation ) throws OperationFailedException { } private int getCacheContainerIndex ( PathAddress address ) { } private static < T extends CommandInterceptor > T getFirstInterceptorWhichExtends ( List < CommandInterceptor > interceptors , Class < T > interceptorClass ) { for ( CommandInterceptor interceptor : interceptors ) { boolean isSubclass = interceptorClass . isAssignableFrom ( interceptor . getClass ( ) ) ; if ( isSubclass ) { Collections . emptyList ( ) ; <START_BUG> return ( ( T ) ( interceptor ) ) ; <END_BUG> } } return null ; } }

Fix:
return interceptorClass . cast ( interceptor ) ;
Buggy code:
public class CurrAuctionActivity extends FragmentActivity implements ServerConnect . OnResponseListener { @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void loadData ( ) { FragmentTransaction ft = getSupportFragmentManager ( ) . beginTransaction ( ) ; Fragment aDashFrag = new ProgressFragment ( ) ; ft . add ( curr_auction_frame , aDashFrag , "ProgressAuction" ) ; ft . commit ( ) ; ServerConnect myServer = new ServerConnect ( this ) ; List < NameValuePair > nameValuePairs = new ArrayList < NameValuePair > ( ) ; <START_BUG> myServer . execute ( ( ( "http:////" + ( string . IP ) ) + "//Networks//CSL343_Networking_Errands//Server//getAllAuctions.php" ) , nameValuePairs ) ; <END_BUG> Log . e ( "AuctionActivity" , "Hi" ) ; Log . d ( "AuctionActivity" , "ProgressAuctionOpened" ) ; } private void showCurrAuctions ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override public void onResponse ( JSONArray j ) { } }

Fix:
myServer . execute ( ( ( "http:////" + ( getString ( IP ) ) ) + "//Networks//CSL343_Networking_Errands//Server//getAllAuctions.php" ) , nameValuePairs ) ;
Buggy code:
public class ShellSpout implements ISpout { public static Logger LOG = Logger . getLogger ( ShellSpout . class ) ; private SpoutOutputCollector _collector ; private String [ ] _command ; private ShellProcess _process ; public ShellSpout ( ShellComponent component ) { } public ShellSpout ( String ... command ) { } public void open ( Map stormConf , TopologyContext context , SpoutOutputCollector collector ) { _process = new ShellProcess ( _command ) ; _collector = collector ; try { Number subpid = _process . launch ( stormConf , context ) ; ShellSpout . LOG . info ( ( "Launched<seq2seq4repair_space>subprocess<seq2seq4repair_space>with<seq2seq4repair_space>pid<seq2seq4repair_space>" + subpid ) ) ; } catch ( IOException e ) { <START_BUG> throw new RuntimeException ( "Error<seq2seq4repair_space>when<seq2seq4repair_space>launching<seq2seq4repair_space>multilang<seq2seq4repair_space>subprocess" , e ) ; <END_BUG> } } public void close ( ) { } private JSONObject _next ; public void nextTuple ( ) { } private JSONObject _ack ; public void ack ( Object msgId ) { } private JSONObject _fail ; public void fail ( Object msgId ) { } private void querySubprocess ( Object query ) { } @ Override public void activate ( ) { } @ Override public void deactivate ( ) { } }

Fix:
throw new RuntimeException ( ( "Error<seq2seq4repair_space>when<seq2seq4repair_space>launching<seq2seq4repair_space>multilang<seq2seq4repair_space>subprocess\n" + ( _process . getErrorsString ( ) ) ) , e ) ;
Buggy code:
public class ChannelDao { private static final Logger logger = LoggerFactory . getLogger ( ChannelDao . class ) ; public static void insert ( Channel c ) throws FtdException { <START_BUG> String sql = "insert<seq2seq4repair_space>into<seq2seq4repair_space>channel<seq2seq4repair_space>values(?,?,?,?,?,?,?)" ; <END_BUG> DBClient dbClient = SysMgr . getInstance ( ) . getDbClient ( ) ; try { dbClient . executeUpdate ( sql , c . getChannelId ( ) , c . getParentChannelId ( ) , c . getChannelName ( ) , c . getChannelDesc ( ) , c . getChannelUrl ( ) , c . getIsNav ( ) , c . getReleaseId ( ) ) ; } catch ( SQLException e ) { throw new FtdException ( e , "db.sql.error" ) ; } } public static void delete ( int channelId ) throws FtdException { } public static void update ( Channel c ) throws FtdException { } public static void updateReleaseId ( int channelId , String releaseId ) throws FtdException { } public static void updateReleaseUrl ( int channelId , String releaseUrl ) throws FtdException { } public static void updateRedirectUrl ( int channelId , String redirectUrl ) throws FtdException { } public static List < Channel > selectAll ( ) throws FtdException { } }

Fix:
String sql = "insert<seq2seq4repair_space>into<seq2seq4repair_space>channel(channel_id,<seq2seq4repair_space>parent_channel_id,channel_name,channel_desc,channel_url,is_nav,release_id)<seq2seq4repair_space>values(?,?,?,?,?,?,?)" ;
Buggy code:
@ RequestMapping ( value = "//{coid}" , method = RequestMethod . GET ) public MomiaHttpResponse get ( @ PathVariable ( "coid" ) long courseId , @ RequestParam String pos , @ RequestParam ( required = false , defaultValue = "" + ( ShowType . BASE ) ) int type ) { Course course = courseService . get ( courseId ) ; <START_BUG> if ( ( ! ( course . exists ( ) ) ) || ( ( course . getStatus ( ) ) != 1 ) ) <END_BUG>

Fix:
if ( ! ( course . exists ( ) ) )
Buggy code:
public class Book { private String title ; private String author ; private String genre ; private int year ; private int edition ; private static int count ; private boolean onLoan ; private Date date ; User u = new User ( ) ; public Book ( ) { } public Book ( String title , String author , String genre , int year , int edition ) { } public void loanInfo ( User u ) { } public User getLoanInfo ( ) { } public int getBookID ( ) { } public String getBookTitle ( ) { } public String getBookAuthor ( ) { } public String getBookGenre ( ) { } public int getBookYear ( ) { } public int getBookEdition ( ) { } public void borrowed ( ) { } public void returned ( ) { } public boolean isBorrowed ( ) { } public void setDate ( Date d ) { } public Date getDate ( ) { } public boolean exceeds4Weeks ( ) { long start = System . currentTimeMillis ( ) ; long end = start + ( 2419200 * 1000 ) ; <START_BUG> while ( ( System . currentTimeMillis ( ) ) < end ) { <END_BUG> return false ; } return true ; } @ Override public String toString ( ) { } No newline ; at end ; of file ; }

Fix:
while ( start < end ) {
Buggy code:
public class TestRomanianAnalyzer extends BaseTokenStreamTestCase { public void testResourcesAvailable ( ) { } public void testBasics ( ) throws IOException { } public void testExclude ( ) throws IOException { } public void testRandomStrings ( ) throws Exception { <START_BUG> checkRandomData ( random ( ) , new RomanianAnalyzer ( TEST_VERSION_CURRENT ) , ( 10000 * ( RANDOM_MULTIPLIER ) ) ) ; <END_BUG> } }

Fix:
checkRandomData ( random ( ) , new RomanianAnalyzer ( TEST_VERSION_CURRENT ) , ( 1000 * ( RANDOM_MULTIPLIER ) ) ) ;
Buggy code:
public class PickPhotosActiviy extends AppCompatActivity implements PhotoView { Toolbar toolbar ; RecyclerView recyclerView ; TextView btn_category ; View mPopupAnchorView ; PhotoPresenterImpl photoresenter ; AlbumPopupWindow albumPopupWindow ; ThumbPhotoAdapter thumbPhotoAdapter ; private int spanCount ; private int colorPrimary ; private int maxPickSize ; private int pickMode ; private boolean showCamera ; private boolean supportPreview ; private boolean showGif ; private boolean useCursorLoader ; private Bundle bundle ; @ Override public void onCreate ( @ Nullable Bundle savedInstanceState ) { } private void initData ( ) { } private void initView ( ) { } public GridLayoutManager bindGridLayoutManager ( int spanCount ) { } private void loadPhoto ( ) { } OnItemClickListener onItemClickListener = new AdapterView . OnItemClickListener ( ) { @ Override public void onItemClick ( AdapterView < ? > adapterView , View view , int i , long l ) { } } ; @ Override public void onRequestPermissionsResult ( int requestCode , String [ ] permissions , int [ ] grantResults ) { super . onRequestPermissionsResult ( requestCode , permissions , grantResults ) ; if ( ( grantResults [ 0 ] ) == ( PackageManager . PERMISSION_GRANTED ) ) { <START_BUG> photoresenter . initialized ( ) ; <END_BUG> } else { String permission = permissions [ 0 ] ; boolean showRationale = ActivityCompat . shouldShowRequestPermissionRationale ( this , permission ) ; if ( ! showRationale ) { PermissionUtil . showAppSettingDialog ( this ) ; } } } @ Override public void showPhotosView ( List < PhotoDirectory > photoDirectories ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override public void showLoading ( String msg ) { } @ Override public void hideLoading ( ) { } @ Override public void showError ( String msg ) { } @ Override public void showException ( String msg ) { } }

Fix:
photoresenter . initialized ( useCursorLoader , bundle ) ;
Buggy code:
@ Component ( "ViewRepositoryCollection" ) public class ViewRepositoryCollection implements ManageableRepositoryCollection { public static final String NAME = "VIEW" ; private final SearchService searchService ; private final DataService dataService ; private final Map < String , ViewRepository > repositories = Maps . newLinkedHashMap ( ) ; @ Autowired public ViewRepositoryCollection ( SearchService searchService , DataService dataService ) { } @ Override public Repository addEntityMeta ( EntityMetaData entityMeta ) { <START_BUG> ViewRepository repo = new ViewRepository ( entityMeta , dataService , searchService ) ; <END_BUG> if ( ! ( searchService . hasMapping ( entityMeta ) ) ) repo . create ( ) ; repositories . put ( entityMeta . getName ( ) , repo ) ; return repo ; } @ Override public String getName ( ) { } @ Override public Iterable < String > getEntityNames ( ) { } @ Override public Repository getRepository ( String name ) { } @ Override public Iterator < Repository > iterator ( ) { } @ Override public void deleteEntityMeta ( String entityName ) { } @ Override public void addAttribute ( String entityName , AttributeMetaData attribute ) { } @ Override public void deleteAttribute ( String entityName , String attributeName ) { } @ Override public void addAttributeSync ( String entityName , AttributeMetaData attribute ) { } @ Override public boolean hasRepository ( String name ) { } }

Fix:
ViewRepository repo = new ViewRepository ( entityMeta , dataService ) ;
Buggy code:
public class RelationshipInterpreter extends Interpreter { private static WebsocketServer websocket = new WebsocketServer ( ) ; public RelationshipInterpreter ( Properties property ) { } @ Override public void open ( ) { } @ Override public void close ( ) { } @ Override public InterpreterResult interpret ( String st , InterpreterContext interpreterContext ) { InterpreterResult result = null ; String noteID = interpreterContext . getNoteId ( ) ; String paragraphID = interpreterContext . getParagraphId ( ) ; List < Table > tables = new ArrayList < Table > ( ) ; int count = 0 ; <START_BUG> int MAX = 6 ; <END_BUG> RelationshipInterpreter . websocket . broadcast ( ComUtils . toJson ( new WebsocketOutput ( noteID , paragraphID , "CLEAN" ) ) ) ; SQLContext sqlc = getSparkInterpreter ( ) . getSQLContext ( ) ; String [ ] names = sqlc . tableNames ( ) ; for ( String name : names ) if ( ( count ++ ) < MAX ) tables . add ( new Table ( name , sqlc . table ( name ) ) ) ; else break ; RelationshipInterpreter . websocket . broadcast ( ComUtils . toJson ( new spark . ibm . zeppelin . util . websocket . output . TableOutput ( noteID , paragraphID , tables ) ) ) ; RelationshipDiscovery . discorery ( st , interpreterContext , RelationshipInterpreter . websocket ) ; result = new InterpreterResult ( Code . SUCCESS ) ; return result ; } @ Override public void cancel ( InterpreterContext context ) { } @ Override public FormType getFormType ( ) { } @ Override public int getProgress ( InterpreterContext context ) { } @ Override public Scheduler getScheduler ( ) { } @ Override public List < String > completion ( String buf , int cursor ) { } private SparkInterpreter getSparkInterpreter ( ) { } No newline ; at end ; of file ; }

Fix:
int MAX = Integer . MAX_VALUE ;
Buggy code:
final class IDKey { private final Object value ; private final int id ; public IDKey ( final Object _value ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( final Object other ) { if ( ! ( other instanceof IDKey ) ) { return false ; } <START_BUG> IDKey idKey = ( ( IDKey ) ( other ) ) ; <END_BUG> if ( ( id ) != ( idKey . id ) ) { return false ; } return ( value ) == ( idKey . value ) ; } }

Fix:
final IDKey idKey = ( ( IDKey ) ( other ) ) ;
Buggy code:
@ ManagedBean @ SessionScoped public class UserController { private User user ; private int attempts ; private String msg ; private boolean logged ; public UserController ( ) { } public User getUser ( ) { } public void setUser ( User user ) { } public String getMsg ( ) { } public void setMsg ( String msg ) { } public String createUser ( ) { } public String login ( ) { } public String update ( ) { if ( user . update ( ) ) { <START_BUG> return "update.xhtml" ; <END_BUG> } return "error.xhtml" ; } private void sendEmail ( ) { } public void logoff ( ) { } public boolean isLogged ( ) { } }

Fix:
return "profile.xhtml" ;
Buggy code:
public class PumpStreamHandler implements ExecuteStreamHandler { private Thread outputThread ; private Thread errorThread ; private StreamPumper inputPump ; private OutputStream out ; private OutputStream err ; private InputStream input ; public PumpStreamHandler ( OutputStream out , OutputStream err , InputStream input ) { } public PumpStreamHandler ( OutputStream out , OutputStream err ) { } public PumpStreamHandler ( OutputStream outAndErr ) { } public PumpStreamHandler ( ) { } public void setProcessOutputStream ( InputStream is ) { } public void setProcessErrorStream ( InputStream is ) { } public void setProcessInputStream ( OutputStream os ) { } public void start ( ) { } public void stop ( ) { } private static final long JOIN_TIMEOUT = 500 ; protected final void finish ( Thread t ) { } protected OutputStream getErr ( ) { } protected OutputStream getOut ( ) { } protected void createProcessOutputPump ( InputStream is , OutputStream os ) { } protected void createProcessErrorPump ( InputStream is , OutputStream os ) { } protected Thread createPump ( InputStream is , OutputStream os ) { } protected Thread createPump ( InputStream is , OutputStream os , boolean closeWhenExhausted ) { <START_BUG> final Thread result = new PumpStreamHandler . ThreadWithPumper ( new StreamPumper ( is , os , closeWhenExhausted , Os . isFamily ( "windows" ) ) ) ; <END_BUG> result . setDaemon ( true ) ; return result ; } StreamPumper createInputPump ( InputStream is , OutputStream os , boolean closeWhenExhausted ) { } protected static class ThreadWithPumper extends Thread { private final StreamPumper pumper ; public ThreadWithPumper ( StreamPumper p ) { } protected StreamPumper getPumper ( ) { } } }

Fix:
final Thread result = new PumpStreamHandler . ThreadWithPumper ( new StreamPumper ( is , os , closeWhenExhausted , true ) ) ;
Buggy code:
public class ToolItem extends Item { NSView view ; NSButton button ; NSButton arrow ; int width = ToolItem . DEFAULT_SEPARATOR_WIDTH ; ToolBar parent ; Image hotImage ; Image disabledImage ; String toolTipText ; Control control ; boolean selection ; static final int DEFAULT_WIDTH = 24 ; static final int DEFAULT_HEIGHT = 22 ; static final int DEFAULT_SEPARATOR_WIDTH = 6 ; static final int INSET = 3 ; static final int ARROW_WIDTH = 5 ; public ToolItem ( ToolBar parent , int style ) { } public ToolItem ( ToolBar parent , int style , int index ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } Point computeSize ( ) { } void createHandle ( ) { } void deregister ( ) { } void destroyWidget ( ) { } void drawRect ( int id , NSRect rect ) { } void enableWidget ( boolean enabled ) { } public Rectangle getBounds ( ) { } public Control getControl ( ) { } public Image getDisabledImage ( ) { } public boolean getEnabled ( ) { } public Image getHotImage ( ) { } public ToolBar getParent ( ) { } public boolean getSelection ( ) { } public String getToolTipText ( ) { } public int getWidth ( ) { } public boolean isEnabled ( ) { } int menuForEvent ( int event ) { } void register ( ) { } void releaseParent ( ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } void selectRadio ( ) { } void sendArrowSelection ( ) { } void sendSelection ( ) { } void setBounds ( int x , int y , int width , int height ) { } public void setControl ( Control control ) { } public void setEnabled ( boolean enabled ) { } public void setDisabledImage ( Image image ) { } public void setHotImage ( Image image ) { } public void setImage ( Image image ) { } boolean setRadioSelection ( boolean value ) { } public void setSelection ( boolean selected ) { } public void setText ( String string ) { } public void setToolTipText ( String string ) { checkWidget ( ) ; toolTipText = string ; <START_BUG> view . setToolTip ( NSString . stringWith ( string ) ) ; <END_BUG> } void setVisible ( boolean visible ) { } public void setWidth ( int width ) { } void updateImage ( boolean layout ) { } }

Fix:
view . setToolTip ( ( string != null ? NSString . stringWith ( string ) : null ) ) ;
Buggy code:
public class base64 { private static final String Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+//=" ; private base64 ( ) { } public static String toString ( byte [ ] b ) { } public static String formatString ( byte [ ] b , int lineLength , String prefix , boolean addClose ) { } public static byte [ ] fromString ( String str ) { if ( ( ( str . length ( ) ) % 4 ) != 0 ) { return null ; } ByteArrayOutputStream bs = new ByteArrayOutputStream ( ) ; DataOutputStream ds = new DataOutputStream ( bs ) ; for ( int i = 0 ; i < ( ( ( str . length ( ) ) + 3 ) // 4 ) ; i ++ ) { short [ ] s = new short [ 4 ] ; short [ ] t = new short [ 3 ] ; for ( int j = 0 ; j < 4 ; j ++ ) s [ j ] = ( ( short ) ( base64 . Base64 . indexOf ( str . charAt ( ( ( i * 4 ) + j ) ) ) ) ) ; t [ 0 ] = ( ( short ) ( ( ( s [ 0 ] ) << 2 ) + ( ( s [ 1 ] ) > > 4 ) ) ) ; if ( ( s [ 2 ] ) == 64 ) { t [ 1 ] = t [ 2 ] = ( ( short ) ( - 1 ) ) ; if ( ( ( s [ 1 ] ) & 15 ) != 0 ) return null ; } else if ( ( s [ 3 ] ) == 64 ) { t [ 1 ] = ( ( short ) ( ( ( ( s [ 1 ] ) << 4 ) + ( ( s [ 2 ] ) > > 2 ) ) & 255 ) ) ; t [ 2 ] = ( ( short ) ( - 1 ) ) ; <START_BUG> if ( ( ( s [ 2 ] ) & 15 ) != 0 ) <END_BUG> return null ; } else { t [ 1 ] = ( ( short ) ( ( ( ( s [ 1 ] ) << 4 ) + ( ( s [ 2 ] ) > > 2 ) ) & 255 ) ) ; t [ 2 ] = ( ( short ) ( ( ( ( s [ 2 ] ) << 6 ) + ( s [ 3 ] ) ) & 255 ) ) ; } try { for ( int j = 0 ; j < 3 ; j ++ ) if ( ( t [ j ] ) >= 0 ) ds . writeByte ( t [ j ] ) ; } catch ( IOException e ) { } } return bs . toByteArray ( ) ; } }

Fix:
if ( ( ( s [ 2 ] ) & 3 ) != 0 )
Buggy code:
public abstract class MarkupContainer extends Component { private static final Log log = LogFactory . getLog ( MarkupContainer . class ) ; private Object children ; private transient MarkupStream markupStream ; public MarkupContainer ( final String id ) { } public MarkupContainer ( final String id , IModel model ) { } public MarkupContainer add ( final Component child ) { } public boolean autoAdd ( final Component component ) { } public final boolean contains ( final Component component , final boolean recurse ) { } public final Component get ( final String path ) { } public String getMarkupType ( ) { } public void internalAdd ( final Component child ) { } public void internalBeginRequest ( ) { } public void internalEndRequest ( ) { } public final Iterator iterator ( ) { } public final Iterator iterator ( Comparator comparator ) { } public void remove ( final Component component ) { } public void remove ( final String id ) { } public void removeAll ( ) { } public final void renderAssociatedMarkup ( final String openTagName , final String exceptionMessage ) { } public MarkupContainer replace ( final Component child ) { } public Component setModel ( final IModel model ) { } public final int size ( ) { } public String toString ( ) { } public String toString ( final boolean detailed ) { } public final Object visitChildren ( final Class c , final IVisitor visitor ) { } public final Object visitChildren ( final IVisitor visitor ) { } protected final MarkupStream findMarkupStream ( ) { } protected final MarkupStream getAssociatedMarkupStream ( ) { } protected MarkupStream getMarkupStream ( ) { } protected void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } protected void onRender ( ) { } protected void renderAll ( final MarkupStream markupStream ) { } protected final void renderComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } protected final void setMarkupStream ( final MarkupStream markupStream ) { if ( ( ( ( this ) instanceof Page ) && ( markupStream != null ) ) && ( ( markupStream . equalMarkup ( this . markupStream ) ) == false ) ) { if ( ( getPage ( ) ) != null ) { <START_BUG> getPage ( ) . setRequiresFullRender ( true ) ; <END_BUG> } } this . markupStream = markupStream ; } final boolean hasAssociatedMarkup ( ) { } private final void addedComponent ( final Component component ) { } private final void children_add ( final Component child ) { } private final Component children_get ( int index ) { } private final Component children_get ( final String id ) { } private final int children_indexOf ( Component child ) { } private final Component children_remove ( Component component ) { } private final Component children_remove ( int index ) { } private final Component children_set ( int index , Component child ) { } private final int children_size ( ) { } private final Component put ( final Component child ) { } private final void removedComponent ( final Component component ) { } private final void renderNext ( final MarkupStream markupStream ) { } }

Fix:
getPage ( ) . setAllowReRender ( false ) ;
Buggy code:
public class InstanceFieldGet extends Expression { public final Expression target ; public final String fieldName ; public InstanceFieldGet ( Expression target , String fieldName ) { } FieldDef getField ( CodeContext ctx ) { Type targetType = target . inferType ( ctx ) ; Set < FieldDef > options = new HashSet < FieldDef > ( ) ; for ( ParameterizedType concreteSuper : targetType . getConcreteSupertypes ( ctx . type , ctx . method ) ) try { TypeDef superDef = singleton . resolve ( concreteSuper . rawType ) ; options . add ( superDef . getInstanceField ( fieldName ) ) ; } catch ( NoSuchElementException e ) { } if ( options . isEmpty ( ) ) <START_BUG> throw new NoSuchElementException ( String . format ( "%s<seq2seq4repair_space>has<seq2seq4repair_space>no<seq2seq4repair_space>field<seq2seq4repair_space>'%s'.<seq2seq4repair_space>Its<seq2seq4repair_space>type<seq2seq4repair_space>is<seq2seq4repair_space>%s." , target , fieldName , target . inferType ( ctx ) ) ) ; <END_BUG> if ( ( options . size ( ) ) > 1 ) throw new NiftyException ( "%s<seq2seq4repair_space>inherits<seq2seq4repair_space>multiple<seq2seq4repair_space>fields<seq2seq4repair_space>named<seq2seq4repair_space>%s" , target , fieldName ) ; return options . iterator ( ) . next ( ) ; } @ Override public Type inferType ( CodeContext ctx ) { } @ Override public CodeTree compile ( CodeContext ctx ) { } @ Override public String toString ( ) { } }

Fix:
throw new NoSuchElementException ( String . format ( "%s<seq2seq4repair_space>has<seq2seq4repair_space>no<seq2seq4repair_space>field<seq2seq4repair_space>'%s'.<seq2seq4repair_space>Its<seq2seq4repair_space>type<seq2seq4repair_space>is<seq2seq4repair_space>%s." , target , fieldName , targetType ) ) ;