<commit_before>- extends "public_base.html"

- load thumbnail humanize ureport compress i18n dashblocks

- block content
  - load_qbs request.org 'photos'
  // latest poll if we have it
  - if latest_poll and latest_poll.get_first_question
    .max-w-page.mx-auto.bg-white.mt-6
      .(class="md:flex {% if is_rtl_org %}md:-mr-12 vertical-angle-right-side  md:pr-12{% else %}vertical-angle-left-side md:pl-12 md:-ml-12{% endif %} {% if latest_poll.get_first_question.get_color_choice_css %} {{latest_poll.get_first_question.get_color_choice_css}} {% else %}bg-dark1 text-white{% endif %}")
        .flex-1.self-stretch.p-home.self-center(class="{% if latest_poll.get_first_question.get_color_choice_css %} {{latest_poll.get_first_question.get_color_choice_css}} {% else %}bg-dark1 text-white{% endif %}")
          .text-l.mb-10
            - trans "LATEST OPINION"

          .font-bold.mt-2.hover-parent(class="{% if latest_poll.title|length < 50 %}text-4xl{% elif latest_poll.title|length < 120 %}text-3xl leading-tight{% else %}text-2xl leading-tight{% endif %}")
            {% edit_content 'polls.poll_update' latest_poll.pk "#id_title"  "-m-8" "dark"  %}
            {{ latest_poll.title }}

          .font-alt.font-bold.italic.left-border.mt-8.hover-parent(class="{% if latest_poll.get_first_question.get_border_color_choice %} border-{{latest_poll.get_first_question.get_border_color_choice}} {% else %}border-{{border_color}}{% endif %}")
            {% edit_content 'polls.poll_questions' latest_poll.pk "#id_ruleset_"|add:latest_poll.get_first_question.flow_result.result_uuid|add:"_title"  "-m-8" "dark" %}
            {{ latest_poll.get_first_question.title }}

          .flex
            .block.tags.mt-8
              -for tag in latest_poll.tags.all
                .inline-block.px-2.py-1.leading-none.text-xs.mb-1.border-gray-400.border
                  .whitespace-no-wrap
                    {{tag.name}}


        .flex-1.self-stretch.p-home.bg-grid.self-center(class="{% if is_rtl_org %} vertical-angle-right{% else %}vertical-angle-left{% endif %}")
          .relative.w-full(style="min-height:20rem;")
            .w-full.h-full.absolute.poll-chart.block(id="chart-{{ latest_poll.get_first_question.id }}" data-question="{{ latest_poll.get_first_question.id }}" data-segment="all" data-bar-color="{% if latest_poll.get_first_question.get_bg_color_choice %} {{latest_poll.get_first_question.get_bg_color_choice}} {% else %}{{ org|config:\"dark1_color\"|default:\"#439932\"}}{% endif %}")

          .mb-6.text-center(class="md:mb-0")
            %a.btn.bg-light1.text-black.hover-dark(href="{% url 'public.opinion_read' latest_poll.pk %}")
              - trans "VIEW FULL RESULTS"

  // ureporters graph
  .bg-black.text-light1.bg-white-u
    .max-w-page.mx-auto.p-home(class="md:flex")
      .flex-center-y.mt-4.p-8(class="md:w-1/2 md:mt-0 md:p-0")
        .font-bold.text-l
          - trans "U-REPORTERS IN"
          {{ org.name|upper }}

        .font-light.text-white.text-4xl(class="md:text-6xl")
          {{ reporters|intcomma }}

        .font-bold.text-l.min-w-sm
          %div
            .(class="md:whitespace-no-wrap")
              - trans "PARTNERING WITH"
              %span.text-white.whitespace-no-wrap {{global_contact_count|intcomma}}
              - trans "U-REPORTERS"

            .(class="md:whitespace-no-wrap")
              - trans "IN"
              %span.text-white.whitespace-no-wrap {{global_org_count|intcomma}}
              - trans "COUNTRIES WORLDWIDE"

      .my-16.p-4(class="md:ml-4 md:w-1/2 md:my-0 md:p-0")
        .flex-col
          .block.w-full.font-bold.text-center
            - trans "AGES"

          .mt-4.block.w-full(style="min-width:260px;")
            .relative.w-full.h-40(class="md:h-64")
              {{ age_stats|json_script:"age_stats" }}
              #age-bars.w-full.h-full.absolute.age-chart(data-aos="fade" data-graph-type="age-chart" data-bar-color='{{ org|config:"light1_color"|default:"#FFD100"}}' data-label-color="#AAA" data-label-position="top" data-stats="age_stats")

  -if featured_bots
    .max-w-page.mx-auto.border-black.border-b
      -for bot in featured_bots|slice:"3"
        .border-b.hover-parent(class="md:flex")
          .block.pb-6.pt-12.px-16.my-auto.hover-parent(class="md:w-1/2")
            {{bot.title}}
            .block.hover-parent
              .block.no-wrap
                .text-sm.inline
                  -trans "Send"<commit_msg>Adjust bots titles<commit_after>- extends "public_base.html"

- load thumbnail humanize ureport compress i18n dashblocks

