<commit_before>KGWeinreBundle
==============

[![Build Status](https://travis-ci.org/kgilden/weinre-bundle.png)](https://travis-ci.org/kgilden/weinre-bundle)

`KGWeinreBundle` integrates [Weinre](http://people.apache.org/~pmuellr/weinre/)
with your Symfony2 application to enable mobile debugging.

**NB!** To make this work with your mobile devices you still need to install
Weinre, please consult [their docs](http://people.apache.org/~pmuellr/weinre/docs/latest/)
on how to do that.

## Installation

Add `KGWeinerBundle` to your app with Composer:

```bash
$ php composer.phar require kgilden/weinre-bundle:dev-master
```

Or add it manually to `composer.json`

```json
{
    "require": {
        "kgilden/weinre-bundle": "dev-master"
    }
}
```

... and then install our dependencies using:
```bash
$ php composer.phar install
```

Finally enable the bundle in the dev environment:

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
    );

    if ('dev' === $this->getEnvironment()) {
        $bundles[] = new KG\WeinreBundle\KGWeinreBundle();
    }
}

?>
```

## Requirements

* PHP >= 5.3.8
* symfony/http-kernel >= 2.0.0
* symfony/event-dispatcher >= 2.0.0
* symfony/dependency-injecton >= 2.0.0
* symfony/config >= 2.0.0

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) file.

## Running the Tests

You can run unit tests by simply executing

```
phpunit
```

....

## License

`KGWeinreBundle` is released under the MIT License.
See the bundled [LICENSE](LICENSE) file for details.
<commit_msg>Add section about configuration to readme<commit_after>KGWeinreBundle
==============

[![Build Status](https://travis-ci.org/kgilden/weinre-bundle.png)](https://travis-ci.org/kgilden/weinre-bundle)

`KGWeinreBundle` integrates [Weinre](http://people.apache.org/~pmuellr/weinre/)
with your Symfony2 application to enable mobile debugging.

**NB!** To make this work with your mobile devices you still need to install
Weinre, please consult [their docs](http://people.apache.org/~pmuellr/weinre/docs/latest/)
on how to do that.

## Installation

Add `KGWeinerBundle` to your app with Composer:

```bash
$ php composer.phar require kgilden/weinre-bundle:dev-master
```

Or add it manually to `composer.json`

```json
{
    "require": {
        "kgilden/weinre-bundle": "dev-master"
    }
}
```

... and then install our dependencies using:
```bash
$ php composer.phar install
```

Finally enable the bundle in the dev environment:

```php
<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
    );

    if ('dev' === $this->getEnvironment()) {
        $bundles[] = new KG\WeinreBundle\KGWeinreBundle();
    }
}

?>
```

## Configuration

By default the bundle expects your Weinre server to run on the same machine. For
example, if the application runs at 198.51.100.0, the target script is expected
to be at "http://198.51.100.0:8080/target/target-script-min.js". You can
override this by configuring the bundle:

```yml
kg_weinre:
    target_script_url: 'http://203.0.113.0:8000/target/target-script-min.js'
```

## Requirements

* PHP >= 5.3.8
* symfony/http-kernel >= 2.0.0
* symfony/event-dispatcher >= 2.0.0
* symfony/dependency-injecton >= 2.0.0
* symfony/config >= 2.0.0

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) file.

## Running the Tests

You can run unit tests by simply executing

```
phpunit
```

....

## License

`KGWeinreBundle` is released under the MIT License.
See the bundled [LICENSE](LICENSE) file for details.

{'fraction_non_alphanumeric': 0.15367358384744811, 'fraction_numerical': 0.018508132361189006, 'mean_word_length': 3.768716577540107, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '1579751', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1215, 'n_words': 319}