diff --git a/ai-verify-portal/__mocks__/mockGqlResponse.ts b/ai-verify-portal/__mocks__/mockGqlResponse.ts index f8bc02c87..691b8d0f7 100644 --- a/ai-verify-portal/__mocks__/mockGqlResponse.ts +++ b/ai-verify-portal/__mocks__/mockGqlResponse.ts @@ -82,7 +82,7 @@ export const mockGqlDataE2E = [ name: 'pickle_pandas_tabular_compas_testing.sav', filename: 'pickle_pandas_tabular_compas_testing.sav', filePath: - '/home/aiverify/uploads/data/pickle_pandas_tabular_compas_testing.sav', + '/uploads/data/pickle_pandas_tabular_compas_testing.sav', ctime: '2023-06-05T07:17:06.360Z', size: '68.33 KB', status: 'Valid', @@ -143,7 +143,7 @@ export const mockGqlDataE2E = [ id: '64cb013aad81d1d5d0227bf5', name: 'image-test.png', filename: 'aiv-homescreen-v1.png', - filePath: '/home/aiverify/uploads/data/image-test.png', + filePath: '../aiverify/uploads/data/image-test.png', ctime: '2023-08-03T01:22:02.814Z', size: '71.09 KB', status: 'Invalid', @@ -154,7 +154,7 @@ export const mockGqlDataE2E = [ serializer: '', dataFormat: '', errorMessages: - 'The dataset /home/amdlahir/aiverify/uploads/data/aiv-homescreen-v1.png is not supported. Please upload a supported dataset: Unable to get data instance: ', + 'The dataset ../aiverify/uploads/data/aiv-homescreen-v1.png is not supported. Please upload a supported dataset: Unable to get data instance: ', type: 'File', }, ], @@ -174,7 +174,7 @@ export const mockGqlDataE2E = [ name: 'pickle_scikit_bc_compas.sav', filename: 'pickle_scikit_bc_compas.sav', filePath: - '/home/amdlahir/aiverify/uploads/model/pickle_scikit_bc_compas.sav', + '../aiverify/uploads/model/pickle_scikit_bc_compas.sav', ctime: '2023-06-05T07:17:25.132Z', size: '502.71 KB', status: 'Valid', diff --git a/ai-verify-portal/__mocks__/mockPlugins.ts b/ai-verify-portal/__mocks__/mockPlugins.ts index 93c7dfdf1..44efc605a 100644 --- a/ai-verify-portal/__mocks__/mockPlugins.ts +++ b/ai-verify-portal/__mocks__/mockPlugins.ts @@ -30,7 +30,7 @@ const managePluginsTests_pluginsList: ApiResult = { gid: 'aiverify.stock.algorithms.partial_dependence_plot:partial_dependence_plot', pluginGID: 'aiverify.stock.algorithms.partial_dependence_plot', algoPath: - '/home/amdlahir/projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.partial_dependence_plot/algorithms/partial_dependence_plot', + '../projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.partial_dependence_plot/algorithms/partial_dependence_plot', requirements: [ 'numpy==1.24.1 ; python_version >= "3.10" and python_version < "3.12"', 'scipy==1.10.0 ; python_version >= "3.10" and python_version < "3.12"', @@ -804,7 +804,7 @@ const managePluginsTests_pluginsList: ApiResult = { pluginGID: 'aiverify.stock.algorithms.fairness_metrics_toolbox_for_classification', algoPath: - '/home/amdlahir/projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.fairness_metrics_toolbox_for_classification/algorithms/fairness_metrics_toolbox_for_classification', + '../projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.fairness_metrics_toolbox_for_classification/algorithms/fairness_metrics_toolbox_for_classification', requirements: [ 'joblib==1.2.0 ; python_version >= "3.10" and python_version < "4.0"', 'numpy==1.23.5 ; python_version >= "3.10" and python_version < "4.0"', @@ -1051,7 +1051,7 @@ const managePluginsTests_pluginsList: ApiResult = { gid: 'aiverify.stock.algorithms.adversarial_examples_toolbox:adversarial_examples_toolbox', pluginGID: 'aiverify.stock.algorithms.adversarial_examples_toolbox', algoPath: - '/home/amdlahir/projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.adversarial_examples_toolbox/algorithms/adversarial_examples_toolbox', + '../projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.adversarial_examples_toolbox/algorithms/adversarial_examples_toolbox', requirements: [ 'joblib==1.2.0 ; python_version >= "3.10" and python_version < "4.0"', 'numpy==1.23.5 ; python_version >= "3.10" and python_version < "4.0"', @@ -1136,7 +1136,7 @@ const managePluginsTests_pluginsList: ApiResult = { pluginGID: 'aiverify.stock.algorithms.fairness_metrics_toolbox_for_classification', algoPath: - '/home/amdlahir/projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.fairness_metrics_toolbox_for_classification/algorithms/fairness_metrics_toolbox_for_classification', + '../projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.fairness_metrics_toolbox_for_classification/algorithms/fairness_metrics_toolbox_for_classification', requirements: [ 'joblib==1.2.0 ; python_version >= "3.10" and python_version < "4.0"', 'numpy==1.23.5 ; python_version >= "3.10" and python_version < "4.0"', @@ -1284,7 +1284,7 @@ const managePluginsTests_pluginsList: ApiResult = { gid: 'aiverify.stock.algorithms.shap_toolbox:shap_toolbox', pluginGID: 'aiverify.stock.algorithms.shap_toolbox', algoPath: - '/home/amdlahir/projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.shap_toolbox/algorithms/shap_toolbox', + '../projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.shap_toolbox/algorithms/shap_toolbox', requirements: [ 'cloudpickle==2.2.1 ; python_version >= "3.10" and python_version < "4.0"', 'colorama==0.4.6 ; python_version >= "3.10" and python_version < "4.0" and platform_system == "Windows"', @@ -1483,7 +1483,7 @@ const managePluginsTests_pluginsList: ApiResult = { gid: 'aiverify.stock.algorithms.partial_dependence_plot:partial_dependence_plot', pluginGID: 'aiverify.stock.algorithms.partial_dependence_plot', algoPath: - '/home/amdlahir/projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.partial_dependence_plot/algorithms/partial_dependence_plot', + '../projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.partial_dependence_plot/algorithms/partial_dependence_plot', requirements: [ 'numpy==1.24.1 ; python_version >= "3.10" and python_version < "3.12"', 'scipy==1.10.0 ; python_version >= "3.10" and python_version < "3.12"', @@ -1590,7 +1590,7 @@ const managePluginsTests_pluginsList: ApiResult = { gid: 'aiverify.stock.algorithms.fairness_metrics_toolbox:fairness_metrics_toolbox', pluginGID: 'aiverify.stock.algorithms.fairness_metrics_toolbox', algoPath: - '/home/amdlahir/projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.fairness_metrics_toolbox/algorithms/fairness_metrics_toolbox', + '../projects/ai-verify/ai-verify-portal/plugins/aiverify.stock.algorithms.fairness_metrics_toolbox/algorithms/fairness_metrics_toolbox', requirements: [ 'joblib==1.2.0 ; python_version >= "3.10" and python_version < "4.0"', 'numpy==1.24.2 ; python_version >= "3.10" and python_version < "4.0"', @@ -2087,7 +2087,7 @@ const installPluginResponse: ApiResult = { gid: 'aiverify.stock.algorithms.partial_dependence_plot:partial_dependence_plot', pluginGID: 'aiverify.stock.algorithms.partial_dependence_plot', algoPath: - '/home/amdlahir/imda/projects/ai-verify-portal/plugins/aiverify.stock.algorithms.partial_dependence_plot/algorithms/partial_dependence_plot', + '../imda/projects/ai-verify-portal/plugins/aiverify.stock.algorithms.partial_dependence_plot/algorithms/partial_dependence_plot', requirements: [ 'numpy==1.24.1 ; python_version >= "3.10" and python_version < "3.12"', 'scipy==1.10.0 ; python_version >= "3.10" and python_version < "3.12"', @@ -2296,7 +2296,7 @@ const projectFlow_mockPlugins: PluginManagerType = { gid: `${MOCK_ALGO_ID}`, pluginGID: 'aiverify.test.mock_test_plugin1', algoPath: - '/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/algorithms/mock_algo1', + '../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/algorithms/mock_algo1', requirements: [ 'joblib==1.2.0 ; python_version >= "3.10" and python_version < "4.0"', 'numpy==1.23.5 ; python_version >= "3.10" and python_version < "4.0"', @@ -3662,7 +3662,7 @@ const projectFlow_mockPlugins: PluginManagerType = { gid: `${MOCK_ALGO_ID}`, pluginGID: 'aiverify.test.mock_test_plugin1', algoPath: - '/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/algorithms/mock_algo1', + '../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/algorithms/mock_algo1', requirements: [ 'joblib==1.2.0 ; python_version >= "3.10" and python_version < "4.0"', 'numpy==1.23.5 ; python_version >= "3.10" and python_version < "4.0"', @@ -3748,17 +3748,17 @@ const projectFlow_mockPlugins: PluginManagerType = { }; const widgetMdxBundleResponse = { - code: 'var Component=(()=>{var mr=Object.create;var Y=Object.defineProperty;var vr=Object.getOwnPropertyDescriptor;var pr=Object.getOwnPropertyNames;var gr=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty;var Q=(s,u)=>()=>(u||s((u={exports:{}}).exports,u),u.exports),br=(s,u)=>{for(var g in u)Y(s,g,{get:u[g],enumerable:!0})},Oe=(s,u,g,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let b of pr(u))!hr.call(s,b)&&b!==g&&Y(s,b,{get:()=>u[b],enumerable:!(h=vr(u,b))||h.enumerable});return s};var ee=(s,u,g)=>(g=s!=null?mr(gr(s)):{},Oe(u||!s||!s.__esModule?Y(g,"default",{value:s,enumerable:!0}):g,s)),yr=s=>Oe(Y({},"__esModule",{value:!0}),s);var re=Q((wr,Pe)=>{Pe.exports=React});var Se=Q(te=>{"use strict";(function(){"use strict";var s=re(),u=Symbol.for("react.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),U=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),C=Symbol.iterator,ae="@@iterator";function D(e){if(e===null||typeof e!="object")return null;var r=C&&e[C]||e[ae];return typeof r=="function"?r:null}var x=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i=1&&c>=0&&a[f]!==m[c];)c--;for(;f>=1&&c>=0;f--,c--)if(a[f]!==m[c]){if(f!==1||c!==1)do if(f--,c--,c<0||a[f]!==m[c]){var v=`\n`+a[f].replace(" at new "," at ");return e.displayName&&v.includes("")&&(v=v.replace("",e.displayName)),typeof e=="function"&&A.set(e,v),v}while(f>=1&&c>=0);break}}}finally{q=!1,X.current=l,Xe(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",Ce=P?F(P):"";return typeof e=="function"&&A.set(e,Ce),Ce}function qe(e,r,t){return pe(e,!1)}function ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function I(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,ze(e));if(typeof e=="string")return F(e);switch(e){case j:return F("Suspense");case R:return F("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case w:return qe(e.render);case y:return I(e.type,r,t);case S:{var i=e,o=i._payload,l=i._init;try{return I(l(o),r,t)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,ge={},he=x.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=I(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Ke(e,r,t,i,o){{var l=Function.call.bind($);for(var n in e)if(l(e,n)){var a=void 0;try{if(typeof e[n]!="function"){var m=Error((i||"React class")+": "+t+" type `"+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[n]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}a=e[n](r,n,i,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(M(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",t,n,typeof a),M(null)),a instanceof Error&&!(a.message in ge)&&(ge[a.message]=!0,M(o),d("Failed %s type: %s",t,a.message),M(null))}}}var He=Array.isArray;function z(e){return He(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function ye(e){if(Ze(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),be(e)}var N=x.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Ee,_e,K;K={};function er(e){if($.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function rr(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function tr(e,r){if(typeof e.ref=="string"&&N.current&&r&&N.current.stateNode!==r){var t=E(N.current.type);K[t]||(d(\'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref\',E(N.current.type),e.ref),K[t]=!0)}}function ir(e,r){{var t=function(){Ee||(Ee=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){_e||(_e=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var nr=function(e,r,t,i,o,l,n){var a={$$typeof:u,type:e,key:r,ref:t,props:n,_owner:l};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,i,o){{var l,n={},a=null,m=null;t!==void 0&&(ye(t),a=""+t),rr(r)&&(ye(r.key),a=""+r.key),er(r)&&(m=r.ref,tr(r,o));for(l in r)$.call(r,l)&&!Qe.hasOwnProperty(l)&&(n[l]=r[l]);if(e&&e.defaultProps){var f=e.defaultProps;for(l in f)n[l]===void 0&&(n[l]=f[l])}if(a||m){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(n,c),m&&ar(n,c)}return nr(e,a,m,o,i,N.current,n)}}var H=x.ReactCurrentOwner,Re=x.ReactDebugCurrentFrame;function O(e){if(e){var r=e._owner,t=I(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var J;J=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function xe(){{if(H.current){var e=E(H.current.type);if(e)return`\n\nCheck the render method of \\``+e+"`."}return""}}function sr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\\\\/]/,""),t=e.lineNumber;return`\n\nCheck your code at `+r+":"+t+"."}return""}}var we={};function lr(e){{var r=xe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`\n\nCheck the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(we[t])return;we[t]=!0;var i="";e&&e._owner&&e._owner!==H.current&&(i=" It was passed a child from "+E(e._owner.type)+"."),O(e),d(\'Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.\',t,i),O(null)}}function je(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var c=or(e,r,t,o,l);if(c==null)return c;if(n){var v=r.children;if(v!==void 0)if(i)if(z(v)){for(var P=0;P{"use strict";ke.exports=Se()});var Rr={};br(Rr,{cid:()=>Ae,default:()=>_r});var V=ee(ie());var p=ee(ie()),Ne=ee(re()),De=({metric:s,metric_name:u,container:g,data:h,parity:b})=>{let[W,L]=(0,Ne.useState)({data:[],bars:[]}),U="",w="",j="",R=0,y=0,S=h.sensitive_feature;for(let C of h.results){let ae=C,D=S.map((x,d)=>`${x}:${C.subgroup.split(",")[d]}`).join(",");local_metric=C[s],(y==0||local_metric=R)&&(R=local_metric,w=D)}let B=R-y;return(0,p.jsxDEV)("div",{style:{width:"100%"},children:[(0,p.jsxDEV)("p",{children:(0,p.jsxDEV)("b",{children:"Results"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:40,columnNumber:9},void 0)},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:39,columnNumber:7},void 0),(0,p.jsxDEV)("p",{children:["The difference between ",(0,p.jsxDEV)("b",{children:(0,p.jsxDEV)("i",{children:w},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:35},void 0)},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:32},void 0)," (group with highest value) and ",(0,p.jsxDEV)("b",{children:(0,p.jsxDEV)("i",{children:j},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:92},void 0)},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:89},void 0)," (group with lowest value) is ",(0,p.jsxDEV)("b",{children:B},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:144},void 0)," for ",(0,p.jsxDEV)("i",{children:u},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:162},void 0),". In an ideal situation, the parity should be close to ",b,"."]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:43,columnNumber:7},void 0)]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:38,columnNumber:5},void 0)};var Ae="mock_algo1";function Fe(s){return(0,V.jsxDEV)(De,{metric:"mae",metric_name:"Mean Absolute Error Parity",container:s.container,data:s.getResults(Ae),parity:"0"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/widget_cid_1.mdx",lineNumber:5,columnNumber:1},this)}function Er(s={}){let{wrapper:u}=s.components||{};return u?(0,V.jsxDEV)(u,Object.assign({},s,{children:(0,V.jsxDEV)(Fe,s,void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/widget_cid_1.mdx"},this)}),void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/widget_cid_1.mdx"},this):Fe(s)}var _r=Er;return yr(Rr);})();\n/**\n * @license React\n * react-jsx-dev-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n;return Component;', + code: 'var Component=(()=>{var mr=Object.create;var Y=Object.defineProperty;var vr=Object.getOwnPropertyDescriptor;var pr=Object.getOwnPropertyNames;var gr=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty;var Q=(s,u)=>()=>(u||s((u={exports:{}}).exports,u),u.exports),br=(s,u)=>{for(var g in u)Y(s,g,{get:u[g],enumerable:!0})},Oe=(s,u,g,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let b of pr(u))!hr.call(s,b)&&b!==g&&Y(s,b,{get:()=>u[b],enumerable:!(h=vr(u,b))||h.enumerable});return s};var ee=(s,u,g)=>(g=s!=null?mr(gr(s)):{},Oe(u||!s||!s.__esModule?Y(g,"default",{value:s,enumerable:!0}):g,s)),yr=s=>Oe(Y({},"__esModule",{value:!0}),s);var re=Q((wr,Pe)=>{Pe.exports=React});var Se=Q(te=>{"use strict";(function(){"use strict";var s=re(),u=Symbol.for("react.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),U=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),C=Symbol.iterator,ae="@@iterator";function D(e){if(e===null||typeof e!="object")return null;var r=C&&e[C]||e[ae];return typeof r=="function"?r:null}var x=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i=1&&c>=0&&a[f]!==m[c];)c--;for(;f>=1&&c>=0;f--,c--)if(a[f]!==m[c]){if(f!==1||c!==1)do if(f--,c--,c<0||a[f]!==m[c]){var v=`\n`+a[f].replace(" at new "," at ");return e.displayName&&v.includes("")&&(v=v.replace("",e.displayName)),typeof e=="function"&&A.set(e,v),v}while(f>=1&&c>=0);break}}}finally{q=!1,X.current=l,Xe(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",Ce=P?F(P):"";return typeof e=="function"&&A.set(e,Ce),Ce}function qe(e,r,t){return pe(e,!1)}function ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function I(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,ze(e));if(typeof e=="string")return F(e);switch(e){case j:return F("Suspense");case R:return F("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case w:return qe(e.render);case y:return I(e.type,r,t);case S:{var i=e,o=i._payload,l=i._init;try{return I(l(o),r,t)}catch{}}}return""}var $=Object.prototype.hasOwnProperty,ge={},he=x.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=I(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Ke(e,r,t,i,o){{var l=Function.call.bind($);for(var n in e)if(l(e,n)){var a=void 0;try{if(typeof e[n]!="function"){var m=Error((i||"React class")+": "+t+" type `"+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[n]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}a=e[n](r,n,i,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(M(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",t,n,typeof a),M(null)),a instanceof Error&&!(a.message in ge)&&(ge[a.message]=!0,M(o),d("Failed %s type: %s",t,a.message),M(null))}}}var He=Array.isArray;function z(e){return He(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function ye(e){if(Ze(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),be(e)}var N=x.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Ee,_e,K;K={};function er(e){if($.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function rr(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function tr(e,r){if(typeof e.ref=="string"&&N.current&&r&&N.current.stateNode!==r){var t=E(N.current.type);K[t]||(d(\'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref\',E(N.current.type),e.ref),K[t]=!0)}}function ir(e,r){{var t=function(){Ee||(Ee=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){_e||(_e=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var nr=function(e,r,t,i,o,l,n){var a={$$typeof:u,type:e,key:r,ref:t,props:n,_owner:l};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,i,o){{var l,n={},a=null,m=null;t!==void 0&&(ye(t),a=""+t),rr(r)&&(ye(r.key),a=""+r.key),er(r)&&(m=r.ref,tr(r,o));for(l in r)$.call(r,l)&&!Qe.hasOwnProperty(l)&&(n[l]=r[l]);if(e&&e.defaultProps){var f=e.defaultProps;for(l in f)n[l]===void 0&&(n[l]=f[l])}if(a||m){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(n,c),m&&ar(n,c)}return nr(e,a,m,o,i,N.current,n)}}var H=x.ReactCurrentOwner,Re=x.ReactDebugCurrentFrame;function O(e){if(e){var r=e._owner,t=I(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var J;J=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function xe(){{if(H.current){var e=E(H.current.type);if(e)return`\n\nCheck the render method of \\``+e+"`."}return""}}function sr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\\\\/]/,""),t=e.lineNumber;return`\n\nCheck your code at `+r+":"+t+"."}return""}}var we={};function lr(e){{var r=xe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`\n\nCheck the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(we[t])return;we[t]=!0;var i="";e&&e._owner&&e._owner!==H.current&&(i=" It was passed a child from "+E(e._owner.type)+"."),O(e),d(\'Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.\',t,i),O(null)}}function je(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var c=or(e,r,t,o,l);if(c==null)return c;if(n){var v=r.children;if(v!==void 0)if(i)if(z(v)){for(var P=0;P{"use strict";ke.exports=Se()});var Rr={};br(Rr,{cid:()=>Ae,default:()=>_r});var V=ee(ie());var p=ee(ie()),Ne=ee(re()),De=({metric:s,metric_name:u,container:g,data:h,parity:b})=>{let[W,L]=(0,Ne.useState)({data:[],bars:[]}),U="",w="",j="",R=0,y=0,S=h.sensitive_feature;for(let C of h.results){let ae=C,D=S.map((x,d)=>`${x}:${C.subgroup.split(",")[d]}`).join(",");local_metric=C[s],(y==0||local_metric=R)&&(R=local_metric,w=D)}let B=R-y;return(0,p.jsxDEV)("div",{style:{width:"100%"},children:[(0,p.jsxDEV)("p",{children:(0,p.jsxDEV)("b",{children:"Results"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:40,columnNumber:9},void 0)},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:39,columnNumber:7},void 0),(0,p.jsxDEV)("p",{children:["The difference between ",(0,p.jsxDEV)("b",{children:(0,p.jsxDEV)("i",{children:w},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:35},void 0)},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:32},void 0)," (group with highest value) and ",(0,p.jsxDEV)("b",{children:(0,p.jsxDEV)("i",{children:j},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:92},void 0)},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:89},void 0)," (group with lowest value) is ",(0,p.jsxDEV)("b",{children:B},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:144},void 0)," for ",(0,p.jsxDEV)("i",{children:u},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:44,columnNumber:162},void 0),". In an ideal situation, the parity should be close to ",b,"."]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:43,columnNumber:7},void 0)]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/interpretation.mdx",lineNumber:38,columnNumber:5},void 0)};var Ae="mock_algo1";function Fe(s){return(0,V.jsxDEV)(De,{metric:"mae",metric_name:"Mean Absolute Error Parity",container:s.container,data:s.getResults(Ae),parity:"0"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/widget_cid_1.mdx",lineNumber:5,columnNumber:1},this)}function Er(s={}){let{wrapper:u}=s.components||{};return u?(0,V.jsxDEV)(u,Object.assign({},s,{children:(0,V.jsxDEV)(Fe,s,void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/widget_cid_1.mdx"},this)}),void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/stock.fairness-metrics-toolbox-for-regression/widgets/widget_cid_1.mdx"},this):Fe(s)}var _r=Er;return yr(Rr);})();\n/**\n * @license React\n * react-jsx-dev-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n;return Component;', frontmatter: {}, }; const inputBlockMdxCompBundleResponse = { - code: 'var Component=(()=>{var lr=Object.create;var F=Object.defineProperty;var ur=Object.getOwnPropertyDescriptor;var fr=Object.getOwnPropertyNames;var cr=Object.getPrototypeOf,dr=Object.prototype.hasOwnProperty;var G=(s,a)=>()=>(a||s((a={exports:{}}).exports,a),a.exports),mr=(s,a)=>{for(var m in a)F(s,m,{get:a[m],enumerable:!0})},_e=(s,a,m,E)=>{if(a&&typeof a=="object"||typeof a=="function")for(let g of fr(a))!dr.call(s,g)&&g!==m&&F(s,g,{get:()=>a[g],enumerable:!(E=ur(a,g))||E.enumerable});return s};var vr=(s,a,m)=>(m=s!=null?lr(cr(s)):{},_e(a||!s||!s.__esModule?F(m,"default",{value:s,enumerable:!0}):m,s)),pr=s=>_e(F({},"__esModule",{value:!0}),s);var Ne=G((Er,Re)=>{Re.exports=React});var xe=G(X=>{"use strict";(function(){"use strict";var s=Ne(),a=Symbol.for("react.element"),m=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),K=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),J=Symbol.iterator,Oe="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var r=J&&e[J]||e[Oe];return typeof r=="function"?r:null}var R=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),t=1;t=1&&d>=0&&n[c]!==p[d];)d--;for(;c>=1&&d>=0;c--,d--)if(n[c]!==p[d]){if(c!==1||d!==1)do if(c--,d--,d<0||n[c]!==p[d]){var h=`\n`+n[c].replace(" at new "," at ");return e.displayName&&h.includes("")&&(h=h.replace("",e.displayName)),typeof e=="function"&&P.set(e,h),h}while(c>=1&&d>=0);break}}}finally{W=!1,V.current=u,We(),Error.prepareStackTrace=l}var x=e?e.displayName||e.name:"",Ee=x?O(x):"";return typeof e=="function"&&P.set(e,Ee),Ee}function Le(e,r,i){return le(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function S(e,r,i){if(e==null)return"";if(typeof e=="function")return le(e,Be(e));if(typeof e=="string")return O(e);switch(e){case A:return O("Suspense");case I:return O("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case C:return Le(e.render);case w:return S(e.type,r,i);case M:{var t=e,l=t._payload,u=t._init;try{return S(u(l),r,i)}catch{}}}return""}var k=Object.prototype.hasOwnProperty,ue={},fe=R.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,i=S(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(i)}else fe.setExtraStackFrame(null)}function Ue(e,r,i,t,l){{var u=Function.call.bind(k);for(var o in e)if(u(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var p=Error((t||"React class")+": "+i+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}n=e[o](r,o,t,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){n=c}n&&!(n instanceof Error)&&(D(l),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",t||"React class",i,o,typeof n),D(null)),n instanceof Error&&!(n.message in ue)&&(ue[n.message]=!0,D(l),v("Failed %s type: %s",i,n.message),D(null))}}}var ze=Array.isArray;function $(e){return ze(e)}function Ge(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Xe(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function de(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ge(e)),ce(e)}var j=R.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},me,ve,L;L={};function He(e){if(k.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(k.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Je(e,r){if(typeof e.ref=="string"&&j.current&&r&&j.current.stateNode!==r){var i=b(j.current.type);L[i]||(v(\'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref\',b(j.current.type),e.ref),L[i]=!0)}}function Ze(e,r){{var i=function(){me||(me=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Qe(e,r){{var i=function(){ve||(ve=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var er=function(e,r,i,t,l,u,o){var n={$$typeof:a,type:e,key:r,ref:i,props:o,_owner:u};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function rr(e,r,i,t,l){{var u,o={},n=null,p=null;i!==void 0&&(de(i),n=""+i),Ke(r)&&(de(r.key),n=""+r.key),He(r)&&(p=r.ref,Je(r,l));for(u in r)k.call(r,u)&&!qe.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var c=e.defaultProps;for(u in c)o[u]===void 0&&(o[u]=c[u])}if(n||p){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&Ze(o,d),p&&Qe(o,d)}return er(e,n,p,l,t,j.current,o)}}var B=R.ReactCurrentOwner,pe=R.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,i=S(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(i)}else pe.setExtraStackFrame(null)}var U;U=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function he(){{if(B.current){var e=b(B.current.type);if(e)return`\n\nCheck the render method of \\``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\\\\/]/,""),i=e.lineNumber;return`\n\nCheck your code at `+r+":"+i+"."}return""}}var be={};function tr(e){{var r=he();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`\n\nCheck the top-level render call using <`+i+">.")}return r}}function ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=tr(r);if(be[i])return;be[i]=!0;var t="";e&&e._owner&&e._owner!==B.current&&(t=" It was passed a child from "+b(e._owner.type)+"."),N(e),v(\'Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.\',i,t),N(null)}}function ge(e,r){{if(typeof e!="object")return;if($(e))for(var i=0;i",n=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,n)}var d=rr(e,r,i,l,u);if(d==null)return d;if(o){var h=r.children;if(h!==void 0)if(t)if($(h)){for(var x=0;x{"use strict";Te.exports=xe()});var yr={};mr(yr,{default:()=>br});var f=vr(je());function Ce(s){let a=Object.assign({h1:"h1",p:"p",a:"a",h2:"h2",strong:"strong",em:"em"},s.components);return(0,f.jsxDEV)(f.Fragment,{children:[(0,f.jsxDEV)(a.h1,{children:"My MDX Input Block"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:1,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:["Developers should modify this file to build their own Input Block. For more information on AI Verify Input Blocks, please refer to the ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-portal/ai-verify-plugin/-/blob/main/docs/InputBlock.md",children:"AI Verify Input Block Page"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:3,columnNumber:136},this),"."]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:3,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:"Below are some examples of how to create input blocks."},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:5,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.h2,{children:"Example HTML Form"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:7,columnNumber:1},this),`\n`,(0,f.jsxDEV)("div",{style:{display:"flex",flexDirection:"column",marginBottom:"10px"},children:[(0,f.jsxDEV)("label",{htmlFor:"fname",children:"First name:"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:10,columnNumber:3},this),(0,f.jsxDEV)("input",{type:"text",id:"fname",value:s.data.fname,onChange:m=>s.onChangeData("fname",m.target.value)},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:11,columnNumber:3},this),(0,f.jsxDEV)("label",{htmlFor:"lname",children:"Last name:"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:12,columnNumber:3},this),(0,f.jsxDEV)("input",{type:"text",id:"lname",value:s.data.lname,onChange:m=>s.onChangeData("lname",m.target.value)},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:13,columnNumber:3},this),(0,f.jsxDEV)("label",{htmlFor:"bio",children:"Bio:"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:14,columnNumber:3},this),(0,f.jsxDEV)("textarea",{rows:"4",style:{width:"100%",resize:"none"},value:s.data.bio,onChange:m=>s.onChangeData("bio",m.target.value)},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:15,columnNumber:3},this)]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:9,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.h2,{children:"Example use of Decision Tree Component"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:18,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:["The ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-portal/ai-verify-shared-library/-/tree/main/packages/graph",children:"AI Verify Shared Library DecisionTree"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:20,columnNumber:5},this)," allows user to build their own decision tree."]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:20,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:["You can find an example of Decision Tree Input Block from the ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-stock-plugins/aiverify.stock.fairness-metrics-toolbox-widgets",children:"Widgets for Fairness Metrics Toolbox"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:22,columnNumber:63},this),` plugin.\nAn example use of the `,(0,f.jsxDEV)(a.strong,{children:"DecisionTree"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:23,columnNumber:23},this)," component can be found in the implementation for the ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-stock-plugins/aiverify.stock.fairness-metrics-toolbox-widgets/-/blob/main/inputs/fairness-tree.mdx",children:"AI Verify Fairness Tree"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:23,columnNumber:93},this)," is found under the ",(0,f.jsxDEV)(a.em,{children:"inputs"},void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:23,columnNumber:291},this)," folder."]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:22,columnNumber:1},this)]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:1,columnNumber:1},this)}function hr(s={}){let{wrapper:a}=s.components||{};return a?(0,f.jsxDEV)(a,Object.assign({},s,{children:(0,f.jsxDEV)(Ce,s,void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx"},this)}),void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx"},this):Ce(s)}var br=hr;return pr(yr);})();\n/**\n * @license React\n * react-jsx-dev-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n;return Component;', + code: 'var Component=(()=>{var lr=Object.create;var F=Object.defineProperty;var ur=Object.getOwnPropertyDescriptor;var fr=Object.getOwnPropertyNames;var cr=Object.getPrototypeOf,dr=Object.prototype.hasOwnProperty;var G=(s,a)=>()=>(a||s((a={exports:{}}).exports,a),a.exports),mr=(s,a)=>{for(var m in a)F(s,m,{get:a[m],enumerable:!0})},_e=(s,a,m,E)=>{if(a&&typeof a=="object"||typeof a=="function")for(let g of fr(a))!dr.call(s,g)&&g!==m&&F(s,g,{get:()=>a[g],enumerable:!(E=ur(a,g))||E.enumerable});return s};var vr=(s,a,m)=>(m=s!=null?lr(cr(s)):{},_e(a||!s||!s.__esModule?F(m,"default",{value:s,enumerable:!0}):m,s)),pr=s=>_e(F({},"__esModule",{value:!0}),s);var Ne=G((Er,Re)=>{Re.exports=React});var xe=G(X=>{"use strict";(function(){"use strict";var s=Ne(),a=Symbol.for("react.element"),m=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),K=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),J=Symbol.iterator,Oe="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var r=J&&e[J]||e[Oe];return typeof r=="function"?r:null}var R=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),t=1;t=1&&d>=0&&n[c]!==p[d];)d--;for(;c>=1&&d>=0;c--,d--)if(n[c]!==p[d]){if(c!==1||d!==1)do if(c--,d--,d<0||n[c]!==p[d]){var h=`\n`+n[c].replace(" at new "," at ");return e.displayName&&h.includes("")&&(h=h.replace("",e.displayName)),typeof e=="function"&&P.set(e,h),h}while(c>=1&&d>=0);break}}}finally{W=!1,V.current=u,We(),Error.prepareStackTrace=l}var x=e?e.displayName||e.name:"",Ee=x?O(x):"";return typeof e=="function"&&P.set(e,Ee),Ee}function Le(e,r,i){return le(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function S(e,r,i){if(e==null)return"";if(typeof e=="function")return le(e,Be(e));if(typeof e=="string")return O(e);switch(e){case A:return O("Suspense");case I:return O("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case C:return Le(e.render);case w:return S(e.type,r,i);case M:{var t=e,l=t._payload,u=t._init;try{return S(u(l),r,i)}catch{}}}return""}var k=Object.prototype.hasOwnProperty,ue={},fe=R.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,i=S(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(i)}else fe.setExtraStackFrame(null)}function Ue(e,r,i,t,l){{var u=Function.call.bind(k);for(var o in e)if(u(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var p=Error((t||"React class")+": "+i+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}n=e[o](r,o,t,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){n=c}n&&!(n instanceof Error)&&(D(l),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",t||"React class",i,o,typeof n),D(null)),n instanceof Error&&!(n.message in ue)&&(ue[n.message]=!0,D(l),v("Failed %s type: %s",i,n.message),D(null))}}}var ze=Array.isArray;function $(e){return ze(e)}function Ge(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Xe(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function de(e){if(Xe(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ge(e)),ce(e)}var j=R.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},me,ve,L;L={};function He(e){if(k.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(k.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Je(e,r){if(typeof e.ref=="string"&&j.current&&r&&j.current.stateNode!==r){var i=b(j.current.type);L[i]||(v(\'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref\',b(j.current.type),e.ref),L[i]=!0)}}function Ze(e,r){{var i=function(){me||(me=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Qe(e,r){{var i=function(){ve||(ve=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var er=function(e,r,i,t,l,u,o){var n={$$typeof:a,type:e,key:r,ref:i,props:o,_owner:u};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function rr(e,r,i,t,l){{var u,o={},n=null,p=null;i!==void 0&&(de(i),n=""+i),Ke(r)&&(de(r.key),n=""+r.key),He(r)&&(p=r.ref,Je(r,l));for(u in r)k.call(r,u)&&!qe.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var c=e.defaultProps;for(u in c)o[u]===void 0&&(o[u]=c[u])}if(n||p){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&Ze(o,d),p&&Qe(o,d)}return er(e,n,p,l,t,j.current,o)}}var B=R.ReactCurrentOwner,pe=R.ReactDebugCurrentFrame;function N(e){if(e){var r=e._owner,i=S(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(i)}else pe.setExtraStackFrame(null)}var U;U=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===a}function he(){{if(B.current){var e=b(B.current.type);if(e)return`\n\nCheck the render method of \\``+e+"`."}return""}}function ir(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\\\\/]/,""),i=e.lineNumber;return`\n\nCheck your code at `+r+":"+i+"."}return""}}var be={};function tr(e){{var r=he();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`\n\nCheck the top-level render call using <`+i+">.")}return r}}function ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=tr(r);if(be[i])return;be[i]=!0;var t="";e&&e._owner&&e._owner!==B.current&&(t=" It was passed a child from "+b(e._owner.type)+"."),N(e),v(\'Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.\',i,t),N(null)}}function ge(e,r){{if(typeof e!="object")return;if($(e))for(var i=0;i",n=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,n)}var d=rr(e,r,i,l,u);if(d==null)return d;if(o){var h=r.children;if(h!==void 0)if(t)if($(h)){for(var x=0;x{"use strict";Te.exports=xe()});var yr={};mr(yr,{default:()=>br});var f=vr(je());function Ce(s){let a=Object.assign({h1:"h1",p:"p",a:"a",h2:"h2",strong:"strong",em:"em"},s.components);return(0,f.jsxDEV)(f.Fragment,{children:[(0,f.jsxDEV)(a.h1,{children:"My MDX Input Block"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:1,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:["Developers should modify this file to build their own Input Block. For more information on AI Verify Input Blocks, please refer to the ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-portal/ai-verify-plugin/-/blob/main/docs/InputBlock.md",children:"AI Verify Input Block Page"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:3,columnNumber:136},this),"."]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:3,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:"Below are some examples of how to create input blocks."},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:5,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.h2,{children:"Example HTML Form"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:7,columnNumber:1},this),`\n`,(0,f.jsxDEV)("div",{style:{display:"flex",flexDirection:"column",marginBottom:"10px"},children:[(0,f.jsxDEV)("label",{htmlFor:"fname",children:"First name:"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:10,columnNumber:3},this),(0,f.jsxDEV)("input",{type:"text",id:"fname",value:s.data.fname,onChange:m=>s.onChangeData("fname",m.target.value)},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:11,columnNumber:3},this),(0,f.jsxDEV)("label",{htmlFor:"lname",children:"Last name:"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:12,columnNumber:3},this),(0,f.jsxDEV)("input",{type:"text",id:"lname",value:s.data.lname,onChange:m=>s.onChangeData("lname",m.target.value)},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:13,columnNumber:3},this),(0,f.jsxDEV)("label",{htmlFor:"bio",children:"Bio:"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:14,columnNumber:3},this),(0,f.jsxDEV)("textarea",{rows:"4",style:{width:"100%",resize:"none"},value:s.data.bio,onChange:m=>s.onChangeData("bio",m.target.value)},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:15,columnNumber:3},this)]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:9,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.h2,{children:"Example use of Decision Tree Component"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:18,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:["The ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-portal/ai-verify-shared-library/-/tree/main/packages/graph",children:"AI Verify Shared Library DecisionTree"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:20,columnNumber:5},this)," allows user to build their own decision tree."]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:20,columnNumber:1},this),`\n`,(0,f.jsxDEV)(a.p,{children:["You can find an example of Decision Tree Input Block from the ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-stock-plugins/aiverify.stock.fairness-metrics-toolbox-widgets",children:"Widgets for Fairness Metrics Toolbox"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:22,columnNumber:63},this),` plugin.\nAn example use of the `,(0,f.jsxDEV)(a.strong,{children:"DecisionTree"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:23,columnNumber:23},this)," component can be found in the implementation for the ",(0,f.jsxDEV)(a.a,{href:"https://gitlab.com/imda_dsl/t2po/ai-verify/ai-verify-stock-plugins/aiverify.stock.fairness-metrics-toolbox-widgets/-/blob/main/inputs/fairness-tree.mdx",children:"AI Verify Fairness Tree"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:23,columnNumber:93},this)," is found under the ",(0,f.jsxDEV)(a.em,{children:"inputs"},void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:23,columnNumber:291},this)," folder."]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:22,columnNumber:1},this)]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx",lineNumber:1,columnNumber:1},this)}function hr(s={}){let{wrapper:a}=s.components||{};return a?(0,f.jsxDEV)(a,Object.assign({},s,{children:(0,f.jsxDEV)(Ce,s,void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx"},this)}),void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.mdx"},this):Ce(s)}var br=hr;return pr(yr);})();\n/**\n * @license React\n * react-jsx-dev-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n;return Component;', frontmatter: {}, }; const inputBlockMdxSummaryBundleResponse = { - code: 'var Component=(()=>{var fr=Object.create;var A=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var cr=Object.getOwnPropertyNames;var dr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty;var K=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),pr=(o,f)=>{for(var p in f)A(o,p,{get:f[p],enumerable:!0})},Re=(o,f,p,m)=>{if(f&&typeof f=="object"||typeof f=="function")for(let b of cr(f))!vr.call(o,b)&&b!==p&&A(o,b,{get:()=>f[b],enumerable:!(m=lr(f,b))||m.enumerable});return o};var gr=(o,f,p)=>(p=o!=null?fr(dr(o)):{},Re(f||!o||!o.__esModule?A(p,"default",{value:o,enumerable:!0}):p,o)),mr=o=>Re(A({},"__esModule",{value:!0}),o);var Te=K((Tr,_e)=>{_e.exports=React});var Ce=K(q=>{"use strict";(function(){"use strict";var o=Te(),f=Symbol.for("react.element"),p=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),H=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),je=Symbol.for("react.offscreen"),J=Symbol.iterator,xe="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=J&&e[J]||e[xe];return typeof r=="function"?r:null}var R=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&c>=0&&a[l]!==v[c];)c--;for(;l>=1&&c>=0;l--,c--)if(a[l]!==v[c]){if(l!==1||c!==1)do if(l--,c--,c<0||a[l]!==v[c]){var g=`\n`+a[l].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),typeof e=="function"&&x.set(e,g),g}while(l>=1&&c>=0);break}}}finally{M=!1,$.current=s,Ve(),Error.prepareStackTrace=u}var T=e?e.displayName||e.name:"",Ee=T?j(T):"";return typeof e=="function"&&x.set(e,Ee),Ee}function Ue(e,r,t){return se(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function D(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Be(e));if(typeof e=="string")return j(e);switch(e){case I:return j("Suspense");case N:return j("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case P:return Ue(e.render);case S:return D(e.type,r,t);case Y:{var n=e,u=n._payload,s=n._init;try{return D(s(u),r,t)}catch{}}}return""}var k=Object.prototype.hasOwnProperty,fe={},le=R.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=D(e.type,e._source,r?r.type:null);le.setExtraStackFrame(t)}else le.setExtraStackFrame(null)}function Ge(e,r,t,n,u){{var s=Function.call.bind(k);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(F(u),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),F(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,F(u),d("Failed %s type: %s",t,a.message),F(null))}}}var Ke=Array.isArray;function V(e){return Ke(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ze(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function de(e){if(ze(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),ce(e)}var w=R.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},ve,pe,L;L={};function He(e){if(k.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Je(e){if(k.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){if(typeof e.ref=="string"&&w.current&&r&&w.current.stateNode!==r){var t=h(w.current.type);L[t]||(d(\'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref\',h(w.current.type),e.ref),L[t]=!0)}}function Qe(e,r){{var t=function(){ve||(ve=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function er(e,r){{var t=function(){pe||(pe=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var rr=function(e,r,t,n,u,s,i){var a={$$typeof:f,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function tr(e,r,t,n,u){{var s,i={},a=null,v=null;t!==void 0&&(de(t),a=""+t),Je(r)&&(de(r.key),a=""+r.key),He(r)&&(v=r.ref,Ze(r,u));for(s in r)k.call(r,s)&&!Xe.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||v){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,c),v&&er(i,c)}return rr(e,a,v,u,n,w.current,i)}}var U=R.ReactCurrentOwner,ge=R.ReactDebugCurrentFrame;function _(e){if(e){var r=e._owner,t=D(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}var B;B=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function me(){{if(U.current){var e=h(U.current.type);if(e)return`\n\nCheck the render method of \\``+e+"`."}return""}}function nr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\\\\/]/,""),t=e.lineNumber;return`\n\nCheck your code at `+r+":"+t+"."}return""}}var he={};function ar(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`\n\nCheck the top-level render call using <`+t+">.")}return r}}function ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if(he[t])return;he[t]=!0;var n="";e&&e._owner&&e._owner!==U.current&&(n=" It was passed a child from "+h(e._owner.type)+"."),_(e),d(\'Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.\',t,n),_(null)}}function be(e,r){{if(typeof e!="object")return;if(V(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var c=tr(e,r,t,u,s);if(c==null)return c;if(i){var g=r.children;if(g!==void 0)if(n)if(V(g)){for(var T=0;T{"use strict";Oe.exports=Ce()});var Rr={};pr(Rr,{default:()=>Er,progress:()=>Se,summary:()=>hr,validate:()=>yr});var C=gr(we()),hr=o=>o?JSON.stringify(o||{}):"No data",Se=o=>{if(!o)return 0;let f=3,p=Object.values(o).filter(m=>typeof m=="string"||Array.isArray(m)?m.length>0:!0).length;return Math.round(p/f*100)},yr=o=>Se(o)==100;function Pe(o){return(0,C.jsxDEV)(C.Fragment,{children:[`\n`,`\n`,`\n`,`\n`]},void 0,!0,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.summary.mdx",lineNumber:1,columnNumber:1},this)}function br(o={}){let{wrapper:f}=o.components||{};return f?(0,C.jsxDEV)(f,Object.assign({},o,{children:(0,C.jsxDEV)(Pe,o,void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.summary.mdx"},this)}),void 0,!1,{fileName:"/home/amdlahir/imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.summary.mdx"},this):Pe(o)}var Er=br;return mr(Rr);})();\n/**\n * @license React\n * react-jsx-dev-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n;return Component;', + code: 'var Component=(()=>{var fr=Object.create;var A=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var cr=Object.getOwnPropertyNames;var dr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty;var K=(o,f)=>()=>(f||o((f={exports:{}}).exports,f),f.exports),pr=(o,f)=>{for(var p in f)A(o,p,{get:f[p],enumerable:!0})},Re=(o,f,p,m)=>{if(f&&typeof f=="object"||typeof f=="function")for(let b of cr(f))!vr.call(o,b)&&b!==p&&A(o,b,{get:()=>f[b],enumerable:!(m=lr(f,b))||m.enumerable});return o};var gr=(o,f,p)=>(p=o!=null?fr(dr(o)):{},Re(f||!o||!o.__esModule?A(p,"default",{value:o,enumerable:!0}):p,o)),mr=o=>Re(A({},"__esModule",{value:!0}),o);var Te=K((Tr,_e)=>{_e.exports=React});var Ce=K(q=>{"use strict";(function(){"use strict";var o=Te(),f=Symbol.for("react.element"),p=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),H=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),je=Symbol.for("react.offscreen"),J=Symbol.iterator,xe="@@iterator";function De(e){if(e===null||typeof e!="object")return null;var r=J&&e[J]||e[xe];return typeof r=="function"?r:null}var R=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&c>=0&&a[l]!==v[c];)c--;for(;l>=1&&c>=0;l--,c--)if(a[l]!==v[c]){if(l!==1||c!==1)do if(l--,c--,c<0||a[l]!==v[c]){var g=`\n`+a[l].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),typeof e=="function"&&x.set(e,g),g}while(l>=1&&c>=0);break}}}finally{M=!1,$.current=s,Ve(),Error.prepareStackTrace=u}var T=e?e.displayName||e.name:"",Ee=T?j(T):"";return typeof e=="function"&&x.set(e,Ee),Ee}function Ue(e,r,t){return se(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function D(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Be(e));if(typeof e=="string")return j(e);switch(e){case I:return j("Suspense");case N:return j("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case P:return Ue(e.render);case S:return D(e.type,r,t);case Y:{var n=e,u=n._payload,s=n._init;try{return D(s(u),r,t)}catch{}}}return""}var k=Object.prototype.hasOwnProperty,fe={},le=R.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=D(e.type,e._source,r?r.type:null);le.setExtraStackFrame(t)}else le.setExtraStackFrame(null)}function Ge(e,r,t,n,u){{var s=Function.call.bind(k);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(F(u),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),F(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,F(u),d("Failed %s type: %s",t,a.message),F(null))}}}var Ke=Array.isArray;function V(e){return Ke(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function ze(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function de(e){if(ze(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),ce(e)}var w=R.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},ve,pe,L;L={};function He(e){if(k.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Je(e){if(k.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ze(e,r){if(typeof e.ref=="string"&&w.current&&r&&w.current.stateNode!==r){var t=h(w.current.type);L[t]||(d(\'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref\',h(w.current.type),e.ref),L[t]=!0)}}function Qe(e,r){{var t=function(){ve||(ve=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function er(e,r){{var t=function(){pe||(pe=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var rr=function(e,r,t,n,u,s,i){var a={$$typeof:f,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function tr(e,r,t,n,u){{var s,i={},a=null,v=null;t!==void 0&&(de(t),a=""+t),Je(r)&&(de(r.key),a=""+r.key),He(r)&&(v=r.ref,Ze(r,u));for(s in r)k.call(r,s)&&!Xe.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||v){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,c),v&&er(i,c)}return rr(e,a,v,u,n,w.current,i)}}var U=R.ReactCurrentOwner,ge=R.ReactDebugCurrentFrame;function _(e){if(e){var r=e._owner,t=D(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}var B;B=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function me(){{if(U.current){var e=h(U.current.type);if(e)return`\n\nCheck the render method of \\``+e+"`."}return""}}function nr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\\\\/]/,""),t=e.lineNumber;return`\n\nCheck your code at `+r+":"+t+"."}return""}}var he={};function ar(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`\n\nCheck the top-level render call using <`+t+">.")}return r}}function ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if(he[t])return;he[t]=!0;var n="";e&&e._owner&&e._owner!==U.current&&(n=" It was passed a child from "+h(e._owner.type)+"."),_(e),d(\'Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.\',t,n),_(null)}}function be(e,r){{if(typeof e!="object")return;if(V(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var c=tr(e,r,t,u,s);if(c==null)return c;if(i){var g=r.children;if(g!==void 0)if(n)if(V(g)){for(var T=0;T{"use strict";Oe.exports=Ce()});var Rr={};pr(Rr,{default:()=>Er,progress:()=>Se,summary:()=>hr,validate:()=>yr});var C=gr(we()),hr=o=>o?JSON.stringify(o||{}):"No data",Se=o=>{if(!o)return 0;let f=3,p=Object.values(o).filter(m=>typeof m=="string"||Array.isArray(m)?m.length>0:!0).length;return Math.round(p/f*100)},yr=o=>Se(o)==100;function Pe(o){return(0,C.jsxDEV)(C.Fragment,{children:[`\n`,`\n`,`\n`,`\n`]},void 0,!0,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.summary.mdx",lineNumber:1,columnNumber:1},this)}function br(o={}){let{wrapper:f}=o.components||{};return f?(0,C.jsxDEV)(f,Object.assign({},o,{children:(0,C.jsxDEV)(Pe,o,void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.summary.mdx"},this)}),void 0,!1,{fileName:"../imda/projects/aiverify/ai-verify-portal/plugins/aiverify.tests/inputs/testib.summary.mdx"},this):Pe(o)}var Er=br;return mr(Rr);})();\n/**\n * @license React\n * react-jsx-dev-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n;return Component;', frontmatter: {}, }; diff --git a/ai-verify-portal/__tests__/modules/modelList.test.tsx b/ai-verify-portal/__tests__/modules/modelList.test.tsx index 0e7678f05..50c746f1a 100644 --- a/ai-verify-portal/__tests__/modules/modelList.test.tsx +++ b/ai-verify-portal/__tests__/modules/modelList.test.tsx @@ -39,7 +39,7 @@ const mocks = [ name: 'tensorflow_tabular_compas_sequential.sav', filename: 'tensorflow_tabular_compas_sequential.sav', filePath: - '/home/user/aiverify/uploads/model/tensorflow_tabular_compas_sequential.sav', + '../aiverify/uploads/model/tensorflow_tabular_compas_sequential.sav', ctime: '2023-03-30T02:28:33.890Z', size: null, status: 'Valid', @@ -56,7 +56,7 @@ const mocks = [ name: 'joblib_scikit_ada_compas.sav', filename: 'joblib_scikit_ada_compas.sav', filePath: - '/home/user/aiverify/uploads/model/joblib_scikit_ada_compas.sav', + '../aiverify/uploads/model/joblib_scikit_ada_compas.sav', ctime: '2023-04-03T04:30:02.414Z', size: '561.89 KB', status: 'Valid', diff --git a/ai-verify-portal/__tests__/modules/newDataset.test.tsx b/ai-verify-portal/__tests__/modules/newDataset.test.tsx index c1b7ec403..a7fd3b5fc 100644 --- a/ai-verify-portal/__tests__/modules/newDataset.test.tsx +++ b/ai-verify-portal/__tests__/modules/newDataset.test.tsx @@ -94,7 +94,7 @@ const uploadResponse = [ filename: 'file1.png', name: 'file1.png', type: 'File', - filePath: '/home/uploads/file1.png', + filePath: '../uploads/file1.png', ctime: '2023-05-24T05:56:20.830Z', description: '', status: 'Pending', diff --git a/ai-verify-portal/jest.config.js b/ai-verify-portal/jest.config.js index 0f9aefeab..dc3a907e9 100644 --- a/ai-verify-portal/jest.config.js +++ b/ai-verify-portal/jest.config.js @@ -36,6 +36,10 @@ const customJestConfig = { '/test-report.html', '/test-results.json', ], + transformIgnorePatterns: [ + "/node_modules/(?!uuid)", + "/node_modules/(?!(@rjsf/core|nanoid)).+\\.js$" + ], }; // createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async