<commit_before>var bFunctionAlreadyAssigned = false;
var aTaskFlag = [false,false,false,false,false,false];
var iLastTab   = -1;
var oTaskData  = {};

var re = /&/g;
var re2 = /@amp@/g;

var saveDataTaskTemporal = function(iForm)
{
  oAux = getField('TAS_UID');
  
  if (oAux)
  {
    switch (iLastTab)
    {
      case 1:
      case '1':
        oTaskData.TAS_TITLE       = getField('TAS_TITLE').value.replace(re, "@amp@");
        oTaskData.TAS_DESCRIPTION = getField('TAS_DESCRIPTION').value.replace(re, "@amp@");
        oTaskData.TAS_START       = (getField('TAS_START').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_PRIORITY_VARIABLE = getField('TAS_PRIORITY_VARIABLE').value;
        oTaskData.TAS_DERIVATION_SCREEN_TPL = getField('TAS_DERIVATION_SCREEN_TPL').value;
      break;
      case 2:
      case '2':
        if (getField('TAS_ASSIGN_TYPE][SELF_SERVICE').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'SELF_SERVICE';
        }
        if (getField('TAS_ASSIGN_TYPE][REPORT_TO').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'REPORT_TO';
        }
        if (getField('TAS_ASSIGN_TYPE][BALANCED').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'BALANCED';
        }
        if (getField('TAS_ASSIGN_TYPE][MANUAL').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'MANUAL';
        }
        if (getField('TAS_ASSIGN_TYPE][EVALUATE').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'EVALUATE';
        }
        /* this feature is temporarily disabled  
        if (getField('TAS_ASSIGN_TYPE][STATIC_MI').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'STATIC_MI';
        }
        if (getField('TAS_ASSIGN_TYPE][CANCEL_MI').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'CANCEL_MI';
        }*/
        oTaskData.TAS_ASSIGN_VARIABLE = getField('TAS_ASSIGN_VARIABLE').value;
        /* this feature is temporarily disabled
        oTaskData.TAS_MI_INSTANCE_VARIABLE = getField('TAS_MI_INSTANCE_VARIABLE').value;
        oTaskData.TAS_MI_COMPLETE_VARIABLE = getField('TAS_MI_COMPLETE_VARIABLE').value;*/
      break;
      case 3:
      case '3':
        oTaskData.TAS_DURATION     = getField('TAS_DURATION').value;
        oTaskData.TAS_TIMEUNIT     = getField('TAS_TIMEUNIT').value;
        oTaskData.TAS_TYPE_DAY     = getField('TAS_TYPE_DAY').value;
        oTaskData.TAS_CALENDAR     = getField('TAS_CALENDAR').value;
        oTaskData.TAS_TRANSFER_FLY = (getField('TAS_TRANSFER_FLY').checked ? 'TRUE' : 'FALSE');
      break;
      case 4:
      case '4':
      break;
      case 5:
      case '5':
        /*oTaskData.TAS_CAN_CANCEL                    = (getField('TAS_CAN_CANCEL').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_CAN_PAUSE                     = (getField('TAS_CAN_PAUSE').checked ? 'TRUE' : 'FALSE');*/
        oTaskData.TAS_TYPE                          = (getField('TAS_TYPE').checked ? 'ADHOC' : 'NORMAL');
        /*oTaskData.TAS_CAN_SEND_MESSAGE              = (getField('TAS_CAN_SEND_MESSAGE').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_CAN_UPLOAD                    = (getField('TAS_CAN_UPLOAD').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_VIEW_UPLOAD                   = (getField('TAS_VIEW_UPLOAD').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_VIEW_ADDITIONAL_DOCUMENTATION = (getField('TAS_VIEW_ADDITIONAL_DOCUMENTATION').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_CAN_DELETE_DOCS               = getField('TAS_CAN_DELETE_DOCS').value;*/
      break;
      case 6:
      case '6':
        oTaskData.TAS_DEF_TITLE       = getField('TAS_DEF_TITLE').value;
        oTaskData.TAS_DEF_DESCRIPTION = getField('TAS_DEF_DESCRIPTION').value;
        //oTaskData.TAS_DEF_PROC_CODE   = getField('TAS_DEF_PROC_CODE').value;
        //oTaskData.SEND_EMAIL          = (getField('SEND_EMAIL').checked ? 'TRUE' : 'FALSE');
        //oTaskData.TAS_DEF_MESSAGE     = getField('TAS_DEF_MESSAGE').value;
      break;
      case 7:
      case '7':
        if ( getField('SEND_EMAIL') != null && (typeof (getField('SEND_EMAIL')) != 'undefined' ) ) {
          // validate fields TAS_DEF_SUBJECT_MESSAGE, TAS_DEF_MESSAGE
          if (getField('SEND_EMAIL').checked) {
            if (getField('TAS_DEF_SUBJECT_MESSAGE').value == '') {
              new leimnud.module.app.alert().make( {
                label : G_STRINGS.ID_SUBJECT_FIELD_REQUIRED
              });
              return false;
            }
            switch ( getField('TAS_DEF_MESSAGE_TYPE').value ) {
              case 'text' :
                if (getField('TAS_DEF_MESSAGE').value == '' ) {
                  new leimnud.module.app.alert().make( {
                    label : G_STRINGS.ID_MESSAGE_FIELD_REQUIRED
                  });
                  return false;
                }
                break;
              case 'template' :
                if (getField('TAS_DEF_MESSAGE_TEMPLATE').value == '' ){
                  new leimnud.module.app.alert().make( {
                    label : G_STRINGS.ID_TEMPLATE_FIELD_REQUIRED
                  });
                  return false;
                }
                break;
            }
        }
        if(typeof getField('SEND_EMAIL') != 'undefined' )
          oTaskData.SEND_EMAIL      = getField('SEND_EMAIL').checked ? 'TRUE' : 'FALSE';
        else
          oTaskData.SEND_EMAIL      = 'FALSE';
        oTaskData.TAS_DEF_MESSAGE = getField('TAS_DEF_MESSAGE').value.replace(re, "@amp@");
        oTaskData.TAS_DEF_SUBJECT_MESSAGE  = getField('TAS_DEF_SUBJECT_MESSAGE').value.replace(re, "@amp@");
        oTaskData.TAS_DEF_MESSAGE_TYPE     = getField('TAS_DEF_MESSAGE_TYPE').value;
        oTaskData.TAS_DEF_MESSAGE_TEMPLATE = getField('TAS_DEF_MESSAGE_TEMPLATE').value;
      }
      break;
    }
  }
  else
  {
    oTaskData = {};
  }
  iLastTab = iForm;
  return true;
};

var saveTaskData = function(oForm, iForm, iType)
{
  iLastTab = iForm;
  if ( !saveDataTaskTemporal(iForm)) {
    return false;
  }
  oTaskData.TAS_UID = getField('TAS_UID').value;
 /* while (oTaskData.TAS_TITLE.charAt(0)==' '){ 
		oTaskData.TAS_TITLE = oTaskData.TAS_TITLE.substring(1,oTaskData.TAS_TITLE.length) ;
	}    */
	oTaskData.TAS_TITLE=oTaskData.TAS_TITLE.trim();
  if(oTaskData.TAS_TITLE==''){
	  alert(G_STRINGS.ID_REQ_TITLE );
	  return false;
	}

  var sParameters = 'function=saveTaskData';
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../tasks/tasks_Ajax',
    async : false,
    method: 'POST',
    args  : sParameters + '&oData=' + oTaskData.toJSONString()
  });
  oRPC.make();
  if (oTaskData.TAS_TITLE)
  {
    Pm.data.db.task[getField('INDEX').value].label = Pm.data.db.task[getField('INDEX').value].object.elements.label.innerHTML = oTaskData.TAS_TITLE.replace(re2, "&amp;");
  }
  if (oTaskData.TAS_START)
  {
    oTaskData.TAS_START = (oTaskData.TAS_START == 'TRUE' ? true : false);
    Pm.data.render.setTaskINI({task: oTaskData.TAS_UID, value: oTaskData.TAS_START});
  }
  
  Pm.tmp.propertiesPanel.remove();
};

