<commit_before>import React from "react";
import DefaultLayout from "../ui/src/containers/DefaultLayout";
import HomePageComponent from "./home/HomePage";
import NonGHUserProfileComponent from "./user/nonghUserProfile";
import LoginComponent from "./stateless/login";
import URLShortenerComponent from "./urlShortener";
import NGHDemoPageComponent from "./deployment/UsePrebuiltProject/nghDemoPage";
import RegisterNonGHPageComponent from "./deployment/UsePrebuiltProject/registerPage";
import ShareProfile from "./user/userShareProfile";
import InitialSetupComponent from "./initialSetupPage";

const routes = [
  { path: '/home', name: 'Dashboard', component: HomePageComponent },
  { path: '/', exact: true, name: 'Home', component: DefaultLayout },
  { path: '/u/:username/:user_id', name: 'user', component: ShareProfile },
  { path: '/p/:shorturl', exact: true, name: 'short', component: URLShortenerComponent },
  { path: '/demo_register', exact: true, name: 'Create demo', component: RegisterNonGHPageComponent },
  { path: '/login*', name: 'login', component: LoginComponent },
  { path: '/initialsetup',exact: true, name: 'initialsetup', component:InitialSetupComponent },
  { path: '/ngh/user',exact: true,name:'My Demo', component:NonGHUserProfileComponent },

];


export default routes;
<commit_msg>Added route to 404 not found error (#238)<commit_after>import React from "react";
import DefaultLayout from "../ui/src/containers/DefaultLayout";
import HomePageComponent from "./home/HomePage";
import NonGHUserProfileComponent from "./user/nonghUserProfile";
import LoginComponent from "./stateless/login";
import URLShortenerComponent from "./urlShortener";
import PageNotfoundHandler from "./PageNotfoundHandler";
import NGHDemoPageComponent from "./deployment/UsePrebuiltProject/nghDemoPage";
import RegisterNonGHPageComponent from "./deployment/UsePrebuiltProject/registerPage";
import ShareProfile from "./user/userShareProfile";
import InitialSetupComponent from "./initialSetupPage";

const routes = [
  { path: "/home", name: "Dashboard", component: HomePageComponent },
  { path: "/", exact: true, name: "Home", component: DefaultLayout },
  { path: "/u/:username/:user_id", name: "user", component: ShareProfile },
  {
    path: "/p/:shorturl",
    exact: true,
    name: "short",
    component: URLShortenerComponent
  },
  {
    path: "/demo_register",
    exact: true,
    name: "Create demo",
    component: RegisterNonGHPageComponent
  },
  { path: "/login*", name: "login", component: LoginComponent },
  {
    path: "/initialsetup",
    exact: true,
    name: "initialsetup",
    component: InitialSetupComponent
  },
  {
    path: "/ngh/user",
    exact: true,
    name: "My Demo",
    component: NonGHUserProfileComponent
  },
  { path: "*", name: "NotFound", component: PageNotfoundHandler }
];

export default routes;
{'fraction_non_alphanumeric': 0.1402524544179523, 'fraction_numerical': 0.0021037868162692847, 'mean_word_length': 5.215686274509804, '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': '7537714', 'n_tokens_mistral': 816, 'n_tokens_neox': 799, 'n_words': 218}