nus-yam/ex-repair huggingface dataset:
Buggy code:
@ SuppressWarnings ( "rawtypes" ) public class bfCollection { static int IndexSize = 4 ; static Logger logger = LoggerFactory . getLogger ( bfCollection . class ) ; CountingBloomFilter [ ] superMaskArray ; int [ ] indexArray ; ArrayList < LinkedList < Integer > > MaskList ; ArrayList < LinkedList < CountingBloomFilter > > bloomFilterList ; public bfCollection ( int prefix ) { } public static int index ( int prefix ) { } public static int cat_prefix ( int prefix ) throws Exception { } public boolean check ( MatchSequence ms ) { } public void add ( MatchSequence ms ) { System . out . print ( ( ( "bfCollection-><seq2seq4repair_space>add()<seq2seq4repair_space>" + ms ) + ",<seq2seq4repair_space>prefix:<seq2seq4repair_space>" ) ) ; int prefix = ( ( ms . get ( SRC_IP ) . getMaskLen ( ) ) * 100 ) + ( ms . get ( DST_IP ) . getMaskLen ( ) ) ; System . out . println ( ( ( prefix + ",<seq2seq4repair_space>index:<seq2seq4repair_space>" ) + ( bfCollection . index ( prefix ) ) ) ) ; for ( int i = bfCollection . index ( prefix ) ; i < ( indexArray . length ) ; i ++ ) { <START_BUG> System . out . println ( ms . serialize ( indexArray [ i ] ) ) ; <END_BUG> superMaskArray [ i ] . add ( ms . serialize ( indexArray [ i ] ) ) ; } if ( ms . isMask ( ) ) { bfCollection . logger . debug ( "isSuperMask" ) ; return ; } Iterator < CountingBloomFilter > bf = bloomFilterList . get ( bfCollection . index ( prefix ) ) . iterator ( ) ; Iterator < Integer > ite = MaskList . get ( bfCollection . index ( prefix ) ) . iterator ( ) ; int mask = 0 ; while ( bf . hasNext ( ) ) { mask = ite . next ( ) ; if ( mask == prefix ) { bfCollection . logger . debug ( ( "mask==prefix,<seq2seq4repair_space>adding,<seq2seq4repair_space>return" + ms ) ) ; bf . next ( ) . add ( ms . serialize ( ) ) ; return ; } bf . next ( ) ; } System . out . println ( ( "no<seq2seq4repair_space>mask==prefix,<seq2seq4repair_space>adding,<seq2seq4repair_space>return,<seq2seq4repair_space>" + prefix ) ) ; System . out . println ( ms ) ; CountingBloomFilter cbf = new FilterBuilder ( 10000 , 0.2 ) . buildCountingBloomFilter ( ) ; cbf . add ( ms . serialize ( ) ) ; bloomFilterList . get ( bfCollection . index ( prefix ) ) . add ( cbf ) ; MaskList . get ( bfCollection . index ( prefix ) ) . add ( prefix ) ; } public void remove ( MatchSequence ms ) { } No newline ; at end ; of file ; }

Fix:
System . out . println ( indexArray [ i ] ) ;
Buggy code:
public class SSHUserInfo implements UIKeyboardInteractive , UserInfo { private String name ; private String password = null ; private String keyfile ; private String passphrase = null ; private boolean trustAllCertificates ; public SSHUserInfo ( ) { } public SSHUserInfo ( String password , boolean trustAllCertificates ) { } public String getName ( ) { } public String getPassphrase ( String message ) { } public String getPassword ( ) { } public boolean prompt ( String str ) { } public boolean retry ( ) { } public void setName ( String name ) { } public void setPassphrase ( String passphrase ) { } public void setPassword ( String password ) { } public void setTrust ( boolean trust ) { } public boolean getTrust ( ) { } public String getPassphrase ( ) { } public String getKeyfile ( ) { } public void setKeyfile ( String keyfile ) { } public boolean promptPassphrase ( String message ) { } public boolean promptPassword ( String passwordPrompt ) { } public boolean promptYesNo ( String message ) { } public void showMessage ( String message ) { } public String [ ] promptKeyboardInteractive ( String destination , String name , String instruction , String [ ] prompt , boolean [ ] echo ) { <START_BUG> if ( ( ( ( prompt . length ) != 1 ) || ( ( echo [ 0 ] ) != false ) ) || ( ( this . password ) == null ) ) { <END_BUG> return null ; } String [ ] response = new String [ 1 ] ; response [ 0 ] = this . password ; return response ; } }

