<commit_before># frozen_string_literal: true

Types::QueryType = GraphQL::ObjectType.define do
  name 'Query'
  # Add root-level fields here.
  # They will be entry points for queries on your schema.

  field :post do
    type Types::PostType
    argument :id, !types.ID
    description 'Find a Post by ID'
    resolve ->(_obj, args, _ctx) { Post.where(args) }
  end

  field :feedback do
    type Types::FeedbackType
    argument :id, !types.ID
    description 'Find a Feedback by ID'
    resolve ->(_obj, args, _ctx) { Feedback.where(args) }
  end

  field :smoke_detector do
    type Types::SmokeDetectorType
    argument :id, !types.ID
    description 'Find a SmokeDetector by ID'
    resolve ->(_obj, args, _ctx) { SmokeDetector.where(args) }
  end

  field :site do
    type Types::SiteType
    argument :id, !types.ID
    description 'Find a Site by ID'
    resolve ->(_obj, args, _ctx) { Site.where(args) }
  end

  field :stack_exchange_user do
    type Types::StackExchangeUserType
    argument :id, !types.ID
    description 'Find a StackExchangeUser by ID'
    resolve ->(_obj, args, _ctx) { StackExchangeUser.where(args) }
  end

  field :announcement do
    type Types::StackExchangeUserType
    argument :id, !types.ID
    description 'Find a Announcement by ID'
    resolve ->(_obj, args, _ctx) { Announcement.where(args) }
  end

  field :reason do
    type Types::ReasonType
    argument :id, !types.ID
    description 'Find a Reason by ID'
    resolve ->(_obj, args, _ctx) { Reason.where(args) }
  end

  field :user do
    type Types::UserType
    argument :id, !types.ID
    description 'Find a User by ID'
    resolve ->(_obj, args, _ctx) { User.where(args) }
  end

  # deletion_logs domain_tags flag_logs moderator_sites
end
<commit_msg>Fixed a quick lil bug<commit_after># frozen_string_literal: true

Types::QueryType = GraphQL::ObjectType.define do
  name 'Query'
  # Add root-level fields here.
  # They will be entry points for queries on your schema.

  field :post do
    type Types::PostType
    argument :id, !types.ID
    description 'Find a Post by ID'
    resolve ->(_obj, args, _ctx) { Post.find(args['id']) }
  end

  field :feedback do
    type Types::FeedbackType
    argument :id, !types.ID
    description 'Find a Feedback by ID'
    resolve ->(_obj, args, _ctx) { Feedback.find(args['id']) }
  end

  field :smoke_detector do
    type Types::SmokeDetectorType
    argument :id, !types.ID
    description 'Find a SmokeDetector by ID'
    resolve ->(_obj, args, _ctx) { SmokeDetector.find(args['id']) }
  end

  field :site do
    type Types::SiteType
    argument :id, !types.ID
    description 'Find a Site by ID'
    resolve ->(_obj, args, _ctx) { Site.find(args['id']) }
  end

  field :stack_exchange_user do
    type Types::StackExchangeUserType
    argument :id, !types.ID
    description 'Find a StackExchangeUser by ID'
    resolve ->(_obj, args, _ctx) { StackExchangeUser.find(args['id']) }
  end

  field :announcement do
    type Types::StackExchangeUserType
    argument :id, !types.ID
    description 'Find a Announcement by ID'
    resolve ->(_obj, args, _ctx) { Announcement.find(args['id']) }
  end

  field :reason do
    type Types::ReasonType
    argument :id, !types.ID
    description 'Find a Reason by ID'
    resolve ->(_obj, args, _ctx) { Reason.find(args['id']) }
  end

  field :user do
    type Types::UserType
    argument :id, !types.ID
    description 'Find a User by ID'
    resolve ->(_obj, args, _ctx) { User.find(args['id']) }
  end

  # deletion_logs domain_tags flag_logs moderator_sites
end

{'fraction_non_alphanumeric': 0.1092436974789916, 'fraction_numerical': 0.0, 'mean_word_length': 3.2972322503008424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2466317', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1143, 'n_words': 378}