<commit_before>Which Browser
-------------

Which Browser adds a few helper methods to a rack request so you can write cleaner logic in your views.

For example, the age old battle against IE 5 & 6 can be handled like so:
  
    stylesheet_link_tag "ie" if request.old_ie?


Here's some other popular helpers:

    request.ie?
    request.ie6?
    request.ipad?
    request.ipod?
    request.iphone?
    request.mobile_safari?
    


License
-------

Copyright (c) 2011 <NAME>, released under the New BSD License All rights reserved.<commit_msg>updatd readme<commit_after>Which Browser
-------------

Which Browser adds a few helper methods to a rack request so you can write cleaner browser-related logic.

For example, the age old battle against IE 5 & 6 can be handled like so:
  
    stylesheet_link_tag "ie" if request.ie_lt7?

And for a nice browser warning:

    - if request.ie6?
      IE6 makes the internet suck.
    - elsif request.ie5?
      You've got to be kidding me.
    

Or in your rails controller, decide which layout:

    render :layout => request.mobile_safari? ? 'mobile' : 'application' 



Here's some other popular helpers:

    request.ie?
    request.ie6?
    request.ie_lt6?
    request.ie_gte7?
    
    request.ipad?
    request.ipod?
    request.iphone?
    request.mobile_safari?


License
-------

Copyright (c) 2011 <NAME>, released under the New BSD License All rights reserved.
{'fraction_non_alphanumeric': 0.09187279151943463, 'fraction_numerical': 0.014134275618374558, 'mean_word_length': 2.765957446808511, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '3151837', 'n_tokens_mistral': 452, 'n_tokens_neox': 418, 'n_words': 166}