<commit_before>/*
 * @command   PROJECT
 *
 */
'use strict'


var logger     = require('../../lib/logger')
  , Err        = logger.Err
  , Ok         = logger.Ok
  , actions = {
          add     : './add'
        , del     : './delete'
        , delete  : './delete'
    }

  , targets = {
          class     : 'class'
        , element   : 'element'
        , attribute : 'attribute'
        , attr      : 'attribute'
    }
;

module.exports = function(){

    var config  = process.ARI.config
      , args    = process.ARI.args
      , project = config.projects[args[1]]
      , action  = String(args[2])
      , target  = String(args[3])
      , name    = String(args[4])
    ;
    return validate();

    /*
        VALIDATE
     */
    function validate(){

        if (!action && !actions[action]) {
            Err('')
            Err('Action ${a} not found!', action)
            Err('')
            exit()
        }

        if (!target && !targets[target]) {
            Err('')
            Err('Target ${a} not found!', target)
            Err('')
            exit()
        }

        if (!name) {
            Err('')
            log('Name ${a} not found!', name)
            Err('')
            exit()
        }

        Ok('Command project ${a} Validated', project.name)
<commit_msg>Fix conflicts<commit_after>/*
 * @command   PROJECT
 *
 */
'use strict'


var logger     = require('../../lib/logger')
  , Err        = logger.Err
  , Ok         = logger.Ok
  , actions = {
          add     : './add'
        , del     : './delete'
        , delete  : './delete'
    }

  , targets = {
          class     : 'class'
        , element   : 'element'
        , attribute : 'attribute'
        , attr      : 'attribute'
    }
;

module.exports = function(){

    var config  = process.ARI.config
      , args    = process.ARI.args
      , project = config.projects[args[1]]
      , action  = String(args[2])
      , target  = String(args[3])
      , name    = String(args[4])
    ;

    validate();

    /*
        VALIDATE
     */
    function validate(){

        if (!action && !actions[action]) {
            Err('')
            Err('Action ${a} not found!', action)
            Err('')
            exit()
        }

        if (!target && !targets[target]) {
            Err('')
            Err('Target ${a} not found!', target)
            Err('')
            exit()
        }

        if (!name) {
            Err('')
            log('Name ${a} not found!', name)
            Err('')
            exit()
        }

        Ok('Command project ${a} Validated', project.name)

{'fraction_non_alphanumeric': 0.16203703703703703, 'fraction_numerical': 0.0030864197530864196, 'mean_word_length': 1.290636042402827, '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': '5482819', 'n_tokens_mistral': 784, 'n_tokens_neox': 762, 'n_words': 170}