<commit_before>PathFinding.js
==============
#### A comprehensive path-finding library in javascript. ####

## Introduction ##

The aim of this project is to provide a path-finding library which can be easily incorporated in web games. 

It comes along with an [online demo](http://qiao.github.com/PathFinding.js/visual) to show how the various algorithms execute.

## Usage ##

Download the [minified js file](http://qiao.github.com/PathFinding.js/build/PathFinding.min.js) and include it in your web page.

```html
<script type="text/javascript" src="./PathFinding.min.js"></script>
```

To build a grid-map of width 5 and height 3:

```javascript
var grid = new PF.Grid(5, 3); 
```

By default, all the nodes in the grid genereated above will be able to be walked through.
To set whether a node at a given coordinate is walkable or not, use the `setWalkableAt` method.

```javascript
grid.setWalkableAt(0, 1, false);
```

The above command will set the node at (0, 1) to be un-walkable, where 0 is the x coordinate(left to right)
1 is the y coordinate(up to down).

You may also pass in a matrix while instantiating the `PF.Grid` class.
It will initiate all the nodes in the grid with the same walkability indicated by the matrix.
0 for walkable while 1 for blocked.

```javascript<commit_msg>mod: readme<commit_after>PathFinding.js
==============
#### A comprehensive path-finding library in javascript. ####

## Introduction ##

The aim of this project is to provide a path-finding library that can be easily incorporated into web games. 

It comes along with an [online demo](http://qiao.github.com/PathFinding.js/visual) to show how the various algorithms execute.

## Usage ##

Download the [minified js file](http://qiao.github.com/PathFinding.js/build/PathFinding.min.js) and include it in your web page.

```html
<script type="text/javascript" src="./PathFinding.min.js"></script>
```

To build a grid-map of width 5 and height 3:

```javascript
var grid = new PF.Grid(5, 3); 
```

By default, all the nodes in the grid will be able to be walked through.
To set whether a node at a given coordinate is walkable or not, use the `setWalkableAt` method.

For example, to set the node at (0, 1) to be un-walkable, where 0 is the x coordinate (from left to right), and 
1 is the y coordinate (from up to down):

```javascript
grid.setWalkableAt(0, 1, false);
```

You may also pass in a matrix while instantiating the `PF.Grid` class.
It will initiate all the nodes in the grid with the same walkability indicated by the matrix.
0 for walkable while 1 for blocked.

```javascript
{'fraction_non_alphanumeric': 0.10947775628626692, 'fraction_numerical': 0.009284332688588007, 'mean_word_length': 4.277551020408163, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1388157', 'n_tokens_mistral': 794, 'n_tokens_neox': 734, 'n_words': 356}