svn commit: r1891636 - /commons/cms-site/trunk/doap/doap_numbers.rdf

2021-07-17 Thread mattjuntunen
Author: mattjuntunen
Date: Sun Jul 18 05:40:45 2021
New Revision: 1891636

URL: http://svn.apache.org/viewvc?rev=1891636=rev
Log:
Commons Numbers v1.0 released (from RC1)

Modified:
commons/cms-site/trunk/doap/doap_numbers.rdf

Modified: commons/cms-site/trunk/doap/doap_numbers.rdf
URL: 
http://svn.apache.org/viewvc/commons/cms-site/trunk/doap/doap_numbers.rdf?rev=1891636=1891635=1891636=diff
==
--- commons/cms-site/trunk/doap/doap_numbers.rdf (original)
+++ commons/cms-site/trunk/doap/doap_numbers.rdf Sun Jul 18 05:40:45 2021
@@ -43,6 +43,11 @@
 
   
 commons-numbers
+2021-07-17
+1.0
+  
+  
+commons-numbers
 2020-04-08
 1.0-beta1
   




svn commit: r1891635 - /commons/cms-site/trunk/conf/component_releases.properties

2021-07-17 Thread mattjuntunen
Author: mattjuntunen
Date: Sun Jul 18 05:37:22 2021
New Revision: 1891635

URL: http://svn.apache.org/viewvc?rev=1891635=rev
Log:
Commons Numbers v1.0 was released (from RC1)

Modified:
commons/cms-site/trunk/conf/component_releases.properties

Modified: commons/cms-site/trunk/conf/component_releases.properties
URL: 
http://svn.apache.org/viewvc/commons/cms-site/trunk/conf/component_releases.properties?rev=1891635=1891634=1891635=diff
==
--- commons/cms-site/trunk/conf/component_releases.properties (original)
+++ commons/cms-site/trunk/conf/component_releases.properties Sun Jul 18 
05:37:22 2021
@@ -60,8 +60,8 @@ mathVersion=3.5
 mathReleased=2015-04-17
 netVersion=3.8.0
 netReleased=2020-02-13
-numbersVersion=1.0-beta1
-numbersReleased=2020-04-08
+numbersVersion=1.0
+numbersReleased=2021-07-17
 ognlVersion=4.0
 ognlReleased=2013-??-??
 poolVersion=2.10.0




[commons-math] 02/02: Reduce visibility to package-private.

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 4f7ef762d71572d8142a260335d0f6e0c02ed301
Author: Gilles Sadowski 
AuthorDate: Sun Jul 18 01:06:00 2021 +0200

Reduce visibility to package-private.
---
 .../math4/legacy/stat/descriptive/rank/PSquarePercentile.java| 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
index 01fdb9c..603da76 100644
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
+++ 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
@@ -941,10 +941,9 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
 
 /**
  * An interface that encapsulates abstractions of the
- * P-square algorithm markers as is explained in the original works. This
- * interface is exposed with protected access to help in testability.
+ * P-square algorithm markers as is explained in the original works.
  */
