<commit_before>#################################################################################
##____ ___ _   _ ____   ___ _____   ____    ___                      
#|  _ \_ _| \ | | __ ) / _ \_   _| |___ \  / _ \                     
#| |_) | ||  \| |  _ \| | | || |     __) || | | |                    
#|  __/| || |\  | |_) | |_| || |    / __/ | |_| |                    
#|_|__|___|_|_\_|____/_\___/_|_| __|_____(_)___/_____ ___ ___  _   _ 
#|  _ \     |  _ \ / _ \ / ___| | ____|  _ \_ _|_   _|_ _/ _ \| \ | |
#| |_) |____| |_) | | | | |     |  _| | | | | |  | |  | | | | |  \| |
#|  __/_____|  _ <| |_| | |___  | |___| |_| | |  | |  | | |_| | |\  |
#|_|        |_| \_\\___/ \____| |_____|____/___| |_| |___\___/|_| \_|
##                                                                   
## A P-ROC Project by <NAME>, Copyright 2013-2014
## Built on the PyProcGame Framework from <NAME> and <NAME>
## Thanks to <NAME> for his Earthshaker Project, which is my starting point
#################################################################################

#################################################################################
##    _____ __ __ ______    __   _____ __  ______  ______
##   / ___// //_//  _/ /   / /  / ___// / / / __ \/_  __/
##   \__ \/ ,<   / // /   / /   \__ \/ /_/ / / / / / /   
##  ___/ / /| |_/ // /___/ /______/ / __  / /_/ / / /    
## /____/_/ |_/___/_____/_____/____/_/ /_/\____/ /_/     
## 
#################################################################################

import procgame.game
from procgame import *
import pinproc
#import scoredisplay
#from scoredisplay import AlphaScoreDisplay
import locale

class SkillshotMode(game.Mode):
	def __init__(self, game, priority):
			super(SkillshotMode, self).__init__(game, priority)
			####################
			#Mode Setup
			####################
			self.superSkillshotValue = 250000
			self.skillshotDisplayTime = 2
			self.superSkillshotSeconds = 3

	def mode_started(self):
		self.game.utilities.set_player_stats('skillshot_active',True)
		self.update_lamps()
		self.game.utilities.displayText(100,'SKILLSHOT READY','MULTIPLIER X' + str(self.game.utilities.get_player_stats('skillshot_x')),seconds=4,justify='center')
		return super(SkillshotMode, self).mode_started()

	def mode_stopped(self):
		self.game.utilities.set_player_stats('skillshot_active',False)
		self.update_lamps()
		#self.game.collect_mode.update_lamps()
		return super(SkillshotMode, self).mode_stopped()

	def update_lamps(self):
		print "Update Lamps: Skillshot"
		if (self.game.utilities.get_player_stats('skillshot_active') == True):
			self.startSkillshotLamps()
		else:
			self.stopSkillshotLamps()
		
	def startSkillshotLamps(self):
		self.game.lamps.gameOverBackBox.schedule(schedule=0x0000000F, cycle_seconds=0, now=False)
		self.game.lamps.matchBackBox.schedule(schedule=0x000000F0, cycle_seconds=0, now=False)
		self.game.lamps.ballInPlayBackBox.schedule(schedule=0x00000F00, cycle_seconds=0, now=False)
		self.game.lamps.mouth1LeftBackBox.schedule(schedule=0x0000F000, cycle_seconds=0, now=False)
		self.game.lamps.mouth2BackBox.schedule(schedule=0x000F0000, cycle_seconds=0, now=False)
		self.game.lamps.mouth3BackBox.schedule(schedule=0xCCC00000, cycle_seconds=0, now=False)
		#self.game.coils.outholeKicker_Knocker.schedule(schedule=0x00C00000, cycle_seconds=0, now=False)

	def stopSkillshotLamps(self):
		self.game.lamps.gameOverBackBox.disable()
		self.game.lamps.matchBackBox.disable()
		self.game.lamps.ballInPlayBackBox.disable()
		self.game.lamps.mouth1LeftBackBox.disable()
		self.game.lamps.mouth2BackBox.disable()
		self.game.lamps.mouth3BackBox.disable()
		#self.game.coils.outholeKicker_Knocker.disable()

	##############################
	## Skillshot Handling Modes ##
	##############################
	def superSkillshotMissed(self):
		self.game.utilities.displayText(100,'SUPER SKILLSHOT','MISSED',seconds=self.skillshotDisplayTime,justify='center')
		self.game.modes.remove(self)

	def superSkillshotAwarded(self):
		self.game.sound.play('skillshotAwarded')
		self.game.sound.play_voice('complete_shot')
		self.game.lampctrlflash.play_show('super_skillshot', repeat=False, callback=self.game.update_lamps)
		self.game.utilities.displayText(100,'SUPER SKILLSHOT',locale.format("%d", self.superSkillshotValue * self.game.utilities.get_player_stats('skillshot_x'), grouping=True) + ' POINTS',seconds=self.skillshotDisplayTime,justify='center')
		self.game.utilities.score(self.superSkillshotValue * self.game.utilities.get_player_stats('skillshot_x'))
		self.game.utilities.set_player_stats('skillshot_x',self.game.utilities.get_player_stats('skillshot_x') + 1)
		self.game.modes.remove(self)

	def skillshotMissed(self):
		self.game.utilities.displayText(100,'SKILLSHOT','MISSED',seconds=self.skillshotDisplayTime,justify='center')
		self.game.modes.remove(self)

	def skillshotAwarded(self):
		#points will be added in the base mode
		self.game.modes.remove(self)

	###########################
	## Switch Handling Modes ##
	###########################
