<commit_before>{% extends "base.html" %}
{% load staticfiles %}
{% load gravatar %}
{% load socialaccount %}
{% load humanize %}
{% providers_media_js %}
{% block content %}
    <script src="{% static "js/jquery.validate.js" %}"></script>
    <style>
    .ds-btn li{ list-style:none; float:left; padding:10px; }
    .ds-btn li a span{padding-left:15px;padding-right:5px;width:100%;display:inline-block; text-align:left;}
    .ds-btn li a span small{width:100%; display:inline-block; text-align:left;}
    .huge {overflow:auto;}
    </style>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Win points for reporting bugs on any website!
            <a id="chrome_ext" style="float:right;" href="https://chrome.google.com/webstore/detail/bugheist/bififchikfckcnblimmncopjinfgccme?hl=en" target="_new">
                        <img src="{% static 'img/chrome-button.png' %}" >
                    </a></h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-6">
            <form role="form" action="/issue/" method="post" id="form1" enctype="multipart/form-data" >
                {% csrf_token %}
                <div class="form-group">
                    <label>Find a bug on any website
                        {% if not user.is_authenticated %}
                            <span style="color:#DD4252; margin-left:60px;">* login required</span>
                        {% endif %}
                    </label>
                    {% if request.GET.url %}
                        <input class="form-control required"  placeholder="www.testsite.com/bug-found" name="url" value="{{request.GET.url}}">
                    {% else %}
                        <input class="form-control required" placeholder="www.testsite.com/bug-found" name="url" value="{{form.url.value|default:""}}">
                    {% endif %}
                    {% if form.url.errors %}
                        <label id="description-error" class="error" for="description">{{form.url.errors}}</label>
                    {% endif %}
                </div>
                <div class="form-group">
                    <label>Describe the bug</label>
                    <textarea data-required="true" class="form-control required" rows="3" placeholder="I found a bug on a site."  id="description" name="description">{{form.description.value|default:""}}</textarea>
                    {% if form.description.errors %}
                        <label id="description-error" class="error" for="description">{{form.description.errors}}</label>
                    {% endif %}
                </div>
                
                <div class="form-group">
                    <label>Attach Screenshot</label>
                    {% if request.GET.hash %}</br>
                        <img src="{{ MEDIA_URL }}uploads/{{request.GET.hash}}.png" height="100" style=" border: 1px solid #d43f3a;">
                        <input type="hidden" class="required" name="screenshot-hash" value="{{request.GET.hash}}">
                    {% else %}
                        <input type="file" class="required" name="screenshot">
                    {% endif %}
                    {% if form.screenshot.errors %}
                        <label id="description-error" class="error" for="description">{{form.screenshot.errors}}</label>
                    {% endif %}
                </div>
               
                <div class="form-group">
                    <button type="submit" id="btn" class="btn btn-default btn-danger" style="background:#dd4252; height:43px; font-size:14px;">Enter Bug</button>
                    </form> 
                    <label style="color:#dd4252; margin-left: 20px"> Win +3 points!</label>
                    {% if not user.is_authenticated %}
                        <a href="/accounts/login">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-envelope fa-2x"></i>
                            </button>
                        </a>
                        <a href="{% provider_login_url "facebook" method="js_sdk" %}">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-facebook fa-2x"></i>
                            </button>
                        </a>
                        <a href="{% provider_login_url "google" method="js_sdk" %}">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-google fa-2x"></i>
                            </button>
                        </a>
                        <a href="{% provider_login_url "github" method="js_sdk" %}">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-github fa-2x"></i>
                            </button>
                        </a>
                        <a href="/accounts/login">
                            <button class="btn btn-default btn-caution" style="color:#dd4252; float:right; height:43px; font-size:14px;">Login</button>
                        </a>
                    {% endif %}
                </div>
            
        </div>
        
        <div class="col-lg-6">
            <center>
            <span id="video_span">
                <iframe width="560" height="315" id="video_iframe" src="https://www.youtube.com/embed/o-t6HDXjpP8?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
            </span>
            </center>
        </div>
        
    </div>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Featured Websites
            </h1>
        </div>
    </div>
    <div class="row">

         {% for domain in domains %}
            <div class="col-lg-3 col-md-6">
                <div class="panel"  id="hunt_{{domain.id}}">
                    <div class="panel-heading">
                        <div class="row">
                            <div class="col-xs-3" >
                                <img src="{{MEDIA_URL}}{{domain.logo}}" width="75" height="75" id="hunt_image{{domain.id}}" style="background-color:white;">
                            </div>
                            <div class="col-xs-9 text-right" style="color:white;">
                                <div class="huge">{{domain.get_name}}</div>
                                {% if domain.prize %}
                                <div>Grand Prize ${{domain.prize}}</div>
                                {% endif %}
                            </div>
                        </div>
                    </div>
                    <a href="{{hunt.url}}" target="_new">
                        <div class="panel-footer">
                            <span class="pull-left" id="hunt_link{{domain.id}}">View Website</span>
                            <span class="pull-right"><i class="fa fa-arrow-circle-right" id="hunt_icon{{domain.id}}"></i></span>
                            <div class="clearfix"></div>
                        </div>
                    </a>
                </div>
                <script>
                $('#hunt_{{domain.id}}').css('background-color', "{{domain.get_color}}");
                $('#hunt_icon{{domain.id}}').css('color', "{{domain.get_color}}");
                $('#hunt_link{{domain.id}}').css('color', "{{domain.get_color}}");
                </script>
            </div>
{% endfor %}

        <div class="col-lg-3 col-md-6">
            <div class="panel"  style="background-color:#234082">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-3">
                            <img src="https://www.owasp.org/images/thumb/2/2f/Owasp_logo_flat2_icon.jpg/100px-Owasp_logo_flat2_icon.jpg" width="75" height="75">
                        </div>
                        <div class="col-xs-9 text-right " style="color:white;">
                            <div class="huge">OWASP</div>
                            <div>Grand Prize $100</div>
                        </div>
                    </div>
                </div>
                <a href="https://www.owasp.org/index.php/Bug_Bounty_Projects" target="_new">
                    <div class="panel-footer"><commit_msg>fixes link<commit_after>{% extends "base.html" %}
{% load staticfiles %}
{% load gravatar %}
{% load socialaccount %}
{% load humanize %}
{% providers_media_js %}
{% block content %}
    <script src="{% static "js/jquery.validate.js" %}"></script>
    <style>
    .ds-btn li{ list-style:none; float:left; padding:10px; }
    .ds-btn li a span{padding-left:15px;padding-right:5px;width:100%;display:inline-block; text-align:left;}
    .ds-btn li a span small{width:100%; display:inline-block; text-align:left;}
    .huge {overflow:auto;}
    </style>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Win points for reporting bugs on any website!
            <a id="chrome_ext" style="float:right;" href="https://chrome.google.com/webstore/detail/bugheist/bififchikfckcnblimmncopjinfgccme?hl=en" target="_new">
                        <img src="{% static 'img/chrome-button.png' %}" >
                    </a></h1>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-6">
            <form role="form" action="/issue/" method="post" id="form1" enctype="multipart/form-data" >
                {% csrf_token %}
                <div class="form-group">
                    <label>Find a bug on any website
                        {% if not user.is_authenticated %}
                            <span style="color:#DD4252; margin-left:60px;">* login required</span>
                        {% endif %}
                    </label>
                    {% if request.GET.url %}
                        <input class="form-control required"  placeholder="www.testsite.com/bug-found" name="url" value="{{request.GET.url}}">
                    {% else %}
                        <input class="form-control required" placeholder="www.testsite.com/bug-found" name="url" value="{{form.url.value|default:""}}">
                    {% endif %}
                    {% if form.url.errors %}
                        <label id="description-error" class="error" for="description">{{form.url.errors}}</label>
                    {% endif %}
                </div>
                <div class="form-group">
                    <label>Describe the bug</label>
                    <textarea data-required="true" class="form-control required" rows="3" placeholder="I found a bug on a site."  id="description" name="description">{{form.description.value|default:""}}</textarea>
                    {% if form.description.errors %}
                        <label id="description-error" class="error" for="description">{{form.description.errors}}</label>
                    {% endif %}
                </div>
                
                <div class="form-group">
                    <label>Attach Screenshot</label>
                    {% if request.GET.hash %}</br>
                        <img src="{{ MEDIA_URL }}uploads/{{request.GET.hash}}.png" height="100" style=" border: 1px solid #d43f3a;">
                        <input type="hidden" class="required" name="screenshot-hash" value="{{request.GET.hash}}">
                    {% else %}
                        <input type="file" class="required" name="screenshot">
                    {% endif %}
                    {% if form.screenshot.errors %}
                        <label id="description-error" class="error" for="description">{{form.screenshot.errors}}</label>
                    {% endif %}
                </div>
               
                <div class="form-group">
                    <button type="submit" id="btn" class="btn btn-default btn-danger" style="background:#dd4252; height:43px; font-size:14px;">Enter Bug</button>
                    </form> 
                    <label style="color:#dd4252; margin-left: 20px"> Win +3 points!</label>
                    {% if not user.is_authenticated %}
                        <a href="/accounts/login">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-envelope fa-2x"></i>
                            </button>
                        </a>
                        <a href="{% provider_login_url "facebook" method="js_sdk" %}">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-facebook fa-2x"></i>
                            </button>
                        </a>
                        <a href="{% provider_login_url "google" method="js_sdk" %}">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-google fa-2x"></i>
                            </button>
                        </a>
                        <a href="{% provider_login_url "github" method="js_sdk" %}">
                            <button class="btn btn-default btn-caution" style="float:right;">
                            <i class="fa fa-github fa-2x"></i>
                            </button>
                        </a>
                        <a href="/accounts/login">
                            <button class="btn btn-default btn-caution" style="color:#dd4252; float:right; height:43px; font-size:14px;">Login</button>
                        </a>
                    {% endif %}
                </div>
            
        </div>
        
        <div class="col-lg-6">
            <center>
            <span id="video_span">
                <iframe width="560" height="315" id="video_iframe" src="https://www.youtube.com/embed/o-t6HDXjpP8?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>
            </span>
            </center>
        </div>
        
    </div>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Featured Websites
            </h1>
        </div>
    </div>
    <div class="row">

         {% for domain in domains %}
            <div class="col-lg-3 col-md-6">
                <div class="panel"  id="hunt_{{domain.id}}">
                    <div class="panel-heading">
                        <div class="row">
                            <div class="col-xs-3" >
                                <img src="{{MEDIA_URL}}{{domain.logo}}" width="75" height="75" id="hunt_image{{domain.id}}" style="background-color:white;">
                            </div>
                            <div class="col-xs-9 text-right" style="color:white;">
                                <div class="huge">{{domain.get_name}}</div>
                                {% if domain.prize %}
                                <div>Grand Prize ${{domain.prize}}</div>
                                {% endif %}
                            </div>
                        </div>
                    </div>
                    <a href="{{domain.url}}" target="_new">
                        <div class="panel-footer">
                            <span class="pull-left" id="hunt_link{{domain.id}}">View Website</span>
                            <span class="pull-right"><i class="fa fa-arrow-circle-right" id="hunt_icon{{domain.id}}"></i></span>
                            <div class="clearfix"></div>
                        </div>
                    </a>
                </div>
                <script>
                $('#hunt_{{domain.id}}').css('background-color', "{{domain.get_color}}");
                $('#hunt_icon{{domain.id}}').css('color', "{{domain.get_color}}");
                $('#hunt_link{{domain.id}}').css('color', "{{domain.get_color}}");
                </script>
            </div>
{% endfor %}

        <div class="col-lg-3 col-md-6">
            <div class="panel"  style="background-color:#234082">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-3">
                            <img src="https://www.owasp.org/images/thumb/2/2f/Owasp_logo_flat2_icon.jpg/100px-Owasp_logo_flat2_icon.jpg" width="75" height="75">
                        </div>
                        <div class="col-xs-9 text-right " style="color:white;">
                            <div class="huge">OWASP</div>
                            <div>Grand Prize $100</div>
                        </div>
                    </div>
                </div>
                <a href="https://www.owasp.org/index.php/Bug_Bounty_Projects" target="_new">
                    <div class="panel-footer">
{'fraction_non_alphanumeric': 0.1581037037037037, 'fraction_numerical': 0.012681481481481481, 'mean_word_length': 1.3876627051499717, 'pattern_counts': {'":': 0, '<': 291, '<?xml version=': 0, '>': 291, 'https://': 8, 'lorem ipsum': 0, 'www.': 10, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6247778', 'n_tokens_mistral': 4951, 'n_tokens_neox': 4454, 'n_words': 816}