This Text file is old! In a 🏛️Museum, an unsorted archive of (user-)pages. (Saved from Geocities in Oct-2009. The archival story: oocities.org)
--------------------------------------- (To 🚫report any bad content: archivehelp @ gmail.com)
>


import re, string

class Clusters:
      def __init__(self):
          self.clust = {}

      def add_to_cluster(self,item,cluster):
          if not self.clust.has_key(cluster):
             self.clust[cluster] = []
          self.clust[cluster].append(item)
                     
      def printer(self):
          for cluster in self.clust.keys():
              print "\ncluster: %s" % (cluster)
              for item in self.clust[cluster]:
                  print item

cl = Clusters()

names_file = open("over4names.txt",'r')
ordering_file = open("over4cl30.txt",'r')

names = []
for line in names_file.readlines():
    line = string.strip(line)
    names.append(line)

ordering = []
for line in ordering_file.readlines():
    line = int(string.strip(line))
    ordering.append(line)

print names
print ordering

for i in range(0,len(names)-1):
    cl.add_to_cluster(names[i],ordering[i])

cl.printer()





    

Text file Source (historic): geocities.com/soho/square/3472

geocities.com/soho/square
geocities.com/soho

(to report bad content: archivehelp @ gmail)