nus-yam/ex-repair huggingface dataset:
Program: 5298
Project: 5298
Buggy source:
/** 
 * Function to create the child element <i>link</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>link</i>.
 */
protected El createLink(Element element) throws XMLException {
  return (El)new NCLLink(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>link</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>link</i>.
 */
protected El createLink() throws XMLException {
  return (El)new NCLLink();
}
Program: 5300
Project: 5300
Buggy source:
/** 
 * Function to create the child element <i>media</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>media</i>.
 */
protected En createMedia(Element element) throws XMLException {
  return (En)new NCLMedia(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>media</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>media</i>.
 */
protected En createMedia() throws XMLException {
  return (En)new NCLMedia();
}
Program: 5301
Project: 5301
Buggy source:
/** 
 * Function to create the child element <i>switch</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>switch</i>.
 */
protected En createSwitch(Element element) throws XMLException {
  return (En)new NCLSwitch(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>switch</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>switch</i>.
 */
protected En createSwitch() throws XMLException {
  return (En)new NCLSwitch();
}
Program: 5302
Project: 5302
Buggy source:
/** 
 * Function to create the child element <i>metadata</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>metadata</i>.
 */
protected Emt createMetadata(Element element) throws XMLException {
  return (Emt)new NCLMetadata(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>metadata</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>metadata</i>.
 */
protected Emt createMetadata() throws XMLException {
  return (Emt)new NCLMetadata();
}
Program: 5303
Project: 5303
Buggy source:
public NCLBody(Element element) throws XMLException {
  super();
  load(element);
}

Fixed version (ground truth):
public NCLBody() throws XMLException {
  super();
}
Program: 5304
Project: 5304
Buggy source:
/** 
 * Function to create the child element <i>meta</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>meta</i>.
 */
protected Em createMeta(Element element) throws XMLException {
  return (Em)new NCLMeta(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>meta</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>meta</i>.
 */
protected Em createMeta() throws XMLException {
  return (Em)new NCLMeta();
}
Program: 5305
Project: 5305
Buggy source:
/** 
 * Function to create the child element <i>property</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>property</i>.
 */
protected Epp createProperty(Element element) throws XMLException {
  return (Epp)new NCLProperty(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>property</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>property</i>.
 */
protected Epp createProperty() throws XMLException {
  return (Epp)new NCLProperty();
}
Program: 5306
Project: 5306
Buggy source:
/** 
 * Loads the objects structure representing an NCL document from an XML file.
 * @param xmlFile file with the NCL document content.
 * @throws NCLParsingException if an error occur while parsing the document.
 */
public void loadXML(File xmlFile) throws NCLParsingException {
  try {
    DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
    DocumentBuilder parser=factory.newDocumentBuilder();
    Document doc=parser.parse(xmlFile);
    load(doc.getDocumentElement());
  }
 catch (  Exception e) {
    throw new NCLParsingException(e.fillInStackTrace());
  }
}

Fixed version (ground truth):
/** 
 * Loads the objects structure representing an NCL document from an XML file.
 * @param xmlFile file with the NCL document content.
 * @throws NCLParsingException if an error occur while parsing the document.
 */
public void loadXML(File xmlFile) throws XMLException {
  try {
    DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
    DocumentBuilder parser=factory.newDocumentBuilder();
    Document doc=parser.parse(xmlFile);
    load(doc.getDocumentElement());
  }
 catch (  SAXException e) {
    throw new NCLParsingException(e.fillInStackTrace());
  }
catch (  ParserConfigurationException e) {
    throw new NCLParsingException(e.fillInStackTrace());
  }
catch (  IOException e) {
    throw new NCLParsingException(e.fillInStackTrace());
  }
}
Program: 5307
Project: 5307
Buggy source:
public void load(Element element) throws XMLException {
  String att_name, att_var, ch_name;
  Element el;
  att_name=NCLElementAttributes.ID.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setId(att_var);
  att_name=NCLElementAttributes.TITLE.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setTitle(att_var);
  att_name=NCLElementAttributes.XMLNS.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setXmlns(NCLNamespace.getEnumType(att_var));
  ch_name=NCLElementAttributes.HEAD.toString();
  el=(Element)element.getElementsByTagName(ch_name).item(0);
  setHead(createHead(el));
  ch_name=NCLElementAttributes.BODY.toString();
  el=(Element)element.getElementsByTagName(ch_name).item(0);
  setBody(createBody(el));
  NCLReferenceManager.getInstance().fixReferences();
}

Fixed version (ground truth):
public void load(Element element) throws XMLException {
  String att_name, att_var, ch_name;
  Element el;
  att_name=NCLElementAttributes.ID.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setId(att_var);
  att_name=NCLElementAttributes.TITLE.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setTitle(att_var);
  att_name=NCLElementAttributes.XMLNS.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setXmlns(NCLNamespace.getEnumType(att_var));
  ch_name=NCLElementAttributes.HEAD.toString();
  el=(Element)element.getElementsByTagName(ch_name).item(0);
  if (el != null) {
    Eh inst=createHead();
    setHead(inst);
    inst.load(el);
  }
  ch_name=NCLElementAttributes.BODY.toString();
  el=(Element)element.getElementsByTagName(ch_name).item(0);
  if (el != null) {
    Eb inst=createBody();
    setBody(inst);
    inst.load(el);
  }
  NCLReferenceManager.getInstance().fixReferences();
}
Program: 5308
Project: 5308
Buggy source:
/** 
 * Function to create the child element <i>body</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>body</i>.
 */
protected Eb createBody(Element element) throws XMLException {
  return (Eb)new NCLBody(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>body</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>body</i>.
 */
protected Eb createBody() throws XMLException {
  return (Eb)new NCLBody();
}
Program: 5309
Project: 5309
Buggy source:
/** 
 * Function to create the child element <i>head</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>head</i>.
 */
protected Eh createHead(Element element) throws XMLException {
  return (Eh)new NCLHead(element);
}

Fixed version (ground truth):
/** 
 * Function to create the child element <i>head</i>. This function must be overwritten in classes that extends this one.
 * @return element representing the child <i>head</i>.
 */
protected Eh createHead() throws XMLException {
  return (Eh)new NCLHead();
}
Program: 5310
Project: 5310
Buggy source:
public void waitReference(PostReferenceElement element){
  for (  PostReferenceElement ref : references) {
    if (ref.getId().equals(element.getId())) {
      references.remove(ref);
      break;
    }
  }
  references.add(element);
}

Fixed version (ground truth):
public void waitReference(PostReferenceElement element){
  references.add(element);
}
Program: 5312
Project: 5312
Buggy source:
public El findDescriptor(Integer focusIndex) throws XMLException {
  if (this.focusIndex == focusIndex)   return (El)this;
 else   return null;
}

Fixed version (ground truth):
public El findDescriptor(Integer focusIndex) throws XMLException {
  if (this.focusIndex != null && this.focusIndex.intValue() == focusIndex.intValue())   return (El)this;
 else   return null;
}
Program: 5313
Project: 5313
Buggy source:
public boolean compare(T other){
  boolean comp=true;
  if (getXconnector() != null && other.getXconnector() != null)   comp&=getXconnector().compare(other.getXconnector());
  comp&=linkParams.size() == other.getLinkParams().size();
  comp&=binds.size() == other.getBinds().size();
  Iterator it=other.getLinkParams().iterator();
  for (  Ep param : linkParams) {
    Ep other_param=(Ep)it.next();
    comp&=param.compare(other_param);
    if (comp)     break;
  }
  it=other.getBinds().iterator();
  for (  Eb bind : binds) {
    if (!it.hasNext())     continue;
    Eb other_bind=(Eb)it.next();
    comp=bind.compare(other_bind);
    if (comp)     break;
  }
  return comp;
}

Fixed version (ground truth):
public boolean compare(T other){
  boolean comp=true;
  if (getXconnector() != null && other.getXconnector() != null)   comp&=getXconnector().compare(other.getXconnector());
  comp&=linkParams.size() == other.getLinkParams().size();
  comp&=binds.size() == other.getBinds().size();
  Iterator it=other.getLinkParams().iterator();
  for (  Ep param : linkParams) {
    Ep other_param=(Ep)it.next();
    comp&=param.compare(other_param);
    if (comp)     break;
  }
  it=other.getBinds().iterator();
  for (  Eb bind : binds) {
    if (!it.hasNext())     continue;
    Eb other_bind=(Eb)it.next();
    comp&=bind.compare(other_bind);
    if (comp)     break;
  }
  return comp;
}
Program: 5315
Project: 5315
Buggy source:
public Er findRole(String name){
  Er result;
  for (  Ec condition : conditions) {
    result=(Er)condition.findRole(name);
    if (result != null)     return result;
  }
  return null;
}

Fixed version (ground truth):
public Er findRole(String name){
  Er result;
  for (  Ec condition : conditions) {
    result=(Er)condition.findRole(name);
    if (result != null)     return result;
  }
  for (  Es statement : statements) {
    result=(Er)statement.findRole(name);
    if (result != null)     return result;
  }
  return null;
}
Program: 5316
Project: 5316
Buggy source:
public void load(Element element) throws NCLParsingException, XMLException {
  String att_name, att_var;
  att_name=NCLElementAttributes.VALUEASSESSMENT.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setValue(new AssValueParamType(att_var,this));
 else   throw new NCLParsingException("String_Node_Str" + att_name + "String_Node_Str");
}

Fixed version (ground truth):
public void load(Element element) throws NCLParsingException, XMLException {
  String att_name, att_var;
  att_name=NCLElementAttributes.VALUE.toString();
  if (!(att_var=element.getAttribute(att_name)).isEmpty())   setValue(new AssValueParamType(att_var,this));
 else   throw new NCLParsingException("String_Node_Str" + att_name + "String_Node_Str");
}
Program: 5317
Project: 5317
Buggy source:
@Override public void setValue(AssValueParamType<Ep,T> value){
  AssValueParamType aux=this.value;
  super.setValue(value);
  impl.notifyAltered(NCLElementAttributes.VALUEASSESSMENT,aux,value);
}

Fixed version (ground truth):
@Override public void setValue(AssValueParamType<Ep,T> value){
  AssValueParamType aux=this.value;
  super.setValue(value);
  impl.notifyAltered(NCLElementAttributes.VALUE,aux,value);
}
Program: 5318
Project: 5318
Buggy source:
@Override protected Double createValue(String value) throws XMLException {
  return new Double(value);
}

Fixed version (ground truth):
@Override protected Double createValue(String value) throws XMLException {
  int index=value.indexOf("String_Node_Str");
  if (index > 0)   value=value.substring(0,index);
  return new Double(value);
}
Program: 5319
Project: 5319
Buggy source:
public boolean compare(T other){
  boolean comp=true;
  String this_stat, other_stat;
  NCLAssessmentStatementPrototype other_asses;
  if (!(other instanceof NCLAssessmentStatementPrototype))   return false;
  other_asses=(NCLAssessmentStatementPrototype)other;
  if (getComparator() == null)   this_stat="String_Node_Str";
 else   this_stat=getComparator().toString();
  if (other_asses.getComparator() == null)   other_stat="String_Node_Str";
 else   other_stat=other_asses.getComparator().toString();
  comp&=this_stat.equals(other_stat);
  comp&=attributeAssessments.size() == other_asses.getAttributeAssessments().size();
  Iterator it=other_asses.getAttributeAssessments().iterator();
  for (  NCLAttributeAssessmentPrototype att : attributeAssessments) {
    NCLAttributeAssessmentPrototype other_att=(NCLAttributeAssessmentPrototype)it.next();
    comp&=att.compare(other_att);
    if (comp)     break;
  }
  if (getValueAssessment() != null && other_asses.getValueAssessment() != null)   comp&=getValueAssessment().compare(other_asses.getValueAssessment());
  return comp;
}

Fixed version (ground truth):
public boolean compare(Es other){
  boolean comp=true;
  String this_stat, other_stat;
  NCLAssessmentStatementPrototype other_asses;
  if (!(other instanceof NCLAssessmentStatementPrototype))   return false;
  other_asses=(NCLAssessmentStatementPrototype)other;
  if (getComparator() == null)   this_stat="String_Node_Str";
 else   this_stat=getComparator().toString();
  if (other_asses.getComparator() == null)   other_stat="String_Node_Str";
 else   other_stat=other_asses.getComparator().toString();
  comp&=this_stat.equals(other_stat);
  comp&=attributeAssessments.size() == other_asses.getAttributeAssessments().size();
  Iterator it=other_asses.getAttributeAssessments().iterator();
  for (  NCLAttributeAssessmentPrototype att : attributeAssessments) {
    if (!it.hasNext())     continue;
    NCLAttributeAssessmentPrototype other_att=(NCLAttributeAssessmentPrototype)it.next();
    comp&=att.compare(other_att);
    if (comp)     break;
  }
  if (getValueAssessment() != null && other_asses.getValueAssessment() != null)   comp&=getValueAssessment().compare(other_asses.getValueAssessment());
  return comp;
}
Program: 5320
Project: 5320
Buggy source:
public boolean compare(Ea other){
  boolean comp=true;
  String this_act, other_act;
  NCLCompoundActionPrototype other_comp;
  if (!(other instanceof NCLCompoundActionPrototype))   return false;
  other_comp=(NCLCompoundActionPrototype)other;
  if (getOperator() == null)   this_act="String_Node_Str";
 else   this_act=getOperator().toString();
  if (other_comp.getOperator() == null)   other_act="String_Node_Str";
 else   other_act=other_comp.getOperator().toString();
  comp=this_act.equals(other_act);
  if (getDelay() == null)   this_act="String_Node_Str";
 else   this_act=getDelay().parse();
  if (other_comp.getDelay() == null)   other_act="String_Node_Str";
 else   other_act=other_comp.getDelay().parse();
  comp&=this_act.equals(other_act);
  comp&=actions.size() == other_comp.getActions().size();
  Iterator it=other_comp.getActions().iterator();
  for (  NCLAction a : actions) {
    NCLAction other_a=(NCLAction)it.next();
    comp&=a.compare(other_a);
    if (comp)     break;
  }
  return comp;
}

Fixed version (ground truth):
public boolean compare(Ea other){
  boolean comp=true;
  String this_act, other_act;
  NCLCompoundActionPrototype other_comp;
  if (!(other instanceof NCLCompoundActionPrototype))   return false;
  other_comp=(NCLCompoundActionPrototype)other;
  if (getOperator() == null)   this_act="String_Node_Str";
 else   this_act=getOperator().toString();
  if (other_comp.getOperator() == null)   other_act="String_Node_Str";
 else   other_act=other_comp.getOperator().toString();
  comp=this_act.equals(other_act);
  if (getDelay() == null)   this_act="String_Node_Str";
 else   this_act=getDelay().parse();
  if (other_comp.getDelay() == null)   other_act="String_Node_Str";
 else   other_act=other_comp.getDelay().parse();
  comp&=this_act.equals(other_act);
  comp&=actions.size() == other_comp.getActions().size();
  Iterator it=other_comp.getActions().iterator();
  for (  NCLAction a : actions) {
    if (!it.hasNext())     continue;
    NCLAction other_a=(NCLAction)it.next();
    comp&=a.compare(other_a);
    if (comp)     break;
  }
  return comp;
}
Program: 5321
Project: 5321
Buggy source:
public boolean compare(Ec other){
  boolean comp=true;
  String this_cond, other_cond;
  NCLCompoundConditionPrototype other_comp;
  if (!(other instanceof NCLCompoundConditionPrototype))   return false;
  other_comp=(NCLCompoundConditionPrototype)other;
  if (getOperator() == null)   this_cond="String_Node_Str";
 else   this_cond=getOperator().toString();
  if (other_comp.getOperator() == null)   other_cond="String_Node_Str";
 else   other_cond=other_comp.getOperator().toString();
  comp&=this_cond.equals(other_cond);
  if (getDelay() == null)   this_cond="String_Node_Str";
 else   this_cond=getDelay().parse();
  if (other_comp.getDelay() == null)   other_cond="String_Node_Str";
 else   other_cond=other_comp.getDelay().parse();
  comp&=this_cond.equals(other_cond);
  comp&=conditions.size() == other_comp.getConditions().size();
  Iterator it=other_comp.getConditions().iterator();
  for (  NCLCondition c : conditions) {
    NCLCondition other_c=(NCLCondition)it.next();
    comp&=c.compare(other_c);
    if (comp)     break;
  }
  comp&=statements.size() == other_comp.getStatements().size();
  it=other_comp.getStatements().iterator();
  for (  NCLStatement st : statements) {
    NCLStatement other_st=(NCLStatement)it.next();
    comp&=st.compare(other_st);
    if (comp)     break;
  }
  return comp;
}

Fixed version (ground truth):
public boolean compare(Ec other){
  boolean comp=true;
  String this_cond, other_cond;
  NCLCompoundConditionPrototype other_comp;
  if (!(other instanceof NCLCompoundConditionPrototype))   return false;
  other_comp=(NCLCompoundConditionPrototype)other;
  if (getOperator() == null)   this_cond="String_Node_Str";
 else   this_cond=getOperator().toString();
  if (other_comp.getOperator() == null)   other_cond="String_Node_Str";
 else   other_cond=other_comp.getOperator().toString();
  comp&=this_cond.equals(other_cond);
  if (getDelay() == null)   this_cond="String_Node_Str";
 else   this_cond=getDelay().parse();
  if (other_comp.getDelay() == null)   other_cond="String_Node_Str";
 else   other_cond=other_comp.getDelay().parse();
  comp&=this_cond.equals(other_cond);
  comp&=conditions.size() == other_comp.getConditions().size();
  Iterator it=other_comp.getConditions().iterator();
  for (  NCLCondition c : conditions) {
    if (!it.hasNext())     continue;
    NCLCondition other_c=(NCLCondition)it.next();
    comp&=c.compare(other_c);
    if (comp)     break;
  }
  comp&=statements.size() == other_comp.getStatements().size();
  it=other_comp.getStatements().iterator();
  for (  NCLStatement st : statements) {
    if (!it.hasNext())     continue;
    NCLStatement other_st=(NCLStatement)it.next();
    comp&=st.compare(other_st);
    if (comp)     break;
  }
  return comp;
}
Program: 5322
Project: 5322
Buggy source:
public boolean compare(Es other){
  boolean comp=true;
  String this_stat, other_stat;
  NCLCompoundStatementPrototype other_comp;
  if (!(other instanceof NCLCompoundStatementPrototype))   return false;
  other_comp=(NCLCompoundStatementPrototype)other;
  if (getOperator() == null)   this_stat="String_Node_Str";
 else   this_stat=getOperator().toString();
  if (other_comp.getOperator() == null)   other_stat="String_Node_Str";
 else   other_stat=other_comp.getOperator().toString();
  comp&=this_stat.equals(other_stat);
  if (getIsNegated() == null)   this_stat="String_Node_Str";
 else   this_stat=getIsNegated().toString();
  if (other_comp.getIsNegated() == null)   other_stat="String_Node_Str";
 else   other_stat=other_comp.getIsNegated().toString();
  comp&=this_stat.equals(other_stat);
  comp&=statements.size() == other_comp.getStatements().size();
  Iterator it=other_comp.getStatements().iterator();
  for (  NCLStatement st : statements) {
    NCLStatement other_st=(NCLStatement)it.next();
    comp&=st.compare(other_st);
    if (comp)     break;
  }
  return comp;
}

Fixed version (ground truth):
public boolean compare(Es other){
  boolean comp=true;
  String this_stat, other_stat;
  NCLCompoundStatementPrototype other_comp;
  if (!(other instanceof NCLCompoundStatementPrototype))   return false;
  other_comp=(NCLCompoundStatementPrototype)other;
  if (getOperator() == null)   this_stat="String_Node_Str";
 else   this_stat=getOperator().toString();
  if (other_comp.getOperator() == null)   other_stat="String_Node_Str";
 else   other_stat=other_comp.getOperator().toString();
  comp&=this_stat.equals(other_stat);
  if (getIsNegated() == null)   this_stat="String_Node_Str";
 else   this_stat=getIsNegated().toString();
  if (other_comp.getIsNegated() == null)   other_stat="String_Node_Str";
 else   other_stat=other_comp.getIsNegated().toString();
  comp&=this_stat.equals(other_stat);
  comp&=statements.size() == other_comp.getStatements().size();
  Iterator it=other_comp.getStatements().iterator();
  for (  NCLStatement st : statements) {
    if (!it.hasNext())     continue;
    NCLStatement other_st=(NCLStatement)it.next();
    comp&=st.compare(other_st);
    if (comp)     break;
  }
  return comp;
}
Program: 5323
Project: 5323
Buggy source:
public NCLBody() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLBody() throws XMLException {
  super();
}
Program: 5324
Project: 5324
Buggy source:
public NCLDoc() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLDoc() throws XMLException {
  super();
}
Program: 5325
Project: 5325
Buggy source:
public NCLHead() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLHead() throws XMLException {
  super();
}
Program: 5326
Project: 5326
Buggy source:
public NCLAssessmentStatement() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLAssessmentStatement() throws XMLException {
  super();
}
Program: 5327
Project: 5327
Buggy source:
public NCLAttributeAssessment() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLAttributeAssessment() throws XMLException {
  super();
}
Program: 5328
Project: 5328
Buggy source:
public NCLCausalConnector(String id) throws XMLException {
  super(id);
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLCausalConnector(String id) throws XMLException {
  super(id);
}
Program: 5329
Project: 5329
Buggy source:
public NCLCompoundAction() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLCompoundAction() throws XMLException {
  super();
}
Program: 5330
Project: 5330
Buggy source:
public NCLCompoundCondition() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLCompoundCondition() throws XMLException {
  super();
}
Program: 5331
Project: 5331
Buggy source:
public NCLCompoundStatement() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLCompoundStatement() throws XMLException {
  super();
}
Program: 5332
Project: 5332
Buggy source:
public NCLConnectorBase() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLConnectorBase() throws XMLException {
  super();
}
Program: 5333
Project: 5333
Buggy source:
public NCLConnectorParam(String name) throws XMLException {
  super(name);
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLConnectorParam(String name) throws XMLException {
  super(name);
}
Program: 5334
Project: 5334
Buggy source:
public NCLSimpleAction() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLSimpleAction() throws XMLException {
  super();
}
Program: 5335
Project: 5335
Buggy source:
public NCLSimpleCondition() throws XMLException {
  super();
  impl=(I)new NCLElementImpl(this);
}

Fixed version (ground truth):
public NCLSimpleCondition() throws XMLException {
  super();
}
Program: 5336
Project: 5336
Buggy source:
public NCLDocPrototype(){
  super();
}

Fixed version (ground truth):
public NCLDocPrototype() throws XMLException {
  super();
}
Program: 5337
Project: 5337
Buggy source:
/** 
 * Construtor do elemento <i>head</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLHeadPrototype(){
  super();
  regionBases=new IdentifiableElementList<Erb,T>();
  metas=new ElementList<Em,T>();
  metadatas=new ElementList<Emt,T>();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>head</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLHeadPrototype() throws XMLException {
  super();
  regionBases=new IdentifiableElementList<Erb,T>();
  metas=new ElementList<Em,T>();
  metadatas=new ElementList<Emt,T>();
}
Program: 5338
Project: 5338
Buggy source:
public NCLIdentifiableElementPrototype(){
  impl=(I)new NCLElementImpl<T,P>();
}

Fixed version (ground truth):
public NCLIdentifiableElementPrototype() throws XMLException {
  super();
}
Program: 5339
Project: 5339
Buggy source:
/** 
 * Construtor do elemento <i>assessmentStatement</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLAssessmentStatementPrototype(){
  super();
  attributeAssessments=new ElementList<Ea,T>();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>assessmentStatement</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLAssessmentStatementPrototype() throws XMLException {
  super();
  attributeAssessments=new ElementList<Ea,T>();
}
Program: 5340
Project: 5340
Buggy source:
/** 
 * Construtor do elemento <i>attributeStatement</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLAttributeAssessmentPrototype(){
  super();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>attributeStatement</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLAttributeAssessmentPrototype() throws XMLException {
  super();
}
Program: 5341
Project: 5341
Buggy source:
/** 
 * Construtor do elemento <i>compoundAction</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLCompoundActionPrototype(){
  super();
  actions=new ElementList<Ea,T>();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>compoundAction</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLCompoundActionPrototype() throws XMLException {
  super();
  actions=new ElementList<Ea,T>();
}
Program: 5342
Project: 5342
Buggy source:
/** 
 * Construtor do elemento <i>compoundCondition</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLCompoundConditionPrototype(){
  super();
  conditions=new ElementList<Ec,T>();
  statements=new ElementList<Es,T>();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>compoundCondition</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLCompoundConditionPrototype() throws XMLException {
  super();
  conditions=new ElementList<Ec,T>();
  statements=new ElementList<Es,T>();
}
Program: 5343
Project: 5343
Buggy source:
/** 
 * Construtor do elemento <i>compoundStatement</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLCompoundStatementPrototype(){
  super();
  statements=new ElementList<Es,T>();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>compoundStatement</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLCompoundStatementPrototype() throws XMLException {
  super();
  statements=new ElementList<Es,T>();
}
Program: 5344
Project: 5344
Buggy source:
/** 
 * Construtor do elemento <i>connectorBase</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLConnectorBasePrototype(){
  super();
  connectors=new IdentifiableElementList<Ec,T>();
  imports=new ElementList<Ei,T>();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>connectorBase</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLConnectorBasePrototype() throws XMLException {
  super();
  connectors=new IdentifiableElementList<Ec,T>();
  imports=new ElementList<Ei,T>();
}
Program: 5345
Project: 5345
Buggy source:
/** 
 * Construtor do elemento <i>simpleAction</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLSimpleActionPrototype(){
  super();
}

Fixed version (ground truth):
/** 
 * Construtor do elemento <i>simpleAction</i> da <i>Nested Context Language</i> (NCL).
 */
public NCLSimpleActionPrototype() throws XMLException {
  super();
}
Program: 5346
Project: 5346
Buggy source:
@Override protected String getParamValue(){
  if (getRelative())   return "String_Node_Str" + getValue().intValue() + "String_Node_Str";
 else   return "String_Node_Str" + getValue().intValue();
}

Fixed version (ground truth):
@Override protected String getParamValue(){
  if (getRelative() != null && !getRelative())   return "String_Node_Str" + getValue().intValue() + "String_Node_Str";
 else   return "String_Node_Str" + getValue().intValue();
}
Program: 5347
Project: 5347
Buggy source:
public int compareTo(L other){
  int comp=0;
  if (getXconnector() != null)   comp=getXconnector().compareTo(other.getXconnector());
 else   comp=1;
  if (comp == 0)   comp=linkParams.size() - ((Set)other.getLinkParams()).size();
  if (comp == 0)   comp=binds.size() - ((Set)other.getBinds()).size();
  if (comp == 0) {
    Iterator it=other.getLinkParams().iterator();
    for (    P param : linkParams) {
      P other_param=(P)it.next();
      comp=param.compareTo(other_param);
      if (comp != 0)       break;
    }
  }
  if (comp == 0) {
    Iterator it=other.getBinds().iterator();
    for (    B bind : binds) {
      B other_bind=(B)it.next();
      comp=bind.compareTo(other_bind);
      if (comp != 0)       break;
    }
  }
  return comp;
}

Fixed version (ground truth):
public int compareTo(L other){
  int comp=0;
  if (getXconnector() != null)   comp=getXconnector().compareTo(other.getXconnector());
 else   comp=1;
  if (comp == 0)   comp=linkParams.size() - ((Set)other.getLinkParams()).size();
  if (comp == 0)   comp=binds.size() - ((List)other.getBinds()).size();
  if (comp == 0) {
    Iterator it=other.getLinkParams().iterator();
    for (    P param : linkParams) {
      P other_param=(P)it.next();
      comp=param.compareTo(other_param);
      if (comp != 0)       break;
    }
  }
  if (comp == 0) {
    Iterator it=other.getBinds().iterator();
    for (    B bind : binds) {
      B other_bind=(B)it.next();
      comp=bind.compareTo(other_bind);
      if (comp != 0)       break;
    }
  }
  return comp;
}
Program: 5348
Project: 5348
Buggy source:
/** 
 * Adiciona um atributo de comparação a assertiva.
 * @param attribute elemento representando o atributo a ser adicionado.
 * @return verdadeiro se o atributo foi adicionado.
 * @throws java.lang.Exception se o número máximo de atributos for ultrapassado.
 * @see TreeSet#add
 */
public boolean addAttributeAssessment(A attribute) throws Exception {
  if (attributeAssessments.size() == 2)   throw new Exception("String_Node_Str");
  if (attributeAssessments.add(attribute)) {
    if (attribute != null)     attribute.setParent(this);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Adiciona um atributo de comparação a assertiva.
 * @param attribute elemento representando o atributo a ser adicionado.
 * @return verdadeiro se o atributo foi adicionado.
 * @throws java.lang.Exception se o número máximo de atributos for ultrapassado.
 * @see ArrayList#add
 */
public boolean addAttributeAssessment(A attribute) throws Exception {
  if (attributeAssessments.size() == 2)   throw new Exception("String_Node_Str");
  if (attribute != null && attributeAssessments.add(attribute)) {
    attribute.setParent(this);
    return true;
  }
  return false;
}
Program: 5349
Project: 5349
Buggy source:
public int compareTo(S other){
  int comp=0;
  String this_stat, other_stat;
  NCLAssessmentStatement other_asses;
  if (!(other instanceof NCLAssessmentStatement))   return -1;
  other_asses=(NCLAssessmentStatement)other;
  if (comp == 0) {
    if (getComparator() == null)     this_stat="String_Node_Str";
 else     this_stat=getComparator().toString();
    if (other_asses.getComparator() == null)     other_stat="String_Node_Str";
 else     other_stat=other_asses.getComparator().toString();
    comp=this_stat.compareTo(other_stat);
  }
  if (comp == 0)   comp=attributeAssessments.size() - ((Set)other_asses.getAttributeAssessments()).size();
  if (comp == 0) {
    Iterator it=other_asses.getAttributeAssessments().iterator();
    for (    NCLAttributeAssessment att : attributeAssessments) {
      NCLAttributeAssessment other_att=(NCLAttributeAssessment)it.next();
      comp=att.compareTo(other_att);
      if (comp != 0)       break;
    }
  }
  if (comp == 0) {
    if (getValueAssessment() == null && other_asses.getValueAssessment() == null)     comp=0;
 else     if (getValueAssessment() != null && other_asses.getValueAssessment() != null)     comp=getValueAssessment().compareTo(other_asses.getValueAssessment());
 else     comp=1;
  }
  if (comp != 0)   return 1;
 else   return 0;
}

Fixed version (ground truth):
public int compareTo(S other){
  int comp=0;
  String this_stat, other_stat;
  NCLAssessmentStatement other_asses;
  if (!(other instanceof NCLAssessmentStatement))   return -1;
  other_asses=(NCLAssessmentStatement)other;
  if (comp == 0) {
    if (getComparator() == null)     this_stat="String_Node_Str";
 else     this_stat=getComparator().toString();
    if (other_asses.getComparator() == null)     other_stat="String_Node_Str";
 else     other_stat=other_asses.getComparator().toString();
    comp=this_stat.compareTo(other_stat);
  }
  if (comp == 0)   comp=attributeAssessments.size() - ((List)other_asses.getAttributeAssessments()).size();
  if (comp == 0) {
    Iterator it=other_asses.getAttributeAssessments().iterator();
    for (    NCLAttributeAssessment att : attributeAssessments) {
      NCLAttributeAssessment other_att=(NCLAttributeAssessment)it.next();
      comp=att.compareTo(other_att);
      if (comp != 0)       break;
    }
  }
  if (comp == 0) {
    if (getValueAssessment() == null && other_asses.getValueAssessment() == null)     comp=0;
 else     if (getValueAssessment() != null && other_asses.getValueAssessment() != null)     comp=getValueAssessment().compareTo(other_asses.getValueAssessment());
 else     if (getValueAssessment() == null)     comp=-1;
 else     comp=1;
  }
  return comp;
}
Program: 5350
Project: 5350
Buggy source:
/** 
 * Remove um atributo de comparação da assertiva.
 * @param attribute elemento representando o atributo a ser removido.
 * @return verdadeiro se o atributo for removido.
 * @see TreeSet#remove
 */
public boolean removeAttributeAssessment(A attribute){
  if (attributeAssessments.remove(attribute)) {
    if (attribute != null)     attribute.setParent(null);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Remove um atributo de comparação da assertiva.
 * @param attribute elemento representando o atributo a ser removido.
 * @return verdadeiro se o atributo for removido.
 * @see ArrayList#remove
 */
public boolean removeAttributeAssessment(A attribute){
  if (attributeAssessments.remove(attribute)) {
    if (attribute != null)     attribute.setParent(null);
    return true;
  }
  return false;
}
Program: 5352
Project: 5352
Buggy source:
/** 
 * Remove uma ação a ação composta.
 * @param action elemento representando a ação a ser removida
 * @return verdadeiro se a ação foi removida.
 * @see TreeSet#remove(java.lang.Object)
 */
public boolean removeAction(A action){
  if (actions.remove(action)) {
    if (action != null)     action.setParent(null);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Remove uma ação a ação composta.
 * @param action elemento representando a ação a ser removida
 * @return verdadeiro se a ação foi removida.
 * @see ArrayList#remove(java.lang.Object)
 */
public boolean removeAction(A action){
  if (actions.remove(action)) {
    if (action != null)     action.setParent(null);
    return true;
  }
  return false;
}
Program: 5353
Project: 5353
Buggy source:
public int compareTo(A other){
  int comp=0;
  String this_act, other_act;
  NCLCompoundAction other_comp;
  if (!(other instanceof NCLCompoundAction))   return 1;
  other_comp=(NCLCompoundAction)other;
  if (comp == 0) {
    if (getOperator() == null)     this_act="String_Node_Str";
 else     this_act=getOperator().toString();
    if (other_comp.getOperator() == null)     other_act="String_Node_Str";
 else     other_act=other_comp.getOperator().toString();
    comp=this_act.compareTo(other_act);
  }
  if (comp == 0) {
    int this_del, other_del;
    if (getDelay() == null)     this_del=0;
 else     this_del=getDelay();
    if (other_comp.getDelay() == null)     other_del=0;
 else     other_del=other_comp.getDelay();
    comp=this_del - other_del;
  }
  if (comp == 0) {
    if (getParamDelay() == null && other_comp.getParamDelay() == null)     comp=0;
 else     if (getParamDelay() != null && other_comp.getParamDelay() != null)     comp=getParamDelay().compareTo(other_comp.getParamDelay());
 else     comp=1;
  }
  if (comp == 0)   comp=actions.size() - ((Set)other_comp.getActions()).size();
  if (comp == 0) {
    Iterator it=other_comp.getActions().iterator();
    for (    NCLAction a : actions) {
      NCLAction other_a=(NCLAction)it.next();
      comp=a.compareTo(other_a);
      if (comp != 0)       break;
    }
  }
  if (comp != 0)   return 1;
 else   return 0;
}

Fixed version (ground truth):
public int compareTo(A other){
  int comp=0;
  String this_act, other_act;
  NCLCompoundAction other_comp;
  if (!(other instanceof NCLCompoundAction))   return 1;
  other_comp=(NCLCompoundAction)other;
  if (comp == 0) {
    if (getOperator() == null)     this_act="String_Node_Str";
 else     this_act=getOperator().toString();
    if (other_comp.getOperator() == null)     other_act="String_Node_Str";
 else     other_act=other_comp.getOperator().toString();
    comp=this_act.compareTo(other_act);
  }
  if (comp == 0) {
    int this_del, other_del;
    if (getDelay() == null)     this_del=0;
 else     this_del=getDelay();
    if (other_comp.getDelay() == null)     other_del=0;
 else     other_del=other_comp.getDelay();
    comp=this_del - other_del;
  }
  if (comp == 0) {
    if (getParamDelay() == null && other_comp.getParamDelay() == null)     comp=0;
 else     if (getParamDelay() != null && other_comp.getParamDelay() != null)     comp=getParamDelay().compareTo(other_comp.getParamDelay());
 else     if (getParamDelay() == null)     comp=-1;
 else     comp=1;
  }
  if (comp == 0)   comp=actions.size() - ((List)other_comp.getActions()).size();
  if (comp == 0) {
    Iterator it=other_comp.getActions().iterator();
    for (    NCLAction a : actions) {
      NCLAction other_a=(NCLAction)it.next();
      comp=a.compareTo(other_a);
      if (comp != 0)       break;
    }
  }
  return comp;
}
Program: 5354
Project: 5354
Buggy source:
/** 
 * Adiciona uma ação a ação composta.
 * @param action elemento representando a ação a ser adicionada
 * @return verdadeiro se a ação foi adicionada.
 * @see TreeSet#add(java.lang.Object) 
 */
public boolean addAction(A action){
  if (actions.add(action)) {
    if (action != null)     action.setParent(this);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Adiciona uma ação a ação composta.
 * @param action elemento representando a ação a ser adicionada
 * @return verdadeiro se a ação foi adicionada.
 * @see ArrayList#add(java.lang.Object)
 */
public boolean addAction(A action){
  if (action != null && actions.add(action)) {
    action.setParent(this);
    return true;
  }
  return false;
}
Program: 5355
Project: 5355
Buggy source:
/** 
 * Adiciona uma condição a condição composta.
 * @param condition elemento representando a condição a ser adicionada
 * @return verdadeiro se a condição foi adicionada.
 * @see TreeSet#add
 */
public boolean addCondition(C condition){
  if (conditions.add(condition)) {
    if (condition != null)     condition.setParent(this);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Adiciona uma condição a condição composta.
 * @param condition elemento representando a condição a ser adicionada
 * @return verdadeiro se a condição foi adicionada.
 * @see ArrayList#add
 */
public boolean addCondition(C condition){
  if (condition != null && conditions.add(condition)) {
    condition.setParent(this);
    return true;
  }
  return false;
}
Program: 5357
Project: 5357
Buggy source:
/** 
 * Adiciona uma assertiva a condição composta.
 * @param statement elemento representando a assertiva a ser adicionada.
 * @return verdadeiro se a assertiva foi adicionada.
 * @see TreeSet#add
 */
public boolean addStatement(S statement){
  if (statements.add(statement)) {
    if (statement != null)     statement.setParent(this);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Adiciona uma assertiva a condição composta.
 * @param statement elemento representando a assertiva a ser adicionada.
 * @return verdadeiro se a assertiva foi adicionada.
 * @see ArrayList#add
 */
public boolean addStatement(S statement){
  if (statement != null && statements.add(statement)) {
    statement.setParent(this);
    return true;
  }
  return false;
}
Program: 5358
Project: 5358
Buggy source:
/** 
 * Remove uma condição a condição composta.
 * @param condition elemento representando a condição a ser removida
 * @return verdadeiro se a condição foi removida.
 * @see TreeSet#remove
 */
public boolean removeCondition(C condition){
  if (conditions.remove(condition)) {
    if (condition != null)     condition.setParent(null);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Remove uma condição a condição composta.
 * @param condition elemento representando a condição a ser removida
 * @return verdadeiro se a condição foi removida.
 * @see ArrayList#remove
 */
public boolean removeCondition(C condition){
  if (conditions.remove(condition)) {
    if (condition != null)     condition.setParent(null);
    return true;
  }
  return false;
}
Program: 5359
Project: 5359
Buggy source:
/** 
 * Remove uma assertiva da condição composta.
 * @param statement elemento representando a assertiva a ser removida.
 * @return verdadeiro se a assertiva foi removida.
 * @see TreeSet#remove
 */
public boolean removeStatement(S statement){
  if (statements.remove(statement)) {
    if (statement != null)     statement.setParent(null);
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Remove uma assertiva da condição composta.
 * @param statement elemento representando a assertiva a ser removida.
 * @return verdadeiro se a assertiva foi removida.
 * @see ArrayList#remove
 */
public boolean removeStatement(S statement){
  if (statements.remove(statement)) {
    if (statement != null)     statement.setParent(null);
    return true;
  }
  return false;
}
Program: 5360
Project: 5360
Buggy source:
/** 
 * Retorna se a posição inferior da região é uma porcentagem.
 * @return booleano indicando se a posição inferior da região é uma porcentagem.
 */
private boolean isRelativeBottom(){
  return relativeBottom;
}

Fixed version (ground truth):
/** 
 * Retorna se a posição inferior da região é uma porcentagem.
 * @return booleano indicando se a posição inferior da região é uma porcentagem.
 */
public boolean isRelativeBottom(){
  return relativeBottom;
}
Program: 5361
Project: 5361
Buggy source:
/** 
 * Determina se a posição de topo da região é uma porcentagem.
 * @param relativeTop booleano indicando se a posição de topo da região é uma porcentagem.
 */
private void setRelativeTop(boolean relativeTop){
  this.relativeTop=relativeTop;
}

Fixed version (ground truth):
/** 
 * Determina se a posição de topo da região é uma porcentagem.
 * @param relativeTop booleano indicando se a posição de topo da região é uma porcentagem.
 */
public void setRelativeTop(boolean relativeTop){
  this.relativeTop=relativeTop;
}
Program: 5362
Project: 5362
Buggy source:
/** 
 * Retorna se a altura da região é uma porcentagem.
 * @return booleano indicando se a altura da região é uma porcentagem.
 */
private boolean isRelativeHeight(){
  return relativeHeight;
}

Fixed version (ground truth):
/** 
 * Retorna se a altura da região é uma porcentagem.
 * @return booleano indicando se a altura da região é uma porcentagem.
 */
public boolean isRelativeHeight(){
  return relativeHeight;
}
Program: 5363
Project: 5363
Buggy source:
/** 
 * Determina se a posição a direita da região é uma porcentagem.
 * @param relativeRight booleano indicando se a posição a direita da região é uma porcentagem.
 */
private void setRelativeRight(boolean relativeRight){
  this.relativeRight=relativeRight;
}

Fixed version (ground truth):
/** 
 * Determina se a posição a direita da região é uma porcentagem.
 * @param relativeRight booleano indicando se a posição a direita da região é uma porcentagem.
 */
public void setRelativeRight(boolean relativeRight){
  this.relativeRight=relativeRight;
}
Program: 5364
Project: 5364
Buggy source:
/** 
 * Determina se a posição inferior da região é uma porcentagem.
 * @param relativeBottom booleano indicando se a posição inferior da região é uma porcentagem.
 */
private void setRelativeBottom(boolean relativeBottom){
  this.relativeBottom=relativeBottom;
}

Fixed version (ground truth):
/** 
 * Determina se a posição inferior da região é uma porcentagem.
 * @param relativeBottom booleano indicando se a posição inferior da região é uma porcentagem.
 */
public void setRelativeBottom(boolean relativeBottom){
  this.relativeBottom=relativeBottom;
}
Program: 5365
Project: 5365
Buggy source:
/** 
 * Retorna se a posição a esquerda da região é uma porcentagem.
 * @return booleano indicando se a posição a esquerda da região é uma porcentagem.
 */
private boolean isRelativeLeft(){
  return relativeLeft;
}

Fixed version (ground truth):
/** 
 * Retorna se a posição a esquerda da região é uma porcentagem.
 * @return booleano indicando se a posição a esquerda da região é uma porcentagem.
 */
public boolean isRelativeLeft(){
  return relativeLeft;
}
Program: 5366
Project: 5366
Buggy source:
/** 
 * Determina se a largura da região é uma porcentagem.
 * @param relativeWidth booleano indicando se a largura da região é uma porcentagem.
 */
private void setRelativeWidth(boolean relativeWidth){
  this.relativeWidth=relativeWidth;
}

Fixed version (ground truth):
/** 
 * Determina se a largura da região é uma porcentagem.
 * @param relativeWidth booleano indicando se a largura da região é uma porcentagem.
 */
public void setRelativeWidth(boolean relativeWidth){
  this.relativeWidth=relativeWidth;
}
Program: 5367
Project: 5367
Buggy source:
/** 
 * Retorna se a largura da região é uma porcentagem.
 * @return booleano indicando se a largura da região é uma porcentagem.
 */
private boolean isRelativeWidth(){
  return relativeWidth;
}

Fixed version (ground truth):
/** 
 * Retorna se a largura da região é uma porcentagem.
 * @return booleano indicando se a largura da região é uma porcentagem.
 */
public boolean isRelativeWidth(){
  return relativeWidth;
}