- block content
  - load_qbs request.org 'photos'
  // latest poll if we have it
  - if latest_poll and latest_poll.get_first_question
    .max-w-page.mx-auto.bg-white.mt-6
      .(class="md:flex {% if is_rtl_org %}md:-mr-12 vertical-angle-right-side  md:pr-12{% else %}vertical-angle-left-side md:pl-12 md:-ml-12{% endif %} {% if latest_poll.get_first_question.get_color_choice_css %} {{latest_poll.get_first_question.get_color_choice_css}} {% else %}bg-dark1 text-white{% endif %}")
        .flex-1.self-stretch.p-home.self-center(class="{% if latest_poll.get_first_question.get_color_choice_css %} {{latest_poll.get_first_question.get_color_choice_css}} {% else %}bg-dark1 text-white{% endif %}")
          .text-l.mb-10
            - trans "LATEST OPINION"

          .font-bold.mt-2.hover-parent(class="{% if latest_poll.title|length < 50 %}text-4xl{% elif latest_poll.title|length < 120 %}text-3xl leading-tight{% else %}text-2xl leading-tight{% endif %}")
            {% edit_content 'polls.poll_update' latest_poll.pk "#id_title"  "-m-8" "dark"  %}
            {{ latest_poll.title }}

          .font-alt.font-bold.italic.left-border.mt-8.hover-parent(class="{% if latest_poll.get_first_question.get_border_color_choice %} border-{{latest_poll.get_first_question.get_border_color_choice}} {% else %}border-{{border_color}}{% endif %}")
            {% edit_content 'polls.poll_questions' latest_poll.pk "#id_ruleset_"|add:latest_poll.get_first_question.flow_result.result_uuid|add:"_title"  "-m-8" "dark" %}
            {{ latest_poll.get_first_question.title }}

          .flex
            .block.tags.mt-8
              -for tag in latest_poll.tags.all
                .inline-block.px-2.py-1.leading-none.text-xs.mb-1.border-gray-400.border
                  .whitespace-no-wrap
                    {{tag.name}}


        .flex-1.self-stretch.p-home.bg-grid.self-center(class="{% if is_rtl_org %} vertical-angle-right{% else %}vertical-angle-left{% endif %}")
          .relative.w-full(style="min-height:20rem;")
            .w-full.h-full.absolute.poll-chart.block(id="chart-{{ latest_poll.get_first_question.id }}" data-question="{{ latest_poll.get_first_question.id }}" data-segment="all" data-bar-color="{% if latest_poll.get_first_question.get_bg_color_choice %} {{latest_poll.get_first_question.get_bg_color_choice}} {% else %}{{ org|config:\"dark1_color\"|default:\"#439932\"}}{% endif %}")

          .mb-6.text-center(class="md:mb-0")
            %a.btn.bg-light1.text-black.hover-dark(href="{% url 'public.opinion_read' latest_poll.pk %}")
              - trans "VIEW FULL RESULTS"

  // ureporters graph
  .bg-black.text-light1.bg-white-u
    .max-w-page.mx-auto.p-home(class="md:flex")
      .flex-center-y.mt-4.p-8(class="md:w-1/2 md:mt-0 md:p-0")
        .font-bold.text-l
          - trans "U-REPORTERS IN"
          {{ org.name|upper }}

        .font-light.text-white.text-4xl(class="md:text-6xl")
          {{ reporters|intcomma }}

        .font-bold.text-l.min-w-sm
          %div
            .(class="md:whitespace-no-wrap")
              - trans "PARTNERING WITH"
              %span.text-white.whitespace-no-wrap {{global_contact_count|intcomma}}
              - trans "U-REPORTERS"

            .(class="md:whitespace-no-wrap")
              - trans "IN"
              %span.text-white.whitespace-no-wrap {{global_org_count|intcomma}}
              - trans "COUNTRIES WORLDWIDE"

      .my-16.p-4(class="md:ml-4 md:w-1/2 md:my-0 md:p-0")
        .flex-col
          .block.w-full.font-bold.text-center
            - trans "AGES"

          .mt-4.block.w-full(style="min-width:260px;")
            .relative.w-full.h-40(class="md:h-64")
              {{ age_stats|json_script:"age_stats" }}
              #age-bars.w-full.h-full.absolute.age-chart(data-aos="fade" data-graph-type="age-chart" data-bar-color='{{ org|config:"light1_color"|default:"#FFD100"}}' data-label-color="#AAA" data-label-position="top" data-stats="age_stats")

  -if featured_bots
    .max-w-page.mx-auto.border-black.border-b
      .font-bold.text-xl.text-center.mt-4.border-b.py-2
        -trans "Available bots"
      -for bot in featured_bots|slice:"3"
        .border-b.hover-parent(class="md:flex")
          .block.pb-6.pt-12.px-16.my-auto.hover-parent(class="md:w-1/2")
            .font-bold.hover-parent
              {{bot.title}}
            .block.hover-parent
              .block.no-wrap
                .text-sm.inline
                  -trans "Send"
{'fraction_non_alphanumeric': 0.1689658978037744, 'fraction_numerical': 0.018982452267961594, 'mean_word_length': 2.541227041813208, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '787436', 'n_tokens_mistral': 3395, 'n_tokens_neox': 3170, 'n_words': 394}