<commit_before>package App::Mimosa::Schema::BCS::Result::Mimosa::Job;
use strict;
use warnings;

use base 'DBIx::Class::Core';

=head1 NAME

App::Mimosa::Schema::BCS::Result::Mimosa::Job - Mimosa Job

=head1 COLUMNS

=cut

__PACKAGE__->table("mimosa_job");

=head2 mimosa_job_id

Auto-incrementing surrogate primary key.

=head2 sha1

SHA1 hash of the job parameters. This is used to identify duplicate job requests, or
requests for jobs that are already running.

Not null, varchar(40).

=head2 finished

Boolean value describing whether this job is finished.

=cut

__PACKAGE__->add_columns(

  "mimosa_job_id",
  {
    data_type         => "integer",
    is_auto_increment => 1,
    is_nullable       => 0,
    sequence          => "mimosa_job_mimosa_job_id_seq",
  },

  'sha1',
  { data_type => "varchar", is_nullable => 0, size => 40 },

  'finished',
  { data_type => "bool", is_nullable => 0, default => 0 },

);

__PACKAGE__->set_primary_key("mimosa_job_id");
__PACKAGE__->add_unique_constraint("mimosa_job_c1", ['sha1'] );<commit_msg>Add start_time and end_time columns to mimosa_job, and remove finished<commit_after>package App::Mimosa::Schema::BCS::Result::Mimosa::Job;
use strict;
use warnings;

use base 'DBIx::Class::Core';

=head1 NAME

App::Mimosa::Schema::BCS::Result::Mimosa::Job - Mimosa Job

=head1 COLUMNS

=cut

__PACKAGE__->table("mimosa_job");

=head2 mimosa_job_id

Auto-incrementing surrogate primary key.

=head2 sha1

SHA1 hash of the job parameters. This is used to identify duplicate job requests, or
requests for jobs that are already running.

Not null, varchar(40).

=head2 finished

Boolean value describing whether this job is finished.

=cut

__PACKAGE__->add_columns(

  "mimosa_job_id",
  {
    data_type         => "integer",
    is_auto_increment => 1,
    is_nullable       => 0,
    sequence          => "mimosa_job_mimosa_job_id_seq",
  },

  'sha1',
  { data_type => "varchar", is_nullable => 0, size => 40 },

  'start_time',
  { data_type => "datetime", is_nullable => 0 },

  'end_time',
  { data_type => "datetime", is_nullable => 0 },

);

__PACKAGE__->set_primary_key("mimosa_job_id");
__PACKAGE__->add_unique_constraint("mimosa_job_c1", ['sha1'] );
{'fraction_non_alphanumeric': 0.13221263062244434, 'fraction_numerical': 0.017264879600181735, 'mean_word_length': 4.464019851116626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 32, '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': '2227097', 'n_tokens_mistral': 824, 'n_tokens_neox': 802, 'n_words': 190}