<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using OpenQA.Selenium;
using OpenQA.Selenium.Remote;
using Signum.Engine.Basics;
using Signum.Entities;
using Signum.Entities.Reflection;
using Signum.Utilities;
using Signum.Utilities.Reflection;
using Signum.React.Selenium;
using OpenQA.Selenium.Support.UI;

namespace Signum.React.Selenium
{

    public class BaseLineProxy
    {
        public IWebElement Element { get; private set; }

        public PropertyRoute Route { get; private set; }

        public BaseLineProxy(IWebElement element, PropertyRoute route)
        {
            this.Element = element;
            this.Route = route;
        }

        protected static string ToVisible(bool visible)
        {
            return visible ? "visible" : "not visible";
        }
    }

    public class ValueLineProxy : BaseLineProxy
    {
        public ValueLineProxy(IWebElement element, PropertyRoute route)
            : base(element, route)
        {
        }
        

        private void SetStringValue(string value)
        {
            IWebElement checkBox = this.Element.TryFindElement(By.CssSelector("input[type=checkbox]"));
            if (checkBox != null)
            {
                checkBox.SetChecked(bool.Parse(value));<commit_msg>make ValueLineProxy.SetStringValue<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using OpenQA.Selenium;
using OpenQA.Selenium.Remote;
using Signum.Engine.Basics;
using Signum.Entities;
using Signum.Entities.Reflection;
using Signum.Utilities;
using Signum.Utilities.Reflection;
using Signum.React.Selenium;
using OpenQA.Selenium.Support.UI;

namespace Signum.React.Selenium
{

    public class BaseLineProxy
    {
        public IWebElement Element { get; private set; }

        public PropertyRoute Route { get; private set; }

        public BaseLineProxy(IWebElement element, PropertyRoute route)
        {
            this.Element = element;
            this.Route = route;
        }

        protected static string ToVisible(bool visible)
        {
            return visible ? "visible" : "not visible";
        }
    }

    public class ValueLineProxy : BaseLineProxy
    {
        public ValueLineProxy(IWebElement element, PropertyRoute route)
            : base(element, route)
        {
        }
        

        public void SetStringValue(string value)
        {
            IWebElement checkBox = this.Element.TryFindElement(By.CssSelector("input[type=checkbox]"));
            if (checkBox != null)
            {
                checkBox.SetChecked(bool.Parse(value));
{'fraction_non_alphanumeric': 0.08456425406203841, 'fraction_numerical': 0.0, 'mean_word_length': 2.559789750328515, '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': '5823061', 'n_tokens_mistral': 750, 'n_tokens_neox': 745, 'n_words': 172}