<commit_before>import React, {Component, PropTypes } from "react";
import { connect } from "react-redux";
import Localization from "localization";
import Button from "dnn-button";
import GridCell from "dnn-grid-cell";
import PersonaBarPageHeader from "dnn-persona-bar-page-header";
import PersonaBarPageBody from "dnn-persona-bar-page-body";
import UserTable from "../../_exportables/src/components/UserTable";
import FiltersBar from "../../_exportables/src/components/FiltersBar";
import Pager from "dnn-pager";
import "./style.less";
import {CommonUsersActions } from "dnn-users-common-actions";
import appSettings from "utils/applicationSettings";
import utilities from "utils";

const searchParameters = {
    searchText: "",
    filter: 5,
    pageIndex: 0,
    pageSize: 10,
    sortColumn: "",
    sortAscending: false,
    resetIndex: false
};
class Body extends Component {
    constructor() {
        super();
        this.state = {
            userFilters: [],
            searchParameters
        };
    }
    componentWillMount() {
        this.props.dispatch(CommonUsersActions.getUserFilters((data) => {
            let userFilters = Object.assign([], JSON.parse(JSON.stringify(data)));
            this.setState({
                userFilters
            });
        }));
    }

    onChange(key, event) {
        this.setState({
            [key]: event.target.value<commit_msg>DNN-9577: Updated default user filter<commit_after>import React, {Component, PropTypes } from "react";
import { connect } from "react-redux";
import Localization from "localization";
import Button from "dnn-button";
import GridCell from "dnn-grid-cell";
import PersonaBarPageHeader from "dnn-persona-bar-page-header";
import PersonaBarPageBody from "dnn-persona-bar-page-body";
import UserTable from "../../_exportables/src/components/UserTable";
import FiltersBar from "../../_exportables/src/components/FiltersBar";
import Pager from "dnn-pager";
import "./style.less";
import {CommonUsersActions } from "dnn-users-common-actions";
import appSettings from "utils/applicationSettings";
import utilities from "utils";

const searchParameters = {
    searchText: "",
    filter: 0,
    pageIndex: 0,
    pageSize: 10,
    sortColumn: "",
    sortAscending: false,
    resetIndex: false
};
class Body extends Component {
    constructor() {
        super();
        this.state = {
            userFilters: [],
            searchParameters
        };
    }
    componentWillMount() {
        this.props.dispatch(CommonUsersActions.getUserFilters((data) => {
            let userFilters = Object.assign([], JSON.parse(JSON.stringify(data)));
            this.setState({
                userFilters
            });
        }));
    }

    onChange(key, event) {
        this.setState({
            [key]: event.target.value
{'fraction_non_alphanumeric': 0.12802275960170698, 'fraction_numerical': 0.004267425320056899, 'mean_word_length': 2.9844192634560907, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6081210', 'n_tokens_mistral': 790, 'n_tokens_neox': 795, 'n_words': 187}