This commit is contained in:
Aaron Peapell
2021-03-15 12:17:43 +11:00
parent e008a7f225
commit 06be9c6524
2429 changed files with 6676184 additions and 0 deletions

39
process/Program.cs Normal file
View File

@ -0,0 +1,39 @@
using System;
using System.IO;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
namespace process
{
class Program
{
static void Main(string[] args)
{
var input = File.ReadAllLines("C:\\Users\\tecel\\AppData\\Roaming\\Salty\\Salty.csv");
var count = new Dictionary<string, int>();
foreach (var line in input)
{
var t = line.Split("\",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).ToList();
if(t.Count > 3 && t[1] == "NATIVE")
{
if(!count.ContainsKey(t[3]))
{
count[t[3]] = 1;
}
count[t[3]]++;
}
}
var output = new List<string>();
foreach (var key in count.Keys)
{
output.Add(key + "," + count[key].ToString());
}
File.WriteAllLines("C:\\Users\\tecel\\AppData\\Roaming\\Salty\\Salty_processed.csv", output);
}
}
}

15
process/process.csproj Normal file
View File

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Globals">
<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>