nus-yam/ex-repair huggingface dataset:
Program: 35435
Project: 35435
Buggy source:
private PreparedStatement createLocationsStatement(LocationsRequest request,Connection conn,QueryColumnsInfo queryInfo) throws Exception {
  Geometry geom=request.getGeometry();
  Envelope bbox=request.getBBox();
  byte[] geomBytes=geometryToWKB(geom,bbox);
  String query="String_Node_Str" + queryInfo.getQuery1Columns() + "String_Node_Str"+ _tableName;
  String whereCondition="String_Node_Str";
  if (bbox != null)   whereCondition=buildBboxFilter(bbox);
  whereCondition+=buildSearchFilter(request.getSearchFilter());
  String stateText=String.format("String_Node_Str",queryInfo.getQuery2Columns(),query,whereCondition,request.getRadius(),request.getLimit(),queryInfo.getReturnTable());
  if (request.getSortType() != LocationsResultSortType.NONE) {
    if (request.getSortType() == LocationsResultSortType.CATEGORY)     stateText+="String_Node_Str";
 else     if (request.getSortType() == LocationsResultSortType.DISTANCE)     stateText+="String_Node_Str";
  }
  PreparedStatement statement=conn.prepareStatement(stateText);
  statement.setMaxRows(request.getLimit());
  if (geomBytes != null)   statement.setBytes(1,geomBytes);
  return statement;
}

Fixed version (ground truth):
private PreparedStatement createLocationsStatement(LocationsRequest request,Connection conn,QueryColumnsInfo queryInfo) throws Exception {
  Geometry geom=request.getGeometry();
  Envelope bbox=request.getBBox();
  byte[] geomBytes=geometryToWKB(geom,bbox);
  String query="String_Node_Str" + queryInfo.getQuery1Columns() + "String_Node_Str"+ _tableName;
  String whereCondition="String_Node_Str";
  String searchCondition=buildSearchFilter(request.getSearchFilter());
  if (!Helper.isEmpty(searchCondition))   whereCondition+=searchCondition;
  String stateText=String.format("String_Node_Str",queryInfo.getQuery2Columns(),query,whereCondition,request.getRadius(),request.getLimit(),queryInfo.getReturnTable());
  if (request.getSortType() != LocationsResultSortType.NONE) {
    if (request.getSortType() == LocationsResultSortType.CATEGORY)     stateText+="String_Node_Str";
 else     if (request.getSortType() == LocationsResultSortType.DISTANCE)     stateText+="String_Node_Str";
  }
  PreparedStatement statement=conn.prepareStatement(stateText);
  statement.setMaxRows(request.getLimit());
  if (geomBytes != null)   statement.setBytes(1,geomBytes);
  return statement;
}
Program: 35436
Project: 35436
Buggy source:
public static AbstractHttpRequestProcessor createProcessor(HttpServletRequest request) throws Exception {
  if (!GeocodingServiceSettings.getEnabled())   throw new StatusCodeException(StatusCode.SERVICE_UNAVAILABLE,GeocodingErrorCodes.UKNOWN,"String_Node_Str");
  String formatParam=request.getParameter("String_Node_Str");
  if (Helper.isEmpty(formatParam))   formatParam="String_Node_Str";
  if (formatParam.equalsIgnoreCase("String_Node_Str"))   return new JsonGeocodingRequestProcessor(request);
 else   throw new UnknownParameterValueException(GeocodingErrorCodes.INVALID_PARAMETER_VALUE,"String_Node_Str",formatParam);
}

Fixed version (ground truth):
public static AbstractHttpRequestProcessor createProcessor(HttpServletRequest request) throws Exception {
  if (!GeocodingServiceSettings.getEnabled())   throw new StatusCodeException(StatusCode.SERVICE_UNAVAILABLE,GeocodingErrorCodes.UNKNOWN,"String_Node_Str");
  String formatParam=request.getParameter("String_Node_Str");
  if (Helper.isEmpty(formatParam))   formatParam="String_Node_Str";
  if (formatParam.equalsIgnoreCase("String_Node_Str"))   return new JsonGeocodingRequestProcessor(request);
 else   throw new UnknownParameterValueException(GeocodingErrorCodes.INVALID_PARAMETER_VALUE,"String_Node_Str",formatParam);
}
Program: 35438
Project: 35438
Buggy source:
@Test public void testRangeRestrictionDistance(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().statusCode(400);
}

Fixed version (ground truth):
@Test public void testRangeRestrictionDistance(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().statusCode(400).body("String_Node_Str",is(304));
}
Program: 35439
Project: 35439
Buggy source:
@Test public void testUnknownUnits(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().body("String_Node_Str",is(304)).statusCode(400);
}

Fixed version (ground truth):
@Test public void testUnknownUnits(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().body("String_Node_Str",is(303)).statusCode(400);
}
Program: 35440
Project: 35440
Buggy source:
@Test public void testWrongAttributes(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().log().all().statusCode(400).body("String_Node_Str",is(304));
}

