From 8520e043f2e12acdfd39d971ebeeacbe9e5ac3ca Mon Sep 17 00:00:00 2001 From: pavook Date: Thu, 22 Aug 2024 16:26:27 +0300 Subject: GLOBAL OTBIVKA FIX ୧༼ಠ益ಠ༽୨ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make all "otbivka" exactly 80 symbols. Command: ```bash sed -i 's#^//////////////\+$#////////////////////////////////////////////////////////////////////////////////#g' $(find yt \( -name '*.cpp' -or -name '*.h' -or -name '*.proto' \) -not -path 'yt/yt/experiments/private/tabletvis/imgui/*') ``` 30a0ba9f42ba1909d3cee11fe12bba14c7c8b039 --- yt/cpp/mapreduce/interface/batch_request.h | 4 ++-- yt/cpp/mapreduce/interface/errors.cpp | 6 +++--- yt/cpp/mapreduce/interface/io.h | 2 +- yt/cpp/mapreduce/interface/job_counters.cpp | 8 ++++---- yt/cpp/mapreduce/interface/job_counters.h | 2 +- yt/cpp/mapreduce/interface/job_statistics.cpp | 16 ++++++++-------- yt/cpp/mapreduce/interface/job_statistics.h | 12 ++++++------ yt/cpp/mapreduce/interface/operation.h | 10 +++++----- yt/cpp/mapreduce/interface/ut/operation_ut.cpp | 6 +++--- 9 files changed, 33 insertions(+), 33 deletions(-) (limited to 'yt/cpp/mapreduce/interface') diff --git a/yt/cpp/mapreduce/interface/batch_request.h b/yt/cpp/mapreduce/interface/batch_request.h index 3ea28f76fd5..8056f8a1edd 100644 --- a/yt/cpp/mapreduce/interface/batch_request.h +++ b/yt/cpp/mapreduce/interface/batch_request.h @@ -9,7 +9,7 @@ namespace NYT { -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// Helper base of @ref NYT::IBatchRequest holding most of useful methods. class IBatchRequestBase @@ -217,6 +217,6 @@ public: virtual void ExecuteBatch(const TExecuteBatchOptions& options = TExecuteBatchOptions()) = 0; }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/yt/cpp/mapreduce/interface/errors.cpp b/yt/cpp/mapreduce/interface/errors.cpp index 49a7c7cfc10..ef3d2db4a31 100644 --- a/yt/cpp/mapreduce/interface/errors.cpp +++ b/yt/cpp/mapreduce/interface/errors.cpp @@ -16,7 +16,7 @@ namespace NYT { using namespace NJson; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// static void WriteErrorDescription(const TYtError& error, IOutputStream* out) { @@ -107,7 +107,7 @@ static TString DumpJobInfoForException(const TOperationId& operationId, const TV return output; } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// TYtError::TYtError() : Code_(0) @@ -396,7 +396,7 @@ void TErrorResponse::Setup() *this << Error_.FullDescription(); } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// TOperationFailedError::TOperationFailedError( EState state, diff --git a/yt/cpp/mapreduce/interface/io.h b/yt/cpp/mapreduce/interface/io.h index 1d7f5375a22..becde0def2f 100644 --- a/yt/cpp/mapreduce/interface/io.h +++ b/yt/cpp/mapreduce/interface/io.h @@ -101,7 +101,7 @@ class TIOException : public yexception { }; -/////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// Interface representing YT file reader. class IFileReader diff --git a/yt/cpp/mapreduce/interface/job_counters.cpp b/yt/cpp/mapreduce/interface/job_counters.cpp index 717982e216a..2d0284e2b1b 100644 --- a/yt/cpp/mapreduce/interface/job_counters.cpp +++ b/yt/cpp/mapreduce/interface/job_counters.cpp @@ -2,7 +2,7 @@ namespace NYT { -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// namespace { ui64 CountTotal(const TNode& data) @@ -31,7 +31,7 @@ namespace { } } // namespace -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// TJobCounter::TJobCounter(TNode data) : Data_(std::move(data)) @@ -58,7 +58,7 @@ ui64 TJobCounter::GetValue(const TStringBuf key) const return 0; } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// TJobCounters::TJobCounters(const TNode& counters) : Total_(0) @@ -159,6 +159,6 @@ ui64 TJobCounters::GetTotal() const return Total_; } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/yt/cpp/mapreduce/interface/job_counters.h b/yt/cpp/mapreduce/interface/job_counters.h index 573cbe47844..24efddd7d0b 100644 --- a/yt/cpp/mapreduce/interface/job_counters.h +++ b/yt/cpp/mapreduce/interface/job_counters.h @@ -69,6 +69,6 @@ private: TJobCounter Blocked_; }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/yt/cpp/mapreduce/interface/job_statistics.cpp b/yt/cpp/mapreduce/interface/job_statistics.cpp index 4ff8dde3cca..0ee952f510c 100644 --- a/yt/cpp/mapreduce/interface/job_statistics.cpp +++ b/yt/cpp/mapreduce/interface/job_statistics.cpp @@ -17,7 +17,7 @@ namespace NYT { -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// template <> i64 ConvertJobStatisticsEntry(i64 value) @@ -31,7 +31,7 @@ TDuration ConvertJobStatisticsEntry(i64 value) return TDuration::MilliSeconds(value); } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// static TTaskName JobTypeToTaskName(EJobType jobType) { @@ -55,7 +55,7 @@ static TTaskName FixTaskName(TString taskName) return taskName; } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// class TJobStatistics::TData : public TThrRefBase @@ -140,7 +140,7 @@ public: } }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// struct TJobStatistics::TFilter : public TThrRefBase @@ -149,7 +149,7 @@ struct TJobStatistics::TFilter TVector JobStateFilter = {EJobState::Completed}; }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// const TString TJobStatistics::CustomStatisticsNamePrefix_ = "custom/"; @@ -293,7 +293,7 @@ TMaybe TJobStatistics::GetStatisticsImpl(TStringBuf return result; } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// namespace { @@ -340,7 +340,7 @@ void WriteCustomStatisticsAny(TStringBuf path, const T& value) } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// void WriteCustomStatistics(const TNode& statistics) { @@ -356,6 +356,6 @@ void WriteCustomStatistics(TStringBuf path, i64 value) void FlushCustomStatisticsStream() { GetStatisticsStream()->Flush(); } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/yt/cpp/mapreduce/interface/job_statistics.h b/yt/cpp/mapreduce/interface/job_statistics.h index 4582d9e872e..a41b48d5c66 100644 --- a/yt/cpp/mapreduce/interface/job_statistics.h +++ b/yt/cpp/mapreduce/interface/job_statistics.h @@ -16,7 +16,7 @@ namespace NYT { -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// /// @brief Convert i64 representation of statistics to other type. @@ -28,7 +28,7 @@ namespace NYT { template T ConvertJobStatisticsEntry(i64 value); -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// Class representing a collection of job statistics. class TJobStatistics @@ -160,7 +160,7 @@ private: friend class TJobStatisticsEntry; }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// Class representing single statistic. template @@ -225,7 +225,7 @@ private: friend class TJobStatistics; }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// template TJobStatisticsEntry TJobStatistics::GetStatisticsAs(TStringBuf name) const @@ -239,7 +239,7 @@ TJobStatisticsEntry TJobStatistics::GetCustomStatisticsAs(TStringBuf name) co return TJobStatisticsEntry(GetStatisticsImpl(CustomStatisticsNamePrefix_ + name)); } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// /// @brief Write [custom statistics](https://ytsaurus.tech/docs/en/user-guide/data-processing/operations/jobs#user_stats). @@ -263,6 +263,6 @@ void WriteCustomStatistics(const TNode& statistics); /// @brief Flush [custom statistics stream](https://ytsaurus.tech/docs/en/user-guide/data-processing/operations/jobs#user_stats) /// void FlushCustomStatisticsStream(); -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/yt/cpp/mapreduce/interface/operation.h b/yt/cpp/mapreduce/interface/operation.h index 76b67138a32..9e17ca7e905 100644 --- a/yt/cpp/mapreduce/interface/operation.h +++ b/yt/cpp/mapreduce/interface/operation.h @@ -86,7 +86,7 @@ TStructuredTablePath Structured(TRichYPath richYPath); template TTableStructure StructuredTableDescription(); -/////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// Tag class marking that row stream is empty. struct TVoidStructuredRowStream @@ -117,7 +117,7 @@ using TStructuredRowStreamDescription = std::variant< TProtobufStructuredRowStream >; -/////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// Tag class marking that current binary should be used in operation. struct TJobBinaryDefault @@ -710,7 +710,7 @@ struct TJobProfilerSpec FLUENT_FIELD_OPTION(int, SamplingFrequency); }; -///////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// @brief Specification of a disk that will be available in job. /// @@ -2981,7 +2981,7 @@ struct TListJobsResult TMaybe ArchiveJobCount; }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// /// @brief Options for @ref NYT::IClient::GetJob. @@ -3019,7 +3019,7 @@ struct TGetJobStderrOptions /// @endcond }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// /// /// @brief Options for @ref NYT::IOperation::GetFailedJobInfo. diff --git a/yt/cpp/mapreduce/interface/ut/operation_ut.cpp b/yt/cpp/mapreduce/interface/ut/operation_ut.cpp index 81d03d06186..b28a33142a1 100644 --- a/yt/cpp/mapreduce/interface/ut/operation_ut.cpp +++ b/yt/cpp/mapreduce/interface/ut/operation_ut.cpp @@ -14,7 +14,7 @@ using namespace NYT; using namespace NYT::NUnitTesting; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// class TDummyInferenceContext : public IOperationPreparationContext @@ -62,7 +62,7 @@ private: TVector InputSchemas_; }; -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// TEST(TPrepareOperationTest, BasicSchemas) { @@ -269,4 +269,4 @@ TEST(TPrepareOperationTest, Bug_r7349102) builder.Finish(); } -//////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////// -- cgit v1.3