<commit_before>(*** hide ***)
// This block of code is omitted in the generated HTML documentation. Use 
// it to define helpers that you do not want to show in the documentation.
#I "../../bin"

(**
F# Project Scaffold
===================

Documentation

<div class="row">
  <div class="span1"></div>
  <div class="span6">
    <div class="well well-small" id="nuget">
      The F# ProjectTemplate library can be <a href="https://nuget.org/packages/FSharp.ProjectTemplate">installed from NuGet</a>:
      <pre>PM> Install-Package FSharp.ProjectTemplate</pre>
    </div>
  </div>
  <div class="span1"></div>
</div>

Example
-------

This example demonstrates using a function defined in this sample library.

*)
#r "FSharp.ProjectTemplate.dll"
open FSharp.ProjectTemplate

printfn "hello = %i" <| Library.hello 0

(**
Some more info

Samples & documentation<commit_msg>start with docs<commit_after>(*** hide ***)
// This block of code is omitted in the generated HTML documentation. Use 
// it to define helpers that you do not want to show in the documentation.
#I "../../bin"
#r "log4net.dll"
(**
oxen
===================

Documentation

<div class="row">
  <div class="span1"></div>
  <div class="span6">
    <div class="well well-small" id="nuget">
      oxen can be <a href="https://nuget.org/packages/oxen">installed from NuGet</a>:
      <pre>PM> Install-Package oxen</pre>
    </div>
  </div>
  <div class="span1"></div>
</div>

Example
-------

This example demonstrates using a function defined in this sample library.

*)
#r "oxen.dll"
#r "StackExchange.Redis"

open oxen
open StackExchange.Redis

module example =
    type QueueData = {
        value: string
    }


    let multiplexer = ConnectionMultiplexer.Connect("localhost")
    let queue = Queue<QueueData>("examplequeue", multiplexer.GetDatabase, multiplexer.GetSubscriber)

    queue.``process`` (fun job -> 
        async {
            printfn "handling job with id %i and value %s" job.jobId job.data.value
        }
    )

    queue.add({ value = "testing 123"})

(**
Some more info

Samples & documentation
{'fraction_non_alphanumeric': 0.1604997597308986, 'fraction_numerical': 0.005285920230658337, 'mean_word_length': 3.4392324093816633, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, 'https://': 2, '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': '7520105', 'n_tokens_mistral': 674, 'n_tokens_neox': 637, 'n_words': 206}