From cd785aab09a614f72abf448f448163d623ca625c Mon Sep 17 00:00:00 2001 From: garanews Date: Thu, 1 Oct 2020 13:45:29 +0200 Subject: [PATCH] fix typo fix typo --- CHANGELOG.txt | 8 ++++---- docs/tutorial/old/Search.ipynb | 2 +- examples/delete_user.py | 2 +- examples/feed-generator-from-redis/README.md | 2 +- examples/feed-generator-from-redis/fromredis.py | 2 +- examples/situational-awareness/README.md | 4 ++-- examples/vmray_automation.py | 2 +- pymisp/api.py | 2 +- pymisp/tools/fileobject.py | 4 ++-- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 776d001..08466df 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1295,7 +1295,7 @@ Other values, sanitization) [Falconieri] - Add: exportpdf tool working. [Falconieri] - General improvement : deisgn, exhaustiviness of mispEvent values - displayed, good pratice concerning paragraphe/table made. [Falconieri] + displayed, good practice concerning paragraphe/table made. [Falconieri] - Update with table basics. [Falconieri] - Structure of the improvements OK : test file, test folder, report generator. [Falconieri] @@ -2219,7 +2219,7 @@ Changes - Bump CHANGELOG. [Raphaël Vinot] - Bump misp-objects. [Raphaël Vinot] - Update readme for new logging system. [Raphaël Vinot] -- Small improvments in the logging system. [Raphaël Vinot] +- Small improvements in the logging system. [Raphaël Vinot] - Properly use python logging module. [Raphaël Vinot] - Update asciidoctor generator. [Raphaël Vinot] - Remove warning if PyMISP is too new. [Raphaël Vinot] @@ -2547,7 +2547,7 @@ Other - Cleanup warning function. [Raphaël Vinot] - Fix typos. [Raphaël Vinot] - Remove unused variable. [Tristan METAYER] -- Remove category It will be automaticly detected +- Remove category It will be automatically detected https://github.com/MISP/PyMISP/blob/master/pymisp/tools/openioc.py. [Tristan METAYER] - Revert tab to escape. [Tristan METAYER] @@ -2756,7 +2756,7 @@ Other - Bump version. [Raphaël Vinot] - Add orgs managment. [Raphaël Vinot] - Run on more python versions. [Raphaël Vinot] -- Exemple addtag (dirty) [Déborah Servili] +- Example addtag (dirty) [Déborah Servili] - Fix last commit. [Raphaël Vinot] - Wrong use of API for dateuntil. [Koen Van Impe] diff --git a/docs/tutorial/old/Search.ipynb b/docs/tutorial/old/Search.ipynb index 550f41e..cd2f8af 100644 --- a/docs/tutorial/old/Search.ipynb +++ b/docs/tutorial/old/Search.ipynb @@ -70,7 +70,7 @@ "source": [ "## Search unpublished events\n", "\n", - "**WARNING**: By default, the search query will only return all the events listed on teh index page" + "**WARNING**: By default, the search query will only return all the events listed on the index page" ] }, { diff --git a/examples/delete_user.py b/examples/delete_user.py index 87459a0..c579cc4 100755 --- a/examples/delete_user.py +++ b/examples/delete_user.py @@ -7,7 +7,7 @@ import argparse if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Delete the user with the given id. Keep in mind that disabling users (by setting the disabled flag via an edit) is always prefered to keep user associations to events intact.') + parser = argparse.ArgumentParser(description='Delete the user with the given id. Keep in mind that disabling users (by setting the disabled flag via an edit) is always preferred to keep user associations to events intact.') parser.add_argument("-i", "--user_id", help="The id of the user you want to delete.") args = parser.parse_args() diff --git a/examples/feed-generator-from-redis/README.md b/examples/feed-generator-from-redis/README.md index 777f370..c06e890 100644 --- a/examples/feed-generator-from-redis/README.md +++ b/examples/feed-generator-from-redis/README.md @@ -66,7 +66,7 @@ python3 server.py >>> obj_data = { "session": "session_id", "username": "admin", "password": "admin", "protocol": "telnet" } >>> generator.add_object_to_event(obj_name, **obj_data) -# Immediatly write the event to the disk (Bypassing the default flushing behavior) +# Immediately write the event to the disk (Bypassing the default flushing behavior) >>> generator.flush_event() ``` diff --git a/examples/feed-generator-from-redis/fromredis.py b/examples/feed-generator-from-redis/fromredis.py index 47dd20f..a82f5ce 100755 --- a/examples/feed-generator-from-redis/fromredis.py +++ b/examples/feed-generator-from-redis/fromredis.py @@ -107,7 +107,7 @@ class RedisToMISPFeed: # Suffix not provided, try to add anyway if settings.fallback_MISP_type == 'attribute': new_key = key + self.SUFFIX_ATTR - # Add atribute type from the config + # Add attribute type from the config if 'type' not in data and settings.fallback_attribute_type: data['type'] = settings.fallback_attribute_type else: diff --git a/examples/situational-awareness/README.md b/examples/situational-awareness/README.md index fb896c6..5a0e071 100644 --- a/examples/situational-awareness/README.md +++ b/examples/situational-awareness/README.md @@ -4,8 +4,8 @@ * It will also generate a html document with a table (attribute\_table.html) containing count for each type of attribute. * test\_attribute\_treemap.html is a quick page made to visualize both treemap and table at the same time. -* tags\_count.py is a script that count the number of occurences of every tags in a fetched sample of Events in a given period of time. -* tag\_search.py is a script that count the number of occurences of a given tag in a fetched sample of Events in a given period of time. +* tags\_count.py is a script that count the number of occurrences of every tags in a fetched sample of Events in a given period of time. +* tag\_search.py is a script that count the number of occurrences of a given tag in a fetched sample of Events in a given period of time. * Events will be fetched from _days_ days ago to today. * _begindate_ is the beginning of the studied period. If it is later than today, an error will be raised. * _enddate_ is the end of the studied period. If it is earlier than _begindate_, an error will be raised. diff --git a/examples/vmray_automation.py b/examples/vmray_automation.py index 670b3e0..0eb3ac8 100644 --- a/examples/vmray_automation.py +++ b/examples/vmray_automation.py @@ -129,7 +129,7 @@ def search_vmray_incomplete(m, url, wait_period, module_import_url, module_impor if module_DEBUG and req is not None: print("Response code from submitting to MISP modules %s" % (req.status_code)) - # Succesful response from the misp modules? + # Successful response from the misp modules? if req.status_code == 200: req_json = req.json() if "error" in req_json: diff --git a/pymisp/api.py b/pymisp/api.py index 794574f..0f79745 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -1917,7 +1917,7 @@ class PyMISP: :param timestamp: Restrict the results by the timestamp (last edit). Any event with a timestamp newer than the given timestamp will be returned. In case you are dealing with /attributes as scope, the attribute's timestamp will be used for the lookup. :param published: Set whether published or unpublished events should be returned. Do not set the parameter if you want both. :param enforce_warninglist: Remove any attributes from the result that would cause a hit on a warninglist entry. - :param to_ids: By default all attributes are returned that match the other filter parameters, irregardless of their to_ids setting. To restrict the returned data set to to_ids only attributes set this parameter to 1. 0 for the ones with to_ids set to False. + :param to_ids: By default all attributes are returned that match the other filter parameters, regardless of their to_ids setting. To restrict the returned data set to to_ids only attributes set this parameter to 1. 0 for the ones with to_ids set to False. :param deleted: If this parameter is set to 1, it will only return soft-deleted attributes. ["0", "1"] will return the active ones as well as the soft-deleted ones. :param include_event_uuid: Instead of just including the event ID, also include the event UUID in each of the attributes. :param include_event_tags: Include the event level tags in each of the attributes. diff --git a/pymisp/tools/fileobject.py b/pymisp/tools/fileobject.py index c90e6fd..a61797d 100644 --- a/pymisp/tools/fileobject.py +++ b/pymisp/tools/fileobject.py @@ -79,10 +79,10 @@ class FileObject(AbstractMISPObjectGenerator): if len(data) == 0: return 0.0 - occurences = Counter(bytearray(data)) + occurrences = Counter(bytearray(data)) entropy = 0.0 - for x in occurences.values(): + for x in occurrences.values(): p_x = float(x) / len(data) entropy -= p_x * math.log(p_x, 2)