Don't try to repair the damaged cable. Either remove the remains from the machine and connect the undamaged length of lead back in, or fit a new lead. If you are not happy to do this, get an electrician to do it for you. Dangerous stuff, this electric, especially if you're working on wet grass!