forked from MaxPleaner/Gemmy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.byebug_history
256 lines (256 loc) · 4.58 KB
/
.byebug_history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
continue
Gem.find_files("gemmy/**/*.rb").sort_by { |x| x.split("/").length }.index { |x| x.include?("string_patch") }
Gem.find_files("gemmy/**/*.rb").sort_by { |x| x.split("/").length }.index { |x| x.include?("make_gem") }
continue
show-source Gemmy::Patches
Gemmy::Patches
Gem.find_files("gemmy/**/*.rb").select { |x| x.include? "string_patch" }
Gem.find_files("gemmy/**/*.rb").any? { |x| x.include? "string_patch" }
Gem.find_files("gemmy/**/*.rb")
next
continue
Gemmy::Patches.constants
continue
Gemmy::Patches.constants
Gemmy::Patches
exit-program
1 / total_
total_len
sentence_len
diff
exit-program
path
exit-program
next
continue
exit-program
next
sentence
total_len
sentence_len
diff
next
exit-program
sentence_len * (1.0 / (sentence_len / total_len))
sentence_len * (1 / (sentence_len / total_len))
sentence_len
total_len
diff
next
sentence_len
next
exit-program
continue
Speech.new(@sentence, speed: speed).speak
Speech.new(@sentence, pitch: pitch, speed: speed).speak
Speech.new(@sentence, pitch: pitch).speak
Speech.new(@sentence).speak
Speech.new(@sentence)
@sentence
sentence
exit-program
DefaultPitch * diff_multiplier
DefaultPitch
DefaultSpeed * diff_factor
DefaultSpeed
DefaultPitch * diff_multiplier
diff_factor
DefaultPitch
16.0 * 0.8
16.0 / 20.0
diff_multiplier
diff_factor
speed
pitch
[1,2].cycle.first(100).to_a
[1,2].cycle(2)
[1,2].cycle
container_length
sentence_syllables
diff_factor
speed
pitch
word
exit-program
{}.persisted "#{CachePath}/#{db_name}.yaml"
Dir.exists? CachePath
CachePath
continue
@db
next
home
continue
NounLexicon
exit-program
@lexicon_set_up
next
@lexicon_set_up
exit-program
NounLexicon
exit-program
Object::NounLexicon
NounLexicon
NounLexicon[:a][:b] = 1
NounLexicon
NounLexicon.class
NounLexicon.get
NounLexicon
exit-program
`echo "$HOME"`
`"$HOME"`
`ls ~/gemmy`
Dir.exists? CachePath
CachePath
exit-program
`ls $HOME`
CachePath
CachePatch
`ls ~/gemmy`
`mkdir -p #{CachePath}`
Dir.exists?CachePath
`ls #{CachePath}`
CachePath
exit-program
Gemmy.patch "hash/u/persisted"
{}.persisted
continue
Gem.find_files("gemmy/patches/*.rb")
Gem.find_files("components/cache.rb")
Gem.find_files("components/cache.rb
Gem.find_files("gemmy/**/cache.rb")
Gem.find_files("gemmy/**/*.rb")
exit-program
`wordpos def thought`
exit-program
wordpos_lookup "islands"
wordpos_lookip "islands"
doublecheck
next
sentence
next; "#{word} #{pos}"
next; word
word
next
pos
word
continue
pos
nextword
pos
next
pos
word
next
doublecheck
next
pos
word
next
doublecheck
next
pos
word
exit-program
pos
word
continue
pos
word
exit-program
continue
next
word
next
pos
exit-program
(pos.include? "verb") && !doublecheck.include?("noun")
pos.include? "verb" && !doublecheck.include?("noun")
!doublecheck.include?("noun")
doublecheck.include?("noun")
!doublecheck.include?("noun")
pos.include? "verb"# && !doublecheck.include?("noun")
pos.include? "verb" && !doublecheck.include?("noun")
pos.include? "noun" && !doublecheck.include?("verb")
exit-program
up
doublecheck
pos.include? "verb"
next
doublecheck
word
pos
exit-program
pos
continue
word
pos
next
pos
wordpos_doublecheck
next
pos
word
exit-program
res
continue
self
continue
self
exit-program
continue
SentenceInterpreter.interpret sentence
continue
self[0]
self
continue
class Array
1.method :asd
EngTagger.new.get_nouns EngTagger.new.add_tags(sentence)
sentence = "Eat cat, and rat"
EngTagger.new.get_nouns EngTagger.new.add_tags(sentence)
EngTagger.new.get_verbs EngTagger.new.add_tags(sentence)
EngTagger.new.add_tags(sentence)
sentence = "twas, truthful"
sentence
@tagger.get_verbs tagged
@tagger.get_verbs
nouns
exit-program
JSON.parse pos_response
pos_response
exit-program
JSON.parse "{\"nouns\":[],\"verbs\":[],\"adjectives\":[],\"adverbs\":[],\"rest\":[\"2s\",\"\"]}"
JSON.parse '{\"nouns\":[],\"verbs\":[],\"adjectives\":[],\"adverbs\":[],\"rest\":[\"2s\",\"\"]}'
JSON.parse pos_response
pos_response
exit-program
continue
`coffee -e "#{Gemmy::Coffee}" pos 'face'`
`coffee -e "#{Gemmy::Coffee}"`
exit-program
continue
`coffee -e "require 'wordpos'"`
`coffee #{Gemmy::Coffee.tempfile_path} pos "asd"`
`coffee #{Gemmy::Coffee.tempfile_path}`
exit-program
`ls ~/node_modules/wordpos/bin`
`ls ~/node_modules/wordpos`
`ls ~/node_modules`
`ls ~/.node_modules`
`ls node_modules`
`coffee #{t} pos "asd"`
`coffee #{t} foo 1`
`coffee #{t}`
t
system_command "coffee #{t} pos 'my name is what'"
t = Gemmy::Coffee.tempfile_path
system_command "coffee #{t} pos 'my name is what'"
t = Gemmy::Coffee.tempfile_path
exit-program
system_command "coffee #{t} pos 'my name is what'"
t = Gemmy::Coffee.tempfile_path
exit-program
system_command "coffee #{t} pos 'my name is what'"
t = Gemmy::Coffee.tempfile_path
exit-program
continue