nus-yam/ex-repair huggingface dataset:
Buggy code:
public final class Ping { private Ping ( ) { } public static boolean ping ( DockerClientExecutor dockerClientExecutor , String containerId , String command , int totalIterations , long sleep , TimeUnit timeUnit ) { } public static boolean ping ( String host , int port , int totalIterations , long sleep , TimeUnit timeUnit ) { } private static boolean execContainerPing ( DockerClientExecutor dockerClientExecutor , String containerId , String command ) { <START_BUG> String result = dockerClientExecutor . execStart ( containerId , command ) ; <END_BUG> try { int numberOfListenConnectons = Integer . parseInt ( result . trim ( ) ) ; return numberOfListenConnectons > 0 ; } catch ( NumberFormatException e ) { return false ; } } private static boolean ping ( String host , int port ) { } }

Fix:
String result = dockerClientExecutor . execStart ( containerId , new String [ ] { "sh" , "-c" , command } ) ;
Buggy code:
public class WePayApi { public enum Scope { SCOPE_MANAGE_ACCOUNTS ( "manage_accounts" ) , SCOPE_VIEW_BALANCE ( "view_balance" ) , SCOPE_COLLECT_PAYMENTS ( "collect_payments" ) , SCOPE_REFUND_PAYMENTS ( "refund_payments" ) , SCOPE_VIEW_USER ( "view_user" ) ; private String scope ; private Scope ( String scope ) { } public String getScope ( ) { } public static List < WePayApi . Scope > getAll ( ) { } @ Override public String toString ( ) { } } private static final String STAGING_URL = "https:////stage.wepay.com//v2" ; private static final String PROD_URL = "https:////wepay.com//v2" ; private String CURRENT_URL ; @ Getter @ Setter private WePayKey key ; private static final ObjectMapper mapper = new ObjectMapper ( ) ; private WePayApi ( ) { } public WePayApi ( WePayKey key ) { } public String getAuthorizationUri ( List < WePayApi . Scope > scopes , String redirectUri , String state ) { } public String getAuthorizationUri ( List < WePayApi . Scope > scopes , String redirectUri , String state , String userName , String userEmail ) { } public WePayTokenResponse getToken ( String code , String redirectUrl ) throws WePayException { WePayToken request = new WePayToken ( ) ; <START_BUG> request . setClientId ( key . getClientSecret ( ) ) ; <END_BUG> request . setClientSecret ( key . getClientSecret ( ) ) ; request . setRedirectUri ( redirectUrl ) ; request . setCode ( code ) ; return execute ( null , request ) ; } public < T extends WePayResponse > T execute ( String token , WePayRequest < T > req ) throws WePayException { } private HttpURLConnection getConnection ( String uri , String postJson , String token ) throws Exception { } private static String urlEncode ( Object value ) { } }

Fix:
request . setClientId ( key . getClientId ( ) ) ;
Buggy code:
public class MainFrame extends Frame { static MainFrame instance ; public static MainFrame getInstance ( ) { } public MainFrame ( ) { } private void initComponents ( ) { } private void exitForm ( WindowEvent evt ) { } private void btnManageHolidaysActionPerformed ( ActionEvent evt ) { } private JFileChooser fc ; private JFileChooser sfc ; private void btnChooseCsvFileActionPerformed ( ActionEvent evt ) { } private void btnManageEmployeeDataActionPerformed ( ActionEvent evt ) { } private void btnRecalculateActionPerformed ( ActionEvent evt ) { Dates . getInstance ( ) . adjust ( txtStartDate . getText ( ) , txtEndDate . getText ( ) ) ; <START_BUG> recalculate ( false ) ; <END_BUG> } public void recalculate ( ) { } public void recalculate ( Boolean recreatenamelistandcalendar , Boolean quiet ) { } private void btnExitActionPerformed ( ActionEvent evt ) { } private void cmbFontSizeActionPerformed ( ActionEvent evt ) { } private void btnSaveTextActionPerformed ( ActionEvent evt ) { } private void btnAboutActionPerformed ( ActionEvent evt ) { } public static void main ( String [ ] args ) { } private JButton btnAbout ; private JButton btnChooseCsvFile ; private JButton btnExit ; private JButton btnManageEmployeeData ; private JButton btnManageHolidays ; private JButton btnRecalculate ; private JButton btnSaveText ; private JComboBox cmbFontSize ; private JLabel jLabel1 ; private JLabel jLabel2 ; private JLabel jLabel3 ; private JLabel jLabel4 ; private JLabel jLabel5 ; private JScrollPane jScrollPane2 ; private JTextArea jTextArea ; private JTextField txtEndDate ; private JTextField txtStartDate ; public void saveDialog ( ) { } }

Fix:
recalculate ( false , false ) ;
Buggy code:
public class DAO { protected Table tables = null ; protected Connection connection ; protected DAO ( ) { } protected Scan getScaner ( String startRow , String stopRow , Long minStamp , Long maxStamp ) { } protected FilterList getFilter ( HashMap < String , String > data ) { FilterList flMaster = new FilterList ( Operator . MUST_PASS_ALL ) ; for ( Map . Entry < String , String > entry : data . entrySet ( ) ) { String value = entry . getValue ( ) ; <START_BUG> if ( value != null ) { <END_BUG> flMaster . addFilter ( new org . apache . hadoop . hbase . filter . SingleColumnValueFilter ( Bytes . toBytes ( "data" ) , Bytes . toBytes ( entry . getKey ( ) ) , CompareOp . EQUAL , new SubstringComparator ( value ) ) ) ; } } return flMaster ; } protected Long getMaxTimestamp ( Result rr ) { } }

