<commit_before>#include <eosio/chain/webassembly/interface.hpp>
#include <fc/uint128.hpp>

namespace eosio { namespace chain { namespace webassembly {

   template <typename Ctx, typename F>
   inline static void predicated_print(Ctx& context, F&& print_func) {
      if (UNLIKELY(!context.control.contracts_console()))
         print_func();
   }

   // Kept as intrinsic rather than implementing on WASM side (using prints_l and strlen) because strlen is faster on native side.
   // TODO predicate these for ignore
   void interface::prints(null_terminated_ptr str) {
      predicated_print(context,<commit_msg>Fix backwards test of contracts_console.<commit_after>#include <eosio/chain/webassembly/interface.hpp>
#include <fc/uint128.hpp>

namespace eosio { namespace chain { namespace webassembly {

   template <typename Ctx, typename F>
   inline static void predicated_print(Ctx& context, F&& print_func) {
      if (UNLIKELY(context.control.contracts_console()))
         print_func();
   }

   // Kept as intrinsic rather than implementing on WASM side (using prints_l and strlen) because strlen is faster on native side.
   // TODO predicate these for ignore
   void interface::prints(null_terminated_ptr str) {
      predicated_print(context,
{'fraction_non_alphanumeric': 0.08771929824561403, 'fraction_numerical': 0.004784688995215311, 'mean_word_length': 4.273109243697479, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6705542', 'n_tokens_mistral': 367, 'n_tokens_neox': 348, 'n_words': 111}