ยง  51.  Repair  of  highways at railroad crossings. Whenever a highway
  crosses a railroad track at grade and such  grade  crossing  is  out  of
  repair, if it is the judgment of the commissioner of transportation, the
  board  of  supervisors of a county, the board of aldermen of a city, the
  board of trustees of a village or the town superintendent of highways of
  a  town  that  the  same  should  be  repaired,  the   commissioner   of
  transportation,  the  board  of  supervisors  of  a county, the board of
  aldermen of a city, the board of trustees  of  a  village  or  the  town
  superintendent of a town may repair and maintain the same and charge the
  expense  thereof  to  the  railroad  company  over  whose  railroad such
  crossing is repaired and maintained, if after fifteen  days'  notice  in
  writing such railroad company neglects or refuses to repair the same.
Structure New York Laws
31 - Exchange of Reservation Lands of the Seneca Nation of Indians.
38 - Contracts for Construction or Improvement of Highways.
39 - Patented Material or Articles.
41 - Maintenance of Highways After Preliminary Work Pending Permanent Paving.
42 - Maintenance of Detours During Construction.
42-A - Establishment of Temporary Detours When State Highways Are Being Maintained or Repaired.
44 - Acceptance of State Highways When Completed.
45 - Entry Upon Adjacent Lands and Streams.
46 - State Highways in Villages.
47 - Connecting Highways in Villages.
48 - State Highways of Additional Width and Increased Cost at Expense of Town.
50 - Petition for Improvement of Highway Where a Street Surface Railroad Is Laid.
51 - Repair of Highways at Railroad Crossings.
52 - Permits for Work Within the State Highway Right of Way.
53 - Highways and Bridges on Indian Reservations.
53-A - Highways on Indian Reservations.
54 - Sidewalks Along Improved State Highways.
54-A - Reestablishment of Approaches to Private Lands.
55 - Emergency Aid for Control of Snow and Ice in Municipalities.
56 - State to Maintain Roads Improved by State Appropriations Under Special Laws.
57 - Maintenance by State of Canal Bridge Approaches.
58 - Liability of State for Damages.
60 - Sprinkling; Removal of Filth and Refuse.
61 - Payment by Counties of a Portion of the Cost of Construction Under Repair Contracts.
62 - Improvement of Alignment and of Dangerous Conditions on Repair Work.
63 - Discontinuance of Part of Highway Due to Grade Crossing Elimination.
64 - Maintenance by State of Certain Improved Roads and Highways.