<commit_before># Re-Tag

React.js Tag Component

### By Vikram

## Demo Page
http://vikramn.github.io/Re-Tag/

## Sample Code
    // Simple default model
    var tags1 = new TagCollection();

    // Render Tag Component
    // props: css = css class for each tag, collection = set to the model
    React.render(<Tags css={'tag'} deleteCss={'deleteTag'} collection={tags1} />, document.getElementById('tagContainer1'));

    // Render the tag input component, this is the one that accepts user input
    // props: css : input[type=text] css class, collection : model, breaks: array of chars to use for splitting, 
    // handleBlur & handleEnter handles blur event and enter key pressed event
    var input1 =  React.render(<TagInput css={'tagInput1'} collection={tags1} breaks={[' ', ',', ';', '.']} 
      handleBlur={true} handleEnter={true} />,document.getElementById('tagInput1') );

    // Example to set focus to input
    document.getElementById('make_focus').onclick = function(){
        input1.setFocus();
    };

<commit_msg>Add syntax highlighting to demo<commit_after># Re-Tag

React.js Tag Component

### By Vikram

## Demo Page
http://vikramn.github.io/Re-Tag/

## Sample Code

```javascript
// Simple default model
var tags1 = new TagCollection();

// Render Tag Component
// props: css = css class for each tag, collection = set to the model
React.render(<Tags css={'tag'} deleteCss={'deleteTag'} collection={tags1} />, document.getElementById('tagContainer1'));

// Render the tag input component, this is the one that accepts user input
// props: css : input[type=text] css class, collection : model, breaks: array of chars to use for splitting,
// handleBlur & handleEnter handles blur event and enter key pressed event
var input1 =  React.render(<TagInput css={'tagInput1'} collection={tags1} breaks={[' ', ',', ';', '.']}
  handleBlur={true} handleEnter={true} />,document.getElementById('tagInput1') );

// Example to set focus to input
document.getElementById('make_focus').onclick = function(){
    input1.setFocus();
};
```

{'fraction_non_alphanumeric': 0.14341463414634145, 'fraction_numerical': 0.007804878048780488, 'mean_word_length': 4.114713216957606, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5226620', 'n_tokens_mistral': 587, 'n_tokens_neox': 588, 'n_words': 195}