<commit_before>macro actor {
  case { $actor $name:ident { $($msg:expr => { $body ... } ) (,) ... } } => {
	letstx $lActor = [makeIdent("Actor", #{$actor})];
    var patterns = #{$($msg { $body ... }) ...};
    var res = #{
        function $name() {};
        var act = function(sender, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
    };
    var all = [];
    var cond = #{true};
    var body = [];
    for (var i = 0; i < patterns.length; i++) {
      if (patterns[i].token.type == parser.Token.Identifier) {
        // bind identifier
      } else if (patterns[i].token.value != "{}") {
        // match
        cond = cond.concat(#{ && arg1 == });
        cond.push(patterns[i]);<commit_msg>fixed body parsing bug<commit_after>macro actor {
  case { $actor $name:ident { $($msg:expr => $body) (,) ... } } => {
	letstx $lActor = [makeIdent("Actor", #{$actor})];
    var patterns = #{$($msg { $body } ) ...};
    var res = #{
        function $name() {};
        var act = function(sender, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
    };
    var all = [];
    var cond = #{true};
    var body = [];
    for (var i = 0; i < patterns.length; i++) {
      if (patterns[i].token.type == parser.Token.Identifier) {
        // bind identifier
      } else if (patterns[i].token.value != "{}") {
        // match
        cond = cond.concat(#{ && arg1 == });
        cond.push(patterns[i]);
{'fraction_non_alphanumeric': 0.21935483870967742, 'fraction_numerical': 0.014336917562724014, 'mean_word_length': 2.2616822429906542, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1493414', 'n_tokens_mistral': 482, 'n_tokens_neox': 474, 'n_words': 116}