<commit_before>from . import SceneNode

from Cura.Application import Application
from Cura.View.Renderer import Renderer
from Cura.Resources import Resources

class Platform(SceneNode.SceneNode):
    def __init__(self, parent):
        super().__init__(parent)

        app = Application.getInstance()
        mesh = app.getInstance().getMachineSettings().getPlatformMesh()
        if mesh is not None:
            self.setMeshData(app.getMeshFileHandler().read(Resources.locate(Resources.MeshesLocation, mesh), app.getStorageDevice("local")))

    def render(self, renderer):
        if self.getMeshData():
            renderer.renderMesh(self.getGlobalTransformation(), self.getMeshData(), Renderer.RenderTriangles)
            return True
<commit_msg>Fix Platform to use the getPath method rather than locate<commit_after>from . import SceneNode

from Cura.Application import Application
from Cura.View.Renderer import Renderer
from Cura.Resources import Resources

class Platform(SceneNode.SceneNode):
    def __init__(self, parent):
        super().__init__(parent)

        app = Application.getInstance()
        mesh = app.getInstance().getMachineSettings().getPlatformMesh()
        if mesh is not None:
            self.setMeshData(app.getMeshFileHandler().read(Resources.getPath(Resources.MeshesLocation, mesh), app.getStorageDevice("local")))

    def render(self, renderer):
        if self.getMeshData():
            renderer.renderMesh(self.getGlobalTransformation(), self.getMeshData(), Renderer.RenderTriangles)
            return True

{'fraction_non_alphanumeric': 0.0978750804893754, 'fraction_numerical': 0.0, 'mean_word_length': 3.8260869565217392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1319896', 'n_tokens_mistral': 407, 'n_tokens_neox': 400, 'n_words': 95}