<commit_before>var tmpl_usertype_h = (function() {/*#ifndef __<%= struct_name.toUpperCase() %>_H_
#define __<%= struct_name.toUpperCase() %>_H_

#include <systemc.h>

struct <%= struct_name %>
{
<% for (var i=0; i<signals.length; i++) { %>
  <%= signals[i].type %>  <%= signals[i].var_name %>;
<% } %>

  <%= struct_name %>() {
<% for (var i=0; i<signals.length; i++) { %>
    <%= signals[i].var_name %> = <%= signals[i].type == "bool" ? false : "0" %>;
<% } %>
  }

  bool operator == (const <%= struct_name %>& other) const {
    return (
<% for (var i=0; i<signals.length; i++) { %>
<%   if (i==0) { %>
         (<%= signals[i].var_name %> == other.<%= signals[i].var_name %>)
<%   } else { %>
      && (<%= signals[i].var_name %> == other.<%= signals[i].var_name %>)
<%   } %>
<% } %>
    );
  }

  friend ostream& operator < (ostream& os, const <%= struct_name %>& trans) {
    os << "(";
<% for (var i=0; i<signals.length; i++) { %>
<%   if (i==0) { %>
    os << "<%= signals[i].var_name %>" << "=" << trans.<%= signals[i].var_name %> ;
<%   } else { %>
    os << ",<%= signals[i].var_name %>" << "=" << trans.<%= signals[i].var_name %> ;
<%   } %>
<% } %>
    os << ")";
    return os;
  }

  friend void sc_trace(sc_trace_file*& tf, const <%= struct_name %> trans, std::string nm) {
<% for (var i=0; i<signals.length; i++) { %>
    sc_trace( tf, trans.<%=signals[i].var_name %>, nm + ".<%= signals[i].var_name %>" );
<% } %>
  }

};

#endif
*/}).toString().match(/\/\*([^]*)\*\//)[1];<commit_msg>bugfix.<commit_after>var tmpl_usertype_h = (function() {/*#ifndef __<%= struct_name.toUpperCase() %>_H_
#define __<%= struct_name.toUpperCase() %>_H_

#include <systemc.h>

struct <%= struct_name %>
{
<% for (var i=0; i<signals.length; i++) { %>
  <%= signals[i].type %>  <%= signals[i].var_name %>;
<% } %>

  <%= struct_name %>() {
<% for (var i=0; i<signals.length; i++) { %>
    <%= signals[i].var_name %> = <%= signals[i].type == "bool" ? false : "0" %>;
<% } %>
  }

  bool operator == (const <%= struct_name %>& other) const {
    return (
<% for (var i=0; i<signals.length; i++) { %>
<%   if (i==0) { %>
         (<%= signals[i].var_name %> == other.<%= signals[i].var_name %>)
<%   } else { %>
      && (<%= signals[i].var_name %> == other.<%= signals[i].var_name %>)
<%   } %>
<% } %>
    );
  }

  friend ostream& operator << (ostream& os, const <%= struct_name %>& trans) {
    os << "(";
<% for (var i=0; i<signals.length; i++) { %>
<%   if (i==0) { %>
    os << "<%= signals[i].var_name %>" << "=" << trans.<%= signals[i].var_name %> ;
<%   } else { %>
    os << ",<%= signals[i].var_name %>" << "=" << trans.<%= signals[i].var_name %> ;
<%   } %>
<% } %>
    os << ")";
    return os;
  }

  friend void sc_trace(sc_trace_file*& tf, const <%= struct_name %>& trans, std::string nm) {
<% for (var i=0; i<signals.length; i++) { %>
    sc_trace( tf, trans.<%=signals[i].var_name %>, nm + ".<%= signals[i].var_name %>" );
<% } %>
  }

};

#endif
*/}).toString().match(/\/\*([^]*)\*\//)[1];
{'fraction_non_alphanumeric': 0.2959387483355526, 'fraction_numerical': 0.005992010652463382, 'mean_word_length': 3.244350282485876, 'pattern_counts': {'":': 0, '<': 124, '<?xml version=': 0, '>': 79, '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': '2452133', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1182, 'n_words': 201}