aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorabogutskiy <abogutskiy@yandex-team.ru>2022-02-10 16:50:06 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:06 +0300
commit0ba74a57f9d49cfef11e512659c5847b98867342 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent78454ca6aab96463952682e635688185282ccdcd (diff)
downloadydb-0ba74a57f9d49cfef11e512659c5847b98867342.tar.gz
Restoring authorship annotation for <abogutskiy@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--library/cpp/actors/dnscachelib/timekeeper.h44
-rw-r--r--library/cpp/histogram/adaptive/protos/python/ya.make2
-rw-r--r--library/cpp/histogram/adaptive/protos/ya.make2
-rw-r--r--library/cpp/histogram/adaptive/ya.make2
-rw-r--r--library/cpp/monlib/service/pages/html_mon_page.cpp6
-rw-r--r--library/cpp/monlib/service/pages/index_mon_page.cpp6
-rw-r--r--library/cpp/protobuf/json/string_transform.cpp4
-rw-r--r--library/cpp/protobuf/json/string_transform.h6
-rw-r--r--library/cpp/testing/unittest/registar.h2
-rw-r--r--library/cpp/tld/tlds-alpha-by-domain.txt2
10 files changed, 38 insertions, 38 deletions
diff --git a/library/cpp/actors/dnscachelib/timekeeper.h b/library/cpp/actors/dnscachelib/timekeeper.h
index 4c4602f083..0528d8549c 100644
--- a/library/cpp/actors/dnscachelib/timekeeper.h
+++ b/library/cpp/actors/dnscachelib/timekeeper.h
@@ -1,8 +1,8 @@
#pragma once
-#include <util/datetime/base.h>
+#include <util/datetime/base.h>
#include <util/generic/singleton.h>
-#include <util/string/cast.h>
+#include <util/string/cast.h>
#include <util/system/thread.h>
#include <util/system/event.h>
#include <util/system/env.h>
@@ -13,10 +13,10 @@
class TTimeKeeper {
public:
- static TInstant GetNow(void) {
+ static TInstant GetNow(void) {
return TInstant::MicroSeconds(GetTime());
- }
-
+ }
+
static time_t GetTime(void) {
return Singleton<TTimeKeeper>()->CurrentTime.tv_sec;
}
@@ -27,41 +27,41 @@ public:
TTimeKeeper()
: Thread(&TTimeKeeper::Worker, this)
- {
+ {
ConstTime = !!GetEnv("TEST_TIME");
- if (ConstTime) {
- try {
+ if (ConstTime) {
+ try {
CurrentTime.tv_sec = FromString<ui32>(GetEnv("TEST_TIME"));
- } catch (TFromStringException exc) {
- ConstTime = false;
- }
- }
- if (!ConstTime) {
+ } catch (TFromStringException exc) {
+ ConstTime = false;
+ }
+ }
+ if (!ConstTime) {
gettimeofday(&CurrentTime, nullptr);
- Thread.Start();
- }
+ Thread.Start();
+ }
}
~TTimeKeeper() {
- if (!ConstTime) {
- Exit.Signal();
- Thread.Join();
- }
+ if (!ConstTime) {
+ Exit.Signal();
+ Thread.Join();
+ }
}
private:
static const ui32 UpdateInterval = 100000;
struct timeval CurrentTime;
- bool ConstTime;
+ bool ConstTime;
TSystemEvent Exit;
TThread Thread;
static void* Worker(void* arg) {
TTimeKeeper* owner = static_cast<TTimeKeeper*>(arg);
-
+
do {
/* Race condition may occur here but locking looks too expensive */
-
+
gettimeofday(&owner->CurrentTime, nullptr);
} while (!owner->Exit.WaitT(TDuration::MicroSeconds(UpdateInterval)));
diff --git a/library/cpp/histogram/adaptive/protos/python/ya.make b/library/cpp/histogram/adaptive/protos/python/ya.make
index 651a8248b4..3328c27965 100644
--- a/library/cpp/histogram/adaptive/protos/python/ya.make
+++ b/library/cpp/histogram/adaptive/protos/python/ya.make
@@ -1,3 +1,3 @@
OWNER(abogutskiy)
-
+
PY_PROTOS_FOR(library/cpp/histogram/adaptive/protos)
diff --git a/library/cpp/histogram/adaptive/protos/ya.make b/library/cpp/histogram/adaptive/protos/ya.make
index c0942c51b0..7635cfcb8c 100644
--- a/library/cpp/histogram/adaptive/protos/ya.make
+++ b/library/cpp/histogram/adaptive/protos/ya.make
@@ -1,4 +1,4 @@
-PROTO_LIBRARY()
+PROTO_LIBRARY()
OWNER(g:crawl)
diff --git a/library/cpp/histogram/adaptive/ya.make b/library/cpp/histogram/adaptive/ya.make
index cb6314f663..b589801b27 100644
--- a/library/cpp/histogram/adaptive/ya.make
+++ b/library/cpp/histogram/adaptive/ya.make
@@ -13,7 +13,7 @@ SRCS(
)
PEERDIR(
- contrib/libs/protobuf
+ contrib/libs/protobuf
library/cpp/histogram/adaptive/protos
)
diff --git a/library/cpp/monlib/service/pages/html_mon_page.cpp b/library/cpp/monlib/service/pages/html_mon_page.cpp
index 1b46cfdf54..eb4eb3b66c 100644
--- a/library/cpp/monlib/service/pages/html_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/html_mon_page.cpp
@@ -15,9 +15,9 @@ void THtmlMonPage::Output(NMonitoring::IMonHttpRequest& request) {
if (!!Title) {
out << "<title>" << Title << "</title>\n";
}
- out << "<link rel='stylesheet' href='https://yastatic.net/bootstrap/3.3.1/css/bootstrap.min.css'>\n";
- out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/jquery/2.1.3/jquery.min.js'></script>\n";
- out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/bootstrap/3.3.1/js/bootstrap.min.js'></script>\n";
+ out << "<link rel='stylesheet' href='https://yastatic.net/bootstrap/3.3.1/css/bootstrap.min.css'>\n";
+ out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/jquery/2.1.3/jquery.min.js'></script>\n";
+ out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/bootstrap/3.3.1/js/bootstrap.min.js'></script>\n";
if (OutputTableSorterJsCss) {
out << "<link rel='stylesheet' href='/jquery.tablesorter.css'>\n";
diff --git a/library/cpp/monlib/service/pages/index_mon_page.cpp b/library/cpp/monlib/service/pages/index_mon_page.cpp
index c2b12cabd4..83ff8b529a 100644
--- a/library/cpp/monlib/service/pages/index_mon_page.cpp
+++ b/library/cpp/monlib/service/pages/index_mon_page.cpp
@@ -111,9 +111,9 @@ TIndexMonPage* TIndexMonPage::FindIndexPage(const TString& relativePath) {
}
void TIndexMonPage::OutputCommonJsCss(IOutputStream& out) {
- out << "<link rel='stylesheet' href='https://yastatic.net/bootstrap/3.3.1/css/bootstrap.min.css'>\n";
- out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/jquery/2.1.3/jquery.min.js'></script>\n";
- out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/bootstrap/3.3.1/js/bootstrap.min.js'></script>\n";
+ out << "<link rel='stylesheet' href='https://yastatic.net/bootstrap/3.3.1/css/bootstrap.min.css'>\n";
+ out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/jquery/2.1.3/jquery.min.js'></script>\n";
+ out << "<script language='javascript' type='text/javascript' src='https://yastatic.net/bootstrap/3.3.1/js/bootstrap.min.js'></script>\n";
}
void TIndexMonPage::OutputHead(IOutputStream& out) {
diff --git a/library/cpp/protobuf/json/string_transform.cpp b/library/cpp/protobuf/json/string_transform.cpp
index ccf331033a..7c42daa677 100644
--- a/library/cpp/protobuf/json/string_transform.cpp
+++ b/library/cpp/protobuf/json/string_transform.cpp
@@ -25,8 +25,8 @@ namespace NProtobufJson {
void TDoubleUnescapeTransform::Transform(TString& str) const {
str = google::protobuf::UnescapeCEscapeString(Unescape(str));
- }
-
+ }
+
TString TDoubleUnescapeTransform::Unescape(const TString& str) const {
if (str.empty()) {
return str;
diff --git a/library/cpp/protobuf/json/string_transform.h b/library/cpp/protobuf/json/string_transform.h
index a8e6219cac..e4b296bc01 100644
--- a/library/cpp/protobuf/json/string_transform.h
+++ b/library/cpp/protobuf/json/string_transform.h
@@ -70,15 +70,15 @@ namespace NProtobufJson {
void Transform(TString& str) const override;
};
-
+
class TDoubleUnescapeTransform: public NProtobufJson::IStringTransform {
public:
int GetType() const override {
return NProtobufJson::IStringTransform::EscapeTransform;
}
-
+
void Transform(TString& str) const override;
-
+
private:
TString Unescape(const TString& str) const;
};
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index b423850184..44517a0092 100644
--- a/library/cpp/testing/unittest/registar.h
+++ b/library/cpp/testing/unittest/registar.h
@@ -986,7 +986,7 @@ public: \
#define Y_UNIT_TEST_SUITE(N) Y_UNIT_TEST_SUITE_IMPL(N, TTestBase)
#define Y_UNIT_TEST_SUITE_F(N, F) Y_UNIT_TEST_SUITE_IMPL_F(N, TTestBase, F)
#define RUSAGE_UNIT_TEST_SUITE(N) Y_UNIT_TEST_SUITE_IMPL(N, NUnitTest::TRusageTest, ::NUnitTest::TBaseTestCase)
-
+
#define Y_UNIT_TEST_IMPL_REGISTER(N, FF, F) \
struct TTestCase##N : public F { \
TTestCase##N() \
diff --git a/library/cpp/tld/tlds-alpha-by-domain.txt b/library/cpp/tld/tlds-alpha-by-domain.txt
index 1a3c7de91c..412a6e29cb 100644
--- a/library/cpp/tld/tlds-alpha-by-domain.txt
+++ b/library/cpp/tld/tlds-alpha-by-domain.txt
@@ -486,7 +486,7 @@ GALLUP
GAME
GAMES
GAP
-GAY
+GAY
GARDEN
GB
GBIZ