import{s as A,n as G,o as j}from"../chunks/scheduler.d6170356.js";import{S as q,i as F,g as h,s as m,r as y,A as N,h as p,f as a,c,j as I,u as x,x as U,k,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 z,E as R}from"../chunks/EditOnGithub.da2b595c.js";function B(S){let o,w,u,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="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,r,v,f,T;return n=new z({props:{title:"Datasets Download Stats",local:"datasets-download-stats",headingTag:"h1"}}),d=new z({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(),u=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=c(t),u=p(t,"P",{}),I(u).forEach(a),g=c(t),x(n.$$.fragment,t),$=c(t),x(d.$$.fragment,t),_=c(t),l=p(t,"P",{"data-svelte-h":!0}),U(l)!=="svelte-gzgmn4"&&(l.innerHTML=C),b=c(t),i=p(t,"UL",{"data-svelte-h":!0}),U(i)!=="svelte-1146ddy"&&(i.innerHTML=D),H=c(t),x(r.$$.fragment,t),v=c(t),f=p(t,"P",{}),I(f).forEach(a),this.h()},h(){k(o,"name","hf:doc:metadata"),k(o,"content",J)},m(t,e){O(document.head,o),s(t,w,e),s(t,u,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:G,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(u),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 j(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class X extends q{constructor(o){super(),F(this,o,K,B,A,{})}}export{X as component};
