nus-yam/ex-repair huggingface dataset:
Program: 65049
Project: 65049
Buggy source:
@AfterClass public static void tearDown(){
  for (  String ddl : builder.getTypeDropDDL()) {
    try {
      int lastIdx=ddl.lastIndexOf("String_Node_Str");
      if (lastIdx == (ddl.length() - 1)) {
        ddl=ddl.substring(0,ddl.length() - 1);
      }
    }
 catch (    Exception xxx) {
    }
    runDdl(conn,ddl,ddlDebug);
  }
  if (ddlDrop) {
    runDdl(conn,DROP_REF_CURSOR_BODY,ddlDebug);
    runDdl(conn,DROP_REF_CURSOR_PKG,ddlDebug);
    runDdl(conn,DROP_REF_CURSOR_PKG2,ddlDebug);
    runDdl(conn,DROP_EMP_TABLE,ddlDebug);
  }
}

Fixed version (ground truth):
@AfterClass public static void tearDown(){
  for (  String ddl : builder.getTypeDropDDL()) {
    try {
      int lastIdx=ddl.lastIndexOf("String_Node_Str");
      if (lastIdx == (ddl.length() - 1)) {
        ddl=ddl.substring(0,ddl.length() - 1);
      }
    }
 catch (    Exception xxx) {
    }
    runDdl(conn,ddl,ddlDebug);
  }
  if (ddlDrop) {
    runDdl(conn,DROP_REF_CURSOR_BODY,ddlDebug);
    runDdl(conn,DROP_REF_CURSOR_PKG,ddlDebug);
    runDdl(conn,DROP_REF_CURSOR_PKG2_BODY,ddlDebug);
    runDdl(conn,DROP_REF_CURSOR_PKG2,ddlDebug);
    runDdl(conn,DROP_REF_CURSOR_PKG3,ddlDebug);
    runDdl(conn,DROP_EMP_TABLE,ddlDebug);
  }
}
Program: 65052
Project: 65052
Buggy source:
public ValidatingMarshalRecord(MarshalRecord marshalRecord,XMLMarshaller xmlMarshaller){
  this.marshalRecord=marshalRecord;
  Schema schema=xmlMarshaller.getSchema();
  ValidatorHandler validatorHandler=schema.newValidatorHandler();
  validatorHandler.setErrorHandler(new ValidatingMarshalRecordErrorHandler(marshalRecord,xmlMarshaller.getErrorHandler()));
  validatingRecord=new ContentHandlerRecord();
  validatingRecord.setMarshaller(xmlMarshaller);
  validatingRecord.setContentHandler(validatorHandler);
}

Fixed version (ground truth):
public ValidatingMarshalRecord(MarshalRecord marshalRecord,XMLMarshaller xmlMarshaller){
  this.marshalRecord=marshalRecord;
  Schema schema=xmlMarshaller.getSchema();
  ValidatorHandler validatorHandler=schema.newValidatorHandler();
  validatorHandler.setErrorHandler(new ValidatingMarshalRecordErrorHandler(marshalRecord,xmlMarshaller.getErrorHandler()));
  if (xmlMarshaller.isFragment()) {
    try {
      validatorHandler.startDocument();
    }
 catch (    SAXException e) {
    }
  }
  validatingRecord=new ContentHandlerRecord();
  validatingRecord.setMarshaller(xmlMarshaller);
  validatingRecord.setContentHandler(validatorHandler);
}
Program: 65054
Project: 65054
Buggy source:
public static QName buildCustomQName(String typeString,DBWSBuilder builder){
  QName qName=null;
  String nsURI=null;
  String prefix=null;
  String localPart=null;
  int colonIdx=typeString.indexOf(COLON);
  if (colonIdx > 0) {
    prefix=typeString.substring(0,colonIdx);
    nsURI=builder.schema.getNamespaceResolver().resolveNamespacePrefix(prefix);
    if (prefix.equalsIgnoreCase(SCHEMA_PREFIX)) {
      nsURI=W3C_XML_SCHEMA_NS_URI;
    }
 else {
      nsURI=DEFAULT_NS_PREFIX;
    }
    localPart=typeString.substring(colonIdx + 1);
    if (W3C_XML_SCHEMA_NS_URI.equals(nsURI)) {
      qName=SCHEMA_QNAMES.get(localPart);
      if (qName == null) {
        qName=new QName(W3C_XML_SCHEMA_NS_URI,localPart,prefix == null ? DEFAULT_NS_PREFIX : prefix);
      }
    }
 else {
      qName=new QName(nsURI == null ? NULL_NS_URI : nsURI,localPart,prefix == null ? DEFAULT_NS_PREFIX : prefix);
    }
  }
 else {
    qName=qNameFromString(OPEN_PAREN + builder.getTargetNamespace() + CLOSE_PAREN+ typeString,builder.schema);
  }
  return qName;
}

Fixed version (ground truth):
public static QName buildCustomQName(String typeString,DBWSBuilder builder){
  if (typeString.contains(PERCENT)) {
    typeString=typeString.replace(PERCENT,UNDERSCORE);
  }
  QName qName=null;
  String nsURI=null;
  String prefix=null;
  String localPart=null;
  int colonIdx=typeString.indexOf(COLON);
  if (colonIdx > 0) {
    prefix=typeString.substring(0,colonIdx);
    nsURI=builder.schema.getNamespaceResolver().resolveNamespacePrefix(prefix);
    if (prefix.equalsIgnoreCase(SCHEMA_PREFIX)) {
      nsURI=W3C_XML_SCHEMA_NS_URI;
    }
 else {
      nsURI=DEFAULT_NS_PREFIX;
    }
    localPart=typeString.substring(colonIdx + 1);
    if (W3C_XML_SCHEMA_NS_URI.equals(nsURI)) {
      qName=SCHEMA_QNAMES.get(localPart);
      if (qName == null) {
        qName=new QName(W3C_XML_SCHEMA_NS_URI,localPart,prefix == null ? DEFAULT_NS_PREFIX : prefix);
      }
    }
 else {
      qName=new QName(nsURI == null ? NULL_NS_URI : nsURI,localPart,prefix == null ? DEFAULT_NS_PREFIX : prefix);
    }
  }
 else {
    qName=qNameFromString(OPEN_PAREN + builder.getTargetNamespace() + CLOSE_PAREN+ typeString,builder.schema);
  }
  return qName;
}
Program: 65055
Project: 65055
Buggy source:
/** 
 * Build an XMLDescriptor based on a given descriptor alias, java class name schema alias, and target namespace.
 */
