<commit_before>DartAnalysis.NET
=========

A .NET wrapper around Google's Analysis Service for .NET.

## This is waaaaay incomplete. Come back soon!


Feedback
===
Please send your feedback/issues/feature requests! :-)

- GitHub Issues: [DartVS/issues](https://github.com/DanTup/DartAnalysis.NET/issues)
- Twitter: [@DanTup](https://twitter.com/DanTup)
- Google+: [<NAME>](http://profile.dantup.com/)
- Email: [<EMAIL>](mailto:<EMAIL>)<commit_msg>Updated README.<commit_after>DartAnalysis.NET
=========

A .NET wrapper around Google's Analysis Service for .NET.

## This is waaaaay incomplete. Come back soon!

Sample Usage
===

Creation
====
```csharp
// Note: Service is disposable!
var service = new DartAnalysisService(SdkFolder, ServerScript);
```

Usage
====
```csharp
// Subscribe to server notifications
service.AnalysisErrorsNotification += (s, e) => PrintErrors(e.Errors);
service.ServerStatusNotification += (s, e) => { if (!e.IsAnalyzing) { Print("Finished!") } };

// Send a request to set analysis roots
await service.SetAnalysisRoots(new[] { @"C:\MyCode\MyDartProject\" });

// Send updated content for changed files (eg. user is editing documents but has not saved)
await service.UpdateContent(
    @"C:\MyCode\MyDartProject\my_dart_project.dart",
    @"// New file contents..."
});
```


Feedback
===
Please send your feedback/issues/feature requests! :-)

- GitHub Issues: [DartVS/issues](https://github.com/DanTup/DartAnalysis.NET/issues)
- Twitter: [@DanTup](https://twitter.com/DanTup)
- Google+: [<NAME>](http://profile.dantup.com/)
- Email: [<EMAIL>](mailto:<EMAIL>)
{'fraction_non_alphanumeric': 0.17558212712397733, 'fraction_numerical': 0.0, 'mean_word_length': 4.867158671586716, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '4835099', 'n_tokens_mistral': 535, 'n_tokens_neox': 503, 'n_words': 124}