<commit_before>[%

    rss_alt   = loc('RSS feed');
    rss_title = loc('RSS feed of recent local problems');

    rss_url
        = pc
        ? c.uri_for( "/rss/pc", pc )
        : c.uri_for( "/rss/l/$short_latitude,$short_longitude" );
            
    email_url = c.uri_for(
        '/alert/list',
        {
            lat  => short_latitude,
            lon  => short_longitude,
            feed => "local:$short_latitude:$short_longitude",
        }
    );

    url_skip = c.uri_for(
        '/report/new',
        {
            pc         => pc
            latitude   => short_latitude,
            longitude  => short_longitude,
            skipped    => 1,
        }
    );

    PROCESS "maps/${map.type}.html";

    INCLUDE 'header.html',
        title  => loc('Viewing a location')
        rss    => [ loc('Recent local problems, FixMyStreet'), rss_url ],
        robots => 'noindex,nofollow';
%]

<form action="[% c.uri_for('/report/new') %]" method="post" name="mapForm" id="mapForm" enctype="multipart/form-data" class="validate">
    [% IF c.req.params.map_override %]
        <input type="hidden" name="map_override" value="[% c.req.params.map_override | html %]">
    [% END %]
    <input type="hidden" name="pc" value="[% pc | html %]">

    <input type="hidden" name="latitude" id="fixmystreet.latitude" value="[% short_latitude | html %]">
    <input type="hidden" name="longitude" id="fixmystreet.longitude" value="[% short_longitude | html %]">

    [% map_html %]

        <p id='sub_map_links'>
            [% IF c.req.params.no_pins %]
                <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 0 } ) %]'>[% loc('Show pins') %]</a>
            [% ELSE %]
                <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 1 } ) %]'>[% loc('Hide pins') %]</a>
            [% END %]
            [% IF c.cobrand.country == 'GB' || c.cobrand.country == 'NO' %]
                |
                [% IF c.req.params.all_pins %]
                    <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => undef } ) %]'>[% loc('Hide stale reports') %]</a>
                [% ELSE %]
                    <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => 1 } ) %]'>[% loc('Include stale reports') %]</a>
                [% END %]
            [% END %]
        </p>

    </div>






    <h1>[% loc( 'Click on the map to report a problem.' ) %]</h1>

    <p>
        [%
            tprintf(
                loc("<small>Can't see the map? <a href='%s' rel='nofollow'>Skip this step</a>.</small>"),
                url_skip
            )
        %]
    </p>

    <div class="shadow-wrap">
        <ul id="key-tools">
            <li><a href="[% rss_url | html %]" id="rss_alert">[% rss_alt %]</a></li>
            <li><a id="email_alert" rel="nofollow" href="[% email_url | html %]">[%- loc('Email me new local problems') -%]</a></li>
        </ul>
    </div>


    <section class="full-width">
        <h4 class="static-with-rule">[% loc('Problems on the map') %]</h4>
        
        <ul class="issue-list">
            [% INCLUDE "around/on_map_list_items.html" %]
        </ul>

        <h4 class="static-with-rule">[% loc( 'Problems nearby' ) %]</h4>
        
        <ul class="issue-list">
            [% INCLUDE "around/around_map_list_items.html" %]
        </ul>
    </section>
<commit_msg>fix js hide/show issue on around/display_location<commit_after>[%

    rss_alt   = loc('RSS feed');
    rss_title = loc('RSS feed of recent local problems');

    rss_url
        = pc
        ? c.uri_for( "/rss/pc", pc )
        : c.uri_for( "/rss/l/$short_latitude,$short_longitude" );
            
    email_url = c.uri_for(
        '/alert/list',
        {
            lat  => short_latitude,
            lon  => short_longitude,
            feed => "local:$short_latitude:$short_longitude",
        }
    );

    url_skip = c.uri_for(
        '/report/new',
        {
            pc         => pc
            latitude   => short_latitude,
            longitude  => short_longitude,
            skipped    => 1,
        }
    );

    PROCESS "maps/${map.type}.html";

    INCLUDE 'header.html',
        title  => loc('Viewing a location')
        rss    => [ loc('Recent local problems, FixMyStreet'), rss_url ],
        robots => 'noindex,nofollow';
%]

<form action="[% c.uri_for('/report/new') %]" method="post" name="mapForm" id="mapForm" enctype="multipart/form-data" class="validate">
    [% IF c.req.params.map_override %]
        <input type="hidden" name="map_override" value="[% c.req.params.map_override | html %]">
    [% END %]
    <input type="hidden" name="pc" value="[% pc | html %]">

    <input type="hidden" name="latitude" id="fixmystreet.latitude" value="[% short_latitude | html %]">
    <input type="hidden" name="longitude" id="fixmystreet.longitude" value="[% short_longitude | html %]">

    [% map_html %]

        <p id='sub_map_links'>
            [% IF c.req.params.no_pins %]
                <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 0 } ) %]'>[% loc('Show pins') %]</a>
            [% ELSE %]
                <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 1 } ) %]'>[% loc('Hide pins') %]</a>
            [% END %]
            [% IF c.cobrand.country == 'GB' || c.cobrand.country == 'NO' %]
                |
                [% IF c.req.params.all_pins %]
                    <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => undef } ) %]'>[% loc('Hide stale reports') %]</a>
                [% ELSE %]
                    <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => 1 } ) %]'>[% loc('Include stale reports') %]</a>
                [% END %]
            [% END %]
        </p>

    </div>




    <div id="side">

        <h1>[% loc( 'Click on the map to report a problem.' ) %]</h1>

        <p>
            [%
                tprintf(
                    loc("<small>Can't see the map? <a href='%s' rel='nofollow'>Skip this step</a>.</small>"),
                    url_skip
                )
            %]
        </p>

        <div class="shadow-wrap">
            <ul id="key-tools">
                <li><a href="[% rss_url | html %]" id="rss_alert">[% rss_alt %]</a></li>
                <li><a id="email_alert" rel="nofollow" href="[% email_url | html %]">[%- loc('Email me new local problems') -%]</a></li>
            </ul>
        </div>


        <section class="full-width">
            <h4 class="static-with-rule">[% loc('Problems on the map') %]</h4>
            
            <ul class="issue-list">
                [% INCLUDE "around/on_map_list_items.html" %]
            </ul>

            <h4 class="static-with-rule">[% loc( 'Problems nearby' ) %]</h4>
            
            <ul class="issue-list">
                [% INCLUDE "around/around_map_list_items.html" %]
            </ul>
        </section>
    </div>

{'fraction_non_alphanumeric': 0.18836879432624112, 'fraction_numerical': 0.0028368794326241137, 'mean_word_length': 1.879134340547162, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 129, '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': '10074', 'n_tokens_mistral': 2572, 'n_tokens_neox': 2406, 'n_words': 470}