<commit_before>﻿using ITN.Felicity.Api.Models;
using ITN.Felicity.Domain;
using ITN.Felicity.Domain.Repositories;
using ITN.Felicity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Cors;

namespace ITN.Felicity.Api.Controllers
{
    [EnableCors(origins: "http://mywebclient.azurewebsites.net", headers: "*", methods: "*")]
    public class ArticleController : ApiController
    {
        private readonly IArticleRepository _repo;
        private readonly IUnitOfWork _unitOfWork;

        public ArticleController(IArticleRepository repo, IUnitOfWork unitOfWork)
        {
            this._repo = repo;<commit_msg>modified cors attribute to allow all websites access<commit_after>﻿using ITN.Felicity.Api.Models;
using ITN.Felicity.Domain;
using ITN.Felicity.Domain.Repositories;
using ITN.Felicity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Cors;

namespace ITN.Felicity.Api.Controllers
{
    [EnableCors(origins: "*", headers: "*", methods: "*")]
    public class ArticleController : ApiController
    {
        private readonly IArticleRepository _repo;
        private readonly IUnitOfWork _unitOfWork;

        public ArticleController(IArticleRepository repo, IUnitOfWork unitOfWork)
        {
            this._repo = repo;
{'fraction_non_alphanumeric': 0.09610389610389611, 'fraction_numerical': 0.0, 'mean_word_length': 4.277397260273973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3950491', 'n_tokens_mistral': 465, 'n_tokens_neox': 456, 'n_words': 103}