openai-please 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/please/context.rb +6 -6
- data/lib/please/openai/codex_service.rb +1 -1
- data/lib/please/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d2e77c2b839915788f9db15c6f6a75b90d3c52c4a9033f3145aa687ff0d21a3
|
4
|
+
data.tar.gz: b021e9384596d305d472224ee726cd9a4f16c514cc378c051d079b1ac9c58555
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f349c795f25116281574e882f2299104654d399a29dc7481d1066ca576d8f6bb2f754b25dd12d6d9725aa4edc677fac7bb827e10307a69caee0da03f471cee9
|
7
|
+
data.tar.gz: 97014f5dfc48adb96767c9b52996511d1cc2d1666256c0f8720181503b9aa9780c5c81ad34ae384c8e880ac9c853e3c9b25f795a0ccad78a6fab27a002f02e32
|
data/lib/please/context.rb
CHANGED
@@ -49,25 +49,25 @@ module Please
|
|
49
49
|
|
50
50
|
{
|
51
51
|
instruction: 'Download a random dog picture',
|
52
|
-
command: '
|
52
|
+
command: 'printf \'import urllib.request\nimport json\nimport subprocess\ndata = urllib.request.urlopen("https://dog.ceo/api/breeds/image/random").read()\nurl = json.loads(data)["message"]\nsubprocess.call(["curl", url, "-o", "dog.jpg"])\' > /tmp/program.py; python3 /tmp/program.py; rm /tmp/program.py',
|
53
53
|
result: '',
|
54
54
|
},
|
55
55
|
|
56
56
|
{
|
57
57
|
instruction: 'Read from stdin until EOF, and then output the length of the string',
|
58
|
-
command: '
|
58
|
+
command: 'printf \'import sys\nprint(len(sys.stdin.read().strip()))\' > /tmp/program.py; python3 /tmp/program.py; rm /tmp/program.py',
|
59
59
|
result: '',
|
60
60
|
},
|
61
61
|
|
62
62
|
{
|
63
|
-
instruction: '
|
64
|
-
command: '
|
63
|
+
instruction: 'Run the fortune command 5 times',
|
64
|
+
command: 'for i in $(seq 5); do fortune; done',
|
65
65
|
result: '',
|
66
66
|
},
|
67
67
|
|
68
68
|
{
|
69
|
-
instruction: '
|
70
|
-
command: '
|
69
|
+
instruction: 'Repeadedly read a single line from the user, reverse it, and print it back',
|
70
|
+
command: 'printf \'while True:\n\tline = input()\n\tprint(line[::-1])\' > /tmp/program.py; python3 /tmp/program.py; rm /tmp/program.py',
|
71
71
|
result: '',
|
72
72
|
},
|
73
73
|
]
|
data/lib/please/version.rb
CHANGED