Fixed version (ground truth):
@Test public void testWrongAttributes(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().log().all().statusCode(400).body("String_Node_Str",is(303));
}
Program: 35441
Project: 35441
Buggy source:
@Test public void testWrongLocationType(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().body("String_Node_Str",is(302)).statusCode(400);
}

Fixed version (ground truth):
@Test public void testWrongLocationType(){
  given().param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str",getParameter("String_Node_Str")).param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").param("String_Node_Str","String_Node_Str").when().get(getEndPointName()).then().body("String_Node_Str",is(303)).statusCode(400);
}
Program: 35447
Project: 35447
Buggy source:
private OSMElement getNextXML() throws XMLStreamException {
  int event=parser.next();
  while (event != XMLStreamConstants.END_DOCUMENT) {
    if (event == XMLStreamConstants.START_ELEMENT) {
      String idStr=parser.getAttributeValue(null,"String_Node_Str");
      if (idStr != null) {
        String name=parser.getLocalName();
        long id=0;
switch (name.charAt(0)) {
case 'n':
          if ("String_Node_Str".equals(name)) {
            id=Long.parseLong(idStr);
            return OSMNode.create(id,parser);
          }
        break;
case 'w':
{
        id=Long.parseLong(idStr);
        return OSMWay.create(id,parser);
      }
case 'r':
    id=Long.parseLong(idStr);
  return OSMRelation.create(id,parser);
}
}
}
event=parser.next();
}
parser.close();
return null;
}

Fixed version (ground truth):
private OSMElement getNextXML() throws XMLStreamException {
  int event=parser.next();
  while (event != XMLStreamConstants.END_DOCUMENT) {
    if (event == XMLStreamConstants.START_ELEMENT) {
      String idStr=parser.getAttributeValue(null,"String_Node_Str");
      if (idStr != null) {
        String name=parser.getLocalName();
        long id=0;
switch (name.charAt(0)) {
case 'n':
          if ("String_Node_Str".equals(name)) {
            if (parser.getAttributeValue(null,"String_Node_Str") != null) {
              id=Long.parseLong(idStr);
              return OSMNode.create(id,parser);
            }
          }
        break;
case 'w':
{
        id=Long.parseLong(idStr);
        return OSMWay.create(id,parser);
      }
case 'r':
    id=Long.parseLong(idStr);
  return OSMRelation.create(id,parser);
}
}
}
event=parser.next();
}
parser.close();
return null;
}
Program: 35448
Project: 35448
Buggy source:
@Test public void testTramStations(){
  OSMWay way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  assertTrue(encoder.acceptWay(way) > 0);
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  assertNotEquals(0,encoder.acceptWay(way));
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  assertEquals(0,encoder.acceptWay(way));
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  long flags=encoder.handleWayTags(way,encoder.acceptWay(way),0);
  assertNotEquals(0,flags);
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  flags=encoder.handleWayTags(way,encoder.acceptWay(way),0);
  assertNotEquals(0,flags);
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  flags=encoder.handleWayTags(way,encoder.acceptWay(way),0);
  assertEquals(0,flags);
}

Fixed version (ground truth):
@Test public void testTramStations(){
  OSMWay way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  assertTrue(encoder.acceptWay(way) > 0);
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  assertNotEquals(0,encoder.acceptWay(way));
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  assertEquals(0,encoder.acceptWay(way));
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  long flags=encoder.handleWayTags(way,encoder.acceptWay(way),0);
  assertNotEquals(0,flags);
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  flags=encoder.handleWayTags(way,encoder.acceptWay(way),0);
  assertNotEquals(0,flags);
  way=new OSMWay(1);
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  way.setTag("String_Node_Str","String_Node_Str");
  flags=encoder.handleWayTags(way,encoder.acceptWay(way),0);
  assertEquals(0,flags);
}
Program: 35450
Project: 35450
Buggy source:
protected void writeError(HttpServletResponse resp,int httpStatusCode,JSONObject json){
  try {
    ServletUtility.write(resp,json,"String_Node_Str");
    resp.setContentType("String_Node_Str");
    resp.setStatus(httpStatusCode);
  }
 catch (  Exception ex) {
    LOGGER.error(ex);
  }
}

Fixed version (ground truth):
protected void writeError(HttpServletResponse resp,int httpStatusCode,JSONObject json){
  try {
    ServletUtility.write(resp,json,"String_Node_Str",httpStatusCode);
  }
 catch (  Exception ex) {
    LOGGER.error(ex);
  }
}
Program: 35451
Project: 35451
Buggy source:
public static void write(HttpServletResponse response,byte[] bytes,String contentType,String encoding) throws IOException {
  OutputStream outStream=response.getOutputStream();
  response.setHeader("String_Node_Str",contentType);
  response.setContentLength(bytes.length);
  response.setCharacterEncoding(encoding);
  response.setContentType(contentType);
  outStream.write(bytes);
  outStream.close();
}

