<commit_before>import React, { Component } from 'react';
import {Link} from 'react-router';
import Drawer from '../../../components/drawer/Drawer';
import PropTypes from 'prop-types';
import log, { eventTypes } from '../../../utilities/log';
import url from '../../../utilities/url';

const propTypes = {
    isVisible: PropTypes.bool,
    onClose: PropTypes.func.isRequired,
    onDelete: PropTypes.func.isRequired,
    onChangePassword: PropTypes.func,
    name: PropTypes.string,
    email: PropTypes.string,
    isLoading: PropTypes.bool,
    isDeleting: PropTypes.bool,
    hasTemporaryPassword: PropTypes.bool,
    role: PropTypes.oneOf(["ADMIN", "EDITOR", "VIEWER"]),
    errorFetchingUserDetails: PropTypes.bool,
    errorFetchingUserPermissions: PropTypes.bool,
    showChangePassword: PropTypes.bool
};

export class UserDetails extends Component {
    constructor(props) {
        super(props);
    }

    renderRole() {<commit_msg>Add isCloseable to prop types<commit_after>import React, { Component } from 'react';
import {Link} from 'react-router';
import Drawer from '../../../components/drawer/Drawer';
import PropTypes from 'prop-types';
import log, { eventTypes } from '../../../utilities/log';

const propTypes = {
    isVisible: PropTypes.bool,
    onClose: PropTypes.func.isRequired,
    onDelete: PropTypes.func.isRequired,
    onChangePassword: PropTypes.func,
    name: PropTypes.string,
    email: PropTypes.string,
    isLoading: PropTypes.bool,
    isDeleting: PropTypes.bool,
    hasTemporaryPassword: PropTypes.bool,
    role: PropTypes.oneOf(["ADMIN", "EDITOR", "VIEWER"]),
    errorFetchingUserDetails: PropTypes.bool,
    errorFetchingUserPermissions: PropTypes.bool,
    showChangePassword: PropTypes.bool,
    isCloseable: PropTypes.bool,
};

export class UserDetails extends Component {
    constructor(props) {
        super(props);
    }

    renderRole() {
{'fraction_non_alphanumeric': 0.13146779303062303, 'fraction_numerical': 0.0, 'mean_word_length': 3.8341836734693877, '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': '923088', 'n_tokens_mistral': 539, 'n_tokens_neox': 576, 'n_words': 130}