<commit_before>{% extends "common/base.html" %}
{% load appname %}
{% block head %}
    <script type="text/javascript">

        google.load("earth", "1.x");
        google.load('maps', '3', {"other_params":"sensor=false"});

        var ge = null;
        var gex = null;
        
        var options = {
            media_url: "{{MEDIA_URL}}",
            news_url: '{% url news-main %}',
            about_url: '{% url news-about %}',
            {% if user.is_authenticated %}profile_url: '{% url user_profile-form user.username %}',{% endif %}
            registration_url: '{% url registration_register %}',
            help_url: '{% url help-main %}',
            signin_url: '{% url user_signin %}'
        };
        
        // Used to identify whether the about or news panel should be shown
        {% if show_panel %}
            options.show_panel = '{{ show_panel }}';
        {% endif %}
        
        {% block enhancedContent %}
            options.displayEnhancedContent = false;
        {% endblock enhancedContent %}

        {% block layersConfig %}
            // setup which kml files are shown in the data layers panel
            {% if is_studyregion %}
                lingcod.addLayer('{% url studyregion-kml %}', {setExtent: true});            
            {% endif %}
            {% if is_public_layers %}        
                lingcod.addLayer('{% url public-data-layers %}');            
            {% endif %}
            {% if user.is_authenticated and is_privatekml %}
                lingcod.addLayer('{% url layers-privatekml-list session_key=session_key %}');            
            {% endif %}
        {% endblock layersConfig %}

        {% block sharedshapes %}
            {% if user.is_authenticated %}
                options.sharedshapes = ["{% url kmlapp-sharedlinks-kmz input_username=user.username session_key=session_key %}"];
                options.allow_copy = true;
            {% else %}
                options.sharedshapes = ["{% url kmlapp-publicshared-kmz 0 %}"];
                options.allow_copy = false;
            {% endif %}
        {% endblock sharedshapes %}

        {% block myshapes %}
            {% if user.is_authenticated %}
                options.myshapes = [{url: "{% url kmlapp-userlinks-kmz input_username=user.username session_key=session_key %}"}];
            {% endif %}
        {% endblock myshapes %}
                                        
        {% block addToOptions %}{% endblock addToOptions %}
        
        $(document).ready(function(){
            lingcod.init(options);
        });
    </script>
{% endblock %}

