nus-yam/ex-repair huggingface dataset:
Buggy code:
public class QueryManagerDaoImpl implements QueryManager { private static final Logger LOG = LoggerFactory . getLogger ( QueryManagerDaoImpl . class ) ; @ Autowired private NodeDao m_nodeDao ; @ Autowired private IpInterfaceDao m_ipInterfaceDao ; @ Autowired private ServiceTypeDao m_serviceTypeDao ; @ Autowired private EventDao m_eventDao ; @ Autowired private OutageDao m_outageDao ; @ Autowired private MonitoredServiceDao m_monitoredServiceDao ; @ Override public String getNodeLabel ( int nodeId ) { } private static Date convertEventTimeToTimeStamp ( String time ) { } @ Override public void openOutage ( String outageIdSQL , int nodeId , String ipAddr , String svcName , int serviceLostEventId , String time ) { } private void openOutage ( int nodeId , String ipAddr , String svcName , int serviceLostEventId , String time ) { } @ Override public void resolveOutage ( int nodeId , String ipAddr , String svcName , int regainedEventId , String time ) { } @ Override public void reparentOutages ( String ipAddr , int oldNodeId , int newNodeId ) { } @ Override public List < String [ ] > getNodeServices ( int nodeId ) { final LinkedList < String [ ] > servicemap = new LinkedList < String [ ] > ( ) ; Criteria criteria = new Criteria ( OnmsMonitoredService . class ) ; <START_BUG> criteria . setAliases ( Arrays . asList ( new Alias [ ] { new Alias ( "monitoredService.ipInterface" , "ipInterface" , JoinType . LEFT_JOIN ) , new Alias ( "ipInterface.node" , "node" , JoinType . LEFT_JOIN ) } ) ) ; <END_BUG> criteria . addRestriction ( new EqRestriction ( "node.id" , nodeId ) ) ; for ( OnmsMonitoredService service : m_monitoredServiceDao . findMatching ( criteria ) ) { servicemap . add ( new String [ ] { service . getIpAddressAsString ( ) , service . getServiceName ( ) } ) ; } return servicemap ; } @ Override public void closeOutagesForUnmanagedServices ( ) { } @ Override public void closeOutagesForNode ( Date closeDate , int eventId , int nodeId ) { } @ Override public void closeOutagesForInterface ( Date closeDate , int eventId , int nodeId , String ipAddr ) { } @ Override public void closeOutagesForService ( Date closeDate , int eventId , int nodeId , String ipAddr , String serviceName ) { } @ Override public void updateServiceStatus ( int nodeId , String ipAddr , String serviceName , String status ) { } }

