refactor(yabloc_particle_filter): apply static analysis

Description
This PR applies some suggestions from the linter to localization/yabloc/yabloc_particle_filter.
Checked with clang-tidy and cppcheck.
Fixed:

use explicit cast
change variable names

camelCase to snake_case for method/variable
snake_case to CamelCase for class name
add _ to private variable
align variable name in header's definition and the implementation
LOCAL_VAR to local_var
rename some variables to avoid shadowed declaration

add or removed keyword from function/method which linter suggested
use std::accumulate instead of a raw loop
remove unused methods/functions and files

not Fixed:

safe access to members of unions by boost::variant

speed concern

pointer arithmetic (cppcoreguidelines-pro-bounds-pointer-arithmetic)

https://github.com/autowarefoundation/autoware.universe/blob/9047cdd5852ccd525ead78763a8184b8c7a8b563/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp#L28-L31 , etc.

readability-function-cognitive-complexity for direct_cost_map
notes for nesting level

Tests performed
Checked with clang-tidy and cppcheck (v2.14.1)

check_linter.sh
#!/bin/bash
set -eux

TARGET_DIR=$1

current_dir=$(basename $(pwd))
if [[ ! $current_dir =~ ^(autoware|pilot-auto) ]]; then
    echo "This script must be run in a directory with a prefix of autoware or pilot-auto."
    exit 1
fi

set +eux
export CPLUS_INCLUDE_PATH=/usr/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11:$CPLUS_INCLUDE_PATH
set -eux

fdfind -e cpp -e hpp --full-path ${TARGET_DIR} | xargs -P $(nproc) -I{} cpplint {}
fdfind -e cpp -e hpp --full-path ${TARGET_DIR} | xargs -P $(nproc) -I{} clang-tidy -p build/ {}

Before fixing the code:

Check with check_linter.sh
$ ./check_linter.sh yabloc_particle_filter
...
2016 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/prediction/resampling_history.hpp:38:3: warning: function 'check_history_validity' should be marked [[nodiscard]] [modernize-use-nodiscard]
  bool check_history_validity() const
  ^
  [[nodiscard]]
