<commit_before>/**
 *  @file
 *  @copyright defined in eos/LICENSE.txt
 */
#pragma once
#include <eosiolib/print.h>
#include <eosiolib/types.hpp>
#include <eosiolib/fixed_key.hpp>
#include <utility>

namespace eosio {

   static_assert( sizeof(long) == sizeof(int), "unexpected size difference" );

   /**
    *  Prints string
    *  @brief Prints string
    *  @param ptr - a null terminated string
    */
   inline void print( const char* ptr ) {
      prints(ptr);
   }

   /**
    * Prints signed integer
    * @brief Prints signed integer as a 64 bit signed integer
    * @param num to be printed
    */
   inline void print( int num ) {
      printi(num);
   }

   /**
    * Prints 32 bit signed integer
    * @brief Prints 32 bit signed integer as a 64 bit signed integer
    * @param num to be printed
    */
   inline void print( int32_t num ) {
      printi(num);
   }<commit_msg>Add impl for std::string printing, #2984<commit_after>/**
 *  @file
 *  @copyright defined in eos/LICENSE.txt
 */
#pragma once
#include <eosiolib/print.h>
#include <eosiolib/types.hpp>
#include <eosiolib/fixed_key.hpp>
#include <utility>
#include <string>

namespace eosio {

   static_assert( sizeof(long) == sizeof(int), "unexpected size difference" );

   /**
    *  Prints string
    *  @brief Prints string
    *  @param ptr - a null terminated string
    */
   inline void print( const char* ptr ) {
      prints(ptr);
   }

   inline void print( const std::string& s) {
      prints(s.c_str());
   }

   /**
    * Prints signed integer
    * @brief Prints signed integer as a 64 bit signed integer
    * @param num to be printed
    */
   inline void print( int num ) {
      printi(num);
   }

   /**
    * Prints 32 bit signed integer
    * @brief Prints 32 bit signed integer as a 64 bit signed integer
    * @param num to be printed
    */
   inline void print( int32_t num ) {
      printi(num);
   }
{'fraction_non_alphanumeric': 0.11461619348054679, 'fraction_numerical': 0.012618296529968454, 'mean_word_length': 2.583804143126177, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '2857246', 'n_tokens_mistral': 647, 'n_tokens_neox': 614, 'n_words': 202}