<commit_before>package com.zuehlke.carrera.javapilot.Utils;
import com.zuehlke.carrera.relayapi.messages.PenaltyMessage;
import org.apache.commons.math3.stat.regression.SimpleRegression;

/**
 * Created by ValkA on 12-Mar-16.
 */
public class Segment{
    TurnStateRecognizer.TurnState turnState;

    private static final int init_throttle_time=300;
    private static final int max_penalty_speed=300;
    private static final int min_penalty_speed=200;
    private static final int MAX_POWER_STRAIGHT=175;
    private static final int MAX_POWER_CURVE=145;
    private int max_power = 150;

    private int velocity_step=20;
    private int min_penalized_time = Integer.MAX_VALUE;
    private boolean penalized=false;
    private int number_of_penalties=0;
    private double top_speed;
    private double last_speed;
    private double current_penalty_speed;
    private double sharpness;
    private boolean stopped;
    private int throttle_time;
    private double target_speed;
    private long initDuration;
    private int initClocks;
    SimpleRegression stats;

    public Segment(TurnStateRecognizer.TurnState turnState){
        this.turnState = turnState;
        top_speed = 0.9 * min_penalty_speed;
        target_speed = top_speed + velocity_step;
        last_speed = 0;
        current_penalty_speed = max_penalty_speed;
        sharpness = 0;
        recalcMaxPower();
        stopped=true;<commit_msg>take it<commit_after>package com.zuehlke.carrera.javapilot.Utils;
import com.zuehlke.carrera.relayapi.messages.PenaltyMessage;
import org.apache.commons.math3.stat.regression.SimpleRegression;

/**
 * Created by ValkA on 12-Mar-16.
 */
public class Segment{
    TurnStateRecognizer.TurnState turnState;

    private static final int init_throttle_time=300;
    private static final int max_penalty_speed=300;
    private static final int min_penalty_speed=200;
    private static final int MAX_POWER_STRAIGHT=180;
    private static final int MAX_POWER_CURVE=150;
    private int max_power = 150;

    private int velocity_step=20;
    private int min_penalized_time = Integer.MAX_VALUE;
    private boolean penalized=false;
    private int number_of_penalties=0;
    private double top_speed;
    private double last_speed;
    private double current_penalty_speed;
    private double sharpness;
    private boolean stopped;
    private int throttle_time;
    private double target_speed;
    private long initDuration;
    private int initClocks;
    SimpleRegression stats;

    public Segment(TurnStateRecognizer.TurnState turnState){
        this.turnState = turnState;
        top_speed = 0.9 * min_penalty_speed;
        target_speed = top_speed + velocity_step;
        last_speed = 0;
        current_penalty_speed = max_penalty_speed;
        sharpness = 0;
        recalcMaxPower();
        stopped=true;
{'fraction_non_alphanumeric': 0.06276445698166432, 'fraction_numerical': 0.021156558533145273, 'mean_word_length': 3.697019867549669, 'pattern_counts': {'":': 0, '<': 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': '3138879', 'n_tokens_mistral': 918, 'n_tokens_neox': 844, 'n_words': 212}