<commit_before>{% extends "templates/site.html" %}

{% block title %}: Select{% endblock %}

{% block head %}

  <link type="text/css" rel="stylesheet" media="all" href="/static/css/utils/utils.selector.css" />

{% endblock %}

{% block body %}

  <div id="fullscreen"></div>
  
  <div class="darkbox"><h2>Please choose {{ article }}</h2></div>
  <br>
  <div id="selector"></div>

{% endblock %}

{% block js %}

  <script src="/static/js/utils/utils.selector.js"></script>

  <script>
  
    d3.select("#selector").style("height",window.innerHeight-290+"px")
    // window.onresize = function(){
    //   d3.select("#selector").style("height",window.innerHeight-290+"px")
    // }
  
    var value = "{{ selector }}"
    
    if (value == "hs") {
      value = "hs"
      var limit = 6
    }
    else if (value == "isic") {
      value = "isic"
      var limit = 5
    }
    else if (value == "cbo") {
      value = "cbo"
      var limit = 4
    }
    else if (value == "bra") {
      value = "bra"
      var limit = 8
    }
    else if (value == "wld") {
      value = "wld"
      var limit = 5
    }
  
    selector_return = function(value) {
      window.location = "{{ g.path }}".replace("select",value.id)
    }
  
    var selector = Selector()
      .callback(selector_return)
      .type(value)
      .limit(limit);
  
    d3.select("#selector")
      .call(selector);

  </script>
  
{% endblock %}<commit_msg>enabled state selection in guide and profile paths<commit_after>{% extends "templates/site.html" %}

{% block title %}: Select{% endblock %}

{% block head %}

  <link type="text/css" rel="stylesheet" media="all" href="/static/css/utils/utils.selector.css" />

{% endblock %}

{% block body %}

  <div id="fullscreen"></div>
  
  <div class="darkbox"><h2>Please choose {{ article }}</h2></div>
  <br>
  <div id="selector"></div>

{% endblock %}

{% block js %}

  <script src="/static/js/utils/utils.selector.js"></script>

  <script>
  
    d3.select("#selector").style("height",window.innerHeight-290+"px")
    // window.onresize = function(){
    //   d3.select("#selector").style("height",window.innerHeight-290+"px")
    // }
  
    var value = "{{ selector }}"
    
    if (value == "hs") {
      value = "hs"
      var limit = 6
    }
    else if (value == "isic") {
      value = "isic"
      var limit = 5
    }
    else if (value == "cbo") {
      value = "cbo"
      var limit = 4
    }
    else if (value == "bra") {
      value = "bra"
      var limit = 2
    }
    else if (value == "wld") {
      value = "wld"
      var limit = 5
    }
  
    selector_return = function(value) {
      window.location = "{{ g.path }}".replace("select",value.id)
    }
  
    var selector = Selector()
      .callback(selector_return)
      .type(value)
      .limit(limit);
  
    d3.select("#selector")
      .call(selector);

  </script>
  
{% endblock %}
{'fraction_non_alphanumeric': 0.19269565217391305, 'fraction_numerical': 0.011130434782608696, 'mean_word_length': 2.375586854460094, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '4719147', 'n_tokens_mistral': 1038, 'n_tokens_neox': 977, 'n_words': 205}