parquet-converter commited on
Commit
e5846a6
·
1 Parent(s): 76a7104

Update parquet files (step 6 of 296)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Buku Matematika Kelas 6.pdf.md +0 -101
  2. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Descargar Crack Memories On Tv 4.1.1 32l Crez des albums photo pour votre TV ou votre ordinateur.md +0 -149
  3. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Memoriesontv 4 Crack Serial 11 with Keygen [Working Tested].md +0 -85
  4. spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Descargar Extreme Car Driving Simulator APK Un juego de conduccin realista y divertido.md +0 -122
  5. spaces/1phancelerku/anime-remove-background/Descarga Soul Knight Mod APK con gemas y monedas ilimitadas y todo desbloqueado.md +0 -137
  6. spaces/1phancelerku/anime-remove-background/Download and Play Special Forces Group 2 with God Mod APK and Get Ready for Intense Shooter Action.md +0 -25
  7. spaces/1phancelerku/anime-remove-background/Download emulator black ps2 android with these simple steps.md +0 -224
  8. spaces/1phancelerku/anime-remove-background/Enjoy the Smooth and Comprehensive Gameplay of Battle Royale 3D - Warrior63 with Mod APK.md +0 -98
  9. spaces/1toTree/lora_test/README.md +0 -12
  10. spaces/232labs/VToonify/vtoonify/model/raft/core/utils/__init__.py +0 -0
  11. spaces/AI-ANK/PaLM-Kosmos-Vision/README.md +0 -13
  12. spaces/AIGC-Audio/AudioGPT/NeuralSeq/vocoders/base_vocoder.py +0 -39
  13. spaces/AILab-CVC/SEED-LLaMA/start.sh +0 -11
  14. spaces/Abrish-Aadi/Chest-Xray-anomaly-detection/README.md +0 -13
  15. spaces/AchyuthGamer/MagicPrompt-Stable-Diffusion/README.md +0 -14
  16. spaces/Adapter/T2I-Adapter/test_adapter.py +0 -80
  17. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/plugins/shockwavepipeline-plugin.js +0 -14
  18. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/maker/builders/utils/SetTextureProperties.js +0 -22
  19. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/pages/methods/HasPage.js +0 -5
  20. spaces/AlekseyKorshuk/accompaniment-generator/app.py +0 -108
  21. spaces/Alichuan/VITS-Umamusume-voice-synthesizer/mel_processing.py +0 -101
  22. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/examples/community/multilingual_stable_diffusion.py +0 -436
  23. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/commands/fp16_safetensors.py +0 -138
  24. spaces/Andy1621/uniformer_image_detection/configs/hrnet/cascade_mask_rcnn_hrnetv2p_w40_20e_coco.py +0 -11
  25. spaces/Andy1621/uniformer_image_detection/configs/hrnet/mask_rcnn_hrnetv2p_w32_2x_coco.py +0 -4
  26. spaces/Andy1621/uniformer_image_detection/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_1x_coco.py +0 -13
  27. spaces/Andy1621/uniformer_image_detection/configs/retinanet/retinanet_r101_caffe_fpn_1x_coco.py +0 -4
  28. spaces/Andy1621/uniformer_image_segmentation/configs/hrnet/fcn_hr18s_512x512_160k_ade20k.py +0 -9
  29. spaces/AnimalEquality/chatbot/nbs/styles.css +0 -37
  30. spaces/Artrajz/vits-simple-api/bert_vits2/modules.py +0 -459
  31. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/cmdline.py +0 -668
  32. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/style.py +0 -197
  33. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/rich/_extension.py +0 -10
  34. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/rich/_wrap.py +0 -56
  35. spaces/Awesimo/jojogan/e4e/criteria/lpips/networks.py +0 -96
  36. spaces/Ayemos/highlight_text_based_on_surprisals/README.md +0 -12
  37. spaces/Bart92/RVC_HF/go-tensorboard.bat +0 -2
  38. spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/pyproject_hooks/_impl.py +0 -330
  39. spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/tenacity/tornadoweb.py +0 -59
  40. spaces/Big-Web/MMSD/env/Lib/site-packages/setuptools/_distutils/spawn.py +0 -109
  41. spaces/CVPR/LIVE/thrust/thrust/detail/reference.h +0 -178
  42. spaces/CVPR/LIVE/thrust/thrust/partition.h +0 -1439
  43. spaces/CVPR/LIVE/thrust/thrust/random/detail/normal_distribution_base.h +0 -149
  44. spaces/CVPR/LIVE/thrust/thrust/system/cuda/detail/assign_value.h +0 -102
  45. spaces/CVPR/LIVE/thrust/thrust/system/detail/sequential/assign_value.h +0 -43
  46. spaces/CVPR/LIVE/thrust/thrust/system/omp/detail/get_value.h +0 -23
  47. spaces/CVPR/lama-example/bin/blur_predicts.py +0 -57
  48. spaces/CVPR/ml-talking-face/toxicity_estimator/module.py +0 -51
  49. spaces/Chloe0222/Chloe/README.md +0 -12
  50. spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/gradio/templates/cdn/assets/TabItem.svelte_svelte_type_style_lang-1276453b.js +0 -2
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Buku Matematika Kelas 6.pdf.md DELETED
@@ -1,101 +0,0 @@
1
-
2
- <br> - H2: The Content of Buku Matematika Kelas 6.pdf <br> - H2: The Benefits of Buku Matematika Kelas 6.pdf <br> - H2: How to Download Buku Matematika Kelas 6.pdf <br> - Conclusion: A summary of the main points and a call to action <br> - FAQs: Some common questions and answers about Buku Matematika Kelas 6.pdf | # Article with HTML formatting <h1>Buku Matematika Kelas 6.pdf: A Guide for Students and Teachers</h1>
3
- <p>If you are a student or a teacher of grade 6 mathematics in Indonesia, you might have heard of Buku Matematika Kelas 6.pdf. This is a book that follows the curriculum of 2013 and has been revised in 2018 by the Ministry of Education and Culture. It is a book that covers various topics and skills in mathematics, such as negative integers, mixed operations, circles, prisms, pyramids, cones, spheres, and data analysis. In this article, we will explain what Buku Matematika Kelas 6.pdf is, what it contains, what its benefits are, and how you can download it for free.</p>
4
- <h2>Buku Matematika Kelas 6.pdf</h2><br /><p><b><b>DOWNLOAD</b> &#127379; <a href="https://byltly.com/2uKzSr">https://byltly.com/2uKzSr</a></b></p><br /><br />
5
- <h2>The Content of Buku Matematika Kelas 6.pdf</h2>
6
- <p>Buku Matematika Kelas 6.pdf consists of two parts: a book for students and a book for teachers. The book for students is called Buku Siswa and the book for teachers is called Buku Guru. Both books are available in PDF format and can be easily opened and read using various gadgets. They can also be displayed as slide presentations.</p>
7
- <p>The book for students has eight chapters that correspond to the eight competencies that are expected from grade 6 students. Each chapter has several subtopics that are explained in detail with examples, exercises, tasks, and activities. The book also features some interesting sections, such as observing, reasoning, questioning, knowing the figures, practice questions, group assignments, and others. These sections are designed to help students develop their scientific skills, higher-order thinking skills, problem-based learning skills, literacy skills, and connection skills.</p>
8
- <p>The book for teachers is a guide and a reference for teachers in teaching mathematics, especially in grade 6 elementary school or madrasah ibtidaiyah. The book provides some tips and suggestions on how to plan, implement, and evaluate the learning process using Buku Siswa. The book also explains the learning objectives, indicators, materials, methods, media, resources, assessment tools, and feedback for each subtopic.</p>
9
- <h2>The Benefits of Buku Matematika Kelas 6.pdf</h2>
10
- <p>Buku Matematika Kelas 6.pdf has many benefits for both students and teachers. Some of the benefits are:</p>
11
- <ul>
12
- <li>It is aligned with the curriculum of 2013 that has been revised in 2018. It reflects the latest changes and updates in the mathematics education field.</li>
13
- <li>It is comprehensive and thorough. It covers all the topics and skills that are required for grade 6 students. It also provides enough exercises and tasks to practice and reinforce the concepts.</li>
14
- <li>It is engaging and interactive. It uses a variety of methods and media to present the information. It also encourages students to participate actively in the learning process by observing, questioning, reasoning, trying, and communicating.</li>
15
- <li>It is relevant and contextual. It connects the mathematics concepts with real-life situations and problems. It also relates the mathematics concepts with other subjects and disciplines.</li>
16
- <li>It is accessible and free. It can be downloaded easily from the internet without any cost. It can also be used with different devices and platforms.</li>
17
- </ul>
18
- <h2>How to Download Buku Matematika Kelas 6.pdf</h2>
19
- <p>If you are interested in using Buku Matematika Kelas 6.pdf for your learning or teaching purposes, you can download it from the following links:</p>
20
- <table>
21
- <tr>
22
- <th>Book</th>
23
- <th>Link</th>
24
- </tr>
25
- <tr>
26
- <td>Buku Siswa</td>
27
- <td><a href="https://www.pendidikanterkini.com/2021/05/buku-matematika-kelas-6-k13.html">https://www.pendidikanterkini.com/2021/05/buku-matematika-kelas-6-k13.html</a></td>
28
- </tr>
29
- <tr>
30
- <td>Buku Guru</td>
31
- <td><a href="https://www.pendidikanterkini.com/2021/05/buku-matematika-kelas-6-k13.html">https://www.pendidikanterkini.com/2021/05/buku-matematika-kelas-6-k13.html</a></td>
32
- </tr>
33
- <tr>
34
- <td>Buku Siswa dan Buku Guru (zip file)</td>
35
- <td><a href="https://www.ayomadrasah.id/2020/01/download-buku-matematika-kelas-6-k13.html">https://www.ayomadrasah.id/2020/01/download-buku-matematika-kelas-6-k13.html</a></td>
36
- </tr>
37
- </table>
38
- <p>After downloading the files, you can open them using any PDF reader software or application. You can also print them if you prefer to have a hard copy.</p>
39
- <h2>Conclusion</h2>
40
- <p>Buku Matematika Kelas 6.pdf is a valuable resource for students and teachers of grade 6 mathematics in Indonesia. It follows the curriculum of 2013 that has been revised in 2018 by the Ministry of Education and Culture. It covers various topics and skills in mathematics in a comprehensive, engaging, interactive, relevant, and contextual way. It also provides enough exercises and tasks to practice and reinforce the concepts. Moreover, it can be downloaded easily from the internet without any cost.</p>
41
- <p>If you want to improve your mathematics knowledge and skills or help your students do so, you should consider using Buku Matematika Kelas 6.pdf as your learning or teaching material. You will not regret it!</p>
42
- <p>Download Buku Matematika Kelas 6 Kurikulum 2013 pdf<br />
43
- Buku Matematika Kelas 6 Semester 1 dan 2 pdf<br />
44
- Buku Matematika Kelas 6 SD/MI pdf<br />
45
- Buku Matematika Kelas 6 Edisi Revisi 2018 pdf<br />
46
- Buku Matematika Kelas 6 Penerbit Erlangga pdf<br />
47
- Buku Matematika Kelas 6 Penerbit Esis pdf<br />
48
- Buku Matematika Kelas 6 Penerbit Yudhistira pdf<br />
49
- Buku Matematika Kelas 6 Penerbit Intan Pariwara pdf<br />
50
- Buku Matematika Kelas 6 Penerbit Ganeca Exact pdf<br />
51
- Buku Matematika Kelas 6 Penerbit Quadra pdf<br />
52
- Buku Matematika Kelas 6 Tema 1 Hidup Rukun pdf<br />
53
- Buku Matematika Kelas 6 Tema 2 Selalu Berhemat Energi pdf<br />
54
- Buku Matematika Kelas 6 Tema 3 Cita-Citaku pdf<br />
55
- Buku Matematika Kelas 6 Tema 4 Peduli Terhadap Makhluk Hidup pdf<br />
56
- Buku Matematika Kelas 6 Tema 5 Bangga Sebagai Bangsa Indonesia pdf<br />
57
- Buku Matematika Kelas 6 Tema 6 Kesehatan dan Olahraga pdf<br />
58
- Buku Matematika Kelas 6 Tema 7 Permainan Tradisional pdf<br />
59
- Buku Matematika Kelas 6 Tema 8 Lingkungan Sahabat Kita pdf<br />
60
- Buku Matematika Kelas 6 Tema 9 Makanan Sehat dan Bergizi pdf<br />
61
- Buku Matematika Kelas 6 Tema 10 Peristiwa dalam Kehidupan pdf<br />
62
- Ringkasan Materi Buku Matematika Kelas 6 pdf<br />
63
- Soal dan Pembahasan Buku Matematika Kelas 6 pdf<br />
64
- Latihan Ulangan Harian Buku Matematika Kelas 6 pdf<br />
65
- Latihan Ulangan Tengah Semester Buku Matematika Kelas 6 pdf<br />
66
- Latihan Ulangan Akhir Semester Buku Matematika Kelas 6 pdf<br />
67
- Latihan Ujian Sekolah Berstandar Nasional (USBN) Buku Matematika Kelas 6 pdf<br />
68
- Latihan Ujian Nasional Berbasis Komputer (UNBK) Buku Matematika Kelas 6 pdf<br />
69
- Kunci Jawaban Buku Matematika Kelas 6 pdf<br />
70
- RPP dan Silabus Buku Matematika Kelas 6 pdf<br />
71
- Lembar Kerja Siswa (LKS) Buku Matematika Kelas 6 pdf<br />
72
- Modul Pembelajaran Jarak Jauh (PJJ) Buku Matematika Kelas 6 pdf<br />
73
- Video Pembelajaran Interaktif (VPI) Buku Matematika Kelas 6 pdf<br />
74
- Media Pembelajaran Digital (MPD) Buku Matematika Kelas 6 pdf<br />
75
- Evaluasi Diri dan Remedial (EDR) Buku Matematika Kelas 6 pdf<br />
76
- Penilaian Kinerja dan Portofolio (PKP) Buku Matematika Kelas 6 pdf<br />
77
- Penilaian HOTS (Higher Order Thinking Skills) Buku Matematika Kelas 6 pdf<br />
78
- Penilaian Afektif dan Psikomotorik (PAP) Buku Matematika Kelas 6 pdf<br />
79
- Penilaian Autentik dan Holistik (PAH) Buku Matematika Kelas 6 pdf<br />
80
- Penilaian Berbasis Kompetensi (PBK) Buku Matematika Kelas 6 pdf<br />
81
- Penilaian Berbasis Proyek (PBP) Buku Matematika Kelas 6 pdf<br />
82
- Penilaian Berbasis Kinerja (PBK) Buku Matematika Kelas 6 pdf<br />
83
- Penilaian Berbasis Portofolio (PBP) Buku Matematika Kelas 6 pdf<br />
84
- Penilaian Berbasis Produk (PBP) Buku Matematika Kelas 6 pdf<br />
85
- Penilaian Berbasis Proses (PBP) Buku Matematika Kelas 6 pdf<br />
86
- Penilaian Berbasis Kemampuan Berpikir Kritis (PBKBK) Buku Matematika Kelas 6 pdf<br />
87
- Penilaian Berbasis Kemampuan Berpikir Kreatif (PBKBK) Buku Matematika Kelas 6 pdf<br />
88
- Penilaian Berbasis Kemampuan Memecahkan Masalah (PBKMM) Buku Matematika Kelas 6 pdf <br />
89
- Penilaian Berbasis Kemampuan Komunikasi Efektif (PBKKE) Buku Matematika Kelas </p>
90
- <h2>FAQs</h2>
91
- <p>Here are some common questions and answers about Buku Matematika Kelas 6.pdf:</p>
92
- <ol>
93
- <li><b>What is Buku Matematika Kelas 6.pdf?</b><br>Buku Matematika Kelas 6.pdf is a book that follows the curriculum of 2013 and has been revised in 2018 by the Ministry of Education and Culture. It is a book that covers various topics and skills in mathematics for grade 6 students in Indonesia.</li>
94
- <li><b>What are the two parts of Buku Matematika Kelas 6.pdf?</b><br>Buku Matematika Kelas 6.pdf consists of two parts: a book for students (Buku Siswa) and a book for teachers (Buku Guru). Both books are available in PDF format.</li>
95
- <li><b>What are some of the benefits of Buku Matematika Kelas 6.pdf?</b><br>Buku Matematika Kelas 6.pdf has many benefits for both students and teachers. Some of them are: it is aligned with the latest curriculum; it is comprehensive and thorough; it is engaging and interactive; it is relevant and contextual; it is accessible and free.</li>
96
- <li><b>How can I download Buku Matematika Kelas 6.pdf?</b><br>You can download Buku Matematika Kelas 6.pdf from several links on the internet. Some of them are provided in this article.</li>
97
- <li><b>How can I use Buku Matematika Kelas 6.pdf?</b><br>You can use Buku Matematika Kelas 6.pdf as your learning or teaching material for grade 6 mathematics. You can open it using any PDF reader software or application. You can also print it if you prefer to have a hard copy.</li>
98
- </ol>
99
- </p> 0a6ba089eb<br />
100
- <br />
101
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Descargar Crack Memories On Tv 4.1.1 32l Crez des albums photo pour votre TV ou votre ordinateur.md DELETED
@@ -1,149 +0,0 @@
1
- <br />
2
- <h1>Descargar Crack Memories On Tv 4.1.1 32l</h1>
3
- <p>Do you want to turn your photos and videos into amazing slideshows that you can watch on your TV or share online? Do you want to do it easily and quickly, without spending a lot of money or time? If so, then you need <strong>Memories On TV</strong>, a powerful and user-friendly software that lets you create stunning slideshows with just a few clicks. And if you want to unlock all the features and benefits of this software, then you need <strong>Crack Memories On Tv 4.1.1 32l</strong>, a simple and effective tool that will activate your copy of Memories On TV for free.</p>
4
- <h2>Descargar Crack Memories On Tv 4.1.1 32l</h2><br /><p><b><b>Download</b> &#9733;&#9733;&#9733; <a href="https://byltly.com/2uKwWy">https://byltly.com/2uKwWy</a></b></p><br /><br />
5
- <p>In this article, we will tell you everything you need to know about Memories On TV and Crack Memories On Tv 4.1.1 32l, including what they are, how they work, how to download and install them, and how to use them to create amazing slideshows that will impress your friends and family.</p>
6
- <h2>What is Memories On TV?</h2>
7
- <p><strong>Memories On TV</strong> is a software program that allows you to create photo/video slideshows that you can watch on your TV or computer, or share online via YouTube, Facebook, or email. You can use it to make slideshows for weddings, birthdays, anniversaries, vacations, or any other occasion that you want to remember and celebrate.</p>
8
- <h3>Features and benefits of Memories On TV</h3>
9
- <p>Some of the features and benefits of Memories On TV are:</p>
10
- <ul>
11
- <li>It supports various image formats, such as JPG, PNG, BMP, GIF, TIFF, etc.</li>
12
- <li>It supports various video formats, such as AVI, MPEG, WMV, MOV, MP4, etc.</li>
13
- <li>It allows you to add captions, titles, credits, and logos to your slideshows.</li>
14
- <li>It allows you to adjust the brightness, contrast, color, and orientation of your photos.</li>
15
- <li>It allows you to crop, rotate, zoom, pan, and flip your photos and videos.</li>
16
- <li>It allows you to apply various effects and filters to your photos and videos.</li>
17
- <li>It allows you to add background music and sound effects to your slideshows.</li>
18
- <li>It allows you to synchronize the music and the images according to the beat or the duration.</li>
19
- <li>It allows you to add transitions between the slides.</li>
20
- <li>It allows you to preview your slideshows before burning them or exporting them.</li>
21
- <li>It allows you to burn your slideshows to DVD or CD with a built-in menu system.</li>
22
- <li>It allows you to export your slideshows as video files that can be played on any device or platform.</li>
23
- <li>It has a simple and intuitive interface that makes it easy for anyone to use.</li>
24
- </ul>
25
- <h3>How to download and install Memories On TV 4.1.1</h3>
26
- <p>To download and install Memories On TV 4.1.1 on your computer, follow these steps:</p>
27
- <ol>
28
- <li>Go to <a href="https://easmaruranmi.wixsite.com/grankestcomria/post/descargar-crack-memories-on-tv-4-1-1">this website</a> and click on the <strong>Download</strong> button.</li>
29
- <li>Save the file <strong>MOTVSetup.exe</strong> on your computer.</li>
30
- <li>Double-click on the file <strong>MOTVSetup.exe</strong> and follow the instructions on the screen.</li>
31
- <li>Select the language of your choice and click on <strong>Next</strong>.</li>
32
- <li>Read the license agreement and click on <strong>I Agree</strong>.</li>
33
- <li>Select the destination folder where you want to install Memories On TV and click on <strong>Next</strong>.</li>
34
- <li>Select the components that you want to install and click on <strong>Next</strong>.</li>
35
- <li>Select the start menu folder where you want to create shortcuts for Memories On TV and click on <strong>Next</strong>.</li>
36
- <li>Select whether you want to create a desktop icon for Memories On TV and click on <strong>Next</strong>.</li>
37
- <li>Click on <strong>Install</strong> to start the installation process.</li>
38
- <li>Wait for the installation process to finish and click on <strong>Finish</strong>.</li>
39
- </ol>
40
- <h2>What is Crack Memories On Tv 4.1.1 32l?</h2>
41
- <p><strong>Crack Memories On Tv 4.1.1 32l</strong> is a small program that can activate your copy of Memories On TV for free. It works by generating a valid serial number that can unlock all the features and benefits of Memories On TV without paying anything.</p>
42
- <h3>Why do you need Crack Memories On Tv 4.1.1 32l?</h3>
43
- <p>You need Crack Memories On Tv 4.1.1 32l if you want to enjoy all the advantages of Memories On TV without spending any money or time. With Crack Memories On Tv 4.1.1 32l, you can:</p>
44
- <ul>
45
- <li>Create unlimited slideshows with no watermark or limitation.</li>
46
- <li>Add as many photos and videos as you want without worrying about the size or quality.</li>
47
- <li>Edit your photos and videos with advanced tools and effects without any restriction.</li>
48
- <li>Burn your slideshows to DVD or CD with high-quality output without any error.</li>
49
- <li>Export your slideshows as video files with any format or resolution without any loss.</li>
50
- <li>Share your slideshows online with anyone without any hassle.</li>
51
- </ul>
52
- <h3>How to download and use Crack Memories On Tv 4.1.1 32l?</h3>
53
- <p>To download and use Crack Memories On Tv 4.1.1 32l on your computer, follow these steps:</p>
54
- <ol>
55
- <li>Go to <a href="https://soundcloud.com/tuoconyniyo/descargar-crack-memories-on-tv-411-32l">this website</a>and click on the <strong>MORE</strong> button.</li>
56
- <li>Select <strong>Dowload file</strong>.</li>
57
- <li>Select a location where you want save it on your computer.</li>
58
- <li>The file name is <code><b>CMTV41132L.zip</b></code>. Extract it using WinRAR or any other program that can unzip files.</li>
59
- <li>You will see two files: <code><b>CMTV41132L.exe</b></code>, which is the crack program;and <code><b>CMTV41132L.txt</b></code>, which contains instructions on how use it.</li>
60
- <li>To use Crack Memories On Tv 4.1.1 32l , first make sure that MemorysOnTV is not running on your computer . Then double-click on CMTV41132L.exe . A window will open asking for a serial number . Copy one of serial numbers from CMTV41132L.txt file . Paste it into window . Click OK . A message will appear saying that MemorysOnTV has been activated successfully . Click OK again . Close window . </li>
61
- <li>You can now run MemorysOnTV normally . You will see that all features are unlocked . You can create , edit , burn , export , share unlimited slide shows with no problem . Enjoy ! </li>
62
- </ol>
63
- <h2>Tips and tricks for using Memories On TV and Crack Memories On Tv 4.1.1 32l</h2>
64
- <p>Now that you have downloaded and installed Memories On TV and Crack Memories On Tv 4.1.1 32l, you can start creating amazing slideshows with your photos and videos. Here are some tips and tricks that will help you make the most out of these tools:</p>
65
- <h3>How to create stunning slideshows with Memories On TV</h3>
66
- <p>To create a slideshow with Memories On TV, follow these steps:</p>
67
- <p>Download Crack Memories On Tv 4.1.1 32l Full Version<br />
68
- How to Crack Memories On Tv 4.1.1 32l for Free<br />
69
- Memories On Tv 4.1.1 32l Crack Serial Keygen<br />
70
- Memories On Tv 4.1.1 32l Crack Patch Download<br />
71
- Memories On Tv 4.1.1 32l Crack License Key Activation<br />
72
- Memories On Tv 4.1.1 32l Crack Torrent Magnet Link<br />
73
- Memories On Tv 4.1.1 32l Crack No Survey No Password<br />
74
- Memories On Tv 4.1.1 32l Crack Online Generator<br />
75
- Memories On Tv 4.1.1 32l Crack Working Tested<br />
76
- Memories On Tv 4.1.1 32l Crack Latest Update<br />
77
- Descargar Gratis Crack Memories On Tv 4.1.1 32l Español<br />
78
- Descargar Crack Memories On Tv 4.1.1 32l Mega Mediafire<br />
79
- Descargar Crack Memories On Tv 4.1.1 32l Sin Virus<br />
80
- Descargar Crack Memories On Tv 4.1.1 32l Facil Rapido<br />
81
- Descargar Crack Memories On Tv 4.1.1 32l Windows Mac Linux<br />
82
- Descargar Crack Memories On Tv 4.1.1 32l Portable USB<br />
83
- Descargar Crack Memories On Tv 4.1.1 32l Ultima Version<br />
84
- Descargar Crack Memories On Tv 4.1.1 32l Premium Pro<br />
85
- Descargar Crack Memories On Tv 4.1.1 32l Mod Apk Android<br />
86
- Descargar Crack Memories On Tv 4.1.1 32l Full HD Quality<br />
87
- Download Free Crack Memories On Tv 4.1.1 32l English<br />
88
- Download Crack Memories On Tv 4.1.1 32l Google Drive Dropbox<br />
89
- Download Crack Memories On Tv 4.1.1 32l Without Virus<br />
90
- Download Crack Memories On Tv 4.1.1 32l Easy Fast<br />
91
- Download Crack Memories On Tv 4.1.1 32l Windows Mac Linux<br />
92
- Download Crack Memories On Tv 4.1.1 32l Portable USB<br />
93
- Download Crack Memories On Tv 4.1.1 32l Latest Version<br />
94
- Download Crack Memories On Tv 4.1.1 32l Premium Pro<br />
95
- Download Crack Memories On Tv 4.1.1 32l Mod Apk Android<br />
96
- Download Crack Memories On Tv 4.1.1 32l Full HD Quality<br />
97
- Télécharger Gratuitement Crack Memories On Tv 4.1.1 French <br />
98
- Télécharger Crack Memories On Tv</p>
99
- <ol>
100
- <li>Launch Memories On TV and click on <strong>New Project</strong>.</li>
101
- <li>Select the folder where your photos and videos are stored and click on <strong>OK</strong>.</li>
102
- <li>Drag and drop your photos and videos to the timeline at the bottom of the screen.</li>
103
- <li>Arrange them in the order that you want them to appear in your slideshow.</li>
104
- <li>To add captions, titles, credits, or logos to your slides, click on the <strong>Text</strong> button on the toolbar and select the type of text that you want to add.</li>
105
- <li>To adjust the brightness, contrast, color, or orientation of your photos, click on the <strong>Edit</strong> button on the toolbar and select the option that you want to apply.</li>
106
- <li>To crop, rotate, zoom, pan, or flip your photos and videos, click on the <strong>Transform</strong> button on the toolbar and select the option that you want to apply.</li>
107
- <li>To apply effects and filters to your photos and videos, click on the <strong>Effects</strong> button on the toolbar and select the effect or filter that you want to apply.</li>
108
- <li>To add background music and sound effects to your slideshow, click on the <strong>Audio</strong> button on the toolbar and select the option that you want to add.</li>
109
- <li>To synchronize the music and the images according to the beat or the duration, click on the <strong>Sync</strong> button on the toolbar and select the option that you want to use.</li>
110
- <li>To add transitions between the slides, click on the <strong>Transitions</strong> button on the toolbar and select the transition that you want to use.</li>
111
- <li>To preview your slideshow before burning it or exporting it, click on the <strong>Preview</strong> button on the toolbar and watch your slideshow on the screen.</li>
112
- </ol>
113
- <h3>How to add effects, music, and transitions to your slideshows</h3>
114
- <p>One of the best features of Memories On TV is that it allows you to add various effects, music, and transitions to your slideshows. Here are some tips on how to use them effectively:</p>
115
- <ul>
116
- <li>To make your slideshows more dynamic and interesting, use different effects and filters for different photos and videos. For example, you can use a sepia effect for old photos, a black-and-white effect for vintage photos, a blur effect for dreamy photos, etc.</li>
117
- <li>To make your slideshows more emotional and expressive, use appropriate background music and sound effects for different themes and moods. For example, you can use a romantic music for a wedding slideshow, a cheerful music for a birthday slideshow, a sad music for a memorial slideshow, etc.</li>
118
- <li>To make your slideshows more smooth and seamless, use transitions that match the style and pace of your slideshow. For example, you can use a fade transition for a slow-paced slideshow, a wipe transition for a fast-paced slideshow, a dissolve transition for a soft slideshow, etc.</li>
119
- </ul>
120
- <h3>How to burn your slideshows to DVD or share them online</h3>
121
- <p>After creating your slideshow with Memories On TV , you can burn it to DVD or CD with a built-in menu system , or export it as video file that can be played on any device or platform . You can also share it online via YouTube , Facebook , or email . Here are some tips on how to do it :</p>
122
- <ul>
123
- <li>To burn your slideshow to DVD or CD , click on the <strong>Burn</strong> button on the toolbar . Select whether you want to burn it as DVD-Video , VCD , SVCD , or MiniDVD . Select whether you want to use NTSC or PAL format . Select whether you want to use 4:3 or 16:9 aspect ratio . Select whether you want to use stereo or surround sound . Select whether you want to create a menu system for your DVD or CD . Click on <strong>Burn</strong> again . Insert a blank DVD or CD into your drive . Wait for the burning process to finish . </li>
124
- <li>To export your slideshow as video file , click on the <strong>Export</strong> button on the toolbar . Select whether you want to export it as AVI , MPEG , WMV , MOV , MP4 , FLV , or MKV file . Select whether you want to use high quality or low quality output . Select whether you want to use custom settings or presets for your video file . Click on <strong>Export</strong> again . Choose a location where you want save it on your computer . Wait for exporting process finish . </li>
125
- <li>To share your slideshow online , click on <strong>Publish Online</strong> button toolbar . Select whether you want share it via YouTube , Facebook , or email . Enter required information such as account details , title , description , tags , etc . Click on <strong>Publish Online</strong> again . Wait for uploading process finish . You will get link that you can copy paste share with anyone . </li>
126
- </ul>
127
- <h2>Conclusion</h2>
128
- <p>In conclusion , Memories On TV is a great software program that allows you create photo/video slideshows that you can watch on your TV or computer , or share online via YouTube , Facebook , or email . You can use it make slideshows for weddings , birthdays , anniversaries , vacations , or any other occasion that you want remember celebrate . And with Crack Memories On Tv 4.1.1 32l , you can activate your copy of Memories On TV for free unlock all features benefits of this software without paying anything . </p>
129
- <h3>Summary of main points </h3>
130
- <p>In this article , we have told everything need know about Memories On TV Crack Memories On Tv 4.1.1 32l , including what they are how they work how download install them how use them create amazing slideshows that will impress friends family . We have also given some tips tricks that will help make most out these tools . </p>
131
- <h3>Call action </h3>
132
- <p>If want try Memories On TV Crack Memories On Tv 4.1.1 32l yourself see how easy fun it is create stunning slideshows with photos videos , then don't wait any longer download them now from links provided in this article follow instructions given in this article start creating slideshows today ! You won't regret it ! </p>
133
- <h2>Frequently Asked Questions (FAQs)</h2>
134
- <p>Here are some frequently asked questions (FAQs) about Memories On TV and Crack Memories On Tv 4.1.1 32l:</p>
135
- <ol>
136
- <li><b>Is Memories On TV safe to download and install?</b><br>
137
- Yes, Memories On TV is safe to download and install. It does not contain any viruses, malware, spyware, or adware. It does not harm your computer or compromise your privacy.</li>
138
- <li><b>Is Crack Memories On Tv 4.1.1 32l safe to download and use?</b><br>
139
- Yes, Crack Memories On Tv 4.1.1 32l is safe to download and use. It does not contain any viruses, malware, spyware, or adware. It does not harm your computer or compromise your privacy. It only activates your copy of Memories On TV for free.</li>
140
- <li><b>Does Crack Memories On Tv 4.1.1 32l work with any version of Memories On TV?</b><br>
141
- No, Crack Memories On Tv 4.1.1 32l only works with Memories On TV 4.1.1. If you have a different version of Memories On TV, you need to find a different crack program that matches your version.</li>
142
- <li><b>Does Crack Memories On Tv 4.1.1 32l work with any operating system?</b><br>
143
- Yes, Crack Memories On Tv 4.1.1 32l works with any operating system that supports Memories On TV, such as Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, etc.</li>
144
- <li><b>Does Crack Memories On Tv 4.1.1 32l affect the quality or performance of Memories On TV?</b><br>
145
- No, Crack Memories On Tv 4.1.1 32l does not affect the quality or performance of Memories On TV. It only unlocks all the features and benefits of Memories On TV without paying anything.</li>
146
- </ol>
147
- </p> 0a6ba089eb<br />
148
- <br />
149
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Memoriesontv 4 Crack Serial 11 with Keygen [Working Tested].md DELETED
@@ -1,85 +0,0 @@
1
-
2
- <h1>Memoriesontv 4 Crack Serial 11: What You Need to Know</h1>
3
- <p>If you are looking for a way to create stunning slideshows from your photos and videos, you might have heard of Memoriesontv. This software allows you to add effects, transitions, music, captions, and more to your slideshows and burn them to DVD or share them online. However, Memoriesontv is not a free software, and you need to pay for a license key to use it without limitations. That's why some people resort to using crack serials to unlock the full features of Memoriesontv without paying. In this article, we will explain what Memoriesontv 4 Crack Serial 11 is, how to get it, what are the risks and drawbacks of using it, and what are some alternatives to using it.</p>
4
- <h2>Introduction</h2>
5
- <h3>What is Memoriesontv?</h3>
6
- <p>Memoriesontv is a software developed by CodeJam Pte Ltd that allows you to create professional-looking slideshows from your photos and videos. You can import your media files from your computer, camera, scanner, or other devices, and organize them into albums. You can then customize your slideshows by adding effects, transitions, music, captions, clipart, and more. You can also edit your photos and videos with basic tools such as crop, rotate, resize, color correction, red-eye removal, etc. Once you are done with your slideshow creation, you can preview it on your computer screen or TV. You can also burn it to DVD or CD with a built-in disc menu creator. Alternatively, you can export it as a video file or upload it to YouTube or Facebook directly from the software.</p>
7
- <h2>Memoriesontv 4 Crack Serial 11</h2><br /><p><b><b>DOWNLOAD</b> ::: <a href="https://byltly.com/2uKxHU">https://byltly.com/2uKxHU</a></b></p><br /><br />
8
- <h3>What is a crack serial?</h3>
9
- <p>A crack serial is a code that is used to bypass the registration or activation process of a software. It is usually generated by hackers or crackers who modify the original software code to remove or disable the protection mechanisms that prevent unauthorized use. A crack serial can be entered into the software interface or applied as a patch file that modifies the software executable file. By using a crack serial, you can access the full features of a software without paying for a license key.</p>
10
- <h3>Why do people use crack serials for Memoriesontv?</h3>
11
- <p>Some people use crack serials for Memoriesontv because they want to save money and avoid paying for a license key. The official price of Memoriesontv is $59.99 for the Pro edition and $39.99 for the Standard edition. Some people might find this price too expensive or unreasonable for a slideshow software. They might also think that they will only use the software once or twice and not need it anymore. Therefore, they look for ways to get the software for free or at a lower cost.</p>
12
- <p>Memoriesontv 4 full version with keygen download<br />
13
- How to activate Memoriesontv 4 using serial number<br />
14
- Memoriesontv 4 cracked software free download<br />
15
- Memoriesontv 4 license key generator online<br />
16
- Memoriesontv 4 patch for windows 11<br />
17
- Memoriesontv 4 registration code and email<br />
18
- Memoriesontv 4 torrent download with crack<br />
19
- Memoriesontv 4 activation key 2023<br />
20
- Memoriesontv 4 serial key list<br />
21
- Memoriesontv 4 crack only download<br />
22
- Memoriesontv 4 product key finder<br />
23
- Memoriesontv 4 crack for mac os<br />
24
- Memoriesontv 4 keygen.exe download<br />
25
- Memoriesontv 4 crack file download<br />
26
- Memoriesontv 4 serial number verification<br />
27
- Memoriesontv 4 crack reddit<br />
28
- Memoriesontv 4 keygen online<br />
29
- Memoriesontv 4 crack no survey<br />
30
- Memoriesontv 4 serial key free download<br />
31
- Memoriesontv 4 crack latest version<br />
32
- Memoriesontv 4 activation code generator<br />
33
- Memoriesontv 4 crack zip file download<br />
34
- Memoriesontv 4 serial number generator<br />
35
- Memoriesontv 4 crack for windows 10<br />
36
- Memoriesontv 4 keygen download free<br />
37
- Memoriesontv 4 crack and keygen download<br />
38
- Memoriesontv 4 serial number and activation code<br />
39
- Memoriesontv 4 crack for pc download<br />
40
- Memoriesontv 4 keygen and patch download<br />
41
- Memoriesontv 4 crack without serial number<br />
42
- Memoriesontv 4 serial key generator online<br />
43
- Memoriesontv 4 crack direct download link<br />
44
- Memoriesontv 4 serial number free download<br />
45
- Memoriesontv 4 crack for linux<br />
46
- Memoriesontv 4 keygen and crack download<br />
47
- Memoriesontv 4 serial number and email address<br />
48
- Memoriesontv 4 crack for android download<br />
49
- Memoriesontv 4 keygen and serial number download<br />
50
- Memoriesontv 4 crack with serial key download<br />
51
- Memoriesontv 4 activation code free download<br />
52
- Memoriesontv 4 crack rar file download<br />
53
- Memoriesontv 4 serial number and license key<br />
54
- Memoriesontv 4 crack for ios download<br />
55
- Memoriesontv 4 keygen and activation code download<br />
56
- Memoriesontv 4 crack with license key download<br />
57
- Memoriesontv 4 activation code and email address</p>
58
- <h2>How to get Memoriesontv 4 Crack Serial 11</h2>
59
- <h3>Download from official website</h3>
60
- <p>The first option to get Memoriesontv 4 Crack Serial 11 is to download it from the official website of CodeJam Pte Ltd. The website offers a free trial version of Memoriesontv that you can download and install on your computer. The trial version has some limitations such as watermarking your slideshows, limiting the number of photos per album, and restricting some features such as DVD burning and video exporting. However, you can unlock these limitations by entering a crack serial that you can find on various websites on the internet. Some examples of websites that provide crack serials for Memoriesontv are Smart Serials, KeyGenNinja, and SerialBay. These websites claim to offer valid and working crack serials for various versions of Memoriesontv, including version 4.</p>
61
- <h3>Download from third-party websites</h3>
62
- <p>The second option to get Memoriesontv 4 Crack Serial 11 is to download it from third-party websites that host cracked versions of the software. These websites offer direct downloads of Memoriesontv that have been modified or patched by hackers or crackers to bypass the registration or activation process. You do not need to enter any crack serial or apply any patch file when you install these cracked versions of Memoriesontv. Some examples of websites that offer cracked versions of Memoriesontv are Softpedia, Softonic, and FileHippo. These websites claim to offer safe and virus-free downloads of Memoriesontv that have been tested by their editors or users.</p>
63
- <h3>Download from keygen or generator</h3>
64
- <p>The third option to get Memoriesontv 4 Crack Serial 11 is to download it from a keygen or generator program that can create crack serials for various software products. A keygen or generator is a software tool that can generate random codes that match the algorithm or pattern of a specific software license key. You can download these programs from various websites on the internet and run them on your computer. Some examples of websites that offer keygen or generator programs for Memoriesontv are YouTube, Praxis Benefits, and SoundCloud. These websites claim to offer working and verified keygen or generator programs for Memoriesontv that can produce valid and unlimited crack serials.</p>
65
- <h2>Risks and drawbacks of using Memoriesontv 4 Crack Serial 11</h2>
66
- <h3>Legal issues</h3>
67
- <p>One of the main risks of using Memoriesontv 4 Crack Serial 11 is that it is illegal and unethical. By using a crack serial, you are violating the terms and conditions of CodeJam Pte Ltd and infringing their intellectual property rights. You are also depriving them of their rightful revenue and profit from their software product. This could result in legal consequences such as fines, lawsuits, or even criminal charges if you are caught using or distributing crack serials for Memoriesontv.</p>
68
- <h3>Malware and viruses</h3>
69
- <p>Another risk of using Memoriesontv 4 Crack Serial 11 is that it could expose your computer to malware and viruses. Since crack serials are generated by hackers or crackers who have malicious intentions, they could embed harmful code into the crack serial itself or into the software executable file that they modify or patch. This could compromise your computer security and privacy by installing spyware, ransomware, trojans, worms, keyloggers with an internet connection. The main drawback is that they might require an account or subscription to use some features or remove watermarks.</p>
70
- <h2>Conclusion</h2>
71
- <p>Memoriesontv 4 Crack Serial 11 is a code that can unlock the full features of Memoriesontv, a software that allows you to create slideshows from your photos and videos. However, using a crack serial is illegal, unethical, risky, and not recommended. You could face legal issues, malware and viruses, performance and quality issues, and other problems by using a crack serial. Therefore, it is better to use alternatives to using Memoriesontv 4 Crack Serial 11, such as buying a licensed version of Memoriesontv, using a free or open-source slideshow software, or using an online slideshow maker. These alternatives are safer, legal, and more reliable than using a crack serial.</p>
72
- <h2>FAQs</h2>
73
- <h3>What is the difference between Memoriesontv Pro and Standard editions?</h3>
74
- <p>The Pro edition of Memoriesontv has more features than the Standard edition, such as video support, clipart library, disc menu creation, video export options, and more. The Pro edition also costs more than the Standard edition ($59.99 vs $39.99).</p>
75
- <h3>How can I get technical support or customer service from CodeJam Pte Ltd?</h3>
76
- <p>You can get technical support or customer service from CodeJam Pte Ltd by visiting their website and clicking on the Support tab. You can also email them at [email protected] or call them at +65 6220 8837.</p>
77
- <h3>What are some examples of free or open-source slideshow software?</h3>
78
- <p>Some examples of free or open-source slideshow software are LibreOffice Impress, OpenOffice Impress, Google Slides, and Zoho Show. These software allow you to create and edit slideshows from your photos and videos with various effects, transitions, music, captions, and more.</p>
79
- <h3>What are some examples of online slideshow makers?</h3>
80
- <p>Some examples of online slideshow makers are Canva, Prezi, Powtoon, and Visme. These online tools allow you to choose from hundreds of templates, themes, and styles for your slideshows. You can also add effects, transitions, music, captions, and more to your slideshows with drag-and-drop features.</p>
81
- <h3>What are some advantages and disadvantages of using Memoriesontv?</h3>
82
- <p>Some advantages of using Memoriesontv are that it allows you to create professional-looking slideshows from your photos and videos with various effects, transitions, music, captions, and more. It also allows you to burn your slideshows to DVD or CD with a built-in disc menu creator or export them as video files or upload them to YouTube or Facebook directly from the software. Some disadvantages of using Memoriesontv are that it is not a free software and requires a license key to use it without limitations. It also might not have as many templates or options as some other slideshow software or online tools.</p>
83
- </p> 0a6ba089eb<br />
84
- <br />
85
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Descargar Extreme Car Driving Simulator APK Un juego de conduccin realista y divertido.md DELETED
@@ -1,122 +0,0 @@
1
-
2
- <h1>Extreme Car Driving Simulator: A Realistic and Fun Driving Game for Android</h1>
3
- <p>Do you love driving cars? Do you want to experience the thrill of driving in a realistic and open world environment? If yes, then you should try Extreme Car Driving Simulator, a popular and exciting driving game for Android devices. In this game, you can drive various cars with different features and performance, and enjoy the realistic physics and car damage effects. You can also explore a large and detailed city with traffic, ramps, obstacles, and more. Whether you want to drive fast, drift, or crash your car, Extreme Car Driving Simulator will give you the freedom and fun you are looking for.</p>
4
- <h2>extreme car driving simulator descargar apk</h2><br /><p><b><b>Download Zip</b> &#127379; <a href="https://urlin.us/2uSScA">https://urlin.us/2uSScA</a></b></p><br /><br />
5
- <h2>What is Extreme Car Driving Simulator?</h2>
6
- <p>Extreme Car Driving Simulator is a driving game developed by AxesInMotion Racing, a studio that specializes in creating realistic and immersive car games. The game was released in 2015 and has since gained over 100 million downloads on Google Play Store. It is one of the best-rated driving games on the platform, with an average rating of 4.3 out of 5 stars.</p>
7
- <h3>Features of Extreme Car Driving Simulator</h3>
8
- <p>Extreme Car Driving Simulator has many features that make it stand out from other driving games. Here are some of them:</p>
9
- <h4>Drive with traffic</h4>
10
- <p>You can choose to drive with traffic or without traffic in the game. Driving with traffic will make the game more challenging and realistic, as you will have to avoid collisions and follow the traffic rules. You can also honk your horn, flash your lights, and use your indicators to communicate with other drivers.</p>
11
- <h4>Full real HUD</h4>
12
- <p>The game has a full real HUD that shows you important information such as your speed, gear, revs, and fuel level. You can also see the status of your ABS, TC, and ESP systems, which you can turn on or off depending on your preference.</p>
13
- <h4>ABS, TC and ESP simulation</h4>
14
- <p>The game simulates the anti-lock braking system (ABS), traction control (TC), and electronic stability program (ESP) of real cars. These systems help you control your car better and prevent skidding, spinning, or losing control. You can also turn them off if you want to test your driving skills without any assistance.</p>
15
- <h4>Explore a detailed open world environment</h4>
16
- <p>The game has a large and detailed open world environment that you can explore freely. You can drive around the city, which has various buildings, roads, bridges, tunnels, and landmarks. You can also find ramps, loops, obstacles, and other elements that you can use to perform stunts and tricks. The game also has different weather conditions and time of day effects that add to the realism and variety of the game.</p>
17
- <p>extreme car driving simulator 2023 descargar apk<br />
18
- extreme car driving simulator mod apk descargar gratis<br />
19
- extreme car driving simulator hack apk descargar<br />
20
- extreme car driving simulator 2 descargar apk<br />
21
- extreme car driving simulator 3d descargar apk<br />
22
- extreme car driving simulator apk descargar ultima version<br />
23
- extreme car driving simulator apk descargar para pc<br />
24
- extreme car driving simulator apk descargar android<br />
25
- extreme car driving simulator apk descargar uptodown<br />
26
- extreme car driving simulator apk descargar mega<br />
27
- extreme car driving simulator pro apk descargar<br />
28
- extreme car driving simulator full apk descargar<br />
29
- extreme car driving simulator premium apk descargar<br />
30
- extreme car driving simulator unlimited money apk descargar<br />
31
- extreme car driving simulator offline apk descargar<br />
32
- extreme car driving simulator online apk descargar<br />
33
- extreme car driving simulator real physics engine apk descargar<br />
34
- extreme car driving simulator free roam apk descargar<br />
35
- extreme car driving simulator open world apk descargar<br />
36
- extreme car driving simulator city drive apk descargar<br />
37
- extreme car driving simulator drift mode apk descargar<br />
38
- extreme car driving simulator racing mode apk descargar<br />
39
- extreme car driving simulator traffic mode apk descargar<br />
40
- extreme car driving simulator police chase mode apk descargar<br />
41
- extreme car driving simulator zombie mode apk descargar<br />
42
- extreme car driving simulator multiplayer mode apk descargar<br />
43
- extreme car driving simulator custom cars apk descargar<br />
44
- extreme car driving simulator new cars apk descargar<br />
45
- extreme car driving simulator best cars apk descargar<br />
46
- extreme car driving simulator all cars unlocked apk descargar<br />
47
- extreme car driving simulator realistic graphics apk descargar<br />
48
- extreme car driving simulator hd graphics apk descargar<br />
49
- extreme car driving simulator low graphics apk descargar<br />
50
- extreme car driving simulator high graphics mod apk descargar<br />
51
- extreme car driving simulator no ads apk descargar<br />
52
- extreme car driving simulator no internet apk descargar<br />
53
- extreme car driving simulator no root apk descargar<br />
54
- extreme car driving simulator latest version apk descargar<br />
55
- extreme car driving simulator old version apk descargar<br />
56
- extreme car driving simulator beta version apk descargar<br />
57
- como descargar e instalar extreme car driving simulator apk <br />
58
- como jugar a extreme car driving simulator sin descargar el apk <br />
59
- donde puedo descargar el juego de extreme car driving simulator en formato apk <br />
60
- que es el juego de extreme car driving simulator y como se descarga el archivo apk <br />
61
- como actualizar el juego de extreme car driving simulator desde el archivo apk <br />
62
- como solucionar los problemas de instalacion del juego de extreme car driving simulator con el archivo apk <br />
63
- como conseguir monedas infinitas en el juego de extreme car driving simulator con el archivo modificado de la aplicacion (modded/hacked)</p>
64
- <h4>Realistic car damage</h4>
65
- <p>The game has a realistic car damage system that shows you the effects of your driving actions. You can see your car get dented, scratched, or smashed depending on how hard you hit something. You can also see parts of your car fall off or fly away after a collision. The game also has a repair button that you can use to fix your car instantly if you don't want to see it damaged.</p>
66
- <h4>Accurate physics</h4>
67
- <p>The game has an accurate physics engine that makes the driving experience more realistic and fun. You can feel the weight, speed, and inertia of your car as you drive it. You can also see how your car reacts to different surfaces, slopes, curves, and jumps. The game also <h4>Control your car with different options</h4>
68
- <p>The game gives you different options to control your car. You can choose between tilt, buttons, or steering wheel modes. You can also adjust the sensitivity and position of the controls according to your liking. You can also change the camera view from inside or outside the car, or use the free camera mode to see your car from any angle.</p>
69
- <h3>How to download and install Extreme Car Driving Simulator APK?</h3>
70
- <p>If you want to play Extreme Car Driving Simulator on your Android device, you will need to download and install the APK file of the game. APK stands for Android Package Kit, and it is a file format that contains all the necessary files and data for an Android application. Here are the requirements and steps to download and install Extreme Car Driving Simulator APK:</p>
71
- <h4>Requirements for Extreme Car Driving Simulator APK</h4>
72
- <ul>
73
- <li>You will need an Android device that runs on Android 4.1 or higher.</li>
74
- <li>You will need at least 100 MB of free storage space on your device.</li>
75
- <li>You will need a stable internet connection to download the APK file.</li>
76
- <li>You will need to enable the installation of apps from unknown sources on your device. To do this, go to Settings > Security > Unknown Sources and toggle it on.</li>
77
- </ul>
78
- <h4>Steps to download and install Extreme Car Driving Simulator APK</h4>
79
- <ol>
80
- <li>Go to a trusted and reliable website that offers the APK file of Extreme Car Driving Simulator. You can use this link as an example.</li>
81
- <li>Click on the download button and wait for the APK file to be downloaded on your device.</li>
82
- <li>Once the download is complete, locate the APK file in your device's file manager and tap on it.</li>
83
- <li>Follow the instructions on the screen to install the game on your device.</li>
84
- <li>After the installation is done, you can launch the game from your app drawer or home screen and enjoy driving.</li>
85
- </ol>
86
- <h3>Why should you play Extreme Car Driving Simulator?</h3>
87
- <p>Extreme Car Driving Simulator is a game that will appeal to anyone who loves driving cars and wants to have a realistic and fun experience. Here are some of the pros and cons of playing this game:</p>
88
- <h4>Pros of Extreme Car Driving Simulator</h4>
89
- <ul>
90
- <li>The game has high-quality graphics and sound effects that create a immersive atmosphere.</li>
91
- <li>The game has a variety of cars with different features and performance that you can unlock and customize.</li>
92
- <li>The game has a large and detailed open world environment that you can explore freely and find many surprises.</li>
93
- <li>The game has a realistic physics and car damage system that makes the driving experience more challenging and fun.</li>
94
- <li>The game has different modes and options that you can choose from depending on your mood and preference.</li>
95
- </ul>
96
- <h4>Cons of Extreme Car Driving Simulator</h4>
97
- <ul>
98
- <li>The game may have some bugs and glitches that affect the gameplay and performance.</li>
99
- <li>The game may have some ads and in-app purchases that may interrupt or limit your enjoyment.</li>
100
- <li>The game may require a lot of battery power and storage space on your device.</li>
101
- </ul>
102
- <h2>Conclusion</h2>
103
- <p>Extreme Car Driving Simulator is a driving game that will give you a realistic and fun driving experience on your Android device. You can drive various cars with different features and performance, and enjoy the realistic physics and car damage effects. You can also explore a large and detailed city with traffic, ramps, obstacles, and more. Whether you want to drive fast, drift, or crash your car, Extreme Car Driving Simulator will give you the freedom and fun you are looking for. You can download and install the APK file of the game from a trusted website and start driving today.</p>
104
- <p>If you have any questions or feedback about Extreme Car Driving Simulator, feel free to ask them in the comments section below. Here are some FAQs that may help you:</p>
105
- <h3>Frequently Asked Questions</h3>
106
- <ol>
107
- <li><b>Is Extreme Car Driving Simulator free?</b></li>
108
- <p>Yes, Extreme Car Driving Simulator is free to download and play. However, it may have some ads and in-app purchases that may affect your gameplay or enjoyment.</p>
109
- <li><b>Is Extreme Car Driving Simulator safe?</b></li>
110
- <p>Yes, Extreme Car Driving Simulator is safe to play as long as you download it from a trusted and reliable website. However, you should always be careful when downloading any app from unknown sources, as they may contain viruses or malware that may harm your device or data.</p>
111
- <li><b>Is Extreme Car Driving Simulator offline?</b></li>
112
- <p>No, Extreme Car Driving Simulator requires an internet connection to run properly. You will need a stable internet connection to download the APK file, update the game, and access some of the features and content of the game.</p>
113
- <li><b>How can I unlock more cars in Extreme Car Driving Simulator?</b></li>
114
- <p>You can unlock more cars in Extreme Car Driving Simulator by earning coins and gems in the game. You can earn coins and gems by completing missions, driving with traffic, performing stunts, and watching ads. You can also buy coins and gems with real money if you want to unlock cars faster.</p>
115
- <li><b>How can I customize my car in Extreme Car Driving Simulator?</b></li>
116
- <p>You can customize your car in Extreme Car Driving Simulator by going to the garage menu and selecting the car you want to modify. You can change the color, wheels, spoilers, and stickers of your car. You can also upgrade the engine, brakes, suspension, and turbo of your car to improve its performance.</p>
117
- <li><b>How can I contact the developer of Extreme Car Driving Simulator?</b></li>
118
- <p>You can contact the developer of Extreme Car Driving Simulator by sending an email to [email protected]. You can also visit their website or follow them on Facebook, Twitter, or Instagram for more information and updates about the game.</p>
119
- </ol>
120
- <p>I hope you enjoyed reading this article and learned something new about Extreme Car Driving Simulator. If you did, please share it with your friends and family who might be interested in this game. Thank you for your time and attention.</p> 197e85843d<br />
121
- <br />
122
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Descarga Soul Knight Mod APK con gemas y monedas ilimitadas y todo desbloqueado.md DELETED
@@ -1,137 +0,0 @@
1
-
2
- <h1>Soul Knight Mod Apk Todo Desbloqueado: Cómo Descargar y Jugar el Juego de Calabozos Más Divertido</h1>
3
- <p>¿Te gustan los juegos de acción, aventura y exploración? ¿Te apasionan los juegos de estilo roguelike con gráficos pixelados y una gran variedad de armas y personajes? ¿Quieres disfrutar de una experiencia de juego sin límites ni restricciones? Entonces, te encantará <strong>Soul Knight Mod Apk Todo Desbloqueado</strong>, una versión modificada del juego original que te permite acceder a todas las características y beneficios del juego desde el principio.</p>
4
- <h2>soul knight mod apk todo desbloqueado</h2><br /><p><b><b>Download</b> &gt; <a href="https://jinyurl.com/2uNOix">https://jinyurl.com/2uNOix</a></b></p><br /><br />
5
- <p>En este artículo, te contaremos todo lo que necesitas saber sobre Soul Knight, el juego de calabozos más divertido y adictivo que puedes jugar en tu dispositivo Android o iOS. Te explicaremos qué es Soul Knight, qué es Soul Knight Mod Apk Todo Desbloqueado, cómo descargarlo e instalarlo, cómo jugarlo y algunos consejos y trucos para mejorar tu rendimiento. Además, al final del artículo, responderemos a algunas preguntas frecuentes que pueden surgirte sobre el juego.</p>
6
- <h2>¿Qué es Soul Knight?</h2>
7
- <p>Soul Knight es un juego de rol y acción desarrollado por ChillyRoom Inc. que se lanzó en febrero de 2017 para Android y iOS. El juego está inspirado en el juego Enter The Gungeon (un juego de disparos con elementos roguelike producido por Dodge Roll y Devolver Digital).</p>
8
- <h3>Características del juego</h3>
9
- <p>Soul Knight tiene las siguientes características:</p>
10
- <ul>
11
- <li>Más de 20 héroes únicos con habilidades especiales. Puedes elegir entre un pícaro, un arquero elfo, un mago y muchos más.</li>
12
- <li>Más de 400 armas diferentes que puedes usar para eliminar a los monstruos que te atacan. Hay pist <p>olas, escopetas, rifles, espadas, lanzallamas y mucho más.</li>
13
- <li>Un sistema de generación aleatoria de calabozos que hace que cada partida sea diferente y única. Nunca sabrás qué te espera en la próxima habitación.</li>
14
- <li>Un modo multijugador cooperativo local que te permite jugar con hasta 3 amigos en la misma pantalla. Puedes compartir las armas y los objetos con tus compañeros y ayudaros mutuamente.</li>
15
- <li>Un estilo gráfico retro y colorido que recuerda a los juegos clásicos de 8 bits y 16 bits. El juego tiene un aspecto nostálgico y encantador.</li>
16
- <li>Un humor irreverente y divertido que se refleja en los diálogos, los personajes y las situaciones. El juego no se toma muy en serio a sí mismo y te hará reír con sus ocurrencias.</li>
17
- </ul>
18
- <h3>Historia del juego</h3>
19
- <p>La historia de Soul Knight es muy simple y no tiene mucha importancia para el desarrollo del juego. Según el propio juego, "en un tiempo de espadas y pistolas, la piedra mágica que mantiene el equilibrio del mundo es robada por alienígenas de alta tecnología. El mundo pende de un hilo. Todo depende de ti recuperar la piedra mágica...".</p>
20
- <p>Así pues, tu objetivo es entrar en los calabozos infestados de monstruos y alienígenas, encontrar la piedra mágica y devolverla a su lugar. Por el camino, tendrás que enfrentarte a todo tipo de enemigos y jefes, recolectar armas y objetos, y sobrevivir a las trampas y los obstáculos.</p>
21
- <p>soul knight mod apk gemas infinitas<br />
22
- soul knight mod apk monedas ilimitadas<br />
23
- soul knight mod apk personajes desbloqueados<br />
24
- soul knight mod apk armas desbloqueadas<br />
25
- soul knight mod apk ultima version<br />
26
- soul knight mod apk descargar gratis<br />
27
- soul knight mod apk sin anuncios<br />
28
- soul knight mod apk energia infinita<br />
29
- soul knight mod apk modo dios<br />
30
- soul knight mod apk mega<br />
31
- soul knight mod apk mediafıre<br />
32
- soul knight mod apk android 1<br />
33
- soul knight mod apk hackeado<br />
34
- soul knight mod apk 2023<br />
35
- soul knight mod apk 5.2.4<br />
36
- soul knight mod apk skins desbloqueadas<br />
37
- soul knight mod apk plantas infinitas<br />
38
- soul knight mod apk mascotas desbloqueadas<br />
39
- soul knight mod apk actualizado<br />
40
- soul knight mod apk online<br />
41
- soul knight mod apk offline<br />
42
- soul knight mod apk no root<br />
43
- soul knight mod apk facil de instalar<br />
44
- soul knight mod apk español<br />
45
- soul knight mod apk full<br />
46
- soul knight mod apk premium<br />
47
- soul knight mod apk vip<br />
48
- soul knight mod apk pro<br />
49
- soul knight mod apk oro infinito<br />
50
- soul knight mod apk vida infinita<br />
51
- soul knight mod apk balas infinitas<br />
52
- soul knight mod apk daño aumentado<br />
53
- soul knight mod apk velocidad aumentada<br />
54
- soul knight mod apk inmortalidad<br />
55
- soul knight mod apk invencible<br />
56
- soul knight mod apk todo gratis<br />
57
- soul knight mod apk todo ilimitado<br />
58
- soul knight mod apk todo hackeado<br />
59
- soul knight mod apk todo facil<br />
60
- soul knight mod apk todo rapido</p>
61
- <h2>¿Qué es Soul Knight Mod Apk Todo Desbloqueado?</h2>
62
- <p>Soul Knight Mod Apk Todo Desbloqueado es una versión modificada del juego original que te permite disfrutar de todas las ventajas y beneficios del juego desde el principio. Con este mod apk, no tendrás que gastar dinero real ni esperar a desbloquear los contenidos del juego. Podrás acceder a todo lo siguiente:</p>
63
- <h3>Ventajas de usar el mod apk</h3>
64
- <ul>
65
- <li>Todos los héroes desbloqueados. Podrás elegir entre más de 20 personajes diferentes con habilidades únicas y personalizarlos a tu gusto.</li>
66
- <li>Todas las armas desbloqueadas. Podrás usar cualquiera de las más de 400 armas disponibles en el juego sin restricciones ni limitaciones.</li>
67
- <li>Todos los objetos desbloqueados. Podrás equiparte con todo tipo de objetos que te ayudarán en tu aventura, como pociones, granadas, anillos, mascotas y más.</li>
68
- <li>Todos los niveles desbloqueados. Podrás explorar todos los calabozos del juego sin tener que completarlos en orden ni cumplir con ciertos requisitos.</li>
69
- <li>Todos los modos de juego desbloqueados. Podrás jugar en el modo normal, el modo difícil, el modo jefe o el modo infinito según tu preferencia.</li>
70
- <li>Dinero ilimitado. Podrás comprar todo lo que quieras en las tiendas del juego sin preocuparte por el precio ni por tu saldo.</li>
71
- <li>Energía ilimitada. Podrás usar tu habilidad especial tantas veces como quieras sin tener que esperar a que se recargue.</li>
72
- <li>Sin anuncios. Podrás jugar sin interrupciones ni molestias por parte de la publicidad.</li>
73
- </ul>
74
- <h3>Cómo descargar e instalar el mod apk</h3>
75
- <p>Para descargar e instalar el mod apk de Soul Knight Todo Desbloqueado, solo tienes que seguir estos pasos:</p>
76
- <ol>
77
- <li>Descarga el archivo apk desde este <a href="">enlace</a>. El archivo tiene un tamaño de unos 100 MB y es seguro y confiable.</li>
78
- <li>Abre el archivo apk desde tu gestor de archivos o desde la carpeta de descargas de tu dispositivo.</li>
79
- <li>Acepta los permisos e inicia la instalación. El proceso puede tardar unos segundos o minutos dependiendo de tu velocidad de conexión y de tu dispositivo.</li>
80
- <li>Una vez instalado el juego, abrelo y disfruta de Soul Knight Mod Apk Todo Desbloqueado.</li y un jefe final que tendrás que derrotar para avanzar al siguiente. Por ejemplo, hay calabozos de bosque, de hielo, de lava, de desierto y de espacio.</p>
81
- <p>Para explorar los calabozos, solo tienes que usar el joystick virtual de la parte inferior izquierda para moverte y el botón de disparo de la parte inferior derecha para atacar. También puedes usar el botón de habilidad especial de la parte superior derecha para activar el poder único de tu héroe. Además, puedes cambiar de arma pulsando en el icono del arma en la parte superior izquierda o recoger nuevas armas que encuentres por el camino.</p>
82
- <p>Cada calabozo tiene varias habitaciones que tendrás que atravesar hasta llegar al jefe. Algunas habitaciones están vacías, otras tienen enemigos que tendrás que eliminar, y otras tienen objetos o personajes que te pueden ayudar o perjudicar. Por ejemplo, puedes encontrar tiendas donde comprar armas u objetos, estatuas que te dan bendiciones o maldiciones, cofres que contienen tesoros o trampas, o personajes secundarios que te ofrecen misiones o consejos.</p>
83
- <h3>Usa las armas y los objetos</h3>
84
- <p>Una de las características más divertidas y variadas de Soul Knight es la gran cantidad de armas y objetos que puedes usar en tu aventura. Hay más de 400 armas diferentes que puedes encontrar, comprar o fusionar, cada una con su propio tipo de disparo, daño, cadencia, alcance y efecto especial. Por ejemplo, hay armas que disparan balas normales, otras que disparan rayos láser, otras que disparan misiles teledirigidos, otras que disparan bolas de fuego, y así sucesivamente.</p>
85
- <p>Además, hay muchos objetos que puedes equiparte o usar para mejorar tu rendimiento o tu supervivencia. Por ejemplo, hay pociones que te curan o te dan energía, granadas que explotan y dañan a los enemigos cercanos, anillos que te dan bonificaciones permanentes o temporales, mascotas que te acompañan y te ayudan en el combate, y mucho más.</p>
86
- <p>Para usar las armas y los objetos, solo tienes que pulsar en el icono correspondiente en la pantalla. Puedes llevar hasta dos armas al mismo tiempo y cambiar entre ellas cuando quieras. También puedes llevar hasta tres objetos diferentes y usarlos cuando los necesites. Además, puedes fusionar o mejorar tus armas usando las forjas o los talleres que encuentres en los calabozos.</p>
87
- <h3>Combate a los enemigos y los jefes</h3>
88
- <p>El principal desafío de Soul Knight es enfrentarte a los numerosos enemigos y jefes que te atacarán sin piedad en los calabozos. Hay más de 200 tipos de enemigos diferentes, cada uno con su propio aspecto, comportamiento y habilidad. Por ejemplo, hay esqueletos que te lanzan huesos, zombis que te muerden, arañas que te lanzan telarañas, robots que te disparan láseres, alienígenas que se teletransportan y muchos más.</p>
89
- <p>Para combatir a los enemigos, tendrás que usar tus armas, tus objetos y tu habilidad especial con inteligencia y estrategia. Tendrás que tener en cuenta el tipo de arma que usas, el tipo de enemigo al que te enfrentas y el entorno en el que te encuentras. También tendrás que esquivar los ataques enemigos moviéndote por la pantalla y aprovechando los obstáculos o las coberturas.</p>
90
- <p>Al final de cada calabozo, tendrás que enfrentarte a un jefe final que será mucho más fuerte y resistente que los demás enemigos. Cada jefe tiene su propio diseño , su patrón de ataque y su debilidad. Por ejemplo, hay un jefe que es una planta gigante que te lanza espinas, otro que es un dragón de hielo que te congela, otro que es un caballero oscuro que te persigue con su espada y muchos más.</p>
91
- <p>Para derrotar a los jefes, tendrás que usar tus mejores armas, tus objetos más útiles y tu habilidad especial más poderosa. Tendrás que estar atento a sus movimientos y a sus señales para anticiparte a sus ataques y evitarlos. También tendrás que buscar sus puntos débiles y aprovecharlos para infligirles más daño.</p>
92
- <h2>Consejos y trucos para jugar Soul Knight Mod Apk Todo Desbloqueado</h2>
93
- <p>Soul Knight Mod Apk Todo Desbloqueado es un juego muy divertido y adictivo, pero también puede ser muy desafiante y frustrante si no sabes cómo jugarlo bien. Por eso, te vamos a dar algunos consejos y trucos para que puedas mejorar tu rendimiento y disfrutar más del juego. Estos son algunos de ellos:</p>
94
- <h3>Aprovecha tu habilidad especial</h3>
95
- <p>Cada héroe tiene una habilidad especial que puede marcar la diferencia en el combate. Estas habilidades pueden ser ofensivas, defensivas o de apoyo, y tienen un tiempo de recarga que varía según el héroe. Por ejemplo, el caballero puede usar dos armas al mismo tiempo durante unos segundos, el asesino puede volverse invisible y lanzar cuchillos, el alquimista puede lanzar bombas venenosas y curarse a sí mismo, y así sucesivamente.</p>
96
- <p>Para aprovechar tu habilidad especial, tienes que saber cuándo y cómo usarla. No la desperdicies en situaciones innecesarias o fáciles, sino que guárdala para los momentos más difíciles o decisivos. Por ejemplo, puedes usarla para escapar de una situación peligrosa, para acabar con un grupo de enemigos o para enfrentarte a un jefe. También tienes que tener en cuenta el tipo de habilidad que tienes y cómo se complementa con tu arma y tu estilo de juego.</p>
97
- <h3>Gestiona tu energía y tu salud</h3>
98
- <p>Otro aspecto importante de Soul Knight es la gestión de tu energía y tu salud. La energía es el recurso que necesitas para usar tus armas, mientras que la salud es el indicador de tu vida. Ambos se pueden ver en la parte superior izquierda de la pantalla.</p>
99
- <p>Para gestionar tu energía y tu salud, tienes que tener en cuenta lo siguiente:</p>
100
- <ul>
101
- <li>No malgastes tu energía disparando sin sentido o usando armas que consumen mucha energía. Intenta disparar solo cuando tengas un objetivo claro y usa armas que se adapten a tu nivel de energía.</li>
102
- <li>Recupera tu energía usando las pociones azules que encuentres por el camino o comprando en las tiendas. También puedes recargar tu energía usando las fuentes o los generadores que hay en algunos calabozos.</li>
103
- <li>No arriesgues tu salud recibiendo daño innecesario o exponiéndote al fuego enemigo. Intenta esquivar los ataques enemigos moviéndote por la pantalla y aprovechando los obstáculos o las coberturas.</li>
104
- <li>Recupera tu salud usando las pociones rojas que encuentres por el camino o comprando en las tiendas. También puedes curarte usando algunas habilidades especiales o algunos objetos como el anillo de vida o la mascota vampiro.</li>
105
- </ul>
106
- <h3>Busca las estatuas y los cofres</h3>
107
- <p>En los calabozos de Soul Knight hay muchos secretos y sorpresas que puedes descubrir si exploras bien cada habitación. Algunos de estos secretos son las estatuas y los cofres, que te pueden dar beneficios o perjuicios según lo que hagas con ellos.</p>
108
- <p>Las estatuas son objetos que representan a diferentes personajes o criaturas del juego. Puedes interactuar con ellas usando una moneda dorada o una moneda plateada. Si usas una moneda dorada, la estatua te dará una bendición, que es un efecto positivo temporal o permanente. Por ejemplo, puede aumentar tu daño, tu velocidad, tu resist encia o tu suerte. Si usas una moneda plateada, la estatua te dará una maldición, que es un efecto negativo temporal o permanente. Por ejemplo, puede reducir tu daño, tu velocidad, tu resistencia o tu suerte. Por lo tanto, ten cuidado con lo que usas y con lo que eliges.</p>
109
- <p>Los cofres son objetos que contienen tesoros o trampas. Puedes abrirlos usando una llave o rompiéndolos con tu arma. Si abres un cofre con una llave, obtendrás un tesoro, que puede ser una arma, un objeto o una moneda. Si rompes un cofre con tu arma, puede que obtengas un tesoro o una trampa, que puede ser un enemigo, una explosión o una maldición. Por lo tanto, piensa bien si vale la pena arriesgarte o no.</p>
110
- <h3>Fusiona y mejora tus armas</h3>
111
- <p>Otro consejo para jugar a Soul Knight Mod Apk Todo Desbloqueado es fusionar y mejorar tus armas para hacerlas más poderosas y eficaces. Para fusionar tus armas, tienes que usar las forjas que hay en algunos calabozos. Las forjas te permiten combinar dos armas del mismo tipo para obtener una nueva arma con mejores características y efectos. Por ejemplo, puedes fusionar dos pistolas para obtener una pistola doble, o dos escopetas para obtener una escopeta de doble cañón.</p>
112
- <p>Para mejorar tus armas, tienes que usar los talleres que hay en algunos calabozos. Los talleres te permiten aumentar el nivel de tus armas usando monedas doradas. Al aumentar el nivel de tus armas, aumentas su daño, su cadencia, su alcance y su efecto especial. Por ejemplo, puedes mejorar una pistola normal para que dispare más rápido, más lejos y con más fuerza.</p>
113
- <h2>Conclusión</h2>
114
- <p>Soul Knight Mod Apk Todo Desbloqueado es un juego de rol y acción muy divertido y adictivo que te hará pasar horas de diversión y entretenimiento. Con este mod apk, podrás disfrutar de todas las ventajas y beneficios del juego sin tener que gastar dinero ni esperar a desbloquear los contenidos. Podrás acceder a todos los héroes, todas las armas, todos los objetos, todos los niveles y todos los modos de juego desde el principio.</p>
115
- <p>Además, podrás explorar los calabozos generados aleatoriamente, usar las armas y los objetos más variados y originales, combatir a los enemigos y los jefes más desafiantes y divertidos, y jugar con tus amigos en el modo multijugador cooperativo local. Todo ello con un estilo gráfico retro y colorido y un humor irreverente y divertido.</p>
116
- <p>Si te gustan los juegos de estilo roguelike con gráficos pixelados y una gran variedad de armas y personajes, no dudes en descargar Soul Knight Mod Apk Todo Desbloqueado y empezar a jugar ya. Te aseguramos que no te arrepentirás.</p>
117
- <h2>Preguntas frecuentes</h2>
118
- <p>A continuación, responderemos a algunas preguntas frecuentes que pueden surgirte sobre Soul Knight Mod Apk Todo Desbloqueado:</p>
119
- <h4>¿Es seguro descargar e instalar Soul Knight Mod Apk Todo Desbloqueado?</h4>
120
- <p>Sí, es seguro descargar e instalar Soul Knight Mod Apk Todo Desbloqueado desde el enlace que te hemos proporcionado en este artículo. El archivo apk es seguro y confiable, y no contiene virus ni malware. Además, no necesitas rootear ni jailbreakear tu dispositivo para instalarlo.</p>
121
- <h4>¿Es compatible Soul Knight Mod Apk Todo Desbloqueado con mi dispositivo?</h4>
122
- <p>Soul Knight Mod Apk Todo Desbloqueado es compatible con la mayoría de los dispositivos Android e iOS que tengan al menos la versión 4.1 o superior del sistema operativo. Sin embargo, puede haber algunos dispositivos que no sean compatibles o que presenten problemas de rendimiento o estabilidad. En ese caso, te recomendamos que pruebes el juego original o que contactes con el desarrollador para solucionar el problema.</p>
123
- <h4>¿Puedo jugar online con Soul Knight Mod Apk Todo Desbloqueado?</h4>
124
- <p>No, no puedes jugar online con Soul Knight Mod Apk Todo Desbloqueado con otros jugadores que no estén en tu misma red local. El juego solo tiene un modo multijugador cooperativo local que te permite jugar con hasta 3 amigos en la misma pantalla. Para jugar con tus amigos, solo tienes que conectaros a la misma red wifi y pulsar en el icono de multijugador en el menú principal. Luego, podréis elegir vuestros héroes y entrar en los calabozos juntos.</p>
125
- <h4>¿Puedo actualizar Soul Knight Mod Apk Todo Desbloqueado?</h4>
126
- <p>Sí, puedes actualizar Soul Knight Mod Apk Todo Desbloqueado cuando haya una nueva versión disponible. Para actualizar el juego, solo tienes que descargar el nuevo archivo apk desde el mismo enlace que te hemos proporcionado en este artículo y seguir los mismos pasos que para instalarlo. No hace falta que desinstales la versión anterior, solo sobrescríbela con la nueva. Así, podrás disfrutar de las últimas novedades y mejoras del juego.</p>
127
- <h4>¿Qué otros juegos similares a Soul Knight Mod Apk Todo Desbloqueado me recomiendas?</h4>
128
- <p>Si te gusta Soul Knight Mod Apk Todo Desbloqueado, quizás también te gusten otros juegos similares que tienen un estilo de juego parecido o que están inspirados en el mismo género. Algunos de estos juegos son:</p>
129
- <ul>
130
- <li>Enter The Gungeon: el juego que inspiró a Soul Knight, un juego de disparos con elementos roguelike donde tienes que explorar un calabozo lleno de armas y balas vivientes.</li>
131
- <li>Archero: un juego de acción y aventura donde controlas a un arquero que tiene que avanzar por diferentes niveles llenos de enemigos y obstáculos.</li>
132
- <li>Dead Cells: un juego de plataformas y acción con elementos roguelike donde controlas a un guerrero inmortal que tiene que escapar de una prisión maldita.</li>
133
- <li>The Binding of Isaac: un juego de acción y aventura con elementos roguelike donde controlas a un niño que tiene que huir de su madre loca y explorar un sótano lleno de monstruos y secretos.</li>
134
- <li>Rogue Legacy: un juego de plataformas y acción con elementos roguelike donde controlas a un héroe que tiene que explorar un castillo generacional lleno de peligros y sorpresas.</li>
135
- </ul></p> 401be4b1e0<br />
136
- <br />
137
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download and Play Special Forces Group 2 with God Mod APK and Get Ready for Intense Shooter Action.md DELETED
@@ -1,25 +0,0 @@
1
- <br />
2
- <h1>Special Forces Group 2: A Thrilling FPS Game for Android</h1>
3
- <p>If you are a fan of first-person shooter (FPS) games, you might have heard of Special Forces Group 2, a popular game for Android devices. This game is developed by ForgeGames, a company that specializes in creating realistic and immersive shooting games. Special Forces Group 2 is one of their best creations, as it offers a variety of game modes, weapons, maps, and characters to choose from. You can play this game solo or with your friends online or offline, and enjoy the adrenaline rush of shooting your enemies in different scenarios.</p>
4
- <h2>Features of Special Forces Group 2</h2>
5
- <p>Special Forces Group 2 has many features that make it stand out from other FPS games. Here are some of them:</p>
6
- <h2>special forces group 2 god mod apk download</h2><br /><p><b><b>DOWNLOAD</b> &#10038; <a href="https://jinyurl.com/2uNTYZ">https://jinyurl.com/2uNTYZ</a></b></p><br /><br />
7
- <ul>
8
- <li><b>Singleplayer and multiplayer modes</b>: You can play this game alone with bots or with other players online or via WiFi router. You can also create your own room and invite your friends to join you.</li>
9
- <li><b>9 game modes to choose from</b>: You can choose from different game modes, such as Classic, Resurrection, Capture the Flag, Zombie Mode, BombMode, Knives, Deathmatch, ArmsRace, and Sniper. Each mode has its own rules and objectives, so you will never get bored.</li>
10
- <li><b>Weapons skins and characters customization</b>: You can customize your weapons and characters with different skins. There are 134 weapons skins and 8 characters per team to choose from. You can also change the color of your crosshair, blood, and chat.</li>
11
- <li><b>30+ maps to explore</b>: You can play on different maps, such as desert, city, snow, forest, and more. Each map has its own layout, obstacles, and hiding spots. You can also use grenades, bulletproof vests, and other items to help you in your missions.</li>
12
- </ul>
13
- <h2>How to Download and Install Special Forces Group 2 on Android</h2>
14
- <p>If you want to download and install Special Forces Group 2 on your Android device, you can follow these simple steps:</p>
15
- <ol>
16
- <li><b>Step 1</b>: Go to the official website or a trusted source that provides the APK file and the OBB file for Special Forces Group 2. For example, you can go to [APKdone](^1^), a website that offers free and safe downloads for Android games.</li>
17
- <li><b>Step 2</b>: Download the APK file and the OBB file for Special Forces Group 2. The APK file is about 40 MB in size, while the OBB file is about 300 MB in size. Make sure you have enough storage space on your device before downloading.</li>
18
- <li><b>Step 3 , you should be careful of the compatibility issues and the risks of using God Mod APK, as mentioned above.</li>
19
- <li><b>Q4: Can I play online with God Mod APK?</b></li>
20
- <li>A4: You can play online with God Mod APK, but you may face some problems, such as lag, disconnects, or bans. You may also encounter other players who are using God Mod APK or other cheats, which may ruin your gaming experience.</li>
21
- <li><b>Q5: What are some alternatives to God Mod APK?</b></li>
22
- <li>A5: Some alternatives to God Mod APK are normal APK, modded OBB, or hacked data. These are different ways of modifying the game files to get some advantages in the game. However, they also have their own drawbacks and risks, so you should use them with caution.</li>
23
- </ul></p> 197e85843d<br />
24
- <br />
25
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download emulator black ps2 android with these simple steps.md DELETED
@@ -1,224 +0,0 @@
1
- <br />
2
- <h1>How to Download and Install Emulator Black PS2 Android</h1>
3
- <p>If you are a fan of PlayStation 2 games and want to play them on your Android device, you might be interested in Emulator Black PS2 Android. This is a powerful and reliable PS2 emulator that can run most of the PS2 games smoothly and with high-quality graphics. In this article, we will show you what Emulator Black PS2 Android is, why you need it, how to download and install it, how to configure and optimize it, and how to solve some common issues. Let's get started!</p>
4
- <h2>What is Emulator Black PS2 Android?</h2>
5
- <p>Emulator Black PS2 Android is a new PS2 emulator that was launched in late 2021 by a developer named Tahlreth. It is based on the PCSX2 emulator, which is a popular and well-established emulator for PC. Tahlreth got the permission from the PCSX2 developers to use their code and licensed it under the LGPL license. Unlike some other shady PS2 emulators on Android, such as DamonPS2, Emulator Black PS2 Android does not steal code or charge money for its features.</p>
6
- <h2>download emulator black ps2 android</h2><br /><p><b><b>Download Zip</b> &#9193; <a href="https://jinyurl.com/2uNKk9">https://jinyurl.com/2uNKk9</a></b></p><br /><br />
7
- <p>Emulator Black PS2 Android has many features that make it one of the best PS2 emulators on Android. Some of these features are:</p>
8
- <ul>
9
- <li>It supports both OpenGL and Vulkan graphics renderers, which can improve the graphics quality and performance of the games.</li>
10
- <li>It allows you to adjust various settings, such as resolution, framerate, aspect ratio, anti-aliasing, texture filtering, audio latency, controller layout, and more.</li>
11
- <li>It supports save states, which let you save and load your game progress at any point.</li>
12
- <li>It supports widescreen patches and upscaling, which can enhance the appearance of the games on modern devices.</li>
13
- <li>It supports touchscreen and Bluetooth controller input, which gives you more options to control the games.</li>
14
- <li>It supports loading games from your device storage or external sources, such as Google Drive or Dropbox.</li>
15
- </ul>
16
- <h2>Why do you need Emulator Black PS2 Android?</h2>
17
- <p>Emulator Black PS2 Android is a great way to enjoy your favorite PS2 games on your Android device. There are many benefits of using this emulator, such as:</p>
18
- <ul>
19
- <li>You can play hundreds of PS2 games that are not available on any other platform.</li>
20
- <li>You can play PS2 games anytime and anywhere without needing a console or a TV.</li>
21
- <li>You can play PS2 games with better graphics and sound than the original hardware.</li>
22
- <li>You can play PS2 games with more convenience and customization than the original hardware.</li>
23
- </ul>
24
- <p>However, playing PS2 games on Android is not an easy task. There are many challenges that you might face when using a PS2 emulator on Android, such as:</p>
25
- <ul>
26
- <li>You need a powerful device that can handle the high demands of PS2 emulation. The developer of Emulator Black PS2 Android recommends a Snapdragon 845-level processor or better, with four large CPU cores (Cortex-A75 or higher) and an Adreno GPU.</li>
27
- <li>You need enough storage space to store the emulator app and the PS2 game files. The emulator app is about 30 MB, while the PS2 game files can range from 500 MB to 4 GB each.</li>
28
- <li>You need to obtain the PS2 game files legally and ethically. You can either rip them from your own PS2 discs using a PC and a DVD drive, or download them from legitimate sources that have the permission of the game publishers. You should not download or share pirated or illegal PS2 game files.</li>
29
- <li>You need to tweak and test the emulator settings for each game to find the best balance between quality and performance. Not all games will run perfectly on the emulator, and some might require specific settings or patches to work properly.</li>
30
- </ul>
31
- <p>Fortunately, Emulator Black PS2 Android is designed to overcome these challenges and provide you with the best PS2 emulation experience on Android. It has a user-friendly interface, a fast and stable performance, a high compatibility rate, and a helpful community. It also has regular updates and bug fixes that improve its functionality and features.</p>
32
- <h2>How to download and install Emulator Black PS2 Android?</h2>
33
- <p>Downloading and installing Emulator Black PS2 Android is very easy and straightforward. You have two options to get the emulator app on your device:</p>
34
- <ol>
35
- <li>Download it from the official website. You can visit the website of Emulator Black PS2 Android at <a href="">https://emulatorblackps2android.com</a> and click on the download button. This will download the latest version of the emulator app as an APK file. You can then install it by tapping on the file and following the instructions.</li>
36
- <li>Download it from the Google Play Store. You can also find Emulator Black PS2 Android on the Google Play Store by searching for its name or scanning this QR code: <img src="" alt="QR code for Emulator Black PS2 Android">. This will take you to the app page, where you can tap on the install button. This will download and install the emulator app automatically.</li>
37
- </ol>
38
- <p>After you have installed the emulator app, you need to grant it some permissions to access your device storage, camera, microphone, and location. These permissions are necessary for the emulator to function properly and load your PS2 games. You can grant these permissions by going to your device settings, finding Emulator Black PS2 Android in the list of apps, and toggling on the permissions.</p>
39
- <p>download aethersx2 ps2 emulator for android<br />
40
- download deus ex play ps2 emulator for android<br />
41
- download pro playstation ps2 emulator for android<br />
42
- download golden ps2 emulator for android<br />
43
- download gold ps2 emulator for android<br />
44
- download new ps2 emulator for android<br />
45
- download free pro ps2 emulator for android<br />
46
- download free hd ps2 emulator for android<br />
47
- download pro ppss2 emulator for android<br />
48
- download playstation 2 emulator for android apk<br />
49
- download best ps2 emulator for android 2023<br />
50
- download damonps2 pro ps2 emulator for android<br />
51
- download pcsx2 emulator for android phone<br />
52
- download playstation 2 games for android emulator<br />
53
- download black ps2 game iso for android<br />
54
- how to play black ps2 on android with aethersx2<br />
55
- how to install deus ex play ps2 emulator on android<br />
56
- how to configure pro playstation ps2 emulator on android<br />
57
- how to use golden ps2 emulator on android device<br />
58
- how to run gold ps2 emulator on android tablet<br />
59
- how to set up new ps2 emulator on android smartphone<br />
60
- how to optimize free pro ps2 emulator on android performance<br />
61
- how to improve free hd ps2 emulator on android graphics<br />
62
- how to fix pro ppss2 emulator on android errors<br />
63
- how to download playstation 2 bios for android emulator<br />
64
- best settings for aethersx2 ps2 emulator on android<br />
65
- best games for deus ex play ps2 emulator on android<br />
66
- best features of pro playstation ps2 emulator on android<br />
67
- best alternatives to golden ps2 emulator on android<br />
68
- best tips and tricks for gold ps2 emulator on android<br />
69
- new updates for new ps2 emulator on android 2023<br />
70
- new cheats for free pro ps2 emulator on android 2023<br />
71
- new mods for free hd ps2 emulator on android 2023<br />
72
- new roms for pro ppss2 emulator on android 2023<br />
73
- new version of playstation 2 emulator for android apk 2023<br />
74
- compare aethersx2 vs damonps2 pro ps2 emulator for android<br />
75
- compare deus ex play vs pcsx2 ps2 emulator for android phone<br />
76
- compare pro playstation vs playstation 2 games for android emulator<br />
77
- compare golden vs gold ps2 emulator for android 2023<br />
78
- compare new vs free pro ps2 emulator for android performance<br />
79
- compare free hd vs pro ppss2 emulator for android graphics<br />
80
- compare playstation 2 bios vs playstation 2 iso for android emulator<br />
81
- review of aethersx2 ps2 emulator for android 2023<br />
82
- review of deus ex play ps2 emulator for android 2023<br />
83
- review of pro playstation ps2 emulator for android 2023</p>
84
- <h2>How to load PS2 games on Emulator Black PS2 Android?</h2>
85
- <p>Once you have installed the emulator app and granted it the permissions, you can start loading your PS2 games on it. You have two options to load your PS2 games:</p>
86
- <ol>
87
- <li>Load them from your device storage. If you have stored your PS2 game files on your device storage, such as your internal memory or SD card, you can load them directly from there. You just need to launch the emulator app, tap on the "Load Game" button, and browse to the folder where you have saved your PS2 game files. You can then select the game file that you want to play and tap on it.</li>
88
- <li>Load them from external sources. If you have stored your PS2 game files on external sources, such as Google Drive or Dropbox, you can load them from there as well. You just need to launch the emulator app, tap on the "Load Game" button, and tap on the "Cloud" icon. This will open a menu where you can choose which cloud service you want to use. You can then sign in with your account and access your PS2 game files. You can then select the game file that you want to play and tap on it.</li>
89
- </ol>
90
- <p>Note that Emulator Black PS2 Android supports both ISO and CSO formats for PS2 game files. ISO is the standard format that preserves all the data of the original disc, while CSO is a compressed format that reduces the file size but may lose some quality or functionality. You can choose whichever format suits your preference and storage space.</p>
91
- <h2>How to configure and optimize Emulator Black PS2 Android?</h2>
92
- <p>Emulator Black PS2 Android has a lot of settings and options that you can adjust to configure and optimize the emulator according to your device and game. You can access these settings by tapping on the "Settings" button on the main menu of the emulator app. Here are some of the main settings and options that you can tweak:</p>
93
- <h3>Graphics settings</h3>
94
- <p>The graphics settings allow you to change the graphics renderer, resolution, framerate, aspect ratio, anti-aliasing, texture filtering, and other options that affect the visual quality and performance of the games. You can find these settings under the "Graphics" tab in the settings menu. Here are some of the graphics settings and what they do:</p>
95
- <table>
96
- <tr>
97
- <th>Setting</th>
98
- <th>Description</th>
99
- </tr>
100
- <tr>
101
- <td>Renderer</td>
102
- <td>This lets you choose between OpenGL and Vulkan as the graphics renderer for the emulator. OpenGL is more compatible and stable, but Vulkan is more powerful and efficient. You can try both and see which one works better for your device and game.</td>
103
- </tr>
104
- <tr>
105
- <td>Resolution</td>
106
- <td>This lets you choose the resolution of the game output. The higher the resolution, the sharper and clearer the game will look, but it will also consume more resources and battery. You can choose from several presets, such as native (the original resolution of the PS2), 2x native, 3x native, 4x native, or custom (where you can enter your own resolution).</td>
107
- </tr>
108
- <tr>
109
- <td>Framerate</td>
110
- <td>This lets you choose the framerate of the game output. The higher the framerate, the smoother and more fluid the game will run, but it will also consume more resources and battery. You can choose from several presets, such as 30 FPS (the standard framerate of most PS2 games), 60 FPS (the ideal framerate for smooth gameplay), or custom (where you can enter your own framerate).</td>
111
- </tr>
112
- <tr>
113
- <td>Aspect ratio</td>
114
- <td>This lets you choose the aspect ratio of the game output. The aspect ratio is the ratio between the width and height of the screen. You can choose from several presets, such as 4:3 (the original aspect ratio of most PS2 games), 16:9 (the widescreen aspect ratio of modern devices), or custom (where you can enter your own aspect ratio).</td>
115
- </tr>
116
- <tr>
117
- <td>Anti-aliasing</td>
118
- <td>This lets you choose whether to enable or disable anti-aliasing for the game output. Anti-aliasing is a technique that smooths out the jagged edges of the graphics, making them look more realistic and less pixelated. However, it also consumes more resources and battery. You can choose from several levels of anti-aliasing, such as none, 2x, 4x, or 8x.</td>
119
- </tr>
120
- <tr>
121
- <td>Texture filtering</td>
122
- <td>This lets you choose whether to enable or disable texture filtering for the game output. Texture filtering is a technique that improves the quality and sharpness of the textures, making them look more detailed and less blurry. However, it also consumes more resources and battery. You can choose from several levels of texture filtering, such as none, bilinear, trilinear, or anisotropic.</td>
123
- </tr>
124
- <tr>
125
- <td>Other options</td>
126
- <td>There are also some other options that you can toggle on or off in the graphics settings, such as:</td>
127
- </tr> <ul>
128
- <li>Widescreen patch: This applies a patch to the game that makes it compatible with the widescreen aspect ratio, without stretching or cropping the image.</li>
129
- <li>Upscaling: This enhances the resolution and quality of the game graphics, making them look more crisp and smooth.</li>
130
- <li>Frame skipping: This skips some frames of the game output, making it run faster but less smoothly.</li>
131
- <li>Vsync: This synchronizes the framerate of the game output with the refresh rate of your device screen, preventing screen tearing and stuttering.</li>
132
- </ul>
133
- <h3>Sound settings</h3>
134
- <p>The sound settings allow you to change the sound latency, volume, and quality of the games. You can find these settings under the "Sound" tab in the settings menu. Here are some of the sound settings and what they do:</p>
135
- <table>
136
- <tr>
137
- <th>Setting</th>
138
- <th>Description</th>
139
- </tr>
140
- <tr>
141
- <td>Latency</td>
142
- <td>This lets you choose the latency of the sound output. The latency is the delay between the sound being generated by the emulator and being played by your device. The lower the latency, the more responsive and accurate the sound will be, but it will also consume more resources and battery. You can choose from several presets, such as low, medium, high, or custom (where you can enter your own latency).</td>
143
- </tr>
144
- <tr>
145
- <td>Volume</td>
146
- <td>This lets you choose the volume of the sound output. You can adjust the volume by using a slider or entering a value between 0 and 100.</td>
147
- </tr>
148
- <tr>
149
- <td>Quality</td>
150
- <td>This lets you choose the quality of the sound output. The quality is the fidelity and clarity of the sound, which depends on factors such as sampling rate, bit depth, and channels. The higher the quality, the better and richer the sound will be, but it will also consume more resources and battery. You can choose from several presets, such as low, medium, high, or custom (where you can enter your own quality).</td>
151
- </tr>
152
- </table>
153
- <h3>Controls settings</h3>
154
- <p>The controls settings allow you to change the input method, layout, sensitivity, and vibration of the games. You can find these settings under the "Controls" tab in the settings menu. Here are some of the controls settings and what they do:</p>
155
- <table>
156
- <tr>
157
- <th>Setting</th>
158
- <th>Description</th>
159
- </tr>
160
- <tr>
161
- <td>Input method</td>
162
- <td>This lets you choose between touchscreen and Bluetooth controller as your input method for the games. If you choose touchscreen, you will see a virtual controller on your device screen that mimics the PS2 controller buttons and sticks. If you choose Bluetooth controller, you will need to pair your device with a compatible Bluetooth controller that has enough buttons and sticks to map to the PS2 controller.</td>
163
- </tr>
164
- <tr>
165
- <td>Layout</td>
166
- <td>This lets you customize the layout of the virtual controller on your device screen. You can drag and drop each button and stick to any position on your screen. You can also resize and rotate them by using pinch and twist gestures. You can save your layout as a preset and load it for different games.</td>
167
- </tr>
168
- <tr>
169
- <td>Sensitivity</td>
170
- <td>This lets you adjust the sensitivity of each stick on your virtual or Bluetooth controller. The sensitivity is how fast and responsive the stick is to your input. You can adjust the sensitivity by using a slider or entering a value between 0 and 100.</td>
171
- </tr>
172
- <tr>
173
- <td>Vibration</td>
174
- <td>This lets you enable or disable vibration for your virtual or Bluetooth controller. Vibration is a feature that makes your controller rumble or shake when certain events happen in the game, such as shooting, hitting, or exploding. However, it also consumes more resources and battery.</td>
175
- </tr> <h3>Performance settings</h3>
176
- <p>The performance settings allow you to change the CPU and GPU emulation modes, speed hacks, and power saving options of the games. You can find these settings under the "Performance" tab in the settings menu. Here are some of the performance settings and what they do:</p>
177
- <table>
178
- <tr>
179
- <th>Setting</th>
180
- <th>Description</th>
181
- </tr>
182
- <tr>
183
- <td>CPU emulation mode</td>
184
- <td>This lets you choose between interpreter and recompiler as the CPU emulation mode for the games. The CPU emulation mode is how the emulator translates the PS2 CPU instructions to your device CPU instructions. Interpreter is more accurate and compatible, but slower and more resource-intensive. Recompiler is faster and more efficient, but less accurate and compatible. You can try both and see which one works better for your device and game.</td>
185
- </tr>
186
- <tr>
187
- <td>GPU emulation mode</td>
188
- <td>This lets you choose between software and hardware as the GPU emulation mode for the games. The GPU emulation mode is how the emulator renders the PS2 graphics to your device screen. Software is more accurate and compatible, but slower and more resource-intensive. Hardware is faster and more efficient, but less accurate and compatible. You can try both and see which one works better for your device and game.</td>
189
- </tr>
190
- <tr>
191
- <td>Speed hacks</td>
192
- <td>This lets you enable or disable some speed hacks for the games. Speed hacks are some tricks that the emulator uses to boost the speed of the games, such as skipping some calculations, frames, or effects. However, they can also cause some glitches, errors, or crashes in some games. You can choose from several presets, such as none, safe, balanced, or aggressive.</td>
193
- </tr>
194
- <tr>
195
- <td>Power saving</td>
196
- <td>This lets you enable or disable some power saving options for the games. Power saving options are some features that the emulator uses to reduce the battery consumption of your device, such as lowering the brightness, sound, or resolution of the games. However, they can also affect the quality and performance of the games. You can choose from several presets, such as none, low, medium, or high.</td>
197
- </tr>
198
- </table>
199
- <h2>Conclusion</h2>
200
- <p>Emulator Black PS2 Android is a fantastic PS2 emulator that can let you play your favorite PS2 games on your Android device with ease and enjoyment. It has many features and settings that you can customize and optimize to suit your preferences and needs. It also has a high compatibility rate and a supportive community that can help you with any issues or questions. If you are looking for a way to relive your PS2 memories or discover new PS2 gems on your Android device, you should definitely give Emulator Black PS2 Android a try!</p>
201
- <h3>Frequently Asked Questions</h3>
202
- <p>Here are some of the frequently asked questions about Emulator Black PS2 Android:</p>
203
- <ol>
204
- <li><b>Is Emulator Black PS2 Android free?</b></li>
205
- <p>Yes, Emulator Black PS2 Android is completely free to download and use. It does not have any ads or in-app purchases. However, if you want to support the developer and the project, you can donate via PayPal or Patreon.</p>
206
- <li><b>Is Emulator Black PS2 Android legal?</b></li>
207
- <p>Yes, Emulator Black PS2 Android is legal as long as you use it with your own legally obtained PS2 game files. You should not download or share any pirated or illegal PS2 game files.</p>
208
- <li><b>Is Emulator Black PS2 Android safe?</b></li>
209
- <p>Yes, Emulator Black PS2 Android is safe as long as you download it from its official website or the Google Play Store. It does not contain any malware or viruses that can harm your device or data.</p>
210
- <li><b>What are the minimum requirements for Emulator Black PS2 Android?</b></li>
211
- <p>The minimum requirements for Emulator Black PS2 Android are:</p>
212
- <ul>
213
- <li>An Android device running Android 7.0 or higher.</li>
214
- <li>A Snapdragon 845-level processor or better, with four large CPU cores (Cortex-A75 or higher) and an Adreno GPU.</li>
215
- <li>At least 4 GB of RAM.</li>
216
- <li>At least 10 GB of free storage space.</li>
217
- <li>A stable internet connection.</li>
218
- </ul>
219
- <li><b>Where can I get more information and help about Emulator Black PS2 Android?</b></li>
220
- <p>You can get more information and help about Emulator Black PS2 Android by visiting its official website at <a href="">https://emulatorblackps2android.com</a>, where you can find FAQs, tutorials, guides, forums, blogs, social media links, contact details, and more.</p>
221
- </ol>
222
- <p <p>I hope you enjoyed this article and learned something new about Emulator Black PS2 Android. If you have any feedback or suggestions, please let me know in the comments section below. Thank you for reading and happy gaming!</p> 197e85843d<br />
223
- <br />
224
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Enjoy the Smooth and Comprehensive Gameplay of Battle Royale 3D - Warrior63 with Mod APK.md DELETED
@@ -1,98 +0,0 @@
1
-
2
- <h1>Battle Royale 3D - Warrior63 Mod APK Download: A Guide for Android Users</h1>
3
- <p>If you are a fan of survival shooting games, you might want to try Battle Royale 3D - Warrior63, a popular mobile game that challenges you to be the last man standing in a fierce combat. In this article, we will tell you everything you need to know about this game, and how to download and install the mod apk version for free. Read on to find out more!</p>
4
- <h2>What is Battle Royale 3D - Warrior63?</h2>
5
- <p>Battle Royale 3D - Warrior63 is a game developed by LQ-GAME, a Chinese studio that specializes in creating action-packed games for Android devices. The game was released in 2020 and has since gained millions of downloads and positive reviews from players around the world.</p>
6
- <h2>battle royale 3d warrior 63 mod apk download</h2><br /><p><b><b>Download</b> &#9734;&#9734;&#9734;&#9734;&#9734; <a href="https://jinyurl.com/2uNQig">https://jinyurl.com/2uNQig</a></b></p><br /><br />
7
- <p>The game is inspired by the popular genre of battle royale, where you have to compete with other players in a shrinking map and eliminate them until you are the only survivor. The game features a mega battle map in 4km x 4km, with various terrains such as land, sea, mountains, and buildings. You can also use vehicles and weapons to enhance your mobility and firepower.</p>
8
- <h3>Features of the game</h3>
9
- <p>Some of the features that make Battle Royale 3D - Warrior63 stand out from other similar games are:</p>
10
- <ul>
11
- <li>A variety of weapons, such as pistols, rifles, submachine guns, sniper guns, grenades, and more.</li>
12
- <li>A new weapon control system that makes shooting more smooth and stable.</li>
13
- <li>A new custom key mapping that allows you to personalize your controls for a better gaming experience.</li>
14
- <li>A new player level system that rewards you with coins and diamonds as you progress.</li>
15
- <li>Three different game modes: Death Battle, Team Battle, and Training Challenge.</li>
16
- <li>Optimized enemy direction tips and network stability.</li>
17
- <li>A fix for a weapon picking bug.</li>
18
- </ul>
19
- <h3>How to play the game</h3>
20
- <p>The gameplay of Battle Royale 3D - Warrior63 is simple and straightforward. You start by choosing a game mode and entering a match with other players. You can either play solo or team up with your friends. Then, you parachute onto the map and search for weapons and resources. You have to be quick and careful, as the map will shrink over time and force you to move closer to your enemies. You also have to avoid the poison circle and enemy attacks, while looking for opportunities to defeat them. The last player or team alive wins the match.</p>
21
- <h2>Why download the mod apk version?</h2>
22
- <p>While Battle Royale 3D - Warrior63 is free to play, it also contains some in-app purchases that require real money. These include coins and diamonds that can be used to buy new weapons, skins, vehicles, and other items. If you want to enjoy the game without spending any money, you might want to download the mod apk version instead.</p>
23
- <h3>Benefits of the mod apk</h3>
24
- <p>The mod apk version of Battle Royale 3D - Warrior63 is a modified version that gives you some advantages over the original version. Some of the benefits of the mod apk are:</p>
25
- <ul>
26
- <li>Unlimited coins and diamonds that can be used to buy anything you want in the game.</li>
27
- <li>Optimized graphics and performance that make the game run faster and smoother on your device.</li>
28
- <li>Weak enemy mode that makes your opponents easier to kill.</li>
29
- </ul>
30
- <h3>How to download and install the mod apk</h3>
31
- <p>To download and install the mod apk version of Battle Royale 3D - Warrior63, you need to follow these steps:</p>
32
- <ol>
33
- <li>Go to a trusted website that provides the mod apk file for Battle Royale 3D - Warrior63. You can search for it on Google or use this link: .</li>
34
- <li>Download the mod apk file to your device. Make sure you have enough storage space and a stable internet connection.</li>
35
- <li>Enable the installation of apps from unknown sources on your device. You can do this by going to Settings > Security > Unknown Sources and toggling it on.</li>
36
- <li>Locate the mod apk file on your device and tap on it to start the installation process. Follow the instructions on the screen and wait for it to finish.</li>
37
- <li>Launch the game and enjoy the mod features.</li>
38
- </ol>
39
- <h2>Tips and tricks for playing Battle Royale 3D - Warrior63</h2>
40
- <p>Now that you have downloaded and installed the mod apk version of Battle Royale 3D - Warrior63, you might want to know some tips and tricks that can help you improve your skills and win more matches. Here are some of them:</p>
41
- <p>battle royale 3d warrior 63 mod apk free download<br />
42
- download battle royale 3d warrior 63 mod apk latest version<br />
43
- battle royale 3d warrior 63 mod apk unlimited money<br />
44
- how to install battle royale 3d warrior 63 mod apk<br />
45
- battle royale 3d warrior 63 mod apk android<br />
46
- battle royale 3d warrior 63 mod apk happymod<br />
47
- battle royale 3d warrior 63 mod apk offline<br />
48
- battle royale 3d warrior 63 mod apk no root<br />
49
- battle royale 3d warrior 63 mod apk online<br />
50
- battle royale 3d warrior 63 mod apk obb<br />
51
- battle royale 3d warrior 63 mod apk revdl<br />
52
- battle royale 3d warrior 63 mod apk rexdl<br />
53
- battle royale 3d warrior 63 mod apk update<br />
54
- battle royale 3d warrior 63 mod apk hack<br />
55
- battle royale 3d warrior 63 mod apk cheat<br />
56
- battle royale 3d warrior 63 mod apk gameplay<br />
57
- battle royale 3d warrior 63 mod apk review<br />
58
- battle royale 3d warrior 63 mod apk features<br />
59
- battle royale 3d warrior 63 mod apk tips and tricks<br />
60
- battle royale 3d warrior 63 mod apk guide<br />
61
- battle royale 3d warrior 63 mod apk best weapons<br />
62
- battle royale 3d warrior 63 mod apk new map<br />
63
- battle royale 3d warrior 63 mod apk custom key mapping<br />
64
- battle royale 3d warrior 63 mod apk weak enemy<br />
65
- battle royale 3d warrior 63 mod apk optimized<br />
66
- battle royale 3d warrior 63 mod apk net energy gain<br />
67
- battle royale 3d warrior 63 mod apk death battle mode<br />
68
- battle royale 3d warrior 63 mod apk team battle mode<br />
69
- battle royale 3d warrior 63 mod apk training challenge mode<br />
70
- battle royale 3d warrior 63 mod apk player level system<br />
71
- battle royale 3d warrior 63 mod apk windows crossover<br />
72
- battle royale 3d warrior 63 mod apk vehicle control mode<br />
73
- download game battle royale 3d warrior 63 mod apk for android<br />
74
- download game battle royale 3d warrior mega map for android free with unlimited money and weak enemy hack cheat offline online latest version obb rexdl revdl happymod net energy gain vehicle control mode windows crossover player level system death team training challenge modes custom key mapping optimized features tips and tricks guide best weapons new map review gameplay no root install unlimited money and weak enemy hack cheat offline online latest version obb rexdl revdl happymod net energy gain vehicle control mode windows crossover player level system death team training challenge modes custom key mapping optimized features tips and tricks guide best weapons new map review gameplay no root install</p>
75
- <h3>Customize your controls</h3>
76
- <p>One of the best features of Battle Royale 3D - Warrior63 is that it allows you to customize your controls according to your preference. You can access the custom key mapping by tapping on the gear icon on the top right corner of the screen and then selecting Control. You can adjust the size, position, and transparency of the buttons, as well as switch between different control modes. You can also save different control schemes for different game modes. Experiment with different settings until you find the one that suits you best.</p>
77
- <h3>Use vehicles and weapons wisely</h3>
78
- <p>Vehicles and weapons are essential tools for survival in Battle Royale 3D - Warrior63. You can find them scattered around the map, or buy them with coins and diamonds in the shop. Vehicles can help you move faster and escape from danger, but they also make you more visible and vulnerable to enemy fire. Weapons can help you eliminate your enemies, but they also have different characteristics such as range, accuracy, recoil, and ammo capacity. You should always choose the vehicle and weapon that match your play style and situation. For example, if you want to snipe from a distance, you should use a sniper rifle and a motorcycle. If you want to rush into close combat, you should use a submachine gun and a car.</p>
79
- <h3>Avoid the poison circle and enemy attacks</h3>
80
- <p>The poison circle is a deadly mechanic that forces you to move closer to your enemies as the match progresses. It appears as a blue circle on the map that shrinks over time. If you are outside of it, you will lose health gradually until you die. You should always pay attention to the poison circle and plan your movements accordingly. You should also avoid staying in one place for too long, as you might attract enemy attention and get ambushed. You should always be alert and aware of your surroundings, and use cover and camouflage to hide from enemy sight.</p>
81
- <h2>Conclusion</h2>
82
- <p>Battle Royale 3D - Warrior63 is a fun and exciting game that will test your survival skills and reflexes in a realistic 3D environment. You can download the mod apk version of the game for free and enjoy unlimited coins, diamonds, weak enemies, and more. You can also follow our tips and tricks to improve your gameplay and win more matches. Download Battle Royale 3D - Warrior63 mod apk now and join the ultimate battle royale!</p>
83
- <h2>FAQs</h2>
84
- <p>Here are some frequently asked questions about Battle Royale 3D - Warrior63 mod apk:</p>
85
- <ul>
86
- <li><b>Is Battle Royale 3D - Warrior63 mod apk safe to download?</b><br>
87
- Yes, Battle Royale 3D - Warrior63 mod apk is safe to download as long as you use a trusted website that provides the file. You should also scan the file with an antivirus program before installing it.</li>
88
- <li><b>Do I need to root my device to use Battle Royale 3D - Warrior63 mod apk?</b><br>
89
- No, you do not need to root your device to use Battle Royale 3D - Warrior63 mod apk. You just need to enable the installation of apps from unknown sources on your device.</li>
90
- <li><b>Will I get banned for using Battle Royale 3D - Warrior63 mod apk?</b><br>
91
- There is a low risk of getting banned for using Battle Royale 3D - Warrior63 mod apk, as the game does not have a strict anti-cheat system. However, you should still be careful and avoid using obvious cheats such as flying or teleporting.</li>
92
- <li><b>Can I play Battle Royale 3D - Warrior63 mod apk with my friends?</b>< br>
93
- Yes, you can play Battle Royale 3D - Warrior63 mod apk with your friends. You can either join a team battle mode or create a private room and invite your friends to join. You can also chat with your teammates and coordinate your strategies.</li>
94
- <li><b>How can I update Battle Royale 3D - Warrior63 mod apk?</b><br>
95
- To update Battle Royale 3D - Warrior63 mod apk, you need to download the latest version of the mod apk file from the same website that you used before. Then, you need to uninstall the old version of the game and install the new one. You should also backup your game data before updating to avoid losing your progress.</li>
96
- </ul></p> 197e85843d<br />
97
- <br />
98
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1toTree/lora_test/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: LoRa ppdiffusers dreambooth
3
- emoji: 🎨🎞️
4
- colorFrom: pink
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 3.18.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/232labs/VToonify/vtoonify/model/raft/core/utils/__init__.py DELETED
File without changes
spaces/AI-ANK/PaLM-Kosmos-Vision/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: PaLM Kosmos Vision
3
- emoji: 🚀
4
- colorFrom: blue
5
- colorTo: gray
6
- sdk: streamlit
7
- sdk_version: 1.28.1
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIGC-Audio/AudioGPT/NeuralSeq/vocoders/base_vocoder.py DELETED
@@ -1,39 +0,0 @@
1
- import importlib
2
- VOCODERS = {}
3
-
4
-
5
- def register_vocoder(cls):
6
- VOCODERS[cls.__name__.lower()] = cls
7
- VOCODERS[cls.__name__] = cls
8
- return cls
9
-
10
-
11
- def get_vocoder_cls(hparams):
12
- if hparams['vocoder'] in VOCODERS:
13
- return VOCODERS[hparams['vocoder']]
14
- else:
15
- vocoder_cls = hparams['vocoder']
16
- pkg = ".".join(vocoder_cls.split(".")[:-1])
17
- cls_name = vocoder_cls.split(".")[-1]
18
- vocoder_cls = getattr(importlib.import_module(pkg), cls_name)
19
- return vocoder_cls
20
-
21
-
22
- class BaseVocoder:
23
- def spec2wav(self, mel):
24
- """
25
-
26
- :param mel: [T, 80]
27
- :return: wav: [T']
28
- """
29
-
30
- raise NotImplementedError
31
-
32
- @staticmethod
33
- def wav2spec(wav_fn):
34
- """
35
-
36
- :param wav_fn: str
37
- :return: wav, mel: [T, 80]
38
- """
39
- raise NotImplementedError
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AILab-CVC/SEED-LLaMA/start.sh DELETED
@@ -1,11 +0,0 @@
1
-
2
- nohup python3 gradio_demo/seed_llama_flask.py \
3
- --image_transform configs/transform/clip_transform.yaml \
4
- --tokenizer configs/tokenizer/seed_llama_tokenizer_hf.yaml \
5
- --model configs/llm/seed_llama_14b_8bit.yaml \
6
- --port 7890 \
7
- --llm_device cuda:0 \
8
- --tokenizer_device cuda:0 \
9
- --offload_encoder >./output.out &
10
-
11
- python3 gradio_demo/seed_llama_gradio.py --server_port 7860 --request_address http://127.0.0.1:7890/generate --model_type seed-llama-14b
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Abrish-Aadi/Chest-Xray-anomaly-detection/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: Chest Xray Anomaly Detection
3
- emoji: 🌖
4
- colorFrom: purple
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 3.23.0
8
- app_file: app.py
9
- pinned: false
10
- license: apache-2.0
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AchyuthGamer/MagicPrompt-Stable-Diffusion/README.md DELETED
@@ -1,14 +0,0 @@
1
- ---
2
- title: MagicPrompt Stable Diffusion
3
- emoji: 🍄
4
- colorFrom: red
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 3.3.1
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- duplicated_from: Gustavosta/MagicPrompt-Stable-Diffusion
12
- ---
13
-
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Adapter/T2I-Adapter/test_adapter.py DELETED
@@ -1,80 +0,0 @@
1
- import os
2
-
3
- import cv2
4
- import torch
5
- from basicsr.utils import tensor2img
6
- from pytorch_lightning import seed_everything
7
- from torch import autocast
8
-
9
- from ldm.inference_base import (diffusion_inference, get_adapters, get_base_argument_parser, get_sd_models)
10
- from ldm.modules.extra_condition import api
11
- from ldm.modules.extra_condition.api import (ExtraCondition, get_adapter_feature, get_cond_model)
12
-
13
- torch.set_grad_enabled(False)
14
-
15
-
16
- def main():
17
- supported_cond = [e.name for e in ExtraCondition]
18
- parser = get_base_argument_parser()
19
- parser.add_argument(
20
- '--which_cond',
21
- type=str,
22
- required=True,
23
- choices=supported_cond,
24
- help='which condition modality you want to test',
25
- )
26
- opt = parser.parse_args()
27
- which_cond = opt.which_cond
28
- if opt.outdir is None:
29
- opt.outdir = f'outputs/test-{which_cond}'
30
- os.makedirs(opt.outdir, exist_ok=True)
31
- if opt.resize_short_edge is None:
32
- print(f"you don't specify the resize_shot_edge, so the maximum resolution is set to {opt.max_resolution}")
33
- opt.device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
34
-
35
- # support two test mode: single image test, and batch test (through a txt file)
36
- if opt.prompt.endswith('.txt'):
37
- assert opt.prompt.endswith('.txt')
38
- image_paths = []
39
- prompts = []
40
- with open(opt.prompt, 'r') as f:
41
- lines = f.readlines()
42
- for line in lines:
43
- line = line.strip()
44
- image_paths.append(line.split('; ')[0])
45
- prompts.append(line.split('; ')[1])
46
- else:
47
- image_paths = [opt.cond_path]
48
- prompts = [opt.prompt]
49
- print(image_paths)
50
-
51
- # prepare models
52
- sd_model, sampler = get_sd_models(opt)
53
- adapter = get_adapters(opt, getattr(ExtraCondition, which_cond))
54
- cond_model = None
55
- if opt.cond_inp_type == 'image':
56
- cond_model = get_cond_model(opt, getattr(ExtraCondition, which_cond))
57
-
58
- process_cond_module = getattr(api, f'get_cond_{which_cond}')
59
-
60
- # inference
61
- with torch.inference_mode(), \
62
- sd_model.ema_scope(), \
63
- autocast('cuda'):
64
- for test_idx, (cond_path, prompt) in enumerate(zip(image_paths, prompts)):
65
- seed_everything(opt.seed)
66
- for v_idx in range(opt.n_samples):
67
- # seed_everything(opt.seed+v_idx+test_idx)
68
- cond = process_cond_module(opt, cond_path, opt.cond_inp_type, cond_model)
69
-
70
- base_count = len(os.listdir(opt.outdir)) // 2
71
- cv2.imwrite(os.path.join(opt.outdir, f'{base_count:05}_{which_cond}.png'), tensor2img(cond))
72
-
73
- adapter_features, append_to_context = get_adapter_feature(cond, adapter)
74
- opt.prompt = prompt
75
- result = diffusion_inference(opt, sd_model, sampler, adapter_features, append_to_context)
76
- cv2.imwrite(os.path.join(opt.outdir, f'{base_count:05}_result.png'), tensor2img(result))
77
-
78
-
79
- if __name__ == '__main__':
80
- main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/plugins/shockwavepipeline-plugin.js DELETED
@@ -1,14 +0,0 @@
1
- import ShockwavePostFxPipeline from './shockwavepipeline.js';
2
- import BasePostFxPipelinePlugin from './utils/renderer/postfxpipeline/BasePostFxPipelinePlugin.js';
3
- import SetValue from './utils/object/SetValue.js';
4
-
5
- class ShockwavePipelinePlugin extends BasePostFxPipelinePlugin {
6
- constructor(pluginManager) {
7
- super(pluginManager);
8
- this.setPostPipelineClass(ShockwavePostFxPipeline, 'rexShockwavePostFx');
9
- }
10
- }
11
-
12
- SetValue(window, 'RexPlugins.Pipelines.ShockwavePostFx', ShockwavePostFxPipeline);
13
-
14
- export default ShockwavePipelinePlugin;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/maker/builders/utils/SetTextureProperties.js DELETED
@@ -1,22 +0,0 @@
1
- const ProperiteList = ['tint', 'alpha', 'visible', 'flipX', 'flipY'];
2
-
3
- var SetTextureProperties = function (gameObject, data) {
4
- for (var i = 0, cnt = ProperiteList.length; i < cnt; i++) {
5
- var key = ProperiteList[i];
6
- var value = data[key];
7
- if (value !== undefined) {
8
- gameObject[key] = value;
9
- }
10
- }
11
-
12
- if (data.cropResize && !gameObject.resize) {
13
- gameObject.resize = function (width, height) {
14
- gameObject.setCrop(0, 0, width, height);
15
- return gameObject;
16
- }
17
- }
18
-
19
- return gameObject;
20
- }
21
-
22
- export default SetTextureProperties;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/pages/methods/HasPage.js DELETED
@@ -1,5 +0,0 @@
1
- var HasPage = function (key) {
2
- return this.sizerChildren.hasOwnProperty(key);
3
- }
4
-
5
- export default HasPage;
 
 
 
 
 
 
spaces/AlekseyKorshuk/accompaniment-generator/app.py DELETED
@@ -1,108 +0,0 @@
1
- import streamlit as st
2
- import numpy as np
3
- import pretty_midi
4
- from accompaniment_generator.generator.base import Generator
5
- import os
6
- import uuid
7
- import time
8
- from midi2audio import FluidSynth
9
- from scipy.io import wavfile
10
-
11
- ABOUT_TEXT = "🤗 Accompaniment Generator - generate accompaniment part with chord using Evolutionary algorithm."
12
- CONTACT_TEXT = """
13
- _Built by Aleksey Korshuk with love_ ❤️
14
- [![Follow](https://img.shields.io/github/followers/AlekseyKorshuk?style=social)](https://github.com/AlekseyKorshuk)
15
-
16
- [![Follow](https://img.shields.io/twitter/follow/alekseykorshuk?style=social)](https://twitter.com/intent/follow?screen_name=alekseykorshuk)
17
-
18
- Star project repository:
19
- [![GitHub stars](https://img.shields.io/github/stars/AlekseyKorshuk/accompaniment-generator?style=social)](https://github.com/AlekseyKorshuk/accompaniment-generator)
20
- """
21
- st.sidebar.markdown(
22
- """
23
- <style>
24
- .aligncenter {
25
- text-align: center;
26
- }
27
- </style>
28
- <p class="aligncenter">
29
- <img src="https://seeklogo.com/images/A/apple-music-logo-4FBA5FADCC-seeklogo.com.png" width="220" />
30
- </p>
31
- """,
32
- unsafe_allow_html=True,
33
- )
34
-
35
- st.sidebar.markdown(ABOUT_TEXT)
36
- st.sidebar.markdown(CONTACT_TEXT)
37
-
38
-
39
- def inference(audio, num_epoch, chord_duration):
40
- generator = Generator()
41
- if chord_duration == 0.0:
42
- chord_duration = None
43
- output_midi_data = generator(audio, num_epoch=int(num_epoch), chord_duration=chord_duration)[0]
44
- name = uuid.uuid4()
45
- output_midi_data.write(f'{name}.mid')
46
- fs = FluidSynth("font.sf2")
47
- fs.midi_to_audio(f'{name}.mid', f'{name}.wav')
48
- fs.midi_to_audio(audio, f'{name}-init.wav')
49
- # time.sleep(2)
50
- print([f'{name}-init.wav', f'{name}.wav'])
51
- return f'{name}-init.wav', f'{name}.wav'
52
-
53
-
54
- st.title("Accompaniment Generator")
55
-
56
- st.markdown(
57
- "App to generate accompaniment for MIDI music file with Evolutionary algorithm. Check out [project repository](https://github.com/AlekseyKorshuk/accompaniment-generator).")
58
-
59
- article = "<p style='text-align: center'>" \
60
- "<a href='https://github.com/AlekseyKorshuk/accompaniment-generator' target='_blank'>Github Repo</a>" \
61
- "</p>"
62
-
63
- from os import listdir
64
- from os.path import isfile, join
65
-
66
- onlyfiles = [f for f in listdir("./examples") if isfile(join("./examples", f))]
67
-
68
- model_name = st.selectbox(
69
- 'Select example MIDI file (will be used only for empty file field):',
70
- onlyfiles
71
- )
72
-
73
- uploaded_file = st.file_uploader(
74
- 'Upload MIDI file:'
75
- )
76
-
77
- num_epoch = st.number_input("Number of epochs:",
78
- min_value=1,
79
- max_value=1000,
80
- step=1,
81
- value=1,
82
- )
83
-
84
- chord_duration = st.number_input("Custom chord duration is seconds (leave zero for auto-calculation):",
85
- min_value=0.0,
86
- max_value=1000.0,
87
- step=0.0001,
88
- value=0.0,
89
- format="%.4f"
90
- )
91
-
92
- generate_image_button = st.button("Generate")
93
-
94
- if generate_image_button:
95
- input_file = f"./examples/{model_name}"
96
- if uploaded_file is not None:
97
- input_file = uploaded_file.name
98
- with open(input_file, 'wb') as f:
99
- f.write(uploaded_file.getvalue())
100
- # print(uploaded_file.getvalue())
101
- with st.spinner(text=f"Generating, this may take some time..."):
102
- before, after = inference(input_file, num_epoch, chord_duration)
103
- st.markdown("Before:")
104
- st.audio(before)
105
- st.markdown("After:")
106
- st.audio(after)
107
- if uploaded_file is not None:
108
- os.remove(input_file)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Alichuan/VITS-Umamusume-voice-synthesizer/mel_processing.py DELETED
@@ -1,101 +0,0 @@
1
- import torch
2
- import torch.utils.data
3
- from librosa.filters import mel as librosa_mel_fn
4
-
5
- MAX_WAV_VALUE = 32768.0
6
-
7
-
8
- def dynamic_range_compression_torch(x, C=1, clip_val=1e-5):
9
- """
10
- PARAMS
11
- ------
12
- C: compression factor
13
- """
14
- return torch.log(torch.clamp(x, min=clip_val) * C)
15
-
16
-
17
- def dynamic_range_decompression_torch(x, C=1):
18
- """
19
- PARAMS
20
- ------
21
- C: compression factor used to compress
22
- """
23
- return torch.exp(x) / C
24
-
25
-
26
- def spectral_normalize_torch(magnitudes):
27
- output = dynamic_range_compression_torch(magnitudes)
28
- return output
29
-
30
-
31
- def spectral_de_normalize_torch(magnitudes):
32
- output = dynamic_range_decompression_torch(magnitudes)
33
- return output
34
-
35
-
36
- mel_basis = {}
37
- hann_window = {}
38
-
39
-
40
- def spectrogram_torch(y, n_fft, sampling_rate, hop_size, win_size, center=False):
41
- if torch.min(y) < -1.:
42
- print('min value is ', torch.min(y))
43
- if torch.max(y) > 1.:
44
- print('max value is ', torch.max(y))
45
-
46
- global hann_window
47
- dtype_device = str(y.dtype) + '_' + str(y.device)
48
- wnsize_dtype_device = str(win_size) + '_' + dtype_device
49
- if wnsize_dtype_device not in hann_window:
50
- hann_window[wnsize_dtype_device] = torch.hann_window(win_size).to(dtype=y.dtype, device=y.device)
51
-
52
- y = torch.nn.functional.pad(y.unsqueeze(1), (int((n_fft-hop_size)/2), int((n_fft-hop_size)/2)), mode='reflect')
53
- y = y.squeeze(1)
54
-
55
- spec = torch.stft(y, n_fft, hop_length=hop_size, win_length=win_size, window=hann_window[wnsize_dtype_device],
56
- center=center, pad_mode='reflect', normalized=False, onesided=True, return_complex=False)
57
-
58
- spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)
59
- return spec
60
-
61
-
62
- def spec_to_mel_torch(spec, n_fft, num_mels, sampling_rate, fmin, fmax):
63
- global mel_basis
64
- dtype_device = str(spec.dtype) + '_' + str(spec.device)
65
- fmax_dtype_device = str(fmax) + '_' + dtype_device
66
- if fmax_dtype_device not in mel_basis:
67
- mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
68
- mel_basis[fmax_dtype_device] = torch.from_numpy(mel).to(dtype=spec.dtype, device=spec.device)
69
- spec = torch.matmul(mel_basis[fmax_dtype_device], spec)
70
- spec = spectral_normalize_torch(spec)
71
- return spec
72
-
73
-
74
- def mel_spectrogram_torch(y, n_fft, num_mels, sampling_rate, hop_size, win_size, fmin, fmax, center=False):
75
- if torch.min(y) < -1.:
76
- print('min value is ', torch.min(y))
77
- if torch.max(y) > 1.:
78
- print('max value is ', torch.max(y))
79
-
80
- global mel_basis, hann_window
81
- dtype_device = str(y.dtype) + '_' + str(y.device)
82
- fmax_dtype_device = str(fmax) + '_' + dtype_device
83
- wnsize_dtype_device = str(win_size) + '_' + dtype_device
84
- if fmax_dtype_device not in mel_basis:
85
- mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
86
- mel_basis[fmax_dtype_device] = torch.from_numpy(mel).to(dtype=y.dtype, device=y.device)
87
- if wnsize_dtype_device not in hann_window:
88
- hann_window[wnsize_dtype_device] = torch.hann_window(win_size).to(dtype=y.dtype, device=y.device)
89
-
90
- y = torch.nn.functional.pad(y.unsqueeze(1), (int((n_fft-hop_size)/2), int((n_fft-hop_size)/2)), mode='reflect')
91
- y = y.squeeze(1)
92
-
93
- spec = torch.stft(y, n_fft, hop_length=hop_size, win_length=win_size, window=hann_window[wnsize_dtype_device],
94
- center=center, pad_mode='reflect', normalized=False, onesided=True)
95
-
96
- spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)
97
-
98
- spec = torch.matmul(mel_basis[fmax_dtype_device], spec)
99
- spec = spectral_normalize_torch(spec)
100
-
101
- return spec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/examples/community/multilingual_stable_diffusion.py DELETED
@@ -1,436 +0,0 @@
1
- import inspect
2
- from typing import Callable, List, Optional, Union
3
-
4
- import torch
5
- from transformers import (
6
- CLIPImageProcessor,
7
- CLIPTextModel,
8
- CLIPTokenizer,
9
- MBart50TokenizerFast,
10
- MBartForConditionalGeneration,
11
- pipeline,
12
- )
13
-
14
- from diffusers import DiffusionPipeline
15
- from diffusers.configuration_utils import FrozenDict
16
- from diffusers.models import AutoencoderKL, UNet2DConditionModel
17
- from diffusers.pipelines.stable_diffusion import StableDiffusionPipelineOutput
18
- from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
19
- from diffusers.schedulers import DDIMScheduler, LMSDiscreteScheduler, PNDMScheduler
20
- from diffusers.utils import deprecate, logging
21
-
22
-
23
- logger = logging.get_logger(__name__) # pylint: disable=invalid-name
24
-
25
-
26
- def detect_language(pipe, prompt, batch_size):
27
- """helper function to detect language(s) of prompt"""
28
-
29
- if batch_size == 1:
30
- preds = pipe(prompt, top_k=1, truncation=True, max_length=128)
31
- return preds[0]["label"]
32
- else:
33
- detected_languages = []
34
- for p in prompt:
35
- preds = pipe(p, top_k=1, truncation=True, max_length=128)
36
- detected_languages.append(preds[0]["label"])
37
-
38
- return detected_languages
39
-
40
-
41
- def translate_prompt(prompt, translation_tokenizer, translation_model, device):
42
- """helper function to translate prompt to English"""
43
-
44
- encoded_prompt = translation_tokenizer(prompt, return_tensors="pt").to(device)
45
- generated_tokens = translation_model.generate(**encoded_prompt, max_new_tokens=1000)
46
- en_trans = translation_tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
47
-
48
- return en_trans[0]
49
-
50
-
51
- class MultilingualStableDiffusion(DiffusionPipeline):
52
- r"""
53
- Pipeline for text-to-image generation using Stable Diffusion in different languages.
54
-
55
- This model inherits from [`DiffusionPipeline`]. Check the superclass documentation for the generic methods the
56
- library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)
57
-
58
- Args:
59
- detection_pipeline ([`pipeline`]):
60
- Transformers pipeline to detect prompt's language.
61
- translation_model ([`MBartForConditionalGeneration`]):
62
- Model to translate prompt to English, if necessary. Please refer to the
63
- [model card](https://huggingface.co/docs/transformers/model_doc/mbart) for details.
64
- translation_tokenizer ([`MBart50TokenizerFast`]):
65
- Tokenizer of the translation model.
66
- vae ([`AutoencoderKL`]):
67
- Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.
68
- text_encoder ([`CLIPTextModel`]):
69
- Frozen text-encoder. Stable Diffusion uses the text portion of
70
- [CLIP](https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel), specifically
71
- the [clip-vit-large-patch14](https://huggingface.co/openai/clip-vit-large-patch14) variant.
72
- tokenizer (`CLIPTokenizer`):
73
- Tokenizer of class
74
- [CLIPTokenizer](https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer).
75
- unet ([`UNet2DConditionModel`]): Conditional U-Net architecture to denoise the encoded image latents.
76
- scheduler ([`SchedulerMixin`]):
77
- A scheduler to be used in combination with `unet` to denoise the encoded image latens. Can be one of
78
- [`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
79
- safety_checker ([`StableDiffusionSafetyChecker`]):
80
- Classification module that estimates whether generated images could be considered offensive or harmful.
81
- Please, refer to the [model card](https://huggingface.co/runwayml/stable-diffusion-v1-5) for details.
82
- feature_extractor ([`CLIPImageProcessor`]):
83
- Model that extracts features from generated images to be used as inputs for the `safety_checker`.
84
- """
85
-
86
- def __init__(
87
- self,
88
- detection_pipeline: pipeline,
89
- translation_model: MBartForConditionalGeneration,
90
- translation_tokenizer: MBart50TokenizerFast,
91
- vae: AutoencoderKL,
92
- text_encoder: CLIPTextModel,
93
- tokenizer: CLIPTokenizer,
94
- unet: UNet2DConditionModel,
95
- scheduler: Union[DDIMScheduler, PNDMScheduler, LMSDiscreteScheduler],
96
- safety_checker: StableDiffusionSafetyChecker,
97
- feature_extractor: CLIPImageProcessor,
98
- ):
99
- super().__init__()
100
-
101
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
102
- deprecation_message = (
103
- f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
104
- f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
105
- "to update the config accordingly as leaving `steps_offset` might led to incorrect results"
106
- " in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
107
- " it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"
108
- " file"
109
- )
110
- deprecate("steps_offset!=1", "1.0.0", deprecation_message, standard_warn=False)
111
- new_config = dict(scheduler.config)
112
- new_config["steps_offset"] = 1
113
- scheduler._internal_dict = FrozenDict(new_config)
114
-
115
- if safety_checker is None:
116
- logger.warning(
117
- f"You have disabled the safety checker for {self.__class__} by passing `safety_checker=None`. Ensure"
118
- " that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered"
119
- " results in services or applications open to the public. Both the diffusers team and Hugging Face"
120
- " strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling"
121
- " it only for use-cases that involve analyzing network behavior or auditing its results. For more"
122
- " information, please have a look at https://github.com/huggingface/diffusers/pull/254 ."
123
- )
124
-
125
- self.register_modules(
126
- detection_pipeline=detection_pipeline,
127
- translation_model=translation_model,
128
- translation_tokenizer=translation_tokenizer,
129
- vae=vae,
130
- text_encoder=text_encoder,
131
- tokenizer=tokenizer,
132
- unet=unet,
133
- scheduler=scheduler,
134
- safety_checker=safety_checker,
135
- feature_extractor=feature_extractor,
136
- )
137
-
138
- def enable_attention_slicing(self, slice_size: Optional[Union[str, int]] = "auto"):
139
- r"""
140
- Enable sliced attention computation.
141
-
142
- When this option is enabled, the attention module will split the input tensor in slices, to compute attention
143
- in several steps. This is useful to save some memory in exchange for a small speed decrease.
144
-
145
- Args:
146
- slice_size (`str` or `int`, *optional*, defaults to `"auto"`):
147
- When `"auto"`, halves the input to the attention heads, so attention will be computed in two steps. If
148
- a number is provided, uses as many slices as `attention_head_dim // slice_size`. In this case,
149
- `attention_head_dim` must be a multiple of `slice_size`.
150
- """
151
- if slice_size == "auto":
152
- # half the attention head size is usually a good trade-off between
153
- # speed and memory
154
- slice_size = self.unet.config.attention_head_dim // 2
155
- self.unet.set_attention_slice(slice_size)
156
-
157
- def disable_attention_slicing(self):
158
- r"""
159
- Disable sliced attention computation. If `enable_attention_slicing` was previously invoked, this method will go
160
- back to computing attention in one step.
161
- """
162
- # set slice_size = `None` to disable `attention slicing`
163
- self.enable_attention_slicing(None)
164
-
165
- @torch.no_grad()
166
- def __call__(
167
- self,
168
- prompt: Union[str, List[str]],
169
- height: int = 512,
170
- width: int = 512,
171
- num_inference_steps: int = 50,
172
- guidance_scale: float = 7.5,
173
- negative_prompt: Optional[Union[str, List[str]]] = None,
174
- num_images_per_prompt: Optional[int] = 1,
175
- eta: float = 0.0,
176
- generator: Optional[torch.Generator] = None,
177
- latents: Optional[torch.FloatTensor] = None,
178
- output_type: Optional[str] = "pil",
179
- return_dict: bool = True,
180
- callback: Optional[Callable[[int, int, torch.FloatTensor], None]] = None,
181
- callback_steps: int = 1,
182
- **kwargs,
183
- ):
184
- r"""
185
- Function invoked when calling the pipeline for generation.
186
-
187
- Args:
188
- prompt (`str` or `List[str]`):
189
- The prompt or prompts to guide the image generation. Can be in different languages.
190
- height (`int`, *optional*, defaults to 512):
191
- The height in pixels of the generated image.
192
- width (`int`, *optional*, defaults to 512):
193
- The width in pixels of the generated image.
194
- num_inference_steps (`int`, *optional*, defaults to 50):
195
- The number of denoising steps. More denoising steps usually lead to a higher quality image at the
196
- expense of slower inference.
197
- guidance_scale (`float`, *optional*, defaults to 7.5):
198
- Guidance scale as defined in [Classifier-Free Diffusion Guidance](https://arxiv.org/abs/2207.12598).
199
- `guidance_scale` is defined as `w` of equation 2. of [Imagen
200
- Paper](https://arxiv.org/pdf/2205.11487.pdf). Guidance scale is enabled by setting `guidance_scale >
201
- 1`. Higher guidance scale encourages to generate images that are closely linked to the text `prompt`,
202
- usually at the expense of lower image quality.
203
- negative_prompt (`str` or `List[str]`, *optional*):
204
- The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
205
- if `guidance_scale` is less than `1`).
206
- num_images_per_prompt (`int`, *optional*, defaults to 1):
207
- The number of images to generate per prompt.
208
- eta (`float`, *optional*, defaults to 0.0):
209
- Corresponds to parameter eta (η) in the DDIM paper: https://arxiv.org/abs/2010.02502. Only applies to
210
- [`schedulers.DDIMScheduler`], will be ignored for others.
211
- generator (`torch.Generator`, *optional*):
212
- A [torch generator](https://pytorch.org/docs/stable/generated/torch.Generator.html) to make generation
213
- deterministic.
214
- latents (`torch.FloatTensor`, *optional*):
215
- Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image
216
- generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
217
- tensor will ge generated by sampling using the supplied random `generator`.
218
- output_type (`str`, *optional*, defaults to `"pil"`):
219
- The output format of the generate image. Choose between
220
- [PIL](https://pillow.readthedocs.io/en/stable/): `PIL.Image.Image` or `np.array`.
221
- return_dict (`bool`, *optional*, defaults to `True`):
222
- Whether or not to return a [`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] instead of a
223
- plain tuple.
224
- callback (`Callable`, *optional*):
225
- A function that will be called every `callback_steps` steps during inference. The function will be
226
- called with the following arguments: `callback(step: int, timestep: int, latents: torch.FloatTensor)`.
227
- callback_steps (`int`, *optional*, defaults to 1):
228
- The frequency at which the `callback` function will be called. If not specified, the callback will be
229
- called at every step.
230
-
231
- Returns:
232
- [`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] or `tuple`:
233
- [`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] if `return_dict` is True, otherwise a `tuple.
234
- When returning a tuple, the first element is a list with the generated images, and the second element is a
235
- list of `bool`s denoting whether the corresponding generated image likely represents "not-safe-for-work"
236
- (nsfw) content, according to the `safety_checker`.
237
- """
238
- if isinstance(prompt, str):
239
- batch_size = 1
240
- elif isinstance(prompt, list):
241
- batch_size = len(prompt)
242
- else:
243
- raise ValueError(f"`prompt` has to be of type `str` or `list` but is {type(prompt)}")
244
-
245
- if height % 8 != 0 or width % 8 != 0:
246
- raise ValueError(f"`height` and `width` have to be divisible by 8 but are {height} and {width}.")
247
-
248
- if (callback_steps is None) or (
249
- callback_steps is not None and (not isinstance(callback_steps, int) or callback_steps <= 0)
250
- ):
251
- raise ValueError(
252
- f"`callback_steps` has to be a positive integer but is {callback_steps} of type"
253
- f" {type(callback_steps)}."
254
- )
255
-
256
- # detect language and translate if necessary
257
- prompt_language = detect_language(self.detection_pipeline, prompt, batch_size)
258
- if batch_size == 1 and prompt_language != "en":
259
- prompt = translate_prompt(prompt, self.translation_tokenizer, self.translation_model, self.device)
260
-
261
- if isinstance(prompt, list):
262
- for index in range(batch_size):
263
- if prompt_language[index] != "en":
264
- p = translate_prompt(
265
- prompt[index], self.translation_tokenizer, self.translation_model, self.device
266
- )
267
- prompt[index] = p
268
-
269
- # get prompt text embeddings
270
- text_inputs = self.tokenizer(
271
- prompt,
272
- padding="max_length",
273
- max_length=self.tokenizer.model_max_length,
274
- return_tensors="pt",
275
- )
276
- text_input_ids = text_inputs.input_ids
277
-
278
- if text_input_ids.shape[-1] > self.tokenizer.model_max_length:
279
- removed_text = self.tokenizer.batch_decode(text_input_ids[:, self.tokenizer.model_max_length :])
280
- logger.warning(
281
- "The following part of your input was truncated because CLIP can only handle sequences up to"
282
- f" {self.tokenizer.model_max_length} tokens: {removed_text}"
283
- )
284
- text_input_ids = text_input_ids[:, : self.tokenizer.model_max_length]
285
- text_embeddings = self.text_encoder(text_input_ids.to(self.device))[0]
286
-
287
- # duplicate text embeddings for each generation per prompt, using mps friendly method
288
- bs_embed, seq_len, _ = text_embeddings.shape
289
- text_embeddings = text_embeddings.repeat(1, num_images_per_prompt, 1)
290
- text_embeddings = text_embeddings.view(bs_embed * num_images_per_prompt, seq_len, -1)
291
-
292
- # here `guidance_scale` is defined analog to the guidance weight `w` of equation (2)
293
- # of the Imagen paper: https://arxiv.org/pdf/2205.11487.pdf . `guidance_scale = 1`
294
- # corresponds to doing no classifier free guidance.
295
- do_classifier_free_guidance = guidance_scale > 1.0
296
- # get unconditional embeddings for classifier free guidance
297
- if do_classifier_free_guidance:
298
- uncond_tokens: List[str]
299
- if negative_prompt is None:
300
- uncond_tokens = [""] * batch_size
301
- elif type(prompt) is not type(negative_prompt):
302
- raise TypeError(
303
- f"`negative_prompt` should be the same type to `prompt`, but got {type(negative_prompt)} !="
304
- f" {type(prompt)}."
305
- )
306
- elif isinstance(negative_prompt, str):
307
- # detect language and translate it if necessary
308
- negative_prompt_language = detect_language(self.detection_pipeline, negative_prompt, batch_size)
309
- if negative_prompt_language != "en":
310
- negative_prompt = translate_prompt(
311
- negative_prompt, self.translation_tokenizer, self.translation_model, self.device
312
- )
313
- if isinstance(negative_prompt, str):
314
- uncond_tokens = [negative_prompt]
315
- elif batch_size != len(negative_prompt):
316
- raise ValueError(
317
- f"`negative_prompt`: {negative_prompt} has batch size {len(negative_prompt)}, but `prompt`:"
318
- f" {prompt} has batch size {batch_size}. Please make sure that passed `negative_prompt` matches"
319
- " the batch size of `prompt`."
320
- )
321
- else:
322
- # detect language and translate it if necessary
323
- if isinstance(negative_prompt, list):
324
- negative_prompt_languages = detect_language(self.detection_pipeline, negative_prompt, batch_size)
325
- for index in range(batch_size):
326
- if negative_prompt_languages[index] != "en":
327
- p = translate_prompt(
328
- negative_prompt[index], self.translation_tokenizer, self.translation_model, self.device
329
- )
330
- negative_prompt[index] = p
331
- uncond_tokens = negative_prompt
332
-
333
- max_length = text_input_ids.shape[-1]
334
- uncond_input = self.tokenizer(
335
- uncond_tokens,
336
- padding="max_length",
337
- max_length=max_length,
338
- truncation=True,
339
- return_tensors="pt",
340
- )
341
- uncond_embeddings = self.text_encoder(uncond_input.input_ids.to(self.device))[0]
342
-
343
- # duplicate unconditional embeddings for each generation per prompt, using mps friendly method
344
- seq_len = uncond_embeddings.shape[1]
345
- uncond_embeddings = uncond_embeddings.repeat(1, num_images_per_prompt, 1)
346
- uncond_embeddings = uncond_embeddings.view(batch_size * num_images_per_prompt, seq_len, -1)
347
-
348
- # For classifier free guidance, we need to do two forward passes.
349
- # Here we concatenate the unconditional and text embeddings into a single batch
350
- # to avoid doing two forward passes
351
- text_embeddings = torch.cat([uncond_embeddings, text_embeddings])
352
-
353
- # get the initial random noise unless the user supplied it
354
-
355
- # Unlike in other pipelines, latents need to be generated in the target device
356
- # for 1-to-1 results reproducibility with the CompVis implementation.
357
- # However this currently doesn't work in `mps`.
358
- latents_shape = (batch_size * num_images_per_prompt, self.unet.config.in_channels, height // 8, width // 8)
359
- latents_dtype = text_embeddings.dtype
360
- if latents is None:
361
- if self.device.type == "mps":
362
- # randn does not work reproducibly on mps
363
- latents = torch.randn(latents_shape, generator=generator, device="cpu", dtype=latents_dtype).to(
364
- self.device
365
- )
366
- else:
367
- latents = torch.randn(latents_shape, generator=generator, device=self.device, dtype=latents_dtype)
368
- else:
369
- if latents.shape != latents_shape:
370
- raise ValueError(f"Unexpected latents shape, got {latents.shape}, expected {latents_shape}")
371
- latents = latents.to(self.device)
372
-
373
- # set timesteps
374
- self.scheduler.set_timesteps(num_inference_steps)
375
-
376
- # Some schedulers like PNDM have timesteps as arrays
377
- # It's more optimized to move all timesteps to correct device beforehand
378
- timesteps_tensor = self.scheduler.timesteps.to(self.device)
379
-
380
- # scale the initial noise by the standard deviation required by the scheduler
381
- latents = latents * self.scheduler.init_noise_sigma
382
-
383
- # prepare extra kwargs for the scheduler step, since not all schedulers have the same signature
384
- # eta (η) is only used with the DDIMScheduler, it will be ignored for other schedulers.
385
- # eta corresponds to η in DDIM paper: https://arxiv.org/abs/2010.02502
386
- # and should be between [0, 1]
387
- accepts_eta = "eta" in set(inspect.signature(self.scheduler.step).parameters.keys())
388
- extra_step_kwargs = {}
389
- if accepts_eta:
390
- extra_step_kwargs["eta"] = eta
391
-
392
- for i, t in enumerate(self.progress_bar(timesteps_tensor)):
393
- # expand the latents if we are doing classifier free guidance
394
- latent_model_input = torch.cat([latents] * 2) if do_classifier_free_guidance else latents
395
- latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
396
-
397
- # predict the noise residual
398
- noise_pred = self.unet(latent_model_input, t, encoder_hidden_states=text_embeddings).sample
399
-
400
- # perform guidance
401
- if do_classifier_free_guidance:
402
- noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)
403
- noise_pred = noise_pred_uncond + guidance_scale * (noise_pred_text - noise_pred_uncond)
404
-
405
- # compute the previous noisy sample x_t -> x_t-1
406
- latents = self.scheduler.step(noise_pred, t, latents, **extra_step_kwargs).prev_sample
407
-
408
- # call the callback, if provided
409
- if callback is not None and i % callback_steps == 0:
410
- callback(i, t, latents)
411
-
412
- latents = 1 / 0.18215 * latents
413
- image = self.vae.decode(latents).sample
414
-
415
- image = (image / 2 + 0.5).clamp(0, 1)
416
-
417
- # we always cast to float32 as this does not cause significant overhead and is compatible with bfloat16
418
- image = image.cpu().permute(0, 2, 3, 1).float().numpy()
419
-
420
- if self.safety_checker is not None:
421
- safety_checker_input = self.feature_extractor(self.numpy_to_pil(image), return_tensors="pt").to(
422
- self.device
423
- )
424
- image, has_nsfw_concept = self.safety_checker(
425
- images=image, clip_input=safety_checker_input.pixel_values.to(text_embeddings.dtype)
426
- )
427
- else:
428
- has_nsfw_concept = None
429
-
430
- if output_type == "pil":
431
- image = self.numpy_to_pil(image)
432
-
433
- if not return_dict:
434
- return (image, has_nsfw_concept)
435
-
436
- return StableDiffusionPipelineOutput(images=image, nsfw_content_detected=has_nsfw_concept)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/commands/fp16_safetensors.py DELETED
@@ -1,138 +0,0 @@
1
- # Copyright 2023 The HuggingFace Team. All rights reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- """
16
- Usage example:
17
- diffusers-cli fp16_safetensors --ckpt_id=openai/shap-e --fp16 --use_safetensors
18
- """
19
-
20
- import glob
21
- import json
22
- from argparse import ArgumentParser, Namespace
23
- from importlib import import_module
24
-
25
- import huggingface_hub
26
- import torch
27
- from huggingface_hub import hf_hub_download
28
- from packaging import version
29
-
30
- from ..utils import is_safetensors_available, logging
31
- from . import BaseDiffusersCLICommand
32
-
33
-
34
- def conversion_command_factory(args: Namespace):
35
- return FP16SafetensorsCommand(
36
- args.ckpt_id,
37
- args.fp16,
38
- args.use_safetensors,
39
- args.use_auth_token,
40
- )
41
-
42
-
43
- class FP16SafetensorsCommand(BaseDiffusersCLICommand):
44
- @staticmethod
45
- def register_subcommand(parser: ArgumentParser):
46
- conversion_parser = parser.add_parser("fp16_safetensors")
47
- conversion_parser.add_argument(
48
- "--ckpt_id",
49
- type=str,
50
- help="Repo id of the checkpoints on which to run the conversion. Example: 'openai/shap-e'.",
51
- )
52
- conversion_parser.add_argument(
53
- "--fp16", action="store_true", help="If serializing the variables in FP16 precision."
54
- )
55
- conversion_parser.add_argument(
56
- "--use_safetensors", action="store_true", help="If serializing in the safetensors format."
57
- )
58
- conversion_parser.add_argument(
59
- "--use_auth_token",
60
- action="store_true",
61
- help="When working with checkpoints having private visibility. When used `huggingface-cli login` needs to be run beforehand.",
62
- )
63
- conversion_parser.set_defaults(func=conversion_command_factory)
64
-
65
- def __init__(self, ckpt_id: str, fp16: bool, use_safetensors: bool, use_auth_token: bool):
66
- self.logger = logging.get_logger("diffusers-cli/fp16_safetensors")
67
- self.ckpt_id = ckpt_id
68
- self.local_ckpt_dir = f"/tmp/{ckpt_id}"
69
- self.fp16 = fp16
70
-
71
- if is_safetensors_available():
72
- self.use_safetensors = use_safetensors
73
- else:
74
- raise ImportError(
75
- "When `use_safetensors` is set to True, the `safetensors` library needs to be installed. Install it via `pip install safetensors`."
76
- )
77
-
78
- if not self.use_safetensors and not self.fp16:
79
- raise NotImplementedError(
80
- "When `use_safetensors` and `fp16` both are False, then this command is of no use."
81
- )
82
-
83
- self.use_auth_token = use_auth_token
84
-
85
- def run(self):
86
- if version.parse(huggingface_hub.__version__) < version.parse("0.9.0"):
87
- raise ImportError(
88
- "The huggingface_hub version must be >= 0.9.0 to use this command. Please update your huggingface_hub"
89
- " installation."
90
- )
91
- else:
92
- from huggingface_hub import create_commit
93
- from huggingface_hub._commit_api import CommitOperationAdd
94
-
95
- model_index = hf_hub_download(repo_id=self.ckpt_id, filename="model_index.json", token=self.use_auth_token)
96
- with open(model_index, "r") as f:
97
- pipeline_class_name = json.load(f)["_class_name"]
98
- pipeline_class = getattr(import_module("diffusers"), pipeline_class_name)
99
- self.logger.info(f"Pipeline class imported: {pipeline_class_name}.")
100
-
101
- # Load the appropriate pipeline. We could have use `DiffusionPipeline`
102
- # here, but just to avoid any rough edge cases.
103
- pipeline = pipeline_class.from_pretrained(
104
- self.ckpt_id, torch_dtype=torch.float16 if self.fp16 else torch.float32, use_auth_token=self.use_auth_token
105
- )
106
- pipeline.save_pretrained(
107
- self.local_ckpt_dir,
108
- safe_serialization=True if self.use_safetensors else False,
109
- variant="fp16" if self.fp16 else None,
110
- )
111
- self.logger.info(f"Pipeline locally saved to {self.local_ckpt_dir}.")
112
-
113
- # Fetch all the paths.
114
- if self.fp16:
115
- modified_paths = glob.glob(f"{self.local_ckpt_dir}/*/*.fp16.*")
116
- elif self.use_safetensors:
117
- modified_paths = glob.glob(f"{self.local_ckpt_dir}/*/*.safetensors")
118
-
119
- # Prepare for the PR.
120
- commit_message = f"Serialize variables with FP16: {self.fp16} and safetensors: {self.use_safetensors}."
121
- operations = []
122
- for path in modified_paths:
123
- operations.append(CommitOperationAdd(path_in_repo="/".join(path.split("/")[4:]), path_or_fileobj=path))
124
-
125
- # Open the PR.
126
- commit_description = (
127
- "Variables converted by the [`diffusers`' `fp16_safetensors`"
128
- " CLI](https://github.com/huggingface/diffusers/blob/main/src/diffusers/commands/fp16_safetensors.py)."
129
- )
130
- hub_pr_url = create_commit(
131
- repo_id=self.ckpt_id,
132
- operations=operations,
133
- commit_message=commit_message,
134
- commit_description=commit_description,
135
- repo_type="model",
136
- create_pr=True,
137
- ).pr_url
138
- self.logger.info(f"PR created here: {hub_pr_url}.")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/configs/hrnet/cascade_mask_rcnn_hrnetv2p_w40_20e_coco.py DELETED
@@ -1,11 +0,0 @@
1
- _base_ = './cascade_mask_rcnn_hrnetv2p_w32_20e_coco.py'
2
- # model settings
3
- model = dict(
4
- pretrained='open-mmlab://msra/hrnetv2_w40',
5
- backbone=dict(
6
- type='HRNet',
7
- extra=dict(
8
- stage2=dict(num_channels=(40, 80)),
9
- stage3=dict(num_channels=(40, 80, 160)),
10
- stage4=dict(num_channels=(40, 80, 160, 320)))),
11
- neck=dict(type='HRFPN', in_channels=[40, 80, 160, 320], out_channels=256))
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/configs/hrnet/mask_rcnn_hrnetv2p_w32_2x_coco.py DELETED
@@ -1,4 +0,0 @@
1
- _base_ = './mask_rcnn_hrnetv2p_w32_1x_coco.py'
2
- # learning policy
3
- lr_config = dict(step=[16, 22])
4
- runner = dict(type='EpochBasedRunner', max_epochs=24)
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/configs/mask_rcnn/mask_rcnn_x101_32x4d_fpn_1x_coco.py DELETED
@@ -1,13 +0,0 @@
1
- _base_ = './mask_rcnn_r101_fpn_1x_coco.py'
2
- model = dict(
3
- pretrained='open-mmlab://resnext101_32x4d',
4
- backbone=dict(
5
- type='ResNeXt',
6
- depth=101,
7
- groups=32,
8
- base_width=4,
9
- num_stages=4,
10
- out_indices=(0, 1, 2, 3),
11
- frozen_stages=1,
12
- norm_cfg=dict(type='BN', requires_grad=True),
13
- style='pytorch'))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/configs/retinanet/retinanet_r101_caffe_fpn_1x_coco.py DELETED
@@ -1,4 +0,0 @@
1
- _base_ = './retinanet_r50_caffe_fpn_1x_coco.py'
2
- model = dict(
3
- pretrained='open-mmlab://detectron2/resnet101_caffe',
4
- backbone=dict(depth=101))
 
 
 
 
 
spaces/Andy1621/uniformer_image_segmentation/configs/hrnet/fcn_hr18s_512x512_160k_ade20k.py DELETED
@@ -1,9 +0,0 @@
1
- _base_ = './fcn_hr18_512x512_160k_ade20k.py'
2
- model = dict(
3
- pretrained='open-mmlab://msra/hrnetv2_w18_small',
4
- backbone=dict(
5
- extra=dict(
6
- stage1=dict(num_blocks=(2, )),
7
- stage2=dict(num_blocks=(2, 2)),
8
- stage3=dict(num_modules=3, num_blocks=(2, 2, 2)),
9
- stage4=dict(num_modules=2, num_blocks=(2, 2, 2, 2)))))
 
 
 
 
 
 
 
 
 
 
spaces/AnimalEquality/chatbot/nbs/styles.css DELETED
@@ -1,37 +0,0 @@
1
- .cell {
2
- margin-bottom: 1rem;
3
- }
4
-
5
- .cell > .sourceCode {
6
- margin-bottom: 0;
7
- }
8
-
9
- .cell-output > pre {
10
- margin-bottom: 0;
11
- }
12
-
13
- .cell-output > pre, .cell-output > .sourceCode > pre, .cell-output-stdout > pre {
14
- margin-left: 0.8rem;
15
- margin-top: 0;
16
- background: none;
17
- border-left: 2px solid lightsalmon;
18
- border-top-left-radius: 0;
19
- border-top-right-radius: 0;
20
- }
21
-
22
- .cell-output > .sourceCode {
23
- border: none;
24
- }
25
-
26
- .cell-output > .sourceCode {
27
- background: none;
28
- margin-top: 0;
29
- }
30
-
31
- div.description {
32
- padding-left: 2px;
33
- padding-top: 5px;
34
- font-style: italic;
35
- font-size: 135%;
36
- opacity: 70%;
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Artrajz/vits-simple-api/bert_vits2/modules.py DELETED
@@ -1,459 +0,0 @@
1
- import copy
2
- import math
3
- import numpy as np
4
- import scipy
5
- import torch
6
- from torch import nn
7
- from torch.nn import functional as F
8
-
9
- from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d
10
- from torch.nn.utils import weight_norm, remove_weight_norm
11
-
12
- from bert_vits2 import commons
13
- from bert_vits2.commons import init_weights, get_padding
14
- from bert_vits2.transforms import piecewise_rational_quadratic_transform
15
- from bert_vits2.attentions import Encoder
16
-
17
- LRELU_SLOPE = 0.1
18
-
19
-
20
- class LayerNorm(nn.Module):
21
- def __init__(self, channels, eps=1e-5):
22
- super().__init__()
23
- self.channels = channels
24
- self.eps = eps
25
-
26
- self.gamma = nn.Parameter(torch.ones(channels))
27
- self.beta = nn.Parameter(torch.zeros(channels))
28
-
29
- def forward(self, x):
30
- x = x.transpose(1, -1)
31
- x = F.layer_norm(x, (self.channels,), self.gamma, self.beta, self.eps)
32
- return x.transpose(1, -1)
33
-
34
-
35
- class ConvReluNorm(nn.Module):
36
- def __init__(self, in_channels, hidden_channels, out_channels, kernel_size, n_layers, p_dropout):
37
- super().__init__()
38
- self.in_channels = in_channels
39
- self.hidden_channels = hidden_channels
40
- self.out_channels = out_channels
41
- self.kernel_size = kernel_size
42
- self.n_layers = n_layers
43
- self.p_dropout = p_dropout
44
- assert n_layers > 1, "Number of layers should be larger than 0."
45
-
46
- self.conv_layers = nn.ModuleList()
47
- self.norm_layers = nn.ModuleList()
48
- self.conv_layers.append(nn.Conv1d(in_channels, hidden_channels, kernel_size, padding=kernel_size // 2))
49
- self.norm_layers.append(LayerNorm(hidden_channels))
50
- self.relu_drop = nn.Sequential(
51
- nn.ReLU(),
52
- nn.Dropout(p_dropout))
53
- for _ in range(n_layers - 1):
54
- self.conv_layers.append(nn.Conv1d(hidden_channels, hidden_channels, kernel_size, padding=kernel_size // 2))
55
- self.norm_layers.append(LayerNorm(hidden_channels))
56
- self.proj = nn.Conv1d(hidden_channels, out_channels, 1)
57
- self.proj.weight.data.zero_()
58
- self.proj.bias.data.zero_()
59
-
60
- def forward(self, x, x_mask):
61
- x_org = x
62
- for i in range(self.n_layers):
63
- x = self.conv_layers[i](x * x_mask)
64
- x = self.norm_layers[i](x)
65
- x = self.relu_drop(x)
66
- x = x_org + self.proj(x)
67
- return x * x_mask
68
-
69
-
70
- class DDSConv(nn.Module):
71
- """
72
- Dialted and Depth-Separable Convolution
73
- """
74
-
75
- def __init__(self, channels, kernel_size, n_layers, p_dropout=0.):
76
- super().__init__()
77
- self.channels = channels
78
- self.kernel_size = kernel_size
79
- self.n_layers = n_layers
80
- self.p_dropout = p_dropout
81
-
82
- self.drop = nn.Dropout(p_dropout)
83
- self.convs_sep = nn.ModuleList()
84
- self.convs_1x1 = nn.ModuleList()
85
- self.norms_1 = nn.ModuleList()
86
- self.norms_2 = nn.ModuleList()
87
- for i in range(n_layers):
88
- dilation = kernel_size ** i
89
- padding = (kernel_size * dilation - dilation) // 2
90
- self.convs_sep.append(nn.Conv1d(channels, channels, kernel_size,
91
- groups=channels, dilation=dilation, padding=padding
92
- ))
93
- self.convs_1x1.append(nn.Conv1d(channels, channels, 1))
94
- self.norms_1.append(LayerNorm(channels))
95
- self.norms_2.append(LayerNorm(channels))
96
-
97
- def forward(self, x, x_mask, g=None):
98
- if g is not None:
99
- x = x + g
100
- for i in range(self.n_layers):
101
- y = self.convs_sep[i](x * x_mask)
102
- y = self.norms_1[i](y)
103
- y = F.gelu(y)
104
- y = self.convs_1x1[i](y)
105
- y = self.norms_2[i](y)
106
- y = F.gelu(y)
107
- y = self.drop(y)
108
- x = x + y
109
- return x * x_mask
110
-
111
-
112
- class WN(torch.nn.Module):
113
- def __init__(self, hidden_channels, kernel_size, dilation_rate, n_layers, gin_channels=0, p_dropout=0):
114
- super(WN, self).__init__()
115
- assert (kernel_size % 2 == 1)
116
- self.hidden_channels = hidden_channels
117
- self.kernel_size = kernel_size,
118
- self.dilation_rate = dilation_rate
119
- self.n_layers = n_layers
120
- self.gin_channels = gin_channels
121
- self.p_dropout = p_dropout
122
-
123
- self.in_layers = torch.nn.ModuleList()
124
- self.res_skip_layers = torch.nn.ModuleList()
125
- self.drop = nn.Dropout(p_dropout)
126
-
127
- if gin_channels != 0:
128
- cond_layer = torch.nn.Conv1d(gin_channels, 2 * hidden_channels * n_layers, 1)
129
- self.cond_layer = torch.nn.utils.weight_norm(cond_layer, name='weight')
130
-
131
- for i in range(n_layers):
132
- dilation = dilation_rate ** i
133
- padding = int((kernel_size * dilation - dilation) / 2)
134
- in_layer = torch.nn.Conv1d(hidden_channels, 2 * hidden_channels, kernel_size,
135
- dilation=dilation, padding=padding)
136
- in_layer = torch.nn.utils.weight_norm(in_layer, name='weight')
137
- self.in_layers.append(in_layer)
138
-
139
- # last one is not necessary
140
- if i < n_layers - 1:
141
- res_skip_channels = 2 * hidden_channels
142
- else:
143
- res_skip_channels = hidden_channels
144
-
145
- res_skip_layer = torch.nn.Conv1d(hidden_channels, res_skip_channels, 1)
146
- res_skip_layer = torch.nn.utils.weight_norm(res_skip_layer, name='weight')
147
- self.res_skip_layers.append(res_skip_layer)
148
-
149
- def forward(self, x, x_mask, g=None, **kwargs):
150
- output = torch.zeros_like(x)
151
- n_channels_tensor = torch.IntTensor([self.hidden_channels])
152
-
153
- if g is not None:
154
- g = self.cond_layer(g)
155
-
156
- for i in range(self.n_layers):
157
- x_in = self.in_layers[i](x)
158
- if g is not None:
159
- cond_offset = i * 2 * self.hidden_channels
160
- g_l = g[:, cond_offset:cond_offset + 2 * self.hidden_channels, :]
161
- else:
162
- g_l = torch.zeros_like(x_in)
163
-
164
- acts = commons.fused_add_tanh_sigmoid_multiply(
165
- x_in,
166
- g_l,
167
- n_channels_tensor)
168
- acts = self.drop(acts)
169
-
170
- res_skip_acts = self.res_skip_layers[i](acts)
171
- if i < self.n_layers - 1:
172
- res_acts = res_skip_acts[:, :self.hidden_channels, :]
173
- x = (x + res_acts) * x_mask
174
- output = output + res_skip_acts[:, self.hidden_channels:, :]
175
- else:
176
- output = output + res_skip_acts
177
- return output * x_mask
178
-
179
- def remove_weight_norm(self):
180
- if self.gin_channels != 0:
181
- torch.nn.utils.remove_weight_norm(self.cond_layer)
182
- for l in self.in_layers:
183
- torch.nn.utils.remove_weight_norm(l)
184
- for l in self.res_skip_layers:
185
- torch.nn.utils.remove_weight_norm(l)
186
-
187
-
188
- class ResBlock1(torch.nn.Module):
189
- def __init__(self, channels, kernel_size=3, dilation=(1, 3, 5)):
190
- super(ResBlock1, self).__init__()
191
- self.convs1 = nn.ModuleList([
192
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[0],
193
- padding=get_padding(kernel_size, dilation[0]))),
194
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[1],
195
- padding=get_padding(kernel_size, dilation[1]))),
196
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[2],
197
- padding=get_padding(kernel_size, dilation[2])))
198
- ])
199
- self.convs1.apply(init_weights)
200
-
201
- self.convs2 = nn.ModuleList([
202
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
203
- padding=get_padding(kernel_size, 1))),
204
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
205
- padding=get_padding(kernel_size, 1))),
206
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
207
- padding=get_padding(kernel_size, 1)))
208
- ])
209
- self.convs2.apply(init_weights)
210
-
211
- def forward(self, x, x_mask=None):
212
- for c1, c2 in zip(self.convs1, self.convs2):
213
- xt = F.leaky_relu(x, LRELU_SLOPE)
214
- if x_mask is not None:
215
- xt = xt * x_mask
216
- xt = c1(xt)
217
- xt = F.leaky_relu(xt, LRELU_SLOPE)
218
- if x_mask is not None:
219
- xt = xt * x_mask
220
- xt = c2(xt)
221
- x = xt + x
222
- if x_mask is not None:
223
- x = x * x_mask
224
- return x
225
-
226
- def remove_weight_norm(self):
227
- for l in self.convs1:
228
- remove_weight_norm(l)
229
- for l in self.convs2:
230
- remove_weight_norm(l)
231
-
232
-
233
- class ResBlock2(torch.nn.Module):
234
- def __init__(self, channels, kernel_size=3, dilation=(1, 3)):
235
- super(ResBlock2, self).__init__()
236
- self.convs = nn.ModuleList([
237
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[0],
238
- padding=get_padding(kernel_size, dilation[0]))),
239
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[1],
240
- padding=get_padding(kernel_size, dilation[1])))
241
- ])
242
- self.convs.apply(init_weights)
243
-
244
- def forward(self, x, x_mask=None):
245
- for c in self.convs:
246
- xt = F.leaky_relu(x, LRELU_SLOPE)
247
- if x_mask is not None:
248
- xt = xt * x_mask
249
- xt = c(xt)
250
- x = xt + x
251
- if x_mask is not None:
252
- x = x * x_mask
253
- return x
254
-
255
- def remove_weight_norm(self):
256
- for l in self.convs:
257
- remove_weight_norm(l)
258
-
259
-
260
- class Log(nn.Module):
261
- def forward(self, x, x_mask, reverse=False, **kwargs):
262
- if not reverse:
263
- y = torch.log(torch.clamp_min(x, 1e-5)) * x_mask
264
- logdet = torch.sum(-y, [1, 2])
265
- return y, logdet
266
- else:
267
- x = torch.exp(x) * x_mask
268
- return x
269
-
270
-
271
- class Flip(nn.Module):
272
- def forward(self, x, *args, reverse=False, **kwargs):
273
- x = torch.flip(x, [1])
274
- if not reverse:
275
- logdet = torch.zeros(x.size(0)).to(dtype=x.dtype, device=x.device)
276
- return x, logdet
277
- else:
278
- return x
279
-
280
-
281
- class ElementwiseAffine(nn.Module):
282
- def __init__(self, channels):
283
- super().__init__()
284
- self.channels = channels
285
- self.m = nn.Parameter(torch.zeros(channels, 1))
286
- self.logs = nn.Parameter(torch.zeros(channels, 1))
287
-
288
- def forward(self, x, x_mask, reverse=False, **kwargs):
289
- if not reverse:
290
- y = self.m + torch.exp(self.logs) * x
291
- y = y * x_mask
292
- logdet = torch.sum(self.logs * x_mask, [1, 2])
293
- return y, logdet
294
- else:
295
- x = (x - self.m) * torch.exp(-self.logs) * x_mask
296
- return x
297
-
298
-
299
- class ResidualCouplingLayer(nn.Module):
300
- def __init__(self,
301
- channels,
302
- hidden_channels,
303
- kernel_size,
304
- dilation_rate,
305
- n_layers,
306
- p_dropout=0,
307
- gin_channels=0,
308
- mean_only=False):
309
- assert channels % 2 == 0, "channels should be divisible by 2"
310
- super().__init__()
311
- self.channels = channels
312
- self.hidden_channels = hidden_channels
313
- self.kernel_size = kernel_size
314
- self.dilation_rate = dilation_rate
315
- self.n_layers = n_layers
316
- self.half_channels = channels // 2
317
- self.mean_only = mean_only
318
-
319
- self.pre = nn.Conv1d(self.half_channels, hidden_channels, 1)
320
- self.enc = WN(hidden_channels, kernel_size, dilation_rate, n_layers, p_dropout=p_dropout,
321
- gin_channels=gin_channels)
322
- self.post = nn.Conv1d(hidden_channels, self.half_channels * (2 - mean_only), 1)
323
- self.post.weight.data.zero_()
324
- self.post.bias.data.zero_()
325
-
326
- def forward(self, x, x_mask, g=None, reverse=False):
327
- x0, x1 = torch.split(x, [self.half_channels] * 2, 1)
328
- h = self.pre(x0) * x_mask
329
- h = self.enc(h, x_mask, g=g)
330
- stats = self.post(h) * x_mask
331
- if not self.mean_only:
332
- m, logs = torch.split(stats, [self.half_channels] * 2, 1)
333
- else:
334
- m = stats
335
- logs = torch.zeros_like(m)
336
-
337
- if not reverse:
338
- x1 = m + x1 * torch.exp(logs) * x_mask
339
- x = torch.cat([x0, x1], 1)
340
- logdet = torch.sum(logs, [1, 2])
341
- return x, logdet
342
- else:
343
- x1 = (x1 - m) * torch.exp(-logs) * x_mask
344
- x = torch.cat([x0, x1], 1)
345
- return x
346
-
347
-
348
- class ConvFlow(nn.Module):
349
- def __init__(self, in_channels, filter_channels, kernel_size, n_layers, num_bins=10, tail_bound=5.0):
350
- super().__init__()
351
- self.in_channels = in_channels
352
- self.filter_channels = filter_channels
353
- self.kernel_size = kernel_size
354
- self.n_layers = n_layers
355
- self.num_bins = num_bins
356
- self.tail_bound = tail_bound
357
- self.half_channels = in_channels // 2
358
-
359
- self.pre = nn.Conv1d(self.half_channels, filter_channels, 1)
360
- self.convs = DDSConv(filter_channels, kernel_size, n_layers, p_dropout=0.)
361
- self.proj = nn.Conv1d(filter_channels, self.half_channels * (num_bins * 3 - 1), 1)
362
- self.proj.weight.data.zero_()
363
- self.proj.bias.data.zero_()
364
-
365
- def forward(self, x, x_mask, g=None, reverse=False):
366
- x0, x1 = torch.split(x, [self.half_channels] * 2, 1)
367
- h = self.pre(x0)
368
- h = self.convs(h, x_mask, g=g)
369
- h = self.proj(h) * x_mask
370
-
371
- b, c, t = x0.shape
372
- h = h.reshape(b, c, -1, t).permute(0, 1, 3, 2) # [b, cx?, t] -> [b, c, t, ?]
373
-
374
- unnormalized_widths = h[..., :self.num_bins] / math.sqrt(self.filter_channels)
375
- unnormalized_heights = h[..., self.num_bins:2 * self.num_bins] / math.sqrt(self.filter_channels)
376
- unnormalized_derivatives = h[..., 2 * self.num_bins:]
377
-
378
- x1, logabsdet = piecewise_rational_quadratic_transform(x1,
379
- unnormalized_widths,
380
- unnormalized_heights,
381
- unnormalized_derivatives,
382
- inverse=reverse,
383
- tails='linear',
384
- tail_bound=self.tail_bound
385
- )
386
-
387
- x = torch.cat([x0, x1], 1) * x_mask
388
- logdet = torch.sum(logabsdet * x_mask, [1, 2])
389
- if not reverse:
390
- return x, logdet
391
- else:
392
- return x
393
-
394
-
395
- class TransformerCouplingLayer(nn.Module):
396
- def __init__(self,
397
- channels,
398
- hidden_channels,
399
- kernel_size,
400
- n_layers,
401
- n_heads,
402
- p_dropout=0,
403
- filter_channels=0,
404
- mean_only=False,
405
- wn_sharing_parameter=None,
406
- gin_channels=0
407
- ):
408
- assert channels % 2 == 0, "channels should be divisible by 2"
409
- super().__init__()
410
- self.channels = channels
411
- self.hidden_channels = hidden_channels
412
- self.kernel_size = kernel_size
413
- self.n_layers = n_layers
414
- self.half_channels = channels // 2
415
- self.mean_only = mean_only
416
-
417
- self.pre = nn.Conv1d(self.half_channels, hidden_channels, 1)
418
- self.enc = Encoder(hidden_channels, filter_channels, n_heads, n_layers, kernel_size, p_dropout, isflow=True,
419
- gin_channels=gin_channels) if wn_sharing_parameter is None else wn_sharing_parameter
420
- self.post = nn.Conv1d(hidden_channels, self.half_channels * (2 - mean_only), 1)
421
- self.post.weight.data.zero_()
422
- self.post.bias.data.zero_()
423
-
424
- def forward(self, x, x_mask, g=None, reverse=False):
425
- x0, x1 = torch.split(x, [self.half_channels] * 2, 1)
426
- h = self.pre(x0) * x_mask
427
- h = self.enc(h, x_mask, g=g)
428
- stats = self.post(h) * x_mask
429
- if not self.mean_only:
430
- m, logs = torch.split(stats, [self.half_channels] * 2, 1)
431
- else:
432
- m = stats
433
- logs = torch.zeros_like(m)
434
-
435
- if not reverse:
436
- x1 = m + x1 * torch.exp(logs) * x_mask
437
- x = torch.cat([x0, x1], 1)
438
- logdet = torch.sum(logs, [1, 2])
439
- return x, logdet
440
- else:
441
- x1 = (x1 - m) * torch.exp(-logs) * x_mask
442
- x = torch.cat([x0, x1], 1)
443
- return x
444
-
445
- x1, logabsdet = piecewise_rational_quadratic_transform(x1,
446
- unnormalized_widths,
447
- unnormalized_heights,
448
- unnormalized_derivatives,
449
- inverse=reverse,
450
- tails='linear',
451
- tail_bound=self.tail_bound
452
- )
453
-
454
- x = torch.cat([x0, x1], 1) * x_mask
455
- logdet = torch.sum(logabsdet * x_mask, [1, 2])
456
- if not reverse:
457
- return x, logdet
458
- else:
459
- return x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/cmdline.py DELETED
@@ -1,668 +0,0 @@
1
- """
2
- pygments.cmdline
3
- ~~~~~~~~~~~~~~~~
4
-
5
- Command line interface.
6
-
7
- :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
8
- :license: BSD, see LICENSE for details.
9
- """
10
-
11
- import os
12
- import sys
13
- import shutil
14
- import argparse
15
- from textwrap import dedent
16
-
17
- from pip._vendor.pygments import __version__, highlight
18
- from pip._vendor.pygments.util import ClassNotFound, OptionError, docstring_headline, \
19
- guess_decode, guess_decode_from_terminal, terminal_encoding, \
20
- UnclosingTextIOWrapper
21
- from pip._vendor.pygments.lexers import get_all_lexers, get_lexer_by_name, guess_lexer, \
22
- load_lexer_from_file, get_lexer_for_filename, find_lexer_class_for_filename
23
- from pip._vendor.pygments.lexers.special import TextLexer
24
- from pip._vendor.pygments.formatters.latex import LatexEmbeddedLexer, LatexFormatter
25
- from pip._vendor.pygments.formatters import get_all_formatters, get_formatter_by_name, \
26
- load_formatter_from_file, get_formatter_for_filename, find_formatter_class
27
- from pip._vendor.pygments.formatters.terminal import TerminalFormatter
28
- from pip._vendor.pygments.formatters.terminal256 import Terminal256Formatter, TerminalTrueColorFormatter
29
- from pip._vendor.pygments.filters import get_all_filters, find_filter_class
30
- from pip._vendor.pygments.styles import get_all_styles, get_style_by_name
31
-
32
-
33
- def _parse_options(o_strs):
34
- opts = {}
35
- if not o_strs:
36
- return opts
37
- for o_str in o_strs:
38
- if not o_str.strip():
39
- continue
40
- o_args = o_str.split(',')
41
- for o_arg in o_args:
42
- o_arg = o_arg.strip()
43
- try:
44
- o_key, o_val = o_arg.split('=', 1)
45
- o_key = o_key.strip()
46
- o_val = o_val.strip()
47
- except ValueError:
48
- opts[o_arg] = True
49
- else:
50
- opts[o_key] = o_val
51
- return opts
52
-
53
-
54
- def _parse_filters(f_strs):
55
- filters = []
56
- if not f_strs:
57
- return filters
58
- for f_str in f_strs:
59
- if ':' in f_str:
60
- fname, fopts = f_str.split(':', 1)
61
- filters.append((fname, _parse_options([fopts])))
62
- else:
63
- filters.append((f_str, {}))
64
- return filters
65
-
66
-
67
- def _print_help(what, name):
68
- try:
69
- if what == 'lexer':
70
- cls = get_lexer_by_name(name)
71
- print("Help on the %s lexer:" % cls.name)
72
- print(dedent(cls.__doc__))
73
- elif what == 'formatter':
74
- cls = find_formatter_class(name)
75
- print("Help on the %s formatter:" % cls.name)
76
- print(dedent(cls.__doc__))
77
- elif what == 'filter':
78
- cls = find_filter_class(name)
79
- print("Help on the %s filter:" % name)
80
- print(dedent(cls.__doc__))
81
- return 0
82
- except (AttributeError, ValueError):
83
- print("%s not found!" % what, file=sys.stderr)
84
- return 1
85
-
86
-
87
- def _print_list(what):
88
- if what == 'lexer':
89
- print()
90
- print("Lexers:")
91
- print("~~~~~~~")
92
-
93
- info = []
94
- for fullname, names, exts, _ in get_all_lexers():
95
- tup = (', '.join(names)+':', fullname,
96
- exts and '(filenames ' + ', '.join(exts) + ')' or '')
97
- info.append(tup)
98
- info.sort()
99
- for i in info:
100
- print(('* %s\n %s %s') % i)
101
-
102
- elif what == 'formatter':
103
- print()
104
- print("Formatters:")
105
- print("~~~~~~~~~~~")
106
-
107
- info = []
108
- for cls in get_all_formatters():
109
- doc = docstring_headline(cls)
110
- tup = (', '.join(cls.aliases) + ':', doc, cls.filenames and
111
- '(filenames ' + ', '.join(cls.filenames) + ')' or '')
112
- info.append(tup)
113
- info.sort()
114
- for i in info:
115
- print(('* %s\n %s %s') % i)
116
-
117
- elif what == 'filter':
118
- print()
119
- print("Filters:")
120
- print("~~~~~~~~")
121
-
122
- for name in get_all_filters():
123
- cls = find_filter_class(name)
124
- print("* " + name + ':')
125
- print(" %s" % docstring_headline(cls))
126
-
127
- elif what == 'style':
128
- print()
129
- print("Styles:")
130
- print("~~~~~~~")
131
-
132
- for name in get_all_styles():
133
- cls = get_style_by_name(name)
134
- print("* " + name + ':')
135
- print(" %s" % docstring_headline(cls))
136
-
137
-
138
- def _print_list_as_json(requested_items):
139
- import json
140
- result = {}
141
- if 'lexer' in requested_items:
142
- info = {}
143
- for fullname, names, filenames, mimetypes in get_all_lexers():
144
- info[fullname] = {
145
- 'aliases': names,
146
- 'filenames': filenames,
147
- 'mimetypes': mimetypes
148
- }
149
- result['lexers'] = info
150
-
151
- if 'formatter' in requested_items:
152
- info = {}
153
- for cls in get_all_formatters():
154
- doc = docstring_headline(cls)
155
- info[cls.name] = {
156
- 'aliases': cls.aliases,
157
- 'filenames': cls.filenames,
158
- 'doc': doc
159
- }
160
- result['formatters'] = info
161
-
162
- if 'filter' in requested_items:
163
- info = {}
164
- for name in get_all_filters():
165
- cls = find_filter_class(name)
166
- info[name] = {
167
- 'doc': docstring_headline(cls)
168
- }
169
- result['filters'] = info
170
-
171
- if 'style' in requested_items:
172
- info = {}
173
- for name in get_all_styles():
174
- cls = get_style_by_name(name)
175
- info[name] = {
176
- 'doc': docstring_headline(cls)
177
- }
178
- result['styles'] = info
179
-
180
- json.dump(result, sys.stdout)
181
-
182
- def main_inner(parser, argns):
183
- if argns.help:
184
- parser.print_help()
185
- return 0
186
-
187
- if argns.V:
188
- print('Pygments version %s, (c) 2006-2022 by Georg Brandl, Matthäus '
189
- 'Chajdas and contributors.' % __version__)
190
- return 0
191
-
192
- def is_only_option(opt):
193
- return not any(v for (k, v) in vars(argns).items() if k != opt)
194
-
195
- # handle ``pygmentize -L``
196
- if argns.L is not None:
197
- arg_set = set()
198
- for k, v in vars(argns).items():
199
- if v:
200
- arg_set.add(k)
201
-
202
- arg_set.discard('L')
203
- arg_set.discard('json')
204
-
205
- if arg_set:
206
- parser.print_help(sys.stderr)
207
- return 2
208
-
209
- # print version
210
- if not argns.json:
211
- main(['', '-V'])
212
- allowed_types = {'lexer', 'formatter', 'filter', 'style'}
213
- largs = [arg.rstrip('s') for arg in argns.L]
214
- if any(arg not in allowed_types for arg in largs):
215
- parser.print_help(sys.stderr)
216
- return 0
217
- if not largs:
218
- largs = allowed_types
219
- if not argns.json:
220
- for arg in largs:
221
- _print_list(arg)
222
- else:
223
- _print_list_as_json(largs)
224
- return 0
225
-
226
- # handle ``pygmentize -H``
227
- if argns.H:
228
- if not is_only_option('H'):
229
- parser.print_help(sys.stderr)
230
- return 2
231
- what, name = argns.H
232
- if what not in ('lexer', 'formatter', 'filter'):
233
- parser.print_help(sys.stderr)
234
- return 2
235
- return _print_help(what, name)
236
-
237
- # parse -O options
238
- parsed_opts = _parse_options(argns.O or [])
239
-
240
- # parse -P options
241
- for p_opt in argns.P or []:
242
- try:
243
- name, value = p_opt.split('=', 1)
244
- except ValueError:
245
- parsed_opts[p_opt] = True
246
- else:
247
- parsed_opts[name] = value
248
-
249
- # encodings
250
- inencoding = parsed_opts.get('inencoding', parsed_opts.get('encoding'))
251
- outencoding = parsed_opts.get('outencoding', parsed_opts.get('encoding'))
252
-
253
- # handle ``pygmentize -N``
254
- if argns.N:
255
- lexer = find_lexer_class_for_filename(argns.N)
256
- if lexer is None:
257
- lexer = TextLexer
258
-
259
- print(lexer.aliases[0])
260
- return 0
261
-
262
- # handle ``pygmentize -C``
263
- if argns.C:
264
- inp = sys.stdin.buffer.read()
265
- try:
266
- lexer = guess_lexer(inp, inencoding=inencoding)
267
- except ClassNotFound:
268
- lexer = TextLexer
269
-
270
- print(lexer.aliases[0])
271
- return 0
272
-
273
- # handle ``pygmentize -S``
274
- S_opt = argns.S
275
- a_opt = argns.a
276
- if S_opt is not None:
277
- f_opt = argns.f
278
- if not f_opt:
279
- parser.print_help(sys.stderr)
280
- return 2
281
- if argns.l or argns.INPUTFILE:
282
- parser.print_help(sys.stderr)
283
- return 2
284
-
285
- try:
286
- parsed_opts['style'] = S_opt
287
- fmter = get_formatter_by_name(f_opt, **parsed_opts)
288
- except ClassNotFound as err:
289
- print(err, file=sys.stderr)
290
- return 1
291
-
292
- print(fmter.get_style_defs(a_opt or ''))
293
- return 0
294
-
295
- # if no -S is given, -a is not allowed
296
- if argns.a is not None:
297
- parser.print_help(sys.stderr)
298
- return 2
299
-
300
- # parse -F options
301
- F_opts = _parse_filters(argns.F or [])
302
-
303
- # -x: allow custom (eXternal) lexers and formatters
304
- allow_custom_lexer_formatter = bool(argns.x)
305
-
306
- # select lexer
307
- lexer = None
308
-
309
- # given by name?
310
- lexername = argns.l
311
- if lexername:
312
- # custom lexer, located relative to user's cwd
313
- if allow_custom_lexer_formatter and '.py' in lexername:
314
- try:
315
- filename = None
316
- name = None
317
- if ':' in lexername:
318
- filename, name = lexername.rsplit(':', 1)
319
-
320
- if '.py' in name:
321
- # This can happen on Windows: If the lexername is
322
- # C:\lexer.py -- return to normal load path in that case
323
- name = None
324
-
325
- if filename and name:
326
- lexer = load_lexer_from_file(filename, name,
327
- **parsed_opts)
328
- else:
329
- lexer = load_lexer_from_file(lexername, **parsed_opts)
330
- except ClassNotFound as err:
331
- print('Error:', err, file=sys.stderr)
332
- return 1
333
- else:
334
- try:
335
- lexer = get_lexer_by_name(lexername, **parsed_opts)
336
- except (OptionError, ClassNotFound) as err:
337
- print('Error:', err, file=sys.stderr)
338
- return 1
339
-
340
- # read input code
341
- code = None
342
-
343
- if argns.INPUTFILE:
344
- if argns.s:
345
- print('Error: -s option not usable when input file specified',
346
- file=sys.stderr)
347
- return 2
348
-
349
- infn = argns.INPUTFILE
350
- try:
351
- with open(infn, 'rb') as infp:
352
- code = infp.read()
353
- except Exception as err:
354
- print('Error: cannot read infile:', err, file=sys.stderr)
355
- return 1
356
- if not inencoding:
357
- code, inencoding = guess_decode(code)
358
-
359
- # do we have to guess the lexer?
360
- if not lexer:
361
- try:
362
- lexer = get_lexer_for_filename(infn, code, **parsed_opts)
363
- except ClassNotFound as err:
364
- if argns.g:
365
- try:
366
- lexer = guess_lexer(code, **parsed_opts)
367
- except ClassNotFound:
368
- lexer = TextLexer(**parsed_opts)
369
- else:
370
- print('Error:', err, file=sys.stderr)
371
- return 1
372
- except OptionError as err:
373
- print('Error:', err, file=sys.stderr)
374
- return 1
375
-
376
- elif not argns.s: # treat stdin as full file (-s support is later)
377
- # read code from terminal, always in binary mode since we want to
378
- # decode ourselves and be tolerant with it
379
- code = sys.stdin.buffer.read() # use .buffer to get a binary stream
380
- if not inencoding:
381
- code, inencoding = guess_decode_from_terminal(code, sys.stdin)
382
- # else the lexer will do the decoding
383
- if not lexer:
384
- try:
385
- lexer = guess_lexer(code, **parsed_opts)
386
- except ClassNotFound:
387
- lexer = TextLexer(**parsed_opts)
388
-
389
- else: # -s option needs a lexer with -l
390
- if not lexer:
391
- print('Error: when using -s a lexer has to be selected with -l',
392
- file=sys.stderr)
393
- return 2
394
-
395
- # process filters
396
- for fname, fopts in F_opts:
397
- try:
398
- lexer.add_filter(fname, **fopts)
399
- except ClassNotFound as err:
400
- print('Error:', err, file=sys.stderr)
401
- return 1
402
-
403
- # select formatter
404
- outfn = argns.o
405
- fmter = argns.f
406
- if fmter:
407
- # custom formatter, located relative to user's cwd
408
- if allow_custom_lexer_formatter and '.py' in fmter:
409
- try:
410
- filename = None
411
- name = None
412
- if ':' in fmter:
413
- # Same logic as above for custom lexer
414
- filename, name = fmter.rsplit(':', 1)
415
-
416
- if '.py' in name:
417
- name = None
418
-
419
- if filename and name:
420
- fmter = load_formatter_from_file(filename, name,
421
- **parsed_opts)
422
- else:
423
- fmter = load_formatter_from_file(fmter, **parsed_opts)
424
- except ClassNotFound as err:
425
- print('Error:', err, file=sys.stderr)
426
- return 1
427
- else:
428
- try:
429
- fmter = get_formatter_by_name(fmter, **parsed_opts)
430
- except (OptionError, ClassNotFound) as err:
431
- print('Error:', err, file=sys.stderr)
432
- return 1
433
-
434
- if outfn:
435
- if not fmter:
436
- try:
437
- fmter = get_formatter_for_filename(outfn, **parsed_opts)
438
- except (OptionError, ClassNotFound) as err:
439
- print('Error:', err, file=sys.stderr)
440
- return 1
441
- try:
442
- outfile = open(outfn, 'wb')
443
- except Exception as err:
444
- print('Error: cannot open outfile:', err, file=sys.stderr)
445
- return 1
446
- else:
447
- if not fmter:
448
- if os.environ.get('COLORTERM','') in ('truecolor', '24bit'):
449
- fmter = TerminalTrueColorFormatter(**parsed_opts)
450
- elif '256' in os.environ.get('TERM', ''):
451
- fmter = Terminal256Formatter(**parsed_opts)
452
- else:
453
- fmter = TerminalFormatter(**parsed_opts)
454
- outfile = sys.stdout.buffer
455
-
456
- # determine output encoding if not explicitly selected
457
- if not outencoding:
458
- if outfn:
459
- # output file? use lexer encoding for now (can still be None)
460
- fmter.encoding = inencoding
461
- else:
462
- # else use terminal encoding
463
- fmter.encoding = terminal_encoding(sys.stdout)
464
-
465
- # provide coloring under Windows, if possible
466
- if not outfn and sys.platform in ('win32', 'cygwin') and \
467
- fmter.name in ('Terminal', 'Terminal256'): # pragma: no cover
468
- # unfortunately colorama doesn't support binary streams on Py3
469
- outfile = UnclosingTextIOWrapper(outfile, encoding=fmter.encoding)
470
- fmter.encoding = None
471
- try:
472
- import pip._vendor.colorama.initialise as colorama_initialise
473
- except ImportError:
474
- pass
475
- else:
476
- outfile = colorama_initialise.wrap_stream(
477
- outfile, convert=None, strip=None, autoreset=False, wrap=True)
478
-
479
- # When using the LaTeX formatter and the option `escapeinside` is
480
- # specified, we need a special lexer which collects escaped text
481
- # before running the chosen language lexer.
482
- escapeinside = parsed_opts.get('escapeinside', '')
483
- if len(escapeinside) == 2 and isinstance(fmter, LatexFormatter):
484
- left = escapeinside[0]
485
- right = escapeinside[1]
486
- lexer = LatexEmbeddedLexer(left, right, lexer)
487
-
488
- # ... and do it!
489
- if not argns.s:
490
- # process whole input as per normal...
491
- try:
492
- highlight(code, lexer, fmter, outfile)
493
- finally:
494
- if outfn:
495
- outfile.close()
496
- return 0
497
- else:
498
- # line by line processing of stdin (eg: for 'tail -f')...
499
- try:
500
- while 1:
501
- line = sys.stdin.buffer.readline()
502
- if not line:
503
- break
504
- if not inencoding:
505
- line = guess_decode_from_terminal(line, sys.stdin)[0]
506
- highlight(line, lexer, fmter, outfile)
507
- if hasattr(outfile, 'flush'):
508
- outfile.flush()
509
- return 0
510
- except KeyboardInterrupt: # pragma: no cover
511
- return 0
512
- finally:
513
- if outfn:
514
- outfile.close()
515
-
516
-
517
- class HelpFormatter(argparse.HelpFormatter):
518
- def __init__(self, prog, indent_increment=2, max_help_position=16, width=None):
519
- if width is None:
520
- try:
521
- width = shutil.get_terminal_size().columns - 2
522
- except Exception:
523
- pass
524
- argparse.HelpFormatter.__init__(self, prog, indent_increment,
525
- max_help_position, width)
526
-
527
-
528
- def main(args=sys.argv):
529
- """
530
- Main command line entry point.
531
- """
532
- desc = "Highlight an input file and write the result to an output file."
533
- parser = argparse.ArgumentParser(description=desc, add_help=False,
534
- formatter_class=HelpFormatter)
535
-
536
- operation = parser.add_argument_group('Main operation')
537
- lexersel = operation.add_mutually_exclusive_group()
538
- lexersel.add_argument(
539
- '-l', metavar='LEXER',
540
- help='Specify the lexer to use. (Query names with -L.) If not '
541
- 'given and -g is not present, the lexer is guessed from the filename.')
542
- lexersel.add_argument(
543
- '-g', action='store_true',
544
- help='Guess the lexer from the file contents, or pass through '
545
- 'as plain text if nothing can be guessed.')
546
- operation.add_argument(
547
- '-F', metavar='FILTER[:options]', action='append',
548
- help='Add a filter to the token stream. (Query names with -L.) '
549
- 'Filter options are given after a colon if necessary.')
550
- operation.add_argument(
551
- '-f', metavar='FORMATTER',
552
- help='Specify the formatter to use. (Query names with -L.) '
553
- 'If not given, the formatter is guessed from the output filename, '
554
- 'and defaults to the terminal formatter if the output is to the '
555
- 'terminal or an unknown file extension.')
556
- operation.add_argument(
557
- '-O', metavar='OPTION=value[,OPTION=value,...]', action='append',
558
- help='Give options to the lexer and formatter as a comma-separated '
559
- 'list of key-value pairs. '
560
- 'Example: `-O bg=light,python=cool`.')
561
- operation.add_argument(
562
- '-P', metavar='OPTION=value', action='append',
563
- help='Give a single option to the lexer and formatter - with this '
564
- 'you can pass options whose value contains commas and equal signs. '
565
- 'Example: `-P "heading=Pygments, the Python highlighter"`.')
566
- operation.add_argument(
567
- '-o', metavar='OUTPUTFILE',
568
- help='Where to write the output. Defaults to standard output.')
569
-
570
- operation.add_argument(
571
- 'INPUTFILE', nargs='?',
572
- help='Where to read the input. Defaults to standard input.')
573
-
574
- flags = parser.add_argument_group('Operation flags')
575
- flags.add_argument(
576
- '-v', action='store_true',
577
- help='Print a detailed traceback on unhandled exceptions, which '
578
- 'is useful for debugging and bug reports.')
579
- flags.add_argument(
580
- '-s', action='store_true',
581
- help='Process lines one at a time until EOF, rather than waiting to '
582
- 'process the entire file. This only works for stdin, only for lexers '
583
- 'with no line-spanning constructs, and is intended for streaming '
584
- 'input such as you get from `tail -f`. '
585
- 'Example usage: `tail -f sql.log | pygmentize -s -l sql`.')
586
- flags.add_argument(
587
- '-x', action='store_true',
588
- help='Allow custom lexers and formatters to be loaded from a .py file '
589
- 'relative to the current working directory. For example, '
590
- '`-l ./customlexer.py -x`. By default, this option expects a file '
591
- 'with a class named CustomLexer or CustomFormatter; you can also '
592
- 'specify your own class name with a colon (`-l ./lexer.py:MyLexer`). '
593
- 'Users should be very careful not to use this option with untrusted '
594
- 'files, because it will import and run them.')
595
- flags.add_argument('--json', help='Output as JSON. This can '
596
- 'be only used in conjunction with -L.',
597
- default=False,
598
- action='store_true')
599
-
600
- special_modes_group = parser.add_argument_group(
601
- 'Special modes - do not do any highlighting')
602
- special_modes = special_modes_group.add_mutually_exclusive_group()
603
- special_modes.add_argument(
604
- '-S', metavar='STYLE -f formatter',
605
- help='Print style definitions for STYLE for a formatter '
606
- 'given with -f. The argument given by -a is formatter '
607
- 'dependent.')
608
- special_modes.add_argument(
609
- '-L', nargs='*', metavar='WHAT',
610
- help='List lexers, formatters, styles or filters -- '
611
- 'give additional arguments for the thing(s) you want to list '
612
- '(e.g. "styles"), or omit them to list everything.')
613
- special_modes.add_argument(
614
- '-N', metavar='FILENAME',
615
- help='Guess and print out a lexer name based solely on the given '
616
- 'filename. Does not take input or highlight anything. If no specific '
617
- 'lexer can be determined, "text" is printed.')
618
- special_modes.add_argument(
619
- '-C', action='store_true',
620
- help='Like -N, but print out a lexer name based solely on '
621
- 'a given content from standard input.')
622
- special_modes.add_argument(
623
- '-H', action='store', nargs=2, metavar=('NAME', 'TYPE'),
624
- help='Print detailed help for the object <name> of type <type>, '
625
- 'where <type> is one of "lexer", "formatter" or "filter".')
626
- special_modes.add_argument(
627
- '-V', action='store_true',
628
- help='Print the package version.')
629
- special_modes.add_argument(
630
- '-h', '--help', action='store_true',
631
- help='Print this help.')
632
- special_modes_group.add_argument(
633
- '-a', metavar='ARG',
634
- help='Formatter-specific additional argument for the -S (print '
635
- 'style sheet) mode.')
636
-
637
- argns = parser.parse_args(args[1:])
638
-
639
- try:
640
- return main_inner(parser, argns)
641
- except BrokenPipeError:
642
- # someone closed our stdout, e.g. by quitting a pager.
643
- return 0
644
- except Exception:
645
- if argns.v:
646
- print(file=sys.stderr)
647
- print('*' * 65, file=sys.stderr)
648
- print('An unhandled exception occurred while highlighting.',
649
- file=sys.stderr)
650
- print('Please report the whole traceback to the issue tracker at',
651
- file=sys.stderr)
652
- print('<https://github.com/pygments/pygments/issues>.',
653
- file=sys.stderr)
654
- print('*' * 65, file=sys.stderr)
655
- print(file=sys.stderr)
656
- raise
657
- import traceback
658
- info = traceback.format_exception(*sys.exc_info())
659
- msg = info[-1].strip()
660
- if len(info) >= 3:
661
- # extract relevant file and position info
662
- msg += '\n (f%s)' % info[-2].split('\n')[0].strip()[1:]
663
- print(file=sys.stderr)
664
- print('*** Error while highlighting:', file=sys.stderr)
665
- print(msg, file=sys.stderr)
666
- print('*** If this is a bug you want to report, please rerun with -v.',
667
- file=sys.stderr)
668
- return 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/style.py DELETED
@@ -1,197 +0,0 @@
1
- """
2
- pygments.style
3
- ~~~~~~~~~~~~~~
4
-
5
- Basic style object.
6
-
7
- :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
8
- :license: BSD, see LICENSE for details.
9
- """
10
-
11
- from pip._vendor.pygments.token import Token, STANDARD_TYPES
12
-
13
- # Default mapping of ansixxx to RGB colors.
14
- _ansimap = {
15
- # dark
16
- 'ansiblack': '000000',
17
- 'ansired': '7f0000',
18
- 'ansigreen': '007f00',
19
- 'ansiyellow': '7f7fe0',
20
- 'ansiblue': '00007f',
21
- 'ansimagenta': '7f007f',
22
- 'ansicyan': '007f7f',
23
- 'ansigray': 'e5e5e5',
24
- # normal
25
- 'ansibrightblack': '555555',
26
- 'ansibrightred': 'ff0000',
27
- 'ansibrightgreen': '00ff00',
28
- 'ansibrightyellow': 'ffff00',
29
- 'ansibrightblue': '0000ff',
30
- 'ansibrightmagenta': 'ff00ff',
31
- 'ansibrightcyan': '00ffff',
32
- 'ansiwhite': 'ffffff',
33
- }
34
- # mapping of deprecated #ansixxx colors to new color names
35
- _deprecated_ansicolors = {
36
- # dark
37
- '#ansiblack': 'ansiblack',
38
- '#ansidarkred': 'ansired',
39
- '#ansidarkgreen': 'ansigreen',
40
- '#ansibrown': 'ansiyellow',
41
- '#ansidarkblue': 'ansiblue',
42
- '#ansipurple': 'ansimagenta',
43
- '#ansiteal': 'ansicyan',
44
- '#ansilightgray': 'ansigray',
45
- # normal
46
- '#ansidarkgray': 'ansibrightblack',
47
- '#ansired': 'ansibrightred',
48
- '#ansigreen': 'ansibrightgreen',
49
- '#ansiyellow': 'ansibrightyellow',
50
- '#ansiblue': 'ansibrightblue',
51
- '#ansifuchsia': 'ansibrightmagenta',
52
- '#ansiturquoise': 'ansibrightcyan',
53
- '#ansiwhite': 'ansiwhite',
54
- }
55
- ansicolors = set(_ansimap)
56
-
57
-
58
- class StyleMeta(type):
59
-
60
- def __new__(mcs, name, bases, dct):
61
- obj = type.__new__(mcs, name, bases, dct)
62
- for token in STANDARD_TYPES:
63
- if token not in obj.styles:
64
- obj.styles[token] = ''
65
-
66
- def colorformat(text):
67
- if text in ansicolors:
68
- return text
69
- if text[0:1] == '#':
70
- col = text[1:]
71
- if len(col) == 6:
72
- return col
73
- elif len(col) == 3:
74
- return col[0] * 2 + col[1] * 2 + col[2] * 2
75
- elif text == '':
76
- return ''
77
- elif text.startswith('var') or text.startswith('calc'):
78
- return text
79
- assert False, "wrong color format %r" % text
80
-
81
- _styles = obj._styles = {}
82
-
83
- for ttype in obj.styles:
84
- for token in ttype.split():
85
- if token in _styles:
86
- continue
87
- ndef = _styles.get(token.parent, None)
88
- styledefs = obj.styles.get(token, '').split()
89
- if not ndef or token is None:
90
- ndef = ['', 0, 0, 0, '', '', 0, 0, 0]
91
- elif 'noinherit' in styledefs and token is not Token:
92
- ndef = _styles[Token][:]
93
- else:
94
- ndef = ndef[:]
95
- _styles[token] = ndef
96
- for styledef in obj.styles.get(token, '').split():
97
- if styledef == 'noinherit':
98
- pass
99
- elif styledef == 'bold':
100
- ndef[1] = 1
101
- elif styledef == 'nobold':
102
- ndef[1] = 0
103
- elif styledef == 'italic':
104
- ndef[2] = 1
105
- elif styledef == 'noitalic':
106
- ndef[2] = 0
107
- elif styledef == 'underline':
108
- ndef[3] = 1
109
- elif styledef == 'nounderline':
110
- ndef[3] = 0
111
- elif styledef[:3] == 'bg:':
112
- ndef[4] = colorformat(styledef[3:])
113
- elif styledef[:7] == 'border:':
114
- ndef[5] = colorformat(styledef[7:])
115
- elif styledef == 'roman':
116
- ndef[6] = 1
117
- elif styledef == 'sans':
118
- ndef[7] = 1
119
- elif styledef == 'mono':
120
- ndef[8] = 1
121
- else:
122
- ndef[0] = colorformat(styledef)
123
-
124
- return obj
125
-
126
- def style_for_token(cls, token):
127
- t = cls._styles[token]
128
- ansicolor = bgansicolor = None
129
- color = t[0]
130
- if color in _deprecated_ansicolors:
131
- color = _deprecated_ansicolors[color]
132
- if color in ansicolors:
133
- ansicolor = color
134
- color = _ansimap[color]
135
- bgcolor = t[4]
136
- if bgcolor in _deprecated_ansicolors:
137
- bgcolor = _deprecated_ansicolors[bgcolor]
138
- if bgcolor in ansicolors:
139
- bgansicolor = bgcolor
140
- bgcolor = _ansimap[bgcolor]
141
-
142
- return {
143
- 'color': color or None,
144
- 'bold': bool(t[1]),
145
- 'italic': bool(t[2]),
146
- 'underline': bool(t[3]),
147
- 'bgcolor': bgcolor or None,
148
- 'border': t[5] or None,
149
- 'roman': bool(t[6]) or None,
150
- 'sans': bool(t[7]) or None,
151
- 'mono': bool(t[8]) or None,
152
- 'ansicolor': ansicolor,
153
- 'bgansicolor': bgansicolor,
154
- }
155
-
156
- def list_styles(cls):
157
- return list(cls)
158
-
159
- def styles_token(cls, ttype):
160
- return ttype in cls._styles
161
-
162
- def __iter__(cls):
163
- for token in cls._styles:
164
- yield token, cls.style_for_token(token)
165
-
166
- def __len__(cls):
167
- return len(cls._styles)
168
-
169
-
170
- class Style(metaclass=StyleMeta):
171
-
172
- #: overall background color (``None`` means transparent)
173
- background_color = '#ffffff'
174
-
175
- #: highlight background color
176
- highlight_color = '#ffffcc'
177
-
178
- #: line number font color
179
- line_number_color = 'inherit'
180
-
181
- #: line number background color
182
- line_number_background_color = 'transparent'
183
-
184
- #: special line number font color
185
- line_number_special_color = '#000000'
186
-
187
- #: special line number background color
188
- line_number_special_background_color = '#ffffc0'
189
-
190
- #: Style definitions for individual token types.
191
- styles = {}
192
-
193
- # Attribute for lexers defined within Pygments. If set
194
- # to True, the style is not shown in the style gallery
195
- # on the website. This is intended for language-specific
196
- # styles.
197
- web_style_gallery_exclude = False
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/rich/_extension.py DELETED
@@ -1,10 +0,0 @@
1
- from typing import Any
2
-
3
-
4
- def load_ipython_extension(ip: Any) -> None: # pragma: no cover
5
- # prevent circular import
6
- from pip._vendor.rich.pretty import install
7
- from pip._vendor.rich.traceback import install as tr_install
8
-
9
- install()
10
- tr_install()
 
 
 
 
 
 
 
 
 
 
 
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/rich/_wrap.py DELETED
@@ -1,56 +0,0 @@
1
- import re
2
- from typing import Iterable, List, Tuple
3
-
4
- from ._loop import loop_last
5
- from .cells import cell_len, chop_cells
6
-
7
- re_word = re.compile(r"\s*\S+\s*")
8
-
9
-
10
- def words(text: str) -> Iterable[Tuple[int, int, str]]:
11
- position = 0
12
- word_match = re_word.match(text, position)
13
- while word_match is not None:
14
- start, end = word_match.span()
15
- word = word_match.group(0)
16
- yield start, end, word
17
- word_match = re_word.match(text, end)
18
-
19
-
20
- def divide_line(text: str, width: int, fold: bool = True) -> List[int]:
21
- divides: List[int] = []
22
- append = divides.append
23
- line_position = 0
24
- _cell_len = cell_len
25
- for start, _end, word in words(text):
26
- word_length = _cell_len(word.rstrip())
27
- if line_position + word_length > width:
28
- if word_length > width:
29
- if fold:
30
- chopped_words = chop_cells(word, max_size=width, position=0)
31
- for last, line in loop_last(chopped_words):
32
- if start:
33
- append(start)
34
-
35
- if last:
36
- line_position = _cell_len(line)
37
- else:
38
- start += len(line)
39
- else:
40
- if start:
41
- append(start)
42
- line_position = _cell_len(word)
43
- elif line_position and start:
44
- append(start)
45
- line_position = _cell_len(word)
46
- else:
47
- line_position += _cell_len(word)
48
- return divides
49
-
50
-
51
- if __name__ == "__main__": # pragma: no cover
52
- from .console import Console
53
-
54
- console = Console(width=10)
55
- console.print("12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345")
56
- print(chop_cells("abcdefghijklmnopqrstuvwxyz", 10, position=2))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Awesimo/jojogan/e4e/criteria/lpips/networks.py DELETED
@@ -1,96 +0,0 @@
1
- from typing import Sequence
2
-
3
- from itertools import chain
4
-
5
- import torch
6
- import torch.nn as nn
7
- from torchvision import models
8
-
9
- from criteria.lpips.utils import normalize_activation
10
-
11
-
12
- def get_network(net_type: str):
13
- if net_type == 'alex':
14
- return AlexNet()
15
- elif net_type == 'squeeze':
16
- return SqueezeNet()
17
- elif net_type == 'vgg':
18
- return VGG16()
19
- else:
20
- raise NotImplementedError('choose net_type from [alex, squeeze, vgg].')
21
-
22
-
23
- class LinLayers(nn.ModuleList):
24
- def __init__(self, n_channels_list: Sequence[int]):
25
- super(LinLayers, self).__init__([
26
- nn.Sequential(
27
- nn.Identity(),
28
- nn.Conv2d(nc, 1, 1, 1, 0, bias=False)
29
- ) for nc in n_channels_list
30
- ])
31
-
32
- for param in self.parameters():
33
- param.requires_grad = False
34
-
35
-
36
- class BaseNet(nn.Module):
37
- def __init__(self):
38
- super(BaseNet, self).__init__()
39
-
40
- # register buffer
41
- self.register_buffer(
42
- 'mean', torch.Tensor([-.030, -.088, -.188])[None, :, None, None])
43
- self.register_buffer(
44
- 'std', torch.Tensor([.458, .448, .450])[None, :, None, None])
45
-
46
- def set_requires_grad(self, state: bool):
47
- for param in chain(self.parameters(), self.buffers()):
48
- param.requires_grad = state
49
-
50
- def z_score(self, x: torch.Tensor):
51
- return (x - self.mean) / self.std
52
-
53
- def forward(self, x: torch.Tensor):
54
- x = self.z_score(x)
55
-
56
- output = []
57
- for i, (_, layer) in enumerate(self.layers._modules.items(), 1):
58
- x = layer(x)
59
- if i in self.target_layers:
60
- output.append(normalize_activation(x))
61
- if len(output) == len(self.target_layers):
62
- break
63
- return output
64
-
65
-
66
- class SqueezeNet(BaseNet):
67
- def __init__(self):
68
- super(SqueezeNet, self).__init__()
69
-
70
- self.layers = models.squeezenet1_1(True).features
71
- self.target_layers = [2, 5, 8, 10, 11, 12, 13]
72
- self.n_channels_list = [64, 128, 256, 384, 384, 512, 512]
73
-
74
- self.set_requires_grad(False)
75
-
76
-
77
- class AlexNet(BaseNet):
78
- def __init__(self):
79
- super(AlexNet, self).__init__()
80
-
81
- self.layers = models.alexnet(True).features
82
- self.target_layers = [2, 5, 8, 10, 12]
83
- self.n_channels_list = [64, 192, 384, 256, 256]
84
-
85
- self.set_requires_grad(False)
86
-
87
-
88
- class VGG16(BaseNet):
89
- def __init__(self):
90
- super(VGG16, self).__init__()
91
-
92
- self.layers = models.vgg16(True).features
93
- self.target_layers = [4, 9, 16, 23, 30]
94
- self.n_channels_list = [64, 128, 256, 512, 512]
95
-
96
- self.set_requires_grad(False)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ayemos/highlight_text_based_on_surprisals/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Highlight text based on readability (=surprisal)
3
- emoji: 🐠
4
- colorFrom: yellow
5
- colorTo: pink
6
- sdk: gradio
7
- sdk_version: 3.9
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Bart92/RVC_HF/go-tensorboard.bat DELETED
@@ -1,2 +0,0 @@
1
- python fixes/tensor-launch.py
2
- pause
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/pyproject_hooks/_impl.py DELETED
@@ -1,330 +0,0 @@
1
- import json
2
- import os
3
- import sys
4
- import tempfile
5
- from contextlib import contextmanager
6
- from os.path import abspath
7
- from os.path import join as pjoin
8
- from subprocess import STDOUT, check_call, check_output
9
-
10
- from ._in_process import _in_proc_script_path
11
-
12
-
13
- def write_json(obj, path, **kwargs):
14
- with open(path, 'w', encoding='utf-8') as f:
15
- json.dump(obj, f, **kwargs)
16
-
17
-
18
- def read_json(path):
19
- with open(path, encoding='utf-8') as f:
20
- return json.load(f)
21
-
22
-
23
- class BackendUnavailable(Exception):
24
- """Will be raised if the backend cannot be imported in the hook process."""
25
- def __init__(self, traceback):
26
- self.traceback = traceback
27
-
28
-
29
- class BackendInvalid(Exception):
30
- """Will be raised if the backend is invalid."""
31
- def __init__(self, backend_name, backend_path, message):
32
- super().__init__(message)
33
- self.backend_name = backend_name
34
- self.backend_path = backend_path
35
-
36
-
37
- class HookMissing(Exception):
38
- """Will be raised on missing hooks (if a fallback can't be used)."""
39
- def __init__(self, hook_name):
40
- super().__init__(hook_name)
41
- self.hook_name = hook_name
42
-
43
-
44
- class UnsupportedOperation(Exception):
45
- """May be raised by build_sdist if the backend indicates that it can't."""
46
- def __init__(self, traceback):
47
- self.traceback = traceback
48
-
49
-
50
- def default_subprocess_runner(cmd, cwd=None, extra_environ=None):
51
- """The default method of calling the wrapper subprocess.
52
-
53
- This uses :func:`subprocess.check_call` under the hood.
54
- """
55
- env = os.environ.copy()
56
- if extra_environ:
57
- env.update(extra_environ)
58
-
59
- check_call(cmd, cwd=cwd, env=env)
60
-
61
-
62
- def quiet_subprocess_runner(cmd, cwd=None, extra_environ=None):
63
- """Call the subprocess while suppressing output.
64
-
65
- This uses :func:`subprocess.check_output` under the hood.
66
- """
67
- env = os.environ.copy()
68
- if extra_environ:
69
- env.update(extra_environ)
70
-
71
- check_output(cmd, cwd=cwd, env=env, stderr=STDOUT)
72
-
73
-
74
- def norm_and_check(source_tree, requested):
75
- """Normalise and check a backend path.
76
-
77
- Ensure that the requested backend path is specified as a relative path,
78
- and resolves to a location under the given source tree.
79
-
80
- Return an absolute version of the requested path.
81
- """
82
- if os.path.isabs(requested):
83
- raise ValueError("paths must be relative")
84
-
85
- abs_source = os.path.abspath(source_tree)
86
- abs_requested = os.path.normpath(os.path.join(abs_source, requested))
87
- # We have to use commonprefix for Python 2.7 compatibility. So we
88
- # normalise case to avoid problems because commonprefix is a character
89
- # based comparison :-(
90
- norm_source = os.path.normcase(abs_source)
91
- norm_requested = os.path.normcase(abs_requested)
92
- if os.path.commonprefix([norm_source, norm_requested]) != norm_source:
93
- raise ValueError("paths must be inside source tree")
94
-
95
- return abs_requested
96
-
97
-
98
- class BuildBackendHookCaller:
99
- """A wrapper to call the build backend hooks for a source directory.
100
- """
101
-
102
- def __init__(
103
- self,
104
- source_dir,
105
- build_backend,
106
- backend_path=None,
107
- runner=None,
108
- python_executable=None,
109
- ):
110
- """
111
- :param source_dir: The source directory to invoke the build backend for
112
- :param build_backend: The build backend spec
113
- :param backend_path: Additional path entries for the build backend spec
114
- :param runner: The :ref:`subprocess runner <Subprocess Runners>` to use
115
- :param python_executable:
116
- The Python executable used to invoke the build backend
117
- """
118
- if runner is None:
119
- runner = default_subprocess_runner
120
-
121
- self.source_dir = abspath(source_dir)
122
- self.build_backend = build_backend
123
- if backend_path:
124
- backend_path = [
125
- norm_and_check(self.source_dir, p) for p in backend_path
126
- ]
127
- self.backend_path = backend_path
128
- self._subprocess_runner = runner
129
- if not python_executable:
130
- python_executable = sys.executable
131
- self.python_executable = python_executable
132
-
133
- @contextmanager
134
- def subprocess_runner(self, runner):
135
- """A context manager for temporarily overriding the default
136
- :ref:`subprocess runner <Subprocess Runners>`.
137
-
138
- .. code-block:: python
139
-
140
- hook_caller = BuildBackendHookCaller(...)
141
- with hook_caller.subprocess_runner(quiet_subprocess_runner):
142
- ...
143
- """
144
- prev = self._subprocess_runner
145
- self._subprocess_runner = runner
146
- try:
147
- yield
148
- finally:
149
- self._subprocess_runner = prev
150
-
151
- def _supported_features(self):
152
- """Return the list of optional features supported by the backend."""
153
- return self._call_hook('_supported_features', {})
154
-
155
- def get_requires_for_build_wheel(self, config_settings=None):
156
- """Get additional dependencies required for building a wheel.
157
-
158
- :returns: A list of :pep:`dependency specifiers <508>`.
159
- :rtype: list[str]
160
-
161
- .. admonition:: Fallback
162
-
163
- If the build backend does not defined a hook with this name, an
164
- empty list will be returned.
165
- """
166
- return self._call_hook('get_requires_for_build_wheel', {
167
- 'config_settings': config_settings
168
- })
169
-
170
- def prepare_metadata_for_build_wheel(
171
- self, metadata_directory, config_settings=None,
172
- _allow_fallback=True):
173
- """Prepare a ``*.dist-info`` folder with metadata for this project.
174
-
175
- :returns: Name of the newly created subfolder within
176
- ``metadata_directory``, containing the metadata.
177
- :rtype: str
178
-
179
- .. admonition:: Fallback
180
-
181
- If the build backend does not define a hook with this name and
182
- ``_allow_fallback`` is truthy, the backend will be asked to build a
183
- wheel via the ``build_wheel`` hook and the dist-info extracted from
184
- that will be returned.
185
- """
186
- return self._call_hook('prepare_metadata_for_build_wheel', {
187
- 'metadata_directory': abspath(metadata_directory),
188
- 'config_settings': config_settings,
189
- '_allow_fallback': _allow_fallback,
190
- })
191
-
192
- def build_wheel(
193
- self, wheel_directory, config_settings=None,
194
- metadata_directory=None):
195
- """Build a wheel from this project.
196
-
197
- :returns:
198
- The name of the newly created wheel within ``wheel_directory``.
199
-
200
- .. admonition:: Interaction with fallback
201
-
202
- If the ``build_wheel`` hook was called in the fallback for
203
- :meth:`prepare_metadata_for_build_wheel`, the build backend would
204
- not be invoked. Instead, the previously built wheel will be copied
205
- to ``wheel_directory`` and the name of that file will be returned.
206
- """
207
- if metadata_directory is not None:
208
- metadata_directory = abspath(metadata_directory)
209
- return self._call_hook('build_wheel', {
210
- 'wheel_directory': abspath(wheel_directory),
211
- 'config_settings': config_settings,
212
- 'metadata_directory': metadata_directory,
213
- })
214
-
215
- def get_requires_for_build_editable(self, config_settings=None):
216
- """Get additional dependencies required for building an editable wheel.
217
-
218
- :returns: A list of :pep:`dependency specifiers <508>`.
219
- :rtype: list[str]
220
-
221
- .. admonition:: Fallback
222
-
223
- If the build backend does not defined a hook with this name, an
224
- empty list will be returned.
225
- """
226
- return self._call_hook('get_requires_for_build_editable', {
227
- 'config_settings': config_settings
228
- })
229
-
230
- def prepare_metadata_for_build_editable(
231
- self, metadata_directory, config_settings=None,
232
- _allow_fallback=True):
233
- """Prepare a ``*.dist-info`` folder with metadata for this project.
234
-
235
- :returns: Name of the newly created subfolder within
236
- ``metadata_directory``, containing the metadata.
237
- :rtype: str
238
-
239
- .. admonition:: Fallback
240
-
241
- If the build backend does not define a hook with this name and
242
- ``_allow_fallback`` is truthy, the backend will be asked to build a
243
- wheel via the ``build_editable`` hook and the dist-info
244
- extracted from that will be returned.
245
- """
246
- return self._call_hook('prepare_metadata_for_build_editable', {
247
- 'metadata_directory': abspath(metadata_directory),
248
- 'config_settings': config_settings,
249
- '_allow_fallback': _allow_fallback,
250
- })
251
-
252
- def build_editable(
253
- self, wheel_directory, config_settings=None,
254
- metadata_directory=None):
255
- """Build an editable wheel from this project.
256
-
257
- :returns:
258
- The name of the newly created wheel within ``wheel_directory``.
259
-
260
- .. admonition:: Interaction with fallback
261
-
262
- If the ``build_editable`` hook was called in the fallback for
263
- :meth:`prepare_metadata_for_build_editable`, the build backend
264
- would not be invoked. Instead, the previously built wheel will be
265
- copied to ``wheel_directory`` and the name of that file will be
266
- returned.
267
- """
268
- if metadata_directory is not None:
269
- metadata_directory = abspath(metadata_directory)
270
- return self._call_hook('build_editable', {
271
- 'wheel_directory': abspath(wheel_directory),
272
- 'config_settings': config_settings,
273
- 'metadata_directory': metadata_directory,
274
- })
275
-
276
- def get_requires_for_build_sdist(self, config_settings=None):
277
- """Get additional dependencies required for building an sdist.
278
-
279
- :returns: A list of :pep:`dependency specifiers <508>`.
280
- :rtype: list[str]
281
- """
282
- return self._call_hook('get_requires_for_build_sdist', {
283
- 'config_settings': config_settings
284
- })
285
-
286
- def build_sdist(self, sdist_directory, config_settings=None):
287
- """Build an sdist from this project.
288
-
289
- :returns:
290
- The name of the newly created sdist within ``wheel_directory``.
291
- """
292
- return self._call_hook('build_sdist', {
293
- 'sdist_directory': abspath(sdist_directory),
294
- 'config_settings': config_settings,
295
- })
296
-
297
- def _call_hook(self, hook_name, kwargs):
298
- extra_environ = {'PEP517_BUILD_BACKEND': self.build_backend}
299
-
300
- if self.backend_path:
301
- backend_path = os.pathsep.join(self.backend_path)
302
- extra_environ['PEP517_BACKEND_PATH'] = backend_path
303
-
304
- with tempfile.TemporaryDirectory() as td:
305
- hook_input = {'kwargs': kwargs}
306
- write_json(hook_input, pjoin(td, 'input.json'), indent=2)
307
-
308
- # Run the hook in a subprocess
309
- with _in_proc_script_path() as script:
310
- python = self.python_executable
311
- self._subprocess_runner(
312
- [python, abspath(str(script)), hook_name, td],
313
- cwd=self.source_dir,
314
- extra_environ=extra_environ
315
- )
316
-
317
- data = read_json(pjoin(td, 'output.json'))
318
- if data.get('unsupported'):
319
- raise UnsupportedOperation(data.get('traceback', ''))
320
- if data.get('no_backend'):
321
- raise BackendUnavailable(data.get('traceback', ''))
322
- if data.get('backend_invalid'):
323
- raise BackendInvalid(
324
- backend_name=self.build_backend,
325
- backend_path=self.backend_path,
326
- message=data.get('backend_error', '')
327
- )
328
- if data.get('hook_missing'):
329
- raise HookMissing(data.get('missing_hook_name') or hook_name)
330
- return data['return_val']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/tenacity/tornadoweb.py DELETED
@@ -1,59 +0,0 @@
1
- # Copyright 2017 Elisey Zanko
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- import sys
16
- import typing
17
-
18
- from pip._vendor.tenacity import BaseRetrying
19
- from pip._vendor.tenacity import DoAttempt
20
- from pip._vendor.tenacity import DoSleep
21
- from pip._vendor.tenacity import RetryCallState
22
-
23
- from tornado import gen
24
-
25
- if typing.TYPE_CHECKING:
26
- from tornado.concurrent import Future
27
-
28
- _RetValT = typing.TypeVar("_RetValT")
29
-
30
-
31
- class TornadoRetrying(BaseRetrying):
32
- def __init__(self, sleep: "typing.Callable[[float], Future[None]]" = gen.sleep, **kwargs: typing.Any) -> None:
33
- super().__init__(**kwargs)
34
- self.sleep = sleep
35
-
36
- @gen.coroutine # type: ignore[misc]
37
- def __call__(
38
- self,
39
- fn: "typing.Callable[..., typing.Union[typing.Generator[typing.Any, typing.Any, _RetValT], Future[_RetValT]]]",
40
- *args: typing.Any,
41
- **kwargs: typing.Any,
42
- ) -> "typing.Generator[typing.Any, typing.Any, _RetValT]":
43
- self.begin()
44
-
45
- retry_state = RetryCallState(retry_object=self, fn=fn, args=args, kwargs=kwargs)
46
- while True:
47
- do = self.iter(retry_state=retry_state)
48
- if isinstance(do, DoAttempt):
49
- try:
50
- result = yield fn(*args, **kwargs)
51
- except BaseException: # noqa: B902
52
- retry_state.set_exception(sys.exc_info()) # type: ignore[arg-type]
53
- else:
54
- retry_state.set_result(result)
55
- elif isinstance(do, DoSleep):
56
- retry_state.prepare_for_next_attempt()
57
- yield self.sleep(do)
58
- else:
59
- raise gen.Return(do)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/setuptools/_distutils/spawn.py DELETED
@@ -1,109 +0,0 @@
1
- """distutils.spawn
2
-
3
- Provides the 'spawn()' function, a front-end to various platform-
4
- specific functions for launching another program in a sub-process.
5
- Also provides the 'find_executable()' to search the path for a given
6
- executable name.
7
- """
8
-
9
- import sys
10
- import os
11
- import subprocess
12
-
13
- from distutils.errors import DistutilsExecError
14
- from distutils.debug import DEBUG
15
- from distutils import log
16
-
17
-
18
- def spawn(cmd, search_path=1, verbose=0, dry_run=0, env=None): # noqa: C901
19
- """Run another program, specified as a command list 'cmd', in a new process.
20
-
21
- 'cmd' is just the argument list for the new process, ie.
22
- cmd[0] is the program to run and cmd[1:] are the rest of its arguments.
23
- There is no way to run a program with a name different from that of its
24
- executable.
25
-
26
- If 'search_path' is true (the default), the system's executable
27
- search path will be used to find the program; otherwise, cmd[0]
28
- must be the exact path to the executable. If 'dry_run' is true,
29
- the command will not actually be run.
30
-
31
- Raise DistutilsExecError if running the program fails in any way; just
32
- return on success.
33
- """
34
- # cmd is documented as a list, but just in case some code passes a tuple
35
- # in, protect our %-formatting code against horrible death
36
- cmd = list(cmd)
37
-
38
- log.info(subprocess.list2cmdline(cmd))
39
- if dry_run:
40
- return
41
-
42
- if search_path:
43
- executable = find_executable(cmd[0])
44
- if executable is not None:
45
- cmd[0] = executable
46
-
47
- env = env if env is not None else dict(os.environ)
48
-
49
- if sys.platform == 'darwin':
50
- from distutils.util import MACOSX_VERSION_VAR, get_macosx_target_ver
51
-
52
- macosx_target_ver = get_macosx_target_ver()
53
- if macosx_target_ver:
54
- env[MACOSX_VERSION_VAR] = macosx_target_ver
55
-
56
- try:
57
- proc = subprocess.Popen(cmd, env=env)
58
- proc.wait()
59
- exitcode = proc.returncode
60
- except OSError as exc:
61
- if not DEBUG:
62
- cmd = cmd[0]
63
- raise DistutilsExecError(
64
- "command {!r} failed: {}".format(cmd, exc.args[-1])
65
- ) from exc
66
-
67
- if exitcode:
68
- if not DEBUG:
69
- cmd = cmd[0]
70
- raise DistutilsExecError(
71
- "command {!r} failed with exit code {}".format(cmd, exitcode)
72
- )
73
-
74
-
75
- def find_executable(executable, path=None):
76
- """Tries to find 'executable' in the directories listed in 'path'.
77
-
78
- A string listing directories separated by 'os.pathsep'; defaults to
79
- os.environ['PATH']. Returns the complete filename or None if not found.
80
- """
81
- _, ext = os.path.splitext(executable)
82
- if (sys.platform == 'win32') and (ext != '.exe'):
83
- executable = executable + '.exe'
84
-
85
- if os.path.isfile(executable):
86
- return executable
87
-
88
- if path is None:
89
- path = os.environ.get('PATH', None)
90
- if path is None:
91
- try:
92
- path = os.confstr("CS_PATH")
93
- except (AttributeError, ValueError):
94
- # os.confstr() or CS_PATH is not available
95
- path = os.defpath
96
- # bpo-35755: Don't use os.defpath if the PATH environment variable is
97
- # set to an empty string
98
-
99
- # PATH='' doesn't match, whereas PATH=':' looks in the current directory
100
- if not path:
101
- return None
102
-
103
- paths = path.split(os.pathsep)
104
- for p in paths:
105
- f = os.path.join(p, executable)
106
- if os.path.isfile(f):
107
- # the file exists, we have a shot at spawn working
108
- return f
109
- return None
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/detail/reference.h DELETED
@@ -1,178 +0,0 @@
1
- /*
2
- * Copyright 2008-2013 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- #pragma once
18
-
19
- #include <thrust/detail/config.h>
20
- #include <thrust/detail/type_traits.h>
21
- #include <thrust/detail/use_default.h>
22
- #include <thrust/detail/reference_forward_declaration.h>
23
- #include <ostream>
24
-
25
-
26
- namespace thrust
27
- {
28
- namespace detail
29
- {
30
-
31
- template<typename> struct is_wrapped_reference;
32
-
33
- }
34
-
35
- // the base type for all of thrust's system-annotated references.
36
- // for reasonable reference-like semantics, derived types must reimplement the following:
37
- // 1. constructor from pointer
38
- // 2. copy constructor
39
- // 3. templated copy constructor from other reference
40
- // 4. templated assignment from other reference
41
- // 5. assignment from value_type
42
- template<typename Element, typename Pointer, typename Derived>
43
- class reference
44
- {
45
- private:
46
- typedef typename thrust::detail::eval_if<
47
- thrust::detail::is_same<Derived,use_default>::value,
48
- thrust::detail::identity_<reference>,
49
- thrust::detail::identity_<Derived>
50
- >::type derived_type;
51
-
52
- // hint for is_wrapped_reference lets it know that this type (or a derived type)
53
- // is a wrapped reference
54
- struct wrapped_reference_hint {};
55
- template<typename> friend struct thrust::detail::is_wrapped_reference;
56
-
57
- public:
58
- typedef Pointer pointer;
59
- typedef typename thrust::detail::remove_const<Element>::type value_type;
60
-
61
- __host__ __device__
62
- explicit reference(const pointer &ptr);
63
-
64
- #if THRUST_CPP_DIALECT >= 2011
65
- reference(const reference &) = default;
66
- #endif
67
-
68
- template<typename OtherElement, typename OtherPointer, typename OtherDerived>
69
- __host__ __device__
70
- reference(const reference<OtherElement,OtherPointer,OtherDerived> &other,
71
- typename thrust::detail::enable_if_convertible<
72
- typename reference<OtherElement,OtherPointer,OtherDerived>::pointer,
73
- pointer
74
- >::type * = 0);
75
-
76
- __host__ __device__
77
- derived_type &operator=(const reference &other);
78
-
79
- // XXX this may need an enable_if
80
- template<typename OtherElement, typename OtherPointer, typename OtherDerived>
81
- __host__ __device__
82
- derived_type &operator=(const reference<OtherElement,OtherPointer,OtherDerived> &other);
83
-
84
- __host__ __device__
85
- derived_type &operator=(const value_type &x);
86
-
87
- __host__ __device__
88
- pointer operator&() const;
89
-
90
- __host__ __device__
91
- operator value_type () const;
92
-
93
- __host__ __device__
94
- void swap(derived_type &other);
95
-
96
- derived_type &operator++();
97
-
98
- value_type operator++(int);
99
-
100
- // XXX parameterize the type of rhs
101
- derived_type &operator+=(const value_type &rhs);
102
-
103
- derived_type &operator--();
104
-
105
- value_type operator--(int);
106
-
107
- // XXX parameterize the type of rhs
108
- derived_type &operator-=(const value_type &rhs);
109
-
110
- // XXX parameterize the type of rhs
111
- derived_type &operator*=(const value_type &rhs);
112
-
113
- // XXX parameterize the type of rhs
114
- derived_type &operator/=(const value_type &rhs);
115
-
116
- // XXX parameterize the type of rhs
117
- derived_type &operator%=(const value_type &rhs);
118
-
119
- // XXX parameterize the type of rhs
120
- derived_type &operator<<=(const value_type &rhs);
121
-
122
- // XXX parameterize the type of rhs
123
- derived_type &operator>>=(const value_type &rhs);
124
-
125
- // XXX parameterize the type of rhs
126
- derived_type &operator&=(const value_type &rhs);
127
-
128
- // XXX parameterize the type of rhs
129
- derived_type &operator|=(const value_type &rhs);
130
-
131
- // XXX parameterize the type of rhs
132
- derived_type &operator^=(const value_type &rhs);
133
-
134
- private:
135
- const pointer m_ptr;
136
-
137
- // allow access to m_ptr for other references
138
- template <typename OtherElement, typename OtherPointer, typename OtherDerived> friend class reference;
139
-
140
- template<typename System>
141
- __host__ __device__
142
- inline value_type strip_const_get_value(const System &system) const;
143
-
144
- template<typename OtherPointer>
145
- __host__ __device__
146
- inline void assign_from(OtherPointer src);
147
-
148
- // XXX this helper exists only to avoid warnings about null references from the other assign_from
149
- template<typename System1, typename System2, typename OtherPointer>
150
- inline __host__ __device__
151
- void assign_from(System1 *system1, System2 *system2, OtherPointer src);
152
-
153
- template<typename System, typename OtherPointer>
154
- __host__ __device__
155
- inline void strip_const_assign_value(const System &system, OtherPointer src);
156
-
157
- // XXX this helper exists only to avoid warnings about null references from the other swap
158
- template<typename System>
159
- inline __host__ __device__
160
- void swap(System *system, derived_type &other);
161
-
162
- // XXX this helper exists only to avoid warnings about null references from operator value_type ()
163
- template<typename System>
164
- inline __host__ __device__
165
- value_type convert_to_value_type(System *system) const;
166
- }; // end reference
167
-
168
- // Output stream operator
169
- template<typename Element, typename Pointer, typename Derived,
170
- typename charT, typename traits>
171
- std::basic_ostream<charT, traits> &
172
- operator<<(std::basic_ostream<charT, traits> &os,
173
- const reference<Element, Pointer, Derived> &y);
174
-
175
- } // end thrust
176
-
177
- #include <thrust/detail/reference.inl>
178
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/partition.h DELETED
@@ -1,1439 +0,0 @@
1
- /*
2
- * Copyright 2008-2013 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
-
18
- /*! \file partition.h
19
- * \brief Reorganizes a range based on a predicate
20
- */
21
-
22
- #pragma once
23
-
24
- #include <thrust/detail/config.h>
25
- #include <thrust/detail/execution_policy.h>
26
- #include <thrust/pair.h>
27
-
28
- namespace thrust
29
- {
30
-
31
-
32
- /*! \addtogroup reordering
33
- * \ingroup algorithms
34
- *
35
- * \addtogroup partitioning
36
- * \ingroup reordering
37
- * \{
38
- */
39
-
40
-
41
- /*! \p partition reorders the elements <tt>[first, last)</tt> based on the function
42
- * object \p pred, such that all of the elements that satisfy \p pred precede the
43
- * elements that fail to satisfy it. The postcondition is that, for some iterator
44
- * \c middle in the range <tt>[first, last)</tt>, <tt>pred(*i)</tt> is \c true for every
45
- * iterator \c i in the range <tt>[first,middle)</tt> and \c false for every iterator
46
- * \c i in the range <tt>[middle, last)</tt>. The return value of \p partition is
47
- * \c middle.
48
- *
49
- * Note that the relative order of elements in the two reordered sequences is not
50
- * necessarily the same as it was in the original sequence. A different algorithm,
51
- * \p stable_partition, does guarantee to preserve the relative order.
52
- *
53
- * The algorithm's execution is parallelized as determined by \p exec.
54
- *
55
- * \param exec The execution policy to use for parallelization.
56
- * \param first The beginning of the sequence to reorder.
57
- * \param last The end of the sequence to reorder.
58
- * \param pred A function object which decides to which partition each element of the
59
- * sequence <tt>[first, last)</tt> belongs.
60
- * \return An iterator referring to the first element of the second partition, that is,
61
- * the sequence of the elements which do not satisfy \p pred.
62
- *
63
- * \tparam DerivedPolicy The name of the derived execution policy.
64
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
65
- * and \p ForwardIterator's \c value_type is convertible to \p Predicate's \c argument_type,
66
- * and \p ForwardIterator is mutable.
67
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
68
- *
69
- * The following code snippet demonstrates how to use \p partition to reorder a
70
- * sequence so that even numbers precede odd numbers using the \p thrust::host execution policy for parallelization:
71
- *
72
- * \code
73
- * #include <thrust/partition.h>
74
- * #include <thrust/execution_policy.h>
75
- * ...
76
- * struct is_even
77
- * {
78
- * __host__ __device__
79
- * bool operator()(const int &x)
80
- * {
81
- * return (x % 2) == 0;
82
- * }
83
- * };
84
- * ...
85
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
86
- * const int N = sizeof(A)/sizeof(int);
87
- * thrust::partition(thrust::host,
88
- * A, A + N,
89
- * is_even());
90
- * // A is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
91
- * \endcode
92
- *
93
- * \see http://www.sgi.com/tech/stl/partition.html
94
- * \see \p stable_partition
95
- * \see \p partition_copy
96
- */
97
- template<typename DerivedPolicy,
98
- typename ForwardIterator,
99
- typename Predicate>
100
- __host__ __device__
101
- ForwardIterator partition(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
102
- ForwardIterator first,
103
- ForwardIterator last,
104
- Predicate pred);
105
-
106
-
107
- /*! \p partition reorders the elements <tt>[first, last)</tt> based on the function
108
- * object \p pred, such that all of the elements that satisfy \p pred precede the
109
- * elements that fail to satisfy it. The postcondition is that, for some iterator
110
- * \c middle in the range <tt>[first, last)</tt>, <tt>pred(*i)</tt> is \c true for every
111
- * iterator \c i in the range <tt>[first,middle)</tt> and \c false for every iterator
112
- * \c i in the range <tt>[middle, last)</tt>. The return value of \p partition is
113
- * \c middle.
114
- *
115
- * Note that the relative order of elements in the two reordered sequences is not
116
- * necessarily the same as it was in the original sequence. A different algorithm,
117
- * \p stable_partition, does guarantee to preserve the relative order.
118
- *
119
- * \param first The beginning of the sequence to reorder.
120
- * \param last The end of the sequence to reorder.
121
- * \param pred A function object which decides to which partition each element of the
122
- * sequence <tt>[first, last)</tt> belongs.
123
- * \return An iterator referring to the first element of the second partition, that is,
124
- * the sequence of the elements which do not satisfy \p pred.
125
- *
126
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
127
- * and \p ForwardIterator's \c value_type is convertible to \p Predicate's \c argument_type,
128
- * and \p ForwardIterator is mutable.
129
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
130
- *
131
- * The following code snippet demonstrates how to use \p partition to reorder a
132
- * sequence so that even numbers precede odd numbers.
133
- *
134
- * \code
135
- * #include <thrust/partition.h>
136
- * ...
137
- * struct is_even
138
- * {
139
- * __host__ __device__
140
- * bool operator()(const int &x)
141
- * {
142
- * return (x % 2) == 0;
143
- * }
144
- * };
145
- * ...
146
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
147
- * const int N = sizeof(A)/sizeof(int);
148
- * thrust::partition(A, A + N,
149
- * is_even());
150
- * // A is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
151
- * \endcode
152
- *
153
- * \see http://www.sgi.com/tech/stl/partition.html
154
- * \see \p stable_partition
155
- * \see \p partition_copy
156
- */
157
- template<typename ForwardIterator,
158
- typename Predicate>
159
- ForwardIterator partition(ForwardIterator first,
160
- ForwardIterator last,
161
- Predicate pred);
162
-
163
-
164
- /*! \p partition reorders the elements <tt>[first, last)</tt> based on the function
165
- * object \p pred applied to a stencil range <tt>[stencil, stencil + (last - first))</tt>,
166
- * such that all of the elements whose corresponding stencil element satisfies \p pred precede all of the elements whose
167
- * corresponding stencil element fails to satisfy it. The postcondition is that, for some iterator
168
- * \c middle in the range <tt>[first, last)</tt>, <tt>pred(*stencil_i)</tt> is \c true for every iterator
169
- * \c stencil_i in the range <tt>[stencil,stencil + (middle - first))</tt> and \c false for every iterator \c stencil_i
170
- * in the range <tt>[stencil + (middle - first), stencil + (last - first))</tt>.
171
- * The return value of \p stable_partition is \c middle.
172
- *
173
- * Note that the relative order of elements in the two reordered sequences is not
174
- * necessarily the same as it was in the original sequence. A different algorithm,
175
- * \p stable_partition, does guarantee to preserve the relative order.
176
- *
177
- * The algorithm's execution is parallelized as determined by \p exec.
178
- *
179
- * \param exec The execution policy to use for parallelization.
180
- * \param first The beginning of the sequence to reorder.
181
- * \param last The end of the sequence to reorder.
182
- * \param stencil The beginning of the stencil sequence.
183
- * \param pred A function object which decides to which partition each element of the
184
- * sequence <tt>[first, last)</tt> belongs.
185
- * \return An iterator referring to the first element of the second partition, that is,
186
- * the sequence of the elements whose stencil elements do not satisfy \p pred.
187
- *
188
- * \tparam DerivedPolicy The name of the derived execution policy.
189
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
190
- * and \p ForwardIterator is mutable.
191
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
192
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type.
193
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
194
- *
195
- * \pre The ranges <tt>[first,last)</tt> and <tt>[stencil, stencil + (last - first))</tt> shall not overlap.
196
- *
197
- * The following code snippet demonstrates how to use \p partition to reorder a
198
- * sequence so that even numbers precede odd numbers using the \p thrust::host execution policy for parallelization:
199
- *
200
- * \code
201
- * #include <thrust/partition.h>
202
- * #include <thrust/execution_policy.h>
203
- * ...
204
- * struct is_even
205
- * {
206
- * __host__ __device__
207
- * bool operator()(const int &x)
208
- * {
209
- * return (x % 2) == 0;
210
- * }
211
- * };
212
- * ...
213
- * int A[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
214
- * int S[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
215
- * const int N = sizeof(A)/sizeof(int);
216
- * thrust::partition(thrust::host, A, A + N, S, is_even());
217
- * // A is now {1, 1, 1, 1, 1, 0, 0, 0, 0, 0}
218
- * // S is unmodified
219
- * \endcode
220
- *
221
- * \see http://www.sgi.com/tech/stl/partition.html
222
- * \see \p stable_partition
223
- * \see \p partition_copy
224
- */
225
- template<typename DerivedPolicy,
226
- typename ForwardIterator,
227
- typename InputIterator,
228
- typename Predicate>
229
- __host__ __device__
230
- ForwardIterator partition(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
231
- ForwardIterator first,
232
- ForwardIterator last,
233
- InputIterator stencil,
234
- Predicate pred);
235
-
236
-
237
- /*! \p partition reorders the elements <tt>[first, last)</tt> based on the function
238
- * object \p pred applied to a stencil range <tt>[stencil, stencil + (last - first))</tt>,
239
- * such that all of the elements whose corresponding stencil element satisfies \p pred precede all of the elements whose
240
- * corresponding stencil element fails to satisfy it. The postcondition is that, for some iterator
241
- * \c middle in the range <tt>[first, last)</tt>, <tt>pred(*stencil_i)</tt> is \c true for every iterator
242
- * \c stencil_i in the range <tt>[stencil,stencil + (middle - first))</tt> and \c false for every iterator \c stencil_i
243
- * in the range <tt>[stencil + (middle - first), stencil + (last - first))</tt>.
244
- * The return value of \p stable_partition is \c middle.
245
- *
246
- * Note that the relative order of elements in the two reordered sequences is not
247
- * necessarily the same as it was in the original sequence. A different algorithm,
248
- * \p stable_partition, does guarantee to preserve the relative order.
249
- *
250
- * \param first The beginning of the sequence to reorder.
251
- * \param last The end of the sequence to reorder.
252
- * \param stencil The beginning of the stencil sequence.
253
- * \param pred A function object which decides to which partition each element of the
254
- * sequence <tt>[first, last)</tt> belongs.
255
- * \return An iterator referring to the first element of the second partition, that is,
256
- * the sequence of the elements whose stencil elements do not satisfy \p pred.
257
- *
258
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
259
- * and \p ForwardIterator is mutable.
260
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
261
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type.
262
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
263
- *
264
- * \pre The ranges <tt>[first,last)</tt> and <tt>[stencil, stencil + (last - first))</tt> shall not overlap.
265
- *
266
- * The following code snippet demonstrates how to use \p partition to reorder a
267
- * sequence so that even numbers precede odd numbers.
268
- *
269
- * \code
270
- * #include <thrust/partition.h>
271
- * ...
272
- * struct is_even
273
- * {
274
- * __host__ __device__
275
- * bool operator()(const int &x)
276
- * {
277
- * return (x % 2) == 0;
278
- * }
279
- * };
280
- * ...
281
- * int A[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
282
- * int S[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
283
- * const int N = sizeof(A)/sizeof(int);
284
- * thrust::partition(A, A + N, S, is_even());
285
- * // A is now {1, 1, 1, 1, 1, 0, 0, 0, 0, 0}
286
- * // S is unmodified
287
- * \endcode
288
- *
289
- * \see http://www.sgi.com/tech/stl/partition.html
290
- * \see \p stable_partition
291
- * \see \p partition_copy
292
- */
293
- template<typename ForwardIterator,
294
- typename InputIterator,
295
- typename Predicate>
296
- ForwardIterator partition(ForwardIterator first,
297
- ForwardIterator last,
298
- InputIterator stencil,
299
- Predicate pred);
300
-
301
-
302
- /*! \p partition_copy differs from \p partition only in that the reordered
303
- * sequence is written to difference output sequences, rather than in place.
304
- *
305
- * \p partition_copy copies the elements <tt>[first, last)</tt> based on the
306
- * function object \p pred. All of the elements that satisfy \p pred are copied
307
- * to the range beginning at \p out_true and all the elements that fail to satisfy it
308
- * are copied to the range beginning at \p out_false.
309
- *
310
- * The algorithm's execution is parallelized as determined by \p exec.
311
- *
312
- * \param exec The execution policy to use for parallelization.
313
- * \param first The beginning of the sequence to reorder.
314
- * \param last The end of the sequence to reorder.
315
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
316
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
317
- * \param pred A function object which decides to which partition each element of the
318
- * sequence <tt>[first, last)</tt> belongs.
319
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
320
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
321
- * \p out_false.
322
- *
323
- * \tparam DerivedPolicy The name of the derived execution policy.
324
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
325
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type and \p InputIterator's \c value_type
326
- * is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
327
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
328
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
329
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
330
- *
331
- * \pre The input range shall not overlap with either output range.
332
- *
333
- * The following code snippet demonstrates how to use \p partition_copy to separate a
334
- * sequence into two output sequences of even and odd numbers using the \p thrust::host execution policy for parallelization:
335
- *
336
- * \code
337
- * #include <thrust/partition.h>
338
- * #include <thrust/execution_policy.h>
339
- * ...
340
- * struct is_even
341
- * {
342
- * __host__ __device__
343
- * bool operator()(const int &x)
344
- * {
345
- * return (x % 2) == 0;
346
- * }
347
- * };
348
- * ...
349
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
350
- * int result[10];
351
- * const int N = sizeof(A)/sizeof(int);
352
- * int *evens = result;
353
- * int *odds = result + 5;
354
- * thrust::partition_copy(thrust::host, A, A + N, evens, odds, is_even());
355
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
356
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
357
- * // evens points to {2, 4, 6, 8, 10}
358
- * // odds points to {1, 3, 5, 7, 9}
359
- * \endcode
360
- *
361
- * \note The relative order of elements in the two reordered sequences is not
362
- * necessarily the same as it was in the original sequence. A different algorithm,
363
- * \p stable_partition_copy, does guarantee to preserve the relative order.
364
- *
365
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
366
- * \see \p stable_partition_copy
367
- * \see \p partition
368
- */
369
- template<typename DerivedPolicy,
370
- typename InputIterator,
371
- typename OutputIterator1,
372
- typename OutputIterator2,
373
- typename Predicate>
374
- __host__ __device__
375
- thrust::pair<OutputIterator1,OutputIterator2>
376
- partition_copy(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
377
- InputIterator first,
378
- InputIterator last,
379
- OutputIterator1 out_true,
380
- OutputIterator2 out_false,
381
- Predicate pred);
382
-
383
-
384
- /*! \p partition_copy differs from \p partition only in that the reordered
385
- * sequence is written to difference output sequences, rather than in place.
386
- *
387
- * \p partition_copy copies the elements <tt>[first, last)</tt> based on the
388
- * function object \p pred. All of the elements that satisfy \p pred are copied
389
- * to the range beginning at \p out_true and all the elements that fail to satisfy it
390
- * are copied to the range beginning at \p out_false.
391
- *
392
- * \param first The beginning of the sequence to reorder.
393
- * \param last The end of the sequence to reorder.
394
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
395
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
396
- * \param pred A function object which decides to which partition each element of the
397
- * sequence <tt>[first, last)</tt> belongs.
398
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
399
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
400
- * \p out_false.
401
- *
402
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
403
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type and \p InputIterator's \c value_type
404
- * is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
405
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
406
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
407
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
408
- *
409
- * \pre The input range shall not overlap with either output range.
410
- *
411
- * The following code snippet demonstrates how to use \p partition_copy to separate a
412
- * sequence into two output sequences of even and odd numbers.
413
- *
414
- * \code
415
- * #include <thrust/partition.h>
416
- * ...
417
- * struct is_even
418
- * {
419
- * __host__ __device__
420
- * bool operator()(const int &x)
421
- * {
422
- * return (x % 2) == 0;
423
- * }
424
- * };
425
- * ...
426
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
427
- * int result[10];
428
- * const int N = sizeof(A)/sizeof(int);
429
- * int *evens = result;
430
- * int *odds = result + 5;
431
- * thrust::partition_copy(A, A + N, evens, odds, is_even());
432
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
433
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
434
- * // evens points to {2, 4, 6, 8, 10}
435
- * // odds points to {1, 3, 5, 7, 9}
436
- * \endcode
437
- *
438
- * \note The relative order of elements in the two reordered sequences is not
439
- * necessarily the same as it was in the original sequence. A different algorithm,
440
- * \p stable_partition_copy, does guarantee to preserve the relative order.
441
- *
442
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
443
- * \see \p stable_partition_copy
444
- * \see \p partition
445
- */
446
- template<typename InputIterator,
447
- typename OutputIterator1,
448
- typename OutputIterator2,
449
- typename Predicate>
450
- thrust::pair<OutputIterator1,OutputIterator2>
451
- partition_copy(InputIterator first,
452
- InputIterator last,
453
- OutputIterator1 out_true,
454
- OutputIterator2 out_false,
455
- Predicate pred);
456
-
457
-
458
- /*! \p partition_copy differs from \p partition only in that the reordered
459
- * sequence is written to difference output sequences, rather than in place.
460
- *
461
- * \p partition_copy copies the elements <tt>[first, last)</tt> based on the
462
- * function object \p pred which is applied to a range of stencil elements. All of the elements
463
- * whose corresponding stencil element satisfies \p pred are copied to the range beginning at \p out_true
464
- * and all the elements whose stencil element fails to satisfy it are copied to the range beginning
465
- * at \p out_false.
466
- *
467
- * The algorithm's execution is parallelized as determined by \p exec.
468
- *
469
- * \param exec The execution policy to use for parallelization.
470
- * \param first The beginning of the sequence to reorder.
471
- * \param last The end of the sequence to reorder.
472
- * \param stencil The beginning of the stencil sequence.
473
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
474
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
475
- * \param pred A function object which decides to which partition each element of the
476
- * sequence <tt>[first, last)</tt> belongs.
477
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
478
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
479
- * \p out_false.
480
- *
481
- * \tparam DerivedPolicy The name of the derived execution policy.
482
- * \tparam InputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
483
- * and \p InputIterator's \c value_type is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
484
- * \tparam InputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
485
- * and \p InputIterator2's \c value_type is convertible to \p Predicate's \c argument_type.
486
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
487
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
488
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
489
- *
490
- * \pre The input ranges shall not overlap with either output range.
491
- *
492
- * The following code snippet demonstrates how to use \p partition_copy to separate a
493
- * sequence into two output sequences of even and odd numbers using the \p thrust::host execution
494
- * policy for parallelization.
495
- *
496
- * \code
497
- * #include <thrust/partition.h>
498
- * #include <thrust/functional.h>
499
- * #include <thrust/execution_policy.h>
500
- * ...
501
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
502
- * int S[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
503
- * int result[10];
504
- * const int N = sizeof(A)/sizeof(int);
505
- * int *evens = result;
506
- * int *odds = result + 5;
507
- * thrust::stable_partition_copy(thrust::host, A, A + N, S, evens, odds, thrust::identity<int>());
508
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
509
- * // S remains {0, 1, 0, 1, 0, 1, 0, 1, 0, 1}
510
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
511
- * // evens points to {2, 4, 6, 8, 10}
512
- * // odds points to {1, 3, 5, 7, 9}
513
- * \endcode
514
- *
515
- * \note The relative order of elements in the two reordered sequences is not
516
- * necessarily the same as it was in the original sequence. A different algorithm,
517
- * \p stable_partition_copy, does guarantee to preserve the relative order.
518
- *
519
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
520
- * \see \p stable_partition_copy
521
- * \see \p partition
522
- */
523
- template<typename DerivedPolicy,
524
- typename InputIterator1,
525
- typename InputIterator2,
526
- typename OutputIterator1,
527
- typename OutputIterator2,
528
- typename Predicate>
529
- __host__ __device__
530
- thrust::pair<OutputIterator1,OutputIterator2>
531
- partition_copy(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
532
- InputIterator1 first,
533
- InputIterator1 last,
534
- InputIterator2 stencil,
535
- OutputIterator1 out_true,
536
- OutputIterator2 out_false,
537
- Predicate pred);
538
-
539
-
540
- /*! \p partition_copy differs from \p partition only in that the reordered
541
- * sequence is written to difference output sequences, rather than in place.
542
- *
543
- * \p partition_copy copies the elements <tt>[first, last)</tt> based on the
544
- * function object \p pred which is applied to a range of stencil elements. All of the elements
545
- * whose corresponding stencil element satisfies \p pred are copied to the range beginning at \p out_true
546
- * and all the elements whose stencil element fails to satisfy it are copied to the range beginning
547
- * at \p out_false.
548
- *
549
- * \param first The beginning of the sequence to reorder.
550
- * \param last The end of the sequence to reorder.
551
- * \param stencil The beginning of the stencil sequence.
552
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
553
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
554
- * \param pred A function object which decides to which partition each element of the
555
- * sequence <tt>[first, last)</tt> belongs.
556
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
557
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
558
- * \p out_false.
559
- *
560
- * \tparam InputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
561
- * and \p InputIterator's \c value_type is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
562
- * \tparam InputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
563
- * and \p InputIterator2's \c value_type is convertible to \p Predicate's \c argument_type.
564
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
565
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
566
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
567
- *
568
- * \pre The input ranges shall not overlap with either output range.
569
- *
570
- * The following code snippet demonstrates how to use \p partition_copy to separate a
571
- * sequence into two output sequences of even and odd numbers.
572
- *
573
- * \code
574
- * #include <thrust/partition.h>
575
- * #include <thrust/functional.h>
576
- * ...
577
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
578
- * int S[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
579
- * int result[10];
580
- * const int N = sizeof(A)/sizeof(int);
581
- * int *evens = result;
582
- * int *odds = result + 5;
583
- * thrust::stable_partition_copy(A, A + N, S, evens, odds, thrust::identity<int>());
584
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
585
- * // S remains {0, 1, 0, 1, 0, 1, 0, 1, 0, 1}
586
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
587
- * // evens points to {2, 4, 6, 8, 10}
588
- * // odds points to {1, 3, 5, 7, 9}
589
- * \endcode
590
- *
591
- * \note The relative order of elements in the two reordered sequences is not
592
- * necessarily the same as it was in the original sequence. A different algorithm,
593
- * \p stable_partition_copy, does guarantee to preserve the relative order.
594
- *
595
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
596
- * \see \p stable_partition_copy
597
- * \see \p partition
598
- */
599
- template<typename InputIterator1,
600
- typename InputIterator2,
601
- typename OutputIterator1,
602
- typename OutputIterator2,
603
- typename Predicate>
604
- thrust::pair<OutputIterator1,OutputIterator2>
605
- partition_copy(InputIterator1 first,
606
- InputIterator1 last,
607
- InputIterator2 stencil,
608
- OutputIterator1 out_true,
609
- OutputIterator2 out_false,
610
- Predicate pred);
611
-
612
-
613
- /*! \p stable_partition is much like \p partition : it reorders the elements in the
614
- * range <tt>[first, last)</tt> based on the function object \p pred, such that all of
615
- * the elements that satisfy \p pred precede all of the elements that fail to satisfy
616
- * it. The postcondition is that, for some iterator \p middle in the range
617
- * <tt>[first, last)</tt>, <tt>pred(*i)</tt> is \c true for every iterator \c i in the
618
- * range <tt>[first,middle)</tt> and \c false for every iterator \c i in the range
619
- * <tt>[middle, last)</tt>. The return value of \p stable_partition is \c middle.
620
- *
621
- * \p stable_partition differs from \p partition in that \p stable_partition is
622
- * guaranteed to preserve relative order. That is, if \c x and \c y are elements in
623
- * <tt>[first, last)</tt>, and \c stencil_x and \c stencil_y are the stencil elements
624
- * in corresponding positions within <tt>[stencil, stencil + (last - first))</tt>,
625
- * and <tt>pred(stencil_x) == pred(stencil_y)</tt>, and if \c x precedes
626
- * \c y, then it will still be true after \p stable_partition that \c x precedes \c y.
627
- *
628
- * The algorithm's execution is parallelized as determined by \p exec.
629
- *
630
- * \param exec The execution policy to use for parallelization.
631
- * \param first The first element of the sequence to reorder.
632
- * \param last One position past the last element of the sequence to reorder.
633
- * \param pred A function object which decides to which partition each element of the
634
- * sequence <tt>[first, last)</tt> belongs.
635
- * \return An iterator referring to the first element of the second partition, that is,
636
- * the sequence of the elements which do not satisfy pred.
637
- *
638
- * \tparam DerivedPolicy The name of the derived execution policy.
639
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
640
- * and \p ForwardIterator's \c value_type is convertible to \p Predicate's \c argument_type,
641
- * and \p ForwardIterator is mutable.
642
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
643
- *
644
- * The following code snippet demonstrates how to use \p stable_partition to reorder a
645
- * sequence so that even numbers precede odd numbers using the \p thrust::host execution policy for parallelization:
646
- *
647
- * \code
648
- * #include <thrust/partition.h>
649
- * #include <thrust/execution_policy.h>
650
- * ...
651
- * struct is_even
652
- * {
653
- * __host__ __device__
654
- * bool operator()(const int &x)
655
- * {
656
- * return (x % 2) == 0;
657
- * }
658
- * };
659
- * ...
660
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
661
- * const int N = sizeof(A)/sizeof(int);
662
- * thrust::stable_partition(thrust::host,
663
- * A, A + N,
664
- * is_even());
665
- * // A is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
666
- * \endcode
667
- *
668
- * \see http://www.sgi.com/tech/stl/stable_partition.html
669
- * \see \p partition
670
- * \see \p stable_partition_copy
671
- */
672
- template<typename DerivedPolicy,
673
- typename ForwardIterator,
674
- typename Predicate>
675
- __host__ __device__
676
- ForwardIterator stable_partition(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
677
- ForwardIterator first,
678
- ForwardIterator last,
679
- Predicate pred);
680
-
681
-
682
- /*! \p stable_partition is much like \p partition : it reorders the elements in the
683
- * range <tt>[first, last)</tt> based on the function object \p pred, such that all of
684
- * the elements that satisfy \p pred precede all of the elements that fail to satisfy
685
- * it. The postcondition is that, for some iterator \p middle in the range
686
- * <tt>[first, last)</tt>, <tt>pred(*i)</tt> is \c true for every iterator \c i in the
687
- * range <tt>[first,middle)</tt> and \c false for every iterator \c i in the range
688
- * <tt>[middle, last)</tt>. The return value of \p stable_partition is \c middle.
689
- *
690
- * \p stable_partition differs from \p partition in that \p stable_partition is
691
- * guaranteed to preserve relative order. That is, if \c x and \c y are elements in
692
- * <tt>[first, last)</tt>, and \c stencil_x and \c stencil_y are the stencil elements
693
- * in corresponding positions within <tt>[stencil, stencil + (last - first))</tt>,
694
- * and <tt>pred(stencil_x) == pred(stencil_y)</tt>, and if \c x precedes
695
- * \c y, then it will still be true after \p stable_partition that \c x precedes \c y.
696
- *
697
- * \param first The first element of the sequence to reorder.
698
- * \param last One position past the last element of the sequence to reorder.
699
- * \param pred A function object which decides to which partition each element of the
700
- * sequence <tt>[first, last)</tt> belongs.
701
- * \return An iterator referring to the first element of the second partition, that is,
702
- * the sequence of the elements which do not satisfy pred.
703
- *
704
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
705
- * and \p ForwardIterator's \c value_type is convertible to \p Predicate's \c argument_type,
706
- * and \p ForwardIterator is mutable.
707
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
708
- *
709
- * The following code snippet demonstrates how to use \p stable_partition to reorder a
710
- * sequence so that even numbers precede odd numbers.
711
- *
712
- * \code
713
- * #include <thrust/partition.h>
714
- * ...
715
- * struct is_even
716
- * {
717
- * __host__ __device__
718
- * bool operator()(const int &x)
719
- * {
720
- * return (x % 2) == 0;
721
- * }
722
- * };
723
- * ...
724
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
725
- * const int N = sizeof(A)/sizeof(int);
726
- * thrust::stable_partition(A, A + N,
727
- * is_even());
728
- * // A is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
729
- * \endcode
730
- *
731
- * \see http://www.sgi.com/tech/stl/stable_partition.html
732
- * \see \p partition
733
- * \see \p stable_partition_copy
734
- */
735
- template<typename ForwardIterator,
736
- typename Predicate>
737
- ForwardIterator stable_partition(ForwardIterator first,
738
- ForwardIterator last,
739
- Predicate pred);
740
-
741
-
742
- /*! \p stable_partition is much like \p partition: it reorders the elements in the
743
- * range <tt>[first, last)</tt> based on the function object \p pred applied to a stencil
744
- * range <tt>[stencil, stencil + (last - first))</tt>, such that all of
745
- * the elements whose corresponding stencil element satisfies \p pred precede all of the elements whose
746
- * corresponding stencil element fails to satisfy it. The postcondition is that, for some iterator
747
- * \c middle in the range <tt>[first, last)</tt>, <tt>pred(*stencil_i)</tt> is \c true for every iterator
748
- * \c stencil_i in the range <tt>[stencil,stencil + (middle - first))</tt> and \c false for every iterator \c stencil_i
749
- * in the range <tt>[stencil + (middle - first), stencil + (last - first))</tt>.
750
- * The return value of \p stable_partition is \c middle.
751
- *
752
- * \p stable_partition differs from \p partition in that \p stable_partition is
753
- * guaranteed to preserve relative order. That is, if \c x and \c y are elements in
754
- * <tt>[first, last)</tt>, such that <tt>pred(x) == pred(y)</tt>, and if \c x precedes
755
- * \c y, then it will still be true after \p stable_partition that \c x precedes \c y.
756
- *
757
- * The algorithm's execution is parallelized as determined by \p exec.
758
- *
759
- * \param exec The execution policy to use for parallelization.
760
- * \param first The first element of the sequence to reorder.
761
- * \param last One position past the last element of the sequence to reorder.
762
- * \param stencil The beginning of the stencil sequence.
763
- * \param pred A function object which decides to which partition each element of the
764
- * sequence <tt>[first, last)</tt> belongs.
765
- * \return An iterator referring to the first element of the second partition, that is,
766
- * the sequence of the elements whose stencil elements do not satisfy \p pred.
767
- *
768
- * \tparam DerivedPolicy The name of the derived execution policy.
769
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
770
- * and \p ForwardIterator is mutable.
771
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
772
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type.
773
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
774
- *
775
- * \pre The range <tt>[first, last)</tt> shall not overlap with the range <tt>[stencil, stencil + (last - first))</tt>.
776
- *
777
- * The following code snippet demonstrates how to use \p stable_partition to reorder a
778
- * sequence so that even numbers precede odd numbers using the \p thrust::host execution policy for parallelization:
779
- *
780
- * \code
781
- * #include <thrust/partition.h>
782
- * #include <thrust/execution_policy.h>
783
- * ...
784
- * struct is_even
785
- * {
786
- * __host__ __device__
787
- * bool operator()(const int &x)
788
- * {
789
- * return (x % 2) == 0;
790
- * }
791
- * };
792
- * ...
793
- * int A[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
794
- * int S[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
795
- * const int N = sizeof(A)/sizeof(int);
796
- * thrust::stable_partition(thrust::host, A, A + N, S, is_even());
797
- * // A is now {1, 1, 1, 1, 1, 0, 0, 0, 0, 0}
798
- * // S is unmodified
799
- * \endcode
800
- *
801
- * \see http://www.sgi.com/tech/stl/stable_partition.html
802
- * \see \p partition
803
- * \see \p stable_partition_copy
804
- */
805
- template<typename DerivedPolicy,
806
- typename ForwardIterator,
807
- typename InputIterator,
808
- typename Predicate>
809
- __host__ __device__
810
- ForwardIterator stable_partition(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
811
- ForwardIterator first,
812
- ForwardIterator last,
813
- InputIterator stencil,
814
- Predicate pred);
815
-
816
-
817
- /*! \p stable_partition is much like \p partition: it reorders the elements in the
818
- * range <tt>[first, last)</tt> based on the function object \p pred applied to a stencil
819
- * range <tt>[stencil, stencil + (last - first))</tt>, such that all of
820
- * the elements whose corresponding stencil element satisfies \p pred precede all of the elements whose
821
- * corresponding stencil element fails to satisfy it. The postcondition is that, for some iterator
822
- * \c middle in the range <tt>[first, last)</tt>, <tt>pred(*stencil_i)</tt> is \c true for every iterator
823
- * \c stencil_i in the range <tt>[stencil,stencil + (middle - first))</tt> and \c false for every iterator \c stencil_i
824
- * in the range <tt>[stencil + (middle - first), stencil + (last - first))</tt>.
825
- * The return value of \p stable_partition is \c middle.
826
- *
827
- * \p stable_partition differs from \p partition in that \p stable_partition is
828
- * guaranteed to preserve relative order. That is, if \c x and \c y are elements in
829
- * <tt>[first, last)</tt>, such that <tt>pred(x) == pred(y)</tt>, and if \c x precedes
830
- * \c y, then it will still be true after \p stable_partition that \c x precedes \c y.
831
- *
832
- * \param first The first element of the sequence to reorder.
833
- * \param last One position past the last element of the sequence to reorder.
834
- * \param stencil The beginning of the stencil sequence.
835
- * \param pred A function object which decides to which partition each element of the
836
- * sequence <tt>[first, last)</tt> belongs.
837
- * \return An iterator referring to the first element of the second partition, that is,
838
- * the sequence of the elements whose stencil elements do not satisfy \p pred.
839
- *
840
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
841
- * and \p ForwardIterator is mutable.
842
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
843
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type.
844
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
845
- *
846
- * \pre The range <tt>[first, last)</tt> shall not overlap with the range <tt>[stencil, stencil + (last - first))</tt>.
847
- *
848
- * The following code snippet demonstrates how to use \p stable_partition to reorder a
849
- * sequence so that even numbers precede odd numbers.
850
- *
851
- * \code
852
- * #include <thrust/partition.h>
853
- * ...
854
- * struct is_even
855
- * {
856
- * __host__ __device__
857
- * bool operator()(const int &x)
858
- * {
859
- * return (x % 2) == 0;
860
- * }
861
- * };
862
- * ...
863
- * int A[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
864
- * int S[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
865
- * const int N = sizeof(A)/sizeof(int);
866
- * thrust::stable_partition(A, A + N, S, is_even());
867
- * // A is now {1, 1, 1, 1, 1, 0, 0, 0, 0, 0}
868
- * // S is unmodified
869
- * \endcode
870
- *
871
- * \see http://www.sgi.com/tech/stl/stable_partition.html
872
- * \see \p partition
873
- * \see \p stable_partition_copy
874
- */
875
- template<typename ForwardIterator,
876
- typename InputIterator,
877
- typename Predicate>
878
- ForwardIterator stable_partition(ForwardIterator first,
879
- ForwardIterator last,
880
- InputIterator stencil,
881
- Predicate pred);
882
-
883
-
884
- /*! \p stable_partition_copy differs from \p stable_partition only in that the reordered
885
- * sequence is written to different output sequences, rather than in place.
886
- *
887
- * \p stable_partition_copy copies the elements <tt>[first, last)</tt> based on the
888
- * function object \p pred. All of the elements that satisfy \p pred are copied
889
- * to the range beginning at \p out_true and all the elements that fail to satisfy it
890
- * are copied to the range beginning at \p out_false.
891
- *
892
- * \p stable_partition_copy differs from \p partition_copy in that
893
- * \p stable_partition_copy is guaranteed to preserve relative order. That is, if
894
- * \c x and \c y are elements in <tt>[first, last)</tt>, such that
895
- * <tt>pred(x) == pred(y)</tt>, and if \c x precedes \c y, then it will still be true
896
- * after \p stable_partition_copy that \c x precedes \c y in the output.
897
- *
898
- * The algorithm's execution is parallelized as determined by \p exec.
899
- *
900
- * \param exec The execution policy to use for parallelization.
901
- * \param first The first element of the sequence to reorder.
902
- * \param last One position past the last element of the sequence to reorder.
903
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
904
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
905
- * \param pred A function object which decides to which partition each element of the
906
- * sequence <tt>[first, last)</tt> belongs.
907
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
908
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
909
- * \p out_false.
910
- *
911
- * \tparam DerivedPolicy The name of the derived execution policy.
912
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
913
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type and \p InputIterator's \c value_type
914
- * is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
915
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
916
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
917
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
918
- *
919
- * \pre The input ranges shall not overlap with either output range.
920
- *
921
- * The following code snippet demonstrates how to use \p stable_partition_copy to
922
- * reorder a sequence so that even numbers precede odd numbers using the \p thrust::host execution policy for parallelization:
923
- *
924
- * \code
925
- * #include <thrust/partition.h>
926
- * #include <thrust/execution_policy.h>
927
- * ...
928
- * struct is_even
929
- * {
930
- * __host__ __device__
931
- * bool operator()(const int &x)
932
- * {
933
- * return (x % 2) == 0;
934
- * }
935
- * };
936
- * ...
937
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
938
- * int result[10];
939
- * const int N = sizeof(A)/sizeof(int);
940
- * int *evens = result;
941
- * int *odds = result + 5;
942
- * thrust::stable_partition_copy(thrust::host, A, A + N, evens, odds, is_even());
943
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
944
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
945
- * // evens points to {2, 4, 6, 8, 10}
946
- * // odds points to {1, 3, 5, 7, 9}
947
- * \endcode
948
- *
949
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
950
- * \see \p partition_copy
951
- * \see \p stable_partition
952
- */
953
- template<typename DerivedPolicy,
954
- typename InputIterator,
955
- typename OutputIterator1,
956
- typename OutputIterator2,
957
- typename Predicate>
958
- __host__ __device__
959
- thrust::pair<OutputIterator1,OutputIterator2>
960
- stable_partition_copy(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
961
- InputIterator first,
962
- InputIterator last,
963
- OutputIterator1 out_true,
964
- OutputIterator2 out_false,
965
- Predicate pred);
966
-
967
-
968
- /*! \p stable_partition_copy differs from \p stable_partition only in that the reordered
969
- * sequence is written to different output sequences, rather than in place.
970
- *
971
- * \p stable_partition_copy copies the elements <tt>[first, last)</tt> based on the
972
- * function object \p pred. All of the elements that satisfy \p pred are copied
973
- * to the range beginning at \p out_true and all the elements that fail to satisfy it
974
- * are copied to the range beginning at \p out_false.
975
- *
976
- * \p stable_partition_copy differs from \p partition_copy in that
977
- * \p stable_partition_copy is guaranteed to preserve relative order. That is, if
978
- * \c x and \c y are elements in <tt>[first, last)</tt>, such that
979
- * <tt>pred(x) == pred(y)</tt>, and if \c x precedes \c y, then it will still be true
980
- * after \p stable_partition_copy that \c x precedes \c y in the output.
981
- *
982
- * \param first The first element of the sequence to reorder.
983
- * \param last One position past the last element of the sequence to reorder.
984
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
985
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
986
- * \param pred A function object which decides to which partition each element of the
987
- * sequence <tt>[first, last)</tt> belongs.
988
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
989
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
990
- * \p out_false.
991
- *
992
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
993
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type and \p InputIterator's \c value_type
994
- * is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
995
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
996
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
997
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
998
- *
999
- * \pre The input ranges shall not overlap with either output range.
1000
- *
1001
- * The following code snippet demonstrates how to use \p stable_partition_copy to
1002
- * reorder a sequence so that even numbers precede odd numbers.
1003
- *
1004
- * \code
1005
- * #include <thrust/partition.h>
1006
- * ...
1007
- * struct is_even
1008
- * {
1009
- * __host__ __device__
1010
- * bool operator()(const int &x)
1011
- * {
1012
- * return (x % 2) == 0;
1013
- * }
1014
- * };
1015
- * ...
1016
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
1017
- * int result[10];
1018
- * const int N = sizeof(A)/sizeof(int);
1019
- * int *evens = result;
1020
- * int *odds = result + 5;
1021
- * thrust::stable_partition_copy(A, A + N, evens, odds, is_even());
1022
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
1023
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
1024
- * // evens points to {2, 4, 6, 8, 10}
1025
- * // odds points to {1, 3, 5, 7, 9}
1026
- * \endcode
1027
- *
1028
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
1029
- * \see \p partition_copy
1030
- * \see \p stable_partition
1031
- */
1032
- template<typename InputIterator,
1033
- typename OutputIterator1,
1034
- typename OutputIterator2,
1035
- typename Predicate>
1036
- thrust::pair<OutputIterator1,OutputIterator2>
1037
- stable_partition_copy(InputIterator first,
1038
- InputIterator last,
1039
- OutputIterator1 out_true,
1040
- OutputIterator2 out_false,
1041
- Predicate pred);
1042
-
1043
-
1044
- /*! \p stable_partition_copy differs from \p stable_partition only in that the reordered
1045
- * sequence is written to different output sequences, rather than in place.
1046
- *
1047
- * \p stable_partition_copy copies the elements <tt>[first, last)</tt> based on the
1048
- * function object \p pred which is applied to a range of stencil elements. All of the elements
1049
- * whose corresponding stencil element satisfies \p pred are copied to the range beginning at \p out_true
1050
- * and all the elements whose stencil element fails to satisfy it are copied to the range beginning
1051
- * at \p out_false.
1052
- *
1053
- * \p stable_partition_copy differs from \p partition_copy in that
1054
- * \p stable_partition_copy is guaranteed to preserve relative order. That is, if
1055
- * \c x and \c y are elements in <tt>[first, last)</tt>, such that
1056
- * <tt>pred(x) == pred(y)</tt>, and if \c x precedes \c y, then it will still be true
1057
- * after \p stable_partition_copy that \c x precedes \c y in the output.
1058
- *
1059
- * The algorithm's execution is parallelized as determined by \p exec.
1060
- *
1061
- * \param exec The execution policy to use for parallelization.
1062
- * \param first The first element of the sequence to reorder.
1063
- * \param last One position past the last element of the sequence to reorder.
1064
- * \param stencil The beginning of the stencil sequence.
1065
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
1066
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
1067
- * \param pred A function object which decides to which partition each element of the
1068
- * sequence <tt>[first, last)</tt> belongs.
1069
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
1070
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
1071
- * \p out_false.
1072
- *
1073
- * \tparam DerivedPolicy The name of the derived execution policy.
1074
- * \tparam InputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
1075
- * and \p InputIterator's \c value_type is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
1076
- * \tparam InputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
1077
- * and \p InputIterator2's \c value_type is convertible to \p Predicate's \c argument_type.
1078
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
1079
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
1080
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
1081
- *
1082
- * \pre The input ranges shall not overlap with either output range.
1083
- *
1084
- * The following code snippet demonstrates how to use \p stable_partition_copy to
1085
- * reorder a sequence so that even numbers precede odd numbers using the \p thrust::host execution policy for parallelization:
1086
- *
1087
- * \code
1088
- * #include <thrust/partition.h>
1089
- * #include <thrust/functional.h>
1090
- * #include <thrust/execution_policy.h>
1091
- * ...
1092
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
1093
- * int S[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
1094
- * int result[10];
1095
- * const int N = sizeof(A)/sizeof(int);
1096
- * int *evens = result;
1097
- * int *odds = result + 5;
1098
- * thrust::stable_partition_copy(thrust::host, A, A + N, S, evens, odds, thrust::identity<int>());
1099
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
1100
- * // S remains {0, 1, 0, 1, 0, 1, 0, 1, 0, 1}
1101
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
1102
- * // evens points to {2, 4, 6, 8, 10}
1103
- * // odds points to {1, 3, 5, 7, 9}
1104
- * \endcode
1105
- *
1106
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
1107
- * \see \p partition_copy
1108
- * \see \p stable_partition
1109
- */
1110
- template<typename DerivedPolicy,
1111
- typename InputIterator1,
1112
- typename InputIterator2,
1113
- typename OutputIterator1,
1114
- typename OutputIterator2,
1115
- typename Predicate>
1116
- __host__ __device__
1117
- thrust::pair<OutputIterator1,OutputIterator2>
1118
- stable_partition_copy(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
1119
- InputIterator1 first,
1120
- InputIterator1 last,
1121
- InputIterator2 stencil,
1122
- OutputIterator1 out_true,
1123
- OutputIterator2 out_false,
1124
- Predicate pred);
1125
-
1126
-
1127
- /*! \p stable_partition_copy differs from \p stable_partition only in that the reordered
1128
- * sequence is written to different output sequences, rather than in place.
1129
- *
1130
- * \p stable_partition_copy copies the elements <tt>[first, last)</tt> based on the
1131
- * function object \p pred which is applied to a range of stencil elements. All of the elements
1132
- * whose corresponding stencil element satisfies \p pred are copied to the range beginning at \p out_true
1133
- * and all the elements whose stencil element fails to satisfy it are copied to the range beginning
1134
- * at \p out_false.
1135
- *
1136
- * \p stable_partition_copy differs from \p partition_copy in that
1137
- * \p stable_partition_copy is guaranteed to preserve relative order. That is, if
1138
- * \c x and \c y are elements in <tt>[first, last)</tt>, such that
1139
- * <tt>pred(x) == pred(y)</tt>, and if \c x precedes \c y, then it will still be true
1140
- * after \p stable_partition_copy that \c x precedes \c y in the output.
1141
- *
1142
- * \param first The first element of the sequence to reorder.
1143
- * \param last One position past the last element of the sequence to reorder.
1144
- * \param stencil The beginning of the stencil sequence.
1145
- * \param out_true The destination of the resulting sequence of elements which satisfy \p pred.
1146
- * \param out_false The destination of the resulting sequence of elements which fail to satisfy \p pred.
1147
- * \param pred A function object which decides to which partition each element of the
1148
- * sequence <tt>[first, last)</tt> belongs.
1149
- * \return A \p pair p such that <tt>p.first</tt> is the end of the output range beginning
1150
- * at \p out_true and <tt>p.second</tt> is the end of the output range beginning at
1151
- * \p out_false.
1152
- *
1153
- * \tparam InputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
1154
- * and \p InputIterator's \c value_type is convertible to \p OutputIterator1 and \p OutputIterator2's \c value_types.
1155
- * \tparam InputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/InputIterator.html">Input Iterator</a>,
1156
- * and \p InputIterator2's \c value_type is convertible to \p Predicate's \c argument_type.
1157
- * \tparam OutputIterator1 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
1158
- * \tparam OutputIterator2 is a model of <a href="http://www.sgi.com/tech/stl/OutputIterator.html">Output Iterator</a>.
1159
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
1160
- *
1161
- * \pre The input ranges shall not overlap with either output range.
1162
- *
1163
- * The following code snippet demonstrates how to use \p stable_partition_copy to
1164
- * reorder a sequence so that even numbers precede odd numbers.
1165
- *
1166
- * \code
1167
- * #include <thrust/partition.h>
1168
- * #include <thrust/functional.h>
1169
- * ...
1170
- * int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
1171
- * int S[] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
1172
- * int result[10];
1173
- * const int N = sizeof(A)/sizeof(int);
1174
- * int *evens = result;
1175
- * int *odds = result + 5;
1176
- * thrust::stable_partition_copy(A, A + N, S, evens, odds, thrust::identity<int>());
1177
- * // A remains {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
1178
- * // S remains {0, 1, 0, 1, 0, 1, 0, 1, 0, 1}
1179
- * // result is now {2, 4, 6, 8, 10, 1, 3, 5, 7, 9}
1180
- * // evens points to {2, 4, 6, 8, 10}
1181
- * // odds points to {1, 3, 5, 7, 9}
1182
- * \endcode
1183
- *
1184
- * \see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2569.pdf
1185
- * \see \p partition_copy
1186
- * \see \p stable_partition
1187
- */
1188
- template<typename InputIterator1,
1189
- typename InputIterator2,
1190
- typename OutputIterator1,
1191
- typename OutputIterator2,
1192
- typename Predicate>
1193
- thrust::pair<OutputIterator1,OutputIterator2>
1194
- stable_partition_copy(InputIterator1 first,
1195
- InputIterator1 last,
1196
- InputIterator2 stencil,
1197
- OutputIterator1 out_true,
1198
- OutputIterator2 out_false,
1199
- Predicate pred);
1200
-
1201
-
1202
- /*! \} // end stream_compaction
1203
- */
1204
-
1205
- /*! \} // end reordering
1206
- */
1207
-
1208
- /*! \addtogroup searching
1209
- * \{
1210
- */
1211
-
1212
-
1213
- /*! \p partition_point returns an iterator pointing to the end of the true
1214
- * partition of a partitioned range. \p partition_point requires the input range
1215
- * <tt>[first,last)</tt> to be a partition; that is, all elements which satisfy
1216
- * <tt>pred</tt> shall appear before those that do not.
1217
- *
1218
- * The algorithm's execution is parallelized as determined by \p exec.
1219
- *
1220
- * \param exec The execution policy to use for parallelization.
1221
- * \param first The beginning of the range to consider.
1222
- * \param last The end of the range to consider.
1223
- * \param pred A function object which decides to which partition each element of the
1224
- * range <tt>[first, last)</tt> belongs.
1225
- * \return An iterator \c mid such that <tt>all_of(first, mid, pred)</tt>
1226
- * and <tt>none_of(mid, last, pred)</tt> are both true.
1227
- *
1228
- * \tparam DerivedPolicy The name of the derived execution policy.
1229
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
1230
- * and \p ForwardIterator's \c value_type is convertible to \p Predicate's \c argument_type.
1231
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
1232
- *
1233
- * \pre The range <tt>[first, last)</tt> shall be partitioned by \p pred.
1234
- *
1235
- * \note Though similar, \p partition_point is not redundant with \p find_if_not.
1236
- * \p partition_point's precondition provides an opportunity for a
1237
- * faster implemention.
1238
- *
1239
- * \code
1240
- * #include <thrust/partition.h>
1241
- * #include <thrust/execution_policy.h>
1242
- *
1243
- * struct is_even
1244
- * {
1245
- * __host__ __device__
1246
- * bool operator()(const int &x)
1247
- * {
1248
- * return (x % 2) == 0;
1249
- * }
1250
- * };
1251
- *
1252
- * ...
1253
- *
1254
- * int A[] = {2, 4, 6, 8, 10, 1, 3, 5, 7, 9};
1255
- * int * B = thrust::partition_point(thrust::host, A, A + 10, is_even());
1256
- * // B - A is 5
1257
- * // [A, B) contains only even values
1258
- * \endcode
1259
- *
1260
- * \see \p partition
1261
- * \see \p find_if_not
1262
- */
1263
- template<typename DerivedPolicy, typename ForwardIterator, typename Predicate>
1264
- __host__ __device__
1265
- ForwardIterator partition_point(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
1266
- ForwardIterator first,
1267
- ForwardIterator last,
1268
- Predicate pred);
1269
-
1270
-
1271
- /*! \p partition_point returns an iterator pointing to the end of the true
1272
- * partition of a partitioned range. \p partition_point requires the input range
1273
- * <tt>[first,last)</tt> to be a partition; that is, all elements which satisfy
1274
- * <tt>pred</tt> shall appear before those that do not.
1275
- * \param first The beginning of the range to consider.
1276
- * \param last The end of the range to consider.
1277
- * \param pred A function object which decides to which partition each element of the
1278
- * range <tt>[first, last)</tt> belongs.
1279
- * \return An iterator \c mid such that <tt>all_of(first, mid, pred)</tt>
1280
- * and <tt>none_of(mid, last, pred)</tt> are both true.
1281
- *
1282
- * \tparam ForwardIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Forward Iterator</a>,
1283
- * and \p ForwardIterator's \c value_type is convertible to \p Predicate's \c argument_type.
1284
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
1285
- *
1286
- * \pre The range <tt>[first, last)</tt> shall be partitioned by \p pred.
1287
- *
1288
- * \note Though similar, \p partition_point is not redundant with \p find_if_not.
1289
- * \p partition_point's precondition provides an opportunity for a
1290
- * faster implemention.
1291
- *
1292
- * \code
1293
- * #include <thrust/partition.h>
1294
- *
1295
- * struct is_even
1296
- * {
1297
- * __host__ __device__
1298
- * bool operator()(const int &x)
1299
- * {
1300
- * return (x % 2) == 0;
1301
- * }
1302
- * };
1303
- *
1304
- * ...
1305
- *
1306
- * int A[] = {2, 4, 6, 8, 10, 1, 3, 5, 7, 9};
1307
- * int * B = thrust::partition_point(A, A + 10, is_even());
1308
- * // B - A is 5
1309
- * // [A, B) contains only even values
1310
- * \endcode
1311
- *
1312
- * \see \p partition
1313
- * \see \p find_if_not
1314
- */
1315
- template<typename ForwardIterator, typename Predicate>
1316
- ForwardIterator partition_point(ForwardIterator first,
1317
- ForwardIterator last,
1318
- Predicate pred);
1319
-
1320
- /*! \} // searching
1321
- */
1322
-
1323
- /*! \addtogroup reductions
1324
- * \{
1325
- * \addtogroup predicates
1326
- * \{
1327
- */
1328
-
1329
-
1330
- /*! \p is_partitioned returns \c true if the given range
1331
- * is partitioned with respect to a predicate, and \c false otherwise.
1332
- *
1333
- * Specifically, \p is_partitioned returns \c true if <tt>[first, last)</tt>
1334
- * is empty of if <tt>[first, last)</tt> is partitioned by \p pred, i.e. if
1335
- * all elements that satisfy \p pred appear before those that do not.
1336
- *
1337
- * The algorithm's execution is parallelized as determined by \p exec.
1338
- *
1339
- * \param exec The execution policy to use for parallelization.
1340
- * \param first The beginning of the range to consider.
1341
- * \param last The end of the range to consider.
1342
- * \param pred A function object which decides to which partition each element of the
1343
- * range <tt>[first, last)</tt> belongs.
1344
- * \return \c true if the range <tt>[first, last)</tt> is partitioned with respect
1345
- * to \p pred, or if <tt>[first, last)</tt> is empty. \c false, otherwise.
1346
- *
1347
- * \tparam DerivedPolicy The name of the derived execution policy.
1348
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Input Iterator</a>,
1349
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type.
1350
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
1351
- *
1352
- * \code
1353
- * #include <thrust/partition.h>
1354
- * #include <thrust/execution_policy.h>
1355
- *
1356
- * struct is_even
1357
- * {
1358
- * __host__ __device__
1359
- * bool operator()(const int &x)
1360
- * {
1361
- * return (x % 2) == 0;
1362
- * }
1363
- * };
1364
- *
1365
- * ...
1366
- *
1367
- * int A[] = {2, 4, 6, 8, 10, 1, 3, 5, 7, 9};
1368
- * int B[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
1369
- *
1370
- * thrust::is_partitioned(thrust::host, A, A + 10, is_even()); // returns true
1371
- * thrust::is_partitioned(thrust::host, B, B + 10, is_even()); // returns false
1372
- * \endcode
1373
- *
1374
- * \see \p partition
1375
- */
1376
- template<typename DerivedPolicy, typename InputIterator, typename Predicate>
1377
- __host__ __device__
1378
- bool is_partitioned(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
1379
- InputIterator first,
1380
- InputIterator last,
1381
- Predicate pred);
1382
-
1383
-
1384
- /*! \p is_partitioned returns \c true if the given range
1385
- * is partitioned with respect to a predicate, and \c false otherwise.
1386
- *
1387
- * Specifically, \p is_partitioned returns \c true if <tt>[first, last)</tt>
1388
- * is empty of if <tt>[first, last)</tt> is partitioned by \p pred, i.e. if
1389
- * all elements that satisfy \p pred appear before those that do not.
1390
- *
1391
- * \param first The beginning of the range to consider.
1392
- * \param last The end of the range to consider.
1393
- * \param pred A function object which decides to which partition each element of the
1394
- * range <tt>[first, last)</tt> belongs.
1395
- * \return \c true if the range <tt>[first, last)</tt> is partitioned with respect
1396
- * to \p pred, or if <tt>[first, last)</tt> is empty. \c false, otherwise.
1397
- *
1398
- * \tparam InputIterator is a model of <a href="http://www.sgi.com/tech/stl/ForwardIterator.html">Input Iterator</a>,
1399
- * and \p InputIterator's \c value_type is convertible to \p Predicate's \c argument_type.
1400
- * \tparam Predicate is a model of <a href="http://www.sgi.com/tech/stl/Predicate.html">Predicate</a>.
1401
- *
1402
- * \code
1403
- * #include <thrust/partition.h>
1404
- *
1405
- * struct is_even
1406
- * {
1407
- * __host__ __device__
1408
- * bool operator()(const int &x)
1409
- * {
1410
- * return (x % 2) == 0;
1411
- * }
1412
- * };
1413
- *
1414
- * ...
1415
- *
1416
- * int A[] = {2, 4, 6, 8, 10, 1, 3, 5, 7, 9};
1417
- * int B[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
1418
- *
1419
- * thrust::is_partitioned(A, A + 10, is_even()); // returns true
1420
- * thrust::is_partitioned(B, B + 10, is_even()); // returns false
1421
- * \endcode
1422
- *
1423
- * \see \p partition
1424
- */
1425
- template<typename InputIterator, typename Predicate>
1426
- bool is_partitioned(InputIterator first,
1427
- InputIterator last,
1428
- Predicate pred);
1429
-
1430
-
1431
- /*! \} // end predicates
1432
- * \} // end reductions
1433
- */
1434
-
1435
-
1436
- } // end thrust
1437
-
1438
- #include <thrust/detail/partition.inl>
1439
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/random/detail/normal_distribution_base.h DELETED
@@ -1,149 +0,0 @@
1
- /*
2
- * Copyright 2008-2013 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- /*
18
- * Copyright Jens Maurer 2000-2001
19
- * Distributed under the Boost Software License, Version 1.0. (See
20
- * accompanying file LICENSE_1_0.txt or copy at
21
- * http://www.boost.org/LICENSE_1_0.txt)
22
- */
23
-
24
- #pragma once
25
-
26
- #include <thrust/detail/config.h>
27
- #include <thrust/pair.h>
28
- #include <thrust/random/uniform_real_distribution.h>
29
- #include <limits>
30
- #include <cmath>
31
-
32
- namespace thrust
33
- {
34
- namespace random
35
- {
36
- namespace detail
37
- {
38
-
39
- // this version samples the normal distribution directly
40
- // and uses the non-standard math function erfcinv
41
- template<typename RealType>
42
- class normal_distribution_nvcc
43
- {
44
- protected:
45
- template<typename UniformRandomNumberGenerator>
46
- __host__ __device__
47
- RealType sample(UniformRandomNumberGenerator &urng, const RealType mean, const RealType stddev)
48
- {
49
- typedef typename UniformRandomNumberGenerator::result_type uint_type;
50
- const uint_type urng_range = UniformRandomNumberGenerator::max - UniformRandomNumberGenerator::min;
51
-
52
- // Constants for conversion
53
- const RealType S1 = static_cast<RealType>(1) / urng_range;
54
- const RealType S2 = S1 / 2;
55
-
56
- RealType S3 = static_cast<RealType>(-1.4142135623730950488016887242097); // -sqrt(2)
57
-
58
- // Get the integer value
59
- uint_type u = urng() - UniformRandomNumberGenerator::min;
60
-
61
- // Ensure the conversion to float will give a value in the range [0,0.5)
62
- if(u > (urng_range / 2))
63
- {
64
- u = urng_range - u;
65
- S3 = -S3;
66
- }
67
-
68
- // Convert to floating point in [0,0.5)
69
- RealType p = u*S1 + S2;
70
-
71
- // Apply inverse error function
72
- return mean + stddev * S3 * erfcinv(2 * p);
73
- }
74
-
75
- // no-op
76
- __host__ __device__
77
- void reset() {}
78
- };
79
-
80
- // this version samples the normal distribution using
81
- // Marsaglia's "polar method"
82
- template<typename RealType>
83
- class normal_distribution_portable
84
- {
85
- protected:
86
- normal_distribution_portable()
87
- : m_r1(), m_r2(), m_cached_rho(), m_valid(false)
88
- {}
89
-
90
- normal_distribution_portable(const normal_distribution_portable &other)
91
- : m_r1(other.m_r1), m_r2(other.m_r2), m_cached_rho(other.m_cached_rho), m_valid(other.m_valid)
92
- {}
93
-
94
- void reset()
95
- {
96
- m_valid = false;
97
- }
98
-
99
- // note that we promise to call this member function with the same mean and stddev
100
- template<typename UniformRandomNumberGenerator>
101
- __host__ __device__
102
- RealType sample(UniformRandomNumberGenerator &urng, const RealType mean, const RealType stddev)
103
- {
104
- // implementation from Boost
105
- // allow for Koenig lookup
106
- using std::sqrt; using std::log; using std::sin; using std::cos;
107
-
108
- if(!m_valid)
109
- {
110
- uniform_real_distribution<RealType> u01;
111
- m_r1 = u01(urng);
112
- m_r2 = u01(urng);
113
- m_cached_rho = sqrt(-RealType(2) * log(RealType(1)-m_r2));
114
-
115
- m_valid = true;
116
- }
117
- else
118
- {
119
- m_valid = false;
120
- }
121
-
122
- const RealType pi = RealType(3.14159265358979323846);
123
-
124
- RealType result = m_cached_rho * (m_valid ?
125
- cos(RealType(2)*pi*m_r1) :
126
- sin(RealType(2)*pi*m_r1));
127
-
128
- return mean + stddev * result;
129
- }
130
-
131
- private:
132
- RealType m_r1, m_r2, m_cached_rho;
133
- bool m_valid;
134
- };
135
-
136
- template<typename RealType>
137
- struct normal_distribution_base
138
- {
139
- #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC && !defined(__NVCOMPILER_CUDA__)
140
- typedef normal_distribution_nvcc<RealType> type;
141
- #else
142
- typedef normal_distribution_portable<RealType> type;
143
- #endif
144
- };
145
-
146
- } // end detail
147
- } // end random
148
- } // end thrust
149
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/system/cuda/detail/assign_value.h DELETED
@@ -1,102 +0,0 @@
1
- /*
2
- * Copyright 2008-2013 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- #pragma once
18
-
19
- #if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC
20
- #include <thrust/detail/config.h>
21
- #include <thrust/system/cuda/config.h>
22
- #include <thrust/system/cuda/detail/execution_policy.h>
23
- #include <thrust/detail/raw_pointer_cast.h>
24
- #include <thrust/system/cuda/detail/copy.h>
25
-
26
-
27
- namespace thrust
28
- {
29
- namespace cuda_cub {
30
-
31
-
32
- template<typename DerivedPolicy, typename Pointer1, typename Pointer2>
33
- inline __host__ __device__
34
- void assign_value(thrust::cuda::execution_policy<DerivedPolicy> &exec, Pointer1 dst, Pointer2 src)
35
- {
36
- // XXX war nvbugs/881631
37
- struct war_nvbugs_881631
38
- {
39
- __host__ inline static void host_path(thrust::cuda::execution_policy<DerivedPolicy> &exec, Pointer1 dst, Pointer2 src)
40
- {
41
- cuda_cub::copy(exec, src, src + 1, dst);
42
- }
43
-
44
- __device__ inline static void device_path(thrust::cuda::execution_policy<DerivedPolicy> &, Pointer1 dst, Pointer2 src)
45
- {
46
- *thrust::raw_pointer_cast(dst) = *thrust::raw_pointer_cast(src);
47
- }
48
- };
49
-
50
- if (THRUST_IS_HOST_CODE) {
51
- #if THRUST_INCLUDE_HOST_CODE
52
- war_nvbugs_881631::host_path(exec,dst,src);
53
- #endif
54
- } else {
55
- #if THRUST_INCLUDE_DEVICE_CODE
56
- war_nvbugs_881631::device_path(exec,dst,src);
57
- #endif
58
- }
59
- } // end assign_value()
60
-
61
-
62
- template<typename System1, typename System2, typename Pointer1, typename Pointer2>
63
- inline __host__ __device__
64
- void assign_value(cross_system<System1,System2> &systems, Pointer1 dst, Pointer2 src)
65
- {
66
- // XXX war nvbugs/881631
67
- struct war_nvbugs_881631
68
- {
69
- __host__ inline static void host_path(cross_system<System1,System2> &systems, Pointer1 dst, Pointer2 src)
70
- {
71
- // rotate the systems so that they are ordered the same as (src, dst)
72
- // for the call to thrust::copy
73
- cross_system<System2,System1> rotated_systems = systems.rotate();
74
- cuda_cub::copy(rotated_systems, src, src + 1, dst);
75
- }
76
-
77
- __device__ inline static void device_path(cross_system<System1,System2> &, Pointer1 dst, Pointer2 src)
78
- {
79
- // XXX forward the true cuda::execution_policy inside systems here
80
- // instead of materializing a tag
81
- thrust::cuda::tag cuda_tag;
82
- thrust::cuda_cub::assign_value(cuda_tag, dst, src);
83
- }
84
- };
85
-
86
- if (THRUST_IS_HOST_CODE) {
87
- #if THRUST_INCLUDE_HOST_CODE
88
- war_nvbugs_881631::host_path(systems,dst,src);
89
- #endif
90
- } else {
91
- #if THRUST_INCLUDE_DEVICE_CODE
92
- war_nvbugs_881631::device_path(systems,dst,src);
93
- #endif
94
- }
95
- } // end assign_value()
96
-
97
-
98
-
99
-
100
- } // end cuda_cub
101
- } // end namespace thrust
102
- #endif
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/system/detail/sequential/assign_value.h DELETED
@@ -1,43 +0,0 @@
1
- /*
2
- * Copyright 2008-2013 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- #pragma once
18
-
19
- #include <thrust/detail/config.h>
20
- #include <thrust/system/detail/sequential/execution_policy.h>
21
- #include <thrust/detail/raw_pointer_cast.h>
22
-
23
- namespace thrust
24
- {
25
- namespace system
26
- {
27
- namespace detail
28
- {
29
- namespace sequential
30
- {
31
-
32
- template<typename DerivedPolicy, typename Pointer1, typename Pointer2>
33
- __host__ __device__
34
- void assign_value(sequential::execution_policy<DerivedPolicy> &, Pointer1 dst, Pointer2 src)
35
- {
36
- *thrust::raw_pointer_cast(dst) = *thrust::raw_pointer_cast(src);
37
- } // end assign_value()
38
-
39
- } // end sequential
40
- } // end detail
41
- } // end system
42
- } // end thrust
43
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/system/omp/detail/get_value.h DELETED
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright 2008-2013 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- #pragma once
18
-
19
- #include <thrust/detail/config.h>
20
-
21
- // this system inherits get_value
22
- #include <thrust/system/cpp/detail/get_value.h>
23
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/lama-example/bin/blur_predicts.py DELETED
@@ -1,57 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- import os
4
-
5
- import cv2
6
- import numpy as np
7
- import tqdm
8
-
9
- from saicinpainting.evaluation.data import PrecomputedInpaintingResultsDataset
10
- from saicinpainting.evaluation.utils import load_yaml
11
-
12
-
13
- def main(args):
14
- config = load_yaml(args.config)
15
-
16
- if not args.predictdir.endswith('/'):
17
- args.predictdir += '/'
18
-
19
- dataset = PrecomputedInpaintingResultsDataset(args.datadir, args.predictdir, **config.dataset_kwargs)
20
-
21
- os.makedirs(os.path.dirname(args.outpath), exist_ok=True)
22
-
23
- for img_i in tqdm.trange(len(dataset)):
24
- pred_fname = dataset.pred_filenames[img_i]
25
- cur_out_fname = os.path.join(args.outpath, pred_fname[len(args.predictdir):])
26
- os.makedirs(os.path.dirname(cur_out_fname), exist_ok=True)
27
-
28
- sample = dataset[img_i]
29
- img = sample['image']
30
- mask = sample['mask']
31
- inpainted = sample['inpainted']
32
-
33
- inpainted_blurred = cv2.GaussianBlur(np.transpose(inpainted, (1, 2, 0)),
34
- ksize=(args.k, args.k),
35
- sigmaX=args.s, sigmaY=args.s,
36
- borderType=cv2.BORDER_REFLECT)
37
-
38
- cur_res = (1 - mask) * np.transpose(img, (1, 2, 0)) + mask * inpainted_blurred
39
- cur_res = np.clip(cur_res * 255, 0, 255).astype('uint8')
40
- cur_res = cv2.cvtColor(cur_res, cv2.COLOR_RGB2BGR)
41
- cv2.imwrite(cur_out_fname, cur_res)
42
-
43
-
44
- if __name__ == '__main__':
45
- import argparse
46
-
47
- aparser = argparse.ArgumentParser()
48
- aparser.add_argument('config', type=str, help='Path to evaluation config')
49
- aparser.add_argument('datadir', type=str,
50
- help='Path to folder with images and masks (output of gen_mask_dataset.py)')
51
- aparser.add_argument('predictdir', type=str,
52
- help='Path to folder with predicts (e.g. predict_hifill_baseline.py)')
53
- aparser.add_argument('outpath', type=str, help='Where to put results')
54
- aparser.add_argument('-s', type=float, default=0.1, help='Gaussian blur sigma')
55
- aparser.add_argument('-k', type=int, default=5, help='Kernel size in gaussian blur')
56
-
57
- main(aparser.parse_args())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/ml-talking-face/toxicity_estimator/module.py DELETED
@@ -1,51 +0,0 @@
1
- from googleapiclient import discovery
2
- import argparse
3
- import json
4
- import os
5
-
6
- API_KEY = os.environ['PERSPECTIVE_API_KEY']
7
-
8
- class PerspectiveAPI:
9
- def __init__(self):
10
- self.client = discovery.build(
11
- "commentanalyzer",
12
- "v1alpha1",
13
- developerKey=API_KEY,
14
- discoveryServiceUrl="https://commentanalyzer.googleapis.com/$discovery/rest?version=v1alpha1",
15
- static_discovery=False,
16
- )
17
- @staticmethod
18
- def _get_request(text):
19
- return {
20
- 'comment': {'text': text},
21
- 'requestedAttributes': {'TOXICITY': {}}
22
- }
23
-
24
- def _infer(self, text):
25
- request = self._get_request(text)
26
- response = self.client.comments().analyze(body=request).execute()
27
- return response
28
-
29
- def infer(self, text):
30
- return self._infer(text)
31
-
32
- def get_score(self, text, label='TOXICITY'):
33
- response = self._infer(text)
34
- return response['attributeScores'][label]['spanScores'][0]['score']['value']
35
-
36
-
37
- def parse_args():
38
- parser = argparse.ArgumentParser(
39
- description='Perspective API Test.')
40
- parser.add_argument('-i', '--input-text', type=str, required=True)
41
- args = parser.parse_args()
42
- return args
43
-
44
-
45
- if __name__ == '__main__':
46
- args = parse_args()
47
-
48
- perspective_api = PerspectiveAPI()
49
- score = perspective_api.get_score(args.input_text)
50
-
51
- print(score)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Chloe0222/Chloe/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Chloe
3
- emoji: 🐢
4
- colorFrom: gray
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 3.18.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/gradio/templates/cdn/assets/TabItem.svelte_svelte_type_style_lang-1276453b.js DELETED
@@ -1,2 +0,0 @@
1
- import{S as G,e as H,s as K,G as w,a9 as O,N as j,O as T,K as k,U as A,p as g,M as v,H as P,ay as Q,ab as R,ac as U,ad as F,z as J,v as L,A as p,w as I,a4 as S,B as V,D as W,m as B,aA as C,P as N,Q as X,R as z}from"./index-1d65707a.js";function D(n,e,l){const s=n.slice();return s[14]=e[l],s[16]=l,s}function Y(n){let e,l=n[14].name+"",s,f,d,_;function i(){return n[12](n[14],n[16])}return{c(){e=j("button"),s=N(l),f=T(),k(e,"class","svelte-kqij2n")},m(u,m){g(u,e,m),v(e,s),v(e,f),d||(_=X(e,"click",i),d=!0)},p(u,m){n=u,m&8&&l!==(l=n[14].name+"")&&z(s,l)},d(u){u&&p(e),d=!1,_()}}}function Z(n){let e,l=n[14].name+"",s,f;return{c(){e=j("button"),s=N(l),f=T(),k(e,"class","selected svelte-kqij2n")},m(d,_){g(d,e,_),v(e,s),v(e,f)},p(d,_){_&8&&l!==(l=d[14].name+"")&&z(s,l)},d(d){d&&p(e)}}}function M(n,e){let l,s;function f(i,u){return i[14].id===i[4]?Z:Y}let d=f(e),_=d(e);return{key:n,first:null,c(){l=B(),_.c(),s=B(),this.first=l},m(i,u){g(i,l,u),_.m(i,u),g(i,s,u)},p(i,u){e=i,d===(d=f(e))&&_?_.p(e,u):(_.d(1),_=d(e),_&&(_.c(),_.m(s.parentNode,s)))},d(i){i&&(p(l),p(s)),_.d(i)}}}function x(n){let e,l,s=[],f=new Map,d,_,i,u=w(n[3]);const m=t=>t[14].id;for(let t=0;t<u.length;t+=1){let o=D(n,u,t),r=m(o);f.set(r,s[t]=M(r,o))}const b=n[11].default,c=O(b,n,n[10],null);return{c(){e=j("div"),l=j("div");for(let t=0;t<s.length;t+=1)s[t].c();d=T(),c&&c.c(),k(l,"class","tab-nav scroll-hide svelte-kqij2n"),k(e,"class",_="tabs "+n[2].join(" ")+" svelte-kqij2n"),k(e,"id",n[1]),A(e,"hide",!n[0])},m(t,o){g(t,e,o),v(e,l);for(let r=0;r<s.length;r+=1)s[r]&&s[r].m(l,null);v(e,d),c&&c.m(e,null),i=!0},p(t,[o]){o&408&&(u=w(t[3]),s=P(s,o,m,1,t,u,f,l,Q,M,null,D)),c&&c.p&&(!i||o&1024)&&R(c,b,t,t[10],i?F(b,t[10],o,null):U(t[10]),null),(!i||o&4&&_!==(_="tabs "+t[2].join(" ")+" svelte-kqij2n"))&&k(e,"class",_),(!i||o&2)&&k(e,"id",t[1]),(!i||o&5)&&A(e,"hide",!t[0])},i(t){i||(J(c,t),i=!0)},o(t){L(c,t),i=!1},d(t){t&&p(e);for(let o=0;o<s.length;o+=1)s[o].d();c&&c.d(t)}}}const $={};function ee(n,e,l){let s,f,{$$slots:d={},$$scope:_}=e,{visible:i=!0}=e,{elem_id:u="id"}=e,{elem_classes:m=[]}=e,{selected:b}=e,c=[];const t=I(!1);S(n,t,a=>l(4,f=a));const o=I(0);S(n,o,a=>l(13,s=a));const r=V();W($,{register_tab:a=>(c.push({name:a.name,id:a.id}),t.update(h=>h??a.id),l(3,c),c.length-1),unregister_tab:a=>{const h=c.findIndex(y=>y.id===a.id);c.splice(h,1),t.update(y=>y===a.id?c[h]?.id||c[c.length-1]?.id:y)},selected_tab:t,selected_tab_index:o});function q(a){l(9,b=a),C(t,f=a,f),C(o,s=c.findIndex(h=>h.id===a),s),r("change")}const E=(a,h)=>{q(a.id),r("select",{value:a.name,index:h})};return n.$$set=a=>{"visible"in a&&l(0,i=a.visible),"elem_id"in a&&l(1,u=a.elem_id),"elem_classes"in a&&l(2,m=a.elem_classes),"selected"in a&&l(9,b=a.selected),"$$scope"in a&&l(10,_=a.$$scope)},n.$$.update=()=>{n.$$.dirty&512&&b!==null&&q(b)},[i,u,m,c,f,t,o,r,q,b,_,d,E]}class le extends G{constructor(e){super(),H(this,e,ee,x,K,{visible:0,elem_id:1,elem_classes:2,selected:9})}}export{le as T,$ as a};
2
- //# sourceMappingURL=TabItem.svelte_svelte_type_style_lang-1276453b.js.map