<commit_before>// ActionCLR.h

#pragma once
#include <cliext/vector>
#include "Blueprint.h"
#include "HelpersCLR.h"
#include "TransactionExampleCLR.h"

using namespace System;
using namespace System::Collections::Generic;
using namespace cliext;

namespace snowcrashCLR{
    /**
	 *	CLR Wrapper for snowcrash::Action.
	 */
    public ref class Action {
    private:
        vector<Parameter^> ^parameters;
        vector<Header^> ^headers;
        vector<TransactionExample^> ^examples;  
    public:
        String ^name;
        String ^description;
        String ^method;

        vector<Parameter^>::generic_container ^GetParametersCpp() {
            return parameters;
        }

        ICollection<Parameter^> ^GetParametersCs() {
            return parameters;
        }

        vector<Header^>::generic_container ^GetHeadersCpp() {
            return headers;
        }

        ICollection<Header^> ^GetHeadersCs() {
            return headers;
        }

        vector<TransactionExample^>::generic_container ^GetTransactionExamplesCpp() {
            return examples;
        }

        ICollection<TransactionExample^> ^GetTransactionExamplesCs() {
            return examples;
        }

        void wrap(const snowcrash::Action &action) {
            name = gcnew String(action.name.c_str());
            description = gcnew String(action.description.c_str());<commit_msg>Add parsing for the method for an action<commit_after>// ActionCLR.h

#pragma once
#include <cliext/vector>
#include "Blueprint.h"
#include "HelpersCLR.h"
#include "TransactionExampleCLR.h"

using namespace System;
using namespace System::Collections::Generic;
using namespace cliext;

namespace snowcrashCLR{
    /**
	 *	CLR Wrapper for snowcrash::Action.
	 */
    public ref class Action {
    private:
        vector<Parameter^> ^parameters;
        vector<Header^> ^headers;
        vector<TransactionExample^> ^examples;  
    public:
        String ^name;
        String ^description;
        String ^method;

        vector<Parameter^>::generic_container ^GetParametersCpp() {
            return parameters;
        }

        ICollection<Parameter^> ^GetParametersCs() {
            return parameters;
        }

        vector<Header^>::generic_container ^GetHeadersCpp() {
            return headers;
        }

        ICollection<Header^> ^GetHeadersCs() {
            return headers;
        }

        vector<TransactionExample^>::generic_container ^GetTransactionExamplesCpp() {
            return examples;
        }

        ICollection<TransactionExample^> ^GetTransactionExamplesCs() {
            return examples;
        }

        void wrap(const snowcrash::Action &action) {
            name = gcnew String(action.name.c_str());
            description = gcnew String(action.description.c_str());
            method = gcnew String(action.method.c_str());
{'fraction_non_alphanumeric': 0.10456605088881143, 'fraction_numerical': 0.0, 'mean_word_length': 2.551980198019802, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5291263', 'n_tokens_mistral': 786, 'n_tokens_neox': 768, 'n_words': 167}