<commit_before>import React, { Suspense } from 'react';

import IndexPage from '../pages';
import RestfulPage from '../pages/restful/[userName]/[repoName]';

// temporary disabled import { RelayRootMain } from'../pages/relay/[userName]/[repoName]';

export default {
    title: 'Others/Pages',
};

export const Main = () => <IndexPage />;

export const Restful = (props) => <RestfulPage {...props} />;
Restful.parameters = {
    storyshots: { disable: true },
    chromatic: { disable: false },
};

Restful.args = {
    userName: 'lowsky',
    repoName: 'dashboard',
};

Restful.story = {
    parameters: {
        nextRouter: {
            path: '/profile/[userName]/[repoName]',
            query: {
                userName: 'lowsky',
                repoName: 'dashboard',
            },
        },
    },
};

/* this does currently not work at all, and need
a different setup, with mocked Graphql Environment,
and properly setup.
Currently, failing because of:
<commit_msg>make test data for storybook/chromatic more stable<commit_after>import React, { Suspense } from 'react';

import IndexPage from '../pages';
import RestfulPage from '../pages/restful/[userName]/[repoName]';

// temporary disabled import { RelayRootMain } from'../pages/relay/[userName]/[repoName]';

export default {
    title: 'Others/Pages',
};

export const Main = () => <IndexPage />;

export const Restful = (props) => <RestfulPage {...props} />;
Restful.parameters = {
    storyshots: { disable: true },
    chromatic: { disable: false },
};

Restful.args = {
    userName: 'lowsky',
    repoName: 'test-repo',
};

Restful.story = {
    parameters: {
        nextRouter: {
            path: '/profile/[userName]/[repoName]',
            query: {
                userName: 'lowsky',
                repoName: 'test-repo',
            },
        },
    },
};

/* this does currently not work at all, and need
a different setup, with mocked Graphql Environment,
and properly setup.
Currently, failing because of:

{'fraction_non_alphanumeric': 0.15002508780732565, 'fraction_numerical': 0.0, 'mean_word_length': 2.7340823970037453, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '200763', 'n_tokens_mistral': 606, 'n_tokens_neox': 592, 'n_words': 160}