<commit_before>import React from 'react';

import {ModeSwitch, Mode} from '../../src/react-chayns-modeswitch/index';

import ExampleDecorator from './ExampleDecorator';

export default class Example extends React.Component {
    constructor() {
        super();

        window.setTimeout(() => {
            ModeSwitch.init({
                groups: [{
                    id: 1,
                    uacIds: [1, 34542],
                    name: 'Chayns Manager'
                },{<commit_msg>Updated modeswitch-example<commit_after>import React from 'react';

import {ModeSwitchHelper, ModeSwitch, Mode} from '../../src/react-chayns-modeswitch/index';

import ExampleDecorator from './ExampleDecorator';

export default class Example extends React.Component {
    constructor() {
        super();

        console.log(ModeSwitchHelper.isUserInGroup(1), ModeSwitchHelper.isUserInGroup(2), ModeSwitchHelper.isUserInGroup(3), ModeSwitchHelper.isChaynsManager());

        window.setTimeout(() => {
            ModeSwitch.init({
                groups: [{
                    id: 1,
                    uacIds: [1, 34542],
                    name: 'chayns® Manager'
                },{
{'fraction_non_alphanumeric': 0.12151898734177215, 'fraction_numerical': 0.014345991561181435, 'mean_word_length': 2.1047120418848166, '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': '5757772', 'n_tokens_mistral': 337, 'n_tokens_neox': 311, 'n_words': 70}