<commit_before>""" Main code for ShaderMan.Next. Still called prototype.py for reasons I don't understand by myself :) """

import os
import glob
import sys

curpath = os.path.dirname(__file__)
sys.path.append(curpath)

import wx
from wx import glcanvas

productname = "ShaderMan.Next"

try:
	from OpenGL.GL import *
except ImportError:
	wx.MessageBox("OpenGL extensions for Python do not appear to be installed.\nThis application cannot run.", "Can't start %s" % productname,  wx.ICON_ERROR);
	sys.exit(1)

from core import node # non-visual elements of DAG
from core.panel import * # visual representations of DAG elements and connections

from core.utils import * # some util functions I'm using
from core.shared import * # global variables

from core.properties import PropertiesFrame # window being used to edit properties of nodes; will be replaced with prefs_window.py when ready

from core.edit_window import EditDialog # we're using pretty simple edit window to edit the source code for nodes

from core.node_draw import InitNodeDraw # initialization of node paint code - we need to load the settings for colors, fonts etc
	
class NodeCanvasBase(glcanvas.GLCanvas):
    def __init__(self, parent):
        glcanvas.GLCanvas.__init__(self, parent, -1)
        self.init = False
	self.parent = parent
        # initial mouse position
        self.lastx = self.x = self.lasty = self.y = 30
        self.size = None
	self.selected = None
	self.selection = None
	self.temparrow = None<commit_msg>Small update to app starting procedure<commit_after>""" Main code for ShaderMan.Next. Still called prototype.py for reasons I don't understand by myself :) """

import os
import glob
import sys
import inspect

curpath = os.path.dirname(inspect.getfile(sys._getframe(0)))
if curpath=="":
	curpath=os.getcwd()
sys.path.append(curpath)

import wx
from wx import glcanvas

productname = "ShaderMan.Next"

try:
	from OpenGL.GL import *
except ImportError:
	print("OpenGL extensions for Python do not appear to be installed.\nThis application cannot run.", "Can't start %s" % productname)
	sys.exit(1)

from core import node # non-visual elements of DAG
from core.panel import * # visual representations of DAG elements and connections

from core.utils import * # some util functions I'm using
from core.shared import * # global variables

from core.properties import PropertiesFrame # window being used to edit properties of nodes; will be replaced with prefs_window.py when ready

from core.edit_window import EditDialog # we're using pretty simple edit window to edit the source code for nodes

from core.node_draw import InitNodeDraw # initialization of node paint code - we need to load the settings for colors, fonts etc
	
class NodeCanvasBase(glcanvas.GLCanvas):
    def __init__(self, parent):
        glcanvas.GLCanvas.__init__(self, parent, -1)
        self.init = False
	self.parent = parent
        # initial mouse position
        self.lastx = self.x = self.lasty = self.y = 30
        self.size = None
	self.selected = None
	self.selection = None
	self.temparrow = None
{'fraction_non_alphanumeric': 0.07572310692232694, 'fraction_numerical': 0.0029249268768280793, 'mean_word_length': 4.037643207855973, 'pattern_counts': {'":': 1, '<': 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': '5139646', 'n_tokens_mistral': 861, 'n_tokens_neox': 846, 'n_words': 352}