<commit_before>#!/usr/bin/python3.4
# -*-coding:Utf-8 -*
'''module to manage blender scene info'''
import xml.etree.ElementTree as xmlMod
from TaskList.FileInfo.Renderlayer import *
import os

class Scene:
	'''class to manage blender scene info'''
	
	
	def __init__(self, xml):
		'''initialize blender scene info with default settings or saved settings'''
		self.fromXml(xml)
	
	
	
	
	
	def fromXml(self, xml):
		'''initialize blender scene info with savedd settings'''
		self.name = xml.get('name')
		self.start = xml.get('start')
		self.end = xml.get('end')
		self.fps = xml.get('fps')
		
		self.renderlayers = {}
		for RL in xml.findall('renderlayer'):
			self.renderlayers[RL.get('name')] = Renderlayer(RL)
	
	
	
	
	
	def toXml(self):
		'''export blender scene info into xml syntaxed string'''
		xml = '    <scene name="'+self.name+'" start="'+str(self.start)\
			+'" end="'+str(self.end)+'" fps="'+str(self.fps)+'" >\n'
		
		for RL in self.renderlayers.values():
			xml += RL.toXml()
		
		xml += '    </scene>\n'
		return xml
	
	
	
	
	<commit_msg>forgotten integer convertion<commit_after>#!/usr/bin/python3.4
# -*-coding:Utf-8 -*
'''module to manage blender scene info'''
import xml.etree.ElementTree as xmlMod
from TaskList.FileInfo.Renderlayer import *
import os

class Scene:
	'''class to manage blender scene info'''
	
	
	def __init__(self, xml):
		'''initialize blender scene info with default settings or saved settings'''
		self.fromXml(xml)
	
	
	
	
	
	def fromXml(self, xml):
		'''initialize blender scene info with savedd settings'''
		self.name = xml.get('name')
		self.start = int(xml.get('start'))
		self.end = int(xml.get('end'))
		self.fps = int(xml.get('fps'))
		
		self.renderlayers = {}
		for RL in xml.findall('renderlayer'):
			self.renderlayers[RL.get('name')] = Renderlayer(RL)
	
	
	
	
	
	def toXml(self):
		'''export blender scene info into xml syntaxed string'''
		xml = '    <scene name="'+self.name+'" start="'+str(self.start)\
			+'" end="'+str(self.end)+'" fps="'+str(self.fps)+'" >\n'
		
		for RL in self.renderlayers.values():
			xml += RL.toXml()
		
		xml += '    </scene>\n'
		return xml
	
	
	
	
	
{'fraction_non_alphanumeric': 0.17057169634489222, 'fraction_numerical': 0.0028116213683223993, 'mean_word_length': 3.5522388059701493, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 30}, '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': '3595290', 'n_tokens_mistral': 836, 'n_tokens_neox': 717, 'n_words': 184}