<commit_before>﻿using RapidBase.Models;
using System.Web.Mvc;

namespace RapidBase.Controllers
{
    public class HelpController : Controller
    {
        public ActionResult Index()
        {
            return View(new HelpModel
            {
                Routes = new[] 
                { 
                    new RouteModel
                    {
                        Template = "blocks/[blockId|height|tip]?format=[json|raw]&headeronly=[false|true]",
                        Samples = new RouteSample[]
                        {
                            "blocks/0000000000000000119fe3f65fd3038cbe8429ad2cf7c2de1e5e7481b34a01b4",
                            "blocks/321211",
                            "blocks/tip",
                            "blocks/tip-1",
                            "blocks/tip?format=json",
                            "blocks/tip?format=json&headeronly=true",
                            "blocks/tip?format=raw",
                            "blocks/tip?format=raw&headeronly=true",
                        }
                    },
                     new RouteModel
                    {
                        Template = "blocks/[blockFeature]/header",
                        Samples = new RouteSample[]
                        {
                            "blocks/tip/header"
                        }
                    },
                    new RouteModel
                    {
                        Template = "transactions/[txId]?format=[json|raw]&headeronly=[false|true]",
                        Samples = new RouteSample[]
                        {
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=json",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=json&headeronly=true",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=raw",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=raw&headeronly=true",
                        }
                    },
                    new RouteModel
                    {
                        Template = "balances/[address]?unspentOnly=[false|true]&from=[blockFeature]&to=[blockFeature]&continuation=[continuation]",
                        Samples = new RouteSample[]
                        {
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe",
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe?unspentonly=true",
                            "balances/1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp?from=336410&until=336000",
                            "balances/1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp?from=tip&until=336000"
                        }
                    },
                     new RouteModel
                    {
                        Template = "balances/[coloredaddress]?unspentOnly=[false|true]&from=[blockFeature]&to=[blockFeature]&continuation=[continuation]",
                        Samples = new RouteSample[]
                        {
                            "balances/<KEY>",
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi?unspentonly=true",
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi?from=336410&until=336000",
                            "balances/<KEY>TMwdhVbHxtgHb6GGi?from=tip&until=336000"
                        }
                    },
                    new RouteModel
                    {
                        Template = "balances/[address]/summary?at=[blockFeature]",
                        Samples = new RouteSample[]
                        {
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe/summary",
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe/summary?at=318331",
                        }
                    },
                     new RouteModel
                    {
                        Template = "balances/[coloredaddress]/summary?at=[blockFeature]",
                        Samples = new RouteSample[]
                        {
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi/summary",
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi/summary?at=318331",
                        }
                    },
                    new RouteModel
                    {
                        Template = "whatisit/[address|txId|blockId|blockheader|base58|transaction|signature|script|scriptbytes]",
                        Samples = new[]
                        {<commit_msg>update help page<commit_after>﻿using RapidBase.Models;
using System.Web.Mvc;

namespace RapidBase.Controllers
{
    public class HelpController : Controller
    {
        public ActionResult Index()
        {
            return View(new HelpModel
            {
                Routes = new[] 
                { 
                    new RouteModel
                    {
                        Template = "blocks/[blockId|height|tip]?format=[json|raw]&headeronly=[false|true]",
                        Samples = new RouteSample[]
                        {
                            "blocks/0000000000000000119fe3f65fd3038cbe8429ad2cf7c2de1e5e7481b34a01b4",
                            "blocks/321211",
                            "blocks/tip",
                            "blocks/tip-1",
                            "blocks/tip?format=json",
                            "blocks/tip?format=json&headeronly=true",
                            "blocks/tip?format=raw",
                            "blocks/tip?format=raw&headeronly=true",
                        }
                    },
                     new RouteModel
                    {
                        Template = "blocks/[blockFeature]/header",
                        Samples = new RouteSample[]
                        {
                            "blocks/tip/header"
                        }
                    },
                    new RouteModel
                    {
                        Template = "transactions/[txId]?format=[json|raw]&headeronly=[false|true]",
                        Samples = new RouteSample[]
                        {
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=json",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=json&headeronly=true",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=raw",
                            "transactions/38d4cfeb57d6685753b7a3b3534c3cb576c34ca7344cd4582f9613ebf0c2b02a?format=raw&headeronly=true",
                        }
                    },
                    new RouteModel
                    {
                        Template = "balances/[address]?unspentOnly=[false|true]&from=[blockFeature]&to=[blockFeature]&continuation=[continuation]&colored=[false|true]",
                        Samples = new RouteSample[]
                        {
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe",
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe?unspentonly=true",
                            "balances/1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp?from=336410&until=336000",
                            "balances/1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp?from=tip&until=336000"
                        }
                    },
                     new RouteModel
                    {
                        Template = "balances/[coloredaddress]?unspentOnly=[false|true]&from=[blockFeature]&to=[blockFeature]&continuation=[continuation]",
                        Samples = new RouteSample[]
                        {
                            "balances/<KEY>",
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi?unspentonly=true",
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi?from=336410&until=336000",
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi?from=tip&until=336000"
                        }
                    },
                    new RouteModel
                    {
                        Template = "balances/[address]/summary?at=[blockFeature]&colored=[false|true]",
                        Samples = new RouteSample[]
                        {
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe/summary",
                            "balances/15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe/summary?at=318331",
                        }
                    },
                     new RouteModel
                    {
                        Template = "balances/[coloredaddress]/summary?at=[blockFeature]",
                        Samples = new RouteSample[]
                        {
                            "balances/akEBcY5k1dn2yeEdFnTMwdhVbHxtgHb6GGi/summary",
                            "balances/<KEY>gHb6GGi/summary?at=318331",
                        }
                    },
                    new RouteModel
                    {
                        Template = "whatisit/[address|txId|blockId|blockheader|base58|transaction|signature|script|scriptbytes]",
                        Samples = new[]
                        {
{'fraction_non_alphanumeric': 0.07857811038353602, 'fraction_numerical': 0.07192599521879223, 'mean_word_length': 1.1695603156708005, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '3091104', 'n_tokens_mistral': 3116, 'n_tokens_neox': 2641, 'n_words': 200}