<commit_before>/*
 * This file renders the details for the admin panel as well as,
 * lazily loads the Users, User Groups, and Statistics components (component
 * is only loaded when the corresponding tab is clicked)
 */

/*
 * The following import statements makes available all the elements
 * required by the components encompassed within
 */

import { Layout } from "antd";
import { Router } from "@reach/router";
import { ADMIN } from "../routes";
import React, { Suspense, lazy} from "react";
import { ContentLoading } from "../../../components/loader";

const { Content } = Layout;

import AdminHeader from "./AdminHeader";
import AdminSideMenu from "./AdminSideMenu"
import { setBaseUrl } from "../../../utilities/url-utilities";

const AdminStatistics = lazy(() => import("./AdminStatistics"));
const AdminUsersPage = lazy(() => import("../../AdminUsersPage"));
const AdminUserGroupsPage = lazy(() => import("../../UserGroupsPage/components/UserGroupsPage"));

export default function Admin() {
  const DEFAULT_URL = setBaseUrl("/admin");

  /*
   * The following renders the tabs for statistics, users, and groups
   * the components are only loaded if the corresponding tab is clicked
   */
  return (
    <Layout>
        <AdminSideMenu />
        <Layout>
          <AdminHeader />
          <Content>
            <Suspense fallback={<ContentLoading />}>
              <Router>
                <AdminStatistics
                  path={
                    `${DEFAULT_URL}/${ADMIN.STATISTICS}`
                  }
                  default
                />
                <AdminUsersPage
                  path={
                    `${DEFAULT_URL}/${ADMIN.USERS}`
                  }
                />
                <AdminUserGroupsPage
                  path={
                    `${DEFAULT_URL}/${ADMIN.USERGROUPS}`
                  }
                />
              </Router>
            </Suspense>
          </Content>
        </Layout>
    </Layout>
  );
}<commit_msg>Changed Admin.jsx to import UsersPage instead of outdated AdminUsersPage<commit_after>/*
 * This file renders the details for the admin panel as well as,
 * lazily loads the Users, User Groups, and Statistics components (component
 * is only loaded when the corresponding tab is clicked)
 */

/*
 * The following import statements makes available all the elements
 * required by the components encompassed within
 */

import { Layout } from "antd";
import { Router } from "@reach/router";
import { ADMIN } from "../routes";
import React, { Suspense, lazy} from "react";
import { ContentLoading } from "../../../components/loader";

const { Content } = Layout;

import AdminHeader from "./AdminHeader";
import AdminSideMenu from "./AdminSideMenu"
import { setBaseUrl } from "../../../utilities/url-utilities";

const AdminStatistics = lazy(() => import("./AdminStatistics"));
const UsersPage = lazy(() => import("../../UsersPage"));
const AdminUserGroupsPage = lazy(() => import("../../UserGroupsPage/components/UserGroupsPage"));

export default function Admin() {
  const DEFAULT_URL = setBaseUrl("/admin");

  /*
   * The following renders the tabs for statistics, users, and groups
   * the components are only loaded if the corresponding tab is clicked
   */
  return (
    <Layout>
        <AdminSideMenu />
        <Layout>
          <AdminHeader />
          <Content>
            <Suspense fallback={<ContentLoading />}>
              <Router>
                <AdminStatistics
                  path={
                    `${DEFAULT_URL}/${ADMIN.STATISTICS}`
                  }
                  default
                />
                <UsersPage
                  path={
                    `${DEFAULT_URL}/${ADMIN.USERS}`
                  }
                />
                <AdminUserGroupsPage
                  path={
                    `${DEFAULT_URL}/${ADMIN.USERGROUPS}`
                  }
                />
              </Router>
            </Suspense>
          </Content>
        </Layout>
    </Layout>
  );
}
{'fraction_non_alphanumeric': 0.12462834489593658, 'fraction_numerical': 0.0, 'mean_word_length': 1.90850144092219, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 41, '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': '4152492', 'n_tokens_mistral': 1017, 'n_tokens_neox': 984, 'n_words': 304}