⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib
/
python3
/
dist-packages
/
rich
/
__pycache__
/
View File Name :
_wrap.cpython-312.pyc
"TeL v d dl mZ d dlZd dlmZ ddlmZ ddlmZm Z ej d ZddZddd Z ed k( r{ddlmZ ed Zej# d e e dd ed Zej% ej# d ej% ej# d yy) )annotationsN)Iterable ) loop_last)cell_len chop_cellsz \s*\S+\s*c # K d}t j | | }|E|j \ }}|j d }|||f t j | | }|Dyyw)zYields each word from the text as a tuple containing (start_index, end_index, word). A "word" in this context may include the actual word and any whitespace to the right. r N)re_wordmatchspangroup)textposition word_matchstartendwords ,/usr/lib/python3/dist-packages/rich/_wrap.pywordsr sh HtX.J __& s"S$]]4- s AA#!A#c g }|j }d}t }t | D ] \ }}} || j } ||z }|| k\ }|r| || z }5| |kD rY|rDt | | } t | D ]( \ }}|r || |r || }|t | z }* |r || || }|s|s || || } |S )a Given a string of text, and a width (measured in cells), return a list of cell offsets which the string should be split at in order for it to fit within the given width. Args: text: The text to examine. width: The available cell width. fold: If True, words longer than `width` will be folded onto a new line. Returns: A list of indices to break the line at. r width)appendr r rstripr r len)r r foldbreak_positionsr cell_offset _cell_lenr _endr word_lengthremaining_spaceword_fits_remaining_spacefolded_wordlastlines r divide_liner' s "$O # #FKI"4[tT .+-$3{$B!$9T?*K U" ",T"?K&/&< d "5M*3D/K!SY.E '= u "+D/K u 'oA )D __main__)Console r z@12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345abcdefghijklmnopqrstuvwxyz uR TextualはPythonの高速アプリケーション開発フレームワークですu4 アプリケーションは1670万色を使用でき)r strreturnzIterable[tuple[int, int, str]])T)r r. r intr boolr/ z list[int]) __future__r retypingr _loopr cellsr r compiler r r' __name__consoler* printrule r( r
r= s " ' "**\ ".4n z BGMMTU *12 67BGLLNMMfgLLNMMHI r(