<commit_before>{% import '_macros.html' as macros %}
{% extends "base.html" %}

{# BEGIN: Versioning form macro #}
{% macro form_content(data=None, show_add_btn=False, show_rm_btn=True) %}
  <div class="form-group">
    <label>I fetch my repo using this command</label>
    <input type="text" class="form-control" value="{{ data.get('cmd') if data }}" name="vcs_cmd[]">
  </div>
  <div class="form-group">
    <button type="button" class="copy-btn btn btn-outline-primary {{'d-none' if not show_add_btn}}">Add to my software supply chain</button>
    <button type="button" data-toremove=".opt-form" class="rm-btn btn btn-outline-danger {{'d-none' if not show_rm_btn}}">Remove</button>
  </div>
{% endmacro %}
{# END: Versioning form macro #}



{# BEGIN: Rendered content #}
{% block content %}
  {{ macros.progress_bar(value=20) }}
  <hr>
  <h1>Where does your code live?</h1>
  {{ lipsum(n=1, html=True, min=50, max=51) }}

  {# BEGIN: Option Grid #}
  <h2 class="mt-5 mb-3">Tell us which version control system you use</h2>
  {% call(data) macros.option_grid(options=options) %}
    {{ form_content(data={"cmd": data.get('cmd')}, show_add_btn=True, show_rm_btn=False) }} {# data passed back from macro #}
  {% endcall %}
  {# END: Option Grid #}


  {# BEGIN: Postable Form Content #}
  <h2 class="mt-5 mb-3">This is the version control system I use</h2>
    {% call(data=None) macros.form_container(form_id="vcs-form", form_action=url_for('versioning'), user_data=user_data) %}
      {{ form_content(data=data) }} {# data passed back from macro #}
    {% endcall %}
  {# END: Postable Form Content #}

  {# BEGIN: Navigation Footer (Previous/Next) #}
  <hr>
  <div class="row no-gutters justify-content-between">
    <div class="col-3">
      <a class="btn btn-primary btn-block" href="{{ url_for('start')}} ">Previous</a>
    </div>
    <div class="col-3">
      <input type="submit" form="vcs-form" class="btn btn-primary btn-block" value="Next">
      {# <button class="btn btn-primary btn-block" data-toggle="modal" data-target="#clone-consent-modal">Next</button> #}
    </div>
  </div>
  {# END: Navigation Footer (Previous/Next) #}


  {# BEGIN: Code clone consent form displayed on click as overlay (modal) #}
{#   <div id="clone-consent-modal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm mt-5">
      <div class="modal-content">
        <div class="modal-header"></div>
        <div class="modal-body text-center">
          <h3 class="mb-4">Should we clone your repo to guess what your software supply chain looks like?</h3>
          <a class="btn btn-outline-primary" href="{{ url_for('building')}}">No, thanks.</a>
          <a class="btn btn-outline-primary " href="{{ url_for('building')}} ">Yes, please!</a>
        </div>
      </div>
    </div>
  </div> #}
  {# END: Code clone consent form displayed on click as overlay (modal) #}
<commit_msg>Fix indentation in versioning template<commit_after>{% import '_macros.html' as macros %}
{% extends "base.html" %}

{# BEGIN: Versioning form macro #}
{% macro form_content(data=None, show_add_btn=False, show_rm_btn=True) %}
  <div class="form-group">
    <label>I fetch my repo using this command</label>
    <input type="text" class="form-control" value="{{ data.get('cmd') if data }}" name="vcs_cmd[]">
  </div>
  <div class="form-group">
    <button type="button" class="copy-btn btn btn-outline-primary {{'d-none' if not show_add_btn}}">Add to my software supply chain</button>
    <button type="button" data-toremove=".opt-form" class="rm-btn btn btn-outline-danger {{'d-none' if not show_rm_btn}}">Remove</button>
  </div>
{% endmacro %}
{# END: Versioning form macro #}



{# BEGIN: Rendered content #}
{% block content %}
  {{ macros.progress_bar(value=20) }}
  <hr>
  <h1>Where does your code live?</h1>
  {{ lipsum(n=1, html=True, min=50, max=51) }}

  {# BEGIN: Option Grid #}
  <h2 class="mt-5 mb-3">Tell us which version control system you use</h2>
  {% call(data) macros.option_grid(options=options) %}
    {{ form_content(data={"cmd": data.get('cmd')}, show_add_btn=True, show_rm_btn=False) }} {# data passed back from macro #}
  {% endcall %}
  {# END: Option Grid #}

  {# BEGIN: Postable Form Content #}
  <h2 class="mt-5 mb-3">This is the version control system I use</h2>
  {% call(data=None) macros.form_container(form_id="vcs-form", form_action=url_for('versioning'), user_data=user_data) %}
    {{ form_content(data=data) }} {# data passed back from macro #}
  {% endcall %}
  {# END: Postable Form Content #}

  {# BEGIN: Navigation Footer (Previous/Next) #}
  <hr>
  <div class="row no-gutters justify-content-between">
    <div class="col-3">
      <a class="btn btn-primary btn-block" href="{{ url_for('start')}} ">Previous</a>
    </div>
    <div class="col-3">
      <input type="submit" form="vcs-form" class="btn btn-primary btn-block" value="Next">
      {# <button class="btn btn-primary btn-block" data-toggle="modal" data-target="#clone-consent-modal">Next</button> #}
    </div>
  </div>
  {# END: Navigation Footer (Previous/Next) #}


  {# BEGIN: Code clone consent form displayed on click as overlay (modal) #}
{#   <div id="clone-consent-modal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm mt-5">
      <div class="modal-content">
        <div class="modal-header"></div>
        <div class="modal-body text-center">
          <h3 class="mb-4">Should we clone your repo to guess what your software supply chain looks like?</h3>
          <a class="btn btn-outline-primary" href="{{ url_for('building')}}">No, thanks.</a>
          <a class="btn btn-outline-primary " href="{{ url_for('building')}} ">Yes, please!</a>
        </div>
      </div>
    </div>
  </div> #}
  {# END: Code clone consent form displayed on click as overlay (modal) #}

{'fraction_non_alphanumeric': 0.18375042852245457, 'fraction_numerical': 0.0082276311278711, 'mean_word_length': 3.961734693877551, 'pattern_counts': {'":': 2, '<': 95, '<?xml version=': 0, '>': 95, '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': '485228', 'n_tokens_mistral': 2074, 'n_tokens_neox': 1984, 'n_words': 502}