nus-yam/ex-repair huggingface dataset:
Program: 75142
Project: 75142
Buggy source:
/** 
 * Populate the Result Set, either by re-execution ( If it has not been executed yet ) or  get it from local time folder.
 * @param executor
 * @param aggrDefns
 * @param cubeQueryExcutorHelper
 * @return
 * @throws IOException
 * @throws BirtException
 */
private IAggregationResultSet[] populateRs(CubeQueryExecutor executor,AggregationDefinition[] aggrDefns,CubeQueryExecutorHelper cubeQueryExcutorHelper,boolean saveToRD) throws IOException, BirtException {
  IAggregationResultSet[] rs;
  String id=null;
  if (executor.getCubeQueryDefinition().getQueryResultsID() == null) {
    rs=cubeQueryExcutorHelper.execute(aggrDefns,new StopSign());
    if (executor.getCubeQueryDefinition().cacheQueryResults()) {
      id=QueryResultIDUtil.nextID();
      FileArchiveWriter writer=new FileArchiveWriter(executor.getContext().getTmpdir() + "String_Node_Str");
      AggregationResultSetSaveUtil.save(id,rs,writer);
      writer.finish();
    }
    if (saveToRD) {
      if (id != null) {
        AggregationResultSetSaveUtil.save(id,rs,executor.getContext().getDocWriter());
      }
 else {
        id=QueryResultIDUtil.nextID();
        AggregationResultSetSaveUtil.save(id,rs,executor.getContext().getDocWriter());
      }
    }
  }
 else {
    id=executor.getCubeQueryDefinition().getQueryResultsID();
    rs=AggregationResultSetSaveUtil.load(id,new FileArchiveReader(executor.getContext().getTmpdir() + "String_Node_Str"));
  }
  executor.setQueryResultsId(id);
  return rs;
}

Fixed version (ground truth):
/** 
 * Populate the Result Set, either by re-execution ( If it has not been executed yet ) or  get it from local time folder.
 * @param executor
 * @param aggrDefns
 * @param cubeQueryExcutorHelper
 * @return
 * @throws IOException
 * @throws BirtException
 */
private IAggregationResultSet[] populateRs(CubeQueryExecutor executor,AggregationDefinition[] aggrDefns,CubeQueryExecutorHelper cubeQueryExcutorHelper,boolean saveToRD) throws IOException, BirtException {
  IAggregationResultSet[] rs;
  String id=null;
  if (executor.getCubeQueryDefinition().getQueryResultsID() == null) {
    rs=cubeQueryExcutorHelper.execute(aggrDefns,new StopSign());
    if (executor.getCubeQueryDefinition().cacheQueryResults()) {
      id=QueryResultIDUtil.nextID();
      FileArchiveWriter writer=new FileArchiveWriter(executor.getContext().getTmpdir() + "String_Node_Str");
      AggregationResultSetSaveUtil.save(id,rs,writer);
      writer.finish();
    }
    if (saveToRD) {
      if (id != null) {
        AggregationResultSetSaveUtil.save(id,rs,executor.getContext().getDocWriter());
      }
 else {
        id=QueryResultIDUtil.nextID();
        AggregationResultSetSaveUtil.save(id,rs,executor.getContext().getDocWriter());
      }
    }
  }
 else {
    id=executor.getCubeQueryDefinition().getQueryResultsID();
    rs=AggregationResultSetSaveUtil.load(id,new FileArchiveReader(executor.getContext().getTmpdir() + "String_Node_Str"),VersionManager.getLatestVersion());
  }
  executor.setQueryResultsId(id);
  return rs;
}
Program: 75143
Project: 75143
Buggy source:
private Collection getParameterSelectionListForCascadingGroup(IViewerReportDesignHandle design,IViewerReportService service,Map paramValues,InputOptions options) throws ReportServiceException {
  ParameterGroupDefinition group=(ParameterGroupDefinition)parameter.getGroup();
  int index=group.getParameters().indexOf(parameter);
  Object[] groupKeys=new Object[index];
  for (int i=0; i < index; i++) {
    ParameterDefinition def=(ParameterDefinition)group.getParameters().get(i);
    String parameterName=def.getName();
    groupKeys[i]=paramValues.get(parameterName);
    if (def.isRequired() && DataUtil.trimString((String)groupKeys[i]).length() <= 0) {
      groupKeys[i]=service.getParameterDefaultValue(design,parameterName,options);
    }
  }
  return service.getSelectionListForCascadingGroup(design,group.getName(),groupKeys,options);
}

Fixed version (ground truth):
private Collection getParameterSelectionListForCascadingGroup(IViewerReportDesignHandle design,IViewerReportService service,Map paramValues,InputOptions options) throws ReportServiceException {
  ParameterGroupDefinition group=(ParameterGroupDefinition)parameter.getGroup();
  int index=group.getParameters().indexOf(parameter);
  Object[] groupKeys=new Object[index];
  for (int i=0; i < index; i++) {
    ParameterDefinition def=(ParameterDefinition)group.getParameters().get(i);
    groupKeys[i]=paramValues.get(def.getName());
  }
  return service.getSelectionListForCascadingGroup(design,group.getName(),groupKeys,options);
}
Program: 75144
Project: 75144
Buggy source:
private Collection getParameterSelectionListForCascadingGroup(IViewerReportDesignHandle design,IViewerReportService service,Map paramValues,InputOptions options) throws ReportServiceException {
  ParameterGroupDefinition group=(ParameterGroupDefinition)parameter.getGroup();
  int index=group.getParameters().indexOf(parameter);
  Object[] groupKeys=new Object[index];
  for (int i=0; i < index; i++) {
    ParameterDefinition def=(ParameterDefinition)group.getParameters().get(i);
    String parameterName=def.getName();
    groupKeys[i]=paramValues.get(parameterName);
    if (groupKeys[i] == null) {
      groupKeys[i]=service.getParameterDefaultValue(design,parameterName,options);
    }
  }
  return service.getSelectionListForCascadingGroup(design,group.getName(),groupKeys,options);
}

