nus-yam/ex-repair huggingface dataset:
Buggy code:
public class MoreFragment extends Fragment { private LoadResource loadResource ; private RecyclerView mRecyclerView ; private LayoutManager mLayoutManager ; public MoreFragment ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { View rootView = inflater . inflate ( fragment_more , container , false ) ; String [ ] sub = new String [ ] { "Visual<seq2seq4repair_space>Art" , "Science" } ; mRecyclerView = ( ( RecyclerView ) ( rootView . findViewById ( recycler_more ) ) ) ; mRecyclerView . setHasFixedSize ( true ) ; mLayoutManager = new android . support . v7 . widget . LinearLayoutManager ( getActivity ( ) ) ; mRecyclerView . setLayoutManager ( mLayoutManager ) ; <START_BUG> loadResource = new LoadResource ( getActivity ( ) , mRecyclerView , sub , "LowerElem" , 2 ) ; <END_BUG> loadResource . execute ( ) ; return rootView ; } }

Fix:
loadResource = new LoadResource ( getActivity ( ) , getActivity ( ) , mRecyclerView , sub , "LowerElem" , 2 ) ;
Buggy code:
public class BibliotecaApp { public static void main ( String [ ] args ) throws IOException { } public void run ( ) throws IOException { int userCommand ; showWelcomeWords ( ) ; Menu mainMenu = new com . twu . biblioteca . valueObject . menu . MainMenu ( new PartTitleUIImp1 ( ) , new OptionUIImp1 ( ) ) ; mainMenu . show ( ) ; userCommand = mainMenu . readNextCommand ( ) ; while ( userCommand != ( mainMenu . getOptions ( ) . size ( ) ) ) { <START_BUG> mainMenu . interActOption ( mainMenu . askForAValidSelection ( ) ) ; <END_BUG> mainMenu . show ( ) ; } } public void showWelcomeWords ( ) throws IOException { } No newline ; at end ; of file ; }

Fix:
mainMenu . interActOption ( mainMenu . askForAValidSelection ( userCommand ) ) ;
Buggy code:
public class GoTransitionToSource extends AbstractGoRule { public String getRuleName ( ) { <START_BUG> return "Transition->Source<seq2seq4repair_space>MState" ; <END_BUG> } public Collection getChildren ( Object parent ) { } }

