<commit_before>CREATE OR REPLACE VIEW documentsuggestiongroup AS
  SELECT
    "verifiedDocument"."id"  AS "document",
    "groupMembership"."group" AS "researchEntity"
  FROM (
         SELECT *
         FROM "membership"
       ) AS "groupMembership",
    (SELECT *
     FROM "reference"
     WHERE "draft" = FALSE) AS "verifiedDocument"
  WHERE "verifiedDocument"."id" IN (
    SELECT "document"
    FROM "authorship"
    WHERE "researchEntity" IN (
      SELECT "user"
      FROM "membership"
      WHERE "group" = "groupMembership"."id")
          AND
          "verifiedDocument"."id" NOT IN (
            SELECT "reference_discardedGroups"
            FROM "group_discardedreferences__reference_discardedgroups"
            WHERE "group_discardedReferences" = "groupMembership"."group"
          )
  )

<commit_msg>Fixed uncorrect view.<commit_after>CREATE OR REPLACE VIEW documentsuggestiongroup AS
  SELECT
    "verifiedDocument"."id"  AS "document",
    "groupMembership"."group" AS "researchEntity"
  FROM (
         SELECT *
         FROM "membership"
       ) AS "groupMembership",
    (SELECT *
     FROM "reference"
     WHERE "draft" = FALSE) AS "verifiedDocument"
  WHERE "verifiedDocument"."id" IN (
    SELECT "document"
    FROM "authorship"
    WHERE "researchEntity" IN (
      SELECT "user"
      FROM "membership"
      WHERE "group" = "groupMembership"."id")
          AND
          "verifiedDocument"."id" NOT IN (
            SELECT "reference_discardedGroups"
            FROM "group_discardedreferences__reference_discardedgroups"
            WHERE "group_discardedReferences" = "groupMembership"."group"
          )
          AND
          "verifiedDocument"."id" NOT IN (
            SELECT "authorshipgroup"."document"
            FROM "authorshipgroup"
            WHERE "authorshipgroup"."researchEntity" = "groupMembership"."group"
          )
  )


{'fraction_non_alphanumeric': 0.1009028146574615, 'fraction_numerical': 0.0, 'mean_word_length': 2.488888888888889, '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': '971312', 'n_tokens_mistral': 561, 'n_tokens_neox': 517, 'n_words': 123}