nus-yam/ex-repair huggingface dataset:
Buggy code:
public class ReadTransformedResourceOperation implements OperationStepHandler { private final ParametersValidator validator = new ParametersValidator ( ) ; public static DescriptionProvider DESCRIPTION = new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { } } ; private final TransformerRegistry transformerRegistry ; public ReadTransformedResourceOperation ( final TransformerRegistry transformerRegistry ) { } private ModelNode transformReadResourceResult ( final OperationContext context , ModelNode original , String subsystem , final ModelVersion version ) throws OperationFailedException { ModelNode rootData = original . get ( RESULT ) ; Map < PathAddress , ModelVersion > subsystemVersions = new HashMap < PathAddress , ModelVersion > ( ) ; subsystemVersions . put ( EMPTY_ADDRESS . append ( SUBSYSTEM , subsystem ) , version ) ; <START_BUG> final TransformationTarget target = TransformationTargetImpl . create ( transformerRegistry , ModelVersion . create ( 1 , 0 , 0 ) , subsystemVersions , SERVER ) ; <END_BUG> final Transformers transformers = Factory . create ( target ) ; final ResourceTransformationContext ctx = Factory . getTransformationContext ( target , context ) ; final ImmutableManagementResourceRegistration rr = context . getRootResourceRegistration ( ) ; Resource root = TransformerRegistry . modelToResource ( rr , rootData , true ) ; Resource transformed = transformers . transformResource ( ctx , root ) ; final ModelNode model = Tools . readModel ( transformed ) ; return model ; } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } }

Fix:
final TransformationTarget target = TransformationTargetImpl . create ( transformerRegistry , ModelVersion . create ( 1 , 0 , 0 ) , subsystemVersions , null , SERVER ) ;
Buggy code:
public class DecisionTree { static class Node { private String value ; private int index ; private List < DecisionTree . Node > children ; Node ( int index , String value ) { } public void addChild ( DecisionTree . Node child ) { } } private static Map < String , String > ops = new HashMap < > ( ) ; private static boolean header ; private static String delim = "<seq2seq4repair_space>" ; private static int where = 0 ; private static boolean timeThis ; private static File trainingSet ; private static File testingSet ; private static DecisionTree . Node root ; private static final int ROOT = - 2 ; public static void train ( ) throws IOException { List < ArrayList < String > > D = new ArrayList < > ( ) ; BufferedReader br = new BufferedReader ( new FileReader ( DecisionTree . trainingSet ) ) ; String line ; if ( DecisionTree . header ) br . readLine ( ) ; while ( ( line = br . readLine ( ) ) != null ) { ArrayList < String > row = new ArrayList < > ( Arrays . asList ( line . split ( DecisionTree . delim ) ) ) ; if ( ( DecisionTree . where ) != 0 ) Collections . swap ( row , DecisionTree . where , 0 ) ; <START_BUG> D . add ( new ArrayList < > ( Arrays . asList ( line . split ( DecisionTree . delim ) ) ) ) ; <END_BUG> } DecisionTree . root = new DecisionTree . Node ( DecisionTree . ROOT , "" ) ; DecisionTree . generateTree ( D , DecisionTree . root ) ; } public static void generateTree ( List < ArrayList < String > > D , DecisionTree . Node parent ) { } public static void test ( File outFile ) throws IOException { } public static String expectedClass ( List < ArrayList < String > > D ) { } public static double entropy ( List < ArrayList < String > > D ) { } public static double information ( List < ArrayList < String > > D , int featureIdx ) { } public static Map < String , Double > calcPriorProbs ( List < ArrayList < String > > D ) { } public static double log ( double x , int base ) { } public static void setUpOps ( ) { } public static void parseOps ( String [ ] args ) { } public static void main ( String [ ] args ) throws IOException { } }

Fix:
D . add ( row ) ;
Buggy code:
public class RolloutPlanTestCase extends AbstractCliTestBase { private static File warFile ; private static final int TEST_PORT = 8081 ; private static final String [ ] serverGroups = new String [ ] { "main-server-group" , "other-server-group" , "test-server-group" } ; @ BeforeClass public static void before ( ) throws Exception { } @ AfterClass public static void after ( ) throws Exception { } @ After public void afterTest ( ) throws Exception { } @ Test public void testInSeriesRolloutPlan ( ) throws Exception { } @ Test public void testMaxFailServersRolloutPlan ( ) throws Exception { } @ Test public void testMaxFailServersPercentageRolloutPlan ( ) throws Exception { } @ Test public void testRollbackAcrossGroupsRolloutPlan ( ) throws Exception { } private CLIOpResult testAddConnector ( String rolloutPlanId ) throws Exception { } private CLIOpResult testRemoveConnector ( String rolloutPlanId ) throws Exception { } private void testCleanupConnector ( String rolloutPlanId ) throws Exception { } private boolean getServerStatus ( String serverName , CLIOpResult result ) throws Exception { } private static String checkURL ( String server , boolean shouldFail ) throws Exception { } private static String checkURL ( String server , boolean shouldFail , String path ) throws Exception { String address = hostAddresses . get ( RolloutPlanTestCase . getServerHost ( server ) ) ; Integer portOffset = portOffsets . get ( server ) ; URL url = new URL ( "http" , address , ( 8080 + portOffset ) , path ) ; boolean failed = false ; String response = null ; try { <START_BUG> response = HttpRequest . get ( url . toString ( ) , 10 , TimeUnit . SECONDS ) ; <END_BUG> } catch ( Exception e ) { failed = true ; if ( ! shouldFail ) throw new Exception ( "Http<seq2seq4repair_space>request<seq2seq4repair_space>failed." , e ) ; } if ( shouldFail ) Assert . assertTrue ( failed ) ; return response ; } private static String getServerHost ( String server ) { } private static void waitUntilState ( final String serverName , final String state ) throws TimeoutException { } private static class NoResponseException extends Exception { private static final long serialVersionUID = 1L ; private NoResponseException ( String serverName ) { } } }

Fix:
response = HttpRequest . get ( url . toString ( ) , 60 , TimeUnit . SECONDS ) ;
Buggy code:
public class LocalizedFormatsTest { @ Test public void testMessageNumber ( ) { <START_BUG> Assert . assertEquals ( 315 , LocalizedFormats . values ( ) . length ) ; <END_BUG> } @ Test public void testAllKeysPresentInPropertiesFiles ( ) { } @ Test public void testAllPropertiesCorrespondToKeys ( ) { } @ Test public void testNoMissingFrenchTranslation ( ) { } @ Test public void testNoOpEnglishTranslation ( ) { } @ Test public void testVariablePartsConsistency ( ) { } }

