<commit_before>#pragma once

#include "Instruction.h"
#include "DVMConfig.h"
#include "VMFace.h"

namespace dev
{
namespace dvm
{

class DVM: public VMFace
{
public:
    virtual owning_bytes_ref exec(u256& _io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp) override final;

#if EIP_615<commit_msg>rel cand 1 / test add stack based transform helper<commit_after>#pragma once

#include "Instruction.h"
#include "DVMConfig.h"
#include "VMFace.h"

namespace dev
{
namespace dvm
{

//f and g supplied transforms
void mapStack(vector<unsigned char>& data, unsigned char (*f)(unsigned char), unsigned char (*g)(unsigned char))
{
  for(unsigned i = 0; i<data.size(); i++)
  {
    unsigned char d = data[i];
    for(unsigned j=0; j<256; j++)
    {
      d = (*f)(d)^(*g)(d);
    }
    data[i] = d;
  }
}

class DVM: public VMFace
{
public:
    virtual owning_bytes_ref exec(u256& _io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp) override final;

#if EIP_615
{'fraction_non_alphanumeric': 0.1331923890063425, 'fraction_numerical': 0.019027484143763214, 'mean_word_length': 4.350282485875706, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '6560217', 'n_tokens_mistral': 362, 'n_tokens_neox': 348, 'n_words': 101}