<commit_before>package org.ossim.omar.hibernate.domain

import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.persistence.GenerationType
import javax.persistence.Table
import javax.persistence.Column
import javax.persistence.OneToMany
import javax.persistence.Version
import javax.persistence.Transient
import javax.persistence.FetchType
import javax.persistence.CascadeType
import javax.persistence.ManyToOne
import javax.persistence.JoinColumn
import javax.persistence.CascadeType
//import javax.validation.constraints.Min;
import javax.persistence.SequenceGenerator
import org.hibernate.annotations.GenericGenerator
import org.hibernate.annotations.Type
import com.vividsolutions.jts.geom.Geometry
import com.vividsolutions.jts.geom.Polygon
import com.vividsolutions.jts.io.WKTReader
import groovy.transform.ToString
import groovy.transform.EqualsAndHashCode
import org.hibernate.annotations.Index
import org.ossim.omar.utilities.DateUtil
import groovy.xml.XmlUtil

@Entity
@Table(name="raster_entry")
class RasterEntry
{
    @Version
    @Column(name = "version")
    Long version=0;

    @Id 
    @SequenceGenerator(name="raster_entry_sequence",sequenceName="raster_entry_id_seq")
    @GeneratedValue(strategy=GenerationType.AUTO,generator="raster_entry_sequence")
    @Column(name="id", unique=true, nullable=false)
    Long id;

    @Index(name="raster_entry_entry_id_idx")
    @Column(name = "entry_id")
    String entryId

    @Column(name = "exclude_policy", nullable=true)
    String excludePolicy

    //@Min(0l)
    @Index(name="raster_entry_width_idx")
    @Column(name="width")
    Long width

//    @Min(0l)
    @Index(name="raster_entry_height_idx")
    @Column(name="height")
    Long height

//    @Min(0l)
    @Index(name="raster_entry_number_of_bands_idx")
    @Column(name="number_of_bands")
    Integer numberOfBands

    @Index(name="raster_entry_number_of_res_levels_idx")
    @Column(name="number_of_res_levels", nullable=true)
    Integer numberOfResLevels

    @Index(name="raster_entry_gsd_unit_idx")
    @Column(name="gsd_unit", nullable=true)
    String gsdUnit

    @Index(name="raster_entry_gsdx_idx")
    @Column(name="gsdx", nullable=true)
    Double gsdX

    @Index(name="raster_entry_gsdy_idx")
    @Column(name="gsdy", nullable=true)
    Double gsdY

    @Index(name="raster_entry_bit_depth_idx")
    @Column(name="bit_depth")
    Integer bitDepth

    @Column(name="data_type")
    String dataType

    @Column(name="tie_point_set", nullable=true)
    @Type(type="text")
    String tiePointSet

    @Index(name="raster_entry_index_id_idx")
    @Column(name="index_id", nullable=false, unique=false)
    String indexId

    /** **************** BEGIN ADDING TAGS FROM MetaData to here  ******************/
    @Index(name="raster_entry_filename_idx")
    @Column(name="filename", nullable=true)
    String filename

    @Index(name="raster_entry_image_id_idx")
    @Column(name="image_id", nullable=true)
    String imageId

    @Index(name="raster_entry_target_id_idx")
    @Column(name="target_id", nullable=true)
    String targetId

    @Index(name="raster_entry_product_id_idx")
    @Column(name="product_id", nullable=true)
    String productId

    @Index(name="raster_entry_sensor_id_idx")
    @Column(name="sensor_id", nullable=true)
    String sensorId

    @Index(name="raster_entry_mission_id_idx")
    @Column(name="mission_id", nullable=true)
    String missionId

    @Index(name="raster_entry_image_category_idx")
    @Column(name="image_category", nullable=true)
    String imageCategory

    @Index(name="raster_entry_image_representation_idx")
    @Column(name="image_representation", nullable=true)
    String imageRepresentation

    @Index(name="raster_entry_azimuth_angle_idx")
    @Column(name="azimuth_angle", nullable=true)
    Double azimuthAngle

    @Index(name="raster_entry_grazing_angle_idx")
    @Column(name="grazing_angle", nullable=true)
    Double grazingAngle

    @Index(name="raster_entry_security_classification_idx")
    @Column(name="security_classification", nullable=true)
    String securityClassification

    @Index(name="raster_entry_security_code_idx")
    @Column(name="security_code", nullable=true)
    String securityCode

