<commit_before># Hackey hacks!
$DefaultProduct = nil
$model = nil
$nodemodel = nil
$clustermodel = nil
$featuremodel = nil

module BtxtrLabels
  def BtxtrLabels.set_product_type(product_type)
    $DefaultProduct = product_type
    $model = product_type
    
    $nodemodel = Kernel.const_get(product_type.to_s() + "Node")
    $clustermodel = Kernel.const_get(product_type.to_s() + "Cluster")
    $featuremodel = Kernel.const_get(product_type.to_s() + "Features")
  end
end
<commit_msg>Adding a global variable for btxtr combined rules model in Ruby<commit_after># Hackey hacks!
$DefaultProduct = nil
$model = nil
$nodemodel = nil
$clustermodel = nil
$featuremodel = nil

module BtxtrLabels
  def BtxtrLabels.set_product_type(product_type)
    $DefaultProduct = product_type
    $model = product_type
    
    $nodemodel = Kernel.const_get(product_type.to_s() + "Node")
    $clustermodel = Kernel.const_get(product_type.to_s() + "Cluster")
    $featuremodel = Kernel.const_get(product_type.to_s() + "Features")
    $btxtr_combined_rules_model = Kernel.const_get(product_type.to_s() + "BoostexterCombinedRule")
  end
end

{'fraction_non_alphanumeric': 0.10813226094727435, 'fraction_numerical': 0.0, 'mean_word_length': 5.021505376344086, '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': '7317951', 'n_tokens_mistral': 411, 'n_tokens_neox': 401, 'n_words': 77}