Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-05-13 13:05:43 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-05-13 13:05:43 +0300
commit0859e9a844cc23ff04b09b4ac3d580da9197d1a1 (patch)
tree413793a630870bca4d27077d3193786ce9a1dee7 /moses/BaseManager.cpp
parent87e1f1351fdebc8d65d3ebe6ee726dccc765006e (diff)
Remove trailing whitespace from C++ files.
Diffstat (limited to 'moses/BaseManager.cpp')
-rw-r--r--moses/BaseManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/moses/BaseManager.cpp b/moses/BaseManager.cpp
index 70bacdede..291b813f0 100644
--- a/moses/BaseManager.cpp
+++ b/moses/BaseManager.cpp
@@ -36,7 +36,7 @@ OutputSearchGraphAsHypergraph(std::ostream& out) const
UTIL_THROW2("Not implemented.");
}
-void
+void
BaseManager::
OutputSearchGraphAsHypergraph(std::string const& fname, size_t const precision) const
{
@@ -44,12 +44,12 @@ OutputSearchGraphAsHypergraph(std::string const& fname, size_t const precision)
if (! boost::filesystem::exists(odir))
boost::filesystem::create_directory(odir);
UTIL_THROW_IF2(!boost::filesystem::is_directory(odir),
- "Cannot output hypergraphs to " << odir
+ "Cannot output hypergraphs to " << odir
<< " because that path exists but is not a directory.");
- // not clear why we need to output the weights every time we dump a search
+ // not clear why we need to output the weights every time we dump a search
// graph into a file again, but that's what the old code did.
-
+
string weightsFile = odir + "/weights";
TRACE_ERR("The weights file is " << weightsFile << "\n");
ofstream weightsOut;
@@ -60,23 +60,23 @@ OutputSearchGraphAsHypergraph(std::string const& fname, size_t const precision)
// (or the translation task)
StaticData::Instance().GetAllWeights().Save(weightsOut);
weightsOut.close();
-
+
boost::iostreams::filtering_ostream file;
if (boost::ends_with(fname, ".gz"))
file.push(boost::iostreams::gzip_compressor());
else if (boost::ends_with(fname, ".bz2"))
file.push( boost::iostreams::bzip2_compressor() );
file.push( boost::iostreams::file_sink(fname, ios_base::out) );
- if (file.is_complete() && file.good())
+ if (file.is_complete() && file.good())
{
file.setf(std::ios::fixed);
file.precision(precision);
this->OutputSearchGraphAsHypergraph(file);
file.flush();
}
- else
+ else
{
- TRACE_ERR("Cannot output hypergraph for line "
+ TRACE_ERR("Cannot output hypergraph for line "
<< this->GetSource().GetTranslationId()
<< " because the output file " << fname
<< " is not open or not ready for writing"