<commit_before>[![Build Status](https://travis-ci.org/0x07Ltd/django-condition-chain.svg?branch=master)](https://travis-ci.org/0x07Ltd/django-condition-chain) [![Coverage Status](https://coveralls.io/repos/0x07Ltd/django-condition-chain/badge.svg?branch=master&service=github)](https://coveralls.io/github/0x07Ltd/django-condition-chain?branch=master)
django-condition-chain
======================

This small Django app provides a set of models and methods which can be used to set up an arbitrary
list of conditions from the admin interface. For example, in a home automation system, based on an
input you may want to change status of an output as long as a chain of conditions are met:

Input:
Front door opens

Conditions:
IF hallway movement sensor has not been triggered in the last ten seconds (somebody is coming *into* the house)
AND outside light sensor is less than 20 (it's dark outside)<commit_msg>Fix inconsistency in readme<commit_after>[![Build Status](https://travis-ci.org/0x07Ltd/django-condition-chain.svg?branch=master)](https://travis-ci.org/0x07Ltd/django-condition-chain) [![Coverage Status](https://coveralls.io/repos/0x07Ltd/django-condition-chain/badge.svg?branch=master&service=github)](https://coveralls.io/github/0x07Ltd/django-condition-chain?branch=master)
django-condition-chain
======================

This small Django app provides a set of models and methods which can be used to set up an arbitrary
list of conditions from the admin interface. For example, in a home automation system, based on an
input you may want to change status of an output as long as a chain of conditions are met:

Input:
Front door opens

Conditions:
IF outside light sensor is less than 20 (it's dark outside) AND hallway movement sensor has not been triggered in the last ten seconds (somebody is coming *into* the house)
{'fraction_non_alphanumeric': 0.11437908496732026, 'fraction_numerical': 0.015250544662309368, 'mean_word_length': 5.607913669064748, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '4056277', 'n_tokens_mistral': 538, 'n_tokens_neox': 506, 'n_words': 194}