<commit_before># Atom — Futuristic Text Editing
## Be forwarned: Atom is pre-alpha software!

## Download

1. Download [atom.zip](https://github.com/downloads/github/atom/atom.zip)

2. Unzip and open the app

## Basic Keyboard shortcuts

`cmd-o` : open file/directory

`cmd-n` : new window

`cmd-alt-ctrl-s` : run specs

`cmd-t` : open fuzzy finder

`cmd-:` : open command prompt

`cmd-f` : open command prompt with /

`cmd-g` : repeat the last search

`cmd-alt-w` : toggle word wrap

`cmd-alt-f` : fold selected lines

Most default OS X keybindings also work.

## Command Panel

A partial implementation of the [Sam command language](http://man.cat-v.org/plan_9/1/sam)

*Examples*

`,` selects entire file

`1,4` selects lines 1-4

`/pattern` selects the first match after the cursor/selection

`s/pattern/replacement` replace first text matching pattern in current selection

`s/pattern/replacement/g` replace all text matching pattern in current selection

`,s/pattern/replacement/g` replace all text matching pattern in file

`1,4s/pattern/replacement` replace all text matching pattern in lines 1-4

`x/pattern` selects all matches in the current selections

`,x/pattern` selects all matches in the file

`,x/pattern1/ x/pattern2` "structural regex" - selects all matches of pattern2 inside matches of pattern1

## Build from source

1. Get [xcode 4.2](http://itunes.apple.com/us/app/xcode/id448457090?mt=12)

2. Install CoffeeScript http://coffeescript.org/ (try `npm i -g coffee-script`)

3. `git clone git@github.com:github/atom.git`

4. `cd atom`
<commit_msg>Update the readme<commit_after># Atom — Futuristic Text Editing
## Be forwarned: Atom is pre-alpha software!

## Download

1. Download [atom.zip](https://github.com/downloads/github/atom/atom.zip)

2. Unzip and open the app

## Basic Keyboard shortcuts
Atom doesn't have much in the way of menus yet. Use these keyboard shortcuts to
explore features.

`cmd-o` : open file/directory

`cmd-n` : new window

`cmd-r` : reload the current window

`cmd-alt-ctrl-s` : run specs

`cmd-t` : open fuzzy file finder

`cmd-:` : open command prompt

`cmd-f` : open command prompt with /

`cmd-g` : repeat the last search

`cmd-alt-arrows` : split screen in direction of arrow

`cmd-alt-w` : toggle word wrap

`cmd-alt-f` : fold selected lines

Most default OS X keybindings also work.

## Init Script

Atom will require `~/.atom/atom.coffee` whenever a window is opened or reloaded if it is present in your
home directory. This is a rudimentary jumping off point for your own customizations.

## Command Panel

A partial implementation of the [Sam command language](http://man.cat-v.org/plan_9/1/sam)

*Examples*

`,` selects entire file

`1,4` selects lines 1-4

`/pattern` selects the first match after the cursor/selection

`s/pattern/replacement` replace first text matching pattern in current selection

`s/pattern/replacement/g` replace all text matching pattern in current selection

`,s/pattern/replacement/g` replace all text matching pattern in file

`1,4s/pattern/replacement` replace all text matching pattern in lines 1-4

`x/pattern` selects all matches in the current selections

`,x/pattern` selects all matches in the file

`,x/pattern1/ x/pattern2` "structural regex" - selects all matches of pattern2 inside matches of pattern1

## Key Bindings

Atom has a CSS based key binding scheme. We will add a nicer loading mechanism, but for now you can bind
keys by calling `window.keymap.bindKeys` with a CSS selector and a hash of key-pattern -> event mappings.

```coffeescript
window.keymap.bindKeys '.editor'
  'ctrl-p': 'party-time'
  'ctrl-q': 'open-dialog-q'
```

When a keypress matches a pattern on an element that matches the selector, it will be translated to the
named event, which will bubble up the DOM from the site of the keypress. Extension code can listen for
the named event and react to it.


## Build from source

1. Get [xcode 4.2](http://itunes.apple.com/us/app/xcode/id448457090?mt=12)

2. Install CoffeeScript http://coffeescript.org/ (try `npm i -g coffee-script`)

3. `git clone git@github.com:github/atom.git`

4. `cd atom`

{'fraction_non_alphanumeric': 0.10364077669902913, 'fraction_numerical': 0.016019417475728156, 'mean_word_length': 4.068880688806888, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2689781', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1293, 'n_words': 512}