<commit_before># TeamCity Messages

[![Build Status](https://travis-ci.org/michal-kocarek/teamcity-messages.svg?branch=master)](https://travis-ci.org/michal-kocarek/teamcity-messages)
[![Coverage Status](https://coveralls.io/repos/github/michal-kocarek/teamcity-messages/badge.svg?branch=master)](https://coveralls.io/github/michal-kocarek/teamcity-messages?branch=master)

BLABLABLAH This piece of software is an easy pre-cooked, and configured composer package with phpunit.

## Usage

// TODO: Modify this readme.
// TODO: Add travis to build tests.

- Clone this repo: `git clone git@github.<EMAIL>:michal-kocarek/teamcity-messages.git`
- Go to project directory: `cd teamcity-messages`
- Download Composer: `wget http://getcomposer.org/composer.phar`
- Update composer.json with your own data
- Install dependencies: `php composer.phar install`
- Check everything is ok, running `phpunit`

### That's it!



## Authors

<NAME> <<EMAIL>> - <https://twitter.com/michalkocarek>

## License

This library is licensed under the MIT License – see the [LICENSE](LICENSE.md) file for details.<commit_msg>Added proper readme.<commit_after># TeamCity Messages

This PHP library simplifies formatting and writing TeamCity service messages.

[![Build Status](https://travis-ci.org/michal-kocarek/teamcity-messages.svg?branch=master)](https://travis-ci.org/michal-kocarek/teamcity-messages)
[![Coverage Status](https://coveralls.io/repos/github/michal-kocarek/teamcity-messages/badge.svg?branch=master)](https://coveralls.io/github/michal-kocarek/teamcity-messages?branch=master)

## Installation

To add TeamcityMessages as a local, per-project dependency to your project, simply add a dependency on `michal-kocarek/teamcity-messages` to your project's `composer.json` file.
Here is a minimal example of a `composer.json` file that just defines a dependency on TeamcityMessages 0.1:

    {
        "require": {
            "michal-kocarek/teamcity-messages": "^0.1"
        }
    }


## Usage

Here's the basic example. MessageLogger instance dumps everything through the writer.

StdOutWriter echoes output directly to script standard output.

```php
use MichalKocarek\TeamcityMessages\MessageLogger;
use MichalKocarek\TeamcityMessages\Writers\StdoutWriter;

$logger = new MessageLogger(new StdoutWriter());

$logger->progressMessage('Reticulating splines...');

$logger->block('Counting llamas...', null, function(MessageLogger $logger) {
    $logger->warning('Too many llamas!');
    $logger->publishArtifacts('logs/llamas-count.csv');
});
```

See PhpDoc for MessageLogger public methods for more info about the usage.

## Links

* [Build Script Interaction with TeamCity](https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity)

## Authors

<NAME> <<EMAIL>> - <https://twitter.com/michalkocarek>

## License

This library is licensed under the MIT License – see the [LICENSE](LICENSE.md) file for details.
{'fraction_non_alphanumeric': 0.12853733378793045, 'fraction_numerical': 0.0017047391749062393, 'mean_word_length': 5.024640657084189, 'pattern_counts': {'":': 2, '<': 12, '<?xml version=': 0, '>': 16, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2027935', 'n_tokens_mistral': 949, 'n_tokens_neox': 909, 'n_words': 227}