Fix:
if ( ( ( ( prompt . length ) != 1 ) || ( echo [ 0 ] ) ) || ( ( this . password ) == null ) ) {
Buggy code:
public class HtmlExtractorGui extends AbstractPostProcessorGui { private static final long serialVersionUID = 240L ; private static final String USE_DEFAULT_EXTRACTOR_IMPL = "" ; private JLabeledTextField expressionField ; private JLabeledTextField attributeField ; private JLabeledTextField defaultField ; private JLabeledTextField matchNumberField ; private JLabeledTextField refNameField ; private JComboBox extractorImplName ; public HtmlExtractorGui ( ) { } @ Override public String getLabelResource ( ) { } @ Override public void configure ( TestElement el ) { } @ Override public TestElement createTestElement ( ) { } @ Override public void modifyTestElement ( TestElement extractor ) { } @ Override public void clearGui ( ) { } private void init ( ) { } private Component makeExtractorPanel ( ) { JPanel panel = new HorizontalPanel ( ) ; panel . setBorder ( BorderFactory . createTitledBorder ( JMeterUtils . getResString ( "html_extractor_type" ) ) ) ; DefaultComboBoxModel m = new DefaultComboBoxModel ( ) ; for ( String s : HtmlExtractor . getImplementations ( ) ) { m . addElement ( s ) ; } m . addElement ( HtmlExtractorGui . USE_DEFAULT_EXTRACTOR_IMPL ) ; extractorImplName = new JComboBox ( m ) ; extractorImplName . setSelectedItem ( DEFAULT_EXTRACTOR ) ; <START_BUG> JLabel label2 = new JLabel ( JMeterUtils . getResString ( "extractor_type" ) ) ; <END_BUG> label2 . setLabelFor ( extractorImplName ) ; panel . add ( label2 ) ; panel . add ( extractorImplName ) ; return panel ; } private JPanel makeParameterPanel ( ) { } private void addField ( JPanel panel , JLabeledTextField field , GridBagConstraints gbc ) { } private void resetContraints ( GridBagConstraints gbc ) { } private void initConstraints ( GridBagConstraints gbc ) { } }

Fix:
JLabel label2 = new JLabel ( JMeterUtils . getResString ( "html_extractor_type" ) ) ;
Buggy code:
public class CmsDatabaseImportFromServer extends CmsWidgetDialog { public static final String DIALOG_TYPE = "DatabaseImportServer" ; public static final String [ ] PAGES = new String [ ] { "page1" } ; public static final String PARAM_IMPORTFILE = "importFile" ; public static final String PARAM_KEEPPERMISSIONS = "keepPermissions" ; protected static final String IMPORT_ACTION_REPORT = ( PATH_WORKPLACE ) + "admin//database//reports//import.jsp" ; private static final String FILE_MANIFEST = "manifest.xml" ; private static final String FOLDER_MODULES = "modules" ; private String m_importFile ; private String m_keepPermissions ; public CmsDatabaseImportFromServer ( CmsJspActionElement jsp ) { } public CmsDatabaseImportFromServer ( PageContext context , HttpServletRequest req , HttpServletResponse res ) { } protected static List getFileListFromServer ( boolean includeFolders ) { } public void actionCommit ( ) throws IOException , ServletException { List errors = new ArrayList ( ) ; Map params = new HashMap ( ) ; params . put ( PARAM_FILE , getImportFile ( ) ) ; <START_BUG> params . put ( CmsDatabaseImportFromServer . PARAM_KEEPPERMISSIONS , getKeepPermissions ( ) ) ; <END_BUG> params . put ( PARAM_STYLE , STYLE_NEW ) ; params . put ( PARAM_CLOSELINK , CmsToolManager . linkForToolPath ( getJsp ( ) , "//database" ) ) ; getToolManager ( ) . jspForwardPage ( this , CmsDatabaseImportFromServer . IMPORT_ACTION_REPORT , params ) ; setCommitErrors ( errors ) ; } public String getImportFile ( ) { } public String getKeepPermissions ( ) { } public void setImportFile ( String importFile ) { } public void setKeepPermissions ( String keepPermissions ) { } protected String createDialogHtml ( String dialog ) { } protected void defineWidgets ( ) { } protected List getFilesFromServer ( ) { } protected String [ ] getPageArray ( ) { } protected void initMessages ( ) { } protected void initWorkplaceRequestValues ( CmsWorkplaceSettings settings , HttpServletRequest request ) { } No newline ; at end ; of file ; }

Fix:
params . put ( CmsDatabaseImportFromServer . PARAM_KEEPPERMISSIONS . toLowerCase ( ) , getKeepPermissions ( ) ) ;
Buggy code:
public class Job { private Job ( ) { } public static void main ( String [ ] args ) throws IOException { } private static void runJob ( String input , String output , String measureClassName , double t1 , double t2 ) throws IOException { JobClient client = new JobClient ( ) ; JobConf conf = new JobConf ( Job . class ) ; Path outPath = new Path ( output ) ; client . setConf ( conf ) ; <START_BUG> FileSystem dfs = FileSystem . get ( conf ) ; <END_BUG> if ( dfs . exists ( outPath ) ) dfs . delete ( outPath , true ) ; InputDriver . runJob ( input , ( output + "//data" ) ) ; CanopyClusteringJob . runJob ( ( output + "//data" ) , output , measureClassName , t1 , t2 ) ; OutputDriver . runJob ( ( output + "//clusters" ) , ( output + "//clustered-points" ) ) ; } }

Fix:
FileSystem dfs = FileSystem . get ( outPath . toUri ( ) , conf ) ;
Buggy code:
public class ListUnivariateImpl extends DescriptiveStatistics implements Serializable { private static final long serialVersionUID = - 8837442489133392138L ; protected List < Object > list ; protected NumberTransformer transformer ; public ListUnivariateImpl ( ) { } public ListUnivariateImpl ( List < Object > list ) { } public ListUnivariateImpl ( List < Object > list , NumberTransformer transformer ) { } public double [ ] getValues ( ) { } public double getElement ( int index ) { } public long getN ( ) { } public void addValue ( double v ) { <START_BUG> list . add ( new Double ( v ) ) ; <END_BUG> } public void addObject ( Object o ) { } public void clear ( ) { } public double apply ( UnivariateStatistic stat ) { } public NumberTransformer getTransformer ( ) { } public void setTransformer ( NumberTransformer transformer ) { } public synchronized void setWindowSize ( int windowSize ) { } public synchronized int getWindowSize ( ) { } }

Fix:
list . add ( Double . valueOf ( v ) ) ;
Buggy code:
public class ArrayReference extends Reference { public Expression receiver ; public Expression position ; public ArrayReference ( Expression rec , Expression pos ) { } public FlowInfo analyseAssignment ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo , Assignment assignment , boolean compoundAssignment ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateAssignment ( BlockScope currentScope , CodeStream codeStream , Assignment assignment , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public void generateCompoundAssignment ( BlockScope currentScope , CodeStream codeStream , Expression expression , int operator , int assignmentImplicitConversion , boolean valueRequired ) { } public void generatePostIncrement ( BlockScope currentScope , CodeStream codeStream , CompoundAssignment postIncrement , boolean valueRequired ) { receiver . generateCode ( currentScope , codeStream , true ) ; if ( ( ( receiver ) instanceof CastExpression ) && ( ( ( ( CastExpression ) ( receiver ) ) . innermostCastedExpression ( ) . resolvedType ) == ( NullBinding ) ) ) { codeStream . checkcast ( receiver . resolvedType ) ; } position . generateCode ( currentScope , codeStream , true ) ; codeStream . dup2 ( ) ; codeStream . arrayAt ( this . resolvedType . id ) ; if ( valueRequired ) { if ( ( ( this . resolvedType ) == ( LongBinding ) ) || ( ( this . resolvedType ) == ( DoubleBinding ) ) ) { codeStream . dup2_x2 ( ) ; } else { codeStream . dup_x2 ( ) ; } } codeStream . generateImplicitConversion ( implicitConversion ) ; codeStream . generateConstant ( postIncrement . expression . constant , implicitConversion ) ; codeStream . sendOperator ( postIncrement . operator , ( ( this . implicitConversion ) & ( TypeIds . COMPILE_TYPE_MASK ) ) ) ; <START_BUG> codeStream . generateImplicitConversion ( postIncrement . assignmentImplicitConversion ) ; <END_BUG> codeStream . arrayAtPut ( this . resolvedType . id , false ) ; } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
codeStream . generateImplicitConversion ( postIncrement . preAssignImplicitConversion ) ;
Buggy code:
public class AiVsAI { private int p1 = 0 ; private int p2 = 0 ; private int p3 = 0 ; private int p4 = 0 ; private static int number = 0 ; private WriteIntoFile wif ; private int count = 600 ; private static AiVsAI a ; public static void main ( String [ ] args ) { } public void init ( ) { } public void start ( ) { ( AiVsAI . number ) ++ ; AiVsAI . Server server = new AiVsAI . Server ( ) ; server . start ( ) ; try { TimeUnit . SECONDS . sleep ( 5 ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } <START_BUG> startClients ( server , 0 , 0 , 0 , 2 , 2 , 0 ) ; <END_BUG> } private void showResults ( ) { } public static void updateWinnerStat ( Winner winner ) { } private void update ( Winner winner ) { } public static void disconnect ( ErrorType error , int id ) { } private void dc ( ErrorType error , int id ) { } private void startClients ( AiVsAI . Server server , int randomSimple , int randomAdvanced , int tryAndError , int ava , int lamb , int hal9000 ) { } private class Client extends Thread { private Player player ; private Connection con ; @ Override public void start ( ) { con . setPlayer ( player ) ; con . establishConnection ( "localhost" , PORT ) ; } public Client ( Player player , Connection connection ) { } } private class Server extends Thread { private Game game ; private BetterUI userinterface ; @ Override public void start ( ) { game = new Game ( ) ; userinterface = ( ( BetterUI ) ( game . main ( ) ) ) ; } public void startGame ( int player ) { } public void stopGame ( ) { } } }

Fix:
startClients ( server , 0 , 0 , 2 , 0 , 2 , 0 ) ;
Buggy code:
public class SVGResourceBitmapTextureAtlasSource extends SVGBaseBitmapTextureAtlasSource { private final Context mContext ; private final int mRawResourceID ; private final ISVGColorMapper mSVGColorMapper ; public SVGResourceBitmapTextureAtlasSource ( final Context pContext , final int pRawResourceID , final int pTexturePositionX , final int pTexturePositionY ) { } public SVGResourceBitmapTextureAtlasSource ( final Context pContext , final int pRawResourceID , final int pTexturePositionX , final int pTexturePositionY , final float pScale ) { } public SVGResourceBitmapTextureAtlasSource ( final Context pContext , final int pRawResourceID , final int pTexturePositionX , final int pTexturePositionY , final int pWidth , final int pHeight ) { } public SVGResourceBitmapTextureAtlasSource ( final Context pContext , final int pRawResourceID , final int pTexturePositionX , final int pTexturePositionY , final ISVGColorMapper pSVGColorMapper ) { } public SVGResourceBitmapTextureAtlasSource ( final Context pContext , final int pRawResourceID , final int pTexturePositionX , final int pTexturePositionY , final float pScale , final ISVGColorMapper pSVGColorMapper ) { } public SVGResourceBitmapTextureAtlasSource ( final Context pContext , final int pRawResourceID , final int pTexturePositionX , final int pTexturePositionY , final int pWidth , final int pHeight , final ISVGColorMapper pSVGColorMapper ) { } @ Override public SVGResourceBitmapTextureAtlasSource deepCopy ( ) { <START_BUG> return new SVGResourceBitmapTextureAtlasSource ( this . mContext , this . mRawResourceID , this . mTextureX , this . mTextureY , this . mTextureWidth , this . mTextureHeight , this . mSVGColorMapper ) ; <END_BUG> } private static SVG getSVG ( final Context pContext , final int pRawResourceID , final ISVGColorMapper pSVGColorMapper ) { } }

Fix:
return new SVGResourceBitmapTextureAtlasSource ( this . mContext , this . mRawResourceID , this . mTexturePositionX , this . mTexturePositionY , this . mWidth , this . mHeight , this . mSVGColorMapper ) ;
Buggy code:
public class StringProvider { File stringFile ; Locale locale ; ResourceBundle resourceBundle ; public StringProvider ( Locale locale ) { } public String get ( String id ) { <START_BUG> return resourceBundle . getString ( "test" ) ; <END_BUG> } public void updateLocale ( Locale locale ) { } }

Fix:
return resourceBundle . getString ( id ) ;
Buggy code:
public class NoteSQLiteDBModel implements NoteDBModel { private ArrayList < Note > notes = new ArrayList < Note > ( ) ; private SQLiteDatabase database ; private NoteSQLiteHelper dbHelper ; private String [ ] allColumns = new String [ ] { NoteSQLiteHelper . COLUMN_ID , NoteSQLiteHelper . COLUMN_TITLE , NoteSQLiteHelper . COLUMN_TEXT , NoteSQLiteHelper . COLUMN_DATE , NoteSQLiteHelper . COLUMN_COLOR } ; private NoteListAdapter adapter ; public NoteSQLiteDBModel ( Context context ) { } public void setAdapter ( NoteListAdapter adapter ) { } public void open ( ) throws SQLException { } public void refreshNotes ( ) { } public ArrayList < Note > getNotes ( ) { } private Note cursorToNote ( Cursor cursor ) { Date noteDate ; try { noteDate = new Date ( new SimpleDateFormat ( "yyyy-MM-dd" ) . parse ( cursor . getString ( 3 ) ) . getTime ( ) ) ; } catch ( ParseException e ) { noteDate = new Date ( 0 ) ; } <START_BUG> Note temp = new Note ( cursor . getLong ( 0 ) , cursor . getString ( 1 ) , cursor . getString ( 2 ) , noteDate , Color . WHITE ) ; <END_BUG> return temp ; } public void createNote ( Note note ) { } public void saveNote ( Note note ) { } public void deleteNote ( Note note ) { } public Note getNoteByID ( long id ) { } }

Fix:
Note temp = new Note ( cursor . getLong ( 0 ) , cursor . getString ( 1 ) , cursor . getString ( 2 ) , noteDate , cursor . getString ( 4 ) ) ;
Buggy code:
public class PointHandler extends AbstractValueHandler { public Column [ ] map ( ValueMapping vm , String name , ColumnIO io , boolean adapt ) { } public boolean isVersionable ( ) { } public Object toDataStoreValue ( ValueMapping vm , Object val , JDBCStore store ) { if ( val == null ) return null ; Point p = ( ( Point ) ( val ) ) ; <START_BUG> return new Object [ ] { Numbers . valueOf ( p . x ) , Numbers . valueOf ( p . y ) } ; <END_BUG> } public Object toObjectValue ( ValueMapping vm , Object val ) { } }

Fix:
return new Object [ ] { p . x , p . y } ;
Buggy code:
public class Echo extends AbstractTasklet { protected String m_message ; public void setMessage ( final String message ) { } public void run ( ) throws AntException { <START_BUG> getLogger ( ) . info ( m_message ) ; <END_BUG> } }

Fix:
getLogger ( ) . warn ( m_message ) ;
Buggy code:
public abstract class ProcessEnvironment { public static final String JBOSS_DOMAIN_UUID = "jboss.domain.uuid" ; public static final AttributeDefinition NAME = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . NAME , org . jboss . dmr . ModelType . STRING , true ) . setAllowExpression ( true ) . build ( ) ; public OperationStepHandler getProcessNameReadHandler ( ) { } public OperationStepHandler getProcessNameWriteHandler ( ) { } protected abstract String getProcessName ( ) { } protected abstract void setProcessName ( String processName ) { } protected abstract boolean isRuntimeSystemPropertyUpdateAllowed ( String propertyName , String propertyValue , boolean bootTime ) throws OperationFailedException { } protected abstract void systemPropertyUpdated ( String propertyName , String propertyValue ) { } protected static String resolveGUID ( final String unresolvedName ) { } private class ProcessNameWriteAttributeHandler implements OperationStepHandler { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { final ModelNode model = context . readResourceForUpdate ( EMPTY_ADDRESS ) . getModel ( ) ; final ModelNode newValue = ( operation . hasDefined ( VALUE ) ) ? operation . get ( VALUE ) : new ModelNode ( ) ; final ModelNode mockOp = new ModelNode ( ) ; mockOp . get ( ProcessEnvironment . NAME . getName ( ) ) . set ( newValue ) ; ProcessEnvironment . NAME . validateAndSet ( mockOp , model ) ; boolean booting = context . isBooting ( ) ; String resolved = null ; if ( context . isBooting ( ) ) { final ModelNode resolvedNode = ProcessEnvironment . NAME . resolveModelAttribute ( context , model ) ; resolved = ( resolvedNode . isDefined ( ) ) ? resolvedNode . asString ( ) : null ; resolved = ( resolved == null ) ? null : ProcessEnvironment . resolveGUID ( resolved ) ; } else { context . reloadRequired ( ) ; } if ( ( context . completeStep ( ) ) == ( ResultAction . KEEP ) ) { if ( booting ) { ProcessEnvironment . this . setProcessName ( resolved ) ; } } else if ( ! booting ) { context . revertReloadRequired ( ) ; } } } private class ProcessNameReadAttributeHandler implements OperationStepHandler { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { final ModelNode model = context . readResource ( EMPTY_ADDRESS ) . getModel ( ) ; if ( model . hasDefined ( ProcessEnvironment . NAME . getName ( ) ) ) { context . getResult ( ) . set ( model . get ( ProcessEnvironment . NAME . getName ( ) ) ) ; } else { context . getResult ( ) . set ( ProcessEnvironment . this . getProcessName ( ) ) ; } <START_BUG> context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; <END_BUG> } } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public class ExpandBar extends Composite { int parentingHandle ; Control [ ] children ; int itemCount ; int childCount ; int spacing ; public ExpandBar ( Composite parent , int style ) { } Control [ ] _getChildren ( ) { } void addChild ( Control control ) { } public void addExpandListener ( ExpandListener listener ) { } protected void checkSubclass ( ) { } static int checkStyle ( int style ) { style &= ~ ( SWT . H_SCROLL ) ; <START_BUG> return style | ( SWT . NO_BACKGROUND ) ; <END_BUG> } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { } void createItem ( ExpandItem item , int style , int index ) { } void createWidget ( ) { } int defaultBackground ( ) { } void deregister ( ) { } void destroyItem ( ExpandItem item ) { } void fixScrollbarVisibility ( ) { } Point getLocation ( Control child ) { } public ExpandItem getItem ( int index ) { } ExpandItem getItem ( int items , int index ) { } public int getItemCount ( ) { } public ExpandItem [ ] getItems ( ) { } int getScrollBarHandle ( int style ) { } public int getSpacing ( ) { } boolean hasItems ( ) { } public int indexOf ( ExpandItem item ) { } int parentingHandle ( ) { } void register ( ) { } void releaseChildren ( boolean destroy ) { } void releaseHandle ( ) { } void removeChild ( Control control ) { } void removeControl ( Control control ) { } public void removeExpandListener ( ExpandListener listener ) { } int setBounds ( int x , int y , int width , int height , int flags ) { } public void setSpacing ( int spacing ) { } int topHandle ( ) { } }

Fix:
return style ;
Buggy code:
public class MessagingSubsystemParser implements XMLElementReader < ParseResult < ? super MessagingSubsystemElement > > { private static final ThreadLocal < MessagingSubsystemElement > LAST_ELEMENT = new ThreadLocal < MessagingSubsystemElement > ( ) ; private static boolean useThreadLocal = false ; private static final Logger log = Logger . getLogger ( "org.jboss.as.messaging" ) ; private MessagingSubsystemParser ( ) { } private static final MessagingSubsystemParser INSTANCE = new MessagingSubsystemParser ( ) ; public static MessagingSubsystemParser getInstance ( ) { } public static void enableThreadLocal ( boolean flag ) { } public static MessagingSubsystemElement getLastSubsystemElement ( ) { } public static void clearLastSubsystemElement ( ) { } public void readElement ( final XMLExtendedStreamReader reader , final ParseResult < ? super MessagingSubsystemElement > result ) throws XMLStreamException { <START_BUG> MessagingSubsystemParser . log . debug ( ( "MessagingSubsystemElement.readElement,<seq2seq4repair_space>event=" + ( reader . getEventType ( ) ) ) ) ; <END_BUG> MessagingSubsystemElement msp = new MessagingSubsystemElement ( reader ) ; if ( MessagingSubsystemParser . useThreadLocal ) MessagingSubsystemParser . LAST_ELEMENT . set ( msp ) ; result . setResult ( msp ) ; } }

Fix:
MessagingSubsystemParser . log . debugf ( "MessagingSubsystemElement.readElement,<seq2seq4repair_space>event=%s" , reader . getEventType ( ) ) ;
Buggy code:
@ RunWith ( Arquillian . class ) public class EJBWebServicesTestCase { @ Deployment public static JavaArchive deployment ( ) { } @ Test public void testSingleton ( ) throws Exception { final String message = "<soapenv:Envelope<seq2seq4repair_space>xmlns:soapenv=\"http:////schemas.xmlsoap.org//soap//envelope//\"<seq2seq4repair_space>xmlns:test=\"http:////wsejb.integration.testsuite.as.jboss.org//\">" + ( ( ( ( ( ( "<seq2seq4repair_space><soapenv:Header//>" + "<seq2seq4repair_space><soapenv:Body>" ) + "<seq2seq4repair_space><test:setState>" ) + "<seq2seq4repair_space><arg0>Foo<//arg0>" ) + "<seq2seq4repair_space><//test:setState>" ) + "<seq2seq4repair_space><//soapenv:Body>" ) + "<//soapenv:Envelope>" ) ; <START_BUG> String result = HttpRequest . put ( "http:////localhost:8080//ejbws-example//SingletonEndpoint" , message , 10 , TimeUnit . SECONDS ) ; <END_BUG> System . out . println ( result ) ; } @ Test public void testSingletonWSDL ( ) throws Exception { } }

Fix:
String result = HttpRequest . post ( "http:////localhost:8080//ejbws-example//SingletonEndpoint" , message , 10 , TimeUnit . SECONDS ) ;
Buggy code:
public final class DaciukMihovAutomatonBuilder { static final class State { private static final int [ ] NO_LABELS = new int [ 0 ] ; private static final DaciukMihovAutomatonBuilder . State [ ] NO_STATES = new DaciukMihovAutomatonBuilder . State [ 0 ] ; int [ ] labels = DaciukMihovAutomatonBuilder . State . NO_LABELS ; DaciukMihovAutomatonBuilder . State [ ] states = DaciukMihovAutomatonBuilder . State . NO_STATES ; boolean is_final ; public DaciukMihovAutomatonBuilder . State getState ( int label ) { } public int [ ] getTransitionLabels ( ) { } public DaciukMihovAutomatonBuilder . State [ ] getStates ( ) { } @ Override public boolean equals ( Object obj ) { } public boolean hasChildren ( ) { } public boolean isFinal ( ) { } @ Override public int hashCode ( ) { } DaciukMihovAutomatonBuilder . State newState ( int label ) { } DaciukMihovAutomatonBuilder . State lastChild ( ) { } DaciukMihovAutomatonBuilder . State lastChild ( int label ) { } void replaceLastChild ( DaciukMihovAutomatonBuilder . State state ) { } private static int [ ] copyOf ( int [ ] original , int newLength ) { } public static DaciukMihovAutomatonBuilder . State [ ] copyOf ( DaciukMihovAutomatonBuilder . State [ ] original , int newLength ) { } private static boolean referenceEquals ( Object [ ] a1 , Object [ ] a2 ) { } } private HashMap < DaciukMihovAutomatonBuilder . State , DaciukMihovAutomatonBuilder . State > register = new HashMap < DaciukMihovAutomatonBuilder . State , DaciukMihovAutomatonBuilder . State > ( ) ; private DaciukMihovAutomatonBuilder . State root = new DaciukMihovAutomatonBuilder . State ( ) ; private CharsRef previous ; private static final Comparator < CharsRef > comparator = CharsRef . getUTF16SortedAsUTF8Comparator ( ) ; public void add ( CharsRef current ) { } public DaciukMihovAutomatonBuilder . State complete ( ) { } private static State convert ( DaciukMihovAutomatonBuilder . State s , IdentityHashMap < DaciukMihovAutomatonBuilder . State , org . apache . lucene . util . automaton . State > visited ) { } public static Automaton build ( Collection < BytesRef > input ) { } private boolean setPrevious ( CharsRef current ) { <START_BUG> previous = new CharsRef ( current ) ; <END_BUG> return true ; } private void replaceOrRegister ( DaciukMihovAutomatonBuilder . State state ) { } private void addSuffix ( DaciukMihovAutomatonBuilder . State state , CharSequence current , int fromIndex ) { } }

Fix:
previous = CharsRef . deepCopyOf ( current ) ;
Buggy code:
public class FileSystemUtils { private static final FileSystemUtils INSTANCE = new FileSystemUtils ( ) ; private static final int INIT_PROBLEM = - 1 ; private static final int OTHER = 0 ; private static final int WINDOWS = 1 ; private static final int UNIX = 2 ; private static final int POSIX_UNIX = 3 ; private static final int OS ; private static final String DF ; public FileSystemUtils ( ) { } @ Deprecated public static long freeSpace ( String path ) throws IOException { } public static long freeSpaceKb ( String path ) throws IOException { } public static long freeSpaceKb ( String path , long timeout ) throws IOException { } public static long freeSpaceKb ( ) throws IOException { } public static long freeSpaceKb ( long timeout ) throws IOException { } long freeSpaceOS ( String path , int os , boolean kb , long timeout ) throws IOException { if ( path == null ) { throw new IllegalArgumentException ( "Path<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>empty" ) ; } switch ( os ) { case FileSystemUtils . WINDOWS : <START_BUG> return kb ? ( freeSpaceWindows ( path , timeout ) ) // 1024 : freeSpaceWindows ( path , timeout ) ; <END_BUG> case FileSystemUtils . UNIX : return freeSpaceUnix ( path , kb , false , timeout ) ; case FileSystemUtils . POSIX_UNIX : return freeSpaceUnix ( path , kb , true , timeout ) ; case FileSystemUtils . OTHER : throw new IllegalStateException ( "Unsupported<seq2seq4repair_space>operating<seq2seq4repair_space>system" ) ; default : throw new IllegalStateException ( "Exception<seq2seq4repair_space>caught<seq2seq4repair_space>when<seq2seq4repair_space>determining<seq2seq4repair_space>operating<seq2seq4repair_space>system" ) ; } } long freeSpaceWindows ( String path , long timeout ) throws IOException { } long parseDir ( String line , String path ) throws IOException { } long freeSpaceUnix ( String path , boolean kb , boolean posix , long timeout ) throws IOException { } long parseBytes ( String freeSpace , String path ) throws IOException { } List < String > performCommand ( String [ ] cmdAttribs , int max , long timeout ) throws IOException { } Process openProcess ( String [ ] cmdAttribs ) throws IOException { } }

Fix:
return kb ? ( freeSpaceWindows ( path , timeout ) ) // ( FileUtils . ONE_KB ) : freeSpaceWindows ( path , timeout ) ;
Buggy code:
class DayView extends CheckedTextView { private long date ; private int selectionColor = Color . GRAY ; private final int fadeTime ; public DayView ( Context context ) { } public DayView ( Context context , AttributeSet attrs ) { } public void setDay ( long date ) { } public void setSelectionColor ( int color ) { } public long getDate ( ) { } @ Override public void setEnabled ( boolean enabled ) { } protected void setupSelection ( boolean showOtherDates , boolean inRange , boolean inMonth , boolean disabled ) { boolean enabled = ( inMonth && inRange ) && ( ! disabled ) ; setEnabled ( enabled ) ; <START_BUG> setVisibility ( ( ( enabled || showOtherDates ) || ( disabled && inMonth ) ? View . VISIBLE : View . INVISIBLE ) ) ; <END_BUG> } private static Drawable generateBackground ( int color , int fadeTime ) { } private static Drawable generateCircleDrawable ( final int color ) { } @ TargetApi ( VERSION_CODES . LOLLIPOP ) private static Drawable generateRippleDrawable ( final int color ) { } }

Fix:
setVisibility ( ( ( enabled || showOtherDates ) || ( disabled && inMonth ) ? View . VISIBLE : View . GONE ) ) ;
Buggy code:
public class AccountDatabase { public int getSize ( ) { } public Account getAccount ( int AccountNumber ) { <START_BUG> Account acc = new Account ( ) ; <END_BUG> return acc ; } public void createNewAccount ( int accountNumber ) { } }

Fix:
Account acc = new Account ( 0 ) ;
Buggy code:
public class NimbusClient extends ThriftClient { private Client _client ; private static final Logger LOG = LoggerFactory . getLogger ( NimbusClient . class ) ; public static NimbusClient getConfiguredClient ( Map conf ) { try { String nimbusHost = ( ( String ) ( conf . get ( NIMBUS_HOST ) ) ) ; int nimbusPort = Utils . getInt ( conf . get ( NIMBUS_THRIFT_PORT ) ) ; <START_BUG> Integer timeout = new Integer ( Utils . getInt ( conf . get ( NIMBUS_TASK_TIMEOUT_SECS ) ) ) ; <END_BUG> return new NimbusClient ( conf , nimbusHost , nimbusPort , timeout ) ; } catch ( TTransportException ex ) { NimbusClient . LOG . info ( ex . getMessage ( ) , ex ) ; throw new RuntimeException ( ex ) ; } } public NimbusClient ( Map conf , String host , int port ) throws TTransportException { } public NimbusClient ( Map conf , String host , int port , Integer timeout ) throws TTransportException { } public Client getClient ( ) { } }

Fix:
Integer timeout = Utils . getInt ( conf . get ( NIMBUS_TASK_TIMEOUT_SECS ) ) ;
Buggy code:
public class ScarabRequestTool implements Recyclable , ScarabRequestScope { private RunData data ; private ScarabUser user = null ; private Issue issue = null ; private Attribute attribute = null ; private Attachment attachment = null ; private Depend depend = null ; private Query query = null ; private ModuleEntity module = null ; private AttributeOption attributeOption = null ; private int nbrPages = 0 ; private int prevPage = 0 ; private int nextPage = 0 ; public void init ( Object data ) { } public void refresh ( ) { } public ScarabRequestTool ( ) { } public void setAttribute ( Attribute attribute ) { } public void setDepend ( Depend depend ) { } public void setQuery ( Query query ) { } private IntakeTool getIntakeTool ( ) { } public void setAttributeOption ( AttributeOption option ) { } public AttributeOption getAttributeOption ( ) throws Exception { } public void setUser ( ScarabUser user ) { } public ScarabUser getUser ( ) { } public ScarabUser getUser ( Object id ) throws Exception { } public Attribute getAttribute ( ) throws Exception { } public Query getQuery ( ) throws Exception { } public Depend getDepend ( ) throws Exception { } public Attachment getAttachment ( ) throws Exception { } public void setModule ( ModuleEntity module ) { } public ModuleEntity getModule ( ) throws Exception { } public RModuleAttribute getRModuleAttribute ( ) throws Exception { } public ModuleEntity getModule ( String key ) throws Exception { } public void setIssue ( Issue issue ) { } public Issue getIssue ( ) throws Exception { } public List getIssues ( ) throws Exception { } public IssueSearch getSearch ( ) throws Exception { } public Issue getIssue ( String key ) { } public List getPaginatedList ( List fullList , int pgNbr , int nbrItemsPerPage ) { } public List getIssueList ( ) throws Exception { List issueList = new ArrayList ( ) ; ScarabUser user = ( ( ScarabUser ) ( data . getUser ( ) ) ) ; <START_BUG> List issueIdList = ( ( List ) ( user . getTemp ( "issueIdList" ) ) ) ; <END_BUG> for ( int i = 0 ; i < ( issueIdList . size ( ) ) ; i ++ ) { Issue issue = ( ( Issue ) ( IssuePeer . retrieveByPK ( ( ( NumberKey ) ( issueIdList . get ( i ) ) ) ) ) ) ; issueList . add ( issue ) ; } return issueList ; } public int getNbrPages ( ) { } public int getNextPage ( ) { } public int getPrevPage ( ) { } private boolean disposed ; public void recycle ( ) { } public void dispose ( ) { } public boolean isDisposed ( ) { } }

Fix:
List issueIdList = ( ( List ) ( user . getTemp ( ISSUE_ID_LIST ) ) ) ;
Buggy code:
public final class Main { private Main ( ) { } public static void main ( String [ ] args ) { SecurityActions . setSystemProperty ( "log4j.defaultInitOverride" , "true" ) ; new BridgeRepositorySelector ( ) . start ( ) ; StdioContext . install ( ) ; final StdioContext context = StdioContext . create ( new NullInputStream ( ) , new org . jboss . stdio . LoggingOutputStream ( Logger . getLogger ( "stdout" ) , Level . INFO ) , new org . jboss . stdio . LoggingOutputStream ( Logger . getLogger ( "stderr" ) , Level . ERROR ) ) ; StdioContext . setStdioContextSelector ( new org . jboss . stdio . SimpleStdioContextSelector ( context ) ) ; try { ServerEnvironment serverEnvironment = Main . determineEnvironment ( args , new Properties ( SecurityActions . getSystemProperties ( ) ) , SecurityActions . getSystemEnvironment ( ) ) ; if ( serverEnvironment == null ) { Main . abort ( null ) ; } else { final Bootstrap bootstrap = Factory . newInstance ( ) ; final Bootstrap . Configuration configuration = new Bootstrap . Configuration ( ) ; configuration . setServerEnvironment ( serverEnvironment ) ; configuration . setModuleLoader ( Module . getSystemModuleLoader ( ) ) ; <START_BUG> bootstrap . start ( configuration , Collections . < ServiceActivator > emptyList ( ) ) . get ( ) ; <END_BUG> return ; } } catch ( Throwable t ) { Main . abort ( t ) ; } } private static void abort ( Throwable t ) { } public static ServerEnvironment determineEnvironment ( String [ ] args , Properties systemProperties , Map < String , String > systemEnvironment ) { } private static URL makeURL ( String urlspec ) throws MalformedURLException { } }

Fix:
bootstrap . bootstrap ( configuration , Collections . < ServiceActivator > emptyList ( ) ) . get ( ) ;
Buggy code:
public class Translator extends Tool { private HashMap < String , CompilationUnit > dependencies ; private List < CompilationUnit > order ; private String path ; private String output ; public Translator ( String path , String output ) { } public String getName ( ) { } public String getCopy ( ) { } public void init ( ) { } public Node parse ( Reader in , File file ) throws IOException , ParseException { } public void createFile ( String s , String extension ) throws IOException { } public String createHeader ( CompilationUnit main ) { } public String createCC ( CompilationUnit main ) { } public void resolveDependencies ( List < Declaration > declarations ) throws IOException , ParseException { List < String > dirs = new ArrayList < String > ( ) ; for ( Declaration d : declarations ) { if ( d instanceof PackageDeclaration ) { QualifiedIdentifier pack = ( ( PackageDeclaration ) ( d ) ) . getPackage ( ) ; for ( String s : pack ) { dirs . add ( ( ( ( path ) + s ) + "//" ) ) ; } } else if ( d instanceof ImportDeclaration ) { QualifiedIdentifier im = ( ( ImportDeclaration ) ( d ) ) . getImport ( ) ; String dirpath = path ; int size = im . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { String s = im . get ( i ) ; if ( i < ( size - 1 ) ) dirpath += s + "//" ; } dirs . add ( dirpath ) ; } } for ( String dir : dirs ) { File p = new File ( dir ) ; if ( p . isDirectory ( ) ) { File [ ] pFiles = p . listFiles ( ) ; for ( File f : pFiles ) { <START_BUG> if ( ( ! ( f . isDirectory ( ) ) ) && ( ! ( dependencies . containsKey ( f . getPath ( ) ) ) ) ) { <END_BUG> CompilationUnit c = parseFile ( f . getPath ( ) ) ; dependencies . put ( f . getPath ( ) , c ) ; try { resolveDependencies ( c . getDependencies ( ) ) ; } catch ( IOException e ) { runtime . console ( ) . p ( "Error<seq2seq4repair_space>resolving<seq2seq4repair_space>dependencies.<seq2seq4repair_space>Files<seq2seq4repair_space>missing." ) . pln ( ) . flush ( ) ; } catch ( ParseException e ) { runtime . console ( ) . p ( "Error<seq2seq4repair_space>parsing<seq2seq4repair_space>dependencies.<seq2seq4repair_space>Invalid<seq2seq4repair_space>files." ) . pln ( ) . flush ( ) ; } } } } } } public CompilationUnit parseFile ( String f ) throws IOException , ParseException { } public void process ( Node node ) { } public static void main ( String [ ] args ) { } }

Fix:
if ( ( ( ! ( f . isDirectory ( ) ) ) && ( ! ( dependencies . containsKey ( f . getPath ( ) ) ) ) ) && ( ( f . getPath ( ) . indexOf ( ".java" ) ) > ( - 1 ) ) ) {
Buggy code:
@ Path ( "apps" ) public class AppResource implements RESTResource { private final Logger logger = LoggerFactory . getLogger ( AppResource . class ) ; private static ManagedAppProvider managedAppProvider ; private static AppRegistry appRegistry ; private static EventPublisher eventPublisher ; private static Set < AppFactory > appFactories = new HashSet < > ( ) ; @ Context UriInfo uriInfo ; @ GET @ Produces ( MediaType . APPLICATION_XML ) public Response getApps ( ) { } @ GET @ Path ( "//{appname:[a-zA-Z_0-9]*}//state" ) @ Produces ( { MediaType . TEXT_PLAIN } ) public Response getPlainAppState ( @ PathParam ( "appname" ) String appname ) { } @ GET @ Path ( "{appname:<seq2seq4repair_space>[a-zA-Z_0-9]*}" ) @ Produces ( { MediaType . WILDCARD } ) public Response getAppData ( @ PathParam ( "appname" ) String appname ) { } @ PUT @ Path ( "//{appname:<seq2seq4repair_space>[a-zA-Z_0-9]*}//state" ) @ Consumes ( MediaType . TEXT_PLAIN ) public Response putAppState ( @ PathParam ( "appname" ) String appname , String value ) { } @ Context UriInfo localUriInfo ; @ POST @ Path ( "//{appname:<seq2seq4repair_space>[a-zA-Z_0-9]*}" ) @ Consumes ( MediaType . TEXT_PLAIN ) public Response postAppCommand ( @ PathParam ( "appname" ) String appname , String value ) { } @ PUT @ Path ( "//{appname:<seq2seq4repair_space>[a-zA-Z_0-9]*}" ) @ Consumes ( MediaType . TEXT_PLAIN ) public Response createOrUpdate ( @ PathParam ( "appname" ) String appname , String appType ) { } @ DELETE <START_BUG> @ Path ( "{//appname:<seq2seq4repair_space>[a-zA-Z_0-9]*}" ) <END_BUG> public Response removeApp ( @ PathParam ( "appname" ) String appname ) { if ( ( AppResource . managedAppProvider . removeApp ( appname ) ) == null ) { logger . info ( "Received<seq2seq4repair_space>HTTP<seq2seq4repair_space>DELETE<seq2seq4repair_space>reqeust<seq2seq4repair_space>at<seq2seq4repair_space>'{}'<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>unknown<seq2seq4repair_space>app<seq2seq4repair_space>'{}'." , uriInfo . getPath ( ) , appname ) ; return Response . status ( NOT_FOUND ) . build ( ) ; } return Response . ok ( ) . build ( ) ; } protected void setManagedAppProvider ( ManagedAppProvider managedAppProvider ) { } protected void unsetManagedAppProvider ( ) { } protected void setAppRegistry ( AppRegistry appRegistry ) { } protected void unsetAppRegistry ( AppRegistry appRegistry ) { } protected void setEventPublisher ( EventPublisher eventPublisher ) { } protected void unsetEventPublisher ( EventPublisher eventPublisher ) { } protected void setAppFactory ( AppFactory appFactory ) { } protected void unsetAppFactory ( AppFactory appFactory ) { } private List < AppBean > getAppBeans ( ) { } private App getApp ( String appname ) { } private AppBean getAppBean ( String appname ) { } }

Fix:
@ Path ( "//{appname:<seq2seq4repair_space>[a-zA-Z_0-9]*}" )
Buggy code:
public class BulkLoad2 extends Configured implements Tool { private static final Logger LOG = LoggerFactory . getLogger ( BulkLoad2 . class ) ; public static final String JOB_NAME = "ArchiveGraph<seq2seq4repair_space>ES<seq2seq4repair_space>Bulk<seq2seq4repair_space>Loader2" ; public static final String HOST_LIST_PROPERTY = "org.collective.es.hostlist" ; public static final String INDEX_NAME_OVERRIDE = "index.name.override" ; private enum COUNTERS { SUCCESSFUL , FAILURES ; } public static void main ( String [ ] args ) throws Exception { } @ Override public int run ( String [ ] args ) throws Exception { <START_BUG> if ( ( args . length ) != 2 ) { <END_BUG> BulkLoad2 . LOG . error ( ( ( "Usage:" + ( BulkLoad2 . class . getSimpleName ( ) ) ) + "<seq2seq4repair_space><input-file><seq2seq4repair_space><es-host-name><seq2seq4repair_space>[optional-index-override]" ) ) ; return 1 ; } Configuration conf = getConf ( ) ; if ( ( conf . getClassLoader ( ) ) == null ) { conf . setClassLoader ( this . getClass ( ) . getClassLoader ( ) ) ; } conf . set ( BulkLoad2 . HOST_LIST_PROPERTY , args [ 1 ] ) ; String rejectsFile = ( args [ 0 ] . substring ( ( ( args [ 0 ] . lastIndexOf ( "//" ) ) + 1 ) ) ) + ".rejects" ; BulkLoad2 . LOG . info ( "rejects<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>output<seq2seq4repair_space>to<seq2seq4repair_space>{}" , rejectsFile ) ; if ( ( args . length ) > 2 ) { conf . set ( BulkLoad2 . INDEX_NAME_OVERRIDE , args [ 2 ] ) ; BulkLoad2 . LOG . info ( "index<seq2seq4repair_space>name<seq2seq4repair_space>override({})<seq2seq4repair_space>requested" , args [ 2 ] ) ; } Job job = Job . getInstance ( conf , BulkLoad2 . JOB_NAME ) ; job . setJarByClass ( this . getClass ( ) ) ; job . setMapperClass ( BulkLoad2 . Mapper . class ) ; job . setOutputKeyClass ( Text . class ) ; job . setOutputValueClass ( Text . class ) ; job . setNumReduceTasks ( 0 ) ; TextInputFormat . setInputPaths ( job , new Path ( args [ 0 ] ) ) ; TextOutputFormat . setOutputPath ( job , new Path ( rejectsFile ) ) ; LazyOutputFormat . setOutputFormatClass ( job , TextOutputFormat . class ) ; return job . waitForCompletion ( true ) ? 0 : 1 ; } public static class Mapper extends org . apache . hadoop . mapreduce . Mapper < LongWritable , Text , Text , Text > { private Text failureReason = new Text ( ) ; private Text ID = new Text ( ) ; private ESClient indexer ; private BulkProcessor bulkProcessor ; private BulkRequestBuilder bulkRequestBuilder ; private String indexNameOverride ; @ Override protected void setup ( Context context ) throws IOException , InterruptedException { } @ Override protected void cleanup ( Context context ) throws IOException , InterruptedException { } @ Override protected void map ( LongWritable key , Text value , Context context ) throws IOException , InterruptedException { } } }

Fix:
if ( ( args . length ) < 2 ) {
Buggy code:
public class DesktopLauncher { public static void main ( String [ ] arg ) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration ( ) ; config . width = 1280 ; <START_BUG> config . height = 800 ; <END_BUG> new com . badlogic . gdx . backends . lwjgl . LwjglApplication ( new SpacialOutcast ( ) , config ) ; } }

Fix:
config . height = 720 ;
Buggy code:
class BufferPrintable extends WorkRequest implements Printable { BufferPrintable ( PrinterJob job , Object format , View view , Buffer buffer , Font font , boolean header , boolean footer , boolean lineNumbers , boolean color ) { } public void run ( ) { } public int print ( Graphics _gfx , PageFormat pageFormat , int pageIndex ) throws PrinterException { } private static Color headerColor = Color . lightGray ; private static Color headerTextColor = Color . black ; private static Color footerColor = Color . lightGray ; private static Color footerTextColor = Color . black ; private static Color lineNumberColor = Color . gray ; private static Color textColor = Color . black ; private PrinterJob job ; private Object format ; private View view ; private Buffer buffer ; private Font font ; private SyntaxStyle [ ] styles ; private boolean header ; private boolean footer ; private boolean lineNumbers ; private int currentPage ; private int currentPageStart ; private int currentPhysicalLine ; private boolean end ; private LineMetrics lm ; private ArrayList lineList ; private DisplayTokenHandler tokenHandler ; private void printPage ( Graphics _gfx , PageFormat pageFormat , int pageIndex , boolean actuallyPaint ) { } private double paintHeader ( Graphics2D gfx , double pageX , double pageY , double pageWidth , boolean actuallyPaint ) { <START_BUG> String headerText = jEdit . getProperty ( "print.headerText" , new String [ ] { buffer . getPath ( ) } ) ; <END_BUG> FontRenderContext frc = gfx . getFontRenderContext ( ) ; lm = font . getLineMetrics ( headerText , frc ) ; Rectangle2D bounds = font . getStringBounds ( headerText , frc ) ; Rectangle2D headerBounds = new Rectangle2D . Double ( pageX , pageY , pageWidth , bounds . getHeight ( ) ) ; if ( actuallyPaint ) { gfx . setColor ( BufferPrintable . headerColor ) ; gfx . fill ( headerBounds ) ; gfx . setColor ( BufferPrintable . headerTextColor ) ; gfx . drawString ( headerText , ( ( float ) ( pageX + ( ( pageWidth - ( bounds . getWidth ( ) ) ) // 2 ) ) ) , ( ( float ) ( pageY + ( lm . getAscent ( ) ) ) ) ) ; } return headerBounds . getHeight ( ) ; } private double paintFooter ( Graphics2D gfx , double pageX , double pageY , double pageWidth , double pageHeight , int pageIndex , boolean actuallyPaint ) { } static class PrintTabExpander implements TabExpander { private double tabWidth ; public PrintTabExpander ( double tabWidth ) { } public float nextTabStop ( float x , int tabOffset ) { } } }

Fix:
String headerText = jEdit . getProperty ( "print.headerText" , new String [ ] { buffer . getName ( ) } ) ;