Fix:
criteria . setAliases ( Arrays . asList ( new Alias [ ] { new Alias ( "ipInterface" , "ipInterface" , JoinType . LEFT_JOIN ) , new Alias ( "ipInterface.node" , "node" , JoinType . LEFT_JOIN ) } ) ) ;
Buggy code:
@ Transactional @ Service public class ChatServiceImpl implements ChatService { private static final Logger log = Logger . getLogger ( ChatServiceImpl . class . getName ( ) ) ; @ Override public void addChat ( Chat chat ) { } @ Override public void updateChat ( Chat chat ) { } @ Override public Chat getChat ( Long id ) { ChatServiceImpl . log . log ( Level . INFO , "Getting<seq2seq4repair_space>Chat<seq2seq4repair_space>instance<seq2seq4repair_space>..." ) ; Chat chat = null ; Session session = null ; try { session = HibernateUtil . getSessionFactory ( ) . openSession ( ) ; <START_BUG> chat = ( ( Chat ) ( session . load ( Chat . class , id ) ) ) ; <END_BUG> ChatServiceImpl . log . log ( Level . INFO , "Getting<seq2seq4repair_space>Chat<seq2seq4repair_space>successful..." ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; ChatServiceImpl . log . log ( Level . SEVERE , "Getting<seq2seq4repair_space>Chat<seq2seq4repair_space>failed..." , e ) ; } finally { if ( ( session != null ) && ( session . isOpen ( ) ) ) { session . close ( ) ; } } return chat ; } @ Override public void deleteChat ( Long id ) { } }

Fix:
chat = ( ( Chat ) ( session . get ( Chat . class , id ) ) ) ;
Buggy code:
public class FolderLayout implements IFolderLayout { private ViewStack folder ; private PageLayout pageLayout ; private ViewFactory viewFactory ; public FolderLayout ( PageLayout pageLayout , ViewStack folder , ViewFactory viewFactory ) { } public void addPlaceholder ( String viewId ) { } public void addView ( String viewId ) { if ( pageLayout . checkPartInLayout ( viewId ) ) return ; try { IViewDescriptor descriptor = viewFactory . getViewRegistry ( ) . find ( viewId ) ; <START_BUG> if ( descriptor != null ) { <END_BUG> throw new PartInitException ( ( "View<seq2seq4repair_space>descriptor<seq2seq4repair_space>not<seq2seq4repair_space>found:<seq2seq4repair_space>" + viewId ) ) ; } if ( WorkbenchActivityHelper . filterItem ( descriptor ) ) { addPlaceholder ( viewId ) ; LayoutHelper . addViewActivator ( pageLayout , viewId ) ; } else { ViewPane newPart = LayoutHelper . createView ( pageLayout . getViewFactory ( ) , viewId ) ; linkPartToPageLayout ( viewId , newPart ) ; folder . add ( newPart ) ; } } catch ( PartInitException e ) { WorkbenchPlugin . log ( getClass ( ) , "addView(String)" , e ) ; } } private void linkPartToPageLayout ( String viewId , LayoutPart newPart ) { } }

Fix:
if ( descriptor == null ) {
Buggy code:
public class BlockOre extends EFBlock { public BlockOre ( ) { } @ Override public Item getItemDropped ( int par1 , Random par2Random , int par3 ) { if ( ( this ) == ( EFBlocks . oreZinchorium ) ) { <START_BUG> return EFItems . zinchoriumDust ; <END_BUG> } else { return Item . getItemFromBlock ( this ) ; } } @ Override public int quantityDropped ( Random par1Random ) { } @ Override public void dropXpOnBlockBreak ( World world , int par2 , int par3 , int par4 , int par5 ) { } }

Fix:
return EFItems . dustZinchorium ;
Buggy code:
public class Classloader extends Task { public static final String SYSTEM_LOADER_REF = MagicNames . SYSTEM_LOADER_REF ; private String name = null ; private Path classpath ; private boolean reset = false ; private boolean parentFirst = true ; private String parentName = null ; public Classloader ( ) { } public void setName ( String name ) { } public void setReset ( boolean b ) { } public void setReverse ( boolean b ) { } public void setParentFirst ( boolean b ) { } public void setParentName ( String name ) { } public void setClasspathRef ( Reference pathRef ) throws BuildException { } public void setClasspath ( Path classpath ) { } public Path createClasspath ( ) { } public void execute ( ) { try { if ( ( "only" . equals ( getProject ( ) . getProperty ( "build.sysclasspath" ) ) ) && ( ( ( name ) == null ) || ( Classloader . SYSTEM_LOADER_REF . equals ( name ) ) ) ) { log ( ( "Changing<seq2seq4repair_space>the<seq2seq4repair_space>system<seq2seq4repair_space>loader<seq2seq4repair_space>is<seq2seq4repair_space>disabled<seq2seq4repair_space>" + "by<seq2seq4repair_space>build.sysclasspath=only" ) , MSG_WARN ) ; return ; } String loaderName = ( ( name ) == null ) ? Classloader . SYSTEM_LOADER_REF : name ; Object obj = getProject ( ) . getReference ( loaderName ) ; if ( reset ) { obj = null ; } if ( ( obj != null ) && ( ! ( obj instanceof AntClassLoader ) ) ) { log ( "Referenced<seq2seq4repair_space>object<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>an<seq2seq4repair_space>AntClassLoader" , MSG_ERR ) ; return ; } AntClassLoader acl = ( ( AntClassLoader ) ( obj ) ) ; boolean existingLoader = acl != null ; if ( acl == null ) { Object parent = null ; if ( ( parentName ) != null ) { parent = getProject ( ) . getReference ( parentName ) ; if ( ! ( parent instanceof ClassLoader ) ) { parent = null ; } } if ( parent == null ) { parent = this . getClass ( ) . getClassLoader ( ) ; } if ( ( name ) == null ) { } getProject ( ) . log ( ( ( ( ( ( "Setting<seq2seq4repair_space>parent<seq2seq4repair_space>loader<seq2seq4repair_space>" + ( name ) ) + "<seq2seq4repair_space>" ) + parent ) + "<seq2seq4repair_space>" ) + ( parentFirst ) ) , MSG_DEBUG ) ; <START_BUG> acl = new AntClassLoader ( ( ( ClassLoader ) ( parent ) ) , getProject ( ) , classpath , parentFirst ) ; <END_BUG> getProject ( ) . addReference ( loaderName , acl ) ; if ( ( name ) == null ) { acl . addLoaderPackageRoot ( "org.apache.tools.ant.taskdefs.optional" ) ; getProject ( ) . setCoreLoader ( acl ) ; } } if ( existingLoader && ( ( classpath ) != null ) ) { String [ ] list = classpath . list ( ) ; for ( int i = 0 ; i < ( list . length ) ; i ++ ) { File f = new File ( list [ i ] ) ; if ( f . exists ( ) ) { log ( ( ( ( "Adding<seq2seq4repair_space>to<seq2seq4repair_space>class<seq2seq4repair_space>loader<seq2seq4repair_space>" + acl ) + "<seq2seq4repair_space>" ) + ( f . getAbsolutePath ( ) ) ) , MSG_DEBUG ) ; acl . addPathElement ( f . getAbsolutePath ( ) ) ; } } } } catch ( Exception ex ) { ex . printStackTrace ( ) ; } } }

Fix:
acl = AntClassLoader . newAntClassLoader ( ( ( ClassLoader ) ( parent ) ) , getProject ( ) , classpath , parentFirst ) ;
Buggy code:
@ Service public class MockActivityService { private static final String BASE_URL_KEY_SIGN = "B:" ; @ Autowired private RuleDao ruleDao ; @ Autowired private RedisTemplate < String , Rule > template ; public void loadRules ( MockActivity activity ) { } public void clearRules ( MockActivity activity ) { } public Rule match ( String code , RuleRequest request ) { Rule result = null ; String key = getMatchKey ( code , request . getHeader ( ) , request . getBody ( ) , true , false ) ; result = matchFullUrl ( key ) ; if ( result == null ) { key = getMatchKey ( code , request . getHeader ( ) , request . getBody ( ) , false , false ) ; result = matchFullUrl ( key ) ; } if ( ( ( result == null ) && ( ( request . getBody ( ) ) != null ) ) && ( ! ( request . getBody ( ) . getContent ( ) . isEmpty ( ) ) ) ) { key = getMatchKey ( code , request . getHeader ( ) , RuleRequestBody . buildBody ( "" ) , true , false ) ; result = matchFullUrl ( key ) ; } if ( ( result == null ) && ( request . getHeader ( ) . hasUrlParameter ( ) ) ) { RuleRequestHeader header = request . getHeader ( ) ; RuleRequestHeader baseHeader = RuleRequestHeader . buildHeader ( header . getBaseUrl ( ) , header . getContentType ( ) , header . getMethod ( ) ) ; key = getMatchKey ( code , baseHeader , request . getBody ( ) , true , true ) ; result = matchBaseUrl ( request , key ) ; if ( result == null ) { key = getMatchKey ( code , baseHeader , request . getBody ( ) , false , true ) ; result = matchBaseUrl ( request , key ) ; } if ( ( ( result == null ) && ( ( request . getBody ( ) ) != null ) ) && ( ! ( request . getBody ( ) . getContent ( ) . isEmpty ( ) ) ) ) { <START_BUG> key = getMatchKey ( code , request . getHeader ( ) , RuleRequestBody . buildBody ( "" ) , true , true ) ; <END_BUG> result = matchBaseUrl ( request , key ) ; } } return result ; } private String getMatchKey ( String code , RuleRequestHeader header , RuleRequestBody body , boolean isText , boolean isBaseUrl ) { } private Rule matchBaseUrl ( RuleRequest request , String key ) { } private Rule matchFullUrl ( String key ) { } }

Fix:
key = getMatchKey ( code , baseHeader , RuleRequestBody . buildBody ( "" ) , true , true ) ;
Buggy code:
public class VhostHolder { private List < String > vhosts ; private String defaultHostName ; public List < String > getVhosts ( ) { <START_BUG> return WebAppUtils . getVhostNames ( ) ; <END_BUG> } public String getDefaultHostName ( ) { } }

Fix:
return WebAppUtils . vhostNames ;
Buggy code:
public class CheatActivity extends Activity { private static final String CHEAT_STATUS = "cheated" ; public static final String EXTRA_ANSWER_IS_TRUE = "com.ziliang.GeoQuiz.answer_is_true" ; public static final String EXTRA_ANSWER_SHOWN = "com.ziliang.GeoQuiz.answer_shown" ; private boolean mAnswerIsTrue ; private TextView mAnswerTextView ; private TextView apiLevel ; private Button mAnswerButton ; private boolean answerShown = false ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_cheat ) ; setAnswerShownResult ( false ) ; mAnswerIsTrue = getIntent ( ) . getBooleanExtra ( CheatActivity . EXTRA_ANSWER_IS_TRUE , false ) ; mAnswerTextView = ( ( TextView ) ( findViewById ( answerTextView ) ) ) ; apiLevel = ( ( TextView ) ( findViewById ( api_level ) ) ) ; int apiLevelInt = VERSION . SDK_INT ; apiLevel . setText ( ( "API<seq2seq4repair_space>Level:<seq2seq4repair_space>" + apiLevelInt ) ) ; mAnswerButton = ( ( Button ) ( findViewById ( showAnswerButton ) ) ) ; mAnswerButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( mAnswerIsTrue ) { mAnswerTextView . setText ( true_button ) ; } else { mAnswerTextView . setText ( false_button ) ; } setAnswerShownResult ( true ) ; answerShown = true ; } } ) ; if ( savedInstanceState != null ) { answerShown = savedInstanceState . getBoolean ( CheatActivity . CHEAT_STATUS ) ; <START_BUG> setAnswerShownResult ( true ) ; <END_BUG> } } private void setAnswerShownResult ( boolean isAnswerShown ) { } @ Override protected void onSaveInstanceState ( Bundle savedInstanceState ) { } }

