<commit_before>{% include 'base-header.html' %}


<div class="container">
  <div class="row">
  <p></p>
    <!-- sidebar -->
    
    <!-- content -->
    <div class="col-md-8">
      <div class="page-header">
      {% if data['edit'] %}
        <h1><i class="fa fa-flask fa-1x"></i> Manage Reaction</h1>
      {% else %}
        <h1><i class="fa fa-flask fa-1x"></i> Add Reaction</h1>
      {% endif %}
      </div>
      {% if data['error'] %}
      <p class="alert alert-danger">{{ data['msg'] }}</p>
      {% elif data['msg'] and data['error'] == False %}
      <p class="alert alert-success">{{ data['msg'] }}</p>
      {% endif %}
      {% if form.errors %}
      {% for field, error in form.errors.items() %}
      {% for msg in error %}
      <p class="alert alert-danger">{{msg}}</p>
      {% endfor %}
      {% endfor %}
      {% endif %}

        <div class="panel panel-primary">
          <div class="panel-heading">
          <div class="panel-title">
            CloudFlare: Add New DNS Record
          </div>
          </div>
          <div class="panel-body">
            <form action="{{ data['url'] }}" method="post" name="cloudflare-rec-update" target="_self" class="form-horizontal" role="form">
            {{ form.csrf_token }}

            {% include 'reactions/base.html' %}
            {% include 'reactions/callon.html' %}
            <hr>

              <div class="col-sm-4">
              </div>
              <div class="col-sm-8">
                    <p class="help-block">Specify your CloudFlare accounts email address as this is required for CloudFlare's API.</p>
              </div>
                
                <div class="form-group">
                <label for="Email" class="col-sm-4 control-label">Email</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-email" class="btn btn-default" rel="popover" data-content="This field should contain your CloudFlare email address." title="CloudFlare Email Address"><i class="fa fa-question"></i></button>
                </span>
                {% if data['edit'] %}
                {{ form.email(class_="form-control", value=data['reaction']['data']['email']) }}
                {% else %}
                {{ form.email(class_="form-control", placeholder="CloudFlare Email Address") }}
                {% endif %}
              </div>
            </div>
              </div>  
                
                <div class="form-group">
                <label for="Domain" class="col-sm-4 control-label">Domain</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-domain" class="btn btn-default" rel="popover" data-content="This field should contain the domain name of interest. Make sure that this domain name is listed in the Websites tab on CloudFlare." title="CloudFlare Domain Name"><i class="fa fa-question"></i></button>
                </span>
                {% if data['edit'] %}
                {{ form.domain(class_="form-control", value=data['reaction']['data']['domain']) }}
                {% else %}
                {{ form.domain(class_="form-control", placeholder="Domain") }}
                {% endif %}
                </div>
            </div>
              </div>  
                
                <div class="form-group">
                <label for="APIKey" class="col-sm-4 control-label">CloudFlare API Key</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-api-key" class="btn btn-default" rel="popover" data-content="This field should contain your CloudFlare API key. It can be found on in the Account tab on CloudFlare" title="CloudFlare API Key"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.apikey(class_="form-control", value=data['reaction']['data']['apikey']) }}
              {% else %}
              {{ form.apikey(class_="form-control", placeholder="CloudFlare API Key") }}
              {% endif %}
              </div>
            </div>
              </div>  


                <div class="form-group">
                <label for="Record Type" class="col-sm-4 control-label">Record Type</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-rectype" class="btn btn-default" rel="popover" data-content="Select the type of record to add." title="Record Type"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.rec_type(class_="select", value=data['reaction']['data']['rec_type']) }}
              {% else %}
              {{ form.rec_type(class_="select", placeholder="Record Type") }}
              {% endif %}
            </div>
            </div>
              </div>

                <div class="form-group">
                <label for="Record Name" class="col-sm-4 control-label">Record Name</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-recname" class="btn btn-default" rel="popover" data-content="This field should contain the name of the record you want to add i.e. www.example.com or ftp.example.com" title="Record Name"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.rec_name(class_="form-control", value=data['reaction']['data']['rec_name']) }}
              {% else %}
              {{ form.rec_name(class_="form-control", placeholder="www.example.com") }}
              {% endif %}
            </div>
            </div>
              </div>

              <div class="col-sm-4">
              </div>
              <div class="col-sm-8">
                    <p class="help-block">Ensure the record name field contains the fully qualified domain. If Record Name is left blank all records that match type and content will be replaced.</p>
              </div>

                <div class="form-group">
                <label for="Content" class="col-sm-4 control-label">Record Content</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-cname" class="btn btn-default" rel="popover" data-content="This field should contain the IP/CNAME you would like to add." title="IP/CNAME to add"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.content(class_="form-control", value=data['reaction']['data']['content']) }}
              {% else %}
              {{ form.content(class_="form-control", placeholder="IP/CNAME") }}
              {% endif %}
              </div>
            </div>
              </div>  

                <div class="form-group">
                <label for="New Record Type" class="col-sm-4 control-label">New Record Type</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-rectype" class="btn btn-default" rel="popover" data-content="Select the type of record to update the record to." title="New Record Type"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.new_rec_type(class_="select", value=data['reaction']['data']['new_rec_type']) }}
              {% else %}
              {{ form.new_rec_type(class_="select", placeholder="Record Type") }}
              {% endif %}
            </div>
            </div>
              </div>

                <div class="form-group">
                <label for="Content" class="col-sm-4 control-label">New Record Content</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-cname" class="btn btn-default" rel="popover" data-content="This field should contain the IP/CNAME you would like to add." title="IP/CNAME to add"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.new_content(class_="form-control", value=data['reaction']['data']['new_content']) }}
              {% else %}
              {{ form.new_content(class_="form-control", placeholder="IP/CNAME") }}
              {% endif %}<commit_msg>Fixing verbage neglect<commit_after>{% include 'base-header.html' %}


