content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* ------------------------------------------------------------------- #G* Please see the accompanying LICENSE file for further information. #H* ------------------------------------------------------------------- #I* Additional authors of this source file include: #-* #-* #-* #Z* ------------------------------------------------------------------- normal = { ('ALA' , '1HB' ) : { 'type' : 'HC' , 'charge' : 0.0603 } , ('ALA' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0603 } , ('ALA' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0603 } , ('ALA' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ALA' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0337 } , ('ALA' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1825 } , ('ALA' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ALA' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0823 } , ('ALA' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ALA' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('CYM' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.2440 } , ('CYM' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.2440 } , ('CYM' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6160 } , ('CYM' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0350 } , ('CYM' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.7360 } , ('CYM' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2520 } , ('CYM' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0480 } , ('CYM' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4630 } , ('CYM' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5040 } , ('CYM' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.7360 } , ('CYS' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1112 } , ('CYS' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1112 } , ('CYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('CYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0213 } , ('CYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1231 } , ('CYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('CYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1124 } , ('CYS' , 'HG' ) : { 'type' : 'HS' , 'charge' : 0.1933 } , ('CYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('CYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('CYS' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.3119 } , ('CYX' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0910 } , ('CYX' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0910 } , ('CYX' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('CYX' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0429 } , ('CYX' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0790 } , ('CYX' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('CYX' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0766 } , ('CYX' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('CYX' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('CYX' , 'SG' ) : { 'type' : 'S' , 'charge' : -0.1081 } , ('ASP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0122 } , ('ASP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0122 } , ('ASP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5366 } , ('ASP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0381 } , ('ASP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0303 } , ('ASP' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.7994 } , ('ASP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2936 } , ('ASP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0880 } , ('ASP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5163 } , ('ASP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5819 } , ('ASP' , 'OD1' ) : { 'type' : 'O2' , 'charge' : -0.8014 } , ('ASP' , 'OD2' ) : { 'type' : 'O2' , 'charge' : -0.8014 } , ('ASH' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0488 } , ('ASH' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0488 } , ('ASH' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ASH' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0341 } , ('ASH' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0316 } , ('ASH' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.6462 } , ('ASH' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ASH' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0864 } , ('ASH' , 'HD2' ) : { 'type' : 'HO' , 'charge' : 0.4747 } , ('ASH' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ASH' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('ASH' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.5554 } , ('ASH' , 'OD2' ) : { 'type' : 'OH' , 'charge' : -0.6376 } , ('GLU' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0173 } , ('GLU' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0425 } , ('GLU' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0173 } , ('GLU' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0425 } , ('GLU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5366 } , ('GLU' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0397 } , ('GLU' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0560 } , ('GLU' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8054 } , ('GLU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0136 } , ('GLU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2936 } , ('GLU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1105 } , ('GLU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5163 } , ('GLU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5819 } , ('GLU' , 'OE1' ) : { 'type' : 'O2' , 'charge' : -0.8188 } , ('GLU' , 'OE2' ) : { 'type' : 'O2' , 'charge' : -0.8188 } , ('GLP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('GLP' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0430 } , ('GLP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('GLP' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0430 } , ('GLP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('GLP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0145 } , ('GLP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0071 } , ('GLP' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.6801 } , ('GLP' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0174 } , ('GLP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('GLP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0779 } , ('GLP' , 'HE2' ) : { 'type' : 'HO' , 'charge' : 0.4641 } , ('GLP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('GLP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('GLP' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.5838 } , ('GLP' , 'OE2' ) : { 'type' : 'OH' , 'charge' : -0.6511 } , ('PHE' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1330 } , ('PHE' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1430 } , ('PHE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('PHE' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1330 } , ('PHE' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1430 } , ('PHE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('PHE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('PHE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0024 } , ('PHE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0343 } , ('PHE' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1256 } , ('PHE' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1256 } , ('PHE' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.1704 } , ('PHE' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.1704 } , ('PHE' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0118 } , ('PHE' , 'CZ' ) : { 'type' : 'CA' , 'charge' : -0.1072 } , ('PHE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('PHE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0978 } , ('PHE' , 'HZ' ) : { 'type' : 'HA' , 'charge' : 0.1297 } , ('PHE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('PHE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('GLY' , '3HA' ) : { 'type' : 'H1' , 'charge' : 0.0698 } , ('GLY' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('GLY' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0252 } , ('GLY' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('GLY' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0698 } , ('GLY' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('GLY' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('HIP' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3866 } , ('HIP' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.2681 } , ('HIP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0810 } , ('HIP' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.2317 } , ('HIP' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3911 } , ('HIP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0810 } , ('HIP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7341 } , ('HIP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1354 } , ('HIP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0414 } , ('HIP' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.1141 } , ('HIP' , 'CE1' ) : { 'type' : 'CR' , 'charge' : -0.0170 } , ('HIP' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0012 } , ('HIP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2747 } , ('HIP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1212 } , ('HIP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3479 } , ('HIP' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.1513 } , ('HIP' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.1718 } , ('HIP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5894 } , ('HIE' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1435 } , ('HIE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0367 } , ('HIE' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1862 } , ('HIE' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3339 } , ('HIE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0367 } , ('HIE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('HIE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0581 } , ('HIE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0074 } , ('HIE' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.2207 } , ('HIE' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1635 } , ('HIE' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.1868 } , ('HIE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('HIE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1360 } , ('HIE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('HIE' , 'ND1' ) : { 'type' : 'NB' , 'charge' : -0.5432 } , ('HIE' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.2795 } , ('HIE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('HID' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3649 } , ('HID' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1392 } , ('HID' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0402 } , ('HID' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1147 } , ('HID' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0402 } , ('HID' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('HID' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0188 } , ('HID' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0462 } , ('HID' , 'CD2' ) : { 'type' : 'CV' , 'charge' : 0.1292 } , ('HID' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.2057 } , ('HID' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0266 } , ('HID' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('HID' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0881 } , ('HID' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('HID' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.3811 } , ('HID' , 'NE2' ) : { 'type' : 'NB' , 'charge' : -0.5727 } , ('HID' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('ILE' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0186 } , ('ILE' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0882 } , ('ILE' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0186 } , ('ILE' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0236 } , ('ILE' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0882 } , ('ILE' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0186 } , ('ILE' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0236 } , ('ILE' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0882 } , ('ILE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ILE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0597 } , ('ILE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1303 } , ('ILE' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.0660 } , ('ILE' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.0430 } , ('ILE' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3204 } , ('ILE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ILE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0869 } , ('ILE' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0187 } , ('ILE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ILE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('LYS' , '1HZ' ) : { 'type' : 'H' , 'charge' : 0.3400 } , ('LYS' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0362 } , ('LYS' , '2HD' ) : { 'type' : 'HC' , 'charge' : 0.0621 } , ('LYS' , '2HE' ) : { 'type' : 'HP' , 'charge' : 0.1135 } , ('LYS' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0103 } , ('LYS' , '2HZ' ) : { 'type' : 'H' , 'charge' : 0.3400 } , ('LYS' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0362 } , ('LYS' , '3HD' ) : { 'type' : 'HC' , 'charge' : 0.0621 } , ('LYS' , '3HE' ) : { 'type' : 'HP' , 'charge' : 0.1135 } , ('LYS' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0103 } , ('LYS' , '3HZ' ) : { 'type' : 'H' , 'charge' : 0.3400 } , ('LYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7341 } , ('LYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2400 } , ('LYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0094 } , ('LYS' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0479 } , ('LYS' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0143 } , ('LYS' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0187 } , ('LYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2747 } , ('LYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1426 } , ('LYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3479 } , ('LYS' , 'NZ' ) : { 'type' : 'N3' , 'charge' : -0.3854 } , ('LYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5894 } , ('LEU' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '1HD2' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0457 } , ('LEU' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '2HD2' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0457 } , ('LEU' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , '3HD2' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('LEU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('LEU' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0518 } , ('LEU' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1102 } , ('LEU' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.4121 } , ('LEU' , 'CD2' ) : { 'type' : 'CT' , 'charge' : -0.4121 } , ('LEU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.3531 } , ('LEU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('LEU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0922 } , ('LEU' , 'HG' ) : { 'type' : 'HC' , 'charge' : -0.0361 } , ('LEU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('LEU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('MET' , '1HE' ) : { 'type' : 'H1' , 'charge' : 0.0684 } , ('MET' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0241 } , ('MET' , '2HE' ) : { 'type' : 'H1' , 'charge' : 0.0684 } , ('MET' , '2HG' ) : { 'type' : 'H1' , 'charge' : 0.0440 } , ('MET' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0241 } , ('MET' , '3HE' ) : { 'type' : 'H1' , 'charge' : 0.0684 } , ('MET' , '3HG' ) : { 'type' : 'H1' , 'charge' : 0.0440 } , ('MET' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('MET' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0237 } , ('MET' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0342 } , ('MET' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0536 } , ('MET' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0018 } , ('MET' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('MET' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0880 } , ('MET' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('MET' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('MET' , 'SD' ) : { 'type' : 'S' , 'charge' : -0.2737 } , ('ASN' , '1HD2' ) : { 'type' : 'H' , 'charge' : 0.4196 } , ('ASN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0797 } , ('ASN' , '2HD2' ) : { 'type' : 'H' , 'charge' : 0.4196 } , ('ASN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0797 } , ('ASN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('ASN' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0143 } , ('ASN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2041 } , ('ASN' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.7130 } , ('ASN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('ASN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1048 } , ('ASN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ASN' , 'ND2' ) : { 'type' : 'N' , 'charge' : -0.9191 } , ('ASN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('ASN' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.5931 } , ('PRO' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0253 } , ('PRO' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0391 } , ('PRO' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0213 } , ('PRO' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0253 } , ('PRO' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0391 } , ('PRO' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0213 } , ('PRO' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5896 } , ('PRO' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0266 } , ('PRO' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0070 } , ('PRO' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0192 } , ('PRO' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0189 } , ('PRO' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0641 } , ('PRO' , 'N' ) : { 'type' : 'N' , 'charge' : -0.2548 } , ('PRO' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5748 } , ('GLN' , '1HE2' ) : { 'type' : 'H' , 'charge' : 0.4251 } , ('GLN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0171 } , ('GLN' , '2HE2' ) : { 'type' : 'H' , 'charge' : 0.4251 } , ('GLN' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0352 } , ('GLN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0171 } , ('GLN' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0352 } , ('GLN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('GLN' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0031 } , ('GLN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0036 } , ('GLN' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.6951 } , ('GLN' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0645 } , ('GLN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('GLN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0850 } , ('GLN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('GLN' , 'NE2' ) : { 'type' : 'N' , 'charge' : -0.9407 } , ('GLN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('GLN' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.6086 } , ('ARG' , '1HH1' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '1HH2' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0327 } , ('ARG' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0687 } , ('ARG' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0285 } , ('ARG' , '2HH1' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '2HH2' ) : { 'type' : 'H' , 'charge' : 0.4478 } , ('ARG' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0327 } , ('ARG' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0687 } , ('ARG' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0285 } , ('ARG' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7341 } , ('ARG' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2637 } , ('ARG' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0007 } , ('ARG' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0486 } , ('ARG' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0390 } , ('ARG' , 'CZ' ) : { 'type' : 'CA' , 'charge' : 0.8076 } , ('ARG' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2747 } , ('ARG' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1560 } , ('ARG' , 'HE' ) : { 'type' : 'H' , 'charge' : 0.3456 } , ('ARG' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3479 } , ('ARG' , 'NE' ) : { 'type' : 'N2' , 'charge' : -0.5295 } , ('ARG' , 'NH1' ) : { 'type' : 'N2' , 'charge' : -0.8627 } , ('ARG' , 'NH2' ) : { 'type' : 'N2' , 'charge' : -0.8627 } , ('ARG' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5894 } , ('SER' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0352 } , ('SER' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0352 } , ('SER' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('SER' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0249 } , ('SER' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.2117 } , ('SER' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('SER' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0843 } , ('SER' , 'HG' ) : { 'type' : 'HO' , 'charge' : 0.4275 } , ('SER' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('SER' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('SER' , 'OG' ) : { 'type' : 'OH' , 'charge' : -0.6546 } , ('THR' , '1HG' ) : { 'type' : 'HO' , 'charge' : 0.4102 } , ('THR' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0642 } , ('THR' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0642 } , ('THR' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0642 } , ('THR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('THR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0389 } , ('THR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.3654 } , ('THR' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.2438 } , ('THR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('THR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1007 } , ('THR' , 'HB' ) : { 'type' : 'H1' , 'charge' : 0.0043 } , ('THR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('THR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('THR' , 'OG1' ) : { 'type' : 'OH' , 'charge' : -0.6761 } , ('VAL' , '1HG1' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0791 } , ('VAL' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('VAL' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0875 } , ('VAL' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.2985 } , ('VAL' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.3192 } , ('VAL' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3192 } , ('VAL' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('VAL' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0969 } , ('VAL' , 'HB' ) : { 'type' : 'HC' , 'charge' : -0.0297 } , ('VAL' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('VAL' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('TRP' , '1HD' ) : { 'type' : 'H4' , 'charge' : 0.2062 } , ('TRP' , '1HE' ) : { 'type' : 'H' , 'charge' : 0.3412 } , ('TRP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0339 } , ('TRP' , '2HH' ) : { 'type' : 'HA' , 'charge' : 0.1417 } , ('TRP' , '2HZ' ) : { 'type' : 'HA' , 'charge' : 0.1572 } , ('TRP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0339 } , ('TRP' , '3HE' ) : { 'type' : 'HA' , 'charge' : 0.1700 } , ('TRP' , '3HZ' ) : { 'type' : 'HA' , 'charge' : 0.1447 } , ('TRP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('TRP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0275 } , ('TRP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0050 } , ('TRP' , 'CD1' ) : { 'type' : 'CW' , 'charge' : -0.1638 } , ('TRP' , 'CD2' ) : { 'type' : 'CB' , 'charge' : 0.1243 } , ('TRP' , 'CE2' ) : { 'type' : 'CN' , 'charge' : 0.1380 } , ('TRP' , 'CE3' ) : { 'type' : 'CA' , 'charge' : -0.2387 } , ('TRP' , 'CG' ) : { 'type' : 'C*' , 'charge' : -0.1415 } , ('TRP' , 'CH2' ) : { 'type' : 'CA' , 'charge' : -0.1134 } , ('TRP' , 'CZ2' ) : { 'type' : 'CA' , 'charge' : -0.2601 } , ('TRP' , 'CZ3' ) : { 'type' : 'CA' , 'charge' : -0.1972 } , ('TRP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('TRP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1123 } , ('TRP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('TRP' , 'NE1' ) : { 'type' : 'NA' , 'charge' : -0.3418 } , ('TRP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('TYR' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1699 } , ('TYR' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1656 } , ('TYR' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('TYR' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1699 } , ('TYR' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1656 } , ('TYR' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0295 } , ('TYR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5973 } , ('TYR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0014 } , ('TYR' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0152 } , ('TYR' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1906 } , ('TYR' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1906 } , ('TYR' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.2341 } , ('TYR' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.2341 } , ('TYR' , 'CG' ) : { 'type' : 'CA' , 'charge' : -0.0011 } , ('TYR' , 'CZ' ) : { 'type' : 'C' , 'charge' : 0.3226 } , ('TYR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('TYR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0876 } , ('TYR' , 'HH' ) : { 'type' : 'HO' , 'charge' : 0.3992 } , ('TYR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('TYR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , ('TYR' , 'OH' ) : { 'type' : 'OH' , 'charge' : -0.5579 } , ('NME' , '1HH3' ) : { 'type' : 'H1' , 'charge' : 0.0976 } , ('NME' , '2HH3' ) : { 'type' : 'H1' , 'charge' : 0.0976 } , ('NME' , '3HH3' ) : { 'type' : 'H1' , 'charge' : 0.0976 } , ('NME' , 'CH3' ) : { 'type' : 'CT' , 'charge' : -0.1490 } , ('NME' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2719 } , ('NME' , 'N' ) : { 'type' : 'N' , 'charge' : -0.4157 } , ('ACE' , '1HH3' ) : { 'type' : 'HC' , 'charge' : 0.1123 } , ('ACE' , '2HH3' ) : { 'type' : 'HC' , 'charge' : 0.1123 } , ('ACE' , '3HH3' ) : { 'type' : 'HC' , 'charge' : 0.1123 } , ('ACE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5972 } , ('ACE' , 'CH3' ) : { 'type' : 'CT' , 'charge' : -0.3662 } , ('ACE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5679 } , } n_terminal = { ('ALA' , '1HB' ) : { 'type' : 'HC' , 'charge' : 0.0300 } , ('ALA' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1997 } , ('ALA' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0300 } , ('ALA' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1997 } , ('ALA' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0300 } , ('ALA' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1997 } , ('ALA' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('ALA' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0962 } , ('ALA' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0597 } , ('ALA' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0889 } , ('ALA' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1414 } , ('ALA' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('CYS' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2023 } , ('CYS' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1188 } , ('CYS' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2023 } , ('CYS' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1188 } , ('CYS' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2023 } , ('CYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('CYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0927 } , ('CYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1195 } , ('CYS' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1411 } , ('CYS' , 'HG' ) : { 'type' : 'HS' , 'charge' : 0.1975 } , ('CYS' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1325 } , ('CYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('CYS' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.3298 } , ('CYX' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1815 } , ('CYX' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0680 } , ('CYX' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1815 } , ('CYX' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0680 } , ('CYX' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1815 } , ('CYX' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('CYX' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.1055 } , ('CYX' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0277 } , ('CYX' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0922 } , ('CYX' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.2069 } , ('CYX' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('CYX' , 'SG' ) : { 'type' : 'S' , 'charge' : -0.0984 } , ('ASP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('ASP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0292 } , ('ASP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0235 } , ('ASP' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8194 } , ('ASP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1141 } , ('ASP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0782 } , ('ASP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('ASP' , 'OD1' ) : { 'type' : 'O2' , 'charge' : -0.8084 } , ('ASP' , 'OD2' ) : { 'type' : 'O2' , 'charge' : -0.8084 } , ('ASH' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASH' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASH' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASH' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0169 } , ('ASH' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2200 } , ('ASH' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('ASH' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0292 } , ('ASH' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0235 } , ('ASH' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8194 } , ('ASH' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1141 } , ('ASH' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0782 } , ('ASH' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('ASH' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.8084 } , ('ASH' , 'OD2' ) : { 'type' : 'OH' , 'charge' : -0.8084 } , ('GLU' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLU' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLU' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLU' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLU' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLU' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLU' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('GLU' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0588 } , ('GLU' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0909 } , ('GLU' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8087 } , ('GLU' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0236 } , ('GLU' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1202 } , ('GLU' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0017 } , ('GLU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('GLU' , 'OE1' ) : { 'type' : 'O2' , 'charge' : -0.8189 } , ('GLU' , 'OE2' ) : { 'type' : 'O2' , 'charge' : -0.8189 } , ('GLP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLP' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0232 } , ('GLP' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0315 } , ('GLP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2391 } , ('GLP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5621 } , ('GLP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0588 } , ('GLP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0909 } , ('GLP' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8087 } , ('GLP' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0236 } , ('GLP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1202 } , ('GLP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0017 } , ('GLP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5889 } , ('GLP' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.8189 } , ('GLP' , 'OE2' ) : { 'type' : 'OH' , 'charge' : -0.8189 } , ('PHE' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1374 } , ('PHE' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1433 } , ('PHE' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('PHE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0104 } , ('PHE' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1374 } , ('PHE' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1433 } , ('PHE' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('PHE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0104 } , ('PHE' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('PHE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('PHE' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0733 } , ('PHE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0330 } , ('PHE' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1392 } , ('PHE' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1391 } , ('PHE' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.1602 } , ('PHE' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.1603 } , ('PHE' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0031 } , ('PHE' , 'CZ' ) : { 'type' : 'CA' , 'charge' : -0.1208 } , ('PHE' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1041 } , ('PHE' , 'HZ' ) : { 'type' : 'HA' , 'charge' : 0.1329 } , ('PHE' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1737 } , ('PHE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('GLY' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1642 } , ('GLY' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1642 } , ('GLY' , '3HA' ) : { 'type' : 'H1' , 'charge' : 0.0895 } , ('GLY' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1642 } , ('GLY' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('GLY' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0100 } , ('GLY' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0895 } , ('GLY' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.2943 } , ('GLY' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('HIP' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3821 } , ('HIP' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.2645 } , ('HIP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1704 } , ('HIP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0531 } , ('HIP' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.2495 } , ('HIP' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3921 } , ('HIP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1704 } , ('HIP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0531 } , ('HIP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1704 } , ('HIP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7214 } , ('HIP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0581 } , ('HIP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0484 } , ('HIP' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.1433 } , ('HIP' , 'CE1' ) : { 'type' : 'CR' , 'charge' : -0.0011 } , ('HIP' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0236 } , ('HIP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1047 } , ('HIP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.2560 } , ('HIP' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.1510 } , ('HIP' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.1739 } , ('HIP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.6013 } , ('HIE' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1397 } , ('HIE' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2016 } , ('HIE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0223 } , ('HIE' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1963 } , ('HIE' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3324 } , ('HIE' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2016 } , ('HIE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0223 } , ('HIE' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2016 } , ('HIE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('HIE' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0236 } , ('HIE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0489 } , ('HIE' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.2349 } , ('HIE' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1804 } , ('HIE' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.1740 } , ('HIE' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1380 } , ('HIE' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1472 } , ('HIE' , 'ND1' ) : { 'type' : 'NB' , 'charge' : -0.5579 } , ('HIE' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.2781 } , ('HIE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('HID' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3632 } , ('HID' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1385 } , ('HID' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1963 } , ('HID' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0209 } , ('HID' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1299 } , ('HID' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1963 } , ('HID' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0209 } , ('HID' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1963 } , ('HID' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('HID' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0964 } , ('HID' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0259 } , ('HID' , 'CD2' ) : { 'type' : 'CV' , 'charge' : 0.1046 } , ('HID' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.2127 } , ('HID' , 'CG' ) : { 'type' : 'CC' , 'charge' : -0.0399 } , ('HID' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0958 } , ('HID' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1542 } , ('HID' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.3819 } , ('HID' , 'NE2' ) : { 'type' : 'NB' , 'charge' : -0.5711 } , ('HID' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('ILE' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ILE' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0947 } , ('ILE' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2329 } , ('ILE' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ILE' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0201 } , ('ILE' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0947 } , ('ILE' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2329 } , ('ILE' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ILE' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0201 } , ('ILE' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0947 } , ('ILE' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2329 } , ('ILE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('ILE' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0257 } , ('ILE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1885 } , ('ILE' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.0908 } , ('ILE' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.0387 } , ('ILE' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3720 } , ('ILE' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1031 } , ('ILE' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0213 } , ('ILE' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0311 } , ('ILE' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('LYS' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2165 } , ('LYS' , '1HZ' ) : { 'type' : 'H' , 'charge' : 0.3382 } , ('LYS' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0283 } , ('LYS' , '2HD' ) : { 'type' : 'HC' , 'charge' : 0.0633 } , ('LYS' , '2HE' ) : { 'type' : 'HP' , 'charge' : 0.1171 } , ('LYS' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0121 } , ('LYS' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2165 } , ('LYS' , '2HZ' ) : { 'type' : 'H' , 'charge' : 0.3382 } , ('LYS' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0283 } , ('LYS' , '3HD' ) : { 'type' : 'HC' , 'charge' : 0.0633 } , ('LYS' , '3HE' ) : { 'type' : 'HP' , 'charge' : 0.1171 } , ('LYS' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0121 } , ('LYS' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2165 } , ('LYS' , '3HZ' ) : { 'type' : 'H' , 'charge' : 0.3382 } , ('LYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7214 } , ('LYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0015 } , ('LYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0212 } , ('LYS' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0608 } , ('LYS' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0181 } , ('LYS' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0048 } , ('LYS' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1180 } , ('LYS' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0966 } , ('LYS' , 'NZ' ) : { 'type' : 'N3' , 'charge' : -0.3764 } , ('LYS' , 'O' ) : { 'type' : 'O' , 'charge' : -0.6013 } , ('LEU' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '1HD2' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2148 } , ('LEU' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('LEU' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '2HD2' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2148 } , ('LEU' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0256 } , ('LEU' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '3HD2' ) : { 'type' : 'HC' , 'charge' : 0.0980 } , ('LEU' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2148 } , ('LEU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('LEU' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0104 } , ('LEU' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0244 } , ('LEU' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.4106 } , ('LEU' , 'CD2' ) : { 'type' : 'CT' , 'charge' : -0.4104 } , ('LEU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.3421 } , ('LEU' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1053 } , ('LEU' , 'HG' ) : { 'type' : 'HC' , 'charge' : -0.0380 } , ('LEU' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1010 } , ('LEU' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('MET' , '1HE' ) : { 'type' : 'H1' , 'charge' : 0.0597 } , ('MET' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1984 } , ('MET' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0125 } , ('MET' , '2HE' ) : { 'type' : 'H1' , 'charge' : 0.0597 } , ('MET' , '2HG' ) : { 'type' : 'H1' , 'charge' : 0.0292 } , ('MET' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1984 } , ('MET' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0125 } , ('MET' , '3HE' ) : { 'type' : 'H1' , 'charge' : 0.0597 } , ('MET' , '3HG' ) : { 'type' : 'H1' , 'charge' : 0.0292 } , ('MET' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1984 } , ('MET' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('MET' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0221 } , ('MET' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0865 } , ('MET' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0341 } , ('MET' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0334 } , ('MET' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1116 } , ('MET' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1592 } , ('MET' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('MET' , 'SD' ) : { 'type' : 'S' , 'charge' : -0.2774 } , ('ASN' , '1HD2' ) : { 'type' : 'H' , 'charge' : 0.4097 } , ('ASN' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('ASN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0515 } , ('ASN' , '2HD2' ) : { 'type' : 'H' , 'charge' : 0.4097 } , ('ASN' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('ASN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0515 } , ('ASN' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1921 } , ('ASN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('ASN' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0368 } , ('ASN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0283 } , ('ASN' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.5833 } , ('ASN' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1231 } , ('ASN' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1801 } , ('ASN' , 'ND2' ) : { 'type' : 'N' , 'charge' : -0.8634 } , ('ASN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('ASN' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.5744 } , ('PRO' , '2H' ) : { 'type' : 'H' , 'charge' : 0.3120 } , ('PRO' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.1000 } , ('PRO' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , '3H' ) : { 'type' : 'H' , 'charge' : 0.3120 } , ('PRO' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.1000 } , ('PRO' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.1000 } , ('PRO' , 'C' ) : { 'type' : 'C' , 'charge' : 0.5260 } , ('PRO' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.1000 } , ('PRO' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1150 } , ('PRO' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0120 } , ('PRO' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.1210 } , ('PRO' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1000 } , ('PRO' , 'N' ) : { 'type' : 'N3' , 'charge' : -0.2020 } , ('PRO' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5000 } , ('GLN' , '1HE2' ) : { 'type' : 'H' , 'charge' : 0.4429 } , ('GLN' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1996 } , ('GLN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0050 } , ('GLN' , '2HE2' ) : { 'type' : 'H' , 'charge' : 0.4429 } , ('GLN' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0331 } , ('GLN' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1996 } , ('GLN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0050 } , ('GLN' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0331 } , ('GLN' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1996 } , ('GLN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('GLN' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0536 } , ('GLN' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0651 } , ('GLN' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.7354 } , ('GLN' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0903 } , ('GLN' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1015 } , ('GLN' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1493 } , ('GLN' , 'NE2' ) : { 'type' : 'N' , 'charge' : -1.0031 } , ('GLN' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('GLN' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.6133 } , ('ARG' , '1HH1' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '1HH2' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2083 } , ('ARG' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ARG' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0527 } , ('ARG' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0309 } , ('ARG' , '2HH1' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '2HH2' ) : { 'type' : 'H' , 'charge' : 0.4494 } , ('ARG' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2083 } , ('ARG' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0226 } , ('ARG' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0527 } , ('ARG' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0309 } , ('ARG' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2083 } , ('ARG' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7214 } , ('ARG' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0223 } , ('ARG' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0118 } , ('ARG' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0935 } , ('ARG' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0236 } , ('ARG' , 'CZ' ) : { 'type' : 'CA' , 'charge' : 0.8281 } , ('ARG' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1242 } , ('ARG' , 'HE' ) : { 'type' : 'H' , 'charge' : 0.3592 } , ('ARG' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1305 } , ('ARG' , 'NE' ) : { 'type' : 'N2' , 'charge' : -0.5650 } , ('ARG' , 'NH1' ) : { 'type' : 'N2' , 'charge' : -0.8693 } , ('ARG' , 'NH2' ) : { 'type' : 'N2' , 'charge' : -0.8693 } , ('ARG' , 'O' ) : { 'type' : 'O' , 'charge' : -0.6013 } , ('SER' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1898 } , ('SER' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0273 } , ('SER' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1898 } , ('SER' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0273 } , ('SER' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1898 } , ('SER' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('SER' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0567 } , ('SER' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.2596 } , ('SER' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0782 } , ('SER' , 'HG' ) : { 'type' : 'HO' , 'charge' : 0.4239 } , ('SER' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1849 } , ('SER' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('SER' , 'OG' ) : { 'type' : 'OH' , 'charge' : -0.6714 } , ('THR' , '1HG' ) : { 'type' : 'HO' , 'charge' : 0.4070 } , ('THR' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0627 } , ('THR' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1934 } , ('THR' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0627 } , ('THR' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1934 } , ('THR' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0627 } , ('THR' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1934 } , ('THR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('THR' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0034 } , ('THR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.4514 } , ('THR' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.2554 } , ('THR' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1087 } , ('THR' , 'HB' ) : { 'type' : 'H1' , 'charge' : -0.0323 } , ('THR' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1812 } , ('THR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('THR' , 'OG1' ) : { 'type' : 'OH' , 'charge' : -0.6764 } , ('VAL' , '1HG1' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.2272 } , ('VAL' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.2272 } , ('VAL' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0735 } , ('VAL' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.2272 } , ('VAL' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6163 } , ('VAL' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.0054 } , ('VAL' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.3196 } , ('VAL' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.3129 } , ('VAL' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3129 } , ('VAL' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1093 } , ('VAL' , 'HB' ) : { 'type' : 'HC' , 'charge' : -0.0221 } , ('VAL' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.0577 } , ('VAL' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5722 } , ('TRP' , '1HD' ) : { 'type' : 'H4' , 'charge' : 0.2195 } , ('TRP' , '1HE' ) : { 'type' : 'H' , 'charge' : 0.3412 } , ('TRP' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1888 } , ('TRP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0222 } , ('TRP' , '2HH' ) : { 'type' : 'HA' , 'charge' : 0.1411 } , ('TRP' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1888 } , ('TRP' , '2HZ' ) : { 'type' : 'HA' , 'charge' : 0.1589 } , ('TRP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0222 } , ('TRP' , '3HE' ) : { 'type' : 'HA' , 'charge' : 0.1646 } , ('TRP' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1888 } , ('TRP' , '3HZ' ) : { 'type' : 'HA' , 'charge' : 0.1458 } , ('TRP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('TRP' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0421 } , ('TRP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0543 } , ('TRP' , 'CD1' ) : { 'type' : 'CW' , 'charge' : -0.1788 } , ('TRP' , 'CD2' ) : { 'type' : 'CB' , 'charge' : 0.1132 } , ('TRP' , 'CE2' ) : { 'type' : 'CN' , 'charge' : 0.1575 } , ('TRP' , 'CE3' ) : { 'type' : 'CA' , 'charge' : -0.2265 } , ('TRP' , 'CG' ) : { 'type' : 'C*' , 'charge' : -0.1654 } , ('TRP' , 'CH2' ) : { 'type' : 'CA' , 'charge' : -0.1080 } , ('TRP' , 'CZ2' ) : { 'type' : 'CA' , 'charge' : -0.2710 } , ('TRP' , 'CZ3' ) : { 'type' : 'CA' , 'charge' : -0.2034 } , ('TRP' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.1162 } , ('TRP' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1913 } , ('TRP' , 'NE1' ) : { 'type' : 'NA' , 'charge' : -0.3444 } , ('TRP' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('TYR' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1720 } , ('TYR' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1650 } , ('TYR' , '1HT' ) : { 'type' : 'H' , 'charge' : 0.1873 } , ('TYR' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0102 } , ('TYR' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1720 } , ('TYR' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1650 } , ('TYR' , '2HT' ) : { 'type' : 'H' , 'charge' : 0.1873 } , ('TYR' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0102 } , ('TYR' , '3HT' ) : { 'type' : 'H' , 'charge' : 0.1873 } , ('TYR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6123 } , ('TYR' , 'CA' ) : { 'type' : 'CT' , 'charge' : 0.0570 } , ('TYR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0659 } , ('TYR' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.2002 } , ('TYR' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.2002 } , ('TYR' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.2239 } , ('TYR' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.2239 } , ('TYR' , 'CG' ) : { 'type' : 'CA' , 'charge' : -0.0205 } , ('TYR' , 'CZ' ) : { 'type' : 'C' , 'charge' : 0.3139 } , ('TYR' , 'HA' ) : { 'type' : 'HP' , 'charge' : 0.0983 } , ('TYR' , 'HH' ) : { 'type' : 'HO' , 'charge' : 0.4001 } , ('TYR' , 'N' ) : { 'type' : 'N3' , 'charge' : 0.1940 } , ('TYR' , 'O' ) : { 'type' : 'O' , 'charge' : -0.5713 } , ('TYR' , 'OH' ) : { 'type' : 'OH' , 'charge' : -0.5578 } , } c_terminal = { ('ALA' , '1HB' ) : { 'type' : 'HC' , 'charge' : 0.0764 } , ('ALA' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0764 } , ('ALA' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0764 } , ('ALA' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7731 } , ('ALA' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1747 } , ('ALA' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2093 } , ('ALA' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('ALA' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1067 } , ('ALA' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('ALA' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8055 } , ('ALA' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8055 } , ('CYS' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1437 } , ('CYS' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1437 } , ('CYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7497 } , ('CYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1635 } , ('CYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1996 } , ('CYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('CYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1396 } , ('CYS' , 'HG' ) : { 'type' : 'HS' , 'charge' : 0.2068 } , ('CYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('CYS' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7981 } , ('CYS' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7981 } , ('CYS' , 'SG' ) : { 'type' : 'SH' , 'charge' : -0.3102 } , ('CYX' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.1228 } , ('CYX' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.1228 } , ('CYX' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7618 } , ('CYX' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1318 } , ('CYX' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1943 } , ('CYX' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('CYX' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0938 } , ('CYX' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('CYX' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8041 } , ('CYX' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8041 } , ('CYX' , 'SG' ) : { 'type' : 'S' , 'charge' : -0.0529 } , ('ASP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7256 } , ('ASP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1817 } , ('ASP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0677 } , ('ASP' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8851 } , ('ASP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('ASP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1046 } , ('ASP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('ASP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('ASP' , 'OD1' ) : { 'type' : 'O2' , 'charge' : -0.8162 } , ('ASP' , 'OD2' ) : { 'type' : 'O2' , 'charge' : -0.8162 } , ('ASP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('ASH' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASH' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0212 } , ('ASH' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7256 } , ('ASH' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1817 } , ('ASH' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0677 } , ('ASH' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.8851 } , ('ASH' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('ASH' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1046 } , ('ASH' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('ASH' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('ASH' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.8162 } , ('ASH' , 'OD2' ) : { 'type' : 'OH' , 'charge' : -0.8162 } , ('ASH' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7887 } , ('GLU' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLU' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLU' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLU' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7420 } , ('GLU' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2059 } , ('GLU' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0071 } , ('GLU' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8183 } , ('GLU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0675 } , ('GLU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('GLU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1399 } , ('GLU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('GLU' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('GLU' , 'OE1' ) : { 'type' : 'O2' , 'charge' : -0.8220 } , ('GLU' , 'OE2' ) : { 'type' : 'O2' , 'charge' : -0.8220 } , ('GLU' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('GLP' , '2HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLP' , '2HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLP' , '3HB' ) : { 'type' : 'HC' , 'charge' : -0.0078 } , ('GLP' , '3HG' ) : { 'type' : 'HC' , 'charge' : -0.0548 } , ('GLP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7420 } , ('GLP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2059 } , ('GLP' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0071 } , ('GLP' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.8183 } , ('GLP' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0675 } , ('GLP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.3055 } , ('GLP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1399 } , ('GLP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.5192 } , ('GLP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('GLP' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.8220 } , ('GLP' , 'OE2' ) : { 'type' : 'OH' , 'charge' : -0.8220 } , ('GLP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7930 } , ('PHE' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1408 } , ('PHE' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1461 } , ('PHE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0443 } , ('PHE' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1408 } , ('PHE' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1461 } , ('PHE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0443 } , ('PHE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7660 } , ('PHE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1825 } , ('PHE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0959 } , ('PHE' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1300 } , ('PHE' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1300 } , ('PHE' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.1847 } , ('PHE' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.1847 } , ('PHE' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0552 } , ('PHE' , 'CZ' ) : { 'type' : 'CA' , 'charge' : -0.0944 } , ('PHE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('PHE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1098 } , ('PHE' , 'HZ' ) : { 'type' : 'HA' , 'charge' : 0.1280 } , ('PHE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('PHE' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8026 } , ('PHE' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8026 } , ('GLY' , '3HA' ) : { 'type' : 'H1' , 'charge' : 0.1056 } , ('GLY' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7231 } , ('GLY' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2493 } , ('GLY' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('GLY' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1056 } , ('GLY' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('GLY' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7855 } , ('GLY' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7855 } , ('HIP' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3883 } , ('HIP' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.2694 } , ('HIP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0868 } , ('HIP' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.2336 } , ('HIP' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3913 } , ('HIP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0868 } , ('HIP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8032 } , ('HIP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1445 } , ('HIP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0800 } , ('HIP' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.1256 } , ('HIP' , 'CE1' ) : { 'type' : 'CR' , 'charge' : -0.0251 } , ('HIP' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.0298 } , ('HIP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2764 } , ('HIP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1115 } , ('HIP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3481 } , ('HIP' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.1501 } , ('HIP' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.1683 } , ('HIP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8177 } , ('HIP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8177 } , ('HIE' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1448 } , ('HIE' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0620 } , ('HIE' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1957 } , ('HIE' , '2HE' ) : { 'type' : 'H' , 'charge' : 0.3319 } , ('HIE' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0620 } , ('HIE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7916 } , ('HIE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2699 } , ('HIE' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1068 } , ('HIE' , 'CD2' ) : { 'type' : 'CW' , 'charge' : -0.2588 } , ('HIE' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1558 } , ('HIE' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.2724 } , ('HIE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('HIE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1650 } , ('HIE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('HIE' , 'ND1' ) : { 'type' : 'NB' , 'charge' : -0.5517 } , ('HIE' , 'NE2' ) : { 'type' : 'NA' , 'charge' : -0.2670 } , ('HIE' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8065 } , ('HIE' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8065 } , ('HID' , '1HD' ) : { 'type' : 'H' , 'charge' : 0.3755 } , ('HID' , '1HE' ) : { 'type' : 'H5' , 'charge' : 0.1418 } , ('HID' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0565 } , ('HID' , '2HD' ) : { 'type' : 'H4' , 'charge' : 0.1241 } , ('HID' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0565 } , ('HID' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7615 } , ('HID' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1739 } , ('HID' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.1046 } , ('HID' , 'CD2' ) : { 'type' : 'CV' , 'charge' : 0.1001 } , ('HID' , 'CE1' ) : { 'type' : 'CR' , 'charge' : 0.1925 } , ('HID' , 'CG' ) : { 'type' : 'CC' , 'charge' : 0.0293 } , ('HID' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('HID' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1100 } , ('HID' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('HID' , 'ND1' ) : { 'type' : 'NA' , 'charge' : -0.3892 } , ('HID' , 'NE2' ) : { 'type' : 'NB' , 'charge' : -0.5629 } , ('HID' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8016 } , ('HID' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8016 } , ('ILE' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.0196 } , ('ILE' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.1021 } , ('ILE' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.0196 } , ('ILE' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0321 } , ('ILE' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.1021 } , ('ILE' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.0196 } , ('ILE' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0321 } , ('ILE' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.1021 } , ('ILE' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8343 } , ('ILE' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.3100 } , ('ILE' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.0363 } , ('ILE' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.0699 } , ('ILE' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.0323 } , ('ILE' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3498 } , ('ILE' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('ILE' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1375 } , ('ILE' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0766 } , ('ILE' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('ILE' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8190 } , ('ILE' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8190 } , ('LYS' , '1HZ' ) : { 'type' : 'H' , 'charge' : 0.3374 } , ('LYS' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0482 } , ('LYS' , '2HD' ) : { 'type' : 'HC' , 'charge' : 0.0611 } , ('LYS' , '2HE' ) : { 'type' : 'HP' , 'charge' : 0.1121 } , ('LYS' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0134 } , ('LYS' , '2HZ' ) : { 'type' : 'H' , 'charge' : 0.3374 } , ('LYS' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0482 } , ('LYS' , '3HD' ) : { 'type' : 'HC' , 'charge' : 0.0611 } , ('LYS' , '3HE' ) : { 'type' : 'HP' , 'charge' : 0.1121 } , ('LYS' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0134 } , ('LYS' , '3HZ' ) : { 'type' : 'H' , 'charge' : 0.3374 } , ('LYS' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8488 } , ('LYS' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2903 } , ('LYS' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0538 } , ('LYS' , 'CD' ) : { 'type' : 'CT' , 'charge' : -0.0392 } , ('LYS' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0176 } , ('LYS' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0227 } , ('LYS' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2764 } , ('LYS' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1438 } , ('LYS' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3481 } , ('LYS' , 'NZ' ) : { 'type' : 'N3' , 'charge' : -0.3741 } , ('LYS' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8252 } , ('LYS' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8252 } , ('LEU' , '1HD1' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '1HD2' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0974 } , ('LEU' , '2HD1' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '2HD2' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0974 } , ('LEU' , '3HD1' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , '3HD2' ) : { 'type' : 'HC' , 'charge' : 0.1038 } , ('LEU' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8326 } , ('LEU' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2847 } , ('LEU' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2469 } , ('LEU' , 'CD1' ) : { 'type' : 'CT' , 'charge' : -0.4163 } , ('LEU' , 'CD2' ) : { 'type' : 'CT' , 'charge' : -0.4163 } , ('LEU' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.3706 } , ('LEU' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('LEU' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1346 } , ('LEU' , 'HG' ) : { 'type' : 'HC' , 'charge' : -0.0374 } , ('LEU' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('LEU' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8199 } , ('LEU' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8199 } , ('MET' , '1HE' ) : { 'type' : 'H1' , 'charge' : 0.0625 } , ('MET' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0480 } , ('MET' , '2HE' ) : { 'type' : 'H1' , 'charge' : 0.0625 } , ('MET' , '2HG' ) : { 'type' : 'H1' , 'charge' : 0.0317 } , ('MET' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0480 } , ('MET' , '3HE' ) : { 'type' : 'H1' , 'charge' : 0.0625 } , ('MET' , '3HG' ) : { 'type' : 'H1' , 'charge' : 0.0317 } , ('MET' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8013 } , ('MET' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2597 } , ('MET' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0236 } , ('MET' , 'CE' ) : { 'type' : 'CT' , 'charge' : -0.0376 } , ('MET' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0492 } , ('MET' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('MET' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1277 } , ('MET' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('MET' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8105 } , ('MET' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8105 } , ('MET' , 'SD' ) : { 'type' : 'S' , 'charge' : -0.2692 } , ('ASN' , '1HD2' ) : { 'type' : 'H' , 'charge' : 0.4150 } , ('ASN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.1023 } , ('ASN' , '2HD2' ) : { 'type' : 'H' , 'charge' : 0.4150 } , ('ASN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.1023 } , ('ASN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8050 } , ('ASN' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2080 } , ('ASN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.2299 } , ('ASN' , 'CG' ) : { 'type' : 'C' , 'charge' : 0.7153 } , ('ASN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('ASN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1358 } , ('ASN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('ASN' , 'ND2' ) : { 'type' : 'N' , 'charge' : -0.9084 } , ('ASN' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8147 } , ('ASN' , 'OD1' ) : { 'type' : 'O' , 'charge' : -0.6010 } , ('ASN' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8147 } , ('PRO' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0381 } , ('PRO' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0331 } , ('PRO' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0172 } , ('PRO' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0381 } , ('PRO' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0331 } , ('PRO' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0172 } , ('PRO' , 'C' ) : { 'type' : 'C' , 'charge' : 0.6631 } , ('PRO' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.1336 } , ('PRO' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0543 } , ('PRO' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.0434 } , ('PRO' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0466 } , ('PRO' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.0776 } , ('PRO' , 'N' ) : { 'type' : 'N' , 'charge' : -0.2802 } , ('PRO' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.7697 } , ('PRO' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.7697 } , ('GLN' , '1HE2' ) : { 'type' : 'H' , 'charge' : 0.4304 } , ('GLN' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0452 } , ('GLN' , '2HE2' ) : { 'type' : 'H' , 'charge' : 0.4304 } , ('GLN' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0203 } , ('GLN' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0452 } , ('GLN' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0203 } , ('GLN' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7775 } , ('GLN' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2248 } , ('GLN' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0664 } , ('GLN' , 'CD' ) : { 'type' : 'C' , 'charge' : 0.7093 } , ('GLN' , 'CG' ) : { 'type' : 'CT' , 'charge' : -0.0210 } , ('GLN' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('GLN' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1232 } , ('GLN' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('GLN' , 'NE2' ) : { 'type' : 'N' , 'charge' : -0.9574 } , ('GLN' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8042 } , ('GLN' , 'OE1' ) : { 'type' : 'O' , 'charge' : -0.6098 } , ('GLN' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8042 } , ('ARG' , '1HH1' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '1HH2' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0371 } , ('ARG' , '2HD' ) : { 'type' : 'H1' , 'charge' : 0.0468 } , ('ARG' , '2HG' ) : { 'type' : 'HC' , 'charge' : 0.0185 } , ('ARG' , '2HH1' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '2HH2' ) : { 'type' : 'H' , 'charge' : 0.4493 } , ('ARG' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0371 } , ('ARG' , '3HD' ) : { 'type' : 'H1' , 'charge' : 0.0468 } , ('ARG' , '3HG' ) : { 'type' : 'HC' , 'charge' : 0.0185 } , ('ARG' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8557 } , ('ARG' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.3068 } , ('ARG' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0374 } , ('ARG' , 'CD' ) : { 'type' : 'CT' , 'charge' : 0.1114 } , ('ARG' , 'CG' ) : { 'type' : 'CT' , 'charge' : 0.0744 } , ('ARG' , 'CZ' ) : { 'type' : 'CA' , 'charge' : 0.8368 } , ('ARG' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2764 } , ('ARG' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1447 } , ('ARG' , 'HE' ) : { 'type' : 'H' , 'charge' : 0.3479 } , ('ARG' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3481 } , ('ARG' , 'NE' ) : { 'type' : 'N2' , 'charge' : -0.5564 } , ('ARG' , 'NH1' ) : { 'type' : 'N2' , 'charge' : -0.8737 } , ('ARG' , 'NH2' ) : { 'type' : 'N2' , 'charge' : -0.8737 } , ('ARG' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8266 } , ('ARG' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8266 } , ('SER' , '2HB' ) : { 'type' : 'H1' , 'charge' : 0.0813 } , ('SER' , '3HB' ) : { 'type' : 'H1' , 'charge' : 0.0813 } , ('SER' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8113 } , ('SER' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2722 } , ('SER' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1123 } , ('SER' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('SER' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1304 } , ('SER' , 'HG' ) : { 'type' : 'HO' , 'charge' : 0.4474 } , ('SER' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('SER' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8132 } , ('SER' , 'OG' ) : { 'type' : 'OH' , 'charge' : -0.6514 } , ('SER' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8132 } , ('THR' , '1HG' ) : { 'type' : 'HO' , 'charge' : 0.4119 } , ('THR' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0586 } , ('THR' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0586 } , ('THR' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0586 } , ('THR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7810 } , ('THR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2420 } , ('THR' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.3025 } , ('THR' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.1853 } , ('THR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('THR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1207 } , ('THR' , 'HB' ) : { 'type' : 'H1' , 'charge' : 0.0078 } , ('THR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('THR' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8044 } , ('THR' , 'OG1' ) : { 'type' : 'OH' , 'charge' : -0.6496 } , ('THR' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8044 } , ('VAL' , '1HG1' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '1HG2' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '2HG1' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '2HG2' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '3HG1' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , '3HG2' ) : { 'type' : 'HC' , 'charge' : 0.0836 } , ('VAL' , 'C' ) : { 'type' : 'C' , 'charge' : 0.8350 } , ('VAL' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.3438 } , ('VAL' , 'CB' ) : { 'type' : 'CT' , 'charge' : 0.1940 } , ('VAL' , 'CG1' ) : { 'type' : 'CT' , 'charge' : -0.3064 } , ('VAL' , 'CG2' ) : { 'type' : 'CT' , 'charge' : -0.3064 } , ('VAL' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('VAL' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1438 } , ('VAL' , 'HB' ) : { 'type' : 'HC' , 'charge' : 0.0308 } , ('VAL' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('VAL' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8173 } , ('VAL' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8173 } , ('TRP' , '1HD' ) : { 'type' : 'H4' , 'charge' : 0.2043 } , ('TRP' , '1HE' ) : { 'type' : 'H' , 'charge' : 0.3413 } , ('TRP' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0497 } , ('TRP' , '2HH' ) : { 'type' : 'HA' , 'charge' : 0.1401 } , ('TRP' , '2HZ' ) : { 'type' : 'HA' , 'charge' : 0.1567 } , ('TRP' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0497 } , ('TRP' , '3HE' ) : { 'type' : 'HA' , 'charge' : 0.1491 } , ('TRP' , '3HZ' ) : { 'type' : 'HA' , 'charge' : 0.1507 } , ('TRP' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7658 } , ('TRP' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2084 } , ('TRP' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0742 } , ('TRP' , 'CD1' ) : { 'type' : 'CW' , 'charge' : -0.1808 } , ('TRP' , 'CD2' ) : { 'type' : 'CB' , 'charge' : 0.1078 } , ('TRP' , 'CE2' ) : { 'type' : 'CN' , 'charge' : 0.1222 } , ('TRP' , 'CE3' ) : { 'type' : 'CA' , 'charge' : -0.1837 } , ('TRP' , 'CG' ) : { 'type' : 'C*' , 'charge' : -0.0796 } , ('TRP' , 'CH2' ) : { 'type' : 'CA' , 'charge' : -0.1020 } , ('TRP' , 'CZ2' ) : { 'type' : 'CA' , 'charge' : -0.2594 } , ('TRP' , 'CZ3' ) : { 'type' : 'CA' , 'charge' : -0.2287 } , ('TRP' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('TRP' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1272 } , ('TRP' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('TRP' , 'NE1' ) : { 'type' : 'NA' , 'charge' : -0.3316 } , ('TRP' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8011 } , ('TRP' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8011 } , ('TYR' , '1HD' ) : { 'type' : 'HA' , 'charge' : 0.1780 } , ('TYR' , '1HE' ) : { 'type' : 'HA' , 'charge' : 0.1673 } , ('TYR' , '2HB' ) : { 'type' : 'HC' , 'charge' : 0.0490 } , ('TYR' , '2HD' ) : { 'type' : 'HA' , 'charge' : 0.1780 } , ('TYR' , '2HE' ) : { 'type' : 'HA' , 'charge' : 0.1673 } , ('TYR' , '3HB' ) : { 'type' : 'HC' , 'charge' : 0.0490 } , ('TYR' , 'C' ) : { 'type' : 'C' , 'charge' : 0.7817 } , ('TYR' , 'CA' ) : { 'type' : 'CT' , 'charge' : -0.2015 } , ('TYR' , 'CB' ) : { 'type' : 'CT' , 'charge' : -0.0752 } , ('TYR' , 'CD1' ) : { 'type' : 'CA' , 'charge' : -0.1922 } , ('TYR' , 'CD2' ) : { 'type' : 'CA' , 'charge' : -0.1922 } , ('TYR' , 'CE1' ) : { 'type' : 'CA' , 'charge' : -0.2458 } , ('TYR' , 'CE2' ) : { 'type' : 'CA' , 'charge' : -0.2458 } , ('TYR' , 'CG' ) : { 'type' : 'CA' , 'charge' : 0.0243 } , ('TYR' , 'CZ' ) : { 'type' : 'C' , 'charge' : 0.3395 } , ('TYR' , 'H' ) : { 'type' : 'H' , 'charge' : 0.2681 } , ('TYR' , 'HA' ) : { 'type' : 'H1' , 'charge' : 0.1092 } , ('TYR' , 'HH' ) : { 'type' : 'HO' , 'charge' : 0.4017 } , ('TYR' , 'N' ) : { 'type' : 'N' , 'charge' : -0.3821 } , ('TYR' , 'O' ) : { 'type' : 'O2' , 'charge' : -0.8070 } , ('TYR' , 'OH' ) : { 'type' : 'OH' , 'charge' : -0.5643 } , ('TYR' , 'OXT' ) : { 'type' : 'O2' , 'charge' : -0.8070 } , }
normal = {('ALA', '1HB'): {'type': 'HC', 'charge': 0.0603}, ('ALA', '2HB'): {'type': 'HC', 'charge': 0.0603}, ('ALA', '3HB'): {'type': 'HC', 'charge': 0.0603}, ('ALA', 'C'): {'type': 'C', 'charge': 0.5973}, ('ALA', 'CA'): {'type': 'CT', 'charge': 0.0337}, ('ALA', 'CB'): {'type': 'CT', 'charge': -0.1825}, ('ALA', 'H'): {'type': 'H', 'charge': 0.2719}, ('ALA', 'HA'): {'type': 'H1', 'charge': 0.0823}, ('ALA', 'N'): {'type': 'N', 'charge': -0.4157}, ('ALA', 'O'): {'type': 'O', 'charge': -0.5679}, ('CYM', '2HB'): {'type': 'H1', 'charge': 0.244}, ('CYM', '3HB'): {'type': 'H1', 'charge': 0.244}, ('CYM', 'C'): {'type': 'C', 'charge': 0.616}, ('CYM', 'CA'): {'type': 'CT', 'charge': 0.035}, ('CYM', 'CB'): {'type': 'CT', 'charge': -0.736}, ('CYM', 'H'): {'type': 'H', 'charge': 0.252}, ('CYM', 'HA'): {'type': 'H1', 'charge': 0.048}, ('CYM', 'N'): {'type': 'N', 'charge': -0.463}, ('CYM', 'O'): {'type': 'O', 'charge': -0.504}, ('CYM', 'SG'): {'type': 'SH', 'charge': -0.736}, ('CYS', '2HB'): {'type': 'H1', 'charge': 0.1112}, ('CYS', '3HB'): {'type': 'H1', 'charge': 0.1112}, ('CYS', 'C'): {'type': 'C', 'charge': 0.5973}, ('CYS', 'CA'): {'type': 'CT', 'charge': 0.0213}, ('CYS', 'CB'): {'type': 'CT', 'charge': -0.1231}, ('CYS', 'H'): {'type': 'H', 'charge': 0.2719}, ('CYS', 'HA'): {'type': 'H1', 'charge': 0.1124}, ('CYS', 'HG'): {'type': 'HS', 'charge': 0.1933}, ('CYS', 'N'): {'type': 'N', 'charge': -0.4157}, ('CYS', 'O'): {'type': 'O', 'charge': -0.5679}, ('CYS', 'SG'): {'type': 'SH', 'charge': -0.3119}, ('CYX', '2HB'): {'type': 'H1', 'charge': 0.091}, ('CYX', '3HB'): {'type': 'H1', 'charge': 0.091}, ('CYX', 'C'): {'type': 'C', 'charge': 0.5973}, ('CYX', 'CA'): {'type': 'CT', 'charge': 0.0429}, ('CYX', 'CB'): {'type': 'CT', 'charge': -0.079}, ('CYX', 'H'): {'type': 'H', 'charge': 0.2719}, ('CYX', 'HA'): {'type': 'H1', 'charge': 0.0766}, ('CYX', 'N'): {'type': 'N', 'charge': -0.4157}, ('CYX', 'O'): {'type': 'O', 'charge': -0.5679}, ('CYX', 'SG'): {'type': 'S', 'charge': -0.1081}, ('ASP', '2HB'): {'type': 'HC', 'charge': -0.0122}, ('ASP', '3HB'): {'type': 'HC', 'charge': -0.0122}, ('ASP', 'C'): {'type': 'C', 'charge': 0.5366}, ('ASP', 'CA'): {'type': 'CT', 'charge': 0.0381}, ('ASP', 'CB'): {'type': 'CT', 'charge': -0.0303}, ('ASP', 'CG'): {'type': 'C', 'charge': 0.7994}, ('ASP', 'H'): {'type': 'H', 'charge': 0.2936}, ('ASP', 'HA'): {'type': 'H1', 'charge': 0.088}, ('ASP', 'N'): {'type': 'N', 'charge': -0.5163}, ('ASP', 'O'): {'type': 'O', 'charge': -0.5819}, ('ASP', 'OD1'): {'type': 'O2', 'charge': -0.8014}, ('ASP', 'OD2'): {'type': 'O2', 'charge': -0.8014}, ('ASH', '2HB'): {'type': 'HC', 'charge': 0.0488}, ('ASH', '3HB'): {'type': 'HC', 'charge': 0.0488}, ('ASH', 'C'): {'type': 'C', 'charge': 0.5973}, ('ASH', 'CA'): {'type': 'CT', 'charge': 0.0341}, ('ASH', 'CB'): {'type': 'CT', 'charge': -0.0316}, ('ASH', 'CG'): {'type': 'C', 'charge': 0.6462}, ('ASH', 'H'): {'type': 'H', 'charge': 0.2719}, ('ASH', 'HA'): {'type': 'H1', 'charge': 0.0864}, ('ASH', 'HD2'): {'type': 'HO', 'charge': 0.4747}, ('ASH', 'N'): {'type': 'N', 'charge': -0.4157}, ('ASH', 'O'): {'type': 'O', 'charge': -0.5679}, ('ASH', 'OD1'): {'type': 'O', 'charge': -0.5554}, ('ASH', 'OD2'): {'type': 'OH', 'charge': -0.6376}, ('GLU', '2HB'): {'type': 'HC', 'charge': -0.0173}, ('GLU', '2HG'): {'type': 'HC', 'charge': -0.0425}, ('GLU', '3HB'): {'type': 'HC', 'charge': -0.0173}, ('GLU', '3HG'): {'type': 'HC', 'charge': -0.0425}, ('GLU', 'C'): {'type': 'C', 'charge': 0.5366}, ('GLU', 'CA'): {'type': 'CT', 'charge': 0.0397}, ('GLU', 'CB'): {'type': 'CT', 'charge': 0.056}, ('GLU', 'CD'): {'type': 'C', 'charge': 0.8054}, ('GLU', 'CG'): {'type': 'CT', 'charge': 0.0136}, ('GLU', 'H'): {'type': 'H', 'charge': 0.2936}, ('GLU', 'HA'): {'type': 'H1', 'charge': 0.1105}, ('GLU', 'N'): {'type': 'N', 'charge': -0.5163}, ('GLU', 'O'): {'type': 'O', 'charge': -0.5819}, ('GLU', 'OE1'): {'type': 'O2', 'charge': -0.8188}, ('GLU', 'OE2'): {'type': 'O2', 'charge': -0.8188}, ('GLP', '2HB'): {'type': 'HC', 'charge': 0.0256}, ('GLP', '2HG'): {'type': 'HC', 'charge': 0.043}, ('GLP', '3HB'): {'type': 'HC', 'charge': 0.0256}, ('GLP', '3HG'): {'type': 'HC', 'charge': 0.043}, ('GLP', 'C'): {'type': 'C', 'charge': 0.5973}, ('GLP', 'CA'): {'type': 'CT', 'charge': 0.0145}, ('GLP', 'CB'): {'type': 'CT', 'charge': -0.0071}, ('GLP', 'CD'): {'type': 'C', 'charge': 0.6801}, ('GLP', 'CG'): {'type': 'CT', 'charge': -0.0174}, ('GLP', 'H'): {'type': 'H', 'charge': 0.2719}, ('GLP', 'HA'): {'type': 'H1', 'charge': 0.0779}, ('GLP', 'HE2'): {'type': 'HO', 'charge': 0.4641}, ('GLP', 'N'): {'type': 'N', 'charge': -0.4157}, ('GLP', 'O'): {'type': 'O', 'charge': -0.5679}, ('GLP', 'OE1'): {'type': 'O', 'charge': -0.5838}, ('GLP', 'OE2'): {'type': 'OH', 'charge': -0.6511}, ('PHE', '1HD'): {'type': 'HA', 'charge': 0.133}, ('PHE', '1HE'): {'type': 'HA', 'charge': 0.143}, ('PHE', '2HB'): {'type': 'HC', 'charge': 0.0295}, ('PHE', '2HD'): {'type': 'HA', 'charge': 0.133}, ('PHE', '2HE'): {'type': 'HA', 'charge': 0.143}, ('PHE', '3HB'): {'type': 'HC', 'charge': 0.0295}, ('PHE', 'C'): {'type': 'C', 'charge': 0.5973}, ('PHE', 'CA'): {'type': 'CT', 'charge': -0.0024}, ('PHE', 'CB'): {'type': 'CT', 'charge': -0.0343}, ('PHE', 'CD1'): {'type': 'CA', 'charge': -0.1256}, ('PHE', 'CD2'): {'type': 'CA', 'charge': -0.1256}, ('PHE', 'CE1'): {'type': 'CA', 'charge': -0.1704}, ('PHE', 'CE2'): {'type': 'CA', 'charge': -0.1704}, ('PHE', 'CG'): {'type': 'CA', 'charge': 0.0118}, ('PHE', 'CZ'): {'type': 'CA', 'charge': -0.1072}, ('PHE', 'H'): {'type': 'H', 'charge': 0.2719}, ('PHE', 'HA'): {'type': 'H1', 'charge': 0.0978}, ('PHE', 'HZ'): {'type': 'HA', 'charge': 0.1297}, ('PHE', 'N'): {'type': 'N', 'charge': -0.4157}, ('PHE', 'O'): {'type': 'O', 'charge': -0.5679}, ('GLY', '3HA'): {'type': 'H1', 'charge': 0.0698}, ('GLY', 'C'): {'type': 'C', 'charge': 0.5973}, ('GLY', 'CA'): {'type': 'CT', 'charge': -0.0252}, ('GLY', 'H'): {'type': 'H', 'charge': 0.2719}, ('GLY', 'HA'): {'type': 'H1', 'charge': 0.0698}, ('GLY', 'N'): {'type': 'N', 'charge': -0.4157}, ('GLY', 'O'): {'type': 'O', 'charge': -0.5679}, ('HIP', '1HD'): {'type': 'H', 'charge': 0.3866}, ('HIP', '1HE'): {'type': 'H5', 'charge': 0.2681}, ('HIP', '2HB'): {'type': 'HC', 'charge': 0.081}, ('HIP', '2HD'): {'type': 'H4', 'charge': 0.2317}, ('HIP', '2HE'): {'type': 'H', 'charge': 0.3911}, ('HIP', '3HB'): {'type': 'HC', 'charge': 0.081}, ('HIP', 'C'): {'type': 'C', 'charge': 0.7341}, ('HIP', 'CA'): {'type': 'CT', 'charge': -0.1354}, ('HIP', 'CB'): {'type': 'CT', 'charge': -0.0414}, ('HIP', 'CD2'): {'type': 'CW', 'charge': -0.1141}, ('HIP', 'CE1'): {'type': 'CR', 'charge': -0.017}, ('HIP', 'CG'): {'type': 'CC', 'charge': -0.0012}, ('HIP', 'H'): {'type': 'H', 'charge': 0.2747}, ('HIP', 'HA'): {'type': 'H1', 'charge': 0.1212}, ('HIP', 'N'): {'type': 'N', 'charge': -0.3479}, ('HIP', 'ND1'): {'type': 'NA', 'charge': -0.1513}, ('HIP', 'NE2'): {'type': 'NA', 'charge': -0.1718}, ('HIP', 'O'): {'type': 'O', 'charge': -0.5894}, ('HIE', '1HE'): {'type': 'H5', 'charge': 0.1435}, ('HIE', '2HB'): {'type': 'HC', 'charge': 0.0367}, ('HIE', '2HD'): {'type': 'H4', 'charge': 0.1862}, ('HIE', '2HE'): {'type': 'H', 'charge': 0.3339}, ('HIE', '3HB'): {'type': 'HC', 'charge': 0.0367}, ('HIE', 'C'): {'type': 'C', 'charge': 0.5973}, ('HIE', 'CA'): {'type': 'CT', 'charge': -0.0581}, ('HIE', 'CB'): {'type': 'CT', 'charge': -0.0074}, ('HIE', 'CD2'): {'type': 'CW', 'charge': -0.2207}, ('HIE', 'CE1'): {'type': 'CR', 'charge': 0.1635}, ('HIE', 'CG'): {'type': 'CC', 'charge': 0.1868}, ('HIE', 'H'): {'type': 'H', 'charge': 0.2719}, ('HIE', 'HA'): {'type': 'H1', 'charge': 0.136}, ('HIE', 'N'): {'type': 'N', 'charge': -0.4157}, ('HIE', 'ND1'): {'type': 'NB', 'charge': -0.5432}, ('HIE', 'NE2'): {'type': 'NA', 'charge': -0.2795}, ('HIE', 'O'): {'type': 'O', 'charge': -0.5679}, ('HID', '1HD'): {'type': 'H', 'charge': 0.3649}, ('HID', '1HE'): {'type': 'H5', 'charge': 0.1392}, ('HID', '2HB'): {'type': 'HC', 'charge': 0.0402}, ('HID', '2HD'): {'type': 'H4', 'charge': 0.1147}, ('HID', '3HB'): {'type': 'HC', 'charge': 0.0402}, ('HID', 'C'): {'type': 'C', 'charge': 0.5973}, ('HID', 'CA'): {'type': 'CT', 'charge': 0.0188}, ('HID', 'CB'): {'type': 'CT', 'charge': -0.0462}, ('HID', 'CD2'): {'type': 'CV', 'charge': 0.1292}, ('HID', 'CE1'): {'type': 'CR', 'charge': 0.2057}, ('HID', 'CG'): {'type': 'CC', 'charge': -0.0266}, ('HID', 'H'): {'type': 'H', 'charge': 0.2719}, ('HID', 'HA'): {'type': 'H1', 'charge': 0.0881}, ('HID', 'N'): {'type': 'N', 'charge': -0.4157}, ('HID', 'ND1'): {'type': 'NA', 'charge': -0.3811}, ('HID', 'NE2'): {'type': 'NB', 'charge': -0.5727}, ('HID', 'O'): {'type': 'O', 'charge': -0.5679}, ('ILE', '1HD1'): {'type': 'HC', 'charge': 0.0186}, ('ILE', '1HG2'): {'type': 'HC', 'charge': 0.0882}, ('ILE', '2HD1'): {'type': 'HC', 'charge': 0.0186}, ('ILE', '2HG1'): {'type': 'HC', 'charge': 0.0236}, ('ILE', '2HG2'): {'type': 'HC', 'charge': 0.0882}, ('ILE', '3HD1'): {'type': 'HC', 'charge': 0.0186}, ('ILE', '3HG1'): {'type': 'HC', 'charge': 0.0236}, ('ILE', '3HG2'): {'type': 'HC', 'charge': 0.0882}, ('ILE', 'C'): {'type': 'C', 'charge': 0.5973}, ('ILE', 'CA'): {'type': 'CT', 'charge': -0.0597}, ('ILE', 'CB'): {'type': 'CT', 'charge': 0.1303}, ('ILE', 'CD1'): {'type': 'CT', 'charge': -0.066}, ('ILE', 'CG1'): {'type': 'CT', 'charge': -0.043}, ('ILE', 'CG2'): {'type': 'CT', 'charge': -0.3204}, ('ILE', 'H'): {'type': 'H', 'charge': 0.2719}, ('ILE', 'HA'): {'type': 'H1', 'charge': 0.0869}, ('ILE', 'HB'): {'type': 'HC', 'charge': 0.0187}, ('ILE', 'N'): {'type': 'N', 'charge': -0.4157}, ('ILE', 'O'): {'type': 'O', 'charge': -0.5679}, ('LYS', '1HZ'): {'type': 'H', 'charge': 0.34}, ('LYS', '2HB'): {'type': 'HC', 'charge': 0.0362}, ('LYS', '2HD'): {'type': 'HC', 'charge': 0.0621}, ('LYS', '2HE'): {'type': 'HP', 'charge': 0.1135}, ('LYS', '2HG'): {'type': 'HC', 'charge': 0.0103}, ('LYS', '2HZ'): {'type': 'H', 'charge': 0.34}, ('LYS', '3HB'): {'type': 'HC', 'charge': 0.0362}, ('LYS', '3HD'): {'type': 'HC', 'charge': 0.0621}, ('LYS', '3HE'): {'type': 'HP', 'charge': 0.1135}, ('LYS', '3HG'): {'type': 'HC', 'charge': 0.0103}, ('LYS', '3HZ'): {'type': 'H', 'charge': 0.34}, ('LYS', 'C'): {'type': 'C', 'charge': 0.7341}, ('LYS', 'CA'): {'type': 'CT', 'charge': -0.24}, ('LYS', 'CB'): {'type': 'CT', 'charge': -0.0094}, ('LYS', 'CD'): {'type': 'CT', 'charge': -0.0479}, ('LYS', 'CE'): {'type': 'CT', 'charge': -0.0143}, ('LYS', 'CG'): {'type': 'CT', 'charge': 0.0187}, ('LYS', 'H'): {'type': 'H', 'charge': 0.2747}, ('LYS', 'HA'): {'type': 'H1', 'charge': 0.1426}, ('LYS', 'N'): {'type': 'N', 'charge': -0.3479}, ('LYS', 'NZ'): {'type': 'N3', 'charge': -0.3854}, ('LYS', 'O'): {'type': 'O', 'charge': -0.5894}, ('LEU', '1HD1'): {'type': 'HC', 'charge': 0.1}, ('LEU', '1HD2'): {'type': 'HC', 'charge': 0.1}, ('LEU', '2HB'): {'type': 'HC', 'charge': 0.0457}, ('LEU', '2HD1'): {'type': 'HC', 'charge': 0.1}, ('LEU', '2HD2'): {'type': 'HC', 'charge': 0.1}, ('LEU', '3HB'): {'type': 'HC', 'charge': 0.0457}, ('LEU', '3HD1'): {'type': 'HC', 'charge': 0.1}, ('LEU', '3HD2'): {'type': 'HC', 'charge': 0.1}, ('LEU', 'C'): {'type': 'C', 'charge': 0.5973}, ('LEU', 'CA'): {'type': 'CT', 'charge': -0.0518}, ('LEU', 'CB'): {'type': 'CT', 'charge': -0.1102}, ('LEU', 'CD1'): {'type': 'CT', 'charge': -0.4121}, ('LEU', 'CD2'): {'type': 'CT', 'charge': -0.4121}, ('LEU', 'CG'): {'type': 'CT', 'charge': 0.3531}, ('LEU', 'H'): {'type': 'H', 'charge': 0.2719}, ('LEU', 'HA'): {'type': 'H1', 'charge': 0.0922}, ('LEU', 'HG'): {'type': 'HC', 'charge': -0.0361}, ('LEU', 'N'): {'type': 'N', 'charge': -0.4157}, ('LEU', 'O'): {'type': 'O', 'charge': -0.5679}, ('MET', '1HE'): {'type': 'H1', 'charge': 0.0684}, ('MET', '2HB'): {'type': 'HC', 'charge': 0.0241}, ('MET', '2HE'): {'type': 'H1', 'charge': 0.0684}, ('MET', '2HG'): {'type': 'H1', 'charge': 0.044}, ('MET', '3HB'): {'type': 'HC', 'charge': 0.0241}, ('MET', '3HE'): {'type': 'H1', 'charge': 0.0684}, ('MET', '3HG'): {'type': 'H1', 'charge': 0.044}, ('MET', 'C'): {'type': 'C', 'charge': 0.5973}, ('MET', 'CA'): {'type': 'CT', 'charge': -0.0237}, ('MET', 'CB'): {'type': 'CT', 'charge': 0.0342}, ('MET', 'CE'): {'type': 'CT', 'charge': -0.0536}, ('MET', 'CG'): {'type': 'CT', 'charge': 0.0018}, ('MET', 'H'): {'type': 'H', 'charge': 0.2719}, ('MET', 'HA'): {'type': 'H1', 'charge': 0.088}, ('MET', 'N'): {'type': 'N', 'charge': -0.4157}, ('MET', 'O'): {'type': 'O', 'charge': -0.5679}, ('MET', 'SD'): {'type': 'S', 'charge': -0.2737}, ('ASN', '1HD2'): {'type': 'H', 'charge': 0.4196}, ('ASN', '2HB'): {'type': 'HC', 'charge': 0.0797}, ('ASN', '2HD2'): {'type': 'H', 'charge': 0.4196}, ('ASN', '3HB'): {'type': 'HC', 'charge': 0.0797}, ('ASN', 'C'): {'type': 'C', 'charge': 0.5973}, ('ASN', 'CA'): {'type': 'CT', 'charge': 0.0143}, ('ASN', 'CB'): {'type': 'CT', 'charge': -0.2041}, ('ASN', 'CG'): {'type': 'C', 'charge': 0.713}, ('ASN', 'H'): {'type': 'H', 'charge': 0.2719}, ('ASN', 'HA'): {'type': 'H1', 'charge': 0.1048}, ('ASN', 'N'): {'type': 'N', 'charge': -0.4157}, ('ASN', 'ND2'): {'type': 'N', 'charge': -0.9191}, ('ASN', 'O'): {'type': 'O', 'charge': -0.5679}, ('ASN', 'OD1'): {'type': 'O', 'charge': -0.5931}, ('PRO', '2HB'): {'type': 'HC', 'charge': 0.0253}, ('PRO', '2HD'): {'type': 'H1', 'charge': 0.0391}, ('PRO', '2HG'): {'type': 'HC', 'charge': 0.0213}, ('PRO', '3HB'): {'type': 'HC', 'charge': 0.0253}, ('PRO', '3HD'): {'type': 'H1', 'charge': 0.0391}, ('PRO', '3HG'): {'type': 'HC', 'charge': 0.0213}, ('PRO', 'C'): {'type': 'C', 'charge': 0.5896}, ('PRO', 'CA'): {'type': 'CT', 'charge': -0.0266}, ('PRO', 'CB'): {'type': 'CT', 'charge': -0.007}, ('PRO', 'CD'): {'type': 'CT', 'charge': 0.0192}, ('PRO', 'CG'): {'type': 'CT', 'charge': 0.0189}, ('PRO', 'HA'): {'type': 'H1', 'charge': 0.0641}, ('PRO', 'N'): {'type': 'N', 'charge': -0.2548}, ('PRO', 'O'): {'type': 'O', 'charge': -0.5748}, ('GLN', '1HE2'): {'type': 'H', 'charge': 0.4251}, ('GLN', '2HB'): {'type': 'HC', 'charge': 0.0171}, ('GLN', '2HE2'): {'type': 'H', 'charge': 0.4251}, ('GLN', '2HG'): {'type': 'HC', 'charge': 0.0352}, ('GLN', '3HB'): {'type': 'HC', 'charge': 0.0171}, ('GLN', '3HG'): {'type': 'HC', 'charge': 0.0352}, ('GLN', 'C'): {'type': 'C', 'charge': 0.5973}, ('GLN', 'CA'): {'type': 'CT', 'charge': -0.0031}, ('GLN', 'CB'): {'type': 'CT', 'charge': -0.0036}, ('GLN', 'CD'): {'type': 'C', 'charge': 0.6951}, ('GLN', 'CG'): {'type': 'CT', 'charge': -0.0645}, ('GLN', 'H'): {'type': 'H', 'charge': 0.2719}, ('GLN', 'HA'): {'type': 'H1', 'charge': 0.085}, ('GLN', 'N'): {'type': 'N', 'charge': -0.4157}, ('GLN', 'NE2'): {'type': 'N', 'charge': -0.9407}, ('GLN', 'O'): {'type': 'O', 'charge': -0.5679}, ('GLN', 'OE1'): {'type': 'O', 'charge': -0.6086}, ('ARG', '1HH1'): {'type': 'H', 'charge': 0.4478}, ('ARG', '1HH2'): {'type': 'H', 'charge': 0.4478}, ('ARG', '2HB'): {'type': 'HC', 'charge': 0.0327}, ('ARG', '2HD'): {'type': 'H1', 'charge': 0.0687}, ('ARG', '2HG'): {'type': 'HC', 'charge': 0.0285}, ('ARG', '2HH1'): {'type': 'H', 'charge': 0.4478}, ('ARG', '2HH2'): {'type': 'H', 'charge': 0.4478}, ('ARG', '3HB'): {'type': 'HC', 'charge': 0.0327}, ('ARG', '3HD'): {'type': 'H1', 'charge': 0.0687}, ('ARG', '3HG'): {'type': 'HC', 'charge': 0.0285}, ('ARG', 'C'): {'type': 'C', 'charge': 0.7341}, ('ARG', 'CA'): {'type': 'CT', 'charge': -0.2637}, ('ARG', 'CB'): {'type': 'CT', 'charge': -0.0007}, ('ARG', 'CD'): {'type': 'CT', 'charge': 0.0486}, ('ARG', 'CG'): {'type': 'CT', 'charge': 0.039}, ('ARG', 'CZ'): {'type': 'CA', 'charge': 0.8076}, ('ARG', 'H'): {'type': 'H', 'charge': 0.2747}, ('ARG', 'HA'): {'type': 'H1', 'charge': 0.156}, ('ARG', 'HE'): {'type': 'H', 'charge': 0.3456}, ('ARG', 'N'): {'type': 'N', 'charge': -0.3479}, ('ARG', 'NE'): {'type': 'N2', 'charge': -0.5295}, ('ARG', 'NH1'): {'type': 'N2', 'charge': -0.8627}, ('ARG', 'NH2'): {'type': 'N2', 'charge': -0.8627}, ('ARG', 'O'): {'type': 'O', 'charge': -0.5894}, ('SER', '2HB'): {'type': 'H1', 'charge': 0.0352}, ('SER', '3HB'): {'type': 'H1', 'charge': 0.0352}, ('SER', 'C'): {'type': 'C', 'charge': 0.5973}, ('SER', 'CA'): {'type': 'CT', 'charge': -0.0249}, ('SER', 'CB'): {'type': 'CT', 'charge': 0.2117}, ('SER', 'H'): {'type': 'H', 'charge': 0.2719}, ('SER', 'HA'): {'type': 'H1', 'charge': 0.0843}, ('SER', 'HG'): {'type': 'HO', 'charge': 0.4275}, ('SER', 'N'): {'type': 'N', 'charge': -0.4157}, ('SER', 'O'): {'type': 'O', 'charge': -0.5679}, ('SER', 'OG'): {'type': 'OH', 'charge': -0.6546}, ('THR', '1HG'): {'type': 'HO', 'charge': 0.4102}, ('THR', '1HG2'): {'type': 'HC', 'charge': 0.0642}, ('THR', '2HG2'): {'type': 'HC', 'charge': 0.0642}, ('THR', '3HG2'): {'type': 'HC', 'charge': 0.0642}, ('THR', 'C'): {'type': 'C', 'charge': 0.5973}, ('THR', 'CA'): {'type': 'CT', 'charge': -0.0389}, ('THR', 'CB'): {'type': 'CT', 'charge': 0.3654}, ('THR', 'CG2'): {'type': 'CT', 'charge': -0.2438}, ('THR', 'H'): {'type': 'H', 'charge': 0.2719}, ('THR', 'HA'): {'type': 'H1', 'charge': 0.1007}, ('THR', 'HB'): {'type': 'H1', 'charge': 0.0043}, ('THR', 'N'): {'type': 'N', 'charge': -0.4157}, ('THR', 'O'): {'type': 'O', 'charge': -0.5679}, ('THR', 'OG1'): {'type': 'OH', 'charge': -0.6761}, ('VAL', '1HG1'): {'type': 'HC', 'charge': 0.0791}, ('VAL', '1HG2'): {'type': 'HC', 'charge': 0.0791}, ('VAL', '2HG1'): {'type': 'HC', 'charge': 0.0791}, ('VAL', '2HG2'): {'type': 'HC', 'charge': 0.0791}, ('VAL', '3HG1'): {'type': 'HC', 'charge': 0.0791}, ('VAL', '3HG2'): {'type': 'HC', 'charge': 0.0791}, ('VAL', 'C'): {'type': 'C', 'charge': 0.5973}, ('VAL', 'CA'): {'type': 'CT', 'charge': -0.0875}, ('VAL', 'CB'): {'type': 'CT', 'charge': 0.2985}, ('VAL', 'CG1'): {'type': 'CT', 'charge': -0.3192}, ('VAL', 'CG2'): {'type': 'CT', 'charge': -0.3192}, ('VAL', 'H'): {'type': 'H', 'charge': 0.2719}, ('VAL', 'HA'): {'type': 'H1', 'charge': 0.0969}, ('VAL', 'HB'): {'type': 'HC', 'charge': -0.0297}, ('VAL', 'N'): {'type': 'N', 'charge': -0.4157}, ('VAL', 'O'): {'type': 'O', 'charge': -0.5679}, ('TRP', '1HD'): {'type': 'H4', 'charge': 0.2062}, ('TRP', '1HE'): {'type': 'H', 'charge': 0.3412}, ('TRP', '2HB'): {'type': 'HC', 'charge': 0.0339}, ('TRP', '2HH'): {'type': 'HA', 'charge': 0.1417}, ('TRP', '2HZ'): {'type': 'HA', 'charge': 0.1572}, ('TRP', '3HB'): {'type': 'HC', 'charge': 0.0339}, ('TRP', '3HE'): {'type': 'HA', 'charge': 0.17}, ('TRP', '3HZ'): {'type': 'HA', 'charge': 0.1447}, ('TRP', 'C'): {'type': 'C', 'charge': 0.5973}, ('TRP', 'CA'): {'type': 'CT', 'charge': -0.0275}, ('TRP', 'CB'): {'type': 'CT', 'charge': -0.005}, ('TRP', 'CD1'): {'type': 'CW', 'charge': -0.1638}, ('TRP', 'CD2'): {'type': 'CB', 'charge': 0.1243}, ('TRP', 'CE2'): {'type': 'CN', 'charge': 0.138}, ('TRP', 'CE3'): {'type': 'CA', 'charge': -0.2387}, ('TRP', 'CG'): {'type': 'C*', 'charge': -0.1415}, ('TRP', 'CH2'): {'type': 'CA', 'charge': -0.1134}, ('TRP', 'CZ2'): {'type': 'CA', 'charge': -0.2601}, ('TRP', 'CZ3'): {'type': 'CA', 'charge': -0.1972}, ('TRP', 'H'): {'type': 'H', 'charge': 0.2719}, ('TRP', 'HA'): {'type': 'H1', 'charge': 0.1123}, ('TRP', 'N'): {'type': 'N', 'charge': -0.4157}, ('TRP', 'NE1'): {'type': 'NA', 'charge': -0.3418}, ('TRP', 'O'): {'type': 'O', 'charge': -0.5679}, ('TYR', '1HD'): {'type': 'HA', 'charge': 0.1699}, ('TYR', '1HE'): {'type': 'HA', 'charge': 0.1656}, ('TYR', '2HB'): {'type': 'HC', 'charge': 0.0295}, ('TYR', '2HD'): {'type': 'HA', 'charge': 0.1699}, ('TYR', '2HE'): {'type': 'HA', 'charge': 0.1656}, ('TYR', '3HB'): {'type': 'HC', 'charge': 0.0295}, ('TYR', 'C'): {'type': 'C', 'charge': 0.5973}, ('TYR', 'CA'): {'type': 'CT', 'charge': -0.0014}, ('TYR', 'CB'): {'type': 'CT', 'charge': -0.0152}, ('TYR', 'CD1'): {'type': 'CA', 'charge': -0.1906}, ('TYR', 'CD2'): {'type': 'CA', 'charge': -0.1906}, ('TYR', 'CE1'): {'type': 'CA', 'charge': -0.2341}, ('TYR', 'CE2'): {'type': 'CA', 'charge': -0.2341}, ('TYR', 'CG'): {'type': 'CA', 'charge': -0.0011}, ('TYR', 'CZ'): {'type': 'C', 'charge': 0.3226}, ('TYR', 'H'): {'type': 'H', 'charge': 0.2719}, ('TYR', 'HA'): {'type': 'H1', 'charge': 0.0876}, ('TYR', 'HH'): {'type': 'HO', 'charge': 0.3992}, ('TYR', 'N'): {'type': 'N', 'charge': -0.4157}, ('TYR', 'O'): {'type': 'O', 'charge': -0.5679}, ('TYR', 'OH'): {'type': 'OH', 'charge': -0.5579}, ('NME', '1HH3'): {'type': 'H1', 'charge': 0.0976}, ('NME', '2HH3'): {'type': 'H1', 'charge': 0.0976}, ('NME', '3HH3'): {'type': 'H1', 'charge': 0.0976}, ('NME', 'CH3'): {'type': 'CT', 'charge': -0.149}, ('NME', 'H'): {'type': 'H', 'charge': 0.2719}, ('NME', 'N'): {'type': 'N', 'charge': -0.4157}, ('ACE', '1HH3'): {'type': 'HC', 'charge': 0.1123}, ('ACE', '2HH3'): {'type': 'HC', 'charge': 0.1123}, ('ACE', '3HH3'): {'type': 'HC', 'charge': 0.1123}, ('ACE', 'C'): {'type': 'C', 'charge': 0.5972}, ('ACE', 'CH3'): {'type': 'CT', 'charge': -0.3662}, ('ACE', 'O'): {'type': 'O', 'charge': -0.5679}} n_terminal = {('ALA', '1HB'): {'type': 'HC', 'charge': 0.03}, ('ALA', '1HT'): {'type': 'H', 'charge': 0.1997}, ('ALA', '2HB'): {'type': 'HC', 'charge': 0.03}, ('ALA', '2HT'): {'type': 'H', 'charge': 0.1997}, ('ALA', '3HB'): {'type': 'HC', 'charge': 0.03}, ('ALA', '3HT'): {'type': 'H', 'charge': 0.1997}, ('ALA', 'C'): {'type': 'C', 'charge': 0.6163}, ('ALA', 'CA'): {'type': 'CT', 'charge': 0.0962}, ('ALA', 'CB'): {'type': 'CT', 'charge': -0.0597}, ('ALA', 'HA'): {'type': 'HP', 'charge': 0.0889}, ('ALA', 'N'): {'type': 'N3', 'charge': 0.1414}, ('ALA', 'O'): {'type': 'O', 'charge': -0.5722}, ('CYS', '1HT'): {'type': 'H', 'charge': 0.2023}, ('CYS', '2HB'): {'type': 'H1', 'charge': 0.1188}, ('CYS', '2HT'): {'type': 'H', 'charge': 0.2023}, ('CYS', '3HB'): {'type': 'H1', 'charge': 0.1188}, ('CYS', '3HT'): {'type': 'H', 'charge': 0.2023}, ('CYS', 'C'): {'type': 'C', 'charge': 0.6123}, ('CYS', 'CA'): {'type': 'CT', 'charge': 0.0927}, ('CYS', 'CB'): {'type': 'CT', 'charge': -0.1195}, ('CYS', 'HA'): {'type': 'HP', 'charge': 0.1411}, ('CYS', 'HG'): {'type': 'HS', 'charge': 0.1975}, ('CYS', 'N'): {'type': 'N3', 'charge': 0.1325}, ('CYS', 'O'): {'type': 'O', 'charge': -0.5713}, ('CYS', 'SG'): {'type': 'SH', 'charge': -0.3298}, ('CYX', '1HT'): {'type': 'H', 'charge': 0.1815}, ('CYX', '2HB'): {'type': 'H1', 'charge': 0.068}, ('CYX', '2HT'): {'type': 'H', 'charge': 0.1815}, ('CYX', '3HB'): {'type': 'H1', 'charge': 0.068}, ('CYX', '3HT'): {'type': 'H', 'charge': 0.1815}, ('CYX', 'C'): {'type': 'C', 'charge': 0.6123}, ('CYX', 'CA'): {'type': 'CT', 'charge': 0.1055}, ('CYX', 'CB'): {'type': 'CT', 'charge': -0.0277}, ('CYX', 'HA'): {'type': 'HP', 'charge': 0.0922}, ('CYX', 'N'): {'type': 'N3', 'charge': 0.2069}, ('CYX', 'O'): {'type': 'O', 'charge': -0.5713}, ('CYX', 'SG'): {'type': 'S', 'charge': -0.0984}, ('ASP', '1HT'): {'type': 'H', 'charge': 0.22}, ('ASP', '2HB'): {'type': 'HC', 'charge': -0.0169}, ('ASP', '2HT'): {'type': 'H', 'charge': 0.22}, ('ASP', '3HB'): {'type': 'HC', 'charge': -0.0169}, ('ASP', '3HT'): {'type': 'H', 'charge': 0.22}, ('ASP', 'C'): {'type': 'C', 'charge': 0.5621}, ('ASP', 'CA'): {'type': 'CT', 'charge': 0.0292}, ('ASP', 'CB'): {'type': 'CT', 'charge': -0.0235}, ('ASP', 'CG'): {'type': 'C', 'charge': 0.8194}, ('ASP', 'HA'): {'type': 'HP', 'charge': 0.1141}, ('ASP', 'N'): {'type': 'N3', 'charge': 0.0782}, ('ASP', 'O'): {'type': 'O', 'charge': -0.5889}, ('ASP', 'OD1'): {'type': 'O2', 'charge': -0.8084}, ('ASP', 'OD2'): {'type': 'O2', 'charge': -0.8084}, ('ASH', '1HT'): {'type': 'H', 'charge': 0.22}, ('ASH', '2HB'): {'type': 'HC', 'charge': -0.0169}, ('ASH', '2HT'): {'type': 'H', 'charge': 0.22}, ('ASH', '3HB'): {'type': 'HC', 'charge': -0.0169}, ('ASH', '3HT'): {'type': 'H', 'charge': 0.22}, ('ASH', 'C'): {'type': 'C', 'charge': 0.5621}, ('ASH', 'CA'): {'type': 'CT', 'charge': 0.0292}, ('ASH', 'CB'): {'type': 'CT', 'charge': -0.0235}, ('ASH', 'CG'): {'type': 'C', 'charge': 0.8194}, ('ASH', 'HA'): {'type': 'HP', 'charge': 0.1141}, ('ASH', 'N'): {'type': 'N3', 'charge': 0.0782}, ('ASH', 'O'): {'type': 'O', 'charge': -0.5889}, ('ASH', 'OD1'): {'type': 'O', 'charge': -0.8084}, ('ASH', 'OD2'): {'type': 'OH', 'charge': -0.8084}, ('GLU', '1HT'): {'type': 'H', 'charge': 0.2391}, ('GLU', '2HB'): {'type': 'HC', 'charge': -0.0232}, ('GLU', '2HG'): {'type': 'HC', 'charge': -0.0315}, ('GLU', '2HT'): {'type': 'H', 'charge': 0.2391}, ('GLU', '3HB'): {'type': 'HC', 'charge': -0.0232}, ('GLU', '3HG'): {'type': 'HC', 'charge': -0.0315}, ('GLU', '3HT'): {'type': 'H', 'charge': 0.2391}, ('GLU', 'C'): {'type': 'C', 'charge': 0.5621}, ('GLU', 'CA'): {'type': 'CT', 'charge': 0.0588}, ('GLU', 'CB'): {'type': 'CT', 'charge': 0.0909}, ('GLU', 'CD'): {'type': 'C', 'charge': 0.8087}, ('GLU', 'CG'): {'type': 'CT', 'charge': -0.0236}, ('GLU', 'HA'): {'type': 'HP', 'charge': 0.1202}, ('GLU', 'N'): {'type': 'N3', 'charge': 0.0017}, ('GLU', 'O'): {'type': 'O', 'charge': -0.5889}, ('GLU', 'OE1'): {'type': 'O2', 'charge': -0.8189}, ('GLU', 'OE2'): {'type': 'O2', 'charge': -0.8189}, ('GLP', '1HT'): {'type': 'H', 'charge': 0.2391}, ('GLP', '2HB'): {'type': 'HC', 'charge': -0.0232}, ('GLP', '2HG'): {'type': 'HC', 'charge': -0.0315}, ('GLP', '2HT'): {'type': 'H', 'charge': 0.2391}, ('GLP', '3HB'): {'type': 'HC', 'charge': -0.0232}, ('GLP', '3HG'): {'type': 'HC', 'charge': -0.0315}, ('GLP', '3HT'): {'type': 'H', 'charge': 0.2391}, ('GLP', 'C'): {'type': 'C', 'charge': 0.5621}, ('GLP', 'CA'): {'type': 'CT', 'charge': 0.0588}, ('GLP', 'CB'): {'type': 'CT', 'charge': 0.0909}, ('GLP', 'CD'): {'type': 'C', 'charge': 0.8087}, ('GLP', 'CG'): {'type': 'CT', 'charge': -0.0236}, ('GLP', 'HA'): {'type': 'HP', 'charge': 0.1202}, ('GLP', 'N'): {'type': 'N3', 'charge': 0.0017}, ('GLP', 'O'): {'type': 'O', 'charge': -0.5889}, ('GLP', 'OE1'): {'type': 'O', 'charge': -0.8189}, ('GLP', 'OE2'): {'type': 'OH', 'charge': -0.8189}, ('PHE', '1HD'): {'type': 'HA', 'charge': 0.1374}, ('PHE', '1HE'): {'type': 'HA', 'charge': 0.1433}, ('PHE', '1HT'): {'type': 'H', 'charge': 0.1921}, ('PHE', '2HB'): {'type': 'HC', 'charge': 0.0104}, ('PHE', '2HD'): {'type': 'HA', 'charge': 0.1374}, ('PHE', '2HE'): {'type': 'HA', 'charge': 0.1433}, ('PHE', '2HT'): {'type': 'H', 'charge': 0.1921}, ('PHE', '3HB'): {'type': 'HC', 'charge': 0.0104}, ('PHE', '3HT'): {'type': 'H', 'charge': 0.1921}, ('PHE', 'C'): {'type': 'C', 'charge': 0.6123}, ('PHE', 'CA'): {'type': 'CT', 'charge': 0.0733}, ('PHE', 'CB'): {'type': 'CT', 'charge': 0.033}, ('PHE', 'CD1'): {'type': 'CA', 'charge': -0.1392}, ('PHE', 'CD2'): {'type': 'CA', 'charge': -0.1391}, ('PHE', 'CE1'): {'type': 'CA', 'charge': -0.1602}, ('PHE', 'CE2'): {'type': 'CA', 'charge': -0.1603}, ('PHE', 'CG'): {'type': 'CA', 'charge': 0.0031}, ('PHE', 'CZ'): {'type': 'CA', 'charge': -0.1208}, ('PHE', 'HA'): {'type': 'HP', 'charge': 0.1041}, ('PHE', 'HZ'): {'type': 'HA', 'charge': 0.1329}, ('PHE', 'N'): {'type': 'N3', 'charge': 0.1737}, ('PHE', 'O'): {'type': 'O', 'charge': -0.5713}, ('GLY', '1HT'): {'type': 'H', 'charge': 0.1642}, ('GLY', '2HT'): {'type': 'H', 'charge': 0.1642}, ('GLY', '3HA'): {'type': 'H1', 'charge': 0.0895}, ('GLY', '3HT'): {'type': 'H', 'charge': 0.1642}, ('GLY', 'C'): {'type': 'C', 'charge': 0.6163}, ('GLY', 'CA'): {'type': 'CT', 'charge': -0.01}, ('GLY', 'HA'): {'type': 'HP', 'charge': 0.0895}, ('GLY', 'N'): {'type': 'N3', 'charge': 0.2943}, ('GLY', 'O'): {'type': 'O', 'charge': -0.5722}, ('HIP', '1HD'): {'type': 'H', 'charge': 0.3821}, ('HIP', '1HE'): {'type': 'H5', 'charge': 0.2645}, ('HIP', '1HT'): {'type': 'H', 'charge': 0.1704}, ('HIP', '2HB'): {'type': 'HC', 'charge': 0.0531}, ('HIP', '2HD'): {'type': 'H4', 'charge': 0.2495}, ('HIP', '2HE'): {'type': 'H', 'charge': 0.3921}, ('HIP', '2HT'): {'type': 'H', 'charge': 0.1704}, ('HIP', '3HB'): {'type': 'HC', 'charge': 0.0531}, ('HIP', '3HT'): {'type': 'H', 'charge': 0.1704}, ('HIP', 'C'): {'type': 'C', 'charge': 0.7214}, ('HIP', 'CA'): {'type': 'CT', 'charge': 0.0581}, ('HIP', 'CB'): {'type': 'CT', 'charge': 0.0484}, ('HIP', 'CD2'): {'type': 'CW', 'charge': -0.1433}, ('HIP', 'CE1'): {'type': 'CR', 'charge': -0.0011}, ('HIP', 'CG'): {'type': 'CC', 'charge': -0.0236}, ('HIP', 'HA'): {'type': 'HP', 'charge': 0.1047}, ('HIP', 'N'): {'type': 'N3', 'charge': 0.256}, ('HIP', 'ND1'): {'type': 'NA', 'charge': -0.151}, ('HIP', 'NE2'): {'type': 'NA', 'charge': -0.1739}, ('HIP', 'O'): {'type': 'O', 'charge': -0.6013}, ('HIE', '1HE'): {'type': 'H5', 'charge': 0.1397}, ('HIE', '1HT'): {'type': 'H', 'charge': 0.2016}, ('HIE', '2HB'): {'type': 'HC', 'charge': 0.0223}, ('HIE', '2HD'): {'type': 'H4', 'charge': 0.1963}, ('HIE', '2HE'): {'type': 'H', 'charge': 0.3324}, ('HIE', '2HT'): {'type': 'H', 'charge': 0.2016}, ('HIE', '3HB'): {'type': 'HC', 'charge': 0.0223}, ('HIE', '3HT'): {'type': 'H', 'charge': 0.2016}, ('HIE', 'C'): {'type': 'C', 'charge': 0.6123}, ('HIE', 'CA'): {'type': 'CT', 'charge': 0.0236}, ('HIE', 'CB'): {'type': 'CT', 'charge': 0.0489}, ('HIE', 'CD2'): {'type': 'CW', 'charge': -0.2349}, ('HIE', 'CE1'): {'type': 'CR', 'charge': 0.1804}, ('HIE', 'CG'): {'type': 'CC', 'charge': 0.174}, ('HIE', 'HA'): {'type': 'HP', 'charge': 0.138}, ('HIE', 'N'): {'type': 'N3', 'charge': 0.1472}, ('HIE', 'ND1'): {'type': 'NB', 'charge': -0.5579}, ('HIE', 'NE2'): {'type': 'NA', 'charge': -0.2781}, ('HIE', 'O'): {'type': 'O', 'charge': -0.5713}, ('HID', '1HD'): {'type': 'H', 'charge': 0.3632}, ('HID', '1HE'): {'type': 'H5', 'charge': 0.1385}, ('HID', '1HT'): {'type': 'H', 'charge': 0.1963}, ('HID', '2HB'): {'type': 'HC', 'charge': 0.0209}, ('HID', '2HD'): {'type': 'H4', 'charge': 0.1299}, ('HID', '2HT'): {'type': 'H', 'charge': 0.1963}, ('HID', '3HB'): {'type': 'HC', 'charge': 0.0209}, ('HID', '3HT'): {'type': 'H', 'charge': 0.1963}, ('HID', 'C'): {'type': 'C', 'charge': 0.6123}, ('HID', 'CA'): {'type': 'CT', 'charge': 0.0964}, ('HID', 'CB'): {'type': 'CT', 'charge': 0.0259}, ('HID', 'CD2'): {'type': 'CV', 'charge': 0.1046}, ('HID', 'CE1'): {'type': 'CR', 'charge': 0.2127}, ('HID', 'CG'): {'type': 'CC', 'charge': -0.0399}, ('HID', 'HA'): {'type': 'HP', 'charge': 0.0958}, ('HID', 'N'): {'type': 'N3', 'charge': 0.1542}, ('HID', 'ND1'): {'type': 'NA', 'charge': -0.3819}, ('HID', 'NE2'): {'type': 'NB', 'charge': -0.5711}, ('HID', 'O'): {'type': 'O', 'charge': -0.5713}, ('ILE', '1HD1'): {'type': 'HC', 'charge': 0.0226}, ('ILE', '1HG2'): {'type': 'HC', 'charge': 0.0947}, ('ILE', '1HT'): {'type': 'H', 'charge': 0.2329}, ('ILE', '2HD1'): {'type': 'HC', 'charge': 0.0226}, ('ILE', '2HG1'): {'type': 'HC', 'charge': 0.0201}, ('ILE', '2HG2'): {'type': 'HC', 'charge': 0.0947}, ('ILE', '2HT'): {'type': 'H', 'charge': 0.2329}, ('ILE', '3HD1'): {'type': 'HC', 'charge': 0.0226}, ('ILE', '3HG1'): {'type': 'HC', 'charge': 0.0201}, ('ILE', '3HG2'): {'type': 'HC', 'charge': 0.0947}, ('ILE', '3HT'): {'type': 'H', 'charge': 0.2329}, ('ILE', 'C'): {'type': 'C', 'charge': 0.6123}, ('ILE', 'CA'): {'type': 'CT', 'charge': 0.0257}, ('ILE', 'CB'): {'type': 'CT', 'charge': 0.1885}, ('ILE', 'CD1'): {'type': 'CT', 'charge': -0.0908}, ('ILE', 'CG1'): {'type': 'CT', 'charge': -0.0387}, ('ILE', 'CG2'): {'type': 'CT', 'charge': -0.372}, ('ILE', 'HA'): {'type': 'HP', 'charge': 0.1031}, ('ILE', 'HB'): {'type': 'HC', 'charge': 0.0213}, ('ILE', 'N'): {'type': 'N3', 'charge': 0.0311}, ('ILE', 'O'): {'type': 'O', 'charge': -0.5713}, ('LYS', '1HT'): {'type': 'H', 'charge': 0.2165}, ('LYS', '1HZ'): {'type': 'H', 'charge': 0.3382}, ('LYS', '2HB'): {'type': 'HC', 'charge': 0.0283}, ('LYS', '2HD'): {'type': 'HC', 'charge': 0.0633}, ('LYS', '2HE'): {'type': 'HP', 'charge': 0.1171}, ('LYS', '2HG'): {'type': 'HC', 'charge': 0.0121}, ('LYS', '2HT'): {'type': 'H', 'charge': 0.2165}, ('LYS', '2HZ'): {'type': 'H', 'charge': 0.3382}, ('LYS', '3HB'): {'type': 'HC', 'charge': 0.0283}, ('LYS', '3HD'): {'type': 'HC', 'charge': 0.0633}, ('LYS', '3HE'): {'type': 'HP', 'charge': 0.1171}, ('LYS', '3HG'): {'type': 'HC', 'charge': 0.0121}, ('LYS', '3HT'): {'type': 'H', 'charge': 0.2165}, ('LYS', '3HZ'): {'type': 'H', 'charge': 0.3382}, ('LYS', 'C'): {'type': 'C', 'charge': 0.7214}, ('LYS', 'CA'): {'type': 'CT', 'charge': -0.0015}, ('LYS', 'CB'): {'type': 'CT', 'charge': 0.0212}, ('LYS', 'CD'): {'type': 'CT', 'charge': -0.0608}, ('LYS', 'CE'): {'type': 'CT', 'charge': -0.0181}, ('LYS', 'CG'): {'type': 'CT', 'charge': -0.0048}, ('LYS', 'HA'): {'type': 'HP', 'charge': 0.118}, ('LYS', 'N'): {'type': 'N3', 'charge': 0.0966}, ('LYS', 'NZ'): {'type': 'N3', 'charge': -0.3764}, ('LYS', 'O'): {'type': 'O', 'charge': -0.6013}, ('LEU', '1HD1'): {'type': 'HC', 'charge': 0.098}, ('LEU', '1HD2'): {'type': 'HC', 'charge': 0.098}, ('LEU', '1HT'): {'type': 'H', 'charge': 0.2148}, ('LEU', '2HB'): {'type': 'HC', 'charge': 0.0256}, ('LEU', '2HD1'): {'type': 'HC', 'charge': 0.098}, ('LEU', '2HD2'): {'type': 'HC', 'charge': 0.098}, ('LEU', '2HT'): {'type': 'H', 'charge': 0.2148}, ('LEU', '3HB'): {'type': 'HC', 'charge': 0.0256}, ('LEU', '3HD1'): {'type': 'HC', 'charge': 0.098}, ('LEU', '3HD2'): {'type': 'HC', 'charge': 0.098}, ('LEU', '3HT'): {'type': 'H', 'charge': 0.2148}, ('LEU', 'C'): {'type': 'C', 'charge': 0.6123}, ('LEU', 'CA'): {'type': 'CT', 'charge': 0.0104}, ('LEU', 'CB'): {'type': 'CT', 'charge': -0.0244}, ('LEU', 'CD1'): {'type': 'CT', 'charge': -0.4106}, ('LEU', 'CD2'): {'type': 'CT', 'charge': -0.4104}, ('LEU', 'CG'): {'type': 'CT', 'charge': 0.3421}, ('LEU', 'HA'): {'type': 'HP', 'charge': 0.1053}, ('LEU', 'HG'): {'type': 'HC', 'charge': -0.038}, ('LEU', 'N'): {'type': 'N3', 'charge': 0.101}, ('LEU', 'O'): {'type': 'O', 'charge': -0.5713}, ('MET', '1HE'): {'type': 'H1', 'charge': 0.0597}, ('MET', '1HT'): {'type': 'H', 'charge': 0.1984}, ('MET', '2HB'): {'type': 'HC', 'charge': 0.0125}, ('MET', '2HE'): {'type': 'H1', 'charge': 0.0597}, ('MET', '2HG'): {'type': 'H1', 'charge': 0.0292}, ('MET', '2HT'): {'type': 'H', 'charge': 0.1984}, ('MET', '3HB'): {'type': 'HC', 'charge': 0.0125}, ('MET', '3HE'): {'type': 'H1', 'charge': 0.0597}, ('MET', '3HG'): {'type': 'H1', 'charge': 0.0292}, ('MET', '3HT'): {'type': 'H', 'charge': 0.1984}, ('MET', 'C'): {'type': 'C', 'charge': 0.6123}, ('MET', 'CA'): {'type': 'CT', 'charge': 0.0221}, ('MET', 'CB'): {'type': 'CT', 'charge': 0.0865}, ('MET', 'CE'): {'type': 'CT', 'charge': -0.0341}, ('MET', 'CG'): {'type': 'CT', 'charge': 0.0334}, ('MET', 'HA'): {'type': 'HP', 'charge': 0.1116}, ('MET', 'N'): {'type': 'N3', 'charge': 0.1592}, ('MET', 'O'): {'type': 'O', 'charge': -0.5713}, ('MET', 'SD'): {'type': 'S', 'charge': -0.2774}, ('ASN', '1HD2'): {'type': 'H', 'charge': 0.4097}, ('ASN', '1HT'): {'type': 'H', 'charge': 0.1921}, ('ASN', '2HB'): {'type': 'HC', 'charge': 0.0515}, ('ASN', '2HD2'): {'type': 'H', 'charge': 0.4097}, ('ASN', '2HT'): {'type': 'H', 'charge': 0.1921}, ('ASN', '3HB'): {'type': 'HC', 'charge': 0.0515}, ('ASN', '3HT'): {'type': 'H', 'charge': 0.1921}, ('ASN', 'C'): {'type': 'C', 'charge': 0.6163}, ('ASN', 'CA'): {'type': 'CT', 'charge': 0.0368}, ('ASN', 'CB'): {'type': 'CT', 'charge': -0.0283}, ('ASN', 'CG'): {'type': 'C', 'charge': 0.5833}, ('ASN', 'HA'): {'type': 'HP', 'charge': 0.1231}, ('ASN', 'N'): {'type': 'N3', 'charge': 0.1801}, ('ASN', 'ND2'): {'type': 'N', 'charge': -0.8634}, ('ASN', 'O'): {'type': 'O', 'charge': -0.5722}, ('ASN', 'OD1'): {'type': 'O', 'charge': -0.5744}, ('PRO', '2H'): {'type': 'H', 'charge': 0.312}, ('PRO', '2HB'): {'type': 'HC', 'charge': 0.1}, ('PRO', '2HD'): {'type': 'H1', 'charge': 0.1}, ('PRO', '2HG'): {'type': 'HC', 'charge': 0.1}, ('PRO', '3H'): {'type': 'H', 'charge': 0.312}, ('PRO', '3HB'): {'type': 'HC', 'charge': 0.1}, ('PRO', '3HD'): {'type': 'H1', 'charge': 0.1}, ('PRO', '3HG'): {'type': 'HC', 'charge': 0.1}, ('PRO', 'C'): {'type': 'C', 'charge': 0.526}, ('PRO', 'CA'): {'type': 'CT', 'charge': 0.1}, ('PRO', 'CB'): {'type': 'CT', 'charge': -0.115}, ('PRO', 'CD'): {'type': 'CT', 'charge': -0.012}, ('PRO', 'CG'): {'type': 'CT', 'charge': -0.121}, ('PRO', 'HA'): {'type': 'HP', 'charge': 0.1}, ('PRO', 'N'): {'type': 'N3', 'charge': -0.202}, ('PRO', 'O'): {'type': 'O', 'charge': -0.5}, ('GLN', '1HE2'): {'type': 'H', 'charge': 0.4429}, ('GLN', '1HT'): {'type': 'H', 'charge': 0.1996}, ('GLN', '2HB'): {'type': 'HC', 'charge': 0.005}, ('GLN', '2HE2'): {'type': 'H', 'charge': 0.4429}, ('GLN', '2HG'): {'type': 'HC', 'charge': 0.0331}, ('GLN', '2HT'): {'type': 'H', 'charge': 0.1996}, ('GLN', '3HB'): {'type': 'HC', 'charge': 0.005}, ('GLN', '3HG'): {'type': 'HC', 'charge': 0.0331}, ('GLN', '3HT'): {'type': 'H', 'charge': 0.1996}, ('GLN', 'C'): {'type': 'C', 'charge': 0.6123}, ('GLN', 'CA'): {'type': 'CT', 'charge': 0.0536}, ('GLN', 'CB'): {'type': 'CT', 'charge': 0.0651}, ('GLN', 'CD'): {'type': 'C', 'charge': 0.7354}, ('GLN', 'CG'): {'type': 'CT', 'charge': -0.0903}, ('GLN', 'HA'): {'type': 'HP', 'charge': 0.1015}, ('GLN', 'N'): {'type': 'N3', 'charge': 0.1493}, ('GLN', 'NE2'): {'type': 'N', 'charge': -1.0031}, ('GLN', 'O'): {'type': 'O', 'charge': -0.5713}, ('GLN', 'OE1'): {'type': 'O', 'charge': -0.6133}, ('ARG', '1HH1'): {'type': 'H', 'charge': 0.4494}, ('ARG', '1HH2'): {'type': 'H', 'charge': 0.4494}, ('ARG', '1HT'): {'type': 'H', 'charge': 0.2083}, ('ARG', '2HB'): {'type': 'HC', 'charge': 0.0226}, ('ARG', '2HD'): {'type': 'H1', 'charge': 0.0527}, ('ARG', '2HG'): {'type': 'HC', 'charge': 0.0309}, ('ARG', '2HH1'): {'type': 'H', 'charge': 0.4494}, ('ARG', '2HH2'): {'type': 'H', 'charge': 0.4494}, ('ARG', '2HT'): {'type': 'H', 'charge': 0.2083}, ('ARG', '3HB'): {'type': 'HC', 'charge': 0.0226}, ('ARG', '3HD'): {'type': 'H1', 'charge': 0.0527}, ('ARG', '3HG'): {'type': 'HC', 'charge': 0.0309}, ('ARG', '3HT'): {'type': 'H', 'charge': 0.2083}, ('ARG', 'C'): {'type': 'C', 'charge': 0.7214}, ('ARG', 'CA'): {'type': 'CT', 'charge': -0.0223}, ('ARG', 'CB'): {'type': 'CT', 'charge': 0.0118}, ('ARG', 'CD'): {'type': 'CT', 'charge': 0.0935}, ('ARG', 'CG'): {'type': 'CT', 'charge': 0.0236}, ('ARG', 'CZ'): {'type': 'CA', 'charge': 0.8281}, ('ARG', 'HA'): {'type': 'HP', 'charge': 0.1242}, ('ARG', 'HE'): {'type': 'H', 'charge': 0.3592}, ('ARG', 'N'): {'type': 'N3', 'charge': 0.1305}, ('ARG', 'NE'): {'type': 'N2', 'charge': -0.565}, ('ARG', 'NH1'): {'type': 'N2', 'charge': -0.8693}, ('ARG', 'NH2'): {'type': 'N2', 'charge': -0.8693}, ('ARG', 'O'): {'type': 'O', 'charge': -0.6013}, ('SER', '1HT'): {'type': 'H', 'charge': 0.1898}, ('SER', '2HB'): {'type': 'H1', 'charge': 0.0273}, ('SER', '2HT'): {'type': 'H', 'charge': 0.1898}, ('SER', '3HB'): {'type': 'H1', 'charge': 0.0273}, ('SER', '3HT'): {'type': 'H', 'charge': 0.1898}, ('SER', 'C'): {'type': 'C', 'charge': 0.6163}, ('SER', 'CA'): {'type': 'CT', 'charge': 0.0567}, ('SER', 'CB'): {'type': 'CT', 'charge': 0.2596}, ('SER', 'HA'): {'type': 'HP', 'charge': 0.0782}, ('SER', 'HG'): {'type': 'HO', 'charge': 0.4239}, ('SER', 'N'): {'type': 'N3', 'charge': 0.1849}, ('SER', 'O'): {'type': 'O', 'charge': -0.5722}, ('SER', 'OG'): {'type': 'OH', 'charge': -0.6714}, ('THR', '1HG'): {'type': 'HO', 'charge': 0.407}, ('THR', '1HG2'): {'type': 'HC', 'charge': 0.0627}, ('THR', '1HT'): {'type': 'H', 'charge': 0.1934}, ('THR', '2HG2'): {'type': 'HC', 'charge': 0.0627}, ('THR', '2HT'): {'type': 'H', 'charge': 0.1934}, ('THR', '3HG2'): {'type': 'HC', 'charge': 0.0627}, ('THR', '3HT'): {'type': 'H', 'charge': 0.1934}, ('THR', 'C'): {'type': 'C', 'charge': 0.6163}, ('THR', 'CA'): {'type': 'CT', 'charge': 0.0034}, ('THR', 'CB'): {'type': 'CT', 'charge': 0.4514}, ('THR', 'CG2'): {'type': 'CT', 'charge': -0.2554}, ('THR', 'HA'): {'type': 'HP', 'charge': 0.1087}, ('THR', 'HB'): {'type': 'H1', 'charge': -0.0323}, ('THR', 'N'): {'type': 'N3', 'charge': 0.1812}, ('THR', 'O'): {'type': 'O', 'charge': -0.5722}, ('THR', 'OG1'): {'type': 'OH', 'charge': -0.6764}, ('VAL', '1HG1'): {'type': 'HC', 'charge': 0.0735}, ('VAL', '1HG2'): {'type': 'HC', 'charge': 0.0735}, ('VAL', '1HT'): {'type': 'H', 'charge': 0.2272}, ('VAL', '2HG1'): {'type': 'HC', 'charge': 0.0735}, ('VAL', '2HG2'): {'type': 'HC', 'charge': 0.0735}, ('VAL', '2HT'): {'type': 'H', 'charge': 0.2272}, ('VAL', '3HG1'): {'type': 'HC', 'charge': 0.0735}, ('VAL', '3HG2'): {'type': 'HC', 'charge': 0.0735}, ('VAL', '3HT'): {'type': 'H', 'charge': 0.2272}, ('VAL', 'C'): {'type': 'C', 'charge': 0.6163}, ('VAL', 'CA'): {'type': 'CT', 'charge': -0.0054}, ('VAL', 'CB'): {'type': 'CT', 'charge': 0.3196}, ('VAL', 'CG1'): {'type': 'CT', 'charge': -0.3129}, ('VAL', 'CG2'): {'type': 'CT', 'charge': -0.3129}, ('VAL', 'HA'): {'type': 'HP', 'charge': 0.1093}, ('VAL', 'HB'): {'type': 'HC', 'charge': -0.0221}, ('VAL', 'N'): {'type': 'N3', 'charge': 0.0577}, ('VAL', 'O'): {'type': 'O', 'charge': -0.5722}, ('TRP', '1HD'): {'type': 'H4', 'charge': 0.2195}, ('TRP', '1HE'): {'type': 'H', 'charge': 0.3412}, ('TRP', '1HT'): {'type': 'H', 'charge': 0.1888}, ('TRP', '2HB'): {'type': 'HC', 'charge': 0.0222}, ('TRP', '2HH'): {'type': 'HA', 'charge': 0.1411}, ('TRP', '2HT'): {'type': 'H', 'charge': 0.1888}, ('TRP', '2HZ'): {'type': 'HA', 'charge': 0.1589}, ('TRP', '3HB'): {'type': 'HC', 'charge': 0.0222}, ('TRP', '3HE'): {'type': 'HA', 'charge': 0.1646}, ('TRP', '3HT'): {'type': 'H', 'charge': 0.1888}, ('TRP', '3HZ'): {'type': 'HA', 'charge': 0.1458}, ('TRP', 'C'): {'type': 'C', 'charge': 0.6123}, ('TRP', 'CA'): {'type': 'CT', 'charge': 0.0421}, ('TRP', 'CB'): {'type': 'CT', 'charge': 0.0543}, ('TRP', 'CD1'): {'type': 'CW', 'charge': -0.1788}, ('TRP', 'CD2'): {'type': 'CB', 'charge': 0.1132}, ('TRP', 'CE2'): {'type': 'CN', 'charge': 0.1575}, ('TRP', 'CE3'): {'type': 'CA', 'charge': -0.2265}, ('TRP', 'CG'): {'type': 'C*', 'charge': -0.1654}, ('TRP', 'CH2'): {'type': 'CA', 'charge': -0.108}, ('TRP', 'CZ2'): {'type': 'CA', 'charge': -0.271}, ('TRP', 'CZ3'): {'type': 'CA', 'charge': -0.2034}, ('TRP', 'HA'): {'type': 'HP', 'charge': 0.1162}, ('TRP', 'N'): {'type': 'N3', 'charge': 0.1913}, ('TRP', 'NE1'): {'type': 'NA', 'charge': -0.3444}, ('TRP', 'O'): {'type': 'O', 'charge': -0.5713}, ('TYR', '1HD'): {'type': 'HA', 'charge': 0.172}, ('TYR', '1HE'): {'type': 'HA', 'charge': 0.165}, ('TYR', '1HT'): {'type': 'H', 'charge': 0.1873}, ('TYR', '2HB'): {'type': 'HC', 'charge': 0.0102}, ('TYR', '2HD'): {'type': 'HA', 'charge': 0.172}, ('TYR', '2HE'): {'type': 'HA', 'charge': 0.165}, ('TYR', '2HT'): {'type': 'H', 'charge': 0.1873}, ('TYR', '3HB'): {'type': 'HC', 'charge': 0.0102}, ('TYR', '3HT'): {'type': 'H', 'charge': 0.1873}, ('TYR', 'C'): {'type': 'C', 'charge': 0.6123}, ('TYR', 'CA'): {'type': 'CT', 'charge': 0.057}, ('TYR', 'CB'): {'type': 'CT', 'charge': 0.0659}, ('TYR', 'CD1'): {'type': 'CA', 'charge': -0.2002}, ('TYR', 'CD2'): {'type': 'CA', 'charge': -0.2002}, ('TYR', 'CE1'): {'type': 'CA', 'charge': -0.2239}, ('TYR', 'CE2'): {'type': 'CA', 'charge': -0.2239}, ('TYR', 'CG'): {'type': 'CA', 'charge': -0.0205}, ('TYR', 'CZ'): {'type': 'C', 'charge': 0.3139}, ('TYR', 'HA'): {'type': 'HP', 'charge': 0.0983}, ('TYR', 'HH'): {'type': 'HO', 'charge': 0.4001}, ('TYR', 'N'): {'type': 'N3', 'charge': 0.194}, ('TYR', 'O'): {'type': 'O', 'charge': -0.5713}, ('TYR', 'OH'): {'type': 'OH', 'charge': -0.5578}} c_terminal = {('ALA', '1HB'): {'type': 'HC', 'charge': 0.0764}, ('ALA', '2HB'): {'type': 'HC', 'charge': 0.0764}, ('ALA', '3HB'): {'type': 'HC', 'charge': 0.0764}, ('ALA', 'C'): {'type': 'C', 'charge': 0.7731}, ('ALA', 'CA'): {'type': 'CT', 'charge': -0.1747}, ('ALA', 'CB'): {'type': 'CT', 'charge': -0.2093}, ('ALA', 'H'): {'type': 'H', 'charge': 0.2681}, ('ALA', 'HA'): {'type': 'H1', 'charge': 0.1067}, ('ALA', 'N'): {'type': 'N', 'charge': -0.3821}, ('ALA', 'O'): {'type': 'O2', 'charge': -0.8055}, ('ALA', 'OXT'): {'type': 'O2', 'charge': -0.8055}, ('CYS', '2HB'): {'type': 'H1', 'charge': 0.1437}, ('CYS', '3HB'): {'type': 'H1', 'charge': 0.1437}, ('CYS', 'C'): {'type': 'C', 'charge': 0.7497}, ('CYS', 'CA'): {'type': 'CT', 'charge': -0.1635}, ('CYS', 'CB'): {'type': 'CT', 'charge': -0.1996}, ('CYS', 'H'): {'type': 'H', 'charge': 0.2681}, ('CYS', 'HA'): {'type': 'H1', 'charge': 0.1396}, ('CYS', 'HG'): {'type': 'HS', 'charge': 0.2068}, ('CYS', 'N'): {'type': 'N', 'charge': -0.3821}, ('CYS', 'O'): {'type': 'O2', 'charge': -0.7981}, ('CYS', 'OXT'): {'type': 'O2', 'charge': -0.7981}, ('CYS', 'SG'): {'type': 'SH', 'charge': -0.3102}, ('CYX', '2HB'): {'type': 'H1', 'charge': 0.1228}, ('CYX', '3HB'): {'type': 'H1', 'charge': 0.1228}, ('CYX', 'C'): {'type': 'C', 'charge': 0.7618}, ('CYX', 'CA'): {'type': 'CT', 'charge': -0.1318}, ('CYX', 'CB'): {'type': 'CT', 'charge': -0.1943}, ('CYX', 'H'): {'type': 'H', 'charge': 0.2681}, ('CYX', 'HA'): {'type': 'H1', 'charge': 0.0938}, ('CYX', 'N'): {'type': 'N', 'charge': -0.3821}, ('CYX', 'O'): {'type': 'O2', 'charge': -0.8041}, ('CYX', 'OXT'): {'type': 'O2', 'charge': -0.8041}, ('CYX', 'SG'): {'type': 'S', 'charge': -0.0529}, ('ASP', '2HB'): {'type': 'HC', 'charge': -0.0212}, ('ASP', '3HB'): {'type': 'HC', 'charge': -0.0212}, ('ASP', 'C'): {'type': 'C', 'charge': 0.7256}, ('ASP', 'CA'): {'type': 'CT', 'charge': -0.1817}, ('ASP', 'CB'): {'type': 'CT', 'charge': -0.0677}, ('ASP', 'CG'): {'type': 'C', 'charge': 0.8851}, ('ASP', 'H'): {'type': 'H', 'charge': 0.3055}, ('ASP', 'HA'): {'type': 'H1', 'charge': 0.1046}, ('ASP', 'N'): {'type': 'N', 'charge': -0.5192}, ('ASP', 'O'): {'type': 'O2', 'charge': -0.7887}, ('ASP', 'OD1'): {'type': 'O2', 'charge': -0.8162}, ('ASP', 'OD2'): {'type': 'O2', 'charge': -0.8162}, ('ASP', 'OXT'): {'type': 'O2', 'charge': -0.7887}, ('ASH', '2HB'): {'type': 'HC', 'charge': -0.0212}, ('ASH', '3HB'): {'type': 'HC', 'charge': -0.0212}, ('ASH', 'C'): {'type': 'C', 'charge': 0.7256}, ('ASH', 'CA'): {'type': 'CT', 'charge': -0.1817}, ('ASH', 'CB'): {'type': 'CT', 'charge': -0.0677}, ('ASH', 'CG'): {'type': 'C', 'charge': 0.8851}, ('ASH', 'H'): {'type': 'H', 'charge': 0.3055}, ('ASH', 'HA'): {'type': 'H1', 'charge': 0.1046}, ('ASH', 'N'): {'type': 'N', 'charge': -0.5192}, ('ASH', 'O'): {'type': 'O2', 'charge': -0.7887}, ('ASH', 'OD1'): {'type': 'O', 'charge': -0.8162}, ('ASH', 'OD2'): {'type': 'OH', 'charge': -0.8162}, ('ASH', 'OXT'): {'type': 'O2', 'charge': -0.7887}, ('GLU', '2HB'): {'type': 'HC', 'charge': -0.0078}, ('GLU', '2HG'): {'type': 'HC', 'charge': -0.0548}, ('GLU', '3HB'): {'type': 'HC', 'charge': -0.0078}, ('GLU', '3HG'): {'type': 'HC', 'charge': -0.0548}, ('GLU', 'C'): {'type': 'C', 'charge': 0.742}, ('GLU', 'CA'): {'type': 'CT', 'charge': -0.2059}, ('GLU', 'CB'): {'type': 'CT', 'charge': 0.0071}, ('GLU', 'CD'): {'type': 'C', 'charge': 0.8183}, ('GLU', 'CG'): {'type': 'CT', 'charge': 0.0675}, ('GLU', 'H'): {'type': 'H', 'charge': 0.3055}, ('GLU', 'HA'): {'type': 'H1', 'charge': 0.1399}, ('GLU', 'N'): {'type': 'N', 'charge': -0.5192}, ('GLU', 'O'): {'type': 'O2', 'charge': -0.793}, ('GLU', 'OE1'): {'type': 'O2', 'charge': -0.822}, ('GLU', 'OE2'): {'type': 'O2', 'charge': -0.822}, ('GLU', 'OXT'): {'type': 'O2', 'charge': -0.793}, ('GLP', '2HB'): {'type': 'HC', 'charge': -0.0078}, ('GLP', '2HG'): {'type': 'HC', 'charge': -0.0548}, ('GLP', '3HB'): {'type': 'HC', 'charge': -0.0078}, ('GLP', '3HG'): {'type': 'HC', 'charge': -0.0548}, ('GLP', 'C'): {'type': 'C', 'charge': 0.742}, ('GLP', 'CA'): {'type': 'CT', 'charge': -0.2059}, ('GLP', 'CB'): {'type': 'CT', 'charge': 0.0071}, ('GLP', 'CD'): {'type': 'C', 'charge': 0.8183}, ('GLP', 'CG'): {'type': 'CT', 'charge': 0.0675}, ('GLP', 'H'): {'type': 'H', 'charge': 0.3055}, ('GLP', 'HA'): {'type': 'H1', 'charge': 0.1399}, ('GLP', 'N'): {'type': 'N', 'charge': -0.5192}, ('GLP', 'O'): {'type': 'O2', 'charge': -0.793}, ('GLP', 'OE1'): {'type': 'O', 'charge': -0.822}, ('GLP', 'OE2'): {'type': 'OH', 'charge': -0.822}, ('GLP', 'OXT'): {'type': 'O2', 'charge': -0.793}, ('PHE', '1HD'): {'type': 'HA', 'charge': 0.1408}, ('PHE', '1HE'): {'type': 'HA', 'charge': 0.1461}, ('PHE', '2HB'): {'type': 'HC', 'charge': 0.0443}, ('PHE', '2HD'): {'type': 'HA', 'charge': 0.1408}, ('PHE', '2HE'): {'type': 'HA', 'charge': 0.1461}, ('PHE', '3HB'): {'type': 'HC', 'charge': 0.0443}, ('PHE', 'C'): {'type': 'C', 'charge': 0.766}, ('PHE', 'CA'): {'type': 'CT', 'charge': -0.1825}, ('PHE', 'CB'): {'type': 'CT', 'charge': -0.0959}, ('PHE', 'CD1'): {'type': 'CA', 'charge': -0.13}, ('PHE', 'CD2'): {'type': 'CA', 'charge': -0.13}, ('PHE', 'CE1'): {'type': 'CA', 'charge': -0.1847}, ('PHE', 'CE2'): {'type': 'CA', 'charge': -0.1847}, ('PHE', 'CG'): {'type': 'CA', 'charge': 0.0552}, ('PHE', 'CZ'): {'type': 'CA', 'charge': -0.0944}, ('PHE', 'H'): {'type': 'H', 'charge': 0.2681}, ('PHE', 'HA'): {'type': 'H1', 'charge': 0.1098}, ('PHE', 'HZ'): {'type': 'HA', 'charge': 0.128}, ('PHE', 'N'): {'type': 'N', 'charge': -0.3821}, ('PHE', 'O'): {'type': 'O2', 'charge': -0.8026}, ('PHE', 'OXT'): {'type': 'O2', 'charge': -0.8026}, ('GLY', '3HA'): {'type': 'H1', 'charge': 0.1056}, ('GLY', 'C'): {'type': 'C', 'charge': 0.7231}, ('GLY', 'CA'): {'type': 'CT', 'charge': -0.2493}, ('GLY', 'H'): {'type': 'H', 'charge': 0.2681}, ('GLY', 'HA'): {'type': 'H1', 'charge': 0.1056}, ('GLY', 'N'): {'type': 'N', 'charge': -0.3821}, ('GLY', 'O'): {'type': 'O2', 'charge': -0.7855}, ('GLY', 'OXT'): {'type': 'O2', 'charge': -0.7855}, ('HIP', '1HD'): {'type': 'H', 'charge': 0.3883}, ('HIP', '1HE'): {'type': 'H5', 'charge': 0.2694}, ('HIP', '2HB'): {'type': 'HC', 'charge': 0.0868}, ('HIP', '2HD'): {'type': 'H4', 'charge': 0.2336}, ('HIP', '2HE'): {'type': 'H', 'charge': 0.3913}, ('HIP', '3HB'): {'type': 'HC', 'charge': 0.0868}, ('HIP', 'C'): {'type': 'C', 'charge': 0.8032}, ('HIP', 'CA'): {'type': 'CT', 'charge': -0.1445}, ('HIP', 'CB'): {'type': 'CT', 'charge': -0.08}, ('HIP', 'CD2'): {'type': 'CW', 'charge': -0.1256}, ('HIP', 'CE1'): {'type': 'CR', 'charge': -0.0251}, ('HIP', 'CG'): {'type': 'CC', 'charge': 0.0298}, ('HIP', 'H'): {'type': 'H', 'charge': 0.2764}, ('HIP', 'HA'): {'type': 'H1', 'charge': 0.1115}, ('HIP', 'N'): {'type': 'N', 'charge': -0.3481}, ('HIP', 'ND1'): {'type': 'NA', 'charge': -0.1501}, ('HIP', 'NE2'): {'type': 'NA', 'charge': -0.1683}, ('HIP', 'O'): {'type': 'O2', 'charge': -0.8177}, ('HIP', 'OXT'): {'type': 'O2', 'charge': -0.8177}, ('HIE', '1HE'): {'type': 'H5', 'charge': 0.1448}, ('HIE', '2HB'): {'type': 'HC', 'charge': 0.062}, ('HIE', '2HD'): {'type': 'H4', 'charge': 0.1957}, ('HIE', '2HE'): {'type': 'H', 'charge': 0.3319}, ('HIE', '3HB'): {'type': 'HC', 'charge': 0.062}, ('HIE', 'C'): {'type': 'C', 'charge': 0.7916}, ('HIE', 'CA'): {'type': 'CT', 'charge': -0.2699}, ('HIE', 'CB'): {'type': 'CT', 'charge': -0.1068}, ('HIE', 'CD2'): {'type': 'CW', 'charge': -0.2588}, ('HIE', 'CE1'): {'type': 'CR', 'charge': 0.1558}, ('HIE', 'CG'): {'type': 'CC', 'charge': 0.2724}, ('HIE', 'H'): {'type': 'H', 'charge': 0.2681}, ('HIE', 'HA'): {'type': 'H1', 'charge': 0.165}, ('HIE', 'N'): {'type': 'N', 'charge': -0.3821}, ('HIE', 'ND1'): {'type': 'NB', 'charge': -0.5517}, ('HIE', 'NE2'): {'type': 'NA', 'charge': -0.267}, ('HIE', 'O'): {'type': 'O2', 'charge': -0.8065}, ('HIE', 'OXT'): {'type': 'O2', 'charge': -0.8065}, ('HID', '1HD'): {'type': 'H', 'charge': 0.3755}, ('HID', '1HE'): {'type': 'H5', 'charge': 0.1418}, ('HID', '2HB'): {'type': 'HC', 'charge': 0.0565}, ('HID', '2HD'): {'type': 'H4', 'charge': 0.1241}, ('HID', '3HB'): {'type': 'HC', 'charge': 0.0565}, ('HID', 'C'): {'type': 'C', 'charge': 0.7615}, ('HID', 'CA'): {'type': 'CT', 'charge': -0.1739}, ('HID', 'CB'): {'type': 'CT', 'charge': -0.1046}, ('HID', 'CD2'): {'type': 'CV', 'charge': 0.1001}, ('HID', 'CE1'): {'type': 'CR', 'charge': 0.1925}, ('HID', 'CG'): {'type': 'CC', 'charge': 0.0293}, ('HID', 'H'): {'type': 'H', 'charge': 0.2681}, ('HID', 'HA'): {'type': 'H1', 'charge': 0.11}, ('HID', 'N'): {'type': 'N', 'charge': -0.3821}, ('HID', 'ND1'): {'type': 'NA', 'charge': -0.3892}, ('HID', 'NE2'): {'type': 'NB', 'charge': -0.5629}, ('HID', 'O'): {'type': 'O2', 'charge': -0.8016}, ('HID', 'OXT'): {'type': 'O2', 'charge': -0.8016}, ('ILE', '1HD1'): {'type': 'HC', 'charge': 0.0196}, ('ILE', '1HG2'): {'type': 'HC', 'charge': 0.1021}, ('ILE', '2HD1'): {'type': 'HC', 'charge': 0.0196}, ('ILE', '2HG1'): {'type': 'HC', 'charge': 0.0321}, ('ILE', '2HG2'): {'type': 'HC', 'charge': 0.1021}, ('ILE', '3HD1'): {'type': 'HC', 'charge': 0.0196}, ('ILE', '3HG1'): {'type': 'HC', 'charge': 0.0321}, ('ILE', '3HG2'): {'type': 'HC', 'charge': 0.1021}, ('ILE', 'C'): {'type': 'C', 'charge': 0.8343}, ('ILE', 'CA'): {'type': 'CT', 'charge': -0.31}, ('ILE', 'CB'): {'type': 'CT', 'charge': 0.0363}, ('ILE', 'CD1'): {'type': 'CT', 'charge': -0.0699}, ('ILE', 'CG1'): {'type': 'CT', 'charge': -0.0323}, ('ILE', 'CG2'): {'type': 'CT', 'charge': -0.3498}, ('ILE', 'H'): {'type': 'H', 'charge': 0.2681}, ('ILE', 'HA'): {'type': 'H1', 'charge': 0.1375}, ('ILE', 'HB'): {'type': 'HC', 'charge': 0.0766}, ('ILE', 'N'): {'type': 'N', 'charge': -0.3821}, ('ILE', 'O'): {'type': 'O2', 'charge': -0.819}, ('ILE', 'OXT'): {'type': 'O2', 'charge': -0.819}, ('LYS', '1HZ'): {'type': 'H', 'charge': 0.3374}, ('LYS', '2HB'): {'type': 'HC', 'charge': 0.0482}, ('LYS', '2HD'): {'type': 'HC', 'charge': 0.0611}, ('LYS', '2HE'): {'type': 'HP', 'charge': 0.1121}, ('LYS', '2HG'): {'type': 'HC', 'charge': 0.0134}, ('LYS', '2HZ'): {'type': 'H', 'charge': 0.3374}, ('LYS', '3HB'): {'type': 'HC', 'charge': 0.0482}, ('LYS', '3HD'): {'type': 'HC', 'charge': 0.0611}, ('LYS', '3HE'): {'type': 'HP', 'charge': 0.1121}, ('LYS', '3HG'): {'type': 'HC', 'charge': 0.0134}, ('LYS', '3HZ'): {'type': 'H', 'charge': 0.3374}, ('LYS', 'C'): {'type': 'C', 'charge': 0.8488}, ('LYS', 'CA'): {'type': 'CT', 'charge': -0.2903}, ('LYS', 'CB'): {'type': 'CT', 'charge': -0.0538}, ('LYS', 'CD'): {'type': 'CT', 'charge': -0.0392}, ('LYS', 'CE'): {'type': 'CT', 'charge': -0.0176}, ('LYS', 'CG'): {'type': 'CT', 'charge': 0.0227}, ('LYS', 'H'): {'type': 'H', 'charge': 0.2764}, ('LYS', 'HA'): {'type': 'H1', 'charge': 0.1438}, ('LYS', 'N'): {'type': 'N', 'charge': -0.3481}, ('LYS', 'NZ'): {'type': 'N3', 'charge': -0.3741}, ('LYS', 'O'): {'type': 'O2', 'charge': -0.8252}, ('LYS', 'OXT'): {'type': 'O2', 'charge': -0.8252}, ('LEU', '1HD1'): {'type': 'HC', 'charge': 0.1038}, ('LEU', '1HD2'): {'type': 'HC', 'charge': 0.1038}, ('LEU', '2HB'): {'type': 'HC', 'charge': 0.0974}, ('LEU', '2HD1'): {'type': 'HC', 'charge': 0.1038}, ('LEU', '2HD2'): {'type': 'HC', 'charge': 0.1038}, ('LEU', '3HB'): {'type': 'HC', 'charge': 0.0974}, ('LEU', '3HD1'): {'type': 'HC', 'charge': 0.1038}, ('LEU', '3HD2'): {'type': 'HC', 'charge': 0.1038}, ('LEU', 'C'): {'type': 'C', 'charge': 0.8326}, ('LEU', 'CA'): {'type': 'CT', 'charge': -0.2847}, ('LEU', 'CB'): {'type': 'CT', 'charge': -0.2469}, ('LEU', 'CD1'): {'type': 'CT', 'charge': -0.4163}, ('LEU', 'CD2'): {'type': 'CT', 'charge': -0.4163}, ('LEU', 'CG'): {'type': 'CT', 'charge': 0.3706}, ('LEU', 'H'): {'type': 'H', 'charge': 0.2681}, ('LEU', 'HA'): {'type': 'H1', 'charge': 0.1346}, ('LEU', 'HG'): {'type': 'HC', 'charge': -0.0374}, ('LEU', 'N'): {'type': 'N', 'charge': -0.3821}, ('LEU', 'O'): {'type': 'O2', 'charge': -0.8199}, ('LEU', 'OXT'): {'type': 'O2', 'charge': -0.8199}, ('MET', '1HE'): {'type': 'H1', 'charge': 0.0625}, ('MET', '2HB'): {'type': 'HC', 'charge': 0.048}, ('MET', '2HE'): {'type': 'H1', 'charge': 0.0625}, ('MET', '2HG'): {'type': 'H1', 'charge': 0.0317}, ('MET', '3HB'): {'type': 'HC', 'charge': 0.048}, ('MET', '3HE'): {'type': 'H1', 'charge': 0.0625}, ('MET', '3HG'): {'type': 'H1', 'charge': 0.0317}, ('MET', 'C'): {'type': 'C', 'charge': 0.8013}, ('MET', 'CA'): {'type': 'CT', 'charge': -0.2597}, ('MET', 'CB'): {'type': 'CT', 'charge': -0.0236}, ('MET', 'CE'): {'type': 'CT', 'charge': -0.0376}, ('MET', 'CG'): {'type': 'CT', 'charge': 0.0492}, ('MET', 'H'): {'type': 'H', 'charge': 0.2681}, ('MET', 'HA'): {'type': 'H1', 'charge': 0.1277}, ('MET', 'N'): {'type': 'N', 'charge': -0.3821}, ('MET', 'O'): {'type': 'O2', 'charge': -0.8105}, ('MET', 'OXT'): {'type': 'O2', 'charge': -0.8105}, ('MET', 'SD'): {'type': 'S', 'charge': -0.2692}, ('ASN', '1HD2'): {'type': 'H', 'charge': 0.415}, ('ASN', '2HB'): {'type': 'HC', 'charge': 0.1023}, ('ASN', '2HD2'): {'type': 'H', 'charge': 0.415}, ('ASN', '3HB'): {'type': 'HC', 'charge': 0.1023}, ('ASN', 'C'): {'type': 'C', 'charge': 0.805}, ('ASN', 'CA'): {'type': 'CT', 'charge': -0.208}, ('ASN', 'CB'): {'type': 'CT', 'charge': -0.2299}, ('ASN', 'CG'): {'type': 'C', 'charge': 0.7153}, ('ASN', 'H'): {'type': 'H', 'charge': 0.2681}, ('ASN', 'HA'): {'type': 'H1', 'charge': 0.1358}, ('ASN', 'N'): {'type': 'N', 'charge': -0.3821}, ('ASN', 'ND2'): {'type': 'N', 'charge': -0.9084}, ('ASN', 'O'): {'type': 'O2', 'charge': -0.8147}, ('ASN', 'OD1'): {'type': 'O', 'charge': -0.601}, ('ASN', 'OXT'): {'type': 'O2', 'charge': -0.8147}, ('PRO', '2HB'): {'type': 'HC', 'charge': 0.0381}, ('PRO', '2HD'): {'type': 'H1', 'charge': 0.0331}, ('PRO', '2HG'): {'type': 'HC', 'charge': 0.0172}, ('PRO', '3HB'): {'type': 'HC', 'charge': 0.0381}, ('PRO', '3HD'): {'type': 'H1', 'charge': 0.0331}, ('PRO', '3HG'): {'type': 'HC', 'charge': 0.0172}, ('PRO', 'C'): {'type': 'C', 'charge': 0.6631}, ('PRO', 'CA'): {'type': 'CT', 'charge': -0.1336}, ('PRO', 'CB'): {'type': 'CT', 'charge': -0.0543}, ('PRO', 'CD'): {'type': 'CT', 'charge': 0.0434}, ('PRO', 'CG'): {'type': 'CT', 'charge': 0.0466}, ('PRO', 'HA'): {'type': 'H1', 'charge': 0.0776}, ('PRO', 'N'): {'type': 'N', 'charge': -0.2802}, ('PRO', 'O'): {'type': 'O2', 'charge': -0.7697}, ('PRO', 'OXT'): {'type': 'O2', 'charge': -0.7697}, ('GLN', '1HE2'): {'type': 'H', 'charge': 0.4304}, ('GLN', '2HB'): {'type': 'HC', 'charge': 0.0452}, ('GLN', '2HE2'): {'type': 'H', 'charge': 0.4304}, ('GLN', '2HG'): {'type': 'HC', 'charge': 0.0203}, ('GLN', '3HB'): {'type': 'HC', 'charge': 0.0452}, ('GLN', '3HG'): {'type': 'HC', 'charge': 0.0203}, ('GLN', 'C'): {'type': 'C', 'charge': 0.7775}, ('GLN', 'CA'): {'type': 'CT', 'charge': -0.2248}, ('GLN', 'CB'): {'type': 'CT', 'charge': -0.0664}, ('GLN', 'CD'): {'type': 'C', 'charge': 0.7093}, ('GLN', 'CG'): {'type': 'CT', 'charge': -0.021}, ('GLN', 'H'): {'type': 'H', 'charge': 0.2681}, ('GLN', 'HA'): {'type': 'H1', 'charge': 0.1232}, ('GLN', 'N'): {'type': 'N', 'charge': -0.3821}, ('GLN', 'NE2'): {'type': 'N', 'charge': -0.9574}, ('GLN', 'O'): {'type': 'O2', 'charge': -0.8042}, ('GLN', 'OE1'): {'type': 'O', 'charge': -0.6098}, ('GLN', 'OXT'): {'type': 'O2', 'charge': -0.8042}, ('ARG', '1HH1'): {'type': 'H', 'charge': 0.4493}, ('ARG', '1HH2'): {'type': 'H', 'charge': 0.4493}, ('ARG', '2HB'): {'type': 'HC', 'charge': 0.0371}, ('ARG', '2HD'): {'type': 'H1', 'charge': 0.0468}, ('ARG', '2HG'): {'type': 'HC', 'charge': 0.0185}, ('ARG', '2HH1'): {'type': 'H', 'charge': 0.4493}, ('ARG', '2HH2'): {'type': 'H', 'charge': 0.4493}, ('ARG', '3HB'): {'type': 'HC', 'charge': 0.0371}, ('ARG', '3HD'): {'type': 'H1', 'charge': 0.0468}, ('ARG', '3HG'): {'type': 'HC', 'charge': 0.0185}, ('ARG', 'C'): {'type': 'C', 'charge': 0.8557}, ('ARG', 'CA'): {'type': 'CT', 'charge': -0.3068}, ('ARG', 'CB'): {'type': 'CT', 'charge': -0.0374}, ('ARG', 'CD'): {'type': 'CT', 'charge': 0.1114}, ('ARG', 'CG'): {'type': 'CT', 'charge': 0.0744}, ('ARG', 'CZ'): {'type': 'CA', 'charge': 0.8368}, ('ARG', 'H'): {'type': 'H', 'charge': 0.2764}, ('ARG', 'HA'): {'type': 'H1', 'charge': 0.1447}, ('ARG', 'HE'): {'type': 'H', 'charge': 0.3479}, ('ARG', 'N'): {'type': 'N', 'charge': -0.3481}, ('ARG', 'NE'): {'type': 'N2', 'charge': -0.5564}, ('ARG', 'NH1'): {'type': 'N2', 'charge': -0.8737}, ('ARG', 'NH2'): {'type': 'N2', 'charge': -0.8737}, ('ARG', 'O'): {'type': 'O2', 'charge': -0.8266}, ('ARG', 'OXT'): {'type': 'O2', 'charge': -0.8266}, ('SER', '2HB'): {'type': 'H1', 'charge': 0.0813}, ('SER', '3HB'): {'type': 'H1', 'charge': 0.0813}, ('SER', 'C'): {'type': 'C', 'charge': 0.8113}, ('SER', 'CA'): {'type': 'CT', 'charge': -0.2722}, ('SER', 'CB'): {'type': 'CT', 'charge': 0.1123}, ('SER', 'H'): {'type': 'H', 'charge': 0.2681}, ('SER', 'HA'): {'type': 'H1', 'charge': 0.1304}, ('SER', 'HG'): {'type': 'HO', 'charge': 0.4474}, ('SER', 'N'): {'type': 'N', 'charge': -0.3821}, ('SER', 'O'): {'type': 'O2', 'charge': -0.8132}, ('SER', 'OG'): {'type': 'OH', 'charge': -0.6514}, ('SER', 'OXT'): {'type': 'O2', 'charge': -0.8132}, ('THR', '1HG'): {'type': 'HO', 'charge': 0.4119}, ('THR', '1HG2'): {'type': 'HC', 'charge': 0.0586}, ('THR', '2HG2'): {'type': 'HC', 'charge': 0.0586}, ('THR', '3HG2'): {'type': 'HC', 'charge': 0.0586}, ('THR', 'C'): {'type': 'C', 'charge': 0.781}, ('THR', 'CA'): {'type': 'CT', 'charge': -0.242}, ('THR', 'CB'): {'type': 'CT', 'charge': 0.3025}, ('THR', 'CG2'): {'type': 'CT', 'charge': -0.1853}, ('THR', 'H'): {'type': 'H', 'charge': 0.2681}, ('THR', 'HA'): {'type': 'H1', 'charge': 0.1207}, ('THR', 'HB'): {'type': 'H1', 'charge': 0.0078}, ('THR', 'N'): {'type': 'N', 'charge': -0.3821}, ('THR', 'O'): {'type': 'O2', 'charge': -0.8044}, ('THR', 'OG1'): {'type': 'OH', 'charge': -0.6496}, ('THR', 'OXT'): {'type': 'O2', 'charge': -0.8044}, ('VAL', '1HG1'): {'type': 'HC', 'charge': 0.0836}, ('VAL', '1HG2'): {'type': 'HC', 'charge': 0.0836}, ('VAL', '2HG1'): {'type': 'HC', 'charge': 0.0836}, ('VAL', '2HG2'): {'type': 'HC', 'charge': 0.0836}, ('VAL', '3HG1'): {'type': 'HC', 'charge': 0.0836}, ('VAL', '3HG2'): {'type': 'HC', 'charge': 0.0836}, ('VAL', 'C'): {'type': 'C', 'charge': 0.835}, ('VAL', 'CA'): {'type': 'CT', 'charge': -0.3438}, ('VAL', 'CB'): {'type': 'CT', 'charge': 0.194}, ('VAL', 'CG1'): {'type': 'CT', 'charge': -0.3064}, ('VAL', 'CG2'): {'type': 'CT', 'charge': -0.3064}, ('VAL', 'H'): {'type': 'H', 'charge': 0.2681}, ('VAL', 'HA'): {'type': 'H1', 'charge': 0.1438}, ('VAL', 'HB'): {'type': 'HC', 'charge': 0.0308}, ('VAL', 'N'): {'type': 'N', 'charge': -0.3821}, ('VAL', 'O'): {'type': 'O2', 'charge': -0.8173}, ('VAL', 'OXT'): {'type': 'O2', 'charge': -0.8173}, ('TRP', '1HD'): {'type': 'H4', 'charge': 0.2043}, ('TRP', '1HE'): {'type': 'H', 'charge': 0.3413}, ('TRP', '2HB'): {'type': 'HC', 'charge': 0.0497}, ('TRP', '2HH'): {'type': 'HA', 'charge': 0.1401}, ('TRP', '2HZ'): {'type': 'HA', 'charge': 0.1567}, ('TRP', '3HB'): {'type': 'HC', 'charge': 0.0497}, ('TRP', '3HE'): {'type': 'HA', 'charge': 0.1491}, ('TRP', '3HZ'): {'type': 'HA', 'charge': 0.1507}, ('TRP', 'C'): {'type': 'C', 'charge': 0.7658}, ('TRP', 'CA'): {'type': 'CT', 'charge': -0.2084}, ('TRP', 'CB'): {'type': 'CT', 'charge': -0.0742}, ('TRP', 'CD1'): {'type': 'CW', 'charge': -0.1808}, ('TRP', 'CD2'): {'type': 'CB', 'charge': 0.1078}, ('TRP', 'CE2'): {'type': 'CN', 'charge': 0.1222}, ('TRP', 'CE3'): {'type': 'CA', 'charge': -0.1837}, ('TRP', 'CG'): {'type': 'C*', 'charge': -0.0796}, ('TRP', 'CH2'): {'type': 'CA', 'charge': -0.102}, ('TRP', 'CZ2'): {'type': 'CA', 'charge': -0.2594}, ('TRP', 'CZ3'): {'type': 'CA', 'charge': -0.2287}, ('TRP', 'H'): {'type': 'H', 'charge': 0.2681}, ('TRP', 'HA'): {'type': 'H1', 'charge': 0.1272}, ('TRP', 'N'): {'type': 'N', 'charge': -0.3821}, ('TRP', 'NE1'): {'type': 'NA', 'charge': -0.3316}, ('TRP', 'O'): {'type': 'O2', 'charge': -0.8011}, ('TRP', 'OXT'): {'type': 'O2', 'charge': -0.8011}, ('TYR', '1HD'): {'type': 'HA', 'charge': 0.178}, ('TYR', '1HE'): {'type': 'HA', 'charge': 0.1673}, ('TYR', '2HB'): {'type': 'HC', 'charge': 0.049}, ('TYR', '2HD'): {'type': 'HA', 'charge': 0.178}, ('TYR', '2HE'): {'type': 'HA', 'charge': 0.1673}, ('TYR', '3HB'): {'type': 'HC', 'charge': 0.049}, ('TYR', 'C'): {'type': 'C', 'charge': 0.7817}, ('TYR', 'CA'): {'type': 'CT', 'charge': -0.2015}, ('TYR', 'CB'): {'type': 'CT', 'charge': -0.0752}, ('TYR', 'CD1'): {'type': 'CA', 'charge': -0.1922}, ('TYR', 'CD2'): {'type': 'CA', 'charge': -0.1922}, ('TYR', 'CE1'): {'type': 'CA', 'charge': -0.2458}, ('TYR', 'CE2'): {'type': 'CA', 'charge': -0.2458}, ('TYR', 'CG'): {'type': 'CA', 'charge': 0.0243}, ('TYR', 'CZ'): {'type': 'C', 'charge': 0.3395}, ('TYR', 'H'): {'type': 'H', 'charge': 0.2681}, ('TYR', 'HA'): {'type': 'H1', 'charge': 0.1092}, ('TYR', 'HH'): {'type': 'HO', 'charge': 0.4017}, ('TYR', 'N'): {'type': 'N', 'charge': -0.3821}, ('TYR', 'O'): {'type': 'O2', 'charge': -0.807}, ('TYR', 'OH'): {'type': 'OH', 'charge': -0.5643}, ('TYR', 'OXT'): {'type': 'O2', 'charge': -0.807}}
alphabet = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' ] def is_number(s): """ Check if the number is a float """ try: float(s) return True except ValueError: return False except TypeError: return False def convert_cusip_to_isin(cusip): """ Convert cusip to isin """ print(cusip) cusip = 'US' + str(cusip).upper() only_digits_cusip = "" for i in cusip: # print(i) if is_number(i): only_digits_cusip = str(only_digits_cusip) + str(i) else: only_digits_cusip = str(only_digits_cusip) + str(10 + alphabet.index(i)) odd = [] even = [] for i, char in enumerate(only_digits_cusip): if i % 2 == 0: odd.append(char) else: even.append(char) new_length_list = [] length_list = [] string_int = "" if len(odd) > len(even): length_list = odd for i in even: string_int += str(i) else: length_list = even for i in odd: string_int += str(i) for i in length_list: new_length_list.append(int(i) * 2) for i in new_length_list: string_int += str(i) dig_sum = 0 for i in string_int: dig_sum += int(i) check_sum = (10 - (dig_sum % 10)) % 10 isin = str(cusip) + str(check_sum) return isin # print(convert_cusip_to_isin('037833100'))
alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] def is_number(s): """ Check if the number is a float """ try: float(s) return True except ValueError: return False except TypeError: return False def convert_cusip_to_isin(cusip): """ Convert cusip to isin """ print(cusip) cusip = 'US' + str(cusip).upper() only_digits_cusip = '' for i in cusip: if is_number(i): only_digits_cusip = str(only_digits_cusip) + str(i) else: only_digits_cusip = str(only_digits_cusip) + str(10 + alphabet.index(i)) odd = [] even = [] for (i, char) in enumerate(only_digits_cusip): if i % 2 == 0: odd.append(char) else: even.append(char) new_length_list = [] length_list = [] string_int = '' if len(odd) > len(even): length_list = odd for i in even: string_int += str(i) else: length_list = even for i in odd: string_int += str(i) for i in length_list: new_length_list.append(int(i) * 2) for i in new_length_list: string_int += str(i) dig_sum = 0 for i in string_int: dig_sum += int(i) check_sum = (10 - dig_sum % 10) % 10 isin = str(cusip) + str(check_sum) return isin
class Data(): pass class PersonalInfo(Data): def __init__(self): self.ID = "" self.age = "" self.gender = "U" # "M" for male, "F" for female or "U" as unknown self.language = "" # "French", "Chinese" def setParams(self, ID, age, gender, language): self.ID = ID self.age = age self.gender = gender self.language = language class Annotation(Data): def __init__(self): self.ID = "" self.genre = "" # "Arousal", "Happiness", "Confidence" self.dimension = [] # [-1, 1] if having different length frames each having 1 value self.path = "" self.headers = [] # exp: ["GoldStandard"] or ["Arousal", "Valence"] self.annotator_info = PersonalInfo() def setParams(self, ID, genre, dimension, path, headers): self.ID = ID self.genre = genre self.dimension = dimension self.path = path self.headers = headers class Features(Data): def __init__(self): self.ID = "" self.genre = "" # "eGeMAPS" self.dimension = [] # [-1, 39] if different length frames each having 39 values self.path = "" def setParams(self, ID, genre, dimension, path): self.ID = ID self.genre = genre self.dimension = dimension self.path = path class AudioSample(Data): def __init__(self): self.ID = "" self.path = "" self.partition = "" # "train", "dev", "test" self.transcriptions = {} # {'ID':''}, where ID can be "Ziyi", "ASR", ... self.speaker_info = PersonalInfo() self.features = {} # [1, Features()] self.annotations = {} # [Annotation()] def setParams(self, ID, path, partition): self.ID = ID self.path = path self.partition = partition def classToDic(dic): if isinstance(dic, dict): for key in dic.keys(): if isinstance(dic[key], Data): dic[key] = classToDic(dic[key]) if isinstance(dic[key], list): for i, item in enumerate(dic[key]): dic[key][i] = classToDic(item) elif isinstance(dic, Data): return classToDic(dic.__dict__) return dic def localizePaths(dic, mainPath): # Change this path to that path if isinstance(dic, dict): for key in dic.keys(): if key == "path": dic[key] = dic[key].replace(mainPath, ".") dic[key] = dic[key].replace("./", "") if dic[key][0] == ".": dic[key] = dic[key][1:] else: localizePaths(dic[key], mainPath) return dic def changePaths(dic, This, That): # Change this path to that path if isinstance(dic, dict): for key in dic.keys(): if key == "path": dic[key] = dic[key].replace(This, That) else: changePaths(dic[key], This, That) return dic
class Data: pass class Personalinfo(Data): def __init__(self): self.ID = '' self.age = '' self.gender = 'U' self.language = '' def set_params(self, ID, age, gender, language): self.ID = ID self.age = age self.gender = gender self.language = language class Annotation(Data): def __init__(self): self.ID = '' self.genre = '' self.dimension = [] self.path = '' self.headers = [] self.annotator_info = personal_info() def set_params(self, ID, genre, dimension, path, headers): self.ID = ID self.genre = genre self.dimension = dimension self.path = path self.headers = headers class Features(Data): def __init__(self): self.ID = '' self.genre = '' self.dimension = [] self.path = '' def set_params(self, ID, genre, dimension, path): self.ID = ID self.genre = genre self.dimension = dimension self.path = path class Audiosample(Data): def __init__(self): self.ID = '' self.path = '' self.partition = '' self.transcriptions = {} self.speaker_info = personal_info() self.features = {} self.annotations = {} def set_params(self, ID, path, partition): self.ID = ID self.path = path self.partition = partition def class_to_dic(dic): if isinstance(dic, dict): for key in dic.keys(): if isinstance(dic[key], Data): dic[key] = class_to_dic(dic[key]) if isinstance(dic[key], list): for (i, item) in enumerate(dic[key]): dic[key][i] = class_to_dic(item) elif isinstance(dic, Data): return class_to_dic(dic.__dict__) return dic def localize_paths(dic, mainPath): if isinstance(dic, dict): for key in dic.keys(): if key == 'path': dic[key] = dic[key].replace(mainPath, '.') dic[key] = dic[key].replace('./', '') if dic[key][0] == '.': dic[key] = dic[key][1:] else: localize_paths(dic[key], mainPath) return dic def change_paths(dic, This, That): if isinstance(dic, dict): for key in dic.keys(): if key == 'path': dic[key] = dic[key].replace(This, That) else: change_paths(dic[key], This, That) return dic
horario = input('que horas sao de 0-23') if horario.isdigit(): horario = int(horario) if horario < 0 or horario > 23: print('horario de ser de 0 a 23') else: if horario <= 11: print('bom dia') elif horario <= 17: print('boa tarde') else: print('boa noite') else: print('digite um horariocom numeros')
horario = input('que horas sao de 0-23') if horario.isdigit(): horario = int(horario) if horario < 0 or horario > 23: print('horario de ser de 0 a 23') elif horario <= 11: print('bom dia') elif horario <= 17: print('boa tarde') else: print('boa noite') else: print('digite um horariocom numeros')
# Load our airplanes airplanes = spark.read.json("data/airplanes.json") airplanes.show() airplanes.write.format("org.elasticsearch.spark.sql")\ .option("es.resource","agile_data_science/airplane")\ .mode("overwrite")\ .save() # Format data for Elasticsearch, as a tuple with a dummy key in the first field # airplanes_dict = airplanes.rdd.map(lambda x: ('ignored_key', x.asDict())) # # airplanes_dict.saveAsNewAPIHadoopFile( # path='-', # outputFormatClass="org.elasticsearch.hadoop.mr.EsOutputFormat", # keyClass="org.apache.hadoop.io.NullWritable", # valueClass="org.elasticsearch.hadoop.mr.LinkedMapWritable", # conf={ "es.resource" : "agile_data_science/airplanes" })
airplanes = spark.read.json('data/airplanes.json') airplanes.show() airplanes.write.format('org.elasticsearch.spark.sql').option('es.resource', 'agile_data_science/airplane').mode('overwrite').save()
#Ver4.0, finally I did it! print("Grego -> Mingo Year Translator") grego = int(input("What's that year in Grego? ")) mingo = grego - 1911 if mingo >= 0: print ("So that year in Mingo year is:", mingo) else: print ("Sorry, in that year ROC was not exist.")
print('Grego -> Mingo Year Translator') grego = int(input("What's that year in Grego? ")) mingo = grego - 1911 if mingo >= 0: print('So that year in Mingo year is:', mingo) else: print('Sorry, in that year ROC was not exist.')
""" MAX31855 Copyright 2015 - Alexander Hiam <alex@graycat.io> A library for PyBBIO to interface with Maxim's MAX31855 thermocouple amplifier. MAX31855 is released as part of PyBBIO under its MIT license. See PyBBIO/LICENSE.txt """ class MAX31855(object): SPI_CLOCK_MODE = 1 SPI_FREQUENCY = 4000000 SPI_N_BITS = 32 OPEN_CIRCUIT = 1 SHORT_TO_GND = 2 SHORT_TO_VCC = 4 def __init__(self, spi_bus, spi_cs=0, offset=0): self.spi_bus = spi_bus self.spi_cs = spi_cs self.offset = offset self.error = None def readTempF(self): """ Reads temperature, converts to Fahrenheit and returns, or returns None if error detected. """ temp = self.readTempC() return temp if not temp else temp * 9.0/5.0 + 32 def readTempC(self): """ Reads and returns the temperature in Celsius, or returns None if error detected. """ value = self.read() if value == None: return None # Extract 14-bit signed temperature value: temp = (value >> 18) & 0x3fff # Convert 2's complement: if temp >= 2**13: temp -= 2**14 return temp*0.25 + self.offset def readTempInternal(self): """ Reads and returns the MAX31855 reference junction temperature in Celsius, or returns None if error detected. """ value = self.read() if value == None: return None temp = (value >> 4) & 0xfff # Convert 2's complement: if temp >= 2**11: temp -= 2**12 return temp*0.0625 def read(self): """ Receives and returns full 32-bit map from MAX31855, or sets self.error and returns None if fault detected. """ self.error = None # Configure SPI bus as required by the MAX31855: self.spi_bus.setClockMode(self.spi_cs, self.SPI_CLOCK_MODE) self.spi_bus.setMaxFrequency(self.spi_cs, self.SPI_FREQUENCY) self.spi_bus.setBitsPerWord(self.spi_cs, self.SPI_N_BITS) self.spi_bus.setMSBFirst(self.spi_cs) self.spi_bus.setCSActiveLow(self.spi_cs) value = self.spi_bus.read(self.spi_cs, 1)[0] if (value & (1<<16)): # Fault bit set, save error code and return None: self.error = value & 0b111 return None return value
""" MAX31855 Copyright 2015 - Alexander Hiam <alex@graycat.io> A library for PyBBIO to interface with Maxim's MAX31855 thermocouple amplifier. MAX31855 is released as part of PyBBIO under its MIT license. See PyBBIO/LICENSE.txt """ class Max31855(object): spi_clock_mode = 1 spi_frequency = 4000000 spi_n_bits = 32 open_circuit = 1 short_to_gnd = 2 short_to_vcc = 4 def __init__(self, spi_bus, spi_cs=0, offset=0): self.spi_bus = spi_bus self.spi_cs = spi_cs self.offset = offset self.error = None def read_temp_f(self): """ Reads temperature, converts to Fahrenheit and returns, or returns None if error detected. """ temp = self.readTempC() return temp if not temp else temp * 9.0 / 5.0 + 32 def read_temp_c(self): """ Reads and returns the temperature in Celsius, or returns None if error detected. """ value = self.read() if value == None: return None temp = value >> 18 & 16383 if temp >= 2 ** 13: temp -= 2 ** 14 return temp * 0.25 + self.offset def read_temp_internal(self): """ Reads and returns the MAX31855 reference junction temperature in Celsius, or returns None if error detected. """ value = self.read() if value == None: return None temp = value >> 4 & 4095 if temp >= 2 ** 11: temp -= 2 ** 12 return temp * 0.0625 def read(self): """ Receives and returns full 32-bit map from MAX31855, or sets self.error and returns None if fault detected. """ self.error = None self.spi_bus.setClockMode(self.spi_cs, self.SPI_CLOCK_MODE) self.spi_bus.setMaxFrequency(self.spi_cs, self.SPI_FREQUENCY) self.spi_bus.setBitsPerWord(self.spi_cs, self.SPI_N_BITS) self.spi_bus.setMSBFirst(self.spi_cs) self.spi_bus.setCSActiveLow(self.spi_cs) value = self.spi_bus.read(self.spi_cs, 1)[0] if value & 1 << 16: self.error = value & 7 return None return value
with open("words.txt", "r") as f: words = f.readlines()[0].split() words_found = {x: 0 for x in words} with open("input.txt", 'r') as f: for num, line in enumerate(f, start=1): for word in words: if word in line: words_found[word] += 1 with open("output.txt", "w") as f: for word, count in sorted(words_found.items(), key=lambda x: -x[1]): f.write(f"{word} - {count}\n")
with open('words.txt', 'r') as f: words = f.readlines()[0].split() words_found = {x: 0 for x in words} with open('input.txt', 'r') as f: for (num, line) in enumerate(f, start=1): for word in words: if word in line: words_found[word] += 1 with open('output.txt', 'w') as f: for (word, count) in sorted(words_found.items(), key=lambda x: -x[1]): f.write(f'{word} - {count}\n')
_DEFAULT_BROWSER = "firefox" _COMMON_TAGS = [ "browser-test", "no-sandbox", "requires-network", ] _BROWSERS = { "chrome": { "deps": ["//java/client/src/org/openqa/selenium/chrome"], "jvm_flags": ["-Dselenium.browser=chrome"], "tags": _COMMON_TAGS + ["chrome"], }, "edge": { "deps": ["//java/client/src/org/openqa/selenium/edge"], "jvm_flags": ["-Dselenium.browser=edge"], "tags": _COMMON_TAGS + ["edge"], }, "edgehtml": { "deps": ["//java/client/src/org/openqa/selenium/edgehtml"], "jvm_flags": ["-Dselenium.browser=edgehtml"] + select({ "//common:windows": ["-Dselenium.skiptest=false"], "//conditions:default": ["-Dselenium.skiptest=true"], }), "tags": _COMMON_TAGS + ["exclusive", "edgehtml"], }, "firefox": { "deps": ["//java/client/src/org/openqa/selenium/firefox"], "jvm_flags": ["-Dselenium.browser=ff"], "tags": _COMMON_TAGS + ["firefox"], }, "ie": { "deps": ["//java/client/src/org/openqa/selenium/ie"], "jvm_flags": ["-Dselenium.browser=ie"] + select({ "//common:windows": ["-Dselenium.skiptest=false"], "//conditions:default": ["-Dselenium.skiptest=true"], }), "tags": _COMMON_TAGS + ["exclusive", "ie"], }, "safari": { "deps": ["//java/client/src/org/openqa/selenium/safari"], "jvm_flags": ["-Dselenium.browser=safari"] + select({ "//common:macos": ["-Dselenium.skiptest=false"], "//conditions:default": ["-Dselenium.skiptest=true"], }), "tags": _COMMON_TAGS + ["exclusive", "safari"], }, } def selenium_test(name, test_class, size = "medium", browsers = None, **kwargs): if browsers == None: browsers = _BROWSERS.keys() if len(browsers) == 0: fail("At least one browser must be specified.") default_browser = _DEFAULT_BROWSER if _DEFAULT_BROWSER in browsers else browsers[0] tests = [] test_name = test_class.rpartition(".")[2] jvm_flags = kwargs["jvm_flags"] if "jvm_flags" in kwargs else [] tags = kwargs["tags"] if "tags" in kwargs else [] stripped_args = dict(**kwargs) stripped_args.pop("jvm_flags", None) stripped_args.pop("tags", None) for browser in browsers: if not browser in _BROWSERS: fail("Unrecognized browser: " + browser) test = test_name if browser == default_browser else "%s-%s" % (test_name, browser) native.java_test( name = test, test_class = test_class, size = size, jvm_flags = _BROWSERS[browser]["jvm_flags"] + jvm_flags, tags = _BROWSERS[browser]["tags"] + tags, **stripped_args ) tests.append(test) if not "no-remote" in tags: data = kwargs["data"] if "data" in kwargs else [] stripped_args.pop("data", None) native.java_test( name = "%s-remote" % test, test_class = test_class, size = size, jvm_flags = _BROWSERS[browser]["jvm_flags"] + jvm_flags + [ "-Dselenium.browser.remote=true", "-Dselenium.browser.remote.path=$(location //java/server/src/org/openqa/selenium/grid:selenium_server_deploy.jar)", ], tags = _BROWSERS[browser]["tags"] + tags + ["remote"], data = data + [ "//java/server/src/org/openqa/selenium/grid:selenium_server_deploy.jar", ], **stripped_args ) tests.append("%s-remote" % test) native.test_suite(name = "%s-all" % test_name, tests = tests, tags = ["manual"])
_default_browser = 'firefox' _common_tags = ['browser-test', 'no-sandbox', 'requires-network'] _browsers = {'chrome': {'deps': ['//java/client/src/org/openqa/selenium/chrome'], 'jvm_flags': ['-Dselenium.browser=chrome'], 'tags': _COMMON_TAGS + ['chrome']}, 'edge': {'deps': ['//java/client/src/org/openqa/selenium/edge'], 'jvm_flags': ['-Dselenium.browser=edge'], 'tags': _COMMON_TAGS + ['edge']}, 'edgehtml': {'deps': ['//java/client/src/org/openqa/selenium/edgehtml'], 'jvm_flags': ['-Dselenium.browser=edgehtml'] + select({'//common:windows': ['-Dselenium.skiptest=false'], '//conditions:default': ['-Dselenium.skiptest=true']}), 'tags': _COMMON_TAGS + ['exclusive', 'edgehtml']}, 'firefox': {'deps': ['//java/client/src/org/openqa/selenium/firefox'], 'jvm_flags': ['-Dselenium.browser=ff'], 'tags': _COMMON_TAGS + ['firefox']}, 'ie': {'deps': ['//java/client/src/org/openqa/selenium/ie'], 'jvm_flags': ['-Dselenium.browser=ie'] + select({'//common:windows': ['-Dselenium.skiptest=false'], '//conditions:default': ['-Dselenium.skiptest=true']}), 'tags': _COMMON_TAGS + ['exclusive', 'ie']}, 'safari': {'deps': ['//java/client/src/org/openqa/selenium/safari'], 'jvm_flags': ['-Dselenium.browser=safari'] + select({'//common:macos': ['-Dselenium.skiptest=false'], '//conditions:default': ['-Dselenium.skiptest=true']}), 'tags': _COMMON_TAGS + ['exclusive', 'safari']}} def selenium_test(name, test_class, size='medium', browsers=None, **kwargs): if browsers == None: browsers = _BROWSERS.keys() if len(browsers) == 0: fail('At least one browser must be specified.') default_browser = _DEFAULT_BROWSER if _DEFAULT_BROWSER in browsers else browsers[0] tests = [] test_name = test_class.rpartition('.')[2] jvm_flags = kwargs['jvm_flags'] if 'jvm_flags' in kwargs else [] tags = kwargs['tags'] if 'tags' in kwargs else [] stripped_args = dict(**kwargs) stripped_args.pop('jvm_flags', None) stripped_args.pop('tags', None) for browser in browsers: if not browser in _BROWSERS: fail('Unrecognized browser: ' + browser) test = test_name if browser == default_browser else '%s-%s' % (test_name, browser) native.java_test(name=test, test_class=test_class, size=size, jvm_flags=_BROWSERS[browser]['jvm_flags'] + jvm_flags, tags=_BROWSERS[browser]['tags'] + tags, **stripped_args) tests.append(test) if not 'no-remote' in tags: data = kwargs['data'] if 'data' in kwargs else [] stripped_args.pop('data', None) native.java_test(name='%s-remote' % test, test_class=test_class, size=size, jvm_flags=_BROWSERS[browser]['jvm_flags'] + jvm_flags + ['-Dselenium.browser.remote=true', '-Dselenium.browser.remote.path=$(location //java/server/src/org/openqa/selenium/grid:selenium_server_deploy.jar)'], tags=_BROWSERS[browser]['tags'] + tags + ['remote'], data=data + ['//java/server/src/org/openqa/selenium/grid:selenium_server_deploy.jar'], **stripped_args) tests.append('%s-remote' % test) native.test_suite(name='%s-all' % test_name, tests=tests, tags=['manual'])
#!/usr/bin/env python3 # encoding: utf-8 # like itertools.zip_longest, but with no fillvalue # written for https://github.com/erikrose/more-itertools/pull/240#issuecomment-441513474 def zip(*iterables): iterators = list(map(iter, iterables)) while True: to_yield = _build_zipped_tuple(iterators) if not to_yield: return yield to_yield def _build_zipped_tuple(iterables): vals = [] for iterable in iterables: try: vals.append(next(iterable)) except StopIteration: break return tuple(vals) if __name__ == '__main__': for xs in zip((1, 2, 3), (1, 2), (1,)): print(xs)
def zip(*iterables): iterators = list(map(iter, iterables)) while True: to_yield = _build_zipped_tuple(iterators) if not to_yield: return yield to_yield def _build_zipped_tuple(iterables): vals = [] for iterable in iterables: try: vals.append(next(iterable)) except StopIteration: break return tuple(vals) if __name__ == '__main__': for xs in zip((1, 2, 3), (1, 2), (1,)): print(xs)
# # PySNMP MIB module Nortel-Magellan-Passport-BgpMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-BgpMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:17:03 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") ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection, SingleValueConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection", "SingleValueConstraint", "ValueSizeConstraint") vrIp, vrIpIndex = mibBuilder.importSymbols("Nortel-Magellan-Passport-IpMIB", "vrIp", "vrIpIndex") Counter32, DisplayString, StorageType, Gauge32, Unsigned32, Integer32, RowStatus = mibBuilder.importSymbols("Nortel-Magellan-Passport-StandardTextualConventionsMIB", "Counter32", "DisplayString", "StorageType", "Gauge32", "Unsigned32", "Integer32", "RowStatus") HexString, NonReplicated, Hex, AsciiString, IntegerSequence = mibBuilder.importSymbols("Nortel-Magellan-Passport-TextualConventionsMIB", "HexString", "NonReplicated", "Hex", "AsciiString", "IntegerSequence") passportMIBs, = mibBuilder.importSymbols("Nortel-Magellan-Passport-UsefulDefinitionsMIB", "passportMIBs") vrIndex, = mibBuilder.importSymbols("Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, MibIdentifier, iso, TimeTicks, ObjectIdentity, ModuleIdentity, Gauge32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, Unsigned32, Bits, Counter64, NotificationType, IpAddress = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "MibIdentifier", "iso", "TimeTicks", "ObjectIdentity", "ModuleIdentity", "Gauge32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "Unsigned32", "Bits", "Counter64", "NotificationType", "IpAddress") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") bgpMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141)) vrIpBgp = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21)) vrIpBgpRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1), ) if mibBuilder.loadTexts: vrIpBgpRowStatusTable.setStatus('mandatory') vrIpBgpRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpRowStatusEntry.setStatus('mandatory') vrIpBgpRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRowStatus.setStatus('mandatory') vrIpBgpComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpComponentName.setStatus('mandatory') vrIpBgpStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpStorageType.setStatus('mandatory') vrIpBgpIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: vrIpBgpIndex.setStatus('mandatory') vrIpBgpProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100), ) if mibBuilder.loadTexts: vrIpBgpProvTable.setStatus('mandatory') vrIpBgpProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpProvEntry.setStatus('mandatory') vrIpBgpBgpIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpBgpIdentifier.setStatus('mandatory') vrIpBgpLocalAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpLocalAs.setStatus('mandatory') vrIpBgpDefaultLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(144)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpDefaultLocalPreference.setStatus('mandatory') vrIpBgpDefaultMultiExitDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967294)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpDefaultMultiExitDisc.setStatus('mandatory') vrIpBgpRouteThrottleLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)).clone(250)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteThrottleLimit.setStatus('mandatory') vrIpBgpRouteThrottleInter = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 30)).clone(5)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteThrottleInter.setStatus('mandatory') vrIpBgpRouteReflector = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteReflector.setStatus('mandatory') vrIpBgpRouteReflectorCluster = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 8), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpRouteReflectorCluster.setStatus('mandatory') vrIpBgpOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101), ) if mibBuilder.loadTexts: vrIpBgpOperTable.setStatus('mandatory') vrIpBgpOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpOperEntry.setStatus('mandatory') vrIpBgpTableVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpTableVersion.setStatus('mandatory') vrIpBgpInMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpInMsgs.setStatus('mandatory') vrIpBgpInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpInErrors.setStatus('mandatory') vrIpBgpInErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpInErrorMsgs.setStatus('mandatory') vrIpBgpOutMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutMsgs.setStatus('mandatory') vrIpBgpOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutDiscards.setStatus('mandatory') vrIpBgpOutErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutErrorMsgs.setStatus('mandatory') vrIpBgpIndbSize = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbSize.setStatus('mandatory') vrIpBgpStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102), ) if mibBuilder.loadTexts: vrIpBgpStateTable.setStatus('mandatory') vrIpBgpStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpStateEntry.setStatus('mandatory') vrIpBgpAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAdminState.setStatus('mandatory') vrIpBgpOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOperationalState.setStatus('mandatory') vrIpBgpUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpUsageState.setStatus('mandatory') vrIpBgpAdminControlTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103), ) if mibBuilder.loadTexts: vrIpBgpAdminControlTable.setStatus('mandatory') vrIpBgpAdminControlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpAdminControlEntry.setStatus('mandatory') vrIpBgpSnmpAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3))).clone('up')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpSnmpAdminStatus.setStatus('mandatory') vrIpBgpOperStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106), ) if mibBuilder.loadTexts: vrIpBgpOperStatusTable.setStatus('mandatory') vrIpBgpOperStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex")) if mibBuilder.loadTexts: vrIpBgpOperStatusEntry.setStatus('mandatory') vrIpBgpSnmpOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("testing", 3))).clone('up')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpSnmpOperStatus.setStatus('mandatory') vrIpBgpPeer = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2)) vrIpBgpPeerRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpPeerRowStatusTable.setStatus('mandatory') vrIpBgpPeerRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerRowStatusEntry.setStatus('mandatory') vrIpBgpPeerRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerRowStatus.setStatus('mandatory') vrIpBgpPeerComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerComponentName.setStatus('mandatory') vrIpBgpPeerStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerStorageType.setStatus('mandatory') vrIpBgpPeerPeerAddressIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpPeerPeerAddressIndex.setStatus('mandatory') vrIpBgpPeerProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpPeerProvTable.setStatus('mandatory') vrIpBgpPeerProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerProvEntry.setStatus('mandatory') vrIpBgpPeerPeerAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerPeerAs.setStatus('mandatory') vrIpBgpPeerLocalAddressConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 2), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerLocalAddressConfigured.setStatus('mandatory') vrIpBgpPeerKeepAliveConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 21845)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerKeepAliveConfigured.setStatus('mandatory') vrIpBgpPeerHoldTimeConfigured = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 65535), )).clone(90)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerHoldTimeConfigured.setStatus('mandatory') vrIpBgpPeerConnectRetryTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(120)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerConnectRetryTime.setStatus('mandatory') vrIpBgpPeerMinAsOrigTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(15)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerMinAsOrigTime.setStatus('mandatory') vrIpBgpPeerMinRouteAdvTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535)).clone(30)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerMinRouteAdvTime.setStatus('mandatory') vrIpBgpPeerDefaultInAggMed = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967295)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerDefaultInAggMed.setStatus('mandatory') vrIpBgpPeerIsRouteReflectorClient = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("true", 1), ("false", 2))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpPeerIsRouteReflectorClient.setStatus('mandatory') vrIpBgpPeerStateTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11), ) if mibBuilder.loadTexts: vrIpBgpPeerStateTable.setStatus('mandatory') vrIpBgpPeerStateEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerStateEntry.setStatus('mandatory') vrIpBgpPeerAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("locked", 0), ("unlocked", 1), ("shuttingDown", 2))).clone('unlocked')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerAdminState.setStatus('mandatory') vrIpBgpPeerOperationalState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1))).clone(namedValues=NamedValues(("disabled", 0), ("enabled", 1))).clone('disabled')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOperationalState.setStatus('mandatory') vrIpBgpPeerUsageState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("idle", 0), ("active", 1), ("busy", 2))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerUsageState.setStatus('mandatory') vrIpBgpPeerOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12), ) if mibBuilder.loadTexts: vrIpBgpPeerOperTable.setStatus('mandatory') vrIpBgpPeerOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpPeerPeerAddressIndex")) if mibBuilder.loadTexts: vrIpBgpPeerOperEntry.setStatus('mandatory') vrIpBgpPeerConnectionState = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("idle", 1), ("connect", 2), ("active", 3), ("openSent", 4), ("openConfirm", 5), ("established", 6))).clone('idle')).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerConnectionState.setStatus('mandatory') vrIpBgpPeerBgpIdentifier = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 4), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerBgpIdentifier.setStatus('mandatory') vrIpBgpPeerVersionNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerVersionNegotiated.setStatus('mandatory') vrIpBgpPeerHoldTimeNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 6), Unsigned32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(3, 65535), ))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerHoldTimeNegotiated.setStatus('mandatory') vrIpBgpPeerKeepAliveNegotiated = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 21845))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerKeepAliveNegotiated.setStatus('mandatory') vrIpBgpPeerLocalAddressUsed = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 8), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerLocalAddressUsed.setStatus('mandatory') vrIpBgpPeerLocalPort = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerLocalPort.setStatus('mandatory') vrIpBgpPeerRemotePort = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerRemotePort.setStatus('mandatory') vrIpBgpPeerLastError = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 11), HexString().subtype(subtypeSpec=ValueSizeConstraint(2, 2)).setFixedLength(2)).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerLastError.setStatus('mandatory') vrIpBgpPeerConnectionEstablishedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 12), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerConnectionEstablishedTime.setStatus('mandatory') vrIpBgpPeerConnectionEstablishedTransitions = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerConnectionEstablishedTransitions.setStatus('mandatory') vrIpBgpPeerInUpdateElapsedTime = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 14), Gauge32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInUpdateElapsedTime.setStatus('mandatory') vrIpBgpPeerInMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInMsgs.setStatus('mandatory') vrIpBgpPeerInUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInUpdates.setStatus('mandatory') vrIpBgpPeerInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 17), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInErrors.setStatus('mandatory') vrIpBgpPeerInErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 18), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInErrorMsgs.setStatus('mandatory') vrIpBgpPeerOutMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 19), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutMsgs.setStatus('mandatory') vrIpBgpPeerOutUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 20), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutUpdates.setStatus('mandatory') vrIpBgpPeerOutDiscards = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 21), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutDiscards.setStatus('mandatory') vrIpBgpPeerOutErrorMsgs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 22), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerOutErrorMsgs.setStatus('mandatory') vrIpBgpPeerInRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 23), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpPeerInRoutes.setStatus('mandatory') vrIpBgpImport = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3)) vrIpBgpImportRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1), ) if mibBuilder.loadTexts: vrIpBgpImportRowStatusTable.setStatus('mandatory') vrIpBgpImportRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex")) if mibBuilder.loadTexts: vrIpBgpImportRowStatusEntry.setStatus('mandatory') vrIpBgpImportRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportRowStatus.setStatus('mandatory') vrIpBgpImportComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportComponentName.setStatus('mandatory') vrIpBgpImportStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportStorageType.setStatus('mandatory') vrIpBgpImportIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpImportIndex.setStatus('mandatory') vrIpBgpImportProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10), ) if mibBuilder.loadTexts: vrIpBgpImportProvTable.setStatus('mandatory') vrIpBgpImportProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex")) if mibBuilder.loadTexts: vrIpBgpImportProvEntry.setStatus('mandatory') vrIpBgpImportPeerAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportPeerAs.setStatus('mandatory') vrIpBgpImportPeerIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 2), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportPeerIpAddress.setStatus('mandatory') vrIpBgpImportOriginAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportOriginAs.setStatus('mandatory') vrIpBgpImportOriginProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2, 3))).clone(namedValues=NamedValues(("any", 0), ("igp", 1), ("egp", 2), ("incomplete", 3))).clone('any')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportOriginProtocol.setStatus('mandatory') vrIpBgpImportUsageFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("use", 1), ("ignore", 2), ("exclude", 3))).clone('use')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportUsageFlag.setStatus('mandatory') vrIpBgpImportLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportLocalPreference.setStatus('mandatory') vrIpBgpImportPreferredOver = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(6, 70))).clone(namedValues=NamedValues(("overIntOspf", 6), ("underIntOspf", 70))).clone('underIntOspf')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportPreferredOver.setStatus('mandatory') vrIpBgpImportAsPathExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 8), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportAsPathExpression.setStatus('mandatory') vrIpBgpImportCommunityExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 9), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportCommunityExpression.setStatus('mandatory') vrIpBgpImportExpressPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportExpressPreference.setStatus('mandatory') vrIpBgpImportAppendCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportAppendCommunity.setStatus('mandatory') vrIpBgpImportNet = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2)) vrIpBgpImportNetRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpImportNetRowStatusTable.setStatus('mandatory') vrIpBgpImportNetRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportNetIndex")) if mibBuilder.loadTexts: vrIpBgpImportNetRowStatusEntry.setStatus('mandatory') vrIpBgpImportNetRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportNetRowStatus.setStatus('mandatory') vrIpBgpImportNetComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportNetComponentName.setStatus('mandatory') vrIpBgpImportNetStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpImportNetStorageType.setStatus('mandatory') vrIpBgpImportNetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpImportNetIndex.setStatus('mandatory') vrIpBgpImportNetProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpImportNetProvTable.setStatus('mandatory') vrIpBgpImportNetProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpImportNetIndex")) if mibBuilder.loadTexts: vrIpBgpImportNetProvEntry.setStatus('mandatory') vrIpBgpImportNetPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportNetPrefix.setStatus('mandatory') vrIpBgpImportNetLength = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpImportNetLength.setStatus('mandatory') vrIpBgpExport = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4)) vrIpBgpExportRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1), ) if mibBuilder.loadTexts: vrIpBgpExportRowStatusTable.setStatus('mandatory') vrIpBgpExportRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex")) if mibBuilder.loadTexts: vrIpBgpExportRowStatusEntry.setStatus('mandatory') vrIpBgpExportRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportRowStatus.setStatus('mandatory') vrIpBgpExportComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportComponentName.setStatus('mandatory') vrIpBgpExportStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportStorageType.setStatus('mandatory') vrIpBgpExportIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpExportIndex.setStatus('mandatory') vrIpBgpExportProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10), ) if mibBuilder.loadTexts: vrIpBgpExportProvTable.setStatus('mandatory') vrIpBgpExportProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex")) if mibBuilder.loadTexts: vrIpBgpExportProvEntry.setStatus('mandatory') vrIpBgpExportPeerAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportPeerAs.setStatus('mandatory') vrIpBgpExportPeerIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 2), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportPeerIpAddress.setStatus('mandatory') vrIpBgpExportProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("all", 1), ("egp", 2), ("rip", 3), ("ospfInternal", 4), ("ospfExternal", 5), ("staticLocal", 6), ("staticRemote", 7), ("bgpInternal", 8), ("bgpExternal", 9))).clone('all')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportProtocol.setStatus('mandatory') vrIpBgpExportEgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportEgpAsId.setStatus('mandatory') vrIpBgpExportBgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportBgpAsId.setStatus('mandatory') vrIpBgpExportOspfTag = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 6), Hex().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967295)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportOspfTag.setStatus('mandatory') vrIpBgpExportRipInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 7), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportRipInterface.setStatus('mandatory') vrIpBgpExportRipNeighbor = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 8), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportRipNeighbor.setStatus('mandatory') vrIpBgpExportAdvertiseStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("send", 1), ("block", 2))).clone('send')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportAdvertiseStatus.setStatus('mandatory') vrIpBgpExportMultiExitDisc = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportMultiExitDisc.setStatus('mandatory') vrIpBgpExportSendMultiExitDiscToEbgp = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("false", 1), ("true", 2))).clone('false')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportSendMultiExitDiscToEbgp.setStatus('mandatory') vrIpBgpExportAsPathExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 12), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportAsPathExpression.setStatus('mandatory') vrIpBgpExportCommunityExpression = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportCommunityExpression.setStatus('mandatory') vrIpBgpExportExpressPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 14), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportExpressPreference.setStatus('mandatory') vrIpBgpExportSendCommunity = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 15), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportSendCommunity.setStatus('mandatory') vrIpBgpExportInsertDummyAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 200), IntegerSequence()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportInsertDummyAs.setStatus('mandatory') vrIpBgpExportNet = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2)) vrIpBgpExportNetRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpExportNetRowStatusTable.setStatus('mandatory') vrIpBgpExportNetRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportNetIndex")) if mibBuilder.loadTexts: vrIpBgpExportNetRowStatusEntry.setStatus('mandatory') vrIpBgpExportNetRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportNetRowStatus.setStatus('mandatory') vrIpBgpExportNetComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportNetComponentName.setStatus('mandatory') vrIpBgpExportNetStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpExportNetStorageType.setStatus('mandatory') vrIpBgpExportNetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpExportNetIndex.setStatus('mandatory') vrIpBgpExportNetProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpExportNetProvTable.setStatus('mandatory') vrIpBgpExportNetProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpExportNetIndex")) if mibBuilder.loadTexts: vrIpBgpExportNetProvEntry.setStatus('mandatory') vrIpBgpExportNetPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportNetPrefix.setStatus('mandatory') vrIpBgpExportNetLength = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpExportNetLength.setStatus('mandatory') vrIpBgpAs = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5)) vrIpBgpAsRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1), ) if mibBuilder.loadTexts: vrIpBgpAsRowStatusTable.setStatus('mandatory') vrIpBgpAsRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAsIndex")) if mibBuilder.loadTexts: vrIpBgpAsRowStatusEntry.setStatus('mandatory') vrIpBgpAsRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAsRowStatus.setStatus('mandatory') vrIpBgpAsComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAsComponentName.setStatus('mandatory') vrIpBgpAsStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAsStorageType.setStatus('mandatory') vrIpBgpAsIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpAsIndex.setStatus('mandatory') vrIpBgpAsProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10), ) if mibBuilder.loadTexts: vrIpBgpAsProvTable.setStatus('mandatory') vrIpBgpAsProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAsIndex")) if mibBuilder.loadTexts: vrIpBgpAsProvEntry.setStatus('mandatory') vrIpBgpAsWeight = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 255)).clone(128)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAsWeight.setStatus('mandatory') vrIpBgpAggregate = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6)) vrIpBgpAggregateRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1), ) if mibBuilder.loadTexts: vrIpBgpAggregateRowStatusTable.setStatus('mandatory') vrIpBgpAggregateRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregatePrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateLengthIndex")) if mibBuilder.loadTexts: vrIpBgpAggregateRowStatusEntry.setStatus('mandatory') vrIpBgpAggregateRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateRowStatus.setStatus('mandatory') vrIpBgpAggregateComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateComponentName.setStatus('mandatory') vrIpBgpAggregateStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateStorageType.setStatus('mandatory') vrIpBgpAggregatePrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpAggregatePrefixIndex.setStatus('mandatory') vrIpBgpAggregateLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpAggregateLengthIndex.setStatus('mandatory') vrIpBgpAggregateNet = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2)) vrIpBgpAggregateNetRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1), ) if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatusTable.setStatus('mandatory') vrIpBgpAggregateNetRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregatePrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateNetIndex")) if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatusEntry.setStatus('mandatory') vrIpBgpAggregateNetRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatus.setStatus('mandatory') vrIpBgpAggregateNetComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateNetComponentName.setStatus('mandatory') vrIpBgpAggregateNetStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpAggregateNetStorageType.setStatus('mandatory') vrIpBgpAggregateNetIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 10), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpAggregateNetIndex.setStatus('mandatory') vrIpBgpAggregateNetProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10), ) if mibBuilder.loadTexts: vrIpBgpAggregateNetProvTable.setStatus('mandatory') vrIpBgpAggregateNetProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregatePrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpAggregateNetIndex")) if mibBuilder.loadTexts: vrIpBgpAggregateNetProvEntry.setStatus('mandatory') vrIpBgpAggregateNetPrefix = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 1), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetPrefix.setStatus('mandatory') vrIpBgpAggregateNetLength = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetLength.setStatus('mandatory') vrIpBgpAggregateNetProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=NamedValues(("all", 1), ("egp", 2), ("rip", 3), ("ospfInternal", 4), ("ospfExternal", 5), ("staticLocal", 6), ("staticRemote", 7), ("bgpInternal", 8), ("bgpExternal", 9))).clone('all')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetProtocol.setStatus('mandatory') vrIpBgpAggregateNetEgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetEgpAsId.setStatus('mandatory') vrIpBgpAggregateNetBgpAsId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetBgpAsId.setStatus('mandatory') vrIpBgpAggregateNetOspfTag = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 6), Hex().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295)).clone(4294967295)).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetOspfTag.setStatus('mandatory') vrIpBgpAggregateNetRipInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 7), IpAddress().clone(hexValue="00000000")).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetRipInterface.setStatus('mandatory') vrIpBgpAggregateNetAction = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("aggregate", 1), ("advertise", 2))).clone('aggregate')).setMaxAccess("readwrite") if mibBuilder.loadTexts: vrIpBgpAggregateNetAction.setStatus('mandatory') vrIpBgpIndb = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7)) vrIpBgpIndbRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1), ) if mibBuilder.loadTexts: vrIpBgpIndbRowStatusTable.setStatus('mandatory') vrIpBgpIndbRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpIndbRowStatusEntry.setStatus('mandatory') vrIpBgpIndbRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbRowStatus.setStatus('mandatory') vrIpBgpIndbComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbComponentName.setStatus('mandatory') vrIpBgpIndbStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbStorageType.setStatus('mandatory') vrIpBgpIndbPrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpIndbPrefixIndex.setStatus('mandatory') vrIpBgpIndbLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpIndbLengthIndex.setStatus('mandatory') vrIpBgpIndbPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 12), IpAddress()) if mibBuilder.loadTexts: vrIpBgpIndbPeerIndex.setStatus('mandatory') vrIpBgpIndbOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10), ) if mibBuilder.loadTexts: vrIpBgpIndbOperTable.setStatus('mandatory') vrIpBgpIndbOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpIndbOperEntry.setStatus('mandatory') vrIpBgpIndbOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("igp", 1), ("egp", 2), ("incomplete", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbOrigin.setStatus('mandatory') vrIpBgpIndbInLocaldb = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("false", 1), ("true", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbInLocaldb.setStatus('mandatory') vrIpBgpIndbNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 6), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbNextHop.setStatus('mandatory') vrIpBgpIndbLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbLocalPreference.setStatus('mandatory') vrIpBgpIndbCalcLocalPref = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbCalcLocalPref.setStatus('mandatory') vrIpBgpIndbMultiExitDiscriminator = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbMultiExitDiscriminator.setStatus('mandatory') vrIpBgpIndbAtomicAggregate = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lessSpecificRouteNotSelected", 1), ("lessSpecificRouteSelected", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAtomicAggregate.setStatus('mandatory') vrIpBgpIndbAggregatorAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAggregatorAs.setStatus('mandatory') vrIpBgpIndbAggregatorAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 12), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAggregatorAddr.setStatus('mandatory') vrIpBgpIndbAsPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(2, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAsPath.setStatus('mandatory') vrIpBgpIndbUnknownAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 14), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbUnknownAttributes.setStatus('mandatory') vrIpBgpIndbCommunityPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 15), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbCommunityPath.setStatus('mandatory') vrIpBgpIndbAsOriginatorId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 16), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbAsOriginatorId.setStatus('mandatory') vrIpBgpIndbRrClusterListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798), ) if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListTable.setStatus('mandatory') vrIpBgpIndbRrClusterListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbPeerIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndbRrClusterListValue")) if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListEntry.setStatus('mandatory') vrIpBgpIndbRrClusterListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListValue.setStatus('mandatory') vrIpBgpLocaldb = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8)) vrIpBgpLocaldbRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1), ) if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatusTable.setStatus('mandatory') vrIpBgpLocaldbRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatusEntry.setStatus('mandatory') vrIpBgpLocaldbRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatus.setStatus('mandatory') vrIpBgpLocaldbComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbComponentName.setStatus('mandatory') vrIpBgpLocaldbStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbStorageType.setStatus('mandatory') vrIpBgpLocaldbPrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpLocaldbPrefixIndex.setStatus('mandatory') vrIpBgpLocaldbLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpLocaldbLengthIndex.setStatus('mandatory') vrIpBgpLocaldbPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 12), IpAddress()) if mibBuilder.loadTexts: vrIpBgpLocaldbPeerIndex.setStatus('mandatory') vrIpBgpLocaldbOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10), ) if mibBuilder.loadTexts: vrIpBgpLocaldbOperTable.setStatus('mandatory') vrIpBgpLocaldbOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpLocaldbOperEntry.setStatus('mandatory') vrIpBgpLocaldbOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("igp", 1), ("egp", 2), ("incomplete", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbOrigin.setStatus('mandatory') vrIpBgpLocaldbNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbNextHop.setStatus('mandatory') vrIpBgpLocaldbLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbLocalPreference.setStatus('mandatory') vrIpBgpLocaldbMultiExitDiscriminator = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbMultiExitDiscriminator.setStatus('mandatory') vrIpBgpLocaldbAtomicAggregate = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lessSpecificRouteNotSelected", 1), ("lessSpecificRouteSelected", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAtomicAggregate.setStatus('mandatory') vrIpBgpLocaldbAggregatorAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAggregatorAs.setStatus('mandatory') vrIpBgpLocaldbAggregatorAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 10), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAggregatorAddr.setStatus('mandatory') vrIpBgpLocaldbAsPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 11), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(2, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAsPath.setStatus('mandatory') vrIpBgpLocaldbUnknownAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 12), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbUnknownAttributes.setStatus('mandatory') vrIpBgpLocaldbCommunityPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbCommunityPath.setStatus('mandatory') vrIpBgpLocaldbAsOriginatorId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 14), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbAsOriginatorId.setStatus('mandatory') vrIpBgpLocaldbRrClusterListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797), ) if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListTable.setStatus('mandatory') vrIpBgpLocaldbRrClusterListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbPeerIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpLocaldbRrClusterListValue")) if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListEntry.setStatus('mandatory') vrIpBgpLocaldbRrClusterListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListValue.setStatus('mandatory') vrIpBgpOutdb = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9)) vrIpBgpOutdbRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1), ) if mibBuilder.loadTexts: vrIpBgpOutdbRowStatusTable.setStatus('mandatory') vrIpBgpOutdbRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpOutdbRowStatusEntry.setStatus('mandatory') vrIpBgpOutdbRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbRowStatus.setStatus('mandatory') vrIpBgpOutdbComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbComponentName.setStatus('mandatory') vrIpBgpOutdbStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbStorageType.setStatus('mandatory') vrIpBgpOutdbPrefixIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 10), IpAddress()) if mibBuilder.loadTexts: vrIpBgpOutdbPrefixIndex.setStatus('mandatory') vrIpBgpOutdbLengthIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 11), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpOutdbLengthIndex.setStatus('mandatory') vrIpBgpOutdbPeerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 12), IpAddress()) if mibBuilder.loadTexts: vrIpBgpOutdbPeerIndex.setStatus('mandatory') vrIpBgpOutdbOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10), ) if mibBuilder.loadTexts: vrIpBgpOutdbOperTable.setStatus('mandatory') vrIpBgpOutdbOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPeerIndex")) if mibBuilder.loadTexts: vrIpBgpOutdbOperEntry.setStatus('mandatory') vrIpBgpOutdbOrigin = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("igp", 1), ("egp", 2), ("incomplete", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbOrigin.setStatus('mandatory') vrIpBgpOutdbNextHop = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 5), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbNextHop.setStatus('mandatory') vrIpBgpOutdbLocalPreference = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 6), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbLocalPreference.setStatus('mandatory') vrIpBgpOutdbMultiExitDiscriminator = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbMultiExitDiscriminator.setStatus('mandatory') vrIpBgpOutdbAtomicAggregate = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("lessSpecificRouteNotSelected", 1), ("lessSpecificRouteSelected", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAtomicAggregate.setStatus('mandatory') vrIpBgpOutdbAggregatorAs = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 9), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAggregatorAs.setStatus('mandatory') vrIpBgpOutdbAggregatorAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 10), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAggregatorAddr.setStatus('mandatory') vrIpBgpOutdbAsPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 11), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(2, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAsPath.setStatus('mandatory') vrIpBgpOutdbUnknownAttributes = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 12), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbUnknownAttributes.setStatus('mandatory') vrIpBgpOutdbCommunityPath = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 13), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 255))).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbCommunityPath.setStatus('mandatory') vrIpBgpOutdbAsOriginatorId = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 14), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbAsOriginatorId.setStatus('mandatory') vrIpBgpOutdbRrClusterListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799), ) if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListTable.setStatus('mandatory') vrIpBgpOutdbRrClusterListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-VirtualRouterMIB", "vrIndex"), (0, "Nortel-Magellan-Passport-IpMIB", "vrIpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPrefixIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbLengthIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbPeerIndex"), (0, "Nortel-Magellan-Passport-BgpMIB", "vrIpBgpOutdbRrClusterListValue")) if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListEntry.setStatus('mandatory') vrIpBgpOutdbRrClusterListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799, 1, 1), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListValue.setStatus('mandatory') bgpGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1)) bgpGroupBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5)) bgpGroupBE01 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5, 2)) bgpGroupBE01A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5, 2, 2)) bgpCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3)) bgpCapabilitiesBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5)) bgpCapabilitiesBE01 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5, 2)) bgpCapabilitiesBE01A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5, 2, 2)) mibBuilder.exportSymbols("Nortel-Magellan-Passport-BgpMIB", vrIpBgpAggregateNetRowStatusTable=vrIpBgpAggregateNetRowStatusTable, vrIpBgpPeerBgpIdentifier=vrIpBgpPeerBgpIdentifier, vrIpBgpProvTable=vrIpBgpProvTable, vrIpBgpPeerRowStatus=vrIpBgpPeerRowStatus, vrIpBgpOutErrorMsgs=vrIpBgpOutErrorMsgs, vrIpBgpExportNetIndex=vrIpBgpExportNetIndex, vrIpBgpOutdbRrClusterListTable=vrIpBgpOutdbRrClusterListTable, bgpCapabilitiesBE01A=bgpCapabilitiesBE01A, vrIpBgpPeerAdminState=vrIpBgpPeerAdminState, vrIpBgpAggregateNetOspfTag=vrIpBgpAggregateNetOspfTag, vrIpBgpIndbOperTable=vrIpBgpIndbOperTable, vrIpBgpAggregateNetStorageType=vrIpBgpAggregateNetStorageType, vrIpBgpAggregateNetLength=vrIpBgpAggregateNetLength, vrIpBgpPeerKeepAliveNegotiated=vrIpBgpPeerKeepAliveNegotiated, vrIpBgpImportUsageFlag=vrIpBgpImportUsageFlag, vrIpBgpImportLocalPreference=vrIpBgpImportLocalPreference, vrIpBgpExportAdvertiseStatus=vrIpBgpExportAdvertiseStatus, vrIpBgpIndbPeerIndex=vrIpBgpIndbPeerIndex, vrIpBgpOutdbRowStatusEntry=vrIpBgpOutdbRowStatusEntry, vrIpBgpImportOriginProtocol=vrIpBgpImportOriginProtocol, vrIpBgpImportNetStorageType=vrIpBgpImportNetStorageType, vrIpBgpLocaldbComponentName=vrIpBgpLocaldbComponentName, vrIpBgpLocaldbOperTable=vrIpBgpLocaldbOperTable, vrIpBgpImport=vrIpBgpImport, vrIpBgpExportRowStatusTable=vrIpBgpExportRowStatusTable, vrIpBgpOutdbNextHop=vrIpBgpOutdbNextHop, vrIpBgpPeerPeerAddressIndex=vrIpBgpPeerPeerAddressIndex, vrIpBgpIndbCommunityPath=vrIpBgpIndbCommunityPath, vrIpBgpPeerLocalAddressUsed=vrIpBgpPeerLocalAddressUsed, vrIpBgpStateTable=vrIpBgpStateTable, vrIpBgpPeerOperationalState=vrIpBgpPeerOperationalState, vrIpBgpAdminControlEntry=vrIpBgpAdminControlEntry, bgpGroupBE=bgpGroupBE, vrIpBgpSnmpAdminStatus=vrIpBgpSnmpAdminStatus, vrIpBgpOutdbRrClusterListValue=vrIpBgpOutdbRrClusterListValue, vrIpBgpAs=vrIpBgpAs, vrIpBgpImportNetRowStatusEntry=vrIpBgpImportNetRowStatusEntry, vrIpBgpLocaldbPrefixIndex=vrIpBgpLocaldbPrefixIndex, vrIpBgpLocaldbAggregatorAddr=vrIpBgpLocaldbAggregatorAddr, vrIpBgpOperStatusEntry=vrIpBgpOperStatusEntry, vrIpBgpRouteReflector=vrIpBgpRouteReflector, vrIpBgpExportNetRowStatusTable=vrIpBgpExportNetRowStatusTable, vrIpBgpLocaldbPeerIndex=vrIpBgpLocaldbPeerIndex, vrIpBgpRouteThrottleLimit=vrIpBgpRouteThrottleLimit, vrIpBgpExportOspfTag=vrIpBgpExportOspfTag, vrIpBgpAsWeight=vrIpBgpAsWeight, vrIpBgpPeerPeerAs=vrIpBgpPeerPeerAs, vrIpBgpOutdbRowStatusTable=vrIpBgpOutdbRowStatusTable, vrIpBgpAsStorageType=vrIpBgpAsStorageType, vrIpBgpExportNetStorageType=vrIpBgpExportNetStorageType, vrIpBgpAggregateNetProvEntry=vrIpBgpAggregateNetProvEntry, vrIpBgpIndbAggregatorAs=vrIpBgpIndbAggregatorAs, vrIpBgpAsRowStatus=vrIpBgpAsRowStatus, vrIpBgpIndbAtomicAggregate=vrIpBgpIndbAtomicAggregate, vrIpBgpPeerOutErrorMsgs=vrIpBgpPeerOutErrorMsgs, vrIpBgpAggregateRowStatusTable=vrIpBgpAggregateRowStatusTable, vrIpBgpLocaldbMultiExitDiscriminator=vrIpBgpLocaldbMultiExitDiscriminator, bgpGroupBE01=bgpGroupBE01, vrIpBgpPeerStateTable=vrIpBgpPeerStateTable, vrIpBgpPeerProvTable=vrIpBgpPeerProvTable, vrIpBgpImportPeerIpAddress=vrIpBgpImportPeerIpAddress, vrIpBgpIndbInLocaldb=vrIpBgpIndbInLocaldb, vrIpBgpProvEntry=vrIpBgpProvEntry, vrIpBgpLocaldbLocalPreference=vrIpBgpLocaldbLocalPreference, vrIpBgpImportComponentName=vrIpBgpImportComponentName, vrIpBgpRouteReflectorCluster=vrIpBgpRouteReflectorCluster, vrIpBgpLocaldbNextHop=vrIpBgpLocaldbNextHop, vrIpBgpOperEntry=vrIpBgpOperEntry, vrIpBgpLocaldbStorageType=vrIpBgpLocaldbStorageType, vrIpBgpLocaldbAsPath=vrIpBgpLocaldbAsPath, vrIpBgpOutDiscards=vrIpBgpOutDiscards, vrIpBgpImportAppendCommunity=vrIpBgpImportAppendCommunity, vrIpBgpIndbSize=vrIpBgpIndbSize, vrIpBgpIndbRrClusterListEntry=vrIpBgpIndbRrClusterListEntry, vrIpBgpIndbNextHop=vrIpBgpIndbNextHop, vrIpBgpImportNetRowStatus=vrIpBgpImportNetRowStatus, vrIpBgpExportExpressPreference=vrIpBgpExportExpressPreference, vrIpBgpAdminState=vrIpBgpAdminState, vrIpBgpOperationalState=vrIpBgpOperationalState, vrIpBgpExportProvEntry=vrIpBgpExportProvEntry, vrIpBgpPeerHoldTimeConfigured=vrIpBgpPeerHoldTimeConfigured, vrIpBgpOutdbStorageType=vrIpBgpOutdbStorageType, vrIpBgpPeerInRoutes=vrIpBgpPeerInRoutes, vrIpBgpPeerConnectionEstablishedTime=vrIpBgpPeerConnectionEstablishedTime, vrIpBgpImportExpressPreference=vrIpBgpImportExpressPreference, vrIpBgpInErrors=vrIpBgpInErrors, vrIpBgpLocaldbLengthIndex=vrIpBgpLocaldbLengthIndex, vrIpBgpAggregateNetProtocol=vrIpBgpAggregateNetProtocol, vrIpBgpIndbUnknownAttributes=vrIpBgpIndbUnknownAttributes, vrIpBgpOutdbRrClusterListEntry=vrIpBgpOutdbRrClusterListEntry, vrIpBgpAggregateComponentName=vrIpBgpAggregateComponentName, vrIpBgpAsIndex=vrIpBgpAsIndex, vrIpBgpExportRowStatusEntry=vrIpBgpExportRowStatusEntry, vrIpBgpAggregateNetIndex=vrIpBgpAggregateNetIndex, vrIpBgpAsRowStatusTable=vrIpBgpAsRowStatusTable, vrIpBgpOutdb=vrIpBgpOutdb, vrIpBgpExportSendMultiExitDiscToEbgp=vrIpBgpExportSendMultiExitDiscToEbgp, vrIpBgpPeerOutMsgs=vrIpBgpPeerOutMsgs, vrIpBgpLocaldbAsOriginatorId=vrIpBgpLocaldbAsOriginatorId, vrIpBgpDefaultMultiExitDisc=vrIpBgpDefaultMultiExitDisc, vrIpBgp=vrIpBgp, vrIpBgpOutdbLengthIndex=vrIpBgpOutdbLengthIndex, vrIpBgpImportStorageType=vrIpBgpImportStorageType, vrIpBgpAggregateNetAction=vrIpBgpAggregateNetAction, vrIpBgpLocaldbRowStatusTable=vrIpBgpLocaldbRowStatusTable, vrIpBgpExportNetRowStatusEntry=vrIpBgpExportNetRowStatusEntry, vrIpBgpPeerRowStatusTable=vrIpBgpPeerRowStatusTable, vrIpBgpLocaldbUnknownAttributes=vrIpBgpLocaldbUnknownAttributes, vrIpBgpLocaldb=vrIpBgpLocaldb, vrIpBgpOutdbAsOriginatorId=vrIpBgpOutdbAsOriginatorId, vrIpBgpAsProvEntry=vrIpBgpAsProvEntry, vrIpBgpExportRowStatus=vrIpBgpExportRowStatus, vrIpBgpOutdbAggregatorAs=vrIpBgpOutdbAggregatorAs, vrIpBgpLocaldbRowStatus=vrIpBgpLocaldbRowStatus, bgpMIB=bgpMIB, vrIpBgpIndbAggregatorAddr=vrIpBgpIndbAggregatorAddr, vrIpBgpLocaldbRrClusterListTable=vrIpBgpLocaldbRrClusterListTable, vrIpBgpImportOriginAs=vrIpBgpImportOriginAs, vrIpBgpExportNetProvEntry=vrIpBgpExportNetProvEntry, vrIpBgpExportStorageType=vrIpBgpExportStorageType, vrIpBgpIndbOperEntry=vrIpBgpIndbOperEntry, vrIpBgpPeerDefaultInAggMed=vrIpBgpPeerDefaultInAggMed, vrIpBgpUsageState=vrIpBgpUsageState, vrIpBgpLocaldbRrClusterListEntry=vrIpBgpLocaldbRrClusterListEntry, vrIpBgpStorageType=vrIpBgpStorageType, vrIpBgpIndbRowStatusEntry=vrIpBgpIndbRowStatusEntry, vrIpBgpPeerMinAsOrigTime=vrIpBgpPeerMinAsOrigTime, vrIpBgpPeerVersionNegotiated=vrIpBgpPeerVersionNegotiated, vrIpBgpPeerOutUpdates=vrIpBgpPeerOutUpdates, vrIpBgpPeerOperEntry=vrIpBgpPeerOperEntry, vrIpBgpRowStatus=vrIpBgpRowStatus, vrIpBgpImportRowStatusTable=vrIpBgpImportRowStatusTable, vrIpBgpPeerUsageState=vrIpBgpPeerUsageState, vrIpBgpIndbComponentName=vrIpBgpIndbComponentName, vrIpBgpIndbAsPath=vrIpBgpIndbAsPath, vrIpBgpOutdbRowStatus=vrIpBgpOutdbRowStatus, vrIpBgpAggregateNetProvTable=vrIpBgpAggregateNetProvTable, bgpCapabilitiesBE01=bgpCapabilitiesBE01, vrIpBgpRouteThrottleInter=vrIpBgpRouteThrottleInter, vrIpBgpPeerIsRouteReflectorClient=vrIpBgpPeerIsRouteReflectorClient, vrIpBgpImportPeerAs=vrIpBgpImportPeerAs, vrIpBgpAggregate=vrIpBgpAggregate, vrIpBgpPeerStateEntry=vrIpBgpPeerStateEntry, vrIpBgpOutdbLocalPreference=vrIpBgpOutdbLocalPreference, vrIpBgpLocalAs=vrIpBgpLocalAs, vrIpBgpOutdbOperTable=vrIpBgpOutdbOperTable, vrIpBgpBgpIdentifier=vrIpBgpBgpIdentifier, vrIpBgpPeerRemotePort=vrIpBgpPeerRemotePort, vrIpBgpAggregateRowStatusEntry=vrIpBgpAggregateRowStatusEntry, vrIpBgpAggregateNetRowStatusEntry=vrIpBgpAggregateNetRowStatusEntry, vrIpBgpOutdbPeerIndex=vrIpBgpOutdbPeerIndex, vrIpBgpPeer=vrIpBgpPeer, vrIpBgpPeerOutDiscards=vrIpBgpPeerOutDiscards, vrIpBgpExportCommunityExpression=vrIpBgpExportCommunityExpression, vrIpBgpIndbRrClusterListValue=vrIpBgpIndbRrClusterListValue, vrIpBgpLocaldbAggregatorAs=vrIpBgpLocaldbAggregatorAs, vrIpBgpOutMsgs=vrIpBgpOutMsgs, vrIpBgpAggregateNetRowStatus=vrIpBgpAggregateNetRowStatus, vrIpBgpPeerInUpdates=vrIpBgpPeerInUpdates, vrIpBgpOperStatusTable=vrIpBgpOperStatusTable, vrIpBgpIndbCalcLocalPref=vrIpBgpIndbCalcLocalPref, vrIpBgpAsProvTable=vrIpBgpAsProvTable, vrIpBgpOutdbComponentName=vrIpBgpOutdbComponentName, vrIpBgpOutdbMultiExitDiscriminator=vrIpBgpOutdbMultiExitDiscriminator, vrIpBgpTableVersion=vrIpBgpTableVersion, vrIpBgpImportNetRowStatusTable=vrIpBgpImportNetRowStatusTable, vrIpBgpExportNet=vrIpBgpExportNet, bgpGroup=bgpGroup, vrIpBgpAggregateNetBgpAsId=vrIpBgpAggregateNetBgpAsId, vrIpBgpAsComponentName=vrIpBgpAsComponentName, vrIpBgpPeerComponentName=vrIpBgpPeerComponentName, vrIpBgpAggregatePrefixIndex=vrIpBgpAggregatePrefixIndex, vrIpBgpImportAsPathExpression=vrIpBgpImportAsPathExpression, vrIpBgpLocaldbOrigin=vrIpBgpLocaldbOrigin, vrIpBgpPeerInUpdateElapsedTime=vrIpBgpPeerInUpdateElapsedTime, vrIpBgpOutdbAsPath=vrIpBgpOutdbAsPath, vrIpBgpExportPeerAs=vrIpBgpExportPeerAs, vrIpBgpPeerInErrors=vrIpBgpPeerInErrors, vrIpBgpExportRipNeighbor=vrIpBgpExportRipNeighbor, vrIpBgpIndbRowStatusTable=vrIpBgpIndbRowStatusTable, vrIpBgpIndbOrigin=vrIpBgpIndbOrigin, vrIpBgpPeerLocalPort=vrIpBgpPeerLocalPort, vrIpBgpIndex=vrIpBgpIndex, vrIpBgpImportRowStatus=vrIpBgpImportRowStatus, vrIpBgpPeerOperTable=vrIpBgpPeerOperTable, vrIpBgpAggregateStorageType=vrIpBgpAggregateStorageType, vrIpBgpImportNet=vrIpBgpImportNet, vrIpBgpOutdbAtomicAggregate=vrIpBgpOutdbAtomicAggregate, vrIpBgpOutdbAggregatorAddr=vrIpBgpOutdbAggregatorAddr, vrIpBgpIndbStorageType=vrIpBgpIndbStorageType, vrIpBgpExportProvTable=vrIpBgpExportProvTable, vrIpBgpLocaldbRowStatusEntry=vrIpBgpLocaldbRowStatusEntry, vrIpBgpImportNetComponentName=vrIpBgpImportNetComponentName, vrIpBgpExportNetPrefix=vrIpBgpExportNetPrefix, vrIpBgpAdminControlTable=vrIpBgpAdminControlTable, vrIpBgpExport=vrIpBgpExport, vrIpBgpExportIndex=vrIpBgpExportIndex, vrIpBgpDefaultLocalPreference=vrIpBgpDefaultLocalPreference, vrIpBgpAggregateNetEgpAsId=vrIpBgpAggregateNetEgpAsId, vrIpBgpIndbLocalPreference=vrIpBgpIndbLocalPreference, vrIpBgpImportNetPrefix=vrIpBgpImportNetPrefix, vrIpBgpAggregateNetPrefix=vrIpBgpAggregateNetPrefix, vrIpBgpPeerStorageType=vrIpBgpPeerStorageType, vrIpBgpImportIndex=vrIpBgpImportIndex, vrIpBgpImportNetProvTable=vrIpBgpImportNetProvTable, vrIpBgpLocaldbOperEntry=vrIpBgpLocaldbOperEntry, vrIpBgpImportNetIndex=vrIpBgpImportNetIndex, vrIpBgpInMsgs=vrIpBgpInMsgs, vrIpBgpExportBgpAsId=vrIpBgpExportBgpAsId, vrIpBgpImportProvEntry=vrIpBgpImportProvEntry, vrIpBgpOutdbOperEntry=vrIpBgpOutdbOperEntry, vrIpBgpExportProtocol=vrIpBgpExportProtocol, vrIpBgpExportAsPathExpression=vrIpBgpExportAsPathExpression, vrIpBgpExportSendCommunity=vrIpBgpExportSendCommunity, vrIpBgpOutdbUnknownAttributes=vrIpBgpOutdbUnknownAttributes, vrIpBgpComponentName=vrIpBgpComponentName, vrIpBgpLocaldbCommunityPath=vrIpBgpLocaldbCommunityPath, bgpCapabilitiesBE=bgpCapabilitiesBE, vrIpBgpIndb=vrIpBgpIndb, vrIpBgpLocaldbRrClusterListValue=vrIpBgpLocaldbRrClusterListValue, vrIpBgpExportNetComponentName=vrIpBgpExportNetComponentName, vrIpBgpIndbMultiExitDiscriminator=vrIpBgpIndbMultiExitDiscriminator, vrIpBgpPeerHoldTimeNegotiated=vrIpBgpPeerHoldTimeNegotiated, vrIpBgpRowStatusTable=vrIpBgpRowStatusTable, vrIpBgpIndbAsOriginatorId=vrIpBgpIndbAsOriginatorId, vrIpBgpPeerConnectionState=vrIpBgpPeerConnectionState, vrIpBgpPeerProvEntry=vrIpBgpPeerProvEntry, vrIpBgpPeerLocalAddressConfigured=vrIpBgpPeerLocalAddressConfigured, vrIpBgpExportComponentName=vrIpBgpExportComponentName, vrIpBgpExportMultiExitDisc=vrIpBgpExportMultiExitDisc, vrIpBgpExportNetRowStatus=vrIpBgpExportNetRowStatus, vrIpBgpPeerInMsgs=vrIpBgpPeerInMsgs, vrIpBgpAggregateNetRipInterface=vrIpBgpAggregateNetRipInterface, vrIpBgpAggregateNet=vrIpBgpAggregateNet, vrIpBgpPeerLastError=vrIpBgpPeerLastError, vrIpBgpPeerInErrorMsgs=vrIpBgpPeerInErrorMsgs, vrIpBgpIndbLengthIndex=vrIpBgpIndbLengthIndex, vrIpBgpIndbRrClusterListTable=vrIpBgpIndbRrClusterListTable, vrIpBgpOutdbPrefixIndex=vrIpBgpOutdbPrefixIndex, vrIpBgpLocaldbAtomicAggregate=vrIpBgpLocaldbAtomicAggregate, vrIpBgpOutdbOrigin=vrIpBgpOutdbOrigin, vrIpBgpExportNetLength=vrIpBgpExportNetLength, vrIpBgpPeerKeepAliveConfigured=vrIpBgpPeerKeepAliveConfigured, vrIpBgpPeerConnectionEstablishedTransitions=vrIpBgpPeerConnectionEstablishedTransitions, vrIpBgpImportProvTable=vrIpBgpImportProvTable, vrIpBgpExportEgpAsId=vrIpBgpExportEgpAsId, vrIpBgpImportPreferredOver=vrIpBgpImportPreferredOver, vrIpBgpExportInsertDummyAs=vrIpBgpExportInsertDummyAs, vrIpBgpPeerConnectRetryTime=vrIpBgpPeerConnectRetryTime, vrIpBgpImportNetLength=vrIpBgpImportNetLength, vrIpBgpAggregateLengthIndex=vrIpBgpAggregateLengthIndex, vrIpBgpImportCommunityExpression=vrIpBgpImportCommunityExpression, vrIpBgpOutdbCommunityPath=vrIpBgpOutdbCommunityPath, vrIpBgpPeerMinRouteAdvTime=vrIpBgpPeerMinRouteAdvTime) mibBuilder.exportSymbols("Nortel-Magellan-Passport-BgpMIB", vrIpBgpAggregateRowStatus=vrIpBgpAggregateRowStatus, vrIpBgpIndbRowStatus=vrIpBgpIndbRowStatus, vrIpBgpImportRowStatusEntry=vrIpBgpImportRowStatusEntry, vrIpBgpRowStatusEntry=vrIpBgpRowStatusEntry, vrIpBgpImportNetProvEntry=vrIpBgpImportNetProvEntry, vrIpBgpStateEntry=vrIpBgpStateEntry, vrIpBgpOperTable=vrIpBgpOperTable, vrIpBgpInErrorMsgs=vrIpBgpInErrorMsgs, vrIpBgpExportPeerIpAddress=vrIpBgpExportPeerIpAddress, vrIpBgpPeerRowStatusEntry=vrIpBgpPeerRowStatusEntry, vrIpBgpExportNetProvTable=vrIpBgpExportNetProvTable, vrIpBgpAggregateNetComponentName=vrIpBgpAggregateNetComponentName, vrIpBgpIndbPrefixIndex=vrIpBgpIndbPrefixIndex, vrIpBgpSnmpOperStatus=vrIpBgpSnmpOperStatus, vrIpBgpExportRipInterface=vrIpBgpExportRipInterface, vrIpBgpAsRowStatusEntry=vrIpBgpAsRowStatusEntry, bgpCapabilities=bgpCapabilities, bgpGroupBE01A=bgpGroupBE01A)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, constraints_union, constraints_intersection, single_value_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueSizeConstraint') (vr_ip, vr_ip_index) = mibBuilder.importSymbols('Nortel-Magellan-Passport-IpMIB', 'vrIp', 'vrIpIndex') (counter32, display_string, storage_type, gauge32, unsigned32, integer32, row_status) = mibBuilder.importSymbols('Nortel-Magellan-Passport-StandardTextualConventionsMIB', 'Counter32', 'DisplayString', 'StorageType', 'Gauge32', 'Unsigned32', 'Integer32', 'RowStatus') (hex_string, non_replicated, hex, ascii_string, integer_sequence) = mibBuilder.importSymbols('Nortel-Magellan-Passport-TextualConventionsMIB', 'HexString', 'NonReplicated', 'Hex', 'AsciiString', 'IntegerSequence') (passport_mi_bs,) = mibBuilder.importSymbols('Nortel-Magellan-Passport-UsefulDefinitionsMIB', 'passportMIBs') (vr_index,) = mibBuilder.importSymbols('Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter32, mib_identifier, iso, time_ticks, object_identity, module_identity, gauge32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, unsigned32, bits, counter64, notification_type, ip_address) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'MibIdentifier', 'iso', 'TimeTicks', 'ObjectIdentity', 'ModuleIdentity', 'Gauge32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'Unsigned32', 'Bits', 'Counter64', 'NotificationType', 'IpAddress') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') bgp_mib = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141)) vr_ip_bgp = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21)) vr_ip_bgp_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1)) if mibBuilder.loadTexts: vrIpBgpRowStatusTable.setStatus('mandatory') vr_ip_bgp_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex')) if mibBuilder.loadTexts: vrIpBgpRowStatusEntry.setStatus('mandatory') vr_ip_bgp_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpRowStatus.setStatus('mandatory') vr_ip_bgp_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpComponentName.setStatus('mandatory') vr_ip_bgp_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpStorageType.setStatus('mandatory') vr_ip_bgp_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: vrIpBgpIndex.setStatus('mandatory') vr_ip_bgp_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100)) if mibBuilder.loadTexts: vrIpBgpProvTable.setStatus('mandatory') vr_ip_bgp_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex')) if mibBuilder.loadTexts: vrIpBgpProvEntry.setStatus('mandatory') vr_ip_bgp_bgp_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpBgpIdentifier.setStatus('mandatory') vr_ip_bgp_local_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpLocalAs.setStatus('mandatory') vr_ip_bgp_default_local_preference = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(144)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpDefaultLocalPreference.setStatus('mandatory') vr_ip_bgp_default_multi_exit_disc = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(4294967294)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpDefaultMultiExitDisc.setStatus('mandatory') vr_ip_bgp_route_throttle_limit = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 1000)).clone(250)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpRouteThrottleLimit.setStatus('mandatory') vr_ip_bgp_route_throttle_inter = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 30)).clone(5)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpRouteThrottleInter.setStatus('mandatory') vr_ip_bgp_route_reflector = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2))).clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpRouteReflector.setStatus('mandatory') vr_ip_bgp_route_reflector_cluster = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 100, 1, 8), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpRouteReflectorCluster.setStatus('mandatory') vr_ip_bgp_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101)) if mibBuilder.loadTexts: vrIpBgpOperTable.setStatus('mandatory') vr_ip_bgp_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex')) if mibBuilder.loadTexts: vrIpBgpOperEntry.setStatus('mandatory') vr_ip_bgp_table_version = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpTableVersion.setStatus('mandatory') vr_ip_bgp_in_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpInMsgs.setStatus('mandatory') vr_ip_bgp_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpInErrors.setStatus('mandatory') vr_ip_bgp_in_error_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpInErrorMsgs.setStatus('mandatory') vr_ip_bgp_out_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutMsgs.setStatus('mandatory') vr_ip_bgp_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutDiscards.setStatus('mandatory') vr_ip_bgp_out_error_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutErrorMsgs.setStatus('mandatory') vr_ip_bgp_indb_size = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 101, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbSize.setStatus('mandatory') vr_ip_bgp_state_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102)) if mibBuilder.loadTexts: vrIpBgpStateTable.setStatus('mandatory') vr_ip_bgp_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex')) if mibBuilder.loadTexts: vrIpBgpStateEntry.setStatus('mandatory') vr_ip_bgp_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('locked', 0), ('unlocked', 1), ('shuttingDown', 2))).clone('unlocked')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpAdminState.setStatus('mandatory') vr_ip_bgp_operational_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOperationalState.setStatus('mandatory') vr_ip_bgp_usage_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 102, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('idle', 0), ('active', 1), ('busy', 2))).clone('idle')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpUsageState.setStatus('mandatory') vr_ip_bgp_admin_control_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103)) if mibBuilder.loadTexts: vrIpBgpAdminControlTable.setStatus('mandatory') vr_ip_bgp_admin_control_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex')) if mibBuilder.loadTexts: vrIpBgpAdminControlEntry.setStatus('mandatory') vr_ip_bgp_snmp_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 103, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('testing', 3))).clone('up')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpSnmpAdminStatus.setStatus('mandatory') vr_ip_bgp_oper_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106)) if mibBuilder.loadTexts: vrIpBgpOperStatusTable.setStatus('mandatory') vr_ip_bgp_oper_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex')) if mibBuilder.loadTexts: vrIpBgpOperStatusEntry.setStatus('mandatory') vr_ip_bgp_snmp_oper_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 106, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('up', 1), ('down', 2), ('testing', 3))).clone('up')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpSnmpOperStatus.setStatus('mandatory') vr_ip_bgp_peer = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2)) vr_ip_bgp_peer_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1)) if mibBuilder.loadTexts: vrIpBgpPeerRowStatusTable.setStatus('mandatory') vr_ip_bgp_peer_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpPeerPeerAddressIndex')) if mibBuilder.loadTexts: vrIpBgpPeerRowStatusEntry.setStatus('mandatory') vr_ip_bgp_peer_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerRowStatus.setStatus('mandatory') vr_ip_bgp_peer_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerComponentName.setStatus('mandatory') vr_ip_bgp_peer_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerStorageType.setStatus('mandatory') vr_ip_bgp_peer_peer_address_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 1, 1, 10), ip_address()) if mibBuilder.loadTexts: vrIpBgpPeerPeerAddressIndex.setStatus('mandatory') vr_ip_bgp_peer_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10)) if mibBuilder.loadTexts: vrIpBgpPeerProvTable.setStatus('mandatory') vr_ip_bgp_peer_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpPeerPeerAddressIndex')) if mibBuilder.loadTexts: vrIpBgpPeerProvEntry.setStatus('mandatory') vr_ip_bgp_peer_peer_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerPeerAs.setStatus('mandatory') vr_ip_bgp_peer_local_address_configured = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 2), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerLocalAddressConfigured.setStatus('mandatory') vr_ip_bgp_peer_keep_alive_configured = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 21845)).clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerKeepAliveConfigured.setStatus('mandatory') vr_ip_bgp_peer_hold_time_configured = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 4), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 65535))).clone(90)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerHoldTimeConfigured.setStatus('mandatory') vr_ip_bgp_peer_connect_retry_time = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(120)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerConnectRetryTime.setStatus('mandatory') vr_ip_bgp_peer_min_as_orig_time = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(15)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerMinAsOrigTime.setStatus('mandatory') vr_ip_bgp_peer_min_route_adv_time = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 65535)).clone(30)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerMinRouteAdvTime.setStatus('mandatory') vr_ip_bgp_peer_default_in_agg_med = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(4294967295)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerDefaultInAggMed.setStatus('mandatory') vr_ip_bgp_peer_is_route_reflector_client = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 10, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('true', 1), ('false', 2))).clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpPeerIsRouteReflectorClient.setStatus('mandatory') vr_ip_bgp_peer_state_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11)) if mibBuilder.loadTexts: vrIpBgpPeerStateTable.setStatus('mandatory') vr_ip_bgp_peer_state_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpPeerPeerAddressIndex')) if mibBuilder.loadTexts: vrIpBgpPeerStateEntry.setStatus('mandatory') vr_ip_bgp_peer_admin_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('locked', 0), ('unlocked', 1), ('shuttingDown', 2))).clone('unlocked')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerAdminState.setStatus('mandatory') vr_ip_bgp_peer_operational_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1))).clone(namedValues=named_values(('disabled', 0), ('enabled', 1))).clone('disabled')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerOperationalState.setStatus('mandatory') vr_ip_bgp_peer_usage_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 11, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('idle', 0), ('active', 1), ('busy', 2))).clone('idle')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerUsageState.setStatus('mandatory') vr_ip_bgp_peer_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12)) if mibBuilder.loadTexts: vrIpBgpPeerOperTable.setStatus('mandatory') vr_ip_bgp_peer_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpPeerPeerAddressIndex')) if mibBuilder.loadTexts: vrIpBgpPeerOperEntry.setStatus('mandatory') vr_ip_bgp_peer_connection_state = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6))).clone(namedValues=named_values(('idle', 1), ('connect', 2), ('active', 3), ('openSent', 4), ('openConfirm', 5), ('established', 6))).clone('idle')).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerConnectionState.setStatus('mandatory') vr_ip_bgp_peer_bgp_identifier = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 4), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerBgpIdentifier.setStatus('mandatory') vr_ip_bgp_peer_version_negotiated = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerVersionNegotiated.setStatus('mandatory') vr_ip_bgp_peer_hold_time_negotiated = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 6), unsigned32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(3, 65535)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerHoldTimeNegotiated.setStatus('mandatory') vr_ip_bgp_peer_keep_alive_negotiated = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 21845))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerKeepAliveNegotiated.setStatus('mandatory') vr_ip_bgp_peer_local_address_used = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 8), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerLocalAddressUsed.setStatus('mandatory') vr_ip_bgp_peer_local_port = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerLocalPort.setStatus('mandatory') vr_ip_bgp_peer_remote_port = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerRemotePort.setStatus('mandatory') vr_ip_bgp_peer_last_error = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 11), hex_string().subtype(subtypeSpec=value_size_constraint(2, 2)).setFixedLength(2)).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerLastError.setStatus('mandatory') vr_ip_bgp_peer_connection_established_time = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 12), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerConnectionEstablishedTime.setStatus('mandatory') vr_ip_bgp_peer_connection_established_transitions = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerConnectionEstablishedTransitions.setStatus('mandatory') vr_ip_bgp_peer_in_update_elapsed_time = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 14), gauge32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerInUpdateElapsedTime.setStatus('mandatory') vr_ip_bgp_peer_in_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerInMsgs.setStatus('mandatory') vr_ip_bgp_peer_in_updates = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerInUpdates.setStatus('mandatory') vr_ip_bgp_peer_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 17), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerInErrors.setStatus('mandatory') vr_ip_bgp_peer_in_error_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 18), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerInErrorMsgs.setStatus('mandatory') vr_ip_bgp_peer_out_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 19), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerOutMsgs.setStatus('mandatory') vr_ip_bgp_peer_out_updates = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 20), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerOutUpdates.setStatus('mandatory') vr_ip_bgp_peer_out_discards = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 21), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerOutDiscards.setStatus('mandatory') vr_ip_bgp_peer_out_error_msgs = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 22), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerOutErrorMsgs.setStatus('mandatory') vr_ip_bgp_peer_in_routes = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 2, 12, 1, 23), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpPeerInRoutes.setStatus('mandatory') vr_ip_bgp_import = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3)) vr_ip_bgp_import_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1)) if mibBuilder.loadTexts: vrIpBgpImportRowStatusTable.setStatus('mandatory') vr_ip_bgp_import_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpImportIndex')) if mibBuilder.loadTexts: vrIpBgpImportRowStatusEntry.setStatus('mandatory') vr_ip_bgp_import_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportRowStatus.setStatus('mandatory') vr_ip_bgp_import_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpImportComponentName.setStatus('mandatory') vr_ip_bgp_import_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpImportStorageType.setStatus('mandatory') vr_ip_bgp_import_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpImportIndex.setStatus('mandatory') vr_ip_bgp_import_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10)) if mibBuilder.loadTexts: vrIpBgpImportProvTable.setStatus('mandatory') vr_ip_bgp_import_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpImportIndex')) if mibBuilder.loadTexts: vrIpBgpImportProvEntry.setStatus('mandatory') vr_ip_bgp_import_peer_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportPeerAs.setStatus('mandatory') vr_ip_bgp_import_peer_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 2), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportPeerIpAddress.setStatus('mandatory') vr_ip_bgp_import_origin_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportOriginAs.setStatus('mandatory') vr_ip_bgp_import_origin_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2, 3))).clone(namedValues=named_values(('any', 0), ('igp', 1), ('egp', 2), ('incomplete', 3))).clone('any')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportOriginProtocol.setStatus('mandatory') vr_ip_bgp_import_usage_flag = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('use', 1), ('ignore', 2), ('exclude', 3))).clone('use')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportUsageFlag.setStatus('mandatory') vr_ip_bgp_import_local_preference = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportLocalPreference.setStatus('mandatory') vr_ip_bgp_import_preferred_over = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(6, 70))).clone(namedValues=named_values(('overIntOspf', 6), ('underIntOspf', 70))).clone('underIntOspf')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportPreferredOver.setStatus('mandatory') vr_ip_bgp_import_as_path_expression = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 8), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportAsPathExpression.setStatus('mandatory') vr_ip_bgp_import_community_expression = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 9), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportCommunityExpression.setStatus('mandatory') vr_ip_bgp_import_express_preference = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255)).clone(128)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportExpressPreference.setStatus('mandatory') vr_ip_bgp_import_append_community = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 10, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportAppendCommunity.setStatus('mandatory') vr_ip_bgp_import_net = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2)) vr_ip_bgp_import_net_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1)) if mibBuilder.loadTexts: vrIpBgpImportNetRowStatusTable.setStatus('mandatory') vr_ip_bgp_import_net_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpImportIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpImportNetIndex')) if mibBuilder.loadTexts: vrIpBgpImportNetRowStatusEntry.setStatus('mandatory') vr_ip_bgp_import_net_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportNetRowStatus.setStatus('mandatory') vr_ip_bgp_import_net_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpImportNetComponentName.setStatus('mandatory') vr_ip_bgp_import_net_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpImportNetStorageType.setStatus('mandatory') vr_ip_bgp_import_net_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpImportNetIndex.setStatus('mandatory') vr_ip_bgp_import_net_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10)) if mibBuilder.loadTexts: vrIpBgpImportNetProvTable.setStatus('mandatory') vr_ip_bgp_import_net_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpImportIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpImportNetIndex')) if mibBuilder.loadTexts: vrIpBgpImportNetProvEntry.setStatus('mandatory') vr_ip_bgp_import_net_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportNetPrefix.setStatus('mandatory') vr_ip_bgp_import_net_length = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 3, 2, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpImportNetLength.setStatus('mandatory') vr_ip_bgp_export = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4)) vr_ip_bgp_export_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1)) if mibBuilder.loadTexts: vrIpBgpExportRowStatusTable.setStatus('mandatory') vr_ip_bgp_export_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpExportIndex')) if mibBuilder.loadTexts: vrIpBgpExportRowStatusEntry.setStatus('mandatory') vr_ip_bgp_export_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportRowStatus.setStatus('mandatory') vr_ip_bgp_export_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpExportComponentName.setStatus('mandatory') vr_ip_bgp_export_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpExportStorageType.setStatus('mandatory') vr_ip_bgp_export_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpExportIndex.setStatus('mandatory') vr_ip_bgp_export_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10)) if mibBuilder.loadTexts: vrIpBgpExportProvTable.setStatus('mandatory') vr_ip_bgp_export_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpExportIndex')) if mibBuilder.loadTexts: vrIpBgpExportProvEntry.setStatus('mandatory') vr_ip_bgp_export_peer_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportPeerAs.setStatus('mandatory') vr_ip_bgp_export_peer_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 2), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportPeerIpAddress.setStatus('mandatory') vr_ip_bgp_export_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('all', 1), ('egp', 2), ('rip', 3), ('ospfInternal', 4), ('ospfExternal', 5), ('staticLocal', 6), ('staticRemote', 7), ('bgpInternal', 8), ('bgpExternal', 9))).clone('all')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportProtocol.setStatus('mandatory') vr_ip_bgp_export_egp_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportEgpAsId.setStatus('mandatory') vr_ip_bgp_export_bgp_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportBgpAsId.setStatus('mandatory') vr_ip_bgp_export_ospf_tag = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 6), hex().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(4294967295)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportOspfTag.setStatus('mandatory') vr_ip_bgp_export_rip_interface = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 7), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportRipInterface.setStatus('mandatory') vr_ip_bgp_export_rip_neighbor = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 8), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportRipNeighbor.setStatus('mandatory') vr_ip_bgp_export_advertise_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('send', 1), ('block', 2))).clone('send')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportAdvertiseStatus.setStatus('mandatory') vr_ip_bgp_export_multi_exit_disc = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportMultiExitDisc.setStatus('mandatory') vr_ip_bgp_export_send_multi_exit_disc_to_ebgp = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 11), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('false', 1), ('true', 2))).clone('false')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportSendMultiExitDiscToEbgp.setStatus('mandatory') vr_ip_bgp_export_as_path_expression = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 12), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportAsPathExpression.setStatus('mandatory') vr_ip_bgp_export_community_expression = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 13), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportCommunityExpression.setStatus('mandatory') vr_ip_bgp_export_express_preference = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 14), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255)).clone(128)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportExpressPreference.setStatus('mandatory') vr_ip_bgp_export_send_community = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 15), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportSendCommunity.setStatus('mandatory') vr_ip_bgp_export_insert_dummy_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 10, 1, 200), integer_sequence()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportInsertDummyAs.setStatus('mandatory') vr_ip_bgp_export_net = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2)) vr_ip_bgp_export_net_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1)) if mibBuilder.loadTexts: vrIpBgpExportNetRowStatusTable.setStatus('mandatory') vr_ip_bgp_export_net_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpExportIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpExportNetIndex')) if mibBuilder.loadTexts: vrIpBgpExportNetRowStatusEntry.setStatus('mandatory') vr_ip_bgp_export_net_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportNetRowStatus.setStatus('mandatory') vr_ip_bgp_export_net_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpExportNetComponentName.setStatus('mandatory') vr_ip_bgp_export_net_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpExportNetStorageType.setStatus('mandatory') vr_ip_bgp_export_net_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpExportNetIndex.setStatus('mandatory') vr_ip_bgp_export_net_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10)) if mibBuilder.loadTexts: vrIpBgpExportNetProvTable.setStatus('mandatory') vr_ip_bgp_export_net_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpExportIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpExportNetIndex')) if mibBuilder.loadTexts: vrIpBgpExportNetProvEntry.setStatus('mandatory') vr_ip_bgp_export_net_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1, 1), ip_address()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportNetPrefix.setStatus('mandatory') vr_ip_bgp_export_net_length = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 4, 2, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpExportNetLength.setStatus('mandatory') vr_ip_bgp_as = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5)) vr_ip_bgp_as_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1)) if mibBuilder.loadTexts: vrIpBgpAsRowStatusTable.setStatus('mandatory') vr_ip_bgp_as_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAsIndex')) if mibBuilder.loadTexts: vrIpBgpAsRowStatusEntry.setStatus('mandatory') vr_ip_bgp_as_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAsRowStatus.setStatus('mandatory') vr_ip_bgp_as_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpAsComponentName.setStatus('mandatory') vr_ip_bgp_as_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpAsStorageType.setStatus('mandatory') vr_ip_bgp_as_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpAsIndex.setStatus('mandatory') vr_ip_bgp_as_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10)) if mibBuilder.loadTexts: vrIpBgpAsProvTable.setStatus('mandatory') vr_ip_bgp_as_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAsIndex')) if mibBuilder.loadTexts: vrIpBgpAsProvEntry.setStatus('mandatory') vr_ip_bgp_as_weight = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 5, 10, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 255)).clone(128)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAsWeight.setStatus('mandatory') vr_ip_bgp_aggregate = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6)) vr_ip_bgp_aggregate_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1)) if mibBuilder.loadTexts: vrIpBgpAggregateRowStatusTable.setStatus('mandatory') vr_ip_bgp_aggregate_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregatePrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregateLengthIndex')) if mibBuilder.loadTexts: vrIpBgpAggregateRowStatusEntry.setStatus('mandatory') vr_ip_bgp_aggregate_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateRowStatus.setStatus('mandatory') vr_ip_bgp_aggregate_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpAggregateComponentName.setStatus('mandatory') vr_ip_bgp_aggregate_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpAggregateStorageType.setStatus('mandatory') vr_ip_bgp_aggregate_prefix_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 10), ip_address()) if mibBuilder.loadTexts: vrIpBgpAggregatePrefixIndex.setStatus('mandatory') vr_ip_bgp_aggregate_length_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpAggregateLengthIndex.setStatus('mandatory') vr_ip_bgp_aggregate_net = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2)) vr_ip_bgp_aggregate_net_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1)) if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatusTable.setStatus('mandatory') vr_ip_bgp_aggregate_net_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregatePrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregateLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregateNetIndex')) if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatusEntry.setStatus('mandatory') vr_ip_bgp_aggregate_net_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetRowStatus.setStatus('mandatory') vr_ip_bgp_aggregate_net_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpAggregateNetComponentName.setStatus('mandatory') vr_ip_bgp_aggregate_net_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpAggregateNetStorageType.setStatus('mandatory') vr_ip_bgp_aggregate_net_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 1, 1, 10), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))) if mibBuilder.loadTexts: vrIpBgpAggregateNetIndex.setStatus('mandatory') vr_ip_bgp_aggregate_net_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10)) if mibBuilder.loadTexts: vrIpBgpAggregateNetProvTable.setStatus('mandatory') vr_ip_bgp_aggregate_net_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregatePrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregateLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpAggregateNetIndex')) if mibBuilder.loadTexts: vrIpBgpAggregateNetProvEntry.setStatus('mandatory') vr_ip_bgp_aggregate_net_prefix = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 1), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetPrefix.setStatus('mandatory') vr_ip_bgp_aggregate_net_length = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 32))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetLength.setStatus('mandatory') vr_ip_bgp_aggregate_net_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9))).clone(namedValues=named_values(('all', 1), ('egp', 2), ('rip', 3), ('ospfInternal', 4), ('ospfExternal', 5), ('staticLocal', 6), ('staticRemote', 7), ('bgpInternal', 8), ('bgpExternal', 9))).clone('all')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetProtocol.setStatus('mandatory') vr_ip_bgp_aggregate_net_egp_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetEgpAsId.setStatus('mandatory') vr_ip_bgp_aggregate_net_bgp_as_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetBgpAsId.setStatus('mandatory') vr_ip_bgp_aggregate_net_ospf_tag = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 6), hex().subtype(subtypeSpec=value_range_constraint(0, 4294967295)).clone(4294967295)).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetOspfTag.setStatus('mandatory') vr_ip_bgp_aggregate_net_rip_interface = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 7), ip_address().clone(hexValue='00000000')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetRipInterface.setStatus('mandatory') vr_ip_bgp_aggregate_net_action = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 6, 2, 10, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('aggregate', 1), ('advertise', 2))).clone('aggregate')).setMaxAccess('readwrite') if mibBuilder.loadTexts: vrIpBgpAggregateNetAction.setStatus('mandatory') vr_ip_bgp_indb = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7)) vr_ip_bgp_indb_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1)) if mibBuilder.loadTexts: vrIpBgpIndbRowStatusTable.setStatus('mandatory') vr_ip_bgp_indb_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbPeerIndex')) if mibBuilder.loadTexts: vrIpBgpIndbRowStatusEntry.setStatus('mandatory') vr_ip_bgp_indb_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbRowStatus.setStatus('mandatory') vr_ip_bgp_indb_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbComponentName.setStatus('mandatory') vr_ip_bgp_indb_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbStorageType.setStatus('mandatory') vr_ip_bgp_indb_prefix_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 10), ip_address()) if mibBuilder.loadTexts: vrIpBgpIndbPrefixIndex.setStatus('mandatory') vr_ip_bgp_indb_length_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpIndbLengthIndex.setStatus('mandatory') vr_ip_bgp_indb_peer_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 1, 1, 12), ip_address()) if mibBuilder.loadTexts: vrIpBgpIndbPeerIndex.setStatus('mandatory') vr_ip_bgp_indb_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10)) if mibBuilder.loadTexts: vrIpBgpIndbOperTable.setStatus('mandatory') vr_ip_bgp_indb_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbPeerIndex')) if mibBuilder.loadTexts: vrIpBgpIndbOperEntry.setStatus('mandatory') vr_ip_bgp_indb_origin = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('igp', 1), ('egp', 2), ('incomplete', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbOrigin.setStatus('mandatory') vr_ip_bgp_indb_in_localdb = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('false', 1), ('true', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbInLocaldb.setStatus('mandatory') vr_ip_bgp_indb_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 6), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbNextHop.setStatus('mandatory') vr_ip_bgp_indb_local_preference = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbLocalPreference.setStatus('mandatory') vr_ip_bgp_indb_calc_local_pref = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbCalcLocalPref.setStatus('mandatory') vr_ip_bgp_indb_multi_exit_discriminator = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbMultiExitDiscriminator.setStatus('mandatory') vr_ip_bgp_indb_atomic_aggregate = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('lessSpecificRouteNotSelected', 1), ('lessSpecificRouteSelected', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbAtomicAggregate.setStatus('mandatory') vr_ip_bgp_indb_aggregator_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbAggregatorAs.setStatus('mandatory') vr_ip_bgp_indb_aggregator_addr = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 12), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbAggregatorAddr.setStatus('mandatory') vr_ip_bgp_indb_as_path = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 13), ascii_string().subtype(subtypeSpec=value_size_constraint(2, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbAsPath.setStatus('mandatory') vr_ip_bgp_indb_unknown_attributes = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 14), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbUnknownAttributes.setStatus('mandatory') vr_ip_bgp_indb_community_path = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 15), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbCommunityPath.setStatus('mandatory') vr_ip_bgp_indb_as_originator_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 10, 1, 16), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbAsOriginatorId.setStatus('mandatory') vr_ip_bgp_indb_rr_cluster_list_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798)) if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListTable.setStatus('mandatory') vr_ip_bgp_indb_rr_cluster_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbPeerIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndbRrClusterListValue')) if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListEntry.setStatus('mandatory') vr_ip_bgp_indb_rr_cluster_list_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 7, 798, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpIndbRrClusterListValue.setStatus('mandatory') vr_ip_bgp_localdb = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8)) vr_ip_bgp_localdb_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1)) if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatusTable.setStatus('mandatory') vr_ip_bgp_localdb_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbPeerIndex')) if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatusEntry.setStatus('mandatory') vr_ip_bgp_localdb_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbRowStatus.setStatus('mandatory') vr_ip_bgp_localdb_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbComponentName.setStatus('mandatory') vr_ip_bgp_localdb_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbStorageType.setStatus('mandatory') vr_ip_bgp_localdb_prefix_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 10), ip_address()) if mibBuilder.loadTexts: vrIpBgpLocaldbPrefixIndex.setStatus('mandatory') vr_ip_bgp_localdb_length_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpLocaldbLengthIndex.setStatus('mandatory') vr_ip_bgp_localdb_peer_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 1, 1, 12), ip_address()) if mibBuilder.loadTexts: vrIpBgpLocaldbPeerIndex.setStatus('mandatory') vr_ip_bgp_localdb_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10)) if mibBuilder.loadTexts: vrIpBgpLocaldbOperTable.setStatus('mandatory') vr_ip_bgp_localdb_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbPeerIndex')) if mibBuilder.loadTexts: vrIpBgpLocaldbOperEntry.setStatus('mandatory') vr_ip_bgp_localdb_origin = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('igp', 1), ('egp', 2), ('incomplete', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbOrigin.setStatus('mandatory') vr_ip_bgp_localdb_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbNextHop.setStatus('mandatory') vr_ip_bgp_localdb_local_preference = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbLocalPreference.setStatus('mandatory') vr_ip_bgp_localdb_multi_exit_discriminator = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbMultiExitDiscriminator.setStatus('mandatory') vr_ip_bgp_localdb_atomic_aggregate = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('lessSpecificRouteNotSelected', 1), ('lessSpecificRouteSelected', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbAtomicAggregate.setStatus('mandatory') vr_ip_bgp_localdb_aggregator_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbAggregatorAs.setStatus('mandatory') vr_ip_bgp_localdb_aggregator_addr = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 10), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbAggregatorAddr.setStatus('mandatory') vr_ip_bgp_localdb_as_path = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 11), ascii_string().subtype(subtypeSpec=value_size_constraint(2, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbAsPath.setStatus('mandatory') vr_ip_bgp_localdb_unknown_attributes = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 12), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbUnknownAttributes.setStatus('mandatory') vr_ip_bgp_localdb_community_path = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 13), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbCommunityPath.setStatus('mandatory') vr_ip_bgp_localdb_as_originator_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 10, 1, 14), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbAsOriginatorId.setStatus('mandatory') vr_ip_bgp_localdb_rr_cluster_list_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797)) if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListTable.setStatus('mandatory') vr_ip_bgp_localdb_rr_cluster_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbPeerIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpLocaldbRrClusterListValue')) if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListEntry.setStatus('mandatory') vr_ip_bgp_localdb_rr_cluster_list_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 8, 797, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpLocaldbRrClusterListValue.setStatus('mandatory') vr_ip_bgp_outdb = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9)) vr_ip_bgp_outdb_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1)) if mibBuilder.loadTexts: vrIpBgpOutdbRowStatusTable.setStatus('mandatory') vr_ip_bgp_outdb_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbPeerIndex')) if mibBuilder.loadTexts: vrIpBgpOutdbRowStatusEntry.setStatus('mandatory') vr_ip_bgp_outdb_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbRowStatus.setStatus('mandatory') vr_ip_bgp_outdb_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbComponentName.setStatus('mandatory') vr_ip_bgp_outdb_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbStorageType.setStatus('mandatory') vr_ip_bgp_outdb_prefix_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 10), ip_address()) if mibBuilder.loadTexts: vrIpBgpOutdbPrefixIndex.setStatus('mandatory') vr_ip_bgp_outdb_length_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 11), integer32().subtype(subtypeSpec=value_range_constraint(0, 32))) if mibBuilder.loadTexts: vrIpBgpOutdbLengthIndex.setStatus('mandatory') vr_ip_bgp_outdb_peer_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 1, 1, 12), ip_address()) if mibBuilder.loadTexts: vrIpBgpOutdbPeerIndex.setStatus('mandatory') vr_ip_bgp_outdb_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10)) if mibBuilder.loadTexts: vrIpBgpOutdbOperTable.setStatus('mandatory') vr_ip_bgp_outdb_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbPeerIndex')) if mibBuilder.loadTexts: vrIpBgpOutdbOperEntry.setStatus('mandatory') vr_ip_bgp_outdb_origin = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('igp', 1), ('egp', 2), ('incomplete', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbOrigin.setStatus('mandatory') vr_ip_bgp_outdb_next_hop = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 5), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbNextHop.setStatus('mandatory') vr_ip_bgp_outdb_local_preference = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 6), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbLocalPreference.setStatus('mandatory') vr_ip_bgp_outdb_multi_exit_discriminator = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbMultiExitDiscriminator.setStatus('mandatory') vr_ip_bgp_outdb_atomic_aggregate = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('lessSpecificRouteNotSelected', 1), ('lessSpecificRouteSelected', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbAtomicAggregate.setStatus('mandatory') vr_ip_bgp_outdb_aggregator_as = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 9), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbAggregatorAs.setStatus('mandatory') vr_ip_bgp_outdb_aggregator_addr = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 10), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbAggregatorAddr.setStatus('mandatory') vr_ip_bgp_outdb_as_path = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 11), ascii_string().subtype(subtypeSpec=value_size_constraint(2, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbAsPath.setStatus('mandatory') vr_ip_bgp_outdb_unknown_attributes = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 12), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbUnknownAttributes.setStatus('mandatory') vr_ip_bgp_outdb_community_path = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 13), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 255))).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbCommunityPath.setStatus('mandatory') vr_ip_bgp_outdb_as_originator_id = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 10, 1, 14), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbAsOriginatorId.setStatus('mandatory') vr_ip_bgp_outdb_rr_cluster_list_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799)) if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListTable.setStatus('mandatory') vr_ip_bgp_outdb_rr_cluster_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-VirtualRouterMIB', 'vrIndex'), (0, 'Nortel-Magellan-Passport-IpMIB', 'vrIpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbPrefixIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbLengthIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbPeerIndex'), (0, 'Nortel-Magellan-Passport-BgpMIB', 'vrIpBgpOutdbRrClusterListValue')) if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListEntry.setStatus('mandatory') vr_ip_bgp_outdb_rr_cluster_list_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 100, 6, 21, 9, 799, 1, 1), ip_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: vrIpBgpOutdbRrClusterListValue.setStatus('mandatory') bgp_group = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1)) bgp_group_be = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5)) bgp_group_be01 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5, 2)) bgp_group_be01_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 1, 5, 2, 2)) bgp_capabilities = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3)) bgp_capabilities_be = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5)) bgp_capabilities_be01 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5, 2)) bgp_capabilities_be01_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 141, 3, 5, 2, 2)) mibBuilder.exportSymbols('Nortel-Magellan-Passport-BgpMIB', vrIpBgpAggregateNetRowStatusTable=vrIpBgpAggregateNetRowStatusTable, vrIpBgpPeerBgpIdentifier=vrIpBgpPeerBgpIdentifier, vrIpBgpProvTable=vrIpBgpProvTable, vrIpBgpPeerRowStatus=vrIpBgpPeerRowStatus, vrIpBgpOutErrorMsgs=vrIpBgpOutErrorMsgs, vrIpBgpExportNetIndex=vrIpBgpExportNetIndex, vrIpBgpOutdbRrClusterListTable=vrIpBgpOutdbRrClusterListTable, bgpCapabilitiesBE01A=bgpCapabilitiesBE01A, vrIpBgpPeerAdminState=vrIpBgpPeerAdminState, vrIpBgpAggregateNetOspfTag=vrIpBgpAggregateNetOspfTag, vrIpBgpIndbOperTable=vrIpBgpIndbOperTable, vrIpBgpAggregateNetStorageType=vrIpBgpAggregateNetStorageType, vrIpBgpAggregateNetLength=vrIpBgpAggregateNetLength, vrIpBgpPeerKeepAliveNegotiated=vrIpBgpPeerKeepAliveNegotiated, vrIpBgpImportUsageFlag=vrIpBgpImportUsageFlag, vrIpBgpImportLocalPreference=vrIpBgpImportLocalPreference, vrIpBgpExportAdvertiseStatus=vrIpBgpExportAdvertiseStatus, vrIpBgpIndbPeerIndex=vrIpBgpIndbPeerIndex, vrIpBgpOutdbRowStatusEntry=vrIpBgpOutdbRowStatusEntry, vrIpBgpImportOriginProtocol=vrIpBgpImportOriginProtocol, vrIpBgpImportNetStorageType=vrIpBgpImportNetStorageType, vrIpBgpLocaldbComponentName=vrIpBgpLocaldbComponentName, vrIpBgpLocaldbOperTable=vrIpBgpLocaldbOperTable, vrIpBgpImport=vrIpBgpImport, vrIpBgpExportRowStatusTable=vrIpBgpExportRowStatusTable, vrIpBgpOutdbNextHop=vrIpBgpOutdbNextHop, vrIpBgpPeerPeerAddressIndex=vrIpBgpPeerPeerAddressIndex, vrIpBgpIndbCommunityPath=vrIpBgpIndbCommunityPath, vrIpBgpPeerLocalAddressUsed=vrIpBgpPeerLocalAddressUsed, vrIpBgpStateTable=vrIpBgpStateTable, vrIpBgpPeerOperationalState=vrIpBgpPeerOperationalState, vrIpBgpAdminControlEntry=vrIpBgpAdminControlEntry, bgpGroupBE=bgpGroupBE, vrIpBgpSnmpAdminStatus=vrIpBgpSnmpAdminStatus, vrIpBgpOutdbRrClusterListValue=vrIpBgpOutdbRrClusterListValue, vrIpBgpAs=vrIpBgpAs, vrIpBgpImportNetRowStatusEntry=vrIpBgpImportNetRowStatusEntry, vrIpBgpLocaldbPrefixIndex=vrIpBgpLocaldbPrefixIndex, vrIpBgpLocaldbAggregatorAddr=vrIpBgpLocaldbAggregatorAddr, vrIpBgpOperStatusEntry=vrIpBgpOperStatusEntry, vrIpBgpRouteReflector=vrIpBgpRouteReflector, vrIpBgpExportNetRowStatusTable=vrIpBgpExportNetRowStatusTable, vrIpBgpLocaldbPeerIndex=vrIpBgpLocaldbPeerIndex, vrIpBgpRouteThrottleLimit=vrIpBgpRouteThrottleLimit, vrIpBgpExportOspfTag=vrIpBgpExportOspfTag, vrIpBgpAsWeight=vrIpBgpAsWeight, vrIpBgpPeerPeerAs=vrIpBgpPeerPeerAs, vrIpBgpOutdbRowStatusTable=vrIpBgpOutdbRowStatusTable, vrIpBgpAsStorageType=vrIpBgpAsStorageType, vrIpBgpExportNetStorageType=vrIpBgpExportNetStorageType, vrIpBgpAggregateNetProvEntry=vrIpBgpAggregateNetProvEntry, vrIpBgpIndbAggregatorAs=vrIpBgpIndbAggregatorAs, vrIpBgpAsRowStatus=vrIpBgpAsRowStatus, vrIpBgpIndbAtomicAggregate=vrIpBgpIndbAtomicAggregate, vrIpBgpPeerOutErrorMsgs=vrIpBgpPeerOutErrorMsgs, vrIpBgpAggregateRowStatusTable=vrIpBgpAggregateRowStatusTable, vrIpBgpLocaldbMultiExitDiscriminator=vrIpBgpLocaldbMultiExitDiscriminator, bgpGroupBE01=bgpGroupBE01, vrIpBgpPeerStateTable=vrIpBgpPeerStateTable, vrIpBgpPeerProvTable=vrIpBgpPeerProvTable, vrIpBgpImportPeerIpAddress=vrIpBgpImportPeerIpAddress, vrIpBgpIndbInLocaldb=vrIpBgpIndbInLocaldb, vrIpBgpProvEntry=vrIpBgpProvEntry, vrIpBgpLocaldbLocalPreference=vrIpBgpLocaldbLocalPreference, vrIpBgpImportComponentName=vrIpBgpImportComponentName, vrIpBgpRouteReflectorCluster=vrIpBgpRouteReflectorCluster, vrIpBgpLocaldbNextHop=vrIpBgpLocaldbNextHop, vrIpBgpOperEntry=vrIpBgpOperEntry, vrIpBgpLocaldbStorageType=vrIpBgpLocaldbStorageType, vrIpBgpLocaldbAsPath=vrIpBgpLocaldbAsPath, vrIpBgpOutDiscards=vrIpBgpOutDiscards, vrIpBgpImportAppendCommunity=vrIpBgpImportAppendCommunity, vrIpBgpIndbSize=vrIpBgpIndbSize, vrIpBgpIndbRrClusterListEntry=vrIpBgpIndbRrClusterListEntry, vrIpBgpIndbNextHop=vrIpBgpIndbNextHop, vrIpBgpImportNetRowStatus=vrIpBgpImportNetRowStatus, vrIpBgpExportExpressPreference=vrIpBgpExportExpressPreference, vrIpBgpAdminState=vrIpBgpAdminState, vrIpBgpOperationalState=vrIpBgpOperationalState, vrIpBgpExportProvEntry=vrIpBgpExportProvEntry, vrIpBgpPeerHoldTimeConfigured=vrIpBgpPeerHoldTimeConfigured, vrIpBgpOutdbStorageType=vrIpBgpOutdbStorageType, vrIpBgpPeerInRoutes=vrIpBgpPeerInRoutes, vrIpBgpPeerConnectionEstablishedTime=vrIpBgpPeerConnectionEstablishedTime, vrIpBgpImportExpressPreference=vrIpBgpImportExpressPreference, vrIpBgpInErrors=vrIpBgpInErrors, vrIpBgpLocaldbLengthIndex=vrIpBgpLocaldbLengthIndex, vrIpBgpAggregateNetProtocol=vrIpBgpAggregateNetProtocol, vrIpBgpIndbUnknownAttributes=vrIpBgpIndbUnknownAttributes, vrIpBgpOutdbRrClusterListEntry=vrIpBgpOutdbRrClusterListEntry, vrIpBgpAggregateComponentName=vrIpBgpAggregateComponentName, vrIpBgpAsIndex=vrIpBgpAsIndex, vrIpBgpExportRowStatusEntry=vrIpBgpExportRowStatusEntry, vrIpBgpAggregateNetIndex=vrIpBgpAggregateNetIndex, vrIpBgpAsRowStatusTable=vrIpBgpAsRowStatusTable, vrIpBgpOutdb=vrIpBgpOutdb, vrIpBgpExportSendMultiExitDiscToEbgp=vrIpBgpExportSendMultiExitDiscToEbgp, vrIpBgpPeerOutMsgs=vrIpBgpPeerOutMsgs, vrIpBgpLocaldbAsOriginatorId=vrIpBgpLocaldbAsOriginatorId, vrIpBgpDefaultMultiExitDisc=vrIpBgpDefaultMultiExitDisc, vrIpBgp=vrIpBgp, vrIpBgpOutdbLengthIndex=vrIpBgpOutdbLengthIndex, vrIpBgpImportStorageType=vrIpBgpImportStorageType, vrIpBgpAggregateNetAction=vrIpBgpAggregateNetAction, vrIpBgpLocaldbRowStatusTable=vrIpBgpLocaldbRowStatusTable, vrIpBgpExportNetRowStatusEntry=vrIpBgpExportNetRowStatusEntry, vrIpBgpPeerRowStatusTable=vrIpBgpPeerRowStatusTable, vrIpBgpLocaldbUnknownAttributes=vrIpBgpLocaldbUnknownAttributes, vrIpBgpLocaldb=vrIpBgpLocaldb, vrIpBgpOutdbAsOriginatorId=vrIpBgpOutdbAsOriginatorId, vrIpBgpAsProvEntry=vrIpBgpAsProvEntry, vrIpBgpExportRowStatus=vrIpBgpExportRowStatus, vrIpBgpOutdbAggregatorAs=vrIpBgpOutdbAggregatorAs, vrIpBgpLocaldbRowStatus=vrIpBgpLocaldbRowStatus, bgpMIB=bgpMIB, vrIpBgpIndbAggregatorAddr=vrIpBgpIndbAggregatorAddr, vrIpBgpLocaldbRrClusterListTable=vrIpBgpLocaldbRrClusterListTable, vrIpBgpImportOriginAs=vrIpBgpImportOriginAs, vrIpBgpExportNetProvEntry=vrIpBgpExportNetProvEntry, vrIpBgpExportStorageType=vrIpBgpExportStorageType, vrIpBgpIndbOperEntry=vrIpBgpIndbOperEntry, vrIpBgpPeerDefaultInAggMed=vrIpBgpPeerDefaultInAggMed, vrIpBgpUsageState=vrIpBgpUsageState, vrIpBgpLocaldbRrClusterListEntry=vrIpBgpLocaldbRrClusterListEntry, vrIpBgpStorageType=vrIpBgpStorageType, vrIpBgpIndbRowStatusEntry=vrIpBgpIndbRowStatusEntry, vrIpBgpPeerMinAsOrigTime=vrIpBgpPeerMinAsOrigTime, vrIpBgpPeerVersionNegotiated=vrIpBgpPeerVersionNegotiated, vrIpBgpPeerOutUpdates=vrIpBgpPeerOutUpdates, vrIpBgpPeerOperEntry=vrIpBgpPeerOperEntry, vrIpBgpRowStatus=vrIpBgpRowStatus, vrIpBgpImportRowStatusTable=vrIpBgpImportRowStatusTable, vrIpBgpPeerUsageState=vrIpBgpPeerUsageState, vrIpBgpIndbComponentName=vrIpBgpIndbComponentName, vrIpBgpIndbAsPath=vrIpBgpIndbAsPath, vrIpBgpOutdbRowStatus=vrIpBgpOutdbRowStatus, vrIpBgpAggregateNetProvTable=vrIpBgpAggregateNetProvTable, bgpCapabilitiesBE01=bgpCapabilitiesBE01, vrIpBgpRouteThrottleInter=vrIpBgpRouteThrottleInter, vrIpBgpPeerIsRouteReflectorClient=vrIpBgpPeerIsRouteReflectorClient, vrIpBgpImportPeerAs=vrIpBgpImportPeerAs, vrIpBgpAggregate=vrIpBgpAggregate, vrIpBgpPeerStateEntry=vrIpBgpPeerStateEntry, vrIpBgpOutdbLocalPreference=vrIpBgpOutdbLocalPreference, vrIpBgpLocalAs=vrIpBgpLocalAs, vrIpBgpOutdbOperTable=vrIpBgpOutdbOperTable, vrIpBgpBgpIdentifier=vrIpBgpBgpIdentifier, vrIpBgpPeerRemotePort=vrIpBgpPeerRemotePort, vrIpBgpAggregateRowStatusEntry=vrIpBgpAggregateRowStatusEntry, vrIpBgpAggregateNetRowStatusEntry=vrIpBgpAggregateNetRowStatusEntry, vrIpBgpOutdbPeerIndex=vrIpBgpOutdbPeerIndex, vrIpBgpPeer=vrIpBgpPeer, vrIpBgpPeerOutDiscards=vrIpBgpPeerOutDiscards, vrIpBgpExportCommunityExpression=vrIpBgpExportCommunityExpression, vrIpBgpIndbRrClusterListValue=vrIpBgpIndbRrClusterListValue, vrIpBgpLocaldbAggregatorAs=vrIpBgpLocaldbAggregatorAs, vrIpBgpOutMsgs=vrIpBgpOutMsgs, vrIpBgpAggregateNetRowStatus=vrIpBgpAggregateNetRowStatus, vrIpBgpPeerInUpdates=vrIpBgpPeerInUpdates, vrIpBgpOperStatusTable=vrIpBgpOperStatusTable, vrIpBgpIndbCalcLocalPref=vrIpBgpIndbCalcLocalPref, vrIpBgpAsProvTable=vrIpBgpAsProvTable, vrIpBgpOutdbComponentName=vrIpBgpOutdbComponentName, vrIpBgpOutdbMultiExitDiscriminator=vrIpBgpOutdbMultiExitDiscriminator, vrIpBgpTableVersion=vrIpBgpTableVersion, vrIpBgpImportNetRowStatusTable=vrIpBgpImportNetRowStatusTable, vrIpBgpExportNet=vrIpBgpExportNet, bgpGroup=bgpGroup, vrIpBgpAggregateNetBgpAsId=vrIpBgpAggregateNetBgpAsId, vrIpBgpAsComponentName=vrIpBgpAsComponentName, vrIpBgpPeerComponentName=vrIpBgpPeerComponentName, vrIpBgpAggregatePrefixIndex=vrIpBgpAggregatePrefixIndex, vrIpBgpImportAsPathExpression=vrIpBgpImportAsPathExpression, vrIpBgpLocaldbOrigin=vrIpBgpLocaldbOrigin, vrIpBgpPeerInUpdateElapsedTime=vrIpBgpPeerInUpdateElapsedTime, vrIpBgpOutdbAsPath=vrIpBgpOutdbAsPath, vrIpBgpExportPeerAs=vrIpBgpExportPeerAs, vrIpBgpPeerInErrors=vrIpBgpPeerInErrors, vrIpBgpExportRipNeighbor=vrIpBgpExportRipNeighbor, vrIpBgpIndbRowStatusTable=vrIpBgpIndbRowStatusTable, vrIpBgpIndbOrigin=vrIpBgpIndbOrigin, vrIpBgpPeerLocalPort=vrIpBgpPeerLocalPort, vrIpBgpIndex=vrIpBgpIndex, vrIpBgpImportRowStatus=vrIpBgpImportRowStatus, vrIpBgpPeerOperTable=vrIpBgpPeerOperTable, vrIpBgpAggregateStorageType=vrIpBgpAggregateStorageType, vrIpBgpImportNet=vrIpBgpImportNet, vrIpBgpOutdbAtomicAggregate=vrIpBgpOutdbAtomicAggregate, vrIpBgpOutdbAggregatorAddr=vrIpBgpOutdbAggregatorAddr, vrIpBgpIndbStorageType=vrIpBgpIndbStorageType, vrIpBgpExportProvTable=vrIpBgpExportProvTable, vrIpBgpLocaldbRowStatusEntry=vrIpBgpLocaldbRowStatusEntry, vrIpBgpImportNetComponentName=vrIpBgpImportNetComponentName, vrIpBgpExportNetPrefix=vrIpBgpExportNetPrefix, vrIpBgpAdminControlTable=vrIpBgpAdminControlTable, vrIpBgpExport=vrIpBgpExport, vrIpBgpExportIndex=vrIpBgpExportIndex, vrIpBgpDefaultLocalPreference=vrIpBgpDefaultLocalPreference, vrIpBgpAggregateNetEgpAsId=vrIpBgpAggregateNetEgpAsId, vrIpBgpIndbLocalPreference=vrIpBgpIndbLocalPreference, vrIpBgpImportNetPrefix=vrIpBgpImportNetPrefix, vrIpBgpAggregateNetPrefix=vrIpBgpAggregateNetPrefix, vrIpBgpPeerStorageType=vrIpBgpPeerStorageType, vrIpBgpImportIndex=vrIpBgpImportIndex, vrIpBgpImportNetProvTable=vrIpBgpImportNetProvTable, vrIpBgpLocaldbOperEntry=vrIpBgpLocaldbOperEntry, vrIpBgpImportNetIndex=vrIpBgpImportNetIndex, vrIpBgpInMsgs=vrIpBgpInMsgs, vrIpBgpExportBgpAsId=vrIpBgpExportBgpAsId, vrIpBgpImportProvEntry=vrIpBgpImportProvEntry, vrIpBgpOutdbOperEntry=vrIpBgpOutdbOperEntry, vrIpBgpExportProtocol=vrIpBgpExportProtocol, vrIpBgpExportAsPathExpression=vrIpBgpExportAsPathExpression, vrIpBgpExportSendCommunity=vrIpBgpExportSendCommunity, vrIpBgpOutdbUnknownAttributes=vrIpBgpOutdbUnknownAttributes, vrIpBgpComponentName=vrIpBgpComponentName, vrIpBgpLocaldbCommunityPath=vrIpBgpLocaldbCommunityPath, bgpCapabilitiesBE=bgpCapabilitiesBE, vrIpBgpIndb=vrIpBgpIndb, vrIpBgpLocaldbRrClusterListValue=vrIpBgpLocaldbRrClusterListValue, vrIpBgpExportNetComponentName=vrIpBgpExportNetComponentName, vrIpBgpIndbMultiExitDiscriminator=vrIpBgpIndbMultiExitDiscriminator, vrIpBgpPeerHoldTimeNegotiated=vrIpBgpPeerHoldTimeNegotiated, vrIpBgpRowStatusTable=vrIpBgpRowStatusTable, vrIpBgpIndbAsOriginatorId=vrIpBgpIndbAsOriginatorId, vrIpBgpPeerConnectionState=vrIpBgpPeerConnectionState, vrIpBgpPeerProvEntry=vrIpBgpPeerProvEntry, vrIpBgpPeerLocalAddressConfigured=vrIpBgpPeerLocalAddressConfigured, vrIpBgpExportComponentName=vrIpBgpExportComponentName, vrIpBgpExportMultiExitDisc=vrIpBgpExportMultiExitDisc, vrIpBgpExportNetRowStatus=vrIpBgpExportNetRowStatus, vrIpBgpPeerInMsgs=vrIpBgpPeerInMsgs, vrIpBgpAggregateNetRipInterface=vrIpBgpAggregateNetRipInterface, vrIpBgpAggregateNet=vrIpBgpAggregateNet, vrIpBgpPeerLastError=vrIpBgpPeerLastError, vrIpBgpPeerInErrorMsgs=vrIpBgpPeerInErrorMsgs, vrIpBgpIndbLengthIndex=vrIpBgpIndbLengthIndex, vrIpBgpIndbRrClusterListTable=vrIpBgpIndbRrClusterListTable, vrIpBgpOutdbPrefixIndex=vrIpBgpOutdbPrefixIndex, vrIpBgpLocaldbAtomicAggregate=vrIpBgpLocaldbAtomicAggregate, vrIpBgpOutdbOrigin=vrIpBgpOutdbOrigin, vrIpBgpExportNetLength=vrIpBgpExportNetLength, vrIpBgpPeerKeepAliveConfigured=vrIpBgpPeerKeepAliveConfigured, vrIpBgpPeerConnectionEstablishedTransitions=vrIpBgpPeerConnectionEstablishedTransitions, vrIpBgpImportProvTable=vrIpBgpImportProvTable, vrIpBgpExportEgpAsId=vrIpBgpExportEgpAsId, vrIpBgpImportPreferredOver=vrIpBgpImportPreferredOver, vrIpBgpExportInsertDummyAs=vrIpBgpExportInsertDummyAs, vrIpBgpPeerConnectRetryTime=vrIpBgpPeerConnectRetryTime, vrIpBgpImportNetLength=vrIpBgpImportNetLength, vrIpBgpAggregateLengthIndex=vrIpBgpAggregateLengthIndex, vrIpBgpImportCommunityExpression=vrIpBgpImportCommunityExpression, vrIpBgpOutdbCommunityPath=vrIpBgpOutdbCommunityPath, vrIpBgpPeerMinRouteAdvTime=vrIpBgpPeerMinRouteAdvTime) mibBuilder.exportSymbols('Nortel-Magellan-Passport-BgpMIB', vrIpBgpAggregateRowStatus=vrIpBgpAggregateRowStatus, vrIpBgpIndbRowStatus=vrIpBgpIndbRowStatus, vrIpBgpImportRowStatusEntry=vrIpBgpImportRowStatusEntry, vrIpBgpRowStatusEntry=vrIpBgpRowStatusEntry, vrIpBgpImportNetProvEntry=vrIpBgpImportNetProvEntry, vrIpBgpStateEntry=vrIpBgpStateEntry, vrIpBgpOperTable=vrIpBgpOperTable, vrIpBgpInErrorMsgs=vrIpBgpInErrorMsgs, vrIpBgpExportPeerIpAddress=vrIpBgpExportPeerIpAddress, vrIpBgpPeerRowStatusEntry=vrIpBgpPeerRowStatusEntry, vrIpBgpExportNetProvTable=vrIpBgpExportNetProvTable, vrIpBgpAggregateNetComponentName=vrIpBgpAggregateNetComponentName, vrIpBgpIndbPrefixIndex=vrIpBgpIndbPrefixIndex, vrIpBgpSnmpOperStatus=vrIpBgpSnmpOperStatus, vrIpBgpExportRipInterface=vrIpBgpExportRipInterface, vrIpBgpAsRowStatusEntry=vrIpBgpAsRowStatusEntry, bgpCapabilities=bgpCapabilities, bgpGroupBE01A=bgpGroupBE01A)
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def reverseList(self, head): """ :type head: ListNode :rtype: ListNode """ dummy = ListNode(-1) while head: nodenext = head.next head.next = dummy.next dummy.next = head head = nodenext return dummy.next l1 = ListNode(1) l1.next = ListNode(2) l1.next.next = ListNode(3) l1.next.next.next = ListNode(4) p = Solution() print(p.reverseList(l1).val)
class Listnode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def reverse_list(self, head): """ :type head: ListNode :rtype: ListNode """ dummy = list_node(-1) while head: nodenext = head.next head.next = dummy.next dummy.next = head head = nodenext return dummy.next l1 = list_node(1) l1.next = list_node(2) l1.next.next = list_node(3) l1.next.next.next = list_node(4) p = solution() print(p.reverseList(l1).val)
a = {1,2 , 3+4, 10*7} b = {7,14,21} print(a-b) # - will return the resulting set which has elements of the left-hand set with all elements from the right-hand set removed # difference function is used in newer version # a={1,2,7,70} # {1,2, 70} a = {1,2 , 3+4, 10*7} b = {7,14,21} print(a.difference(b)) # {1,2, 70}
a = {1, 2, 3 + 4, 10 * 7} b = {7, 14, 21} print(a - b) a = {1, 2, 3 + 4, 10 * 7} b = {7, 14, 21} print(a.difference(b))
''' Problem Description Given a positive integer A, return its corresponding column title as appear in an Excel sheet. Problem Constraints 1 <= A <= 1000000000 Input Format First and only argument is integer A. Output Format Return a string, the answer to the problem. Approach: base conversion''' class Solution: # @param A : integer # @return a strings def convertToTitle(self, A): # chr -> integer to character # ord -> character to integer # creating a list n[] that contains ASCII values of characters A - Z n=[chr(i) for i in range(ord("A"),ord("Z")+1)] # .insert(position, element) n.insert(0,0) # creating two empty lists a=[];p=[] # typical base conversion while A>26: k=A%26 A=A//26 if k==0: a.append(26) A-=1 else: a.append(k) a.append(int(A)) a.reverse() for i in a: p.append(n[i]) r="".join(p) return r
""" Problem Description Given a positive integer A, return its corresponding column title as appear in an Excel sheet. Problem Constraints 1 <= A <= 1000000000 Input Format First and only argument is integer A. Output Format Return a string, the answer to the problem. Approach: base conversion""" class Solution: def convert_to_title(self, A): n = [chr(i) for i in range(ord('A'), ord('Z') + 1)] n.insert(0, 0) a = [] p = [] while A > 26: k = A % 26 a = A // 26 if k == 0: a.append(26) a -= 1 else: a.append(k) a.append(int(A)) a.reverse() for i in a: p.append(n[i]) r = ''.join(p) return r
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'includes': [ 'audio_sender/audio_sender.gypi', 'congestion_control/congestion_control.gypi', 'video_sender/video_sender.gypi', ], 'targets': [ { 'target_name': 'cast_sender', 'type': 'static_library', 'include_dirs': [ '<(DEPTH)/', ], 'sources': [ 'cast_sender.h', 'cast_sender_impl.cc', 'cast_sender_impl.h', ], # source 'dependencies': [ '<(DEPTH)/media/cast/transport/cast_transport.gyp:cast_transport', 'audio_sender', 'congestion_control', 'rtcp/rtcp.gyp:cast_rtcp', 'video_sender', ], # dependencies }, ], }
{'variables': {'chromium_code': 1}, 'includes': ['audio_sender/audio_sender.gypi', 'congestion_control/congestion_control.gypi', 'video_sender/video_sender.gypi'], 'targets': [{'target_name': 'cast_sender', 'type': 'static_library', 'include_dirs': ['<(DEPTH)/'], 'sources': ['cast_sender.h', 'cast_sender_impl.cc', 'cast_sender_impl.h'], 'dependencies': ['<(DEPTH)/media/cast/transport/cast_transport.gyp:cast_transport', 'audio_sender', 'congestion_control', 'rtcp/rtcp.gyp:cast_rtcp', 'video_sender']}]}
""" This module implements a set of languages as collections of features that are language specific. feature collections +++++++++++++++++++ Languages implement a subset of feature collections (e.g. :class:`~revscoring.languages.features.Dictionary`, :class:`~revscoring.languages.features.Stopwords`, :class:`~revscoring.languages.features.Stemmed` and :class:`~revscoring.languages.features.RegexMatches`) based on what language assets are available. See :mod:`revscoring.languages.features`. dutch +++++ .. automodule:: revscoring.languages.arabic :members: dutch +++++ .. automodule:: revscoring.languages.dutch :members: english +++++++ .. automodule:: revscoring.languages.english :members: estonian ++++++++ .. automodule:: revscoring.languages.estonian :members: french ++++++ .. automodule:: revscoring.languages.french :members: german ++++++ .. automodule:: revscoring.languages.german :members: hebrew ++++++ .. automodule:: revscoring.languages.hebrew :members: indonesian ++++++++++ .. automodule:: revscoring.languages.indonesian :members: italian +++++++ .. automodule:: revscoring.languages.italian :members: japanese +++++++ .. automodule:: revscoring.languages.japanese :members: persian +++++++ .. automodule:: revscoring.languages.persian :members: portuguese ++++++++++ .. automodule:: revscoring.languages.portuguese :members: spanish +++++++ .. automodule:: revscoring.languages.spanish :members: turkish +++++++ .. automodule:: revscoring.languages.turkish :members: ukrainian +++++++++ .. automodule:: revscoring.languages.ukrainian :members: vietnamese ++++++++++ .. automodule:: revscoring.languages.vietnamese :members: """
""" This module implements a set of languages as collections of features that are language specific. feature collections +++++++++++++++++++ Languages implement a subset of feature collections (e.g. :class:`~revscoring.languages.features.Dictionary`, :class:`~revscoring.languages.features.Stopwords`, :class:`~revscoring.languages.features.Stemmed` and :class:`~revscoring.languages.features.RegexMatches`) based on what language assets are available. See :mod:`revscoring.languages.features`. dutch +++++ .. automodule:: revscoring.languages.arabic :members: dutch +++++ .. automodule:: revscoring.languages.dutch :members: english +++++++ .. automodule:: revscoring.languages.english :members: estonian ++++++++ .. automodule:: revscoring.languages.estonian :members: french ++++++ .. automodule:: revscoring.languages.french :members: german ++++++ .. automodule:: revscoring.languages.german :members: hebrew ++++++ .. automodule:: revscoring.languages.hebrew :members: indonesian ++++++++++ .. automodule:: revscoring.languages.indonesian :members: italian +++++++ .. automodule:: revscoring.languages.italian :members: japanese +++++++ .. automodule:: revscoring.languages.japanese :members: persian +++++++ .. automodule:: revscoring.languages.persian :members: portuguese ++++++++++ .. automodule:: revscoring.languages.portuguese :members: spanish +++++++ .. automodule:: revscoring.languages.spanish :members: turkish +++++++ .. automodule:: revscoring.languages.turkish :members: ukrainian +++++++++ .. automodule:: revscoring.languages.ukrainian :members: vietnamese ++++++++++ .. automodule:: revscoring.languages.vietnamese :members: """
class BollingerBands: def __init__(self): self.BBW = [] self.BB_indicator = False self.buy_indicator = False self.sell_indicator = False def feed(self, last_SMA, last_standard_deviation, last_close): upper_band = last_SMA + 2 * last_standard_deviation lower_band = last_SMA - 2 * last_standard_deviation self.BBW.append((upper_band - lower_band) / last_SMA) if len(self.BBW) >= 2: self.__update_bollinger_band_indicator(last_close, upper_band, lower_band) def __update_bollinger_band_indicator(self, last_close, upper_band, lower_band): self.BB_indicator = False self.buy_indicator = False self.sell_indicator = False if self.BBW[-2] < self.BBW[-1]: self.BB_indicator = True if last_close < lower_band: self.sell_indicator = True elif last_close > upper_band: self.buy_indicator = True
class Bollingerbands: def __init__(self): self.BBW = [] self.BB_indicator = False self.buy_indicator = False self.sell_indicator = False def feed(self, last_SMA, last_standard_deviation, last_close): upper_band = last_SMA + 2 * last_standard_deviation lower_band = last_SMA - 2 * last_standard_deviation self.BBW.append((upper_band - lower_band) / last_SMA) if len(self.BBW) >= 2: self.__update_bollinger_band_indicator(last_close, upper_band, lower_band) def __update_bollinger_band_indicator(self, last_close, upper_band, lower_band): self.BB_indicator = False self.buy_indicator = False self.sell_indicator = False if self.BBW[-2] < self.BBW[-1]: self.BB_indicator = True if last_close < lower_band: self.sell_indicator = True elif last_close > upper_band: self.buy_indicator = True
class Solution: def fourSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[List[int]] """ resultList = [] nums.sort() for a in range(len(nums)): b = a+1 if(a>0 and nums[a] == nums[a-1]): continue while(b<len(nums)-2): if(b>a+1 and nums[b] == nums[b-1]): b += 1 continue c = b+1 d = len(nums)-1 while(c<d): vsum = nums[a] + nums[b] + nums[c] + nums[d] if vsum == target: vres = [nums[a] , nums[b] , nums[c] , nums[d]] vres.sort() resultList.append(vres) c += 1 d -= 1 while(c+1<d and nums[c] == nums[c+1]): c += 1 while(c<d-1 and nums[d] == nums[d-1]): d -= 1 elif vsum > target: d -= 1 else: c += 1 b += 1 return resultList
class Solution: def four_sum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[List[int]] """ result_list = [] nums.sort() for a in range(len(nums)): b = a + 1 if a > 0 and nums[a] == nums[a - 1]: continue while b < len(nums) - 2: if b > a + 1 and nums[b] == nums[b - 1]: b += 1 continue c = b + 1 d = len(nums) - 1 while c < d: vsum = nums[a] + nums[b] + nums[c] + nums[d] if vsum == target: vres = [nums[a], nums[b], nums[c], nums[d]] vres.sort() resultList.append(vres) c += 1 d -= 1 while c + 1 < d and nums[c] == nums[c + 1]: c += 1 while c < d - 1 and nums[d] == nums[d - 1]: d -= 1 elif vsum > target: d -= 1 else: c += 1 b += 1 return resultList
class NineGates: name = "Nine Gates" points = 88 excluded = ("Full Flush", "Pung of Terminals or Honors") def __init__(self, handObj): self.hand = handObj def map_ranks(self, tiles): def get_ranks(tile): rank = int(tile.rank) return rank ranks = list(map(get_ranks, tiles)) ranks.sort() return ranks def examine_standard_hand(self): return self.hand.standardhand def examine_correct_sum(self): correct_sum = True if self.hand.tilecount == 14 else False return correct_sum def examine_single_suit(self): try: first_suit = self.hand.tilesets[0].suit single_suit = all(tileset.suit == first_suit for tileset in self.hand.tilesets) except AttributeError: single_suit = False return single_suit def examine_concealed(self): concealed_sets = [] allowed_sets = ["pung", "kong", "chow", "knitted"] for tileset in self.hand.tilesets: if tileset.type in allowed_sets: concealed_sets.append(tileset.concealed) concealed_hand = all(concealed_sets) if getattr(self.hand, "concealed", None) is not None and type(self.hand.concealed) is not list and self.hand.concealed == True: fully_concealed_hand = True else: fully_concealed_hand = False concealed = any([concealed_hand, fully_concealed_hand]) return concealed def examine_correct_pattern(self): correct_pattern = False allowed_pattern = (1,1,1,2,3,4,5,6,7,8,9,9,9) all_tiles = [] for tileset in self.hand.tilesets: for item in tileset.tiles: all_tiles.append(item) try: ranks = self.map_ranks(all_tiles) ranks.sort() #the hand can go out in one of 9 ways, look for that tile for n in range(1, 10): pattern_test = list(allowed_pattern) pattern_test.append(n) pattern_test.sort() if ranks == pattern_test: correct_pattern = True except AttributeError: pass return correct_pattern def evaluate(self): standard_hand = self.examine_standard_hand() correct_sum = self.examine_correct_sum() single_suit = self.examine_single_suit() concealed = self.examine_concealed() correct_pattern = self.examine_correct_pattern() nine_gates = all([standard_hand, correct_sum, single_suit, concealed, correct_pattern]) return nine_gates
class Ninegates: name = 'Nine Gates' points = 88 excluded = ('Full Flush', 'Pung of Terminals or Honors') def __init__(self, handObj): self.hand = handObj def map_ranks(self, tiles): def get_ranks(tile): rank = int(tile.rank) return rank ranks = list(map(get_ranks, tiles)) ranks.sort() return ranks def examine_standard_hand(self): return self.hand.standardhand def examine_correct_sum(self): correct_sum = True if self.hand.tilecount == 14 else False return correct_sum def examine_single_suit(self): try: first_suit = self.hand.tilesets[0].suit single_suit = all((tileset.suit == first_suit for tileset in self.hand.tilesets)) except AttributeError: single_suit = False return single_suit def examine_concealed(self): concealed_sets = [] allowed_sets = ['pung', 'kong', 'chow', 'knitted'] for tileset in self.hand.tilesets: if tileset.type in allowed_sets: concealed_sets.append(tileset.concealed) concealed_hand = all(concealed_sets) if getattr(self.hand, 'concealed', None) is not None and type(self.hand.concealed) is not list and (self.hand.concealed == True): fully_concealed_hand = True else: fully_concealed_hand = False concealed = any([concealed_hand, fully_concealed_hand]) return concealed def examine_correct_pattern(self): correct_pattern = False allowed_pattern = (1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9) all_tiles = [] for tileset in self.hand.tilesets: for item in tileset.tiles: all_tiles.append(item) try: ranks = self.map_ranks(all_tiles) ranks.sort() for n in range(1, 10): pattern_test = list(allowed_pattern) pattern_test.append(n) pattern_test.sort() if ranks == pattern_test: correct_pattern = True except AttributeError: pass return correct_pattern def evaluate(self): standard_hand = self.examine_standard_hand() correct_sum = self.examine_correct_sum() single_suit = self.examine_single_suit() concealed = self.examine_concealed() correct_pattern = self.examine_correct_pattern() nine_gates = all([standard_hand, correct_sum, single_suit, concealed, correct_pattern]) return nine_gates
# -*- coding: utf-8 -*- """@package Methods.Machine.SlotW24.comp_angle_opening SlotW24 Computation of average opening angle method @date Created on Mon Jul 06 11:40:07 2015 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b """ def comp_angle_opening(self): """Compute the average opening angle of the Slot Parameters ---------- self : SlotW24 A SlotW24 object Returns ------- alpha: float Average opening angle of the slot [rad] """ (alpha_0, alpha_2) = self.comp_alphas() return alpha_0
"""@package Methods.Machine.SlotW24.comp_angle_opening SlotW24 Computation of average opening angle method @date Created on Mon Jul 06 11:40:07 2015 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b """ def comp_angle_opening(self): """Compute the average opening angle of the Slot Parameters ---------- self : SlotW24 A SlotW24 object Returns ------- alpha: float Average opening angle of the slot [rad] """ (alpha_0, alpha_2) = self.comp_alphas() return alpha_0
def height(root): l = 1 + height(root.left) if root.left else 0 r = 1 + height(root.right) if root.right else 0 return max(l, r)
def height(root): l = 1 + height(root.left) if root.left else 0 r = 1 + height(root.right) if root.right else 0 return max(l, r)
def validate_register_fields(req): data = req.get_json(silent=True) fields = ['first_name', 'last_name', 'email', 'password'] for d in data.keys(): if d not in fields: return False return True
def validate_register_fields(req): data = req.get_json(silent=True) fields = ['first_name', 'last_name', 'email', 'password'] for d in data.keys(): if d not in fields: return False return True
""" # Example One my_list1 = [1, 2, 3, 4, 5, 6] my_list2 = my_list1 # How would you verify that my_list1 and my_list2 have the same identity? print(my_list1 is my_list2) # True my_list1.append(7) # Check if my_list1 and my_list2 still have the same identity. # If they do, why is that? print(my_list1) # [1, 2, 3, 4, 5, 6, 7] print(my_list2) # [1, 2, 3, 4, 5, 6, 7] print(my_list1 is my_list2) # True """ """ # Example Two my_text1 = "Lambda School" my_text2 = my_text1 # How would you verify that my_text1 and my_text2 have the same identity? print(my_text1 is my_text2) # True print(my_text1) # Lambda School print(my_text2) # Lambda School my_text1 += " is awesome!" # Check if my my_text1 and my_text2 still have the same identity? print(my_text1 is my_text2) # False print(my_text1) # Lambda School is awesome print(my_text2) # Lambda School # If they do noe, why is that? my_text2 += " is awesome!" # Now check if my_text1 and my_text2 have the same value? print(my_text1 is my_text2) # False # do they? Explain why and why not. """ """ # Example three """ # Initialize a list and assign to produce produce = ["Apple", "Banana", "Carrot"] # Initialize a tuple and include a reference to the produce list in the tuple store = ("Bill's Grocery", produce) print(id(store)) #140240549769984 # Add a new item to the produce list produce.append("Dragonfruit") produce = ['TOTALLY NEW LIST'] print(id(store)) #140240549769984 # Did you notice that the identity of store remmained the same? # But I thought if you changed a mutable object, a new object would be created in memory? # Why did that not occur here?
""" # Example One my_list1 = [1, 2, 3, 4, 5, 6] my_list2 = my_list1 # How would you verify that my_list1 and my_list2 have the same identity? print(my_list1 is my_list2) # True my_list1.append(7) # Check if my_list1 and my_list2 still have the same identity. # If they do, why is that? print(my_list1) # [1, 2, 3, 4, 5, 6, 7] print(my_list2) # [1, 2, 3, 4, 5, 6, 7] print(my_list1 is my_list2) # True """ '\n# Example Two\n\nmy_text1 = "Lambda School"\nmy_text2 = my_text1\n# How would you verify that my_text1 and my_text2 have the same identity?\nprint(my_text1 is my_text2) # True\nprint(my_text1) # Lambda School\nprint(my_text2) # Lambda School\n\nmy_text1 += " is awesome!"\n# Check if my my_text1 and my_text2 still have the same identity?\nprint(my_text1 is my_text2) # False\nprint(my_text1) # Lambda School is awesome\nprint(my_text2) # Lambda School\n# If they do noe, why is that?\n\nmy_text2 += " is awesome!"\n# Now check if my_text1 and my_text2 have the same value?\nprint(my_text1 is my_text2) # False\n# do they? Explain why and why not.\n' '\n# Example three\n' produce = ['Apple', 'Banana', 'Carrot'] store = ("Bill's Grocery", produce) print(id(store)) produce.append('Dragonfruit') produce = ['TOTALLY NEW LIST'] print(id(store))
""" Premium Question """ __author__ = 'Daniel' class Solution(object): def __init__(self): """ encode rules """ self.skip = [[None for _ in xrange(10)] for _ in xrange(10)] self.skip[1][3], self.skip[3][1] = 2, 2 self.skip[1][7], self.skip[7][1] = 4, 4 self.skip[3][9], self.skip[9][3] = 6, 6 self.skip[7][9], self.skip[9][7] = 8, 8 self.skip[4][6], self.skip[6][4] = 5, 5 self.skip[2][8], self.skip[8][2] = 5, 5 self.skip[1][9], self.skip[9][1] = 5, 5 self.skip[3][7], self.skip[7][3] = 5, 5 def numberOfPatterns(self, m, n): """ NP dfs Maintain a skip matrix :type m: int :type n: int :rtype: int """ visited = [False for _ in xrange(10)] return sum( self.dfs(1, visited, remain) * 4 + self.dfs(2, visited, remain) * 4 + self.dfs(5, visited, remain) for remain in xrange(m, n+1) ) def dfs(self, cur, visited, remain): if remain == 1: return 1 visited[cur] = True ret = 0 for nxt in xrange(1, 10): if ( not visited[nxt] and ( self.skip[cur][nxt] is None or visited[self.skip[cur][nxt]] ) ): ret += self.dfs(nxt, visited, remain - 1) visited[cur] = False return ret if __name__ == "__main__": assert Solution().numberOfPatterns(1, 2) == 65 assert Solution().numberOfPatterns(1, 3) == 385
""" Premium Question """ __author__ = 'Daniel' class Solution(object): def __init__(self): """ encode rules """ self.skip = [[None for _ in xrange(10)] for _ in xrange(10)] (self.skip[1][3], self.skip[3][1]) = (2, 2) (self.skip[1][7], self.skip[7][1]) = (4, 4) (self.skip[3][9], self.skip[9][3]) = (6, 6) (self.skip[7][9], self.skip[9][7]) = (8, 8) (self.skip[4][6], self.skip[6][4]) = (5, 5) (self.skip[2][8], self.skip[8][2]) = (5, 5) (self.skip[1][9], self.skip[9][1]) = (5, 5) (self.skip[3][7], self.skip[7][3]) = (5, 5) def number_of_patterns(self, m, n): """ NP dfs Maintain a skip matrix :type m: int :type n: int :rtype: int """ visited = [False for _ in xrange(10)] return sum((self.dfs(1, visited, remain) * 4 + self.dfs(2, visited, remain) * 4 + self.dfs(5, visited, remain) for remain in xrange(m, n + 1))) def dfs(self, cur, visited, remain): if remain == 1: return 1 visited[cur] = True ret = 0 for nxt in xrange(1, 10): if not visited[nxt] and (self.skip[cur][nxt] is None or visited[self.skip[cur][nxt]]): ret += self.dfs(nxt, visited, remain - 1) visited[cur] = False return ret if __name__ == '__main__': assert solution().numberOfPatterns(1, 2) == 65 assert solution().numberOfPatterns(1, 3) == 385
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/root/catkin_ws/src/navigation_msgs/map_msgs/msg/OccupancyGridUpdate.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/PointCloud2Update.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMapInfo.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMap.msg" services_str = "/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/ProjectedMapsInfo.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SaveMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SetMapProjections.srv" pkg_name = "map_msgs" dependencies_str = "nav_msgs;sensor_msgs;std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "map_msgs;/root/catkin_ws/src/navigation_msgs/map_msgs/msg;nav_msgs;/opt/ros/kinetic/share/nav_msgs/cmake/../msg;sensor_msgs;/opt/ros/kinetic/share/sensor_msgs/cmake/../msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg;actionlib_msgs;/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/usr/bin/python2" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
messages_str = '/root/catkin_ws/src/navigation_msgs/map_msgs/msg/OccupancyGridUpdate.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/PointCloud2Update.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMapInfo.msg;/root/catkin_ws/src/navigation_msgs/map_msgs/msg/ProjectedMap.msg' services_str = '/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMapROI.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/GetPointMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/ProjectedMapsInfo.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SaveMap.srv;/root/catkin_ws/src/navigation_msgs/map_msgs/srv/SetMapProjections.srv' pkg_name = 'map_msgs' dependencies_str = 'nav_msgs;sensor_msgs;std_msgs' langs = 'gencpp;geneus;genlisp;gennodejs;genpy' dep_include_paths_str = 'map_msgs;/root/catkin_ws/src/navigation_msgs/map_msgs/msg;nav_msgs;/opt/ros/kinetic/share/nav_msgs/cmake/../msg;sensor_msgs;/opt/ros/kinetic/share/sensor_msgs/cmake/../msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg;geometry_msgs;/opt/ros/kinetic/share/geometry_msgs/cmake/../msg;actionlib_msgs;/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg' python_executable = '/usr/bin/python2' package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = '/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py'
df = pd.DataFrame(np.random.randn(10,3), columns=['Col1', 'Col2', 'Col3']) df['X'] = pd.Series(['A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B']) df['Y'] = pd.Series(['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B']) boxplot = df.boxplot(column=['Col1', 'Col2'], by=['X', 'Y'])
df = pd.DataFrame(np.random.randn(10, 3), columns=['Col1', 'Col2', 'Col3']) df['X'] = pd.Series(['A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B']) df['Y'] = pd.Series(['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', 'A', 'B']) boxplot = df.boxplot(column=['Col1', 'Col2'], by=['X', 'Y'])
__version__ = '0.1' __all__ = ["hamilton", "objects", "hamutilities", "structure", "utilities", "gui", "masterjobs", "workbench.py", "workbench_gui.py", "setup.py", "update.py"]
__version__ = '0.1' __all__ = ['hamilton', 'objects', 'hamutilities', 'structure', 'utilities', 'gui', 'masterjobs', 'workbench.py', 'workbench_gui.py', 'setup.py', 'update.py']
{ "targets": [ { "target_name": "xprofiler", "win_delay_load_hook": "false", "sources": [ "src/environment_data.cc", "src/xprofiler.cc", "src/configure.cc", "src/logger.cc", "src/library/json.hpp", "src/library/error.cc", "src/library/common.cc", "src/library/utils.cc", "src/library/writer.cc", "src/logbypass/log.cc", "src/logbypass/cpu.cc", "src/logbypass/heap.cc", "src/logbypass/gc.cc", "src/logbypass/libuv.cc", "src/logbypass/http.cc", "src/commands/listener.cc", "src/commands/send.cc", "src/commands/parser.cc", "src/commands/dump.cc", "src/commands/simple/version.cc", "src/commands/simple/config.cc", "src/commands/cpuprofiler/cpu_profiler.cc", "src/commands/cpuprofiler/cpu_profile.cc", "src/commands/cpuprofiler/cpu_profile_node.cc", "src/commands/heapdump/heap_profiler.cc", "src/commands/heapdump/heap_snapshot.cc", "src/commands/heapprofiler/sampling_heap_profiler.cc", "src/commands/gcprofiler/gc_profiler.cc", "src/commands/report/node_report.cc", "src/commands/report/javascript_stack.cc", "src/commands/report/native_stack.cc", "src/commands/report/heap_statistics.cc", "src/commands/report/uv_statistics.cc", "src/commands/report/system_statistics.cc", "src/hooks/set_hooks.cc", "src/hooks/fatal_error.cc", "src/util.cc", ], "include_dirs": [ 'src', '<!(node -e "require(\'nan\')")' ], "cflags_cc!": ["-fno-exceptions"], "conditions": [ ["OS == 'linux'", { "cflags": ["-O2", "-std=c++14"], "defines": [ 'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.unix\")"', ], "sources": [ "src/platform/unix/cpu.cc", "src/platform/unix/utils.cc", "src/platform/unix/ipc.cc", "src/platform/unix/report.cc", ] }], ["OS == 'mac'", { "xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "OTHER_CFLAGS": [ "-std=c++14", "-Wconversion", "-Wno-sign-conversion", ] }, "defines": [ 'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.unix\")"', ], "sources": [ "src/platform/unix/cpu.cc", "src/platform/unix/utils.cc", "src/platform/unix/ipc.cc", "src/platform/unix/report.cc", ] }], ["OS == 'win'", { "libraries": ["dbghelp.lib", "Netapi32.lib", "PsApi.lib", "Ws2_32.lib"], "dll_files": ["dbghelp.dll", "Netapi32.dll", "PsApi.dll", "Ws2_32.dll"], "msvs_settings": { "VCCLCompilerTool": { "ExceptionHandling": "2", "Optimization": "2", }, }, "defines": [ 'XPROFILER_IPC_PATH="<!(node -p \"require(\'./package.json\').xctlIpcPath.win32\")"', "WIN32_LEAN_AND_MEAN=1", ], "sources": [ "src/platform/win/cpu_win.cc", "src/platform/win/utils_win.cc", "src/platform/win/ipc_win.cc", "src/platform/win/report_win.cc", ] }], ], "defines": [ 'XPROFILER_VERSION="<!(node -p \"require(\'./package.json\').version\")"', 'XPROFILER_BLURRY_TAG="<!(node -p \"require(\'./package.json\').blurryTag\")"', ], }, { "target_name": "action_after_build", "type": "none", "dependencies": ["<(module_name)"], "copies": [ { "files": ["<(PRODUCT_DIR)/<(module_name).node"], "destination": "<(module_path)" } ] }, ], }
{'targets': [{'target_name': 'xprofiler', 'win_delay_load_hook': 'false', 'sources': ['src/environment_data.cc', 'src/xprofiler.cc', 'src/configure.cc', 'src/logger.cc', 'src/library/json.hpp', 'src/library/error.cc', 'src/library/common.cc', 'src/library/utils.cc', 'src/library/writer.cc', 'src/logbypass/log.cc', 'src/logbypass/cpu.cc', 'src/logbypass/heap.cc', 'src/logbypass/gc.cc', 'src/logbypass/libuv.cc', 'src/logbypass/http.cc', 'src/commands/listener.cc', 'src/commands/send.cc', 'src/commands/parser.cc', 'src/commands/dump.cc', 'src/commands/simple/version.cc', 'src/commands/simple/config.cc', 'src/commands/cpuprofiler/cpu_profiler.cc', 'src/commands/cpuprofiler/cpu_profile.cc', 'src/commands/cpuprofiler/cpu_profile_node.cc', 'src/commands/heapdump/heap_profiler.cc', 'src/commands/heapdump/heap_snapshot.cc', 'src/commands/heapprofiler/sampling_heap_profiler.cc', 'src/commands/gcprofiler/gc_profiler.cc', 'src/commands/report/node_report.cc', 'src/commands/report/javascript_stack.cc', 'src/commands/report/native_stack.cc', 'src/commands/report/heap_statistics.cc', 'src/commands/report/uv_statistics.cc', 'src/commands/report/system_statistics.cc', 'src/hooks/set_hooks.cc', 'src/hooks/fatal_error.cc', 'src/util.cc'], 'include_dirs': ['src', '<!(node -e "require(\'nan\')")'], 'cflags_cc!': ['-fno-exceptions'], 'conditions': [["OS == 'linux'", {'cflags': ['-O2', '-std=c++14'], 'defines': ['XPROFILER_IPC_PATH="<!(node -p "require(\'./package.json\').xctlIpcPath.unix")"'], 'sources': ['src/platform/unix/cpu.cc', 'src/platform/unix/utils.cc', 'src/platform/unix/ipc.cc', 'src/platform/unix/report.cc']}], ["OS == 'mac'", {'xcode_settings': {'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'OTHER_CFLAGS': ['-std=c++14', '-Wconversion', '-Wno-sign-conversion']}, 'defines': ['XPROFILER_IPC_PATH="<!(node -p "require(\'./package.json\').xctlIpcPath.unix")"'], 'sources': ['src/platform/unix/cpu.cc', 'src/platform/unix/utils.cc', 'src/platform/unix/ipc.cc', 'src/platform/unix/report.cc']}], ["OS == 'win'", {'libraries': ['dbghelp.lib', 'Netapi32.lib', 'PsApi.lib', 'Ws2_32.lib'], 'dll_files': ['dbghelp.dll', 'Netapi32.dll', 'PsApi.dll', 'Ws2_32.dll'], 'msvs_settings': {'VCCLCompilerTool': {'ExceptionHandling': '2', 'Optimization': '2'}}, 'defines': ['XPROFILER_IPC_PATH="<!(node -p "require(\'./package.json\').xctlIpcPath.win32")"', 'WIN32_LEAN_AND_MEAN=1'], 'sources': ['src/platform/win/cpu_win.cc', 'src/platform/win/utils_win.cc', 'src/platform/win/ipc_win.cc', 'src/platform/win/report_win.cc']}]], 'defines': ['XPROFILER_VERSION="<!(node -p "require(\'./package.json\').version")"', 'XPROFILER_BLURRY_TAG="<!(node -p "require(\'./package.json\').blurryTag")"']}, {'target_name': 'action_after_build', 'type': 'none', 'dependencies': ['<(module_name)'], 'copies': [{'files': ['<(PRODUCT_DIR)/<(module_name).node'], 'destination': '<(module_path)'}]}]}
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- MLC_WORKSPACE_API_VERSION = '2020-02-02' MLC_COMPUTE_RESOURCE_ID_FMT = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/' \ 'workspaces/{}/computes/{}' MLC_LIST_COMPUTES_FMT = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/' \ 'workspaces/{}/computes' RP_COMPUTE_RESOURCE_ID_FMT = '/rp/workspaces/subscriptions/{}/resourceGroups/{}/providers/' \ 'Microsoft.MachineLearningServices/workspaces/{}/computes/{}' RP_LIST_COMPUTES_FMT = '/rp/workspaces/subscriptions/{}/resourceGroups/{}/providers/' \ 'Microsoft.MachineLearningServices/workspaces/{}/computes' GRAPH_API_VERSION = '1.6'
mlc_workspace_api_version = '2020-02-02' mlc_compute_resource_id_fmt = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes/{}' mlc_list_computes_fmt = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes' rp_compute_resource_id_fmt = '/rp/workspaces/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes/{}' rp_list_computes_fmt = '/rp/workspaces/subscriptions/{}/resourceGroups/{}/providers/Microsoft.MachineLearningServices/workspaces/{}/computes' graph_api_version = '1.6'
if True: if True: if True: return _( "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweas " + "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwegqweasdzxcqweasdzxc.", "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwe", ) % {"reported_username": reported_username, "report_reason": report_reason} # output if True: if True: if True: return _( "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweas " + "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwegqweasdzxcqweasdzxc.", "qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwe", ) % { "reported_username": reported_username, "report_reason": report_reason, }
if True: if True: if True: return _('qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweas ' + 'qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwegqweasdzxcqweasdzxc.', 'qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwe') % {'reported_username': reported_username, 'report_reason': report_reason} if True: if True: if True: return _('qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweas ' + 'qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwegqweasdzxcqweasdzxc.', 'qweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqweasdzxcqwe') % {'reported_username': reported_username, 'report_reason': report_reason}
# The Twitter API keys needed to send tweets CONSUMER_KEY = "enter your consumer key here" CONSUMER_SECRET = "enter your secret consumer key here" ACCESS_TOKEN = "enter your access token here" ACCESS_TOKEN_SECRET = "enter your secret access token here"
consumer_key = 'enter your consumer key here' consumer_secret = 'enter your secret consumer key here' access_token = 'enter your access token here' access_token_secret = 'enter your secret access token here'
""" Profile ../profile-datasets-py/standard54lev_allgas/006.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/standard54lev_allgas/006.py" self["Q"] = numpy.array([ 1.42610400e+00, 2.25740200e+00, 3.03034000e+00, 3.69967200e+00, 4.31610400e+00, 4.78132800e+00, 5.07478900e+00, 5.19176800e+00, 5.24924200e+00, 5.19879300e+00, 5.07691300e+00, 4.97253200e+00, 4.91453000e+00, 4.85289800e+00, 4.77784900e+00, 4.68692800e+00, 4.57725700e+00, 4.47492000e+00, 4.32859300e+00, 4.16293300e+00, 4.00311700e+00, 3.89910100e+00, 3.84313200e+00, 3.83660900e+00, 3.90954900e+00, 4.65101500e+00, 5.63378900e+00, 9.11755200e+00, 1.54746500e+01, 2.64265500e+01, 4.48840100e+01, 7.45942600e+01, 1.42818600e+02, 2.77400700e+02, 4.26100500e+02, 5.67428700e+02, 8.00060400e+02, 1.05809300e+03, 1.34364000e+03, 1.75293000e+03, 2.17224400e+03, 2.70441300e+03, 3.21086700e+03, 3.87373300e+03, 4.48421200e+03, 5.05073700e+03, 5.56837500e+03, 6.03632700e+03, 6.53543000e+03, 6.97678600e+03, 7.36122200e+03, 7.68945200e+03, 7.96208200e+03, 8.17961100e+03]) self["P"] = numpy.array([ 5.00000000e-03, 1.31000000e-02, 3.04000000e-02, 6.44000000e-02, 1.26300000e-01, 2.32400000e-01, 4.05200000e-01, 6.74900000e-01, 1.08010000e+00, 1.66910000e+00, 2.50110000e+00, 3.64620000e+00, 5.18640000e+00, 7.21500000e+00, 9.83680000e+00, 1.31672000e+01, 1.73308000e+01, 2.24601000e+01, 2.86937000e+01, 3.61735000e+01, 4.50430000e+01, 5.54433000e+01, 6.75109000e+01, 8.13744000e+01, 9.71505000e+01, 1.14941500e+02, 1.34831800e+02, 1.56884600e+02, 1.81139400e+02, 2.07609200e+02, 2.36278400e+02, 2.67101200e+02, 3.00000000e+02, 3.34864800e+02, 3.71552900e+02, 4.09889300e+02, 4.49667700e+02, 4.90651600e+02, 5.32576900e+02, 5.75153800e+02, 6.18070600e+02, 6.60996500e+02, 7.03586300e+02, 7.45484100e+02, 7.86327800e+02, 8.25754600e+02, 8.63404700e+02, 8.98927500e+02, 9.31985300e+02, 9.62258700e+02, 9.89451000e+02, 1.01329200e+03, 1.03354400e+03, 1.05000000e+03]) self["CO2"] = numpy.array([ 395.3999, 398.5343, 399.9988, 399.9985, 399.9983, 399.9981, 399.998 , 399.9979, 399.9979, 399.9979, 399.998 , 399.998 , 399.998 , 399.9981, 399.9981, 399.9981, 399.9982, 399.9982, 399.9983, 399.9983, 399.9984, 399.9984, 399.9985, 399.9985, 399.9984, 399.9981, 399.9977, 399.9964, 399.9938, 399.9894, 399.982 , 399.9702, 399.9429, 399.889 , 399.8296, 399.773 , 399.68 , 399.5768, 399.4625, 399.2988, 399.1311, 398.9182, 398.7157, 398.4505, 398.2063, 397.9797, 397.7726, 397.5855, 397.3858, 397.2093, 397.0555, 396.9242, 396.8152, 396.7282]) self["CO"] = numpy.array([ 3.006473 , 1.266976 , 0.5366185 , 0.2717527 , 0.1695409 , 0.1036351 , 0.06933339, 0.05139415, 0.03742709, 0.03095425, 0.02632858, 0.02303297, 0.02070408, 0.01909184, 0.01784013, 0.01681581, 0.01599694, 0.01531286, 0.01422425, 0.01286412, 0.01231995, 0.01334847, 0.01663313, 0.02209159, 0.0283446 , 0.03651177, 0.04682141, 0.05899244, 0.07185076, 0.08310109, 0.09221893, 0.1001262 , 0.107673 , 0.1145722 , 0.1202481 , 0.124501 , 0.1272514 , 0.1290889 , 0.1299612 , 0.1304954 , 0.1309834 , 0.1328406 , 0.1346017 , 0.1368069 , 0.1388378 , 0.1407628 , 0.1425322 , 0.1441306 , 0.1455581 , 0.1468203 , 0.1479198 , 0.1488585 , 0.1496383 , 0.1502604 ]) self["T"] = numpy.array([ 190.1948, 201.2227, 211.8073, 223.5081, 236.1925, 248.2361, 259.807 , 268.0701, 270.6029, 261.7915, 253.267 , 245.5053, 238.5085, 232.1688, 228.139 , 225.8658, 224.038 , 222.399 , 220.8289, 219.3256, 217.9126, 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7 , 216.7432, 218.4824, 223.6361, 228.5799, 233.4172, 238.0864, 242.5655, 246.9064, 251.0443, 254.9895, 258.7664, 262.3204, 265.715 , 268.8759, 271.8706, 274.6321, 277.2104, 279.572 , 281.7077, 283.6703, 285.4074, 286.9218, 288.2157, 289.291 , 290.1495]) self["N2O"] = numpy.array([ 0.00058949, 0.00075468, 0.00096809, 0.00125112, 0.0016248 , 0.00214874, 0.00293271, 0.00428657, 0.0092427 , 0.01995902, 0.03780855, 0.0603733 , 0.08523385, 0.1076577 , 0.1283284 , 0.1459624 , 0.158538 , 0.170006 , 0.1847754 , 0.1990045 , 0.2149292 , 0.2367853 , 0.2566467 , 0.2723064 , 0.2838979 , 0.2921719 , 0.2981589 , 0.303073 , 0.3074429 , 0.3114339 , 0.3149953 , 0.3179603 , 0.3191744 , 0.3196972 , 0.3198636 , 0.3198184 , 0.319744 , 0.3196614 , 0.31957 , 0.3194391 , 0.3193049 , 0.3191346 , 0.3189725 , 0.3187604 , 0.3185651 , 0.3183838 , 0.3182181 , 0.3180684 , 0.3179087 , 0.3177674 , 0.3176444 , 0.3175394 , 0.3174521 , 0.3173825 ]) self["O3"] = numpy.array([ 0.4733033 , 0.2866183 , 0.2652103 , 0.4141047 , 0.7844496 , 1.162695 , 1.749622 , 2.75465 , 4.070742 , 5.58158 , 6.842906 , 7.649586 , 7.826192 , 7.545704 , 6.986519 , 6.36272 , 5.814365 , 5.346036 , 4.739365 , 4.025 , 3.221477 , 2.56929 , 1.908546 , 1.401016 , 0.9982378 , 0.7234799 , 0.5496462 , 0.4262601 , 0.3422891 , 0.2686645 , 0.1932536 , 0.1292094 , 0.09860009, 0.07334837, 0.05685836, 0.05025954, 0.04424968, 0.04010144, 0.0380049 , 0.0358197 , 0.03378367, 0.03340628, 0.03305161, 0.0326579 , 0.03229529, 0.03126486, 0.03014303, 0.02912988, 0.02830236, 0.02757059, 0.02693318, 0.02638897, 0.02593695, 0.02557628]) self["CH4"] = numpy.array([ 0.1649998, 0.1649996, 0.1649995, 0.1649994, 0.1649993, 0.1664772, 0.1803118, 0.2178496, 0.302864 , 0.4371518, 0.5733743, 0.6955555, 0.7936361, 0.8785965, 0.9563341, 1.025436 , 1.084469 , 1.135591 , 1.213933 , 1.334547 , 1.461955 , 1.567482 , 1.640358 , 1.68946 , 1.727294 , 1.757083 , 1.781284 , 1.802129 , 1.820006 , 1.834323 , 1.845264 , 1.853824 , 1.860494 , 1.864299 , 1.866543 , 1.867794 , 1.868116 , 1.868021 , 1.867487 , 1.866722 , 1.865938 , 1.864943 , 1.863996 , 1.862756 , 1.861615 , 1.860555 , 1.859587 , 1.858712 , 1.857779 , 1.856953 , 1.856235 , 1.855621 , 1.855111 , 1.854704 ]) self["CTP"] = 500.0 self["CFRACTION"] = 1.0 self["IDG"] = 4 self["ISH"] = 4 self["ELEVATION"] = 0.2 self["S2M"]["T"] = 288.2 self["S2M"]["Q"] = 7488.49927299 self["S2M"]["O"] = 0.0164756909121 self["S2M"]["P"] = 1100.0 self["S2M"]["U"] = -6.0 self["S2M"]["V"] = 0.0 self["S2M"]["WFETC"] = 200000.0 self["SKIN"]["SURFTYPE"] = 0 self["SKIN"]["WATERTYPE"] = 1 self["SKIN"]["T"] = 286.2 self["SKIN"]["SALINITY"] = 37.0 self["SKIN"]["FOAM_FRACTION"] = 0.9 self["SKIN"]["FASTEM"] = numpy.array([ 3. , 5. , 15. , 0.1, 0.3]) self["ZENANGLE"] = 60.0 self["AZANGLE"] = 45.0 self["SUNZENANGLE"] = 0.0 self["SUNAZANGLE"] = 0.0 self["LATITUDE"] = -45.0 self["GAS_UNITS"] = 2 self["BE"] = 0.7 self["COSBK"] = 1.0 self["DATE"] = numpy.array([1976, 7, 1]) self["TIME"] = numpy.array([ 9, 45, 0])
""" Profile ../profile-datasets-py/standard54lev_allgas/006.py file automaticaly created by prof_gen.py script """ self['ID'] = '../profile-datasets-py/standard54lev_allgas/006.py' self['Q'] = numpy.array([1.426104, 2.257402, 3.03034, 3.699672, 4.316104, 4.781328, 5.074789, 5.191768, 5.249242, 5.198793, 5.076913, 4.972532, 4.91453, 4.852898, 4.777849, 4.686928, 4.577257, 4.47492, 4.328593, 4.162933, 4.003117, 3.899101, 3.843132, 3.836609, 3.909549, 4.651015, 5.633789, 9.117552, 15.47465, 26.42655, 44.88401, 74.59426, 142.8186, 277.4007, 426.1005, 567.4287, 800.0604, 1058.093, 1343.64, 1752.93, 2172.244, 2704.413, 3210.867, 3873.733, 4484.212, 5050.737, 5568.375, 6036.327, 6535.43, 6976.786, 7361.222, 7689.452, 7962.082, 8179.611]) self['P'] = numpy.array([0.005, 0.0131, 0.0304, 0.0644, 0.1263, 0.2324, 0.4052, 0.6749, 1.0801, 1.6691, 2.5011, 3.6462, 5.1864, 7.215, 9.8368, 13.1672, 17.3308, 22.4601, 28.6937, 36.1735, 45.043, 55.4433, 67.5109, 81.3744, 97.1505, 114.9415, 134.8318, 156.8846, 181.1394, 207.6092, 236.2784, 267.1012, 300.0, 334.8648, 371.5529, 409.8893, 449.6677, 490.6516, 532.5769, 575.1538, 618.0706, 660.9965, 703.5863, 745.4841, 786.3278, 825.7546, 863.4047, 898.9275, 931.9853, 962.2587, 989.451, 1013.292, 1033.544, 1050.0]) self['CO2'] = numpy.array([395.3999, 398.5343, 399.9988, 399.9985, 399.9983, 399.9981, 399.998, 399.9979, 399.9979, 399.9979, 399.998, 399.998, 399.998, 399.9981, 399.9981, 399.9981, 399.9982, 399.9982, 399.9983, 399.9983, 399.9984, 399.9984, 399.9985, 399.9985, 399.9984, 399.9981, 399.9977, 399.9964, 399.9938, 399.9894, 399.982, 399.9702, 399.9429, 399.889, 399.8296, 399.773, 399.68, 399.5768, 399.4625, 399.2988, 399.1311, 398.9182, 398.7157, 398.4505, 398.2063, 397.9797, 397.7726, 397.5855, 397.3858, 397.2093, 397.0555, 396.9242, 396.8152, 396.7282]) self['CO'] = numpy.array([3.006473, 1.266976, 0.5366185, 0.2717527, 0.1695409, 0.1036351, 0.06933339, 0.05139415, 0.03742709, 0.03095425, 0.02632858, 0.02303297, 0.02070408, 0.01909184, 0.01784013, 0.01681581, 0.01599694, 0.01531286, 0.01422425, 0.01286412, 0.01231995, 0.01334847, 0.01663313, 0.02209159, 0.0283446, 0.03651177, 0.04682141, 0.05899244, 0.07185076, 0.08310109, 0.09221893, 0.1001262, 0.107673, 0.1145722, 0.1202481, 0.124501, 0.1272514, 0.1290889, 0.1299612, 0.1304954, 0.1309834, 0.1328406, 0.1346017, 0.1368069, 0.1388378, 0.1407628, 0.1425322, 0.1441306, 0.1455581, 0.1468203, 0.1479198, 0.1488585, 0.1496383, 0.1502604]) self['T'] = numpy.array([190.1948, 201.2227, 211.8073, 223.5081, 236.1925, 248.2361, 259.807, 268.0701, 270.6029, 261.7915, 253.267, 245.5053, 238.5085, 232.1688, 228.139, 225.8658, 224.038, 222.399, 220.8289, 219.3256, 217.9126, 216.7, 216.7, 216.7, 216.7, 216.7, 216.7, 216.7, 216.7, 216.7432, 218.4824, 223.6361, 228.5799, 233.4172, 238.0864, 242.5655, 246.9064, 251.0443, 254.9895, 258.7664, 262.3204, 265.715, 268.8759, 271.8706, 274.6321, 277.2104, 279.572, 281.7077, 283.6703, 285.4074, 286.9218, 288.2157, 289.291, 290.1495]) self['N2O'] = numpy.array([0.00058949, 0.00075468, 0.00096809, 0.00125112, 0.0016248, 0.00214874, 0.00293271, 0.00428657, 0.0092427, 0.01995902, 0.03780855, 0.0603733, 0.08523385, 0.1076577, 0.1283284, 0.1459624, 0.158538, 0.170006, 0.1847754, 0.1990045, 0.2149292, 0.2367853, 0.2566467, 0.2723064, 0.2838979, 0.2921719, 0.2981589, 0.303073, 0.3074429, 0.3114339, 0.3149953, 0.3179603, 0.3191744, 0.3196972, 0.3198636, 0.3198184, 0.319744, 0.3196614, 0.31957, 0.3194391, 0.3193049, 0.3191346, 0.3189725, 0.3187604, 0.3185651, 0.3183838, 0.3182181, 0.3180684, 0.3179087, 0.3177674, 0.3176444, 0.3175394, 0.3174521, 0.3173825]) self['O3'] = numpy.array([0.4733033, 0.2866183, 0.2652103, 0.4141047, 0.7844496, 1.162695, 1.749622, 2.75465, 4.070742, 5.58158, 6.842906, 7.649586, 7.826192, 7.545704, 6.986519, 6.36272, 5.814365, 5.346036, 4.739365, 4.025, 3.221477, 2.56929, 1.908546, 1.401016, 0.9982378, 0.7234799, 0.5496462, 0.4262601, 0.3422891, 0.2686645, 0.1932536, 0.1292094, 0.09860009, 0.07334837, 0.05685836, 0.05025954, 0.04424968, 0.04010144, 0.0380049, 0.0358197, 0.03378367, 0.03340628, 0.03305161, 0.0326579, 0.03229529, 0.03126486, 0.03014303, 0.02912988, 0.02830236, 0.02757059, 0.02693318, 0.02638897, 0.02593695, 0.02557628]) self['CH4'] = numpy.array([0.1649998, 0.1649996, 0.1649995, 0.1649994, 0.1649993, 0.1664772, 0.1803118, 0.2178496, 0.302864, 0.4371518, 0.5733743, 0.6955555, 0.7936361, 0.8785965, 0.9563341, 1.025436, 1.084469, 1.135591, 1.213933, 1.334547, 1.461955, 1.567482, 1.640358, 1.68946, 1.727294, 1.757083, 1.781284, 1.802129, 1.820006, 1.834323, 1.845264, 1.853824, 1.860494, 1.864299, 1.866543, 1.867794, 1.868116, 1.868021, 1.867487, 1.866722, 1.865938, 1.864943, 1.863996, 1.862756, 1.861615, 1.860555, 1.859587, 1.858712, 1.857779, 1.856953, 1.856235, 1.855621, 1.855111, 1.854704]) self['CTP'] = 500.0 self['CFRACTION'] = 1.0 self['IDG'] = 4 self['ISH'] = 4 self['ELEVATION'] = 0.2 self['S2M']['T'] = 288.2 self['S2M']['Q'] = 7488.49927299 self['S2M']['O'] = 0.0164756909121 self['S2M']['P'] = 1100.0 self['S2M']['U'] = -6.0 self['S2M']['V'] = 0.0 self['S2M']['WFETC'] = 200000.0 self['SKIN']['SURFTYPE'] = 0 self['SKIN']['WATERTYPE'] = 1 self['SKIN']['T'] = 286.2 self['SKIN']['SALINITY'] = 37.0 self['SKIN']['FOAM_FRACTION'] = 0.9 self['SKIN']['FASTEM'] = numpy.array([3.0, 5.0, 15.0, 0.1, 0.3]) self['ZENANGLE'] = 60.0 self['AZANGLE'] = 45.0 self['SUNZENANGLE'] = 0.0 self['SUNAZANGLE'] = 0.0 self['LATITUDE'] = -45.0 self['GAS_UNITS'] = 2 self['BE'] = 0.7 self['COSBK'] = 1.0 self['DATE'] = numpy.array([1976, 7, 1]) self['TIME'] = numpy.array([9, 45, 0])
class Solution: def solveNQueens(self, n: int) -> List[List[str]]: ans = [] def string_representation(board): s = [] for col in board: s.append("." * (col) + "Q" + "." * (n - col - 1)) return s def solve(row, used_columns, used_diagonals, used_diagonals2, previous): if row == n: ans.append(string_representation(previous)) return for col in range(n): if col not in used_columns: diag = row - col diag2 = row + col if diag not in used_diagonals and diag2 not in used_diagonals2: used_columns.add(col) used_diagonals.add(diag) used_diagonals2.add(diag2) solve(row+1, used_columns, used_diagonals, used_diagonals2, previous + [col]) used_columns.remove(col) used_diagonals.remove(diag) used_diagonals2.remove(diag2) solve(0, set(), set(), set(), []) return ans
class Solution: def solve_n_queens(self, n: int) -> List[List[str]]: ans = [] def string_representation(board): s = [] for col in board: s.append('.' * col + 'Q' + '.' * (n - col - 1)) return s def solve(row, used_columns, used_diagonals, used_diagonals2, previous): if row == n: ans.append(string_representation(previous)) return for col in range(n): if col not in used_columns: diag = row - col diag2 = row + col if diag not in used_diagonals and diag2 not in used_diagonals2: used_columns.add(col) used_diagonals.add(diag) used_diagonals2.add(diag2) solve(row + 1, used_columns, used_diagonals, used_diagonals2, previous + [col]) used_columns.remove(col) used_diagonals.remove(diag) used_diagonals2.remove(diag2) solve(0, set(), set(), set(), []) return ans
class Node: def __init__(self, data): self.data = data self.next = None class Circular_Linked_List: def __init__(self): self.head = None def Sorted_Insert(self, new_node): current = self.head if current is None: new_node.next = new_node self.head = new_node elif current.data >= new_node.data: while current.next != self.head: current = current.next current.next = new_node new_node.next = self.head self.head = new_node else: while current.next != self.head and current.next.data < new_node.data: current = current.next new_node.next = current.next current.next = new_node def Display(self): temp = self.head if self.head is not None: while temp: print(temp.data, "->", end=" ") temp = temp.next if temp == self.head: print(temp.data) break if __name__ == "__main__": L_list = Circular_Linked_List() Test_list = [12, 56, 2, 11, 1, 90] for keys in Test_list: temp = Node(keys) L_list.Sorted_Insert(temp) print("Sorted Inserted Circular Linked List: ") L_list.Display()
class Node: def __init__(self, data): self.data = data self.next = None class Circular_Linked_List: def __init__(self): self.head = None def sorted__insert(self, new_node): current = self.head if current is None: new_node.next = new_node self.head = new_node elif current.data >= new_node.data: while current.next != self.head: current = current.next current.next = new_node new_node.next = self.head self.head = new_node else: while current.next != self.head and current.next.data < new_node.data: current = current.next new_node.next = current.next current.next = new_node def display(self): temp = self.head if self.head is not None: while temp: print(temp.data, '->', end=' ') temp = temp.next if temp == self.head: print(temp.data) break if __name__ == '__main__': l_list = circular__linked__list() test_list = [12, 56, 2, 11, 1, 90] for keys in Test_list: temp = node(keys) L_list.Sorted_Insert(temp) print('Sorted Inserted Circular Linked List: ') L_list.Display()
def p1(): lines = open('../stream/input03.txt').read().splitlines() period = 31 #in chars mat = [] for line in lines: mat_row = [1 if x == '#' else 0 for x in list(line)] mat.append(mat_row) count = 0 j_ = 0 for i in range(0, len(mat)): # print(mat[i]) j = j_ % period j_ += 3 if (mat[i][j] == 1): count += 1 return str(count) def p2(): lines = open('../stream/input03.txt').read().splitlines() period = 31 #in chars mat = [] for line in lines: mat_row = [1 if x == '#' else 0 for x in list(line)] mat.append(mat_row) ld = [ [1,1], [3,1], [5,1], [7,1], [1,2] ] lcount = [] for d in ld: dx = d[0] dy = d[1] j_ = 0 count = 0 for i in range(0, len(mat), dy): j = j_ % period j_ += dx if (mat[i][j] == 1): count += 1 lcount.append(count) ans = 1 for r in lcount: ans = r*ans return str(ans) if __name__ == '__main__': print('Part 1 : ', p1()) print('Part 2 : ', p2()) exit()
def p1(): lines = open('../stream/input03.txt').read().splitlines() period = 31 mat = [] for line in lines: mat_row = [1 if x == '#' else 0 for x in list(line)] mat.append(mat_row) count = 0 j_ = 0 for i in range(0, len(mat)): j = j_ % period j_ += 3 if mat[i][j] == 1: count += 1 return str(count) def p2(): lines = open('../stream/input03.txt').read().splitlines() period = 31 mat = [] for line in lines: mat_row = [1 if x == '#' else 0 for x in list(line)] mat.append(mat_row) ld = [[1, 1], [3, 1], [5, 1], [7, 1], [1, 2]] lcount = [] for d in ld: dx = d[0] dy = d[1] j_ = 0 count = 0 for i in range(0, len(mat), dy): j = j_ % period j_ += dx if mat[i][j] == 1: count += 1 lcount.append(count) ans = 1 for r in lcount: ans = r * ans return str(ans) if __name__ == '__main__': print('Part 1 : ', p1()) print('Part 2 : ', p2()) exit()
class Time: def __init__(self, hour=None, minute=None, second=None): self.hour = hour self.minute = minute self.second = second def sum(self, time): result = Time() result.second = self.second + time.second result.minute = self.minute + time.minute result.hour = self.hour + time.hour if result.second>=60: result.second-=60 result.minute+=1 if result.minute>=60: result.minute-=60 result.hour+=1 return result def sub(self, time): result = Time() result.second = self.second - time.second result.minute = self.minute - time.minute result.hour = self.hour - time.hour if result.second<0: result.minute-=1 result.second+=60 if result.minute<0: result.hour-=1 result.minute+=60 return result def secToTime(self): result = Time() result.hour = self.second//3600 result.minute = (self.second%3600)//60 result.second = (self.second%3600)%60 return result def timeToSec(self): return self.hour*3600 + self.minute*60 + self.second def show(self): return str(self.hour)+':'+str(self.minute)+':'+str(self.second) t1list = list(map(int, input('time1: e.g. 2:16:18\n').split(':'))) t2list = list(map(int, input('time2: e.g. 2:16:18\n').split(':'))) sec = Time(0 ,0 ,int(input('give me sec convert to time: '))) t1 = Time(t1list[0], t1list[1], t1list[2]) t2 = Time(t2list[0], t2list[1], t2list[2]) print('sum: %s\tsub: %s\ttimeToSec: %s\tsecToTime: %s'%((t1.sum(t2)).show(), t1.sub(t2).show(), t1.timeToSec(), (sec.secToTime()).show()))
class Time: def __init__(self, hour=None, minute=None, second=None): self.hour = hour self.minute = minute self.second = second def sum(self, time): result = time() result.second = self.second + time.second result.minute = self.minute + time.minute result.hour = self.hour + time.hour if result.second >= 60: result.second -= 60 result.minute += 1 if result.minute >= 60: result.minute -= 60 result.hour += 1 return result def sub(self, time): result = time() result.second = self.second - time.second result.minute = self.minute - time.minute result.hour = self.hour - time.hour if result.second < 0: result.minute -= 1 result.second += 60 if result.minute < 0: result.hour -= 1 result.minute += 60 return result def sec_to_time(self): result = time() result.hour = self.second // 3600 result.minute = self.second % 3600 // 60 result.second = self.second % 3600 % 60 return result def time_to_sec(self): return self.hour * 3600 + self.minute * 60 + self.second def show(self): return str(self.hour) + ':' + str(self.minute) + ':' + str(self.second) t1list = list(map(int, input('time1: e.g. 2:16:18\n').split(':'))) t2list = list(map(int, input('time2: e.g. 2:16:18\n').split(':'))) sec = time(0, 0, int(input('give me sec convert to time: '))) t1 = time(t1list[0], t1list[1], t1list[2]) t2 = time(t2list[0], t2list[1], t2list[2]) print('sum: %s\tsub: %s\ttimeToSec: %s\tsecToTime: %s' % (t1.sum(t2).show(), t1.sub(t2).show(), t1.timeToSec(), sec.secToTime().show()))
# -*- coding: utf-8 -*- """ Contains a bunch of information about this package. """ __version__ = "0.1.5" __author__ = "Benjamin F. Maier" __copyright__ = "Copyright 2020-2021, " + __author__ __credits__ = [__author__] __license__ = "MIT" __maintainer__ = __author__ __email__ = "contact@benmaier.org" __status__ = "Development"
""" Contains a bunch of information about this package. """ __version__ = '0.1.5' __author__ = 'Benjamin F. Maier' __copyright__ = 'Copyright 2020-2021, ' + __author__ __credits__ = [__author__] __license__ = 'MIT' __maintainer__ = __author__ __email__ = 'contact@benmaier.org' __status__ = 'Development'
with open("./input.txt") as f: arr = [ line.strip() for line in f.readlines()] annoying = arr[0].replace("=", "|").replace(".", "|").replace(",", "|").replace(" ", "|").split("|") nums = [int(thing) for thing in annoying if thing.replace("-", "").isnumeric()] def contained(loc): return nums[0] <= loc[0] <= nums[1] and nums[2] <= loc[1] <= nums[3] def increment(paws, vel): paws[0] += vel[0] paws[1] += vel[1] if (vel[0] > 0): vel[0] -= 1 elif vel[0] < 0: vel[0] += 1 vel[1] -= 1 all_vels = set() max_max_y = 0 for x in range(0, nums[1] + 5): for y in range(nums[2] - 5, 100): paws = [0, 0] vel = [x, y] max_y = 0 while(paws[1] > nums[2]): increment(paws, vel) max_y = max(max_y, paws[1]) if contained(paws): max_max_y = max(max_y, max_max_y) if (x, y) not in all_vels: all_vels.add((x, y)) print(x, y, max_y) print(len(all_vels)) print(max_max_y)
with open('./input.txt') as f: arr = [line.strip() for line in f.readlines()] annoying = arr[0].replace('=', '|').replace('.', '|').replace(',', '|').replace(' ', '|').split('|') nums = [int(thing) for thing in annoying if thing.replace('-', '').isnumeric()] def contained(loc): return nums[0] <= loc[0] <= nums[1] and nums[2] <= loc[1] <= nums[3] def increment(paws, vel): paws[0] += vel[0] paws[1] += vel[1] if vel[0] > 0: vel[0] -= 1 elif vel[0] < 0: vel[0] += 1 vel[1] -= 1 all_vels = set() max_max_y = 0 for x in range(0, nums[1] + 5): for y in range(nums[2] - 5, 100): paws = [0, 0] vel = [x, y] max_y = 0 while paws[1] > nums[2]: increment(paws, vel) max_y = max(max_y, paws[1]) if contained(paws): max_max_y = max(max_y, max_max_y) if (x, y) not in all_vels: all_vels.add((x, y)) print(x, y, max_y) print(len(all_vels)) print(max_max_y)
ech_genshis = 2 ou_genshis = 2 suu_bunshis = 12 zenn_genshis = suu_bunshis*(ech_genshis + ou_genshis) print(zenn_genshis)
ech_genshis = 2 ou_genshis = 2 suu_bunshis = 12 zenn_genshis = suu_bunshis * (ech_genshis + ou_genshis) print(zenn_genshis)
def string_anagrams(s1,s2): if(sorted(s1)==sorted(s2)): print("The strings are anagrams.") else: print("The strings aren't anagrams.") s1=input("Enter first string:") s2=input("Enter second string:") string_anagrams(s1,s2)
def string_anagrams(s1, s2): if sorted(s1) == sorted(s2): print('The strings are anagrams.') else: print("The strings aren't anagrams.") s1 = input('Enter first string:') s2 = input('Enter second string:') string_anagrams(s1, s2)
#:copyright: Copyright 2009-2010 by the Vesper team, see AUTHORS. #:license: Dual licenced under the GPL or Apache2 licences, see LICENSE. @Action def testaction(kw, retval): query = "{comment where(label='%s')}" % kw._name #XXX qnames are broken result = kw.__server__.defaultStore.query(query) template = '<html><body>%s</body></html>' if result: return template % result[0]['comment'] else: kw._status = 404 return template % 'not found!' actions = { 'http-request' : [testaction] } application_model = [{ 'id' : 'a_resource', 'label' : 'foo', 'comment' : 'page content.' }] createApp(actions=actions, application_model=application_model)
@Action def testaction(kw, retval): query = "{comment where(label='%s')}" % kw._name result = kw.__server__.defaultStore.query(query) template = '<html><body>%s</body></html>' if result: return template % result[0]['comment'] else: kw._status = 404 return template % 'not found!' actions = {'http-request': [testaction]} application_model = [{'id': 'a_resource', 'label': 'foo', 'comment': 'page content.'}] create_app(actions=actions, application_model=application_model)
#!/usr/bin/env python ''' Copyright (C) 2019, WAFW00F Developers. See the LICENSE file for copying permission. ''' NAME = 'Instart DX (Instart Logic)' def is_waf(self): schema1 = [ self.matchHeader(('X-Instart-Request-ID', '.+')), self.matchHeader(('X-Instart-Cache', '.+')), self.matchHeader(('X-Instart-WL', '.+')) ] schema2 = [ self.matchContent(r'the requested url was rejected'), self.matchContent(r'please consult with your administrator'), self.matchContent(r'your support id is') ] if any(i for i in schema1): return True if all(i for i in schema2): return True return False
""" Copyright (C) 2019, WAFW00F Developers. See the LICENSE file for copying permission. """ name = 'Instart DX (Instart Logic)' def is_waf(self): schema1 = [self.matchHeader(('X-Instart-Request-ID', '.+')), self.matchHeader(('X-Instart-Cache', '.+')), self.matchHeader(('X-Instart-WL', '.+'))] schema2 = [self.matchContent('the requested url was rejected'), self.matchContent('please consult with your administrator'), self.matchContent('your support id is')] if any((i for i in schema1)): return True if all((i for i in schema2)): return True return False
class Codec: def __init__(self): self.counter = 0 self.dic = {} def encode(self, longUrl): """Encodes a URL to a shortened URL. :type longUrl: str :rtype: str """ self.dic[self.counter] = longUrl self.counter += 1 return self.counter-1 def decode(self, shortUrl): """Decodes a shortened URL to its original URL. :type shortUrl: str :rtype: str """ return self.dic[shortUrl] # Your Codec object will be instantiated and called as such: # codec = Codec() # codec.decode(codec.encode(url))
class Codec: def __init__(self): self.counter = 0 self.dic = {} def encode(self, longUrl): """Encodes a URL to a shortened URL. :type longUrl: str :rtype: str """ self.dic[self.counter] = longUrl self.counter += 1 return self.counter - 1 def decode(self, shortUrl): """Decodes a shortened URL to its original URL. :type shortUrl: str :rtype: str """ return self.dic[shortUrl]
# day 6 question 2 # more customs declarations groups = [] group = {} with open('input.txt', 'r') as file: num = 0 for line in file: line = line.strip() if not line: group['num'] = num num = 0 groups.append(group) group = {} else: num += 1 for char in line: if char in group.keys(): group[char] += 1 else: group[char] = 1 def count_same(group): q_same = 0 for key in group.keys(): if key != 'num' and group[key] == group['num']: q_same += 1 return q_same print(sum([count_same(group) for group in groups]))
groups = [] group = {} with open('input.txt', 'r') as file: num = 0 for line in file: line = line.strip() if not line: group['num'] = num num = 0 groups.append(group) group = {} else: num += 1 for char in line: if char in group.keys(): group[char] += 1 else: group[char] = 1 def count_same(group): q_same = 0 for key in group.keys(): if key != 'num' and group[key] == group['num']: q_same += 1 return q_same print(sum([count_same(group) for group in groups]))
__version__ = '0.1.3' dataPaths = {'reference': 'src/db/human_GRCh38_no_alt_analysis_set_chr22only_cyp2d7-masked.fasta', 'database' : 'src/db/CYP2D6.db', 'spacer' : 'src/db/spacer.fasta'} database = {'alleleTable' : 'pbAA_consensus', 'variantTable': 'SampleVariants', 'variantAnnot': 'SampleVariants_annotated', 'summaryTable': 'type_summary', 'shortSummary': 'type_summary_short', 'supportField': 'supportReads', 'maxTries' : 10} tableMap = {database['alleleTable']: {'uuid' :'uuid', 'runName' :'runName', 'bioSample' :'bioSample', 'barcode' :'barcode', 'guide' :'guide', 'cluster' :'cluster', 'numreads' :'numreads', 'uchime_score' :'uchime_score', 'uchime_left_parent' :'uchime_left_parent', 'uchime_right_parent':'uchime_right_parent', 'cluster_freq' :'cluster_freq', 'diversity' :'diversity', 'avg_quality' :'avg_quality', 'filters' :'filters', 'source' :'source', 'clusterStatus' :'clusterStatus', 'chrom' :'chrom', 'alnStart' :'alnStart', 'alnStop' :'alnStop', 'hasSpacer' :'hasSpacer', 'csString' :'csString', 'length' :'length', 'status' :'clusterStatus', 'datetime' :'datetime'}, database['variantTable']: {'uuid' :'uuid', 'CHR' :'CHR', 'POS' :'POS', 'VAR' :'VAR', database['supportField'] :database['supportField']}} caller = {'namePattern' : 'sample-(?P<barcode>.*)_guide-(?P<guide>.*)_cluster-(?P<cluster>[0-9]+)_ReadCount-(?P<numreads>[0-9]+)', 'minFrac' : 0.01, 'minLength' : 2000, 'preset' : 'gapstrict', 'dateFormat' : '%Y-%m-%d %H:%M:%S', 'readInfo' : ['readName', 'guide', 'orient', 'secondBestGuide', 'Score', 'ScoreParts', 'Sample', 'length', 'avgQuality', 'ClusterId', 'ClusterSize'], 'sampleMapCols': ['Barcode','Bio Sample Name']} typer = {'sortColumns' : ['bioSample','barcode','type','cluster']} vcf = {'defaultQual' : 200, 'minFreq' : 0.05}
__version__ = '0.1.3' data_paths = {'reference': 'src/db/human_GRCh38_no_alt_analysis_set_chr22only_cyp2d7-masked.fasta', 'database': 'src/db/CYP2D6.db', 'spacer': 'src/db/spacer.fasta'} database = {'alleleTable': 'pbAA_consensus', 'variantTable': 'SampleVariants', 'variantAnnot': 'SampleVariants_annotated', 'summaryTable': 'type_summary', 'shortSummary': 'type_summary_short', 'supportField': 'supportReads', 'maxTries': 10} table_map = {database['alleleTable']: {'uuid': 'uuid', 'runName': 'runName', 'bioSample': 'bioSample', 'barcode': 'barcode', 'guide': 'guide', 'cluster': 'cluster', 'numreads': 'numreads', 'uchime_score': 'uchime_score', 'uchime_left_parent': 'uchime_left_parent', 'uchime_right_parent': 'uchime_right_parent', 'cluster_freq': 'cluster_freq', 'diversity': 'diversity', 'avg_quality': 'avg_quality', 'filters': 'filters', 'source': 'source', 'clusterStatus': 'clusterStatus', 'chrom': 'chrom', 'alnStart': 'alnStart', 'alnStop': 'alnStop', 'hasSpacer': 'hasSpacer', 'csString': 'csString', 'length': 'length', 'status': 'clusterStatus', 'datetime': 'datetime'}, database['variantTable']: {'uuid': 'uuid', 'CHR': 'CHR', 'POS': 'POS', 'VAR': 'VAR', database['supportField']: database['supportField']}} caller = {'namePattern': 'sample-(?P<barcode>.*)_guide-(?P<guide>.*)_cluster-(?P<cluster>[0-9]+)_ReadCount-(?P<numreads>[0-9]+)', 'minFrac': 0.01, 'minLength': 2000, 'preset': 'gapstrict', 'dateFormat': '%Y-%m-%d %H:%M:%S', 'readInfo': ['readName', 'guide', 'orient', 'secondBestGuide', 'Score', 'ScoreParts', 'Sample', 'length', 'avgQuality', 'ClusterId', 'ClusterSize'], 'sampleMapCols': ['Barcode', 'Bio Sample Name']} typer = {'sortColumns': ['bioSample', 'barcode', 'type', 'cluster']} vcf = {'defaultQual': 200, 'minFreq': 0.05}
class MyClass: """a multi-line docstring""" class InnerClass: """ a multi-line docstring""" class MyClass: """a multi-line docstring """ class InnerClass: """a multi-line docstring """ class MyClass: """ a docstring""" class InnerClass: """ a docstring""" class MyClass: """A docstring""" class InnerClass: """A docstring"""
class Myclass: """a multi-line docstring""" class Innerclass: """ a multi-line docstring""" class Myclass: """a multi-line docstring """ class Innerclass: """a multi-line docstring """ class Myclass: """ a docstring""" class Innerclass: """ a docstring""" class Myclass: """A docstring""" class Innerclass: """A docstring"""
""" write your first program in python3 python3 helloworld.py """ print("HelloWorld in python!!")
""" write your first program in python3 python3 helloworld.py """ print('HelloWorld in python!!')
class Solution: def maxSumRangeQuery(self, nums: List[int], requests: List[List[int]]) -> int: n = len(nums) count = [0] * (n + 1) for start, end in requests: count[start] += 1 count[end + 1] -= 1 for i in range(1, n + 1): count[i] += count[i - 1] total = 0 for c, num in zip(sorted(count[:-1]), sorted(nums)): total += c * num return total % (10 ** 9 + 7)
class Solution: def max_sum_range_query(self, nums: List[int], requests: List[List[int]]) -> int: n = len(nums) count = [0] * (n + 1) for (start, end) in requests: count[start] += 1 count[end + 1] -= 1 for i in range(1, n + 1): count[i] += count[i - 1] total = 0 for (c, num) in zip(sorted(count[:-1]), sorted(nums)): total += c * num return total % (10 ** 9 + 7)
__all__ = [ 'DocParseMeta' ] class DocParseMeta(type): @staticmethod def __new__(meta, clsname, bases, clsdict): if '__doc__' in clsdict: lexer = meta.lexer() parser = meta.parser() lexer.cls_name = parser.cls_name = clsname lexer.cls_qualname = parser.cls_qualname = clsdict['__qualname__'] lexer.cls_module = parser.cls_module = clsdict['__module__'] parsedict = parser.parse(lexer.tokenize(clsdict['__doc__'])) assert isinstance(parsedict, dict), 'Parser must return a dictionary' clsdict.update(parsedict) return super().__new__(meta, clsname, bases, clsdict) @classmethod def __init_subclass__(cls): assert hasattr(cls, 'parser') and hasattr(cls, 'lexer')
__all__ = ['DocParseMeta'] class Docparsemeta(type): @staticmethod def __new__(meta, clsname, bases, clsdict): if '__doc__' in clsdict: lexer = meta.lexer() parser = meta.parser() lexer.cls_name = parser.cls_name = clsname lexer.cls_qualname = parser.cls_qualname = clsdict['__qualname__'] lexer.cls_module = parser.cls_module = clsdict['__module__'] parsedict = parser.parse(lexer.tokenize(clsdict['__doc__'])) assert isinstance(parsedict, dict), 'Parser must return a dictionary' clsdict.update(parsedict) return super().__new__(meta, clsname, bases, clsdict) @classmethod def __init_subclass__(cls): assert hasattr(cls, 'parser') and hasattr(cls, 'lexer')
def example_1(): def drop_first_last(grades): first, *middle, last = grades return sum(middle) / len(middle) print(drop_first_last([15, 20, 25, 30])) def example_2(): record = ('Dave', 'dave@example.com', '111-111', '222-222') name, email, *phone_numbers = record print(name, email, phone_numbers) def example_3(): sales_record = [15, 25, 30] *trailing_qtrs, current_qtr = sales_record trailing_avg = sum(trailing_qtrs) / len(trailing_qtrs) print(trailing_qtrs, trailing_avg, current_qtr) def example_4(): records = [ ('foo', 1, 2), ('bar', 'hello'), ('foo', 3, 4) ] def do_foo(x, y): print('foo', x, y) def do_bar(s): print('bar', s) for tag, *args in records: if tag == 'foo': do_foo(*args) elif tag == 'bar': do_bar(*args) def example_5(): line = 'nobody:*:-2:-2:user:/var/empty:/usr/bin/false' uname, *fields, homedir, sh = line.split(':') print(uname, homedir, sh) def example_6(): record = ('ACME', 50, 123.45, (12, 18, 2012)) name, *_, (*_, year) = record print(name, year) def example_7(): items = [1, 2, 3, 4, 5] head, *tail = items print(head, tail) def example_8(): def my_sum(items): head, *tail = items return head + my_sum(tail) if tail else head print(my_sum([1, 2, 3, 4, 5])) if __name__ == '__main__': example_1() example_2() example_3() example_4() example_5() example_6() example_7() example_8()
def example_1(): def drop_first_last(grades): (first, *middle, last) = grades return sum(middle) / len(middle) print(drop_first_last([15, 20, 25, 30])) def example_2(): record = ('Dave', 'dave@example.com', '111-111', '222-222') (name, email, *phone_numbers) = record print(name, email, phone_numbers) def example_3(): sales_record = [15, 25, 30] (*trailing_qtrs, current_qtr) = sales_record trailing_avg = sum(trailing_qtrs) / len(trailing_qtrs) print(trailing_qtrs, trailing_avg, current_qtr) def example_4(): records = [('foo', 1, 2), ('bar', 'hello'), ('foo', 3, 4)] def do_foo(x, y): print('foo', x, y) def do_bar(s): print('bar', s) for (tag, *args) in records: if tag == 'foo': do_foo(*args) elif tag == 'bar': do_bar(*args) def example_5(): line = 'nobody:*:-2:-2:user:/var/empty:/usr/bin/false' (uname, *fields, homedir, sh) = line.split(':') print(uname, homedir, sh) def example_6(): record = ('ACME', 50, 123.45, (12, 18, 2012)) (name, *_, (*_, year)) = record print(name, year) def example_7(): items = [1, 2, 3, 4, 5] (head, *tail) = items print(head, tail) def example_8(): def my_sum(items): (head, *tail) = items return head + my_sum(tail) if tail else head print(my_sum([1, 2, 3, 4, 5])) if __name__ == '__main__': example_1() example_2() example_3() example_4() example_5() example_6() example_7() example_8()
class Capability(object): def enabled_for(self, user): raise NotImplementedError() # pragma: no cover class RoleBasedCapability(Capability): def __init__(self, *roles): super(RoleBasedCapability, self).__init__() self.roles = roles def enabled_for(self, user): return any(user.has_role(role) for role in self.roles) class AnyUser(Capability): def enabled_for(self, user): return user.is_authenticated _MODERATORS = RoleBasedCapability('moderator', 'admin') _ADMINS = RoleBasedCapability('admin') _PROXIES = RoleBasedCapability('proxy') _ALL = AnyUser() CAPABILITIES = { 'admin': _ADMINS, 'archive_session': _MODERATORS, 'comment_test': _ALL, 'comment_session': _ALL, 'edit_user_roles': _ADMINS, }
class Capability(object): def enabled_for(self, user): raise not_implemented_error() class Rolebasedcapability(Capability): def __init__(self, *roles): super(RoleBasedCapability, self).__init__() self.roles = roles def enabled_for(self, user): return any((user.has_role(role) for role in self.roles)) class Anyuser(Capability): def enabled_for(self, user): return user.is_authenticated _moderators = role_based_capability('moderator', 'admin') _admins = role_based_capability('admin') _proxies = role_based_capability('proxy') _all = any_user() capabilities = {'admin': _ADMINS, 'archive_session': _MODERATORS, 'comment_test': _ALL, 'comment_session': _ALL, 'edit_user_roles': _ADMINS}
HTML_STRING= """<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD + dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <link rel="shortcut icon" type="image/png" href= " https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRpq_BhX36ZR3khblEmfr_fisFhix-gtCzQiH6whD2z4w3QfkaTpQ"/> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title> {0} </title> </head> <body> <h1 style="text-align: center"> {1} </h1> <div class="container"> <p class="lead"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ac orci phasellus egestas tellus. Convallis tellus id interdum velit laoreet. Quam viverra orci sagittis eu volutpat odio facilisis. Id diam maecenas ultricies mi eget mauris. Laoreet suspendisse interdum consectetur libero id faucibus nisl tincidunt. Rhoncus aenean vel elit scelerisque mauris. Vulputate mi sit amet mauris commodo quis imperdiet massa tincidunt. Sit amet nisl suscipit adipiscing bibendum. Donec adipiscing tristique risus nec feugiat in fermentum posuere. Gravida rutrum quisque non tellus orci ac auctor</p> </div> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X + 965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH + 8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM + B07jRM" crossorigin="anonymous"></script> </body> </html>""" readme = """ ## {} \n {} A {} project """ extension_html=""" <!DOCTYPE html> <html> <head> <title>{}</title> <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css" /> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE + QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" /> <style> html, body { font-family: "Roboto", sans-serif; font-size: 14px; margin: 0; min-height: 180px; padding: 0; width: 384px; } h1 { font-family: "Roboto", monospace; font-size: 22px; font-weight: 400; margin: 0; color:royalblue; } .modal-content { padding: 0 22px; text-align: center; font-size: 30px; } .logo { padding: 16px; } </style> <script src="popup.js"></script> </head> <body> <div class="modal-header"> <h1 class="logo" style="text-align: center;"> {} </h1> </div> <div class="modal-content"> <h1 id ="text"></h1> </div> <script src="popup.js"></script> </body> </html> """ popupfile =""" function disp() { document.getElementById('text').innerHTML = Sample Chrome Extension Project ; } window.addEventListener('load', disp()); """ linearRegression =""" import numpy as np from sklearn.linearmodel import LinearRegression X=np.array([[1,1],[1,2],[2,3]]) Y = np.dot(X, np.array([1, 2])) + 3 linear=LinearRegression() model=linear.fit(X,Y) print(model.score(X,Y)) """ basic_plot = """ import matplotlib.pyplot as plt import numpy as np X=np.arange(10) Y= np.square(np.arange(10)) plt.plot(X,Y) plt.title(" Number vs Square") plt.xlabel(" Number") plt.ylabel("Square of the Number (X * x)") plt.show() plt.savefig('sample.png') """
html_string = '<!DOCTYPE html>\n<html lang="en">\n<head>\n <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD + dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">\n <link rel="shortcut icon" type="image/png" href= " https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRpq_BhX36ZR3khblEmfr_fisFhix-gtCzQiH6whD2z4w3QfkaTpQ"/>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta http-equiv="X-UA-Compatible" content="ie=edge">\n <title> {0} </title>\n</head>\n<body>\n <h1 style="text-align: center"> {1} </h1> \n <div class="container">\n <p class="lead"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ac orci phasellus egestas tellus. Convallis tellus id interdum velit laoreet. Quam viverra orci sagittis eu volutpat odio facilisis. Id diam maecenas ultricies mi eget mauris. Laoreet suspendisse interdum consectetur libero id faucibus nisl tincidunt. Rhoncus aenean vel elit scelerisque mauris. Vulputate mi sit amet mauris commodo quis imperdiet massa tincidunt. Sit amet nisl suscipit adipiscing bibendum. Donec adipiscing tristique risus nec feugiat in fermentum posuere. Gravida rutrum quisque non tellus orci ac auctor</p>\n\n </div>\n \n \n <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X + 965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH + 8abtTE1Pi6jizo" crossorigin="anonymous"></script>\n <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>\n <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM + B07jRM" crossorigin="anonymous"></script> \n</body>\n</html>' readme = ' ## {} \n {} A {} project ' extension_html = ' \n<!DOCTYPE html>\n<html>\n <head>\n <title>{}</title>\n <link\n href="https://fonts.googleapis.com/css?family=Roboto"\n rel="stylesheet"\n type="text/css"\n />\n <link\n href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"\n rel="stylesheet"\n integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE + QkPxCAFlNEevoEH3Sl0sibVcOQVnN"\n crossorigin="anonymous"\n />\n <style>\n \n html,\n body {\n font-family: "Roboto", sans-serif;\n font-size: 14px;\n margin: 0;\n min-height: 180px;\n padding: 0;\n width: 384px;\n }\n h1 {\n font-family: "Roboto", monospace;\n font-size: 22px;\n font-weight: 400;\n margin: 0;\n color:royalblue;\n }\n \n .modal-content {\n padding: 0 22px;\n text-align: center;\n font-size: 30px;\n }\n \n .logo {\n padding: 16px;\n }\n \n \n \n \n </style>\n <script src="popup.js"></script>\n </head>\n\n <body>\n <div class="modal-header">\n <h1 class="logo" style="text-align: center;">\n {}\n </h1>\n </div>\n <div class="modal-content">\n <h1 id ="text"></h1>\n </div>\n <script src="popup.js"></script>\n </body>\n</html>\n\n' popupfile = "\nfunction disp() {\n document.getElementById('text').innerHTML = Sample Chrome Extension Project ;\n}\n\nwindow.addEventListener('load', disp());\n" linear_regression = '\nimport numpy as np\nfrom sklearn.linearmodel import LinearRegression\nX=np.array([[1,1],[1,2],[2,3]])\nY = np.dot(X, np.array([1, 2])) + 3\nlinear=LinearRegression()\nmodel=linear.fit(X,Y)\nprint(model.score(X,Y))\n' basic_plot = '\nimport matplotlib.pyplot as plt\nimport numpy as np\nX=np.arange(10)\nY= np.square(np.arange(10))\nplt.plot(X,Y)\nplt.title(" Number vs Square")\nplt.xlabel(" Number")\nplt.ylabel("Square of the Number (X * x)")\nplt.show()\nplt.savefig(\'sample.png\')\n '
def cfgGetVal(cfgfile, section, value): secStr = "[{}]".format(section) with open(cfgfile, "r") as fh: inSec = False for line in fh: line = line.strip() if line.startswith("["): if line == secStr: inSec = True else: inSec = False if inSec and line.startswith(value): toks = line.split("=") if len(toks) != 2: print("Error parsing cfgfile {}: Could not parse string {}".format(cfgfile, line)) return None vals = toks[1] vals = vals.strip() valToks = vals.split(",") ret = [] for valStr in valToks: try: val = int(valStr) except: val = float(valStr) ret.append(val) if len(ret) == 1: ret = ret[0] #print("cfgGetVal(): {}/{} = {}".format(section, value, ret)) return ret print("Error: Could not find section/val ({}/{}) in file {}".format(section, value, cfgfile)) return None
def cfg_get_val(cfgfile, section, value): sec_str = '[{}]'.format(section) with open(cfgfile, 'r') as fh: in_sec = False for line in fh: line = line.strip() if line.startswith('['): if line == secStr: in_sec = True else: in_sec = False if inSec and line.startswith(value): toks = line.split('=') if len(toks) != 2: print('Error parsing cfgfile {}: Could not parse string {}'.format(cfgfile, line)) return None vals = toks[1] vals = vals.strip() val_toks = vals.split(',') ret = [] for val_str in valToks: try: val = int(valStr) except: val = float(valStr) ret.append(val) if len(ret) == 1: ret = ret[0] return ret print('Error: Could not find section/val ({}/{}) in file {}'.format(section, value, cfgfile)) return None
names = ('Ariel', 'Maria', 'John', 'Paul') print(names) print(sorted(names)) print(len(names)) print(names[-1]) # This is not possible in tuples >> names[2] = 'Try' # Union names2 = ('Ana','Linda') names3 = names + names2 del(names) del(names2) print(names3) print(names3.count('Ana')) print(names3.index('Ana'))
names = ('Ariel', 'Maria', 'John', 'Paul') print(names) print(sorted(names)) print(len(names)) print(names[-1]) names2 = ('Ana', 'Linda') names3 = names + names2 del names del names2 print(names3) print(names3.count('Ana')) print(names3.index('Ana'))
ROOT_URL = 'https://demo.emro.info' WEBMASTER_EMAIL = 'webmaster@emro.info' SITE_TITLE = 'Null Island Public Health Surveillance' FLAGG_ABR = "null" AUTH = { "technical": [['registered'], ['demo']], "messaging": [['registered'], ['demo']], "download": [['registered'], ['demo']], "explore": [['registered'], ['demo']], "reports": [['registered'], ['demo']], "settings": [['personal'], ['demo']], "report_emails": [['emails'], ['demo']], "fault-report": [['registered'], ['demo']], "admin": [['admin'], ['demo']], } DEFAULT_LANGUAGE = "en" SUPPORTED_LANGUAGES = ["en", "fr"] # Configuration fields that are specific to each frontend component. COMPONENT_CONFIGS = { 'HOMEPAGE_CONFIG': 'country_config/null_homepage.json', 'TECHNICAL_CONFIG': 'country_config/null_technical.json', 'REPORTS_CONFIG': 'country_config/null_reports.json', 'MESSAGING_CONFIG': 'country_config/null_messaging.json', 'DOWNLOAD_CONFIG': 'country_config/null_download.json', 'EXPLORE_CONFIG': 'country_config/null_explore.json' } # Configuration fields that are shared across all the above components. # Fields in the above files with same key path override the fields here. SHARED_CONFIG = { "country": "Null Island", "application": "default", "auth_country": "demo", "titles": { "full": "Null Island <br> Public Health Surveillance", "nav": "<b>Null Island </b> &middot; Public Health Surveillance", "mob_nav": "Health Surveillance" }, "flag": "null.svg", "footer": { "logos": { "who": "transparent.png", "country_partner": "ni.png", "partners": [] }, "partners": [ "The Ministry of Health, Null Island" ], "email": "nullisland@moh.int" }, "main_menu": [{ "text": "Epidemiology", "url": "/technical/", }, { "text": "Reports", "url": "/reports/", }, { "text": "Notifications", "url": "/messaging/", }, { "text": "Tables", "url": "/explore/", }, { "text": "Download", "url": "/download/", }], "glossary": { "region": "kingdom" }, }
root_url = 'https://demo.emro.info' webmaster_email = 'webmaster@emro.info' site_title = 'Null Island Public Health Surveillance' flagg_abr = 'null' auth = {'technical': [['registered'], ['demo']], 'messaging': [['registered'], ['demo']], 'download': [['registered'], ['demo']], 'explore': [['registered'], ['demo']], 'reports': [['registered'], ['demo']], 'settings': [['personal'], ['demo']], 'report_emails': [['emails'], ['demo']], 'fault-report': [['registered'], ['demo']], 'admin': [['admin'], ['demo']]} default_language = 'en' supported_languages = ['en', 'fr'] component_configs = {'HOMEPAGE_CONFIG': 'country_config/null_homepage.json', 'TECHNICAL_CONFIG': 'country_config/null_technical.json', 'REPORTS_CONFIG': 'country_config/null_reports.json', 'MESSAGING_CONFIG': 'country_config/null_messaging.json', 'DOWNLOAD_CONFIG': 'country_config/null_download.json', 'EXPLORE_CONFIG': 'country_config/null_explore.json'} shared_config = {'country': 'Null Island', 'application': 'default', 'auth_country': 'demo', 'titles': {'full': 'Null Island <br> Public Health Surveillance', 'nav': '<b>Null Island </b> &middot; Public Health Surveillance', 'mob_nav': 'Health Surveillance'}, 'flag': 'null.svg', 'footer': {'logos': {'who': 'transparent.png', 'country_partner': 'ni.png', 'partners': []}, 'partners': ['The Ministry of Health, Null Island'], 'email': 'nullisland@moh.int'}, 'main_menu': [{'text': 'Epidemiology', 'url': '/technical/'}, {'text': 'Reports', 'url': '/reports/'}, {'text': 'Notifications', 'url': '/messaging/'}, {'text': 'Tables', 'url': '/explore/'}, {'text': 'Download', 'url': '/download/'}], 'glossary': {'region': 'kingdom'}}
'''input WBWBWBWBWB 9 BBBWW 1 WWWWWW 0 ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest # Problem C if __name__ == '__main__': s = input() count = 0 # See: # https://beta.atcoder.jp/contests/abc047/submissions/1007244 for i in range(len(s) - 1): if s[i] != s[i + 1]: count += 1 print(count)
"""input WBWBWBWBWB 9 BBBWW 1 WWWWWW 0 """ if __name__ == '__main__': s = input() count = 0 for i in range(len(s) - 1): if s[i] != s[i + 1]: count += 1 print(count)
class AttributeTable: def __init__(self, start, size): self.start = start self.size = size
class Attributetable: def __init__(self, start, size): self.start = start self.size = size
""" Author: Ao Wang Date: 08/20/19 Description: Merge Sort Algorithm """ def merge(left, right): result = [] leftInd = 0 rightInd = 0 resultInd = 0 while leftInd < len(left) or rightInd < len(right): if leftInd < len(left) and rightInd < len(right): if left[leftInd] < right[rightInd]: result.append(left[leftInd]) leftInd += 1 else: result.append(right[rightInd]) rightInd += 1 elif leftInd < len(left): result.append(left[leftInd]) leftInd += 1 elif rightInd < len(right): result.append(right[rightInd]) rightInd += 1 return result def mergeSort(nums): if len(nums) == 1: return nums mid = len(nums) // 2 left = [] right = [] for i in range(mid): left.append(nums[i]) for i in range(mid, len(nums)): right.append(nums[i]) left = mergeSort(left) right = mergeSort(right) return merge(left, right) nums = [0, -1, 100, 5, -99, 85, 90, 3] print("Unsorted: " + str(nums)) print("Sorted: " + str(mergeSort(nums)))
""" Author: Ao Wang Date: 08/20/19 Description: Merge Sort Algorithm """ def merge(left, right): result = [] left_ind = 0 right_ind = 0 result_ind = 0 while leftInd < len(left) or rightInd < len(right): if leftInd < len(left) and rightInd < len(right): if left[leftInd] < right[rightInd]: result.append(left[leftInd]) left_ind += 1 else: result.append(right[rightInd]) right_ind += 1 elif leftInd < len(left): result.append(left[leftInd]) left_ind += 1 elif rightInd < len(right): result.append(right[rightInd]) right_ind += 1 return result def merge_sort(nums): if len(nums) == 1: return nums mid = len(nums) // 2 left = [] right = [] for i in range(mid): left.append(nums[i]) for i in range(mid, len(nums)): right.append(nums[i]) left = merge_sort(left) right = merge_sort(right) return merge(left, right) nums = [0, -1, 100, 5, -99, 85, 90, 3] print('Unsorted: ' + str(nums)) print('Sorted: ' + str(merge_sort(nums)))
# -*- coding: utf-8 -*- ADDON_MAPPING = { 'addon_list': { 'resource': 'addon/', 'docs': '', 'methods': ['GET'], }, 'addon_get': { 'resource': 'addon/{id}/', 'docs': '', 'methods': ['GET'], }, 'addon_create': { 'resource': 'addon/', 'docs': '', 'methods': ['POST'], }, 'addon_update': { 'resource': 'addon/{id}/', 'docs': '', 'methods': ['PUT'], }, 'addon_delete': { 'resource': 'addon/{id}/', 'docs': '', 'methods': ['DELETE'], }, }
addon_mapping = {'addon_list': {'resource': 'addon/', 'docs': '', 'methods': ['GET']}, 'addon_get': {'resource': 'addon/{id}/', 'docs': '', 'methods': ['GET']}, 'addon_create': {'resource': 'addon/', 'docs': '', 'methods': ['POST']}, 'addon_update': {'resource': 'addon/{id}/', 'docs': '', 'methods': ['PUT']}, 'addon_delete': {'resource': 'addon/{id}/', 'docs': '', 'methods': ['DELETE']}}
def fibonacciseries(n): if(n<=1): print(1) a, b = 1, 1 print(a) while(b<=n): print(b) a, b = b, a+b fibonacciseries(9)
def fibonacciseries(n): if n <= 1: print(1) (a, b) = (1, 1) print(a) while b <= n: print(b) (a, b) = (b, a + b) fibonacciseries(9)
TEAMS = [ 'Panthers', 'Bandits', 'Warriors', ] PLAYERS = [{ 'name': 'Karl Saygan', 'guardians': 'Heather Bledsoe', 'experience': 'YES', 'height': '42 inches' }, { 'name': 'Matt Gill', 'guardians': 'Charles Gill and Sylvia Gill', 'experience': 'NO', 'height': '40 inches' }, { 'name': 'Sammy Adams', 'guardians': 'Jeff Adams and Gary Adams', 'experience': 'NO', 'height': '45 inches' }, { 'name': 'Chloe Alaska', 'guardians': 'David Alaska and Jamie Alaska', 'experience': 'NO', 'height': '47 inches' }, { 'name': 'Bill Bon', 'guardians': 'Sara Bon and Jenny Bon', 'experience': 'YES', 'height': '43 inches' }, { 'name': 'Joe Kavalier', 'guardians': 'Sam Kavalier and Elaine Kavalier', 'experience': 'NO', 'height': '39 inches' }, { 'name': 'Phillip Helm', 'guardians': 'Thomas Helm and Eva Jones', 'experience': 'YES', 'height': '44 inches' }, { 'name': 'Les Clay', 'guardians': 'Wynonna Brown', 'experience': 'YES', 'height': '42 inches' }, { 'name': 'Sal Dali', 'guardians': 'Gala Dali', 'experience': 'NO', 'height': '41 inches' }, { 'name': 'Suzane Greenberg', 'guardians': 'Henrietta Dumas', 'experience': 'YES', 'height': '44 inches' }, { 'name': 'Jill Tanner', 'guardians': 'Mark Tanner', 'experience': 'YES', 'height': '36 inches' }, { 'name': 'Arnold Willis', 'guardians': 'Claire Willis', 'experience': 'NO', 'height': '43 inches' }, { 'name': 'Herschel Krustofski', 'guardians': 'Hyman Krustofski and Rachel Krustofski', 'experience': 'YES', 'height': '45 inches' }, { 'name': 'Eva Gordon', 'guardians': 'Wendy Martin and Mike Gordon', 'experience': 'NO', 'height': '45 inches' }, { 'name': 'Ben Finkelstein', 'guardians': 'Aaron Lanning and Jill Finkelstein', 'experience': 'NO', 'height': '44 inches' }, { 'name': 'Joe Smith', 'guardians': 'Jim Smith and Jan Smith', 'experience': 'YES', 'height': '42 inches' }, { 'name': 'Diego Soto', 'guardians': 'Robin Soto and Sarika Soto', 'experience': 'YES', 'height': '41 inches' }, { 'name': 'Kimmy Stein', 'guardians': 'Bill Stein and Hillary Stein', 'experience': 'NO', 'height': '41 inches' } ]
teams = ['Panthers', 'Bandits', 'Warriors'] players = [{'name': 'Karl Saygan', 'guardians': 'Heather Bledsoe', 'experience': 'YES', 'height': '42 inches'}, {'name': 'Matt Gill', 'guardians': 'Charles Gill and Sylvia Gill', 'experience': 'NO', 'height': '40 inches'}, {'name': 'Sammy Adams', 'guardians': 'Jeff Adams and Gary Adams', 'experience': 'NO', 'height': '45 inches'}, {'name': 'Chloe Alaska', 'guardians': 'David Alaska and Jamie Alaska', 'experience': 'NO', 'height': '47 inches'}, {'name': 'Bill Bon', 'guardians': 'Sara Bon and Jenny Bon', 'experience': 'YES', 'height': '43 inches'}, {'name': 'Joe Kavalier', 'guardians': 'Sam Kavalier and Elaine Kavalier', 'experience': 'NO', 'height': '39 inches'}, {'name': 'Phillip Helm', 'guardians': 'Thomas Helm and Eva Jones', 'experience': 'YES', 'height': '44 inches'}, {'name': 'Les Clay', 'guardians': 'Wynonna Brown', 'experience': 'YES', 'height': '42 inches'}, {'name': 'Sal Dali', 'guardians': 'Gala Dali', 'experience': 'NO', 'height': '41 inches'}, {'name': 'Suzane Greenberg', 'guardians': 'Henrietta Dumas', 'experience': 'YES', 'height': '44 inches'}, {'name': 'Jill Tanner', 'guardians': 'Mark Tanner', 'experience': 'YES', 'height': '36 inches'}, {'name': 'Arnold Willis', 'guardians': 'Claire Willis', 'experience': 'NO', 'height': '43 inches'}, {'name': 'Herschel Krustofski', 'guardians': 'Hyman Krustofski and Rachel Krustofski', 'experience': 'YES', 'height': '45 inches'}, {'name': 'Eva Gordon', 'guardians': 'Wendy Martin and Mike Gordon', 'experience': 'NO', 'height': '45 inches'}, {'name': 'Ben Finkelstein', 'guardians': 'Aaron Lanning and Jill Finkelstein', 'experience': 'NO', 'height': '44 inches'}, {'name': 'Joe Smith', 'guardians': 'Jim Smith and Jan Smith', 'experience': 'YES', 'height': '42 inches'}, {'name': 'Diego Soto', 'guardians': 'Robin Soto and Sarika Soto', 'experience': 'YES', 'height': '41 inches'}, {'name': 'Kimmy Stein', 'guardians': 'Bill Stein and Hillary Stein', 'experience': 'NO', 'height': '41 inches'}]
def render_to_pdf(template_src, context_dict): template = get_template(template_src) context = Context(context_dict) html = template.render(context) result = StringIO.StringIO() pdf = pisa.pisaDocument(StringIO.StringIO(html.encode('utf-8')), result, show_error_as_pdf=True, encoding='UTF-8') if not pdf.err: return result.getvalue() return False pdf = render_to_pdf('article_pdf.html', { 'article': article, 'MEDIA_ROOT': settings.MEDIA_ROOT, }) if pdf: pdf_file = open("%s/%s.pdf" % (settings.ARTICLE_PDF_PATH, article.slug), 'w').write(pdf)
def render_to_pdf(template_src, context_dict): template = get_template(template_src) context = context(context_dict) html = template.render(context) result = StringIO.StringIO() pdf = pisa.pisaDocument(StringIO.StringIO(html.encode('utf-8')), result, show_error_as_pdf=True, encoding='UTF-8') if not pdf.err: return result.getvalue() return False pdf = render_to_pdf('article_pdf.html', {'article': article, 'MEDIA_ROOT': settings.MEDIA_ROOT}) if pdf: pdf_file = open('%s/%s.pdf' % (settings.ARTICLE_PDF_PATH, article.slug), 'w').write(pdf)
class Solution: def minTotalDistance(self, grid): m, n = len(grid), len(grid[0]) x, y = sorted(i for i in range(m) for j in range(n) if grid[i][j]), sorted(j for i in range(m) for j in range(n) if grid[i][j]) avg_x = len(x) % 2 and x[len(x) // 2] or (x[len(x) // 2 - 1] + x[len(x) // 2]) / 2 avg_y = len(y) % 2 and y[len(y) // 2] or (y[len(y) // 2 - 1] + y[len(y) // 2]) / 2 return int(sum(abs(avg_x - i) + abs(avg_y - j) for i, j in zip(x, y)))
class Solution: def min_total_distance(self, grid): (m, n) = (len(grid), len(grid[0])) (x, y) = (sorted((i for i in range(m) for j in range(n) if grid[i][j])), sorted((j for i in range(m) for j in range(n) if grid[i][j]))) avg_x = len(x) % 2 and x[len(x) // 2] or (x[len(x) // 2 - 1] + x[len(x) // 2]) / 2 avg_y = len(y) % 2 and y[len(y) // 2] or (y[len(y) // 2 - 1] + y[len(y) // 2]) / 2 return int(sum((abs(avg_x - i) + abs(avg_y - j) for (i, j) in zip(x, y))))
def assert_broadcastable(shape1, shape2): if len(shape1) > len(shape2): assert_broadcastable(shape2, shape1) return for a,b in zip(shape1[::-1], shape2[::-1][:len(shape1)]): assert (a == 1 or b == 1 or a == b), "The shape %s and %s are not broadcastable" % (shape1, shape2) def assert_fcn_params(fcn, args): if inspect.ismethod(fcn) and isinstance(fcn.__self__, EditableModule): fcn.__self__.assertparams(fcn, *args) def assert_runtime(cond, msg=""): if not cond: raise RuntimeError(msg) def assert_type(cond, msg=""): if not cond: raise TypeError(msg)
def assert_broadcastable(shape1, shape2): if len(shape1) > len(shape2): assert_broadcastable(shape2, shape1) return for (a, b) in zip(shape1[::-1], shape2[::-1][:len(shape1)]): assert a == 1 or b == 1 or a == b, 'The shape %s and %s are not broadcastable' % (shape1, shape2) def assert_fcn_params(fcn, args): if inspect.ismethod(fcn) and isinstance(fcn.__self__, EditableModule): fcn.__self__.assertparams(fcn, *args) def assert_runtime(cond, msg=''): if not cond: raise runtime_error(msg) def assert_type(cond, msg=''): if not cond: raise type_error(msg)
def isCoinClose(coin): return hero.distanceTo(coin) < 20 while True: item = hero.findNearestItem() if item and isCoinClose(item): hero.moveXY(item.pos.x, item.pos.y)
def is_coin_close(coin): return hero.distanceTo(coin) < 20 while True: item = hero.findNearestItem() if item and is_coin_close(item): hero.moveXY(item.pos.x, item.pos.y)
#!/usr/bin/env python3 # fibonacci.py # Naive Algorithm def calc_fib(n): if (n <= 1): return n return calc_fib(n - 1) + calc_fib(n - 2) # Faster Algorithm def calc_fib_2(n): fib_list = [0, 1] if n > 1: for i in range(2, n + 1): fib_list.insert(i, fib_list[i - 1] + fib_list[i - 2]) return fib_list[n] # Faster Algorithm def calc_fib_3(n): if n <= 1: return n previous = 0 current = 1 for _ in range(n - 1): previous, current = current, previous + current return current if __name__ == '__main__': n = int(input()) print(calc_fib_2(n))
def calc_fib(n): if n <= 1: return n return calc_fib(n - 1) + calc_fib(n - 2) def calc_fib_2(n): fib_list = [0, 1] if n > 1: for i in range(2, n + 1): fib_list.insert(i, fib_list[i - 1] + fib_list[i - 2]) return fib_list[n] def calc_fib_3(n): if n <= 1: return n previous = 0 current = 1 for _ in range(n - 1): (previous, current) = (current, previous + current) return current if __name__ == '__main__': n = int(input()) print(calc_fib_2(n))
# -*- coding: utf-8 -*- """Operations for dumping a database to file""" __all__ = ( 'dump', 'dumps', ) def _iter_dump(db_connection, schema_only=False): """\ Generator function that serializes the database associated with ``db_connection`` as formatted ``str``. Args: db_connection (sqlite3.Connection): database instance to dump schema_only (bool): flag to only dump the schema Returns: str: serialized string of database """ for line in db_connection.iterdump(): # ??? (23-Jul-12020) This seems a bit dicey, good idea? # This may only work in sqlite environment. if schema_only and line.startswith('INSERT'): # FIXME (23-Jul-12020) hardcoded table name, use METADATA_TABLE # when circular import is resolved. # if metadata is requested then allow those inserts if 'INSERT INTO "metadata' not in line: continue yield f'{line}\n' def dumps(*args, **kwargs): """\ Serialize the database associated with ``db_connection`` as formatted ``str``. Args: db_connection (sqlite3.Connection): database instance to dump schema_only (bool): flag to only dump the schema Returns: str: serialized string of database """ return ''.join([s for s in _iter_dump(*args, **kwargs)]) def dump(db_connection, fp, **kwargs): """\ Serialize the database associated with ``db_connection`` as a formatted stream to ``fp`` (a ``.write()``-supporting file-like object). This is a side-effect only function that writes to ``fp``. Args: db_connection (sqlite3.Connection): database instance to dump fp (file-like object): output stream schema_only (bool): flag to only dump the schema Returns: None """ for line in _iter_dump(db_connection, **kwargs): fp.write(line)
"""Operations for dumping a database to file""" __all__ = ('dump', 'dumps') def _iter_dump(db_connection, schema_only=False): """ Generator function that serializes the database associated with ``db_connection`` as formatted ``str``. Args: db_connection (sqlite3.Connection): database instance to dump schema_only (bool): flag to only dump the schema Returns: str: serialized string of database """ for line in db_connection.iterdump(): if schema_only and line.startswith('INSERT'): if 'INSERT INTO "metadata' not in line: continue yield f'{line}\n' def dumps(*args, **kwargs): """ Serialize the database associated with ``db_connection`` as formatted ``str``. Args: db_connection (sqlite3.Connection): database instance to dump schema_only (bool): flag to only dump the schema Returns: str: serialized string of database """ return ''.join([s for s in _iter_dump(*args, **kwargs)]) def dump(db_connection, fp, **kwargs): """ Serialize the database associated with ``db_connection`` as a formatted stream to ``fp`` (a ``.write()``-supporting file-like object). This is a side-effect only function that writes to ``fp``. Args: db_connection (sqlite3.Connection): database instance to dump fp (file-like object): output stream schema_only (bool): flag to only dump the schema Returns: None """ for line in _iter_dump(db_connection, **kwargs): fp.write(line)
#! /usr/bin/env python3 a = 1 if a == 1: pass else: print("Hello")
a = 1 if a == 1: pass else: print('Hello')
class IDrawingDoc: def __init__(self, system_object): self.system_object = system_object @property def _instance(self): return self.system_object
class Idrawingdoc: def __init__(self, system_object): self.system_object = system_object @property def _instance(self): return self.system_object
""" Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value. The string can contain additional characters after those that form the integral number, which are ignored and have no effect on the behavior of this function. If the first sequence of non-whitespace characters in str is not a valid integral number, or if no such sequence exists because either str is empty or it contains only whitespace characters, no conversion is performed. If no valid conversion could be performed, a zero value is returned. https://leetcode.com/problems/string-to-integer-atoi/ """ class Solution: def myAtoi(self, str: str) -> int: valid_characters = set("1234567890") return_list = [] number_started = False for char in str: if not number_started and char in set(" +-"): return_list.append(char) elif char in valid_characters: return_list.append(char) number_started = True else: break return_str = "".join(return_list).strip() if not return_str: return 0 try: return_number = int(return_str) except: return 0 min_value = -(2 ** 31) max_value = 2 ** 31 - 1 if return_number < min_value: return min_value if return_number > max_value: return max_value return return_number test_cases = [ " -88827 5655 U", " 0000000000012345678", "42", " -42", "4193 with words", "words and 987", "-91283472332", ] results = [-88827, 12345678, 42, -42, 4193, 0, -2147483648] if __name__ == "__main__": app = Solution() for test_case, correct_result in zip(test_cases, results): assert ( app.myAtoi(test_case) == correct_result ), f"My result: {app.myAtoi(test_case)}, correct result: {correct_result}"
""" Implement atoi which converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, takes an optional initial plus or minus sign followed by as many numerical digits as possible, and interprets them as a numerical value. The string can contain additional characters after those that form the integral number, which are ignored and have no effect on the behavior of this function. If the first sequence of non-whitespace characters in str is not a valid integral number, or if no such sequence exists because either str is empty or it contains only whitespace characters, no conversion is performed. If no valid conversion could be performed, a zero value is returned. https://leetcode.com/problems/string-to-integer-atoi/ """ class Solution: def my_atoi(self, str: str) -> int: valid_characters = set('1234567890') return_list = [] number_started = False for char in str: if not number_started and char in set(' +-'): return_list.append(char) elif char in valid_characters: return_list.append(char) number_started = True else: break return_str = ''.join(return_list).strip() if not return_str: return 0 try: return_number = int(return_str) except: return 0 min_value = -2 ** 31 max_value = 2 ** 31 - 1 if return_number < min_value: return min_value if return_number > max_value: return max_value return return_number test_cases = [' -88827 5655 U', ' 0000000000012345678', '42', ' -42', '4193 with words', 'words and 987', '-91283472332'] results = [-88827, 12345678, 42, -42, 4193, 0, -2147483648] if __name__ == '__main__': app = solution() for (test_case, correct_result) in zip(test_cases, results): assert app.myAtoi(test_case) == correct_result, f'My result: {app.myAtoi(test_case)}, correct result: {correct_result}'
# cache = {} # key = (r, s) # def winningRate(r, s): # """ # Code for 5800 Problem set 4, Q5-d. # We need to use dp to calculate the winning rate of a game, where: # r: int = remaining round of game # s: int = current score # The game contains two choices, flip coin X or coin Y, both are fair coins. # Wining X = +1, losing X = -1, winning Y = +3, losing Y = -3. # Our goal in part d is to find p_100(0) # """ # def rec(r, s): # if (r, s) not in cache: # if r < 1: # raise (TypeError("r can not be smaller than 1.")) # if r == 1: # if s <= -3: # cache[(r, s)] = 0 # return cache[(r, s)] # if s >= -2 and s <= 1: # cache[(r, s)] = 0.5 # return cache[(r, s)] # if s >= 2: # cache[(r, s)] = 1 # return cache[(r, s)] # cache[(r, s)] = max( # (rec(r - 1, s + 1) + rec(r - 1, s - 1)) / 2, # (rec(r - 1, s + 3) + rec(r - 1, s - 3)) / 2, # ) # return cache[(r, s)] # return rec(r, s) # print(winningRate(100, 0)) # res = [_ for _ in filter(lambda x: x[0] == 1, cache)] # print(res) # # print(winningRate(1, 1), 0.5) # # print(winningRate(1, 0), 0.5) # # print(winningRate(1, -3), 0) # for i in range(1, 101): # print(f"i = {i}, and winning rate = {winningRate(i, 0)}") cache = {} def winningRate2(r, s, X, Y): """ revised version, now we want to investigate how value of X and Y will affect. r: int = remaining round of game s: int = current score X: int = points winning for X-head Y: int = points wining for Y-head (assuming X and Y are both fair, and we always assume Y > X) """ if X > Y: X, Y = Y, X def rec(r, s): if (r, s) not in cache: if r < 1: raise (TypeError("r can not be smaller than 1.")) if r == 1: if s <= -Y: # only Y head for the win. cache[(r, s)] = 0 return cache[(r, s)] if s >= (-Y + 1) and s <= X: # play X or Y shall be the same cache[(r, s)] = 0.5 return cache[(r, s)] if s > X: # play X, guarenteed win cache[(r, s)] = 1 return cache[(r, s)] cache[(r, s)] = max( (rec(r - 1, s + X) + rec(r - 1, s - X)) / 2, (rec(r - 1, s + Y) + rec(r - 1, s - Y)) / 2, ) return cache[(r, s)] return rec(r, s) print(winningRate2(500, 0, 1, 4))
cache = {} def winning_rate2(r, s, X, Y): """ revised version, now we want to investigate how value of X and Y will affect. r: int = remaining round of game s: int = current score X: int = points winning for X-head Y: int = points wining for Y-head (assuming X and Y are both fair, and we always assume Y > X) """ if X > Y: (x, y) = (Y, X) def rec(r, s): if (r, s) not in cache: if r < 1: raise type_error('r can not be smaller than 1.') if r == 1: if s <= -Y: cache[r, s] = 0 return cache[r, s] if s >= -Y + 1 and s <= X: cache[r, s] = 0.5 return cache[r, s] if s > X: cache[r, s] = 1 return cache[r, s] cache[r, s] = max((rec(r - 1, s + X) + rec(r - 1, s - X)) / 2, (rec(r - 1, s + Y) + rec(r - 1, s - Y)) / 2) return cache[r, s] return rec(r, s) print(winning_rate2(500, 0, 1, 4))
n = int(input()) s = set(map(int,input().split())) m = int(input()) t = set(map(int,input().split())) u = s.symmetric_difference(t) print(len(u))
n = int(input()) s = set(map(int, input().split())) m = int(input()) t = set(map(int, input().split())) u = s.symmetric_difference(t) print(len(u))
class Solution: def boldWords(self, words, S): trie, n, mask, res = {}, len(S), set(), "" for w in words: cur = trie for c in w: if c not in cur: cur[c] = {} cur = cur[c] cur["#"] = cur.get("#", set()) | {w} for i in range(n): cur, j = trie, i while j < n and S[j] in cur: cur = cur[S[j]] if "#" in cur: mask |= {ind for ind in range(i, j + 1)} j += 1 for i in range(n): if i in mask and (not i or i - 1 not in mask): res += "<b>" res += S[i] if i in mask and (i == n - 1 or i + 1 not in mask): res += "</b>" return res
class Solution: def bold_words(self, words, S): (trie, n, mask, res) = ({}, len(S), set(), '') for w in words: cur = trie for c in w: if c not in cur: cur[c] = {} cur = cur[c] cur['#'] = cur.get('#', set()) | {w} for i in range(n): (cur, j) = (trie, i) while j < n and S[j] in cur: cur = cur[S[j]] if '#' in cur: mask |= {ind for ind in range(i, j + 1)} j += 1 for i in range(n): if i in mask and (not i or i - 1 not in mask): res += '<b>' res += S[i] if i in mask and (i == n - 1 or i + 1 not in mask): res += '</b>' return res
# TODO: Complete Recordist Log def output_report(records): # order by start pass
def output_report(records): pass
''' Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome. Example 3: Input: 10 Output: false Explanation: Reads 01 from right to left. Therefore it is not a palindrome. Follow up: Coud you solve it without converting the integer to a string? ''' class Solution: def isPalindrome(self, x): """ :type x: int :rtype: bool """ if x < 0: return False if x != 0 and x % 10 == 0: return False rev = 0 while rev < x: rev = rev*10 + x%10 x //= 10 if x == rev or x == rev // 10: return True else: return False
""" Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome. Example 3: Input: 10 Output: false Explanation: Reads 01 from right to left. Therefore it is not a palindrome. Follow up: Coud you solve it without converting the integer to a string? """ class Solution: def is_palindrome(self, x): """ :type x: int :rtype: bool """ if x < 0: return False if x != 0 and x % 10 == 0: return False rev = 0 while rev < x: rev = rev * 10 + x % 10 x //= 10 if x == rev or x == rev // 10: return True else: return False
#!/bin/env python def calc_wa(val1, val2): return val1 + val2 def calc_wari(val1, val2): return val1 / val2
def calc_wa(val1, val2): return val1 + val2 def calc_wari(val1, val2): return val1 / val2
#!/usr/bin/python35 fp = open('hello.txt') print('fp.fileno() = %s' % (fp.fileno())) fp.close()
fp = open('hello.txt') print('fp.fileno() = %s' % fp.fileno()) fp.close()
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def length(self, head: Optional[ListNode]) -> int: length = 0 node = head while node: length += 1 node = node.next return length def deleteMiddle(self, head: Optional[ListNode]) -> Optional[ListNode]: if head.next is None: head = None return head middleNode = self.length(head) // 2 node = head count = 0 while node: if count == middleNode - 1: #node.next is the node to be removed # so simply assign node.next.next to node.next node.next = node.next.next break node = node.next count += 1 return head
class Solution: def length(self, head: Optional[ListNode]) -> int: length = 0 node = head while node: length += 1 node = node.next return length def delete_middle(self, head: Optional[ListNode]) -> Optional[ListNode]: if head.next is None: head = None return head middle_node = self.length(head) // 2 node = head count = 0 while node: if count == middleNode - 1: node.next = node.next.next break node = node.next count += 1 return head
def maxProfit(prices): return sum(max(0, x) for x in (y - x for x, y in zip(prices,prices[1:]))) if __name__ == "__main__": prices = [7,1,5,3,6,4] print(maxProfit(prices))
def max_profit(prices): return sum((max(0, x) for x in (y - x for (x, y) in zip(prices, prices[1:])))) if __name__ == '__main__': prices = [7, 1, 5, 3, 6, 4] print(max_profit(prices))
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Actions related to codesigning.""" load( "@build_bazel_apple_support//lib:apple_support.bzl", "apple_support", ) load( "@build_bazel_rules_apple//apple/internal/utils:defines.bzl", "defines", ) load( "@build_bazel_rules_apple//apple/internal:intermediates.bzl", "intermediates", ) load( "@build_bazel_rules_apple//apple/internal:rule_support.bzl", "rule_support", ) load( "@bazel_skylib//lib:paths.bzl", "paths", ) load( "@bazel_skylib//lib:shell.bzl", "shell", ) def _double_quote(raw_string): """Add double quotes around the string and preserve existing quote characters. Args: raw_string: A string that might have shell-syntaxed environment variables. Returns: The string with double quotes. """ return "\"" + raw_string.replace("\"", "\\\"") + "\"" def _no_op(x): """Helper that does not nothing be return the result.""" return x def _codesignopts_from_rule_ctx(ctx): """Get the expanded codesign opts from the rule context Args: ctx: The rule context to fetch the options and expand from Returns: The list of codesignopts """ return [ ctx.expand_make_variables("codesignopts", opt, {}) for opt in ctx.attr.codesignopts ] def _codesign_args_for_path( *, codesignopts, entitlements_file, path_to_sign, platform_prerequisites, provisioning_profile, shell_quote = True): """Returns a command line for the codesigning tool wrapper script. Args: codesignopts: Extra options to pass to the `codesign` tool entitlements_file: The entitlements file to pass to codesign. May be `None` for non-app binaries (e.g. test bundles). path_to_sign: A struct indicating the path that should be signed and its optionality (see `_path_to_sign`). platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. shell_quote: Sanitizes the arguments to be evaluated in a shell. Returns: The codesign command invocation for the given directory as a list. """ if not path_to_sign.is_directory and path_to_sign.signed_frameworks: fail("Internal Error: Received a list of signed frameworks as exceptions " + "for code signing, but path to sign is not a directory.") for x in path_to_sign.signed_frameworks: if not x.startswith(path_to_sign.path): fail("Internal Error: Signed framework does not have the current path " + "to sign (%s) as its prefix (%s)." % (path_to_sign.path, x)) cmd_codesigning = [ "--codesign", "/usr/bin/codesign", ] is_device = platform_prerequisites.platform.is_device # Add quotes for sanitizing inputs when they're invoked directly from a shell script, for # instance when using this string to assemble the output of codesigning_command. maybe_quote = shell.quote if shell_quote else _no_op maybe_double_quote = _double_quote if shell_quote else _no_op # First, try to use the identity passed on the command line, if any. If it's a simulator build, # use an ad hoc identity. identity = platform_prerequisites.objc_fragment.signing_certificate_name if is_device else "-" if not identity: if provisioning_profile: cmd_codesigning.extend([ "--mobileprovision", maybe_quote(provisioning_profile.path), ]) else: identity = "-" if identity: cmd_codesigning.extend([ "--identity", maybe_quote(identity), ]) # The entitlements rule ensures that entitlements_file is None or a file # containing only "com.apple.security.get-task-allow" when building for the # simulator. if path_to_sign.use_entitlements and entitlements_file: cmd_codesigning.extend([ "--entitlements", maybe_quote(entitlements_file.path), ]) if is_device: cmd_codesigning.append("--force") else: cmd_codesigning.extend([ "--force", "--disable_timestamp", ]) if path_to_sign.is_directory: cmd_codesigning.append("--directory_to_sign") else: cmd_codesigning.append("--target_to_sign") # Because the path does include environment variables which need to be expanded, path has to be # quoted using double quotes, this means that path can't be quoted using shell.quote. cmd_codesigning.append(maybe_double_quote(path_to_sign.path)) if path_to_sign.signed_frameworks: for signed_framework in path_to_sign.signed_frameworks: # Signed frameworks must also be double quoted, as they too have an environment # variable to be expanded. cmd_codesigning.extend([ "--signed_path", maybe_double_quote(signed_framework), ]) cmd_codesigning.append("--") cmd_codesigning.extend(codesignopts) return cmd_codesigning def _path_to_sign(*, path, is_directory = False, signed_frameworks = [], use_entitlements = True): """Returns a "path to sign" value to be passed to `_signing_command_lines`. Args: path: The path to sign, relative to wherever the code signing command lines are being executed. is_directory: If `True`, the path is a directory and not a bundle, indicating that the contents of each item in the directory should be code signed except for the invisible files prefixed with a period. signed_frameworks: If provided, a list of frameworks that have already been signed. use_entitlements: If provided, indicates if the entitlements on the bundling target should be used for signing this path (useful to disabled the use when signing frameworks within an iOS app). Returns: A `struct` that can be passed to `_signing_command_lines`. """ return struct( path = path, is_directory = is_directory, signed_frameworks = signed_frameworks, use_entitlements = use_entitlements, ) def _validate_provisioning_profile( *, rule_descriptor, platform_prerequisites, provisioning_profile): # Verify that a provisioning profile was provided for device builds on # platforms that require it. is_device = platform_prerequisites.platform.is_device if (is_device and rule_descriptor.requires_signing_for_device and not provisioning_profile): fail("The provisioning_profile attribute must be set for device " + "builds on this platform (%s)." % platform_prerequisites.platform_type) def _signing_command_lines( *, codesigningtool, codesignopts, entitlements_file, paths_to_sign, platform_prerequisites, provisioning_profile): """Returns a multi-line string with codesign invocations for the bundle. For any signing identity other than ad hoc, the identity is verified as being valid in the keychain and an error will be emitted if the identity cannot be used for signing for any reason. Args: codesigningtool: The executable `File` representing the code signing tool. codesignopts: Extra options to pass to the `codesign` tool entitlements_file: The entitlements file to pass to codesign. paths_to_sign: A list of values returned from `path_to_sign` that indicate paths that should be code-signed. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. Returns: A multi-line string with codesign invocations for the bundle. """ commands = [] # Use of the entitlements file is not recommended for the signing of frameworks. As long as # this remains the case, we do have to split the "paths to sign" between multiple invocations # of codesign. for path_to_sign in paths_to_sign: codesign_command = [codesigningtool.path] codesign_command.extend(_codesign_args_for_path( entitlements_file = entitlements_file, path_to_sign = path_to_sign, platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, codesignopts = codesignopts, )) commands.append(" ".join(codesign_command)) return "\n".join(commands) def _should_sign_simulator_frameworks( *, config_vars, features, rule_descriptor): """Check if simulator bound framework bundles should be codesigned. Args: Returns: True/False for if the framework should be signed. """ if "apple.skip_codesign_simulator_bundles" in features: return False # To preserve existing functionality, where Frameworks/* bundles are always # signed, we only skip them with the new flag. This check will go away when # `apple.codesign_simulator_bundles` goes away. return True def _should_sign_simulator_bundles( *, config_vars, features, rule_descriptor): """Check if a main bundle should be codesigned. Args: Returns: True/False for if the bundle should be signed. """ if "apple.codesign_simulator_bundles" in config_vars: # buildifier: disable=print print("warning: --define apple.codesign_simulator_bundles is deprecated, please switch to --features=apple.skip_codesign_simulator_bundles") if "apple.skip_codesign_simulator_bundles" in features: return False if not rule_descriptor.skip_simulator_signing_allowed: return True # Default is to sign. return defines.bool_value( config_vars = config_vars, define_name = "apple.codesign_simulator_bundles", default = True, ) def _should_sign_bundles(*, provisioning_profile, rule_descriptor, features): should_sign_bundles = True codesigning_exceptions = rule_descriptor.codesigning_exceptions if "disable_legacy_signing" in features: should_sign_bundles = False elif (codesigning_exceptions == rule_support.codesigning_exceptions.sign_with_provisioning_profile): # If the rule doesn't have a provisioning profile, do not sign the binary or its # frameworks. if not provisioning_profile: should_sign_bundles = False elif codesigning_exceptions == rule_support.codesigning_exceptions.skip_signing: should_sign_bundles = False elif codesigning_exceptions != rule_support.codesigning_exceptions.none: fail("Internal Error: Encountered unsupported state for codesigning_exceptions.") return should_sign_bundles def _codesigning_args( *, entitlements, features, full_archive_path, is_framework = False, platform_prerequisites, provisioning_profile, rule_descriptor): """Returns a set of codesigning arguments to be passed to the codesigning tool. Args: entitlements: The entitlements file to sign with. Can be None. features: List of features enabled by the user. Typically from `ctx.features`. full_archive_path: The full path to the codesigning target. is_framework: If the target is a framework. False by default. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: File for the provisioning profile. rule_descriptor: A rule descriptor for platform and product types from the rule context. Returns: A list containing the arguments to pass to the codesigning tool. """ should_sign_bundles = _should_sign_bundles( provisioning_profile = provisioning_profile, rule_descriptor = rule_descriptor, features = features, ) if not should_sign_bundles: return [] is_device = platform_prerequisites.platform.is_device should_sign_sim_bundles = _should_sign_simulator_bundles( config_vars = platform_prerequisites.config_vars, features = platform_prerequisites.features, rule_descriptor = rule_descriptor, ) # We need to re-sign imported frameworks if not is_framework and not is_device and not should_sign_sim_bundles: return [] _validate_provisioning_profile( platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, rule_descriptor = rule_descriptor, ) return _codesign_args_for_path( entitlements_file = entitlements, path_to_sign = _path_to_sign(path = full_archive_path), platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, shell_quote = False, codesignopts = [], ) def _codesigning_command( *, bundle_path = "", codesigningtool, codesignopts, entitlements, features, frameworks_path, platform_prerequisites, provisioning_profile, rule_descriptor, signed_frameworks): """Returns a codesigning command that includes framework embedded bundles. Args: bundle_path: The location of the bundle, relative to the archive. codesigningtool: The executable `File` representing the code signing tool. codesignopts: Extra options to pass to the `codesign` tool entitlements: The entitlements file to sign with. Can be None. features: List of features enabled by the user. Typically from `ctx.features`. frameworks_path: The location of the Frameworks directory, relative to the archive. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: File for the provisioning profile. rule_descriptor: A rule descriptor for platform and product types from the rule context. signed_frameworks: A depset containing each framework that has already been signed. Returns: A string containing the codesigning commands. """ should_sign_bundles = _should_sign_bundles( provisioning_profile = provisioning_profile, rule_descriptor = rule_descriptor, features = features, ) if not should_sign_bundles: return "" _validate_provisioning_profile( platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, rule_descriptor = rule_descriptor, ) paths_to_sign = [] # The command returned by this function is executed as part of a bundling shell script. # Each directory to be signed must be prefixed by $WORK_DIR, which is the variable in that # script that contains the path to the directory where the bundle is being built. should_sign_sim_frameworks = _should_sign_simulator_frameworks( config_vars = platform_prerequisites.config_vars, features = platform_prerequisites.features, rule_descriptor = rule_descriptor, ) if frameworks_path and should_sign_sim_frameworks: framework_root = paths.join("$WORK_DIR", frameworks_path) + "/" full_signed_frameworks = [] for signed_framework in signed_frameworks.to_list(): full_signed_frameworks.append(paths.join(framework_root, signed_framework)) paths_to_sign.append( _path_to_sign( path = framework_root, is_directory = True, signed_frameworks = full_signed_frameworks, use_entitlements = False, ), ) should_sign_sim_bundles = _should_sign_simulator_bundles( config_vars = platform_prerequisites.config_vars, features = platform_prerequisites.features, rule_descriptor = rule_descriptor, ) if platform_prerequisites.platform.is_device or should_sign_sim_bundles: path_to_sign = paths.join("$WORK_DIR", bundle_path) paths_to_sign.append( _path_to_sign(path = path_to_sign), ) return _signing_command_lines( codesigningtool = codesigningtool, entitlements_file = entitlements, paths_to_sign = paths_to_sign, platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, codesignopts = codesignopts, ) def _generate_codesigning_dossier_action( actions, label_name, resolved_codesigning_dossier_tool, output_discriminator, output_dossier, platform_prerequisites, embedded_dossiers = [], entitlements = None, provisioning_profile = None): """Generates a codesigning dossier based on parameters. Args: actions: The actions provider from `ctx.actions`. embedded_dossiers: An optional List of Structs generated from `embedded_codesigning_dossier` that should also be included in this dossier. entitlements: Optional file representing the entitlements to sign with. label_name: Name of the target being built. output_discriminator: A string to differentiate between different target intermediate files or `None`. output_dossier: The `File` representing the output dossier file - the zipped dossier will be placed here. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. resolved_codesigning_dossier_tool: The `struct` from resolve_tools representing the code signing tool. """ input_files = [x.dossier_file for x in embedded_dossiers] mnemonic = "GenerateCodesigningDossier" progress_message = "Generating codesigning dossier for %s" % label_name dossier_arguments = ["--output", output_dossier.path, "--zip"] execution_requirements = { # Unsure, but may be needed for keychain access, especially for files # that live in $HOME. "no-sandbox": "1", } is_device = platform_prerequisites.platform.is_device fragment = platform_prerequisites.objc_fragment codesign_identity = fragment.signing_certificate_name if is_device else "-" if not codesign_identity and not provisioning_profile: codesign_identity = "-" if codesign_identity: dossier_arguments.extend(["--codesign_identity", codesign_identity]) else: dossier_arguments.append("--infer_identity") if entitlements: input_files.append(entitlements) dossier_arguments.extend(["--entitlements_file", entitlements.path]) if provisioning_profile: input_files.append(provisioning_profile) dossier_arguments.extend(["--provisioning_profile", provisioning_profile.path]) if is_device: # Added so that the output of this action is not cached remotely, # in case multiple developers sign the same artifact with different # identities. execution_requirements["no-remote"] = "1" for embedded_dossier in embedded_dossiers: input_files.append(embedded_dossier.dossier_file) dossier_arguments.extend(["--embedded_dossier", embedded_dossier.relative_bundle_path, embedded_dossier.dossier_file.path]) args_file = intermediates.file( actions = actions, target_name = label_name, output_discriminator = output_discriminator, file_name = "dossier_arguments", ) actions.write( output = args_file, content = "\n".join(dossier_arguments), ) input_files.append(args_file) args_path_argument = "@%s" % args_file.path args = ["create", args_path_argument] apple_support.run( actions = actions, apple_fragment = platform_prerequisites.apple_fragment, arguments = args, executable = resolved_codesigning_dossier_tool.executable, execution_requirements = execution_requirements, inputs = depset(input_files, transitive = [resolved_codesigning_dossier_tool.inputs]), input_manifests = resolved_codesigning_dossier_tool.input_manifests, mnemonic = mnemonic, outputs = [output_dossier], progress_message = progress_message, tools = [resolved_codesigning_dossier_tool.executable], xcode_config = platform_prerequisites.xcode_version_config, xcode_path_wrapper = platform_prerequisites.xcode_path_wrapper, ) def _post_process_and_sign_archive_action( *, actions, archive_codesigning_path, codesign_inputs, codesignopts, entitlements = None, features, frameworks_path, input_archive, ipa_post_processor, label_name, output_archive, output_archive_root_path, output_discriminator, platform_prerequisites, process_and_sign_template, provisioning_profile, resolved_codesigningtool, rule_descriptor, signed_frameworks): """Post-processes and signs an archived bundle. Args: actions: The actions provider from `ctx.actions`. archive_codesigning_path: The codesigning path relative to the archive. codesign_inputs: Extra inputs needed for the `codesign` tool. codesignopts: Extra options to pass to the `codesign` tool. entitlements: Optional file representing the entitlements to sign with. features: List of features enabled by the user. Typically from `ctx.features`. frameworks_path: The Frameworks path relative to the archive. input_archive: The `File` representing the archive containing the bundle that has not yet been processed or signed. ipa_post_processor: A file that acts as a bundle post processing tool. May be `None`. label_name: Name of the target being built. output_archive: The `File` representing the processed and signed archive. output_archive_root_path: The `string` path to where the processed, uncompressed archive should be located. output_discriminator: A string to differentiate between different target intermediate files or `None`. platform_prerequisites: Struct containing information on the platform being targeted. process_and_sign_template: A template for a shell script to process and sign as a file. provisioning_profile: The provisioning profile file. May be `None`. resolved_codesigningtool: The `struct` from resolve_tools representing the code signing tool. rule_descriptor: A rule descriptor for platform and product types from the rule context. signed_frameworks: Depset containing each framework that has already been signed. """ input_files = [input_archive] processing_tools = [] execution_requirements = { # Unsure, but may be needed for keychain access, especially for files # that live in $HOME. "no-sandbox": "1", } signing_command_lines = _codesigning_command( bundle_path = archive_codesigning_path, codesigningtool = resolved_codesigningtool.executable, codesignopts = codesignopts, entitlements = entitlements, features = features, frameworks_path = frameworks_path, platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, rule_descriptor = rule_descriptor, signed_frameworks = signed_frameworks, ) if signing_command_lines: processing_tools.append(resolved_codesigningtool.executable) if entitlements: input_files.append(entitlements) if provisioning_profile: input_files.append(provisioning_profile) if platform_prerequisites.platform.is_device: # Added so that the output of this action is not cached # remotely, in case multiple developers sign the same artifact # with different identities. execution_requirements["no-remote"] = "1" ipa_post_processor_path = "" if ipa_post_processor: processing_tools.append(ipa_post_processor) ipa_post_processor_path = ipa_post_processor.path # Only compress the IPA for optimized (release) builds or when requested. # For debug builds, zip without compression, which will speed up the build. config_vars = platform_prerequisites.config_vars compression_requested = defines.bool_value( config_vars = config_vars, define_name = "apple.compress_ipa", default = False, ) should_compress = (config_vars["COMPILATION_MODE"] == "opt") or compression_requested # TODO(b/163217926): These are kept the same for the three different actions # that could be run to ensure anything keying off these values continues to # work. After some data is collected, the values likely can be revisited and # changed. mnemonic = "ProcessAndSign" progress_message = "Processing and signing %s" % label_name # If there is no work to be done, skip the processing/signing action, just # copy the file over. has_work = any([signing_command_lines, ipa_post_processor_path, should_compress]) if not has_work: actions.run_shell( command = "cp -p '%s' '%s'" % (input_archive.path, output_archive.path), inputs = [input_archive], mnemonic = mnemonic, outputs = [output_archive], progress_message = progress_message, ) return process_and_sign_expanded_template = intermediates.file( actions = actions, target_name = label_name, output_discriminator = output_discriminator, file_name = "process-and-sign-%s.sh" % hash(output_archive.path), ) actions.expand_template( template = process_and_sign_template, output = process_and_sign_expanded_template, is_executable = True, substitutions = { "%ipa_post_processor%": ipa_post_processor_path or "", "%output_path%": output_archive.path, "%should_compress%": "1" if should_compress else "", "%signing_command_lines%": signing_command_lines, "%unprocessed_archive_path%": input_archive.path, "%work_dir%": output_archive_root_path, }, ) # Build up some arguments for the script to allow logging to tell what work # is being done within the action's script. arguments = [] if signing_command_lines: arguments.append("should_sign") if ipa_post_processor_path: arguments.append("should_process") if should_compress: arguments.append("should_compress") run_on_darwin = any([signing_command_lines, ipa_post_processor_path]) if run_on_darwin: apple_support.run( actions = actions, apple_fragment = platform_prerequisites.apple_fragment, arguments = arguments, executable = process_and_sign_expanded_template, execution_requirements = execution_requirements, inputs = depset( input_files + codesign_inputs, transitive = [resolved_codesigningtool.inputs], ), input_manifests = resolved_codesigningtool.input_manifests, mnemonic = mnemonic, outputs = [output_archive], progress_message = progress_message, tools = processing_tools, xcode_config = platform_prerequisites.xcode_version_config, ) else: actions.run( arguments = arguments, executable = process_and_sign_expanded_template, inputs = input_files, mnemonic = mnemonic, outputs = [output_archive], progress_message = progress_message, ) def _sign_binary_action( *, actions, codesign_inputs, codesignopts, input_binary, output_binary, platform_prerequisites, provisioning_profile, resolved_codesigningtool, rule_descriptor): """Signs the input binary file, copying it into the given output binary file. Args: actions: The actions provider from `ctx.actions`. codesign_inputs: Extra inputs needed for the `codesign` tool. codesignopts: Extra options to pass to the `codesign` tool. input_binary: The `File` representing the binary to be signed. output_binary: The `File` representing signed binary. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. resolved_codesigningtool: The `struct` from resolve_tools representing the code signing tool. rule_descriptor: A rule descriptor for platform and product types from the rule context. """ _validate_provisioning_profile( platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, rule_descriptor = rule_descriptor, ) # It's not hermetic to sign the binary that was built by the apple_binary # target that this rule takes as an input, so we copy it and then execute the # code signing commands on that copy in the same action. path_to_sign = _path_to_sign(path = output_binary.path) signing_commands = _signing_command_lines( codesigningtool = resolved_codesigningtool.executable, entitlements_file = None, paths_to_sign = [path_to_sign], platform_prerequisites = platform_prerequisites, provisioning_profile = provisioning_profile, codesignopts = codesignopts, ) execution_requirements = { # Unsure, but may be needed for keychain access, especially for files # that live in $HOME. "no-sandbox": "1", } if platform_prerequisites.platform.is_device and provisioning_profile: # Added so that the output of this action is not cached remotely, # in case multiple developers sign the same artifact with different # identities. execution_requirements["no-remote"] = "1" apple_support.run_shell( actions = actions, apple_fragment = platform_prerequisites.apple_fragment, command = "cp {input_binary} {output_binary}".format( input_binary = input_binary.path, output_binary = output_binary.path, ) + "\n" + signing_commands, execution_requirements = execution_requirements, inputs = depset( [input_binary] + codesign_inputs, transitive = [resolved_codesigningtool.inputs], ), input_manifests = resolved_codesigningtool.input_manifests, mnemonic = "SignBinary", outputs = [output_binary], tools = [resolved_codesigningtool.executable], xcode_config = platform_prerequisites.xcode_version_config, ) def _embedded_codesigning_dossier(relative_bundle_path, dossier_file): """Returns a struct describing a dossier to be embedded in another dossier. Args: dossier_file: The File representing the zipped dossier to be embedded. relative_bundle_path: The string path of the artifact this dossier describes relative to the root of the bundle it is embedded in. E.g. 'PlugIns/NetworkExtension.appex' """ return struct(relative_bundle_path = relative_bundle_path, dossier_file = dossier_file) codesigning_support = struct( codesigning_args = _codesigning_args, codesigning_command = _codesigning_command, codesignopts_from_rule_ctx = _codesignopts_from_rule_ctx, embedded_codesigning_dossier = _embedded_codesigning_dossier, generate_codesigning_dossier_action = _generate_codesigning_dossier_action, post_process_and_sign_archive_action = _post_process_and_sign_archive_action, sign_binary_action = _sign_binary_action, )
"""Actions related to codesigning.""" load('@build_bazel_apple_support//lib:apple_support.bzl', 'apple_support') load('@build_bazel_rules_apple//apple/internal/utils:defines.bzl', 'defines') load('@build_bazel_rules_apple//apple/internal:intermediates.bzl', 'intermediates') load('@build_bazel_rules_apple//apple/internal:rule_support.bzl', 'rule_support') load('@bazel_skylib//lib:paths.bzl', 'paths') load('@bazel_skylib//lib:shell.bzl', 'shell') def _double_quote(raw_string): """Add double quotes around the string and preserve existing quote characters. Args: raw_string: A string that might have shell-syntaxed environment variables. Returns: The string with double quotes. """ return '"' + raw_string.replace('"', '\\"') + '"' def _no_op(x): """Helper that does not nothing be return the result.""" return x def _codesignopts_from_rule_ctx(ctx): """Get the expanded codesign opts from the rule context Args: ctx: The rule context to fetch the options and expand from Returns: The list of codesignopts """ return [ctx.expand_make_variables('codesignopts', opt, {}) for opt in ctx.attr.codesignopts] def _codesign_args_for_path(*, codesignopts, entitlements_file, path_to_sign, platform_prerequisites, provisioning_profile, shell_quote=True): """Returns a command line for the codesigning tool wrapper script. Args: codesignopts: Extra options to pass to the `codesign` tool entitlements_file: The entitlements file to pass to codesign. May be `None` for non-app binaries (e.g. test bundles). path_to_sign: A struct indicating the path that should be signed and its optionality (see `_path_to_sign`). platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. shell_quote: Sanitizes the arguments to be evaluated in a shell. Returns: The codesign command invocation for the given directory as a list. """ if not path_to_sign.is_directory and path_to_sign.signed_frameworks: fail('Internal Error: Received a list of signed frameworks as exceptions ' + 'for code signing, but path to sign is not a directory.') for x in path_to_sign.signed_frameworks: if not x.startswith(path_to_sign.path): fail('Internal Error: Signed framework does not have the current path ' + 'to sign (%s) as its prefix (%s).' % (path_to_sign.path, x)) cmd_codesigning = ['--codesign', '/usr/bin/codesign'] is_device = platform_prerequisites.platform.is_device maybe_quote = shell.quote if shell_quote else _no_op maybe_double_quote = _double_quote if shell_quote else _no_op identity = platform_prerequisites.objc_fragment.signing_certificate_name if is_device else '-' if not identity: if provisioning_profile: cmd_codesigning.extend(['--mobileprovision', maybe_quote(provisioning_profile.path)]) else: identity = '-' if identity: cmd_codesigning.extend(['--identity', maybe_quote(identity)]) if path_to_sign.use_entitlements and entitlements_file: cmd_codesigning.extend(['--entitlements', maybe_quote(entitlements_file.path)]) if is_device: cmd_codesigning.append('--force') else: cmd_codesigning.extend(['--force', '--disable_timestamp']) if path_to_sign.is_directory: cmd_codesigning.append('--directory_to_sign') else: cmd_codesigning.append('--target_to_sign') cmd_codesigning.append(maybe_double_quote(path_to_sign.path)) if path_to_sign.signed_frameworks: for signed_framework in path_to_sign.signed_frameworks: cmd_codesigning.extend(['--signed_path', maybe_double_quote(signed_framework)]) cmd_codesigning.append('--') cmd_codesigning.extend(codesignopts) return cmd_codesigning def _path_to_sign(*, path, is_directory=False, signed_frameworks=[], use_entitlements=True): """Returns a "path to sign" value to be passed to `_signing_command_lines`. Args: path: The path to sign, relative to wherever the code signing command lines are being executed. is_directory: If `True`, the path is a directory and not a bundle, indicating that the contents of each item in the directory should be code signed except for the invisible files prefixed with a period. signed_frameworks: If provided, a list of frameworks that have already been signed. use_entitlements: If provided, indicates if the entitlements on the bundling target should be used for signing this path (useful to disabled the use when signing frameworks within an iOS app). Returns: A `struct` that can be passed to `_signing_command_lines`. """ return struct(path=path, is_directory=is_directory, signed_frameworks=signed_frameworks, use_entitlements=use_entitlements) def _validate_provisioning_profile(*, rule_descriptor, platform_prerequisites, provisioning_profile): is_device = platform_prerequisites.platform.is_device if is_device and rule_descriptor.requires_signing_for_device and (not provisioning_profile): fail('The provisioning_profile attribute must be set for device ' + 'builds on this platform (%s).' % platform_prerequisites.platform_type) def _signing_command_lines(*, codesigningtool, codesignopts, entitlements_file, paths_to_sign, platform_prerequisites, provisioning_profile): """Returns a multi-line string with codesign invocations for the bundle. For any signing identity other than ad hoc, the identity is verified as being valid in the keychain and an error will be emitted if the identity cannot be used for signing for any reason. Args: codesigningtool: The executable `File` representing the code signing tool. codesignopts: Extra options to pass to the `codesign` tool entitlements_file: The entitlements file to pass to codesign. paths_to_sign: A list of values returned from `path_to_sign` that indicate paths that should be code-signed. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. Returns: A multi-line string with codesign invocations for the bundle. """ commands = [] for path_to_sign in paths_to_sign: codesign_command = [codesigningtool.path] codesign_command.extend(_codesign_args_for_path(entitlements_file=entitlements_file, path_to_sign=path_to_sign, platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, codesignopts=codesignopts)) commands.append(' '.join(codesign_command)) return '\n'.join(commands) def _should_sign_simulator_frameworks(*, config_vars, features, rule_descriptor): """Check if simulator bound framework bundles should be codesigned. Args: Returns: True/False for if the framework should be signed. """ if 'apple.skip_codesign_simulator_bundles' in features: return False return True def _should_sign_simulator_bundles(*, config_vars, features, rule_descriptor): """Check if a main bundle should be codesigned. Args: Returns: True/False for if the bundle should be signed. """ if 'apple.codesign_simulator_bundles' in config_vars: print('warning: --define apple.codesign_simulator_bundles is deprecated, please switch to --features=apple.skip_codesign_simulator_bundles') if 'apple.skip_codesign_simulator_bundles' in features: return False if not rule_descriptor.skip_simulator_signing_allowed: return True return defines.bool_value(config_vars=config_vars, define_name='apple.codesign_simulator_bundles', default=True) def _should_sign_bundles(*, provisioning_profile, rule_descriptor, features): should_sign_bundles = True codesigning_exceptions = rule_descriptor.codesigning_exceptions if 'disable_legacy_signing' in features: should_sign_bundles = False elif codesigning_exceptions == rule_support.codesigning_exceptions.sign_with_provisioning_profile: if not provisioning_profile: should_sign_bundles = False elif codesigning_exceptions == rule_support.codesigning_exceptions.skip_signing: should_sign_bundles = False elif codesigning_exceptions != rule_support.codesigning_exceptions.none: fail('Internal Error: Encountered unsupported state for codesigning_exceptions.') return should_sign_bundles def _codesigning_args(*, entitlements, features, full_archive_path, is_framework=False, platform_prerequisites, provisioning_profile, rule_descriptor): """Returns a set of codesigning arguments to be passed to the codesigning tool. Args: entitlements: The entitlements file to sign with. Can be None. features: List of features enabled by the user. Typically from `ctx.features`. full_archive_path: The full path to the codesigning target. is_framework: If the target is a framework. False by default. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: File for the provisioning profile. rule_descriptor: A rule descriptor for platform and product types from the rule context. Returns: A list containing the arguments to pass to the codesigning tool. """ should_sign_bundles = _should_sign_bundles(provisioning_profile=provisioning_profile, rule_descriptor=rule_descriptor, features=features) if not should_sign_bundles: return [] is_device = platform_prerequisites.platform.is_device should_sign_sim_bundles = _should_sign_simulator_bundles(config_vars=platform_prerequisites.config_vars, features=platform_prerequisites.features, rule_descriptor=rule_descriptor) if not is_framework and (not is_device) and (not should_sign_sim_bundles): return [] _validate_provisioning_profile(platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, rule_descriptor=rule_descriptor) return _codesign_args_for_path(entitlements_file=entitlements, path_to_sign=_path_to_sign(path=full_archive_path), platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, shell_quote=False, codesignopts=[]) def _codesigning_command(*, bundle_path='', codesigningtool, codesignopts, entitlements, features, frameworks_path, platform_prerequisites, provisioning_profile, rule_descriptor, signed_frameworks): """Returns a codesigning command that includes framework embedded bundles. Args: bundle_path: The location of the bundle, relative to the archive. codesigningtool: The executable `File` representing the code signing tool. codesignopts: Extra options to pass to the `codesign` tool entitlements: The entitlements file to sign with. Can be None. features: List of features enabled by the user. Typically from `ctx.features`. frameworks_path: The location of the Frameworks directory, relative to the archive. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: File for the provisioning profile. rule_descriptor: A rule descriptor for platform and product types from the rule context. signed_frameworks: A depset containing each framework that has already been signed. Returns: A string containing the codesigning commands. """ should_sign_bundles = _should_sign_bundles(provisioning_profile=provisioning_profile, rule_descriptor=rule_descriptor, features=features) if not should_sign_bundles: return '' _validate_provisioning_profile(platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, rule_descriptor=rule_descriptor) paths_to_sign = [] should_sign_sim_frameworks = _should_sign_simulator_frameworks(config_vars=platform_prerequisites.config_vars, features=platform_prerequisites.features, rule_descriptor=rule_descriptor) if frameworks_path and should_sign_sim_frameworks: framework_root = paths.join('$WORK_DIR', frameworks_path) + '/' full_signed_frameworks = [] for signed_framework in signed_frameworks.to_list(): full_signed_frameworks.append(paths.join(framework_root, signed_framework)) paths_to_sign.append(_path_to_sign(path=framework_root, is_directory=True, signed_frameworks=full_signed_frameworks, use_entitlements=False)) should_sign_sim_bundles = _should_sign_simulator_bundles(config_vars=platform_prerequisites.config_vars, features=platform_prerequisites.features, rule_descriptor=rule_descriptor) if platform_prerequisites.platform.is_device or should_sign_sim_bundles: path_to_sign = paths.join('$WORK_DIR', bundle_path) paths_to_sign.append(_path_to_sign(path=path_to_sign)) return _signing_command_lines(codesigningtool=codesigningtool, entitlements_file=entitlements, paths_to_sign=paths_to_sign, platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, codesignopts=codesignopts) def _generate_codesigning_dossier_action(actions, label_name, resolved_codesigning_dossier_tool, output_discriminator, output_dossier, platform_prerequisites, embedded_dossiers=[], entitlements=None, provisioning_profile=None): """Generates a codesigning dossier based on parameters. Args: actions: The actions provider from `ctx.actions`. embedded_dossiers: An optional List of Structs generated from `embedded_codesigning_dossier` that should also be included in this dossier. entitlements: Optional file representing the entitlements to sign with. label_name: Name of the target being built. output_discriminator: A string to differentiate between different target intermediate files or `None`. output_dossier: The `File` representing the output dossier file - the zipped dossier will be placed here. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. resolved_codesigning_dossier_tool: The `struct` from resolve_tools representing the code signing tool. """ input_files = [x.dossier_file for x in embedded_dossiers] mnemonic = 'GenerateCodesigningDossier' progress_message = 'Generating codesigning dossier for %s' % label_name dossier_arguments = ['--output', output_dossier.path, '--zip'] execution_requirements = {'no-sandbox': '1'} is_device = platform_prerequisites.platform.is_device fragment = platform_prerequisites.objc_fragment codesign_identity = fragment.signing_certificate_name if is_device else '-' if not codesign_identity and (not provisioning_profile): codesign_identity = '-' if codesign_identity: dossier_arguments.extend(['--codesign_identity', codesign_identity]) else: dossier_arguments.append('--infer_identity') if entitlements: input_files.append(entitlements) dossier_arguments.extend(['--entitlements_file', entitlements.path]) if provisioning_profile: input_files.append(provisioning_profile) dossier_arguments.extend(['--provisioning_profile', provisioning_profile.path]) if is_device: execution_requirements['no-remote'] = '1' for embedded_dossier in embedded_dossiers: input_files.append(embedded_dossier.dossier_file) dossier_arguments.extend(['--embedded_dossier', embedded_dossier.relative_bundle_path, embedded_dossier.dossier_file.path]) args_file = intermediates.file(actions=actions, target_name=label_name, output_discriminator=output_discriminator, file_name='dossier_arguments') actions.write(output=args_file, content='\n'.join(dossier_arguments)) input_files.append(args_file) args_path_argument = '@%s' % args_file.path args = ['create', args_path_argument] apple_support.run(actions=actions, apple_fragment=platform_prerequisites.apple_fragment, arguments=args, executable=resolved_codesigning_dossier_tool.executable, execution_requirements=execution_requirements, inputs=depset(input_files, transitive=[resolved_codesigning_dossier_tool.inputs]), input_manifests=resolved_codesigning_dossier_tool.input_manifests, mnemonic=mnemonic, outputs=[output_dossier], progress_message=progress_message, tools=[resolved_codesigning_dossier_tool.executable], xcode_config=platform_prerequisites.xcode_version_config, xcode_path_wrapper=platform_prerequisites.xcode_path_wrapper) def _post_process_and_sign_archive_action(*, actions, archive_codesigning_path, codesign_inputs, codesignopts, entitlements=None, features, frameworks_path, input_archive, ipa_post_processor, label_name, output_archive, output_archive_root_path, output_discriminator, platform_prerequisites, process_and_sign_template, provisioning_profile, resolved_codesigningtool, rule_descriptor, signed_frameworks): """Post-processes and signs an archived bundle. Args: actions: The actions provider from `ctx.actions`. archive_codesigning_path: The codesigning path relative to the archive. codesign_inputs: Extra inputs needed for the `codesign` tool. codesignopts: Extra options to pass to the `codesign` tool. entitlements: Optional file representing the entitlements to sign with. features: List of features enabled by the user. Typically from `ctx.features`. frameworks_path: The Frameworks path relative to the archive. input_archive: The `File` representing the archive containing the bundle that has not yet been processed or signed. ipa_post_processor: A file that acts as a bundle post processing tool. May be `None`. label_name: Name of the target being built. output_archive: The `File` representing the processed and signed archive. output_archive_root_path: The `string` path to where the processed, uncompressed archive should be located. output_discriminator: A string to differentiate between different target intermediate files or `None`. platform_prerequisites: Struct containing information on the platform being targeted. process_and_sign_template: A template for a shell script to process and sign as a file. provisioning_profile: The provisioning profile file. May be `None`. resolved_codesigningtool: The `struct` from resolve_tools representing the code signing tool. rule_descriptor: A rule descriptor for platform and product types from the rule context. signed_frameworks: Depset containing each framework that has already been signed. """ input_files = [input_archive] processing_tools = [] execution_requirements = {'no-sandbox': '1'} signing_command_lines = _codesigning_command(bundle_path=archive_codesigning_path, codesigningtool=resolved_codesigningtool.executable, codesignopts=codesignopts, entitlements=entitlements, features=features, frameworks_path=frameworks_path, platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, rule_descriptor=rule_descriptor, signed_frameworks=signed_frameworks) if signing_command_lines: processing_tools.append(resolved_codesigningtool.executable) if entitlements: input_files.append(entitlements) if provisioning_profile: input_files.append(provisioning_profile) if platform_prerequisites.platform.is_device: execution_requirements['no-remote'] = '1' ipa_post_processor_path = '' if ipa_post_processor: processing_tools.append(ipa_post_processor) ipa_post_processor_path = ipa_post_processor.path config_vars = platform_prerequisites.config_vars compression_requested = defines.bool_value(config_vars=config_vars, define_name='apple.compress_ipa', default=False) should_compress = config_vars['COMPILATION_MODE'] == 'opt' or compression_requested mnemonic = 'ProcessAndSign' progress_message = 'Processing and signing %s' % label_name has_work = any([signing_command_lines, ipa_post_processor_path, should_compress]) if not has_work: actions.run_shell(command="cp -p '%s' '%s'" % (input_archive.path, output_archive.path), inputs=[input_archive], mnemonic=mnemonic, outputs=[output_archive], progress_message=progress_message) return process_and_sign_expanded_template = intermediates.file(actions=actions, target_name=label_name, output_discriminator=output_discriminator, file_name='process-and-sign-%s.sh' % hash(output_archive.path)) actions.expand_template(template=process_and_sign_template, output=process_and_sign_expanded_template, is_executable=True, substitutions={'%ipa_post_processor%': ipa_post_processor_path or '', '%output_path%': output_archive.path, '%should_compress%': '1' if should_compress else '', '%signing_command_lines%': signing_command_lines, '%unprocessed_archive_path%': input_archive.path, '%work_dir%': output_archive_root_path}) arguments = [] if signing_command_lines: arguments.append('should_sign') if ipa_post_processor_path: arguments.append('should_process') if should_compress: arguments.append('should_compress') run_on_darwin = any([signing_command_lines, ipa_post_processor_path]) if run_on_darwin: apple_support.run(actions=actions, apple_fragment=platform_prerequisites.apple_fragment, arguments=arguments, executable=process_and_sign_expanded_template, execution_requirements=execution_requirements, inputs=depset(input_files + codesign_inputs, transitive=[resolved_codesigningtool.inputs]), input_manifests=resolved_codesigningtool.input_manifests, mnemonic=mnemonic, outputs=[output_archive], progress_message=progress_message, tools=processing_tools, xcode_config=platform_prerequisites.xcode_version_config) else: actions.run(arguments=arguments, executable=process_and_sign_expanded_template, inputs=input_files, mnemonic=mnemonic, outputs=[output_archive], progress_message=progress_message) def _sign_binary_action(*, actions, codesign_inputs, codesignopts, input_binary, output_binary, platform_prerequisites, provisioning_profile, resolved_codesigningtool, rule_descriptor): """Signs the input binary file, copying it into the given output binary file. Args: actions: The actions provider from `ctx.actions`. codesign_inputs: Extra inputs needed for the `codesign` tool. codesignopts: Extra options to pass to the `codesign` tool. input_binary: The `File` representing the binary to be signed. output_binary: The `File` representing signed binary. platform_prerequisites: Struct containing information on the platform being targeted. provisioning_profile: The provisioning profile file. May be `None`. resolved_codesigningtool: The `struct` from resolve_tools representing the code signing tool. rule_descriptor: A rule descriptor for platform and product types from the rule context. """ _validate_provisioning_profile(platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, rule_descriptor=rule_descriptor) path_to_sign = _path_to_sign(path=output_binary.path) signing_commands = _signing_command_lines(codesigningtool=resolved_codesigningtool.executable, entitlements_file=None, paths_to_sign=[path_to_sign], platform_prerequisites=platform_prerequisites, provisioning_profile=provisioning_profile, codesignopts=codesignopts) execution_requirements = {'no-sandbox': '1'} if platform_prerequisites.platform.is_device and provisioning_profile: execution_requirements['no-remote'] = '1' apple_support.run_shell(actions=actions, apple_fragment=platform_prerequisites.apple_fragment, command='cp {input_binary} {output_binary}'.format(input_binary=input_binary.path, output_binary=output_binary.path) + '\n' + signing_commands, execution_requirements=execution_requirements, inputs=depset([input_binary] + codesign_inputs, transitive=[resolved_codesigningtool.inputs]), input_manifests=resolved_codesigningtool.input_manifests, mnemonic='SignBinary', outputs=[output_binary], tools=[resolved_codesigningtool.executable], xcode_config=platform_prerequisites.xcode_version_config) def _embedded_codesigning_dossier(relative_bundle_path, dossier_file): """Returns a struct describing a dossier to be embedded in another dossier. Args: dossier_file: The File representing the zipped dossier to be embedded. relative_bundle_path: The string path of the artifact this dossier describes relative to the root of the bundle it is embedded in. E.g. 'PlugIns/NetworkExtension.appex' """ return struct(relative_bundle_path=relative_bundle_path, dossier_file=dossier_file) codesigning_support = struct(codesigning_args=_codesigning_args, codesigning_command=_codesigning_command, codesignopts_from_rule_ctx=_codesignopts_from_rule_ctx, embedded_codesigning_dossier=_embedded_codesigning_dossier, generate_codesigning_dossier_action=_generate_codesigning_dossier_action, post_process_and_sign_archive_action=_post_process_and_sign_archive_action, sign_binary_action=_sign_binary_action)
data_type_unit = 1023 weight = ['50000','60000','50000'] #D1,D3,D4 with open('lc_D1_1023_val.sh') as afile: lines = afile.readlines() for i,dtype in enumerate(['D1','D3','D4']): for j in range(6): new_file_name = 'lc_' + dtype + '_' + str(data_type_unit * (1+j)) + '_val.sh' new_file = open(new_file_name, 'w') for k, line in enumerate(lines): new_line = line if k == 16: new_line = ' --imdb rgz_2017_' + new_file_name[:-3] + ' \\\n' if k == 17: if dtype == 'D1': new_line = ' --cfg $RGZ_RCNN/experiments/cfgs/faster_rcnn_end2end_264.yml \\\n' else: new_line = ' --cfg $RGZ_RCNN/experiments/cfgs/faster_rcnn_end2end.yml \\\n' if k == 19: new_line = ' --weights $RGZ_RCNN/output/faster_rcnn_end2end/rgz_2017_'+ new_file_name[:-7] + '/VGGnet_fast_rcnn-80000 \\\n'# if dtype == 'D3': # new_line = ' --weights $RGZ_RCNN/output/faster_rcnn_end2end/rgz_2017_'+ new_file_name[:-7] + '/VGGnet_fast_rcnn-60000 \\\n' # else: # new_line = ' --weights $RGZ_RCNN/output/faster_rcnn_end2end/rgz_2017_' + new_file_name[:-7] + '/VGGnet_fast_rcnn-50000 \\\n' new_file.write(new_line) new_file.close()
data_type_unit = 1023 weight = ['50000', '60000', '50000'] with open('lc_D1_1023_val.sh') as afile: lines = afile.readlines() for (i, dtype) in enumerate(['D1', 'D3', 'D4']): for j in range(6): new_file_name = 'lc_' + dtype + '_' + str(data_type_unit * (1 + j)) + '_val.sh' new_file = open(new_file_name, 'w') for (k, line) in enumerate(lines): new_line = line if k == 16: new_line = ' --imdb rgz_2017_' + new_file_name[:-3] + ' \\\n' if k == 17: if dtype == 'D1': new_line = ' --cfg $RGZ_RCNN/experiments/cfgs/faster_rcnn_end2end_264.yml \\\n' else: new_line = ' --cfg $RGZ_RCNN/experiments/cfgs/faster_rcnn_end2end.yml \\\n' if k == 19: new_line = ' --weights $RGZ_RCNN/output/faster_rcnn_end2end/rgz_2017_' + new_file_name[:-7] + '/VGGnet_fast_rcnn-80000 \\\n' new_file.write(new_line) new_file.close()
""" categories: Modules,builtins description: Second argument to next() is not implemented cause: MicroPython is optimised for code space. workaround: Instead of ``val = next(it, deflt)`` use:: try: val = next(it) except StopIteration: val = deflt """ print(next(iter(range(0)), 42))
""" categories: Modules,builtins description: Second argument to next() is not implemented cause: MicroPython is optimised for code space. workaround: Instead of ``val = next(it, deflt)`` use:: try: val = next(it) except StopIteration: val = deflt """ print(next(iter(range(0)), 42))
lr = 0.001 model_path = 'model/IC_models/baseline_lr0.001_bs256/' crop_size = 32 log_step = 50 save_step = 1500 num_epochs = 500 batch_size = 256 num_workers = 8 checkpoint = './model/IC_models/baseline_lr0.001_bs256/new_encoder-49-1500.ckpt' loading = True # Model parameters model = dict( net='resnet101', embed_size=256, hidden_size=512, num_layers=1, )
lr = 0.001 model_path = 'model/IC_models/baseline_lr0.001_bs256/' crop_size = 32 log_step = 50 save_step = 1500 num_epochs = 500 batch_size = 256 num_workers = 8 checkpoint = './model/IC_models/baseline_lr0.001_bs256/new_encoder-49-1500.ckpt' loading = True model = dict(net='resnet101', embed_size=256, hidden_size=512, num_layers=1)
"""Provide constants for use throughout the package.""" # These are the currently supported Rust target triples # # Targets are identified by their "target triple" which is the string to inform the compiler what kind of output # should be produced. A target triple consists of three strings separated by a hyphen, with a possible fourth string # at the end preceded by a hyphen. The first is the architecture, the second is the "vendor", the third is the OS # type, and the optional fourth is environment type. # # References: # * https://doc.rust-lang.org/nightly/rustc/platform-support.html # * https://rust-lang.github.io/rfcs/0131-target-specification.html SUPPORTED_TARGET_TRIPLES = ( "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-musl", ) # Keys are lowercase machine hardware names as returned from `uname -m`. # Values are the mapped rustc architecture. SUPPORTED_ARCHES = { "aarch64": "aarch64", "arm64": "aarch64", "x86_64": "x86_64", "amd64": "x86_64", } # Keys are lowercase operating system name as returned from `uname -s`. # Values are the mapped rustc platform, which is the vendor-os_type[-environment_type]. SUPPORTED_PLATFORMS = { "linux": "unknown-linux-musl", "darwin": "apple-darwin", } # Environment variable name to hold the Phylum CLI token used to access the backend API. # The API token can also be set via the environment variable `PHYLUM_API_KEY`, which will take precedence over # the `offline_access` parameter in the `settings.yaml` file. TOKEN_ENVVAR_NAME = "PHYLUM_API_KEY" # nosec ; this is NOT a hard-coded password # These are the currently supported lockfiles. # Keys are the standard lockfile filename, optionally specified with glob syntax. # Values are the name of the tool that generates the lockfile. SUPPORTED_LOCKFILES = { # Javascript/Typescript "package-lock.json": "npm", "yarn.lock": "yarn", # Ruby "Gemfile.lock": "gem", # Python "requirements.txt": "pip", "Pipfile.lock": "pipenv", "Pipfile": "pipenv", "poetry.lock": "poetry", # C# "*.csproj": "nuget", # Java "pom.xml": "mvn", "gradle.lockfile": "gradle", } # Timeout value, in seconds, to tell the Python Requests package to stop waiting for a response. # Reference: https://2.python-requests.org/en/master/user/quickstart/#timeouts REQ_TIMEOUT: float = 10.0
"""Provide constants for use throughout the package.""" supported_target_triples = ('aarch64-apple-darwin', 'x86_64-apple-darwin', 'x86_64-unknown-linux-musl') supported_arches = {'aarch64': 'aarch64', 'arm64': 'aarch64', 'x86_64': 'x86_64', 'amd64': 'x86_64'} supported_platforms = {'linux': 'unknown-linux-musl', 'darwin': 'apple-darwin'} token_envvar_name = 'PHYLUM_API_KEY' supported_lockfiles = {'package-lock.json': 'npm', 'yarn.lock': 'yarn', 'Gemfile.lock': 'gem', 'requirements.txt': 'pip', 'Pipfile.lock': 'pipenv', 'Pipfile': 'pipenv', 'poetry.lock': 'poetry', '*.csproj': 'nuget', 'pom.xml': 'mvn', 'gradle.lockfile': 'gradle'} req_timeout: float = 10.0
# constants to indicate player status UNINITIALIZED = 0 # No video file loaded READY = 1 # Video file loaded and ready to start PAUSED = 2 # Playback is paused PLAYING = 3 # Player is playing EOS = 4 # End of stream has been reached # constants to indicate clock status RUNNING = 5 # Clock is ticking # Clock uses PAUSED status from player variables above STOPPED = 6 # Clock has been stopped and is reset __all__ = ['UNINITIALIZED', 'READY', 'PAUSED', 'PLAYING', 'EOS', 'RUNNING', 'STOPPED']
uninitialized = 0 ready = 1 paused = 2 playing = 3 eos = 4 running = 5 stopped = 6 __all__ = ['UNINITIALIZED', 'READY', 'PAUSED', 'PLAYING', 'EOS', 'RUNNING', 'STOPPED']
# wap to traverse a string using while loop str='This is a string' i=0 while i<len(str): print(str[i],end='') i+=1 print()
str = 'This is a string' i = 0 while i < len(str): print(str[i], end='') i += 1 print()
#!/usr/bin/env python # -*- coding: utf-8 -*- # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public License (GPL). class DependencyError(Exception): """The user requested something that won't be possible because of a dependency error (e.g. audiolib that isn't available) """ pass class SoundFormatError(Exception): """The user tried to create two streams (diff sample rates) on a machine that won't allow that """ pass class NoUserError(Exception): pass class NoGitError(DependencyError): pass class RepositoryError(Exception): pass class ConditionsImportError(Exception): pass class MissingFontError(Exception): pass
class Dependencyerror(Exception): """The user requested something that won't be possible because of a dependency error (e.g. audiolib that isn't available) """ pass class Soundformaterror(Exception): """The user tried to create two streams (diff sample rates) on a machine that won't allow that """ pass class Nousererror(Exception): pass class Nogiterror(DependencyError): pass class Repositoryerror(Exception): pass class Conditionsimporterror(Exception): pass class Missingfonterror(Exception): pass
""" The MIT License (MIT) Copyright (c) 2022-present jaczerob Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ class FailedResponse(Exception): """An exception that is raised whenever the TTR API returns an error response""" class SessionNotConnected(Exception): """An exception that is raised whenever an API request is attempted before connecting to the client session""" def __init__(self) -> None: message = 'Client session is not connected' super().__init__(message)
""" The MIT License (MIT) Copyright (c) 2022-present jaczerob Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ class Failedresponse(Exception): """An exception that is raised whenever the TTR API returns an error response""" class Sessionnotconnected(Exception): """An exception that is raised whenever an API request is attempted before connecting to the client session""" def __init__(self) -> None: message = 'Client session is not connected' super().__init__(message)
class WrapAroundCounter: """Simple wrap around counter that increments an input wrapping around a max_value""" def __init__(self, max_val): self._max_val = max_val def increment(self, i: int): """ :param i: integer between 0 and max_val :return: increments i wrapping around max_value """ ret_val = None if i >= self._max_val or i < 1: ret_val = 1 else: ret_val = i+1 return ret_val
class Wraparoundcounter: """Simple wrap around counter that increments an input wrapping around a max_value""" def __init__(self, max_val): self._max_val = max_val def increment(self, i: int): """ :param i: integer between 0 and max_val :return: increments i wrapping around max_value """ ret_val = None if i >= self._max_val or i < 1: ret_val = 1 else: ret_val = i + 1 return ret_val
accuracy_requirement = 0.75 analytical_delay = True auto_delay_chain_sizing = False bank_select = "bank_select" bitcell = "bitcell_1port" bitcell_array = "bitcell_array" buf_dec = "pbuf" check_lvsdrc = False col_cap = "col_cap" col_cap_array = "col_cap_array" column_mux_array = "column_mux_array" config_file = "/home/peepu/VSDSRAM_sky130/myconfig_sky130_2.py" control_logic = "control_logic" coverage = 0 debug = False decoder = "hierarchical_decoder" delay_chain = "delay_chain" delay_chain_fanout_per_stage = 4 delay_chain_stages = 9 dff = "dff" dff_array = "dff_array" drc_exe = None drc_name = "" dummy_bitcell = "dummy_bitcell_1port" inline_lvsdrc = False inv_dec = "pinv" is_unit_test = False keep_temp = False load_scales = [0.25, 1, 4] local_array_size = 0 lvs_exe = None lvs_name = "" magic_exe = None nand2_dec = "pnand2" nand3_dec = "pnand3" nand4_dec = "pnand4" netlist_only = False nominal_corner_only = False num_banks = 1 num_r_ports = 0 num_rw_ports = 1 num_spare_cols = 0 num_spare_rows = 0 num_threads = 2 num_w_ports = 0 num_words = 16 openram_tech = "/home/peepu/VSDSRAM_sky130/OpenRAM/technology/sky130A/" openram_temp = "/tmp/openram_peepu_13915_temp/" output_extended_config = True output_name = "sram_2_16_sky130A" output_path = "/home/peepu/VSDSRAM_sky130/temp/" overridden = {'__name__': True, '__doc__': True, '__package__': True, '__loader__': True, '__spec__': True, '__file__': True, '__cached__': True, '__builtins__': True, 'word_size': True, 'num_words': True, 'tech_name': True, 'process_corners': True, 'supply_voltages': True, 'output_path': True, 'output_name': True} perimeter_pins = True pex_exe = None pex_name = "" precharge_array = "precharge_array" print_banner = True process_corners = ['TT'] ptx = "ptx" rbl_delay_percentage = 0.5 replica_bitcell = "replica_bitcell_1port" replica_bitline = "replica_bitline" route_supplies = "tree" row_cap = "row_cap" row_cap_array = "row_cap_array" sense_amp = "sense_amp" sense_amp_array = "sense_amp_array" slew_scales = [0.25, 1, 8] spice_exe = "" spice_name = "" supply_voltages = [1.8] tech_name = "sky130A" temperatures = [0, 25, 100] tri_gate = "tri_gate" tri_gate_array = "tri_gate_array" trim_netlist = False use_pex = False verbose_level = 0 word_size = 2 wordline_driver = "wordline_driver" words_per_row = 1 write_driver = "write_driver" write_driver_array = "write_driver_array" write_mask_and_array = "write_mask_and_array" write_size = None
accuracy_requirement = 0.75 analytical_delay = True auto_delay_chain_sizing = False bank_select = 'bank_select' bitcell = 'bitcell_1port' bitcell_array = 'bitcell_array' buf_dec = 'pbuf' check_lvsdrc = False col_cap = 'col_cap' col_cap_array = 'col_cap_array' column_mux_array = 'column_mux_array' config_file = '/home/peepu/VSDSRAM_sky130/myconfig_sky130_2.py' control_logic = 'control_logic' coverage = 0 debug = False decoder = 'hierarchical_decoder' delay_chain = 'delay_chain' delay_chain_fanout_per_stage = 4 delay_chain_stages = 9 dff = 'dff' dff_array = 'dff_array' drc_exe = None drc_name = '' dummy_bitcell = 'dummy_bitcell_1port' inline_lvsdrc = False inv_dec = 'pinv' is_unit_test = False keep_temp = False load_scales = [0.25, 1, 4] local_array_size = 0 lvs_exe = None lvs_name = '' magic_exe = None nand2_dec = 'pnand2' nand3_dec = 'pnand3' nand4_dec = 'pnand4' netlist_only = False nominal_corner_only = False num_banks = 1 num_r_ports = 0 num_rw_ports = 1 num_spare_cols = 0 num_spare_rows = 0 num_threads = 2 num_w_ports = 0 num_words = 16 openram_tech = '/home/peepu/VSDSRAM_sky130/OpenRAM/technology/sky130A/' openram_temp = '/tmp/openram_peepu_13915_temp/' output_extended_config = True output_name = 'sram_2_16_sky130A' output_path = '/home/peepu/VSDSRAM_sky130/temp/' overridden = {'__name__': True, '__doc__': True, '__package__': True, '__loader__': True, '__spec__': True, '__file__': True, '__cached__': True, '__builtins__': True, 'word_size': True, 'num_words': True, 'tech_name': True, 'process_corners': True, 'supply_voltages': True, 'output_path': True, 'output_name': True} perimeter_pins = True pex_exe = None pex_name = '' precharge_array = 'precharge_array' print_banner = True process_corners = ['TT'] ptx = 'ptx' rbl_delay_percentage = 0.5 replica_bitcell = 'replica_bitcell_1port' replica_bitline = 'replica_bitline' route_supplies = 'tree' row_cap = 'row_cap' row_cap_array = 'row_cap_array' sense_amp = 'sense_amp' sense_amp_array = 'sense_amp_array' slew_scales = [0.25, 1, 8] spice_exe = '' spice_name = '' supply_voltages = [1.8] tech_name = 'sky130A' temperatures = [0, 25, 100] tri_gate = 'tri_gate' tri_gate_array = 'tri_gate_array' trim_netlist = False use_pex = False verbose_level = 0 word_size = 2 wordline_driver = 'wordline_driver' words_per_row = 1 write_driver = 'write_driver' write_driver_array = 'write_driver_array' write_mask_and_array = 'write_mask_and_array' write_size = None
# -*- coding: utf-8 -*- __author__ = 'Aubrey Taylor' __email__ = 'aubricus@gmail.com' __version__ = '0.0.5'
__author__ = 'Aubrey Taylor' __email__ = 'aubricus@gmail.com' __version__ = '0.0.5'
# value of directions NORTH = 0 EAST = 1 SOUTH = 2 WEST = 3 INVALID = -1 # maximum number of visit at MCTS MAX_SEARCH = 1000 # size and channels of features input to CNN. INPUT_AREA_SIZE = 11 INPUT_CHANNELS = 98 # size of normal model. NORMAL_MODEL_CHANNELS = 64 NORMAL_MODEL_BLOCKS = 8 # size of small model. SMALL_MODEL_CHANNELS = 48 SMALL_MODEL_BLOCKS = 8 # size of tiny model. TINY_MODEL_CHANNELS = 32 TINY_MODEL_BLOCKS = 8
north = 0 east = 1 south = 2 west = 3 invalid = -1 max_search = 1000 input_area_size = 11 input_channels = 98 normal_model_channels = 64 normal_model_blocks = 8 small_model_channels = 48 small_model_blocks = 8 tiny_model_channels = 32 tiny_model_blocks = 8
config = { 'CONTEXT': 'We are in PROD context', 'Log_bucket': 'gc://bucketname_great2', 'versionNR': 'v12.333', 'zone': 'europe-west1-c', }
config = {'CONTEXT': 'We are in PROD context', 'Log_bucket': 'gc://bucketname_great2', 'versionNR': 'v12.333', 'zone': 'europe-west1-c'}
def helm_template(name, release_name, chart, values, namespace = None): """Locally expand a helm chart. Args: chart: build label, referencing the chart to expand. values: label. File with expand-time values. """ native.genrule( name = name, srcs = [chart, values], outs = [name + ".yaml"], cmd = "$(location @kubernetes_helm//:helm) template --name {name} --namespace {namespace} --values $(location {values}) $(location {chart}) > $@".format(name = release_name, namespace = namespace or "default", chart = chart, values = values), tools = ["@kubernetes_helm//:helm"], )
def helm_template(name, release_name, chart, values, namespace=None): """Locally expand a helm chart. Args: chart: build label, referencing the chart to expand. values: label. File with expand-time values. """ native.genrule(name=name, srcs=[chart, values], outs=[name + '.yaml'], cmd='$(location @kubernetes_helm//:helm) template --name {name} --namespace {namespace} --values $(location {values}) $(location {chart}) > $@'.format(name=release_name, namespace=namespace or 'default', chart=chart, values=values), tools=['@kubernetes_helm//:helm'])
adapters = sorted([int(n) for n in open('input').read()[:-1].split('\n')]) adapters.insert(0, 0) adapters.append(max(adapters) + 3) joltage_dist = {k: 0 for k in range(5)} for idx in range(1, len(adapters)): joltage_diff = adapters[idx] - adapters[idx-1] if joltage_diff > 3: raise ValueError(f"Encountered joltage diff > 3: {joltage_diff} for {adapters[idx]} and {adapters[idx-1]} at index {idx}") joltage_dist[joltage_diff] += 1 print(joltage_dist[1] * joltage_dist[3])
adapters = sorted([int(n) for n in open('input').read()[:-1].split('\n')]) adapters.insert(0, 0) adapters.append(max(adapters) + 3) joltage_dist = {k: 0 for k in range(5)} for idx in range(1, len(adapters)): joltage_diff = adapters[idx] - adapters[idx - 1] if joltage_diff > 3: raise value_error(f'Encountered joltage diff > 3: {joltage_diff} for {adapters[idx]} and {adapters[idx - 1]} at index {idx}') joltage_dist[joltage_diff] += 1 print(joltage_dist[1] * joltage_dist[3])
while True: results = cursor.fetchmany(1000) if not results: break for result in results: doSomethingWith(result)
while True: results = cursor.fetchmany(1000) if not results: break for result in results: do_something_with(result)
text = input().split("#") water = int(input()) effort = 0 total_fire = 0 count = 1 for command in text: if count == 1: print("Cells:") count += 1 convert = command.split(" = ") if convert[0] == "High": amount = int(convert[1]) if 81 <= amount <= 125: if water - amount >= 0: water -= amount effort += amount * 0.25 total_fire += amount print(f" - {amount}") else: break elif convert[0] == "Medium": amount = int(convert[1]) if 51 <= amount <= 80: if water - amount >= 0: water -= amount effort += amount * 0.25 total_fire += amount print(f" - {amount}") else: break elif convert[0] == "Low": amount = int(convert[1]) if 1 <= amount <= 50: if water - amount >= 0: water -= amount effort += amount * 0.25 total_fire += amount print(f" - {amount}") else: break print(f"Effort: {effort:.2f}") print(f"Total Fire: {total_fire}")
text = input().split('#') water = int(input()) effort = 0 total_fire = 0 count = 1 for command in text: if count == 1: print('Cells:') count += 1 convert = command.split(' = ') if convert[0] == 'High': amount = int(convert[1]) if 81 <= amount <= 125: if water - amount >= 0: water -= amount effort += amount * 0.25 total_fire += amount print(f' - {amount}') else: break elif convert[0] == 'Medium': amount = int(convert[1]) if 51 <= amount <= 80: if water - amount >= 0: water -= amount effort += amount * 0.25 total_fire += amount print(f' - {amount}') else: break elif convert[0] == 'Low': amount = int(convert[1]) if 1 <= amount <= 50: if water - amount >= 0: water -= amount effort += amount * 0.25 total_fire += amount print(f' - {amount}') else: break print(f'Effort: {effort:.2f}') print(f'Total Fire: {total_fire}')
def solve(): n=int(input()) a=list(map(int, input().split())) l=0 t=0 c=True ms=0 for i in range(n): if a[i] < a[l]: t+=1 c=True else: l=i print(t) if __name__ == '__main__': t=int(input()) for _ in range(t): solve()
def solve(): n = int(input()) a = list(map(int, input().split())) l = 0 t = 0 c = True ms = 0 for i in range(n): if a[i] < a[l]: t += 1 c = True else: l = i print(t) if __name__ == '__main__': t = int(input()) for _ in range(t): solve()
class ValueTransformer(object): ATTRIBUTE_TYPE = 'Transformable' def __init__(self, name): self.name = name def __str__(self): return self.name def __repr__(self): return '<ValueTransformer {}>'.format(self.name)
class Valuetransformer(object): attribute_type = 'Transformable' def __init__(self, name): self.name = name def __str__(self): return self.name def __repr__(self): return '<ValueTransformer {}>'.format(self.name)
#!/usr/bin/env python # -*- coding: utf-8 -*- # This is aukro config file # Do not change this file, use instance/aukro.conf instead HOST = "localhost" PORT = 5000 BASE_URL = "http://localhost:5000" DEBUG = True TESTING = False SECRET_KEY = "DuMmY sEcReT kEy" CSRF_ENABLED = True CSRF_SESSION_KEY = "_csrf_token" MONGODB_SETTINGS = { "db": "aukro", "host": "mongodb://localhost" } BABEL_DEFAULT_LOCALE = "ru" BABEL_DEFAULT_TIMEZONE = "Europe/Kiev" # Google Analytics GA_UA = "UA-XXXXXXXX-X"
host = 'localhost' port = 5000 base_url = 'http://localhost:5000' debug = True testing = False secret_key = 'DuMmY sEcReT kEy' csrf_enabled = True csrf_session_key = '_csrf_token' mongodb_settings = {'db': 'aukro', 'host': 'mongodb://localhost'} babel_default_locale = 'ru' babel_default_timezone = 'Europe/Kiev' ga_ua = 'UA-XXXXXXXX-X'