You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/08/05 19:06:13 UTC
[commons-rng] branch master updated: Fix some typo and grammar.
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
The following commit(s) were added to refs/heads/master by this push:
new f6e689db Fix some typo and grammar.
f6e689db is described below
commit f6e689dbe64b3264628fb858e8db34ec238eba34
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Fri Aug 5 19:17:10 2022 +0200
Fix some typo and grammar.
---
.../src/main/java/org/apache/commons/rng/UniformRandomProvider.java | 3 +--
.../src/main/java/org/apache/commons/rng/core/BaseProvider.java | 4 ++--
.../java/org/apache/commons/rng/examples/stress/OutputCommand.java | 4 ++--
.../java/org/apache/commons/rng/examples/stress/RngDataOutput.java | 2 +-
.../sampling/distribution/FastLoadedDiceRollerDiscreteSampler.java | 2 +-
.../main/java/org/apache/commons/rng/simple/internal/Conversions.java | 2 +-
.../java/org/apache/commons/rng/simple/internal/MixFunctions.java | 4 ++--
pom.xml | 3 +++
8 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/commons-rng-client-api/src/main/java/org/apache/commons/rng/UniformRandomProvider.java b/commons-rng-client-api/src/main/java/org/apache/commons/rng/UniformRandomProvider.java
index f2f5c314..d650cd6d 100644
--- a/commons-rng-client-api/src/main/java/org/apache/commons/rng/UniformRandomProvider.java
+++ b/commons-rng-client-api/src/main/java/org/apache/commons/rng/UniformRandomProvider.java
@@ -30,8 +30,7 @@ public interface UniformRandomProvider {
/**
* Generates {@code byte} values and places them into a user-supplied array.
*
- * <p>The number of random bytes produced is equal to the length of the
- * the byte array.
+ * <p>The number of random bytes produced is equal to the length of the byte array.
*
* @param bytes Byte array in which to put the random bytes.
* Cannot be {@code null}.
diff --git a/commons-rng-core/src/main/java/org/apache/commons/rng/core/BaseProvider.java b/commons-rng-core/src/main/java/org/apache/commons/rng/core/BaseProvider.java
index ed6d6a35..e78dbea2 100644
--- a/commons-rng-core/src/main/java/org/apache/commons/rng/core/BaseProvider.java
+++ b/commons-rng-core/src/main/java/org/apache/commons/rng/core/BaseProvider.java
@@ -27,14 +27,14 @@ import org.apache.commons.rng.RandomProviderState;
public abstract class BaseProvider
implements RestorableUniformRandomProvider {
/**
- * The fractional part of the the golden ratio, phi, scaled to 64-bits and rounded to odd.
+ * The fractional part of the golden ratio, phi, scaled to 64-bits and rounded to odd.
* <pre>
* phi = (sqrt(5) - 1) / 2) * 2^64
* </pre>
* @see <a href="https://en.wikipedia.org/wiki/Golden_ratio">Golden ratio</a>
*/
private static final long GOLDEN_RATIO_64 = 0x9e3779b97f4a7c15L;
- /** The fractional part of the the golden ratio, phi, scaled to 32-bits and rounded to odd. */
+ /** The fractional part of the golden ratio, phi, scaled to 32-bits and rounded to odd. */
private static final int GOLDEN_RATIO_32 = 0x9e3779b9;
/** {@inheritDoc} */
diff --git a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/OutputCommand.java b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/OutputCommand.java
index bb2a7bcc..56f0d020 100644
--- a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/OutputCommand.java
+++ b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/OutputCommand.java
@@ -459,7 +459,7 @@ class OutputCommand implements Callable<Void> {
}
/**
- * Write an {@code long} value to the the output. The native Java value will be
+ * Write an {@code long} value to the output. The native Java value will be
* written to the writer on a single line using: a binary string representation
* of the bytes; the unsigned integer; and the signed integer.
*
@@ -497,7 +497,7 @@ class OutputCommand implements Callable<Void> {
}
/**
- * Write an {@code int} value to the the output. The native Java value will be
+ * Write an {@code int} value to the output. The native Java value will be
* written to the writer on a single line using: a binary string representation
* of the bytes; the unsigned integer; and the signed integer.
*
diff --git a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RngDataOutput.java b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RngDataOutput.java
index 5abeccfd..ab3da590 100644
--- a/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RngDataOutput.java
+++ b/commons-rng-examples/examples-stress/src/main/java/org/apache/commons/rng/examples/stress/RngDataOutput.java
@@ -56,7 +56,7 @@ import java.nio.ByteOrder;
* {@link java.io.DataOutputStream#writeInt(int) DataOutputStream#writeInt(int)}.</p>
*
* <p>This class has adaptors to write the long output from a RNG to two int values.
- * To match the caching implementation in the the core LongProvider class this is tested
+ * To match the caching implementation in the core LongProvider class this is tested
* to output int values in the same order as an instance of the LongProvider. Currently
* this outputs in order: low 32-bits, high 32-bits.
*/
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/FastLoadedDiceRollerDiscreteSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/FastLoadedDiceRollerDiscreteSampler.java
index 625a73c1..e921373a 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/FastLoadedDiceRollerDiscreteSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/FastLoadedDiceRollerDiscreteSampler.java
@@ -705,7 +705,7 @@ public abstract class FastLoadedDiceRollerDiscreteSampler
}
/**
- * Creates the sampler. Frequencies are are represented as a 53-bit value with a
+ * Creates the sampler. Frequencies are represented as a 53-bit value with a
* left-shift offset.
* <pre>
* BigInteger.valueOf(value).shiftLeft(offset)
diff --git a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Conversions.java b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Conversions.java
index e107c92f..a09784c6 100644
--- a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Conversions.java
+++ b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/Conversions.java
@@ -28,7 +28,7 @@ package org.apache.commons.rng.simple.internal;
*/
final class Conversions {
/**
- * The fractional part of the the golden ratio, phi, scaled to 64-bits and rounded to odd.
+ * The fractional part of the golden ratio, phi, scaled to 64-bits and rounded to odd.
* <pre>
* phi = (sqrt(5) - 1) / 2) * 2^64
* </pre>
diff --git a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/MixFunctions.java b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/MixFunctions.java
index eb8f4fc7..4f4be9e5 100644
--- a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/MixFunctions.java
+++ b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/internal/MixFunctions.java
@@ -23,14 +23,14 @@ package org.apache.commons.rng.simple.internal;
*/
final class MixFunctions {
/**
- * The fractional part of the the golden ratio, phi, scaled to 64-bits and rounded to odd.
+ * The fractional part of the golden ratio, phi, scaled to 64-bits and rounded to odd.
* This can be used as an increment for a Weyl sequence.
*
* @see <a href="https://en.wikipedia.org/wiki/Golden_ratio">Golden ratio</a>
*/
static final long GOLDEN_RATIO_64 = 0x9e3779b97f4a7c15L;
/**
- * The fractional part of the the golden ratio, phi, scaled to 32-bits and rounded to odd.
+ * The fractional part of the golden ratio, phi, scaled to 32-bits and rounded to odd.
* This can be used as an increment for a Weyl sequence.
*
* @see <a href="https://en.wikipedia.org/wiki/Golden_ratio">Golden ratio</a>
diff --git a/pom.xml b/pom.xml
index 778968c8..d6c3f655 100644
--- a/pom.xml
+++ b/pom.xml
@@ -759,6 +759,9 @@ This is avoided by creating an empty directory when svn is not available.
<contributor>
<name>Abhishek Singh Dhadwal</name>
</contributor>
+ <contributor>
+ <name>Arturo Bernal</name>
+ </contributor>
</contributors>
</project>