<commit_before>﻿using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using Dapper;

namespace DataSetExtension.Import
{
    public class Td3200Import : MeasurementImport
    {
        public override void Import(Stream stream, IDbConnection connection)
        {
			CreateCommand(connection);

            using (var reader = new StreamReader(stream, Encoding.ASCII))
            {
                while (!reader.EndOfStream)
                {
                    var line = reader.ReadLine();
                    if (line.Contains("TMAX"))
                    {
                       ImportTemperatureMax(connection, Td3200.Parse(line));
                    }

                    if (line.Contains("TMIN"))
                    {
						ImportTemperatureMin(connection, Td3200.Parse(line));
                    }

                    if (line.Contains("PRCP"))
                    {
						ImportPrecipitation(connection, Td3200.Parse(line));
                    }
					
					Total += 1;
                }
				
				Command.Transaction.Commit();
            }
        }
    }
}<commit_msg>cleanup<commit_after>﻿using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using Dapper;

namespace DataSetExtension.Import
{
    public class Td3200Import : MeasurementImport
    {
        public override void Import(Stream stream, IDbConnection connection)
        {
            CreateCommand(connection);

            using (var reader = new StreamReader(stream, Encoding.ASCII))
            {
                while (!reader.EndOfStream)
                {
                    var line = reader.ReadLine();
                    if (line.Contains("TMAX"))
                    {
                       ImportTemperatureMax(connection, Td3200.Parse(line));
                    }

                    if (line.Contains("TMIN"))
                    {
                        ImportTemperatureMin(connection, Td3200.Parse(line));
                    }

                    if (line.Contains("PRCP"))
                    {
                        ImportPrecipitation(connection, Td3200.Parse(line));
                    }

                    Total += 1;
                }

                Command.Transaction.Commit();
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.09048228766538625, 'fraction_numerical': 0.014511310285958173, 'mean_word_length': 1.3300198807157058, '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': '6631834', 'n_tokens_mistral': 643, 'n_tokens_neox': 551, 'n_words': 104}