<commit_before><%namespace name="model" module="adhocracy.model"
/><%namespace name="components" file="/components.html"
/><%namespace name="navigation" file="/navigation.html"
/><%namespace name="debug" file="/debug/tiles.html"
/><%def name="breadcrumbs()">&nbsp;</%def><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE html>
<html class="no-js">
  <head>
      <%block name="head">
      ${components.head()}
      </%block>

      %if h.config.get('adhocracy.debug.sql'):
      ${debug.styles()}
      %endif
  </head>


<body lang="${c.locale.language}" class="${'logged_in' if c.user else ''}"
    %if c.monitor_page_time_interval:
    data-stats-baseurl="${c.monitor_page_time_url}"
    data-stats-interval="${c.monitor_page_time_interval}"
    %endif
    %if c.monitor_external_links_url:
    data-stats-monitor_external_links_url="${c.monitor_external_links_url}"
    %endif
    >
    <div class="overlay" id="overlay-default">
      <a class="close"></a>
      <!-- the external content is loaded inside this tag -->
      <div class="contentWrap"></div>
    </div>    
    <div class="overlay" id="overlay-big">
      <a class="close"></a>
      <!-- the external content is loaded inside this tag -->
      <div class="contentWrap"></div>
    </div>
    %if c.user and c.user.welcome_code and not c.user.password:
      <form id="user_welcome" action="${h.entity_url(c.user, member='set_password')}" method="post" data-success-message="${_('Password has been set. Have fun!')}">
      ${h.field_token()|n}
      <label><span>${_('Welcome to %s!') % h.site.name()} ${_('Please choose a password:')}</span>
      <input type="password" name="password" autofocus="autofocus" required="required" pattern=".{6,}" title="${('Please pick a secure password')}" x-moz-errormessage="${('Please pick a secure password')}"/>
      <input type="submit" value="${_('Set Password')}" />
      </label>
      </form>
    %endif
    %if c.user is None:
    <div class="overlay" id="overlay-login">
      <a class="close"></a>
      <div class="contentWrap">
         <div class="register">
             <p class="patch_description">
                 ${_('Get an account to participate in the discussion.')}
             </p>
             <a href="${h.base_url('/register')}" 
                class="button patch_camefrom">${_('Register')}</a> 
             ${_("or")} 
             <a href="${h.base_url('/login')}" 
                class="icon_link more_uppercase patch_camefrom">${_('Log in')}</a>
         </div>
      </div>
    </div>    
    %elif c.instance and can.instance.join(c.instance):
    <div class="overlay" id="overlay-join">
      <a class="close"></a>
      <div class="contentWrap">
         <div class="register">
             <p class="patch_description">
                 ${_('Join this instance to start contributing.')}
             </p>
             <a class="button patch_camefrom" href="${h.entity_url(c.instance, member='join')}?${h.url_token()}">${_("join")}</a> 
         </div>
      </div>
    </div>
    %elif c.instance and c.instance.require_valid_email and c.user and not c.user.is_email_activated():
    <div class="overlay" id="overlay-validate">
      <a class="close"></a>
      <div class="contentWrap">
         <div class="register">
             <p class="patch_description">
                 ${_('Validate email to start contributing.')}
             </p>
             <a class="button large patch_camefrom" href="${h.base_url('/user/%s/resend?%s' % (c.user.user_name, h.url_token()))}" title="${_('Resend validation email to %s')%c.user.email}">${_('Send activation link')}</a> 
             ${_("or")} 
             <a class="icon_link more_uppercase" href="${h.entity_url(c.user, instance=c.instance, member='edit')}">${_("Edit profile")}</a> 
         </div>
      </div>
    </div>
    %endif
    %if c.instance and c.instance.frozen:
    <div class="overlay">
      <a class="close"></a>
      <div class="contentWrap">
      ${_('This instance has been frozen - you can not edit or post anything.')}
      </div>
    </div>
    %endif
  <!-- begin: header -->
  <header>
    <div id="header">
      <div class="page_margins">
        <div class="page_wrapper">
          <!-- begin: top navi -->
          <div id="topnav">
            <!-- start: skip link navigation -->
            <a class="skip" title="skip link" href="#navigation">Skip to the navigation</a><span class="hideme">.</span>
            <a class="skip" title="skip link" href="#content">Skip to the content</a><span class="hideme">.</span>
            <!-- end: skip link navigation -->
            %if h.config.get('adhocracy.twitter.profile_url'):
            <a href="${h.config.get('adhocracy.twitter.profile_url')}" class="icon_link follow">Follow us!</a>
            %endif
          </div>

          <%include file="logo.html" />
          ${navigation.global_nav(c.active_global_nav)}
        </div>
      </div>
    </div>
  </header>

  <%block name="attention_getter">
  %if not c.suppress_attention_getter and c.instance is not None and (c.user is None or can.instance.join(c.instance) or (c.instance.require_valid_email and c.user and not c.user.is_email_activated())):
  <%doc>add an attention getter on instances</%doc>
    <div id="flash_message">
      <div class="page_margins">
          <div class="page_wrapper">
              <div class="message">
                  %if c.user is None:
                  <div class="register">
                      <a href="${h.register_redirect_url()}" 
                         ## rel="#overlay-ajax" FIXME: reactivate when ready.
                         class="button">${_('Register')}</a> 
                      ${_("or")} 
                      <a href="${h.login_redirect_url()}" 
                         ## rel="#overlay-ajax" FIXME: reactivate.
                         class="icon_link more_uppercase">${_('Login')}</a>
                  </div>
                  <p class="register_msg">
                      ${_('Get an account to participate in the discussion.')}
                  </p>
                  %elif can.instance.join(c.instance):
                  <div class="register">
                      <a class="button" href="${h.entity_url(c.instance, member='join')}?${h.url_token()}">${_("join")}</a> 
                  </div>
                  <p>
                      ${_('Join this instance to start contributing.')}
                  </p>
                  %else:
                  %if c.user.email is None:
                  <div class="register">
                      <a class="button" href="${h.entity_url(c.user, instance=c.instance, member='edit')}">${_("Edit profile")}</a> 
                  </div>
                  <p>
                      ${_('You need to set an email in your profile in order to contribute to this instance.')}
                  </p>
                  %else:
                  <div class="register">
                      <a class="button large" href="${h.base_url('/user/%s/resend?%s' % (c.user.user_name, h.url_token()))}" title="${_('Resend validation email to %s')%c.user.email}">${_('Send activation link')}</a> 
                      ${_("or")} 
                      <a class="icon_link more_uppercase" href="${h.entity_url(c.user, instance=c.instance, member='edit')}">${_("Edit profile")}</a> <commit_msg>Show registration buttons only if adhocracy.allow_registration is set.<commit_after><%namespace name="model" module="adhocracy.model"
