nus-yam/ex-repair huggingface dataset:
Program: 19199
Project: 19199
Buggy source:
public PointGeocachingDataWaypoint toPointGeocachingDataWaypoint(){
  PointGeocachingDataWaypoint w=new PointGeocachingDataWaypoint();
  w.lat=latitude;
  w.lon=longitude;
  w.description=note;
  w.name=name;
  w.typeImagePath=iconName;
  w.type=wayPointType.getId();
  return w;
}

Fixed version (ground truth):
public PointGeocachingDataWaypoint toPointGeocachingDataWaypoint(){
  PointGeocachingDataWaypoint w=new PointGeocachingDataWaypoint();
  w.code=waypointGeoCode;
  w.lat=latitude;
  w.lon=longitude;
  w.description=note;
  w.name=name;
  w.typeImagePath=iconName;
  w.type=wayPointType.getId();
  Log.i("String_Node_Str","String_Node_Str");
  Log.i("String_Node_Str","String_Node_Str" + w.code);
  Log.i("String_Node_Str","String_Node_Str" + w.description);
  Log.i("String_Node_Str","String_Node_Str" + w.name);
  Log.i("String_Node_Str","String_Node_Str" + w.type);
  return w;
}
Program: 19200
Project: 19200
Buggy source:
public static WayPoint parse(JsonReader r) throws IOException {
  double longitude=Double.NaN;
  double latitude=Double.NaN;
  Date time=new Date(0);
  String waypointGeoCode="String_Node_Str";
  String waypointName="String_Node_Str";
  String note="String_Node_Str";
  WayPointType wayPointType=WayPointType.ReferencePoint;
  r.beginObject();
  while (r.hasNext()) {
    String name=r.nextName();
    if ("String_Node_Str".equals(name)) {
      longitude=r.nextDouble();
    }
 else     if ("String_Node_Str".equals(name)) {
      latitude=r.nextDouble();
    }
 else     if ("String_Node_Str".equals(name)) {
      time=parseJsonDate(r.nextString());
    }
 else     if ("String_Node_Str".equals(name)) {
      waypointGeoCode=r.nextString();
    }
 else     if ("String_Node_Str".equals(name)) {
      waypointName=r.nextString();
    }
 else     if ("String_Node_Str".equals(name)) {
      note=r.nextString();
    }
 else     if ("String_Node_Str".equals(name)) {
      wayPointType=WayPointType.parseWayPointType(r.nextString());
    }
 else {
      r.skipValue();
    }
  }
  r.endObject();
  return new WayPoint(longitude,latitude,time,waypointGeoCode,waypointName,note,wayPointType);
}

Fixed version (ground truth):
public static WayPoint parse(JsonReader r) throws IOException {
  double longitude=Double.NaN;
  double latitude=Double.NaN;
  Date time=new Date(0);
  String waypointGeoCode="String_Node_Str";
  String waypointName="String_Node_Str";
  String note="String_Node_Str";
  WayPointType wayPointType=WayPointType.ReferencePoint;
  r.beginObject();
  while (r.hasNext()) {
    String name=r.nextName();
    if ("String_Node_Str".equals(name)) {
      longitude=r.nextDouble();
    }
 else     if ("String_Node_Str".equals(name)) {
      latitude=r.nextDouble();
    }
 else     if ("String_Node_Str".equals(name)) {
      time=parseJsonDate(r.nextString());
    }
 else     if ("String_Node_Str".equals(name)) {
      waypointGeoCode=r.nextString();
    }
 else     if ("String_Node_Str".equals(name)) {
      wayPointType=WayPointType.parseWayPointType(r.nextString());
    }
 else     if ("String_Node_Str".equals(name)) {
      waypointName=r.nextString();
    }
 else     if ("String_Node_Str".equals(name)) {
      note=r.nextString();
    }
 else {
      r.skipValue();
    }
  }
  r.endObject();
  return new WayPoint(longitude,latitude,time,waypointGeoCode,waypointName,note,wayPointType);
}
Program: 19201
Project: 19201
Buggy source:
@Override public PointGeocachingData[] newArray(int size){
  return new PointGeocachingData[size];
}

Fixed version (ground truth):
public PointGeocachingData[] newArray(int size){
  return new PointGeocachingData[size];
}
Program: 19202
Project: 19202
Buggy source:
@Override public PointGeocachingData createFromParcel(Parcel in){
  return new PointGeocachingData(in);
}

Fixed version (ground truth):
public PointGeocachingData createFromParcel(Parcel in){
  return new PointGeocachingData(in);
}
Program: 19204
Project: 19204
Buggy source:
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeInt(VERSION);
  dest.writeInt(id);
  dest.writeString(cacheID);
  dest.writeInt(available ? 1 : 0);
  dest.writeInt(archived ? 1 : 0);
  dest.writeInt(premiumOnly ? 1 : 0);
  dest.writeString(name);
  dest.writeString(lastUpdated);
  dest.writeString(exported);
  dest.writeString(placedBy);
  dest.writeString(owner);
  dest.writeString(hidden);
  dest.writeInt(type);
  dest.writeInt(container);
  dest.writeFloat(difficulty);
  dest.writeFloat(terrain);
  dest.writeString(country);
  dest.writeString(state);
  try {
    ByteArrayOutputStream baos=new ByteArrayOutputStream();
    GZIPOutputStream zos=new GZIPOutputStream(baos);
    zos.write(shortDescription.getBytes("String_Node_Str"));
    zos.write(longDescription.getBytes("String_Node_Str"));
    zos.close();
    byte[] data=baos.toByteArray();
    baos.close();
    dest.writeInt(data.length);
    dest.writeInt(shortDescription.length());
    dest.writeByteArray(data);
  }
 catch (  Exception e) {
    Log.e("String_Node_Str","String_Node_Str",e);
  }
  dest.writeString(encodedHints);
  dest.writeList(attributes);
  dest.writeList(logs);
  dest.writeList(travelBugs);
  dest.writeList(waypoints);
  dest.writeString(notes);
  dest.writeInt(computed ? 1 : 0);
}

