nus-yam/ex-repair huggingface dataset:
Program: 3493
Project: 3493
Buggy source:
/** 
 * Set the DSpaceObject that is the container for this browse.  If this is not of type Collection or Community, this method will throw an exception
 * @param dso		the container object; a Community or Collection
 * @throws BrowseException
 */
public void setBrowseContainer(DSpaceObject dso) throws BrowseException {
  if (dso instanceof Collection) {
    this.collection=(Collection)dso;
  }
 else   if (dso instanceof Community) {
    this.community=(Community)dso;
  }
 else {
    throw new BrowseException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Set the DSpaceObject that is the container for this browse.  If this is not of type Collection or Community, this method will throw an exception
 * @param dso       the container object; a Community or Collection
 * @throws BrowseException
 */
public void setBrowseContainer(DSpaceObject dso) throws BrowseException {
  if (dso instanceof Collection) {
    this.collection=(Collection)dso;
  }
 else   if (dso instanceof Community) {
    this.community=(Community)dso;
  }
 else {
    throw new BrowseException("String_Node_Str");
  }
}
Program: 3494
Project: 3494
Buggy source:
/** 
 * @return	true if second level browse, false if not
 */
public boolean isSecondLevel(){
  if (this.level == 1) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * @return  true if second level browse, false if not
 */
public boolean isSecondLevel(){
  if (this.level == 1) {
    return true;
  }
  return false;
}
Program: 3495
Project: 3495
Buggy source:
/** 
 * @return	true if in community, false if not
 */
public boolean inCommunity(){
  if (this.community != null) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * @return  true if in community, false if not
 */
public boolean inCommunity(){
  if (this.community != null) {
    return true;
  }
  return false;
}
Program: 3496
Project: 3496
Buggy source:
/** 
 * Obtain the sort option
 * @return	the sort option
 * @throws BrowseException
 */
public SortOption getSortOption() throws BrowseException {
  try {
    if (sortOption == null) {
      if (browseIndex != null) {
        if (sortBy <= 0 && browseIndex.isMetadataIndex()) {
          String dataType=browseIndex.getDataType();
          String type=("String_Node_Str".equals(dataType) ? "String_Node_Str" : "String_Node_Str");
          sortOption=new SortOption(0,browseIndex.getName(),browseIndex.getMetadata(0),type);
        }
 else {
          if (sortBy <= 0) {
            sortOption=browseIndex.getSortOption();
            if (sortOption == null) {
              for (              SortOption so : SortOption.getSortOptions()) {
                sortOption=so;
                break;
              }
            }
          }
 else {
            for (            SortOption so : SortOption.getSortOptions()) {
              if (so.getNumber() == sortBy)               sortOption=so;
            }
          }
        }
      }
    }
    return sortOption;
  }
 catch (  SortException se) {
    throw new BrowseException("String_Node_Str",se);
  }
}

Fixed version (ground truth):
/** 
 * Obtain the sort option
 * @return  the sort option
 * @throws BrowseException
 */
public SortOption getSortOption() throws BrowseException {
  try {
    if (sortOption == null) {
      if (browseIndex != null) {
        if (sortBy <= 0 && browseIndex.isMetadataIndex()) {
          String dataType=browseIndex.getDataType();
          String type=("String_Node_Str".equals(dataType) ? "String_Node_Str" : "String_Node_Str");
          sortOption=new SortOption(0,browseIndex.getName(),browseIndex.getMetadata(0),type);
        }
 else {
          if (sortBy <= 0) {
            sortOption=browseIndex.getSortOption();
            if (sortOption == null) {
              for (              SortOption so : SortOption.getSortOptions()) {
                sortOption=so;
                break;
              }
            }
          }
 else {
            for (            SortOption so : SortOption.getSortOptions()) {
              if (so.getNumber() == sortBy)               sortOption=so;
            }
          }
        }
      }
    }
    return sortOption;
  }
 catch (  SortException se) {
    throw new BrowseException("String_Node_Str",se);
  }
}
Program: 3497
Project: 3497
Buggy source:
/** 
 * Used for second-level item browses, to only display items that match the value 
 * @return Returns the value.
 */
public String getFilterValue(){
  return filterValue;
}

Fixed version (ground truth):
/** 
 * Used for second-level item browses, to only display items that match the value
 * @return Returns the value.
 */
public String getFilterValue(){
  return filterValue;
}
Program: 3498
Project: 3498
Buggy source:
/** 
 * @param level		the browse level
 */
public void setBrowseLevel(int level){
  this.level=level;
}

Fixed version (ground truth):
/** 
 * @param level     the browse level
 */
public void setBrowseLevel(int level){
  this.level=level;
}
Program: 3499
Project: 3499
Buggy source:
/** 
 * @param value		the value to focus on
 */
public void setJumpToValue(String value){
  this.jumpValue=value;
}

Fixed version (ground truth):
/** 
 * @param value     the value to focus on
 */
public void setJumpToValue(String value){
  this.jumpValue=value;
}
Program: 3500
Project: 3500
Buggy source:
/** 
 * @return	the value to focus on
 */
public String getJumpToValue(){
  return jumpValue;
}

Fixed version (ground truth):
/** 
 * @return  the value to focus on
 */
public String getJumpToValue(){
  return jumpValue;
}
Program: 3501
Project: 3501
Buggy source:
/** 
 * @return	the browse level
 */
public int getBrowseLevel(){
  return this.level;
}

Fixed version (ground truth):
/** 
 * @return  the browse level
 */
public int getBrowseLevel(){
  return this.level;
}
Program: 3502
Project: 3502
Buggy source:
/** 
 * @return	true if ascending, false if not - or not set
 */
public boolean isAscending(){
  if (SortOption.ASCENDING.equalsIgnoreCase(order)) {
    return true;
  }
  if (SortOption.DESCENDING.equalsIgnoreCase(order)) {
    return false;
  }
  BrowseIndex bi=getBrowseIndex();
  if (bi != null && SortOption.DESCENDING.equalsIgnoreCase(bi.getDefaultOrder()))   return false;
  return true;
}

Fixed version (ground truth):
/** 
 * @return  true if ascending, false if not - or not set
 */
public boolean isAscending(){
  if (SortOption.ASCENDING.equalsIgnoreCase(order)) {
    return true;
  }
  if (SortOption.DESCENDING.equalsIgnoreCase(order)) {
    return false;
  }
  BrowseIndex bi=getBrowseIndex();
  if (bi != null && SortOption.DESCENDING.equalsIgnoreCase(bi.getDefaultOrder()))   return false;
  return true;
}
Program: 3503
Project: 3503
Buggy source:
/** 
 * @return	true if has value, false if not
 */
public boolean hasFilterValue(){
  if (filterValue == null || "String_Node_Str".equals(filterValue)) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * @return  true if has value, false if not
 */
public boolean hasFilterValue(){
  if (filterValue == null || "String_Node_Str".equals(filterValue)) {
    return false;
  }
  return true;
}
Program: 3504
Project: 3504
Buggy source:
/** 
 * Construct a new BrowserScope using the given Context 
 * @param context	the DSpace Context
 */
public BrowserScope(Context context){
  this.context=context;
}

Fixed version (ground truth):
/** 
 * Construct a new BrowserScope using the given Context
 * @param context   the DSpace Context
 */
public BrowserScope(Context context){
  this.context=context;
}
Program: 3505
Project: 3505
Buggy source:
/** 
 * Used for second-level item browses, to only display items that match the value 
 * @param value The value to set.
 */
public void setFilterValue(String value){
  this.filterValue=value;
}

Fixed version (ground truth):
/** 
 * Used for second-level item browses, to only display items that match the value
 * @param value The value to set.
 */
public void setFilterValue(String value){
  this.filterValue=value;
}
Program: 3507
Project: 3507
Buggy source:
/** 
 * Display the single page.  This is the page which lists just the single values of a  metadata browse, not individual items.  Single values are links through to all the items that match that metadata value
 * @param context
 * @param request
 * @param response
 * @throws ServletException
 * @throws IOException
 * @throws SQLException
 * @throws AuthorizeException
 */
protected abstract void showSinglePage(Context context,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException ;

Fixed version (ground truth):
/** 
 * Display the single page.  This is the page which lists just the single values of a metadata browse, not individual items.  Single values are links through to all the items that match that metadata value
 * @param context
 * @param request
 * @param response
 * @throws ServletException
 * @throws IOException
 * @throws SQLException
 * @throws AuthorizeException
 */
protected abstract void showSinglePage(Context context,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException ;
Program: 3510
Project: 3510
Buggy source:
/** 
 * Get the total number of results.  The argument determines whether this is a distinct browse or not as this has an impact on how results are counted
 * @param distinct  is this a distinct browse or not
 * @return          the total number of results available in this type of browse
 * @throws SQLException
 * @throws BrowseException
 */
private int getTotalResults(boolean distinct) throws SQLException, BrowseException {
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + distinct));
  dao.setDistinct(distinct);
  String[] select={"String_Node_Str"};
  dao.setCountValues(select);
  String focusField=dao.getJumpToField();
  String focusValue=dao.getJumpToValue();
  String orderField=dao.getOrderField();
  int limit=dao.getLimit();
  int offset=dao.getOffset();
  dao.setJumpToField(null);
  dao.setJumpToValue(null);
  dao.setOrderField(null);
  dao.setLimit(-1);
  dao.setOffset(-1);
  int count=dao.doCountQuery();
  dao.setJumpToField(focusField);
  dao.setJumpToValue(focusValue);
  dao.setOrderField(orderField);
  dao.setLimit(limit);
  dao.setOffset(offset);
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + count));
  return count;
}

Fixed version (ground truth):
/** 
 * Get the total number of results.  The argument determines whether this is a distinct browse or not as this has an impact on how results are counted
 * @param distinct  is this a distinct browse or not
 * @return          the total number of results available in this type of browse
 * @throws SQLException
 * @throws BrowseException
 */
private int getTotalResults(boolean distinct) throws SQLException, BrowseException {
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + distinct));
  dao.setDistinct(distinct);
  String[] select={"String_Node_Str"};
  dao.setCountValues(select);
  String focusField=dao.getJumpToField();
  String focusValue=dao.getJumpToValue();
  String orderField=dao.getOrderField();
  int limit=dao.getLimit();
  int offset=dao.getOffset();
  dao.setJumpToField(null);
  dao.setJumpToValue(null);
  dao.setOrderField(null);
  dao.setLimit(-1);
  dao.setOffset(-1);
  int count=dao.doCountQuery();
  dao.setJumpToField(focusField);
  dao.setJumpToValue(focusValue);
  dao.setOrderField(orderField);
  dao.setLimit(limit);
  dao.setOffset(offset);
  dao.setCountValues(null);
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + count));
  return count;
}
Program: 3516
Project: 3516
Buggy source:
/** 
 * Get a sub-query to obtain the ids for a distinct browse within a given constraint.  This will produce something of the form: <code> id IN (SELECT distinct_id FROM [container table] WHERE [container field] = [container id]) </code> This is for use inside the overall WHERE clause only
 * @return  the sub-query
 */
