<commit_before>//
//  Exponent.cpp
//  Calculator
//
//  Created by <NAME> on 3/27/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

#include "Exponential.h"


Exponential::Exponential(Expression* base, Rational* exponent){
    this->type = "exponential";
    this->base = base;
    this->exponent = exponent;
    Integer *exde = (Integer *)exponent->getDenominator();  //warning: Cast to 'Integer *' from smaller integer type 'int'
    if (exde->getValue() != 1) {
        base = nthRoot(exde, base);             //error: no matching contructor for initialization of 'nthRoot'
        exponent = exponent->getNumerator();        //error: assigning to 'Rational *' from incompatible type 'int'
    }
    Integer *exnu = (Integer *)exponent->getNumerator();    //warning: Cast to 'Integer *' from smaller integer type 'int'
    if (canExponentiate()) {
    this = exponentiate();      //you can't assign 'this'. Just set your private variables in exponentiate
    }
}
Exponential::~Exponential(){
<commit_msg>fixes<commit_after>//
//  Exponent.cpp
//  Calculator
//
//  Created by <NAME> on 3/27/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

#include "Exponential.h"


Exponential::Exponential(Expression* base, Rational* exponent){
    this->type = "exponential";
    this->base = base;
    this->exponent = exponent;
    Integer *exde = new Integer(exponent->getDenominator());  //warning: Cast to 'Integer *' from smaller integer type 'int'
    if (exde->getValue() != 1) {
        base = nthRoot(exde, base);             //error: no matching contructor for initialization of 'nthRoot'
        exponent = exponent->getNumerator();        //error: assigning to 'Rational *' from incompatible type 'int'
    }
    Integer *exnu = (Integer *)exponent->getNumerator();    //warning: Cast to 'Integer *' from smaller integer type 'int'
    if (canExponentiate()) {
    this = exponentiate();      //you can't assign 'this'. Just set your private variables in exponentiate
    }
}
Exponential::~Exponential(){

{'fraction_non_alphanumeric': 0.14532019704433496, 'fraction_numerical': 0.009852216748768473, 'mean_word_length': 3.1196754563894524, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '1148297', 'n_tokens_mistral': 628, 'n_tokens_neox': 601, 'n_words': 186}