Fixed version (ground truth):
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeInt(VERSION);
  dest.writeInt(id);
  dest.writeString(cacheID);
  dest.writeInt(available ? 1 : 0);
  dest.writeInt(archived ? 1 : 0);
  dest.writeInt(premiumOnly ? 1 : 0);
  dest.writeString(name);
  dest.writeString(lastUpdated);
  dest.writeString(exported);
  dest.writeString(placedBy);
  dest.writeString(owner);
  dest.writeString(hidden);
  dest.writeInt(type);
  dest.writeInt(container);
  dest.writeFloat(difficulty);
  dest.writeFloat(terrain);
  dest.writeString(country);
  dest.writeString(state);
  try {
    ByteArrayOutputStream baos=new ByteArrayOutputStream();
    GZIPOutputStream zos=new GZIPOutputStream(baos);
    zos.write(shortDescription.getBytes("String_Node_Str"));
    zos.write(longDescription.getBytes("String_Node_Str"));
    zos.close();
    byte[] data=baos.toByteArray();
    baos.close();
    dest.writeInt(data.length);
    dest.writeInt(shortDescription.length());
    dest.writeByteArray(data);
  }
 catch (  Exception e) {
    Log.e("String_Node_Str","String_Node_Str",e);
  }
  dest.writeString(encodedHints);
  dest.writeList(attributes);
  dest.writeList(logs);
  dest.writeList(travelBugs);
  dest.writeList(waypoints);
  dest.writeString(notes);
  dest.writeInt(computed ? 1 : 0);
  dest.writeInt(found ? 1 : 0);
}
Program: 19206
Project: 19206
Buggy source:
/** 
 * Gets the single instance of AuthenticatorStore.
 * @return single instance of AuthenticatorStore
 */
public static AuthenticatorStore getInstance(){
  if (s_instance == null) {
    s_instance=new AuthenticatorStore();
    s_instance.initialize();
  }
  return s_instance;
}

Fixed version (ground truth):
/** 
 * Gets the single instance of AuthenticatorStore.
 * @return single instance of AuthenticatorStore
 */
public static AuthenticatorStore getInstance(){
  if (s_instance == null) {
    AuthenticatorStore s=new AuthenticatorStore();
    s.initialize();
    s_instance=s;
  }
  return s_instance;
}
Program: 19208
Project: 19208
Buggy source:
@Override public void propertyChange(PropertyChangeEvent event){
  if (!CACHE_ON_PROPERTY_EXTERNAL_NAME.equals(event.getPropertyName())) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str" + event.getPropertyName() + "String_Node_Str");
    }
    return;
  }
  Object newValue=event.getNewValue();
  if (newValue == null) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str");
    }
    return;
  }
  Object oldValue=event.getOldValue();
  if (newValue.equals(oldValue)) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str");
    }
    return;
  }
  if (!(newValue instanceof Boolean)) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str" + newValue + ((newValue == null) ? "String_Node_Str" : "String_Node_Str" + newValue.getClass().getName())+ "String_Node_Str");
    }
  }
  boolean newCacheOn=((Boolean)newValue).booleanValue();
  if (LOGGER.isLogEnabled(LogLevel.INFO)) {
    LOGGER.log(LogLevel.INFO,"String_Node_Str" + (newCacheOn ? "String_Node_Str" : "String_Node_Str"));
  }
  InternalAuthorizationServiceImpl.getInstance().setCacheOn(newCacheOn);
}

Fixed version (ground truth):
@Override public void propertyChange(PropertyChangeEvent event){
  if (!CACHE_ON_PROPERTY_EXTERNAL_NAME.equals(event.getPropertyName())) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str" + event.getPropertyName() + "String_Node_Str");
    }
    return;
  }
  Object newValue=event.getNewValue();
  if (newValue == null) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str");
    }
    return;
  }
  Object oldValue=event.getOldValue();
  if (newValue.equals(oldValue)) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str");
    }
    return;
  }
  if (!(newValue instanceof Boolean)) {
    if (LOGGER.isLogEnabled(LogLevel.WARN)) {
      LOGGER.log(LogLevel.WARN,"String_Node_Str" + newValue + "String_Node_Str"+ newValue.getClass().getName()+ "String_Node_Str");
    }
  }
  boolean newCacheOn=((Boolean)newValue).booleanValue();
  if (LOGGER.isLogEnabled(LogLevel.INFO)) {
    LOGGER.log(LogLevel.INFO,"String_Node_Str" + (newCacheOn ? "String_Node_Str" : "String_Node_Str"));
  }
  InternalAuthorizationServiceImpl.getInstance().setCacheOn(newCacheOn);
}
Program: 19209
Project: 19209
Buggy source:
private void checkPolices(IsRateLimitedResponse response,IsRateLimitedRequest request){
  if (RateLimiterStatus.SERVE_OK.equals(response.getStatus()) || RateLimiterStatus.SERVE_GIF.equals(response.getStatus())) {
    RateLimiterPolicy rlPolicy=new RateLimiterPolicy(request);
    rlPolicy.setConsumer(consumer);
    BlackListPolicy blPolicy=new BlackListPolicy(request);
    WhiteListPolicy wlPolicy=new WhiteListPolicy(request);
    response=response == null ? new IsRateLimitedResponse() : response;
    try {
      blPolicy.evaluate(response,request);
      wlPolicy.evaluate(response,request);
      rlPolicy.evaluate(response,request);
    }
 catch (    RateLimiterException e) {
    }
  }
}

Fixed version (ground truth):
private void checkPolices(IsRateLimitedResponse response,IsRateLimitedRequest request){
  IsRateLimitedResponse isRateLimitedResponse=response;
  if (isRateLimitedResponse == null) {
    isRateLimitedResponse=new IsRateLimitedResponse();
  }
  if (RateLimiterStatus.SERVE_OK.equals(isRateLimitedResponse.getStatus()) || RateLimiterStatus.SERVE_GIF.equals(isRateLimitedResponse.getStatus())) {
    RateLimiterPolicy rlPolicy=new RateLimiterPolicy(request);
    rlPolicy.setConsumer(consumer);
    BlackListPolicy blPolicy=new BlackListPolicy(request);
    WhiteListPolicy wlPolicy=new WhiteListPolicy(request);
    try {
      blPolicy.evaluate(isRateLimitedResponse,request);
      wlPolicy.evaluate(isRateLimitedResponse,request);
      rlPolicy.evaluate(isRateLimitedResponse,request);
    }
 catch (    RateLimiterException e) {
    }
  }
}
Program: 19210
Project: 19210
Buggy source:
/** 
 * Gets the active effects.
 * @return the active effects
 */