Fix:
setAnswerShownResult ( answerShown ) ;
Buggy code:
public class QualifiedThisReference extends ThisReference { public TypeReference qualification ; ReferenceBinding currentCompatibleType ; public QualifiedThisReference ( TypeReference name , int sourceStart , int sourceEnd ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public TypeBinding resolveType ( BlockScope scope ) { constant = Constant . NotAConstant ; TypeBinding type = this . qualification . resolveType ( scope , true ) ; <START_BUG> if ( type == null ) <END_BUG> return null ; type = type . erasure ( ) ; if ( type instanceof ReferenceBinding ) { this . resolvedType = scope . environment ( ) . convertToParameterizedType ( ( ( ReferenceBinding ) ( type ) ) ) ; } else { this . resolvedType = type ; } int depth = 0 ; this . currentCompatibleType = scope . referenceType ( ) . binding ; while ( ( ( this . currentCompatibleType ) != null ) && ( ( this . currentCompatibleType ) != type ) ) { depth ++ ; this . currentCompatibleType = ( this . currentCompatibleType . isStatic ( ) ) ? null : this . currentCompatibleType . enclosingType ( ) ; } bits &= ~ ( ASTNode . DepthMASK ) ; bits |= ( depth & 255 ) << ( ASTNode . DepthSHIFT ) ; if ( ( this . currentCompatibleType ) == null ) { scope . problemReporter ( ) . noSuchEnclosingInstance ( type , this , false ) ; return this . resolvedType ; } if ( depth == 0 ) { checkAccess ( scope . methodScope ( ) ) ; } return this . resolvedType ; } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } public void traverse ( ASTVisitor visitor , ClassScope blockScope ) { } }

Fix:
if ( ( type == null ) || ( ! ( type . isValidBinding ( ) ) ) )
Buggy code:
public class InstantiatedIndexReader extends IndexReader { private final InstantiatedIndex index ; public InstantiatedIndexReader ( InstantiatedIndex index ) { } public boolean isOptimized ( ) { } public long getVersion ( ) { } public Directory directory ( ) { } public boolean isCurrent ( ) throws IOException { } public InstantiatedIndex getIndex ( ) { } private Set < InstantiatedDocument > deletedDocuments = new HashSet < InstantiatedDocument > ( ) ; private Set < Integer > deletedDocumentNumbers = new HashSet < Integer > ( ) ; private Map < String , List < InstantiatedIndexReader . NormUpdate > > updatedNormsByFieldNameAndDocumentNumber = null ; private class NormUpdate { private int doc ; private byte value ; public NormUpdate ( int doc , byte value ) { } } public int numDocs ( ) { } public int maxDoc ( ) { } public boolean isDeleted ( int n ) { } public boolean hasDeletions ( ) { } protected void doDelete ( int docNum ) throws IOException { } protected void doUndeleteAll ( ) throws IOException { } protected void doCommit ( ) throws IOException { } protected void doClose ( ) throws IOException { } public Collection getFieldNames ( FieldOption fieldOption ) { } public Document document ( int n , FieldSelector fieldSelector ) throws IOException , CorruptIndexException { } public Document document ( int n ) throws IOException { } public byte [ ] norms ( String field ) throws IOException { } public void norms ( String field , byte [ ] bytes , int offset ) throws IOException { byte [ ] norms = getIndex ( ) . getNormsByFieldNameAndDocumentNumber ( ) . get ( field ) ; <START_BUG> System . arraycopy ( norms , offset , bytes , 0 , norms . length ) ; <END_BUG> } protected void doSetNorm ( int doc , String field , byte value ) throws IOException { } public int docFreq ( Term t ) throws IOException { } public TermEnum terms ( ) throws IOException { } public TermEnum terms ( Term t ) throws IOException { } public TermDocs termDocs ( ) throws IOException { } public TermPositions termPositions ( ) throws IOException { } public TermFreqVector [ ] getTermFreqVectors ( int docNumber ) throws IOException { } public TermFreqVector getTermFreqVector ( int docNumber , String field ) throws IOException { } public void getTermFreqVector ( int docNumber , String field , TermVectorMapper mapper ) throws IOException { } public void getTermFreqVector ( int docNumber , TermVectorMapper mapper ) throws IOException { } }