Fix:
return "Transition->Source<seq2seq4repair_space>State" ;
Buggy code:
public class TarOutputStream extends FilterOutputStream { public static final int LONGFILE_ERROR = 0 ; public static final int LONGFILE_TRUNCATE = 1 ; public static final int LONGFILE_GNU = 2 ; protected boolean debug ; protected int currSize ; protected int currBytes ; protected byte [ ] oneBuf ; protected byte [ ] recordBuf ; protected int assemLen ; protected byte [ ] assemBuf ; protected TarBuffer buffer ; protected int longFileMode = TarOutputStream . LONGFILE_ERROR ; public TarOutputStream ( OutputStream os ) { } public TarOutputStream ( OutputStream os , int blockSize ) { } public TarOutputStream ( OutputStream os , int blockSize , int recordSize ) { } public void setLongFileMode ( int longFileMode ) { } public void setDebug ( boolean debugF ) { } public void setBufferDebug ( boolean debug ) { } public void finish ( ) throws IOException { } public void close ( ) throws IOException { } public int getRecordSize ( ) { } public void putNextEntry ( TarEntry entry ) throws IOException { <START_BUG> if ( ( entry . getName ( ) . length ( ) ) > ( TarConstants . NAMELEN ) ) { <END_BUG> if ( ( longFileMode ) == ( TarOutputStream . LONGFILE_GNU ) ) { TarEntry longLinkEntry = new TarEntry ( TarConstants . GNU_LONGLINK , TarConstants . LF_GNUTYPE_LONGNAME ) ; longLinkEntry . setSize ( ( ( entry . getName ( ) . length ( ) ) + 1 ) ) ; putNextEntry ( longLinkEntry ) ; write ( entry . getName ( ) . getBytes ( ) ) ; write ( 0 ) ; closeEntry ( ) ; } else if ( ( longFileMode ) != ( TarOutputStream . LONGFILE_TRUNCATE ) ) { throw new RuntimeException ( ( ( ( ( "file<seq2seq4repair_space>name<seq2seq4repair_space>'" + ( entry . getName ( ) ) ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>too<seq2seq4repair_space>long<seq2seq4repair_space>(<seq2seq4repair_space>><seq2seq4repair_space>" ) + ( TarConstants . NAMELEN ) ) + "<seq2seq4repair_space>bytes)" ) ) ; } } entry . writeEntryHeader ( this . recordBuf ) ; this . buffer . writeRecord ( this . recordBuf ) ; this . currBytes = 0 ; if ( entry . isDirectory ( ) ) { this . currSize = 0 ; } else { this . currSize = ( ( int ) ( entry . getSize ( ) ) ) ; } } public void closeEntry ( ) throws IOException { } public void write ( int b ) throws IOException { } public void write ( byte [ ] wBuf ) throws IOException { } public void write ( byte [ ] wBuf , int wOffset , int numToWrite ) throws IOException { } private void writeEOFRecord ( ) throws IOException { } }

Fix:
if ( ( entry . getName ( ) . length ( ) ) >= ( TarConstants . NAMELEN ) ) {
Buggy code:
public class AnnotationConfigUtils { public static final String PERSISTENCE_ANNOTATION_PROCESSOR_BEAN_NAME = "org.springframework.context.annotation.internalPersistenceAnnotationProcessor" ; public static final String COMMON_ANNOTATION_PROCESSOR_BEAN_NAME = "org.springframework.context.annotation.internalCommonAnnotationProcessor" ; public static final String AUTOWIRED_ANNOTATION_PROCESSOR_BEAN_NAME = "org.springframework.context.annotation.internalAutowiredAnnotationProcessor" ; public static final String REQUIRED_ANNOTATION_PROCESSOR_BEAN_NAME = "org.springframework.context.annotation.internalRequiredAnnotationProcessor" ; private static final String PERSISTENCE_ANNOTATION_PROCESSOR_CLASS_NAME = "org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" ; private static final boolean jsr250Present = ClassUtils . isPresent ( "javax.annotation.Resource" , AnnotationConfigUtils . class . getClassLoader ( ) ) ; private static final boolean jpaPresent = ( ClassUtils . isPresent ( "javax.persistence.EntityManagerFactory" , AnnotationConfigUtils . class . getClassLoader ( ) ) ) && ( ClassUtils . isPresent ( AnnotationConfigUtils . PERSISTENCE_ANNOTATION_PROCESSOR_CLASS_NAME , AnnotationConfigUtils . class . getClassLoader ( ) ) ) ; public static void registerAnnotationConfigProcessors ( BeanDefinitionRegistry registry ) { } public static Set < BeanDefinitionHolder > registerAnnotationConfigProcessors ( BeanDefinitionRegistry registry , Object source ) { } private static BeanDefinitionHolder registerBeanPostProcessor ( BeanDefinitionRegistry registry , RootBeanDefinition definition , String beanName ) { <START_BUG> definition . getPropertyValues ( ) . addPropertyValue ( "order" , new Integer ( Ordered . LOWEST_PRECEDENCE ) ) ; <END_BUG> definition . setRole ( ROLE_INFRASTRUCTURE ) ; registry . registerBeanDefinition ( beanName , definition ) ; return new BeanDefinitionHolder ( definition , beanName ) ; } }

Fix:
definition . getPropertyValues ( ) . addPropertyValue ( "order" , LOWEST_PRECEDENCE ) ;
Buggy code:
public final class RecommenderJob extends AbstractJob { @ Override public int run ( String [ ] args ) throws IOException , ClassNotFoundException , InterruptedException { addInputOption ( ) ; addOutputOption ( ) ; addOption ( "recommenderClassName" , "r" , "Name<seq2seq4repair_space>of<seq2seq4repair_space>recommender<seq2seq4repair_space>class<seq2seq4repair_space>to<seq2seq4repair_space>instantiate" ) ; addOption ( "numRecommendations" , "n" , "Number<seq2seq4repair_space>of<seq2seq4repair_space>recommendations<seq2seq4repair_space>per<seq2seq4repair_space>user" , "10" ) ; <START_BUG> addOption ( "usersFile" , "u" , "Number<seq2seq4repair_space>of<seq2seq4repair_space>recommendations<seq2seq4repair_space>per<seq2seq4repair_space>user" , null ) ; <END_BUG> Map < String , String > parsedArgs = parseArguments ( args ) ; if ( parsedArgs == null ) { return - 1 ; } Path inputFile = getInputPath ( ) ; Path outputPath = getOutputPath ( ) ; Path usersFile = ( ( parsedArgs . get ( "--usersFile" ) ) == null ) ? inputFile : new Path ( parsedArgs . get ( "--usersFile" ) ) ; String recommendClassName = parsedArgs . get ( "--recommenderClassName" ) ; int recommendationsPerUser = Integer . parseInt ( parsedArgs . get ( "--numRecommendations" ) ) ; Job job = prepareJob ( usersFile , outputPath , TextInputFormat . class , UserIDsMapper . class , VarLongWritable . class , NullWritable . class , RecommenderReducer . class , VarLongWritable . class , RecommendedItemsWritable . class , TextOutputFormat . class ) ; FileOutputFormat . setOutputCompressorClass ( job , GzipCodec . class ) ; Configuration jobConf = job . getConfiguration ( ) ; jobConf . set ( RECOMMENDER_CLASS_NAME , recommendClassName ) ; jobConf . setInt ( RECOMMENDATIONS_PER_USER , recommendationsPerUser ) ; jobConf . set ( DATA_MODEL_FILE , inputFile . toString ( ) ) ; job . waitForCompletion ( true ) ; return 0 ; } public static void main ( String [ ] args ) throws Exception { } }

Fix:
addOption ( "usersFile" , "u" , "File<seq2seq4repair_space>of<seq2seq4repair_space>users<seq2seq4repair_space>to<seq2seq4repair_space>recommend<seq2seq4repair_space>for" , null ) ;
Buggy code:
public class OCommandFunction extends OCommandRequestTextAbstract { private static final long serialVersionUID = 1L ; public OCommandFunction ( ) { } public OCommandFunction ( final String iName ) { } public boolean isIdempotent ( ) { } @ Override public String toString ( ) { <START_BUG> return "function." + ( OIOUtils . getStringMaxLength ( text , 200 , "..." ) ) ; <END_BUG> } }

Fix:
return "function." + ( text ) ;
Buggy code:
public class CastExpression extends Expression { public static final ChildPropertyDescriptor TYPE_PROPERTY = new ChildPropertyDescriptor ( CastExpression . class , "type" , Type . class , ASTNode . MANDATORY , ASTNode . NO_CYCLE_RISK ) ; public static final ChildPropertyDescriptor EXPRESSION_PROPERTY = new ChildPropertyDescriptor ( CastExpression . class , "expression" , Expression . class , ASTNode . MANDATORY , ASTNode . CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; public static List propertyDescriptors ( int apiLevel ) { } private Type type = null ; private Expression expression = null ; CastExpression ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { CastExpression result = new CastExpression ( target ) ; <START_BUG> result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <END_BUG> result . setType ( ( ( Type ) ( getType ( ) . clone ( target ) ) ) ) ; result . setExpression ( ( ( Expression ) ( getExpression ( ) . clone ( target ) ) ) ) ; return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Type getType ( ) { } public void setType ( Type type ) { } public Expression getExpression ( ) { } public void setExpression ( Expression expression ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ;
Buggy code:
public class VEGA implements EA { public static final int NUM_INDIVIDUUM = 30 ; public static final int NUM_RECOMBINATED = 10 ; public static final int BLOCK_SIZE = 15 ; public List < Individuum > individuums ; public int generation ; @ Override public int getGeneration ( ) { } @ Override public int getMaxIndividual ( ) { } @ Override public List < Individuum > firstGeneration ( ) { individuums = new ArrayList < Individuum > ( ) ; <START_BUG> generation = 0 ; <END_BUG> for ( int i = 0 ; i < ( VEGA . NUM_INDIVIDUUM ) ; i ++ ) { individuums . add ( newIndividuum ( ) ) ; } return individuums ; } @ Override public List < Individuum > runGeneration ( ) { } @ Override public int getMaxF ( ) { } @ Override public int getMaxG ( ) { } private VEGAIndividuum newIndividuum ( ) { } private String newRandomBinaryString ( int maxLen ) { } }

Fix:
generation = 1 ;
Buggy code:
public class IncrementalTableNavigationTest extends WicketTestCase { public IncrementalTableNavigationTest ( String name ) { } public void testPagedTable ( ) throws Exception { executeTest ( IncrementalTableNavigationPage . class , "IncrementalTableNavigationPage_ExpectedResult_1.html" ) ; <START_BUG> Page page = application . getLastRenderedPage ( ) ; <END_BUG> Link link = ( ( Link ) ( page . get ( "nextNext" ) ) ) ; executedListener ( IncrementalTableNavigationPage . class , link , "IncrementalTableNavigationPage_ExpectedResult_1-1.html" ) ; link = ( ( Link ) ( page . get ( "prev" ) ) ) ; executedListener ( IncrementalTableNavigationPage . class , link , "IncrementalTableNavigationPage_ExpectedResult_1-2.html" ) ; } }

Fix:
Page page = tester . getLastRenderedPage ( ) ;
Buggy code:
final class JFaceUtil { private JFaceUtil ( ) { } public static void initializeJFace ( ) { SafeRunnable . setRunner ( new ISafeRunnableRunner ( ) { public void run ( ISafeRunnable code ) { Platform . run ( code ) ; } } ) ; Policy . setLog ( new ILogger ( ) { public void log ( IStatus status ) { WorkbenchPlugin . getDefault ( ) . getLog ( ) . log ( status ) ; } } ) ; if ( "true" . equalsIgnoreCase ( Platform . getDebugOption ( "//debug" ) ) ) { Policy . DEBUG_DIALOG_NO_PARENT = "true" . equalsIgnoreCase ( Platform . getDebugOption ( ( ( Policy . JFACE ) + "//debug//dialog//noparent" ) ) ) ; Policy . TRACE_ACTIONS = "true" . equalsIgnoreCase ( Platform . getDebugOption ( ( ( Policy . JFACE ) + "//trace//actions" ) ) ) ; Policy . TRACE_TOOLBAR = "true" . equalsIgnoreCase ( Platform . getDebugOption ( ( ( Policy . JFACE ) + "//trace//toolbarDisposal" ) ) ) ; } <START_BUG> Policy . setAnimator ( new WorkbenchControlAnimator ( ) ) ; <END_BUG> } public static void initializeJFacePreferences ( ) { } }

Fix:
Policy . setAnimatorFactory ( new WorkbenchAnimatorFactory ( ) ) ;
Buggy code:
public class SimulatorTest { private void deleteFileIfExists ( String fileName ) { } @ Test public void testOneSideSimulator ( ) throws Exception { } @ Test public void testLongSideOnAppl ( ) throws Exception { } @ Test public void testLongSideOnApplForTwoMonths ( ) throws Exception { } @ Test public void testShortSideOnAppl ( ) throws Exception { } @ Test public void testSimpleSimulator ( ) throws Exception { } public void testPositiveNDaysSimulator ( ) throws Exception { } @ Test public void testOpenWhileSignalAlgorithmSimulator ( ) throws Exception { deleteFileIfExists ( ".//test//statistics.csv" ) ; Simulator . fromFile ( new File ( ".//test_data//simulator_tests//open_while_signal.ini" ) ) . getMetrics ( ) . print ( ".//test//statistics.csv" ) ; <START_BUG> Assert . assertEquals ( 58768 , new File ( ".//test//statistics.csv" ) . length ( ) ) ; <END_BUG> deleteFileIfExists ( ".//test//statistics.csv" ) ; } @ Test public void testFromConfigOutAlgos ( ) throws Exception { } }

Fix:
Assert . assertEquals ( 59322 , new File ( ".//test//statistics.csv" ) . length ( ) ) ;
Buggy code:
public class CalendarFrameMediator extends DockFrameController implements ICalendarMediator { public static final String PROP_FILTERED = "filterRow" ; private CalendarListController listController ; public MainCalendarController calendarController ; private ICalendarNavigationView navigationController ; private DockableView listPanel ; private DockableView calendarPanel ; private DockableView navigationPanel ; public CalendarFrameMediator ( ViewItem viewItem ) { } private void initContextMenu ( ) { } public void registerDockables ( ) { } public void loadDefaultPosition ( ) { } public String [ ] getDockableIds ( ) { } public void extendMenu ( IContainer container ) { } public void extendToolBar ( IContainer container ) { } public void showDayView ( ) { } public void showWeekView ( ) { } public void showWorkWeekView ( ) { } public void showMonthView ( ) { } public ICalendarView getCalendarView ( ) { } public ICalendarListView getListView ( ) { } public ICalendarNavigationView getNavigationView ( ) { } class ListMouseListener extends MouseAdapter { public void mousePressed ( MouseEvent event ) { } public void mouseReleased ( MouseEvent event ) { } public void mouseClicked ( MouseEvent event ) { } protected void processPopup ( final MouseEvent event ) { } } public void fireFilterUpdated ( ) { } public void fireActivityMoved ( IActivity activity ) { } public void fireStartActivityEditing ( IActivity activity ) { } public void fireCreateActivity ( IDateRange range ) { <START_BUG> new NewAppointmentAction ( this ) . actionPerformed ( null ) ; <END_BUG> } }

Fix:
new org . columba . calendar . ui . action . NewAppointmentAction ( this , range ) . actionPerformed ( null ) ;
Buggy code:
public class MarkFolderAsReadAction extends AbstractColumbaAction implements SelectionListener { public MarkFolderAsReadAction ( FrameMediator frameMediator ) { } public void actionPerformed ( ActionEvent e ) { <START_BUG> FolderCommandReference [ ] r = ( ( FolderCommandReference [ ] ) ( frameMediator . getSelectionManager ( ) . getSelection ( "mail.tree" ) ) ) ; <END_BUG> processor . addOp ( new org . columba . mail . folder . command . MarkFolderAsReadCommand ( r ) ) ; } public void selectionChanged ( SelectionChangedEvent e ) { } }

Fix:
FolderCommandReference r = ( ( FolderCommandReference ) ( frameMediator . getSelectionManager ( ) . getSelection ( "mail.tree" ) ) ) ;
Buggy code:
public class Ear extends Jar { private File deploymentDescriptor ; private boolean descriptorAdded ; public Ear ( ) { } public void setEarfile ( File earFile ) { } public void setAppxml ( File descr ) { } public void addArchives ( ZipFileSet fs ) { } protected void initZipOutputStream ( ZipOutputStream zOut ) throws IOException , BuildException { if ( ( ( deploymentDescriptor ) == null ) && ( ! ( isInUpdateMode ( ) ) ) ) { <START_BUG> throw new BuildException ( "appxml<seq2seq4repair_space>attribute<seq2seq4repair_space>is<seq2seq4repair_space>required" , location ) ; <END_BUG> } super . initZipOutputStream ( zOut ) ; } protected void zipFile ( File file , ZipOutputStream zOut , String vPath ) throws IOException { } protected void cleanUp ( ) { } }

Fix:
throw new BuildException ( "appxml<seq2seq4repair_space>attribute<seq2seq4repair_space>is<seq2seq4repair_space>required" , getLocation ( ) ) ;
Buggy code:
public class RangeFilter implements IFilter { private final String colMin_ ; private final String colMax_ ; private boolean isDone_ ; int count_ ; RangeFilter ( String colMin , String colMax ) { } RangeFilter ( String colMin , String colMax , int count ) { } public ColumnFamily filter ( String cfName , ColumnFamily cf ) { if ( cf == null ) return null ; if ( ( count_ ) == 0 ) { isDone_ = true ; return null ; } <START_BUG> ColumnFamily filteredColumnFamily = new ColumnFamily ( cfName , cf . type ( ) ) ; <END_BUG> Collection < IColumn > columns = cf . getAllColumns ( ) ; for ( IColumn c : columns ) { if ( ( ( c . name ( ) . compareTo ( colMin_ ) ) >= 0 ) && ( ( c . name ( ) . compareTo ( colMax_ ) ) <= 0 ) ) { filteredColumnFamily . addColumn ( c ) ; if ( ( count_ ) > 0 ) ( count_ ) -- ; if ( ( count_ ) == 0 ) { isDone_ = true ; break ; } } } return filteredColumnFamily ; } public IColumn filter ( IColumn column , DataInputStream dis ) throws IOException { } public boolean isDone ( ) { } public DataInputBuffer next ( String key , String cf , SSTable ssTable ) throws IOException { } }

Fix:
ColumnFamily filteredColumnFamily = cf . cloneMeShallow ( ) ;
Buggy code:
public class WicketNamespaceTest extends TestCase { private static Log log = LogFactory . getLog ( WicketNamespaceTest . class ) ; private MockWebApplication application ; public WicketNamespaceTest ( String name ) { } public void testRenderHomePage_1 ( ) throws Exception { } public void testRenderHomePage_2 ( ) throws Exception { } public void testRenderHomePage_3 ( ) throws Exception { } public void testRenderHomePage_4 ( ) throws Exception { } public void testRenderHomePage_5 ( ) throws Exception { } public void testRenderHomePage_6 ( ) throws Exception { } public void executeTest ( final Class pageClass , final String filename ) throws Exception { System . out . println ( ( ( "===<seq2seq4repair_space>" + ( pageClass . getName ( ) ) ) + "<seq2seq4repair_space>===" ) ) ; application = new MockWebApplication ( null ) ; <START_BUG> application . getPages ( ) . setHomePage ( pageClass ) ; <END_BUG> application . setupRequestAndResponse ( ) ; application . processRequestCycle ( ) ; String document = application . getServletResponse ( ) . getDocument ( ) ; assertTrue ( DiffUtil . validatePage ( document , this . getClass ( ) , filename ) ) ; } }

Fix:
application . getRequiredPageSettings ( ) . setHomePage ( pageClass ) ;
Buggy code:
public class HillaryFollowers { static Sample s ; public static void main ( String [ ] args ) throws BadIDException , BadUserException , TwitterException { HillaryFollowers . s = new TwitterSample ( ) ; HillaryFollowers . s . name = "HillaryFollowers" ; try { User hillary = TwitterRequestHandler . getUser ( 1339835893 , 0 ) ; System . out . println ( hillary ) ; <START_BUG> hillary . getxFollowers ( 20000 ) ; <END_BUG> System . out . println ( "Saving<seq2seq4repair_space>output" ) ; HillaryFollowers . s . toTSV ( ) ; System . out . println ( "Program<seq2seq4repair_space>complete." ) ; } catch ( RedundantEntryException e ) { } catch ( APIException e ) { if ( ! ( e . type . equals ( "TwitterException" ) ) ) { System . err . println ( "APIException<seq2seq4repair_space>incorrectly<seq2seq4repair_space>typed." ) ; } TwitterException t = ( ( TwitterException ) ( e . thrower ) ) ; System . err . println ( ( ( ( ( "exception:<seq2seq4repair_space>twitter<seq2seq4repair_space>error<seq2seq4repair_space>#" + ( t . getErrorCode ( ) ) ) + ":<seq2seq4repair_space>" ) + ( t . getErrorMessage ( ) ) ) + "\n<seq2seq4repair_space>Saving<seq2seq4repair_space>and<seq2seq4repair_space>quitting." ) ) ; HillaryFollowers . s . toTSV ( ) ; } } }

Fix:
hillary . getxFollowers ( 50000 ) ;
Buggy code:
public class FixedSizeMap < K , V > extends AbstractMapDecorator < K , V > implements Serializable , Map < K , V > , BoundedMap < K , V > { private static final long serialVersionUID = 7450927208116179316L ; <START_BUG> public static < K , V > IterableMap < K , V > fixedSizeMap ( Map < K , V > map ) { <END_BUG> return new FixedSizeMap < K , V > ( map ) ; } protected FixedSizeMap ( Map < K , V > map ) { } private void writeObject ( ObjectOutputStream out ) throws IOException { } @ SuppressWarnings ( "unchecked" ) private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { } @ Override public V put ( K key , V value ) { } @ Override public void putAll ( Map < ? extends K , ? extends V > mapToCopy ) { } @ Override public void clear ( ) { } @ Override public V remove ( Object key ) { } @ Override public Set < Map . Entry < K , V > > entrySet ( ) { } @ Override public Set < K > keySet ( ) { } @ Override public Collection < V > values ( ) { } public boolean isFull ( ) { } public int maxSize ( ) { } }

Fix:
public static < K , V > FixedSizeMap < K , V > fixedSizeMap ( Map < K , V > map ) {
Buggy code:
public class TldParsingDeploymentProcessor implements DeploymentUnitProcessor { public static final long PRIORITY = PARSE_DESCRIPTORS . plus ( 330L ) ; private static final String TLD = ".tld" ; private static final String META_INF = "META-INF" ; private static final String WEB_INF = "WEB-INF" ; private static final String CLASSES = "classes" ; private static final String LIB = "lib" ; private static final String IMPLICIT_TLD = "implicit.tld" ; public void processDeployment ( DeploymentUnitContext context ) throws DeploymentUnitProcessingException { final VirtualFile deploymentRoot = VirtualFileAttachment . getVirtualFileAttachment ( context ) ; TldsMetaData tldsMetaData = context . getAttachment ( ATTACHMENT_KEY ) ; if ( tldsMetaData == null ) { tldsMetaData = new TldsMetaData ( ) ; context . putAttachment ( ATTACHMENT_KEY , tldsMetaData ) ; } Map < String , TldMetaData > tlds = new HashMap < String , TldMetaData > ( ) ; tldsMetaData . setTlds ( tlds ) ; DeploymentStructure structure = context . getAttachment ( DeploymentStructure . ATTACHMENT_KEY ) ; assert structure != null ; assert ( structure . getEntries ( ) ) != null ; for ( DeploymentStructure . ClassPathEntry resourceRoot : structure . getEntries ( ) ) { <START_BUG> if ( resourceRoot . getRoot ( ) . isFile ( ) ) { <END_BUG> VirtualFile webFragment = resourceRoot . getRoot ( ) . getChild ( TldParsingDeploymentProcessor . META_INF ) ; if ( ( webFragment . exists ( ) ) && ( webFragment . isDirectory ( ) ) ) { processTlds ( deploymentRoot , webFragment . getChildren ( ) , tlds ) ; } } } VirtualFile webInf = deploymentRoot . getChild ( TldParsingDeploymentProcessor . WEB_INF ) ; if ( ( webInf . exists ( ) ) && ( webInf . isDirectory ( ) ) ) { for ( VirtualFile file : webInf . getChildren ( ) ) { if ( ( file . isFile ( ) ) && ( file . getName ( ) . endsWith ( TldParsingDeploymentProcessor . TLD ) ) ) { tlds . put ( file . getPathNameRelativeTo ( deploymentRoot ) , parseTLD ( file ) ) ; } else if ( ( ( file . isDirectory ( ) ) && ( ! ( TldParsingDeploymentProcessor . CLASSES . equals ( file . getName ( ) ) ) ) ) && ( ! ( TldParsingDeploymentProcessor . LIB . equals ( file . getName ( ) ) ) ) ) { processTlds ( deploymentRoot , file . getChildren ( ) , tlds ) ; } } } } private void processTlds ( VirtualFile root , List < VirtualFile > files , Map < String , TldMetaData > tlds ) throws DeploymentUnitProcessingException { } private TldMetaData parseTLD ( VirtualFile tld ) throws DeploymentUnitProcessingException { } }

Fix:
if ( resourceRoot . getRoot ( ) . getLowerCaseName ( ) . endsWith ( ".jar" ) ) {
Buggy code:
public class ProgressFeedbackManager { private ProgressFeedbackDialog dialog ; List pendingInfos = new ArrayList ( ) ; private UIJob openProgressJob = new UIJob ( ProgressMessages . getString ( "ProgressFeedbackManager.OpenFeedbackJob" ) ) { public IStatus runInUIThread ( IProgressMonitor monitor ) { } } ; IStructuredContentProvider contentProvider ; ProgressFeedbackManager ( ) { } IStatus requestInUI ( UIJob job , String message ) { if ( ( Thread . currentThread ( ) ) == ( Display . getDefault ( ) . getThread ( ) ) ) { throw new IllegalThreadStateException ( ProgressMessages . getString ( "ProgressFeedbackManager.invalidThreadMessage" ) ) ; } final IStatus [ ] statuses = new IStatus [ 1 ] ; final AwaitingFeedbackInfo info = new AwaitingFeedbackInfo ( message , job ) ; pendingInfos . add ( info ) ; job . addJobChangeListener ( new JobChangeAdapter ( ) { public void done ( IJobChangeEvent event ) { statuses [ 0 ] = event . getResult ( ) ; pendingInfos . remove ( info ) ; refreshDialog ( ) ; } } ) ; openProgressJob . schedule ( ) ; try { job . join ( ) ; } catch ( InterruptedException exception ) { <START_BUG> return ProgressUtil . exceptionStatus ( exception ) ; <END_BUG> } return statuses [ 0 ] ; } void openProgressRequestDialog ( ) { } void clearDialog ( ) { } void refreshDialog ( ) { } private IStructuredContentProvider getContentProvider ( ) { } }

Fix:
return ProgressManagerUtil . exceptionStatus ( exception ) ;
Buggy code:
public class DeploymentPropertyResolverProcessor implements DeploymentUnitProcessor { public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; DeploymentUnit current = deploymentUnit ; final List < PropertyResolver > propertyResolvers = new ArrayList < PropertyResolver > ( ) ; do { <START_BUG> final Properties deploymentProperties = deploymentUnit . getAttachment ( DEPLOYMENT_PROPERTIES ) ; <END_BUG> if ( deploymentProperties != null ) { propertyResolvers . add ( new PropertiesPropertyResolver ( deploymentProperties ) ) ; } current = current . getParent ( ) ; } while ( current != null ) ; if ( ! ( propertyResolvers . isEmpty ( ) ) ) { deploymentUnit . addToAttachmentList ( DEPLOYMENT_PROPERTY_RESOLVERS , new org . jboss . metadata . property . CompositePropertyResolver ( propertyResolvers ) ) ; } } public void undeploy ( DeploymentUnit context ) { } }

Fix:
final Properties deploymentProperties = current . getAttachment ( DEPLOYMENT_PROPERTIES ) ;
Buggy code:
public class TestTeeSinkTokenFilter extends BaseTokenStreamTestCase { protected StringBuilder buffer1 ; protected StringBuilder buffer2 ; protected String [ ] tokens1 ; protected String [ ] tokens2 ; @ Override public void setUp ( ) throws Exception { } static final SinkFilter theFilter = new TeeSinkTokenFilter . SinkFilter ( ) { @ Override public boolean accept ( AttributeSource a ) { } } ; static final SinkFilter dogFilter = new TeeSinkTokenFilter . SinkFilter ( ) { @ Override public boolean accept ( AttributeSource a ) { } } ; public void testEndOffsetPositionWithTeeSinkTokenFilter ( ) throws Exception { Directory dir = newDirectory ( ) ; Analyzer analyzer = new MockAnalyzer ( random ( ) , MockTokenizer . WHITESPACE , false ) ; IndexWriter w = new IndexWriter ( dir , newIndexWriterConfig ( TEST_VERSION_CURRENT , analyzer ) ) ; Document doc = new Document ( ) ; TokenStream tokenStream = analyzer . tokenStream ( "field" , new StringReader ( "abcd<seq2seq4repair_space>" ) ) ; TeeSinkTokenFilter tee = new TeeSinkTokenFilter ( tokenStream ) ; TokenStream sink = tee . newSinkTokenStream ( ) ; <START_BUG> FieldType ft = new FieldType ( TextField . TYPE_UNSTORED ) ; <END_BUG> ft . setStoreTermVectors ( true ) ; ft . setStoreTermVectorOffsets ( true ) ; ft . setStoreTermVectorPositions ( true ) ; Field f1 = new Field ( "field" , tee , ft ) ; Field f2 = new Field ( "field" , sink , ft ) ; doc . add ( f1 ) ; doc . add ( f2 ) ; w . addDocument ( doc ) ; w . close ( ) ; IndexReader r = DirectoryReader . open ( dir ) ; Terms vector = r . getTermVectors ( 0 ) . terms ( "field" ) ; assertEquals ( 1 , vector . size ( ) ) ; TermsEnum termsEnum = vector . iterator ( null ) ; termsEnum . next ( ) ; assertEquals ( 2 , termsEnum . totalTermFreq ( ) ) ; DocsAndPositionsEnum positions = termsEnum . docsAndPositions ( null , null , true ) ; assertTrue ( ( ( positions . nextDoc ( ) ) != ( DocIdSetIterator . NO_MORE_DOCS ) ) ) ; assertEquals ( 2 , positions . freq ( ) ) ; positions . nextPosition ( ) ; assertEquals ( 0 , positions . startOffset ( ) ) ; assertEquals ( 4 , positions . endOffset ( ) ) ; positions . nextPosition ( ) ; assertEquals ( 8 , positions . startOffset ( ) ) ; assertEquals ( 12 , positions . endOffset ( ) ) ; assertEquals ( NO_MORE_DOCS , positions . nextDoc ( ) ) ; r . close ( ) ; dir . close ( ) ; } public void testGeneral ( ) throws IOException { } public void testMultipleSources ( ) throws Exception { } public void performance ( ) throws Exception { } class ModuloTokenFilter extends TokenFilter { int modCount ; ModuloTokenFilter ( TokenStream input , int mc ) { } int count = 0 ; @ Override public boolean incrementToken ( ) throws IOException { } } class ModuloSinkFilter extends TeeSinkTokenFilter . SinkFilter { int count = 0 ; int modCount ; ModuloSinkFilter ( int mc ) { } @ Override public boolean accept ( AttributeSource a ) { } } }

Fix:
FieldType ft = new FieldType ( TextField . TYPE_NOT_STORED ) ;
Buggy code:
public class Conductor { public static void main ( String [ ] args ) { <START_BUG> int n = 5 ; <END_BUG> List < Integer > prim = Arrays . asList ( 2 , 3 , 5 , 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 , 37 , 41 , 43 , 47 , 53 , 59 , 61 , 67 , 71 , 73 , 79 , 83 , 89 , 97 , 101 , 103 , 107 , 109 , 113 , 127 , 131 , 137 , 139 , 149 , 151 , 157 , 163 , 167 , 173 , 179 , 181 , 191 , 193 , 197 , 199 , 211 , 223 , 227 , 229 , 233 , 239 , 241 , 251 , 257 , 263 , 269 , 271 , 277 , 281 , 283 , 293 , 307 , 311 , 313 , 317 , 331 , 337 , 347 , 349 , 353 , 359 , 367 , 373 , 379 , 383 , 389 , 397 , 401 , 409 , 419 , 421 , 431 , 433 , 439 , 443 , 449 , 457 , 461 , 463 , 467 , 479 , 487 , 491 , 499 , 503 , 509 , 521 , 523 , 541 , 547 , 557 , 563 , 569 , 571 , 577 , 587 , 593 , 599 , 601 , 607 , 613 , 617 , 619 , 631 , 641 , 643 , 647 , 653 , 659 , 661 , 673 , 677 , 683 , 691 , 701 , 709 , 719 , 727 , 733 , 739 , 743 , 751 , 757 , 761 , 769 , 773 , 787 , 797 , 809 ) ; for ( Integer integer : prim ) { System . out . print ( ( ( "For<seq2seq4repair_space>p<seq2seq4repair_space>=<seq2seq4repair_space>" + integer ) + "<seq2seq4repair_space>it<seq2seq4repair_space>took<seq2seq4repair_space>" ) ) ; List < Polynom > polys = TimeIt . printTime ( ( ) -> Polynom . createGeneratingPolynomes ( integer , n ) ) ; System . out . print ( ( "<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>" + ( polys . size ( ) ) ) ) ; System . out . println ( ) ; } } }

Fix:
int n = 3 ;
Buggy code:
public class PropPanelFlow extends PropPanelRelationship { public PropPanelFlow ( ) { } private void initialize ( ) { <START_BUG> addField ( Argo . localize ( "UMLMenu" , "label.name" ) , new org . argouml . uml . ui . UMLTextField2 ( new UMLModelElementNameDocument ( ) ) ) ; <END_BUG> addField ( Argo . localize ( "UMLMenu" , "label.stereotype" ) , new org . argouml . uml . ui . UMLComboBoxNavigator ( this , Argo . localize ( "UMLMenu" , "tooltip.nav-stereo" ) , getStereotypeBox ( ) ) ) ; addField ( Argo . localize ( "UMLMenu" , "label.namespace" ) , getNamespaceScroll ( ) ) ; addField ( Argo . localize ( "UMLMenu" , "label.constraints" ) , getConstraintScroll ( ) ) ; add ( LabelledLayout . getSeperator ( ) ) ; } }

Fix:
addField ( Argo . localize ( "UMLMenu" , "label.name" ) , getNameTextField ( ) ) ;
Buggy code:
@ Component public class AsanaImporter { @ Autowired private AsanaRestClient asanaRestClient ; @ Autowired private TaskToItemMap taskToItemMap ; @ Value ( "${asanaProjectId}" ) private Long asanaProjectId ; @ Value ( "${jamaProjectId}" ) private Integer jamaProjectId ; private SimpleDateFormat dateFormatter = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" ) ; @ Autowired private JamaGateway jamaGateway ; public AsanaImporter ( ) { } public void importAsana ( ) { } private void importToJama ( List < Item > jamaItems ) { for ( Item item : jamaItems ) { try { <START_BUG> jamaGateway . createItem ( item ) ; <END_BUG> } catch ( GatewayException e ) { e . printStackTrace ( ) ; } } } private Item taskToItem ( Task task ) { } private Map < String , Object > buildFieldsMap ( Task task ) { } }

Fix:
jamaGateway . createItem ( item , null ) ;
Buggy code:
public class BidirectionalIterable < E > extends BidirectionalDelegate implements Iterable < E > { public BidirectionalIterable ( Object owner , String opposingPropertyName , Object target ) { } @ SuppressWarnings ( "unchecked" ) @ Override public Iterable < E > getTarget ( ) { } @ Override public Iterator < E > iterator ( ) { <START_BUG> return new BidirectionalIterator < E > ( BidirectionalIterable . getOwner ( ) , BidirectionalIterable . getOpposingPropertyName ( ) , getTarget ( ) ) ; <END_BUG> } }

Fix:
return new BidirectionalIterator < E > ( BidirectionalIterable . getOwner ( ) , BidirectionalIterable . getOpposingPropertyName ( ) , ( ( Iterable < ? > ) ( getTarget ( ) ) ) . iterator ( ) ) ;
Buggy code:
public class Power implements Expression { private Expression base ; private double exponent ; public Power ( Expression base , double exponent ) { } public Expression getBase ( ) { } public double getExponent ( ) { } @ Override public double evaluate ( Assignments assignments ) { } @ Override public Expression derivative ( Variable var ) { if ( ( this . exponent ) == 0 ) { return new Constant ( 0 ) ; } double newExponent = ( this . exponent ) - 1 ; <START_BUG> return new Multiplication ( new Constant ( this . exponent ) , new Power ( this . base , newExponent ) ) ; <END_BUG> } public boolean equals ( Expression other ) { } public String toString ( ) { } }

Fix:
return new Multiplication ( new Constant ( this . exponent ) , new Multiplication ( new Power ( this . base , newExponent ) , this . base . derivative ( var ) ) ) ;
Buggy code:
public class BindWebexActivity extends BaseActivity { private static final String TAG = BindWebexActivity . class . getSimpleName ( ) ; private EditText mUser ; private EditText mPassword ; private EditText mSite ; private WebexConfig webexConfig ; @ Override public void onCreate ( Bundle savedInstanceState ) { } public void ok ( View view ) { } public void result ( Integer result ) { Log . d ( BindWebexActivity . TAG , ( "<seq2seq4repair_space>czqresult" + result ) ) ; DataUtil . writeToPreferences ( this , WBX_USERNAME , webexConfig . getUserName ( ) ) ; DataUtil . writeToPreferences ( this , WBX_PASSWORD , webexConfig . getPassword ( ) ) ; DataUtil . writeToPreferences ( this , WBX_SITE , webexConfig . getSite ( ) ) ; if ( result > 0 ) { AndroidUtil . showToast ( this , "绑定成功" ) ; DataUtil . writeToPreferences ( this , WBX_USERNAME , webexConfig . getUserName ( ) ) ; DataUtil . writeToPreferences ( this , WBX_PASSWORD , webexConfig . getPassword ( ) ) ; DataUtil . writeToPreferences ( this , WBX_SITE , webexConfig . getSite ( ) ) ; setToSkyUser ( ) ; finish ( ) ; } else { <START_BUG> AndroidUtil . showToast ( this , "绑定失败，输入信息错误" ) ; <END_BUG> } } private void setToSkyUser ( ) { } No newline ; at end ; of file ; }

Fix:
AndroidUtil . showToast ( this , "绑定失败，输入信息错误，注意不能用科天SSO帐号直接绑定" ) ;
Buggy code:
class BSHTryStatement extends SimpleNode { BSHTryStatement ( int id ) { } public Object eval ( CallStack callstack , Interpreter interpreter ) throws EvalError { BSHBlock tryBlock = ( ( BSHBlock ) ( jjtGetChild ( 0 ) ) ) ; Vector catchParams = new Vector ( ) ; Vector catchBlocks = new Vector ( ) ; int nchild = jjtGetNumChildren ( ) ; Node node = null ; int i = 1 ; while ( ( i < nchild ) && ( ( node = jjtGetChild ( ( i ++ ) ) ) instanceof BSHFormalParameter ) ) { catchParams . addElement ( node ) ; catchBlocks . addElement ( jjtGetChild ( ( i ++ ) ) ) ; node = null ; } BSHBlock finallyBlock = null ; if ( node != null ) finallyBlock = ( ( BSHBlock ) ( node ) ) ; TargetError target = null ; Throwable thrown = null ; Object ret = null ; int callstackDepth = callstack . depth ( ) ; try { ret = tryBlock . eval ( callstack , interpreter ) ; } catch ( TargetError e ) { target = e ; String stackInfo = "Bsh<seq2seq4repair_space>Stack:<seq2seq4repair_space>" ; while ( ( callstack . depth ( ) ) > callstackDepth ) stackInfo += ( "\t" + ( callstack . pop ( ) ) ) + "\n" ; } if ( target != null ) thrown = target . getTarget ( ) ; if ( thrown != null ) { int n = catchParams . size ( ) ; for ( i = 0 ; i < n ; i ++ ) { BSHFormalParameter fp = ( ( BSHFormalParameter ) ( catchParams . elementAt ( i ) ) ) ; fp . eval ( callstack , interpreter ) ; if ( ( ( fp . type ) == null ) && ( interpreter . getStrictJava ( ) ) ) throw new EvalError ( "(Strict<seq2seq4repair_space>Java)<seq2seq4repair_space>Untyped<seq2seq4repair_space>catch<seq2seq4repair_space>block" , this , callstack ) ; if ( ( fp . type ) != null ) try { <START_BUG> thrown = ( ( Throwable ) ( NameSpace . getAssignableForm ( thrown , fp . type ) ) ) ; <END_BUG> } catch ( UtilEvalError e ) { continue ; } BSHBlock cb = ( ( BSHBlock ) ( catchBlocks . elementAt ( i ) ) ) ; NameSpace enclosingNameSpace = callstack . top ( ) ; BlockNameSpace cbNameSpace = new BlockNameSpace ( enclosingNameSpace ) ; try { if ( ( fp . type ) == ( BSHFormalParameter . UNTYPED ) ) cbNameSpace . setBlockVariable ( fp . name , thrown ) ; else cbNameSpace . setTypedVariable ( fp . name , fp . type , thrown , false ) ; } catch ( UtilEvalError e ) { throw new InterpreterError ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>set<seq2seq4repair_space>var<seq2seq4repair_space>in<seq2seq4repair_space>catch<seq2seq4repair_space>block<seq2seq4repair_space>namespace." ) ; } callstack . swap ( cbNameSpace ) ; try { ret = cb . eval ( callstack , interpreter ) ; } finally { callstack . swap ( enclosingNameSpace ) ; } target = null ; break ; } } if ( finallyBlock != null ) ret = finallyBlock . eval ( callstack , interpreter ) ; if ( target != null ) throw target ; if ( ret instanceof ReturnControl ) return ret ; else return Primitive . VOID ; } }

Fix:
thrown = ( ( Throwable ) ( Types . getAssignableForm ( thrown , fp . type ) ) ) ;
Buggy code:
public class ImportTask extends Task { private String file ; private boolean optional ; private static final FileUtils FILE_UTILS = FileUtils . newFileUtils ( ) ; public void setOptional ( boolean optional ) { } public void setFile ( String file ) { } public void execute ( ) { if ( ( file ) == null ) { throw new BuildException ( "import<seq2seq4repair_space>requires<seq2seq4repair_space>file<seq2seq4repair_space>attribute" ) ; } if ( ( ( getOwningTarget ( ) ) == null ) || ( ! ( "" . equals ( getOwningTarget ( ) . getName ( ) ) ) ) ) { throw new BuildException ( "import<seq2seq4repair_space>only<seq2seq4repair_space>allowed<seq2seq4repair_space>as<seq2seq4repair_space>a<seq2seq4repair_space>top-level<seq2seq4repair_space>task" ) ; } ProjectHelper helper = ( ( ProjectHelper ) ( getProject ( ) . getReference ( "ant.projectHelper" ) ) ) ; Vector importStack = helper . getImportStack ( ) ; if ( ( importStack . size ( ) ) == 0 ) { throw new BuildException ( "import<seq2seq4repair_space>requires<seq2seq4repair_space>support<seq2seq4repair_space>in<seq2seq4repair_space>ProjectHelper" ) ; } if ( ( ( getLocation ( ) ) == null ) || ( ( getLocation ( ) . getFileName ( ) ) == null ) ) { throw new BuildException ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>location<seq2seq4repair_space>of<seq2seq4repair_space>import<seq2seq4repair_space>task" ) ; } File buildFile = new File ( getLocation ( ) . getFileName ( ) ) ; buildFile = new File ( buildFile . getAbsolutePath ( ) ) ; getProject ( ) . log ( ( ( ( "Importing<seq2seq4repair_space>file<seq2seq4repair_space>" + ( file ) ) + "<seq2seq4repair_space>from<seq2seq4repair_space>" ) + ( buildFile . getAbsolutePath ( ) ) ) , MSG_VERBOSE ) ; File buildFileParent = new File ( buildFile . getParent ( ) ) ; File importedFile = ImportTask . FILE_UTILS . resolveFile ( buildFileParent , file ) ; if ( ! ( importedFile . exists ( ) ) ) { String message = ( ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>" + ( file ) ) + "<seq2seq4repair_space>imported<seq2seq4repair_space>from<seq2seq4repair_space>" ) + ( buildFile . getAbsolutePath ( ) ) ; if ( optional ) { getProject ( ) . log ( message , MSG_VERBOSE ) ; return ; } else { throw new BuildException ( message ) ; } } importedFile = new File ( ImportTask . getPath ( importedFile ) ) ; if ( importStack . contains ( importedFile ) ) { <START_BUG> getProject ( ) . log ( ( ( "Skipped<seq2seq4repair_space>already<seq2seq4repair_space>imported<seq2seq4repair_space>file:\n<seq2seq4repair_space>" + importedFile ) + "\n" ) , MSG_WARN ) ; <END_BUG> return ; } try { helper . parse ( getProject ( ) , importedFile ) ; } catch ( BuildException ex ) { throw ProjectHelper . addLocationToBuildException ( ex , getLocation ( ) ) ; } } private static String getPath ( File file ) { } }

Fix:
getProject ( ) . log ( ( ( "Skipped<seq2seq4repair_space>already<seq2seq4repair_space>imported<seq2seq4repair_space>file:\n<seq2seq4repair_space>" + importedFile ) + "\n" ) , MSG_VERBOSE ) ;
Buggy code:
public class XcraftSignGate extends JavaPlugin { private final Blocklistener blocklistener = new Blocklistener ( this ) ; private final Playerlistener playerlistener = new Playerlistener ( this ) ; public GateHandler gateHandler = new GateHandler ( this ) ; public Logger log = Logger . getLogger ( "Minecraft" ) ; @ Override public void onDisable ( ) { } @ Override public void onEnable ( ) { PluginManager pm = this . getServer ( ) . getPluginManager ( ) ; pm . registerEvent ( SIGN_CHANGE , blocklistener , Normal , this ) ; pm . registerEvent ( BLOCK_PLACE , blocklistener , Normal , this ) ; pm . registerEvent ( REDSTONE_CHANGE , blocklistener , Normal , this ) ; pm . registerEvent ( BLOCK_BREAK , blocklistener , Normal , this ) ; pm . registerEvent ( PLAYER_INTERACT , playerlistener , Normal , this ) ; gateHandler . load ( ) ; <START_BUG> log . info ( ( ( ( ( "[" + ( getDescription ( ) . getName ( ) ) ) + "]<seq2seq4repair_space>v" ) + ( getDescription ( ) . getVersion ( ) ) ) + "<seq2seq4repair_space>by<seq2seq4repair_space>INemesisI<seq2seq4repair_space>loaded!" ) ) ; <END_BUG> } public String getName ( ) { } public ChatColor getChatColor ( ) { } public String capitalize ( String name ) { } No newline ; at end ; of file ; }

Fix:
log . info ( ( ( ( ( "[" + ( getDescription ( ) . getName ( ) ) ) + "]<seq2seq4repair_space>v" ) + ( getDescription ( ) . getVersion ( ) ) ) + "<seq2seq4repair_space>by<seq2seq4repair_space>INemesisI<seq2seq4repair_space>enabled!" ) ) ;
Buggy code:
public final class HandlerService implements IHandlerService { private final ICommandService commandService ; private final HandlerAuthority handlerAuthority ; private final HandlerPersistence handlerPersistence ; public HandlerService ( final ICommandService commandService , final IEvaluationService evaluationService ) { } public final IHandlerActivation activateHandler ( final IHandlerActivation childActivation ) { } public final IHandlerActivation activateHandler ( final String commandId , final IHandler handler ) { } public final IHandlerActivation activateHandler ( final String commandId , final IHandler handler , final Expression expression ) { } public final IHandlerActivation activateHandler ( final String commandId , final IHandler handler , final Expression expression , final boolean global ) { } public final IHandlerActivation activateHandler ( final String commandId , final IHandler handler , final Expression expression , final int sourcePriority ) { } public final void addSourceProvider ( final ISourceProvider provider ) { } public final ExecutionEvent createExecutionEvent ( final Command command , final Event event ) { <START_BUG> return new ExecutionEvent ( command , null , event , getCurrentState ( ) ) ; <END_BUG> } public ExecutionEvent createExecutionEvent ( final ParameterizedCommand command , final Event event ) { } public final void deactivateHandler ( final IHandlerActivation activation ) { } public final void deactivateHandlers ( final Collection activations ) { } public final void dispose ( ) { } public final Object executeCommand ( final ParameterizedCommand command , final Event trigger ) throws ExecutionException , NotEnabledException , NotHandledException , NotDefinedException { } public final Object executeCommand ( final String commandId , final Event trigger ) throws ExecutionException , NotEnabledException , NotHandledException , NotDefinedException { } public final IEvaluationContext getCurrentState ( ) { } public final void readRegistry ( ) { } public final void removeSourceProvider ( final ISourceProvider provider ) { } public final void setHelpContextId ( final IHandler handler , final String helpContextId ) { } public final void updateShellKludge ( ) { } public final void updateShellKludge ( final Shell shell ) { } public final IHandler findHandler ( String commandId , IEvaluationContext context ) { } public final IEvaluationContext getContextSnapshot ( ) { } public final IEvaluationContext getFullContextSnapshot ( ) { } public final Object executeCommandInContext ( final ParameterizedCommand command , final Event trigger , IEvaluationContext context ) throws ExecutionException , NotEnabledException , NotHandledException , NotDefinedException { } }

Fix:
return new ExecutionEvent ( command , Collections . EMPTY_MAP , event , getCurrentState ( ) ) ;