<commit_before>import { Action, Selector, State, StateContext, Store } from '@ngxs/store';
import { GestioneUtente } from '../../../../../shared/interface/gestione-utente.interface';
import {
    AddUtente,
    UpdateUtenteGestione,
    GetUtentiGestione,
    RemoveUtente,
    SetUtentiGestione, OpenModalAddUtente, OpenModalRemoveUtente
} from '../../actions/gestione-utenti/gestione-utenti.actions';
import { GestioneUtentiService } from '../../../../../core/service/gestione-utenti-service/gestione-utenti.service';
import { ShowToastr } from '../../../../../shared/store/actions/toastr/toastr.actions';
import { ToastrType } from '../../../../../shared/enum/toastr';
import { insertItem, patch, updateItem } from '@ngxs/store/operators';
import { AggiungiUtenteModalComponent } from '../../../aggiungi-utente-modal/aggiungi-utente-modal.component';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { NgZone } from '@angular/core';
import { ConfirmModalComponent } from '../../../../../shared';
import { RicercaUtentiState } from '../ricerca-utenti/ricerca-utenti.state';
import { PatchPagination } from '../../../../../shared/store/actions/pagination/pagination.actions';
import { ResponseInterface } from '../../../../../shared/interface/response.interface';

export interface GestioneUtentiStateModel {
    listaUtenti: GestioneUtente[];
}

export const GestioneUtentiStateModelDefaults: GestioneUtentiStateModel = {
    listaUtenti: []
};

@State<GestioneUtentiStateModel>({
    name: 'gestioneUtenti',
    defaults: GestioneUtentiStateModelDefaults
})
export class GestioneUtentiState {

    constructor(private _gestioneUtenti: GestioneUtentiService,
                private modalService: NgbModal,
                private store: Store,
                private ngZone: NgZone) {
    }

    @Selector()<commit_msg>GestioneUtenti: fix store<commit_after>import { Action, Selector, State, StateContext, Store } from '@ngxs/store';
import { GestioneUtente } from '../../../../../shared/interface/gestione-utente.interface';
import {
    AddUtente,
    UpdateUtenteGestione,
    GetUtentiGestione,
    RemoveUtente,
    SetUtentiGestione, OpenModalAddUtente, OpenModalRemoveUtente
} from '../../actions/gestione-utenti/gestione-utenti.actions';
import { GestioneUtentiService } from '../../../../../core/service/gestione-utenti-service/gestione-utenti.service';
import { ShowToastr } from '../../../../../shared/store/actions/toastr/toastr.actions';
import { ToastrType } from '../../../../../shared/enum/toastr';
import { insertItem, patch, updateItem } from '@ngxs/store/operators';
import { AggiungiUtenteModalComponent } from '../../../aggiungi-utente-modal/aggiungi-utente-modal.component';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { NgZone } from '@angular/core';
import { ConfirmModalComponent } from '../../../../../shared';
import { RicercaUtentiState } from '../ricerca-utenti/ricerca-utenti.state';
import { PatchPagination } from '../../../../../shared/store/actions/pagination/pagination.actions';
import { ResponseInterface } from '../../../../../shared/interface/response.interface';

export interface GestioneUtentiStateModel {
    listaUtenti: GestioneUtente[];
    nuovoUtenteForm: {
        model?: {
            utenti: string;
            ruoli: string[];
            sedi: string[]
        };
        dirty: boolean;
        status: string;
        errors: any;
    };
}

export const GestioneUtentiStateModelDefaults: GestioneUtentiStateModel = {
    listaUtenti: [],
    nuovoUtenteForm: {
        model: undefined,
        dirty: false,
        status: '',
        errors: {}
    }
};

@State<GestioneUtentiStateModel>({
    name: 'gestioneUtenti',
    defaults: GestioneUtentiStateModelDefaults
})
export class GestioneUtentiState {

    constructor(private _gestioneUtenti: GestioneUtentiService,
                private modalService: NgbModal,
                private store: Store,
                private ngZone: NgZone) {
    }

    @Selector()
{'fraction_non_alphanumeric': 0.15998006478943433, 'fraction_numerical': 0.0, 'mean_word_length': 3.1296296296296298, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4447673', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1170, 'n_words': 220}