<commit_before>require_relative "../Utils"
require_relative "../Store"

class ComboBox
  @path = nil
  @options = nil
  @code = nil
  @constructor_code = [
    "    constructor: function (cfg) {",
    "       cfg = cfg || {}",
    "       var me = this",
    "    }"
  ]
  def initialize(path, options)
    @path = path
    @options = options
    utils = Utils.new
    element_alias = utils.path_to_alias path
    @code = [
      "Ext.define('#{$config["project_name"]}.view.#{path}', {",
      "    fieldLabel: '',",
      "    extend: 'Ext.form.ComboBox',",
      "    alias: 'widget.#{element_alias}'",
      "    name: ''"
    ]

    if @options.include? "-s"<commit_msg>fif generated code syntax errors<commit_after>require_relative "../Utils"
require_relative "../Store"

class ComboBox
  @path = nil
  @options = nil
  @code = nil
  @constructor_code = [
    "    constructor: function (cfg) {",
    "       cfg = cfg || {}",
    "       var me = this",
    "    }"
  ]
  def initialize(path, options)
    @path = path
    @options = options
    utils = Utils.new
    element_alias = utils.path_to_alias path
    @code = [
      "Ext.define('#{$config["project_name"]}.view.#{path}', {",
      "    fieldLabel: '',",
      "    extend: 'Ext.form.ComboBox',",
      "    alias: 'widget.#{element_alias}',",
      "    name: '',"
    ]

    if @options.include? "-s"
{'fraction_non_alphanumeric': 0.175054704595186, 'fraction_numerical': 0.0, 'mean_word_length': 2.2744630071599046, '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': '4777801', 'n_tokens_mistral': 455, 'n_tokens_neox': 463, 'n_words': 91}