<commit_before><commit_msg>add StyleGuide<commit_after># Ruby

+ no postfix `if`
  + except for `raise ... if ...`
+ no ternary operator `:`
+ no `unless`
+ avoid nested `if`

# Frontend

In general we will follow BEM.

Ordering of CSS properties, we'll follow @mdo's approach:

+ position
+ display and box model
+ font, leading, color, text
+ background and border
+ CSS3 properties like border-radius and box-shadow and a handful of other purely visual properties

see: http://markdotto.com/2011/11/29/css-property-order/

see: https://github.com/necolas/idiomatic-css#declaration-order


{'fraction_non_alphanumeric': 0.11505922165820642, 'fraction_numerical': 0.015228426395939087, 'mean_word_length': 4.192982456140351, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7267636', 'n_tokens_mistral': 198, 'n_tokens_neox': 185, 'n_words': 63}