Ejemplo n.º 1
0
def printResult(csvFilename):
    first = True
    data = Data()
    for x in rows(lines(csvFilename)):
        if (first):
            first = False
            header(data, x.split(","))
        else:
            addRow(data, x.split(","))

    print("#\tName\t\t n \t       mode \t       freq")
    for i, x in data.syms.items():
        print("%d   %15s \t %d \t %10s \t %10.2f" %
              (i, data.name[i], x.n, x.mode, x.most))
        # print(str(i) + "\t" + data.name[i][:7] + ".." + "\t" + str(x.n))

    print("\n#\tName\t\t n \t\t mu \t\t sd")
    for i, x in data.nums.items():
        print("%d   %15s \t %d \t %10.2f \t %10.2f" %
              (i, data.name[i], x.n, x.mu, x.sd))

    data.doms()

    data.rows.sort(key=sortByDom, reverse=True)

    for row in data.rows:
        row[-1] = round(row[-1], 2)

    #unsuper(data)
    super(data)

    print("\n")
    decideAndPrint(data)
Ejemplo n.º 2
0
 def __init__(self):
     super(super_A_greet_Method, self).__init__(u"quark.void", u"greet", _List([]));
Ejemplo n.º 3
0
 def __init__(self):
     super(quark_List_quark_String_, self).__init__(u"quark.List<quark.String>");
     (self).name = u"quark.List"
     (self).parameters = _List([u"quark.String"])
     (self).fields = _List([])
     (self).methods = _List([])
Ejemplo n.º 4
0
 def __init__(self):
     super(super_B, self).__init__(u"super.B");
     (self).name = u"super.B"
     (self).parameters = _List([])
     (self).fields = _List([quark.reflect.Field(u"quark.String", u"name")])
     (self).methods = _List([super_B_greet_Method()])