Skip to content

Commit cbf8584

Browse files
authored
chore: fix grammar and spelling (#104)
1 parent 1c883c2 commit cbf8584

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Contributing to Apache OpenWhisk
2323

24-
Anyone can contribute to the OpenWhisk project and we welcome your contributions.
24+
Anyone can contribute to the OpenWhisk project, and we welcome your contributions.
2525

2626
There are multiple ways to contribute: report bugs, improve the docs, and
2727
contribute code, but you must follow these prerequisites and guidelines:
@@ -50,7 +50,7 @@ Please raise any bug reports or enhancement requests on the respective project r
5050
list to see if your issue has already been raised.
5151

5252
A good bug report is one that make it easy for us to understand what you were trying to do and what went wrong.
53-
Provide as much context as possible so we can try to recreate the issue.
53+
Provide as much context as possible, so we can try to recreate the issue.
5454

5555
A good enhancement request comes with an explanation of what you are trying to do and how that enhancement would help you.
5656

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Create a json file called `python-data-init-params.json` which will contain the
180180
}
181181
}
182182
```
183-
Also create a json file `python-data-run-params.json` which will contain the parameters to the function used to trigger it. Notice here we're creating 2 separate file from the beginning since this is good practice to make the distinction between what needs to be send via the `init` API and what needs to be sent via the `run` API:
183+
Also create a json file `python-data-run-params.json` which will contain the parameters to the function used to trigger it. Notice here we're creating 2 separate file from the beginning since this is good practice to make the distinction between what needs to be sent via the `init` API and what needs to be sent via the `run` API:
184184
```json
185185
{
186186
"value": {
@@ -322,7 +322,7 @@ XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX
322322
XXX_THE_END_OF_A_WHISK_ACTIVATION_XXX
323323
```
324324

325-
#### At this point you can edit python-fib-run.json an try other `fib_n` values. All you have to do is save `python-fib-run.json` and trigger the function again. Notice that here we're just modifying the parameters of our function; therefore, there's no need to re-run/re-initialize our container that contains our Python runtime.
325+
#### At this point you can edit python-fib-run.json and try other `fib_n` values. All you have to do is save `python-fib-run.json` and trigger the function again. Notice that here we're just modifying the parameters of our function; therefore, there's no need to re-run/re-initialize our container that contains our Python runtime.
326326

327327
#### You can also automate most of this process through [docker actions](https://github.com/apache/openwhisk/tree/master/tools/actionProxy) by using `invoke.py`
328328

@@ -410,4 +410,4 @@ This action runtime enables developers to create AI Services with OpenWhisk. It
410410

411411
Follow these steps to import the project into your IntelliJ IDE.
412412
- Import project as gradle project.
413-
- Make sure working directory is root of the project/repo.
413+
- Make sure the working directory is root of the project/repo.

core/python3AiActionLoop/samples/smart-body-crop/common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class CocoPart(Enum):
8484

8585
NMS_Threshold = 0.1
8686
InterMinAbove_Threshold = 6
87-
Inter_Threashold = 0.1
87+
Inter_Threshold = 0.1
8888
Min_Subset_Cnt = 4
8989
Min_Subset_Score = 0.8
9090
Max_Human = 96
@@ -162,7 +162,7 @@ def estimate_pose(heatMat, pafMat):
162162
# if two humans share a part (same part idx and coordinates), merge those humans
163163
if set(c1['uPartIdx']) & set(c2['uPartIdx']) != empty_set:
164164
is_merged = True
165-
# extend human1 connectios with human2 connections
165+
# extend human1 connections with human2 connections
166166
conns_by_human[h1].extend(conns_by_human[h2])
167167
conns_by_human.pop(h2) # delete human2
168168
break
@@ -243,7 +243,7 @@ def get_score(x1, y1, x2, y2, pafMatX, pafMatY):
243243
pafYs[idx] = pafMatY[my][mx]
244244

245245
local_scores = pafXs * vx + pafYs * vy
246-
thidxs = local_scores > Inter_Threashold
246+
thidxs = local_scores > Inter_Threshold
247247

248248
return sum(local_scores * thidxs), sum(thidxs)
249249

gradle/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ Project level options that can be used on `distDocker`:
4141

4242
### Test
4343

44-
To run tests one uses the `test` task. OpenWhisk consolidates tests into a single `tests` project. Hence the command to run all tests is `gradle :tests:test`.
44+
To run tests one uses the `test` task. OpenWhisk consolidates tests into a single `tests` project. Hence, the command to run all tests is `gradle :tests:test`.
4545

4646
It is possible to run specific tests using [Gradle testfilters](https://docs.gradle.org/current/userguide/java_plugin.html#test_filtering). For example `gradle :tests:test --tests "your.package.name.TestClass.evenMethodName"`. Wildcard `*` may be used anywhere.
4747

4848
## Build your own `build.gradle`
4949
In Gradle, most of the tasks we use are default tasks provided by plugins in Gradle. The [`scala` Plugin](https://docs.gradle.org/current/userguide/scala_plugin.html) for example includes tasks, that are needed to build Scala projects. Moreover, Gradle is aware of *Applications*. The [`application` Plugin](https://docs.gradle.org/current/userguide/application_plugin.html) provides tasks that are required to distribute a self-contained application. When `application` and `scala` are used in conjunction, they hook into each other and provide the tasks needed to distribute a Scala application. `distTar` for example compiles the Scala code, creates a jar containing the compiled classes and resources and creates a Tarball including that jar and all of its dependencies (defined in the dependencies section of `build.gradle`). It also creates a start-script which correctly sets the classpath for all those dependencies and starts the app.
5050

51-
In OpenWhisk, we want to distribute our application via Docker images. Hence we wrote a "plugin" that creates the task `distDocker`. That task will build an image from the `Dockerfile` that is located next to the `build.gradle` it is called from, for example Controller's `Dockerfile` and `build.gradle` are both located at `core/controller`.
51+
In OpenWhisk, we want to distribute our application via Docker images. Hence, we wrote a "plugin" that creates the task `distDocker`. That task will build an image from the `Dockerfile` that is located next to the `build.gradle` it is called from, for example Controller's `Dockerfile` and `build.gradle` are both located at `core/controller`.
5252

5353
If you want to create a new `build.gradle` for your component, simply put the `Dockerfile` right next to it and include `docker.gradle` by using
5454

0 commit comments

Comments
 (0)