protected XMLDescriptor buildNewXMLDescriptor(String objectAlias,String javaClassName,String userType,String targetNamespace){
  XMLDescriptor xdesc=new XMLDescriptor();
  xdesc.setAlias(objectAlias);
  xdesc.setJavaClassName(javaClassName);
  xdesc.getQueryManager();
  XMLSchemaURLReference schemaReference=new XMLSchemaURLReference();
  schemaReference.setSchemaContext(SLASH + userType);
  schemaReference.setType(org.eclipse.persistence.platform.xml.XMLSchemaReference.COMPLEX_TYPE);
  xdesc.setSchemaReference(schemaReference);
  NamespaceResolver nr=new NamespaceResolver();
  nr.setDefaultNamespaceURI(targetNamespace);
  xdesc.setNamespaceResolver(nr);
  if (userType.contains(PERCENT)) {
    xdesc.setDefaultRootElement(userType.replace(PERCENT,UNDERSCORE));
  }
 else {
    xdesc.setDefaultRootElement(userType);
  }
  return xdesc;
}

Fixed version (ground truth):
/** 
 * Build an XMLDescriptor based on a given descriptor alias, java class name schema alias, and target namespace.
 */
protected XMLDescriptor buildNewXMLDescriptor(String objectAlias,String javaClassName,String userType,String targetNamespace){
  XMLDescriptor xdesc=new XMLDescriptor();
  xdesc.setAlias(objectAlias);
  xdesc.setJavaClassName(javaClassName);
  xdesc.getQueryManager();
  XMLSchemaURLReference schemaReference=new XMLSchemaURLReference();
  schemaReference.setSchemaContext(SLASH + userType);
  schemaReference.setType(org.eclipse.persistence.platform.xml.XMLSchemaReference.COMPLEX_TYPE);
  xdesc.setSchemaReference(schemaReference);
  NamespaceResolver nr=new NamespaceResolver();
  nr.setDefaultNamespaceURI(targetNamespace);
  xdesc.setNamespaceResolver(nr);
  xdesc.setDefaultRootElement(userType);
  return xdesc;
}
Program: 65057
Project: 65057
Buggy source:
public void endPrefixMappings(NamespaceResolver namespaceResolver){
  if (namespaceResolver != null && namespaceResolver.hasPrefixesToNamespaces()) {
    for (    Entry<String,String> entry : namespaceResolver.getPrefixesToNamespaces().entrySet()) {
      endPrefixMapping(entry.getKey());
    }
  }
}

Fixed version (ground truth):
public void endPrefixMappings(NamespaceResolver namespaceResolver){
}
Program: 65059
Project: 65059
Buggy source:
public static TestSuite getReadAllTestSuite(){
  TestSuite suite=getSRGReadAllTestSuite();
  suite.addTest(new QueryInheritanceTest());
  suite.addTest(new JoinWithSecondaryTableTest());
  return suite;
}

Fixed version (ground truth):
public static TestSuite getReadAllTestSuite(){
  TestSuite suite=getSRGReadAllTestSuite();
  suite.addTest(new QueryInheritanceTest());
  suite.addTest(new JoinWithSecondaryTableTest());
  suite.addTest(new PaginationInheritanceTest());
  return suite;
}
Program: 65060
Project: 65060
Buggy source:
/** 
 * Return the appropriate select statement containing the fields in the table.
 */
protected SQLSelectStatement buildNormalSelectStatement(){
  Map clonedExpressions=new IdentityHashMap();
  SQLSelectStatement selectStatement=buildBaseSelectStatement(false,clonedExpressions);
  ObjectLevelReadQuery query=((ObjectLevelReadQuery)getQuery());
  if (getDescriptor().hasInheritance()) {
    getDescriptor().getInheritancePolicy().appendWithAllSubclassesExpression(selectStatement);
    if ((!query.isReportQuery()) && query.shouldOuterJoinSubclasses()) {
      selectStatement.getExpressionBuilder().setShouldUseOuterJoinForMultitableInheritance(true);
    }
  }
  selectStatement.setFields(getSelectionFields(selectStatement,true));
  selectStatement.normalize(getSession(),getDescriptor(),clonedExpressions);
  if (((ObjectLevelReadQuery)getQuery()).hasJoining()) {
    ((ObjectLevelReadQuery)getQuery()).getJoinedAttributeManager().computeJoiningMappingIndexes(true,getSession(),0);
  }
  return selectStatement;
}

Fixed version (ground truth):
/** 
 * Return the appropriate select statement containing the fields in the table.
 */
protected SQLSelectStatement buildNormalSelectStatement(){
  Map clonedExpressions=new IdentityHashMap();
  SQLSelectStatement selectStatement=buildBaseSelectStatement(false,clonedExpressions);
  ObjectLevelReadQuery query=((ObjectLevelReadQuery)getQuery());
  boolean includeAllSubclassesFields=true;
  if (getDescriptor().hasInheritance()) {
    getDescriptor().getInheritancePolicy().appendWithAllSubclassesExpression(selectStatement);
    if ((!query.isReportQuery()) && query.shouldOuterJoinSubclasses()) {
      selectStatement.getExpressionBuilder().setShouldUseOuterJoinForMultitableInheritance(true);
    }
    includeAllSubclassesFields=shouldIncludeAllSubclassFields(selectStatement);
  }
  selectStatement.setFields(getSelectionFields(selectStatement,includeAllSubclassesFields));
  selectStatement.normalize(getSession(),getDescriptor(),clonedExpressions);
  if (((ObjectLevelReadQuery)getQuery()).hasJoining()) {
    ((ObjectLevelReadQuery)getQuery()).getJoinedAttributeManager().computeJoiningMappingIndexes(true,getSession(),0);
  }
  return selectStatement;
}
Program: 65063
Project: 65063
Buggy source:
public final Object readFrom(Class<Object> type,Type genericType,Annotation[] annotations,MediaType mediaType,MultivaluedMap<String,String> httpHeaders,InputStream entityStream) throws IOException, WebApplicationException {
  try {
    Class<?> domainClass=getDomainClass(genericType);
    JAXBContext jaxbContext=getJAXBContext(domainClass,annotations,mediaType,httpHeaders);
    Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
    unmarshaller.setProperty(UnmarshallerProperties.MEDIA_TYPE,MediaType.APPLICATION_JSON);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX,attributePrefix);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT,includeRoot);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER,namespacePrefixMapper);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR,namespaceSeperator);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER,valueWrapper);
    preReadFrom(type,genericType,annotations,mediaType,httpHeaders,unmarshaller);
    return unmarshaller.unmarshal(new StreamSource(entityStream),domainClass).getValue();
  }
 catch (  JAXBException jaxbException) {
    throw new WebApplicationException(jaxbException);
  }
}

