Skip to content

Commit b1ace63

Browse files
committed
codespell: spelling corrections
1 parent 9bf4fd2 commit b1ace63

File tree

194 files changed

+883
-883
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+883
-883
lines changed

Address.cpp

+35-35
Original file line numberDiff line numberDiff line change
@@ -2348,7 +2348,7 @@ bool Addresses::updateAddresses ( ) {
23482348
// scan m_siteTitleBuf for either p1 or p2
23492349
char *d = m_siteTitleBuf;
23502350
char *dend = m_siteTitleBuf + m_siteTitleBufSize;
2351-
// loop over the \0 delimeted list of titles
2351+
// loop over the \0 delimited list of titles
23522352
for ( ; d < dend ; d += gbstrlen(d) + 1 ) {
23532353
// skip "the"
23542354
if ( strncasecmp(d,"the ",4) == 0 ) d += 4;
@@ -2898,7 +2898,7 @@ bool Addresses::updateAddresses ( ) {
28982898
// here to 888 or 999 or whatever
28992899
// . but we need this in case there is ambiguity as to
29002900
// which lat/lon pair is the real deal when there are
2901-
// mutiple ones in the same vicinity...
2901+
// multiple ones in the same vicinity...
29022902
// . so we have to nuke the address somehow if its lat/lon
29032903
// only
29042904
if ( *ptr != dval && fabs(*ptr - dval) > .010 ) {
@@ -4570,7 +4570,7 @@ bool Addresses::set2 ( ) {
45704570
//if ( wids[i] == h_at ) { atPreceeds = true; continue; }
45714571
// count the number of numbers
45724572
int32_t nums = 0;
4573-
// are we delimeted on the left end?
4573+
// are we delimited on the left end?
45744574
//bool leftEnd = false;
45754575
// keep an accumulative hash of all the wids in the phrase
45764576
bool firstWasDir = false; // 1st word is a direction?
@@ -4609,10 +4609,10 @@ bool Addresses::set2 ( ) {
46094609
//if ( i-1 >= 0 && tids[i-1] ) leftEnd = true;
46104610
//if ( i-2 >= 0 && tids[i-2] ) leftEnd = true;
46114611
// if we are cap'd and word before us is not let that be a
4612-
// delimeter as well
4612+
// delimiter as well
46134613
//if (i-2>= 0 && isCap && wids[i-2] &&!ww->isCapitalized(i-2))
46144614
// leftEnd = true;
4615-
// need a delimeter on the left
4615+
// need a delimiter on the left
46164616
//if ( ! leftEnd ) { atPreceeds = false; continue; }
46174617
// save it
46184618
int32_t ns_stack = m_sm.getNumPtrs();//m_ns;
@@ -4645,7 +4645,7 @@ bool Addresses::set2 ( ) {
46454645
// skip if non-breaking tag
46464646
if ( ! isBreakingTagId(tids[j]) )
46474647
continue;
4648-
// . allow br tags since microsofot front page
4648+
// . allow br tags since microsoft front page
46494649
// . no! this is causing the zip code from
46504650
// a previous address to be used as the
46514651
// street address for the name of a business
@@ -5569,7 +5569,7 @@ bool Addresses::set2 ( ) {
55695569
// assume not an indicator tag
55705570
inCityIndicator = false;
55715571
inStateIndicator = false;
5572-
// mus tbe xml
5572+
// must be xml
55735573
if ( m_tids[i] != TAG_XMLTAG ) continue;
55745574
// it can inidcate things
55755575
char *tagName = m_wptrs[i]+1;
@@ -5743,7 +5743,7 @@ bool Addresses::set2 ( ) {
57435743

57445744
//
57455745
// make a list of occupation names for avoid false positive
5746-
// identifcation of a place because it is after the word "at" but
5746+
// identification of a place because it is after the word "at" but
57475747
// really it is something like "john, an engineer at HP, ..." referring
57485748
// to where that person works. fixes
57495749
// www.aliconferences.com/conf/social_media_govt1209/pre.htm which has
@@ -5928,7 +5928,7 @@ bool Addresses::set2 ( ) {
59285928
"integrator",
59295929
"machinist",
59305930
"monkey", // grease monkey code monkey
5931-
"liason",
5931+
"liaison",
59325932
"fabricator",
59335933
"wholesaler",
59345934
"baker",
@@ -6264,7 +6264,7 @@ bool Addresses::set2 ( ) {
62646264
lastWasBreak = 1;
62656265
continue;
62666266
}
6267-
// does it have some kind of delimeter before it?
6267+
// does it have some kind of delimiter before it?
62686268
else if ( is_lower_utf8(wptrs[i])){lastWasBreak = 0; continue;}
62696269
// each candidate needs somekind of "break" before them
62706270
if ( ! lastWasBreak ) continue;
@@ -6742,7 +6742,7 @@ bool Addresses::set2 ( ) {
67426742
// topologically speaking. we need to telescope it out and
67436743
// tether it to the first street we hit. including afterats and
67446744
// fake street names? it might be tethered to a place venue name
6745-
// that we never recognize. and intead we tether it to a brother
6745+
// that we never recognize. and instead we tether it to a brother
67466746
// brother city/state when we shouldn't.
67476747
//Place *latlon [MAX_LATLONS];
67486748
//Place *pctry [10]; int32_t ny = 0;
@@ -6795,7 +6795,7 @@ bool Addresses::set2 ( ) {
67956795
// . "bn" = baseNum
67966796
// . TODO: make sure state we select is not in a street!
67976797
int32_t bn = 0;
6798-
// alway have a NULL
6798+
// always have a NULL
67996799
padm1 [ bn++ ] = NULL;
68006800
// then
68016801
for ( int32_t i = 0 ; i < m_npSaved ; i++ ) {
@@ -6806,7 +6806,7 @@ bool Addresses::set2 ( ) {
68066806
// . allow state to come from anywhere in the document
68076807
// . TODO: later add meta description to get christinesaari.com
68086808
if ( p->m_type != PT_STATE ) continue;
6809-
// skip if interesects a street, like "ohio street"
6809+
// skip if intersects a street, like "ohio street"
68106810
if ( p->m_a >= 0 && bits && (bits[p->m_a] & D_IS_IN_STREET) )
68116811
continue;
68126812
// make the key for deduping
@@ -6956,7 +6956,7 @@ bool Addresses::set2 ( ) {
69566956
//pp->m_crid = 0;
69576957
pp->m_bits = 0;
69586958
pp->m_flags2 = 0;
6959-
// thats a suite
6959+
// that's a suite
69606960
psuite[nu++] = pp;
69616961
// now just use this
69626962
setHashes(pp,m_words,m_niceness);
@@ -7084,7 +7084,7 @@ bool Addresses::set2 ( ) {
70847084
//pp->m_crid = 0;
70857085
pp->m_bits = 0;
70867086
pp->m_flags2 = 0;
7087-
// thats a suite
7087+
// that's a suite
70887088
psuite[nu++] = pp;
70897089
// now just use this
70907090
setHashes(pp,m_words,m_niceness);
@@ -7298,7 +7298,7 @@ bool Addresses::set2 ( ) {
72987298
// that we have no place name!
72997299
// . fixes http://obits.abqjournal.com/obits/2004/04/13
73007300
if ( i >= 0 && i < nw && bits && ( bits[i] & D_IS_IN_DATE ) &&
7301-
// incase place name ends in midnight or noon
7301+
// in case place name ends in midnight or noon
73027302
wids[i] != h_daily &&
73037303
wids[i] != h_noon &&
73047304
wids[i] != h_midnight )
@@ -7522,7 +7522,7 @@ bool Addresses::set2 ( ) {
75227522
if ( isLower && //_lower_utf8(wptrs[i]) &&
75237523
// must not be an allowable lowercase word
75247524
! s_lc.isInTable(&wids[i])
7525-
// for smoe reason 's' is not a query
7525+
// for some reason 's' is not a query
75267526
// stop word, and we had a bar named
75277527
// "Slim's" that we needed to get
75287528
// ... this is in s_lc table now
@@ -7711,7 +7711,7 @@ bool Addresses::set2 ( ) {
77117711
if ( ampCount > 0 ) break;
77127712
continue;
77137713
}
7714-
// . this is a good delimeter for place names
7714+
// . this is a good delimiter for place names
77157715
// usually, but of course if someone has
77167716
// "Gigablast, \nInc." then this will hurt!
77177717
// . i was only allow inc. or llc. to follow
@@ -8057,7 +8057,7 @@ bool Addresses::set2 ( ) {
80578057
// "map" or "reviews" which may be in lower case
80588058
if ( (street->m_bits & PLF_HAS_UPPER) && hadLower ) {
80598059
//lasti = -1;
8060-
// EXPERIEMENT:
8060+
// EXPERIMENT:
80618061
// skip back to a tag like we do for
80628062
// "Write a Review" skipping logic below
80638063
//i = lasti - 1;
@@ -8070,7 +8070,7 @@ bool Addresses::set2 ( ) {
80708070
// . add the place name if we found something
80718071
// . if we broke out of the loop because of the alnumCount then
80728072
// that is NOT good because we want something that has a
8073-
// delimeter on the left!
8073+
// delimiter on the left!
80748074
if ( lasti >= 0 && lasti<=righti && alphaCount > 0 &&
80758075
// this is restricted above!
80768076
//alnumCount <10 &&
@@ -8159,7 +8159,7 @@ bool Addresses::set2 ( ) {
81598159
isCityState3 (prev1->m_hash,prev2->m_hash)==1) {
81608160
// wipe out previous name
81618161
nn = savednn;
8162-
// wipe out prevous place
8162+
// wipe out previous place
81638163
//m_np = savednp;
81648164
m_pm.setNumPtrs ( savednp );
81658165
// reset this too!
@@ -8209,7 +8209,7 @@ bool Addresses::set2 ( ) {
82098209
// xor it in
82108210
h ^= *hw; // wids[k];
82118211
}
8212-
// only consumate it if not the single word "the"
8212+
// only consummate it if not the single word "the"
82138213
if ( h ) {
82148214
// set it
82158215
pp->m_hash = h;
@@ -10270,7 +10270,7 @@ void Addresses::print ( SafeBuf *pbuf , int64_t uh64 ) {
1027010270
}
1027110271

1027210272
// . looks up each word/phrase in our table of known places
10273-
// . table incudes cities, countries, states (adm1), counties, zipcodes
10273+
// . table includes cities, countries, states (adm1), counties, zipcodes
1027410274
/*
1027510275
int32_t Addresses::addProperPlaces ( int32_t a ,
1027610276
int32_t b ,
@@ -10808,7 +10808,7 @@ bool Addresses::addAddress ( Place *name1 ,
1080810808
// unless in parens!
1080910809
if ( c ) continue;
1081010810
// crap... Msg13.cpp when it sets the dates does not
10811-
// filter out html entites for speed, so watch
10811+
// filter out html entities for speed, so watch
1081210812
// out for crap after an ampersand or &#. this
1081310813
// was causing some americantowns.com urls to
1081410814
// not get their address inlined!
@@ -10987,7 +10987,7 @@ bool Addresses::addAddress ( Place *name1 ,
1098710987
// and then if all else is equal, having a zip is better than just
1098810988
// a city because it is more specific
1098910989
if ( zip ) score += 1000;
10990-
// having a valid adm1 is good (might not have one explicity if city
10990+
// having a valid adm1 is good (might not have one explicitly if city
1099110991
// is unique to a particular state)
1099210992
if ( adm1 ) score += 100;
1099310993
// prefer city over no city
@@ -12370,7 +12370,7 @@ int32_t Address::serialize ( char *buf , int32_t bufSize , char *origUrl ,
1237012370
// sanity check. these should be filtered out
1237112371
//if ( m_score <= 0.0 ) { char *xx=NULL;*xx=0; }
1237212372

12373-
// also truncate at semicolon in urls since that is our delimeter
12373+
// also truncate at semicolon in urls since that is our delimiter
1237412374
char *o = origUrl;
1237512375
for ( ; o && *o && *o !=';' ; o++ );
1237612376
// truncate this if we should
@@ -12386,7 +12386,7 @@ int32_t Address::serialize ( char *buf , int32_t bufSize , char *origUrl ,
1238612386
// how much buffer space do we need?
1238712387
int32_t need = getStoredSize( olen + extra , includeHash );
1238812388

12389-
// silenty ignore overflow errors
12389+
// silently ignore overflow errors
1239012390
if ( need > bufSize ) return -1;
1239112391

1239212392
PlaceDesc *pd = NULL;
@@ -12932,7 +12932,7 @@ void Address::printEssentials ( SafeBuf *pbuf , bool forEvents ,
1293212932
uh64);
1293312933
//char *p = pbuf->getBuf();
1293412934
//
12935-
// map utf8 characters into &#xxxx entites because
12935+
// map utf8 characters into &#xxxx entities because
1293612936
// the senddiv() function maps all utuf8 chars to
1293712937
// crap like "%u2019" for the apostrophe for instance
1293812938
//
@@ -13785,7 +13785,7 @@ bool initPlaceDescTable ( ) {
1378513785
//loadedIndicators = true;
1378613786

1378713787
// keep these separate so we do not have to recompute any time we
13788-
// add or substract to/from this list
13788+
// add or subtract to/from this list
1378913789
addIndicator ( "airport" , IND_NAME , 1.0 );
1379013790
addIndicator ( "airstrip" , IND_NAME , 1.0 );
1379113791
addIndicator ( "area" , IND_NAME , 1.0 );
@@ -14682,7 +14682,7 @@ pd=(PlaceDesc *)g_cities.getValueFromSlot(pd->getSlot());
1468214682
// . go through the places in allCountries.txt
1468314683
// . format described in /gb/geo/geonames/readme.txt
1468414684
char buf[10000];
14685-
// for debuging
14685+
// for debugging
1468614686
char *dbuf = buf;
1468714687

1468814688
//char topBuf[1000000];
@@ -14753,7 +14753,7 @@ pd=(PlaceDesc *)g_cities.getValueFromSlot(pd->getSlot());
1475314753
//if ( strncmp(buf,"3856157\t", 8) ==0 )
1475414754
// log("gotit");
1475514755

14756-
// parse out the tab delimeted things from the line
14756+
// parse out the tab delimited things from the line
1475714757
for ( ; *p ; p++ ) {
1475814758
// skip if no tab
1475914759
if ( *p != '\t' ) continue;
@@ -15255,7 +15255,7 @@ pd=(PlaceDesc *)g_cities.getValueFromSlot(pd->getSlot());
1525515255
char *a1name = NULL;
1525615256
char *a2name = NULL;
1525715257
//char *zipEnd = NULL;
15258-
// parse out the tab delimeted things from the line
15258+
// parse out the tab delimited things from the line
1525915259
for ( ; *p ; p++ ) {
1526015260
// a temp var
1526115261
char *s = p;
@@ -15987,7 +15987,7 @@ key128_t Address::makePlacedbKey (int64_t docId,bool useName1,bool useName2){
1598715987
uint64_t cid64 = (uint64_t)getCityId32 ( cityHash , adm1Str );
1598815988
// incorporate that into "h"
1598915989
h = hash64 ( cid64 , h );
15990-
// store that in most signficant int64_t
15990+
// store that in most significant int64_t
1599115991
k.n1 = h;
1599215992

1599315993
// street hash
@@ -19713,7 +19713,7 @@ void PlaceMem::setNumPtrs ( int32_t newNumPtrs ) {
1971319713
break;
1971419714
}
1971519715
}
19716-
// this is wierd
19716+
// this is weird
1971719717
if ( m_cursorPoolNum < 0 ) { char *xx=NULL;*xx=0; }
1971819718
// reset final
1971919719
m_numPlacePtrs = newNumPtrs;
@@ -19781,7 +19781,7 @@ bool loadPlaces ( ) {
1978119781
g_nameTable.set ( 8 , // 64 bit key hash
1978219782
4 , // placedec ptr
1978319783
0 , // no initial slots
19784-
NULL , // no intiial buf
19784+
NULL , // no initial buf
1978519785
0 , // zero initial buf size
1978619786
true , // allow dups?
1978719787
0 , // niceness

Address.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class Place {
232232
char *m_siteTitleBuf;
233233
int32_t m_siteTitleBufSize;
234234

235-
// uesd by Events.cpp as a temporary storage
235+
// used by Events.cpp as a temporary storage
236236
int32_t m_eventDescOff;
237237

238238
// . what city is the place in
@@ -739,7 +739,7 @@ class Addresses {
739739
void (* m_callback) (void *state );
740740
uint8_t m_contentType;
741741

742-
// address verification table (set by msg2c intially)
742+
// address verification table (set by msg2c initially)
743743
//HashTableX m_avt;
744744
// table serialize into this buffer which we alloc
745745
char *m_buf;

Ads.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Ads::~Ads() {
6666
// *s=<start number>
6767
// *raw=<what format, should always be 11>
6868
// . Fromatted Response:
69-
// <reponse>
69+
// <response>
7070
// <hits>LONG LONG</hits>
7171
// <result>
7272
// <title><![CDATA[STRING]]></title>
@@ -125,7 +125,7 @@ Ads::~Ads() {
125125
// r=<num results>
126126
// filter=<adult filter on(yes)/off(no)>
127127
// *ip_address=<querying IP>
128-
// *st=<search type, our querys are "typein", can do "link">
128+
// *st=<search type, our queries are "typein", can do "link">
129129
// *rid=<full URL where search came from>
130130
// . Formatted Response:
131131
// <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

AutoBan.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ bool AutoBan::hasPerm(int32_t ip,
440440
if(m_detectVals[i].m_flags & DENY) {
441441
// do not inc if just checking, like for a gif file
442442
if ( justCheck ) return false;
443-
//banned by autoban, or explicity banned by matt.
443+
//banned by autoban, or explicitly banned by matt.
444444
int32_t explicitBan = m_detectVals[i].m_flags & FROMCONF;
445445
//log(LOG_WARN,"autoban: %"INT32" rejected.", ip);
446446
if(!explicitBan &&

AutoBan.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AutoBan {
7777
void cleanHouse();
7878
void setFromConf();
7979

80-
// . each client is now limited to a max oustanding requests
80+
// . each client is now limited to a max outstanding requests
8181
// . Proxy.cpp performs this limitation calculation
8282
bool incRequestCount ( int32_t h , int32_t bytesRead );
8383
void decRequestCount ( int32_t h , int32_t bytesSent );

BigFile.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static int64_t s_vfd = 0;
277277
// return open ( flags , pc , maxFileSize , permissions , false );
278278
// }
279279

280-
// . overide File::open so we can set m_numParts
280+
// . override File::open so we can set m_numParts
281281
// . set maxFileSize when opening a new file for writing and using
282282
// DiskPageCache
283283
// . use maxFileSize of -1 for us to use getFileSize() to set it
@@ -1133,7 +1133,7 @@ void *readwriteWrapper_r ( void *state , ThreadEntry *t ) {
11331133
// clear thread's errno
11341134
errno = 0;
11351135
// . make it so we go away immediately upon receiving a cancellation
1136-
// signal rather than queing the signal until we call
1136+
// signal rather than queueing the signal until we call
11371137
// pthread_testcancel()
11381138
// . this allows us to immediately hault disk reads/writes that are
11391139
// lower priority than i/o's we're about to do
@@ -1497,7 +1497,7 @@ static void doneUnlinkWrapper ( void *state , ThreadEntry *t ) ;
14971497

14981498
// . returns false if blocked, true otherwise
14991499
// . sets g_errno on error
1500-
// . ser "part" to -1 to remove or unlink all part files
1500+
// . set "part" to -1 to remove or unlink all part files
15011501
// . "newBaseFilenameDir" if NULL, defaults to m_dir, the current dir
15021502
// in which this file already exists
15031503
bool BigFile::unlinkRename ( // non-NULL for renames, NULL for unlinks

0 commit comments

Comments
 (0)