<commit_before>﻿using System.Linq;
using System.Net;
using System.Web.Mvc;

namespace FalconSharp.TestHarness.Controllers
{
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			var fiddlerProxy = new WebProxy("127.0.0.1", 8888);

            //var falcon = new FalconClient("api_key");
            var falcon = new FalconClient("api_key", fiddlerProxy);
            var channels = falcon.GetChannels();
		    var uniqueNetworks = channels.Items.Select(x => x.Network).Distinct().ToArray();

		    foreach (var uniqueNetwork in uniqueNetworks)
		    {
		        var chan = channels.Items.First(x => x.Network == uniqueNetwork);
                var content = falcon.GetChannelContent(chan.Id, limit: 10, offset: 100);
		        var t = 1;
		    }<commit_msg>Updated API based on recent changes API has been simplified to two methods, GetChannels and GetContentFeed as the rest of the endpoing API is incomplete<commit_after>﻿using System.Linq;
using System.Net;
using System.Web.Mvc;

namespace FalconSharp.TestHarness.Controllers
{
	public class HomeController : Controller
	{
		public ActionResult Index()
		{
			var fiddlerProxy = new WebProxy("127.0.0.1", 8888);

            //var falcon = new FalconClient("api_key");
            var falcon = new FalconClient("api_key", fiddlerProxy);
            var channels = falcon.GetChannels();
		    var uniqueNetworks = channels.Items.Select(x => x.Network).Distinct().ToArray();

		    foreach (var uniqueNetwork in uniqueNetworks)
		    {
		        var chan = channels.Items.First(x => x.Network == uniqueNetwork);
                var content = falcon.GetContentFeed(channels: new[] {chan.Id}, limit: 100);
		        var t = 1;
		    }
{'fraction_non_alphanumeric': 0.10864485981308411, 'fraction_numerical': 0.017523364485981307, 'mean_word_length': 2.993006993006993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3224478', 'n_tokens_mistral': 555, 'n_tokens_neox': 489, 'n_words': 136}