Browse Source

Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 2 of 2.

vvvv 3 years ago
parent
commit
a693106aae

+ 1 - 1
build/conf/project_specific/yql_udf.conf

@@ -59,7 +59,7 @@ module YQL_UDF_TEST: PY2TEST {
     DEPENDS(yql/tools/astdiff)
     DEPENDS(yql/tools/udf_resolver)
     DEPENDS(yql/tools/yqlrun)
-    DATA(arcadia/ydb/library/yql/mount) 
+    DATA(arcadia/ydb/library/yql/mount)
     DATA(arcadia/yql/cfg/tests)
 }
 

+ 6 - 6
build/plugins/yql_python_udf.py

@@ -15,10 +15,10 @@ def onregister_yql_python_udf(unit, *args):
     add_libra_modules = get_or_default(kv, 'ADD_LIBRA_MODULES', 'no') == 'yes'
 
     use_arcadia_python = unit.get('USE_ARCADIA_PYTHON') == 'yes'
-    py3 = unit.get('PYTHON3') == 'yes' 
+    py3 = unit.get('PYTHON3') == 'yes'
 
-    unit.onyql_abi_version(['2', '9', '0']) 
-    unit.onpeerdir(['yql/udfs/common/python/python_udf']) 
+    unit.onyql_abi_version(['2', '9', '0'])
+    unit.onpeerdir(['yql/udfs/common/python/python_udf'])
     unit.onpeerdir(['ydb/library/yql/public/udf'])
 
     if add_libra_modules:
@@ -29,9 +29,9 @@ def onregister_yql_python_udf(unit, *args):
         flavor = 'Arcadia'
         unit.onpeerdir([
             'library/python/runtime',
-            'yql/udfs/common/python/main' 
-        ] if not py3 else [ 
-            'library/python/runtime_py3', 
+            'yql/udfs/common/python/main'
+        ] if not py3 else [
+            'library/python/runtime_py3',
             'yql/udfs/common/python/main_py3'
         ])
     else:

+ 6 - 6
build/rules/contrib_restricted.policy

@@ -14,12 +14,12 @@ ALLOW saas/library/hash_to_block_mode -> contrib/restricted/cityhash-1.0.2
 # dragonbox is a specific library for float formatting
 ALLOW clickhouse -> contrib/restricted/dragonbox
 
-# same rules for restricted set of sources in YQL 
-ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/cityhash-1.0.2 
-ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/boost 
-ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/dragonbox 
-ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/fast_float 
- 
+# same rules for restricted set of sources in YQL
+ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/cityhash-1.0.2
+ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/boost
+ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/dragonbox
+ALLOW ydb/library/yql/udfs/common/clickhouse/client -> contrib/restricted/fast_float
+
 # fast_float is a faster alternative to double-conversion for float parsing.
 # ClickHouse uses the best libraries for performance, that's why it changes them with insane speed.
 # Arcadia is not ready for this, that's why we added this library in restricted.

+ 12 - 12
build/rules/kikimr.policy

@@ -141,28 +141,28 @@ ALLOW solomon/ -> kikimr/library/mkql_proto/protos
 ALLOW solomon/ -> kikimr/yq/libs/config/protos
 ALLOW solomon/ -> kikimr/library/login/protos
 
-ALLOW ydb/library/yql/providers/dq/actors -> kikimr/core/base 
-ALLOW ydb/library/yql/providers/dq/worker_manager -> kikimr/core/kqp 
+ALLOW ydb/library/yql/providers/dq/actors -> kikimr/core/base
+ALLOW ydb/library/yql/providers/dq/worker_manager -> kikimr/core/kqp
 
-ALLOW ydb/library/yql/providers/clickhouse/provider -> kikimr/yq/libs/db_resolver 
-ALLOW ydb/library/yql/providers/clickhouse/provider -> kikimr/yq/libs/common 
+ALLOW ydb/library/yql/providers/clickhouse/provider -> kikimr/yq/libs/db_resolver
+ALLOW ydb/library/yql/providers/clickhouse/provider -> kikimr/yq/libs/common
 
-ALLOW ydb/library/yql/providers/pq/provider -> kikimr/yq/libs/db_resolver 
-ALLOW ydb/library/yql/providers/pq/provider -> kikimr/yq/libs/common 
+ALLOW ydb/library/yql/providers/pq/provider -> kikimr/yq/libs/db_resolver
+ALLOW ydb/library/yql/providers/pq/provider -> kikimr/yq/libs/common
 
 ALLOW yql/tools/yqlworker/dq/worker_manager -> kikimr/core/kqp
 
-ALLOW ydb/library/yql/dq/actors/compute -> kikimr/core/kqp/runtime 
-ALLOW ydb/library/yql/dq/actors/compute -> kikimr/core/kqp/common 
-ALLOW ydb/library/yql/dq/actors/compute -> kikimr/core/protos 
+ALLOW ydb/library/yql/dq/actors/compute -> kikimr/core/kqp/runtime
+ALLOW ydb/library/yql/dq/actors/compute -> kikimr/core/kqp/common
+ALLOW ydb/library/yql/dq/actors/compute -> kikimr/core/protos
 
 ALLOW yql/ -> kikimr/library/mkql_proto
 ALLOW yql/ -> kikimr/library/binary_json
 ALLOW yql/ -> kikimr/library/dynumber
 ALLOW yql/ -> kikimr/yndx/security
 