Fixed version (ground truth):
public static void write(HttpServletResponse response,byte[] bytes,String contentType,String encoding,int statusCode) throws IOException {
  OutputStream outStream=response.getOutputStream();
  response.setHeader("String_Node_Str",contentType);
  response.setContentLength(bytes.length);
  response.setCharacterEncoding(encoding);
  response.setContentType(contentType);
  if (statusCode != StatusCode.SC_OK)   response.setStatus(statusCode);
  outStream.write(bytes);
  outStream.close();
}
Program: 35452
Project: 35452
Buggy source:
private ArrayList<String> parseCSVrow(String row){
  ArrayList<String> result=new ArrayList<>();
  if (row != null) {
    String[] splitData=row.split("String_Node_Str");
    for (    String col : splitData) {
      if ((col != null) && (col.length() > 0)) {
        result.add(col.trim());
      }
 else {
        return null;
      }
    }
  }
  return result;
}

Fixed version (ground truth):
private ArrayList<String> parseCSVrow(String row){
  ArrayList<String> result=new ArrayList<>(2);
  if (row == null)   return null;
  String[] splitData=row.split("String_Node_Str");
  if (IsInvalid(splitData[0]) || IsInvalid(splitData[1]))   return null;
  result.add(splitData[0].trim());
  result.add(splitData[1].trim());
  return result;
}
Program: 35453
Project: 35453
Buggy source:
boolean within(double val){
  if ((val <= left) || (val > right))   return false;
  return true;
}

Fixed version (ground truth):
boolean within(double val){
  if ((val < left) || (val > right))   return false;
  return true;
}
Program: 35454
Project: 35454
Buggy source:
int getSpeed(OSMWay way){
  int speed=PUSHING_SECTION_SPEED;
  String highwayTag=way.getTag("String_Node_Str");
  Integer highwaySpeed=highwaySpeeds.get(highwayTag);
  String s=way.getTag("String_Node_Str");
  if (!Helper.isEmpty(s)) {
    Integer surfaceSpeed=surfaceSpeeds.get(s);
    if (surfaceSpeed != null) {
      speed=surfaceSpeed;
      if (highwaySpeed != null && surfaceSpeed > highwaySpeed) {
        if (pushingSections.contains(highwayTag) && !highwayTag.equals("String_Node_Str"))         speed=highwaySpeed;
 else         speed=surfaceSpeed;
      }
    }
  }
 else {
    String tt=way.getTag("String_Node_Str");
    if (!Helper.isEmpty(tt)) {
      Integer tInt=trackTypeSpeeds.get(tt);
      if (tInt != null)       speed=tInt;
    }
 else {
      if (highwaySpeed != null) {
        if (!way.hasTag("String_Node_Str"))         speed=highwaySpeed;
 else         speed=highwaySpeeds.get("String_Node_Str");
      }
    }
  }
  if ((speed > PUSHING_SECTION_SPEED) && (!way.hasTag("String_Node_Str",intendedValues) && isPushingSection(way))) {
    if (way.hasTag("String_Node_Str","String_Node_Str"))     speed=PUSHING_SECTION_SPEED / 2;
 else     speed=PUSHING_SECTION_SPEED;
  }
  return speed;
}

Fixed version (ground truth):
int getSpeed(OSMWay way){
  int speed=PUSHING_SECTION_SPEED;
  String highwayTag=way.getTag("String_Node_Str");
  Integer highwaySpeed=highwaySpeeds.get(highwayTag);
  String s=way.getTag("String_Node_Str");
  if (!Helper.isEmpty(s)) {
    Integer surfaceSpeed=surfaceSpeeds.get(s);
    if (surfaceSpeed != null) {
      speed=surfaceSpeed;
      if (highwaySpeed != null) {
        if (surfaceSpeed > highwaySpeed) {
          if (pushingSections.contains(highwayTag) && !highwayTag.equals("String_Node_Str"))           speed=highwaySpeed;
 else           speed=surfaceSpeed;
        }
 else {
          String cyclewayTag=way.getTag("String_Node_Str");
          if (cyclewayTag != null && "String_Node_Str".equals(cyclewayTag)) {
            speed=highwaySpeeds.get("String_Node_Str");
          }
        }
      }
    }
  }
 else {
    String tt=way.getTag("String_Node_Str");
    if (!Helper.isEmpty(tt)) {
      Integer tInt=trackTypeSpeeds.get(tt);
      if (tInt != null)       speed=tInt;
    }
 else {
      if (highwaySpeed != null) {
        if (!way.hasTag("String_Node_Str"))         speed=highwaySpeed;
 else         speed=highwaySpeeds.get("String_Node_Str");
      }
    }
  }
  if ((speed > PUSHING_SECTION_SPEED) && (!way.hasTag("String_Node_Str",intendedValues) && isPushingSection(way))) {
    if (way.hasTag("String_Node_Str","String_Node_Str"))     speed=PUSHING_SECTION_SPEED / 2;
 else     speed=PUSHING_SECTION_SPEED;
  }
  return speed;
}
Program: 35455
Project: 35455
Buggy source:
public void init(Map<String,Object> parameters) throws Exception {
  _dataSource=null;
  _tableName=null;
  String value=(String)parameters.get("String_Node_Str");
  if (Helper.isEmpty(value))   throw new InternalServerException(LocationsErrorCodes.UNKNOWN,"String_Node_Str");
 else   _tableName=value;
  HikariConfig config=new HikariConfig();
  String port="String_Node_Str";
  if (parameters.containsKey("String_Node_Str"))   port=Integer.toString((Integer)parameters.get("String_Node_Str"));
  config.setJdbcUrl(String.format("String_Node_Str",parameters.get("String_Node_Str"),port,parameters.get("String_Node_Str")));
  config.setDataSourceClassName(PGSimpleDataSource.class.getName());
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  if (parameters.containsKey("String_Node_Str"))   config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  if (parameters.containsKey("String_Node_Str"))   config.setMaximumPoolSize((Integer)parameters.get("String_Node_Str"));
  config.setMinimumIdle(1);
  config.setConnectionTestQuery("String_Node_Str");
  _dataSource=new HikariDataSource(config);
}

