<commit_before><h1> remoteDownload User Plugin </h1>

This plugin recieves a remote file URL and deploys the file into Artifactory.

<h2> Dependencies </h2>

The plugin requires two third-party dependencies in order to run:

[http-builder](http://repo.spring.io/libs-release-remote/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar)

[json-lib](https://bintray.com/artifact/download/bintray/jcenter/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar)

To install the dependencies, create the $ARTIFACTORY_HOME/etc/plugins/lib directory, and place the above two jars in it.

<h2> Logging </h2>

To enable logging for the plugin, add the below logger to your $ARTIFACTORY_HOME/logback.xml:

```xml
<logger name="remoteDownload">
    <level value="info"/>
  </logger>
  ```
  
<h2> Executing & Parameters </h2>

The plugin can be executed with the below command:

`curl -X POST -uadmin:password "http://localhost:8081/artifactory/api/plugins/execute/remoteDownload" --data-binary @conf.json`

The content of conf.json should include the below paramters:
```JSON
{
"repo": "libs-release-local",
"path": "my/new/path/docker.png",
"url": "https://d3oypxn00j2a10.cloudfront.net/0.18.0/img/nav/docker-logo-loggedout.png",<commit_msg>Updated remoteDownload readme<commit_after><h1> remoteDownload User Plugin </h1>

This plugin recieves a remote file URL and deploys the file into Artifactory.

<h2> Dependencies </h2>

The plugin requires two third-party dependencies in order to run:

[http-builder](http://repo.spring.io/libs-release-remote/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar)

[json-lib](https://bintray.com/artifact/download/bintray/jcenter/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar)

To install the dependencies, create the $ARTIFACTORY_HOME/etc/plugins/lib directory, and place the above two jars in it.

<h2> Logging </h2>

To enable logging for the plugin, add the below logger to your $ARTIFACTORY_HOME/logback.xml:

```xml
<logger name="remoteDownload">
    <level value="info"/>
  </logger>
  ```
  
<h2> Executing & Parameters </h2>

The plugin can be executed with the below command:

`curl -X POST -uadmin:password "http://localhost:8081/artifactory/api/plugins/execute/remoteDownload" -T conf.json`

The content of conf.json should include the below paramters:
```JSON
{
"repo": "libs-release-local",
"path": "my/new/path/docker.png",
"url": "https://d3oypxn00j2a10.cloudfront.net/0.18.0/img/nav/docker-logo-loggedout.png",
{'fraction_non_alphanumeric': 0.14314036478984932, 'fraction_numerical': 0.02696272799365583, 'mean_word_length': 4.569536423841059, 'pattern_counts': {'":': 6, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6589473', 'n_tokens_mistral': 924, 'n_tokens_neox': 877, 'n_words': 215}