<commit_msg>alter light show as test<commit_after>#################################################################################
##____ ___ _   _ ____   ___ _____   ____    ___                      
#|  _ \_ _| \ | | __ ) / _ \_   _| |___ \  / _ \                     
#| |_) | ||  \| |  _ \| | | || |     __) || | | |                    
#|  __/| || |\  | |_) | |_| || |    / __/ | |_| |                    
#|_|__|___|_|_\_|____/_\___/_|_| __|_____(_)___/_____ ___ ___  _   _ 
#|  _ \     |  _ \ / _ \ / ___| | ____|  _ \_ _|_   _|_ _/ _ \| \ | |
#| |_) |____| |_) | | | | |     |  _| | | | | |  | |  | | | | |  \| |
#|  __/_____|  _ <| |_| | |___  | |___| |_| | |  | |  | | |_| | |\  |
#|_|        |_| \_\\___/ \____| |_____|____/___| |_| |___\___/|_| \_|
##                                                                   
## A P-ROC Project by <NAME>, Copyright 2013-2014
## Built on the PyProcGame Framework from <NAME> and <NAME>
## Thanks to <NAME> for his Earthshaker Project, which is my starting point
#################################################################################

#################################################################################
##    _____ __ __ ______    __   _____ __  ______  ______
##   / ___// //_//  _/ /   / /  / ___// / / / __ \/_  __/
##   \__ \/ ,<   / // /   / /   \__ \/ /_/ / / / / / /   
##  ___/ / /| |_/ // /___/ /______/ / __  / /_/ / / /    
## /____/_/ |_/___/_____/_____/____/_/ /_/\____/ /_/     
## 
#################################################################################

import procgame.game
from procgame import *
import pinproc
#import scoredisplay
#from scoredisplay import AlphaScoreDisplay
import locale

