<commit_before>from voxinn import *

if __name__ == "__main__":
    window = Window((800,600))
    window.start(70)
    window.caption('Voxinn Voxel Engine Demo')
    blockList = []
    heightmapObj = HeightmapMatrix()
    terrain = TerrainGenerator(heightmapObj.generate())
    ID = terrain.generate()
    clock = pygame.time.Clock()
    play = Player(0,20,0)
    play.setOrigin(-10,-10,-50)
    moveList = [0,0,0]
    keymap = {'up':[0,0,15],'down':[0,0,-15],'left':[15,0,0],'right':[-15,0,0]}
    while True:
        KeyboardEvent(moveList,keymap)
        window.clear()
        light0 = Light(30,50,20,[1,1,1,1],1)
        light0.bake(GL_LIGHT0)
        play.move(moveList[0],moveList[1],moveList[2])
        terrain.render(ID)
        clock.tick(60)
        window.update()<commit_msg>Used Display List to run the code 1000x smoother and faster.<commit_after>from voxinn import *

if __name__ == "__main__":
    window = Window((800,600))
    window.start(70)
    window.caption('Voxinn Voxel Engine Demo')
    blockList = []
    heightmapObj = HeightmapMatrix()
    terrain = TerrainGenerator(heightmapObj.generate())
    ID = terrain.generate()
    clock = pygame.time.Clock()
    play = Player(0,20,0)
    play.setOrigin(-10,-10,-50)
    moveList = [0,0,0]
    glNewList(12, GL_COMPILE)
    terrain.render(ID)
    glEndList()
    keymap = {'up':[0,0,1],'down':[0,0,-1],'left':[1,0,0],'right':[-1,0,0]}
    while True:
        KeyboardEvent(moveList,keymap)
        window.clear()
        light0 = Light(30,50,20,[1,1,1,1],1)
        light0.bake(GL_LIGHT0)
        play.move(moveList[0],moveList[1],moveList[2])
        glCallList(12)
        clock.tick(60)
        window.update()
{'fraction_non_alphanumeric': 0.17061611374407584, 'fraction_numerical': 0.06872037914691943, 'mean_word_length': 3.201492537313433, 'pattern_counts': {'":': 2, '<': 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': '2717953', 'n_tokens_mistral': 671, 'n_tokens_neox': 632, 'n_words': 93}