Fix:
if ( value != "" ) {
Buggy code:
@ Test ( groups = "live" , singleThreaded = true , testName = "VirtualBoxComputeServiceAdapterLiveTest" ) public class VirtualBoxComputeServiceAdapterLiveTest extends BaseVirtualBoxClientLiveTest { private VirtualBoxComputeServiceAdapter adapter ; private IMachine machine ; private final Map < OsFamily , Map < String , String > > osVersionMap = new BaseComputeServiceContextModule ( ) { } . provideOsVersionMap ( new ComputeServiceConstants . ReferenceData ( ) , Guice . createInjector ( new GsonModule ( ) ) . getInstance ( Json . class ) ) ; @ BeforeGroups ( groups = { "live" } ) public void setupClient ( ) { super . setupClient ( ) ; final VirtualBoxManager manager = getManager ( ) ; Function < IMachine , Image > iMachineToImage = new org . jclouds . virtualbox . functions . IMachineToImage ( manager , osVersionMap ) ; <START_BUG> adapter = new VirtualBoxComputeServiceAdapter ( manager , new org . jclouds . location . suppliers . JustProvider ( ImmutableSet . < String > of ( ) , provider , URI . create ( endpoint ) ) , iMachineToImage ) ; <END_BUG> } protected VirtualBoxManager getManager ( ) { } @ Test public void testListLocations ( ) { } @ Test public void testCreateNodeWithGroupEncodedIntoNameThenStoreCredentials ( ) { } protected void doConnectViaSsh ( IMachine machine , Credentials creds ) { } @ Test public void testListHardwareProfiles ( ) { } @ Test public void testListImages ( ) { } @ AfterGroups ( groups = "live" ) protected void tearDown ( ) { } }

Fix:
adapter = new VirtualBoxComputeServiceAdapter ( manager , new org . jclouds . location . suppliers . JustProvider ( provider , URI . create ( endpoint ) , ImmutableSet . < String > of ( ) ) , iMachineToImage ) ;
Buggy code:
public class PrimitiveTypeRequiredTest extends WicketTestCase { public PrimitiveTypeRequiredTest ( String name ) { } public void testPrimitiveClass ( ) throws Exception { <START_BUG> TextField tf = new TextField ( "test" , int . class ) ; <END_BUG> assertTrue ( tf . isRequired ( ) ) ; try { tf . setRequired ( false ) ; fail ( "Required<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>false<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>primitive<seq2seq4repair_space>class<seq2seq4repair_space>type" ) ; } catch ( WicketRuntimeException wre ) { } } }

Fix:
TextField < Integer > tf = new TextField < Integer > ( "test" , int . class ) ;
Buggy code:
public abstract class DateLayout extends Layout { public static final String NULL_DATE_FORMAT = "NULL" ; public static final String RELATIVE_TIME_DATE_FORMAT = "RELATIVE" ; protected FieldPosition pos = new FieldPosition ( 0 ) ; public static final String DATE_FORMAT_OPTION = "DateFormat" ; public static final String TIMEZONE_OPTION = "TimeZone" ; private String timeZoneID ; private String dateFormatOption ; protected DateFormat dateFormat ; protected Date date = new Date ( ) ; public String [ ] getOptionStrings ( ) { } public void setOption ( String option , String value ) { } public void setDateFormat ( String dateFormat ) { if ( dateFormat != null ) { <START_BUG> dateFormatOption = dateFormat . toUpperCase ( ) ; <END_BUG> } setDateFormat ( dateFormatOption , TimeZone . getDefault ( ) ) ; } public String getDateFormat ( ) { } public void setTimeZone ( String timeZone ) { } public String getTimeZone ( ) { } public void activateOptions ( ) { } public void dateFormat ( StringBuffer buf , LoggingEvent event ) { } public void setDateFormat ( DateFormat dateFormat , TimeZone timeZone ) { } public void setDateFormat ( String dateFormatType , TimeZone timeZone ) { } }

Fix:
dateFormatOption = dateFormat ;
Buggy code:
@ RunWith ( Arquillian . class ) public class SAXParserTestCase { @ Inject public BundleContext context ; @ Inject public Bundle bundle ; @ Deployment @ StartLevelAware ( startLevel = 4 ) public static JavaArchive createdeployment ( ) { final JavaArchive archive = ShrinkWrap . create ( JavaArchive . class , "example-xml-parser" ) ; archive . addClass ( OSGiTestSupport . class ) ; archive . addAsResource ( "osgi//xml//example-xml-parser.xml" , "example-xml-parser.xml" ) ; archive . setManifest ( new Asset ( ) { public InputStream openStream ( ) { OSGiManifestBuilder builder = OSGiManifestBuilder . newInstance ( ) ; builder . addBundleSymbolicName ( archive . getName ( ) ) ; builder . addBundleManifestVersion ( 2 ) ; <START_BUG> builder . addImportPackages ( StartLevel . class ) ; <END_BUG> return builder . openStream ( ) ; } } ) ; return archive ; } @ Test public void testSAXParser ( ) throws Exception { } private SAXParser getSAXParser ( ) throws ParserConfigurationException , InvalidSyntaxException , SAXException { } static class SAXHandler extends DefaultHandler { private String content ; @ Override public void characters ( char [ ] ch , int start , int length ) throws SAXException { } public String getContent ( ) { } } }

Fix:
builder . addImportPackages ( StartLevel . class , SAXParser . class , SAXException . class , DefaultHandler . class ) ;
Buggy code:
public final class CheckBox extends FormComponent implements FormComponent . ICookieValue { private static final long serialVersionUID = 7559827519977114184L ; public CheckBox ( String name , IModel model ) { } public CheckBox ( String name , IModel model , String expression ) { } public CheckBox ( String name , Serializable object ) { } public CheckBox ( String name , Serializable object , String expression ) { } protected void handleComponentTag ( final ComponentTag tag ) { checkTag ( tag , "input" ) ; checkAttribute ( tag , "type" , "checkbox" ) ; super . handleComponentTag ( tag ) ; Object value = getModelObject ( ) ; if ( value != null ) { if ( ! ( value instanceof Boolean ) ) { <START_BUG> throw new RuntimeException ( "model<seq2seq4repair_space>objects<seq2seq4repair_space>for<seq2seq4repair_space>checkboxes<seq2seq4repair_space>have<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>of<seq2seq4repair_space>type<seq2seq4repair_space>Boolean" ) ; <END_BUG> } if ( ( ( Boolean ) ( value ) ) . booleanValue ( ) ) { tag . put ( "checked" , "true" ) ; } } } public void updateModel ( ) { } public String getCookieValue ( ) { } public void setCookieValue ( String value ) { } }

Fix:
throw new RuntimeException ( "Model<seq2seq4repair_space>objects<seq2seq4repair_space>for<seq2seq4repair_space>checkboxes<seq2seq4repair_space>have<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>of<seq2seq4repair_space>type<seq2seq4repair_space>Boolean" ) ;
Buggy code:
public class BatchLinkableResource extends DerivedStateAwareResource implements JvmMemberInitializableResource , IBatchLinkableResource , ISynchronizable < BatchLinkableResource > { private static final Logger log = Logger . getLogger ( BatchLinkableResource . class ) ; @ Inject private BatchLinkingService batchLinkingService ; @ Inject private CompilerPhases compilerPhases ; private Set < Runnable > jvmMemberInitializers = null ; private boolean hasJvmMemberInitializers = false ; private boolean isInitializingJvmMembers = false ; @ Override public Object getLock ( ) { } @ Override public < Result > Result execute ( IUnitOfWork < Result , ? super BatchLinkableResource > unit ) throws Exception { } @ Override public EObject getEObject ( String uriFragment ) { synchronized ( getLock ( ) ) { try { <START_BUG> if ( getEncoder ( ) . isCrossLinkFragment ( this , uriFragment ) ) { <END_BUG> if ( ! ( getUnresolvableURIFragments ( ) . contains ( uriFragment ) ) ) { Triple < EObject , EReference , INode > triple = getEncoder ( ) . decode ( this , uriFragment ) ; if ( batchLinkingService . isBatchLinkable ( triple . getSecond ( ) ) ) { if ( compilerPhases . isIndexing ( this ) ) BatchLinkableResource . log . error ( "Don't<seq2seq4repair_space>resolve<seq2seq4repair_space>expressions<seq2seq4repair_space>during<seq2seq4repair_space>indexing!" , new IllegalStateException ( ( ( ( "Resource<seq2seq4repair_space>URI<seq2seq4repair_space>:<seq2seq4repair_space>" + ( getURI ( ) ) ) + ",<seq2seq4repair_space>fragment<seq2seq4repair_space>:<seq2seq4repair_space>" ) + uriFragment ) ) ) ; return batchLinkingService . resolveBatched ( triple . getFirst ( ) , triple . getSecond ( ) , uriFragment ) ; } return super . getEObject ( uriFragment , triple ) ; } else { return null ; } } return super . getEObject ( uriFragment ) ; } catch ( RuntimeException e ) { operationCanceledManager . propagateAsErrorIfCancelException ( e ) ; getErrors ( ) . add ( new ExceptionDiagnostic ( e ) ) ; BatchLinkableResource . log . error ( ( ( "resolution<seq2seq4repair_space>of<seq2seq4repair_space>uriFragment<seq2seq4repair_space>'" + uriFragment ) + "'<seq2seq4repair_space>failed." ) , e ) ; throw new WrappedException ( e ) ; } } } @ SuppressWarnings ( "sync-override" ) @ Override public EList < EObject > getContents ( ) { } @ Override public void resolveLazyCrossReferences ( CancelIndicator monitor ) { } @ Override protected EObject handleCyclicResolution ( Triple < EObject , EReference , INode > triple ) throws AssertionError { } @ Override public void linkBatched ( CancelIndicator monitor ) { } @ Override public void ensureJvmMembersInitialized ( ) { } @ Override public boolean isInitializingJvmMembers ( ) { } @ Override public void discardDerivedState ( ) { } @ Override public void addJvmMemberInitializer ( Runnable runnable ) { } private void markPendingInitialization ( JvmDeclaredTypeImplCustom type ) { } @ Override public boolean hasJvmMemberInitializers ( ) { } }

Fix:
if ( ( getEncoder ( ) . isCrossLinkFragment ( this , uriFragment ) ) && ( ! ( isLoadedFromStorage ( ) ) ) ) {
Buggy code:
public class FilterMapper extends FilterChain implements FileNameMapper { private static final int BUFFER_SIZE = 8192 ; public void setFrom ( String from ) { } public void setTo ( String to ) { } public String [ ] mapFileName ( String sourceFileName ) { try { Reader stringReader = new StringReader ( sourceFileName ) ; ChainReaderHelper helper = new ChainReaderHelper ( ) ; helper . setBufferSize ( FilterMapper . BUFFER_SIZE ) ; helper . setPrimaryReader ( stringReader ) ; helper . setProject ( getProject ( ) ) ; <START_BUG> Vector filterChains = new Vector ( ) ; <END_BUG> filterChains . add ( this ) ; helper . setFilterChains ( filterChains ) ; String result = FileUtils . safeReadFully ( helper . getAssembledReader ( ) ) ; if ( ( result . length ( ) ) == 0 ) { return null ; } else { return new String [ ] { result } ; } } catch ( BuildException ex ) { throw ex ; } catch ( Exception ex ) { throw new BuildException ( ex ) ; } } }

Fix:
Vector < FilterChain > filterChains = new Vector < FilterChain > ( ) ;
Buggy code:
public class ActivationWriteHandlerTestCase { @ Test public void testHandlerLazy ( ) throws Exception { ModelNode targetNode = new ModelNode ( ) ; targetNode . get ( ACTIVATION ) . set ( "eager" ) ; OperationContext context = Mockito . mock ( OperationContext . class ) ; Resource resource = Mockito . mock ( Resource . class ) ; Mockito . when ( resource . getModel ( ) ) . thenReturn ( targetNode ) ; Mockito . when ( context . readResourceForUpdate ( EMPTY_ADDRESS ) ) . thenReturn ( resource ) ; ModelNode operation = new ModelNode ( ) ; operation . get ( NAME ) . set ( ACTIVATION ) ; operation . get ( VALUE ) . set ( LAZY . toString ( ) . toLowerCase ( Locale . ENGLISH ) ) ; INSTANCE . execute ( context , operation ) ; <START_BUG> Mockito . verify ( context ) . completeStep ( NOOP_ROLLBACK_HANDLER ) ; <END_BUG> Assert . assertEquals ( LAZY . toString ( ) . toLowerCase ( ) , targetNode . get ( ACTIVATION ) . asString ( ) ) ; } }

Fix:
Mockito . verify ( context ) . stepCompleted ( ) ;
Buggy code:
public class DashBoard { private Map < String , String > stringLog ; private Map < String , Boolean > booleanLog ; private Map < String , Double > numberLog ; SmartDashboard b ; public DashBoard ( ) { } public void updateDashboard ( ) { Iterator < String > stringLogIterator = stringLog . keySet ( ) . iterator ( ) ; Iterator < String > booleanLogIterator = booleanLog . keySet ( ) . iterator ( ) ; <START_BUG> Iterator < String > integerLogIterator = booleanLog . keySet ( ) . iterator ( ) ; <END_BUG> while ( stringLogIterator . hasNext ( ) ) { String key = stringLogIterator . next ( ) ; String value = stringLog . get ( key ) ; b . putString ( key , value ) ; } while ( booleanLogIterator . hasNext ( ) ) { String key = booleanLogIterator . next ( ) ; boolean value = booleanLog . get ( key ) ; b . putBoolean ( key , value ) ; } while ( integerLogIterator . hasNext ( ) ) { String key = integerLogIterator . next ( ) ; double value = numberLog . get ( key ) ; b . putNumber ( key , value ) ; } } public void addStringLog ( String key , String value ) { } public void addBooleanLog ( String key , boolean value ) { } public void addNumberLog ( String key , double value ) { } }

Fix:
Iterator < String > integerLogIterator = numberLog . keySet ( ) . iterator ( ) ;
Buggy code:
public class VertxRPCServer extends RPCBase implements RPCServer { private static final Logger log = LoggerFactory . getLogger ( VertxRPCServer . class ) ; private final LocalMap < String , SharedWrapper > serviceMapping ; private final MessageConsumer < byte [ ] > consumer ; public VertxRPCServer ( RPCServerOptions options ) { } private void registryService ( ) { } private < T > void call ( RPCRequest request , Message < byte [ ] > message ) { } private < T > void replySuccess ( T result , Message < byte [ ] > message ) { } private void replyFail ( Throwable ex , Message < byte [ ] > message ) { VertxRPCServer . log . error ( ex . getMessage ( ) , ex ) ; <START_BUG> message . fail ( 500 , ( ( ( ex . getClass ( ) . getName ( ) ) + "|" ) + ( ex . getMessage ( ) ) ) ) ; <END_BUG> } @ Override public void shutdown ( Handler < AsyncResult < Void > > handler ) { } }

Fix:
message . fail ( 500 , ( ( ( ex . getClass ( ) . getName ( ) ) + "|" ) + ( ( ex . getMessage ( ) ) == null ? ex . getStackTrace ( ) [ 0 ] . getMethodName ( ) : ex . getMessage ( ) ) ) ) ;
Buggy code:
public interface APIRepository extends JpaRepository < PanguModel , Long > { public List < PanguModel > findAll ( ) { } <START_BUG> public PanguModel findById ( Long id ) ; <END_BUG> }

Fix:
public PanguModel findById ( long id ) ;
Buggy code:
public class ModuleContextProcessor implements DeploymentUnitProcessor { public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final ServiceTarget serviceTarget = phaseContext . getServiceTarget ( ) ; <START_BUG> final DeploymentUnit deploymentUnitContext = phaseContext . getDeploymentUnitContext ( ) ; <END_BUG> final ServiceName moduleContextServiceName = GLOBAL_CONTEXT_SERVICE_NAME . append ( deploymentUnitContext . getName ( ) ) ; final JndiName moduleContextJndiName = GLOBAL_CONTEXT_NAME . append ( deploymentUnitContext . getName ( ) ) ; final ContextService contextService = new ContextService ( moduleContextJndiName ) ; serviceTarget . addService ( moduleContextServiceName , contextService ) . addDependency ( GLOBAL_CONTEXT_SERVICE_NAME , Context . class , contextService . getParentContextInjector ( ) ) . install ( ) ; phaseContext . putAttachment ( ATTACHMENT_KEY , new ModuleContextConfig ( moduleContextServiceName , moduleContextJndiName ) ) ; } public void undeploy ( DeploymentUnit context ) { } }

Fix:
final DeploymentUnit deploymentUnitContext = phaseContext . getDeploymentUnit ( ) ;
Buggy code:
public class GameController { public GameController ( int maxRounds ) { } private Referee referee ; private Scorecard scorecard ; private String playerName ; private int maxRounds ; private Player player1 ; private Player player2 ; private GameObject player1Throw ; private GameObject player2Throw ; Output endpoint ; UserInput source ; public void main ( ) { endpoint = Output . factory ( "CLI" , Locale . ENGLISH ) ; source = UserInput . factory ( "CLI" ) ; try { endpoint . displayWelcome ( ) ; endpoint . displayNamePrompt ( ) ; playerName = source . getPlayerName ( ) ; if ( playerName . isEmpty ( ) ) { playerName = "player1" ; } } catch ( Exception e ) { endpoint . displayQuit ( ) ; System . exit ( 0 ) ; } try { player1 = Player . factory ( "human" , playerName , endpoint ) ; player2 = Player . factory ( "computer" , "HAL" , null ) ; } catch ( Exception e ) { endpoint . displayQuit ( ) ; System . exit ( 0 ) ; } ( ( UserPlayer ) ( player1 ) ) . setInputType ( "CLI" ) ; ( ( ComputerPlayer ) ( player2 ) ) . setExperienceLevel ( "random" ) ; <START_BUG> scorecard = new Scorecard ( player1 , player2 ) ; <END_BUG> referee = new Referee ( scorecard ) ; if ( ( maxRounds ) <= 0 ) maxRounds = 5 ; for ( int round = 1 ; round <= ( maxRounds ) ; round ++ ) { endpoint . displayNewRound ( ) ; endpoint . displayRound ( round , maxRounds ) ; boolean score = false ; try { player1Throw = player1 . queryThrow ( ) ; endpoint . displayThrow ( player1 . getName ( ) , player1Throw ) ; player2Throw = player2 . queryThrow ( ) ; endpoint . displayThrow ( player2 . getName ( ) , player2Throw ) ; } catch ( Exception e ) { if ( ( ( e . getMessage ( ) ) != null ) && ( e . getMessage ( ) . equalsIgnoreCase ( "score" ) ) ) { score = true ; round -- ; } if ( ( ( e . getMessage ( ) ) != null ) && ( e . getMessage ( ) . equalsIgnoreCase ( "user<seq2seq4repair_space>abort" ) ) ) { endpoint . displayQuit ( ) ; System . exit ( 0 ) ; } } if ( score == false ) { Referee . Winner winner = referee . determineWinner ( player1Throw , player2Throw ) ; if ( winner == ( Winner . PLAYER1 ) ) endpoint . displayRoundWinner ( player1 . getName ( ) ) ; else if ( winner == ( Winner . PLAYER2 ) ) endpoint . displayRoundWinner ( player2 . getName ( ) ) ; else endpoint . displayRoundTie ( player1 . getName ( ) , player2 . getName ( ) ) ; } endpoint . displayScore ( player1 . getName ( ) , scorecard . getPlayerOneScore ( ) , player2 . getName ( ) , scorecard . getPlayerTwoScore ( ) , scorecard . getNumOfTies ( ) ) ; } if ( ( scorecard . getPlayerOneScore ( ) ) > ( scorecard . getPlayerTwoScore ( ) ) ) { endpoint . displayMatchWinner ( player1 . getName ( ) ) ; } else if ( ( scorecard . getPlayerOneScore ( ) ) < ( scorecard . getPlayerTwoScore ( ) ) ) { endpoint . displayMatchWinner ( player2 . getName ( ) ) ; } else { endpoint . displayMatchIsTie ( ) ; } } }

Fix:
scorecard = new Scorecard ( ) ;
Buggy code:
public class HighlightComponent extends SearchComponent { public static final String COMPONENT_NAME = "highlight" ; @ Override public void prepare ( ResponseBuilder rb ) throws IOException { } @ Override public void process ( ResponseBuilder rb ) throws IOException { } public void modifyRequest ( ResponseBuilder rb , SearchComponent who , ShardRequest sreq ) { } @ Override public void handleResponses ( ResponseBuilder rb , ShardRequest sreq ) { } @ Override public void finishStage ( ResponseBuilder rb ) { if ( ( rb . doHighlights ) && ( ( rb . stage ) == ( ResponseBuilder . STAGE_GET_FIELDS ) ) ) { NamedList hlResult = new SimpleOrderedMap ( ) ; Object [ ] arr = new Object [ ( rb . resultIds . size ( ) ) * 2 ] ; for ( ShardRequest sreq : rb . finished ) { if ( ( ( sreq . purpose ) & ( ShardRequest . PURPOSE_GET_HIGHLIGHTS ) ) == 0 ) continue ; for ( ShardResponse srsp : sreq . responses ) { <START_BUG> NamedList hl = ( ( NamedList ) ( srsp . rsp . getResponse ( ) . get ( "highlighting" ) ) ) ; <END_BUG> for ( int i = 0 ; i < ( hl . size ( ) ) ; i ++ ) { String id = hl . getName ( i ) ; ShardDoc sdoc = rb . resultIds . get ( id ) ; int idx = sdoc . positionInResponse ; arr [ ( idx << 1 ) ] = id ; arr [ ( ( idx << 1 ) + 1 ) ] = hl . getVal ( i ) ; } } } rb . rsp . add ( "highlighting" , HighlightComponent . removeNulls ( new SimpleOrderedMap ( Arrays . asList ( arr ) ) ) ) ; } } static NamedList removeNulls ( NamedList nl ) { } @ Override public String getDescription ( ) { } @ Override public String getVersion ( ) { } @ Override public String getSourceId ( ) { } @ Override public String getSource ( ) { } @ Override public URL [ ] getDocs ( ) { } }

Fix:
NamedList hl = ( ( NamedList ) ( srsp . getSolrResponse ( ) . getResponse ( ) . get ( "highlighting" ) ) ) ;
Buggy code:
public abstract class BaseStackedDotsView extends ViewPart implements ErrorLogger { private static final String SHOW_DOT_PLOT = "SHOW_DOT_PLOT" ; private static final String SHOW_LINE_PLOT = "SHOW_LINE_PLOT" ; private PartMonitor _myPartMonitor ; XYPlot _dotPlot ; XYPlot _linePlot ; final StackedDotHelper _myHelper ; protected TrackManager _theTrackDataListener ; protected TrackShiftListener _myShiftListener ; protected Action _showLinePlot ; Action _showDotPlot ; Action _onlyVisible ; protected DataListener _layersListener ; protected Layers _ourLayersSubject ; protected TrackDataProvider _myTrackDataProvider ; ChartComposite _holder ; JFreeChart _myChart ; private Vector < Action > _customActions ; protected Action _autoResize ; private CombinedDomainXYPlot _combined ; protected TrackDataListener _myTrackDataListener ; private final boolean _needBrg ; private final boolean _needFreq ; protected Vector < ISelectionProvider > _selProviders ; protected ISelectionChangedListener _mySelListener ; protected Vector < DraggableItem > _draggableSelection ; protected BaseStackedDotsView ( final boolean needBrg , final boolean needFreq ) { } protected abstract String getUnits ( ) { } protected abstract String getType ( ) { } protected abstract void updateData ( boolean updateDoublets ) { } private void contributeToActionBars ( ) { } protected void fillLocalToolBar ( final IToolBarManager toolBarManager ) { } @ Override public void createPartControl ( final Composite parent ) { } @ SuppressWarnings ( "deprecation" ) protected void createStackedPlot ( ) { } @ Override public void dispose ( ) { super . dispose ( ) ; if ( ( _customActions ) != null ) _customActions . removeAllElements ( ) ; if ( ( _ourLayersSubject ) != null ) _ourLayersSubject . removeDataReformattedListener ( _layersListener ) ; if ( ( _theTrackDataListener ) != null ) { _theTrackDataListener . removeTrackShiftListener ( _myShiftListener ) ; <START_BUG> _theTrackDataListener . removeTrackShiftListener ( _myShiftListener ) ; <END_BUG> } _myPartMonitor . ditch ( ) ; } protected void fillLocalPullDown ( final IMenuManager manager ) { } protected void makeActions ( ) { } @ Override public void setFocus ( ) { } public void logError ( final int statusCode , final String string , final Exception object ) { } void clearPlots ( ) { } void updateStackedDots ( final boolean updateDoublets ) { } void wrappedUpdateStackedDots ( final boolean updateDoublets ) { } private final void watchMyParts ( ) { } protected void updateLinePlotRanges ( ) { } @ Override public void init ( final IViewSite site , final IMemento memento ) throws PartInitException { } @ Override public void saveState ( final IMemento memento ) { } No newline ; at end ; of file ; }

Fix:
_theTrackDataListener . removeTrackDataListener ( _myTrackDataListener ) ;
Buggy code:
@ Slf4j public class MySqlHistoryTriggersPass implements Pass { private final Set < Pattern > skippedTables = new HashSet < Pattern > ( ) ; private final Set < Pattern > skippedColumns = new HashSet < Pattern > ( ) ; private final String historyTableName ; public MySqlHistoryTriggersPass ( ) { } public MySqlHistoryTriggersPass ( String historyTableName ) { } public void pass ( Codegen codegen ) { } public void skipTable ( String regex ) { } public void skipColumn ( String regex ) { } private boolean shouldCreateTrigger ( String tableName ) { } private boolean shouldCreateTrigger ( String tableName , String columnName ) { String matchAgainst = ( tableName + "." ) + columnName ; <START_BUG> for ( Pattern pattern : this . skippedTables ) { <END_BUG> if ( pattern . matcher ( matchAgainst ) . matches ( ) ) { return false ; } } return true ; } private void dropExistingTriggers ( Codegen codegen , String table ) { } private void createInsertTrigger ( Codegen codegen , String tableName ) { } private void createDeleteTrigger ( Codegen codegen , String tableName ) { } private void createUpdateTrigger ( Codegen codegen , String tableName , String rootTableName ) { } private static String snippet ( String prefix , InformationSchemaColumn c ) { } private List < InformationSchemaColumn > columnsForTable ( Codegen codegen , String table ) { } }

Fix:
for ( Pattern pattern : this . skippedColumns ) {
Buggy code:
public class HBaseLookupBolt extends AbstractHBaseBolt { private static final Logger LOG = LoggerFactory . getLogger ( HBaseLookupBolt . class ) ; private HBaseValueMapper rowToTupleMapper ; private HBaseProjectionCriteria projectionCriteria ; public HBaseLookupBolt ( String tableName , HBaseMapper mapper , HBaseValueMapper rowToTupleMapper ) { } public HBaseLookupBolt withConfigKey ( String configKey ) { } public HBaseLookupBolt withProjectionCriteria ( HBaseProjectionCriteria projectionCriteria ) { } @ Override public void execute ( Tuple tuple ) { byte [ ] rowKey = this . mapper . rowKey ( tuple ) ; Get get = hBaseClient . constructGetRequests ( rowKey , projectionCriteria ) ; try { Result result = hBaseClient . batchGet ( Lists . newArrayList ( get ) ) [ 0 ] ; <START_BUG> for ( Values values : rowToTupleMapper . toValues ( result ) ) { <END_BUG> this . collector . emit ( values ) ; } this . collector . ack ( tuple ) ; } catch ( Exception e ) { HBaseLookupBolt . LOG . warn ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>perform<seq2seq4repair_space>Lookup<seq2seq4repair_space>for<seq2seq4repair_space>rowKey<seq2seq4repair_space>=" + rowKey ) + "<seq2seq4repair_space>from<seq2seq4repair_space>Hbase." ) , e ) ; this . collector . fail ( tuple ) ; } } @ Override public void declareOutputFields ( OutputFieldsDeclarer outputFieldsDeclarer ) { } }

Fix:
for ( Values values : rowToTupleMapper . toValues ( tuple , result ) ) {
Buggy code:
public class PasswordInputdialog { private static final String DUMMYTEXT = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ; private Window mainwindow ; private Window thiswindow ; public PasswordInputdialog ( ) { } public PasswordInputdialog ( Window mainwindow ) { } public PasswordInputdialog ( Object page ) { } public void main ( final SimpleCallback < char [ ] > sr ) { if ( ( mainwindow ) == null ) { JFrame jf = new JFrame ( ) ; jf . setTitle ( PasswordDecrypt_title . val ( ) ) ; jf . setResizable ( false ) ; jf . setIconImages ( icons ) ; jf . getContentPane ( ) . setLayout ( new FlowLayout ( ) ) ; jf . setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ; thiswindow = jf ; } else { JDialog jd = new JDialog ( mainwindow ) ; jd . setModal ( true ) ; jd . setTitle ( PasswordDecrypt_title . val ( ) ) ; jd . setResizable ( false ) ; jd . setIconImages ( icons ) ; jd . getContentPane ( ) . setLayout ( new FlowLayout ( ) ) ; jd . setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ; thiswindow = jd ; } final JPasswordField tf = new JPasswordField ( ) ; tf . setPreferredSize ( new Dimension ( 200 , 25 ) ) ; JButton b = new JButton ( "OK" ) ; ActionListener act = new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent e ) { char [ ] pw = tf . getPassword ( ) ; if ( ( pw == null ) || ( ( pw . length ) == 0 ) ) return ; tf . setText ( PasswordInputdialog . DUMMYTEXT ) ; tf . setText ( "" ) ; thiswindow . dispose ( ) ; sr . callbackValue ( PasswordInputdialog . this , pw ) ; } } ; b . addActionListener ( act ) ; tf . addActionListener ( act ) ; thiswindow . add ( tf ) ; thiswindow . add ( b ) ; thiswindow . pack ( ) ; <START_BUG> thiswindow . setLocationRelativeTo ( null ) ; <END_BUG> thiswindow . setVisible ( true ) ; if ( Toolkit . getDefaultToolkit ( ) . getLockingKeyState ( KeyEvent . VK_CAPS_LOCK ) ) { JOptionPane . showMessageDialog ( thiswindow , Password_caps ) ; } } }

Fix:
thiswindow . setLocationRelativeTo ( mainwindow ) ;
Buggy code:
public class ModClusterEnableContext implements OperationStepHandler { static final ModClusterEnableContext INSTANCE = new ModClusterEnableContext ( ) ; static OperationDefinition getDefinition ( ResourceDescriptionResolver descriptionResolver ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { if ( ( context . isNormalServer ( ) ) && ( ( context . getServiceRegistry ( false ) . getService ( SERVICE_NAME ) ) != null ) ) { context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { ServiceController < ? > controller = context . getServiceRegistry ( false ) . getService ( SERVICE_NAME ) ; final ModClusterServiceMBean service = ( ( ModClusterServiceMBean ) ( controller . getValue ( ) ) ) ; ModClusterLogger . ROOT_LOGGER . debugf ( "enable-context:<seq2seq4repair_space>%s" , operation ) ; final String webHost = ModClusterSubsystemResourceDefinition . VIRTUAL_HOST . resolveModelAttribute ( context , operation ) . asString ( ) ; final String webContext = ModClusterSubsystemResourceDefinition . CONTEXT . resolveModelAttribute ( context , operation ) . asString ( ) ; try { service . enableContext ( webHost , webContext ) ; } catch ( IllegalArgumentException e ) { <START_BUG> throw new OperationFailedException ( new ModelNode ( ) . set ( ROOT_LOGGER . contextOrHostNotFound ( webHost , webContext ) ) ) ; <END_BUG> } context . completeStep ( new OperationContext . RollbackHandler ( ) { @ Override public void handleRollback ( OperationContext context , ModelNode operation ) { service . disableContext ( webHost , webContext ) ; } } ) ; } } , RUNTIME ) ; } context . stepCompleted ( ) ; } }

Fix:
throw new OperationFailedException ( new ModelNode ( ) . set ( ROOT_LOGGER . ContextOrHostNotFound ( webHost , webContext ) ) ) ;
Buggy code:
public class TetrisAfterStateAgent < T extends Network > extends RLGlueAgent < T > { public TetrisAfterStateAgent ( ) { } public Action getAction ( Observation o ) { TetrisState tempState = new TetrisState ( ) ; tempState . currentX = o . intArray [ TetrisState . TETRIS_STATE_CURRENT_X_INDEX ] ; tempState . currentY = o . intArray [ TetrisState . TETRIS_STATE_CURRENT_Y_INDEX ] ; tempState . currentRotation = o . intArray [ TetrisState . TETRIS_STATE_CURRENT_ROTATION_INDEX ] ; for ( int p = 0 ; p < ( TetrisState . TETRIS_STATE_NUMBER_POSSIBLE_BLOCKS ) ; p ++ ) { if ( ( o . intArray [ ( ( tempState . worldState . length ) + p ) ] ) == 1 ) { tempState . currentBlockId = p ; } } for ( int i = 0 ; i < ( tempState . worldState . length ) ; i ++ ) { tempState . worldState [ i ] = o . intArray [ i ] ; } boolean currentWatch = CommonConstants . watch ; CommonConstants . watch = false ; HashSet < Pair < TetrisState , ArrayList < Integer > > > tetrisStateHolder = TertisAfterStateGenerator . evaluateAfterStates ( tempState ) ; CommonConstants . watch = currentWatch ; ArrayList < Pair < Double , Integer > > outputPairs = new ArrayList < Pair < Double , Integer > > ( ) ; double [ ] outputs ; for ( Pair < TetrisState , ArrayList < Integer > > i : tetrisStateHolder ) { double [ ] inputs = rlGlueExtractor . extract ( i . t1 . get_observation ( ) ) ; double [ ] inputsScaled = TetrisAfterStateAgent . scaleInputs ( inputs ) ; outputs = this . consultPolicy ( inputsScaled ) ; Pair < Double , Integer > tempPair = new Pair < Double , Integer > ( outputs [ 0 ] , i . t2 . get ( 0 ) ) ; outputPairs . add ( tempPair ) ; } double [ ] outputForArgmax = new double [ outputPairs . size ( ) ] ; for ( int i = 0 ; i < ( outputForArgmax . length ) ; i ++ ) { <START_BUG> outputForArgmax [ i ] = outputPairs . get ( 1 ) . t1 ; <END_BUG> } int index = StatisticsUtilities . argmax ( outputForArgmax ) ; Action action = new Action ( TSO . getNumDiscreteActionDims ( ) , TSO . getNumContinuousActionDims ( ) ) ; action . intArray [ 0 ] = outputPairs . get ( index ) . t2 ; return action ; } public int getNumberOutputs ( ) { } public static double [ ] scaleInputs ( double [ ] inputs ) { } }

Fix:
outputForArgmax [ i ] = outputPairs . get ( i ) . t1 ;
Buggy code:
public class RuntimeExpressionResolver extends ExpressionResolverImpl { private final VaultReader vaultReader ; public RuntimeExpressionResolver ( VaultReader vaultReader ) { } @ Override protected void resolvePluggableExpression ( ModelNode node ) { String expression = node . asString ( ) ; if ( ( expression . length ( ) ) > 3 ) { <START_BUG> expression = expression . substring ( 2 , ( ( expression . length ( ) ) - 2 ) ) ; <END_BUG> if ( ( ( vaultReader ) != null ) && ( vaultReader . isVaultFormat ( expression ) ) ) { node . set ( vaultReader . retrieveFromVault ( expression ) ) ; } } } }

Fix:
expression = expression . substring ( 2 , ( ( expression . length ( ) ) - 1 ) ) ;
Buggy code:
public class Employee extends Card implements Constants { private static double factor = 0.8 ; private double hourWage ; private int seniority ; Scanner input = new Scanner ( System . in ) ; Scanner scanner = new Scanner ( System . in ) ; public Employee ( ) { } public Employee ( String name , int pincode ) { } @ Override public boolean checkPIN ( int pincode ) { int day = dateTime . get ( DAY_OF_WEEK ) ; int time = dateTime . get ( HOUR_OF_DAY ) ; if ( ( day == 1 ) || ( day == 7 ) ) super . accessDenided = true ; else <START_BUG> if ( ( ( day != 1 ) || ( day != 7 ) ) && ( ( time < 7 ) || ( time > 17 ) ) ) <END_BUG> super . accessDenided = true ; else super . accessDenided = false ; if ( pincode != ( this . pincode ) ) return false ; else return true ; } @ Override public void setGivenName ( ) { } @ Override public String getGivenName ( ) { } @ Override public void setSurName ( ) { } @ Override public String getSurName ( ) { } @ Override public void setFullName ( ) { } @ Override public String getFullName ( ) { } @ Override public double calculateCredit ( ) { } @ Override public double calculateBonus ( ) { } }

Fix:
if ( ( time <= 7 ) || ( time >= 17 ) )
Buggy code:
public class ColorManager { private static final int DEFAULT_DELAY = 1000 ; private Window mWindow ; private Toolbar mToolbar ; private Integer mToolbarColor ; private Integer mStatusBarColor ; public ColorManager setToolbar ( Toolbar toolbar ) { } public ColorManager setToolbarColor ( int toolbarColor ) { } public ColorManager setStatusBarColor ( Window window , int statusBarColor ) { <START_BUG> window . setStatusBarColor ( mStatusBarColor ) ; <END_BUG> mWindow = window ; mStatusBarColor = statusBarColor ; return this ; } public void animateToolbar ( int toColor ) throws ColorManager . NoToolbarColorException { } public void animateStatusBar ( int toColor ) throws ColorManager . NoStatusBarColorException { } public static int generateDarkColorFromPrimary ( int primaryColor ) { } public class NoToolbarColorException extends Exception { @ Override public void printStackTrace ( ) { } } public class NoStatusBarColorException extends Exception { @ Override public void printStackTrace ( ) { } } No newline ; at end ; of file ; }

Fix:
window . setStatusBarColor ( statusBarColor ) ;
Buggy code:
public class JavadocAllocationExpression extends AllocationExpression { public int tagSourceStart ; public int tagSourceEnd ; public boolean superAccess = false ; public JavadocAllocationExpression ( long pos ) { } private TypeBinding internalResolveType ( Scope scope ) { constant = NotAConstant ; if ( ( scope . kind ) == ( Scope . CLASS_SCOPE ) ) { this . resolvedType = type . resolveType ( ( ( ClassScope ) ( scope ) ) ) ; } else { this . resolvedType = type . resolveType ( ( ( BlockScope ) ( scope ) ) ) ; } TypeBinding [ ] argumentTypes = NoParameters ; if ( ( arguments ) != null ) { boolean argHasError = false ; int length = arguments . length ; argumentTypes = new TypeBinding [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { Expression argument = this . arguments [ i ] ; if ( ( scope . kind ) == ( Scope . CLASS_SCOPE ) ) { argumentTypes [ i ] = argument . resolveType ( ( ( ClassScope ) ( scope ) ) ) ; } else { argumentTypes [ i ] = argument . resolveType ( ( ( BlockScope ) ( scope ) ) ) ; } if ( ( argumentTypes [ i ] ) == null ) { argHasError = true ; } } if ( argHasError ) { <START_BUG> return this . resolvedType ; <END_BUG> } } if ( ( this . resolvedType ) == null ) { return null ; } this . superAccess = scope . enclosingSourceType ( ) . isCompatibleWith ( this . resolvedType ) ; ReferenceBinding allocationType = ( ( ReferenceBinding ) ( this . resolvedType ) ) ; this . binding = scope . getConstructor ( allocationType , argumentTypes , this ) ; if ( ! ( this . binding . isValidBinding ( ) ) ) { MethodBinding methodBinding = scope . getMethod ( this . resolvedType , this . resolvedType . sourceName ( ) , argumentTypes , this ) ; if ( methodBinding . isValidBinding ( ) ) { this . binding = methodBinding ; } else { if ( ( binding . declaringClass ) == null ) { binding . declaringClass = allocationType ; } scope . problemReporter ( ) . invalidConstructor ( this , binding ) ; } return this . resolvedType ; } if ( isMethodUseDeprecated ( binding , scope ) ) { scope . problemReporter ( ) . deprecatedMethod ( binding , this ) ; } if ( ( arguments ) != null ) { for ( int i = 0 ; i < ( arguments . length ) ; i ++ ) { arguments [ i ] . implicitWidening ( binding . parameters [ i ] , argumentTypes [ i ] ) ; } } return allocationType ; } public boolean isSuperAccess ( ) { } public TypeBinding resolveType ( BlockScope scope ) { } public TypeBinding resolveType ( ClassScope scope ) { } }

Fix:
return null ;
Buggy code:
public final class SocketBinding { public static final ServiceName JBOSS_BINDING_NAME = JBOSS . append ( "binding" ) ; private final String name ; private volatile int port ; private volatile boolean isFixedPort ; private volatile InetAddress multicastAddress ; private volatile int multicastPort ; private volatile List < ClientMapping > clientMappings ; private final NetworkInterfaceBinding networkInterface ; private final SocketBindingManager socketBindings ; public SocketBinding ( final String name , int port , boolean isFixedPort , InetAddress multicastAddress , int multicastPort , final NetworkInterfaceBinding networkInterface , SocketBindingManager socketBindings , List < ClientMapping > clientMappings ) { } private List < ClientMapping > fixupMappings ( List < ClientMapping > clientMappings ) { } public String getName ( ) { } public InetAddress getAddress ( ) { } public NetworkInterfaceBinding getNetworkInterfaceBinding ( ) { } public SocketBindingManager getSocketBindings ( ) { } private int calculatePort ( ) { int port = this . port ; <START_BUG> if ( ( port > 0 ) && ( ( isFixedPort ) == false ) ) { <END_BUG> port += socketBindings . getPortOffset ( ) ; } return port ; } public InetSocketAddress getSocketAddress ( ) { } public InetSocketAddress getMulticastSocketAddress ( ) { } public ServerSocket createServerSocket ( ) throws IOException { } public ServerSocket createServerSocket ( int backlog ) throws IOException { } public DatagramSocket createDatagramSocket ( ) throws SocketException { } public MulticastSocket createMulticastSocket ( ) throws IOException { } public ManagedBinding getManagedBinding ( ) { } public boolean isBound ( ) { } public int getPort ( ) { } public void setPort ( int port ) { } public boolean isFixedPort ( ) { } public void setFixedPort ( boolean fixedPort ) { } public int getMulticastPort ( ) { } public void setMulticastPort ( int multicastPort ) { } public InetAddress getMulticastAddress ( ) { } public void setMulticastAddress ( InetAddress multicastAddress ) { } public void setClientMappings ( List < ClientMapping > clientMappings ) { } public List < ClientMapping > getClientMappings ( ) { } public int getAbsolutePort ( ) { } void checkNotBound ( ) { } ManagedSocketFactory getSocketFactory ( ) { } ManagedServerSocketFactory getServerSocketFactory ( ) { } }

Fix:
if ( ! ( isFixedPort ) ) {
Buggy code:
public class SimpleFacilityConfigImpl implements FacilityConfig { private boolean useFullScreen ; private String driveName ; private String accessPassword ; private String accessName ; private String folderName ; private String facilityName ; private boolean useTimer ; private String facilityDescription ; private boolean dummy ; private boolean useFileLocks = true ; private int fileSettlingTime ; private String address ; public String getAccessName ( ) { } public String getAccessPassword ( ) { } public String getDriveName ( ) { } public String getFacilityName ( ) { } public String getFacilityDescription ( ) { } public String getFolderName ( ) { } public boolean isUseFullScreen ( ) { } @ JsonIgnore public boolean isUseNetDrive ( ) { } public boolean isUseTimer ( ) { } public boolean isDummy ( ) { } public void setAccessName ( String accessName ) { } public void setAccessPassword ( String accessPassword ) { } public void setDriveName ( String driveName ) { } public void setFacilityName ( String name ) { } public void setFacilityDescription ( String desc ) { <START_BUG> this . facilityDescription = facilityName ; <END_BUG> } public void setFolderName ( String folderName ) { } public void setUseFullScreen ( boolean useFullScreen ) { } public void setUseTimer ( boolean useTimer ) { } public void setDummy ( boolean dummy ) { } public boolean isUseFileLocks ( ) { } public void setUseFileLocks ( boolean useFileLocks ) { } public int getFileSettlingTime ( ) { } public void setFileSettlingTime ( int fileSettlingTime ) { } @ JsonIgnore public String getAddress ( ) { } public void setAddress ( String address ) { } }

Fix:
this . facilityDescription = desc ;
Buggy code:
@ Data @ SuppressWarnings ( "all" ) public class IdeaBuildData { private final String compilerName ; private final CompileContext context ; private final ModuleChunk chunk ; private final OutputConsumer outputConsumer ; private final XtextIdeaRefreshComponent refreshComponent ; public JpsModule getModule ( ) { } public Collection < File > getClasspath ( ) { <START_BUG> return ProjectPaths . getCompilationClasspath ( this . chunk , false ) ; <END_BUG> } public Set < File > getSourceRoots ( ) { } public String getEncoding ( ) { } public String getBaseDir ( ) { } public IdeaBuildData ( final String compilerName , final CompileContext context , final ModuleChunk chunk , final ModuleLevelBuilder . OutputConsumer outputConsumer , final XtextIdeaRefreshComponent refreshComponent ) { } @ Override @ Pure public int hashCode ( ) { } @ Override @ Pure public boolean equals ( final Object obj ) { } @ Override @ Pure public String toString ( ) { } @ Pure public String getCompilerName ( ) { } @ Pure public CompileContext getContext ( ) { } @ Pure public ModuleChunk getChunk ( ) { } @ Pure public OutputConsumer getOutputConsumer ( ) { } @ Pure public XtextIdeaRefreshComponent getRefreshComponent ( ) { } }

Fix:
return ProjectPaths . getCompilationClasspath ( this . chunk , true ) ;