I'm particularly impressed by the Copilot's ability to generalize quickly from a single example. E.g. I wrote the first pattern, and then it completely wrote the second pattern after I just wrote the `:dc_offset` part. This is very impressive.
ALT Giving it the prompt:
```
elseif s === :dc_offset_mode
if !SoapySDRDevice_hasDCoffsetMode(c.device, c.direction, c.idx)
return missing
end
return SoapySDRDevice_getDCOffsetMode(c.device, c.direction, c.idx)
elseif s === :dc_offset
```
and it writing
```
if !SoapySDRDevice_hasDCOffset(c.device, c.direction, c.idx)
return missing
end
return SoapySDRDevice_getDCOffset(c.device, c.direction, c.idx)
```