    @Index(name="raster_entry_title_idx")
    @Column(name="title", nullable=true)
    String title

    @Column(name="isorce", nullable=true)
    String isorce

    @Column(name="organization", nullable=true)
    String organization

    @Column(name="description", nullable=true)
    String description

    @Index(name="raster_entry_country_code_idx")
    @Column(name="country_code", nullable=true)
    String countryCode

    @Index(name="raster_entry_be_number_idx")
    @Column(name="be_number", nullable=true)
    String beNumber

    @Index(name="raster_entry_niirs_idx")
    @Column(name="niirs", nullable=true)
    Double niirs

    @Column(name="wac_code", nullable=true)
    String wacCode

    @Column(name="sun_elevation", nullable=true)
    Double sunElevation

    @Column(name="sun_azimuth", nullable=true)
    Double sunAzimuth

    @Column(name="cloud_cover", nullable=true)
    Double cloudCover

    @Column(name="style_id", nullable=true)
    BigInteger styleId

    @Column(name="keep_forever", nullable=true)
    Boolean keepForever


  @Column(name="ground_geom", columnDefinition="Geometry", nullable=false)
  @Type(type = "org.hibernatespatial.GeometryUserType")
   // @Column(name="ground_geom", columnDefinition="Geometry", nullable=false)
   // @Type(type = "org.hibernate.spatial.GeometryType")
    Geometry groundGeom

    @Index(name="raster_entry_acquisition_date_idx")
    @Column(name="acquisition_date", nullable=true)
    Date acquisitionDate

    @Index(name="raster_entry_valid_model_idx")
    @Column(name="valid_model", nullable=true)
    Integer validModel

    @Index(name="raster_entry_access_date_idx")
    @Column(name="access_date", nullable=true)
    Date accessDate

    @Index(name="raster_entry_ingest_date_idx")
    @Column(name="ingest_date", nullable=true)
    Date ingestDate

    @Index(name="raster_entry_receive_date_idx")
    @Column(name="receive_date", nullable=true)
    Date receiveDate

    @Index(name="raster_entry_release_id_idx")<commit_msg>Added crosses dateline<commit_after>package org.ossim.omar.hibernate.domain

import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.persistence.GenerationType
import javax.persistence.Table
import javax.persistence.Column
import javax.persistence.OneToMany
import javax.persistence.Version
import javax.persistence.Transient
import javax.persistence.FetchType
import javax.persistence.CascadeType
import javax.persistence.ManyToOne
import javax.persistence.JoinColumn
import javax.persistence.CascadeType
//import javax.validation.constraints.Min;
import javax.persistence.SequenceGenerator
import org.hibernate.annotations.GenericGenerator
import org.hibernate.annotations.Type
import com.vividsolutions.jts.geom.Geometry
import com.vividsolutions.jts.geom.Polygon
import com.vividsolutions.jts.io.WKTReader
import groovy.transform.ToString
import groovy.transform.EqualsAndHashCode
import org.hibernate.annotations.Index
import org.ossim.omar.utilities.DateUtil
import groovy.xml.XmlUtil

@Entity
@Table(name="raster_entry")
class RasterEntry
{
    @Version
    @Column(name = "version")
    Long version=0;

    @Id 
    @SequenceGenerator(name="raster_entry_sequence",sequenceName="raster_entry_id_seq")
    @GeneratedValue(strategy=GenerationType.AUTO,generator="raster_entry_sequence")
    @Column(name="id", unique=true, nullable=false)
    Long id;

    @Index(name="raster_entry_entry_id_idx")
    @Column(name = "entry_id")
    String entryId

    @Column(name = "exclude_policy", nullable=true)
    String excludePolicy

    //@Min(0l)
    @Index(name="raster_entry_width_idx")
    @Column(name="width")
    Long width

//    @Min(0l)
    @Index(name="raster_entry_height_idx")
    @Column(name="height")
    Long height

//    @Min(0l)
    @Index(name="raster_entry_number_of_bands_idx")
    @Column(name="number_of_bands")
    Integer numberOfBands

    @Index(name="raster_entry_number_of_res_levels_idx")
    @Column(name="number_of_res_levels", nullable=true)
    Integer numberOfResLevels

    @Index(name="raster_entry_gsd_unit_idx")
    @Column(name="gsd_unit", nullable=true)
    String gsdUnit

    @Index(name="raster_entry_gsdx_idx")
    @Column(name="gsdx", nullable=true)
    Double gsdX