private void buildWhereClauseDistinctConstraints(StringBuffer queryBuf,List params){
  if (containerIDField != null && containerID != -1 && containerTable != null) {
    buildWhereClauseOpInsert(queryBuf);
    queryBuf.append("String_Node_Str");
    queryBuf.append(containerTable);
    queryBuf.append("String_Node_Str");
    queryBuf.append(containerIDField);
    queryBuf.append("String_Node_Str" + table + "String_Node_Str");
    params.add(new Integer(containerID));
  }
}

Fixed version (ground truth):
/** 
 * Get a sub-query to obtain the ids for a distinct browse within a given constraint.  This will produce something of the form: <code> id IN (SELECT distinct_id FROM [container table] WHERE [container field] = [container id]) </code> This is for use inside the overall WHERE clause only
 * @return  the sub-query
 */
private void buildWhereClauseDistinctConstraints(StringBuffer queryBuf,List params){
  if (containerIDField != null && containerID != -1 && containerTable != null) {
    buildWhereClauseOpInsert(queryBuf);
    queryBuf.append("String_Node_Str");
    buildFocusedSelectTables(queryBuf);
    queryBuf.append("String_Node_Str");
    buildFocusedSelectClauses(queryBuf,params);
    queryBuf.append("String_Node_Str" + table + "String_Node_Str");
  }
}
Program: 3517
Project: 3517
Buggy source:
/** 
 * Get the count of the items in the given container.  If the configuration value webui.strengths.cache is equal to 'true' this will return the cached value if it exists.  If it is equal to 'false' it will count the number of items in the container in real time
 * @param dso
 * @return
 * @throws ItemCountException
 * @throws SQLException 
 */
