<commit_before>package taro.spreadsheet.model;

import static com.google.common.collect.Maps.*;
import static taro.spreadsheet.model.SpreadsheetCellStyle.DEFAULT;

import java.util.Map;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.ClientAnchor;
import org.apache.poi.ss.usermodel.Drawing;
import org.apache.poi.ss.usermodel.Picture;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.ss.util.CellReference;

public class SpreadsheetTab {

    private SpreadsheetWorkbook workbook;
    private Sheet sheet;
    private Map<String, SpreadsheetCell> cells = newHashMap();
    private Drawing drawing;

    private int highestModifiedCol = -1;
    private int highestModifiedRow = -1;

    SpreadsheetTab(SpreadsheetWorkbook workbook, String title) {
        this.workbook = workbook;
        this.sheet = workbook.getPoiWorkbook().createSheet(title);
    }

    SpreadsheetTab(SpreadsheetWorkbook workbook, Sheet sheet) {
        this.workbook = workbook;
        this.sheet = sheet;
    }

    public static String getCellAddress(int row, int col) {
        return CellReference.convertNumToColString(col) + (row+1);
    }<commit_msg>Replaced Sheet by XSSFSheet<commit_after>package taro.spreadsheet.model;

import static com.google.common.collect.Maps.*;
import static taro.spreadsheet.model.SpreadsheetCellStyle.DEFAULT;

import java.util.Map;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.ClientAnchor;
import org.apache.poi.ss.usermodel.Drawing;
import org.apache.poi.ss.usermodel.Picture;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.xssf.usermodel.XSSFSheet;

public class SpreadsheetTab {

    private SpreadsheetWorkbook workbook;
    private XSSFSheet sheet;
    private Map<String, SpreadsheetCell> cells = newHashMap();
    private Drawing drawing;

    private int highestModifiedCol = -1;
    private int highestModifiedRow = -1;

    SpreadsheetTab(SpreadsheetWorkbook workbook, String title) {
        this.workbook = workbook;
        this.sheet = workbook.getPoiWorkbook().createSheet(title);
    }

    SpreadsheetTab(SpreadsheetWorkbook workbook, XSSFSheet sheet) {
        this.workbook = workbook;
        this.sheet = sheet;
    }

    public static String getCellAddress(int row, int col) {
        return CellReference.convertNumToColString(col) + (row+1);
    }
{'fraction_non_alphanumeric': 0.10104011887072809, 'fraction_numerical': 0.002228826151560178, 'mean_word_length': 4.12952380952381, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5625621', 'n_tokens_mistral': 907, 'n_tokens_neox': 866, 'n_words': 163}