<commit_before>package com.theotherian.serialization.dto;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class CarFactory {
  
  private CarFactory() {}
  
  private static final Random RANDOM = new Random();
  
  public static Car[] buildSamples(int number) {
    Car[] cars = new Car[number];
    for (int i = 0; i < number; i++) {
      cars[i] = buildSample();
    }
    return cars;
  }
  
  public static Car buildSample() {
    List<Differential> diffs = new ArrayList<>();
    diffs.add(new Differential(RANDOM.nextBoolean()));
    diffs.add(new Differential(RANDOM.nextBoolean()));
    return new Car(
        NAMES[RANDOM.nextInt(NAMES.length)], 
        DESCRIPTIONS[RANDOM.nextInt(DESCRIPTIONS.length)], 
//        ARTICLES[RANDOM.nextInt(ARTICLES.length)],
        null,
        RANDOM.nextInt(5), 
        RANDOM.nextInt(5), 
        Color.values()[RANDOM.nextInt(Color.values().length)], 
        System.currentTimeMillis(), 
        new Drivetrain(
          new Transmission(RANDOM.nextInt(7), RANDOM.nextBoolean()), 
          diffs
        ), 
        new Engine(RANDOM.nextInt(9), FuelType.values()[RANDOM.nextInt(FuelType.values().length)])); 
  }
  
  private static final String[] NAMES = new String[]{"Subaru", "Honda", "Ford", "BMW", "Lexus", "Nissan", "VW", "Fiat"};<commit_msg>larger entity size<commit_after>package com.theotherian.serialization.dto;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class CarFactory {
  
  private CarFactory() {}
  
  private static final Random RANDOM = new Random();
  
  public static Car[] buildSamples(int number) {
    Car[] cars = new Car[number];
    for (int i = 0; i < number; i++) {
      cars[i] = buildSample();
    }
    return cars;
  }
  
  public static Car buildSample() {
    List<Differential> diffs = new ArrayList<>();
    diffs.add(new Differential(RANDOM.nextBoolean()));
    diffs.add(new Differential(RANDOM.nextBoolean()));
    return new Car(
        NAMES[RANDOM.nextInt(NAMES.length)], 
        DESCRIPTIONS[RANDOM.nextInt(DESCRIPTIONS.length)], 
        ARTICLES[RANDOM.nextInt(ARTICLES.length)],
//        null,
        RANDOM.nextInt(5), 
        RANDOM.nextInt(5), 
        Color.values()[RANDOM.nextInt(Color.values().length)], 
        System.currentTimeMillis(), 
        new Drivetrain(
          new Transmission(RANDOM.nextInt(7), RANDOM.nextBoolean()), 
          diffs
        ), 
        new Engine(RANDOM.nextInt(9), FuelType.values()[RANDOM.nextInt(FuelType.values().length)])); 
  }
  
  private static final String[] NAMES = new String[]{"Subaru", "Honda", "Ford", "BMW", "Lexus", "Nissan", "VW", "Fiat"};
{'fraction_non_alphanumeric': 0.14726664187430272, 'fraction_numerical': 0.003718854592785422, 'mean_word_length': 3.1576506955177743, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7594071', 'n_tokens_mistral': 914, 'n_tokens_neox': 876, 'n_words': 173}