<commit_before>config:
  application_name: Rhino
  db:
    dev:
      adapter: sqlite3
      database: default
      dbname: default
    production:
      adapter: mysql
      database:
      dbname: blog

auth:
  type: session
  #plugin: auth_user
  data_model: user
  data_field: [name,password]

data:
  # model
  model:
    Product:
      type: entity
      table: products
      primary_key:
        id:
          type: integer
          generator:
            strategy: AUTO
      fields:
        name:
          type: string
          label: 产品名
          limit: 120
      has_many:
        bugs:
          targetEntity: Bug
          mappedBy: products

    Bug:
      type: entity
      table: bugs
      primary_key:
        id:
          type: integer
          generator:
            strategy: AUTO
      fields:
        description:
          type: text
          label: 解释
        created:
          type: datetime
          label: 创建日期
        status:
          type: enum
          values: [reported,fixing,fixed]
          label: 状态
      belong_to:
        reporter:
          target_entity: User
        engineer:
          target_entity: User
        products:
          target_entity: Product

    User:
      type: entity
      table: users
      primary_key:
        id:
          type: integer
          generator:
            strategy: AUTO
      fields:
        name:
          type: string
          label: 姓名
        password:
          type: password #Add sha1
          label: 密码
      has_many:
        reportedBugs:
          target_entity: Bug
          mapped_by: reporter
        assignedBugs:
          target_entity: Bug<commit_msg>change it !<commit_after>config:
  application_name: Rhino
  db:
    dev:
      adapter: sqlite3
      database: default
      dbname: default
    production:
      adapter: mysql
      database:
      dbname: blog

auth:
  type: session
  #plugin: auth_user
  data_model: user
  data_field: [name,password]

data:
  # model
  model:
    Product:
      type: entity
      table: products
      force: true
      primary_key: 
        pid:
          type: integer
          generator: AUTO
      fields:
        pid:
          type: string
          label: 产品ID编号
        name:
          type: string
          label: 产品名
          limit: 120
      has_many:
        bugs:
          targetEntity: Bug
          mappedBy: products

    Bug:
      type: entity
      table: bugs
      primary_key:
        id:
          type: integer
          generator: AUTO
      fields:
        description:
          type: text
          label: 解释
        created:
          type: datetime
          label: 创建日期
        status:
          type: string
          #values: [reported,fixing,fixed]
          label: 状态
      belong_to:
        reporter:
          target_entity: User
        engineer:
          target_entity: User
        products:
          target_entity: Product

    User:
      type: entity
      table: users
      primary_key:
        id:
          type: integer
          generator: AUTO
      fields:
        name:
          type: string
          label: 姓名
        password:
          type: password #Add sha1
          label: 密码
      has_many:
        reportedBugs:
          target_entity: Bug
          mapped_by: reporter
        assignedBugs:
          target_entity: Bug
{'fraction_non_alphanumeric': 0.05756039367730391, 'fraction_numerical': 0.0029824038174768863, 'mean_word_length': 1.284741144414169, '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': '2048477', 'n_tokens_mistral': 947, 'n_tokens_neox': 960, 'n_words': 263}