import{s as fe,n as ge,o as ye}from"../chunks/scheduler.9cda857a.js";import{S as je,i as Me,e as i,s as n,c as m,h as $e,a as r,d as t,b as l,f as be,g as u,j as c,k as ne,q as we,l as Te,m as a,n as h,t as d,o as b,p as f}from"../chunks/index.003612b0.js";import{C as ve}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{C as xe}from"../chunks/CodeBlock.a90632f1.js";import{H as U,E as Ce}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function De(le){let p,L,_,S,y,W,j,Q,g,ie='<p>This feature is part of the <a href="https://huggingface.co/enterprise">Team &amp; Enterprise</a> plans.</p>',R,M,z,$,re="Track all your repository activity with a detailed downloads overview that shows total downloads for all the Models and Datasets published by your organization. Toggle between “All Time” and “Last Month” views to gain insights across your repositories over different periods.",B,o,pe='<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."/>',P,w,Y,T,oe="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,v,F,x,me="Download a comprehensive CSV file containing analytics for all your repositories, including model and dataset download activity.",H,C,I,D,ue="The CSV file is made of daily download records for each of your models and datasets.",O,k,X,J,q,Z,ce="Each record in the CSV contains:",K,E,he="<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,A,de="Records are ordered chronologically and provide a daily granular view of download activity for each repository.",se,N,te,V,ae;return y=new ve({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),j=new U({props:{title:"Analytics",local:"analytics",headingTag:"h1"}}),M=new U({props:{title:"Publisher Analytics Dashboard",local:"publisher-analytics-dashboard",headingTag:"h2"}}),w=new U({props:{title:"Per-repo breakdown",local:"per-repo-breakdown",headingTag:"h3"}}),v=new U({props:{title:"Export Publisher Analytics as CSV",local:"export-publisher-analytics-as-csv",headingTag:"h2"}}),C=new U({props:{title:"Response Structure",local:"response-structure",headingTag:"h3"}}),k=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}}),J=new U({props:{title:"Repository Object Structure",local:"repository-object-structure",headingTag:"h3"}}),N=new Ce({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/enterprise-hub-analytics.md"}}),{c(){p=i("meta"),L=n(),_=i("p"),S=n(),m(y.$$.fragment),W=n(),m(j.$$.fragment),Q=n(),g=i("blockquote"),g.innerHTML=ie,R=n(),m(M.$$.fragment),z=n(),$=i("p"),$.textContent=re,B=n(),o=i("div"),o.innerHTML=pe,P=n(),m(w.$$.fragment),Y=n(),T=i("p"),T.textContent=oe,G=n(),m(v.$$.fragment),F=n(),x=i("p"),x.textContent=me,H=n(),m(C.$$.fragment),I=n(),D=i("p"),D.textContent=ue,O=n(),m(k.$$.fragment),X=n(),m(J.$$.fragment),q=n(),Z=i("p"),Z.textContent=ce,K=n(),E=i("ul"),E.innerHTML=he,ee=n(),A=i("p"),A.textContent=de,se=n(),m(N.$$.fragment),te=n(),V=i("p"),this.h()},l(e){const s=$e("svelte-u9bgzb",document.head);p=r(s,"META",{name:!0,content:!0}),s.forEach(t),L=l(e),_=r(e,"P",{}),be(_).forEach(t),S=l(e),u(y.$$.fragment,e),W=l(e),u(j.$$.fragment,e),Q=l(e),g=r(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),c(g)!=="svelte-16y0s3r"&&(g.innerHTML=ie),R=l(e),u(M.$$.fragment,e),z=l(e),$=r(e,"P",{"data-svelte-h":!0}),c($)!=="svelte-17fnte0"&&($.textContent=re),B=l(e),o=r(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),c(o)!=="svelte-tod83s"&&(o.innerHTML=pe),P=l(e),u(w.$$.fragment,e),Y=l(e),T=r(e,"P",{"data-svelte-h":!0}),c(T)!=="svelte-1p6vdwj"&&(T.textContent=oe),G=l(e),u(v.$$.fragment,e),F=l(e),x=r(e,"P",{"data-svelte-h":!0}),c(x)!=="svelte-138t8no"&&(x.textContent=me),H=l(e),u(C.$$.fragment,e),I=l(e),D=r(e,"P",{"data-svelte-h":!0}),c(D)!=="svelte-1vjh4fq"&&(D.textContent=ue),O=l(e),u(k.$$.fragment,e),X=l(e),u(J.$$.fragment,e),q=l(e),Z=r(e,"P",{"data-svelte-h":!0}),c(Z)!=="svelte-2793k5"&&(Z.textContent=ce),K=l(e),E=r(e,"UL",{"data-svelte-h":!0}),c(E)!=="svelte-18vxi6r"&&(E.innerHTML=he),ee=l(e),A=r(e,"P",{"data-svelte-h":!0}),c(A)!=="svelte-8p6h6l"&&(A.textContent=de),se=l(e),u(N.$$.fragment,e),te=l(e),V=r(e,"P",{}),be(V).forEach(t),this.h()},h(){ne(p,"name","hf:doc:metadata"),ne(p,"content",ke),ne(g,"class","warning"),ne(o,"class","flex justify-center"),we(o,"max-width","550px")},m(e,s){Te(document.head,p),a(e,L,s),a(e,_,s),a(e,S,s),h(y,e,s),a(e,W,s),h(j,e,s),a(e,Q,s),a(e,g,s),a(e,R,s),h(M,e,s),a(e,z,s),a(e,$,s),a(e,B,s),a(e,o,s),a(e,P,s),h(w,e,s),a(e,Y,s),a(e,T,s),a(e,G,s),h(v,e,s),a(e,F,s),a(e,x,s),a(e,H,s),h(C,e,s),a(e,I,s),a(e,D,s),a(e,O,s),h(k,e,s),a(e,X,s),h(J,e,s),a(e,q,s),a(e,Z,s),a(e,K,s),a(e,E,s),a(e,ee,s),a(e,A,s),a(e,se,s),h(N,e,s),a(e,te,s),a(e,V,s),ae=!0},p:ge,i(e){ae||(d(y.$$.fragment,e),d(j.$$.fragment,e),d(M.$$.fragment,e),d(w.$$.fragment,e),d(v.$$.fragment,e),d(C.$$.fragment,e),d(k.$$.fragment,e),d(J.$$.fragment,e),d(N.$$.fragment,e),ae=!0)},o(e){b(y.$$.fragment,e),b(j.$$.fragment,e),b(M.$$.fragment,e),b(w.$$.fragment,e),b(v.$$.fragment,e),b(C.$$.fragment,e),b(k.$$.fragment,e),b(J.$$.fragment,e),b(N.$$.fragment,e),ae=!1},d(e){e&&(t(L),t(_),t(S),t(W),t(Q),t(g),t(R),t(z),t($),t(B),t(o),t(P),t(Y),t(T),t(G),t(F),t(x),t(H),t(I),t(D),t(O),t(X),t(q),t(Z),t(K),t(E),t(ee),t(A),t(se),t(te),t(V)),t(p),f(y,e),f(j,e),f(M,e),f(w,e),f(v,e),f(C,e),f(k,e),f(J,e),f(N,e)}}}const ke='{"title":"Analytics","local":"analytics","sections":[{"title":"Publisher Analytics Dashboard","local":"publisher-analytics-dashboard","sections":[{"title":"Per-repo breakdown","local":"per-repo-breakdown","sections":[],"depth":3}],"depth":2},{"title":"Export Publisher Analytics as CSV","local":"export-publisher-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(le){return ye(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class _e extends je{constructor(p){super(),Me(this,p,Je,De,fe,{})}}export{_e as component};