Fixed version (ground truth):
public void init(Map<String,Object> parameters) throws Exception {
  _dataSource=null;
  _tableName=null;
  String value=(String)parameters.get("String_Node_Str");
  if (Helper.isEmpty(value))   throw new InternalServerException(LocationsErrorCodes.UNKNOWN,"String_Node_Str");
 else   _tableName=value;
  org.postgresql.Driver.isRegistered();
  HikariConfig config=new HikariConfig();
  String port="String_Node_Str";
  if (parameters.containsKey("String_Node_Str"))   port=Integer.toString((Integer)parameters.get("String_Node_Str"));
  config.setJdbcUrl(String.format("String_Node_Str",parameters.get("String_Node_Str"),port,parameters.get("String_Node_Str")));
  config.setDataSourceClassName(PGSimpleDataSource.class.getName());
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  if (parameters.containsKey("String_Node_Str"))   config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  config.addDataSourceProperty("String_Node_Str",parameters.get("String_Node_Str"));
  if (parameters.containsKey("String_Node_Str"))   config.setMaximumPoolSize((Integer)parameters.get("String_Node_Str"));
  config.setMinimumIdle(1);
  config.setConnectionTestQuery("String_Node_Str");
  _dataSource=new HikariDataSource(config);
}
Program: 35456
Project: 35456
Buggy source:
private PreparedStatement createCategoriesStatement(LocationsRequest request,Connection conn) throws Exception {
  String cmdFilter=buildSearchFilter(request.getSearchFilter());
  byte[] geomBytes=null;
  Geometry geom=request.getGeometry();
  if (geom != null)   geomBytes=geometryToWKB(geom);
  Envelope bbox=request.getBBox();
  if (bbox != null)   cmdFilter=addConditions(cmdFilter,buildBboxFilter(bbox));
  String stateText=null;
  if (geom == null)   stateText=String.format("String_Node_Str",_tableName,cmdFilter);
 else   stateText=String.format("String_Node_Str",_tableName,cmdFilter,request.getRadius());
  PreparedStatement statement=conn.prepareStatement(stateText);
  if (geomBytes != null)   statement.setBytes(1,geomBytes);
  return statement;
}

Fixed version (ground truth):
private PreparedStatement createCategoriesStatement(LocationsRequest request,Connection conn) throws Exception {
  String cmdFilter=buildSearchFilter(request.getSearchFilter());
  byte[] geomBytes=null;
  Geometry geom=request.getGeometry();
  Envelope bbox=request.getBBox();
  if (geom != null)   geomBytes=geometryToWKB(geom,bbox);
  if (bbox != null)   cmdFilter=addConditions(cmdFilter,buildBboxFilter(bbox));
  String stateText=null;
  if (geom == null)   stateText=String.format("String_Node_Str",_tableName,cmdFilter);
 else   stateText=String.format("String_Node_Str",_tableName,cmdFilter,request.getRadius());
  PreparedStatement statement=conn.prepareStatement(stateText);
  if (geomBytes != null)   statement.setBytes(1,geomBytes);
  return statement;
}
Program: 35457
Project: 35457
Buggy source:
private PreparedStatement createLocationsStatement(LocationsRequest request,Connection conn) throws Exception {
  Geometry geom=request.getGeometry();
  byte[] geomBytes=geometryToWKB(geom);
  QueryColumnsInfo ci=COLUMNS_INFO[request.getDetails()];
  String query="String_Node_Str" + ci.getQuery1Columns() + "String_Node_Str"+ _tableName;
  Envelope bbox=request.getBBox();
  if (bbox != null)   query+=buildBboxFilter(bbox);
  String stateText=String.format("String_Node_Str",ci.getQuery2Columns(),query,buildSearchFilter(request.getSearchFilter()),request.getRadius(),request.getLimit(),ci.getReturnTable());
  if (request.getSortType() != LocationsResultSortType.NONE) {
    if (request.getSortType() == LocationsResultSortType.CATEGORY)     stateText+="String_Node_Str";
 else     if (request.getSortType() == LocationsResultSortType.DISTANCE)     stateText+="String_Node_Str";
  }
  PreparedStatement statement=conn.prepareStatement(stateText);
  statement.setMaxRows(request.getLimit());
  if (geomBytes != null)   statement.setBytes(1,geomBytes);
  return statement;
}