/><%namespace name="components" file="/components.html"
/><%namespace name="navigation" file="/navigation.html"
/><%namespace name="debug" file="/debug/tiles.html"
/><%def name="breadcrumbs()">&nbsp;</%def><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE html>
<html class="no-js">
  <head>
      <%block name="head">
      ${components.head()}
      </%block>

      %if h.config.get('adhocracy.debug.sql'):
      ${debug.styles()}
      %endif
  </head>


<body lang="${c.locale.language}" class="${'logged_in' if c.user else ''}"
    %if c.monitor_page_time_interval:
    data-stats-baseurl="${c.monitor_page_time_url}"
    data-stats-interval="${c.monitor_page_time_interval}"
    %endif
    %if c.monitor_external_links_url:
    data-stats-monitor_external_links_url="${c.monitor_external_links_url}"
    %endif
    >
    <div class="overlay" id="overlay-default">
      <a class="close"></a>
      <!-- the external content is loaded inside this tag -->
      <div class="contentWrap"></div>
    </div>    
    <div class="overlay" id="overlay-big">
      <a class="close"></a>
      <!-- the external content is loaded inside this tag -->
      <div class="contentWrap"></div>
    </div>
    %if c.user and c.user.welcome_code and not c.user.password:
      <form id="user_welcome" action="${h.entity_url(c.user, member='set_password')}" method="post" data-success-message="${_('Password has been set. Have fun!')}">
      ${h.field_token()|n}
      <label><span>${_('Welcome to %s!') % h.site.name()} ${_('Please choose a password:')}</span>
      <input type="password" name="password" autofocus="autofocus" required="required" pattern=".{6,}" title="${('Please pick a secure password')}" x-moz-errormessage="${('Please pick a secure password')}"/>
      <input type="submit" value="${_('Set Password')}" />
      </label>
      </form>
    %endif
    %if c.user is None:
    <div class="overlay" id="overlay-login">
      <a class="close"></a>
      <div class="contentWrap">
         <div class="register">
             <p class="patch_description">
             %if h.allow_user_registration():
                 ${_('Get an account to participate in the discussion.')}
             %else:
                 ${_('Log in to participate in the discussion.')}
             %endif
             </p>
             %if h.allow_user_registration():
             <a href="${h.base_url('/register')}" 
                class="button patch_camefrom">${_('Register')}</a> 
             ${_("or")} 
             %endif
             <a href="${h.base_url('/login')}" 
                class="icon_link more_uppercase patch_camefrom">${_('Log in')}</a>
         </div>
      </div>
    </div>    
    %elif c.instance and can.instance.join(c.instance):
    <div class="overlay" id="overlay-join">
      <a class="close"></a>
      <div class="contentWrap">
         <div class="register">
             <p class="patch_description">
                 ${_('Join this instance to start contributing.')}
             </p>
             <a class="button patch_camefrom" href="${h.entity_url(c.instance, member='join')}?${h.url_token()}">${_("join")}</a> 
         </div>
      </div>
    </div>
    %elif c.instance and c.instance.require_valid_email and c.user and not c.user.is_email_activated():
    <div class="overlay" id="overlay-validate">
      <a class="close"></a>
      <div class="contentWrap">
         <div class="register">
             <p class="patch_description">
                 ${_('Validate email to start contributing.')}
             </p>
             <a class="button large patch_camefrom" href="${h.base_url('/user/%s/resend?%s' % (c.user.user_name, h.url_token()))}" title="${_('Resend validation email to %s')%c.user.email}">${_('Send activation link')}</a> 
             ${_("or")} 
             <a class="icon_link more_uppercase" href="${h.entity_url(c.user, instance=c.instance, member='edit')}">${_("Edit profile")}</a> 
         </div>
      </div>
    </div>
    %endif
    %if c.instance and c.instance.frozen:
    <div class="overlay">
      <a class="close"></a>
      <div class="contentWrap">
      ${_('This instance has been frozen - you can not edit or post anything.')}
      </div>
    </div>
    %endif
  <!-- begin: header -->
  <header>
    <div id="header">
      <div class="page_margins">
        <div class="page_wrapper">
          <!-- begin: top navi -->
          <div id="topnav">
            <!-- start: skip link navigation -->
            <a class="skip" title="skip link" href="#navigation">Skip to the navigation</a><span class="hideme">.</span>
            <a class="skip" title="skip link" href="#content">Skip to the content</a><span class="hideme">.</span>
            <!-- end: skip link navigation -->
            %if h.config.get('adhocracy.twitter.profile_url'):
            <a href="${h.config.get('adhocracy.twitter.profile_url')}" class="icon_link follow">Follow us!</a>
            %endif
          </div>

          <%include file="logo.html" />
          ${navigation.global_nav(c.active_global_nav)}
        </div>
      </div>
    </div>
  </header>

  <%block name="attention_getter">
  %if not c.suppress_attention_getter and c.instance is not None and (c.user is None or can.instance.join(c.instance) or (c.instance.require_valid_email and c.user and not c.user.is_email_activated())):
  <%doc>add an attention getter on instances</%doc>
    <div id="flash_message">
      <div class="page_margins">
          <div class="page_wrapper">
              <div class="message">
                  %if c.user is None:
                  <div class="register">
                      %if h.allow_user_registration():
                      <a href="${h.register_redirect_url()}" 
                         ## rel="#overlay-ajax" FIXME: reactivate when ready.
                         class="button">${_('Register')}</a> 
                      ${_("or")} 
                      %endif
                      <a href="${h.login_redirect_url()}" 
                         ## rel="#overlay-ajax" FIXME: reactivate.
                         class="icon_link more_uppercase">${_('Login')}</a>
                  </div>
                  <p class="register_msg">
                     %if h.allow_user_registration():
                         ${_('Get an account to participate in the discussion.')}
                     %else:
                         ${_('Log in to participate in the discussion.')}
                     %endif
                  </p>
                  %elif can.instance.join(c.instance):
                  <div class="register">
                      <a class="button" href="${h.entity_url(c.instance, member='join')}?${h.url_token()}">${_("join")}</a> 
                  </div>
                  <p>
                      ${_('Join this instance to start contributing.')}
                  </p>
                  %else:
                  %if c.user.email is None:
                  <div class="register">
                      <a class="button" href="${h.entity_url(c.user, instance=c.instance, member='edit')}">${_("Edit profile")}</a> 
                  </div>
                  <p>
                      ${_('You need to set an email in your profile in order to contribute to this instance.')}
                  </p>
                  %else:
                  <div class="register">
                      <a class="button large" href="${h.base_url('/user/%s/resend?%s' % (c.user.user_name, h.url_token()))}" title="${_('Resend validation email to %s')%c.user.email}">${_('Send activation link')}</a> 
                      ${_("or")} 
                      <a class="icon_link more_uppercase" href="${h.entity_url(c.user, instance=c.instance, member='edit')}">${_("Edit profile")}</a> 
{'fraction_non_alphanumeric': 0.1800078606052666, 'fraction_numerical': 0.0005240403511070353, 'mean_word_length': 2.197277486910995, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 2, '>': 281, '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': '952541', 'n_tokens_mistral': 4627, 'n_tokens_neox': 4482, 'n_words': 981}