<commit_before>define service{
  active_checks_enabled          1
  check_freshness                0
  check_interval                 1
  check_period                   24x7
  contact_groups                 test_contact
  event_handler_enabled          1
  failure_prediction_enabled     1
  flap_detection_enabled         1
  is_volatile                    0
  max_check_attempts             2
  name                           generic-service
  notification_interval          1
  notification_options           w,u,c,r,f,s
  notification_period            24x7
  notifications_enabled          1
  obsess_over_service            1
  parallelize_check              1
  passive_checks_enabled         1
  process_perf_data              1
  register                       0
  retain_nonstatus_information   1
  retain_status_information      1
  retry_interval                 1
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            test_ok_0
  use                            generic-service
}


# We define a simple database 1 or database 2, 
# so we need db1 and db2 service
define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            db1
  use                            generic-service
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            db2
  use                            generic-service
}

define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            web1
  use                            generic-service
}

define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            web2
  use                            generic-service
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            lvs1
  use                            generic-service
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            lvs2
  use                            generic-service
}

define service{
  check_command                  bp_rule!test_host_0,db1|test_host_0,db2
  host_name                      test_host_0
  service_description            Simple_Or
  use                            generic-service
}


define service{
  check_command                  bp_rule!test_host_0,db1&test_host_0,db2
  host_name                      test_host_0
  service_description            Simple_And
  use                            generic-service
}


define service{
  check_command                  bp_rule!1 of: test_host_0,db1|test_host_0,db2
  host_name                      test_host_0
  service_description            Simple_1Of
  use                            generic-service
}


define service{
  check_command                  bp_rule!(test_host_0,db1|test_host_0,db2) & (test_host_0,web1|test_host_0,web2) & (test_host_0,lvs1|test_host_0,lvs2)
  host_name                      test_host_0
  service_description            ERP
  use                            generic-service
}




#Now complex Xof: rules with A,B,Cof rules:
#A
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            A
  use                            generic-service
}

#B
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            B
  use                            generic-service
}

#C
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            C
  use                            generic-service
}

#D
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            D
  use                            generic-service
}

#E
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            E
  use                            generic-service
}


# Complex_ABCOf
define service{
  check_command                  bp_rule!4 of: test_host_0,A|test_host_0,B|test_host_0,C|test_host_0,D|test_host_0,E
  host_name                      test_host_0
  service_description            Complex_ABCOf
  use                            generic-service
}

<commit_msg>Add : add a of: values of dep rules are a triple value.<commit_after>define service{
  active_checks_enabled          1
  check_freshness                0
  check_interval                 1
  check_period                   24x7
  contact_groups                 test_contact
  event_handler_enabled          1
  failure_prediction_enabled     1
  flap_detection_enabled         1
  is_volatile                    0
  max_check_attempts             2
  name                           generic-service
  notification_interval          1
  notification_options           w,u,c,r,f,s
  notification_period            24x7
  notifications_enabled          1
  obsess_over_service            1
  parallelize_check              1
  passive_checks_enabled         1
  process_perf_data              1
  register                       0
  retain_nonstatus_information   1
  retain_status_information      1
  retry_interval                 1
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            test_ok_0
  use                            generic-service
}


# We define a simple database 1 or database 2, 
# so we need db1 and db2 service
define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            db1
  use                            generic-service
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            db2
  use                            generic-service
}

define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            web1
  use                            generic-service
}

define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            web2
  use                            generic-service
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            lvs1
  use                            generic-service
}


define service{
  check_command                  check_service!ok
  host_name                      test_host_0
  service_description            lvs2
  use                            generic-service
}

define service{
  check_command                  bp_rule!test_host_0,db1|test_host_0,db2
  host_name                      test_host_0
  service_description            Simple_Or
  use                            generic-service
}


define service{
  check_command                  bp_rule!test_host_0,db1&test_host_0,db2
  host_name                      test_host_0
  service_description            Simple_And
  use                            generic-service
}


define service{
  check_command                  bp_rule!1 of: test_host_0,db1|test_host_0,db2
  host_name                      test_host_0
  service_description            Simple_1Of
  use                            generic-service
}


define service{
  check_command                  bp_rule!(test_host_0,db1|test_host_0,db2) & (test_host_0,web1|test_host_0,web2) & (test_host_0,lvs1|test_host_0,lvs2)
  host_name                      test_host_0
  service_description            ERP
  use                            generic-service
}




#Now complex Xof: rules with A,B,Cof rules:
#A
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            A
  use                            generic-service
}

#B
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            B
  use                            generic-service
}

#C
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            C
  use                            generic-service
}

#D
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            D
  use                            generic-service
}

#E
define service{
  check_command  check_service!ok  
  host_name                      test_host_0
  service_description            E
  use                            generic-service
}


# Complex_ABCOf
define service{
  check_command                  bp_rule!5,1,1 of: test_host_0,A|test_host_0,B|test_host_0,C|test_host_0,D|test_host_0,E
  host_name                      test_host_0
  service_description            Complex_ABCOf
  use                            generic-service
}


{'fraction_non_alphanumeric': 0.028275714895433204, 'fraction_numerical': 0.018139137857447717, 'mean_word_length': 1.3235002478929103, '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': '4927294', 'n_tokens_mistral': 2560, 'n_tokens_neox': 2440, 'n_words': 517}