<commit_before>RedPencil
=========

Red Pencil Kata<commit_msg>Updated checklist of user stories<commit_after>RedPencil
=========

Red Pencil Kata
User stories
##~~A red pencil promotion starts due to a price reduction. The price has to be reduced by at least 5% but at most bei 30% and the previous price had to be stable for at least 30 days.~~
####Finished this story

##A red pencil promotion lasts 30 days as the maximum length.
####Not Started

##If the price is further reduced during the red pencil promotion the promotion will not be prolonged by that reduction.
####Not Started

##If the price is increased during the red pencil promotion the promotion will be ended immediately.
##Created method price_increased? on Product model to check for this condition. Add this check to the before_save callback

##If the price if reduced during the red pencil promotion so that the overall reduction is more than 30% with regard to the original price, the promotion is ended immediately.
####Check the price at the start of the sale against the price the product is changing to and use the price_chane_threshold? method

##After a red pencil promotion is ended additional red pencil promotions may follow – as long as the start condition is valid: the price was stable for 30 days and these 30 days don’t intersect with a previous red pencil promotion.
{'fraction_non_alphanumeric': 0.055391432791728215, 'fraction_numerical': 0.009601181683899557, 'mean_word_length': 4.815450643776824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '390897', 'n_tokens_mistral': 339, 'n_tokens_neox': 309, 'n_words': 216}