protected Map<String,RateLimiterPolicyModel> getActiveEffects(){
  activeEffect=(activeEffect == null) ? new HashMap<String,RateLimiterPolicyModel>() : activeEffect;
  return activeEffect;
}

Fixed version (ground truth):
/** 
 * Gets the active effects.
 * @return the active effects
 */
protected Map<String,RateLimiterPolicyModel> getActiveEffects(){
  if (activeEffect == null) {
    activeEffect=new HashMap<String,RateLimiterPolicyModel>();
  }
  return activeEffect;
}
Program: 19211
Project: 19211
Buggy source:
/** 
 * Gets the active rl.
 * @return the active rl
 */
protected Map<String,RateLimiterPolicyModel> getActiveRL(){
  activeRL=(activeRL == null) ? new HashMap<String,RateLimiterPolicyModel>() : activeRL;
  return activeRL;
}

Fixed version (ground truth):
/** 
 * Gets the active rl.
 * @return the active rl
 */
protected Map<String,RateLimiterPolicyModel> getActiveRL(){
  if (activeRL == null) {
    activeRL=new HashMap<String,RateLimiterPolicyModel>();
  }
  return activeRL;
}
Program: 19212
Project: 19212
Buggy source:
private static CommonErrorData getConfigError(RateLimiterServiceProviderConfigManager configMngr){
  return ErrorDataFactory.createErrorData(ErrorConstants.SVC_RATELIMITER_INVALID_PROVIDER_CONFIGURATION,ErrorConstants.ERRORDOMAIN.toString(),new Object[]{new String("String_Node_Str"),configMngr.getConfigPath() + configMngr.getConfigFileName()});
}

Fixed version (ground truth):
private static CommonErrorData getConfigError(RateLimiterServiceProviderConfigManager configMngr){
  return ErrorDataFactory.createErrorData(ErrorConstants.SVC_RATELIMITER_INVALID_PROVIDER_CONFIGURATION,ErrorConstants.ERRORDOMAIN.toString(),new Object[]{"String_Node_Str",configMngr.getConfigPath() + configMngr.getConfigFileName()});
}
Program: 19213
Project: 19213
Buggy source:
/** 
 * Creates the.
 * @param providerKey the provider key
 * @return the rate limiter provider
 * @throws ServiceException the service exception
 */
public static RateLimiterProvider create(String providerKey) throws ServiceException {
  if (s_errorData != null)   throw new ServiceException(s_errorData);
  if (providerKey == null)   providerKey=s_defaultProviderKey;
  RateLimiterProvider providerImpl=s_serviceProviderMap.get(providerKey);
  RateLimiterServiceProviderConfigManager configMngr=RateLimiterServiceProviderConfigManager.getInstance();
  if (providerImpl == null) {
    if (s_failedProviders.contains(providerKey)) {
      new ServiceException(getConfigError(configMngr));
    }
synchronized (RateLimiterServiceProviderFactory.class) {
      providerImpl=s_serviceProviderMap.get(providerKey);
      if (providerImpl == null) {
        try {
          String providerImplClassName=configMngr.getConfig().getProviderImplClassName(providerKey);
          if (providerImplClassName != null) {
            providerImpl=getServiceDataModelProviderInstance(providerImplClassName);
            if (providerImpl != null)             s_serviceProviderMap.put(providerKey,providerImpl);
          }
        }
 catch (        ConfigurationException ce) {
          s_Logger.log(Level.SEVERE,"String_Node_Str",ce);
        }
      }
      if (providerImpl == null) {
        s_failedProviders.add(providerKey);
      }
    }
    if (providerImpl == null) {
      throw new ServiceException(getConfigError(configMngr));
    }
  }
  return providerImpl;
}

Fixed version (ground truth):
/** 
 * Creates the.
 * @param providerKey the provider key
 * @return the rate limiter provider
 * @throws ServiceException the service exception
 */
public static RateLimiterProvider create(String providerKey) throws ServiceException {
  if (s_errorData != null)   throw new ServiceException(s_errorData);
  if (providerKey == null)   providerKey=s_defaultProviderKey;
  RateLimiterProvider providerImpl=s_serviceProviderMap.get(providerKey);
  RateLimiterServiceProviderConfigManager configMngr=RateLimiterServiceProviderConfigManager.getInstance();
  if (providerImpl == null) {
    if (s_failedProviders.contains(providerKey)) {
      throw new ServiceException(getConfigError(configMngr));
    }
synchronized (RateLimiterServiceProviderFactory.class) {
      providerImpl=s_serviceProviderMap.get(providerKey);
      if (providerImpl == null) {
        try {
          String providerImplClassName=configMngr.getConfig().getProviderImplClassName(providerKey);
          if (providerImplClassName != null) {
            providerImpl=getServiceDataModelProviderInstance(providerImplClassName);
            if (providerImpl != null)             s_serviceProviderMap.put(providerKey,providerImpl);
          }
        }
 catch (        ConfigurationException ce) {
          s_Logger.log(Level.SEVERE,"String_Node_Str",ce);
        }
      }
      if (providerImpl == null) {
        s_failedProviders.add(providerKey);
      }
    }
    if (providerImpl == null) {
      throw new ServiceException(getConfigError(configMngr));
    }
  }
  return providerImpl;
}
Program: 19214
Project: 19214
Buggy source:
/** 
 * Testsimple exp.
 */