public int getCount(DSpaceObject dso) throws ItemCountException {
  boolean useCache=ConfigurationManager.getBooleanProperty("String_Node_Str");
  if (useCache) {
    return dao.getCount(dso);
  }
  if (dso instanceof Collection) {
    return ((Collection)dso).countItems();
  }
  if (dso instanceof Community) {
    return ((Collection)dso).countItems();
  }
  return 0;
}

Fixed version (ground truth):
/** 
 * Get the count of the items in the given container.  If the configuration value webui.strengths.cache is equal to 'true' this will return the cached value if it exists.  If it is equal to 'false' it will count the number of items in the container in real time
 * @param dso
 * @return
 * @throws ItemCountException
 * @throws SQLException 
 */
public int getCount(DSpaceObject dso) throws ItemCountException {
  boolean useCache=ConfigurationManager.getBooleanProperty("String_Node_Str");
  if (useCache) {
    return dao.getCount(dso);
  }
  if (dso instanceof Collection) {
    return ((Collection)dso).countItems();
  }
  if (dso instanceof Community) {
    return ((Community)dso).countItems();
  }
  return 0;
}
Program: 3519
Project: 3519
Buggy source:
/** 
 * Return the focus value.
 * @return	the focus value to use
 * @throws BrowseException
 */
private String getJumpToValue() throws BrowseException {
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str"));
  if (scope.hasJumpToValue()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getJumpToValue()));
    return scope.getJumpToValue();
  }
  if (scope.hasStartsWith()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getStartsWith()));
    return scope.getStartsWith();
  }
  int id=scope.getJumpToItem();
  String tableName=browseIndex.getTableName();
  SortOption so=scope.getSortOption();
  String col="String_Node_Str";
  if (so.getNumber() > 0) {
    col="String_Node_Str" + Integer.toString(so.getNumber());
  }
  String max=dao.doMaxQuery(col,tableName,id);
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + max));
  return max;
}

Fixed version (ground truth):
/** 
 * Return the focus value.
 * @return	the focus value to use
 * @throws BrowseException
 */
private String getJumpToValue() throws BrowseException {
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str"));
  if (scope.hasJumpToValue()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getJumpToValue()));
    return scope.getJumpToValue();
  }
  if (scope.hasStartsWith()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getStartsWith()));
    return scope.getStartsWith();
  }
  int id=scope.getJumpToItem();
  String tableName=browseIndex.getTableName();
  SortOption so=scope.getSortOption();
  if (so == null || so.getNumber() == 0) {
    if (browseIndex.getSortOption() != null)     so=browseIndex.getSortOption();
  }
  String col="String_Node_Str";
  if (so.getNumber() > 0) {
    col="String_Node_Str" + Integer.toString(so.getNumber());
  }
  String max=dao.doMaxQuery(col,tableName,id);
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + max));
  return max;
}
Program: 3523
Project: 3523
Buggy source:
/** 
 * Return the focus value.
 * @return	the focus value to use
 * @throws BrowseException
 */
private String getJumpToValue() throws BrowseException {
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str"));
  if (scope.hasJumpToValue()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getJumpToValue()));
    return scope.getJumpToValue();
  }
  if (scope.hasStartsWith()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getStartsWith()));
    return scope.getStartsWith();
  }
  int id=scope.getJumpToItem();
  String tableName=browseIndex.getTableName();
  SortOption so=scope.getSortOption();
  String col="String_Node_Str";
  if (so.getNumber() > 0) {
    col="String_Node_Str" + Integer.toString(so.getNumber());
  }
  String max=dao.doMaxQuery(col,tableName,id);
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + max));
  return max;
}

Fixed version (ground truth):
/** 
 * Return the focus value.
 * @return	the focus value to use
 * @throws BrowseException
 */