Fixed version (ground truth):
public final Object readFrom(Class<Object> type,Type genericType,Annotation[] annotations,MediaType mediaType,MultivaluedMap<String,String> httpHeaders,InputStream entityStream) throws IOException, WebApplicationException {
  try {
    Class<?> domainClass=getDomainClass(genericType);
    JAXBContext jaxbContext=getJAXBContext(domainClass,annotations,mediaType,httpHeaders);
    Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
    unmarshaller.setProperty(UnmarshallerProperties.MEDIA_TYPE,MediaType.APPLICATION_JSON);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX,attributePrefix);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT,includeRoot);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER,namespacePrefixMapper);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR,namespaceSeperator);
    unmarshaller.setProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER,valueWrapper);
    preReadFrom(type,genericType,annotations,mediaType,httpHeaders,unmarshaller);
    StreamSource jsonSource;
    Map<String,String> mediaTypeParameters=mediaType.getParameters();
    if (mediaTypeParameters.containsKey(CHARSET)) {
      String charSet=mediaTypeParameters.get(CHARSET);
      Reader entityReader=new InputStreamReader(entityStream,charSet);
      jsonSource=new StreamSource(entityReader);
    }
 else {
      jsonSource=new StreamSource(entityStream);
    }
    return unmarshaller.unmarshal(jsonSource,domainClass).getValue();
  }
 catch (  JAXBException jaxbException) {
    throw new WebApplicationException(jaxbException);
  }
}
Program: 65064
Project: 65064
Buggy source:
public final void writeTo(Object object,Class<?> type,Type genericType,Annotation[] annotations,MediaType mediaType,MultivaluedMap<String,Object> httpHeaders,OutputStream entityStream) throws IOException, WebApplicationException {
  try {
    Class<?> domainClass=getDomainClass(genericType);
    JAXBContext jaxbContext=getJAXBContext(domainClass,annotations,mediaType,httpHeaders);
    Marshaller marshaller=jaxbContext.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,formattedOutput);
    marshaller.setProperty(MarshallerProperties.MEDIA_TYPE,MediaType.APPLICATION_JSON);
    marshaller.setProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX,attributePrefix);
    marshaller.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT,includeRoot);
    marshaller.setProperty(MarshallerProperties.JSON_MARSHAL_EMPTY_COLLECTIONS,marshalEmptyCollections);
    marshaller.setProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR,namespaceSeperator);
    marshaller.setProperty(MarshallerProperties.JSON_VALUE_WRAPPER,valueWrapper);
    marshaller.setProperty(MarshallerProperties.NAMESPACE_PREFIX_MAPPER,namespacePrefixMapper);
    preWriteTo(object,type,genericType,annotations,mediaType,httpHeaders,marshaller);
    marshaller.marshal(object,entityStream);
  }
 catch (  JAXBException jaxbException) {
    throw new WebApplicationException(jaxbException);
  }
}

Fixed version (ground truth):
public final void writeTo(Object object,Class<?> type,Type genericType,Annotation[] annotations,MediaType mediaType,MultivaluedMap<String,Object> httpHeaders,OutputStream entityStream) throws IOException, WebApplicationException {
  try {
    Class<?> domainClass=getDomainClass(genericType);
    JAXBContext jaxbContext=getJAXBContext(domainClass,annotations,mediaType,httpHeaders);
    Marshaller marshaller=jaxbContext.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,formattedOutput);
    marshaller.setProperty(MarshallerProperties.MEDIA_TYPE,MediaType.APPLICATION_JSON);
    marshaller.setProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX,attributePrefix);
    marshaller.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT,includeRoot);
    marshaller.setProperty(MarshallerProperties.JSON_MARSHAL_EMPTY_COLLECTIONS,marshalEmptyCollections);
    marshaller.setProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR,namespaceSeperator);
    marshaller.setProperty(MarshallerProperties.JSON_VALUE_WRAPPER,valueWrapper);
    marshaller.setProperty(MarshallerProperties.NAMESPACE_PREFIX_MAPPER,namespacePrefixMapper);
    Map<String,String> mediaTypeParameters=mediaType.getParameters();
    if (mediaTypeParameters.containsKey(CHARSET)) {
      String charSet=mediaTypeParameters.get(CHARSET);
      marshaller.setProperty(Marshaller.JAXB_ENCODING,charSet);
    }
    preWriteTo(object,type,genericType,annotations,mediaType,httpHeaders,marshaller);
    marshaller.marshal(object,entityStream);
  }
 catch (  JAXBException jaxbException) {
    throw new WebApplicationException(jaxbException);
  }
}
Program: 65066
Project: 65066
Buggy source:
public boolean marshalSingleValue(XPathFragment xPathFragment,MarshalRecord marshalRecord,Object object,Object value,AbstractSession session,NamespaceResolver namespaceResolver,MarshalContext marshalContext){
  value=getConvertedValue(value,marshalRecord,session);
  if (value.getClass() == ClassConstants.STRING && this.xmlChoiceCollectionMapping.isMixedContent()) {
    marshalMixedContent(marshalRecord,(String)value);
    return true;
  }
  NodeValue associatedNodeValue=getNodeValueForValue(value);
  if (associatedNodeValue != null) {
    XPathFragment frag=associatedNodeValue.getXPathNode().getXPathFragment();
    if (frag != null) {
      frag=getOwningFragment(associatedNodeValue,frag);
      NodeValue unwrappedNodeValue=((XMLChoiceCollectionMappingUnmarshalNodeValue)associatedNodeValue).getChoiceElementMarshalNodeValue();
      return marshalSingleValueWithNodeValue(frag,marshalRecord,object,value,session,namespaceResolver,marshalContext,unwrappedNodeValue);
    }
  }
  return true;
}

