{"push_id":1154667771,"size":142,"distinct_size":142,"ref":"refs/heads/master","head":"bb098062899543ab0cc1f6582b8f698cc5710084","before":"b8d3c481cedb0dcf589b9f5400482d719f99f560","commits":[{"sha":"c4465262bb3d7db473cf20868476d00b33aaae7e","author":{"name":"Morlic-fo","email":"144afd2d01f55027f400b5ac8855807362b108a7@gmx.de"},"message":"Adjust AI to drydock changes","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/c4465262bb3d7db473cf20868476d00b33aaae7e"},{"sha":"bc55b409bcf08597a76cd77e5b479dfe756a7c74","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Refactor set_planet_research_foci calling 5 new function calls\n\nCreate separate functions for growth specials, research and industry\nspecials, protection focus, happiness focus (empty placeholder) and\nindustry and research foci.\n\nThread variables through new functions to clarify which function\nchanges which variable.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/bc55b409bcf08597a76cd77e5b479dfe756a7c74"},{"sha":"dc854538f811f6a5df19de4c42a506bd9ad4c673","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Refactor set_planet_industry_and_foci\n\nMove adj_round 1, calculate minimum possible R/I ratio into its own loop.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/dc854538f811f6a5df19de4c42a506bd9ad4c673"},{"sha":"0e8bd8b676f45b05d084149d841880f1bf5f4d01","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Fix overly indented code in set_planet_industry_and_foci.\n\nThe code to exclude research focus for high industry planets was indented\nto the depth of the debugging header and only ran when the header was\nprinted.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/0e8bd8b676f45b05d084149d841880f1bf5f4d01"},{"sha":"8f7a0be737167e56f0dcc33d89c832fd18ccb2f5","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Move setting newFoci out of print report section of code","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/8f7a0be737167e56f0dcc33d89c832fd18ccb2f5"},{"sha":"ec4519110a37d458c6ef66d6167bd8a4e802a0df","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Refactor. Restyle several ResourcesAI.py scope variables to lower_case_with_underscore\n\nRenamed newTarget, currentFocus, currentOutput and planetMap to\nnew_targets, current_focus, current_output and planet_map\n\nRemoved treatment of newTargets as a pseudo global from AIstate","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/ec4519110a37d458c6ef66d6167bd8a4e802a0df"},{"sha":"8bc5c8dae6bd113eb159fc53cc8c6678ea45157c","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Created PlanetFocusManager in ResourcesAI.py\n\nPlanetFocusManager replaces the file scope variables new_targets,\ncurrent_focus, current_output and planet_map.  It also replaces\nnew_foci.\n\nfocus_manager is an instance and is limited in scope to the\nset_planet_resource_foci function.\n\nfocus_manager is threaded through the functions that previously accessed\nthe file scope variables.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/8bc5c8dae6bd113eb159fc53cc8c6678ea45157c"},{"sha":"61f15a653d20726597ddf20881b17984010bccef","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"In ResearchAI.py created a focus_manager.set_future_focus function\n\nset_future_focus sets the focus if possible and removes the planet from\nthe list of planets to be considered for further focus changes.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/61f15a653d20726597ddf20881b17984010bccef"},{"sha":"df4c1ba72622cf10fb1afe3f2d37ee3629d94a0a","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Made ResourcesAI.py use focus information objects\n\nCreated PlanetFocusInfo object to contain all information about a focus\nchange and transfer these objects from raw (unset) to baked (set) state.\n\nThis makes explicit the implicit assumption that planet_ids only\nreferenced planets whose focus had not been decided.\n\nAdded to PlanetFocusManager three tables all_planet_info,\nraw_planet_info and baked_planet_info.  As the algorithm proceeds planet\ninfo is moved from the raw table to the baked table using\nbake_future_focus(pid, focus).\n\nAdded the PlanetFocusInfo object to encapsulate all the information\nneeded to decide how to set the focus.\n\nRemoved the PlanetFocusManager members new_targets, current_focus,\ncurrent_output, new_foci whose information is now contained in the\nindividual planet infos.\n\nbake_future_focus(pid,focus) is the function that transfers planet info\nfrom the raw_ list to the baked_ list.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/df4c1ba72622cf10fb1afe3f2d37ee3629d94a0a"},{"sha":"9fc7ce513c1fe0a024660a781d51418f43da86f8","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Created ResourcesAI.Reporter object to handle reporting\n\nMoved most reporting into a Reporter class\n\nreporter.capture_section_info() captures which planets' focus was decided\nafter each of the following steps:\n\"Unfocusable\", \"Specials\", \"Protection\", \"Happiness\" and \"Typical\"\n\nSections of the table are only printed if they exist.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/9fc7ce513c1fe0a024660a781d51418f43da86f8"},{"sha":"0ed4238552da79c69a2aa46b0cbf3b31a449233d","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"In ResourcesAI.py fixed hanging indents\n\nRan pylint and fixed all 'Wrong continued indentation before block'\nerrors to conform to PEP8","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/0ed4238552da79c69a2aa46b0cbf3b31a449233d"},{"sha":"6e637152a9ecf2b913d9dec4b3b91a9aed8805d8","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Compute values for report in reporting function\n\nIn ResourcesAI.Reporter compute the cumulative industry and research\ntargets and min/max boundaries in the reporter instead of passing them\nfrom elsewhere.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/6e637152a9ecf2b913d9dec4b3b91a9aed8805d8"},{"sha":"7be979e687ffddc3a3add05fa9ca923ab9d75a36","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Code review fixes from PR #580","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/7be979e687ffddc3a3add05fa9ca923ab9d75a36"},{"sha":"b6122a6edeef5a6df91e64888803084ac7e61608","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Changed ResourcesAI.PlanetFocusInfo.current_output to a tuple","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/b6122a6edeef5a6df91e64888803084ac7e61608"},{"sha":"6317426ddb7a516d41d9e0fee8d47b4d70383093","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Added ResourcesAI.PlanetFocusInfo.can_change_focus()","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/6317426ddb7a516d41d9e0fee8d47b4d70383093"},{"sha":"c8cd5d261977900e782ee5a50922b6441264ec09","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"More review changes from PR # 580\n\n1. Add note about lack of stability wrt pid ordering to replace\ncommented shuffle code.\n2. Improved docstring for bake_future_focus, to clarify usage of update.\n3. Fixed bake_future_focus and made it remove current planet from raw\nplanets after updating meters.\n4. Made all docstrings use \"\"\" not '''.\n5. More PEP8","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/c8cd5d261977900e782ee5a50922b6441264ec09"},{"sha":"ec4ddbd655add3f631664268d996b1de7ed2a250","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"PEP8 for PR #580 review\n\n1. Add space after # in comments\n2. Move split line commas to end of previous line.\n3. Clarify comment about target vs current population in enabling focus","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/ec4ddbd655add3f631664268d996b1de7ed2a250"},{"sha":"acb78b91e824448695bb2ef30ff7242fdeb06537","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Remove unused bool do_research from ResourcesAI.py","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/acb78b91e824448695bb2ef30ff7242fdeb06537"},{"sha":"1920fdc9229abaec5321e2cb5d02bd7a5ffd98dc","author":{"name":"LGM-Doyle","email":"293cac543ea0acc7a5c9fa636c950dab39077164@users.noreply.github.com"},"message":"Replace PlanetInfo.can_change_focus() with PlanetInfo.planet.availbleFoci\n\nplanet.availableFoci is now empty when a planet can't focus.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/1920fdc9229abaec5321e2cb5d02bd7a5ffd98dc"},{"sha":"b675f9b95a1c704f1899e63c905419ee775395e6","author":{"name":"geoffthemedio","email":"d445e099c2723ad134952c2d065d4a04626e91f7@gmail.com"},"message":"Added way to specify objects to set visibility for with SetVisibliity, instead of just acting on the target object.","distinct":true,"url":"https://api.github.com/repos/matthoppe/freeorion/commits/b675f9b95a1c704f1899e63c905419ee775395e6"}]}
{"actor":{"display_login":"matthoppe"}}