Fixed version (ground truth):
private PreparedStatement createLocationsStatement(LocationsRequest request,Connection conn) throws Exception {
  Geometry geom=request.getGeometry();
  Envelope bbox=request.getBBox();
  byte[] geomBytes=geometryToWKB(geom,bbox);
  QueryColumnsInfo ci=COLUMNS_INFO[request.getDetails()];
  String query="String_Node_Str" + ci.getQuery1Columns() + "String_Node_Str"+ _tableName;
  if (bbox != null)   query+="String_Node_Str" + buildBboxFilter(bbox);
  String stateText=String.format("String_Node_Str",ci.getQuery2Columns(),query,buildSearchFilter(request.getSearchFilter()),request.getRadius(),request.getLimit(),ci.getReturnTable());
  if (request.getSortType() != LocationsResultSortType.NONE) {
    if (request.getSortType() == LocationsResultSortType.CATEGORY)     stateText+="String_Node_Str";
 else     if (request.getSortType() == LocationsResultSortType.DISTANCE)     stateText+="String_Node_Str";
  }
  PreparedStatement statement=conn.prepareStatement(stateText);
  statement.setMaxRows(request.getLimit());
  if (geomBytes != null)   statement.setBytes(1,geomBytes);
  return statement;
}
Program: 35459
Project: 35459
Buggy source:
private byte[] geometryToWKB(Geometry geom) throws IOException {
  WKBWriter wkbWriter=new WKBWriter();
  ByteArrayOutputStream bytesStream=new ByteArrayOutputStream();
  wkbWriter.write(geom,new OutputStreamOutStream(bytesStream));
  byte[] geomBytes=bytesStream.toByteArray();
  bytesStream.close();
  return geomBytes;
}

Fixed version (ground truth):
private byte[] geometryToWKB(Geometry geom,Envelope bbox) throws IOException {
  if (geom == null)   geom=JTS.toGeometry(bbox);
  WKBWriter wkbWriter=new WKBWriter();
  ByteArrayOutputStream bytesStream=new ByteArrayOutputStream();
  wkbWriter.write(geom,new OutputStreamOutStream(bytesStream));
  byte[] geomBytes=bytesStream.toByteArray();
  bytesStream.close();
  return geomBytes;
}
Program: 35460
Project: 35460
Buggy source:
private static List<Integer> getCodeList(TrafficLocationGraph graph,int startIndex,int endIndex){
  if (startIndex == endIndex) {
    List<Integer> list=new ArrayList<>();
    list.add(startIndex);
    return list;
  }
 else {
    if (graph.containsCode(startIndex) && graph.containsCode(endIndex))     return graph.getShortestPath(startIndex,endIndex);
 else {
      List<Integer> list=new ArrayList<>();
      if (Math.abs(startIndex - endIndex) <= 5) {
        List<Integer> lcList1=new ArrayList<Integer>();
        if (endIndex > startIndex) {
          for (int ci=startIndex; ci <= endIndex; ci++) {
            list.add(ci);
          }
        }
 else {
          for (int ci=endIndex; ci <= startIndex; ci++) {
            list.add(0,ci);
          }
        }
      }
 else {
        list.add(startIndex);
        if (startIndex != endIndex)         list.add(endIndex);
      }
      return list;
    }
  }
}

Fixed version (ground truth):
private static List<Integer> getCodeList(TrafficLocationGraph graph,int startIndex,int endIndex){
  if (startIndex == endIndex) {
    List<Integer> list=new ArrayList<>();
    list.add(startIndex);
    return list;
  }
 else {
    List<Integer> locationsInShortestPath=new ArrayList<Integer>();
    if (graph.containsCode(startIndex) && graph.containsCode(endIndex) && (graph.findShortestPath(startIndex,endIndex,locationsInShortestPath)))     return locationsInShortestPath;
 else {
      List<Integer> list=new ArrayList<>();
      if (Math.abs(startIndex - endIndex) <= 5) {
        List<Integer> lcList1=new ArrayList<Integer>();
        if (endIndex > startIndex) {
          for (int ci=startIndex; ci <= endIndex; ci++) {
            list.add(ci);
          }
        }
 else {
          for (int ci=endIndex; ci <= startIndex; ci++) {
            list.add(0,ci);
          }
        }
      }
 else {
        list.add(startIndex);
        if (startIndex != endIndex)         list.add(endIndex);
      }
      return list;
    }
  }
}
Program: 35462
Project: 35462
Buggy source:
/** 
 * Returns a new OSMNode (with new Id) that is at the intersection of two 2 lines.<p> First line is defined by <code>p1Lat</code>, <code>p1Lon</code> and <code>p2Lat</code>, <code>p2Lon</code><p> Second line is defined by <code>p3Lat</code>, <code>p3Lon</code> and <code>p4Lat</code>, <code>p4Lon</code><p>
 * @param p1Lat
 * @param p1Lon
 * @param p2Lat
 * @param p2Lon
 * @param p3Lat
 * @param p3Lon
 * @param p4Lat
 * @param p4Lon
 * @return Returns an OSMNode object if the lines intersect, otherwise null.
 */
