def main():
    gnome_dates = '/Users/nernst/Documents/projects/msr/data/yearweek.csv'
    release_dates = '/Users/nernst/Documents/projects/msr/data/dates-releases.csv'
    global gnome_dates_dict
    global release_map
    
    reader = csv.reader(open(gnome_dates, 'rb'))
    gnome_dates_list = [int(x[0]) for x in reader]
    gnome_dates_dict = dict.fromkeys(gnome_dates_list,[])
    #open the list of Gnome releases
    dr = csv.reader(open(release_dates, 'rb'))
    release_map = gnome_dates_dict.copy() #shallow copy
    releases = [x for x in dr]
    for release in releases:
        release_map[int(release[1])] = DateReleaseObj(release)
    t = Taxonomy()     
    for signified in t.get_signified(): # e.g. usability, performance, etc
        # print signified + ' & ',
        print signified #+ ' , ',

        for product in t.get_products():
            # print '& ' + product,
            print product + ',',
            gnome_dates_dict = dict.fromkeys(gnome_dates_list,[])
            find_window(product, signified)
Exemplo n.º 2
0
def main():
    gnome_dates = '/Users/nernst/Documents/projects/msr/data/yearweek.csv'
    release_dates = '/Users/nernst/Documents/projects/msr/data/dates-releases.csv'
    global gnome_dates_dict
    global release_map

    reader = csv.reader(open(gnome_dates, 'rb'))
    gnome_dates_list = [int(x[0]) for x in reader]
    gnome_dates_dict = dict.fromkeys(gnome_dates_list, [])
    #open the list of Gnome releases
    dr = csv.reader(open(release_dates, 'rb'))
    release_map = gnome_dates_dict.copy()  #shallow copy
    releases = [x for x in dr]
    for release in releases:
        release_map[int(release[1])] = DateReleaseObj(release)
    t = Taxonomy()
    for signified in t.get_signified():  # e.g. usability, performance, etc
        # print signified + ' & ',
        print signified  #+ ' , ',

        for product in t.get_products():
            # print '& ' + product,
            print product + ',',
            gnome_dates_dict = dict.fromkeys(gnome_dates_list, [])
            find_window(product, signified)
from names import Taxonomy
import subprocess
t = Taxonomy()
for sign in t.get_signified():
    wordlist = t.get_signifiers(sign)
    for word in wordlist:
        p = subprocess.Popen(["perl", "typo.pl", word],
                             stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE,
                             stdin=subprocess.PIPE)
        (out, err) = p.communicate()
        print out
        # print word
Exemplo n.º 4
0
from names import Taxonomy
import subprocess

t = Taxonomy()
for sign in t.get_signified():
    wordlist = t.get_signifiers(sign)
    for word in wordlist:
        p = subprocess.Popen(
            ["perl", "typo.pl", word], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE
        )
        (out, err) = p.communicate()
        print out
        # print word