nus-yam/ex-repair huggingface dataset:
Buggy code:
@ Component @ Service public class PomManagementServiceImpl implements PomManagementService { private static final String DEFAULT_POM_NAME = "pom.xml" ; private static final String DEFAULT_RELATIVE_PATH = "..//pom.xml" ; @ Reference private FileManager fileManager ; @ Reference private MetadataDependencyRegistry metadataDependencyRegistry ; @ Reference private MetadataService metadataService ; @ Reference private NotifiableFileMonitorService fileMonitorService ; @ Reference private Shell shell ; private final Set < String > toBeParsed = new HashSet < String > ( ) ; private Map < String , Pom > pomMap = new HashMap < String , Pom > ( ) ; private String focusedModulePath ; private String rootPath ; public Pom getModuleForFileIdentifier ( final String fileIdentifier ) { } public Pom getPomFromPath ( final String pomPath ) { } public Pom getPomFromModuleName ( final String moduleName ) { } private String getModuleName ( final String pomRoot ) { } public Set < String > getModuleNames ( ) { } public Map < String , Pom > getPomMap ( ) { } public Pom getRootPom ( ) { } public Pom getFocusedModule ( ) { } public String getFocusedModuleName ( ) { } public void setFocusedModule ( final Pom focusedModule ) { } public void setFocusedModule ( final String focusedModulePath ) { } protected void activate ( final ComponentContext context ) { } private void updatePomCache ( ) { } private void resolvePoms ( final Element pomRoot , final String pomPath , final Map < String , String > pomSet ) { } private String resolveRelativePath ( String relativeTo , final String relativePath ) { if ( relativeTo . endsWith ( File . separator ) ) { relativeTo = relativeTo . substring ( 0 , ( ( relativeTo . length ( ) ) - 1 ) ) ; } while ( new File ( relativeTo ) . isFile ( ) ) { relativeTo = relativeTo . substring ( 0 , relativeTo . lastIndexOf ( File . separator ) ) ; } <START_BUG> final String [ ] relativePathSegments = relativePath . split ( File . separator ) ; <END_BUG> int backCount = 0 ; for ( final String relativePathSegment : relativePathSegments ) { if ( relativePathSegment . equals ( ".." ) ) { backCount ++ ; } else { break ; } } final StringBuilder sb = new StringBuilder ( ) ; for ( int i = backCount ; i < ( relativePathSegments . length ) ; i ++ ) { sb . append ( relativePathSegments [ i ] ) ; sb . append ( "//" ) ; } while ( backCount > 0 ) { relativeTo = relativeTo . substring ( 0 , relativeTo . lastIndexOf ( File . separatorChar ) ) ; backCount -- ; } String path = ( relativeTo + ( File . separator ) ) + ( sb . toString ( ) ) ; if ( new File ( path ) . isDirectory ( ) ) { path = path + "pom.xml" ; } if ( path . endsWith ( File . separator ) ) { path = path . substring ( 0 , ( ( path . length ( ) ) - 1 ) ) ; } return path ; } private static class PomComparator implements Comparator < String > { private final Map < String , Pom > pomMap ; private PomComparator ( final Map < String , Pom > pomMap ) { } public int compare ( final String s1 , final String s2 ) { } } private void sortPomMap ( ) { } }

Fix:
final String [ ] relativePathSegments = relativePath . split ( FileUtils . getFileSeparatorAsRegex ( ) ) ;
Buggy code:
public abstract class AbstractMemberHandle extends NonStateSpecificHandleImpl implements IMember { ClassOrInterfaceHandleImpl fOwner ; String fSignature ; String computeSignature ( String name , IType [ ] parameterTypes ) { if ( ( parameterTypes . length ) == 0 ) { return name + "()" ; } StringBuffer sb = new StringBuffer ( name ) ; sb . append ( '(' ) ; for ( int i = 0 ; i < ( parameterTypes . length ) ; i ++ ) { try { ( ( TypeImpl ) ( parameterTypes [ i ] ) ) . appendSignature ( sb , true ) ; } catch ( ClassCastException e ) { <START_BUG> throw new StateSpecificException ( Util . bind ( "build.incompatibleParameterTypes" ) ) ; <END_BUG> } } sb . append ( ')' ) ; return sb . toString ( ) ; } public boolean equals ( Object o ) { } public IType getDeclaringClass ( ) { } JavaDevelopmentContextImpl getInternalDC ( ) { } public int getModifiers ( ) { } public abstract String getName ( ) { } String getSignature ( ) { } public int hashCode ( ) { } public boolean isBinary ( ) { } public boolean isDeprecated ( ) { } public boolean isSynthetic ( ) { } public int kind ( ) { } }

