<commit_before>#!/usr/bin/env python
# Copyright (C) 2015 <NAME>
# This file is part of my GSoC'15 project for Cuckoo Sandbox:
#	http://www.cuckoosandbox.org
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.

class Macalyser:
	"""Cuckoo OS X analyser.
	"""
	
	logger = 0
	injector = ""
	target = ""
	target_artefacts = []
	config= []
	uses_proc_monitor = False

	def __init__(self):
		# setup logging
		# parse the config
		# figure out what the target is
		pass

	def run(self):
		# package = analysis_package_for_current_target()
		# aux = setup_auxiliary_modules()
		#
		# setup_machine_time(self.config.datetime)
		# results = analysis(package)
		#
		# shutdown_auxiliary_modules(aux)
		# shutdown_spawned_modules(results.procs_still_alive)
		# complete()
		pass

	def complete(self):
		# upload_artefacts()
		# cleanup()
		pass

	#
	# Implementation details
	#
	def setup_loggin(self):
		pass

	def parse_config(self, config):
		pass

	def analysis_package_for_current_target(self):
		pass

	def setup_auxiliary_modules(self):
		pass

	def setup_machine_time(self, datetime):
		pass<commit_msg>Rename the argument of Macalyser's parse_config()<commit_after>#!/usr/bin/env python
# Copyright (C) 2015 <NAME>
# This file is part of my GSoC'15 project for Cuckoo Sandbox:
#	http://www.cuckoosandbox.org
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.

class Macalyser:
	"""Cuckoo OS X analyser.
	"""
	
	logger = 0
	injector = ""
	target = ""
	target_artefacts = []
	config= []
	uses_proc_monitor = False

	def __init__(self):
		# setup logging
		# parse the config
		# figure out what the target is
		pass

	def run(self):
		# package = analysis_package_for_current_target()
		# aux = setup_auxiliary_modules()
		#
		# setup_machine_time(self.config.datetime)
		# results = analysis(package)
		#
		# shutdown_auxiliary_modules(aux)
		# shutdown_spawned_modules(results.procs_still_alive)
		# complete()
		pass

	def complete(self):
		# upload_artefacts()
		# cleanup()
		pass

	#
	# Implementation details
	#
	def setup_loggin(self):
		pass

	def parse_config(self, config_name):
		pass

	def analysis_package_for_current_target(self):
		pass

	def setup_auxiliary_modules(self):
		pass

	def setup_machine_time(self, datetime):
		pass
{'fraction_non_alphanumeric': 0.09794031105506515, 'fraction_numerical': 0.0058848255569567045, 'mean_word_length': 4.242290748898679, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '635059', 'n_tokens_mistral': 892, 'n_tokens_neox': 807, 'n_words': 210}