<commit_before>## CloudFoundry Membership Scheme for Carbon

Supports running a clustered deployment of WSO2 Carbon Servers on CloudFoundry. 

# How to use

* Take a clone of the cloud foundry membershp scheme [repositpory] (https://github.com/isurulucky/cloudfoundry-membership-scheme-for-carbon.git)
* Use mvn clean install to build it
* Locate the jar cloudfoundry-membership-scheme-<VERSION>.jar in the target directory
* Copy the jar file to the repository/components/dropins directory of the relevant carbon server.
* Provide the following details in the startup script (bin/wso2server.sh) of the carbon server:
    -DCLOUD_FOUNDRY_TOKEN_API_URL=https://login.run.pivotal.io \
    -DCLOUD_FOUNDRY_API_URL=https://api.run.pivotal.io/v2 \
    -DCLOUD_FOUNDRY_API_USERNAME=xxxxx \
    -DCLOUD_FOUNDRY_API_PASSWORD=<PASSWORD> \
    -DCLOUD_FOUNDRY_APPLICATION_NAMES=<name_of_cloud_foundry_application> \ 
* Make the following changes:
    1. Enable clustering by making 'enable=true' in clustering element
    2. Add the following line under the clustering element of the axis2.xml (repository/conf/axis2/axis2.xml) of the carbon server:
        <parameter name="membershipSchemeClassName">org.wso2.carbon.membership.scheme.cloudfoundry.CloudFoundryMembershipScheme</parameter>
    3. Change the membershipScheme to 'cloudfoundry'
       

<commit_msg>Adding license information<commit_after>## CloudFoundry Membership Scheme for Carbon

Supports running a clustered deployment of WSO2 Carbon Servers on CloudFoundry. 

### How to use

* Take a clone of the cloud foundry membershp scheme [repositpory] (https://github.com/isurulucky/cloudfoundry-membership-scheme-for-carbon.git)
* Use mvn clean install to build it
* Locate the jar cloudfoundry-membership-scheme-<VERSION>.jar in the target directory
* Copy the jar file to the repository/components/dropins directory of the relevant carbon server.
* Provide the following details in the startup script (bin/wso2server.sh) of the carbon server:
    -DCLOUD_FOUNDRY_TOKEN_API_URL=https://login.run.pivotal.io \
    -DCLOUD_FOUNDRY_API_URL=https://api.run.pivotal.io/v2 \
    -DCLOUD_FOUNDRY_API_USERNAME=xxxxx \
    -DCLOUD_FOUNDRY_API_PASSWORD=<PASSWORD> \
    -DCLOUD_FOUNDRY_APPLICATION_NAMES=<name_of_cloud_foundry_application> \ 
* Make the following changes:
    1. Enable clustering by making 'enable=true' in clustering element
    2. Add the following line under the clustering element of the axis2.xml (repository/conf/axis2/axis2.xml) of the carbon server:
        <parameter name="membershipSchemeClassName">org.wso2.carbon.membership.scheme.cloudfoundry.CloudFoundryMembershipScheme</parameter>
    3. Change the membershipScheme to 'cloudfoundry'
       

License: Apache2
{'fraction_non_alphanumeric': 0.07776560788608981, 'fraction_numerical': 0.007667031763417305, 'mean_word_length': 4.7322175732217575, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1610422', 'n_tokens_mistral': 880, 'n_tokens_neox': 856, 'n_words': 234}