nus-yam/ex-repair huggingface dataset:
Buggy code:
public class PropertyConfigurator extends BasicConfigurator implements Configurator { protected Hashtable registry = new Hashtable ( 11 ) ; protected CategoryFactory categoryFactory = new DefaultCategoryFactory ( ) ; static final String CATEGORY_PREFIX = "log4j.category." ; static final String ADDITIVITY_PREFIX = "log4j.additivity." ; static final String ROOT_CATEGORY_PREFIX = "log4j.rootCategory" ; static final String APPENDER_PREFIX = "log4j.appender." ; static final String RENDERER_PREFIX = "log4j.renderer." ; static final String CATEGORY_FACTORY_KEY = "log4j.categoryFactory" ; private static final String INTERNAL_ROOT_NAME = "root" ; public void doConfigure ( String configFileName , Hierarchy hierarchy ) { } public static void configure ( String configFilename ) { } public static void configure ( URL configURL ) { } public static void configure ( Properties properties ) { } public static void configureAndWatch ( String configFilename ) { } public static void configureAndWatch ( String configFilename , long delay ) { } public void doConfigure ( Properties properties , Hierarchy hierarchy ) { } public void doConfigure ( URL configURL , Hierarchy hierarchy ) { } void configureCategoryFactory ( Properties props ) { } void configureOptionHandler ( OptionHandler oh , String prefix , Properties props ) { String [ ] options = oh . getOptionStrings ( ) ; if ( options == null ) return ; String value ; for ( int i = 0 ; i < ( options . length ) ; i ++ ) { value = OptionConverter . findAndSubst ( ( prefix + ( options [ i ] ) ) , props ) ; <START_BUG> LogLog . debug ( ( ( ( ( "Option<seq2seq4repair_space>" + ( options [ i ] ) ) + "=[" ) + ( value == null ? "null" : value ) ) + "]." ) ) ; <END_BUG> if ( value != null ) { oh . setOption ( options [ i ] , value ) ; } } oh . activateOptions ( ) ; } void configureRootCategory ( Properties props , Hierarchy hierarchy ) { } protected void parseCatsAndRenderers ( Properties props , Hierarchy hierarchy ) { } void parseAdditivityForCategory ( Properties props , Category cat , String categoryName ) { } void parseCategory ( Properties props , Category cat , String optionKey , String catName , String value ) { } Appender parseAppender ( Properties props , String appenderName ) { } void registryPut ( Appender appender ) { } Appender registryGet ( String name ) { } }

Fix:
LogLog . debug ( ( ( ( ( "Option<seq2seq4repair_space>" + ( options [ i ] ) ) + "=[" ) + ( value == null ? "N//A" : value ) ) + "]." ) ) ;
Buggy code:
public class TestDriver { @ SuppressWarnings ( "unused" ) public static void main ( String [ ] args ) { BuildQuiz request = null ; BuildQuizResponse response = null ; DocumentMasterSkeleton service = null ; try { request = new BuildQuiz ( ) ; AssignmentType assignment = new AssignmentType ( ) ; QuizType quiz = new QuizType ( ) ; EntryType quizid = new EntryType ( ) ; <START_BUG> quizid . setId ( "quiz56" ) ; <END_BUG> quiz . setQuiz ( quizid ) ; EntryType teacher = new EntryType ( ) ; teacher . setId ( "7675" ) ; teacher . setName ( "Yo<seq2seq4repair_space>Teach" ) ; EntryType school = new EntryType ( ) ; school . setId ( "123" ) ; school . setName ( "Don<seq2seq4repair_space>Bosco<seq2seq4repair_space>School" ) ; quiz . setTeacher ( teacher ) ; quiz . setSchool ( school ) ; PageType [ ] pages = new PageType [ 1 ] ; pages [ 0 ] = new PageType ( ) ; pages [ 0 ] . setNumber ( 1 ) ; EntryType [ ] questions = new EntryType [ 1 ] ; questions [ 0 ] = new EntryType ( ) ; questions [ 0 ] . setId ( "1" ) ; pages [ 0 ] . setQuestion ( questions ) ; quiz . setPage ( pages ) ; EntryType [ ] students = new EntryType [ 2 ] ; students [ 0 ] = new EntryType ( ) ; students [ 0 ] . setId ( "1A" ) ; students [ 0 ] . setName ( "Student<seq2seq4repair_space>Aman" ) ; students [ 1 ] = new EntryType ( ) ; students [ 1 ] . setId ( "1B" ) ; students [ 1 ] . setName ( "Etudiant<seq2seq4repair_space>Azan" ) ; EntryType instance = new EntryType ( ) ; instance . setId ( "1" ) ; assignment . setQuiz ( quizid ) ; assignment . setInstance ( instance ) ; assignment . setStudents ( students ) ; request . setBuildQuiz ( quiz ) ; service = new DocumentMasterSkeleton ( ) ; AssignQuiz assignQuizReq = new AssignQuiz ( ) ; assignQuizReq . setAssignQuiz ( assignment ) ; service . buildQuiz ( request ) ; } catch ( Exception e ) { } } }

Fix:
quizid . setId ( "quiz60" ) ;
Buggy code:
public abstract class AbstractTextComponent extends FormComponent { public static interface ITextFormatProvider { String getTextFormat ( ) { } } public AbstractTextComponent ( String id ) { } public AbstractTextComponent ( final String id , final IModel model ) { } public final boolean getConvertEmptyInputStringToNull ( ) { } public boolean isInputNullable ( ) { } protected void onBeforeRender ( ) { super . onBeforeRender ( ) ; if ( ( getType ( ) ) == null ) { Class type = getModelType ( getModel ( ) ) ; <START_BUG> if ( String . class . equals ( type ) ) { <END_BUG> setType ( type ) ; } } } private Class getModelType ( IModel model ) { } public final FormComponent setConvertEmptyInputStringToNull ( boolean flag ) { } protected Object convertValue ( String [ ] value ) throws ConversionException { } protected final boolean supportsPersistence ( ) { } }

