import{s as yw,o as Mw,n as Wm}from"../chunks/scheduler.9bc65507.js";import{S as Tw,i as $w,g as a,s as n,r,A as bw,h as p,f as s,c as i,j as ww,u as d,x as o,k as hw,y as Jw,a as l,v as m,d as f,t as u,w as c}from"../chunks/index.707bf1b6.js";import{T as zm}from"../chunks/Tip.c2ecdbf4.js";import{C as w}from"../chunks/CodeBlock.54a9f38d.js";import{H as h,E as gw}from"../chunks/EditOnGithub.922df6ba.js";function jw(b){let y,T="This plugin doesn’t work with <code>-n</code> flag from <code>pytest-xdist</code>.";return{c(){y=a("p"),y.innerHTML=T},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-1p59ipz"&&(y.innerHTML=T)},m(M,$){l(M,y,$)},p:Wm,d(M){M&&s(y)}}}function Cw(b){let y,T="There is another plugin <code>pytest-repeat</code>, but it doesn’t work with <code>unittest</code>.";return{c(){y=a("p"),y.innerHTML=T},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-huhi42"&&(y.innerHTML=T)},m(M,$){l(M,y,$)},p:Wm,d(M){M&&s(y)}}}function Uw(b){let y,T=`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=T},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-1fj8gae"&&(y.innerHTML=T)},m(M,$){l(M,y,$)},p:Wm,d(M){M&&s(y)}}}function vw(b){let y,T=`Each test can register multiple temporary directories and they all will get auto-removed, unless requested
otherwise.`;return{c(){y=a("p"),y.textContent=T},l(M){y=p(M,"P",{"data-svelte-h":!0}),o(y)!=="svelte-1r50p82"&&(y.textContent=T)},m(M,$){l(M,y,$)},p:Wm,d(M){M&&s(y)}}}function _w(b){let y,T,M,$,U,ki,v,Lm="Let’s take a look at how 🤗 Transformers models are tested and how you can write new tests and improve the existing ones.",Zi,_,Sm="There are 2 test suites in the repository:",Hi,I,Qm="<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>",Gi,x,Bi,k,Fm=`<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>`,Xi,Z,Vi,H,Em='The results can be observed <a href="https://github.com/huggingface/transformers/actions" rel="nofollow">here</a>.',Ri,G,Ni,B,zi,X,Am=`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>.`,Wi,V,Pm="Here are some most useful ways of running tests.",Li,R,Ym="Run all:",Si,N,Qi,z,qm="or:",Fi,W,Ei,L,Km="Note that the latter is defined as:",Ai,S,Pi,Q,Dm="which tells pytest to:",Yi,F,Om="<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>",qi,E,Ki,A,ef="All tests of the test suite:",Di,P,Oi,Y,tf="All tests of a given test file:",ea,q,ta,K,sa,D,sf="To run an individual test module:",la,O,na,ee,ia,te,lf=`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:`,aa,se,pa,le,nf="Here:",oa,ne,af="<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>",ra,ie,pf="If the file contains multiple classes, you can choose to run only tests of a given class. For example:",da,ae,ma,pe,of="will run all the tests inside that class.",fa,oe,rf="As mentioned earlier you can see what tests are contained inside the <code>OptimizationTest</code> class by running:",ua,re,ca,de,df="You can run tests by keyword expressions.",wa,me,mf="To run only tests whose name contains <code>adam</code>:",ha,fe,ya,ue,ff=`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.`,Ma,ce,uf="To run all tests except those whose name contains <code>adam</code>:",Ta,we,$a,he,cf="And you can combine the two patterns in one:",ba,ye,Ja,Me,wf="For example to run both <code>test_adafactor</code> and <code>test_adam_w</code> you can use:",ga,Te,ja,$e,hf="Note that we use <code>or</code> here, since we want either of the keywords to match to include both.",Ca,be,yf="If you want to include only tests that include both patterns, <code>and</code> is to be used:",Ua,Je,va,ge,_a,je,Mf="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:",Ia,Ce,xa,Ue,ka,ve,Tf=`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>:`,Za,_e,Ha,Ie,$f="Just run the following line to automatically test every docstring example in the desired file:",Ga,xe,Ba,ke,bf="If the file has a markdown extention, you should add the <code>--doctest-glob=&quot;*.md&quot;</code> argument.",Xa,Ze,Va,He,Jf=`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.`,Ra,Ge,Na,Be,za,Xe,gf="All tests will be run from files and folders which are modified, but not yet committed.",Wa,Ve,La,Re,jf=`<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.`,Sa,Ne,Qa,ze,Cf="To enter the mode: <code>pytest -f</code> or <code>pytest --looponfail</code>",Fa,We,Uf=`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>:`,Ea,Le,Aa,Se,vf="or <code>pytest.ini</code>/<code>tox.ini</code> files:",Pa,Qe,Ya,Fe,_f=`This would lead to only looking for file changes in the respective directories, specified relatively to the ini-file’s
directory.`,qa,Ee,If='<a href="https://github.com/joeyespo/pytest-watch" rel="nofollow">pytest-watch</a> is an alternative implementation of this functionality.',Ka,Ae,Da,Pe,xf=`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:`,Oa,Ye,ep,qe,tp,Ke,kf="CI builds and when isolation is important (against speed), cache should be cleared:",sp,De,lp,Oe,np,et,Zf=`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).`,ip,tt,Hf=`<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.`,ap,st,Gf=`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.`,pp,lt,op,nt,Bf=`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.`,rp,it,dp,at,Xf='<li><a href="https://github.com/dropbox/pytest-flakefinder" rel="nofollow">pytest-flakefinder</a>:</li>',mp,pt,fp,ot,Vf="And then run every test multiple times (50 by default):",up,rt,cp,J,wp,g,hp,dt,yp,mt,Mp,ft,Rf=`Important: the presence of <code>pytest-random-order</code> will automatically randomize tests, no configuration change or
command line options is required.`,Tp,ut,Nf=`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:`,$p,ct,bp,wt,zf="So that if the given particular sequence fails, you can reproduce it by adding that exact seed, e.g.:",Jp,ht,gp,yt,Wf=`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.:`,jp,Mt,Cp,Tt,Lf="To disable the shuffling for all tests:",Up,$t,vp,bt,Sf=`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>.`,_p,Jt,Qf=`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.`,Ip,gt,xp,jt,kp,Ct,Ff=`<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.`,Zp,Ut,Hp,vt,Ef="To run tests without it, run:",Gp,_t,Bp,It,Af="or uninstall it.",Xp,xt,Vp,kt,Pf="For a single or a group of tests via <code>pytest</code> (after <code>pip install pytest-pspec</code>):",Rp,Zt,Np,Ht,zp,Gt,Yf=`<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.`,Wp,Bt,Lp,Xt,Sp,Vt,Qp,Rt,qf="On a GPU-enabled setup, to test in CPU-only mode add <code>CUDA_VISIBLE_DEVICES=&quot;&quot;</code>:",Fp,Nt,Ep,zt,Kf=`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:`,Ap,Wt,Pp,Lt,Df="This is handy when you want to run different tasks on different GPUs.",Yp,St,Of=`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:`,qp,Qt,eu="<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_xla</code> - as <code>require_torch</code> plus requires at least 1 TPU</li>",Kp,Ft,tu="Let’s depict the GPU requirements in the following table:",Dp,Et,su="<thead><tr><th>n gpus</th> <th>decorator</th></tr></thead> <tbody><tr><td><code>&gt;= 0</code></td> <td><code>@require_torch</code></td></tr> <tr><td><code>&gt;= 1</code></td> <td><code>@require_torch_gpu</code></td></tr> <tr><td><code>&gt;= 2</code></td> <td><code>@require_torch_multi_gpu</code></td></tr> <tr><td><code>&lt; 2</code></td> <td><code>@require_torch_non_multi_gpu</code></td></tr> <tr><td><code>&lt; 3</code></td> <td><code>@require_torch_up_to_2_gpus</code></td></tr></tbody>",Op,At,lu="For example, here is a test that must be run only when there are 2 or more GPUs available and pytorch is installed:",eo,Pt,to,Yt,nu="If a test requires <code>tensorflow</code> use the <code>require_tf</code> decorator. For example:",so,qt,lo,Kt,iu=`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:`,no,Dt,io,Ot,au=`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:`,ao,es,po,ts,pu=`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.`,oo,ss,ou="Inside tests:",ro,ls,ru="<li>How many GPUs are available:</li>",mo,ns,fo,is,uo,as,du="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:",co,ps,wo,os,mu="This variable is useful for testing custom or less common PyTorch backends such as <code>mps</code>, <code>xpu</code> or <code>npu</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.",ho,rs,fu="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>:",yo,ds,Mo,ms,uu="Alternative backends may also require the replacement of device-specific functions. For example <code>torch.cuda.manual_seed</code> may need to be replaced with a device-specific seed setter like <code>torch.npu.manual_seed</code> or <code>torch.xpu.manual_seed</code> to correctly set a random seed on the device. To specify a new backend with backend-specific device functions when running the test suite, create a Python device specification file <code>spec.py</code> in the format:",To,fs,$o,us,cu="This format also allows for specification of any additional imports required. To use this file to replace equivalent methods in the test suite, set the environment variable <code>TRANSFORMERS_TEST_DEVICE_SPEC</code> to the path of the spec file, e.g. <code>TRANSFORMERS_TEST_DEVICE_SPEC=spec.py</code>.",bo,cs,wu="Currently, only <code>MANUAL_SEED_FN</code>, <code>EMPTY_CACHE_FN</code> and <code>DEVICE_COUNT_FN</code> are supported for device-specific dispatch.",Jo,ws,go,hs,hu=`<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.`,jo,ys,yu="Here are some tests that use it:",Co,Ms,Mu='<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>',Uo,Ts,Tu="To jump right into the execution point, search for the <code>execute_subprocess_async</code> call in those tests.",vo,$s,$u="You will need at least 2 GPUs to see these tests in action:",_o,bs,Io,Js,xo,gs,bu=`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.`,ko,js,Ju="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>:",Zo,Cs,Ho,Us,gu="To send test results to JUnit format output:",Go,vs,Bo,_s,Xo,Is,ju="To have no color (e.g., yellow on white background is not readable):",Vo,xs,Ro,ks,No,Zs,Cu="Creating a URL for each test failure:",zo,Hs,Wo,Gs,Uu=`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.`,Lo,Bs,vu="Creating a URL for a whole test session log:",So,Xs,Qo,Vs,Fo,Rs,_u=`🤗 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.`,Eo,Ns,Iu=`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.`,Ao,zs,Po,Ws,xu=`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.`,Yo,Ls,qo,Ss,ku=`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.`,Ko,Qs,Zu="and you could run just the <code>negative</code> and <code>integer</code> sets of params with:",Do,Fs,Oo,Es,Hu="or all but <code>negative</code> sub-tests, with:",er,As,tr,Ps,Gu=`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.`,sr,Ys,lr,qs,Bu="and it will list:",nr,Ks,ir,Ds,Xu="So now you can run just 2 specific sub-tests:",ar,Os,pr,el,Vu=`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.`,or,tl,Ru=`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>).`,rr,sl,Nu="Here is the same example, this time using <code>pytest</code>’s <code>parametrize</code> marker:",dr,ll,mr,nl,zu=`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:`,fr,il,ur,al,Wu="and it will list:",cr,pl,wr,ol,Lu="So now you can run just the specific test:",hr,rl,yr,dl,Su="as in the previous example.",Mr,ml,Tr,fl,Qu=`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:`,$r,ul,Fu="<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>",br,cl,Eu=`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:`,Jr,wl,gr,hl,Au=`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:`,jr,yl,Cr,Ml,Ur,Tl,Pu=`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.`,vr,$l,Yu=`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.`,_r,bl,qu=`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.`,Ir,Jl,Ku="Here is an example of its usage:",xr,gl,kr,jl,Du="This code creates a unique temporary directory, and sets <code>tmp_dir</code> to its location.",Zr,Cl,Ou="<li>Create a unique temporary dir:</li>",Hr,Ul,Gr,vl,ec=`<code>tmp_dir</code> will contain the path to the created temporary dir. It will be automatically removed at the end of the
test.`,Br,_l,tc="<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>",Xr,Il,Vr,xl,sc=`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.`,Rr,kl,lc=`<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>`,Nr,j,zr,C,Wr,Zl,Lr,Hl,nc=`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:`,Sr,Gl,Qr,Bl,Fr,Xl,ic=`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>.`,Er,Vl,ac="Methods:",Ar,Rl,pc=`<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>`,Pr,Nl,oc=`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>.`,Yr,zl,qr,Wl,rc="<li>Here is how to skip whole test unconditionally:</li>",Kr,Ll,Dr,Sl,dc="or via pytest:",Or,Ql,ed,Fl,mc="or the <code>xfail</code> way:",td,El,sd,Al,fc="Here’s how to skip a test based on internal checks within the test:",ld,Pl,nd,Yl,uc="or the whole module:",id,ql,ad,Kl,cc="or the <code>xfail</code> way:",pd,Dl,od,Ol,wc="<li>Here is how to skip all tests in a module if some import is missing:</li>",rd,en,dd,tn,hc="<li>Skip a test based on a condition:</li>",md,sn,fd,ln,yc="or:",ud,nn,cd,an,Mc="or skip the whole module:",wd,pn,hd,on,Tc='More details, example and ways are <a href="https://docs.pytest.org/en/latest/skipping.html" rel="nofollow">here</a>.',yd,rn,Md,dn,$c=`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:`,Td,mn,$d,fn,bc="Once a test is marked as <code>@slow</code>, to run such tests set <code>RUN_SLOW=1</code> env var, e.g.:",bd,un,Jd,cn,Jc=`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:`,gd,wn,jd,hn,gc=`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.`,Cd,yn,jc="Here is a rough decision making mechanism for choosing which tests should be marked as slow:",Ud,Mn,Cc=`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:`,vd,Tn,Uc=`<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>`,_d,$n,vc=`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:`,Id,bn,xd,Jn,_c=`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.`,kd,gn,Ic=`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>).`,Zd,jn,xc=`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.`,Hd,Cn,Gd,Un,kc=`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:`,Bd,vn,Xd,_n,Zc=`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:`,Vd,In,Rd,xn,Hc="Another approach to capturing stdout is via <code>contextlib.redirect_stdout</code>:",Nd,kn,zd,Zn,Gc=`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>.`,Wd,Hn,Bc=`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:`,Ld,Gn,Sd,Bn,Xc="Here is a full test example:",Qd,Xn,Fd,Vn,Vc="If you’d like to capture <code>stderr</code> use the <code>CaptureStderr</code> class instead:",Ed,Rn,Ad,Nn,Rc="If you need to capture both streams at once, use the parent <code>CaptureStd</code> class:",Pd,zn,Yd,Wn,Nc=`Also, to aid debugging test issues, by default these context managers automatically replay the captured streams on exit
from the context.`,qd,Ln,Kd,Sn,zc="If you need to validate the output of a logger, you can use <code>CaptureLogger</code>:",Dd,Qn,Od,Fn,em,En,Wc=`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>`,tm,An,sm,Pn,Lc=`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:`,lm,Yn,nm,qn,Sc=`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.`,im,Kn,Qc="This helper method creates a copy of the <code>os.environ</code> object, so the original remains intact.",am,Dn,pm,On,Fc=`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:`,om,ei,rm,ti,dm,si,Ec="To start a debugger at the point of the warning, do this:",mm,li,fm,ni,um,ii,Ac="To trigger a self-push workflow CI job, you must:",cm,ai,Pc=`<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>`,wm,pi,hm,oi,Yc=`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.`,ym,ri,qc=`<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>`,Mm,di,Kc="That way experiments on CI functionality itself won’t interfere with the normal workflow.",Tm,mi,Dc="Now how can we make the job always succeed while the new CI feature is being developed?",$m,fi,Oc=`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.`,bm,ui,ew="So the following workaround can be used:",Jm,ci,tw="<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>",gm,wi,sw="Here is an example:",jm,hi,Cm,yi,lw="For simple commands you could also do:",Um,Mi,vm,Ti,nw=`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.`,_m,$i,iw=`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.`,Im,bi,aw="You can vote for this feature and see where it is at these CI-specific threads:",xm,Ji,pw='<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>',km,gi,Zm,ji,ow="For a PR that involves the DeepSpeed integration, keep in mind our CircleCI PR CI setup doesn’t have GPUs. Tests requiring GPUs are run on a different CI nightly. This means if you get a passing CI report in your PR, it doesn’t mean the DeepSpeed tests pass.",Hm,Ci,rw="To run DeepSpeed tests:",Gm,Ui,Bm,vi,dw="Any changes to the modeling or PyTorch examples code requires running the model zoo tests as well.",Xm,_i,Vm,Ii,Rm,xi,Nm;return U=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"}}),B=new h({props:{title:"Choosing which tests to run",local:"choosing-which-tests-to-run",headingTag:"h3"}}),N=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}}),E=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}}),Te=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJ0ZXN0X2FkYWZhY3RvciUyMG9yJTIwdGVzdF9hZGFtX3clMjIlMjB0ZXN0cyUyRnRlc3Rfb3B0aW1pemF0aW9uLnB5",highlighted:'pytest -k <span class="hljs-string">&quot;test_adafactor or test_adam_w&quot;</span> tests/test_optimization.py',wrap:!1}}),Je=new w({props:{code:"cHl0ZXN0JTIwLWslMjAlMjJ0ZXN0JTIwYW5kJTIwYWRhJTIyJTIwdGVzdHMlMkZ0ZXN0X29wdGltaXphdGlvbi5weQ==",highlighted:'pytest -k <span class="hljs-string">&quot;test and ada&quot;</span> tests/test_optimization.py',wrap:!1}}),ge=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}}),Ue=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}}),Be=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"}}),Ne=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}}),Ae=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}}),J=new zm({props:{$$slots:{default:[jw]},$$scope:{ctx:b}}}),g=new zm({props:{$$slots:{default:[Cw]},$$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}}),$t=new w({props:{code:"cHl0ZXN0JTIwLS1yYW5kb20tb3JkZXItYnVja2V0JTNEbm9uZQ==",highlighted:"pytest --random-order-bucket=none",wrap:!1}}),gt=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"}}),Ut=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"}}),Bt=new w({props:{code:"cGlwJTIwaW5zdGFsbCUyMHB5dGVzdC1pbnN0YWZhaWw=",highlighted:"pip install pytest-instafail",wrap:!1}}),Xt=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"}}),Nt=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}}),fs=new w({props:{code:"aW1wb3J0JTIwdG9yY2glMEFpbXBvcnQlMjB0b3JjaF9ucHUlMjAlMjMlMjBmb3IlMjB4cHUlMkMlMjByZXBsYWNlJTIwaXQlMjB3aXRoJTIwJTYwaW1wb3J0JTIwaW50ZWxfZXh0ZW5zaW9uX2Zvcl9weXRvcmNoJTYwJTBBJTIzJTIwISElMjBGdXJ0aGVyJTIwYWRkaXRpb25hbCUyMGltcG9ydHMlMjBjYW4lMjBiZSUyMGFkZGVkJTIwaGVyZSUyMCEhJTBBJTBBJTIzJTIwU3BlY2lmeSUyMHRoZSUyMGRldmljZSUyMG5hbWUlMjAoZWcuJTIwJ2N1ZGEnJTJDJTIwJ2NwdSclMkMlMjAnbnB1JyUyQyUyMCd4cHUnJTJDJTIwJ21wcycpJTBBREVWSUNFX05BTUUlMjAlM0QlMjAnbnB1JyUwQSUwQSUyMyUyMFNwZWNpZnklMjBkZXZpY2Utc3BlY2lmaWMlMjBiYWNrZW5kcyUyMHRvJTIwZGlzcGF0Y2glMjB0by4lMEElMjMlMjBJZiUyMG5vdCUyMHNwZWNpZmllZCUyQyUyMHdpbGwlMjBmYWxsYmFjayUyMHRvJTIwJ2RlZmF1bHQnJTIwaW4lMjAndGVzdGluZ191dGlscy5weSU2MCUwQU1BTlVBTF9TRUVEX0ZOJTIwJTNEJTIwdG9yY2gubnB1Lm1hbnVhbF9zZWVkJTBBRU1QVFlfQ0FDSEVfRk4lMjAlM0QlMjB0b3JjaC5ucHUuZW1wdHlfY2FjaGUlMEFERVZJQ0VfQ09VTlRfRk4lMjAlM0QlMjB0b3JjaC5ucHUuZGV2aWNlX2NvdW50",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">import</span> torch_npu <span class="hljs-comment"># for xpu, replace it with \`import intel_extension_for_pytorch\`</span>
<span class="hljs-comment"># !! Further additional imports can be added here !!</span>

<span class="hljs-comment"># Specify the device name (eg. &#x27;cuda&#x27;, &#x27;cpu&#x27;, &#x27;npu&#x27;, &#x27;xpu&#x27;, &#x27;mps&#x27;)</span>
DEVICE_NAME = <span class="hljs-string">&#x27;npu&#x27;</span>

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