Fixed version (ground truth):
public boolean marshalSingleValue(XPathFragment xPathFragment,MarshalRecord marshalRecord,Object object,Object value,AbstractSession session,NamespaceResolver namespaceResolver,MarshalContext marshalContext){
  value=getConvertedValue(value,marshalRecord,session);
  if (value != null && value.getClass() == ClassConstants.STRING && this.xmlChoiceCollectionMapping.isMixedContent()) {
    marshalMixedContent(marshalRecord,(String)value);
    return true;
  }
  NodeValue associatedNodeValue=getNodeValueForValue(value);
  if (associatedNodeValue != null) {
    XPathFragment frag=associatedNodeValue.getXPathNode().getXPathFragment();
    if (frag != null) {
      frag=getOwningFragment(associatedNodeValue,frag);
      NodeValue unwrappedNodeValue=((XMLChoiceCollectionMappingUnmarshalNodeValue)associatedNodeValue).getChoiceElementMarshalNodeValue();
      return marshalSingleValueWithNodeValue(frag,marshalRecord,object,value,session,namespaceResolver,marshalContext,unwrappedNodeValue);
    }
  }
  return true;
}
Program: 65071
Project: 65071
Buggy source:
public String getValueToWrite(QName schemaType,Object value,XMLConversionManager xmlConversionManager){
  if (schemaType != null && XMLConstants.QNAME_QNAME.equals(schemaType)) {
    return getStringForQName((QName)value);
  }
 else   if (value.getClass() == String.class) {
    return (String)value;
  }
  return (String)xmlConversionManager.convertObject(value,ClassConstants.STRING,schemaType);
}

Fixed version (ground truth):
public String getValueToWrite(QName schemaType,Object value,XMLConversionManager xmlConversionManager){
  if (value == null) {
    return null;
  }
  if (schemaType != null && XMLConstants.QNAME_QNAME.equals(schemaType)) {
    return getStringForQName((QName)value);
  }
 else   if (value.getClass() == String.class) {
    return (String)value;
  }
  return (String)xmlConversionManager.convertObject(value,ClassConstants.STRING,schemaType);
}
Program: 65073
Project: 65073
Buggy source:
@Override protected void closeComplex() throws IOException {
  writer.write(Helper.cr());
  for (int x=0; x < numberOfTabs; x++) {
    writeValue(tab());
  }
  writer.write('}');
}

Fixed version (ground truth):
@Override protected void closeComplex() throws IOException {
  writer.write(Helper.cr());
  for (int x=0; x < numberOfTabs; x++) {
    writeValue(tab(),false);
  }
  writer.write('}');
}
Program: 65074
Project: 65074
Buggy source:
@Override protected void writeKey(XPathFragment xPathFragment) throws IOException {
  writer.write(Helper.cr());
  for (int x=0; x < numberOfTabs; x++) {
    writeValue(tab());
  }
  super.writeKey(xPathFragment);
}

Fixed version (ground truth):
@Override protected void writeKey(XPathFragment xPathFragment) throws IOException {
  writer.write(Helper.cr());
  for (int x=0; x < numberOfTabs; x++) {
    writeValue(tab(),false);
  }
  super.writeKey(xPathFragment);
}
Program: 65077
Project: 65077
Buggy source:
/** 
 * INTERNAL:
 */
public void element(XPathFragment frag){
  try {
    isLastEventText=false;
    if (isStartElementOpen) {
      writer.write('>');
      isStartElementOpen=false;
    }
    writer.write(Helper.cr());
    for (int x=0; x < numberOfTabs; x++) {
      writeValue(tab());
    }
    super.element(frag);
  }
 catch (  IOException e) {
    throw XMLMarshalException.marshalException(e);
  }
}

Fixed version (ground truth):
/** 
 * INTERNAL:
 */
public void element(XPathFragment frag){
  try {
    isLastEventText=false;
    if (isStartElementOpen) {
      writer.write('>');
      isStartElementOpen=false;
    }
    writer.write(Helper.cr());
    for (int x=0; x < numberOfTabs; x++) {
      writeValue(tab(),false);
    }
    super.element(frag);
  }
 catch (  IOException e) {
    throw XMLMarshalException.marshalException(e);
  }
}
Program: 65078
Project: 65078
Buggy source:
/** 
 * INTERNAL:
 */
public void nilComplex(XPathFragment xPathFragment,NamespaceResolver namespaceResolver){
  XPathFragment groupingFragment=openStartGroupingElements(namespaceResolver);
  closeStartGroupingElements(groupingFragment);
  openStartElement(xPathFragment,namespaceResolver);
  nonStringCharacters(NULL);
  endElement(xPathFragment,namespaceResolver);
}

Fixed version (ground truth):
/** 
 * INTERNAL:
 */
public void nilComplex(XPathFragment xPathFragment,NamespaceResolver namespaceResolver){
  XPathFragment groupingFragment=openStartGroupingElements(namespaceResolver);
  closeStartGroupingElements(groupingFragment);
  openStartElement(xPathFragment,namespaceResolver);
  characters(NULL,false,false);
  endElement(xPathFragment,namespaceResolver);
}
Program: 65079
Project: 65079
Buggy source:
/** 
 * INTERNAL:
 */
public void nilSimple(NamespaceResolver namespaceResolver){
  XPathFragment groupingFragment=openStartGroupingElements(namespaceResolver);
  nonStringCharacters(NULL);
  closeStartGroupingElements(groupingFragment);
}

Fixed version (ground truth):
/** 
 * INTERNAL:
 */
