<commit_before># OdataToEntity
OData .net core

##Sample OData query

//Create adapter data access, where OrderContext your DbContext
var dataAdapter = new OeEfCoreDataAdapter<Model.OrderContext>();
//Create OData EDM model
IEdmModel edmModel = OeEdmModelBuilder.BuildEdmModel(dataAdapter);
//Create query parser
var parser = new OeParser(new Uri("http://dummy"), dataAdapter, edmModel);
//Query
var uri = new Uri("http://dummy/Orders?$select=Name");
//The result of the query
var response = new MemoryStream();
//Execute query
await parser.ExecuteQueryAsync(uri, OeRequestHeaders.Default, response, CancellationToken.None);

##Sample OData batch request

//Create adapter data access, where OrderContext your DbContext
var dataAdapter = new OeEfCoreDataAdapter<Model.OrderContext>();
//Create OData EDM model
IEdmModel edmModel = OeEdmModelBuilder.BuildEdmModel(dataAdapter);
//Create query parser
var parser = new OeParser(new Uri("http://dummy"), dataAdapter, edmModel);
//Serialized entities in JSON UTF8 format
var request = new MemoryStream(File.ReadAllBytes("Batches\\Add.batch"));
//The result of the query
var response = new MemoryStream();
//Execute query
await parser.ExecuteBatchAsync(request, response, CancellationToken.None);<commit_msg>fix readme.md<commit_after># OdataToEntity
OData .net core

##Sample OData query

```
//Create adapter data access, where OrderContext your DbContext
var dataAdapter = new OeEfCoreDataAdapter<Model.OrderContext>();
//Create OData EDM model
IEdmModel edmModel = OeEdmModelBuilder.BuildEdmModel(dataAdapter);
//Create query parser
var parser = new OeParser(new Uri("http://dummy"), dataAdapter, edmModel);
//Query
var uri = new Uri("http://dummy/Orders?$select=Name");
//The result of the query
var response = new MemoryStream();
//Execute query
await parser.ExecuteQueryAsync(uri, OeRequestHeaders.Default, response, CancellationToken.None);
```

##Sample OData batch request

```
//Create adapter data access, where OrderContext your DbContext
var dataAdapter = new OeEfCoreDataAdapter<Model.OrderContext>();
//Create OData EDM model
IEdmModel edmModel = OeEdmModelBuilder.BuildEdmModel(dataAdapter);
//Create query parser
var parser = new OeParser(new Uri("http://dummy"), dataAdapter, edmModel);
//Serialized entities in JSON UTF8 format
var request = new MemoryStream(File.ReadAllBytes("Batches\\Add.batch"));
//The result of the query
var response = new MemoryStream();
//Execute query
await parser.ExecuteBatchAsync(request, response, CancellationToken.None);
```
{'fraction_non_alphanumeric': 0.11150793650793651, 'fraction_numerical': 0.0007936507936507937, 'mean_word_length': 6.101408450704225, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1388118', 'n_tokens_mistral': 735, 'n_tokens_neox': 728, 'n_words': 232}