Skip to content

Commit af4db55

Browse files
authored
remove trailing whitespace (#1284)
1 parent 9f78559 commit af4db55

104 files changed

Lines changed: 1029 additions & 1029 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Before submitting an issue, please ensure that you have read the documentation:
1818
**Describe the bug**
1919
A clear and concise description of what the bug is.
2020

21-
Note that a compiler warning is not a bug.
21+
Note that a compiler warning is not a bug.
2222

2323
**To Reproduce**
2424
Steps to reproduce the behaviour: provide a code sample if possible.
@@ -32,10 +32,10 @@ Note that a stack trace from your own program is not enough.
3232
- Compiler [e.g. Apple clang version 11.0.3 (clang-1103.0.32.59) x86_64-apple-darwin19.4.0]
3333
- Version [e.g. 22]
3434

35-
We support up-to-date 64-bit ARM and x64 FreeBSD, macOS, Windows and Linux systems. Please ensure that your configuration is supported before labelling the issue as a bug. In particular, we do not support legacy 32-bit systems.
35+
We support up-to-date 64-bit ARM and x64 FreeBSD, macOS, Windows and Linux systems. Please ensure that your configuration is supported before labelling the issue as a bug. In particular, we do not support legacy 32-bit systems.
3636

3737
**Indicate whether you are willing or able to provide a bug fix as a pull request**
3838

39-
If you plan to contribute to simdjson, please read our
39+
If you plan to contribute to simdjson, please read our
4040
* CONTRIBUTING guide: https://github.com/simdjson/simdjson/blob/master/CONTRIBUTING.md and our
4141
* HACKING guide: https://github.com/simdjson/simdjson/blob/master/HACKING.md

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ A clear and concise description of any alternative solutions or features you've
3232
Add any other context or screenshots about the feature request here.
3333

3434
** Are you willing to contribute code or documentation toward this new feature? **
35-
If you plan to contribute to simdjson, please read our
35+
If you plan to contribute to simdjson, please read our
3636
* CONTRIBUTING guide: https://github.com/simdjson/simdjson/blob/master/CONTRIBUTING.md and our
3737
* HACKING guide: https://github.com/simdjson/simdjson/blob/master/HACKING.md

.github/ISSUE_TEMPLATE/standard-issue-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ Is your issue:
2727
4. A documentation issue? Can you suggest an improvement?
2828

2929

30-
If you plan to contribute to simdjson, please read our
30+
If you plan to contribute to simdjson, please read our
3131
* CONTRIBUTING guide: https://github.com/simdjson/simdjson/blob/master/CONTRIBUTING.md and our
3232
* HACKING guide: https://github.com/simdjson/simdjson/blob/master/HACKING.md

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Table of Contents
4040
Quick Start
4141
-----------
4242

43-
43+
4444
The simdjson library is easily consumable with a single .h and .cpp file.
4545

4646
0. Prerequisites: `g++` (version 7 or better) or `clang++` (version 6 or better), and a 64-bit system with a command-line shell (e.g., Linux, macOS, freeBSD). We also support programming environnements like Visual Studio and Xcode, but different steps are needed.
@@ -168,7 +168,7 @@ instructions, reducing branch misprediction, and reducing data dependency to tak
168168
CPU's multiple execution cores.
169169
170170
Some people [enjoy reading our paper](https://arxiv.org/abs/1902.08318): A description of the design
171-
and implementation of simdjson is in our research article:
171+
and implementation of simdjson is in our research article:
172172
- Geoff Langdale, Daniel Lemire, [Parsing Gigabytes of JSON per Second](https://arxiv.org/abs/1902.08318), VLDB Journal 28 (6), 2019.
173173
174174
We have an in-depth paper focused on the UTF-8 validation:

benchmark/bench_dom_api.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ static void serialize_big_string_to_string(State& state) {
8787
std::vector<char> content;
8888
content.push_back('\"');
8989
for(size_t i = 0 ; i < 100000; i ++) {
90-
content.push_back('0' + char(i%10)); // we add what looks like a long list of digits
91-
}
90+
content.push_back('0' + char(i%10)); // we add what looks like a long list of digits
91+
}
9292
content.push_back('\"');
9393
dom::element doc;
9494
simdjson::error_code error;
@@ -139,7 +139,7 @@ static void serialize_twitter_to_string(State& state) {
139139
}
140140
// we validate the result
141141
{
142-
auto serial = simdjson::to_string(doc);
142+
auto serial = simdjson::to_string(doc);
143143
dom::element doc2; // we parse the stringify output
144144
if ((error = parser.parse(serial).get(doc2))) { throw std::runtime_error("serialization error"); }
145145
auto serial2 = simdjson::to_string(doc2); // we stringify again
@@ -211,7 +211,7 @@ static void numbers_scan(State& state) {
211211
}
212212
benchmark::DoNotOptimize(container.data());
213213
benchmark::ClobberMemory();
214-
}
214+
}
215215
}
216216
BENCHMARK(numbers_scan);
217217

@@ -236,7 +236,7 @@ static void numbers_size_scan(State& state) {
236236
if(pos != container.size()) { cerr << "bad count" << endl; }
237237
benchmark::DoNotOptimize(container.data());
238238
benchmark::ClobberMemory();
239-
}
239+
}
240240
}
241241
BENCHMARK(numbers_size_scan);
242242

@@ -315,7 +315,7 @@ static void numbers_load_scan(State& state) {
315315
}
316316
benchmark::DoNotOptimize(container.data());
317317
benchmark::ClobberMemory();
318-
}
318+
}
319319
}
320320
BENCHMARK(numbers_load_scan);
321321

