<commit_before>import {computedFrom} from 'aurelia-framework';
import {inject} from 'aurelia-framework';
import {ApplicationState} from '../applicationState';
import {DialogService, Prompt} from 'aurelia-dialog';
import {Validation} from 'aurelia-validation';

@inject(ApplicationState, DialogService, Validation)
export class characterCreation {
  constructor(appState, dialogService, validation) {
    this.appState = appState;
    this.dialogService = dialogService;

    this.validation = validation.on(this)
      .ensure('characterName')
      .isNotEmpty()
      .hasMinLength(1);

		this.generateScores();
<commit_msg>Fixed being able to click Create on characterCreation once without a name.<commit_after>import {computedFrom} from 'aurelia-framework';
import {inject} from 'aurelia-framework';
import {ApplicationState} from '../applicationState';
import {DialogService, Prompt} from 'aurelia-dialog';
import {Validation} from 'aurelia-validation';

@inject(ApplicationState, DialogService, Validation)
export class characterCreation {
  constructor(appState, dialogService, validation) {
    this.characterName = '';

    this.appState = appState;
    this.dialogService = dialogService;

    this.validation = validation.on(this)
      .ensure('characterName')
      .isNotEmpty()
      .hasMinLength(1);

		this.generateScores();

{'fraction_non_alphanumeric': 0.114668652271035, 'fraction_numerical': 0.0014892032762472078, 'mean_word_length': 5.222222222222222, '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': '5144002', 'n_tokens_mistral': 378, 'n_tokens_neox': 366, 'n_words': 92}