<commit_before><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
    
<%@ 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://eclipse.org/packagedrone/web/form" prefix="form"%>

<%@ taglib tagdir="/WEB-INF/tags/main" prefix="h" %>

<h:main title="Import" subtitle="From a Maven repository">

<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="Repository URL" path="url" command="command">
		        <form:input path="url" cssClass="form-control" placeholder="Leave empty for Maven Central"/>
		    </h:formEntry>
		    
            <h:formEntry label="Dependencies" path="dependencies" command="command">
                <form:textarea path="dependencies" cssClass="form-control" rows="10" />
                <span class="help-block">
                
                <span class="pull-right"><a href="#" data-toggle="modal" data-target="#coordinatesHelp"><span class="glyphicon glyphicon-question-sign"></span></a></span>
                
                The list of Maven artifacts to import. This may be either in the for of coordinates  (<code>groupId:artifactId[:extension[:classifier]]:version</code>)
                or the <code>&lt;dependency&gt;</code> fragments.
                </span>
            </h:formEntry>
            
            <h:formCheckbox label="Resolve dependencies" path="resolveDependencies" command="command">
            </h:formCheckbox>
            
            <h:formCheckbox label="Include all optional" path="allOptional" command="command">
                <span class="help-block">Whether all optional dependencies should be considered.</span>
            </h:formCheckbox>
            
            <h:formCheckbox label="Include sources" path="includeSources" command="command" >
            </h:formCheckbox>

            <h:formCheckbox label="Include POM" path="includePoms" command="command" >
            </h:formCheckbox>

            <h:formCheckbox label="Include Javadoc" path="includeJavadoc" command="command" >
            </h:formCheckbox>
            
		    <div class="form-group">
		        <div class="col-sm-offset-2 col-sm-10">
		            <button type="submit" class="btn btn-${ok ?  'default' : 'primary' }">Validate</button>
		            <c:if test="${ok }">
                        <button type="button" id="test" class="btn btn-primary" onclick="doAction('<c:url value="test"/>');">Resolve</button>
		            </c:if><commit_msg>disable spellcheck for text box<commit_after><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
    
<%@ 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://eclipse.org/packagedrone/web/form" prefix="form"%>

<%@ taglib tagdir="/WEB-INF/tags/main" prefix="h" %>

<h:main title="Import" subtitle="From a Maven repository">

<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="Repository URL" path="url" command="command">
		        <form:input path="url" cssClass="form-control" placeholder="Leave empty for Maven Central"/>
		    </h:formEntry>
		    
            <h:formEntry label="Dependencies" path="dependencies" command="command">
                <form:textarea path="dependencies" cssClass="form-control" rows="10" spellcheck="false" />
                <span class="help-block">
                
                <span class="pull-right"><a href="#" data-toggle="modal" data-target="#coordinatesHelp"><span class="glyphicon glyphicon-question-sign"></span></a></span>
                
                The list of Maven artifacts to import. This may be either in the for of coordinates  (<code>groupId:artifactId[:extension[:classifier]]:version</code>)
                or the <code>&lt;dependency&gt;</code> fragments.
                </span>
            </h:formEntry>
            
            <h:formCheckbox label="Resolve dependencies" path="resolveDependencies" command="command">
            </h:formCheckbox>
            
            <h:formCheckbox label="Include all optional" path="allOptional" command="command">
                <span class="help-block">Whether all optional dependencies should be considered.</span>
            </h:formCheckbox>
            
            <h:formCheckbox label="Include sources" path="includeSources" command="command" >
            </h:formCheckbox>

            <h:formCheckbox label="Include POM" path="includePoms" command="command" >
            </h:formCheckbox>

            <h:formCheckbox label="Include Javadoc" path="includeJavadoc" command="command" >
            </h:formCheckbox>
            
		    <div class="form-group">
		        <div class="col-sm-offset-2 col-sm-10">
		            <button type="submit" class="btn btn-${ok ?  'default' : 'primary' }">Validate</button>
		            <c:if test="${ok }">
                        <button type="button" id="test" class="btn btn-primary" onclick="doAction('<c:url value="test"/>');">Resolve</button>
		            </c:if>
{'fraction_non_alphanumeric': 0.16579700387140212, 'fraction_numerical': 0.0026931493014644, 'mean_word_length': 2.8684895833333335, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '3231854', 'n_tokens_mistral': 1822, 'n_tokens_neox': 1711, 'n_words': 338}