<commit_before># ScheduleFu

ScheduleFu allows scheduling events with dates and times. It includes both the 
model and view portions of a calendar. See 
[RSchedule](http://github.com/angelic/rschedule) for an example application using it.

To generate the ScheduleFu migrations, run:

    rake db:migrate:schedule_fu

This is a diagram of the models

![database.png](http://angelic.github.com/schedule_fu/database.png)

The database diagram can be found in docs/database.png along with the original Dia file.

This plugin borrows a lot from [acts_as_calendar](http://github.com/dball/acts_as_calendar)
and [calendar_helper](http://github.com/topfunky/calendar_helper).<commit_msg>documentation<commit_after># ScheduleFu

ScheduleFu allows scheduling events with dates and times. It includes both the 
model and view portions of a calendar. See 
[RSchedule](http://github.com/angelic/rschedule) for an example application using it.

To generate the ScheduleFu migrations, run:

    rake db:migrate:schedule_fu

Below is a diagram of the models.  The database diagram can be found in docs/database.png along with the original Dia file.

Calendar_recurrences is used for specific information on
particular recurring dates. Calendar_event_mods stores any modification to a particular 
calendar_event. Calendar_event_types stores the different kinds of events. 
Calendar_dates has a row for every day and will automatically generate rows for a 
year before or after any date used in an event. 

Calendar_event_dates is a view that has a row for each date included in the event, plus some additional informational columns.

* added: True if this date was added as a mod and not in the original event. 
* modified: For dates that are included in the original event but have been modified (time, description, etc). Any modified columns will have the modified data rather than the original in this view. 
* removed: true if this particular date was removed. There are named scopes in calendar_event_dates for :removed and :not_removed.

![database.png](http://angelic.github.com/schedule_fu/database.png)

This plugin borrows a lot from [acts_as_calendar](http://github.com/dball/acts_as_calendar)
and [calendar_helper](http://github.com/topfunky/calendar_helper).
{'fraction_non_alphanumeric': 0.06297117516629712, 'fraction_numerical': 0.0, 'mean_word_length': 4.952506596306069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4462291', 'n_tokens_mistral': 614, 'n_tokens_neox': 594, 'n_words': 270}