<commit_before>CoffeeScript Styleguide
=======================

General
-------

- Use soft tabs with two-space indentation
- Use `camelCase`
- Don't use parenthesis with conditional statements (`if`, `switch`, else.)

### Parmeters

No empty parameter list.

```coffeescript
# BAD
foo = () ->

# GOOD
foo = ->
```

### Quotes

_Always_ use single quotes _unless_ it is a string with string interpolation or it has punctuation that requires escaping.

```coffeescript
# BAD
foo = "bar"
foo = 'bar\'s got baz'

# GOOD
foo = 'bar'
foo = "bar's got baz"
```

Spacing
-------

No trailing whitespace

### Parenthesis

_Always_ use a single space inside parenthesis **unless it is a single word**.

```coffeescript
# BAD
foo( bar )

# GOOD
foo(bar)

# BAD
foo(bar.baz)

# GOOD
foo( bar.baz )

# BAD
foo(bar, baz)

# GOOD
foo( bar, baz )

# BAD
foo(bar())

# GOOD
foo( bar() )

# BAD
foo( 'string' )

# GOOD
foo('string')
```

### String Interpolation

Use a single space inside string interpolation

```coffeescript
# BAD
foo = 'string'
bar = "I am a #{foo}"

# GOOD
foo = 'string'<commit_msg>Update CoffeScript Styleguide<commit_after>CoffeeScript Styleguide
=======================

General
-------

- Use soft tabs with two-space indentation
- Use `camelCase`
- Don't use parenthesis with conditional statements (`if`, `switch`, else.)

### Parmeters

No empty parameter list.

```coffeescript
# BAD
foo = () ->

# GOOD
foo = ->
```

### Quotes

_Always_ use single quotes _unless_ it is a string with string interpolation or it has punctuation that requires escaping.

```coffeescript
# BAD
foo = "bar"
foo = 'bar\'s got baz'

# GOOD
foo = 'bar'
foo = "bar's got baz"
```

Spacing
-------

No trailing whitespace

### Parenthesis

_Always_ use a single space inside parenthesis.

```coffeescript
# BAD
foo(bar)

# GOOD
foo( bar )

# BAD
foo(bar.baz)

# GOOD
foo( bar.baz )

# BAD
foo(bar, baz)

# GOOD
foo( bar, baz )

# BAD
foo(bar())

# GOOD
foo( bar() )

# BAD
foo('string')

# GOOD
foo( 'string' )
```

### String Interpolation

Use a single space inside string interpolation

```coffeescript
# BAD
foo = 'string'
bar = "I am a #{foo}"

# GOOD
foo = 'string'
{'fraction_non_alphanumeric': 0.16381304951411382, 'fraction_numerical': 0.0, 'mean_word_length': 3.6898047722342735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '66519', 'n_tokens_mistral': 833, 'n_tokens_neox': 772, 'n_words': 259}