Did I find the right examples for you? yes no

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

src/c/l/clusterPy-0.9.9/clusterpy/core/inputs.py   clusterPy(Download)
            while value.find("  ") <> -1:
                value = value.replace("  ", " ")
            if value.startswith(" "):
                value = value[1:]
            if value.endswith(" "):

src/p/h/phaseshifts-0.1.2-dev/phaseshifts/leed.py   phaseshifts(Download)
            element = id_str.split('_')[0]  # assume element name / symbol
            oxidation = str(id_str.split('_')[1])  # assume valence is 2nd
            if (oxidation.startswith('-') or oxidation.startswith('+') 
                or oxidation.isdigit()):
                try:
            element = id_str.split('_')[0]  # assume element name / symbol
            oxidation = str(id_str.split('_')[1])  # assume valence is 2nd
            if oxidation.startswith('-') or oxidation.startswith('+'):
                try:
                    oxidation = float(oxidation)

src/h/t/HTPC-Manager-HEAD/libs/sqlobject/firebird/firebirdconnection.py   HTPC-Manager(Download)
            if defaultSource: # can look like: "DEFAULT 0", "DEFAULT 'default text'", None
                defaultSource = defaultSource.split(' ')[1]
                if defaultSource.startswith ("'") and defaultSource.endswith ("'"):
                    defaultSource = str(defaultSource[1:-1])
                elif fieldType in ("integer", "smallint", "bigint"):

src/s/q/SQLObject-1.6.0b1dev-r4713/sqlobject/firebird/firebirdconnection.py   SQLObject(Download)
            if defaultSource: # can look like: "DEFAULT 0", "DEFAULT 'default text'", None
                defaultSource = defaultSource.split(' ')[1]
                if defaultSource.startswith ("'") and defaultSource.endswith ("'"):
                    defaultSource = str(defaultSource[1:-1])
                elif fieldType in ("integer", "smallint", "bigint"):

src/n/e/neurotrends-HEAD/neurotrends/pattern/proc/est_highpass_cutoff.py   neurotrends(Download)
                denominator = match.groupdict()['dnm']
 
                if (numerator.startswith('0') and not numerator.startswith('0.')) or \
                        (denominator.startswith('0') and not denominator.startswith('0.')):
                    continue

src/q/u/quant-HEAD/utils/YahooQuote.py   quant(Download)
 
        date = QuoteDate.fromYmd(year, month, day)
        if change.startswith("-"):
            change = -float(change[1:])
        elif change.startswith("+"):

src/g/o/golismero-2.0.3-1/thirdparty_libs/geopy/point.py   golismero(Download)
    def parse_degrees(cls, degrees, arcminutes, arcseconds, direction=None):
        negative = degrees < 0 or degrees.startswith('-')
        degrees = float(degrees or 0)
        arcminutes = float(arcminutes or 0)
        arcseconds = float(arcseconds or 0)

src/g/o/golismero-HEAD/thirdparty_libs/geopy/point.py   golismero(Download)
    def parse_degrees(cls, degrees, arcminutes, arcseconds, direction=None):
        negative = degrees < 0 or degrees.startswith('-')
        degrees = float(degrees or 0)
        arcminutes = float(arcminutes or 0)
        arcseconds = float(arcseconds or 0)

src/z/o/zope.publisher-3.13.4/src/zope/publisher/http.py   zope.publisher(Download)
                    except ValueError:
                        continue
                    if not quality.startswith('q='):
                        # not a quality parameter
                        quality = 1.0

src/c/s/cs4970_capstone-HEAD/django_server/third_party/geopy/point.py   cs4970_capstone(Download)
    def parse_degrees(cls, degrees, arcminutes, arcseconds, direction=None):
        negative = degrees < 0 or degrees.startswith('-')
        degrees = float(degrees or 0)
        arcminutes = float(arcminutes or 0)
        arcseconds = float(arcseconds or 0)

  1 | 2  Next