<commit_before>-module(element_tr).
-include("wf.hrl").
-compile(export_all).

render_element(Record = #tr{postback= Postback}) ->
  Id = case Record#tr.id of undefined -> wf:temp_id(); I->I end,
  Cursor = case Postback of undefined -> "";
    P -> wf:wire(#event {type=click, postback=P, target=Id, delegate=Record#tr.delegate}), "cursor:pointer;"
  end,
  wf_tags:emit_tag(<<"tr">>, wf:render(Record#tr.cells), [
    {<<"id">>, Record#tr.id},
    {<<"class">>, Record#tr.class},
    {<<"style">>, [Record#tr.style, Cursor]} | Record#th.data_fields
  ]).<commit_msg>Fix element_tr<commit_after>-module(element_tr).
-include("wf.hrl").
-compile(export_all).

render_element(Record = #tr{postback= Postback}) ->
  Id = case Record#tr.id of undefined -> wf:temp_id(); I->I end,
  Cursor = case Postback of undefined -> "";
    P -> wf:wire(#event {type=click, postback=P, target=Id, delegate=Record#tr.delegate}), "cursor:pointer;"
  end,
  wf_tags:emit_tag(<<"tr">>, wf:render(Record#tr.cells), [
    {<<"id">>, Record#tr.id},
    {<<"class">>, Record#tr.class},
    {<<"style">>, [Record#tr.style, Cursor]} | Record#tr.data_fields
  ]).
{'fraction_non_alphanumeric': 0.22515391380826738, 'fraction_numerical': 0.0, 'mean_word_length': 4.989473684210527, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 29, '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': '5378918', 'n_tokens_mistral': 438, 'n_tokens_neox': 423, 'n_words': 75}