var showTriggers = function(sStep, sType)
{
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../steps/steps_Ajax',
    async : false,
    method: 'POST',
    args  : 'action=showTriggers&sProcess=' + Pm.options.uid + '&sStep=' + sStep + '&sType=' + sType
  });  
   
  oRPC.make();

  document.getElementById('triggersSpan_' + sStep + '_' + sType).innerHTML = oRPC.xmlhttp.responseText;
  scs = oRPC.xmlhttp.responseText.extractScript();
  scs.evalScript();

  var tri = document.getElementById('TRIG_'+sStep+'_'+sType);
  if (tri) {
  	oRPC = new leimnud.module.rpc.xmlhttp({
      url   : '../steps/steps_Ajax',
      async : false,
      method: 'POST',
      args  : 'action=counterTriggers&sStep='+sStep+'&sType='+sType
    });
    oRPC.make();
    aAux = oRPC.xmlhttp.responseText.split('|');
    tri.innerHTML=aAux[1];
    var tri = document.getElementById('TRIG_'+sStep);
    if (tri) {
    	tri.innerHTML=aAux[0];
    }
  }
};

var editTriggerCondition = function(sStep, sTrigger, sType)
{
  popupWindow('', '../steps/steps_Ajax?action=editTriggerCondition&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType, 500, 220);
};

var upTrigger = function(sStep, sTrigger, sType, iPosition)
{
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../steps/steps_Ajax',
    async : false,
    method: 'POST',
    args  : 'action=upTrigger&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType + '&iPosition=' + iPosition
  });
  oRPC.make();
  showTriggers(sStep, sType);
};

