Skip to content

Commit a7c5167

Browse files
committed
Fix spelling typos in docs, source, and tests (#2134)
Signed-off-by: Mrityunjay Raj <mr.raj.earth@gmail.com>
1 parent a8aa6da commit a7c5167

16 files changed

Lines changed: 24 additions & 24 deletions

‎CHANGELOG.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,10 @@ The summary of performance improvements include these fixes:
517517
that are needed in the UI
518518
- Do not recreate querysets from scratch but instead allow these to be chained
519519
for simpler and correct code.
520-
- Remove extra details from the vulnerability pacge: each package was further
520+
- Remove extra details from the vulnerability package: each package was further
521521
listing its related vulnerabilities creating an iceberg query.
522522
- Enable the django-debug-toolbar with a setting to easily profile queries on demand
523-
by setting both VULNERABLECODE_DEBUG and VULNERABLECODE_DEBUG_TOOLBAR enviroment
523+
by setting both VULNERABLECODE_DEBUG and VULNERABLECODE_DEBUG_TOOLBAR environment
524524
variables.
525525

526526

‎aboutcode/federated/README.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repository names. A Data Cluster is akin to a table in a traditional database.
2828
3. **Data Repository**: A DataCluster contains of one or more Git Data Repository,
2929
each storing datafiles of the cluster data kind and a one PURL type, spreading
3030
the datafiles in multiple Data Directories. The name is data-kind +PURL-
31-
type+hashid. A Repository is similar to a shard or tablespace in a traditionale
31+
type+hashid. A Repository is similar to a shard or tablespace in a traditional
3232
database.
3333

3434
4. **Data Directory**: In a Repository, a Data Directory contains the datafiles for

‎aboutcode/federated/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
337337
We can rebalance a cluster, like when we first store the data in a cluster with
338338
a single Git repository for a given PURL type, and later split this repo to more
339-
repos, without loosing the ability to address datafiles directly just knowing a
339+
repos, without losing the ability to address datafiles directly just knowing a
340340
PURL and without having to rename all the files and directories.
341341
342342
In this design, the directory names are stable and do not change as long as we
@@ -1511,7 +1511,7 @@ def compute_purl_hash(purl: Union[PackageURL, str], max_value: int = 1024) -> st
15111511
- Convert the PURL to a core PURL with only type, namespace and name.
15121512
- Compute a SHA256 hash on that core PURL string encoded to bytes as UTF-8.
15131513
- Convert that hash value to an integer.
1514-
- Compute a modulo on that integer with the the max value.
1514+
- Compute a modulo on that integer with the max value.
15151515
With default max_value of 1024, this yields an int between 0 and 1023.
15161516
- Convert that integer to a 4-characters string left-padded with zero.
15171517

‎docs/source/installation.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ to run on a different port than 8000.
8282

8383
Serving VulnerableCode on a network could lead to security issues and there
8484
are several steps that may be needed to secure such a deployment.
85-
Currently, this is not recommendend.
85+
Currently, this is not recommended.
8686

8787
Execute a Command
8888
^^^^^^^^^^^^^^^^^

‎docs/source/reference_importer_overview.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ and for storing the scraped information in a structured fashion. The structured
88
importer then provides input to an improver (see :ref:`improver-overview`), which is responsible
99
for creating a relational model for vulnerabilities, affected packages and fixed packages.
1010

11-
All importer implementation-related code is defined in :file:`vulnerabilites/importer.py`.
11+
All importer implementation-related code is defined in :file:`vulnerabilities/importer.py`.
1212

1313
In addition, the framework-related code for actually invoking and processing the importers is
14-
located in :file:`vulnerabilites/import_runner.py`.
14+
located in :file:`vulnerabilities/import_runner.py`.
1515

1616
The importers, after scraping, provide ``AdvisoryData`` objects. These objects are then
1717
processed and inserted into the ``Advisory`` model.

‎docs/source/reference_improver_overview.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Improver Overview
44
===================
55

66
Improvers improve upon already imported data. They are responsible for creating a relational
7-
model for vulnerabilites and packages.
7+
model for vulnerabilities and packages.
88

99
An Improver is intended to contain data points about a vulnerability and the relevant discrete
1010
affected and fixed packages (in the form of `PackageURLs
@@ -17,7 +17,7 @@ relationship is stored in the database.
1717
There are two categories of improvers:
1818

1919
- **Generic**: Improve upon some imported data irrespective of any importer. These improvers are
20-
defined in :file:`vulnerabilites/improvers/`.
20+
defined in :file:`vulnerabilities/improvers/`.
2121
- **Importer Specific**: Improve upon data imported by a specific importer. These are defined in the
2222
corresponding importer file itself.
2323

@@ -30,5 +30,5 @@ answer, which could also be ``MAX_CONFIDENCE`` in certain cases.
3030
The possibilities with improvers are endless; they are not restricted to take one approach. Features
3131
like *Time Travel* and *finding fix commits* could be implemented as well.
3232

33-
You can find more in-code documentation about improvers in :file:`vulnerabilites/improver.py` and
34-
the framework responsible for invoking these improvers in :file:`vulnerabilites/improve_runner.py`.
33+
You can find more in-code documentation about improvers in :file:`vulnerabilities/improver.py` and
34+
the framework responsible for invoking these improvers in :file:`vulnerabilities/improve_runner.py`.

‎docs/source/tutorial_add_importer_pipeline.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ At this point, an example importer will look like this:
162162
pipeline_id = "example_importer"
163163
164164
root_url = "https://example.org/path/to/advisories/"
165-
license_url = "https://exmaple.org/license/"
165+
license_url = "https://example.org/license/"
166166
spdx_license_expression = "CC-BY-4.0"
167167
importer_name = "Example Importer"
168168

‎docs/source/tutorial_add_improver_pipeline.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ At this point improver will look like this:
115115
116116
pipeline_id = "flag_ghost_package_with_example_org"
117117
118-
license_url = "https://exmaple.org/license/"
118+
license_url = "https://example.org/license/"
119119
spdx_license_expression = "CC-BY-4.0"
120120
121121
@classmethod
@@ -152,7 +152,7 @@ methods.
152152
153153
pipeline_id = "flag_ghost_package_with_example_org"
154154
155-
license_url = "https://exmaple.org/license/"
155+
license_url = "https://example.org/license/"
156156
spdx_license_expression = "CC-BY-4.0"
157157
158158
@classmethod

‎vulnerabilities/import_runner.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def get_or_create_vulnerability_and_aliases(
284284
aliases: QuerySet, vulnerability_id=None, summary=None, advisory=None
285285
):
286286
"""
287-
Get or create vulnerabilitiy and aliases such that all existing and new
287+
Get or create vulnerability and aliases such that all existing and new
288288
aliases point to the same vulnerability
289289
"""
290290
new_aliases, existing_vulns = get_vulns_for_aliases_and_get_new_aliases(aliases)

‎vulnerabilities/improve_runner.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def get_or_create_vulnerability_and_aliases(
194194
aliases: List[str], vulnerability_id=None, summary=None, advisory=None
195195
):
196196
"""
197-
Get or create vulnerabilitiy and aliases such that all existing and new
197+
Get or create vulnerability and aliases such that all existing and new
198198
aliases point to the same vulnerability
199199
"""
200200
aliases = set(alias.strip() for alias in aliases if alias and alias.strip())

0 commit comments

Comments
 (0)