<commit_before>﻿// Learn more about F# at http://fsharp.net
// See the 'F# Tutorial' project for more help.

open System

open Amazon.SimpleWorkflow
open Amazon.SimpleWorkflow.Extensions
open Amazon.SimpleWorkflow.Model

open SWF.Extensions.Core.Model
open SWF.Extensions.Core.Workflow

let client = new AmazonSimpleWorkflowClient()

let greet _ =
    printf "hello"
    "my name is Yan"

let echo str = 
    printf "%s" str
    ""

[<EntryPoint>]
let main argv = 
    let workflow = 
        Workflow(domain = "iwi", name = "hello_world", description = "test workflow", version = "1")
        ++> Activity("greet", "say hi", greet, 60, 10, 10, 20)
        ++> Activity("echo", "echo", echo, 60, 10, 10, 20)
        
    workflow.Start(client)

    while true do
        Console.ReadKey() |> ignore
    0<commit_msg>- added one more activity to the example workflow<commit_after>﻿// Learn more about F# at http://fsharp.net
// See the 'F# Tutorial' project for more help.

open System

open Amazon.SimpleWorkflow
open Amazon.SimpleWorkflow.Extensions
open Amazon.SimpleWorkflow.Model

open SWF.Extensions.Core.Model
open SWF.Extensions.Core.Workflow

let client = new AmazonSimpleWorkflowClient()

let greet _ =
    printfn "hello"
    "my name is Yan"

let echo str = 
    printfn "%s" str
    ""

let bye _ =
    printfn "good bye!"
    ""

[<EntryPoint>]
let main argv = 
    let workflow = 
        Workflow(domain = "iwi", name = "yc_test", description = "test workflow", version = "1")
        ++> Activity("greet", "say hi", greet, 60, 10, 10, 20)
        ++> Activity("echo", "echo", echo, 60, 10, 10, 20)
        ++> Activity("bye", "say bye", bye, 60, 10, 10, 20)
        
    workflow.Register(client)
    workflow.Start(client)

    while true do
        System.Threading.Thread.Sleep(1000)
    0
{'fraction_non_alphanumeric': 0.1277654867256637, 'fraction_numerical': 0.02654867256637168, 'mean_word_length': 3.002212389380531, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6627486', 'n_tokens_mistral': 640, 'n_tokens_neox': 572, 'n_words': 184}