text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>path); ~LogFileImpl(); void writeImpl(const std::string & text, bool flush); void writeBinaryImpl(const char * data, size_t size, bool flush); UInt64 sizeImpl() const; Timestamp creationDateImpl() const; const std::string & pathImpl() const; private: std::string _path; mut...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>rited the channel and level from its ancestor, it loses the connection /// to it. So changes to the level or channel of a logger do not affect its /// descendants. This greatly simplifies the implementation of the framework /// and is no real restriction, because almost always levels and channels are /// ...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // LoggingFactory.h // // Library: Foundation // Package: Logging // Module: LoggingFactory // // Definition of the LoggingFactory class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Lo...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // LoggingRegistry.h // // Library: Foundation // Package: Logging // Module: LoggingRegistry // // Definition of the LoggingRegistry class. // // Copyrig<|fim_suffix|>tter); /// Registers a formatter under a given name. /// It is okay to re-register a different formatter under an /// alre...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>t len); struct Context { UInt32 state[4]; // state (ABCD) UInt32 count[2]; // number of bits, modulo 2^64 (lsb first) unsigned char buffer[64]; // input buffer }; Context _context; DigestEngine::Digest _digest; MD5Engine(const MD5Engine &); MD5Engine ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>::streamsize charsWritten() const; /// Returns the number of chars written to the buffer. }; // // inlines // inline MemoryStreamBuf * MemoryIOS::rdbuf() { return &_buf; } inline std::streamsize MemoryOutputStream::charsWritten() const { return _buf.charsWritten(); } } // namespace Poco ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>ignment operator. void swap(Message & msg); /// Swaps the message with another one. void setSource(const std::string & src); /// Sets the source of the message. const std::string & getSource() const; /// Returns the source of the message. void setText(const std::string & te...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>Singleton(const char * name) : AbstractMetaObject<B>(name) { } ~MetaSingleton() { } B * create() const { throw InvalidAccessException("Cannot create instances of a singleton class. Use instance() to obtain a", this->name()); } bool canCreate() const { return false; } B ...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // MetaProgramming.h // // Library: Foundation // Package: Core // Module: MetaProgramming // // Common definitions useful for Meta Template Programming // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Fou...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Mutex.h<|fim_suffix|>d. bool tryLock(); /// Tries to lock the mutex. Returns false immediately /// if the mutex is already held by another thread. /// Returns true if the mutex was successfully locked. bool tryLock(long milliseconds); /// Locks the mutex. Blocks up to the g...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>ndation_API MutexImpl { protected: MutexImpl(); MutexImpl(bool fast); ~MutexImpl(); void lockImpl(); bool tryLockImpl(); bool tryLockImpl(long milliseconds); void unlockImpl(); private: pthread_mutex_t _mutex; }; class Foundation_API FastMutexImpl : public MutexImpl { pr...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NObserver.h // // Library: Foundation // Package: Notifications // Module: NotificationCenter // // Definition of the NObserver class template. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundatio...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NamedEvent.h // // Library: Foundation // Package: Processes // Module: NamedEvent // // Definition of the NamedEvent class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_NamedEvent_I...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_NamedEvent_Android_INCLUDED #define Foundation_NamedEvent_Android_INCLUDED #include "Poco/Foundation.h" namespace Poco { class Foundation_API NamedEventImpl { protected: NamedEventImpl(const std::string & name); ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>4-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_NamedEvent_UNIX_INCLUDED #define Foundation_NamedEvent_UNIX_INCLUDED #include "Poco/Foundation.h" #if defined(sun) || defined(__APPLE__) || defined(__osf__) || defin...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>ex. Returns false immediately /// if the mutex is already held by another process or thread. /// Returns true if the mutex was successfully locked. void unlock(); /// Unlocks the mutex so that it can be acquired by /// other threads. private: NamedMutex(); NamedMutex(const Na...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>(); }; } // namespace Poco #endif // Foundation_NamedMutex_Android_INCLUDED <|fim_prefix|>// // NamedMutex_Android.h // // Library: Foundation // Package: Processes // Module: NamedMutex // // Definition of the NamedMutexImpl class for Android. // // Copyright (c) 2004-2011, Applied Informatics Softw...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>UNIX_INCLUDED #include <sys/stat.h> #include <sys/types.h> #include "Poco/Foundation.h" #if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__) || defined(_AIX) # include <semaphore.h> #endif namespace Poco { class Foundation_API NamedMutexImpl { protected: NamedMutexIm...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> Stack; Stack _stack; }; typedef NestedDiagnosticContext NDC; class Foundation_API NDCScope /// This class can be used to automatically push a context onto /// the NDC stack at the beginning of a scope, and to pop /// the context at the end of the scope. { public: NDCScope(const std::string &...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Notification.h // // Library: Foundation // Package: Notifications // Module: Notification // // Defini<|fim_suffix|>the NotificationQueue /// classes. /// The Notification class can be used with the AutoPtr /// template class. { public: typedef AutoPtr<Notification> Ptr; Notification(); ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>otifications to observers synchronously. /// In other words the postNotification() method does not return until all observers have /// received and processed the notification. /// If an observer throws an exception while handling a notification, the NotificationCenter /// stops dispatching the notificatio...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NotificationQueue.h // // Library: Foundation // Package: Notifications // Module: NotificationQueue // // Definition of the NotificationQueue class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifnde...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NotificationStrategy.h // // Library: Foundation // Package: Events // Module: NotificationStrategy // // Definition of the NotificationStrategy interface. // // Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // ...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NullChannel.h // // Library: Foundation // Package: Logging // Module: NullChannel // // Definition of the NullChannel class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier<|fim_suffix|>e NullChannel is the /dev/null ...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NullStream.h // // Library: Foundation // Package:<|fim_suffix|>CLUDED #define Foundation_NullStream_INCLUDED #include <istream> #include <ostream> #include "Poco/Foundation.h" #include "Poco/UnbufferedStreamBuf.h" namespace Poco { class Foundation_API NullStreamBuf : public UnbufferedStreamBu...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> the Nullable is empty. { return _isNull ? deflt : _value; } operator C &() /// Get reference to the value { return value(); } operator const C &() const /// Get const reference to the value { return value(); } operator NullType &() ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> least the /// specified width. static std::string formatHex(UInt64 value, bool prefix = false); /// Formats a 64-bit integer value in hexadecimal notation. /// If prefix is true, "0x" prefix is prepended to the /// resulting string. static std::string formatHex(UInt64 value, int...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NumberParser.h // // Library: Foundation // Package: Core // Module: NumberParser // // Definition of the NumberParser class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_NumberParse...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // NumericString.h // // Library: Foundation // Package: Core // Module: NumericString // // Numeric string utility functions. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_NumericString...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // ObjectPool.h // // Library: Foundation // Package: Core // Module: ObjectPool // // Definition of the ObjectPool template class and friends. // // Copyright (c) 2010-2012, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundat...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Observer.h // // Library: Foundation // Package: Notifications // Module: NotificationCenter // // Definition of the Observer class template. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Founda...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>_value) , _isSpecified(other._isSpecified) { } ~Optional() /// Destroys the Optional. { } Optional & assign(const C & value) /// Assigns a value to the Optional. { _value = value; _isSpecified = true; return *this; } Optional &...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // PBKDF2Engine.h // // Library: Foundat<|fim_suffix|>ivation function /// that is part of RSA Laboratories' Public-Key Cryptography Standards (PKCS) series, /// specifically PKCS #5 v2.0, also published as Internet Engineering Task Force's /// RFC 2898. It replaces an earlier standard, PBKDF1, which c...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Path.h // // Library: Foundation // Package: Filesystem // Module: Path // // Definition of the Path class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Path_INCLUDED #define Foundat...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Path_UNIX.h // // Library: Foundation // Package: Filesystem // Module: Path // // Definition of the PathImpl class fo rUnix. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Path_UNIX_I...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // PatternFormatter.h // // Library: Foundation // Package: Logging // Module: PatternFormatter // // Definition of the PatternFormatter class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundat...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> PipeImpl from another one. ~Pipe(); /// Closes and destroys the Pipe. Pipe & operator=(const Pipe & pipe); /// Releases the Pipe's PipeImpl and assigns another one. int writeBytes(const void * buffer, int length); /// Sends the contents of the given buffer through /// the p...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // PipeImpl.h // // Library: Foundation // Package: Processes // Module: PipeImpl // // Definition of the PipeImpl class. //<|fim_suffix|>#endif // Foundation_PipeImpl_INCLUDED <|fim_middle|> // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-Lic...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // PipeImpl_POSIX.h // // Library: Foundation // Package: Processes // Module: PipeImpl // // Definition of the PipeImpl class for POSIX. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Pi...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>_ENDIAN__ # define POCO_ARCH_BIG_ENDIAN 1 # else # define POCO_ARCH_LITTLE_ENDIAN 1 # endif #elif defined(__m68k__) # define POCO_ARCH POCO_ARCH_M68K # define POCO_ARCH_BIG_ENDIAN 1 #elif defined(__s390__) # define POCO_ARCH POCO_ARCH_S390 # define POCO_ARCH_BIG_ENDIAN 1 #e...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Platform_POSIX.h // // Library: Foundation // Package: Core // Module: Platform // // Platform and architecture ident<|fim_suffix|>al static initialization // #ifndef POCO_LOCAL_STATIC_INIT_IS_THREADSAFE # define POCO_LOCAL_STATIC_INIT_IS_THREADSAFE 1 #endif // // No syslog.h on QNX/BB10 // #i...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Po<|fim_suffix|>Foundation // // Basic definitions for the POCO libraries. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Poco_INCLUDED #define Foundation_Poco_INCLUDED #include "Poco/Foun...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> { (_receiverObject->*_receiverMethod)(); return true; } return false; } bool equals(const AbstractDelegate<void> & other) const { const PriorityDelegate * pOtherDelegate = dynamic_cast<const PriorityDelegate *>(other.unwrap()); retur...
fim
ClickHouse/ClickHouse
c
// // PriorityEvent.h // // Library: Foundation // Package: Events // Module: PriorityEvent // // Implementation of the PriorityEvent template. // // Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_PriorityEvent...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // PriorityExpire.h // // Library: Foundation // Package: Events // Module: PriorityExpire // // Implementation of the PriorityExpire template. // // Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundat...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // PriorityNotificationQueue.h // // Library: Foundation // Package: Notifications // Module: PriorityNotificationQueue // // Definition of the PriorityNotificationQueue class. // // Copyright (c) 2009, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: ...
fim
ClickHouse/ClickHouse
c
// // PriorityStrategy.h // // Library: Foundation // Package: Events // Module: PrioritytStrategy // // Implementation of the DefaultStrategy template. // // Copyright (c) 2006-2011, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Prio...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Process.h // // Library: Foundation // Package: Processes // Module: Process // // Definition of the Process class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Process_INCLUDED #def...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Process_UNIX.h // // Library: Foundation // Package: Processes // Module: Process // // Definition of the ProcessImpl class for Unix. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Pro...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>:vector<File> & files); /// Fills the given vector with a list of archived log /// files. The path of the current "hot" log file is /// given in path. /// /// All files with the same name as the one given in path, /// plus some suffix (e.g., .1, .20050929081500, .1.gz) are /// ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>eLock(); else _rwl.readLock(); } inline ScopedRWLock::~ScopedRWLock() { try { _rwl.unlock(); } catch (...) { poco_unexpected(); } } inline ScopedReadRWLock::ScopedReadRWLock(RWLock & rwl) : ScopedRWLock(rwl, false) { } inline ScopedReadRWLock::~Sco...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // RWLock_Android.h // // Library: Foundation // Package: Threading // Module: RWLock // // Definition of the RWLockImpl class for Android Threads. // // Copyright (c) 2004-2011, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Fou...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>} // namespace Poco #endif // Foundation_RWLock_POSIX_INCLUDED <|fim_prefix|>// // RWLock_POSIX.h // // Library: Foundation // Package: Threading // Module: RWLock // // Definition of the RWLockImpl class for POSIX Threads. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. /...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>d on the FreeBSD random number generator. // src/lib/libc/stdlib/random.c,v 1.25 // // Copyright (c) 1983, 1993 // The Regents of the University of California. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the follo...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // RandomStream.h // // Library: Foundation // Package: Crypt // Module: RandomStream // // Definition of class RandomInputStream. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering<|fim_suffix|>Foundation_RandomStream_INCLUDED #include <istream> #include "Poco/BufferedStreamBuf...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // RecursiveDirectoryIterator.h // // Library: Foundation // Package: Filesystem // Module: RecursiveDirectoryIterator // // Definition of the RecursiveDirectoryIterator class. // // Copyright (c) 2012, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: ...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // RecursiveDirectoryIteratorImpl.h // // Library: Foundation // Package: Filesystem // Module: RecursiveDirectoryIterator // // Definition of the RecursiveDirectoryIteratorImpl class. // // Copyright (c) 2012, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Iden...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // RefCountedObject.h // // Library: Foundation // Package: Core // Module: RefCountedObject // // Definition of the RefCountedObject class. // // Copyright (c) 2004-2009, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> part of the subject matches the pattern, captured is empty. /// Throws a RegularExpressionException in case of an error. /// Returns the number of matches. int subst(std::string & subject, const std::string & replacement, int options = 0) const; /// Substitute in subject all matches of t...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // RotateStrategy.h // // Library: Foundation // Package: Logging // Module: FileChannel // // Definition of the RotateStrategy class and subclasses. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef F...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>ion_Runnable_INCLUDED #include "Poco/Foundation.h" namespace Poco { class Foundation_API Runnable /// The Runnable interface with the run() method /// must be implemented by classes that provide /// an entry point for a thread. { public: Runnable(); virtual ~Runnable(); virtual void run...
fim
ClickHouse/ClickHouse
c
// // RunnableAdapter.h // // Library: Foundation // Package: Threading // Module: Thread // // Definition of the RunnableAdapter template class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_RunnableAda...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>tic void byteReverse(UInt32 * buffer, int byteCount); typedef UInt8 BYTE; struct Context { UInt32 digest[5]; // Message digest UInt32 countLo; // 64-bit bit count UInt32 countHi; UInt32 data[16]; // SHA data buffer UInt32 slop; // # of bytes saved in d...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> { poco_unexpected(); } } void unlock() { if (_pMutex) { _pMutex->unlock(); _pMutex = 0; } } private: M * _pMutex; ScopedLockWithUnlock(); ScopedLockWithUnlock(const ScopedLockWithUnlock &); Scop...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // ScopedUnlock.h // // Library: Foundation // Package: Threading // Module: Mutex // // Definition of the ScopedUnlock template class. // // Copyright (c) 2007, Applied Informatics S<|fim_suffix|>oundation.h" namespace Poco { template <class M> class ScopedUnlock /// A class that simplifies threa...
fim
ClickHouse/ClickHouse
c
// // Semaphore.h // // Library: Foundation // Package: Threading // Module: Semaphore // // Definition of the Semaphore class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Semaphore_INCLUDED #define Fo...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Semaphore_POSIX.h // // Library: Foundation // Package: Threading // Module: Semaphore // // Definition of the SemaphoreImpl class for POSIX Threads. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifnde...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>, this /// is the entry point of the function. /// Throws a NotFoundException if the symbol /// does not exist. const std::string & getPath() const; /// Returns the path of the library, as /// specified in a call to load() or the /// constructor. static std::string suffix...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>stMutex _mutex; }; } // namespace Poco #endif // Foundation_SharedLibrary_UNIX_INCLUDED <|fim_prefix|>// // SharedLibrary_UNIX.h // // Library: Foundation // Package: SharedLibrary // Module: SharedLibrary // // Definition of the SharedLibraryImpl class for UNIX (dlopen). // // Copyright (c) 2004-200...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // SharedMemory.h // // Library: Foundation // Package: Processes // Module: SharedMemory // // Definition of the SharedMemory class. // // Copyright (c) 2007, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_SharedMemor...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // SharedMemoryImpl.h // // Library: Foundation // Package: Processes // Module: SharedMemoryImpl // // Definition of the SharedMemoryImpl class. // // Copyright (c) 2007, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation...
fim
ClickHouse/ClickHouse
c
// // SharedPtr.h // // Library: Foundation // Package: Core // Module: SharedPtr // // Definition of the SharedPtr template class. // // Copyright (c) 2005-2008, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_SharedPtr_INCLUDED #defin...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>rns the top-most sigjmp_buf for the current thread. static void throwSignalException(int sig); /// Throws a SignalException with a textual description /// of the given signal as argument. static void install(); /// Installs signal handlers for SIGILL, SIGBUS, SIGSEGV /// and SIGS...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // SimpleFileChannel.h // // Library: Foundation // Package: Logging // Module: SimpleFileChannel // // Definition of the SimpleFileChannel class. // // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foun...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // SingletonHolder.h // // Library: Foundation // Package: Core // Module: SingletonHolder // // Definition of the SingletonHolder template. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // SortedDirectoryIterator.h // // Library: Foundation // Package: Filesystem // Module: DirectoryIterator // // Definition of the SortedDirectoryIterator class. // // Copyright (c) 2004-2012, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 //...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>D <|fim_prefix|>// // SplitterChannel.h // // Library: Foundation // Package: Logging // Module: SplitterChannel // // Definition of the SplitterChannel class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #i...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Stopwatch.h // // Library: Foundation // Package: DateTime // Module: Stopwatch // // Definition of the Stopwatch class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Stopwatch_INCLUD...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>Strategy to the collection. Class takes ownership of pointer { _strategies.push_back(SharedPtr<AbstractStrategy<TKey, TValue>>(pStrat)); } void popBack() /// Removes the last added AbstractStrategy from the collection. { _strategies.pop_back(); } void onAdd(co...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // StreamChannel.h //<|fim_suffix|>en, followed /// by a newline. /// /// Chain this channel to a FormattingChannel with an /// appropriate Formatter to control what is contained /// in the text. { public: StreamChannel(std::ostream & str); /// Creates the channel. void log(const Message &...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>aultChar /// is used instead. /// If a byte sequence read from the underlying stream is not valid in inEncoding, /// defaultChar is used instead and the encoding error count is incremented. { public: InputStreamConverter(std::istream & istr, const TextEncoding & inEncoding, const TextEncoding & outEnc...
fim
ClickHouse/ClickHouse
c
// // StreamCopier.h // // Library: Foundation // Package: Streams // Module: StreamCopier // // Definition of class StreamCopier. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_StreamCopier_INCLUDED #def...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // StreamUtil.h // // Library: Foundation // Package: Streams // Module: StreamUtil // // Stream implementation support. // // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_StreamUtil_INCLUDED...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>1) == Ascii::toLower(*s2)) continue; else if (Ascii::toLower(*s1) < Ascii::toLower(*s2)) return -1; else return 1; } return 0; } static const charT * find(const charT * s, int n, charT a) { while ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>ken. /// Returns the number of modified tokens. std::size_t count() const; /// Returns the total number of tokens. std::size_t count(const std::string & token) const; /// Returns the number of tokens equal to the specified token. private: StringTokenizer(const StringTokenizer &)...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // SyslogChannel.h // // Library: Foundation // Package: Logging // Module: SyslogChannel // // Definition of the SyslogChannel class specific to UNIX. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>d). virtual void postNotification(Notification * pNf); /// Posts a notification to the task manager's /// notification center. /// /// A task can use this method to post custom /// notifications about its progress. void setOwner(TaskManager * pOwner); /// Sets the (option...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // TaskManager.h // // Library: Foundation // Package: Tasks // Module: Tasks // // Definition of the TaskManager class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_TaskManager_INCLUDE...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>stomNotification(Task * pTask, const C & custom) : TaskNotification(pTask), _custom(custom) { } const C & custom() const { return _custom; } protected: ~TaskCustomNotification(){}; private: C _custom; }; // // inlines // inline Task * TaskNotification::task() const { return _pTask; } ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>m and connects it /// to the given input stream. ~TeeOutputStream(); /// Destroys the TeeOutputStream. }; } // namespace Poco #endif // Foundation_TeeStream_INCLUDED <|fim_prefix|>// // TeeStream.h // // Library: Foundation // Package: Streams // Module: TeeStream // // Definition of the...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // TemporaryFile.h // // Library: Foundation // Package: Filesystem // Module: TemporaryFile // // Definition of the TemporaryFile class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Te...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // TextBufferIterator.h // // Library: Foundation // Package: Text // Module: TextBufferIterator // // Definition of the TextBufferIterator class. // // Copyright (c) 2010, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundatio...
fim
ClickHouse/ClickHouse
c
// // TextConverter.h // // Library: Foundation // Package: Text // Module: TextConverter // // Definition of the TextConverter class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_TextConverter_INCLUDED...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // TextEncoding.h // // Library: Foundation // Package: Text // Module: TextEncoding // // Definition of the abstract TextEncoding class. // // Copyright (c) 2004-2007, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Te...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>tor & it1, TextIterator & it2) { it1.swap(it2); } inline TextIterator TextIterator::end() const { return TextIterator(_end); } } // namespace Poco #endif // Foundation_TextIterator_INCLUDED <|fim_prefix|>// // TextIterator.h // // Library: Foundation // Package: Text // Module: TextIterator...
fim
ClickHouse/ClickHouse
c
<|fim_prefix|>// // Thread.h // // Library: Foundation // Package: Threading // Module: Thread // // Definition of the Thread class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_Thread_INCLUDED #define ...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>ass Foundation_API TLSAbstractSlot /// This is the base class for all objects /// that the ThreadLocalStorage class manages. { public: TLSAbstractSlot(); virtual ~TLSAbstractSlot(); }; template <class C> class TLSSlot : public TLSAbstractSlot /// The Slot template wraps another class /// so that...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|> int idleTime = 60, int stackSize = POCO_THREAD_STACK_SIZE, size_t global_profiler_real_time_period_ns_ = 0, size_t global_profiler_cpu_time_period_ns_ = 0); /// Creates a thread pool with the given name and minCapacity threads. /// If required, up to maxCapacity thre...
fim
ClickHouse/ClickHouse
c
// // ThreadTarget.h // // Library: Foundation // Package: Threading // Module: ThreadTarget // // Definition of the ThreadTarget class. // // Copyright (c) 2008, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_ThreadTarget_INCLUDED #de...
fim
ClickHouse/ClickHouse
c
<|fim_suffix|>toPtr<ThreadData> _pData; static CurrentThreadHolder _currentThreadHolder; #if defined(POCO_OS_FAMILY_UNIX) && !defined(POCO_VXWORKS) SignalHandler::JumpBufferVec _jumpBufferVec; friend class SignalHandler; #endif }; // // inlines // inline int ThreadImpl::getPriorityImpl() const { ret...
fim
ClickHouse/ClickHouse
c