Did I find the right examples for you? yes no

All Samples(41)  |  Call(41)  |  Derive(0)  |  Import(0)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120727105608/AAAPackageDev/sublime_inspect.py   Chocolatey-Packages(Download)
def to_json_type(v):
    """"Convert string value to proper JSON type.
    """
    try:
        if v.lower() in ("false", "true"):
            v = (True if v.lower() == "true" else False)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120706164234/AAAPackageDev/sublime_inspect.py   Chocolatey-Packages(Download)
def to_json_type(v):
    """"Convert string value to proper JSON type.
    """
    try:
        if v.lower() in ("false", "true"):
            v = (True if v.lower() == "true" else False)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120520162633/AAAPackageDev/sublime_inspect.py   Chocolatey-Packages(Download)
def to_json_type(v):
    """"Convert string value to proper JSON type.
    """
    try:
        if v.lower() in ("false", "true"):
            v = (True if v.lower() == "true" else False)

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120331054222/AAAPackageDev/sublime_inspect.py   Chocolatey-Packages(Download)
def to_json_type(v):
    """"Convert string value to proper JSON type.
    """
    try:
        if v.lower() in ("false", "true"):
            v = (True if v.lower() == "true" else False)

src/p/y/pymatgen-2.9.6/pymatgen/io/vaspio/vasp_input.py   pymatgen(Download)
            pass
 
        if "true" in val.lower():
            return True
 
        if "false" in val.lower():

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Packages/AAAPackageDev/sublime_inspect.py   Chocolatey-Packages(Download)
def to_json_type(v):
    """"Convert string value to proper JSON type.
    """
    try:
        if v.lower() in ("false", "true"):
            v = (True if v.lower() == "true" else False)

src/r/o/roundup-1.5.0/roundup/cgi/actions.py   roundup(Download)
                        value = date.Date(value)
                    elif isinstance(prop, hyperdb.Boolean):
                        value = value.lower() in ('yes', 'true', 'on', '1')
                    elif isinstance(prop, hyperdb.Number):
                        value = float(value)

src/p/y/python-ase-3.8.1/ase/calculators/vasp.py   python-ase(Download)
                # we are checking still the first number so
                # let's "fix" the format for the second one
                if 'e' not in b.lower():
                    # replace last occurence of - (assumed exponent) with -e
                    bsplit = b.split('-')

src/s/u/SublimeText2-Config-HEAD/Packages/AAAPackageDev/sublime_inspect.py   SublimeText2-Config(Download)
def to_json_type(v):
    """"Convert string value to proper JSON type.
    """
    try:
        if v.lower() in ("false", "true"):
            v = (True if v.lower() == "true" else False)

src/d/a/darcs-cgi-0.01.001dev/darcscgi/lib/app_globals.py   darcs-cgi(Download)
        if key in self.defaultValues["booleanContent"]:
            if value is not None:
                if value.lower() in ["yes","true"]:
                    value = True
                elif value.lower() in ["no","false"]:
        if key in self.defaultValues["yesDefaultsToPrevious"]:
            if value is not None:
                if value.lower() in ["no","false"]:
                    value = False
                elif value.lower() in ["yes","true"]:

  1 | 2 | 3  Next