    @Index(name="raster_entry_gsdy_idx")
    @Column(name="gsdy", nullable=true)
    Double gsdY

    @Index(name="raster_entry_bit_depth_idx")
    @Column(name="bit_depth")
    Integer bitDepth

    @Column(name="data_type")
    String dataType

    @Column(name="tie_point_set", nullable=true)
    @Type(type="text")
    String tiePointSet

    @Index(name="raster_entry_index_id_idx")
    @Column(name="index_id", nullable=false, unique=false)
    String indexId

    /** **************** BEGIN ADDING TAGS FROM MetaData to here  ******************/
    @Index(name="raster_entry_filename_idx")
    @Column(name="filename", nullable=true)
    String filename

    @Index(name="raster_entry_image_id_idx")
    @Column(name="image_id", nullable=true)
    String imageId

    @Index(name="raster_entry_target_id_idx")
    @Column(name="target_id", nullable=true)
    String targetId

    @Index(name="raster_entry_product_id_idx")
    @Column(name="product_id", nullable=true)
    String productId

    @Index(name="raster_entry_sensor_id_idx")
    @Column(name="sensor_id", nullable=true)
    String sensorId

    @Index(name="raster_entry_mission_id_idx")
    @Column(name="mission_id", nullable=true)
    String missionId

    @Index(name="raster_entry_image_category_idx")
    @Column(name="image_category", nullable=true)
    String imageCategory

    @Index(name="raster_entry_image_representation_idx")
    @Column(name="image_representation", nullable=true)
    String imageRepresentation

    @Index(name="raster_entry_azimuth_angle_idx")
    @Column(name="azimuth_angle", nullable=true)
    Double azimuthAngle

    @Index(name="raster_entry_grazing_angle_idx")
    @Column(name="grazing_angle", nullable=true)
    Double grazingAngle

    @Index(name="raster_entry_security_classification_idx")
    @Column(name="security_classification", nullable=true)
    String securityClassification

    @Index(name="raster_entry_security_code_idx")
    @Column(name="security_code", nullable=true)
    String securityCode

    @Index(name="raster_entry_title_idx")
    @Column(name="title", nullable=true)
    String title

    @Column(name="isorce", nullable=true)
    String isorce

    @Column(name="organization", nullable=true)
    String organization

    @Column(name="description", nullable=true)
    String description

    @Index(name="raster_entry_country_code_idx")
    @Column(name="country_code", nullable=true)
    String countryCode

    @Index(name="raster_entry_be_number_idx")
    @Column(name="be_number", nullable=true)
    String beNumber

    @Index(name="raster_entry_niirs_idx")
    @Column(name="niirs", nullable=true)
    Double niirs

    @Column(name="wac_code", nullable=true)
    String wacCode

    @Column(name="sun_elevation", nullable=true)
    Double sunElevation

    @Column(name="sun_azimuth", nullable=true)
    Double sunAzimuth

    @Column(name="cloud_cover", nullable=true)
    Double cloudCover

    @Column(name="style_id", nullable=true)
    BigInteger styleId

    @Column(name="keep_forever", nullable=true)
    Boolean keepForever

    @Column(name="keep_forever", nullable=true)
    Boolean crossesDateline


  @Column(name="ground_geom", columnDefinition="Geometry", nullable=false)
  @Type(type = "org.hibernatespatial.GeometryUserType")
   // @Column(name="ground_geom", columnDefinition="Geometry", nullable=false)
   // @Type(type = "org.hibernate.spatial.GeometryType")
    Geometry groundGeom

    @Index(name="raster_entry_acquisition_date_idx")
    @Column(name="acquisition_date", nullable=true)
    Date acquisitionDate

    @Index(name="raster_entry_valid_model_idx")
    @Column(name="valid_model", nullable=true)
    Integer validModel

    @Index(name="raster_entry_access_date_idx")
    @Column(name="access_date", nullable=true)
    Date accessDate

    @Index(name="raster_entry_ingest_date_idx")
    @Column(name="ingest_date", nullable=true)
    Date ingestDate

    @Index(name="raster_entry_receive_date_idx")
    @Column(name="receive_date", nullable=true)
    Date receiveDate

    @Index(name="raster_entry_release_id_idx")
{'fraction_non_alphanumeric': 0.11945015010270185, 'fraction_numerical': 0.0006320113762047717, 'mean_word_length': 5.393434343434343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '987556', 'n_tokens_mistral': 4224, 'n_tokens_neox': 4080, 'n_words': 595}