<commit_before>apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: routegroups.zalando.org
spec:
  group: zalando.org
  version: v1
  scope: Namespaced
  names:
    kind: RouteGroup
    singular: routegroup
    plural: routegroups
    categories:
    - all
    shortNames:
    - rg
    - rgs
  additionalPrinterColumns:
  - name: Hosts
    type: string
    description: Hostnames expecting requests to
    JSONPath: .spec.hosts
  - name: Backends
    type: string
    description: Backends forwarding traffic to
    JSONPath: .spec.backends
  subresources:
    # status enables the status subresource.
    status: {}
  preserveUnknownFields: false
  validation:
    openAPIV3Schema:
      type: object
      required:
      - spec
      properties:
        spec:
          required:
          - backends
          - routes
          - hosts
          type: object
          properties:
            hosts:
              type: array
              items:
                type: string
                pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'
              minItems: 1
            backends:
              type: array
              minItems: 1
              items:
                type: object
                required:
                - type
                - name
                properties:
                  type:
                    type: string
                    enum:
                    - service
                    - shunt
                    - loopback
                    - dynamic
                    - lb
                    - network
                  name:
                    type: string
                  serviceName:
                    type: string<commit_msg>allow host definitions with port to support for vintage migration<commit_after>apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: routegroups.zalando.org
spec:
  group: zalando.org
  version: v1
  scope: Namespaced
  names:
    kind: RouteGroup
    singular: routegroup
    plural: routegroups
    categories:
    - all
    shortNames:
    - rg
    - rgs
  additionalPrinterColumns:
  - name: Hosts
    type: string
    description: Hostnames expecting requests to
    JSONPath: .spec.hosts
  - name: Backends
    type: string
    description: Backends forwarding traffic to
    JSONPath: .spec.backends
  subresources:
    # status enables the status subresource.
    status: {}
  preserveUnknownFields: false
  validation:
    openAPIV3Schema:
      type: object
      required:
      - spec
      properties:
        spec:
          required:
          - backends
          - routes
          - hosts
          type: object
          properties:
            hosts:
              type: array
              items:
                type: string
                pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*(:[0-9]+)?$'
              minItems: 1
            backends:
              type: array
              minItems: 1
              items:
                type: object
                required:
                - type
                - name
                properties:
                  type:
                    type: string
                    enum:
                    - service
                    - shunt
                    - loopback
                    - dynamic
                    - lb
                    - network
                  name:
                    type: string
                  serviceName:
                    type: string
{'fraction_non_alphanumeric': 0.07631874298540965, 'fraction_numerical': 0.01122334455667789, 'mean_word_length': 1.1360095865787896, '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': '2212120', 'n_tokens_mistral': 979, 'n_tokens_neox': 917, 'n_words': 230}