<commit_before># Copyright (c) 2015, <NAME>
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

include(CMakeParseArguments) # cmake_parse_arguments

include(hunter_calculate_config_sha1)
include(hunter_calculate_self)
include(hunter_calculate_toolchain_sha1)
include(hunter_check_flush_needed)
include(hunter_internal_error)
include(hunter_set_config_location)
include(hunter_status_debug)
include(hunter_test_string_not_empty)

function(hunter_apply_gate_settings)
  get_property(gate_done GLOBAL PROPERTY HUNTER_GATE_DONE SET)

  # Check any of cache variable is not empty
  string(
      COMPARE
      NOTEQUAL
      "${HUNTER_CACHED_ROOT}${HUNTER_SHA1}${HUNTER_CONFIG_SHA1}${HUNTER_VERSION}${HUNTER_TOOLCHAIN_SHA1}${HUNTER_CACHED_CONFIGURATION_TYPES}"
      ""
      cache_init
  )

  # Unify values
  if(gate_done)
    set(gate_done YES)
  else()
    set(gate_done NO)
  endif()

  # Unify values<commit_msg>hunter_apply_gate_settings: additional check of HUNTER_GATE_DONE<commit_after># Copyright (c) 2015, <NAME>
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

include(CMakeParseArguments) # cmake_parse_arguments

include(hunter_calculate_config_sha1)
include(hunter_calculate_self)
include(hunter_calculate_toolchain_sha1)
include(hunter_check_flush_needed)
include(hunter_internal_error)
include(hunter_set_config_location)
include(hunter_status_debug)
include(hunter_test_string_not_empty)

function(hunter_apply_gate_settings)
  get_property(gate_done GLOBAL PROPERTY HUNTER_GATE_DONE SET)

  if(HUNTER_GATE_DONE)
    # Can be set explicitly in case of loading package
    # from scheme (without HunterGate)
    set(gate_done YES)
  endif()

  # Check any of cache variable is not empty
  string(
      COMPARE
      NOTEQUAL
      "${HUNTER_CACHED_ROOT}${HUNTER_SHA1}${HUNTER_CONFIG_SHA1}${HUNTER_VERSION}${HUNTER_TOOLCHAIN_SHA1}${HUNTER_CACHED_CONFIGURATION_TYPES}"
      ""
      cache_init
  )

  # Unify values
  if(gate_done)
    set(gate_done YES)
  else()
    set(gate_done NO)
  endif()

  # Unify values
{'fraction_non_alphanumeric': 0.07763671875, 'fraction_numerical': 0.0107421875, 'mean_word_length': 6.240282685512367, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7651125', 'n_tokens_mistral': 767, 'n_tokens_neox': 747, 'n_words': 120}