<commit_before>import React, {Component, PropTypes} from "react";
import DnnPermissionGrid from "dnn-permission-grid";
import utils from "../../utils";
import cloneDeep from "lodash/cloneDeep";
import style from "./style.less";
import Localization from "localization";

class PermissionGrid extends Component {
        
    onPermissionsChanged(permissions) {
        const p = { 
            ...this.props.permissions,
            ...permissions
        };
        this.props.onPermissionsChanged(p);
    }

    render() {
        const serviceFramework = utils.getServiceFramework(); 

        return (
            <div className={style.permissionGrid}>
                <DnnPermissionGrid 
                    localization={{
                        permissionsByRole: Localization.get("PermissionsByRole"),
                        permissionsByUser: Localization.get("PermissionsByUser"),
                        filterByGroup: Localization.get("FilterByGroup"),
                        addRolePlaceHolder: Localization.get("AddRolePlaceHolder"),
                        addUserPlaceHolder: Localization.get("AddUserPlaceHolder"),
                        addRole: Localization.get("AddRole"),
                        addUser: Localization.get("AddUser"),
                        emptyRole: Localization.get("EmptyRole"),
                        emptyUser: Localization.get("EmptyUser"),
                        globalGroupsText: Localization.get("GlobalGroupsText"),
                        allGroupsText: Localization.get("AllGroupsText"),
                        roleText: Localization.get("Role"),
                        userText: Localization.get("User"),<commit_msg>DNN-9978: update resource key.<commit_after>import React, {Component, PropTypes} from "react";
import DnnPermissionGrid from "dnn-permission-grid";
import utils from "../../utils";
import cloneDeep from "lodash/cloneDeep";
import style from "./style.less";
import Localization from "localization";

class PermissionGrid extends Component {
        
    onPermissionsChanged(permissions) {
        const p = { 
            ...this.props.permissions,
            ...permissions
        };
        this.props.onPermissionsChanged(p);
    }

    render() {
        const serviceFramework = utils.getServiceFramework(); 

        return (
            <div className={style.permissionGrid}>
                <DnnPermissionGrid 
                    localization={{
                        permissionsByRole: Localization.get("PermissionsByRole"),
                        permissionsByUser: Localization.get("PermissionsByUser"),
                        filterByGroup: Localization.get("FilterByGroup"),
                        addRolePlaceHolder: Localization.get("AddRolePlaceHolder"),
                        addUserPlaceHolder: Localization.get("AddUserPlaceHolder"),
                        addRole: Localization.get("AddRole"),
                        addUser: Localization.get("AddUser"),
                        emptyRole: Localization.get("EmptyRole"),
                        emptyUser: Localization.get("EmptyUser"),
                        globalGroupsText: Localization.get("GlobalGroups"),
                        allGroupsText: Localization.get("AllGroups"),
                        roleText: Localization.get("Role"),
                        userText: Localization.get("User"),
{'fraction_non_alphanumeric': 0.1021137243227151, 'fraction_numerical': 0.0011908306043465317, 'mean_word_length': 1.9473684210526316, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6725845', 'n_tokens_mistral': 773, 'n_tokens_neox': 748, 'n_words': 144}