daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def loadSamples():
  2.     f = open('data/triplets_sample_20p.txt')
  3.     i = 0
  4.     for line in f:
  5.         triplets_sample.append(parseRow(line))
  6.         if i % 1000000 == 0:
  7.             print(i)
  8.         i += 1
  9.     f.close()
  10.  
  11.  
  12. def loadUniqueTracks():
  13.     f = open('data/unique_tracks.txt', encoding='ISO-8859-1')
  14.     i = 0
  15.     for line in f:
  16.         parsed_row = parseRow(line)
  17.         unique_tracks[parsed_row[1]] = [parsed_row[0], parsed_row[2], parsed_row[3]]
  18.         if i % 1000000 == 0:
  19.             print(i)
  20.         i += 1
  21.     f.close()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top