<commit_before>
//
// specifying aabro
//
// Mon Apr 21 06:06:30 JST 2014
//

#include "aabro.h"

context "sample, arith"
{
  before all
  {
    //abr_parser *number =
    //  abr_regex_s("^-?[0-9]+");
    //abr_parser *parentheses =
    //  abr_seq(abr_string("("), expression, abr_string(")"));
    //abr_parser *value =
    //  abr_alt(parentheses, number);
    //abr_parser *operator =
    //  abr_regex_s("^[\+\-\*\/]");
    //abr_parser *operation =
    //  abr_seq(value, abr_rep(abr_seq(operator, value), 0, -1));
    //
    //abr_parser *expression =
    //  operation;
  }

  it "parses numbers"
  {
    ensure(1 == 1);
  }
}

<commit_msg>add variant to arith sample<commit_after>
//
// specifying aabro
//
// Mon Apr 21 06:06:30 JST 2014
//

#include "aabro.h"

context "sample, arith"
{
  before all
  {
    //abr_parser *number =
    //  abr_regex_s("^-?[0-9]+");
    //abr_parser *parentheses =
    //  abr_seq(abr_string("("), expression, abr_string(")"));
    //abr_parser *value =
    //  abr_alt(parentheses, number);
    //abr_parser *operator =
    //  abr_regex_s("^[\+\-\*\/]");
    //abr_parser *operation =
    //  abr_seq(value, abr_rep(abr_seq(operator, value), 0, -1));
    //abr_parser *expression =
    //  operation;

    //abr_parser *nb =
    //  abr_n_regex_s("number", "^-?[0-9]+");
    //abr_parser *pas =
    //  abr_n_seq("parentheses", abr_string("("), abr_n("expression"), abr_string(")"));
    //abr_parser *val =
    //  abr_n_alt("value", pas, nb);
    //abr_parser *operator =
    //  abr_n_regex_s("operator", "^[\+\-\*\/]");
    //abr_parser *operation =
    //  abr_n_seq("operation", value, abr_rep(abr_seq(operator, value), 0, -1));
    //abr_parser *expression =
    //  abr_name("expression", operation);
        //
        // need a placeholder parser and various abr_n_*
  }

  it "parses numbers"
  {
    ensure(1 == 1);
  }
}


{'fraction_non_alphanumeric': 0.20680489101541732, 'fraction_numerical': 0.02126528442317916, 'mean_word_length': 2.434306569343066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2193800', 'n_tokens_mistral': 799, 'n_tokens_neox': 761, 'n_words': 133}