Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

        def unique_users(if_str):
    u=set()
    with open(if_str,"r") as f:
        for line in f:
            user,_,_=line.strip().split('\t')
            if user not in u:
                u.add(user)
    return u 
        


src/s/o/solutions-HEAD/kaggle/msdchallenge/aio/MSD_subm_rec.py   solutions(Download)
 
print  "loading unique users indexes"
uu = MSD_util.unique_users(f_triplets_tr)
u2i = {}
for i,u in enumerate(uu):