import{s as k,n as z,o as A}from"../chunks/scheduler.d6170356.js";import{S as j,i as q,g as u,s as i,r as x,A as F,h as f,f as a,c as m,j as P,u as L,x as M,k as S,y as G,a as s,v as C,d as D,t as E,w as I}from"../chunks/index.fcd4cc08.js";import{H as U}from"../chunks/Heading.8660bd0e.js";function N(T){let o,p,c,w,n,g,l,_,d,b="The Hub provides download stats for all datasets loadable via the <code>datasets</code> library. To determine the number of downloads, the Hub counts every time <code>load_dataset</code> is called in Python, excluding Hugging Face’s CI tooling on GitHub. No information is sent from the user, and no additional calls are made for this. The count is done server-side as we serve files for downloads. This means that:",$,r,y="<li>The download count is the same regardless of whether the data is directly stored on the Hub repo or if the repository has a script to load the data from an external source.</li> <li>If a user manually downloads the data using tools like <code>wget</code> or the Hub’s user interface (UI), those downloads will not be included in the download count.</li>",H,h,v;return n=new U({props:{title:"Datasets Download Stats",local:"datasets-download-stats",headingTag:"h1"}}),l=new U({props:{title:"How are download stats generated for datasets?",local:"how-are-download-stats-generated-for-datasets",headingTag:"h2"}}),{c(){o=u("meta"),p=i(),c=u("p"),w=i(),x(n.$$.fragment),g=i(),x(l.$$.fragment),_=i(),d=u("p"),d.innerHTML=b,$=i(),r=u("ul"),r.innerHTML=y,H=i(),h=u("p"),this.h()},l(e){const t=F("svelte-u9bgzb",document.head);o=f(t,"META",{name:!0,content:!0}),t.forEach(a),p=m(e),c=f(e,"P",{}),P(c).forEach(a),w=m(e),L(n.$$.fragment,e),g=m(e),L(l.$$.fragment,e),_=m(e),d=f(e,"P",{"data-svelte-h":!0}),M(d)!=="svelte-gzgmn4"&&(d.innerHTML=b),$=m(e),r=f(e,"UL",{"data-svelte-h":!0}),M(r)!=="svelte-1hpg7h7"&&(r.innerHTML=y),H=m(e),h=f(e,"P",{}),P(h).forEach(a),this.h()},h(){S(o,"name","hf:doc:metadata"),S(o,"content",R)},m(e,t){G(document.head,o),s(e,p,t),s(e,c,t),s(e,w,t),C(n,e,t),s(e,g,t),C(l,e,t),s(e,_,t),s(e,d,t),s(e,$,t),s(e,r,t),s(e,H,t),s(e,h,t),v=!0},p:z,i(e){v||(D(n.$$.fragment,e),D(l.$$.fragment,e),v=!0)},o(e){E(n.$$.fragment,e),E(l.$$.fragment,e),v=!1},d(e){e&&(a(p),a(c),a(w),a(g),a(_),a(d),a($),a(r),a(H),a(h)),a(o),I(n,e),I(l,e)}}}const R='{"title":"Datasets Download Stats","local":"datasets-download-stats","sections":[{"title":"How are download stats generated for datasets?","local":"how-are-download-stats-generated-for-datasets","sections":[],"depth":2}],"depth":1}';function B(T){return A(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Q extends j{constructor(o){super(),q(this,o,B,N,k,{})}}export{Q as component};
