<jupyter_start><jupyter_text>**You can use inline values**<jupyter_code>var r1 = query.Where("o => o.Price > 100").Take(1).ToList();
Console.WriteLine(string.Join(", ", r1.Select(o => o.Id)));<jupyter_output><empty_output><jupyter_text>**Or you can pass ordered values, @0 will be replaced with first argument**<jupyter_code>var r2 = query.Where("o => o.Price < @0", 50).ToList();
Console.WriteLine(string.Join(", ", r2.Select(o => o.Id)));<jupyter_output><empty_output><jupyter_text>**Or you can use named variables, AvgId will be replaced with value from given dictionary**<jupyter_code>var prms = new Dictionary<string, object> { { "avgId", 3 } };
var r3 = query.Where("o => o.Id > avgId", prms).ToList();
Console.WriteLine(string.Join(", ", r3.Select(o => o.Id)));<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19047619047619047, 'fraction_numerical': 0.018796992481203006, 'mean_word_length': 6.757281553398058, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 22, '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}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '451728', 'license': 'MIT', 'n_tokens_mistral': 293, 'n_tokens_neox': 289, 'n_words': 61, 'path': 'notebooks/README.ipynb', 'repo_name': 'umutozel/DynamicQueryable', 'size': '798'}