private OSMNode getLineIntersection(double p1Lat,double p1Lon,double p2Lat,double p2Lon,double p3Lat,double p3Lon,double p4Lat,double p4Lon){
  double lat;
  double lon;
  double deltaLat1=p2Lat - p1Lat;
  double deltaLon1=p2Lon - p1Lon;
  double deltaLat2=p4Lat - p3Lat;
  double deltaLon2=p4Lon - p3Lon;
  double s;
  double t;
  t=(deltaLat2 * (p1Lon - p3Lon) - deltaLon2 * (p1Lat - p3Lat)) / (-deltaLat2 * deltaLon1 + deltaLat1 * deltaLon2);
  double denom=(p4Lat - p3Lat) * (p2Lon - p1Lon) - (p4Lon - p3Lon) * (p2Lat - p1Lat);
  if (denom != 0) {
    lat=p1Lat + (t * deltaLat1);
    lon=p1Lon + (t * deltaLon1);
    if (lon < -180 || lon > 180 || lat < -90 || lat > 90) {
      lat=(p1Lat + p3Lat) / 2d;
      lon=(p1Lon + p3Lon) / 2d;
    }
    return new OSMNode(createNewNodeId(),lat,lon);
  }
 else {
    if (p1Lat == p3Lat && p1Lon == p3Lon) {
      return new OSMNode(createNewNodeId(),p1Lat,p1Lon);
    }
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns a new OSMNode (with new Id) that is at the intersection of two 2 lines.<p> First line is defined by <code>p1Lat</code>, <code>p1Lon</code> and <code>p2Lat</code>, <code>p2Lon</code><p> Second line is defined by <code>p3Lat</code>, <code>p3Lon</code> and <code>p4Lat</code>, <code>p4Lon</code><p>
 * @param p1Lat
 * @param p1Lon
 * @param p2Lat
 * @param p2Lon
 * @param p3Lat
 * @param p3Lon
 * @param p4Lat
 * @param p4Lon
 * @return Returns an OSMNode object if the lines intersect, otherwise null.
 */
private OSMNode getLineIntersection(double p1Lat,double p1Lon,double p2Lat,double p2Lon,double p3Lat,double p3Lon,double p4Lat,double p4Lon){
  double lat;
  double lon;
  double deltaLat1=p2Lat - p1Lat;
  double deltaLon1=p2Lon - p1Lon;
  double deltaLat2=p4Lat - p3Lat;
  double deltaLon2=p4Lon - p3Lon;
  double s;
  double t;
  t=(deltaLat2 * (p1Lon - p3Lon) - deltaLon2 * (p1Lat - p3Lat)) / (-deltaLat2 * deltaLon1 + deltaLat1 * deltaLon2);
  double denom=(p4Lat - p3Lat) * (p2Lon - p1Lon) - (p4Lon - p3Lon) * (p2Lat - p1Lat);
  if (denom != 0) {
    lat=p1Lat + (t * deltaLat1);
    lon=p1Lon + (t * deltaLon1);
    if (lon < -180 || lon > 180 || lat < -90 || lat > 90) {
      lat=(p1Lat + p3Lat) / 2d;
      lon=(p1Lon + p3Lon) / 2d;
    }
    return new OSMNode(createNewNodeId(),lat,lon);
  }
 else {
    if (p1Lat == p3Lat && p1Lon == p3Lon) {
      return new OSMNode(createNewNodeId(),p1Lat,p1Lon);
    }
 else {
      return new OSMNode(createNewNodeId(),((p1Lat + p3Lat) / 2d),((p1Lon + p3Lon) / 2d));
    }
  }
}
Program: 35463
Project: 35463
Buggy source:
private static int getColor(int row,int col){
  if (COLOR_CACHE[row][col] == 0) {
    final int r=150 + R.nextInt(100);
    final int g=150 + R.nextInt(100);
    final int b=50 + R.nextInt(100);
    COLOR_CACHE[row][col]=Color.rgb(r,g,b);
  }
  return COLOR_CACHE[row][col];
}

Fixed version (ground truth):
private static int getColor(int row,int col){
  if (COLOR_CACHE[row][col] == 0) {
    final int r=140 + R.nextInt(100);
    final int g=140 + R.nextInt(100);
    final int b=50 + R.nextInt(100);
    COLOR_CACHE[row][col]=Color.rgb(r,g,b);
  }
  return COLOR_CACHE[row][col];
}
Program: 35464
Project: 35464
Buggy source:
private boolean setMode(@Mode int mode){
  LOG.i("String_Node_Str",ms(mode));
  if (!mInitialized)   return false;
  if (mode == mMode)   return true;
  int oldMode=mMode;
switch (oldMode) {
case FLINGING:
    mFlingScroller.forceFinished(true);
  break;
case ANIMATING:
mClearAnimation=true;
break;
}
switch (mode) {
case SCROLLING:
if (oldMode == PINCHING || oldMode == ANIMATING) return false;
break;
case FLINGING:
if (oldMode == ANIMATING) return false;
break;
case PINCHING:
if (oldMode == ANIMATING) return false;
break;
case NONE:
dispatchOnIdle();
break;
}
mMode=mode;
return true;
}

Fixed version (ground truth):
private boolean setMode(@Mode int mode){
  LOG.v("String_Node_Str",ms(mode));
  if (!mInitialized)   return false;
  if (mode == mMode)   return true;
  int oldMode=mMode;
switch (mode) {
case SCROLLING:
    if (oldMode == PINCHING || oldMode == ANIMATING)     return false;
  break;
case FLINGING:
if (oldMode == ANIMATING) return false;
break;
case PINCHING:
if (oldMode == ANIMATING) return false;
break;
case NONE:
dispatchOnIdle();
break;
}
switch (oldMode) {
case FLINGING:
mFlingScroller.forceFinished(true);
break;
case ANIMATING:
mClearAnimation=true;
break;
}
LOG.i("String_Node_Str",ms(mode));
mMode=mode;
return true;
}
Program: 35465
Project: 35465
Buggy source:
private void applyZoomAndAbsolutePan(@Zoom float newZoom,@AbsolutePan float deltaX,@AbsolutePan float deltaY,boolean allowOverScroll,boolean allowOverPinch){
  mMatrix.preTranslate(deltaX,deltaY);
  mMatrix.mapRect(mContentRect,mContentBaseRect);
  newZoom=ensureScaleBounds(newZoom,allowOverPinch);
  float scaleFactor=newZoom / mZoom;
  mMatrix.postScale(scaleFactor,scaleFactor,mContentRect.width(),mContentRect.height());
  mMatrix.mapRect(mContentRect,mContentBaseRect);
  mZoom=newZoom;
  ensureCurrentTranslationBounds(allowOverScroll);
  dispatchOnMatrix();
}

Fixed version (ground truth):
private void applyZoomAndAbsolutePan(@Zoom float newZoom,@AbsolutePan float deltaX,@AbsolutePan float deltaY,boolean allowOverScroll,boolean allowOverPinch){
  mMatrix.preTranslate(deltaX,deltaY);
  mMatrix.mapRect(mContentRect,mContentBaseRect);
  newZoom=ensureScaleBounds(newZoom,allowOverPinch);
  float scaleFactor=newZoom / mZoom;
  mMatrix.postScale(scaleFactor,scaleFactor,mContentRect.left,mContentRect.top);
  mMatrix.mapRect(mContentRect,mContentBaseRect);
  mZoom=newZoom;
  ensureCurrentTranslationBounds(allowOverScroll);
  dispatchOnMatrix();
}
Program: 35466
Project: 35466
Buggy source:
public void insert(int elementNum,String stringPart,Image imagePart){
  strings.add(elementNum,stringPart);
  images.add(elementNum,imagePart);
  render();
}

Fixed version (ground truth):
public void insert(int elementNum,String stringPart,Image imagePart){
  if (elementNum < strings.size() && elementNum > 0) {
    try {
      strings.add(elementNum,stringPart);
      images.add(elementNum,imagePart);
    }
 catch (    Exception e) {
      append(stringPart,imagePart);
    }
  }
 else {
    append(stringPart,imagePart);
  }
  render();
}
Program: 35467
Project: 35467
Buggy source:
public void setCommandListener(CommandListener listener){
}

Fixed version (ground truth):
public void setCommandListener(CommandListener listener){
  commandlistener=listener;
}
Program: 35468
Project: 35468
Buggy source:
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setProgress(1);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
}
Program: 35469
Project: 35469
Buggy source:
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
switch (translationState) {
case 0:
        imageView.animate().translationX(Utils.dpToPixel(100)).setDuration(duration);
      break;
case 1:
    imageView.animate().translationX(0).setDuration(duration);
  break;
}
if (translationState < 1) {
translationState++;
}
 else {
translationState=0;
}
}
}
);
}

