<commit_before>package org.intermine.api.results;

/*
 * Copyright (C) 2002-2011 FlyMine
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  See the LICENSE file for more
 * information or http://www.gnu.org/copyleft/lesser.html.
 *
 */

import java.io.Serializable;

import org.intermine.model.FastPathObject;
import org.intermine.model.InterMineObject;
import org.intermine.pathquery.Path;
import org.intermine.util.DynamicUtil;
import org.intermine.util.TypeUtil;
import org.intermine.util.Util;

/**
 * Cell of results table containing information for the parent Object
 *
 * @author <NAME>
 */
public class ResultElement implements Serializable
{
    protected Object field;
    protected FastPathObject imObj;
    protected String htmlId;
    /** @boolean protected as we need to determine if the element is a key field from JSP */
    protected final boolean keyField;
    private final Path path;
    private String linkRedirect;

    /**
     * Constructs a new ResultCell object
     * @param imObj the InterMineObject or SimpleObject to wrap
     * @param path the Path
     * @param isKeyField should be true if this is an identifying field
     */
    public ResultElement(FastPathObject imObj, Path path, boolean isKeyField) {
        this.imObj = imObj;
        this.keyField = isKeyField;
        this.path = path;
        if (imObj != null) {
            try {<commit_msg>checkstyle<commit_after>package org.intermine.api.results;

/*
 * Copyright (C) 2002-2011 FlyMine
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  See the LICENSE file for more
 * information or http://www.gnu.org/copyleft/lesser.html.
 *
 */

import java.io.Serializable;

import org.intermine.model.FastPathObject;
import org.intermine.model.InterMineObject;
import org.intermine.pathquery.Path;
import org.intermine.util.DynamicUtil;
import org.intermine.util.TypeUtil;
import org.intermine.util.Util;

/**
 * Cell of results table containing information for the parent Object
 *
 * @author <NAME>
 */
public class ResultElement implements Serializable
{
    private static final long serialVersionUID = 1L;
    protected Object field;
    protected FastPathObject imObj;
    protected String htmlId;
    /** @boolean protected as we need to determine if the element is a key field from JSP */
    protected final boolean keyField;
    private final Path path;
    private String linkRedirect;

    /**
     * Constructs a new ResultCell object
     * @param imObj the InterMineObject or SimpleObject to wrap
     * @param path the Path
     * @param isKeyField should be true if this is an identifying field
     */
    public ResultElement(FastPathObject imObj, Path path, boolean isKeyField) {
        this.imObj = imObj;
        this.keyField = isKeyField;
        this.path = path;
        if (imObj != null) {
            try {
{'fraction_non_alphanumeric': 0.0760655737704918, 'fraction_numerical': 0.005573770491803279, 'mean_word_length': 3.2851123595505616, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6961301', 'n_tokens_mistral': 854, 'n_tokens_neox': 834, 'n_words': 310}