<commit_before>﻿using System;
using System.Collections.Generic;
using Amazon;
using Amazon.CloudWatchLogs;
using Amazon.CloudWatchLogs.Model;
using Amazon.Runtime;
using Amazon.Runtime.CredentialManagement;

namespace LogGenerator {

    //--- Class ---
    class Program {
    
        //--- Methods ---
        static void Main(string[] args) {
            var region = RegionEndpoint.GetBySystemName("us-west-2");
            var chain = new CredentialProfileStoreChain();
            AWSCredentials awsCredentials;
            if (chain.TryGetAWSCredentials("default", out awsCredentials)) { 
                var client = new AmazonCloudWatchLogsClient(awsCredentials, region);
                var request = new PutLogEventsRequest {
                      LogGroupName = "/lambda-sharp/log-parser/juant",
                      LogStreamName = "test",
                      LogEvents = new List<InputLogEvent> {
                          new InputLogEvent {
                              Message = "Test1\n", 
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "Error: foobar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[ERROR] Foo\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "Error: foobar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[WARNING] Bar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "Error: foobar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[Info] Should not show up\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[INFO] this should show up\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[BlA!]\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[BALH]\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[Soccer]\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[SOCCER] alalalalala goool\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "ajk",
                               Timestamp = DateTime.Now
                          }
                      },
                      SequenceToken = "49574622130422221348734194464193416485261082947565394354"
                };
                
                var response = client.PutLogEventsAsync(request).Result;
                Console.WriteLine(response.NextSequenceToken);
            }
        }
    }
}<commit_msg>Update program, using constants<commit_after>﻿using System;
using System.Collections.Generic;
using Amazon;
using Amazon.CloudWatchLogs;
using Amazon.CloudWatchLogs.Model;
using Amazon.Runtime;
using Amazon.Runtime.CredentialManagement;

namespace LogGenerator {
    
    //--- Class ---
    class Program {
    
        //--- Constants ---
        const string LOG_GROUP = "/lambda-sharp/log-parser/dev";
        const string LOG_STREAM = "test-log-stream";
        
        //--- Methods ---
        static void Main(string[] args) {
            var region = RegionEndpoint.GetBySystemName("us-west-2");
            var chain = new CredentialProfileStoreChain();
            AWSCredentials awsCredentials;
            if (chain.TryGetAWSCredentials("default", out awsCredentials)) { 
                var client = new AmazonCloudWatchLogsClient(awsCredentials, region);
                var request = new PutLogEventsRequest {
                      LogGroupName = LOG_GROUP,
                      LogStreamName = LOG_STREAM,
                      LogEvents = new List<InputLogEvent> {
                          new InputLogEvent {
                              Message = "Test1\n", 
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "Error: foobar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[ERROR] Foo\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "Error: foobar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[WARNING] Bar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "Error: foobar\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[Info] Should not show up\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[INFO] this should show up\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[BlA!]\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[BALH]\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[Soccer]\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "[SOCCER] alalalalala goool\n",
                              Timestamp = DateTime.Now
                          },
                          new InputLogEvent {
                              Message = "ajk",
                               Timestamp = DateTime.Now
                          }
                      },
//                      SequenceToken = "49567750446880921213636912228400127364839351295405982594"
                };
                
                var response = client.PutLogEventsAsync(request).Result;
                Console.WriteLine(response.NextSequenceToken);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.07063638764193293, 'fraction_numerical': 0.015315553208344336, 'mean_word_length': 0.8104684512428298, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1423453', 'n_tokens_mistral': 1639, 'n_tokens_neox': 1508, 'n_words': 316}