@@ -341,7 +341,7 @@ static void numbers_load_size_scan(State& state) {
341341
if(pos != container.size()) { cerr << "bad count" << endl; }
342342
benchmark::DoNotOptimize(container.data());
343343
benchmark::ClobberMemory();
344-
}
344+
}
345345
}
346346
BENCHMARK(numbers_load_size_scan);
347347

@@ -360,7 +360,7 @@ static void numbers_exceptions_scan(State& state) {
360360
}
361361
benchmark::DoNotOptimize(container.data());
362362
benchmark::ClobberMemory();
363-
}
363+
}
364364
}
365365
BENCHMARK(numbers_exceptions_scan);
366366

@@ -378,7 +378,7 @@ static void numbers_exceptions_size_scan(State& state) {
378378
if(pos != container.size()) { cerr << "bad count" << endl; }
379379
benchmark::DoNotOptimize(container.data());
380380
benchmark::ClobberMemory();
381-
}
381+
}
382382
}
383383
BENCHMARK(numbers_exceptions_size_scan);
384384

@@ -437,7 +437,7 @@ static void numbers_exceptions_load_scan(State& state) {
437437
}
438438
benchmark::DoNotOptimize(container.data());
439439
benchmark::ClobberMemory();
440-
}
440+
}
441441
}
442442
BENCHMARK(numbers_exceptions_load_scan);
443443

@@ -456,7 +456,7 @@ static void numbers_exceptions_load_size_scan(State& state) {
456456
if(pos != container.size()) { cerr << "bad count" << endl; }
457457
benchmark::DoNotOptimize(container.data());
458458
benchmark::ClobberMemory();
459-
}
459+
}
460460
}
461461
BENCHMARK(numbers_exceptions_load_size_scan);
462462

@@ -711,7 +711,7 @@ static void iterator_twitter_image_sizes(State& state) {
711711
if (!iter.up()) { return; } // back to entities
712712
}
713713
if (!iter.up()) { return; } // back to status
714-
}
714+
}
715715
} while (iter.next()); // next status
716716
}
717717

benchmark/benchmarker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ struct progress_bar {
228228
/**
229229
* The speed at which we can allocate memory is strictly system specific.
230230
* It depends on the OS and the runtime library. It is subject to various
231-
* system-specific knobs. It is not something that we can reasonably
231+
* system-specific knobs. It is not something that we can reasonably
232232
* benchmark with crude timings.
233233
* If someone wants to optimize how simdjson allocate memory, then it will
234234
* almost surely require a distinct benchmarking tool. What is meant by

benchmark/checkperf.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if (SIMDJSON_IS_UNDER_GIT AND SIMDJSON_GIT AND Git_FOUND AND (GIT_VERSION_STRING
9595
else()
9696
if (CMAKE_GENERATOR MATCHES Ninja)
9797
message(STATUS "We disable the checkperf targets under Ninja.")
98-
else()
98+
else()
9999
message(STATUS "Either git is unavailable or else it is too old. We are disabling checkperf targets.")
100100
endif()
101101
endif ()

benchmark/distinctuserid/distinctuserid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void remove_duplicates(std::vector<int64_t> &v) {
2020

2121
namespace distinct_user_id {
2222
template<typename T> static void DistinctUserID(benchmark::State &state);
23-
} // namespace
23+
} // namespace
2424

2525
//
2626
// Implementation

benchmark/distinctuserid/ondemand.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ using namespace simdjson::builtin;
1212

1313
class OnDemand {
1414
public:
15-
OnDemand() {
15+
OnDemand() {
1616
if(!displayed_implementation) {
17-
std::cout << "On Demand implementation: " << builtin_implementation()->name() << std::endl;
17+
std::cout << "On Demand implementation: " << builtin_implementation()->name() << std::endl;
1818
displayed_implementation = true;
1919
}
20-
}
20+
}
2121
simdjson_really_inline bool Run(const padded_string &json);
2222
simdjson_really_inline const std::vector<int64_t> &Result() { return ids; }
2323
simdjson_really_inline size_t ItemCount() { return ids.size(); }
@@ -39,20 +39,20 @@ simdjson_really_inline bool OnDemand::Run(const padded_string &json) {
3939
//
4040
// You might think that you do not need the braces, but
4141
// you do, otherwise you will get the wrong answer. That is
42-
// because you can only have one active object or array
43-
// at a time.
42+
// because you can only have one active object or array
43+
// at a time.
4444
{
4545
ondemand::object user = tweet["user"];
46-
int64_t id = user["id"];
46+
int64_t id = user["id"];
4747
ids.push_back(id);
4848
}
49-
// Not all tweets have a "retweeted_status", but when they do
49+
// Not all tweets have a "retweeted_status", but when they do
5050
// we want to go and find the user within.
5151
auto retweet = tweet["retweeted_status"];
5252
if(!retweet.error()) {
5353
ondemand::object retweet_content = retweet;
5454
ondemand::object reuser = retweet_content["user"];
55-
int64_t rid = reuser["id"];
55+
int64_t rid = reuser["id"];
5656
ids.push_back(rid);
5757
}
5858
}

benchmark/get_corpus_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(int argc, char *argv[]) {
2929
<< std::endl;
3030
}
3131
simdjson::padded_string p;
32-
bench(filename, p);
32+
bench(filename, p);
3333
double meanval = 0;
3434
double maxval = 0;
3535
double minval = 10000;

0 commit comments

Comments
 (0)