forked from tensorfire/cyborg-writer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.js
247 lines (222 loc) · 14 KB
/
models.js
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
const ASCII = ['\n', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'];
var models = {
"shakespeare-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/shakespeare-250-250',
name: "William Shakespeare",
prefix: "My parts for thy face for me to alone\nThat such seat a subjects I have said.\n\nCLAUDIUS:\n"
},
"dfw-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/dfw-250-250',
name: "David Foster Wallace",
prefix: "Most of the rest of the page's pictures are of farm-type animals behind wooden fences, looking the way things look that can't smile, that don't know a camera's looking. "
},
"rand-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/rand-250-250',
name: "Ayn Rand",
prefix: "The light was ebbing, and Eddie Willers could not distinguish the bum's face. \n\n"
},
"scifi-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/scifi-250-250',
name: "Science Fiction",
prefix: 'On the second try two of the planes released rockets, which fortunately missed, but this put a different light on the whole thing. A direct hit with a ten inch rocket would be as dangerous as a torpedo. '
},
"bigwiki-200-200": {
chars: ASCII,
Ns: 200,
Ni: 96,
layers: 2,
path: 'models/bigwiki-200-200',
name: "Wikipedia",
prefix: 'He\'s the reason for the teardrops on my guitar\nThe only thing that keeps me wishing on a wishing star\n'
},
"medical-200-200": {
chars: ASCII,
Ns: 200,
Ni: 96,
layers: 2,
path: 'models/medical-200-200',
name: "Medical Reference",
prefix: 'Not surprisingly, acetaminophen remains a major cause of overdose and overdose-related liver failure and death in the United States and many other countries. '
},
"scotus-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/scotus-250-250',
name: "US Supreme Court",
prefix: 'The State need not, in other words, issue birth certificates including the female spouses of women who give birth in the State. '
},
"music-raw-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/music-raw-250-250',
name: "Pop Music",
prefix: 'He\'s the reason for the teardrops on my guitar\nThe only thing that keeps me wishing on a wishing star\n\n\n'
},
"swift2-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/swift2-250-250',
name: "Taylor Swift",
prefix: 'He\'s the reason for the teardrops on my guitar\nThe only thing that keeps me wishing on a wishing star\n'
},
"eminem2-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/eminem2-250-250',
name: "Eminem",
prefix: 'He\'s the reason for the teardrops on my guitar\nThe only thing that keeps me wishing on a wishing star\n'
},
"tupac2-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/tupac2-250-250',
name: "Tupac Shakur",
prefix: 'He\'s the reason for the teardrops on my guitar\nThe only thing that keeps me wishing on a wishing star\n'
},
"trump-256": {
chars: ['\n', '\r', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '=', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'],
Ns: 256,
Ni: 94,
path: "models/trump-256",
name: 'Donald Trump',
prefix: 'I was always a big fan of Kim Novak and still am—a wonderful actress.\n'
},
"linux-250-250": {
chars: ASCII,
Ns: 250,
Ni: 96,
layers: 2,
path: 'models/linux-250-250',
name: "Linux Kernel",
prefix: "/* TODO: conditionals */\n"
},
}
// var models = {
// "shakespeare-128": {
// chars: ['\n', ' ', '!', '$', '&', "'", ',', '-', '.', '3', ':', ';', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', ']', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'],
// Ns: 128,
// Ni: 67,
// path: 'models/shakespeare-128',
// name: 'William Shakespeare',
// prefix: 'My parts for thy face for me to alone\nThat such seat a subjects I have said.\n\nCLAUDIUS:\n'
// },
// "slatestar-256": {
// chars: ['\n', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'],
// Ns: 256,
// Ni: 95,
// path: 'models/slatestar-256',
// name: 'Slate Star Codex',
// prefix: "I've worked with doctors who think Alcoholics Anonymous is so important for the treatment of alcoholism that anyone who refuses to go at least three times a week is in denial about their problem and can't benefit from further treatment. "
// },
// "aynrand-256": {
// chars: ['\n', ' ', '!', '"', '#', '$', '&', "'", '(', ')', ',', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '>', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', ']', '_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', '\x80', '\x94', '\x99', '\x9d', '\xa3', '\xab', '\xc2', '\xe2'],
// Ns: 256,
// Ni: 95,
// path: 'models/aynrand-256',
// name: 'Ayn Rand',
// prefix: "The light was ebbing, and Eddie Willers could not distinguish the bum's face. "
// },
// "dfw-256": {
// chars: ['\n', '\r', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'],
// Ns: 256,
// Ni: 96,
// path: 'models/dfw-256',
// name: "David Foster Wallace",
// prefix: "Most of the rest of the page's pictures are of farm-type animals behind wooden fences, looking the way things look that can't smile, that don't know a camera's looking. "
// },
// // "trump-big.old": {
// // chars: ['\n', '\r', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '=', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'],
// // Ns: 256,
// // Ni: 94,
// // path: 'models/trump-big.old'
// // },
// "trump-256": {
// chars: ['\n', '\r', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '=', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'],
// Ns: 256,
// Ni: 94,
// path: "models/trump-256",
// name: 'Donald Trump',
// prefix: 'I was always a big fan of Kim Novak and still am—a wonderful actress.\n'
// },
// "taylorswift-128": {
// chars: ['\n', '\r', ' ', '!', '"', '&', "'", '(', ')', '*', ',', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '}'],
// Ni: 79,
// Ns: 128,
// path: "models/taylorswift-128",
// name: 'Taylor Swift',
// prefix: 'He\'s the reason for the teardrops on my guitar\nThe only thing that keeps me wishing on a wishing star\n'
// },
// "nietzsche.old": {
// chars: ['\n', ' ', '!', '"', "'", '(', ')', ',', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '=', '?', '[', ']', '_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '\x86', '\xa4', '\xa6', '\xa9', '\xab', '\xc3'],
// Ns: 128,
// Ni: 59,
// path: "models/nietzsche.old",
// name: 'Friedrich Nietzsche',
// prefix: 'It stands to reason that this sketch of the saint, made upon the model of the whole species, can be confronted with many opposing sketches that would create a more agreeable impression.'
// },
// "scifi-128": {
// chars: [' ', '!', '"', '#', "'", '(', ')', ',', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'],
// Ni: 75,
// Ns: 128,
// path: 'models/scifi-128',
// name: 'Science Fiction',
// prefix: 'On the second try two of the planes released rockets, which fortunately missed, but this put a different light on the whole thing. A direct hit with a ten inch rocket would be as dangerous as a torpedo. '
// },
// "scifi-256-256": {
// chars: [' ', '!', '"', '#', "'", '(', ')', ',', '-', '.', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'],
// Ni: 75,
// Ns: 256,
// path: 'models/scifi-256-256',
// layers: 2,
// name: 'Science Fiction (2 layer)',
// prefix: 'On the second try two of the planes released rockets, which fortunately missed, but this put a different light on the whole thing. A direct hit with a ten inch rocket would be as dangerous as a torpedo. '
// },
// "linux-256": {
// chars: ['\t', '\n', '\x0c', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'],
// Ni: 98,
// Ns: 256,
// path: 'models/linux-256',
// name: 'Linux Kernel',
// prefix: '/* TODO: conditionals */\n'
// },
// '2pac-128': {
// chars: ['\t', '\n', '\r', ' ', '!', '"', '$', '&', "'", '(', ')', '*', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'],
// Ni: 81,
// Ns: 128,
// path: 'models/2pac-128',
// name: 'Tupac Shakur',
// prefix: 'How did you put it down?\n'
// },
// // 'eminem-160': {
// // chars: ['\n', '\r', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '>', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '}'],
// // Ni: 88,
// // Ns: 160,
// // path: 'models/eminem-160'
// // }
// }