<commit_before>/**
 *  @file
 *  @copyright defined in eos/LICENSE.txt
 */
#pragma once

#include <eoslib/eos.hpp>
#include <eoslib/dispatcher.hpp>
#include <eoslib/types.hpp>
#include <eoslib/string.hpp>

using namespace eosio;

namespace noop {
   /**
      noop contract
      All it does is require sender authorization.
      Actions: anyaction and a template staticany.
    */


   class noop {
      public:
         
         ACTION(N(noop), anyaction) {
            anyaction() { }
            anyaction(account_name f, const string& t, const string& d): from(f), type(t), data(d) { }
            
            account_name from;
            string type;
            string data;
            
            EOSLIB_SERIALIZE(anyaction, (from)(type)(data))
         };

         template <typename T, uint64_t Name>
         struct staticany: action_meta<N(noop), Name> {
            account_name from;
            T data;
               
            EOSLIB_SERIALIZE(staticany, (from)(data))
         };

         static void on(const anyaction& act)
         {
            require_auth(act.from);
         }

         template <typename T, uint64_t Name>
         static void on(const staticany<T, Name>& act)
         {
            require_auth(act.from);
         }

   };
} /// noop<commit_msg>Removed staticany<commit_after>/**
 *  @file
 *  @copyright defined in eos/LICENSE.txt
 */
#pragma once

#include <eoslib/eos.hpp>
#include <eoslib/dispatcher.hpp>
#include <eoslib/types.hpp>
#include <eoslib/string.hpp>

using namespace eosio;

namespace noop {
   /**
      noop contract
      All it does is require sender authorization.
      Actions: anyaction
    */


   class noop {
      public:
         
         ACTION(N(noop), anyaction) {
            anyaction() { }
            anyaction(account_name f, const string& t, const string& d): from(f), type(t), data(d) { }
            
            account_name from;
            string type;
            string data;
            
            EOSLIB_SERIALIZE(anyaction, (from)(type)(data))
         };

         static void on(const anyaction& act)
         {
            require_auth(act.from);
         }
   };
} /// noop
{'fraction_non_alphanumeric': 0.11019661636945588, 'fraction_numerical': 0.001828989483310471, 'mean_word_length': 1.7522012578616353, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1514820', 'n_tokens_mistral': 682, 'n_tokens_neox': 657, 'n_words': 159}