nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Ejbc extends MatchingTask { private File descriptorDirectory ; private File generatedFilesDirectory ; private File generatedManifestFile ; private String classpath ; private File sourceDirectory ; public void execute ( ) throws BuildException { if ( ( ( descriptorDirectory ) == null ) || ( ! ( descriptorDirectory . isDirectory ( ) ) ) ) { throw new BuildException ( ( ( "descriptors<seq2seq4repair_space>directory<seq2seq4repair_space>" + ( descriptorDirectory . getPath ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>valid" ) ) ; } if ( ( ( generatedFilesDirectory ) == null ) || ( ! ( generatedFilesDirectory . isDirectory ( ) ) ) ) { throw new BuildException ( ( ( "dest<seq2seq4repair_space>directory<seq2seq4repair_space>" + ( generatedFilesDirectory . getPath ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>valid" ) ) ; } if ( ( ( sourceDirectory ) == null ) || ( ! ( sourceDirectory . isDirectory ( ) ) ) ) { throw new BuildException ( ( ( "src<seq2seq4repair_space>directory<seq2seq4repair_space>" + ( sourceDirectory . getPath ( ) ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>valid" ) ) ; } String systemClassPath = System . getProperty ( "java.class.path" ) ; String execClassPath = project . translatePath ( ( ( ( ( systemClassPath + ":" ) + ( classpath ) ) + ":" ) + ( generatedFilesDirectory ) ) ) ; DirectoryScanner ds = super . getDirectoryScanner ( descriptorDirectory ) ; String [ ] files = ds . getIncludedFiles ( ) ; Java helperTask = ( ( Java ) ( project . createTask ( "java" ) ) ) ; <START_BUG> helperTask . setFork ( "yes" ) ; <END_BUG> helperTask . setClassname ( "org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper" ) ; String args = "" ; args += "<seq2seq4repair_space>" + ( descriptorDirectory ) ; args += "<seq2seq4repair_space>" + ( generatedFilesDirectory ) ; args += "<seq2seq4repair_space>" + ( sourceDirectory ) ; args += "<seq2seq4repair_space>" + ( generatedManifestFile ) ; for ( int i = 0 ; i < ( files . length ) ; ++ i ) { args += "<seq2seq4repair_space>" + ( files [ i ] ) ; } helperTask . setArgs ( args ) ; helperTask . setClasspath ( new org . apache . tools . ant . types . Path ( project , execClassPath ) ) ; if ( ( helperTask . executeJava ( ) ) != 0 ) { throw new BuildException ( "Execution<seq2seq4repair_space>of<seq2seq4repair_space>ejbc<seq2seq4repair_space>helper<seq2seq4repair_space>failed" ) ; } } public void setDescriptors ( String dirName ) { } public void setDest ( String dirName ) { } public void setManifest ( String manifestFilename ) { } public void setClasspath ( String s ) { } public void setSrc ( String dirName ) { } }

Fix:
helperTask . setFork ( true ) ;
Buggy code:
public class NiftyTest { private static String [ ] arguments = new String [ 0 ] ; private static final String XML = "src//main//resources//com//ATeam//twoDotFiveD//layout//main.xml" ; private static final String MOUSE_CURSOR = "src//main//resources//nifty-cursor.png" ; public void start ( ) { } public static void main ( final String [ ] args ) throws IOException { <START_BUG> NiftyTest . arguments = args ; <END_BUG> NiftyTest test = new NiftyTest ( ) ; test . start ( ) ; } }

Fix:
NiftyTest . arguments = args . clone ( ) ;
Buggy code:
public class TableCursor extends Canvas { Table table ; TableItem row = null ; TableColumn column = null ; Listener tableListener ; Listener resizeListener ; Listener disposeItemListener ; Listener disposeColumnListener ; static final int BACKGROUND = SWT . COLOR_LIST_SELECTION_TEXT ; static final int FOREGROUND = SWT . COLOR_LIST_SELECTION ; public TableCursor ( Table parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } void dispose ( Event event ) { } void keyDown ( Event event ) { } void paint ( Event event ) { if ( ( row ) == null ) return ; int columnIndex = ( ( column ) == null ) ? 0 : table . indexOf ( column ) ; GC gc = event . gc ; Display display = getDisplay ( ) ; gc . setBackground ( getBackground ( ) ) ; gc . setForeground ( getForeground ( ) ) ; gc . fillRectangle ( event . x , event . y , event . width , event . height ) ; int x = 0 ; Point size = getSize ( ) ; Image image = row . getImage ( columnIndex ) ; if ( image != null ) { Rectangle imageSize = image . getBounds ( ) ; int imageY = ( ( size . y ) - ( imageSize . height ) ) // 2 ; gc . drawImage ( image , x , imageY ) ; x += imageSize . width ; } String text = row . getText ( columnIndex ) ; <START_BUG> if ( text != "" ) { <END_BUG> Rectangle bounds = row . getBounds ( columnIndex ) ; Point extent = gc . stringExtent ( text ) ; String platform = SWT . getPlatform ( ) ; if ( "win32" . equals ( platform ) ) { if ( ( ( table . getColumnCount ( ) ) == 0 ) || ( columnIndex == 0 ) ) { x += 2 ; } else { int alignmnent = column . getAlignment ( ) ; switch ( alignmnent ) { case SWT . LEFT : x += 6 ; break ; case SWT . RIGHT : x = ( ( bounds . width ) - ( extent . x ) ) - 6 ; break ; case SWT . CENTER : x += ( ( ( bounds . width ) - x ) - ( extent . x ) ) // 2 ; break ; } } } else { if ( ( table . getColumnCount ( ) ) == 0 ) { x += 5 ; } else { int alignmnent = column . getAlignment ( ) ; switch ( alignmnent ) { case SWT . LEFT : x += 5 ; break ; case SWT . RIGHT : x = ( ( bounds . width ) - ( extent . x ) ) - 2 ; break ; case SWT . CENTER : x += ( ( ( ( bounds . width ) - x ) - ( extent . x ) ) // 2 ) + 2 ; break ; } } } int textY = ( ( size . y ) - ( extent . y ) ) // 2 ; gc . drawString ( text , x , textY ) ; } if ( isFocusControl ( ) ) { gc . setBackground ( display . getSystemColor ( COLOR_BLACK ) ) ; gc . setForeground ( display . getSystemColor ( COLOR_WHITE ) ) ; gc . drawFocus ( 0 , 0 , size . x , size . y ) ; } } void tableFocusIn ( Event event ) { } void tableMouseDown ( Event event ) { } void setRowColumn ( int row , int column , boolean notify ) { } void setRowColumn ( TableItem row , TableColumn column , boolean notify ) { } public void setVisible ( boolean visible ) { } public void removeSelectionListener ( SelectionListener listener ) { } void _resize ( ) { } public int getColumn ( ) { } public TableItem getRow ( ) { } public void setBackground ( Color color ) { } public void setForeground ( Color color ) { } public void setSelection ( int row , int column ) { } public void setSelection ( TableItem row , int column ) { } }

Fix:
if ( ( text . length ( ) ) > 0 ) {
Buggy code:
public class LoanHelper { Context c ; View v ; AdapterView av ; SetGet sg = new SetGet ( ) ; int loanType ; int position ; public static final String PASSWORD = "rah" ; public static final int TOAST_LONG = 1 ; public static final int TOAST_SHORT = 0 ; public static final int EDIT = 0 ; public static final int ADD = 1 ; public static final int DELETE = 2 ; public static final int BORROW = 1 ; public static final int LEND = 0 ; public static final String FILE_NAME = "loan.json" ; public static final String ARRAY_BORROW = "borrow" ; public static final String ARRAY_LEND = "lend" ; public static final String NAME_JO = "name" ; public static final String TIME_JO = "time" ; public static final String AMOUNT_JO = "amount" ; public static final String REASON_JO = "reason" ; public LoanHelper ( Context context ) { } public void setLoanType ( int type ) { } public int getLoanType ( ) { } public void setAdapterView ( AdapterView adapterView ) { } public void alertDialog ( final int mode , final int Position , final String JSArray ) { } public File file ( ) { } public String ReadFromFile ( ) { } public void deleteDialog ( final String Jarray , int Position ) { this . position = Position ; v = ( ( LayoutInflater ) ( c . getSystemService ( LAYOUT_INFLATER_SERVICE ) ) ) . inflate ( add_loan , null ) ; AlertDialog . Builder dialog = new AlertDialog . Builder ( c ) ; <START_BUG> dialog . setTitle ( ( ( "Delete:<seq2seq4repair_space>" + ( ( String ) ( av . getItemAtPosition ( Position ) ) ) ) + "?" ) ) ; <END_BUG> dialog . setView ( v ) ; ( ( EditText ) ( v . findViewById ( etName ) ) ) . setVisibility ( GONE ) ; ( ( EditText ) ( v . findViewById ( etAmount ) ) ) . setVisibility ( GONE ) ; ( ( EditText ) ( v . findViewById ( etReason ) ) ) . setVisibility ( GONE ) ; ( ( Spinner ) ( v . findViewById ( spinner ) ) ) . setVisibility ( GONE ) ; dialog . setNeutralButton ( "Delete" , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface p1 , int p2 ) { String pass = ( ( EditText ) ( v . findViewById ( R . id . etPass ) ) ) . getText ( ) . toString ( ) ; if ( pass . equalsIgnoreCase ( LoanHelper . PASSWORD ) ) { modify ( LoanHelper . DELETE , Jarray ) ; } else { makeToast ( "Wrong<seq2seq4repair_space>password|" , LoanHelper . TOAST_SHORT ) ; } setTotalLoan ( ) ; } } ) ; dialog . show ( ) ; } public void modify ( int mode , String JARRAY ) { } public void makeListView ( String JAName ) { } public void writeToFile ( JSONObject jo ) { } public void writeJsonToFile ( String JAName ) { } public void addMethod ( ) { } private void addToBorrowJsonArray ( ) { } private void addToLendJsonArray ( ) { } public void editMethod ( String ja ) { } private void editBorrowJsonArray ( ) { } private void editLendJsonArray ( ) { } public void loanType ( ) { } public int totalLoan ( String JA ) { } public void setTotalLoan ( ) { } public void makeToast ( String message , int Mode ) { } }

Fix:
dialog . setTitle ( ( ( "Paid:<seq2seq4repair_space>" + ( ( String ) ( av . getItemAtPosition ( Position ) ) ) ) + "?" ) ) ;
Buggy code:
public final class LocalPatchOperationStepHandler implements OperationStepHandler { public static final OperationStepHandler INSTANCE = new LocalPatchOperationStepHandler ( ) ; @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { context . acquireControllerLock ( ) ; final PatchInfoService service = ( ( PatchInfoService ) ( context . getServiceRegistry ( false ) . getRequiredService ( NAME ) . getValue ( ) ) ) ; if ( service . requiresRestart ( ) ) { throw PatchMessages . MESSAGES . serverRequiresRestart ( ) ; } <START_BUG> final PatchInfo info = service . getPatchInfo ( ) ; <END_BUG> final DirectoryStructure structure = service . getStructure ( ) ; final PatchTool runner = Factory . create ( info , structure ) ; final ContentVerificationPolicy policy = Factory . create ( operation ) ; final int index = operation . get ( INPUT_STREAM_INDEX ) . asInt ( 0 ) ; final InputStream is = context . getAttachmentStream ( index ) ; try { final PatchingResult result = runner . applyPatch ( is , policy ) ; service . restartRequired ( ) ; context . restartRequired ( ) ; context . completeStep ( new OperationContext . ResultHandler ( ) { @ Override public void handleResult ( OperationContext . ResultAction resultAction , OperationContext context , ModelNode operation ) { if ( resultAction == ( ResultAction . KEEP ) ) { result . commit ( ) ; } else { service . clearRestartRequired ( ) ; context . revertRestartRequired ( ) ; result . rollback ( ) ; } } } ) ; } catch ( PatchingException e ) { if ( e . hasConflicts ( ) ) { final ModelNode failureDescription = context . getFailureDescription ( ) ; for ( final ContentItem item : e . getConflicts ( ) ) { final ContentType type = item . getContentType ( ) ; switch ( type ) { case BUNDLE : failureDescription . get ( BUNDLES ) . add ( item . getRelativePath ( ) ) ; break ; case MODULE : failureDescription . get ( MODULES ) . add ( item . getRelativePath ( ) ) ; break ; case MISC : failureDescription . get ( MISC ) . add ( item . getRelativePath ( ) ) ; break ; } } context . stepCompleted ( ) ; } else { throw new OperationFailedException ( e . getMessage ( ) , e ) ; } } } }

Fix:
final PatchInfo info = service . getValue ( ) ;
Buggy code:
public class CommentsActivity extends BaseActivity { public static final String TAG = CommentsActivity . class . getSimpleName ( ) ; Toolbar toolbar ; ListView commentsLV ; ImageButton postNewCommentIv ; private String adminClintId = "No" ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void setListenersToViews ( ) { } private void buildToolBar ( ) { } private void pullViews ( ) { } void adminClintCall ( ) { if ( ! ( isNetworkAvailable ( ) ) ) { <START_BUG> showAlert ( "No<seq2seq4repair_space>connection<seq2seq4repair_space>available" , tryAgain ) ; <END_BUG> return ; } else { showProgressDialog ( ) ; } try { AdminClient . authenticateUser ( USER_TOKEN , COLLECTION_ID , ARTICLE_ID , SITE_ID , NETWORK_ID , new CommentsActivity . AdminCallback ( ) ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } } public class AdminCallback extends JsonHttpResponseHandler { public void onSuccess ( JSONObject AdminClintJsonResponseObject ) { } @ Override public void onFailure ( Throwable error , String content ) { } } void bootstrapClientCall ( ) { } private class InitCallback extends JsonHttpResponseHandler { public void onSuccess ( String data ) { } @ Override public void onFailure ( Throwable error , String content ) { } } void buildReviewList ( String data ) { } OnClickListener tryAgain = new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface arg0 , int arg1 ) { } } ; View . OnClickListener postNewCommentListener = new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { } } ; OnItemClickListener commentsLVListener = new OnItemClickListener ( ) { @ Override public void onItemClick ( AdapterView < ? > arg0 , View arg1 , int position , long arg3 ) { } } ; }

Fix:
showAlert ( "No<seq2seq4repair_space>connection<seq2seq4repair_space>available" , "TRY<seq2seq4repair_space>AGAIN" , tryAgain ) ;
Buggy code:
public class LoadLib extends AbstractTask { private boolean importAll ; private URL url ; public void setURL ( URL url ) throws ExecutionException { } public void setFile ( File file ) throws ExecutionException { } public void setDir ( File dir ) throws ExecutionException { } public void setImportAll ( boolean importAll ) { } public void validateComponent ( ) throws ExecutionException { } public void execute ( ) throws ExecutionException { AntContext context = getAntContext ( ) ; ComponentService componentService = ( ( ComponentService ) ( context . getCoreService ( ComponentService . class ) ) ) ; <START_BUG> componentService . loadLib ( url . toString ( ) , importAll ) ; <END_BUG> } private void checkNullURL ( ) throws ExecutionException { } }

Fix:
componentService . loadLib ( url . toString ( ) , importAll , false ) ;
Buggy code:
@ ManagedResource ( description = "Job<seq2seq4repair_space>executor<seq2seq4repair_space>MBean" ) public class JobExecutorMBean { JobExecutor jobExecutor ; public JobExecutorMBean ( ProcessEngineConfiguration processEngineConfig ) { } @ ManagedAttribute ( description = "check<seq2seq4repair_space>if<seq2seq4repair_space>the<seq2seq4repair_space>job<seq2seq4repair_space>executor<seq2seq4repair_space>is<seq2seq4repair_space>activated" ) public boolean isJobExecutorActivated ( ) { <START_BUG> return ( ( jobExecutor ) == null ) || ( jobExecutor . isActive ( ) ) ; <END_BUG> } @ ManagedOperation ( description = "set<seq2seq4repair_space>job<seq2seq4repair_space>executor<seq2seq4repair_space>activate" ) public void setJobExecutorActivate ( Boolean active ) { } }

Fix:
return ( ( jobExecutor ) != null ) && ( jobExecutor . isActive ( ) ) ;
Buggy code:
public class HttpManagementRemoveHandler extends AbstractRemoveStepHandler { public static final HttpManagementRemoveHandler INSTANCE = new HttpManagementRemoveHandler ( ) ; private HttpManagementRemoveHandler ( ) { } @ Override protected void performRemove ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { <START_BUG> RbacSanityCheckOperation . registerOperation ( context ) ; <END_BUG> super . performRemove ( context , operation , model ) ; } @ Override protected boolean requiresRuntime ( OperationContext context ) { } @ Override protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { } @ Override protected void recoverServices ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { } static void removeHttpManagementService ( final OperationContext context ) { } }

Fix:
RbacSanityCheckOperation . addOperation ( context ) ;
Buggy code:
public class SearchResultUtil { public static List < SearchResultModel > filterSearchResults ( SearchQueryModel searchQueryModel , List < SearchResultModel > newSearchResultModels ) throws DatabaseConnectionException , SQLException { List < SearchResultModel > existingSearchResultModels = SearchResultUtil . _searchResultDAOImpl . getSearchQueryResults ( searchQueryModel . getSearchQueryId ( ) ) ; newSearchResultModels . removeAll ( existingSearchResultModels ) ; if ( ! ( newSearchResultModels . isEmpty ( ) ) ) { <START_BUG> SearchResultUtil . _log . debug ( "Found<seq2seq4repair_space>{}<seq2seq4repair_space>new<seq2seq4repair_space>search<seq2seq4repair_space>results<seq2seq4repair_space>for<seq2seq4repair_space>search<seq2seq4repair_space>query<seq2seq4repair_space>ID:<seq2seq4repair_space>{}" , newSearchResultModels . size ( ) , searchQueryModel . getSearchQuery ( ) ) ; <END_BUG> SearchResultUtil . saveNewResultsAndRemoveOldResults ( existingSearchResultModels , newSearchResultModels ) ; } return newSearchResultModels ; } public static void performSearch ( ) throws DatabaseConnectionException , SQLException { } public static void saveNewResultsAndRemoveOldResults ( List < SearchResultModel > existingSearchResultModels , List < SearchResultModel > newSearchResultModels ) throws DatabaseConnectionException , SQLException { } private static final Logger _log = LoggerFactory . getLogger ( SearchResultUtil . class ) ; private static final SearchQueryDAOImpl _searchQueryDAOImpl = new SearchQueryDAOImpl ( ) ; private static final SearchResultDAOImpl _searchResultDAOImpl = new SearchResultDAOImpl ( ) ; No newline ; at end ; of file ; }

Fix:
SearchResultUtil . _log . debug ( "Found<seq2seq4repair_space>{}<seq2seq4repair_space>new<seq2seq4repair_space>search<seq2seq4repair_space>results<seq2seq4repair_space>for<seq2seq4repair_space>search<seq2seq4repair_space>query:<seq2seq4repair_space>{}" , newSearchResultModels . size ( ) , searchQueryModel . getSearchQuery ( ) ) ;
Buggy code:
public class WorkflowReference extends Workflow { private static int indentation = 0 ; private WorkflowType workflowType = WorkflowType . WORKFLOW_REFERENCE ; private String name ; public WorkflowReference ( ) { } public WorkflowReference ( final String uid , final String name , final Position position ) { } @ Override public WorkflowType getWorkflowType ( ) { } @ Override public void setWorkflowType ( final WorkflowType workflowType ) { } public static int getIndentation ( ) { } public static void setIndentation ( final int indentation ) { } @ Override public String getName ( ) { } @ Override public void setName ( final String name ) { } @ Override public Position getPosition ( ) { } @ Override public void setPosition ( final Position position ) { } @ Override public String getPigScriptRepresentation ( final String surroundingWorkflowName ) throws IOException { ( WorkflowReference . indentation ) ++ ; final String workflowName = this . name ; final Workflow referencedWorkflow = WorkflowSerialisation . load ( workflowName , WorkflowSerialisation . determineType ( workflowName ) ) ; final StringBuilder sb = new StringBuilder ( ) ; sb . append ( lineSeparator ) ; sb . append ( insertIndentationTabs ( ) ) ; sb . append ( preparePigScriptCommand ( workflowName ) ) ; sb . append ( insertIndentationTabs ( ) ) ; sb . append ( preparePigScriptCommand ( referencedWorkflow . getDescription ( ) ) ) ; for ( final Workflow wf : referencedWorkflow . getComponents ( ) ) { if ( ( wf instanceof WorkflowReference ) || ( ( ( WorkflowComponent ) ( wf ) ) . getScriptType ( ) . getName ( ) . equals ( "Apache<seq2seq4repair_space>Pig<seq2seq4repair_space>Script" ) ) ) { sb . append ( lineSeparator ) ; sb . append ( insertIndentationTabs ( ) ) ; <START_BUG> final Workflow surroundingWorkflow = WorkflowSerialisation . load ( surroundingWorkflowName , WorkflowSerialisation . determineType ( workflowName ) ) ; <END_BUG> final String pigScriptRepresentation = applyParameterMapping ( wf . getPigScriptRepresentation ( workflowName ) , surroundingWorkflow . getParameterMapping ( ) , surroundingWorkflow . getParameter ( ) , super . getUid ( ) ) ; sb . append ( adjustIndentation ( pigScriptRepresentation ) ) ; sb . append ( lineSeparator ) ; } } sb . append ( lineSeparator ) ; ( WorkflowReference . indentation ) -- ; return sb . toString ( ) ; } @ Override public Map < String , String > getRMarkDownScriptRepresentations ( ) throws IOException { } private String insertIndentationTabs ( ) { } private String adjustIndentation ( final String pigScriptRepresentation ) { } private String applyParameterMapping ( final String pigScriptRepresentation , final WorkflowParameterMapping parameterMapping , final WorkflowParameter wfParameter , final String workflowUID ) { } private boolean nameMatchesParameterConnector ( final String name , final WorkflowParameter parameter ) { } No newline ; at end ; of file ; }

Fix:
final Workflow surroundingWorkflow = WorkflowSerialisation . load ( surroundingWorkflowName , WorkflowSerialisation . determineType ( surroundingWorkflowName ) ) ;
Buggy code:
public class SuperColumnTest { @ Test public void testMissingSubcolumn ( ) { <START_BUG> SuperColumn sc = new SuperColumn ( "sc1" . getBytes ( ) , LongType . instance , ClockType . Timestamp , new TimestampReconciler ( ) ) ; <END_BUG> sc . addColumn ( new Column ( Util . getBytes ( 1 ) , "value" . getBytes ( ) , new TimestampClock ( 1 ) ) ) ; Assert . assertNotNull ( sc . getSubColumn ( Util . getBytes ( 1 ) ) ) ; Assert . assertNull ( sc . getSubColumn ( Util . getBytes ( 2 ) ) ) ; } }

Fix:
SuperColumn sc = new SuperColumn ( "sc1" . getBytes ( ) , LongType . instance , ClockType . Timestamp , TimestampReconciler . instance ) ;
Buggy code:
public class CreateTrezorWalletEnterDetailsPanelView extends AbstractWizardPanelView < WelcomeWizardModel , String > implements ActionListener { private JTextField trezorLabel ; private JComboBox < String > seedSize ; public CreateTrezorWalletEnterDetailsPanelView ( AbstractWizard < WelcomeWizardModel > wizard , String panelName ) { } @ Override public void newPanelModel ( ) { } @ Override public void initialiseContent ( JPanel contentPanel ) { } @ Override protected void initialiseButtons ( AbstractWizard < WelcomeWizardModel > wizard ) { } @ Override public void fireInitialStateViewEvents ( ) { } @ Override public void afterShow ( ) { } @ Override public void updateFromComponentModels ( Optional componentModel ) { getWizardModel ( ) . setTrezorWalletLabel ( trezorLabel . getText ( ) ) ; <START_BUG> getWizardModel ( ) . setTrezorSeedSize ( SeedPhraseSize . fromOrdinal ( seedSize . getSelectedIndex ( ) ) ) ; <END_BUG> } @ Override public void actionPerformed ( ActionEvent e ) { } No newline ; at end ; of file ; }

Fix:
getWizardModel ( ) . setTrezorSeedPhraseSize ( SeedPhraseSize . fromOrdinal ( seedSize . getSelectedIndex ( ) ) ) ;
Buggy code:
public class ListCreator { private static int numberRange = 1000 ; public static int getRange ( ) { } public static List < Integer > make ( int size ) { List < Integer > list = new ArrayList < Integer > ( ) ; for ( int i = 1 ; i <= size ; i ++ ) { int num = ( ( int ) ( Math . abs ( ( ( ( ListCreator . numberRange ) + 1 ) * ( Math . random ( ) ) ) ) ) ) ; list . add ( num ) ; } <START_BUG> return QuickSort . quickSort ( list ) ; <END_BUG> } public static List < Integer > makeSorted ( int size ) { } }

Fix:
return list ;
Buggy code:
public class Test extends Example { public static void main ( String [ ] args ) { final DefaultData data = Data . create ( ) ; data . add ( "date" , "integer" , "String" , "OrderedString" , "decimal" ) ; data . add ( "01.01.1982" , "45" , "female" , "3" , "0.152" ) ; data . add ( "07.04.1924" , "45" , "male" , "2" , "0.126" ) ; <START_BUG> data . add ( "06.11.1956" , "50" , "male" , "1" , "0.158" ) ; <END_BUG> data . add ( "28.02.1984" , "67" , "female" , "0" , "0.126" ) ; data . add ( "30.06.1975" , "30" , "female" , "2" , "0.987" ) ; data . add ( "01.01.1982" , "20" , "male" , "3" , "0.346" ) ; data . add ( "05.10.1978" , "69" , "female" , "0" , "0.342" ) ; data . add ( "02.08.1992" , "24" , "male" , "3" , "0.532" ) ; data . getDefinition ( ) . setDataType ( "date" , DATE ) ; data . getDefinition ( ) . setDataType ( "integer" , INTEGER ) ; data . getDefinition ( ) . setDataType ( "String" , STRING ) ; data . getDefinition ( ) . setDataType ( "OrderedString" , ORDERED_STRING ) ; data . getDefinition ( ) . setDataType ( "decimal" , DECIMAL ) ; KAPDisplay barSeries = new KAPDisplay ( ) ; DataHandle dataH = data . getHandle ( ) ; barSeries . displayData ( dataH ) ; } No newline ; at end ; of file ; }

Fix:
data . add ( "06.11.1956" , "50" , "male" , "1" , "-0.158" ) ;
Buggy code:
public class DistributedCacheTest extends CacheTest { private static String cache = null ; private static String queryCache = null ; private static String provider = null ; public static void setCache ( String plugin ) { } public static void setQueryCache ( String plugin ) { } public static void setRemoteCommitProvider ( String plugin ) { } public DistributedCacheTest ( String test ) { } public DistributedCacheTest ( String test , Class testClass ) { } protected String [ ] getConfs ( ) { } protected String [ ] getConfs2 ( ) { } protected String [ ] getConfs ( boolean confs1 ) { String fullProvider = DistributedCacheTest . provider ; String props = Configurations . getProperties ( System . getProperty ( "openjpa.RemoteCommitProvider" ) ) ; if ( ( props == null ) || ( ( props . length ( ) ) == 0 ) ) props = Configurations . getProperties ( DistributedCacheTest . provider ) ; else fullProvider = Configurations . getPlugin ( DistributedCacheTest . provider , props ) ; if ( ( props == null ) || ( ( props . length ( ) ) == 0 ) ) <START_BUG> throw new IllegalStateException ( "must<seq2seq4repair_space>specify<seq2seq4repair_space>-Dkodo.RemoteCommitProvider=?" ) ; <END_BUG> return new String [ ] { "openjpa.DataCache" , ( ( ( DistributedCacheTest . cache ) + ",<seq2seq4repair_space>true(Name=" ) + confs1 ) + ")" , "openjpa.QueryCache" , DistributedCacheTest . queryCache , "openjpa.RemoteCommitProvider" , fullProvider , "openjpa.BrokerImpl" , CacheTestBroker . class . getName ( ) } ; } }

Fix:
throw new IllegalStateException ( "must<seq2seq4repair_space>specify<seq2seq4repair_space>-Dopenjpa.RemoteCommitProvider=?" ) ;
Buggy code:
public interface BedragenDao { void save ( Bedragen bedragen ) { } void update ( Bedragen bedragen ) { } void delete ( Bedragen bedragen ) { } public List < BeheerBedragenReport > reportBedragen ( Rekeningen rekening , Integer offset ) { } public List < RekeningOverzicht > graphiekBedrag ( Rekeningen rekening , Date beginDate , Date eindDate ) { } public List < OverzichtGroep > graphiekOverzichtGroep ( Date beginDate , Date eindDate ) { } public List < OverzichtGroepBedragen > rapportOverzichtGroepBedragen ( Integer typeGroepId , Integer negatief , Date beginDate , Date eindDate ) { } public Integer getNewPkId ( ) { } public Bedragen findBedrag ( Integer bedragId ) { } public List < OverzichtBedrag > findAllBedragen ( ) { } public List < OverzichtBedrag > findAllBedragen ( Date startDate , Date endDate ) { } public List < OverzichtBedrag > findBedragenRekening ( Rekeningen rekening ) { } public List < OverzichtBedrag > findBedragenRekening ( Rekeningen rekening , Date startDate , Date endDate ) { } public BigDecimal somBedragDatum ( Rekeningen rekening , Date datum ) { } public BigDecimal somBedragDatum ( Date datum ) { } <START_BUG> public BigDecimal getBedrag ( Integer pk_id ) ; <END_BUG> }

Fix:
public Bedragen getBedrag ( Integer pk_id ) ;
Buggy code:
public class JlinkTask extends MatchingTask { private File outfile = null ; private Path mergefiles = null ; private Path addfiles = null ; private boolean compress = false ; private String ps = System . getProperty ( "path.separator" ) ; public void setAddfiles ( Path addfiles ) throws TaskException { } public void setCompress ( boolean compress ) { } public void setMergefiles ( Path mergefiles ) throws TaskException { } public void setOutfile ( File outfile ) { } public Path createAddfiles ( ) throws TaskException { } public Path createMergefiles ( ) throws TaskException { } public void execute ( ) throws TaskException { if ( ( outfile ) == null ) { throw new TaskException ( "outfile<seq2seq4repair_space>attribute<seq2seq4repair_space>is<seq2seq4repair_space>required!<seq2seq4repair_space>Please<seq2seq4repair_space>set." ) ; } if ( ( ! ( haveAddFiles ( ) ) ) && ( ! ( haveMergeFiles ( ) ) ) ) { throw new TaskException ( "addfiles<seq2seq4repair_space>or<seq2seq4repair_space>mergefiles<seq2seq4repair_space>required!<seq2seq4repair_space>Please<seq2seq4repair_space>set." ) ; } <START_BUG> log ( ( "linking:<seq2seq4repair_space>" + ( outfile . getPath ( ) ) ) ) ; <END_BUG> log ( ( "compression:<seq2seq4repair_space>" + ( compress ) ) , MSG_VERBOSE ) ; jlink linker = new jlink ( ) ; linker . setOutfile ( outfile . getPath ( ) ) ; linker . setCompression ( compress ) ; if ( haveMergeFiles ( ) ) { log ( ( "merge<seq2seq4repair_space>files:<seq2seq4repair_space>" + ( mergefiles . toString ( ) ) ) , MSG_VERBOSE ) ; linker . addMergeFiles ( mergefiles . list ( ) ) ; } if ( haveAddFiles ( ) ) { log ( ( "add<seq2seq4repair_space>files:<seq2seq4repair_space>" + ( addfiles . toString ( ) ) ) , MSG_VERBOSE ) ; linker . addAddFiles ( addfiles . list ( ) ) ; } try { linker . link ( ) ; } catch ( Exception ex ) { throw new TaskException ( "Error" , ex ) ; } } private boolean haveAddFiles ( ) throws TaskException { } private boolean haveEntries ( Path p ) throws TaskException { } private boolean haveMergeFiles ( ) throws TaskException { } }

Fix:
getLogger ( ) . info ( ( "linking:<seq2seq4repair_space>" + ( outfile . getPath ( ) ) ) ) ;
Buggy code:
public class MethodDeclaration extends AbstractMethodDeclaration { public TypeReference returnType ; public TypeParameter [ ] typeParameters ; public MethodDeclaration ( CompilationResult compilationResult ) { } public void analyseCode ( ClassScope classScope , InitializationFlowContext initializationContext , FlowInfo flowInfo ) { } public boolean isMethod ( ) { } public void parseStatements ( Parser parser , CompilationUnitDeclaration unit ) { } public StringBuffer printReturnType ( int indent , StringBuffer output ) { } public void resolveStatements ( ) { if ( ( ( this . returnType ) != null ) && ( ( this . binding ) != null ) ) { this . returnType . resolvedType = this . binding . returnType ; } if ( CharOperation . equals ( scope . enclosingSourceType ( ) . sourceName , selector ) ) { scope . problemReporter ( ) . methodWithConstructorName ( this ) ; } if ( ( this . binding ) != null ) { int bindingModifiers = this . binding . modifiers ; if ( ( ( ( this . binding . tagBits ) & ( TagBits . AnnotationOverride ) ) != 0 ) && ( ( bindingModifiers & ( AccOverriding ) ) == 0 ) ) { scope . problemReporter ( ) . methodMustOverride ( this ) ; } else <START_BUG> if ( ( ( ( ( ( this . binding . tagBits ) & ( TagBits . AnnotationOverride ) ) == 0 ) && ( ( ( this . binding . declaringClass . modifiers ) & ( AccInterface ) ) == 0 ) ) && ( ( bindingModifiers & ( ( AccStatic ) | ( AccOverriding ) ) ) == ( AccOverriding ) ) ) && ( ( scope . environment ( ) . options . sourceLevel ) >= ( JDK1_5 ) ) ) { <END_BUG> scope . problemReporter ( ) . missingOverrideAnnotation ( this ) ; } } switch ( scope . referenceType ( ) . kind ( ) ) { case ENUM_DECL : if ( ( this . selector ) == ( TypeConstants . VALUES ) ) break ; if ( ( this . selector ) == ( TypeConstants . VALUEOF ) ) break ; case CLASS_DECL : if ( ( ( this . modifiers ) & ( AccSemicolonBody ) ) != 0 ) { if ( ( ( this . modifiers ) & ( AccNative ) ) == 0 ) if ( ( ( this . modifiers ) & ( AccAbstract ) ) == 0 ) scope . problemReporter ( ) . methodNeedBody ( this ) ; } else { if ( ( ( ( this . modifiers ) & ( AccNative ) ) != 0 ) || ( ( ( this . modifiers ) & ( AccAbstract ) ) != 0 ) ) scope . problemReporter ( ) . methodNeedingNoBody ( this ) ; } } super . resolveStatements ( ) ; } public void traverse ( ASTVisitor visitor , ClassScope classScope ) { } public TypeParameter [ ] typeParameters ( ) { } }

Fix:
if ( ( ( ( ( ( this . binding . tagBits ) & ( TagBits . AnnotationOverride ) ) == 0 ) && ( ( ( this . binding . declaringClass . modifiers ) & ( AccInterface ) ) == 0 ) ) && ( ( bindingModifiers & ( ( AccStatic ) | ( AccOverriding ) ) ) == ( AccOverriding ) ) ) && ( ( scope . compilerOptions ( ) . sourceLevel ) >= ( JDK1_5 ) ) ) {
Buggy code:
public class TestStressAdvance extends LuceneTestCase { public void testStressAdvance ( ) throws Exception { for ( int iter = 0 ; iter < 3 ; iter ++ ) { if ( VERBOSE ) { System . out . println ( ( "\nTEST:<seq2seq4repair_space>iter=" + iter ) ) ; } Directory dir = newDirectory ( ) ; RandomIndexWriter w = new RandomIndexWriter ( random , dir ) ; final Set < Integer > aDocs = new HashSet < Integer > ( ) ; final Document doc = new Document ( ) ; final Field f = newField ( "field" , "" , NOT_ANALYZED_NO_NORMS ) ; doc . add ( f ) ; final Field idField = newField ( "id" , "" , YES , NOT_ANALYZED_NO_NORMS ) ; doc . add ( idField ) ; <START_BUG> int num = atLeast ( 5000 ) ; <END_BUG> for ( int id = 0 ; id < num ; id ++ ) { if ( ( random . nextInt ( 4 ) ) == 3 ) { f . setValue ( "a" ) ; aDocs . add ( id ) ; } else { f . setValue ( "b" ) ; } idField . setValue ( ( "" + id ) ) ; w . addDocument ( doc ) ; } w . optimize ( ) ; final List < Integer > aDocIDs = new ArrayList < Integer > ( ) ; final List < Integer > bDocIDs = new ArrayList < Integer > ( ) ; final IndexReader r = w . getReader ( ) ; final int [ ] idToDocID = new int [ r . maxDoc ( ) ] ; for ( int docID = 0 ; docID < ( idToDocID . length ) ; docID ++ ) { int id = Integer . parseInt ( r . document ( docID ) . get ( "id" ) ) ; if ( aDocs . contains ( id ) ) { aDocIDs . add ( docID ) ; } else { bDocIDs . add ( docID ) ; } } final TermDocs de = r . termDocs ( ) ; for ( int iter2 = 0 ; iter2 < 10 ; iter2 ++ ) { if ( VERBOSE ) { System . out . println ( ( ( ( "\nTEST:<seq2seq4repair_space>iter=" + iter ) + "<seq2seq4repair_space>iter2=" ) + iter2 ) ) ; } de . seek ( new Term ( "field" , "a" ) ) ; testOne ( de , aDocIDs ) ; de . seek ( new Term ( "field" , "b" ) ) ; testOne ( de , bDocIDs ) ; } w . close ( ) ; r . close ( ) ; dir . close ( ) ; } } private void testOne ( TermDocs docs , List < Integer > expected ) throws Exception { } }

Fix:
int num = atLeast ( 4097 ) ;
Buggy code:
public class POJOPartida { public static final POJOPartida PARTIDA_VACIA ; private String id ; private String administrador ; private List < String > jugadores ; private List < String > espectadores ; private int cantidadRondas ; private int cantidadMaximaJugadores ; private String nombre ; private String estado ; private ProyeccionTablero proyeccion ; public POJOPartida ( String id , String administrador , List < String > jugadores , List < String > espectadores , int cantidadRondas , int cantidadJugadores , String nombre , String estado , ProyeccionTablero proyeccion ) { } public POJOPartida ( POJOCreacionPartida pojo , String nombreAdmin ) { } private static List < String > crearListadoJugadores ( String nombre ) { } public String getAdministrador ( ) { } public List < String > getJugadores ( ) { } public List < String > getEspectadores ( ) { } public int getCantidadRondas ( ) { } public int getCantidadMaximaJugadores ( ) { } public String getNombre ( ) { } public String getId ( ) { } @ Override public boolean equals ( Object obj ) { if ( obj == null ) return false ; if ( ! ( getClass ( ) . isAssignableFrom ( obj . getClass ( ) ) ) ) return false ; POJOPartida otro = ( ( POJOPartida ) ( obj ) ) ; <START_BUG> return ( ( ( ( ( ( otro . administrador . equals ( administrador ) ) && ( ( otro . cantidadMaximaJugadores ) == ( cantidadMaximaJugadores ) ) ) && ( ( otro . cantidadRondas ) == ( cantidadRondas ) ) ) && ( otro . espectadores . equals ( espectadores ) ) ) && ( otro . jugadores . equals ( jugadores ) ) ) && ( otro . nombre . equals ( nombre ) ) ) && ( ( proyeccion ) == null ) ? ( otro . proyeccion ) == null : proyeccion . equals ( otro . proyeccion ) ; <END_BUG> } @ Override public String toString ( ) { } public String getEstado ( ) { } public ProyeccionTablero getProyeccion ( ) { } public void setProyeccion ( ProyeccionTablero proyeccion ) { } }

Fix:
return ( ( ( ( ( ( otro . administrador . equals ( administrador ) ) && ( ( otro . cantidadMaximaJugadores ) == ( cantidadMaximaJugadores ) ) ) && ( ( otro . cantidadRondas ) == ( cantidadRondas ) ) ) && ( otro . espectadores . equals ( espectadores ) ) ) && ( otro . jugadores . equals ( jugadores ) ) ) && ( otro . nombre . equals ( nombre ) ) ) && ( ( proyeccion ) == null ? ( otro . proyeccion ) == null : proyeccion . equals ( otro . proyeccion ) ) ;
Buggy code:
public class CarDealer { private List < Car > cars ; private List < Client > clients ; private List < Manager > managers ; private List < Deal > deals ; public CarDealer ( ) { } public void init ( ) { Car car = new Car ( Brand . getBrandByName ( "BMW" ) , "X6" , 20000.0 ) ; cars . add ( car ) ; car = new Car ( Brand . getBrandByName ( "Tesla" ) , "S" , 40000.0 ) ; cars . add ( car ) ; car = new Car ( Brand . getBrandByName ( "Audi" ) , "A6" , 25000.0 ) ; cars . add ( car ) ; car = new Car ( Brand . getBrandByName ( "Audi" ) , "A8" , 30000.0 ) ; cars . add ( car ) ; car = new Car ( Brand . getBrandByName ( "Renault" ) , "Logan" , 40000.0 ) ; cars . add ( car ) ; Client client = new Client ( "Petro" , "Smagluk" , 40000.0 ) ; clients . add ( client ) ; client = new Client ( "Stepan" , "Vernugora" , 50000.0 ) ; clients . add ( client ) ; client = new Client ( "Roman" , "Kulikov" , 40000.0 ) ; clients . add ( client ) ; Manager manager = new Manager ( "Dmitro" , "Antonov" , 200.0 ) ; managers . add ( manager ) ; manager = new Manager ( "Stepan" , "Fedoreds" , 150.0 ) ; managers . add ( manager ) ; Deal deal ; <START_BUG> for ( int i = 1 ; i < ( cars . size ( ) ) ; i ++ ) { <END_BUG> deal = new Deal ( cars . get ( getRandomIndexFromList ( cars ) ) , managers . get ( getRandomIndexFromList ( managers ) ) , clients . get ( getRandomIndexFromList ( clients ) ) ) ; deals . add ( deal ) ; } } public Integer getRandomIndexFromList ( List list ) { } public List < Deal > getListDealOfManager ( Manager manager ) { } public List < Manager > getManagers ( ) { } }

Fix:
for ( int i = 1 ; i <= 20 ; i ++ ) {
Buggy code:
public class BZip2 extends Pack { protected void pack ( ) { CBZip2OutputStream zOut = null ; try { BufferedOutputStream bos = new BufferedOutputStream ( new FileOutputStream ( zipFile ) ) ; bos . write ( 'B' ) ; bos . write ( 'Z' ) ; zOut = new CBZip2OutputStream ( bos ) ; zipFile ( source , zOut ) ; } catch ( IOException ioe ) { String msg = "Problem<seq2seq4repair_space>creating<seq2seq4repair_space>bzip2<seq2seq4repair_space>" + ( ioe . getMessage ( ) ) ; <START_BUG> throw new org . apache . tools . ant . BuildException ( msg , ioe , location ) ; <END_BUG> } finally { if ( zOut != null ) { try { zOut . close ( ) ; } catch ( IOException e ) { } } } } }

Fix:
throw new org . apache . tools . ant . BuildException ( msg , ioe , getLocation ( ) ) ;
Buggy code:
public class BukkitDispatcherFactory implements IDispatcherFactory { SimpleCommandMap commandMap ; public BukkitDispatcherFactory ( ) { } public IDispatcher createCommandDispatcher ( String pluginName , String command , String [ ] aliases , String description ) { try { BukkitDispatcher dispatcher = new BukkitDispatcher ( command , description ) ; Constructor < PluginCommand > constructor = PluginCommand . class . getDeclaredConstructor ( String . class , Plugin . class ) ; constructor . setAccessible ( true ) ; PluginCommand pluginCommand = constructor . newInstance ( command , Kore . instance ( ) ) ; pluginCommand . setAliases ( Arrays . asList ( aliases ) ) ; pluginCommand . setExecutor ( dispatcher ) ; pluginCommand . setTabCompleter ( dispatcher ) ; boolean success = commandMap . register ( pluginName , pluginCommand ) ; <START_BUG> Kore . log ( ( ( ( "Registered<seq2seq4repair_space>\"" + command ) + "\":<seq2seq4repair_space>" ) + success ) ) ; <END_BUG> return dispatcher ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return null ; } }

Fix:
Kore . log ( ( ( ( "Registered<seq2seq4repair_space>command<seq2seq4repair_space>\"" + command ) + "\":<seq2seq4repair_space>" ) + success ) ) ;
Buggy code:
public class DefaultJsonEscaperForAppendables implements JsonEscaper { public static final int ESCAPE_TAB_SIZE = 128 ; public static char [ ] hextab = new char [ ] { '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f' } ; public static String [ ] jsonEscapes = new String [ DefaultJsonEscaperForAppendables . ESCAPE_TAB_SIZE ] ; protected final Appendable appendable ; public DefaultJsonEscaperForAppendables ( Appendable appendable ) { } @ Override public void outputAscii ( String s ) throws IOException { } @ Override public void outputUnicodeNoControls ( String s ) throws IOException { } @ Override public void outputUnicodeWithControls ( String s ) throws IOException { appendable . append ( '\"' ) ; int len = s . length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { char c = s . charAt ( i ) ; int codePoint = c ; <START_BUG> if ( ( ( codePoint & 127 ) != 0 ) || ( ( DefaultJsonEscaperForAppendables . jsonEscapes [ codePoint ] ) == null ) ) <END_BUG> appendable . append ( c ) ; else appendable . append ( DefaultJsonEscaperForAppendables . jsonEscapes [ codePoint ] ) ; } appendable . append ( '\"' ) ; } }

Fix:
if ( ( ( codePoint & ( ~ 127 ) ) != 0 ) || ( ( DefaultJsonEscaperForAppendables . jsonEscapes [ codePoint ] ) == null ) )
Buggy code:
public class FileServer { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String DEFAULT_BASE = JMeterUtils . getProperty ( "user.dir" ) ; private File base ; private final Map files = new HashMap ( ) ; private static final FileServer server = new FileServer ( ) ; private final Random random = new Random ( ) ; private FileServer ( ) { } public static FileServer getFileServer ( ) { } public void resetBase ( ) throws IOException { } public synchronized void setBasedir ( String basedir ) throws IOException { if ( filesOpen ( ) ) { throw new IOException ( "Files<seq2seq4repair_space>are<seq2seq4repair_space>still<seq2seq4repair_space>open,<seq2seq4repair_space>cannot<seq2seq4repair_space>change<seq2seq4repair_space>base<seq2seq4repair_space>directory" ) ; } files . clear ( ) ; if ( basedir != null ) { base = new File ( basedir ) ; if ( ! ( base . isDirectory ( ) ) ) { base = base . getParentFile ( ) ; } <START_BUG> FileServer . log . info ( ( "Set<seq2seq4repair_space>new<seq2seq4repair_space>base=" + basedir ) ) ; <END_BUG> } } public synchronized String getBaseDir ( ) { } public synchronized void reserveFile ( String filename ) { } public synchronized void reserveFile ( String filename , String charsetName ) { } public String readLine ( String filename ) throws IOException { } public synchronized String readLine ( String filename , boolean recycle ) throws IOException { } private BufferedReader createBufferedReader ( FileServer . FileEntry fileEntry , String filename ) throws IOException { } public synchronized void write ( String filename , String value ) throws IOException { } private BufferedWriter createBufferedWriter ( FileServer . FileEntry fileEntry , String filename ) throws IOException { } public void closeFiles ( ) throws IOException { } public synchronized void closeFile ( String name ) throws IOException { } private void closeFile ( String name , FileServer . FileEntry fileEntry ) throws IOException { } protected boolean filesOpen ( ) { } public File getRandomFile ( String basedir , String [ ] extensions ) { } private static class FileEntry { private File file ; private Object inputOutputObject ; private String charSetEncoding ; FileEntry ( File f , Object o , String e ) { } } }

Fix:
FileServer . log . info ( ( "Set<seq2seq4repair_space>new<seq2seq4repair_space>base=" + ( base ) ) ) ;
Buggy code:
public class AssistImportContainer extends ImportContainer { private Map infoCache ; public AssistImportContainer ( CompilationUnit parent , Map infoCache ) { } public Object getElementInfo ( IProgressMonitor monitor ) throws JavaModelException { <START_BUG> return infoCache . get ( this ) ; <END_BUG> } protected IImportDeclaration getImport ( String importName , boolean isOnDemand ) { } }

Fix:
return this . infoCache . get ( this ) ;
Buggy code:
public class NativeStackPresentation extends StackPresentation { private TabFolder tabFolder ; private IPresentablePart current ; private MenuManager systemMenuManager = new MenuManager ( ) ; private IPreferenceStore preferenceStore = WorkbenchPlugin . getDefault ( ) . getPreferenceStore ( ) ; private static final String TAB_DATA = ( NativeStackPresentation . class . getName ( ) ) + ".partId" ; private MouseListener mouseListener = new MouseAdapter ( ) { public void mouseDown ( MouseEvent e ) { } } ; private Listener menuListener = new Listener ( ) { public void handleEvent ( Event event ) { } } ; private Listener selectionListener = new Listener ( ) { public void handleEvent ( Event e ) { } } ; private Listener resizeListener = new Listener ( ) { public void handleEvent ( Event e ) { } } ; private IPropertyListener childPropertyChangeListener = new IPropertyListener ( ) { public void propertyChanged ( Object source , int property ) { } } ; private DisposeListener tabDisposeListener = new DisposeListener ( ) { public void widgetDisposed ( DisposeEvent e ) { } } ; public NativeStackPresentation ( Composite parent , IStackPresentationSite stackSite , int flags ) { } private final int indexOf ( IPresentablePart part ) { } protected final TabItem getTab ( IPresentablePart part ) { } protected void childPropertyChanged ( IPresentablePart part , int property ) { } protected final IPresentablePart getPartForTab ( TabItem item ) { } protected TabFolder getTabFolder ( ) { } public boolean isDisposed ( ) { } private void setControlSize ( ) { } public static Rectangle calculatePageBounds ( TabFolder folder ) { } public void dispose ( ) { } public void setActive ( boolean isActive ) { } private TabItem createPartTab ( IPresentablePart part , int tabIndex ) { } protected void initTab ( TabItem tabItem , IPresentablePart part ) { tabItem . setText ( part . getName ( ) ) ; <START_BUG> tabItem . setToolTipText ( part . getTitleToolTipText ( ) ) ; <END_BUG> Image tabImage = part . getTitleImage ( ) ; if ( tabImage != ( tabItem . getImage ( ) ) ) { tabItem . setImage ( tabImage ) ; } } public void addPart ( IPresentablePart newPart , IPresentablePart position ) { } public void removePart ( IPresentablePart oldPart ) { } public void selectPart ( IPresentablePart toSelect ) { } public void setBounds ( Rectangle bounds ) { } public Point computeMinimumSize ( ) { } public void setVisible ( boolean isVisible ) { } public void setState ( int state ) { } public IMenuManager getSystemMenuManager ( ) { } protected void showPaneMenu ( IPresentablePart part , Point point ) { } public Control getControl ( ) { } public StackDropResult dragOver ( Control currentControl , Point location ) { } }

Fix:
tabItem . setToolTipText ( part . getTitleToolTip ( ) ) ;
Buggy code:
@ Config ( emulateSdk = 18 ) @ RunWith ( RobolectricTestRunner . class ) public class RangeSeekBarTest { @ Test public void rsb_should_handle_long_values ( ) { RangeSeekBar < Long > mSeekBar = new RangeSeekBar < Long > ( Robolectric . application ) ; mSeekBar . setRangeValues ( 0L , 100L ) ; long minValue = mSeekBar . getAbsoluteMinValue ( ) ; Assert . assertEquals ( 0L , minValue ) ; <START_BUG> long maxValue = mSeekBar . getAbsoluteMinValue ( ) ; <END_BUG> Assert . assertEquals ( 100L , maxValue ) ; } No newline ; at end ; of file ; }

Fix:
long maxValue = mSeekBar . getAbsoluteMaxValue ( ) ;