From 13c9a777e8bbcc0bb9b6caab10ebda8b1edc023f Mon Sep 17 00:00:00 2001 From: Jos van der Velde Date: Thu, 21 Dec 2023 15:26:11 +0100 Subject: [PATCH 1/2] Using new croissant location --- server/src/client/app/src/pages/search/Dataset.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/server/src/client/app/src/pages/search/Dataset.js b/server/src/client/app/src/pages/search/Dataset.js index bc362bd..fc34a1c 100644 --- a/server/src/client/app/src/pages/search/Dataset.js +++ b/server/src/client/app/src/pages/search/Dataset.js @@ -82,23 +82,28 @@ export class DatasetItem extends React.Component { this.featureSizeLimit = this.defaultFeatureListSizeLimit; } render() { - let featureTableColumns = [ + const featureTableColumns = [ "", "Feature Name", "Type", "Distinct/Missing Values" ]; - let qualityTableColumns = ["", "Quality Name", "Value"]; + const qualityTableColumns = ["", "Quality Name", "Value"]; + const did = this.props.object.data_id; + const did_padded = did.toString().padStart(4, "0"); + const bucket_url = "https://openml1.win.tue.nl/datasets/"; + const bucket_bracket = Math.floor(did / 10000).toString().padStart(4, "0"); + const croissant_url = bucket_url + bucket_bracket + "/" + did_padded + "/dataset_" + did + "_croissant.json"; return ( - + {context => ( - + Croissant From cf78b36ae109b10f7ca96bc0a629b3a0b4b1e634 Mon Sep 17 00:00:00 2001 From: Jos van der Velde Date: Thu, 21 Dec 2023 15:26:50 +0100 Subject: [PATCH 2/2] I don't think this README was correct, the commands didnt work for me --- app/README.md | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/app/README.md b/app/README.md index b969dc5..a067d3c 100644 --- a/app/README.md +++ b/app/README.md @@ -1,37 +1,3 @@ # OpenML Website -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). - -## Getting Started - -First, install the dependencies with: - -```bash -npm install -``` - -Then, run the development server: - -```bash -npm run dev -# or -yarn dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. - -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - +See https://docs.openml.org/Website/ for instructions