<div class="container">
  <div class="row">
  <p></p>
    <!-- sidebar -->
    
    <!-- content -->
    <div class="col-md-8">
      <div class="page-header">
      {% if data['edit'] %}
        <h1><i class="fa fa-flask fa-1x"></i> Manage Reaction</h1>
      {% else %}
        <h1><i class="fa fa-flask fa-1x"></i> Add Reaction</h1>
      {% endif %}
      </div>
      {% if data['error'] %}
      <p class="alert alert-danger">{{ data['msg'] }}</p>
      {% elif data['msg'] and data['error'] == False %}
      <p class="alert alert-success">{{ data['msg'] }}</p>
      {% endif %}
      {% if form.errors %}
      {% for field, error in form.errors.items() %}
      {% for msg in error %}
      <p class="alert alert-danger">{{msg}}</p>
      {% endfor %}
      {% endfor %}
      {% endif %}

        <div class="panel panel-primary">
          <div class="panel-heading">
          <div class="panel-title">
            CloudFlare: Replace DNS Record
          </div>
          </div>
          <div class="panel-body">
            <form action="{{ data['url'] }}" method="post" name="cloudflare-rec-update" target="_self" class="form-horizontal" role="form">
            {{ form.csrf_token }}

            {% include 'reactions/base.html' %}
            {% include 'reactions/callon.html' %}
            <hr>

              <div class="col-sm-4">
              </div>
              <div class="col-sm-8">
                    <p class="help-block">Specify your CloudFlare accounts email address as this is required for CloudFlare's API.</p>
              </div>
                
                <div class="form-group">
                <label for="Email" class="col-sm-4 control-label">Email</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-email" class="btn btn-default" rel="popover" data-content="This field should contain your CloudFlare email address." title="CloudFlare Email Address"><i class="fa fa-question"></i></button>
                </span>
                {% if data['edit'] %}
                {{ form.email(class_="form-control", value=data['reaction']['data']['email']) }}
                {% else %}
                {{ form.email(class_="form-control", placeholder="CloudFlare Email Address") }}
                {% endif %}
              </div>
            </div>
              </div>  
                
                <div class="form-group">
                <label for="Domain" class="col-sm-4 control-label">Domain</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-domain" class="btn btn-default" rel="popover" data-content="This field should contain the domain name of interest. Make sure that this domain name is listed in the Websites tab on CloudFlare." title="CloudFlare Domain Name"><i class="fa fa-question"></i></button>
                </span>
                {% if data['edit'] %}
                {{ form.domain(class_="form-control", value=data['reaction']['data']['domain']) }}
                {% else %}
                {{ form.domain(class_="form-control", placeholder="Domain") }}
                {% endif %}
                </div>
            </div>
              </div>  
                
                <div class="form-group">
                <label for="APIKey" class="col-sm-4 control-label">CloudFlare API Key</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-api-key" class="btn btn-default" rel="popover" data-content="This field should contain your CloudFlare API key. It can be found on in the Account tab on CloudFlare" title="CloudFlare API Key"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.apikey(class_="form-control", value=data['reaction']['data']['apikey']) }}
              {% else %}
              {{ form.apikey(class_="form-control", placeholder="CloudFlare API Key") }}
              {% endif %}
              </div>
            </div>
              </div>  


                <div class="form-group">
                <label for="Record Type" class="col-sm-4 control-label">Record Type</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-rectype" class="btn btn-default" rel="popover" data-content="Select the type of record to update." title="Record Type"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.rec_type(class_="select", value=data['reaction']['data']['rec_type']) }}
              {% else %}
              {{ form.rec_type(class_="select", placeholder="Record Type") }}
              {% endif %}
            </div>
            </div>
              </div>

                <div class="form-group">
                <label for="Record Name" class="col-sm-4 control-label">Record Name</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-recname" class="btn btn-default" rel="popover" data-content="This field should contain the name of the record you want to update i.e. www.example.com or ftp.example.com" title="Record Name"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.rec_name(class_="form-control", value=data['reaction']['data']['rec_name']) }}
              {% else %}
              {{ form.rec_name(class_="form-control", placeholder="www.example.com") }}
              {% endif %}
            </div>
            </div>
              </div>

              <div class="col-sm-4">
              </div>
              <div class="col-sm-8">
                    <p class="help-block">Ensure the record name field contains the fully qualified domain. If Record Name is left blank all records that match type and content will be replaced.</p>
              </div>

                <div class="form-group">
                <label for="Content" class="col-sm-4 control-label">Record Content</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-cname" class="btn btn-default" rel="popover" data-content="This field should contain the IP/CNAME you would like to replace." title="IP/CNAME to replace"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.content(class_="form-control", value=data['reaction']['data']['content']) }}
              {% else %}
              {{ form.content(class_="form-control", placeholder="IP/CNAME") }}
              {% endif %}
              </div>
            </div>
              </div>  

                <div class="form-group">
                <label for="New Record Type" class="col-sm-4 control-label">New Record Type</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-rectype" class="btn btn-default" rel="popover" data-content="Select the type of record to update the record to." title="New Record Type"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.new_rec_type(class_="select", value=data['reaction']['data']['new_rec_type']) }}
              {% else %}
              {{ form.new_rec_type(class_="select", placeholder="Record Type") }}
              {% endif %}
            </div>
            </div>
              </div>

                <div class="form-group">
                <label for="Content" class="col-sm-4 control-label">New Record Content</label>
            <div class="col-sm-8">
              <div class="input-group">
                <span class="input-group-btn">
                  <button type="button" id="cl-cname" class="btn btn-default" rel="popover" data-content="This field should contain the IP/CNAME you would like to replace with." title="IP/CNAME to replace with"><i class="fa fa-question"></i></button>
                </span>
              {% if data['edit'] %}
              {{ form.new_content(class_="form-control", value=data['reaction']['data']['new_content']) }}
              {% else %}
              {{ form.new_content(class_="form-control", placeholder="IP/CNAME") }}
              {% endif %}
{'fraction_non_alphanumeric': 0.17010221946123003, 'fraction_numerical': 0.003049641384763088, 'mean_word_length': 1.8090101522842639, 'pattern_counts': {'":': 0, '<': 307, '<?xml version=': 0, '>': 307, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5709056', 'n_tokens_mistral': 5091, 'n_tokens_neox': 4751, 'n_words': 1101}