import{s as Sc,o as Qc,n as $m}from"../chunks/scheduler.9bc65507.js";import{S as Fc,i as Ac,g as a,s as n,r,A as Ec,h as p,f as s,c as i,j as Wc,u as d,x as o,k as Lc,y as Pc,a as l,v as m,d as f,t as u,w as c}from"../chunks/index.707bf1b6.js";import{T as Mm}from"../chunks/Tip.c2ecdbf4.js";import{C as w}from"../chunks/CodeBlock.54a9f38d.js";import{H as h}from"../chunks/Heading.342b1fa6.js";function Yc(b){let y,$="This plugin doesn’t work with <code>-n</code> flag from <code>pytest-xdist</code>.";return{c(){y=a("p"),y.innerHTML=$},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-1p59ipz"&&(y.innerHTML=$)},m(M,T){l(M,y,T)},p:$m,d(M){M&&s(y)}}}function qc(b){let y,$="There is another plugin <code>pytest-repeat</code>, but it doesn’t work with <code>unittest</code>.";return{c(){y=a("p"),y.innerHTML=$},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-huhi42"&&(y.innerHTML=$)},m(M,T){l(M,y,T)},p:$m,d(M){M&&s(y)}}}function Kc(b){let y,$=`In order to run the equivalent of <code>rm -r</code> safely, only subdirs of the project repository checkout are allowed if
an explicit <code>tmp_dir</code> is used, so that by mistake no <code>/tmp</code> or similar important part of the filesystem will
get nuked. i.e. please always pass paths that start with <code>./</code>.`;return{c(){y=a("p"),y.innerHTML=$},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-1fj8gae"&&(y.innerHTML=$)},m(M,T){l(M,y,T)},p:$m,d(M){M&&s(y)}}}function Dc(b){let y,$=`Each test can register multiple temporary directories and they all will get auto-removed, unless requested
otherwise.`;return{c(){y=a("p"),y.textContent=$},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-1r50p82"&&(y.textContent=$)},m(M,T){l(M,y,T)},p:$m,d(M){M&&s(y)}}}function Oc(b){let y,$,M,T,v,Ti,U,Tm="Let’s take a look at how 🤗 Transformers models are tested and how you can write new tests and improve the existing ones.",bi,_,bm="There are 2 test suites in the repository:",gi,I,gm="<li><code>tests</code> — tests for the general API</li> <li><code>examples</code> — tests primarily for various applications that aren’t part of the API</li>",Ji,x,ji,k,Jm=`<li><p>Once a PR is submitted it gets tested with 9 CircleCi jobs. Every new commit to that PR gets retested. These jobs
are defined in this <a href="https://github.com/huggingface/transformers/tree/main/.circleci/config.yml" rel="nofollow">config file</a>, so that if needed you can reproduce the same
environment on your machine.</p> <p>These CI jobs don’t run <code>@slow</code> tests.</p></li> <li><p>There are 3 jobs run by <a href="https://github.com/huggingface/transformers/actions" rel="nofollow">github actions</a>:</p> <ul><li><p><a href="https://github.com/huggingface/transformers/tree/main/.github/workflows/github-torch-hub.yml" rel="nofollow">torch hub integration</a>: checks whether torch hub
integration works.</p></li> <li><p><a href="https://github.com/huggingface/transformers/tree/main/.github/workflows/self-push.yml" rel="nofollow">self-hosted (push)</a>: runs fast tests on GPU only on commits on
<code>main</code>. It only runs if a commit on <code>main</code> has updated the code in one of the following folders: <code>src</code>,
<code>tests</code>, <code>.github</code> (to prevent running on added model cards, notebooks, etc.)</p></li> <li><p><a href="https://github.com/huggingface/transformers/tree/main/.github/workflows/self-scheduled.yml" rel="nofollow">self-hosted runner</a>: runs normal and slow tests on GPU in
<code>tests</code> and <code>examples</code>:</p></li></ul></li>`,Ci,Z,vi,H,jm='The results can be observed <a href="https://github.com/huggingface/transformers/actions" rel="nofollow">here</a>.',Ui,G,_i,X,Ii,B,Cm=`This document goes into many details of how tests can be run. If after reading everything, you need even more details
you will find them <a href="https://docs.pytest.org/en/latest/usage.html" rel="nofollow">here</a>.`,xi,V,vm="Here are some most useful ways of running tests.",ki,R,Um="Run all:",Zi,z,Hi,N,_m="or:",Gi,W,Xi,L,Im="Note that the latter is defined as:",Bi,S,Vi,Q,xm="which tells pytest to:",Ri,F,km="<li>run as many test processes as they are CPU cores (which could be too many if you don’t have a ton of RAM!)</li> <li>ensure that all tests from the same file will be run by the same test process</li> <li>do not capture output</li> <li>run in verbose mode</li>",zi,A,Ni,E,Zm="All tests of the test suite:",Wi,P,Li,Y,Hm="All tests of a given test file:",Si,q,Qi,K,Fi,D,Gm="To run an individual test module:",Ai,O,Ei,ee,Pi,te,Xm=`Since unittest is used inside most of the tests, to run specific subtests you need to know the name of the unittest
class containing those tests. For example, it could be:`,Yi,se,qi,le,Bm="Here:",Ki,ne,Vm="<li><code>tests/test_optimization.py</code> - the file with tests</li> <li><code>OptimizationTest</code> - the name of the class</li> <li><code>test_adam_w</code> - the name of the specific test function</li>",Di,ie,Rm="If the file contains multiple classes, you can choose to run only tests of a given class. For example:",Oi,ae,ea,pe,zm="will run all the tests inside that class.",ta,oe,Nm="As mentioned earlier you can see what tests are contained inside the <code>OptimizationTest</code> class by running:",sa,re,la,de,Wm="You can run tests by keyword expressions.",na,me,Lm="To run only tests whose name contains <code>adam</code>:",ia,fe,aa,ue,Sm=`Logical <code>and</code> and <code>or</code> can be used to indicate whether all keywords should match or either. <code>not</code> can be used to
negate.`,pa,ce,Qm="To run all tests except those whose name contains <code>adam</code>:",oa,we,ra,he,Fm="And you can combine the two patterns in one:",da,ye,ma,Me,Am="For example to run both <code>test_adafactor</code> and <code>test_adam_w</code> you can use:",fa,$e,ua,Te,Em="Note that we use <code>or</code> here, since we want either of the keywords to match to include both.",ca,be,Pm="If you want to include only tests that include both patterns, <code>and</code> is to be used:",wa,ge,ha,Je,ya,je,Ym="Sometimes you need to run <code>accelerate</code> tests on your models. For that you can just add <code>-m accelerate_tests</code> to your command, if let’s say you want to run these tests on <code>OPT</code> run:",Ma,Ce,$a,ve,Ta,Ue,qm=`In order to test whether the documentation examples are correct, you should check that the <code>doctests</code> are passing.
As an example, let’s use <a href="https://github.com/huggingface/transformers/blob/main/src/transformers/models/whisper/modeling_whisper.py#L1017-L1035" rel="nofollow"><code>WhisperModel.forward</code>’s docstring</a>:`,ba,_e,ga,Ie,Km="Just run the following line to automatically test every docstring example in the desired file:",Ja,xe,ja,ke,Dm="If the file has a markdown extention, you should add the <code>--doctest-glob=&quot;*.md&quot;</code> argument.",Ca,Ze,va,He,Om=`You can run the tests related to the unstaged files or the current branch (according to Git) by using <a href="https://github.com/anapaulagomes/pytest-picked" rel="nofollow">pytest-picked</a>. This is a great way of quickly testing your changes didn’t break
anything, since it won’t run the tests related to files you didn’t touch.`,Ua,Ge,_a,Xe,Ia,Be,ef="All tests will be run from files and folders which are modified, but not yet committed.",xa,Ve,ka,Re,tf=`<a href="https://github.com/pytest-dev/pytest-xdist" rel="nofollow">pytest-xdist</a> provides a very useful feature of detecting all failed
tests, and then waiting for you to modify files and continuously re-rerun those failing tests until they pass while you
fix them. So that you don’t need to re start pytest after you made the fix. This is repeated until all tests pass after
which again a full run is performed.`,Za,ze,Ha,Ne,sf="To enter the mode: <code>pytest -f</code> or <code>pytest --looponfail</code>",Ga,We,lf=`File changes are detected by looking at <code>looponfailroots</code> root directories and all of their contents (recursively).
If the default for this value does not work for you, you can change it in your project by setting a configuration
option in <code>setup.cfg</code>:`,Xa,Le,Ba,Se,nf="or <code>pytest.ini</code>/<code>tox.ini</code> files:",Va,Qe,Ra,Fe,af=`This would lead to only looking for file changes in the respective directories, specified relatively to the ini-file’s
directory.`,za,Ae,pf='<a href="https://github.com/joeyespo/pytest-watch" rel="nofollow">pytest-watch</a> is an alternative implementation of this functionality.',Na,Ee,Wa,Pe,of=`If you want to run all test modules, except a few you can exclude them by giving an explicit list of tests to run. For
example, to run all except <code>test_modeling_*.py</code> tests:`,La,Ye,Sa,qe,Qa,Ke,rf="CI builds and when isolation is important (against speed), cache should be cleared:",Fa,De,Aa,Oe,Ea,et,df=`As mentioned earlier <code>make test</code> runs tests in parallel via <code>pytest-xdist</code> plugin (<code>-n X</code> argument, e.g. <code>-n 2</code>
to run 2 parallel jobs).`,Pa,tt,mf=`<code>pytest-xdist</code>’s <code>--dist=</code> option allows one to control how the tests are grouped. <code>--dist=loadfile</code> puts the
tests located in one file onto the same process.`,Ya,st,ff=`Since the order of executed tests is different and unpredictable, if running the test suite with <code>pytest-xdist</code>
produces failures (meaning we have some undetected coupled tests), use <a href="https://github.com/ESSS/pytest-replay" rel="nofollow">pytest-replay</a> to replay the tests in the same order, which should help with then somehow
reducing that failing sequence to a minimum.`,qa,lt,Ka,nt,uf=`It’s good to repeat the tests several times, in sequence, randomly, or in sets, to detect any potential
inter-dependency and state-related bugs (tear down). And the straightforward multiple repetition is just good to detect
some problems that get uncovered by randomness of DL.`,Da,it,Oa,at,cf='<li><a href="https://github.com/dropbox/pytest-flakefinder" rel="nofollow">pytest-flakefinder</a>:</li>',ep,pt,tp,ot,wf="And then run every test multiple times (50 by default):",sp,rt,lp,g,np,J,ip,dt,ap,mt,pp,ft,hf=`Important: the presence of <code>pytest-random-order</code> will automatically randomize tests, no configuration change or
command line options is required.`,op,ut,yf=`As explained earlier this allows detection of coupled tests - where one test’s state affects the state of another. When
<code>pytest-random-order</code> is installed it will print the random seed it used for that session, e.g:`,rp,ct,dp,wt,Mf="So that if the given particular sequence fails, you can reproduce it by adding that exact seed, e.g.:",mp,ht,fp,yt,$f=`It will only reproduce the exact order if you use the exact same list of tests (or no list at all). Once you start to
manually narrowing down the list you can no longer rely on the seed, but have to list them manually in the exact order
they failed and tell pytest to not randomize them instead using <code>--random-order-bucket=none</code>, e.g.:`,up,Mt,cp,$t,Tf="To disable the shuffling for all tests:",wp,Tt,hp,bt,bf=`By default <code>--random-order-bucket=module</code> is implied, which will shuffle the files on the module levels. It can also
shuffle on <code>class</code>, <code>package</code>, <code>global</code> and <code>none</code> levels. For the complete details please see its
<a href="https://github.com/jbasko/pytest-random-order" rel="nofollow">documentation</a>.`,yp,gt,gf=`Another randomization alternative is: <a href="https://github.com/pytest-dev/pytest-randomly" rel="nofollow"><code>pytest-randomly</code></a>. This
module has a very similar functionality/interface, but it doesn’t have the bucket modes available in
<code>pytest-random-order</code>. It has the same problem of imposing itself once installed.`,Mp,Jt,$p,jt,Tp,Ct,Jf=`<a href="https://github.com/Frozenball/pytest-sugar" rel="nofollow">pytest-sugar</a> is a plugin that improves the look-n-feel, adds a
progressbar, and show tests that fail and the assert instantly. It gets activated automatically upon installation.`,bp,vt,gp,Ut,jf="To run tests without it, run:",Jp,_t,jp,It,Cf="or uninstall it.",Cp,xt,vp,kt,vf="For a single or a group of tests via <code>pytest</code> (after <code>pip install pytest-pspec</code>):",Up,Zt,_p,Ht,Ip,Gt,Uf=`<a href="https://github.com/pytest-dev/pytest-instafail" rel="nofollow">pytest-instafail</a> shows failures and errors instantly instead of
waiting until the end of test session.`,xp,Xt,kp,Bt,Zp,Vt,Hp,Rt,_f="On a GPU-enabled setup, to test in CPU-only mode add <code>CUDA_VISIBLE_DEVICES=&quot;&quot;</code>:",Gp,zt,Xp,Nt,If=`or if you have multiple gpus, you can specify which one is to be used by <code>pytest</code>. For example, to use only the
second gpu if you have gpus <code>0</code> and <code>1</code>, you can run:`,Bp,Wt,Vp,Lt,xf="This is handy when you want to run different tasks on different GPUs.",Rp,St,kf=`Some tests must be run on CPU-only, others on either CPU or GPU or TPU, yet others on multiple-GPUs. The following skip
decorators are used to set the requirements of tests CPU/GPU/TPU-wise:`,zp,Qt,Zf="<li><code>require_torch</code> - this test will run only under torch</li> <li><code>require_torch_gpu</code> - as <code>require_torch</code> plus requires at least 1 GPU</li> <li><code>require_torch_multi_gpu</code> - as <code>require_torch</code> plus requires at least 2 GPUs</li> <li><code>require_torch_non_multi_gpu</code> - as <code>require_torch</code> plus requires 0 or 1 GPUs</li> <li><code>require_torch_up_to_2_gpus</code> - as <code>require_torch</code> plus requires 0 or 1 or 2 GPUs</li> <li><code>require_torch_tpu</code> - as <code>require_torch</code> plus requires at least 1 TPU</li>",Np,Ft,Hf="Let’s depict the GPU requirements in the following table:",Wp,At,Gf=`| n gpus | decorator                      |
|--------+--------------------------------|
| <code>&gt;= 0</code> | <code>@require_torch</code>               |
| <code>&gt;= 1</code> | <code>@require_torch_gpu</code>           |
| <code>&gt;= 2</code> | <code>@require_torch_multi_gpu</code>     |
| <code>&lt; 2</code>  | <code>@require_torch_non_multi_gpu</code> |
| <code>&lt; 3</code>  | <code>@require_torch_up_to_2_gpus</code>  |`,Lp,Et,Xf="For example, here is a test that must be run only when there are 2 or more GPUs available and pytorch is installed:",Sp,Pt,Qp,Yt,Bf="If a test requires <code>tensorflow</code> use the <code>require_tf</code> decorator. For example:",Fp,qt,Ap,Kt,Vf=`These decorators can be stacked. For example, if a test is slow and requires at least one GPU under pytorch, here is
how to set it up:`,Ep,Dt,Pp,Ot,Rf=`Some decorators like <code>@parametrized</code> rewrite test names, therefore <code>@require_*</code> skip decorators have to be listed
last for them to work correctly. Here is an example of the correct usage:`,Yp,es,qp,ts,zf=`This order problem doesn’t exist with <code>@pytest.mark.parametrize</code>, you can put it first or last and it will still
work. But it only works with non-unittests.`,Kp,ss,Nf="Inside tests:",Dp,ls,Wf="<li>How many GPUs are available:</li>",Op,ns,eo,is,to,as,Lf="To run the test suite on a specific torch device add <code>TRANSFORMERS_TEST_DEVICE=&quot;$device&quot;</code> where <code>$device</code> is the target backend. For example, to test on CPU only:",so,ps,lo,os,Sf="This variable is useful for testing custom or less common PyTorch backends such as <code>mps</code>. It can also be used to achieve the same effect as <code>CUDA_VISIBLE_DEVICES</code> by targeting specific GPUs or testing in CPU-only mode.",no,rs,Qf="Certain devices will require an additional import after importing <code>torch</code> for the first time. This can be specified using the environment variable <code>TRANSFORMERS_TEST_BACKEND</code>:",io,ds,ao,ms,po,fs,Ff=`<code>pytest</code> can’t deal with distributed training directly. If this is attempted - the sub-processes don’t do the right
thing and end up thinking they are <code>pytest</code> and start running the test suite in loops. It works, however, if one
spawns a normal process that then spawns off multiple workers and manages the IO pipes.`,oo,us,Af="Here are some tests that use it:",ro,cs,Ef='<li><a href="https://github.com/huggingface/transformers/tree/main/tests/trainer/test_trainer_distributed.py" rel="nofollow">test_trainer_distributed.py</a></li> <li><a href="https://github.com/huggingface/transformers/tree/main/tests/deepspeed/test_deepspeed.py" rel="nofollow">test_deepspeed.py</a></li>',mo,ws,Pf="To jump right into the execution point, search for the <code>execute_subprocess_async</code> call in those tests.",fo,hs,Yf="You will need at least 2 GPUs to see these tests in action:",uo,ys,co,Ms,wo,$s,qf=`During test execution any output sent to <code>stdout</code> and <code>stderr</code> is captured. If a test or a setup method fails, its
according captured output will usually be shown along with the failure traceback.`,ho,Ts,Kf="To disable output capturing and to get the <code>stdout</code> and <code>stderr</code> normally, use <code>-s</code> or <code>--capture=no</code>:",yo,bs,Mo,gs,Df="To send test results to JUnit format output:",$o,Js,To,js,bo,Cs,Of="To have no color (e.g., yellow on white background is not readable):",go,vs,Jo,Us,jo,_s,eu="Creating a URL for each test failure:",Co,Is,vo,xs,tu=`This will submit test run information to a remote Paste service and provide a URL for each failure. You may select
tests as usual or add for example -x if you only want to send one particular failure.`,Uo,ks,su="Creating a URL for a whole test session log:",_o,Zs,Io,Hs,xo,Gs,lu=`🤗 transformers tests are based on <code>unittest</code>, but run by <code>pytest</code>, so most of the time features from both systems
can be used.`,ko,Xs,nu=`You can read <a href="https://docs.pytest.org/en/stable/unittest.html" rel="nofollow">here</a> which features are supported, but the important
thing to remember is that most <code>pytest</code> fixtures don’t work. Neither parametrization, but we use the module
<code>parameterized</code> that works in a similar way.`,Zo,Bs,Ho,Vs,iu=`Often, there is a need to run the same test multiple times, but with different arguments. It could be done from within
the test, but then there is no way of running that test for just one set of arguments.`,Go,Rs,Xo,zs,au=`Now, by default this test will be run 3 times, each time with the last 3 arguments of <code>test_floor</code> being assigned the
corresponding arguments in the parameter list.`,Bo,Ns,pu="and you could run just the <code>negative</code> and <code>integer</code> sets of params with:",Vo,Ws,Ro,Ls,ou="or all but <code>negative</code> sub-tests, with:",zo,Ss,No,Qs,ru=`Besides using the <code>-k</code> filter that was just mentioned, you can find out the exact name of each sub-test and run any
or all of them using their exact names.`,Wo,Fs,Lo,As,du="and it will list:",So,Es,Qo,Ps,mu="So now you can run just 2 specific sub-tests:",Fo,Ys,Ao,qs,fu=`The module <a href="https://pypi.org/project/parameterized/" rel="nofollow">parameterized</a> which is already in the developer dependencies
of <code>transformers</code> works for both: <code>unittests</code> and <code>pytest</code> tests.`,Eo,Ks,uu=`If, however, the test is not a <code>unittest</code>, you may use <code>pytest.mark.parametrize</code> (or you may see it being used in
some existing tests, mostly under <code>examples</code>).`,Po,Ds,cu="Here is the same example, this time using <code>pytest</code>’s <code>parametrize</code> marker:",Yo,Os,qo,el,wu=`Same as with <code>parameterized</code>, with <code>pytest.mark.parametrize</code> you can have a fine control over which sub-tests are
run, if the <code>-k</code> filter doesn’t do the job. Except, this parametrization function creates a slightly different set of
names for the sub-tests. Here is what they look like:`,Ko,tl,Do,sl,hu="and it will list:",Oo,ll,er,nl,yu="So now you can run just the specific test:",tr,il,sr,al,Mu="as in the previous example.",lr,pl,nr,ol,$u=`In tests often we need to know where things are relative to the current test file, and it’s not trivial since the test
could be invoked from more than one directory or could reside in sub-directories with different depths. A helper class
<code>transformers.test_utils.TestCasePlus</code> solves this problem by sorting out all the basic paths and provides easy
accessors to them:`,ir,rl,Tu="<li><p><code>pathlib</code> objects (all fully resolved):</p> <ul><li><code>test_file_path</code> - the current test file path, i.e. <code>__file__</code></li> <li><code>test_file_dir</code> - the directory containing the current test file</li> <li><code>tests_dir</code> - the directory of the <code>tests</code> test suite</li> <li><code>examples_dir</code> - the directory of the <code>examples</code> test suite</li> <li><code>repo_root_dir</code> - the directory of the repository</li> <li><code>src_dir</code> - the directory of <code>src</code> (i.e. where the <code>transformers</code> sub-dir resides)</li></ul></li> <li><p>stringified paths---same as above but these return paths as strings, rather than <code>pathlib</code> objects:</p> <ul><li><code>test_file_path_str</code></li> <li><code>test_file_dir_str</code></li> <li><code>tests_dir_str</code></li> <li><code>examples_dir_str</code></li> <li><code>repo_root_dir_str</code></li> <li><code>src_dir_str</code></li></ul></li>",ar,dl,bu=`To start using those all you need is to make sure that the test resides in a subclass of
<code>transformers.test_utils.TestCasePlus</code>. For example:`,pr,ml,or,fl,gu=`If you don’t need to manipulate paths via <code>pathlib</code> or you just need a path as a string, you can always invoked
<code>str()</code> on the <code>pathlib</code> object or use the accessors ending with <code>_str</code>. For example:`,rr,ul,dr,cl,mr,wl,Ju=`Using unique temporary files and directories are essential for parallel test running, so that the tests won’t overwrite
each other’s data. Also we want to get the temporary files and directories removed at the end of each test that created
them. Therefore, using packages like <code>tempfile</code>, which address these needs is essential.`,fr,hl,ju=`However, when debugging tests, you need to be able to see what goes into the temporary file or directory and you want
to know it’s exact path and not having it randomized on every test re-run.`,ur,yl,Cu=`A helper class <code>transformers.test_utils.TestCasePlus</code> is best used for such purposes. It’s a sub-class of
<code>unittest.TestCase</code>, so we can easily inherit from it in the test modules.`,cr,Ml,vu="Here is an example of its usage:",wr,$l,hr,Tl,Uu="This code creates a unique temporary directory, and sets <code>tmp_dir</code> to its location.",yr,bl,_u="<li>Create a unique temporary dir:</li>",Mr,gl,$r,Jl,Iu=`<code>tmp_dir</code> will contain the path to the created temporary dir. It will be automatically removed at the end of the
test.`,Tr,jl,xu="<li>Create a temporary dir of my choice, ensure it’s empty before the test starts and don’t empty it after the test.</li>",br,Cl,gr,vl,ku=`This is useful for debug when you want to monitor a specific directory and want to make sure the previous tests didn’t
leave any data in there.`,Jr,Ul,Zu=`<li><p>You can override the default behavior by directly overriding the <code>before</code> and <code>after</code> args, leading to one of the
following behaviors:</p> <ul><li><code>before=True</code>: the temporary dir will always be cleared at the beginning of the test.</li> <li><code>before=False</code>: if the temporary dir already existed, any existing files will remain there.</li> <li><code>after=True</code>: the temporary dir will always be deleted at the end of the test.</li> <li><code>after=False</code>: the temporary dir will always be left intact at the end of the test.</li></ul></li>`,jr,j,Cr,C,vr,_l,Ur,Il,Hu=`If you need to temporary override <code>sys.path</code> to import from another test for example, you can use the
<code>ExtendSysPath</code> context manager. Example:`,_r,xl,Ir,kl,xr,Zl,Gu=`This is useful when a bug is found and a new test is written, yet the bug is not fixed yet. In order to be able to
commit it to the main repository we need make sure it’s skipped during <code>make test</code>.`,kr,Hl,Xu="Methods:",Zr,Gl,Bu=`<li><p>A <strong>skip</strong> means that you expect your test to pass only if some conditions are met, otherwise pytest should skip
running the test altogether. Common examples are skipping windows-only tests on non-windows platforms, or skipping
tests that depend on an external resource which is not available at the moment (for example a database).</p></li> <li><p>A <strong>xfail</strong> means that you expect a test to fail for some reason. A common example is a test for a feature not yet
implemented, or a bug not yet fixed. When a test passes despite being expected to fail (marked with
pytest.mark.xfail), it’s an xpass and will be reported in the test summary.</p></li>`,Hr,Xl,Vu=`One of the important differences between the two is that <code>skip</code> doesn’t run the test, and <code>xfail</code> does. So if the
code that’s buggy causes some bad state that will affect other tests, do not use <code>xfail</code>.`,Gr,Bl,Xr,Vl,Ru="<li>Here is how to skip whole test unconditionally:</li>",Br,Rl,Vr,zl,zu="or via pytest:",Rr,Nl,zr,Wl,Nu="or the <code>xfail</code> way:",Nr,Ll,Wr,Sl,Wu="Here’s how to skip a test based on internal checks within the test:",Lr,Ql,Sr,Fl,Lu="or the whole module:",Qr,Al,Fr,El,Su="or the <code>xfail</code> way:",Ar,Pl,Er,Yl,Qu="<li>Here is how to skip all tests in a module if some import is missing:</li>",Pr,ql,Yr,Kl,Fu="<li>Skip a test based on a condition:</li>",qr,Dl,Kr,Ol,Au="or:",Dr,en,Or,tn,Eu="or skip the whole module:",ed,sn,td,ln,Pu='More details, example and ways are <a href="https://docs.pytest.org/en/latest/skipping.html" rel="nofollow">here</a>.',sd,nn,ld,an,Yu=`The library of tests is ever-growing, and some of the tests take minutes to run, therefore we can’t afford waiting for
an hour for the test suite to complete on CI. Therefore, with some exceptions for essential tests, slow tests should be
marked as in the example below:`,nd,pn,id,on,qu="Once a test is marked as <code>@slow</code>, to run such tests set <code>RUN_SLOW=1</code> env var, e.g.:",ad,rn,pd,dn,Ku=`Some decorators like <code>@parameterized</code> rewrite test names, therefore <code>@slow</code> and the rest of the skip decorators
<code>@require_*</code> have to be listed last for them to work correctly. Here is an example of the correct usage:`,od,mn,rd,fn,Du=`As explained at the beginning of this document, slow tests get to run on a scheduled basis, rather than in PRs CI
checks. So it’s possible that some problems will be missed during a PR submission and get merged. Such problems will
get caught during the next scheduled CI job. But it also means that it’s important to run the slow tests on your
machine before submitting the PR.`,dd,un,Ou="Here is a rough decision making mechanism for choosing which tests should be marked as slow:",md,cn,ec=`If the test is focused on one of the library’s internal components (e.g., modeling files, tokenization files,
pipelines), then we should run that test in the non-slow test suite. If it’s focused on an other aspect of the library,
such as the documentation or the examples, then we should run these tests in the slow test suite. And then, to refine
this approach we should have exceptions:`,fd,wn,tc=`<li>All tests that need to download a heavy set of weights or a dataset that is larger than ~50MB (e.g., model or
tokenizer integration tests, pipeline integration tests) should be set to slow. If you’re adding a new model, you
should create and upload to the hub a tiny version of it (with random weights) for integration tests. This is
discussed in the following paragraphs.</li> <li>All tests that need to do a training not specifically optimized to be fast should be set to slow.</li> <li>We can introduce exceptions if some of these should-be-non-slow tests are excruciatingly slow, and set them to
<code>@slow</code>. Auto-modeling tests, which save and load large files to disk, are a good example of tests that are marked
as <code>@slow</code>.</li> <li>If a test completes under 1 second on CI (including downloads if any) then it should be a normal test regardless.</li>`,ud,hn,sc=`Collectively, all the non-slow tests need to cover entirely the different internals, while remaining fast. For example,
a significant coverage can be achieved by testing with specially created tiny models with random weights. Such models
have the very minimal number of layers (e.g., 2), vocab size (e.g., 1000), etc. Then the <code>@slow</code> tests can use large
slow models to do qualitative testing. To see the use of these simply look for <em>tiny</em> models with:`,cd,yn,wd,Mn,lc=`Here is a an example of a <a href="https://github.com/huggingface/transformers/tree/main/scripts/fsmt/fsmt-make-tiny-model.py" rel="nofollow">script</a> that created the tiny model
<a href="https://huggingface.co/stas/tiny-wmt19-en-de" rel="nofollow">stas/tiny-wmt19-en-de</a>. You can easily adjust it to your specific
model’s architecture.`,hd,$n,nc=`It’s easy to measure the run-time incorrectly if for example there is an overheard of downloading a huge model, but if
you test it locally the downloaded files would be cached and thus the download time not measured. Hence check the
execution speed report in CI logs instead (the output of <code>pytest --durations=0 tests</code>).`,yd,Tn,ic=`That report is also useful to find slow outliers that aren’t marked as such, or which need to be re-written to be fast.
If you notice that the test suite starts getting slow on CI, the top listing of this report will show the slowest
tests.`,Md,bn,$d,gn,ac=`In order to test functions that write to <code>stdout</code> and/or <code>stderr</code>, the test can access those streams using the
<code>pytest</code>’s <a href="https://docs.pytest.org/en/latest/capture.html" rel="nofollow">capsys system</a>. Here is how this is accomplished:`,Td,Jn,bd,jn,pc=`And, of course, most of the time, <code>stderr</code> will come as a part of an exception, so try/except has to be used in such
a case:`,gd,Cn,Jd,vn,oc="Another approach to capturing stdout is via <code>contextlib.redirect_stdout</code>:",jd,Un,Cd,_n,rc=`An important potential issue with capturing stdout is that it may contain <code>\\r</code> characters that in normal <code>print</code>
reset everything that has been printed so far. There is no problem with <code>pytest</code>, but with <code>pytest -s</code> these
characters get included in the buffer, so to be able to have the test run with and without <code>-s</code>, you have to make an
extra cleanup to the captured output, using <code>re.sub(r&#39;~.*\\r&#39;, &#39;&#39;, buf, 0, re.M)</code>.`,vd,In,dc=`But, then we have a helper context manager wrapper to automatically take care of it all, regardless of whether it has
some <code>\\r</code>’s in it or not, so it’s a simple:`,Ud,xn,_d,kn,mc="Here is a full test example:",Id,Zn,xd,Hn,fc="If you’d like to capture <code>stderr</code> use the <code>CaptureStderr</code> class instead:",kd,Gn,Zd,Xn,uc="If you need to capture both streams at once, use the parent <code>CaptureStd</code> class:",Hd,Bn,Gd,Vn,cc=`Also, to aid debugging test issues, by default these context managers automatically replay the captured streams on exit
from the context.`,Xd,Rn,Bd,zn,wc="If you need to validate the output of a logger, you can use <code>CaptureLogger</code>:",Vd,Nn,Rd,Wn,zd,Ln,hc=`If you want to test the impact of environment variables for a specific test you can use a helper decorator
<code>transformers.testing_utils.mockenv</code>`,Nd,Sn,Wd,Qn,yc=`At times an external program needs to be called, which requires setting <code>PYTHONPATH</code> in <code>os.environ</code> to include
multiple local paths. A helper class <code>transformers.test_utils.TestCasePlus</code> comes to help:`,Ld,Fn,Sd,An,Mc=`Depending on whether the test file was under the <code>tests</code> test suite or <code>examples</code> it’ll correctly set up
<code>env[PYTHONPATH]</code> to include one of these two directories, and also the <code>src</code> directory to ensure the testing is
done against the current repo, and finally with whatever <code>env[PYTHONPATH]</code> was already set to before the test was
called if anything.`,Qd,En,$c="This helper method creates a copy of the <code>os.environ</code> object, so the original remains intact.",Fd,Pn,Ad,Yn,Tc=`In some situations you may want to remove randomness for your tests. To get identical reproducible results set, you
will need to fix the seed:`,Ed,qn,Pd,Kn,Yd,Dn,bc="To start a debugger at the point of the warning, do this:",qd,On,Kd,ei,Dd,ti,gc="To trigger a self-push workflow CI job, you must:",Od,si,Jc=`<li>Create a new branch on <code>transformers</code> origin (not a fork!).</li> <li>The branch name has to start with either <code>ci_</code> or <code>ci-</code> (<code>main</code> triggers it too, but we can’t do PRs on
<code>main</code>). It also gets triggered only for specific paths - you can find the up-to-date definition in case it
changed since this document has been written <a href="https://github.com/huggingface/transformers/blob/main/.github/workflows/self-push.yml" rel="nofollow">here</a> under <em>push:</em></li> <li>Create a PR from this branch.</li> <li>Then you can see the job appear <a href="https://github.com/huggingface/transformers/actions/workflows/self-push.yml" rel="nofollow">here</a>. It may not run right away if there
is a backlog.</li>`,em,li,tm,ni,jc=`Testing CI features can be potentially problematic as it can interfere with the normal CI functioning. Therefore if a
new CI feature is to be added, it should be done as following.`,sm,ii,Cc=`<li>Create a new dedicated job that tests what needs to be tested</li> <li>The new job must always succeed so that it gives us a green ✓ (details below).</li> <li>Let it run for some days to see that a variety of different PR types get to run on it (user fork branches,
non-forked branches, branches originating from github.com UI direct file edit, various forced pushes, etc. - there
are so many) while monitoring the experimental job’s logs (not the overall job green as it’s purposefully always
green)</li> <li>When it’s clear that everything is solid, then merge the new changes into existing jobs.</li>`,lm,ai,vc="That way experiments on CI functionality itself won’t interfere with the normal workflow.",nm,pi,Uc="Now how can we make the job always succeed while the new CI feature is being developed?",im,oi,_c=`Some CIs, like TravisCI support ignore-step-failure and will report the overall job as successful, but CircleCI and
Github Actions as of this writing don’t support that.`,am,ri,Ic="So the following workaround can be used:",pm,di,xc="<li><code>set +euo pipefail</code> at the beginning of the run command to suppress most potential failures in the bash script.</li> <li>the last command must be a success: <code>echo &quot;done&quot;</code> or just <code>true</code> will do</li>",om,mi,kc="Here is an example:",rm,fi,dm,ui,Zc="For simple commands you could also do:",mm,ci,fm,wi,Hc=`Of course, once satisfied with the results, integrate the experimental step or job with the rest of the normal jobs,
while removing <code>set +euo pipefail</code> or any other things you may have added to ensure that the experimental job doesn’t
interfere with the normal CI functioning.`,um,hi,Gc=`This whole process would have been much easier if we only could set something like <code>allow-failure</code> for the
experimental step, and let it fail without impacting the overall status of PRs. But as mentioned earlier CircleCI and
Github Actions don’t support it at the moment.`,cm,yi,Xc="You can vote for this feature and see where it is at these CI-specific threads:",wm,Mi,Bc='<li><a href="https://github.com/actions/toolkit/issues/399" rel="nofollow">Github Actions:</a></li> <li><a href="https://ideas.circleci.com/ideas/CCI-I-344" rel="nofollow">CircleCI:</a></li>',hm,$i,ym;return v=new h({props:{title:"Testing",local:"testing",headingTag:"h1"}}),x=new h({props:{title:"How transformers are tested",local:"how-transformers-are-tested",headingTag:"h2"}}),Z=new w({props:{code:"UlVOX1NMT1clM0QxJTIwcHl0ZXN0JTIwdGVzdHMlMkYlMEFSVU5fU0xPVyUzRDElMjBweXRlc3QlMjBleGFtcGxlcyUyRg==",highlighted:`RUN_SLOW=1 pytest tests/
RUN_SLOW=1 pytest examples/`,wrap:!1}}),G=new h({props:{title:"Running tests",local:"running-tests",headingTag:"h2"}}),X=new h({props:{title:"Choosing which tests to run",local:"choosing-which-tests-to-run",headingTag:"h3"}}),z=new w({props:{code:"cHl0ZXN0",highlighted:"pytest",wrap:!1}}),W=new w({props:{code:"bWFrZSUyMHRlc3Q=",highlighted:'make <span class="hljs-built_in">test</span>',wrap:!1}}),S=new w({props:{code:"cHl0aG9uJTIwLW0lMjBweXRlc3QlMjAtbiUyMGF1dG8lMjAtLWRpc3QlM0Rsb2FkZmlsZSUyMC1zJTIwLXYlMjAuJTJGdGVzdHMlMkY=",highlighted:"python -m pytest -n auto --dist=loadfile -s -v ./tests/",wrap:!1}}),A=new h({props:{title:"Getting the list of all tests",local:"getting-the-list-of-all-tests",headingTag:"h3"}}),P=new w({props:{code:"cHl0ZXN0JTIwLS1jb2xsZWN0LW9ubHklMjAtcQ==",highlighted:"pytest --collect-only -q",wrap:!1}}),q=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weSUyMC0tY29sbGVjdC1vbmx5JTIwLXE=",highlighted:"pytest tests/test_optimization.py --collect-only -q",wrap:!1}}),K=new h({props:{title:"Run a specific test module",local:"run-a-specific-test-module",headingTag:"h3"}}),O=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkZ1dGlscyUyRnRlc3RfbG9nZ2luZy5weQ==",highlighted:"pytest tests/utils/test_logging.py",wrap:!1}}),ee=new h({props:{title:"Run specific tests",local:"run-specific-tests",headingTag:"h3"}}),se=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weSUzQSUzQU9wdGltaXphdGlvblRlc3QlM0ElM0F0ZXN0X2FkYW1fdw==",highlighted:"pytest tests/test_optimization.py::OptimizationTest::test_adam_w",wrap:!1}}),ae=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weSUzQSUzQU9wdGltaXphdGlvblRlc3Q=",highlighted:"pytest tests/test_optimization.py::OptimizationTest",wrap:!1}}),re=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weSUzQSUzQU9wdGltaXphdGlvblRlc3QlMjAtLWNvbGxlY3Qtb25seSUyMC1x",highlighted:"pytest tests/test_optimization.py::OptimizationTest --collect-only -q",wrap:!1}}),fe=new w({props:{code:"cHl0ZXN0JTIwLWslMjBhZGFtJTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weQ==",highlighted:"pytest -k adam tests/test_optimization.py",wrap:!1}}),we=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJub3QlMjBhZGFtJTIyJTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weQ==",highlighted:'pytest -k <span class="hljs-string">&quot;not adam&quot;</span> tests/test_optimization.py',wrap:!1}}),ye=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJhZGElMjBhbmQlMjBub3QlMjBhZGFtJTIyJTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weQ==",highlighted:'pytest -k <span class="hljs-string">&quot;ada and not adam&quot;</span> tests/test_optimization.py',wrap:!1}}),$e=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJ0ZXN0X2FkYW1fdyUyMG9yJTIwdGVzdF9hZGFtX3clMjIlMjB0ZXN0cyUyRnRlc3Rfb3B0aW1pemF0aW9uLnB5",highlighted:'pytest -k <span class="hljs-string">&quot;test_adam_w or test_adam_w&quot;</span> tests/test_optimization.py',wrap:!1}}),ge=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJ0ZXN0JTIwYW5kJTIwYWRhJTIyJTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weQ==",highlighted:'pytest -k <span class="hljs-string">&quot;test and ada&quot;</span> tests/test_optimization.py',wrap:!1}}),Je=new h({props:{title:"Run accelerate tests",local:"run-accelerate-tests",headingTag:"h3"}}),Ce=new w({props:{code:"UlVOX1NMT1clM0QxJTIwcHl0ZXN0JTIwLW0lMjBhY2NlbGVyYXRlX3Rlc3RzJTIwdGVzdHMlMkZtb2RlbHMlMkZvcHQlMkZ0ZXN0X21vZGVsaW5nX29wdC5weSUyMA==",highlighted:"RUN_SLOW=1 pytest -m accelerate_tests tests/models/opt/test_modeling_opt.py ",wrap:!1}}),ve=new h({props:{title:"Run documentation tests",local:"run-documentation-tests",headingTag:"h3"}}),_e=new w({props:{code:"ciUyMiUyMiUyMiUwQVJldHVybnMlM0ElMEElMEFFeGFtcGxlJTNBJTBBJTIwJTIwJTIwJTIwJTYwJTYwJTYwcHl0aG9uJTBBJTIwJTIwJTIwJTIwJTNFJTNFJTNFJTIwaW1wb3J0JTIwdG9yY2glMEElMjAlMjAlMjAlMjAlM0UlM0UlM0UlMjBmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwV2hpc3Blck1vZGVsJTJDJTIwV2hpc3BlckZlYXR1cmVFeHRyYWN0b3IlMEElMjAlMjAlMjAlMjAlM0UlM0UlM0UlMjBmcm9tJTIwZGF0YXNldHMlMjBpbXBvcnQlMjBsb2FkX2RhdGFzZXQlMEElMEElMjAlMjAlMjAlMjAlM0UlM0UlM0UlMjBtb2RlbCUyMCUzRCUyMFdoaXNwZXJNb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIyb3BlbmFpJTJGd2hpc3Blci1iYXNlJTIyKSUwQSUyMCUyMCUyMCUyMCUzRSUzRSUzRSUyMGZlYXR1cmVfZXh0cmFjdG9yJTIwJTNEJTIwV2hpc3BlckZlYXR1cmVFeHRyYWN0b3IuZnJvbV9wcmV0cmFpbmVkKCUyMm9wZW5haSUyRndoaXNwZXItYmFzZSUyMiklMEElMjAlMjAlMjAlMjAlM0UlM0UlM0UlMjBkcyUyMCUzRCUyMGxvYWRfZGF0YXNldCglMjJoZi1pbnRlcm5hbC10ZXN0aW5nJTJGbGlicmlzcGVlY2hfYXNyX2R1bW15JTIyJTJDJTIwJTIyY2xlYW4lMjIlMkMlMjBzcGxpdCUzRCUyMnZhbGlkYXRpb24lMjIpJTBBJTIwJTIwJTIwJTIwJTNFJTNFJTNFJTIwaW5wdXRzJTIwJTNEJTIwZmVhdHVyZV9leHRyYWN0b3IoZHMlNUIwJTVEJTVCJTIyYXVkaW8lMjIlNUQlNUIlMjJhcnJheSUyMiU1RCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBJTIwJTIwJTIwJTIwJTNFJTNFJTNFJTIwaW5wdXRfZmVhdHVyZXMlMjAlM0QlMjBpbnB1dHMuaW5wdXRfZmVhdHVyZXMlMEElMjAlMjAlMjAlMjAlM0UlM0UlM0UlMjBkZWNvZGVyX2lucHV0X2lkcyUyMCUzRCUyMHRvcmNoLnRlbnNvciglNUIlNUIxJTJDJTIwMSU1RCU1RCklMjAqJTIwbW9kZWwuY29uZmlnLmRlY29kZXJfc3RhcnRfdG9rZW5faWQlMEElMjAlMjAlMjAlMjAlM0UlM0UlM0UlMjBsYXN0X2hpZGRlbl9zdGF0ZSUyMCUzRCUyMG1vZGVsKGlucHV0X2ZlYXR1cmVzJTJDJTIwZGVjb2Rlcl9pbnB1dF9pZHMlM0RkZWNvZGVyX2lucHV0X2lkcykubGFzdF9oaWRkZW5fc3RhdGUlMEElMjAlMjAlMjAlMjAlM0UlM0UlM0UlMjBsaXN0KGxhc3RfaGlkZGVuX3N0YXRlLnNoYXBlKSUwQSUyMCUyMCUyMCUyMCU1QjElMkMlMjAyJTJDJTIwNTEyJTVEJTBBJTIwJTIwJTIwJTIwJTYwJTYwJTYwJTIyJTIyJTIyJTBB",highlighted:`<span class="hljs-string">r&quot;&quot;&quot;
Returns:

Example:
    \`\`\`python
    &gt;&gt;&gt; import torch
    &gt;&gt;&gt; from transformers import WhisperModel, WhisperFeatureExtractor
    &gt;&gt;&gt; from datasets import load_dataset

    &gt;&gt;&gt; model = WhisperModel.from_pretrained(&quot;openai/whisper-base&quot;)
    &gt;&gt;&gt; feature_extractor = WhisperFeatureExtractor.from_pretrained(&quot;openai/whisper-base&quot;)
    &gt;&gt;&gt; ds = load_dataset(&quot;hf-internal-testing/librispeech_asr_dummy&quot;, &quot;clean&quot;, split=&quot;validation&quot;)
    &gt;&gt;&gt; inputs = feature_extractor(ds[0][&quot;audio&quot;][&quot;array&quot;], return_tensors=&quot;pt&quot;)
    &gt;&gt;&gt; input_features = inputs.input_features
    &gt;&gt;&gt; decoder_input_ids = torch.tensor([[1, 1]]) * model.config.decoder_start_token_id
    &gt;&gt;&gt; last_hidden_state = model(input_features, decoder_input_ids=decoder_input_ids).last_hidden_state
    &gt;&gt;&gt; list(last_hidden_state.shape)
    [1, 2, 512]
    \`\`\`&quot;&quot;&quot;</span>
`,wrap:!1}}),xe=new w({props:{code:"cHl0ZXN0JTIwLS1kb2N0ZXN0LW1vZHVsZXMlMjAlM0NwYXRoX3RvX2ZpbGVfb3JfZGlyJTNF",highlighted:"pytest --doctest-modules &lt;path_to_file_or_dir&gt;",wrap:!1}}),Ze=new h({props:{title:"Run only modified tests",local:"run-only-modified-tests",headingTag:"h3"}}),Ge=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMHB5dGVzdC1waWNrZWQ=",highlighted:"pip install pytest-picked",wrap:!1}}),Xe=new w({props:{code:"cHl0ZXN0JTIwLS1waWNrZWQ=",highlighted:"pytest --picked",wrap:!1}}),Ve=new h({props:{title:"Automatically rerun failed tests on source modification",local:"automatically-rerun-failed-tests-on-source-modification",headingTag:"h3"}}),ze=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMHB5dGVzdC14ZGlzdA==",highlighted:"pip install pytest-xdist",wrap:!1}}),Le=new w({props:{code:"JTVCdG9vbCUzQXB5dGVzdCU1RCUwQWxvb3BvbmZhaWxyb290cyUyMCUzRCUyMHRyYW5zZm9ybWVycyUyMHRlc3Rz",highlighted:`<span class="hljs-section">[tool:pytest]</span>
<span class="hljs-attr">looponfailroots</span> = transformers tests`,wrap:!1}}),Qe=new w({props:{code:"JTVCcHl0ZXN0JTVEJTBBbG9vcG9uZmFpbHJvb3RzJTIwJTNEJTIwdHJhbnNmb3JtZXJzJTIwdGVzdHM=",highlighted:`<span class="hljs-section">[pytest]</span>
<span class="hljs-attr">looponfailroots</span> = transformers tests`,wrap:!1}}),Ee=new h({props:{title:"Skip a test module",local:"skip-a-test-module",headingTag:"h3"}}),Ye=new w({props:{code:"cHl0ZXN0JTIwKmxzJTIwLTElMjB0ZXN0cyUyRipweSUyMCU3QyUyMGdyZXAlMjAtdiUyMHRlc3RfbW9kZWxpbmcq",highlighted:'pytest *<span class="hljs-built_in">ls</span> -1 tests/*py | grep -v test_modeling*',wrap:!1}}),qe=new h({props:{title:"Clearing state",local:"clearing-state",headingTag:"h3"}}),De=new w({props:{code:"cHl0ZXN0JTIwLS1jYWNoZS1jbGVhciUyMHRlc3Rz",highlighted:"pytest --cache-clear tests",wrap:!1}}),Oe=new h({props:{title:"Running tests in parallel",local:"running-tests-in-parallel",headingTag:"h3"}}),lt=new h({props:{title:"Test order and repetition",local:"test-order-and-repetition",headingTag:"h3"}}),it=new h({props:{title:"Repeat tests",local:"repeat-tests",headingTag:"h4"}}),pt=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMHB5dGVzdC1mbGFrZWZpbmRlcg==",highlighted:"pip install pytest-flakefinder",wrap:!1}}),rt=new w({props:{code:"cHl0ZXN0JTIwLS1mbGFrZS1maW5kZXIlMjAtLWZsYWtlLXJ1bnMlM0Q1JTIwdGVzdHMlMkZ0ZXN0X2ZhaWxpbmdfdGVzdC5weQ==",highlighted:"pytest --flake-finder --flake-runs=5 tests/test_failing_test.py",wrap:!1}}),g=new Mm({props:{$$slots:{default:[Yc]},$$scope:{ctx:b}}}),J=new Mm({props:{$$slots:{default:[qc]},$$scope:{ctx:b}}}),dt=new h({props:{title:"Run tests in a random order",local:"run-tests-in-a-random-order",headingTag:"h4"}}),mt=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMHB5dGVzdC1yYW5kb20tb3JkZXI=",highlighted:"pip install pytest-random-order",wrap:!1}}),ct=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMEElNUIuLi4lNUQlMEFVc2luZyUyMC0tcmFuZG9tLW9yZGVyLWJ1Y2tldCUzRG1vZHVsZSUwQVVzaW5nJTIwLS1yYW5kb20tb3JkZXItc2VlZCUzRDU3MzY2Mw==",highlighted:`pytest tests
[...]
Using --random-order-bucket=module
Using --random-order-seed=573663`,wrap:!1}}),ht=new w({props:{code:"cHl0ZXN0JTIwLS1yYW5kb20tb3JkZXItc2VlZCUzRDU3MzY2MyUwQSU1Qi4uLiU1RCUwQVVzaW5nJTIwLS1yYW5kb20tb3JkZXItYnVja2V0JTNEbW9kdWxlJTBBVXNpbmclMjAtLXJhbmRvbS1vcmRlci1zZWVkJTNENTczNjYz",highlighted:`pytest --random-order-seed=573663
[...]
Using --random-order-bucket=module
Using --random-order-seed=573663`,wrap:!1}}),Mt=new w({props:{code:"cHl0ZXN0JTIwLS1yYW5kb20tb3JkZXItYnVja2V0JTNEbm9uZSUyMHRlc3RzJTJGdGVzdF9hLnB5JTIwdGVzdHMlMkZ0ZXN0X2MucHklMjB0ZXN0cyUyRnRlc3RfYi5weQ==",highlighted:"pytest --random-order-bucket=none tests/test_a.py tests/test_c.py tests/test_b.py",wrap:!1}}),Tt=new w({props:{code:"cHl0ZXN0JTIwLS1yYW5kb20tb3JkZXItYnVja2V0JTNEbm9uZQ==",highlighted:"pytest --random-order-bucket=none",wrap:!1}}),Jt=new h({props:{title:"Look and feel variations",local:"look-and-feel-variations",headingTag:"h3"}}),jt=new h({props:{title:"pytest-sugar",local:"pytest-sugar",headingTag:"h4"}}),vt=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMHB5dGVzdC1zdWdhcg==",highlighted:"pip install pytest-sugar",wrap:!1}}),_t=new w({props:{code:"cHl0ZXN0JTIwLXAlMjBubyUzQXN1Z2Fy",highlighted:"pytest -p no:sugar",wrap:!1}}),xt=new h({props:{title:"Report each sub-test name and its progress",local:"report-each-sub-test-name-and-its-progress",headingTag:"h4"}}),Zt=new w({props:{code:"cHl0ZXN0JTIwLS1wc3BlYyUyMHRlc3RzJTJGdGVzdF9vcHRpbWl6YXRpb24ucHk=",highlighted:"pytest --pspec tests/test_optimization.py",wrap:!1}}),Ht=new h({props:{title:"Instantly shows failed tests",local:"instantly-shows-failed-tests",headingTag:"h4"}}),Xt=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMHB5dGVzdC1pbnN0YWZhaWw=",highlighted:"pip install pytest-instafail",wrap:!1}}),Bt=new w({props:{code:"cHl0ZXN0JTIwLS1pbnN0YWZhaWw=",highlighted:"pytest --instafail",wrap:!1}}),Vt=new h({props:{title:"To GPU or not to GPU",local:"to-gpu-or-not-to-gpu",headingTag:"h3"}}),zt=new w({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QlMjIlMjIlMjBweXRlc3QlMjB0ZXN0cyUyRnV0aWxzJTJGdGVzdF9sb2dnaW5nLnB5",highlighted:'CUDA_VISIBLE_DEVICES=<span class="hljs-string">&quot;&quot;</span> pytest tests/utils/test_logging.py',wrap:!1}}),Wt=new w({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QlMjIxJTIyJTIwcHl0ZXN0JTIwdGVzdHMlMkZ1dGlscyUyRnRlc3RfbG9nZ2luZy5weQ==",highlighted:'CUDA_VISIBLE_DEVICES=<span class="hljs-string">&quot;1&quot;</span> pytest tests/utils/test_logging.py',wrap:!1}}),Pt=new w({props:{code:"JTQwcmVxdWlyZV90b3JjaF9tdWx0aV9ncHUlMEFkZWYlMjB0ZXN0X2V4YW1wbGVfd2l0aF9tdWx0aV9ncHUoKSUzQQ==",highlighted:`<span class="hljs-meta">@require_torch_multi_gpu</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_example_with_multi_gpu</span>():`,wrap:!1}}),qt=new w({props:{code:"JTQwcmVxdWlyZV90ZiUwQWRlZiUyMHRlc3RfdGZfdGhpbmdfd2l0aF90ZW5zb3JmbG93KCklM0E=",highlighted:`<span class="hljs-meta">@require_tf</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_tf_thing_with_tensorflow</span>():`,wrap:!1}}),Dt=new w({props:{code:"JTQwcmVxdWlyZV90b3JjaF9ncHUlMEElNDBzbG93JTBBZGVmJTIwdGVzdF9leGFtcGxlX3Nsb3dfb25fZ3B1KCklM0E=",highlighted:`<span class="hljs-meta">@require_torch_gpu</span>
<span class="hljs-meta">@slow</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_example_slow_on_gpu</span>():`,wrap:!1}}),es=new w({props:{code:"JTQwcGFyYW1ldGVyaXplZC5leHBhbmQoLi4uKSUwQSU0MHJlcXVpcmVfdG9yY2hfbXVsdGlfZ3B1JTBBZGVmJTIwdGVzdF9pbnRlZ3JhdGlvbl9mb28oKSUzQQ==",highlighted:`<span class="hljs-meta">@parameterized.expand(<span class="hljs-params">...</span>)</span>
<span class="hljs-meta">@require_torch_multi_gpu</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_integration_foo</span>():`,wrap:!1}}),ns=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwZ2V0X2dwdV9jb3VudCUwQSUwQW5fZ3B1JTIwJTNEJTIwZ2V0X2dwdV9jb3VudCgpJTIwJTIwJTIzJTIwd29ya3MlMjB3aXRoJTIwdG9yY2glMjBhbmQlMjB0Zg==",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> get_gpu_count

n_gpu = get_gpu_count()  <span class="hljs-comment"># works with torch and tf</span>`,wrap:!1}}),is=new h({props:{title:"Testing with a specific PyTorch backend or device",local:"testing-with-a-specific-pytorch-backend-or-device",headingTag:"h3"}}),ps=new w({props:{code:"VFJBTlNGT1JNRVJTX1RFU1RfREVWSUNFJTNEJTIyY3B1JTIyJTIwcHl0ZXN0JTIwdGVzdHMlMkZ1dGlscyUyRnRlc3RfbG9nZ2luZy5weQ==",highlighted:'TRANSFORMERS_TEST_DEVICE=<span class="hljs-string">&quot;cpu&quot;</span> pytest tests/utils/test_logging.py',wrap:!1}}),ds=new w({props:{code:"VFJBTlNGT1JNRVJTX1RFU1RfQkFDS0VORCUzRCUyMnRvcmNoX25wdSUyMiUyMHB5dGVzdCUyMHRlc3RzJTJGdXRpbHMlMkZ0ZXN0X2xvZ2dpbmcucHk=",highlighted:'TRANSFORMERS_TEST_BACKEND=<span class="hljs-string">&quot;torch_npu&quot;</span> pytest tests/utils/test_logging.py',wrap:!1}}),ms=new h({props:{title:"Distributed training",local:"distributed-training",headingTag:"h3"}}),ys=new w({props:{code:"Q1VEQV9WSVNJQkxFX0RFVklDRVMlM0QwJTJDMSUyMFJVTl9TTE9XJTNEMSUyMHB5dGVzdCUyMC1zdiUyMHRlc3RzJTJGdGVzdF90cmFpbmVyX2Rpc3RyaWJ1dGVkLnB5",highlighted:"CUDA_VISIBLE_DEVICES=0,1 RUN_SLOW=1 pytest -sv tests/test_trainer_distributed.py",wrap:!1}}),Ms=new h({props:{title:"Output capture",local:"output-capture",headingTag:"h3"}}),bs=new w({props:{code:"cHl0ZXN0JTIwLXMlMjB0ZXN0cyUyRnV0aWxzJTJGdGVzdF9sb2dnaW5nLnB5",highlighted:"pytest -s tests/utils/test_logging.py",wrap:!1}}),Js=new w({props:{code:"cHkudGVzdCUyMHRlc3RzJTIwLS1qdW5pdHhtbCUzRHJlc3VsdC54bWw=",highlighted:"py.test tests --junitxml=result.xml",wrap:!1}}),js=new h({props:{title:"Color control",local:"color-control",headingTag:"h3"}}),vs=new w({props:{code:"cHl0ZXN0JTIwLS1jb2xvciUzRG5vJTIwdGVzdHMlMkZ1dGlscyUyRnRlc3RfbG9nZ2luZy5weQ==",highlighted:"pytest --color=no tests/utils/test_logging.py",wrap:!1}}),Us=new h({props:{title:"Sending test report to online pastebin service",local:"sending-test-report-to-online-pastebin-service",headingTag:"h3"}}),Is=new w({props:{code:"cHl0ZXN0JTIwLS1wYXN0ZWJpbiUzRGZhaWxlZCUyMHRlc3RzJTJGdXRpbHMlMkZ0ZXN0X2xvZ2dpbmcucHk=",highlighted:"pytest --pastebin=failed tests/utils/test_logging.py",wrap:!1}}),Zs=new w({props:{code:"cHl0ZXN0JTIwLS1wYXN0ZWJpbiUzRGFsbCUyMHRlc3RzJTJGdXRpbHMlMkZ0ZXN0X2xvZ2dpbmcucHk=",highlighted:"pytest --pastebin=all tests/utils/test_logging.py",wrap:!1}}),Hs=new h({props:{title:"Writing tests",local:"writing-tests",headingTag:"h2"}}),Bs=new h({props:{title:"Parametrization",local:"parametrization",headingTag:"h3"}}),Rs=new w({props:{code:"JTIzJTIwdGVzdF90aGlzMS5weSUwQWltcG9ydCUyMHVuaXR0ZXN0JTBBZnJvbSUyMHBhcmFtZXRlcml6ZWQlMjBpbXBvcnQlMjBwYXJhbWV0ZXJpemVkJTBBJTBBJTBBY2xhc3MlMjBUZXN0TWF0aFVuaXRUZXN0KHVuaXR0ZXN0LlRlc3RDYXNlKSUzQSUwQSUyMCUyMCUyMCUyMCU0MHBhcmFtZXRlcml6ZWQuZXhwYW5kKCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCglMjJuZWdhdGl2ZSUyMiUyQyUyMC0xLjUlMkMlMjAtMi4wKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCglMjJpbnRlZ2VyJTIyJTJDJTIwMSUyQyUyMDEuMCklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAoJTIybGFyZ2UlMjBmcmFjdGlvbiUyMiUyQyUyMDEuNiUyQyUyMDEpJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTVEJTBBJTIwJTIwJTIwJTIwKSUwQSUyMCUyMCUyMCUyMGRlZiUyMHRlc3RfZmxvb3Ioc2VsZiUyQyUyMG5hbWUlMkMlMjBpbnB1dCUyQyUyMGV4cGVjdGVkKSUzQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGFzc2VydF9lcXVhbChtYXRoLmZsb29yKGlucHV0KSUyQyUyMGV4cGVjdGVkKQ==",highlighted:`<span class="hljs-comment"># test_this1.py</span>
<span class="hljs-keyword">import</span> unittest
<span class="hljs-keyword">from</span> parameterized <span class="hljs-keyword">import</span> parameterized


<span class="hljs-keyword">class</span> <span class="hljs-title class_">TestMathUnitTest</span>(unittest.TestCase):
<span class="hljs-meta">    @parameterized.expand(<span class="hljs-params">
        [
            (<span class="hljs-params"><span class="hljs-string">&quot;negative&quot;</span>, -<span class="hljs-number">1.5</span>, -<span class="hljs-number">2.0</span></span>),
            (<span class="hljs-params"><span class="hljs-string">&quot;integer&quot;</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1.0</span></span>),
            (<span class="hljs-params"><span class="hljs-string">&quot;large fraction&quot;</span>, <span class="hljs-number">1.6</span>, <span class="hljs-number">1</span></span>),
        ]
    </span>)</span>
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">test_floor</span>(<span class="hljs-params">self, name, <span class="hljs-built_in">input</span>, expected</span>):
        assert_equal(math.floor(<span class="hljs-built_in">input</span>), expected)`,wrap:!1}}),Ws=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJuZWdhdGl2ZSUyMGFuZCUyMGludGVnZXIlMjIlMjB0ZXN0cyUyRnRlc3RfbXl0ZXN0LnB5",highlighted:'pytest -k <span class="hljs-string">&quot;negative and integer&quot;</span> tests/test_mytest.py',wrap:!1}}),Ss=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJub3QlMjBuZWdhdGl2ZSUyMiUyMHRlc3RzJTJGdGVzdF9teXRlc3QucHk=",highlighted:'pytest -k <span class="hljs-string">&quot;not negative&quot;</span> tests/test_mytest.py',wrap:!1}}),Fs=new w({props:{code:"cHl0ZXN0JTIwdGVzdF90aGlzMS5weSUyMC0tY29sbGVjdC1vbmx5JTIwLXE=",highlighted:"pytest test_this1.py --collect-only -q",wrap:!1}}),Es=new w({props:{code:"dGVzdF90aGlzMS5weSUzQSUzQVRlc3RNYXRoVW5pdFRlc3QlM0ElM0F0ZXN0X2Zsb29yXzBfbmVnYXRpdmUlMEF0ZXN0X3RoaXMxLnB5JTNBJTNBVGVzdE1hdGhVbml0VGVzdCUzQSUzQXRlc3RfZmxvb3JfMV9pbnRlZ2VyJTBBdGVzdF90aGlzMS5weSUzQSUzQVRlc3RNYXRoVW5pdFRlc3QlM0ElM0F0ZXN0X2Zsb29yXzJfbGFyZ2VfZnJhY3Rpb24=",highlighted:`test_this1.py::TestMathUnitTest::test_floor_0_negative
test_this1.py::TestMathUnitTest::test_floor_1_integer
test_this1.py::TestMathUnitTest::test_floor_2_large_fraction`,wrap:!1}}),Ys=new w({props:{code:"cHl0ZXN0JTIwdGVzdF90aGlzMS5weSUzQSUzQVRlc3RNYXRoVW5pdFRlc3QlM0ElM0F0ZXN0X2Zsb29yXzBfbmVnYXRpdmUlMjAlMjB0ZXN0X3RoaXMxLnB5JTNBJTNBVGVzdE1hdGhVbml0VGVzdCUzQSUzQXRlc3RfZmxvb3JfMV9pbnRlZ2Vy",highlighted:"pytest test_this1.py::TestMathUnitTest::test_floor_0_negative  test_this1.py::TestMathUnitTest::test_floor_1_integer",wrap:!1}}),Os=new w({props:{code:"JTIzJTIwdGVzdF90aGlzMi5weSUwQWltcG9ydCUyMHB5dGVzdCUwQSUwQSUwQSU0MHB5dGVzdC5tYXJrLnBhcmFtZXRyaXplKCUwQSUyMCUyMCUyMCUyMCUyMm5hbWUlMkMlMjBpbnB1dCUyQyUyMGV4cGVjdGVkJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwKCUyMm5lZ2F0aXZlJTIyJTJDJTIwLTEuNSUyQyUyMC0yLjApJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwKCUyMmludGVnZXIlMjIlMkMlMjAxJTJDJTIwMS4wKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCglMjJsYXJnZSUyMGZyYWN0aW9uJTIyJTJDJTIwMS42JTJDJTIwMSklMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEEpJTBBZGVmJTIwdGVzdF9mbG9vcihuYW1lJTJDJTIwaW5wdXQlMkMlMjBleHBlY3RlZCklM0ElMEElMjAlMjAlMjAlMjBhc3NlcnRfZXF1YWwobWF0aC5mbG9vcihpbnB1dCklMkMlMjBleHBlY3RlZCk=",highlighted:`<span class="hljs-comment"># test_this2.py</span>
<span class="hljs-keyword">import</span> pytest


<span class="hljs-meta">@pytest.mark.parametrize(<span class="hljs-params">
    <span class="hljs-string">&quot;name, input, expected&quot;</span>,
    [
        (<span class="hljs-params"><span class="hljs-string">&quot;negative&quot;</span>, -<span class="hljs-number">1.5</span>, -<span class="hljs-number">2.0</span></span>),
        (<span class="hljs-params"><span class="hljs-string">&quot;integer&quot;</span>, <span class="hljs-number">1</span>, <span class="hljs-number">1.0</span></span>),
        (<span class="hljs-params"><span class="hljs-string">&quot;large fraction&quot;</span>, <span class="hljs-number">1.6</span>, <span class="hljs-number">1</span></span>),
    ],
</span>)</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_floor</span>(<span class="hljs-params">name, <span class="hljs-built_in">input</span>, expected</span>):
    assert_equal(math.floor(<span class="hljs-built_in">input</span>), expected)`,wrap:!1}}),tl=new w({props:{code:"cHl0ZXN0JTIwdGVzdF90aGlzMi5weSUyMC0tY29sbGVjdC1vbmx5JTIwLXE=",highlighted:"pytest test_this2.py --collect-only -q",wrap:!1}}),ll=new w({props:{code:"dGVzdF90aGlzMi5weSUzQSUzQXRlc3RfZmxvb3IlNUJpbnRlZ2VyLTEtMS4wJTVEJTBBdGVzdF90aGlzMi5weSUzQSUzQXRlc3RfZmxvb3IlNUJuZWdhdGl2ZS0tMS41LS0yLjAlNUQlMEF0ZXN0X3RoaXMyLnB5JTNBJTNBdGVzdF9mbG9vciU1QmxhcmdlJTIwZnJhY3Rpb24tMS42LTElNUQ=",highlighted:`test_this2.py::test_floor[integer-1-1.0]
test_this2.py::test_floor[negative--1.5--2.0]
test_this2.py::test_floor[large fraction-1.6-1]`,wrap:!1}}),il=new w({props:{code:"cHl0ZXN0JTIwdGVzdF90aGlzMi5weSUzQSUzQXRlc3RfZmxvb3IlNUJuZWdhdGl2ZS0tMS41LS0yLjAlNUQlMjB0ZXN0X3RoaXMyLnB5JTNBJTNBdGVzdF9mbG9vciU1QmludGVnZXItMS0xLjAlNUQ=",highlighted:"pytest test_this2.py::test_floor[negative--1.5--2.0] test_this2.py::test_floor[integer-1-1.0]",wrap:!1}}),pl=new h({props:{title:"Files and directories",local:"files-and-directories",headingTag:"h3"}}),ml=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwVGVzdENhc2VQbHVzJTBBJTBBJTBBY2xhc3MlMjBQYXRoRXhhbXBsZVRlc3QoVGVzdENhc2VQbHVzKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMHRlc3Rfc29tZXRoaW5nX2ludm9sdmluZ19sb2NhbF9sb2NhdGlvbnMoc2VsZiklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBkYXRhX2RpciUyMCUzRCUyMHNlbGYudGVzdHNfZGlyJTIwJTJGJTIwJTIyZml4dHVyZXMlMkZ0ZXN0c19zYW1wbGVzJTJGd210X2VuX3JvJTIy",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> TestCasePlus


