<commit_before>#www.stuffaboutcode.com
#Raspberry Pi, Minecraft Cannon
#first add a delay and count down to allow you to get back into minecraft

#import the minecraft.py module from the minecraft directory
import minecraft.minecraft as minecraft
#import minecraft block module
import minecraft.block as block
#import time, so delays can be used
import time
#import math, so we can use sin, cos and other maths functions
import math
#import cmd, so we can use the command line interpreter
import cmd

#import pyside and prepare the GUI
from PySide.QtCore import *
from PySide.QtGui import *
import sys


#Common functions
# compares vec3 objects, if they are the same returns true
def matchVec3(vec1, vec2):
    if ((vec1.x == vec2.x) and (vec1.y == vec2.y) and (vec1.z == vec2.z)):
        return True
    else:
        return False

# finds point on sphere (based on polar co-ordinates) 
def findPointOnSphere(cx, cy, cz, radius, phi, theta):
    #phi - angle around the pole 0<= phi <= 360
    #theta - angle from plan 'up' -90 <= theta <= 90
    x = cx + radius * math.cos(math.radians(theta)) * math.cos(math.radians(phi))<commit_msg>added some details to the info<commit_after>#www.stuffaboutcode.com
#Raspberry Pi, Minecraft Cannon
#Editted by <NAME> 
#first add a delay and count down to allow you to get back into minecraft
#then added a Qt GUI

#import the minecraft.py module from the minecraft directory
import minecraft.minecraft as minecraft
#import minecraft block module
import minecraft.block as block
#import time, so delays can be used
import time
#import math, so we can use sin, cos and other maths functions
import math
#import cmd, so we can use the command line interpreter
import cmd

#import pyside and prepare the GUI
from PySide.QtCore import *
from PySide.QtGui import *
import sys


#Common functions
# compares vec3 objects, if they are the same returns true
def matchVec3(vec1, vec2):
    if ((vec1.x == vec2.x) and (vec1.y == vec2.y) and (vec1.z == vec2.z)):
        return True
    else:
        return False

# finds point on sphere (based on polar co-ordinates) 
def findPointOnSphere(cx, cy, cz, radius, phi, theta):
    #phi - angle around the pole 0<= phi <= 360
    #theta - angle from plan 'up' -90 <= theta <= 90
    x = cx + radius * math.cos(math.radians(theta)) * math.cos(math.radians(phi))
{'fraction_non_alphanumeric': 0.08561643835616438, 'fraction_numerical': 0.015410958904109588, 'mean_word_length': 3.8789144050104385, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 4, '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': '2054086', 'n_tokens_mistral': 745, 'n_tokens_neox': 713, 'n_words': 320}