Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b68568

Browse files
authored
Add configuration for codespell and correct typos (#254)
1 parent f2b6a59 commit 0b68568

File tree

26 files changed

+55
-48
lines changed

26 files changed

+55
-48
lines changed

.codespell.ignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cLen
2+
IInterval
3+
IndexS
4+
ot

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
skip = ./test/gtest/gtest-1.14.0
3+
ignore-words = .codespell.ignore

ChangeLog

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
2018-04-26
8989
* Howard Butler <[email protected]> Merge pull request #114 from michael-herwig/master (10:58:17)
9090
* Michael Herwig <[email protected]> added summary to changelog (05:34:40)
91-
* Michael Herwig <[email protected]> Added silent tr1 depecreation flag vor msvc compiler >= 1900 (05:30:27)
91+
* Michael Herwig <[email protected]> Added silent tr1 depecreation flag for msvc compiler >= 1900 (05:30:27)
9292
* Michael Herwig <[email protected]> Added <cinttypes> include for proper compilation using msvc15 (05:23:48)
9393
* Michael Herwig <[email protected]> Added cmake option for conditional test integration (05:19:21)
9494

@@ -309,7 +309,7 @@
309309
2014-07-12
310310
* Howard Butler <[email protected]> add BUILD_WITH_INSTALL_RPATH target property for OSX (23:59:03)
311311
* Howard Butler <[email protected]> CMake config quoting #27 (23:50:05)
312-
* Howard Butler <[email protected]> FSF postal adress update #5 (23:38:24)
312+
* Howard Butler <[email protected]> FSF postal address update #5 (23:38:24)
313313
* Howard Butler <[email protected]> support wide character as possible tools::Variant type -- doesn't work yet though (23:32:19)
314314
* Howard Butler <[email protected]> add VT_PWCHAR to support wide character pointer for the Variant type (23:31:15)
315315
* Howard Butler <[email protected]> add MSVC 2013 and 2014 defns (23:27:45)
@@ -436,7 +436,7 @@
436436
* Howard Butler <[email protected]> Merge pull request #8 from booo/master (10:03:27)
437437

438438
2012-07-14
439-
* Marios Hadjieleftheriou <[email protected]> Reverted to using pthread mutex and exlusively lock all queries, since fine grain locking using spinlocks was too slow. (09:57:39)
439+
* Marios Hadjieleftheriou <[email protected]> Reverted to using pthread mutex and exclusively lock all queries, since fine grain locking using spinlocks was too slow. (09:57:39)
440440
* Marios Hadjieleftheriou <[email protected]> Reverted to using pthread mutex for all queries, since fine grain locking using spinlocks was too slow. (09:52:34)
441441

442442
2012-07-10
@@ -604,7 +604,7 @@
604604
2010-04-12
605605
* Howard Butler <[email protected]> update ChangeLog (14:56:52)
606606
* Marios Hadjieleftheriou <[email protected]> (12:17:47)
607-
* Marios Hadjieleftheriou <[email protected]> Fixed rtree/BulkLoader infinit loop bug (12:07:13)
607+
* Marios Hadjieleftheriou <[email protected]> Fixed rtree/BulkLoader infinite loop bug (12:07:13)
608608

609609
2010-03-31
610610
* Howard Butler <[email protected]> format and layout normalization (10:33:43)
@@ -647,7 +647,7 @@
647647
* Howard Butler <[email protected]> only #include <limits> where needed, and not in the global Tools.h file (14:08:16)
648648

649649
2009-10-30
650-
* Howard Butler <[email protected]> remove <cmath> <limits> and <climits> from Tools.h and include them seperately in each file that needs them (12:09:14)
650+
* Howard Butler <[email protected]> remove <cmath> <limits> and <climits> from Tools.h and include them separately in each file that needs them (12:09:14)
651651
* Howard Butler <[email protected]> define to denote we're C API (11:37:11)
652652
* Howard Butler <[email protected]> add a newline (10:03:47)
653653

docs/doxygen/doxygen.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ HTML_FILE_EXTENSION = .html
860860
# standard header. Note that when using a custom header you are responsible
861861
# for the proper inclusion of any scripts and style sheets that doxygen
862862
# needs, which is dependent on the configuration options used.
863-
# It is adviced to generate a default header using "doxygen -w html
863+
# It is advised to generate a default header using "doxygen -w html
864864
# header.html footer.html stylesheet.css YourConfigFile" and then modify
865865
# that header. Note that the header is subject to change so you typically
866866
# have to redo this when upgrading to a newer version of doxygen or when

src/capi/sidx_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# define LAST_ERROR_BUFFER_SIZE 1024
3838
/*
3939
* __thread is gcc specific extension for thread-local storage, that does not allow complex
40-
* constructor. We can't use any of std containers for storing mutliple error messages, but we
40+
* constructor. We can't use any of std containers for storing multiple error messages, but we
4141
* could at least get latest error message safely. The error count will be at most 1. The finer
4242
* solution would be to use thread-local storage from C++11, but since this library is compiled
4343
* with C++98 flag, this option is not available yet.

src/mvrtree/MVRTree.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ bool SpatialIndex::MVRTree::MVRTree::deleteData(const IShape& shape, id_type id)
304304

305305
void SpatialIndex::MVRTree::MVRTree::internalNodesQuery(const IShape& /* query */, IVisitor& /* v */)
306306
{
307-
throw Tools::IllegalStateException("internalNodesQuery: not impelmented yet.");
307+
throw Tools::IllegalStateException("internalNodesQuery: not implemented yet.");
308308
}
309309

