<commit_before>package com.thinkbiganalytics.spark.metadata;

import com.thinkbiganalytics.db.model.query.QueryResult;

/**
 * The result of a Spark transformation.
 */
public class TransformResponse {

    /**
     * Success status of a transformation.
     */
    public enum Status {
        /** Transformation resulted in an error */
        ERROR,

        /** Transformation was successful */
        SUCCESS;

        @Override
        public String toString() {
            return super.toString().toLowerCase();
        }
    }

    /** Error message */
    private String message;

    /** Result of a transformation */
    private QueryResult results;

    /** Success status of a transformation */
    private Status status;
<commit_msg>Ignore null fields in TransformResponse.<commit_after>package com.thinkbiganalytics.spark.metadata;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.thinkbiganalytics.db.model.query.QueryResult;

/**
 * The result of a Spark transformation.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TransformResponse {

    /**
     * Success status of a transformation.
     */
    public enum Status {
        /** Transformation resulted in an error */
        ERROR,

        /** Transformation was successful */
        SUCCESS;

        @Override
        public String toString() {
            return super.toString().toLowerCase();
        }
    }

    /** Error message */
    private String message;

    /** Result of a transformation */
    private QueryResult results;

    /** Success status of a transformation */
    private Status status;

{'fraction_non_alphanumeric': 0.09561998766193708, 'fraction_numerical': 0.0, 'mean_word_length': 2.4437367303609343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '2503351', 'n_tokens_mistral': 407, 'n_tokens_neox': 388, 'n_words': 121}