<commit_before>===========================================
 Getting Started with Schevo using Windows
===========================================


Below, we describe in detail how to install Schevo for Microsoft
Windows.  The instructions have been tested on the following operating
systems:

* Microsoft Windows XP SP2 or higher.


Install Python
==============

1. Download the Windows installer for Python 2.5 by visiting the
   `2.5.1 release page
   <http://www.python.org/download/releases/2.5.1/>`__ and downloading
   the ``python-2.5.1.msi`` file.

2. Open the ``msi`` file to start the installation process.

3. Step through the Python installer, accepting the default values for
   each step.

4. Add the following directories to your `PATH` environment variable
   (see `Setting Environment Variables`_ below):

   * ``c:\python25``

   * ``c:\python25\scripts``

5. Test your Python installation by clicking *Start*, *Run...*, and
   entering ``cmd`` to start a command prompt. When the command prompt
   window appears, enter ``python``. You should the be greeted with
   the Python interactive shell, which will look similar to this::

     Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) ...
     Type "help", "copyright", "credits", or "license" ...
     >>>

   To exit the Python shell, press Ctrl-Z and press Enter.


Install `pywin32` extensions
============================

1. Visit the `pywin32 download page
   <http://sourceforge.net/project/showfiles.php?group_id=78018&package_id=79063>`__
   and download the most recent package that ends with ``py2.5.exe``.
   For example, at the time of this writing that file would be
   ``pywin32-210.win32-py2.5.exe``.

2. Open the file you downloaded in step 1 to start the installation
   process.

3. Step through the installer, accepting default values for each step.

4. At the end of the installer, check the install log to see if it
   contains this message at the bottom of the log::

     ******************** WARNING ********************
     It appears that the MFC DLL 'mfc71.dll' is not installed
     Pythonwin will not work without this DLL, and I haven't had the
     time to package it in with the installer.

     You can download this DLL from:
     http://starship.python.net/crew/mhammond/win32/
     **************************************************

   If you see that message, browse to the `URL it mentions
   <http://starship.python.net/crew/mhammond/win32/>`__ and follow the
   instructions under the `MFC DLLs for Pythonwin` heading for
   downloading and installing the ``mfc71.dll`` file.


Download workingenv and set up an environment for Schevo
========================================================

1. Download `workingenv.py
   <http://svn.colorstudy.com/home/ianb/workingenv/workingenv.py>`__
   to ``c:\python25\scripts``.

2. If it doesn't exist, create a ``c:\env`` folder using Windows
   Explorer or a command prompt.

3. In a command prompt, create the environment::

    python c:\python25\scripts\workingenv.py --site-packages c:\env\schevo


Activate the Schevo environment
===============================

In a command prompt, run these commands to activate the Schevo
environment and change to its source directory::

    c:\env\schevo\bin\activate.bat

You'll see ``(schevo)`` added to your prompt.  Repeat this section
every time you want to access the ``schevo`` working environment.


Installing Schevo
=================

In a command prompt, use *EasyInstall* to install the latest release
of Schevo::

    easy_install Schevo


What to do after Schevo is installed
====================================<commit_msg>Update Windows install instructions to use virtualenv<commit_after>===========================================
 Getting Started with Schevo using Windows
===========================================


Below, we describe in detail how to install Schevo for Microsoft
Windows.  The instructions have been tested on the following operating
systems:

* Microsoft Windows XP SP2 or higher.


Install Python
==============

1. Download the Windows installer for Python 2.5 by visiting the
   `2.5.1 release page
   <http://www.python.org/download/releases/2.5.1/>`__ and downloading
   the ``python-2.5.1.msi`` file.

2. Open the ``msi`` file to start the installation process.

3. Step through the Python installer, accepting the default values for
   each step.

4. Add the following directories to your `PATH` environment variable
   (see `Setting Environment Variables`_ below):

   * ``c:\python25``

   * ``c:\python25\scripts``

5. Test your Python installation by clicking *Start*, *Run...*, and
   entering ``cmd`` to start a command prompt. When the command prompt
   window appears, enter ``python``. You should the be greeted with
   the Python interactive shell, which will look similar to this::

     Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) ...
     Type "help", "copyright", "credits", or "license" ...
     >>>

   To exit the Python shell, press Ctrl-Z and press Enter.


Install `pywin32` extensions
============================

1. Visit the `pywin32 download page
   <http://sourceforge.net/project/showfiles.php?group_id=78018&package_id=79063>`__
   and download the most recent package that ends with ``py2.5.exe``.
   For example, at the time of this writing that file would be
   ``pywin32-210.win32-py2.5.exe``.

2. Open the file you downloaded in step 1 to start the installation
   process.

3. Step through the installer, accepting default values for each step.

4. At the end of the installer, check the install log to see if it
   contains this message at the bottom of the log::

     ******************** WARNING ********************
     It appears that the MFC DLL 'mfc71.dll' is not installed
     Pythonwin will not work without this DLL, and I haven't had the
     time to package it in with the installer.

     You can download this DLL from:
     http://starship.python.net/crew/mhammond/win32/
     **************************************************

   If you see that message, browse to the `URL it mentions
   <http://starship.python.net/crew/mhammond/win32/>`__ and follow the
   instructions under the `MFC DLLs for Pythonwin` heading for
   downloading and installing the ``mfc71.dll`` file.


Download Easy Install and virtualenv and set up an environment for Schevo
=========================================================================

1. Install `Easy Install
   <http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install>`__
   per the instructions at that link.

2. Install `virtualenv <http://pypi.python.org/pypi/virtualenv>`__ by
   running this at a command prompt::

     easy_install virtualenv

3. In a command prompt, create the environment::

     virtualenv c:\env\schevo


Activate the Schevo environment
===============================

In a command prompt, run this command to activate the Schevo
environment and change to its source directory::

    c:\env\schevo\scripts\activate

You'll see ``(schevo)`` added to your prompt.  Repeat this section
every time you want to access the ``schevo`` working environment.


Installing Schevo
=================

In a command prompt, use *EasyInstall* to install the latest release
of Schevo::

    easy_install Schevo


What to do after Schevo is installed
====================================
{'fraction_non_alphanumeric': 0.1745148595467499, 'fraction_numerical': 0.023612430451893065, 'mean_word_length': 3.9966101694915253, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2958603', 'n_tokens_mistral': 2125, 'n_tokens_neox': 1921, 'n_words': 851}