<commit_before># file-downloader

this is a powerful http-file download tool, my goal is to make downloading http file easily.

**Usage:**
* 1.add in dependencies of your module's build.gradle(Gradle:)
``` java
compile 'org.wlf:FileDownloader:0.2.0'
``` 
for eclipse users,jars:
**[FileDownloader-0.2.0.jar](https://github.com/wlfcolin/file-downloader/raw/master/download/release/FileDownloader-0.2.0.jar)**
**[FileDownloader-0.2.0-sources.jar](https://dl.bintray.com/wlfcolin/maven/org/wlf/FileDownloader/0.2.0/FileDownloader-0.2.0-sources.jar)**

* 2.init FileDownloader in your application's onCreate() method
``` java
// 1.create FileDownloadConfiguration.Builder
Builder builder = new FileDownloadConfiguration.Builder(this);
// 2.config FileDownloadConfiguration.Builder
builder.configFileDownloadDir(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator +
        "FileDownloader");// config the download path
builder.configDownloadTaskSize(3);// allow 3 download task at the same time
FileDownloadConfiguration configuration = builder.build();// build FileDownloadConfiguration with the builder
// 3.init FileDownloader with the configuration (the deprecated class FileDownloadManager is also available，see change log)
FileDownloader.init(configuration);
```

* 3.register a DownloadStatusListener
``` java
// registerDownloadStatusListener 
FileDownloader.registerDownloadStatusListener(mDownloadFileListAdapter);
```

* 4.create a new download
``` java
FileDownloader.start(url);
```
<commit_msg>0.2.0 left<commit_after># file-downloader

this is a powerful http-file download tool, my goal is to make downloading http file easily.

**Usage:**
* 1.add in dependencies of your module's build.gradle(Gradle:)
``` java
compile 'org.wlf:FileDownloader:0.2.0'
``` 
for eclipse users,jars:
**[FileDownloader-0.2.0.jar](https://github.com/wlfcolin/file-downloader/raw/master/download/release/FileDownloader-0.2.0.jar)**
, **[FileDownloader-0.2.0-sources.jar](https://dl.bintray.com/wlfcolin/maven/org/wlf/FileDownloader/0.2.0/FileDownloader-0.2.0-sources.jar)**

* 2.init FileDownloader in your application's onCreate() method
``` java
// 1.create FileDownloadConfiguration.Builder
Builder builder = new FileDownloadConfiguration.Builder(this);
// 2.config FileDownloadConfiguration.Builder
builder.configFileDownloadDir(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator +
        "FileDownloader");// config the download path
builder.configDownloadTaskSize(3);// allow 3 download task at the same time
FileDownloadConfiguration configuration = builder.build();// build FileDownloadConfiguration with the builder
// 3.init FileDownloader with the configuration (the deprecated class FileDownloadManager is also available，see [Change Log](https://github.com/wlfcolin/file-downloader/blob/master/CHANGELOG.md))
FileDownloader.init(configuration);
```

* 3.register a DownloadStatusListener
``` java
// registerDownloadStatusListener 
FileDownloader.registerDownloadStatusListener(mDownloadFileListAdapter);
```

* 4.create a new download
``` java
FileDownloader.start(url);
```

{'fraction_non_alphanumeric': 0.12400127836369447, 'fraction_numerical': 0.01821668264621285, 'mean_word_length': 5.940133037694014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 65, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2384448', 'n_tokens_mistral': 941, 'n_tokens_neox': 889, 'n_words': 203}