<commit_before>Plivo Java Helper Library
=========================

Description
-----------

The Plivo Java helper simplifies the process of making PLIVO API Calls and generating PLIVO XML.

See [Plivo Documentation](http://www.plivo.com/docs/) for more information.



Pre-built jars
--------------

[plivo-0.2-jar-with-dependencies.jar](https://github.com/downloads/plivo/plivo-java/plivo-0.2-jar-with-dependencies.jar)

[plivo-0.2.jar](https://github.com/downloads/plivo/plivo-java/plivo-0.2.jar) - use this if you have issues with conflicting jars in your project. See the pom.xml for the list of dependencies you will need to include.



Manual Install
------------

### Download and Install Maven3 


[http://maven.apache.org](http://maven.apache.org)
[Maven in 5 minutes guide](http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)


### Generating a release

To generate the final release,
	
	mvn install -Dmaven.test.skip=true

Note: The parameter *-Dmaven.test.skip=true* will skip all test and generate the release.
	
### Use the Library in your Java IDE

Create Stubs for Eclipse
    * mvn eclipse:eclipse

Create stubs for idea
    * mvn idea:idea


How to use
----------

### Creating the plivo client bridge
	String authId=<KEY>;
	String authToken=<PASSWORD>;
	boolean debug = false;
	PlivoClient client = PlivoClient("authId", "authToken", debug);
  
 
### Making a Call.

	Map<String, String> parameters = new HashMap<String, String>();
	parameters.put("from", "15679XXXXX");
	parameters.put("to", "1567XXXXXXXX");
	parameters.put("answer_url", "http://example.com/answer_url");
	parameters.put("hangup_url", "http://example.com/hangup_url");
	parameters.put("ring_url", "http://example.com/ring_url");<commit_msg>Fixed typo<commit_after>Plivo Java Helper Library
=========================

Description
-----------

The Plivo Java helper simplifies the process of making PLIVO API Calls and generating PLIVO XML.

See [Plivo Documentation](http://www.plivo.com/docs/) for more information.



Pre-built jars
--------------

[plivo-0.2-jar-with-dependencies.jar](https://github.com/downloads/plivo/plivo-java/plivo-0.2-jar-with-dependencies.jar)

[plivo-0.2.jar](https://github.com/downloads/plivo/plivo-java/plivo-0.2.jar) - use this if you have issues with conflicting jars in your project. See the pom.xml for the list of dependencies you will need to include.



Manual Install
------------

### Download and Install Maven3 


[http://maven.apache.org](http://maven.apache.org)
[Maven in 5 minutes guide](http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)


### Generating a release

To generate the final release,
	
	mvn install -Dmaven.test.skip=true

Note: The parameter *-Dmaven.test.skip=true* will skip all test and generate the release.
	
### Use the Library in your Java IDE

Create Stubs for Eclipse
    * mvn eclipse:eclipse

Create stubs for idea
    * mvn idea:idea


How to use
----------

### Creating the plivo client bridge
	String authId=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;
	String authToken=<PASSWORD>;
	boolean debug = false;
	PlivoClient client = PlivoClient(authId, authToken, debug);
  
 
### Making a Call.

	Map<String, String> parameters = new HashMap<String, String>();
	parameters.put("from", "15679XXXXX");
	parameters.put("to", "1567XXXXXXXX");
	parameters.put("answer_url", "http://example.com/answer_url");
	parameters.put("hangup_url", "http://example.com/hangup_url");
	parameters.put("ring_url", "http://example.com/ring_url");
{'fraction_non_alphanumeric': 0.16335791264889393, 'fraction_numerical': 0.010777084515031198, 'mean_word_length': 3.939775910364146, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 3, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '843986', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1092, 'n_words': 298}