<commit_before><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib tagdir="/WEB-INF/tags/main" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://dentrassi.de/osgi/web/form" prefix="form"%>

<h:main title="Import" subtitle="From HTTP source">

<script type="text/javascript">
function doAction(action) {
	var form = $('#command');
	form.attr("action", action);
	form.submit();
	return false;
} 
</script>

<div class="container-fluid form-padding">

<div class="row">
    <div class="col-md-8">
    
        <form:form action="start" method="POST" cssClass="form-horizontal">
		
		    <h:formEntry label="URL" path="url" command="command">
		        <form:input path="url" cssClass="form-control"/>
		    </h:formEntry>
		    
            <h:formEntry label="Alternate Name" path="alternateName" command="command">
                <form:input path="alternateName" cssClass="form-control"/>
                <span class="help-block">
                If set, this name will be used instead of the last segment of the URL for the artifact name.
                </span>
            </h:formEntry>
		    
		    <div class="form-group">
		        <div class="col-sm-offset-2 col-sm-10">
		            <button type="submit" class="btn btn-primary">Proceed</button>
		            <c:if test="${ok }">
                        <button type="button" id="test" class="btn btn-info" onclick="doAction('<c:url value="test"/>');">Test</button>
		            </c:if>
		            <button type="reset" class="btn btn-default">Reset</button>
		        </div>
		    </div>
		</form:form>
	
    </div>
    
    <div class="col-md-4">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h4 class="panel-title"><span class="glyphicon glyphicon-info-sign"></span> Import from HTTP source</h4>
            </div>
            <div class="panel-body">
            This importer downloads the artifact content directly from an HTTP source.
            </div>
            <div class="panel-body">
            For this to work, the Package Drone server instance must have network access
            to this target resource.
            </div>
        </div>
    </div>
    
</div>

</div>

</h:main><commit_msg>fix button presentation during workflow<commit_after><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib tagdir="/WEB-INF/tags/main" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://dentrassi.de/osgi/web/form" prefix="form"%>

<h:main title="Import" subtitle="From HTTP source">

<script type="text/javascript">
function doAction(action) {
	var form = $('#command');
	form.attr("action", action);
	form.submit();
	return false;
} 
</script>

<div class="container-fluid form-padding">

<div class="row">
    <div class="col-md-8">
    
        <form:form action="start" method="POST" cssClass="form-horizontal">
		
		    <h:formEntry label="URL" path="url" command="command">
		        <form:input path="url" cssClass="form-control"/>
		    </h:formEntry>
		    
            <h:formEntry label="Alternate Name" path="alternateName" command="command">
                <form:input path="alternateName" cssClass="form-control"/>
                <span class="help-block">
                If set, this name will be used instead of the last segment of the URL for the artifact name.
                </span>
            </h:formEntry>
		    
		    <div class="form-group">
		        <div class="col-sm-offset-2 col-sm-10">
		            <button type="submit" class="btn ${ ok ? 'btn-default' : 'btn-primary'}">Check</button>
		            <c:if test="${ok }">
                        <button type="button" id="test" class="btn btn-primary" onclick="doAction('<c:url value="test"/>');">Proceed</button>
		            </c:if>
		            <button type="reset" class="btn btn-default">Reset</button>
		        </div>
		    </div>
		</form:form>
	
    </div>
    
    <div class="col-md-4">
        <div class="panel panel-info">
            <div class="panel-heading">
                <h4 class="panel-title"><span class="glyphicon glyphicon-info-sign"></span> Import from HTTP source</h4>
            </div>
            <div class="panel-body">
            This importer downloads the artifact content directly from an HTTP source.
            </div>
            <div class="panel-body">
            For this to work, the Package Drone server instance must have network access
            to this target resource.
            </div>
        </div>
    </div>
    
</div>

</div>

</h:main>
{'fraction_non_alphanumeric': 0.17217217217217218, 'fraction_numerical': 0.0036036036036036037, 'mean_word_length': 2.462231462231462, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3870574', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1522, 'n_words': 347}