-ALLOW ydb/library/yql/providers/ydb -> kikimr/yq 
-ALLOW ydb/library/yql/providers/ydb -> kikimr/public/lib/experimental 
+ALLOW ydb/library/yql/providers/ydb -> kikimr/yq
+ALLOW ydb/library/yql/providers/ydb -> kikimr/public/lib/experimental
 
 ALLOW yql/udfs/ydb -> kikimr/public/lib/experimental
 
@@ -175,7 +175,7 @@ ALLOW yql/library/test_framework -> kikimr/yf/sdk/python/native
 
 ALLOW yql/providers/rtmr/gateway -> kikimr/yf/yf_client
 ALLOW yql/providers/rtmr/gateway -> kikimr/yf/util
-ALLOW ydb/library/yql/providers/common/ut_helpers -> kikimr/core/testlib/basics 
+ALLOW ydb/library/yql/providers/common/ut_helpers -> kikimr/core/testlib/basics
 
 ALLOW yql/tests -> kikimr/yf
 ALLOW yql/tests -> kikimr/yq

+ 2 - 2
build/scripts/gen_yql_python_udf.py

@@ -1,7 +1,7 @@
 import sys
 
 TEMPLATE="""
-#include <yql/udfs/common/python/python_udf/python_udf.h> 
+#include <yql/udfs/common/python/python_udf/python_udf.h>
 
 #include <ydb/library/yql/public/udf/udf_registrator.h>
 
@@ -27,7 +27,7 @@ extern "C" UDF_API void Register(IRegistrator& registrator, ui32 flags) {
 extern "C" UDF_API ui32 AbiVersion() {
     return CurrentAbiVersion();
 }
- 
+
 extern "C" UDF_API void SetBackTraceCallback(TBackTraceCallback callback) {
     SetBackTraceCallbackImpl(callback);
 }

+ 2 - 2
contrib/libs/cxxsupp/libcxxrt/guard.cc

@@ -122,7 +122,7 @@ extern "C" int __cxa_guard_acquire(volatile guard_t *guard_object)
 	// if one is already established and we end up seeing an initialised state
 	// then it's a fast path, otherwise we'll do something more expensive than
 	// this test anyway...
-	if (INITIALISED == __atomic_load_n(INIT_PART(guard_object), __ATOMIC_RELAXED)) 
+	if (INITIALISED == __atomic_load_n(INIT_PART(guard_object), __ATOMIC_RELAXED))
 		return 0;
 	// Spin trying to do the initialisation
 	for (;;)
@@ -142,7 +142,7 @@ extern "C" int __cxa_guard_acquire(volatile guard_t *guard_object)
 
 			// No need for a memory barrier here,
 			// see first comment.
-			__atomic_store_n(LOCK_PART(guard_object), INITIAL, __ATOMIC_RELAXED); 
+			__atomic_store_n(LOCK_PART(guard_object), INITIAL, __ATOMIC_RELAXED);
 			return 0;
 		}
 		// If lock and init bit are in the same word, check again

+ 3 - 3
contrib/libs/grpc/src/core/lib/iomgr/error.cc

@@ -737,9 +737,9 @@ static char* finish_kvs(kv_pairs* kvs) {
   return s;
 }
 
-// Newly allocated error string is stored into err object via atomic cas, and this drives coverity crazy 
-// Disable allocation checks as the code is fine. 
-// coverity[-alloc] 
+// Newly allocated error string is stored into err object via atomic cas, and this drives coverity crazy
+// Disable allocation checks as the code is fine.
+// coverity[-alloc]
 const char* grpc_error_string(grpc_error* err) {
   GPR_TIMER_SCOPE("grpc_error_string", 0);
   if (err == GRPC_ERROR_NONE) return no_error_string;

+ 5 - 5
contrib/libs/highwayhash/highwayhash/os_specific.cc

@@ -40,7 +40,7 @@
 #define OS_LINUX 0
 #endif
 
-#if defined(__MACH__) || defined(__APPLE__) 
+#if defined(__MACH__) || defined(__APPLE__)
 #define OS_MAC 1
 #include <mach/mach.h>
 #include <mach/mach_time.h>
@@ -102,7 +102,7 @@ void RaiseThreadPriority() {
   // omit: SCHED_RR and SCHED_FIFO with sched_priority max, max-1 and max/2
   // lead to 2-3x runtime and higher variability!
 #elif OS_FREEBSD
-#elif OS_MAC 
+#elif OS_MAC
 #else
 #error "port"
 #endif
@@ -166,7 +166,7 @@ void SetThreadAffinity(ThreadAffinity* affinity) {
   const int err = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, pid,
                                      sizeof(cpuset_t), &affinity->set);
   CHECK(err == 0);
-#elif OS_MAC 
+#elif OS_MAC
 #else
 #error "port"
 #endif
@@ -194,7 +194,7 @@ std::vector<int> AvailableCPUs() {
       cpus.push_back(cpu);
     }
   }
-#elif OS_MAC 
+#elif OS_MAC
 #else
 #error "port"
 #endif
@@ -211,7 +211,7 @@ void PinThreadToCPU(const int cpu) {
 #elif OS_FREEBSD
   CPU_ZERO(&affinity.set);
   CPU_SET(cpu, &affinity.set);
-#elif OS_MAC 
+#elif OS_MAC
 #else
 #error "port"
 #endif

+ 20 - 20
contrib/tools/python/src/Include/pyport.h

@@ -763,16 +763,16 @@ extern int fdatasync(int);
 #       define HAVE_DECLSPEC_DLL
 #endif
 
-/* 
- * GCC visibility support, introduced in GCC 4.0. Only matters when 
- * compiling with gcc's -fvisibility=hidden argument.  This applies to all 
- * binaries and when embedding, not just libpython.so.  See 
- * http://gcc.gnu.org/wiki/Visibility for more information. 
- */ 
-#if defined(__GNUC__) && __GNUC__ >= 4 
-#       define HAVE_ATTRIBUTE_VISIBILITY 
-#endif 
- 
+/*
+ * GCC visibility support, introduced in GCC 4.0. Only matters when
+ * compiling with gcc's -fvisibility=hidden argument.  This applies to all
+ * binaries and when embedding, not just libpython.so.  See
+ * http://gcc.gnu.org/wiki/Visibility for more information.
+ */
+#if defined(__GNUC__) && __GNUC__ >= 4
+#       define HAVE_ATTRIBUTE_VISIBILITY
+#endif
+
 /* only get special linkage if built as shared or platform is Cygwin */
 #if defined(Py_ENABLE_SHARED)
 #       if defined(HAVE_DECLSPEC_DLL)
@@ -804,16 +804,16 @@ extern int fdatasync(int);
 #                       endif /* __cplusplus */
 #               endif /* Py_BUILD_CORE */
 #       endif /* HAVE_DECLSPEC */
-#elif defined(HAVE_ATTRIBUTE_VISIBILITY) 
-#       define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE 
-#       define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE 
-#       ifdef Py_BUILD_CORE 
-#               define PyMODINIT_FUNC void 
-#       elif defined(__cplusplus) 
-#               define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void 
-#       else /* __cplusplus */ 
-#               define PyMODINIT_FUNC __attribute__((visibility("default"))) void 
-#       endif /* Py_BUILD_CORE */ 
+#elif defined(HAVE_ATTRIBUTE_VISIBILITY)
+#       define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE
+#       define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE
+#       ifdef Py_BUILD_CORE
+#               define PyMODINIT_FUNC void
+#       elif defined(__cplusplus)
+#               define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void
+#       else /* __cplusplus */
+#               define PyMODINIT_FUNC __attribute__((visibility("default"))) void
+#       endif /* Py_BUILD_CORE */
 #endif /* Py_ENABLE_SHARED */
 
 /* If no external linkage macros defined by now, create defaults */

+ 13 - 13
library/cpp/actors/core/actor.h

@@ -3,7 +3,7 @@
 #include "event.h"
 #include "monotonic.h"
 #include <util/system/tls.h>
-#include <library/cpp/actors/util/local_process_key.h> 
+#include <library/cpp/actors/util/local_process_key.h>
 
 namespace NActors {
     class TActorSystem;
@@ -383,16 +383,16 @@ namespace NActors {
         }
     };
 
-    struct TActorActivityTag {}; 
- 
-    inline size_t GetActivityTypeCount() { 
-        return TLocalProcessKeyState<TActorActivityTag>::GetInstance().GetCount(); 
-    } 
- 
-    inline TStringBuf GetActivityTypeName(size_t index) { 
-        return TLocalProcessKeyState<TActorActivityTag>::GetInstance().GetNameByIndex(index); 
-    } 
- 
+    struct TActorActivityTag {};
+
+    inline size_t GetActivityTypeCount() {
+        return TLocalProcessKeyState<TActorActivityTag>::GetInstance().GetCount();
+    }
+
+    inline TStringBuf GetActivityTypeName(size_t index) {
+        return TLocalProcessKeyState<TActorActivityTag>::GetInstance().GetNameByIndex(index);
+    }
+
     template <typename TDerived>
     class TActor: public IActor {
     private:
@@ -415,8 +415,8 @@ namespace NActors {
                 //        static_cast<IActor::EActorActivity>(TDerived::ActorActivityType()));
                 //}
             }
-        } 
- 
+        }
+
     protected:
         //* Comment this function to find unmarked activities
         static constexpr IActor::EActivityType ActorActivityType() {

Some files were not shown because too many files changed in this diff