<commit_before>= urllib.repy =

This module provides many url modifying functions which allow for urls to be safely used in URL or XML documents.

Please note that although one may include module directly, this module is included by a lot of other files where its needed. See [wiki:xmlrpc_server.repy]. This means in most cases the programmers should not have to include this module. Only in special cases do clients need to uses this module directly. This wiki page can be used as a reference to what urllib.repy can do.

=== Classes & Functions ===
{{{
def urllib_quote(inputstring, safestring="/"):
}}}
    Encode an inputstring such that it can be used safely in a URL or XML document.

    Notes: [[BR]]
    * inputstring is the string to be encode.
    * safestring is an optional parameter which specifies additional characters that should not be quoted - defaults to "/".
    * Raises TypeError if the inputstring or safestring parameters aren't strings.
    * Returns the correctly encoded version of the passed string.

{{{
def urllib_quote_plus(inputstring, safestring=""):
}}}
    Encode a string to go in the query fragment of a URL.

    Notes: [[BR]]
    * inputstring is the string to be encode.
    * safestring is an optional parameter which specifies additional characters that should not be quoted - defaults to "/".
    * Raises TypeError if the inputstring or safestring parameters aren't strings.
    * Returns the correctly encoded version of the passed string.

{{{
def urllib_unquote(inputstring):
}}}
   Unquote a urlencoded string, i.e. decodes the URL string.

   Notes: [[BR]]
   * inputstring is the string to unquote.<commit_msg>Revision 6 of SeattleLib/urllib.repy<commit_after>= urllib.repy =

This module provides many url modifying functions which allow for urls to be safely used in URL or XML documents.

Please note that although one may include module directly, this module is included by a lot of other files where its needed. See [wiki:SeattleLib/xmlrpc_server.repy]. This means in most cases the programmers should not have to include this module. Only in special cases do clients need to uses this module directly. This wiki page can be used as a reference to what urllib.repy can do.

=== Classes & Functions ===
{{{
def urllib_quote(inputstring, safestring="/"):
}}}
    Encode an inputstring such that it can be used safely in a URL or XML document.

    Notes: [[BR]]
    * inputstring is the string to be encode.
    * safestring is an optional parameter which specifies additional characters that should not be quoted - defaults to "/".
    * Raises TypeError if the inputstring or safestring parameters aren't strings.
    * Returns the correctly encoded version of the passed string.

{{{
def urllib_quote_plus(inputstring, safestring=""):
}}}
    Encode a string to go in the query fragment of a URL.

    Notes: [[BR]]
    * inputstring is the string to be encode.
    * safestring is an optional parameter which specifies additional characters that should not be quoted - defaults to "/".
    * Raises TypeError if the inputstring or safestring parameters aren't strings.
    * Returns the correctly encoded version of the passed string.

{{{
def urllib_unquote(inputstring):
}}}
   Unquote a urlencoded string, i.e. decodes the URL string.

   Notes: [[BR]]
   * inputstring is the string to unquote.
{'fraction_non_alphanumeric': 0.0664481525625745, 'fraction_numerical': 0.0002979737783075089, 'mean_word_length': 3.8302158273381295, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1975427', 'n_tokens_mistral': 885, 'n_tokens_neox': 856, 'n_words': 460}