Repository: mlflow/mlflow

Issue:
Fix typos
🚨 When you work on this issue, please make sure the following 🚨

- Follow https://opensource.com/article/19/7/create-pull-request-github if you're unfamiliar with how to create a pull request on GitHub.
- Create a PR from a non-master branch.
- Do not create commits on GitHub UI. [The DCO bot](https://github.com/apps/dco) doesn't work well with commits created on GitHub UI.
- Sign off your commits by using the `-s` flag (e.g. `git commit -s -m "fix typo"`).
- Fix only one item per pull request.
- Reference this issue in the PR.
- Ping me with the item you want to work on (e.g. @harupy I'd like to work on `occured -> occurred`).

### Typos (✅ means "Done")

---

🚀 Assignee: @punitkashyup (#5981 ✅)

occured -> occurred

https://github.com/mlflow/mlflow/blob/6700ba2b2fea445fe1c3ced686124d457c7b4511/mlflow/exceptions.py#L43

https://github.com/mlflow/mlflow/blob/6700ba2b2fea445fe1c3ced686124d457c7b4511/mlflow/exceptions.py#L71

---

🚀 Assignee: @elk15 (#5983 ✅)

resposne -> response

https://github.com/mlflow/mlflow/blob/1e2b4ed051bc760fd3e7d69149e1fbc1f7928edf/tests/helper_functions.py#L330

---

🚀 Assignee: @nitin154

reutrn -> return 

https://github.com/mlflow/mlflow/blob/1e2b4ed051bc760fd3e7d69149e1fbc1f7928edf/tests/helper_functions.py#L334

---

🚀 Assignee: @NeoKish (#6017 ✅)

direcotry -> directory 

https://github.com/mlflow/mlflow/blob/4e444efdf73c710644ee039b44fa36a31d716f69/tests/conftest.py#L104

---

🚀 Assignee: CaioCavalcanti (#6007 ✅)

relave -> relative

https://github.com/mlflow/mlflow/blob/834194ad4d540d90ea714ec0b88b95d1a990f52f/mlflow/utils/requirements_utils.py#L92

---

🚀 Assignee: @NeoKish (#6002 ✅)

senstive -> sensitive 

https://github.com/mlflow/mlflow/blob/ae27f677f7b6af693e766aaf7718fddd3d87b556/mlflow/tracking/fluent.py#L937

---

🚀 Assignee: @NeoKish (#6002 ✅)

adtive -> active 

https://github.com/mlflow/mlflow/blob/ae27f677f7b6af693e766aaf7718fddd3d87b556/mlflow/tracking/fluent.py#L1096

---

🚀 Assignee: @seyyidibrahimgulec (#5986 ✅)

comperator -> comparator 

https://github.com/mlflow/mlflow/blob/2a05d7d0cc65d4d72bc42b47321ae5b5011944dc/tests/utils/test_python_env.py#L108
https://github.com/mlflow/mlflow/blob/2a05d7d0cc65d4d72bc42b47321ae5b5011944dc/tests/utils/test_python_env.py#L121
https://github.com/mlflow/mlflow/blob/2a05d7d0cc65d4d72bc42b47321ae5b5011944dc/mlflow/utils/environment.py#L139
---

🚀 Assignee: @Asinsa (#6005 ✅)

legnth -> length 

https://github.com/mlflow/mlflow/blob/011ee78cebd492ab3d75d8f87f5c9d80334d2bf6/tests/utils/test_utils.py#L32


---

🚀 Assignee: @NeoKish (#6017 ✅)

theese -> these

https://github.com/mlflow/mlflow/blob/4b7c41e42d9fdb7f0e4c5d8937a8eb7296d22d1f/mlflow/sklearn/utils.py#L161


Discussion:
Can i also work on this?
@punitkashyup yes!
Thanks
@punitkashyup please tell me which item you want to  work on.
Anyone.
@punitkashyup Assigned the first item.
 @harupy I'd like to work on resposne -> response.
@elk15 Thanks, assigned!
 @harupy I'd like to work on comperator -> comparator
@seyyidibrahimgulec Thanks, assigned!
@harupy Thanks
@harupy I would like to work on reutrn -> return
@nitin154 Thanks, assigned :)
@harupy, I would like to work on senstive -> sensitive and adtive -> active since the both the typos are present in the same file
@NeoKish Thanks, assigned!
@harupy , can I take other unassigned ones or do you want to keep them open for other contributors? 
@NeoKish I'd like to keep them open for a few more days for other contributors.
@harupy, Sounds good to me. Thanks!
@NeoKish I'll ping you in a few days if this issue is not closed yet.
 @harupy I'd like to work on legnth -> length
@Asinsa Thanks!
@harupy I'd like to work on `relave -> relative`
Hi, @harupy I would like to contribute, is any Typo left?
@Sumanth077 They are reserved by @NeoKish.


@NeoKish Feel free to take unassigned ones :)
@harupy, Thanks, I am gonna do a PR soon
@nitin154 Any updates?
@harupy I have found a new typo that is not in the list. Can I fix it? Here is the detail:

truncacted -> truncated 

https://github.com/mlflow/mlflow/blob/1e2b4ed051bc760fd3e7d69149e1fbc1f7928edf/mlflow/utils/import_hooks/__init__.py#L42

@rotate2050 Thanks, yes you can! Can you also fix the following typo (reutrn -> return)?

https://github.com/mlflow/mlflow/blob/1e2b4ed051bc760fd3e7d69149e1fbc1f7928edf/tests/helper_functions.py#L334

Resolving patch:
diff --git a/mlflow/utils/import_hooks/__init__.py b/mlflow/utils/import_hooks/__init__.py
--- a/mlflow/utils/import_hooks/__init__.py
+++ b/mlflow/utils/import_hooks/__init__.py
@@ -39,7 +39,7 @@ def new_fn(*args, **kwargs):
 # The dictionary registering any post import hooks to be triggered once
 # the target module has been imported. Once a module has been imported
 # and the hooks fired, the list of hooks recorded against the target
-# module will be truncacted but the list left in the dictionary. This
+# module will be truncated but the list left in the dictionary. This
 # acts as a flag to indicate that the module had already been imported.
 
 _post_import_hooks = {}


Test patch:
diff --git a/tests/helper_functions.py b/tests/helper_functions.py
--- a/tests/helper_functions.py
+++ b/tests/helper_functions.py
@@ -331,7 +331,7 @@ def create_mock_response(status_code, text):
 
     :param: status_code int HTTP status code
     :param: text message from the response
-    :reutrn: mock HTTP Response
+    :return: mock HTTP Response
     """
     response = mock.MagicMock()
     response.status_code = status_code