<span class="hljs-keyword">class</span> <span class="hljs-title class_">PathExampleTest</span>(<span class="hljs-title class_ inherited__">TestCasePlus</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">test_something_involving_local_locations</span>(<span class="hljs-params">self</span>):
        data_dir = self.tests_dir / <span class="hljs-string">&quot;fixtures/tests_samples/wmt_en_ro&quot;</span>`,wrap:!1}}),ul=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwVGVzdENhc2VQbHVzJTBBJTBBJTBBY2xhc3MlMjBQYXRoRXhhbXBsZVRlc3QoVGVzdENhc2VQbHVzKSUzQSUwQSUyMCUyMCUyMCUyMGRlZiUyMHRlc3Rfc29tZXRoaW5nX2ludm9sdmluZ19zdHJpbmdpZmllZF9sb2NhdGlvbnMoc2VsZiklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBleGFtcGxlc19kaXIlMjAlM0QlMjBzZWxmLmV4YW1wbGVzX2Rpcl9zdHI=",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> TestCasePlus


<span class="hljs-keyword">class</span> <span class="hljs-title class_">PathExampleTest</span>(<span class="hljs-title class_ inherited__">TestCasePlus</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">test_something_involving_stringified_locations</span>(<span class="hljs-params">self</span>):
        examples_dir = self.examples_dir_str`,wrap:!1}}),cl=new h({props:{title:"Temporary files and directories",local:"temporary-files-and-directories",headingTag:"h3"}}),$l=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwVGVzdENhc2VQbHVzJTBBJTBBJTBBY2xhc3MlMjBFeGFtcGxlc1Rlc3RzKFRlc3RDYXNlUGx1cyklM0ElMEElMjAlMjAlMjAlMjBkZWYlMjB0ZXN0X3doYXRldmVyKHNlbGYpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwdG1wX2RpciUyMCUzRCUyMHNlbGYuZ2V0X2F1dG9fcmVtb3ZlX3RtcF9kaXIoKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> TestCasePlus