-protected interface PSquareMarkers {
+interface PSquareMarkers { // Package-private for unit testing.
 /**
  * Returns Percentile value computed thus far.
  *


[commons-math] branch master updated (1c737b3 -> 4f7ef76)

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git.


from 1c737b3  Track changes.
 new b5fd55e  Avoid usage of "clone" (suggested by "sonarcloud").
 new 4f7ef76  Reduce visibility to package-private.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../stat/descriptive/rank/PSquarePercentile.java   | 55 ++
 1 file changed, 26 insertions(+), 29 deletions(-)


[commons-math] 01/02: Avoid usage of "clone" (suggested by "sonarcloud").

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit b5fd55e6b92aa769e5c8fed91712eaab342b35ed
Author: Gilles Sadowski 
AuthorDate: Sun Jul 18 01:02:28 2021 +0200

Avoid usage of "clone" (suggested by "sonarcloud").
---
 .../stat/descriptive/rank/PSquarePercentile.java   | 52 +++---
 1 file changed, 25 insertions(+), 27 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
index 5ffc871..01fdb9c 100644
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
+++ 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/PSquarePercentile.java
@@ -237,12 +237,13 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
 PSquarePercentile copy = new PSquarePercentile(100d * quantile);
 
 if (markers != null) {
-copy.markers = (PSquareMarkers) markers.clone();
+copy.markers = markers.copy();
 }
 copy.countOfObservations = countOfObservations;
 copy.pValue = pValue;
 copy.initialFive.clear();
 copy.initialFive.addAll(initialFive);
+
 return copy;
 }
 
@@ -557,19 +558,19 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
 }
 
 /**
- * {@inheritDoc}.Clone Markers
+ * Copy markers.
  *
- * @return cloned object
+ * @return a new instance.
  */
-@Override
-public Object clone() {
-return new Markers(new Marker[] { new Marker(),
-(Marker) markerArray[1].clone(),
-(Marker) markerArray[2].clone(),
-(Marker) markerArray[3].clone(),
-(Marker) markerArray[4].clone(),
-(Marker) markerArray[5].clone() });
-
+public Markers copy() {
+return new Markers(new Marker[] {
+new Marker(),
+markerArray[1].copy(),
+markerArray[2].copy(),
+markerArray[3].copy(),
+markerArray[4].copy(),
+markerArray[5].copy()
+});
 }
 
 /**
@@ -590,7 +591,7 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
 /**
  * The class modeling the attributes of the marker of the P-square 
algorithm.
  */
-private static final class Marker implements Serializable, Cloneable {
+private static final class Marker implements Serializable {
 
 /**
  * Serial Version ID.
@@ -846,12 +847,11 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
 }
 
 /**
- * Clone this instance.
+ * Copy this instance.
  *
- * @return cloned marker
+ * @return a new instance.
  */
-@Override
-public Object clone() {
+public Marker copy() {
 return new Marker(markerHeight, desiredMarkerPosition, 
desiredMarkerIncrement, intMarkerPosition);
 }
 
@@ -944,7 +944,7 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
  * P-square algorithm markers as is explained in the original works. This
  * interface is exposed with protected access to help in testability.
  */
-protected interface PSquareMarkers extends Cloneable {
+protected interface PSquareMarkers {
 /**
  * Returns Percentile value computed thus far.
  *
@@ -953,15 +953,6 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
 double getPercentileValue();
 
 /**
- * A clone function to clone the current instance. It's created as an
- * interface method as well for convenience though Cloneable is just a
- * marker interface.
- *
- * @return clone of this instance
- */
-Object clone();
-
-/**
  * Returns the marker height (or percentile) of a given marker index.
  *
  * @param markerIndex is the index of marker in the marker array
@@ -971,6 +962,13 @@ public class PSquarePercentile extends 
AbstractStorelessUnivariateStatistic
 double height(int markerIndex);
 
 /**
+ * Copy factory.
+ *
+ * @return a new instance
+ */
+PSquareMarkers copy();
+
+/**
  * Process a data point by moving the marker heights based on 
estimator.
  *
  * @param inputDataPoint is the data point passed


[commons-numbers] annotated tag rel/commons-numbers-1.0 created (now c847f3b)

2021-07-17 Thread mattjuntunen
This is an automated email from the ASF dual-hosted git repository.

mattjuntunen pushed a change to annotated tag rel/commons-numbers-1.0
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git.


  at c847f3b  (tag)
 tagging 89a9c3817222a6c67d7a231b19f6c5c7fc995208 (commit)
  by Matt Juntunen
  on Sat Jul 17 12:32:51 2021 -0400

- Log -
RC1 becomes v1.0 official release
-BEGIN PGP SIGNATURE-

iQGzBAABCgAdFiEEfdU67+3xw9OStR6+NG9Pzs+3CxoFAmDzBjMACgkQNG9Pzs+3
Cxrl/Av/Z3t8k1Fm5AcGE/h8t0J6qOi9iFMPYP+2iWghz+zXFAvU0scON5Q4ubFg
9zkgCwDXMpabtsDiYiesk1h2Y15AB7p3TrlHQ9rCYPW2RH7t6xvuO8PBmfUUD40e
Ql5lgttiHSpCcGikEa4XgfmSP6ojMqgYkSms2vORsEIft18vAVzkJkMFt8ATBN1I
hYsUnJ73kCi8xZADtMg9m3lp716H7ZSblEkbiwfs1c8IUC+a/iIKA4dYoiZojWyl
Gy12/SYmPPII7IiJlv5UIAP+gFH3r+qb4C8o93KAGR+04WiDngwT9VilkjXwHEqY
2+yP6AULMyDsCe6rC4qiKLumoumdYSS6u85cKpm+tVb7HxrIKAwKK7tBFbOjBRJ7
ZQkiuXQRnOehRI7TijiBOQe/Eu4EfJxwtkxxcs/voFmdvQBParTY8jNBExIUNPkj
eBwTwJkPfyV/cBSeLuVd4cmFbBH7IwuE/UqP9ShPH/r+gi6uY60farbuiKBPaUz/
ZXlGvjiZ
=LuW1
-END PGP SIGNATURE-
---

No new revisions were added by this update.


Nexus: Promotion Completed

2021-07-17 Thread Nexus Repository Manager
Message from: https://repository.apache.orgDescription:Releasing commons-numbers 1.0 from RC1Deployer properties:"userAgent" = "Apache-Maven/3.5.3 (Java 11.0.2; Linux 5.4.0-77-generic)""userId" = "mattjuntunen""ip" = "147.92.107.25"Details:The following artifacts have been promoted to the "Releases" [id=releases] repository/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-sources.jar.asc(SHA1: 57c13ad013a35a0bc10db602f50540b9d93deb3e)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-test-sources.jar(SHA1: 930e36c5d90c5de4b97302331b12772d1bb9fd74)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-javadoc.jar.asc(SHA1: 301d7694f83eaba193a66131e085fc35ac105e79)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-javadoc.jar(SHA1: 7024f6e34011e9133bd27027317a4b7e123d0448)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-sources.jar(SHA1: 8dcc78e0de21b2295a1c5d988f0ea909113858e3)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0.pom(SHA1: 0e0cdb7be0364439f543d9d490fb01d064993b04)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-test-sources.jar.asc(SHA1: 363383aa4d6c8dcc13c8ab388b600eb4c23d)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0.pom.asc(SHA1: f506348859c119dee4f2d19b7edc97a3ca449f9c)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0.jar(SHA1: bcf85b352c2ef0aab1a746897b8621d19d82af3a)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-tests.jar.asc(SHA1: 2db3a8232cec9d2658d0ae2f8141e02758524844)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0-tests.jar(SHA1: a77d4459c482c9f1796dbb5b8982a53b03cc9388)/org/apache/commons/commons-numbers-complex/1.0/commons-numbers-complex-1.0.jar.asc(SHA1: 2cfee3ce79a9f1f5a5d9dee92a82123eede5996d)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0.pom(SHA1: d5c0f432177e8965896e1f077d496d56a02e0781)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0.pom.asc(SHA1: c62bcc1effbe2f7177ebbc1df727a4ad216df50b)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-sources.jar.asc(SHA1: 0c4dcfcadcfd4804e0bef2bfac897088f1bed3c9)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0.jar(SHA1: 52ac25d164ca90eeed5914a79714bf56f18e)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-tests.jar.asc(SHA1: 368d200319ba912b382d121ec25774657ffeb219)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-javadoc.jar(SHA1: 852d18a66debe0db3eff50570262d7bd511e363c)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-javadoc.jar.asc(SHA1: aea27f9c26727d36e30270fe9ce000725c96d273)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-test-sources.jar.asc(SHA1: 5c019538d6923464836e500ca06c7d8faf45beaa)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0.jar.asc(SHA1: bb6633696f080cce0f3bd217fae630a145b0057a)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-test-sources.jar(SHA1: 6e0463ea272eb73efa72cda0a08c5546477f70c1)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-tests.jar(SHA1: d909e92448e6d594aed4845b6cc082f25a61a758)/org/apache/commons/commons-numbers-examples-jmh/1.0/commons-numbers-examples-jmh-1.0-sources.jar(SHA1: 080a122648696476ed46a29572940cdb1cd3e67d)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0-javadoc.jar(SHA1: 5bc08f66ceff866d4914e651bffb369685e8c974)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0-test-sources.jar.asc(SHA1: cfb59a6fdc32503c0fb949dcaed2f2cb3e38a2c0)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0.jar.asc(SHA1: 169f5d0e4d5b5c279e0b36c1885dcb9da8c9916b)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0-sources.jar(SHA1: 0de159afec43649b8e4f95000ade534ff0648213)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0-test-sources.jar(SHA1: bad27232190ebeef91edb3db3acad3b36ad99f1c)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0-tests.jar.asc(SHA1: 6d641c2781cf17626029d786e3a2a55e2cf2e06c)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0-tests.jar(SHA1: 0cf98f1139442827e18510d5827646649a1157f2)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0.jar(SHA1: 18400d4b3acdcdeb3a4184eac1a7a90aeb637ba3)/org/apache/commons/commons-numbers-rootfinder/1.0/commons-numbers-rootfinder-1.0-javadoc.jar.asc(SHA1: 

svn commit: r48864 - in /release/commons/numbers: ./ binaries/ source/

2021-07-17 Thread mattjuntunen
Author: mattjuntunen
Date: Sat Jul 17 16:24:34 2021
New Revision: 48864

Log:
Release Commons Numbers v1.0 (from RC1)

Added:
release/commons/numbers/binaries/commons-numbers-1.0-bin.tar.gz   (with 
props)
release/commons/numbers/binaries/commons-numbers-1.0-bin.tar.gz.asc
release/commons/numbers/binaries/commons-numbers-1.0-bin.tar.gz.sha512
release/commons/numbers/binaries/commons-numbers-1.0-bin.zip   (with props)
release/commons/numbers/binaries/commons-numbers-1.0-bin.zip.asc
release/commons/numbers/binaries/commons-numbers-1.0-bin.zip.sha512
release/commons/numbers/source/commons-numbers-1.0-src.tar.gz   (with props)
release/commons/numbers/source/commons-numbers-1.0-src.tar.gz.asc
release/commons/numbers/source/commons-numbers-1.0-src.tar.gz.sha512
release/commons/numbers/source/commons-numbers-1.0-src.zip   (with props)
release/commons/numbers/source/commons-numbers-1.0-src.zip.asc
release/commons/numbers/source/commons-numbers-1.0-src.zip.sha512
Removed:
release/commons/numbers/binaries/commons-numbers-1.0-beta1-bin.tar.gz
release/commons/numbers/binaries/commons-numbers-1.0-beta1-bin.tar.gz.asc
release/commons/numbers/binaries/commons-numbers-1.0-beta1-bin.tar.gz.sha512
release/commons/numbers/binaries/commons-numbers-1.0-beta1-bin.zip
release/commons/numbers/binaries/commons-numbers-1.0-beta1-bin.zip.asc
release/commons/numbers/binaries/commons-numbers-1.0-beta1-bin.zip.sha512
release/commons/numbers/source/commons-numbers-1.0-beta1-src.tar.gz
release/commons/numbers/source/commons-numbers-1.0-beta1-src.tar.gz.asc
release/commons/numbers/source/commons-numbers-1.0-beta1-src.tar.gz.sha512
release/commons/numbers/source/commons-numbers-1.0-beta1-src.zip
release/commons/numbers/source/commons-numbers-1.0-beta1-src.zip.asc
release/commons/numbers/source/commons-numbers-1.0-beta1-src.zip.sha512
Modified:
release/commons/numbers/README.html
release/commons/numbers/RELEASE-NOTES.txt

Modified: release/commons/numbers/README.html
==
--- release/commons/numbers/README.html (original)
+++ release/commons/numbers/README.html Sat Jul 17 16:24:34 2021
@@ -14,9 +14,9 @@
  See the License for the specific language governing permissions and
  limitations under the License.
 -->
-Commons-NUMBERS v1.0-beta1.
+Commons-NUMBERS v1.0
 
-This is the 1.0-beta1 version of commons-numbers. It is available in both 
binary and source distributions.
+This is the 1.0 version of commons-numbers. It is available in both binary 
and source distributions.
 
 
 Note:
@@ -55,12 +55,12 @@
 
 Always test available signatures, e.g.,
 $ pgpk -a KEYS
-$ pgpv commons-numbers-1.0-beta1-bin.tar.gz.asc
+$ pgpv commons-numbers-1.0-bin.tar.gz.asc
 or,
 $ pgp -ka KEYS
-$ pgp commons-numbers-1.0-beta1-bin.tar.gz.asc
+$ pgp commons-numbers-1.0-bin.tar.gz.asc
 or,
 $ gpg --import KEYS
-$ gpg --verify commons-numbers-1.0-beta1-bin.tar.gz.asc
+$ gpg --verify commons-numbers-1.0-bin.tar.gz.asc
 
 
\ No newline at end of file

Modified: release/commons/numbers/RELEASE-NOTES.txt
==
--- release/commons/numbers/RELEASE-NOTES.txt (original)
+++ release/commons/numbers/RELEASE-NOTES.txt Sat Jul 17 16:24:34 2021
@@ -1,4 +1,72 @@
 
+  Apache Commons Numbers 1.0 RELEASE NOTES
+
+The Apache Commons Numbers team is pleased to announce the release of
+commons-numbers-parent-1.0
+
+The Apache Commons Numbers project provides number types and utilities.
+
+This is the first official release of Apache Commons Numbers.
+
+Apache Commons Numbers 1.0 contains the following library modules:
+ commons-numbers-angle (requires Java 8+)
+ commons-numbers-arrays (requires Java 8+)
+ commons-numbers-combinatorics (requires Java 8+)
+ commons-numbers-complex (requires Java 8+)
+ commons-numbers-core (requires Java 8+)
+ commons-numbers-field (requires Java 8+)
+ commons-numbers-fraction (requires Java 8+)
+ commons-numbers-gamma (requires Java 8+)
+ commons-numbers-primes (requires Java 8+)
+ commons-numbers-quaternion (requires Java 8+)
+ commons-numbers-rootfinder (requires Java 8+)
+N.B. the Performance testing module requires Java 9+. (The unit tests require 
Java 8+)
+
+Changes in this version include:
+
+
+Fixed Bugs:
+o NUMBERS-153:  Use iterative implementation of "trigamma" function. Thanks to 
Dmitriy Golovashkin
+for reporting. Thanks to Gilles Sadowski.
+o NUMBERS-150:  "Fraction/BigFraction": Fixed pow(int) to handle 
Integer.MIN_VALUE and throw
+ArithmeticException for negative exponents to a fraction of zero. 
Thanks to Jin Xu.
+o NUMBERS-147:  Fixed Fraction/BigFraction from(double, int) to support 
Integer.MIN_VALUE as max
+denominator. Thanks to Alex Herbert.
+
+Changes:
+o NUMBERS-163:  Combined "LinearCombination" and "Summation" into single "Sum" 
class. Thanks to
+ 

[commons-math] branch master updated: Track changes.

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git


The following commit(s) were added to refs/heads/master by this push:
 new 1c737b3  Track changes.
1c737b3 is described below

commit 1c737b3570df027c553eb7df7578ce408e197d2d
Author: Gilles Sadowski 
AuthorDate: Sat Jul 17 15:25:33 2021 +0200

Track changes.
---
 src/changes/changes.xml | 14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 7cb78f2..780ca5d 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -57,7 +57,7 @@ If the output is not quite correct, check for invisible 
trailing spaces!
 This is a major release that requires source changes in applications.
 
 Lower-level functionality has been split off to new components, often
-  with bug-fixes, performance enhancements and improved API:
+ with bug-fixes, performance enhancements and improved API:
   Commons RNG,
   Commons Numbers,
   Commons Geometry,
@@ -74,15 +74,14 @@ The minimum version of the Java platform required to 
compile and use
 
 Users are encouraged to upgrade to this version, and to the new
  components listed above (they are now Commons Math's dependencies).
- Note that the new artefacts can be used together with v3.6.1 as the
- Java packages are different.
+
 For codes that are now located in the 'commons-math-legacy' module,
  upgrading will be a matter of changing the top-level package name:
  From 'org.apache.commons.math3' to 'org.apache.commons.math4.legacy'.
  Codes that are now located in the 'commons-math-legacy-core' module
- comprise classes that moved from package 'org.apache.commons.math3'
- and package 'org.apache.commons.math3.util' (e.g. 'MathArrays') over
- to package 'org.apache.commons.math4.legacy.core'.
+ comprise classes that moved from packages 'org.apache.commons.math3'
+ and 'org.apache.commons.math3.util' (e.g. 'MathArrays') over to
+ package 'org.apache.commons.math4.legacy.core'.
 
 Notes:
  Class 'FastMath' has been renamed 'AccurateMath' (now located in
@@ -96,6 +95,9 @@ Caveat:
  nightmare was one of the main reasons for creating more focused
  components.]
 ">
+  
+Clean up "o.a.c.math4.legacy.random" package.
+  
   
 Remove class "StableRandomGenerator" (in package 
"o.a.c.m.legacy.random").
   


[commons-math] branch master updated (2218194 -> 84f15db)

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git.


from 2218194  MATH-1611: Obsolete class.
 new 7de72b3  Javadoc.
 new 84f15db  Javadoc.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/commons/math4/legacy/random/package-info.java  | 15 +++
 .../commons/math4/legacy/stat/ranking/NaturalRanking.java |  6 +++---
 2 files changed, 6 insertions(+), 15 deletions(-)


[commons-math] 01/02: Javadoc.

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 7de72b3402bad3d31d6317fb936401a9ca382ac9
Author: Gilles Sadowski 
AuthorDate: Sat Jul 17 14:35:26 2021 +0200

Javadoc.
---
 .../apache/commons/math4/legacy/stat/ranking/NaturalRanking.java| 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
index 9aab512..bad04ca 100644
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
+++ 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
@@ -323,10 +323,10 @@ public class NaturalRanking implements RankingAlgorithm {
  * Resolve a sequence of ties, using the configured {@link TiesStrategy}.
  * The input ranks array is expected to take the same value
  * for all indices in tiesTrace.  The common value is recoded
- * according to the tiesStrategy. For example, if ranks = 
<5,8,2,6,2,7,1,2>,
- * tiesTrace = <2,4,7> and tiesStrategy is MINIMUM, ranks will be 
unchanged.
+ * according to the tiesStrategy. For example, if ranks = 
[5,8,2,6,2,7,1,2],
+ * tiesTrace = [2,4,7] and tiesStrategy is MINIMUM, ranks will be 
unchanged.
  * The same array and trace with tiesStrategy AVERAGE will come out
- * <5,8,3,6,3,7,1,3>.
+ * [5,8,3,6,3,7,1,3].
  *
  * @param ranks array of ranks
  * @param tiesTrace list of indices where ranks is constant


[commons-math] 02/02: Javadoc.

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 84f15db1bbfe6ca77369f678b2e71e21605e4c39
Author: Gilles Sadowski 
AuthorDate: Sat Jul 17 14:35:37 2021 +0200

Javadoc.
---
 .../apache/commons/math4/legacy/random/package-info.java  | 15 +++
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/package-info.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/package-info.java
index 7885a2e..1dbece0 100644
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/package-info.java
+++ 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/package-info.java
@@ -15,18 +15,9 @@
  * limitations under the License.
  */
 /**
- * Random Data Generation
+ * This package contains functionality related to random numbers.
  *
- * 
- *  Some of the utilities in this package use the pseudo-random number
- *  generators defined in the http://commons.apache.org/rng;>
- *  Commons RNG library in order to provide
- *  {@link org.apache.commons.math4.legacy.random.RandomUtils.DataGenerator
- *  higher level functionality} (such as random strings) based on an underlying
- *  source of randomness that provides sequences of uniformly distributed 
integers.
- * 
- * 
- *  Others are sources of pseudo-randomness that directly produce "compound" 
types.
- * 
+ * Note that a wide range of utilities are available in
+ * http://commons.apache.org/rng;>Commons RNG.
  */
 package org.apache.commons.math4.legacy.random;


[commons-math] 04/04: MATH-1611: Obsolete class.

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 2218194942ea095fd15b3bc1552e12a263981f80
Author: Gilles Sadowski 
AuthorDate: Sat Jul 17 14:19:09 2021 +0200

MATH-1611: Obsolete class.

Functionality moved to "Commons RNG" (cf. RNG-140).
---
 .../commons/math4/legacy/random/RandomUtils.java   |  94 ---
 .../RandomUtilsDataGeneratorAbstractTest.java  | 128 -
 2 files changed, 222 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/RandomUtils.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/RandomUtils.java
deleted file mode 100644
index 775693c..000
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/RandomUtils.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.commons.math4.legacy.random;
-
-import org.apache.commons.math4.legacy.exception.NumberIsTooLargeException;
-import org.apache.commons.math4.legacy.exception.util.LocalizedFormats;
-import org.apache.commons.rng.UniformRandomProvider;
-
-/**
- * Factory for creating generators of miscellaneous data.
- *
- * @since 4.0
- */
-public final class RandomUtils {
-/**
- * Class contains only static methods.
- */
-private RandomUtils() {}
-
-/**
- * @param rng Underlying generator. Reference is copied so the RNG
- * is shared with the caller.
- * @return a {@link DataGenerator data generator}.
- */
-public static DataGenerator createDataGenerator(final 
UniformRandomProvider rng) {
-return new DataGenerator(rng);
-}
-
-/**
- * Various random data generation routines.
- */
-public static class DataGenerator {
-/** Underlying RNG. */
-private final UniformRandomProvider rng;
-
-/**
- * @param rng Underlying generator.
- */
-DataGenerator(UniformRandomProvider rng) {
-this.rng = rng;
-}
-
-/**
- * Generates a uniformly distributed random long integer between 
{@code lower}
- * and {@code upper} (endpoints included).
- *
- * @param lower Lower bound for generated long integer.
- * @param upper Upper bound for generated long integer.
- * @return a random long integer greater than or equal to {@code lower}
- * and less than or equal to {@code upper}
- * @throws NumberIsTooLargeException if {@code lower >= upper}
- */
-public long nextLong(final long lower,
- final long upper) {
-if (lower >= upper) {
-throw new 
NumberIsTooLargeException(LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND,
-lower, upper, false);
-}
-final long max = (upper - lower) + 1;
-if (max <= 0) {
-// Range is too wide to fit in a positive long (larger than 
2^63);
-// as it covers more than half the long range, we use directly 
a
-// simple rejection method.
-while (true) {
-final long r = rng.nextLong();
-if (r >= lower && r <= upper) {
-return r;
-}
-}
-} else if (max < Integer.MAX_VALUE){
-// We can shift the range and generate directly a positive int.
-return lower + rng.nextInt((int) max);
-} else {
-// We can shift the range and generate directly a positive 
long.
-return lower + rng.nextLong(max);
-}
-}
-}
-}
diff --git 
a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/random/RandomUtilsDataGeneratorAbstractTest.java
 
b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/random/RandomUtilsDataGeneratorAbstractTest.java
deleted file mode 100644
index c1f611a..000
--- 

[commons-math] 03/04: Use functionality from "Commons RNG".

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit e6bc7a4d31eaea79eee58fa096866f5c95d78470
Author: Gilles Sadowski 
AuthorDate: Sat Jul 17 14:18:38 2021 +0200

Use functionality from "Commons RNG".
---
 .../math4/legacy/stat/ranking/NaturalRanking.java  | 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
index 627dfaf..9aab512 100644
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
+++ 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/ranking/NaturalRanking.java
@@ -22,11 +22,11 @@ import java.util.Arrays;
 import java.util.Iterator;
 import java.util.List;
 
-import org.apache.commons.math4.legacy.exception.MathInternalError;
-import org.apache.commons.math4.legacy.exception.NotANumberException;
 import org.apache.commons.rng.UniformRandomProvider;
 import org.apache.commons.rng.simple.RandomSource;
-import org.apache.commons.math4.legacy.random.RandomUtils;
+import org.apache.commons.rng.sampling.distribution.UniformLongSampler;
+import org.apache.commons.math4.legacy.exception.MathInternalError;
+import org.apache.commons.math4.legacy.exception.NotANumberException;
 import org.apache.commons.math4.legacy.core.jdkmath.AccurateMath;
 
 
@@ -85,7 +85,7 @@ public class NaturalRanking implements RankingAlgorithm {
 private final TiesStrategy tiesStrategy;
 
 /** Source of random data - used only when ties strategy is RANDOM. */
-private final RandomUtils.DataGenerator randomData;
+private final UniformRandomProvider random;
 
 /**
  * Create a NaturalRanking with default strategies for handling ties and 
NaNs.
@@ -152,14 +152,14 @@ public class NaturalRanking implements RankingAlgorithm {
 /**
  * @param nanStrategy NaN strategy.
  * @param tiesStrategy Tie strategy.
- * @param randomGenerator RNG.
+ * @param random RNG.
  */
 private NaturalRanking(NaNStrategy nanStrategy,
TiesStrategy tiesStrategy,
-   UniformRandomProvider randomGenerator) {
+   UniformRandomProvider random) {
 this.nanStrategy = nanStrategy;
 this.tiesStrategy = tiesStrategy;
-randomData = RandomUtils.createDataGenerator(randomGenerator);
+this.random = random;
 }
 
 /**
@@ -354,10 +354,10 @@ public class NaturalRanking implements RankingAlgorithm {
 case RANDOM:// Fill with random integral values in [c, c + 
length - 1]
 Iterator iterator = tiesTrace.iterator();
 long f = AccurateMath.round(c);
+final UniformLongSampler sampler = 
UniformLongSampler.of(random, f, f + length - 1);
 while (iterator.hasNext()) {
 // No advertised exception because args are guaranteed 
valid
-ranks[iterator.next()] =
-randomData.nextLong(f, f + length - 1);
+ranks[iterator.next()] = sampler.sample();
 }
 break;
 case SEQUENTIAL:  // Fill sequentially from c to c + length - 1


[commons-math] 02/04: Upgrade dependency.

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit dd9c46d4b8fc8051c52388d4538a86945e3e93e8
Author: Gilles Sadowski 
AuthorDate: Sat Jul 17 14:17:50 2021 +0200

Upgrade dependency.
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 2c92cd3..b65674d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -63,7 +63,7 @@
 8.29
 2.7.2
 1.0-SNAPSHOT
-1.3
+1.4-SNAPSHOT
 1.0-SNAPSHOT
 
1.0-SNAPSHOT
 3.6.1


[commons-math] 01/04: Nit.

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit d13aec9b34dada4f684a5943311568279af1cd39
Author: Gilles Sadowski 
AuthorDate: Sat Jul 17 01:25:08 2021 +0200

Nit.
---
 .../nonlinear/scalar/noderiv/MultiDirectionalTransform.java  | 9 +++--
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java
 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java
index fa1c849..e7ae9e5 100644
--- 
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java
+++ 
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/MultiDirectionalTransform.java
@@ -64,14 +64,12 @@ public class MultiDirectionalTransform
 final PointValuePair best = original.get(0);
 
 // Perform a reflection step.
-final Simplex reflectedSimplex = transform(original,
-   1);
+final Simplex reflectedSimplex = transform(original, 1);
 final PointValuePair reflectedBest = reflectedSimplex.get(0);
 
 if (comparator.compare(reflectedBest, best) < 0) {
 // Compute the expanded simplex.
-final Simplex expandedSimplex = transform(original,
-  gamma);
+final Simplex expandedSimplex = transform(original, gamma);
 final PointValuePair expandedBest = expandedSimplex.get(0);
 
 return comparator.compare(reflectedBest, expandedBest) <= 0 ?
@@ -79,8 +77,7 @@ public class MultiDirectionalTransform
 expandedSimplex;
 } else {
 // Compute the contracted simplex.
-return transform(original,
- rho);
+return transform(original, rho);
 }
 };
 }


[commons-math] branch master updated (fb283c8 -> 2218194)

2021-07-17 Thread erans
This is an automated email from the ASF dual-hosted git repository.

erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git.


from fb283c8  Add issue reference to skipped unit tests (suggested by 
"sonarcloud").
 new d13aec9  Nit.
 new dd9c46d  Upgrade dependency.
 new e6bc7a4  Use functionality from "Commons RNG".
 new 2218194  MATH-1611: Obsolete class.

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../scalar/noderiv/MultiDirectionalTransform.java  |   9 +-
 .../commons/math4/legacy/random/RandomUtils.java   |  94 ---
 .../math4/legacy/stat/ranking/NaturalRanking.java  |  18 +--
 .../RandomUtilsDataGeneratorAbstractTest.java  | 128 -
 pom.xml|   2 +-
 5 files changed, 13 insertions(+), 238 deletions(-)
 delete mode 100644 
commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/RandomUtils.java
 delete mode 100644 
commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/random/RandomUtilsDataGeneratorAbstractTest.java


Nexus: Staging Completed

2021-07-17 Thread Nexus Repository Manager
Message from: https://repository.apache.orgDescription:Close Apache Commons VFS 2.9.0 RC1.Deployer properties:"userAgent" = "Apache-Maven/3.8.1 (Java 1.8.0_292; Mac OS X 10.16)""userId" = "ggregory""ip" = "98.180.78.32"Details:The following artifacts have been staged/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.jar.asc(SHA1: b6ff45fde3069d6b796e4c59d241dbeb05274518)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-test-sources.jar.asc(SHA1: 08c39190073b9377b25640158236d03e36caa5ef)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-sources.jar.asc(SHA1: 7648abb156e382fe116a62aff17895f134a60efe)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.pom(SHA1: 6083aae194927bdc8b18fcf98e1e6d2680cd6645)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-javadoc.jar(SHA1: 00601e8c12458cd5f72b8d2c3d3b91f63fb9a2f6)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-javadoc.jar.asc(SHA1: 05744ac818a2bf25e5f732b0c829c3170e25a37a)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-tests.jar(SHA1: f264ee79200777a31d7b264ea0d511cb94dd03d5)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-sources.jar(SHA1: 7d015ebfc651b4b641789b1adc43c6a4fd7e4aaf)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-tests.jar.asc(SHA1: 4b679c14b2a4d156465c58172ebb89920c05f62f)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.jar(SHA1: 48115c2fb1c5f0a2498a4365162d6b69adec73f3)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.pom.asc(SHA1: b56acd04d986c37c40253d044c93eb2cb8eb74b1)/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0-test-sources.jar(SHA1: c451d75136324ecbccc795326303b18bc0dff394)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-javadoc.jar.asc(SHA1: 69ea61792852498880a9ecdaaf0e9bd643367b50)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-tests.jar(SHA1: 8f7242ffb42ab2167c3b4c4b1edc0f98f5c225e7)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0.pom(SHA1: d9cacbab455ae902369033cb8377fc1143c07d60)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-sources.jar.asc(SHA1: 429bfe6ad3a2527d19470e9340f0c46e9ba88525)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0.jar(SHA1: 816abddf3d1b7a6fcb4e84e7aa5a1f781f8d5fcb)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0.jar.asc(SHA1: 34d68091050417c014f26e3e7bd87aec3b5c1833)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-sources.jar(SHA1: d239a63fac954609f837db8db64574165106a4e9)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-test-sources.jar.asc(SHA1: 11ec8c4640d6244a45026e62b229ad392a78bbda)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-javadoc.jar(SHA1: 9ab67a679edb6b64f4e0e065b1e4d036e454714b)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-tests.jar.asc(SHA1: a431bbbabbfa3b9a9f99b4f100b397b18726f12e)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0.pom.asc(SHA1: 096c20a954fdfff6a1a2689af17222702c894c79)/org/apache/commons/commons-vfs2-jackrabbit2/2.9.0/commons-vfs2-jackrabbit2-2.9.0-test-sources.jar(SHA1: 97b6ef8bf2f065f1553c8c11c0d8cdb725d465f9)/org/apache/commons/commons-vfs2-distribution/2.9.0/commons-vfs2-distribution-2.9.0.pom(SHA1: 3161296c2578eb24ca4f3cdbae1e6880bef7b8d6)/org/apache/commons/commons-vfs2-distribution/2.9.0/commons-vfs2-distribution-2.9.0.pom.asc(SHA1: cb905dcfcc2022d1033b9e4387d2da6297b094bc)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0-test-sources.jar.asc(SHA1: 04a680702e8a89897c5fff7583d6ab67d6c7a52f)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0.pom(SHA1: b1221b7d176947c4a0346839309e0b50d13355e1)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0-javadoc.jar.asc(SHA1: 1bdfba8494f53b21e98e85d01e3302204cacaf47)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0.jar.asc(SHA1: 2ce4bc08ab2b5b00bdb55d96c3d31c4a10f2990d)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0-tests.jar.asc(SHA1: 0a1b8a811dcf7bc068d270d125164b7403d9d3d9)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0-javadoc.jar(SHA1: f27820e29c5fd3c3feba6cb9433c124407e68784)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0-sources.jar.asc(SHA1: 1a352c153dd9a7f2acf11b9fb2b2df8d19a6bfe5)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0.jar(SHA1: 9672175a6072bf68465d6f0f6cb4e11414743104)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0-sources.jar(SHA1: 759e27a4a6ccff3d163b1a78e6a63e297a2170d8)/org/apache/commons/commons-vfs2-jackrabbit1/2.9.0/commons-vfs2-jackrabbit1-2.9.0-tests.jar(SHA1: 

svn commit: r48862 - in /dev/commons/vfs/2.9.0-RC1/site: commons-vfs2-distribution/ commons-vfs2-distribution/css/ commons-vfs2-distribution/images/ commons-vfs2-distribution/images/logos/ commons-vfs

2021-07-17 Thread ggregory
Author: ggregory
Date: Sat Jul 17 12:03:03 2021
New Revision: 48862

Log:
Update site for RC.


[This commit notification would consist of 454 parts, 
which exceeds the limit of 50 ones, so it was shortened to the summary.]


svn commit: r48861 - in /dev/commons/vfs/2.9.0-RC1: ./ binaries/ site/ site/css/ site/images/ site/images/logos/ site/img/ site/js/ site/xref-test/ site/xref-test/code/ site/xref-test/code/sealed/ sit

2021-07-17 Thread ggregory
Author: ggregory
Date: Sat Jul 17 11:52:04 2021
New Revision: 48861

Log:
Staging release: commons-vfs2-distribution, version: 2.9.0


[This commit notification would consist of 162 parts, 
which exceeds the limit of 50 ones, so it was shortened to the summary.]


[commons-rng] 02/03: Track changes

2021-07-17 Thread aherbert
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit f073f978912523e867603dcf206ce8b10340f2c6
Author: Alex Herbert 
AuthorDate: Sat Jul 17 11:41:19 2021 +0100

Track changes
---
 src/changes/changes.xml | 4 
 1 file changed, 4 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 91573f0..2dc66ae 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -77,6 +77,10 @@ re-run tests that fail, and pass the build if they succeed
 within the allotted number of reruns (the test will be marked
 as 'flaky' in the report).
 ">
+  
+New "LongSampler" interface for sampling a long. New 
"UniformLongSampler" to sample
+from a range.
+  
   
 "ZigguratNormalizedGaussianSampler": Update to a table size of 256.
   


[commons-rng] 01/03: RNG-140: Add LongSampler interface and UniformLongSampler

2021-07-17 Thread aherbert
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit fffcf4c1664aa7a4db66686db29312346d5a7ace
Author: Alex Herbert 
AuthorDate: Thu Jul 15 21:24:26 2021 +0100

RNG-140: Add LongSampler interface and UniformLongSampler

This is replacement for RandomUtils.nextLong(long lo, long hi) from
Commons Math.
---
 .../rng/sampling/distribution/LongSampler.java |  31 ++
 .../distribution/SharedStateLongSampler.java   |  30 ++
 .../sampling/distribution/UniformLongSampler.java  | 334 +
 .../apache/commons/rng/sampling/RandomAssert.java  |  15 +
 .../distribution/UniformLongSamplerTest.java   | 324 
 5 files changed, 734 insertions(+)

diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LongSampler.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LongSampler.java
new file mode 100644
index 000..a3e2fac
--- /dev/null
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/LongSampler.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.rng.sampling.distribution;
+
+/**
+ * Sampler that generates values of type {@code long}.
+ *
+ * @since 1.4
+ */
+public interface LongSampler {
+/**
+ * Creates a sample.
+ *
+ * @return a sample.
+ */
+long sample();
+}
diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/SharedStateLongSampler.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/SharedStateLongSampler.java
new file mode 100644
index 000..9e052c2
--- /dev/null
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/SharedStateLongSampler.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.commons.rng.sampling.distribution;
+
+import org.apache.commons.rng.sampling.SharedStateSampler;
+
+/**
+ * Sampler that generates values of type {@code long} and can create new 
instances to sample
+ * from the same state with a given source of randomness.
+ *
+ * @since 1.4
+ */
+public interface SharedStateLongSampler
+extends LongSampler, SharedStateSampler {
+// Composite interface
+}
diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
new file mode 100644
index 000..2eb05a1
--- /dev/null
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
@@ -0,0 +1,334 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is 

[commons-rng] 03/03: Update DiscreteUniformSampler to match UniformLongSampler

2021-07-17 Thread aherbert
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit 11b8d250fc5731c3319e69dc441e22e8dd9474fb
Author: Alex Herbert 
AuthorDate: Sat Jul 17 12:03:14 2021 +0100

Update DiscreteUniformSampler to match UniformLongSampler

Fixed sampler does not require a RNG reference.

Add test for a small range against a reference RNG.

Add test for a power of 2 range against a reference RNG.

Add test for a large range against the same RNG. Output outside the
range should be ignored.
---
 .../distribution/DiscreteUniformSampler.java   | 16 ++--
 .../sampling/distribution/UniformLongSampler.java  |  2 +-
 .../distribution/DiscreteUniformSamplerTest.java   | 97 +-
 .../distribution/UniformLongSamplerTest.java   |  2 +-
 4 files changed, 90 insertions(+), 27 deletions(-)

diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
index 6a39aea..7190fc3 100644
--- 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.java
@@ -87,12 +87,11 @@ public class DiscreteUniformSampler
 private final int value;
 
 /**
- * @param rng Generator of uniformly distributed random numbers.
  * @param value The value.
  */
-FixedDiscreteUniformSampler(UniformRandomProvider rng,
-int value) {
-super(rng);
+FixedDiscreteUniformSampler(int value) {
+// No requirement for the RNG
+super(null);
 this.value = value;
 }
 
@@ -102,6 +101,12 @@ public class DiscreteUniformSampler
 }
 
 @Override
+public String toString() {
+// No RNG to include in the string
+return "Uniform deviate [X=" + value + "]";
+}
+
+@Override
 public SharedStateDiscreteSampler 
withUniformRandomProvider(UniformRandomProvider rng) {
 // No requirement for the RNG
 return this;
@@ -305,7 +310,6 @@ public class DiscreteUniformSampler
 return offset + sampler.sample();
 }
 
-/** {@inheritDoc} */
 @Override
 public String toString() {
 return sampler.toString();
@@ -379,7 +383,7 @@ public class DiscreteUniformSampler
 // This must be done first as the methods to handle lower == 0
 // do not handle upper == 0.
 if (upper == lower) {
-return new FixedDiscreteUniformSampler(rng, lower);
+return new FixedDiscreteUniformSampler(lower);
 }
 
 // Algorithms to ignore the lower bound if it is zero.
diff --git 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
index 2eb05a1..28766ac 100644
--- 
a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
+++ 
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
@@ -237,7 +237,7 @@ public abstract class UniformLongSampler implements 
SharedStateLongSampler {
 /**
  * @param rng Generator of uniformly distributed random numbers.
  */
-private UniformLongSampler(UniformRandomProvider rng) {
+UniformLongSampler(UniformRandomProvider rng) {
 this.rng = rng;
 }
 
diff --git 
a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSamplerTest.java
 
b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSamplerTest.java
index 053c268..98bdfa3 100644
--- 
a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSamplerTest.java
+++ 
b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/DiscreteUniformSamplerTest.java
@@ -63,23 +63,49 @@ public class DiscreteUniformSamplerTest {
 final UniformRandomProvider rng1 = 
RandomSource.SPLIT_MIX_64.create(0L);
 final UniformRandomProvider rng2 = 
RandomSource.SPLIT_MIX_64.create(0L);
 final SharedStateDiscreteSampler sampler = 
DiscreteUniformSampler.of(rng2, lower, upper);
-for (int i = 0; i < 5; i++) {
+for (int i = 0; i < 10; i++) {
 Assert.assertEquals(rng1.nextInt(), sampler.sample());
 }
 }
 
+/**
+ * Test samples with a non-power of 2 range.
+ * The output should be the same as the long values 

[commons-rng] branch master updated (897bbc9 -> 11b8d25)

2021-07-17 Thread aherbert
This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git.


from 897bbc9  Move spotbugs plugin to JDK 1.8 profile
 new fffcf4c  RNG-140: Add LongSampler interface and UniformLongSampler
 new f073f97  Track changes
 new 11b8d25  Update DiscreteUniformSampler to match UniformLongSampler

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../distribution/DiscreteUniformSampler.java   |  16 +-
 .../{DiscreteSampler.java => LongSampler.java} |   8 +-
 ...eteSampler.java => SharedStateLongSampler.java} |   8 +-
 .../sampling/distribution/UniformLongSampler.java  | 334 +
 .../apache/commons/rng/sampling/RandomAssert.java  |  15 +
 .../distribution/DiscreteUniformSamplerTest.java   |  97 --
 .../distribution/UniformLongSamplerTest.java   | 324 
 src/changes/changes.xml|   4 +
 8 files changed, 773 insertions(+), 33 deletions(-)
 copy 
commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/{DiscreteSampler.java
 => LongSampler.java} (88%)
 copy 
commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/{SharedStateDiscreteSampler.java
 => SharedStateLongSampler.java} (81%)
 create mode 100644 
commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/UniformLongSampler.java
 create mode 100644 
commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/UniformLongSamplerTest.java