public void nilSimple(NamespaceResolver namespaceResolver){
  XPathFragment groupingFragment=openStartGroupingElements(namespaceResolver);
  characters(NULL,false,false);
  closeStartGroupingElements(groupingFragment);
}
Program: 65081
Project: 65081
Buggy source:
public void attribute(XPathFragment xPathFragment,NamespaceResolver namespaceResolver,Object value,QName schemaType){
  if (xPathFragment.getNamespaceURI() != null && xPathFragment.getNamespaceURI() == XMLConstants.XMLNS_URL) {
    return;
  }
  xPathFragment.setAttribute(true);
  openStartElement(xPathFragment,namespaceResolver);
  characters(schemaType,value,null,false);
  endElement(xPathFragment,namespaceResolver);
}

Fixed version (ground truth):
public void attribute(XPathFragment xPathFragment,NamespaceResolver namespaceResolver,Object value,QName schemaType){
  if (xPathFragment.getNamespaceURI() != null && xPathFragment.getNamespaceURI() == XMLConstants.XMLNS_URL) {
    return;
  }
  xPathFragment.setAttribute(true);
  openStartElement(xPathFragment,namespaceResolver);
  characters(schemaType,value,null,false,true);
  endElement(xPathFragment,namespaceResolver);
}
Program: 65082
Project: 65082
Buggy source:
/** 
 * INTERNAL:
 */
protected void writeValue(String value){
  try {
    char[] chars=value.toCharArray();
    for (int x=0, charsSize=chars.length; x < charsSize; x++) {
      char character=chars[x];
switch (character) {
case '"':
{
          writer.write("String_Node_Str");
          break;
        }
case '\b':
{
        writer.write("String_Node_Str");
        writer.write("String_Node_Str");
        break;
      }
case '\f':
{
      writer.write("String_Node_Str");
      writer.write("String_Node_Str");
      break;
    }
case '\n':
{
    writer.write("String_Node_Str");
    writer.write("String_Node_Str");
    break;
  }
case '\r':
{
  writer.write("String_Node_Str");
  writer.write("String_Node_Str");
  break;
}
case '\t':
{
writer.write("String_Node_Str");
writer.write("String_Node_Str");
break;
}
case '\\':
{
writer.write("String_Node_Str");
writer.write("String_Node_Str");
break;
}
default :
{
if (Character.isISOControl(character) || !encoder.canEncode(character)) {
writer.write("String_Node_Str");
String hex=Integer.toHexString(character).toUpperCase();
for (int i=hex.length(); i < 4; i++) {
writer.write("String_Node_Str");
}
writer.write(hex);
}
 else {
writer.write(character);
}
}
}
}
}
 catch (IOException e) {
throw XMLMarshalException.marshalException(e);
}
}

Fixed version (ground truth):
/** 
 * INTERNAL:
 */
protected void writeValue(String value,boolean isAttribute){
  try {
    if (characterEscapeHandler != null) {
      try {
        characterEscapeHandler.escape(value.toCharArray(),0,value.length(),isAttribute,writer);
      }
 catch (      IOException e) {
        throw XMLMarshalException.marshalException(e);
      }
      return;
    }
    char[] chars=value.toCharArray();
    for (int x=0, charsSize=chars.length; x < charsSize; x++) {
      char character=chars[x];
switch (character) {
case '"':
{
          writer.write("String_Node_Str");
          break;
        }
case '\b':
{
        writer.write("String_Node_Str");
        writer.write("String_Node_Str");
        break;
      }
case '\f':
{
      writer.write("String_Node_Str");
      writer.write("String_Node_Str");
      break;
    }
case '\n':
{
    writer.write("String_Node_Str");
    writer.write("String_Node_Str");
    break;
  }
case '\r':
{
  writer.write("String_Node_Str");
  writer.write("String_Node_Str");
  break;
}
case '\t':
{
writer.write("String_Node_Str");
writer.write("String_Node_Str");
break;
}
case '\\':
{
writer.write("String_Node_Str");
writer.write("String_Node_Str");
break;
}
default :
{
if (Character.isISOControl(character) || !encoder.canEncode(character)) {
writer.write("String_Node_Str");
String hex=Integer.toHexString(character).toUpperCase();
for (int i=hex.length(); i < 4; i++) {
writer.write("String_Node_Str");
}
writer.write(hex);
}
 else {
writer.write(character);
}
}
}
}
}
 catch (IOException e) {
throw XMLMarshalException.marshalException(e);
}
}
Program: 65083
Project: 65083
Buggy source:
/** 
 * INTERNAL:
 */
public void setMarshaller(XMLMarshaller marshaller){
  super.setMarshaller(marshaller);
  attributePrefix=marshaller.getAttributePrefix();
  encoder=Charset.forName(marshaller.getEncoding()).newEncoder();
  if (marshaller.getValueWrapper() != null) {
    textWrapperFragment=new XPathFragment(marshaller.getValueWrapper());
  }
}

Fixed version (ground truth):
/** 
 * INTERNAL:
 */
public void setMarshaller(XMLMarshaller marshaller){
  super.setMarshaller(marshaller);
  attributePrefix=marshaller.getAttributePrefix();
  encoder=Charset.forName(marshaller.getEncoding()).newEncoder();
  if (marshaller.getValueWrapper() != null) {
    textWrapperFragment=new XPathFragment(marshaller.getValueWrapper());
  }
  characterEscapeHandler=marshaller.getCharacterEscapeHandler();
}
Program: 65084
Project: 65084
Buggy source:
@Override protected Map getProperties(){
  InputStream inputStream=ClassLoader.getSystemResourceAsStream(BINDINGS);
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(inputStream));
  Map<String,Map<String,Source>> properties=new HashMap<String,Map<String,Source>>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,metadataSourceMap);
  return properties;
}

Fixed version (ground truth):
@Override protected Map getProperties(){
  InputStream inputStream=ClassLoader.getSystemResourceAsStream(BINDINGS);
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(inputStream));
  Map<String,Map<String,Source>> properties=new HashMap<String,Map<String,Source>>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,new HashMap<String,Source>());
  properties.put(JAXBContextProperties.OXM_METADATA_SOURCE,metadataSourceMap);
  return properties;
}
Program: 65085
Project: 65085
Buggy source:
public void testCreateContextFromOXM() throws JAXBException {
  ClassLoader classLoader=Thread.currentThread().getContextClassLoader();
  InputStream iStream=classLoader.getResourceAsStream(EXAMPLE_OXM);
  if (iStream == null) {
    fail("String_Node_Str" + EXAMPLE_OXM + "String_Node_Str");
  }
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(iStream));
  Map<String,Object> properties=new HashMap<String,Object>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,metadataSourceMap);
  DynamicJAXBContext jaxbContext=DynamicJAXBContextFactory.createContextFromOXM(classLoader,properties);
  DynamicEntity person=jaxbContext.newDynamicEntity(PERSON_CLASS_NAME);
  assertNotNull(person);
}