310310
void SpatialIndex::MVRTree::MVRTree::containsWhatQuery(const IShape& query, IVisitor& v)
@@ -330,7 +330,7 @@ void SpatialIndex::MVRTree::MVRTree::pointLocationQuery(const Point& query, IVis
330330

331331
void SpatialIndex::MVRTree::MVRTree::nearestNeighborQuery(uint32_t, const IShape&, IVisitor&, INearestNeighborComparator&)
332332
{
333-
throw Tools::IllegalStateException("nearestNeighborQuery: not impelmented yet.");
333+
throw Tools::IllegalStateException("nearestNeighborQuery: not implemented yet.");
334334
}
335335

336336
void SpatialIndex::MVRTree::MVRTree::nearestNeighborQuery(uint32_t k, const IShape& query, IVisitor& v)
@@ -342,7 +342,7 @@ void SpatialIndex::MVRTree::MVRTree::nearestNeighborQuery(uint32_t k, const ISha
342342

343343
void SpatialIndex::MVRTree::MVRTree::selfJoinQuery(const IShape&, IVisitor&)
344344
{
345-
throw Tools::IllegalStateException("selfJoinQuery: not impelmented yet.");
345+
throw Tools::IllegalStateException("selfJoinQuery: not implemented yet.");
346346
}
347347

348348
void SpatialIndex::MVRTree::MVRTree::queryStrategy(IQueryStrategy& qs)

src/mvrtree/MVRTree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace SpatialIndex
4848
MVRTree(IStorageManager&, Tools::PropertySet&);
4949
// String Value Description
5050
// ----------------------------------------------
51-
// IndexIndentifier VT_LONG If specified an existing index will be openened from the supplied
51+
// IndexIndentifier VT_LONG If specified an existing index will be opened from the supplied
5252
// storage manager with the given index id. Behaviour is unspecified
5353
// if the index id or the storage manager are incorrect.
5454
// Dimension VT_ULONG Dimensionality of the data that will be inserted.
@@ -126,7 +126,7 @@ namespace SpatialIndex
126126
// for Points and Rectangles, Section 4.1]
127127

128128
double m_splitDistributionFactor;
129-
// The R*-Tree 'm' constant, for calculating spliting distributions.
129+
// The R*-Tree 'm' constant, for calculating splitting distributions.
130130
// [Beckmann, Kriegel, Schneider, Seeger 'The R*-tree: An efficient and Robust Access Method
131131
// for Points and Rectangles, Section 4.2]
132132

src/mvrtree/Node.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ void Node::rtreeSplit(
10991099
{
11001100
if (minimumLoad - group1.size() == cRemaining)
11011101
{
1102-
// all remaining entries must be assigned to group1 to comply with minimun load requirement.
1102+
// all remaining entries must be assigned to group1 to comply with minimum load requirement.
11031103
for (cChild = 0; cChild < cTotal; ++cChild)
11041104
{
11051105
if (mask[cChild] == 0)
@@ -1112,7 +1112,7 @@ void Node::rtreeSplit(
11121112
}
11131113
else if (minimumLoad - group2.size() == cRemaining)
11141114
{
1115-
// all remaining entries must be assigned to group2 to comply with minimun load requirement.
1115+
// all remaining entries must be assigned to group2 to comply with minimum load requirement.
11161116
for (cChild = 0; cChild < cTotal; ++cChild)
11171117
{
11181118
if (mask[cChild] == 0)

src/mvrtree/Statistics.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ std::ostream& SpatialIndex::MVRTree::operator<<(std::ostream& os, const Statisti
176176
<< "Number of live data: " << s.m_u64Data << std::endl
177177
<< "Total number of data: " << s.m_u64TotalData << std::endl
178178
<< "Number of nodes: " << s.m_u32Nodes << std::endl
179-
<< "Numer of dead index nodes: " << s.m_u32DeadIndexNodes << std::endl
180-
<< "Numer of dead leaf nodes: " << s.m_u32DeadLeafNodes << std::endl;
179+
<< "Number of dead index nodes: " << s.m_u32DeadIndexNodes << std::endl
180+
<< "Number of dead leaf nodes: " << s.m_u32DeadLeafNodes << std::endl;
181181

182182
for (size_t cTree = 0; cTree < s.m_treeHeight.size(); ++cTree)
183183
{

src/rtree/Node.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ bool Node::insertData(uint32_t dataLength, uint8_t* pData, Region& mbr, id_type
454454

455455
m_pTree->writeNode(this);
456456

457-
// Divertion from R*-Tree algorithm here. First adjust
457+
// Diversion from R*-Tree algorithm here. First adjust
458458
// the path to the root, then start reinserts, to avoid complicated handling
459459
// of changes to the same node from multiple insertions.
460460
id_type cParent = pathBuffer.top(); pathBuffer.pop();
@@ -640,7 +640,7 @@ void Node::rtreeSplit(uint32_t dataLength, uint8_t* pData, Region& mbr, id_type
640640
{
641641
if (minimumLoad - group1.size() == cRemaining)
642642
{
643-
// all remaining entries must be assigned to group1 to comply with minimun load requirement.
643+
// all remaining entries must be assigned to group1 to comply with minimum load requirement.
644644
for (u32Child = 0; u32Child < m_capacity + 1; ++u32Child)
645645
{
646646
if (mask[u32Child] == 0)
@@ -653,7 +653,7 @@ void Node::rtreeSplit(uint32_t dataLength, uint8_t* pData, Region& mbr, id_type
653653
}
654654
else if (minimumLoad - group2.size() == cRemaining)
655655
{
656-
// all remaining entries must be assigned to group2 to comply with minimun load requirement.
656+
// all remaining entries must be assigned to group2 to comply with minimum load requirement.
657657
for (u32Child = 0; u32Child < m_capacity + 1; ++u32Child)
658658
{
659659
if (mask[u32Child] == 0)

0 commit comments

Comments
 (0)