<commit_before>
use strict;
use warnings;

use CXGN::Page;
use CXGN::DB::Connection;

my $page = CXGN::Page->new();
my ( $map_id, $map_version_id, $size, $hilite, $physical, $force ) =
  $page->get_encoded_arguments( "map_id", "map_version_id", "size", "hilite",
    "physical", "force" );

my $dbh = CXGN::DB::Connection->new;

my $referer = $page->get_request->self_url;

my $tempdir = $c->path_to( $c->tempfiles_subdir('cview') );

$c->forward_to_mason_view(
    '/cview/map/index.mas',
    dbh            => $dbh,
    map_version_id => $map_version_id,
    map_id         => $map_id,
    hilite         => $hilite,
    physical       => $physical,
    size           => $size,
    referer        => $referer,
    force          => $force,
    tempdir        => $tempdir,
);

=head1 NAME

map.pl - display top level map web page

=head1 DESCRIPTION<commit_msg>fix cview/map.pl i broke when changing CXGN::Scrap<commit_after>
use strict;
use warnings;

use CXGN::Page;
use CXGN::DB::Connection;

our $c;

my $page = CXGN::Page->new();
my ( $map_id, $map_version_id, $size, $hilite, $physical, $force ) =
  $page->get_encoded_arguments( "map_id", "map_version_id", "size", "hilite",
    "physical", "force" );

my $dbh = CXGN::DB::Connection->new;

my $referer = $c->request->referer;

my $tempdir = $c->path_to( $c->tempfiles_subdir('cview') );

$c->forward_to_mason_view(
    '/cview/map/index.mas',
    dbh            => $dbh,
    map_version_id => $map_version_id,
    map_id         => $map_id,
    hilite         => $hilite,
    physical       => $physical,
    size           => $size,
    referer        => $referer,
    force          => $force,
    tempdir        => $tempdir,
);

=head1 NAME

map.pl - display top level map web page

=head1 DESCRIPTION
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.0022675736961451248, 'mean_word_length': 2.8876651982378854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '5283811', 'n_tokens_mistral': 686, 'n_tokens_neox': 671, 'n_words': 141}