<commit_before>ProposalType = GraphQL::ObjectType.define do
  name "Proposal"
  description "A single proposal entry returns a proposal with author, total votes and comments"
  # Expose fields associated with Proposal model
  field :id, types.ID, "The id of this proposal"
  field :title, types.String, "The title of this proposal"
  field :description, types.String, "The description of this proposal"
  field :question, types.String, "The question of this proposal"
  field :external_url, types.String, "External url related to this proposal"
  field :author_id, types.Int, "ID of the author of this proposal"
  field :flags_count, types.Int, "Number of flags of this proposal"
  field :cached_votes_up, types.Int, "Number of upvotes of this proposal"
  field :comments_count, types.Int, "Number of comments on this proposal"
  field :summary, types.String, "The summary of this proposal"
  field :video_url, types.String, "External video url related to this proposal"
  field :geozone_id, types.Int, "ID of the geozone affected by this proposal"
  field :retired_at, types.String, "Date when this proposal was retired"
  field :retired_reason, types.String, "Reason why this proposal was retired"
  field :retired_explanation, types.String, "Explanation why this proposal was retired"
end<commit_msg>Ability to retrieve proposal comments<commit_after>ProposalType = GraphQL::ObjectType.define do
  name "Proposal"
  description "A single proposal entry returns a proposal with author, total votes and comments"
  # Expose fields associated with Proposal model
  field :id, types.ID, "The id of this proposal"
  field :title, types.String, "The title of this proposal"
  field :description, types.String, "The description of this proposal"
  field :question, types.String, "The question of this proposal"
  field :external_url, types.String, "External url related to this proposal"
  field :author_id, types.Int, "ID of the author of this proposal"
  field :flags_count, types.Int, "Number of flags of this proposal"
  field :cached_votes_up, types.Int, "Number of upvotes of this proposal"
  field :comments_count, types.Int, "Number of comments on this proposal"
  field :summary, types.String, "The summary of this proposal"
  field :video_url, types.String, "External video url related to this proposal"
  field :geozone_id, types.Int, "ID of the geozone affected by this proposal"
  field :retired_at, types.String, "Date when this proposal was retired"
  field :retired_reason, types.String, "Reason why this proposal was retired"
  field :retired_explanation, types.String, "Explanation why this proposal was retired"

  # Linked resources
  field :comments, !types[!CommentType], "Comments in this proposal"
end
{'fraction_non_alphanumeric': 0.07938257993384785, 'fraction_numerical': 0.0, 'mean_word_length': 5.103139013452915, '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': '2468157', 'n_tokens_mistral': 760, 'n_tokens_neox': 753, 'n_words': 332}