This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class ApiClient { | |
private baseUrl: string | |
private config: RequestInit | |
private afterRequest: ((response: Response) => Response)[] | |
private beforeRequest: ((config: RequestInit) => RequestInit)[] | |
constructor({ | |
baseUrl, | |
signal, | |
credentials, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def clean_text(text): | |
cleaned_str = re.sub('[^а-яїіґє\\s]+', '',text,flags=re.IGNORECASE) | |
cleaned_str = re.sub('(\\s+)', ' ',cleaned_str) | |
cleaned_str = cleaned_str.lower() | |
return cleaned_str |