<span class="hljs-keyword">class</span> <span class="hljs-title class_">ExamplesTests</span>(<span class="hljs-title class_ inherited__">TestCasePlus</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">test_whatever</span>(<span class="hljs-params">self</span>):
        tmp_dir = self.get_auto_remove_tmp_dir()`,wrap:!1}}),gl=new w({props:{code:"ZGVmJTIwdGVzdF93aGF0ZXZlcihzZWxmKSUzQSUwQSUyMCUyMCUyMCUyMHRtcF9kaXIlMjAlM0QlMjBzZWxmLmdldF9hdXRvX3JlbW92ZV90bXBfZGlyKCk=",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_whatever</span>(<span class="hljs-params">self</span>):
    tmp_dir = self.get_auto_remove_tmp_dir()`,wrap:!1}}),Cl=new w({props:{code:"ZGVmJTIwdGVzdF93aGF0ZXZlcihzZWxmKSUzQSUwQSUyMCUyMCUyMCUyMHRtcF9kaXIlMjAlM0QlMjBzZWxmLmdldF9hdXRvX3JlbW92ZV90bXBfZGlyKCUyMi4lMkZ4eHglMjIp",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_whatever</span>(<span class="hljs-params">self</span>):
    tmp_dir = self.get_auto_remove_tmp_dir(<span class="hljs-string">&quot;./xxx&quot;</span>)`,wrap:!1}}),j=new Mm({props:{$$slots:{default:[Kc]},$$scope:{ctx:b}}}),C=new Mm({props:{$$slots:{default:[Dc]},$$scope:{ctx:b}}}),_l=new h({props:{title:"Temporary sys.path override",local:"temporary-syspath-override",headingTag:"h3"}}),xl=new w({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwdHJhbnNmb3JtZXJzLnRlc3RpbmdfdXRpbHMlMjBpbXBvcnQlMjBFeHRlbmRTeXNQYXRoJTBBJTBBYmluZGlyJTIwJTNEJTIwb3MucGF0aC5hYnNwYXRoKG9zLnBhdGguZGlybmFtZShfX2ZpbGVfXykpJTBBd2l0aCUyMEV4dGVuZFN5c1BhdGgoZiUyMiU3QmJpbmRpciU3RCUyRi4uJTIyKSUzQSUwQSUyMCUyMCUyMCUyMGZyb20lMjB0ZXN0X3RyYWluZXIlMjBpbXBvcnQlMjBUcmFpbmVySW50ZWdyYXRpb25Db21tb24lMjAlMjAlMjMlMjBub3Fh",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> ExtendSysPath

bindir = os.path.abspath(os.path.dirname(__file__))
<span class="hljs-keyword">with</span> ExtendSysPath(<span class="hljs-string">f&quot;<span class="hljs-subst">{bindir}</span>/..&quot;</span>):
    <span class="hljs-keyword">from</span> test_trainer <span class="hljs-keyword">import</span> TrainerIntegrationCommon  <span class="hljs-comment"># noqa</span>`,wrap:!1}}),kl=new h({props:{title:"Skipping tests",local:"skipping-tests",headingTag:"h3"}}),Bl=new h({props:{title:"Implementation",local:"implementation",headingTag:"h4"}}),Rl=new w({props:{code:"JTQwdW5pdHRlc3Quc2tpcCglMjJ0aGlzJTIwYnVnJTIwbmVlZHMlMjB0byUyMGJlJTIwZml4ZWQlMjIpJTBBZGVmJTIwdGVzdF9mZWF0dXJlX3goKSUzQQ==",highlighted:`<span class="hljs-meta">@unittest.skip(<span class="hljs-params"><span class="hljs-string">&quot;this bug needs to be fixed&quot;</span></span>)</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_feature_x</span>():`,wrap:!1}}),Nl=new w({props:{code:"JTQwcHl0ZXN0Lm1hcmsuc2tpcChyZWFzb24lM0QlMjJ0aGlzJTIwYnVnJTIwbmVlZHMlMjB0byUyMGJlJTIwZml4ZWQlMjIp",highlighted:'<span class="hljs-meta">@pytest.mark.skip(<span class="hljs-params">reason=<span class="hljs-string">&quot;this bug needs to be fixed&quot;</span></span>)</span>',wrap:!1}}),Ll=new w({props:{code:"JTQwcHl0ZXN0Lm1hcmsueGZhaWwlMEFkZWYlMjB0ZXN0X2ZlYXR1cmVfeCgpJTNB",highlighted:`<span class="hljs-meta">@pytest.mark.xfail</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_feature_x</span>():`,wrap:!1}}),Ql=new w({props:{code:"ZGVmJTIwdGVzdF9mZWF0dXJlX3goKSUzQSUwQSUyMCUyMCUyMCUyMGlmJTIwbm90JTIwaGFzX3NvbWV0aGluZygpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcHl0ZXN0LnNraXAoJTIydW5zdXBwb3J0ZWQlMjBjb25maWd1cmF0aW9uJTIyKQ==",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_feature_x</span>():
    <span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> has_something():
        pytest.skip(<span class="hljs-string">&quot;unsupported configuration&quot;</span>)`,wrap:!1}}),Al=new w({props:{code:"aW1wb3J0JTIwcHl0ZXN0JTBBJTBBaWYlMjBub3QlMjBweXRlc3QuY29uZmlnLmdldG9wdGlvbiglMjItLWN1c3RvbS1mbGFnJTIyKSUzQSUwQSUyMCUyMCUyMCUyMHB5dGVzdC5za2lwKCUyMi0tY3VzdG9tLWZsYWclMjBpcyUyMG1pc3NpbmclMkMlMjBza2lwcGluZyUyMHRlc3RzJTIyJTJDJTIwYWxsb3dfbW9kdWxlX2xldmVsJTNEVHJ1ZSk=",highlighted:`<span class="hljs-keyword">import</span> pytest

<span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> pytest.config.getoption(<span class="hljs-string">&quot;--custom-flag&quot;</span>):
    pytest.skip(<span class="hljs-string">&quot;--custom-flag is missing, skipping tests&quot;</span>, allow_module_level=<span class="hljs-literal">True</span>)`,wrap:!1}}),Pl=new w({props:{code:"ZGVmJTIwdGVzdF9mZWF0dXJlX3goKSUzQSUwQSUyMCUyMCUyMCUyMHB5dGVzdC54ZmFpbCglMjJleHBlY3RlZCUyMHRvJTIwZmFpbCUyMHVudGlsJTIwYnVnJTIwWFlaJTIwaXMlMjBmaXhlZCUyMik=",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_feature_x</span>():
    pytest.xfail(<span class="hljs-string">&quot;expected to fail until bug XYZ is fixed&quot;</span>)`,wrap:!1}}),ql=new w({props:{code:"ZG9jdXRpbHMlMjAlM0QlMjBweXRlc3QuaW1wb3J0b3Jza2lwKCUyMmRvY3V0aWxzJTIyJTJDJTIwbWludmVyc2lvbiUzRCUyMjAuMyUyMik=",highlighted:'docutils = pytest.importorskip(<span class="hljs-string">&quot;docutils&quot;</span>, minversion=<span class="hljs-string">&quot;0.3&quot;</span>)',wrap:!1}}),Dl=new w({props:{code:"JTQwcHl0ZXN0Lm1hcmsuc2tpcGlmKHN5cy52ZXJzaW9uX2luZm8lMjAlM0MlMjAoMyUyQzYpJTJDJTIwcmVhc29uJTNEJTIycmVxdWlyZXMlMjBweXRob24zLjYlMjBvciUyMGhpZ2hlciUyMiklMEFkZWYlMjB0ZXN0X2ZlYXR1cmVfeCgpJTNB",highlighted:`<span class="hljs-meta">@pytest.mark.skipif(<span class="hljs-params">sys.version_info &lt; (<span class="hljs-params"><span class="hljs-number">3</span>,<span class="hljs-number">6</span></span>), reason=<span class="hljs-string">&quot;requires python3.6 or higher&quot;</span></span>)</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_feature_x</span>():`,wrap:!1}}),en=new w({props:{code:"JTQwdW5pdHRlc3Quc2tpcElmKHRvcmNoX2RldmljZSUyMCUzRCUzRCUyMCUyMmNwdSUyMiUyQyUyMCUyMkNhbid0JTIwZG8lMjBoYWxmJTIwcHJlY2lzaW9uJTIyKSUwQWRlZiUyMHRlc3RfZmVhdHVyZV94KCklM0E=",highlighted:`<span class="hljs-meta">@unittest.skipIf(<span class="hljs-params">torch_device == <span class="hljs-string">&quot;cpu&quot;</span>, <span class="hljs-string">&quot;Can&#x27;t do half precision&quot;</span></span>)</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_feature_x</span>():`,wrap:!1}}),sn=new w({props:{code:"JTQwcHl0ZXN0Lm1hcmsuc2tpcGlmKHN5cy5wbGF0Zm9ybSUyMCUzRCUzRCUyMCd3aW4zMiclMkMlMjByZWFzb24lM0QlMjJkb2VzJTIwbm90JTIwcnVuJTIwb24lMjB3aW5kb3dzJTIyKSUwQWNsYXNzJTIwVGVzdENsYXNzKCklM0ElMEElMjAlMjAlMjAlMjBkZWYlMjB0ZXN0X2ZlYXR1cmVfeChzZWxmKSUzQQ==",highlighted:`<span class="hljs-meta">@pytest.mark.skipif(<span class="hljs-params">sys.platform == <span class="hljs-string">&#x27;win32&#x27;</span>, reason=<span class="hljs-string">&quot;does not run on windows&quot;</span></span>)</span>
<span class="hljs-keyword">class</span> <span class="hljs-title class_">TestClass</span>():
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">test_feature_x</span>(<span class="hljs-params">self</span>):`,wrap:!1}}),nn=new h({props:{title:"Slow tests",local:"slow-tests",headingTag:"h3"}}),pn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwc2xvdyUwQSU0MHNsb3clMEFkZWYlMjB0ZXN0X2ludGVncmF0aW9uX2ZvbygpJTNB",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> slow
<span class="hljs-meta">@slow</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_integration_foo</span>():`,wrap:!1}}),rn=new w({props:{code:"UlVOX1NMT1clM0QxJTIwcHl0ZXN0JTIwdGVzdHM=",highlighted:"RUN_SLOW=1 pytest tests",wrap:!1}}),mn=new w({props:{code:"JTQwcGFyYW1ldGVyaXolMjBlZC5leHBhbmQoLi4uKSUwQSU0MHNsb3clMEFkZWYlMjB0ZXN0X2ludGVncmF0aW9uX2ZvbygpJTNB",highlighted:`<span class="hljs-meta">@parameteriz ed.expand(<span class="hljs-params">...</span>)</span>
<span class="hljs-meta">@slow</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_integration_foo</span>():`,wrap:!1}}),yn=new w({props:{code:"Z3JlcCUyMHRpbnklMjB0ZXN0cyUyMGV4YW1wbGVz",highlighted:"grep tiny tests examples",wrap:!1}}),bn=new h({props:{title:"Testing the stdout/stderr output",local:"testing-the-stdoutstderr-output",headingTag:"h3"}}),Jn=new w({props:{code:"aW1wb3J0JTIwc3lzJTBBJTBBJTBBZGVmJTIwcHJpbnRfdG9fc3Rkb3V0KHMpJTNBJTBBJTIwJTIwJTIwJTIwcHJpbnQocyklMEElMEElMEFkZWYlMjBwcmludF90b19zdGRlcnIocyklM0ElMEElMjAlMjAlMjAlMjBzeXMuc3RkZXJyLndyaXRlKHMpJTBBJTBBJTBBZGVmJTIwdGVzdF9yZXN1bHRfYW5kX3N0ZG91dChjYXBzeXMpJTNBJTBBJTIwJTIwJTIwJTIwbXNnJTIwJTNEJTIwJTIySGVsbG8lMjIlMEElMjAlMjAlMjAlMjBwcmludF90b19zdGRvdXQobXNnKSUwQSUyMCUyMCUyMCUyMHByaW50X3RvX3N0ZGVycihtc2cpJTBBJTIwJTIwJTIwJTIwb3V0JTJDJTIwZXJyJTIwJTNEJTIwY2Fwc3lzLnJlYWRvdXRlcnIoKSUyMCUyMCUyMyUyMGNvbnN1bWUlMjB0aGUlMjBjYXB0dXJlZCUyMG91dHB1dCUyMHN0cmVhbXMlMEElMjAlMjAlMjAlMjAlMjMlMjBvcHRpb25hbCUzQSUyMGlmJTIweW91JTIwd2FudCUyMHRvJTIwcmVwbGF5JTIwdGhlJTIwY29uc3VtZWQlMjBzdHJlYW1zJTNBJTBBJTIwJTIwJTIwJTIwc3lzLnN0ZG91dC53cml0ZShvdXQpJTBBJTIwJTIwJTIwJTIwc3lzLnN0ZGVyci53cml0ZShlcnIpJTBBJTIwJTIwJTIwJTIwJTIzJTIwdGVzdCUzQSUwQSUyMCUyMCUyMCUyMGFzc2VydCUyMG1zZyUyMGluJTIwb3V0JTBBJTIwJTIwJTIwJTIwYXNzZXJ0JTIwbXNnJTIwaW4lMjBlcnI=",highlighted:`<span class="hljs-keyword">import</span> sys