Fix:
System . arraycopy ( norms , 0 , bytes , offset , norms . length ) ;
Buggy code:
public class ClashEvaluator extends GhciEvaluator { public ClashEvaluator ( ) throws HaskellException { } @ Override protected List < String > getCommand ( ) { <START_BUG> return ImmutableList . of ( "clash" , "--interactive" , "-ignore-dot-ghci" ) ; <END_BUG> } @ Override protected List < String > getModules ( ) { } @ Override protected String getCatalogPath ( ) { } }

Fix:
return ImmutableList . of ( "clash" , "--interactive" , "-ignore-dot-ghci" , "-fno-warn-overlapping-patterns" ) ;
Buggy code:
public class AuthenticationServlet extends HttpServlet { private static final long serialVersionUID = 1L ; public AuthenticationServlet ( ) { } protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { String SSO_CLIENT_ID = ConfigUtilities . getSingleton ( ) . getSSOClientIdentifier ( ) ; String SSO_CLIENT_SECRET = ConfigUtilities . getSingleton ( ) . getSSOClientSecret ( ) ; String SSO_REDIRECT = ConfigUtilities . getSingleton ( ) . getSSORedirectUri ( ) ; try { String code = request . getParameter ( "code" ) ; if ( ( code != null ) && ( ( code . length ( ) ) > 0 ) ) { String state = request . getParameter ( "state" ) ; String stateSession = ( ( String ) ( request . getSession ( ) . getAttribute ( "state" ) ) ) ; if ( ( state == null ) && ( ( state . length ( ) ) < 1 ) ) { response . sendRedirect ( "curation.html?userName=NotAuthenticated" ) ; } if ( ! ( state . equalsIgnoreCase ( stateSession ) ) ) response . sendRedirect ( "curation.html?userName=NotAuthenticated" ) ; String accessToken = getAccessTokenFromCodeResponse ( SSO_CLIENT_ID , SSO_CLIENT_SECRET , SSO_REDIRECT , code ) ; String userDisplayName = "" ; String userName = "" ; if ( accessToken != null ) { User user = getProfileWithAccessToken ( accessToken ) ; userName = user . getUsername ( ) ; request . getSession ( ) . setAttribute ( "userName" , userName ) ; userDisplayName = user . getUserDisplayName ( ) [ 0 ] ; request . getSession ( ) . setAttribute ( "userDisplayName" , userDisplayName ) ; } <START_BUG> response . sendRedirect ( "swagger//index.html" ) ; <END_BUG> } else { String state = UUID . randomUUID ( ) . toString ( ) ; request . getSession ( ) . setAttribute ( "state" , state ) ; String authorizeURL = ( ( ( ( ( ( ( "https:////idaas.ng.bluemix.net//sps//oauth20sp//oauth20//authorize" + "?client_id=" ) + SSO_CLIENT_ID ) + "&response_type=code&scope=profile" ) + "&redirect_uri=" ) + SSO_REDIRECT ) + "&state=" ) + state ) + "&requestedAuthnPolicy=http:////www.ibm.com//idaas//authnpolicy//basic" ; response . sendRedirect ( authorizeURL ) ; } } catch ( Throwable e ) { e . printStackTrace ( ) ; } } public static void configureSSL ( ) { } private String getAccessTokenFromCodeResponse ( String id , String secret , String redirect , String code ) { } private User getProfileWithAccessToken ( String accessToken ) { } public static boolean checkAuthorization ( HttpServletRequest httpServletRequest ) { } }

