<commit_before>=====================
Use Pygments in Java
=====================

Thanks to `Jython <http://www.jython.org>`__ it is possible to use Pygments in
Java.

This page is a simple tutorial to get an idea of how this is working. You can
then look at the `Jython documentation <http://www.jython.org/docs/>`__ for more
advanced use.

Since version 1.5, Pygments is deployed on `Maven Central
<http://repo1.maven.org/maven2/org/pygments/pygments/>`__ as a JAR so is Jython
which make it a lot easier to create the Java project.

Here is an example of a `Maven <http://www.maven.org>`__ ``pom.xml`` file for a
project running Pygments:

.. sourcecode:: xml

    <?xml version="1.0" encoding="UTF-8"?>

    <project xmlns="http://maven.apache.org/POM/4.0.0"<commit_msg>Fix typo<commit_after>=====================
Use Pygments in Java
=====================

Thanks to `Jython <http://www.jython.org>`__ it is possible to use Pygments in
Java.

This page is a simple tutorial to get an idea of how this is working. You can
then look at the `Jython documentation <http://www.jython.org/docs/>`__ for more
advanced use.

Since version 1.5, Pygments is deployed on `Maven Central
<http://repo1.maven.org/maven2/org/pygments/pygments/>`__ as a JAR so is Jython
which makes it a lot easier to create the Java project.

Here is an example of a `Maven <http://www.maven.org>`__ ``pom.xml`` file for a
project running Pygments:

.. sourcecode:: xml

    <?xml version="1.0" encoding="UTF-8"?>

    <project xmlns="http://maven.apache.org/POM/4.0.0"
{'fraction_non_alphanumeric': 0.16731517509727625, 'fraction_numerical': 0.01297016861219196, 'mean_word_length': 4.0756578947368425, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 2, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 8}, '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': '1827425', 'n_tokens_mistral': 535, 'n_tokens_neox': 486, 'n_words': 188}