private String getJumpToValue() throws BrowseException {
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str"));
  if (scope.hasJumpToValue()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getJumpToValue()));
    return scope.getJumpToValue();
  }
  if (scope.hasStartsWith()) {
    log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + scope.getStartsWith()));
    return scope.getStartsWith();
  }
  int id=scope.getJumpToItem();
  String tableName=browseIndex.getTableName();
  SortOption so=scope.getSortOption();
  if (so == null || so.getNumber() == 0) {
    if (browseIndex.getSortOption() != null)     so=browseIndex.getSortOption();
  }
  String col="String_Node_Str";
  if (so.getNumber() > 0) {
    col="String_Node_Str" + Integer.toString(so.getNumber());
  }
  String max=dao.doMaxQuery(col,tableName,id);
  log.debug(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + max));
  return max;
}
Program: 3528
Project: 3528
Buggy source:
/** 
 * Get the field for sorting associated with this index
 * @return
 * @throws BrowseException
 */
public String getSortField() throws BrowseException {
  String focusField;
  if (isMetadataIndex()) {
    focusField="String_Node_Str";
  }
 else {
    if (sortOption != null)     focusField="String_Node_Str" + sortOption.getNumber();
 else     focusField="String_Node_Str";
  }
  return focusField;
}

Fixed version (ground truth):
/** 
 * Get the field for sorting associated with this index
 * @return
 * @throws BrowseException
 */
public String getSortField(boolean isSecondLevel) throws BrowseException {
  String focusField;
  if (isMetadataIndex() && !isSecondLevel) {
    focusField="String_Node_Str";
  }
 else {
    if (sortOption != null)     focusField="String_Node_Str" + sortOption.getNumber();
 else     focusField="String_Node_Str";
  }
  return focusField;
}
Program: 3532
Project: 3532
Buggy source:
/** 
 * Get the field for sorting associated with this index
 * @return
 * @throws BrowseException
 */
public String getSortField() throws BrowseException {
  String focusField;
  if (isMetadataIndex()) {
    focusField="String_Node_Str";
  }
 else {
    if (sortOption != null)     focusField="String_Node_Str" + sortOption.getNumber();
 else     focusField="String_Node_Str";
  }
  return focusField;
}

Fixed version (ground truth):
/** 
 * Get the field for sorting associated with this index
 * @return
 * @throws BrowseException
 */
public String getSortField(boolean isSecondLevel) throws BrowseException {
  String focusField;
  if (isMetadataIndex() && !isSecondLevel) {
    focusField="String_Node_Str";
  }
 else {
    if (sortOption != null)     focusField="String_Node_Str" + sortOption.getNumber();
 else     focusField="String_Node_Str";
  }
  return focusField;
}
Program: 3534
Project: 3534
Buggy source:
/** 
 * Create Lucene document with all the shared fields initialized.
 * @param type Type of DSpace Object
 * @param id
 * @param handle
 * @param location @return
 */
