<commit_before># README for pymex #

pymex embeds a Python interpreter into MATLAB and provides support 
for interaction between them. It does not (currently) allow interaction 
with MATLAB through any arbitrary process - see the 'pymat' project for that. 

License is currently standard MIT/X11. See the LICENSE file.

If you're not sure how you got this, the git repository can be found at:
http://github.com/kw/pymex

See the Issues section near the bottom if you have problems, or send me
a message on GitHub, or maybe even send me an e-mail (<EMAIL>)

# Requirements #

* MATLAB 2008b or higher. 
* Python 2.6. Probably needs shared rather than static.
  No Py3k support yet, but I'm trying to minimize porting
  issues. No NumPy for Py3k yet anyway.
* NumPy. Not a build requirement, but you'll definitely want it.
* (optional) nose, for running unit tests.
* Not Windows. This isn't a zealotry thing, I just don't normally 
  have a Windows machine with all of the above available, so I doubt
  the Makefile will work right. There's a chance it might work with 
  cygwin, but it will probably need modification to work properly.

# Installation #

1. Clone or untar this somewhere.
2. Ensure that MATLAB's mex command is configured. Run `mex -setup` 
   if it isn't. (this can be done from within MATLAB or using the 
   mex script in MATLAB's bin dir)
3. Run `make` in that directory. If your configuration is not as 
   expected you can specify some of the environment variables, like 
   `make PYTHON=~/bin/python2.7`
4. If by some miracle that actually worked and you've got nose, try 
   `make test`. Note that you can't just run `nosetests` because the 
   necessary modules only exist within MATLAB. On some systems this 
   may fail rather hard -- see issue #1
5. Add the pymex directory to MATLAB's path. pymex will add itself
   to your Python path.

# Usage #

For some examples, see `python_example.py` and `matlab_example.py`.

`help pymex` might be helpful.<commit_msg>Note about the win32 branch<commit_after># README for pymex #

pymex embeds a Python interpreter into MATLAB and provides support 
for interaction between them. It does not (currently) allow interaction 
with MATLAB through any arbitrary process - see the 'pymat' project for that. 

License is currently standard MIT/X11. See the LICENSE file.

If you're not sure how you got this, the git repository can be found at:
http://github.com/kw/pymex

See the Issues section near the bottom if you have problems, or send me
a message on GitHub, or maybe even send me an e-mail (<EMAIL>)

# Requirements #

* MATLAB 2008b or higher. 
* Python 2.6. Probably needs shared rather than static.
  No Py3k support yet, but I'm trying to minimize porting
  issues. No NumPy for Py3k yet anyway.
* NumPy. Not a build requirement, but you'll definitely want it.
* (optional) nose, for running unit tests.
* If you're using windows, use the win32 branch, and see the
  COMPILING_WINDOWS.md file.

# Installation #

1. Clone or untar this somewhere.
2. Ensure that MATLAB's mex command is configured. Run `mex -setup` 
   if it isn't. (this can be done from within MATLAB or using the 
   mex script in MATLAB's bin dir)
3. Run `make` in that directory. If your configuration is not as 
   expected you can specify some of the environment variables, like 
   `make PYTHON=~/bin/python2.7`
4. If by some miracle that actually worked and you've got nose, try 
   `make test`. Note that you can't just run `nosetests` because the 
   necessary modules only exist within MATLAB. On some systems this 
   may fail rather hard -- see issue #1
5. Add the pymex directory to MATLAB's path. pymex will add itself
   to your Python path.

# Usage #

For some examples, see `python_example.py` and `matlab_example.py`.

`help pymex` might be helpful.
{'fraction_non_alphanumeric': 0.06190975865687303, 'fraction_numerical': 0.01049317943336831, 'mean_word_length': 3.6443361753958587, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '158705', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1082, 'n_words': 590}