Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /trisongz_lazyops /src /lazyops /libs /sqlite /utils.py
| import re | |
| from typing import Optional | |
| alphanumeric_pattern = re.compile(r'[^a-zA-Z0-9]') | |
| def normalize_sql_text(text: Optional[str]) -> Optional[str]: | |
| """ | |
| Normalizes the text to be indexed/queried | |
| """ | |
| if text is None or not text.strip(): return None | |
| return alphanumeric_pattern.sub(' ', text).replace(' ', ' ').replace(' ', ' ').strip() | |
Xet Storage Details
- Size:
- 361 Bytes
- Xet hash:
- 7ed9cb9c4ddee0b92d4d783d10331560ea76734533347ca619ee93514a4ccc74
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.