private static Document buildDocument(int type,int id,String handle,String location){
  Document doc=new Document();
  doc.add(new Field(LAST_INDEXED_FIELD,Long.toString(System.currentTimeMillis()),Field.Store.YES,Field.Index.UN_TOKENIZED));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.NO));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.NO));
  doc.add(new Field("String_Node_Str",Integer.toString(id),Field.Store.YES,Field.Index.NO));
  if (handle != null) {
    doc.add(new Field("String_Node_Str",handle,Field.Store.YES,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",handle,Field.Store.YES,Field.Index.UN_TOKENIZED));
    doc.add(new Field("String_Node_Str",handle,Field.Store.NO,Field.Index.TOKENIZED));
  }
  if (location != null) {
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
  }
  return doc;
}

Fixed version (ground truth):
/** 
 * Create Lucene document with all the shared fields initialized.
 * @param type Type of DSpace Object
 * @param id
 * @param handle
 * @param location @return
 */
private static Document buildDocument(int type,int id,String handle,String location){
  Document doc=new Document();
  doc.add(new Field(LAST_INDEXED_FIELD,Long.toString(System.currentTimeMillis()),Field.Store.YES,Field.Index.UN_TOKENIZED));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.NO));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.UN_TOKENIZED));
  doc.add(new Field("String_Node_Str",Integer.toString(id),Field.Store.YES,Field.Index.NO));
  if (handle != null) {
    doc.add(new Field("String_Node_Str",handle,Field.Store.YES,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",handle,Field.Store.YES,Field.Index.UN_TOKENIZED));
    doc.add(new Field("String_Node_Str",handle,Field.Store.NO,Field.Index.TOKENIZED));
  }
  if (location != null) {
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
  }
  return doc;
}
Program: 3535
Project: 3535
Buggy source:
/** 
 * Read metadata about a table from the database.
 * @param table The RDBMS table.
 * @return A map of information about the columns. The key is the name ofthe column, a String; the value is a ColumnInfo object.
 * @exception SQLException If there is a problem retrieving information from the RDBMS.
 */
private static Map retrieveColumnInfo(String table) throws SQLException {
  Connection connection=null;
  try {
    connection=getConnection();
    DatabaseMetaData metadata=connection.getMetaData();
    HashMap results=new HashMap();
    int max=metadata.getMaxTableNameLength();
    String tname=(table.length() >= max) ? table.substring(0,max - 1) : table;
    ResultSet pkcolumns=metadata.getPrimaryKeys(null,null,tname);
    Set pks=new HashSet();
    while (pkcolumns.next())     pks.add(pkcolumns.getString(4));
    ResultSet columns=metadata.getColumns(null,null,tname,null);
    while (columns.next()) {
      String column=columns.getString(4);
      ColumnInfo cinfo=new ColumnInfo();
      cinfo.setName(column);
      cinfo.setType((int)columns.getShort(5));
      if (pks.contains(column)) {
        cinfo.setIsPrimaryKey(true);
      }
      results.put(column,cinfo);
    }
    return results;
  }
  finally {
    if (connection != null) {
      connection.close();
    }
  }
}

Fixed version (ground truth):
/** 
 * Read metadata about a table from the database.
 * @param table The RDBMS table.
 * @return A map of information about the columns. The key is the name ofthe column, a String; the value is a ColumnInfo object.
 * @exception SQLException If there is a problem retrieving information from the RDBMS.
 */
private static Map retrieveColumnInfo(String table) throws SQLException {
  Connection connection=null;
  try {
    String schema=ConfigurationManager.getProperty("String_Node_Str");
    connection=getConnection();
    DatabaseMetaData metadata=connection.getMetaData();
    HashMap results=new HashMap();
    int max=metadata.getMaxTableNameLength();
    String tname=(table.length() >= max) ? table.substring(0,max - 1) : table;
    ResultSet pkcolumns=metadata.getPrimaryKeys(null,schema,tname);
    Set pks=new HashSet();
    while (pkcolumns.next())     pks.add(pkcolumns.getString(4));
    ResultSet columns=metadata.getColumns(null,schema,tname,null);
    while (columns.next()) {
      String column=columns.getString(4);
      ColumnInfo cinfo=new ColumnInfo();
      cinfo.setName(column);
      cinfo.setType((int)columns.getShort(5));
      if (pks.contains(column)) {
        cinfo.setIsPrimaryKey(true);
      }
      results.put(column,cinfo);
    }
    return results;
  }
  finally {
    if (connection != null) {
      connection.close();
    }
  }
}
Program: 3536
Project: 3536
Buggy source:
/** 
 * Create Lucene document with all the shared fields initialized.
 * @param type Type of DSpace Object
 * @param id
 * @param uri
 * @param location
 * @return
 */
private static Document buildDocument(int type,int id,String uri,String location){
  Document doc=new Document();
  doc.add(new Field(LAST_INDEXED_FIELD,Long.toString(System.currentTimeMillis()),Field.Store.YES,Field.Index.UN_TOKENIZED));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.NO));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.NO));
  doc.add(new Field("String_Node_Str",Integer.toString(id),Field.Store.YES,Field.Index.NO));
  if (uri != null) {
    doc.add(new Field("String_Node_Str",uri,Field.Store.YES,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",uri,Field.Store.YES,Field.Index.UN_TOKENIZED));
    doc.add(new Field("String_Node_Str",uri,Field.Store.NO,Field.Index.TOKENIZED));
  }
  if (location != null) {
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
  }
  return doc;
}

Fixed version (ground truth):
/** 
 * Create Lucene document with all the shared fields initialized.
 * @param type Type of DSpace Object
 * @param id
 * @param uri
 * @param location
 * @return
 */
private static Document buildDocument(int type,int id,String uri,String location){
  Document doc=new Document();
  doc.add(new Field(LAST_INDEXED_FIELD,Long.toString(System.currentTimeMillis()),Field.Store.YES,Field.Index.UN_TOKENIZED));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.NO));
  doc.add(new Field("String_Node_Str",Integer.toString(type),Field.Store.YES,Field.Index.UN_TOKENIZED));
  doc.add(new Field("String_Node_Str",Integer.toString(id),Field.Store.YES,Field.Index.NO));
  if (uri != null) {
    doc.add(new Field("String_Node_Str",uri,Field.Store.YES,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",uri,Field.Store.YES,Field.Index.UN_TOKENIZED));
    doc.add(new Field("String_Node_Str",uri,Field.Store.NO,Field.Index.TOKENIZED));
  }
  if (location != null) {
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
    doc.add(new Field("String_Node_Str",location,Field.Store.NO,Field.Index.TOKENIZED));
  }
  return doc;
}
Program: 3537
Project: 3537
Buggy source:
/** 
 * Read metadata about a table from the database.
 * @param table The RDBMS table.
 * @return A map of information about the columns. The key is the name ofthe column, a String; the value is a ColumnInfo object.
 * @exception SQLException If there is a problem retrieving information from the RDBMS.
 */
private static Map retrieveColumnInfo(String table) throws SQLException {
  Connection connection=null;
  try {
    connection=getConnection();
    DatabaseMetaData metadata=connection.getMetaData();
    HashMap results=new HashMap();
    int max=metadata.getMaxTableNameLength();
    String tname=(table.length() >= max) ? table.substring(0,max - 1) : table;
    ResultSet pkcolumns=metadata.getPrimaryKeys(null,null,tname);
    Set pks=new HashSet();
    while (pkcolumns.next())     pks.add(pkcolumns.getString(4));
    ResultSet columns=metadata.getColumns(null,null,tname,null);
    while (columns.next()) {
      String column=columns.getString(4);
      ColumnInfo cinfo=new ColumnInfo();
      cinfo.setName(column);
      cinfo.setType((int)columns.getShort(5));
      if (pks.contains(column)) {
        cinfo.setIsPrimaryKey(true);
      }
      results.put(column,cinfo);
    }
    return results;
  }
  finally {
    if (connection != null) {
      connection.close();
    }
  }
}

Fixed version (ground truth):
/** 
 * Read metadata about a table from the database.
 * @param table The RDBMS table.
 * @return A map of information about the columns. The key is the name ofthe column, a String; the value is a ColumnInfo object.
 * @exception SQLException If there is a problem retrieving information from the RDBMS.
 */
private static Map retrieveColumnInfo(String table) throws SQLException {
  Connection connection=null;
  try {
    String schema=ConfigurationManager.getProperty("String_Node_Str");
    connection=getConnection();
    DatabaseMetaData metadata=connection.getMetaData();
    HashMap results=new HashMap();
    int max=metadata.getMaxTableNameLength();
    String tname=(table.length() >= max) ? table.substring(0,max - 1) : table;
    ResultSet pkcolumns=metadata.getPrimaryKeys(null,schema,tname);
    Set pks=new HashSet();
    while (pkcolumns.next())     pks.add(pkcolumns.getString(4));
    ResultSet columns=metadata.getColumns(null,schema,tname,null);
    while (columns.next()) {
      String column=columns.getString(4);
      ColumnInfo cinfo=new ColumnInfo();
      cinfo.setName(column);
      cinfo.setType((int)columns.getShort(5));
      if (pks.contains(column)) {
        cinfo.setIsPrimaryKey(true);
      }
      results.put(column,cinfo);
    }
    return results;
  }
  finally {
    if (connection != null) {
      connection.close();
    }
  }
}
Program: 3538
Project: 3538
Buggy source:
public static DSpaceIdentifier resolve(Context context,String str){
  DSpaceIdentifier dsi=null;
  if (dsi == null) {
    dsi=IdentifierFactory.resolveAsURLSubstring(context,str);
  }
  if (dsi == null) {
    dsi=IdentifierFactory.resolve(context,str);
  }
  return dsi;
}

Fixed version (ground truth):
public static DSpaceIdentifier resolve(Context context,String str){
  DSpaceIdentifier dsi=null;
  if (dsi == null) {
    dsi=IdentifierFactory.resolveAsURLSubstring(context,str);
  }
  if (dsi == null) {
    dsi=IdentifierFactory.resolveCanonical(context,str);
  }
  return dsi;
}
Program: 3545
Project: 3545
Buggy source:
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      TableRow row=DatabaseManager.create(context,"String_Node_Str");
      row.setColumn("String_Node_Str",itemID);
      row.setColumn("String_Node_Str",commID[i]);
      DatabaseManager.update(context,row);
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}

Fixed version (ground truth):
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      if (isFirstOccurrence(commID,i)) {
        TableRow row=DatabaseManager.create(context,"String_Node_Str");
        row.setColumn("String_Node_Str",itemID);
        row.setColumn("String_Node_Str",commID[i]);
        DatabaseManager.update(context,row);
      }
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}
Program: 3546
Project: 3546
Buggy source:
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      TableRow row=DatabaseManager.create(context,"String_Node_Str");
      row.setColumn("String_Node_Str",itemID);
      row.setColumn("String_Node_Str",commID[i]);
      DatabaseManager.update(context,row);
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}

Fixed version (ground truth):
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      if (isFirstOccurrence(commID,i)) {
        TableRow row=DatabaseManager.create(context,"String_Node_Str");
        row.setColumn("String_Node_Str",itemID);
        row.setColumn("String_Node_Str",commID[i]);
        DatabaseManager.update(context,row);
      }
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}
Program: 3547
Project: 3547
Buggy source:
/** 
 * @deprecated
 * @return
 * @throws BrowseException
 */
public static String[] tables() throws BrowseException {
  BrowseIndex[] bis=getBrowseIndices();
  String[] returnTables=new String[bis.length + 1];
  for (int i=0; i < bis.length; i++) {
    returnTables[i]=bis[i].getTableName();
  }
  returnTables[bis.length]="String_Node_Str";
  return returnTables;
}

Fixed version (ground truth):
/** 
 * @deprecated
 * @return
 * @throws BrowseException
 */
public static String[] tables() throws BrowseException {
  BrowseIndex[] bis=getBrowseIndices();
  String[] returnTables=new String[bis.length];
  for (int i=0; i < bis.length; i++) {
    returnTables[i]=bis[i].getTableName();
  }
  return returnTables;
}
Program: 3548
Project: 3548
Buggy source:
public boolean itemRemoved(int itemID) throws BrowseException {
  for (int i=0; i < bis.length; i++) {
    log.debug("String_Node_Str" + itemID + "String_Node_Str"+ bis[i].getTableName());
    removeIndex(itemID,bis[i]);
  }
  removeIndex(itemID,BrowseIndex.getItemBrowseIndex().getTableName());
  removeIndex(itemID,BrowseIndex.getWithdrawnBrowseIndex().getTableName());
  pruneIndexes();
  return true;
}

Fixed version (ground truth):
public boolean itemRemoved(int itemID) throws BrowseException {
  for (int i=0; i < bis.length; i++) {
    log.debug("String_Node_Str" + itemID + "String_Node_Str"+ bis[i].getTableName());
    removeIndex(itemID,bis[i]);
  }
  removeIndex(itemID,BrowseIndex.getItemBrowseIndex().getTableName());
  removeIndex(itemID,BrowseIndex.getWithdrawnBrowseIndex().getTableName());
  dao.deleteCommunityMappings(itemID);
  pruneIndexes();
  return true;
}
Program: 3550
Project: 3550
Buggy source:
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      TableRow row=DatabaseManager.create(context,"String_Node_Str");
      row.setColumn("String_Node_Str",itemID);
      row.setColumn("String_Node_Str",commID[i]);
      DatabaseManager.update(context,row);
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}

Fixed version (ground truth):
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      if (isFirstOccurrence(commID,i)) {
        TableRow row=DatabaseManager.create(context,"String_Node_Str");
        row.setColumn("String_Node_Str",itemID);
        row.setColumn("String_Node_Str",commID[i]);
        DatabaseManager.update(context,row);
      }
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}
Program: 3551
Project: 3551
Buggy source:
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      TableRow row=DatabaseManager.create(context,"String_Node_Str");
      row.setColumn("String_Node_Str",itemID);
      row.setColumn("String_Node_Str",commID[i]);
      DatabaseManager.update(context,row);
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}

