aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshindo <shindo@yandex-team.ru>2022-02-10 16:47:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:21 +0300
commitd51630a60070d3c63b5f11ad28bc35c3c347637e (patch)
treedc06dffc43df75f5ac5fea14c2a80a6b61c1ca31
parentda8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e (diff)
downloadydb-d51630a60070d3c63b5f11ad28bc35c3c347637e.tar.gz
Restoring authorship annotation for <shindo@yandex-team.ru>. Commit 1 of 2.
-rw-r--r--contrib/libs/rapidjson/include/rapidjson/writer.h14
-rw-r--r--contrib/python/ya.make4
-rw-r--r--library/python/ya.make2
-rw-r--r--ydb/public/sdk/python/ydb/_sp_impl.py34
-rw-r--r--ydb/public/sdk/python/ydb/table.py32
5 files changed, 43 insertions, 43 deletions
diff --git a/contrib/libs/rapidjson/include/rapidjson/writer.h b/contrib/libs/rapidjson/include/rapidjson/writer.h
index 68e14d9fd2..b9df80af44 100644
--- a/contrib/libs/rapidjson/include/rapidjson/writer.h
+++ b/contrib/libs/rapidjson/include/rapidjson/writer.h
@@ -66,7 +66,7 @@ enum WriteFlag {
kWriteNoFlags = 0, //!< No flags are set.
kWriteValidateEncodingFlag = 1, //!< Validate encoding of JSON strings.
kWriteNanAndInfFlag = 2, //!< Allow writing of Infinity, -Infinity and NaN.
- kWriteNoEscapeSlashFlag = 4, //!< Disable escaping of '/'.
+ kWriteNoEscapeSlashFlag = 4, //!< Disable escaping of '/'.
kWriteDefaultFlags = RAPIDJSON_WRITE_DEFAULT_FLAGS //!< Default write flags. Can be customized by defining RAPIDJSON_WRITE_DEFAULT_FLAGS
};
@@ -374,7 +374,7 @@ protected:
//0 1 2 3 4 5 6 7 8 9 A B C D E F
'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'b', 't', 'n', 'u', 'f', 'r', 'u', 'u', // 00
'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', 'u', // 10
- 0, 0, '"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20
+ 0, 0, '"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20
Z16, Z16, // 30~4F
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,'\\', 0, 0, 0, // 50
Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16, Z16 // 60~FF
@@ -432,11 +432,11 @@ protected:
PutUnsafe(*os_, hexDigits[static_cast<unsigned char>(c) & 0xF]);
}
}
- else if (RAPIDJSON_UNLIKELY(c == '/' && !(writeFlags & kWriteNoEscapeSlashFlag))) {
- is.Take();
- PutUnsafe(*os_, '\\');
- PutUnsafe(*os_, '/');
- }
+ else if (RAPIDJSON_UNLIKELY(c == '/' && !(writeFlags & kWriteNoEscapeSlashFlag))) {
+ is.Take();
+ PutUnsafe(*os_, '\\');
+ PutUnsafe(*os_, '/');
+ }
else if (RAPIDJSON_UNLIKELY(!(writeFlags & kWriteValidateEncodingFlag ?
Transcoder<SourceEncoding, TargetEncoding>::Validate(is, *os_) :
Transcoder<SourceEncoding, TargetEncoding>::TranscodeUnsafe(is, *os_))))
diff --git a/contrib/python/ya.make b/contrib/python/ya.make
index d01ced9f3a..9c7974062e 100644
--- a/contrib/python/ya.make
+++ b/contrib/python/ya.make
@@ -644,7 +644,7 @@ RECURSE(
mujson
multidict
multitasking
- munch
+ munch
murmurhash
mutablerecords
mypy
@@ -959,7 +959,7 @@ RECURSE(
ruamel.std.pathlib
ruamel.yaml
Rx
- s3-tests
+ s3-tests
s3transfer
sacrebleu
salt-pepper
diff --git a/library/python/ya.make b/library/python/ya.make
index 2e1eb6e0e1..628e5234e4 100644
--- a/library/python/ya.make
+++ b/library/python/ya.make
@@ -107,7 +107,7 @@ RECURSE(
json/test
json/test/py2
json/test/py3
- langdetect
+ langdetect
langmask
langs
luigi
diff --git a/ydb/public/sdk/python/ydb/_sp_impl.py b/ydb/public/sdk/python/ydb/_sp_impl.py
index a8529d7321..36afd21b72 100644
--- a/ydb/public/sdk/python/ydb/_sp_impl.py
+++ b/ydb/public/sdk/python/ydb/_sp_impl.py
@@ -119,25 +119,25 @@ class SessionPoolImpl(object):
with self._lock:
return self._active_count
- @property
- def free_size(self):
- with self._lock:
+ @property
+ def free_size(self):
+ with self._lock:
return self._active_queue.qsize()
-
- @property
- def busy_size(self):
- with self._lock:
+
+ @property
+ def busy_size(self):
+ with self._lock:
return self._active_count - self._active_queue.qsize()
-
- @property
- def max_size(self):
- return self._size
-
- @property
- def waiters_count(self):
- with self._lock:
- return len(self._waiters)
-
+
+ @property
+ def max_size(self):
+ return self._size
+
+ @property
+ def waiters_count(self):
+ with self._lock:
+ return len(self._waiters)
+
def _is_min_pool_size_satisfied(self, delta=0):
if self._terminating:
return True
diff --git a/ydb/public/sdk/python/ydb/table.py b/ydb/public/sdk/python/ydb/table.py
index c49c4660c7..fc32956da3 100644
--- a/ydb/public/sdk/python/ydb/table.py
+++ b/ydb/public/sdk/python/ydb/table.py
@@ -2450,22 +2450,22 @@ class SessionPool(object):
def active_size(self):
return self._pool_impl.active_size
- @property
- def free_size(self):
- return self._pool_impl.free_size
-
- @property
- def busy_size(self):
- return self._pool_impl.busy_size
-
- @property
- def max_size(self):
- return self._pool_impl.max_size
-
- @property
- def waiters_count(self):
- return self._pool_impl.waiters_count
-
+ @property
+ def free_size(self):
+ return self._pool_impl.free_size
+
+ @property
+ def busy_size(self):
+ return self._pool_impl.busy_size
+
+ @property
+ def max_size(self):
+ return self._pool_impl.max_size
+
+ @property
+ def waiters_count(self):
+ return self._pool_impl.waiters_count
+
@tracing.with_trace()
def subscribe(self):
return self._pool_impl.subscribe()