<commit_before>﻿// // //------------------------------------------------------------------------------------------------- 
// // // <copyright file="SetController.cs" company="Microsoft Corporation">
// // // Copyright (c) Microsoft Corporation. All rights reserved.
// // // </copyright>
// // //-------------------------------------------------------------------------------------------------

namespace CubeServer.Controllers
{
    using System;
    using System.Collections.Generic;
    using System.Web.Caching;
    using System.Web.Http;

    public class SetController : ApiController
    {

        [HttpGet]
        [Route("sets")]
        public IHttpActionResult GetAll()
        {
            return this.Ok(Dependency.Storage.EnumerateSets());
        }

        [HttpGet]
        [Route("sets/{setid}")]
        public IHttpActionResult Get(string setid)
        {
            try<commit_msg>Sort order on results<commit_after>﻿// // //------------------------------------------------------------------------------------------------- 
// // // <copyright file="SetController.cs" company="Microsoft Corporation">
// // // Copyright (c) Microsoft Corporation. All rights reserved.
// // // </copyright>
// // //-------------------------------------------------------------------------------------------------

namespace CubeServer.Controllers
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web.Caching;
    using System.Web.Http;

    public class SetController : ApiController
    {

        [HttpGet]
        [Route("sets")]
        public IHttpActionResult GetAll()
        {
            return this.Ok(Dependency.Storage.EnumerateSets().OrderBy(set => set.Name));
        }

        [HttpGet]
        [Route("sets/{setid}")]
        public IHttpActionResult Get(string setid)
        {
            try
{'fraction_non_alphanumeric': 0.3169164882226981, 'fraction_numerical': 0.0, 'mean_word_length': 1.1657010428736965, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '236011', 'n_tokens_mistral': 416, 'n_tokens_neox': 414, 'n_words': 87}