import{s as q,n as A,o as G}from"../chunks/scheduler.d6170356.js";import{S as j,i as F,g as h,s as m,r as y,A as N,h as p,f as a,c as u,j as z,u as x,x as I,k as U,y as O,a as s,v as P,d as E,t as L,w as M}from"../chunks/index.fcd4cc08.js";import{H as k,E as R}from"../chunks/EditOnGithub.da2b595c.js";function B(S){let o,w,c,g,n,$,d,_,l,C="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:",b,i,D='<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="/docs/datasets/dataset_script">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,r,v,f,T;return n=new k({props:{title:"Datasets Download Stats",local:"datasets-download-stats",headingTag:"h1"}}),d=new k({props:{title:"How are download stats generated for datasets?",local:"how-are-download-stats-generated-for-datasets",headingTag:"h2"}}),r=new R({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-download-stats.md"}}),{c(){o=h("meta"),w=m(),c=h("p"),g=m(),y(n.$$.fragment),$=m(),y(d.$$.fragment),_=m(),l=h("p"),l.innerHTML=C,b=m(),i=h("ul"),i.innerHTML=D,H=m(),y(r.$$.fragment),v=m(),f=h("p"),this.h()},l(t){const e=N("svelte-u9bgzb",document.head);o=p(e,"META",{name:!0,content:!0}),e.forEach(a),w=u(t),c=p(t,"P",{}),z(c).forEach(a),g=u(t),x(n.$$.fragment,t),$=u(t),x(d.$$.fragment,t),_=u(t),l=p(t,"P",{"data-svelte-h":!0}),I(l)!=="svelte-gzgmn4"&&(l.innerHTML=C),b=u(t),i=p(t,"UL",{"data-svelte-h":!0}),I(i)!=="svelte-1q4xz7"&&(i.innerHTML=D),H=u(t),x(r.$$.fragment,t),v=u(t),f=p(t,"P",{}),z(f).forEach(a),this.h()},h(){U(o,"name","hf:doc:metadata"),U(o,"content",J)},m(t,e){O(document.head,o),s(t,w,e),s(t,c,e),s(t,g,e),P(n,t,e),s(t,$,e),P(d,t,e),s(t,_,e),s(t,l,e),s(t,b,e),s(t,i,e),s(t,H,e),P(r,t,e),s(t,v,e),s(t,f,e),T=!0},p:A,i(t){T||(E(n.$$.fragment,t),E(d.$$.fragment,t),E(r.$$.fragment,t),T=!0)},o(t){L(n.$$.fragment,t),L(d.$$.fragment,t),L(r.$$.fragment,t),T=!1},d(t){t&&(a(w),a(c),a(g),a($),a(_),a(l),a(b),a(i),a(H),a(v),a(f)),a(o),M(n,t),M(d,t),M(r,t)}}}const J='{"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 K(S){return G(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class X extends j{constructor(o){super(),F(this,o,K,B,q,{})}}export{X as component};