Fix:
throw new StateSpecificException ( "Incompatible<seq2seq4repair_space>parameter<seq2seq4repair_space>types" ) ;
Buggy code:
public class Point implements ReferenceablePoint { public Point ( double latitude , double longitude ) { } public double distanceTo ( ReferenceablePoint to ) throws UnreferenceablePointException { if ( to == null ) { <START_BUG> throw new UnreferenceablePointException ( to ) ; <END_BUG> } double latitude1 = this . getLatitude ( ) ; double longitude1 = this . getLongitude ( ) ; double latitude2 = to . getLatitude ( ) ; double longitude2 = to . getLongitude ( ) ; double latitudeRadians = Math . toRadians ( ( latitude2 - latitude1 ) ) ; double longitudeRadians = Math . toRadians ( ( longitude2 - longitude1 ) ) ; double a = ( ( Math . sin ( ( latitudeRadians // 2 ) ) ) * ( Math . sin ( ( latitudeRadians // 2 ) ) ) ) + ( ( ( ( Math . cos ( Math . toRadians ( latitude1 ) ) ) * ( Math . cos ( Math . toRadians ( latitude2 ) ) ) ) * ( Math . sin ( ( longitudeRadians // 2 ) ) ) ) * ( Math . sin ( ( longitudeRadians // 2 ) ) ) ) ; double c = 2 * ( Math . atan2 ( Math . sqrt ( a ) , Math . sqrt ( ( 1 - a ) ) ) ) ; return ( Constants . EARTH_RADIUS_METERS ) * c ; } @ Override public double getLatitude ( ) { } @ Override public double getLongitude ( ) { } public void setLatitude ( double latitude ) { } public void setLongitude ( double longitude ) { } @ Override public String toString ( ) { } private double latitude ; private double longitude ; }

Fix:
throw new UnreferenceablePointException ( ) ;
Buggy code:
final class DataSourcesService implements Service < DataSources > { private static final Logger log = Logger . getLogger ( "org.jboss.as.connector.deployer.dsdeployer" ) ; private final DataSources value ; public DataSourcesService ( DataSources value ) { } @ Override public DataSources getValue ( ) throws IllegalStateException { } @ Override public void start ( StartContext context ) throws StartException { <START_BUG> DataSourcesService . log . debugf ( "Starting<seq2seq4repair_space>DataSources<seq2seq4repair_space>Service" ) ; <END_BUG> } @ Override public void stop ( StopContext context ) { } }

Fix:
DataSourcesService . log . infof ( "Starting<seq2seq4repair_space>DataSources<seq2seq4repair_space>Service" ) ;
Buggy code:
public class ContainerNode extends Node { private static final String CONTAINER_MODULE_ID = ContainerNode . class . getName ( ) ; private static final String ICON_PATH = "container.png" ; private final BlobContainer blobContainer ; private final StorageAccount storageAccount ; public ContainerNode ( final Node parent , StorageAccount sa , BlobContainer bc ) { } @ Override protected Map < String , Class < ? extends NodeActionListener > > initActions ( ) { <START_BUG> return ImmutableMap . of ( "Delete" , ContainerNode . DeleteBlobContainer . class , "View<seq2seq4repair_space>Container" , ContainerNode . ViewBlobContainer . class ) ; <END_BUG> } private void openContainer ( ) { } public class ViewBlobContainer extends NodeActionListener { @ Override public void actionPerformed ( NodeActionEvent e ) { } } public class DeleteBlobContainer extends NodeActionListener { @ Override public void actionPerformed ( final NodeActionEvent e ) { } } }

Fix:
return ImmutableMap . of ( "Delete" , ContainerNode . DeleteBlobContainer . class , "View<seq2seq4repair_space>Blob<seq2seq4repair_space>Container" , ContainerNode . ViewBlobContainer . class ) ;
Buggy code:
public class LangevinLeapfrogIntegrator implements Integrator { double timestep ; double temperature ; double gamma ; double [ ] masses ; Potential [ ] potentials ; Random rng ; public LangevinLeapfrogIntegrator ( double timestep , double temperature , double gamma , double [ ] masses , Potential [ ] potentials , Random rng ) { } protected void updatePotentials ( Vec2D [ ] positions ) { } protected double getPotentialEnergy ( ) { } protected Vec2D [ ] getForces ( int numberParticles ) { Vec2D [ ] forces = new Vec2D [ numberParticles ] ; for ( int i = 0 ; i < numberParticles ; i ++ ) { forces [ i ] = new Vec2D ( 0.0 , 0.0 ) ; } for ( int i = 0 ; i < ( potentials . length ) ; i ++ ) { Vec2D [ ] nextForces = potentials [ i ] . getForces ( ) ; for ( int j = 0 ; j < ( nextForces . length ) ; j ++ ) { <START_BUG> forces [ j ] = forces [ i ] . add ( nextForces [ j ] ) ; <END_BUG> } } return forces ; } protected double computeKineticEnergy ( Vec2D [ ] velocities ) { } protected Vec2D gaussianVector ( ) { } @ Override public SimulationState integrate ( SimulationState state ) { } }

Fix:
forces [ j ] = forces [ j ] . add ( nextForces [ j ] ) ;
Buggy code:
public class PublicErrorReportingResourceTest extends ResourceTest { public static final String TEST_MATCHER_PUBLIC_KEYRING_FILE = "//src//test//resources//fixtures//gpg//pubring.gpg" ; public static final String TEST_MATCHER_SECRET_KEYRING_FILE = "//src//test//resources//fixtures//gpg//secring.gpg" ; public static final String TEST_PUBLIC_KEY_FILE = "//src//test//resources//fixtures//gpg//public-key.asc" ; public static final char [ ] TEST_DATA_PASSWORD = "password" . toCharArray ( ) ; private PublicErrorReportingResource testObject ; @ Override protected void setUpResources ( ) throws Exception { } @ Test public void GET_MatcherPublicKey ( ) throws Exception { <START_BUG> String actualResponse = client ( ) . resource ( "//error_reporting//public-key" ) . header ( "Content-Type" , "text//plain" ) . accept ( TEXT_PLAIN_TYPE ) . get ( String . class ) ; <END_BUG> FixtureAsserts . assertStringMatchesStringFixture ( "Get<seq2seq4repair_space>service<seq2seq4repair_space>public<seq2seq4repair_space>key" , actualResponse , "//fixtures//gpg//public-key.asc" ) ; } }

Fix:
String actualResponse = client ( ) . resource ( "//error-reporting//public-key" ) . header ( "Content-Type" , "text//plain" ) . accept ( TEXT_PLAIN_TYPE ) . get ( String . class ) ;
Buggy code:
public abstract class PortletRequestBridge < Rq extends PortletRequest , Rs extends PortletResponse > implements RequestBridge { protected final Rq request ; protected final Rs response ; public PortletRequestBridge ( Rq request , Rs response ) { } public final Map < String , String [ ] > getParameters ( ) { } public void setFlashValue ( Object key , Object value ) { } public Object getFlashValue ( Object key ) { } public Object getRequestValue ( Object key ) { } public void setRequestValue ( Object key , Object value ) { } private Map < Object , Object > getRequestContext ( ) { } public void setSessionValue ( Object key , Object value ) { <START_BUG> if ( value != null ) { <END_BUG> getSessionContext ( ) . remove ( key ) ; } else { getSessionContext ( ) . put ( key , value ) ; } } public Object getSessionValue ( Object key ) { } private Map < Object , Object > getSessionContext ( ) { } public Object getIdentityValue ( Object key ) { } public void setIdentityValue ( Object key , Object value ) { } }

Fix:
if ( value == null ) {
Buggy code:
public class HeaderMatch extends Matcher { String name ; String value ; Vector headerVector = new Vector ( ) ; Hashtable expectHeaders = new Hashtable ( ) ; public HeaderMatch ( ) { } public void setName ( String n ) { } public void setValue ( String v ) { } public void addHeader ( Header rh ) { } public void setExpectHeaders ( String s ) { } public Hashtable getExpectHeaders ( ) { } public String getTestDescription ( ) { } public void execute ( ) { } private boolean checkResponse ( boolean testCondition ) throws Exception { String responseLine = response . getResponseLine ( ) ; Hashtable headers = response . getHeaders ( ) ; boolean responseStatus = true ; getExpectHeaders ( ) ; if ( ( expectHeaders . size ( ) ) > 0 ) { if ( headers == null ) { log ( "ERROR<seq2seq4repair_space>no<seq2seq4repair_space>response<seq2seq4repair_space>header,<seq2seq4repair_space>expecting<seq2seq4repair_space>header" ) ; } Enumeration e = expectHeaders . keys ( ) ; while ( e . hasMoreElements ( ) ) { String key = ( ( String ) ( e . nextElement ( ) ) ) ; Header expH = ( ( Header ) ( expectHeaders . get ( key ) ) ) ; String value = expH . getValue ( ) ; Header resH = ( ( Header ) ( headers . get ( key ) ) ) ; String respValue = ( resH == null ) ? "" : resH . getValue ( ) ; if ( ( respValue == null ) || ( ( respValue . indexOf ( value ) ) < 0 ) ) { <START_BUG> log ( ( ( ( ( ( ( ( ( "ERROR<seq2seq4repair_space>expecting<seq2seq4repair_space>header<seq2seq4repair_space>" + key ) + ":" ) + value ) + "<seq2seq4repair_space>\nGOT:<seq2seq4repair_space>" ) + respValue ) + "<seq2seq4repair_space>HEADERS(" ) + ( Header . toString ( headers ) ) ) + ")" ) ) ; <END_BUG> return false ; } } } return responseStatus ; } }

Fix:
log ( ( ( ( ( ( ( ( ( "ERROR<seq2seq4repair_space>expecting<seq2seq4repair_space>header<seq2seq4repair_space>" + key ) + ":" ) + value ) + "<seq2seq4repair_space>\r\nGOT:<seq2seq4repair_space>" ) + respValue ) + "<seq2seq4repair_space>HEADERS(" ) + ( Header . toString ( headers ) ) ) + ")" ) ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class BasicIfElseTestCase { private static final String RESPONSE_VALUE_PREFIX = "\"value\"<seq2seq4repair_space>=><seq2seq4repair_space>\"" ; private static final String PROP_NAME = "jboss-cli-test" ; private static ByteArrayOutputStream cliOut ; @ BeforeClass public static void setup ( ) throws Exception { } @ AfterClass public static void tearDown ( ) throws Exception { } @ Test public void testMain ( ) throws Exception { } protected String runIf ( CommandContext ctx ) throws Exception { <START_BUG> ctx . handle ( ( "if<seq2seq4repair_space>result.value==true<seq2seq4repair_space>of<seq2seq4repair_space>" + ( this . getReadPropertyReq ( ) ) ) ) ; <END_BUG> ctx . handle ( this . getWritePropertyReq ( "\"false\"" ) ) ; ctx . handle ( "else" ) ; ctx . handle ( this . getWritePropertyReq ( "\"true\"" ) ) ; ctx . handle ( "end-if" ) ; BasicIfElseTestCase . cliOut . reset ( ) ; ctx . handle ( getReadPropertyReq ( ) ) ; return getValue ( ) ; } protected String getAddPropertyReq ( String value ) { } protected String getWritePropertyReq ( String value ) { } protected String getReadPropertyReq ( ) { } protected String getRemovePropertyReq ( ) { } protected String getValue ( ) { } }

Fix:
ctx . handle ( ( "if<seq2seq4repair_space>result.value==\"true\"<seq2seq4repair_space>of<seq2seq4repair_space>" + ( this . getReadPropertyReq ( ) ) ) ) ;
Buggy code:
public class ModuleDeploymentProcessor implements DeploymentUnitProcessor { public static final long PRIORITY = MODULARIZE . plus ( 102L ) ; public static final AttachmentKey < Module > MODULE_ATTACHMENT_KEY = new AttachmentKey < Module > ( Module . class ) ; public void processDeployment ( DeploymentUnitContext context ) throws DeploymentUnitProcessingException { if ( ( context . getAttachment ( ModuleDeploymentProcessor . MODULE_ATTACHMENT_KEY ) ) != null ) return ; final ModuleConfig moduleConfig = context . getAttachment ( ATTACHMENT_KEY ) ; if ( moduleConfig == null ) return ; final ModuleIdentifier moduleIdentifier = moduleConfig . getIdentifier ( ) ; final ModuleSpec . Builder specBuilder = ModuleSpec . build ( moduleIdentifier ) ; for ( ModuleConfig . ResourceRoot resource : moduleConfig . getResources ( ) ) { try { <START_BUG> specBuilder . addResourceRoot ( new VFSResourceLoader ( specBuilder . getIdentifier ( ) , resource . getRoot ( ) , resource . getRootName ( ) ) ) ; <END_BUG> } catch ( IOException e ) { throw new DeploymentUnitProcessingException ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>create<seq2seq4repair_space>VFSResourceLoader<seq2seq4repair_space>for<seq2seq4repair_space>root<seq2seq4repair_space>[" + ( resource . getRootName ( ) ) ) + "]" ) , e , null ) ; } } final ModuleConfig [ ] dependencies = moduleConfig . getDependencies ( ) ; for ( ModuleConfig . Dependency dependency : dependencies ) { specBuilder . addModuleDependency ( ModuleDependencySpec . build ( dependency . getIdentifier ( ) ) . setExportFilter ( ( dependency . isExport ( ) ? PathFilters . acceptAll ( ) : PathFilters . rejectAll ( ) ) ) . setOptional ( dependency . isOptional ( ) ) . create ( ) ) ; } final ModuleSpec moduleSpec = specBuilder . create ( ) ; final DeploymentModuleLoader deploymentModuleLoader = context . getAttachment ( DeploymentModuleLoaderProcessor . ATTACHMENT_KEY ) ; deploymentModuleLoader . addModuleSpec ( moduleSpec ) ; try { final Module module = deploymentModuleLoader . loadModule ( moduleIdentifier ) ; context . putAttachment ( ModuleDeploymentProcessor . MODULE_ATTACHMENT_KEY , module ) ; } catch ( ModuleLoadException e ) { throw new DeploymentUnitProcessingException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>module:<seq2seq4repair_space>" + moduleIdentifier ) , e , null ) ; } } }

Fix:
specBuilder . addResourceRoot ( new VFSResourceLoader ( specBuilder . getIdentifier ( ) , resource . getRootName ( ) , resource . getRoot ( ) , resource . getMountHandle ( ) ) ) ;
Buggy code:
public final class OkHostnameVerifier implements HostnameVerifier { public static final OkHostnameVerifier INSTANCE = new OkHostnameVerifier ( ) ; private static final Pattern VERIFY_AS_IP_ADDRESS = Pattern . compile ( "([0-9a-fA-F]*:[0-9a-fA-F:.]*)|([\\d.]+)" ) ; private static final int ALT_DNS_NAME = 2 ; private static final int ALT_IPA_NAME = 7 ; private OkHostnameVerifier ( ) { } public boolean verify ( String host , SSLSession session ) { } public boolean verify ( String host , X509Certificate certificate ) { } static boolean verifyAsIpAddress ( String host ) { } private boolean verifyIpAddress ( String ipAddress , X509Certificate certificate ) { } private boolean verifyHostName ( String hostName , X509Certificate certificate ) { } private List < String > getSubjectAltNames ( X509Certificate certificate , int type ) { } public boolean verifyHostName ( String hostName , String cn ) { if ( ( ( ( hostName == null ) || ( ( hostName . length ( ) ) == 0 ) ) || ( cn == null ) ) || ( ( cn . length ( ) ) == 0 ) ) { return false ; } cn = cn . toLowerCase ( Locale . US ) ; if ( ! ( cn . contains ( "*" ) ) ) { return hostName . equals ( cn ) ; } <START_BUG> if ( ( cn . startsWith ( "*." ) ) && ( hostName . regionMatches ( 0 , cn , 2 , ( ( cn . length ( ) ) - 2 ) ) ) ) { <END_BUG> return true ; } int asterisk = cn . indexOf ( '*' ) ; int dot = cn . indexOf ( '.' ) ; if ( asterisk > dot ) { return false ; } if ( ! ( hostName . regionMatches ( 0 , cn , 0 , asterisk ) ) ) { return false ; } int suffixLength = ( cn . length ( ) ) - ( asterisk + 1 ) ; int suffixStart = ( hostName . length ( ) ) - suffixLength ; if ( ( hostName . indexOf ( '.' , asterisk ) ) < suffixStart ) { if ( ! ( hostName . endsWith ( ".clients.google.com" ) ) ) { return false ; } } if ( ! ( hostName . regionMatches ( suffixStart , cn , ( asterisk + 1 ) , suffixLength ) ) ) { return false ; } return true ; } }

Fix:
if ( ( cn . startsWith ( "*." ) ) && ( hostName . equals ( cn . substring ( 2 ) ) ) ) {
Buggy code:
class ArrayListBindingResults implements BindingResults { private List < BindingResult > results ; public ArrayListBindingResults ( ) { } public ArrayListBindingResults ( int size ) { } public void add ( BindingResult result ) { } public Iterator < BindingResult > iterator ( ) { } public BindingResults successes ( ) { } public BindingResults failures ( ) { } public BindingResult get ( int index ) { } public List < String > properties ( ) { List < String > properties = new ArrayList < String > ( results . size ( ) ) ; for ( BindingResult result : this ) { <START_BUG> properties . add ( result . getProperty ( ) ) ; <END_BUG> } return properties ; } public int size ( ) { } public String toString ( ) { } }

Fix:
properties . add ( result . getFieldName ( ) ) ;
Buggy code:
public final class TypeToBackendType { private final BackendTypesystem _backendTypes ; private final EmfTypesystem _emfTypes ; private UmlTypesystem _umlTypes = null ; private final ExecutionContext _ctx ; private Class _emfOldXtendTypesClass ; private Class _umlOldXtendTypesClass ; private Class _xsdOldXtendTypesClass ; private Class _emfTypesClass = null ; private Class _umlTypesClass = null ; private Class _xsdTypesClass = null ; private boolean _hasEmfOldXtendTypes ; private boolean _hasUmlOldXtendTypes ; private boolean _hasXsdOldXtendTypes ; public TypeToBackendType ( BackendTypesystem backendTypes , ExecutionContext ctx ) { } public BackendType convertToBackendType ( Identifier typeName ) { } private BackendType convertToBackendType ( List < String > segments ) { } public BackendType convertToBackendType ( Class < ? > cls ) { } public BackendType convertToBackendType ( Type t ) { } private BackendType convertEnumType ( Type t ) { } private BackendType convertMultipleStereotypeType ( Type t ) { } private BackendType convertStereotypeType ( Type t ) { if ( t instanceof StereotypeType ) { Stereotype st = ( ( StereotypeType ) ( t ) ) . getStereoType ( ) ; <START_BUG> return _umlTypes . findType ( st ) ; <END_BUG> } return null ; } private BackendType convertJavaType ( Type t ) { } private BackendType convertEClassType ( Type t ) { } private BackendType convertEDataTypeType ( Type t ) { } private BackendType convertEEnumType ( Type t ) { } private Object getField ( Object o , String fieldName ) { } }

Fix:
return _umlTypes . findType ( UmlTypesystem . getUniqueIdentifier ( st ) ) ;
Buggy code:
public class ValueBlock extends Block implements OutputBlock { private StringProperty value ; private OutputAnchor output ; @ FXML private Pane outputSpace ; public ValueBlock ( CustomUIPane pane ) { } public final void setValue ( String value ) { } public final String getValue ( ) { } public final StringProperty valueProperty ( ) { } @ Override public Expr asExpr ( ) { } @ Override public Type getOutputType ( ) { } @ Override public Type getOutputType ( Env env ) { } @ Override public Type getOutputSignature ( ) { } @ Override public Type getOutputSignature ( Env env ) { } @ Override public void setError ( boolean error ) { if ( error ) { this . getStyleClass ( ) . add ( "error" ) ; } else { <START_BUG> this . getStyleClass ( ) . remove ( "error" ) ; <END_BUG> } } @ Override public OutputAnchor getOutputAnchor ( ) { } }

Fix:
this . getStyleClass ( ) . removeAll ( "error" ) ;
Buggy code:
public class LiteModHotbar2D implements Configurable , HUDRenderListener , InitCompleteListener , LiteMod { public static final GUIHotbar2D GUI_HOTBAR_2D = new GUIHotbar2D ( ) ; public static final Config CONFIG = new Config ( ) ; public static DaFlightUI HUDinGame ; public static int hudSlotId ; public static boolean enabled = true ; public static Bind onOffBind ; public static Bind slotModifier ; public static Bind rowModifier ; private static int position = 0 ; private static boolean update ; private boolean onTick ; private boolean providesOwnHud ; @ Override public String getName ( ) { } @ Override public String getVersion ( ) { <START_BUG> return "1.0.1" ; <END_BUG> } @ Override public void onPostRenderHUD ( int screenWidth , int screenHeight ) { } @ Override public void onTick ( Minecraft minecraft , float partialTicks , boolean inGame , boolean clock ) { } @ Override public void init ( File configPath ) { } @ Override public void onInitCompleted ( Minecraft minecraft , LiteLoader loader ) { } @ Override public void upgradeSettings ( String version , File configPath , File oldConfigPath ) { } @ Override public Class < ? extends ConfigPanel > getConfigPanelClass ( ) { } @ Override public void onPreRenderHUD ( int screenWidth , int screenHeight ) { } public static void refreshConfig ( ) { } public static void setScrollPosition ( int pos ) { } public static void setUpdate ( boolean b ) { } }

Fix:
return "1.0.2" ;
Buggy code:
public abstract class UdgWebviewParser extends Parser { WebView wv ; TextView label ; public UdgWebviewParser ( MainActivity a ) { } @ Override public void parseResult ( String result , Searcher s ) { wv . setVisibility ( GONE ) ; label . setVisibility ( GONE ) ; if ( s . results_found ) { String new_result = result . substring ( result . indexOf ( s . results_found_string ) ) ; wv . setVisibility ( VISIBLE ) ; label . setVisibility ( VISIBLE ) ; <START_BUG> wv . loadDataWithBaseURL ( s . searchUrl , new_result , "text//html;<seq2seq4repair_space>chartset=utf-8" , "utf-8" , null ) ; <END_BUG> } } }

Fix:
wv . loadData ( new_result , "text//html;<seq2seq4repair_space>charset=utf-8" , "utf-8" ) ;
Buggy code:
public class WebResponse extends Response { private static final Logger log = LoggerFactory . getLogger ( WebResponse . class ) ; protected boolean redirect ; private final HttpServletResponse httpServletResponse ; private boolean ajax ; public WebResponse ( ) { } public WebResponse ( final HttpServletResponse httpServletResponse ) { } public void addCookie ( final Cookie cookie ) { } public void clearCookie ( final Cookie cookie ) { } public void close ( ) { } public CharSequence encodeURL ( CharSequence url ) { } public final HttpServletResponse getHttpServletResponse ( ) { } public OutputStream getOutputStream ( ) { } public final boolean isRedirect ( ) { } public void redirect ( String url ) { if ( ! ( redirect ) ) { if ( ( httpServletResponse ) != null ) { <START_BUG> url = httpServletResponse . encodeRedirectURL ( url ) . toString ( ) ; <END_BUG> try { if ( httpServletResponse . isCommitted ( ) ) { WebResponse . log . error ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>redirect<seq2seq4repair_space>to:<seq2seq4repair_space>" + url ) + ",<seq2seq4repair_space>HTTP<seq2seq4repair_space>Response<seq2seq4repair_space>has<seq2seq4repair_space>already<seq2seq4repair_space>been<seq2seq4repair_space>committed." ) ) ; } if ( WebResponse . log . isDebugEnabled ( ) ) { WebResponse . log . debug ( ( "Redirecting<seq2seq4repair_space>to<seq2seq4repair_space>" + url ) ) ; } if ( isAjax ( ) ) { httpServletResponse . addHeader ( "Ajax-Location" , url ) ; httpServletResponse . getWriter ( ) . write ( "<seq2seq4repair_space>" ) ; } else { httpServletResponse . sendRedirect ( url ) ; } redirect = true ; } catch ( IOException e ) { WebResponse . log . warn ( ( ( ( "redirect<seq2seq4repair_space>to<seq2seq4repair_space>" + url ) + "<seq2seq4repair_space>failed:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) ) ; } } } else { WebResponse . log . info ( ( "Already<seq2seq4repair_space>redirecting<seq2seq4repair_space>to<seq2seq4repair_space>an<seq2seq4repair_space>url<seq2seq4repair_space>current<seq2seq4repair_space>one<seq2seq4repair_space>ignored:<seq2seq4repair_space>" + url ) ) ; } } public final void setContentType ( final String mimeType ) { } public void setContentLength ( long length ) { } public void setLastModifiedTime ( Time time ) { } public final void setLocale ( final Locale locale ) { } public void write ( final CharSequence string ) { } public void write ( AppendingStringBuffer asb ) { } public void setDateHeader ( String header , long date ) { } public void setHeader ( String header , String value ) { } public void setAttachmentHeader ( String filename ) { } public boolean isAjax ( ) { } public void setAjax ( boolean ajax ) { } }

Fix:
url = httpServletResponse . encodeRedirectURL ( url ) ;
Buggy code:
public class FuzzyTermOnShortTermsTest extends LuceneTestCase { private static final String FIELD = "field" ; @ Test public void test ( ) throws Exception { } private void countHits ( Analyzer analyzer , String [ ] docs , Query q , int expected ) throws Exception { } public static Analyzer getAnalyzer ( ) { } public static Directory getDirectory ( Analyzer analyzer , String [ ] vals ) throws IOException { Directory directory = newDirectory ( ) ; RandomIndexWriter writer = new RandomIndexWriter ( random ( ) , directory , newIndexWriterConfig ( TEST_VERSION_CURRENT , analyzer ) . setMaxBufferedDocs ( TestUtil . nextInt ( random ( ) , 100 , 1000 ) ) . setMergePolicy ( newLogMergePolicy ( ) ) ) ; for ( String s : vals ) { Document d = new Document ( ) ; d . add ( newTextField ( FuzzyTermOnShortTermsTest . FIELD , s , YES ) ) ; writer . addDocument ( d ) ; } <START_BUG> writer . close ( ) ; <END_BUG> return directory ; } }

Fix:
writer . shutdown ( ) ;
Buggy code:
public class Individual implements Cloneable { public static final double UNIT = 1.0 ; public static final double MIN_G = 300.0 ; public static final int IDX_PARAM_D = 0 ; public static final int IDX_PARAM_H = 1 ; public static Random rand = new Random ( ) ; int [ ] param = new int [ ] { 0 , 0 } ; double fitness = 0.0 ; double g = 0.0 ; boolean fitnessOk = false ; int age = 1 ; double sigma = 0.01 ; double sigmaSigma = 0.01 ; int index = 0 ; public Individual ( int index , int d , int h ) { } public Individual ( int index , int [ ] param ) { } public int numParams ( ) { } public int getParam ( int idx ) { } public void setParam ( int idx , int value ) { } public boolean fitness ( ) { double d = ( Individual . UNIT ) * ( param [ Individual . IDX_PARAM_D ] ) ; double h = ( Individual . UNIT ) * ( param [ Individual . IDX_PARAM_H ] ) ; fitness = ( ( ( ( Math . PI ) * d ) * d ) // 2 ) + ( ( ( Math . PI ) * d ) * h ) ; g = ( ( ( ( Math . PI ) * d ) * d ) * h ) // 4 ; <START_BUG> fitnessOk = ( g ) >= ( Individual . MIN_G ) ; <END_BUG> return fitnessOk ; } public void mutateStrategicParam ( ) { } public void mutateObjectParams ( ) { } @ Override protected Individual clone ( ) { } @ Override public String toString ( ) { } public static Individual randomIndividual ( int index ) { } }

Fix:
fitnessOk = ( ( ( g ) >= ( Individual . MIN_G ) ) && ( d > 0.0 ) ) && ( h > 0.0 ) ;
Buggy code:
public class MainActivity extends ActionBarActivity { @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { int id = item . getItemId ( ) ; if ( id == ( id . viton_setting ) ) { showVitonSetting ( ) ; return true ; } else if ( id == ( id . viton_web ) ) { showVitonWeb ( ) ; return true ; } else if ( id == ( id . viton_service ) ) { showVitonService ( ) ; return true ; } else if ( id == ( id . start_watch_service ) ) { Intent myIntent1 = new Intent ( this . getApplicationContext ( ) , DataTransferService . class ) ; this . getApplicationContext ( ) . startService ( myIntent1 ) ; return true ; } else if ( id == ( id . stop_watch_service ) ) { Intent myIntent1 = new Intent ( this . getApplicationContext ( ) , DataTransferService . class ) ; myIntent1 . setAction ( "TERMINATION" ) ; this . getApplicationContext ( ) . startService ( myIntent1 ) ; return true ; } else if ( id == ( id . ble ) ) { Intent myIntent1 = new Intent ( this . getApplicationContext ( ) , BLEScanActivity . class ) ; <START_BUG> this . getApplicationContext ( ) . startActivity ( myIntent1 ) ; <END_BUG> return true ; } return super . onOptionsItemSelected ( item ) ; } private void showVitonWeb ( ) { } private void showVitonSetting ( ) { } private void showVitonService ( ) { } }

Fix:
startActivity ( myIntent1 ) ;
Buggy code:
public class SettingsActivity extends PreferenceActivity { private static final boolean ALWAYS_SIMPLE_PREFS = false ; @ Override protected void onPostCreate ( Bundle savedInstanceState ) { } private void setupSimplePreferencesScreen ( ) { } public void onClick ( View view ) { } private void resetGame ( ) { } private void clearSavedPreferences ( ) { SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( this ) ; <START_BUG> prefs . edit ( ) . clear ( ) . commit ( ) ; <END_BUG> } private void saveGameData ( GameData gameData ) { } @ Override public boolean onIsMultiPane ( ) { } private static boolean isXLargeTablet ( Context context ) { } private static boolean isSimplePreferences ( Context context ) { } private static OnPreferenceChangeListener sBindPreferenceSummaryToValueListener = new Preference . OnPreferenceChangeListener ( ) { @ Override public boolean onPreferenceChange ( Preference preference , Object value ) { } } ; private static void bindPreferenceSummaryToValue ( Preference preference ) { } }

Fix:
prefs . edit ( ) . clear ( ) . apply ( ) ;
Buggy code:
public class ServoMaster extends ServoSlave { public void on ( ) { } public void reset ( ) { } public void leftOn ( ) { } public void rightOn ( ) { <START_BUG> servr . setAngle ( 200 ) ; <END_BUG> } public void leftOff ( ) { } public void rightOff ( ) { } }

Fix:
servr . setAngle ( 35 ) ;
Buggy code:
public class UnionExpr extends Expr { public intHash ih ; public Expr e ; public UnionExpr next ; UnionExpr current ; int state ; public UnionExpr ( Expr e1 ) { } public final boolean evalBoolean ( VTDNav vn ) { } public final double evalNumber ( VTDNav vn ) { } public final int evalNodeSet ( VTDNav vn ) throws NavException , XPathEvalException { } public final String evalString ( VTDNav vn ) { if ( ( e . isNodeSet ( ) ) == false ) return e . evalString ( vn ) ; else { String s = "" ; int a = 2147483647 ; int k = - 1 ; vn . push2 ( ) ; int size = vn . contextStack2 . size ; try { while ( ( k = evalNodeSet ( vn ) ) != ( - 1 ) ) { if ( k < a ) a = k ; } if ( a == 2147483647 ) a = - 1 ; if ( a != ( - 1 ) ) { int t = vn . getTokenType ( a ) ; switch ( t ) { case VTDNav . TOKEN_STARTING_TAG : case VTDNav . TOKEN_DOCUMENT : <START_BUG> s = vn . getXPathStringVal ( ) ; <END_BUG> break ; case VTDNav . TOKEN_ATTR_NAME : s = vn . toString ( ( a + 1 ) ) ; break ; case VTDNav . TOKEN_PI_NAME : s = vn . toString ( ( a + 1 ) ) ; break ; default : s = vn . toString ( a ) ; break ; } } } catch ( Exception e ) { } vn . contextStack2 . size = size ; reset ( vn ) ; vn . pop2 ( ) ; return s ; } } public final void reset ( VTDNav vn ) { } public final String toString ( ) { } public final boolean isNumerical ( ) { } public final boolean isNodeSet ( ) { } public final boolean isString ( ) { } public final boolean isBoolean ( ) { } public final boolean requireContextSize ( ) { } public final void setContextSize ( int size ) { } public final void setPosition ( int pos ) { } public final boolean isUnique ( int i ) { } public final int adjust ( int n ) { } public final boolean isFinal ( ) { } public final void markCacheable ( ) { } public final void markCacheable2 ( ) { } public final void clearCache ( ) { } No newline ; at end ; of file ; }

Fix:
s = vn . getXPathStringVal2 ( a , ( ( short ) ( 0 ) ) ) ;
Buggy code:
public class ViewMessageAction extends InternAction implements SelectionListener { public ViewMessageAction ( FrameController controller ) { } public void selectionChanged ( SelectionChangedEvent e ) { if ( ( ( ( org . columba . mail . gui . table . MessageSelectionChangedEvent ) ( e ) ) . getUids ( ) . length ) == 1 ) { <START_BUG> processor . addOp ( new org . columba . mail . gui . message . command . ViewMessageCommand ( getFrameController ( ) , getFrameController ( ) . getSelectionManager ( ) . getSelection ( "mail.headertable" ) ) ) ; <END_BUG> } } }

Fix:
processor . addOp ( new org . columba . mail . gui . message . command . ViewMessageCommand ( getFrameController ( ) , getFrameController ( ) . getSelectionManager ( ) . getSelection ( "mail.table" ) ) ) ;
Buggy code:
public class CreativityComputer { private final boolean [ ] positiveAttributes = new boolean [ 30 ] ; private final String positiveAttributeStr = "0,2,4,5,7,9,11,13,16,18,19,20,22,24,25,26,28,29" ; private final Map < Integer , Double > lowCreativityBucket = new HashMap < > ( ) ; private Double lowCreativityBucketMean ; private final Map < Integer , Double > mediumCreativityBucket = new HashMap < > ( ) ; private Double mediumCreativityBucketMean ; private final Map < Integer , Double > highCreativityBucket = new HashMap < > ( ) ; private Double highCreativityBucketMean ; public void init ( List < Object [ ] > resultList ) { } public Set < Integer > getOthersUserIds ( Integer userId , Double [ ] rawScores , String strategy ) { } private Map < Integer , Double > computeCreativityScores ( List < Object [ ] > resultList ) { } private void partitionCreativityScores ( Map < Integer , Double > userIdTocreativityScore ) { } private Map < Integer , Double [ ] > readCreativityRawScores ( List < Object [ ] > resultSet ) { } private Double computeCreativityScore ( Double [ ] rawScores ) { Double creativityScore = 0.0 ; if ( ( rawScores . length ) != 30 ) { throw new IllegalArgumentException ( ( ( "Length<seq2seq4repair_space>=<seq2seq4repair_space>" + ( rawScores . length ) ) + ".<seq2seq4repair_space>There<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>30<seq2seq4repair_space>scores<seq2seq4repair_space>from<seq2seq4repair_space>the<seq2seq4repair_space>mini<seq2seq4repair_space>IPIP<seq2seq4repair_space>test" ) ) ; } for ( int i = 0 ; i < 30 ; i ++ ) { if ( ( ( rawScores [ i ] ) < 1 ) || ( ( rawScores [ i ] ) > 5 ) ) { throw new IllegalArgumentException ( ( ( ( ( "creativityScores[" + i ) + "]<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( rawScores [ i ] ) ) + ".<seq2seq4repair_space>All<seq2seq4repair_space>scores<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>1<seq2seq4repair_space>to<seq2seq4repair_space>5<seq2seq4repair_space>range" ) ) ; } } for ( int i = 0 ; i < 30 ; i ++ ) { <START_BUG> creativityScore += ( positiveAttributes [ i ] ) ? rawScores [ i ] : 5 - ( rawScores [ i ] ) ; <END_BUG> } return creativityScore // 30 ; } private static Double findMeanValue ( Collection < Double > values ) { } private String findBucket ( Double creativityScore ) { } }

Fix:
creativityScore += ( positiveAttributes [ i ] ) ? rawScores [ i ] : 6 - ( rawScores [ i ] ) ;
Buggy code:
public class Reservation extends ModelEntity < Reservation > { public final int id ; public final Customer customer ; public final Period period ; public final Vehicle vehicle ; private HashMap < String , String > fields ; private Reservation ( int id , Customer customer , Period period , Vehicle vehicle ) { } public Reservation ( Customer customer , Period period , Vehicle vehicle ) { } protected Reservation factory ( int id , Reservation entry ) { } public HashMap < String , String > getFields ( ) { } public int getId ( ) { } public String getTable ( ) { } public static Reservation getWhereId ( int entryId ) { } public static Reservation [ ] getFromPeriod ( Period period ) { <START_BUG> String condition = ( ( "WHERE<seq2seq4repair_space>period.startTime<seq2seq4repair_space>>=<seq2seq4repair_space>" + ( period . start . getTime ( ) ) ) + "<seq2seq4repair_space>AND<seq2seq4repair_space>period.endTime<seq2seq4repair_space><=<seq2seq4repair_space>" ) + ( period . end . getTime ( ) ) ; <END_BUG> ResultSet result = model . get ( "reservation" , condition , "period" , "reservation.period" , "period.id" ) ; if ( getFirstRowInResultSet ( result ) ) { try { result . last ( ) ; Reservation [ ] arr = new Reservation [ result . getRow ( ) ] ; result . beforeFirst ( ) ; while ( result . next ( ) ) { int id = result . getInt ( 1 ) ; System . out . println ( result . getString ( "startTime" ) ) ; } return arr ; } catch ( SQLException e ) { Log . error ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>retrieve<seq2seq4repair_space>data<seq2seq4repair_space>from<seq2seq4repair_space>result:<seq2seq4repair_space>" + e ) ) ; } } else { Log . info ( "Query<seq2seq4repair_space>for<seq2seq4repair_space>Reservation<seq2seq4repair_space>with<seq2seq4repair_space>condition<seq2seq4repair_space>returned<seq2seq4repair_space>empty." ) ; } return null ; } No newline ; at end ; of file ; }

Fix:
String condition = ( ( "period.startTime<seq2seq4repair_space>>=<seq2seq4repair_space>" + ( period . start . getTime ( ) ) ) + "<seq2seq4repair_space>AND<seq2seq4repair_space>period.endTime<seq2seq4repair_space><=<seq2seq4repair_space>" ) + ( period . end . getTime ( ) ) ;
Buggy code:
public class SchematicsPanel implements Listener { private static ASkyBlock plugin = ASkyBlock . getPlugin ( ) ; private static HashMap < UUID , List < SPItem > > schematicItems = new HashMap < UUID , List < SPItem > > ( ) ; public static Inventory getSchematicPanel ( Player player ) { int slot = 0 ; List < SPItem > items = new ArrayList < SPItem > ( ) ; <START_BUG> List < Schematic > availableSchems = IslandCmd . getSchematics ( player ) ; <END_BUG> for ( Schematic schematic : availableSchems ) { items . add ( new SPItem ( schematic , ( slot ++ ) ) ) ; } if ( ( items . size ( ) ) > 0 ) { SchematicsPanel . schematicItems . put ( player . getUniqueId ( ) , items ) ; int size = ( items . size ( ) ) + 8 ; size -= size % 9 ; Inventory newPanel = Bukkit . createInventory ( null , size , SchematicsPanel . plugin . myLocale ( player . getUniqueId ( ) ) . schematicsTitle ) ; for ( SPItem i : items ) { newPanel . setItem ( i . getSlot ( ) , i . getItem ( ) ) ; } return newPanel ; } else { player . sendMessage ( ( ( ChatColor . RED ) + ( SchematicsPanel . plugin . myLocale ( ) . errorCommandNotReady ) ) ) ; } return null ; } @ EventHandler public void onInventoryClick ( InventoryClickEvent event ) { } No newline ; at end ; of file ; }

Fix:
List < Schematic > availableSchems = IslandCmd . getSchematics ( player , false ) ;
Buggy code:
public class ObjectActivityManager implements IObjectActivityManager { private static Map managersMap = new HashMap ( 17 ) ; public static ObjectActivityManager getManager ( String id , boolean create ) { } private Collection activeObjects = new HashSet ( 17 ) ; private IActivityListener activityListener = new IActivityListener ( ) { public void activityChanged ( ActivityEvent activityEvent ) { } } ; private IMutableActivityManager activityManager ; private IActivityManagerListener activityManagerListener = new IActivityManagerListener ( ) { public void activityManagerChanged ( ActivityManagerEvent activityManagerEvent ) { } } ; private Map activityMap = new HashMap ( ) ; private boolean dirty = true ; private String managerId ; private Map objectMap = new HashMap ( ) ; public ObjectActivityManager ( String id , IMutableActivityManager activityManager ) { } public void addActivityBinding ( IObjectContributionRecord record , String activityId ) { } public IObjectContributionRecord addObject ( String pluginId , String localId , Object object ) { } public void applyPatternBindings ( ) { } void applyPatternBindings ( Collection objectIds ) { Collection activities = activityManager . getDefinedActivityIds ( ) ; for ( Iterator actItr = activities . iterator ( ) ; actItr . hasNext ( ) ; ) { IActivity activity = activityManager . getActivity ( ( ( String ) ( actItr . next ( ) ) ) ) ; for ( Iterator objItr = objectIds . iterator ( ) ; objItr . hasNext ( ) ; ) { IObjectContributionRecord objectId = ( ( IObjectContributionRecord ) ( objItr . next ( ) ) ) ; <START_BUG> if ( activity . match ( objectId . toString ( ) ) ) { <END_BUG> addActivityBinding ( objectId , activity . getId ( ) ) ; } } } } public void applyPatternBindings ( IObjectContributionRecord record ) { } public Collection findObjectContributionRecords ( Object objectOfInterest ) { } public Collection getActiveObjects ( ) { } private Set getActivityIdsFor ( IObjectContributionRecord record , boolean create ) { } public String getId ( ) { } public Set getObjectIds ( ) { } protected void invalidateCache ( ) { } public void removeObject ( IObjectContributionRecord record ) { } protected void removePatternBindings ( ) { } public void setEnablementFor ( Object objectOfInterest , boolean enablement ) { } }

Fix:
if ( activity . isMatch ( objectId . toString ( ) ) ) {
Buggy code:
public class ArrayTypeReference extends LightweightTypeReference { private LightweightTypeReference component ; public ArrayTypeReference ( ITypeReferenceOwner owner , LightweightTypeReference component ) { } @ Override public int getKind ( ) { } @ Override public JvmTypeReference toTypeReference ( ) { } @ Override public boolean isVisible ( IVisibilityHelper visibilityHelper ) { } @ Override public JvmTypeReference toJavaCompliantTypeReference ( IVisibilityHelper visibilityHelper ) { } @ Override public JvmArrayType getType ( ) { <START_BUG> JvmType componentType = component . getType ( ) ; <END_BUG> if ( componentType instanceof JvmComponentType ) { return Preconditions . checkNotNull ( ( ( JvmComponentType ) ( componentType ) ) . getArrayType ( ) ) ; } if ( component . isUnknown ( ) ) { return null ; } throw new IllegalStateException ( ( ( ( "component<seq2seq4repair_space>type<seq2seq4repair_space>seems<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>invalid:<seq2seq4repair_space>" + componentType ) + "<seq2seq4repair_space>//<seq2seq4repair_space>" ) + ( component ) ) ) ; } @ Override public boolean isUnknown ( ) { } @ Override protected List < LightweightTypeReference > getSuperTypes ( TypeParameterSubstitutor < ? > substitutor ) { } @ Override public LightweightTypeReference getSuperType ( JvmType rawType ) { } @ Override public LightweightTypeReference getSuperType ( Class < ? > rawType ) { } @ Override public boolean isResolved ( ) { } @ Override public boolean isRawType ( ) { } @ Override public boolean isAnonymous ( ) { } @ Override public LightweightTypeReference getNamedType ( ) { } @ Override public LightweightTypeReference getRawTypeReference ( ) { } @ Override public boolean isOwnedBy ( ITypeReferenceOwner owner ) { } @ Override public boolean isArray ( ) { } @ Override public LightweightTypeReference tryConvertToListType ( ) { } @ Override public ArrayTypeReference tryConvertToArray ( ) { } @ Override protected LightweightTypeReference doCopyInto ( ITypeReferenceOwner owner ) { } @ Override public String getSimpleName ( ) { } @ Override public String getIdentifier ( ) { } @ Override public String getUniqueIdentifier ( ) { } @ Override public String getJavaIdentifier ( ) { } @ Override public boolean isType ( Class < ? > clazz ) { } @ Override public LightweightTypeReference getComponentType ( ) { } @ Override public void accept ( TypeReferenceVisitor visitor ) { } @ Override public < Param > void accept ( TypeReferenceVisitorWithParameter < Param > visitor , Param param ) { } @ Override public < Result > Result accept ( TypeReferenceVisitorWithResult < Result > visitor ) { } @ Override public < Param , Result > Result accept ( TypeReferenceVisitorWithParameterAndResult < Param , Result > visitor , Param param ) { } }

Fix:
JvmType componentType = component . toJavaType ( ) . getType ( ) ;
Buggy code:
public class MboxMailArchiveCrawler { private static final Logger LOGGER = Logger . getLogger ( MboxMailArchiveCrawler . class ) ; private final AtomicInteger emailFilesCount = new AtomicInteger ( ) ; private final Connection connection ; private final Client client ; private final String projectName ; private final String projectUrl ; private final String repositoryUrl ; private final SocialMediaChannel channelType ; public MboxMailArchiveCrawler ( Client client , Connection connection , String projectName , String projectUrl , String repositoryUrl , SocialMediaChannel channelType ) { } public static void main ( String [ ] args ) throws Exception { } public void run ( ) throws IOException , InterruptedException { SortedSet < String > mboxUrls = getArchiveUrls ( ) ; DatabaseHelperMethods helperMethods = new DatabaseHelperMethods ( connection ) ; <START_BUG> EmailParser parser = new EmailParser ( helperMethods , projectName , projectUrl , repositoryUrl , channelType ) ; <END_BUG> MboxMailArchiveCrawler . LOGGER . info ( ( "Total<seq2seq4repair_space>Email<seq2seq4repair_space>Files:<seq2seq4repair_space>" + ( mboxUrls . size ( ) ) ) ) ; for ( String mboxLink : mboxUrls ) { String emailsInMbox = doForeachMboxFile ( 0 , 20 , mboxLink ) ; if ( emailsInMbox == null ) continue ; parser . parseAndSaveEmails ( emailsInMbox ) ; MboxMailArchiveCrawler . LOGGER . info ( ( "Finished<seq2seq4repair_space>parsing<seq2seq4repair_space>file:<seq2seq4repair_space>" + mboxLink ) ) ; logCount ( ) ; } MboxMailArchiveCrawler . LOGGER . info ( "Process<seq2seq4repair_space>Finished" ) ; } private SortedSet < String > getArchiveUrls ( ) { } private SortedSet < String > getArchiveUrlsFor ( int i , int limit , SortedSet < String > mboxUrls ) { } private Elements getElements ( ) { } private String doForeachMboxFile ( int i , int limit , String mboxLink ) throws InterruptedException { } private void logCount ( ) { } }

Fix:
MailParser parser = new MailParser ( helperMethods , projectName , projectUrl , repositoryUrl , channelType ) ;