<commit_before><commit_msg>Task --> 2502<commit_after>package com.javarush.task.task25.task2502;

import java.util.*;

/* 
Машину на СТО не повезем!
*/
public class Solution {
    public static enum Wheel {
        FRONT_LEFT,
        FRONT_RIGHT,
        BACK_LEFT,
        BACK_RIGHT
    }

    public static class Car {
        protected List<Wheel> wheels;

        public Car() throws Exception {
            //init wheels here
            wheels = new ArrayList<>();
            int wheelCount = 0;
            for (String wheel : loadWheelNamesFromDB()) {
                wheels.add(Wheel.valueOf(wheel));
                wheelCount += 1;
            }
            if (wheelCount != 4)
                throw new Exception();
        }

        protected String[] loadWheelNamesFromDB() {
            //this method returns mock data
            return new String[]{"FRONT_LEFT", "FRONT_RIGHT", "BACK_LEFT", "BACK_RIGHT"};
        }
    }

    public static void main(String[] args) {
    }
}
{'fraction_non_alphanumeric': 0.10330992978936811, 'fraction_numerical': 0.013039117352056168, 'mean_word_length': 1.7877094972067038, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1920083', 'n_tokens_mistral': 296, 'n_tokens_neox': 278, 'n_words': 73}