<commit_before>exports.newlogonProcessorAcceptor = function() {
    return new logonProcessorAcceptor();
};

var path = require('path');
var fs = require('fs');
var sys = require('sys');

//static vars
var SOHCHAR = String.fromCharCode(1);

function logonProcessorAcceptor(){

    var isLoggedIn = false;

    var self = this;

    //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||INCOMING
    this.incoming = function(ctx, event){
    
        if(event.type !== 'data'){
            ctx.sendNext(event);
            return;
        }

        //====================================Step 3: Convert to map====================================
        var fix = convertToMap(event.data);

        var raw = event.data;

        //====================================Step 4: Create Data Store==========================
        var msgType = fix['35'];
        
        //If logon
        if(msgType === 'A'){
            var fixVersion = fix['8'];
            var senderCompID = fix['56'];
            var targetCompID = fix['49'];
                        
            var incomingSeqNum = 1;
            var outgoingSeqNum = 1;

            var heartbeatInMilliSeconds = fix[108] || '30';

            ctx.state.session['fixVersion'] = fixVersion;<commit_msg>some change which i forgot<commit_after>exports.newlogonProcessorAcceptor = function() {
    return new logonProcessorAcceptor();
};

var path = require('path');
var fs = require('fs');
var sys = require('sys');

//static vars
var SOHCHAR = String.fromCharCode(1);

function logonProcessorAcceptor(){

    var self = this;

    //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||INCOMING
    this.incoming = function(ctx, event){
    
        if(event.type !== 'data'){
            ctx.sendNext(event);
            return;
        }

        //====================================Step 3: Convert to map====================================
        var fix = convertToMap(event.data);

        var raw = event.data;

        //====================================Step 4: Create Data Store==========================
        var msgType = fix['35'];
        
        //If logon
        if(msgType === 'A'){
            var fixVersion = fix['8'];
            var senderCompID = fix['56'];
            var targetCompID = fix['49'];
                        
            var incomingSeqNum = 1;
            var outgoingSeqNum = 1;

            var heartbeatInMilliSeconds = fix[108] || '30';

            ctx.state.session['fixVersion'] = fixVersion;
{'fraction_non_alphanumeric': 0.2690196078431373, 'fraction_numerical': 0.013333333333333334, 'mean_word_length': 2.456639566395664, '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': '1192269', 'n_tokens_mistral': 742, 'n_tokens_neox': 689, 'n_words': 158}