Fix:
response . sendRedirect ( ( "?name=" + userName ) ) ;
Buggy code:
public class CmpSubsystemAdd extends AbstractBoottimeAddStepHandler implements DescriptionProvider { private static final Logger logger = Logger . getLogger ( CmpSubsystemAdd . class ) ; static CmpSubsystemAdd INSTANCE = new CmpSubsystemAdd ( ) ; protected void performBoottime ( final OperationContext context , final ModelNode operation , final ModelNode model , final ServiceVerificationHandler verificationHandler , final List < ServiceController < ? > > newControllers ) throws OperationFailedException { <START_BUG> CmpSubsystemAdd . logger . info ( "Activating<seq2seq4repair_space>EJB<seq2seq4repair_space>CMP<seq2seq4repair_space>Subsystem" ) ; <END_BUG> final boolean appclient = ( context . getProcessType ( ) ) == ( ProcessType . APPLICATION_CLIENT ) ; final KeyGeneratorFactoryRegistry keyGeneratorFactoryRegistry = new KeyGeneratorFactoryRegistry ( ) ; newControllers . add ( context . getServiceTarget ( ) . addService ( SERVICE_NAME , keyGeneratorFactoryRegistry ) . addListener ( verificationHandler ) . install ( ) ) ; context . addStep ( new AbstractDeploymentChainStep ( ) { protected void execute ( DeploymentProcessorTarget processorTarget ) { processorTarget . addDeploymentProcessor ( PARSE , PARSE_CMP_ENTITY_BEAN_CREATE_COMPONENT_DESCRIPTIONS , new CmpEntityBeanComponentDescriptionFactory ( appclient ) ) ; if ( ! appclient ) { processorTarget . addDeploymentProcessor ( DEPENDENCIES , DEPENDENCIES_CMP , new CmpDependencyProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( POST_MODULE , POST_MODULE_CMP_PARSE , new CmpParsingProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( POST_MODULE , POST_MODULE_CMP_ENTITY_METADATA , new CmpEntityMetaDataProcessor ( CmpEntityBeanComponentDescription . class ) ) ; processorTarget . addDeploymentProcessor ( POST_MODULE , POST_MODULE_CMP_STORE_MANAGER , new CmpStoreManagerProcessor ( ) ) ; } } } , RUNTIME ) ; } protected void populateModel ( final ModelNode operation , final ModelNode model ) throws OperationFailedException { } public ModelNode getModelDescription ( final Locale locale ) { } }

Fix:
CmpSubsystemAdd . logger . debug ( "Activating<seq2seq4repair_space>EJB<seq2seq4repair_space>CMP<seq2seq4repair_space>Subsystem" ) ;
Buggy code:
public class ServerPresentationModelFactory { private ServerPresentationModelFactory ( ) { } public static ServerAttribute create ( String propertyName , Object initialValue ) { } public static ServerAttribute create ( String propertyName , Object baseValue , String qualifier , Tag tag ) { } public static ServerPresentationModel create ( String id , List < ServerAttribute > attributes , ServerModelStore serverModelStore ) { } public static ServerPresentationModel create ( String id , List < ServerAttribute > attributes , ServerModelStore serverModelStore , String presentationModelType ) { <START_BUG> return new GServerPresentationModel ( id , attributes , serverModelStore ) ; <END_BUG> } }

Fix:
return new GServerPresentationModel ( id , attributes , serverModelStore , presentationModelType ) ;
Buggy code:
public class ThemeDescriptor implements IThemeDescriptor { public static final String ATT_ID = "id" ; private static final String ATT_NAME = "name" ; private Collection colors = new HashSet ( ) ; private String description ; private Collection fonts = new HashSet ( ) ; private String id ; private String name ; private Map dataMap = new HashMap ( ) ; public ThemeDescriptor ( String id ) { } void add ( ColorDefinition definition ) { } void add ( FontDefinition definition ) { } void setData ( String key , Object data ) { } public ColorDefinition [ ] getColors ( ) { } public String getDescription ( ) { } public FontDefinition [ ] getFonts ( ) { } public String getId ( ) { } public String getName ( ) { } void extractName ( IConfigurationElement configElement ) { } void setDescription ( String description ) { <START_BUG> if ( description == null ) { <END_BUG> this . description = description ; } } public Map getData ( ) { } }

Fix:
if ( ( this . description ) == null ) {
Buggy code:
public class Knoten implements Serializable { private static final long serialVersionUID = 8432201362823586839L ; private int zaehler ; private String name ; private HashMap < String , Knoten > kinder ; private boolean match = false ; public Knoten ( ) { } public Knoten ( String name ) { } public int inkZaehler ( ) { } public int getZaehler ( ) { } public void setZaehler ( int zaehler ) { } public String getName ( ) { } public void setName ( String name ) { } public void setName ( char name ) { } public HashMap < String , Knoten > getKinder ( ) { } public void setKinder ( HashMap < String , Knoten > kinder ) { } public boolean isMatch ( ) { } public void setMatch ( boolean match ) { } @ Override public String toString ( ) { <START_BUG> return ( this . zaehler ) + "" ; <END_BUG> } }

Fix:
return ( ( ( this . name ) + "[" ) + ( this . zaehler ) ) + "]" ;
Buggy code:
public class ListenableFutureReturnValueHandler implements HandlerMethodReturnValueHandler { @ Override public boolean supportsReturnType ( MethodParameter returnType ) { } @ Override public void handleReturnValue ( Object returnValue , MethodParameter returnType , ModelAndViewContainer mavContainer , NativeWebRequest webRequest ) throws Exception { if ( returnValue == null ) { mavContainer . setRequestHandled ( true ) ; return ; } <START_BUG> DeferredResult < Object > deferredResult = new DeferredResult < Object > ( ) ; <END_BUG> WebAsyncUtils . getAsyncManager ( webRequest ) . startDeferredResultProcessing ( deferredResult , mavContainer ) ; ListenableFuture < ? > future = ( ( ListenableFuture < ? > ) ( returnValue ) ) ; future . addCallback ( new org . springframework . util . concurrent . ListenableFutureCallback < Object > ( ) { @ Override public void onSuccess ( Object result ) { deferredResult . setResult ( result ) ; } @ Override public void onFailure ( Throwable ex ) { deferredResult . setErrorResult ( ex ) ; } } ) ; } }

Fix:
final DeferredResult < Object > deferredResult = new DeferredResult < Object > ( ) ;
Buggy code:
public class EmailSender { private String htmlBasic ; private JavaMailSender mailSender ; public EmailSender ( ) { } public void sendEmailVerification ( User sendTo , String verificationID ) { } public void sendCreateConfirmation ( User sendTo , String eventname ) { } public void sendInvitationToUser ( User sendTo , User inviter , Event event ) { } public void sendInvitationToNonUser ( User sendTo , User inviter , Event event ) { } private void sendEmail ( String address , String firstName , String subject , String emailContent ) { <START_BUG> String newEmailContent = htmlFormat ( emailContent , firstName ) ; <END_BUG> MimeMessage message = mailSender . createMimeMessage ( ) ; MimeMessageHelper helper = new MimeMessageHelper ( message ) ; try { helper . setTo ( address ) ; helper . setText ( emailContent , true ) ; helper . setSubject ( subject ) ; helper . setFrom ( "justParty" ) ; } catch ( MessagingException e ) { SystemProperties . getLogger ( ) . logException ( e ) ; } mailSender . send ( message ) ; } private String htmlFormat ( String emailContent , String firstName ) { } private String insertButton ( String href , String label ) { } }

Fix:
htmlFormat ( emailContent , firstName ) ;
Buggy code:
public class SimpleCacheFactoryBuilderService < K , V extends Identifiable < K > > extends CacheFactoryBuilderService < K , V > implements CacheFactoryBuilder < K , V > { private static final ThreadFactory THREAD_FACTORY = new org . jboss . threads . JBossThreadFactory ( new ThreadGroup ( SimpleCache . class . getSimpleName ( ) ) , Boolean . FALSE , null , "%G<seq2seq4repair_space>-<seq2seq4repair_space>%t" , null , null , AccessController . doPrivileged ( GetAccessControlContextAction . getInstance ( ) ) ) ; private final String name ; public SimpleCacheFactoryBuilderService ( String name ) { } @ Override public CacheFactoryBuilder < K , V > getValue ( ) { } @ Override public void installDeploymentUnitDependencies ( ServiceTarget target , ServiceName deploymentUnitServiceName ) { <START_BUG> target . addService ( deploymentUnitServiceName . append ( this . name , "expiration" ) , new RemoveOnCancelScheduledExecutorService ( SimpleCacheFactoryBuilderService . THREAD_FACTORY ) ) . setInitialMode ( ON_DEMAND ) . install ( ) ; <END_BUG> } @ Override public ServiceBuilder < ? extends CacheFactory < K , V > > build ( ServiceTarget target , ServiceName name , BeanContext context , StatefulTimeoutInfo timeout ) { } @ Override public boolean supportsPassivation ( ) { } }

Fix:
RemoveOnCancelScheduledExecutorService . build ( target , deploymentUnitServiceName . append ( this . name , "expiration" ) , SimpleCacheFactoryBuilderService . THREAD_FACTORY ) . setInitialMode ( ON_DEMAND ) . install ( ) ;
Buggy code:
public abstract class RequestCycle { private static final Log log = LogFactory . getLog ( RequestCycle . class ) ; protected final IApplication application ; protected final Session session ; protected final Request request ; protected Response response ; private Page page ; private Page pageBackup ; private boolean redirect ; private static final Map constructors = new HashMap ( ) ; private static final Map listenerInterfaceMethods = new HashMap ( ) ; private static final ThreadLocal current = new ThreadLocal ( ) ; public static void registerRequestListenerInterface ( final Class i ) { } public static final RequestCycle get ( ) { } protected RequestCycle ( final IApplication application , final Session session , final Request request , final Response response ) { } public final boolean continueToOriginalDestination ( ) { } public final void redirectToInterceptPage ( final Class c ) { } public final void redirectToInterceptPage ( final Page page ) { } public final void render ( ) throws ServletException { } public final IApplication getApplication ( ) { } public final Page getPage ( ) { } public final boolean getRedirect ( ) { } public final Request getRequest ( ) { } public final Response getResponse ( ) { } public final Session getSession ( ) { } public final IPageFactory getPageFactory ( ) { <START_BUG> return getApplication ( ) . getSettings ( ) . getPageFactory ( ) ; <END_BUG> } public final void setPage ( final Class c ) { } public final void setPage ( final String classname ) { } public final void setPage ( final Class c , final PageParameters parameters ) { } public final void setPage ( final Class c , final Page page ) { } public final void setPage ( final Page page ) { } public final void setRedirect ( final boolean redirect ) { } public void setResponse ( final Response response ) { } public abstract String urlFor ( final Class pageClass , final PageParameters parameters ) { } public abstract String urlFor ( final Component component , final Class listenerInterface ) { } protected final Method getInterfaceMethod ( final String name ) { } protected abstract void handleRender ( ) { } protected final Page newPage ( final Class pageClass ) { } protected final Page newPage ( final String pageClassName ) { } protected final Page newPage ( final Class pageClass , final Page page ) { } protected abstract void redirectToPage ( final Page page ) { } private void release ( ) { } }

Fix:
return getApplication ( ) . getSettings ( ) . getDefaultPageFactory ( ) ;
Buggy code:
public class ChatManager implements Serializable { private static final long serialVersionUID = 1L ; private static ChatManager instance ; public static ChatManager getInstance ( ) { } public ChatManager ( ) { } protected Map < String , ChatData > chats ; public void newMessage ( NotificationWithDataAction action ) { } public void newMessage ( JSONObject json ) throws Exception { Log . d ( "CHAT" , ( "newMessage" + ( json . toString ( ) ) ) ) ; JSONObject chatObject = json . getJSONObject ( "chatObject" ) ; <START_BUG> ChatMessageData messageData = new ChatMessageData ( chatObject . getString ( "senderId" ) , chatObject . getString ( "senderName" ) , "" , chatObject . getLong ( "createdAt" ) , chatObject . getString ( MESSAGE . toString ( ) ) ) ; <END_BUG> String chatId = chatObject . getString ( CHAT_OBJECT_ID . toString ( ) ) ; ChatData chatData = chats . get ( chatId ) ; if ( chatData == null ) { chatData = new ChatData ( chatId , chatObject . getString ( "senderId" ) , APIManager . getInstance ( ) . getUser ( ) . getId ( ) . toString ( ) , messageData ) ; chats . put ( chatId , chatData ) ; } else { chatData . addMessage ( messageData ) ; } } public void save ( ) { } public void chatViewed ( String chatId ) { } public void update ( ChatAPIObject chatObject , JSONObject item ) throws Exception { } public ChatData getChat ( String id ) { } public int getAmountUnreadMessages ( ) { } public int getAmountUnreadDialogs ( ) { } }

Fix:
ChatMessageData messageData = new ChatMessageData ( chatObject . getString ( "senderId" ) , chatObject . getString ( "senderName" ) , "" , chatObject . getLong ( "createdAt" ) , ( chatObject . has ( "message" ) ? chatObject . getString ( MESSAGE . toString ( ) ) : "" ) ) ;
Buggy code:
public class IntentRouter { public static final String TWITTER_HOST = "twitter.com" ; public static void onNewIntent ( MainActivity activity , Intent intent ) { } private static String getText ( Bundle extra ) { } private static String getText ( Uri uri ) { } private static void onUriIntent ( MainActivity activity , Uri uri ) { } private static String getScreenName ( Uri uri ) { } private static long getStatusID ( Uri uri ) { String str = "-1" ; <START_BUG> String [ ] arrayOfString = uri . toString ( ) . split ( "//" ) ; <END_BUG> for ( int i = 0 ; i < ( arrayOfString . length ) ; i ++ ) { if ( arrayOfString [ i ] . startsWith ( "status" ) ) { str = arrayOfString [ ( i + 1 ) ] ; break ; } } return Long . parseLong ( str ) ; } private static boolean isPostIntent ( Uri uri ) { } private static boolean isStatusIntent ( Uri uri ) { } private static boolean isUserIntent ( Uri uri ) { } private static void showStatusDialog ( final MainActivity activity , long id ) { } private static void showUserDialog ( MainActivity activity , String screenName ) { } private static void openPostPage ( final MainActivity activity , final String str ) { } private static void openPostPageWithImage ( final MainActivity activity , final Uri imageUri ) { } }

Fix:
String [ ] arrayOfString = uri . getPath ( ) . toString ( ) . split ( "//" ) ;
Buggy code:
public class Commands { private final CommandSender sender ; private final WorldManager instance = WorldManager . getInstance ( ) ; private World world = null ; private Calculable calc = null ; protected Commands ( CommandSender player ) { } protected String format ( String message ) { } public void setWorld ( String w ) { } public World getWorld ( ) { } public void setCalculable ( CalculableType type , String c ) { } public Calculable getCalculable ( ) { } public void addGroup ( String group ) { } public void removeGroup ( String group ) { } public void setGroup ( String group ) { } public void listGroups ( ) { } public void addPermission ( String permission ) { } public void removePermission ( String permission ) { } public void listPermissions ( ) { } public void hasPermission ( String node ) { } public void setValue ( String key , String value ) { } public void showValue ( String key ) { String value = calc . getValue ( key ) ; <START_BUG> sender . sendMessage ( format ( ( ( ( ( ( "The<seq2seq4repair_space>" + ( calc . getType ( ) . getName ( ) ) ) + "<seq2seq4repair_space>-<seq2seq4repair_space>" ) + key ) + ":<seq2seq4repair_space>" ) + value ) ) ) ; <END_BUG> } public void save ( ) { } No newline ; at end ; of file ; }

Fix:
sender . sendMessage ( format ( ( ( ( ( ( ( ( "Meta<seq2seq4repair_space>for<seq2seq4repair_space>" + ( calc . getType ( ) . getName ( ) ) ) + "<seq2seq4repair_space>" ) + ( calc . getName ( ) ) ) + "<seq2seq4repair_space>-<seq2seq4repair_space>" ) + key ) + ":<seq2seq4repair_space>" ) + value ) ) ) ;
Buggy code:
public class ImmutableBehaviorIndexTest extends WicketTestCase { public void testSimple ( ) { } public void testUrlIndexRendering ( ) { } public void testBehaviorDataArrayCleanup ( ) { IBehavior border = new SimpleAttributeModifier ( "class" , "border" ) ; IBehavior border2 = new SimpleAttributeModifier ( "class2" , "border" ) ; IBehavior auto = new SimpleAttributeModifier ( "autocomplete" , "off" ) ; IBehavior auto2 = new SimpleAttributeModifier ( "autocomplete2" , "off" ) ; IBehavior link = new ImmutableBehaviorIndexTest . LinkBehavior ( "href" ) ; IBehavior link2 = new ImmutableBehaviorIndexTest . LinkBehavior ( "onclick" ) ; ImmutableBehaviorIndexTest . MyPage page = new ImmutableBehaviorIndexTest . MyPage ( ) ; page . getContainer ( ) . add ( border , auto , link , border2 , link2 , auto2 ) ; <START_BUG> List < IBehavior > behaviors = page . getContainer ( ) . getBehaviorsRawList ( ) ; <END_BUG> assertEquals ( 6 , behaviors . size ( ) ) ; page . getContainer ( ) . remove ( border ) ; behaviors = page . getContainer ( ) . getBehaviorsRawList ( ) ; assertEquals ( 6 , behaviors . size ( ) ) ; assertNull ( behaviors . get ( 0 ) ) ; page . getContainer ( ) . remove ( link ) ; behaviors = page . getContainer ( ) . getBehaviorsRawList ( ) ; assertEquals ( 6 , behaviors . size ( ) ) ; assertNull ( behaviors . get ( 0 ) ) ; assertNull ( behaviors . get ( 2 ) ) ; page . getContainer ( ) . remove ( auto2 ) ; behaviors = page . getContainer ( ) . getBehaviorsRawList ( ) ; assertEquals ( 5 , behaviors . size ( ) ) ; assertNull ( behaviors . get ( 0 ) ) ; assertNull ( behaviors . get ( 2 ) ) ; page . getContainer ( ) . remove ( link2 ) ; behaviors = page . getContainer ( ) . getBehaviorsRawList ( ) ; assertEquals ( 2 , behaviors . size ( ) ) ; assertSame ( auto , behaviors . get ( 0 ) ) ; assertSame ( border2 , behaviors . get ( 1 ) ) ; } private static class LinkBehavior extends AbstractBehavior implements IBehaviorListener { private static final long serialVersionUID = 1L ; private final String attr ; public LinkBehavior ( String attr ) { } @ Override public void onComponentTag ( Component component , ComponentTag tag ) { } public void onRequest ( ) { } } private static class MyPage extends WebPage implements IMarkupResourceStreamProvider { private final WebMarkupContainer container ; public MyPage ( ) { } public IResourceStream getMarkupResourceStream ( MarkupContainer container , Class < ? > containerClass ) { } public WebMarkupContainer getContainer ( ) { } } }

Fix:
List < ? extends IBehavior > behaviors = page . getContainer ( ) . getBehaviorsRawList ( ) ;
Buggy code:
public class CacheOutRemover implements Runnable { private boolean stop = false ; private CacheRemoveable observable ; public CacheOutRemover ( CacheRemoveable observable ) { } @ Override public void run ( ) { while ( ! ( this . stop ) ) { Object [ ] observablesKeys = this . observable . keySet ( ) ; for ( Object key : observablesKeys ) { CacheObject objTmp = this . observable . get ( key ) ; <START_BUG> if ( ( System . currentTimeMillis ( ) ) > ( objTmp . getTimeOut ( ) ) ) { <END_BUG> this . observable . remove ( key ) ; } } double maxSize = this . observable . getConfig ( ) . getMaxSize ( ) ; int maxCount = this . observable . getConfig ( ) . getMaxCount ( ) ; while ( ( ( this . observable . getSize ( ) ) > maxSize ) || ( ( this . observable . getCount ( ) ) > maxCount ) ) { this . observable . removeFirst ( ) ; } try { Thread . sleep ( this . observable . getConfig ( ) . getRemoverSheduleTime ( ) ) ; } catch ( InterruptedException e ) { } } } public boolean isStop ( ) { } public void setStop ( boolean stop ) { } }

Fix:
if ( ( objTmp != null ) && ( ( System . currentTimeMillis ( ) ) > ( objTmp . getTimeOut ( ) ) ) ) {
Buggy code:
public final class XtendBackendFacade { private final String _xtendFile ; private final MiddleEnd _middleEnd ; private final Collection < MetaModel > _mms ; public static Object evaluateExpression ( String expression , Collection < MetaModel > mms , Map < String , Object > localVars ) { } public static Object evaluateExpression ( String expression , Collection < MetaModel > mms , Map < String , Object > localVars , Map < String , Object > globalVars ) { } public static Object evaluateExpression ( String expression , String initialXtendFileName , String fileEncoding , Collection < MetaModel > mms , Map < String , Object > localVars ) { } public static Object evaluateExpression ( String expression , String initialXtendFileName , String fileEncoding , Collection < MetaModel > mms , Map < String , Object > localVars , Map < String , Object > globalVars , List < String > adviceResources ) { } public Object evaluateExpression ( String expression , Map < String , Object > localVars ) { } public Object evaluateExpression ( String expression , Map < String , Object > localVars , Map < String , Object > globalVars , List < String > adviceResources ) { } private FunctionDefContext createFdc ( ) { } public static Object invokeXtendFunction ( String xtendFileName , String fileEncoding , Collection < MetaModel > mms , QualifiedName functionName , Object ... parameters ) { } public Object invokeXtendFunction ( QualifiedName functionName , Object ... parameters ) { } public static XtendBackendFacade createForFile ( String xtendFileName , String fileEncoding , Collection < MetaModel > mms ) { } private Map < Class < ? > , Object > getSpecificParameters ( String fileEncoding , Collection < MetaModel > mms ) { fileEncoding = OldHelper . normalizedFileEncoding ( fileEncoding ) ; final ExecutionContextImpl ctx = new ExecutionContextImpl ( ) ; <START_BUG> ctx . setFileEncoding ( fileEncoding ) ; <END_BUG> for ( MetaModel mm : mms ) ctx . registerMetaModel ( mm ) ; final Map < Class < ? > , Object > result = new HashMap < Class < ? > , Object > ( ) ; result . put ( OldXtendRegistryFactory . class , ctx ) ; result . put ( OldCheckRegistryFactory . class , ctx ) ; return result ; } private XtendBackendFacade ( String xtendFileName , String fileEncoding , Collection < MetaModel > mms ) { } public FunctionDefContext getFunctionDefContext ( ) { } }

Fix:
ctx . getResourceManager ( ) . setFileEncoding ( fileEncoding ) ;
Buggy code:
public class StatelessComponentDescription extends SessionBeanComponentDescription { private String poolConfigName ; public StatelessComponentDescription ( final String componentName , final String componentClassName , final EjbJarDescription ejbModuleDescription , final ServiceName deploymentUnitServiceName , final SessionBeanMetaData descriptorData ) { } @ Override public ComponentConfiguration createConfiguration ( final ClassIndex classIndex , final ClassLoader moduleClassLoder , final ModuleLoader moduleLoader ) { } @ Override public boolean allowsConcurrentAccess ( ) { } @ Override public SessionBeanType getSessionBeanType ( ) { } @ Override protected void setupViewInterceptors ( EJBViewDescription view ) { } private void addViewSerializationInterceptor ( final ViewDescription view ) { view . setSerializable ( true ) ; view . setUseWriteReplace ( true ) ; view . getConfigurators ( ) . add ( new ViewConfigurator ( ) { @ Override public void configure ( final DeploymentPhaseContext context , final ComponentConfiguration componentConfiguration , final ViewDescription description , final ViewConfiguration configuration ) throws DeploymentUnitProcessingException { final DeploymentReflectionIndex index = context . getDeploymentUnit ( ) . getAttachment ( REFLECTION_INDEX ) ; ClassReflectionIndex < WriteReplaceInterface > classIndex = index . getClassIndex ( WriteReplaceInterface . class ) ; for ( Method method : classIndex . getMethods ( ) ) { <START_BUG> configuration . addClientInterceptor ( method , new org . jboss . as . ejb3 . component . session . StatelessWriteReplaceInterceptor . Factory ( configuration . getViewServiceName ( ) . getCanonicalName ( ) ) , WRITE_REPLACE ) ; <END_BUG> } } } ) ; } @ Override protected ViewConfigurator getSessionBeanObjectViewConfigurator ( ) { } @ Override public boolean isTimerServiceApplicable ( ) { } public void setPoolConfigName ( final String poolConfigName ) { } public String getPoolConfigName ( ) { } private class PoolInjectingConfigurator implements DependencyConfigurator < Service < Component > > { private final StatelessComponentDescription statelessComponentDescription ; PoolInjectingConfigurator ( final StatelessComponentDescription statelessComponentDescription ) { } @ Override public void configureDependency ( ServiceBuilder < ? > serviceBuilder , Service < Component > service ) throws DeploymentUnitProcessingException { } } }

Fix:
configuration . addClientInterceptor ( method , StatelessWriteReplaceInterceptor . factory ( configuration . getViewServiceName ( ) . getCanonicalName ( ) ) , WRITE_REPLACE ) ;
Buggy code:
class BSHLiteral extends SimpleNode { public Object value ; BSHLiteral ( int id ) { } public Object eval ( CallStack callstack , Interpreter interpreter ) throws EvalError { } private char getEscapeChar ( char ch ) { } public void charSetup ( String str ) { } void stringSetup ( String str ) { StringBuffer buffer = new StringBuffer ( ) ; for ( int i = 0 ; i < ( str . length ( ) ) ; i ++ ) { char ch = str . charAt ( i ) ; if ( ch == '\\' ) { ch = str . charAt ( ( ++ i ) ) ; if ( Character . isDigit ( ch ) ) { int endPos = i ; while ( endPos < ( i + 2 ) ) { if ( Character . isDigit ( str . charAt ( ( endPos + 1 ) ) ) ) endPos ++ ; else break ; } ch = ( ( char ) ( Integer . parseInt ( str . substring ( i , ( endPos + 1 ) ) , 8 ) ) ) ; i = endPos ; } else ch = getEscapeChar ( ch ) ; } buffer . append ( ch ) ; } <START_BUG> value = buffer . toString ( ) ; <END_BUG> } }

Fix:
value = buffer . toString ( ) . intern ( ) ;
Buggy code:
public class IZITravelClient { public static void main ( String ... args ) { IZITravel iziTravel = IZITravel . withApiKey ( "05010cf4-3151-475d-a7ae-5d8ba057424f" ) ; SearchService service = iziTravel . searchService ( ) ; try { <START_BUG> Response < List < CompactMtgObject > > response = service . search ( new String [ ] { "en" } , null , null , null , null , null , null , "52.371273,4.899649" , null , null , null , null , null , null , null , null , null ) . execute ( ) ; <END_BUG> if ( response . isSuccess ( ) ) { for ( CompactMtgObject item : response . body ( ) ) { System . out . println ( ( "Title:<seq2seq4repair_space>" + ( item . title ( ) ) ) ) ; } } else { IZITravel . Error error = iziTravel . parseError ( response . errorBody ( ) ) ; System . err . println ( ( "HTTP<seq2seq4repair_space>error:<seq2seq4repair_space>" + error ) ) ; } } catch ( IOException e ) { } } No newline ; at end ; of file ; }

Fix:
Response < List < CompactMtgObject > > response = service . search ( new String [ ] { "en" } , null , null , null , null , null , null , "52.371273,4.899649" , null , null , null , null , null , null , null , null , null , null ) . execute ( ) ;