<commit_before>from frappe.query_builder.terms import ParameterizedValueWrapper, ParameterizedFunction
import pypika

pypika.terms.ValueWrapper = ParameterizedValueWrapper
pypika.terms.Function = ParameterizedFunction

from pypika import *
from frappe.query_builder.utils import Column, DocType, get_query_builder, patch_query_execute, patch_query_aggregation<commit_msg>fix: replace the field method with a column<commit_after>import pypika.terms
from pypika import *

from frappe.query_builder.terms import ParameterizedFunction, ParameterizedValueWrapper
from frappe.query_builder.utils import (
    Column,
    DocType,
    get_query_builder,
    patch_query_aggregation,
    patch_query_execute,
)

pypika.terms.ValueWrapper = ParameterizedValueWrapper
pypika.terms.Function = ParameterizedFunction

# * Overrides the field() method and replaces it with the a `PseudoColumn` 'field' for consistency
pypika.queries.Selectable.__getattr__ = lambda table, x: Field(x, table=table)
pypika.queries.Selectable.field = pypika.terms.PseudoColumn("field")
{'fraction_non_alphanumeric': 0.0675547098001903, 'fraction_numerical': 0.0, 'mean_word_length': 6.850746268656716, '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': '1534318', 'n_tokens_mistral': 313, 'n_tokens_neox': 308, 'n_words': 72}