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

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