@Test public void testsimpleExp(){
  Boolean flag;
  try {
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",false,flag);
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",false,flag);
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",true,flag);
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",false,flag);
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
/** 
 * Testsimple exp.
 */
@Test public void testsimpleExp() throws Exception {
  Boolean flag;
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",false,flag);
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",false,flag);
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",true,flag);
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",false,flag);
}
Program: 19215
Project: 19215
Buggy source:
/** 
 * Test or exp.
 */
@Test public void testOrExp(){
  Boolean flag;
  try {
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",false,flag);
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",false,flag);
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",true,flag);
    flag=limiterUtils.getFinalresult("String_Node_Str");
    assertEquals("String_Node_Str",false,flag);
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
/** 
 * Test or exp.
 */
@Test public void testOrExp() throws Exception {
  Boolean flag;
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",false,flag);
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",false,flag);
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",true,flag);
  flag=limiterUtils.getFinalresult("String_Node_Str");
  assertEquals("String_Node_Str",false,flag);
}
Program: 19216
Project: 19216
Buggy source:
/** 
 * Escaping mechanism for standard text-to-HTML. Will convert newlines to `<br/>`
 * @param text
 * @return
 */
public static String htmlEscape(String text){
  return htmlEscape(text,true);
}

Fixed version (ground truth):
/** 
 * Escaping mechanism for standard text-to-HTML
 * @param text
 * @return
 */
public static String htmlEscape(String text){
  return htmlEscape(text,false);
}
Program: 19217
Project: 19217
Buggy source:
/** 
 * Escaping mechanism for HTML tag attribute strings.
 * @param text
 * @return
 */
public static String htmlAttributeEscape(String text){
  return htmlEscape(text,true,true);
}

Fixed version (ground truth):
/** 
 * Escaping mechanism for HTML tag attribute strings.
 * @param text
 * @return
 */
public static String htmlAttributeEscape(String text){
  return htmlEscape(text,true,false);
}
Program: 19218
Project: 19218
Buggy source:
private Set<String> getClassesFromDirectory(File directory,String basepath,Set<String> classes) throws IOException {
  if (directory.exists()) {
    for (    File current : directory.listFiles()) {
      if (current.isFile()) {
        if (current.getCanonicalPath().endsWith("String_Node_Str")) {
          String className=current.getCanonicalPath().substring(basepath.length(),current.getCanonicalPath().length() - 6).replace('/','.').replaceAll("String_Node_Str","String_Node_Str");
          classes.add(className);
        }
      }
 else       if (recursive) {
        classes.addAll(getClassesFromDirectory(current,basepath,classes));
      }
    }
  }
  return classes;
}

Fixed version (ground truth):
private Set<String> getClassesFromDirectory(File directory,String basepath,Set<String> classes) throws IOException {
  try {
    if (directory.exists()) {
      for (      File current : directory.listFiles()) {
        if (current.isFile()) {
          if (current.getCanonicalPath().endsWith("String_Node_Str")) {
            String className=current.getCanonicalPath().substring(basepath.length(),current.getCanonicalPath().length() - 6).replace('/','.').replaceAll("String_Node_Str","String_Node_Str");
            classes.add(className);
          }
        }
 else         if (recursive) {
          classes.addAll(getClassesFromDirectory(current,basepath,classes));
        }
      }
    }
  }
 catch (  Throwable e) {
    log.warn("String_Node_Str" + directory,e);
  }
  return classes;
}
Program: 19225
Project: 19225
Buggy source:
public List<Double> getProfileHeightsForStation(String station){
  List<Double> profHeights;
  if (this.numberHeightsForStation.containsKey(station)) {
    profHeights=this.numberHeightsForStation.get(station);
  }
 else {
    profHeights=new ArrayList<Double>();
  }
  return profHeights;
}

Fixed version (ground truth):
public List<Double> getProfileHeightsForStation(int stationNum){
  Station stat=tsStationList.get(stationNum);
  String statStr=null;
  if (stat != null) {
    statStr=stat.getName();
  }
  return getProfileHeightsForStation(statStr);
}
Program: 19230
Project: 19230
Buggy source:
protected Attribute[] getAttributesOfVariable(String varName){
  Variable var;
  if (featureDataset != null) {
    var=(Variable)featureDataset.getDataVariable(varName);
  }
 else {
    var=netCDFDataset.findVariable(varName);
  }
  if (var != null) {
    return var.getAttributes().toArray(new Attribute[var.getAttributes().size()]);
  }
  return null;
}

Fixed version (ground truth):
protected Attribute[] getAttributesOfVariable(String varName){
  VariableSimpleIF var;
  if (featureDataset != null) {
    var=featureDataset.getDataVariable(varName);
  }
 else {
    var=netCDFDataset.findVariable(varName);
  }
  if (var != null) {
    return var.getAttributes().toArray(new Attribute[var.getAttributes().size()]);
  }
  return null;
}
Program: 19234
Project: 19234
Buggy source:
public void setComponentLocation(String componentName,String srs,List<String> pos){
  Element parent=getComponent(componentName);
  if (parent == null)   return;
  parent=(Element)parent.getElementsByTagName("String_Node_Str").item(0);
  parent=addNewNode(parent,"String_Node_Str","String_Node_Str",srs);
  for (  String str : pos) {
    addNewNode(parent,"String_Node_Str",str);
  }
}

Fixed version (ground truth):
public void setComponentLocation(String componentName,String srs,String lowerCorner,String upperCorner){
  Element parent=getComponent(componentName);
  if (parent == null)   return;
  parent=(Element)parent.getElementsByTagName("String_Node_Str").item(0);
  parent=addNewNode(parent,"String_Node_Str","String_Node_Str",srs);
  addNewNode(parent,"String_Node_Str",lowerCorner);
  addNewNode(parent,"String_Node_Str",upperCorner);
}
Program: 19236
Project: 19236
Buggy source:
@Override public String getDataResponse(int stNum){
  try {
    System.out.println("String_Node_Str" + stNum);
    if (profileData != null && profileList.containsKey((Integer)stNum)) {
      return createProfileFeature(stNum);
    }
 else {
      System.out.println("String_Node_Str");
    }
  }
 catch (  IOException ex) {
    Logger.getLogger(Profile.class.getName()).log(Level.SEVERE,null,ex);
    return DATA_RESPONSE_ERROR + Profile.class;
  }
  return DATA_RESPONSE_ERROR + Profile.class;
}

Fixed version (ground truth):
@Override public String getDataResponse(int stNum){
  try {
    if (profileData != null && profileList.containsKey((Integer)stNum)) {
      return createProfileFeature(stNum);
    }
 else {
      System.out.println("String_Node_Str");
    }
  }
 catch (  IOException ex) {
    Logger.getLogger(Profile.class.getName()).log(Level.SEVERE,null,ex);
    return DATA_RESPONSE_ERROR + Profile.class;
  }
  return DATA_RESPONSE_ERROR + Profile.class;
}
Program: 19237
Project: 19237
Buggy source:
/** 
 */
private void addProfileData(List<String> valueList,DateFormatter dateFormatter,StringBuilder builder,PointFeatureIterator profileIterator,int stNum){
  try {
    while (profileIterator.hasNext()) {
      PointFeature pointFeature=profileIterator.next();
      String profileID=getProfileIDFromProfile(pointFeature);
      System.out.println("String_Node_Str" + stNum + "String_Node_Str"+ profileID);
      if (profileID != null) {
        valueList.clear();
        valueList.add("String_Node_Str" + dateFormatter.toDateTimeStringISO(pointFeature.getObservationTimeAsDate()));
        valueList.add("String_Node_Str" + stNum);
        addProfileDataToBuilder(valueList,pointFeature,builder);
      }
    }
  }
 catch (  Exception ex) {
    builder.delete(0,builder.length());
    builder.append("String_Node_Str").append(ex.getLocalizedMessage()).append("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 */
private void addProfileData(List<String> valueList,DateFormatter dateFormatter,StringBuilder builder,PointFeatureIterator profileIterator,int stNum){
  try {
    while (profileIterator.hasNext()) {
      PointFeature pointFeature=profileIterator.next();
      String profileID=getProfileIDFromProfile(pointFeature);
      if (profileID != null) {
        valueList.clear();
        valueList.add("String_Node_Str" + dateFormatter.toDateTimeStringISO(pointFeature.getObservationTimeAsDate()));
        valueList.add("String_Node_Str" + stNum);
        addProfileDataToBuilder(valueList,pointFeature,builder);
      }
    }
  }
 catch (  Exception ex) {
    builder.delete(0,builder.length());
    builder.append("String_Node_Str").append(ex.getLocalizedMessage()).append("String_Node_Str");
  }
}
Program: 19239
Project: 19239
Buggy source:
/** 
 * @param stationName
 * @param eventTime
 * @param variableNames
 */
public Profile(String[] stationName,String[] eventTime,String[] variableNames){
  startDate=null;
  endDate=null;
  this.variableNames=variableNames;
  this.reqStationNames=new ArrayList<String>();
  reqStationNames.addAll(Arrays.asList(stationName));
  System.out.println("String_Node_Str" + reqStationNames.size() + "String_Node_Str");
  this.eventTimes=new ArrayList<String>();
  if (eventTime != null)   this.eventTimes.addAll(Arrays.asList(eventTime));
  lowerAlt=Double.POSITIVE_INFINITY;
  upperAlt=Double.NEGATIVE_INFINITY;
}

Fixed version (ground truth):
/** 
 * @param stationName
 * @param eventTime
 * @param variableNames
 */
public Profile(String[] stationName,String[] eventTime,String[] variableNames){
  startDate=null;
  endDate=null;
  this.variableNames=variableNames;
  this.reqStationNames=new ArrayList<String>();
  reqStationNames.addAll(Arrays.asList(stationName));
  this.eventTimes=new ArrayList<String>();
  if (eventTime != null)   this.eventTimes.addAll(Arrays.asList(eventTime));
  lowerAlt=Double.POSITIVE_INFINITY;
  upperAlt=Double.NEGATIVE_INFINITY;
}
Program: 19240
Project: 19240
Buggy source:
private static String getProfileIDFromProfile(PointFeature pointFeature){
  String profileID=null;
  try {
    profileID=(pointFeature.getData().getScalarObject("String_Node_Str").toString());
  }
 catch (  Exception e) {
    System.out.println(e.toString());
  }
  return profileID;
}

Fixed version (ground truth):
private static String getProfileIDFromProfile(PointFeature pointFeature){
  String profileID=null;
  try {
    profileID=(pointFeature.getData().getScalarObject("String_Node_Str").toString());
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str" + e.toString());
    profileID="String_Node_Str";
  }
  return profileID;
}
Program: 19242
Project: 19242
Buggy source:
@Override public String getStationName(int idNum){
  if (sectionList != null) {
    System.out.println("String_Node_Str" + idNum);
    return "String_Node_Str" + sectionList.get(idNum).getName();
  }
 else {
    return Invalid_Station;
  }
}

Fixed version (ground truth):
@Override public String getStationName(int idNum){
  if (sectionList != null) {
    return "String_Node_Str" + sectionList.get(idNum).getName();
  }
 else {
    return Invalid_Station;
  }
}
Program: 19244
Project: 19244
Buggy source:
private void createTimeSeriesData(List<String> valueList,DateFormatter dateFormatter,PointFeature pointFeature,StringBuilder builder,int stNum){
  valueList.clear();
  valueList.add("String_Node_Str" + dateFormatter.toDateTimeStringISO(pointFeature.getObservationTimeAsDate()));
  try {
    for (    String variableName : variableNames) {
      valueList.add(variableName + "String_Node_Str" + pointFeature.getData().getScalarObject(variableName).toString());
    }
  }
 catch (  Exception ex) {
    builder.delete(0,builder.length());
    builder.append("String_Node_Str").append(ex.getLocalizedMessage()).append("String_Node_Str");
    return;
  }
  for (int i=0; i < valueList.size(); i++) {
    builder.append(valueList.get(i));
    if (i < valueList.size() - 1) {
      builder.append("String_Node_Str");
    }
  }
  try {
    if (tsData.getStationFeature(tsStationList.get(stNum)).size() > 1) {
      builder.append("String_Node_Str");
    }
  }
 catch (  Exception ex) {
    builder=new StringBuilder();
    builder.append("String_Node_Str").append(ex.getLocalizedMessage());
  }
}

Fixed version (ground truth):
private void createTimeSeriesData(List<String> valueList,DateFormatter dateFormatter,PointFeature pointFeature,StringBuilder builder,int stNum){
  valueList.clear();
  valueList.add("String_Node_Str" + dateFormatter.toDateTimeStringISO(pointFeature.getObservationTimeAsDate()));
  valueList.add("String_Node_Str" + stNum);
  try {
    for (    String variableName : variableNames) {
      valueList.add(variableName + "String_Node_Str" + pointFeature.getData().getScalarObject(variableName).toString());
    }
  }
 catch (  Exception ex) {
    builder.delete(0,builder.length());
    builder.append("String_Node_Str").append(ex.getLocalizedMessage()).append("String_Node_Str");
    return;
  }
  for (int i=0; i < valueList.size(); i++) {
    builder.append(valueList.get(i));
    if (i < valueList.size() - 1) {
      builder.append("String_Node_Str");
    }
  }
  try {
    if (tsData.getStationFeature(tsStationList.get(stNum)).size() > 1) {
      builder.append("String_Node_Str");
    }
  }
 catch (  Exception ex) {
    builder=new StringBuilder();
    builder.append("String_Node_Str").append(ex.getLocalizedMessage());
  }
}
Program: 19247
Project: 19247
Buggy source:
@Test public void testContiguousRaggedMultipleProfilesMultiTime(){
  System.out.println("String_Node_Str" + getCurrentMethod() + "String_Node_Str");
  try {
    NetcdfDataset dataset=NetcdfDataset.openDataset(ContiguousRaggedMultipleProfiles);
    SOSParser md=new SOSParser();
    Writer write=new CharArrayWriter();
    writeOutput(md.enhance(dataset,profileRequestMultiTime,ContiguousRaggedMultipleProfiles),write);
    write.flush();
    write.close();
    assertFalse(write.toString().contains("String_Node_Str"));
    String fileName="String_Node_Str";
    fileWriter(base,fileName,write);
    dataAvailableInOutputFile(write);
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertFalse("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
  }
 catch (  IOException ex) {
    System.out.println(ex.getMessage());
  }
 finally {
    System.out.println("String_Node_Str" + getCurrentMethod() + "String_Node_Str");
  }
}

Fixed version (ground truth):
@Test public void testContiguousRaggedMultipleProfilesMultiTime(){
  System.out.println("String_Node_Str" + getCurrentMethod() + "String_Node_Str");
  try {
    NetcdfDataset dataset=NetcdfDataset.openDataset(ContiguousRaggedMultipleProfiles);
    SOSParser md=new SOSParser();
    Writer write=new CharArrayWriter();
    writeOutput(md.enhance(dataset,profileRequestMultiTime,ContiguousRaggedMultipleProfiles),write);
    write.flush();
    write.close();
    assertFalse(write.toString().contains("String_Node_Str"));
    String fileName="String_Node_Str";
    fileWriter(base,fileName,write);
    dataAvailableInOutputFile(write);
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertFalse("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertFalse("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
    assertTrue("String_Node_Str",write.toString().contains("String_Node_Str"));
  }
 catch (  IOException ex) {
    System.out.println(ex.getMessage());
  }
 finally {
    System.out.println("String_Node_Str" + getCurrentMethod() + "String_Node_Str");
  }
}
Program: 19248
Project: 19248
Buggy source:
@Override public double getLowerAltitude(int stNum){
  if (altMin != null && altMin.size() > stNum) {
    double retval=altMin.get(stNum);
    if (retval == Double.NaN || retval == Double.POSITIVE_INFINITY)     retval=0;
    return retval;
  }
 else {
    return Invalid_Value;
  }
}

Fixed version (ground truth):
@Override public double getLowerAltitude(int stNum){
  return this.lowerAlt;
}
Program: 19249
Project: 19249
Buggy source:
@Override public double getLowerLon(int stNum){
  if (profileData != null) {
    return profileList.get(stNum).getLatLon().getLongitude();
  }
 else {
    return Invalid_Value;
  }
}

Fixed version (ground truth):
@Override public double getLowerLon(int stNum){
  if (profileData != null && profileList.containsKey((Integer)stNum)) {
    return profileList.get(stNum).getLatLon().getLongitude();
  }
 else {
    return Invalid_Value;
  }
}
Program: 19250
Project: 19250
Buggy source:
private String createProfileFeature(int stNum) throws IOException {
  StringBuilder builder=new StringBuilder();
  DateFormatter dateFormatter=new DateFormatter();
  List<String> valueList=new ArrayList<String>();
  if (eventTimes.size() > 1) {
    for (int i=0; i < profileList.size(); i++) {
      ProfileFeature pFeature=profileList.get(i);
      if (pFeature != null) {
        DateTime dtStart=new DateTime(df.getISODate(eventTimes.get(0)),chrono);
        DateTime dtEnd=new DateTime(df.getISODate(eventTimes.get(1)),chrono);
        DateTime tsDt=new DateTime(pFeature.getName(),chrono);
        if (tsDt.isEqual(dtStart)) {
          addProfileData(valueList,dateFormatter,builder,pFeature.getPointFeatureIterator(-1),stNum);
        }
 else         if (tsDt.isEqual(dtEnd)) {
          addProfileData(valueList,dateFormatter,builder,pFeature.getPointFeatureIterator(-1),stNum);
        }
 else         if (tsDt.isAfter(dtStart) && (tsDt.isBefore(dtEnd))) {
          addProfileData(valueList,dateFormatter,builder,pFeature.getPointFeatureIterator(-1),stNum);
        }
 else {
          System.out.println("String_Node_Str");
        }
        if (builder.toString().contains("String_Node_Str"))         break;
      }
    }
  }
 else {
    ProfileFeature pFeature=profileList.get(stNum);
    addProfileData(valueList,dateFormatter,builder,pFeature.getPointFeatureIterator(-1),stNum);
  }
  return builder.toString();
}

Fixed version (ground truth):
private String createProfileFeature(int stNum) throws IOException {
  if (profileList != null && profileList.containsKey((Integer)stNum)) {
    StringBuilder builder=new StringBuilder();
    DateFormatter dateFormatter=new DateFormatter();
    List<String> valueList=new ArrayList<String>();
    ProfileFeature pFeature=profileList.get(stNum);
    addProfileData(valueList,dateFormatter,builder,pFeature.getPointFeatureIterator(-1),stNum);
    return builder.toString();
  }
  return "String_Node_Str";
}
Program: 19251
Project: 19251
Buggy source:
@Override public String getTimeEnd(int stNum){
  if (profileData != null) {
    return df.toDateTimeStringISO(profileList.get(stNum).getTime());
  }
 else {
    return ERROR_NULL_DATE;
  }
}

Fixed version (ground truth):
@Override public String getTimeEnd(int stNum){
  if (profileData != null && profileList.containsKey((Integer)stNum)) {
    return df.toDateTimeStringISO(profileList.get(stNum).getTime());
  }
 else {
    return ERROR_NULL_DATE;
  }
}
Program: 19252
Project: 19252
Buggy source:
@Override public String getDataResponse(int stNum){
  try {
    if (profileData != null) {
      return createProfileFeature(stNum);
    }
 else {
      System.out.println("String_Node_Str");
    }
  }
 catch (  IOException ex) {
    Logger.getLogger(Profile.class.getName()).log(Level.SEVERE,null,ex);
    return DATA_RESPONSE_ERROR + Profile.class;
  }
  return DATA_RESPONSE_ERROR + Profile.class;
}

Fixed version (ground truth):
@Override public String getDataResponse(int stNum){
  try {
    System.out.println("String_Node_Str" + stNum);
    if (profileData != null && profileList.containsKey((Integer)stNum)) {
      return createProfileFeature(stNum);
    }
 else {
      System.out.println("String_Node_Str");
    }
  }
 catch (  IOException ex) {
    Logger.getLogger(Profile.class.getName()).log(Level.SEVERE,null,ex);
    return DATA_RESPONSE_ERROR + Profile.class;
  }
  return DATA_RESPONSE_ERROR + Profile.class;
}
Program: 19253
Project: 19253
Buggy source:
/** 
 */
private void addProfileData(List<String> valueList,DateFormatter dateFormatter,StringBuilder builder,PointFeatureIterator profileIterator,int stNum){
  try {
    while (profileIterator.hasNext()) {
      PointFeature pointFeature=profileIterator.next();
      valueList.clear();
      valueList.add("String_Node_Str" + dateFormatter.toDateTimeStringISO(pointFeature.getObservationTimeAsDate()));
      String profileID=getProfileIDFromProfile(pointFeature);
      if (profileID != null) {
        if (profileID.equalsIgnoreCase(reqStationNames.get(stNum))) {
          addProfileDataToBuilder(valueList,pointFeature,builder);
        }
 else {
          System.out.println("String_Node_Str");
        }
      }
 else {
        addProfileDataToBuilder(valueList,pointFeature,builder);
      }
    }
  }
 catch (  Exception ex) {
    builder.delete(0,builder.length());
    builder.append("String_Node_Str").append(ex.getLocalizedMessage()).append("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 */
private void addProfileData(List<String> valueList,DateFormatter dateFormatter,StringBuilder builder,PointFeatureIterator profileIterator,int stNum){
  try {
    while (profileIterator.hasNext()) {
      PointFeature pointFeature=profileIterator.next();
      String profileID=getProfileIDFromProfile(pointFeature);
      System.out.println("String_Node_Str" + stNum + "String_Node_Str"+ profileID);
      if (profileID != null) {
        valueList.clear();
        valueList.add("String_Node_Str" + dateFormatter.toDateTimeStringISO(pointFeature.getObservationTimeAsDate()));
        valueList.add("String_Node_Str" + stNum);
        addProfileDataToBuilder(valueList,pointFeature,builder);
      }
    }
  }
 catch (  Exception ex) {
    builder.delete(0,builder.length());
    builder.append("String_Node_Str").append(ex.getLocalizedMessage()).append("String_Node_Str");
  }
}
Program: 19255
Project: 19255
Buggy source:
/** 
 * @param stationName
 * @param eventTime
 * @param variableNames
 */
public Profile(String[] stationName,String[] eventTime,String[] variableNames){
  startDate=null;
  endDate=null;
  this.variableNames=variableNames;
  this.reqStationNames=new ArrayList<String>();
  reqStationNames.addAll(Arrays.asList(stationName));
  if (eventTime != null) {
    this.eventTimes=new ArrayList<String>();
    this.eventTimes.addAll(Arrays.asList(eventTime));
  }
 else   this.eventTimes=null;
  lowerAlt=Double.POSITIVE_INFINITY;
  upperAlt=Double.NEGATIVE_INFINITY;
}

Fixed version (ground truth):
/** 
 * @param stationName
 * @param eventTime
 * @param variableNames
 */
public Profile(String[] stationName,String[] eventTime,String[] variableNames){
  startDate=null;
  endDate=null;
  this.variableNames=variableNames;
  this.reqStationNames=new ArrayList<String>();
  reqStationNames.addAll(Arrays.asList(stationName));
  System.out.println("String_Node_Str" + reqStationNames.size() + "String_Node_Str");
  this.eventTimes=new ArrayList<String>();
  if (eventTime != null)   this.eventTimes.addAll(Arrays.asList(eventTime));
  lowerAlt=Double.POSITIVE_INFINITY;
  upperAlt=Double.NEGATIVE_INFINITY;
}
Program: 19256
Project: 19256
Buggy source:
@Override public double getUpperLat(int stNum){
  if (profileData != null) {
    return profileList.get(stNum).getLatLon().getLatitude();
  }
 else {
    return Invalid_Value;
  }
}

Fixed version (ground truth):
@Override public double getUpperLat(int stNum){
  if (profileData != null && profileList.containsKey((Integer)stNum)) {
    return profileList.get(stNum).getLatLon().getLatitude();
  }
 else {
    return Invalid_Value;
  }
}
Program: 19257
Project: 19257
Buggy source:
@Override public double getLowerLat(int stNum){
  if (profileData != null) {
    return profileList.get(stNum).getLatLon().getLatitude();
  }
 else {
    return Invalid_Value;
  }
}

Fixed version (ground truth):
@Override public double getLowerLat(int stNum){
  if (profileData != null && profileList.containsKey((Integer)stNum)) {
    return profileList.get(stNum).getLatLon().getLatitude();
  }
 else {
    return Invalid_Value;
  }
}
Program: 19258
Project: 19258
Buggy source:
@Override public double getUpperAltitude(int stNum){
  if (altMax != null && altMax.size() > stNum) {
    double retval=altMax.get(stNum);
    if (retval == Double.NaN || retval == Double.POSITIVE_INFINITY)     retval=0;
    return retval;
  }
 else {
    return Invalid_Value;
  }
}

Fixed version (ground truth):
@Override public double getUpperAltitude(int stNum){
  return this.upperAlt;
}
Program: 19259
Project: 19259
Buggy source:
private static String getProfileIDFromProfile(PointFeature pointFeature){
  String profileID=null;
  try {
    profileID=(pointFeature.getData().getScalarObject("String_Node_Str").toString());
  }
 catch (  Exception e) {
  }
  return profileID;
}

Fixed version (ground truth):
private static String getProfileIDFromProfile(PointFeature pointFeature){
  String profileID=null;
  try {
    profileID=(pointFeature.getData().getScalarObject("String_Node_Str").toString());
  }
 catch (  Exception e) {
    System.out.println(e.toString());
  }
  return profileID;
}
Program: 19260
Project: 19260
Buggy source:
@Override public String getTimeBegin(int stNum){
  if (profileData != null) {
    return df.toDateTimeStringISO(profileList.get(stNum).getTime());
  }
 else {
    return ERROR_NULL_DATE;
  }
}

Fixed version (ground truth):
@Override public String getTimeBegin(int stNum){
  if (profileData != null && profileList.containsKey((Integer)stNum)) {
    return df.toDateTimeStringISO(profileList.get(stNum).getTime());
  }
 else {
    return ERROR_NULL_DATE;
  }
}
Program: 19261
Project: 19261
Buggy source:
@Override public double getUpperLon(int stNum){
  if (profileData != null) {
    return profileList.get(stNum).getLatLon().getLongitude();
  }
 else {
    return Invalid_Value;
  }
}

Fixed version (ground truth):
@Override public double getUpperLon(int stNum){
  if (profileData != null && profileList.containsKey((Integer)stNum)) {
    return profileList.get(stNum).getLatLon().getLongitude();
  }
 else {
    return Invalid_Value;
  }
}
Program: 19265
Project: 19265
Buggy source:
private String createObservationString(){
  StringBuilder retVal=new StringBuilder();
  for (  DataSlice ds : infoList) {
    if (ds.getEventTime() != null)     retVal.append(ds.getEventTime()).append(TOKEN_SEPERATOR);
    if (!ds.getLatitude().toString().equals(NAN))     retVal.append(ds.getLatitude().toString()).append(TOKEN_SEPERATOR);
    if (!ds.getLongitude().toString().equals(NAN))     retVal.append(ds.getLongitude().toString()).append(TOKEN_SEPERATOR);
    if (!ds.getDepth().toString().equals(NAN))     retVal.append(ds.getDepth().toString()).append(TOKEN_SEPERATOR);
    if (ds.getDataValues() != null) {
      for (      Float dv : ds.getDataValues()) {
        retVal.append(dv.toString()).append(TOKEN_SEPERATOR);
      }
      retVal=retVal.deleteCharAt(retVal.length() - 1);
    }
    retVal.append(BLOCK_SEPERATOR);
  }
  if (retVal.length() > 1) {
    retVal=retVal.deleteCharAt(retVal.length() - 1);
  }
  return retVal.toString();
}

Fixed version (ground truth):
private String createObservationString(int stationNumber){
  StringBuilder retVal=new StringBuilder();
  for (  DataSlice ds : infoList) {
    if (ds.getStationNumber() != -1 && ds.getStationNumber() != stationNumber)     continue;
    if (ds.getEventTime() != null)     retVal.append(ds.getEventTime()).append(TOKEN_SEPERATOR);
    if (!ds.getLatitude().toString().equals(NAN))     retVal.append(ds.getLatitude().toString()).append(TOKEN_SEPERATOR);
    if (!ds.getLongitude().toString().equals(NAN))     retVal.append(ds.getLongitude().toString()).append(TOKEN_SEPERATOR);
    if (!ds.getDepth().toString().equals(NAN))     retVal.append(ds.getDepth().toString()).append(TOKEN_SEPERATOR);
    if (ds.getDataValues() != null) {
      for (      Float dv : ds.getDataValues()) {
        retVal.append(dv.toString()).append(TOKEN_SEPERATOR);
      }
      retVal=retVal.deleteCharAt(retVal.length() - 1);
    }
    retVal.append(BLOCK_SEPERATOR);
  }
  if (retVal.length() > 1) {
    retVal=retVal.deleteCharAt(retVal.length() - 1);
  }
  return retVal.toString();
}
Program: 19268
Project: 19268
Buggy source:
public SOSObservationOffering(){
  setObservationStationID("String_Node_Str");
  setObservationStationDescription("String_Node_Str");
  setObservationName("String_Node_Str");
  setObservationSrsName("String_Node_Str");
  setObservationStationLowerCorner("String_Node_Str","String_Node_Str");
  setObservationStationUpperCorner("String_Node_Str","String_Node_Str");
  setObservationTimeBegin("String_Node_Str");
  setObservationTimeEnd("String_Node_Str");
  setObservationProcedureLink("String_Node_Str");
  setObservationObservedProperty("String_Node_Str");
  setObservationFeatureOfInterest("String_Node_Str");
  setObservationFormat("String_Node_Str");
  setObservationModel("String_Node_Str");
  setObservationResponseMode("String_Node_Str");
}

Fixed version (ground truth):
public SOSObservationOffering(){
  setObservationStationID("String_Node_Str");
  setObservationStationDescription("String_Node_Str");
  setObservationName("String_Node_Str");
  setObservationSrsName("String_Node_Str");
  setObservationStationLowerCorner("String_Node_Str","String_Node_Str");
  setObservationStationUpperCorner("String_Node_Str","String_Node_Str");
  setObservationTimeBegin("String_Node_Str");
  setObservationTimeEnd("String_Node_Str");
  setObservationProcedureLink("String_Node_Str");
  setObservationObservedProperty("String_Node_Str");
  setObservationFeatureOfInterest("String_Node_Str");
  setObservationModel("String_Node_Str");
  setObservationResponseMode("String_Node_Str");
}