<commit_before><h1>Openbaton Client</h1>

<h2>Overview</h2>
Openbaton Client provides a command-line client, which enables you to access the project API through easy-to-use commands. 
For example, Openbaton Client provides the creation of a new Vim instance.
<br>
You can run the commands from the command line with the relative json that describe the Vim instance. 
Openbaton APIs are RESTful APIs, and use the HTTP protocol. 
<br>
They include methods, URIs, media types, and response codes.
Openbaton APIs are open-source Java clients, and can run on Linux or Mac OS X systems. 

<h2>Install the Openbaton Client</h2>

<h2>Set environment variables using the Openbaton Client properties</h2>
To set the required environment variables for the Openbaton Client, you must create an environment file cli.properties
<br>
In default mode Openbaton Client searches the environment file in /etc/Openbaton or you can specifie the path when you call a command with the prefix -c
<br>
<B>$ openbaton.sh  -c /path/  command-name</B>
<br>
If the system doesn't found the environment file ask to enter the properties

<h3>Create and source the evenvironment file</h3>
In a text editor, create a file named cli.properties file and add the following authentication information:
<br>
<UL>
<LI>nfvo-usr = username
<LI>nfvo-pwd = password
<LI>nfvo-ip = ip-address
<LI>nfvo-port = port-number
<LI>nfvo-version = version
</UL>

<h2>Openbaton Client usage</h2>
    
    openbaton.sh [-c <path of properties file>] command-name [arg-1] [arg-2] [arg-3]
    
    openbaton.sh [-d #debug mode] command-name [arg-1] [arg-2] [arg-3]
    
    openbaton.sh command-name [help]
    
    openbaton.sh help<commit_msg>add VimInstance subcommands<commit_after><h1>Openbaton Client</h1>

<h2>Overview</h2>
Openbaton Client provides a command-line client, which enables you to access the project API through easy-to-use commands. 
For example, Openbaton Client provides the creation of a new Vim instance.
<br>
You can run the commands from the command line with the relative json that describe the Vim instance. 
Openbaton APIs are RESTful APIs, and use the HTTP protocol. 
<br>
They include methods, URIs, media types, and response codes.
Openbaton APIs are open-source Java clients, and can run on Linux or Mac OS X systems. 

<h2>Install the Openbaton Client</h2>

<h2>Set environment variables using the Openbaton Client properties</h2>
To set the required environment variables for the Openbaton Client, you must create an environment file cli.properties
<br>
In default mode Openbaton Client searches the environment file in /etc/Openbaton or you can specifie the path when you call a command with the prefix -c
<br>
<B>$ openbaton.sh  -c /path/  command-name</B>
<br>
If the system doesn't found the environment file ask to enter the properties

<h3>Create and source the evenvironment file</h3>
In a text editor, create a file named cli.properties file and add the following authentication information:
<br>
<UL>
<LI>nfvo-usr = username
<LI>nfvo-pwd = password
<LI>nfvo-ip = ip-address
<LI>nfvo-port = port-number
<LI>nfvo-version = version
</UL>

<h2>Openbaton Client usage</h2>
    
    openbaton.sh [-c <path of properties file>] command-name [arg-1] [arg-2] [arg-3]
    
    openbaton.sh [-d #debug mode] command-name [arg-1] [arg-2] [arg-3]
    
    openbaton.sh command-name [help]
    
    openbaton.sh help
    

<h3>For help on a specific swift command, enter:<h3>
<br>
<B>$ openbaton.sh COMMAND help<\B>
<br>

<h3>Vim Instance Subcommands</h3>
<br>
<B>create<\B>
<br>
  Create the object of type VimInstance
<br>
<B>delete<\B>
<br>
  Delete the object of type VimInstance passing the id
<br>
<B>update<\B>
<br>
  Update the object of type VimInstance passing the new object and the id of the old object
<br>
<B>findAll<\B>
<br>
  Find all the objects of type VimInstance
<br>
<B>findById<\B>
<br>
  Find the object of type VimInstance through the id

{'fraction_non_alphanumeric': 0.09070121951219512, 'fraction_numerical': 0.01016260162601626, 'mean_word_length': 4.187088274044796, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '7160539', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1260, 'n_words': 529}