var downTrigger = function(sStep, sTrigger, sType, iPosition)
{
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../steps/steps_Ajax',
    async : false,
    method: 'POST',
    args  : 'action=downTrigger&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType + '&iPosition=' + iPosition
  });
  oRPC.make();
  showTriggers(sStep, sType);
};

var availableTriggers = function(sStep, sType)
{
  popupWindow('', '../steps/steps_Ajax?action=availableTriggers&sProcess=' + Pm.options.uid + '&sStep=' + sStep + '&sType=' + sType, 500, 250);
};

var ofToAssignTrigger = function(sStep, sTrigger, sType, iPosition)
{
	new leimnud.module.app.confirm().make({
    label:G_STRINGS.ID_MSG_CONFIRM_REMOVE_TRIGGER,
    action:function()
    {
      var oRPC = new leimnud.module.rpc.xmlhttp({
        url   : '../steps/steps_Ajax',
        async : false,
        method: 'POST',
        args  : 'action=ofToAssignTrigger&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType + '&iPosition=' + iPosition
      });
      oRPC.make();
      showTriggers(sStep, sType);
    }.extend(this)
  });
};
<commit_msg>BUG 8691 Add validation before save on Task Notification.<commit_after>var bFunctionAlreadyAssigned = false;
var aTaskFlag = [false,false,false,false,false,false];
var iLastTab   = -1;
var oTaskData  = {};

var re = /&/g;
var re2 = /@amp@/g;