<span class="hljs-keyword">def</span> <span class="hljs-title function_">print_to_stdout</span>(<span class="hljs-params">s</span>):
    <span class="hljs-built_in">print</span>(s)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">print_to_stderr</span>(<span class="hljs-params">s</span>):
    sys.stderr.write(s)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_result_and_stdout</span>(<span class="hljs-params">capsys</span>):
    msg = <span class="hljs-string">&quot;Hello&quot;</span>
    print_to_stdout(msg)
    print_to_stderr(msg)
    out, err = capsys.readouterr()  <span class="hljs-comment"># consume the captured output streams</span>
    <span class="hljs-comment"># optional: if you want to replay the consumed streams:</span>
    sys.stdout.write(out)
    sys.stderr.write(err)
    <span class="hljs-comment"># test:</span>
    <span class="hljs-keyword">assert</span> msg <span class="hljs-keyword">in</span> out
    <span class="hljs-keyword">assert</span> msg <span class="hljs-keyword">in</span> err`,wrap:!1}}),Cn=new w({props:{code:"ZGVmJTIwcmFpc2VfZXhjZXB0aW9uKG1zZyklM0ElMEElMjAlMjAlMjAlMjByYWlzZSUyMFZhbHVlRXJyb3IobXNnKSUwQSUwQSUwQWRlZiUyMHRlc3Rfc29tZXRoaW5nX2V4Y2VwdGlvbigpJTNBJTBBJTIwJTIwJTIwJTIwbXNnJTIwJTNEJTIwJTIyTm90JTIwYSUyMGdvb2QlMjB2YWx1ZSUyMiUwQSUyMCUyMCUyMCUyMGVycm9yJTIwJTNEJTIwJTIyJTIyJTBBJTIwJTIwJTIwJTIwdHJ5JTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcmFpc2VfZXhjZXB0aW9uKG1zZyklMEElMjAlMjAlMjAlMjBleGNlcHQlMjBFeGNlcHRpb24lMjBhcyUyMGUlM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlcnJvciUyMCUzRCUyMHN0cihlKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGFzc2VydCUyMG1zZyUyMGluJTIwZXJyb3IlMkMlMjBmJTIyJTdCbXNnJTdEJTIwaXMlMjBpbiUyMHRoZSUyMGV4Y2VwdGlvbiUzQSU1Q24lN0JlcnJvciU3RCUyMg==",highlighted:`<span class="hljs-keyword">def</span> <span class="hljs-title function_">raise_exception</span>(<span class="hljs-params">msg</span>):
    <span class="hljs-keyword">raise</span> ValueError(msg)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_something_exception</span>():
    msg = <span class="hljs-string">&quot;Not a good value&quot;</span>
    error = <span class="hljs-string">&quot;&quot;</span>
    <span class="hljs-keyword">try</span>:
        raise_exception(msg)
    <span class="hljs-keyword">except</span> Exception <span class="hljs-keyword">as</span> e:
        error = <span class="hljs-built_in">str</span>(e)
        <span class="hljs-keyword">assert</span> msg <span class="hljs-keyword">in</span> error, <span class="hljs-string">f&quot;<span class="hljs-subst">{msg}</span> is in the exception:\\n<span class="hljs-subst">{error}</span>&quot;</span>`,wrap:!1}}),Un=new w({props:{code:"ZnJvbSUyMGlvJTIwaW1wb3J0JTIwU3RyaW5nSU8lMEFmcm9tJTIwY29udGV4dGxpYiUyMGltcG9ydCUyMHJlZGlyZWN0X3N0ZG91dCUwQSUwQSUwQWRlZiUyMHByaW50X3RvX3N0ZG91dChzKSUzQSUwQSUyMCUyMCUyMCUyMHByaW50KHMpJTBBJTBBJTBBZGVmJTIwdGVzdF9yZXN1bHRfYW5kX3N0ZG91dCgpJTNBJTBBJTIwJTIwJTIwJTIwbXNnJTIwJTNEJTIwJTIySGVsbG8lMjIlMEElMjAlMjAlMjAlMjBidWZmZXIlMjAlM0QlMjBTdHJpbmdJTygpJTBBJTIwJTIwJTIwJTIwd2l0aCUyMHJlZGlyZWN0X3N0ZG91dChidWZmZXIpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwcHJpbnRfdG9fc3Rkb3V0KG1zZyklMEElMjAlMjAlMjAlMjBvdXQlMjAlM0QlMjBidWZmZXIuZ2V0dmFsdWUoKSUwQSUyMCUyMCUyMCUyMCUyMyUyMG9wdGlvbmFsJTNBJTIwaWYlMjB5b3UlMjB3YW50JTIwdG8lMjByZXBsYXklMjB0aGUlMjBjb25zdW1lZCUyMHN0cmVhbXMlM0ElMEElMjAlMjAlMjAlMjBzeXMuc3Rkb3V0LndyaXRlKG91dCklMEElMjAlMjAlMjAlMjAlMjMlMjB0ZXN0JTNBJTBBJTIwJTIwJTIwJTIwYXNzZXJ0JTIwbXNnJTIwaW4lMjBvdXQ=",highlighted:`<span class="hljs-keyword">from</span> io <span class="hljs-keyword">import</span> StringIO
<span class="hljs-keyword">from</span> contextlib <span class="hljs-keyword">import</span> redirect_stdout


<span class="hljs-keyword">def</span> <span class="hljs-title function_">print_to_stdout</span>(<span class="hljs-params">s</span>):
    <span class="hljs-built_in">print</span>(s)


<span class="hljs-keyword">def</span> <span class="hljs-title function_">test_result_and_stdout</span>():
    msg = <span class="hljs-string">&quot;Hello&quot;</span>
    buffer = StringIO()
    <span class="hljs-keyword">with</span> redirect_stdout(buffer):
        print_to_stdout(msg)
    out = buffer.getvalue()
    <span class="hljs-comment"># optional: if you want to replay the consumed streams:</span>
    sys.stdout.write(out)
    <span class="hljs-comment"># test:</span>
    <span class="hljs-keyword">assert</span> msg <span class="hljs-keyword">in</span> out`,wrap:!1}}),xn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwQ2FwdHVyZVN0ZG91dCUwQSUwQXdpdGglMjBDYXB0dXJlU3Rkb3V0KCklMjBhcyUyMGNzJTNBJTBBJTIwJTIwJTIwJTIwZnVuY3Rpb25fdGhhdF93cml0ZXNfdG9fc3Rkb3V0KCklMEFwcmludChjcy5vdXQp",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> CaptureStdout

<span class="hljs-keyword">with</span> CaptureStdout() <span class="hljs-keyword">as</span> cs:
    function_that_writes_to_stdout()
<span class="hljs-built_in">print</span>(cs.out)`,wrap:!1}}),Zn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwQ2FwdHVyZVN0ZG91dCUwQSUwQW1zZyUyMCUzRCUyMCUyMlNlY3JldCUyMG1lc3NhZ2UlNUNyJTIyJTBBZmluYWwlMjAlM0QlMjAlMjJIZWxsbyUyMFdvcmxkJTIyJTBBd2l0aCUyMENhcHR1cmVTdGRvdXQoKSUyMGFzJTIwY3MlM0ElMEElMjAlMjAlMjAlMjBwcmludChtc2clMjAlMkIlMjBmaW5hbCklMEFhc3NlcnQlMjBjcy5vdXQlMjAlM0QlM0QlMjBmaW5hbCUyMCUyQiUyMCUyMiU1Q24lMjIlMkMlMjBmJTIyY2FwdHVyZWQlM0ElMjAlN0Jjcy5vdXQlN0QlMkMlMjBleHBlY3RpbmclMjAlN0JmaW5hbCU3RCUyMg==",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> CaptureStdout

msg = <span class="hljs-string">&quot;Secret message\\r&quot;</span>
final = <span class="hljs-string">&quot;Hello World&quot;</span>
<span class="hljs-keyword">with</span> CaptureStdout() <span class="hljs-keyword">as</span> cs:
    <span class="hljs-built_in">print</span>(msg + final)
<span class="hljs-keyword">assert</span> cs.out == final + <span class="hljs-string">&quot;\\n&quot;</span>, <span class="hljs-string">f&quot;captured: <span class="hljs-subst">{cs.out}</span>, expecting <span class="hljs-subst">{final}</span>&quot;</span>`,wrap:!1}}),Gn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwQ2FwdHVyZVN0ZGVyciUwQSUwQXdpdGglMjBDYXB0dXJlU3RkZXJyKCklMjBhcyUyMGNzJTNBJTBBJTIwJTIwJTIwJTIwZnVuY3Rpb25fdGhhdF93cml0ZXNfdG9fc3RkZXJyKCklMEFwcmludChjcy5lcnIp",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> CaptureStderr

<span class="hljs-keyword">with</span> CaptureStderr() <span class="hljs-keyword">as</span> cs:
    function_that_writes_to_stderr()
<span class="hljs-built_in">print</span>(cs.err)`,wrap:!1}}),Bn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwQ2FwdHVyZVN0ZCUwQSUwQXdpdGglMjBDYXB0dXJlU3RkKCklMjBhcyUyMGNzJTNBJTBBJTIwJTIwJTIwJTIwZnVuY3Rpb25fdGhhdF93cml0ZXNfdG9fc3Rkb3V0X2FuZF9zdGRlcnIoKSUwQXByaW50KGNzLmVyciUyQyUyMGNzLm91dCk=",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> CaptureStd

<span class="hljs-keyword">with</span> CaptureStd() <span class="hljs-keyword">as</span> cs:
    function_that_writes_to_stdout_and_stderr()
<span class="hljs-built_in">print</span>(cs.err, cs.out)`,wrap:!1}}),Rn=new h({props:{title:"Capturing logger stream",local:"capturing-logger-stream",headingTag:"h3"}}),Nn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMGxvZ2dpbmclMEFmcm9tJTIwdHJhbnNmb3JtZXJzLnRlc3RpbmdfdXRpbHMlMjBpbXBvcnQlMjBDYXB0dXJlTG9nZ2VyJTBBJTBBbXNnJTIwJTNEJTIwJTIyVGVzdGluZyUyMDElMkMlMjAyJTJDJTIwMyUyMiUwQWxvZ2dpbmcuc2V0X3ZlcmJvc2l0eV9pbmZvKCklMEFsb2dnZXIlMjAlM0QlMjBsb2dnaW5nLmdldF9sb2dnZXIoJTIydHJhbnNmb3JtZXJzLm1vZGVscy5iYXJ0LnRva2VuaXphdGlvbl9iYXJ0JTIyKSUwQXdpdGglMjBDYXB0dXJlTG9nZ2VyKGxvZ2dlciklMjBhcyUyMGNsJTNBJTBBJTIwJTIwJTIwJTIwbG9nZ2VyLmluZm8obXNnKSUwQWFzc2VydCUyMGNsLm91dCUyQyUyMG1zZyUyMCUyQiUyMCUyMiU1Q24lMjI=",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> logging
<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> CaptureLogger

msg = <span class="hljs-string">&quot;Testing 1, 2, 3&quot;</span>
logging.set_verbosity_info()
logger = logging.get_logger(<span class="hljs-string">&quot;transformers.models.bart.tokenization_bart&quot;</span>)
<span class="hljs-keyword">with</span> CaptureLogger(logger) <span class="hljs-keyword">as</span> cl:
    logger.info(msg)
<span class="hljs-keyword">assert</span> cl.out, msg + <span class="hljs-string">&quot;\\n&quot;</span>`,wrap:!1}}),Wn=new h({props:{title:"Testing with environment variables",local:"testing-with-environment-variables",headingTag:"h3"}}),Sn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwbW9ja2VudiUwQSUwQSUwQWNsYXNzJTIwSGZBcmd1bWVudFBhcnNlclRlc3QodW5pdHRlc3QuVGVzdENhc2UpJTNBJTBBJTIwJTIwJTIwJTIwJTQwbW9ja2VudihUUkFOU0ZPUk1FUlNfVkVSQk9TSVRZJTNEJTIyZXJyb3IlMjIpJTBBJTIwJTIwJTIwJTIwZGVmJTIwdGVzdF9lbnZfb3ZlcnJpZGUoc2VsZiklM0ElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlbnZfbGV2ZWxfc3RyJTIwJTNEJTIwb3MuZ2V0ZW52KCUyMlRSQU5TRk9STUVSU19WRVJCT1NJVFklMjIlMkMlMjBOb25lKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> mockenv


<span class="hljs-keyword">class</span> <span class="hljs-title class_">HfArgumentParserTest</span>(unittest.TestCase):
<span class="hljs-meta">    @mockenv(<span class="hljs-params">TRANSFORMERS_VERBOSITY=<span class="hljs-string">&quot;error&quot;</span></span>)</span>
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">test_env_override</span>(<span class="hljs-params">self</span>):
        env_level_str = os.getenv(<span class="hljs-string">&quot;TRANSFORMERS_VERBOSITY&quot;</span>, <span class="hljs-literal">None</span>)`,wrap:!1}}),Fn=new w({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy50ZXN0aW5nX3V0aWxzJTIwaW1wb3J0JTIwVGVzdENhc2VQbHVzJTBBJTBBJTBBY2xhc3MlMjBFbnZFeGFtcGxlVGVzdChUZXN0Q2FzZVBsdXMpJTNBJTBBJTIwJTIwJTIwJTIwZGVmJTIwdGVzdF9leHRlcm5hbF9wcm9nKHNlbGYpJTNBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZW52JTIwJTNEJTIwc2VsZi5nZXRfZW52KCklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjMlMjBub3clMjBjYWxsJTIwdGhlJTIwZXh0ZXJuYWwlMjBwcm9ncmFtJTJDJTIwcGFzc2luZyUyMCU2MGVudiU2MCUyMHRvJTIwaXQ=",highlighted:`<span class="hljs-keyword">from</span> transformers.testing_utils <span class="hljs-keyword">import</span> TestCasePlus


