<commit_before>#!/usr/bin/python
import sys
import os
import random

if len(sys.argv) <= 1:
	print ""
	print "Usage", sys.argv[0], " [cvs-file] <name>"
	print
	exit(1)

def mk():
	DELIVERED = ["Completed", "Delivered", "Done with"]
	WORKING_ON = ["Working on", "Working with", "Not done with"]
	
	INTERNAL = ["my", "internal"]
	EXTERNAL = ["external", "ericsson"]
	
	ASSIGNMENT= ["task", "assignment"]
	
	ADD_LINK=False
	
	rc = random.choice
	wl=0
	
	f = open(sys.argv[1])
	
	print "1) What tasks I worked on during this week?"
	for line in f:
		parts=[ p.strip("\" \\\n") for p in line.split(",") ]
		if parts[2] == "Status":
			continue
		print "    ",
		if parts[2] == "Delivered":
			print rc(DELIVERED),
		elif parts[2] == "In Progress":
			print rc(WORKING_ON),
		else:
			print parts[2]
			raise 
		if parts[3] == "0":
			print rc(INTERNAL),
		else:
			print rc(EXTERNAL),
		print rc(ASSIGNMENT), "to", parts[6].lower(),
		if ADD_LINK:
			print "(%s)" % parts[4]
		else:
			print "."
		wl = wl+1;
	
	print "2) Anything preventing me to accomplish the tasks?"
	print "     Not that I know of."
	
	print "3) My workload (I am working more than normal time? Less?)"<commit_msg>Switched internal/external when fixing cvs-exporter<commit_after>#!/usr/bin/python
import sys
import os
import random

if len(sys.argv) <= 1:
	print ""
	print "Usage", sys.argv[0], " [cvs-file] <name>"
	print
	exit(1)

def mk():
	DELIVERED = ["Completed", "Delivered", "Done with"]
	WORKING_ON = ["Working on", "Working with", "Not done with"]
	
	INTERNAL = ["my", "internal"]
	EXTERNAL = ["external", "ericsson"]
	
	ASSIGNMENT= ["task", "assignment"]
	
	ADD_LINK=False
	
	rc = random.choice
	wl=0
	
	f = open(sys.argv[1])
	
	print "1) What tasks I worked on during this week?"
	for line in f:
		parts=[ p.strip("\" \\\n") for p in line.split(",") ]
		if parts[2] == "Status":
			continue
		print "    ",
		if parts[2] == "Delivered":
			print rc(DELIVERED),
		elif parts[2] == "In Progress":
			print rc(WORKING_ON),
		else:
			print parts[2]
			raise 
		if parts[3] == "1":
			print rc(INTERNAL),
		else:
			print rc(EXTERNAL),
		print rc(ASSIGNMENT), "to", parts[6].lower(),
		if ADD_LINK:
			print "(%s)" % parts[4]
		else:
			print "."
		wl = wl+1;
	
	print "2) Anything preventing me to accomplish the tasks?"
	print "     Not that I know of."
	
	print "3) My workload (I am working more than normal time? Less?)"
{'fraction_non_alphanumeric': 0.17083333333333334, 'fraction_numerical': 0.014166666666666666, 'mean_word_length': 3.421731123388582, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 5, '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': '5844359', 'n_tokens_mistral': 990, 'n_tokens_neox': 879, 'n_words': 277}