<commit_before>![GenericDatasrouce](/pablo.png?raw=true "GenericDatasource")

# GenericDatasource
A Swift implementation of a generic datasource that you can use for table views.

####Snag it from Cocoapods
    pod 'GenericDatasource', ~> '0.1.0'
    
###What is it for?
This simple class has only one job, to move your datasource logic outside of your controller. That's it :-). There are no tricks or anything special about it, other than it helps promote skinny view controllers.

###How do I use it?
Simply set up your GenericDatasource class with the information it needs in its initializer.

    genericDataSource = GenericTVDatasource(data: data, cellID: "Cell") { cell, item in
       //Do any cell configuration here
       cell.textLabel?.text = item as? String
    }

Whenever your table view is initialized, just set its datasource to your `GenericDatasouce` instance:

    aTableview.dataSource = genericDataSource

And profit!

###What's coming?
  - Support for collection views.
  - Ability to specify sections.

###Can I tweet at you?
Please do, [@jordanmorgan10](https://twitter.com/jordanmorgan10). As the mantra goes - pull requests welcome.
<commit_msg>Correct the spelling of CocoaPods in README<commit_after>![GenericDatasrouce](/pablo.png?raw=true "GenericDatasource")

# GenericDatasource
A Swift implementation of a generic datasource that you can use for table views.

####Snag it from CocoaPods
    pod 'GenericDatasource', ~> '0.1.0'
    
###What is it for?
This simple class has only one job, to move your datasource logic outside of your controller. That's it :-). There are no tricks or anything special about it, other than it helps promote skinny view controllers.

###How do I use it?
Simply set up your GenericDatasource class with the information it needs in its initializer.

    genericDataSource = GenericTVDatasource(data: data, cellID: "Cell") { cell, item in
       //Do any cell configuration here
       cell.textLabel?.text = item as? String
    }

Whenever your table view is initialized, just set its datasource to your `GenericDatasouce` instance:

    aTableview.dataSource = genericDataSource

And profit!

###What's coming?
  - Support for collection views.
  - Ability to specify sections.

###Can I tweet at you?
Please do, [@jordanmorgan10](https://twitter.com/jordanmorgan10). As the mantra goes - pull requests welcome.

{'fraction_non_alphanumeric': 0.08333333333333333, 'fraction_numerical': 0.005892255892255892, 'mean_word_length': 4.156182212581345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7400807', 'n_tokens_mistral': 700, 'n_tokens_neox': 658, 'n_words': 290}