<commit_before># This template creates a files with default values for some queue attributes.
# These defaults are used when attributes are not defined explicitly in the queue.
# This does not make sense to execute this template if lcg-info-dynamic-maui is
# not used on the current node.

unique template features/gip/ce-maui-plugin-defaults;

type maui_plugin_ce_defaults = {
  'MaxPhysicalMemory' : long
  'MaxProcessorsPerJob' : long
  'MaxVirtualMemory' : long
};
#FIXME: bind file contents to the schema. Requires panc 10.2.
#bind '/software/components/metaconfig/services/{$GIP_CE_MAUI_PLUGIN_DEFAULTS_FILE}' = maui_plugin_ce_defaults;
include 'components/metaconfig/config';
'/software/components/metaconfig' = {
  if ( !is_defined(SELF['dependencies']['post']) ) SELF['dependencies']['post'] = list();
  SELF['dependencies']['post'][length(SELF['dependencies']['post'])] = 'gip2';
  service_id = escape(GIP_CE_MAUI_PLUGIN_DEFAULTS_FILE);
  SELF['services'][service_id]['mode'] = 0600;
  SELF['services'][service_id]['owner'] = 'root';
  SELF['services'][service_id]['group'] = 'root';
  SELF['services'][service_id]['module'] = 'tiny';
  if ( is_defined(CE_DEFAULT_MAX_PHYS_MEM) ) {
    SELF['services'][service_id]['contents']['MaxPhysicalMemory'] = CE_DEFAULT_MAX_PHYS_MEM;
  };
  if ( is_defined(CE_DEFAULT_MAX_VIRT_MEM) ) {
    SELF['services'][service_id]['contents']['MaxVirtualMemory'] = CE_DEFAULT_MAX_VIRT_MEM;
  };
  if ( is_defined(CE_DEFAULT_JOB_MAX_PROCS) ) {
    SELF['services'][service_id]['contents']['MaxProcessorsPerJob'] = CE_DEFAULT_JOB_MAX_PROCS;<commit_msg>The /etc/lrms/lcg-info-dynamic-maui.defaults file should be readable by all user (or at least by the BDII user).<commit_after># This template creates a files with default values for some queue attributes.
# These defaults are used when attributes are not defined explicitly in the queue.
# This does not make sense to execute this template if lcg-info-dynamic-maui is
# not used on the current node.

unique template features/gip/ce-maui-plugin-defaults;

type maui_plugin_ce_defaults = {
  'MaxPhysicalMemory' : long
  'MaxProcessorsPerJob' : long
  'MaxVirtualMemory' : long
};
#FIXME: bind file contents to the schema. Requires panc 10.2.
#bind '/software/components/metaconfig/services/{$GIP_CE_MAUI_PLUGIN_DEFAULTS_FILE}' = maui_plugin_ce_defaults;
include 'components/metaconfig/config';
'/software/components/metaconfig' = {
  if ( !is_defined(SELF['dependencies']['post']) ) SELF['dependencies']['post'] = list();
  SELF['dependencies']['post'][length(SELF['dependencies']['post'])] = 'gip2';
  service_id = escape(GIP_CE_MAUI_PLUGIN_DEFAULTS_FILE);
  SELF['services'][service_id]['mode'] = 0644;
  SELF['services'][service_id]['owner'] = 'root';
  SELF['services'][service_id]['group'] = 'root';
  SELF['services'][service_id]['module'] = 'tiny';
  if ( is_defined(CE_DEFAULT_MAX_PHYS_MEM) ) {
    SELF['services'][service_id]['contents']['MaxPhysicalMemory'] = CE_DEFAULT_MAX_PHYS_MEM;
  };
  if ( is_defined(CE_DEFAULT_MAX_VIRT_MEM) ) {
    SELF['services'][service_id]['contents']['MaxVirtualMemory'] = CE_DEFAULT_MAX_VIRT_MEM;
  };
  if ( is_defined(CE_DEFAULT_JOB_MAX_PROCS) ) {
    SELF['services'][service_id]['contents']['MaxProcessorsPerJob'] = CE_DEFAULT_JOB_MAX_PROCS;
{'fraction_non_alphanumeric': 0.14708574916081782, 'fraction_numerical': 0.004882514494964907, 'mean_word_length': 6.694835680751174, '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': '513267', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1099, 'n_words': 212}