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 c,A as we,h as m,f as s,c as l,j as he,u as h,x as $,k as Q,y as Me,a,v as d,d as f,t as b,w as g,m as de,n as fe}from"../chunks/index.fcd4cc08.js";import{T as Te}from"../chunks/Tip.b09c67cf.js";import{C as ve}from"../chunks/CodeBlock.7b16bdef.js";import{H as W,E as xe}from"../chunks/EditOnGithub.da2b595c.js";function Ce(R){let r,p,j="Enterprise Hub",u;return{c(){r=de("This feature is part of the "),p=o("a"),p.textContent=j,u=de("."),this.h()},l(i){r=fe(i,"This feature is part of the "),p=m(i,"A",{href:!0,target:!0,"data-svelte-h":!0}),$(p)!=="svelte-170ex92"&&(p.textContent=j),u=fe(i,"."),this.h()},h(){Q(p,"href","https://huggingface.co/enterprise"),Q(p,"target","_blank")},m(i,y){a(i,r,y),a(i,p,y),a(i,u,y)},p:$e,d(i){i&&(s(r),s(p),s(u))}}}function De(R){let r,p,j,u,i,y,w,z,T,L,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.",Y,M,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."/>',B,x,G,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.",F,D,P,k,re="Download a comprehensive CSV file containing analytics for all your repositories, including model and dataset download activity.",H,J,I,Z,pe="The CSV file is made of daily download records for each of your model and dataset.",X,E,O,A,q,_,oe="Each record in the CSV contains:",K,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>",ee,U,ue="Records are ordered chronologically and provide a daily granular view of download activity for each repository.",te,V,se,S,ae;return i=new W({props:{title:"Analytics",local:"analytics",headingTag:"h1"}}),w=new Te({props:{warning:!0,$$slots:{default:[Ce]},$$scope:{ctx:R}}}),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"}}),J=new W({props:{title:"Response Structure",local:"response-structure",headingTag:"h3"}}),E=new ve({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 xe({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/enterprise-hub-analytics.md"}}),{c(){r=o("meta"),p=n(),j=o("p"),u=n(),c(i.$$.fragment),y=n(),c(w.$$.fragment),z=n(),c(T.$$.fragment),L=n(),v=o("p"),v.textContent=ne,Y=n(),M=o("div"),M.innerHTML=le,B=n(),c(x.$$.fragment),G=n(),C=o("p"),C.textContent=ie,F=n(),c(D.$$.fragment),P=n(),k=o("p"),k.textContent=re,H=n(),c(J.$$.fragment),I=n(),Z=o("p"),Z.textContent=pe,X=n(),c(E.$$.fragment),O=n(),c(A.$$.fragment),q=n(),_=o("p"),_.textContent=oe,K=n(),N=o("ul"),N.innerHTML=me,ee=n(),U=o("p"),U.textContent=ue,te=n(),c(V.$$.fragment),se=n(),S=o("p"),this.h()},l(e){const t=we("svelte-u9bgzb",document.head);r=m(t,"META",{name:!0,content:!0}),t.forEach(s),p=l(e),j=m(e,"P",{}),he(j).forEach(s),u=l(e),h(i.$$.fragment,e),y=l(e),h(w.$$.fragment,e),z=l(e),h(T.$$.fragment,e),L=l(e),v=m(e,"P",{"data-svelte-h":!0}),$(v)!=="svelte-3ug4nx"&&(v.textContent=ne),Y=l(e),M=m(e,"DIV",{class:!0,"data-svelte-h":!0}),$(M)!=="svelte-1i4b4dh"&&(M.innerHTML=le),B=l(e),h(x.$$.fragment,e),G=l(e),C=m(e,"P",{"data-svelte-h":!0}),$(C)!=="svelte-1p6vdwj"&&(C.textContent=ie),F=l(e),h(D.$$.fragment,e),P=l(e),k=m(e,"P",{"data-svelte-h":!0}),$(k)!=="svelte-138t8no"&&(k.textContent=re),H=l(e),h(J.$$.fragment,e),I=l(e),Z=m(e,"P",{"data-svelte-h":!0}),$(Z)!=="svelte-16lrz06"&&(Z.textContent=pe),X=l(e),h(E.$$.fragment,e),O=l(e),h(A.$$.fragment,e),q=l(e),_=m(e,"P",{"data-svelte-h":!0}),$(_)!=="svelte-2793k5"&&(_.textContent=oe),K=l(e),N=m(e,"UL",{"data-svelte-h":!0}),$(N)!=="svelte-18vxi6r"&&(N.innerHTML=me),ee=l(e),U=m(e,"P",{"data-svelte-h":!0}),$(U)!=="svelte-8p6h6l"&&(U.textContent=ue),te=l(e),h(V.$$.fragment,e),se=l(e),S=m(e,"P",{}),he(S).forEach(s),this.h()},h(){Q(r,"name","hf:doc:metadata"),Q(r,"content",ke),Q(M,"class","flex justify-center")},m(e,t){Me(document.head,r),a(e,p,t),a(e,j,t),a(e,u,t),d(i,e,t),a(e,y,t),d(w,e,t),a(e,z,t),d(T,e,t),a(e,L,t),a(e,v,t),a(e,Y,t),a(e,M,t),a(e,B,t),d(x,e,t),a(e,G,t),a(e,C,t),a(e,F,t),d(D,e,t),a(e,P,t),a(e,k,t),a(e,H,t),d(J,e,t),a(e,I,t),a(e,Z,t),a(e,X,t),d(E,e,t),a(e,O,t),d(A,e,t),a(e,q,t),a(e,_,t),a(e,K,t),a(e,N,t),a(e,ee,t),a(e,U,t),a(e,te,t),d(V,e,t),a(e,se,t),a(e,S,t),ae=!0},p(e,[t]){const ce={};t&2&&(ce.$$scope={dirty:t,ctx:e}),w.$set(ce)},i(e){ae||(f(i.$$.fragment,e),f(w.$$.fragment,e),f(T.$$.fragment,e),f(x.$$.fragment,e),f(D.$$.fragment,e),f(J.$$.fragment,e),f(E.$$.fragment,e),f(A.$$.fragment,e),f(V.$$.fragment,e),ae=!0)},o(e){b(i.$$.fragment,e),b(w.$$.fragment,e),b(T.$$.fragment,e),b(x.$$.fragment,e),b(D.$$.fragment,e),b(J.$$.fragment,e),b(E.$$.fragment,e),b(A.$$.fragment,e),b(V.$$.fragment,e),ae=!1},d(e){e&&(s(p),s(j),s(u),s(y),s(z),s(L),s(v),s(Y),s(M),s(B),s(G),s(C),s(F),s(P),s(k),s(H),s(I),s(Z),s(X),s(O),s(q),s(_),s(K),s(N),s(ee),s(U),s(te),s(se),s(S)),s(r),g(i,e),g(w,e),g(T,e),g(x,e),g(D,e),g(J,e),g(E,e),g(A,e),g(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 Je(R){return ge(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ue extends je{constructor(r){super(),ye(this,r,Je,De,be,{})}}export{Ue as component};
