<commit_before>scaffolt = require 'scaffolt'
_s = require 'underscore.string'

module.exports = class Scaffold

  @generate: ->
    scaffold = new Scaffold
    scaffold.generate arguments...

  @destroy: ->
    scaffold = new Scaffold
    scaffold.destroy arguments...

  generate: (name = '', callback = ->) ->
    scaffolt @className(), name, callback

  destroy: (name = '', callback = ->) ->
    scaffolt @className(), name, {revert: yes}, callback

  className: ->
    _s.dasherize(@constructor.name).replace(/^-/, '')<commit_msg>Fix issue in class methods for Scaffold<commit_after>scaffolt = require 'scaffolt'
_s = require 'underscore.string'

module.exports = class Scaffold

  @generate: ->
    scaffold = new @constructor
    scaffold.generate arguments...

  @destroy: ->
    scaffold = new @constructor
    scaffold.destroy arguments...

  generate: (name = '', callback = ->) ->
    scaffolt @className(), name, callback

  destroy: (name = '', callback = ->) ->
    scaffolt @className(), name, {revert: yes}, callback

  className: ->
    _s.dasherize(@constructor.name).replace(/^-/, '')
{'fraction_non_alphanumeric': 0.15760869565217392, 'fraction_numerical': 0.0, 'mean_word_length': 3.3333333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '3360629', 'n_tokens_mistral': 351, 'n_tokens_neox': 340, 'n_words': 84}