<commit_before># atom-python-run package
[![GitHub issues](https://img.shields.io/github/issues/foreshadow/atom-python-run.svg?style=plastic)](https://github.com/foreshadow/atom-python-run/issues)
[![GitHub stars](https://img.shields.io/github/stars/foreshadow/atom-python-run.svg?style=plastic)](https://github.com/foreshadow/atom-python-run/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/foreshadow/atom-python-run.svg?style=plastic)](https://github.com/foreshadow/atom-python-run/network)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=plastic)](https://raw.githubusercontent.com/foreshadow/atom-python-run/master/LICENSE.md)

Run your python (.py) source file using `F5` or `F6`!

![](https://cloud.githubusercontent.com/assets/2712675/18710388/9a665ed8-8037-11e6-803a-35e4555e89d0.jpg)
# Prerequisite

- Add the directory of `python` (or the intended interpreter) to ```PATH```.

- Filter file extensions (unset by default) (optional)

# Supports
- Python 2 and 3
  - Note: If you have problems executing, you can install a global version of latest `python2.7.x` (even if you have `python3.x.x` installed). Please report any `python3` issues if you want to avoid installing a global `python2` version.

- Cross Platform Compatible
  - Runs on Windows, Mac OS X, and Linux

- True Arbitrary Execution
  - Global python is the default interpreter
  - Execute using any interpreter
  - Pass options to the given interpreter

# Method of use

1. Open a source file.
2. Hit `F5` or `F6` to run.
  - **It will save the file in current editor immediately without a confirmation, be aware.**

# Features

- Using `python`
  - Almost the same console with python IDLE, which provides syntax error and runtime error messages.
- CodeBlocks debug console style
  - Shows return value and execution time
    - It is a rough time based on real time rather than CPU kernel time or CPU user time
- New an issue if you have any idea of new features.

# Issues
- The new version of atom-python-run fully supports logging.
  - Please post these logs with along with issue you're experiencing.
  - Note that there are two logs in case the latter fails. The first log is the console log and the second log is created by the cp main.py executable.

- How to access Atoms Console Log
  - Windows/Linux
    - Ctrl + Shift + I
  - Mac OS X
    - Cmd + Alt + I
  - Copy and paste the console output along with your post.

- How to access `cp`'s built-in log
  - Windows
    1. Open file explorer
    2. Click the location bar (where the file path usually is)
    3. Type in %userprofile%\.atom\packages\atom-python-run
    4. Locate, Open, and Copy the contents of the cp.log file along with your post.
  - Mac OS X/Linux
    1. Open a terminal window.
    `$ cat ~/.atom/packages/atom-python-run/cp.log`
    2. Copy and paste the contents along with your post.
  - NOTE: If the `cp.log` file is missing or empty, please note that this was case in your post.

- Detailed issues are well presented issues. This will help us locate your issue.

![A screenshot of your package](https://f.cloud.github.com/assets/69169/2290250/c35d867a-a017-11e3-86be-cd7c5bf3ff9b.gif)

This is a package for Atom<commit_msg>Updated and refactored readme to reflect current version.<commit_after># atom-python-run package
[![GitHub issues](https://img.shields.io/github/issues/foreshadow/atom-python-run.svg?style=plastic)](https://github.com/foreshadow/atom-python-run/issues)
[![GitHub stars](https://img.shields.io/github/stars/foreshadow/atom-python-run.svg?style=plastic)](https://github.com/foreshadow/atom-python-run/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/foreshadow/atom-python-run.svg?style=plastic)](https://github.com/foreshadow/atom-python-run/network)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=plastic)](https://raw.githubusercontent.com/foreshadow/atom-python-run/master/LICENSE.md)

Run your python (.py) source file using `F5` or `F6`!

![](https://cloud.githubusercontent.com/assets/2712675/18710388/9a665ed8-8037-11e6-803a-35e4555e89d0.jpg)
# Prerequisite

- Add the directory of `python` (or the intended interpreter) to ```PATH```.

- Filter file extensions (unset by default) (optional)

# Supports
- Python 2 and 3
  - Note: If you have problems executing, you can install a global version of latest `python2.7.x` (even if you have `python3.x.x` installed). Please report any `python3` issues if you want to avoid installing a global `python2` version.

- Cross Platform Compatible
  - Runs on Windows, Mac OS X, and Linux

- True Arbitrary Execution
  - Global python is the default interpreter
  - Execute using any interpreter
  - Pass options to the given interpreter

# Method of use

1. Open a source file.
2. Hit `F5` or `F6` to run.
  - **It will save the file in current editor immediately without a confirmation, be aware.**

# Features

- Using `python`
  - Almost the same console with python IDLE, which provides syntax error and runtime error messages.
- CodeBlocks debug console style
  - Shows return value and execution time
    - It is a rough time based on real time rather than CPU kernel time or CPU user time
- New an issue if you have any idea of new features.

# Issues
- The new version of atom-python-run fully supports logging.
  - Please post these logs with along with issue you're experiencing.
  - Note that there are two logs in case the latter fails. The first log is the console log and the second log is created by the cp main.py executable.

- How to access Atoms Console Log
  - Windows/Linux
    - Ctrl + Shift + I
  - Mac OS X
    - Cmd + Alt + I
  - Copy and paste the console output along with your post.

- How to access `cp`'s built-in log
  - Windows
    1. Open file explorer
    2. Click the location bar (where the file path usually is)
    3. Type in %userprofile%\.atom\packages\atom-python-run
    4. Locate, Open, and Copy the contents of the cp.log file along with your post.
  - Mac OS X/Linux
    1. Open a terminal window.
    `$ cat ~/.atom/packages/atom-python-run/cp.log`
    2. Copy and paste the contents along with your post.
  - NOTE: If the `cp.log` file is missing, empty, or inaccurate, please note that this was case in your post.

- Detailed issues are well presented issues. This will help us locate your issue.

![A screenshot of your package](https://f.cloud.github.com/assets/69169/2290250/c35d867a-a017-11e3-86be-cd7c5bf3ff9b.gif)

This is a package for Atom
{'fraction_non_alphanumeric': 0.10268610897927859, 'fraction_numerical': 0.026707597851112815, 'mean_word_length': 3.6542857142857144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, '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': '4565030', 'n_tokens_mistral': 2146, 'n_tokens_neox': 2007, 'n_words': 757}