<commit_before>"""
Trade Reconciler.

This script reads in two files, each containing a list of trades'
It then attempts to reconcile the two, printing a list of matches,
and two lists of non-matches.

This script can comprehend 2 different formats, csv and sdt
(Comma Seperated Values and Semicolen Delimited Text)
These formats vary in more then just seperator and file
extention. See "MO Developer Take-Home Test.docx" for details
"""

import sys

class Trade(object):
    """Trade class uses the csv format as it's internal format"""
    def __init__(self, arg):
        super(Trade, self).__init__()
        self.arg = arg

    @classmethod
    def fromCSV(cls):
        pass

    @classmethod
    def fromSDT(self):
        pass

    def __eq__(self):
        pass
<commit_msg>add mappings for sdt values<commit_after>"""
Trade Reconciler.

This script reads in two files, each containing a list of trades'
It then attempts to reconcile the two, printing a list of matches,
and two lists of non-matches.

This script can comprehend 2 different formats, csv and sdt
(Comma Seperated Values and Semicolen Delimited Text)
These formats vary in more then just seperator and file
extention. See "MO Developer Take-Home Test.docx" for details
"""

import sys

#Mappings for sdt values
symbol_map = {
    'JF'  : '35',
    'QAL' : 'F-',
    'RT'  : '1W',
    }

buysell_map= {
    'B':'1',
    'S':'2',
    }

otype_month_code = {
    'A': ('1' , 'C'),
    'B': ('2' , 'C'),
    'C': ('3' , 'C'),
    'D': ('4' , 'C'),
    'E': ('5' , 'C'),
    'F': ('6' , 'C'),
    'G': ('7' , 'C'),
    'H': ('8' , 'C'),
    'I': ('9' , 'C'),
    'J': ('10', 'C'),
    'K': ('11', 'C'),
    'L': ('12', 'C'),
    'M': ('1' , 'P'),
    'N': ('2' , 'P'),
    'O': ('3' , 'P'),
    'P': ('4' , 'P'),
    'Q': ('5' , 'P'),
    'R': ('6' , 'P'),
    'S': ('7' , 'P'),
    'T': ('8' , 'P'),
    'U': ('9' , 'P'),
    'V': ('10', 'P'),
    'W': ('11', 'P'),
    'X': ('12', 'P'),
}


class Trade(object):
    """Trade class uses the csv format as it's internal format"""
    def __init__(self, arg):
        super(Trade, self).__init__()
        self.arg = arg

    @classmethod
    def fromCSV(cls):
        pass

    @classmethod
    def fromSDT(self):
        pass

    def __eq__(self):
        pass

{'fraction_non_alphanumeric': 0.1836108676599474, 'fraction_numerical': 0.01621384750219106, 'mean_word_length': 2.682258064516129, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1408308', 'n_tokens_mistral': 859, 'n_tokens_neox': 823, 'n_words': 289}