<commit_before>---
  profile:
    name: "Default"
    description: "Default Profile. Checks basic syntax."
  line_rules: 
    FROM: 
      paramSyntaxRegex: /^[a-z0-9./-]+(:[a-z0-9.]+)?$/
      rules: 
        - 
          label: "is_latest_tag"
          regex: /latest/
          level: "info"
          message: "base image uses 'latest' tag"
          description: "using the 'latest' tag may cause unpredictable builds. It is recommended that a specific tag is used in the FROM line."
          reference_url: 
            - "https://docs.docker.com/reference/builder/"
            - "#from"
        - 
          label: "no_tag"
          regex: /^[:]/
          level: "warn"
          message: "No tag is used"
          description: "lorem ipsum tar"
          reference_url: 
            - "https://docs.docker.com/reference/builder/"
            - "#from"
    MAINTAINER: 
      paramSyntaxRegex: /.+/
      rules: []
    RUN: 
      paramSyntaxRegex: /.+/
      rules: 
        - 
          label: "no_yum_clean_all"
          regex: /yum(?!.+clean all|.+\.repo)/g
          level: "warn"
          message: "yum clean all is not used"
          description: "the yum cache will remain in this layer making the layer unnecessarily large"
          reference_url: "None"
        - 
          label: "installing_ssh"
          regex: /ssh/
          level: "warn"
          message: "installing SSH in a container is not recommended"
          description: "Do you really need SSH in this image?"
          reference_url: "https://github.com/jpetazzo/nsenter"
    EXPOSE: 
      paramSyntaxRegex: /^[0-9]+([0-9\s]+)?$/
      rules: []
    ENV: 
      paramSyntaxRegex: /^[a-zA-Z_]+[a-zA-Z0-9_]* .+$/
      rules: []
    ADD: 
      paramSyntaxRegex: /^(~?[A-z0-9\/_.-]+|https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*))\s~?[A-z0-9\/_.-]+$/
    COPY: 
      paramSyntaxRegex: /.+/
      rules: []
    ENTRYPOINT: 
      paramSyntaxRegex: /.+/
      rules: []
    VOLUME: 
      paramSyntaxRegex: /^~?([A-z0-9\/_.-]+|\["[A-z0-9\/_.-]+"\])$/
      rules: []
    USER: 
      paramSyntaxRegex: /^[a-z_][a-z0-9_]{0,30}$/
      rules: []<commit_msg>Added dnf and rvm cleanup regex<commit_after>---
  profile:
    name: "Default"
    description: "Default Profile. Checks basic syntax."
  line_rules: 
    FROM: 
      paramSyntaxRegex: /^[a-z0-9./-]+(:[a-z0-9.]+)?$/
      rules: 
        - 
          label: "is_latest_tag"
          regex: /latest/
          level: "info"
          message: "base image uses 'latest' tag"
          description: "using the 'latest' tag may cause unpredictable builds. It is recommended that a specific tag is used in the FROM line."
          reference_url: 
            - "https://docs.docker.com/reference/builder/"
            - "#from"
        - 
          label: "no_tag"
          regex: /^[:]/
          level: "warn"
          message: "No tag is used"
          description: "lorem ipsum tar"
          reference_url: 
            - "https://docs.docker.com/reference/builder/"
            - "#from"
    MAINTAINER: 
      paramSyntaxRegex: /.+/
      rules: []
    RUN: 
      paramSyntaxRegex: /.+/
      rules: 
        - 
          label: "no_yum_clean_all"
          regex: /yum(?!.+clean all|.+\.repo)/g
          level: "warn"
          message: "yum clean all is not used"
          description: "the yum cache will remain in this layer making the layer unnecessarily large"
          reference_url: "None"
        - 
          label: "no_dnf_clean_all"
          regex: /dnf(?!.+clean all|.+\.repo)/g
          level: "warn"
          message: "dnf clean all is not used"
          description: "the dnf cache will remain in this layer making the layer unnecessarily large"
          reference_url: "None"
        - 
          label: "no_rvm_cleanup_all"
          regex: /rvm(?!.+cleanup all)/g
          level: "warn"
          message: "rvm cleanup is not used"
          description: "the rvm cache will remain in this layer making the layer unnecessarily large"
          reference_url: "None"
        - 
          label: "installing_ssh"
          regex: /ssh/
          level: "warn"
          message: "installing SSH in a container is not recommended"
          description: "Do you really need SSH in this image?"
          reference_url: "https://github.com/jpetazzo/nsenter"
    EXPOSE: 
      paramSyntaxRegex: /^[0-9]+([0-9\s]+)?$/
      rules: []
    ENV: 
      paramSyntaxRegex: /^[a-zA-Z_]+[a-zA-Z0-9_]* .+$/
      rules: []
    ADD: 
      paramSyntaxRegex: /^(~?[A-z0-9\/_.-]+|https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*))\s~?[A-z0-9\/_.-]+$/
    COPY: 
      paramSyntaxRegex: /.+/
      rules: []
    ENTRYPOINT: 
      paramSyntaxRegex: /.+/
      rules: []
    VOLUME: 
      paramSyntaxRegex: /^~?([A-z0-9\/_.-]+|\["[A-z0-9\/_.-]+"\])$/
      rules: []
    USER: 
      paramSyntaxRegex: /^[a-z_][a-z0-9_]{0,30}$/
      rules: []
{'fraction_non_alphanumeric': 0.17042957042957044, 'fraction_numerical': 0.013186813186813187, 'mean_word_length': 1.6856223175965666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 2, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5691564', 'n_tokens_mistral': 1780, 'n_tokens_neox': 1659, 'n_words': 376}