<commit_before>const Blueprints = require('../blueprints'),
  StringUtils = require('../../utilities/string.utils'),
  ModuleUtils = require('../../utilities/module.utils');

class ServiceBlueprint extends Blueprints {

  constructor (blueprint, entityName, options) {
    super(blueprint, entityName, options);

    this.type = 'service';
    this.files = [
      '__name__.service.spec.ts',
      '__name__.service.ts'
    ];

    this.pathToAppModule = ModuleUtils.findAppModule(this.project, this.parsedPath.dir);
    this.pathToModule = ModuleUtils.findParentModule(this.project, this.parsedPath.dir);
    this.templateData = Object.assign(this.templateData, {
      camelizedName: StringUtils.camelize(this.parsedPath.name, true)
    });
  }<commit_msg>feat(blueprint-service): generate spec file based on the configuration file<commit_after>const Blueprints = require('../blueprints'),
  StringUtils = require('../../utilities/string.utils'),
  ModuleUtils = require('../../utilities/module.utils');

class ServiceBlueprint extends Blueprints {

  constructor (blueprint, entityName, options) {
    super(blueprint, entityName, options);

    this.type = 'service';
    this.files = [
      '__name__.service.ts'
    ];

    if (this.project.clea.spec && this.project.clea.spec.service) {
      this.files.push('__name__.service.spec.ts');
    }

    this.pathToAppModule = ModuleUtils.findAppModule(this.project, this.parsedPath.dir);
    this.pathToModule = ModuleUtils.findParentModule(this.project, this.parsedPath.dir);
    this.templateData = Object.assign(this.templateData, {
      camelizedName: StringUtils.camelize(this.parsedPath.name, true)
    });
  }
{'fraction_non_alphanumeric': 0.14294258373205743, 'fraction_numerical': 0.0, 'mean_word_length': 3.9497041420118344, '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': '644580', 'n_tokens_mistral': 501, 'n_tokens_neox': 498, 'n_words': 79}