ACIL FM
Dark
Refresh
Current DIR:
/opt/cloudlinux/venv/lib/python3.11/site-packages/pydocstyle
/
opt
cloudlinux
venv
lib
python3.11
site-packages
pydocstyle
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
data
-
chmod
Open
Rename
Delete
__pycache__
-
chmod
Open
Rename
Delete
checker.py
43.83 MB
chmod
View
DL
Edit
Rename
Delete
cli.py
2.92 MB
chmod
View
DL
Edit
Rename
Delete
config.py
32.7 MB
chmod
View
DL
Edit
Rename
Delete
parser.py
27.63 MB
chmod
View
DL
Edit
Rename
Delete
utils.py
1.26 MB
chmod
View
DL
Edit
Rename
Delete
violations.py
12.12 MB
chmod
View
DL
Edit
Rename
Delete
wordlists.py
1.51 MB
chmod
View
DL
Edit
Rename
Delete
_version.py
400 B
chmod
View
DL
Edit
Rename
Delete
__init__.py
194 B
chmod
View
DL
Edit
Rename
Delete
__main__.py
288 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cloudlinux/venv/lib/python3.11/site-packages/pydocstyle/wordlists.py
"""Wordlists loaded from package data. We can treat them as part of the code for the imperative mood check, and therefore we load them at import time, rather than on-demand. """ import pkgutil import re from typing import Dict, Iterator, Set import snowballstemmer #: Regular expression for stripping comments from the wordlists COMMENT_RE = re.compile(r'\s*#.*') #: Stemmer function for stemming words in English stem = snowballstemmer.stemmer('english').stemWord def load_wordlist(name: str) -> Iterator[str]: """Iterate over lines of a wordlist data file. `name` should be the name of a package data file within the data/ directory. Whitespace and #-prefixed comments are stripped from each line. """ data = pkgutil.get_data('pydocstyle', 'data/' + name) if data is not None: text = data.decode('utf8') for line in text.splitlines(): line = COMMENT_RE.sub('', line).strip() if line: yield line def make_imperative_verbs_dict(wordlist: Iterator[str]) -> Dict[str, Set[str]]: """Create a dictionary mapping stemmed verbs to the imperative form.""" imperative_verbs = {} # type: Dict[str, Set[str]] for word in wordlist: imperative_verbs.setdefault(stem(word), set()).add(word) return imperative_verbs IMPERATIVE_VERBS = make_imperative_verbs_dict(load_wordlist('imperatives.txt')) #: Words that are forbidden to appear as the first word in a docstring IMPERATIVE_BLACKLIST = set(load_wordlist('imperatives_blacklist.txt'))
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply