<commit_before># Framework Depviz

A simple tool to visualize OS X and iOS framework dependencies.

This tool generates a Graphviz dot file of the framework dependencies at a given system library root.

Example usage:

`./depviz.py /System/Library > dependencies.dot`

This will create a file named `dependencies.dot` which can be opened with Graphviz.

You might also do:

`./depviz.py "~/Library/Developer/Xcode/iOS DeviceSupport/5.1.1 (9B206)/Symbols/System/Library/" AirTraffic > airtraffic.dot`

To generate a graph of just the dependencies of `AirTraffic.framework`. This graph might look like:

![AirTraffic Graph](screenshots/airtraffic.png?raw=true)

Pink indicates a private framework. Green is public.

You can append multiple names, eg:

`./depviz.py "~/Library/Developer/Xcode/iOS DeviceSupport/5.1.1 (9B206)/Symbols/System/Library/" AirTraffic CoreVideo`

## Installing Graphviz on OS X

The most reliable method for installing Graphviz on OS X I've found is with Homebrew:

`brew install graphviz --with-app`

then:

`brew linkapps`
<commit_msg>Breaking lines on a long command<commit_after># Framework Depviz

A simple tool to visualize OS X and iOS framework dependencies.

This tool generates a Graphviz dot file of the framework dependencies at a given system library root.

Example usage:

`./depviz.py /System/Library > dependencies.dot`

This will create a file named `dependencies.dot` which can be opened with Graphviz.

You might also do:

`./depviz.py "~/Library/Developer/Xcode/iOS DeviceSupport/5.1.1 (9B206)/Symbols/System/Library/" AirTraffic > airtraffic.dot`

To generate a graph of just the dependencies of `AirTraffic.framework`. This graph might look like:

![AirTraffic Graph](screenshots/airtraffic.png?raw=true)

Pink indicates a private framework. Green is public.

You can append multiple names, eg:

```
./depviz.py "~/Library/Developer/Xcode/iOS DeviceSupport/5.1.1 (9B206)/Symbols/System/Library/" \
AirTraffic CoreVideo
```

## Installing Graphviz on OS X

The most reliable method for installing Graphviz on OS X I've found is with Homebrew:

`brew install graphviz --with-app`

then:

`brew linkapps`

{'fraction_non_alphanumeric': 0.09082440614811364, 'fraction_numerical': 0.01304145319049837, 'mean_word_length': 4.479591836734694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '1234728', 'n_tokens_mistral': 693, 'n_tokens_neox': 654, 'n_words': 251}