<commit_before>visualCaptcha-java
==================

Plain Java Servlet backend for visualCaptcha


Configuration
-------------

1. Add dependency on visualCaptcha-java to your project.

2. Copy the directories *assets/audios* and *assets/images* into your web root.

3. Register and configure the servlet in your web.xml:


    <servlet>
        <servlet-name>Captcha</servlet-name>
        <servlet-class>net.dotzour.visualCaptcha.CaptchaServlet</servlet-class>
        <init-param>
            <param-name>image-asset-path</param-name>
            <param-value>images/visualCaptcha</param-value>
        </init-param>
        <init-param>
            <param-name>audio-asset-path</param-name>
            <param-value>audio</param-value>
        </init-param>
    </servlet>
    
    <servlet-mapping>
        <servlet-name>Captcha</servlet-name>
        <url-pattern>/captcha/*</url-pattern>
    </servlet-mapping>

4. Configure your front-end to communicate with the servlet path you choose.<commit_msg>Add readme<commit_after>visualCaptcha-java-rest
========================

Fork of bdotzour's visualCaptcha-java project (Plain Java Servlet backend for visualCaptcha)
using Spring RestController as opposed to Servlets. Runs with Spring Boot so all you need to
do is run `mvn spring-boot:run` and point your browser to http://localhost:8080!

{'fraction_non_alphanumeric': 0.13925925925925925, 'fraction_numerical': 0.005925925925925926, 'mean_word_length': 3.1314984709480123, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '1132576', 'n_tokens_mistral': 402, 'n_tokens_neox': 386, 'n_words': 103}