Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body TryExcept body If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body If CompareIsNot Call NameLoad NameLoad NameLoad body Assert Call NameLoad Num NameLoad Assert Call NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad Num Num Assert CompareLt Call NameLoad Num Num Assert CompareLtE Call NameLoad Num Num Assert UnaryOpNot CompareEq Call NameLoad Num Num Assert UnaryOpNot CompareGt Call NameLoad Num Num Assert UnaryOpNot CompareGtE Call NameLoad Num Num Assert CompareEq Call NameLoad Num Call NameLoad Num Assert CompareNotEq Call NameLoad Num Call NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad keyword Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body ClassDef bases NameLoad body Pass decorator_list Assert Call NameLoad Call NameLoad Num keyword NameLoad Assign NameStore Call NameLoad Num keyword NameLoad Assert Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args defaults body ClassDef bases NameLoad NameLoad body Pass decorator_list Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assert Call NameLoad NameLoad Str Assert Call NameLoad NameLoad Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIs AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad NameLoad Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assign NameStore Num Assign NameStore ListLoad TupleLoad NameLoad Num TupleLoad NameLoad Num TupleLoad NameLoad Num TupleLoad NameLoad Num TupleLoad NameLoad Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Num keyword Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num Num Num TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults BinOpSub Num BinOpMult BinOpDiv AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore NameLoad Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num Num Num TupleLoad Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num Num Num TupleLoad Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr Num Num keyword NameLoad Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad TupleLoad Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Num Assign NameStore Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assert CompareEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assert CompareEq Call NameLoad Call NameLoad NameLoad ListLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad ListLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad ListLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Num Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Num Assert CompareEq Call NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad TupleLoad Num Num decorator_list
N/A N/A math almost Approximate pytest raises elo * elopopulars * almost N/A Approximate N/A normalize N/A N/A self value N/A N/A N/A N/A N/A isinstance value Rating N/A N/A isinstance value float N/A N/A N/A N/A self normalize N/A float value N/A N/A N/A isinstance value N/A list tuple N/A N/A N/A N/A N/A isinstance N/A value N/A 0 Rating N/A N/A value N/A tuple N/A map float value N/A N/A N/A N/A TypeError IndexError N/A N/A N/A N/A N/A N/A super almost self normalize value N/A N/A test_rating N/A N/A N/A N/A N/A N/A N/A type Rating type N/A N/A N/A isinstance 1.99 Rating N/A N/A issubclass float Rating N/A N/A N/A Rating 100 100 N/A N/A N/A Rating 100 200 N/A N/A N/A Rating 100 200 N/A N/A N/A N/A Rating 100 200 N/A N/A N/A N/A Rating 100 200 N/A N/A N/A N/A Rating 100 200 N/A N/A N/A Rating 100 N/A Rating 100 N/A N/A N/A Rating 100 N/A Rating 200 N/A test_initial_rating N/A N/A N/A N/A N/A env N/A Elo initial 1000 N/A N/A N/A N/A env create_rating 1000 N/A test_custom_rating_class N/A N/A N/A N/A CustomRating N/A Rating N/A N/A N/A N/A N/A Elo N/A CustomRating 1989 rating_class CustomRating N/A elo N/A Elo 1989 rating_class CustomRating N/A N/A isinstance N/A N/A elo create_rating 1989 CustomRating N/A test_mixed_rating_class N/A N/A N/A N/A MixedRating N/A CountedRating TimedRating N/A N/A N/A N/A env N/A Elo rating_class MixedRating N/A rating N/A N/A env create_rating 1000 N/A N/A hasattr rating times N/A N/A hasattr rating rated_at N/A N/A N/A rating times 0 N/A N/A N/A rating rated_at None N/A rating N/A N/A env rate rating N/A N/A WIN 1000 N/A N/A N/A rating times 1 N/A N/A N/A rating rated_at None N/A test_fide N/A N/A N/A N/A N/A Described in `http://en.wikipedia.org/wiki/Elo_rating_system
    #Most_accurate_K-factor`_.
     N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 2500 0 25 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 5000 10 25 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 1000 20 25 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 2000 30 15 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 2399 31 15 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 3000 stable True 10 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 2400 stable True 10 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 1200 stable True 10 N/A N/A N/A N/A fide25 k_factor N/A N/A fide25 create_rating 800 stable True 10 N/A test_uscf N/A N/A N/A N/A N/A Described in `http://en.wikipedia.org/wiki/Elo_rating_system
    #Most_accurate_K-factor`_.
     N/A N/A N/A N/A uscf k_factor 2000 32 N/A N/A N/A N/A uscf k_factor 2200 24 N/A N/A N/A N/A uscf k_factor 3000 16 N/A rating 1613 N/A series N/A N/A LOSS 1609 N/A DRAW 1477 N/A WIN 1388 N/A WIN 1586 N/A LOSS 1720 N/A N/A N/A round N/A N/A uscf rate rating series 1601 N/A test_mcleopold N/A N/A N/A N/A N/A The example from `https://github.com/McLeopold/PythonSkills/blob/master
    /skills/testsuite/test_elo.py`_.
     N/A mcleopold N/A Elo k_factor 25 initial 1200 N/A N/A N/A almost N/A N/A mcleopold quality_1vs1 1200 1400 0.4805 N/A N/A N/A almost N/A N/A mcleopold rate_1vs1 1200 1400 2 N/A 1218.99 1381.01 N/A test_zookeeper N/A N/A N/A N/A N/A zookeeper N/A Elo N/A N/A N/A r N/A N/A 32 N/A N/A N/A math pi 2 N/A r times CountedRating N/A N/A N/A N/A zookeeper k_factor N/A N/A zookeeper create_rating 1500 0 32 N/A test_moserware N/A N/A N/A N/A N/A The test cases is from `https://github.com/moserware/Skills`_. N/A f25 fide25 N/A N/A N/A almost N/A N/A f25 rate_1vs1 1200 1500 1 N/A 1221.3 1478.8 N/A N/A N/A almost N/A N/A f25 rate_1vs1 1500 1200 1 N/A 1503.8 1196.3 N/A N/A N/A almost N/A N/A f25 rate_1vs1 1200 1500 drawn True 1 N/A 1208.8 1491.3 N/A _1200 N/A N/A f25 create_rating 1200 30 N/A _2500 N/A N/A f25 create_rating 2500 stable True N/A _2600 N/A N/A f25 create_rating 2600 stable True N/A N/A N/A almost N/A N/A f25 rate_1vs1 _1200 _1200 N/A 1207.5 1192.5 N/A N/A N/A almost N/A N/A f25 rate_1vs1 _1200 _1200 drawn True N/A 1200 1200 N/A N/A N/A almost N/A N/A f25 rate_1vs1 _2600 _2500 N/A 2603.6 2496.4 N/A N/A N/A almost N/A N/A f25 rate_1vs1 _2500 _2600 N/A 2506.4 2593.6 N/A N/A N/A almost N/A N/A f25 rate_1vs1 _2600 _2500 drawn True N/A 2598.6 2501.4 N/A test_based_multiplayer_elo_calculator N/A N/A N/A N/A N/A The expectation is from `http://elo.divergentinformatics.com/`_. N/A elo N/A Elo 10 N/A r1 1200 N/A r2 800 N/A N/A N/A almost N/A N/A elo expect r1 r2 0.909091 N/A N/A N/A almost N/A N/A elo expect r2 r1 0.090909 N/A N/A N/A almost N/A N/A elo rate_1vs1 r2 r1 N/A 809.091 1190.909 N/A r1 1500 N/A r2 1000 N/A r3 2000 N/A N/A N/A almost N/A rate r1 N/A N/A WIN r2 N/A WIN r3 1510.0 N/A N/A N/A almost N/A rate r2 N/A N/A LOSS r1 N/A WIN r3 1009.436 N/A N/A N/A almost N/A rate r3 N/A N/A LOSS r1 N/A LOSS r2 1980.564 N/A r1 N/A N/A fide25 create_rating 1200 0 N/A r2 N/A N/A fide25 create_rating 800 0 N/A N/A N/A N/A fide25 k_factor r1 25 N/A N/A N/A N/A fide25 k_factor r2 25 N/A N/A N/A almost N/A map float N/A N/A fide25 rate_1vs1 r2 r1 N/A 822.727 1177.273 N/A r1 N/A N/A fide25 create_rating 1200 40 N/A r2 N/A N/A fide25 create_rating 800 40 N/A N/A N/A N/A fide25 k_factor r1 15 N/A N/A N/A N/A fide25 k_factor r2 15 N/A N/A N/A almost N/A map float N/A N/A fide25 rate_1vs1 r2 r1 N/A 813.636 1186.364 N/A