<commit_before>package ca.firstvoices.utils;

import org.nuxeo.ecm.automation.core.util.StringList;
import org.nuxeo.ecm.core.api.DocumentModel;

import java.io.Serializable;
import java.util.List;

public class FVExportWorkInfo implements Serializable
{
    public String fileName;
    public String fileNameAsSaved;
    public String filePath;
    public String initiatorName;
    public String dialectName;
    public String dialectGUID;
    public String resourcesFolderGUID;
    public String exportFormat;
    public String exportQuery;
    public String exportElement;
    public Long workDuration;
    public int originalWorkloadSize;
    public long fileLength;
    public String workDigest;       // connects principal with export query based on  MD5( principal.name + principal.hash )
    public String exportDigest;     // identifies export based on query, columns and principal info ( MD5 hash )
    public StringList columns;
    public DocumentModel wrapper;

    public String getFullFileName()
    {
        if( filePath == null || fileNameAsSaved == null) return null;

        return filePath + fileNameAsSaved;
    }

    public String getWrapperName()
    {
        if( exportDigest == null ) return null;
        return "Export-" + exportDigest;
    }

    public void setExportProgress( String progress )
    {
        if( wrapper == null ) return;
        wrapper.setPropertyValue( "fvexport:progress",  progress);
    }
}<commit_msg>added WORD or PHRASE to the name for easier identification<commit_after>package ca.firstvoices.utils;

import org.nuxeo.ecm.automation.core.util.StringList;
import org.nuxeo.ecm.core.api.DocumentModel;

import java.io.Serializable;
import java.util.List;

public class FVExportWorkInfo implements Serializable
{
    public String fileName;
    public String fileNameAsSaved;
    public String filePath;
    public String initiatorName;
    public String dialectName;
    public String dialectGUID;
    public String resourcesFolderGUID;
    public String exportFormat;
    public String exportQuery;
    public String exportElement;
    public Long workDuration;
    public int originalWorkloadSize;
    public long fileLength;
    public String workDigest;       // connects principal with export query based on  MD5( principal.name + principal.hash )
    public String exportDigest;     // identifies export based on query, columns and principal info ( MD5 hash )
    public StringList columns;
    public DocumentModel wrapper;

    public String getFullFileName()
    {
        if( filePath == null || fileNameAsSaved == null) return null;

        return filePath + fileNameAsSaved;
    }

    public String getWrapperName()
    {
        if( exportDigest == null ) return null;
        return "Export-" + exportElement + "-" + exportDigest;
    }

    public void setExportProgress( String progress )
    {
        if( wrapper == null ) return;
        wrapper.setPropertyValue( "fvexport:progress",  progress);
    }
}
{'fraction_non_alphanumeric': 0.07006369426751592, 'fraction_numerical': 0.0013409319477036541, 'mean_word_length': 3.2689556509299, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6002084', 'n_tokens_mistral': 803, 'n_tokens_neox': 793, 'n_words': 256}