<commit_before>NTIS Subscriber Service - README and FAQ
========================================
	
This is an example implementation of NTIS Subscriber Service that uses the Spring web-services framework. 
You could import the project into eclipse and tailor it accordingly for your needs.
	
DEPLOYING PRE-BUILT WAR FILE MANUALLY TO A TOMCAT 6.X INSTALLATION:
--------------------------------------------------------
Simply copy the SubscriberService.war file from build/libs folder to %CATALINA_HOME%/webapps folder. 
Once deployed you could invoke the WSDL from http://localhost:8880/SubscriberService/services/subscriber.wsdl

SETTING THE ECLIPSE CLASSPATH
-----------------------------
To set the Eclipse classpath, run gradle eclipseClasspath  

BUILD THE WAR FROM THE SOURCE:
-----------------------------------------------------	
NOTE: For all of the following steps Gradle 1.x and JDK 1.6.x needs to be on your path (e.g. PATH=%PATH%;c:\gradle\bin;c:\jdk1.6.0_26\bin).

From the project root directory simply run
gradle -i build
and the script will build the SubscriberService.war file under build/libs.

JETTY APPLICATION DEPLOYMENT FROM THE SCRIPT:
------------------------------------------------------
To deploy the application war file on jetty server with gradle, simply run
gradle -i jettyRunWar
It will build and deploy the SubscriberService.war on jetty and the wsdl could be accessed from 
http://localhost:8880/SubscriberService/services/subscriber.wsdl 


TOMCAT APPLICATION DEPLOYMENT FROM THE SCRIPT:
----------------------------------------------
Ensure CATALINA_HOME points to a valid Tomcat 6.x installation. 

From the project root directory simply run
gradle -i deployTomcat
and the script will build and deploy the SubscriberService.war file on Tomcat and the wsdl could be accessed from 
http://localhost:8880/SubscriberService/services/subscriber.wsdl 
	<commit_msg>Changes to README making use of markdown syntax. Reordered headings so it makes more sense<commit_after>NTIS Subscriber Service - README and FAQ
========================================
	
This is an example implementation of NTIS Subscriber Service that uses the Spring web-services framework. 
You could import the project into eclipse and tailor it accordingly for your needs.
	
Build Requirements	
------------------
To build and deploy the application, Gradle 1.x and JDK 1.6.x needs to be installed and on your path (e.g. PATH=%PATH%;c:\gradle\bin;c:\jdk1.6.0_26\bin).	

Setting the Eclipse classpath
-----------------------------
Execute the following command
	
	gradle eclipseClasspath  

Building a WAR from source
------------------------------
From the project root directory simply run

	gradle -i build

and the script will build the SubscriberService.war file under build/libs.

Deploying to Jetty (from the script)
------------------------------------
To deploy the application war file on jetty server with gradle, simply run
	
	gradle -i jettyRunWar

It will build and deploy the SubscriberService.war on jetty and the wsdl could be accessed from 
http://localhost:8880/SubscriberService/services/subscriber.wsdl 

Deploying to Tomcat (from the script)
-------------------------------------
Ensure CATALINA_HOME points to a valid Tomcat 6.x installation. 

From the project root directory simply run
	
	gradle -i deployTomcat

and the script will build and deploy the SubscriberService.war file on Tomcat and the wsdl could be accessed from 
http://localhost:8880/SubscriberService/services/subscriber.wsdl 

Deploying to Tomcat (manually)
------------------------------
Simply copy the SubscriberService.war file from build/libs folder to %CATALINA_HOME%/webapps folder. 
Once deployed you could invoke the WSDL from http://localhost:8880/SubscriberService/services/subscriber.wsdl
	
{'fraction_non_alphanumeric': 0.17175974710221287, 'fraction_numerical': 0.011327713382507903, 'mean_word_length': 2.7482724580454096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7259425', 'n_tokens_mistral': 1037, 'n_tokens_neox': 938, 'n_words': 422}