<commit_before>//for flushing: http://cs.kobj.net/ruleset/flush/b506607x15.prod;b506607x15.dev
ruleset DevTools_bootstrap {
    meta {
        name "DevTools Bootstrap"
        description <<
            Bootstrap ruleset for DevTools
        >>

        use module a169x625 alias CloudOS
        logging on
    }

    global {

        rulesets = {
            "core": [
                   "a169x625.prod",  // CloudOS Service
                   "a169x676.prod",  // PDS
                   "a16x161.prod",   // Notification service
                   "a169x672.prod",  // MyProfile
                   "a169x695.prod",  // Settings
                   "a41x174.prod",   // Amazon S3 module
                   "a16x129.dev",    // SendGrid module
                  // "b506607x15.prod", // DevTools
                   "b506607x14.prod", //DevTools
                   "b16x29.prod"     // logging
            ],
	    "unwanted": []
        };
    }

    rule bootstrap_guard {
      select when devtools bootstrap
      pre {
        installed_rids = CloudOS:rulesetList(meta:eci);
	      bootstrapped = installed_rids.filter(function(k,v){v eq "b506607x14.prod"}).length();// check if installed_rids includes b506607x14.prod" --- use a filter and check if length is > 0.
      }
      if (bootstrapped > 0 ) then
      {
        send_directive("found_eci_for_developer") 
	         with eci = eci
      }
      fired {
        log ">>>> pico needs a bootstrap >>>> ";
	      raise explicit event bootstrap_needed;
      } else {
        log ">>>> pico already bootstraped, saw : " + installed_rids;
      }
    }<commit_msg>different function call for ruleset list<commit_after>//for flushing: http://cs.kobj.net/ruleset/flush/b506607x15.prod;b506607x15.dev
ruleset DevTools_bootstrap {
    meta {
        name "DevTools Bootstrap"
        description <<
            Bootstrap ruleset for DevTools
        >>

        use module a169x625 alias CloudOS
        logging on
    }

    global {

        rulesets = {
            "core": [
                   "a169x625.prod",  // CloudOS Service
                   "a169x676.prod",  // PDS
                   "a16x161.prod",   // Notification service
                   "a169x672.prod",  // MyProfile
                   "a169x695.prod",  // Settings
                   "a41x174.prod",   // Amazon S3 module
                   "a16x129.dev",    // SendGrid module
                  // "b506607x15.prod", // DevTools
                   "b506607x14.prod", //DevTools
                   "b16x29.prod"     // logging
            ],
	    "unwanted": []
        };
    }

    rule bootstrap_guard {
      select when devtools bootstrap
      pre {
        installed_rids = CloudOS:list_rulesets(meta:eci);
	      bootstrapped = installed_rids.filter(function(k,v){v eq "b506607x14.prod"}).length();// check if installed_rids includes b506607x14.prod" --- use a filter and check if length is > 0.
      }
      if (bootstrapped > 0 ) then
      {
        send_directive("found_eci_for_developer") 
	         with eci = eci
      }
      fired {
        log ">>>> pico needs a bootstrap >>>> ";
	      raise explicit event bootstrap_needed;
      } else {
        log ">>>> pico already bootstraped, saw : " + installed_rids;
      }
    }
{'fraction_non_alphanumeric': 0.10693553315001528, 'fraction_numerical': 0.061106018942865874, 'mean_word_length': 1.5419254658385093, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 35, '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': '7636352', 'n_tokens_mistral': 1137, 'n_tokens_neox': 944, 'n_words': 209}