Download tasks/codeql_javascript_benchmark_top30_v1/morefixes-17d21311a4f5af9bbc4f/patch.diff from Benchanything/checkerbench: direct link, hf CLI and curl.
- Browser
- Download file 916 Bytes
-
https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_javascript_benchmark_top30_v1/morefixes-17d21311a4f5af9bbc4f/patch.diff
- Command line
-
hf download hf://datasets/Benchanything/checkerbench/tasks/codeql_javascript_benchmark_top30_v1/morefixes-17d21311a4f5af9bbc4f/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benchanything/checkerbench/resolve/main/tasks/codeql_javascript_benchmark_top30_v1/morefixes-17d21311a4f5af9bbc4f/patch.diff
916 Bytes
| diff --git a/ui/src/pages/home/reviewer/Profile/index.tsx b/ui/src/pages/home/reviewer/Profile/index.tsx | |
| index ab2ee0f1..9af28ce6 100644 | |
| --- a/ui/src/pages/home/reviewer/Profile/index.tsx | |
| +++ b/ui/src/pages/home/reviewer/Profile/index.tsx | |
| import React, { FormEvent, useState, useEffect } from 'react'; | |
| import { Form, Button, Stack, ButtonGroup } from 'react-bootstrap'; | |
| import { Trans, useTranslation } from 'react-i18next'; | |
| -import MD5 from 'md5'; | |
| +import { sha256 } from 'js-sha256'; | |
| import type { FormDataType } from '@/common/interface'; | |
| import { UploadImg, Avatar, Icon, ImgViewer } from '@/components'; | |
| const Index: React.FC = () => { | |
| setFormData({ ...formData }); | |
| if (res.e_mail) { | |
| const str = res.e_mail.toLowerCase().trim(); | |
| - const hash = MD5(str); | |
| + const hash = sha256(str); | |
| setMailHash(hash); | |
| } | |
| }); | |