var saveDataTaskTemporal = function(iForm)
{
  oAux = getField('TAS_UID');
  
  if (oAux)
  {
    switch (iLastTab)
    {
      case 1:
      case '1':
        oTaskData.TAS_TITLE       = getField('TAS_TITLE').value.replace(re, "@amp@");
        oTaskData.TAS_DESCRIPTION = getField('TAS_DESCRIPTION').value.replace(re, "@amp@");
        oTaskData.TAS_START       = (getField('TAS_START').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_PRIORITY_VARIABLE = getField('TAS_PRIORITY_VARIABLE').value;
        oTaskData.TAS_DERIVATION_SCREEN_TPL = getField('TAS_DERIVATION_SCREEN_TPL').value;
      break;
      case 2:
      case '2':
        if (getField('TAS_ASSIGN_TYPE][SELF_SERVICE').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'SELF_SERVICE';
        }
        if (getField('TAS_ASSIGN_TYPE][REPORT_TO').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'REPORT_TO';
        }
        if (getField('TAS_ASSIGN_TYPE][BALANCED').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'BALANCED';
        }
        if (getField('TAS_ASSIGN_TYPE][MANUAL').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'MANUAL';
        }
        if (getField('TAS_ASSIGN_TYPE][EVALUATE').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'EVALUATE';
        }
        /* this feature is temporarily disabled  
        if (getField('TAS_ASSIGN_TYPE][STATIC_MI').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'STATIC_MI';
        }
        if (getField('TAS_ASSIGN_TYPE][CANCEL_MI').checked)
        {
          oTaskData.TAS_ASSIGN_TYPE = 'CANCEL_MI';
        }*/
        oTaskData.TAS_ASSIGN_VARIABLE = getField('TAS_ASSIGN_VARIABLE').value;
        /* this feature is temporarily disabled
        oTaskData.TAS_MI_INSTANCE_VARIABLE = getField('TAS_MI_INSTANCE_VARIABLE').value;
        oTaskData.TAS_MI_COMPLETE_VARIABLE = getField('TAS_MI_COMPLETE_VARIABLE').value;*/
      break;
      case 3:
      case '3':
        oTaskData.TAS_DURATION     = getField('TAS_DURATION').value;
        oTaskData.TAS_TIMEUNIT     = getField('TAS_TIMEUNIT').value;
        oTaskData.TAS_TYPE_DAY     = getField('TAS_TYPE_DAY').value;
        oTaskData.TAS_CALENDAR     = getField('TAS_CALENDAR').value;
        oTaskData.TAS_TRANSFER_FLY = (getField('TAS_TRANSFER_FLY').checked ? 'TRUE' : 'FALSE');
      break;
      case 4:
      case '4':
      break;
      case 5:
      case '5':
        /*oTaskData.TAS_CAN_CANCEL                    = (getField('TAS_CAN_CANCEL').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_CAN_PAUSE                     = (getField('TAS_CAN_PAUSE').checked ? 'TRUE' : 'FALSE');*/
        oTaskData.TAS_TYPE                          = (getField('TAS_TYPE').checked ? 'ADHOC' : 'NORMAL');
        /*oTaskData.TAS_CAN_SEND_MESSAGE              = (getField('TAS_CAN_SEND_MESSAGE').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_CAN_UPLOAD                    = (getField('TAS_CAN_UPLOAD').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_VIEW_UPLOAD                   = (getField('TAS_VIEW_UPLOAD').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_VIEW_ADDITIONAL_DOCUMENTATION = (getField('TAS_VIEW_ADDITIONAL_DOCUMENTATION').checked ? 'TRUE' : 'FALSE');
        oTaskData.TAS_CAN_DELETE_DOCS               = getField('TAS_CAN_DELETE_DOCS').value;*/
      break;
      case 6:
      case '6':
        oTaskData.TAS_DEF_TITLE       = getField('TAS_DEF_TITLE').value;
        oTaskData.TAS_DEF_DESCRIPTION = getField('TAS_DEF_DESCRIPTION').value;
        //oTaskData.TAS_DEF_PROC_CODE   = getField('TAS_DEF_PROC_CODE').value;
        //oTaskData.SEND_EMAIL          = (getField('SEND_EMAIL').checked ? 'TRUE' : 'FALSE');
        //oTaskData.TAS_DEF_MESSAGE     = getField('TAS_DEF_MESSAGE').value;
      break;
      case 7:
      case '7':
        if ( getField('SEND_EMAIL') != null && (typeof (getField('SEND_EMAIL')) != 'undefined' ) ) {
          // validate fields TAS_DEF_SUBJECT_MESSAGE, TAS_DEF_MESSAGE
          if (getField('SEND_EMAIL').checked) {
            if (getField('TAS_DEF_SUBJECT_MESSAGE').value.trim() == '') {
              new leimnud.module.app.alert().make( {
                label : G_STRINGS.ID_SUBJECT_FIELD_REQUIRED
              });
              return false;
            }
            switch ( getField('TAS_DEF_MESSAGE_TYPE').value ) {
              case 'text' :
                if (getField('TAS_DEF_MESSAGE').value.trim() == '' ) {
                  new leimnud.module.app.alert().make( {
                    label : G_STRINGS.ID_MESSAGE_FIELD_REQUIRED
                  });
                  return false;
                }
                break;
              case 'template' :
                if (getField('TAS_DEF_MESSAGE_TEMPLATE').value.trim() == '' ){
                  new leimnud.module.app.alert().make( {
                    label : G_STRINGS.ID_TEMPLATE_FIELD_REQUIRED
                  });
                  return false;
                }
                break;
            }
        }
        if(typeof getField('SEND_EMAIL') != 'undefined' )
          oTaskData.SEND_EMAIL      = getField('SEND_EMAIL').checked ? 'TRUE' : 'FALSE';
        else
          oTaskData.SEND_EMAIL      = 'FALSE';
        oTaskData.TAS_DEF_MESSAGE = getField('TAS_DEF_MESSAGE').value.replace(re, "@amp@");
        oTaskData.TAS_DEF_SUBJECT_MESSAGE  = getField('TAS_DEF_SUBJECT_MESSAGE').value.replace(re, "@amp@");
        oTaskData.TAS_DEF_MESSAGE_TYPE     = getField('TAS_DEF_MESSAGE_TYPE').value;
        oTaskData.TAS_DEF_MESSAGE_TEMPLATE = getField('TAS_DEF_MESSAGE_TEMPLATE').value;
      }
      break;
    }
  }
  else
  {
    oTaskData = {};
  }
  iLastTab = iForm;
  return true;
};

var saveTaskData = function(oForm, iForm, iType)
{
  iLastTab = iForm;
  if ( !saveDataTaskTemporal(iForm)) {
    return false;
  }
  oTaskData.TAS_UID = getField('TAS_UID').value;
 /* while (oTaskData.TAS_TITLE.charAt(0)==' '){ 
		oTaskData.TAS_TITLE = oTaskData.TAS_TITLE.substring(1,oTaskData.TAS_TITLE.length) ;
	}    */
	oTaskData.TAS_TITLE=oTaskData.TAS_TITLE.trim();
  if(oTaskData.TAS_TITLE==''){
	  alert(G_STRINGS.ID_REQ_TITLE );
	  return false;
	}

  var sParameters = 'function=saveTaskData';
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../tasks/tasks_Ajax',
    async : false,
    method: 'POST',
    args  : sParameters + '&oData=' + oTaskData.toJSONString()
  });
  oRPC.make();
  if (oTaskData.TAS_TITLE)
  {
    Pm.data.db.task[getField('INDEX').value].label = Pm.data.db.task[getField('INDEX').value].object.elements.label.innerHTML = oTaskData.TAS_TITLE.replace(re2, "&amp;");
  }
  if (oTaskData.TAS_START)
  {
    oTaskData.TAS_START = (oTaskData.TAS_START == 'TRUE' ? true : false);
    Pm.data.render.setTaskINI({task: oTaskData.TAS_UID, value: oTaskData.TAS_START});
  }
  
  Pm.tmp.propertiesPanel.remove();
};