Fixed version (ground truth):
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setProgress(1);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
switch (translationState) {
case 0:
        imageView.animate().translationX(Utils.dpToPixel(100)).setDuration(duration);
      break;
case 1:
    imageView.animate().translationX(0).setDuration(duration);
  break;
}
if (translationState < 1) {
translationState++;
}
 else {
translationState=0;
}
}
}
);
}
Program: 35470
Project: 35470
Buggy source:
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setProgress(1);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
    }
  }
);
}
Program: 35471
Project: 35471
Buggy source:
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
switch (translationState) {
case 0:
        imageView.animate().translationX(Utils.dpToPixel(100)).setDuration(duration);
      break;
case 1:
    imageView.animate().translationX(0).setDuration(duration);
  break;
}
if (translationState < 1) {
translationState++;
}
 else {
translationState=0;
}
}
}
);
}

Fixed version (ground truth):
@Override protected void onAttachedToWindow(){
  super.onAttachedToWindow();
  durationSb=(SeekBar)findViewById(R.id.durationSb);
  durationValueTv=(TextView)findViewById(R.id.durationValueTv);
  durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
  durationSb.setMax(10);
  durationSb.setProgress(1);
  durationSb.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      duration=progress * 300;
      durationValueTv.setText(getContext().getString(R.string.ms_with_value,duration));
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  animateBt=(Button)findViewById(R.id.animateBt);
  imageView=(ImageView)findViewById(R.id.imageView);
  animateBt.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
switch (translationState) {
case 0:
        imageView.animate().translationX(Utils.dpToPixel(100)).setDuration(duration);
      break;
case 1:
    imageView.animate().translationX(0).setDuration(duration);
  break;
}
if (translationState < 1) {
translationState++;
}
 else {
translationState=0;
}
}
}
);
}
Program: 35472
Project: 35472
Buggy source:
private BinaryOperator<FundsByFunderDto> sumFunds(){
  return (fundsByFunder,fundsByFunder2) -> FundsByFunderDto.builder().funderUserId(fundsByFunder.getFunderUserId()).funderAddress(fundsByFunder.getFunderAddress()).fndValue(sumTokenValue(fundsByFunder.getFndValue(),fundsByFunder2.getFndValue())).otherValue(sumTokenValue(fundsByFunder.getOtherValue(),fundsByFunder2.getOtherValue())).build();
}