Suppressed 2015 warnings (2015 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2387 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/logit.cpp:27:3: warning: constructor does not initialize these fields: table_ [cppcoreguidelines-pro-type-member-init]
  ProbToLogitTable()
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/logit.cpp:30:17: warning: narrowing conversion from 'int' to 'float' [cppcoreguidelines-narrowing-conversions]
      float p = i / 100.0f;
                ^
Suppressed 2385 warnings (2385 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
5487 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/prediction/resampler.hpp:25:7: warning: invalid case style for class 'resampling_skip_exception' [readability-identifier-naming]
class resampling_skip_exception : public std::runtime_error
      ^~~~~~~~~~~~~~~~~~~~~~~~~
      ResamplingSkipException
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/prediction/resampler.hpp:59:3: warning: function 'random_from_01_uniformly' should be marked [[nodiscard]] [modernize-use-nodiscard]
  double random_from_01_uniformly() const;
  ^
  [[nodiscard]]
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/prediction/resampler.hpp:61:3: warning: function 'check_weighted_particles_validity' should be marked [[nodiscard]] [modernize-use-nodiscard]
  bool check_weighted_particles_validity(const ParticleArray & weighted_particles) const;
  ^
  [[nodiscard]]
Suppressed 5484 warnings (5484 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7987 warnings generated.
Suppressed 7987 warnings (7987 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
10483 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/mean.hpp:23:1: warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
namespace yabloc
^~~~~~~~~~~~~~~~
namespace yabloc::modularized_particle_filter
Suppressed 10484 warnings (10482 in non-user code, 2 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
14026 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:25:1: warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
namespace yabloc
^~~~~~~~~~~~~~~~
namespace yabloc::modularized_particle_filter::util
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:29:20: warning: variable 'seed_gen' defined in a header file; variable definitions in header files can lead to ODR violations [misc-definitions-in-headers]
std::random_device seed_gen;
                   ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:30:28: warning: variable 'engine' defined in a header file; variable definitions in header files can lead to ODR violations [misc-definitions-in-headers]
std::default_random_engine engine(seed_gen());
                           ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:32:17: warning: function 'nrand_2d' defined in a header file; function definitions in header files can lead to ODR violations [misc-definitions-in-headers]
Eigen::Vector2d nrand_2d(const Eigen::Matrix2d cov)
                ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:32:17: note: make as 'inline'
Eigen::Vector2d nrand_2d(const Eigen::Matrix2d cov)
                ^
inline
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:32:48: warning: the const qualified parameter 'cov' is copied for each invocation; consider making it a reference [performance-unnecessary-value-param]
Eigen::Vector2d nrand_2d(const Eigen::Matrix2d cov)
                                               ^
                                              &
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:53:8: warning: function 'normalize_radian' defined in a header file; function definitions in header files can lead to ODR violations [misc-definitions-in-headers]
double normalize_radian(const double rad, const double min_rad = -M_PI)
       ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/common/prediction_util.hpp:53:8: note: make as 'inline'
double normalize_radian(const double rad, const double min_rad = -M_PI)
       ^
inline
Suppressed 14022 warnings (14020 in non-user code, 2 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
8066 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:19:9: warning: function 'direct_cost_map' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
cv::Mat direct_cost_map(const cv::Mat & cost_map, const cv::Mat & intensity)
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:25:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  for (int i = 0; i < cost_map.rows; i++) {
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:29:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    for (int j = 0; j < cost_map.cols; j++) {
    ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:30:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (intensity_ptr[j] == 0) distances.at(i).at(j) = 0;
      ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:37:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  for (int r = 1; r < cost_map.rows; r++) {
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:41:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    for (int c = 1; c < cost_map.cols; c++) {
    ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:44:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (up < left) {
      ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:45:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < up + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:48:9: note: +1, nesting level increased to 3
      } else {
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:49:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < left + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:57:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  for (int r = cost_map.rows - 2; r >= 0; r--) {
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:61:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    for (int c = cost_map.cols - 2; c >= 0; c--) {
    ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:64:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (down < right) {
      ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:65:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < down + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:68:9: note: +1, nesting level increased to 3
      } else {
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:69:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < right + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:21:17: warning: invalid case style for constexpr variable 'MAX_INT' [readability-identifier-naming]
  constexpr int MAX_INT = std::numeric_limits<int>::max();
                ^~~~~~~
                max_int
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:28:11: warning: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto]
    const uchar * intensity_ptr = intensity.ptr<uchar>(i);
          ^~~~~
          auto
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:30:11: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
      if (intensity_ptr[j] == 0) distances.at(i).at(j) = 0;
          ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:39:5: warning: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto]
    uchar * current_ptr = dst.ptr<uchar>(r);
    ^~~~~
    auto
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:47:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = upper_ptr[c];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:47:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = upper_ptr[c];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:51:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c - 1];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:51:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c - 1];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:59:5: warning: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto]
    uchar * current_ptr = dst.ptr<uchar>(r);
    ^~~~~
    auto
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:67:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = downer_ptr[c];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:67:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = downer_ptr[c];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:71:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c + 1];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:71:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c + 1];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:83:3: warning: multiple declarations in a single statement reduces readability [readability-isolate-declaration]
  cv::Mat hsv, rgb;
  ^~~~~~~~~~~~~~~~~
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:88:11: warning: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto]
    const uchar * src_ptr = cost_map.ptr<uchar>(r);
          ^~~~~
          auto
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:89:5: warning: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto]
    cv::Vec3b * dst_ptr = rgb.ptr<cv::Vec3b>(r);
    ^~~~~~~~~
    auto
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:91:11: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
      if (src_ptr[c] == 0) dst_ptr[c] = cv::Vec3b(0, 0, 0);
          ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:91:28: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
      if (src_ptr[c] == 0) dst_ptr[c] = cv::Vec3b(0, 0, 0);
                           ^
Suppressed 8047 warnings (8047 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7658 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/test/src/test_resampler.cpp:25:15: warning: invalid case style for constexpr variable 'PARTICLE_COUNT' [readability-identifier-naming]
constexpr int PARTICLE_COUNT = 10;
              ^~~~~~~~~~~~~~
              particle_count
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/test/src/test_resampler.cpp:26:15: warning: invalid case style for constexpr variable 'HISTORY_SIZE' [readability-identifier-naming]
constexpr int HISTORY_SIZE = 10;
              ^~~~~~~~~~~~
              history_size
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/test/src/test_resampler.cpp:150:60: warning: narrowing conversion from 'geometry_msgs::msg::Point_::_x_type' (aka 'double') to 'int' [cppcoreguidelines-narrowing-conversions]
    for (const auto & p : predicted.particles) centroid += p.pose.position.x;
                                                           ^
Suppressed 7673 warnings (7655 in non-user code, 18 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
13153 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:41:3: warning: constructor does not initialize these fields: for_fixed_, for_not_fixed_ [cppcoreguidelines-pro-type-member-init]
  explicit WeightManager(rclcpp::Node * node)
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:43:31: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_fixed_.flat_radius_ = node->declare_parameter<float>("for_fixed/flat_radius");
                              ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:44:30: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_fixed_.max_radius_ = node->declare_parameter<float>("for_fixed/max_radius");
                             ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:45:30: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_fixed_.min_weight_ = node->declare_parameter<float>("for_fixed/min_weight");
                             ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:46:30: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_fixed_.max_weight_ = node->declare_parameter<float>("for_fixed/max_weight");
                             ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:49:35: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_not_fixed_.flat_radius_ = node->declare_parameter<float>("for_not_fixed/flat_radius");
                                  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:50:34: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_not_fixed_.max_radius_ = node->declare_parameter<float>("for_not_fixed/max_radius");
                                 ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:51:34: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_not_fixed_.min_weight_ = node->declare_parameter<float>("for_not_fixed/min_weight");
                                 ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:52:34: warning: narrowing conversion from 'double' to 'float' [cppcoreguidelines-narrowing-conversions]
    for_not_fixed_.max_weight_ = node->declare_parameter<float>("for_not_fixed/max_weight");
                                 ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:56:3: warning: function 'normal_pdf' should be marked [[nodiscard]] [modernize-use-nodiscard]
  float normal_pdf(float distance, const Parameter & param) const
  ^
  [[nodiscard]]
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:56:9: warning: method 'normal_pdf' can be made static [readability-convert-member-functions-to-static]
  float normal_pdf(float distance, const Parameter & param) const
        ^                                                   ~~~~~
  static
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/include/yabloc_particle_filter/gnss_corrector/weight_manager.hpp:63:3: warning: function 'normal_pdf' should be marked [[nodiscard]] [modernize-use-nodiscard]
  float normal_pdf(float distance, bool is_rtk_fixed) const
  ^
  ... (omitted)

Check with cppcheck
(in localization/yabloc)
$ cppcheck --enable=warning --enable=style --enable=performance --enable=portability --enable=unusedFunction --inconclusive --check-level=exhaustive .

Checking yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp ...
yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:310:13: style: The scope of the variable 'gain' can be reduced. [variableScope]
      float gain = std::exp(-far_weight_gain_ * squared_norm);
            ^
yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:190:10: style: Local variable 'mean_pose' shadows outer variable [shadowVariable]
    Pose mean_pose = get_mean_pose(weighted_particles);
         ^
yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:150:14: note: Shadowed declaration
  const Pose mean_pose = get_mean_pose(weighted_particles);
             ^
yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:190:10: note: Shadow variable
    Pose mean_pose = get_mean_pose(weighted_particles);
         ^
yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:114:47: style: Parameter 'cloud' can be declared as reference to const [constParameterReference]
    auto draw = [&debug_image](LineSegments & cloud, cv::Scalar color) -> void {
                                              ^
yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:204:17: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
      max_score = std::max(max_score, std::abs(p.intensity));
                ^
22/41 files checked 52% done
Checking yabloc_particle_filter/src/camera_corrector/filter_line_segments.cpp ...
23/41 files checked 53% done
Checking yabloc_particle_filter/src/camera_corrector/logit.cpp ...
24/41 files checked 54% done
Checking yabloc_particle_filter/src/common/mean.cpp ...
yabloc_particle_filter/src/common/mean.cpp:123:10: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
    mean += p.weight;
         ^
yabloc_particle_filter/src/common/mean.cpp:129:11: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
    sigma += (p.weight - mean) * (p.weight - mean);
          ^
25/41 files checked 57% done
Checking yabloc_particle_filter/src/common/particle_visualize_node.cpp ...
26/41 files checked 59% done
Checking yabloc_particle_filter/src/common/visualize.cpp ...
27/41 files checked 60% done
Checking yabloc_particle_filter/src/correction/abstract_corrector.cpp ...
28/41 files checked 61% done
Checking yabloc_particle_filter/src/correction/correction_util.cpp ...
29/41 files checked 62% done
Checking yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp ...
yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp:99:21: style: Local variable 'mean_position' shadows outer variable [shadowVariable]
    Eigen::Vector3f mean_position = common::pose_to_affine(mean_pose).translation();
                    ^
yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp:86:25: note: Shadowed declaration
  const Eigen::Vector3f mean_position = common::pose_to_affine(mean_pose).translation();
                        ^
yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp:99:21: note: Shadow variable
    Eigen::Vector3f mean_position = common::pose_to_affine(mean_pose).translation();
                    ^
30/41 files checked 66% done
Checking yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp ...
31/41 files checked 68% done
Checking yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp ...
yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:205:12: style: Local variable 'w' shadows outer variable [shadowVariable]
  for (int w = 0; w < image_size_; w++) {
           ^
yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:193:9: note: Shadowed declaration
  float w = pose.orientation.w;
        ^
yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:205:12: note: Shadow variable
  for (int w = 0; w < image_size_; w++) {
           ^
32/41 files checked 72% done
Checking yabloc_particle_filter/src/prediction/predictor.cpp ...
33/41 files checked 81% done
Checking yabloc_particle_filter/src/prediction/resampler.cpp ...
34/41 files checked 84% done
Checking yabloc_particle_filter/test/src/test_resampler.cpp ...
yabloc_particle_filter/test/src/test_resampler.cpp:150:57: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
    for (const auto & p : predicted.particles) centroid += p.pose.position.x;
                                                        ^
yabloc_particle_filter/test/src/test_resampler.cpp:184:23: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
      before_centroid += p.pose.position.x * p.weight;
                      ^
yabloc_particle_filter/test/src/test_resampler.cpp:204:22: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm]
      after_centroid += p.pose.position.x * p.weight;
                     ^
...
yabloc_particle_filter/src/camera_corrector/logit.cpp:50:0: style: The function 'prob_to_logit' is never used. [unusedFunction]
float prob_to_logit(float prob)
^
yabloc_particle_filter/src/common/mean.cpp:116:0: style: The function 'std_of_weight' is never used. [unusedFunction]
float std_of_weight(const yabloc_particle_filter::msg::ParticleArray & particle_array)
^
yabloc_particle_filter/src/common/particle_visualize_node.cpp:49:0: style: The function 'compute_color' is never used. [unusedFunction]
  std_msgs::msg::ColorRGBA compute_color(float value) const
^
yabloc_particle_filter/src/correction/correction_util.cpp:19:0: style: The function 'find_synced_particles' is never used. [unusedFunction]
std::optional<yabloc_particle_filter::msg::ParticleArray> find_synced_particles(
^
yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:79:0: style: The function 'visualize_direction_map' is never used. [unusedFunction]
cv::Mat visualize_direction_map(const cv::Mat & cost_map)

After this PR:

Check with check_linter.sh
$ ./check_linter.sh yabloc_particle_filter
...
2015 warnings generated.
Suppressed 2015 warnings (2015 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2385 warnings generated.
Suppressed 2385 warnings (2385 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
5483 warnings generated.
Suppressed 5483 warnings (5483 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7987 warnings generated.
Suppressed 7987 warnings (7987 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
10482 warnings generated.
Suppressed 10484 warnings (10482 in non-user code, 2 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
8059 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:19:9: warning: function 'direct_cost_map' has cognitive complexity of 36 (threshold 25) [readability-function-cognitive-complexity]
cv::Mat direct_cost_map(const cv::Mat & cost_map, const cv::Mat & intensity)
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:25:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  for (int i = 0; i < cost_map.rows; i++) {
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:29:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    for (int j = 0; j < cost_map.cols; j++) {
    ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:30:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (intensity_ptr[j] == 0) distances.at(i).at(j) = 0;
      ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:37:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  for (int r = 1; r < cost_map.rows; r++) {
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:41:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    for (int c = 1; c < cost_map.cols; c++) {
    ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:44:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (up < left) {
      ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:45:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < up + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:48:9: note: +1, nesting level increased to 3
      } else {
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:49:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < left + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:57:3: note: +1, including nesting penalty of 0, nesting level increased to 1
  for (int r = cost_map.rows - 2; r >= 0; r--) {
  ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:61:5: note: +2, including nesting penalty of 1, nesting level increased to 2
    for (int c = cost_map.cols - 2; c >= 0; c--) {
    ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:64:7: note: +3, including nesting penalty of 2, nesting level increased to 3
      if (down < right) {
      ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:65:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < down + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:68:9: note: +1, nesting level increased to 3
      } else {
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:69:9: note: +4, including nesting penalty of 3, nesting level increased to 4
        if (distances.at(r).at(c) < right + 1) continue;
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:30:11: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
      if (intensity_ptr[j] == 0) distances.at(i).at(j) = 0;
          ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:47:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = upper_ptr[c];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:47:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = upper_ptr[c];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:51:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c - 1];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:51:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c - 1];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:67:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = downer_ptr[c];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:67:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = downer_ptr[c];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:71:9: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c + 1];
        ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:71:26: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
        current_ptr[c] = current_ptr[c + 1];
                         ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:92:11: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
      if (src_ptr[c] == 0) dst_ptr[c] = cv::Vec3b(0, 0, 0);
          ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/direct_cost_map.cpp:92:28: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
      if (src_ptr[c] == 0) dst_ptr[c] = cv::Vec3b(0, 0, 0);
                           ^
Suppressed 8047 warnings (8047 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
14020 warnings generated.
Suppressed 14022 warnings (14020 in non-user code, 2 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
7651 warnings generated.
Suppressed 7669 warnings (7651 in non-user code, 18 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
13136 warnings generated.
Suppressed 13147 warnings (13136 in non-user code, 11 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
13404 warnings generated.
Suppressed 13415 warnings (13404 in non-user code, 11 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
17201 warnings generated.
Suppressed 17212 warnings (17201 in non-user code, 11 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
17237 warnings generated.
Suppressed 17248 warnings (17237 in non-user code, 11 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
35558 warnings generated.
Suppressed 35571 warnings (35558 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
18310 warnings generated.
Suppressed 18323 warnings (18310 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
16612 warnings generated.
18804 warnings generated.
Suppressed 18817 warnings (18804 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
20951 warnings generated.
Suppressed 20964 warnings (20951 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
21497 warnings generated.
Suppressed 21508 warnings (21497 in non-user code, 11 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
19212 warnings generated.
Suppressed 19223 warnings (19212 in non-user code, 11 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
24576 warnings generated.
21011 warnings generated.
Suppressed 21024 warnings (21011 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
39274 warnings generated.
Suppressed 39287 warnings (39274 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
42446 warnings generated.
Suppressed 42459 warnings (42446 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
33224 warnings generated.
Suppressed 33246 warnings (33224 in non-user code, 22 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
57356 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:61:37: warning: do not use pointer arithmetic [cppcoreguidelines-pro-bounds-pointer-arithmetic]
  cv::Vec3b b3 = cost_maps_.at(key).ptr<cv::Vec3b>(tmp.y)[tmp.x];
                                    ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:91:38: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
    poly.outer().push_back(BgPoint(p.x, p.y));
                                     ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:91:43: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
    poly.outer().push_back(BgPoint(p.x, p.y));
                                          ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:118:23: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      if (std::abs(pn.z - *height_) > 4) continue;
                      ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp:119:23: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      if (std::abs(pn.normal_z - *height_) > 4) continue;
                      ^
Suppressed 57364 warnings (57351 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
49152 warnings generated.
Suppressed 49178 warnings (49152 in non-user code, 26 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
52236 warnings generated.
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:106:13: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      if (p.label == 0)
            ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:205:82: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      [](float max_score, const auto& p) { return std::max(max_score, std::abs(p.intensity)); }
                                                                                ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:210:11: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      rgb.rgba = common::color_scale::blue_red(p.intensity / max_score);
          ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:210:50: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      rgb.rgba = common::color_scale::blue_red(p.intensity / max_score);
                                                 ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:216:11: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      rgb.rgba = common::color_scale::blue_red(p.intensity / max_score);
          ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:216:50: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      rgb.rgba = common::color_scale::blue_red(p.intensity / max_score);
                                                 ^
/home/masakibaba/autoware/src/universe/autoware.universe/localization/yabloc/yabloc_particle_filter/src/camera_corrector/camera_particle_corrector_core.cpp:288:14: warning: do not access members of unions; use (boost::)variant instead [cppcoreguidelines-pro-type-union-access]
      if (pn.label == 0) {  // posteriori
             ^
Suppressed 52242 warnings (52229 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
60287 warnings generated.
Suppressed 60300 warnings (60287 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
40327 warnings generated.
Suppressed 40340 warnings (40327 in non-user code, 13 NOLINT).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.

Check with cppcheck
(in localization/yabloc)
$ cppcheck --enable=warning --enable=style --enable=performance --enable=portability --enable=unusedFunction --inconclusive --check-level=exhaustive .

...

Effects on system behavior

Not applicable.
Interface changes

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

I removed the unused method/function and files.

Thanks for the comprehensive fix! :pray: I will review it soon.


Command to stop debug service

Changes

New command to stop debug service

Closes #1050
Checklist

[x] have tested my change
[ ] updated relevant documentation
[ ] Remove any/all console.logs I added
[ ] eslint is not complaining
[ ] have added myself to the contributors' list in CONTRIBUTING.md
[x] for feature PRs: PR only includes one feature enhancement.

@chrjorgensen Fixed what you spotted. Please review whenever you can - cheers!


Upstream gateway failover works only once

Describe the bug
This issue is related to this one which was thought to be fixed, but apparently isn't. I've managed to resolve the routing issues laid out in this other issue, and thought failover was fixed as a result.
Apparently, it's not. Log attached.
To Reproduce
Steps to reproduce the behavior:

Configure a dual-WAN setup with monitor IPs for each gateway inside the "far" network for each gateway, different from the actual gateway IPs for each network, herein referred to as MonIP-A for network A, and MonIP-B for network B.
Configure GW-A and GW-B to be upstream, with priorities 1 and 2 respectively
Ensure both MonIP-A and MonIP-B are both fully accessible to ping from the firewall (for monitoring)
Validate that GW-A is selected as the default route
Save and apply the GW settings
Disable ping traffic to MonIP-A, observe failover happen
Enable ping traffic to MonIP-A, observer failback happen
Disable ping traffic to MonIP-A, observe failover NOT happen, despite ping connectivity not being available to MonIP-A

In some cases I've even observed the firewall UI properly show that failover has happened, but in reality it has not (i.e. netstat -rn still shows the default gateway pointed to GW-A when it should have pointed to GW-B ... this is reflected in the log attached).
Expected behavior
Failover should happen automatically any number of times required
CAVEAT: I've noticed that if I modify a setting in the gateway configuration, that seems to "reset everything" and failover will work again after that ... ONCE...
Relevant log files
Relevant log files.
Additional context
A power outage and failure on the Cable link was the trigger (as shown in the logs), but apparently there was another outage overnight which would have triggered the "correct failover", causing this "second failover" to not execute properly.  The issue here seems to be that for some reason dpinger is getting hung up.
I noticed that even though MonIP-A is provably inaccessible, even after 5 minutes the gateways page continues to report GW-A as up, and even keeps the packet loss numbers updated when they couldn't possilby be.
The way I'm testing the ping accessibility is by directly disabling ping access in the machine selected as the monitoring IP (i.e. it's a Linux box with Shorwewall, and I enable/disable Ping acceptance as required).
Environment
OPNsense 19.7.2-amd64 (with patch 7bfadb2)
FreeBSD 11.2-RELEASE-p12-HBSD
OpenSSL 1.0.2s 28 May 2019
Protectli FW4B with 8GB RAM and 256GB SSD

OPNsense 19.7.2-amd64

Try 19.7.3 first, it's out for some days.
Also try to de-set upstream on both gateways and only work with priority.
You have 'allow to change default gw' activated?

Just updated to 19.7.3, and still having this issue. Also, 19.7.3 doesn't seem to be automatically updating the Gateways page every few seconds as the previous version did.
Allow change default GW is activated.
Disabled "upstream" on both gateways, and made no difference.
Made sure that the MonIP-A machine's (the one I'm using to simulate the outages with) connection states were cleared (shorewall restart -p) in case that was polluting things.
However, what DID fix the issue is me changing the monitoring parameters like so:

reduce the Time Period setting to 30 seconds from the default of 60
return the packet loss thresholds to the defaults of 10%-20% from 1%-5% (this might have been what did it)

So failover seems to be working normally now.  However, I'm sure the gateways page used to refresh automatically and I'm positive it's no longer doing that, so I might report that separately.
Cheers!


Invalid block tag: 'endthumbnail', expected 'empty' or 'endfor'

I'm getting this error message when using sorl-thumbnail in my template. Here's the code I'm using (basically just copied and pasted from the docs:
{% thumbnail post.image "100x100" crop="center" as im %}
img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"
{% endthumbnail %}
Any pointers as to what I'm doing wrong here? I've seen some topics on google related to this that talk about being on the wrong version of sorl-thumbnail and that the endthumbnail tag isn't valid on older versions, but I did a pip install which I assume gives me the most recent version? What am I doing wrong?
Thanks
Note: I left out the "<" and ">" on the img tag. I couldn't get GitHub to display it as code and it was parsing it as an image, thus hiding my code.

The problem can also be with loading template tags.
I was doing {% load thumbnail %} in base html.
When I call below code in inherited html, got same error.
{% thumbnail service_type.pic.image "100x100" crop="center" as im %}
   <img .....>
{% endthumbnail %}

See this discussion about loading template tags in base.html

If you do not want to give up easy-thumbnails because, for example, you use it elsewhere, then instead of
{% load thumbnail %}
use:
{% load sorl_thumbnail %}


Adds rake task to index a single MARC XML file

First pass at adding a rake task to allow to index a single MARC XML file via command like this
SET_URL=http://solr/core/path bundle exec rake liberate:index_file[/path/to/marc-file.xml]

Coverage decreased (-0.9%) to 81.588% when pulling 94381fa24d82109ae69e290a63bc4cccfc9182f0 on rake_index_file into 88c55bf18cf66a6866922b32cbec9af10505ef9f on alma.

Coverage decreased (-0.9%) to 81.588% when pulling 94381fa24d82109ae69e290a63bc4cccfc9182f0 on rake_index_file into 88c55bf18cf66a6866922b32cbec9af10505ef9f on alma.


App no show glucose level and others informations

Hi Uwe,
As I said before, I was able to run the app from the version you indicated, but I can not get the app to show the blood glucose level, blocks, status and start of the sensor, and the graph with the measurements. I see in the Arduino IDE that the BM019 reads the sensor and sends, via Simblee, the packets and information so much that I can see the ID of the BM019, the sensor ID and the ambient temperature and voltage, as in the image below. I'm not using lipo, I'm using the USB cable on the Mac.

I did the tests with some sensors, already expired and with an active sensor that my son is using.
If you need more information, just talk.
I'm grateful for your help.
Thank you,
Jorge

Hi Jorge,
so the data transfer between simblee and iOS works, and the BM019 is connected to the simblee, since its ID is transferred, too. This is already quite good. Now the question is why you do not receive any data from the sensor. Having the simblee attached to USB while running is okay, I did so often, too. As a next step I suggest you try to print out some data with the serial monitor of the Arduino IDE (if this what you use as IDE) and submit it here. You should uncomment the
 #define DEBUG
to receive the information from all the print commands in the code. Could you also give me a link to the arduino code you are using?

Mmh. Data in serial monitor looks good. FRAM data is read properly. So the question is, why this data does not arrive in the app. Next step would be to set a stop point in the debugger in here and see what cases are run through. This is the code section where the different data types are received. According to the screenshot you provided above,
case .SYSTEM_INFORMATION_DATA:
works and
case .BATTERY_DATA:
works, although the battery value should be higher, and
case .IDN_DATA:
also works. The question is, why
case .ALL_BYTES:
seems not to work. Please run the debugger and check weather the case .ALL_BYTES:  code section is called or not. (If not, we have to double check the data types: files data_types.h and constants.h must be the same in the arduino code and the app code.) To get the os_log outputs in the debugger, you have to comment out the lines after here. We'll then continue.

I agree!
The code in the constants.h and data_types.h files are the same in Arduino and in the application.
I made debbug and the output log and prints are in the folder I shared earlier.
I noticed that many of the data could not be read, as I show in the prints.
If you need more information, I am at your disposal.
Thank you!

The prints look good to me. It is the case of system information data received and all is going well. The question is, why the case with the fram data (allBytes) is not called. Could you set a break point behind
case .ALL_BYTES:
to see if it gets ever called? If this is not the case I recommend we continue this by phone. Sent you a PM on gitter.


Issues with record count?

Looking at number of individuals on FreeCEN1 (almost 41 million) FreeCEN2 has only 35 million.
Rate of increase on FreeCEN1 is a fairly constant 10 million in 5.5 years, but last month FreeCEN2 had over half a million (adding 10 million in under 2 years).

This is due to a duplicate piece  in two counties that needs adjusting.
On my list to do.
On Wed, 19 May 2021 at 12:11, PatReynolds @.***> wrote:

Looking at number of individuals on FreeCEN1 (almost 41 million) FreeCEN2
has only 35 million.
Rate of increase on FreeCEN1 is a fairly constant 10 million in 5.5 years,
but last month FreeCEN2 had over half a million (adding 10 million in under
2 years).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/FreeUKGen/FreeCENMigration/issues/1222, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADIL3VU65U4QQPMSRKGUQ4DTOOMHVANCNFSM45ENXKFA
.

Also due to an issue that occurred during the switch of servers on FreeCEN2.

The database should be reporting correctly as of deployment to the new servers

FC1 reports 40,834,241 individuals; FC2 reports 40,818,431 VLD individuals and 393,996 individuals from CSV

@PatReynolds to check

FreeCEN1: 40,923,091 records
FreeCEN2:  41,388,925 records of which 1500480 are CSV rececords (so 39,888,445). 1,034,646 vld records presumably are those which did not load.
Need to test after that work undertaken.

Emailed Lemon (and Vino) 14/7/2021

More work needs to be done on reconciliation before Pat can do her bit

Today (7 Sep 2021) there are 42,194,618 records on FreeCEN2, and 41,015,224  on FreeCEN1 - given that there are some records uploaded to FC2 but awaiting uploading to FC1, or never going to be uploaded to FC1, or uploaded ot FC1, but only enabled on FC2 ... is the difference - which is what is expected, and will grow -  now  not capable of being reconciled?  Is a reconciliation desirable?

@PatReynolds @AnneV-Learn
Fundamentally since FC1 is basically static there is no value in any regular attempt to reconcile numbers between the FC2 and FC1.
There is however a need for ensuring that FC2 has ALL files uploaded into FC1.
@FreecenBren  attempted to do this following each monthly update and she and I attempted to do that following the last update. I believe we came close but I cannot say for certain that it is 100%.
What has become clear is that the Online status as reported by FC2 is less than reported by FC1 by some 40 files.

I have spent several hours today correcting FC2 information as it appears that the initial load done in 2017 was NEVER fully checked. There were some 40 files not showing Online when they should; There were some 306 pieces showing they had a file and the filename was incorrect and the linked file had not been processed, most in Scotland.
These I have cleaned out

@AnneV-Learn  The clean up has now resolved the Online status discrepancy on site statistics.

@FreecenBren  Lemon and I have compared the vld file contents of FC1 and FC2 and believe that the following files are missing from FC2
./BRK/RG120997.VLD
./CON/RG091546.VLD
./CON/RG121835.VLD
./LAN/RG092825.VLD
./OXF/RG121165.VLD
./PER/HS414387.VLD
./PER/HS415387.VLD
./SOM/HO511940.VLD
./SOM/HO511943.VLD
./SOM/RG091698.VLD
./SOM/RG121932.VLD
Will discus this with you off line

@lemon-ukgen @PatReynolds @DeniseColbert  @AnneV-Learn @geoffj-FUG
I have dealt with and addressed them as indicated below
./BRK/RG120997.VLD, missing fc1 piece, added and file loaded
./CON/RG091546.VLD, missing file, loaded
./CON/RG121835.VLD, missing file, loaded
./LAN/RG092825.VLD, not missing
./OXF/RG121165.VLD, missing fc1 piece, loaded
./PER/HS414387.VLD, file was present but with different case vld, no action
./PER/HS415387.VLD, file was present but with different case vld, no action
./SOM/HO511940.VLD, missing file, loaded
./SOM/HO511943.VLD, missing fc1 piece, added and file loaded
./SOM/RG091698.VLD, missing fc1 piece, added and file loaded
./SOM/RG121932.VLD, Missing fc1 piece, added and file loaded
As you see
6 of the cases were a result of a missing piece parm for FC1 (No idea why)
3 were files not loaded for some reason
2 were a result of an incorrect case comparison as the files are there
1 was indeed there.
So I believe that all of FC1 VLD files are now present and correct on FC2

Kirk
I have just looked at the 4 SOM files. The numbers rang a bell.
As a result of Action Reports data has been corrected in all 4 SOM files as
follows:
HO511940.vld removed and now reloaded as HO107_1940.csv and HO107_1940A.csv
HO511943.vld removed and now reloaded as HO107_1943.csv and HO107_1943A.csv
RG091968.vld removed and now reloaded as RG09_1968.csv
RG121932.vld removed and now reloaded as RG12_1932.csv
Old vld files were removed when the csv files were loaded. Therefore there
will never be an exact match on FC1.vld files as transferred and FC2 vld
files as received from FC1.
'Missing from the PARMS' is probably that early problem we had where
Coordinators, including myself, were deleting the PARMS entry when doing
Action Reports instead of the vld file. You fixed up that problem.
I presume, but have not checked, that Rhoda is now the person who would
normally delete a PARMS entry from now onwards. It should not be available
to Coordinators as an option. Coordinators should only be able to delete the
old vld file when uploading a replacement csv file.
Geoff
From: Kirk Dawson @.>
Sent: Saturday, September 11, 2021 3:51 AM
To: FreeUKGen/FreeCENMigration @.>
Cc: geoffj-FUG @.>; Mention
@.>
Subject: Re: [FreeUKGen/FreeCENMigration] Issues with record count? (#1222)
@lemon-ukgen https://github.com/lemon-ukgen  @PatReynolds
https://github.com/PatReynolds  @DeniseColbert
https://github.com/DeniseColbert  @AnneV-Learn
https://github.com/AnneV-Learn  @geoffj-FUG
https://github.com/geoffj-FUG
I have dealt with and addressed them as indicated below
./BRK/RG120997.VLD, missing fc1 piece, added and file loaded
./CON/RG091546.VLD, missing file, loaded
./CON/RG121835.VLD, missing file, loaded
./LAN/RG092825.VLD, not missing
./OXF/RG121165.VLD, missing fc1 piece, loaded
./PER/HS414387.VLD, file was present but with different case vld, no action
./PER/HS415387.VLD, file was present but with different case vld, no action
./SOM/HO511940.VLD, missing file, loaded
./SOM/HO511943.VLD, missing fc1 piece, added and file loaded
./SOM/RG091698.VLD, missing fc1 piece, added and file loaded
./SOM/RG121932.VLD, Missing fc1 piece, added and file loaded
As you see
6 of the cases were a result of a missing piece parm for FC1 (No idea why)
3 were files not loaded for some reason
2 were a result of an incorrect case comparison as the files are there
1 was indeed there.
So I believe that all of FC1 VLD files are now present and correct on FC2

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/FreeUKGen/FreeCENMigration/issues/1222#issuecomment-9170
95699> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCPIFJ6T5LMDSBADK43EDLUB
JAQ5ANCNFSM45ENXKFA> .
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&m
t=8&pt=524675>  or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=u
tm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
<https://github.com/notifications/beacon/AKCPIFIJMAFZOR5CKSOSACTUBJAQ5A5CNFS
M45ENXKFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG2U4KEY
.gif>

<https://home.mcafee.com/utm_medium=email&utm_source=link&utm_campaign=sig-e
mail&utm_content=emailclient?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=emailclient>
Scanned by McAfee
<https://home.mcafee.com/utm_medium=email&utm_source=link&utm_campaign=sig-e
mail&utm_content=emailclient?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=emailclient>  and confirmed virus-free.

Kirk
If the vld files have been restored to FC2 we now have duplicate data, the vld copy includes the transcription problems that were reported by researchers.
Geoff

@geoffj-FUG yes as noted in the post they were restored but have now been deleted at your request.
Perhaps you can ask the CON and OXF coordinators about the 3 for those counties if you will.
BRK, LAN and PER are OK

Kirk
Both CON files RG9 1546 and RG12 1835 are now incorporated as csv files. The
vld files were removed when the Action reports were done.
The reality is that the number of vld files will gradually decrease once no
more vld files are incorporated into FC2. They will be replaced by csv files
as Action Reports are generated and corrected.
I will follow up OXF.
Geoff
From: Kirk Dawson @.>
Sent: Saturday, September 11, 2021 9:22 AM
To: FreeUKGen/FreeCENMigration @.>
Cc: geoffj-FUG @.>; Mention
@.>
Subject: Re: [FreeUKGen/FreeCENMigration] Issues with record count? (#1222)
@geoffj-FUG https://github.com/geoffj-FUG  yes as noted in the post they
were restored but have now been deleted at your request.
Perhaps you can ask the CON and OXF coordinators about the 3 for those
counties if you will.
BRK, LAN and PER are OK

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/FreeUKGen/FreeCENMigration/issues/1222#issuecomment-9172
72461> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCPIFLPJ3JKLHMVMOITOGDUB
KHLFANCNFSM45ENXKFA> .
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&m
t=8&pt=524675>  or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=u
tm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
<https://github.com/notifications/beacon/AKCPIFPDJGEZXPUGADX5YEDUBKHLFA5CNFS
M45ENXKFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG2WHPDI
.gif>

<https://home.mcafee.com/utm_medium=email&utm_source=link&utm_campaign=sig-e
mail&utm_content=emailclient?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=emailclient>
Scanned by McAfee
<https://home.mcafee.com/utm_medium=email&utm_source=link&utm_campaign=sig-e
mail&utm_content=emailclient?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=emailclient>  and confirmed virus-free.

@geoffj-FUG the 2 CON that were added have been removed

The OXF vld has been removed as requested

I believe reconciliation is not complete

Done- closing


v2.1: Typo in Login Dialog: Resquest Security Code

Interestingly, that typo isn't there in v2.0.
Repro steps:

Open ExampleScene
Enter Play Mode
Click on button on bottom right: mods powered by mod.io
Enter your email-address

As soon as the email validation passes (i.e. you entered a valid email address), the button changes the text from "Authenticate" to "Re**s**quest Security Code". That first "s" should not be there.
This should be trivial to fix but as its in the prefab, probably not something where a pull request would make sense. See attached screenshot for where this is:

Fixed for next release.


Is it possible to set the location to a specific latitude and longitude?

pgoapi has a set_position() method. Wondering if such exists here as well? At the moment, I am only seeing what is specified in the docs
i.e. store_location('New York')

It does indeed, see here. The function isclient.store_lat_lng(lat, lng), however you can also make use of setter/getter attr_accessor :lat, :lng, :alt (such as client.lat = foo, client.lng = bar, client.alt = baz)


koordlet: fix util/perf compilation errors on darwin

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

/lgtm
/approve


[WIP] Add a diamond motion estimation pattern

It performs 4 tests instead of 8 for the previous full search. On the objective-1-fast dataset, on average, it speeds up the encoding by 12.5% with a size increase of 1.8% and a quasi-constant distortion (PSNR decrease of 0.03%). In the current version of the patch, it is activated for the speed 10.
Here are some graph containing the size and compression time impacts of this pattern on the objective-1-fast samples:
http://people.videolan.org/~magsoft/rav1e/diamond_me_size_impact.png
http://people.videolan.org/~magsoft/rav1e/diamond_me_time_impact.png
Please let me know what you think about this.

Coverage increased (+0.4%) to 83.764% when pulling e9773d5be1320f14fd8d57eb635507db5d897ca8 on magwyz:diamond_me into b5731b2b01220247959a7f70440ac8e7ab47af50 on xiph:master.


ReferenceError: util_1 is not defined

Issue :

i want to only mock one function in src/utils.ts
but it loooks like jest.mock load js files instead of ts files
here is repo
Expected behavior :
jest.mock can load the function which in src/utils.ts
Debug log:

log file content
# content of ts-jest.log :

Minimal repo :

fix by use jest.requireActual


assets:precompile results in LoadError: cannot load such file -- sassc

New Rails 7 app using esbuild with tailwind with the rails_admin gem.
When I run rake assets:precompile I'm getting LoadError: cannot load such file -- sassc
I removed the sassc-rails gem due a SaasC syntax error.
The only non-vanilla gem I'm adding is rails_admin and it's throwing the Load Error.
Here's the full output of precompiling locally...
rake assets:precompile
yarn install v1.22.15
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.06s.
yarn run v1.22.15
$ esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds

  app/assets/builds/application.js      185.5kb
  app/assets/builds/application.js.map  301.0kb

✨  Done in 0.13s.
yarn install v1.22.15
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.06s.
yarn run v1.22.15
$ tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css

Done in 155ms.
✨  Done in 0.52s.
rake aborted!
LoadError: cannot load such file -- sassc

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

And here's the output from Heroku...
Running: rake assets:precompile
       yarn install v1.22.17
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       [3/4] Linking dependencies...
       [4/4] Building fresh packages...
       success Saved lockfile.
       Done in 4.39s.
       yarn run v1.22.17
       $ esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds

         app/assets/builds/application.js      185.5kb
         app/assets/builds/application.js.map  301.0kb

       Done in 0.11s.
       yarn install v1.22.17
       [1/4] Resolving packages...
       success Already up-to-date.
       Done in 0.13s.
       yarn run v1.22.17
       $ tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css

       Done in 440ms.
       Done in 0.99s.
       rake aborted!
       LoadError: cannot load such file -- sassc
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in `require'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/autoload/sassc.rb:2:in `<main>'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in `require'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/sassc_processor.rb:42:in `initialize'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/sassc_processor.rb:27:in `new'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/sassc_processor.rb:27:in `instance'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/sassc_processor.rb:31:in `call'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:84:in `call_processor'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `reverse_each'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `call_processors'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:22:in `block in <class:CompositeProcessor>'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:33:in `call'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:84:in `call_processor'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `reverse_each'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `call_processors'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:182:in `load_from_unloaded'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:59:in `block in load'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:43:in `load'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/cached_environment.rb:44:in `load'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/bundle.rb:27:in `call'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:84:in `call_processor'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `reverse_each'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `call_processors'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:182:in `load_from_unloaded'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:59:in `block in load'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/loader.rb:43:in `load'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/cached_environment.rb:44:in `load'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/base.rb:81:in `find_asset'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/base.rb:88:in `find_all_linked_assets'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/sprockets-4.0.2/lib/sprockets/manifest.rb:125:in `block (2 levels) in find'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:47:in `block in synchronize'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:47:in `synchronize'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:47:in `synchronize'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:19:in `execute'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/promise.rb:564:in `block in realize'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:363:in `run_task'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:352:in `block (3 levels) in create_worker'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:335:in `loop'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:335:in `block (2 levels) in create_worker'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:334:in `catch'
       /tmp/build_7c167d00/vendor/bundle/ruby/3.0.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:334:in `block in create_worker'
       Tasks: TOP => assets:precompile
       (See full trace by running task with --trace)

Removing the rails_admin gem resolves the issue.
Additional context

rails version: 7.0.0
rails_admin version: 3.0.0.alpha

This seems to be because the Sass gem cannot process modern CSS syntax used by Tailwind, as mentioned by the Rails team here.
Their suggested solution was removing the sassc-rails gem entirely.
Unfortunately, RailsAdmin seems to depends on sassc-rails, so that's not possible.

Unfortunately, RailsAdmin seems to depends on sassc-rails, so that's not possible.

Yeah, hence the bug report. 🙃 sassc-rails hasn't been updated in years and as you noted is actually recommended to be removed by the Rails team. So it would seem it's time for RailsAdmin to move away from it.

By default RailsAdmin will use asset pipeline for delivering its assets, so it requires sassc-rails dependency.
But you can eliminate that dependency by configuring RailsAdmin to use Webpack for asset delivery. Running rails g rails_admin:install will suggest you the necessary changes, so please try and see if it works.
If you need more information, see #3414 or ask any questions here.

FWIW I also came across the sassc dependency issue whilst trying to compress the Tailwind 3 styles. My solution was to create a custom Sprockets compressor that uses CSSO for minification: https://github.com/rails/tailwindcss-rails/issues/82#issuecomment-1006779752

Please report back if you still have an issue.

Does anyone have a workaround that works with esbuild? I don't really want to switch to Webpack.


⚠ Bofrost.at has degraded performance

In 02551e8, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1598 ms

Resolved: Bofrost.at performance has improved in e860eb4 after 1 hour, 59 minutes.


Completed and fixed German translations

@ugort Thank you!

@ugort The translations is conflict with #131. Please see whether another PR is needed. Thank you.


how to duplicate or drop frames when using setpts filter?

Overview
when we used setpts filter to slow down a video, we found that setpts would not help duplicate frames itself.
def test_raw_setpts(vid_path ):
    incontainer = av.open(vid_path, "r")
    g = Graph()
    params = {"expr": f"2.0*PTS"}
    setpts = g.add("setpts", **params)
    buf = g.add_buffer(template=incontainer.streams.video[0])
    buf.link_to(setpts, 0, 0)
    sink = g.add('buffersink')
    setpts.link_to(sink, 0, 0)
    g.configure()
    #
    c = 0
    for frame in incontainer.decode(video=0):
        c += 1
    print("count", c)
    return

the total number of frames from setpts was expected to be double, in above case, the count should be double as frames in input file.
but acutally the count was unchanged.
so we need to drop or duplicate frames on our own?

@WyattBlue
em.... we found out that setpts is just meant to , as its name suggests, change pts. more precisely, what it does is to multiply
the original pts by a float factor, and that's all.
duplicating and dropping frames are done by ffmpeg in some functions, so far, we are not clear how ffmpeg handle dropping
and duplicating. so this is not a problem of pyav, that's why we closed this issue.
if there's any advice or tips on without changing fps, duplicating and dropping frames when speeding up and slowing
down videos to share with us, we really appreciate that.


[QUESTION]

Question
How to download new packages. Where is the package manager?

How to download "Libreoffice" to Athena?

Athena is arch based OS and arch linux use pacman.
Search for package: sudo pacman -Ss package_name
Install the package: sudo pacman -S package_name
Upgrade Everything: sudo  pacman -Syu
You can follow this guide for pacman: https://devhints.io/pacman
And libreoffice have to package:
libreoffice-still is the stable maintenance branch with relatively rare updates, for conservative users.
libreoffice-fresh is the feature branch, with new program enhancements for early adopters or power users.
You should go for libreoffice-still andyou can install with below command.
sudo pacman -S libreoffice-still
Here is the proper guide: https://www.linuxfordevices.com/tutorials/linux/install-libreoffice-on-arch


Backporting changes to 2.0

Issue #, if available:
Description of changes:
Backporting changes from main to 2.0.
CheckList:
[x] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Closing in favor of https://github.com/opensearch-project/alerting/pull/420


Source maps not uploaded from Webpack

Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce

Have following plugin for webpack prod:

  new BugsnagSourceMapUploaderPlugin({
    apiKey: '<Notifier API key>',
    appVersion: appVersion,
    publicPath, // the same variable as passed to the `output: {publicPath}`
    overwrite: true
  })

no source maps uploaded to bugsnag, latest source maps visible in bugsnag are from time when it was able to download them from the cdn.

Environment

Bugsnag version: 7.17.0
Webpack version: 5.73.0

Example Repo

[ ] Create a minimal repository that can reproduce the issue
[ ] Link to it here:

Example code snippet
  new BugsnagSourceMapUploaderPlugin({
    apiKey: '<Notifier API key>',
    appVersion: appVersion,
    publicPath, // same variable as passed for the publicPath in `output: {publicPath}`
    overwrite: true
  })

Error messages:

In our case the source map plugin is the second latest plugin just before compression plugin. before moving to use upload, bugnsag was able to download the source maps from cdn. Now the latest source map visible on Bugsnag is before that time. However, the plugin does not explicitly fail in uploading so it at least looks like it would be working correctly while nothing actually ends up to bugsnag.

Hey @villesau, we have responded to you on the support ticket raised, as we need some additional information to investigate further

Hi, @johnkiely1 I've not received any response to my email unfortunately.


Bot be aware of new functionalities or new code commits

It's fun to have the bot saying "I've just got evolved!" if it found new functionalities / new code commits after restarting.
But might be annoying for some people.

This might be annoying for most people.
If this is going to be implemented, it's better to be disabled by default, and allow users to turn it on a specific command.


import numpy asynchronously causes EXC_BAD_ACCESS

Hello,
the package is amazing, but I encountered an error that makes it impossible to continue developing.
I am working on macOS with an Apple Silicon processor (M2).
The line import numpy as np always makes the code (and the whole flutter app) crashes with EXC_BAD_ACCESS, specifically, I tracked down the error to the line let result = PyRun_SimpleFileEx(file, appPath, 1) in SeriousPythonPlugin.swift.
The interesting thing is that if I use sync: true, the python code gets executed correctly without issues, but the flutter app hangs, so it's not a viable solution.
I've tried using Isolates, but either the method channel cannot be invoked, or the flutter UI hangs (if I use BackgroundIsolateBinaryMessenger.ensureInitialized).
Let me know if I can provide more info.

Are you able to provide the code to reproduce?

Sure, are the files for the simplest example:
main.py:
import numpy as np

if __name__ == '__main__':
    print("Success")

requirements.txt:
numpy

The flutter code is a default boilerplate app, with the following update:
void main() {
  SeriousPython.run("app/app.zip", sync: false);

  runApp(const MyApp());
}

The app.zip is generated via dart run serious_python:main package.
As said before, if sync: true the code works, otherwise everything crashes.

I haven't verified yet, but just a quick though...Flutter on Apple ARM should generate a fat binary with both x86_64 and arm64 architectures (check that with file utility) and, in theory, you should be using arm64 version of Python as well (not x64 running under Rosetta). I mean it could be arch incompatibilities of Flutter app and numpy libs installed during the packaging. Could it be the case?

I don't think so, as it works perfectly (I can call numpy functions from python) with sync: true.
It seems to be a problem with multithreading in the Swift code.

Will be looking into that - it should be a solution to that.

Following, having same issue with my m1 max MacBook pro.

Here's the source of this issue: https://github.com/python/cpython/issues/96650
Setting OPENBLAS_NUM_THREADS environment variable in Python program does the trick:
import os

os.environ["OPENBLAS_NUM_THREADS"] = "1"

import numpy as np

if __name__ == "__main__":
    print("Random:", np.random.rand())

Another workaround that proves there is something with threads - importing numpy inside Python's thread works:
from threading import Thread

def test_numpy():
    import numpy as np
    print(np.random.rand())

if __name__ == "__main__":
    thread = Thread(target=test_numpy)
    thread.start()
    thread.join()
    print("Finished")

Upon further investigation setting explicit stack size for a new thread in Swift fixes numpy issue as well.
Default stack size for a new thread on macOS is 512 KB (524,288 bytes). Setting it to 1 MB does not cause the crash:
let t = Thread(target: self, selector: #selector(runPythonFile), object: appPath)
t.stackSize = 1 * 1024 * 1024 // 1 MB
t.start()

It could be a better solution for serious_python/Flet going forward rather than setting OPENBLAS_NUM_THREADS variable.

Amazing debugging! What do you think an optimal stack size should be? To avoid future issues I would propose to set it to 8MB, which is the stack size of the main thread on macOS. I think this is reasonable, as the function of that thread is basically that of a main thread.

iOS has 1 MB main stack and 512 KB for secondary (source).
Will do a parameter! 😏


[Question] Matter Recipes Included?

its nice to see ProjectEX has a forked being maintained for newer minecraft versions. im currently exploring the other items of the ProjectEX mod in StoneBlock 2 and see these power flower blocks that have different versions of collectors and all that, which need different colored matter items that in ProjectEX/SB2 have no concrete recipe
if I ever play a modpack that either has this fork included or that I can shove this in a modpack of my choosing that won't error-crash me out, can I assume that this mod also includes recipes on how to obtain the differing states of matter, and if so, how do I craft them?

Use jei for recipes


How to pass sample_weigths to validation data?

In the method fit of a keras model, there is a parameter (sample_weights) which passes sample weights for training data. I think that is reasonable to also pass sample_weights for computing validation loss, so that overfitting can be tracked in these settings. Is this possible?

Just pass as validation_data a triplet (samples, labels, sample_weights) instead of just (samples, labels).


Stock list scroll position doesn't reset when the list becomes smaller than the current scroll position

From @Hixie on April 21, 2015 19:28
Copied from original issue: domokit/mojo#105

This is fixed now.


Provide a command line option to "unfix"

I know this seems a little odd, but if it is not hard to do, it would be really interesting if there was an --force-unfix option that would detect any where a JAR has been mitigated by this utility and roll it back by restoring the backed up file.
The reason for this is so that operations teams can run the scan and fix widely, but if an application is found to be broken after the fact, just roll back everything on the device where the breakage occurred.
There is a lot of hesitation to deploy this utility widely in production in the actual --fix --force-fix mode to mitigate because of "what if it breaks things". Having an easy undo helps alleviate these concerns.
I wouldn't consider this a high priority or anything, especially if it would be difficult, but I think it could be a very useful feature.

I was at first envisioning "unfixing" all of the mitigated files on the entire device, but it might make sense to have an option to only unfix a specific one, but I guess you could achieve that same effect by limiting the scope of the "unfix" more narrowly than the "fix" to try to only roll back the applications that have broken.
I would love to know if anyone has actually had any applications break by doing the mitigation. Right now I think there is just fear of possible breakage, but I don't know of any actual breakage by the mitigation. In the short term, the main goal is discovery.

As far as I know, spring boot application was the only case. (log4j2-scan < 1.5.0)

Looks like this was released in this version here: https://github.com/logpresso/CVE-2021-44228-Scanner/releases/tag/v2.5.0

@jgstew Yes. I will close this issue. Thank you for feature suggestion!

--restore is worth its weight in gold. I have had to use it so far with Geonetwork and the GDI-DE Registry.


Added module-id support, integrated the EISProvisioningInfo struct an…

Added the Communication Abstraction Library which includes the client_handle implementation and abstractions for communicating with the iothub
Added Module-Id support with the Communication Abstraction Library implemented within the client_handle_helper
Reworked the adu_core_interface unit tests to use umock standard mocking
Integrated the EISProvisioningInfo struct into the ConnectionInfo struct
Broke out the ConnectionInfo and some of the helper functions into a new adu_types library.

@param deviceClientHandle IoTHub Device handle.

Don't forget to scan thru all comments and make appropriate tweak. Thx.

Refers to: src/agent/src/main.c:340 in a0e6e97. [](commit_id = a0e6e97e86b3e597a1890ee5d4f7c2949c3a4550, deletion_comment = False)

@param[out] provisioningInfo the pointer to the struct which will be initialized with the information for creating a connection to IotHub using the EIS supported provisioning information

update comment pls.

Refers to: src/utils/eis_utils/inc/eis_utils.h:30 in a0e6e97. [](commit_id = a0e6e97e86b3e597a1890ee5d4f7c2949c3a4550, deletion_comment = False)

@file crypto_utils_ut.cpp

not part of this change, but please change to eis_utils_ut.cpp

Refers to: src/utils/eis_utils/tests/eis_utils_ut.cpp:2 in a0e6e97. [](commit_id = a0e6e97e86b3e597a1890ee5d4f7c2949c3a4550, deletion_comment = False)

@brief Unit Tests for c_utils library

and here...

Refers to: src/utils/eis_utils/tests/eis_utils_ut.cpp:3 in a0e6e97. [](commit_id = a0e6e97e86b3e597a1890ee5d4f7c2949c3a4550, deletion_comment = False)


policy: Track selectors that contribute to MapStateEntries

[ upstream commit 04840b96530031a84bc359c476a59d320617d2db ]
Track which selectors in policy require a specific bpf policy map key to
be present, and keep policy entries in the map as long as any selector
requires it's presence. Without this it is possible for a timed-out
DNS cache entry to clear a policy cache key that is still required by
another selector (FQDN or CIDR).
To implement this, each MapStateEntry is now equipped with a set of
(cached) selectors through which the policy map key/value was
added. 'nil' has the special significance that it is used as the
CachedSelector in cases where the policy map entry is added due to
some administrative or configuration reason. Currently incremental
updates will never remove such entries.
Incremental policy updates now simply collect the requested map
changes. When the endpoint then pulls the changes they are first
applied the desired policy map (MapState), while tallying which
selectors still need the map entries to be present. The actual bpf map
diffs are recorded based on the total count of selectors on each map
entry.
Signed-off-by: Jarno Rajahalme<EMAIL_ADDRESS>

test-backport-1.7

test-backport-1.7


[Backport release-24.05] raycast: 1.80.0 -> 1.81.0; raycast: 1.81.0 -> 1.81.2

Backport:
https://github.com/NixOS/nixpkgs/pull/334664
https://github.com/NixOS/nixpkgs/pull/336079
Description of changes
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.