Fix:
Assert . assertEquals ( 316 , LocalizedFormats . values ( ) . length ) ;
Buggy code:
public class InfinispanSubsystemTestCase extends ClusteringSubsystemTest { public InfinispanSubsystemTestCase ( ) { } @ Override protected ValidationConfiguration getModelValidationConfiguration ( ) { } @ Test public void testParseSubsystem ( ) throws Exception { List < ModelNode > operations = super . parse ( getSubsystemXml ( ) ) ; <START_BUG> Assert . assertEquals ( 9 , operations . size ( ) ) ; <END_BUG> ModelNode addSubsystem = operations . get ( 0 ) ; Assert . assertEquals ( ADD , addSubsystem . get ( OP ) . asString ( ) ) ; PathAddress addr = PathAddress . pathAddress ( addSubsystem . get ( OP_ADDR ) ) ; Assert . assertEquals ( 1 , addr . size ( ) ) ; PathElement element = addr . getElement ( 0 ) ; Assert . assertEquals ( SUBSYSTEM , element . getKey ( ) ) ; Assert . assertEquals ( getMainSubsystemName ( ) , element . getValue ( ) ) ; } @ Test public void testInstallIntoController ( ) throws Exception { } @ Test public void testParseAndMarshalModel ( ) throws Exception { } @ Test public void testDescribeHandler ( ) throws Exception { } }

Fix:
Assert . assertEquals ( 11 , operations . size ( ) ) ;
Buggy code:
public class PmLocalizeApi { private static PmLocalizeApiHandler apiHandler = new PmLocalizeApiHandler ( ) ; public static String findLocalization ( PmObject pm , String key , Object ... resStringArgs ) { } public static String localize ( PmObject pm , String key , Object ... resStringArgs ) { <START_BUG> return PmLocalizeApi . apiHandler . findLocalization ( ( ( PmObjectBase ) ( pm ) ) , key , resStringArgs ) ; <END_BUG> } public static String localizeOneOrMany ( PmObject pm , String keybase , int number , Object ... resArgs ) { } public static String localizeOneOrMany ( PmObject pm , int number , Object ... resArgs ) { } public static String findLocalizationWithPfx ( PmObject pm , String key , Object ... resStringArgs ) { } public static String localizeWithPfx ( PmObject pm , String key , Object ... resStringArgs ) { } public static void setResourceStringProvider ( ResourceStringProvider resourceStringProvider ) { } }

Fix:
return PmLocalizeApi . apiHandler . localize ( ( ( PmObjectBase ) ( pm ) ) , key , resStringArgs ) ;
Buggy code:
public class NodeEnvironmentTests extends ElasticsearchTestCase { private final Settings idxSettings = ImmutableSettings . builder ( ) . put ( SETTING_NUMBER_OF_SHARDS , 1 ) . build ( ) ; @ Test public void testNodeLockSingleEnvironment ( ) throws IOException { } @ Test public void testNodeLockMultipleEnvironment ( ) throws IOException { } @ Test public void testShardLock ( ) throws IOException { Settings envSettings = nodeEnvSettings ( tmpPaths ( ) ) ; NodeEnvironment env = new NodeEnvironment ( envSettings , new Environment ( envSettings ) ) ; ShardLock fooLock = env . shardLock ( new ShardId ( "foo" , 0 ) ) ; assertEquals ( new ShardId ( "foo" , 0 ) , fooLock . getShardId ( ) ) ; try { env . shardLock ( new ShardId ( "foo" , 0 ) ) ; fail ( "shard<seq2seq4repair_space>is<seq2seq4repair_space>locked" ) ; } catch ( LockObtainFailedException ex ) { } for ( Path path : env . indexPaths ( new Index ( "foo" ) ) ) { Files . createDirectories ( path . resolve ( "0" ) ) ; Files . createDirectories ( path . resolve ( "1" ) ) ; } Settings settings = settingsBuilder ( ) . put ( IndexMetaData . SETTING_NUMBER_OF_SHARDS , randomIntBetween ( 1 , 10 ) ) . build ( ) ; try { env . lockAllForIndex ( new Index ( "foo" ) , settings , randomIntBetween ( 0 , 10 ) ) ; fail ( "shard<seq2seq4repair_space>0<seq2seq4repair_space>is<seq2seq4repair_space>locked" ) ; } catch ( LockObtainFailedException ex ) { } fooLock . close ( ) ; env . shardLock ( new ShardId ( "foo" , 0 ) ) . close ( ) ; List < ShardLock > locks = env . lockAllForIndex ( new Index ( "foo" ) , settings , randomIntBetween ( 0 , 10 ) ) ; try { <START_BUG> env . shardLock ( new ShardId ( "foo" , randomIntBetween ( 0 , 1 ) ) ) ; <END_BUG> fail ( "shard<seq2seq4repair_space>is<seq2seq4repair_space>locked" ) ; } catch ( LockObtainFailedException ex ) { } IOUtils . close ( locks ) ; assertTrue ( ( "LockedShards:<seq2seq4repair_space>" + ( env . lockedShards ( ) ) ) , env . lockedShards ( ) . isEmpty ( ) ) ; env . close ( ) ; } @ Test public void testGetAllIndices ( ) throws Exception { } @ Test public void testDeleteSafe ( ) throws IOException , InterruptedException { } @ Test public void testGetAllShards ( ) throws Exception { } @ Test public void testStressShardLock ( ) throws IOException , InterruptedException { } @ Test public void testCustomDataPaths ( ) throws Exception { } private Settings nodeEnvSettings ( String [ ] dataPaths ) { } private Path [ ] stringsToPaths ( String [ ] strings , String additional ) { } public String [ ] tmpPaths ( ) { } public NodeEnvironment newNodeEnvironment ( ) throws IOException { } public NodeEnvironment newNodeEnvironment ( Settings settings ) throws IOException { } public NodeEnvironment newNodeEnvironment ( String [ ] dataPaths , Settings settings ) throws IOException { } }