class SkillshotMode(game.Mode):
	def __init__(self, game, priority):
			super(SkillshotMode, self).__init__(game, priority)
			####################
			#Mode Setup
			####################
			self.superSkillshotValue = 250000
			self.skillshotDisplayTime = 2
			self.superSkillshotSeconds = 3

	def mode_started(self):
		self.game.utilities.set_player_stats('skillshot_active',True)
		self.update_lamps()
		self.game.utilities.displayText(100,'SKILLSHOT READY','MULTIPLIER X' + str(self.game.utilities.get_player_stats('skillshot_x')),seconds=4,justify='center')
		return super(SkillshotMode, self).mode_started()

	def mode_stopped(self):
		self.game.utilities.set_player_stats('skillshot_active',False)
		self.update_lamps()
		#self.game.collect_mode.update_lamps()
		return super(SkillshotMode, self).mode_stopped()

	def update_lamps(self):
		print "Update Lamps: Skillshot"
		if (self.game.utilities.get_player_stats('skillshot_active') == True):
			self.startSkillshotLamps()
		else:
			self.stopSkillshotLamps()
		
	def startSkillshotLamps(self):
		#self.game.lamps.gameOverBackBox.schedule(schedule=0x0000000F, cycle_seconds=0, now=False)
		#self.game.lamps.matchBackBox.schedule(schedule=0x000000F0, cycle_seconds=0, now=False)
		#self.game.lamps.ballInPlayBackBox.schedule(schedule=0x00000F00, cycle_seconds=0, now=False)
		#self.game.lamps.mouth1LeftBackBox.schedule(schedule=0x0000F000, cycle_seconds=0, now=False)
		#self.game.lamps.mouth2BackBox.schedule(schedule=0x000F0000, cycle_seconds=0, now=False)
		self.game.lamps.blue4.schedule(schedule=0xCCC00000, cycle_seconds=0, now=False)
		#self.game.coils.outholeKicker_Knocker.schedule(schedule=0x00C00000, cycle_seconds=0, now=False)

	def stopSkillshotLamps(self):
		#self.game.lamps.gameOverBackBox.disable()
		#self.game.lamps.matchBackBox.disable()
		#self.game.lamps.ballInPlayBackBox.disable()
		#self.game.lamps.mouth1LeftBackBox.disable()
		#self.game.lamps.mouth2BackBox.disable()
		self.game.lamps.blue3.disable()
		#self.game.coils.outholeKicker_Knocker.disable()

	##############################
	## Skillshot Handling Modes ##
	##############################
	def superSkillshotMissed(self):
		self.game.utilities.displayText(100,'SUPER SKILLSHOT','MISSED',seconds=self.skillshotDisplayTime,justify='center')
		self.game.modes.remove(self)

	def superSkillshotAwarded(self):
		self.game.sound.play('skillshotAwarded')
		self.game.sound.play_voice('complete_shot')
		self.game.lampctrlflash.play_show('super_skillshot', repeat=False, callback=self.game.update_lamps)
		self.game.utilities.displayText(100,'SUPER SKILLSHOT',locale.format("%d", self.superSkillshotValue * self.game.utilities.get_player_stats('skillshot_x'), grouping=True) + ' POINTS',seconds=self.skillshotDisplayTime,justify='center')
		self.game.utilities.score(self.superSkillshotValue * self.game.utilities.get_player_stats('skillshot_x'))
		self.game.utilities.set_player_stats('skillshot_x',self.game.utilities.get_player_stats('skillshot_x') + 1)
		self.game.modes.remove(self)

	def skillshotMissed(self):
		self.game.utilities.displayText(100,'SKILLSHOT','MISSED',seconds=self.skillshotDisplayTime,justify='center')
		self.game.modes.remove(self)

	def skillshotAwarded(self):
		#points will be added in the base mode
		self.game.modes.remove(self)

	###########################
	## Switch Handling Modes ##
	###########################

{'fraction_non_alphanumeric': 0.23641920536330474, 'fraction_numerical': 0.019126491176180618, 'mean_word_length': 3.8839672604718345, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2520473', 'n_tokens_mistral': 3787, 'n_tokens_neox': 3476, 'n_words': 340}