<commit_before><!doctype html>
<html>
    <head>
        <title>OAbot</title>
        <link rel="stylesheet" href="{{ url_for('send_css', path='style.css') }}" />
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
    </head>
    <body>
        <p class="loginsection">{% if username %}
	    Logged in as <a href="https://en.wikipedia.org/wiki/User:{{ username }}">{{ username }}</a>
	(<a href="{{ url_for('logout') }}">logout</a>).{% endif %}</p>


        <h2>OAbot</h2>
        {% if success == 'true' %}
        <div class="success">
            Edit successfully performed
        </div>
        {% elif success == 'nothing' %}
        <div class="success">
            No edit was made
        </div>
        {% endif %}
        <br />

        <p id="description">
        This tool looks for open access versions of references in Wikipedia articles. If no URL is provided in the citation template, it adds one that points to an open access repository where the reference is available (if we can find one).
	<br /><br />
        
        For each article, you will be able to review
        the links proposed by the tool, and perform the edit
        with your Wikipedia account.
        </p>

        <div class="startbutton">
        <form action="{{ url_for('get_random_page') }}">
            <input type="submit" class="btn btn-success" value="{% if username %}Start editing a random page!{% else %}Log in{% endif %}" />
        </form>
        </div>

        <p>You can also run the tool on a specific page of the English Wikipedia.</p>
        <div class="row">
            <form action="{{ url_for('process') }}" method="get" class="form-horizontal">
                <div class="form-group">
                    <div>
                        <label for="name" class="control-label col-lg-1">Page title</label>
                        <div class="controls col-lg-3">
                        <div class="input-group">
                            <input type="text" name="name" id="nameInput" value="{{ page_name }}" class="form-control" />
                            <span class="input-group-btn">
                                <input type="submit" value="See the proposed changes" class="btn btn-default" />
                            </span>
                        </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>

        <br />
	<p>
	<a href="https://en.wikipedia.org/w/index.php?title=Special:RecentChanges&tagfilter=OAuth+CID:+817">
	Edits recently performed with this tool</a>.
	</p>
        <br/><br/>
    
	<p><a href="https://github.com/dissemin/oabot">GitHub project</a> - 
	   report issues and suggest improvements on <a href="https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?projects=OABot">Phabricator</a> - 
           run by <a href="https://en.wikipedia.org/wiki/User_talk:Pintoch">Pintoch</a> - 
           brought to you by <a href="https://association.dissem.in/index.html.en">CAPSH</a> -
           hosted on <a href="https://tools.wmflabs.org/">WMF Tool Labs</a>
	 </p><commit_msg>Cleanup text, remove page search, move contribs<commit_after><!doctype html>
<html>
    <head>
        <title>OAbot</title>
        <link rel="stylesheet" href="{{ url_for('send_css', path='style.css') }}" />
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
    </head>
    <body>
        <p class="loginsection">{% if username %}
	    Logged in as <a href="https://en.wikipedia.org/wiki/User:{{ username }}">{{ username }}</a>
	(<a href="{{ url_for('logout') }}">logout</a>).{% endif %}</p>


        <h2>OAbot</h2>
        {% if success == 'true' %}
        <div class="success">
            Edit successfully performed
        </div>
        {% elif success == 'nothing' %}
        <div class="success">
            No edit was made
        </div>
        {% endif %}
        <br />

        <p id="description">
        We think we've found an open access version of an article cited on Wikipedia! Can you review our guess and edit Wikipedia to include a link to it?
	<br /><br />
        </p>

        <div class="startbutton">
        <form action="{{ url_for('get_random_page') }}">
            <input type="submit" class="btn btn-success" value="{% if username %}Start editing a random page!{% else %}Log in{% endif %}" />
        </form>
        </div>
       <br />

        <br />
	
        <br/><br/>
    
	<p><center><a href="https://github.com/dissemin/oabot">Code on GitHub</a> - 
	    <a href="https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?projects=OABot">Bugs on Phabricator</a> - 
           Run by <a href="https://en.wikipedia.org/wiki/User_talk:Pintoch">Pintoch</a> - 
           A<a href="https://association.dissem.in/index.html.en">CAPSH project</a> -
		Hosted on <a href="https://tools.wmflabs.org/">WMF Tool Labs</a></center>
	 </p>
	    
	<p><center>
	<a href="https://en.wikipedia.org/w/index.php?title=Special:RecentChanges&tagfilter=OAuth+CID:+817">
	 Recently edits made with OAbot</a>.</center>
	</p>
{'fraction_non_alphanumeric': 0.16916935943736933, 'fraction_numerical': 0.0038015586390420073, 'mean_word_length': 2.2124542124542126, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 130, 'https://': 16, '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': '6160621', 'n_tokens_mistral': 1682, 'n_tokens_neox': 1576, 'n_words': 399}