<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarRegister
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }<commit_msg>Working Main.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarRegister
{
    class Program
    {
        static void Main(string[] args)
        {
            Person p = new Person();

            Console.Write("Förnamn: ");
            p.FirstName = Console.ReadLine();
            Console.Write("Efternamn: ");
            p.LastName = Console.ReadLine();

            Console.Write("Antal bilar: ");
            int carCount = int.Parse(Console.ReadLine());

            p.Cars = new List<Car>();

            for (int i = 0; i < carCount; i++)
            {
                Console.Write("RegNo: ");
                p.Cars.Add(new Car() { RegNo = Console.ReadLine() });
            }

            using (CarRegisterContext ctx = new CarRegisterContext())
            {
                ctx.People.Add(p);
                ctx.SaveChanges();
            }

            Console.WriteLine("{0} {1} sparad med {2} bilar",
                p.FirstName, p.LastName, carCount);

            Console.WriteLine("Tryck på någon tangent för att fortsätta...");
            Console.ReadKey();
        }
    }
{'fraction_non_alphanumeric': 0.12198483804272915, 'fraction_numerical': 0.0027567195037904893, 'mean_word_length': 1.7816091954022988, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '4402037', 'n_tokens_mistral': 414, 'n_tokens_neox': 399, 'n_words': 91}