<commit_before>describe "Pedant API" do
  context "sanity check" do
    # What we are testing:

    # Here we take all of the patterns used in the other tests and
    # verify that the permissions are correctly set up by the helper
    # functions.

    # We are explictly testing:
    #   with_ace_on
    #   with_acl_on
    # And indirectly:
    #   with_actor(s)
    #   with_group
    #   (with_object)
    #   (with_container)
    # We then verify the permissions and memberships with
    #   directly_have_permission
    #     on
    #   be_a_direct_member_of

    context "for actors" do
      [:create, :read, :update, :delete, :grant].each do |action|
        context "for #{action.upcase} ACE" do
          context "for single ACE on actor" do
            with_actors :hasselhoff, :shatner

            with_ace_on :shatner, action, :to => [:hasselhoff]

            it "has permission" do
              :hasselhoff.should directly_have_permission(action).on(:actor, :shatner)
            end
          end

          context "an actor NOT in the ACE" do
            with_actors :malkovich, :shatner
<commit_msg>Comment fix<commit_after>describe "Pedant API" do
  context "sanity check" do
    # What we are testing:

    # Here we take all of the patterns used in the other tests and
    # verify that the permissions are correctly set up by the helper
    # functions.

    # We are explictly testing:
    #   with_ace_on
    #   with_acl_on
    # And indirectly:
    #   with_actor(s)
    #   with_group
    #   with_entity
    # We then verify the permissions and memberships with
    #   directly_have_permission
    #     on
    #   be_a_direct_member_of

    context "for actors" do
      [:create, :read, :update, :delete, :grant].each do |action|
        context "for #{action.upcase} ACE" do
          context "for single ACE on actor" do
            with_actors :hasselhoff, :shatner

            with_ace_on :shatner, action, :to => [:hasselhoff]

            it "has permission" do
              :hasselhoff.should directly_have_permission(action).on(:actor, :shatner)
            end
          end

          context "an actor NOT in the ACE" do
            with_actors :malkovich, :shatner

{'fraction_non_alphanumeric': 0.07539503386004515, 'fraction_numerical': 0.0, 'mean_word_length': 2.2209302325581395, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '318305', 'n_tokens_mistral': 703, 'n_tokens_neox': 664, 'n_words': 222}