<commit_before># Meta-Search, a web application powered by Django.

## Live DEMO:
  http://zeyang.alwaysdata.net

## Main features:
- Aggregated and non-aggregated search mode
- Client-side and server-side validation
- Query pre-processing
- Boolean operator support
- Optional cluster feature
  
## Installation:

1. Make sure the following software are installed:
    - Apache httpd 2.2.2x (*not* required if you'd like to use Django's own server)
    - Python 2.7.x
    - Django 1.5.x

2. Install `requests` module for Python, please refer http://docs.python-requests.org/en/latest/user/install/#install.

3. Install `mod_wsgi` module *only if* you are using Apache to deploy this application, please refer https://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2.

4. Unzip "metasearch" folder into whichever folder you want to deploy this application.

5. Edit `settings.py` in `/mysite/` folder,
    - Change the path in `STATICFILES_DIRS` setting into `your_path/metasearch/static` where "your_path" is the folder into which you extract the "metasearch" folder;
    - Change the path in `TEMPLATE_DIRS` setting into `your_path/metasearch/templates` where "your_path" is the folder into which you extract the "metasearch" folder.

6. (Note: This step is *only* required if you are deploying this application using Apache rather than Django's server.) Edit `httpd.conf` in `your_apache_path/conf/` folder where "your_apache_path" is the folder your Apache is installed, then append the following lines at the end of the file:

    ```
    #change the path into your actual path of mod_wsgi.so
    LoadModule wsgi_module /your_apache_path/modules/mod_wsgi.so

    #change the path into your actual path of /static/
    Alias /static/ your_path/metasearch/static/

    #change the path into your actual path of /static/
    <Directory your_path/metasearch/static/>
    Order deny,allow
    Allow from all
    </Directory>
    
    #change the path into your actual path of wsgi.py
    WSGIScriptAlias / your_path/metasearch/mysite/wsgi.py

    #change the path into your actual path of Project
    WSGIPythonPath your_path/metasearch

    #change the path into your actual path of mysite
    <Directory your_path/metasearch/mysite>
    <Files wsgi.py>
    Order deny,allow
    Allow from all
    </Files>
    </Directory>
    ```
    
7. Launch Apache or your Django server, then open the URL on which your server is hosting in any browser.
  
## Contact:
<NAME>
<EMAIL><commit_msg>update README to reflect recent change<commit_after># Meta-Search, a web application powered by Django.

## Live DEMO:
  http://zeyang.alwaysdata.net/metasearch

## Main features:
- Aggregated and non-aggregated search mode
- Client-side and server-side validation
- Query pre-processing
- Boolean operator support
- Optional cluster feature
  
## Installation:

1. Make sure the following software are installed in your system:
    - Python 2.7.x ( http://python.org/download/ )
    - Django 1.5.x ( https://www.djangoproject.com/download/ )

2. Install the following Python package:
    - requests 2.0.0 ( https://pypi.python.org/pypi/requests/2.0.0 )

3. Create a new Django project or choose from one of your existing Django projects, then unzip "metasearch" folder into that project's root folder.

4. Edit the following sector in `settings.py` of that project:
    - In `INSTALLED_APPS` append 'metasearch'

5. Edit `urls.py` of that project:
    - In `patterns()` append the following line:
        ```python
        url(r'^metasearch/', include('metasearch.urls')),
        ```
## Getting it run:

* If you are using Django's own development server, just run `manage.py` of your project and locate `http://your-domain:port/metasearch/` in your browser.

* For Apache httpd server (only applicable for version 2.2.xx), in WSGI mode:
    1. Install `mod_wsgi` module for Apache. ( https://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2 )
    2. Open `httpd.conf` in `your_apache_path/conf/`, and append the following lines at the end of file:
        ```
        #change the path into your actual path of mod_wsgi.so
        LoadModule wsgi_module /your_apache_path/modules/mod_wsgi.so

        #change the path into your project's path of /static/
        Alias /static/ your_project_path/static/

        #change the path into your project's path of /static/
        <Directory your_project_path/static/>
        Order deny,allow
        Allow from all
        </Directory>
        
        #change the path into your project's path of wsgi.py
        WSGIScriptAlias / your_project_path/your_app/wsgi.py

        #change the path into your project's path
        WSGIPythonPath your_project_path

        #change the path into the path that contains your wsgi.py
        <Directory your_project_path/your_app>
        <Files wsgi.py>
        Order deny,allow
        Allow from all
        </Files>
        </Directory>
        ```
    3. Run Apache and locate `http://your-domain:port/metasearch/` in your browser. 

## Contact me:
<NAME>
<EMAIL>
{'fraction_non_alphanumeric': 0.08898556456397073, 'fraction_numerical': 0.007118845165117659, 'mean_word_length': 3.1698268755152514, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1105679', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1481, 'n_words': 557}