<commit_before>#
# Copyright (C) 2015-2017 <NAME>  <<EMAIL>>
#
# This source code is licensed under the GNU lesser general public license,
# Version 3.  See the file COPYING for more details

module Languages

  # @abstract Class responsible for handling conditional instructions.
  class Conditional

    public

      # Get conditional  
      # @param pLine String with possible conditional statement.
      # @return Returns an ConditionalData, otherwise return nil.
      def get_conditional(pLine)
        raise NotImplementedError
      end

    protected

      # Try to detect possible conditional in the line.
      # @param pLine String with possible conditional event.
      # @return Return a partial string, otherwise return nil.
      def detect_conditional(pLine)
        raise NotImplementedError
      end

      # Handling string type
      # @param pString String for find the conditional type.
      # @return Return a string with the type.
      def conditional_type(pString)
        raise NotImplementedError
      end

      # Try to extract the expression.
      # @param pString String with conditional expression.
      # @return Return a partial string.
      def get_expression(pString)
        raise NotImplementedError
      end

  # class
  end

# Languages
end<commit_msg>Fixed rubocop errors on lib/kuniri/language/abstract_container/structured_and_oo/conditional.rb<commit_after>#
# Copyright (C) 2015-2017 <NAME>  <<EMAIL>>
#
# This source code is licensed under the GNU lesser general public license,
# Version 3.  See the file COPYING for more details

module Languages

  # @abstract Class responsible for handling conditional instructions.
  class Conditional
    # Get conditional
    # @param pLine String with possible conditional statement.
    # @return Returns an ConditionalData, otherwise return nil.
    def get_conditional(_pLine)
      raise NotImplementedError
    end

    protected

    # Try to detect possible conditional in the line.
    # @param pLine String with possible conditional event.
    # @return Return a partial string, otherwise return nil.
    def detect_conditional(_pLine)
      raise NotImplementedError
    end

    # Handling string type
    # @param pString String for find the conditional type.
    # @return Return a string with the type.
    def conditional_type(_pString)
      raise NotImplementedError
    end

    # Try to extract the expression.
    # @param pString String with conditional expression.
    # @return Return a partial string.
    def get_expression(_pString)
      raise NotImplementedError
    end

  end # class
end # Languages
{'fraction_non_alphanumeric': 0.05095057034220532, 'fraction_numerical': 0.006844106463878327, 'mean_word_length': 3.0414746543778803, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6817740', 'n_tokens_mistral': 703, 'n_tokens_neox': 650, 'n_words': 276}