content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
smile_dict = [b"\xF0\x9F\x98\x81", b"\xF0\x9F\x98\x82", b"\xF0\x9F\x98\x83", b"\xF0\x9F\x98\x84", b"\xF0\x9F\x98\x85", b"\xF0\x9F\x98\x86", b"\xF0\x9F\x98\x89", b"\xF0\x9F\x98\x8A", b"\xF0\x9F\x98\x8B", b"\xF0\x9F\x98\x8C", b"\xF0\x9F\x98\x8D", b"\xF0\x9F\x98\x8F", b"\xF0\x9F\x98\x92", b"\xF0\x9F\x98\x93", b"\xF0\x9F\x98\x94", b"\xF0\x9F\x98\x96", b"\xF0\x9F\x98\x98", b"\xF0\x9F\x98\x9A", b"\xF0\x9F\x98\x9C", b"\xF0\x9F\x98\x9D", b"\xF0\x9F\x98\x9E", b"\xF0\x9F\x98\xA0", b"\xF0\x9F\x98\xA1", b"\xF0\x9F\x98\xA2", b"\xF0\x9F\x98\xA3", b"\xF0\x9F\x98\xA4", b"\xF0\x9F\x98\xA5", b"\xF0\x9F\x98\xA8", b"\xF0\x9F\x98\xA9", b"\xF0\x9F\x98\xAA", b"\xF0\x9F\x98\xAB", b"\xF0\x9F\x98\xAD", b"\xF0\x9F\x98\xB0", b"\xF0\x9F\x98\xB1", b"\xF0\x9F\x98\xB2", b"\xF0\x9F\x98\xB3", b"\xF0\x9F\x98\xB5", b"\xF0\x9F\x98\xB7", b"\xF0\x9F\x98\xB8", b"\xF0\x9F\x98\xB9", b"\xF0\x9F\x98\xBA", b"\xF0\x9F\x98\xBB", b"\xF0\x9F\x98\xBC", b"\xF0\x9F\x98\xBD", b"\xF0\x9F\x98\xBE", b"\xF0\x9F\x98\xBF", b"\xF0\x9F\x99\x80", b"\xF0\x9F\x99\x85", b"\xF0\x9F\x99\x86", b"\xF0\x9F\x99\x87", b"\xF0\x9F\x99\x88", b"\xF0\x9F\x99\x89", b"\xF0\x9F\x99\x8A", b"\xF0\x9F\x99\x8B", b"\xF0\x9F\x99\x8C", b"\xF0\x9F\x99\x8D", b"\xF0\x9F\x99\x8E", b"\xF0\x9F\x99\x8F", b"\xE2\x9C\x82", b"\xE2\x9C\x85", b"\xE2\x9C\x88", b"\xE2\x9C\x89", b"\xE2\x9C\x8A", b"\xE2\x9C\x8B", b"\xE2\x9C\x8C", b"\xE2\x9C\x8F", b"\xE2\x9C\x92", b"\xE2\x9C\x94", b"\xE2\x9C\x96", b"\xE2\x9C\xA8", b"\xE2\x9C\xB3", b"\xE2\x9C\xB4", b"\xE2\x9D\x84", b"\xE2\x9D\x87", b"\xE2\x9D\x8C", b"\xE2\x9D\x8E", b"\xE2\x9D\x93", b"\xE2\x9D\x94", b"\xE2\x9D\x95", b"\xE2\x9D\x97", b"\xE2\x9D\xA4", b"\xE2\x9E\x95", b"\xE2\x9E\x96", b"\xE2\x9E\x97", b"\xE2\x9E\xA1", b"\xE2\x9E\xB0", b"\xF0\x9F\x9A\x80", b"\xF0\x9F\x9A\x83", b"\xF0\x9F\x9A\x84", b"\xF0\x9F\x9A\x85", b"\xF0\x9F\x9A\x87", b"\xF0\x9F\x9A\x89", b"\xF0\x9F\x9A\x8C", b"\xF0\x9F\x9A\x8F", b"\xF0\x9F\x9A\x91", b"\xF0\x9F\x9A\x92", b"\xF0\x9F\x9A\x93", b"\xF0\x9F\x9A\x95", b"\xF0\x9F\x9A\x97", b"\xF0\x9F\x9A\x99", b"\xF0\x9F\x9A\x9A", b"\xF0\x9F\x9A\xA2", b"\xF0\x9F\x9A\xA4", b"\xF0\x9F\x9A\xA5", b"\xF0\x9F\x9A\xA7", b"\xF0\x9F\x9A\xA8", b"\xF0\x9F\x9A\xA9", b"\xF0\x9F\x9A\xAA", b"\xF0\x9F\x9A\xAB", b"\xF0\x9F\x9A\xAC", b"\xF0\x9F\x9A\xAD", b"\xF0\x9F\x9A\xB2", b"\xF0\x9F\x9A\xB6", b"\xF0\x9F\x9A\xB9", b"\xF0\x9F\x9A\xBA", b"\xF0\x9F\x9A\xBB", b"\xF0\x9F\x9A\xBC", b"\xF0\x9F\x9A\xBD", b"\xF0\x9F\x9A\xBE", b"\xF0\x9F\x9B\x80", b"\xE2\x93\x82", b"\xF0\x9F\x85\xB0", b"\xF0\x9F\x85\xB1", b"\xF0\x9F\x85\xBE", b"\xF0\x9F\x85\xBF", b"\xF0\x9F\x86\x8E", b"\xF0\x9F\x86\x91", b"\xF0\x9F\x86\x92", b"\xF0\x9F\x86\x93", b"\xF0\x9F\x86\x94", b"\xF0\x9F\x86\x95", b"\xF0\x9F\x86\x96", b"\xF0\x9F\x86\x97", b"\xF0\x9F\x86\x98", b"\xF0\x9F\x86\x99", b"\xF0\x9F\x86\x9A", b"\xF0\x9F\x87\xA9\xF0\x9F\x87\xAA", b"\xF0\x9F\x87\xAC\xF0\x9F\x87\xA7", b"\xF0\x9F\x87\xA8\xF0\x9F\x87\xB3", b"\xF0\x9F\x87\xAF\xF0\x9F\x87\xB5", b"\xF0\x9F\x87\xAB\xF0\x9F\x87\xB7", b"\xF0\x9F\x87\xB0\xF0\x9F\x87\xB7", b"\xF0\x9F\x87\xAA\xF0\x9F\x87\xB8", b"\xF0\x9F\x87\xAE\xF0\x9F\x87\xB9", b"\xF0\x9F\x87\xB7\xF0\x9F\x87\xBA", b"\xF0\x9F\x87\xBA\xF0\x9F\x87\xB8", b"\xF0\x9F\x88\x81", b"\xF0\x9F\x88\x82", b"\xF0\x9F\x88\x9A", b"\xF0\x9F\x88\xAF", b"\xF0\x9F\x88\xB2", b"\xF0\x9F\x88\xB3", b"\xF0\x9F\x88\xB4", b"\xF0\x9F\x88\xB5", b"\xF0\x9F\x88\xB6", b"\xF0\x9F\x88\xB7", b"\xF0\x9F\x88\xB8", b"\xF0\x9F\x88\xB9", b"\xF0\x9F\x88\xBA", b"\xF0\x9F\x89\x90", b"\xF0\x9F\x89\x91", b"\xC2\xA9", b"\xC2\xAE", b"\xE2\x80\xBC", b"\xE2\x81\x89", b"\x23\xE2\x83\xA3", b"\x38\xE2\x83\xA3", b"\x39\xE2\x83\xA3", b"\x37\xE2\x83\xA3", b"\x30\xE2\x83\xA3", b"\x36\xE2\x83\xA3", b"\x35\xE2\x83\xA3", b"\x34\xE2\x83\xA3", b"\x33\xE2\x83\xA3", b"\x32\xE2\x83\xA3", b"\x31\xE2\x83\xA3", b"\xE2\x84\xA2", b"\xE2\x84\xB9", b"\xE2\x86\x94", b"\xE2\x86\x95", b"\xE2\x86\x96", b"\xE2\x86\x97", b"\xE2\x86\x98", b"\xE2\x86\x99", b"\xE2\x86\xA9", b"\xE2\x86\xAA", b"\xE2\x8C\x9A", b"\xE2\x8C\x9B", b"\xE2\x8F\xA9", b"\xE2\x8F\xAA", b"\xE2\x8F\xAB", b"\xE2\x8F\xAC", b"\xE2\x8F\xB0", b"\xE2\x8F\xB3", b"\xE2\x96\xAA", b"\xE2\x96\xAB", b"\xE2\x96\xB6", b"\xE2\x97\x80", b"\xE2\x97\xBB", b"\xE2\x97\xBC", b"\xE2\x97\xBD", b"\xE2\x97\xBE", b"\xE2\x98\x80", b"\xE2\x98\x81", b"\xE2\x98\x8E", b"\xE2\x98\x91", b"\xE2\x98\x94", b"\xE2\x98\x95", b"\xE2\x98\x9D", b"\xE2\x98\xBA", b"\xE2\x99\x88", b"\xE2\x99\x89", b"\xE2\x99\x8A", b"\xE2\x99\x8B", b"\xE2\x99\x8C", b"\xE2\x99\x8D", b"\xE2\x99\x8E", b"\xE2\x99\x8F", b"\xE2\x99\x90", b"\xE2\x99\x91", b"\xE2\x99\x92", b"\xE2\x99\x93", b"\xE2\x99\xA0", b"\xE2\x99\xA3", b"\xE2\x99\xA5", b"\xE2\x99\xA6", b"\xE2\x99\xA8", b"\xE2\x99\xBB", b"\xE2\x99\xBF", b"\xE2\x9A\x93", b"\xE2\x9A\xA0", b"\xE2\x9A\xA1", b"\xE2\x9A\xAA", b"\xE2\x9A\xAB", b"\xE2\x9A\xBD", b"\xE2\x9A\xBE", b"\xE2\x9B\x84", b"\xE2\x9B\x85", b"\xE2\x9B\x8E", b"\xE2\x9B\x94", b"\xE2\x9B\xAA", b"\xE2\x9B\xB2", b"\xE2\x9B\xB3", b"\xE2\x9B\xB5", b"\xE2\x9B\xBA", b"\xE2\x9B\xBD", b"\xE2\xA4\xB4", b"\xE2\xA4\xB5", b"\xE2\xAC\x85", b"\xE2\xAC\x86", b"\xE2\xAC\x87", b"\xE2\xAC\x9B", b"\xE2\xAC\x9C", b"\xE2\xAD\x90", b"\xE2\xAD\x95", b"\xE3\x80\xB0", b"\xE3\x80\xBD", b"\xE3\x8A\x97", b"\xE3\x8A\x99", b"\xF0\x9F\x80\x84", b"\xF0\x9F\x83\x8F", b"\xF0\x9F\x8C\x80", b"\xF0\x9F\x8C\x81", b"\xF0\x9F\x8C\x82", b"\xF0\x9F\x8C\x83", b"\xF0\x9F\x8C\x84", b"\xF0\x9F\x8C\x85", b"\xF0\x9F\x8C\x86", b"\xF0\x9F\x8C\x87", b"\xF0\x9F\x8C\x88", b"\xF0\x9F\x8C\x89", b"\xF0\x9F\x8C\x8A", b"\xF0\x9F\x8C\x8B", b"\xF0\x9F\x8C\x8C", b"\xF0\x9F\x8C\x8F", b"\xF0\x9F\x8C\x91", b"\xF0\x9F\x8C\x93", b"\xF0\x9F\x8C\x94", b"\xF0\x9F\x8C\x95", b"\xF0\x9F\x8C\x99", b"\xF0\x9F\x8C\x9B", b"\xF0\x9F\x8C\x9F", b"\xF0\x9F\x8C\xA0", b"\xF0\x9F\x8C\xB0", b"\xF0\x9F\x8C\xB1", b"\xF0\x9F\x8C\xB4", b"\xF0\x9F\x8C\xB5", b"\xF0\x9F\x8C\xB7", b"\xF0\x9F\x8C\xB8", b"\xF0\x9F\x8C\xB9", b"\xF0\x9F\x8C\xBA", b"\xF0\x9F\x8C\xBB", b"\xF0\x9F\x8C\xBC", b"\xF0\x9F\x8C\xBD", b"\xF0\x9F\x8C\xBE", b"\xF0\x9F\x8C\xBF", b"\xF0\x9F\x8D\x80", b"\xF0\x9F\x8D\x81", b"\xF0\x9F\x8D\x82", b"\xF0\x9F\x8D\x83", b"\xF0\x9F\x8D\x84", b"\xF0\x9F\x8D\x85", b"\xF0\x9F\x8D\x86", b"\xF0\x9F\x8D\x87", b"\xF0\x9F\x8D\x88", b"\xF0\x9F\x8D\x89", b"\xF0\x9F\x8D\x8A", b"\xF0\x9F\x8D\x8C", b"\xF0\x9F\x8D\x8D", b"\xF0\x9F\x8D\x8E", b"\xF0\x9F\x8D\x8F", b"\xF0\x9F\x8D\x91", b"\xF0\x9F\x8D\x92", b"\xF0\x9F\x8D\x93", b"\xF0\x9F\x8D\x94", b"\xF0\x9F\x8D\x95", b"\xF0\x9F\x8D\x96", b"\xF0\x9F\x8D\x97", b"\xF0\x9F\x8D\x98", b"\xF0\x9F\x8D\x99", b"\xF0\x9F\x8D\x9A", b"\xF0\x9F\x8D\x9B", b"\xF0\x9F\x8D\x9C", b"\xF0\x9F\x8D\x9D", b"\xF0\x9F\x8D\x9E", b"\xF0\x9F\x8D\x9F", b"\xF0\x9F\x8D\xA0", b"\xF0\x9F\x8D\xA1", b"\xF0\x9F\x8D\xA2", b"\xF0\x9F\x8D\xA3", b"\xF0\x9F\x8D\xA4", b"\xF0\x9F\x8D\xA5", b"\xF0\x9F\x8D\xA6", b"\xF0\x9F\x8D\xA7", b"\xF0\x9F\x8D\xA8", b"\xF0\x9F\x8D\xA9", b"\xF0\x9F\x8D\xAA", b"\xF0\x9F\x8D\xAB", b"\xF0\x9F\x8D\xAC", b"\xF0\x9F\x8D\xAD", b"\xF0\x9F\x8D\xAE", b"\xF0\x9F\x8D\xAF", b"\xF0\x9F\x8D\xB0", b"\xF0\x9F\x8D\xB1", b"\xF0\x9F\x8D\xB2", b"\xF0\x9F\x8D\xB3", b"\xF0\x9F\x8D\xB4", b"\xF0\x9F\x8D\xB5", b"\xF0\x9F\x8D\xB6", b"\xF0\x9F\x8D\xB7", b"\xF0\x9F\x8D\xB8", b"\xF0\x9F\x8D\xB9", b"\xF0\x9F\x8D\xBA", b"\xF0\x9F\x8D\xBB", b"\xF0\x9F\x8E\x80", b"\xF0\x9F\x8E\x81", b"\xF0\x9F\x8E\x82", b"\xF0\x9F\x8E\x83", b"\xF0\x9F\x8E\x84", b"\xF0\x9F\x8E\x85", b"\xF0\x9F\x8E\x86", b"\xF0\x9F\x8E\x87", b"\xF0\x9F\x8E\x88", b"\xF0\x9F\x8E\x89", b"\xF0\x9F\x8E\x8A", b"\xF0\x9F\x8E\x8B", b"\xF0\x9F\x8E\x8C", b"\xF0\x9F\x8E\x8D", b"\xF0\x9F\x8E\x8E", b"\xF0\x9F\x8E\x8F", b"\xF0\x9F\x8E\x90", b"\xF0\x9F\x8E\x91", b"\xF0\x9F\x8E\x92", b"\xF0\x9F\x8E\x93", b"\xF0\x9F\x8E\xA0", b"\xF0\x9F\x8E\xA1", b"\xF0\x9F\x8E\xA2", b"\xF0\x9F\x8E\xA3", b"\xF0\x9F\x8E\xA4", b"\xF0\x9F\x8E\xA5", b"\xF0\x9F\x8E\xA6", b"\xF0\x9F\x8E\xA7", b"\xF0\x9F\x8E\xA8", b"\xF0\x9F\x8E\xA9", b"\xF0\x9F\x8E\xAA", b"\xF0\x9F\x8E\xAB", b"\xF0\x9F\x8E\xAC", b"\xF0\x9F\x8E\xAD", b"\xF0\x9F\x8E\xAE", b"\xF0\x9F\x8E\xAF", b"\xF0\x9F\x8E\xB0", b"\xF0\x9F\x8E\xB1", b"\xF0\x9F\x8E\xB2", b"\xF0\x9F\x8E\xB3", b"\xF0\x9F\x8E\xB4", b"\xF0\x9F\x8E\xB5", b"\xF0\x9F\x8E\xB6", b"\xF0\x9F\x8E\xB7", b"\xF0\x9F\x8E\xB8", b"\xF0\x9F\x8E\xB9", b"\xF0\x9F\x8E\xBA", b"\xF0\x9F\x8E\xBB", b"\xF0\x9F\x8E\xBC", b"\xF0\x9F\x8E\xBD", b"\xF0\x9F\x8E\xBE", b"\xF0\x9F\x8E\xBF", b"\xF0\x9F\x8F\x80", b"\xF0\x9F\x8F\x81", b"\xF0\x9F\x8F\x82", b"\xF0\x9F\x8F\x83", b"\xF0\x9F\x8F\x84", b"\xF0\x9F\x8F\x86", b"\xF0\x9F\x8F\x88", b"\xF0\x9F\x8F\x8A", b"\xF0\x9F\x8F\xA0", b"\xF0\x9F\x8F\xA1", b"\xF0\x9F\x8F\xA2", b"\xF0\x9F\x8F\xA3", b"\xF0\x9F\x8F\xA5", b"\xF0\x9F\x8F\xA6", b"\xF0\x9F\x8F\xA7", b"\xF0\x9F\x8F\xA8", b"\xF0\x9F\x8F\xA9", b"\xF0\x9F\x8F\xAA", b"\xF0\x9F\x8F\xAB", b"\xF0\x9F\x8F\xAC", b"\xF0\x9F\x8F\xAD", b"\xF0\x9F\x8F\xAE", b"\xF0\x9F\x8F\xAF", b"\xF0\x9F\x8F\xB0", b"\xF0\x9F\x90\x8C", b"\xF0\x9F\x90\x8D", b"\xF0\x9F\x90\x8E", b"\xF0\x9F\x90\x91", b"\xF0\x9F\x90\x92", b"\xF0\x9F\x90\x94", b"\xF0\x9F\x90\x97", b"\xF0\x9F\x90\x98", b"\xF0\x9F\x90\x99", b"\xF0\x9F\x90\x9A", b"\xF0\x9F\x90\x9B", b"\xF0\x9F\x90\x9C", b"\xF0\x9F\x90\x9D", b"\xF0\x9F\x90\x9E", b"\xF0\x9F\x90\x9F", b"\xF0\x9F\x90\xA0", b"\xF0\x9F\x90\xA1", b"\xF0\x9F\x90\xA2", b"\xF0\x9F\x90\xA3", b"\xF0\x9F\x90\xA4", b"\xF0\x9F\x90\xA5", b"\xF0\x9F\x90\xA6", b"\xF0\x9F\x90\xA7", b"\xF0\x9F\x90\xA8", b"\xF0\x9F\x90\xA9", b"\xF0\x9F\x90\xAB", b"\xF0\x9F\x90\xAC", b"\xF0\x9F\x90\xAD", b"\xF0\x9F\x90\xAE", b"\xF0\x9F\x90\xAF", b"\xF0\x9F\x90\xB0", b"\xF0\x9F\x90\xB1", b"\xF0\x9F\x90\xB2", b"\xF0\x9F\x90\xB3", b"\xF0\x9F\x90\xB4", b"\xF0\x9F\x90\xB5", b"\xF0\x9F\x90\xB6", b"\xF0\x9F\x90\xB7", b"\xF0\x9F\x90\xB8", b"\xF0\x9F\x90\xB9", b"\xF0\x9F\x90\xBA", b"\xF0\x9F\x90\xBB", b"\xF0\x9F\x90\xBC", b"\xF0\x9F\x90\xBD", b"\xF0\x9F\x90\xBE", b"\xF0\x9F\x91\x80", b"\xF0\x9F\x91\x82", b"\xF0\x9F\x91\x83", b"\xF0\x9F\x91\x84", b"\xF0\x9F\x91\x85", b"\xF0\x9F\x91\x86", b"\xF0\x9F\x91\x87", b"\xF0\x9F\x91\x88", b"\xF0\x9F\x91\x89", b"\xF0\x9F\x91\x8A", b"\xF0\x9F\x91\x8B", b"\xF0\x9F\x91\x8C", b"\xF0\x9F\x91\x8D", b"\xF0\x9F\x91\x8E", b"\xF0\x9F\x91\x8F", b"\xF0\x9F\x91\x90", b"\xF0\x9F\x91\x91", b"\xF0\x9F\x91\x92", b"\xF0\x9F\x91\x93", b"\xF0\x9F\x91\x94", b"\xF0\x9F\x91\x95", b"\xF0\x9F\x91\x96", b"\xF0\x9F\x91\x97", b"\xF0\x9F\x91\x98", b"\xF0\x9F\x91\x99", b"\xF0\x9F\x91\x9A", b"\xF0\x9F\x91\x9B", b"\xF0\x9F\x91\x9C", b"\xF0\x9F\x91\x9D", b"\xF0\x9F\x91\x9E", b"\xF0\x9F\x91\x9F", b"\xF0\x9F\x91\xA0", b"\xF0\x9F\x91\xA1", b"\xF0\x9F\x91\xA2", b"\xF0\x9F\x91\xA3", b"\xF0\x9F\x91\xA4", b"\xF0\x9F\x91\xA6", b"\xF0\x9F\x91\xA7", b"\xF0\x9F\x91\xA8", b"\xF0\x9F\x91\xA9", b"\xF0\x9F\x91\xAA", b"\xF0\x9F\x91\xAB", b"\xF0\x9F\x91\xAE", b"\xF0\x9F\x91\xAF", b"\xF0\x9F\x91\xB0", b"\xF0\x9F\x91\xB1", b"\xF0\x9F\x91\xB2", b"\xF0\x9F\x91\xB3", b"\xF0\x9F\x91\xB4", b"\xF0\x9F\x91\xB5", b"\xF0\x9F\x91\xB6", b"\xF0\x9F\x91\xB7", b"\xF0\x9F\x91\xB8", b"\xF0\x9F\x91\xB9", b"\xF0\x9F\x91\xBA", b"\xF0\x9F\x91\xBB", b"\xF0\x9F\x91\xBC", b"\xF0\x9F\x91\xBD", b"\xF0\x9F\x91\xBE", b"\xF0\x9F\x91\xBF", b"\xF0\x9F\x92\x80", b"\xF0\x9F\x92\x81", b"\xF0\x9F\x92\x82", b"\xF0\x9F\x92\x83", b"\xF0\x9F\x92\x84", b"\xF0\x9F\x92\x85", b"\xF0\x9F\x92\x86", b"\xF0\x9F\x92\x87", b"\xF0\x9F\x92\x88", b"\xF0\x9F\x92\x89", b"\xF0\x9F\x92\x8A", b"\xF0\x9F\x92\x8B", b"\xF0\x9F\x92\x8C", b"\xF0\x9F\x92\x8D", b"\xF0\x9F\x92\x8E", b"\xF0\x9F\x92\x8F", b"\xF0\x9F\x92\x90", b"\xF0\x9F\x92\x91", b"\xF0\x9F\x92\x92", b"\xF0\x9F\x92\x93", b"\xF0\x9F\x92\x94", b"\xF0\x9F\x92\x95", b"\xF0\x9F\x92\x96", b"\xF0\x9F\x92\x97", b"\xF0\x9F\x92\x98", b"\xF0\x9F\x92\x99", b"\xF0\x9F\x92\x9A", b"\xF0\x9F\x92\x9B", b"\xF0\x9F\x92\x9C", b"\xF0\x9F\x92\x9D", b"\xF0\x9F\x92\x9E", b"\xF0\x9F\x92\x9F", b"\xF0\x9F\x92\xA0", b"\xF0\x9F\x92\xA1", b"\xF0\x9F\x92\xA2", b"\xF0\x9F\x92\xA3", b"\xF0\x9F\x92\xA4", b"\xF0\x9F\x92\xA5", b"\xF0\x9F\x92\xA6", b"\xF0\x9F\x92\xA7", b"\xF0\x9F\x92\xA8", b"\xF0\x9F\x92\xA9", b"\xF0\x9F\x92\xAA", b"\xF0\x9F\x92\xAB", b"\xF0\x9F\x92\xAC", b"\xF0\x9F\x92\xAE", b"\xF0\x9F\x92\xAF", b"\xF0\x9F\x92\xB0", b"\xF0\x9F\x92\xB1", b"\xF0\x9F\x92\xB2", b"\xF0\x9F\x92\xB3", b"\xF0\x9F\x92\xB4", b"\xF0\x9F\x92\xB5", b"\xF0\x9F\x92\xB8", b"\xF0\x9F\x92\xB9", b"\xF0\x9F\x92\xBA", b"\xF0\x9F\x92\xBB", b"\xF0\x9F\x92\xBC", b"\xF0\x9F\x92\xBD", b"\xF0\x9F\x92\xBE", b"\xF0\x9F\x92\xBF", b"\xF0\x9F\x93\x80", b"\xF0\x9F\x93\x81", b"\xF0\x9F\x93\x82", b"\xF0\x9F\x93\x83", b"\xF0\x9F\x93\x84", b"\xF0\x9F\x93\x85", b"\xF0\x9F\x93\x86", b"\xF0\x9F\x93\x87", b"\xF0\x9F\x93\x88", b"\xF0\x9F\x93\x89", b"\xF0\x9F\x93\x8A", b"\xF0\x9F\x93\x8B", b"\xF0\x9F\x93\x8C", b"\xF0\x9F\x93\x8D", b"\xF0\x9F\x93\x8E", b"\xF0\x9F\x93\x8F", b"\xF0\x9F\x93\x90", b"\xF0\x9F\x93\x91", b"\xF0\x9F\x93\x92", b"\xF0\x9F\x93\x93", b"\xF0\x9F\x93\x94", b"\xF0\x9F\x93\x95", b"\xF0\x9F\x93\x96", b"\xF0\x9F\x93\x97", b"\xF0\x9F\x93\x98", b"\xF0\x9F\x93\x99", b"\xF0\x9F\x93\x9A", b"\xF0\x9F\x93\x9B", b"\xF0\x9F\x93\x9C", b"\xF0\x9F\x93\x9D", b"\xF0\x9F\x93\x9E", b"\xF0\x9F\x93\x9F", b"\xF0\x9F\x93\xA0", b"\xF0\x9F\x93\xA1", b"\xF0\x9F\x93\xA2", b"\xF0\x9F\x93\xA3", b"\xF0\x9F\x93\xA4", b"\xF0\x9F\x93\xA5", b"\xF0\x9F\x93\xA6", b"\xF0\x9F\x93\xA7", b"\xF0\x9F\x93\xA8", b"\xF0\x9F\x93\xA9", b"\xF0\x9F\x93\xAA", b"\xF0\x9F\x93\xAB", b"\xF0\x9F\x93\xAE", b"\xF0\x9F\x93\xB0", b"\xF0\x9F\x93\xB1", b"\xF0\x9F\x93\xB2", b"\xF0\x9F\x93\xB3", b"\xF0\x9F\x93\xB4", b"\xF0\x9F\x93\xB6", b"\xF0\x9F\x93\xB7", b"\xF0\x9F\x93\xB9", b"\xF0\x9F\x93\xBA", b"\xF0\x9F\x93\xBB", b"\xF0\x9F\x93\xBC", b"\xF0\x9F\x94\x83", b"\xF0\x9F\x94\x8A", b"\xF0\x9F\x94\x8B", b"\xF0\x9F\x94\x8C", b"\xF0\x9F\x94\x8D", b"\xF0\x9F\x94\x8E", b"\xF0\x9F\x94\x8F", b"\xF0\x9F\x94\x90", b"\xF0\x9F\x94\x91", b"\xF0\x9F\x94\x92", b"\xF0\x9F\x94\x93", b"\xF0\x9F\x94\x94", b"\xF0\x9F\x94\x96", b"\xF0\x9F\x94\x97", b"\xF0\x9F\x94\x98", b"\xF0\x9F\x94\x99", b"\xF0\x9F\x94\x9A", b"\xF0\x9F\x94\x9B", b"\xF0\x9F\x94\x9C", b"\xF0\x9F\x94\x9D", b"\xF0\x9F\x94\x9E", b"\xF0\x9F\x94\x9F", b"\xF0\x9F\x94\xA0", b"\xF0\x9F\x94\xA1", b"\xF0\x9F\x94\xA2", b"\xF0\x9F\x94\xA3", b"\xF0\x9F\x94\xA4", b"\xF0\x9F\x94\xA5", b"\xF0\x9F\x94\xA6", b"\xF0\x9F\x94\xA7", b"\xF0\x9F\x94\xA8", b"\xF0\x9F\x94\xA9", b"\xF0\x9F\x94\xAA", b"\xF0\x9F\x94\xAB", b"\xF0\x9F\x94\xAE", b"\xF0\x9F\x94\xAF", b"\xF0\x9F\x94\xB0", b"\xF0\x9F\x94\xB1", b"\xF0\x9F\x94\xB2", b"\xF0\x9F\x94\xB3", b"\xF0\x9F\x94\xB4", b"\xF0\x9F\x94\xB5", b"\xF0\x9F\x94\xB6", b"\xF0\x9F\x94\xB7", b"\xF0\x9F\x94\xB8", b"\xF0\x9F\x94\xB9", b"\xF0\x9F\x94\xBA", b"\xF0\x9F\x94\xBB", b"\xF0\x9F\x94\xBC", b"\xF0\x9F\x94\xBD", b"\xF0\x9F\x95\x90", b"\xF0\x9F\x95\x91", b"\xF0\x9F\x95\x92", b"\xF0\x9F\x95\x93", b"\xF0\x9F\x95\x94", b"\xF0\x9F\x95\x95", b"\xF0\x9F\x95\x96", b"\xF0\x9F\x95\x97", b"\xF0\x9F\x95\x98", b"\xF0\x9F\x95\x99", b"\xF0\x9F\x95\x9A", b"\xF0\x9F\x95\x9B", b"\xF0\x9F\x97\xBB", b"\xF0\x9F\x97\xBC", b"\xF0\x9F\x97\xBD", b"\xF0\x9F\x97\xBE", b"\xF0\x9F\x97\xBF", b"\xF0\x9F\x98\x80", b"\xF0\x9F\x98\x87", b"\xF0\x9F\x98\x88", b"\xF0\x9F\x98\x8E", b"\xF0\x9F\x98\x90", b"\xF0\x9F\x98\x91", b"\xF0\x9F\x98\x95", b"\xF0\x9F\x98\x97", b"\xF0\x9F\x98\x99", b"\xF0\x9F\x98\x9B", b"\xF0\x9F\x98\x9F", b"\xF0\x9F\x98\xA6", b"\xF0\x9F\x98\xA7", b"\xF0\x9F\x98\xAC", b"\xF0\x9F\x98\xAE", b"\xF0\x9F\x98\xAF", b"\xF0\x9F\x98\xB4", b"\xF0\x9F\x98\xB6", b"\xF0\x9F\x9A\x81", b"\xF0\x9F\x9A\x82", b"\xF0\x9F\x9A\x86", b"\xF0\x9F\x9A\x88", b"\xF0\x9F\x9A\x8A", b"\xF0\x9F\x9A\x8D", b"\xF0\x9F\x9A\x8E", b"\xF0\x9F\x9A\x90", b"\xF0\x9F\x9A\x94", b"\xF0\x9F\x9A\x96", b"\xF0\x9F\x9A\x98", b"\xF0\x9F\x9A\x9B", b"\xF0\x9F\x9A\x9C", b"\xF0\x9F\x9A\x9D", b"\xF0\x9F\x9A\x9E", b"\xF0\x9F\x9A\x9F", b"\xF0\x9F\x9A\xA0", b"\xF0\x9F\x9A\xA1", b"\xF0\x9F\x9A\xA3", b"\xF0\x9F\x9A\xA6", b"\xF0\x9F\x9A\xAE", b"\xF0\x9F\x9A\xAF", b"\xF0\x9F\x9A\xB0", b"\xF0\x9F\x9A\xB1", b"\xF0\x9F\x9A\xB3", b"\xF0\x9F\x9A\xB4", b"\xF0\x9F\x9A\xB5", b"\xF0\x9F\x9A\xB7", b"\xF0\x9F\x9A\xB8", b"\xF0\x9F\x9A\xBF", b"\xF0\x9F\x9B\x81", b"\xF0\x9F\x9B\x82", b"\xF0\x9F\x9B\x83", b"\xF0\x9F\x9B\x84", b"\xF0\x9F\x9B\x85", b"\xF0\x9F\x8C\x8D", b"\xF0\x9F\x8C\x8E", b"\xF0\x9F\x8C\x90", b"\xF0\x9F\x8C\x92", b"\xF0\x9F\x8C\x96", b"\xF0\x9F\x8C\x97", b"\xF0\x9F\x8C\x98", b"\xF0\x9F\x8C\x9A", b"\xF0\x9F\x8C\x9C", b"\xF0\x9F\x8C\x9D", b"\xF0\x9F\x8C\x9E", b"\xF0\x9F\x8C\xB2", b"\xF0\x9F\x8C\xB3", b"\xF0\x9F\x8D\x8B", b"\xF0\x9F\x8D\x90", b"\xF0\x9F\x8D\xBC", b"\xF0\x9F\x8F\x87", b"\xF0\x9F\x8F\x89", b"\xF0\x9F\x8F\xA4", b"\xF0\x9F\x90\x80", b"\xF0\x9F\x90\x81", b"\xF0\x9F\x90\x82", b"\xF0\x9F\x90\x83", b"\xF0\x9F\x90\x84", b"\xF0\x9F\x90\x85", b"\xF0\x9F\x90\x86", b"\xF0\x9F\x90\x87", b"\xF0\x9F\x90\x88", b"\xF0\x9F\x90\x89", b"\xF0\x9F\x90\x8A", b"\xF0\x9F\x90\x8B", b"\xF0\x9F\x90\x8F", b"\xF0\x9F\x90\x90", b"\xF0\x9F\x90\x93", b"\xF0\x9F\x90\x95", b"\xF0\x9F\x90\x96", b"\xF0\x9F\x90\xAA", b"\xF0\x9F\x91\xA5", b"\xF0\x9F\x91\xAC", b"\xF0\x9F\x91\xAD", b"\xF0\x9F\x92\xAD", b"\xF0\x9F\x92\xB6", b"\xF0\x9F\x92\xB7", b"\xF0\x9F\x93\xAC", b"\xF0\x9F\x93\xAD", b"\xF0\x9F\x93\xAF", b"\xF0\x9F\x93\xB5", b"\xF0\x9F\x94\x80", b"\xF0\x9F\x94\x81", b"\xF0\x9F\x94\x82", b"\xF0\x9F\x94\x84", b"\xF0\x9F\x94\x85", b"\xF0\x9F\x94\x86", b"\xF0\x9F\x94\x87", b"\xF0\x9F\x94\x89", b"\xF0\x9F\x94\x95", b"\xF0\x9F\x94\xAC", b"\xF0\x9F\x94\xAD", b"\xF0\x9F\x95\x9C", b"\xF0\x9F\x95\x9D", b"\xF0\x9F\x95\x9E", b"\xF0\x9F\x95\x9F", b"\xF0\x9F\x95\xA0", b"\xF0\x9F\x95\xA1", b"\xF0\x9F\x95\xA2", b"\xF0\x9F\x95\xA3", b"\xF0\x9F\x95\xA4", b"\xF0\x9F\x95\xA5", b"\xF0\x9F\x95\xA6", b"\xF0\x9F\x95\xA7", ]
smile_dict = [b'\xf0\x9f\x98\x81', b'\xf0\x9f\x98\x82', b'\xf0\x9f\x98\x83', b'\xf0\x9f\x98\x84', b'\xf0\x9f\x98\x85', b'\xf0\x9f\x98\x86', b'\xf0\x9f\x98\x89', b'\xf0\x9f\x98\x8a', b'\xf0\x9f\x98\x8b', b'\xf0\x9f\x98\x8c', b'\xf0\x9f\x98\x8d', b'\xf0\x9f\x98\x8f', b'\xf0\x9f\x98\x92', b'\xf0\x9f\x98\x93', b'\xf0\x9f\x98\x94', b'\xf0\x9f\x98\x96', b'\xf0\x9f\x98\x98', b'\xf0\x9f\x98\x9a', b'\xf0\x9f\x98\x9c', b'\xf0\x9f\x98\x9d', b'\xf0\x9f\x98\x9e', b'\xf0\x9f\x98\xa0', b'\xf0\x9f\x98\xa1', b'\xf0\x9f\x98\xa2', b'\xf0\x9f\x98\xa3', b'\xf0\x9f\x98\xa4', b'\xf0\x9f\x98\xa5', b'\xf0\x9f\x98\xa8', b'\xf0\x9f\x98\xa9', b'\xf0\x9f\x98\xaa', b'\xf0\x9f\x98\xab', b'\xf0\x9f\x98\xad', b'\xf0\x9f\x98\xb0', b'\xf0\x9f\x98\xb1', b'\xf0\x9f\x98\xb2', b'\xf0\x9f\x98\xb3', b'\xf0\x9f\x98\xb5', b'\xf0\x9f\x98\xb7', b'\xf0\x9f\x98\xb8', b'\xf0\x9f\x98\xb9', b'\xf0\x9f\x98\xba', b'\xf0\x9f\x98\xbb', b'\xf0\x9f\x98\xbc', b'\xf0\x9f\x98\xbd', b'\xf0\x9f\x98\xbe', b'\xf0\x9f\x98\xbf', b'\xf0\x9f\x99\x80', b'\xf0\x9f\x99\x85', b'\xf0\x9f\x99\x86', b'\xf0\x9f\x99\x87', b'\xf0\x9f\x99\x88', b'\xf0\x9f\x99\x89', b'\xf0\x9f\x99\x8a', b'\xf0\x9f\x99\x8b', b'\xf0\x9f\x99\x8c', b'\xf0\x9f\x99\x8d', b'\xf0\x9f\x99\x8e', b'\xf0\x9f\x99\x8f', b'\xe2\x9c\x82', b'\xe2\x9c\x85', b'\xe2\x9c\x88', b'\xe2\x9c\x89', b'\xe2\x9c\x8a', b'\xe2\x9c\x8b', b'\xe2\x9c\x8c', b'\xe2\x9c\x8f', b'\xe2\x9c\x92', b'\xe2\x9c\x94', b'\xe2\x9c\x96', b'\xe2\x9c\xa8', b'\xe2\x9c\xb3', b'\xe2\x9c\xb4', b'\xe2\x9d\x84', b'\xe2\x9d\x87', b'\xe2\x9d\x8c', b'\xe2\x9d\x8e', b'\xe2\x9d\x93', b'\xe2\x9d\x94', b'\xe2\x9d\x95', b'\xe2\x9d\x97', b'\xe2\x9d\xa4', b'\xe2\x9e\x95', b'\xe2\x9e\x96', b'\xe2\x9e\x97', b'\xe2\x9e\xa1', b'\xe2\x9e\xb0', b'\xf0\x9f\x9a\x80', b'\xf0\x9f\x9a\x83', b'\xf0\x9f\x9a\x84', b'\xf0\x9f\x9a\x85', b'\xf0\x9f\x9a\x87', b'\xf0\x9f\x9a\x89', b'\xf0\x9f\x9a\x8c', b'\xf0\x9f\x9a\x8f', b'\xf0\x9f\x9a\x91', b'\xf0\x9f\x9a\x92', b'\xf0\x9f\x9a\x93', b'\xf0\x9f\x9a\x95', b'\xf0\x9f\x9a\x97', b'\xf0\x9f\x9a\x99', b'\xf0\x9f\x9a\x9a', b'\xf0\x9f\x9a\xa2', b'\xf0\x9f\x9a\xa4', b'\xf0\x9f\x9a\xa5', b'\xf0\x9f\x9a\xa7', b'\xf0\x9f\x9a\xa8', b'\xf0\x9f\x9a\xa9', b'\xf0\x9f\x9a\xaa', b'\xf0\x9f\x9a\xab', b'\xf0\x9f\x9a\xac', b'\xf0\x9f\x9a\xad', b'\xf0\x9f\x9a\xb2', b'\xf0\x9f\x9a\xb6', b'\xf0\x9f\x9a\xb9', b'\xf0\x9f\x9a\xba', b'\xf0\x9f\x9a\xbb', b'\xf0\x9f\x9a\xbc', b'\xf0\x9f\x9a\xbd', b'\xf0\x9f\x9a\xbe', b'\xf0\x9f\x9b\x80', b'\xe2\x93\x82', b'\xf0\x9f\x85\xb0', b'\xf0\x9f\x85\xb1', b'\xf0\x9f\x85\xbe', b'\xf0\x9f\x85\xbf', b'\xf0\x9f\x86\x8e', b'\xf0\x9f\x86\x91', b'\xf0\x9f\x86\x92', b'\xf0\x9f\x86\x93', b'\xf0\x9f\x86\x94', b'\xf0\x9f\x86\x95', b'\xf0\x9f\x86\x96', b'\xf0\x9f\x86\x97', b'\xf0\x9f\x86\x98', b'\xf0\x9f\x86\x99', b'\xf0\x9f\x86\x9a', b'\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa', b'\xf0\x9f\x87\xac\xf0\x9f\x87\xa7', b'\xf0\x9f\x87\xa8\xf0\x9f\x87\xb3', b'\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5', b'\xf0\x9f\x87\xab\xf0\x9f\x87\xb7', b'\xf0\x9f\x87\xb0\xf0\x9f\x87\xb7', b'\xf0\x9f\x87\xaa\xf0\x9f\x87\xb8', b'\xf0\x9f\x87\xae\xf0\x9f\x87\xb9', b'\xf0\x9f\x87\xb7\xf0\x9f\x87\xba', b'\xf0\x9f\x87\xba\xf0\x9f\x87\xb8', b'\xf0\x9f\x88\x81', b'\xf0\x9f\x88\x82', b'\xf0\x9f\x88\x9a', b'\xf0\x9f\x88\xaf', b'\xf0\x9f\x88\xb2', b'\xf0\x9f\x88\xb3', b'\xf0\x9f\x88\xb4', b'\xf0\x9f\x88\xb5', b'\xf0\x9f\x88\xb6', b'\xf0\x9f\x88\xb7', b'\xf0\x9f\x88\xb8', b'\xf0\x9f\x88\xb9', b'\xf0\x9f\x88\xba', b'\xf0\x9f\x89\x90', b'\xf0\x9f\x89\x91', b'\xc2\xa9', b'\xc2\xae', b'\xe2\x80\xbc', b'\xe2\x81\x89', b'#\xe2\x83\xa3', b'8\xe2\x83\xa3', b'9\xe2\x83\xa3', b'7\xe2\x83\xa3', b'0\xe2\x83\xa3', b'6\xe2\x83\xa3', b'5\xe2\x83\xa3', b'4\xe2\x83\xa3', b'3\xe2\x83\xa3', b'2\xe2\x83\xa3', b'1\xe2\x83\xa3', b'\xe2\x84\xa2', b'\xe2\x84\xb9', b'\xe2\x86\x94', b'\xe2\x86\x95', b'\xe2\x86\x96', b'\xe2\x86\x97', b'\xe2\x86\x98', b'\xe2\x86\x99', b'\xe2\x86\xa9', b'\xe2\x86\xaa', b'\xe2\x8c\x9a', b'\xe2\x8c\x9b', b'\xe2\x8f\xa9', b'\xe2\x8f\xaa', b'\xe2\x8f\xab', b'\xe2\x8f\xac', b'\xe2\x8f\xb0', b'\xe2\x8f\xb3', b'\xe2\x96\xaa', b'\xe2\x96\xab', b'\xe2\x96\xb6', b'\xe2\x97\x80', b'\xe2\x97\xbb', b'\xe2\x97\xbc', b'\xe2\x97\xbd', b'\xe2\x97\xbe', b'\xe2\x98\x80', b'\xe2\x98\x81', b'\xe2\x98\x8e', b'\xe2\x98\x91', b'\xe2\x98\x94', b'\xe2\x98\x95', b'\xe2\x98\x9d', b'\xe2\x98\xba', b'\xe2\x99\x88', b'\xe2\x99\x89', b'\xe2\x99\x8a', b'\xe2\x99\x8b', b'\xe2\x99\x8c', b'\xe2\x99\x8d', b'\xe2\x99\x8e', b'\xe2\x99\x8f', b'\xe2\x99\x90', b'\xe2\x99\x91', b'\xe2\x99\x92', b'\xe2\x99\x93', b'\xe2\x99\xa0', b'\xe2\x99\xa3', b'\xe2\x99\xa5', b'\xe2\x99\xa6', b'\xe2\x99\xa8', b'\xe2\x99\xbb', b'\xe2\x99\xbf', b'\xe2\x9a\x93', b'\xe2\x9a\xa0', b'\xe2\x9a\xa1', b'\xe2\x9a\xaa', b'\xe2\x9a\xab', b'\xe2\x9a\xbd', b'\xe2\x9a\xbe', b'\xe2\x9b\x84', b'\xe2\x9b\x85', b'\xe2\x9b\x8e', b'\xe2\x9b\x94', b'\xe2\x9b\xaa', b'\xe2\x9b\xb2', b'\xe2\x9b\xb3', b'\xe2\x9b\xb5', b'\xe2\x9b\xba', b'\xe2\x9b\xbd', b'\xe2\xa4\xb4', b'\xe2\xa4\xb5', b'\xe2\xac\x85', b'\xe2\xac\x86', b'\xe2\xac\x87', b'\xe2\xac\x9b', b'\xe2\xac\x9c', b'\xe2\xad\x90', b'\xe2\xad\x95', b'\xe3\x80\xb0', b'\xe3\x80\xbd', b'\xe3\x8a\x97', b'\xe3\x8a\x99', b'\xf0\x9f\x80\x84', b'\xf0\x9f\x83\x8f', b'\xf0\x9f\x8c\x80', b'\xf0\x9f\x8c\x81', b'\xf0\x9f\x8c\x82', b'\xf0\x9f\x8c\x83', b'\xf0\x9f\x8c\x84', b'\xf0\x9f\x8c\x85', b'\xf0\x9f\x8c\x86', b'\xf0\x9f\x8c\x87', b'\xf0\x9f\x8c\x88', b'\xf0\x9f\x8c\x89', b'\xf0\x9f\x8c\x8a', b'\xf0\x9f\x8c\x8b', b'\xf0\x9f\x8c\x8c', b'\xf0\x9f\x8c\x8f', b'\xf0\x9f\x8c\x91', b'\xf0\x9f\x8c\x93', b'\xf0\x9f\x8c\x94', b'\xf0\x9f\x8c\x95', b'\xf0\x9f\x8c\x99', b'\xf0\x9f\x8c\x9b', b'\xf0\x9f\x8c\x9f', b'\xf0\x9f\x8c\xa0', b'\xf0\x9f\x8c\xb0', b'\xf0\x9f\x8c\xb1', b'\xf0\x9f\x8c\xb4', b'\xf0\x9f\x8c\xb5', b'\xf0\x9f\x8c\xb7', b'\xf0\x9f\x8c\xb8', b'\xf0\x9f\x8c\xb9', b'\xf0\x9f\x8c\xba', b'\xf0\x9f\x8c\xbb', b'\xf0\x9f\x8c\xbc', b'\xf0\x9f\x8c\xbd', b'\xf0\x9f\x8c\xbe', b'\xf0\x9f\x8c\xbf', b'\xf0\x9f\x8d\x80', b'\xf0\x9f\x8d\x81', b'\xf0\x9f\x8d\x82', b'\xf0\x9f\x8d\x83', b'\xf0\x9f\x8d\x84', b'\xf0\x9f\x8d\x85', b'\xf0\x9f\x8d\x86', b'\xf0\x9f\x8d\x87', b'\xf0\x9f\x8d\x88', b'\xf0\x9f\x8d\x89', b'\xf0\x9f\x8d\x8a', b'\xf0\x9f\x8d\x8c', b'\xf0\x9f\x8d\x8d', b'\xf0\x9f\x8d\x8e', b'\xf0\x9f\x8d\x8f', b'\xf0\x9f\x8d\x91', b'\xf0\x9f\x8d\x92', b'\xf0\x9f\x8d\x93', b'\xf0\x9f\x8d\x94', b'\xf0\x9f\x8d\x95', b'\xf0\x9f\x8d\x96', b'\xf0\x9f\x8d\x97', b'\xf0\x9f\x8d\x98', b'\xf0\x9f\x8d\x99', b'\xf0\x9f\x8d\x9a', b'\xf0\x9f\x8d\x9b', b'\xf0\x9f\x8d\x9c', b'\xf0\x9f\x8d\x9d', b'\xf0\x9f\x8d\x9e', b'\xf0\x9f\x8d\x9f', b'\xf0\x9f\x8d\xa0', b'\xf0\x9f\x8d\xa1', b'\xf0\x9f\x8d\xa2', b'\xf0\x9f\x8d\xa3', b'\xf0\x9f\x8d\xa4', b'\xf0\x9f\x8d\xa5', b'\xf0\x9f\x8d\xa6', b'\xf0\x9f\x8d\xa7', b'\xf0\x9f\x8d\xa8', b'\xf0\x9f\x8d\xa9', b'\xf0\x9f\x8d\xaa', b'\xf0\x9f\x8d\xab', b'\xf0\x9f\x8d\xac', b'\xf0\x9f\x8d\xad', b'\xf0\x9f\x8d\xae', b'\xf0\x9f\x8d\xaf', b'\xf0\x9f\x8d\xb0', b'\xf0\x9f\x8d\xb1', b'\xf0\x9f\x8d\xb2', b'\xf0\x9f\x8d\xb3', b'\xf0\x9f\x8d\xb4', b'\xf0\x9f\x8d\xb5', b'\xf0\x9f\x8d\xb6', b'\xf0\x9f\x8d\xb7', b'\xf0\x9f\x8d\xb8', b'\xf0\x9f\x8d\xb9', b'\xf0\x9f\x8d\xba', b'\xf0\x9f\x8d\xbb', b'\xf0\x9f\x8e\x80', b'\xf0\x9f\x8e\x81', b'\xf0\x9f\x8e\x82', b'\xf0\x9f\x8e\x83', b'\xf0\x9f\x8e\x84', b'\xf0\x9f\x8e\x85', b'\xf0\x9f\x8e\x86', b'\xf0\x9f\x8e\x87', b'\xf0\x9f\x8e\x88', b'\xf0\x9f\x8e\x89', b'\xf0\x9f\x8e\x8a', b'\xf0\x9f\x8e\x8b', b'\xf0\x9f\x8e\x8c', b'\xf0\x9f\x8e\x8d', b'\xf0\x9f\x8e\x8e', b'\xf0\x9f\x8e\x8f', b'\xf0\x9f\x8e\x90', b'\xf0\x9f\x8e\x91', b'\xf0\x9f\x8e\x92', b'\xf0\x9f\x8e\x93', b'\xf0\x9f\x8e\xa0', b'\xf0\x9f\x8e\xa1', b'\xf0\x9f\x8e\xa2', b'\xf0\x9f\x8e\xa3', b'\xf0\x9f\x8e\xa4', b'\xf0\x9f\x8e\xa5', b'\xf0\x9f\x8e\xa6', b'\xf0\x9f\x8e\xa7', b'\xf0\x9f\x8e\xa8', b'\xf0\x9f\x8e\xa9', b'\xf0\x9f\x8e\xaa', b'\xf0\x9f\x8e\xab', b'\xf0\x9f\x8e\xac', b'\xf0\x9f\x8e\xad', b'\xf0\x9f\x8e\xae', b'\xf0\x9f\x8e\xaf', b'\xf0\x9f\x8e\xb0', b'\xf0\x9f\x8e\xb1', b'\xf0\x9f\x8e\xb2', b'\xf0\x9f\x8e\xb3', b'\xf0\x9f\x8e\xb4', b'\xf0\x9f\x8e\xb5', b'\xf0\x9f\x8e\xb6', b'\xf0\x9f\x8e\xb7', b'\xf0\x9f\x8e\xb8', b'\xf0\x9f\x8e\xb9', b'\xf0\x9f\x8e\xba', b'\xf0\x9f\x8e\xbb', b'\xf0\x9f\x8e\xbc', b'\xf0\x9f\x8e\xbd', b'\xf0\x9f\x8e\xbe', b'\xf0\x9f\x8e\xbf', b'\xf0\x9f\x8f\x80', b'\xf0\x9f\x8f\x81', b'\xf0\x9f\x8f\x82', b'\xf0\x9f\x8f\x83', b'\xf0\x9f\x8f\x84', b'\xf0\x9f\x8f\x86', b'\xf0\x9f\x8f\x88', b'\xf0\x9f\x8f\x8a', b'\xf0\x9f\x8f\xa0', b'\xf0\x9f\x8f\xa1', b'\xf0\x9f\x8f\xa2', b'\xf0\x9f\x8f\xa3', b'\xf0\x9f\x8f\xa5', b'\xf0\x9f\x8f\xa6', b'\xf0\x9f\x8f\xa7', b'\xf0\x9f\x8f\xa8', b'\xf0\x9f\x8f\xa9', b'\xf0\x9f\x8f\xaa', b'\xf0\x9f\x8f\xab', b'\xf0\x9f\x8f\xac', b'\xf0\x9f\x8f\xad', b'\xf0\x9f\x8f\xae', b'\xf0\x9f\x8f\xaf', b'\xf0\x9f\x8f\xb0', b'\xf0\x9f\x90\x8c', b'\xf0\x9f\x90\x8d', b'\xf0\x9f\x90\x8e', b'\xf0\x9f\x90\x91', b'\xf0\x9f\x90\x92', b'\xf0\x9f\x90\x94', b'\xf0\x9f\x90\x97', b'\xf0\x9f\x90\x98', b'\xf0\x9f\x90\x99', b'\xf0\x9f\x90\x9a', b'\xf0\x9f\x90\x9b', b'\xf0\x9f\x90\x9c', b'\xf0\x9f\x90\x9d', b'\xf0\x9f\x90\x9e', b'\xf0\x9f\x90\x9f', b'\xf0\x9f\x90\xa0', b'\xf0\x9f\x90\xa1', b'\xf0\x9f\x90\xa2', b'\xf0\x9f\x90\xa3', b'\xf0\x9f\x90\xa4', b'\xf0\x9f\x90\xa5', b'\xf0\x9f\x90\xa6', b'\xf0\x9f\x90\xa7', b'\xf0\x9f\x90\xa8', b'\xf0\x9f\x90\xa9', b'\xf0\x9f\x90\xab', b'\xf0\x9f\x90\xac', b'\xf0\x9f\x90\xad', b'\xf0\x9f\x90\xae', b'\xf0\x9f\x90\xaf', b'\xf0\x9f\x90\xb0', b'\xf0\x9f\x90\xb1', b'\xf0\x9f\x90\xb2', b'\xf0\x9f\x90\xb3', b'\xf0\x9f\x90\xb4', b'\xf0\x9f\x90\xb5', b'\xf0\x9f\x90\xb6', b'\xf0\x9f\x90\xb7', b'\xf0\x9f\x90\xb8', b'\xf0\x9f\x90\xb9', b'\xf0\x9f\x90\xba', b'\xf0\x9f\x90\xbb', b'\xf0\x9f\x90\xbc', b'\xf0\x9f\x90\xbd', b'\xf0\x9f\x90\xbe', b'\xf0\x9f\x91\x80', b'\xf0\x9f\x91\x82', b'\xf0\x9f\x91\x83', b'\xf0\x9f\x91\x84', b'\xf0\x9f\x91\x85', b'\xf0\x9f\x91\x86', b'\xf0\x9f\x91\x87', b'\xf0\x9f\x91\x88', b'\xf0\x9f\x91\x89', b'\xf0\x9f\x91\x8a', b'\xf0\x9f\x91\x8b', b'\xf0\x9f\x91\x8c', b'\xf0\x9f\x91\x8d', b'\xf0\x9f\x91\x8e', b'\xf0\x9f\x91\x8f', b'\xf0\x9f\x91\x90', b'\xf0\x9f\x91\x91', b'\xf0\x9f\x91\x92', b'\xf0\x9f\x91\x93', b'\xf0\x9f\x91\x94', b'\xf0\x9f\x91\x95', b'\xf0\x9f\x91\x96', b'\xf0\x9f\x91\x97', b'\xf0\x9f\x91\x98', b'\xf0\x9f\x91\x99', b'\xf0\x9f\x91\x9a', b'\xf0\x9f\x91\x9b', b'\xf0\x9f\x91\x9c', b'\xf0\x9f\x91\x9d', b'\xf0\x9f\x91\x9e', b'\xf0\x9f\x91\x9f', b'\xf0\x9f\x91\xa0', b'\xf0\x9f\x91\xa1', b'\xf0\x9f\x91\xa2', b'\xf0\x9f\x91\xa3', b'\xf0\x9f\x91\xa4', b'\xf0\x9f\x91\xa6', b'\xf0\x9f\x91\xa7', b'\xf0\x9f\x91\xa8', b'\xf0\x9f\x91\xa9', b'\xf0\x9f\x91\xaa', b'\xf0\x9f\x91\xab', b'\xf0\x9f\x91\xae', b'\xf0\x9f\x91\xaf', b'\xf0\x9f\x91\xb0', b'\xf0\x9f\x91\xb1', b'\xf0\x9f\x91\xb2', b'\xf0\x9f\x91\xb3', b'\xf0\x9f\x91\xb4', b'\xf0\x9f\x91\xb5', b'\xf0\x9f\x91\xb6', b'\xf0\x9f\x91\xb7', b'\xf0\x9f\x91\xb8', b'\xf0\x9f\x91\xb9', b'\xf0\x9f\x91\xba', b'\xf0\x9f\x91\xbb', b'\xf0\x9f\x91\xbc', b'\xf0\x9f\x91\xbd', b'\xf0\x9f\x91\xbe', b'\xf0\x9f\x91\xbf', b'\xf0\x9f\x92\x80', b'\xf0\x9f\x92\x81', b'\xf0\x9f\x92\x82', b'\xf0\x9f\x92\x83', b'\xf0\x9f\x92\x84', b'\xf0\x9f\x92\x85', b'\xf0\x9f\x92\x86', b'\xf0\x9f\x92\x87', b'\xf0\x9f\x92\x88', b'\xf0\x9f\x92\x89', b'\xf0\x9f\x92\x8a', b'\xf0\x9f\x92\x8b', b'\xf0\x9f\x92\x8c', b'\xf0\x9f\x92\x8d', b'\xf0\x9f\x92\x8e', b'\xf0\x9f\x92\x8f', b'\xf0\x9f\x92\x90', b'\xf0\x9f\x92\x91', b'\xf0\x9f\x92\x92', b'\xf0\x9f\x92\x93', b'\xf0\x9f\x92\x94', b'\xf0\x9f\x92\x95', b'\xf0\x9f\x92\x96', b'\xf0\x9f\x92\x97', b'\xf0\x9f\x92\x98', b'\xf0\x9f\x92\x99', b'\xf0\x9f\x92\x9a', b'\xf0\x9f\x92\x9b', b'\xf0\x9f\x92\x9c', b'\xf0\x9f\x92\x9d', b'\xf0\x9f\x92\x9e', b'\xf0\x9f\x92\x9f', b'\xf0\x9f\x92\xa0', b'\xf0\x9f\x92\xa1', b'\xf0\x9f\x92\xa2', b'\xf0\x9f\x92\xa3', b'\xf0\x9f\x92\xa4', b'\xf0\x9f\x92\xa5', b'\xf0\x9f\x92\xa6', b'\xf0\x9f\x92\xa7', b'\xf0\x9f\x92\xa8', b'\xf0\x9f\x92\xa9', b'\xf0\x9f\x92\xaa', b'\xf0\x9f\x92\xab', b'\xf0\x9f\x92\xac', b'\xf0\x9f\x92\xae', b'\xf0\x9f\x92\xaf', b'\xf0\x9f\x92\xb0', b'\xf0\x9f\x92\xb1', b'\xf0\x9f\x92\xb2', b'\xf0\x9f\x92\xb3', b'\xf0\x9f\x92\xb4', b'\xf0\x9f\x92\xb5', b'\xf0\x9f\x92\xb8', b'\xf0\x9f\x92\xb9', b'\xf0\x9f\x92\xba', b'\xf0\x9f\x92\xbb', b'\xf0\x9f\x92\xbc', b'\xf0\x9f\x92\xbd', b'\xf0\x9f\x92\xbe', b'\xf0\x9f\x92\xbf', b'\xf0\x9f\x93\x80', b'\xf0\x9f\x93\x81', b'\xf0\x9f\x93\x82', b'\xf0\x9f\x93\x83', b'\xf0\x9f\x93\x84', b'\xf0\x9f\x93\x85', b'\xf0\x9f\x93\x86', b'\xf0\x9f\x93\x87', b'\xf0\x9f\x93\x88', b'\xf0\x9f\x93\x89', b'\xf0\x9f\x93\x8a', b'\xf0\x9f\x93\x8b', b'\xf0\x9f\x93\x8c', b'\xf0\x9f\x93\x8d', b'\xf0\x9f\x93\x8e', b'\xf0\x9f\x93\x8f', b'\xf0\x9f\x93\x90', b'\xf0\x9f\x93\x91', b'\xf0\x9f\x93\x92', b'\xf0\x9f\x93\x93', b'\xf0\x9f\x93\x94', b'\xf0\x9f\x93\x95', b'\xf0\x9f\x93\x96', b'\xf0\x9f\x93\x97', b'\xf0\x9f\x93\x98', b'\xf0\x9f\x93\x99', b'\xf0\x9f\x93\x9a', b'\xf0\x9f\x93\x9b', b'\xf0\x9f\x93\x9c', b'\xf0\x9f\x93\x9d', b'\xf0\x9f\x93\x9e', b'\xf0\x9f\x93\x9f', b'\xf0\x9f\x93\xa0', b'\xf0\x9f\x93\xa1', b'\xf0\x9f\x93\xa2', b'\xf0\x9f\x93\xa3', b'\xf0\x9f\x93\xa4', b'\xf0\x9f\x93\xa5', b'\xf0\x9f\x93\xa6', b'\xf0\x9f\x93\xa7', b'\xf0\x9f\x93\xa8', b'\xf0\x9f\x93\xa9', b'\xf0\x9f\x93\xaa', b'\xf0\x9f\x93\xab', b'\xf0\x9f\x93\xae', b'\xf0\x9f\x93\xb0', b'\xf0\x9f\x93\xb1', b'\xf0\x9f\x93\xb2', b'\xf0\x9f\x93\xb3', b'\xf0\x9f\x93\xb4', b'\xf0\x9f\x93\xb6', b'\xf0\x9f\x93\xb7', b'\xf0\x9f\x93\xb9', b'\xf0\x9f\x93\xba', b'\xf0\x9f\x93\xbb', b'\xf0\x9f\x93\xbc', b'\xf0\x9f\x94\x83', b'\xf0\x9f\x94\x8a', b'\xf0\x9f\x94\x8b', b'\xf0\x9f\x94\x8c', b'\xf0\x9f\x94\x8d', b'\xf0\x9f\x94\x8e', b'\xf0\x9f\x94\x8f', b'\xf0\x9f\x94\x90', b'\xf0\x9f\x94\x91', b'\xf0\x9f\x94\x92', b'\xf0\x9f\x94\x93', b'\xf0\x9f\x94\x94', b'\xf0\x9f\x94\x96', b'\xf0\x9f\x94\x97', b'\xf0\x9f\x94\x98', b'\xf0\x9f\x94\x99', b'\xf0\x9f\x94\x9a', b'\xf0\x9f\x94\x9b', b'\xf0\x9f\x94\x9c', b'\xf0\x9f\x94\x9d', b'\xf0\x9f\x94\x9e', b'\xf0\x9f\x94\x9f', b'\xf0\x9f\x94\xa0', b'\xf0\x9f\x94\xa1', b'\xf0\x9f\x94\xa2', b'\xf0\x9f\x94\xa3', b'\xf0\x9f\x94\xa4', b'\xf0\x9f\x94\xa5', b'\xf0\x9f\x94\xa6', b'\xf0\x9f\x94\xa7', b'\xf0\x9f\x94\xa8', b'\xf0\x9f\x94\xa9', b'\xf0\x9f\x94\xaa', b'\xf0\x9f\x94\xab', b'\xf0\x9f\x94\xae', b'\xf0\x9f\x94\xaf', b'\xf0\x9f\x94\xb0', b'\xf0\x9f\x94\xb1', b'\xf0\x9f\x94\xb2', b'\xf0\x9f\x94\xb3', b'\xf0\x9f\x94\xb4', b'\xf0\x9f\x94\xb5', b'\xf0\x9f\x94\xb6', b'\xf0\x9f\x94\xb7', b'\xf0\x9f\x94\xb8', b'\xf0\x9f\x94\xb9', b'\xf0\x9f\x94\xba', b'\xf0\x9f\x94\xbb', b'\xf0\x9f\x94\xbc', b'\xf0\x9f\x94\xbd', b'\xf0\x9f\x95\x90', b'\xf0\x9f\x95\x91', b'\xf0\x9f\x95\x92', b'\xf0\x9f\x95\x93', b'\xf0\x9f\x95\x94', b'\xf0\x9f\x95\x95', b'\xf0\x9f\x95\x96', b'\xf0\x9f\x95\x97', b'\xf0\x9f\x95\x98', b'\xf0\x9f\x95\x99', b'\xf0\x9f\x95\x9a', b'\xf0\x9f\x95\x9b', b'\xf0\x9f\x97\xbb', b'\xf0\x9f\x97\xbc', b'\xf0\x9f\x97\xbd', b'\xf0\x9f\x97\xbe', b'\xf0\x9f\x97\xbf', b'\xf0\x9f\x98\x80', b'\xf0\x9f\x98\x87', b'\xf0\x9f\x98\x88', b'\xf0\x9f\x98\x8e', b'\xf0\x9f\x98\x90', b'\xf0\x9f\x98\x91', b'\xf0\x9f\x98\x95', b'\xf0\x9f\x98\x97', b'\xf0\x9f\x98\x99', b'\xf0\x9f\x98\x9b', b'\xf0\x9f\x98\x9f', b'\xf0\x9f\x98\xa6', b'\xf0\x9f\x98\xa7', b'\xf0\x9f\x98\xac', b'\xf0\x9f\x98\xae', b'\xf0\x9f\x98\xaf', b'\xf0\x9f\x98\xb4', b'\xf0\x9f\x98\xb6', b'\xf0\x9f\x9a\x81', b'\xf0\x9f\x9a\x82', b'\xf0\x9f\x9a\x86', b'\xf0\x9f\x9a\x88', b'\xf0\x9f\x9a\x8a', b'\xf0\x9f\x9a\x8d', b'\xf0\x9f\x9a\x8e', b'\xf0\x9f\x9a\x90', b'\xf0\x9f\x9a\x94', b'\xf0\x9f\x9a\x96', b'\xf0\x9f\x9a\x98', b'\xf0\x9f\x9a\x9b', b'\xf0\x9f\x9a\x9c', b'\xf0\x9f\x9a\x9d', b'\xf0\x9f\x9a\x9e', b'\xf0\x9f\x9a\x9f', b'\xf0\x9f\x9a\xa0', b'\xf0\x9f\x9a\xa1', b'\xf0\x9f\x9a\xa3', b'\xf0\x9f\x9a\xa6', b'\xf0\x9f\x9a\xae', b'\xf0\x9f\x9a\xaf', b'\xf0\x9f\x9a\xb0', b'\xf0\x9f\x9a\xb1', b'\xf0\x9f\x9a\xb3', b'\xf0\x9f\x9a\xb4', b'\xf0\x9f\x9a\xb5', b'\xf0\x9f\x9a\xb7', b'\xf0\x9f\x9a\xb8', b'\xf0\x9f\x9a\xbf', b'\xf0\x9f\x9b\x81', b'\xf0\x9f\x9b\x82', b'\xf0\x9f\x9b\x83', b'\xf0\x9f\x9b\x84', b'\xf0\x9f\x9b\x85', b'\xf0\x9f\x8c\x8d', b'\xf0\x9f\x8c\x8e', b'\xf0\x9f\x8c\x90', b'\xf0\x9f\x8c\x92', b'\xf0\x9f\x8c\x96', b'\xf0\x9f\x8c\x97', b'\xf0\x9f\x8c\x98', b'\xf0\x9f\x8c\x9a', b'\xf0\x9f\x8c\x9c', b'\xf0\x9f\x8c\x9d', b'\xf0\x9f\x8c\x9e', b'\xf0\x9f\x8c\xb2', b'\xf0\x9f\x8c\xb3', b'\xf0\x9f\x8d\x8b', b'\xf0\x9f\x8d\x90', b'\xf0\x9f\x8d\xbc', b'\xf0\x9f\x8f\x87', b'\xf0\x9f\x8f\x89', b'\xf0\x9f\x8f\xa4', b'\xf0\x9f\x90\x80', b'\xf0\x9f\x90\x81', b'\xf0\x9f\x90\x82', b'\xf0\x9f\x90\x83', b'\xf0\x9f\x90\x84', b'\xf0\x9f\x90\x85', b'\xf0\x9f\x90\x86', b'\xf0\x9f\x90\x87', b'\xf0\x9f\x90\x88', b'\xf0\x9f\x90\x89', b'\xf0\x9f\x90\x8a', b'\xf0\x9f\x90\x8b', b'\xf0\x9f\x90\x8f', b'\xf0\x9f\x90\x90', b'\xf0\x9f\x90\x93', b'\xf0\x9f\x90\x95', b'\xf0\x9f\x90\x96', b'\xf0\x9f\x90\xaa', b'\xf0\x9f\x91\xa5', b'\xf0\x9f\x91\xac', b'\xf0\x9f\x91\xad', b'\xf0\x9f\x92\xad', b'\xf0\x9f\x92\xb6', b'\xf0\x9f\x92\xb7', b'\xf0\x9f\x93\xac', b'\xf0\x9f\x93\xad', b'\xf0\x9f\x93\xaf', b'\xf0\x9f\x93\xb5', b'\xf0\x9f\x94\x80', b'\xf0\x9f\x94\x81', b'\xf0\x9f\x94\x82', b'\xf0\x9f\x94\x84', b'\xf0\x9f\x94\x85', b'\xf0\x9f\x94\x86', b'\xf0\x9f\x94\x87', b'\xf0\x9f\x94\x89', b'\xf0\x9f\x94\x95', b'\xf0\x9f\x94\xac', b'\xf0\x9f\x94\xad', b'\xf0\x9f\x95\x9c', b'\xf0\x9f\x95\x9d', b'\xf0\x9f\x95\x9e', b'\xf0\x9f\x95\x9f', b'\xf0\x9f\x95\xa0', b'\xf0\x9f\x95\xa1', b'\xf0\x9f\x95\xa2', b'\xf0\x9f\x95\xa3', b'\xf0\x9f\x95\xa4', b'\xf0\x9f\x95\xa5', b'\xf0\x9f\x95\xa6', b'\xf0\x9f\x95\xa7']
# Code generated by font-to-py.py. # Font: dsm.ttf version = '0.26' def height(): return 21 def max_width(): return 12 def hmap(): return True def reverse(): return False def monospaced(): return False def min_ch(): return 32 def max_ch(): return 126 _font =\ b'\x0c\x00\x00\x00\x7c\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00'\ b'\x0e\x00\x1c\x00\x38\x00\x30\x00\x30\x00\x30\x00\x00\x00\x30\x00'\ b'\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00'\ b'\xcc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x06\x60\x04\x40\x0c\xc0\x0c\xc0\x7f\xf0\x7f\xf0'\ b'\x08\x80\x19\x80\x19\x80\xff\xe0\xff\xe0\x33\x00\x33\x00\x22\x00'\ b'\x22\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x08\x00\x08\x00\x3e\x00\x7f\x00\xe9\x00\xc8\x00\xc8\x00\x68\x00'\ b'\x3e\x00\x0b\x00\x09\x80\x09\x80\x8b\x80\xff\x00\x7e\x00\x08\x00'\ b'\x08\x00\x08\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x78\x00\xcc\x00'\ b'\xcc\x00\xcc\x00\xcc\x00\x78\xc0\x03\x00\x06\x00\x18\x00\x63\xc0'\ b'\x06\x60\x06\x60\x06\x60\x06\x60\x03\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x1f\x00\x3f\x00\x30\x00\x30\x00'\ b'\x30\x00\x18\x00\x18\x00\x7c\x00\x6e\x60\xc6\x60\xc3\x60\xc3\xc0'\ b'\xe1\x80\x7e\xc0\x3c\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x30\x00\x20\x00\x60\x00\x60\x00\x40\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x60\x00\x60\x00\x60\x00'\ b'\x20\x00\x30\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\x40\x00'\ b'\x60\x00\x60\x00\x60\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00'\ b'\x30\x00\x30\x00\x30\x00\x60\x00\x60\x00\x60\x00\x40\x00\xc0\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x08\x00\x08\x00\x88\x80\x6b\x00'\ b'\x1c\x00\x1c\x00\x6b\x00\x88\x80\x08\x00\x08\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x60\x00\x60\x00\x60\x00\x60\x00'\ b'\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\xf8\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\xc0\x01\x80\x01\x80\x03\x00\x03\x00\x06\x00'\ b'\x06\x00\x0c\x00\x0c\x00\x18\x00\x18\x00\x30\x00\x30\x00\x60\x00'\ b'\x60\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x3c\x00\x7f\x00\x63\x00\xe3\x80\xc1\x80\xc1\x80\xcd\x80\xcd\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x63\x00\x7f\x00\x3c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x38\x00\xf8\x00'\ b'\xd8\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x7e\x00\xff\x00\x83\x80\x01\x80'\ b'\x01\x80\x01\x80\x03\x80\x03\x00\x06\x00\x0c\x00\x18\x00\x30\x00'\ b'\x60\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x7e\x00\xff\x00\x83\x80\x01\x80\x01\x80\x03\x80'\ b'\x1f\x00\x1e\x00\x03\x00\x01\x80\x01\x80\x01\x80\x83\x80\xff\x00'\ b'\x7e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x07\x00\x07\x00\x0f\x00\x0b\x00\x1b\x00\x13\x00\x33\x00\x63\x00'\ b'\x63\x00\xc3\x00\xff\xc0\xff\xc0\x03\x00\x03\x00\x03\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x7f\x00\x7f\x00'\ b'\x60\x00\x60\x00\x60\x00\x7e\x00\x7f\x00\x43\x80\x01\x80\x01\x80'\ b'\x01\x80\x01\x80\x83\x00\xff\x00\x7c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x3f\x00\x71\x00\x60\x00'\ b'\xc0\x00\xc0\x00\xde\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\x63\x80\x7f\x00\x3e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xff\x80\xff\x80\x03\x00\x03\x00\x03\x00\x06\x00'\ b'\x06\x00\x06\x00\x0c\x00\x0c\x00\x0c\x00\x18\x00\x18\x00\x18\x00'\ b'\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x3e\x00\x7f\x00\xe3\x80\xc1\x80\xc1\x80\x63\x00\x3e\x00\x7f\x00'\ b'\x63\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x00\x3e\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x3e\x00\x7f\x00'\ b'\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x80\x3d\x80\x01\x80'\ b'\x01\x80\x03\x00\x47\x00\x7e\x00\x3c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x00'\ b'\x60\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x00\x60\x00'\ b'\x60\x00\x60\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x03\xc0\x0f\x00\x3c\x00'\ b'\xe0\x00\xe0\x00\x3c\x00\x0f\x00\x03\xc0\x00\x40\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc0\xff\xc0\x00\x00\x00\x00'\ b'\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x80\x00\xf0\x00\x3c\x00\x0f\x00\x01\xc0\x01\xc0\x0f\x00\x3c\x00'\ b'\xf0\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x7c\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00'\ b'\x0e\x00\x1c\x00\x38\x00\x30\x00\x30\x00\x30\x00\x00\x00\x30\x00'\ b'\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x0f\x00\x31\x80\x60\xc0\x60\xc0\x47\xc0\xc4\xc0\xcc\xc0'\ b'\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xc4\xc0\x67\xc0\x60\x00\x30\x00'\ b'\x38\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00'\ b'\x1e\x00\x1e\x00\x1e\x00\x3f\x00\x33\x00\x33\x00\x33\x00\x73\x80'\ b'\x7f\x80\x7f\x80\x61\x80\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xfe\x00\xff\x00\xc3\x80\xc1\x80'\ b'\xc1\x80\xc3\x80\xff\x00\xff\x00\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc1\xc0\xff\x80\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x0f\x80\x3f\xc0\x70\x40\x60\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x60\x00\x70\x40\x3f\xc0'\ b'\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xfc\x00\xff\x00\xc3\x80\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc1\x80\xc3\x80\xff\x00\xfc\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xff\x80\xff\x80\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x1f\x00\x3f\x80\x70\x80\x60\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc3\xc0\xc3\xc0\xc0\xc0\xc0\xc0\x60\xc0\x70\xc0\x3f\xc0'\ b'\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xff\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x00'\ b'\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x3f\x00\x3f\x00\x03\x00\x03\x00'\ b'\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00'\ b'\x87\x00\xfe\x00\x7c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\xc0\xc1\x80\xc3\x00\xc6\x00\xcc\x00\xd8\x00'\ b'\xf8\x00\xfc\x00\xec\x00\xc6\x00\xc7\x00\xc3\x00\xc1\x80\xc1\xc0'\ b'\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe1\xc0\xe1\xc0'\ b'\xe1\xc0\xf3\xc0\xd2\xc0\xd2\xc0\xde\xc0\xcc\xc0\xcc\xc0\xcc\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xe0\xc0\xe0\xc0\xf0\xc0\xf0\xc0'\ b'\xd8\xc0\xd8\xc0\xc8\xc0\xcc\xc0\xc4\xc0\xc6\xc0\xc6\xc0\xc3\xc0'\ b'\xc3\xc0\xc1\xc0\xc1\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x1e\x00\x7f\x80\x61\x80\xe1\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0\x61\x80\x7f\x80'\ b'\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xff\x00\xff\x80\xc1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80'\ b'\xff\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x7f\x80'\ b'\x61\x80\xe1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xe1\xc0\x61\x80\x3f\x00\x1e\x00\x03\x00\x01\x80\x01\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x80\xc1\xc0\xc0\xc0'\ b'\xc0\xc0\xc1\xc0\xff\x80\xff\x00\xc3\x80\xc1\x80\xc1\xc0\xc0\xc0'\ b'\xc0\xe0\xc0\x60\xc0\x70\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x3f\x00\x7f\x80\xe0\x80\xc0\x00\xc0\x00\xe0\x00'\ b'\x7c\x00\x3f\x00\x03\x80\x00\xc0\x00\xc0\x00\xc0\x81\xc0\xff\x80'\ b'\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xff\xf0\xff\xf0\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00'\ b'\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0'\ b'\xc0\xc0\xc0\xc0\xe1\xc0\x7f\x80\x3f\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0\x61\x80\x61\x80'\ b'\x61\x80\x61\x80\x33\x00\x33\x00\x33\x00\x3f\x00\x1e\x00\x1e\x00'\ b'\x1e\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\x30\xc0\x30\xc0\x30\x60\x60\x66\x60\x66\x60'\ b'\x6f\x60\x6f\x60\x69\x60\x69\x60\x39\xc0\x39\xc0\x39\xc0\x30\xc0'\ b'\x30\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xe1\xc0\x61\x80\x73\x80\x33\x00\x1e\x00\x1e\x00\x0c\x00\x0c\x00'\ b'\x1e\x00\x1e\x00\x37\x00\x33\x00\x63\x80\x61\x80\xc1\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe0\x70\x60\x60'\ b'\x30\xc0\x30\xc0\x19\x80\x1f\x80\x0f\x00\x06\x00\x06\x00\x06\x00'\ b'\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\x01\x80\x03\x80'\ b'\x03\x00\x06\x00\x0e\x00\x0c\x00\x1c\x00\x18\x00\x30\x00\x70\x00'\ b'\x60\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\xf0\x00\xf0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xf0\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\x60\x00\x60\x00\x30\x00\x30\x00\x18\x00\x18\x00\x0c\x00'\ b'\x0c\x00\x06\x00\x06\x00\x03\x00\x03\x00\x01\x80\x01\x80\x00\xc0'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xf0\x00\xf0\x00'\ b'\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00'\ b'\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\xf0\x00\xf0\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x0e\x00\x1b\x00\x31\x80\x60\xc0'\ b'\xc0\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\xff\xf0\xff\xf0\x00\x00\x00\x00\x00\x00\x0c\x00\xc0\x00'\ b'\x60\x00\x30\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x3e\x00\x7f\x00\x43\x80\x01\x80\x3f\x80\x7f\x80'\ b'\xe1\x80\xc1\x80\xc3\x80\xff\x80\x3d\x80\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xde\x00\xff\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xe3\x00\xff\x00\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x7f\x00'\ b'\x61\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x61\x00\x7f\x00'\ b'\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x01\x80\x01\x80\x01\x80\x01\x80\x3d\x80\x7f\x80\x63\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x63\x80\x7f\x80\x3d\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x1e\x00\x7f\x00\x63\x80\xc1\x80\xff\x80\xff\x80'\ b'\xc0\x00\xc0\x00\x60\x80\x7f\x80\x1f\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x80\x1f\x80\x18\x00\x18\x00'\ b'\xff\x80\xff\x80\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3d\x80\x7f\x80'\ b'\x63\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x63\x80\x7f\x80'\ b'\x3d\x80\x01\x80\x43\x80\x7f\x00\x3e\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xce\x00\xff\x00\xe3\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00'\ b'\x00\x00\x00\x00\x7c\x00\x7c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00'\ b'\x7c\x00\x7c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xf8\x00\xf0\x00\x00\x00'\ b'\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc3\x80\xc7\x00'\ b'\xce\x00\xdc\x00\xf8\x00\xf8\x00\xec\x00\xce\x00\xc6\x00\xc3\x00'\ b'\xc3\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xfc\x00\xfc\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00'\ b'\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0e\x00\x07\xc0\x03\xc0\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\xdb\x80\xff\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0'\ b'\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xce\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3e\x00\x7f\x00'\ b'\x63\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x63\x00\x7f\x00'\ b'\x3e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\xde\x00\xff\x00\xe3\x00\xc1\x80'\ b'\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x00\xff\x00\xde\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x3d\x80\x7f\x80\x63\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\x63\x80\x7f\x80\x3d\x80\x01\x80\x01\x80\x01\x80'\ b'\x01\x80\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xce\x00\xdf\x00\xf1\x00\xe0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\x00\x7f\x80'\ b'\xc0\x80\xc0\x00\xfe\x00\x3f\x00\x03\x80\x01\x80\x83\x80\xff\x00'\ b'\x7e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x18\x00\x18\x00\x18\x00\xff\x80\xff\x80\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x1f\x80\x0f\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80'\ b'\xc1\x80\xc1\x80\xe3\x80\x7f\x80\x39\x80\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xc1\x80\xe3\x80\x63\x00\x63\x00\x77\x00\x36\x00\x36\x00\x36\x00'\ b'\x1c\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x30\xc0\x30'\ b'\x60\x60\x66\x60\x66\x60\x66\x60\x3f\xc0\x39\xc0\x39\xc0\x39\xc0'\ b'\x30\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\xe3\x80\x63\x00\x36\x00\x3e\x00'\ b'\x1c\x00\x1c\x00\x1c\x00\x3e\x00\x36\x00\x63\x00\xe3\x80\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\xc1\x80\x63\x00\x63\x00\x63\x00\x36\x00\x36\x00'\ b'\x3e\x00\x1c\x00\x1c\x00\x0c\x00\x18\x00\x18\x00\x18\x00\x70\x00'\ b'\x70\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\xff\x80\xff\x80\x07\x00\x06\x00\x0e\x00\x1c\x00\x38\x00\x30\x00'\ b'\x60\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x0c\x00\x00\x00\x0f\x00\x1f\x00\x18\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\xf0\x00\xf0\x00\x38\x00\x18\x00\x18\x00\x18\x00'\ b'\x18\x00\x18\x00\x1f\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\ b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x0c\x00\x00\x00\xf0\x00\xf8\x00'\ b'\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x0f\x00\x0f\x00'\ b'\x1c\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xf8\x00\xf0\x00'\ b'\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x78\x40\xff\xc0\x87\x80\x00\x00\x00\x00'\ b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\ _index =\ b'\x00\x00\x2c\x00\x2c\x00\x58\x00\x58\x00\x84\x00\x84\x00\xb0\x00'\ b'\xb0\x00\xdc\x00\xdc\x00\x08\x01\x08\x01\x34\x01\x34\x01\x60\x01'\ b'\x60\x01\x8c\x01\x8c\x01\xb8\x01\xb8\x01\xe4\x01\xe4\x01\x10\x02'\ b'\x10\x02\x3c\x02\x3c\x02\x68\x02\x68\x02\x94\x02\x94\x02\xc0\x02'\ b'\xc0\x02\xec\x02\xec\x02\x18\x03\x18\x03\x44\x03\x44\x03\x70\x03'\ b'\x70\x03\x9c\x03\x9c\x03\xc8\x03\xc8\x03\xf4\x03\xf4\x03\x20\x04'\ b'\x20\x04\x4c\x04\x4c\x04\x78\x04\x78\x04\xa4\x04\xa4\x04\xd0\x04'\ b'\xd0\x04\xfc\x04\xfc\x04\x28\x05\x28\x05\x54\x05\x54\x05\x80\x05'\ b'\x80\x05\xac\x05\xac\x05\xd8\x05\xd8\x05\x04\x06\x04\x06\x30\x06'\ b'\x30\x06\x5c\x06\x5c\x06\x88\x06\x88\x06\xb4\x06\xb4\x06\xe0\x06'\ b'\xe0\x06\x0c\x07\x0c\x07\x38\x07\x38\x07\x64\x07\x64\x07\x90\x07'\ b'\x90\x07\xbc\x07\xbc\x07\xe8\x07\xe8\x07\x14\x08\x14\x08\x40\x08'\ b'\x40\x08\x6c\x08\x6c\x08\x98\x08\x98\x08\xc4\x08\xc4\x08\xf0\x08'\ b'\xf0\x08\x1c\x09\x1c\x09\x48\x09\x48\x09\x74\x09\x74\x09\xa0\x09'\ b'\xa0\x09\xcc\x09\xcc\x09\xf8\x09\xf8\x09\x24\x0a\x24\x0a\x50\x0a'\ b'\x50\x0a\x7c\x0a\x7c\x0a\xa8\x0a\xa8\x0a\xd4\x0a\xd4\x0a\x00\x0b'\ b'\x00\x0b\x2c\x0b\x2c\x0b\x58\x0b\x58\x0b\x84\x0b\x84\x0b\xb0\x0b'\ b'\xb0\x0b\xdc\x0b\xdc\x0b\x08\x0c\x08\x0c\x34\x0c\x34\x0c\x60\x0c'\ b'\x60\x0c\x8c\x0c\x8c\x0c\xb8\x0c\xb8\x0c\xe4\x0c\xe4\x0c\x10\x0d'\ b'\x10\x0d\x3c\x0d\x3c\x0d\x68\x0d\x68\x0d\x94\x0d\x94\x0d\xc0\x0d'\ b'\xc0\x0d\xec\x0d\xec\x0d\x18\x0e\x18\x0e\x44\x0e\x44\x0e\x70\x0e'\ b'\x70\x0e\x9c\x0e\x9c\x0e\xc8\x0e\xc8\x0e\xf4\x0e\xf4\x0e\x20\x0f'\ b'\x20\x0f\x4c\x0f\x4c\x0f\x78\x0f\x78\x0f\xa4\x0f\xa4\x0f\xd0\x0f'\ b'\xd0\x0f\xfc\x0f\xfc\x0f\x28\x10\x28\x10\x54\x10\x54\x10\x80\x10'\ _mvfont = memoryview(_font) def get_ch(ch): ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 63 idx_offs = 4 * (ordch - 32) offset = int.from_bytes(_index[idx_offs : idx_offs + 2], 'little') next_offs = int.from_bytes(_index[idx_offs + 2 : idx_offs + 4], 'little') width = int.from_bytes(_font[offset:offset + 2], 'little') return _mvfont[offset + 2:next_offs], 21, width
version = '0.26' def height(): return 21 def max_width(): return 12 def hmap(): return True def reverse(): return False def monospaced(): return False def min_ch(): return 32 def max_ch(): return 126 _font = b'\x0c\x00\x00\x00|\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00\x0e\x00\x1c\x008\x000\x000\x000\x00\x00\x000\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x06`\x04@\x0c\xc0\x0c\xc0\x7f\xf0\x7f\xf0\x08\x80\x19\x80\x19\x80\xff\xe0\xff\xe03\x003\x00"\x00"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x08\x00\x08\x00>\x00\x7f\x00\xe9\x00\xc8\x00\xc8\x00h\x00>\x00\x0b\x00\t\x80\t\x80\x8b\x80\xff\x00~\x00\x08\x00\x08\x00\x08\x00\x00\x00\x00\x00\x0c\x00\x00\x00x\x00\xcc\x00\xcc\x00\xcc\x00\xcc\x00x\xc0\x03\x00\x06\x00\x18\x00c\xc0\x06`\x06`\x06`\x06`\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1f\x00?\x000\x000\x000\x00\x18\x00\x18\x00|\x00n`\xc6`\xc3`\xc3\xc0\xe1\x80~\xc0<\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x000\x00 \x00`\x00`\x00@\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00`\x00`\x00`\x00 \x000\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00@\x00`\x00`\x00`\x000\x000\x000\x000\x000\x000\x000\x000\x00`\x00`\x00`\x00@\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x08\x00\x08\x00\x88\x80k\x00\x1c\x00\x1c\x00k\x00\x88\x80\x08\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00`\x00`\x00`\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\xc0\x01\x80\x01\x80\x03\x00\x03\x00\x06\x00\x06\x00\x0c\x00\x0c\x00\x18\x00\x18\x000\x000\x00`\x00`\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00<\x00\x7f\x00c\x00\xe3\x80\xc1\x80\xc1\x80\xcd\x80\xcd\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x80c\x00\x7f\x00<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x008\x00\xf8\x00\xd8\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00~\x00\xff\x00\x83\x80\x01\x80\x01\x80\x01\x80\x03\x80\x03\x00\x06\x00\x0c\x00\x18\x000\x00`\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00~\x00\xff\x00\x83\x80\x01\x80\x01\x80\x03\x80\x1f\x00\x1e\x00\x03\x00\x01\x80\x01\x80\x01\x80\x83\x80\xff\x00~\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x07\x00\x07\x00\x0f\x00\x0b\x00\x1b\x00\x13\x003\x00c\x00c\x00\xc3\x00\xff\xc0\xff\xc0\x03\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x7f\x00\x7f\x00`\x00`\x00`\x00~\x00\x7f\x00C\x80\x01\x80\x01\x80\x01\x80\x01\x80\x83\x00\xff\x00|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00?\x00q\x00`\x00\xc0\x00\xc0\x00\xde\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x80\xff\x80\x03\x00\x03\x00\x03\x00\x06\x00\x06\x00\x06\x00\x0c\x00\x0c\x00\x0c\x00\x18\x00\x18\x00\x18\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00>\x00\x7f\x00\xe3\x80\xc1\x80\xc1\x80c\x00>\x00\x7f\x00c\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00>\x00\x7f\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x80=\x80\x01\x80\x01\x80\x03\x00G\x00~\x00<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00`\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00`\x00`\x00`\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x03\xc0\x0f\x00<\x00\xe0\x00\xe0\x00<\x00\x0f\x00\x03\xc0\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\xf0\x00<\x00\x0f\x00\x01\xc0\x01\xc0\x0f\x00<\x00\xf0\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00|\x00\xfe\x00\x87\x00\x03\x00\x03\x00\x07\x00\x0e\x00\x1c\x008\x000\x000\x000\x00\x00\x000\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x0f\x001\x80`\xc0`\xc0G\xc0\xc4\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xc4\xc0g\xc0`\x000\x008\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x1e\x00\x1e\x00\x1e\x00?\x003\x003\x003\x00s\x80\x7f\x80\x7f\x80a\x80\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xfe\x00\xff\x00\xc3\x80\xc1\x80\xc1\x80\xc3\x80\xff\x00\xff\x00\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x80?\xc0p@`\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00`\x00p@?\xc0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xfc\x00\xff\x00\xc3\x80\xc1\x80\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc1\x80\xc3\x80\xff\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\x80\xff\x80\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1f\x00?\x80p\x80`\x00\xc0\x00\xc0\x00\xc0\x00\xc3\xc0\xc3\xc0\xc0\xc0\xc0\xc0`\xc0p\xc0?\xc0\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xff\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00?\x00?\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x87\x00\xfe\x00|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc1\x80\xc3\x00\xc6\x00\xcc\x00\xd8\x00\xf8\x00\xfc\x00\xec\x00\xc6\x00\xc7\x00\xc3\x00\xc1\x80\xc1\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe1\xc0\xe1\xc0\xe1\xc0\xf3\xc0\xd2\xc0\xd2\xc0\xde\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe0\xc0\xe0\xc0\xf0\xc0\xf0\xc0\xd8\xc0\xd8\xc0\xc8\xc0\xcc\xc0\xc4\xc0\xc6\xc0\xc6\xc0\xc3\xc0\xc3\xc0\xc1\xc0\xc1\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x7f\x80a\x80\xe1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0a\x80\x7f\x80\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x80\xc1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80\xff\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x1e\x00\x7f\x80a\x80\xe1\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0a\x80?\x00\x1e\x00\x03\x00\x01\x80\x01\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\x00\xff\x80\xc1\xc0\xc0\xc0\xc0\xc0\xc1\xc0\xff\x80\xff\x00\xc3\x80\xc1\x80\xc1\xc0\xc0\xc0\xc0\xe0\xc0`\xc0p\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00?\x00\x7f\x80\xe0\x80\xc0\x00\xc0\x00\xe0\x00|\x00?\x00\x03\x80\x00\xc0\x00\xc0\x00\xc0\x81\xc0\xff\x80\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xf0\xff\xf0\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xe1\xc0\x7f\x80?\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\xc0\xc0\xc0a\x80a\x80a\x80a\x803\x003\x003\x00?\x00\x1e\x00\x1e\x00\x1e\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc00\xc00\xc00``f`f`o`o`i`i`9\xc09\xc09\xc00\xc00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe1\xc0a\x80s\x803\x00\x1e\x00\x1e\x00\x0c\x00\x0c\x00\x1e\x00\x1e\x007\x003\x00c\x80a\x80\xc1\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xe0p``0\xc00\xc0\x19\x80\x1f\x80\x0f\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xff\xc0\xff\xc0\x01\x80\x03\x80\x03\x00\x06\x00\x0e\x00\x0c\x00\x1c\x00\x18\x000\x00p\x00`\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xf0\x00\xf0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xf0\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00`\x00`\x000\x000\x00\x18\x00\x18\x00\x0c\x00\x0c\x00\x06\x00\x06\x00\x03\x00\x03\x00\x01\x80\x01\x80\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xf0\x00\xf0\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x000\x00\xf0\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0e\x00\x1b\x001\x80`\xc0\xc0`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xf0\xff\xf0\x00\x00\x00\x00\x00\x00\x0c\x00\xc0\x00`\x000\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x00\x7f\x00C\x80\x01\x80?\x80\x7f\x80\xe1\x80\xc1\x80\xc3\x80\xff\x80=\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xde\x00\xff\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x00\xff\x00\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x7f\x00a\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00a\x00\x7f\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x01\x80\x01\x80\x01\x80\x01\x80=\x80\x7f\x80c\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x80=\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x00\x7f\x00c\x80\xc1\x80\xff\x80\xff\x80\xc0\x00\xc0\x00`\x80\x7f\x80\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x80\x1f\x80\x18\x00\x18\x00\xff\x80\xff\x80\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00=\x80\x7f\x80c\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x80=\x80\x01\x80C\x80\x7f\x00>\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xce\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00|\x00|\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00|\x00|\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\xf8\x00\xf0\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc3\x80\xc7\x00\xce\x00\xdc\x00\xf8\x00\xf8\x00\xec\x00\xce\x00\xc6\x00\xc3\x00\xc3\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xfc\x00\xfc\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0c\x00\x0e\x00\x07\xc0\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xdb\x80\xff\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\xcc\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xce\x00\xff\x00\xe3\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x00\x7f\x00c\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x00\x7f\x00>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xde\x00\xff\x00\xe3\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x00\xff\x00\xde\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00=\x80\x7f\x80c\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80c\x80\x7f\x80=\x80\x01\x80\x01\x80\x01\x80\x01\x80\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xce\x00\xdf\x00\xf1\x00\xe0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00?\x00\x7f\x80\xc0\x80\xc0\x00\xfe\x00?\x00\x03\x80\x01\x80\x83\x80\xff\x00~\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x18\x00\x18\x00\x18\x00\xff\x80\xff\x80\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x1f\x80\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xc1\x80\xe3\x80\x7f\x809\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc1\x80\xe3\x80c\x00c\x00w\x006\x006\x006\x00\x1c\x00\x1c\x00\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc00\xc00``f`f`f`?\xc09\xc09\xc09\xc00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe3\x80c\x006\x00>\x00\x1c\x00\x1c\x00\x1c\x00>\x006\x00c\x00\xe3\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc1\x80c\x00c\x00c\x006\x006\x00>\x00\x1c\x00\x1c\x00\x0c\x00\x18\x00\x18\x00\x18\x00p\x00p\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x80\xff\x80\x07\x00\x06\x00\x0e\x00\x1c\x008\x000\x00`\x00\xff\x80\xff\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x00\x1f\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xf0\x00\xf0\x008\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x1f\x00\x0f\x00\x00\x00\x00\x00\x0c\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x0c\x00\x00\x00\xf0\x00\xf8\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\x0f\x00\x0f\x00\x1c\x00\x18\x00\x18\x00\x18\x00\x18\x00\x18\x00\xf8\x00\xf0\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00x@\xff\xc0\x87\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' _index = b'\x00\x00,\x00,\x00X\x00X\x00\x84\x00\x84\x00\xb0\x00\xb0\x00\xdc\x00\xdc\x00\x08\x01\x08\x014\x014\x01`\x01`\x01\x8c\x01\x8c\x01\xb8\x01\xb8\x01\xe4\x01\xe4\x01\x10\x02\x10\x02<\x02<\x02h\x02h\x02\x94\x02\x94\x02\xc0\x02\xc0\x02\xec\x02\xec\x02\x18\x03\x18\x03D\x03D\x03p\x03p\x03\x9c\x03\x9c\x03\xc8\x03\xc8\x03\xf4\x03\xf4\x03 \x04 \x04L\x04L\x04x\x04x\x04\xa4\x04\xa4\x04\xd0\x04\xd0\x04\xfc\x04\xfc\x04(\x05(\x05T\x05T\x05\x80\x05\x80\x05\xac\x05\xac\x05\xd8\x05\xd8\x05\x04\x06\x04\x060\x060\x06\\\x06\\\x06\x88\x06\x88\x06\xb4\x06\xb4\x06\xe0\x06\xe0\x06\x0c\x07\x0c\x078\x078\x07d\x07d\x07\x90\x07\x90\x07\xbc\x07\xbc\x07\xe8\x07\xe8\x07\x14\x08\x14\x08@\x08@\x08l\x08l\x08\x98\x08\x98\x08\xc4\x08\xc4\x08\xf0\x08\xf0\x08\x1c\t\x1c\tH\tH\tt\tt\t\xa0\t\xa0\t\xcc\t\xcc\t\xf8\t\xf8\t$\n$\nP\nP\n|\n|\n\xa8\n\xa8\n\xd4\n\xd4\n\x00\x0b\x00\x0b,\x0b,\x0bX\x0bX\x0b\x84\x0b\x84\x0b\xb0\x0b\xb0\x0b\xdc\x0b\xdc\x0b\x08\x0c\x08\x0c4\x0c4\x0c`\x0c`\x0c\x8c\x0c\x8c\x0c\xb8\x0c\xb8\x0c\xe4\x0c\xe4\x0c\x10\r\x10\r<\r<\rh\rh\r\x94\r\x94\r\xc0\r\xc0\r\xec\r\xec\r\x18\x0e\x18\x0eD\x0eD\x0ep\x0ep\x0e\x9c\x0e\x9c\x0e\xc8\x0e\xc8\x0e\xf4\x0e\xf4\x0e \x0f \x0fL\x0fL\x0fx\x0fx\x0f\xa4\x0f\xa4\x0f\xd0\x0f\xd0\x0f\xfc\x0f\xfc\x0f(\x10(\x10T\x10T\x10\x80\x10' _mvfont = memoryview(_font) def get_ch(ch): ordch = ord(ch) ordch = ordch + 1 if ordch >= 32 and ordch <= 126 else 63 idx_offs = 4 * (ordch - 32) offset = int.from_bytes(_index[idx_offs:idx_offs + 2], 'little') next_offs = int.from_bytes(_index[idx_offs + 2:idx_offs + 4], 'little') width = int.from_bytes(_font[offset:offset + 2], 'little') return (_mvfont[offset + 2:next_offs], 21, width)
# CPU: 0.42 s ids = set() for _ in range(int(input())): ids.add(int(input())) m = 1 while True: reduced_ids = set() for id_ in ids: reduced_id = id_ % m if reduced_id not in reduced_ids: reduced_ids.add(reduced_id) else: break else: break m += 1 print(m)
ids = set() for _ in range(int(input())): ids.add(int(input())) m = 1 while True: reduced_ids = set() for id_ in ids: reduced_id = id_ % m if reduced_id not in reduced_ids: reduced_ids.add(reduced_id) else: break else: break m += 1 print(m)
_item_fullname_='mdtraj.Topology' def is_mdtraj_Topology(item): item_fullname = item.__class__.__module__+'.'+item.__class__.__name__ return _item_fullname_==item_fullname
_item_fullname_ = 'mdtraj.Topology' def is_mdtraj__topology(item): item_fullname = item.__class__.__module__ + '.' + item.__class__.__name__ return _item_fullname_ == item_fullname
# Find the Runner-Up Score or Finding second largest number n = int(input()) arr = list(map(int, input().split())) l = max(arr) for i in range(n): if l == max(arr): arr.remove(max(arr)) print(max(arr))
n = int(input()) arr = list(map(int, input().split())) l = max(arr) for i in range(n): if l == max(arr): arr.remove(max(arr)) print(max(arr))
class Solution: def findMedianSortedArrays(self, A: List[int], B: List[int]) -> float: def helper(A, B, k): if not A or not B: return (A or B)[k] else: ia, ib = len(A) // 2, len(B) // 2 ma, mb = A[ia], B[ib] if k > ia + ib: if ma > mb: return helper(A, B[ib + 1:], k - ib - 1) else: return helper(A[ia + 1:], B, k - ia - 1) else: # k <= ia + ib if ma > mb: return helper(A[:ia], B, k) else: return helper(A, B[:ib], k) n = len(A) + len(B) return helper(A, B, n // 2) if n % 2 == 1 else 0.5 * (helper(A, B, n // 2) + helper(A, B, n // 2 - 1))
class Solution: def find_median_sorted_arrays(self, A: List[int], B: List[int]) -> float: def helper(A, B, k): if not A or not B: return (A or B)[k] else: (ia, ib) = (len(A) // 2, len(B) // 2) (ma, mb) = (A[ia], B[ib]) if k > ia + ib: if ma > mb: return helper(A, B[ib + 1:], k - ib - 1) else: return helper(A[ia + 1:], B, k - ia - 1) elif ma > mb: return helper(A[:ia], B, k) else: return helper(A, B[:ib], k) n = len(A) + len(B) return helper(A, B, n // 2) if n % 2 == 1 else 0.5 * (helper(A, B, n // 2) + helper(A, B, n // 2 - 1))
while True: try: l = int(input()) except EOFError: break lesmas = map(int, input().split()) maior = max(lesmas) if maior < 10: print(1) elif maior >= 10 and maior < 20: print(2) else: print(3)
while True: try: l = int(input()) except EOFError: break lesmas = map(int, input().split()) maior = max(lesmas) if maior < 10: print(1) elif maior >= 10 and maior < 20: print(2) else: print(3)
# Module to flatten a list def flatten(array, flattened=[]): for value in array: if(isinstance(value, list)): flatten(value, flattened) else: flattened.append(value) return flattened
def flatten(array, flattened=[]): for value in array: if isinstance(value, list): flatten(value, flattened) else: flattened.append(value) return flattened
class BaseAgent(object): def __init__(self, config): self.device = config.device self.num_actions = config.action_dim self.observation_dim = config.observation_dim self.discount_factor = config.discount_factor self.grad_clip_val = config.grad_clip_val self.batch_size = config.batch_size self.iteration_counter = 0 def act(self, observation, under_evaluation=False): raise NotImplementedError def experience(self, observations, action, rewards, terminals, infos, next_observations): raise NotImplementedError def experience_in_evaluation(self, terminals, infos): raise NotImplementedError def save_agent(self, epoch, path): raise NotImplementedError def load_agent(self, path): raise NotImplementedError
class Baseagent(object): def __init__(self, config): self.device = config.device self.num_actions = config.action_dim self.observation_dim = config.observation_dim self.discount_factor = config.discount_factor self.grad_clip_val = config.grad_clip_val self.batch_size = config.batch_size self.iteration_counter = 0 def act(self, observation, under_evaluation=False): raise NotImplementedError def experience(self, observations, action, rewards, terminals, infos, next_observations): raise NotImplementedError def experience_in_evaluation(self, terminals, infos): raise NotImplementedError def save_agent(self, epoch, path): raise NotImplementedError def load_agent(self, path): raise NotImplementedError
inp = input("please enter the text") print("The original string : " + inp) res = [int(i) for i in inp.split() if i.isdigit()] # this basically makes a list of all the numbers for i in res: if len(str(i))==10: print("the phone number in the text is:" + str(i))
inp = input('please enter the text') print('The original string : ' + inp) res = [int(i) for i in inp.split() if i.isdigit()] for i in res: if len(str(i)) == 10: print('the phone number in the text is:' + str(i))
### Static Array Sequence Implementation # Static array has fixed size and can't grow or shrink. # Static array has a O(1) constant time for get_at and set_at operations. # Static array has a O(n) time for insert and delete operations at the back of the array. # Reference implementation: MIT Introduction to Algorithms # https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-spring-2020/lecture-notes/MIT6_006S20_r02.pdf class Array_Seq: def __init__(self): #O(1) self.A = [] self.size = 0 def __len__self(self): #O(1) return self.size def __iter__(self): #O(n) yield from self.A def build(self, X): #O(n), building a static array from iterable self.A = [a for a in X] self.size = len(X) def get_at(self, i): #O(1) return self.A[i] def set_at(self, i, x): #O(1) self.A[i] = x def _copy_forward(self, i, n, A, j): #O(n) for k in range(n): A[j + k] = self.A[i + k] def _copy_backward(self, i, n, A, j): #O(n) for k in range(n - 1, -1, -1): A[j + k] = self.A[i + k] def insert_at(self, i, x): #O(n) n = len(self) A = [None] * (n + 1) self._copy_forward(0, i, A, 0) A[i] = x self._copy_forward(i, n - i, A, i + 1) self.build(A) def delete_at(self, i): #O(n) n = len(self) A = [None] * (n - 1) self._copy_forward(0, i, A, 0) x = self.A[i] self._copy_forward(i + 1, n - i - 1, A, i) self.build(A) return x def insert_first(self, x): #O(n) self.insert_at(0, x) def delete_first(self): #O(n) return self.delete_at(0) def insert_last(self, x): #O(n) self.insert_at(len(self), x) def delete_last(self, x): #O(n) return self.delete_at(len(self) - 1) # Reference implementation: MIT Introduction to Algorithms #https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-006-introduction-to-algorithms-spring-2020/lecture-notes/MIT6_006S20_r02.pdf
class Array_Seq: def __init__(self): self.A = [] self.size = 0 def __len__self(self): return self.size def __iter__(self): yield from self.A def build(self, X): self.A = [a for a in X] self.size = len(X) def get_at(self, i): return self.A[i] def set_at(self, i, x): self.A[i] = x def _copy_forward(self, i, n, A, j): for k in range(n): A[j + k] = self.A[i + k] def _copy_backward(self, i, n, A, j): for k in range(n - 1, -1, -1): A[j + k] = self.A[i + k] def insert_at(self, i, x): n = len(self) a = [None] * (n + 1) self._copy_forward(0, i, A, 0) A[i] = x self._copy_forward(i, n - i, A, i + 1) self.build(A) def delete_at(self, i): n = len(self) a = [None] * (n - 1) self._copy_forward(0, i, A, 0) x = self.A[i] self._copy_forward(i + 1, n - i - 1, A, i) self.build(A) return x def insert_first(self, x): self.insert_at(0, x) def delete_first(self): return self.delete_at(0) def insert_last(self, x): self.insert_at(len(self), x) def delete_last(self, x): return self.delete_at(len(self) - 1)
# This sample tests the case where super() is used within a metaclass # __init__ method. class Metaclass(type): def __init__(self, name, bases, attrs): super().__init__(name, bases, attrs)
class Metaclass(type): def __init__(self, name, bases, attrs): super().__init__(name, bases, attrs)
__author__ = 'studentmac' def make_negative( number ): if number >0: number *=-1 return number
__author__ = 'studentmac' def make_negative(number): if number > 0: number *= -1 return number
{ "targets": [ { "target_name": "rsvg", "sources": [ "src/Rsvg.cc", "src/Enums.cc", "src/Autocrop.cc" ], "variables": { "packages": "librsvg-2.0 cairo-png cairo-pdf cairo-svg", "libraries": "<!(pkg-config --libs-only-l <(packages))", "ldflags": "<!(pkg-config --libs-only-L --libs-only-other <(packages))", "cflags": "<!(pkg-config --cflags <(packages))" }, "libraries": [ "<@(libraries)" ], "conditions": [ [ "OS=='linux'", { "cflags": [ "<@(cflags)" ], "ldflags": [ "<@(ldflags)" ] } ], [ "OS=='mac'", { "xcode_settings": { "OTHER_CFLAGS": [ "<@(cflags)" ], "OTHER_LDFLAGS": [ "<@(ldflags)" ] } } ] ] } ] }
{'targets': [{'target_name': 'rsvg', 'sources': ['src/Rsvg.cc', 'src/Enums.cc', 'src/Autocrop.cc'], 'variables': {'packages': 'librsvg-2.0 cairo-png cairo-pdf cairo-svg', 'libraries': '<!(pkg-config --libs-only-l <(packages))', 'ldflags': '<!(pkg-config --libs-only-L --libs-only-other <(packages))', 'cflags': '<!(pkg-config --cflags <(packages))'}, 'libraries': ['<@(libraries)'], 'conditions': [["OS=='linux'", {'cflags': ['<@(cflags)'], 'ldflags': ['<@(ldflags)']}], ["OS=='mac'", {'xcode_settings': {'OTHER_CFLAGS': ['<@(cflags)'], 'OTHER_LDFLAGS': ['<@(ldflags)']}}]]}]}
#!/usr/bin/python class me: # initialization routine def __init__(self, foo): self.myvar = foo def getval(self): return self.myvar # this is an instance of the "me" class my = me("this") # my instantiation/assignment allows access to getval method x = my.getval() print(x)
class Me: def __init__(self, foo): self.myvar = foo def getval(self): return self.myvar my = me('this') x = my.getval() print(x)
# OpenWeatherMap API Key weather_api_key = "48ae7399e76d973a4b9ac9efe89908a3" # Google API Key g_key = "AIzaSyBrlKm1v_NyDl4nT9LOZWE5s_sQa2D5Hoc"
weather_api_key = '48ae7399e76d973a4b9ac9efe89908a3' g_key = 'AIzaSyBrlKm1v_NyDl4nT9LOZWE5s_sQa2D5Hoc'
height=list(map(int,input().split())) height def trapped_water(h): n=len(h) total=0 for i in range(1,n-1): left=h[i] for j in range(i): left=max(h[j],left) right=h[i] for j in range(i+1,n): right=max(h[j],right) total+=min(left,right)-h[i] return total print(trapped_water(height))
height = list(map(int, input().split())) height def trapped_water(h): n = len(h) total = 0 for i in range(1, n - 1): left = h[i] for j in range(i): left = max(h[j], left) right = h[i] for j in range(i + 1, n): right = max(h[j], right) total += min(left, right) - h[i] return total print(trapped_water(height))
a=((1, 1, 1, 1), # matrix A # (2, 4, 8, 16), (3, 9, 27, 81), (4, 16, 64, 256)) b=(( 4 , -3 , 4/3., -1/4. ), # matrix B # (-13/3., 19/4., -7/3., 11/24.), ( 3/2., -2. , 7/6., -1/4. ), ( -1/6., 1/4., -1/6., 1/24.)) def MatrixMul( mtx_a, mtx_b): tpos_b = list(zip( *mtx_b)) rtn = [[ sum( ea*eb for ea,eb in zip(a,b)) for b in tpos_b] for a in mtx_a] return rtn v = MatrixMul( a, b ) print('v = (') for r in v: print('[', end=' ') for val in r: print('%8.2f '%val, end=' ') print(']') print(')') u = MatrixMul(b,a) print('u = ') for r in u: print('[', end=' ') for val in r: print('%8.2f '%val, end=' ') print(']') print(')')
a = ((1, 1, 1, 1), (2, 4, 8, 16), (3, 9, 27, 81), (4, 16, 64, 256)) b = ((4, -3, 4 / 3.0, -1 / 4.0), (-13 / 3.0, 19 / 4.0, -7 / 3.0, 11 / 24.0), (3 / 2.0, -2.0, 7 / 6.0, -1 / 4.0), (-1 / 6.0, 1 / 4.0, -1 / 6.0, 1 / 24.0)) def matrix_mul(mtx_a, mtx_b): tpos_b = list(zip(*mtx_b)) rtn = [[sum((ea * eb for (ea, eb) in zip(a, b))) for b in tpos_b] for a in mtx_a] return rtn v = matrix_mul(a, b) print('v = (') for r in v: print('[', end=' ') for val in r: print('%8.2f ' % val, end=' ') print(']') print(')') u = matrix_mul(b, a) print('u = ') for r in u: print('[', end=' ') for val in r: print('%8.2f ' % val, end=' ') print(']') print(')')
# # PySNMP MIB module HPN-ICF-WEB-AUTHENTICATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPN-ICF-WEB-AUTHENTICATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:42:05 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "ConstraintsUnion") hpnicfCommon, = mibBuilder.importSymbols("HPN-ICF-OID-MIB", "hpnicfCommon") ifDescr, = mibBuilder.importSymbols("IF-MIB", "ifDescr") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") Gauge32, ObjectIdentity, ModuleIdentity, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, Bits, NotificationType, Counter64, Unsigned32, Integer32, IpAddress, MibIdentifier, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "ObjectIdentity", "ModuleIdentity", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "Bits", "NotificationType", "Counter64", "Unsigned32", "Integer32", "IpAddress", "MibIdentifier", "TimeTicks") MacAddress, TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "MacAddress", "TextualConvention", "DisplayString") hpnicfWebAuthentication = ModuleIdentity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93)) hpnicfWebAuthentication.setRevisions(('2008-06-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfWebAuthentication.setRevisionsDescriptions(('The initial version of hpnicfWebAuthenticationMIB',)) if mibBuilder.loadTexts: hpnicfWebAuthentication.setLastUpdated('200806250000Z') if mibBuilder.loadTexts: hpnicfWebAuthentication.setOrganization('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setContactInfo('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setDescription('The MIB module is used for web authentication to send traps.') hpnicfWaTrapObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1)) hpnicfWaVlanID = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 1), Integer32()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaVlanID.setStatus('current') if mibBuilder.loadTexts: hpnicfWaVlanID.setDescription('The Vlan ID associate with the port and the MAC address.') hpnicfWaReasonCode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=NamedValues(("globalNumberMax", 1), ("configNumberMax", 2), ("portNumberMax", 3), ("invalidUsername", 4), ("authFail", 5), ("setACLFail", 6), ("changeVlanFail", 7), ("other", 8), ("onlineOverTime", 9), ("noTransferData", 10), ("cutOperation", 11), ("portDisabled", 12), ("portDown", 13), ("userLogout", 14), ("vlanChanged", 15), ("vlanDelted", 16)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaReasonCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaReasonCode.setDescription('The code indicates the reason for the action of this trap. globalNumberMax: The global number of connections is up to max. configNumberMax: The global number of connections is up to configured max value. portNumberMax: The interface number of connections is up to max. invalidUsername: The username or password is too long or username is empty. authFail: Wrong username or password. setACLFail: Failed to set ACL. changeVlanFail: Failed to set VLAN. other: Other reasons. onlineOverTime: The online time is over the max value. noTransferData: There was no data flow for the connection. cutOperation: There was a cut operation. portDisabled: Web authentication was disabled on interface. portDown: The interface turned down. userLogout: The client required to logout. vlanChanged: The interface VLAN value was changed. vlanDelted: The interface VLAN was deleted.') hpnicfWaActionCode = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2)))).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaActionCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaActionCode.setDescription('The code indicates the system action. enabled: Web authentication turns enabled. disabled: Web authentication turns disabled.') hpnicfWaClientMacAddr = MibScalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 4), MacAddress()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setDescription('The MAC address of the client.') hpnicfWaTrap = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2)) hpnicfWaTrapPrefix = MibIdentifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0)) hpnicfWaClientLogon = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 1)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaClientMacAddr"), ("IF-MIB", "ifDescr"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaVlanID")) if mibBuilder.loadTexts: hpnicfWaClientLogon.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogon.setDescription('It is generated when a client succeeded to logon.') hpnicfWaClientLogonFail = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 2)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaClientMacAddr"), ("IF-MIB", "ifDescr"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaVlanID"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaReasonCode")) if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setDescription('It is generated when a client failed to logon, the hpnicfWaReasonCode shows the failure reason.') hpnicfWaClientLogout = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 3)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaClientMacAddr"), ("IF-MIB", "ifDescr"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaVlanID"), ("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaReasonCode")) if mibBuilder.loadTexts: hpnicfWaClientLogout.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogout.setDescription('It is generated when a client logout, the hpnicfWaReasonCode shows the logout reason.') hpnicfWaSysAction = NotificationType((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 4)).setObjects(("HPN-ICF-WEB-AUTHENTICATION-MIB", "hpnicfWaActionCode")) if mibBuilder.loadTexts: hpnicfWaSysAction.setStatus('current') if mibBuilder.loadTexts: hpnicfWaSysAction.setDescription('It is generated when a system action was occurred, the hpnicfWaActionCode shows the action information.') mibBuilder.exportSymbols("HPN-ICF-WEB-AUTHENTICATION-MIB", hpnicfWaClientLogout=hpnicfWaClientLogout, hpnicfWaTrapPrefix=hpnicfWaTrapPrefix, hpnicfWaTrapObjects=hpnicfWaTrapObjects, hpnicfWaClientMacAddr=hpnicfWaClientMacAddr, PYSNMP_MODULE_ID=hpnicfWebAuthentication, hpnicfWaClientLogon=hpnicfWaClientLogon, hpnicfWaVlanID=hpnicfWaVlanID, hpnicfWaActionCode=hpnicfWaActionCode, hpnicfWebAuthentication=hpnicfWebAuthentication, hpnicfWaReasonCode=hpnicfWaReasonCode, hpnicfWaClientLogonFail=hpnicfWaClientLogonFail, hpnicfWaSysAction=hpnicfWaSysAction, hpnicfWaTrap=hpnicfWaTrap)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, value_size_constraint, value_range_constraint, constraints_intersection, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'ConstraintsUnion') (hpnicf_common,) = mibBuilder.importSymbols('HPN-ICF-OID-MIB', 'hpnicfCommon') (if_descr,) = mibBuilder.importSymbols('IF-MIB', 'ifDescr') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (gauge32, object_identity, module_identity, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, bits, notification_type, counter64, unsigned32, integer32, ip_address, mib_identifier, time_ticks) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'ObjectIdentity', 'ModuleIdentity', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'Bits', 'NotificationType', 'Counter64', 'Unsigned32', 'Integer32', 'IpAddress', 'MibIdentifier', 'TimeTicks') (mac_address, textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'MacAddress', 'TextualConvention', 'DisplayString') hpnicf_web_authentication = module_identity((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93)) hpnicfWebAuthentication.setRevisions(('2008-06-25 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: hpnicfWebAuthentication.setRevisionsDescriptions(('The initial version of hpnicfWebAuthenticationMIB',)) if mibBuilder.loadTexts: hpnicfWebAuthentication.setLastUpdated('200806250000Z') if mibBuilder.loadTexts: hpnicfWebAuthentication.setOrganization('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setContactInfo('') if mibBuilder.loadTexts: hpnicfWebAuthentication.setDescription('The MIB module is used for web authentication to send traps.') hpnicf_wa_trap_objects = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1)) hpnicf_wa_vlan_id = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 1), integer32()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaVlanID.setStatus('current') if mibBuilder.loadTexts: hpnicfWaVlanID.setDescription('The Vlan ID associate with the port and the MAC address.') hpnicf_wa_reason_code = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16))).clone(namedValues=named_values(('globalNumberMax', 1), ('configNumberMax', 2), ('portNumberMax', 3), ('invalidUsername', 4), ('authFail', 5), ('setACLFail', 6), ('changeVlanFail', 7), ('other', 8), ('onlineOverTime', 9), ('noTransferData', 10), ('cutOperation', 11), ('portDisabled', 12), ('portDown', 13), ('userLogout', 14), ('vlanChanged', 15), ('vlanDelted', 16)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaReasonCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaReasonCode.setDescription('The code indicates the reason for the action of this trap. globalNumberMax: The global number of connections is up to max. configNumberMax: The global number of connections is up to configured max value. portNumberMax: The interface number of connections is up to max. invalidUsername: The username or password is too long or username is empty. authFail: Wrong username or password. setACLFail: Failed to set ACL. changeVlanFail: Failed to set VLAN. other: Other reasons. onlineOverTime: The online time is over the max value. noTransferData: There was no data flow for the connection. cutOperation: There was a cut operation. portDisabled: Web authentication was disabled on interface. portDown: The interface turned down. userLogout: The client required to logout. vlanChanged: The interface VLAN value was changed. vlanDelted: The interface VLAN was deleted.') hpnicf_wa_action_code = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2)))).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaActionCode.setStatus('current') if mibBuilder.loadTexts: hpnicfWaActionCode.setDescription('The code indicates the system action. enabled: Web authentication turns enabled. disabled: Web authentication turns disabled.') hpnicf_wa_client_mac_addr = mib_scalar((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 1, 4), mac_address()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientMacAddr.setDescription('The MAC address of the client.') hpnicf_wa_trap = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2)) hpnicf_wa_trap_prefix = mib_identifier((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0)) hpnicf_wa_client_logon = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 1)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaClientMacAddr'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaVlanID')) if mibBuilder.loadTexts: hpnicfWaClientLogon.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogon.setDescription('It is generated when a client succeeded to logon.') hpnicf_wa_client_logon_fail = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 2)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaClientMacAddr'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaVlanID'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaReasonCode')) if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogonFail.setDescription('It is generated when a client failed to logon, the hpnicfWaReasonCode shows the failure reason.') hpnicf_wa_client_logout = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 3)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaClientMacAddr'), ('IF-MIB', 'ifDescr'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaVlanID'), ('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaReasonCode')) if mibBuilder.loadTexts: hpnicfWaClientLogout.setStatus('current') if mibBuilder.loadTexts: hpnicfWaClientLogout.setDescription('It is generated when a client logout, the hpnicfWaReasonCode shows the logout reason.') hpnicf_wa_sys_action = notification_type((1, 3, 6, 1, 4, 1, 11, 2, 14, 11, 15, 2, 93, 2, 0, 4)).setObjects(('HPN-ICF-WEB-AUTHENTICATION-MIB', 'hpnicfWaActionCode')) if mibBuilder.loadTexts: hpnicfWaSysAction.setStatus('current') if mibBuilder.loadTexts: hpnicfWaSysAction.setDescription('It is generated when a system action was occurred, the hpnicfWaActionCode shows the action information.') mibBuilder.exportSymbols('HPN-ICF-WEB-AUTHENTICATION-MIB', hpnicfWaClientLogout=hpnicfWaClientLogout, hpnicfWaTrapPrefix=hpnicfWaTrapPrefix, hpnicfWaTrapObjects=hpnicfWaTrapObjects, hpnicfWaClientMacAddr=hpnicfWaClientMacAddr, PYSNMP_MODULE_ID=hpnicfWebAuthentication, hpnicfWaClientLogon=hpnicfWaClientLogon, hpnicfWaVlanID=hpnicfWaVlanID, hpnicfWaActionCode=hpnicfWaActionCode, hpnicfWebAuthentication=hpnicfWebAuthentication, hpnicfWaReasonCode=hpnicfWaReasonCode, hpnicfWaClientLogonFail=hpnicfWaClientLogonFail, hpnicfWaSysAction=hpnicfWaSysAction, hpnicfWaTrap=hpnicfWaTrap)
COLORS = { 'darkest_blue': '#111111', 'background_blue': '#0C172D', 'text_green': '#54F041', 'dev_purple': '#ab52c5', 'loc_pink': '#f6c6fa', 'great_depression_red': '#C90705', 'walter_white': '#FFFFFF' }
colors = {'darkest_blue': '#111111', 'background_blue': '#0C172D', 'text_green': '#54F041', 'dev_purple': '#ab52c5', 'loc_pink': '#f6c6fa', 'great_depression_red': '#C90705', 'walter_white': '#FFFFFF'}
class Order: Clayful = None name = 'Order' path = 'orders' @staticmethod def config(clayful): Order.Clayful = clayful return Order @staticmethod def accept_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'accept_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId', ), 'without_payload': True, 'args': args }) @staticmethod def authenticate(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'authenticate', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/auth', 'params': ('orderId', ), 'args': args }) @staticmethod def cancel(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def cancel_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def cancel_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def cancel_refund_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'cancel_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def check_ticket(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'check_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/validity', 'params': ('code', ), 'args': args }) @staticmethod def count(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'count', 'http_method': 'GET', 'path': '/v1/orders/count', 'params': (), 'args': args }) @staticmethod def count_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'count_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/count', 'params': (), 'args': args }) @staticmethod def create_download_url(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'create_download_url', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId', ), 'without_payload': True, 'args': args }) @staticmethod def create_download_url_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'create_download_url_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId', ), 'without_payload': True, 'args': args }) @staticmethod def create_fulfillment(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'create_fulfillment', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/fulfillments', 'params': ('orderId', ), 'args': args }) @staticmethod def delete(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def delete_fulfillment(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_fulfillment', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId', ), 'args': args }) @staticmethod def delete_inventory_operation(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_inventory_operation', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/inventory/operations/{operationId}', 'params': ('orderId', 'operationId', ), 'args': args }) @staticmethod def delete_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_metafield', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/meta/{field}', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def delete_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'delete_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def get(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'get', 'http_method': 'GET', 'path': '/v1/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def get_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'get_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def increase_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'increase_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/inc', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def list(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list', 'http_method': 'GET', 'path': '/v1/orders', 'params': (), 'args': args }) @staticmethod def list_by_subscription(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_by_subscription', 'http_method': 'GET', 'path': '/v1/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId', ), 'args': args }) @staticmethod def list_by_subscription_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_by_subscription_for_me', 'http_method': 'GET', 'path': '/v1/me/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId', ), 'args': args }) @staticmethod def list_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_for_me', 'http_method': 'GET', 'path': '/v1/me/orders', 'params': (), 'args': args }) @staticmethod def list_inventory_operations(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'list_inventory_operations', 'http_method': 'GET', 'path': '/v1/orders/{orderId}/inventory/operations', 'params': ('orderId', ), 'args': args }) @staticmethod def mark_as_done(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_done', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def mark_as_not_received(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_not_received', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId', ), 'args': args }) @staticmethod def mark_as_not_received_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_not_received_for_me', 'http_method': 'DELETE', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId', ), 'args': args }) @staticmethod def mark_as_received(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_received', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def mark_as_received_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_received_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def mark_as_undone(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'mark_as_undone', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId', ), 'args': args }) @staticmethod def pull_from_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'pull_from_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/pull', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def push_to_metafield(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'push_to_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/push', 'params': ('orderId', 'field', ), 'args': args }) @staticmethod def register_payment_method(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'register_payment_method', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/transactions/payments/methods', 'params': ('orderId', ), 'args': args }) @staticmethod def request_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'request_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds', 'params': ('orderId', ), 'args': args }) @staticmethod def request_refund_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'request_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds', 'params': ('orderId', ), 'args': args }) @staticmethod def restock_all_refund_items(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'restock_all_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock/all', 'params': ('orderId', 'refundId', ), 'without_payload': True, 'args': args }) @staticmethod def restock_refund_items(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'restock_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def sync_inventory(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'sync_inventory', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/synced', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def unaccept_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'unaccept_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def unregister_payment_method(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'unregister_payment_method', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}', 'params': ('orderId', 'paymentMethodId', ), 'args': args }) @staticmethod def update(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def update_cancellation(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def update_cancellation_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId', ), 'args': args }) @staticmethod def update_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId', ), 'args': args }) @staticmethod def update_fulfillment(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_fulfillment', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId', ), 'args': args }) @staticmethod def update_item(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_item', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/items/{itemId}', 'params': ('orderId', 'itemId', ), 'args': args }) @staticmethod def update_refund(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_refund_cancellation(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_refund_cancellation_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_refund_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_refund_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId', ), 'args': args }) @staticmethod def update_transactions(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_transactions', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/transactions', 'params': ('orderId', ), 'args': args }) @staticmethod def update_transactions_for_me(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'update_transactions_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/transactions', 'params': ('orderId', ), 'without_payload': True, 'args': args }) @staticmethod def use_ticket(*args): return Order.Clayful.call_api({ 'model_name': Order.name, 'method_name': 'use_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/used', 'params': ('code', ), 'without_payload': True, 'args': args })
class Order: clayful = None name = 'Order' path = 'orders' @staticmethod def config(clayful): Order.Clayful = clayful return Order @staticmethod def accept_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'accept_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId'), 'without_payload': True, 'args': args}) @staticmethod def authenticate(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'authenticate', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/auth', 'params': ('orderId',), 'args': args}) @staticmethod def cancel(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def cancel_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def cancel_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def cancel_refund_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'cancel_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def check_ticket(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'check_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/validity', 'params': ('code',), 'args': args}) @staticmethod def count(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'count', 'http_method': 'GET', 'path': '/v1/orders/count', 'params': (), 'args': args}) @staticmethod def count_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'count_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/count', 'params': (), 'args': args}) @staticmethod def create_download_url(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'create_download_url', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId'), 'without_payload': True, 'args': args}) @staticmethod def create_download_url_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'create_download_url_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/items/{itemId}/download/url', 'params': ('orderId', 'itemId'), 'without_payload': True, 'args': args}) @staticmethod def create_fulfillment(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'create_fulfillment', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/fulfillments', 'params': ('orderId',), 'args': args}) @staticmethod def delete(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def delete_fulfillment(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_fulfillment', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId'), 'args': args}) @staticmethod def delete_inventory_operation(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_inventory_operation', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/inventory/operations/{operationId}', 'params': ('orderId', 'operationId'), 'args': args}) @staticmethod def delete_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_metafield', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/meta/{field}', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def delete_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'delete_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def get(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'get', 'http_method': 'GET', 'path': '/v1/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def get_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'get_for_me', 'http_method': 'GET', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def increase_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'increase_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/inc', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def list(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list', 'http_method': 'GET', 'path': '/v1/orders', 'params': (), 'args': args}) @staticmethod def list_by_subscription(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_by_subscription', 'http_method': 'GET', 'path': '/v1/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId',), 'args': args}) @staticmethod def list_by_subscription_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_by_subscription_for_me', 'http_method': 'GET', 'path': '/v1/me/subscriptions/{subscriptionId}/orders', 'params': ('subscriptionId',), 'args': args}) @staticmethod def list_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_for_me', 'http_method': 'GET', 'path': '/v1/me/orders', 'params': (), 'args': args}) @staticmethod def list_inventory_operations(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'list_inventory_operations', 'http_method': 'GET', 'path': '/v1/orders/{orderId}/inventory/operations', 'params': ('orderId',), 'args': args}) @staticmethod def mark_as_done(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_done', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def mark_as_not_received(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_not_received', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId',), 'args': args}) @staticmethod def mark_as_not_received_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_not_received_for_me', 'http_method': 'DELETE', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId',), 'args': args}) @staticmethod def mark_as_received(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_received', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/received', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def mark_as_received_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_received_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/received', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def mark_as_undone(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'mark_as_undone', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/done', 'params': ('orderId',), 'args': args}) @staticmethod def pull_from_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'pull_from_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/pull', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def push_to_metafield(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'push_to_metafield', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/meta/{field}/push', 'params': ('orderId', 'field'), 'args': args}) @staticmethod def register_payment_method(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'register_payment_method', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/transactions/payments/methods', 'params': ('orderId',), 'args': args}) @staticmethod def request_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'request_refund', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds', 'params': ('orderId',), 'args': args}) @staticmethod def request_refund_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'request_refund_for_me', 'http_method': 'POST', 'path': '/v1/me/orders/{orderId}/refunds', 'params': ('orderId',), 'args': args}) @staticmethod def restock_all_refund_items(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'restock_all_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock/all', 'params': ('orderId', 'refundId'), 'without_payload': True, 'args': args}) @staticmethod def restock_refund_items(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'restock_refund_items', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/refunds/{refundId}/restock', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def sync_inventory(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'sync_inventory', 'http_method': 'POST', 'path': '/v1/orders/{orderId}/synced', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def unaccept_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'unaccept_refund', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/refunds/{refundId}/accepted', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def unregister_payment_method(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'unregister_payment_method', 'http_method': 'DELETE', 'path': '/v1/orders/{orderId}/transactions/payments/methods/{paymentMethodId}', 'params': ('orderId', 'paymentMethodId'), 'args': args}) @staticmethod def update(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def update_cancellation(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def update_cancellation_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/cancellation', 'params': ('orderId',), 'args': args}) @staticmethod def update_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}', 'params': ('orderId',), 'args': args}) @staticmethod def update_fulfillment(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_fulfillment', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/fulfillments/{fulfillmentId}', 'params': ('orderId', 'fulfillmentId'), 'args': args}) @staticmethod def update_item(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_item', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/items/{itemId}', 'params': ('orderId', 'itemId'), 'args': args}) @staticmethod def update_refund(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_refund_cancellation(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund_cancellation', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_refund_cancellation_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund_cancellation_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}/cancellation', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_refund_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_refund_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/refunds/{refundId}', 'params': ('orderId', 'refundId'), 'args': args}) @staticmethod def update_transactions(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_transactions', 'http_method': 'PUT', 'path': '/v1/orders/{orderId}/transactions', 'params': ('orderId',), 'args': args}) @staticmethod def update_transactions_for_me(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'update_transactions_for_me', 'http_method': 'PUT', 'path': '/v1/me/orders/{orderId}/transactions', 'params': ('orderId',), 'without_payload': True, 'args': args}) @staticmethod def use_ticket(*args): return Order.Clayful.call_api({'model_name': Order.name, 'method_name': 'use_ticket', 'http_method': 'POST', 'path': '/v1/orders/tickets/{code}/used', 'params': ('code',), 'without_payload': True, 'args': args})
def neighboors(active, x, y, width, height): number = 0 for i in range(-1, 2): for j in range(-1, 2): #Skip the choosen block if 0 <= x+i < width and 0 <= y+j < height: if i == 0 and j == 0: pass elif active[x+i][y+j] == 1: number += 1 print(str(x+i) + ", " + str(y+j) + ": " + str(active[x+i][y+j])) return number tab = [ [1, 0, 0], [1, 0, 0], [1, 1, 1]] x, y = 1, 1 width, height = 3, 3 print(neighboors(tab, 0, 1, width, height))
def neighboors(active, x, y, width, height): number = 0 for i in range(-1, 2): for j in range(-1, 2): if 0 <= x + i < width and 0 <= y + j < height: if i == 0 and j == 0: pass elif active[x + i][y + j] == 1: number += 1 print(str(x + i) + ', ' + str(y + j) + ': ' + str(active[x + i][y + j])) return number tab = [[1, 0, 0], [1, 0, 0], [1, 1, 1]] (x, y) = (1, 1) (width, height) = (3, 3) print(neighboors(tab, 0, 1, width, height))
''' --- Day 10: Balance botValues --- You come upon a factory in which many robots are zooming around handing small microchips to each other. Upon closer examination, you notice that each bot only proceeds when it has two microchips, and once it does, it gives each one to a different bot or puts it in a marked "output" bin. Sometimes, botValues take microchips from "input" bins, too. Inspecting one of the microchips, it seems like they each contain a single number; the botValues must use some logic to decide what to do with each chip. You access the local control computer and download the botValues' instructions (your puzzle input). Some of the instructions specify that a specific-valued microchip should be given to a specific bot; the rest of the instructions indicate what a given bot should do with its lower-value or higher-value chip. For example, consider the following instructions: value 5 goes to bot 2 bot 2 gives low to bot 1 and high to bot 0 value 3 goes to bot 1 bot 1 gives low to output 1 and high to bot 0 bot 0 gives low to output 2 and high to output 0 value 2 goes to bot 2 Initially, bot 1 starts with a value-3 chip, and bot 2 starts with a value-2 chip and a value-5 chip. Because bot 2 has two microchips, it gives its lower one (2) to bot 1 and its higher one (5) to bot 0. Then, bot 1 has two microchips; it puts the value-2 chip in output 1 and gives the value-3 chip to bot 0. Finally, bot 0 has two microchips; it puts the 3 in output 2 and the 5 in output 0. In the end, output bin 0 contains a value-5 microchip, output bin 1 contains a value-2 microchip, and output bin 2 contains a value-3 microchip. In this configuration, bot number 2 is responsible for comparing value-5 microchips with value-2 microchips. Based on your instructions, what is the number of the bot that is responsible for comparing value-61 microchips with value-17 microchips? input: str output: int ''' inFile = open("10.txt",'r') valFile = open("10.txt",'r') #inFile = open("10a.txt",'r') #valFile = open("10a.txt",'r') lChip = '17' hChip = '61' #lChip = 2 #hChip = 5 botValues = {} instructions = {} def activate(target,value): if target not in botValues: botValues[target] = [value] else: botValues[target].append(value) if len(botValues[target]) > 1: lowBot = instructions[target][0] highBot = instructions[target][1] lowVal, highVal = sorted(botValues[target],key=lambda x:int(x)) botValues[target] = [] if lowVal == lChip and highVal == hChip: print("Number of the bot which compares chips",highVal,"and",lowVal,"is:",target.split()[1]) activate(lowBot,lowVal) activate(highBot,highVal) for _ in inFile: inst = _.split() if inst[0] == "bot": active = " ".join([inst[0],inst[1]]) low = " ".join([inst[5],inst[6]]) high = " ".join([inst[10],inst[11]]) instructions[active] = [low,high] for _ in valFile: inst = _.split() if inst[0] == "value": value = inst[1] target = " ".join([inst[4],inst[5]]) activate(target,value)
""" --- Day 10: Balance botValues --- You come upon a factory in which many robots are zooming around handing small microchips to each other. Upon closer examination, you notice that each bot only proceeds when it has two microchips, and once it does, it gives each one to a different bot or puts it in a marked "output" bin. Sometimes, botValues take microchips from "input" bins, too. Inspecting one of the microchips, it seems like they each contain a single number; the botValues must use some logic to decide what to do with each chip. You access the local control computer and download the botValues' instructions (your puzzle input). Some of the instructions specify that a specific-valued microchip should be given to a specific bot; the rest of the instructions indicate what a given bot should do with its lower-value or higher-value chip. For example, consider the following instructions: value 5 goes to bot 2 bot 2 gives low to bot 1 and high to bot 0 value 3 goes to bot 1 bot 1 gives low to output 1 and high to bot 0 bot 0 gives low to output 2 and high to output 0 value 2 goes to bot 2 Initially, bot 1 starts with a value-3 chip, and bot 2 starts with a value-2 chip and a value-5 chip. Because bot 2 has two microchips, it gives its lower one (2) to bot 1 and its higher one (5) to bot 0. Then, bot 1 has two microchips; it puts the value-2 chip in output 1 and gives the value-3 chip to bot 0. Finally, bot 0 has two microchips; it puts the 3 in output 2 and the 5 in output 0. In the end, output bin 0 contains a value-5 microchip, output bin 1 contains a value-2 microchip, and output bin 2 contains a value-3 microchip. In this configuration, bot number 2 is responsible for comparing value-5 microchips with value-2 microchips. Based on your instructions, what is the number of the bot that is responsible for comparing value-61 microchips with value-17 microchips? input: str output: int """ in_file = open('10.txt', 'r') val_file = open('10.txt', 'r') l_chip = '17' h_chip = '61' bot_values = {} instructions = {} def activate(target, value): if target not in botValues: botValues[target] = [value] else: botValues[target].append(value) if len(botValues[target]) > 1: low_bot = instructions[target][0] high_bot = instructions[target][1] (low_val, high_val) = sorted(botValues[target], key=lambda x: int(x)) botValues[target] = [] if lowVal == lChip and highVal == hChip: print('Number of the bot which compares chips', highVal, 'and', lowVal, 'is:', target.split()[1]) activate(lowBot, lowVal) activate(highBot, highVal) for _ in inFile: inst = _.split() if inst[0] == 'bot': active = ' '.join([inst[0], inst[1]]) low = ' '.join([inst[5], inst[6]]) high = ' '.join([inst[10], inst[11]]) instructions[active] = [low, high] for _ in valFile: inst = _.split() if inst[0] == 'value': value = inst[1] target = ' '.join([inst[4], inst[5]]) activate(target, value)
#conjunto de cartas class Card: def __init__(self,suit,value): super().__init__() self.suit =suit self.value = value #reescribimos la salida al imprimir def __repr__(self): return " of ".join((self.value,self.suit))
class Card: def __init__(self, suit, value): super().__init__() self.suit = suit self.value = value def __repr__(self): return ' of '.join((self.value, self.suit))
#!/usr/bin/python filename = input("Please enter your file name: ") with open(filename, 'r') as f: lines = f.readlines() l = list(line.rstrip('\n') for line in lines) measurements_count = 0 while len(l) != 1: if l[0] < l[1]: measurements_count += 1 del(l[0]) else: print(f"There are {measurements_count} measurments larger than the previous measurment.")
filename = input('Please enter your file name: ') with open(filename, 'r') as f: lines = f.readlines() l = list((line.rstrip('\n') for line in lines)) measurements_count = 0 while len(l) != 1: if l[0] < l[1]: measurements_count += 1 del l[0] else: print(f'There are {measurements_count} measurments larger than the previous measurment.')
class BasePlugin: name = None description = None package_name = None class ExportPlugin(BasePlugin): format_type = None def format(self): raise NotImplementedError() def help(self): return f"For help check the official documentation for '{self.package_name}' plugin."
class Baseplugin: name = None description = None package_name = None class Exportplugin(BasePlugin): format_type = None def format(self): raise not_implemented_error() def help(self): return f"For help check the official documentation for '{self.package_name}' plugin."
''' A builder design pattern is a type of design pattern in which large complex objects are created without letting end user know about the complexity fo teh objects E.g: In the example below teh document object is made up of text,image, line, table objects but the end used is not aware of creation of all these objects separately ''' class Document: def __init__(self): print("Creating Document object") self.text_obj=Text() self.img_obj=Image() self.line_obj=Line() self.table_obj=Table() class Text: def __init__(self): print("creating text object") class Image: def __init__(self): print("creating image object") class Line: def __init__(self): print("creating line object") class Table: def __init__(self): print("creating table object") doc=Document()
""" A builder design pattern is a type of design pattern in which large complex objects are created without letting end user know about the complexity fo teh objects E.g: In the example below teh document object is made up of text,image, line, table objects but the end used is not aware of creation of all these objects separately """ class Document: def __init__(self): print('Creating Document object') self.text_obj = text() self.img_obj = image() self.line_obj = line() self.table_obj = table() class Text: def __init__(self): print('creating text object') class Image: def __init__(self): print('creating image object') class Line: def __init__(self): print('creating line object') class Table: def __init__(self): print('creating table object') doc = document()
# -*- coding: utf-8 -*- class Data: def __init__(self, d): seqs = tuple, list, set, frozenset for i, j in d.items(): if isinstance(j, dict): setattr(self, i, Data(j)) elif isinstance(j, seqs): setattr(self, i, type(j)(Data(sj) if isinstance(sj, dict) else sj for sj in j)) else: setattr(self, i, j) def _copy(self): return self.__copy__() def __copy__(self): return Data(self.__dict__.copy()) def __repr__(self): return "<Data " + repr(self.__dict__) + ">" def __iter__(self): return iter(self.__dict__)
class Data: def __init__(self, d): seqs = (tuple, list, set, frozenset) for (i, j) in d.items(): if isinstance(j, dict): setattr(self, i, data(j)) elif isinstance(j, seqs): setattr(self, i, type(j)((data(sj) if isinstance(sj, dict) else sj for sj in j))) else: setattr(self, i, j) def _copy(self): return self.__copy__() def __copy__(self): return data(self.__dict__.copy()) def __repr__(self): return '<Data ' + repr(self.__dict__) + '>' def __iter__(self): return iter(self.__dict__)
#! /usr/bin/env python3 days = int(input("Enter days:")) months = days // 30 days = days % 30 print("Months = {} Days = {}".format(months, days))
days = int(input('Enter days:')) months = days // 30 days = days % 30 print('Months = {} Days = {}'.format(months, days))
# # PySNMP MIB module CISCO-ITP-TC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-ITP-TC-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:46:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint") ciscoMgmt, = mibBuilder.importSymbols("CISCO-SMI", "ciscoMgmt") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, iso, NotificationType, Counter32, Counter64, Unsigned32, ModuleIdentity, Bits, ObjectIdentity, MibIdentifier, TimeTicks, Integer32, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "iso", "NotificationType", "Counter32", "Counter64", "Unsigned32", "ModuleIdentity", "Bits", "ObjectIdentity", "MibIdentifier", "TimeTicks", "Integer32", "IpAddress") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") ciscoItpTextualConventions = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 9, 231)) ciscoItpTextualConventions.setRevisions(('2004-04-26 00:00', '2003-08-03 00:00', '2003-01-29 00:00', '2001-12-11 00:00', '2001-10-01 00:00',)) if mibBuilder.loadTexts: ciscoItpTextualConventions.setLastUpdated('200404260000Z') if mibBuilder.loadTexts: ciscoItpTextualConventions.setOrganization('Cisco Systems, Inc.') class CItpTcAclId(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2700, 2999), ) class CItpTcCLLI(TextualConvention, OctetString): reference = 'Complete listings of geographical and geopolitical codes can be found in the BR 751-401-xxx series and BR 751-100-055, respectively.' status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 11) class CItpTcDisplayPC(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 12) class CItpTcEncodingSchemeValue(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 15) class CItpTcGlobalTitleSelector(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("nai", 1), ("tt", 2), ("ttNpEs", 3), ("ttNpNaiEs", 4)) class CItpTcGlobalTitleSelectorName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 9) class CItpTcGtaAddr(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(8, 8) fixedLength = 8 class CItpTcGtaLongAddr(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 64) class CItpTcGtaDisplay(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 15) class CItpTcGtaDisplayZB(TextualConvention, OctetString): status = 'deprecated' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 15) class CItpTcGtaLongDisplay(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 64) class CItpTcGtaDisplayLen(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1, 15) class CItpTcGtaLongDisplayLen(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 64) class CItpTcNetworkName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 19) class CItpTcInstanceNumber(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcLinksetId(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 19) class CItpTcLinkSLC(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 15) class CItpTcLinkType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("other", 1), ("serial", 2), ("sctpIp", 3), ("hsl", 4), ("virtual", 5)) class CItpTcNAI(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcNetworkIndicator(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3)) namedValues = NamedValues(("international", 0), ("internationatSpare", 1), ("national", 2), ("nationalSpare", 3)) class CItpTcNumberingPlan(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcPointCode(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes. GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 16777216) class CItpTcPointCodeMask(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes.' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 16777216) class CItpTcPointCodeType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("primary", 1), ("additional", 2), ("capability", 3), ("xua", 4)) class CItpTcQos(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 7), ValueRangeConstraint(255, 255), ) class CItpTcRouteTableName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(1, 19) class CItpTcServiceIndicator(TextualConvention, Integer32): reference = 'ITU Q.704 Signalling network functions and messages section 14.2.1 Service indicator.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) namedValues = NamedValues(("snmm", 0), ("sntm", 1), ("spare2", 2), ("sccp", 3), ("tup", 4), ("isup", 5), ("dupc", 6), ("dupf", 7), ("mtup", 8), ("bisup", 9), ("sisup", 10), ("spare11", 11), ("spare12", 12), ("spare13", 13), ("spare14", 14), ("spare15", 15)) class CItpTcSls(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(0, 255) class CItpTcSs7Variant(TextualConvention, Integer32): reference = 'GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3)) namedValues = NamedValues(("ansi", 1), ("itu", 2), ("china", 3)) class CItpTcSubSystemNumber(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2, 255), ) class CItpTcSubSystemNumberMask(TextualConvention, Unsigned32): status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(2, 255) class CItpTcTableLoadStatus(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5)) namedValues = NamedValues(("loadNotRequested", 1), ("loadInProgress", 2), ("loadComplete", 3), ("loadCompleteWithErrors", 4), ("loadFailed", 5)) class CItpTcTimerMtp2T01(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(5000, 150000) class CItpTcTimerMtp2T02(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 150000), ) class CItpTcTimerMtp2T03(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1000, 14000), ) class CItpTcTimerMtp2T04E(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(400, 660), ) class CItpTcTimerMtp2T04N(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2007, 9500), ) class CItpTcTimerMtp2T05(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(80, 120), ) class CItpTcTimerMtp2T06(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1000, 6000) class CItpTcTimerMtp2T07(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(100, 6000), ) class CItpTcTimerMtp3T01(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T02(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(700, 2000) class CItpTcTimerMtp3T03(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T04(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T05(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T06(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 1200) class CItpTcTimerMtp3T07(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(1000, 2000), ) class CItpTcTimerMtp3T08(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1200) class CItpTcTimerMtp3T10(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(30000, 60000) class CItpTcTimerMtp3T11(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(30000, 90000) class CItpTcTimerMtp3T12(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1500) class CItpTcTimerMtp3T13(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1500) class CItpTcTimerMtp3T14(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(2000, 3000) class CItpTcTimerMtp3T15(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(2000, 3000) class CItpTcTimerMtp3T16(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1400, 2000) class CItpTcTimerMtp3T17(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(800, 1500) class CItpTcTimerMtp3T18(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1000, 31000) class CItpTcTimerMtp3T19(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(67000, 600000) class CItpTcTimerMtp3T20(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(1000, 120000) class CItpTcTimerMtp3T21(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(63000, 120000) class CItpTcTimerMtp3T22(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(36000, 360000) class CItpTcTimerMtp3T23(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(9000, 360000) class CItpTcTimerMtp3T24(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ValueRangeConstraint(500, 60000) class CItpTcTimerMtp3T25(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(30000, 35000), ) class CItpTcTimerMtp3T26(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(12000, 15000), ) class CItpTcTimerMtp3T27(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 50000), ) class CItpTcTimerMtp3T28(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3000, 35000), ) class CItpTcTimerMtp3T29(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60000, 65000), ) class CItpTcTimerMtp3T30(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(30000, 35000), ) class CItpTcTimerMtp3T31(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(10000, 120000), ) class CItpTcTimerMtp3T32(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 120000), ) class CItpTcTimerMtp3T33(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60000, 600000), ) class CItpTcTimerMtp3T34(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(5000, 120000), ) class CItpTcTimerLinkTest(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(4000, 12000), ) class CItpTcTimerLinkMessage(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(30000, 90000), ) class CItpTcTimerLinkActRetry(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtypeSpec = Unsigned32.subtypeSpec + ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(60000, 90000), ) class CItpTcTranslationType(TextualConvention, Integer32): status = 'current' subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("tt", 1), ("ssn", 2)) class CItpTcURL(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 255) class CItpTcXuaName(TextualConvention, OctetString): status = 'current' subtypeSpec = OctetString.subtypeSpec + ValueSizeConstraint(0, 12) mibBuilder.exportSymbols("CISCO-ITP-TC-MIB", CItpTcPointCodeMask=CItpTcPointCodeMask, CItpTcTimerMtp3T13=CItpTcTimerMtp3T13, CItpTcTimerMtp3T32=CItpTcTimerMtp3T32, CItpTcTimerMtp3T05=CItpTcTimerMtp3T05, CItpTcLinkType=CItpTcLinkType, CItpTcTimerMtp3T15=CItpTcTimerMtp3T15, CItpTcTimerMtp3T20=CItpTcTimerMtp3T20, CItpTcXuaName=CItpTcXuaName, CItpTcTimerMtp3T28=CItpTcTimerMtp3T28, CItpTcTimerMtp3T17=CItpTcTimerMtp3T17, CItpTcTimerMtp3T08=CItpTcTimerMtp3T08, CItpTcNumberingPlan=CItpTcNumberingPlan, CItpTcGlobalTitleSelector=CItpTcGlobalTitleSelector, CItpTcTimerMtp3T06=CItpTcTimerMtp3T06, CItpTcTimerMtp3T11=CItpTcTimerMtp3T11, CItpTcGtaDisplayZB=CItpTcGtaDisplayZB, CItpTcTimerMtp2T02=CItpTcTimerMtp2T02, CItpTcDisplayPC=CItpTcDisplayPC, CItpTcTimerMtp3T19=CItpTcTimerMtp3T19, CItpTcRouteTableName=CItpTcRouteTableName, CItpTcTimerMtp3T24=CItpTcTimerMtp3T24, CItpTcTimerMtp3T01=CItpTcTimerMtp3T01, CItpTcTimerMtp3T16=CItpTcTimerMtp3T16, CItpTcTimerMtp3T07=CItpTcTimerMtp3T07, CItpTcTimerMtp3T12=CItpTcTimerMtp3T12, CItpTcTimerMtp3T22=CItpTcTimerMtp3T22, CItpTcLinkSLC=CItpTcLinkSLC, CItpTcTimerMtp3T03=CItpTcTimerMtp3T03, CItpTcTimerMtp2T05=CItpTcTimerMtp2T05, CItpTcTimerMtp3T18=CItpTcTimerMtp3T18, CItpTcPointCode=CItpTcPointCode, CItpTcSubSystemNumber=CItpTcSubSystemNumber, CItpTcSubSystemNumberMask=CItpTcSubSystemNumberMask, ciscoItpTextualConventions=ciscoItpTextualConventions, CItpTcSls=CItpTcSls, CItpTcSs7Variant=CItpTcSs7Variant, CItpTcLinksetId=CItpTcLinksetId, CItpTcTableLoadStatus=CItpTcTableLoadStatus, CItpTcTimerMtp3T04=CItpTcTimerMtp3T04, CItpTcAclId=CItpTcAclId, CItpTcTimerMtp3T23=CItpTcTimerMtp3T23, CItpTcInstanceNumber=CItpTcInstanceNumber, CItpTcTimerMtp3T02=CItpTcTimerMtp3T02, CItpTcTimerMtp3T31=CItpTcTimerMtp3T31, CItpTcPointCodeType=CItpTcPointCodeType, CItpTcTimerLinkTest=CItpTcTimerLinkTest, CItpTcTimerMtp3T29=CItpTcTimerMtp3T29, CItpTcTimerMtp2T04N=CItpTcTimerMtp2T04N, CItpTcTimerMtp3T26=CItpTcTimerMtp3T26, CItpTcTimerMtp3T14=CItpTcTimerMtp3T14, CItpTcTimerLinkMessage=CItpTcTimerLinkMessage, CItpTcNetworkIndicator=CItpTcNetworkIndicator, CItpTcEncodingSchemeValue=CItpTcEncodingSchemeValue, CItpTcTimerLinkActRetry=CItpTcTimerLinkActRetry, CItpTcTimerMtp3T34=CItpTcTimerMtp3T34, CItpTcTimerMtp3T30=CItpTcTimerMtp3T30, CItpTcCLLI=CItpTcCLLI, CItpTcServiceIndicator=CItpTcServiceIndicator, CItpTcTimerMtp2T07=CItpTcTimerMtp2T07, CItpTcNetworkName=CItpTcNetworkName, CItpTcTimerMtp2T01=CItpTcTimerMtp2T01, CItpTcTranslationType=CItpTcTranslationType, CItpTcGlobalTitleSelectorName=CItpTcGlobalTitleSelectorName, CItpTcTimerMtp3T21=CItpTcTimerMtp3T21, CItpTcGtaLongDisplayLen=CItpTcGtaLongDisplayLen, CItpTcGtaDisplayLen=CItpTcGtaDisplayLen, CItpTcGtaLongDisplay=CItpTcGtaLongDisplay, CItpTcGtaLongAddr=CItpTcGtaLongAddr, CItpTcTimerMtp2T06=CItpTcTimerMtp2T06, CItpTcGtaDisplay=CItpTcGtaDisplay, CItpTcURL=CItpTcURL, CItpTcTimerMtp2T03=CItpTcTimerMtp2T03, CItpTcTimerMtp3T10=CItpTcTimerMtp3T10, CItpTcGtaAddr=CItpTcGtaAddr, CItpTcNAI=CItpTcNAI, CItpTcTimerMtp3T27=CItpTcTimerMtp3T27, CItpTcQos=CItpTcQos, CItpTcTimerMtp3T33=CItpTcTimerMtp3T33, CItpTcTimerMtp3T25=CItpTcTimerMtp3T25, PYSNMP_MODULE_ID=ciscoItpTextualConventions, CItpTcTimerMtp2T04E=CItpTcTimerMtp2T04E)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_intersection, constraints_union, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint', 'ValueSizeConstraint') (cisco_mgmt,) = mibBuilder.importSymbols('CISCO-SMI', 'ciscoMgmt') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, iso, notification_type, counter32, counter64, unsigned32, module_identity, bits, object_identity, mib_identifier, time_ticks, integer32, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'iso', 'NotificationType', 'Counter32', 'Counter64', 'Unsigned32', 'ModuleIdentity', 'Bits', 'ObjectIdentity', 'MibIdentifier', 'TimeTicks', 'Integer32', 'IpAddress') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') cisco_itp_textual_conventions = module_identity((1, 3, 6, 1, 4, 1, 9, 9, 231)) ciscoItpTextualConventions.setRevisions(('2004-04-26 00:00', '2003-08-03 00:00', '2003-01-29 00:00', '2001-12-11 00:00', '2001-10-01 00:00')) if mibBuilder.loadTexts: ciscoItpTextualConventions.setLastUpdated('200404260000Z') if mibBuilder.loadTexts: ciscoItpTextualConventions.setOrganization('Cisco Systems, Inc.') class Citptcaclid(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2700, 2999)) class Citptcclli(TextualConvention, OctetString): reference = 'Complete listings of geographical and geopolitical codes can be found in the BR 751-401-xxx series and BR 751-100-055, respectively.' status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 11) class Citptcdisplaypc(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 12) class Citptcencodingschemevalue(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 15) class Citptcglobaltitleselector(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('nai', 1), ('tt', 2), ('ttNpEs', 3), ('ttNpNaiEs', 4)) class Citptcglobaltitleselectorname(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 9) class Citptcgtaaddr(TextualConvention, OctetString): status = 'deprecated' subtype_spec = OctetString.subtypeSpec + value_size_constraint(8, 8) fixed_length = 8 class Citptcgtalongaddr(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 64) class Citptcgtadisplay(TextualConvention, OctetString): status = 'deprecated' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 15) class Citptcgtadisplayzb(TextualConvention, OctetString): status = 'deprecated' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 15) class Citptcgtalongdisplay(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 64) class Citptcgtadisplaylen(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1, 15) class Citptcgtalongdisplaylen(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 64) class Citptcnetworkname(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 19) class Citptcinstancenumber(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 255) class Citptclinksetid(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 19) class Citptclinkslc(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 15) class Citptclinktype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('other', 1), ('serial', 2), ('sctpIp', 3), ('hsl', 4), ('virtual', 5)) class Citptcnai(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 255) class Citptcnetworkindicator(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3)) named_values = named_values(('international', 0), ('internationatSpare', 1), ('national', 2), ('nationalSpare', 3)) class Citptcnumberingplan(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + value_range_constraint(0, 255) class Citptcpointcode(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes. GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 16777216) class Citptcpointcodemask(TextualConvention, Unsigned32): reference = 'The SS7 network node address as specified in the International Telecommunication Union standard Q.708: Specifications of Signalling System No. 7 - Numbering of International Signalling Point Codes, and by ANSI T1.111.8 Numbering of Signalling Point Codes.' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 16777216) class Citptcpointcodetype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4)) named_values = named_values(('primary', 1), ('additional', 2), ('capability', 3), ('xua', 4)) class Citptcqos(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 7), value_range_constraint(255, 255)) class Citptcroutetablename(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(1, 19) class Citptcserviceindicator(TextualConvention, Integer32): reference = 'ITU Q.704 Signalling network functions and messages section 14.2.1 Service indicator.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)) named_values = named_values(('snmm', 0), ('sntm', 1), ('spare2', 2), ('sccp', 3), ('tup', 4), ('isup', 5), ('dupc', 6), ('dupf', 7), ('mtup', 8), ('bisup', 9), ('sisup', 10), ('spare11', 11), ('spare12', 12), ('spare13', 13), ('spare14', 14), ('spare15', 15)) class Citptcsls(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(0, 255) class Citptcss7Variant(TextualConvention, Integer32): reference = 'GF 001-9001 - Technical Specifications of Signalling System No. 7 for National Telephone Network of China.' status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3)) named_values = named_values(('ansi', 1), ('itu', 2), ('china', 3)) class Citptcsubsystemnumber(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2, 255)) class Citptcsubsystemnumbermask(TextualConvention, Unsigned32): status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(2, 255) class Citptctableloadstatus(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2, 3, 4, 5)) named_values = named_values(('loadNotRequested', 1), ('loadInProgress', 2), ('loadComplete', 3), ('loadCompleteWithErrors', 4), ('loadFailed', 5)) class Citptctimermtp2T01(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(5000, 150000) class Citptctimermtp2T02(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 150000)) class Citptctimermtp2T03(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(1000, 14000)) class Citptctimermtp2T04E(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(400, 660)) class Citptctimermtp2T04N(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2007, 9500)) class Citptctimermtp2T05(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(80, 120)) class Citptctimermtp2T06(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1000, 6000) class Citptctimermtp2T07(TextualConvention, Unsigned32): reference = 'ITU Q.703 Signalling Link. ANSI T1.111.3 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(100, 6000)) class Citptctimermtp3T01(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T02(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(700, 2000) class Citptctimermtp3T03(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T04(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T05(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T06(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 1200) class Citptctimermtp3T07(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(1000, 2000)) class Citptctimermtp3T08(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1200) class Citptctimermtp3T10(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(30000, 60000) class Citptctimermtp3T11(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(30000, 90000) class Citptctimermtp3T12(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1500) class Citptctimermtp3T13(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1500) class Citptctimermtp3T14(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(2000, 3000) class Citptctimermtp3T15(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(2000, 3000) class Citptctimermtp3T16(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1400, 2000) class Citptctimermtp3T17(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(800, 1500) class Citptctimermtp3T18(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1000, 31000) class Citptctimermtp3T19(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(67000, 600000) class Citptctimermtp3T20(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(1000, 120000) class Citptctimermtp3T21(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(63000, 120000) class Citptctimermtp3T22(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(36000, 360000) class Citptctimermtp3T23(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(9000, 360000) class Citptctimermtp3T24(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + value_range_constraint(500, 60000) class Citptctimermtp3T25(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(30000, 35000)) class Citptctimermtp3T26(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(12000, 15000)) class Citptctimermtp3T27(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 50000)) class Citptctimermtp3T28(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(3000, 35000)) class Citptctimermtp3T29(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(60000, 65000)) class Citptctimermtp3T30(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(30000, 35000)) class Citptctimermtp3T31(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(10000, 120000)) class Citptctimermtp3T32(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 120000)) class Citptctimermtp3T33(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(60000, 600000)) class Citptctimermtp3T34(TextualConvention, Unsigned32): reference = 'ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP)' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(5000, 120000)) class Citptctimerlinktest(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(4000, 12000)) class Citptctimerlinkmessage(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(30000, 90000)) class Citptctimerlinkactretry(TextualConvention, Unsigned32): reference = 'ITU Q.704 Signalling network functions and messages. ANSI T1.111 Telecommunications - Signalling system No. 7 (SS7)-Message Transfer Part (MTP).' status = 'current' subtype_spec = Unsigned32.subtypeSpec + constraints_union(value_range_constraint(0, 0), value_range_constraint(60000, 90000)) class Citptctranslationtype(TextualConvention, Integer32): status = 'current' subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2)) named_values = named_values(('tt', 1), ('ssn', 2)) class Citptcurl(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 255) class Citptcxuaname(TextualConvention, OctetString): status = 'current' subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 12) mibBuilder.exportSymbols('CISCO-ITP-TC-MIB', CItpTcPointCodeMask=CItpTcPointCodeMask, CItpTcTimerMtp3T13=CItpTcTimerMtp3T13, CItpTcTimerMtp3T32=CItpTcTimerMtp3T32, CItpTcTimerMtp3T05=CItpTcTimerMtp3T05, CItpTcLinkType=CItpTcLinkType, CItpTcTimerMtp3T15=CItpTcTimerMtp3T15, CItpTcTimerMtp3T20=CItpTcTimerMtp3T20, CItpTcXuaName=CItpTcXuaName, CItpTcTimerMtp3T28=CItpTcTimerMtp3T28, CItpTcTimerMtp3T17=CItpTcTimerMtp3T17, CItpTcTimerMtp3T08=CItpTcTimerMtp3T08, CItpTcNumberingPlan=CItpTcNumberingPlan, CItpTcGlobalTitleSelector=CItpTcGlobalTitleSelector, CItpTcTimerMtp3T06=CItpTcTimerMtp3T06, CItpTcTimerMtp3T11=CItpTcTimerMtp3T11, CItpTcGtaDisplayZB=CItpTcGtaDisplayZB, CItpTcTimerMtp2T02=CItpTcTimerMtp2T02, CItpTcDisplayPC=CItpTcDisplayPC, CItpTcTimerMtp3T19=CItpTcTimerMtp3T19, CItpTcRouteTableName=CItpTcRouteTableName, CItpTcTimerMtp3T24=CItpTcTimerMtp3T24, CItpTcTimerMtp3T01=CItpTcTimerMtp3T01, CItpTcTimerMtp3T16=CItpTcTimerMtp3T16, CItpTcTimerMtp3T07=CItpTcTimerMtp3T07, CItpTcTimerMtp3T12=CItpTcTimerMtp3T12, CItpTcTimerMtp3T22=CItpTcTimerMtp3T22, CItpTcLinkSLC=CItpTcLinkSLC, CItpTcTimerMtp3T03=CItpTcTimerMtp3T03, CItpTcTimerMtp2T05=CItpTcTimerMtp2T05, CItpTcTimerMtp3T18=CItpTcTimerMtp3T18, CItpTcPointCode=CItpTcPointCode, CItpTcSubSystemNumber=CItpTcSubSystemNumber, CItpTcSubSystemNumberMask=CItpTcSubSystemNumberMask, ciscoItpTextualConventions=ciscoItpTextualConventions, CItpTcSls=CItpTcSls, CItpTcSs7Variant=CItpTcSs7Variant, CItpTcLinksetId=CItpTcLinksetId, CItpTcTableLoadStatus=CItpTcTableLoadStatus, CItpTcTimerMtp3T04=CItpTcTimerMtp3T04, CItpTcAclId=CItpTcAclId, CItpTcTimerMtp3T23=CItpTcTimerMtp3T23, CItpTcInstanceNumber=CItpTcInstanceNumber, CItpTcTimerMtp3T02=CItpTcTimerMtp3T02, CItpTcTimerMtp3T31=CItpTcTimerMtp3T31, CItpTcPointCodeType=CItpTcPointCodeType, CItpTcTimerLinkTest=CItpTcTimerLinkTest, CItpTcTimerMtp3T29=CItpTcTimerMtp3T29, CItpTcTimerMtp2T04N=CItpTcTimerMtp2T04N, CItpTcTimerMtp3T26=CItpTcTimerMtp3T26, CItpTcTimerMtp3T14=CItpTcTimerMtp3T14, CItpTcTimerLinkMessage=CItpTcTimerLinkMessage, CItpTcNetworkIndicator=CItpTcNetworkIndicator, CItpTcEncodingSchemeValue=CItpTcEncodingSchemeValue, CItpTcTimerLinkActRetry=CItpTcTimerLinkActRetry, CItpTcTimerMtp3T34=CItpTcTimerMtp3T34, CItpTcTimerMtp3T30=CItpTcTimerMtp3T30, CItpTcCLLI=CItpTcCLLI, CItpTcServiceIndicator=CItpTcServiceIndicator, CItpTcTimerMtp2T07=CItpTcTimerMtp2T07, CItpTcNetworkName=CItpTcNetworkName, CItpTcTimerMtp2T01=CItpTcTimerMtp2T01, CItpTcTranslationType=CItpTcTranslationType, CItpTcGlobalTitleSelectorName=CItpTcGlobalTitleSelectorName, CItpTcTimerMtp3T21=CItpTcTimerMtp3T21, CItpTcGtaLongDisplayLen=CItpTcGtaLongDisplayLen, CItpTcGtaDisplayLen=CItpTcGtaDisplayLen, CItpTcGtaLongDisplay=CItpTcGtaLongDisplay, CItpTcGtaLongAddr=CItpTcGtaLongAddr, CItpTcTimerMtp2T06=CItpTcTimerMtp2T06, CItpTcGtaDisplay=CItpTcGtaDisplay, CItpTcURL=CItpTcURL, CItpTcTimerMtp2T03=CItpTcTimerMtp2T03, CItpTcTimerMtp3T10=CItpTcTimerMtp3T10, CItpTcGtaAddr=CItpTcGtaAddr, CItpTcNAI=CItpTcNAI, CItpTcTimerMtp3T27=CItpTcTimerMtp3T27, CItpTcQos=CItpTcQos, CItpTcTimerMtp3T33=CItpTcTimerMtp3T33, CItpTcTimerMtp3T25=CItpTcTimerMtp3T25, PYSNMP_MODULE_ID=ciscoItpTextualConventions, CItpTcTimerMtp2T04E=CItpTcTimerMtp2T04E)
nums = [1, 2, 3, 4, 5] for num in nums: print(num+1) print('-------------') for i in range(3): print(i)
nums = [1, 2, 3, 4, 5] for num in nums: print(num + 1) print('-------------') for i in range(3): print(i)
class Node: def __init__(self, data: int): self.data: int = data self.next: Node = None class LinkedList: def __init__(self, head: Node = None): self.head = head def push(self, data: int): node = Node(data) if not self.head: self.head = node else: h = self.head while h.next: h = h.next h.next = node return self def __len__(self): head: Node = self.head count: int = 0 while head: count += 1 head = head.next return count
class Node: def __init__(self, data: int): self.data: int = data self.next: Node = None class Linkedlist: def __init__(self, head: Node=None): self.head = head def push(self, data: int): node = node(data) if not self.head: self.head = node else: h = self.head while h.next: h = h.next h.next = node return self def __len__(self): head: Node = self.head count: int = 0 while head: count += 1 head = head.next return count
def convert(file_1, file_2, file_out): def read_origin(file_in): # Dumps from sfrolov are raw arrays of bytes strictly following the internal address space of 1/2 of BRP unit. return file_in.read() if file_in is not None else bytes(2048) def write_derivative(bytes_4096, file_out): s = bytes_4096.hex('\t').expandtabs(2) # Writes bytes in rows of 8. file_out.write(''.join([s[i:i + 8*4].strip() + '\n' for i in range(0, len(s), 8*4)])) write_derivative(read_origin(file_1) + read_origin(file_2), file_out) convert(open('BRP2-1.BIN', 'rb'), open('BRP2-2.BIN', 'rb'), open('brp-2-directly.hex', 'w')) convert(open('BRP2-1A.BIN', 'rb'), open('BRP2-2A.BIN', 'rb'), open('brp-2-directly-bis.hex', 'w')) convert(open('brp3-0005-P2-1.BIN', 'rb'), open('brp3-0005-P2-2.BIN', 'rb'), open('brp-2.hex', 'w')) convert(open('brp3-0005-P2A-1.BIN', 'rb'), open('brp3-0005-P2A-2.BIN', 'rb'), open('brp-2-bis.hex', 'w')) convert(open('brp3-0005-P1-1.BIN', 'rb'), open('brp3-0005-P1-2.BIN', 'rb'), open('brp-3.hex', 'w')) convert(open('brp3-0005-P1A-1.BIN', 'rb'), open('brp3-0005-P1A-2.BIN', 'rb'), open('brp-3-bis.hex', 'w')) convert(open('BRP4-0006-P2-1.BIN', 'rb'), open('BRP4-0006-P2-2.BIN', 'rb'), open('brp-4.hex', 'w')) convert(open('BRP4-0006-P2-1A.BIN', 'rb'), open('BRP4-0006-P2-2A.BIN', 'rb'), open('brp-4-bis.hex', 'w')) convert(open('BRP4-0006-P1-1.BIN', 'rb'), open('BRP4-0006-P1-2.BIN', 'rb'), open('brp-5.hex', 'w')) convert(open('BRP4-0006-P1-1A.BIN', 'rb'), open('BRP4-0006-P1-2A.BIN', 'rb'), open('brp-5-bis.hex', 'w'))
def convert(file_1, file_2, file_out): def read_origin(file_in): return file_in.read() if file_in is not None else bytes(2048) def write_derivative(bytes_4096, file_out): s = bytes_4096.hex('\t').expandtabs(2) file_out.write(''.join([s[i:i + 8 * 4].strip() + '\n' for i in range(0, len(s), 8 * 4)])) write_derivative(read_origin(file_1) + read_origin(file_2), file_out) convert(open('BRP2-1.BIN', 'rb'), open('BRP2-2.BIN', 'rb'), open('brp-2-directly.hex', 'w')) convert(open('BRP2-1A.BIN', 'rb'), open('BRP2-2A.BIN', 'rb'), open('brp-2-directly-bis.hex', 'w')) convert(open('brp3-0005-P2-1.BIN', 'rb'), open('brp3-0005-P2-2.BIN', 'rb'), open('brp-2.hex', 'w')) convert(open('brp3-0005-P2A-1.BIN', 'rb'), open('brp3-0005-P2A-2.BIN', 'rb'), open('brp-2-bis.hex', 'w')) convert(open('brp3-0005-P1-1.BIN', 'rb'), open('brp3-0005-P1-2.BIN', 'rb'), open('brp-3.hex', 'w')) convert(open('brp3-0005-P1A-1.BIN', 'rb'), open('brp3-0005-P1A-2.BIN', 'rb'), open('brp-3-bis.hex', 'w')) convert(open('BRP4-0006-P2-1.BIN', 'rb'), open('BRP4-0006-P2-2.BIN', 'rb'), open('brp-4.hex', 'w')) convert(open('BRP4-0006-P2-1A.BIN', 'rb'), open('BRP4-0006-P2-2A.BIN', 'rb'), open('brp-4-bis.hex', 'w')) convert(open('BRP4-0006-P1-1.BIN', 'rb'), open('BRP4-0006-P1-2.BIN', 'rb'), open('brp-5.hex', 'w')) convert(open('BRP4-0006-P1-1A.BIN', 'rb'), open('BRP4-0006-P1-2A.BIN', 'rb'), open('brp-5-bis.hex', 'w'))
def binSearchClosest(list, key): if list==[]: return None elif len(list)==1: return 0 left=0; right=len(list)-1 # binary search while left<right: mid = (left + right) // 2 if list[mid]==key: # found return mid elif list[mid]>key: right=mid-1 else: left=mid+1 # left==right if left<=0: return 0 if left>=len(list)-1: return len(list)-1 if key > list[left]: if abs(list[left] - key) <= abs(list[left + 1] - key): return left else: return left + 1 else: if abs(list[left-1] - key) <= abs(list[left]-key): return left-1 else: return left # if left>right: # if abs(list[right]-key)<=abs(list[left]-key): # return right # else: # return left print(binSearchClosest([],3)) # None print(binSearchClosest([3],3)) # 0 print(binSearchClosest([1,2,5,7,8],3)) # 1 print(binSearchClosest([1,2,5,7,8],5)) # 2 print(binSearchClosest([1,2,5,7,8],6)) # 2 print(binSearchClosest([1,2,5,9,10],8)) # 3 print(binSearchClosest([1,2,5,9,10],4)) # 2 # while True: # n = int(input()) # print(binSearchClosest([1,2,5,9,10],n)) # import sys # # def binSearchClosest(list, key): # if list==[]: # return None # elif len(list)==1: # return 0 # left=0; right=len(list)-1 # # # binary search # while left<right: # mid = (left + right) // 2 # if list[mid]==key: # found # return mid # elif list[mid]>key: # right=mid-1 # else: # left=mid+1 # min=sys.maxsize; idx=-1 # for i in list: # if abs(i-key)<min: # min=abs(i-key) # idx=list.index(i) # return idx
def bin_search_closest(list, key): if list == []: return None elif len(list) == 1: return 0 left = 0 right = len(list) - 1 while left < right: mid = (left + right) // 2 if list[mid] == key: return mid elif list[mid] > key: right = mid - 1 else: left = mid + 1 if left <= 0: return 0 if left >= len(list) - 1: return len(list) - 1 if key > list[left]: if abs(list[left] - key) <= abs(list[left + 1] - key): return left else: return left + 1 elif abs(list[left - 1] - key) <= abs(list[left] - key): return left - 1 else: return left print(bin_search_closest([], 3)) print(bin_search_closest([3], 3)) print(bin_search_closest([1, 2, 5, 7, 8], 3)) print(bin_search_closest([1, 2, 5, 7, 8], 5)) print(bin_search_closest([1, 2, 5, 7, 8], 6)) print(bin_search_closest([1, 2, 5, 9, 10], 8)) print(bin_search_closest([1, 2, 5, 9, 10], 4))
harmonization_table = { "Trees": ["Trees", "CEO_Trees", "GO_Trees"], "Shrubland": ["Shrubland", "CEO_Shrubland", "GO_Shrub"], "Grassland": ["Grassland", "CEO_Grassland", "GO_Grass"], "Cropland": ["Cropland", "CEO_Cropland", "GO_Cultivated"], "Built-up": ["Built-up", "CEO_BuiltUp", "GO_BuiltUp"], "Barren": ["Barren / Sparse Vegetation", "CEO_Barren", "GO_Barren"], "Water": ["Open Water", "CEO_Water", "GO_Water"], } harmonization_table_lookup = {"World Cover": 0, "CEO": 1, "GLOBE": 2} ceo_to_worldcover_lookup = { "Trees_CanopyCover": "Trees", "bush/scrub": "Shrubland", "grass": "Grassland", "cultivated vegetation": "Cropland", "Water>lake/ponded/container": "Open Water", "Water>rivers/stream": "Open Water", "Water>irrigation ditch": "Open Water", "Water>treated pool": "Open Water", "Bare Ground": "Barren / Sparse Vegetation", "Building": "Built-up", "Impervious Surface (no building)": "Built-up", } def ceo_harmonization(df): df["CEO_BuiltUp"] = ( df["Land Cover Elements:Building"] + df["Land Cover Elements:Impervious Surface (no building)"] ) df["CEO_Trees"] = df["Land Cover Elements:Trees_CanopyCover"] df["CEO_Shrubland"] = df["Land Cover Elements:bush/scrub"] df["CEO_Grassland"] = df["Land Cover Elements:grass"] df["CEO_Cropland"] = df["Land Cover Elements:cultivated vegetation"] df["CEO_Water"] = ( df["Land Cover Elements:Water>treated pool"] + df["Land Cover Elements:Water>rivers/stream"] + df["Land Cover Elements:Water>irrigation ditch"] + df["Land Cover Elements:Water>lake/ponded/container"] ) df["CEO_Barren"] = df["Land Cover Elements:Bare Ground"]
harmonization_table = {'Trees': ['Trees', 'CEO_Trees', 'GO_Trees'], 'Shrubland': ['Shrubland', 'CEO_Shrubland', 'GO_Shrub'], 'Grassland': ['Grassland', 'CEO_Grassland', 'GO_Grass'], 'Cropland': ['Cropland', 'CEO_Cropland', 'GO_Cultivated'], 'Built-up': ['Built-up', 'CEO_BuiltUp', 'GO_BuiltUp'], 'Barren': ['Barren / Sparse Vegetation', 'CEO_Barren', 'GO_Barren'], 'Water': ['Open Water', 'CEO_Water', 'GO_Water']} harmonization_table_lookup = {'World Cover': 0, 'CEO': 1, 'GLOBE': 2} ceo_to_worldcover_lookup = {'Trees_CanopyCover': 'Trees', 'bush/scrub': 'Shrubland', 'grass': 'Grassland', 'cultivated vegetation': 'Cropland', 'Water>lake/ponded/container': 'Open Water', 'Water>rivers/stream': 'Open Water', 'Water>irrigation ditch': 'Open Water', 'Water>treated pool': 'Open Water', 'Bare Ground': 'Barren / Sparse Vegetation', 'Building': 'Built-up', 'Impervious Surface (no building)': 'Built-up'} def ceo_harmonization(df): df['CEO_BuiltUp'] = df['Land Cover Elements:Building'] + df['Land Cover Elements:Impervious Surface (no building)'] df['CEO_Trees'] = df['Land Cover Elements:Trees_CanopyCover'] df['CEO_Shrubland'] = df['Land Cover Elements:bush/scrub'] df['CEO_Grassland'] = df['Land Cover Elements:grass'] df['CEO_Cropland'] = df['Land Cover Elements:cultivated vegetation'] df['CEO_Water'] = df['Land Cover Elements:Water>treated pool'] + df['Land Cover Elements:Water>rivers/stream'] + df['Land Cover Elements:Water>irrigation ditch'] + df['Land Cover Elements:Water>lake/ponded/container'] df['CEO_Barren'] = df['Land Cover Elements:Bare Ground']
#!/usr/bin/env python # coding: utf-8 _JOINT_NAMES_1 = [ 'Waist', 'Torso', 'Neck', 'Head', 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot', ] _ARTICULATED_FIGURE_ANGLES_1 = { 'rshldr_theta': ("RightShoulder", "Neck", "RightElbow", 1, True), ## Right Shoulder 'lshldr_theta': ("LeftShoulder", "Neck", "LeftElbow", -1, True), ## Left Shoulder 'relbw_theta': ("RightElbow", "RightShoulder", "RightWrist", 1, True), ## Right Elbow 'lelbw_theta': ("LeftElbow", "LeftShoulder", "LeftWrist", -1, True), ## Left Elbow 'rwrst_theta': ("RightWrist", "RightElbow", "RightHand", 1, True), ## Right Wrist 'lwrst_theta': ("LeftWrist", "LeftElbow", "LeftHand", -1, True), ## Left Wrist 'rhip_theta': ("RightHip", "Waist", "RightKnee", 1, True), ## Right Hip 'lhip_theta': ("LeftHip", "Waist", "LeftKnee", -1, True), ## Left Hip 'rkn_theta': ("RightKnee", "RightHip", "RightAnkle", 1, True), ## Right Knee 'lkn_theta': ("LeftKnee", "LeftHip", "LeftAnkle", -1, True), ## Left knee 'rankl_theta': ("RightAnkle", "RightKnee", "RightFoot", 1, True), ## Right Ankle 'lankl_theta': ("LeftAnkle", "LeftKnee", "LeftFoot", -1, True), ## Left Ankle 'rnck_theta': ("Neck", "Head", "RightShoulder", 1, True), ## Neck/Right Shoulder 'lnck_theta': ("Neck", "Head", "LeftShoulder", -1, True), ## Neck/Left Shoulder 'rwst_theta': ("Waist", "Neck", "RightHip", 1, True), ## Waist/Right Hip 'lwst_theta': ("Waist", "Neck", "LeftHip", -1, True), ## Waist/Left Hip 'trso_theta': ("Torso", "Neck", "Waist", 1, True), ## Torso } _JOINT_NAMES_2 = [ 'nose', 'leye', 'reye', 'lear', 'rear', 'lshldr', 'rshldr', 'lelbw', 'relbw', 'lwrst', 'rwrst', 'lhip', 'rhip', 'lkn', 'rkn', 'lankl', 'rankl' ] _EXTENDED_JOINT_NAMES_2 = { 'neck': ('lshldr', 'rshldr', 'lshldr', 'rshldr'), ## Neck 'torso': ('lhip', 'rhip', 'lhip', 'rhip'), ## Torso 'vaxis': ('lhip', 'rhip', 'lshldr', 'rshldr'), ## Vertical Axis } _ARTICULATED_FIGURE_ANGLES_2 = { 'rswt_theta': ("neck", "rwrst", "torso", -1, True), ## Right Wrist->Neck->Torso 'lswt_theta': ("neck", "lwrst", "torso", 1, True), ## Left Wrist->Neck->Torso 'rahn_theta': ("rhip", "rankl", "nose", -1, True), ## Right Ankle->Hip->Nose 'lahn_theta': ("lhip", "lankl", "nose", 1, True), ## Left Ankle->Hip->Nose 'ratk_theta': ("torso", "rankl", "neck", -1, True), ## Right Ankle->Torso->Neck 'latk_theta': ("torso", "lankl", "neck", 1, True), ## Left Ankle->Torso->Neck 'tkf_theta': ("torso", "vaxis", "neck", 1, False), ## Neck->Torso->VerticalAxis (Backbone) } _JOINT_NAMES_3 = [ 'Head', 'Neck', 'SpineB', # Spine base - pelvis (waist) 'SpineM', # Spine mid - mid point (torso) 'SpineSh', # Spine shoulder - spine point in between the clavicles 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot', ] _EXTENDED_JOINT_NAMES_3 = { 'spinem_at_neck': ('SpineM', 'SpineM', 'Neck', 'Neck', 'SpineM', 'SpineM'), ## SpineM (torso) at neck height } _ARTICULATED_FIGURE_ANGLES_3 = { 'rshldr_theta': ("RightShoulder", "Neck", "RightElbow", 1, True), ## Right Shoulder 'lshldr_theta': ("LeftShoulder", "Neck", "LeftElbow", -1, True), ## Left Shoulder 'relbw_theta': ("RightElbow", "RightShoulder", "RightWrist", 1, True), ## Right Elbow 'lelbw_theta': ("LeftElbow", "LeftShoulder", "LeftWrist", -1, True), ## Left Elbow 'rwrst_theta': ("RightWrist", "RightElbow", "RightHand", 1, True), ## Right Wrist 'lwrst_theta': ("LeftWrist", "LeftElbow", "LeftHand", -1, True), ## Left Wrist 'rhip_theta': ("RightHip", "SpineB", "RightKnee", 1, True), ## Right Hip 'lhip_theta': ("LeftHip", "SpineB", "LeftKnee", -1, True), ## Left Hip 'rkn_theta': ("RightKnee", "RightHip", "RightAnkle", 1, True), ## Right Knee 'lkn_theta': ("LeftKnee", "LeftHip", "LeftAnkle", -1, True), ## Left knee 'rankl_theta': ("RightAnkle", "RightKnee", "RightFoot", 1, True), ## Right Ankle 'lankl_theta': ("LeftAnkle", "LeftKnee", "LeftFoot", -1, True), ## Left Ankle 'rnck_theta': ("Neck", "Head", "RightShoulder", 1, True), ## Neck/Right Shoulder 'lnck_theta': ("Neck", "Head", "LeftShoulder", -1, True), ## Neck/Left Shoulder 'rwst_theta': ("SpineB", "Neck", "RightHip", 1, True), ## SpineB/Right Hip 'lwst_theta': ("SpineB", "Neck", "LeftHip", -1, True), ## SpineB/Left Hip 'trso_theta': ("SpineM", "Neck", "SpineB", 1, True), ## SpineM 'tkf_theta': ("SpineM", "spinem_at_neck", "Neck", 1, False), ## Neck->Torso->TorsoAtNeckHeight }
_joint_names_1 = ['Waist', 'Torso', 'Neck', 'Head', 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot'] _articulated_figure_angles_1 = {'rshldr_theta': ('RightShoulder', 'Neck', 'RightElbow', 1, True), 'lshldr_theta': ('LeftShoulder', 'Neck', 'LeftElbow', -1, True), 'relbw_theta': ('RightElbow', 'RightShoulder', 'RightWrist', 1, True), 'lelbw_theta': ('LeftElbow', 'LeftShoulder', 'LeftWrist', -1, True), 'rwrst_theta': ('RightWrist', 'RightElbow', 'RightHand', 1, True), 'lwrst_theta': ('LeftWrist', 'LeftElbow', 'LeftHand', -1, True), 'rhip_theta': ('RightHip', 'Waist', 'RightKnee', 1, True), 'lhip_theta': ('LeftHip', 'Waist', 'LeftKnee', -1, True), 'rkn_theta': ('RightKnee', 'RightHip', 'RightAnkle', 1, True), 'lkn_theta': ('LeftKnee', 'LeftHip', 'LeftAnkle', -1, True), 'rankl_theta': ('RightAnkle', 'RightKnee', 'RightFoot', 1, True), 'lankl_theta': ('LeftAnkle', 'LeftKnee', 'LeftFoot', -1, True), 'rnck_theta': ('Neck', 'Head', 'RightShoulder', 1, True), 'lnck_theta': ('Neck', 'Head', 'LeftShoulder', -1, True), 'rwst_theta': ('Waist', 'Neck', 'RightHip', 1, True), 'lwst_theta': ('Waist', 'Neck', 'LeftHip', -1, True), 'trso_theta': ('Torso', 'Neck', 'Waist', 1, True)} _joint_names_2 = ['nose', 'leye', 'reye', 'lear', 'rear', 'lshldr', 'rshldr', 'lelbw', 'relbw', 'lwrst', 'rwrst', 'lhip', 'rhip', 'lkn', 'rkn', 'lankl', 'rankl'] _extended_joint_names_2 = {'neck': ('lshldr', 'rshldr', 'lshldr', 'rshldr'), 'torso': ('lhip', 'rhip', 'lhip', 'rhip'), 'vaxis': ('lhip', 'rhip', 'lshldr', 'rshldr')} _articulated_figure_angles_2 = {'rswt_theta': ('neck', 'rwrst', 'torso', -1, True), 'lswt_theta': ('neck', 'lwrst', 'torso', 1, True), 'rahn_theta': ('rhip', 'rankl', 'nose', -1, True), 'lahn_theta': ('lhip', 'lankl', 'nose', 1, True), 'ratk_theta': ('torso', 'rankl', 'neck', -1, True), 'latk_theta': ('torso', 'lankl', 'neck', 1, True), 'tkf_theta': ('torso', 'vaxis', 'neck', 1, False)} _joint_names_3 = ['Head', 'Neck', 'SpineB', 'SpineM', 'SpineSh', 'LeftShoulder', 'LeftElbow', 'LeftWrist', 'LeftHand', 'RightShoulder', 'RightElbow', 'RightWrist', 'RightHand', 'LeftHip', 'LeftKnee', 'LeftAnkle', 'LeftFoot', 'RightHip', 'RightKnee', 'RightAnkle', 'RightFoot'] _extended_joint_names_3 = {'spinem_at_neck': ('SpineM', 'SpineM', 'Neck', 'Neck', 'SpineM', 'SpineM')} _articulated_figure_angles_3 = {'rshldr_theta': ('RightShoulder', 'Neck', 'RightElbow', 1, True), 'lshldr_theta': ('LeftShoulder', 'Neck', 'LeftElbow', -1, True), 'relbw_theta': ('RightElbow', 'RightShoulder', 'RightWrist', 1, True), 'lelbw_theta': ('LeftElbow', 'LeftShoulder', 'LeftWrist', -1, True), 'rwrst_theta': ('RightWrist', 'RightElbow', 'RightHand', 1, True), 'lwrst_theta': ('LeftWrist', 'LeftElbow', 'LeftHand', -1, True), 'rhip_theta': ('RightHip', 'SpineB', 'RightKnee', 1, True), 'lhip_theta': ('LeftHip', 'SpineB', 'LeftKnee', -1, True), 'rkn_theta': ('RightKnee', 'RightHip', 'RightAnkle', 1, True), 'lkn_theta': ('LeftKnee', 'LeftHip', 'LeftAnkle', -1, True), 'rankl_theta': ('RightAnkle', 'RightKnee', 'RightFoot', 1, True), 'lankl_theta': ('LeftAnkle', 'LeftKnee', 'LeftFoot', -1, True), 'rnck_theta': ('Neck', 'Head', 'RightShoulder', 1, True), 'lnck_theta': ('Neck', 'Head', 'LeftShoulder', -1, True), 'rwst_theta': ('SpineB', 'Neck', 'RightHip', 1, True), 'lwst_theta': ('SpineB', 'Neck', 'LeftHip', -1, True), 'trso_theta': ('SpineM', 'Neck', 'SpineB', 1, True), 'tkf_theta': ('SpineM', 'spinem_at_neck', 'Neck', 1, False)}
F_BOIL_TEMP = 212.0 F_FREEZE_TEMP = 32.0 C_BOIL_TEMP = 100.0 C_FREEZE_TEMP = 0.0 F_RANGE = F_BOIL_TEMP - F_FREEZE_TEMP C_RANGE = C_BOIL_TEMP - C_FREEZE_TEMP F_C_RATIO = C_RANGE / F_RANGE def ftoc(f_temp): "Convert Fahrenheit temperature <f_temp> to Celsius and return it." c_temp = (f_temp - F_FREEZE_TEMP) * F_C_RATIO + C_FREEZE_TEMP return c_temp if __name__ == '__main__': for f_temp in [-40.0, 0.0, 32.0, 100.0, 212.0]: c_temp = ftoc(f_temp) print('%f F => %f C' % (f_temp, c_temp))
f_boil_temp = 212.0 f_freeze_temp = 32.0 c_boil_temp = 100.0 c_freeze_temp = 0.0 f_range = F_BOIL_TEMP - F_FREEZE_TEMP c_range = C_BOIL_TEMP - C_FREEZE_TEMP f_c_ratio = C_RANGE / F_RANGE def ftoc(f_temp): """Convert Fahrenheit temperature <f_temp> to Celsius and return it.""" c_temp = (f_temp - F_FREEZE_TEMP) * F_C_RATIO + C_FREEZE_TEMP return c_temp if __name__ == '__main__': for f_temp in [-40.0, 0.0, 32.0, 100.0, 212.0]: c_temp = ftoc(f_temp) print('%f F => %f C' % (f_temp, c_temp))
S = input() t = 0 for i in range(0, len(S), 5): if S[i:i + 5] == '(^^*)': t += 1 print(t, len(S) // 5 - t)
s = input() t = 0 for i in range(0, len(S), 5): if S[i:i + 5] == '(^^*)': t += 1 print(t, len(S) // 5 - t)
class BasePayload(object): _name = "Default" _code = None _activated = False _conf = None _stager_path = "" def setHandler(self, IP, PORT): d = dict() d['SERVER'] = IP d['PORT'] = PORT self.setCode(d) def setActivated(self, status): self._activated = status def getActivated(self): return self._activated def readStager(self): with open(self._stager_path, 'r') as my_stage: return my_stage.read() def setCode(self, d=dict): self._code = self.readStager() self._code = self._code.format(**d) def getCode(self): return self._code
class Basepayload(object): _name = 'Default' _code = None _activated = False _conf = None _stager_path = '' def set_handler(self, IP, PORT): d = dict() d['SERVER'] = IP d['PORT'] = PORT self.setCode(d) def set_activated(self, status): self._activated = status def get_activated(self): return self._activated def read_stager(self): with open(self._stager_path, 'r') as my_stage: return my_stage.read() def set_code(self, d=dict): self._code = self.readStager() self._code = self._code.format(**d) def get_code(self): return self._code
n = int(input()) registered_users = dict() for i in range(n): command = input() tokens = command.split(' ') action = tokens[0] if action == 'register': username = tokens[1] licence_plate = tokens[2] if username not in registered_users: registered_users[username] = licence_plate print(f"{username} registered {licence_plate} successfully") else: print(f"ERROR: already registered with plate number {registered_users[username]}") elif action == 'unregister': username = tokens[1] if username not in registered_users: print(f"ERROR: user {username} not found") else: print(f"{username} unregistered successfully") registered_users.pop(username) for users, plates in registered_users.items(): print(f"{users} => {plates}")
n = int(input()) registered_users = dict() for i in range(n): command = input() tokens = command.split(' ') action = tokens[0] if action == 'register': username = tokens[1] licence_plate = tokens[2] if username not in registered_users: registered_users[username] = licence_plate print(f'{username} registered {licence_plate} successfully') else: print(f'ERROR: already registered with plate number {registered_users[username]}') elif action == 'unregister': username = tokens[1] if username not in registered_users: print(f'ERROR: user {username} not found') else: print(f'{username} unregistered successfully') registered_users.pop(username) for (users, plates) in registered_users.items(): print(f'{users} => {plates}')
# How do you read and write to a specific file : # We have a few different ways to do that using a file stream : # To open a file, you create a stream object # we determine the file name and the mode, most of time we leave the buffer_size ti the default stream = open(file_name, mode, buffer_size) # Modes : # r - Read (default) # w - truncate and write # W will overwrite the existing contents in the file # a - append if file exists # we use a (append) to add more lines without overwriting what is already there # x - write, fail if file exists # x allows you to write to the file, but this should be a new file that I am creating, and if the file exist i want to get an error back # + - Updating (read/write) # updating the file # t - Text (default) # b - Binary # for binary fiiles like images ## The most common scenario is to read from a file # Reading a file : # stream = open('demo.txt') # by default it is txt file and the mode assuming that I need to read the file print(stream.readable()) # Can we read ? print(stream.readable(1)) # Read the first charachter print(stream.readline()) # read a line stream.close() # Close the stream # How to write to a file ? # here we specify the mode 'w' for writing and t cause I am writing a text to the file (the default mode is 'r' reading) stream = open('output.txt', 'wt') # write txt stream.write('H') # using the write() method to one or more charachters # write a single string stream.writelines(['ello', 'World']) # write multiple strings stream.write('\n') # write new line names = ['Ali', 'Hani'] # You can creat a list of strings and pass it to the writelines stream.writelines(names) # write to the file the name list stream.close() # close the stream and flush the data ## Managing the stream : # You do not actually write to the file, you write to a file stream and then that stream goes to the file stream = open('output.txt', 'wt') stream.write('demo!') # I am writing this to the file stream # You can use the seek command to reposition where you are in the stream, so moving the cursor around for where things are being written stream.seek(0) # put the cursor right back at the beginning of the stream stream.write('cool') # So here if we do another write it is gonna overwrite cool instead of demo (so the demo word got overwritten by cool) # Flush command, flushes the data of the stream to the file stream.flush() # write the data to file stream.close() # flush and close the stream
stream = open(file_name, mode, buffer_size) print(stream.readable()) print(stream.readable(1)) print(stream.readline()) stream.close() stream = open('output.txt', 'wt') stream.write('H') stream.writelines(['ello', 'World']) stream.write('\n') names = ['Ali', 'Hani'] stream.writelines(names) stream.close() stream = open('output.txt', 'wt') stream.write('demo!') stream.seek(0) stream.write('cool') stream.flush() stream.close()
number_employee = int(input('')) hours = int(input()) value_work_hour = float(input()) salary = hours * value_work_hour print('NUMBER = {}'.format(number_employee)) print('SALARY = U$ {:.2f}'.format(salary))
number_employee = int(input('')) hours = int(input()) value_work_hour = float(input()) salary = hours * value_work_hour print('NUMBER = {}'.format(number_employee)) print('SALARY = U$ {:.2f}'.format(salary))
# dummy request object class DummyReq: # constructor def __init__(self,env,): # environ self.subprocess_env = env # header self.headers_in = {} # content-length if self.subprocess_env.has_key('CONTENT_LENGTH'): self.headers_in["content-length"] = self.subprocess_env['CONTENT_LENGTH'] # get remote host def get_remote_host(self): if self.subprocess_env.has_key('REMOTE_HOST'): return self.subprocess_env['REMOTE_HOST'] return "" # check key words def checkKeyWords(kwd,https=False,isBulk=False): if not https: if not 'secretKey' in kwd: return False,None,None,'no secretKey' secretKey = kwd['secretKey'] del kwd['secretKey'] else: # dummy secret key for https secretKey = None if isBulk: return True,secretKey,None,kwd elif 'baseURL' in kwd: baseURL = kwd['baseURL'] del kwd['baseURL'] return True,secretKey,baseURL,kwd elif 'url' in kwd: url = kwd['url'] del kwd['url'] return True,secretKey,url,kwd else: return False,None,'no URL or baseURL' # get FQANs def getFQANs(req): fqans = [] for tmpKey,tmpVal in req.subprocess_env.iteritems(): # compact credentials if tmpKey.startswith('GRST_CRED_'): # VOMS attribute if tmpVal.startswith('VOMS'): # FQAN fqan = tmpVal.split()[-1] # append fqans.append(fqan) # old style elif tmpKey.startswith('GRST_CONN_'): tmpItems = tmpVal.split(':') # FQAN if len(tmpItems)==2 and tmpItems[0]=='fqan': fqans.append(tmpItems[-1]) # return return fqans # check permission def hasPermission(req): # check hosts # TOBEDONE # host = req.get_remote_host() # check SSL if not req.subprocess_env.has_key('SSL_CLIENT_S_DN'): return False # check role fqans = getFQANs(req) for fqan in fqans: for rolePat in ['/atlas/Role=production']: if fqan.startswith(rolePat): return True return False
class Dummyreq: def __init__(self, env): self.subprocess_env = env self.headers_in = {} if self.subprocess_env.has_key('CONTENT_LENGTH'): self.headers_in['content-length'] = self.subprocess_env['CONTENT_LENGTH'] def get_remote_host(self): if self.subprocess_env.has_key('REMOTE_HOST'): return self.subprocess_env['REMOTE_HOST'] return '' def check_key_words(kwd, https=False, isBulk=False): if not https: if not 'secretKey' in kwd: return (False, None, None, 'no secretKey') secret_key = kwd['secretKey'] del kwd['secretKey'] else: secret_key = None if isBulk: return (True, secretKey, None, kwd) elif 'baseURL' in kwd: base_url = kwd['baseURL'] del kwd['baseURL'] return (True, secretKey, baseURL, kwd) elif 'url' in kwd: url = kwd['url'] del kwd['url'] return (True, secretKey, url, kwd) else: return (False, None, 'no URL or baseURL') def get_fqa_ns(req): fqans = [] for (tmp_key, tmp_val) in req.subprocess_env.iteritems(): if tmpKey.startswith('GRST_CRED_'): if tmpVal.startswith('VOMS'): fqan = tmpVal.split()[-1] fqans.append(fqan) elif tmpKey.startswith('GRST_CONN_'): tmp_items = tmpVal.split(':') if len(tmpItems) == 2 and tmpItems[0] == 'fqan': fqans.append(tmpItems[-1]) return fqans def has_permission(req): if not req.subprocess_env.has_key('SSL_CLIENT_S_DN'): return False fqans = get_fqa_ns(req) for fqan in fqans: for role_pat in ['/atlas/Role=production']: if fqan.startswith(rolePat): return True return False
class Person(object): def __init__(self, fn, ln): self.first_name = fn self.last_name = ln
class Person(object): def __init__(self, fn, ln): self.first_name = fn self.last_name = ln
class Solution: def minCostToMoveChips(self, chips: List[int]) -> int: count = [0] * 2 for chip in chips: count[chip % 2] += 1 return min(count[0], count[1])
class Solution: def min_cost_to_move_chips(self, chips: List[int]) -> int: count = [0] * 2 for chip in chips: count[chip % 2] += 1 return min(count[0], count[1])
print("Welcome to the professor quality calculator by MillenniumWare!") print("Follow the prompts below to calculate how good your professor is!!!") print("************************") print("") name = input("Enter your professor's name! >") print("") print("On a scale of 1-5 (1 being horrible, 2 tolerable, 3 adequate, 4 pretty decent, 5 God-tier):") print("") diff = input("How difficult is your professor? >") diff = int(diff) if not diff in range(1,6): print("Invalid input") exit() nice = input("How nice of a person is your professor? >") nice = int(nice) if not nice in range(1,6): print("Invalid input") exit() clarity = input("How clear are your professor's explanations and other teaching aspects? >") clarity = int(clarity) if not clarity in range(1,6): print("Invalid input") exit() excite = input("How exciting does the professor make the class content? >") excite = int(excite) if not excite in range(1,6): print("Invalid input") exit() score = (excite + clarity +nice +diff)/4 print("Professor", name,"scored", score, "stars!")
print('Welcome to the professor quality calculator by MillenniumWare!') print('Follow the prompts below to calculate how good your professor is!!!') print('************************') print('') name = input("Enter your professor's name! >") print('') print('On a scale of 1-5 (1 being horrible, 2 tolerable, 3 adequate, 4 pretty decent, 5 God-tier):') print('') diff = input('How difficult is your professor? >') diff = int(diff) if not diff in range(1, 6): print('Invalid input') exit() nice = input('How nice of a person is your professor? >') nice = int(nice) if not nice in range(1, 6): print('Invalid input') exit() clarity = input("How clear are your professor's explanations and other teaching aspects? >") clarity = int(clarity) if not clarity in range(1, 6): print('Invalid input') exit() excite = input('How exciting does the professor make the class content? >') excite = int(excite) if not excite in range(1, 6): print('Invalid input') exit() score = (excite + clarity + nice + diff) / 4 print('Professor', name, 'scored', score, 'stars!')
class Solution(object): def atMostNGivenDigitSet(self, D, N): B = len(D) # bijective-base B S = str(N) K = len(S) A = [] # The largest valid number in bijective-base-B. for c in S: if c in D: A.append(D.index(c) + 1) else: i = bisect.bisect(D, c) A.append(i) # i = 1 + (largest index j with c >= D[j], or -1 if impossible) if i == 0: # subtract 1 for j in xrange(len(A) - 1, 0, -1): if A[j]: break A[j] += B A[j-1] -= 1 A.extend([B] * (K - len(A))) break ans = 0 for x in A: ans = ans * B + x return ans
class Solution(object): def at_most_n_given_digit_set(self, D, N): b = len(D) s = str(N) k = len(S) a = [] for c in S: if c in D: A.append(D.index(c) + 1) else: i = bisect.bisect(D, c) A.append(i) if i == 0: for j in xrange(len(A) - 1, 0, -1): if A[j]: break A[j] += B A[j - 1] -= 1 A.extend([B] * (K - len(A))) break ans = 0 for x in A: ans = ans * B + x return ans
#!/usr/bin/python3 def check(dx,dy): f=open("input","r") l=f.readlines() l=[l.strip('\n\r') for l in l] x=0 y=0 c=0 while(y<len(l)): if l[y][x]=='#': c+=1 x+=dx if x>=len(l[0]): x-=len(l[0]) y+=dy return (c) print("1: "+str( check(3,1))) print("2: "+str(check(1,1)*check(3,1)*check(5,1)*check(7,1)*check(1,2)))
def check(dx, dy): f = open('input', 'r') l = f.readlines() l = [l.strip('\n\r') for l in l] x = 0 y = 0 c = 0 while y < len(l): if l[y][x] == '#': c += 1 x += dx if x >= len(l[0]): x -= len(l[0]) y += dy return c print('1: ' + str(check(3, 1))) print('2: ' + str(check(1, 1) * check(3, 1) * check(5, 1) * check(7, 1) * check(1, 2)))
Import("env") # Access to global construction environment build_tag = env['PIOENV'] # Dump construction environment (for debug purpose) # print(env.Dump()) # Rename binary according to environnement/board # ex: firmware_esp32dev.bin or firmware_nodemcuv2.bin env.Replace(PROGNAME="firmware_%s" % build_tag)
import('env') build_tag = env['PIOENV'] env.Replace(PROGNAME='firmware_%s' % build_tag)
class Solution: def findRepeatedDnaSequences(self, s: str) -> List[str]: res = set() dic = {} for i in range(len(s)): temp = s[i:i+10] if temp not in dic: dic[temp]=1 else: res.add(temp) return res
class Solution: def find_repeated_dna_sequences(self, s: str) -> List[str]: res = set() dic = {} for i in range(len(s)): temp = s[i:i + 10] if temp not in dic: dic[temp] = 1 else: res.add(temp) return res
def make_exchange_name(namespace, exchange_type, extra=""): return "{}.{}".format(namespace, exchange_type) if not extra else "{}.{}@{}".format(namespace, exchange_type, extra) def make_channel_name(namespace, exchange_type): return "channel_on_{}.{}".format(namespace, exchange_type) def make_queue_name(namespace, exchange_type): return "queue_for_{}.{}".format(namespace, exchange_type) def make_direct_key(namespace): return "key_for_{}.direct".format(namespace) def make_rabbit_url(username, password, host, port): return f'amqp://{username}:{password}@{host}:{port}'
def make_exchange_name(namespace, exchange_type, extra=''): return '{}.{}'.format(namespace, exchange_type) if not extra else '{}.{}@{}'.format(namespace, exchange_type, extra) def make_channel_name(namespace, exchange_type): return 'channel_on_{}.{}'.format(namespace, exchange_type) def make_queue_name(namespace, exchange_type): return 'queue_for_{}.{}'.format(namespace, exchange_type) def make_direct_key(namespace): return 'key_for_{}.direct'.format(namespace) def make_rabbit_url(username, password, host, port): return f'amqp://{username}:{password}@{host}:{port}'
def build_model(): pass def save_model(): pass def load_model(model_path): pass def load_best_model(): pass
def build_model(): pass def save_model(): pass def load_model(model_path): pass def load_best_model(): pass
# Databricks notebook source print("hello world") # COMMAND ---------- print("let's make some changes and commit!") # COMMAND ----------
print('hello world') print("let's make some changes and commit!")
#!/usr/bin/env python # test print('test!')
print('test!')
N = int(input()) V = list(map(int, input().split())) V.sort() v_sum = (V[0]+V[1]) / (2**(len(V)-1)) for i in range(2, len(V)): v_sum += V[i] / (2**(len(V)-i)) print(v_sum)
n = int(input()) v = list(map(int, input().split())) V.sort() v_sum = (V[0] + V[1]) / 2 ** (len(V) - 1) for i in range(2, len(V)): v_sum += V[i] / 2 ** (len(V) - i) print(v_sum)
class KeyValue: def __init__(self, key: None, value: None): self.key = key self.value = value class HashMap: def __init__(self, size:int = 11): self.size: int = size self.items: list = [None] * self.size self.length: int = 0 def put(self, key, value): keyValue: KeyValue = KeyValue(key, value) hash: int = self.hash(key) if self.items[hash] is None: self.items[hash] = [keyValue] self.length += 1 else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == keyValue.key: found = True else: count += 1 if found: self.items[hash][count] = keyValue else: self.items[hash].append(keyValue) self.length += 1 def get(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash][count].value else: return None def contains(self, key)->bool: hash: int = self.hash(key) if self.items[hash] is None: return False else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == key: found = True else: count += 1 return found def delete(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and not found: if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash].pop(count) else: return None def hash(self, key): return key % self.size ht: HashMap = HashMap() ht.put(11, "string 11") ht.put(22, "string 22") ht.put(33, "string 33") ht.put(44, "string 44") ht.put(12, "string 12") ht.put(21, "string 21") print(ht.contains(11), ht.contains(33), ht.contains(21), ht.contains(117)) print(ht.delete(11).value) print(ht.contains(22)) print(ht.get(22))
class Keyvalue: def __init__(self, key: None, value: None): self.key = key self.value = value class Hashmap: def __init__(self, size: int=11): self.size: int = size self.items: list = [None] * self.size self.length: int = 0 def put(self, key, value): key_value: KeyValue = key_value(key, value) hash: int = self.hash(key) if self.items[hash] is None: self.items[hash] = [keyValue] self.length += 1 else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == keyValue.key: found = True else: count += 1 if found: self.items[hash][count] = keyValue else: self.items[hash].append(keyValue) self.length += 1 def get(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash][count].value else: return None def contains(self, key) -> bool: hash: int = self.hash(key) if self.items[hash] is None: return False else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == key: found = True else: count += 1 return found def delete(self, key): hash: int = self.hash(key) if self.items[hash] is None: return None else: count: int = 0 found: bool = False while count < len(self.items[hash]) and (not found): if self.items[hash][count].key == key: found = True else: count += 1 if found: return self.items[hash].pop(count) else: return None def hash(self, key): return key % self.size ht: HashMap = hash_map() ht.put(11, 'string 11') ht.put(22, 'string 22') ht.put(33, 'string 33') ht.put(44, 'string 44') ht.put(12, 'string 12') ht.put(21, 'string 21') print(ht.contains(11), ht.contains(33), ht.contains(21), ht.contains(117)) print(ht.delete(11).value) print(ht.contains(22)) print(ht.get(22))
class EllysTSP: def getMax(self, places): c = places.count('C') v = len(places) - c return 2 * min(c, v) + min(abs(c-v), 1)
class Ellystsp: def get_max(self, places): c = places.count('C') v = len(places) - c return 2 * min(c, v) + min(abs(c - v), 1)
students = [] def get_students_titlecase(): students_titlecase = [] for student in students: students_titlecase = student.title() return students_titlecase def print_students_titlecase(): student_titlecase = get_students_titlecase() print(students_titlecase) def add_student(name, student_id=223): student = {"name": name, "student_id": student_id} students.append(student) def var_args(name, **kwargs): print(name) print(kwargs["description"],kwargs["feedback"]) student_list = get_students_titlecase() add_student(name = "Mark",student_id= 15) var_args("mark",description="loves pyth",feedback=None)
students = [] def get_students_titlecase(): students_titlecase = [] for student in students: students_titlecase = student.title() return students_titlecase def print_students_titlecase(): student_titlecase = get_students_titlecase() print(students_titlecase) def add_student(name, student_id=223): student = {'name': name, 'student_id': student_id} students.append(student) def var_args(name, **kwargs): print(name) print(kwargs['description'], kwargs['feedback']) student_list = get_students_titlecase() add_student(name='Mark', student_id=15) var_args('mark', description='loves pyth', feedback=None)
def posicionesAdyacentes2(self,fila,columna,mapa): retorno=[] #Norte if(fila>=1 and (mapa[fila-1][columna]!="W" and mapa[fila-1][columna]!="X")): retorno.append([fila-1,columna]) #Este if(columna<=10 and (mapa[fila][columna+1]!="W" and mapa[fila][columna+1]!="X")): retorno.append([fila,columna+1]) #Sur if(fila<=10 and (mapa[fila+1][columna]!="W" and mapa[fila+1][columna]!="X")): retorno.append([fila+1,columna]) #Oeste if(columna>=1 and (mapa[fila][columna-1]!="W" and mapa[fila][columna-1]!="X")): retorno.append([fila,columna-1]) return retorno
def posiciones_adyacentes2(self, fila, columna, mapa): retorno = [] if fila >= 1 and (mapa[fila - 1][columna] != 'W' and mapa[fila - 1][columna] != 'X'): retorno.append([fila - 1, columna]) if columna <= 10 and (mapa[fila][columna + 1] != 'W' and mapa[fila][columna + 1] != 'X'): retorno.append([fila, columna + 1]) if fila <= 10 and (mapa[fila + 1][columna] != 'W' and mapa[fila + 1][columna] != 'X'): retorno.append([fila + 1, columna]) if columna >= 1 and (mapa[fila][columna - 1] != 'W' and mapa[fila][columna - 1] != 'X'): retorno.append([fila, columna - 1]) return retorno
for t in range(int(input())): a, b, threshold = map(int, input().split()) steps = 0 while a <= threshold and b <= threshold: if a < b: a += b else: b += a steps += 1 print(steps)
for t in range(int(input())): (a, b, threshold) = map(int, input().split()) steps = 0 while a <= threshold and b <= threshold: if a < b: a += b else: b += a steps += 1 print(steps)
n = int(input().strip()) x = [int(i) for i in input().strip().split(' ')] w = [int(i) for i in input().strip().split(' ')] s = sum([x[i]*w[i] for i in range(0,n)]) wmean = s/sum(w) print("{:0.1f}".format(wmean))
n = int(input().strip()) x = [int(i) for i in input().strip().split(' ')] w = [int(i) for i in input().strip().split(' ')] s = sum([x[i] * w[i] for i in range(0, n)]) wmean = s / sum(w) print('{:0.1f}'.format(wmean))
# Solution-1 - Lisa Murray # User needs to enter integer number = input("Please enter a positive integer:") # Number needs to be converted from string format to number format, and add 1 to inclued the number chosen num2 = int(number) + 1 # Creating variable for sum sum = 0 # create loop to loop through all numbers up to number user entered for i in range(num2): sum += i # Print the sum to the screen print (sum)
number = input('Please enter a positive integer:') num2 = int(number) + 1 sum = 0 for i in range(num2): sum += i print(sum)
words = ('Oi', 'eu', 'aprendo', 'Python', 'pelo', 'Curso', 'em', 'video') for p in words: print(f'\nNa palavra {p.upper()} temos ', end='') for letra in p: if letra.lower() in 'aeiou': print(letra, end=' ')
words = ('Oi', 'eu', 'aprendo', 'Python', 'pelo', 'Curso', 'em', 'video') for p in words: print(f'\nNa palavra {p.upper()} temos ', end='') for letra in p: if letra.lower() in 'aeiou': print(letra, end=' ')
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: [email protected] # Purpose: A program to calculate the average height of 5 people # Version: 1.0 (This program contains deliberate errors) print("Average height calculator") print("=========================") # Read in the 5 values h1 = int(input("Enter first height (cm): ")) h2 = int(input("Enter second height (cm): ")) h3 = int(input("Enter third height (cm): ")) h4 = int(input("Enter fourth height (cm): ")) h5 = int(input("Enter fifth height (cm): ")) # Calculate the average height avgHeigth = h1+h2+h3+h4+h3/5 # Display the result print("The average height is ", avgHeigth, "cm")
print('Average height calculator') print('=========================') h1 = int(input('Enter first height (cm): ')) h2 = int(input('Enter second height (cm): ')) h3 = int(input('Enter third height (cm): ')) h4 = int(input('Enter fourth height (cm): ')) h5 = int(input('Enter fifth height (cm): ')) avg_heigth = h1 + h2 + h3 + h4 + h3 / 5 print('The average height is ', avgHeigth, 'cm')
class Solution: # @param word1 & word2: Two string. # @return: The minimum number of steps. def minDistance(self, word1, word2): # write your code here if word1 == word2: return 0 if len(word1) == 0: return len(word2) if len(word2) == 0: return len(word1) m, n = len(word1), len(word2) d = [[0 for j in xrange(n + 1)] for i in xrange(m + 1)] for i in xrange(0, m + 1): d[i][0] = i for j in xrange(0, n + 1): d[0][j] = j for i in xrange(1, m + 1): for j in xrange(1, n + 1): if word1[i - 1] == word2[j - 1]: d[i][j] = d[i - 1][j - 1] else: d[i][j] = min(d[i - 1][j], d[i][j - 1], d[i - 1][j - 1]) + 1 return d[m][n]
class Solution: def min_distance(self, word1, word2): if word1 == word2: return 0 if len(word1) == 0: return len(word2) if len(word2) == 0: return len(word1) (m, n) = (len(word1), len(word2)) d = [[0 for j in xrange(n + 1)] for i in xrange(m + 1)] for i in xrange(0, m + 1): d[i][0] = i for j in xrange(0, n + 1): d[0][j] = j for i in xrange(1, m + 1): for j in xrange(1, n + 1): if word1[i - 1] == word2[j - 1]: d[i][j] = d[i - 1][j - 1] else: d[i][j] = min(d[i - 1][j], d[i][j - 1], d[i - 1][j - 1]) + 1 return d[m][n]
def analyze(vw): for fva in vw.getFunctions(): analyzeFunction(vw, fva) def analyzeFunction(vw, fva): fakename = vw.getName(fva+1) if fakename is not None: vw.makeName(fva+1, None) vw.makeName(fva, fakename)
def analyze(vw): for fva in vw.getFunctions(): analyze_function(vw, fva) def analyze_function(vw, fva): fakename = vw.getName(fva + 1) if fakename is not None: vw.makeName(fva + 1, None) vw.makeName(fva, fakename)
# problem : https://leetcode.com/problems/first-missing-positive/ # time complexity : O(N) class Solution: def firstMissingPositive(self, nums: List[int]) -> int: s = set(nums) ans = 1 for num in nums: if(ans in s): ans += 1 else: break return ans
class Solution: def first_missing_positive(self, nums: List[int]) -> int: s = set(nums) ans = 1 for num in nums: if ans in s: ans += 1 else: break return ans
M = [] Schedule = [] def maximum(a,b): if a > b : return a else: return b def calculate_predecessor(jobs,n): p = [0 for i in range(n+1)] cur_job = n chosen_job = cur_job - 1 while cur_job > 1 : if chosen_job <= 0 : p[cur_job] = 0 cur_job=cur_job-1 chosen_job=cur_job-1 else: if jobs[cur_job][0] < jobs[chosen_job][1]: chosen_job = chosen_job - 1 else: p[cur_job] = chosen_job cur_job = cur_job-1 chosen_job = cur_job -1 return p def opt(j,jobs,p): global M if j == 0: return M[j] elif j ==1: M[j] = maximum(jobs[j][2],0) return M[j] else: if M[j] == -1: M[j] = maximum(opt(j-1,jobs,p),jobs[j][2]+opt(p[j],jobs,p)) return M[j] def wis(jobs,n): p = calculate_predecessor(jobs,n) value = opt(n,jobs,p) return value,p def find_solution(j,jobs,p): global M global Schedule if j > 0 : if jobs[j][2] + M[p[j]] >= M[j-1]: Schedule.append(j) find_solution(p[j],jobs,p) else: find_solution(j-1,jobs,p) return def main(): n = int(input("Enter the number of jobs: ")) global M M = [-1 for i in range(n+1)] M[0] = 0 jobs = [0] for i in range(n): s = int(input("Start time: ")) f = int(input("Finish time: ")) v = int(input("Value: ")) jobs.append((s,f,v)) max_value,p = wis(jobs,n) print(M) print(max_value) global Schedule find_solution(n,jobs,p) print(Schedule) return main()
m = [] schedule = [] def maximum(a, b): if a > b: return a else: return b def calculate_predecessor(jobs, n): p = [0 for i in range(n + 1)] cur_job = n chosen_job = cur_job - 1 while cur_job > 1: if chosen_job <= 0: p[cur_job] = 0 cur_job = cur_job - 1 chosen_job = cur_job - 1 elif jobs[cur_job][0] < jobs[chosen_job][1]: chosen_job = chosen_job - 1 else: p[cur_job] = chosen_job cur_job = cur_job - 1 chosen_job = cur_job - 1 return p def opt(j, jobs, p): global M if j == 0: return M[j] elif j == 1: M[j] = maximum(jobs[j][2], 0) return M[j] else: if M[j] == -1: M[j] = maximum(opt(j - 1, jobs, p), jobs[j][2] + opt(p[j], jobs, p)) return M[j] def wis(jobs, n): p = calculate_predecessor(jobs, n) value = opt(n, jobs, p) return (value, p) def find_solution(j, jobs, p): global M global Schedule if j > 0: if jobs[j][2] + M[p[j]] >= M[j - 1]: Schedule.append(j) find_solution(p[j], jobs, p) else: find_solution(j - 1, jobs, p) return def main(): n = int(input('Enter the number of jobs: ')) global M m = [-1 for i in range(n + 1)] M[0] = 0 jobs = [0] for i in range(n): s = int(input('Start time: ')) f = int(input('Finish time: ')) v = int(input('Value: ')) jobs.append((s, f, v)) (max_value, p) = wis(jobs, n) print(M) print(max_value) global Schedule find_solution(n, jobs, p) print(Schedule) return main()
# This file defines the board layout, as well as some other information # about the bitmaps. BaseName = '@/usr/home/srn/work/scrabble/bitmaps/' Bitmaps = { 'D':{'bitmap':BaseName + 'DW.xbm', 'background':'pink'}, 'd':{'bitmap':BaseName + 'DL.xbm', 'background':'sky blue'}, 'T':{'bitmap':BaseName + 'TW.xbm', 'background':'red'}, 't':{'bitmap':BaseName + 'TL.xbm', 'background':'blue'}, ' ':{'bitmap':BaseName + 'Blank.xbm', 'background':'light yellow'}, 'S':{'bitmap':BaseName + 'Star.xbm', 'background':'pink'} } Squares = [ ['T',' ',' ','d',' ',' ',' ','T',' ',' ',' ','d',' ',' ','T'], [' ','D',' ',' ',' ','t',' ',' ',' ','t',' ',' ',' ','D',' '], [' ',' ','D',' ',' ',' ','d',' ','d',' ',' ',' ','D',' ',' '], ['d',' ',' ','D',' ',' ',' ','d',' ',' ',' ','D',' ',' ','d'], [' ',' ',' ',' ','D',' ',' ',' ',' ',' ','D',' ',' ',' ',' '], [' ','t',' ',' ',' ','t',' ',' ',' ','t',' ',' ',' ','t',' '], [' ',' ','d',' ',' ',' ','d',' ','d',' ',' ',' ','d',' ',' '], ['T',' ',' ','d',' ',' ',' ','S',' ',' ',' ','d',' ',' ','T'], [' ',' ','d',' ',' ',' ','d',' ','d',' ',' ',' ','d',' ',' '], [' ','t',' ',' ',' ','t',' ',' ',' ','t',' ',' ',' ','t',' '], [' ',' ',' ',' ','D',' ',' ',' ',' ',' ','D',' ',' ',' ',' '], ['d',' ',' ','D',' ',' ',' ','d',' ',' ',' ','D',' ',' ','d'], [' ',' ','D',' ',' ',' ','d',' ','d',' ',' ',' ','D',' ',' '], [' ','D',' ',' ',' ','t',' ',' ',' ','t',' ',' ',' ','D',' '], ['T',' ',' ','d',' ',' ',' ','T',' ',' ',' ','d',' ',' ','T'] ] # This is the size of a "hole" in the board - bitmaps are Cell - 2. Cell = 45 Scores ={ 'A':1, 'B':3, 'C':3, 'D':2, 'E':1, 'F':4, 'G':2, 'H':4, 'I':1, 'J':8, 'K':5, 'L':1, 'M':3, 'N':1, 'O':1, 'P':3, 'Q':10, 'R':1, 'S':1, 'T':1, 'U':1, 'V':4, 'W':4, 'X':8, 'Y':4, 'Z':10, '_':0 };
base_name = '@/usr/home/srn/work/scrabble/bitmaps/' bitmaps = {'D': {'bitmap': BaseName + 'DW.xbm', 'background': 'pink'}, 'd': {'bitmap': BaseName + 'DL.xbm', 'background': 'sky blue'}, 'T': {'bitmap': BaseName + 'TW.xbm', 'background': 'red'}, 't': {'bitmap': BaseName + 'TL.xbm', 'background': 'blue'}, ' ': {'bitmap': BaseName + 'Blank.xbm', 'background': 'light yellow'}, 'S': {'bitmap': BaseName + 'Star.xbm', 'background': 'pink'}} squares = [['T', ' ', ' ', 'd', ' ', ' ', ' ', 'T', ' ', ' ', ' ', 'd', ' ', ' ', 'T'], [' ', 'D', ' ', ' ', ' ', 't', ' ', ' ', ' ', 't', ' ', ' ', ' ', 'D', ' '], [' ', ' ', 'D', ' ', ' ', ' ', 'd', ' ', 'd', ' ', ' ', ' ', 'D', ' ', ' '], ['d', ' ', ' ', 'D', ' ', ' ', ' ', 'd', ' ', ' ', ' ', 'D', ' ', ' ', 'd'], [' ', ' ', ' ', ' ', 'D', ' ', ' ', ' ', ' ', ' ', 'D', ' ', ' ', ' ', ' '], [' ', 't', ' ', ' ', ' ', 't', ' ', ' ', ' ', 't', ' ', ' ', ' ', 't', ' '], [' ', ' ', 'd', ' ', ' ', ' ', 'd', ' ', 'd', ' ', ' ', ' ', 'd', ' ', ' '], ['T', ' ', ' ', 'd', ' ', ' ', ' ', 'S', ' ', ' ', ' ', 'd', ' ', ' ', 'T'], [' ', ' ', 'd', ' ', ' ', ' ', 'd', ' ', 'd', ' ', ' ', ' ', 'd', ' ', ' '], [' ', 't', ' ', ' ', ' ', 't', ' ', ' ', ' ', 't', ' ', ' ', ' ', 't', ' '], [' ', ' ', ' ', ' ', 'D', ' ', ' ', ' ', ' ', ' ', 'D', ' ', ' ', ' ', ' '], ['d', ' ', ' ', 'D', ' ', ' ', ' ', 'd', ' ', ' ', ' ', 'D', ' ', ' ', 'd'], [' ', ' ', 'D', ' ', ' ', ' ', 'd', ' ', 'd', ' ', ' ', ' ', 'D', ' ', ' '], [' ', 'D', ' ', ' ', ' ', 't', ' ', ' ', ' ', 't', ' ', ' ', ' ', 'D', ' '], ['T', ' ', ' ', 'd', ' ', ' ', ' ', 'T', ' ', ' ', ' ', 'd', ' ', ' ', 'T']] cell = 45 scores = {'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10, '_': 0}
def je_prastevilo(n): if n < 2 or n % 2 == 0: return n == 2 i = 3 while i * i <= n: if n % i == 0: return False i += 2 return True def poljuben_krog(n): return ( 2 * n - 1 ) ** 2 - ( 2 * ( n - 1 ) - 1 ) ** 2 if n != 1 else 1 def je_lih_kvadrat(n): return n ** ( 1 / 2 ) % 2 == 1 def seznam_krogov(n): seznam = list() s = 1 trenutni = list() while len(seznam) != n: if je_lih_kvadrat(s): trenutni.append(s) seznam.append(trenutni) trenutni = list() s += 1 else: trenutni.append(s) s += 1 return seznam def funkcija(n): seznam = [1] for i in range(2, n + 1): k = ( 2 * i - 1 ) ** 2 p = k ** (1/2) - 1 seznam += sorted([ int( k - i * p ) for i in range(1, 4)]) return seznam def delez(n): return len([i for i in funkcija(n) if je_prastevilo(i)]) / ( (n-1) * 4 + 1 ) slovar = {2: 0.6} s = 0.6 n = 3 while s > 0.1: if n in slovar: s = slovar[n] n += 1 else: p = 2 * n - 2 t = [i for i in [int((2*n-1)**2 - i * p ) for i in range(1, 4)] if je_prastevilo(i)] s = (slovar[n-1] * ((n-2)*4+1) + len(t) ) / ( ( n - 1 ) * 4 + 1 ) slovar[n] = s n += 1
def je_prastevilo(n): if n < 2 or n % 2 == 0: return n == 2 i = 3 while i * i <= n: if n % i == 0: return False i += 2 return True def poljuben_krog(n): return (2 * n - 1) ** 2 - (2 * (n - 1) - 1) ** 2 if n != 1 else 1 def je_lih_kvadrat(n): return n ** (1 / 2) % 2 == 1 def seznam_krogov(n): seznam = list() s = 1 trenutni = list() while len(seznam) != n: if je_lih_kvadrat(s): trenutni.append(s) seznam.append(trenutni) trenutni = list() s += 1 else: trenutni.append(s) s += 1 return seznam def funkcija(n): seznam = [1] for i in range(2, n + 1): k = (2 * i - 1) ** 2 p = k ** (1 / 2) - 1 seznam += sorted([int(k - i * p) for i in range(1, 4)]) return seznam def delez(n): return len([i for i in funkcija(n) if je_prastevilo(i)]) / ((n - 1) * 4 + 1) slovar = {2: 0.6} s = 0.6 n = 3 while s > 0.1: if n in slovar: s = slovar[n] n += 1 else: p = 2 * n - 2 t = [i for i in [int((2 * n - 1) ** 2 - i * p) for i in range(1, 4)] if je_prastevilo(i)] s = (slovar[n - 1] * ((n - 2) * 4 + 1) + len(t)) / ((n - 1) * 4 + 1) slovar[n] = s n += 1
# # PySNMP MIB module ASYNCOS-MAIL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASYNCOS-MAIL-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:13:32 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint") asyncOSMail, = mibBuilder.importSymbols("IRONPORT-SMI", "asyncOSMail") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Integer32, TimeTicks, ModuleIdentity, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, iso, Counter64, Counter32, Gauge32, ObjectIdentity, IpAddress, NotificationType, Bits, Unsigned32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "TimeTicks", "ModuleIdentity", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "iso", "Counter64", "Counter32", "Gauge32", "ObjectIdentity", "IpAddress", "NotificationType", "Bits", "Unsigned32") TruthValue, DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "TruthValue", "DisplayString", "TextualConvention") asyncOSMailObjects = ModuleIdentity((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1)) asyncOSMailObjects.setRevisions(('2011-03-07 00:00', '2010-07-01 00:00', '2009-04-07 00:00', '2009-01-15 00:00', '2005-03-07 00:00', '2005-01-09 00:00',)) if mibBuilder.loadTexts: asyncOSMailObjects.setLastUpdated('201103070000Z') if mibBuilder.loadTexts: asyncOSMailObjects.setOrganization('IronPort Systems') asyncOSMailNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2)) perCentMemoryUtilization = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: perCentMemoryUtilization.setStatus('current') perCentCPUUtilization = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: perCentCPUUtilization.setStatus('current') perCentDiskIOUtilization = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: perCentDiskIOUtilization.setStatus('current') perCentQueueUtilization = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 100))).setMaxAccess("readonly") if mibBuilder.loadTexts: perCentQueueUtilization.setStatus('current') queueAvailabilityStatus = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("queueSpaceAvailable", 1), ("queueSpaceShortage", 2), ("queueFull", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: queueAvailabilityStatus.setStatus('current') resourceConservationReason = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("noResourceConservation", 1), ("memoryShortage", 2), ("queueSpaceShortage", 3), ("queueFull", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: resourceConservationReason.setStatus('current') memoryAvailabilityStatus = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("memoryAvailable", 1), ("memoryShortage", 2), ("memoryFull", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: memoryAvailabilityStatus.setStatus('current') powerSupplyTable = MibTable((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8), ) if mibBuilder.loadTexts: powerSupplyTable.setStatus('current') powerSupplyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1), ).setIndexNames((0, "ASYNCOS-MAIL-MIB", "powerSupplyIndex")) if mibBuilder.loadTexts: powerSupplyEntry.setStatus('current') powerSupplyIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyIndex.setStatus('current') powerSupplyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("powerSupplyNotInstalled", 1), ("powerSupplyHealthy", 2), ("powerSupplyNoAC", 3), ("powerSupplyFaulty", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyStatus.setStatus('current') powerSupplyRedundancy = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("powerSupplyRedundancyOK", 1), ("powerSupplyRedundancyLost", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyRedundancy.setStatus('current') powerSupplyName = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: powerSupplyName.setStatus('current') temperatureTable = MibTable((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9), ) if mibBuilder.loadTexts: temperatureTable.setStatus('current') temperatureEntry = MibTableRow((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1), ).setIndexNames((0, "ASYNCOS-MAIL-MIB", "temperatureIndex")) if mibBuilder.loadTexts: temperatureEntry.setStatus('current') temperatureIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: temperatureIndex.setStatus('current') degreesCelsius = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: degreesCelsius.setStatus('current') temperatureName = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: temperatureName.setStatus('current') fanTable = MibTable((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10), ) if mibBuilder.loadTexts: fanTable.setStatus('current') fanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1), ).setIndexNames((0, "ASYNCOS-MAIL-MIB", "fanIndex")) if mibBuilder.loadTexts: fanEntry.setStatus('current') fanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))) if mibBuilder.loadTexts: fanIndex.setStatus('current') fanRPMs = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: fanRPMs.setStatus('current') fanName = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: fanName.setStatus('current') workQueueMessages = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 11), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: workQueueMessages.setStatus('current') keyExpirationTable = MibTable((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12), ) if mibBuilder.loadTexts: keyExpirationTable.setStatus('current') keyExpirationEntry = MibTableRow((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1), ).setIndexNames((0, "ASYNCOS-MAIL-MIB", "keyExpirationIndex")) if mibBuilder.loadTexts: keyExpirationEntry.setStatus('current') keyExpirationIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: keyExpirationIndex.setStatus('current') keyDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: keyDescription.setStatus('current') keyIsPerpetual = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 3), TruthValue()).setMaxAccess("readonly") if mibBuilder.loadTexts: keyIsPerpetual.setStatus('current') keySecondsUntilExpire = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: keySecondsUntilExpire.setStatus('current') updateTable = MibTable((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13), ) if mibBuilder.loadTexts: updateTable.setStatus('current') updateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1), ).setIndexNames((0, "ASYNCOS-MAIL-MIB", "updateIndex")) if mibBuilder.loadTexts: updateEntry.setStatus('current') updateIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: updateIndex.setStatus('current') updateServiceName = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: updateServiceName.setStatus('current') updates = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: updates.setStatus('current') updateFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: updateFailures.setStatus('current') oldestMessageAge = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 14), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: oldestMessageAge.setStatus('current') outstandingDNSRequests = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 15), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: outstandingDNSRequests.setStatus('current') pendingDNSRequests = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 16), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: pendingDNSRequests.setStatus('current') raidEvents = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: raidEvents.setStatus('current') raidTable = MibTable((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18), ) if mibBuilder.loadTexts: raidTable.setStatus('current') raidEntry = MibTableRow((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1), ).setIndexNames((0, "ASYNCOS-MAIL-MIB", "raidIndex")) if mibBuilder.loadTexts: raidEntry.setStatus('current') raidIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1024))).setMaxAccess("readonly") if mibBuilder.loadTexts: raidIndex.setStatus('current') raidStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("driveHealthy", 1), ("driveFailure", 2), ("driveRebuild", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: raidStatus.setStatus('current') raidID = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 3), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: raidID.setStatus('current') raidLastError = MibTableColumn((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 4), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: raidLastError.setStatus('current') openFilesOrSockets = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 19), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: openFilesOrSockets.setStatus('current') mailTransferThreads = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 20), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: mailTransferThreads.setStatus('current') connectionURL = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 21), DisplayString()).setMaxAccess("accessiblefornotify") if mibBuilder.loadTexts: connectionURL.setStatus('current') hsmErrorReason = MibScalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 22), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: hsmErrorReason.setStatus('current') resourceConservationMode = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 1)).setObjects(("ASYNCOS-MAIL-MIB", "resourceConservationReason")) if mibBuilder.loadTexts: resourceConservationMode.setStatus('current') powerSupplyStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 2)).setObjects(("ASYNCOS-MAIL-MIB", "powerSupplyStatus")) if mibBuilder.loadTexts: powerSupplyStatusChange.setStatus('current') highTemperature = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 3)).setObjects(("ASYNCOS-MAIL-MIB", "temperatureName")) if mibBuilder.loadTexts: highTemperature.setStatus('current') fanFailure = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 4)).setObjects(("ASYNCOS-MAIL-MIB", "fanName")) if mibBuilder.loadTexts: fanFailure.setStatus('current') keyExpiration = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 5)).setObjects(("ASYNCOS-MAIL-MIB", "keyDescription")) if mibBuilder.loadTexts: keyExpiration.setStatus('current') updateFailure = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 6)).setObjects(("ASYNCOS-MAIL-MIB", "updateServiceName")) if mibBuilder.loadTexts: updateFailure.setStatus('current') raidStatusChange = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 7)).setObjects(("ASYNCOS-MAIL-MIB", "raidID")) if mibBuilder.loadTexts: raidStatusChange.setStatus('current') connectivityFailure = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 8)).setObjects(("ASYNCOS-MAIL-MIB", "connectionURL")) if mibBuilder.loadTexts: connectivityFailure.setStatus('current') memoryUtilizationExceeded = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 9)).setObjects(("ASYNCOS-MAIL-MIB", "perCentMemoryUtilization")) if mibBuilder.loadTexts: memoryUtilizationExceeded.setStatus('current') cpuUtilizationExceeded = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 10)).setObjects(("ASYNCOS-MAIL-MIB", "perCentCPUUtilization")) if mibBuilder.loadTexts: cpuUtilizationExceeded.setStatus('current') hsmInitializationFailure = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 11)).setObjects(("ASYNCOS-MAIL-MIB", "hsmErrorReason")) if mibBuilder.loadTexts: hsmInitializationFailure.setStatus('current') hsmResetLoginFailure = NotificationType((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 12)).setObjects(("ASYNCOS-MAIL-MIB", "hsmErrorReason")) if mibBuilder.loadTexts: hsmResetLoginFailure.setStatus('current') mibBuilder.exportSymbols("ASYNCOS-MAIL-MIB", updateServiceName=updateServiceName, powerSupplyStatusChange=powerSupplyStatusChange, workQueueMessages=workQueueMessages, pendingDNSRequests=pendingDNSRequests, fanIndex=fanIndex, memoryAvailabilityStatus=memoryAvailabilityStatus, powerSupplyEntry=powerSupplyEntry, fanName=fanName, raidLastError=raidLastError, keyDescription=keyDescription, fanEntry=fanEntry, oldestMessageAge=oldestMessageAge, degreesCelsius=degreesCelsius, outstandingDNSRequests=outstandingDNSRequests, fanTable=fanTable, temperatureEntry=temperatureEntry, raidEvents=raidEvents, keyExpirationIndex=keyExpirationIndex, resourceConservationMode=resourceConservationMode, updateIndex=updateIndex, powerSupplyTable=powerSupplyTable, updateFailure=updateFailure, hsmInitializationFailure=hsmInitializationFailure, keyExpirationEntry=keyExpirationEntry, raidID=raidID, powerSupplyIndex=powerSupplyIndex, powerSupplyName=powerSupplyName, mailTransferThreads=mailTransferThreads, highTemperature=highTemperature, openFilesOrSockets=openFilesOrSockets, updateTable=updateTable, powerSupplyStatus=powerSupplyStatus, hsmErrorReason=hsmErrorReason, hsmResetLoginFailure=hsmResetLoginFailure, updateEntry=updateEntry, connectivityFailure=connectivityFailure, raidTable=raidTable, resourceConservationReason=resourceConservationReason, temperatureTable=temperatureTable, perCentMemoryUtilization=perCentMemoryUtilization, updateFailures=updateFailures, memoryUtilizationExceeded=memoryUtilizationExceeded, perCentQueueUtilization=perCentQueueUtilization, cpuUtilizationExceeded=cpuUtilizationExceeded, PYSNMP_MODULE_ID=asyncOSMailObjects, asyncOSMailObjects=asyncOSMailObjects, keySecondsUntilExpire=keySecondsUntilExpire, connectionURL=connectionURL, keyExpiration=keyExpiration, raidStatus=raidStatus, raidStatusChange=raidStatusChange, perCentCPUUtilization=perCentCPUUtilization, temperatureName=temperatureName, fanRPMs=fanRPMs, powerSupplyRedundancy=powerSupplyRedundancy, fanFailure=fanFailure, raidEntry=raidEntry, perCentDiskIOUtilization=perCentDiskIOUtilization, temperatureIndex=temperatureIndex, keyExpirationTable=keyExpirationTable, keyIsPerpetual=keyIsPerpetual, updates=updates, asyncOSMailNotifications=asyncOSMailNotifications, queueAvailabilityStatus=queueAvailabilityStatus, raidIndex=raidIndex)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, value_range_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint') (async_os_mail,) = mibBuilder.importSymbols('IRONPORT-SMI', 'asyncOSMail') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (integer32, time_ticks, module_identity, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column, iso, counter64, counter32, gauge32, object_identity, ip_address, notification_type, bits, unsigned32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'TimeTicks', 'ModuleIdentity', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'iso', 'Counter64', 'Counter32', 'Gauge32', 'ObjectIdentity', 'IpAddress', 'NotificationType', 'Bits', 'Unsigned32') (truth_value, display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'TruthValue', 'DisplayString', 'TextualConvention') async_os_mail_objects = module_identity((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1)) asyncOSMailObjects.setRevisions(('2011-03-07 00:00', '2010-07-01 00:00', '2009-04-07 00:00', '2009-01-15 00:00', '2005-03-07 00:00', '2005-01-09 00:00')) if mibBuilder.loadTexts: asyncOSMailObjects.setLastUpdated('201103070000Z') if mibBuilder.loadTexts: asyncOSMailObjects.setOrganization('IronPort Systems') async_os_mail_notifications = mib_identifier((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2)) per_cent_memory_utilization = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: perCentMemoryUtilization.setStatus('current') per_cent_cpu_utilization = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: perCentCPUUtilization.setStatus('current') per_cent_disk_io_utilization = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: perCentDiskIOUtilization.setStatus('current') per_cent_queue_utilization = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 100))).setMaxAccess('readonly') if mibBuilder.loadTexts: perCentQueueUtilization.setStatus('current') queue_availability_status = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('queueSpaceAvailable', 1), ('queueSpaceShortage', 2), ('queueFull', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: queueAvailabilityStatus.setStatus('current') resource_conservation_reason = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('noResourceConservation', 1), ('memoryShortage', 2), ('queueSpaceShortage', 3), ('queueFull', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: resourceConservationReason.setStatus('current') memory_availability_status = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('memoryAvailable', 1), ('memoryShortage', 2), ('memoryFull', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: memoryAvailabilityStatus.setStatus('current') power_supply_table = mib_table((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8)) if mibBuilder.loadTexts: powerSupplyTable.setStatus('current') power_supply_entry = mib_table_row((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1)).setIndexNames((0, 'ASYNCOS-MAIL-MIB', 'powerSupplyIndex')) if mibBuilder.loadTexts: powerSupplyEntry.setStatus('current') power_supply_index = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyIndex.setStatus('current') power_supply_status = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('powerSupplyNotInstalled', 1), ('powerSupplyHealthy', 2), ('powerSupplyNoAC', 3), ('powerSupplyFaulty', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyStatus.setStatus('current') power_supply_redundancy = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('powerSupplyRedundancyOK', 1), ('powerSupplyRedundancyLost', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyRedundancy.setStatus('current') power_supply_name = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 8, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: powerSupplyName.setStatus('current') temperature_table = mib_table((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9)) if mibBuilder.loadTexts: temperatureTable.setStatus('current') temperature_entry = mib_table_row((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1)).setIndexNames((0, 'ASYNCOS-MAIL-MIB', 'temperatureIndex')) if mibBuilder.loadTexts: temperatureEntry.setStatus('current') temperature_index = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: temperatureIndex.setStatus('current') degrees_celsius = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: degreesCelsius.setStatus('current') temperature_name = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 9, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: temperatureName.setStatus('current') fan_table = mib_table((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10)) if mibBuilder.loadTexts: fanTable.setStatus('current') fan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1)).setIndexNames((0, 'ASYNCOS-MAIL-MIB', 'fanIndex')) if mibBuilder.loadTexts: fanEntry.setStatus('current') fan_index = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 64))) if mibBuilder.loadTexts: fanIndex.setStatus('current') fan_rp_ms = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: fanRPMs.setStatus('current') fan_name = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 10, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: fanName.setStatus('current') work_queue_messages = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 11), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: workQueueMessages.setStatus('current') key_expiration_table = mib_table((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12)) if mibBuilder.loadTexts: keyExpirationTable.setStatus('current') key_expiration_entry = mib_table_row((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1)).setIndexNames((0, 'ASYNCOS-MAIL-MIB', 'keyExpirationIndex')) if mibBuilder.loadTexts: keyExpirationEntry.setStatus('current') key_expiration_index = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: keyExpirationIndex.setStatus('current') key_description = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: keyDescription.setStatus('current') key_is_perpetual = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 3), truth_value()).setMaxAccess('readonly') if mibBuilder.loadTexts: keyIsPerpetual.setStatus('current') key_seconds_until_expire = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 12, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: keySecondsUntilExpire.setStatus('current') update_table = mib_table((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13)) if mibBuilder.loadTexts: updateTable.setStatus('current') update_entry = mib_table_row((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1)).setIndexNames((0, 'ASYNCOS-MAIL-MIB', 'updateIndex')) if mibBuilder.loadTexts: updateEntry.setStatus('current') update_index = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: updateIndex.setStatus('current') update_service_name = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: updateServiceName.setStatus('current') updates = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: updates.setStatus('current') update_failures = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 13, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: updateFailures.setStatus('current') oldest_message_age = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 14), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: oldestMessageAge.setStatus('current') outstanding_dns_requests = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 15), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: outstandingDNSRequests.setStatus('current') pending_dns_requests = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 16), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: pendingDNSRequests.setStatus('current') raid_events = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: raidEvents.setStatus('current') raid_table = mib_table((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18)) if mibBuilder.loadTexts: raidTable.setStatus('current') raid_entry = mib_table_row((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1)).setIndexNames((0, 'ASYNCOS-MAIL-MIB', 'raidIndex')) if mibBuilder.loadTexts: raidEntry.setStatus('current') raid_index = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 1024))).setMaxAccess('readonly') if mibBuilder.loadTexts: raidIndex.setStatus('current') raid_status = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('driveHealthy', 1), ('driveFailure', 2), ('driveRebuild', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: raidStatus.setStatus('current') raid_id = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 3), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: raidID.setStatus('current') raid_last_error = mib_table_column((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 18, 1, 4), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: raidLastError.setStatus('current') open_files_or_sockets = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 19), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: openFilesOrSockets.setStatus('current') mail_transfer_threads = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 20), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: mailTransferThreads.setStatus('current') connection_url = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 21), display_string()).setMaxAccess('accessiblefornotify') if mibBuilder.loadTexts: connectionURL.setStatus('current') hsm_error_reason = mib_scalar((1, 3, 6, 1, 4, 1, 15497, 1, 1, 1, 22), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: hsmErrorReason.setStatus('current') resource_conservation_mode = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 1)).setObjects(('ASYNCOS-MAIL-MIB', 'resourceConservationReason')) if mibBuilder.loadTexts: resourceConservationMode.setStatus('current') power_supply_status_change = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 2)).setObjects(('ASYNCOS-MAIL-MIB', 'powerSupplyStatus')) if mibBuilder.loadTexts: powerSupplyStatusChange.setStatus('current') high_temperature = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 3)).setObjects(('ASYNCOS-MAIL-MIB', 'temperatureName')) if mibBuilder.loadTexts: highTemperature.setStatus('current') fan_failure = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 4)).setObjects(('ASYNCOS-MAIL-MIB', 'fanName')) if mibBuilder.loadTexts: fanFailure.setStatus('current') key_expiration = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 5)).setObjects(('ASYNCOS-MAIL-MIB', 'keyDescription')) if mibBuilder.loadTexts: keyExpiration.setStatus('current') update_failure = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 6)).setObjects(('ASYNCOS-MAIL-MIB', 'updateServiceName')) if mibBuilder.loadTexts: updateFailure.setStatus('current') raid_status_change = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 7)).setObjects(('ASYNCOS-MAIL-MIB', 'raidID')) if mibBuilder.loadTexts: raidStatusChange.setStatus('current') connectivity_failure = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 8)).setObjects(('ASYNCOS-MAIL-MIB', 'connectionURL')) if mibBuilder.loadTexts: connectivityFailure.setStatus('current') memory_utilization_exceeded = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 9)).setObjects(('ASYNCOS-MAIL-MIB', 'perCentMemoryUtilization')) if mibBuilder.loadTexts: memoryUtilizationExceeded.setStatus('current') cpu_utilization_exceeded = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 10)).setObjects(('ASYNCOS-MAIL-MIB', 'perCentCPUUtilization')) if mibBuilder.loadTexts: cpuUtilizationExceeded.setStatus('current') hsm_initialization_failure = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 11)).setObjects(('ASYNCOS-MAIL-MIB', 'hsmErrorReason')) if mibBuilder.loadTexts: hsmInitializationFailure.setStatus('current') hsm_reset_login_failure = notification_type((1, 3, 6, 1, 4, 1, 15497, 1, 1, 2, 12)).setObjects(('ASYNCOS-MAIL-MIB', 'hsmErrorReason')) if mibBuilder.loadTexts: hsmResetLoginFailure.setStatus('current') mibBuilder.exportSymbols('ASYNCOS-MAIL-MIB', updateServiceName=updateServiceName, powerSupplyStatusChange=powerSupplyStatusChange, workQueueMessages=workQueueMessages, pendingDNSRequests=pendingDNSRequests, fanIndex=fanIndex, memoryAvailabilityStatus=memoryAvailabilityStatus, powerSupplyEntry=powerSupplyEntry, fanName=fanName, raidLastError=raidLastError, keyDescription=keyDescription, fanEntry=fanEntry, oldestMessageAge=oldestMessageAge, degreesCelsius=degreesCelsius, outstandingDNSRequests=outstandingDNSRequests, fanTable=fanTable, temperatureEntry=temperatureEntry, raidEvents=raidEvents, keyExpirationIndex=keyExpirationIndex, resourceConservationMode=resourceConservationMode, updateIndex=updateIndex, powerSupplyTable=powerSupplyTable, updateFailure=updateFailure, hsmInitializationFailure=hsmInitializationFailure, keyExpirationEntry=keyExpirationEntry, raidID=raidID, powerSupplyIndex=powerSupplyIndex, powerSupplyName=powerSupplyName, mailTransferThreads=mailTransferThreads, highTemperature=highTemperature, openFilesOrSockets=openFilesOrSockets, updateTable=updateTable, powerSupplyStatus=powerSupplyStatus, hsmErrorReason=hsmErrorReason, hsmResetLoginFailure=hsmResetLoginFailure, updateEntry=updateEntry, connectivityFailure=connectivityFailure, raidTable=raidTable, resourceConservationReason=resourceConservationReason, temperatureTable=temperatureTable, perCentMemoryUtilization=perCentMemoryUtilization, updateFailures=updateFailures, memoryUtilizationExceeded=memoryUtilizationExceeded, perCentQueueUtilization=perCentQueueUtilization, cpuUtilizationExceeded=cpuUtilizationExceeded, PYSNMP_MODULE_ID=asyncOSMailObjects, asyncOSMailObjects=asyncOSMailObjects, keySecondsUntilExpire=keySecondsUntilExpire, connectionURL=connectionURL, keyExpiration=keyExpiration, raidStatus=raidStatus, raidStatusChange=raidStatusChange, perCentCPUUtilization=perCentCPUUtilization, temperatureName=temperatureName, fanRPMs=fanRPMs, powerSupplyRedundancy=powerSupplyRedundancy, fanFailure=fanFailure, raidEntry=raidEntry, perCentDiskIOUtilization=perCentDiskIOUtilization, temperatureIndex=temperatureIndex, keyExpirationTable=keyExpirationTable, keyIsPerpetual=keyIsPerpetual, updates=updates, asyncOSMailNotifications=asyncOSMailNotifications, queueAvailabilityStatus=queueAvailabilityStatus, raidIndex=raidIndex)
def bytes_to_iso(i): numbers = [(1000, 'k'), (1000000, 'M'), (1000000000, 'G'), (1000000000000, 'T')] if i < 1000: return '{} B'.format(i) for n in numbers: if i < n[0] * 1000: return '{:.1f} {}B'.format(i / n[0], n[1]) return '{:.1f} PB'.format(i) def iso_to_bytes(i): numbers = {'K': 1000, 'M': 1000000, 'G': 1000000000, 'T': 1000000000000} try: return int(i) except: pass try: n = numbers[i[-1].upper()] except: raise ValueError('Invalid size: {}'.format(i)) return float(i[:-1]) * n
def bytes_to_iso(i): numbers = [(1000, 'k'), (1000000, 'M'), (1000000000, 'G'), (1000000000000, 'T')] if i < 1000: return '{} B'.format(i) for n in numbers: if i < n[0] * 1000: return '{:.1f} {}B'.format(i / n[0], n[1]) return '{:.1f} PB'.format(i) def iso_to_bytes(i): numbers = {'K': 1000, 'M': 1000000, 'G': 1000000000, 'T': 1000000000000} try: return int(i) except: pass try: n = numbers[i[-1].upper()] except: raise value_error('Invalid size: {}'.format(i)) return float(i[:-1]) * n
dataset_type = 'SUNRGBDDataset' data_root = 'data/sunrgbd/' class_names = ('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub') train_pipeline = [ dict( type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict(type='LoadAnnotations3D'), dict(type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict( type='GlobalRotScaleTrans', rot_range=[-0.523599, 0.523599], scale_ratio_range=[0.85, 1.15], shift_height=True), dict(type='IndoorPointSample', num_points=20000), dict( type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub')), dict(type='Collect3D', keys=['points', 'gt_bboxes_3d', 'gt_labels_3d']) ] test_pipeline = [ dict( type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict( type='MultiScaleFlipAug3D', img_scale=(1333, 800), pts_scale_ratio=1, flip=False, transforms=[ dict( type='GlobalRotScaleTrans', rot_range=[0, 0], scale_ratio_range=[1.0, 1.0], translation_std=[0, 0, 0]), dict( type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='IndoorPointSample', num_points=20000), dict( type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), with_label=False), dict(type='Collect3D', keys=['points']) ]) ] data = dict( samples_per_gpu=8, workers_per_gpu=4, train=dict( type='RepeatDataset', times=5, dataset=dict( type='SUNRGBDDataset', data_root='data/sunrgbd/', ann_file='data/sunrgbd/sunrgbd_infos_train.pkl', pipeline=[ dict( type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict(type='LoadAnnotations3D'), dict( type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict( type='GlobalRotScaleTrans', rot_range=[-0.523599, 0.523599], scale_ratio_range=[0.85, 1.15], shift_height=True), dict(type='IndoorPointSample', num_points=20000), dict( type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub')), dict( type='Collect3D', keys=['points', 'gt_bboxes_3d', 'gt_labels_3d']) ], classes=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), filter_empty_gt=False, box_type_3d='Depth')), val=dict( type='SUNRGBDDataset', data_root='data/sunrgbd/', ann_file='data/sunrgbd/sunrgbd_infos_val.pkl', pipeline=[ dict( type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict( type='MultiScaleFlipAug3D', img_scale=(1333, 800), pts_scale_ratio=1, flip=False, transforms=[ dict( type='GlobalRotScaleTrans', rot_range=[0, 0], scale_ratio_range=[1.0, 1.0], translation_std=[0, 0, 0]), dict( type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='IndoorPointSample', num_points=20000), dict( type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), with_label=False), dict(type='Collect3D', keys=['points']) ]) ], classes=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), test_mode=True, box_type_3d='Depth'), test=dict( type='SUNRGBDDataset', data_root='data/sunrgbd/', ann_file='data/sunrgbd/sunrgbd_infos_val.pkl', pipeline=[ dict( type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict( type='MultiScaleFlipAug3D', img_scale=(1333, 800), pts_scale_ratio=1, flip=False, transforms=[ dict( type='GlobalRotScaleTrans', rot_range=[0, 0], scale_ratio_range=[1.0, 1.0], translation_std=[0, 0, 0]), dict( type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='IndoorPointSample', num_points=20000), dict( type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), with_label=False), dict(type='Collect3D', keys=['points']) ]) ], classes=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), test_mode=True, box_type_3d='Depth')) model = dict( type='BRNet', backbone=dict( type='PointNet2SASSG', in_channels=4, num_points=(2048, 1024, 512, 256), radius=(0.2, 0.4, 0.8, 1.2), num_samples=(64, 32, 16, 16), sa_channels=((64, 64, 128), (128, 128, 256), (128, 128, 256), (128, 128, 256)), fp_channels=((256, 256), (256, 256)), norm_cfg=dict(type='BN2d'), sa_cfg=dict( type='PointSAModule', pool_mod='max', use_xyz=True, normalize_xyz=True)), rpn_head=dict( type='CAVoteHead', vote_module_cfg=dict( in_channels=256, vote_per_seed=1, gt_per_seed=3, conv_channels=(256, 256), conv_cfg=dict(type='Conv1d'), norm_cfg=dict(type='BN1d'), norm_feats=True, vote_loss=dict( type='ChamferDistance', mode='l1', reduction='none', loss_dst_weight=10.0)), vote_aggregation_cfg=dict( type='PointSAModule', num_point=256, radius=0.3, num_sample=16, mlp_channels=[256, 128, 128, 128], use_xyz=True, normalize_xyz=True), pred_layer_cfg=dict( in_channels=128, shared_conv_channels=(128, 128), bias=True), conv_cfg=dict(type='Conv1d'), norm_cfg=dict(type='BN1d'), objectness_loss=dict( type='CrossEntropyLoss', class_weight=[0.2, 0.8], reduction='sum', loss_weight=10.0), dir_class_loss=dict( type='CrossEntropyLoss', reduction='sum', loss_weight=1.0), dir_res_loss=dict( type='SmoothL1Loss', reduction='sum', loss_weight=10.0), size_res_loss=dict( type='SmoothL1Loss', reduction='sum', loss_weight=5.0, beta=0.15), num_classes=10, bbox_coder=dict( type='ClassAgnosticBBoxCoder', num_dir_bins=12, with_rot=True)), roi_head=dict( type='BRRoIHead', roi_extractor=dict( type='RepPointRoIExtractor', rep_type='ray', density=2, seed_feat_dim=256, sa_radius=0.2, sa_num_sample=16, num_seed_points=1024), bbox_head=dict( type='BRBboxHead', pred_layer_cfg=dict( in_channels=256, shared_conv_channels=(128, 128), bias=True), dir_res_loss=dict( type='SmoothL1Loss', beta=0.26166666666666666, reduction='sum', loss_weight=2.6), size_res_loss=dict( type='SmoothL1Loss', beta=0.15, reduction='sum', loss_weight=5.0), semantic_loss=dict( type='CrossEntropyLoss', reduction='sum', loss_weight=1.0), num_classes=10, bbox_coder=dict( type='ClassAgnosticBBoxCoder', num_dir_bins=12, with_rot=True))), train_cfg=dict( rpn=dict( pos_distance_thr=0.3, neg_distance_thr=0.3, sample_mod='seed'), rpn_proposal=dict(use_nms=False), rcnn=dict( pos_distance_thr=0.3, neg_distance_thr=0.3, sample_mod='seed')), test_cfg=dict( rpn=dict(sample_mod='seed', use_nms=False), rcnn=dict( sample_mod='seed', nms_thr=0.25, score_thr=0.5, per_class_proposal=True))) optimizer_config = dict(grad_clip=dict(max_norm=10, norm_type=2)) lr_config = dict(policy='CosineAnnealing', min_lr=0) total_epochs = 44 checkpoint_config = dict(interval=1) log_config = dict( interval=30, hooks=[dict(type='TextLoggerHook'), dict(type='TensorboardLoggerHook')]) dist_params = dict(backend='nccl') log_level = 'INFO' work_dir = 'work_dirs/brnet-sunrgbd8' load_from = None resume_from = None workflow = [('train', 1), ('val', 1)] lr = 0.001 optimizer = dict(type='AdamW', lr=0.001, weight_decay=0.01) gpu_ids = range(0, 1)
dataset_type = 'SUNRGBDDataset' data_root = 'data/sunrgbd/' class_names = ('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub') train_pipeline = [dict(type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict(type='LoadAnnotations3D'), dict(type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='GlobalRotScaleTrans', rot_range=[-0.523599, 0.523599], scale_ratio_range=[0.85, 1.15], shift_height=True), dict(type='IndoorPointSample', num_points=20000), dict(type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub')), dict(type='Collect3D', keys=['points', 'gt_bboxes_3d', 'gt_labels_3d'])] test_pipeline = [dict(type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict(type='MultiScaleFlipAug3D', img_scale=(1333, 800), pts_scale_ratio=1, flip=False, transforms=[dict(type='GlobalRotScaleTrans', rot_range=[0, 0], scale_ratio_range=[1.0, 1.0], translation_std=[0, 0, 0]), dict(type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='IndoorPointSample', num_points=20000), dict(type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), with_label=False), dict(type='Collect3D', keys=['points'])])] data = dict(samples_per_gpu=8, workers_per_gpu=4, train=dict(type='RepeatDataset', times=5, dataset=dict(type='SUNRGBDDataset', data_root='data/sunrgbd/', ann_file='data/sunrgbd/sunrgbd_infos_train.pkl', pipeline=[dict(type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict(type='LoadAnnotations3D'), dict(type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='GlobalRotScaleTrans', rot_range=[-0.523599, 0.523599], scale_ratio_range=[0.85, 1.15], shift_height=True), dict(type='IndoorPointSample', num_points=20000), dict(type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub')), dict(type='Collect3D', keys=['points', 'gt_bboxes_3d', 'gt_labels_3d'])], classes=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), filter_empty_gt=False, box_type_3d='Depth')), val=dict(type='SUNRGBDDataset', data_root='data/sunrgbd/', ann_file='data/sunrgbd/sunrgbd_infos_val.pkl', pipeline=[dict(type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict(type='MultiScaleFlipAug3D', img_scale=(1333, 800), pts_scale_ratio=1, flip=False, transforms=[dict(type='GlobalRotScaleTrans', rot_range=[0, 0], scale_ratio_range=[1.0, 1.0], translation_std=[0, 0, 0]), dict(type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='IndoorPointSample', num_points=20000), dict(type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), with_label=False), dict(type='Collect3D', keys=['points'])])], classes=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), test_mode=True, box_type_3d='Depth'), test=dict(type='SUNRGBDDataset', data_root='data/sunrgbd/', ann_file='data/sunrgbd/sunrgbd_infos_val.pkl', pipeline=[dict(type='LoadPointsFromFile', coord_type='DEPTH', shift_height=True, load_dim=6, use_dim=[0, 1, 2]), dict(type='MultiScaleFlipAug3D', img_scale=(1333, 800), pts_scale_ratio=1, flip=False, transforms=[dict(type='GlobalRotScaleTrans', rot_range=[0, 0], scale_ratio_range=[1.0, 1.0], translation_std=[0, 0, 0]), dict(type='RandomFlip3D', sync_2d=False, flip_ratio_bev_horizontal=0.5), dict(type='IndoorPointSample', num_points=20000), dict(type='DefaultFormatBundle3D', class_names=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), with_label=False), dict(type='Collect3D', keys=['points'])])], classes=('bed', 'table', 'sofa', 'chair', 'toilet', 'desk', 'dresser', 'night_stand', 'bookshelf', 'bathtub'), test_mode=True, box_type_3d='Depth')) model = dict(type='BRNet', backbone=dict(type='PointNet2SASSG', in_channels=4, num_points=(2048, 1024, 512, 256), radius=(0.2, 0.4, 0.8, 1.2), num_samples=(64, 32, 16, 16), sa_channels=((64, 64, 128), (128, 128, 256), (128, 128, 256), (128, 128, 256)), fp_channels=((256, 256), (256, 256)), norm_cfg=dict(type='BN2d'), sa_cfg=dict(type='PointSAModule', pool_mod='max', use_xyz=True, normalize_xyz=True)), rpn_head=dict(type='CAVoteHead', vote_module_cfg=dict(in_channels=256, vote_per_seed=1, gt_per_seed=3, conv_channels=(256, 256), conv_cfg=dict(type='Conv1d'), norm_cfg=dict(type='BN1d'), norm_feats=True, vote_loss=dict(type='ChamferDistance', mode='l1', reduction='none', loss_dst_weight=10.0)), vote_aggregation_cfg=dict(type='PointSAModule', num_point=256, radius=0.3, num_sample=16, mlp_channels=[256, 128, 128, 128], use_xyz=True, normalize_xyz=True), pred_layer_cfg=dict(in_channels=128, shared_conv_channels=(128, 128), bias=True), conv_cfg=dict(type='Conv1d'), norm_cfg=dict(type='BN1d'), objectness_loss=dict(type='CrossEntropyLoss', class_weight=[0.2, 0.8], reduction='sum', loss_weight=10.0), dir_class_loss=dict(type='CrossEntropyLoss', reduction='sum', loss_weight=1.0), dir_res_loss=dict(type='SmoothL1Loss', reduction='sum', loss_weight=10.0), size_res_loss=dict(type='SmoothL1Loss', reduction='sum', loss_weight=5.0, beta=0.15), num_classes=10, bbox_coder=dict(type='ClassAgnosticBBoxCoder', num_dir_bins=12, with_rot=True)), roi_head=dict(type='BRRoIHead', roi_extractor=dict(type='RepPointRoIExtractor', rep_type='ray', density=2, seed_feat_dim=256, sa_radius=0.2, sa_num_sample=16, num_seed_points=1024), bbox_head=dict(type='BRBboxHead', pred_layer_cfg=dict(in_channels=256, shared_conv_channels=(128, 128), bias=True), dir_res_loss=dict(type='SmoothL1Loss', beta=0.26166666666666666, reduction='sum', loss_weight=2.6), size_res_loss=dict(type='SmoothL1Loss', beta=0.15, reduction='sum', loss_weight=5.0), semantic_loss=dict(type='CrossEntropyLoss', reduction='sum', loss_weight=1.0), num_classes=10, bbox_coder=dict(type='ClassAgnosticBBoxCoder', num_dir_bins=12, with_rot=True))), train_cfg=dict(rpn=dict(pos_distance_thr=0.3, neg_distance_thr=0.3, sample_mod='seed'), rpn_proposal=dict(use_nms=False), rcnn=dict(pos_distance_thr=0.3, neg_distance_thr=0.3, sample_mod='seed')), test_cfg=dict(rpn=dict(sample_mod='seed', use_nms=False), rcnn=dict(sample_mod='seed', nms_thr=0.25, score_thr=0.5, per_class_proposal=True))) optimizer_config = dict(grad_clip=dict(max_norm=10, norm_type=2)) lr_config = dict(policy='CosineAnnealing', min_lr=0) total_epochs = 44 checkpoint_config = dict(interval=1) log_config = dict(interval=30, hooks=[dict(type='TextLoggerHook'), dict(type='TensorboardLoggerHook')]) dist_params = dict(backend='nccl') log_level = 'INFO' work_dir = 'work_dirs/brnet-sunrgbd8' load_from = None resume_from = None workflow = [('train', 1), ('val', 1)] lr = 0.001 optimizer = dict(type='AdamW', lr=0.001, weight_decay=0.01) gpu_ids = range(0, 1)
n = int(input()) while n != 0: db = {} for i in range(n): name = input() color_size = input() if color_size in db: aux = db[color_size] aux.append(name) db[color_size] = aux else: db[color_size] = [name] print('') if "white S" in db: aux = db.get('white S') for i in aux: print('white S', i) if "white M" in db: aux = db.get('white M') for i in aux: print('white M', i) if "white L" in db: aux = db.get('white L') for i in aux: print('white L', i) if "red S" in db: aux = db.get('red S') for i in aux: print('red S', i) if "red M" in db: aux = db.get('red M') for i in aux: print('red M', i) if "red G" in db: aux = db.get('red G') for i in aux: print('red G', i) n = int(input())
n = int(input()) while n != 0: db = {} for i in range(n): name = input() color_size = input() if color_size in db: aux = db[color_size] aux.append(name) db[color_size] = aux else: db[color_size] = [name] print('') if 'white S' in db: aux = db.get('white S') for i in aux: print('white S', i) if 'white M' in db: aux = db.get('white M') for i in aux: print('white M', i) if 'white L' in db: aux = db.get('white L') for i in aux: print('white L', i) if 'red S' in db: aux = db.get('red S') for i in aux: print('red S', i) if 'red M' in db: aux = db.get('red M') for i in aux: print('red M', i) if 'red G' in db: aux = db.get('red G') for i in aux: print('red G', i) n = int(input())
#intitial Variable setup List_Base = [] Image_Scale = [] Image=[] def Input(): # Gets the users input values for the image, makes sure input is exactly 100 characters and only includes 1 and 0 User_Input = str(input("Enter values here: \n")) while any(c.isalpha() for c in User_Input) is True: print("\nERROR: Input can only contain 1's and 0's.\n") User_Input = str(input("Enter values here: \n")) while len(User_Input) != 100: print("\nERROR: Invalid input, must be exactly 100 digits.\n") User_Input = str(input("Enter values here: \n")) return User_Input def Creation(): # Creation of the base image(no scaling, no rotation) User_Input = Input() Symbol = input("Next select a symbol that will be used as the base of your image. (Image looks best if you use one of the following symbols!)(!@#$%^&*)\n") # selects symbol to create image with Scale = input("Would you like to scale the image? (Answer with a 'y' or 'n')\n") # Decides how large to scale the image #creation of list broken into chunks of 10 for rows in image while (len(User_Input) > 0): x = (User_Input)[0:(10)] #first 10 * scaling number digits each pass List_Base.append(x) User_Input = (User_Input[(10):]) #strips first 10 digits so it does not repeate entries and converts back to int # creation of the image while (len(List_Base) > 0): # replaces 1's and 0's with a space and the selected symbol x = List_Base.pop(0) x = str(x) x = x.replace("0"," ") x = x.replace("1", Symbol) Image.append(x) x = "" return Scale, Image, Symbol def Scaled_Image(): # functions to scale and rotate the image created Scale, Image, Symbol = Creation() Scale = str(Scale) if Scale.lower() == 'y': Scaling = int(input("How many times would you like to scale the Image? (Image will double)(Input a integer) \n")) Image_copy = Image.copy() while Scaling > 0: i = 20 while (len(Image_copy)> 0): # Scales image by replacing one sybol with two and doubling the spaces between them z = Image_copy.pop(0) # While loop does this for every line in the list to create the new image z = str(z) z = z.replace(Symbol, Symbol+Symbol) z = z.replace(" ", " ") Image_Scale.append(z) Image_Scale.append(z) z = "" i = i - 1 Image_copy = Image_Scale.copy() Image_Scale.clear() Scaling = Scaling - 1 Rotate = input("Would you like to rotate the image? (Answer with a 'y' or 'n')\n") if Rotate.lower() == 'y': # function to rotate the image created Transform_Degree = str(input("How much would you like to rotate the image? (possible rotations in degrees 90, 180, 270)\n")) if Transform_Degree == "90": print("\n-------------------------------------------------------------------------------------------------------\n\n") # aesthetic line for i in range(len(Image_copy)): for n in Image_copy: print(n[i], end =' ') print() if Transform_Degree == "180": print("\n-------------------------------------------------------------------------------------------------------\n\n") # aesthetic line for i in Image_copy[::-1]: print(i) if Transform_Degree == "270": Image_copy.reverse() print("\n-------------------------------------------------------------------------------------------------------\n\n") # aesthetic line for i in range(len(Image_copy)): for n in Image_copy: print(n[i], end =' ') print() if Scale.lower() == 'y' and Rotate.lower() == 'n': print("\n-------------------------------------------------------------------------------------------------------\n \n \n \n") # aesthetic line(all lines like this are the same) print(*Image_copy, sep = "\n") if Scale.lower() == 'n': Rotate = input("Would you like to rotate the image? (Answer with a 'y' or 'n')\n") if Rotate.lower() == 'y': Transform_Degree = str(input("How much would you like to rotate the image? (possible rotations in degrees 90, 180, 270)\n")) if Transform_Degree == "90": # takes lines and prints them so that the top is to the left print("\n-------------------------------------------------------------------------------------------------------\n\n") for i in range(len(Image)): for n in Image: print(n[i], end =' ') print() if Transform_Degree == "180": # Turns image upside down print("\n-------------------------------------------------------------------------------------------------------\n\n") for i in Image[::-1]: print(i) if Transform_Degree == "270": # turns image so the top is to the right Image.reverse() print("\n-------------------------------------------------------------------------------------------------------\n\n") for i in range(len(Image)): for n in Image: print(n[i], end =' ') print() if Rotate.lower() == 'n': print("\n-------------------------------------------------------------------------------------------------------\n\n") print(*Image, sep = "\n") def Intilization(): #Flavor text to start the program print("This program is designed to create an image from the input of 100 booleon characters (1's and 0's)!!!!") print("Lets get started by inputing our values! Beware!! You must include exactly 100 characters that are either a '1' or a '0'.\n") def Main(): #function to drive the program Intilization() Scaled_Image() if __name__ == "__main__": # Starts program Main()
list__base = [] image__scale = [] image = [] def input(): user__input = str(input('Enter values here: \n')) while any((c.isalpha() for c in User_Input)) is True: print("\nERROR: Input can only contain 1's and 0's.\n") user__input = str(input('Enter values here: \n')) while len(User_Input) != 100: print('\nERROR: Invalid input, must be exactly 100 digits.\n') user__input = str(input('Enter values here: \n')) return User_Input def creation(): user__input = input() symbol = input('Next select a symbol that will be used as the base of your image. (Image looks best if you use one of the following symbols!)(!@#$%^&*)\n') scale = input("Would you like to scale the image? (Answer with a 'y' or 'n')\n") while len(User_Input) > 0: x = User_Input[0:10] List_Base.append(x) user__input = User_Input[10:] while len(List_Base) > 0: x = List_Base.pop(0) x = str(x) x = x.replace('0', ' ') x = x.replace('1', Symbol) Image.append(x) x = '' return (Scale, Image, Symbol) def scaled__image(): (scale, image, symbol) = creation() scale = str(Scale) if Scale.lower() == 'y': scaling = int(input('How many times would you like to scale the Image? (Image will double)(Input a integer) \n')) image_copy = Image.copy() while Scaling > 0: i = 20 while len(Image_copy) > 0: z = Image_copy.pop(0) z = str(z) z = z.replace(Symbol, Symbol + Symbol) z = z.replace(' ', ' ') Image_Scale.append(z) Image_Scale.append(z) z = '' i = i - 1 image_copy = Image_Scale.copy() Image_Scale.clear() scaling = Scaling - 1 rotate = input("Would you like to rotate the image? (Answer with a 'y' or 'n')\n") if Rotate.lower() == 'y': transform__degree = str(input('How much would you like to rotate the image? (possible rotations in degrees 90, 180, 270)\n')) if Transform_Degree == '90': print('\n-------------------------------------------------------------------------------------------------------\n\n') for i in range(len(Image_copy)): for n in Image_copy: print(n[i], end=' ') print() if Transform_Degree == '180': print('\n-------------------------------------------------------------------------------------------------------\n\n') for i in Image_copy[::-1]: print(i) if Transform_Degree == '270': Image_copy.reverse() print('\n-------------------------------------------------------------------------------------------------------\n\n') for i in range(len(Image_copy)): for n in Image_copy: print(n[i], end=' ') print() if Scale.lower() == 'y' and Rotate.lower() == 'n': print('\n-------------------------------------------------------------------------------------------------------\n \n \n \n') print(*Image_copy, sep='\n') if Scale.lower() == 'n': rotate = input("Would you like to rotate the image? (Answer with a 'y' or 'n')\n") if Rotate.lower() == 'y': transform__degree = str(input('How much would you like to rotate the image? (possible rotations in degrees 90, 180, 270)\n')) if Transform_Degree == '90': print('\n-------------------------------------------------------------------------------------------------------\n\n') for i in range(len(Image)): for n in Image: print(n[i], end=' ') print() if Transform_Degree == '180': print('\n-------------------------------------------------------------------------------------------------------\n\n') for i in Image[::-1]: print(i) if Transform_Degree == '270': Image.reverse() print('\n-------------------------------------------------------------------------------------------------------\n\n') for i in range(len(Image)): for n in Image: print(n[i], end=' ') print() if Rotate.lower() == 'n': print('\n-------------------------------------------------------------------------------------------------------\n\n') print(*Image, sep='\n') def intilization(): print("This program is designed to create an image from the input of 100 booleon characters (1's and 0's)!!!!") print("Lets get started by inputing our values! Beware!! You must include exactly 100 characters that are either a '1' or a '0'.\n") def main(): intilization() scaled__image() if __name__ == '__main__': main()
def detail_samtools(Regions, Read_depth): # create a detailed list with all depth values from the same region in a sub list. From samtools depth calculations # samtools generates a depth file with: chr, position and coverage depth value # Regeions comes from the bed file with chr, start, stop, region name detailed =[] list_temp=[] previous_chr = Read_depth[0][0] Region_row = 0 count=0 index = 0 size_list = len(Read_depth) for line in Read_depth: Region_row = Regions[index] if str(line[0]) == str(previous_chr) and (int(line[1])) <= int(Region_row[2]): list_temp.append(line[2]) else: previous_chr=line[0] detailed.append(list_temp) list_temp=[] list_temp.append(line[2]) index+=1 count+=1 if count == size_list: detailed.append(list_temp) return detailed
def detail_samtools(Regions, Read_depth): detailed = [] list_temp = [] previous_chr = Read_depth[0][0] region_row = 0 count = 0 index = 0 size_list = len(Read_depth) for line in Read_depth: region_row = Regions[index] if str(line[0]) == str(previous_chr) and int(line[1]) <= int(Region_row[2]): list_temp.append(line[2]) else: previous_chr = line[0] detailed.append(list_temp) list_temp = [] list_temp.append(line[2]) index += 1 count += 1 if count == size_list: detailed.append(list_temp) return detailed
target_prime = 10000 current_num = 2 current_denominator = current_num - 1 while True: if current_denominator == 1: # this is a prime number # print(current_num) target_prime = target_prime - 1 if target_prime == 0: print("Prime number is " + str(current_num)) break current_num = current_num + 1 current_denominator = current_num - 1 if current_num % current_denominator != 0: current_denominator = current_denominator - 1 continue # not divisible, keep going if current_num % current_denominator == 0: # divisible, this is definitely not prime current_num = current_num + 1 current_denominator = current_num - 1 continue
target_prime = 10000 current_num = 2 current_denominator = current_num - 1 while True: if current_denominator == 1: target_prime = target_prime - 1 if target_prime == 0: print('Prime number is ' + str(current_num)) break current_num = current_num + 1 current_denominator = current_num - 1 if current_num % current_denominator != 0: current_denominator = current_denominator - 1 continue if current_num % current_denominator == 0: current_num = current_num + 1 current_denominator = current_num - 1 continue
s = open('day01.txt', 'r').read() left = 0 right = 0 for i in range(len(s)): if s[i] == '(': left += 1 else: right += 1 if left - right == -1: print(i) break
s = open('day01.txt', 'r').read() left = 0 right = 0 for i in range(len(s)): if s[i] == '(': left += 1 else: right += 1 if left - right == -1: print(i) break
N = int(input()) # input() gets the whole line, int() converts from string to int dictionary = {} # dictionaries appear to work the same as objects in javascript for i in range(0, N): inputArray = input().split() # okay this line is cool, converts indices 1->end of inputArray to floats, puts them in a list # getting the sum of everything from the index 1 to the end. (ignoring the name in the list for the sum value) marks = list(map(float, inputArray[1:])) # sum(marks) adds up everything in marks dictionary[inputArray[0]] = sum(marks)/float(len(marks)) # print(output) formatted to 2 decimal places print("%.2f" % dictionary[input()])
n = int(input()) dictionary = {} for i in range(0, N): input_array = input().split() marks = list(map(float, inputArray[1:])) dictionary[inputArray[0]] = sum(marks) / float(len(marks)) print('%.2f' % dictionary[input()])
# Bo Pace, Oct 2016 # Quicksort # Quicksort has a similar divide-and-conquer strategy to that # of merge sort, but has a space advantage of doing all of the # sorting in place. The worst case complexity is worse than # merge sort, however. Quicksort has a best and average case # complexity of O(nlogn), with a worst case complexity of # O(n^2). However, the space complexity is only O(logn), # whereas merge sort has a space complexity of O(n). def quicksort(arr, first=0, last=None): if last == None: last = len(arr) - 1 if first < last: split_index = partition(arr, first, last) quicksort(arr, first, split_index-1) quicksort(arr, split_index+1, last) return arr def partition(arr, first, last): pivot_val = arr[first] left_mark = first + 1 right_mark = last done = False while not done: while left_mark <= right_mark and arr[left_mark] <= pivot_val: left_mark += 1 while arr[right_mark] >= pivot_val and right_mark >= left_mark: right_mark -= 1 if right_mark < left_mark: done = True else: arr[left_mark], arr[right_mark] = arr[right_mark], arr[left_mark] arr[first], arr[right_mark] = arr[right_mark], arr[first] return right_mark
def quicksort(arr, first=0, last=None): if last == None: last = len(arr) - 1 if first < last: split_index = partition(arr, first, last) quicksort(arr, first, split_index - 1) quicksort(arr, split_index + 1, last) return arr def partition(arr, first, last): pivot_val = arr[first] left_mark = first + 1 right_mark = last done = False while not done: while left_mark <= right_mark and arr[left_mark] <= pivot_val: left_mark += 1 while arr[right_mark] >= pivot_val and right_mark >= left_mark: right_mark -= 1 if right_mark < left_mark: done = True else: (arr[left_mark], arr[right_mark]) = (arr[right_mark], arr[left_mark]) (arr[first], arr[right_mark]) = (arr[right_mark], arr[first]) return right_mark
# This file is part of the pylint-ignore project # https://github.com/mbarkhau/pylint-ignore # # Copyright (c) 2020 Manuel Barkhau ([email protected]) - MIT License # SPDX-License-Identifier: MIT __version__ = "2020.1017"
__version__ = '2020.1017'
#Kunal Gautam #Codewars : @Kunalpod #Problem name: CamelCase Method #Problem level: 6 kyu def camel_case(string): return ''.join([x[0].upper()+x[1:] for x in string.lower().split()])
def camel_case(string): return ''.join([x[0].upper() + x[1:] for x in string.lower().split()])
RUN_TEST = False TEST_SOLUTION = 26 TEST_INPUT_FILE = 'test_input_day_11.txt' INPUT_FILE = 'input_day_11.txt' MIN_NUM_SEATS_TO_MAKE_EMPTY = 5 ARGS = [MIN_NUM_SEATS_TO_MAKE_EMPTY] def main_part2(input_file, min_num_seats_to_make_empty): with open(input_file) as file: seat_occupations = list(map(lambda line: line.rstrip(), file.readlines())) prev_seat_occupations = None cur_seat_occupations = list(map(list, seat_occupations)) iteration_num = 0 while cur_seat_occupations != prev_seat_occupations: print(iteration_num) prev_seat_occupations = cur_seat_occupations cur_seat_occupations = evolve(cur_seat_occupations, min_num_seats_to_make_empty) iteration_num += 1 print() solution = count_total_occupied_seats(cur_seat_occupations) return solution def evolve(seat_occupations, min_num_seats_to_make_empty): dim = len(seat_occupations) # side length of occupations square evolved_seat_occupations = [] for row_index, seat_row in enumerate(seat_occupations): evolved_seat_row = [] for pos_index, position in enumerate(seat_row): num_vis_occ_seats = count_visible_occupied_seats(row_index, pos_index, seat_occupations, dim) if position == 'L' and num_vis_occ_seats == 0: new_position = '#' elif position == '#' and num_vis_occ_seats >= min_num_seats_to_make_empty: new_position = 'L' else: new_position = position evolved_seat_row.append(new_position) evolved_seat_occupations.append(evolved_seat_row) return evolved_seat_occupations def count_visible_occupied_seats(row_index, pos_index, seat_occupations, dim): horiz_count = count_horizontally(row_index, pos_index, seat_occupations, dim) vert_count = count_vertically(row_index, pos_index, seat_occupations, dim) diag_count1 = count_topleft_bottomright(row_index, pos_index, seat_occupations, dim) diag_count2 = count_bottomleft_topright(row_index, pos_index, seat_occupations, dim) return horiz_count + vert_count + diag_count1 + diag_count2 def count_horizontally(row_index, pos_index, seat_occupations, dim): seats = seat_occupations[row_index] return count_in_seats(pos_index, seats, dim) def count_vertically(row_index, pos_index, seat_occupations, dim): seats = [seat_occupations[i][pos_index] for i in range(dim)] return count_in_seats(row_index, seats, dim) def count_topleft_bottomright(row_index, pos_index, seat_occupations, dim): seats = get_diagonal(row_index, pos_index, seat_occupations, dim, '\\') relevant_ind = pos_index if pos_index <= row_index else row_index return count_in_seats(relevant_ind, seats, dim) def count_bottomleft_topright(row_index, pos_index, seat_occupations, dim): seats = get_diagonal(row_index, pos_index, seat_occupations, dim, '/') if row_index + pos_index <= dim - 1: # top half = closer to top than to bottom relevant_ind = pos_index # dist to left else: relevant_ind = (dim - 1) - row_index # dist to bottom return count_in_seats(relevant_ind, seats, dim) def count_in_seats(index, seats, dim): result = 0 # before current index cur_index = index - 1 while cur_index >= 0: if seats[cur_index] == 'L': break elif seats[cur_index] == '#': result += 1 break cur_index -= 1 # to right cur_index = index + 1 while cur_index < len(seats): if seats[cur_index] == 'L': break elif seats[cur_index] == '#': result += 1 break cur_index += 1 return result def get_diagonal(row_index, pos_index, seat_occupations, dim, mode): if mode == '/': # bottom left to top right dist_to_bottom = (dim - 1) - row_index # dist of square to bottom dist_to_left = pos_index # dist of square to left if dist_to_left <= dist_to_bottom: # row_index = how far down we are; dist_to_left = steps to go bottomleft_pos = (row_index + dist_to_left, 0) else: # row_index = how far down we are; dist_to_left = steps to go bottomleft_pos = (dim - 1, pos_index - dist_to_bottom) # range_bound = min(row_index, (dim - 1) - pos_index) + 1 # = min(dist_to_top, dist_to_right) range_bound = min(bottomleft_pos[0], (dim - 1) - bottomleft_pos[1]) + 1 diag = [seat_occupations[bottomleft_pos[0] - i][bottomleft_pos[1] + i] for i in range(range_bound)] else: # '\' # top left to bottom right row_pos_diff = row_index - pos_index topleft_pos = (row_pos_diff, 0) if row_pos_diff >= 0 else (0, -row_pos_diff) diag = [seat_occupations[topleft_pos[0] + i][topleft_pos[1] + i] for i in range(dim - max(topleft_pos))] return diag def count_total_occupied_seats(seat_occupations): return sum(map(lambda seat_row: seat_row.count('#'), seat_occupations)) def print_seat_occupations(seat_occupations): output = '\n'.join(map(''.join, seat_occupations)) print(output) if __name__ == '__main__': if RUN_TEST: solution = main_part2(TEST_INPUT_FILE, *ARGS) print(solution) assert (TEST_SOLUTION == solution) else: solution = main_part2(INPUT_FILE, *ARGS) print(solution)
run_test = False test_solution = 26 test_input_file = 'test_input_day_11.txt' input_file = 'input_day_11.txt' min_num_seats_to_make_empty = 5 args = [MIN_NUM_SEATS_TO_MAKE_EMPTY] def main_part2(input_file, min_num_seats_to_make_empty): with open(input_file) as file: seat_occupations = list(map(lambda line: line.rstrip(), file.readlines())) prev_seat_occupations = None cur_seat_occupations = list(map(list, seat_occupations)) iteration_num = 0 while cur_seat_occupations != prev_seat_occupations: print(iteration_num) prev_seat_occupations = cur_seat_occupations cur_seat_occupations = evolve(cur_seat_occupations, min_num_seats_to_make_empty) iteration_num += 1 print() solution = count_total_occupied_seats(cur_seat_occupations) return solution def evolve(seat_occupations, min_num_seats_to_make_empty): dim = len(seat_occupations) evolved_seat_occupations = [] for (row_index, seat_row) in enumerate(seat_occupations): evolved_seat_row = [] for (pos_index, position) in enumerate(seat_row): num_vis_occ_seats = count_visible_occupied_seats(row_index, pos_index, seat_occupations, dim) if position == 'L' and num_vis_occ_seats == 0: new_position = '#' elif position == '#' and num_vis_occ_seats >= min_num_seats_to_make_empty: new_position = 'L' else: new_position = position evolved_seat_row.append(new_position) evolved_seat_occupations.append(evolved_seat_row) return evolved_seat_occupations def count_visible_occupied_seats(row_index, pos_index, seat_occupations, dim): horiz_count = count_horizontally(row_index, pos_index, seat_occupations, dim) vert_count = count_vertically(row_index, pos_index, seat_occupations, dim) diag_count1 = count_topleft_bottomright(row_index, pos_index, seat_occupations, dim) diag_count2 = count_bottomleft_topright(row_index, pos_index, seat_occupations, dim) return horiz_count + vert_count + diag_count1 + diag_count2 def count_horizontally(row_index, pos_index, seat_occupations, dim): seats = seat_occupations[row_index] return count_in_seats(pos_index, seats, dim) def count_vertically(row_index, pos_index, seat_occupations, dim): seats = [seat_occupations[i][pos_index] for i in range(dim)] return count_in_seats(row_index, seats, dim) def count_topleft_bottomright(row_index, pos_index, seat_occupations, dim): seats = get_diagonal(row_index, pos_index, seat_occupations, dim, '\\') relevant_ind = pos_index if pos_index <= row_index else row_index return count_in_seats(relevant_ind, seats, dim) def count_bottomleft_topright(row_index, pos_index, seat_occupations, dim): seats = get_diagonal(row_index, pos_index, seat_occupations, dim, '/') if row_index + pos_index <= dim - 1: relevant_ind = pos_index else: relevant_ind = dim - 1 - row_index return count_in_seats(relevant_ind, seats, dim) def count_in_seats(index, seats, dim): result = 0 cur_index = index - 1 while cur_index >= 0: if seats[cur_index] == 'L': break elif seats[cur_index] == '#': result += 1 break cur_index -= 1 cur_index = index + 1 while cur_index < len(seats): if seats[cur_index] == 'L': break elif seats[cur_index] == '#': result += 1 break cur_index += 1 return result def get_diagonal(row_index, pos_index, seat_occupations, dim, mode): if mode == '/': dist_to_bottom = dim - 1 - row_index dist_to_left = pos_index if dist_to_left <= dist_to_bottom: bottomleft_pos = (row_index + dist_to_left, 0) else: bottomleft_pos = (dim - 1, pos_index - dist_to_bottom) range_bound = min(bottomleft_pos[0], dim - 1 - bottomleft_pos[1]) + 1 diag = [seat_occupations[bottomleft_pos[0] - i][bottomleft_pos[1] + i] for i in range(range_bound)] else: row_pos_diff = row_index - pos_index topleft_pos = (row_pos_diff, 0) if row_pos_diff >= 0 else (0, -row_pos_diff) diag = [seat_occupations[topleft_pos[0] + i][topleft_pos[1] + i] for i in range(dim - max(topleft_pos))] return diag def count_total_occupied_seats(seat_occupations): return sum(map(lambda seat_row: seat_row.count('#'), seat_occupations)) def print_seat_occupations(seat_occupations): output = '\n'.join(map(''.join, seat_occupations)) print(output) if __name__ == '__main__': if RUN_TEST: solution = main_part2(TEST_INPUT_FILE, *ARGS) print(solution) assert TEST_SOLUTION == solution else: solution = main_part2(INPUT_FILE, *ARGS) print(solution)
# Problem 1: What will be the output of the following code x = 1 def f(): return x print (x) # Ans-1 print (f()) # Ans-1 #Problem 2: What will be the output of the following program? x = 1 def f(): x = 2 return x print (x) # Ans-1 print (f()) # Ans-2 print (x) # Ans-1 #Problem 3: What will be the output of the following program? x = 1 def f(): #y = x # UnboundLocalError: local variable 'x' referenced before assignment x = 2 y=1 return x + y print (x) # Ans-1 print (f()) # Ans-3 print (x) # Ans-1 # What will be the output of the following program? x = 2 def f(a): x = a * a return x y = f(3) print (x, y) # 2, 9 #Functions can be called with keyword arguments. def difference(x, y): return x - y difference(5, 2) # There is another way of creating functions, using the lambda operator. cube = lambda x: x ** 3 print(cube(2)) # Write a function count_digits to find number of digits in the given number. #find_length = lambda dig: len(dig) def find_num_len(x): num_len = len(str(x)) return num_len print("Number length is: ",find_num_len(123567890))
x = 1 def f(): return x print(x) print(f()) x = 1 def f(): x = 2 return x print(x) print(f()) print(x) x = 1 def f(): x = 2 y = 1 return x + y print(x) print(f()) print(x) x = 2 def f(a): x = a * a return x y = f(3) print(x, y) def difference(x, y): return x - y difference(5, 2) cube = lambda x: x ** 3 print(cube(2)) def find_num_len(x): num_len = len(str(x)) return num_len print('Number length is: ', find_num_len(123567890))
# https://leetcode.com/submissions/detail/433325047/?from=explore&item_id=3577 # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def isBalanced(self, root: TreeNode) -> bool: def helper(node): if not node: return 0,True l_height,l_corr = helper(node.left) if not l_corr: return -1,False r_height,r_corr = helper(node.right) if not r_corr: return -1,False return (1 + max(l_height,r_height), abs(l_height - r_height) <= 1) return helper(root)[1] class Solution_faster(object): def isBalanced(self, root): def check(root): if not root: return 0 left = check(root.left) if left == -1: return -1 right = check(root.right) if right == -1: return -1 if abs(left - right) > 1: return -1 return max(left, right) + 1 return check(root) != -1
class Treenode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def is_balanced(self, root: TreeNode) -> bool: def helper(node): if not node: return (0, True) (l_height, l_corr) = helper(node.left) if not l_corr: return (-1, False) (r_height, r_corr) = helper(node.right) if not r_corr: return (-1, False) return (1 + max(l_height, r_height), abs(l_height - r_height) <= 1) return helper(root)[1] class Solution_Faster(object): def is_balanced(self, root): def check(root): if not root: return 0 left = check(root.left) if left == -1: return -1 right = check(root.right) if right == -1: return -1 if abs(left - right) > 1: return -1 return max(left, right) + 1 return check(root) != -1
class constants: # username, Type: String # this email id shouldn't have 2 factor authentication username = "<enter a valid email id>" # password, Type: String password = "<enter the appropriate password>" # to email addresses => Enter a valid to email address and this email id need not disable the 2 step verification, Type: String # to enter more than 1 email id append them spearated with a comma ex) ['[email protected]', '[email protected]',...] to_addresses = ['<--to email address-->'] # required age, Type: Int # change the age to 45 if required req_age = 18 # required slot number, Type: Int # change the slot to 2 if u r looking for the second slot req_slot = 1 # pin code, Type: Int # change the pincode to your area pincode or the interested one and if more than 1 then add comma to add the remaining. ex) [530040, 530020] pincode = [530040] # pin code api url, (Do not change this) pin_code_url = 'api/v2/appointment/sessions/public/findByPin' # number of days to check starting from today as 1, tomorrow as 2,..etc, Type: Int day_check_count = 3 # sleep time is the time interval between each api request made and this has to be carefully scrutinized based on: # sleep time for peak time, Type: Int sleep_peak_time = 5 # sleep time for non peak time, Type: Int sleep_non_peak_time = 30 # peak hour start time, Type: Int start_time = 14 # peak hour end time, Type: Int end_time = 18
class Constants: username = '<enter a valid email id>' password = '<enter the appropriate password>' to_addresses = ['<--to email address-->'] req_age = 18 req_slot = 1 pincode = [530040] pin_code_url = 'api/v2/appointment/sessions/public/findByPin' day_check_count = 3 sleep_peak_time = 5 sleep_non_peak_time = 30 start_time = 14 end_time = 18
class Solution: def countStudents(self, students: List[int], sandwiches: List[int]) -> int: sandwiches = deque(sandwiches) students = deque(students) while not (all(a!=sandwiches[0] for a in students)): if students[0] == sandwiches[0]: students.popleft() sandwiches.popleft() else: students.append(students.popleft()) return len(students)
class Solution: def count_students(self, students: List[int], sandwiches: List[int]) -> int: sandwiches = deque(sandwiches) students = deque(students) while not all((a != sandwiches[0] for a in students)): if students[0] == sandwiches[0]: students.popleft() sandwiches.popleft() else: students.append(students.popleft()) return len(students)
class DictX(dict): def __getattr__(self, key): try: return self[key] except KeyError as k: raise AttributeError(k) def __setattr__(self, key, value): self[key] = value def __delattr__(self, key): try: del self[key] except KeyError as k: raise AttributeError(k) def __repr__(self): return '<DictX ' + dict.__repr__(self) + '>' def get_params(): return DictX({ 'MODE': 'normal', 'DATA_PATH': 'data/', 'CUT_RATE_SEC': 5, 'RANDOM_SEED': 42, 'OSU_TRACKS_DIR': 'osu_maps', 'ENUMERATE_FROM': 1, 'SAMPLE_RATE': 16000, # model params 'OUT_SHAPE': 5000, 'N_EPOCHS': 5, 'LEARNING_RATE': 0.0003, 'ITER_LOG': 50, 'BATCH_SIZE': 32, 'MODEL_PATH': 'tempo_model.pth', 'LOAD_MODEL': False })
class Dictx(dict): def __getattr__(self, key): try: return self[key] except KeyError as k: raise attribute_error(k) def __setattr__(self, key, value): self[key] = value def __delattr__(self, key): try: del self[key] except KeyError as k: raise attribute_error(k) def __repr__(self): return '<DictX ' + dict.__repr__(self) + '>' def get_params(): return dict_x({'MODE': 'normal', 'DATA_PATH': 'data/', 'CUT_RATE_SEC': 5, 'RANDOM_SEED': 42, 'OSU_TRACKS_DIR': 'osu_maps', 'ENUMERATE_FROM': 1, 'SAMPLE_RATE': 16000, 'OUT_SHAPE': 5000, 'N_EPOCHS': 5, 'LEARNING_RATE': 0.0003, 'ITER_LOG': 50, 'BATCH_SIZE': 32, 'MODEL_PATH': 'tempo_model.pth', 'LOAD_MODEL': False})
class Model: def __init__(self, model, feature_names): self.model = model self.feature_names = feature_names self.ID = "" def get_ID(self): return self.ID def fit(self, X, y): self.model.fit(X, y) def predict(self, X): return self.model.predict(X) def score(self, X, y): return {0: (self.model.score(X, y), len(X))} def get_num_submodels(self): return [1]
class Model: def __init__(self, model, feature_names): self.model = model self.feature_names = feature_names self.ID = '' def get_id(self): return self.ID def fit(self, X, y): self.model.fit(X, y) def predict(self, X): return self.model.predict(X) def score(self, X, y): return {0: (self.model.score(X, y), len(X))} def get_num_submodels(self): return [1]
#input={'names_raw':names_raw,'orders_raw':orders_raw,'phones_raw':phones_raw,'emails_raw':emails_raw,'start_index':0,'limit':500,'length':1251} start_index = int(float(input['start_index'])) limit = int(input['limit']) length = int(float(input['length'])) if (start_index+limit) >= length: end_index = length finished = True else: end_index = start_index+limit finished = False names = input['names_raw'].split('*')[start_index:end_index] orders = input['orders_raw'].split('*')[start_index:end_index] phones = input['phones_raw'].split('*')[start_index:end_index] emails = input['emails_raw'].split('*')[start_index:end_index] return{'end_index':end_index, 'names':names, 'orders':orders, 'phones':phones, 'emails':emails, 'finished':finished}
start_index = int(float(input['start_index'])) limit = int(input['limit']) length = int(float(input['length'])) if start_index + limit >= length: end_index = length finished = True else: end_index = start_index + limit finished = False names = input['names_raw'].split('*')[start_index:end_index] orders = input['orders_raw'].split('*')[start_index:end_index] phones = input['phones_raw'].split('*')[start_index:end_index] emails = input['emails_raw'].split('*')[start_index:end_index] return {'end_index': end_index, 'names': names, 'orders': orders, 'phones': phones, 'emails': emails, 'finished': finished}
''' def find( element, list): for i, j in enumerate( list): if( j == element): return i; return -1 data_path = "../data/data_uci.pgn" fd = open( data_path) ''' def find( element, list): for i, j in enumerate( list): if( j[0:2] == element): return i; return -1 data_path = "../data/data_uci.pgn" fd = open( data_path) ''' fd_white = open( "results/castle_white.fea", "w") fd_black = open( "results/castle_black.fea", "w") fd_castle = open( "results/castle.fea", "w") for row in fd: if row[0] != '\n' and row[0] != '[': moves = row.split( ' ') white_c = find( "e1g1", moves) black_c = find( "e8g8", moves) if( white_c == -1): white_c = find( "e1c1", moves) if( white_c == -1): w = 1 else: w = white_c / float( len(moves)) if( black_c == -1): black_c = find( "e8c8", moves) if( black_c == -1): b = 1 else: b = white_c / float( len(moves)) fd_white.write( str( w) + "\n") fd_black.write( str( b) + "\n") fd_castle.write( str( (w+b) * 0.5) + "\n") fd.close() fd_white.close() fd_castle.close() fd_black.close() ''' #Queen First Move fd_white = open( "results/queen_white.fea", "w") fd_black = open( "results/queen_black.fea", "w") fd_queen = open( "results/queen.fea", "w") for row in fd: if row[0] != '\n' and row[0] != '[': moves = row.split( ' ') white_c = find( "d1", moves) black_c = find( "d8", moves) #if( white_c == -1): # white_c = find( "e1c1", moves) if( white_c == -1): w = 1 else: w = white_c / float( len(moves)) #if( black_c == -1): # black_c = find( "e8c8", moves) if( black_c == -1): b = 1 else: b = white_c / float( len(moves)) fd_white.write( str( w) + "\n") fd_black.write( str( b) + "\n") fd_queen.write( str( (w+b) * 0.5) + "\n") fd.close() fd_white.close() fd_queen.close() fd_black.close()
""" def find( element, list): for i, j in enumerate( list): if( j == element): return i; return -1 data_path = "../data/data_uci.pgn" fd = open( data_path) """ def find(element, list): for (i, j) in enumerate(list): if j[0:2] == element: return i return -1 data_path = '../data/data_uci.pgn' fd = open(data_path) '\nfd_white = open( "results/castle_white.fea", "w")\nfd_black = open( "results/castle_black.fea", "w")\nfd_castle = open( "results/castle.fea", "w")\n\nfor row in fd:\n\n\tif row[0] != \'\n\' and row[0] != \'[\':\n\t\tmoves = row.split( \' \')\n\t\twhite_c = find( "e1g1", moves)\n\t\tblack_c = find( "e8g8", moves)\n\n\t\tif( white_c == -1):\n\t\t\twhite_c = find( "e1c1", moves)\n\n\t\tif( white_c == -1):\n\t\t\tw = 1\n\n\t\telse:\n\t\t\tw = white_c / float( len(moves))\n\n\t\tif( black_c == -1):\n\t\t\tblack_c = find( "e8c8", moves)\n\n\t\tif( black_c == -1):\n\t\t\tb = 1\n\n\t\telse:\n\t\t\tb = white_c / float( len(moves))\n\t\t\n\t\tfd_white.write( str( w) + "\n")\n\t\tfd_black.write( str( b) + "\n")\n\t\tfd_castle.write( str( (w+b) * 0.5) + "\n")\n\nfd.close()\nfd_white.close()\nfd_castle.close()\nfd_black.close()\n' fd_white = open('results/queen_white.fea', 'w') fd_black = open('results/queen_black.fea', 'w') fd_queen = open('results/queen.fea', 'w') for row in fd: if row[0] != '\n' and row[0] != '[': moves = row.split(' ') white_c = find('d1', moves) black_c = find('d8', moves) if white_c == -1: w = 1 else: w = white_c / float(len(moves)) if black_c == -1: b = 1 else: b = white_c / float(len(moves)) fd_white.write(str(w) + '\n') fd_black.write(str(b) + '\n') fd_queen.write(str((w + b) * 0.5) + '\n') fd.close() fd_white.close() fd_queen.close() fd_black.close()
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.306958, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.443787, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.76799, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.744131, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.28857, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.739029, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.77173, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.464485, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 8.91233, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.334012, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0269753, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.3055, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.199499, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.639512, 'Execution Unit/Register Files/Runtime Dynamic': 0.226475, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.822308, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.84225, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 5.68962, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00124349, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00124349, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.0010876, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000423501, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00286582, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00644039, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0117608, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.191784, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.399668, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.651384, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.26104, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0723851, 'L2/Runtime Dynamic': 0.013777, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.64646, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.60142, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.175005, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.175005, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.47624, 'Load Store Unit/Runtime Dynamic': 3.63949, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.431533, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.863066, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.153152, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.154232, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.065541, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.823265, 'Memory Management Unit/Runtime Dynamic': 0.219773, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.8147, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.16529, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0520731, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.365967, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.58333, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 12.407, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.153474, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.323234, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.889369, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.319682, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.515635, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.260275, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.09559, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.229269, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.80398, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.168021, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0134089, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.151959, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.099167, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.31998, 'Execution Unit/Register Files/Runtime Dynamic': 0.112576, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.358512, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.808434, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.74521, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000575747, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000575747, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000505076, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000197493, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00142454, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00308111, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00539152, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0953318, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.06392, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.196904, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.32379, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.57673, 'Instruction Fetch Unit/Runtime Dynamic': 0.624498, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0344139, 'L2/Runtime Dynamic': 0.00634291, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.95497, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.30647, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0879289, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0879288, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.37019, 'Load Store Unit/Runtime Dynamic': 1.82803, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.216818, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.433635, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0769493, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0774625, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.377032, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0322897, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.665326, 'Memory Management Unit/Runtime Dynamic': 0.109752, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 23.0401, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.441986, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.019802, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.154726, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.616515, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.93035, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.155088, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.324501, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.89669, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.318493, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.513717, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.259307, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.09152, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.226788, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.81282, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.169404, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.013359, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.152259, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0987981, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.321663, 'Execution Unit/Register Files/Runtime Dynamic': 0.112157, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.359548, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.808066, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.74162, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000525531, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000525531, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000460386, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000179671, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00141924, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00293069, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00494412, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0949771, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.04136, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.193978, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.322585, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.55307, 'Instruction Fetch Unit/Runtime Dynamic': 0.619415, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0324443, 'L2/Runtime Dynamic': 0.00559454, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.9073, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.28315, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0863866, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0863866, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.31523, 'Load Store Unit/Runtime Dynamic': 1.79557, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.213015, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.426029, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0755996, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0760829, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.375629, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0318111, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.661605, 'Memory Management Unit/Runtime Dynamic': 0.107894, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 22.9646, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.445624, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0197927, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.154067, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.619484, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.88957, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.123459, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.299658, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.697425, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.274346, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.44251, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.223364, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.940221, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.206848, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.43897, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.131759, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0115073, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.128185, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0851036, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.259943, 'Execution Unit/Register Files/Runtime Dynamic': 0.0966109, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.300921, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.680616, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.42248, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000743591, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000743591, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00065549, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000258029, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00122252, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00336519, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00684999, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0818123, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.20396, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.174669, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.277871, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.67504, 'Instruction Fetch Unit/Runtime Dynamic': 0.544568, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0365819, 'L2/Runtime Dynamic': 0.00712371, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.36629, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.02666, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0688837, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0688837, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.69157, 'Load Store Unit/Runtime Dynamic': 1.43526, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.169855, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.339711, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0602822, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0608277, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.323563, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0286458, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.583226, 'Memory Management Unit/Runtime Dynamic': 0.0894735, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 21.0149, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.346596, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0165957, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.133413, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.496604, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.99551, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.4907122877281571, 'Runtime Dynamic': 0.4907122877281571, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.0912997, 'Runtime Dynamic': 0.0508145, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 97.9256, 'Peak Power': 131.038, 'Runtime Dynamic': 29.2733, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 97.8343, 'Total Cores/Runtime Dynamic': 29.2225, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.0912997, 'Total L3s/Runtime Dynamic': 0.0508145, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.306958, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.443787, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.76799, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.744131, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.28857, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.739029, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.77173, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.464485, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 8.91233, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.334012, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0269753, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.3055, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.199499, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.639512, 'Execution Unit/Register Files/Runtime Dynamic': 0.226475, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.822308, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.84225, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 5.68962, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00124349, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00124349, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.0010876, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000423501, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00286582, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00644039, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0117608, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.191784, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.399668, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.651384, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.26104, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0723851, 'L2/Runtime Dynamic': 0.013777, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 6.64646, 'Load Store Unit/Data Cache/Runtime Dynamic': 2.60142, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.175005, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.175005, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 7.47624, 'Load Store Unit/Runtime Dynamic': 3.63949, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.431533, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.863066, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.153152, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.154232, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.065541, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.823265, 'Memory Management Unit/Runtime Dynamic': 0.219773, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 30.8147, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.16529, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0520731, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.365967, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 1.58333, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 12.407, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.153474, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.323234, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.889369, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.319682, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.515635, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.260275, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.09559, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.229269, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.80398, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.168021, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0134089, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.151959, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.099167, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.31998, 'Execution Unit/Register Files/Runtime Dynamic': 0.112576, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.358512, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.808434, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.74521, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000575747, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000575747, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000505076, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000197493, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00142454, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00308111, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00539152, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0953318, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.06392, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.196904, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.32379, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.57673, 'Instruction Fetch Unit/Runtime Dynamic': 0.624498, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0344139, 'L2/Runtime Dynamic': 0.00634291, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.95497, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.30647, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0879289, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0879288, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.37019, 'Load Store Unit/Runtime Dynamic': 1.82803, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.216818, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.433635, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0769493, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0774625, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.377032, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0322897, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.665326, 'Memory Management Unit/Runtime Dynamic': 0.109752, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 23.0401, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.441986, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.019802, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.154726, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.616515, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.93035, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.155088, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.324501, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.89669, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.318493, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.513717, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.259307, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.09152, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.226788, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.81282, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.169404, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.013359, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.152259, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0987981, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.321663, 'Execution Unit/Register Files/Runtime Dynamic': 0.112157, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.359548, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.808066, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.74162, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000525531, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000525531, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000460386, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000179671, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00141924, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00293069, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00494412, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0949771, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.04136, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.193978, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.322585, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.55307, 'Instruction Fetch Unit/Runtime Dynamic': 0.619415, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0324443, 'L2/Runtime Dynamic': 0.00559454, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.9073, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.28315, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0863866, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0863866, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 4.31523, 'Load Store Unit/Runtime Dynamic': 1.79557, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.213015, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.426029, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0755996, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0760829, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.375629, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0318111, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.661605, 'Memory Management Unit/Runtime Dynamic': 0.107894, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 22.9646, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.445624, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0197927, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.154067, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.619484, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 5.88957, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 0.123459, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.299658, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 0.697425, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.274346, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.44251, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.223364, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.940221, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.206848, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 5.43897, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.131759, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0115073, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.128185, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0851036, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.259943, 'Execution Unit/Register Files/Runtime Dynamic': 0.0966109, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.300921, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.680616, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 2.42248, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.000743591, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.000743591, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00065549, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000258029, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00122252, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00336519, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00684999, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0818123, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 5.20396, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.174669, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.277871, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 7.67504, 'Instruction Fetch Unit/Runtime Dynamic': 0.544568, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0365819, 'L2/Runtime Dynamic': 0.00712371, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 3.36629, 'Load Store Unit/Data Cache/Runtime Dynamic': 1.02666, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.0688837, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.0688837, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 3.69157, 'Load Store Unit/Runtime Dynamic': 1.43526, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.169855, 'Load Store Unit/StoreQ/Runtime Dynamic': 0.339711, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.0602822, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0608277, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.323563, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0286458, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.583226, 'Memory Management Unit/Runtime Dynamic': 0.0894735, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 21.0149, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.346596, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0165957, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.133413, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.496604, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 4.99551, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 0.4907122877281571, 'Runtime Dynamic': 0.4907122877281571, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.0912997, 'Runtime Dynamic': 0.0508145, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 97.9256, 'Peak Power': 131.038, 'Runtime Dynamic': 29.2733, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 97.8343, 'Total Cores/Runtime Dynamic': 29.2225, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.0912997, 'Total L3s/Runtime Dynamic': 0.0508145, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
numbers = [1,3,5,4,6,2,8,9,7] prime_numbers = [] non_prime_numbers = [] i = 0 while i < len(numbers): if numbers[i] % 2 == 0: prime_numbers.append(numbers[i]) else: non_prime_numbers.append(numbers[i]) i += 1 print(f'Obshii spisok {numbers}') print(f'4etnye 4islami: {prime_numbers}') print(f'Ne4etnye 4isla: {non_prime_numbers}')
numbers = [1, 3, 5, 4, 6, 2, 8, 9, 7] prime_numbers = [] non_prime_numbers = [] i = 0 while i < len(numbers): if numbers[i] % 2 == 0: prime_numbers.append(numbers[i]) else: non_prime_numbers.append(numbers[i]) i += 1 print(f'Obshii spisok {numbers}') print(f'4etnye 4islami: {prime_numbers}') print(f'Ne4etnye 4isla: {non_prime_numbers}')
# # PySNMP MIB module TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:27:18 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "ConstraintsUnion", "ValueRangeConstraint", "ConstraintsIntersection", "SingleValueConstraint") ObjectGroup, ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ObjectGroup", "ModuleCompliance", "NotificationGroup") iso, IpAddress, Unsigned32, TimeTicks, ModuleIdentity, Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, MibIdentifier, NotificationType, ObjectIdentity, Integer32, Counter64, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "IpAddress", "Unsigned32", "TimeTicks", "ModuleIdentity", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "MibIdentifier", "NotificationType", "ObjectIdentity", "Integer32", "Counter64", "Counter32") TextualConvention, DisplayString, MacAddress = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "MacAddress") TrpzApNum, TrpzRadioRateEx, TrpzApRadioIndex, TrpzChannelNum, TrpzRssi = mibBuilder.importSymbols("TRAPEZE-NETWORKS-AP-TC", "TrpzApNum", "TrpzRadioRateEx", "TrpzApRadioIndex", "TrpzChannelNum", "TrpzRssi") TrpzRFDetectNetworkingMode, TrpzRFDetectClassificationReason, TrpzRFDetectClassification, TrpzRFDetectDot11ModulationStandard = mibBuilder.importSymbols("TRAPEZE-NETWORKS-RF-DETECT-TC", "TrpzRFDetectNetworkingMode", "TrpzRFDetectClassificationReason", "TrpzRFDetectClassification", "TrpzRFDetectDot11ModulationStandard") trpzMibs, = mibBuilder.importSymbols("TRAPEZE-NETWORKS-ROOT-MIB", "trpzMibs") trpzInfoRFDetectMib = ModuleIdentity((1, 3, 6, 1, 4, 1, 14525, 4, 9)) trpzInfoRFDetectMib.setRevisions(('2011-07-27 00:22', '2009-08-18 00:21', '2007-06-27 00:11', '2007-04-18 00:10', '2006-10-11 00:03',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: trpzInfoRFDetectMib.setRevisionsDescriptions(('v1.3.2: Revised for 7.7 release.', 'v1.3.1: Added one table: trpzInfoRFDetectClientTable to support detected Clients and RFID tags (for 7.7 release).', 'v1.2.0: Added one scalar: trpzInfoRFDetectCurrentXmtrTableSize (for 6.2 release)', 'v1.1.0: Added three new columnar objects: - trpzInfoRFDetectXmtrNetworkingMode, - trpzInfoRFDetectXmtrClassification, - trpzInfoRFDetectXmtrClassificationReason (for 6.2 release)', 'v1.0.3: Initial version, for 6.0 release',)) if mibBuilder.loadTexts: trpzInfoRFDetectMib.setLastUpdated('201107270022Z') if mibBuilder.loadTexts: trpzInfoRFDetectMib.setOrganization('Trapeze Networks') if mibBuilder.loadTexts: trpzInfoRFDetectMib.setContactInfo('Trapeze Networks Technical Support www.trapezenetworks.com US: 866.TRPZ.TAC International: 925.474.2400 [email protected]') if mibBuilder.loadTexts: trpzInfoRFDetectMib.setDescription("RF Detect MIB. Copyright 2007-2011 Trapeze Networks, Inc. All rights reserved. This Trapeze Networks SNMP Management Information Base Specification (Specification) embodies Trapeze Networks' confidential and proprietary intellectual property. Trapeze Networks retains all title and ownership in the Specification, including any revisions. This Specification is supplied 'AS IS' and Trapeze Networks makes no warranty, either express or implied, as to the use, operation, condition, or performance of the Specification.") trpzInfoRFDetectObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1)) trpzInfoRFDetectDataObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1)) trpzInfoRFDetectXmtrTable = MibTable((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1), ) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTable.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTable.setDescription('Transmitter table. May contain tens of thousands of entries (different Transmitter-Listener-Channel combinations).') trpzInfoRFDetectXmtrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1), ).setIndexNames((0, "TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrTransmitterMacAddress"), (0, "TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrListenerMacAddress"), (0, "TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrChannelNum")) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrEntry.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrEntry.setDescription('Transmitter-Listener-Channel combination.') trpzInfoRFDetectXmtrTransmitterMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 1), MacAddress()) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTransmitterMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTransmitterMacAddress.setDescription('The MAC Address of this Transmitter.') trpzInfoRFDetectXmtrListenerMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 2), MacAddress()) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrListenerMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrListenerMacAddress.setDescription('The MAC Address of this Listener.') trpzInfoRFDetectXmtrChannelNum = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 3), TrpzChannelNum()) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrChannelNum.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrChannelNum.setDescription('Channel Number this transmitter was using when this listener detected it.') trpzInfoRFDetectXmtrRssi = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 4), TrpzRssi()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectXmtrRssi.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrRssi.setDescription('Received Signal Strength Indicator at this listener.') trpzInfoRFDetectXmtrSsid = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectXmtrSsid.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrSsid.setDescription('The service/SSID name this transmitter was using. Zero-length string when unknown or not applicable.') trpzInfoRFDetectXmtrNetworkingMode = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 6), TrpzRFDetectNetworkingMode()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectXmtrNetworkingMode.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrNetworkingMode.setDescription('The way this transmitter is doing wireless networking: ad-hoc mode networking or infrastructure mode networking.') trpzInfoRFDetectXmtrClassification = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 7), TrpzRFDetectClassification()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassification.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassification.setDescription('The RF classification of this transmitter.') trpzInfoRFDetectXmtrClassificationReason = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 8), TrpzRFDetectClassificationReason()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassificationReason.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassificationReason.setDescription('The reason why this transmitter was classified by RF detection the way it is.') trpzInfoRFDetectClientTable = MibTable((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3), ) if mibBuilder.loadTexts: trpzInfoRFDetectClientTable.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientTable.setDescription('Client table, including RFID tags. Contains Client-Listener combinations.') trpzInfoRFDetectClientEntry = MibTableRow((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1), ).setIndexNames((0, "TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientMacAddress"), (0, "TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientListenerMacAddress")) if mibBuilder.loadTexts: trpzInfoRFDetectClientEntry.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientEntry.setDescription('Information about a particular Client, as it was detected by a particular listener (AP radio).') trpzInfoRFDetectClientMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 1), MacAddress()) if mibBuilder.loadTexts: trpzInfoRFDetectClientMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientMacAddress.setDescription('The MAC Address of this Client.') trpzInfoRFDetectClientListenerMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 2), MacAddress()) if mibBuilder.loadTexts: trpzInfoRFDetectClientListenerMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientListenerMacAddress.setDescription('The MAC Address of this Listener (AP radio).') trpzInfoRFDetectClientConnectedBssid = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientConnectedBssid.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientConnectedBssid.setDescription('The service MAC address (a.k.a. BSSID) this Client was Connected to when last detected by this listener. If this information is not available, the value will be 0:0:0:0:0:0.') trpzInfoRFDetectClientApNum = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 4), TrpzApNum()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientApNum.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientApNum.setDescription('Number of the AP (listener) that detected this Client.') trpzInfoRFDetectClientApRadioIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 5), TrpzApRadioIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientApRadioIndex.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientApRadioIndex.setDescription('Number of the AP Radio (listener) that detected this Client.') trpzInfoRFDetectClientModulation = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 6), TrpzRFDetectDot11ModulationStandard()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientModulation.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientModulation.setDescription('802.11 Modulation standard this Client was using when last detected by this listener (a, b, g, n/a, n/g).') trpzInfoRFDetectClientChannelNum = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 7), TrpzChannelNum()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientChannelNum.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientChannelNum.setDescription('Channel Number this Client was using when last detected by this listener.') trpzInfoRFDetectClientRate = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 8), TrpzRadioRateEx()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientRate.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientRate.setDescription('Packet data rate this Client was using when last detected by this listener.') trpzInfoRFDetectClientRssi = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 9), TrpzRssi()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientRssi.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientRssi.setDescription('Received Signal Strength Indicator for this Client when last detected by this listener.') trpzInfoRFDetectClientClassification = MibTableColumn((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 10), TrpzRFDetectClassification()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectClientClassification.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientClassification.setDescription('The RF classification of this Client.') trpzInfoRFDetectCurrentXmtrTableSize = MibScalar((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 2), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: trpzInfoRFDetectCurrentXmtrTableSize.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectCurrentXmtrTableSize.setDescription('Current number of Transmitter-Listener-Channel combinations found and recorded by RF detection.') trpzInfoRFDetectConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2)) trpzInfoRFDetectCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 1)) trpzInfoRFDetectGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2)) trpzInfoRFDetectCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 1, 1)).setObjects(("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrGroup"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrClassificationGroup"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectCurrentXmtrTableSizeGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpzInfoRFDetectCompliance = trpzInfoRFDetectCompliance.setStatus('obsolete') if mibBuilder.loadTexts: trpzInfoRFDetectCompliance.setDescription('The compliance statement for devices that implement the RF Detect MIB. This compliance statement is for releases 6.0 to 7.6 of AC (wireless switch) software.') trpzInfoRFDetectComplianceRev2 = ModuleCompliance((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 1, 2)).setObjects(("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrGroup"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrClassificationGroup"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectCurrentXmtrTableSizeGroup"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpzInfoRFDetectComplianceRev2 = trpzInfoRFDetectComplianceRev2.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectComplianceRev2.setDescription('The compliance statement for devices that implement the RF Detect MIB. This compliance statement is for releases 7.7 and greater of AC (wireless switch) software.') trpzInfoRFDetectXmtrGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 1)).setObjects(("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrRssi"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrSsid")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpzInfoRFDetectXmtrGroup = trpzInfoRFDetectXmtrGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrGroup.setDescription('Mandatory group of objects implemented to provide RF Detect Transmitter info.') trpzInfoRFDetectXmtrClassificationGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 2)).setObjects(("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrNetworkingMode"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrClassification"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectXmtrClassificationReason")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpzInfoRFDetectXmtrClassificationGroup = trpzInfoRFDetectXmtrClassificationGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassificationGroup.setDescription('Group of objects implemented to provide RF Detect Classification info. Introduced in 6.2 release.') trpzInfoRFDetectCurrentXmtrTableSizeGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 3)).setObjects(("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectCurrentXmtrTableSize")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpzInfoRFDetectCurrentXmtrTableSizeGroup = trpzInfoRFDetectCurrentXmtrTableSizeGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectCurrentXmtrTableSizeGroup.setDescription('Group for one object that provides the current number of Transmitter-Listener-Channel combinations found and recorded by RF detection. Introduced in 6.2 release.') trpzInfoRFDetectClientGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 4)).setObjects(("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientConnectedBssid"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientApNum"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientApRadioIndex"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientModulation"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientChannelNum"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientRate"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientRssi"), ("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", "trpzInfoRFDetectClientClassification")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpzInfoRFDetectClientGroup = trpzInfoRFDetectClientGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientGroup.setDescription('Mandatory group of objects implemented to provide RF Detect Client info in releases 7.7 and greater.') mibBuilder.exportSymbols("TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB", trpzInfoRFDetectClientConnectedBssid=trpzInfoRFDetectClientConnectedBssid, trpzInfoRFDetectXmtrTable=trpzInfoRFDetectXmtrTable, trpzInfoRFDetectXmtrClassification=trpzInfoRFDetectXmtrClassification, trpzInfoRFDetectClientClassification=trpzInfoRFDetectClientClassification, trpzInfoRFDetectClientRssi=trpzInfoRFDetectClientRssi, trpzInfoRFDetectMib=trpzInfoRFDetectMib, trpzInfoRFDetectCurrentXmtrTableSizeGroup=trpzInfoRFDetectCurrentXmtrTableSizeGroup, trpzInfoRFDetectXmtrListenerMacAddress=trpzInfoRFDetectXmtrListenerMacAddress, trpzInfoRFDetectXmtrClassificationGroup=trpzInfoRFDetectXmtrClassificationGroup, trpzInfoRFDetectClientListenerMacAddress=trpzInfoRFDetectClientListenerMacAddress, trpzInfoRFDetectXmtrChannelNum=trpzInfoRFDetectXmtrChannelNum, trpzInfoRFDetectXmtrTransmitterMacAddress=trpzInfoRFDetectXmtrTransmitterMacAddress, trpzInfoRFDetectClientRate=trpzInfoRFDetectClientRate, trpzInfoRFDetectClientChannelNum=trpzInfoRFDetectClientChannelNum, trpzInfoRFDetectClientGroup=trpzInfoRFDetectClientGroup, trpzInfoRFDetectObjects=trpzInfoRFDetectObjects, trpzInfoRFDetectClientEntry=trpzInfoRFDetectClientEntry, trpzInfoRFDetectClientApNum=trpzInfoRFDetectClientApNum, trpzInfoRFDetectClientTable=trpzInfoRFDetectClientTable, trpzInfoRFDetectXmtrSsid=trpzInfoRFDetectXmtrSsid, trpzInfoRFDetectCurrentXmtrTableSize=trpzInfoRFDetectCurrentXmtrTableSize, trpzInfoRFDetectXmtrRssi=trpzInfoRFDetectXmtrRssi, trpzInfoRFDetectComplianceRev2=trpzInfoRFDetectComplianceRev2, PYSNMP_MODULE_ID=trpzInfoRFDetectMib, trpzInfoRFDetectXmtrClassificationReason=trpzInfoRFDetectXmtrClassificationReason, trpzInfoRFDetectCompliance=trpzInfoRFDetectCompliance, trpzInfoRFDetectCompliances=trpzInfoRFDetectCompliances, trpzInfoRFDetectXmtrEntry=trpzInfoRFDetectXmtrEntry, trpzInfoRFDetectConformance=trpzInfoRFDetectConformance, trpzInfoRFDetectClientApRadioIndex=trpzInfoRFDetectClientApRadioIndex, trpzInfoRFDetectGroups=trpzInfoRFDetectGroups, trpzInfoRFDetectXmtrNetworkingMode=trpzInfoRFDetectXmtrNetworkingMode, trpzInfoRFDetectClientMacAddress=trpzInfoRFDetectClientMacAddress, trpzInfoRFDetectClientModulation=trpzInfoRFDetectClientModulation, trpzInfoRFDetectDataObjects=trpzInfoRFDetectDataObjects, trpzInfoRFDetectXmtrGroup=trpzInfoRFDetectXmtrGroup)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, constraints_union, value_range_constraint, constraints_intersection, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'ConstraintsUnion', 'ValueRangeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint') (object_group, module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ObjectGroup', 'ModuleCompliance', 'NotificationGroup') (iso, ip_address, unsigned32, time_ticks, module_identity, bits, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, mib_identifier, notification_type, object_identity, integer32, counter64, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'IpAddress', 'Unsigned32', 'TimeTicks', 'ModuleIdentity', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'MibIdentifier', 'NotificationType', 'ObjectIdentity', 'Integer32', 'Counter64', 'Counter32') (textual_convention, display_string, mac_address) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'MacAddress') (trpz_ap_num, trpz_radio_rate_ex, trpz_ap_radio_index, trpz_channel_num, trpz_rssi) = mibBuilder.importSymbols('TRAPEZE-NETWORKS-AP-TC', 'TrpzApNum', 'TrpzRadioRateEx', 'TrpzApRadioIndex', 'TrpzChannelNum', 'TrpzRssi') (trpz_rf_detect_networking_mode, trpz_rf_detect_classification_reason, trpz_rf_detect_classification, trpz_rf_detect_dot11_modulation_standard) = mibBuilder.importSymbols('TRAPEZE-NETWORKS-RF-DETECT-TC', 'TrpzRFDetectNetworkingMode', 'TrpzRFDetectClassificationReason', 'TrpzRFDetectClassification', 'TrpzRFDetectDot11ModulationStandard') (trpz_mibs,) = mibBuilder.importSymbols('TRAPEZE-NETWORKS-ROOT-MIB', 'trpzMibs') trpz_info_rf_detect_mib = module_identity((1, 3, 6, 1, 4, 1, 14525, 4, 9)) trpzInfoRFDetectMib.setRevisions(('2011-07-27 00:22', '2009-08-18 00:21', '2007-06-27 00:11', '2007-04-18 00:10', '2006-10-11 00:03')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: trpzInfoRFDetectMib.setRevisionsDescriptions(('v1.3.2: Revised for 7.7 release.', 'v1.3.1: Added one table: trpzInfoRFDetectClientTable to support detected Clients and RFID tags (for 7.7 release).', 'v1.2.0: Added one scalar: trpzInfoRFDetectCurrentXmtrTableSize (for 6.2 release)', 'v1.1.0: Added three new columnar objects: - trpzInfoRFDetectXmtrNetworkingMode, - trpzInfoRFDetectXmtrClassification, - trpzInfoRFDetectXmtrClassificationReason (for 6.2 release)', 'v1.0.3: Initial version, for 6.0 release')) if mibBuilder.loadTexts: trpzInfoRFDetectMib.setLastUpdated('201107270022Z') if mibBuilder.loadTexts: trpzInfoRFDetectMib.setOrganization('Trapeze Networks') if mibBuilder.loadTexts: trpzInfoRFDetectMib.setContactInfo('Trapeze Networks Technical Support www.trapezenetworks.com US: 866.TRPZ.TAC International: 925.474.2400 [email protected]') if mibBuilder.loadTexts: trpzInfoRFDetectMib.setDescription("RF Detect MIB. Copyright 2007-2011 Trapeze Networks, Inc. All rights reserved. This Trapeze Networks SNMP Management Information Base Specification (Specification) embodies Trapeze Networks' confidential and proprietary intellectual property. Trapeze Networks retains all title and ownership in the Specification, including any revisions. This Specification is supplied 'AS IS' and Trapeze Networks makes no warranty, either express or implied, as to the use, operation, condition, or performance of the Specification.") trpz_info_rf_detect_objects = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1)) trpz_info_rf_detect_data_objects = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1)) trpz_info_rf_detect_xmtr_table = mib_table((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1)) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTable.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTable.setDescription('Transmitter table. May contain tens of thousands of entries (different Transmitter-Listener-Channel combinations).') trpz_info_rf_detect_xmtr_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1)).setIndexNames((0, 'TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrTransmitterMacAddress'), (0, 'TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrListenerMacAddress'), (0, 'TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrChannelNum')) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrEntry.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrEntry.setDescription('Transmitter-Listener-Channel combination.') trpz_info_rf_detect_xmtr_transmitter_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 1), mac_address()) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTransmitterMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrTransmitterMacAddress.setDescription('The MAC Address of this Transmitter.') trpz_info_rf_detect_xmtr_listener_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 2), mac_address()) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrListenerMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrListenerMacAddress.setDescription('The MAC Address of this Listener.') trpz_info_rf_detect_xmtr_channel_num = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 3), trpz_channel_num()) if mibBuilder.loadTexts: trpzInfoRFDetectXmtrChannelNum.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrChannelNum.setDescription('Channel Number this transmitter was using when this listener detected it.') trpz_info_rf_detect_xmtr_rssi = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 4), trpz_rssi()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrRssi.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrRssi.setDescription('Received Signal Strength Indicator at this listener.') trpz_info_rf_detect_xmtr_ssid = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrSsid.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrSsid.setDescription('The service/SSID name this transmitter was using. Zero-length string when unknown or not applicable.') trpz_info_rf_detect_xmtr_networking_mode = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 6), trpz_rf_detect_networking_mode()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrNetworkingMode.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrNetworkingMode.setDescription('The way this transmitter is doing wireless networking: ad-hoc mode networking or infrastructure mode networking.') trpz_info_rf_detect_xmtr_classification = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 7), trpz_rf_detect_classification()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassification.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassification.setDescription('The RF classification of this transmitter.') trpz_info_rf_detect_xmtr_classification_reason = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 1, 1, 8), trpz_rf_detect_classification_reason()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassificationReason.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassificationReason.setDescription('The reason why this transmitter was classified by RF detection the way it is.') trpz_info_rf_detect_client_table = mib_table((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3)) if mibBuilder.loadTexts: trpzInfoRFDetectClientTable.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientTable.setDescription('Client table, including RFID tags. Contains Client-Listener combinations.') trpz_info_rf_detect_client_entry = mib_table_row((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1)).setIndexNames((0, 'TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientMacAddress'), (0, 'TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientListenerMacAddress')) if mibBuilder.loadTexts: trpzInfoRFDetectClientEntry.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientEntry.setDescription('Information about a particular Client, as it was detected by a particular listener (AP radio).') trpz_info_rf_detect_client_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 1), mac_address()) if mibBuilder.loadTexts: trpzInfoRFDetectClientMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientMacAddress.setDescription('The MAC Address of this Client.') trpz_info_rf_detect_client_listener_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 2), mac_address()) if mibBuilder.loadTexts: trpzInfoRFDetectClientListenerMacAddress.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientListenerMacAddress.setDescription('The MAC Address of this Listener (AP radio).') trpz_info_rf_detect_client_connected_bssid = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientConnectedBssid.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientConnectedBssid.setDescription('The service MAC address (a.k.a. BSSID) this Client was Connected to when last detected by this listener. If this information is not available, the value will be 0:0:0:0:0:0.') trpz_info_rf_detect_client_ap_num = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 4), trpz_ap_num()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientApNum.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientApNum.setDescription('Number of the AP (listener) that detected this Client.') trpz_info_rf_detect_client_ap_radio_index = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 5), trpz_ap_radio_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientApRadioIndex.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientApRadioIndex.setDescription('Number of the AP Radio (listener) that detected this Client.') trpz_info_rf_detect_client_modulation = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 6), trpz_rf_detect_dot11_modulation_standard()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientModulation.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientModulation.setDescription('802.11 Modulation standard this Client was using when last detected by this listener (a, b, g, n/a, n/g).') trpz_info_rf_detect_client_channel_num = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 7), trpz_channel_num()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientChannelNum.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientChannelNum.setDescription('Channel Number this Client was using when last detected by this listener.') trpz_info_rf_detect_client_rate = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 8), trpz_radio_rate_ex()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientRate.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientRate.setDescription('Packet data rate this Client was using when last detected by this listener.') trpz_info_rf_detect_client_rssi = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 9), trpz_rssi()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientRssi.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientRssi.setDescription('Received Signal Strength Indicator for this Client when last detected by this listener.') trpz_info_rf_detect_client_classification = mib_table_column((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 3, 1, 10), trpz_rf_detect_classification()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectClientClassification.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientClassification.setDescription('The RF classification of this Client.') trpz_info_rf_detect_current_xmtr_table_size = mib_scalar((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 1, 2), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: trpzInfoRFDetectCurrentXmtrTableSize.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectCurrentXmtrTableSize.setDescription('Current number of Transmitter-Listener-Channel combinations found and recorded by RF detection.') trpz_info_rf_detect_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2)) trpz_info_rf_detect_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 1)) trpz_info_rf_detect_groups = mib_identifier((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2)) trpz_info_rf_detect_compliance = module_compliance((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 1, 1)).setObjects(('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrGroup'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrClassificationGroup'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectCurrentXmtrTableSizeGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpz_info_rf_detect_compliance = trpzInfoRFDetectCompliance.setStatus('obsolete') if mibBuilder.loadTexts: trpzInfoRFDetectCompliance.setDescription('The compliance statement for devices that implement the RF Detect MIB. This compliance statement is for releases 6.0 to 7.6 of AC (wireless switch) software.') trpz_info_rf_detect_compliance_rev2 = module_compliance((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 1, 2)).setObjects(('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrGroup'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrClassificationGroup'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectCurrentXmtrTableSizeGroup'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpz_info_rf_detect_compliance_rev2 = trpzInfoRFDetectComplianceRev2.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectComplianceRev2.setDescription('The compliance statement for devices that implement the RF Detect MIB. This compliance statement is for releases 7.7 and greater of AC (wireless switch) software.') trpz_info_rf_detect_xmtr_group = object_group((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 1)).setObjects(('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrRssi'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrSsid')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpz_info_rf_detect_xmtr_group = trpzInfoRFDetectXmtrGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrGroup.setDescription('Mandatory group of objects implemented to provide RF Detect Transmitter info.') trpz_info_rf_detect_xmtr_classification_group = object_group((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 2)).setObjects(('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrNetworkingMode'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrClassification'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectXmtrClassificationReason')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpz_info_rf_detect_xmtr_classification_group = trpzInfoRFDetectXmtrClassificationGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectXmtrClassificationGroup.setDescription('Group of objects implemented to provide RF Detect Classification info. Introduced in 6.2 release.') trpz_info_rf_detect_current_xmtr_table_size_group = object_group((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 3)).setObjects(('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectCurrentXmtrTableSize')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpz_info_rf_detect_current_xmtr_table_size_group = trpzInfoRFDetectCurrentXmtrTableSizeGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectCurrentXmtrTableSizeGroup.setDescription('Group for one object that provides the current number of Transmitter-Listener-Channel combinations found and recorded by RF detection. Introduced in 6.2 release.') trpz_info_rf_detect_client_group = object_group((1, 3, 6, 1, 4, 1, 14525, 4, 9, 1, 2, 2, 4)).setObjects(('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientConnectedBssid'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientApNum'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientApRadioIndex'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientModulation'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientChannelNum'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientRate'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientRssi'), ('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', 'trpzInfoRFDetectClientClassification')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): trpz_info_rf_detect_client_group = trpzInfoRFDetectClientGroup.setStatus('current') if mibBuilder.loadTexts: trpzInfoRFDetectClientGroup.setDescription('Mandatory group of objects implemented to provide RF Detect Client info in releases 7.7 and greater.') mibBuilder.exportSymbols('TRAPEZE-NETWORKS-INFO-RF-DETECT-MIB', trpzInfoRFDetectClientConnectedBssid=trpzInfoRFDetectClientConnectedBssid, trpzInfoRFDetectXmtrTable=trpzInfoRFDetectXmtrTable, trpzInfoRFDetectXmtrClassification=trpzInfoRFDetectXmtrClassification, trpzInfoRFDetectClientClassification=trpzInfoRFDetectClientClassification, trpzInfoRFDetectClientRssi=trpzInfoRFDetectClientRssi, trpzInfoRFDetectMib=trpzInfoRFDetectMib, trpzInfoRFDetectCurrentXmtrTableSizeGroup=trpzInfoRFDetectCurrentXmtrTableSizeGroup, trpzInfoRFDetectXmtrListenerMacAddress=trpzInfoRFDetectXmtrListenerMacAddress, trpzInfoRFDetectXmtrClassificationGroup=trpzInfoRFDetectXmtrClassificationGroup, trpzInfoRFDetectClientListenerMacAddress=trpzInfoRFDetectClientListenerMacAddress, trpzInfoRFDetectXmtrChannelNum=trpzInfoRFDetectXmtrChannelNum, trpzInfoRFDetectXmtrTransmitterMacAddress=trpzInfoRFDetectXmtrTransmitterMacAddress, trpzInfoRFDetectClientRate=trpzInfoRFDetectClientRate, trpzInfoRFDetectClientChannelNum=trpzInfoRFDetectClientChannelNum, trpzInfoRFDetectClientGroup=trpzInfoRFDetectClientGroup, trpzInfoRFDetectObjects=trpzInfoRFDetectObjects, trpzInfoRFDetectClientEntry=trpzInfoRFDetectClientEntry, trpzInfoRFDetectClientApNum=trpzInfoRFDetectClientApNum, trpzInfoRFDetectClientTable=trpzInfoRFDetectClientTable, trpzInfoRFDetectXmtrSsid=trpzInfoRFDetectXmtrSsid, trpzInfoRFDetectCurrentXmtrTableSize=trpzInfoRFDetectCurrentXmtrTableSize, trpzInfoRFDetectXmtrRssi=trpzInfoRFDetectXmtrRssi, trpzInfoRFDetectComplianceRev2=trpzInfoRFDetectComplianceRev2, PYSNMP_MODULE_ID=trpzInfoRFDetectMib, trpzInfoRFDetectXmtrClassificationReason=trpzInfoRFDetectXmtrClassificationReason, trpzInfoRFDetectCompliance=trpzInfoRFDetectCompliance, trpzInfoRFDetectCompliances=trpzInfoRFDetectCompliances, trpzInfoRFDetectXmtrEntry=trpzInfoRFDetectXmtrEntry, trpzInfoRFDetectConformance=trpzInfoRFDetectConformance, trpzInfoRFDetectClientApRadioIndex=trpzInfoRFDetectClientApRadioIndex, trpzInfoRFDetectGroups=trpzInfoRFDetectGroups, trpzInfoRFDetectXmtrNetworkingMode=trpzInfoRFDetectXmtrNetworkingMode, trpzInfoRFDetectClientMacAddress=trpzInfoRFDetectClientMacAddress, trpzInfoRFDetectClientModulation=trpzInfoRFDetectClientModulation, trpzInfoRFDetectDataObjects=trpzInfoRFDetectDataObjects, trpzInfoRFDetectXmtrGroup=trpzInfoRFDetectXmtrGroup)
# Created by MechAviv # Kinesis Introduction # Map ID :: 331001000 # Hideout :: HQ JAY = 1531001 sm.setNpcOverrideBoxChat(JAY) if sm.sendAskYesNo("You lost your gear? Ugh, dude! Don't trash my stuff! It takes time to hack those things together. Here, I have backups of your primary and secondary, but only the basic models. TRY to respect these, hmm?"): sm.giveItem(1353200) sm.giveItem(1262000)
jay = 1531001 sm.setNpcOverrideBoxChat(JAY) if sm.sendAskYesNo("You lost your gear? Ugh, dude! Don't trash my stuff! It takes time to hack those things together. Here, I have backups of your primary and secondary, but only the basic models. TRY to respect these, hmm?"): sm.giveItem(1353200) sm.giveItem(1262000)
users = [] class User(): def __init__(self, username, pin, balance=0): self.username = username self.pin = pin self.balance = balance def deposit(self, amount): self.balance += amount print(f"Deposited ${amount} into account {self.username}") self.print_balance() def deposit_with_input(self): self.deposit(get_amount()) def withdrawal(self, amount): self.balance -= amount print(f"Withdrew ${amount} from account {self.username}") self.print_balance() def withdrawal_with_input(self): self.withdrawal(get_amount()) def request_balance(self): return self.balance def print_balance(self): print(f"Balance for {self.username}: ${self.balance}") users.append(User("spudmix", "1234")) def check_user_exists(username): return username in [user.username for user in users] def get_user(username): return [user for user in users if user.username == username][0] def check_user_pin(user, pin): return user.pin == pin def try_username(max_tries): user_prompt = "Enter Username: " for i in range(max_tries): user_input = input(user_prompt) if check_user_exists(user_input): return get_user(user_input) else: print("User not found") return False def try_pin(max_tries, user): pin_prompt = "Enter Password: " for i in range(max_tries): pin_input = input(pin_prompt) if check_user_pin(user, pin_input): return user else: print("Wrong password") return False def get_amount(): while True: amount_prompt = "Enter Amount: $" input_amount = validate_number(input(amount_prompt)) if input_amount: return input_amount else: print("Please enter a number") def validate_number(num): try: return float(num) except: return False def main_menu(current_user): options = { '1': current_user.deposit_with_input, '2': current_user.withdrawal_with_input, '3': current_user.print_balance, '4': False, 'x': False, } prompt = "Choose an option: \n"\ "1: Deposit\n"\ "2: Withdrawal\n"\ "3: Request Balance\n"\ "4: Exit\n" while True: input_string = input(prompt).strip() if input_string in options: if not options[input_string]: break else: options[input_string]() else: print("Please choose an option from the list") def login(): user = try_username(3) if user: current_user = try_pin(3, user) if current_user: print(f"Succesfully logged in as {current_user.username}") return current_user else: print(f"Password lockout") return False else: print(f"Username lockout") return False current_user = login() if current_user: main_menu(current_user)
users = [] class User: def __init__(self, username, pin, balance=0): self.username = username self.pin = pin self.balance = balance def deposit(self, amount): self.balance += amount print(f'Deposited ${amount} into account {self.username}') self.print_balance() def deposit_with_input(self): self.deposit(get_amount()) def withdrawal(self, amount): self.balance -= amount print(f'Withdrew ${amount} from account {self.username}') self.print_balance() def withdrawal_with_input(self): self.withdrawal(get_amount()) def request_balance(self): return self.balance def print_balance(self): print(f'Balance for {self.username}: ${self.balance}') users.append(user('spudmix', '1234')) def check_user_exists(username): return username in [user.username for user in users] def get_user(username): return [user for user in users if user.username == username][0] def check_user_pin(user, pin): return user.pin == pin def try_username(max_tries): user_prompt = 'Enter Username: ' for i in range(max_tries): user_input = input(user_prompt) if check_user_exists(user_input): return get_user(user_input) else: print('User not found') return False def try_pin(max_tries, user): pin_prompt = 'Enter Password: ' for i in range(max_tries): pin_input = input(pin_prompt) if check_user_pin(user, pin_input): return user else: print('Wrong password') return False def get_amount(): while True: amount_prompt = 'Enter Amount: $' input_amount = validate_number(input(amount_prompt)) if input_amount: return input_amount else: print('Please enter a number') def validate_number(num): try: return float(num) except: return False def main_menu(current_user): options = {'1': current_user.deposit_with_input, '2': current_user.withdrawal_with_input, '3': current_user.print_balance, '4': False, 'x': False} prompt = 'Choose an option: \n1: Deposit\n2: Withdrawal\n3: Request Balance\n4: Exit\n' while True: input_string = input(prompt).strip() if input_string in options: if not options[input_string]: break else: options[input_string]() else: print('Please choose an option from the list') def login(): user = try_username(3) if user: current_user = try_pin(3, user) if current_user: print(f'Succesfully logged in as {current_user.username}') return current_user else: print(f'Password lockout') return False else: print(f'Username lockout') return False current_user = login() if current_user: main_menu(current_user)
def is_it_true(anything): if anything: print('yes, it is true') else: print('no, it is false')
def is_it_true(anything): if anything: print('yes, it is true') else: print('no, it is false')
# -*- coding: utf-8 -*- def split_data(filename): data = {} with open(filename, 'r') as openFile: f = openFile.readlines()[1:] for line in f: line_elements = line.rstrip('\r\n').split(',') key = line_elements[1] if key in data: data[key].append([line_elements[0],line_elements[2]]) else: data[key] = [[line_elements[0], line_elements[2]]] for key in data: with open('data/%s' % key, 'w+') as writeFile: for elem in data[key]: line = ','.join(elem) line += '\n' writeFile.write(line) def reshape_data(): data = {} # raw data with open('Tianchi_power.csv','r') as openFile: f = openFile.readlines()[1:] for line in f: line_elements = line.rstrip('\n\r').split(',') current_spot = int(line_elements[1]) key = '%s' % current_spot value = float(line_elements[2]) if key in data: data[key].append(value) else: data[key] = [value] max_values = [] with open('data/data','w+') as openFile: for i in range(1,1455): key = '%s' % i values = data[key] max_value = max(values) max_values.append((key, max_value)) line = '%s,' % key length = len(values) line += ','.join(['%s' % (x/max_value) for x in values[length-606:length]]) line += '\n' openFile.write(line) with open('data/max_value', 'w+') as openFile: for i in max_values: openFile.write('%s,%s\n' % (i[0],i[1])) reshape_data()
def split_data(filename): data = {} with open(filename, 'r') as open_file: f = openFile.readlines()[1:] for line in f: line_elements = line.rstrip('\r\n').split(',') key = line_elements[1] if key in data: data[key].append([line_elements[0], line_elements[2]]) else: data[key] = [[line_elements[0], line_elements[2]]] for key in data: with open('data/%s' % key, 'w+') as write_file: for elem in data[key]: line = ','.join(elem) line += '\n' writeFile.write(line) def reshape_data(): data = {} with open('Tianchi_power.csv', 'r') as open_file: f = openFile.readlines()[1:] for line in f: line_elements = line.rstrip('\n\r').split(',') current_spot = int(line_elements[1]) key = '%s' % current_spot value = float(line_elements[2]) if key in data: data[key].append(value) else: data[key] = [value] max_values = [] with open('data/data', 'w+') as open_file: for i in range(1, 1455): key = '%s' % i values = data[key] max_value = max(values) max_values.append((key, max_value)) line = '%s,' % key length = len(values) line += ','.join(['%s' % (x / max_value) for x in values[length - 606:length]]) line += '\n' openFile.write(line) with open('data/max_value', 'w+') as open_file: for i in max_values: openFile.write('%s,%s\n' % (i[0], i[1])) reshape_data()
# Duolingo username and password USERNAME = 'username' PASSWORD = 'password' # Locations # Production # DB_FILE = r"db/personal.db" # LOG_DIR = 'path to logging directory' # WEB_PAGE = 'path to destination web page' # TEMPLATE_PAGE = 'path to template for web page' # Development & Test DB_FILE = r"db/personal.db" LOG_DIR = './example/logs/' WEB_PAGE = './example/duo.html' TEMPLATE_PAGE = './templates/duo_template.html'
username = 'username' password = 'password' db_file = 'db/personal.db' log_dir = './example/logs/' web_page = './example/duo.html' template_page = './templates/duo_template.html'
print("Question 1:") ''' Use for, .split(), and if to create a Statement that will print out words that start with 's': st = 'Print only the words that start with s in this sentence' ''' st = 'Print only the words that start with s in this sentence' list_worlds = st.split(' ') for word in list_worlds: if word[0] == 's': print(word) print('\n') print("Question 2:") ''' Use range() to print all the even numbers from 0 to 10. ''' for num in range(0, 11): if num%2 == 0: print(num) listOfNums = list(range(0,11,2)) print(listOfNums) print('\n') print("Question 3:") ''' Use a List Comprehension to create a list of all numbers between 1 and 50 that are divisible by 3. ''' my_list = [ num for num in range(1, 50) if num%3 == 0 ] print(my_list) print('\n') print('Question 4:') ''' Go through the string below and if the length of a word is even print "even!" st = 'Print every word in this sentence that has an even number of letters' ''' st = 'Print every word in this sentence that has an even number of letters' words = st.split(' ') for word in words: if len(word) % 2 == 0 : print(word + 'is even!') print("Another Approch") myList = [word for word in st.split(' ') if len(word) % 2 == 0] print(myList) print('\n') print('Question 5:') ''' Write a program that prints the integers from 1 to 100. But for multiples of three print "Fizz" instead of the number, and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". ''' nums = range(1, 101) for num in nums: if num % 3 == 0 and num % 5 == 0 : print('FizzBuzz') elif num % 3 == 0: print('Fizz') elif num % 5 == 0: print('Buzz') else: print(num) print('\n') print('Question 6:') ''' Use List Comprehension to create a list of the first letters of every word in the string below: st = 'Create a list of the first letters of every word in this string' ''' st = 'Create a list of the first letters of every word in this string' my_list = [ letter[0] for letter in st.split(' ')] print(my_list)
print('Question 1:') "\nUse for, .split(), and if to create a Statement that will print out words that start with 's':\n\nst = 'Print only the words that start with s in this sentence'\n" st = 'Print only the words that start with s in this sentence' list_worlds = st.split(' ') for word in list_worlds: if word[0] == 's': print(word) print('\n') print('Question 2:') '\nUse range() to print all the even numbers from 0 to 10.\n\n' for num in range(0, 11): if num % 2 == 0: print(num) list_of_nums = list(range(0, 11, 2)) print(listOfNums) print('\n') print('Question 3:') '\nUse a List Comprehension to create a list of all numbers between 1 and 50 that are divisible by 3.\n' my_list = [num for num in range(1, 50) if num % 3 == 0] print(my_list) print('\n') print('Question 4:') '\nGo through the string below and if the length of a word is even print "even!"\n\nst = \'Print every word in this sentence that has an even number of letters\'\n' st = 'Print every word in this sentence that has an even number of letters' words = st.split(' ') for word in words: if len(word) % 2 == 0: print(word + 'is even!') print('Another Approch') my_list = [word for word in st.split(' ') if len(word) % 2 == 0] print(myList) print('\n') print('Question 5:') '\nWrite a program that prints the integers from 1 to 100. But for multiples of three print "Fizz" instead of the number, and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".\n' nums = range(1, 101) for num in nums: if num % 3 == 0 and num % 5 == 0: print('FizzBuzz') elif num % 3 == 0: print('Fizz') elif num % 5 == 0: print('Buzz') else: print(num) print('\n') print('Question 6:') "\nUse List Comprehension to create a list of the first letters of every word in the string below:\n\nst = 'Create a list of the first letters of every word in this string'\n" st = 'Create a list of the first letters of every word in this string' my_list = [letter[0] for letter in st.split(' ')] print(my_list)