[ot][spam][crazy] coping spam while trying to make code to prompt a model

Undescribed Horrific Abuse, One Victim & Survivor of Many gmkarl at gmail.com
Fri Jan 6 23:26:10 PST 2023


i snuck the example in! i had to fix bugs, which i'll commit and push
after sending this.

$ cat test.py
if __name__ == '__main__':
    import apifudge1 as af1
    npapi = af1.API('numpy')
    for name, text in npapi.get_examples().items():
        print(f'{name}: {repr(text)}')
    npapi.set_example(
'''Construct an array B that repeats array Y 4 times along the last
dimension.''',
'''B = np.tile(Y, 4)''')
    for name, text in npapi.get_examples().items():
        print(f'{name}: {repr(text)}')
$ python3 test.py
Construct an array B that repeats array Y 4 times along the last
dimension.: 'B = np.tile(Y, 4)'
$ ls -l ~/.apifudge/numpy/examples/
total 4
-rw-rw-r--. 1 user user 93 Jan  7 02:24
construct_an_array_b_that_repeats_array_y_4_times_along_the_last_dimension.txt


More information about the cypherpunks mailing list