import{s as k,n as z,o as A}from"../chunks/scheduler.d6170356.js";import{S as j,i as q,g as h,s as i,r as x,A as F,h as u,f as a,c,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,m,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 <a href="https://huggingface.co/docs/datasets/dataset_script" rel="nofollow">script</a> 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,f,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=h("meta"),p=i(),m=h("p"),w=i(),x(n.$$.fragment),g=i(),x(l.$$.fragment),_=i(),d=h("p"),d.innerHTML=b,$=i(),r=h("ul"),r.innerHTML=y,H=i(),f=h("p"),this.h()},l(e){const t=F("svelte-u9bgzb",document.head);o=u(t,"META",{name:!0,content:!0}),t.forEach(a),p=c(e),m=u(e,"P",{}),P(m).forEach(a),w=c(e),L(n.$$.fragment,e),g=c(e),L(l.$$.fragment,e),_=c(e),d=u(e,"P",{"data-svelte-h":!0}),M(d)!=="svelte-gzgmn4"&&(d.innerHTML=b),$=c(e),r=u(e,"UL",{"data-svelte-h":!0}),M(r)!=="svelte-1146ddy"&&(r.innerHTML=y),H=c(e),f=u(e,"P",{}),P(f).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,m,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,f,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(m),a(w),a(g),a(_),a(d),a($),a(r),a(H),a(f)),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};
