<commit_before>/*
 * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { Typography } from '@material-ui/core';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import Slide from '@material-ui/core/Slide';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButton';
import CloseIcon from '@material-ui/icons/Close';
import Grid from '@material-ui/core/Grid';
import classNames from 'classnames';
import CustomIcon from '../../../Shared/CustomIcon';
import TokenManager from '../../../Shared/AppsAndKeys/TokenManager';
import SubscribeToApi from '../../../Shared/AppsAndKeys/SubscribeToApi';
import { ApiContext } from '../ApiContext';
import Wizard from './Wizard';
import InlineMessage from '../../../Shared/InlineMessage';
import ExpressMode from './ExpressMode';
import Subscription from '../../../../data/Subscription';
import Alert from '../../../Shared/Alert';
import { ScopeValidation, resourceMethods, resourcePaths } from '../../../Shared/ScopeValidation';

/**
 *
 *
 * @param {*} theme
 */
const styles = theme => ({
    contentWrapper: {
        maxWidth: theme.custom.contentAreaWidth,
        paddingLeft: theme.spacing.unit * 3,
        paddingTop: theme.spacing.unit * 3,
    },
    titleSub: {
        cursor: 'pointer',
    },
    button: {
        padding: theme.spacing.unit,
        color: theme.palette.getContrastText(theme.palette.background.default),
        display: 'flex',
        alignItems: 'center',<commit_msg>Refactor as per PR review<commit_after>/*
 * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { Typography } from '@material-ui/core';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import Slide from '@material-ui/core/Slide';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButton';
import CloseIcon from '@material-ui/icons/Close';
import Grid from '@material-ui/core/Grid';
import classNames from 'classnames';
import Subscription from 'AppData/Subscription';
import CustomIcon from '../../../Shared/CustomIcon';
import TokenManager from '../../../Shared/AppsAndKeys/TokenManager';
import SubscribeToApi from '../../../Shared/AppsAndKeys/SubscribeToApi';
import { ApiContext } from '../ApiContext';
import Wizard from './Wizard';
import InlineMessage from '../../../Shared/InlineMessage';
import ExpressMode from './ExpressMode';
import Alert from '../../../Shared/Alert';
import { ScopeValidation, resourceMethods, resourcePaths } from '../../../Shared/ScopeValidation';

/**
 *
 *
 * @param {*} theme
 */
const styles = theme => ({
    contentWrapper: {
        maxWidth: theme.custom.contentAreaWidth,
        paddingLeft: theme.spacing.unit * 3,
        paddingTop: theme.spacing.unit * 3,
    },
    titleSub: {
        cursor: 'pointer',
    },
    button: {
        padding: theme.spacing.unit,
        color: theme.palette.getContrastText(theme.palette.background.default),
        display: 'flex',
        alignItems: 'center',
{'fraction_non_alphanumeric': 0.1385886840432295, 'fraction_numerical': 0.005509641873278237, 'mean_word_length': 3.622918707149853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6726977', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1298, 'n_words': 439}