<commit_before>function SphericalCamera()
{
    this.upVector = vec3.fromValues(0,1,0);
    this.position = vec3.fromValues(0,0,0);

    this.radius = 0;
    this.zoomRate = 0;

    this.cameraAngle = 0;

    this.theta = 0;
    this.thetaRate = 0;

    this.phi = 0;
    this.phiRate = 0;
}

SphericalCamera.prototype.keyPressed = function(key) {
    //zooming the camera in and out
    console.log(this.radius);
    if (key === Keys.W_KEY && this.radius > 1) {
        this.zoomRate = -2;
    } else if (key === Keys.S_KEY) {
        this.zoomRate = 2;
    } else {
        this.zoomRate = 0;
    }

    //rotating the camera along phi
    if(key === Keys.UP_KEY && this.phi <= 1) {
        this.phiRate = 0.05;
    } else if (key === Keys.DOWN_KEY && this.phi >= -1) {
        this.phiRate = -0.05;
    } else {
        this.phiRate = 0.0;
    }

    //rotating the camera along theta
    if(key === Keys.LEFT_KEY) {
        this.thetaRate = 0.05;
    } else if (key === Keys.RIGHT_KEY) {
        this.thetaRate = -0.05;
    }

};<commit_msg>Remove debug statement.<commit_after>function SphericalCamera()
{
    this.upVector = vec3.fromValues(0,1,0);
    this.position = vec3.fromValues(0,0,0);

    this.radius = 0;
    this.zoomRate = 0;

    this.cameraAngle = 0;

    this.theta = 0;
    this.thetaRate = 0;

    this.phi = 0;
    this.phiRate = 0;
}

SphericalCamera.prototype.keyPressed = function(key) {
    //zooming the camera in and out
    if (key === Keys.W_KEY && this.radius > 1) {
        this.zoomRate = -2;
    } else if (key === Keys.S_KEY) {
        this.zoomRate = 2;
    } else {
        this.zoomRate = 0;
    }

    //rotating the camera along phi
    if(key === Keys.UP_KEY && this.phi <= 1) {
        this.phiRate = 0.05;
    } else if (key === Keys.DOWN_KEY && this.phi >= -1) {
        this.phiRate = -0.05;
    } else {
        this.phiRate = 0.0;
    }

    //rotating the camera along theta
    if(key === Keys.LEFT_KEY) {
        this.thetaRate = 0.05;
    } else if (key === Keys.RIGHT_KEY) {
        this.thetaRate = -0.05;
    }

};
{'fraction_non_alphanumeric': 0.15458937198067632, 'fraction_numerical': 0.033816425120772944, 'mean_word_length': 2.0058055152394774, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2790695', 'n_tokens_mistral': 819, 'n_tokens_neox': 752, 'n_words': 165}