Fixed version (ground truth):
public void testCreateContextFromOXM() throws JAXBException {
  ClassLoader classLoader=Thread.currentThread().getContextClassLoader();
  InputStream iStream=classLoader.getResourceAsStream(EXAMPLE_OXM);
  if (iStream == null) {
    fail("String_Node_Str" + EXAMPLE_OXM + "String_Node_Str");
  }
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(iStream));
  Map<String,Object> properties=new HashMap<String,Object>();
  properties.put(JAXBContextProperties.OXM_METADATA_SOURCE,metadataSourceMap);
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,new HashMap<String,Source>());
  DynamicJAXBContext jaxbContext=DynamicJAXBContextFactory.createContextFromOXM(classLoader,properties);
  DynamicEntity person=jaxbContext.newDynamicEntity(PERSON_CLASS_NAME);
  assertNotNull(person);
}
Program: 65086
Project: 65086
Buggy source:
public Map getProperties(){
  InputStream inputStream=ClassLoader.getSystemResourceAsStream("String_Node_Str");
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(inputStream));
  Map<String,Map<String,Source>> properties=new HashMap<String,Map<String,Source>>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,metadataSourceMap);
  return properties;
}

Fixed version (ground truth):
public Map getProperties(){
  InputStream inputStream=ClassLoader.getSystemResourceAsStream("String_Node_Str");
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(inputStream));
  Map<String,Object> properties=new HashMap<String,Object>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,metadataSourceMap);
  properties.put(JAXBContextFactory.ANNOTATION_HELPER_KEY,"String_Node_Str");
  properties.put(JAXBContextProperties.ANNOTATION_HELPER,new AnnotationHelper());
  return properties;
}
Program: 65087
Project: 65087
Buggy source:
public Map getProperties(){
  Map props=new HashMap();
  props.put(JAXBContextFactory.DEFAULT_TARGET_NAMESPACE_KEY,"String_Node_Str");
  return props;
}

Fixed version (ground truth):
public Map getProperties(){
  Map props=new HashMap();
  props.put(JAXBContextFactory.DEFAULT_TARGET_NAMESPACE_KEY,"String_Node_Str");
  props.put(JAXBContextProperties.DEFAULT_TARGET_NAMESPACE,"String_Node_Str");
  return props;
}
Program: 65093
Project: 65093
Buggy source:
public void testMarshallerJsonIncludeRoot() throws Exception {
  m.setProperty(MarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  m.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT,true);
  assertTrue((Boolean)m.getProperty(MarshallerProperties.JSON_INCLUDE_ROOT));
  m.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT,false);
  assertFalse((Boolean)m.getProperty(MarshallerProperties.JSON_INCLUDE_ROOT));
}

Fixed version (ground truth):
public void testMarshallerJsonIncludeRoot() throws Exception {
  m.setProperty(MarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  m.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT,true);
  assertTrue((Boolean)m.getProperty(MarshallerProperties.JSON_INCLUDE_ROOT));
  m.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT,false);
  assertFalse((Boolean)m.getProperty(MarshallerProperties.JSON_INCLUDE_ROOT));
  try {
    m.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65094
Project: 65094
Buggy source:
public void testMarshallerJsonAttributePrefix() throws Exception {
  m.setProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX));
}

Fixed version (ground truth):
public void testMarshallerJsonAttributePrefix() throws Exception {
  m.setProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX));
  m.setProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX,null);
  assertNull(m.getProperty(MarshallerProperties.JSON_ATTRIBUTE_PREFIX));
}
Program: 65095
Project: 65095
Buggy source:
public void testMarshallerMediaTypeEnum() throws Exception {
  m.setProperty(MarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals(MediaType.APPLICATION_JSON,m.getProperty(MarshallerProperties.MEDIA_TYPE));
}

Fixed version (ground truth):
public void testMarshallerMediaTypeEnum() throws Exception {
  m.setProperty(MarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals(MediaType.APPLICATION_JSON,m.getProperty(MarshallerProperties.MEDIA_TYPE));
  try {
    m.setProperty(MarshallerProperties.MEDIA_TYPE,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65096
Project: 65096
Buggy source:
public void testUnmarshallerJsonValueWrapper() throws Exception {
  u.setProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER,"String_Node_Str");
  assertEquals("String_Node_Str",u.getProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER));
}

Fixed version (ground truth):
public void testUnmarshallerJsonValueWrapper() throws Exception {
  u.setProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER,"String_Node_Str");
  assertEquals("String_Node_Str",u.getProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER));
  u.setProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER,null);
  assertNull(u.getProperty(UnmarshallerProperties.JSON_VALUE_WRAPPER));
}
Program: 65097
Project: 65097
Buggy source:
public void testMarshallerXmlDeclaration() throws Exception {
  String XML_DECLARATION="String_Node_Str";
  m.setProperty(XML_DECLARATION,true);
  assertTrue((Boolean)m.getProperty(XML_DECLARATION));
  m.setProperty(XML_DECLARATION,false);
  assertFalse((Boolean)m.getProperty(XML_DECLARATION));
}

