<commit_before>from AbstractProcessor import AbstractProcessor
#from java.util import Date, ArrayList
from com.hurence.logisland.record import StandardRecord
from com.hurence.logisland.processor import MockProcessContext

class MyProcessor(AbstractProcessor):

    def init(self, context):
        print "Inside init of MyProcessor code"
        print context
        print 'Class of context object: ' + type(context).__name__
        #def MockProcessContext processContext = context
        #print processContext.getProperties()
  
    #def process(self, context, records: Record):
    def process(self, context, records):
        print "Inside process multi records of MyProcessor python code"
        print 'Class of records object: ' + type(records).__name__
        #print records.getTime()
        #records.setTime("Wed Dec 14 18:05:47 CET 2017")
        #records.setTime(Date(100))
        #print records.getTime()
<commit_msg>Test accessing context properties from python code<commit_after>from AbstractProcessor import AbstractProcessor
#from java.util import Date, ArrayList
from com.hurence.logisland.record import StandardRecord
from com.hurence.logisland.processor import MockProcessContext

class MyProcessor(AbstractProcessor):

    def init(self, context):
        print "Inside init of MyProcessor code"
        print context.getProperties()
  
    #def process(self, context, records: Record):
    def process(self, context, records):
        print "Inside process multi records of MyProcessor python code"
        print 'Class of records object: ' + type(records).__name__
        #print records.getTime()
        #records.setTime("Wed Dec 14 18:05:47 CET 2017")
        #records.setTime(Date(100))
        #print records.getTime()

{'fraction_non_alphanumeric': 0.08223872073101085, 'fraction_numerical': 0.017133066818960593, 'mean_word_length': 3.747967479674797, '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': '4336825', 'n_tokens_mistral': 483, 'n_tokens_neox': 445, 'n_words': 148}