Fix:
env . shardLock ( new ShardId ( "foo" , 0 ) ) ;
Buggy code:
public final class RAImageIngestService implements IngestServiceImage { private static final Logger logger = Logger . getLogger ( RAImageIngestService . class . getName ( ) ) ; private static RAImageIngestService defaultInstance = null ; private IngestManagerProxy managerProxy ; private static int messageId = 0 ; public RAImageIngestService ( ) { } public static synchronized RAImageIngestService getDefault ( ) { } @ Override public void process ( Image image , IngestImageWorkerController controller ) { managerProxy . postMessage ( IngestMessage . createMessage ( ( ++ ( RAImageIngestService . messageId ) ) , INFO , this , ( "Started<seq2seq4repair_space>" + ( image . getName ( ) ) ) ) ) ; ExtractAll ext = new ExtractAll ( ) ; Case currentCase = Case . getCurrentCase ( ) ; SleuthkitCase sCurrentCase = currentCase . getSleuthkitCase ( ) ; Collection < FileSystem > imageFS = sCurrentCase . getFileSystems ( image ) ; List < String > fsIds = new LinkedList < String > ( ) ; for ( FileSystem img : imageFS ) { Long tempID = img . getId ( ) ; fsIds . add ( tempID . toString ( ) ) ; } try { ext . extractToBlackboard ( controller , fsIds ) ; } catch ( Exception e ) { RAImageIngestService . logger . log ( Level . SEVERE , "Error<seq2seq4repair_space>extracting<seq2seq4repair_space>recent<seq2seq4repair_space>activity" , e ) ; <START_BUG> managerProxy . postMessage ( IngestMessage . createErrorMessage ( ( ++ ( RAImageIngestService . messageId ) ) , this , "Error<seq2seq4repair_space>extracting<seq2seq4repair_space>recent<seq2seq4repair_space>activity<seq2seq4repair_space>data" ) ) ; <END_BUG> } } @ Override public void complete ( ) { } @ Override public String getName ( ) { } @ Override public void init ( IngestManagerProxy managerProxy ) { } @ Override public void stop ( ) { } @ Override public ServiceType getType ( ) { } @ Override public void userConfigure ( ) { } @ Override public boolean isConfigurable ( ) { } @ Override public boolean hasBackgroundJobsRunning ( ) { } }

Fix:
managerProxy . postMessage ( IngestMessage . createErrorMessage ( ( ++ ( RAImageIngestService . messageId ) ) , this , "Error<seq2seq4repair_space>extracting<seq2seq4repair_space>recent<seq2seq4repair_space>activity<seq2seq4repair_space>data" , null ) ) ;
Buggy code:
public class TestDocValuesIndexing extends LuceneTestCase { public void testDocValuesSimple ( ) throws IOException { } public void testIndexBytesNoDeletes ( ) throws IOException { } public void testIndexBytesDeletes ( ) throws IOException { } public void testIndexNumericsNoDeletes ( ) throws IOException { } public void testIndexNumericsDeletes ( ) throws IOException { } public void testAddIndexes ( ) throws IOException { } public void testAddIndexesRandom ( ) throws IOException { } private IndexWriterConfig writerConfig ( boolean useCompoundFile ) { } @ SuppressWarnings ( "fallthrough" ) public void runTestNumerics ( IndexWriterConfig cfg , boolean withDeletions ) throws IOException { } public void runTestIndexBytes ( IndexWriterConfig cfg , boolean withDeletions ) throws IOException { } public void testGetArrayNumerics ( ) throws IOException { } public void testGetArrayBytes ( ) throws IOException { } private DocValues getDocValues ( IndexReader reader , String field ) throws IOException { } @ SuppressWarnings ( "fallthrough" ) private Source getSource ( DocValues values ) throws IOException { } private static EnumSet < Type > BYTES = EnumSet . of ( BYTES_FIXED_DEREF , BYTES_FIXED_STRAIGHT , BYTES_VAR_DEREF , BYTES_VAR_STRAIGHT , BYTES_FIXED_SORTED , BYTES_VAR_SORTED ) ; private static EnumSet < Type > NUMERICS = EnumSet . of ( VAR_INTS , FIXED_INTS_16 , FIXED_INTS_32 , FIXED_INTS_64 , FIXED_INTS_8 , FLOAT_32 , FLOAT_64 ) ; private FixedBitSet indexValues ( IndexWriter w , int numValues , Type valueType , List < Type > valueVarList , boolean withDeletions , int bytesSize ) throws IOException { } public void testMultiValuedDocValuesField ( ) throws Exception { } public void testDifferentTypedDocValuesField ( ) throws Exception { } public void testSortedBytes ( ) throws IOException { } public int docId ( AtomicReader reader , Term term ) throws IOException { int docFreq = reader . docFreq ( term ) ; assertEquals ( 1 , docFreq ) ; <START_BUG> DocsEnum termDocsEnum = reader . termDocsEnum ( null , term . field , term . bytes , false ) ; <END_BUG> int nextDoc = termDocsEnum . nextDoc ( ) ; assertEquals ( NO_MORE_DOCS , termDocsEnum . nextDoc ( ) ) ; return nextDoc ; } public void testWithThreads ( ) throws Exception { } public void testLengthPrefixAcrossTwoPages ( ) throws Exception { } }

Fix:
DocsEnum termDocsEnum = reader . termDocsEnum ( null , term . field , term . bytes , 0 ) ;
Buggy code:
public abstract class ListView extends WebMarkupContainer { private static Log log = LogFactory . getLog ( ListView . class ) ; private int viewSize = Integer . MAX_VALUE ; private int firstIndex = 0 ; public ListView ( final String id , IModel model ) { } public ListView ( final String id , List list ) { } public final List getList ( ) { } public final int getStartIndex ( ) { } public int getViewSize ( ) { } public ListView setStartIndex ( final int startIndex ) { } public ListView setViewSize ( final int size ) { } protected Serializable getListObject ( final int index ) { } protected void onRender ( ) { removeAll ( ) ; final MarkupStream markupStream = findMarkupStream ( ) ; final int markupStart = markupStream . getCurrentIndex ( ) ; final int size = getViewSize ( ) ; if ( size > 0 ) { for ( int i = 0 ; i < size ; i ++ ) { int lastIndex = ( firstIndex ) + i ; final String id = Integer . toString ( lastIndex ) ; ListItem listItem = ( ( ListItem ) ( get ( id ) ) ) ; if ( listItem == null ) { listItem = newItem ( lastIndex ) ; populateItem ( listItem ) ; add ( listItem ) ; } if ( listItem . isVisible ( ) ) { markupStream . setCurrentIndex ( markupStart ) ; <START_BUG> renderItem ( listItem , ( i >= ( size - 1 ) ) ) ; <END_BUG> } } } else { markupStream . skipComponent ( ) ; } } protected ListItem newItem ( final int index ) { } protected abstract void populateItem ( final ListItem listItem ) { } protected void renderItem ( final ListItem listItem , final boolean lastItem ) { } }

