1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. #pragma once #include #include #include #include #include #include #include "arrow/array.h" #include "arrow/array/builder_binary.h" #include "arrow/array/builder_decimal.h" #include "arrow/array/builder_primitive.h" #include "arrow/testing/gtest_util.h" #include "arrow/testing/random.h" #include "arrow/type_fwd.h" #include "arrow/type_traits.h" #include "arrow/util/decimal.h" #include "arrow/util/float16.h" #include "parquet/column_reader.h" #include "parquet/test_util.h" namespace parquet { using internal::RecordReader; namespace arrow { using ::arrow::Array; using ::arrow::ChunkedArray; using ::arrow::Status; template > struct DecimalWithPrecisionAndScale { using type = T; static_assert(PRECISION >= T::kMinPrecision && PRECISION <= T::kMaxPrecision, "Invalid precision value"); static constexpr ::arrow::Type::type type_id = T::type_id; static constexpr int32_t precision = PRECISION; static constexpr int32_t scale = PRECISION - 1; }; template using Decimal32WithPrecisionAndScale = DecimalWithPrecisionAndScale<::arrow::Decimal32Type, PRECISION>; template using Decimal64WithPrecisionAndScale = DecimalWithPrecisionAndScale<::arrow::Decimal64Type, PRECISION>; template using Decimal128WithPrecisionAndScale = DecimalWithPrecisionAndScale<::arrow::Decimal128Type, PRECISION>; template using Decimal256WithPrecisionAndScale = DecimalWithPrecisionAndScale<::arrow::Decimal256Type, PRECISION>; template ::arrow::enable_if_floating_point NonNullArray( size_t size, std::shared_ptr* out) { using c_type = typename ArrowType::c_type; std::vector values; if constexpr (::arrow::is_half_float_type::value) { values.resize(size); test::random_float16_numbers(static_cast(size), 0, ::arrow::util::Float16(0.0f), ::arrow::util::Float16(1.0f), values.data()); } else { ::arrow::random_real(size, 0, static_cast(0), static_cast(1), &values); } ::arrow::NumericBuilder builder; RETURN_NOT_OK(builder.AppendValues(values.data(), values.size())); return builder.Finish(out); } template ::arrow::enable_if_integer NonNullArray(size_t size, std::shared_ptr* out) { std::vector values; ::arrow::randint(size, 0, 64, &values); // Passing data type so this will work with TimestampType too ::arrow::NumericBuilder builder(std::make_shared(), ::arrow::default_memory_pool()); RETURN_NOT_OK(builder.AppendValues(values.data(), values.size())); return builder.Finish(out); } template ::arrow::enable_if_date NonNullArray(size_t size, std::shared_ptr* out) { std::vector values; ::arrow::randint(size, 0, 24, &values); for (size_t i = 0; i < size; i++) { values[i] *= 86400000; } // Passing data type so this will work with TimestampType too ::arrow::NumericBuilder builder(std::make_shared(), ::arrow::default_memory_pool()); RETURN_NOT_OK(builder.AppendValues(values.data(), values.size())); return builder.Finish(out); } template ::arrow::enable_if_base_binary NonNullArray( size_t size, std::shared_ptr* out) { using BuilderType = typename ::arrow::TypeTraits::BuilderType; BuilderType builder; for (size_t i = 0; i < size; i++) { RETURN_NOT_OK(builder.Append("test-string")); } return builder.Finish(out); } template ::arrow::enable_if_fixed_size_binary NonNullArray( size_t size, std::shared_ptr* out) { using BuilderType = typename ::arrow::TypeTraits::BuilderType; // set byte_width to the length of "fixed": 5 // todo: find a way to generate test data with more diversity. BuilderType builder(::arrow::fixed_size_binary(5)); for (size_t i = 0; i < size; i++) { RETURN_NOT_OK(builder.Append("fixed")); } return builder.Finish(out); } template static void random_decimals(int64_t n, uint32_t seed, int32_t precision, uint8_t* out) { auto gen = ::arrow::random::RandomArrayGenerator(seed); std::shared_ptr decimals; if constexpr (byte_width == 4) { decimals = gen.Decimal32(::arrow::decimal32(precision, 0), n); } else if constexpr (byte_width == 8) { decimals = gen.Decimal64(::arrow::decimal64(precision, 0), n); } else if constexpr (byte_width == 16) { decimals = gen.Decimal128(::arrow::decimal128(precision, 0), n); } else { decimals = gen.Decimal256(::arrow::decimal256(precision, 0), n); } std::memcpy(out, decimals->data()->GetValues(1, 0), byte_width * n); } template ::arrow::enable_if_t>, Status> NonNullArray(size_t size, std::shared_ptr* out) { constexpr int32_t kDecimalPrecision = precision; constexpr int32_t kDecimalScale = ArrowType::scale; const auto type = std::make_shared(kDecimalPrecision, kDecimalScale); const int32_t byte_width = type->byte_width(); constexpr int32_t seed = 0; ARROW_ASSIGN_OR_RAISE(auto out_buf, ::arrow::AllocateBuffer(size * byte_width)); random_decimals(size, seed, kDecimalPrecision, out_buf->mutable_data()); using Builder = typename ::arrow::TypeTraits::BuilderType; Builder builder(type); RETURN_NOT_OK(builder.AppendValues(out_buf->data(), size)); return builder.Finish(out); } template ::arrow::enable_if_boolean NonNullArray(size_t size, std::shared_ptr* out) { std::vector values; ::arrow::randint(size, 0, 1, &values); ::arrow::BooleanBuilder builder; RETURN_NOT_OK(builder.AppendValues(values.data(), values.size())); return builder.Finish(out); } // This helper function only supports (size/2) nulls. template ::arrow::enable_if_floating_point NullableArray( size_t size, size_t num_nulls, uint32_t seed, std::shared_ptr* out) { using c_type = typename ArrowType::c_type; std::vector values; if constexpr (::arrow::is_half_float_type::value) { values.resize(size); test::random_float16_numbers(static_cast(size), 0, ::arrow::util::Float16(-1e4f), ::arrow::util::Float16(1e4f), values.data()); } else { ::arrow::random_real(size, seed, static_cast(-1e10), static_cast(1e10), &values); } std::vector valid_bytes(size, 1); for (size_t i = 0; i < num_nulls; i++) { valid_bytes[i * 2] = 0; } ::arrow::NumericBuilder builder; if (values.size() > 0) { RETURN_NOT_OK(builder.AppendValues(values.data(), values.size(), valid_bytes.data())); } return builder.Finish(out); } // This helper function only supports (size/2) nulls. template ::arrow::enable_if_integer NullableArray(size_t size, size_t num_nulls, uint32_t seed, std::shared_ptr* out) { std::vector values; // Seed is random in Arrow right now (void)seed; ::arrow::randint(size, 0, 64, &values); std::vector valid_bytes(size, 1); for (size_t i = 0; i < num_nulls; i++) { valid_bytes[i * 2] = 0; } // Passing data type so this will work with TimestampType too ::arrow::NumericBuilder builder(std::make_shared(), ::arrow::default_memory_pool()); RETURN_NOT_OK(builder.AppendValues(values.data(), values.size(), valid_bytes.data())); return builder.Finish(out); } template ::arrow::enable_if_date NullableArray(size_t size, size_t num_nulls, uint32_t seed, std::shared_ptr* out) { std::vector values; // Seed is random in Arrow right now (void)seed; ::arrow::randint(size, 0, 24, &values); for (size_t i = 0; i < size; i++) { values[i] *= 86400000; } std::vector valid_bytes(size, 1); for (size_t i = 0; i < num_nulls; i++) { valid_bytes[i * 2] = 0; } // Passing data type so this will work with TimestampType too ::arrow::NumericBuilder builder(std::make_shared(), ::arrow::default_memory_pool()); RETURN_NOT_OK(builder.AppendValues(values.data(), values.size(), valid_bytes.data())); return builder.Finish(out); } // This helper function only supports (size/2) nulls yet. template ::arrow::enable_if_base_binary NullableArray( size_t size, size_t num_nulls, uint32_t seed, std::shared_ptr<::arrow::Array>* out) { std::vector valid_bytes(size, 1); for (size_t i = 0; i < num_nulls; i++) { valid_bytes[i * 2] = 0; } using BuilderType = typename ::arrow::TypeTraits::BuilderType; BuilderType builder; const int kBufferSize = 10; uint8_t buffer[kBufferSize]; for (size_t i = 0; i < size; i++) { if (!valid_bytes[i]) { RETURN_NOT_OK(builder.AppendNull()); } else { ::arrow::random_bytes(kBufferSize, seed + static_cast(i), buffer); if (ArrowType::is_utf8) { // Trivially force data to be valid UTF8 by making it all ASCII for (auto& byte : buffer) { byte &= 0x7f; } } RETURN_NOT_OK(builder.Append(buffer, kBufferSize)); } } return builder.Finish(out); } // This helper function only supports (size/2) nulls yet, // same as NullableArray(..) template ::arrow::enable_if_fixed_size_binary NullableArray( size_t size, size_t num_nulls, uint32_t seed, std::shared_ptr<::arrow::Array>* out) { std::vector valid_bytes(size, 1); for (size_t i = 0; i < num_nulls; i++) { valid_bytes[i * 2] = 0; } using BuilderType = typename ::arrow::TypeTraits::BuilderType; const int byte_width = 10; BuilderType builder(::arrow::fixed_size_binary(byte_width)); const int kBufferSize = byte_width; uint8_t buffer[kBufferSize]; for (size_t i = 0; i < size; i++) { if (!valid_bytes[i]) { RETURN_NOT_OK(builder.AppendNull()); } else { ::arrow::random_bytes(kBufferSize, seed + static_cast(i), buffer); RETURN_NOT_OK(builder.Append(buffer)); } } return builder.Finish(out); } template ::arrow::enable_if_t>, Status> NullableArray(size_t size, size_t num_nulls, uint32_t seed, std::shared_ptr<::arrow::Array>* out) { std::vector valid_bytes(size, '\1'); for (size_t i = 0; i < num_nulls; ++i) { valid_bytes[i * 2] = '\0'; } constexpr int32_t kDecimalPrecision = precision; constexpr int32_t kDecimalScale = ArrowType::scale; const auto type = std::make_shared(kDecimalPrecision, kDecimalScale); const int32_t byte_width = type->byte_width(); ARROW_ASSIGN_OR_RAISE(auto out_buf, ::arrow::AllocateBuffer(size * byte_width)); random_decimals(size, seed, precision, out_buf->mutable_data()); using Builder = typename ::arrow::TypeTraits::BuilderType; Builder builder(type); RETURN_NOT_OK(builder.AppendValues(out_buf->data(), size, valid_bytes.data())); return builder.Finish(out); } // This helper function only supports (size/2) nulls yet. template ::arrow::enable_if_boolean NullableArray(size_t size, size_t num_nulls, uint32_t seed, std::shared_ptr* out) { std::vector values; // Seed is random in Arrow right now (void)seed; ::arrow::randint(size, 0, 1, &values); std::vector valid_bytes(size, 1); for (size_t i = 0; i < num_nulls; i++) { valid_bytes[i * 2] = 0; } ::arrow::BooleanBuilder builder; RETURN_NOT_OK(builder.AppendValues(values.data(), values.size(), valid_bytes.data())); return builder.Finish(out); } /// Wrap an Array into a ListArray by splitting it up into size lists. /// /// This helper function only supports (size/2) nulls. Status MakeListArray(const std::shared_ptr& values, int64_t size, int64_t null_count, const std::string& item_name, bool nullable_values, std::shared_ptr<::arrow::ListArray>* out) { // We always include an empty list int64_t non_null_entries = size - null_count - 1; int64_t length_per_entry = values->length() / non_null_entries; auto offsets = AllocateBuffer(); RETURN_NOT_OK(offsets->Resize((size + 1) * sizeof(int32_t))); int32_t* offsets_ptr = reinterpret_cast(offsets->mutable_data()); auto null_bitmap = AllocateBuffer(); int64_t bitmap_size = ::arrow::bit_util::BytesForBits(size); RETURN_NOT_OK(null_bitmap->Resize(bitmap_size)); uint8_t* null_bitmap_ptr = null_bitmap->mutable_data(); memset(null_bitmap_ptr, 0, bitmap_size); int32_t current_offset = 0; for (int64_t i = 0; i < size; i++) { offsets_ptr[i] = current_offset; if (!(((i % 2) == 0) && ((i / 2) < null_count))) { // Non-null list (list with index 1 is always empty). ::arrow::bit_util::SetBit(null_bitmap_ptr, i); if (i != 1) { current_offset += static_cast(length_per_entry); } } } offsets_ptr[size] = static_cast(values->length()); auto value_field = ::arrow::field(item_name, values->type(), nullable_values); *out = std::make_shared<::arrow::ListArray>(::arrow::list(value_field), size, offsets, values, null_bitmap, null_count); return Status::OK(); } // Make an array containing only empty lists, with a null values array Status MakeEmptyListsArray(int64_t size, std::shared_ptr* out_array) { // Allocate an offsets buffer containing only zeroes const int64_t offsets_nbytes = (size + 1) * sizeof(int32_t); ARROW_ASSIGN_OR_RAISE(auto offsets_buffer, ::arrow::AllocateBuffer(offsets_nbytes)); memset(offsets_buffer->mutable_data(), 0, offsets_nbytes); auto value_field = ::arrow::field("item", ::arrow::float64(), false /* nullable_values */); auto list_type = ::arrow::list(value_field); std::vector> child_buffers = {nullptr /* null bitmap */, nullptr /* values */}; auto child_data = ::arrow::ArrayData::Make(value_field->type(), 0, std::move(child_buffers)); std::vector> buffers = {nullptr /* bitmap */, std::move(offsets_buffer)}; auto array_data = ::arrow::ArrayData::Make(list_type, size, std::move(buffers)); array_data->child_data.push_back(child_data); *out_array = ::arrow::MakeArray(array_data); return Status::OK(); } std::shared_ptr<::arrow::Table> MakeSimpleTable( const std::shared_ptr& values, bool nullable) { auto schema = ::arrow::schema({::arrow::field("col", values->type(), nullable)}); return ::arrow::Table::Make(schema, {values}); } std::shared_ptr<::arrow::Table> MakeSimpleTable(const std::shared_ptr& values, bool nullable) { auto carr = std::make_shared<::arrow::ChunkedArray>(values); return MakeSimpleTable(carr, nullable); } template void ExpectArray(T* expected, Array* result) { auto p_array = static_cast<::arrow::PrimitiveArray*>(result); for (int i = 0; i < result->length(); i++) { EXPECT_EQ(expected[i], reinterpret_cast(p_array->values()->data())[i]); } } template void ExpectArrayT(void* expected, Array* result) { ::arrow::PrimitiveArray* p_array = static_cast<::arrow::PrimitiveArray*>(result); for (int64_t i = 0; i < result->length(); i++) { EXPECT_EQ(reinterpret_cast(expected)[i], reinterpret_cast( p_array->values()->data())[i]); } } template <> void ExpectArrayT<::arrow::BooleanType>(void* expected, Array* result) { ::arrow::BooleanBuilder builder; ARROW_EXPECT_OK( builder.AppendValues(reinterpret_cast(expected), result->length())); std::shared_ptr expected_array; ARROW_EXPECT_OK(builder.Finish(&expected_array)); EXPECT_TRUE(result->Equals(*expected_array)); } } // namespace arrow } // namespace parquet