daily automatic beautifier

This commit is contained in:
MosesAdmin 2017-02-15 11:03:23 +00:00
parent de009c1fca
commit 54c2eae4b4
5 changed files with 10 additions and 10 deletions

View File

@ -34,13 +34,13 @@ namespace Moses2
///////////////////////////////////////////////////////////////////////
LexicalReordering::LexicalReordering(size_t startInd, const std::string &line)
: StatefulFeatureFunction(startInd, line)
, m_blank(NULL)
, m_propertyInd(-1)
, m_coll(NULL)
, m_configuration(NULL)
: StatefulFeatureFunction(startInd, line)
, m_blank(NULL)
, m_propertyInd(-1)
, m_coll(NULL)
, m_configuration(NULL)
#ifdef HAVE_CMPH
, m_compactModel(NULL)
, m_compactModel(NULL)
#endif
{
ReadParameters();

View File

@ -73,7 +73,7 @@ public:
}
MemPoolAllocator<T>& operator=(const MemPoolAllocator<T>& allocator) {
return *this;
return *this;
}
MemPool &m_pool;

View File

@ -131,7 +131,7 @@ public:
if (!m_fixed) {
size_t read = 0;
#ifdef _WIN32
read += _chsize_s(m_file_desc, m_map_size);
read += _chsize_s(m_file_desc, m_map_size);
#else
read += ftruncate(m_file_desc, m_map_size);
#endif

View File

@ -68,7 +68,7 @@ void createProbingPT(const std::string &phrasetable_path,
bool log_prob, int max_cache_size, bool scfg)
{
#if defined(_WIN32) || defined(_WIN64)
std::cerr << "Create not implemented for Windows" << std::endl;
std::cerr << "Create not implemented for Windows" << std::endl;
#else
std::cerr << "Starting..." << std::endl;

View File

@ -40,7 +40,7 @@ namespace Moses2
ThreadPool::ThreadPool(size_t numThreads, int cpuAffinityOffset,
int cpuAffinityIncr) :
m_stopped(false), m_stopping(false), m_queueLimit(0)
m_stopped(false), m_stopping(false), m_queueLimit(0)
{
//size_t numCPU = sysconf(_SC_NPROCESSORS_ONLN);
size_t numCPU = std::thread::hardware_concurrency();