Fixed version (ground truth):
public void insertCommunityMappings(int itemID) throws BrowseException {
  try {
    int[] commID=getAllCommunityIDs(itemID);
    for (int i=0; i < commID.length; i++) {
      if (isFirstOccurrence(commID,i)) {
        TableRow row=DatabaseManager.create(context,"String_Node_Str");
        row.setColumn("String_Node_Str",itemID);
        row.setColumn("String_Node_Str",commID[i]);
        DatabaseManager.update(context,row);
      }
    }
  }
 catch (  SQLException e) {
    log.error("String_Node_Str",e);
    throw new BrowseException(e);
  }
}
Program: 3552
Project: 3552
Buggy source:
/** 
 * @deprecated
 * @return
 * @throws BrowseException
 */
public static String[] tables() throws BrowseException {
  BrowseIndex[] bis=getBrowseIndices();
  String[] returnTables=new String[bis.length + 1];
  for (int i=0; i < bis.length; i++) {
    returnTables[i]=bis[i].getTableName();
  }
  returnTables[bis.length]="String_Node_Str";
  return returnTables;
}

Fixed version (ground truth):
/** 
 * @deprecated
 * @return
 * @throws BrowseException
 */
public static String[] tables() throws BrowseException {
  BrowseIndex[] bis=getBrowseIndices();
  String[] returnTables=new String[bis.length];
  for (int i=0; i < bis.length; i++) {
    returnTables[i]=bis[i].getTableName();
  }
  return returnTables;
}
Program: 3553
Project: 3553
Buggy source:
/** 
 * Setup the AspectGenerator. 
 */
public void setup(SourceResolver resolver,Map objectModel,String src,Parameters par) throws ProcessingException, SAXException, IOException {
  Request request=ObjectModelHelper.getRequest(objectModel);
  Integer aspectID=(Integer)request.getAttribute(ASPECT_ID);
  if (aspectID == null)   aspectID=0;
  aspectID++;
  request.setAttribute(ASPECT_ID,aspectID);
  String path=request.getServletPath();
  if (path.startsWith(PREFIX)) {
    path=path.substring(PREFIX.length());
  }
  String aspectPath=PROTOCOL + "String_Node_Str" + PREFIX+ aspectID+ "String_Node_Str"+ path;
  getLogger().debug("String_Node_Str" + aspectPath);
  super.setup(resolver,objectModel,aspectPath,par);
}

Fixed version (ground truth):
/** 
 * Setup the AspectGenerator. 
 */
public void setup(SourceResolver resolver,Map objectModel,String src,Parameters par) throws ProcessingException, SAXException, IOException {
  Request request=ObjectModelHelper.getRequest(objectModel);
  Integer aspectID=(Integer)request.getAttribute(ASPECT_ID);
  if (aspectID == null)   aspectID=0;
  aspectID++;
  request.setAttribute(ASPECT_ID,aspectID);
  String path=request.getSitemapURI();
  String aspectPath=PROTOCOL + "String_Node_Str" + PREFIX+ aspectID+ "String_Node_Str"+ path;
  getLogger().debug("String_Node_Str" + aspectPath);
  super.setup(resolver,objectModel,aspectPath,par);
}
Program: 3554
Project: 3554
Buggy source:
protected void doDSGet(Context context,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {
  String extraPathInfo=null;
  DSpaceObject dso=null;
  String path=request.getPathInfo();
  DSpaceIdentifier di=IdentifierFactory.resolve(context,path);
  if (di == null) {
    log.info(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + path));
    JSPManager.showInvalidIDError(request,response,path,-1);
  }
 else {
    String urlForm=di.getURLForm();
    int index=path.indexOf(urlForm);
    int startFrom=index + urlForm.length();
    if (startFrom < path.length()) {
      extraPathInfo=path.substring(startFrom);
    }
    dso=di.getObject(context);
    processDSpaceObject(context,request,response,dso,extraPathInfo);
  }
}

