

def inposition(keyword, lookforurl, positions=''):
    'Return the position a provided lookforurl is in for a given keyword.'
    if (not positions):

        def gpositions(keyword):
            global positions
            return positions(keyword)
        positions = gpositions(keyword)
    elif positions:
        urldict = json.loads(positions)
        for (thepos, aurl) in urldict.iteritems():
            if (aurl.lower() == aurl.lower()):
                return thepos

dataset/ETHPy150Open miklevin/pipulate/common.py inposition/VarMisuse@84/127 `lookforurl`->`aurl`