From a1ed8e3e85871c0a9d687058e2867c4ca3cfeb10 Mon Sep 17 00:00:00 2001 From: dongjinlong Date: Tue, 26 Mar 2024 22:56:14 +0800 Subject: [PATCH] chore: remove repetitive words in comments Signed-off-by: dongjinlong --- examples/contrib/costas_array.cs | 2 +- examples/contrib/costas_array.py | 2 +- examples/contrib/debruijn_binary.py | 2 +- examples/contrib/kenken2.cs | 2 +- examples/contrib/lectures.cs | 2 +- examples/contrib/lectures.py | 2 +- examples/contrib/pandigital_numbers.py | 2 +- examples/contrib/set_covering_deployment.py | 2 +- examples/notebook/contrib/costas_array.ipynb | 2 +- examples/notebook/contrib/debruijn_binary.ipynb | 2 +- examples/notebook/contrib/lectures.ipynb | 2 +- examples/notebook/contrib/pandigital_numbers.ipynb | 2 +- examples/notebook/contrib/set_covering_deployment.ipynb | 2 +- examples/python/README.md | 2 +- makefiles/Makefile.java.mk | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/examples/contrib/costas_array.cs b/examples/contrib/costas_array.cs index 97bcfe9807..15a3d85e82 100644 --- a/examples/contrib/costas_array.cs +++ b/examples/contrib/costas_array.cs @@ -62,7 +62,7 @@ public class CostasArray // Fix the values in the lower triangle in the // difference matrix to -n+1. This removes variants - // of the difference matrix for the the same Costas array. + // of the difference matrix for the same Costas array. for (int i = 0; i < n; i++) { for (int j = 0; j <= i; j++) diff --git a/examples/contrib/costas_array.py b/examples/contrib/costas_array.py index a83970571c..b6a2d38380 100644 --- a/examples/contrib/costas_array.py +++ b/examples/contrib/costas_array.py @@ -91,7 +91,7 @@ def main(n=6): # Fix the values in the lower triangle in the # difference matrix to -n+1. This removes variants - # of the difference matrix for the the same Costas array. + # of the difference matrix for the same Costas array. for i in range(n): for j in range(i + 1): solver.Add(differences[i, j] == -n + 1) diff --git a/examples/contrib/debruijn_binary.py b/examples/contrib/debruijn_binary.py index 7fdb00d190..c90fc3d0c4 100644 --- a/examples/contrib/debruijn_binary.py +++ b/examples/contrib/debruijn_binary.py @@ -21,7 +21,7 @@ base**n. - Compare with the the web based programs: + Compare with the web based programs: http://www.hakank.org/comb/debruijn.cgi http://www.hakank.org/comb/debruijn_arb.cgi diff --git a/examples/contrib/kenken2.cs b/examples/contrib/kenken2.cs index bd1bfe18d8..9420eb6772 100644 --- a/examples/contrib/kenken2.cs +++ b/examples/contrib/kenken2.cs @@ -48,7 +48,7 @@ public class KenKen2 else { // For length > 2 then res is either the sum - // the the product of the segment + // the product of the segment // sum the numbers int len = cc.Length / 2; diff --git a/examples/contrib/lectures.cs b/examples/contrib/lectures.cs index f6eef390b8..5056a89d2c 100644 --- a/examples/contrib/lectures.cs +++ b/examples/contrib/lectures.cs @@ -27,7 +27,7 @@ public class Lectures * Biggs: Discrete Mathematics (2nd ed), page 187. * """ * Suppose we wish to schedule six one-hour lectures, v1, v2, v3, v4, v5, v6. - * Among the the potential audience there are people who wish to hear both + * Among the potential audience there are people who wish to hear both * * - v1 and v2 * - v1 and v4 diff --git a/examples/contrib/lectures.py b/examples/contrib/lectures.py index ee53ffb80b..cfa75d7bce 100644 --- a/examples/contrib/lectures.py +++ b/examples/contrib/lectures.py @@ -18,7 +18,7 @@ Biggs: Discrete Mathematics (2nd ed), page 187. ''' Suppose we wish to schedule six one-hour lectures, v1, v2, v3, v4, v5, v6. - Among the the potential audience there are people who wish to hear both + Among the potential audience there are people who wish to hear both - v1 and v2 - v1 and v4 diff --git a/examples/contrib/pandigital_numbers.py b/examples/contrib/pandigital_numbers.py index 5fb81f1a53..d180cf3d01 100644 --- a/examples/contrib/pandigital_numbers.py +++ b/examples/contrib/pandigital_numbers.py @@ -47,7 +47,7 @@ * Wikipedia http://en.wikipedia.org/wiki/Pandigital_number - Compare with the the following models: + Compare with the following models: * MiniZinc: http://www.hakank.org/minizinc/pandigital_numbers.mzn * Comet : http://www.hakank.org/comet/pandigital_numbers.co * ECLiPSe : http://www.hakank.org/eclipse/pandigital_numbers.ecl diff --git a/examples/contrib/set_covering_deployment.py b/examples/contrib/set_covering_deployment.py index 5ee5796dc7..92440fc4bd 100644 --- a/examples/contrib/set_covering_deployment.py +++ b/examples/contrib/set_covering_deployment.py @@ -26,7 +26,7 @@ army placements to secure the Roman Empire. ''' - Compare with the the following models: + Compare with the following models: * MiniZinc: http://www.hakank.org/minizinc/set_covering_deployment.mzn * Comet : http://www.hakank.org/comet/set_covering_deployment.co * Gecode : http://www.hakank.org/gecode/set_covering_deployment.cpp diff --git a/examples/notebook/contrib/costas_array.ipynb b/examples/notebook/contrib/costas_array.ipynb index 6d0551af58..71ee63633d 100644 --- a/examples/notebook/contrib/costas_array.ipynb +++ b/examples/notebook/contrib/costas_array.ipynb @@ -160,7 +160,7 @@ "\n", " # Fix the values in the lower triangle in the\n", " # difference matrix to -n+1. This removes variants\n", - " # of the difference matrix for the the same Costas array.\n", + " # of the difference matrix for the same Costas array.\n", " for i in range(n):\n", " for j in range(i + 1):\n", " solver.Add(differences[i, j] == -n + 1)\n", diff --git a/examples/notebook/contrib/debruijn_binary.ipynb b/examples/notebook/contrib/debruijn_binary.ipynb index 00f1120fb8..55b7012b6a 100644 --- a/examples/notebook/contrib/debruijn_binary.ipynb +++ b/examples/notebook/contrib/debruijn_binary.ipynb @@ -82,7 +82,7 @@ " base**n.\n", "\n", "\n", - " Compare with the the web based programs:\n", + " Compare with the web based programs:\n", " http://www.hakank.org/comb/debruijn.cgi\n", " http://www.hakank.org/comb/debruijn_arb.cgi\n", "\n", diff --git a/examples/notebook/contrib/lectures.ipynb b/examples/notebook/contrib/lectures.ipynb index 0635b926f0..a17cfbb0c0 100644 --- a/examples/notebook/contrib/lectures.ipynb +++ b/examples/notebook/contrib/lectures.ipynb @@ -79,7 +79,7 @@ " Biggs: Discrete Mathematics (2nd ed), page 187.\n", " '''\n", " Suppose we wish to schedule six one-hour lectures, v1, v2, v3, v4, v5, v6.\n", - " Among the the potential audience there are people who wish to hear both\n", + " Among the potential audience there are people who wish to hear both\n", "\n", " - v1 and v2\n", " - v1 and v4\n", diff --git a/examples/notebook/contrib/pandigital_numbers.ipynb b/examples/notebook/contrib/pandigital_numbers.ipynb index 5252767074..3a2391e8cd 100644 --- a/examples/notebook/contrib/pandigital_numbers.ipynb +++ b/examples/notebook/contrib/pandigital_numbers.ipynb @@ -108,7 +108,7 @@ " * Wikipedia http://en.wikipedia.org/wiki/Pandigital_number\n", "\n", "\n", - " Compare with the the following models:\n", + " Compare with the following models:\n", " * MiniZinc: http://www.hakank.org/minizinc/pandigital_numbers.mzn\n", " * Comet : http://www.hakank.org/comet/pandigital_numbers.co\n", " * ECLiPSe : http://www.hakank.org/eclipse/pandigital_numbers.ecl\n", diff --git a/examples/notebook/contrib/set_covering_deployment.ipynb b/examples/notebook/contrib/set_covering_deployment.ipynb index 89a308d8e0..779bc0b556 100644 --- a/examples/notebook/contrib/set_covering_deployment.ipynb +++ b/examples/notebook/contrib/set_covering_deployment.ipynb @@ -87,7 +87,7 @@ " army placements to secure the Roman Empire.\n", " '''\n", "\n", - " Compare with the the following models:\n", + " Compare with the following models:\n", " * MiniZinc: http://www.hakank.org/minizinc/set_covering_deployment.mzn\n", " * Comet : http://www.hakank.org/comet/set_covering_deployment.co\n", " * Gecode : http://www.hakank.org/gecode/set_covering_deployment.cpp\n", diff --git a/examples/python/README.md b/examples/python/README.md index 8acef41e29..6973b81922 100644 --- a/examples/python/README.md +++ b/examples/python/README.md @@ -8,7 +8,7 @@ as this allows you to keep up-to-date with the latest Python frameworks. Wherever you have `ortools` package installed, be sure to import it from your python file. # Execution -For running the examples you can use the the following command: +For running the examples you can use the following command: ```shell python3 -m pip install --upgrade --user ortools python3 .py diff --git a/makefiles/Makefile.java.mk b/makefiles/Makefile.java.mk index 04a8df77ee..0184b12ae0 100644 --- a/makefiles/Makefile.java.mk +++ b/makefiles/Makefile.java.mk @@ -40,7 +40,7 @@ java: @echo JAR_BIN = $(JAR_BIN) @echo JAVA_BIN = $(JAVA_BIN) @echo MVN_BIN = $(MVN_BIN) - $(warning Either JAVA support was turned off, or the the makefile cannot\ + $(warning Either JAVA support was turned off, or the makefile cannot\ find 'java' or 'maven' command which is needed for build. \ Please make sure it is installed and in system path. \ Or turn java support ON.)