<commit_before>backend:
  name: github
  repo: jayphen/happeatravels # Path to your Github repository
  branch: master # Branch to update

publish_mode: editorial_workflow
media_folder: "site/static/images" # Media files will be stored in the repo under images/uploads
public_folder: "/images"

collections:
  - name: "post"
    label: "Blog"
    folder: "site/content/post"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Subtitle", name: "subtitle", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Featured Image", name: "featureImage", widget: "image"}
      - {label: "Body", name: "body", widget: "markdown"}
      - {label: "Categories", name: "categories", widget: "list"}
      - {label: "Tags", name: "tags", widget: "list"}
      - {label: "Author", name: "author", widget: "select", options: ["Jayphen", "Ina"]}
      - label: 'Country'
      - name: 'country'
      - widget: relation
      - collection: countries
      - searchFields: [name]
      - valueField: name

  - name: "data"
    label: "Site Data"
    editor:
      preview: false
    files:
      - name: "countries"
        label: "Countries"
        file: "site/data/countries.yml"
        widget: "list"
        fields:
          - {label: "Country Name", name: "name", widget: "string"}
          - {label: "Continent", name: "continent", widget: "select", option: ["Africa", "Asia", "Europe", "North America", "Oceania", "South America"]}<commit_msg>Fix Country relation for post collection<commit_after>backend:
  name: github
  repo: jayphen/happeatravels # Path to your Github repository
  branch: master # Branch to update

publish_mode: editorial_workflow
media_folder: "site/static/images" # Media files will be stored in the repo under images/uploads
public_folder: "/images"

collections:
  - name: "post"
    label: "Blog"
    folder: "site/content/post"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Subtitle", name: "subtitle", widget: "string"}
      - {label: "Publish Date", name: "date", widget: "datetime"}
      - {label: "Featured Image", name: "featureImage", widget: "image"}
      - {label: "Body", name: "body", widget: "markdown"}
      - {label: "Categories", name: "categories", widget: "list"}
      - {label: "Tags", name: "tags", widget: "list"}
      - {label: "Author", name: "author", widget: "select", options: ["Jayphen", "Ina"]}
      - label: 'Country'
        name: 'country'
        widget: relation
        collection: countries
        searchFields: [name]
        valueField: name

  - name: "data"
    label: "Site Data"
    editor:
      preview: false
    files:
      - name: "countries"
        label: "Countries"
        file: "site/data/countries.yml"
        widget: "list"
        fields:
          - {label: "Country Name", name: "name", widget: "string"}
          - {label: "Continent", name: "continent", widget: "select", option: ["Africa", "Asia", "Europe", "North America", "Oceania", "South America"]}
{'fraction_non_alphanumeric': 0.16301239275500476, 'fraction_numerical': 0.0, 'mean_word_length': 2.99492385786802, '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': '2461787', 'n_tokens_mistral': 1003, 'n_tokens_neox': 979, 'n_words': 300}