<commit_before>##How to use gist-embed to spice up code snippets on your blog

### Include jQuery:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

### Include gist-embed (If your blog doesn't accept local file includes, then simply copy paste the contents into a script tag):

    <script type="text/javascript" src="gist-embed.js"></script>

### Add a code element to your page with an id attribute in the following format:

    "gist-<gist-id>"
	e.g.:
    <code id="gist-1741"></code>
    <code id="gist-4147951" data-file="file1.txt"></code><commit_msg>update readme for multiple and single lines embed.<commit_after>##How to use gist-embed to spice up code snippets on your blog

### Include jQuery:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

### Include gist-embed:

    <script type="text/javascript" src="https://github.com/kashif-umair/gist-embed/raw/master/gist-embed.js"></script>
    
#### You should include them in your HEAD tag for better performance

### Add a code element to your page with an id attribute in the following format:

    "gist-<gist-id>"
	e.g.:
### To embed the whole gist you should put this code element in you body where ever you want it to be displayed.
    <code id="gist-4672365"></code>
### To embed a single file from gist, add the data-file attribute to your code element like this.
    <code id="gist-4672365" data-file="2.java"></code>
### To embed a single line of a file from gist, add the data-line attribute to your code element like this.
    <code id="gist-4672365" data-file="2.java" data-line="5"></code>
    
    This will embed only line number 5.
### To embed multiple lines of a file from gist, change the data-line attribute's value to something like MS Word printing page ranges. e.g.
    <code id="gist-4672365" data-file="2.java" data-line="2-5,10-14,11,20"></code>
    
    This will embed line numbers 2,3,4,5,10,11,12,13,14,11,20 in the same order. If lines are duplicated then they will be duplicated in code too.

#### if you are embedding multiple lines then make sure about following points.

##### You can put a range like "2-5", or single line numbers separated with commas like "11,20", or mix of both like "2-5,11,10-14,20"
##### Spaces are not allowed in data-line value
#### Follow the above instructions to avoid getting any undesired results.
{'fraction_non_alphanumeric': 0.12880942706216986, 'fraction_numerical': 0.03860219422998781, 'mean_word_length': 3.9437751004016066, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 3, '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': '4948970', 'n_tokens_mistral': 812, 'n_tokens_neox': 744, 'n_words': 293}