<commit_before>banshee
=======

An iOS browser built on top of UIWebView

This projects implements tabs, bookmarks, address bar, search bar, loading indicators, and much more for UIWebView. Currently it only supports iOS 5.0 and greater with ARC-only.  

## Installation

* Copy "Browser" and "Browser Resources" folder into your xcode project.


## Dependencies

* CoreData.framework
* SystemConfiguration.framework
* libxml2.2.dylib

To include these dependencies you need to add them to your linked libraries. To do this click on project name in Project Navigator then click on your project target. Then under the "Build Phases" section you will see a "Link Binary With Libraries" item, expand it and click the "+" button.

Since libxml is not a framework but rather a dylib you will also have to add it to the head search paths. To do this go to "Build Settings" section of xcode.Set the "Head Search Paths": `$(SDKROOT)/usr/include/libxml2`


## Integration

The recommended way to integrate the browser code is to make your view controller a subclass of the browser controller. Which should look something like this:

    @interface ViewController : BrowserViewController


### AppDelegate

The browser code does reference the app delegate, so you must have an AppDelegate Task. In the app delegate you should place this code in your `didFinishLaunchingWithOptions`:

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        self.viewController = [[ViewController alloc] initWithNibName:@"MainWindow" bundle:nil];
    } else {
        self.viewController = [[ViewController alloc] initWithNibName:@"MainWindow-iPad" bundle:nil];
    }
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];
    return YES;
    
You will also need to implement the following CoreData methods in your AppDelegate to pull in the BrowserModel for storing bookmarks in core data:
    
    - (NSManagedObjectContext *)managedObjectContext {
        ....
    }

    - (NSManagedObjectModel *)managedObjectModel {
        ....
    }

    - (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
        ....
    }

## Misc

  There is a `customButtom` UIBarButtonitem which you can customize programatically in your view controller. This button appears in the bottom toolbar on the right. You can also overwrite the click handler method `-(IBAction) customButtonClick:(id)sender`.


## License

Copyright (c) 2013 Evidon

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
<commit_msg>add a note about iOS7<commit_after>banshee
=======

An iOS browser built on top of UIWebView

This projects implements tabs, bookmarks, address bar, search bar, loading indicators, and much more for UIWebView. Currently it only supports iOS 5.0 and greater with ARC-only.  

## Installation

* Copy "Browser" and "Browser Resources" folder into your xcode project.


## Dependencies

* CoreData.framework
* SystemConfiguration.framework
* libxml2.2.dylib

To include these dependencies you need to add them to your linked libraries. To do this click on project name in Project Navigator then click on your project target. Then under the "Build Phases" section you will see a "Link Binary With Libraries" item, expand it and click the "+" button.

Since libxml is not a framework but rather a dylib you will also have to add it to the head search paths. To do this go to "Build Settings" section of xcode.Set the "Head Search Paths": `$(SDKROOT)/usr/include/libxml2`


## Integration

The recommended way to integrate the browser code is to make your view controller a subclass of the browser controller. Which should look something like this:

    @interface ViewController : BrowserViewController


### AppDelegate

The browser code does reference the app delegate, so you must have an AppDelegate Task. In the app delegate you should place this code in your `didFinishLaunchingWithOptions`:

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        self.viewController = [[ViewController alloc] initWithNibName:@"MainWindow" bundle:nil];
    } else {
        self.viewController = [[ViewController alloc] initWithNibName:@"MainWindow-iPad" bundle:nil];
    }
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];
    return YES;
    
You will also need to implement the following CoreData methods in your AppDelegate to pull in the BrowserModel for storing bookmarks in core data:
    
    - (NSManagedObjectContext *)managedObjectContext {
        ....
    }

    - (NSManagedObjectModel *)managedObjectModel {
        ....
    }

    - (NSPersistentStoreCoordinator *)persistentStoreCoordinator {
        ....
    }

## Misc

  There is a `customButtom` UIBarButtonitem which you can customize programatically in your view controller. This button appears in the bottom toolbar on the right. You can also overwrite the click handler method `-(IBAction) customButtonClick:(id)sender`.

  Note: The views are not iOS7 ready yet.


## License

Copyright (c) 2013 Evidon

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

{'fraction_non_alphanumeric': 0.06463584351322096, 'fraction_numerical': 0.003092624091541673, 'mean_word_length': 4.211925866236906, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6826955', 'n_tokens_mistral': 1684, 'n_tokens_neox': 1578, 'n_words': 784}