<commit_before>defmodule Gannbaruzoi.Types do
  @moduledoc """
  GraphQL Types
  """
  use Absinthe.Schema.Notation
  import Absinthe.Relay.Connection.Notation

  @desc "A task"
  object :task do
    field :id, non_null(:id)
    field :description, non_null(:string)
    field :estimated_size, non_null(:integer)
    field :type, non_null(:string)
    field :parent_id, :id
    field :status, non_null(:boolean)
  end

  @desc "Connection of Tasks"
  connection node_type: :task

  @desc "A log"
  object :log do
    field :id, non_null(:integer)
    field :task_id, non_null(:integer)
  end

  @desc "An auth"
  object :auth do
    field :uid, non_null(:id)
    field :client, non_null(:string)
    field :access_token, non_null(:string)
  end
end
<commit_msg>Add Task enum (#37)<commit_after>defmodule Gannbaruzoi.Types do
  @moduledoc """
  GraphQL Types
  """
  use Absinthe.Schema.Notation
  import Absinthe.Relay.Connection.Notation

  @desc "A task"
  object :task do
    field :id, non_null(:id)
    field :description, non_null(:string)
    field :estimated_size, non_null(:integer)
    field :type, non_null(:task_enum)
    field :parent_id, :id
    field :status, non_null(:boolean)
  end

  @desc "Connection of Tasks"
  connection node_type: :task

  @desc "Task type"
  enum :task_enum do
    value :branch, as: "branch", description: "Sub-task"
    value :root, as: "root", description: "Root-task"
  end

  @desc "A log"
  object :log do
    field :id, non_null(:integer)
    field :task_id, non_null(:integer)
  end

  @desc "An auth"
  object :auth do
    field :uid, non_null(:id)
    field :client, non_null(:string)
    field :access_token, non_null(:string)
  end
end

{'fraction_non_alphanumeric': 0.11775147928994083, 'fraction_numerical': 0.001183431952662722, 'mean_word_length': 3.6972222222222224, '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': '7266332', 'n_tokens_mistral': 612, 'n_tokens_neox': 597, 'n_words': 166}