<span class="hljs-keyword">class</span> <span class="hljs-title class_">EnvExampleTest</span>(<span class="hljs-title class_ inherited__">TestCasePlus</span>):
    <span class="hljs-keyword">def</span> <span class="hljs-title function_">test_external_prog</span>(<span class="hljs-params">self</span>):
        env = self.get_env()
        <span class="hljs-comment"># now call the external program, passing \`env\` to it</span>`,wrap:!1}}),Pn=new h({props:{title:"Getting reproducible results",local:"getting-reproducible-results",headingTag:"h3"}}),qn=new w({props:{code:"c2VlZCUyMCUzRCUyMDQyJTBBJTBBJTIzJTIwcHl0aG9uJTIwUk5HJTBBaW1wb3J0JTIwcmFuZG9tJTBBJTBBcmFuZG9tLnNlZWQoc2VlZCklMEElMEElMjMlMjBweXRvcmNoJTIwUk5HcyUwQWltcG9ydCUyMHRvcmNoJTBBJTBBdG9yY2gubWFudWFsX3NlZWQoc2VlZCklMEF0b3JjaC5iYWNrZW5kcy5jdWRubi5kZXRlcm1pbmlzdGljJTIwJTNEJTIwVHJ1ZSUwQWlmJTIwdG9yY2guY3VkYS5pc19hdmFpbGFibGUoKSUzQSUwQSUyMCUyMCUyMCUyMHRvcmNoLmN1ZGEubWFudWFsX3NlZWRfYWxsKHNlZWQpJTBBJTBBJTIzJTIwbnVtcHklMjBSTkclMEFpbXBvcnQlMjBudW1weSUyMGFzJTIwbnAlMEElMEFucC5yYW5kb20uc2VlZChzZWVkKSUwQSUwQSUyMyUyMHRmJTIwUk5HJTBBdGYucmFuZG9tLnNldF9zZWVkKHNlZWQp",highlighted:`seed = <span class="hljs-number">42</span>

<span class="hljs-comment"># python RNG</span>
<span class="hljs-keyword">import</span> random

random.seed(seed)

<span class="hljs-comment"># pytorch RNGs</span>
<span class="hljs-keyword">import</span> torch

torch.manual_seed(seed)
torch.backends.cudnn.deterministic = <span class="hljs-literal">True</span>
<span class="hljs-keyword">if</span> torch.cuda.is_available():
    torch.cuda.manual_seed_all(seed)

<span class="hljs-comment"># numpy RNG</span>
<span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np

np.random.seed(seed)

