>>108471722
>>108473164
I was using the free monthly tokens I get with Copilot in VSCode, not sure if that makes a difference, but it made the first response using Claude Haiku 4.5, then for the two correction prompts I gave it used Grok Code Fast
>>108473200
>So where did it go off script and what did it do? I highly doubt this happened btw, the context you're describing is absolutely minuscule.
Well it did, and seeing as its not work related I'll share it.
I had a folder of data files, like this
ELINT:
Emitter: 1
Freq: A PRF: 900
First signal: 8:0:7 Last signal: 8:0:37
Sequence broadca: 0.1s Silent: 4.9s
NW: 42:14:59 041:58:54 SE: 41:07:39 045:17:02
Emitter: 2
Freq: A PRF: 1900
First signal: 8:0:37 Last signal: 8:2:14
Sequence broadca: 0.1s Silent: 1.49012e-09s
NW: 42:14:21 042:03:21 SE: 42:14:19 042:03:45
My prompt was this:
In elint.py, make a program that parses a set of .info files in the ./ELINTdata/ folder.
1. Get a list of files in ./ELINTdata/ and loop over them.
2. For each file:
2.1. Split the filename ({SAM}-ELINTData.info) and store {SAM} as a str variable. E.g SA2-ELINTDATA.info would give "SA2" as the {SAM} var.
2.2. Go through the lines of the file, find ones which start with Freq: and parse the line to get the Freq and PRF values
2.3 Store the Freq and PRF in a nested dictionary (frequencies) in the following format: {Freq: PRF: {emitter: "", site+=SAM}}
3. Export the frequencies dictionary to a JSON file (frequencies.json) in the same folder as elint.py
What it got wrong was 2.2 and 2.3.
Because I wanted a blank string value as a placeholder in the emitter keyword, it'd seen that and seen an Emitter number in the data file and gone "oh you must want to parse that too and put it in the output data".
No clanker, I didn't ask for that.
To be fair I probably should've been more specific with what I wanted it to do in 2.3, but if I'd given that to a human developer I'd expect them to ask a clarifying question.