<commit_before>// This will initalize and drive the pmc logic

#include "lorito.h"
#include "pmc.h"
#include "pmc_func.h"
#include "interp.h"

void
lorito_pmc_func_size(Lorito_Interp *interp, Lorito_Ctx *ctx)
{
  Lorito_PMC *source = lorito_pop_arg(ctx);
  lorito_clr_arg(ctx);
  lorit_push_arg(interp, ctx, source->size);
}<commit_msg>Fill in and correct the code in pmc_func for size.<commit_after>// This will initalize and drive the pmc logic

#include "lorito.h"
#include "pmc.h"
#include "pmc_func.h"
#include "interp.h"

void lorito_pmc_func(Lorito_Interp *interp, Lorito_Ctx *ctx, Lorito_Str *func)
{
  if (func == lorito_string(interp, 0, "size"))
  {
    lorito_pmc_func_size(interp, ctx);
  }
}

void
lorito_pmc_func_size(Lorito_Interp *interp, Lorito_Ctx *ctx)
{
  Lorito_PMC *source = lorito_pop_arg(interp, ctx);
  lorito_clr_arg(interp, ctx);
  Lorito_PMC *size = lorito_box_int_new(interp, source->size);
  lorito_push_arg(interp, ctx, size);
}
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0010416666666666667, 'mean_word_length': 5.767605633802817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6902798', 'n_tokens_mistral': 421, 'n_tokens_neox': 419, 'n_words': 87}