<commit_before>#include <specc.h>
#include "strope.h"
#include <string.h>

#define pending_for_not_impemented() pending("not implemented")

specc_main {
  describe ("Strope") {
    Strope *leaf = NULL;
    Strope *node = NULL;

    before {
      leaf = Strope_new("The qui");
      node = Strope_concat(Strope_concat(leaf, Strope_new("ck brown")), Strope_new(" fox"));
    }

    after {
      if (leaf != NULL) {
        Strope_free(leaf);
        leaf = NULL;
      }

      if (node != NULL) {
        Strope_free(node);
        node = NULL;
      }
    }

    describe ("Strope_cstring()") {
      describe ("with \"The qui\"") {
        it ("returns \"The qui\" in C") {
          pending_for_not_impemented();
          expect_that(strcmp(Strope_cstring(leaf), "The qui") == 0);
        }
      }

      describe ("with \"The quick brown fox\"") {
        it ("returns \"The quick brown fox\" in C") {
          pending("not implemented");
          expect_that(strcmp(Strope_cstring(leaf), "The quick brown fox"));
        }
      }
    }

    describe ("Strope_length()") {
      describe ("with \"The qui\"") {
        it ("returns 7") {
          pending_for_not_impemented();
          expect_that(Strope_length(leaf) == 7);
        }
      }

      describe ("with \"The quick brown fox\"") {
        it ("returns 7") {
          pending_for_not_impemented();
          expect_that(Strope_length(node) == 19);
        }
      }
    }

    describe ("Strope_at()") {
      describe ("with \"The qui\" and 4") {
        it ("returns 'q'") {
          pending_for_not_impemented();
          expect_that(Strope_at(leaf, 4) == 'q');
        }
      }

      describe ("with \"The quick brown fox\"") {
        describe ("and 4") {<commit_msg>fix typo<commit_after>#include <specc.h>
#include "strope.h"
#include <string.h>

#define pending_for_not_impemented() pending("not implemented")

specc_main {
  describe ("Strope") {
    Strope *leaf = NULL;
    Strope *node = NULL;

    before {
      leaf = Strope_new("The qui");
      node = Strope_concat(Strope_concat(leaf, Strope_new("ck brown")), Strope_new(" fox"));
    }

    after {
      if (leaf != NULL) {
        Strope_free(leaf);
        leaf = NULL;
      }

      if (node != NULL) {
        Strope_free(node);
        node = NULL;
      }
    }

    describe ("Strope_cstring()") {
      describe ("with \"The qui\"") {
        it ("returns \"The qui\" in C") {
          pending_for_not_impemented();
          expect_that(strcmp(Strope_cstring(leaf), "The qui") == 0);
        }
      }

      describe ("with \"The quick brown fox\"") {
        it ("returns \"The quick brown fox\" in C") {
          pending("not implemented");
          expect_that(strcmp(Strope_cstring(leaf), "The quick brown fox"));
        }
      }
    }

    describe ("Strope_length()") {
      describe ("with \"The qui\"") {
        it ("returns 7") {
          pending_for_not_impemented();
          expect_that(Strope_length(leaf) == 7);
        }
      }

      describe ("with \"The quick brown fox\"") {
        it ("returns 19") {
          pending_for_not_impemented();
          expect_that(Strope_length(node) == 19);
        }
      }
    }

    describe ("Strope_at()") {
      describe ("with \"The qui\" and 4") {
        it ("returns 'q'") {
          pending_for_not_impemented();
          expect_that(Strope_at(leaf, 4) == 'q');
        }
      }

      describe ("with \"The quick brown fox\"") {
        describe ("and 4") {
{'fraction_non_alphanumeric': 0.15551743853630645, 'fraction_numerical': 0.005431675242995998, 'mean_word_length': 2.042608695652174, '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': '6291773', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1142, 'n_words': 257}