{% block body %}
    <div id="meta-navigation">
      
      <span class="pagetitle">{% block pagetitle %}{% endblock pagetitle %}</span>
        <ul>
            {% block metanavigation %}
            {% if user.is_authenticated %}
            <li>{{user.username}} | </li>
            {% endif %}
            <li><a href="#" id="news">news</a> | </li>
            <li><a href="#" id="about">about {% appname %}</a> | </li>
            {% block meta_navigation_list_insert %}{% endblock %}
            <li><a href="#" id="help">help</a> | </li>
            {% if user.is_authenticated %}
            <li><a href="#" id="profile">my profile</a> | </li>
            <li><a href="{% url user_signout %}">sign out</a></li>
            {% else %}
            <li><a href="#" id="register">register</a> | </li>
            <!-- <li><a href="{% url user_signin %}" id="signin">sign in</a></li> -->
            <li><a href="#" id="signin">sign in</a></li>
            {% endif %}                
            {% endblock metanavigation %}
            {% block meta_navigation_list_append %}{% endblock %}
        </ul>
        <br />
    </div>
    <ul class="menu_items" id="header_buttons">
        <li class="divider"><img src="{{MEDIA_URL}}/common/images/header_divider.gif" height="32" width="2" /></li>
        <li id="layers_menu" class="item">
            <span>
                <a title="Data Layers" href="#DataLayers"><img src="{{MEDIA_URL}}/common/images/transparent.gif" width="44" height="48" /></a>
            </span>
        </li>
        <li class="divider"><img src="{{MEDIA_URL}}/common/images/header_divider.gif" height="32" width="2" /></li>
        <li id="tools_menu" class="item autosize">
            <span>
                <a title="Tools" href="#tools"><img src="{{MEDIA_URL}}/common/images/transparent.gif" width="44" height="48" /></a>
            </span>
        </li>
        <li class="divider"><img src="{{MEDIA_URL}}/common/images/header_divider.gif" height="32" width="2" /></li>
    </ul>
    {% block toggle %}
    <div id="sidebar-toggler">
        &nbsp;
    </div>
    <a id="show-sidebar" href="#">show sidebar</a>
    {% endblock toggle %}
    <div id="sidebar">
        <div id="sidebar-mask"><span class="loadingMsg"></span></div>
        <ul>
            {% block tabs %}
            {% if user.is_authenticated %}
            <li><a href="#MyShapes"><span>My Shapes</span></a></li>                
            {% endif %}
            <li><a href="#SharedShapes"><span>{% if user.is_authenticated %}Shared With Me{% else %}Public Proposals{% endif %}</span></a></li>
            {% endblock tabs %}
        </ul>
        {% block tabscontents %}
        {% if user.is_authenticated %}
        <div id="MyShapes">
            {% block before_myshapes %}{% endblock before_myshapes %}
            <div style="font-size:1em;" id="myshapestree"></div>
        </div>            
        {% endif %}
        <div id="SharedShapes">
            <div style="font-size:1em;" id="sharedshapestree"></div>
        </div>            
        {% endblock tabscontents %}
    </div>
    <div id="map_container">
        <div id="map" class="kmlTreeReset"></div>
    </div>
    {% block tools %}
    <div id="tools">
        <h1>Tools</h1>
        {% block flyto %}
        <form id="flyToLocation" method="GET">
            <input type="text" name="flyto_location" value="">
            <a id="flytogo" href="#" class="button" onclick="this.blur(); return false;"><span>Fly Here</span></a>
            <a id="flytoclear" href="#" class="button red disabled" onclick="this.blur(); return false;"><span>Clear</span></a>
            <input type="submit" style="display:none;" />
            <br style="clear:both;" />
        </form>
        {% endblock flyto %}
        <hr />
        <div id="measurement_tools" class="tool">
            <a id="measure_distance" href="#" class="button" onclick="this.blur(); return false;"><span><img src="{{MEDIA_URL}}common/images/ruler.png">Measure Distance</span></a><commit_msg>Adding blocks to map.html template to allow some UI restructuring<commit_after>{% extends "common/base.html" %}
{% load appname %}
{% block head %}
    <script type="text/javascript">

        google.load("earth", "1.x");
        google.load('maps', '3', {"other_params":"sensor=false"});

        var ge = null;
        var gex = null;
        
        var options = {
            media_url: "{{MEDIA_URL}}",
            news_url: '{% url news-main %}',
            about_url: '{% url news-about %}',
            {% if user.is_authenticated %}profile_url: '{% url user_profile-form user.username %}',{% endif %}
            registration_url: '{% url registration_register %}',
            help_url: '{% url help-main %}',
            signin_url: '{% url user_signin %}'
        };
        
        // Used to identify whether the about or news panel should be shown
        {% if show_panel %}
            options.show_panel = '{{ show_panel }}';
        {% endif %}
        
        {% block enhancedContent %}
            options.displayEnhancedContent = false;
        {% endblock enhancedContent %}

        {% block layersConfig %}
            // setup which kml files are shown in the data layers panel
            {% if is_studyregion %}
                lingcod.addLayer('{% url studyregion-kml %}', {setExtent: true});            
            {% endif %}
            {% if is_public_layers %}        
                lingcod.addLayer('{% url public-data-layers %}');            
            {% endif %}
            {% if user.is_authenticated and is_privatekml %}
                lingcod.addLayer('{% url layers-privatekml-list session_key=session_key %}');            
            {% endif %}
        {% endblock layersConfig %}

        {% block sharedshapes %}
            {% if user.is_authenticated %}
                options.sharedshapes = ["{% url kmlapp-sharedlinks-kmz input_username=user.username session_key=session_key %}"];
                options.allow_copy = true;
            {% else %}
                options.sharedshapes = ["{% url kmlapp-publicshared-kmz 0 %}"];
                options.allow_copy = false;
            {% endif %}
        {% endblock sharedshapes %}

        {% block myshapes %}
            {% if user.is_authenticated %}
                options.myshapes = [{url: "{% url kmlapp-userlinks-kmz input_username=user.username session_key=session_key %}"}];
            {% endif %}
        {% endblock myshapes %}
                                        
        {% block addToOptions %}{% endblock addToOptions %}
        
        $(document).ready(function(){
            lingcod.init(options);
        });
    </script>
{% endblock %}

