import{s as be,o as ge,n as $e}from"../chunks/scheduler.d6170356.js";import{S as je,i as ye,g as o,s as n,r as h,A as we,h as m,f as s,c as l,j as he,u as d,x as j,k as ae,l as Me,y as Te,a,v as f,d as b,t as g,w as $,m as de,n as fe}from"../chunks/index.fcd4cc08.js";import{T as ve}from"../chunks/Tip.b09c67cf.js";import{C as xe}from"../chunks/CodeBlock.db16bf50.js";import{H as W,E as Ce}from"../chunks/index.9f2da87a.js";function De(Q){let p,r,y="Enterprise Hub",u;return{c(){p=de("This feature is part of the "),r=o("a"),r.textContent=y,u=de("."),this.h()},l(i){p=fe(i,"This feature is part of the "),r=m(i,"A",{href:!0,"data-svelte-h":!0}),j(r)!=="svelte-vg0acv"&&(r.textContent=y),u=fe(i,"."),this.h()},h(){ae(r,"href","https://huggingface.co/enterprise")},m(i,w){a(i,p,w),a(i,r,w),a(i,u,w)},p:$e,d(i){i&&(s(p),s(r),s(u))}}}function Je(Q){let p,r,y,u,i,w,M,R,T,z,v,ne="Track all your repository activity with a detailed downloads overview that shows total downloads for all your Models and Datasets. Toggle between “All Time” and “Last Month” views to gain insights into your repository’s downloads over different periods.",L,c,le='<img class="block dark:hidden m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise-analytics.png" alt="screenshot of the Dataset Viewer on a private dataset owned by an Enterprise Hub organization."/> <img class="hidden dark:block m-0!" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/enterprise-analytics-dark.png" alt="screenshot of the Dataset Viewer on a private dataset owned by an Enterprise Hub organization."/>',Y,x,B,C,ie="Explore the metrics of individual repositories with the per-repository drill-down table. Utilize the built-in search feature to quickly locate specific repositories. Each row also features a time-series graph that illustrates the trend of downloads over time.",G,D,F,J,pe="Download a comprehensive CSV file containing analytics for all your repositories, including model and dataset download activity.",P,k,H,Z,re="The CSV file is made of daily download records for each of your models and datasets.",I,E,X,A,O,_,oe="Each record in the CSV contains:",q,N,me="<li><code>repoType</code>: The type of repository (e.g., “model”, “dataset”)</li> <li><code>repoName</code>: Full repository name including organization (e.g., “huggingface/documentation-images”)</li> <li><code>total</code>: Cumulative number of downloads for this repository</li> <li><code>timestamp</code>: ISO 8601 formatted date (UTC)</li> <li><code>downloads</code>: Number of downloads for that day</li>",K,U,ue="Records are ordered chronologically and provide a daily granular view of download activity for each repository.",ee,V,te,S,se;return i=new W({props:{title:"Analytics",local:"analytics",headingTag:"h1"}}),M=new ve({props:{warning:!0,$$slots:{default:[De]},$$scope:{ctx:Q}}}),T=new W({props:{title:"Analytics Dashboard",local:"analytics-dashboard",headingTag:"h2"}}),x=new W({props:{title:"Per-repo breakdown",local:"per-repo-breakdown",headingTag:"h3"}}),D=new W({props:{title:"Export Analytics as CSV",local:"export-analytics-as-csv",headingTag:"h2"}}),k=new W({props:{title:"Response Structure",local:"response-structure",headingTag:"h3"}}),E=new xe({props:{code:"cmVwb1R5cGUlMkNyZXBvTmFtZSUyQ3RvdGFsJTJDdGltZXN0YW1wJTJDZG93bmxvYWRzJTBBbW9kZWwlMkNodWdnaW5nZmFjZSUyRkNvZGVCRVJUYS1zbWFsbC12MSUyQzQzNjI0NjAlMkMyMDIxLTAxLTIyVDAwJTNBMDAlM0EwMC4wMDBaJTJDNCUwQW1vZGVsJTJDaHVnZ2luZ2ZhY2UlMkZDb2RlQkVSVGEtc21hbGwtdjElMkM0MzYyNDYwJTJDMjAyMS0wMS0yM1QwMCUzQTAwJTNBMDAuMDAwWiUyQzclMEFtb2RlbCUyQ2h1Z2dpbmdmYWNlJTJGQ29kZUJFUlRhLXNtYWxsLXYxJTJDNDM2MjQ2MCUyQzIwMjEtMDEtMjRUMDAlM0EwMCUzQTAwLjAwMFolMkMyJTBBZGF0YXNldCUyQ2h1Z2dpbmdmYWNlJTJGZG9jdW1lbnRhdGlvbi1pbWFnZXMlMkMyMTY3Mjg0JTJDMjAyMS0xMS0yN1QwMCUzQTAwJTNBMDAuMDAwWiUyQzMlMEFkYXRhc2V0JTJDaHVnZ2luZ2ZhY2UlMkZkb2N1bWVudGF0aW9uLWltYWdlcyUyQzIxNjcyODQlMkMyMDIxLTExLTI4VDAwJTNBMDAlM0EwMC4wMDBaJTJDMTglMEFkYXRhc2V0JTJDaHVnZ2luZ2ZhY2UlMkZkb2N1bWVudGF0aW9uLWltYWdlcyUyQzIxNjcyODQlMkMyMDIxLTExLTI5VDAwJTNBMDAlM0EwMC4wMDBaJTJDNw==",highlighted:`<span class="hljs-attribute">repoType</span>,repoName,total,timestamp,downloads
<span class="hljs-attribute">model</span>,huggingface/CodeBERTa-small-v1,<span class="hljs-number">4362460</span>,<span class="hljs-number">2021</span>-<span class="hljs-number">01</span>-<span class="hljs-number">22</span>T00:<span class="hljs-number">00</span>:<span class="hljs-number">00</span>.<span class="hljs-number">000</span>Z,<span class="hljs-number">4</span>
<span class="hljs-attribute">model</span>,huggingface/CodeBERTa-small-v1,<span class="hljs-number">4362460</span>,<span class="hljs-number">2021</span>-<span class="hljs-number">01</span>-<span class="hljs-number">23</span>T00:<span class="hljs-number">00</span>:<span class="hljs-number">00</span>.<span class="hljs-number">000</span>Z,<span class="hljs-number">7</span>
<span class="hljs-attribute">model</span>,huggingface/CodeBERTa-small-v1,<span class="hljs-number">4362460</span>,<span class="hljs-number">2021</span>-<span class="hljs-number">01</span>-<span class="hljs-number">24</span>T00:<span class="hljs-number">00</span>:<span class="hljs-number">00</span>.<span class="hljs-number">000</span>Z,<span class="hljs-number">2</span>
<span class="hljs-attribute">dataset</span>,huggingface/documentation-images,<span class="hljs-number">2167284</span>,<span class="hljs-number">2021</span>-<span class="hljs-number">11</span>-<span class="hljs-number">27</span>T00:<span class="hljs-number">00</span>:<span class="hljs-number">00</span>.<span class="hljs-number">000</span>Z,<span class="hljs-number">3</span>
<span class="hljs-attribute">dataset</span>,huggingface/documentation-images,<span class="hljs-number">2167284</span>,<span class="hljs-number">2021</span>-<span class="hljs-number">11</span>-<span class="hljs-number">28</span>T00:<span class="hljs-number">00</span>:<span class="hljs-number">00</span>.<span class="hljs-number">000</span>Z,<span class="hljs-number">18</span>
<span class="hljs-attribute">dataset</span>,huggingface/documentation-images,<span class="hljs-number">2167284</span>,<span class="hljs-number">2021</span>-<span class="hljs-number">11</span>-<span class="hljs-number">29</span>T00:<span class="hljs-number">00</span>:<span class="hljs-number">00</span>.<span class="hljs-number">000</span>Z,<span class="hljs-number">7</span>`,wrap:!1}}),A=new W({props:{title:"Repository Object Structure",local:"repository-object-structure",headingTag:"h3"}}),V=new Ce({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/enterprise-hub-analytics.md"}}),{c(){p=o("meta"),r=n(),y=o("p"),u=n(),h(i.$$.fragment),w=n(),h(M.$$.fragment),R=n(),h(T.$$.fragment),z=n(),v=o("p"),v.textContent=ne,L=n(),c=o("div"),c.innerHTML=le,Y=n(),h(x.$$.fragment),B=n(),C=o("p"),C.textContent=ie,G=n(),h(D.$$.fragment),F=n(),J=o("p"),J.textContent=pe,P=n(),h(k.$$.fragment),H=n(),Z=o("p"),Z.textContent=re,I=n(),h(E.$$.fragment),X=n(),h(A.$$.fragment),O=n(),_=o("p"),_.textContent=oe,q=n(),N=o("ul"),N.innerHTML=me,K=n(),U=o("p"),U.textContent=ue,ee=n(),h(V.$$.fragment),te=n(),S=o("p"),this.h()},l(e){const t=we("svelte-u9bgzb",document.head);p=m(t,"META",{name:!0,content:!0}),t.forEach(s),r=l(e),y=m(e,"P",{}),he(y).forEach(s),u=l(e),d(i.$$.fragment,e),w=l(e),d(M.$$.fragment,e),R=l(e),d(T.$$.fragment,e),z=l(e),v=m(e,"P",{"data-svelte-h":!0}),j(v)!=="svelte-3ug4nx"&&(v.textContent=ne),L=l(e),c=m(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),j(c)!=="svelte-tod83s"&&(c.innerHTML=le),Y=l(e),d(x.$$.fragment,e),B=l(e),C=m(e,"P",{"data-svelte-h":!0}),j(C)!=="svelte-1p6vdwj"&&(C.textContent=ie),G=l(e),d(D.$$.fragment,e),F=l(e),J=m(e,"P",{"data-svelte-h":!0}),j(J)!=="svelte-138t8no"&&(J.textContent=pe),P=l(e),d(k.$$.fragment,e),H=l(e),Z=m(e,"P",{"data-svelte-h":!0}),j(Z)!=="svelte-1vjh4fq"&&(Z.textContent=re),I=l(e),d(E.$$.fragment,e),X=l(e),d(A.$$.fragment,e),O=l(e),_=m(e,"P",{"data-svelte-h":!0}),j(_)!=="svelte-2793k5"&&(_.textContent=oe),q=l(e),N=m(e,"UL",{"data-svelte-h":!0}),j(N)!=="svelte-18vxi6r"&&(N.innerHTML=me),K=l(e),U=m(e,"P",{"data-svelte-h":!0}),j(U)!=="svelte-8p6h6l"&&(U.textContent=ue),ee=l(e),d(V.$$.fragment,e),te=l(e),S=m(e,"P",{}),he(S).forEach(s),this.h()},h(){ae(p,"name","hf:doc:metadata"),ae(p,"content",ke),ae(c,"class","flex justify-center"),Me(c,"max-width","550px")},m(e,t){Te(document.head,p),a(e,r,t),a(e,y,t),a(e,u,t),f(i,e,t),a(e,w,t),f(M,e,t),a(e,R,t),f(T,e,t),a(e,z,t),a(e,v,t),a(e,L,t),a(e,c,t),a(e,Y,t),f(x,e,t),a(e,B,t),a(e,C,t),a(e,G,t),f(D,e,t),a(e,F,t),a(e,J,t),a(e,P,t),f(k,e,t),a(e,H,t),a(e,Z,t),a(e,I,t),f(E,e,t),a(e,X,t),f(A,e,t),a(e,O,t),a(e,_,t),a(e,q,t),a(e,N,t),a(e,K,t),a(e,U,t),a(e,ee,t),f(V,e,t),a(e,te,t),a(e,S,t),se=!0},p(e,[t]){const ce={};t&2&&(ce.$$scope={dirty:t,ctx:e}),M.$set(ce)},i(e){se||(b(i.$$.fragment,e),b(M.$$.fragment,e),b(T.$$.fragment,e),b(x.$$.fragment,e),b(D.$$.fragment,e),b(k.$$.fragment,e),b(E.$$.fragment,e),b(A.$$.fragment,e),b(V.$$.fragment,e),se=!0)},o(e){g(i.$$.fragment,e),g(M.$$.fragment,e),g(T.$$.fragment,e),g(x.$$.fragment,e),g(D.$$.fragment,e),g(k.$$.fragment,e),g(E.$$.fragment,e),g(A.$$.fragment,e),g(V.$$.fragment,e),se=!1},d(e){e&&(s(r),s(y),s(u),s(w),s(R),s(z),s(v),s(L),s(c),s(Y),s(B),s(C),s(G),s(F),s(J),s(P),s(H),s(Z),s(I),s(X),s(O),s(_),s(q),s(N),s(K),s(U),s(ee),s(te),s(S)),s(p),$(i,e),$(M,e),$(T,e),$(x,e),$(D,e),$(k,e),$(E,e),$(A,e),$(V,e)}}}const ke='{"title":"Analytics","local":"analytics","sections":[{"title":"Analytics Dashboard","local":"analytics-dashboard","sections":[{"title":"Per-repo breakdown","local":"per-repo-breakdown","sections":[],"depth":3}],"depth":2},{"title":"Export Analytics as CSV","local":"export-analytics-as-csv","sections":[{"title":"Response Structure","local":"response-structure","sections":[],"depth":3},{"title":"Repository Object Structure","local":"repository-object-structure","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ze(Q){return ge(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ve extends je{constructor(p){super(),ye(this,p,Ze,Je,be,{})}}export{Ve as component};