Fixed version (ground truth):
protected void doDSGet(Context context,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {
  String extraPathInfo=null;
  DSpaceObject dso=null;
  String path=request.getPathInfo();
  DSpaceIdentifier di=IdentifierFactory.resolve(context,path);
  if (di != null) {
    dso=di.getObject(context);
  }
  if (dso == null) {
    log.info(LogManager.getHeader(context,"String_Node_Str","String_Node_Str" + path));
    JSPManager.showInvalidIDError(request,response,path,-1);
  }
 else {
    String urlForm=di.getURLForm();
    int index=path.indexOf(urlForm);
    int startFrom=index + urlForm.length();
    if (startFrom < path.length()) {
      extraPathInfo=path.substring(startFrom);
    }
    processDSpaceObject(context,request,response,dso,extraPathInfo);
  }
}
Program: 3557
Project: 3557
Buggy source:
/** 
 * Get the count of the items in the given container.  If the configuration value webui.strengths.cache is equal to 'true' this will return the cached value if it exists.  If it is equal to 'false' it will count the number of items in the container in real time
 * @param dso
 * @return
 * @throws ItemCountException
 * @throws SQLException 
 */
public int getCount(DSpaceObject dso) throws ItemCountException {
  boolean useCache=ConfigurationManager.getBooleanProperty("String_Node_Str");
  if (useCache) {
    return dao.getCount(dso);
  }
  if (dso instanceof Collection) {
    try {
      return ((Collection)dso).countItems();
    }
 catch (    SQLException e) {
      log.error("String_Node_Str",e);
      throw new ItemCountException(e);
    }
  }
  if (dso instanceof Community) {
    try {
      return ((Collection)dso).countItems();
    }
 catch (    SQLException e) {
      log.error("String_Node_Str",e);
      throw new ItemCountException(e);
    }
  }
  return 0;
}

Fixed version (ground truth):
/** 
 * Get the count of the items in the given container.  If the configuration value webui.strengths.cache is equal to 'true' this will return the cached value if it exists.  If it is equal to 'false' it will count the number of items in the container in real time
 * @param dso
 * @return
 * @throws ItemCountException
 * @throws SQLException 
 */
public int getCount(DSpaceObject dso) throws ItemCountException {
  boolean useCache=ConfigurationManager.getBooleanProperty("String_Node_Str");
  if (useCache) {
    return dao.getCount(dso);
  }
  if (dso instanceof Collection) {
    try {
      return ((Collection)dso).countItems();
    }
 catch (    SQLException e) {
      log.error("String_Node_Str",e);
      throw new ItemCountException(e);
    }
  }
  if (dso instanceof Community) {
    try {
      return ((Community)dso).countItems();
    }
 catch (    SQLException e) {
      log.error("String_Node_Str",e);
      throw new ItemCountException(e);
    }
  }
  return 0;
}
Program: 3558
Project: 3558
Buggy source:
/** 
 * Get the style using the owning collection handle
 */
public String getStyleForItem(Item item) throws SQLException {
  Collection c=item.getOwningCollection();
  return getFromMap(c.getHandle());
}

Fixed version (ground truth):
/** 
 * Get the style using the owning collection handle
 */
public String getStyleForItem(Item item) throws SQLException {
  Collection c=item.getOwningCollection();
  if (c != null) {
    return getFromMap(c.getHandle());
  }
 else   return "String_Node_Str";
}
Program: 3559
Project: 3559
Buggy source:
public Map act(Redirector redirector,SourceResolver resolver,Map objectModel,String source,Parameters parameters) throws Exception {
  final HttpServletResponse httpResponse=(HttpServletResponse)objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
  final HttpServletRequest httpRequest=(HttpServletRequest)objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT);
  final Iterator authMethods=AuthenticationManager.authenticationMethodIterator();
  final String url=((AuthenticationMethod)authMethods.next()).loginPageURL(ContextUtil.obtainContext(objectModel),httpRequest,httpResponse);
  if (authMethods.hasNext()) {
    throw new IllegalStateException("String_Node_Str");
  }
  if (ConfigurationManager.getBooleanProperty("String_Node_Str")) {
    if (!httpRequest.isSecure()) {
      StringBuffer location=new StringBuffer("String_Node_Str");
      location.append(ConfigurationManager.getProperty("String_Node_Str")).append(url).append(httpRequest.getQueryString() == null ? "String_Node_Str" : ("String_Node_Str" + httpRequest.getQueryString()));
      httpResponse.sendRedirect(location.toString());
    }
  }
 else {
    httpResponse.sendRedirect(url);
  }
  return new HashMap();
}

Fixed version (ground truth):
public Map act(Redirector redirector,SourceResolver resolver,Map objectModel,String source,Parameters parameters) throws Exception {
  final HttpServletResponse httpResponse=(HttpServletResponse)objectModel.get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
  final HttpServletRequest httpRequest=(HttpServletRequest)objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT);
  final Iterator authMethods=AuthenticationManager.authenticationMethodIterator();
  final String url=((AuthenticationMethod)authMethods.next()).loginPageURL(ContextUtil.obtainContext(objectModel),httpRequest,httpResponse);
  if (authMethods.hasNext()) {
    throw new IllegalStateException("String_Node_Str");
  }
  if (ConfigurationManager.getBooleanProperty("String_Node_Str")) {
    if (!httpRequest.isSecure()) {
      StringBuffer location=new StringBuffer("String_Node_Str");
      location.append(ConfigurationManager.getProperty("String_Node_Str")).append(url).append(httpRequest.getQueryString() == null ? "String_Node_Str" : ("String_Node_Str" + httpRequest.getQueryString()));
      httpResponse.sendRedirect(location.toString());
    }
 else {
      httpResponse.sendRedirect(url);
    }
  }
 else {
    httpResponse.sendRedirect(url);
  }
  return new HashMap();
}
Program: 3561
Project: 3561
Buggy source:
/** 
 * Return a normalized focus value. If there is no normalization that can be performed, return the focus value that is passed in.
 * @param value a focus value to normalize
 * @return  the normalized focus value
 * @throws BrowseException
 */
private String normalizeJumpToValue(String value) throws BrowseException {
  if (scope.hasJumpToValue()) {
    return BrowseOrder.makeSortString(scope.getJumpToValue(),scope.setJumpToValueLang(),scope.getBrowseIndex().getDataType());
  }
  return value;
}

Fixed version (ground truth):
/** 
 * Return a normalized focus value. If there is no normalization that can be performed, return the focus value that is passed in.
 * @param value a focus value to normalize
 * @return  the normalized focus value
 * @throws BrowseException
 */
private String normalizeJumpToValue(String value) throws BrowseException {
  if (scope.hasJumpToValue()) {
    return BrowseOrder.makeSortString(scope.getJumpToValue(),scope.setJumpToValueLang(),scope.getBrowseIndex().getDataType());
  }
 else   if (scope.hasStartsWith()) {
    return BrowseOrder.makeSortString(scope.getStartsWith(),null,scope.getBrowseIndex().getDataType());
  }
  return value;
}