Fixed version (ground truth):
public void testMarshallerXmlDeclaration() throws Exception {
  String XML_DECLARATION="String_Node_Str";
  m.setProperty(XML_DECLARATION,true);
  assertTrue((Boolean)m.getProperty(XML_DECLARATION));
  m.setProperty(XML_DECLARATION,false);
  assertFalse((Boolean)m.getProperty(XML_DECLARATION));
  try {
    m.setProperty(XML_DECLARATION,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65098
Project: 65098
Buggy source:
public void testUnmarshallerIdResolver() throws Exception {
  String SUN_ID_RESOLVER="String_Node_Str";
  String SUN_JSE_ID_RESOLVER="String_Node_Str";
  IDResolver resolver=new MyIDResolver();
  u.setProperty(UnmarshallerProperties.ID_RESOLVER,resolver);
  assertEquals(resolver,u.getProperty(UnmarshallerProperties.ID_RESOLVER));
  Object nonELResolver=new NonELIDResolver();
  u.setProperty(SUN_ID_RESOLVER,nonELResolver);
  assertEquals(nonELResolver,u.getProperty(SUN_ID_RESOLVER));
  u.setProperty(SUN_JSE_ID_RESOLVER,nonELResolver);
  assertEquals(nonELResolver,u.getProperty(SUN_JSE_ID_RESOLVER));
}

Fixed version (ground truth):
public void testUnmarshallerIdResolver() throws Exception {
  String SUN_ID_RESOLVER="String_Node_Str";
  String SUN_JSE_ID_RESOLVER="String_Node_Str";
  IDResolver resolver=new MyIDResolver();
  u.setProperty(UnmarshallerProperties.ID_RESOLVER,resolver);
  assertEquals(resolver,u.getProperty(UnmarshallerProperties.ID_RESOLVER));
  Object nonELResolver=new NonELIDResolver();
  u.setProperty(SUN_ID_RESOLVER,nonELResolver);
  assertEquals(nonELResolver,u.getProperty(SUN_ID_RESOLVER));
  u.setProperty(SUN_JSE_ID_RESOLVER,nonELResolver);
  assertEquals(nonELResolver,u.getProperty(SUN_JSE_ID_RESOLVER));
  u.setProperty(SUN_JSE_ID_RESOLVER,null);
  assertNull(u.getProperty(SUN_JSE_ID_RESOLVER));
}
Program: 65099
Project: 65099
Buggy source:
public void testUnmarshallerJsonIncludeRoot() throws Exception {
  u.setProperty(UnmarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  u.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT,true);
  assertTrue((Boolean)u.getProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT));
  u.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT,false);
  assertFalse((Boolean)u.getProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT));
}

Fixed version (ground truth):
public void testUnmarshallerJsonIncludeRoot() throws Exception {
  u.setProperty(UnmarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  u.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT,true);
  assertTrue((Boolean)u.getProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT));
  u.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT,false);
  assertFalse((Boolean)u.getProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT));
  try {
    u.setProperty(UnmarshallerProperties.JSON_INCLUDE_ROOT,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65100
Project: 65100
Buggy source:
public void testUnmarshallerJsonNamespacePrefixMapper() throws Exception {
  NamespacePrefixMapper mapper=new MyPrefixMapper();
  u.setProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,u.getProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER));
  HashMap<String,String> map=new HashMap<String,String>();
  map.put("String_Node_Str","String_Node_Str");
  u.setProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER,map);
  assertEquals(map,u.getProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER));
}

Fixed version (ground truth):
public void testUnmarshallerJsonNamespacePrefixMapper() throws Exception {
  NamespacePrefixMapper mapper=new MyPrefixMapper();
  u.setProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,u.getProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER));
  HashMap<String,String> map=new HashMap<String,String>();
  map.put("String_Node_Str","String_Node_Str");
  u.setProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER,map);
  assertEquals(map,u.getProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER));
  u.setProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER,null);
  assertNull(u.getProperty(UnmarshallerProperties.JSON_NAMESPACE_PREFIX_MAPPER));
}
Program: 65101
Project: 65101
Buggy source:
public void testMarshallerSchemaLoc() throws Exception {
  m.setProperty(Marshaller.JAXB_SCHEMA_LOCATION,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(Marshaller.JAXB_SCHEMA_LOCATION));
}

Fixed version (ground truth):
public void testMarshallerSchemaLoc() throws Exception {
  m.setProperty(Marshaller.JAXB_SCHEMA_LOCATION,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(Marshaller.JAXB_SCHEMA_LOCATION));
  m.setProperty(Marshaller.JAXB_SCHEMA_LOCATION,null);
  assertNull(m.getProperty(Marshaller.JAXB_SCHEMA_LOCATION));
}
Program: 65102
Project: 65102
Buggy source:
public void testMarshallerIndentString() throws Exception {
  String SUN_INDENT_STRING="String_Node_Str";
  String SUN_JSE_INDENT_STRING="String_Node_Str";
  String myTab="String_Node_Str";
  m.setProperty(MarshallerProperties.INDENT_STRING,myTab);
  assertEquals(myTab,m.getProperty(MarshallerProperties.INDENT_STRING));
  m.setProperty(SUN_INDENT_STRING,myTab);
  assertEquals(myTab,m.getProperty(SUN_INDENT_STRING));
  m.setProperty(SUN_JSE_INDENT_STRING,myTab);
  assertEquals(myTab,m.getProperty(SUN_JSE_INDENT_STRING));
}

Fixed version (ground truth):
public void testMarshallerIndentString() throws Exception {
  String SUN_INDENT_STRING="String_Node_Str";
  String SUN_JSE_INDENT_STRING="String_Node_Str";
  String myTab="String_Node_Str";
  m.setProperty(MarshallerProperties.INDENT_STRING,myTab);
  assertEquals(myTab,m.getProperty(MarshallerProperties.INDENT_STRING));
  m.setProperty(SUN_INDENT_STRING,myTab);
  assertEquals(myTab,m.getProperty(SUN_INDENT_STRING));
  m.setProperty(SUN_JSE_INDENT_STRING,myTab);
  assertEquals(myTab,m.getProperty(SUN_JSE_INDENT_STRING));
  m.setProperty(SUN_JSE_INDENT_STRING,null);
  assertNull(m.getProperty(SUN_JSE_INDENT_STRING));
  m.setProperty(SUN_INDENT_STRING,null);
  assertNull(m.getProperty(SUN_INDENT_STRING));
}
Program: 65103
Project: 65103
Buggy source:
public void testUnmarshallerJsonAttributePrefix() throws Exception {
  u.setProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX,"String_Node_Str");
  assertEquals("String_Node_Str",u.getProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX));
}

