<commit_before># Svg.js

Svg.js is a lightweight (less than 3k gzipped) library for manipulating SVG.

Svg.js is licensed under the terms of the MIT License.

Important: this library is still in alpha, therefore the API might be subject to change in the course of development.


## Usage

### Create a SVG document

Use the 'svg()' function to create a SVG document within a given html element:

```javascript
var draw = svg('paper').size(300, 300);
var rect = draw.rect({ width:100, height:100 }).attr({ fill: '#f06' });
```
The first argument can either be an id of the element or the selected element itself.
This will generate the following output:

```html
<div id="paper">
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xlink="http://www.w3.org/1999/xlink" width="300" height="300">
		<rect width="100" height="100" fill-color="#f06"></rect>
	</svg>
</div><commit_msg>Typo in reamde<commit_after># Svg.js

Svg.js is a lightweight (less than 3k gzipped) library for manipulating SVG.

Svg.js is licensed under the terms of the MIT License.

Important: this library is still in alpha, therefore the API might be subject to change in the course of development.


## Usage

### Create a SVG document

Use the 'svg()' function to create a SVG document within a given html element:

```javascript
var draw = svg('paper').size(300, 300);
var rect = draw.rect({ width:100, height:100 }).attr({ fill: '#f06' });
```
The first argument can either be an id of the element or the selected element itself.
This will generate the following output:

```html
<div id="paper">
	<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xlink="http://www.w3.org/1999/xlink" width="300" height="300">
		<rect width="100" height="100" fill="#f06"></rect>
	</svg>
</div>
{'fraction_non_alphanumeric': 0.13928368391131324, 'fraction_numerical': 0.046617396247868106, 'mean_word_length': 4.534591194968553, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '5945269', 'n_tokens_mistral': 623, 'n_tokens_neox': 552, 'n_words': 227}