Skip to content

Commit dabf3c2

Browse files
committed
Fix file endings
Text files should end with a LF, but not additional empty lines. Signed-off-by: Stefan Weil <[email protected]>
1 parent 8139ad9 commit dabf3c2

Some content is hidden

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

49 files changed

+2
-75
lines changed

INSTALL

-1
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,3 @@ operates.
227227

228228
`configure' also accepts some other, not widely useful, options. Run
229229
`configure --help' for more details.
230-

android/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<!--
22
This file is needed by the android_native_library rule to determine the
33
project directory for ndk-build.
4-
-->
4+
-->

java/com/google/scrollview/ui/SVAbstractMenuItem.java

-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,3 @@ public void add(JMenu jli) { }
5555
*/
5656
public void performAction(SVWindow window, SVEventType eventType) {}
5757
}
58-

java/com/google/scrollview/ui/SVCheckboxMenuItem.java

-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ public String getValue() {
5757
return Boolean.toString(bvalue);
5858
}
5959
}
60-

java/com/google/scrollview/ui/SVEmptyMenuItem.java

-2
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,3 @@ public void performAction(SVWindow window, SVEventType eventType) {
4444
ScrollView.addMessage(svme);
4545
}
4646
}
47-
48-

java/com/google/scrollview/ui/SVMenuItem.java

-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ public String getValue() {
5858
return value;
5959
}
6060
}
61-

java/com/google/scrollview/ui/SVSubMenuItem.java

-2
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@ public void add(JMenu jli) {
3737
mi.add(jli);
3838
}
3939
}
40-
41-

src/arch/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ libtesseract_avx_la_SOURCES = dotproductavx.cpp
3232
libtesseract_avx2_la_SOURCES = intsimdmatrixavx2.cpp
3333

3434
libtesseract_sse_la_SOURCES = dotproductsse.cpp intsimdmatrixsse.cpp
35-

src/ccmain/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ libtesseract_main_la_SOURCES = \
3434
tessbox.cpp tessedit.cpp tesseractclass.cpp tessvars.cpp \
3535
tfacepp.cpp thresholder.cpp \
3636
werdit.cpp
37-

src/ccmain/par_control.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,3 @@ void Tesseract::PrerecAllWordsPar(const GenericVector<WordData>& words) {
7070
}
7171

7272
} // namespace tesseract.
73-
74-

src/ccmain/pgedit.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,3 @@ void Tesseract::blob_feature_display(PAGE_RES* page_res,
998998
#endif // GRAPHICS_DISABLED
999999

10001000
} // namespace tesseract
1001-
1002-
1003-

src/ccmain/thresholder.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,3 @@ void ImageThresholder::ThresholdRectToPix(Pix* src_pix,
330330
}
331331

332332
} // namespace tesseract.
333-

src/ccstruct/blamer.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -584,4 +584,3 @@ void BlamerBundle::SetMisAdaptionDebug(const WERD_CHOICE *best_choice,
584584
}
585585
}
586586
}
587-

src/ccstruct/boxread.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,3 @@ void MakeBoxFileStr(const char* unichar_str, const TBOX& box, int page_num,
237237
box_str->add_str_int(" ", box.top());
238238
box_str->add_str_int(" ", page_num);
239239
}
240-

src/ccstruct/detlinefit.h

-2
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,3 @@ class DetLineFit {
160160
} // namespace tesseract.
161161

162162
#endif // TESSERACT_CCSTRUCT_DETLINEFIT_H_
163-
164-

src/ccstruct/dppoint.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,3 @@ void DPPoint::UpdateIfBetter(int64_t cost, int32_t steps, const DPPoint* prev,
9595
}
9696

9797
} // namespace tesseract.
98-

src/ccstruct/fontinfo.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,3 @@ bool write_set(FILE* f, const FontSet& fs) {
244244
}
245245

246246
} // namespace tesseract.
247-

src/ccutil/bitvector.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -265,5 +265,3 @@ void BitVector::Alloc(int length) {
265265

266266

267267
} // namespace tesseract.
268-
269-

src/ccutil/indexmapbidi.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,3 @@ int IndexMapBiDi::MapFeatures(const GenericVector<int>& sparse,
247247
}
248248

249249
} // namespace tesseract.
250-

src/ccutil/serialis.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,3 @@ int TFile::FWrite(const void* buffer, int size, int count) {
163163

164164

165165
} // namespace tesseract.
166-

src/classify/Makefile.am

-2
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ libtesseract_classify_la_SOURCES = \
3535
ocrfeatures.cpp outfeat.cpp picofeat.cpp protos.cpp \
3636
sampleiterator.cpp shapeclassifier.cpp shapetable.cpp \
3737
tessclassifier.cpp trainingsample.cpp trainingsampleset.cpp
38-
39-

src/classify/errorcounter.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,3 @@ void ErrorCounter::Counts::operator+=(const Counts& other) {
500500

501501

502502
} // namespace tesseract.
503-
504-
505-
506-
507-

src/classify/sampleiterator.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,3 @@ const UnicharAndFonts* SampleIterator::GetShapeEntry() const {
259259
}
260260

261261
} // namespace tesseract.
262-

src/classify/shapeclassifier.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,3 @@ void ShapeClassifier::FilterDuplicateUnichars(
229229
}
230230

