<commit_before>class Indicator extends AnimationObject{
	color indicatorColour_;
	String label_;
	int incrementSize_;
	int position_;        //position of pointy end
	boolean up_;
	int state_;

	Indicator(String label, color indicatorColour,int sz, int x, int y){
		super(x,y);
		indicatorColour_= indicatorColour;
		label_=label;
		incrementSize_=sz;
		position_=0;
		up_=true;
		state_=VISIBLE;
	}
	void setPosition(int pos){
		position_=pos;
	}
	void pointDown(){
		up_=false;
	}
	void setColour(color c){
		indicatorColour_=c;
	}
	void setVisibility(int v){
		state_=v;
	}
	void process(AnimationInstruction ai){
		switch(ai.instruction_){
			case SET:
			setPosition(ai.a_);
			ai.setCompleted(true);
			break;
			case SETVISIBILITY:
			setVisibility(ai.a_);
			ai.setCompleted(true);
			break;
		}
	}
	void draw(){
		if(state_!=HIDDEN){
			if(up_){
				drawTriangle(indicatorColour_,incrementSize_, x_+position_*incrementSize_,y_);
				textAlign(CENTER);
				text(label_,x_+position_*incrementSize_,y_+25);
			}
			else{
				drawDownTriangle(indicatorColour_,incrementSize_, x_+position_*incrementSize_,y_);
				textAlign(CENTER);
				text(label_,x_+position_*incrementSize_,y_-15);
			}
		}
	}


}<commit_msg>indicator changes<commit_after>class Indicator extends AnimationObject{
	color indicatorColour_;
	String label_;
	int incrementSize_;
	int position_;        //position of pointy end
	boolean up_;
	int state_;
	int [] gap_;

	Indicator(String label, color indicatorColour,int sz, int x, int y){
		super(x,y);
		indicatorColour_= indicatorColour;
		label_=label;
		incrementSize_=sz;
		position_=0;
		up_=true;
		state_=VISIBLE;
		gap_ = new int[30];
		for(int i=0;i<30;i++){
			gap_[i]=0;
		}
	}
	void setIdx(int pos){
		position_=pos;
	}
	void pointDown(){
		up_=false;
	}
	void setColour(color c){
		indicatorColour_=c;
	}
	void setVisibility(int v){
		state_=v;
	}
	void hide(){
		state_=HIDDEN;
	}
	void show(){
		state_=VISIBLE;
	}
	void process(AnimationInstruction ai){
		switch(ai.instruction_){
			case SET:
				setIdx(ai.a_);
				ai.setCompleted(true);
				break;
			case SETVISIBILITY:
				setVisibility(ai.a_);
				ai.setCompleted(true);
				break;
			case SETPOS:
				x_=ai.a_;
				y_=ai.b_;
				ai.setCompleted(true);
				break;
			case ADDGAP:
				for(int i=ai.a_+1;i<30;i++){
					gap_[i]+=(incrementSize_/2);
				}
				ai.setCompleted(true);
				break;
			case REMOVEGAP:
				for(int i=ai.a_+1;i<30;i++){
					gap_[i]-=(incrementSize_/2);
				}
				ai.setCompleted(true);
				break;
		}
	}
	void draw(){
		if(state_!=HIDDEN){
			if(up_){
				drawTriangle(indicatorColour_,incrementSize_, gap_[position_]+x_+position_*incrementSize_,y_);
				textAlign(CENTER);
				text(label_,gap_[position_]+x_+position_*incrementSize_,y_+25);
			}
			else{
				drawDownTriangle(indicatorColour_,incrementSize_,gap_[position_]+ x_+position_*incrementSize_,y_);
				textAlign(CENTER);
				text(label_,gap_[position_]+x_+position_*incrementSize_,y_-15);
			}
		}
	}


};
{'fraction_non_alphanumeric': 0.1333780160857909, 'fraction_numerical': 0.00804289544235925, 'mean_word_length': 4.146551724137931, 'pattern_counts': {'":': 0, '<': 6, '<?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': '7346045', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1130, 'n_words': 193}