<commit_before>using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web.Mvc;
using Newtonsoft.Json;
using Swetugg.Web.Areas.Admin.Controllers.Models;
using Swetugg.Web.Models;
using Swetugg.Web.Controllers;
using Swetugg.Web.Services;
using System.Configuration;

namespace Swetugg.Web.Areas.Admin.Controllers
{

    public class SessionizeController : ConferenceAdminControllerBase
    {
        private readonly IImageUploader _imageUploader;
        private readonly string _speakerImageContainerName;
        private static string baseurl = "api/v2/ckitpijn/view"; //TODO: move to conference (new field)

        public SessionizeController(IImageUploader imageUploader, Web.Models.ApplicationDbContext dbContext) : base(dbContext)
        {
            _imageUploader = imageUploader;
            _speakerImageContainerName = ConfigurationManager.AppSettings["Storage.Container.Speakers.SpeakerImages"];

        }


        [Route("{conferenceSlug}/Sessionize")]
        public async Task<ActionResult> Index()
        {
            var m = new SessionizeSync();

            var Speakers = await GetSpeakerFromSessionize();

            var speakersAllreadyInDatabase = dbContext.Speakers
                .Where(s => s.SessionizeId.HasValue && s.ConferenceId == ConferenceId)
                .Select(s => s.SessionizeId.Value);

            m.Speakers = Speakers.Select(s => new SpeakerSync
            {<commit_msg>new sessionize id<commit_after>using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web.Mvc;
using Newtonsoft.Json;
using Swetugg.Web.Areas.Admin.Controllers.Models;
using Swetugg.Web.Models;
using Swetugg.Web.Controllers;
using Swetugg.Web.Services;
using System.Configuration;

namespace Swetugg.Web.Areas.Admin.Controllers
{

    public class SessionizeController : ConferenceAdminControllerBase
    {
        private readonly IImageUploader _imageUploader;
        private readonly string _speakerImageContainerName;
        private static string baseurl = "api/v2/ful893fy/view"; //TODO: move to conference (new field)

        public SessionizeController(IImageUploader imageUploader, Web.Models.ApplicationDbContext dbContext) : base(dbContext)
        {
            _imageUploader = imageUploader;
            _speakerImageContainerName = ConfigurationManager.AppSettings["Storage.Container.Speakers.SpeakerImages"];

        }


        [Route("{conferenceSlug}/Sessionize")]
        public async Task<ActionResult> Index()
        {
            var m = new SessionizeSync();

            var Speakers = await GetSpeakerFromSessionize();

            var speakersAllreadyInDatabase = dbContext.Speakers
                .Where(s => s.SessionizeId.HasValue && s.ConferenceId == ConferenceId)
                .Select(s => s.SessionizeId.Value);

            m.Speakers = Speakers.Select(s => new SpeakerSync
            {
{'fraction_non_alphanumeric': 0.08749189889825017, 'fraction_numerical': 0.0016202203499675956, 'mean_word_length': 3.234567901234568, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6271487', 'n_tokens_mistral': 853, 'n_tokens_neox': 838, 'n_words': 180}