From 2b8c27ff9141ea7582d74ffd0db2a331380fd50e Mon Sep 17 00:00:00 2001 From: Chris Elion Date: Wed, 3 Jun 2020 10:46:31 -0700 Subject: [PATCH] add "the the" to precommit spell check (#4059) --- .pre-commit-search-and-replace.yaml | 4 ++++ docs/Installation.md | 2 +- docs/Migrating.md | 2 +- docs/Training-on-Amazon-Web-Service.md | 2 +- ml-agents/mlagents/trainers/ghost/trainer.py | 2 +- ml-agents/mlagents/trainers/sac/trainer.py | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.pre-commit-search-and-replace.yaml b/.pre-commit-search-and-replace.yaml index a47121c4f0..5621e65470 100644 --- a/.pre-commit-search-and-replace.yaml +++ b/.pre-commit-search-and-replace.yaml @@ -2,3 +2,7 @@ search: /ML[ -]Agents toolkit/ replacement: ML-Agents Toolkit insensitive: true +- description: Replace "the the" + search: /the the/ + replacement: the + insensitive: true diff --git a/docs/Installation.md b/docs/Installation.md index 15502cb555..1d575f8f8d 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -82,7 +82,7 @@ Please make sure you enable 'Preview Packages' in the 'Advanced' dropdown in order to find it. **NOTE:** If you do not see the ML-Agents package listed in the Package Manager -please follow the the [advanced installation instructions](#advanced-local-installation-for-development) below. +please follow the [advanced installation instructions](#advanced-local-installation-for-development) below. #### Advanced: Local Installation for Development diff --git a/docs/Migrating.md b/docs/Migrating.md index 94e9960543..f037bf0948 100644 --- a/docs/Migrating.md +++ b/docs/Migrating.md @@ -358,7 +358,7 @@ vector observations to be used simultaneously. `RayPerception3d.Perceive()` that was causing the `endOffset` to be used incorrectly. However this may produce different behavior from previous versions if you use a non-zero `startOffset`. To reproduce the old behavior, - you should increase the the value of `endOffset` by `startOffset`. You can + you should increase the value of `endOffset` by `startOffset`. You can verify your raycasts are performing as expected in scene view using the debug rays. - If you use RayPerception3D, replace it with RayPerceptionSensorComponent3D diff --git a/docs/Training-on-Amazon-Web-Service.md b/docs/Training-on-Amazon-Web-Service.md index 38dd4c0a31..2a3da48410 100644 --- a/docs/Training-on-Amazon-Web-Service.md +++ b/docs/Training-on-Amazon-Web-Service.md @@ -303,7 +303,7 @@ X.Org X Server 1.18.4 Fatal server error: (EE) no screens found(EE) (EE) -Please consult the The X.Org Foundation support +Please consult the X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. diff --git a/ml-agents/mlagents/trainers/ghost/trainer.py b/ml-agents/mlagents/trainers/ghost/trainer.py index 1130d16ff7..8e81ad5154 100644 --- a/ml-agents/mlagents/trainers/ghost/trainer.py +++ b/ml-agents/mlagents/trainers/ghost/trainer.py @@ -104,7 +104,7 @@ def __init__( ) ) - # Counts the The number of steps of the ghost policies. Snapshot swapping + # Counts the number of steps of the ghost policies. Snapshot swapping # depends on this counter whereas snapshot saving and team switching depends # on the wrapped. This ensures that all teams train for the same number of trainer # steps. diff --git a/ml-agents/mlagents/trainers/sac/trainer.py b/ml-agents/mlagents/trainers/sac/trainer.py index 397747a32a..fda8f8ca1a 100644 --- a/ml-agents/mlagents/trainers/sac/trainer.py +++ b/ml-agents/mlagents/trainers/sac/trainer.py @@ -50,7 +50,7 @@ def __init__( :param training: Whether the trainer is set for training. :param load: Whether the model should be loaded. :param seed: The seed the model will be initialized with - :param run_id: The The identifier of the current run + :param run_id: The identifier of the current run """ super().__init__( brain_name, trainer_settings, training, run_id, reward_buff_cap