Fixed version (ground truth):
public void testUnmarshallerJsonAttributePrefix() throws Exception {
  u.setProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX,"String_Node_Str");
  assertEquals("String_Node_Str",u.getProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX));
  u.setProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX,null);
  assertNull(u.getProperty(UnmarshallerProperties.JSON_ATTRIBUTE_PREFIX));
}
Program: 65104
Project: 65104
Buggy source:
public void testMarshallerJsonNamespaceSeparator() throws Exception {
  assertEquals(XMLConstants.DOT,m.getProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  m.setProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR,'&');
  assertEquals('&',m.getProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  m.setProperty(MarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals('&',m.getProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR));
}

Fixed version (ground truth):
public void testMarshallerJsonNamespaceSeparator() throws Exception {
  assertEquals(XMLConstants.DOT,m.getProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  m.setProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR,'&');
  assertEquals('&',m.getProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  m.setProperty(MarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals('&',m.getProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  try {
    m.setProperty(MarshallerProperties.JSON_NAMESPACE_SEPARATOR,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65105
Project: 65105
Buggy source:
public void testMarshallerJsonValueWrapper() throws Exception {
  m.setProperty(MarshallerProperties.JSON_VALUE_WRAPPER,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(MarshallerProperties.JSON_VALUE_WRAPPER));
}

Fixed version (ground truth):
public void testMarshallerJsonValueWrapper() throws Exception {
  m.setProperty(MarshallerProperties.JSON_VALUE_WRAPPER,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(MarshallerProperties.JSON_VALUE_WRAPPER));
  m.setProperty(MarshallerProperties.JSON_VALUE_WRAPPER,null);
  assertEquals(null,m.getProperty(MarshallerProperties.JSON_VALUE_WRAPPER));
}
Program: 65106
Project: 65106
Buggy source:
public void testMarshallerNoNamespaceSchemaLoc() throws Exception {
  m.setProperty(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION));
}

Fixed version (ground truth):
public void testMarshallerNoNamespaceSchemaLoc() throws Exception {
  m.setProperty(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION,"String_Node_Str");
  assertEquals("String_Node_Str",m.getProperty(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION));
  m.setProperty(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION,null);
  assertNull(m.getProperty(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION));
}
Program: 65107
Project: 65107
Buggy source:
public void testUnmarshallerJsonNamespaceSeparator() throws Exception {
  assertEquals(XMLConstants.DOT,m.getProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  m.setProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR,'&');
  assertEquals('&',m.getProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  m.setProperty(UnmarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals('&',m.getProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR));
}

Fixed version (ground truth):
public void testUnmarshallerJsonNamespaceSeparator() throws Exception {
  assertEquals(XMLConstants.DOT,m.getProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  u.setProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR,'&');
  assertEquals('&',u.getProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  u.setProperty(UnmarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals('&',u.getProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR));
  try {
    u.setProperty(UnmarshallerProperties.JSON_NAMESPACE_SEPARATOR,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65108
Project: 65108
Buggy source:
public void testMarshallerJaxbFragment() throws Exception {
  m.setProperty(XMLConstants.JAXB_FRAGMENT,true);
  assertTrue((Boolean)m.getProperty(XMLConstants.JAXB_FRAGMENT));
  m.setProperty(XMLConstants.JAXB_FRAGMENT,false);
  assertFalse((Boolean)m.getProperty(XMLConstants.JAXB_FRAGMENT));
}

Fixed version (ground truth):
public void testMarshallerJaxbFragment() throws Exception {
  m.setProperty(XMLConstants.JAXB_FRAGMENT,true);
  assertTrue((Boolean)m.getProperty(XMLConstants.JAXB_FRAGMENT));
  m.setProperty(XMLConstants.JAXB_FRAGMENT,false);
  assertFalse((Boolean)m.getProperty(XMLConstants.JAXB_FRAGMENT));
  try {
    m.setProperty(Marshaller.JAXB_FRAGMENT,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65109
Project: 65109
Buggy source:
public void testUnmarshallerMediaTypeString() throws Exception {
  u.setProperty(UnmarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals(MediaType.APPLICATION_JSON,u.getProperty(UnmarshallerProperties.MEDIA_TYPE));
}

Fixed version (ground truth):
public void testUnmarshallerMediaTypeString() throws Exception {
  u.setProperty(UnmarshallerProperties.MEDIA_TYPE,"String_Node_Str");
  assertEquals(MediaType.APPLICATION_JSON,u.getProperty(UnmarshallerProperties.MEDIA_TYPE));
  try {
    u.setProperty(MarshallerProperties.MEDIA_TYPE,null);
  }
 catch (  PropertyException pException) {
    return;
  }
  fail("String_Node_Str");
}
Program: 65110
Project: 65110
Buggy source:
public void testMarshallerNamespacePrefixMapper() throws Exception {
  String SUN_NAMESPACE_PREFIX_MAPPER="String_Node_Str";
  String SUN_JSE_NAMESPACE_PREFIX_MAPPER="String_Node_Str";
  NamespacePrefixMapper mapper=new MyPrefixMapper();
  m.setProperty(MarshallerProperties.NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,m.getProperty(MarshallerProperties.NAMESPACE_PREFIX_MAPPER));
  m.setProperty(SUN_NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,m.getProperty(SUN_NAMESPACE_PREFIX_MAPPER));
  m.setProperty(SUN_JSE_NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,m.getProperty(SUN_JSE_NAMESPACE_PREFIX_MAPPER));
}

Fixed version (ground truth):
public void testMarshallerNamespacePrefixMapper() throws Exception {
  String SUN_NAMESPACE_PREFIX_MAPPER="String_Node_Str";
  String SUN_JSE_NAMESPACE_PREFIX_MAPPER="String_Node_Str";
  NamespacePrefixMapper mapper=new MyPrefixMapper();
  m.setProperty(MarshallerProperties.NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,m.getProperty(MarshallerProperties.NAMESPACE_PREFIX_MAPPER));
  m.setProperty(SUN_NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,m.getProperty(SUN_NAMESPACE_PREFIX_MAPPER));
  m.setProperty(SUN_JSE_NAMESPACE_PREFIX_MAPPER,mapper);
  assertEquals(mapper,m.getProperty(SUN_JSE_NAMESPACE_PREFIX_MAPPER));
  m.setProperty(SUN_NAMESPACE_PREFIX_MAPPER,null);
}