<commit_before>#!/usr/bin/env python

import sys

# input comes from STDIN (standard input)
# each line in each file
for line in sys.stdin:
<<<<<<< HEAD
    # remove leading and trailing whitespace
#    while line != "\n":

        line = line.strip()
        # split the line into words
        words = line.split()
        #print words[0]
        if 'Date:' in words[0]:
                date_temp = words[1]
                date = date_temp[:-1]
                print date
        
        if 'From:' in words[0]:
                sender =  words[1]
                break
        

        # increase counters
        #for word in words:
            # write the results to STDOUT (standard output);
            # what we output here will be the input for the
            # Reduce step, i.e. the input for reducer.py
            #
            # tab-delimited; the trivial word count is 1
        print '%s\t%s' % ((sender,date), 1)
=======
	
	Date = ""
	From = ""
	
	#So that we only read header
	while line != "\n":
		
		#remove leading and trailing whitespace
		line = line.strip()
		
		# split the line into words
		words = line.split()
    
		if "Date:" == words[0]:
			
			#Pick second word
			Date = words[1]
	
		if "From:" == words[0]:
			
			#Pick second word
			From = words[1]
			
		if Date != "" and From != "":
			print '%s\t%s' % ([From, Date], 1)
			
		
			
		
>>>>>>> be5fae70cd41db3b0b81fc48d2075ea36063bdb0<commit_msg>resolve conflict on mapper.py<commit_after>#!/usr/bin/env python

import sys

# input comes from STDIN (standard input)
# each line in each file
for line in sys.stdin:
    # remove leading and trailing whitespace
#    while line != "\n":

        line = line.strip()
        # split the line into words
        words = line.split()
        #print words[0]
        if 'Date:' in words[0]:
                date_temp = words[1]
                date = date_temp[:-1]
                print date
        
        if 'From:' in words[0]:
                sender =  words[1]
                break
        

        # increase counters
        #for word in words:
            # write the results to STDOUT (standard output);
            # what we output here will be the input for the
            # Reduce step, i.e. the input for reducer.py
            #
            # tab-delimited; the trivial word count is 1
        print '%s\t%s' % ((sender,date), 1)
{'fraction_non_alphanumeric': 0.11003779924401512, 'fraction_numerical': 0.01763964720705586, 'mean_word_length': 1.6674132138857782, 'pattern_counts': {'":': 4, '<': 10, '<?xml version=': 0, '>': 10, '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': '3035696', 'n_tokens_mistral': 787, 'n_tokens_neox': 700, 'n_words': 246}