Fixed version (ground truth):
private BinaryOperator<FundsByFunderDto> sumFunds(){
  return (fundsByFunder1,fundsByFunder2) -> FundsByFunderDto.builder().funderUserId(fundsByFunder1.getFunderUserId()).funderAddress(fundsByFunder1.getFunderAddress()).fndValue(TokenValueDto.sum(fundsByFunder1.getFndValue(),fundsByFunder2.getFndValue())).otherValue(TokenValueDto.sum(fundsByFunder1.getOtherValue(),fundsByFunder2.getOtherValue())).build();
}
Program: 35473
Project: 35473
Buggy source:
public RefundValidator(final RefundService refundService){
  this.refundService=refundService;
}

Fixed version (ground truth):
public RefundValidator(final RefundService refundService,final FundService fundService){
  this.refundService=refundService;
  this.fundService=fundService;
}
Program: 35474
Project: 35474
Buggy source:
public boolean isRefundable(final UserProfile userProfile,final UserFundsDto fund,final long requestId,final String requestStatus){
  return userProfile != null && userProfile.isEtherAddressVerified() && fund.isRefundable() && "String_Node_Str".equalsIgnoreCase(requestStatus) && fund.getFunderAddress().equalsIgnoreCase(userProfile.getEtherAddress()) && !refundRequestAlreadyExists(requestId,userProfile.getEtherAddress());
}

Fixed version (ground truth):
public boolean isRefundable(final UserProfile userProfile,final UserFundsDto fund,final long requestId,final String requestStatus){
  return userProfile != null && userProfile.isEtherAddressVerified() && fund.getFunderAddress().equalsIgnoreCase(userProfile.getEtherAddress()) && "String_Node_Str".equalsIgnoreCase(requestStatus) && !refundRequestAlreadyExists(requestId,userProfile.getEtherAddress()) && hasPositiveBalance(requestId,fund);
}
Program: 35475
Project: 35475
Buggy source:
@Override public RequestDetailsView map(RequestDto r){
  RequestDetailsView view=delegate.map(r);
  if (view != null) {
    IssueInformationDto issueInfo=r.getIssueInformation();
    view.setIcon("String_Node_Str" + issueInfo.getOwner() + "String_Node_Str");
    view.setPlatform(issueInfo.getPlatform().name());
    view.setOwner(issueInfo.getOwner());
    view.setRepo(issueInfo.getRepo());
    view.setIssueNumber(issueInfo.getNumber());
    view.setTitle(issueInfo.getTitle());
    view.setStarred(r.isLoggedInUserIsWatcher());
    view.setDescription(githubGateway.getIssue(issueInfo.getOwner(),issueInfo.getRepo(),issueInfo.getNumber()).getBody());
    view.setFase(enumToCapitalizedStringMapper.map(r.getStatus().getFase()));
    view.setStatus(enumToCapitalizedStringMapper.map(r.getStatus()));
  }
  return view;
}

Fixed version (ground truth):
@Override public RequestDetailsView map(RequestDto r){
  RequestDetailsView view=delegate.map(r);
  if (view != null) {
    IssueInformationDto issueInfo=r.getIssueInformation();
    view.setIcon("String_Node_Str" + issueInfo.getOwner() + "String_Node_Str");
    view.setPlatform(issueInfo.getPlatform().name());
    view.setOwner(issueInfo.getOwner());
    view.setRepo(issueInfo.getRepo());
    view.setIssueNumber(issueInfo.getNumber());
    view.setTitle(issueInfo.getTitle());
    view.setStarred(r.isLoggedInUserIsWatcher());
    view.setDescription(githubGateway.getIssue(issueInfo.getOwner(),issueInfo.getRepo(),issueInfo.getNumber()).getBodyHtml());
    view.setFase(enumToCapitalizedStringMapper.map(r.getStatus().getFase()));
    view.setStatus(enumToCapitalizedStringMapper.map(r.getStatus()));
  }
  return view;
}