<commit_before># -*- coding: utf-8 -*-
import os
ls =os.linesep

#get filename

fname = raw_input('input a file name to save filenames:%s' % ls)
	

#
all=[]
print"\nEnter lines *'.'by itself to quit).\n"

#loop until user terminates input

while True:
    	entry=raw_input('>')
	if entry=='EXIT':
       		break
    	elif entry=='READ':
			fobj=open(fname,'r+')	
			for eachline in fobj:
				print eachline
    	elif entry=='WRITE':
       		all.append(entry)

#
fobj=open(fname,'w+')
fobj.writelines(['%s%s' % (x,ls)for x in all])
fobj.close()
		
	<commit_msg>Update read.py<commit_after># -*- coding: utf-8 -*-
import os
ls =os.linesep

#get filename

fname = raw_input('input a file name to save filenames:%s' % ls)
	

#

print"\nEnter lines *'.'by itself to quit).\n"

#loop until user terminates input

while True:
    	entry=raw_input('>')
	if entry=='EXIT':
       		break
    	elif entry=='READ':
			fobj=open(fname,'r')	
			for eachline in fobj:
				print eachline
    	elif entry=='WRITE':
		all=[]
		entrytxt=raw_input('>>')
       		all.append(entrytxt)
                fobj=open(fname,'w')
                fobj.writelines(['%s%s' % (x,ls)for x in all])
                fobj.close()
        else:	
		break
	
{'fraction_non_alphanumeric': 0.16078753076292043, 'fraction_numerical': 0.0016406890894175555, 'mean_word_length': 2.708206686930091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7557572', 'n_tokens_mistral': 491, 'n_tokens_neox': 455, 'n_words': 114}