{% block body %}
    <div id="meta-navigation">
      
      <span class="pagetitle">{% block pagetitle %}{% endblock pagetitle %}</span>
        <ul>
            {% block metanavigation %}
            {% if user.is_authenticated %}
            <li>{{user.username}} | </li>
            {% endif %}
            <li><a href="#" id="news">news</a> | </li>
            <li><a href="#" id="about">about {% appname %}</a> | </li>
            {% block meta_navigation_list_insert %}{% endblock %}
            <li><a href="#" id="help">help</a> | </li>
            {% if user.is_authenticated %}
            <li><a href="#" id="profile">my profile</a> | </li>
            <li><a href="{% url user_signout %}">sign out</a></li>
            {% else %}
            <li><a href="#" id="register">register</a> | </li>
            <!-- <li><a href="{% url user_signin %}" id="signin">sign in</a></li> -->
            <li><a href="#" id="signin">sign in</a></li>
            {% endif %}                
            {% endblock metanavigation %}
            {% block meta_navigation_list_append %}{% endblock %}
        </ul>
        <br />
    </div>

    {% block menu_icons %}
    <ul class="menu_items" id="header_buttons">
        <li class="divider"><img src="{{MEDIA_URL}}/common/images/header_divider.gif" height="32" width="2" /></li>
        <li id="layers_menu" class="item">
            <span>
                <a title="Data Layers" href="#DataLayers"><img src="{{MEDIA_URL}}/common/images/transparent.gif" width="44" height="48" /></a>
            </span>
        </li>
        <li class="divider"><img src="{{MEDIA_URL}}/common/images/header_divider.gif" height="32" width="2" /></li>
        <li id="tools_menu" class="item autosize">
            <span>
                <a title="Tools" href="#tools"><img src="{{MEDIA_URL}}/common/images/transparent.gif" width="44" height="48" /></a>
            </span>
        </li>
        <li class="divider"><img src="{{MEDIA_URL}}/common/images/header_divider.gif" height="32" width="2" /></li>
    </ul>
    {% endblock menu_icons %}

    {% block toggle %}
    <div id="sidebar-toggler">
        &nbsp;
    </div>
    <a id="show-sidebar" href="#">show sidebar</a>
    {% endblock toggle %}
    <div id="sidebar">
        <div id="sidebar-mask"><span class="loadingMsg"></span></div>
        <ul>
            {% block tabs %}
            {% if user.is_authenticated %}
            <li><a href="#MyShapes"><span>My Shapes</span></a></li>                
            {% endif %}
            <li><a href="#SharedShapes"><span>{% if user.is_authenticated %}Shared With Me{% else %}Public Proposals{% endif %}</span></a></li>
            {% endblock tabs %}
        </ul>
        {% block tabscontents %}
        {% if user.is_authenticated %}
        <div id="MyShapes">
            {% block before_myshapes %}{% endblock before_myshapes %}
            <div style="font-size:1em;" id="myshapestree"></div>
        </div>            
        {% endif %}
        <div id="SharedShapes">
            {% block before_sharedshapes %}{% endblock before_sharedshapes %}
            <div style="font-size:1em;" id="sharedshapestree"></div>
            {% block after_sharedshapes %}{% endblock after_sharedshapes %}
        </div>            
        {% endblock tabscontents %}
    </div>
    <div id="map_container">
        <div id="map" class="kmlTreeReset"></div>
    </div>
    {% block tools %}
    <div id="tools">
        <h1>Tools</h1>
        {% block flyto %}
        <form id="flyToLocation" method="GET">
            <input type="text" name="flyto_location" value="">
            <a id="flytogo" href="#" class="button" onclick="this.blur(); return false;"><span>Fly Here</span></a>
            <a id="flytoclear" href="#" class="button red disabled" onclick="this.blur(); return false;"><span>Clear</span></a>
            <input type="submit" style="display:none;" />
            <br style="clear:both;" />
        </form>
        {% endblock flyto %}
        <hr />
        <div id="measurement_tools" class="tool">
            <a id="measure_distance" href="#" class="button" onclick="this.blur(); return false;"><span><img src="{{MEDIA_URL}}common/images/ruler.png">Measure Distance</span></a>
{'fraction_non_alphanumeric': 0.17634931153817834, 'fraction_numerical': 0.0035343494588027393, 'mean_word_length': 1.9922890504516413, 'pattern_counts': {'":': 2, '<': 259, '<?xml version=': 0, '>': 259, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3617321', 'n_tokens_mistral': 4303, 'n_tokens_neox': 3897, 'n_words': 810}