<commit_before>package generator

import "html/template"

const moduleTemplate = `
/* Generated by the protoc-gen-yara. DO NOT EDIT! */
#include <yara/mem.h>
#include <yara/modules.h>
#include "{{ .IncludeName }}.pb-c.h"

#define MODULE_NAME {{ .ModuleName }}

static void* _pb_alloc(void *allocator_data, size_t size)
{
  return yr_malloc(size);
}

static void _pb_free(void *allocator_data, void *pointer)
{
  return yr_free(pointer);
}

begin_declarations;
{{ .Declarations -}}
end_declarations;

int module_initialize(
    YR_MODULE* module)
{
  return ERROR_SUCCESS;
}

int module_finalize(
    YR_MODULE* module)<commit_msg>Minor change in code template.<commit_after>package generator

import "html/template"

const moduleTemplate = `
/* Generated by protoc-gen-yara. DO NOT EDIT! */

#include <yara/mem.h>
#include <yara/modules.h>
#include "{{ .IncludeName }}.pb-c.h"

#define MODULE_NAME {{ .ModuleName }}

static void* _pb_alloc(void *allocator_data, size_t size)
{
  return yr_malloc(size);
}

static void _pb_free(void *allocator_data, void *pointer)
{
  return yr_free(pointer);
}

begin_declarations;
{{ .Declarations -}}
end_declarations;

int module_initialize(
    YR_MODULE* module)
{
  return ERROR_SUCCESS;
}

int module_finalize(
    YR_MODULE* module)
{'fraction_non_alphanumeric': 0.12637362637362637, 'fraction_numerical': 0.0, 'mean_word_length': 4.902777777777778, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5409421', 'n_tokens_mistral': 468, 'n_tokens_neox': 458, 'n_words': 106}