<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.FindSymbols;
using Microsoft.CodeAnalysis.Text;
using OmniSharp.Models;
using OmniSharp.Roslyn;

namespace OmniSharp
{
    public partial class OmnisharpController
    {
        [HttpPost("metadata")]
        public async Task<MetadataResponse> Metadata(MetadataRequest request)
        {
            var response = new MetadataResponse();
#if DNX451
            foreach (var project in _workspace.CurrentSolution.Projects)
            {
                var compliation = await project.GetCompilationAsync();
                var symbol = compliation.GetTypeByMetadataName(request.TypeName);
                if (symbol != null && symbol.ContainingAssembly.Name == request.AssemblyName)
                {
                    var document = await MetadataHelper.GetDocumentFromMetadata(project, symbol);
                    var source = await document.GetTextAsync();
                    response.SourceName = MetadataHelper.GetFilePathForSymbol(project, symbol);
                    response.Source = source.ToString();
                    
                    return response;
                }
            }
#endif
            return response;
        }
    }
}<commit_msg>Attempt to fix build error on travis<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.FindSymbols;
using Microsoft.CodeAnalysis.Text;
using OmniSharp.Models;
using OmniSharp.Roslyn;

namespace OmniSharp
{
    public partial class OmnisharpController
    {
#if DNX451
        [HttpPost("metadata")]
        public async Task<MetadataResponse> Metadata(MetadataRequest request)
        {
            var response = new MetadataResponse();
            foreach (var project in _workspace.CurrentSolution.Projects)
            {
                var compliation = await project.GetCompilationAsync();
                var symbol = compliation.GetTypeByMetadataName(request.TypeName);
                if (symbol != null && symbol.ContainingAssembly.Name == request.AssemblyName)
                {
                    var document = await MetadataHelper.GetDocumentFromMetadata(project, symbol);
                    var source = await document.GetTextAsync();
                    response.SourceName = MetadataHelper.GetFilePathForSymbol(project, symbol);
                    response.Source = source.ToString();

                    return response;
                }
            }
            return response;
        }
#else
        [HttpPost("metadata")]
        public Task<MetadataResponse> Metadata(MetadataRequest request)
        {
            // this handles the case where the method isn't async on coreclr
            return Task.FromResult(new MetadataResponse());
        }
#endif
    }
}
{'fraction_non_alphanumeric': 0.07714561234329798, 'fraction_numerical': 0.0019286403085824494, 'mean_word_length': 2.3283422459893046, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6201780', 'n_tokens_mistral': 764, 'n_tokens_neox': 732, 'n_words': 182}