Skip to content

Commit f996c6c

Browse files
committed
all: Fix typos highlighted by codespell
1 parent 4de9afe commit f996c6c

File tree

32 files changed

+45
-45
lines changed

32 files changed

+45
-45
lines changed

Doxyfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ HTML_STYLESHEET =
10631063
# defined cascading style sheet that is included after the standard style sheets
10641064
# created by doxygen. Using this option one can overrule certain style aspects.
10651065
# This is preferred over using HTML_STYLESHEET since it does not replace the
1066-
# standard style sheet and is therefor more robust against future updates.
1066+
# standard style sheet and is therefore more robust against future updates.
10671067
# Doxygen will copy the style sheet file to the output directory. For an example
10681068
# see the documentation.
10691069
# This tag requires that the tag GENERATE_HTML is set to YES.
@@ -1935,7 +1935,7 @@ PREDEFINED =
19351935
EXPAND_AS_DEFINED =
19361936

19371937
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
1938-
# remove all refrences to function-like macros that are alone on a line, have an
1938+
# remove all references to function-like macros that are alone on a line, have an
19391939
# all uppercase name, and do not end with a semicolon. Such function macros are
19401940
# typically used for boiler-plate code, and will confuse the parser if not
19411941
# removed.

NOTICE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Eclipse Cloe is a trademark of the Eclipse Foundation.
1313

1414
All content is the property of the respective authors or their employers.
1515
For more information regarding authorship of content, please consult the
16-
listed source code respository logs.
16+
listed source code repository logs.
1717

1818
## Declared Project Licenses
1919

cli/cloe_launch/exec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Environment:
6565
"PATH": "/bin:/usr/bin",
6666
}
6767
_preserve: List[str] = [
68-
# Requried for XDG compliance:
68+
# Required for XDG compliance:
6969
"XDG_.*",
7070
"HOME",
7171
"USER",

dist/docker/Dockerfile.ubuntu

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file acts partly as a Docker recipe for building Cloe on Ubuntu.
44
# It is currently only tested with Ubuntu 18.04 and 20.04.
55
#
6-
# If you are behing a proxy, make sure to pass in the respective HTTP_PROXY,
6+
# If you are behind a proxy, make sure to pass in the respective HTTP_PROXY,
77
# HTTPS_PROXY, and NO_PROXY variables.
88
ARG BUILD_FROM=ubuntu:18.04
99
ARG DEPLOY_FROM=${BUILD_FROM}
@@ -73,7 +73,7 @@ RUN \
7373
# Create Deploy Image
7474
#
7575
# Unfortunately, there are still some issues with cloe-engine not finding
76-
# libcloe-runtime.so, so we need to explicitely set LD_LIBRARY_PATH.
76+
# libcloe-runtime.so, so we need to explicitly set LD_LIBRARY_PATH.
7777
#
7878
# This image can now be used to work with stack files. You should mount in
7979
# whatever directory contains your stack files for best results, otherwise

fable/include/fable/conf.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Conf {
8787
* a) stdin
8888
* b) command line
8989
* c) network
90-
* - This method hould not throw.
90+
* - This method should not throw.
9191
*/
9292
bool is_from_file() const { return !file_.empty(); }
9393

