nus-yam/ex-repair huggingface dataset:
Buggy code:
public class TestRegexFunction extends JMeterTestCase { private static final String INPUT_VARIABLE_NAME = "INVAR" ; private RegexFunction variable ; private SampleResult result ; private Collection < CompoundVariable > params ; private JMeterVariables vars ; private JMeterContext jmctx ; public TestRegexFunction ( String name ) { } @ Override public void setUp ( ) { variable = new RegexFunction ( ) ; result = new SampleResult ( ) ; jmctx = JMeterContextService . getContext ( ) ; String data = "<company-xmlext-query-ret><row>" + ( ( ( ( ( ( ( ( ( ( ( ( "<value<seq2seq4repair_space>field=\"RetCode\">" + "LIS_OK<//value><value" ) + "<seq2seq4repair_space>field=\"RetCodeExtension\"><//value>" ) + "<value<seq2seq4repair_space>field=\"alias\"><//value><value" ) + "<seq2seq4repair_space>field=\"positioncount\"><//value>" ) + "<value<seq2seq4repair_space>field=\"invalidpincount\">0<//value><value" ) + "<seq2seq4repair_space>field=\"pinposition1\">1<//value><value" ) + "<seq2seq4repair_space>field=\"pinpositionvalue1\"><//value><value" ) + "<seq2seq4repair_space>field=\"pinposition2\">5<//value><value" ) + "<seq2seq4repair_space>field=\"pinpositionvalue2\"><//value><value" ) + "<seq2seq4repair_space>field=\"pinposition3\">6<//value><value" ) + "<seq2seq4repair_space>field=\"pinpositionvalue3\"><//value>" ) + "<//row><//company-xmlext-query-ret>" ) ; <START_BUG> result . setResponseData ( data . getBytes ( ) ) ; <END_BUG> vars = new JMeterVariables ( ) ; String data2 = "The<seq2seq4repair_space>quick<seq2seq4repair_space>brown<seq2seq4repair_space>fox<seq2seq4repair_space>jumped<seq2seq4repair_space>over<seq2seq4repair_space>the<seq2seq4repair_space>lazy<seq2seq4repair_space>dog<seq2seq4repair_space>123<seq2seq4repair_space>times" ; vars . put ( TestRegexFunction . INPUT_VARIABLE_NAME , data2 ) ; jmctx . setVariables ( vars ) ; jmctx . setPreviousResult ( result ) ; } public void testVariableExtraction ( ) throws Exception { } public void testVariableExtraction1a ( ) throws Exception { } public void testVariableExtraction1b ( ) throws Exception { } public void testVariableExtractionFromVariable ( ) throws Exception { } public void testVariableExtractionFromVariable2 ( ) throws Exception { } public void testVariableExtractionFromVariable3 ( ) throws Exception { } public void testVariableExtractionFromVariable4 ( ) throws Exception { } public void testVariableExtractionFromVariable5 ( ) throws Exception { } public void testVariableExtractionFromVariable6 ( ) throws Exception { } public void testVariableExtractionFromVariable7 ( ) throws Exception { } public void testVariableExtractionFromVariable8 ( ) throws Exception { } public void testVariableExtractionFromVariable9 ( ) throws Exception { } public void testVariableExtraction2 ( ) throws Exception { } public void testVariableExtraction5 ( ) throws Exception { } public void testVariableExtraction6 ( ) throws Exception { } public void testComma ( ) throws Exception { } public void testVariableExtraction3 ( ) throws Exception { } public void testVariableExtraction4 ( ) throws Exception { } public void testDefaultValue ( ) throws Exception { } }

Fix:
result . setResponseData ( data , null ) ;
Buggy code:
public abstract class MergePolicy implements Closeable { public static class OneMerge { SegmentInfo info ; boolean mergeDocStores ; boolean optimize ; boolean registerDone ; long mergeGen ; boolean isExternal ; int maxNumSegmentsOptimize ; SegmentReader [ ] readers ; SegmentReader [ ] readersClone ; public final SegmentInfos segments ; boolean aborted ; Throwable error ; boolean paused ; public OneMerge ( SegmentInfos segments ) { } synchronized void setException ( Throwable error ) { } synchronized Throwable getException ( ) { } synchronized void abort ( ) { } synchronized boolean isAborted ( ) { } synchronized void checkAborted ( Directory dir ) throws MergePolicy . MergeAbortedException { } public synchronized void setPause ( boolean paused ) { } public synchronized boolean getPause ( ) { } public String segString ( Directory dir ) { } public long totalBytesSize ( ) throws IOException { long total = 0 ; for ( SegmentInfo info : segments ) { <START_BUG> total += info . sizeInBytes ( ) ; <END_BUG> } return total ; } public int totalNumDocs ( ) throws IOException { } } public static class MergeSpecification { public final List < MergePolicy . OneMerge > merges = new ArrayList < MergePolicy . OneMerge > ( ) ; public void add ( MergePolicy . OneMerge merge ) { } public String segString ( Directory dir ) { } } public static class MergeException extends RuntimeException { private Directory dir ; public MergeException ( String message , Directory dir ) { } public MergeException ( Throwable exc , Directory dir ) { } public Directory getDirectory ( ) { } } public static class MergeAbortedException extends IOException { public MergeAbortedException ( ) { } public MergeAbortedException ( String message ) { } } protected final SetOnce < IndexWriter > writer ; public MergePolicy ( ) { } public void setIndexWriter ( IndexWriter writer ) { } public abstract MergePolicy . MergeSpecification findMerges ( SegmentInfos segmentInfos ) throws IOException , CorruptIndexException { } public abstract MergePolicy . MergeSpecification findMergesForOptimize ( SegmentInfos segmentInfos , int maxSegmentCount , Set < SegmentInfo > segmentsToOptimize ) throws IOException , CorruptIndexException { } public abstract MergePolicy . MergeSpecification findMergesToExpungeDeletes ( SegmentInfos segmentInfos ) throws IOException , CorruptIndexException { } public abstract void close ( ) { } public abstract boolean useCompoundFile ( SegmentInfos segments , SegmentInfo newSegment ) throws IOException { } public abstract boolean useCompoundDocStore ( SegmentInfos segments ) { } }

