Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
assets/huggingface-Df0G9hpA.svg
DELETED
assets/{index-BOB06Xi8.js → index-BhQgFMET.js}
RENAMED
@@ -46,4 +46,4 @@ ${e.map(t=>Fh(fi(t),2)).join(`,
|
|
46 |
`);let i=!1,u=[],s=!1,a=[];for(let m=0;m<l.length;m++){const p=l[m];if(p.startsWith("```")){i?(o.push(g.jsx("pre",{children:u.join(`
|
47 |
`)},`code-${m.toLocaleString("en-US")}`)),i=!1,u=[]):i=!0;continue}if(i){u.push(p);continue}if(p.includes("**")){const y=p.split("**");o.push(g.jsx("p",{children:y.map((v,w)=>w%2?g.jsx("strong",{children:v},w):v)},m));continue}if(p.includes("*")){const y=p.split("*");o.push(g.jsx("p",{children:y.map((v,w)=>w%2?g.jsx("em",{children:v},w):v)},m));continue}if(p.startsWith("#")){const y=p.split(" ")[0].length,v=p.slice(y+1),w=`h${y.toLocaleString("en-US")}`;o.push(g.jsx(w,{children:v},m));continue}const h=/!\[(.*?)\]\((.*?)\)/.exec(p);if(h){const[,y,v]=h;o.push(g.jsx("img",{src:v,alt:y},m));continue}if(p.includes("[")&&p.includes("]")&&p.includes("(")&&p.includes(")")){const y=p.replace(/\[(.*?)\]\((.*?)\)/g,(v,w,E)=>`<a href="${E}" target="_blank" rel="noreferrer">${w}</a>`);o.push(g.jsx("p",{dangerouslySetInnerHTML:{__html:y}},m));continue}if(p.startsWith("-")||p.startsWith("*")||p.startsWith("+")){const y=p.slice(1).trim();a.push(g.jsx("li",{children:y},`list-item-${m.toLocaleString("en-US")}`)),s=!0;continue}s&&a.length>0&&(o.push(g.jsx("ul",{children:a},`list-${m.toLocaleString("en-US")}`)),a=[],s=!1),o.push(g.jsx("p",{children:p},m))}return i&&u.length>0&&o.push(g.jsx("pre",{children:u.join(`
|
48 |
`)},`code-${l.length.toLocaleString("en-US")}`)),s&&a.length>0&&o.push(g.jsx("ul",{children:a},`list-${l.length.toLocaleString("en-US")}`)),g.jsx("div",{className:t,children:o})}return n(e)}function Qh({url:e,setError:t}){const[n,r]=C.useState(0),[o,l]=C.useState(),i=C.useContext(qe);return C.useEffect(()=>{if(!i)return;const{fetch:u}=i;async function s(){try{const a=await u(e),m=await a.text();if(a.status==401){t(new Error(m)),l(void 0);return}t(void 0),l(m)}catch(a){t(a),l(void 0)}finally{r(2)}}r(a=>a!==0?a:(s().catch(()=>{}),1))},[e,t,i]),g.jsxs(Ho,{content:{fileSize:o==null?void 0:o.length},children:[g.jsx(Vh,{className:"markdown",text:o??""}),n===1&&g.jsx(vr,{className:"center"})]})}function Yh({url:e,resolveUrl:t,setProgress:n,setError:r}){const[o,l]=C.useState(0),[i,u]=C.useState(),s=C.useContext(qe);C.useEffect(()=>{if(!s)return;const{headers:h}=s;async function y(){try{n(.33);const v=await Zc({url:t,headers:h}),w={url:t,byteLength:v.byteLength,headers:h};n(.66);const E=await Gc(v);let c=ef(w,E);c=Ap(c);const f=v.byteLength;u({dataframe:c,fileSize:f}),r(void 0)}catch(v){r(v),u(void 0)}finally{l(2),n(1)}}o===0&&(l(1),y().catch(()=>{}))},[o,t,r,n,s]);const a=C.useCallback((h,y)=>{Wo(`?url=${e}&row=${y.toString()}&col=${h.toString()}`)},[e]),m=C.useCallback((h,y,v)=>{if(h.button===1){h.preventDefault();const w=new URL(window.location.href);w.search=`?url=${e}&row=${v.toString()}&col=${y.toString()}`,window.open(w,"_blank")}},[e]),p=g.jsx(g.Fragment,{children:(i==null?void 0:i.dataframe)&&g.jsxs("span",{children:[i.dataframe.numRows.toLocaleString("en-US")," rows"]})});return g.jsxs(Ho,{content:i,headers:p,children:[(i==null?void 0:i.dataframe)&&g.jsx(Wp,{cacheKey:t,data:i.dataframe,onDoubleClickCell:a,onMouseDownCell:m,onError:r}),o&&g.jsx(vr,{className:"center"})]})}function qh({url:e,setError:t}){const[n,r]=C.useState(0),[o,l]=C.useState(),i=C.useRef(null),u=C.useContext(qe);C.useEffect(()=>{if(!u)return;const{fetch:a}=u;async function m(){try{const p=await a(e),h=await p.text();if(p.status==401){t(new Error(h)),l(void 0);return}t(void 0),l(h)}catch(p){t(p),l(void 0)}finally{r(2)}}r(p=>p!==0?p:(m().catch(()=>{}),1))},[e,t,u]);const s=g.jsx(g.Fragment,{children:g.jsxs("span",{children:[o?Kh(o):0," lines"]})});return g.jsxs(Ho,{content:{fileSize:o==null?void 0:o.length},headers:s,children:[g.jsx("code",{className:"text",ref:i,children:o}),n&&g.jsx(vr,{className:"center"})]})}function Kh(e){let t=0;for(const n of e)n===`
|
49 |
-
`&&t++;return t.toLocaleString("en-US")}function Xh({url:e,resolveUrl:t,setError:n,setProgress:r}){const o=e.replace(/\?.*$/,"");return o.endsWith(".md")?g.jsx(Qh,{url:t,setError:n}):o.endsWith(".parquet")?g.jsx(Yh,{url:e,resolveUrl:t,setError:n,setProgress:r}):Dh.some(l=>o.endsWith(l))?g.jsx(Bh,{url:t,setError:n}):g.jsx(qh,{url:t,setError:n,setProgress:r})}function Gh({url:e}){const[t,n]=C.useState(),[r,o]=C.useState(),l=e.kind==="file"?e.resolveUrl:e.raw,i=l.split("/");if(i.length<1)throw new Error("Invalid URL path");const u=i.at(-1);return g.jsxs(Bo,{progress:t,error:r,title:u,children:[g.jsx(su,{url:e}),g.jsx(Xh,{url:e.raw,resolveUrl:l,setProgress:n,setError:o})]})}function Ps({url:e}){const[t,n]=C.useState(),[r,o]=C.useState(),l=C.useRef(null),i=C.useContext(qe);C.useEffect(()=>{if(!i)return;const{fetch:a}=i;async function m(){const p=_h({repo:`datasets/${e.namespace}/${e.repo}`,revision:e.branch,path:e.path.replace(/^\//,""),fetch:a}),h=[];for await(const y of p)h.push(y);n(h),o(void 0)}m().catch(p=>{n([]),o(p)})},[e,i]);const u=C.useCallback(a=>{const m=a.type==="directory"?"tree":"blob";return`${Je}/${e.namespace}/${e.repo}/${m}/${e.branch}/${a.path}`},[e]),s=C.useCallback(a=>a.path.split("/").at(-1),[]);return g.jsxs(Bo,{error:r,title:e.path,children:[g.jsx(su,{url:e}),t&&t.length>0&&g.jsx("ul",{className:"file-list",ref:l,children:t.map((a,m)=>g.jsx("li",{children:g.jsxs(uu,{url:u(a),children:[g.jsx("span",{className:fr("file-name","file",a.type==="directory"&&"folder"),children:s(a)}),a.type==="file"&&g.jsx(g.Fragment,{children:g.jsx("span",{className:"file-size",title:a.size.toLocaleString("en-US")+" bytes",children:of(a.size)})})]})},m))}),(t==null?void 0:t.length)===0&&g.jsx("div",{className:"center",children:"No files"}),t===void 0&&g.jsx(vr,{className:"center"})]})}function Zh(){const[e,t]=C.useState(),[n,r]=C.useState([]),o=C.useContext(qe);C.useEffect(()=>{if(!o)return;const i=o.fetch;async function u(){const s=[];for await(const a of Sh({search:{query:e},limit:10,fetch:i}))s.push(a);r(s)}u().catch(s=>{r([]),console.error(s)})},[e,o]);function l(i){t(i.target.value)}return g.jsxs(g.Fragment,{children:[g.jsx("input",{type:"search",onChange:l}),g.jsx("ul",{className:"ref-list",children:n.map(i=>g.jsx("li",{style:{fontSize:"0.9rem"},children:g.jsx(uu,{url:`${Je}/${i.name}`,children:i.name})},i.name))})]})}const Jh="/assets/sign-in-with-huggingface-lg-qDcc3w-B.svg";function Rs(){const e=C.useRef(null),t=C.useContext(qe);function n(r){r.preventDefault();const o=new FormData(r.currentTarget).get("url");Wo(`?url=${o}`)}return g.jsxs("div",{id:"welcome",children:[g.jsx("h1",{children:"hyparquet"}),g.jsxs("sub",{children:["/haɪ pɑːrˈkeɪ/",g.jsx("img",{src:"audio.svg",alt:"play hyparquet pronunciation",height:"18",width:"18",onClick:()=>{var r;(r=e.current)==null||r.play().catch(()=>{})}})]}),g.jsx("audio",{ref:e,src:"hyparquet.mp3"}),g.jsx("h2",{children:"in-browser parquet file reader"}),g.jsxs("p",{children:[g.jsx("a",{href:"https://www.npmjs.com/package/hyparquet",children:g.jsx("img",{src:"https://img.shields.io/npm/v/hyparquet",alt:"npm hyparquet"})})," ",g.jsx("a",{href:"https://github.com/hyparam/hyparquet",children:g.jsx("img",{src:"https://img.shields.io/github/stars/hyparam/hyparquet?style=social",alt:"star hyparquet"})})]}),g.jsxs("p",{children:["Online demo of"," ",g.jsx("a",{href:"https://github.com/hyparam/hyparquet",children:"hyparquet"}),": a parser for apache parquet files. Uses"," ",g.jsx("a",{href:"https://github.com/hyparam/hightable",children:"hightable"})," for high performance windowed table viewing."]}),g.jsxs("section",{children:[g.jsx("h3",{children:"Select a dataset on Hugging Face"}),t!=null&&t.oAuthResult?g.jsxs("p",{children:["Logged in as",g.jsx("img",{src:t.oAuthResult.userInfo.avatarUrl,alt:t.oAuthResult.userInfo.name,style:{width:"1rem",height:"1rem",borderRadius:"50%",margin:"0 0.5rem"}}),t.oAuthResult.userInfo.name," (",g.jsx("a",{onClick:()=>{Ch()},children:"Log out"}),"). You can search your private and gated datasets."]}):g.jsxs("p",{children:[g.jsx("p",{children:"Log in to search your private and gated datasets"}),g.jsx("a",{onClick:()=>{rf().catch(()=>{})},children:g.jsx("img",{src:Jh,alt:"Sign in with Hugging Face"})})]}),g.jsx("p",{children:"Search for dataset:"}),g.jsx(Zh,{})]}),g.jsxs("section",{children:[g.jsx("h3",{children:"Parquet URL"}),g.jsx("p",{children:"You can also set a url to see your parquet data. 👀"}),g.jsxs("form",{onSubmit:n,style:{display:"flex",gap:"1rem"},children:[g.jsx("label",{htmlFor:"url",children:"URL"}),g.jsx("input",{name:"url",defaultValue:"https://huggingface.co/datasets/codeparrot/github-code/resolve/main/data/train-00000-of-01126.parquet",style:{width:"100%"},type:"url"}),g.jsx("button",{style:{fontSize:"1rem",padding:"0 0.5rem"},type:"submit",children:"Open"})]}),g.jsxs("p",{children:[g.jsx("p",{children:"Example files:"}),g.jsxs("ul",{className:"quick-links",children:[g.jsx("li",{children:g.jsx("a",{className:"aws",href:"?url=https://hyperparam-public.s3.amazonaws.com/wiki-en-00000-of-00041.parquet",children:"s3://wiki-en-00000-of-00041.parquet"})}),g.jsx("li",{children:g.jsx("a",{className:"azure",href:"?url=https://hyperparam.blob.core.windows.net/hyperparam/starcoderdata-js-00000-of-00065.parquet",children:"azure://starcoderdata-js-00000-of-00065.parquet"})}),g.jsx("li",{children:g.jsx("a",{className:"huggingface",href:"?url=https://huggingface.co/datasets/codeparrot/github-code/resolve/main/data/train-00000-of-01126.parquet?download=true",children:"huggingface://github-code-00000-of-01126.parquet"})}),g.jsx("li",{children:g.jsx("a",{className:"github",href:"?url=https://raw.githubusercontent.com/hyparam/hyparquet/master/test/files/rowgroups.parquet",children:"github://rowgroups.parquet"})})]})]})]})]})}function bh(){const e=new URLSearchParams(location.search),t=e.get("url");if(Array.isArray(t))throw new Error("url must be a string");if(t===null)return g.jsx(Rs,{});try{const n=jh(t);return n.kind==="base"?g.jsx(Rs,{}):n.kind==="repo"?g.jsx(Ps,{url:{...n,kind:"folder",path:"",branch:"main",action:"tree"}}):n.kind==="folder"?g.jsx(Ps,{url:n}):e.has("col")&&e.has("row")?g.jsx(Ah,{url:n,row:Number(e.get("row")),col:Number(e.get("col"))}):g.jsx(Gh,{url:n})}catch(n){return g.jsx(Bo,{error:n,title:"Error",children:g.jsx("div",{className:"error",children:n.message})})}}
|
|
|
46 |
`);let i=!1,u=[],s=!1,a=[];for(let m=0;m<l.length;m++){const p=l[m];if(p.startsWith("```")){i?(o.push(g.jsx("pre",{children:u.join(`
|
47 |
`)},`code-${m.toLocaleString("en-US")}`)),i=!1,u=[]):i=!0;continue}if(i){u.push(p);continue}if(p.includes("**")){const y=p.split("**");o.push(g.jsx("p",{children:y.map((v,w)=>w%2?g.jsx("strong",{children:v},w):v)},m));continue}if(p.includes("*")){const y=p.split("*");o.push(g.jsx("p",{children:y.map((v,w)=>w%2?g.jsx("em",{children:v},w):v)},m));continue}if(p.startsWith("#")){const y=p.split(" ")[0].length,v=p.slice(y+1),w=`h${y.toLocaleString("en-US")}`;o.push(g.jsx(w,{children:v},m));continue}const h=/!\[(.*?)\]\((.*?)\)/.exec(p);if(h){const[,y,v]=h;o.push(g.jsx("img",{src:v,alt:y},m));continue}if(p.includes("[")&&p.includes("]")&&p.includes("(")&&p.includes(")")){const y=p.replace(/\[(.*?)\]\((.*?)\)/g,(v,w,E)=>`<a href="${E}" target="_blank" rel="noreferrer">${w}</a>`);o.push(g.jsx("p",{dangerouslySetInnerHTML:{__html:y}},m));continue}if(p.startsWith("-")||p.startsWith("*")||p.startsWith("+")){const y=p.slice(1).trim();a.push(g.jsx("li",{children:y},`list-item-${m.toLocaleString("en-US")}`)),s=!0;continue}s&&a.length>0&&(o.push(g.jsx("ul",{children:a},`list-${m.toLocaleString("en-US")}`)),a=[],s=!1),o.push(g.jsx("p",{children:p},m))}return i&&u.length>0&&o.push(g.jsx("pre",{children:u.join(`
|
48 |
`)},`code-${l.length.toLocaleString("en-US")}`)),s&&a.length>0&&o.push(g.jsx("ul",{children:a},`list-${l.length.toLocaleString("en-US")}`)),g.jsx("div",{className:t,children:o})}return n(e)}function Qh({url:e,setError:t}){const[n,r]=C.useState(0),[o,l]=C.useState(),i=C.useContext(qe);return C.useEffect(()=>{if(!i)return;const{fetch:u}=i;async function s(){try{const a=await u(e),m=await a.text();if(a.status==401){t(new Error(m)),l(void 0);return}t(void 0),l(m)}catch(a){t(a),l(void 0)}finally{r(2)}}r(a=>a!==0?a:(s().catch(()=>{}),1))},[e,t,i]),g.jsxs(Ho,{content:{fileSize:o==null?void 0:o.length},children:[g.jsx(Vh,{className:"markdown",text:o??""}),n===1&&g.jsx(vr,{className:"center"})]})}function Yh({url:e,resolveUrl:t,setProgress:n,setError:r}){const[o,l]=C.useState(0),[i,u]=C.useState(),s=C.useContext(qe);C.useEffect(()=>{if(!s)return;const{headers:h}=s;async function y(){try{n(.33);const v=await Zc({url:t,headers:h}),w={url:t,byteLength:v.byteLength,headers:h};n(.66);const E=await Gc(v);let c=ef(w,E);c=Ap(c);const f=v.byteLength;u({dataframe:c,fileSize:f}),r(void 0)}catch(v){r(v),u(void 0)}finally{l(2),n(1)}}o===0&&(l(1),y().catch(()=>{}))},[o,t,r,n,s]);const a=C.useCallback((h,y)=>{Wo(`?url=${e}&row=${y.toString()}&col=${h.toString()}`)},[e]),m=C.useCallback((h,y,v)=>{if(h.button===1){h.preventDefault();const w=new URL(window.location.href);w.search=`?url=${e}&row=${v.toString()}&col=${y.toString()}`,window.open(w,"_blank")}},[e]),p=g.jsx(g.Fragment,{children:(i==null?void 0:i.dataframe)&&g.jsxs("span",{children:[i.dataframe.numRows.toLocaleString("en-US")," rows"]})});return g.jsxs(Ho,{content:i,headers:p,children:[(i==null?void 0:i.dataframe)&&g.jsx(Wp,{cacheKey:t,data:i.dataframe,onDoubleClickCell:a,onMouseDownCell:m,onError:r}),o&&g.jsx(vr,{className:"center"})]})}function qh({url:e,setError:t}){const[n,r]=C.useState(0),[o,l]=C.useState(),i=C.useRef(null),u=C.useContext(qe);C.useEffect(()=>{if(!u)return;const{fetch:a}=u;async function m(){try{const p=await a(e),h=await p.text();if(p.status==401){t(new Error(h)),l(void 0);return}t(void 0),l(h)}catch(p){t(p),l(void 0)}finally{r(2)}}r(p=>p!==0?p:(m().catch(()=>{}),1))},[e,t,u]);const s=g.jsx(g.Fragment,{children:g.jsxs("span",{children:[o?Kh(o):0," lines"]})});return g.jsxs(Ho,{content:{fileSize:o==null?void 0:o.length},headers:s,children:[g.jsx("code",{className:"text",ref:i,children:o}),n&&g.jsx(vr,{className:"center"})]})}function Kh(e){let t=0;for(const n of e)n===`
|
49 |
+
`&&t++;return t.toLocaleString("en-US")}function Xh({url:e,resolveUrl:t,setError:n,setProgress:r}){const o=e.replace(/\?.*$/,"");return o.endsWith(".md")?g.jsx(Qh,{url:t,setError:n}):o.endsWith(".parquet")?g.jsx(Yh,{url:e,resolveUrl:t,setError:n,setProgress:r}):Dh.some(l=>o.endsWith(l))?g.jsx(Bh,{url:t,setError:n}):g.jsx(qh,{url:t,setError:n,setProgress:r})}function Gh({url:e}){const[t,n]=C.useState(),[r,o]=C.useState(),l=e.kind==="file"?e.resolveUrl:e.raw,i=l.split("/");if(i.length<1)throw new Error("Invalid URL path");const u=i.at(-1);return g.jsxs(Bo,{progress:t,error:r,title:u,children:[g.jsx(su,{url:e}),g.jsx(Xh,{url:e.raw,resolveUrl:l,setProgress:n,setError:o})]})}function Ps({url:e}){const[t,n]=C.useState(),[r,o]=C.useState(),l=C.useRef(null),i=C.useContext(qe);C.useEffect(()=>{if(!i)return;const{fetch:a}=i;async function m(){const p=_h({repo:`datasets/${e.namespace}/${e.repo}`,revision:e.branch,path:e.path.replace(/^\//,""),fetch:a}),h=[];for await(const y of p)h.push(y);n(h),o(void 0)}m().catch(p=>{n([]),o(p)})},[e,i]);const u=C.useCallback(a=>{const m=a.type==="directory"?"tree":"blob";return`${Je}/${e.namespace}/${e.repo}/${m}/${e.branch}/${a.path}`},[e]),s=C.useCallback(a=>a.path.split("/").at(-1),[]);return g.jsxs(Bo,{error:r,title:e.path,children:[g.jsx(su,{url:e}),t&&t.length>0&&g.jsx("ul",{className:"file-list",ref:l,children:t.map((a,m)=>g.jsx("li",{children:g.jsxs(uu,{url:u(a),children:[g.jsx("span",{className:fr("file-name","file",a.type==="directory"&&"folder"),children:s(a)}),a.type==="file"&&g.jsx(g.Fragment,{children:g.jsx("span",{className:"file-size",title:a.size.toLocaleString("en-US")+" bytes",children:of(a.size)})})]})},m))}),(t==null?void 0:t.length)===0&&g.jsx("div",{className:"center",children:"No files"}),t===void 0&&g.jsx(vr,{className:"center"})]})}function Zh(){const[e,t]=C.useState(),[n,r]=C.useState([]),o=C.useContext(qe);C.useEffect(()=>{if(!o)return;const i=o.fetch;async function u(){const s=[];for await(const a of Sh({search:{query:e},limit:10,fetch:i}))s.push(a);r(s)}u().catch(s=>{r([]),console.error(s)})},[e,o]);function l(i){t(i.target.value)}return g.jsxs(g.Fragment,{children:[g.jsx("input",{type:"search",onChange:l}),g.jsx("ul",{className:"ref-list",children:n.map(i=>g.jsx("li",{style:{fontSize:"0.9rem"},children:g.jsx(uu,{url:`${Je}/${i.name}`,children:i.name})},i.name))})]})}const Jh="/assets/sign-in-with-huggingface-lg-qDcc3w-B.svg";function Rs(){const e=C.useRef(null),t=C.useContext(qe);function n(r){r.preventDefault();const o=new FormData(r.currentTarget).get("url");Wo(`?url=${o}`)}return g.jsxs("div",{id:"welcome",children:[g.jsx("h1",{children:"hyparquet"}),g.jsxs("sub",{children:["/haɪ pɑːrˈkeɪ/",g.jsx("img",{src:"audio.svg",alt:"play hyparquet pronunciation",height:"18",width:"18",onClick:()=>{var r;(r=e.current)==null||r.play().catch(()=>{})}})]}),g.jsx("audio",{ref:e,src:"hyparquet.mp3"}),g.jsx("h2",{children:"in-browser parquet file reader"}),g.jsxs("p",{children:[g.jsx("a",{href:"https://www.npmjs.com/package/hyparquet",children:g.jsx("img",{src:"https://img.shields.io/npm/v/hyparquet",alt:"npm hyparquet"})})," ",g.jsx("a",{href:"https://github.com/hyparam/hyparquet",children:g.jsx("img",{src:"https://img.shields.io/github/stars/hyparam/hyparquet?style=social",alt:"star hyparquet"})})]}),g.jsxs("p",{children:["Online demo of"," ",g.jsx("a",{href:"https://github.com/hyparam/hyparquet",children:"hyparquet"}),": a parser for apache parquet files. Uses"," ",g.jsx("a",{href:"https://github.com/hyparam/hightable",children:"hightable"})," for high performance windowed table viewing."]}),g.jsxs("section",{children:[g.jsx("h3",{children:"Select a dataset on Hugging Face"}),t!=null&&t.oAuthResult?g.jsxs("p",{children:["Logged in as",g.jsx("img",{src:t.oAuthResult.userInfo.avatarUrl,alt:t.oAuthResult.userInfo.name,style:{width:"1rem",height:"1rem",borderRadius:"50%",margin:"0 0.5rem"}}),t.oAuthResult.userInfo.name," (",g.jsx("a",{onClick:()=>{Ch()},children:"Log out"}),"). You can search your private and gated datasets."]}):g.jsxs("p",{children:[g.jsx("p",{children:"Log in to search your private and gated datasets"}),g.jsx("a",{onClick:()=>{rf().catch(()=>{})},children:g.jsx("img",{src:Jh,alt:"Sign in with Hugging Face"})})]}),g.jsx("p",{children:"Search for dataset:"}),g.jsx(Zh,{})]}),g.jsxs("section",{children:[g.jsx("h3",{children:"Parquet URL"}),g.jsx("p",{children:"You can also set a url to see your parquet data. 👀"}),g.jsxs("form",{onSubmit:n,style:{display:"flex",gap:"1rem"},children:[g.jsx("label",{htmlFor:"url",children:"URL"}),g.jsx("input",{name:"url",defaultValue:"https://huggingface.co/datasets/codeparrot/github-code/resolve/main/data/train-00000-of-01126.parquet",style:{width:"100%"},type:"url"}),g.jsx("button",{style:{fontSize:"1rem",padding:"0 0.5rem"},type:"submit",children:"Open"})]}),g.jsxs("p",{children:[g.jsx("p",{children:"Example files:"}),g.jsxs("ul",{className:"quick-links",children:[g.jsx("li",{children:g.jsx("a",{className:"aws",href:"?url=https://hyperparam-public.s3.amazonaws.com/wiki-en-00000-of-00041.parquet",children:"s3://wiki-en-00000-of-00041.parquet"})}),g.jsx("li",{children:g.jsx("a",{className:"azure",href:"?url=https://hyperparam.blob.core.windows.net/hyperparam/starcoderdata-js-00000-of-00065.parquet",children:"azure://starcoderdata-js-00000-of-00065.parquet"})}),g.jsx("li",{children:g.jsx("a",{className:"huggingface",href:"?url=https://huggingface.co/datasets/codeparrot/github-code/resolve/main/data/train-00000-of-01126.parquet?download=true",children:"huggingface://github-code-00000-of-01126.parquet"})}),g.jsx("li",{children:g.jsx("a",{className:"github",href:"?url=https://raw.githubusercontent.com/hyparam/hyparquet/master/test/files/rowgroups.parquet",children:"github://rowgroups.parquet"})})]})]})]})]})}function bh(){const e=new URLSearchParams(location.search),t=e.get("url");if(Array.isArray(t))throw new Error("url must be a string");if(t===null)return g.jsx(Rs,{});try{const n=jh(t);return n.kind==="base"?g.jsx(Rs,{}):n.kind==="repo"?g.jsx(Ps,{url:{...n,kind:"folder",path:"",branch:"main",action:"tree"}}):n.kind==="folder"?g.jsx(Ps,{url:n}):e.has("col")&&e.has("row")?g.jsx(Ah,{url:n,row:Number(e.get("row")),col:Number(e.get("col"))}):g.jsx(Gh,{url:n})}catch(n){return g.jsx(Bo,{error:n,title:"Error",children:g.jsx("div",{className:"error",children:n.message})})}}function em({children:e}){const[t,n]=C.useState(void 0);return C.useEffect(()=>{xh().then(r=>{if(!r){n(Is());return}n(Mh(r))}).catch(r=>{console.error("Error fetching OAuth"),n(Is()),console.error(r)})},[]),g.jsx(qe.Provider,{value:t,children:e})}function tm(){return g.jsx(em,{children:g.jsx(bh,{})})}const lf=document.getElementById("app");if(!lf)throw new Error("No root element");Qc(lf).render(g.jsx(C.StrictMode,{children:g.jsx(tm,{})}));
|
assets/index-hPr5KTBS.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.table-container{display:flex;flex:1;min-height:0;position:relative}.table-container *{box-sizing:border-box;margin:0;padding:0}.table-scroll{flex:1;overflow:auto}.table-scroll>div{position:relative}.table-scroll .table{position:absolute}.table{border-collapse:separate;border-spacing:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;max-width:100%;overflow-x:auto}.table:focus-visible{outline:none}.table thead th{background-color:#eaeaeb;border:none;border-bottom:2px solid #c9c9c9;box-sizing:content-box;color:#444;height:20px;padding-top:8px;position:sticky;top:-1px;-webkit-user-select:none;user-select:none;z-index:10}.table thead th:first-child{border:none}.table thead th:first-child span{cursor:default;width:0}.table tbody tr:first-child td{border-top:1px solid transparent}.table.sortable thead th{cursor:pointer}.table thead th.orderby :after{position:absolute;right:8px;top:8px;padding-left:2px;background-color:#eaeaeb;content:"▾"}.table thead span{position:absolute;border-right:1px solid #ddd;top:0;right:0;bottom:0;width:8px;cursor:col-resize;transition:background-color .2s ease}.table thead span:hover{background-color:#aab}.table td:first-child{background-color:#eaeaeb;border-right:1px solid #ddd;color:#888;font-size:10px;padding:0 2px;position:sticky;left:0;text-align:center;-webkit-user-select:none;user-select:none;min-width:32px;max-width:none;width:32px}.table th,.table td{border-bottom:1px solid #ddd;border-right:1px solid #ddd;height:32px;max-width:2000px;padding:4px 12px;text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.table td.pending{position:relative}.table td.pending:after{content:"";position:absolute;top:8px;left:8px;right:8px;bottom:8px;border-radius:4px;background:linear-gradient(60deg,#0000000d 25%,#00000014,#0000000d 75%);background-size:120px 100%;animation:textshimmer 3s infinite linear}.table tr:nth-child(2n) td.pending:after{animation-delay:-1s}.table tr:nth-child(odd) td.pending:after{animation-delay:-3s}.table tr:nth-child(3n) td.pending:after{animation-delay:-2s}.table tr:nth-child(5n) td.pending:after{animation-delay:-4s}.table tr:nth-child(7n) td.pending:after{animation-delay:-1.5s}@keyframes textshimmer{0%{background-position:-120px 0}to{background-position:120px 0}}.table th:before{content:"";position:absolute;top:0;left:0;width:100%;height:4px;background-color:#706fb1;z-index:100}.pending .table th:before{animation:shimmer 2s infinite linear}@keyframes shimmer{0%,to{background-color:#6fb176}50%{background-color:#adc6b0}}@media (hover: hover){.table tbody tr:hover{background-color:#dbdbe5}.table tbody tr:hover td{border-right-color:#bbb}.table tbody tr:hover td:first-child{background-color:#ccd}}.table tr[title]{color:#a11}.table-corner{background-color:#e4e4e6;border-right:1px solid #ccc;position:absolute;height:33px;width:32px;top:0;left:0;z-index:15;box-shadow:inset 0 0 4px #0003}.mock-row-label{content:"";position:absolute;top:0;left:0;bottom:0;background:#eaeaeb;z-index:-10}*{box-sizing:border-box;margin:0;padding:0}#app{display:flex;font-family:Mulish,Helvetica Neue,Helvetica,Arial,sans-serif;flex-direction:column;height:100vh}.brand{color:#fff;display:flex;align-items:center;filter:drop-shadow(0 0 2px #444);font-family:Century Gothic,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:700;text-orientation:mixed;opacity:.85;padding:10px 12px;-webkit-user-select:none;user-select:none;writing-mode:vertical-rl}.brand:hover{color:#fff;filter:drop-shadow(0 0 2px #333);opacity:.9;text-decoration:none}.brand:before{content:"";background:url("data:image/svg+xml,%3csvg%20width='96'%20height='96'%20version='1.1'%20viewBox='0%200%2096%2096'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m48%203.5%2038.37%2022.25v44.5l-38.37%2022.25-38.37-22.25v-44.5z'%20fill='%2343a'%20stroke='%2343a'%20stroke-linejoin='round'%20stroke-width='7'/%3e%3cg%20fill='none'%20stroke='%23fff'%20stroke-linejoin='round'%20stroke-width='8'%3e%3cpath%20d='m48%2048-29.14-17%202.81e-4%2034%2029.14%2017z'/%3e%3cpath%20d='m77.14%2031-29.14%2017v34l29.14-17z'/%3e%3cpath%20d='m48%2048-29.14-17%2029.14-17%2029.14%2017z'/%3e%3c/g%3e%3c/svg%3e") no-repeat 0 center;background-size:26px;height:26px;width:26px;margin-bottom:10px}a{color:#342267;cursor:pointer;text-decoration:none}a:hover{color:#000;text-decoration:underline}main{display:flex;height:100vh;max-width:100vw}.nav{display:flex;flex-direction:column;min-width:48px;background-image:linear-gradient(to bottom,#667,#585669);box-shadow:0 0 4px #0a0a0a80;height:100vh}.content-container{min-width:0;height:100vh;display:flex;flex-direction:column;flex:1}.content{display:flex;flex-direction:column;flex:1;height:100vh;padding:0;overflow:hidden}.top-header{align-items:center;background:linear-gradient(to right,#353540,#24202b);color:#dde4ea;display:flex;height:32px;min-height:32px;padding-left:8px}.top-header h1{font-size:18px;margin:0}.top-header a{color:#e0e8ee}.path{margin:0 4px 0 2px;min-width:0;display:flex;flex-wrap:nowrap;align-items:baseline;overflow:auto}.path::-webkit-scrollbar{display:none}.home{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1rem'%20height='1rem'%20viewBox='0%200%2020%2020'%3e%3cpath%20fill='%23f0f8ff'%20fill-rule='evenodd'%20d='M9.293%202.293a1%201%200%200%201%201.414%200l7%207A1%201%200%200%201%2017%2011h-1v6a1%201%200%200%201-1%201h-2a1%201%200%200%201-1-1v-3a1%201%200%200%200-1-1H9a1%201%200%200%200-1%201v3a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1v-6H3a1%201%200%200%201-.707-1.707z'%20clip-rule='evenodd'/%3e%3c/svg%3e");background-position:left center;background-repeat:no-repeat;width:22px;height:32px;opacity:.9}.home:hover{opacity:1}.path a{color:#f0f8ff;font-family:Courier New,Courier,monospace;font-size:18px;transform:translateY(1px);text-overflow:ellipsis;white-space:nowrap;text-decoration-thickness:1px}@media (max-width: 360px){.path a:not(:last-child){display:none}}.top-header .external{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20512'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20focusable='false'%20role='img'%20width='1em'%20height='1em'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20d='M576%2024v127.984c0%2021.461-25.96%2031.98-40.971%2016.971l-35.707-35.709-243.523%20243.523c-9.373%209.373-24.568%209.373-33.941%200l-22.627-22.627c-9.373-9.373-9.373-24.569%200-33.941L442.756%2076.676l-35.703-35.705C391.982%2025.9%20402.656%200%20424.024%200H552c13.255%200%2024%2010.745%2024%2024zM407.029%20270.794l-16%2016A23.999%2023.999%200%200%200%20384%20303.765V448H64V128h264a24.003%2024.003%200%200%200%2016.97-7.029l16-16C376.089%2089.851%20365.381%2064%20344%2064H48C21.49%2064%200%2085.49%200%20112v352c0%2026.51%2021.49%2048%2048%2048h352c26.51%200%2048-21.49%2048-48V287.764c0-21.382-25.852-32.09-40.971-16.97z'%20stroke='white'%20fill='white'%3e%3c/path%3e%3c/svg%3e");background-position:center center;background-repeat:no-repeat;width:32px;height:32px;opacity:.9}.top-header .external:hover{opacity:1}.branch-selector>div{background:#24202b}.branch-selector{margin-left:auto}.branch-selector>button.dropdown-button{background:none;padding:7px;width:32px;height:32px;opacity:.85;overflow:hidden}.branch-selector>button.dropdown-button:before{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20focusable='false'%20role='img'%20width='1em'%20height='1em'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M13%2014c-3.36%200-4.46%201.35-4.82%202.24C9.25%2016.7%2010%2017.76%2010%2019a3%203%200%200%201-3%203a3%203%200%200%201-3-3c0-1.31.83-2.42%202-2.83V7.83A2.99%202.99%200%200%201%204%205a3%203%200%200%201%203-3a3%203%200%200%201%203%203c0%201.31-.83%202.42-2%202.83v5.29c.88-.65%202.16-1.12%204-1.12c2.67%200%203.56-1.34%203.85-2.23A3.006%203.006%200%200%201%2014%207a3%203%200%200%201%203-3a3%203%200%200%201%203%203c0%201.34-.88%202.5-2.09%202.86C17.65%2011.29%2016.68%2014%2013%2014m-6%204a1%201%200%200%200-1%201a1%201%200%200%200%201%201a1%201%200%200%200%201-1a1%201%200%200%200-1-1M7%204a1%201%200%200%200-1%201a1%201%200%200%200%201%201a1%201%200%200%200%201-1a1%201%200%200%200-1-1m10%202a1%201%200%200%200-1%201a1%201%200%200%200%201%201a1%201%200%200%200%201-1a1%201%200%200%200-1-1z'%20fill='white'%3e%3c/path%3e%3c/svg%3e") no-repeat center;background-size:18px;position:static;content:"";width:18px;height:18px;transform:rotate(0)}.branch-selector>button.dropdown-button:active,.branch-selector>button.dropdown-button:hover{opacity:1}.branch-selector.open>button.dropdown-button{transform:rotate(10deg)}.branch-selector .dropdown-content{right:0;left:auto;max-width:300px}.branch-selector .dropdown-content button{display:block;font-size:14px;color:inherit}.progress-bar{position:fixed;top:0;left:0;right:0;height:2px;z-index:1000;transition:width .3s;background-image:linear-gradient(to right,#ddd,#cbb,#ddd);background-size:1000px;animation:shimmer 4s infinite linear}@keyframes shimmer{0%{background-position:-1000px}to{background-position:1000px}}.progress-bar>div{height:100%;background-color:#3a4}.error-bar{max-height:0;padding:0;background-color:#d119;font-family:monospace;overflow-y:auto;transition:max-height .3s;white-space:pre-wrap}.show-error{max-height:30%;padding:10px}.ref-list{flex:1;list-style:none;overflow-y:auto;padding-bottom:24px;margin:8px 0}.ref-list li{margin:0}.ref-list li:first-child a{border-top:1px solid #bbb}.ref-list a{border-bottom:1px solid #bbb;color:#444;display:flex;padding:8px 12px;text-decoration:none}.ref-list a:hover{background-color:#e2e2ee}.ref-list a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-tags{background-color:#fffbeb}.ref-converts{background-color:#fee2e2}.file-list{flex:1;list-style:none;overflow-y:auto;padding-bottom:24px}.file-list li{margin:0}.file-list li:first-child a{border-top:none}.file-list a{border-top:1px solid #bbb;color:#444;display:flex;padding:8px 12px;text-decoration:none}.file-list a:hover{background-color:#e2e2ee}.file-list a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name{flex:1;min-width:80px}.file-size{color:#666;margin:0 16px;text-align:right}.file-date{min-width:90px;text-align:right}.file{background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20version='1.1'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m38%203v14.5h14m-40-14.5v58h40v-43.5l-14-14.5z'%20fill='none'%20stroke='%23666'%20stroke-linejoin='round'%20stroke-width='6'/%3e%3c/svg%3e");background-position:left center;background-repeat:no-repeat;background-size:12px;padding-left:22px}.folder{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20version='1.1'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m4%2012v40h56v-30h-24l-10-10z'%20fill='%23666'%20stroke='%23666'%20stroke-linejoin='round'%20stroke-width='8'/%3e%3c/svg%3e")}.viewer{display:flex;flex:1;flex-direction:column;white-space:pre-wrap;overflow-y:auto}.view-header{align-items:center;background-color:#ccc;color:#444;display:flex;gap:16px;height:24px;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text{background-color:#22222b;color:#d6d6d6;display:block;flex:1;padding:8px;width:100%;overflow-x:auto;white-space:pre-wrap}.image{display:block;flex:1;min-width:0;object-fit:scale-down;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(135deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(135deg,transparent 75%,#ddd 75%);background-size:32px 32px;background-position:0 0,16px 0,16px -16px,0px 16px}.markdown{background-color:#222226;color:#ddd;flex:1;padding:8px 20px;white-space:pre-wrap;overflow-y:auto}.markdown a{color:#cdf}.markdown p{margin-block:1em}.markdown pre{background-color:#34343a;border-left:#446 solid 5px;margin:0;padding:12px 14px;white-space:pre-wrap}.markdown h1{font-size:32px;font-weight:500;margin-bottom:8px}.markdown h2{font-weight:500;margin-bottom:8px;margin-top:16px}.dropdown{display:inline-block;position:relative;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.dropdown-button,.dropdown-button:active,.dropdown-button:focus,.dropdown-button:hover{background:transparent;border:none;color:inherit;cursor:pointer;font-size:inherit;height:24px;max-width:300px;overflow:hidden}.dropdown-button:before{content:"▼";display:inline-block;font-size:10px;margin-right:4px;transform:rotate(-90deg);transition:transform .1s}.open .dropdown-button:before{transform:rotate(0)}.dropdown-content{position:absolute;left:0;background-color:#ccc;border-bottom-left-radius:6px;border-bottom-right-radius:6px;box-shadow:0 8px 8px #0003;max-height:0;max-width:200px;min-width:120px;transition:max-height .1s ease-out;overflow-y:hidden;z-index:20}.dropdown-content>button{background:none;border:none;padding:8px 16px;text-align:left}.dropdown-content>button:active,.dropdown-content>button:focus,.dropdown-content>button:hover{background-color:#5f4b8566}.open .dropdown-content{display:flex;flex-direction:column;max-height:170px}#welcome{position:relative;border:2px #777;border-radius:10px;color:#444;padding:10px;display:flex;flex-direction:column;flex:1;font-size:20px;justify-content:center;max-width:640px;margin:0 auto}.quick-links{display:flex;flex-wrap:wrap;gap:10px;list-style:none}.quick-links li{display:flex;flex:1 1 calc(50% - 10px);min-width:0}.quick-links a{background-position:10px center;background-size:18px;border:1px solid #444;border-radius:4px;font-size:8pt;overflow:hidden;padding:12px 12px 12px 36px;text-overflow:ellipsis;white-space:nowrap;width:100%}.quick-links a:hover{background-color:#cec}.huggingface{background:url(/assets/huggingface-Df0G9hpA.svg) no-repeat 8px center}.github{background:url("data:image/svg+xml,%3csvg%20width='92'%20height='92'%20version='1.1'%20viewBox='0%200%2092%2092'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m89.7%2041.9-39.7-39.7a5.86%205.86%200%200%200-8.29%200l-8.25%208.25%2010.5%2010.5a6.97%206.97%200%200%201%207.16%201.66%206.98%206.98%200%200%201%201.65%207.21l10.1%2010.1a6.97%206.97%200%200%201%207.21%201.65%206.98%206.98%200%200%201%200%209.87%206.98%206.98%200%200%201-9.87%200%206.98%206.98%200%200%201-1.52-7.59l-9.41-9.41v24.8a6.98%206.98%200%200%201%201.84%2011.2%206.98%206.98%200%200%201-9.87%200%206.98%206.98%200%200%201%200-9.87%206.97%206.97%200%200%201%202.29-1.53v-25a6.94%206.94%200%200%201-2.29-1.53%206.99%206.99%200%200%201-1.51-7.63l-10.3-10.3-27.2%2027.2a5.87%205.87%200%200%200%200%208.29l39.7%2039.7a5.87%205.87%200%200%200%208.29%200l39.5-39.5a5.87%205.87%200%200%200%200-8.29'%20fill='%23333'/%3e%3c/svg%3e") no-repeat 8px center}.aws{background:url("data:image/svg+xml,%3csvg%20width='128'%20height='128'%20version='1.1'%20viewBox='0%200%20128%20128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20class='st0'%20d='m64%202.561c28.87%200%2052.27%2010.96%2052.27%2024.46%200%2013.51-23.41%2024.46-52.27%2024.46s-52.27-10.96-52.27-24.46%2023.41-24.46%2052.27-24.46zm-52.27%2081.83v18.78c9.3%2033.03%20101.2%2026.65%20104.6-1.69v-18.76c-4.59%2031.11-97.2%2033.35-104.6%201.67zm-0.26-48.89v18.34c9.3%2032.26%20101.7%2027.9%20105.1%200.23v-18.33c-4.6%2030.39-97.72%2030.7-105.1-0.24zm0%2023.7v18.78c9.3%2033.03%20101.7%2028.57%20105.1%200.23v-18.76c-4.6%2031.11-97.72%2031.43-105.1-0.25z'%20fill='%23333'/%3e%3c/svg%3e") no-repeat 8px center}.azure{background:url("data:image/svg+xml,%3csvg%20width='128'%20height='128'%20version='1.1'%20viewBox='0%200%20128%20128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m59.2%20108c16.4-2.91%2030-5.31%2030.2-5.34l0.284-0.0602-15.5-18.5c-8.54-10.2-15.5-18.5-15.5-18.6%200-0.0911%2016-44.2%2016.1-44.4%200.0302-0.0524%2010.9%2018.8%2026.4%2045.7%2014.5%2025.2%2026.5%2045.9%2026.6%2046.1l0.202%200.353-98.7-0.012%2029.9-5.28zm-59.2-5.63c0-0.026%207.32-12.7%2016.3-28.2l16.3-28.2%2018.9-15.9c10.4-8.74%2019-15.9%2019-15.9%200.0343-0.0127-0.103%200.332-0.305%200.767-0.202%200.435-9.46%2020.3-20.6%2044.1l-20.2%2043.3-14.7%200.0184c-8.08%200.0102-14.7-0.00282-14.7-0.0288z'%20fill='%23222'/%3e%3c/svg%3e") no-repeat 8px center}h1{font-size:22pt}h2{margin-top:10px;font-size:12pt}p{margin:15px 0}code{font-family:monospace;padding:10px;white-space:pre-wrap;word-break:break-all}sub{align-items:center;display:flex;gap:5px}sub img{cursor:pointer}input{width:100%;height:2rem;padding:.5rem;font-size:1rem}
|
|
|
|
assets/index-w10PQ7VH.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.table-container{display:flex;flex:1;min-height:0;position:relative}.table-container *{box-sizing:border-box;margin:0;padding:0}.table-scroll{flex:1;overflow:auto}.table-scroll>div{position:relative}.table-scroll .table{position:absolute}.table{border-collapse:separate;border-spacing:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;max-width:100%;overflow-x:auto}.table:focus-visible{outline:none}.table thead th{background-color:#eaeaeb;border:none;border-bottom:2px solid #c9c9c9;box-sizing:content-box;color:#444;height:20px;padding-top:8px;position:sticky;top:-1px;-webkit-user-select:none;user-select:none;z-index:10}.table thead th:first-child{border:none}.table thead th:first-child span{cursor:default;width:0}.table tbody tr:first-child td{border-top:1px solid transparent}.table.sortable thead th{cursor:pointer}.table thead th.orderby :after{position:absolute;right:8px;top:8px;padding-left:2px;background-color:#eaeaeb;content:"▾"}.table thead span{position:absolute;border-right:1px solid #ddd;top:0;right:0;bottom:0;width:8px;cursor:col-resize;transition:background-color .2s ease}.table thead span:hover{background-color:#aab}.table td:first-child{background-color:#eaeaeb;border-right:1px solid #ddd;color:#888;font-size:10px;padding:0 2px;position:sticky;left:0;text-align:center;-webkit-user-select:none;user-select:none;min-width:32px;max-width:none;width:32px}.table th,.table td{border-bottom:1px solid #ddd;border-right:1px solid #ddd;height:32px;max-width:2000px;padding:4px 12px;text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.table td.pending{position:relative}.table td.pending:after{content:"";position:absolute;top:8px;left:8px;right:8px;bottom:8px;border-radius:4px;background:linear-gradient(60deg,#0000000d 25%,#00000014,#0000000d 75%);background-size:120px 100%;animation:textshimmer 3s infinite linear}.table tr:nth-child(2n) td.pending:after{animation-delay:-1s}.table tr:nth-child(odd) td.pending:after{animation-delay:-3s}.table tr:nth-child(3n) td.pending:after{animation-delay:-2s}.table tr:nth-child(5n) td.pending:after{animation-delay:-4s}.table tr:nth-child(7n) td.pending:after{animation-delay:-1.5s}@keyframes textshimmer{0%{background-position:-120px 0}to{background-position:120px 0}}.table th:before{content:"";position:absolute;top:0;left:0;width:100%;height:4px;background-color:#706fb1;z-index:100}.pending .table th:before{animation:shimmer 2s infinite linear}@keyframes shimmer{0%,to{background-color:#6fb176}50%{background-color:#adc6b0}}@media (hover: hover){.table tbody tr:hover{background-color:#dbdbe5}.table tbody tr:hover td{border-right-color:#bbb}.table tbody tr:hover td:first-child{background-color:#ccd}}.table tr[title]{color:#a11}.table-corner{background-color:#e4e4e6;border-right:1px solid #ccc;position:absolute;height:33px;width:32px;top:0;left:0;z-index:15;box-shadow:inset 0 0 4px #0003}.mock-row-label{content:"";position:absolute;top:0;left:0;bottom:0;background:#eaeaeb;z-index:-10}*{box-sizing:border-box;margin:0;padding:0}#app{display:flex;font-family:Mulish,Helvetica Neue,Helvetica,Arial,sans-serif;flex-direction:column;height:100vh}.brand{color:#fff;display:flex;align-items:center;filter:drop-shadow(0 0 2px #444);font-family:Century Gothic,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1.1em;font-weight:700;text-orientation:mixed;opacity:.85;padding:10px 12px;-webkit-user-select:none;user-select:none;writing-mode:vertical-rl}.brand:hover{color:#fff;filter:drop-shadow(0 0 2px #333);opacity:.9;text-decoration:none}.brand:before{content:"";background:url(assets/logo.svg) no-repeat 0 center;background-size:26px;height:26px;width:26px;margin-bottom:10px}a{color:#342267;cursor:pointer;text-decoration:none}a:hover{color:#000;text-decoration:underline}main{display:flex;height:100vh;max-width:100vw}.nav{display:flex;flex-direction:column;min-width:48px;background-image:linear-gradient(to bottom,#667,#585669);box-shadow:0 0 4px #0a0a0a80;height:100vh}.content-container{min-width:0;height:100vh;display:flex;flex-direction:column;flex:1}.content{display:flex;flex-direction:column;flex:1;height:100vh;padding:0;overflow:hidden}.top-header{align-items:center;background:linear-gradient(to right,#353540,#24202b);color:#dde4ea;display:flex;height:32px;min-height:32px;padding-left:8px}.top-header h1{font-size:18px;margin:0}.top-header a{color:#e0e8ee}.path{margin:0 4px 0 2px;min-width:0;display:flex;flex-wrap:nowrap;align-items:baseline;overflow:auto}.path::-webkit-scrollbar{display:none}.home{background:url(assets/home.svg);background-position:left center;background-repeat:no-repeat;width:22px;height:32px;opacity:.9}.home:hover{opacity:1}.path a{color:#f0f8ff;font-family:Courier New,Courier,monospace;font-size:18px;transform:translateY(1px);text-overflow:ellipsis;white-space:nowrap;text-decoration-thickness:1px}@media (max-width: 360px){.path a:not(:last-child){display:none}}.top-header .external{background:url(assets/external-link.svg);background-position:center center;background-repeat:no-repeat;width:32px;height:32px;opacity:.9}.top-header .external:hover{opacity:1}.branch-selector>div{background:#24202b}.branch-selector{margin-left:auto}.branch-selector>button.dropdown-button{background:none;padding:7px;width:32px;height:32px;opacity:.85;overflow:hidden}.branch-selector>button.dropdown-button:before{background:url(assets/branch.svg) no-repeat center;background-size:18px;position:static;content:"";width:18px;height:18px;transform:rotate(0)}.branch-selector>button.dropdown-button:active,.branch-selector>button.dropdown-button:hover{opacity:1}.branch-selector.open>button.dropdown-button{transform:rotate(10deg)}.branch-selector .dropdown-content{right:0;left:auto;max-width:300px}.branch-selector .dropdown-content button{display:block;font-size:14px;color:inherit}.progress-bar{position:fixed;top:0;left:0;right:0;height:2px;z-index:1000;transition:width .3s;background-image:linear-gradient(to right,#ddd,#cbb,#ddd);background-size:1000px;animation:shimmer 4s infinite linear}@keyframes shimmer{0%{background-position:-1000px}to{background-position:1000px}}.progress-bar>div{height:100%;background-color:#3a4}.error-bar{max-height:0;padding:0;background-color:#d119;font-family:monospace;overflow-y:auto;transition:max-height .3s;white-space:pre-wrap}.show-error{max-height:30%;padding:10px}.ref-list{flex:1;list-style:none;overflow-y:auto;padding-bottom:24px;margin:8px 0}.ref-list li{margin:0}.ref-list li:first-child a{border-top:1px solid #bbb}.ref-list a{border-bottom:1px solid #bbb;color:#444;display:flex;padding:8px 12px;text-decoration:none}.ref-list a:hover{background-color:#e2e2ee}.ref-list a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-tags{background-color:#fffbeb}.ref-converts{background-color:#fee2e2}.file-list{flex:1;list-style:none;overflow-y:auto;padding-bottom:24px}.file-list li{margin:0}.file-list li:first-child a{border-top:none}.file-list a{border-top:1px solid #bbb;color:#444;display:flex;padding:8px 12px;text-decoration:none}.file-list a:hover{background-color:#e2e2ee}.file-list a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name{flex:1;min-width:80px}.file-size{color:#666;margin:0 16px;text-align:right}.file-date{min-width:90px;text-align:right}.file{background:url(assets/file.svg);background-position:left center;background-repeat:no-repeat;background-size:12px;padding-left:22px}.folder{background-image:url(assets/folder.svg)}.viewer{display:flex;flex:1;flex-direction:column;white-space:pre-wrap;overflow-y:auto}.view-header{align-items:center;background-color:#ccc;color:#444;display:flex;gap:16px;height:24px;padding:0 8px;text-overflow:ellipsis;white-space:nowrap}.text{background-color:#22222b;color:#d6d6d6;display:block;flex:1;padding:8px;width:100%;overflow-x:auto;white-space:pre-wrap}.image{display:block;flex:1;min-width:0;object-fit:scale-down;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(135deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(135deg,transparent 75%,#ddd 75%);background-size:32px 32px;background-position:0 0,16px 0,16px -16px,0px 16px}.markdown{background-color:#222226;color:#ddd;flex:1;padding:8px 20px;white-space:pre-wrap;overflow-y:auto}.markdown a{color:#cdf}.markdown p{margin-block:1em}.markdown pre{background-color:#34343a;border-left:#446 solid 5px;margin:0;padding:12px 14px;white-space:pre-wrap}.markdown h1{font-size:32px;font-weight:500;margin-bottom:8px}.markdown h2{font-weight:500;margin-bottom:8px;margin-top:16px}.dropdown{display:inline-block;position:relative;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.dropdown-button,.dropdown-button:active,.dropdown-button:focus,.dropdown-button:hover{background:transparent;border:none;color:inherit;cursor:pointer;font-size:inherit;height:24px;max-width:300px;overflow:hidden}.dropdown-button:before{content:"▼";display:inline-block;font-size:10px;margin-right:4px;transform:rotate(-90deg);transition:transform .1s}.open .dropdown-button:before{transform:rotate(0)}.dropdown-content{position:absolute;left:0;background-color:#ccc;border-bottom-left-radius:6px;border-bottom-right-radius:6px;box-shadow:0 8px 8px #0003;max-height:0;max-width:200px;min-width:120px;transition:max-height .1s ease-out;overflow-y:hidden;z-index:20}.dropdown-content>button{background:none;border:none;padding:8px 16px;text-align:left}.dropdown-content>button:active,.dropdown-content>button:focus,.dropdown-content>button:hover{background-color:#5f4b8566}.open .dropdown-content{display:flex;flex-direction:column;max-height:170px}#welcome{position:relative;border:2px #777;border-radius:10px;color:#444;padding:10px;display:flex;flex-direction:column;flex:1;font-size:20px;justify-content:center;max-width:640px;margin:0 auto}.quick-links{display:flex;flex-wrap:wrap;gap:10px;list-style:none}.quick-links li{display:flex;flex:1 1 calc(50% - 10px);min-width:0}.quick-links a{background-position:10px center;background-size:18px;border:1px solid #444;border-radius:4px;font-size:8pt;overflow:hidden;padding:12px 12px 12px 36px;text-overflow:ellipsis;white-space:nowrap;width:100%}.quick-links a:hover{background-color:#cec}.huggingface{background:url(assets/huggingface.svg) no-repeat 8px center}.github{background:url(assets/git.svg) no-repeat 8px center}.aws{background:url(assets/s3.svg) no-repeat 8px center}.azure{background:url(assets/azure.svg) no-repeat 8px center}h1{font-size:22pt}h2{margin-top:10px;font-size:12pt}p{margin:15px 0}code{font-family:monospace;padding:10px;white-space:pre-wrap;word-break:break-all}sub{align-items:center;display:flex;gap:5px}sub img{cursor:pointer}input{width:100%;height:2rem;padding:.5rem;font-size:1rem}
|
index.html
CHANGED
@@ -9,8 +9,8 @@
|
|
9 |
<link rel="icon" type="image/svg+xml" href="/assets/logo.svg" />
|
10 |
<meta name="theme-color" content="#6b00ff">
|
11 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
12 |
-
<script type="module" crossorigin src="/assets/index-
|
13 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
14 |
</head>
|
15 |
<body>
|
16 |
<div id="app"></div>
|
|
|
9 |
<link rel="icon" type="image/svg+xml" href="/assets/logo.svg" />
|
10 |
<meta name="theme-color" content="#6b00ff">
|
11 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
12 |
+
<script type="module" crossorigin src="/assets/index-BhQgFMET.js"></script>
|
13 |
+
<link rel="stylesheet" crossorigin href="/assets/index-w10PQ7VH.css">
|
14 |
</head>
|
15 |
<body>
|
16 |
<div id="app"></div>
|