231231
} // namespace tesseract.
232-
233-
234-
235-
236-

src/classify/tessclassifier.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,3 @@ int TessClassifier::DisplayClassifyAs(
8383
}
8484

8585
} // namespace tesseract
86-
87-

src/dict/Makefile.am

-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,3 @@ libtesseract_dict_la_SOURCES = \
1616
context.cpp \
1717
dawg.cpp dawg_cache.cpp dict.cpp hyphen.cpp \
1818
permdawg.cpp stopper.cpp trie.cpp
19-
20-

src/lstm/input.h

-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,3 @@ class Input : public Network {
102102
} // namespace tesseract.
103103

104104
#endif // TESSERACT_LSTM_INPUT_H_
105-

src/lstm/maxpool.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,3 @@ bool Maxpool::Backward(bool debug, const NetworkIO& fwd_deltas,
8383

8484

8585
} // namespace tesseract.
86-

src/lstm/maxpool.h

-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,3 @@ class Maxpool : public Reconfig {
6767

6868

6969
#endif // TESSERACT_LSTM_MAXPOOL_H_
70-

src/lstm/networkbuilder.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -485,4 +485,3 @@ Network* NetworkBuilder::ParseOutput(const StaticShape& input_shape,
485485
}
486486

487487
} // namespace tesseract.
488-

src/lstm/plumbing.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,3 @@ void Plumbing::CountAlternators(const Network& other, double* same,
244244
}
245245

246246
} // namespace tesseract.
247-

src/lstm/plumbing.h

-1
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,3 @@ class Plumbing : public Network {
142142
} // namespace tesseract.
143143

144144
#endif // TESSERACT_LSTM_PLUMBING_H_
145-

src/textord/alignedblob.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -529,4 +529,3 @@ BLOBNBOX* AlignedBlob::FindAlignedBlob(const AlignedBlobParams& p,
529529
}
530530

531531
} // namespace tesseract.
532-

src/textord/drawtord.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,3 @@ void plot_row_cells( //draw words
418418
}
419419

420420
#endif // GRAPHICS_DISABLED
421-

src/textord/imagefind.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1366,4 +1366,3 @@ void ImageFind::FindImagePartitions(Pix* image_pix, const FCOORD& rotation,
13661366

13671367

13681368
} // namespace tesseract.
1369-

src/textord/linefind.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -771,4 +771,3 @@ void LineFinder::GetLineBoxes(bool horizontal_lines,
771771
}
772772

773773
} // namespace tesseract.
774-

src/training/classifier_tester.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,3 @@ int main(int argc, char **argv) {
139139

140140
return 0;
141141
} /* main */
142-
143-
144-
145-
146-
147-

src/training/lstmtraining.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,3 @@ int main(int argc, char **argv) {
210210
tprintf("Finished! Error rate = %g\n", trainer.best_error_rate());
211211
return 0;
212212
} /* main */
213-
214-

src/training/tesstrain.sh

-2
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,3 @@ else
7777
make__traineddata
7878
tlog "\nCompleted training for language '${LANG_CODE}'\n"
7979
fi
80-
81-

src/training/unicharset_training_utils.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,3 @@ void SetPropertiesForInputFile(const std::string& script_dir,
207207
}
208208

209209
} // namespace tesseract
210-

src/vs2010/tesseract/libtesseract.rc.in

-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,3 @@ END
9898

9999
/////////////////////////////////////////////////////////////////////////////
100100
#endif // not APSTUDIO_INVOKED
101-

src/vs2010/tesseract/tesseract.rc.in

-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,3 @@ END
9898

9999
/////////////////////////////////////////////////////////////////////////////
100100
#endif // not APSTUDIO_INVOKED
101-

src/wordrec/lm_pain_points.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,3 @@ void LMPainPoints::RemapForSplit(int index) {
215215
}
216216

217217
} // namespace tesseract
218-

src/wordrec/params_model.h

-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,3 @@ class ParamsModel {
8686
} // namespace tesseract
8787

8888
#endif // TESSERACT_WORDREC_PARAMS_MODEL_H_
89-

tessdata/configs/get.image

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tessedit_write_images T
1+
tessedit_write_images T

tessdata/tessconfigs/batch

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# No content needed as all defaults are correct.
2-

testing/FILES

-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ DuTillet1004Pg2LG.jpg - Sample from Hebrew Matthew Project with parallel texts
1616
hebrew-nikud-genesis-1-2.png - Genesis 1-2 Hebrew example from OCR forum
1717
forum post - https://community.logos.com/forums/p/16124/277997.aspx
1818
direct link to image - https://community.logos.com/cfs-filesystemfile.ashx/__key/CommunityServer.Discussions.Components.Files/77/4578.Gen.png
19-

testing/README

-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ and go to the gym, have lunch etc.
4040
Step 8: There should be a file
4141
testing/reports/tess2.0.summary that contains the final summarized accuracy
4242
report and comparison with the 1995 results.
43-

testing/counttestset.sh

100755100644
-2
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,3 @@ do
5757
done <"$pages"
5858
testing/unlv/accsum "$accfiles" >"testing/reports/$setname.characc"
5959
testing/unlv/wordaccsum "$wafiles" >"testing/reports/$setname.wordacc"
60-
61-

0 commit comments

Comments
 (0)