Fix:
total += info . sizeInBytes ( true ) ;
Buggy code:
public class Files { private Files ( ) { } public static String extension ( final String path ) { } public static String basePath ( final String path , final String extension ) { } public static String filename ( final String path ) { <START_BUG> return Strings . lastPathComponent ( path . replace ( '//' , separatorChar ) , separatorChar ) ; <END_BUG> } public static final void writeTo ( final File file , final InputStream input ) throws IOException { } public static boolean remove ( final File file ) { } }

Fix:
return Strings . lastPathComponent ( path . replace ( '//' , File . separatorChar ) , File . separatorChar ) ;
Buggy code:
public class EnhancedForStatement extends Statement { public static final ChildPropertyDescriptor PARAMETER_PROPERTY = new ChildPropertyDescriptor ( EnhancedForStatement . class , "parameter" , SingleVariableDeclaration . class , ASTNode . MANDATORY , ASTNode . CYCLE_RISK ) ; public static final ChildPropertyDescriptor EXPRESSION_PROPERTY = new ChildPropertyDescriptor ( EnhancedForStatement . class , "expression" , Expression . class , ASTNode . MANDATORY , ASTNode . CYCLE_RISK ) ; public static final ChildPropertyDescriptor BODY_PROPERTY = new ChildPropertyDescriptor ( EnhancedForStatement . class , "body" , Statement . class , ASTNode . MANDATORY , ASTNode . CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; public static List propertyDescriptors ( int apiLevel ) { } private SingleVariableDeclaration parameter = null ; private Expression expression = null ; private Statement body = null ; EnhancedForStatement ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { EnhancedForStatement result = new EnhancedForStatement ( target ) ; <START_BUG> result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <END_BUG> result . copyLeadingComment ( this ) ; result . setParameter ( ( ( SingleVariableDeclaration ) ( getParameter ( ) . clone ( target ) ) ) ) ; result . setExpression ( ( ( Expression ) ( getExpression ( ) . clone ( target ) ) ) ) ; result . setBody ( ( ( Statement ) ( ASTNode . copySubtree ( target , getBody ( ) ) ) ) ) ; return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public SingleVariableDeclaration getParameter ( ) { } public void setParameter ( SingleVariableDeclaration parameter ) { } public Expression getExpression ( ) { } public void setExpression ( Expression expression ) { } public Statement getBody ( ) { } public void setBody ( Statement statement ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ;
Buggy code:
public class FriendDetails extends NavigationActivity { private FirebaseInterfacer interfacer ; private Friend friend ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; Firebase . setAndroidContext ( this ) ; setContentView ( activity_friend_details ) ; super . onCreateDrawer ( ) ; Bundle data = getIntent ( ) . getExtras ( ) ; if ( data . containsKey ( "EXTRA_Friend" ) ) { if ( savedInstanceState == null ) { FriendDetails . PlaceholderFragment placeholder = new FriendDetails . PlaceholderFragment ( ) ; placeholder . setArguments ( data ) ; <START_BUG> getSupportFragmentManager ( ) . beginTransaction ( ) . add ( content , placeholder ) . commit ( ) ; <END_BUG> } interfacer = new FirebaseInterfacer ( ) ; friend = data . getParcelable ( "EXTRA_Friend" ) ; } } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public static class PlaceholderFragment extends Fragment { private Friend mFriend ; TextView mNameText ; TextView mEmailText ; TextView mRatingText ; public PlaceholderFragment ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } } }

Fix:
getSupportFragmentManager ( ) . beginTransaction ( ) . add ( container , placeholder ) . commit ( ) ;
Buggy code:
public class Link extends Control { String text ; TextLayout layout ; Color linkColor ; Color disabledColor ; Point [ ] offsets ; Point selection ; String [ ] ids ; int [ ] mnemonics ; int focusIndex ; int font ; static final RGB LINK_FOREGROUND = new RGB ( 0 , 51 , 153 ) ; static final int LinkProc ; static final TCHAR LinkClass = new TCHAR ( 0 , OS . WC_LINK , true ) ; public Link ( Composite parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { super . createHandle ( ) ; <START_BUG> state |= TRANSPARENT ; <END_BUG> if ( ( OS . COMCTL32_MAJOR ) < 6 ) { layout = new TextLayout ( display ) ; linkColor = new Color ( display , Link . LINK_FOREGROUND ) ; disabledColor = Color . win32_new ( display , OS . GetSysColor ( COLOR_GRAYTEXT ) ) ; offsets = new Point [ 0 ] ; ids = new String [ 0 ] ; mnemonics = new int [ 0 ] ; selection = new Point ( ( - 1 ) , ( - 1 ) ) ; focusIndex = - 1 ; } } void createWidget ( ) { } void drawWidget ( GC gc , RECT rect ) { } void enableWidget ( boolean enabled ) { } void initAccessible ( ) { } String getNameText ( ) { } Rectangle [ ] getRectangles ( int linkIndex ) { } public String getText ( ) { } String parse ( String string ) { } int parseMnemonics ( char [ ] buffer , int start , int end , StringBuffer result ) { } void releaseWidget ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setText ( String string ) { } int widgetStyle ( ) { } TCHAR windowClass ( ) { } int windowProc ( ) { } LRESULT WM_CHAR ( int wParam , int lParam ) { } LRESULT WM_GETDLGCODE ( int wParam , int lParam ) { } LRESULT WM_GETFONT ( int wParam , int lParam ) { } LRESULT WM_KEYDOWN ( int wParam , int lParam ) { } LRESULT WM_KILLFOCUS ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDOWN ( int wParam , int lParam ) { } LRESULT WM_LBUTTONUP ( int wParam , int lParam ) { } LRESULT WM_MOUSEMOVE ( int wParam , int lParam ) { } LRESULT WM_PAINT ( int wParam , int lParam ) { } LRESULT WM_PRINTCLIENT ( int wParam , int lParam ) { } LRESULT WM_SETFOCUS ( int wParam , int lParam ) { } LRESULT WM_SETFONT ( int wParam , int lParam ) { } LRESULT WM_SIZE ( int wParam , int lParam ) { } LRESULT wmColorChild ( int wParam , int lParam ) { } LRESULT wmNotifyChild ( int wParam , int lParam ) { } }

Fix:
state |= THEME_BACKGROUND ;
Buggy code:
public class TestLucene40TermVectorsFormat extends BaseTermVectorsFormatTestCase { @ Override protected Codec getCodec ( ) { <START_BUG> return new Lucene40Codec ( ) ; <END_BUG> } }

Fix:
return new Lucene40RWCodec ( ) ;
Buggy code:
public class ContextXmlReader extends BaseInterceptor { private static StringManager sm = StringManager . getManager ( "org.apache.tomcat.resources" ) ; public ContextXmlReader ( ) { } String configFile = null ; static final String DEFAULT_CONFIG = "conf//server.xml" ; public void setConfig ( String s ) { } public void setHome ( String h ) { } public void engineInit ( ContextManager cm ) throws TomcatException { } public static void setContextRules ( XmlMapper xh ) { xh . addRule ( "Context" , xh . objectCreate ( "org.apache.tomcat.core.Context" ) ) ; xh . addRule ( "Context" , xh . setProperties ( ) ) ; xh . addRule ( "Context" , xh . setParent ( "setContextManager" ) ) ; <START_BUG> xh . addRule ( "Host" , xh . setVariable ( "current_host" , "name" ) ) ; <END_BUG> xh . addRule ( "Host" , xh . setProperties ( ) ) ; xh . addRule ( "Context" , new XmlAction ( ) { public void end ( SaxContext ctx ) throws Exception { Context tcCtx = ( ( Context ) ( ctx . currentObject ( ) ) ) ; String host = ( ( String ) ( ctx . getVariable ( "current_host" ) ) ) ; if ( ( host != null ) && ( ! ( "DEFAULT" . equals ( host ) ) ) ) tcCtx . setHost ( host ) ; } } ) ; xh . addRule ( "Context" , xh . addChild ( "addContext" , "org.apache.tomcat.core.Context" ) ) ; } private static void setBackward ( XmlMapper xh ) { } public void addTagRules ( ContextManager cm , XmlMapper xh ) throws TomcatException { } }

Fix:
xh . addRule ( "Host" , xh . setVar ( "current_host" , "name" ) ) ;
Buggy code:
public class SurveyResponseData { private List < SurveyResponse > surveyResponses ; private SurveyResponseReadParams params ; private int totalResponses = 0 ; private int startIndex = 0 ; public void setResponses ( int startIndex , List < SurveyResponse > responses ) { } public List < SurveyResponse > getResponses ( int startIndex , int pageSize ) { int localStartIndex = startIndex - ( this . startIndex ) ; <START_BUG> int localEndIndex = Math . min ( ( startIndex + pageSize ) , this . getNumResponsesLoaded ( ) ) ; <END_BUG> return this . surveyResponses . subList ( localStartIndex , localEndIndex ) ; } public void setParams ( SurveyResponseReadParams params ) { } public String getCampaignUrn ( ) { } public SurveyResponseReadParams getParams ( ) { } public boolean hasRequestedData ( SurveyResponseReadParams params , int startIndex , int pageSize ) { } private boolean hasRequestedRange ( int startIndex , int pageSize ) { } private boolean startDateMatches ( SurveyResponseReadParams params ) { } private boolean endDateMatches ( SurveyResponseReadParams params ) { } private boolean privacyStateMatches ( SurveyResponseReadParams params ) { } private boolean userListMatches ( SurveyResponseReadParams params ) { } private boolean surveyListMatches ( SurveyResponseReadParams params ) { } public List < SurveyResponse > getResponsesWithPhotos ( int startIndex , int pageSize ) { } public void setTotalResponseCount ( int count ) { } public int getTotalResponseCount ( ) { } public int getStartIndex ( ) { } public int getLastIndexLoaded ( ) { } public int getNumResponsesLoaded ( ) { } public boolean isEmpty ( ) { } public void setCampaignName ( String campaignName ) { } public void clear ( ) { } public SurveyResponse getSurveyResponse ( String responseKey ) { } public void removeResponse ( String responseKey ) { } public void setPrivacyState ( String responseKey , Privacy privacy ) { } }

Fix:
int localEndIndex = Math . min ( ( localStartIndex + pageSize ) , this . getNumResponsesLoaded ( ) ) ;
Buggy code:
public class Library { static int MAJOR_VERSION = 3 ; static int MINOR_VERSION = 334 ; static int REVISION = 0 ; public static final int JAVA_VERSION ; public static final int SWT_VERSION ; static final String SEPARATOR ; static int parseVersion ( String version ) { } public static int JAVA_VERSION ( int major , int minor , int micro ) { } public static int SWT_VERSION ( int major , int minor ) { } static boolean extract ( String fileName , String mappedName ) { } static boolean load ( String libName ) { } public static void loadLibrary ( String name ) { } public static void loadLibrary ( String name , boolean mapName ) { String libName1 ; String libName2 ; String mappedName1 ; String mappedName2 ; if ( mapName ) { String version = System . getProperty ( "swt.version" ) ; if ( version == null ) { version = "" + ( Library . MAJOR_VERSION ) ; if ( ( Library . MINOR_VERSION ) < 10 ) { version += "00" ; } else { if ( ( Library . MINOR_VERSION ) < 100 ) version += "0" ; } version += Library . MINOR_VERSION ; if ( ( Library . REVISION ) > 0 ) version += "r" + ( Library . REVISION ) ; } libName1 = ( ( ( name + "-" ) + ( Platform . PLATFORM ) ) + "-" ) + version ; libName2 = ( name + "-" ) + ( Platform . PLATFORM ) ; mappedName1 = System . mapLibraryName ( libName1 ) ; mappedName2 = System . mapLibraryName ( libName2 ) ; } else { libName1 = libName2 = mappedName1 = mappedName2 = name ; } String path = System . getProperty ( "swt.library.path" ) ; if ( path != null ) { path = new File ( path ) . getAbsolutePath ( ) ; if ( Library . load ( ( ( path + ( Library . SEPARATOR ) ) + mappedName1 ) ) ) return ; if ( mapName && ( Library . load ( ( ( path + ( Library . SEPARATOR ) ) + mappedName2 ) ) ) ) return ; } if ( Library . load ( libName1 ) ) return ; if ( mapName && ( Library . load ( libName2 ) ) ) return ; if ( path == null ) { path = System . getProperty ( "java.io.tmpdir" ) ; path = new File ( path ) . getAbsolutePath ( ) ; if ( Library . load ( ( ( path + ( Library . SEPARATOR ) ) + mappedName1 ) ) ) return ; if ( mapName && ( Library . load ( ( ( path + ( Library . SEPARATOR ) ) + mappedName2 ) ) ) ) return ; } if ( path != null ) { if ( Library . extract ( ( ( path + ( Library . SEPARATOR ) ) + mappedName1 ) , mappedName1 ) ) return ; if ( mapName && ( Library . extract ( ( ( path + ( Library . SEPARATOR ) ) + mappedName2 ) , mappedName2 ) ) ) return ; } <START_BUG> throw new UnsatisfiedLinkError ( ( ( ( ( "no<seq2seq4repair_space>" + libName1 ) + "<seq2seq4repair_space>or<seq2seq4repair_space>" ) + libName2 ) + "<seq2seq4repair_space>in<seq2seq4repair_space>swt.library.path,<seq2seq4repair_space>java.libary.path<seq2seq4repair_space>or<seq2seq4repair_space>the<seq2seq4repair_space>jar<seq2seq4repair_space>file" ) ) ; <END_BUG> } }

Fix:
throw new UnsatisfiedLinkError ( ( ( ( ( "no<seq2seq4repair_space>" + libName1 ) + "<seq2seq4repair_space>or<seq2seq4repair_space>" ) + libName2 ) + "<seq2seq4repair_space>in<seq2seq4repair_space>swt.library.path,<seq2seq4repair_space>java.library.path<seq2seq4repair_space>or<seq2seq4repair_space>the<seq2seq4repair_space>jar<seq2seq4repair_space>file" ) ) ;
Buggy code:
public class Compiler { public static void main ( String [ ] args ) throws Exception { InputStreamReader reader = null ; try { reader = new InputStreamReader ( new FileInputStream ( args [ 0 ] ) , "ASCII" ) ; Parser p = new Parser ( new IC . Parser . Lexer ( reader ) ) ; Symbol programSymbol = p . parse ( ) ; PrettyPrinter printer = new PrettyPrinter ( args [ 0 ] ) ; Program program = ( ( Program ) ( programSymbol . value ) ) ; ICClass libraryClass = null ; Boolean providedLib = false ; Boolean dumpSymtab = false ; Boolean printAst = false ; Boolean parsedLib = false ; Boolean printLir = false ; String libFileName = null ; for ( int i = 1 ; i < ( args . length ) ; ++ i ) { <START_BUG> if ( args [ i ] . equals ( "-L" ) ) { <END_BUG> providedLib = true ; libFileName = args [ i ] . substring ( 2 ) ; } else if ( args [ i ] . equals ( "-dump-symtab" ) ) { dumpSymtab = true ; } else if ( args [ i ] . equals ( "-print-ast" ) ) { printAst = true ; } else if ( args [ i ] . equals ( "-print-lir" ) ) { printLir = true ; } } if ( providedLib ) { reader = new InputStreamReader ( new FileInputStream ( libFileName ) , "ASCII" ) ; LibParser libParser = new LibParser ( new LibraryLexer ( reader ) ) ; Symbol libClassSymbol = libParser . parse ( ) ; libraryClass = ( ( ICClass ) ( libClassSymbol . value ) ) ; program . addLibraryClass ( libraryClass ) ; parsedLib = true ; } Map < String , TableType > typeTable = new TypeTableVisitor ( ) . visit ( program ) ; ScopeVisitor coll = new ScopeVisitor ( typeTable ) ; coll . visit ( program ) ; TypeCheckVisitor typeCheckVisitor = null ; typeCheckVisitor = new TypeCheckVisitor ( ) ; typeCheckVisitor . setTypeTable ( typeTable ) ; typeCheckVisitor . visit ( program ) ; if ( parsedLib ) { System . out . println ( ( ( "Parsed<seq2seq4repair_space>" + ( args [ 1 ] . substring ( 2 ) ) ) + "<seq2seq4repair_space>successfully!" ) ) ; } System . out . println ( ( ( "Parsed<seq2seq4repair_space>" + ( args [ 0 ] ) ) + "<seq2seq4repair_space>successfully!\n" ) ) ; if ( dumpSymtab ) { System . out . println ( program . getEnclosingScope ( ) . toString ( ) ) ; System . out . println ( ( "Type<seq2seq4repair_space>Table:<seq2seq4repair_space>" + ( args [ 0 ] ) ) ) ; Compiler . printGlobalTypeTable ( typeTable ) ; } if ( printAst ) { System . out . println ( printer . visit ( program ) ) ; } LIRTranslationVisitor lirTranslator = new LIRTranslationVisitor ( ) ; List < String > lirProgram = ( ( List < String > ) ( program . accept ( lirTranslator ) ) ) ; if ( printLir ) { for ( String line : lirProgram ) { System . out . println ( line ) ; } } System . out . println ( "OK" ) ; } catch ( Exception e ) { System . out . println ( e ) ; } } private static Integer findMaxId ( Map < String , TableType > typeTable ) { } private static void printGlobalTypeTable ( Map < String , TableType > typeTable ) { } private static Map . Entry < String , TableType > findEntryById ( int id , Set < Map . Entry < String , TableType > > entrySet ) { } No newline ; at end ; of file ; }

Fix:
if ( args [ i ] . substring ( 0 , 2 ) . equals ( "-L" ) ) {
Buggy code:
public class JoranConfigurator extends ConfiguratorBase { Interpreter joranInterpreter ; LoggerRepository repository ; boolean listAppnderAttached = false ; public JoranConfigurator ( ) { } public void doConfigure ( URL url , LoggerRepository repository ) { this . repository = repository ; ExecutionContext ec = joranInterpreter . getExecutionContext ( ) ; List errorList = ec . getErrorList ( ) ; int result = XMLUtil . checkIfWellFormed ( url , errorList ) ; switch ( result ) { case XMLUtil . ILL_FORMED : case XMLUtil . UNRECOVERABLE_ERROR : <START_BUG> errorList . add ( new ErrorItem ( "Problem<seq2seq4repair_space>parsing<seq2seq4repair_space>XML<seq2seq4repair_space>document.<seq2seq4repair_space>See<seq2seq4repair_space>previously<seq2seq4repair_space>reported<seq2seq4repair_space>errors.<seq2seq4repair_space>Abandoning<seq2seq4repair_space>all<seq2seq4repair_space>furhter<seq2seq4repair_space>processing." ) ) ; <END_BUG> return ; } String errMsg ; try { InputStream in = url . openStream ( ) ; doConfigure ( in , repository ) ; in . close ( ) ; } catch ( IOException ioe ) { errMsg = ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>open<seq2seq4repair_space>[" + url ) + "]." ; getLogger ( repository ) . error ( errMsg , ioe ) ; ec . addError ( new ErrorItem ( errMsg , ioe ) ) ; } } public List getErrorList ( ) { } public void doConfigure ( String filename , LoggerRepository repository ) { } public void doConfigure ( InputStream in , LoggerRepository repository ) { } public void doConfigure ( InputSource inputSource , LoggerRepository repository ) { } protected void selfInitialize ( ) { } public ExecutionContext getExecutionContext ( ) { } }

Fix:
errorList . add ( new ErrorItem ( "Problem<seq2seq4repair_space>parsing<seq2seq4repair_space>XML<seq2seq4repair_space>document.<seq2seq4repair_space>See<seq2seq4repair_space>previously<seq2seq4repair_space>reported<seq2seq4repair_space>errors.<seq2seq4repair_space>Abandoning<seq2seq4repair_space>all<seq2seq4repair_space>further<seq2seq4repair_space>processing." ) ) ;
Buggy code:
public abstract class AbstractMetamataTask extends Task { protected Path classPath = null ; protected Path sourcePath = null ; protected File metamataHome = null ; protected CommandlineJava cmdl = new CommandlineJava ( ) ; protected Vector fileSets = new Vector ( ) ; protected File optionsFile = null ; protected Hashtable includedFiles = null ; public AbstractMetamataTask ( ) { } protected AbstractMetamataTask ( String className ) { } public void setHome ( final File value ) { } public void setMetamatahome ( final File value ) { } public Path createClasspath ( ) { } public Path createSourcepath ( ) { } public Argument createJvmarg ( ) { } public void setMaxmemory ( String max ) { } public void addFileSet ( FileSet fs ) { } public void execute ( ) throws BuildException { } protected void setUp ( ) throws BuildException { } protected abstract ExecuteStreamHandler createStreamHandler ( ) { } protected void execute0 ( ExecuteStreamHandler handler ) throws BuildException { final Execute process = new Execute ( handler ) ; log ( cmdl . describeCommand ( ) , MSG_VERBOSE ) ; process . setCommandline ( cmdl . getCommandline ( ) ) ; try { <START_BUG> if ( ( process . execute ( ) ) != 0 ) { <END_BUG> throw new BuildException ( "Metamata<seq2seq4repair_space>task<seq2seq4repair_space>failed." ) ; } } catch ( IOException e ) { throw new BuildException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>launch<seq2seq4repair_space>Metamata<seq2seq4repair_space>task" , e ) ; } } protected void cleanUp ( ) { } protected final File getMetamataJar ( File home ) { } protected void checkOptions ( ) throws BuildException { } protected abstract Vector getOptions ( ) { } protected void generateOptionsFile ( File tofile , Vector options ) throws BuildException { } protected Hashtable getFileMapping ( ) { } protected static final void addAllVector ( Vector dest , Enumeration files ) { } protected final File createTmpFile ( ) { } protected Hashtable scanSources ( Hashtable map ) { } protected Hashtable scanSources ( final Hashtable mapping , final String [ ] entries ) { } }

Fix:
if ( Execute . isFailure ( process . execute ( ) ) ) {
Buggy code:
public class Scale extends Control { int increment = 1 ; int pageIncrement = 10 ; public Scale ( Composite parent , int style ) { } int actionProc ( int theControl , int partCode ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { } public int getIncrement ( ) { } public int getMaximum ( ) { } public int getMinimum ( ) { } public int getPageIncrement ( ) { } public int getSelection ( ) { } int kEventMouseDown ( int nextHandler , int theEvent , int userData ) { int result = super . kEventMouseDown ( nextHandler , theEvent , userData ) ; if ( result == ( OS . noErr ) ) return result ; if ( ! ( hasFocus ( ) ) ) return result ; display . ignoreFocus = true ; int window = OS . GetControlOwner ( handle ) ; OS . ClearKeyboardFocus ( window ) ; result = OS . CallNextEventHandler ( nextHandler , theEvent ) ; if ( ! ( isDisposed ( ) ) ) { <START_BUG> OS . SetKeyboardFocus ( window , handle , ( ( short ) ( kControlFocusNextPart ) ) ) ; <END_BUG> } display . ignoreFocus = false ; return result ; } public void removeSelectionListener ( SelectionListener listener ) { } public void setIncrement ( int value ) { } public void setMaximum ( int value ) { } public void setMinimum ( int value ) { } public void setPageIncrement ( int value ) { } public void setSelection ( int value ) { } }

Fix:
OS . SetKeyboardFocus ( window , handle , ( ( short ) ( focusPart ( ) ) ) ) ;
Buggy code:
public class TCCalculation { ArrayList < TCButton > expression ; String answer ; public TCCalculation ( ) { } public void calculate ( ) { } public String toString ( ) { String expressionString = "" ; for ( int i = 0 ; i < ( expression . size ( ) ) ; i ++ ) { <START_BUG> expressionString += expression . get ( i ) . expression ; <END_BUG> } return expressionString ; } public int parse ( ) { } }

Fix:
expressionString += expression . get ( i ) . term ;
Buggy code:
public class DB { public static Connection c = null ; public static ResultSet rs = null ; public static Statement statement = null ; public static void Connect ( ) { } void addBook ( Book b ) { } public Book getBook ( int isbn ) { } public ArrayList < Book > getAllBooks ( ) { } void addMember ( Member m ) { } public Member getMember ( int mid ) { } public ArrayList < Member > getAllMembers ( ) { } void addRating ( Rating r ) { try { DB . c . setAutoCommit ( false ) ; Statement stmt = DB . c . createStatement ( ) ; <START_BUG> String sql = ( ( ( ( ( ( ( ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>ratings<seq2seq4repair_space>(mid,<seq2seq4repair_space>isbn,<seq2seq4repair_space>rating,<seq2seq4repair_space>comments)<seq2seq4repair_space>" + "VALUES<seq2seq4repair_space>(" ) + ( r . getMember ( ) ) ) + ",<seq2seq4repair_space>" ) + ( r . getBook ( ) ) ) + ",<seq2seq4repair_space>" ) + ( r . getRating ( ) ) ) + "," ) + ( r . getComments ( ) ) ) + ");" ; <END_BUG> stmt . executeUpdate ( sql ) ; } catch ( Exception e ) { System . err . println ( ( ( ( e . getClass ( ) . getName ( ) ) + ":<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) ) ; System . exit ( 0 ) ; } } public Rating getRating ( String isbn , int mid ) { } public ArrayList < Rating > getRatingsForBook ( int isbn ) { } public ArrayList < Rating > getRatingsForMember ( int mid ) { } public ArrayList < Rating > getAllRatings ( ) { } No newline ; at end ; of file ; }

Fix:
String sql = ( ( ( ( ( ( ( ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>ratings<seq2seq4repair_space>(mid,<seq2seq4repair_space>isbn,<seq2seq4repair_space>rating,<seq2seq4repair_space>comments)<seq2seq4repair_space>" + "VALUES<seq2seq4repair_space>(" ) + ( r . getMID ( ) ) ) + ",<seq2seq4repair_space>" ) + ( r . getIsbn ( ) ) ) + ",<seq2seq4repair_space>" ) + ( r . getRating ( ) ) ) + "," ) + ( r . getComments ( ) ) ) + ");" ;
Buggy code:
public class RebuildCommand extends BaseCommand { public RebuildCommand ( ) { } public boolean execute ( ) { if ( session . doingRollback ( ) ) { Util . sendMessage ( sender , "&cYou<seq2seq4repair_space>already<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>query<seq2seq4repair_space>command<seq2seq4repair_space>processing!" ) ; return true ; } SearchParser parser = null ; try { parser = new SearchParser ( player , args ) ; parser . loc = null ; if ( ( parser . actions . size ( ) ) > 0 ) { for ( DataType type : parser . actions ) if ( ! ( type . canRollback ( ) ) ) throw new IllegalArgumentException ( ( "You<seq2seq4repair_space>cannot<seq2seq4repair_space>rebuild<seq2seq4repair_space>that<seq2seq4repair_space>action<seq2seq4repair_space>type:<seq2seq4repair_space>&7" + ( type . getConfigName ( ) ) ) ) ; } else { for ( DataType type : DataType . values ( ) ) if ( type . canRollback ( ) ) parser . actions . add ( type ) ; } } catch ( IllegalArgumentException e ) { Util . sendMessage ( sender , ( "&c" + ( e . getMessage ( ) ) ) ) ; return true ; } <START_BUG> new uk . co . oliwali . HawkEye . database . SearchQuery ( new uk . co . oliwali . HawkEye . callbacks . RebuildCallback ( session ) , parser , SearchDir . DESC ) ; <END_BUG> return true ; } public void moreHelp ( ) { } public boolean permission ( ) { } No newline ; at end ; of file ; }

Fix:
new uk . co . oliwali . HawkEye . database . SearchQuery ( new uk . co . oliwali . HawkEye . callbacks . RebuildCallback ( session ) , parser , SearchDir . ASC ) ;
Buggy code:
public class RakeWarMain extends JarMain { public RakeWarMain ( String [ ] args ) throws Exception { } protected URL [ ] extractJRuby ( ) throws Exception { } private int launchRake ( URL [ ] jars ) throws Exception { System . setProperty ( "org.jruby.embed.class.path" , "" ) ; URLClassLoader loader = new URLClassLoader ( jars ) ; Class scriptingContainerClass = Class . forName ( "org.jruby.embed.ScriptingContainer" , true , loader ) ; Object scriptingContainer = scriptingContainerClass . newInstance ( ) ; Method argv = scriptingContainerClass . getDeclaredMethod ( "setArgv" , new Class [ ] { String [ ] . class } ) ; argv . invoke ( scriptingContainer , new Object [ ] { args } ) ; Method setClassLoader = scriptingContainerClass . getDeclaredMethod ( "setClassLoader" , new Class [ ] { ClassLoader . class } ) ; setClassLoader . invoke ( scriptingContainer , new Object [ ] { loader } ) ; debug ( ( ( ( "invoking<seq2seq4repair_space>" + ( jarfile ) ) + "<seq2seq4repair_space>with:<seq2seq4repair_space>" ) + ( Arrays . deepToString ( args ) ) ) ) ; Method runScriptlet = scriptingContainerClass . getDeclaredMethod ( "runScriptlet" , new Class [ ] { String . class } ) ; <START_BUG> return ( ( Number ) ( runScriptlet . invoke ( scriptingContainer , new Object [ ] { "begin\n" + ( ( ( ( "require<seq2seq4repair_space>'Rakefile'" + "0\n" ) + "rescue<seq2seq4repair_space>SystemExit<seq2seq4repair_space>=><seq2seq4repair_space>e\n" ) + "e.status\n" ) + "end" ) } ) ) ) . intValue ( ) ; <END_BUG> } protected int start ( ) throws Exception { } public static void main ( String [ ] args ) { } }

Fix:
return ( ( Number ) ( runScriptlet . invoke ( scriptingContainer , new Object [ ] { "begin\n" + ( ( ( ( "require<seq2seq4repair_space>\'Rakefile\'\n" + "0\n" ) + "rescue<seq2seq4repair_space>SystemExit<seq2seq4repair_space>=><seq2seq4repair_space>e\n" ) + "e.status\n" ) + "end" ) } ) ) ) . intValue ( ) ;
Buggy code:
public class ApacheLogLineSerDe extends TextLineSerDe { private static final Log LOG = LogFactory . getLog ( ApacheLogLineSerDe . class ) ; public final Schema fakeSchema ; private static final int [ ] fakeProjectIds = new int [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 } ; public ApacheLogLineSerDe ( ) { } @ Override public TextLineDeserializer createDeserializer ( Schema schema , TableMeta meta , int [ ] targetColumnIndexes ) { } @ Override public TextLineSerializer createSerializer ( Schema schema , TableMeta meta ) { } public static class ApacheLogDeserializer extends CSVLineDeserializer { int [ ] actualTargetColumns ; public ApacheLogDeserializer ( Schema schema , TableMeta meta , int [ ] targetColumnIndexes , int [ ] actualColumnIds ) { } @ Override public void init ( ) { } Tuple tuple = new VTuple ( 24 ) ; @ Override public void deserialize ( ByteBuf buf , Tuple output ) throws IOException , TextLineParsingError { super . deserialize ( buf , tuple ) ; for ( int i = 0 ; i < ( actualTargetColumns . length ) ; i ++ ) { <START_BUG> output . put ( i , ApacheLogLineSerDe . ApacheLogDeserializer . getField ( tuple , actualTargetColumns [ i ] ) ) ; <END_BUG> } } public static Datum getField ( Tuple tuple , int idx ) throws TextLineParsingError { } @ Override public void release ( ) { } } public static String mergeRemains ( Tuple tuple , int startIndex ) { } }

Fix:
output . put ( actualTargetColumns [ i ] , ApacheLogLineSerDe . ApacheLogDeserializer . getField ( tuple , actualTargetColumns [ i ] ) ) ;
Buggy code:
public class TableItem extends Item { Table parent ; Image [ ] images ; int stringList ; int imageList ; int foregroundList ; int backgroundList ; int fontList ; int checkState ; boolean checked ; boolean grayed ; boolean cached ; boolean ignoreNotify ; public TableItem ( Table parent , int style ) { } public TableItem ( Table parent , int style , int index ) { } TableItem ( Table parent , int style , int index , int handle ) { } protected void checkSubclass ( ) { } void columnAdded ( int index ) { } void columnRemoved ( int index ) { } void createHandle ( ) { } void clear ( ) { } void deregister ( ) { } void destroyWidget ( ) { parent . destroyItem ( this ) ; <START_BUG> super . destroyWidget ( ) ; <END_BUG> } int findRowPresenter ( int current , int rowPresenterType ) { } int findPart ( int column , String partName ) { } public Color getBackground ( ) { } public Color getBackground ( int index ) { } public Rectangle getBounds ( ) { } public Rectangle getBounds ( int index ) { } public boolean getChecked ( ) { } public Font getFont ( ) { } public Font getFont ( int index ) { } public Color getForeground ( ) { } public Color getForeground ( int index ) { } public boolean getGrayed ( ) { } public Image getImage ( ) { } public Image getImage ( int index ) { } public Rectangle getImageBounds ( int index ) { } public int getImageIndent ( ) { } String getNameText ( ) { } public Table getParent ( ) { } public String getText ( ) { } public String getText ( int index ) { } Control getWidgetControl ( ) { } void register ( ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void setBackground ( Color color ) { } public void setBackground ( int index , Color color ) { } public void setChecked ( boolean checked ) { } public void setFont ( Font font ) { } public void setFont ( int index , Font font ) { } public void setForeground ( Color color ) { } public void setForeground ( int index , Color color ) { } public void setGrayed ( boolean grayed ) { } public void setImage ( Image [ ] images ) { } public void setImage ( int index , Image image ) { } public void setImage ( Image image ) { } public void setImageIndent ( int indent ) { } public void setText ( String [ ] strings ) { } public void setText ( int index , String string ) { } public void setText ( String string ) { } void updateCheckState ( boolean notify ) { } }

Fix:
releaseHandle ( ) ;
Buggy code:
public class SearchPeopleTest extends AbstractEsSearchTestCase < PeopleCriteria , PeopleResult > { @ Inject PeopleServices peopleServices ; @ Override protected PeopleCriteria getCritereForEsSearchWithUniqueResultAsSU ( ) { } public static People getNewPeople ( ) { } private People createNewPeople ( ) { } @ Override protected Class < ? extends MemorizeTnrData > getDataSenderClass ( ) { } @ Override protected DtList < PeopleResult > getListByCritere ( final PeopleCriteria critere ) { <START_BUG> final UiListState uiListState = new UiListState ( 0 , 0 , null , false , null ) ; <END_BUG> return peopleServices . getPeopleByCriteria ( critere , uiListState ) . getDtList ( ) ; } @ Override protected Long getId ( final PeopleResult dto ) { } @ Override protected Long getIdForCritere ( final PeopleCriteria critere ) { } @ Test public void searchByPeoName ( ) { } }

Fix:
final UiListState uiListState = new UiListState ( 50 , 0 , null , false , null ) ;
Buggy code:
public final class JavaWriter { public static JavaWriter inPackage ( String packageName ) { } public static JavaWriter inPackage ( Package enclosingPackage ) { } public static JavaWriter inPackage ( PackageElement packageElement ) { } private final String packageName ; private final List < TypeWriter > typeWriters ; private final List < ClassName > explicitImports ; private JavaWriter ( String packageName ) { } public List < TypeWriter > getTypeWriters ( ) { } public JavaWriter addImport ( Class < ? > importedClass ) { } public ClassWriter addClass ( String simpleName ) { } public EnumWriter addEnum ( String simpleName ) { Preconditions . checkNotNull ( simpleName ) ; <START_BUG> EnumWriter writer = new EnumWriter ( ClassName . create ( simpleName , simpleName ) ) ; <END_BUG> typeWriters . add ( writer ) ; return writer ; } public InterfaceWriter addInterface ( String simpleName ) { } public Appendable write ( Appendable appendable ) throws IOException { } public void file ( Filer filer , Iterable < ? extends Element > originatingElements ) throws IOException { } public void file ( Filer filer , CharSequence name , Iterable < ? extends Element > originatingElements ) throws IOException { } @ Override public String toString ( ) { } static final class CompilationUnitContext implements Context { private final String packageName ; private final ImmutableSortedSet < ClassName > visibleClasses ; CompilationUnitContext ( String packageName , Set < ClassName > visibleClasses ) { } @ Override public Context createSubcontext ( Set < ClassName > newTypes ) { } @ Override public String sourceReferenceForClassName ( ClassName className ) { } private boolean collidesWithVisibleClass ( ClassName className ) { } private boolean collidesWithVisibleClass ( String simpleName ) { } private boolean isImported ( ClassName className ) { } } }

Fix:
EnumWriter writer = new EnumWriter ( ClassName . create ( packageName , simpleName ) ) ;
Buggy code:
public class Timing { private static final Logger LOG = LoggerFactory . getLogger ( Timing . class ) ; private String name ; private long startTime = 0 ; private long endTime = 0 ; private long duration = 0 ; public Timing ( String name ) { } public void start ( ) { } public void end ( ) { <START_BUG> this . endTime = System . currentTimeMillis ( ) ; <END_BUG> this . duration = ( endTime ) - ( startTime ) ; if ( Timing . LOG . isDebugEnabled ( ) ) { Timing . LOG . debug ( String . format ( "Timing:<seq2seq4repair_space>name=%s,<seq2seq4repair_space>duration=%s" , name , duration ) ) ; } } public String getName ( ) { } public long getStartTime ( ) { } public long getEndTime ( ) { } public long getDuration ( ) { } }

Fix:
this . endTime = System . nanoTime ( ) ;
Buggy code:
public class ObjectTypeValidator extends ModelTypeValidator implements AllowedValuesValidator { private final Map < String , AttributeDefinition > allowedValues ; private final List < ModelNode > nodeValues ; public ObjectTypeValidator ( final boolean nullable , final AttributeDefinition ... attributes ) { } @ Override public void validateParameter ( final String parameterName , final ModelNode value ) throws OperationFailedException { super . validateParameter ( parameterName , value ) ; if ( value . isDefined ( ) ) { for ( String key : value . keys ( ) ) { if ( allowedValues . containsKey ( key ) ) { allowedValues . get ( key ) . getValidator ( ) . validateParameter ( key , value . get ( key ) ) ; } else { <START_BUG> throw new OperationFailedException ( new ModelNode ( ) . set ( LoggingMessages . MESSAGES . invalidValue ( key , allowedValues . keySet ( ) ) ) ) ; <END_BUG> } } } } @ Override public List < ModelNode > getAllowedValues ( ) { } private static ModelType [ ] findModelTypes ( final AttributeDefinition ... attributes ) { } }

Fix:
throw new OperationFailedException ( new ModelNode ( ) . set ( LoggingMessages . MESSAGES . invalidValueTypeKey ( key , allowedValues . keySet ( ) ) ) ) ;
Buggy code:
public class AttributeMatchesCondition extends ASelectableCondition { static final String ATTRIBUTE = "ATTRIBUTE" ; static final String NAME = "attribute_matches_condition" ; static final String VALUE = "VALUE" ; static final String MATCH_CASE = "MATCH_CASE" ; static ASelectableCondition load ( final XMLElement element ) { } private final String attribute ; private final String value ; private final Pattern searchPattern ; public AttributeMatchesCondition ( final String attribute , final String value , final boolean matchCase ) { } public boolean checkNode ( final NodeModel node ) { } @ Override protected String createDescription ( ) { final String simpleCondition = TextUtils . getText ( FILTER_REGEXP ) ; <START_BUG> return ConditionFactory . createDescription ( attribute , simpleCondition , null , isMatchCase ( ) , false ) ; <END_BUG> } public void fillXML ( final XMLElement child ) { } @ Override protected String getName ( ) { } private boolean isMatchCase ( ) { } }

Fix:
return ConditionFactory . createDescription ( attribute , simpleCondition , value , isMatchCase ( ) , false ) ;
Buggy code:
public class Google { public String FindOnLinkedIn ( String name ) { String link = "" ; Document doc = null ; try { Proxy proxy = new Proxy ( Proxy . Type . HTTP , new InetSocketAddress ( "proxyHost" , 1234 ) ) ; doc = Jsoup . connect ( ( ( "https:////www.google.lk//search?q=" + ( name . replace ( '<seq2seq4repair_space>' , '+' ) ) ) + "+linkedin" ) ) . userAgent ( "Chrome" ) . timeout ( 0 ) . get ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } Elements elements ; elements = doc . select ( "cite" ) ; int i = 0 ; while ( ( elements . size ( ) ) > i ) { link = elements . get ( i ) . text ( ) ; i ++ ; System . out . println ( link ) ; if ( ! ( link . contains ( "//dir//" ) ) ) { break ; } } if ( link . contains ( "//dir//" ) ) { return "" ; } <START_BUG> if ( link . contains ( "lk.linkedin.com//" ) ) { <END_BUG> if ( ! ( link . contains ( "https:////" ) ) ) link = "https:////" + link ; return link ; } return "" ; } public String FindOnGoogleScholar ( String name ) { } public ArrayList < String > FindOnWikipedia ( String searchTerm ) { } }

Fix:
if ( link . contains ( "lk.linkedin.com//in" ) ) {
Buggy code:
public abstract class RequestableMListView extends PullToRefreshListView implements ListScrollRequestable , PullToRefreshListView . OnRefreshListener { private ListRequestScrollListener scrollListener ; private ArrayList < MatjiData > adapterData ; private MBaseAdapter adapter ; protected HttpRequestManager manager ; private boolean canRepeat = false ; private int prevPage = 0 ; private int page = 1 ; private int limit = 10 ; private RelativeLayout loadingFooterView ; private RelativeLayout loadingHeaderView ; private Spinnable reloadSpinner ; protected static final int REQUEST_NEXT = 0 ; protected static final int REQUEST_RELOAD = 1 ; public abstract RequestCommand request ( ) { } public RequestableMListView ( Context context , AttributeSet attrs , MBaseAdapter adapter , int limit ) { } public void addHeaderView ( View v ) { } protected void setPage ( int page ) { } protected void setLimit ( int limit ) { } protected int getPage ( ) { } protected int getLimit ( ) { } public void initValue ( ) { } public void clearAdapter ( ) { } public void nextValue ( ) { } private void syncValue ( ) { } protected void requestSetOn ( ) { } protected boolean isNextRequestable ( ) { } public void requestNext ( ) { } public void setCanRepeat ( boolean canRepeat ) { } public void requestReload ( ) { hideRefreshView ( ) ; Log . d ( "refresh" , ( ( getActivity ( ) ) == null ? "activity<seq2seq4repair_space>is<seq2seq4repair_space>null" : "activity<seq2seq4repair_space>is<seq2seq4repair_space>ok" ) ) ; if ( ( ! ( manager . isRunning ( ) ) ) || ( canRepeat ) ) { setSelection ( 1 ) ; Log . d ( "refresh" , "requestReload()" ) ; initValue ( ) ; <START_BUG> manager . request ( getContext ( ) , request ( ) , RequestableMListView . REQUEST_RELOAD , this ) ; <END_BUG> nextValue ( ) ; } } public void forceReload ( ) { } public RelativeLayout getLoadingFooterView ( ) { } public void requestConditionally ( ) { } public int getVerticalScrollOffset ( ) { } protected HttpRequestManager getHttpRequestManager ( ) { } protected MBaseAdapter getMBaseAdapter ( ) { } protected ArrayList < MatjiData > getAdapterData ( ) { } public void requestCallBack ( int tag , ArrayList < MatjiData > data ) { } public void requestExceptionCallBack ( int tag , MatjiException e ) { } public void onRefresh ( ) { } public void dataRefresh ( ) { } No newline ; at end ; of file ; }

Fix:
manager . request ( reloadSpinner , request ( ) , RequestableMListView . REQUEST_RELOAD , this ) ;