<commit_before>.. This file is automatically generated. Do not edit this file directly.

Google Translate API Python Samples
===============================================================================

This directory contains samples for Google Translate API. With `Google Translate API`, you can dynamically translate text between thousands of language pairs.




.. _Google Translate API: https://cloud.google.com/translate/docs 

Setup
-------------------------------------------------------------------------------


Authentication
++++++++++++++

Authentication is typically done through `Application Default Credentials`_,
which means you do not have to change the code to authenticate as long as
your environment has credentials. You have a few options for setting up
authentication:

#. When running locally, use the `Google Cloud SDK`_

    .. code-block:: bash
<commit_msg>Update translate readme<commit_after>.. This file is automatically generated. Do not edit this file directly.

Google Translation API Python Samples
===============================================================================

This directory contains samples for Google Translation API. With `Google Translation API`, you can dynamically translate text between thousands of language pairs.




.. _Google Translation API: https://cloud.google.com/translate/docs 

Setup
-------------------------------------------------------------------------------


Authentication
++++++++++++++

Authentication is typically done through `Application Default Credentials`_,
which means you do not have to change the code to authenticate as long as
your environment has credentials. You have a few options for setting up
authentication:

#. When running locally, use the `Google Cloud SDK`_

    .. code-block:: bash

{'fraction_non_alphanumeric': 0.23325892857142858, 'fraction_numerical': 0.0, 'mean_word_length': 3.199063231850117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '117869', 'n_tokens_mistral': 376, 'n_tokens_neox': 335, 'n_words': 184}