<commit_before>module Loadbalancing
  class Listener < Core::ServiceLayer::Model
    PROTOCOLS= ['TCP', 'HTTP', 'HTTPS', 'TERMINATED_HTTPS']
    validates :name, presence: false
    validates :protocol, presence: true
    validates :protocol_port, presence: true, inclusion: { in: '1'..'65535',  message: "Choose a port between 1 and 65535" }
    validates :default_tls_container_ref, presence: { message: "A certificate container is needed for TERMINATED_HTTPS Listeners" }, if: "protocol == 'TERMINATED_HTTPS'"

    attr_accessor :in_transition
<commit_msg>Removes HTTPS as protocol option for listeners<commit_after>module Loadbalancing
  class Listener < Core::ServiceLayer::Model
    PROTOCOLS= ['HTTP', 'TCP', 'TERMINATED_HTTPS']
    validates :name, presence: false
    validates :protocol, presence: true
    validates :protocol_port, presence: true, inclusion: { in: '1'..'65535',  message: "Choose a port between 1 and 65535" }
    validates :default_tls_container_ref, presence: { message: "A certificate container is needed for TERMINATED_HTTPS Listeners" }, if: "protocol == 'TERMINATED_HTTPS'"

    attr_accessor :in_transition

{'fraction_non_alphanumeric': 0.10770577933450087, 'fraction_numerical': 0.021015761821366025, 'mean_word_length': 5.421348314606742, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1215319', 'n_tokens_mistral': 363, 'n_tokens_neox': 340, 'n_words': 105}