<commit_before>#
# Defaults
#
# name                  - Randomly generated
# hardware_identifier   - <provided>
#
class Defaults
  def self.build_device( activation_token, hardware_identifier, name = 'Model-T' )
    attr = {
      activation_token: activation_token,
      hardware_identifier: hardware_identifier,
      name: "#{name} #{Device.count + 1}",
      output_count: 2,<commit_msg>Default device name uses users device count<commit_after>#
# Defaults
#
# name                  - Randomly generated
# hardware_identifier   - <provided>
#
class Defaults
  def self.build_device( activation_token, hardware_identifier, name = 'Model-T' )
    attr = {
      activation_token: activation_token,
      hardware_identifier: hardware_identifier,
      name: "#{name} #{spree_current_user.devices.count + 1}",
      output_count: 2,
{'fraction_non_alphanumeric': 0.10191846522781775, 'fraction_numerical': 0.004796163069544364, 'mean_word_length': 3.3947368421052633, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1745546', 'n_tokens_mistral': 246, 'n_tokens_neox': 239, 'n_words': 57}