Fixed version (ground truth):
private Collection getParameterSelectionListForCascadingGroup(IViewerReportDesignHandle design,IViewerReportService service,Map paramValues,InputOptions options) throws ReportServiceException {
  ParameterGroupDefinition group=(ParameterGroupDefinition)parameter.getGroup();
  int index=group.getParameters().indexOf(parameter);
  Object[] groupKeys=new Object[index];
  for (int i=0; i < index; i++) {
    ParameterDefinition def=(ParameterDefinition)group.getParameters().get(i);
    String parameterName=def.getName();
    groupKeys[i]=paramValues.get(parameterName);
    if (def.isRequired() && DataUtil.trimString((String)groupKeys[i]).length() <= 0) {
      groupKeys[i]=service.getParameterDefaultValue(design,parameterName,options);
    }
  }
  return service.getSelectionListForCascadingGroup(design,group.getName(),groupKeys,options);
}
Program: 75145
Project: 75145
Buggy source:
/** 
 * @param time
 * @return
 */
private String parseQuery(long time){
  SimpleDateFormat formater=new SimpleDateFormat(formatPattern);
  String timestamp=formater.format(new Timestamp(time));
  if (queryForUpdate == null) {
    queryForUpdate=replace(queryTemplate,TS_COLUMN,timestampColumn);
    queryForUpdate=replace(queryForUpdate,TS_FORMAT,formatPattern);
  }
  return replace(queryForUpdate,DATE,timestamp);
}

Fixed version (ground truth):
/** 
 * @param time
 * @return
 */
private String parseQuery(long time){
  SimpleDateFormat formater=new SimpleDateFormat(formatPattern);
  String timestamp=formater.format(new Timestamp(time));
  if (queryForUpdate == null) {
    queryForUpdate=replaceIgnoreCase(queryTemplate,TS_COLUMN,timestampColumn);
    queryForUpdate=replaceIgnoreCase(queryForUpdate,TS_FORMAT,formatPattern);
  }
  return replaceIgnoreCase(queryForUpdate,DATE,timestamp);
}
Program: 75147
Project: 75147
Buggy source:
/** 
 * @throws FileNotFoundException
 */
private void createCacheInputStream() throws FileNotFoundException {
  metaInputStream=new BufferedInputStream(new FileInputStream(getMetaCacheFile()),1024);
  rowInputStream=new DataInputStream(new BufferedInputStream(new FileInputStream(getRowCacheFile()),1024));
}

Fixed version (ground truth):
/** 
 * @throws FileNotFoundException
 */
private void createCacheInputStream() throws FileNotFoundException {
  metaInputStream=new BufferedInputStream(new FileInputStream(ResultSetCacheUtil.getMetaFile(context.getTmpdir(),queryResultID)),1024);
  rowInputStream=new DataInputStream(new BufferedInputStream(new FileInputStream(ResultSetCacheUtil.getDataFile(context.getTmpdir(),queryResultID)),1024));
}
Program: 75148
Project: 75148
Buggy source:
/** 
 * @throws FileNotFoundException
 */
private void createCacheOutputStream() throws FileNotFoundException {
  metaOutputStream=new BufferedOutputStream(new FileOutputStream(getMetaCacheFile()),1024);
  rowOutputStream=new DataOutputStream(new BufferedOutputStream(new FileOutputStream(getRowCacheFile()),1024));
  File file=getRowCacheFile();
  file.deleteOnExit();
  file=getMetaCacheFile();
  file.deleteOnExit();
}

Fixed version (ground truth):
/** 
 * @throws FileNotFoundException
 */
private void createCacheOutputStream() throws FileNotFoundException {
  metaOutputStream=new BufferedOutputStream(new FileOutputStream(ResultSetCacheUtil.getMetaFile(context.getTmpdir(),resultService.getQueryResults().getID())),1024);
  rowOutputStream=new DataOutputStream(new BufferedOutputStream(new FileOutputStream(ResultSetCacheUtil.getDataFile(context.getTmpdir(),resultService.getQueryResults().getID())),1024));
  File file=ResultSetCacheUtil.getDataFile(context.getTmpdir(),resultService.getQueryResults().getID());
  file.deleteOnExit();
  file=ResultSetCacheUtil.getMetaFile(context.getTmpdir(),resultService.getQueryResults().getID());
  file.deleteOnExit();
}
Program: 75149
Project: 75149
Buggy source:
HyperlinkInfo(int type,String url){
  this.type=type;
  this.url=url;
}

Fixed version (ground truth):
HyperlinkInfo(int type,String url,String bookmark){
  this.type=type;
  this.url=url;
  this.mark=bookmark;
}
Program: 75151
Project: 75151
Buggy source:
/** 
 * Save the current list in memory to disk.
 * @throws FileNotFoundException
 * @throws IOException
 */