Fix:
renderItem ( listItem , ( i == ( size - 1 ) ) ) ;
Buggy code:
public class CareerMenu extends Activity { Button goal ; Button jobApp ; Button compInfo ; Button eId ; Button contact ; Boolean newUser = false ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_career_menu ) ; getActionBar ( ) . setDisplayHomeAsUpEnabled ( false ) ; Intent intent = getIntent ( ) ; newUser = intent . getBooleanExtra ( "newUser" , false ) ; goal = ( ( Button ) ( findViewById ( button_goal ) ) ) ; jobApp = ( ( Button ) ( findViewById ( button_jobApp ) ) ) ; compInfo = ( ( Button ) ( findViewById ( button_compInfo ) ) ) ; eId = ( ( Button ) ( findViewById ( button_eId ) ) ) ; contact = ( ( Button ) ( findViewById ( button_contact ) ) ) ; goal . setOnClickListener ( new OnClickListener ( ) { public void onClick ( View v ) { if ( newUser ) { ParseObject careerGoal = new ParseObject ( "careerGoal" ) ; careerGoal . put ( "Owner" , ParseUser . getCurrentUser ( ) ) ; <START_BUG> careerGoal . put ( "goalName" , "AddYourGoalHere" ) ; <END_BUG> careerGoal . put ( "goalType" , "None" ) ; careerGoal . put ( "goalDate" , "None" ) ; careerGoal . saveInBackground ( ) ; Intent i = new Intent ( CareerMenu . this , CareerGoal . class ) ; startActivity ( i ) ; } else { Intent i = new Intent ( CareerMenu . this , CareerGoal . class ) ; startActivity ( i ) ; } } } ) ; jobApp . setOnClickListener ( new OnClickListener ( ) { public void onClick ( View v ) { Intent i = new Intent ( CareerMenu . this , CareerJobApp . class ) ; startActivity ( i ) ; } } ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
careerGoal . put ( "goalName" , "None" ) ;
Buggy code:
public class JdbcService { private DataSource dataSource ; public JdbcService ( DataSource dataSource ) { } public < T > T executeQuery ( SqlOperation query , ResultSetExtractor < T > resultSetExtractor ) throws SQLException { } public < T > T executeQueryByCursor ( SqlOperation query , ResultSetExtractor < T > resultSetExtractor ) throws SQLException { } public int executeUpdate ( SqlOperation update ) throws SQLException { } public void executeBatchUpdate ( BatchUpdate update ) throws SQLException { try ( Connection connection = dataSource . getConnection ( ) ; PreparedStatement statement = connection . prepareStatement ( update . getRawSql ( ) ) ) { connection . setAutoCommit ( false ) ; int i = 0 ; while ( update . hasNext ( ) ) { update . prepare ( statement ) ; statement . addBatch ( ) ; <START_BUG> if ( ( ( i + 1 ) % ( update . executeBatchEvery ( ) ) ) == 0 ) { <END_BUG> statement . executeBatch ( ) ; } } statement . executeBatch ( ) ; connection . setAutoCommit ( true ) ; } } }

Fix:
if ( ( ( ( i ++ ) + 1 ) % ( update . executeBatchEvery ( ) ) ) == 0 ) {
Buggy code:
public class RecoveryTest extends CompilerTest { @ Test public void testRcvBrokenClass ( ) { } @ Test public void testRcvBrokenMethod ( ) { } @ Test public void testRcvBrokenAttribute ( ) { } @ Test public void testRcvClassWithBrokenMembers ( ) { <START_BUG> compile ( "ClassWithBrokenMembers.ceylon" , 33 ) ; <END_BUG> } private void compile ( String ceylon , int expectedErrors ) { } private int getErrorCount ( DiagnosticCollector < JavaFileObject > errorCollector ) { } No newline ; at end ; of file ; }

Fix:
compile ( "ClassWithBrokenMembers.ceylon" , 35 ) ;
Buggy code:
public class SynchronizedStatement extends SubRoutineStatement { public Expression expression ; public Block block ; public BlockScope scope ; boolean blockExit ; public LocalVariableBinding synchroVariable ; static final char [ ] SecretLocalDeclarationName = "<seq2seq4repair_space>syncValue" . toCharArray ( ) ; public SynchronizedStatement ( Expression expression , Block statement , int s , int e ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public boolean isSubRoutineEscaping ( ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { <START_BUG> if ( ( ( bits ) & ( IsReachableMASK ) ) == 0 ) { <END_BUG> return ; } if ( ( this . anyExceptionLabelsCount ) > 0 ) { this . anyExceptionLabels = NO_EXCEPTION_HANDLER ; this . anyExceptionLabelsCount = 0 ; } int pc = codeStream . position ; expression . generateCode ( scope , codeStream , true ) ; if ( block . isEmptyBlock ( ) ) { if ( ( ( synchroVariable . type ) == ( LongBinding ) ) || ( ( synchroVariable . type ) == ( DoubleBinding ) ) ) { codeStream . dup2 ( ) ; } else { codeStream . dup ( ) ; } codeStream . monitorenter ( ) ; codeStream . monitorexit ( ) ; } else { codeStream . store ( synchroVariable , true ) ; codeStream . monitorenter ( ) ; this . enterAnyExceptionHandler ( codeStream ) ; block . generateCode ( scope , codeStream ) ; Label endLabel = new Label ( codeStream ) ; if ( ! ( blockExit ) ) { codeStream . load ( synchroVariable ) ; codeStream . monitorexit ( ) ; this . exitAnyExceptionHandler ( ) ; codeStream . goto_ ( endLabel ) ; this . enterAnyExceptionHandler ( codeStream ) ; } this . placeAllAnyExceptionHandlers ( ) ; codeStream . incrStackSize ( 1 ) ; codeStream . load ( synchroVariable ) ; codeStream . monitorexit ( ) ; this . exitAnyExceptionHandler ( ) ; codeStream . athrow ( ) ; if ( ! ( blockExit ) ) { endLabel . place ( ) ; } } if ( ( scope ) != currentScope ) { codeStream . exitUserScope ( scope ) ; } codeStream . recordPositionsFrom ( pc , this . sourceStart ) ; } public void generateSubRoutineInvocation ( BlockScope currentScope , CodeStream codeStream ) { } public void resolve ( BlockScope upperScope ) { } public StringBuffer printStatement ( int indent , StringBuffer output ) { } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
if ( ( ( bits ) & ( ASTNode . IsReachable ) ) == 0 ) {
Buggy code:
public class TypedValue { public static final TypedValue NULL = new TypedValue ( null , TypeDescriptor . NULL ) ; private final Object value ; private TypeDescriptor typeDescriptor ; public TypedValue ( Object value ) { } public TypedValue ( Object value , TypeDescriptor typeDescriptor ) { } public Object getValue ( ) { } public TypeDescriptor getTypeDescriptor ( ) { } @ Override public String toString ( ) { StringBuilder str = new StringBuilder ( ) ; <START_BUG> str . append ( "TypedValue:<seq2seq4repair_space>" ) . append ( this . value ) . append ( "<seq2seq4repair_space>of<seq2seq4repair_space>type<seq2seq4repair_space>" ) . append ( this . getTypeDescriptor ( ) . asString ( ) ) ; <END_BUG> return str . toString ( ) ; } }

Fix:
str . append ( "TypedValue:<seq2seq4repair_space>" ) . append ( this . value ) . append ( "<seq2seq4repair_space>of<seq2seq4repair_space>" ) . append ( this . getTypeDescriptor ( ) ) ;
Buggy code:
public abstract class P4CommandTestBase extends PerforceFixture { private static final String EMPTY_VIEW = "////depot//dir1//old.*<seq2seq4repair_space>////cws//renamed//new.*" ; private InMemoryStreamConsumer output = inMemoryConsumer ( ) ; @ Test public void shouldCheckConnection ( ) throws Exception { } @ Test ( expected = RuntimeException . class ) public void shouldCheckConnectionAndReturnErrorIfIncorrectDepotMentioned ( ) throws Exception { } @ Test public void shouldCheckConnectionAndReturnErrorIfIncorrectViewMentioned ( ) throws Exception { p4 = p4Fixture . createClient ( "client" , "////depot//FolderThatDoesNotExist...<seq2seq4repair_space>////client//..." ) ; try { p4 . checkConnection ( ) ; } catch ( Exception e ) { assertThat ( e , is ( instanceOf ( RuntimeException . class ) ) ) ; <START_BUG> assertThat ( e . getMessage ( ) , containsString ( "ERROR:<seq2seq4repair_space>////client//...<seq2seq4repair_space>-<seq2seq4repair_space>no<seq2seq4repair_space>such<seq2seq4repair_space>file(s)" ) ) ; <END_BUG> } } @ Test public void shouldInitializeClient ( ) throws Exception { } @ Test public void shouldCreateClientSpecWithProvidedValues ( ) { } @ Test public void shouldGetLatestChange ( ) throws Exception { } @ Test public void shouldGetChangesSinceARevision ( ) throws Exception { } @ Test public void shouldSync ( ) throws Exception { } @ Test public void shouldBombForNonZeroReturnCode ( ) throws Exception { } @ Test public void shouldDescribeChange ( ) throws Exception { } @ Test public void shouldReturnEmptyModificationListWhenP4OutputIsEmpty ( ) throws Exception { } }

Fix:
assertThat ( e . getMessage ( ) , containsString ( "STDERR:<seq2seq4repair_space>////client//...<seq2seq4repair_space>-<seq2seq4repair_space>no<seq2seq4repair_space>such<seq2seq4repair_space>file(s)" ) ) ;
Buggy code:
public class BoardTest { RiskBoard board ; private String alaska = "Alaska" ; private String alberta = "Alberta" ; private String argentina = "Argentina" ; private String brazil = "Brazil" ; @ Before public void setUp ( ) { } @ Test public void testNewBlankBoard ( ) { } @ Test public void testBoardSetup ( ) { } @ Test public void testChangeTroops ( ) { } @ Test public void testFactions ( ) { } @ Test public void testRoutes ( ) { } @ Test public void testAttack ( ) { } @ Test public void testTooFewToAttack ( ) { } @ Test public void testTakeTerritory ( ) { } @ Test public void testTakeTerritoryWithTwo ( ) { } @ Test public void testPlayerList ( ) { } @ Test public void testAssignRandomTerritories ( ) { } @ Test public void testMoveTerritory ( ) { board . setFaction ( alberta , BLACK ) ; board . setFaction ( argentina , BLACK ) ; board . setFaction ( brazil , BLACK ) ; board . changeTroops ( alberta , 10 ) ; board . moveTroops ( alberta , alaska , 5 ) ; board . moveTroops ( alberta , brazil , 5 ) ; board . moveTroops ( alberta , argentina , 5 ) ; assertEquals ( 0 , board . getTroops ( alaska ) ) ; assertEquals ( 0 , board . getTroops ( brazil ) ) ; assertEquals ( 5 , board . getTroops ( argentina ) ) ; assertEquals ( 5 , board . getTroops ( alberta ) ) ; <START_BUG> board . moveTroops ( board . moveTroops ( alberta , argentina , 5 ) ) ; <END_BUG> assertEquals ( 9 , board . getTroops ( argentina ) ) ; assertEquals ( 1 , board . getTroops ( alberta ) ) ; } }

Fix:
board . moveTroops ( alberta , argentina , 5 ) ;
Buggy code:
public class DockerSlave extends AbstractCloudSlave { private static final Logger LOGGER = Logger . getLogger ( DockerSlave . class . getName ( ) ) ; public final DockerTemplate dockerTemplate ; public final String containerId ; private transient Run theRun ; @ DataBoundConstructor public DockerSlave ( DockerTemplate dockerTemplate , String containerId , String name , String nodeDescription , String remoteFS , int numExecutors , Mode mode , String labelString , ComputerLauncher launcher , RetentionStrategy retentionStrategy , List < ? extends NodeProperty < ? > > nodeProperties ) throws FormException , IOException { } public DockerCloud getCloud ( ) { } @ Override public String getDisplayName ( ) { } public void setRun ( Run run ) { } @ Override public DockerComputer createComputer ( ) { } public boolean containerExistsInCloud ( ) { } @ Override protected void _terminate ( TaskListener listener ) throws IOException , InterruptedException { } private void slaveShutdown ( TaskListener listener ) throws DockerException , IOException { if ( ! ( getJobProperty ( ) . tagOnCompletion ) ) { addJenkinsAction ( null ) ; return ; } DockerClient client = getClient ( ) ; <START_BUG> String tag_image = client . commitCmd ( containerId ) . withRepository ( theRun . getParent ( ) . getDisplayName ( ) ) . withTag ( theRun . getDisplayName ( ) ) . withAuthor ( "Jenkins" ) . exec ( ) ; <END_BUG> addJenkinsAction ( tag_image ) ; try { String tagToken = getAdditionalTag ( listener ) ; if ( ! ( Strings . isNullOrEmpty ( tagToken ) ) ) { client . tagImageCmd ( tag_image , null , tagToken ) . exec ( ) ; addJenkinsAction ( tagToken ) ; if ( getJobProperty ( ) . pushOnSuccess ) { client . pushImageCmd ( tagToken ) . exec ( ) ; } } } catch ( Exception ex ) { DockerSlave . LOGGER . log ( Level . SEVERE , "Could<seq2seq4repair_space>not<seq2seq4repair_space>add<seq2seq4repair_space>additional<seq2seq4repair_space>tags" ) ; } if ( getJobProperty ( ) . cleanImages ) { client . removeImageCmd ( tag_image ) . withForce ( ) . exec ( ) ; } } private String getAdditionalTag ( TaskListener listener ) { } private void addJenkinsAction ( String tag_image ) throws IOException { } public DockerClient getClient ( ) { } public void onConnected ( ) { } @ Override public String toString ( ) { } private DockerJobProperty getJobProperty ( ) { } @ Extension public static final class DescriptorImpl extends SlaveDescriptor { @ Override public String getDisplayName ( ) { } @ Override public boolean isInstantiable ( ) { } } }

Fix:
String tag_image = client . commitCmd ( containerId ) . withRepository ( theRun . getParent ( ) . getDisplayName ( ) ) . withTag ( theRun . getDisplayName ( ) . replace ( "#" , "b" ) ) . withAuthor ( "Jenkins" ) . exec ( ) ;
Buggy code:
public abstract class PasteAction extends SelectionListenerAction { public static final String ID = ( PlatformUI . PLUGIN_ID ) + ".PasteAction" ; private Shell shell ; private Clipboard clipboard ; public PasteAction ( Shell shell , Clipboard clipboard ) { } private IResource getTarget ( ) { } private boolean isLinked ( IResource [ ] resources ) { } @ Override public void run ( ) { ResourceTransfer resTransfer = ResourceTransfer . getInstance ( ) ; IResource [ ] resourceData = ( ( IResource [ ] ) ( clipboard . getContents ( resTransfer ) ) ) ; if ( ( resourceData != null ) && ( ( resourceData . length ) > 0 ) ) { if ( ( resourceData [ 0 ] . getType ( ) ) == ( IResource . PROJECT ) ) { for ( int i = 0 ; i < ( resourceData . length ) ; i ++ ) { CopyProjectOperation operation = new CopyProjectOperation ( this . shell ) ; operation . copyProject ( ( ( IProject ) ( resourceData [ i ] ) ) ) ; } } else { IContainer container = getContainer ( ) ; CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation ( this . shell ) ; IResource [ ] copiedResources = operation . copyResources ( resourceData , container ) ; if ( ( copiedResources . length ) > 0 ) { PythonPathHelper . updatePyPath ( copiedResources , container , OPERATION_COPY ) ; } } return ; } FileTransfer fileTransfer = FileTransfer . getInstance ( ) ; String [ ] fileData = ( ( String [ ] ) ( clipboard . getContents ( fileTransfer ) ) ) ; if ( fileData != null ) { IContainer container = getContainer ( ) ; CopyFilesAndFoldersOperation operation = new CopyFilesAndFoldersOperation ( this . shell ) ; operation . copyFiles ( fileData , container ) ; return ; } TextTransfer instance = TextTransfer . getInstance ( ) ; String contents = ( ( String ) ( clipboard . getContents ( instance ) ) ) ; if ( contents != null ) { IContainer container = getContainer ( ) ; String name = getNameForContentsPasted ( container ) ; if ( name == null ) { return ; } String delimiter = PyAction . getDelimiter ( new Document ( ) ) ; if ( delimiter != null ) { <START_BUG> StringUtils . replaceNewLines ( contents , delimiter ) ; <END_BUG> } IFile file = container . getFile ( new Path ( name ) ) ; if ( ! ( file . exists ( ) ) ) { try { file . create ( new ByteArrayInputStream ( contents . getBytes ( ) ) , true , null ) ; } catch ( CoreException e ) { Log . log ( e ) ; } try { IWorkbenchPage page = PlatformUI . getWorkbench ( ) . getActiveWorkbenchWindow ( ) . getActivePage ( ) ; if ( page != null ) { IDE . openEditor ( page , file ) ; } } catch ( Exception e ) { Log . log ( e ) ; } } } } private String getNameForContentsPasted ( final IContainer container ) { } private IContainer getContainer ( ) { } @ Override protected boolean updateSelection ( IStructuredSelection selection ) { } }

Fix:
contents = StringUtils . replaceNewLines ( contents , delimiter ) ;
Buggy code:
public abstract class PluginActionBuilder extends RegistryReader { public static final String TAG_MENU = "menu" ; public static final String TAG_ACTION = "action" ; public static final String TAG_SEPARATOR = "separator" ; public static final String TAG_GROUP_MARKER = "groupMarker" ; public static final String TAG_FILTER = "filter" ; public static final String TAG_VISIBILITY = "visibility" ; public static final String TAG_ENABLEMENT = "enablement" ; public static final String TAG_SELECTION = "selection" ; public static final String ATT_TARGET_ID = "targetID" ; public static final String ATT_ID = "id" ; public static final String ATT_LABEL = "label" ; public static final String ATT_ENABLES_FOR = "enablesFor" ; public static final String ATT_NAME = "name" ; public static final String ATT_PATH = "path" ; protected String targetID ; protected String targetContributionTag ; protected PluginActionBuilder . BasicContribution currentContribution ; protected ArrayList cache ; public PluginActionBuilder ( ) { } public final void contribute ( IMenuManager menu , IToolBarManager toolbar , boolean appendIfMissing ) { } protected abstract ActionDescriptor createActionDescriptor ( IConfigurationElement element ) { } protected PluginActionBuilder . BasicContribution createContribution ( ) { } protected String getTargetID ( IConfigurationElement element ) { } protected void readContributions ( String id , String tag , String extensionPoint ) { cache = null ; currentContribution = null ; targetID = id ; targetContributionTag = tag ; <START_BUG> readRegistry ( Platform . getPluginRegistry ( ) , PLUGIN_ID , extensionPoint ) ; <END_BUG> } protected boolean readElement ( IConfigurationElement element ) { } protected static class BasicContribution { protected ArrayList menus ; protected ArrayList actions ; public void addMenu ( IConfigurationElement element ) { } public void addAction ( ActionDescriptor desc ) { } public void contribute ( IMenuManager menu , boolean menuAppendIfMissing , IToolBarManager toolbar , boolean toolAppendIfMissing ) { } protected void contributeMenu ( IConfigurationElement menuElement , IMenuManager mng , boolean appendIfMissing ) { } protected void contributeMenuAction ( ActionDescriptor ad , IMenuManager menu , boolean appendIfMissing ) { } protected void contributeSeparator ( IMenuManager menu , IConfigurationElement element ) { } protected void contributeGroupMarker ( IMenuManager menu , IConfigurationElement element ) { } protected void contributeToolbarAction ( ActionDescriptor ad , IToolBarManager toolbar , boolean appendIfMissing ) { } protected void insertMenuGroup ( IMenuManager menu , AbstractGroupMarker marker ) { } protected void insertAfter ( IContributionManager mgr , String refId , PluginAction action ) { } protected void insertAfter ( IContributionManager mgr , String refId , IContributionItem item ) { } protected void addGroup ( IContributionManager mgr , String name ) { } } }

Fix:
readRegistry ( Platform . getExtensionRegistry ( ) , PLUGIN_ID , extensionPoint ) ;
Buggy code:
public abstract class AnnotationUtils { static final String VALUE = "value" ; public static Annotation [ ] getAnnotations ( Method method ) { } public static < A extends Annotation > A getAnnotation ( Method method , Class < A > annotationType ) { } public static < A extends Annotation > A findAnnotation ( Method method , Class < A > annotationType ) { } public static < A extends Annotation > A findAnnotation ( Class < ? > clazz , Class < A > annotationType ) { Assert . notNull ( clazz , "Class<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; A annotation = clazz . getAnnotation ( annotationType ) ; if ( annotation != null ) { return annotation ; } for ( Class < ? > ifc : clazz . getInterfaces ( ) ) { annotation = AnnotationUtils . findAnnotation ( ifc , annotationType ) ; if ( annotation != null ) { return annotation ; } } Class < ? > superClass = clazz . getSuperclass ( ) ; <START_BUG> if ( ( superClass == null ) || ( superClass == ( Object . class ) ) ) { <END_BUG> return null ; } return AnnotationUtils . findAnnotation ( superClass , annotationType ) ; } public static Class < ? > findAnnotationDeclaringClass ( Class < ? extends Annotation > annotationType , Class < ? > clazz ) { } public static boolean isAnnotationDeclaredLocally ( Class < ? extends Annotation > annotationType , Class < ? > clazz ) { } public static boolean isAnnotationInherited ( Class < ? extends Annotation > annotationType , Class < ? > clazz ) { } public static Map < String , Object > getAnnotationAttributes ( Annotation annotation ) { } public static Object getValue ( Annotation annotation ) { } public static Object getValue ( Annotation annotation , String attributeName ) { } public static Object getDefaultValue ( Annotation annotation ) { } public static Object getDefaultValue ( Annotation annotation , String attributeName ) { } public static Object getDefaultValue ( Class < ? extends Annotation > annotationType ) { } public static Object getDefaultValue ( Class < ? extends Annotation > annotationType , String attributeName ) { } }

Fix:
if ( ( superClass == null ) || ( superClass . equals ( Object . class ) ) ) {
Buggy code:
public class Routes { private static SignInResponse respond ( SignInRequest r ) { } private static CentralBoardResponse respond ( CentralBoardRequest r ) { } private static SignUpResponse respond ( SignUpRequest r ) { } private static PostResponse respond ( PostRequest r ) { <START_BUG> return new PostResponse ( ) ; <END_BUG> } public static Response processRequest ( Request r ) { } }

Fix:
return new PostResponse ( null ) ;
Buggy code:
public class ConcurrentQueryCache extends AbstractQueryCache implements RemoteCommitListener { private CacheMap _cache = newCacheMap ( ) ; public CacheMap getCacheMap ( ) { } public int getCacheSize ( ) { } public void setCacheSize ( int size ) { } public int getSoftReferenceSize ( ) { } public void setSoftReferenceSize ( int size ) { } public void initialize ( DataCacheManager mgr ) { } public void writeLock ( ) { } public void writeUnlock ( ) { } protected CacheMap newCacheMap ( ) { } protected QueryResult getInternal ( QueryKey qk ) { } protected QueryResult putInternal ( QueryKey qk , QueryResult result ) { } protected QueryResult removeInternal ( QueryKey qk ) { } protected void clearInternal ( ) { } protected boolean pinInternal ( QueryKey qk ) { } protected boolean unpinInternal ( QueryKey qk ) { } protected Collection keySet ( ) { } <START_BUG> public String getEvictPolicy ( ) { <END_BUG> return super . evictPolicy ; } }

Fix:
public EvictPolicy getEvictPolicy ( ) {
Buggy code:
public class CBayesDriver implements BayesJob { private static final Logger log = LoggerFactory . getLogger ( CBayesDriver . class ) ; @ Override public void runJob ( Path input , Path output , BayesParameters params ) throws IOException { HadoopUtil . overwriteOutput ( output ) ; CBayesDriver . log . info ( "Reading<seq2seq4repair_space>features..." ) ; BayesFeatureDriver feature = new BayesFeatureDriver ( ) ; feature . runJob ( input , output , params ) ; CBayesDriver . log . info ( "Calculating<seq2seq4repair_space>Tf-Idf..." ) ; BayesTfIdfDriver tfidf = new BayesTfIdfDriver ( ) ; tfidf . runJob ( input , output , params ) ; CBayesDriver . log . info ( "Calculating<seq2seq4repair_space>weight<seq2seq4repair_space>sums<seq2seq4repair_space>for<seq2seq4repair_space>labels<seq2seq4repair_space>and<seq2seq4repair_space>features..." ) ; BayesWeightSummerDriver summer = new BayesWeightSummerDriver ( ) ; summer . runJob ( input , output , params ) ; CBayesDriver . log . info ( "Calculating<seq2seq4repair_space>the<seq2seq4repair_space>weight<seq2seq4repair_space>Normalisation<seq2seq4repair_space>factor<seq2seq4repair_space>for<seq2seq4repair_space>each<seq2seq4repair_space>complement<seq2seq4repair_space>class..." ) ; CBayesThetaNormalizerDriver normalizer = new CBayesThetaNormalizerDriver ( ) ; normalizer . runJob ( input , output , params ) ; <START_BUG> if ( Boolean . parseBoolean ( params . get ( "skipCleanup" ) ) ) { <END_BUG> return ; } Path docCountOutPath = new Path ( output , "trainer-docCount" ) ; HadoopUtil . overwriteOutput ( docCountOutPath ) ; Path termDocCountOutPath = new Path ( output , "trainer-termDocCount" ) ; HadoopUtil . overwriteOutput ( termDocCountOutPath ) ; Path featureCountOutPath = new Path ( output , "trainer-featureCount" ) ; HadoopUtil . overwriteOutput ( featureCountOutPath ) ; Path wordFreqOutPath = new Path ( output , "trainer-wordFreq" ) ; HadoopUtil . overwriteOutput ( wordFreqOutPath ) ; Path vocabCountPath = new Path ( output , "trainer-tfIdf//trainer-vocabCount" ) ; HadoopUtil . overwriteOutput ( vocabCountPath ) ; Path vocabCountOutPath = new Path ( output , "trainer-vocabCount" ) ; HadoopUtil . overwriteOutput ( vocabCountOutPath ) ; } }

Fix:
if ( params . isSkipCleanup ( ) ) {
Buggy code:
public class JSONStatusBuilder { @ SuppressWarnings ( "unchecked" ) public static JSONObject status ( Question question ) { } public static JSONObject treeToJSON ( MutableTree tree ) { } @ SuppressWarnings ( "unchecked" ) private static JSONObject recursiveNodeLabel ( MutableTreeNode node , JSONObject document ) { document . put ( "label" , node . label ) ; if ( ! ( node . children . isEmpty ( ) ) ) { JSONArray tmp = new JSONArray ( ) ; for ( MutableTreeNode child : node . children ) { JSONObject object = new JSONObject ( ) ; <START_BUG> JSONStatusBuilder . recursiveNodeLabel ( child , object ) ; <END_BUG> } document . put ( "children" , tmp ) ; } return document ; } }

Fix:
tmp . add ( JSONStatusBuilder . recursiveNodeLabel ( child , object ) ) ;
Buggy code:
public class HttpListenerService extends ListenerService < HttpListenerService > { private volatile AcceptingChannel < StreamConnection > server ; private final ChannelUpgradeHandler httpUpgradeHandler = new ChannelUpgradeHandler ( ) ; protected final InjectedValue < ListenerRegistry > httpListenerRegistry = new InjectedValue ( ) ; static final ServiceName HTTP_UPGRADE_REGISTRY = JBOSS . append ( "http-upgrade-registry" ) ; static final String PROTOCOL = "http" ; private final String serverName ; public HttpListenerService ( String name , final String serverName , OptionMap listenerOptions , OptionMap socketOptions , boolean certificateForwarding , boolean proxyAddressForwarding ) { } @ Override protected OpenListener createOpenListener ( ) { <START_BUG> return new io . undertow . server . protocol . http . HttpOpenListener ( getBufferPool ( ) . getValue ( ) , OptionMap . builder ( ) . addAll ( commonOptions ) . addAll ( listenerOptions ) . set ( ENABLE_CONNECTOR_STATISTICS , getUndertowService ( ) . isStatisticsEnabled ( ) ) . getMap ( ) ) ; <END_BUG> } @ Override public boolean isSecure ( ) { } @ Override protected void preStart ( final StartContext context ) { } protected void startListening ( XnioWorker worker , InetSocketAddress socketAddress , ChannelListener < AcceptingChannel < StreamConnection > > acceptListener ) throws IOException { } @ Override protected void stopListening ( ) { } @ Override public HttpListenerService getValue ( ) throws IllegalArgumentException , IllegalStateException { } public InjectedValue < ListenerRegistry > getHttpListenerRegistry ( ) { } @ Override protected String getProtocol ( ) { } }

Fix:
return new io . undertow . server . protocol . http . HttpOpenListener ( getBufferPool ( ) . getValue ( ) , OptionMap . builder ( ) . addAll ( commonOptions ) . addAll ( listenerOptions ) . set ( ENABLE_CONNECTOR_STATISTICS , getUndertowService ( ) . isStatisticsEnabled ( ) ) . getMap ( ) , getBufferSize ( ) ) ;
Buggy code:
public class StereotypeType extends AbstractTypeImpl { private Log log = LogFactory . getLog ( getClass ( ) ) ; Stereotype stereoType ; public StereotypeType ( TypeSystem typeSystem , String name , Stereotype stereoType ) { } @ Override public Feature [ ] getContributedFeatures ( ) { } private boolean isStereoTypeAssignable ( Stereotype st1 , Stereotype st2 ) { } public boolean isInstance ( Object o ) { } public Object newInstance ( ) { } private Set < Type > superTypes = null ; @ Override public Set < Type > getSuperTypes ( ) { if ( ( superTypes ) == null ) { superTypes = new HashSet < Type > ( ) ; List < Classifier > all = new ArrayList < Classifier > ( stereoType . getExtendedMetaclasses ( ) ) ; all . addAll ( stereoType . getSuperClasses ( ) ) ; for ( Classifier classifier : all ) { String superTypeName = getFullName ( classifier ) ; Type t = getTypeSystem ( ) . getTypeForName ( superTypeName ) ; if ( t == null ) { <START_BUG> log . error ( ( "Couldn't<seq2seq4repair_space>resolve<seq2seq4repair_space>type<seq2seq4repair_space>" + superTypeName ) ) ; <END_BUG> } else { superTypes . add ( t ) ; } } } return Collections . unmodifiableSet ( superTypes ) ; } public Stereotype getStereoType ( ) { } private String getFullName ( Object object ) { } private String getFullyQualifiedName ( final ENamedElement ele ) { } private String getFqnRec ( final EObject ele , final String suffix ) { } @ Override protected boolean internalIsAssignableFrom ( Type t ) { } protected boolean isCompatible ( Type t ) { } private static String normalizedName ( String name ) { } }

Fix:
log . warn ( ( "Couldn't<seq2seq4repair_space>resolve<seq2seq4repair_space>super<seq2seq4repair_space>type<seq2seq4repair_space>" + superTypeName ) ) ;