You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by kr...@apache.org on 2026/10/01 22:33:16 UTC

(opennlp) branch feat/OPENNLP-1935-regex-guard updated (ec0968c0a -> f152df5a7)

This is an automated email from the ASF dual-hosted git repository.

krickert pushed a change to branch feat/OPENNLP-1935-regex-guard
in repository https://gitbox.apache.org/repos/asf/opennlp.git


    omit ec0968c0a OPENNLP-1935: Name the StringUtil helpers in the forbidden list message
    omit 96091141e OPENNLP-1935: Share one non-empty split loop in StringUtil
    omit 3e1138bb3 OPENNLP-1935: Forbid java.util.regex in production code with forbiddenapis
     add 33fd09c93 OPENNLP-1929: Regex Removal (7/10): BasicContextGenerator takes the separator literally and splits on Unicode whitespace by default (#1280)
     add ac0281a98 Isolate ObjectInputFilter usage in BaseModel to allow model loading on Android (#1346)
     add ceb2bd880 OPENNLP-1974: Normalize complete Unicode emoji sequences (#1313)
     add 05b502003 OPENNLP-1935: Forbid java.util.regex in production code with forbiddenapis
     add 7eac04c07 OPENNLP-1935: Share one non-empty split loop in StringUtil
     add f152df5a7 OPENNLP-1935: Name the StringUtil helpers in the forbidden list message

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (ec0968c0a)
            \
             N -- N -- N   refs/heads/feat/OPENNLP-1935-regex-guard (f152df5a7)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

No new revisions were added by this update.

Summary of changes:
 LICENSE                                            |    2 +-
 NOTICE                                             |   17 +-
 README.md                                          |    1 +
 dev/README-unicode-emoji-sequences.md              |   49 +
 dev/UnicodeEmojiSequenceGenerator.java             |  294 ++
 .../tools/ml/maxent/BasicContextGenerator.java     |   86 +-
 .../opennlp/tools/ml/maxent/ContextGenerator.java  |    2 +
 .../tools/ml/maxent/BasicContextGeneratorTest.java |  256 +
 .../src/main/appended-resources/META-INF/LICENSE   |   50 +
 .../src/main/appended-resources/META-INF/NOTICE    |   28 +
 .../tools/langdetect/LanguageDetectorFactory.java  |    4 +-
 .../java/opennlp/tools/util/model/BaseModel.java   |   49 +-
 .../opennlp/tools/util/normalizer/Confusables.java |   24 +-
 .../tools/util/normalizer/EmojiAnnotations.java    |   14 +-
 .../normalizer/EmojiCharSequenceNormalizer.java    |  150 +-
 .../tools/util/normalizer/HexCodePoints.java       |  141 +
 .../util/normalizer/UnicodeEmojiSequences.java     |  428 ++
 .../tools/util/normalizer/EmojiSequences.txt       | 4994 ++++++++++++++++++++
 ...efaultLanguageDetectorContextGeneratorTest.java |   60 +
 .../opennlp/tools/util/model/BaseModelTest.java    |   14 +
 .../util/normalizer/ConfusablesParseTest.java      |   19 +
 .../util/normalizer/EmojiAnnotationsTest.java      |    1 +
 ...CharSequenceNormalizerCharacterizationTest.java |  206 +
 .../EmojiCharSequenceNormalizerTest.java           |  327 ++
 .../tools/util/normalizer/HexCodePointsTest.java   |   83 +
 .../normalizer/UnicodeEmojiSequencesParseTest.java |  103 +
 opennlp-distr/src/main/readme/LICENSE              |    1 +
 opennlp-distr/src/main/readme/NOTICE               |   17 +-
 opennlp-docs/src/docbkx/langdetect.xml             |   13 +-
 opennlp-docs/src/docbkx/machine-learning.xml       |   35 +-
 .../EmojiCharSequenceNormalizerTest.java           |   43 -
 rat-excludes                                       |    1 +
 src/license/NOTICE.template                        |   19 +-
 33 files changed, 7397 insertions(+), 134 deletions(-)
 create mode 100644 dev/README-unicode-emoji-sequences.md
 create mode 100644 dev/UnicodeEmojiSequenceGenerator.java
 create mode 100644 opennlp-core/opennlp-ml/opennlp-ml-maxent/src/test/java/opennlp/tools/ml/maxent/BasicContextGeneratorTest.java
 create mode 100644 opennlp-core/opennlp-runtime/src/main/appended-resources/META-INF/LICENSE
 create mode 100644 opennlp-core/opennlp-runtime/src/main/appended-resources/META-INF/NOTICE
 create mode 100644 opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/util/normalizer/HexCodePoints.java
 create mode 100644 opennlp-core/opennlp-runtime/src/main/java/opennlp/tools/util/normalizer/UnicodeEmojiSequences.java
 create mode 100644 opennlp-core/opennlp-runtime/src/main/resources/opennlp/tools/util/normalizer/EmojiSequences.txt
 create mode 100644 opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/util/normalizer/EmojiCharSequenceNormalizerCharacterizationTest.java
 create mode 100644 opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/util/normalizer/EmojiCharSequenceNormalizerTest.java
 create mode 100644 opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/util/normalizer/HexCodePointsTest.java
 create mode 100644 opennlp-core/opennlp-runtime/src/test/java/opennlp/tools/util/normalizer/UnicodeEmojiSequencesParseTest.java
 delete mode 100644 opennlp-tools/src/test/java/opennlp/tools/util/normalizer/EmojiCharSequenceNormalizerTest.java