<commit_before>'''
Template RPS script. Feel free to write everything from scratch, but if you do
use this, all you need to edit is the rps_strategy function
'''

import random

from bot_helper import *

_TEAM_NAME = "Tyler" + str(random.randrange(1000)) # Note: change this to your team's name

################################################################################

'''
@description: Decides which move to make
@param history list<string> all the moves your opponent has made so far
@return string your move, 'R', 'P', or 'S'
'''
def strategy(history=None):
	# Extract moves from history
	if history is not None:
		history = [move.split(';')[1] for move in history]

	#YOUR CODE HERE#
	#

	# There is approximately a 20% chance that it throws a random move
	if random.randrange(100) > random.randrange(20) or not history:
		return random.choice(list('rps'))

	# Otherwise do whatever their last move beats
	#  Note: this strategy is really bad if they decide to always throw the same thing
	else:
		last_mv = history[-1]
		if last_mv == 'r':
			return 's'
		elif last_mv = 'p':
			return 'r'
		elif lasst_mv = 's':
			return 'p'

	#
	#END YOUR CODE#

################################################################################

# Initilize the connection
bot = BotHelper(_TEAM_NAME, strategy)

raw_input("Press the any key to finish. ")
<commit_msg>Fixed typos<commit_after>'''
Template RPS script. Feel free to write everything from scratch, but if you do
use this, all you need to edit is the rps_strategy function
'''

import random

from bot_helper import *

_TEAM_NAME = "Tyler" + str(random.randrange(1000)) # Note: change this to your team's name

################################################################################

'''
@description: Decides which move to make
@param history list<string> all the moves your opponent has made so far
@return string your move, 'R', 'P', or 'S'
'''
def strategy(history=None):
	# Extract moves from history
	if history is not None:
		history = [move.split(';')[1] for move in history]

	#YOUR CODE HERE#
	#

	# There is approximately a 20% chance that it throws a random move
	if random.randrange(100) > random.randrange(20) or not history:
		return random.choice(list('rps'))

	# Otherwise do whatever their last move beats
	#  Note: this strategy is really bad if they decide to always throw the same thing
	else:
		last_mv = history[-1]
		if last_mv == 'r':
			return 's'
		elif last_mv == 'p':
			return 'r'
		elif last_mv == 's':
			return 'p'

	#
	#END YOUR CODE#

################################################################################

# Initilize the connection
bot = BotHelper(_TEAM_NAME, strategy)

raw_input("Press the any key to finish. ")

{'fraction_non_alphanumeric': 0.20798242402050532, 'fraction_numerical': 0.009520322226290736, 'mean_word_length': 4.691666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6673724', 'n_tokens_mistral': 854, 'n_tokens_neox': 783, 'n_words': 325}