<jupyter_start><jupyter_text>settings<jupyter_code># settings
PATH_REPOSITORY_PUBLIC = "https://github.com/buschNT/deep_learning_public.git"<jupyter_output><empty_output><jupyter_text>tensorflow 2Update to tensorflow 2 (if required).<jupyter_code>%%capture

import tensorflow as tf
import os

version = tf.__version__
if(version[0] != '2'):
  !pip install tensorflow==2.0.0-alpha0
  os.kill(os.getpid(), 9)<jupyter_output><empty_output><jupyter_text>clone git repositories (public + private)- Clone public repository. Install module `colab` from repository.- Mount Google Drive.- Load configuration form `colab_configuration.yaml`.- Clone private repository. Required information are stored in `colab_configuration.yaml`. Install module `my_keras` from repository.<jupyter_code>%%capture

# clone public repository
PATH_CODE_PUBLIC = 'code_public'
!mkdir "{PATH_CODE_PUBLIC}"
!git clone {PATH_REPOSITORY_PUBLIC} "{PATH_CODE_PUBLIC}"

# install
%cd ./{PATH_CODE_PUBLIC}/colab
!python "setup.py" install

# import
import colab
%cd ~/../content/
# mount drive
colab.mount_drive()
# load configuration
configuration = colab.get_configuration('/content/drive/My Drive/colab_configuration.yaml')
%%capture

# clone private repository
GIT_USERNAME, GIT_TOKEN, GIT_REPOSITORY, PATH_CODE_PRIVATE = colab.get_repository_configuration_private(configuration)
!mkdir "{PATH_CODE_PRIVATE}"
!git clone https://{GIT_TOKEN}@github.com/{GIT_USERNAME}/{GIT_REPOSITORY}.git "{PATH_CODE_PRIVATE}"

# install
%cd ./{PATH_CODE_PRIVATE}/my_keras
!python "setup.py" install

# import
import my_keras
%cd ~/../content/<jupyter_output><empty_output><jupyter_text>CODE<jupyter_code># CODE<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12130177514792899, 'fraction_numerical': 0.0053254437869822485, 'mean_word_length': 7.455, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '234426', 'license': 'MIT', 'n_tokens_mistral': 593, 'n_tokens_neox': 577, 'n_words': 115, 'path': 'setup_repository.ipynb', 'repo_name': 'buschNT/colab', 'size': '1690'}