<commit_before>module Calabash
  module Android
    module Text
      def hide_keyboard
        Device.default.perform_action('hide_soft_keyboard')
      end

      # @!visibility private
      def _enter_text_in(query, text)
        tap(query)
        sleep 0.5
        enter_text(text)
      end

      # @!visibility private
      def _tap_keyboard_action_key
        Device.default.perform_action('press_user_action_button')
      end
    end
  end
end<commit_msg>Android::Text: Add #clear_text and #clear_text_in<commit_after>module Calabash
  module Android
    module Text
      def hide_keyboard
        Device.default.perform_action('hide_soft_keyboard')
      end

      def clear_text
        Device.default.perform_action('clear_text')
      end

      def clear_text_in(query)
        tap(query)
        sleep 0.5
        clear_text
      end

      # @!visibility private
      def _enter_text_in(query, text)
        tap(query)
        sleep 0.5
        enter_text(text)
      end

      # @!visibility private
      def _tap_keyboard_action_key
        Device.default.perform_action('press_user_action_button')
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06412478336221837, 'fraction_numerical': 0.005199306759098787, 'mean_word_length': 2.2905982905982905, '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': '2617774', 'n_tokens_mistral': 363, 'n_tokens_neox': 347, 'n_words': 72}