<commit_before>[![Build Status](http://img.shields.io/travis/kylepjohnson/python_bootstrap.svg?style=flat)](https://travis-ci.org/kylepjohnson/python_bootstrap)


About
-----
This is a shell script for an automated build of the latest version of Python 2 (2.7.x) or 3 (3.6.x) on an LTS version of Ubuntu (the build server on Travis CI currently uses 14.04). All prerequisite software is installed and all default Python features are enabled.

Use
---

``` bash
curl -O https://raw.githubusercontent.com/kylepjohnson/python_bootstrap/master/install.sh

chmod +x install.sh

./install.sh 3
```

To get Python 2, run `./install.sh 2` instead. For optimized builds (i.e., to build with `./configure --enable-optimizations`), add the flag "optimize" after (e.g., `./install 3 optimize`). This slows the build down significantly however can offer runtime improvements of 10-20% ([source](https://stackoverflow.com/a/41408261)).

To test if installation was successful, create a vitual environment (`python3.6 -m venv venv-name`, for Python 3), enable it (`source venv-name/bin/activate`), and check the version (`python --version`).


LICENSE
-------
Copyright (c) 2014 <NAME>, under the MIT License. See file LICENSE for details.<commit_msg>mv optimizations to own block<commit_after>[![Build Status](http://img.shields.io/travis/kylepjohnson/python_bootstrap.svg?style=flat)](https://travis-ci.org/kylepjohnson/python_bootstrap)


About
-----
This is a shell script for an automated build of the latest version of Python 2 (2.7.x) or 3 (3.6.x) on an LTS version of Ubuntu (the build server on Travis CI currently uses 14.04). All prerequisite software is installed and all default Python features are enabled.

Use
---

``` bash
curl -O https://raw.githubusercontent.com/kylepjohnson/python_bootstrap/master/install.sh

chmod +x install.sh

./install.sh 3  # installs Python 3

./install.sh 2  # installs Python 2
```

For optimized builds (i.e., to build with `./configure --enable-optimizations`), add the flag "optimize" after (e.g., `./install 3 optimize`). This slows the build down significantly however can offer runtime improvements of 10-20% ([source](https://stackoverflow.com/a/41408261)).

``` bash
./install.sh 3 optimize  # installs Python 3 optimize  # speeds code, but slower installation

./install.sh 2 optimize  # installs Python 2 optimize  # speeds code, but slower installation
```

To test if installation was successful, create a vitual environment (`python3.6 -m venv venv-name`, for Python 3), enable it (`source venv-name/bin/activate`), and check the version (`python --version`).


LICENSE
-------
Copyright (c) 2014 <NAME>, under the MIT License. See file LICENSE for details.
{'fraction_non_alphanumeric': 0.1236121391561806, 'fraction_numerical': 0.026276831976313843, 'mean_word_length': 4.1, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '1705933', 'n_tokens_mistral': 884, 'n_tokens_neox': 777, 'n_words': 310}