<commit_before>'use strict';

const Base = require('../base');
const _ = require('../extended-lodash');

class DirectiveGenerator extends Base {
    constructor(args, options) {
        super(args, options);

        this._requireName();
        this._enablePrefix();
    }

    get writing() {
        return {
            component: function () {
                const context = this._createContext();

                this._copyFile(context.componentName, 'controller', context.controllerFileName, '.js', context);
                this._copyFile(context.componentName, 'directive', context.directiveFileName, '.js', context);
                this._copyFile(context.componentName, 'index', 'index', '.js', context);
                this._copyFile(context.componentName, 'spec', context.componentName + '-directive-spec', '.js', context);
                this._copyFile(context.componentName, 'test', context.componentName + '-directive-test', '.js', context);
            },<commit_msg>fix directive file names<commit_after>'use strict';

const Base = require('../base');
const _ = require('../extended-lodash');

class DirectiveGenerator extends Base {
    constructor(args, options) {
        super(args, options);

        this._requireName();
        this._enablePrefix();
    }

    get writing() {
        return {
            component: function () {
                const context = this._createContext();

                this._copyFile(context.componentName, 'controller', context.controllerFileName, '.js', context);
                this._copyFile(context.componentName, 'directive', context.directiveFileName, '.js', context);
                this._copyFile(context.componentName, 'index', 'index', '.js', context);
                this._copyFile(context.componentName, 'spec', context.componentName + '-spec', '.js', context);
                this._copyFile(context.componentName, 'test', context.componentName + '-test', '.js', context);
            },
{'fraction_non_alphanumeric': 0.14539908490086426, 'fraction_numerical': 0.0, 'mean_word_length': 2.671641791044776, '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': '4467509', 'n_tokens_mistral': 507, 'n_tokens_neox': 483, 'n_words': 107}