private void saveToDisk(){
  try {
    File cacheFile=null;
    if (currentCacheNo < fileList.size()) {
      cacheFile=(File)(fileList.get(currentCacheNo));
    }
 else {
      cacheFile=getCacheFile(this.currentCacheNo);
      fileList.add(cacheFile);
    }
    FileOutputStream fos=new FileOutputStream(cacheFile);
    DataOutputStream oos=new DataOutputStream(new BufferedOutputStream(fos));
    writeList(oos,currentCache);
    oos.close();
  }
 catch (  FileNotFoundException e) {
    logger.severe("String_Node_Str" + e.toString());
    e.printStackTrace();
  }
catch (  IOException e) {
    logger.severe("String_Node_Str" + e.toString());
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Save the current list in memory to disk.
 * @throws FileNotFoundException
 * @throws IOException
 */
private void saveToDisk(){
  try {
    File cacheFile=null;
    if (currentCacheNo < fileList.size()) {
      cacheFile=(File)(fileList.get(currentCacheNo));
    }
 else {
      cacheFile=getCacheFile(this.currentCacheNo);
      fileList.add(cacheFile);
    }
    FileOutputStream fos=new FileOutputStream(cacheFile);
    DataOutputStream oos=new DataOutputStream(new BufferedOutputStream(fos));
    writeList(oos,currentCache);
    oos.close();
  }
 catch (  FileNotFoundException e) {
    logger.severe("String_Node_Str" + e.toString());
  }
catch (  IOException e) {
    logger.severe("String_Node_Str" + e.toString());
  }
}
Program: 75152
Project: 75152
Buggy source:
/** 
 * Load the data of currect no from disk.
 */
private void loadFromDisk(){
  try {
    FileInputStream fis=new FileInputStream(getCacheFile(this.currentCacheNo));
    DataInputStream ois=new DataInputStream(new BufferedInputStream(fis));
    this.currentCache=readList(ois);
    ois.close();
  }
 catch (  FileNotFoundException e) {
    logger.severe("String_Node_Str" + e.toString());
    e.printStackTrace();
  }
catch (  IOException e) {
    logger.severe("String_Node_Str" + e.toString());
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Load the data of currect no from disk.
 */
private void loadFromDisk(){
  try {
    FileInputStream fis=new FileInputStream(getCacheFile(this.currentCacheNo));
    DataInputStream ois=new DataInputStream(new BufferedInputStream(fis));
    this.currentCache=readList(ois);
    ois.close();
  }
 catch (  FileNotFoundException e) {
    logger.severe("String_Node_Str" + e.toString());
  }
catch (  IOException e) {
    logger.severe("String_Node_Str" + e.toString());
  }
}
Program: 75153
Project: 75153
Buggy source:
public void doSave(StreamWrapper streamsWrapper,boolean isSubQuery) throws DataException {
  if (streamsWrapper.getStreamForGroupInfo() != null) {
    this.resultSetPopulator.getGroupProcessorManager().getGroupCalculationUtil().doSave(streamsWrapper.getStreamForGroupInfo());
  }
  if (isSubQuery == false && streamsWrapper.getStreamForResultClass() != null) {
    ((ResultClass)this.resultSetPopulator.getResultSetMetadata()).doSave(streamsWrapper.getStreamForResultClass(),resultSetPopulator.getEventHandler().getAllColumnBindings());
    try {
      streamsWrapper.getStreamForResultClass().close();
      if (streamsWrapper.getStreamForDataSet() != null) {
        this.resultSetPopulator.getCache().doSave(streamsWrapper.getStreamForDataSet(),resultSetPopulator.getEventHandler().getAllColumnBindings());
      }
      streamsWrapper.getStreamForDataSet().close();
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
public void doSave(StreamWrapper streamsWrapper,boolean isSubQuery) throws DataException {
  if (streamsWrapper.getStreamForGroupInfo() != null) {
    this.resultSetPopulator.getGroupProcessorManager().getGroupCalculationUtil().doSave(streamsWrapper.getStreamForGroupInfo());
  }
  if (isSubQuery == false && streamsWrapper.getStreamForResultClass() != null) {
    ((ResultClass)this.resultSetPopulator.getResultSetMetadata()).doSave(streamsWrapper.getStreamForResultClass(),resultSetPopulator.getEventHandler().getAllColumnBindings());
    try {
      streamsWrapper.getStreamForResultClass().close();
      if (streamsWrapper.getStreamForDataSet() != null) {
        this.resultSetPopulator.getCache().doSave(streamsWrapper.getStreamForDataSet(),resultSetPopulator.getEventHandler().getAllColumnBindings());
      }
      streamsWrapper.getStreamForDataSet().close();
    }
 catch (    IOException e) {
      logger.log(Level.FINE,e.getMessage(),e);
    }
  }
}
Program: 75154
Project: 75154
Buggy source:
/** 
 * @param streamType
 * @param streamPos
 * @param streamScope
 * @return
 * @throws DataException
 */
public OutputStream getOutStream(int streamType,int streamPos,int streamScope) throws DataException {
  StreamID streamID=getStreamID(streamType,streamPos,streamScope);
  if (!useTempStream(streamType)) {
    RAOutputStream outputStream=context.getOutputStream(streamID.getStartStream(),streamID.getSubQueryStream(),streamType);
    if (streamType == DataEngineContext.DATASET_DATA_STREAM && this.version >= VersionManager.VERSION_2_2_0) {
      try {
        outputStream.seek(outputStream.length());
        outputStream.writeInt(0);
        outputStream.writeInt(0);
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
    return outputStream;
  }
 else {
    int sType=DataEngineContext.META_STREAM;
    if (streamType == DataEngineContext.DATASET_DATA_STREAM || streamType == DataEngineContext.DATASET_META_STREAM)     sType=DataEngineContext.DATASET_DATA_STREAM;
    return this.getTempStreamManager(getStreamID(sType,streamPos,streamScope)).getOutputStream(streamType);
  }
}

Fixed version (ground truth):
/** 
 * @param streamType
 * @param streamPos
 * @param streamScope
 * @return
 * @throws DataException
 */
public OutputStream getOutStream(int streamType,int streamPos,int streamScope) throws DataException {
  StreamID streamID=getStreamID(streamType,streamPos,streamScope);
  if (!useTempStream(streamType)) {
    RAOutputStream outputStream=context.getOutputStream(streamID.getStartStream(),streamID.getSubQueryStream(),streamType);
    if (streamType == DataEngineContext.DATASET_DATA_STREAM && this.version >= VersionManager.VERSION_2_2_0) {
      try {
        outputStream.seek(outputStream.length());
        outputStream.writeInt(0);
        outputStream.writeInt(0);
      }
 catch (      IOException e) {
        logger.log(Level.FINE,e.getMessage(),e);
      }
    }
    return outputStream;
  }
 else {
    int sType=DataEngineContext.META_STREAM;
    if (streamType == DataEngineContext.DATASET_DATA_STREAM || streamType == DataEngineContext.DATASET_META_STREAM)     sType=DataEngineContext.DATASET_DATA_STREAM;
    return this.getTempStreamManager(getStreamID(sType,streamPos,streamScope)).getOutputStream(streamType);
  }
}
Program: 75155
Project: 75155
Buggy source:
private RAInputStream createInputStream(StreamID streamID,int streamType) throws DataException {
  if (!useTempStream(streamType)) {
    RAInputStream stream=(RAInputStream)context.getInputStream(streamID.getStartStream(),streamID.getSubQueryStream(),streamType);
    if (streamType == DataEngineContext.DATASET_DATA_STREAM && this.version >= VersionManager.VERSION_2_2_0) {
      try {
        stream.readInt();
        int size=stream.readInt();
        stream.skip(size);
        stream.readInt();
        stream.readInt();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
    return stream;
  }
 else {
    return this.getMetaManager(streamID,streamType).getRAInputStream(streamType);
  }
}

Fixed version (ground truth):
private RAInputStream createInputStream(StreamID streamID,int streamType) throws DataException {
  if (!useTempStream(streamType)) {
    RAInputStream stream=(RAInputStream)context.getInputStream(streamID.getStartStream(),streamID.getSubQueryStream(),streamType);
    if (streamType == DataEngineContext.DATASET_DATA_STREAM && this.version >= VersionManager.VERSION_2_2_0) {
      try {
        stream.readInt();
        int size=stream.readInt();
        stream.skip(size);
        stream.readInt();
        stream.readInt();
      }
 catch (      IOException e) {
        logger.log(Level.FINE,e.getMessage(),e);
      }
    }
    return stream;
  }
 else {
    return this.getMetaManager(streamID,streamType).getRAInputStream(streamType);
  }
}
Program: 75156
Project: 75156
Buggy source:
/** 
 * @return
 */
int getVersion(){
  int version=this.getLatestVersion();
  if (dataEngineContext.hasInStream(null,null,DataEngineContext.VERSION_INFO_STREAM) == false) {
    version=VERSION_2_0;
    return version;
  }
  try {
    DataInputStream is=new DataInputStream(dataEngineContext.getInputStream(null,null,DataEngineContext.VERSION_INFO_STREAM));
    version=IOUtil.readInt(is);
    is.close();
  }
 catch (  DataException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
  return version;
}

Fixed version (ground truth):
/** 
 * @return
 */
int getVersion(){
  int version=this.getLatestVersion();
  if (dataEngineContext.hasInStream(null,null,DataEngineContext.VERSION_INFO_STREAM) == false) {
    version=VERSION_2_0;
    return version;
  }
  try {
    DataInputStream is=new DataInputStream(dataEngineContext.getInputStream(null,null,DataEngineContext.VERSION_INFO_STREAM));
    version=IOUtil.readInt(is);
    is.close();
  }
 catch (  DataException e) {
    logger.log(Level.FINE,e.getMessage(),e);
  }
catch (  IOException e) {
    logger.log(Level.FINE,e.getMessage(),e);
  }
  return version;
}
Program: 75157
Project: 75157
Buggy source:
/** 
 * @param rowId
 * @param filterHint
 */
public void write(int rowId){
  try {
    IOUtil.writeInt(rowDos,rowId);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * @param rowId
 * @param filterHint
 */
public void write(int rowId){
  try {
    IOUtil.writeInt(rowDos,rowId);
  }
 catch (  IOException e) {
    logger.log(Level.FINE,e.getMessage(),e);
  }
}
Program: 75158
Project: 75158
Buggy source:
public long getFilePointer(){
  try {
    return delegate.getFilePointer();
  }
 catch (  IOException e) {
    e.printStackTrace();
    return -1;
  }
}

Fixed version (ground truth):
public long getFilePointer(){
  try {
    return delegate.getFilePointer();
  }
 catch (  IOException e) {
    logger.log(Level.FINE,e.getMessage(),e);
    return -1;
  }
}
Program: 75159
Project: 75159
Buggy source:
/** 
 * Gets the FilePointer attribute of the BufferedRandomAccessFile object
 * @return The FilePointer value
 */
public long getFilePointer(){
  try {
    return delegate.getFilePointer();
  }
 catch (  IOException e) {
    e.printStackTrace();
    return -1;
  }
}

Fixed version (ground truth):
/** 
 * Gets the FilePointer attribute of the BufferedRandomAccessFile object
 * @return The FilePointer value
 */
public long getFilePointer(){
  try {
    return delegate.getFilePointer();
  }
 catch (  IOException e) {
    logger.log(Level.FINE,e.getMessage(),e);
    return -1;
  }
}
Program: 75160
Project: 75160
Buggy source:
public void finalize(){
  try {
    clearDiskFile();
  }
 catch (  IOException e) {
    e.printStackTrace();
    logger.log(Level.SEVERE,e.toString(),e);
  }
}

Fixed version (ground truth):
public void finalize(){
  try {
    clearDiskFile();
  }
 catch (  IOException e) {
    logger.log(Level.SEVERE,e.toString(),e);
  }
}
Program: 75161
Project: 75161
Buggy source:
public void finalize(){
  try {
    clearDiskFile();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void finalize(){
  try {
    clearDiskFile();
  }
 catch (  IOException e) {
    logger.log(Level.FINE,e.getMessage(),e);
  }
}
Program: 75162
Project: 75162
Buggy source:
public void finalize(){
  try {
    clearTempDir();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void finalize(){
  try {
    clearTempDir();
  }
 catch (  IOException e) {
    logger.log(Level.FINE,e.getMessage(),e);
  }
}
Program: 75163
Project: 75163
Buggy source:
public void write(BufferedRandomAccessFile file,Object obj) throws IOException {
  try {
    file.writeBigDecimal((BigDecimal)obj);
  }
 catch (  ClassCastException ce) {
    ce.printStackTrace();
  }
}

Fixed version (ground truth):
public void write(BufferedRandomAccessFile file,Object obj) throws IOException {
  try {
    file.writeBigDecimal((BigDecimal)obj);
  }
 catch (  ClassCastException ce) {
    logger.log(Level.FINE,ce.getMessage(),ce);
  }
}
Program: 75164
Project: 75164
Buggy source:
/** 
 * @param schemaRs:The ResultSet containing the List of schema
 * @return A List of schema names
 */
private ArrayList getAllSchemaList(ResultSet schemaRs){
  if (schemaRs == null) {
    return null;
  }
  ArrayList allSchemas=new ArrayList();
  try {
    while (schemaRs.next()) {
      allSchemas.add(schemaRs.getString("String_Node_Str"));
    }
  }
 catch (  SQLException e) {
    e.printStackTrace();
  }
  return allSchemas;
}

Fixed version (ground truth):
/** 
 * @param schemaRs:The ResultSet containing the List of schema
 * @return A List of schema names
 */
private ArrayList getAllSchemaList(ResultSet schemaRs){
  if (schemaRs == null) {
    return null;
  }
  ArrayList allSchemas=new ArrayList();
  try {
    while (schemaRs.next()) {
      allSchemas.add(schemaRs.getString("String_Node_Str"));
    }
  }
 catch (  SQLException e) {
    logger.log(Level.FINE,e.getMessage(),e);
  }
  return allSchemas;
}
Program: 75167
Project: 75167
Buggy source:
/** 
 * @param schemaName
 * @return
 */
private boolean containsTableInSchema(String schemaName){
  ResultSet rs=metaDataProvider.getAlltables(metaDataProvider.getCatalog(),schemaName,"String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"});
  boolean hasNonSystemTable=false;
  if (rs != null) {
    try {
      while (rs.next()) {
        if (!"String_Node_Str".equalsIgnoreCase(rs.getString("String_Node_Str"))) {
          hasNonSystemTable=true;
          break;
        }
      }
    }
 catch (    SQLException e) {
      e.printStackTrace();
    }
  }
  if (hasNonSystemTable) {
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
/** 
 * @param schemaName
 * @return
 */
private boolean containsTableInSchema(String schemaName){
  ResultSet rs=metaDataProvider.getAlltables(metaDataProvider.getCatalog(),schemaName,"String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"});
  boolean hasNonSystemTable=false;
  if (rs != null) {
    try {
      while (rs.next()) {
        if (!"String_Node_Str".equalsIgnoreCase(rs.getString("String_Node_Str"))) {
          hasNonSystemTable=true;
          break;
        }
      }
    }
 catch (    SQLException e) {
      logger.log(Level.FINE,e.getMessage(),e);
    }
  }
  if (hasNonSystemTable) {
    return true;
  }
 else {
    return false;
  }
}
Program: 75168
Project: 75168
Buggy source:
protected void drawText(String text,float textX,float textY,float baseline,float width,float height,TextStyle textStyle){
  writer.drawText(text,textX,textY,width,height,textStyle.getFontInfo(),textStyle.getColor());
}

Fixed version (ground truth):
protected void drawText(String text,float textX,float textY,float baseline,float width,float height,TextStyle textStyle){
  writer.drawText(text,textX,textY,width + 1f,height,textStyle.getFontInfo(),textStyle.getColor());
}
Program: 75169
Project: 75169
Buggy source:
public void onPage(long pageNumber,Object context){
  if (context instanceof HTMLLayoutContext) {
    HTMLLayoutContext htmlContext=(HTMLLayoutContext)context;
    document.setPageCount(pageNumber);
    boolean reportFinished=htmlContext.isFinished();
    if (reportFinished) {
      writeTotalPage(pageNumber);
      close();
      return;
    }
    boolean checkpoint=false;
    if (pageNumber == 1 || pageNumber == 10 || pageNumber == 50 || pageNumber % 100 == 0) {
      checkpoint=true;
    }
    ArrayList pageHint=htmlContext.getPageHint();
    PageHint hint=new PageHint(pageNumber,pageOffset);
    for (int i=0; i < pageHint.size(); i++) {
      IContent[] range=(IContent[])pageHint.get(i);
      PageSection section=createPageSection(range[0],range[1]);
      hint.addSection(section);
    }
    hint.addUnresolvedRowHints(htmlContext.getUnresolvedRowHints());
    writePageHint(hint);
    if (checkpoint) {
      try {
        IDocArchiveWriter archive=document.getArchive();
        document.saveCoreStreams();
        archive.flush();
      }
 catch (      Exception e) {
        logger.log(Level.WARNING,"String_Node_Str",e);
      }
    }
    if (pageHandler != null) {
      if (!htmlContext.getCancelFlag()) {
        IReportDocumentInfo docInfo=new ReportDocumentInfo(executionContext,pageNumber,false);
        pageHandler.onPage((int)pageNumber,checkpoint,docInfo);
      }
    }
  }
}

Fixed version (ground truth):
public void onPage(long pageNumber,Object context){
  if (context instanceof HTMLLayoutContext) {
    HTMLLayoutContext htmlContext=(HTMLLayoutContext)context;
    document.setPageCount(pageNumber);
    boolean reportFinished=htmlContext.isFinished();
    if (reportFinished) {
      writeTotalPage(pageNumber);
      close();
      return;
    }
    boolean checkpoint=false;
    if (pageNumber == 1 || pageNumber == 10 || pageNumber == 50 || pageNumber % 100 == 0) {
      checkpoint=true;
    }
    ArrayList pageHint=htmlContext.getPageHint();
    PageHint hint=new PageHint(pageNumber,pageOffset);
    for (int i=0; i < pageHint.size(); i++) {
      IContent[] range=(IContent[])pageHint.get(i);
      PageSection section=createPageSection(range[0],range[1]);
      hint.addSection(section);
    }
    hint.addUnresolvedRowHints(htmlContext.getUnresolvedRowHints());
    writePageHint(hint);
    if (checkpoint) {
      try {
        IDocArchiveWriter archive=document.getArchive();
        writeTotalPage(pageNumber);
        document.saveCoreStreams();
        archive.flush();
      }
 catch (      Exception e) {
        logger.log(Level.WARNING,"String_Node_Str",e);
      }
    }
    if (pageHandler != null) {
      if (!htmlContext.getCancelFlag()) {
        IReportDocumentInfo docInfo=new ReportDocumentInfo(executionContext,pageNumber,false);
        pageHandler.onPage((int)pageNumber,checkpoint,docInfo);
      }
    }
  }
}
Program: 75170
Project: 75170
Buggy source:
private void drawBackgroundColor(Color color,float x,float y,float width,float height){
  if (null == color) {
    return;
  }
  y=transformY(y,height);
  cbUnder.saveState();
  cbUnder.setColorFill(color);
  cbUnder.rectangle(x,y,width,height);
  cbUnder.fill();
  cbUnder.restoreState();
}

Fixed version (ground truth):
protected void drawBackgroundColor(Color color,float x,float y,float width,float height){
  if (null == color) {
    return;
  }
  y=transformY(y,height);
  cbUnder.saveState();
  cbUnder.setColorFill(color);
  cbUnder.rectangle(x,y,width,height);
  cbUnder.fill();
  cbUnder.restoreState();
}
Program: 75171
Project: 75171
Buggy source:
private void drawTotalPage(String text,float textX,float textY,float width,float height,TextStyle textInfo){
  drawText(text,textX,textY,width,height,textInfo.getFontInfo(),textInfo.getLetterSpacing(),textInfo.getWordSpacing(),textInfo.getColor(),textInfo.isLinethrough(),textInfo.isOverline(),textInfo.isUnderline(),textInfo.getAlign(),true);
}

Fixed version (ground truth):
public void drawTotalPage(String text,int textX,int textY,int width,int height,TextStyle textInfo){
  if (totalPageTemplate != null) {
    isTotalPage=true;
    drawText(text,textX,textY,width,height,textInfo);
  }
}
Program: 75174
Project: 75174
Buggy source:
/** 
 * Draws a line from the start position to the end position with the given linewidth, color, and style at the given pdf layer.
 * @param startX the start X coordinate of the line
 * @param startY the start Y coordinate of the line
 * @param endX the end X coordinate of the line
 * @param endY the end Y coordinate of the line
 * @param width the lineWidth
 * @param color the color of the line
 * @param lineStyle the given line style
 * @param contentByte the given pdf layer
 */
private void drawLine(float startX,float startY,float endX,float endY,float width,Color color,String lineStyle,PdfContentByte contentByte){
  if (null == color || 0f == width || "String_Node_Str".equalsIgnoreCase(lineStyle)) {
    return;
  }
  contentByte.saveState();
  if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
  if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    contentByte.setLineDash(3 * width,2 * width,0f);
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
 else   if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    contentByte.setLineDash(width,width,0f);
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
 else   if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    return;
  }
 else {
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
  contentByte.restoreState();
}

Fixed version (ground truth):
/** 
 * Draws a line with the line-style specified in advance from the start position to the end position with the given linewidth, color, and style at the given pdf layer. If the line-style is NOT set before invoking this method, "solid" will be used as the default line-style.
 * @param startX the start X coordinate of the line.
 * @param startY the start Y coordinate of the line.
 * @param endX the end X coordinate of the line.
 * @param endY the end Y coordinate of the line.
 * @param width the lineWidth
 * @param color the color of the line.
 * @param lineStyle the style of the line.
 */
protected void drawLine(float startX,float startY,float endX,float endY,float width,Color color,String lineStyle){
  if (null == color || 0f == width || "String_Node_Str".equalsIgnoreCase(lineStyle)) {
    return;
  }
  contentByte.saveState();
  if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
  if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    contentByte.setLineDash(3 * width,2 * width,0f);
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
 else   if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    contentByte.setLineDash(width,width,0f);
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
 else   if ("String_Node_Str".equalsIgnoreCase(lineStyle)) {
    return;
  }
 else {
    drawRawLine(startX,startY,endX,endY,width,color,contentByte);
  }
  contentByte.restoreState();
}
Program: 75175
Project: 75175
Buggy source:
public PDFPage(int pageWidth,int pageHeight,Document document,PdfWriter writer){
  float ratio=PDFConstants.LAYOUT_TO_PDF_RATIO;
  this.pageHeight=pageHeight / ratio;
  this.writer=writer;
  try {
    Rectangle pageSize=new Rectangle(pageWidth / ratio,pageHeight / ratio);
    document.setPageSize(pageSize);
    if (!document.isOpen())     document.open();
 else     document.newPage();
    this.contentByte=writer.getDirectContent();
    this.cbUnder=writer.getDirectContentUnder();
  }
 catch (  DocumentException de) {
    logger.log(Level.SEVERE,de.getMessage(),de);
  }
}

Fixed version (ground truth):
public PDFPage(int pageWidth,int pageHeight,Document document,PdfWriter writer){
  super(pageWidth,pageHeight);
  this.writer=writer;
  try {
    Rectangle pageSize=new Rectangle(this.pageWidth,this.pageHeight);
    document.setPageSize(pageSize);
    if (!document.isOpen())     document.open();
 else     document.newPage();
    this.contentByte=writer.getDirectContent();
    this.cbUnder=writer.getDirectContentUnder();
  }
 catch (  DocumentException de) {
    logger.log(Level.SEVERE,de.getMessage(),de);
  }
}
Program: 75176
Project: 75176
Buggy source:
private void clip(float startX,float startY,float width,float height){
  startY=transformY(startY,height);
  contentByte.clip();
  contentByte.rectangle(startX,startY,width,height);
  contentByte.newPath();
  cbUnder.clip();
  cbUnder.rectangle(startX,startY,width,height);
  cbUnder.newPath();
}

Fixed version (ground truth):
protected void clip(float startX,float startY,float width,float height){
  startY=transformY(startY,height);
  contentByte.clip();
  contentByte.rectangle(startX,startY,width,height);
  contentByte.newPath();
  cbUnder.clip();
  cbUnder.rectangle(startX,startY,width,height);
  cbUnder.newPath();
}
Program: 75177
Project: 75177
Buggy source:
private String capitalize(String text){
  HashSet splitChar=new HashSet();
  splitChar.add(new Character(' '));
  splitChar.add(new Character((char)0x0A));
  char[] array=text.toCharArray();
  int index=0;
  while (index < array.length) {
    Character c=new Character(text.charAt(index));
    while (splitChar.contains(c)) {
      index++;
      if (index == array.length)       return new String(array);
      c=new Character(text.charAt(index));
    }
    array[index]=Character.toUpperCase(array[index]);
    while (!splitChar.contains(c)) {
      index++;
      if (index == array.length)       break;
      c=new Character(text.charAt(index));
    }
  }
  return new String(array);
}

Fixed version (ground truth):
private String capitalize(String text){
  boolean capitalizeNextChar=true;
  char[] array=text.toCharArray();
  for (int i=0; i < array.length; i++) {
    Character c=new Character(text.charAt(i));
    if (splitChar.contains(c))     capitalizeNextChar=true;
 else     if (capitalizeNextChar) {
      array[i]=Character.toUpperCase(array[i]);
      capitalizeNextChar=false;
    }
  }
  return new String(array);
}
Program: 75179
Project: 75179
Buggy source:
public InputStream getBinaryStream() throws SQLException {
  init();
  return new ByteArrayInputStream(this.blobContent);
}

Fixed version (ground truth):
public InputStream getBinaryStream(long pos,long length) throws SQLException {
  throw new SQLException("String_Node_Str");
}
Program: 75184
Project: 75184
Buggy source:
protected void __execute() throws Exception {
  BaseAttributeBean attrBean=(BaseAttributeBean)context.getBean();
  boolean svgFlag=getSVGFlag(operation.getOprand());
  runReport();
  String bookmark=null;
  boolean useBookmark=false;
  String docName=attrBean.getReportDocumentName();
  long pageNumber=getPageNumber(context.getRequest(),operation.getOprand(),docName);
  if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
    InputOptions options=new InputOptions();
    bookmark=getBookmark(operation.getOprand(),attrBean);
    if (bookmark != null && bookmark.length() > 0) {
      options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
      options.setOption(InputOptions.OPT_LOCALE,attrBean.getLocale());
      pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
      if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
        bookmark=(getReportService()).findTocByName(docName,bookmark,options);
        pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
      }
      useBookmark=true;
    }
    if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
      pageNumber=1;
      useBookmark=false;
    }
  }
  doRenderPage(docName,pageNumber,attrBean.getFormat(),svgFlag,attrBean.isMasterPageContent(),useBookmark,bookmark,attrBean.getLocale(),attrBean.isRtl());
}

Fixed version (ground truth):
protected void __execute() throws Exception {
  BaseAttributeBean attrBean=(BaseAttributeBean)context.getBean();
  boolean svgFlag=getSVGFlag(operation.getOprand());
  runReport();
  String bookmark=null;
  boolean useBookmark=false;
  String docName=attrBean.getReportDocumentName();
  long pageNumber=getPageNumber(context.getRequest(),operation.getOprand(),docName);
  if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
    bookmark=getBookmark(operation.getOprand(),attrBean);
    if (bookmark != null && bookmark.length() > 0) {
      InputOptions options=new InputOptions();
      options.setOption(InputOptions.OPT_REQUEST,context.getRequest());
      options.setOption(InputOptions.OPT_LOCALE,attrBean.getLocale());
      if (attrBean.isToc()) {
        bookmark=(getReportService()).findTocByName(docName,bookmark,options);
      }
      pageNumber=getReportService().getPageNumberByBookmark(docName,bookmark,options);
      if (!isValidPageNumber(context.getRequest(),pageNumber,docName)) {
        AxisFault fault=new AxisFault();
        fault.setFaultReason(BirtResources.getMessage(ResourceConstants.ACTION_EXCEPTION_INVALID_BOOKMARK,new String[]{getBookmark(operation.getOprand(),attrBean)}));
        throw fault;
      }
      useBookmark=true;
    }
  }
  doRenderPage(docName,pageNumber,attrBean.getFormat(),svgFlag,attrBean.isMasterPageContent(),useBookmark,bookmark,attrBean.getLocale(),attrBean.isRtl());
}
Program: 75185
Project: 75185
Buggy source:
protected void prepareResponse() throws ReportServiceException, RemoteException {
  UpdateContent content=new UpdateContent();
  content.setContent(DataUtil.toUTF8(__page.toByteArray()));
  content.setTarget("String_Node_Str");
  content.setInitializationId(parseReportId(__activeIds));
  if (__useBookmark) {
    content.setBookmark(__bookmark);
  }
  Update updateDocument=new Update();
  updateDocument.setUpdateContent(content);
  UpdateData updateData=new UpdateData();
  updateData.setTarget("String_Node_Str");
  Page pageObj=new Page();
  pageObj.setPageNumber(String.valueOf(__pageNumber));
  pageObj.setTotalPage(String.valueOf(__totalPageNumber));
  Data data=new Data();
  data.setPage(pageObj);
  updateData.setData(data);
  Update updateNavbar=new Update();
  updateNavbar.setUpdateData(updateData);
  response.setUpdate(new Update[]{updateDocument,updateNavbar});
}

Fixed version (ground truth):
/** 
 * Prepare response
 * @throws ReportServiceException
 * @throws RemoteException
 */
protected void prepareResponse() throws ReportServiceException, RemoteException {
  UpdateContent content=new UpdateContent();
  content.setContent(DataUtil.toUTF8(__page.toByteArray()));
  content.setTarget("String_Node_Str");
  content.setInitializationId(parseReportId(__activeIds));
  if (__useBookmark) {
    content.setBookmark(__bookmark);
  }
  Update updateDocument=new Update();
  updateDocument.setUpdateContent(content);
  UpdateData updateData=new UpdateData();
  updateData.setTarget("String_Node_Str");
  Page pageObj=new Page();
  pageObj.setPageNumber(String.valueOf(__pageNumber));
  pageObj.setTotalPage(String.valueOf(__totalPageNumber));
  Data data=new Data();
  data.setPage(pageObj);
  updateData.setData(data);
  Update updateNavbar=new Update();
  updateNavbar.setUpdateData(updateData);
  response.setUpdate(new Update[]{updateDocument,updateNavbar});
}
Program: 75186
Project: 75186
Buggy source:
/** 
 * @param context
 * @param operation
 * @param response
 */
public AbstractGetPageActionHandler(IContext context,Operation operation,GetUpdatedObjectsResponse response){
  super(context,operation,response);
}

Fixed version (ground truth):
/** 
 * default constructor
 * @param context
 * @param operation
 * @param response
 */
public AbstractGetPageActionHandler(IContext context,Operation operation,GetUpdatedObjectsResponse response){
  super(context,operation,response);
}
Program: 75187
Project: 75187
Buggy source:
protected void doExecution() throws ReportServiceException, RemoteException {
}

Fixed version (ground truth):
/** 
 * Execution process
 * @throws ReportServiceException
 * @throws RemoteException
 */
protected void doExecution() throws ReportServiceException, RemoteException {
}
Program: 75189
Project: 75189
Buggy source:
protected void __execute() throws Exception {
  prepareParameters();
  doExecution();
  prepareResponse();
}

Fixed version (ground truth):
/** 
 * execute action hanlder
 */
protected void __execute() throws Exception {
  prepareParameters();
  doExecution();
  prepareResponse();
}
Program: 75190
Project: 75190
Buggy source:
/** 
 * @param docName
 * @throws RemoteException
 */
abstract protected void __checkDocumentExists() throws Exception ;

Fixed version (ground truth):
/** 
 * Check whether report document file existed.
 * @param docName
 * @throws RemoteException
 */
abstract protected void __checkDocumentExists() throws Exception ;
Program: 75191
Project: 75191
Buggy source:
/** 
 * @param bean
 * @return
 */
abstract protected String __getReportDocument();

Fixed version (ground truth):
/** 
 * Returns report document file name.
 * @param bean
 * @return
 */
abstract protected String __getReportDocument();
Program: 75192
Project: 75192
Buggy source:
static public IDocumentManager loadFileDocumentManager(String dirName,String managerName) throws DataException, IOException {
  return FileDocumentManager.loadManager(dirName,managerName);
}

Fixed version (ground truth):
/** 
 * @param dirName
 * @param managerName
 * @return
 * @throws DataException
 * @throws IOException
 */
static public IDocumentManager loadFileDocumentManager(String dirName,String managerName) throws DataException, IOException {
  return FileDocumentManager.loadManager(dirName,managerName);
}
Program: 75193
Project: 75193
Buggy source:
/** 
 * @return
 * @throws DataException 
 * @throws IOException 
 */
static public IDocumentManager createFileDocumentManager(String dirName,String managerName) throws DataException, IOException {
  return FileDocumentManager.createManager(dirName,managerName);
}

Fixed version (ground truth):
/** 
 * @param dirName
 * @param managerName
 * @param cacheSize
 * @return
 * @throws DataException
 * @throws IOException
 */
static public IDocumentManager createFileDocumentManager(String dirName,String managerName,int cacheSize) throws DataException, IOException {
  return FileDocumentManager.createManager(dirName,managerName,cacheSize);
}
Program: 75194
Project: 75194
Buggy source:
/** 
 * @param dirName
 * @param managerName
 * @return
 * @throws DataException
 * @throws IOException
 */
static FileDocumentManager createManager(String dirName,String managerName) throws DataException, IOException {
  FileDocumentManager manager=new FileDocumentManager();
  manager.create(dirName,managerName);
  return manager;
}

Fixed version (ground truth):
/** 
 * @param dirName
 * @param managerName
 * @return
 * @throws DataException
 * @throws IOException
 */
static FileDocumentManager createManager(String dirName,String managerName,int cacheSize) throws DataException, IOException {
  FileDocumentManager manager=new FileDocumentManager(cacheSize);
  manager.create(dirName,managerName);
  return manager;
}
Program: 75195
Project: 75195
Buggy source:
private FileDocumentManager(){
}

Fixed version (ground truth):
/** 
 * @param fileCacheSize
 */
private FileDocumentManager(int fileCacheSize){
  this.dataFileCacheSize=fileCacheSize;
}
Program: 75196
Project: 75196
Buggy source:
/** 
 * @param dirName
 * @param managerName
 * @throws IOException
 * @throws DataException
 */
private void load(String dirName,String managerName) throws IOException, DataException {
  documentObjectMap=new HashMap();
  File file=new File(dirName + File.separatorChar + managerName+ "String_Node_Str");
  objectAccessFile=new BufferedRandomAccessFile(file,"String_Node_Str",1024);
  if (!file.exists()) {
    throw new DataException(ResourceConstants.OLAPFILE_NOT_FOUND,file.getAbsolutePath());
  }
  file=new File(dirName + File.separatorChar + managerName+ "String_Node_Str");
  if (!file.exists()) {
    throw new DataException(ResourceConstants.OLAPFILE_NOT_FOUND,file.getAbsolutePath());
  }
  oatAccessFile=new BufferedRandomAccessFile(file,"String_Node_Str",1024);
  file=new File(dirName + File.separatorChar + managerName+ "String_Node_Str");
  if (!file.exists()) {
    throw new DataException(ResourceConstants.OLAPFILE_NOT_FOUND,file.getAbsolutePath());
  }
  dataAccessFile=new BufferedRandomAccessFile(file,"String_Node_Str",1024);
  objectAccessFile.seek(0);
  while (true) {
    try {
      ObjectStructure structure=readObjectStructure();
      if (structure.firstBlock >= 0)       documentObjectMap.put(structure.name,structure);
    }
 catch (    EOFException e) {
      return;
    }
  }
}

Fixed version (ground truth):
/** 
 * @param dirName
 * @param managerName
 * @throws IOException
 * @throws DataException
 */
private void load(String dirName,String managerName) throws IOException, DataException {
  documentObjectMap=new HashMap();
  File file=new File(dirName + File.separatorChar + managerName+ "String_Node_Str");
  objectAccessFile=new BufferedRandomAccessFile(file,"String_Node_Str",1024,dataFileCacheSize / 5);
  if (!file.exists()) {
    throw new DataException(ResourceConstants.OLAPFILE_NOT_FOUND,file.getAbsolutePath());
  }
  file=new File(dirName + File.separatorChar + managerName+ "String_Node_Str");
  if (!file.exists()) {
    throw new DataException(ResourceConstants.OLAPFILE_NOT_FOUND,file.getAbsolutePath());
  }
  oatAccessFile=new BufferedRandomAccessFile(file,"String_Node_Str",1024,dataFileCacheSize / 10);
  file=new File(dirName + File.separatorChar + managerName+ "String_Node_Str");
  if (!file.exists()) {
    throw new DataException(ResourceConstants.OLAPFILE_NOT_FOUND,file.getAbsolutePath());
  }
  dataAccessFile=new BufferedRandomAccessFile(file,"String_Node_Str",1024,dataFileCacheSize);
  objectAccessFile.seek(0);
  while (true) {
    try {
      ObjectStructure structure=readObjectStructure();
      if (structure.firstBlock >= 0)       documentObjectMap.put(structure.name,structure);
    }
 catch (    EOFException e) {
      return;
    }
  }
}