<commit_before># &lt;event-calendar&gt;

> Custom calendar polymer components with support for events display.

## Demo

[Check it live!](http://JoppeSchwartz.github.io/event-calendar)

## Install

Install the component using [Bower](http://bower.io/):

```sh
$ bower install event-calendar --save
```

Or [download as ZIP](https://github.com/JoppeSchwartz/event-calendar/archive/master.zip).

## Usage

1. Import Web Components' polyfill:

    ```html
    <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
    ```

2. Import the event-calendar component:

    ```html
    <link rel="import" href="bower_components/event-calendar/dist/event-calendar.html">
    ```

3. Start using it!

    ```html
    <calendar-month curDate="2015-2-10" header view="month"></calendar-month>
    ```

## Options

Attribute     | Options     | Default          | Description
---           | ---         | ---              | ---
`curDate`     | *Moment*    | moment() [today] | Current date for the calendar; it should be a Moment object or Moment-compatible string (see below)
`header`			| [none]			| [none]			     | If present, the calendar will display a header
`view`				| "month", "week", "day", "list" | "month" | Controls which view the calendar displays
`startHour`	  | *integer*   |	0 (midnight)     | The starting hour of each day to display in week and day views
`events`      | *array*     | []               | Array of events to display on the calendar (see below) 


## Dates and Moments
This component uses the [Moment](http://momentjs.com/) library to handle dates and times. Therefore, the `curDate` attribute and the dates and times associated with events are represented as Moment objects. When passing date and time values in, one should construct a moment instance to do so. E.g., if one has a string date, pass `moment(datestring)`.

## Displaying Events
To display events, set the 'events' attribute to an array of objects, each of which has the following form:

```javascript
{
    start: [Moment],
    end:   [Moment],
    title: [string],
    venue: [string]
}
```
As with `curDate`, the `start` and `end` members must be Moment objects or compatible . 


## Events

Event                  | Description
---                    | ---
`event-calendar-error` | Triggers when an malformed event is passed to the calendar

## Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

* Install [Bower](http://bower.io/) & [Grunt](http://gruntjs.com/):

    ```sh
    $ [sudo] npm install -g bower grunt-cli
    ```

* Install local dependencies:

    ```sh
    $ bower install && npm install
    ```

* To test your project, start the development server and open `http://localhost:8000`.

    ```sh
    $ grunt server
    ```

* To build the distribution files before releasing a new version.

    ```sh
    $ grunt build
    ```

* To provide a live demo, send everything to `gh-pages` branch.

    ```sh
    $ grunt deploy
    ```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## History

For detailed changelog, check [Releases](https://github.com/JoppeSchwartz/event-calendar/releases).

## License

[MIT License](http://opensource.org/licenses/MIT)
<commit_msg>Edited README<commit_after># &lt;event-calendar&gt;

> Custom calendar polymer component with support for events display. Supports monthly, weekly, daily, and list views.

## Demo

[Check it live!](http://JoppeSchwartz.github.io/event-calendar)

## Install

Install the component using [Bower](http://bower.io/):

```sh
$ bower install event-calendar --save
```

Or [download as ZIP](https://github.com/JoppeSchwartz/event-calendar/archive/master.zip).

## Usage

1. Import Web Components' polyfill:

    ```html
    <script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
    ```

2. Import the event-calendar component:

    ```html
    <link rel="import" href="bower_components/event-calendar/dist/event-calendar.html">
    ```

3. Start using it!

    ```html
    <calendar-month curDate="2015-2-10" header view="month"></calendar-month>
    ```

## Options

Attribute     | Options     | Default          | Description
---           | ---         | ---              | ---
`curDate`     | *Moment*    | moment() [today] | Current date for the calendar; it should be a Moment object or Moment-compatible string (see below)
`header`			| [none]			| [none]			     | If present, the calendar will display a header
`view`				| "month", "week", "day", "list" | "month" | Controls which view the calendar displays
`startHour`	  | *integer*   |	0 (midnight)     | The starting hour of each day to display in week and day views
`events`      | *array*     | []               | Array of events to display on the calendar (see below) 


## Dates and Moments
This component uses the [Moment](http://momentjs.com/) library to handle dates and times. Therefore, the `curDate` attribute and the dates and times associated with events are represented as Moment objects. When passing date and time values in, one should construct a moment instance to do so. E.g., if one has a string date, pass `moment(datestring)`.

## Displaying Calendar Events
To display events, set the `events` attribute to an array of objects, each of which has the following form:

```javascript
{
    start: [Moment],
    end:   [Moment],
    title: [string],
    venue: [string]
}
```
As with `curDate`, the `start` and `end` members must be Moment objects or compatible . 


## DOM Events

Event                  | Description
---                    | ---
`event-calendar-error` | Fires when an malformed event is passed to the calendar

## Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

* Install [Bower](http://bower.io/) & [Grunt](http://gruntjs.com/):

    ```sh
    $ [sudo] npm install -g bower grunt-cli
    ```

* Install local dependencies:

    ```sh
    $ bower install && npm install
    ```

* To test your project, start the development server. This should open a browser displaying the demo page at address `http://localhost:8000`. To run unit tests, open `http://localhost:8000/test/index.html`.

    ```sh
    $ grunt server
    ```

* To build the distribution files before releasing a new version.

    ```sh
    $ grunt build
    ```

* To provide a live demo, send everything to `gh-pages` branch.

    ```sh
    $ grunt deploy
    ```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## History

For detailed changelog, check [Releases](https://github.com/JoppeSchwartz/event-calendar/releases).

## License

[MIT License](http://opensource.org/licenses/MIT)

{'fraction_non_alphanumeric': 0.12507090187180941, 'fraction_numerical': 0.006239364719228588, 'mean_word_length': 3.0627880184331797, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2571822', 'n_tokens_mistral': 2144, 'n_tokens_neox': 2041, 'n_words': 767}