<commit_before>require 'ruboto/base'
require 'ruboto/package'

#######################################################
#
# ruboto/activity.rb
#
# Basic activity set up.
#
#######################################################

#
# Context
#
module Ruboto
  module Context
    def start_ruboto_dialog(remote_variable, theme=Java::android.R.style::Theme_Dialog, &block)
      java_import 'org.ruboto.RubotoDialog'
      start_ruboto_activity(remote_variable, RubotoDialog, theme, &block)<commit_msg>Revised start_ruboto_dialog to match changes in start_ruboto_activity<commit_after>require 'ruboto/base'
require 'ruboto/package'

#######################################################
#
# ruboto/activity.rb
#
# Basic activity set up.
#
#######################################################

#
# Context
#
module Ruboto
  module Context
    def start_ruboto_dialog(class_name = nil, options = nil, &block)
      if options.nil?
        if class_name.is_a?(Hash)
          options = class_name
          class_name = nil
        else
          options = {}
        end
      end

      unless options.key?(:java_class)
        java_import 'org.ruboto.RubotoDialog'
        options[:java_class] = RubotoDialog
      end
 
      options[:theme] = android.R.style::Theme_Dialog unless options.key?(:theme)

      start_ruboto_activity(class_name, options, &block)
{'fraction_non_alphanumeric': 0.2432035268185158, 'fraction_numerical': 0.0, 'mean_word_length': 4.178707224334601, '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': '4527191', 'n_tokens_mistral': 393, 'n_tokens_neox': 382, 'n_words': 75}