import{s as fe,o as ge,n as $e}from"../chunks/scheduler.12fdeddc.js";import{S as je,i as ye,g as o,s as n,r as h,A as we,h as u,f as t,c as l,j as he,u as d,x as j,k as ae,l as Me,y as Te,a,v as b,d as f,t as g,w as $,m as de,n as be}from"../chunks/index.88dae322.js";import{T as ve}from"../chunks/Tip.64e66512.js";import{C as xe}from"../chunks/CodeBlock.8e54a086.js";import{H as W,E as Ce}from"../chunks/getInferenceSnippets.00466244.js";function De(Q){let r,p,y="Team & Enterprise",m;return{c(){r=de("This feature is part of the "),p=o("a"),p.textContent=y,m=de(" plans."),this.h()},l(i){r=be(i,"This feature is part of the "),p=u(i,"A",{href:!0,"data-svelte-h":!0}),j(p)!=="svelte-1859u5z"&&(p.textContent=y),m=be(i," plans."),this.h()},h(){ae(p,"href","https://huggingface.co/enterprise")},m(i,w){a(i,r,w),a(i,p,w),a(i,m,w)},p:$e,d(i){i&&(t(r),t(p),t(m))}}}function Je(Q){let r,p,y,m,i,w,M,R,T,z,v,ne="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.",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."/>',P,x,Y,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.",B,D,G,J,re="Download a comprehensive CSV file containing analytics for all your repositories, including model and dataset download activity.",F,k,I,Z,pe="The CSV file is made of daily download records for each of your models and datasets.",H,E,X,A,O,_,oe="Each record in the CSV contains:",q,N,ue="<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,me="Records are ordered chronologically and provide a daily granular view of download activity for each repository.",ee,V,se,S,te;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:"Publisher Analytics Dashboard",local:"publisher-analytics-dashboard",headingTag:"h2"}}),x=new W({props:{title:"Per-repo breakdown",local:"per-repo-breakdown",headingTag:"h3"}}),D=new W({props:{title:"Export Publisher Analytics as CSV",local:"export-publisher-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(){r=o("meta"),p=n(),y=o("p"),m=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,P=n(),h(x.$$.fragment),Y=n(),C=o("p"),C.textContent=ie,B=n(),h(D.$$.fragment),G=n(),J=o("p"),J.textContent=re,F=n(),h(k.$$.fragment),I=n(),Z=o("p"),Z.textContent=pe,H=n(),h(E.$$.fragment),X=n(),h(A.$$.fragment),O=n(),_=o("p"),_.textContent=oe,q=n(),N=o("ul"),N.innerHTML=ue,K=n(),U=o("p"),U.textContent=me,ee=n(),h(V.$$.fragment),se=n(),S=o("p"),this.h()},l(e){const s=we("svelte-u9bgzb",document.head);r=u(s,"META",{name:!0,content:!0}),s.forEach(t),p=l(e),y=u(e,"P",{}),he(y).forEach(t),m=l(e),d(i.$$.fragment,e),w=l(e),d(M.$$.fragment,e),R=l(e),d(T.$$.fragment,e),z=l(e),v=u(e,"P",{"data-svelte-h":!0}),j(v)!=="svelte-17fnte0"&&(v.textContent=ne),L=l(e),c=u(e,"DIV",{class:!0,style:!0,"data-svelte-h":!0}),j(c)!=="svelte-tod83s"&&(c.innerHTML=le),P=l(e),d(x.$$.fragment,e),Y=l(e),C=u(e,"P",{"data-svelte-h":!0}),j(C)!=="svelte-1p6vdwj"&&(C.textContent=ie),B=l(e),d(D.$$.fragment,e),G=l(e),J=u(e,"P",{"data-svelte-h":!0}),j(J)!=="svelte-138t8no"&&(J.textContent=re),F=l(e),d(k.$$.fragment,e),I=l(e),Z=u(e,"P",{"data-svelte-h":!0}),j(Z)!=="svelte-1vjh4fq"&&(Z.textContent=pe),H=l(e),d(E.$$.fragment,e),X=l(e),d(A.$$.fragment,e),O=l(e),_=u(e,"P",{"data-svelte-h":!0}),j(_)!=="svelte-2793k5"&&(_.textContent=oe),q=l(e),N=u(e,"UL",{"data-svelte-h":!0}),j(N)!=="svelte-18vxi6r"&&(N.innerHTML=ue),K=l(e),U=u(e,"P",{"data-svelte-h":!0}),j(U)!=="svelte-8p6h6l"&&(U.textContent=me),ee=l(e),d(V.$$.fragment,e),se=l(e),S=u(e,"P",{}),he(S).forEach(t),this.h()},h(){ae(r,"name","hf:doc:metadata"),ae(r,"content",ke),ae(c,"class","flex justify-center"),Me(c,"max-width","550px")},m(e,s){Te(document.head,r),a(e,p,s),a(e,y,s),a(e,m,s),b(i,e,s),a(e,w,s),b(M,e,s),a(e,R,s),b(T,e,s),a(e,z,s),a(e,v,s),a(e,L,s),a(e,c,s),a(e,P,s),b(x,e,s),a(e,Y,s),a(e,C,s),a(e,B,s),b(D,e,s),a(e,G,s),a(e,J,s),a(e,F,s),b(k,e,s),a(e,I,s),a(e,Z,s),a(e,H,s),b(E,e,s),a(e,X,s),b(A,e,s),a(e,O,s),a(e,_,s),a(e,q,s),a(e,N,s),a(e,K,s),a(e,U,s),a(e,ee,s),b(V,e,s),a(e,se,s),a(e,S,s),te=!0},p(e,[s]){const ce={};s&2&&(ce.$$scope={dirty:s,ctx:e}),M.$set(ce)},i(e){te||(f(i.$$.fragment,e),f(M.$$.fragment,e),f(T.$$.fragment,e),f(x.$$.fragment,e),f(D.$$.fragment,e),f(k.$$.fragment,e),f(E.$$.fragment,e),f(A.$$.fragment,e),f(V.$$.fragment,e),te=!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),te=!1},d(e){e&&(t(p),t(y),t(m),t(w),t(R),t(z),t(v),t(L),t(c),t(P),t(Y),t(C),t(B),t(G),t(J),t(F),t(I),t(Z),t(H),t(X),t(O),t(_),t(q),t(N),t(K),t(U),t(ee),t(se),t(S)),t(r),$(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":"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 Ze(Q){return ge(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ve extends je{constructor(r){super(),ye(this,r,Ze,Je,fe,{})}}export{Ve as component};