fable/include/fable/confable.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class Confable {
122122
/**
123123
* Serialize a Confable to Json.
124124
*
125-
* Note: If you implment this type, make sure to either use CONFABLE_FRIENDS
125+
* Note: If you implement this type, make sure to either use CONFABLE_FRIENDS
126126
* or a using Confable::to_json statement in your derived type.
127127
*/
128128
virtual void to_json(Json& j) const { schema().to_json(j); }

fable/include/fable/schema.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
* 3. Using types in schema namespace:
100100
*
101101
* Schema MyData::schema_impl() {
102-
* using namepsace schema;
102+
* using namespace schema;
103103
* return Struct{
104104
* {"host", String(&host, "hostname of connection").require()},
105105
* {"port", Number<uint16_t>(&port, "port of connection").minimum(1024)},

fable/include/fable/schema/ignore.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace schema {
4141
* deserialize it. This is much better than telling Struct to allow all
4242
* additional properties.
4343
*
44-
* Specifying the type is optional and serves only for documention purposes.
44+
* Specifying the type is optional and serves only for documentation purposes.
4545
*/
4646
class Ignore : public Base<Ignore> {
4747
public: // Constructors

fable/include/fable/schema/interface.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Interface {
154154
*
155155
* When describing the schema of a primitive array, we can represent that as
156156
* a single string. But when the array contains an object, we wrap a single
157-
* object in an array. This isn't awefully consistent, but it's the best we
157+
* object in an array. This isn't awfully consistent, but it's the best we
158158
* can do.
159159
*/
160160
virtual Json usage() const = 0;

plugins/basic/src/basic.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,14 @@ struct AdaptiveCruiseControl {
222222
deviation_last = deviation;
223223
return (ukp + ukd + uki);
224224
};
225-
// Implementation of the PID controll to control the speed
225+
// Implementation of the PID control to control the speed
226226
double acc = pid_control(deviation, config.kp, config.kd, config.ki, deviation_last, uki_last);
227227
if (rabbit) {
228228
double target_distance = get_distance_algorithm().second(ego);
229229
double deviation_m = utility::distance_forward(*rabbit) - target_distance;
230230
double rabbit_m_s = vel + rabbit->velocity.sum(); // absolute rabbit velocity
231231
if (deviation_m < (fac_to_switch_control * target_distance) && rabbit_m_s < *target_speed) {
232-
// Implementation of the PID controll to control the distance
232+
// Implementation of the PID control to control the distance
233233
acc = pid_control(deviation_m, config.kp_m, config.kd_m, config.ki_m, deviation_m_last,
234234
uki_m_last);
235235
}

plugins/basic/src/hmi_contact.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace utility {
9090
* This phenomenon is modelled with this superclass, of which
9191
* Switch and PushButton are the primary subtypes.
9292
*
93-
* The function of switches occassionally changes based on the passage of time.
93+
* The function of switches occasionally changes based on the passage of time.
9494
* What unit is used for time and what effect that has is parameterized via
9595
* templating.
9696
*/

plugins/gndtruth_extractor/src/bimap.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class BimapBase1 {
5454
/// Remarks:
5555
/// The methods defined by this class are not possible for a pair of identical template-arguments
5656
/// Therefore
57-
/// - a partial template specialization of this class exsits
57+
/// - a partial template specialization of this class exists
5858
/// - are BimapBase1 & BimapBase2 split into two classes
5959
template <typename Type1, typename Type2, typename CRTP>
6060
class BimapBase2 : public BimapBase1<Type1, Type2, CRTP> {

plugins/vtd/contrib/setups/Cloe.Default/Config/SimServer/simServer.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ScenarioEditor:Config/SensorManager:Config/DynamicsManager" />
5050
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ModuleManager:Config/Players:Plugins/SensorManager:Plugins/DynamicsManager:Plugins/ModuleManager" />
5151

52-
<!-- import Common/Config/Simulation/projectSettings.cfg in orignal plan, create IGLINKs, to see if could be deleted-->
52+
<!-- import Common/Config/Simulation/projectSettings.cfg in original plan, create IGLINKs, to see if could be deleted-->
5353

5454
<!-- internal COM ports -->
5555

plugins/vtd/contrib/setups/Cloe.VirtualGL/Config/SimServer/simServer.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ScenarioEditor:Config/SensorManager:Config/DynamicsManager" />
5050
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ModuleManager:Config/Players:Plugins/SensorManager:Plugins/DynamicsManager:Plugins/ModuleManager" />
5151

52-
<!-- import Common/Config/Simulation/projectSettings.cfg in orignal plan, create IGLINKs, to see if could be deleted-->
52+
<!-- import Common/Config/Simulation/projectSettings.cfg in original plan, create IGLINKs, to see if could be deleted-->
5353

5454
<!-- internal COM ports -->
5555

plugins/vtd/contrib/setups/Cloe.noGUI/Config/SimServer/simServer.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ScenarioEditor:Config/SensorManager:Config/DynamicsManager" />
5050
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ModuleManager:Config/Players:Plugins/SensorManager:Plugins/DynamicsManager:Plugins/ModuleManager" />
5151

52-
<!-- import Common/Config/Simulation/projectSettings.cfg in orignal plan, create IGLINKs, to see if could be deleted-->
52+
<!-- import Common/Config/Simulation/projectSettings.cfg in original plan, create IGLINKs, to see if could be deleted-->
5353

5454
<!-- internal COM ports -->
5555

plugins/vtd/contrib/setups/Cloe.noGUInoIG/Config/SimServer/simServer.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ScenarioEditor:Config/SensorManager:Config/DynamicsManager" />
4848
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ModuleManager:Config/Players:Plugins/SensorManager:Plugins/DynamicsManager:Plugins/ModuleManager" />
4949

50-
<!-- import Common/Config/Simulation/projectSettings.cfg in orignal plan, create IGLINKs, to see if could be deleted-->
50+
<!-- import Common/Config/Simulation/projectSettings.cfg in original plan, create IGLINKs, to see if could be deleted-->
5151

5252
<!-- internal COM ports -->
5353

plugins/vtd/contrib/setups/Cloe.noIG/Config/SimServer/simServer.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ScenarioEditor:Config/SensorManager:Config/DynamicsManager" />
5050
<EnvVar name="VI_FILE_SUB_PATH" val="$VI_FILE_SUB_PATH:Config/ModuleManager:Config/Players:Plugins/SensorManager:Plugins/DynamicsManager:Plugins/ModuleManager" />
5151

52-
<!-- import Common/Config/Simulation/projectSettings.cfg in orignal plan, create IGLINKs, to see if could be deleted-->
52+
<!-- import Common/Config/Simulation/projectSettings.cfg in original plan, create IGLINKs, to see if could be deleted-->
5353

5454
<!-- internal COM ports -->
5555

plugins/vtd/src/rdb_transceiver_shm.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class RdbTransceiverShm : public RdbTransceiver {
5959
virtual ~RdbTransceiverShm();
6060

6161
bool has() const override {
62-
throw std::runtime_error("RdbTransceiverShm: has not implmented yet");
62+
throw std::runtime_error("RdbTransceiverShm: has not implemented yet");
6363
}
6464

6565
std::vector<std::shared_ptr<RDB_MSG_t>> receive() override;

runtime/include/cloe/core/logger.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void set_factory(std::function<Logger(std::string)> factory);
178178
/**
179179
* Set the acceptable level of output for all loggers.
180180
*
181-
* This can be overriden on a per-logger basis. For example:
181+
* This can be overridden on a per-logger basis. For example:
182182
* ```
183183
* logger:set_level(spdlog::level::error);
184184
* logger::get("cloe/webserver")->set_level(spdlog::level::info);

runtime/include/cloe/model.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Model : public Entity {
190190
* Construct a model.
191191
*
192192
* Construction must specify a name and optionally a description.
193-
* The name must adhere to the regulations layed down in the Entity class.
193+
* The name must adhere to the regulations laid down in the Entity class.
194194
*
195195
* A model should be considered disconnected after construction, that is
196196
* `is_connected()` should return false.

runtime/include/cloe/plugin.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
/*
5353
* When creating a plugin, only the symbols that are loaded should be made
54-
* visibile. This can be achieved by setting compile options:
54+
* visible. This can be achieved by setting compile options:
5555
*
5656
* -fvisibility=hidden -fvisibility-inlines-hidden
5757
*

runtime/include/cloe/simulator.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class Simulator : public Model {
154154
* Return a pointer to a Vehicle.
155155
*
156156
* - The argument i should be between [0, n), where n = num_vehicles().
157-
* - If a vehicle index is accesed that is out-of-bounds, behaviour is
157+
* - If a vehicle index is accessed that is out-of-bounds, behaviour is
158158
* undefined.
159159
* - The simulator binding must manage the memory of the Vehicle.
160160
* - The pointer to the vehicle is guaranteed to be valid for the duration of

runtime/include/cloe/trigger.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ struct TriggerSchema {
294294
*
295295
* The default schema is an implicit one; that is, the factory takes no
296296
* configuration but can be called with the name only. An inline format
297-
* is therefore also implicitely supported.
297+
* is therefore also implicitly supported.
298298
*/
299299
template <typename T>
300300
class TriggerFactory : public Entity {
@@ -607,8 +607,8 @@ class AliasCallback : public Callback {
607607
* any further state is represented. This allows a new identical Action to be
608608
* created.
609609
*
610-
* The execution is achived through the function operator of the Action.
611-
* Any futher state required within the Action must be passed through
610+
* The execution is achieved through the function operator of the Action.
611+
* Any further state required within the Action must be passed through
612612
* the constructor of the Action.
613613
*
614614
* \see cloe/trigger/example_actions.hpp
@@ -631,7 +631,7 @@ class Action : public Entity {
631631
virtual void operator()(const Sync&, TriggerRegistrar&) = 0;
632632

633633
/**
634-
* Return whether this action is a signficant action.
634+
* Return whether this action is a significant action.
635635
*
636636
* All actions that have an effect on the result of a simulation are
637637
* significant. Actions that are not significant are:

runtime/include/cloe/utility/output_serializer.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ bool BasicFileOutputStream::open_file(const std::string& filename,
142142
}
143143

144144
ofs_.open(output_file);
145-
bool succes = !ofs_.fail();
146-
if (succes) {
145+
bool success = !ofs_.fail();
146+
if (success) {
147147
logger_->info("Writing output to file: {}", output_file);
148148
} else {
149149
logger_->error("Error opening file for writing: {}", output_file);
150150
}
151-
return succes;
151+
return success;
152152
}
153153

154154
void BasicFileOutputStream::close_stream() {

runtime/src/cloe/trigger/example_actions.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ ActionPtr PushReleaseFactory::make(const Conf& c) const {
215215
throw TriggerInvalid(c, "refuse to create action push_release with no buttons");
216216
}
217217

218-
auto creat = [&](bool val) -> ActionPtr {
218+
auto create = [&](bool val) -> ActionPtr {
219219
auto j = Json{
220220
{"name", action},
221221
};
@@ -231,7 +231,7 @@ ActionPtr PushReleaseFactory::make(const Conf& c) const {
231231
{"buttons", buttons},
232232
};
233233

234-
return std::make_unique<PushRelease>(name(), dur, creat(true), creat(false), repr);
234+
return std::make_unique<PushRelease>(name(), dur, create(true), create(false), repr);
235235
}
236236

237237
} // namespace actions

tests/test_engine_replica_smoketest.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ cloe_engine_with_tmp_registry() {
4242
test -d $cloe_tmp_registry/smoketest
4343
mv "$cloe_tmp_registry/smoketest" "$cloe_tmp_registry/replica-1"
4444

45-
# Run the replica smoketest, writing to the same location as the inital
45+
# Run the replica smoketest, writing to the same location as the initial
4646
# one.
4747
#
4848
# We have to include the config file from stdin so that the paths

tools/conan-server/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ USER := $(shell id -un)
1414
.PHONY: help update add-group
1515
help:
1616
@echo "Usage: make <target>"
17-
@echo "Availabale targets:"
17+
@echo "Available targets:"
1818
@echo " update update permissions of files"
1919
@echo " add-group add ${VOLUME_GROUP} for handling data"
2020

tools/conan-server/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This directory contains a Dockerized Conan server which can be used for testing
55
and development of the Cloe Conan packages.
66

77
It is possible to take this and use it as a Conan repository for production
8-
purposes, but it is explicitely discouraged by the Conan documentation.
8+
purposes, but it is explicitly discouraged by the Conan documentation.
99
Instead, you should use Artifactory for this purpose.
1010

1111
Usage
@@ -40,7 +40,7 @@ Now you can upload all the packages you want with:
4040
...
4141

4242
Because this can be an arduous task if you want to upload many packages,
43-
I recommand something along the lines of the following procedure:
43+
I recommend something along the lines of the following procedure:
4444

4545
conan search --raw > packages.txt
4646
$EDITOR packages.txt

ui/src/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class App extends Component {
226226
// Startup Phase 1: Render a message that UI is waiting for a Cloe host.
227227
// Startup Phase 2: Render an indicator for the Cloe initialization progress.
228228
// Startup Phase 3: Cloe is fully initialized, so render all UI components.
229-
// Startup Phase 4: Cloe ist stopped, but last simulation state should still be rendered.
229+
// Startup Phase 4: Cloe is stopped, but last simulation state should still be rendered.
230230
const waitingForCloeHost = <Spin className="mr-2" tip="Waiting for Cloe Host..." />;
231231
const waitingForCloeInit = (
232232
<React.Fragment>
@@ -460,7 +460,7 @@ class App extends Component {
460460
}
461461
};
462462

463-
// This method is used to fetch and return data from an spedified host and endpoint.
463+
// This method is used to fetch and return data from a specified host and endpoint.
464464
getData = (host, endpoint) => {
465465
return axios.get(`http://${host}${this.apiPrefix}${endpoint}`).catch(function(error) {
466466
if (error.response) {

ui/src/components/chart.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Scatter } from "react-chartjs-2";
1818
import "chartjs-plugin-zoom";
1919

2020
// The Chart component creates a chart out of data.
21-
// Everytime the props 'nextXValue' and 'nextYValues' are changing,
21+
// Every time the props 'nextXValue' and 'nextYValues' are changing,
2222
// the component adds them to it"s data set and renders the new state.
2323
class Chart extends Component {
2424
constructor(props) {

ui/src/components/controller.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class Controller extends Component {
5252
return <React.Fragment />;
5353
}
5454
} else {
55-
// Fetch all definied api endpoints to update the
56-
// data, generate the elements out of it.
55+
// Fetch all defined API endpoints to update the data, generate the
56+
// elements out of it.
5757
this.updateData();
5858
this.generateJSXComponent();
5959
return (

ui/src/components/simulation.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Slider from "react-rangeslider";
2121

2222
// The Simulation component displays general Information about the simulation.
2323
// Each Information is represented by a Label component.
24-
// Aside from that, the Simulation commponent includes triggers to set the simulation speed.
24+
// Aside from that, the Simulation component includes triggers to set the simulation speed.
2525
class Simulation extends Component {
2626
state = {
2727
simSpeed: 100,
@@ -32,7 +32,7 @@ class Simulation extends Component {
3232
// Initial simSpeed has to be fetched from api by parent component,
3333
// so it is not available at mounting time.
3434
// Because of that, this function loops until the necessary prop
35-
// is definied by the parent component.
35+
// is defined by the parent component.
3636
if (!this.props.simulation) {
3737
window.setTimeout(this.setInitialSimSpeed, 100);
3838
} else {

0 commit comments

Comments
 (0)