<commit_before>﻿using LcMarkdown;
using LcRest;
using Markdig;
using Markdig.Renderers;
using RestSharp;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for LcContent
/// </summary>
public class LcContent
{
    public LcContent()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public IEnumerable<HelpArticle> GetHelpArticleList()
    {
        var client = new RestClient("https://api.github.com");
        var request = new RestRequest("/repos/loconomics-au/coop-website/contents/help/articles/205985385-how-do-i-import-and-sync-my-existing-calendar.md", Method.GET);
        request.RequestFormat = DataFormat.Json;

        var response = client.Execute<HelpPage>(request);<commit_msg>#45 add setting for github pages<commit_after>﻿using LcMarkdown;
using LcRest;
using Markdig;
using Markdig.Renderers;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for LcContent
/// </summary>
public class LcContent
{
    public LcContent()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public IEnumerable<HelpArticle> GetHelpArticleList()
    {
        var pageOwnerRepo = ConfigurationManager.AppSettings["pageOwnerRepo"];
        var client = new RestClient("https://api.github.com");
        var request = new RestRequest("/repos/loconomics-au/coop-website/contents/help/articles/205985385-how-do-i-import-and-sync-my-existing-calendar.md", Method.GET);
        request.RequestFormat = DataFormat.Json;

        var response = client.Execute<HelpPage>(request);
{'fraction_non_alphanumeric': 0.11931818181818182, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 3.295121951219512, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4119640', 'n_tokens_mistral': 540, 'n_tokens_neox': 517, 'n_words': 115}