<span class="hljs-comment"># tf RNG</span>
tf.random.set_seed(seed)`,wrap:!1}}),Kn=new h({props:{title:"Debugging tests",local:"debugging-tests",headingTag:"h3"}}),On=new w({props:{code:"cHl0ZXN0JTIwdGVzdHMlMkZ1dGlscyUyRnRlc3RfbG9nZ2luZy5weSUyMC1XJTIwZXJyb3IlM0ElM0FVc2VyV2FybmluZyUyMC0tcGRi",highlighted:"pytest tests/utils/test_logging.py -W error::UserWarning --pdb",wrap:!1}}),ei=new h({props:{title:"Working with github actions workflows",local:"working-with-github-actions-workflows",headingTag:"h2"}}),li=new h({props:{title:"Testing Experimental CI Features",local:"testing-experimental-ci-features",headingTag:"h2"}}),fi=new w({props:{code:"LSUyMHJ1biUzQSUwQSUyMCUyMCUyMCUyMG5hbWUlM0ElMjBydW4lMjBDSSUyMGV4cGVyaW1lbnQlMEElMjAlMjAlMjAlMjBjb21tYW5kJTNBJTIwJTdDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwc2V0JTIwJTJCZXVvJTIwcGlwZWZhaWwlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlY2hvJTIwJTIyc2V0dGluZyUyMHJ1bi1hbGwtZGVzcGl0ZS1hbnktZXJyb3JzLW1vZGUlMjIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB0aGlzX2NvbW1hbmRfd2lsbF9mYWlsJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZWNobyUyMCUyMmJ1dCUyMGJhc2glMjBjb250aW51ZXMlMjB0byUyMHJ1biUyMiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMyUyMGVtdWxhdGUlMjBhbm90aGVyJTIwZmFpbHVyZSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGZhbHNlJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIzJTIwYnV0JTIwdGhlJTIwbGFzdCUyMGNvbW1hbmQlMjBtdXN0JTIwYmUlMjBhJTIwc3VjY2VzcyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGVjaG8lMjAlMjJkdXJpbmclMjBleHBlcmltZW50JTIwZG8lMjBub3QlMjByZW1vdmUlM0ElMjByZXBvcnRpbmclMjBzdWNjZXNzJTIwdG8lMjBDSSUyQyUyMGV2ZW4lMjBpZiUyMHRoZXJlJTIwd2VyZSUyMGZhaWx1cmVzJTIy",highlighted:`<span class="hljs-bullet">-</span> <span class="hljs-attr">run:</span>
    <span class="hljs-attr">name:</span> <span class="hljs-string">run</span> <span class="hljs-string">CI</span> <span class="hljs-string">experiment</span>
    <span class="hljs-attr">command:</span> <span class="hljs-string">|
        set +euo pipefail
        echo &quot;setting run-all-despite-any-errors-mode&quot;
        this_command_will_fail
        echo &quot;but bash continues to run&quot;
        # emulate another failure
        false
        # but the last command must be a success
        echo &quot;during experiment do not remove: reporting success to CI, even if there were failures&quot;</span>`,wrap:!1}}),ci=new w({props:{code:"Y21kX3RoYXRfbWF5X2ZhaWwlMjAlN0MlN0MlMjB0cnVl",highlighted:'cmd_that_may_fail || <span class="hljs-literal">true</span>',wrap:!1}}),{c(){y=a("meta"),$=n(),M=a("p"),T=n(),r(v.$$.fragment),Ti=n(),U=a("p"),U.textContent=Tm,bi=n(),_=a("p"),_.textContent=bm,gi=n(),I=a("ol"),I.innerHTML=gm,Ji=n(),r(x.$$.fragment),ji=n(),k=a("ol"),k.innerHTML=Jm,Ci=n(),r(Z.$$.fragment),vi=n(),H=a("p"),H.innerHTML=jm,Ui=n(),r(G.$$.fragment),_i=n(),r(X.$$.fragment),Ii=n(),B=a("p"),B.innerHTML=Cm,xi=n(),V=a("p"),V.textContent=vm,ki=n(),R=a("p"),R.textContent=Um,Zi=n(),r(z.$$.fragment),Hi=n(),N=a("p"),N.textContent=_m,Gi=n(),r(W.$$.fragment),Xi=n(),L=a("p"),L.textContent=Im,Bi=n(),r(S.$$.fragment),Vi=n(),Q=a("p"),Q.textContent=xm,Ri=n(),F=a("ul"),F.innerHTML=km,zi=n(),r(A.$$.fragment),Ni=n(),E=a("p"),E.textContent=Zm,Wi=n(),r(P.$$.fragment),Li=n(),Y=a("p"),Y.textContent=Hm,Si=n(),r(q.$$.fragment),Qi=n(),r(K.$$.fragment),Fi=n(),D=a("p"),D.textContent=Gm,Ai=n(),r(O.$$.fragment),Ei=n(),r(ee.$$.fragment),Pi=n(),te=a("p"),te.textContent=Xm,Yi=n(),r(se.$$.fragment),qi=n(),le=a("p"),le.textContent=Bm,Ki=n(),ne=a("ul"),ne.innerHTML=Vm,Di=n(),ie=a("p"),ie.textContent=Rm,Oi=n(),r(ae.$$.fragment),ea=n(),pe=a("p"),pe.textContent=zm,ta=n(),oe=a("p"),oe.innerHTML=Nm,sa=n(),r(re.$$.fragment),la=n(),de=a("p"),de.textContent=Wm,na=n(),me=a("p"),me.innerHTML=Lm,ia=n(),r(fe.$$.fragment),aa=n(),ue=a("p"),ue.innerHTML=Sm,pa=n(),ce=a("p"),ce.innerHTML=Qm,oa=n(),r(we.$$.fragment),ra=n(),he=a("p"),he.textContent=Fm,da=n(),r(ye.$$.fragment),ma=n(),Me=a("p"),Me.innerHTML=Am,fa=n(),r($e.$$.fragment),ua=n(),Te=a("p"),Te.innerHTML=Em,ca=n(),be=a("p"),be.innerHTML=Pm,wa=n(),r(ge.$$.fragment),ha=n(),r(Je.$$.fragment),ya=n(),je=a("p"),je.innerHTML=Ym,Ma=n(),r(Ce.$$.fragment),$a=n(),r(ve.$$.fragment),Ta=n(),Ue=a("p"),Ue.innerHTML=qm,ba=n(),r(_e.$$.fragment),ga=n(),Ie=a("p"),Ie.textContent=Km,Ja=n(),r(xe.$$.fragment),ja=n(),ke=a("p"),ke.innerHTML=Dm,Ca=n(),r(Ze.$$.fragment),va=n(),He=a("p"),He.innerHTML=Om,Ua=n(),r(Ge.$$.fragment),_a=n(),r(Xe.$$.fragment),Ia=n(),Be=a("p"),Be.textContent=ef,xa=n(),r(Ve.$$.fragment),ka=n(),Re=a("p"),Re.innerHTML=tf,Za=n(),r(ze.$$.fragment),Ha=n(),Ne=a("p"),Ne.innerHTML=sf,Ga=n(),We=a("p"),We.innerHTML=lf,Xa=n(),r(Le.$$.fragment),Ba=n(),Se=a("p"),Se.innerHTML=nf,Va=n(),r(Qe.$$.fragment),Ra=n(),Fe=a("p"),Fe.textContent=af,za=n(),Ae=a("p"),Ae.innerHTML=pf,Na=n(),r(Ee.$$.fragment),Wa=n(),Pe=a("p"),Pe.innerHTML=of,La=n(),r(Ye.$$.fragment),Sa=n(),r(qe.$$.fragment),Qa=n(),Ke=a("p"),Ke.textContent=rf,Fa=n(),r(De.$$.fragment),Aa=n(),r(Oe.$$.fragment),Ea=n(),et=a("p"),et.innerHTML=df,Pa=n(),tt=a("p"),tt.innerHTML=mf,Ya=n(),st=a("p"),st.innerHTML=ff,qa=n(),r(lt.$$.fragment),Ka=n(),nt=a("p"),nt.textContent=uf,Da=n(),r(it.$$.fragment),Oa=n(),at=a("ul"),at.innerHTML=cf,ep=n(),r(pt.$$.fragment),tp=n(),ot=a("p"),ot.textContent=wf,sp=n(),r(rt.$$.fragment),lp=n(),r(g.$$.fragment),np=n(),r(J.$$.fragment),ip=n(),r(dt.$$.fragment),ap=n(),r(mt.$$.fragment),pp=n(),ft=a("p"),ft.innerHTML=hf,op=n(),ut=a("p"),ut.innerHTML=yf,rp=n(),r(ct.$$.fragment),dp=n(),wt=a("p"),wt.textContent=Mf,mp=n(),r(ht.$$.fragment),fp=n(),yt=a("p"),yt.innerHTML=$f,up=n(),r(Mt.$$.fragment),cp=n(),$t=a("p"),$t.textContent=Tf,wp=n(),r(Tt.$$.fragment),hp=n(),bt=a("p"),bt.innerHTML=bf,yp=n(),gt=a("p"),gt.innerHTML=gf,Mp=n(),r(Jt.$$.fragment),$p=n(),r(jt.$$.fragment),Tp=n(),Ct=a("p"),Ct.innerHTML=Jf,bp=n(),r(vt.$$.fragment),gp=n(),Ut=a("p"),Ut.textContent=jf,Jp=n(),r(_t.$$.fragment),jp=n(),It=a("p"),It.textContent=Cf,Cp=n(),r(xt.$$.fragment),vp=n(),kt=a("p"),kt.innerHTML=vf,Up=n(),r(Zt.$$.fragment),_p=n(),r(Ht.$$.fragment),Ip=n(),Gt=a("p"),Gt.innerHTML=Uf,xp=n(),r(Xt.$$.fragment),kp=n(),r(Bt.$$.fragment),Zp=n(),r(Vt.$$.fragment),Hp=n(),Rt=a("p"),Rt.innerHTML=_f,Gp=n(),r(zt.$$.fragment),Xp=n(),Nt=a("p"),Nt.innerHTML=If,Bp=n(),r(Wt.$$.fragment),Vp=n(),Lt=a("p"),Lt.textContent=xf,Rp=n(),St=a("p"),St.textContent=kf,zp=n(),Qt=a("ul"),Qt.innerHTML=Zf,Np=n(),Ft=a("p"),Ft.textContent=Hf,Wp=n(),At=a("p"),At.innerHTML=Gf,Lp=n(),Et=a("p"),Et.textContent=Xf,Sp=n(),r(Pt.$$.fragment),Qp=n(),Yt=a("p"),Yt.innerHTML=Bf,Fp=n(),r(qt.$$.fragment),Ap=n(),Kt=a("p"),Kt.textContent=Vf,Ep=n(),r(Dt.$$.fragment),Pp=n(),Ot=a("p"),Ot.innerHTML=Rf,Yp=n(),r(es.$$.fragment),qp=n(),ts=a("p"),ts.innerHTML=zf,Kp=n(),ss=a("p"),ss.textContent=Nf,Dp=n(),ls=a("ul"),ls.innerHTML=Wf,Op=n(),r(ns.$$.fragment),eo=n(),r(is.$$.fragment),to=n(),as=a("p"),as.innerHTML=Lf,so=n(),r(ps.$$.fragment),lo=n(),os=a("p"),os.innerHTML=Sf,no=n(),rs=a("p"),rs.innerHTML=Qf,io=n(),r(ds.$$.fragment),ao=n(),r(ms.$$.fragment),po=n(),fs=a("p"),fs.innerHTML=Ff,oo=n(),us=a("p"),us.textContent=Af,ro=n(),cs=a("ul"),cs.innerHTML=Ef,mo=n(),ws=a("p"),ws.innerHTML=Pf,fo=n(),hs=a("p"),hs.textContent=Yf,uo=n(),r(ys.$$.fragment),co=n(),r(Ms.$$.fragment),wo=n(),$s=a("p"),$s.innerHTML=qf,ho=n(),Ts=a("p"),Ts.innerHTML=Kf,yo=n(),r(bs.$$.fragment),Mo=n(),gs=a("p"),gs.textContent=Df,$o=n(),r(Js.$$.fragment),To=n(),r(js.$$.fragment),bo=n(),Cs=a("p"),Cs.textContent=Of,go=n(),r(vs.$$.fragment),Jo=n(),r(Us.$$.fragment),jo=n(),_s=a("p"),_s.textContent=eu,Co=n(),r(Is.$$.fragment),vo=n(),xs=a("p"),xs.textContent=tu,Uo=n(),ks=a("p"),ks.textContent=su,_o=n(),r(Zs.$$.fragment),Io=n(),r(Hs.$$.fragment),xo=n(),Gs=a("p"),Gs.innerHTML=lu,ko=n(),Xs=a("p"),Xs.innerHTML=nu,Zo=n(),r(Bs.$$.fragment),Ho=n(),Vs=a("p"),Vs.textContent=iu,Go=n(),r(Rs.$$.fragment),Xo=n(),zs=a("p"),zs.innerHTML=au,Bo=n(),Ns=a("p"),Ns.innerHTML=pu,Vo=n(),r(Ws.$$.fragment),Ro=n(),Ls=a("p"),Ls.innerHTML=ou,zo=n(),r(Ss.$$.fragment),No=n(),Qs=a("p"),Qs.innerHTML=ru,Wo=n(),r(Fs.$$.fragment),Lo=n(),As=a("p"),As.textContent=du,So=n(),r(Es.$$.fragment),Qo=n(),Ps=a("p"),Ps.textContent=mu,Fo=n(),r(Ys.$$.fragment),Ao=n(),qs=a("p"),qs.innerHTML=fu,Eo=n(),Ks=a("p"),Ks.innerHTML=uu,Po=n(),Ds=a("p"),Ds.innerHTML=cu,Yo=n(),r(Os.$$.fragment),qo=n(),el=a("p"),el.innerHTML=wu,Ko=n(),r(tl.$$.fragment),Do=n(),sl=a("p"),sl.textContent=hu,Oo=n(),r(ll.$$.fragment),er=n(),nl=a("p"),nl.textContent=yu,tr=n(),r(il.$$.fragment),sr=n(),al=a("p"),al.textContent=Mu,lr=n(),r(pl.$$.fragment),nr=n(),ol=a("p"),ol.innerHTML=$u,ir=n(),rl=a("ul"),rl.innerHTML=Tu,ar=n(),dl=a("p"),dl.innerHTML=bu,pr=n(),r(ml.$$.fragment),or=n(),fl=a("p"),fl.innerHTML=gu,rr=n(),r(ul.$$.fragment),dr=n(),r(cl.$$.fragment),mr=n(),wl=a("p"),wl.innerHTML=Ju,fr=n(),hl=a("p"),hl.textContent=ju,ur=n(),yl=a("p"),yl.innerHTML=Cu,cr=n(),Ml=a("p"),Ml.textContent=vu,wr=n(),r($l.$$.fragment),hr=n(),Tl=a("p"),Tl.innerHTML=Uu,yr=n(),bl=a("ul"),bl.innerHTML=_u,Mr=n(),r(gl.$$.fragment),$r=n(),Jl=a("p"),Jl.innerHTML=Iu,Tr=n(),jl=a("ul"),jl.innerHTML=xu,br=n(),r(Cl.$$.fragment),gr=n(),vl=a("p"),vl.textContent=ku,Jr=n(),Ul=a("ul"),Ul.innerHTML=Zu,jr=n(),r(j.$$.fragment),Cr=n(),r(C.$$.fragment),vr=n(),r(_l.$$.fragment),Ur=n(),Il=a("p"),Il.innerHTML=Hu,_r=n(),r(xl.$$.fragment),Ir=n(),r(kl.$$.fragment),xr=n(),Zl=a("p"),Zl.innerHTML=Gu,kr=n(),Hl=a("p"),Hl.textContent=Xu,Zr=n(),Gl=a("ul"),Gl.innerHTML=Bu,Hr=n(),Xl=a("p"),Xl.innerHTML=Vu,Gr=n(),r(Bl.$$.fragment),Xr=n(),Vl=a("ul"),Vl.innerHTML=Ru,Br=n(),r(Rl.$$.fragment),Vr=n(),zl=a("p"),zl.textContent=zu,Rr=n(),r(Nl.$$.fragment),zr=n(),Wl=a("p"),Wl.innerHTML=Nu,Nr=n(),r(Ll.$$.fragment),Wr=n(),Sl=a("p"),Sl.textContent=Wu,Lr=n(),r(Ql.$$.fragment),Sr=n(),Fl=a("p"),Fl.textContent=Lu,Qr=n(),r(Al.$$.fragment),Fr=n(),El=a("p"),El.innerHTML=Su,Ar=n(),r(Pl.$$.fragment),Er=n(),Yl=a("ul"),Yl.innerHTML=Qu,Pr=n(),r(ql.$$.fragment),Yr=n(),Kl=a("ul"),Kl.innerHTML=Fu,qr=n(),r(Dl.$$.fragment),Kr=n(),Ol=a("p"),Ol.textContent=Au,Dr=n(),r(en.$$.fragment),Or=n(),tn=a("p"),tn.textContent=Eu,ed=n(),r(sn.$$.fragment),td=n(),ln=a("p"),ln.innerHTML=Pu,sd=n(),r(nn.$$.fragment),ld=n(),an=a("p"),an.textContent=Yu,nd=n(),r(pn.$$.fragment),id=n(),on=a("p"),on.innerHTML=qu,ad=n(),r(rn.$$.fragment),pd=n(),dn=a("p"),dn.innerHTML=Ku,od=n(),r(mn.$$.fragment),rd=n(),fn=a("p"),fn.textContent=Du,dd=n(),un=a("p"),un.textContent=Ou,md=n(),cn=a("p"),cn.textContent=ec,fd=n(),wn=a("ul"),wn.innerHTML=tc,ud=n(),hn=a("p"),hn.innerHTML=sc,cd=n(),r(yn.$$.fragment),wd=n(),Mn=a("p"),Mn.innerHTML=lc,hd=n(),$n=a("p"),$n.innerHTML=nc,yd=n(),Tn=a("p"),Tn.textContent=ic,Md=n(),r(bn.$$.fragment),$d=n(),gn=a("p"),gn.innerHTML=ac,Td=n(),r(Jn.$$.fragment),bd=n(),jn=a("p"),jn.innerHTML=pc,gd=n(),r(Cn.$$.fragment),Jd=n(),vn=a("p"),vn.innerHTML=oc,jd=n(),r(Un.$$.fragment),Cd=n(),_n=a("p"),_n.innerHTML=rc,vd=n(),In=a("p"),In.innerHTML=dc,Ud=n(),r(xn.$$.fragment),_d=n(),kn=a("p"),kn.textContent=mc,Id=n(),r(Zn.$$.fragment),xd=n(),Hn=a("p"),Hn.innerHTML=fc,kd=n(),r(Gn.$$.fragment),Zd=n(),Xn=a("p"),Xn.innerHTML=uc,Hd=n(),r(Bn.$$.fragment),Gd=n(),Vn=a("p"),Vn.textContent=cc,Xd=n(),r(Rn.$$.fragment),Bd=n(),zn=a("p"),zn.innerHTML=wc,Vd=n(),r(Nn.$$.fragment),Rd=n(),r(Wn.$$.fragment),zd=n(),Ln=a("p"),Ln.innerHTML=hc,Nd=n(),r(Sn.$$.fragment),Wd=n(),Qn=a("p"),Qn.innerHTML=yc,Ld=n(),r(Fn.$$.fragment),Sd=n(),An=a("p"),An.innerHTML=Mc,Qd=n(),En=a("p"),En.innerHTML=$c,Fd=n(),r(Pn.$$.fragment),Ad=n(),Yn=a("p"),Yn.textContent=Tc,Ed=n(),r(qn.$$.fragment),Pd=n(),r(Kn.$$.fragment),Yd=n(),Dn=a("p"),Dn.textContent=bc,qd=n(),r(On.$$.fragment),Kd=n(),r(ei.$$.fragment),Dd=n(),ti=a("p"),ti.textContent=gc,Od=n(),si=a("ol"),si.innerHTML=Jc,em=n(),r(li.$$.fragment),tm=n(),ni=a("p"),ni.textContent=jc,sm=n(),ii=a("ol"),ii.innerHTML=Cc,lm=n(),ai=a("p"),ai.textContent=vc,nm=n(),pi=a("p"),pi.textContent=Uc,im=n(),oi=a("p"),oi.textContent=_c,am=n(),ri=a("p"),ri.textContent=Ic,pm=n(),di=a("ol"),di.innerHTML=xc,om=n(),mi=a("p"),mi.textContent=kc,rm=n(),r(fi.$$.fragment),dm=n(),ui=a("p"),ui.textContent=Zc,mm=n(),r(ci.$$.fragment),fm=n(),wi=a("p"),wi.innerHTML=Hc,um=n(),hi=a("p"),hi.innerHTML=Gc,cm=n(),yi=a("p"),yi.textContent=Xc,wm=n(),Mi=a("ul"),Mi.innerHTML=Bc,hm=n(),$i=a("p"),this.h()},l(e){const t=Ec("svelte-u9bgzb",document.head);y=p(t,"META",{name:!0,content:!0}),t.forEach(s),$=i(e),M=p(e,"P",{}),Wc(M).forEach(s),T=i(e),d(v.$$.fragment,e),Ti=i(e),U=p(e,"P",{"data-svelte-h":!0}),o(U)!=="svelte-1bfeznz"&&(U.textContent=Tm),bi=i(e),_=p(e,"P",{"data-svelte-h":!0}),o(_)!=="svelte-1468g91"&&(_.textContent=bm),gi=i(e),I=p(e,"OL",{"data-svelte-h":!0}),o(I)!=="svelte-u97aul"&&(I.innerHTML=gm),Ji=i(e),d(x.$$.fragment,e),ji=i(e),k=p(e,"OL",{"data-svelte-h":!0}),o(k)!=="svelte-1xjbri2"&&(k.innerHTML=Jm),Ci=i(e),d(Z.$$.fragment,e),vi=i(e),H=p(e,"P",{"data-svelte-h":!0}),o(H)!=="svelte-labrlq"&&(H.innerHTML=jm),Ui=i(e),d(G.$$.fragment,e),_i=i(e),d(X.$$.fragment,e),Ii=i(e),B=p(e,"P",{"data-svelte-h":!0}),o(B)!=="svelte-iw7kd9"&&(B.innerHTML=Cm),xi=i(e),V=p(e,"P",{"data-svelte-h":!0}),o(V)!=="svelte-19u85g2"&&(V.textContent=vm),ki=i(e),R=p(e,"P",{"data-svelte-h":!0}),o(R)!=="svelte-1cr0co4"&&(R.textContent=Um),Zi=i(e),d(z.$$.fragment,e),Hi=i(e),N=p(e,"P",{"data-svelte-h":!0}),o(N)!=="svelte-ylttvt"&&(N.textContent=_m),Gi=i(e),d(W.$$.fragment,e),Xi=i(e),L=p(e,"P",{"data-svelte-h":!0}),o(L)!=="svelte-1y7ruil"&&(L.textContent=Im),Bi=i(e),d(S.$$.fragment,e),Vi=i(e),Q=p(e,"P",{"data-svelte-h":!0}),o(Q)!=="svelte-w4pavv"&&(Q.textContent=xm),Ri=i(e),F=p(e,"UL",{"data-svelte-h":!0}),o(F)!=="svelte-1if6plt"&&(F.innerHTML=km),zi=i(e),d(A.$$.fragment,e),Ni=i(e),E=p(e,"P",{"data-svelte-h":!0}),o(E)!=="svelte-1lo9z46"&&(E.textContent=Zm),Wi=i(e),d(P.$$.fragment,e),Li=i(e),Y=p(e,"P",{"data-svelte-h":!0}),o(Y)!=="svelte-1d4pkjf"&&(Y.textContent=Hm),Si=i(e),d(q.$$.fragment,e),Qi=i(e),d(K.$$.fragment,e),Fi=i(e),D=p(e,"P",{"data-svelte-h":!0}),o(D)!=="svelte-5hfpb0"&&(D.textContent=Gm),Ai=i(e),d(O.$$.fragment,e),Ei=i(e),d(ee.$$.fragment,e),Pi=i(e),te=p(e,"P",{"data-svelte-h":!0}),o(te)!=="svelte-c0whf"&&(te.textContent=Xm),Yi=i(e),d(se.$$.fragment,e),qi=i(e),le=p(e,"P",{"data-svelte-h":!0}),o(le)!=="svelte-epkwoc"&&(le.textContent=Bm),Ki=i(e),ne=p(e,"UL",{"data-svelte-h":!0}),o(ne)!=="svelte-danjdv"&&(ne.innerHTML=Vm),Di=i(e),ie=p(e,"P",{"data-svelte-h":!0}),o(ie)!=="svelte-1gfp00k"&&(ie.textContent=Rm),Oi=i(e),d(ae.$$.fragment,e),ea=i(e),pe=p(e,"P",{"data-svelte-h":!0}),o(pe)!=="svelte-1sjtmkd"&&(pe.textContent=zm),ta=i(e),oe=p(e,"P",{"data-svelte-h":!0}),o(oe)!=="svelte-191iwzc"&&(oe.innerHTML=Nm),sa=i(e),d(re.$$.fragment,e),la=i(e),de=p(e,"P",{"data-svelte-h":!0}),o(de)!=="svelte-1xohq9w"&&(de.textContent=Wm),na=i(e),me=p(e,"P",{"data-svelte-h":!0}),o(me)!=="svelte-17y24cx"&&(me.innerHTML=Lm),ia=i(e),d(fe.$$.fragment,e),aa=i(e),ue=p(e,"P",{"data-svelte-h":!0}),o(ue)!=="svelte-wm70a5"&&(ue.innerHTML=Sm),pa=i(e),ce=p(e,"P",{"data-svelte-h":!0}),o(ce)!=="svelte-1qcofvk"&&(ce.innerHTML=Qm),oa=i(e),d(we.$$.fragment,e),ra=i(e),he=p(e,"P",{"data-svelte-h":!0}),o(he)!=="svelte-1v2kf44"&&(he.textContent=Fm),da=i(e),d(ye.$$.fragment,e),ma=i(e),Me=p(e,"P",{"data-svelte-h":!0}),o(Me)!=="svelte-xpmdqr"&&(Me.innerHTML=Am),fa=i(e),d($e.$$.fragment,e),ua=i(e),Te=p(e,"P",{"data-svelte-h":!0}),o(Te)!=="svelte-ya3osx"&&(Te.innerHTML=Em),ca=i(e),be=p(e,"P",{"data-svelte-h":!0}),o(be)!=="svelte-1t5el5c"&&(be.innerHTML=Pm),wa=i(e),d(ge.$$.fragment,e),ha=i(e),d(Je.$$.fragment,e),ya=i(e),je=p(e,"P",{"data-svelte-h":!0}),o(je)!=="svelte-1h9dnrx"&&(je.innerHTML=Ym),Ma=i(e),d(Ce.$$.fragment,e),$a=i(e),d(ve.$$.fragment,e),Ta=i(e),Ue=p(e,"P",{"data-svelte-h":!0}),o(Ue)!=="svelte-1v7cinx"&&(Ue.innerHTML=qm),ba=i(e),d(_e.$$.fragment,e),ga=i(e),Ie=p(e,"P",{"data-svelte-h":!0}),o(Ie)!=="svelte-2y6u4r"&&(Ie.textContent=Km),Ja=i(e),d(xe.$$.fragment,e),ja=i(e),ke=p(e,"P",{"data-svelte-h":!0}),o(ke)!=="svelte-179dx63"&&(ke.innerHTML=Dm),Ca=i(e),d(Ze.$$.fragment,e),va=i(e),He=p(e,"P",{"data-svelte-h":!0}),o(He)!=="svelte-unvzuu"&&(He.innerHTML=Om),Ua=i(e),d(Ge.$$.fragment,e),_a=i(e),d(Xe.$$.fragment,e),Ia=i(e),Be=p(e,"P",{"data-svelte-h":!0}),o(Be)!=="svelte-15u7bp5"&&(Be.textContent=ef),xa=i(e),d(Ve.$$.fragment,e),ka=i(e),Re=p(e,"P",{"data-svelte-h":!0}),o(Re)!=="svelte-vt8irn"&&(Re.innerHTML=tf),Za=i(e),d(ze.$$.fragment,e),Ha=i(e),Ne=p(e,"P",{"data-svelte-h":!0}),o(Ne)!=="svelte-6ajs78"&&(Ne.innerHTML=sf),Ga=i(e),We=p(e,"P",{"data-svelte-h":!0}),o(We)!=="svelte-gj7k8m"&&(We.innerHTML=lf),Xa=i(e),d(Le.$$.fragment,e),Ba=i(e),Se=p(e,"P",{"data-svelte-h":!0}),o(Se)!=="svelte-159ynhd"&&(Se.innerHTML=nf),Va=i(e),d(Qe.$$.fragment,e),Ra=i(e),Fe=p(e,"P",{"data-svelte-h":!0}),o(Fe)!=="svelte-1ee4njf"&&(Fe.textContent=af),za=i(e),Ae=p(e,"P",{"data-svelte-h":!0}),o(Ae)!=="svelte-1ax2n5m"&&(Ae.innerHTML=pf),Na=i(e),d(Ee.$$.fragment,e),Wa=i(e),Pe=p(e,"P",{"data-svelte-h":!0}),o(Pe)!=="svelte-avos7q"&&(Pe.innerHTML=of),La=i(e),d(Ye.$$.fragment,e),Sa=i(e),d(qe.$$.fragment,e),Qa=i(e),Ke=p(e,"P",{"data-svelte-h":!0}),o(Ke)!=="svelte-stzunx"&&(Ke.textContent=rf),Fa=i(e),d(De.$$.fragment,e),Aa=i(e),d(Oe.$$.fragment,e),Ea=i(e),et=p(e,"P",{"data-svelte-h":!0}),o(et)!=="svelte-1pmvtt0"&&(et.innerHTML=df),Pa=i(e),tt=p(e,"P",{"data-svelte-h":!0}),o(tt)!=="svelte-1nsqbht"&&(tt.innerHTML=mf),Ya=i(e),st=p(e,"P",{"data-svelte-h":!0}),o(st)!=="svelte-1m3hksa"&&(st.innerHTML=ff),qa=i(e),d(lt.$$.fragment,e),Ka=i(e),nt=p(e,"P",{"data-svelte-h":!0}),o(nt)!=="svelte-15ioki4"&&(nt.textContent=uf),Da=i(e),d(it.$$.fragment,e),Oa=i(e),at=p(e,"UL",{"data-svelte-h":!0}),o(at)!=="svelte-1mmgi4h"&&(at.innerHTML=cf),ep=i(e),d(pt.$$.fragment,e),tp=i(e),ot=p(e,"P",{"data-svelte-h":!0}),o(ot)!=="svelte-18b9tpg"&&(ot.textContent=wf),sp=i(e),d(rt.$$.fragment,e),lp=i(e),d(g.$$.fragment,e),np=i(e),d(J.$$.fragment,e),ip=i(e),d(dt.$$.fragment,e),ap=i(e),d(mt.$$.fragment,e),pp=i(e),ft=p(e,"P",{"data-svelte-h":!0}),o(ft)!=="svelte-f8h5dv"&&(ft.innerHTML=hf),op=i(e),ut=p(e,"P",{"data-svelte-h":!0}),o(ut)!=="svelte-7bnqvo"&&(ut.innerHTML=yf),rp=i(e),d(ct.$$.fragment,e),dp=i(e),wt=p(e,"P",{"data-svelte-h":!0}),o(wt)!=="svelte-fmmfnt"&&(wt.textContent=Mf),mp=i(e),d(ht.$$.fragment,e),fp=i(e),yt=p(e,"P",{"data-svelte-h":!0}),o(yt)!=="svelte-13ddfrq"&&(yt.innerHTML=$f),up=i(e),d(Mt.$$.fragment,e),cp=i(e),$t=p(e,"P",{"data-svelte-h":!0}),o($t)!=="svelte-1wfinax"&&($t.textContent=Tf),wp=i(e),d(Tt.$$.fragment,e),hp=i(e),bt=p(e,"P",{"data-svelte-h":!0}),o(bt)!=="svelte-1ur3h1j"&&(bt.innerHTML=bf),yp=i(e),gt=p(e,"P",{"data-svelte-h":!0}),o(gt)!=="svelte-joumxu"&&(gt.innerHTML=gf),Mp=i(e),d(Jt.$$.fragment,e),$p=i(e),d(jt.$$.fragment,e),Tp=i(e),Ct=p(e,"P",{"data-svelte-h":!0}),o(Ct)!=="svelte-1l9hk1w"&&(Ct.innerHTML=Jf),bp=i(e),d(vt.$$.fragment,e),gp=i(e),Ut=p(e,"P",{"data-svelte-h":!0}),o(Ut)!=="svelte-imfw4r"&&(Ut.textContent=jf),Jp=i(e),d(_t.$$.fragment,e),jp=i(e),It=p(e,"P",{"data-svelte-h":!0}),o(It)!=="svelte-14pjrdm"&&(It.textContent=Cf),Cp=i(e),d(xt.$$.fragment,e),vp=i(e),kt=p(e,"P",{"data-svelte-h":!0}),o(kt)!=="svelte-umw6ao"&&(kt.innerHTML=vf),Up=i(e),d(Zt.$$.fragment,e),_p=i(e),d(Ht.$$.fragment,e),Ip=i(e),Gt=p(e,"P",{"data-svelte-h":!0}),o(Gt)!=="svelte-1yhn8j7"&&(Gt.innerHTML=Uf),xp=i(e),d(Xt.$$.fragment,e),kp=i(e),d(Bt.$$.fragment,e),Zp=i(e),d(Vt.$$.fragment,e),Hp=i(e),Rt=p(e,"P",{"data-svelte-h":!0}),o(Rt)!=="svelte-1rob2zs"&&(Rt.innerHTML=_f),Gp=i(e),d(zt.$$.fragment,e),Xp=i(e),Nt=p(e,"P",{"data-svelte-h":!0}),o(Nt)!=="svelte-1udju7w"&&(Nt.innerHTML=If),Bp=i(e),d(Wt.$$.fragment,e),Vp=i(e),Lt=p(e,"P",{"data-svelte-h":!0}),o(Lt)!=="svelte-1ws7l6h"&&(Lt.textContent=xf),Rp=i(e),St=p(e,"P",{"data-svelte-h":!0}),o(St)!=="svelte-9ls328"&&(St.textContent=kf),zp=i(e),Qt=p(e,"UL",{"data-svelte-h":!0}),o(Qt)!=="svelte-15bvuyl"&&(Qt.innerHTML=Zf),Np=i(e),Ft=p(e,"P",{"data-svelte-h":!0}),o(Ft)!=="svelte-utz14"&&(Ft.textContent=Hf),Wp=i(e),At=p(e,"P",{"data-svelte-h":!0}),o(At)!=="svelte-5bpuka"&&(At.innerHTML=Gf),Lp=i(e),Et=p(e,"P",{"data-svelte-h":!0}),o(Et)!=="svelte-f7k590"&&(Et.textContent=Xf),Sp=i(e),d(Pt.$$.fragment,e),Qp=i(e),Yt=p(e,"P",{"data-svelte-h":!0}),o(Yt)!=="svelte-1h8vitx"&&(Yt.innerHTML=Bf),Fp=i(e),d(qt.$$.fragment,e),Ap=i(e),Kt=p(e,"P",{"data-svelte-h":!0}),o(Kt)!=="svelte-ffnm4q"&&(Kt.textContent=Vf),Ep=i(e),d(Dt.$$.fragment,e),Pp=i(e),Ot=p(e,"P",{"data-svelte-h":!0}),o(Ot)!=="svelte-353xix"&&(Ot.innerHTML=Rf),Yp=i(e),d(es.$$.fragment,e),qp=i(e),ts=p(e,"P",{"data-svelte-h":!0}),o(ts)!=="svelte-v3nbmf"&&(ts.innerHTML=zf),Kp=i(e),ss=p(e,"P",{"data-svelte-h":!0}),o(ss)!=="svelte-u2pw3h"&&(ss.textContent=Nf),Dp=i(e),ls=p(e,"UL",{"data-svelte-h":!0}),o(ls)!=="svelte-3jen5c"&&(ls.innerHTML=Wf),Op=i(e),d(ns.$$.fragment,e),eo=i(e),d(is.$$.fragment,e),to=i(e),as=p(e,"P",{"data-svelte-h":!0}),o(as)!=="svelte-db62h"&&(as.innerHTML=Lf),so=i(e),d(ps.$$.fragment,e),lo=i(e),os=p(e,"P",{"data-svelte-h":!0}),o(os)!=="svelte-a4621l"&&(os.innerHTML=Sf),no=i(e),rs=p(e,"P",{"data-svelte-h":!0}),o(rs)!=="svelte-178tu9q"&&(rs.innerHTML=Qf),io=i(e),d(ds.$$.fragment,e),ao=i(e),d(ms.$$.fragment,e),po=i(e),fs=p(e,"P",{"data-svelte-h":!0}),o(fs)!=="svelte-12mggyp"&&(fs.innerHTML=Ff),oo=i(e),us=p(e,"P",{"data-svelte-h":!0}),o(us)!=="svelte-4caaxc"&&(us.textContent=Af),ro=i(e),cs=p(e,"UL",{"data-svelte-h":!0}),o(cs)!=="svelte-m5pydi"&&(cs.innerHTML=Ef),mo=i(e),ws=p(e,"P",{"data-svelte-h":!0}),o(ws)!=="svelte-qqwmn6"&&(ws.innerHTML=Pf),fo=i(e),hs=p(e,"P",{"data-svelte-h":!0}),o(hs)!=="svelte-qc147d"&&(hs.textContent=Yf),uo=i(e),d(ys.$$.fragment,e),co=i(e),d(Ms.$$.fragment,e),wo=i(e),$s=p(e,"P",{"data-svelte-h":!0}),o($s)!=="svelte-1bsvp4y"&&($s.innerHTML=qf),ho=i(e),Ts=p(e,"P",{"data-svelte-h":!0}),o(Ts)!=="svelte-1gq9tao"&&(Ts.innerHTML=Kf),yo=i(e),d(bs.$$.fragment,e),Mo=i(e),gs=p(e,"P",{"data-svelte-h":!0}),o(gs)!=="svelte-euahrc"&&(gs.textContent=Df),$o=i(e),d(Js.$$.fragment,e),To=i(e),d(js.$$.fragment,e),bo=i(e),Cs=p(e,"P",{"data-svelte-h":!0}),o(Cs)!=="svelte-dng90j"&&(Cs.textContent=Of),go=i(e),d(vs.$$.fragment,e),Jo=i(e),d(Us.$$.fragment,e),jo=i(e),_s=p(e,"P",{"data-svelte-h":!0}),o(_s)!=="svelte-1w4eg93"&&(_s.textContent=eu),Co=i(e),d(Is.$$.fragment,e),vo=i(e),xs=p(e,"P",{"data-svelte-h":!0}),o(xs)!=="svelte-weqhq8"&&(xs.textContent=tu),Uo=i(e),ks=p(e,"P",{"data-svelte-h":!0}),o(ks)!=="svelte-bpmeeu"&&(ks.textContent=su),_o=i(e),d(Zs.$$.fragment,e),Io=i(e),d(Hs.$$.fragment,e),xo=i(e),Gs=p(e,"P",{"data-svelte-h":!0}),o(Gs)!=="svelte-eorfz6"&&(Gs.innerHTML=lu),ko=i(e),Xs=p(e,"P",{"data-svelte-h":!0}),o(Xs)!=="svelte-1ygwz5h"&&(Xs.innerHTML=nu),Zo=i(e),d(Bs.$$.fragment,e),Ho=i(e),Vs=p(e,"P",{"data-svelte-h":!0}),o(Vs)!=="svelte-snf8ke"&&(Vs.textContent=iu),Go=i(e),d(Rs.$$.fragment,e),Xo=i(e),zs=p(e,"P",{"data-svelte-h":!0}),o(zs)!=="svelte-1737hyy"&&(zs.innerHTML=au),Bo=i(e),Ns=p(e,"P",{"data-svelte-h":!0}),o(Ns)!=="svelte-1oufrw1"&&(Ns.innerHTML=pu),Vo=i(e),d(Ws.$$.fragment,e),Ro=i(e),Ls=p(e,"P",{"data-svelte-h":!0}),o(Ls)!=="svelte-1tl0nx7"&&(Ls.innerHTML=ou),zo=i(e),d(Ss.$$.fragment,e),No=i(e),Qs=p(e,"P",{"data-svelte-h":!0}),o(Qs)!=="svelte-19gvkao"&&(Qs.innerHTML=ru),Wo=i(e),d(Fs.$$.fragment,e),Lo=i(e),As=p(e,"P",{"data-svelte-h":!0}),o(As)!=="svelte-4rsktk"&&(As.textContent=du),So=i(e),d(Es.$$.fragment,e),Qo=i(e),Ps=p(e,"P",{"data-svelte-h":!0}),o(Ps)!=="svelte-6ynunq"&&(Ps.textContent=mu),Fo=i(e),d(Ys.$$.fragment,e),Ao=i(e),qs=p(e,"P",{"data-svelte-h":!0}),o(qs)!=="svelte-1pfiycl"&&(qs.innerHTML=fu),Eo=i(e),Ks=p(e,"P",{"data-svelte-h":!0}),o(Ks)!=="svelte-1ygobi4"&&(Ks.innerHTML=uu),Po=i(e),Ds=p(e,"P",{"data-svelte-h":!0}),o(Ds)!=="svelte-qhi9ux"&&(Ds.innerHTML=cu),Yo=i(e),d(Os.$$.fragment,e),qo=i(e),el=p(e,"P",{"data-svelte-h":!0}),o(el)!=="svelte-e797ol"&&(el.innerHTML=wu),Ko=i(e),d(tl.$$.fragment,e),Do=i(e),sl=p(e,"P",{"data-svelte-h":!0}),o(sl)!=="svelte-4rsktk"&&(sl.textContent=hu),Oo=i(e),d(ll.$$.fragment,e),er=i(e),nl=p(e,"P",{"data-svelte-h":!0}),o(nl)!=="svelte-1pp8dat"&&(nl.textContent=yu),tr=i(e),d(il.$$.fragment,e),sr=i(e),al=p(e,"P",{"data-svelte-h":!0}),o(al)!=="svelte-wcwikf"&&(al.textContent=Mu),lr=i(e),d(pl.$$.fragment,e),nr=i(e),ol=p(e,"P",{"data-svelte-h":!0}),o(ol)!=="svelte-ggv3l3"&&(ol.innerHTML=$u),ir=i(e),rl=p(e,"UL",{"data-svelte-h":!0}),o(rl)!=="svelte-jurlci"&&(rl.innerHTML=Tu),ar=i(e),dl=p(e,"P",{"data-svelte-h":!0}),o(dl)!=="svelte-91az3w"&&(dl.innerHTML=bu),pr=i(e),d(ml.$$.fragment,e),or=i(e),fl=p(e,"P",{"data-svelte-h":!0}),o(fl)!=="svelte-rjyeyp"&&(fl.innerHTML=gu),rr=i(e),d(ul.$$.fragment,e),dr=i(e),d(cl.$$.fragment,e),mr=i(e),wl=p(e,"P",{"data-svelte-h":!0}),o(wl)!=="svelte-1vmbsy3"&&(wl.innerHTML=Ju),fr=i(e),hl=p(e,"P",{"data-svelte-h":!0}),o(hl)!=="svelte-1nqxzoj"&&(hl.textContent=ju),ur=i(e),yl=p(e,"P",{"data-svelte-h":!0}),o(yl)!=="svelte-1lx14g9"&&(yl.innerHTML=Cu),cr=i(e),Ml=p(e,"P",{"data-svelte-h":!0}),o(Ml)!=="svelte-ga57nj"&&(Ml.textContent=vu),wr=i(e),d($l.$$.fragment,e),hr=i(e),Tl=p(e,"P",{"data-svelte-h":!0}),o(Tl)!=="svelte-1flfm4w"&&(Tl.innerHTML=Uu),yr=i(e),bl=p(e,"UL",{"data-svelte-h":!0}),o(bl)!=="svelte-1rvelqv"&&(bl.innerHTML=_u),Mr=i(e),d(gl.$$.fragment,e),$r=i(e),Jl=p(e,"P",{"data-svelte-h":!0}),o(Jl)!=="svelte-1vcgtp4"&&(Jl.innerHTML=Iu),Tr=i(e),jl=p(e,"UL",{"data-svelte-h":!0}),o(jl)!=="svelte-1v175v7"&&(jl.innerHTML=xu),br=i(e),d(Cl.$$.fragment,e),gr=i(e),vl=p(e,"P",{"data-svelte-h":!0}),o(vl)!=="svelte-pk8usg"&&(vl.textContent=ku),Jr=i(e),Ul=p(e,"UL",{"data-svelte-h":!0}),o(Ul)!=="svelte-17enf76"&&(Ul.innerHTML=Zu),jr=i(e),d(j.$$.fragment,e),Cr=i(e),d(C.$$.fragment,e),vr=i(e),d(_l.$$.fragment,e),Ur=i(e),Il=p(e,"P",{"data-svelte-h":!0}),o(Il)!=="svelte-1blmp1h"&&(Il.innerHTML=Hu),_r=i(e),d(xl.$$.fragment,e),Ir=i(e),d(kl.$$.fragment,e),xr=i(e),Zl=p(e,"P",{"data-svelte-h":!0}),o(Zl)!=="svelte-dlsjg1"&&(Zl.innerHTML=Gu),kr=i(e),Hl=p(e,"P",{"data-svelte-h":!0}),o(Hl)!=="svelte-14pqgk8"&&(Hl.textContent=Xu),Zr=i(e),Gl=p(e,"UL",{"data-svelte-h":!0}),o(Gl)!=="svelte-y68pnm"&&(Gl.innerHTML=Bu),Hr=i(e),Xl=p(e,"P",{"data-svelte-h":!0}),o(Xl)!=="svelte-1c4q1t0"&&(Xl.innerHTML=Vu),Gr=i(e),d(Bl.$$.fragment,e),Xr=i(e),Vl=p(e,"UL",{"data-svelte-h":!0}),o(Vl)!=="svelte-1hhtdwa"&&(Vl.innerHTML=Ru),Br=i(e),d(Rl.$$.fragment,e),Vr=i(e),zl=p(e,"P",{"data-svelte-h":!0}),o(zl)!=="svelte-15p8ism"&&(zl.textContent=zu),Rr=i(e),d(Nl.$$.fragment,e),zr=i(e),Wl=p(e,"P",{"data-svelte-h":!0}),o(Wl)!=="svelte-td5r6o"&&(Wl.innerHTML=Nu),Nr=i(e),d(Ll.$$.fragment,e),Wr=i(e),Sl=p(e,"P",{"data-svelte-h":!0}),o(Sl)!=="svelte-11quoxt"&&(Sl.textContent=Wu),Lr=i(e),d(Ql.$$.fragment,e),Sr=i(e),Fl=p(e,"P",{"data-svelte-h":!0}),o(Fl)!=="svelte-1hcnf1h"&&(Fl.textContent=Lu),Qr=i(e),d(Al.$$.fragment,e),Fr=i(e),El=p(e,"P",{"data-svelte-h":!0}),o(El)!=="svelte-td5r6o"&&(El.innerHTML=Su),Ar=i(e),d(Pl.$$.fragment,e),Er=i(e),Yl=p(e,"UL",{"data-svelte-h":!0}),o(Yl)!=="svelte-15o6zb5"&&(Yl.innerHTML=Qu),Pr=i(e),d(ql.$$.fragment,e),Yr=i(e),Kl=p(e,"UL",{"data-svelte-h":!0}),o(Kl)!=="svelte-e2w3rp"&&(Kl.innerHTML=Fu),qr=i(e),d(Dl.$$.fragment,e),Kr=i(e),Ol=p(e,"P",{"data-svelte-h":!0}),o(Ol)!=="svelte-ylttvt"&&(Ol.textContent=Au),Dr=i(e),d(en.$$.fragment,e),Or=i(e),tn=p(e,"P",{"data-svelte-h":!0}),o(tn)!=="svelte-1uqdrdi"&&(tn.textContent=Eu),ed=i(e),d(sn.$$.fragment,e),td=i(e),ln=p(e,"P",{"data-svelte-h":!0}),o(ln)!=="svelte-mlyx41"&&(ln.innerHTML=Pu),sd=i(e),d(nn.$$.fragment,e),ld=i(e),an=p(e,"P",{"data-svelte-h":!0}),o(an)!=="svelte-1hy2jf0"&&(an.textContent=Yu),nd=i(e),d(pn.$$.fragment,e),id=i(e),on=p(e,"P",{"data-svelte-h":!0}),o(on)!=="svelte-1szno4g"&&(on.innerHTML=qu),ad=i(e),d(rn.$$.fragment,e),pd=i(e),dn=p(e,"P",{"data-svelte-h":!0}),o(dn)!=="svelte-1apnezy"&&(dn.innerHTML=Ku),od=i(e),d(mn.$$.fragment,e),rd=i(e),fn=p(e,"P",{"data-svelte-h":!0}),o(fn)!=="svelte-rf3maz"&&(fn.textContent=Du),dd=i(e),un=p(e,"P",{"data-svelte-h":!0}),o(un)!=="svelte-1tipejs"&&(un.textContent=Ou),md=i(e),cn=p(e,"P",{"data-svelte-h":!0}),o(cn)!=="svelte-7rit7z"&&(cn.textContent=ec),fd=i(e),wn=p(e,"UL",{"data-svelte-h":!0}),o(wn)!=="svelte-1kul420"&&(wn.innerHTML=tc),ud=i(e),hn=p(e,"P",{"data-svelte-h":!0}),o(hn)!=="svelte-zoj47i"&&(hn.innerHTML=sc),cd=i(e),d(yn.$$.fragment,e),wd=i(e),Mn=p(e,"P",{"data-svelte-h":!0}),o(Mn)!=="svelte-ubpbuc"&&(Mn.innerHTML=lc),hd=i(e),$n=p(e,"P",{"data-svelte-h":!0}),o($n)!=="svelte-94izzk"&&($n.innerHTML=nc),yd=i(e),Tn=p(e,"P",{"data-svelte-h":!0}),o(Tn)!=="svelte-14cphpq"&&(Tn.textContent=ic),Md=i(e),d(bn.$$.fragment,e),$d=i(e),gn=p(e,"P",{"data-svelte-h":!0}),o(gn)!=="svelte-lkbhi"&&(gn.innerHTML=ac),Td=i(e),d(Jn.$$.fragment,e),bd=i(e),jn=p(e,"P",{"data-svelte-h":!0}),o(jn)!=="svelte-y7erom"&&(jn.innerHTML=pc),gd=i(e),d(Cn.$$.fragment,e),Jd=i(e),vn=p(e,"P",{"data-svelte-h":!0}),o(vn)!=="svelte-1hn7f4z"&&(vn.innerHTML=oc),jd=i(e),d(Un.$$.fragment,e),Cd=i(e),_n=p(e,"P",{"data-svelte-h":!0}),o(_n)!=="svelte-1apzdyq"&&(_n.innerHTML=rc),vd=i(e),In=p(e,"P",{"data-svelte-h":!0}),o(In)!=="svelte-1uzq8t5"&&(In.innerHTML=dc),Ud=i(e),d(xn.$$.fragment,e),_d=i(e),kn=p(e,"P",{"data-svelte-h":!0}),o(kn)!=="svelte-zun07a"&&(kn.textContent=mc),Id=i(e),d(Zn.$$.fragment,e),xd=i(e),Hn=p(e,"P",{"data-svelte-h":!0}),o(Hn)!=="svelte-ovlbpn"&&(Hn.innerHTML=fc),kd=i(e),d(Gn.$$.fragment,e),Zd=i(e),Xn=p(e,"P",{"data-svelte-h":!0}),o(Xn)!=="svelte-1tcp04v"&&(Xn.innerHTML=uc),Hd=i(e),d(Bn.$$.fragment,e),Gd=i(e),Vn=p(e,"P",{"data-svelte-h":!0}),o(Vn)!=="svelte-9q1cwt"&&(Vn.textContent=cc),Xd=i(e),d(Rn.$$.fragment,e),Bd=i(e),zn=p(e,"P",{"data-svelte-h":!0}),o(zn)!=="svelte-vnemvg"&&(zn.innerHTML=wc),Vd=i(e),d(Nn.$$.fragment,e),Rd=i(e),d(Wn.$$.fragment,e),zd=i(e),Ln=p(e,"P",{"data-svelte-h":!0}),o(Ln)!=="svelte-kw5cnh"&&(Ln.innerHTML=hc),Nd=i(e),d(Sn.$$.fragment,e),Wd=i(e),Qn=p(e,"P",{"data-svelte-h":!0}),o(Qn)!=="svelte-147mt1i"&&(Qn.innerHTML=yc),Ld=i(e),d(Fn.$$.fragment,e),Sd=i(e),An=p(e,"P",{"data-svelte-h":!0}),o(An)!=="svelte-1ppwycl"&&(An.innerHTML=Mc),Qd=i(e),En=p(e,"P",{"data-svelte-h":!0}),o(En)!=="svelte-1wla2hx"&&(En.innerHTML=$c),Fd=i(e),d(Pn.$$.fragment,e),Ad=i(e),Yn=p(e,"P",{"data-svelte-h":!0}),o(Yn)!=="svelte-85vvld"&&(Yn.textContent=Tc),Ed=i(e),d(qn.$$.fragment,e),Pd=i(e),d(Kn.$$.fragment,e),Yd=i(e),Dn=p(e,"P",{"data-svelte-h":!0}),o(Dn)!=="svelte-10j78ug"&&(Dn.textContent=bc),qd=i(e),d(On.$$.fragment,e),Kd=i(e),d(ei.$$.fragment,e),Dd=i(e),ti=p(e,"P",{"data-svelte-h":!0}),o(ti)!=="svelte-1i5zdaf"&&(ti.textContent=gc),Od=i(e),si=p(e,"OL",{"data-svelte-h":!0}),o(si)!=="svelte-16qtrad"&&(si.innerHTML=Jc),em=i(e),d(li.$$.fragment,e),tm=i(e),ni=p(e,"P",{"data-svelte-h":!0}),o(ni)!=="svelte-bmnf8q"&&(ni.textContent=jc),sm=i(e),ii=p(e,"OL",{"data-svelte-h":!0}),o(ii)!=="svelte-gem8u9"&&(ii.innerHTML=Cc),lm=i(e),ai=p(e,"P",{"data-svelte-h":!0}),o(ai)!=="svelte-gr2fu5"&&(ai.textContent=vc),nm=i(e),pi=p(e,"P",{"data-svelte-h":!0}),o(pi)!=="svelte-1wcop4v"&&(pi.textContent=Uc),im=i(e),oi=p(e,"P",{"data-svelte-h":!0}),o(oi)!=="svelte-45u4zb"&&(oi.textContent=_c),am=i(e),ri=p(e,"P",{"data-svelte-h":!0}),o(ri)!=="svelte-puvloo"&&(ri.textContent=Ic),pm=i(e),di=p(e,"OL",{"data-svelte-h":!0}),o(di)!=="svelte-8lbm08"&&(di.innerHTML=xc),om=i(e),mi=p(e,"P",{"data-svelte-h":!0}),o(mi)!=="svelte-1240csr"&&(mi.textContent=kc),rm=i(e),d(fi.$$.fragment,e),dm=i(e),ui=p(e,"P",{"data-svelte-h":!0}),o(ui)!=="svelte-7dixon"&&(ui.textContent=Zc),mm=i(e),d(ci.$$.fragment,e),fm=i(e),wi=p(e,"P",{"data-svelte-h":!0}),o(wi)!=="svelte-hcmust"&&(wi.innerHTML=Hc),um=i(e),hi=p(e,"P",{"data-svelte-h":!0}),o(hi)!=="svelte-61pj3v"&&(hi.innerHTML=Gc),cm=i(e),yi=p(e,"P",{"data-svelte-h":!0}),o(yi)!=="svelte-ty6adq"&&(yi.textContent=Xc),wm=i(e),Mi=p(e,"UL",{"data-svelte-h":!0}),o(Mi)!=="svelte-ikwit4"&&(Mi.innerHTML=Bc),hm=i(e),$i=p(e,"P",{}),Wc($i).forEach(s),this.h()},h(){Lc(y,"name","hf:doc:metadata"),Lc(y,"content",ew)},m(e,t){Pc(document.head,y),l(e,$,t),l(e,M,t),l(e,T,t),m(v,e,t),l(e,Ti,t),l(e,U,t),l(e,bi,t),l(e,_,t),l(e,gi,t),l(e,I,t),l(e,Ji,t),m(x,e,t),l(e,ji,t),l(e,k,t),l(e,Ci,t),m(Z,e,t),l(e,vi,t),l(e,H,t),l(e,Ui,t),m(G,e,t),l(e,_i,t),m(X,e,t),l(e,Ii,t),l(e,B,t),l(e,xi,t),l(e,V,t),l(e,ki,t),l(e,R,t),l(e,Zi,t),m(z,e,t),l(e,Hi,t),l(e,N,t),l(e,Gi,t),m(W,e,t),l(e,Xi,t),l(e,L,t),l(e,Bi,t),m(S,e,t),l(e,Vi,t),l(e,Q,t),l(e,Ri,t),l(e,F,t),l(e,zi,t),m(A,e,t),l(e,Ni,t),l(e,E,t),l(e,Wi,t),m(P,e,t),l(e,Li,t),l(e,Y,t),l(e,Si,t),m(q,e,t),l(e,Qi,t),m(K,e,t),l(e,Fi,t),l(e,D,t),l(e,Ai,t),m(O,e,t),l(e,Ei,t),m(ee,e,t),l(e,Pi,t),l(e,te,t),l(e,Yi,t),m(se,e,t),l(e,qi,t),l(e,le,t),l(e,Ki,t),l(e,ne,t),l(e,Di,t),l(e,ie,t),l(e,Oi,t),m(ae,e,t),l(e,ea,t),l(e,pe,t),l(e,ta,t),l(e,oe,t),l(e,sa,t),m(re,e,t),l(e,la,t),l(e,de,t),l(e,na,t),l(e,me,t),l(e,ia,t),m(fe,e,t),l(e,aa,t),l(e,ue,t),l(e,pa,t),l(e,ce,t),l(e,oa,t),m(we,e,t),l(e,ra,t),l(e,he,t),l(e,da,t),m(ye,e,t),l(e,ma,t),l(e,Me,t),l(e,fa,t),m($e,e,t),l(e,ua,t),l(e,Te,t),l(e,ca,t),l(e,be,t),l(e,wa,t),m(ge,e,t),l(e,ha,t),m(Je,e,t),l(e,ya,t),l(e,je,t),l(e,Ma,t),m(Ce,e,t),l(e,$a,t),m(ve,e,t),l(e,Ta,t),l(e,Ue,t),l(e,ba,t),m(_e,e,t),l(e,ga,t),l(e,Ie,t),l(e,Ja,t),m(xe,e,t),l(e,ja,t),l(e,ke,t),l(e,Ca,t),m(Ze,e,t),l(e,va,t),l(e,He,t),l(e,Ua,t),m(Ge,e,t),l(e,_a,t),m(Xe,e,t),l(e,Ia,t),l(e,Be,t),l(e,xa,t),m(Ve,e,t),l(e,ka,t),l(e,Re,t),l(e,Za,t),m(ze,e,t),l(e,Ha,t),l(e,Ne,t),l(e,Ga,t),l(e,We,t),l(e,Xa,t),m(Le,e,t),l(e,Ba,t),l(e,Se,t),l(e,Va,t),m(Qe,e,t),l(e,Ra,t),l(e,Fe,t),l(e,za,t),l(e,Ae,t),l(e,Na,t),m(Ee,e,t),l(e,Wa,t),l(e,Pe,t),l(e,La,t),m(Ye,e,t),l(e,Sa,t),m(qe,e,t),l(e,Qa,t),l(e,Ke,t),l(e,Fa,t),m(De,e,t),l(e,Aa,t),m(Oe,e,t),l(e,Ea,t),l(e,et,t),l(e,Pa,t),l(e,tt,t),l(e,Ya,t),l(e,st,t),l(e,qa,t),m(lt,e,t),l(e,Ka,t),l(e,nt,t),l(e,Da,t),m(it,e,t),l(e,Oa,t),l(e,at,t),l(e,ep,t),m(pt,e,t),l(e,tp,t),l(e,ot,t),l(e,sp,t),m(rt,e,t),l(e,lp,t),m(g,e,t),l(e,np,t),m(J,e,t),l(e,ip,t),m(dt,e,t),l(e,ap,t),m(mt,e,t),l(e,pp,t),l(e,ft,t),l(e,op,t),l(e,ut,t),l(e,rp,t),m(ct,e,t),l(e,dp,t),l(e,wt,t),l(e,mp,t),m(ht,e,t),l(e,fp,t),l(e,yt,t),l(e,up,t),m(Mt,e,t),l(e,cp,t),l(e,$t,t),l(e,wp,t),m(Tt,e,t),l(e,hp,t),l(e,bt,t),l(e,yp,t),l(e,gt,t),l(e,Mp,t),m(Jt,e,t),l(e,$p,t),m(jt,e,t),l(e,Tp,t),l(e,Ct,t),l(e,bp,t),m(vt,e,t),l(e,gp,t),l(e,Ut,t),l(e,Jp,t),m(_t,e,t),l(e,jp,t),l(e,It,t),l(e,Cp,t),m(xt,e,t),l(e,vp,t),l(e,kt,t),l(e,Up,t),m(Zt,e,t),l(e,_p,t),m(Ht,e,t),l(e,Ip,t),l(e,Gt,t),l(e,xp,t),m(Xt,e,t),l(e,kp,t),m(Bt,e,t),l(e,Zp,t),m(Vt,e,t),l(e,Hp,t),l(e,Rt,t),l(e,Gp,t),m(zt,e,t),l(e,Xp,t),l(e,Nt,t),l(e,Bp,t),m(Wt,e,t),l(e,Vp,t),l(e,Lt,t),l(e,Rp,t),l(e,St,t),l(e,zp,t),l(e,Qt,t),l(e,Np,t),l(e,Ft,t),l(e,Wp,t),l(e,At,t),l(e,Lp,t),l(e,Et,t),l(e,Sp,t),m(Pt,e,t),l(e,Qp,t),l(e,Yt,t),l(e,Fp,t),m(qt,e,t),l(e,Ap,t),l(e,Kt,t),l(e,Ep,t),m(Dt,e,t),l(e,Pp,t),l(e,Ot,t),l(e,Yp,t),m(es,e,t),l(e,qp,t),l(e,ts,t),l(e,Kp,t),l(e,ss,t),l(e,Dp,t),l(e,ls,t),l(e,Op,t),m(ns,e,t),l(e,eo,t),m(is,e,t),l(e,to,t),l(e,as,t),l(e,so,t),m(ps,e,t),l(e,lo,t),l(e,os,t),l(e,no,t),l(e,rs,t),l(e,io,t),m(ds,e,t),l(e,ao,t),m(ms,e,t),l(e,po,t),l(e,fs,t),l(e,oo,t),l(e,us,t),l(e,ro,t),l(e,cs,t),l(e,mo,t),l(e,ws,t),l(e,fo,t),l(e,hs,t),l(e,uo,t),m(ys,e,t),l(e,co,t),m(Ms,e,t),l(e,wo,t),l(e,$s,t),l(e,ho,t),l(e,Ts,t),l(e,yo,t),m(bs,e,t),l(e,Mo,t),l(e,gs,t),l(e,$o,t),m(Js,e,t),l(e,To,t),m(js,e,t),l(e,bo,t),l(e,Cs,t),l(e,go,t),m(vs,e,t),l(e,Jo,t),m(Us,e,t),l(e,jo,t),l(e,_s,t),l(e,Co,t),m(Is,e,t),l(e,vo,t),l(e,xs,t),l(e,Uo,t),l(e,ks,t),l(e,_o,t),m(Zs,e,t),l(e,Io,t),m(Hs,e,t),l(e,xo,t),l(e,Gs,t),l(e,ko,t),l(e,Xs,t),l(e,Zo,t),m(Bs,e,t),l(e,Ho,t),l(e,Vs,t),l(e,Go,t),m(Rs,e,t),l(e,Xo,t),l(e,zs,t),l(e,Bo,t),l(e,Ns,t),l(e,Vo,t),m(Ws,e,t),l(e,Ro,t),l(e,Ls,t),l(e,zo,t),m(Ss,e,t),l(e,No,t),l(e,Qs,t),l(e,Wo,t),m(Fs,e,t),l(e,Lo,t),l(e,As,t),l(e,So,t),m(Es,e,t),l(e,Qo,t),l(e,Ps,t),l(e,Fo,t),m(Ys,e,t),l(e,Ao,t),l(e,qs,t),l(e,Eo,t),l(e,Ks,t),l(e,Po,t),l(e,Ds,t),l(e,Yo,t),m(Os,e,t),l(e,qo,t),l(e,el,t),l(e,Ko,t),m(tl,e,t),l(e,Do,t),l(e,sl,t),l(e,Oo,t),m(ll,e,t),l(e,er,t),l(e,nl,t),l(e,tr,t),m(il,e,t),l(e,sr,t),l(e,al,t),l(e,lr,t),m(pl,e,t),l(e,nr,t),l(e,ol,t),l(e,ir,t),l(e,rl,t),l(e,ar,t),l(e,dl,t),l(e,pr,t),m(ml,e,t),l(e,or,t),l(e,fl,t),l(e,rr,t),m(ul,e,t),l(e,dr,t),m(cl,e,t),l(e,mr,t),l(e,wl,t),l(e,fr,t),l(e,hl,t),l(e,ur,t),l(e,yl,t),l(e,cr,t),l(e,Ml,t),l(e,wr,t),m($l,e,t),l(e,hr,t),l(e,Tl,t),l(e,yr,t),l(e,bl,t),l(e,Mr,t),m(gl,e,t),l(e,$r,t),l(e,Jl,t),l(e,Tr,t),l(e,jl,t),l(e,br,t),m(Cl,e,t),l(e,gr,t),l(e,vl,t),l(e,Jr,t),l(e,Ul,t),l(e,jr,t),m(j,e,t),l(e,Cr,t),m(C,e,t),l(e,vr,t),m(_l,e,t),l(e,Ur,t),l(e,Il,t),l(e,_r,t),m(xl,e,t),l(e,Ir,t),m(kl,e,t),l(e,xr,t),l(e,Zl,t),l(e,kr,t),l(e,Hl,t),l(e,Zr,t),l(e,Gl,t),l(e,Hr,t),l(e,Xl,t),l(e,Gr,t),m(Bl,e,t),l(e,Xr,t),l(e,Vl,t),l(e,Br,t),m(Rl,e,t),l(e,Vr,t),l(e,zl,t),l(e,Rr,t),m(Nl,e,t),l(e,zr,t),l(e,Wl,t),l(e,Nr,t),m(Ll,e,t),l(e,Wr,t),l(e,Sl,t),l(e,Lr,t),m(Ql,e,t),l(e,Sr,t),l(e,Fl,t),l(e,Qr,t),m(Al,e,t),l(e,Fr,t),l(e,El,t),l(e,Ar,t),m(Pl,e,t),l(e,Er,t),l(e,Yl,t),l(e,Pr,t),m(ql,e,t),l(e,Yr,t),l(e,Kl,t),l(e,qr,t),m(Dl,e,t),l(e,Kr,t),l(e,Ol,t),l(e,Dr,t),m(en,e,t),l(e,Or,t),l(e,tn,t),l(e,ed,t),m(sn,e,t),l(e,td,t),l(e,ln,t),l(e,sd,t),m(nn,e,t),l(e,ld,t),l(e,an,t),l(e,nd,t),m(pn,e,t),l(e,id,t),l(e,on,t),l(e,ad,t),m(rn,e,t),l(e,pd,t),l(e,dn,t),l(e,od,t),m(mn,e,t),l(e,rd,t),l(e,fn,t),l(e,dd,t),l(e,un,t),l(e,md,t),l(e,cn,t),l(e,fd,t),l(e,wn,t),l(e,ud,t),l(e,hn,t),l(e,cd,t),m(yn,e,t),l(e,wd,t),l(e,Mn,t),l(e,hd,t),l(e,$n,t),l(e,yd,t),l(e,Tn,t),l(e,Md,t),m(bn,e,t),l(e,$d,t),l(e,gn,t),l(e,Td,t),m(Jn,e,t),l(e,bd,t),l(e,jn,t),l(e,gd,t),m(Cn,e,t),l(e,Jd,t),l(e,vn,t),l(e,jd,t),m(Un,e,t),l(e,Cd,t),l(e,_n,t),l(e,vd,t),l(e,In,t),l(e,Ud,t),m(xn,e,t),l(e,_d,t),l(e,kn,t),l(e,Id,t),m(Zn,e,t),l(e,xd,t),l(e,Hn,t),l(e,kd,t),m(Gn,e,t),l(e,Zd,t),l(e,Xn,t),l(e,Hd,t),m(Bn,e,t),l(e,Gd,t),l(e,Vn,t),l(e,Xd,t),m(Rn,e,t),l(e,Bd,t),l(e,zn,t),l(e,Vd,t),m(Nn,e,t),l(e,Rd,t),m(Wn,e,t),l(e,zd,t),l(e,Ln,t),l(e,Nd,t),m(Sn,e,t),l(e,Wd,t),l(e,Qn,t),l(e,Ld,t),m(Fn,e,t),l(e,Sd,t),l(e,An,t),l(e,Qd,t),l(e,En,t),l(e,Fd,t),m(Pn,e,t),l(e,Ad,t),l(e,Yn,t),l(e,Ed,t),m(qn,e,t),l(e,Pd,t),m(Kn,e,t),l(e,Yd,t),l(e,Dn,t),l(e,qd,t),m(On,e,t),l(e,Kd,t),m(ei,e,t),l(e,Dd,t),l(e,ti,t),l(e,Od,t),l(e,si,t),l(e,em,t),m(li,e,t),l(e,tm,t),l(e,ni,t),l(e,sm,t),l(e,ii,t),l(e,lm,t),l(e,ai,t),l(e,nm,t),l(e,pi,t),l(e,im,t),l(e,oi,t),l(e,am,t),l(e,ri,t),l(e,pm,t),l(e,di,t),l(e,om,t),l(e,mi,t),l(e,rm,t),m(fi,e,t),l(e,dm,t),l(e,ui,t),l(e,mm,t),m(ci,e,t),l(e,fm,t),l(e,wi,t),l(e,um,t),l(e,hi,t),l(e,cm,t),l(e,yi,t),l(e,wm,t),l(e,Mi,t),l(e,hm,t),l(e,$i,t),ym=!0},p(e,[t]){const Vc={};t&2&&(Vc.$$scope={dirty:t,ctx:e}),g.$set(Vc);const Rc={};t&2&&(Rc.$$scope={dirty:t,ctx:e}),J.$set(Rc);const zc={};t&2&&(zc.$$scope={dirty:t,ctx:e}),j.$set(zc);const Nc={};t&2&&(Nc.$$scope={dirty:t,ctx:e}),C.$set(Nc)},i(e){ym||(f(v.$$.fragment,e),f(x.$$.fragment,e),f(Z.$$.fragment,e),f(G.$$.fragment,e),f(X.$$.fragment,e),f(z.$$.fragment,e),f(W.$$.fragment,e),f(S.$$.fragment,e),f(A.$$.fragment,e),f(P.$$.fragment,e),f(q.$$.fragment,e),f(K.$$.fragment,e),f(O.$$.fragment,e),f(ee.$$.fragment,e),f(se.$$.fragment,e),f(ae.$$.fragment,e),f(re.$$.fragment,e),f(fe.$$.fragment,e),f(we.$$.fragment,e),f(ye.$$.fragment,e),f($e.$$.fragment,e),f(ge.$$.fragment,e),f(Je.$$.fragment,e),f(Ce.$$.fragment,e),f(ve.$$.fragment,e),f(_e.$$.fragment,e),f(xe.$$.fragment,e),f(Ze.$$.fragment,e),f(Ge.$$.fragment,e),f(Xe.$$.fragment,e),f(Ve.$$.fragment,e),f(ze.$$.fragment,e),f(Le.$$.fragment,e),f(Qe.$$.fragment,e),f(Ee.$$.fragment,e),f(Ye.$$.fragment,e),f(qe.$$.fragment,e),f(De.$$.fragment,e),f(Oe.$$.fragment,e),f(lt.$$.fragment,e),f(it.$$.fragment,e),f(pt.$$.fragment,e),f(rt.$$.fragment,e),f(g.$$.fragment,e),f(J.$$.fragment,e),f(dt.$$.fragment,e),f(mt.$$.fragment,e),f(ct.$$.fragment,e),f(ht.$$.fragment,e),f(Mt.$$.fragment,e),f(Tt.$$.fragment,e),f(Jt.$$.fragment,e),f(jt.$$.fragment,e),f(vt.$$.fragment,e),f(_t.$$.fragment,e),f(xt.$$.fragment,e),f(Zt.$$.fragment,e),f(Ht.$$.fragment,e),f(Xt.$$.fragment,e),f(Bt.$$.fragment,e),f(Vt.$$.fragment,e),f(zt.$$.fragment,e),f(Wt.$$.fragment,e),f(Pt.$$.fragment,e),f(qt.$$.fragment,e),f(Dt.$$.fragment,e),f(es.$$.fragment,e),f(ns.$$.fragment,e),f(is.$$.fragment,e),f(ps.$$.fragment,e),f(ds.$$.fragment,e),f(ms.$$.fragment,e),f(ys.$$.fragment,e),f(Ms.$$.fragment,e),f(bs.$$.fragment,e),f(Js.$$.fragment,e),f(js.$$.fragment,e),f(vs.$$.fragment,e),f(Us.$$.fragment,e),f(Is.$$.fragment,e),f(Zs.$$.fragment,e),f(Hs.$$.fragment,e),f(Bs.$$.fragment,e),f(Rs.$$.fragment,e),f(Ws.$$.fragment,e),f(Ss.$$.fragment,e),f(Fs.$$.fragment,e),f(Es.$$.fragment,e),f(Ys.$$.fragment,e),f(Os.$$.fragment,e),f(tl.$$.fragment,e),f(ll.$$.fragment,e),f(il.$$.fragment,e),f(pl.$$.fragment,e),f(ml.$$.fragment,e),f(ul.$$.fragment,e),f(cl.$$.fragment,e),f($l.$$.fragment,e),f(gl.$$.fragment,e),f(Cl.$$.fragment,e),f(j.$$.fragment,e),f(C.$$.fragment,e),f(_l.$$.fragment,e),f(xl.$$.fragment,e),f(kl.$$.fragment,e),f(Bl.$$.fragment,e),f(Rl.$$.fragment,e),f(Nl.$$.fragment,e),f(Ll.$$.fragment,e),f(Ql.$$.fragment,e),f(Al.$$.fragment,e),f(Pl.$$.fragment,e),f(ql.$$.fragment,e),f(Dl.$$.fragment,e),f(en.$$.fragment,e),f(sn.$$.fragment,e),f(nn.$$.fragment,e),f(pn.$$.fragment,e),f(rn.$$.fragment,e),f(mn.$$.fragment,e),f(yn.$$.fragment,e),f(bn.$$.fragment,e),f(Jn.$$.fragment,e),f(Cn.$$.fragment,e),f(Un.$$.fragment,e),f(xn.$$.fragment,e),f(Zn.$$.fragment,e),f(Gn.$$.fragment,e),f(Bn.$$.fragment,e),f(Rn.$$.fragment,e),f(Nn.$$.fragment,e),f(Wn.$$.fragment,e),f(Sn.$$.fragment,e),f(Fn.$$.fragment,e),f(Pn.$$.fragment,e),f(qn.$$.fragment,e),f(Kn.$$.fragment,e),f(On.$$.fragment,e),f(ei.$$.fragment,e),f(li.$$.fragment,e),f(fi.$$.fragment,e),f(ci.$$.fragment,e),ym=!0)},o(e){u(v.$$.fragment,e),u(x.$$.fragment,e),u(Z.$$.fragment,e),u(G.$$.fragment,e),u(X.$$.fragment,e),u(z.$$.fragment,e),u(W.$$.fragment,e),u(S.$$.fragment,e),u(A.$$.fragment,e),u(P.$$.fragment,e),u(q.$$.fragment,e),u(K.$$.fragment,e),u(O.$$.fragment,e),u(ee.$$.fragment,e),u(se.$$.fragment,e),u(ae.$$.fragment,e),u(re.$$.fragment,e),u(fe.$$.fragment,e),u(we.$$.fragment,e),u(ye.$$.fragment,e),u($e.$$.fragment,e),u(ge.$$.fragment,e),u(Je.$$.fragment,e),u(Ce.$$.fragment,e),u(ve.$$.fragment,e),u(_e.$$.fragment,e),u(xe.$$.fragment,e),u(Ze.$$.fragment,e),u(Ge.$$.fragment,e),u(Xe.$$.fragment,e),u(Ve.$$.fragment,e),u(ze.$$.fragment,e),u(Le.$$.fragment,e),u(Qe.$$.fragment,e),u(Ee.$$.fragment,e),u(Ye.$$.fragment,e),u(qe.$$.fragment,e),u(De.$$.fragment,e),u(Oe.$$.fragment,e),u(lt.$$.fragment,e),u(it.$$.fragment,e),u(pt.$$.fragment,e),u(rt.$$.fragment,e),u(g.$$.fragment,e),u(J.$$.fragment,e),u(dt.$$.fragment,e),u(mt.$$.fragment,e),u(ct.$$.fragment,e),u(ht.$$.fragment,e),u(Mt.$$.fragment,e),u(Tt.$$.fragment,e),u(Jt.$$.fragment,e),u(jt.$$.fragment,e),u(vt.$$.fragment,e),u(_t.$$.fragment,e),u(xt.$$.fragment,e),u(Zt.$$.fragment,e),u(Ht.$$.fragment,e),u(Xt.$$.fragment,e),u(Bt.$$.fragment,e),u(Vt.$$.fragment,e),u(zt.$$.fragment,e),u(Wt.$$.fragment,e),u(Pt.$$.fragment,e),u(qt.$$.fragment,e),u(Dt.$$.fragment,e),u(es.$$.fragment,e),u(ns.$$.fragment,e),u(is.$$.fragment,e),u(ps.$$.fragment,e),u(ds.$$.fragment,e),u(ms.$$.fragment,e),u(ys.$$.fragment,e),u(Ms.$$.fragment,e),u(bs.$$.fragment,e),u(Js.$$.fragment,e),u(js.$$.fragment,e),u(vs.$$.fragment,e),u(Us.$$.fragment,e),u(Is.$$.fragment,e),u(Zs.$$.fragment,e),u(Hs.$$.fragment,e),u(Bs.$$.fragment,e),u(Rs.$$.fragment,e),u(Ws.$$.fragment,e),u(Ss.$$.fragment,e),u(Fs.$$.fragment,e),u(Es.$$.fragment,e),u(Ys.$$.fragment,e),u(Os.$$.fragment,e),u(tl.$$.fragment,e),u(ll.$$.fragment,e),u(il.$$.fragment,e),u(pl.$$.fragment,e),u(ml.$$.fragment,e),u(ul.$$.fragment,e),u(cl.$$.fragment,e),u($l.$$.fragment,e),u(gl.$$.fragment,e),u(Cl.$$.fragment,e),u(j.$$.fragment,e),u(C.$$.fragment,e),u(_l.$$.fragment,e),u(xl.$$.fragment,e),u(kl.$$.fragment,e),u(Bl.$$.fragment,e),u(Rl.$$.fragment,e),u(Nl.$$.fragment,e),u(Ll.$$.fragment,e),u(Ql.$$.fragment,e),u(Al.$$.fragment,e),u(Pl.$$.fragment,e),u(ql.$$.fragment,e),u(Dl.$$.fragment,e),u(en.$$.fragment,e),u(sn.$$.fragment,e),u(nn.$$.fragment,e),u(pn.$$.fragment,e),u(rn.$$.fragment,e),u(mn.$$.fragment,e),u(yn.$$.fragment,e),u(bn.$$.fragment,e),u(Jn.$$.fragment,e),u(Cn.$$.fragment,e),u(Un.$$.fragment,e),u(xn.$$.fragment,e),u(Zn.$$.fragment,e),u(Gn.$$.fragment,e),u(Bn.$$.fragment,e),u(Rn.$$.fragment,e),u(Nn.$$.fragment,e),u(Wn.$$.fragment,e),u(Sn.$$.fragment,e),u(Fn.$$.fragment,e),u(Pn.$$.fragment,e),u(qn.$$.fragment,e),u(Kn.$$.fragment,e),u(On.$$.fragment,e),u(ei.$$.fragment,e),u(li.$$.fragment,e),u(fi.$$.fragment,e),u(ci.$$.fragment,e),ym=!1},d(e){e&&(s($),s(M),s(T),s(Ti),s(U),s(bi),s(_),s(gi),s(I),s(Ji),s(ji),s(k),s(Ci),s(vi),s(H),s(Ui),s(_i),s(Ii),s(B),s(xi),s(V),s(ki),s(R),s(Zi),s(Hi),s(N),s(Gi),s(Xi),s(L),s(Bi),s(Vi),s(Q),s(Ri),s(F),s(zi),s(Ni),s(E),s(Wi),s(Li),s(Y),s(Si),s(Qi),s(Fi),s(D),s(Ai),s(Ei),s(Pi),s(te),s(Yi),s(qi),s(le),s(Ki),s(ne),s(Di),s(ie),s(Oi),s(ea),s(pe),s(ta),s(oe),s(sa),s(la),s(de),s(na),s(me),s(ia),s(aa),s(ue),s(pa),s(ce),s(oa),s(ra),s(he),s(da),s(ma),s(Me),s(fa),s(ua),s(Te),s(ca),s(be),s(wa),s(ha),s(ya),s(je),s(Ma),s($a),s(Ta),s(Ue),s(ba),s(ga),s(Ie),s(Ja),s(ja),s(ke),s(Ca),s(va),s(He),s(Ua),s(_a),s(Ia),s(Be),s(xa),s(ka),s(Re),s(Za),s(Ha),s(Ne),s(Ga),s(We),s(Xa),s(Ba),s(Se),s(Va),s(Ra),s(Fe),s(za),s(Ae),s(Na),s(Wa),s(Pe),s(La),s(Sa),s(Qa),s(Ke),s(Fa),s(Aa),s(Ea),s(et),s(Pa),s(tt),s(Ya),s(st),s(qa),s(Ka),s(nt),s(Da),s(Oa),s(at),s(ep),s(tp),s(ot),s(sp),s(lp),s(np),s(ip),s(ap),s(pp),s(ft),s(op),s(ut),s(rp),s(dp),s(wt),s(mp),s(fp),s(yt),s(up),s(cp),s($t),s(wp),s(hp),s(bt),s(yp),s(gt),s(Mp),s($p),s(Tp),s(Ct),s(bp),s(gp),s(Ut),s(Jp),s(jp),s(It),s(Cp),s(vp),s(kt),s(Up),s(_p),s(Ip),s(Gt),s(xp),s(kp),s(Zp),s(Hp),s(Rt),s(Gp),s(Xp),s(Nt),s(Bp),s(Vp),s(Lt),s(Rp),s(St),s(zp),s(Qt),s(Np),s(Ft),s(Wp),s(At),s(Lp),s(Et),s(Sp),s(Qp),s(Yt),s(Fp),s(Ap),s(Kt),s(Ep),s(Pp),s(Ot),s(Yp),s(qp),s(ts),s(Kp),s(ss),s(Dp),s(ls),s(Op),s(eo),s(to),s(as),s(so),s(lo),s(os),s(no),s(rs),s(io),s(ao),s(po),s(fs),s(oo),s(us),s(ro),s(cs),s(mo),s(ws),s(fo),s(hs),s(uo),s(co),s(wo),s($s),s(ho),s(Ts),s(yo),s(Mo),s(gs),s($o),s(To),s(bo),s(Cs),s(go),s(Jo),s(jo),s(_s),s(Co),s(vo),s(xs),s(Uo),s(ks),s(_o),s(Io),s(xo),s(Gs),s(ko),s(Xs),s(Zo),s(Ho),s(Vs),s(Go),s(Xo),s(zs),s(Bo),s(Ns),s(Vo),s(Ro),s(Ls),s(zo),s(No),s(Qs),s(Wo),s(Lo),s(As),s(So),s(Qo),s(Ps),s(Fo),s(Ao),s(qs),s(Eo),s(Ks),s(Po),s(Ds),s(Yo),s(qo),s(el),s(Ko),s(Do),s(sl),s(Oo),s(er),s(nl),s(tr),s(sr),s(al),s(lr),s(nr),s(ol),s(ir),s(rl),s(ar),s(dl),s(pr),s(or),s(fl),s(rr),s(dr),s(mr),s(wl),s(fr),s(hl),s(ur),s(yl),s(cr),s(Ml),s(wr),s(hr),s(Tl),s(yr),s(bl),s(Mr),s($r),s(Jl),s(Tr),s(jl),s(br),s(gr),s(vl),s(Jr),s(Ul),s(jr),s(Cr),s(vr),s(Ur),s(Il),s(_r),s(Ir),s(xr),s(Zl),s(kr),s(Hl),s(Zr),s(Gl),s(Hr),s(Xl),s(Gr),s(Xr),s(Vl),s(Br),s(Vr),s(zl),s(Rr),s(zr),s(Wl),s(Nr),s(Wr),s(Sl),s(Lr),s(Sr),s(Fl),s(Qr),s(Fr),s(El),s(Ar),s(Er),s(Yl),s(Pr),s(Yr),s(Kl),s(qr),s(Kr),s(Ol),s(Dr),s(Or),s(tn),s(ed),s(td),s(ln),s(sd),s(ld),s(an),s(nd),s(id),s(on),s(ad),s(pd),s(dn),s(od),s(rd),s(fn),s(dd),s(un),s(md),s(cn),s(fd),s(wn),s(ud),s(hn),s(cd),s(wd),s(Mn),s(hd),s($n),s(yd),s(Tn),s(Md),s($d),s(gn),s(Td),s(bd),s(jn),s(gd),s(Jd),s(vn),s(jd),s(Cd),s(_n),s(vd),s(In),s(Ud),s(_d),s(kn),s(Id),s(xd),s(Hn),s(kd),s(Zd),s(Xn),s(Hd),s(Gd),s(Vn),s(Xd),s(Bd),s(zn),s(Vd),s(Rd),s(zd),s(Ln),s(Nd),s(Wd),s(Qn),s(Ld),s(Sd),s(An),s(Qd),s(En),s(Fd),s(Ad),s(Yn),s(Ed),s(Pd),s(Yd),s(Dn),s(qd),s(Kd),s(Dd),s(ti),s(Od),s(si),s(em),s(tm),s(ni),s(sm),s(ii),s(lm),s(ai),s(nm),s(pi),s(im),s(oi),s(am),s(ri),s(pm),s(di),s(om),s(mi),s(rm),s(dm),s(ui),s(mm),s(fm),s(wi),s(um),s(hi),s(cm),s(yi),s(wm),s(Mi),s(hm),s($i)),s(y),c(v,e),c(x,e),c(Z,e),c(G,e),c(X,e),c(z,e),c(W,e),c(S,e),c(A,e),c(P,e),c(q,e),c(K,e),c(O,e),c(ee,e),c(se,e),c(ae,e),c(re,e),c(fe,e),c(we,e),c(ye,e),c($e,e),c(ge,e),c(Je,e),c(Ce,e),c(ve,e),c(_e,e),c(xe,e),c(Ze,e),c(Ge,e),c(Xe,e),c(Ve,e),c(ze,e),c(Le,e),c(Qe,e),c(Ee,e),c(Ye,e),c(qe,e),c(De,e),c(Oe,e),c(lt,e),c(it,e),c(pt,e),c(rt,e),c(g,e),c(J,e),c(dt,e),c(mt,e),c(ct,e),c(ht,e),c(Mt,e),c(Tt,e),c(Jt,e),c(jt,e),c(vt,e),c(_t,e),c(xt,e),c(Zt,e),c(Ht,e),c(Xt,e),c(Bt,e),c(Vt,e),c(zt,e),c(Wt,e),c(Pt,e),c(qt,e),c(Dt,e),c(es,e),c(ns,e),c(is,e),c(ps,e),c(ds,e),c(ms,e),c(ys,e),c(Ms,e),c(bs,e),c(Js,e),c(js,e),c(vs,e),c(Us,e),c(Is,e),c(Zs,e),c(Hs,e),c(Bs,e),c(Rs,e),c(Ws,e),c(Ss,e),c(Fs,e),c(Es,e),c(Ys,e),c(Os,e),c(tl,e),c(ll,e),c(il,e),c(pl,e),c(ml,e),c(ul,e),c(cl,e),c($l,e),c(gl,e),c(Cl,e),c(j,e),c(C,e),c(_l,e),c(xl,e),c(kl,e),c(Bl,e),c(Rl,e),c(Nl,e),c(Ll,e),c(Ql,e),c(Al,e),c(Pl,e),c(ql,e),c(Dl,e),c(en,e),c(sn,e),c(nn,e),c(pn,e),c(rn,e),c(mn,e),c(yn,e),c(bn,e),c(Jn,e),c(Cn,e),c(Un,e),c(xn,e),c(Zn,e),c(Gn,e),c(Bn,e),c(Rn,e),c(Nn,e),c(Wn,e),c(Sn,e),c(Fn,e),c(Pn,e),c(qn,e),c(Kn,e),c(On,e),c(ei,e),c(li,e),c(fi,e),c(ci,e)}}}const ew='{"title":"Testing","local":"testing","sections":[{"title":"How transformers are tested","local":"how-transformers-are-tested","sections":[],"depth":2},{"title":"Running tests","local":"running-tests","sections":[{"title":"Choosing which tests to run","local":"choosing-which-tests-to-run","sections":[],"depth":3},{"title":"Getting the list of all tests","local":"getting-the-list-of-all-tests","sections":[],"depth":3},{"title":"Run a specific test module","local":"run-a-specific-test-module","sections":[],"depth":3},{"title":"Run specific tests","local":"run-specific-tests","sections":[],"depth":3},{"title":"Run accelerate tests","local":"run-accelerate-tests","sections":[],"depth":3},{"title":"Run documentation tests","local":"run-documentation-tests","sections":[],"depth":3},{"title":"Run only modified tests","local":"run-only-modified-tests","sections":[],"depth":3},{"title":"Automatically rerun failed tests on source modification","local":"automatically-rerun-failed-tests-on-source-modification","sections":[],"depth":3},{"title":"Skip a test module","local":"skip-a-test-module","sections":[],"depth":3},{"title":"Clearing state","local":"clearing-state","sections":[],"depth":3},{"title":"Running tests in parallel","local":"running-tests-in-parallel","sections":[],"depth":3},{"title":"Test order and repetition","local":"test-order-and-repetition","sections":[{"title":"Repeat tests","local":"repeat-tests","sections":[],"depth":4},{"title":"Run tests in a random order","local":"run-tests-in-a-random-order","sections":[],"depth":4}],"depth":3},{"title":"Look and feel variations","local":"look-and-feel-variations","sections":[{"title":"pytest-sugar","local":"pytest-sugar","sections":[],"depth":4},{"title":"Report each sub-test name and its progress","local":"report-each-sub-test-name-and-its-progress","sections":[],"depth":4},{"title":"Instantly shows failed tests","local":"instantly-shows-failed-tests","sections":[],"depth":4}],"depth":3},{"title":"To GPU or not to GPU","local":"to-gpu-or-not-to-gpu","sections":[],"depth":3},{"title":"Testing with a specific PyTorch backend or device","local":"testing-with-a-specific-pytorch-backend-or-device","sections":[],"depth":3},{"title":"Distributed training","local":"distributed-training","sections":[],"depth":3},{"title":"Output capture","local":"output-capture","sections":[],"depth":3},{"title":"Color control","local":"color-control","sections":[],"depth":3},{"title":"Sending test report to online pastebin service","local":"sending-test-report-to-online-pastebin-service","sections":[],"depth":3}],"depth":2},{"title":"Writing tests","local":"writing-tests","sections":[{"title":"Parametrization","local":"parametrization","sections":[],"depth":3},{"title":"Files and directories","local":"files-and-directories","sections":[],"depth":3},{"title":"Temporary files and directories","local":"temporary-files-and-directories","sections":[],"depth":3},{"title":"Temporary sys.path override","local":"temporary-syspath-override","sections":[],"depth":3},{"title":"Skipping tests","local":"skipping-tests","sections":[{"title":"Implementation","local":"implementation","sections":[],"depth":4}],"depth":3},{"title":"Slow tests","local":"slow-tests","sections":[],"depth":3},{"title":"Testing the stdout/stderr output","local":"testing-the-stdoutstderr-output","sections":[],"depth":3},{"title":"Capturing logger stream","local":"capturing-logger-stream","sections":[],"depth":3},{"title":"Testing with environment variables","local":"testing-with-environment-variables","sections":[],"depth":3},{"title":"Getting reproducible results","local":"getting-reproducible-results","sections":[],"depth":3},{"title":"Debugging tests","local":"debugging-tests","sections":[],"depth":3}],"depth":2},{"title":"Working with github actions workflows","local":"working-with-github-actions-workflows","sections":[],"depth":2},{"title":"Testing Experimental CI Features","local":"testing-experimental-ci-features","sections":[],"depth":2}],"depth":1}';function tw(b){return Qc(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pw extends Fc{constructor(y){super(),Ac(this,y,tw,Oc,Sc,{})}}export{pw as component};
