<commit_before>SMART Direct Applications
<NAME>,  CHIP
-------------------------

# Getting Started
This package includes two SMART Applications which send patient
data from a SMART container via Direct.

You can run the app inside the reference container by running it
locally on port 8000. You'll need the following python packages:
web.py, reportlab, rdflib, rdflibextras, and pyparsing.

To get started on ubuntu, you can
  sudo apt-get install python-webpy python-pyparsing python-setuptools python-reportlab
  sudo easy_install -U "rdflib>=3.0.0" rdfextras

Now, obtain the app code:
  git clone https://github.com/chb/smart_sample_apps
  cd smart_sample_apps/direct_apps

Before launching the apps, you should copy "settings.py.default"
into "settings.py" and edit the APP_PATH value as well as the
Direct servers' settings. Now you can launch the apps server:

  PYTHONPATH=.:.. && python main.py 8000

Then log in to the reference container at:
 http://sandbox.smartplatforms.org

Launch the "My App" app, which will point at your locally
hosted version of SMART Direct Apps.

NOTE: This app needs python 2.7 or higher.

# Poller

On the server hosting the SMART Proxy container, you should run
the SMART Direct message poller service (python.py). Again, first
make sure that you have edited "settings.py". Also, you may have
to edit "import-patient" if you SMART reference container is at<commit_msg>Added note about the symlinks for Windows for the Direct apps<commit_after>SMART Direct Applications
<NAME>,  CHIP
-------------------------

# Getting Started
This package includes two SMART Applications which send patient
data from a SMART container via Direct.

You can run the app inside the reference container by running it
locally on port 8000. You'll need the following python packages:
web.py, reportlab, rdflib, rdflibextras, and pyparsing.

To get started on ubuntu, you can
  sudo apt-get install python-webpy python-pyparsing python-setuptools python-reportlab
  sudo easy_install -U "rdflib>=3.0.0" rdfextras

Now, obtain the app code:
  git clone https://github.com/chb/smart_sample_apps
  cd smart_sample_apps/direct_apps

Note (for Windows users): You will need to set up manually the
following symlinks from an admin-privileged command prompt:
  mklink /d smart_client ..\smart_client
  mklink /d static\smart ..\..\static\framework\smart\scripts 
  
Before launching the apps, you should copy "settings.py.default"
into "settings.py" and edit the APP_PATH value as well as the
Direct servers' settings. Now you can launch the apps server:

  PYTHONPATH=.:.. && python main.py 8000

Then log in to the reference container at:
 http://sandbox.smartplatforms.org

Launch the "My App" app, which will point at your locally
hosted version of SMART Direct Apps.

NOTE: This app needs python 2.7 or higher.

# Poller

On the server hosting the SMART Proxy container, you should run
the SMART Direct message poller service (python.py). Again, first
make sure that you have edited "settings.py". Also, you may have
to edit "import-patient" if you SMART reference container is at
{'fraction_non_alphanumeric': 0.07811491284699806, 'fraction_numerical': 0.008392511297611363, 'mean_word_length': 4.014563106796117, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2604968', 'n_tokens_mistral': 921, 'n_tokens_neox': 869, 'n_words': 414}