var showTriggers = function(sStep, sType)
{
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../steps/steps_Ajax',
    async : false,
    method: 'POST',
    args  : 'action=showTriggers&sProcess=' + Pm.options.uid + '&sStep=' + sStep + '&sType=' + sType
  });  
   
  oRPC.make();

  document.getElementById('triggersSpan_' + sStep + '_' + sType).innerHTML = oRPC.xmlhttp.responseText;
  scs = oRPC.xmlhttp.responseText.extractScript();
  scs.evalScript();

  var tri = document.getElementById('TRIG_'+sStep+'_'+sType);
  if (tri) {
  	oRPC = new leimnud.module.rpc.xmlhttp({
      url   : '../steps/steps_Ajax',
      async : false,
      method: 'POST',
      args  : 'action=counterTriggers&sStep='+sStep+'&sType='+sType
    });
    oRPC.make();
    aAux = oRPC.xmlhttp.responseText.split('|');
    tri.innerHTML=aAux[1];
    var tri = document.getElementById('TRIG_'+sStep);
    if (tri) {
    	tri.innerHTML=aAux[0];
    }
  }
};

var editTriggerCondition = function(sStep, sTrigger, sType)
{
  popupWindow('', '../steps/steps_Ajax?action=editTriggerCondition&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType, 500, 220);
};

var upTrigger = function(sStep, sTrigger, sType, iPosition)
{
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../steps/steps_Ajax',
    async : false,
    method: 'POST',
    args  : 'action=upTrigger&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType + '&iPosition=' + iPosition
  });
  oRPC.make();
  showTriggers(sStep, sType);
};

var downTrigger = function(sStep, sTrigger, sType, iPosition)
{
  var oRPC = new leimnud.module.rpc.xmlhttp({
    url   : '../steps/steps_Ajax',
    async : false,
    method: 'POST',
    args  : 'action=downTrigger&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType + '&iPosition=' + iPosition
  });
  oRPC.make();
  showTriggers(sStep, sType);
};

var availableTriggers = function(sStep, sType)
{
  popupWindow('', '../steps/steps_Ajax?action=availableTriggers&sProcess=' + Pm.options.uid + '&sStep=' + sStep + '&sType=' + sType, 500, 250);
};

var ofToAssignTrigger = function(sStep, sTrigger, sType, iPosition)
{
	new leimnud.module.app.confirm().make({
    label:G_STRINGS.ID_MSG_CONFIRM_REMOVE_TRIGGER,
    action:function()
    {
      var oRPC = new leimnud.module.rpc.xmlhttp({
        url   : '../steps/steps_Ajax',
        async : false,
        method: 'POST',
        args  : 'action=ofToAssignTrigger&sStep=' + sStep + '&sTrigger=' + sTrigger + '&sType=' + sType + '&iPosition=' + iPosition
      });
      oRPC.make();
      showTriggers(sStep, sType);
    }.extend(this)
  });
};

{'fraction_non_alphanumeric': 0.14573306422398177, 'fraction_numerical': 0.0036226258862495473, 'mean_word_length': 2.6577702063221653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '3396167', 'n_tokens_mistral': 7055, 'n_tokens_neox': 6958, 'n_words': 952}