Fix:
if ( ! ( String . class . equals ( type ) ) ) {
Buggy code:
@ JsonIgnoreProperties ( ignoreUnknown = true ) public class ProvidedServiceInstance { private String serviceName ; private String uri ; private String address ; private int port = 0 ; private OperationalStatus status ; private boolean monitorEnabled = true ; private Map < String , String > metadata ; public ProvidedServiceInstance ( ) { } @ Deprecated public ProvidedServiceInstance ( String serviceName , String address , int port ) { } public ProvidedServiceInstance ( String serviceName , String address ) { } public ProvidedServiceInstance ( String serviceName , String address , int port , String uri , OperationalStatus status , Map < String , String > metadata ) { } public String getUri ( ) { } public void setUri ( String uri ) { } public String getAddress ( ) { } public void setAddress ( String address ) { } public int getPort ( ) { } public void setPort ( int port ) { } public OperationalStatus getStatus ( ) { } public void setStatus ( OperationalStatus status ) { } public boolean isMonitorEnabled ( ) { } public void setMonitorEnabled ( boolean monitor ) { } public Map < String , String > getMetadata ( ) { } public void setMetadata ( Map < String , String > metadata ) { } public String getServiceName ( ) { } @ Deprecated public String getProviderId ( ) { <START_BUG> return ( ( this . address ) + "-" ) + ( String . valueOf ( this . port ) ) ; <END_BUG> } }

Fix:
return getAddress ( ) ;
Buggy code:
public class DefaultQueueManager implements QueueManager { private static final Logger logger = LoggerFactory . getLogger ( "fileLogger" ) ; private static final Logger consoleLogger = LoggerFactory . getLogger ( "stdoutLogger" ) ; private ConcurrentLinkedQueue < Link > queue = null ; private HashSet < Link > knownLinks = null ; private Link crawlDomain = null ; public DefaultQueueManager ( Link crawlDomain , List < Link > seeds ) { } @ Override public Link getNextLink ( ) { } @ Override public List < Link > getNextLinks ( int numberOfLinks ) { } @ Override public List < Link > getAllKnownLinks ( ) { } @ Override public List < Link > getAllVisitedLinks ( ) { } @ Override public void updateQueue ( Map < Page , Set < Link > > result ) { for ( Page page : result . keySet ( ) ) { for ( Link link : result . get ( page ) ) { try { String domain = LinkUtil . normalizeDomain ( link . getLink ( ) ) ; <START_BUG> if ( ( crawlDomain . getLink ( ) . equalsIgnoreCase ( domain ) ) && ( ! ( knownLinks . contains ( link ) ) ) ) { <END_BUG> DefaultQueueManager . logger . info ( "Adding<seq2seq4repair_space>link<seq2seq4repair_space>{}<seq2seq4repair_space>to<seq2seq4repair_space>queue" , link ) ; knownLinks . add ( link ) ; queue . add ( link ) ; } } catch ( Exception ex ) { DefaultQueueManager . logger . error ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>add<seq2seq4repair_space>link<seq2seq4repair_space>to<seq2seq4repair_space>queue:<seq2seq4repair_space>" + ( link . getLink ( ) ) ) ) ; knownLinks . add ( link ) ; } } } DefaultQueueManager . logger . info ( "Queue<seq2seq4repair_space>size<seq2seq4repair_space>({}):<seq2seq4repair_space>{},<seq2seq4repair_space>knownLinks:<seq2seq4repair_space>{}" , crawlDomain . getLink ( ) , queue . size ( ) , knownLinks . size ( ) ) ; DefaultQueueManager . consoleLogger . info ( "Queue<seq2seq4repair_space>size<seq2seq4repair_space>({}):<seq2seq4repair_space>{},<seq2seq4repair_space>knownLinks:<seq2seq4repair_space>{}" , crawlDomain . getLink ( ) , queue . size ( ) , knownLinks . size ( ) ) ; } }

Fix:
if ( ( LinkUtil . normalizeDomain ( crawlDomain . getLink ( ) ) . equalsIgnoreCase ( domain ) ) && ( ! ( knownLinks . contains ( link ) ) ) ) {
Buggy code:
public class RDFClassInfo extends Resource { protected volatile HashSet namedSuperClasses = new HashSet ( ) ; protected HashMap instances = new HashMap ( ) ; protected volatile ArrayList combinedSuperClasses = new ArrayList ( ) ; protected ArrayList superClasses = new ArrayList ( ) ; protected ResourceFactory factory ; protected int factoryIndex ; protected Ontology ont ; protected boolean locked = false ; protected RDFClassInfo . PrivateRDFSetup rdfsetup = null ; protected class PrivateRDFSetup implements RDFClassInfoSetup { RDFClassInfo info ; public PrivateRDFSetup ( RDFClassInfo info ) { } public void addInstance ( Resource instance ) { } public void addSuperClass ( ClassExpression superClass ) { } public void addSuperClass ( String namedSuperClass ) { } public RDFClassInfo getInfo ( ) { } public void setResourceComment ( String comment ) { } public void setResourceLabel ( String label ) { } } protected RDFClassInfo ( String classURI , Ontology ont , ResourceFactory factory , int factoryIndex ) { } public static RDFClassInfoSetup create ( String classURI , Ontology ont , ResourceFactory factory , int factoryIndex ) { } public boolean isAbstract ( ) { } public ResourceFactory getFactory ( ) { } public int getFactoryIndex ( ) { } public boolean hasSuperClass ( String classURI , boolean inherited ) { if ( namedSuperClasses . contains ( classURI ) ) return true ; if ( ! inherited ) return false ; Iterator it = namedSuperClasses . iterator ( ) ; while ( it . hasNext ( ) ) { String superClassURI = ( ( String ) ( it . next ( ) ) ) ; OntClassInfo superInfo = OntologyManagement . getInstance ( ) . getOntClassInfo ( superClassURI ) ; if ( superInfo != null ) <START_BUG> if ( superInfo . hasSuperClass ( superClassURI , inherited ) ) <END_BUG> return true ; } return false ; } public String [ ] getNamedSuperClasses ( boolean inherited , boolean includeAbstractClasses ) { } public ClassExpression [ ] getSuperClasses ( ) { } public Resource [ ] getInstances ( ) { } public Resource getInstanceByURI ( String uri ) { } public void lock ( ) { } public boolean isClosedCollection ( String propURI ) { } }

Fix:
if ( superInfo . hasSuperClass ( classURI , inherited ) )
Buggy code:
public class TableTemplateProvider implements DefaultLiveTemplatesProvider { @ Override public String [ ] getDefaultLiveTemplateFiles ( ) { <START_BUG> return new String [ ] { "liveTemplates//Tables" } ; <END_BUG> } @ Nullable @ Override public String [ ] getHiddenLiveTemplateFiles ( ) { } }

Fix:
return new String [ ] { "liveTemplates//gaugeTemplates" } ;
Buggy code:
public class VersionedExtension2 extends VersionedExtensionCommon { private static final PathElement NEW_ELEMENT = PathElement . pathElement ( "new-element" ) ; private static final PathElement RENAMED = PathElement . pathElement ( "renamed" , "element" ) ; @ Override public void initialize ( final ExtensionContext context ) { final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , 2 , 0 , 0 ) ; final ManagementResourceRegistration registration = initializeSubsystem ( subsystem ) ; registration . registerOperationHandler ( "update" , new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final Resource resource = context . readResourceForUpdate ( EMPTY_ADDRESS ) ; final ModelNode model = resource . getModel ( ) ; model . get ( "test-attribute" ) . set ( "test" ) ; context . getResult ( ) . set ( model ) ; <START_BUG> context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; <END_BUG> } } , DESCRIPTION_PROVIDER ) ; registration . registerSubModel ( createResourceDefinition ( VersionedExtension2 . NEW_ELEMENT ) ) ; registration . registerSubModel ( createResourceDefinition ( VersionedExtension2 . RENAMED ) ) ; final TransformersSubRegistration transformers = subsystem . registerModelTransformers ( ModelVersion . create ( 1 , 0 , 0 ) , VersionedExtension2 . RESOURCE_TRANSFORMER ) ; transformers . registerOperationTransformer ( "update" , new VersionedExtension2 . UpdateTransformer ( ) ) ; final TransformersSubRegistration newElement = transformers . registerSubResource ( VersionedExtension2 . NEW_ELEMENT ) ; newElement . discardOperations ( COMMON_OPERATIONS ) ; final TransformersSubRegistration renamed = transformers . registerSubResource ( VersionedExtension2 . RENAMED , AliasOperationTransformer . replaceLastElement ( PathElement . pathElement ( "element" , "renamed" ) ) ) ; } static ResourceTransformer RESOURCE_TRANSFORMER = new ResourceTransformer ( ) { @ Override public void transformResource ( ResourceTransformationContext context , PathAddress address , Resource resource ) throws OperationFailedException { } } ; static class UpdateTransformer implements OperationTransformer { @ Override public TransformedOperation transformOperation ( final TransformationContext context , final PathAddress address , final ModelNode operation ) { } } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
Polygon p = new Polygon ( ) ; v_seen = false ; for ( double d = 0.001 ; d < ( ( Math . PI ) * 2 ) ; d += ( Math . PI ) // 2000 ) { double y = b_y ; double x = b_x ; double d_y = Math . sin ( d ) ; double d_x = Math . cos ( d ) ; boolean blocked = false ; while ( true ) { if ( ( ( ( int ) ( v_x ) ) == ( ( int ) ( x ) ) ) && ( ( ( int ) ( v_y ) ) == ( ( int ) ( y ) ) ) ) { v_b_x = b_x ; v_b_y = b_y ; v_seen = true ; vantage_index = tick ; } double yDist = ( d_y < 0 ? Math . ceil ( ( y - 1 ) ) : Math . floor ( ( y + 1 ) ) ) - y ; double xDist = ( d_x < 0 ? Math . ceil ( ( x - 1 ) ) : Math . floor ( ( x + 1 ) ) ) - x ; if ( ( Math . abs ( ( yDist // d_y ) ) ) < ( Math . abs ( ( xDist // d_x ) ) ) ) { x += ( ( yDist // d_y ) * d_x ) * 1.001 ; y += yDist * 1.001 ; } else { x += xDist * 1.001 ; y += ( ( xDist // d_x ) * d_y ) * 1.001 ; } if ( ( ( ( ( ( int ) ( x ) ) < 0 ) || ( ( ( int ) ( y ) ) < 0 ) ) || ( ( ( int ) ( x ) ) >= ( a . T_W ) ) ) || ( ( ( int ) ( y ) ) >= ( a . T_H ) ) ) { break ; } if ( ( ( ( bullets > 0 ) && ( inventory [ a . GUN ] ) ) && ( ( Math . abs ( ( ptr - d ) ) ) < ( ( Math . PI ) // 1000 ) ) ) && ( ! blocked ) ) { if ( ( r . nextInt ( 16 ) ) == 0 ) { double offset = ( r . nextDouble ( ) ) * 40 ; particles [ ( sprk * 5 ) ] = 1 ; particles [ ( ( sprk * 5 ) + 1 ) ] = ( x * ( a . TILE_SIZE ) ) + ( offset * d_x ) ; particles [ ( ( sprk * 5 ) + 2 ) ] = ( y * ( a . TILE_SIZE ) ) + ( offset * d_y ) ; particles [ ( ( sprk * 5 ) + 3 ) ] = 0 ; particles [ ( ( sprk * 5 ) + 4 ) ] = 0 ; sprk = ( sprk + 1 ) % 20 ; } if ( inventory [ a . GUN ] ) { if ( ( ( t_type [ ( ( int ) ( y ) ) ] [ ( ( int ) ( x ) ) ] ) > ( a . SOLIDS ) ) || ( ( ( ( int ) ( y ) ) == ( ( int ) ( v_y ) ) ) && ( ( ( int ) ( x ) ) == ( ( int ) ( v_x ) ) ) ) ) { blocked = true ; if ( ( ( bullets > 0 ) && ( click ) ) && ( b_cooldown <= 0 ) ) { Sound . play ( "gun" , 1.0F ) ; b_cooldown = a . B_COOLDOWN ; int p_start = 40 ; if ( ( t_type [ ( ( int ) ( y ) ) ] [ ( ( int ) ( x ) ) ] ) > ( a . SOLIDS ) ) { t_hp [ ( ( int ) ( y ) ) ] [ ( ( int ) ( x ) ) ] -= a . GUN_DMG ; if ( ( t_hp [ ( ( int ) ( y ) ) ] [ ( ( int ) ( x ) ) ] ) <= 0 ) { <START_BUG> t_type [ ( ( int ) ( y ) ) ] [ ( ( int ) ( x ) ) ] = a . _ ; <END_BUG> } } if ( ( ( ( int ) ( y ) ) == ( ( int ) ( v_y ) ) ) && ( ( ( int ) ( x ) ) == ( ( int ) ( v_x ) ) ) ) { v_dmg = a . GUN_V_DMG ; p_start = 80 ; } for ( int i = p_start ; i < ( p_start + 40 ) ; i ++ ) { particles [ ( i * 5 ) ] = ( r . nextDouble ( ) ) * 5 ; particles [ ( ( i * 5 ) + 1 ) ] = ( x * ( a . TILE_SIZE ) ) + d_x ; particles [ ( ( i * 5 ) + 2 ) ] = ( y * ( a . TILE_SIZE ) ) + d_y ; particles [ ( ( i * 5 ) + 3 ) ] = ( ( r . nextDouble ( ) ) * 4 ) - 2 ; particles [ ( ( i * 5 ) + 4 ) ] = ( ( r . nextDouble ( ) ) * 4 ) - 2 ; } bullets -- ; } } } }

Fix:
t_type [ ( ( int ) ( y ) ) ] [ ( ( int ) ( x ) ) ] = ( ( t_type [ ( ( int ) ( y ) ) ] [ ( ( int ) ( x ) ) ] ) == ( a . F ) ) ? a . G : a . _ ;
Buggy code:
public abstract class ListView extends WebMarkupContainer { private static Log log = LogFactory . getLog ( ListView . class ) ; private int firstIndex = 0 ; private boolean optimizeItemRemoval = false ; private int viewSize = Integer . MAX_VALUE ; public ListView ( final String id ) { } public ListView ( final String id , final IModel model ) { } public ListView ( final String id , final List list ) { } public final List getList ( ) { } public boolean getOptimizeItemRemoval ( ) { } public final int getStartIndex ( ) { } public int getViewSize ( ) { } public final Link moveDownLink ( final String id , final ListItem item ) { } public final Link moveUpLink ( final String id , final ListItem item ) { } public final Link removeLink ( final String id , final ListItem item ) { } public void setOptimizeItemRemoval ( boolean optimizeItemRemoval ) { } public ListView setStartIndex ( final int startIndex ) { } public ListView setViewSize ( final int size ) { } protected IModel getListItemModel ( final IModel listViewModel , final int index ) { <START_BUG> return new ListItemModel ( listViewModel , index ) ; <END_BUG> } protected void internalOnBeginRequest ( ) { } protected ListItem newItem ( final int index ) { } protected void onBeginPopulateItem ( final ListItem item ) { } protected void onRender ( ) { } protected abstract void populateItem ( final ListItem item ) { } protected void renderItem ( final ListItem item ) { } }

Fix:
return new ListItemModel ( this , index ) ;
Buggy code:
public class SimpleAttributeDefinitionBuilder extends AbstractAttributeDefinitionBuilder < SimpleAttributeDefinitionBuilder , SimpleAttributeDefinition > { public static SimpleAttributeDefinitionBuilder create ( final String name , final ModelType type ) { } public static SimpleAttributeDefinitionBuilder create ( final String name , final ModelType type , final boolean allowNull ) { } public static SimpleAttributeDefinitionBuilder create ( final SimpleAttributeDefinition basis ) { } public static SimpleAttributeDefinitionBuilder create ( final String name , final ModelNode node ) { } public SimpleAttributeDefinitionBuilder ( final String attributeName , final ModelType type ) { } public SimpleAttributeDefinitionBuilder ( final String attributeName , final ModelType type , final boolean allowNull ) { } public SimpleAttributeDefinitionBuilder ( final SimpleAttributeDefinition basis ) { } public SimpleAttributeDefinition build ( ) { <START_BUG> return new SimpleAttributeDefinition ( name , xmlName , defaultValue , type , allowNull , allowExpression , measurementUnit , corrector , validator , validateNull , alternatives , requires , flags ) ; <END_BUG> } @ Override public SimpleAttributeDefinitionBuilder setXmlName ( String xmlName ) { } @ Override public SimpleAttributeDefinitionBuilder setDefaultValue ( ModelNode defaultValue ) { } @ Override public SimpleAttributeDefinitionBuilder setValidator ( ParameterValidator validator ) { } @ Override public SimpleAttributeDefinitionBuilder setFlags ( AttributeAccess ... flags ) { } @ Override public SimpleAttributeDefinitionBuilder setAlternatives ( String ... alternatives ) { } @ Override public SimpleAttributeDefinitionBuilder setRequires ( String ... requires ) { } @ Override public SimpleAttributeDefinitionBuilder setMeasurementUnit ( MeasurementUnit unit ) { } @ Override public SimpleAttributeDefinitionBuilder setAllowExpression ( boolean allowExpression ) { } @ Override public SimpleAttributeDefinitionBuilder setAllowNull ( boolean allowNull ) { } @ Override public SimpleAttributeDefinitionBuilder setStorageRuntime ( ) { } }

Fix:
return new SimpleAttributeDefinition ( name , xmlName , defaultValue , type , allowNull , allowExpression , measurementUnit , corrector , validator , validateNull , alternatives , requires , attributeMarshaller , flags ) ;
Buggy code:
public class StringResourceModel extends AbstractReadOnlyDetachableModel { private static final long serialVersionUID = 1L ; private transient Locale locale ; private transient Localizer localizer ; private IModel model ; private Object [ ] parameters ; private Component component ; private String resourceKey ; public StringResourceModel ( final String resourceKey , final Component component , final IModel model ) { } public StringResourceModel ( final String resourceKey , final Component component , final IModel model , final Object [ ] parameters ) { } public Localizer getLocalizer ( ) { } public final IModel getNestedModel ( ) { } public final String getString ( ) { } public void setLocalizer ( final Localizer localizer ) { } public String toString ( ) { } protected final Object [ ] getParameters ( ) { } protected final String getResourceKey ( ) { } protected final void onAttach ( ) { final Session session = Session . get ( ) ; if ( session != null ) { <START_BUG> this . localizer = session . getApplication ( ) . getLocalizer ( ) ; <END_BUG> this . locale = session . getLocale ( ) ; } else { throw new WicketRuntimeException ( "Cannot<seq2seq4repair_space>attach<seq2seq4repair_space>a<seq2seq4repair_space>string<seq2seq4repair_space>resource<seq2seq4repair_space>model<seq2seq4repair_space>without<seq2seq4repair_space>a<seq2seq4repair_space>Session<seq2seq4repair_space>context<seq2seq4repair_space>because<seq2seq4repair_space>that<seq2seq4repair_space>is<seq2seq4repair_space>required<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>a<seq2seq4repair_space>Localizer" ) ; } } protected final void onDetach ( ) { } protected final Object onGetObject ( final Component component ) { } }

Fix:
this . localizer = session . getApplication ( ) . getMarkupSettings ( ) . getLocalizer ( ) ;
Buggy code:
@ Configuration @ Order ( ManagementServerProperties . ACCESS_OVERRIDE_ORDER ) public class LoginConfig extends WebSecurityConfigurerAdapter { @ Autowired private Neo4jUserDetailsService userDetailsService ; @ Override protected void configure ( HttpSecurity http ) throws Exception { <START_BUG> http . formLogin ( ) . loginPage ( "//login" ) . permitAll ( ) . and ( ) . logout ( ) . permitAll ( ) . and ( ) . authorizeRequests ( ) . anyRequest ( ) . authenticated ( ) ; <END_BUG> } @ Override protected void configure ( AuthenticationManagerBuilder auth ) throws Exception { } }

Fix:
http . formLogin ( ) . permitAll ( ) . and ( ) . logout ( ) . permitAll ( ) . and ( ) . authorizeRequests ( ) . anyRequest ( ) . authenticated ( ) ;
Buggy code:
public class NamingExtension implements Extension { public static final String NAMESPACE = "urn:jboss:domain:naming:1.0" ; static final NamingExtension . NamingSubSystemElementParser PARSER = new NamingExtension . NamingSubSystemElementParser ( ) ; static final SubsystemFactory < NamingSubsystemElement > FACTORY = new SubsystemFactory < NamingSubsystemElement > ( ) { public NamingSubsystemElement createSubsystemElement ( ) { } } ; public void initialize ( ExtensionContext context ) { <START_BUG> context . registerSubsystem ( NamingExtension . NAMESPACE , NamingExtension . FACTORY , NamingExtension . PARSER ) ; <END_BUG> } public void activate ( final ServiceActivatorContext context ) { } static class NamingSubSystemElementParser implements XMLElementReader < List < ? super AbstractSubsystemUpdate < NamingSubsystemElement , ? > > > { public void readElement ( XMLExtendedStreamReader reader , List < ? super AbstractSubsystemUpdate < NamingSubsystemElement , ? > > updates ) throws XMLStreamException { } } }

Fix:
context . registerSubsystem ( NamingExtension . NAMESPACE , NamingExtension . PARSER ) ;
Buggy code:
public class ForStatement extends Statement { public Statement [ ] initializations ; public Expression condition ; public Statement [ ] increments ; public Statement action ; public boolean neededScope ; public BlockScope scope ; private Label breakLabel ; private Label continueLabel ; int preCondInitStateIndex = - 1 ; int condIfTrueInitStateIndex = - 1 ; int mergedInitStateIndex = - 1 ; public ForStatement ( Statement [ ] initializations , Expression condition , Statement [ ] increments , Statement action , boolean neededScope , int s , int e ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public StringBuffer printStatement ( int tab , StringBuffer output ) { ASTNode . printIndent ( tab , output ) . append ( "for<seq2seq4repair_space>(" ) ; if ( ( initializations ) != null ) { for ( int i = 0 ; i < ( initializations . length ) ; i ++ ) { if ( i > 0 ) output . append ( ",<seq2seq4repair_space>" ) ; initializations [ i ] . print ( 0 , output ) ; } } output . append ( ";<seq2seq4repair_space>" ) ; if ( ( condition ) != null ) condition . printExpression ( 0 , output ) ; output . append ( ";<seq2seq4repair_space>" ) ; if ( ( increments ) != null ) { for ( int i = 0 ; i < ( increments . length ) ; i ++ ) { if ( i > 0 ) output . append ( ",<seq2seq4repair_space>" ) ; increments [ i ] . print ( 0 , output ) ; } } output . append ( ")<seq2seq4repair_space>" ) ; if ( ( action ) == null ) output . append ( ';' ) ; else { output . append ( '\n' ) ; action . printStatement ( ( tab + 1 ) , output ) ; } <START_BUG> return output . append ( ';' ) ; <END_BUG> } public void resolve ( BlockScope upperScope ) { } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
return output ;
Buggy code:
public class Violation implements IViolation { String description ; ISourceCodeElement sourceElement ; ISourceCodeElement targetElement ; IEnsemble sourceEnsemble ; IEnsemble targetEnsemble ; IConstraint constraint ; public Violation ( String description , ISourceCodeElement sourceElement , ISourceCodeElement targetElement , IEnsemble sourceEnsemble , IEnsemble targetEnsemble , IConstraint constraint ) { } @ Override public String getDescription ( ) { <START_BUG> return null ; <END_BUG> } @ Override public ISourceCodeElement getSourceElement ( ) { } @ Override public ISourceCodeElement getTargetElement ( ) { } @ Override public IEnsemble getSourceEnsemble ( ) { } @ Override public IEnsemble getTargetEnsemble ( ) { } @ Override public IConstraint getConstraint ( ) { } }

Fix:
return description ;
Buggy code:
public class Derulo { protected static Object fromJSONToken ( Token token ) { } protected static Object fromJSON ( List < Token > jsonTokens ) { } protected static Object fromIterator ( Iterator < Token > i ) { } public static Object fromJSON ( String jsonString ) { } protected static List < Token > toTokens ( String jsonString ) { List < Token > ret = new ArrayList < > ( ) ; char c = jsonString . charAt ( 0 ) ; for ( StringCharacterIterator i = new StringCharacterIterator ( jsonString ) ; c != ( StringCharacterIterator . DONE ) ; c = i . next ( ) ) { if ( ( c == ( Misc . NULL ) ) || ( Character . isWhitespace ( c ) ) ) continue ; switch ( c ) { case '{' : ret . add ( OPEN_CURL ) ; break ; case '}' : ret . add ( CLOSE_CURL ) ; break ; case '[' : ret . add ( OPEN_SQUARE ) ; break ; case ']' : ret . add ( CLOSE_SQUARE ) ; break ; case ':' : ret . add ( COLON ) ; break ; case ',' : ret . add ( COMMA ) ; break ; case '<seq2seq4repair_space>' : case '\n' : case '\t' : break ; case '"' : StringToken st = new StringToken ( ) ; StringBuilder builder = new StringBuilder ( ) ; for ( c = i . next ( ) ; c != '"' ; c = i . next ( ) ) { if ( c == ( StringCharacterIterator . DONE ) ) throw new RuntimeException ( ) ; if ( c == '\\' ) i . next ( ) ; builder . append ( c ) ; } st . setContent ( builder . toString ( ) ) ; ret . add ( st ) ; break ; default : StringBuilder sb = new StringBuilder ( ) ; for ( ; ( ( ( ! ( Character . isWhitespace ( c ) ) ) && ( c != ',' ) ) && ( c != '}' ) ) && ( c != ']' ) ; c = i . next ( ) ) { if ( c == ( StringCharacterIterator . DONE ) ) <START_BUG> throw new RuntimeException ( ) ; <END_BUG> sb . append ( c ) ; } i . previous ( ) ; ValueToken t = new ValueToken ( ) ; t . setContent ( sb . toString ( ) ) ; ret . add ( t ) ; } } return ret ; } public static String toJSON ( JsonSerializable object ) { } public static String toJSON ( Object object ) { } public static String toJSON ( int indent , Object object ) { } private static CharSequence toJSON ( int indent , int indentLevel , Object object , boolean field ) { } private static CharSequence getIndents ( int i ) { } }

Fix:
break ;
Buggy code:
public class IssueListExport extends DataExport { public void doBuildTemplate ( RunData data , TemplateContext context ) throws Exception { } private void writeHeading ( TSVPrinter printer , MITList mitlist , ScarabLocalizationTool l10n , List rmuas ) throws Exception { } private void writeRows ( TSVPrinter printer , MITList mitlist , ScarabLocalizationTool l10n , ScarabRequestTool scarabR , List rmuas ) throws Exception { } private void writeRow ( TSVPrinter printer , MITList mitlist , ScarabLocalizationTool l10n , List rmuas , QueryResult queryResult ) throws Exception { if ( mitlist != null ) { if ( ! ( mitlist . isSingleModule ( ) ) ) { printer . print ( queryResult . getModule ( ) . getRealName ( ) ) ; } if ( ! ( mitlist . isSingleIssueType ( ) ) ) { printer . print ( queryResult . getRModuleIssueType ( ) . getDisplayName ( ) ) ; } } printer . print ( queryResult . getUniqueId ( ) ) ; List values = queryResult . getAttributeValuesAsCSV ( ) ; for ( Iterator itr = values . iterator ( ) ; itr . hasNext ( ) ; ) { String val = ( ( String ) ( itr . next ( ) ) ) ; if ( ( val . length ( ) ) == 0 ) { <START_BUG> printer . print ( "-------" ) ; <END_BUG> } else { printer . print ( val ) ; } } } }

Fix:
printer . print ( NO_CONTENT ) ;
Buggy code:
} long tot = ns0 [ nbins ] ; if ( tot < ( 2 * min_rows ) ) return null ; double var = ( sums0 [ nbins ] ) * ( tot - ( sums0 [ nbins ] ) ) ; if ( var == 0 ) { assert isConstantResponse ( ) ; return null ; } if ( ( ( float ) ( var ) ) == 0.0F ) return null ; double [ ] sums1 = MemoryManager . malloc8d ( ( nbins + 1 ) ) ; long [ ] ns1 = MemoryManager . malloc8 ( ( nbins + 1 ) ) ; for ( int b = nbins - 1 ; b >= 0 ; b -- ) { double m0 = sums1 [ ( b + 1 ) ] ; double m1 = sums [ b ] ; long k0 = ns1 [ ( b + 1 ) ] ; long k1 = bins [ b ] ; if ( ( k0 == 0 ) && ( k1 == 0 ) ) continue ; sums1 [ b ] = m0 + m1 ; ns1 [ b ] = k0 + k1 ; assert ( ( ns0 [ b ] ) + ( ns1 [ b ] ) ) == tot ; } int best = 0 ; double best_se0 = Double . MAX_VALUE ; double best_se1 = Double . MAX_VALUE ; byte equal = 0 ; for ( int b = 1 ; b <= ( nbins - 1 ) ; b ++ ) { if ( ( bins [ b ] ) == 0 ) continue ; if ( ( ns0 [ b ] ) < min_rows ) continue ; if ( ( ns1 [ b ] ) < min_rows ) break ; double se0 = ( sums0 [ b ] ) * ( 1.0 - ( ( sums0 [ b ] ) // ( ns0 [ b ] ) ) ) ; double se1 = ( sums1 [ b ] ) * ( 1.0 - ( ( sums1 [ b ] ) // ( ns1 [ b ] ) ) ) ; if ( ( ( se0 + se1 ) < ( best_se0 + best_se1 ) ) || ( ( ( se0 + se1 ) == ( best_se0 + best_se1 ) ) && ( ( Math . abs ( ( b - ( nbins > > 1 ) ) ) ) < ( Math . abs ( ( best - ( nbins > > 1 ) ) ) ) ) ) ) { best_se0 = se0 ; best_se1 = se1 ; best = b ; } } if ( ( ( ( ( _isInt ) > 0 ) && ( ( _step ) == 1.0F ) ) && ( ( ( _maxEx ) - ( _min ) ) > 2 ) ) && ( idxs == null ) ) { for ( int b = 1 ; b <= ( nbins - 1 ) ; b ++ ) { if ( ( bins [ b ] ) < min_rows ) continue ; long N = ( ns0 [ b ] ) + ( ns1 [ ( b + 1 ) ] ) ; if ( N < min_rows ) continue ; double sums2 = ( sums0 [ b ] ) + ( sums1 [ ( b + 1 ) ] ) ; double si = sums2 * ( 1.0 - ( sums2 // N ) ) ; double sx = ( sums [ b ] ) - ( ( ( sums [ b ] ) * ( sums [ b ] ) ) // ( bins [ b ] ) ) ; if ( ( si + sx ) < ( best_se0 + best_se1 ) ) { best_se0 = si ; best_se1 = sx ; best = b ; equal = 1 ; } } } IcedBitSet bs = null ; if ( idxs != null ) { int min = Integer . MAX_VALUE ; int max = Integer . MIN_VALUE ; for ( int i = best ; i < nbins ; i ++ ) { min = Math . min ( min , idxs [ i ] ) ; max = Math . max ( max , idxs [ i ] ) ; } bs = new IcedBitSet ( ( ( max - min ) + 1 ) , min ) ; for ( int i = best ; i < nbins ; i ++ ) bs . set ( idxs [ i ] ) ; <START_BUG> equal = ( ( byte ) ( ( ( bs . max ( ) ) < 32 ) ? 2 : 3 ) ) ; <END_BUG> } if ( best == 0 ) return null ; double se = ( sums1 [ 0 ] ) * ( 1 - ( ( sums1 [ 0 ] ) // ( ns1 [ 0 ] ) ) ) ; if ( se <= ( best_se0 + best_se1 ) ) return null ; long n0 = ( equal != 1 ) ? ns0 [ best ] : ( ns0 [ best ] ) + ( ns1 [ ( best + 1 ) ] ) ; long n1 = ( equal != 1 ) ? ns1 [ best ] : bins [ best ] ; double p0 = ( equal != 1 ) ? sums0 [ best ] : ( sums0 [ best ] ) + ( sums1 [ ( best + 1 ) ] ) ; double p1 = ( equal != 1 ) ? sums1 [ best ] : sums [ best ] ; return new DTree . Split ( col , best , bs , equal , se , best_se0 , best_se1 , n0 , n1 , ( p0 // n0 ) , ( p1 // n1 ) ) ; } @ Override public long byteSize0 ( ) { } }

Fix:
equal = ( ( byte ) ( ( ( bs . max ( ) ) <= 32 ) ? 2 : 3 ) ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient @ Ignore ( "[AS7-814]<seq2seq4repair_space>Fix<seq2seq4repair_space>or<seq2seq4repair_space>remove<seq2seq4repair_space>ignored<seq2seq4repair_space>smoke<seq2seq4repair_space>tests" ) public class WebAppTestCase { @ Deployment ( testable = false ) public static Archive < ? > getDeployment ( ) { } @ Test public void testWebApp ( ) throws Exception { } private void connect ( String urlPart ) throws Exception { } private static < T > T lookup ( String name , Class < T > expected ) throws Exception { ModelControllerClient client = Factory . create ( InetAddress . getByName ( "127.0.0.1" ) , 9999 , getCallbackHandler ( ) ) ; <START_BUG> MBeanServerConnection mbeanServer = JMXConnectorFactory . connect ( new JMXServiceURL ( "service:jmx:remotng-jmx:////127.0.0.1:9999" ) ) . getMBeanServerConnection ( ) ; <END_BUG> ObjectName objectName = new ObjectName ( "jboss:name=test,type=fakejndi" ) ; Object o = mbeanServer . invoke ( objectName , "lookup" , new Object [ ] { name } , new String [ ] { "java.lang.String" } ) ; return expected . cast ( o ) ; } private static void usage ( Throwable t ) throws Exception { } }

Fix:
MBeanServerConnection mbeanServer = JMXConnectorFactory . connect ( new JMXServiceURL ( "service:jmx:remoting-jmx:////127.0.0.1:9999" ) ) . getMBeanServerConnection ( ) ;
Buggy code:
public class InterTypeMethodDeclaration extends InterTypeDeclaration { public InterTypeMethodDeclaration ( CompilationResult result , TypeReference onType ) { } public void parseStatements ( Parser parser , CompilationUnitDeclaration unit ) { } public void analyseCode ( ClassScope currentScope , InitializationFlowContext flowContext , FlowInfo flowInfo ) { } public void resolve ( ClassScope upperScope ) { } public void resolveStatements ( ) { } public EclipseTypeMunger build ( ClassScope classScope ) { EclipseFactory world = EclipseFactory . fromScopeLookupEnvironment ( classScope ) ; resolveOnType ( classScope ) ; if ( ignoreFurtherInvestigation ) return null ; binding = classScope . referenceContext . binding . resolveTypesFor ( binding ) ; if ( ( binding ) == null ) { <START_BUG> throw new AbortCompilation ( ) ; <END_BUG> } ResolvedMember sig = new ResolvedMember ( Member . METHOD , EclipseFactory . fromBinding ( onTypeBinding ) , declaredModifiers , EclipseFactory . fromBinding ( returnType ) , new String ( declaredSelector ) , EclipseFactory . fromBindings ( parameters ) , world . fromEclipse ( thrownExceptions ) ) ; NewMethodTypeMunger myMunger = new NewMethodTypeMunger ( sig , null ) ; setMunger ( myMunger ) ; ResolvedTypeX aspectType = world . fromEclipse ( classScope . referenceContext . binding ) ; ResolvedMember me = myMunger . getDispatchMethod ( aspectType ) ; this . selector = binding . selector = me . getName ( ) . toCharArray ( ) ; return new EclipseTypeMunger ( world , myMunger , aspectType , this ) ; } private AjAttribute makeAttribute ( ) { } public void generateCode ( ClassScope classScope , ClassFile classFile ) { } public void generateDispatchMethod ( ClassScope classScope , ClassFile classFile ) { } protected Kind getShadowKindForBody ( ) { } }

Fix:
throw new org . eclipse . jdt . internal . compiler . problem . AbortCompilation ( compilationResult ) ;
Buggy code:
public class RemoveColumnFamilyWithFlush2Test extends CleanupHelper { @ Test public void testRemoveColumnFamilyWithFlush2 ( ) throws IOException , InterruptedException , ExecutionException { Table table = Table . open ( "Keyspace1" ) ; ColumnFamilyStore store = table . getColumnFamilyStore ( "Standard1" ) ; RowMutation rm ; DecoratedKey dk = Util . dk ( "key1" ) ; rm = new RowMutation ( "Keyspace1" , dk . key ) ; rm . add ( new QueryPath ( "Standard1" , null , "Column1" . getBytes ( ) ) , "asdf" . getBytes ( ) , new TimestampClock ( 0 ) ) ; rm . apply ( ) ; rm = new RowMutation ( "Keyspace1" , dk . key ) ; rm . delete ( new QueryPath ( "Standard1" ) , new TimestampClock ( 1 ) ) ; rm . apply ( ) ; store . forceBlockingFlush ( ) ; ColumnFamily retrieved = store . getColumnFamily ( QueryFilter . getIdentityFilter ( dk , new QueryPath ( "Standard1" , null , "Column1" . getBytes ( ) ) ) ) ; assert retrieved . isMarkedForDelete ( ) ; Assert . assertNull ( retrieved . getColumn ( "Column1" . getBytes ( ) ) ) ; <START_BUG> Assert . assertNull ( ColumnFamilyStore . removeDeleted ( retrieved , Integer . MAX_VALUE ) ) ; <END_BUG> } }

Fix:
Assert . assertNull ( Util . cloneAndRemoveDeleted ( retrieved , Integer . MAX_VALUE ) ) ;
Buggy code:
@ Singleton public class POASubmissionsPanel extends JPanel implements POASubmissionsView { private final JList < String > submissions ; public POASubmissionsPanel ( ) { } @ Override public void setPOASubmissionsDescriptions ( List < String > strings ) { } @ Override public void addSubmissionSelectedListener ( POASubmissionSelectedListener listener ) { submissions . addListSelectionListener ( ( e ) -> { if ( isFinalEventInUserSelection ( e ) ) { <START_BUG> listener . submissionSelected ( e . getFirstIndex ( ) ) ; <END_BUG> } } ) ; } private boolean isFinalEventInUserSelection ( ListSelectionEvent e ) { } }

Fix:
listener . submissionSelected ( submissions . getSelectedIndex ( ) ) ;
Buggy code:
public class TestPredicatedMap < K , V > extends AbstractTestIterableMap < K , V > { protected static final Predicate < Object > truePredicate = org . apache . commons . collections . functors . TruePredicate . < Object > truePredicate ( ) ; protected static final Predicate < Object > testPredicate = new Predicate < Object > ( ) { public boolean evaluate ( Object o ) { } } ; public TestPredicatedMap ( String testName ) { } protected IterableMap < K , V > decorateMap ( Map < K , V > map , Predicate < ? super K > keyPredicate , Predicate < ? super V > valuePredicate ) { <START_BUG> return PredicatedMap . decorate ( map , keyPredicate , valuePredicate ) ; <END_BUG> } @ Override public IterableMap < K , V > makeObject ( ) { } public IterableMap < K , V > makeTestMap ( ) { } @ SuppressWarnings ( "unchecked" ) public void testEntrySet ( ) { } @ SuppressWarnings ( "unchecked" ) public void testPut ( ) { } @ Override public String getCompatibilityVersion ( ) { } }

Fix:
return PredicatedMap . predicatedMap ( map , keyPredicate , valuePredicate ) ;
Buggy code:
@ SuppressWarnings ( "nls" ) public class JsonFileExportImportFactory implements IExportImportFactory { @ Override public IExportWriter createWriter ( ExportImportConfigParser config , IApimanLogger logger ) { } @ Override public IImportReader createReader ( ExportImportConfigParser config , IApimanLogger logger ) { if ( ( config . getJsonFile ( ) ) == null ) throw new IllegalArgumentException ( "Must<seq2seq4repair_space>provide<seq2seq4repair_space>path<seq2seq4repair_space>to<seq2seq4repair_space>JSON<seq2seq4repair_space>file<seq2seq4repair_space>to<seq2seq4repair_space>read" ) ; File inFile = new File ( config . getJsonFile ( ) ) ; if ( ! ( inFile . exists ( ) ) ) throw new IllegalArgumentException ( ( "JSON<seq2seq4repair_space>file<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist<seq2seq4repair_space>" + inFile ) ) ; try { InputStream is = new FileInputStream ( inFile ) ; <START_BUG> return new JsonImportReader ( is ) ; <END_BUG> } catch ( IOException e ) { throw new RuntimeException ( e ) ; } } }

Fix:
return new JsonImportReader ( logger , is ) ;
Buggy code:
public class ForumPlayerListener implements Listener { public static ForumWhitelist plugin ; public ForumPlayerListener ( ForumWhitelist instance ) { } @ EventHandler ( priority = EventPriority . NORMAL ) public void onPlayerLogin ( PlayerLoginEvent event ) { } public boolean playerRegistered ( Player p ) { try { mysqlcon . open ( ) ; String testquery = ( ( ( "SELECT<seq2seq4repair_space>`real_name`<seq2seq4repair_space>FROM<seq2seq4repair_space>`" + ( config . getString ( "mysql.table" ) ) ) + "`<seq2seq4repair_space>WHERE<seq2seq4repair_space>`real_name`<seq2seq4repair_space>LIKE<seq2seq4repair_space>'" ) + ( p . getName ( ) ) ) + "'<seq2seq4repair_space>AND<seq2seq4repair_space>`id_group`<seq2seq4repair_space><><seq2seq4repair_space>'9'" ; logger . log ( Level . INFO , testquery ) ; ResultSet rs = mysqlcon . query ( ( ( ( ( "SELECT<seq2seq4repair_space>`real_name`<seq2seq4repair_space>FROM<seq2seq4repair_space>`" + ( config . getString ( "mysql.table" ) ) ) + "`<seq2seq4repair_space>WHERE<seq2seq4repair_space>`real_name`<seq2seq4repair_space>LIKE<seq2seq4repair_space>'" ) + ( p . getName ( ) ) ) + "'<seq2seq4repair_space>AND<seq2seq4repair_space>`id_group`<seq2seq4repair_space><><seq2seq4repair_space>'9'" ) ) ; boolean reg = false ; rs . next ( ) ; logger . log ( Level . INFO , ( ( ( rs . getString ( "real_name" ) . toLowerCase ( ) ) + "<>" ) + ( p . getName ( ) . toLowerCase ( ) ) ) ) ; <START_BUG> if ( ( rs . getString ( "real_name" ) . toLowerCase ( ) ) == ( p . getName ( ) . toLowerCase ( ) ) ) { <END_BUG> reg = true ; } return reg ; } catch ( SQLException ex ) { logger . log ( Level . INFO , ( ( ex . getCause ( ) ) + ( ex . getMessage ( ) ) ) ) ; return false ; } } No newline ; at end ; of file ; }

Fix:
if ( rs . getString ( "real_name" ) . equalsIgnoreCase ( p . getName ( ) ) ) {
Buggy code:
public final class Utils { private static Gson gson = null ; public static Gson getGson ( ) { } private static Gson getNewGson ( ) { } public static List < String > extractName ( String twitterName , List < String > splitters ) { } public static List < String > extractName ( String twitterName ) { } public static void main ( String [ ] args ) throws IOException , URISyntaxException { <START_BUG> String [ ] names = new String [ ] { "MrXXX" , "MrsXxx" , "Mrabc" , "Mrsss" , "mrXxx" , "mrsXxx" , "msXxx" , "mssss" , "MSAbc" , "MSAC" , "MsAbc" , "mrsss" , "mrasdf" , "Thomas" , "thomas" , "ThomasKober" , "Thomas<seq2seq4repair_space>Kober" , "THOmasKober" , "THOMASKOBER" , "ThomasKOBER" , "THOMASkober" , "THOMASKober" , "MrThomasKober" , "MrKober" } ; <END_BUG> for ( String name : names ) { System . out . println ( ( "NAME=" + name ) ) ; GenderDetector gd = new GenderDetector ( CountryCode . UK , true ) ; System . out . println ( ( "\tGENDER<seq2seq4repair_space>GUESS:<seq2seq4repair_space>" + ( gd . extractAndGuessString ( name ) ) ) ) ; System . out . println ( "------" ) ; } } }

Fix:
String [ ] names = new String [ ] { "Joanna" , "James" , "Mary" , "Mike" , "Julia" , "John" , "Phoebe" , "Peter" , "Sharon" , "Steve" , "MrXXX" , "MrsXxx" , "Mrabc" , "Mrsss" , "mrXxx" , "mrsXxx" , "msXxx" , "mssss" , "MSAbc" , "MSAC" , "MsAbc" , "mrsss" , "mrasdf" , "Thomas" , "thomas" , "ThomasKober" , "Thomas<seq2seq4repair_space>Kober" , "THOmasKober" , "THOMASKOBER" , "ThomasKOBER" , "THOMASkober" , "THOMASKober" , "MrThomasKober" , "MrKober" } ;
Buggy code:
public final class StandardPostingsWriter extends PostingsWriterBase { static final String CODEC = "StandardPostingsWriterImpl" ; static final int VERSION_START = 0 ; static final int VERSION_CURRENT = StandardPostingsWriter . VERSION_START ; IndexOutput freqOut ; IndexOutput proxOut ; final DefaultSkipListWriter skipListWriter ; static final int DEFAULT_SKIP_INTERVAL = 16 ; final int skipInterval ; final int skipMinimum ; final int maxSkipLevels = 10 ; final int totalNumDocs ; IndexOutput termsOut ; boolean omitTermFreqAndPositions ; boolean storePayloads ; long lastFreqStart ; long freqStart ; long lastProxStart ; long proxStart ; FieldInfo fieldInfo ; int lastPayloadLength ; int lastPosition ; private int pendingCount ; private RAMOutputStream bytesWriter = new RAMOutputStream ( ) ; public StandardPostingsWriter ( SegmentWriteState state ) throws IOException { } public StandardPostingsWriter ( SegmentWriteState state , int skipInterval ) throws IOException { } @ Override public void start ( IndexOutput termsOut ) throws IOException { } @ Override public void startTerm ( ) { } @ Override public void setField ( FieldInfo fieldInfo ) { } int lastDocID ; int df ; @ Override public void startDoc ( int docID , int termDocFreq ) throws IOException { } @ Override public void addPosition ( int position , BytesRef payload ) throws IOException { assert ! ( omitTermFreqAndPositions ) : "omitTermFreqAndPositions<seq2seq4repair_space>is<seq2seq4repair_space>true" ; assert ( proxOut ) != null ; final int delta = position - ( lastPosition ) ; <START_BUG> assert ( delta > 0 ) || ( position == 0 ) : ( ( "position=" + position ) + "<seq2seq4repair_space>lastPosition=" ) + ( lastPosition ) ; <END_BUG> lastPosition = position ; if ( storePayloads ) { final int payloadLength = ( payload == null ) ? 0 : payload . length ; if ( payloadLength != ( lastPayloadLength ) ) { lastPayloadLength = payloadLength ; proxOut . writeVInt ( ( ( delta << 1 ) | 1 ) ) ; proxOut . writeVInt ( payloadLength ) ; } else { proxOut . writeVInt ( ( delta << 1 ) ) ; } if ( payloadLength > 0 ) { proxOut . writeBytes ( payload . bytes , payload . offset , payloadLength ) ; } } else { proxOut . writeVInt ( delta ) ; } } @ Override public void finishDoc ( ) { } @ Override public void finishTerm ( TermStats stats ) throws IOException { } @ Override public void flushTermsBlock ( ) throws IOException { } @ Override public void close ( ) throws IOException { } }

Fix:
assert delta >= 0 : ( ( "position=" + position ) + "<seq2seq4repair_space>lastPosition=" ) + ( lastPosition ) ;
Buggy code:
public class SolverWindow { @ SuppressWarnings ( "resource" ) public static int [ ] [ ] gridReader ( String fileName ) throws FileNotFoundException { } @ SuppressWarnings ( "resource" ) public static ArrayList < String > stringArrayReader ( String fileName ) throws FileNotFoundException { } public static void main ( String [ ] arg ) throws FileNotFoundException { <START_BUG> System . out . println ( LevelOneToTwentyFive . longestCollatzSequence ( 1000000 ) ) ; <END_BUG> } No newline ; at end ; of file ; }

Fix:
System . out . println ( LevelOneToTwentyFive . powerDigitSum ( 1000 ) ) ;