<commit_before>Bandango.ModelOnListView = Ember.View.extend
  tagName: "a"
  layoutName: "base/model_on_list"
  attributeBindings: ["href"]
  classNames: ["model_on_list"]

  href: (->
    "#/#{@get("baseRoute")}/#{@get("model").get("id")}"
  ).property()

  baseRoute: (->
    # default baseRoute based on model's name
    modelName = String(@get("model").constructor).split(".")[1]
    modelName.toLowerCase().pluralize()
  ).property()
<commit_msg>this approach should be faster<commit_after>Bandango.ModelOnListView = Ember.View.extend
  tagName: "a"
  layoutName: "base/model_on_list"
  attributeBindings: ["href"]
  classNames: ["model_on_list"]

  href: (->
    "#/#{@get("baseRoute")}/#{@get("model.id")}"
  ).property()

  baseRoute: (->
    # default baseRoute based on model's name
    modelName = String(@get("model").constructor).split(".")[1]
    modelName.toLowerCase().pluralize()
  ).property()

{'fraction_non_alphanumeric': 0.19517543859649122, 'fraction_numerical': 0.0021929824561403508, 'mean_word_length': 4.601226993865031, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6742474', 'n_tokens_mistral': 315, 'n_tokens_neox': 314, 'n_words': 52}