url
stringlengths 1.79k
5.2k
| text
stringlengths 921
2.94k
| ppl
float64 2.9
532
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| length
int64 256
256
| tokens
sequencelengths 256
256
|
---|---|---|---|---|---|---|
https://pile.dataportraits.org/#JTIwJTIwJTdCJTBBJTIwJTIwdXNlJTIwYml0cyUyMCUzQy0lMjByZXN1bHQubWFwKHJlYWRfYnl0ZXNfZXhhY3Qoc3RyZWFtJTJDJTIwOCkpJTBBJTBBJTIwJTIwbGV0JTIwYXNzZXJ0JTIwJTNDJTNDdiUzQWxpdHRsZS11bnNpZ25lZC1zaXplKDY0KSUzRSUzRSUyMCUzRCUyMGJpdHMlMEElMjAlMjB2JTBBJTdEJTBBJTBBJTJGJTJGJTJGJTIwUmVhZHMlMjBhJTIwYmlnLWVuZGlhbiUyMDY0LWJpdCUyMHVuc2lnbmVkJTIwaW50ZWdlciUyMGZyb20lMjBhJTIwYmluYXJ5JTIwZmlsZSUyMHN0cmVhbS4lMEElMkYlMkYlMkYlMEFwdWIlMjBmbiUyMHJlYWRfdWludDY0X2JlKHN0cmVhbSUzQSUyMEZpbGVTdHJlYW0pJTIwLSUzRSUyMFJlc3VsdChJbnQlMkMlMjBGaWxlU3RyZWFtRXJyb3IpJTIwJTdCJTBBJTIwJTIwdXNlJTIwYml0cyUyMCUzQy0lMjByZXN1bHQubWFwKHJlYWRfYnl0ZXNfZXhhY3Qoc3RyZWFtJTJDJTIwOCkpJTBBJTBBJTIwJTIwbGV0JTIwYXNzZXJ0JTIwJTNDJTNDdiUzQWJpZy11bnNpZ25lZC1zaXplKDY0KSUzRSUzRSUyMCUzRCUyMGJpdHMlMEElMjAlMjB2JTBBJTdEJTBBJTBBJTJGJTJGJTJGJTIwUmVhZHMlMjBhJTIwbGl0dGxlLWVuZGlhbiUyMDMyLWJpdCUyMGZsb2F0JTIwZnJvbSUyMGElMjBiaW5hcnklMjBmaWxlJTIwc3RyZWFtLiUwQSUyRiUyRiUyRiUwQX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yUyMG9yJTIwZm91ciUyMGJpZy1lbmRpYW4lMjA2NC1iaXQlMEElMkYlMkYlMkYlMjBmbG9hdHMlMkMlMjBhbmQlMjByZXR1cm5zJTIwdGhlJTIwdmFsdWVzJTIwaW4lMjBhJTIwbGlzdC4lMEElMkYlMkYlMkY= | {
use bits <- result.map(read_bytes_exact(stream, 8))
let assert <<v:little-unsigned-size(64)>> = bits
v
}
/// Reads a big-endian 64-bit unsigned integer from a binary file stream.
///
pub fn read_uint64_be(stream: FileStream) -> Result(Int, FileStreamError) {
use bits <- result.map(read_bytes_exact(stream, 8))
let assert <<v:big-unsigned-size(64)>> = bits
v
}
/// Reads a little-endian 32-bit float from a binary file stream.
///
pub fn read_float32_le(stream: FileStream) -> Result(Float, FileStreamError) {
use bits <- result.map(read_bytes_exact(stream, 4))
let assert <<v:little-float-size(32)>> = bits
v
}
/// Reads a big-endian 32-bit float from a binary file stream.
///
pub fn read_float32_be(stream: FileStream) -> Result(Float, FileStreamError) {
use bits <- result.map(read_bytes_exact(stream, 4))
let assert <<v:big-float-size(32)>> = bits
v
}
/// Reads a little-endian 64-bit float from a binary file stream.
///
pub fn read_float64_le(stream: FileStream) -> Result(Float, FileStreamError) {
use bits <- result.map(read_bytes_exact(stream, 8))
let assert <<v:little-float-size(64)>> = bits
v
}
/// Reads a big-endian 64-bit float from a binary file stream.
///
pub fn read_float64_be(stream: FileStream) -> Result(Float, FileStreamError) {
use bits <- result.map(read_bytes_exact(stream, 8))
let assert <<v:big-float-size(64)>> = bits
v
}
/// Reads the specified type the requested number of times from a binary file
/// stream, e.g. two little-endian 32-bit integers, or four big-endian 64-bit
/// floats, and returns the values in a list.
/// | 2.901661 | [
92,
187,
50276,
2327,
9886,
12630,
906,
15,
4251,
9,
1088,
64,
15845,
64,
42611,
9,
4963,
13,
854,
1228,
535,
50276,
1059,
4138,
5291,
87,
27,
24481,
14,
10790,
14,
3281,
9,
1540,
10,
5064,
426,
9886,
187,
50276,
87,
187,
94,
187,
187,
10638,
6707,
84,
247,
1943,
14,
423,
757,
6705,
14,
2713,
10698,
7007,
432,
247,
8985,
1873,
5542,
15,
187,
10638,
187,
16712,
21486,
1239,
64,
8531,
1540,
64,
1257,
9,
4963,
27,
8490,
8093,
10,
5204,
22195,
9,
4807,
13,
8490,
8093,
4756,
10,
551,
187,
50276,
2327,
9886,
12630,
906,
15,
4251,
9,
1088,
64,
15845,
64,
42611,
9,
4963,
13,
854,
1228,
535,
50276,
1059,
4138,
5291,
87,
27,
2760,
14,
10790,
14,
3281,
9,
1540,
10,
5064,
426,
9886,
187,
50276,
87,
187,
94,
187,
187,
10638,
6707,
84,
247,
1652,
14,
423,
757,
4567,
14,
2713,
8253,
432,
247,
8985,
1873,
5542,
15,
187,
10638,
187,
16712,
21486,
1239,
64,
9599,
1237,
64,
282,
9,
4963,
27,
8490,
8093,
10,
5204,
22195,
9,
21125,
13,
8490,
8093,
4756,
10,
551,
187,
50276,
2327,
9886,
12630,
906,
15,
4251,
9,
1088,
64,
15845,
64,
42611,
9,
4963,
13,
577,
1228,
535,
50276,
1059,
4138,
5291,
87,
27,
24481,
14,
9599,
14,
3281,
9,
1237,
10,
5064,
426,
9886,
187,
50276,
87,
187,
94,
187,
187,
10638,
6707,
84,
247,
1943,
14,
423,
757,
4567,
14,
2713,
8253,
432,
247,
8985,
1873,
5542,
15,
187,
10638,
187,
16712,
21486,
1239,
64,
9599,
1237,
64,
1257,
9,
4963,
27
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"{",
"Ċ",
" ",
"use",
"Ġbits",
"Ġ<-",
"Ġresult",
".",
"map",
"(",
"read",
"_",
"bytes",
"_",
"exact",
"(",
"stream",
",",
"Ġ8",
"))",
"ĊĊ",
" ",
"let",
"Ġassert",
"Ġ<<",
"v",
":",
"little",
"-",
"unsigned",
"-",
"size",
"(",
"64",
")",
">>",
"Ġ=",
"Ġbits",
"Ċ",
" ",
"v",
"Ċ",
"}",
"Ċ",
"Ċ",
"///",
"ĠRead",
"s",
"Ġa",
"Ġbig",
"-",
"end",
"ian",
"Ġ64",
"-",
"bit",
"Ġunsigned",
"Ġinteger",
"Ġfrom",
"Ġa",
"Ġbinary",
"Ġfile",
"Ġstream",
".",
"Ċ",
"///",
"Ċ",
"pub",
"Ġfn",
"Ġread",
"_",
"uint",
"64",
"_",
"be",
"(",
"stream",
":",
"ĠFile",
"Stream",
")",
"Ġ->",
"ĠResult",
"(",
"Int",
",",
"ĠFile",
"Stream",
"Error",
")",
"Ġ{",
"Ċ",
" ",
"use",
"Ġbits",
"Ġ<-",
"Ġresult",
".",
"map",
"(",
"read",
"_",
"bytes",
"_",
"exact",
"(",
"stream",
",",
"Ġ8",
"))",
"ĊĊ",
" ",
"let",
"Ġassert",
"Ġ<<",
"v",
":",
"big",
"-",
"unsigned",
"-",
"size",
"(",
"64",
")",
">>",
"Ġ=",
"Ġbits",
"Ċ",
" ",
"v",
"Ċ",
"}",
"Ċ",
"Ċ",
"///",
"ĠRead",
"s",
"Ġa",
"Ġlittle",
"-",
"end",
"ian",
"Ġ32",
"-",
"bit",
"Ġfloat",
"Ġfrom",
"Ġa",
"Ġbinary",
"Ġfile",
"Ġstream",
".",
"Ċ",
"///",
"Ċ",
"pub",
"Ġfn",
"Ġread",
"_",
"float",
"32",
"_",
"le",
"(",
"stream",
":",
"ĠFile",
"Stream",
")",
"Ġ->",
"ĠResult",
"(",
"Float",
",",
"ĠFile",
"Stream",
"Error",
")",
"Ġ{",
"Ċ",
" ",
"use",
"Ġbits",
"Ġ<-",
"Ġresult",
".",
"map",
"(",
"read",
"_",
"bytes",
"_",
"exact",
"(",
"stream",
",",
"Ġ4",
"))",
"ĊĊ",
" ",
"let",
"Ġassert",
"Ġ<<",
"v",
":",
"little",
"-",
"float",
"-",
"size",
"(",
"32",
")",
">>",
"Ġ=",
"Ġbits",
"Ċ",
" ",
"v",
"Ċ",
"}",
"Ċ",
"Ċ",
"///",
"ĠRead",
"s",
"Ġa",
"Ġbig",
"-",
"end",
"ian",
"Ġ32",
"-",
"bit",
"Ġfloat",
"Ġfrom",
"Ġa",
"Ġbinary",
"Ġfile",
"Ġstream",
".",
"Ċ",
"///",
"Ċ",
"pub",
"Ġfn",
"Ġread",
"_",
"float",
"32",
"_",
"be",
"(",
"stream",
":"
] |
https://pile.dataportraits.org/#JTIwJTIwdGhlJTIwZW5kJTIwb2YlMjB0aGUlMjBmaWxlJTJDJTIwb3IlMjB0aGUlMjBjdXJyZW50JTIwcG9zaXRpb24lMjBpbiUyMHRoZSUyMGZpbGUlMjBzdHJl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LkVub3RzdXApKSUwQSUwQSUyMCUyMGNhc2UlMjBlcmxfZmlsZV93cml0ZShzdHJlYW0uaW9fZGV2aWNlJTJDJTIwYnl0ZXMpJTIwJTdCJTBBJTIwJTIwJTIwJTIwcmF3X3Jlc3VsdC5PayUyMC0lM0UlMjBPayhOaWwpJTBBJTIwJTIwJTIwJTIwcmF3X3Jlc3VsdC5FcnJvcihlKSUyMC0lM0UlMjBFcnJvcihlKSUwQSUyMCUyMCU3RCUwQSU3RCUwQSUwQSU0MGV4dGVybmFsKGVybGFuZyUyQyUyMCUyMmZpbGU= | the end of the file, or the current position in the file stream. This is
/// used with the [`position()`](#position) function.
///
pub type FileStreamLocation {
/// A location relative to the beginning of the file, i.e. an absolute offset
/// in the file stream. The offset should not be negative.
BeginningOfFile(offset: Int)
/// A location relative to the current position in the file stream. The offset
/// can be either positive or negative.
CurrentLocation(offset: Int)
/// A location relative to the end of the file stream. The offset should not
/// be positive.
EndOfFile(offset: Int)
}
/// Sets the position of a file stream to the given location, where the location
/// can be relative to the beginning of the file, the end of the file, or the
/// current position in the file. On success, returns the current position in
/// the file stream as an absolute offset in bytes.
///
pub fn position(
stream: FileStream,
location: FileStreamLocation,
) -> Result(Int, FileStreamError) {
let location = case location {
BeginningOfFile(offset) -> Bof(offset)
CurrentLocation(offset) -> Cur(offset)
EndOfFile(offset) -> Eof(offset)
}
erl_file_position(stream.io_device, location)
}
type ErlLocation {
Bof(offset: Int)
Cur(offset: Int)
Eof(offset: Int)
}
@external(erlang, "file", "position")
fn erl_file_position(
io_device: IoDevice,
location: ErlLocation,
) -> Result(Int, FileStreamError)
/// Writes bytes to a binary file stream.
///
pub fn write_bytes(
stream: FileStream,
bytes: BitArray,
) -> Result(Nil, FileStreamError) {
use <- bool.guard(!stream.is_binary, Error(file_stream_error.Enotsup))
case erl_file_write(stream.io_device, bytes) {
raw_result.Ok -> Ok(Nil)
raw_result.Error(e) -> Error(e)
}
}
@external(erlang, "file | 3.642286 | [
783,
990,
273,
253,
1873,
13,
390,
253,
1655,
1899,
275,
253,
1873,
5542,
15,
831,
310,
187,
10638,
908,
342,
253,
44308,
3321,
42702,
1084,
3321,
10,
1159,
15,
187,
10638,
187,
16712,
1511,
8490,
8093,
11930,
551,
187,
50276,
10638,
329,
4328,
4103,
281,
253,
5068,
273,
253,
1873,
13,
891,
15,
70,
15,
271,
7880,
8409,
187,
50276,
10638,
275,
253,
1873,
5542,
15,
380,
8409,
943,
417,
320,
4016,
15,
187,
50276,
24393,
920,
4527,
4505,
9,
10946,
27,
4458,
10,
535,
50276,
10638,
329,
4328,
4103,
281,
253,
1655,
1899,
275,
253,
1873,
5542,
15,
380,
8409,
187,
50276,
10638,
476,
320,
2057,
2762,
390,
4016,
15,
187,
50276,
10605,
11930,
9,
10946,
27,
4458,
10,
535,
50276,
10638,
329,
4328,
4103,
281,
253,
990,
273,
253,
1873,
5542,
15,
380,
8409,
943,
417,
187,
50276,
10638,
320,
2762,
15,
187,
50276,
7689,
4527,
4505,
9,
10946,
27,
4458,
10,
187,
94,
187,
187,
10638,
34730,
253,
1899,
273,
247,
1873,
5542,
281,
253,
1677,
4328,
13,
835,
253,
4328,
187,
10638,
476,
320,
4103,
281,
253,
5068,
273,
253,
1873,
13,
253,
990,
273,
253,
1873,
13,
390,
253,
187,
10638,
1655,
1899,
275,
253,
1873,
15,
1623,
2323,
13,
6548,
253,
1655,
1899,
275,
187,
10638,
253,
1873,
5542,
347,
271,
7880,
8409,
275,
11061,
15,
187,
10638,
187,
16712,
21486,
1899,
9,
187,
50276,
4963,
27,
8490,
8093,
13,
187,
50276,
12428,
27,
8490,
8093,
11930,
13,
187,
10,
5204,
22195,
9,
4807,
13,
8490,
8093,
4756,
10
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"the",
"Ġend",
"Ġof",
"Ġthe",
"Ġfile",
",",
"Ġor",
"Ġthe",
"Ġcurrent",
"Ġposition",
"Ġin",
"Ġthe",
"Ġfile",
"Ġstream",
".",
"ĠThis",
"Ġis",
"Ċ",
"///",
"Ġused",
"Ġwith",
"Ġthe",
"Ġ[`",
"position",
"()`",
"](#",
"position",
")",
"Ġfunction",
".",
"Ċ",
"///",
"Ċ",
"pub",
"Ġtype",
"ĠFile",
"Stream",
"Location",
"Ġ{",
"Ċ",
" ",
"///",
"ĠA",
"Ġlocation",
"Ġrelative",
"Ġto",
"Ġthe",
"Ġbeginning",
"Ġof",
"Ġthe",
"Ġfile",
",",
"Ġi",
".",
"e",
".",
"Ġan",
"Ġabsolute",
"Ġoffset",
"Ċ",
" ",
"///",
"Ġin",
"Ġthe",
"Ġfile",
"Ġstream",
".",
"ĠThe",
"Ġoffset",
"Ġshould",
"Ġnot",
"Ġbe",
"Ġnegative",
".",
"Ċ",
" ",
"Begin",
"ning",
"Of",
"File",
"(",
"offset",
":",
"ĠInt",
")",
"ĊĊ",
" ",
"///",
"ĠA",
"Ġlocation",
"Ġrelative",
"Ġto",
"Ġthe",
"Ġcurrent",
"Ġposition",
"Ġin",
"Ġthe",
"Ġfile",
"Ġstream",
".",
"ĠThe",
"Ġoffset",
"Ċ",
" ",
"///",
"Ġcan",
"Ġbe",
"Ġeither",
"Ġpositive",
"Ġor",
"Ġnegative",
".",
"Ċ",
" ",
"Current",
"Location",
"(",
"offset",
":",
"ĠInt",
")",
"ĊĊ",
" ",
"///",
"ĠA",
"Ġlocation",
"Ġrelative",
"Ġto",
"Ġthe",
"Ġend",
"Ġof",
"Ġthe",
"Ġfile",
"Ġstream",
".",
"ĠThe",
"Ġoffset",
"Ġshould",
"Ġnot",
"Ċ",
" ",
"///",
"Ġbe",
"Ġpositive",
".",
"Ċ",
" ",
"End",
"Of",
"File",
"(",
"offset",
":",
"ĠInt",
")",
"Ċ",
"}",
"Ċ",
"Ċ",
"///",
"ĠSets",
"Ġthe",
"Ġposition",
"Ġof",
"Ġa",
"Ġfile",
"Ġstream",
"Ġto",
"Ġthe",
"Ġgiven",
"Ġlocation",
",",
"Ġwhere",
"Ġthe",
"Ġlocation",
"Ċ",
"///",
"Ġcan",
"Ġbe",
"Ġrelative",
"Ġto",
"Ġthe",
"Ġbeginning",
"Ġof",
"Ġthe",
"Ġfile",
",",
"Ġthe",
"Ġend",
"Ġof",
"Ġthe",
"Ġfile",
",",
"Ġor",
"Ġthe",
"Ċ",
"///",
"Ġcurrent",
"Ġposition",
"Ġin",
"Ġthe",
"Ġfile",
".",
"ĠOn",
"Ġsuccess",
",",
"Ġreturns",
"Ġthe",
"Ġcurrent",
"Ġposition",
"Ġin",
"Ċ",
"///",
"Ġthe",
"Ġfile",
"Ġstream",
"Ġas",
"Ġan",
"Ġabsolute",
"Ġoffset",
"Ġin",
"Ġbytes",
".",
"Ċ",
"///",
"Ċ",
"pub",
"Ġfn",
"Ġposition",
"(",
"Ċ",
" ",
"stream",
":",
"ĠFile",
"Stream",
",",
"Ċ",
" ",
"location",
":",
"ĠFile",
"Stream",
"Location",
",",
"Ċ",
")",
"Ġ->",
"ĠResult",
"(",
"Int",
",",
"ĠFile",
"Stream",
"Error",
")"
] |
https://pile.dataportraits.org/#JTIwJTIwdG9rZW5zKSklMEElN0QlMEElMEFmbiUyMHR5cGVfKHRva2VucyUzQSUyMFRva2VucyklMjAtJTNFJTIwUmVzdWx0KCUyMyhUeXBlJTJDJTIwVG9rZW5zKSUyQyUyMEVycm9yKSUyMCU3QiUwQSUyMCUyMGNhc2UlMjB0b2tlbnMlMjAlN0IlMEElMjAlMjAlMjAlMjAlNUIlNUQlMjAtJTNFJTIwRXJyb3IoVW5leHBlY3RlZEVuZE9mSW5wdXQpJTBBJTIwJTIwJTIwJTIwJTVCJTIzKHQuRm4lMkMlMjBfKSUyQyUyMCUyMyh0LkxlZnRQYXJlbiUyQyUyMF8pJTJDLi50b2tlbnMlNUQlMjAtJTNFJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwZm5fdHlwZSh0b2tlbnMpJTBBJTIwJTIwJTIwJTIwJTdEJTBBJTIwJTIwJTIwJTIwJTVCJTIzKHQuSGFzaCUyQyUyMF8pJTJDJTIwJTIzKHQuTGVmdFBhcmVuJTJDJTIwXyklMkMuLnRva2VucyU1RCUyMC0lM0UlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjB0dXBsZV90eXBlKHRva2VucyklMEElMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlNUIlMjModC5OYW1lKG1vZHVsZSklMkMlMjBfKSUyQyUyMCUyMyh0LkRvdCUyQyUyMF8pJTJDJTIwJTIzKHQuVXBwZXJOYW1lKG5hbWUpJT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CklMEElMjAlMjB1c2UlMjBfJTJDJTIwdG9rZW5zJTIwJTNDLSUyMGV4cGVjdCh0LlJpZ2h0QXJyb3clMkMlMjB0b2tlbnMpJTBBJTIwJTIwdXNlJTIwJTIzKHJldHVybiUyQyUyMHRva2VucyklMjAlM0MtJTIwcmVzdWx0LnRyeSh0eXBlXyh0b2tlbnMpKSUwQSUyMCUyME9rKCUyMyhGdW5jdGlvblR5cGUocGFyYW1ldGVycyUyQyUyMHJldHVybg== | tokens))
}
fn type_(tokens: Tokens) -> Result(#(Type, Tokens), Error) {
case tokens {
[] -> Error(UnexpectedEndOfInput)
[#(t.Fn, _), #(t.LeftParen, _),..tokens] -> {
fn_type(tokens)
}
[#(t.Hash, _), #(t.LeftParen, _),..tokens] -> {
tuple_type(tokens)
}
[#(t.Name(module), _), #(t.Dot, _), #(t.UpperName(name), _),..tokens] -> {
named_type(name, Some(module), tokens)
}
[#(t.UpperName(name), _),..tokens] -> {
named_type(name, None, tokens)
}
[#(t.DiscardName(name), _),..tokens] -> {
Ok(#(HoleType(name), tokens))
}
[#(t.Name(name), _),..tokens] -> {
Ok(#(VariableType(name), tokens))
}
[#(token, position),..] -> {
Error(UnexpectedToken(token, position))
}
}
}
fn named_type(
name: String,
module: Option(String),
tokens: Tokens,
) -> Result(#(Type, Tokens), Error) {
use #(parameters, tokens) <- result.try(case tokens {
[#(t.LeftParen, _),..tokens] ->
comma_delimited([], tokens, type_, until: t.RightParen)
_ -> Ok(#([], tokens))
})
let t = NamedType(name, module, parameters)
Ok(#(t, tokens))
}
fn fn_type(tokens: Tokens) -> Result(#(Type, Tokens), Error) {
let result = comma_delimited([], tokens, type_, until: t.RightParen)
use #(parameters, tokens) <- result.try(result)
use _, tokens <- expect(t.RightArrow, tokens)
use #(return, tokens) <- result.try(type_(tokens))
Ok(#(FunctionType(parameters, return | 3.72349 | [
45499,
1228,
187,
94,
187,
187,
4174,
1511,
18284,
45499,
27,
14391,
561,
10,
5204,
22195,
45818,
9,
2548,
13,
14391,
561,
582,
11759,
10,
551,
187,
50276,
5045,
21761,
551,
187,
50274,
5456,
5204,
11759,
9,
42747,
7689,
4527,
8982,
10,
187,
50274,
60,
4,
9,
85,
15,
31766,
13,
795,
582,
1852,
9,
85,
15,
11875,
49,
6950,
13,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
4174,
64,
881,
9,
45499,
10,
187,
50274,
94,
187,
50274,
60,
4,
9,
85,
15,
16850,
13,
795,
582,
1852,
9,
85,
15,
11875,
49,
6950,
13,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
31491,
64,
881,
9,
45499,
10,
187,
50274,
94,
187,
50274,
60,
4,
9,
85,
15,
2402,
9,
8640,
582,
795,
582,
1852,
9,
85,
15,
41943,
13,
795,
582,
1852,
9,
85,
15,
34252,
2402,
9,
1590,
582,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
19389,
64,
881,
9,
1590,
13,
3808,
9,
8640,
582,
21761,
10,
187,
50274,
94,
187,
50274,
60,
4,
9,
85,
15,
34252,
2402,
9,
1590,
582,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
19389,
64,
881,
9,
1590,
13,
8256,
13,
21761,
10,
187,
50274,
94,
187,
50274,
60,
4,
9,
85,
15,
21831,
472,
2402,
9,
1590,
582,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
20127,
45818,
9,
41,
1306,
2548,
9,
1590,
582,
21761,
1228,
187,
50274,
94,
187,
50274,
60,
4,
9,
85,
15,
2402,
9,
1590,
582,
795,
582,
537,
45499,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"tokens",
"))",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġtype",
"_(",
"tokens",
":",
"ĠTok",
"ens",
")",
"Ġ->",
"ĠResult",
"(#",
"(",
"Type",
",",
"ĠTok",
"ens",
"),",
"ĠError",
")",
"Ġ{",
"Ċ",
" ",
"case",
"Ġtokens",
"Ġ{",
"Ċ",
" ",
"[]",
"Ġ->",
"ĠError",
"(",
"Unexpected",
"End",
"Of",
"Input",
")",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Fn",
",",
"Ġ_",
"),",
"Ġ#",
"(",
"t",
".",
"Left",
"P",
"aren",
",",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"fn",
"_",
"type",
"(",
"tokens",
")",
"Ċ",
" ",
"}",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Hash",
",",
"Ġ_",
"),",
"Ġ#",
"(",
"t",
".",
"Left",
"P",
"aren",
",",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"tuple",
"_",
"type",
"(",
"tokens",
")",
"Ċ",
" ",
"}",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Name",
"(",
"module",
"),",
"Ġ_",
"),",
"Ġ#",
"(",
"t",
".",
"Dot",
",",
"Ġ_",
"),",
"Ġ#",
"(",
"t",
".",
"Upper",
"Name",
"(",
"name",
"),",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"named",
"_",
"type",
"(",
"name",
",",
"ĠSome",
"(",
"module",
"),",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Upper",
"Name",
"(",
"name",
"),",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"named",
"_",
"type",
"(",
"name",
",",
"ĠNone",
",",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Disc",
"ard",
"Name",
"(",
"name",
"),",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"Ok",
"(#",
"(",
"H",
"ole",
"Type",
"(",
"name",
"),",
"Ġtokens",
"))",
"Ċ",
" ",
"}",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Name",
"(",
"name",
"),",
"Ġ_",
"),",
"..",
"tokens",
"]"
] |
https://pile.dataportraits.org/#JTIwJTIwJTIwJTIwJTIwJTVCJTIzKHQuUmlnaHRCcmFjZSUyQyUyMF8pJTJDLi50b2tlbnMlNUQlMjAtJTNFJTBBJTIwJTIwJTIwJTIwJTIwJTIwT2soJTIzKGxpc3QucmV2ZXJzZSh0eXBlcyklMkMlMjBsaXN0LnJldmVyc2UodmFsdWVzKSUyQyUyMHRva2VucykpJTBBJ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AlMjBPayglMjMobGlzdC5yZXZlcnNlKHR5cGVzKSUyQyUyMGxpc3Q= | [#(t.RightBrace, _),..tokens] ->
Ok(#(list.reverse(types), list.reverse(values), tokens))
// Aliased non-final value
[
#(t.UpperName(name), _),
#(t.As, _),
#(t.UpperName(alias), _),
#(t.Comma, _),
..tokens
]
| [
#(t.Name(name), _),
#(t.As, _),
#(t.Name(alias), _),
#(t.Comma, _),
..tokens
] -> {
let import_ = UnqualifiedImport(name, Some(alias))
unqualified_imports(types, [import_,..values], tokens)
}
// Aliased final value
[
#(t.UpperName(name), _),
#(t.As, _),
#(t.UpperName(alias), _),
#(t.RightBrace, _),
..tokens
]
| [
#(t.Name(name), _),
#(t.As, _),
#(t.Name(alias), _),
#(t.RightBrace, _),
..tokens
] -> {
let import_ = UnqualifiedImport(name, Some(alias))
Ok(#(list.reverse(types), list.reverse([import_,..values]), tokens))
}
// Unaliased non-final value
[#(t.UpperName(name), _), #(t.Comma, _),..tokens]
| [#(t.Name(name), _), #(t.Comma, _),..tokens] -> {
let import_ = UnqualifiedImport(name, None)
unqualified_imports(types, [import_,..values], tokens)
}
// Unaliased final value
[#(t.UpperName(name), _), #(t.RightBrace, _),..tokens]
| [#(t.Name(name), _), #(t.RightBrace, _),..tokens] -> {
let import_ = UnqualifiedImport(name, None)
Ok(#(list.reverse(types), list | 4.1393 | [
60,
4,
9,
85,
15,
8455,
8478,
584,
13,
795,
582,
537,
45499,
62,
5204,
187,
50272,
20127,
45818,
9,
3550,
15,
32514,
9,
10706,
582,
1618,
15,
32514,
9,
8858,
582,
21761,
1228,
535,
50274,
605,
14355,
833,
1327,
14,
13017,
1318,
187,
50274,
60,
187,
50272,
4,
9,
85,
15,
34252,
2402,
9,
1590,
582,
795,
582,
187,
50272,
4,
9,
85,
15,
1909,
13,
795,
582,
187,
50272,
4,
9,
85,
15,
34252,
2402,
9,
29913,
582,
795,
582,
187,
50272,
4,
9,
85,
15,
2115,
785,
13,
795,
582,
187,
50273,
537,
45499,
187,
50274,
62,
187,
50274,
93,
544,
187,
50270,
4,
9,
85,
15,
2402,
9,
1590,
582,
795,
582,
187,
50270,
4,
9,
85,
15,
1909,
13,
795,
582,
187,
50270,
4,
9,
85,
15,
2402,
9,
29913,
582,
795,
582,
187,
50270,
4,
9,
85,
15,
2115,
785,
13,
795,
582,
187,
50271,
537,
45499,
187,
50272,
62,
5204,
551,
187,
50272,
1059,
1395,
64,
426,
914,
28758,
19206,
9,
1590,
13,
3808,
9,
29913,
1228,
187,
50272,
328,
28758,
64,
2948,
84,
9,
10706,
13,
544,
2948,
7481,
537,
8858,
1092,
21761,
10,
187,
50274,
94,
535,
50274,
605,
14355,
833,
2457,
1318,
187,
50274,
60,
187,
50272,
4,
9,
85,
15,
34252,
2402,
9,
1590,
582,
795,
582,
187,
50272,
4,
9,
85,
15,
1909,
13,
795,
582,
187,
50272,
4,
9,
85,
15,
34252,
2402,
9,
29913,
582,
795,
582,
187,
50272,
4,
9,
85,
15,
8455,
8478,
584,
13,
795,
582,
187,
50273,
537
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"[",
"#",
"(",
"t",
".",
"Right",
"Br",
"ace",
",",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ċ",
" ",
"Ok",
"(#",
"(",
"list",
".",
"reverse",
"(",
"types",
"),",
"Ġlist",
".",
"reverse",
"(",
"values",
"),",
"Ġtokens",
"))",
"ĊĊ",
" ",
"//",
"ĠAli",
"ased",
"Ġnon",
"-",
"final",
"Ġvalue",
"Ċ",
" ",
"[",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Upper",
"Name",
"(",
"name",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"As",
",",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Upper",
"Name",
"(",
"alias",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Com",
"ma",
",",
"Ġ_",
"),",
"Ċ",
" ",
"..",
"tokens",
"Ċ",
" ",
"]",
"Ċ",
" ",
"|",
"Ġ[",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Name",
"(",
"name",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"As",
",",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Name",
"(",
"alias",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Com",
"ma",
",",
"Ġ_",
"),",
"Ċ",
" ",
"..",
"tokens",
"Ċ",
" ",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"let",
"Ġimport",
"_",
"Ġ=",
"ĠUn",
"qualified",
"Import",
"(",
"name",
",",
"ĠSome",
"(",
"alias",
"))",
"Ċ",
" ",
"un",
"qualified",
"_",
"import",
"s",
"(",
"types",
",",
"Ġ[",
"import",
"_,",
"..",
"values",
"],",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"ĊĊ",
" ",
"//",
"ĠAli",
"ased",
"Ġfinal",
"Ġvalue",
"Ċ",
" ",
"[",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Upper",
"Name",
"(",
"name",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"As",
",",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Upper",
"Name",
"(",
"alias",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Right",
"Br",
"ace",
",",
"Ġ_",
"),",
"Ċ",
" ",
".."
] |
https://pile.dataportraits.org/#JTIwJTIwcm91bmRsZWFmJTIwYmF0JTIwKCUyMEguJTIwYmVhdHVzJTIwKSUyMEJpY29sb3JlZCUyMHJvdW5kbGVhZiUyMGJhdCUyMCglMjBILiUyMGJpY29sb3IlMjApJTIwQm9lYWRpJ3MlMjByb3VuZGxlYWYlMjBiYXQlMjAoJTIwSC4lMjBib2VhZGlpJTIwKSUyMFNob3J0LWhlYWRlZCUyMHJvdW5kbGVhZiUyMGJhdCUyMCglMjBILiUyMGJyZXZpY2VwcyUyMCklMjBTdW5kZXZhbGwncyUyMHJvdW5kbGVhZiUyMGJhdCUyMCglMjBILiUyMGNhZmZlciUyMCklMjBTcHVycmVkJTIwcm91bmRsZWFmJTIwYmF0JTIwKCUyMEguJTIwY2FsY2FyYXR1cyUyMCklMjBHcmVhdGVyJTIwcm91bmRsZWFmJTIwYmF0JTIwKCUyMEguJTIwY2FtZXJ1bmVuc2lzJTIwKSUyMEZhd24lMjBsZWF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bW90dGVpJTIwKSUyMEluZGlhbiUyMHJvdW5kbGVhZiUyMGJhdCUyMCglMjBILiUyMGxhbmthZGl2YSUyMCklMjBJbnRlcm1lZGlhdGUlMjByb3VuZGxlYWYlMjBiYXQlMjAoJTIwSC4lMjBsYXJ2YXR1cyUyMCklMjBMYXJnZSUyMEFzaWFuJTIwcm91bmRsZWFmJTIwYmF0JTIwKCUyMEguJTIwbGVrYWd1bGklMjApJTIwU2hpZWxkLWZhY2VkJTIwcm91bmRsZWFmJTIwYmF0JTIwKCUyMEguJTIwbHlsZWklMjApJTIwQmlnLWVhcmVkJTIwcm91bmRsZWFmJTIwYmF0JTBB | roundleaf bat ( H. beatus ) Bicolored roundleaf bat ( H. bicolor ) Boeadi's roundleaf bat ( H. boeadii ) Short-headed roundleaf bat ( H. breviceps ) Sundevall's roundleaf bat ( H. caffer ) Spurred roundleaf bat ( H. calcaratus ) Greater roundleaf bat ( H. camerunensis ) Fawn leaf-nosed bat ( H. cervinus ) Ashy roundleaf bat ( H. cineraceus ) Commerson's roundleaf bat ( H. commersoni ) Large Mindanao roundleaf bat ( H. coronatus ) Telefomin roundleaf bat ( H. corynophyllus ) Cox's roundleaf bat ( H. coxi ) Timor roundleaf bat ( H. crumeniferus ) Short-tailed roundleaf bat ( H. curtus ) Cyclops roundleaf bat ( H. cyclops ) Makira roundleaf bat ( H. demissus ) Diadem leaf-nosed bat ( H. diadema ) Fierce roundleaf bat ( H. dinops ) Borneo roundleaf bat ( H. doriae ) Khajuria's leaf-nosed bat ( H. durgadasi ) Dayak roundleaf bat ( H. dyacorum ) Hill's roundleaf bat ( H. edwardshilli ) H. einnaythu Sooty roundleaf bat ( H. fuliginosus ) Fulvus roundleaf bat ( H. fulvus ) Cantor's roundleaf bat ( H. galeritus ) H. gentilis Giant roundleaf bat ( H. gigas ) Grand roundleaf bat ( H. grandis ) H. griffini Thailand roundleaf bat ( H. halophyllus ) Kolar Leaf-nosed Bat ( H. hypophyllus ) Crested roundleaf bat ( H. inexpectatus ) Arnhem leaf-nosed bat ( H. inornatus ) Jones's roundleaf bat ( H. jonesi ) Phou Khao Khouay leaf-nosed bat ( H. khaokhouayensis ) Khasian Leaf-nosed Bat ( H. khasiana ) H. kingstonae H. kunsi Lamotte's roundleaf bat ( H. lamottei ) Indian roundleaf bat ( H. lankadiva ) Intermediate roundleaf bat ( H. larvatus ) Large Asian roundleaf bat ( H. lekaguli ) Shield-faced roundleaf bat ( H. lylei ) Big-eared roundleaf bat | 5.144655 | [
4650,
26342,
10464,
313,
388,
15,
320,
3144,
2387,
378,
20917,
2149,
3790,
26342,
10464,
313,
388,
15,
270,
49122,
2387,
3452,
1455,
74,
434,
3790,
26342,
10464,
313,
388,
15,
1766,
1455,
2886,
2387,
14196,
14,
24818,
3790,
26342,
10464,
313,
388,
15,
1517,
87,
41150,
2387,
4146,
3620,
455,
434,
3790,
26342,
10464,
313,
388,
15,
260,
2843,
254,
2387,
2101,
15064,
3790,
26342,
10464,
313,
388,
15,
1724,
5546,
3144,
2387,
28319,
3790,
26342,
10464,
313,
388,
15,
4049,
254,
328,
16520,
2387,
15404,
939,
10617,
14,
79,
1700,
10464,
313,
388,
15,
15380,
30264,
2387,
12521,
90,
3790,
26342,
10464,
313,
388,
15,
260,
7068,
584,
316,
2387,
11293,
3796,
434,
3790,
26342,
10464,
313,
388,
15,
764,
3796,
74,
2387,
21157,
18296,
3230,
80,
3790,
26342,
10464,
313,
388,
15,
9987,
3144,
2387,
13940,
71,
5240,
3790,
26342,
10464,
313,
388,
15,
260,
590,
79,
30604,
316,
2387,
19043,
434,
3790,
26342,
10464,
313,
388,
15,
820,
2981,
2387,
8969,
263,
3790,
26342,
10464,
313,
388,
15,
1531,
30090,
9393,
316,
2387,
14196,
14,
29551,
3790,
26342,
10464,
313,
388,
15,
25846,
316,
2387,
25053,
2695,
3790,
26342,
10464,
313,
388,
15,
6776,
2695,
2387,
26792,
8432,
3790,
26342,
10464,
313,
388,
15,
1471,
739,
316,
2387,
6129,
4788,
10617,
14,
79,
1700,
10464,
313,
388,
15,
1073,
4788,
66,
2387,
401,
1321,
336,
3790,
26342,
10464,
313,
388,
15,
13223,
2695,
2387,
378,
9584,
80,
3790,
26342,
10464,
313,
388,
15,
277,
263,
18620,
2387,
15858,
1432,
21576,
434,
10617
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"round",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġbe",
"atus",
"Ġ)",
"ĠB",
"icol",
"ored",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġb",
"icolor",
"Ġ)",
"ĠBo",
"ead",
"i",
"'s",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġbo",
"ead",
"ii",
"Ġ)",
"ĠShort",
"-",
"headed",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġbre",
"v",
"iceps",
"Ġ)",
"ĠSun",
"dev",
"all",
"'s",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġc",
"aff",
"er",
"Ġ)",
"ĠSp",
"urred",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcal",
"car",
"atus",
"Ġ)",
"ĠGreater",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcam",
"er",
"un",
"ensis",
"Ġ)",
"ĠFa",
"wn",
"Ġleaf",
"-",
"n",
"osed",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcerv",
"inus",
"Ġ)",
"ĠAsh",
"y",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġc",
"iner",
"ace",
"us",
"Ġ)",
"ĠComm",
"erson",
"'s",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcomm",
"erson",
"i",
"Ġ)",
"ĠLarge",
"ĠMind",
"ana",
"o",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcoron",
"atus",
"Ġ)",
"ĠTele",
"f",
"omin",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġc",
"ory",
"n",
"ophyll",
"us",
"Ġ)",
"ĠCox",
"'s",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġco",
"xi",
"Ġ)",
"ĠTim",
"or",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcr",
"umen",
"ifer",
"us",
"Ġ)",
"ĠShort",
"-",
"tailed",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcurt",
"us",
"Ġ)",
"ĠCycl",
"ops",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġcycl",
"ops",
"Ġ)",
"ĠMak",
"ira",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġdem",
"iss",
"us",
"Ġ)",
"ĠDi",
"adem",
"Ġleaf",
"-",
"n",
"osed",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġdi",
"adem",
"a",
"Ġ)",
"ĠF",
"ier",
"ce",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġdin",
"ops",
"Ġ)",
"ĠB",
"orne",
"o",
"Ġround",
"leaf",
"Ġbat",
"Ġ(",
"ĠH",
".",
"Ġd",
"or",
"iae",
"Ġ)",
"ĠKh",
"aj",
"uria",
"'s",
"Ġleaf"
] |
https://pile.dataportraits.org/#JTIwJTIwcG9zaXRpb24pKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCU3RCUwQSUwQSUyMCUyMCUyMCUyMCUyRiUyRiUyMEZ1bmN0aW9uJTIwY2FsbCUwQSUyMCUyMCUyMCUyMCU1QiUyMyh0LkxlZnRQYXJlbiUyQyUyMF8pJTJDLi50b2tlbnMlNUQlMjAtJTNFJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwY2FsbCglNUIlNUQlMkMlMjBwYXJzZWQlMkMlMjB0b2tlbnMpJTBBJTIwJTIwJTIwJTIwJTdEJTBBJTBBJTIwJTIwJTIwJTIwXyUyMC0lM0UlMjBPayglMjMocGFyc2VkJTJDJTIwdG9rZW5zKSklMEElMjAlMjAlN0QlMEElN0QlMEElMEFmbiUyMGNhbGwoJTBBJTIwJTIwYXJndW1lbnRzJTNBJTIwTGlzdChGaWVsZChFeHByZXNzaW9uKSklMkMlMEEl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SUyQyUyMF8pJTJDJTIwJTIzKHQuQ29sb24lMkMlMjBfKSUyQyUyMCUyMyh0LkRpc2NhcmROYW1lKCUyMiUyMiklMkMlMjBfKSUyQy4udG9rZW5zJTVEJTIwLSUzRSUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMGZuX2NhcHR1cmUoU29tZShsYWJlbCklMkMlMjBmdW5jdGlvbiUyQyUyMGxpc3QucmV2ZXJzZShhcmd1bWVudHMpJTJDJTIwJTVCJTVEJTJDJTIwdG9rZW5zKSUwQSUyMCUyMCUyMCUyMCU3RCUwQSUwQSUyMCUyMCUyMCUyMCU1QiUyMyh0LkRpc2NhcmROYW1lKCUyMiUyMiklMkMlMjBfKSUyQyUyMCUyMyh0LkNvbW1hJTJDJTIwXyklMkMlMjAlMjModC5SaWdodFBhcmVuJTJDJTIwXyklMkMuLnRva2VucyU1RCUwQSUyMCUyMCUyMCUyMCU3QyUyMCU1QiUyMyh0LkRpc2NhcmROYW1lKCUyMiUyMiklMkMlMjBfKSUyQyUyMCUyMyh0LlJpZ2h0UGFyZW4lMkMlMjBfKSUyQy4udG9rZW5zJTVEJTIwLSUzRSUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMGxldCUyMGNhcHR1cmUlMjAlM0QlMjBGbkNhcHR1cmUoTm9uZSUyQyUyMGZ1bmN0aW9uJTJDJTIwbGlzdC5yZXZlcnNlKGFyZ3VtZW50cyklMkMlMjAlNUIlNUQpJTBBJTIwJTIwJTIwJTIwJTIwJTIwYWZ0ZXJfZXhwcmVzc2lvbihjYXB0dXJlJTJDJTIwdG9rZW5zKSUwQSUyMCUyMCUyMCUyMCU3RA== | position))
}
}
// Function call
[#(t.LeftParen, _),..tokens] -> {
call([], parsed, tokens)
}
_ -> Ok(#(parsed, tokens))
}
}
fn call(
arguments: List(Field(Expression)),
function: Expression,
tokens: Tokens,
) -> Result(#(Expression, Tokens), Error) {
case tokens {
[] -> Error(UnexpectedEndOfInput)
[#(t.RightParen, _),..tokens] -> {
let call = Call(function, list.reverse(arguments))
after_expression(call, tokens)
}
[
#(t.Name(label), _),
#(t.Colon, _),
#(t.DiscardName(""), _),
#(t.Comma, _),
#(t.RightParen, _),
..tokens
]
| [
#(t.Name(label), _),
#(t.Colon, _),
#(t.DiscardName(""), _),
#(t.RightParen, _),
..tokens
] -> {
let capture =
FnCapture(Some(label), function, list.reverse(arguments), [])
after_expression(capture, tokens)
}
[
#(t.Name(label), _),
#(t.Colon, _),
#(t.DiscardName(""), _),
#(t.Comma, _),
..tokens
]
| [#(t.Name(label), _), #(t.Colon, _), #(t.DiscardName(""), _),..tokens] -> {
fn_capture(Some(label), function, list.reverse(arguments), [], tokens)
}
[#(t.DiscardName(""), _), #(t.Comma, _), #(t.RightParen, _),..tokens]
| [#(t.DiscardName(""), _), #(t.RightParen, _),..tokens] -> {
let capture = FnCapture(None, function, list.reverse(arguments), [])
after_expression(capture, tokens)
} | 5.393473 | [
3321,
1228,
187,
50272,
94,
187,
50274,
94,
535,
50274,
605,
12917,
1067,
187,
50274,
60,
4,
9,
85,
15,
11875,
49,
6950,
13,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
4065,
8850,
1092,
36838,
13,
21761,
10,
187,
50274,
94,
535,
50274,
64,
5204,
19023,
45818,
9,
35422,
264,
13,
21761,
1228,
187,
50276,
94,
187,
94,
187,
187,
4174,
1067,
9,
187,
50276,
31126,
27,
5552,
9,
6180,
9,
16960,
9679,
187,
50276,
3701,
27,
18299,
13,
187,
50276,
45499,
27,
14391,
561,
13,
187,
10,
5204,
22195,
45818,
9,
16960,
13,
14391,
561,
582,
11759,
10,
551,
187,
50276,
5045,
21761,
551,
187,
50274,
5456,
5204,
11759,
9,
42747,
7689,
4527,
8982,
10,
535,
50274,
60,
4,
9,
85,
15,
8455,
49,
6950,
13,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
1059,
1067,
426,
9368,
9,
3701,
13,
1618,
15,
32514,
9,
31126,
1228,
187,
50272,
6438,
64,
17759,
9,
4065,
13,
21761,
10,
187,
50274,
94,
535,
50274,
60,
187,
50272,
4,
9,
85,
15,
2402,
9,
1968,
582,
795,
582,
187,
50272,
4,
9,
85,
15,
2973,
251,
13,
795,
582,
187,
50272,
4,
9,
85,
15,
21831,
472,
2402,
1587,
8375,
795,
582,
187,
50272,
4,
9,
85,
15,
2115,
785,
13,
795,
582,
187,
50272,
4,
9,
85,
15,
8455,
49,
6950,
13,
795,
582,
187,
50273,
537,
45499,
187,
50274,
62,
187,
50274,
93,
544,
187,
50270,
4,
9,
85,
15,
2402,
9,
1968,
582,
795,
582,
187,
50270,
4,
9,
85,
15,
2973
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"position",
"))",
"Ċ",
" ",
"}",
"Ċ",
" ",
"}",
"ĊĊ",
" ",
"//",
"ĠFunction",
"Ġcall",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Left",
"P",
"aren",
",",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"call",
"([",
"],",
"Ġparsed",
",",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"ĊĊ",
" ",
"_",
"Ġ->",
"ĠOk",
"(#",
"(",
"pars",
"ed",
",",
"Ġtokens",
"))",
"Ċ",
" ",
"}",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġcall",
"(",
"Ċ",
" ",
"arguments",
":",
"ĠList",
"(",
"Field",
"(",
"Expression",
")),",
"Ċ",
" ",
"function",
":",
"ĠExpression",
",",
"Ċ",
" ",
"tokens",
":",
"ĠTok",
"ens",
",",
"Ċ",
")",
"Ġ->",
"ĠResult",
"(#",
"(",
"Expression",
",",
"ĠTok",
"ens",
"),",
"ĠError",
")",
"Ġ{",
"Ċ",
" ",
"case",
"Ġtokens",
"Ġ{",
"Ċ",
" ",
"[]",
"Ġ->",
"ĠError",
"(",
"Unexpected",
"End",
"Of",
"Input",
")",
"ĊĊ",
" ",
"[",
"#",
"(",
"t",
".",
"Right",
"P",
"aren",
",",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"let",
"Ġcall",
"Ġ=",
"ĠCall",
"(",
"function",
",",
"Ġlist",
".",
"reverse",
"(",
"arguments",
"))",
"Ċ",
" ",
"after",
"_",
"expression",
"(",
"call",
",",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"ĊĊ",
" ",
"[",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Name",
"(",
"label",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Col",
"on",
",",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Disc",
"ard",
"Name",
"(\"",
"\"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Com",
"ma",
",",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Right",
"P",
"aren",
",",
"Ġ_",
"),",
"Ċ",
" ",
"..",
"tokens",
"Ċ",
" ",
"]",
"Ċ",
" ",
"|",
"Ġ[",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Name",
"(",
"label",
"),",
"Ġ_",
"),",
"Ċ",
" ",
"#",
"(",
"t",
".",
"Col"
] |
https://pile.dataportraits.org/#JTIwJTIwQ3JlYXRlJTIwYW4lMjBhY3Rpb24lMjB0aGF0JTIwc2V0cyUyMHRoZSUyMGN1cnJlbnQlMjBzdGF0ZSUyMHRvJTIwYSUyMG5ldyUyMHZhbHVlJTJDJTIwcmV0dXJuaW5nJTIwJTYwTmlsJTYwLiUwQSUyRiUyRiUyRiUwQSUyRiUyRiUyRiUyMCU2MCU2MCU2MCUwQSUyRiUyRiUyRiUyMGZuJTIwc2V0X3RvXzQyKCklMjAtJTNFJTIwQWN0aW9uKFN0cmluZyUyQyUyMEludCklMjAlN0IlMEElMkYlMkYlMkYlMjAlMjAlMjB1c2UlMjBOaWwlMjAlM0MtJTIwZG8oc2V0X3N0YXRlKDQyKSklMEElMkYlMkYlMkYlMjAlMjAlMjByZXR1cm4oJTIyVGhlJTIwc3RhdGUlMjBpcyUyMG5vdyUyMDQyISUyMEhBSEFIQUhBISEhJTIyKSUwQSUyRiUyRiUyRiUyMCU3RCUwQSUyRiUyRiUyRiUyMCU2MCU2MCU2MCUwQSUyRiUyRiUyRiUwQSUyRiUyRiUyRiUyMCVGMCU5RiU5MiVBMSUyMElmJTIweW91JTIwZmluZCUyMHlvdXJzZWxmJTIwY29tYmluaW5nJTIwJTYwX3N0YXR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lMjB0aGUlMjB2YWx1ZSUyMHByb2R1Y2VkJTIwYnklMjBhbiUyMGFjdGlvbiUyMHdpdGglMjB0aGUlMjBnaXZlbiUyMGZ1bmN0aW9uJTIwaWYlMjBpdCUyMGlzJTBBJTJGJTJGJTJGJTIwd3JhcHBlZCUyMGluJTIwYW4lMjAlNjBPayU2MCUyQyUyMHJldHVybmluZyUyMHRoZSUyMCU2MEVycm9yJTYwJTIwb3RoZXJ3aXNlLiUwQSUyRiUyRiUyRiUwQXB1YiUyMGZuJTIwbWFwX29rKCUwQSUyMCUyMGFjdGlvbiUzQSUyMFJlc3VsdEFjdGlvbihhJTJDJTIwZXJyb3IlMkMlMjBzdGF0ZSklMkMlMEElMjAlMjBmJTNBJTIwZm4oYSklMjAtJTNFJTIwYiUyQyUwQSklMjAtJTNFJTIwUmVzdWx0QWN0aW9uKGIlMkMlMjBlcnJvciUyQyUyMHN0YXRlKSUyMCU3QiUwQSUyMCUyMGZuKHN0YXRlKSUyMCU3QiUwQSUyMCUyMCUyMCUyMGxldCUyMCUyMyhzdGF0ZSUyQyUyMHJlc3VsdCklMjAlM0QlMjBhY3Rpb24oc3RhdGUpJTBBJTBBJTIwJTIwJTIwJTIwY2FzZSUyMHJlc3VsdCUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyME9rKGEpJTIwLSUzRSUyMCUyMyhzdGF0ZSUyQyUyME9rKGYoYSkpKSUwQSUyMCUyMCUyMCUyMCUyMCUyMEVycm9yKGUpJTIwLSUzRSUyMCUyMyhzdGF0ZSUyQyUyMEVycm9yKGUpKQ== | Create an action that sets the current state to a new value, returning `Nil`.
///
/// ```
/// fn set_to_42() -> Action(String, Int) {
/// use Nil <- do(set_state(42))
/// return("The state is now 42! HAHAHAHA!!!")
/// }
/// ```
///
/// 💡 If you find yourself combining `_state` functions with `do` a lot, check
/// out the [`state`](./act/state.html) module!
///
pub fn set_state(state: state) -> Action(Nil, state) {
fn(_) { #(state, Nil) }
}
/// Create an action that updates the current state with the given function and
/// returns `Nil`.
///
/// ```
/// fn increment_state(by: Int) -> Action(Nil, Int) {
/// update_state(fn(s) { s + by })
/// }
/// ```
///
/// 💡 If you find yourself combining `_state` functions with `do` a lot, check
/// out the [`state`](./act/state.html) module!
///
pub fn update_state(updater: fn(state) -> state) -> Action(Nil, state) {
fn(state) { #(updater(state), Nil) }
}
// ---- MANIPULATIONS ----------------------------------------------------------
/// Transform the value produced by an action with the given function.
///
pub fn map(action: Action(a, state), f: fn(a) -> b) -> Action(b, state) {
fn(state) {
let #(state, result) = action(state)
#(state, f(result))
}
}
/// Transform the value produced by an action with the given function if it is
/// wrapped in an `Ok`, returning the `Error` otherwise.
///
pub fn map_ok(
action: ResultAction(a, error, state),
f: fn(a) -> b,
) -> ResultAction(b, error, state) {
fn(state) {
let #(state, result) = action(state)
case result {
Ok(a) -> #(state, Ok(f(a)))
Error(e) -> #(state, Error(e)) | 5.573094 | [
9395,
271,
2250,
326,
5239,
253,
1655,
1375,
281,
247,
747,
1318,
13,
10884,
2634,
37490,
16433,
187,
10638,
187,
10638,
2634,
5190,
187,
10638,
21486,
873,
64,
936,
64,
2945,
1082,
5204,
12121,
9,
2776,
13,
4458,
10,
551,
187,
10638,
50275,
2327,
45828,
12630,
513,
9,
1178,
64,
3409,
9,
2945,
1228,
187,
10638,
50275,
2309,
1587,
510,
1375,
310,
1024,
5976,
2,
15817,
10114,
10114,
10114,
4672,
1476,
10,
187,
10638,
748,
187,
10638,
2634,
5190,
187,
10638,
187,
10638,
22692,
229,
96,
1310,
368,
1089,
4834,
16248,
2634,
64,
3409,
65,
3470,
342,
2634,
3088,
65,
247,
2257,
13,
2451,
187,
10638,
562,
253,
44308,
3409,
65,
880,
11379,
514,
16,
3409,
15,
2974,
10,
6333,
2,
187,
10638,
187,
16712,
21486,
873,
64,
3409,
9,
3409,
27,
1375,
10,
5204,
12121,
9,
37490,
13,
1375,
10,
551,
187,
50276,
4174,
10107,
10,
551,
1852,
9,
3409,
13,
45828,
10,
748,
187,
94,
187,
187,
10638,
13119,
271,
2250,
326,
11269,
253,
1655,
1375,
342,
253,
1677,
1159,
285,
187,
10638,
6548,
2634,
37490,
16433,
187,
10638,
187,
10638,
2634,
5190,
187,
10638,
21486,
17627,
64,
3409,
9,
1615,
27,
4458,
10,
5204,
12121,
9,
37490,
13,
4458,
10,
551,
187,
10638,
50275,
11183,
64,
3409,
9,
4174,
9,
84,
10,
551,
256,
559,
407,
13985,
187,
10638,
748,
187,
10638,
2634,
5190,
187,
10638,
187,
10638,
22692,
229,
96,
1310,
368,
1089,
4834,
16248,
2634,
64,
3409,
65,
3470,
342,
2634,
3088,
65,
247,
2257,
13,
2451,
187,
10638,
562,
253
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"Create",
"Ġan",
"Ġaction",
"Ġthat",
"Ġsets",
"Ġthe",
"Ġcurrent",
"Ġstate",
"Ġto",
"Ġa",
"Ġnew",
"Ġvalue",
",",
"Ġreturning",
"Ġ`",
"Nil",
"`.",
"Ċ",
"///",
"Ċ",
"///",
"Ġ`",
"``",
"Ċ",
"///",
"Ġfn",
"Ġset",
"_",
"to",
"_",
"42",
"()",
"Ġ->",
"ĠAction",
"(",
"String",
",",
"ĠInt",
")",
"Ġ{",
"Ċ",
"///",
" ",
"use",
"ĠNil",
"Ġ<-",
"Ġdo",
"(",
"set",
"_",
"state",
"(",
"42",
"))",
"Ċ",
"///",
" ",
"return",
"(\"",
"The",
"Ġstate",
"Ġis",
"Ġnow",
"Ġ42",
"!",
"ĠHA",
"HA",
"HA",
"HA",
"!!",
"!\"",
")",
"Ċ",
"///",
"Ġ}",
"Ċ",
"///",
"Ġ`",
"``",
"Ċ",
"///",
"Ċ",
"///",
"ĠðŁ",
"Ĵ",
"¡",
"ĠIf",
"Ġyou",
"Ġfind",
"Ġyourself",
"Ġcombining",
"Ġ`",
"_",
"state",
"`",
"Ġfunctions",
"Ġwith",
"Ġ`",
"do",
"`",
"Ġa",
"Ġlot",
",",
"Ġcheck",
"Ċ",
"///",
"Ġout",
"Ġthe",
"Ġ[`",
"state",
"`",
"](",
"./",
"act",
"/",
"state",
".",
"html",
")",
"Ġmodule",
"!",
"Ċ",
"///",
"Ċ",
"pub",
"Ġfn",
"Ġset",
"_",
"state",
"(",
"state",
":",
"Ġstate",
")",
"Ġ->",
"ĠAction",
"(",
"Nil",
",",
"Ġstate",
")",
"Ġ{",
"Ċ",
" ",
"fn",
"(_",
")",
"Ġ{",
"Ġ#",
"(",
"state",
",",
"ĠNil",
")",
"Ġ}",
"Ċ",
"}",
"Ċ",
"Ċ",
"///",
"ĠCreate",
"Ġan",
"Ġaction",
"Ġthat",
"Ġupdates",
"Ġthe",
"Ġcurrent",
"Ġstate",
"Ġwith",
"Ġthe",
"Ġgiven",
"Ġfunction",
"Ġand",
"Ċ",
"///",
"Ġreturns",
"Ġ`",
"Nil",
"`.",
"Ċ",
"///",
"Ċ",
"///",
"Ġ`",
"``",
"Ċ",
"///",
"Ġfn",
"Ġincrement",
"_",
"state",
"(",
"by",
":",
"ĠInt",
")",
"Ġ->",
"ĠAction",
"(",
"Nil",
",",
"ĠInt",
")",
"Ġ{",
"Ċ",
"///",
" ",
"update",
"_",
"state",
"(",
"fn",
"(",
"s",
")",
"Ġ{",
"Ġs",
"Ġ+",
"Ġby",
"Ġ})",
"Ċ",
"///",
"Ġ}",
"Ċ",
"///",
"Ġ`",
"``",
"Ċ",
"///",
"Ċ",
"///",
"ĠðŁ",
"Ĵ",
"¡",
"ĠIf",
"Ġyou",
"Ġfind",
"Ġyourself",
"Ġcombining",
"Ġ`",
"_",
"state",
"`",
"Ġfunctions",
"Ġwith",
"Ġ`",
"do",
"`",
"Ġa",
"Ġlot",
",",
"Ġcheck",
"Ċ",
"///",
"Ġout",
"Ġthe"
] |
https://pile.dataportraits.org/#JTIwJTIwJTIwJTIwJTIwcGFyYW1ldGVycyUzQSUyMExpc3QoU3RyaW5nKSUyQyUwQSUyMCUyMCUyMCUyMHZhcmlhbnRzJTNBJTIwTGlzdChWYXJpYW50KSUyQyUwQSUyMCUyMCklMEElN0QlMEElMEFwdWIlMjB0eXBlJTIwVmFyaWFudCUyMCU3QiUwQSUyMCUyMFZhcmlhbnQobmFtZSUzQSUyMFN0cmluZyUyQyUyMGZpZWxkcyUzQSUyMExpc3QoRmllbGQoVHlwZSkpKSUwQSU3RCUwQSUwQXB1YiUyMHR5cGUlMjBGaWVsZCh0KSUyMCU3QiUwQSUyMCUyMEZpZWxkKGxhYmVsJTNBJTIwT3B0aW9uKFN0cmluZyklMkMlMjBpd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1vZHVsZSglMEElMjAlMjAlMjAuLm1vZHVsZSUyQyUwQSUyMCUyMCUyMCUyMGZ1bmN0aW9ucyUzQSUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMERlZmluaXRpb24obGlzdC5yZXZlcnNlKGF0dHJpYnV0ZXMpJTJDJTIwZnVuY3Rpb24pJTJDJTBBJTIwJTIwJTIwJTIwJTIwLi5tb2R1bGUuZnVuY3Rpb25zJTBBJTIwJTIwJTIwJTIwJTVEJTJDJTBBJTIwJTIwKSUwQSU3RCUwQSUwQWZuJTIwcHVzaF9jdXN0b21fdHlwZSglMEElMjAlMjBtb2R1bGUlM0ElMjBNb2R1bGUlMkMlMEElMjAlMjBhdHRyaWJ1dGVzJTNBJTIwTGlzdChBdHRyaWJ1dGUpJTJDJTBBJTIwJTIwY3VzdG9tX3R5cGUlM0ElMjBDdXN0b21UeXBlJTJDJTBBKSUyMC0lM0UlMjBNb2R1bGUlMjAlN0IlMEElMjAlMjBsZXQlMjBjdXN0b21fdHlwZSUyMCUzRCUwQSUyMCUyMCUyMCUyMEN1c3RvbVR5cGUoLi5jdXN0b21fdHlwZSUyQyUyMHZhcmlhbnRzJTNBJTIwbGlzdC5yZXZlcnNlKGN1c3RvbV90eXBlLnZhcmlhbnRzKSklMEElMjAlMjBNb2R1bGUoJTBBJTIwJTIwJTIwLi5tb2R1bGUlMkMlMEElMjAlMjAlMjAlMjBjdXN0b21fdHlwZXMlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjBEZWZpbml0aW9uKGxpc3QucmV2ZXJzZShhdHRyaWJ1dGVzKSUyQyUyMGN1c3RvbQ== | parameters: List(String),
variants: List(Variant),
)
}
pub type Variant {
Variant(name: String, fields: List(Field(Type)))
}
pub type Field(t) {
Field(label: Option(String), item: t)
}
pub type Type {
NamedType(name: String, module: Option(String), parameters: List(Type))
TupleType(elements: List(Type))
FunctionType(parameters: List(Type), return: Type)
VariableType(name: String)
HoleType(name: String)
}
pub type Error {
UnexpectedEndOfInput
UnexpectedToken(token: Token, position: Position)
}
pub fn module(src: String) -> Result(Module, Error) {
glexer.new(src)
|> glexer.lex
|> list.filter(fn(pair) {!is_whitespace(pair.0) })
|> slurp(Module([], [], [], [], []), [], _)
}
fn is_whitespace(token: Token) -> Bool {
case token {
t.EmptyLine | t.CommentNormal | t.CommentModule | t.CommentDoc(_) -> True
_ -> False
}
}
fn push_constant(
module: Module,
attributes: List(Attribute),
constant: Constant,
) -> Module {
Module(
..module,
constants: [
Definition(list.reverse(attributes), constant),
..module.constants
],
)
}
fn push_function(
module: Module,
attributes: List(Attribute),
function: Function,
) -> Module {
Module(
..module,
functions: [
Definition(list.reverse(attributes), function),
..module.functions
],
)
}
fn push_custom_type(
module: Module,
attributes: List(Attribute),
custom_type: CustomType,
) -> Module {
let custom_type =
CustomType(..custom_type, variants: list.reverse(custom_type.variants))
Module(
..module,
custom_types: [
Definition(list.reverse(attributes), custom | 6.06634 | [
22041,
27,
5552,
9,
2776,
582,
187,
50274,
20617,
1103,
27,
5552,
9,
40734,
582,
187,
50276,
10,
187,
94,
187,
187,
16712,
1511,
657,
6410,
551,
187,
50276,
40734,
9,
1590,
27,
4605,
13,
4910,
27,
5552,
9,
6180,
9,
2548,
10689,
187,
94,
187,
187,
16712,
1511,
7327,
9,
85,
10,
551,
187,
50276,
6180,
9,
1968,
27,
27357,
9,
2776,
582,
5382,
27,
246,
10,
187,
94,
187,
187,
16712,
1511,
8078,
551,
187,
50276,
37195,
2548,
9,
1590,
27,
4605,
13,
6333,
27,
27357,
9,
2776,
582,
3602,
27,
5552,
9,
2548,
1228,
187,
50276,
43554,
2548,
9,
28419,
27,
5552,
9,
2548,
1228,
187,
50276,
11594,
2548,
9,
22041,
27,
5552,
9,
2548,
582,
1091,
27,
8078,
10,
187,
50276,
23807,
2548,
9,
1590,
27,
4605,
10,
187,
50276,
41,
1306,
2548,
9,
1590,
27,
4605,
10,
187,
94,
187,
187,
16712,
1511,
11759,
551,
187,
50276,
42747,
7689,
4527,
8982,
187,
50276,
42747,
11200,
9,
13763,
27,
35097,
13,
1899,
27,
26598,
10,
187,
94,
187,
187,
16712,
21486,
6333,
9,
7614,
27,
4605,
10,
5204,
22195,
9,
13570,
13,
11759,
10,
551,
187,
50276,
72,
1591,
254,
15,
1826,
9,
7614,
10,
187,
50276,
49651,
305,
1591,
254,
15,
1591,
187,
50276,
49651,
1618,
15,
10978,
9,
4174,
9,
13934,
10,
551,
2,
261,
64,
2484,
3254,
4511,
9,
13934,
15,
17,
10,
13985,
187,
50276,
49651,
1499,
321,
81,
9,
13570,
8850,
1092,
24345,
24345,
24345,
544,
6660,
24345,
795,
10,
187,
94,
187,
187,
4174,
310,
64
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"parameters",
":",
"ĠList",
"(",
"String",
"),",
"Ċ",
" ",
"vari",
"ants",
":",
"ĠList",
"(",
"Variant",
"),",
"Ċ",
" ",
")",
"Ċ",
"}",
"Ċ",
"Ċ",
"pub",
"Ġtype",
"ĠV",
"ariant",
"Ġ{",
"Ċ",
" ",
"Variant",
"(",
"name",
":",
"ĠString",
",",
"Ġfields",
":",
"ĠList",
"(",
"Field",
"(",
"Type",
")))",
"Ċ",
"}",
"Ċ",
"Ċ",
"pub",
"Ġtype",
"ĠField",
"(",
"t",
")",
"Ġ{",
"Ċ",
" ",
"Field",
"(",
"label",
":",
"ĠOption",
"(",
"String",
"),",
"Ġitem",
":",
"Ġt",
")",
"Ċ",
"}",
"Ċ",
"Ċ",
"pub",
"Ġtype",
"ĠType",
"Ġ{",
"Ċ",
" ",
"Named",
"Type",
"(",
"name",
":",
"ĠString",
",",
"Ġmodule",
":",
"ĠOption",
"(",
"String",
"),",
"Ġparameters",
":",
"ĠList",
"(",
"Type",
"))",
"Ċ",
" ",
"Tuple",
"Type",
"(",
"elements",
":",
"ĠList",
"(",
"Type",
"))",
"Ċ",
" ",
"Function",
"Type",
"(",
"parameters",
":",
"ĠList",
"(",
"Type",
"),",
"Ġreturn",
":",
"ĠType",
")",
"Ċ",
" ",
"Variable",
"Type",
"(",
"name",
":",
"ĠString",
")",
"Ċ",
" ",
"H",
"ole",
"Type",
"(",
"name",
":",
"ĠString",
")",
"Ċ",
"}",
"Ċ",
"Ċ",
"pub",
"Ġtype",
"ĠError",
"Ġ{",
"Ċ",
" ",
"Unexpected",
"End",
"Of",
"Input",
"Ċ",
" ",
"Unexpected",
"Token",
"(",
"token",
":",
"ĠToken",
",",
"Ġposition",
":",
"ĠPosition",
")",
"Ċ",
"}",
"Ċ",
"Ċ",
"pub",
"Ġfn",
"Ġmodule",
"(",
"src",
":",
"ĠString",
")",
"Ġ->",
"ĠResult",
"(",
"Module",
",",
"ĠError",
")",
"Ġ{",
"Ċ",
" ",
"g",
"lex",
"er",
".",
"new",
"(",
"src",
")",
"Ċ",
" ",
"|>",
"Ġg",
"lex",
"er",
".",
"lex",
"Ċ",
" ",
"|>",
"Ġlist",
".",
"filter",
"(",
"fn",
"(",
"pair",
")",
"Ġ{",
"!",
"is",
"_",
"wh",
"ites",
"pace",
"(",
"pair",
".",
"0",
")",
"Ġ})",
"Ċ",
" ",
"|>",
"Ġsl",
"ur",
"p",
"(",
"Module",
"([",
"],",
"Ġ[],",
"Ġ[],",
"Ġ[],",
"Ġ[",
"]),",
"Ġ[],",
"Ġ_",
")",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġis",
"_"
] |
https://pile.dataportraits.org/#JTIwJTIwdG9rZW5zKSklMEElMjAlMjAlN0QlMEElN0QlMEElMEFmbiUyMGNhc2VfY2xhdXNlcyglMEElMjAlMjBjbGF1c2VzJTNBJTIwTGlzdChDbGF1c2UpJTJDJTBBJTIwJTIwdG9rZW5zJTNBJTIwVG9rZW5zJTJDJTBBKSUyMC0lM0UlMjBSZXN1bHQoJTIzKExpc3QoQ2xhdXNlKSUyQyUyMFRva2VucyklMkMlMjBFcnJvciklMjAlN0IlMEElMjAlMjB1c2UlMjAlMjMoY2xhdXNlJTJDJTIwdG9rZW5zKSUyMCUzQy0lMjByZXN1bHQudHJ5KGNhc2VfY2xhdXNlKHRva2VucykpJTBBJTIwJTIwbGV0JTIwY2xhdXNlcyUyMCUzRCUyMCU1QmNsYXVzZSUyQy4uY2xhdXNlcyU1RCUwQSUyMCUyMGNhc2UlMjB0b2tlbnMlMjAlN0IlMEElMjAlMjAlMjAlMjAlNUIlMjModC5SaWdodEJyYWNlJTJDJTIwXyklMkMuLnRva2VucyU1RCUyMC0lM0UlMjBPayglMjMobGlzdC5yZXZlcnNlKGNsYXV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GNhc2UlMjB0b2tlbnMlMjAlN0IlMEElMjAlMjAlMjAlMjAlNUIlMjModG9rZW4lMkMlMjBfKSUyQy4udG9rZW5zJTVEJTIwaWYlMjB0b2tlbiUyMCUzRCUzRCUyMGRlbGltZXRlciUyMC0lM0UlMEElMjAlMjAlMjAlMjAlMjAlMjBkZWxpbWl0ZWQoYWNjJTJDJTIwdG9rZW5zJTJDJTIwcGFyc2VyJTJDJTIwZGVsaW1ldGVyKSUwQSUyMCUyMCUyMCUyMF8lMjAtJTNFJTIwT2soJTIzKGxpc3QucmV2ZXJzZShhY2MpJTJDJTIwdG9rZW5zKSklMEElMjAlMjAlN0Q= | tokens))
}
}
fn case_clauses(
clauses: List(Clause),
tokens: Tokens,
) -> Result(#(List(Clause), Tokens), Error) {
use #(clause, tokens) <- result.try(case_clause(tokens))
let clauses = [clause,..clauses]
case tokens {
[#(t.RightBrace, _),..tokens] -> Ok(#(list.reverse(clauses), tokens))
_ -> case_clauses(clauses, tokens)
}
}
fn case_clause(tokens: Tokens) -> Result(#(Clause, Tokens), Error) {
let multipatterns = delimited([], _, pattern, t.Comma)
let result = delimited([], tokens, multipatterns, t.VBar)
use #(patterns, tokens) <- result.try(result)
use #(guard, tokens) <- result.try(optional_clause_guard(tokens))
use _, tokens <- expect(t.RightArrow, tokens)
use #(expression, tokens) <- result.map(expression(tokens))
#(Clause(patterns, guard, expression), tokens)
}
fn optional_clause_guard(
tokens: Tokens,
) -> Result(#(Option(Expression), Tokens), Error) {
case tokens {
[#(t.If, _),..tokens] -> {
use #(expression, tokens) <- result.try(expression(tokens))
Ok(#(Some(expression), tokens))
}
_ -> Ok(#(None, tokens))
}
}
fn delimited(
acc: List(t),
tokens: Tokens,
parser: fn(Tokens) -> Result(#(t, Tokens), Error),
delimeter: Token,
) -> Result(#(List(t), Tokens), Error) {
use #(t, tokens) <- result.try(parser(tokens))
let acc = [t,..acc]
case tokens {
[#(token, _),..tokens] if token == delimeter ->
delimited(acc, tokens, parser, delimeter)
_ -> Ok(#(list.reverse(acc), tokens))
} | 6.302113 | [
45499,
1228,
187,
50276,
94,
187,
94,
187,
187,
4174,
1083,
64,
498,
19726,
9,
187,
50276,
498,
19726,
27,
5552,
9,
2019,
766,
582,
187,
50276,
45499,
27,
14391,
561,
13,
187,
10,
5204,
22195,
45818,
9,
2765,
9,
2019,
766,
582,
14391,
561,
582,
11759,
10,
551,
187,
50276,
2327,
1852,
9,
498,
766,
13,
21761,
10,
12630,
906,
15,
14626,
9,
5045,
64,
498,
766,
9,
45499,
1228,
187,
50276,
1059,
34510,
426,
544,
498,
766,
13,
537,
498,
19726,
62,
187,
50276,
5045,
21761,
551,
187,
50274,
60,
4,
9,
85,
15,
8455,
8478,
584,
13,
795,
582,
537,
45499,
62,
5204,
19023,
45818,
9,
3550,
15,
32514,
9,
498,
19726,
582,
21761,
1228,
187,
50274,
64,
5204,
1083,
64,
498,
19726,
9,
498,
19726,
13,
21761,
10,
187,
50276,
94,
187,
94,
187,
187,
4174,
1083,
64,
498,
766,
9,
45499,
27,
14391,
561,
10,
5204,
22195,
45818,
9,
2019,
766,
13,
14391,
561,
582,
11759,
10,
551,
187,
50276,
1059,
10796,
255,
931,
84,
426,
38352,
959,
8850,
1092,
13830,
3102,
13,
246,
15,
2115,
785,
10,
187,
50276,
1059,
906,
426,
38352,
959,
8850,
1092,
21761,
13,
10796,
255,
931,
84,
13,
246,
15,
55,
7912,
10,
187,
50276,
2327,
1852,
9,
17523,
84,
13,
21761,
10,
12630,
906,
15,
14626,
9,
6870,
10,
187,
50276,
2327,
1852,
9,
18625,
13,
21761,
10,
12630,
906,
15,
14626,
9,
21676,
64,
498,
766,
64,
18625,
9,
45499,
1228,
187,
50276,
2327,
13830,
21761,
12630,
1902,
9,
85,
15,
8455,
2906
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"tokens",
"))",
"Ċ",
" ",
"}",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġcase",
"_",
"cl",
"auses",
"(",
"Ċ",
" ",
"cl",
"auses",
":",
"ĠList",
"(",
"Cl",
"ause",
"),",
"Ċ",
" ",
"tokens",
":",
"ĠTok",
"ens",
",",
"Ċ",
")",
"Ġ->",
"ĠResult",
"(#",
"(",
"List",
"(",
"Cl",
"ause",
"),",
"ĠTok",
"ens",
"),",
"ĠError",
")",
"Ġ{",
"Ċ",
" ",
"use",
"Ġ#",
"(",
"cl",
"ause",
",",
"Ġtokens",
")",
"Ġ<-",
"Ġresult",
".",
"try",
"(",
"case",
"_",
"cl",
"ause",
"(",
"tokens",
"))",
"Ċ",
" ",
"let",
"Ġclauses",
"Ġ=",
"Ġ[",
"cl",
"ause",
",",
"..",
"cl",
"auses",
"]",
"Ċ",
" ",
"case",
"Ġtokens",
"Ġ{",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Right",
"Br",
"ace",
",",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"ĠOk",
"(#",
"(",
"list",
".",
"reverse",
"(",
"cl",
"auses",
"),",
"Ġtokens",
"))",
"Ċ",
" ",
"_",
"Ġ->",
"Ġcase",
"_",
"cl",
"auses",
"(",
"cl",
"auses",
",",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġcase",
"_",
"cl",
"ause",
"(",
"tokens",
":",
"ĠTok",
"ens",
")",
"Ġ->",
"ĠResult",
"(#",
"(",
"Cl",
"ause",
",",
"ĠTok",
"ens",
"),",
"ĠError",
")",
"Ġ{",
"Ċ",
" ",
"let",
"Ġmultip",
"at",
"tern",
"s",
"Ġ=",
"Ġdelim",
"ited",
"([",
"],",
"Ġ_,",
"Ġpattern",
",",
"Ġt",
".",
"Com",
"ma",
")",
"Ċ",
" ",
"let",
"Ġresult",
"Ġ=",
"Ġdelim",
"ited",
"([",
"],",
"Ġtokens",
",",
"Ġmultip",
"at",
"tern",
"s",
",",
"Ġt",
".",
"V",
"Bar",
")",
"Ċ",
" ",
"use",
"Ġ#",
"(",
"pattern",
"s",
",",
"Ġtokens",
")",
"Ġ<-",
"Ġresult",
".",
"try",
"(",
"result",
")",
"Ċ",
" ",
"use",
"Ġ#",
"(",
"guard",
",",
"Ġtokens",
")",
"Ġ<-",
"Ġresult",
".",
"try",
"(",
"optional",
"_",
"cl",
"ause",
"_",
"guard",
"(",
"tokens",
"))",
"Ċ",
" ",
"use",
"Ġ_,",
"Ġtokens",
"Ġ<-",
"Ġexpect",
"(",
"t",
".",
"Right",
"Ar"
] |
https://pile.dataportraits.org/#JT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TIwc2VyaW91cyUyMHByb2JsZW0lMjIuJTIwVGhlJTIwV2FzaGluZ3RvbiUyMFBvc3QuJTIwQXJjaGl2ZWQlMjBmcm9tJTIwdGhlJTIwb3JpZ2luYWwlMjBvbiUyMEZlYnJ1YXJ5JTIwMjglMkMlMjAyMDI0LiUyMFJldHJpZXZlZCUyME1heSUyMDIxJTJDJTIwMjAyNC4lMjAlNUUlMjAlMjJHb29nbGUncyUyMEFydGlmaWNpYWwlMjBJbnRlbGxpZ2VuY2UlMjIuJTIwVGhlJTIwV2FsbCUyMFN0cmVldCUyMEpvdXJuYWwuJTIwRmVicnVhcnklMjAyOSUyQyUyMDIwMjQuJTIwQXJjaGl2ZWQlMjBmcm9tJTIwdGhlJTIwb3JpZ2luYWwlMjBvbiUyME1hcmNoJTIwMSUyQyUyMDIwMjQuJTIwUmV0cmlldmVkJTIwTWF5JTIwMjElMkMlMjAyMDI0LiUwQQ== | Jordan Vows To Get To The Bottom Of 'Woke' Google AI That Brought The World 'Black George Washington'". Mediaite. Archived from the original on March 23, 2024. Retrieved May 21, 2024. ^ Langley, Hugh; O'Reilly, Lara (February 29, 2024). "How Google lost its way". Business Insider. Archived from the original on February 29, 2024. Retrieved March 3, 2024. ^ Olson, Parmy (February 28, 2024). "Google's AI Isn't Too Woke. It's Too Rushed". Bloomberg News. Archived from the original on March 3, 2024. Retrieved March 3, 2024. ^ Peers, martin (March 1, 2024). "Alphabet Needs Its Own Mark Zuckerberg". The Information. Archived from the original on March 2, 2024. Retrieved March 3, 2024. ^ Kleinman, Zoe (February 29, 2024). "Why Google's 'woke' AI problem won't be an easy fix". BBC News. Archived from the original on February 28, 2024. Retrieved March 3, 2024. ^ Kahn, Jeremy (February 27, 2024). "What Google's 'woke' AI image controversy says about AI—and about Google". Fortune. Archived from the original on February 27, 2024. Retrieved March 3, 2024. ^ Herrman, John (March 1, 2024). "ChatGPT and Google Gemini Are Both Doomed". Intelligencer. New York. Archived from the original on March 1, 2024. ^ Titcomb, James (February 26, 2024). "Elon Musk equated with Hitler in latest Google AI gaffe". The Daily Telegraph. ISSN 0307-1235. Archived from the original on February 26, 2024. Retrieved February 28, 2024. ^ "Is Google's Gemini chatbot woke by accident, or by design?". The Economist. February 28, 2024. Archived from the original on May 16, 2024. Retrieved May 21, 2024. ^ McArdle, Megan (February 27, 2024). "Female popes? Google's amusing AI bias underscores a serious problem". The Washington Post. Archived from the original on February 28, 2024. Retrieved May 21, 2024. ^ "Google's Artificial Intelligence". The Wall Street Journal. February 29, 2024. Archived from the original on March 1, 2024. Retrieved May 21, 2024. | 6.302233 | [
44100,
657,
5811,
1916,
5057,
1916,
380,
36035,
4683,
686,
56,
3136,
8,
5559,
14980,
2064,
2652,
1224,
380,
3645,
686,
15383,
6086,
5041,
8,
3446,
11263,
614,
15,
7984,
1567,
432,
253,
3236,
327,
3919,
3495,
13,
1384,
1348,
15,
6724,
35571,
2552,
3127,
13,
1384,
1348,
15,
5042,
418,
2134,
90,
13,
29835,
28,
473,
8,
1785,
9352,
13,
418,
4595,
313,
24099,
3285,
13,
1384,
1348,
481,
346,
2347,
5559,
3663,
697,
1039,
3446,
10518,
6995,
1334,
15,
7984,
1567,
432,
253,
3236,
327,
5080,
3285,
13,
1384,
1348,
15,
6724,
35571,
3919,
495,
13,
1384,
1348,
15,
5042,
49849,
13,
42336,
90,
313,
24099,
3349,
13,
1384,
1348,
481,
346,
17664,
434,
14980,
36026,
626,
21994,
411,
3136,
15,
733,
434,
21994,
416,
6093,
3446,
32952,
6317,
15,
7984,
1567,
432,
253,
3236,
327,
3919,
495,
13,
1384,
1348,
15,
6724,
35571,
3919,
495,
13,
1384,
1348,
15,
5042,
3586,
398,
13,
16172,
249,
313,
18489,
337,
13,
1384,
1348,
481,
346,
2422,
24656,
3532,
5797,
7850,
20659,
4744,
1503,
18141,
4978,
3446,
380,
8339,
15,
7984,
1567,
432,
253,
3236,
327,
3919,
374,
13,
1384,
1348,
15,
6724,
35571,
3919,
495,
13,
1384,
1348,
15,
5042,
28186,
1342,
13,
1503,
3703,
313,
24099,
3285,
13,
1384,
1348,
481,
346,
4967,
5559,
434,
686,
47211,
8,
14980,
1895,
1912,
626,
320,
271,
3477,
4993,
3446,
15501,
6317,
15,
7984,
1567,
432,
253,
3236,
327,
5080,
3349,
13,
1384,
1348,
15,
6724,
35571,
3919,
495,
13,
1384,
1348,
15,
5042,
611,
18272,
13
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"Jordan",
"ĠV",
"ows",
"ĠTo",
"ĠGet",
"ĠTo",
"ĠThe",
"ĠBottom",
"ĠOf",
"Ġ'",
"W",
"oke",
"'",
"ĠGoogle",
"ĠAI",
"ĠThat",
"ĠBr",
"ought",
"ĠThe",
"ĠWorld",
"Ġ'",
"Black",
"ĠGeorge",
"ĠWashington",
"'",
"\".",
"ĠMedia",
"ite",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠMarch",
"Ġ23",
",",
"Ġ20",
"24",
".",
"ĠRet",
"rieved",
"ĠMay",
"Ġ21",
",",
"Ġ20",
"24",
".",
"Ġ^",
"ĠL",
"angle",
"y",
",",
"ĠHugh",
";",
"ĠO",
"'",
"Re",
"illy",
",",
"ĠL",
"ara",
"Ġ(",
"February",
"Ġ29",
",",
"Ġ20",
"24",
").",
"Ġ\"",
"How",
"ĠGoogle",
"Ġlost",
"Ġits",
"Ġway",
"\".",
"ĠBusiness",
"ĠIns",
"ider",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠFebruary",
"Ġ29",
",",
"Ġ20",
"24",
".",
"ĠRet",
"rieved",
"ĠMarch",
"Ġ3",
",",
"Ġ20",
"24",
".",
"Ġ^",
"ĠOlson",
",",
"ĠParm",
"y",
"Ġ(",
"February",
"Ġ28",
",",
"Ġ20",
"24",
").",
"Ġ\"",
"Google",
"'s",
"ĠAI",
"ĠIsn",
"'t",
"ĠToo",
"ĠW",
"oke",
".",
"ĠIt",
"'s",
"ĠToo",
"ĠR",
"ushed",
"\".",
"ĠBloomberg",
"ĠNews",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠMarch",
"Ġ3",
",",
"Ġ20",
"24",
".",
"ĠRet",
"rieved",
"ĠMarch",
"Ġ3",
",",
"Ġ20",
"24",
".",
"Ġ^",
"ĠPe",
"ers",
",",
"Ġmart",
"in",
"Ġ(",
"March",
"Ġ1",
",",
"Ġ20",
"24",
").",
"Ġ\"",
"Al",
"phabet",
"ĠNe",
"eds",
"ĠIts",
"ĠOwn",
"ĠMark",
"ĠZ",
"ucker",
"berg",
"\".",
"ĠThe",
"ĠInformation",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠMarch",
"Ġ2",
",",
"Ġ20",
"24",
".",
"ĠRet",
"rieved",
"ĠMarch",
"Ġ3",
",",
"Ġ20",
"24",
".",
"Ġ^",
"ĠKlein",
"man",
",",
"ĠZ",
"oe",
"Ġ(",
"February",
"Ġ29",
",",
"Ġ20",
"24",
").",
"Ġ\"",
"Why",
"ĠGoogle",
"'s",
"Ġ'",
"woke",
"'",
"ĠAI",
"Ġproblem",
"Ġwon",
"'t",
"Ġbe",
"Ġan",
"Ġeasy",
"Ġfix",
"\".",
"ĠBBC",
"ĠNews",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠFebruary",
"Ġ28",
",",
"Ġ20",
"24",
".",
"ĠRet",
"rieved",
"ĠMarch",
"Ġ3",
",",
"Ġ20",
"24",
".",
"Ġ^",
"ĠK",
"ahn",
","
] |
https://pile.dataportraits.org/#JTIwJTIwb3B0aW9uYWxfbW9kdWxlX2FsaWFzKHRva2VucyklMEElMjAlMjBsZXQlMjBpbXBvcnRfJTIwJTNEJTIwSW1wb3J0KG1vZHVsZV9uYW1lJTJDJTIwYWxpYXMlMkMlMjB0cyUyQyUyMHZzKSUwQSUyMCUyMGxldCUyMGRlZmluaXRpb24lMjAlM0QlMjBEZWZpbml0aW9uKGxpc3QucmV2ZXJzZShhdHRyaWJ1dGVzKSUyQyUyMGltcG9ydF8pJTBBJTIwJTIwbGV0JTIwbW9kdWxlJTIwJTNEJTIwTW9kdWxlKC4ubW9kdWxlJTJDJTIwaW1wb3J0cyUzQSUyMCU1QmRlZmluaXRpb24lMkMuLm1vZHVsZS5pbXBvcnRzJTVEKSUwQSUyMCUyME9rKCUyMyhtb2R1bGUlMkMlMjB0b2tlbnM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G90JTJDJTIwXyklMkMlMjAlMjModC5MZWZ0QnJhY2UlMkMlMjBfKSUyQy4udG9rZW5zJTVEJTIwLSUzRSUwQSUyMCUyMCUyMCUyMCUyMCUyMHVucXVhbGlmaWVkX2ltcG9ydHMoJTVCJTVEJTJDJTIwJTVCJTVEJTJDJTIwdG9rZW5zKSUwQSUyMCUyMCUyMCUyMF8lMjAtJTNFJTIwT2soJTIzKCU1QiU1RCUyQyUyMCU1QiU1RCUyQyUyMHRva2VucykpJTBBJTIwJTIwJTdEJTBBJTdEJTBBJTBBZm4lMjB1bnF1YWxpZmllZF9pbXBvcnRzKCUwQSUyMCUyMHR5cGVzJTNBJTIwTGlzdChVbnF1YWxpZmllZEltcG9ydCklMkMlMEElMjAlMjB2YWx1ZXMlM0ElMjBMaXN0KFVucXVhbGlmaWVkSW1wb3J0KSUyQyUwQSUyMCUyMHRva2VucyUzQSUyMFRva2VucyUyQyUwQSklMjAtJTNFJTIwUmVzdWx0KCUyMyhMaXN0KFVucXVhbGlmaWVkSW1wb3J0KSUyQyUyMExpc3QoVW5xdWFsaWZpZWRJbXBvcnQpJTJDJTIwVG9rZW5zKSUyQyUyMEVycm9yKSUyMCU3QiUwQSUyMCUyMGNhc2UlMjB0b2tlbnMlMjAlN0IlMEElMjAlMjAlMjAlMjAlNUIlNUQlMjAtJTNFJTIwRXJyb3IoVW5leHBlY3RlZEVuZE9mSW5wdXQ= | optional_module_alias(tokens)
let import_ = Import(module_name, alias, ts, vs)
let definition = Definition(list.reverse(attributes), import_)
let module = Module(..module, imports: [definition,..module.imports])
Ok(#(module, tokens))
}
fn module_name(name: String, tokens: Tokens) -> Result(#(String, Tokens), Error) {
case tokens {
[#(t.Slash, _), #(t.Name(s), _),..tokens] if name!= "" -> {
module_name(name <> "/" <> s, tokens)
}
[#(t.Name(s), _),..tokens] if name == "" -> {
module_name(s, tokens)
}
[] if name == "" -> Error(UnexpectedEndOfInput)
[#(other, position),..] if name == "" ->
Error(UnexpectedToken(other, position))
_ -> Ok(#(name, tokens))
}
}
fn optional_module_alias(tokens: Tokens) -> #(Option(AssignmentName), Tokens) {
case tokens {
[#(t.As, _), #(t.Name(alias), _),..tokens] -> #(Some(Named(alias)), tokens)
[#(t.As, _), #(t.DiscardName(alias), _),..tokens] -> #(
Some(Discarded(alias)),
tokens,
)
_ -> #(None, tokens)
}
}
fn optional_unqualified_imports(
tokens: Tokens,
) -> Result(#(List(UnqualifiedImport), List(UnqualifiedImport), Tokens), Error) {
case tokens {
[#(t.Dot, _), #(t.LeftBrace, _),..tokens] ->
unqualified_imports([], [], tokens)
_ -> Ok(#([], [], tokens))
}
}
fn unqualified_imports(
types: List(UnqualifiedImport),
values: List(UnqualifiedImport),
tokens: Tokens,
) -> Result(#(List(UnqualifiedImport), List(UnqualifiedImport), Tokens), Error) {
case tokens {
[] -> Error(UnexpectedEndOfInput | 6.479455 | [
21676,
64,
8640,
64,
29913,
9,
45499,
10,
187,
50276,
1059,
1395,
64,
426,
16912,
9,
8640,
64,
1590,
13,
28129,
13,
28669,
13,
4632,
10,
187,
50276,
1059,
5426,
426,
23709,
9,
3550,
15,
32514,
9,
26059,
582,
1395,
27307,
187,
50276,
1059,
6333,
426,
30073,
9,
537,
8640,
13,
27226,
27,
544,
28692,
13,
537,
8640,
15,
2948,
84,
3291,
187,
50276,
20127,
45818,
9,
8640,
13,
21761,
1228,
187,
94,
187,
187,
4174,
6333,
64,
1590,
9,
1590,
27,
4605,
13,
21761,
27,
14391,
561,
10,
5204,
22195,
45818,
9,
2776,
13,
14391,
561,
582,
11759,
10,
551,
187,
50276,
5045,
21761,
551,
187,
50274,
60,
4,
9,
85,
15,
10612,
1225,
13,
795,
582,
1852,
9,
85,
15,
2402,
9,
84,
582,
795,
582,
537,
45499,
62,
604,
1416,
35495,
4890,
5204,
551,
187,
50272,
8640,
64,
1590,
9,
1590,
38363,
13357,
3,
38363,
256,
13,
21761,
10,
187,
50274,
94,
187,
50274,
60,
4,
9,
85,
15,
2402,
9,
84,
582,
795,
582,
537,
45499,
62,
604,
1416,
2295,
4890,
5204,
551,
187,
50272,
8640,
64,
1590,
9,
84,
13,
21761,
10,
187,
50274,
94,
535,
50274,
5456,
604,
1416,
2295,
4890,
5204,
11759,
9,
42747,
7689,
4527,
8982,
10,
187,
50274,
60,
4,
9,
977,
13,
1899,
582,
537,
62,
604,
1416,
2295,
4890,
5204,
187,
50272,
4756,
9,
42747,
11200,
9,
977,
13,
1899,
1228,
535,
50274,
64,
5204,
19023,
45818,
9,
1590,
13,
21761,
1228,
187,
50276,
94,
187,
94,
187,
187,
4174,
15266,
64,
8640,
64,
29913
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"optional",
"_",
"module",
"_",
"alias",
"(",
"tokens",
")",
"Ċ",
" ",
"let",
"Ġimport",
"_",
"Ġ=",
"ĠImport",
"(",
"module",
"_",
"name",
",",
"Ġalias",
",",
"Ġts",
",",
"Ġvs",
")",
"Ċ",
" ",
"let",
"Ġdefinition",
"Ġ=",
"ĠDefinition",
"(",
"list",
".",
"reverse",
"(",
"attributes",
"),",
"Ġimport",
"_)",
"Ċ",
" ",
"let",
"Ġmodule",
"Ġ=",
"ĠModule",
"(",
"..",
"module",
",",
"Ġimports",
":",
"Ġ[",
"definition",
",",
"..",
"module",
".",
"import",
"s",
"])",
"Ċ",
" ",
"Ok",
"(#",
"(",
"module",
",",
"Ġtokens",
"))",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġmodule",
"_",
"name",
"(",
"name",
":",
"ĠString",
",",
"Ġtokens",
":",
"ĠTok",
"ens",
")",
"Ġ->",
"ĠResult",
"(#",
"(",
"String",
",",
"ĠTok",
"ens",
"),",
"ĠError",
")",
"Ġ{",
"Ċ",
" ",
"case",
"Ġtokens",
"Ġ{",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Sl",
"ash",
",",
"Ġ_",
"),",
"Ġ#",
"(",
"t",
".",
"Name",
"(",
"s",
"),",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġif",
"Ġname",
"!=",
"Ġ\"\"",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"module",
"_",
"name",
"(",
"name",
"Ġ<>",
"Ġ\"/",
"\"",
"Ġ<>",
"Ġs",
",",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"Name",
"(",
"s",
"),",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġif",
"Ġname",
"Ġ==",
"Ġ\"\"",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"module",
"_",
"name",
"(",
"s",
",",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"ĊĊ",
" ",
"[]",
"Ġif",
"Ġname",
"Ġ==",
"Ġ\"\"",
"Ġ->",
"ĠError",
"(",
"Unexpected",
"End",
"Of",
"Input",
")",
"Ċ",
" ",
"[",
"#",
"(",
"other",
",",
"Ġposition",
"),",
"..",
"]",
"Ġif",
"Ġname",
"Ġ==",
"Ġ\"\"",
"Ġ->",
"Ċ",
" ",
"Error",
"(",
"Unexpected",
"Token",
"(",
"other",
",",
"Ġposition",
"))",
"ĊĊ",
" ",
"_",
"Ġ->",
"ĠOk",
"(#",
"(",
"name",
",",
"Ġtokens",
"))",
"Ċ",
" ",
"}",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġoptional",
"_",
"module",
"_",
"alias"
] |
https://pile.dataportraits.org/#JTIwJTIwJTdDJTNFJTIwc3VidHJpZShhdCUzQSUyMCU1QjElMkMlMjAyJTVEKSUwQSUyRiUyRiUyRiUyMCUzRSUyMCU3QyUzRSUyMHRvX2xpc3QlMEElMkYlMkYlMkYlMjAlNUIlMjMoJTVCMSUyQyUyMDIlMkMlMjAzJTVEJTJDJTIwJTIyYSUyMiklMkMlMjAlMjMoJTVCMSUyQyUyMDIlMkMlMjA0JTJDJTIwNSU1RCUyQyUyMCUyMmIlMjIpJTVEJTBBJTJGJTJGJTJGJTIwJTYwJTYwJTYwJTBBJTJGJTJGJTJGJTBBcHViJTIwZm4lMjBzdWJ0cmllKHRyaWUlM0ElMjBUcmllKGslMkMlMjB2KSUyQyUyMGF0JTIwcHJlZml4JTNBJTIwTGlzdChrKSklMjAtJTNFJTIwUmVzdWx0KFRyaWUoayUyQyUyMHYpJTJDJTIwTmlsKSUyMCU3QiUwQSUyMCUyMGNhc2UlMjBwcmVmaXglMkMlMjB0cmllJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTVCJTVEJTJDJTIwXyUyMC0lM0UlMjBPayh0cmllKSUwQSU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wdGhlJTIwcGF0aCUyMGlzJTIwZGVsZXRlZCUyMGZyb20lMjB0aGUlMjB0cmllLiUwQSUyRiUyRiUyRiUyMElmJTIwdGhlJTIwZnVuY3Rpb24lMjByZXR1cm5zJTIwJTYwU29tZSh2YWx1ZSklNjAlMjB0aGVuJTIwdGhlJTIwbmV3JTIwdmFsdWUlMjBpcyUyMGFzc29jaWF0ZWQlMjB0byUyMHRoZSUyMGdpdmVuJTIwcGF0aC4lMEElMkYlMkYlMkYlMEElMkYlMkYlMkYlMjAlMjMlMjMlMjBFeGFtcGxlcyUwQSUyRiUyRiUyRiUwQSUyRiUyRiUyRiUyMCU2MCU2MCU2MGdsZWFtJTBBJTJGJTJGJTJGJTIwJTNFJTIwc2luZ2xldG9uKCU1QjElMkMlMjAyJTVEJTJDJTIwJTIyYSUyMiklMEElMkYlMkYlMkYlMjAlM0UlMjAlN0MlM0UlMjB1cGRhdGUoYXQlM0ElMjAlNUIxJTJDJTIwMiU1RCUyQyUyMHdpdGglM0ElMjBmbihuKSUyMCU3QiUyMG4lMjAlN0MlM0UlMjBvcHRpb24ubWFwKGZuKF8pJTIwJTdCJTIwJTIyYiUyMiUyMCU3RCklMjAlN0QpJTBBJTJGJTJGJTJGJTIwJTNFJTIwJTdDJTNFJTIwdG9fbGlzdCUwQSUyRiUyRiUyRiUyMCU1QiUyMyglNUIxJTJDJTIwMiU1RCUyQyUyMCUyMmIlMjIpJTVEJTBBJTJGJTJGJTJGJTIwJTYwJTYwJTYwJTBBJTJGJTJGJTJGJTBBJTJGJTJGJTJGJTIwJTYwJTYwJTYwZ2xlYW0lMEElMkYlMkYlMkYlMjAlM0UlMjBzaW5nbGV0b24oJTVCMSUyQw== | |> subtrie(at: [1, 2])
/// > |> to_list
/// [#([1, 2, 3], "a"), #([1, 2, 4, 5], "b")]
/// ```
///
pub fn subtrie(trie: Trie(k, v), at prefix: List(k)) -> Result(Trie(k, v), Nil) {
case prefix, trie {
[], _ -> Ok(trie)
[first,..rest], Trie(_, children_map) ->
children_map
|> dict.get(first)
|> result.try(subtrie(_, rest))
|> result.map(fn(subtrie) {
dict.new()
|> dict.insert(first, subtrie)
|> Trie(None, _)
})
}
}
/// Turns a trie into a list of path-value pairs.
///
/// ## Examples
///
/// ```gleam
/// > singleton([1, 2], "a")
/// > |> to_list
/// [#([1, 2], "a")]
/// ```
///
/// ```gleam
/// > new()
/// > |> to_list
/// []
/// ```
///
pub fn to_list(trie: Trie(k, v)) -> List(#(List(k), v)) {
fold(over: trie, from: [], with: fn(rest, path, value) {
[#(path, value),..rest]
})
}
/// Updates the value associated with a path applying it the given function.
/// If there is no value associated with the given path the function is passed `None`.
///
/// If the function returns `None` any value associated with the path is deleted from the trie.
/// If the function returns `Some(value)` then the new value is associated to the given path.
///
/// ## Examples
///
/// ```gleam
/// > singleton([1, 2], "a")
/// > |> update(at: [1, 2], with: fn(n) { n |> option.map(fn(_) { "b" }) })
/// > |> to_list
/// [#([1, 2], "b")]
/// ```
///
/// ```gleam
/// > singleton([1, | 7.399664 | [
49651,
8482,
6595,
9,
255,
27,
544,
18,
13,
374,
3291,
187,
10638,
2239,
1040,
31,
281,
64,
3550,
187,
10638,
49193,
8850,
18,
13,
374,
13,
495,
1092,
346,
66,
8375,
1852,
8850,
18,
13,
374,
13,
577,
13,
608,
1092,
346,
67,
28532,
187,
10638,
2634,
5190,
187,
10638,
187,
16712,
21486,
8482,
6595,
9,
85,
6595,
27,
308,
6595,
9,
76,
13,
362,
582,
387,
17744,
27,
5552,
9,
76,
1228,
5204,
22195,
9,
53,
6595,
9,
76,
13,
362,
582,
45828,
10,
551,
187,
50276,
5045,
17744,
13,
1195,
70,
551,
187,
50274,
60,
1092,
795,
5204,
19023,
9,
85,
6595,
10,
187,
50274,
60,
7053,
13,
537,
1120,
1092,
308,
6595,
9,
7481,
2151,
64,
4251,
10,
5204,
187,
50272,
13863,
64,
4251,
187,
50272,
49651,
10886,
15,
788,
9,
7053,
10,
187,
50272,
49651,
906,
15,
14626,
9,
2377,
85,
6595,
9,
7481,
1551,
1228,
187,
50272,
49651,
906,
15,
4251,
9,
4174,
9,
2377,
85,
6595,
10,
551,
187,
50270,
8102,
15,
1826,
1082,
187,
50270,
49651,
10886,
15,
14447,
9,
7053,
13,
8482,
6595,
10,
187,
50270,
49651,
308,
6595,
9,
11336,
13,
795,
10,
187,
50272,
2311,
187,
50276,
94,
187,
94,
187,
187,
10638,
308,
10029,
247,
1195,
70,
715,
247,
1618,
273,
1854,
14,
2877,
8557,
15,
187,
10638,
187,
10638,
20263,
20599,
187,
10638,
187,
10638,
2634,
5190,
10582,
312,
187,
10638,
2239,
47736,
8850,
18,
13,
374,
1092,
346,
66,
2807,
187,
10638,
2239,
1040,
31,
281,
64,
3550,
187,
10638,
49193,
8850
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"|>",
"Ġsubt",
"rie",
"(",
"at",
":",
"Ġ[",
"1",
",",
"Ġ2",
"])",
"Ċ",
"///",
"Ġ>",
"Ġ|",
">",
"Ġto",
"_",
"list",
"Ċ",
"///",
"Ġ[#",
"([",
"1",
",",
"Ġ2",
",",
"Ġ3",
"],",
"Ġ\"",
"a",
"\"),",
"Ġ#",
"([",
"1",
",",
"Ġ2",
",",
"Ġ4",
",",
"Ġ5",
"],",
"Ġ\"",
"b",
"\")]",
"Ċ",
"///",
"Ġ`",
"``",
"Ċ",
"///",
"Ċ",
"pub",
"Ġfn",
"Ġsubt",
"rie",
"(",
"t",
"rie",
":",
"ĠT",
"rie",
"(",
"k",
",",
"Ġv",
"),",
"Ġat",
"Ġprefix",
":",
"ĠList",
"(",
"k",
"))",
"Ġ->",
"ĠResult",
"(",
"T",
"rie",
"(",
"k",
",",
"Ġv",
"),",
"ĠNil",
")",
"Ġ{",
"Ċ",
" ",
"case",
"Ġprefix",
",",
"Ġtri",
"e",
"Ġ{",
"Ċ",
" ",
"[",
"],",
"Ġ_",
"Ġ->",
"ĠOk",
"(",
"t",
"rie",
")",
"Ċ",
" ",
"[",
"first",
",",
"..",
"rest",
"],",
"ĠT",
"rie",
"(",
"_,",
"Ġchildren",
"_",
"map",
")",
"Ġ->",
"Ċ",
" ",
"children",
"_",
"map",
"Ċ",
" ",
"|>",
"Ġdict",
".",
"get",
"(",
"first",
")",
"Ċ",
" ",
"|>",
"Ġresult",
".",
"try",
"(",
"sub",
"t",
"rie",
"(",
"_,",
"Ġrest",
"))",
"Ċ",
" ",
"|>",
"Ġresult",
".",
"map",
"(",
"fn",
"(",
"sub",
"t",
"rie",
")",
"Ġ{",
"Ċ",
" ",
"dict",
".",
"new",
"()",
"Ċ",
" ",
"|>",
"Ġdict",
".",
"insert",
"(",
"first",
",",
"Ġsubt",
"rie",
")",
"Ċ",
" ",
"|>",
"ĠT",
"rie",
"(",
"None",
",",
"Ġ_",
")",
"Ċ",
" ",
"})",
"Ċ",
" ",
"}",
"Ċ",
"}",
"Ċ",
"Ċ",
"///",
"ĠT",
"urns",
"Ġa",
"Ġtri",
"e",
"Ġinto",
"Ġa",
"Ġlist",
"Ġof",
"Ġpath",
"-",
"value",
"Ġpairs",
".",
"Ċ",
"///",
"Ċ",
"///",
"Ġ##",
"ĠExamples",
"Ċ",
"///",
"Ċ",
"///",
"Ġ`",
"``",
"gle",
"am",
"Ċ",
"///",
"Ġ>",
"Ġsingleton",
"([",
"1",
",",
"Ġ2",
"],",
"Ġ\"",
"a",
"\")",
"Ċ",
"///",
"Ġ>",
"Ġ|",
">",
"Ġto",
"_",
"list",
"Ċ",
"///",
"Ġ[#",
"(["
] |
https://pile.dataportraits.org/#dG9rZW5zKSklMEElMjAlMjAlMjAlMjAlMjAlMjAlMjMoU29tZShCbG9jayhzdGF0ZW1lbnRzKSklMkMlMjB0b2tlbnMpJTBBJTIwJTIwJTIwJTIwJTdEJTBBJTBBJTIwJTIwJTIwJTIwJTVCJTIzKHQuTGVzc0xlc3MlMkMlMjBfKSUyQy4udG9rZW5zJTVEJTIwLSUzRSUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMGxldCUyMHBhcnNlciUyMCUzRCUyMGJpdF9zdHJpbmdfc2VnbWVudChleHByZXNzaW9uJTJDJTIwXyklMEElMjAlMjAlMjAlMjAlMjAlMjBsZXQlMjByZXN1bHQlMjAlM0QlMjBjb21tYV9kZWxpbWl0ZWQoJTVCJTVEJTJDJTIwdG9rZW5zJTJDJTIwcGFyc2VyJTJDJTIwdC5HcmVhdGVyR3JlYXRlciklMEElMjAlMjAlMjAlMjAlMjAlMjB1c2UlMjAlMjMoc2VnbWVudHMlMkMlMjB0b2tlb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J5KHJlc3VsdCklMEElMjAlMjBPayglMjMoJTIzKHZhbHVlJTJDJTIwb3B0aW9ucyklMkMlMjB0b2tlbnMpKSUwQSU3RCUwQSUwQWZuJTIwb3B0aW9uYWxfYml0X3N0cmluZ19zZWdtZW50X29wdGlvbnMoJTBBJTIwJTIwcGFyc2VyJTNBJTIwZm4oVG9rZW5zKSUyMC0lM0UlMjBSZXN1bHQoJTIzKHQlMkMlMjBUb2tlbnMpJTJDJTIwRXJyb3IpJTJDJTBBJTIwJTIwdG9rZW5zJTNBJTIwVG9rZW5zJTJDJTBBKSUyMC0lM0UlMjBSZXN1bHQoJTIzKExpc3QoQml0U3RyaW5nU2VnbWVudE9wdGlvbih0KSklMkMlMjBUb2tlbnMpJTJDJTIwRXJyb3IpJTIwJTdCJTBBJTIwJTIwY2FzZSUyMHRva2VucyUyMCU3QiUwQSUyMCUyMCUyMCUyMCU1QiUyMyh0LkNvbG9uJTJDJTIwXyklMkMuLnRva2VucyU1RCUyMC0lM0UlMjBiaXRfc3RyaW5nX3NlZ21lbnRfb3B0aW9ucyhwYXJzZXIlMkMlMjAlNUIlNUQlMkMlMjB0b2tlbnMpJTBBJTIwJTIwJTIwJTIwXyUyMC0lM0UlMjBPayglMjMoJTVCJTVEJTJDJTIwdG9rZW5z | tokens))
#(Some(Block(statements)), tokens)
}
[#(t.LessLess, _),..tokens] -> {
let parser = bit_string_segment(expression, _)
let result = comma_delimited([], tokens, parser, t.GreaterGreater)
use #(segments, tokens) <- result.map(result)
#(Some(BitString(segments)), tokens)
}
_ -> Ok(#(None, tokens))
})
case parsed {
Some(expression) -> {
case after_expression(expression, tokens) {
Ok(#(expression, tokens)) -> Ok(#(Some(expression), tokens))
Error(error) -> Error(error)
}
}
None -> Ok(#(None, tokens))
}
}
fn todo_panic(
tokens: Tokens,
constructor: fn(Option(Expression)) -> Expression,
) -> Result(#(Option(Expression), Tokens), Error) {
case tokens {
[#(t.As, _),..tokens] -> {
use #(reason, tokens) <- result.try(expression(tokens))
Ok(#(Some(constructor(Some(reason))), tokens))
}
_ -> Ok(#(Some(constructor(None)), tokens))
}
}
fn bit_string_segment(
parser: fn(Tokens) -> Result(#(t, Tokens), Error),
tokens: Tokens,
) -> Result(#(#(t, List(BitStringSegmentOption(t))), Tokens), Error) {
use #(value, tokens) <- result.try(parser(tokens))
let result = optional_bit_string_segment_options(parser, tokens)
use #(options, tokens) <- result.try(result)
Ok(#(#(value, options), tokens))
}
fn optional_bit_string_segment_options(
parser: fn(Tokens) -> Result(#(t, Tokens), Error),
tokens: Tokens,
) -> Result(#(List(BitStringSegmentOption(t)), Tokens), Error) {
case tokens {
[#(t.Colon, _),..tokens] -> bit_string_segment_options(parser, [], tokens)
_ -> Ok(#([], tokens | 7.417987 | [
45499,
1228,
187,
50272,
4,
9,
6080,
9,
11144,
9,
48639,
9679,
21761,
10,
187,
50274,
94,
535,
50274,
60,
4,
9,
85,
15,
28274,
28274,
13,
795,
582,
537,
45499,
62,
5204,
551,
187,
50272,
1059,
22109,
426,
2372,
64,
2703,
64,
29429,
9,
17759,
13,
795,
10,
187,
50272,
1059,
906,
426,
39169,
64,
21694,
959,
8850,
1092,
21761,
13,
22109,
13,
246,
15,
15611,
254,
15611,
254,
10,
187,
50272,
2327,
1852,
9,
339,
14908,
13,
21761,
10,
12630,
906,
15,
4251,
9,
6870,
10,
187,
50272,
4,
9,
6080,
9,
12871,
2776,
9,
339,
14908,
9679,
21761,
10,
187,
50274,
94,
535,
50274,
64,
5204,
19023,
45818,
9,
11336,
13,
21761,
1228,
187,
50276,
2311,
535,
50276,
5045,
36838,
551,
187,
50274,
6080,
9,
17759,
10,
5204,
551,
187,
50272,
5045,
846,
64,
17759,
9,
17759,
13,
21761,
10,
551,
187,
50270,
20127,
45818,
9,
17759,
13,
21761,
1228,
5204,
19023,
45818,
9,
6080,
9,
17759,
582,
21761,
1228,
187,
50270,
4756,
9,
3775,
10,
5204,
11759,
9,
3775,
10,
187,
50272,
94,
187,
50274,
94,
187,
50274,
11336,
5204,
19023,
45818,
9,
11336,
13,
21761,
1228,
187,
50276,
94,
187,
94,
187,
187,
4174,
20591,
64,
19239,
9,
187,
50276,
45499,
27,
14391,
561,
13,
187,
50276,
36073,
27,
21486,
9,
16956,
9,
16960,
1228,
5204,
18299,
13,
187,
10,
5204,
22195,
45818,
9,
16956,
9,
16960,
582,
14391,
561,
582,
11759,
10,
551,
187,
50276,
5045,
21761,
551,
187,
50274,
60,
4,
9,
85,
15,
1909,
13,
795,
582,
537
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"tokens",
"))",
"Ċ",
" ",
"#",
"(",
"Some",
"(",
"Block",
"(",
"statements",
")),",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"ĊĊ",
" ",
"[",
"#",
"(",
"t",
".",
"Less",
"Less",
",",
"Ġ_",
"),",
"..",
"tokens",
"]",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"let",
"Ġparser",
"Ġ=",
"Ġbit",
"_",
"string",
"_",
"segment",
"(",
"expression",
",",
"Ġ_",
")",
"Ċ",
" ",
"let",
"Ġresult",
"Ġ=",
"Ġcomma",
"_",
"delim",
"ited",
"([",
"],",
"Ġtokens",
",",
"Ġparser",
",",
"Ġt",
".",
"Great",
"er",
"Great",
"er",
")",
"Ċ",
" ",
"use",
"Ġ#",
"(",
"se",
"gments",
",",
"Ġtokens",
")",
"Ġ<-",
"Ġresult",
".",
"map",
"(",
"result",
")",
"Ċ",
" ",
"#",
"(",
"Some",
"(",
"Bit",
"String",
"(",
"se",
"gments",
")),",
"Ġtokens",
")",
"Ċ",
" ",
"}",
"ĊĊ",
" ",
"_",
"Ġ->",
"ĠOk",
"(#",
"(",
"None",
",",
"Ġtokens",
"))",
"Ċ",
" ",
"})",
"ĊĊ",
" ",
"case",
"Ġparsed",
"Ġ{",
"Ċ",
" ",
"Some",
"(",
"expression",
")",
"Ġ->",
"Ġ{",
"Ċ",
" ",
"case",
"Ġafter",
"_",
"expression",
"(",
"expression",
",",
"Ġtokens",
")",
"Ġ{",
"Ċ",
" ",
"Ok",
"(#",
"(",
"expression",
",",
"Ġtokens",
"))",
"Ġ->",
"ĠOk",
"(#",
"(",
"Some",
"(",
"expression",
"),",
"Ġtokens",
"))",
"Ċ",
" ",
"Error",
"(",
"error",
")",
"Ġ->",
"ĠError",
"(",
"error",
")",
"Ċ",
" ",
"}",
"Ċ",
" ",
"}",
"Ċ",
" ",
"None",
"Ġ->",
"ĠOk",
"(#",
"(",
"None",
",",
"Ġtokens",
"))",
"Ċ",
" ",
"}",
"Ċ",
"}",
"Ċ",
"Ċ",
"fn",
"Ġtodo",
"_",
"panic",
"(",
"Ċ",
" ",
"tokens",
":",
"ĠTok",
"ens",
",",
"Ċ",
" ",
"constructor",
":",
"Ġfn",
"(",
"Option",
"(",
"Expression",
"))",
"Ġ->",
"ĠExpression",
",",
"Ċ",
")",
"Ġ->",
"ĠResult",
"(#",
"(",
"Option",
"(",
"Expression",
"),",
"ĠTok",
"ens",
"),",
"ĠError",
")",
"Ġ{",
"Ċ",
" ",
"case",
"Ġtokens",
"Ġ{",
"Ċ",
" ",
"[",
"#",
"(",
"t",
".",
"As",
",",
"Ġ_",
"),",
".."
] |
https://pile.dataportraits.org/#Um95JTIwUmV5bm9sZHMlMkMlMjA1NCUyQyUyMHdhcyUyMGZvdW5kJTIwZGVhZCUyMGluJTIwYSUyMHJlc2Vydm9pciUyMG5lYXIlMjBDYXJyaWNrZmVyZ3VzJTIwaW4lMjBNYXJjaCUyMDIwMjIlMEElMEFNb3JlJTIwdGhhbiUyMDEwMCUyMGluanVyaWVzJTIwd2VyZSUyMGluZmxpY3RlZCUyMG9uJTIwYSUyMG1hbiUyMHdob3NlJTIwYm9keSUyMHdhcyUyMGZvdW5kJTIwcGFydGlhbGx5JTIwc3VibWVyZ2VkJTIwaW4lMjBhJTIwcmVzZXJ2b2lyJTJDJTIwYSUyMGNvdXJ0JTIwaGFzJTIwaGVhcmQuJTBBJTBBUm95JTIwUmV5bm9sZHMlMkMlMjB3aG8lMjB3YXMlMjA1NCUyQyUyMHdhcyUyMGJlYXRlbiUyMGFuZCUyMHN0YWJiZWQlMjBpbiUyMGElMjBmbGF0JTIwaW4lMjBSYXRoY29vbGUlMjBpbiUyME1hcmNoJTIwMjAyMi4lMEElMEFIaXMlMjByZW1haW5zJTIwd2VyZSUyMHRoZW4lMjBwbGFjZWQlMjBpbiUyMHRoZSUyMGJvb3QlMjBvZiUyMGElMjBjYXIlMjBhbmQlMjB0YWtlbiUyME5vcnRoJTIwV29vZGJ1cm4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vb2RzdGFpbnMlMjBvbiUyMENhbXBiZWxsJTJDJTIwd2hvJTIwY2xhaW1lZCUyMGhlJTIwaGFkJTIwYmVlbiUyMGZpZ2h0aW5nJTIwd2l0aCUyMGhpcyUyMGJyb3RoZXIuJTBBJTBBV2hlbiUyMHRoZSUyMHZlaGljbGUlMjB3YXMlMjBzZWFyY2hlZCUyQyUyMHBvb2xzJTIwb2YlMjBibG9vZCUyMHdlcmUlMjB2aXNpYmxlJTIwaW4lMjB0aGUlMjBib290JTIwYW5kJTIwb3RoZXIlMjBhcmVhcyUyMG9mJTIwdGhlJTIwVG95b3RhLiUwQSUwQVRoaXMlMjB3YXMlMjBwb2ludGVkJTIwb3V0JTIwdG8= | Roy Reynolds, 54, was found dead in a reservoir near Carrickfergus in March 2022
More than 100 injuries were inflicted on a man whose body was found partially submerged in a reservoir, a court has heard.
Roy Reynolds, who was 54, was beaten and stabbed in a flat in Rathcoole in March 2022.
His remains were then placed in the boot of a car and taken North Woodburn Reservoir near Carrickfergus.
Details surrounding the "ferocious" fatal attack on Mr Reynolds emerged for the first time during a plea hearing at Belfast Crown Court.
A previous hearing heard his murder was "barbaric and horrific".
Michael Campbell, 34, whose address was given as HMP Maghaberry, previously admitted murdering Mr Reynolds on a date between 26 March and 29 March 2022.
He has also admitted a charge of attempting to prevent the burial of a body on 28 March.
Co-accused Robert Fulton, 70, of Brickhill Park, Newtownabbey previously pleaded guilty to a charge of assisting in the disposal of a body.
Roy Reynolds' body was found in North Woodburn Reservoir near Carrickfergus
The court heard Fulton was called by Campbell in the aftermath of the murder and drove his co-accused to the reservoir with Mr Reynolds' body in the boot of Fulton's Toyota car.
Prior to this, the judge was addressed by a Crown barrister, who branded the incident as a "ferocious, brutal killing".
Mr Reynolds, who lived in Newtownabbey, was last seen on CCTV walking on his own on the evening of 27 March on Derrycoole Way in Rathcoole.
The court heard the evidence suggested he was murdered in Campbell's flat in Derrycoole Way some time between that evening and the early hours of the following morning.
On Sunday evening, Campbell sent a video message from his flat where Mr Reynolds was present.
At about 04:30 on Monday morning, police received a call about a naked body being dragged from a flat and placed into the boot of a car.
The witness provided police with the car's registration, which was traced to Fulton. Details were circulated and the vehicle was stopped just before 07:00 in Rathcoole.
Officers observed bloodstains on Campbell, who claimed he had been fighting with his brother.
When the vehicle was searched, pools of blood were visible in the boot and other areas of the Toyota.
This was pointed out to | 7.550706 | [
35906,
27523,
13,
8255,
13,
369,
1119,
3846,
275,
247,
18699,
2822,
2639,
4662,
71,
26163,
275,
3919,
1384,
1423,
187,
187,
7673,
685,
2233,
9478,
497,
39723,
327,
247,
637,
3692,
2133,
369,
1119,
10571,
43923,
275,
247,
18699,
13,
247,
1302,
556,
3735,
15,
187,
187,
35906,
27523,
13,
665,
369,
8255,
13,
369,
20698,
285,
37836,
275,
247,
6507,
275,
416,
506,
1940,
1306,
275,
3919,
1384,
1423,
15,
187,
187,
8389,
4558,
497,
840,
4845,
275,
253,
7491,
273,
247,
1113,
285,
2668,
3729,
9002,
14814,
2213,
677,
9283,
2822,
2639,
4662,
71,
26163,
15,
187,
187,
21691,
8704,
253,
346,
1592,
49514,
3,
15444,
2983,
327,
2305,
27523,
13082,
323,
253,
806,
673,
1309,
247,
12678,
4854,
387,
44867,
23392,
2111,
15,
187,
187,
34,
2045,
4854,
3735,
521,
7701,
369,
346,
2009,
2009,
280,
285,
41485,
3446,
187,
187,
18744,
20163,
13,
5910,
13,
3692,
2953,
369,
1677,
347,
388,
4548,
6813,
8621,
9587,
13,
3786,
8176,
7701,
272,
2305,
27523,
327,
247,
3522,
875,
3436,
3919,
285,
3285,
3919,
1384,
1423,
15,
187,
187,
1328,
556,
671,
8176,
247,
4179,
273,
13756,
281,
3657,
253,
33672,
273,
247,
2133,
327,
3349,
3919,
15,
187,
187,
6869,
14,
3649,
3197,
6911,
401,
503,
251,
13,
5571,
13,
273,
378,
4662,
18610,
4913,
13,
1457,
10700,
357,
22905,
3786,
23383,
8106,
281,
247,
4179,
273,
34735,
275,
253,
23585,
273,
247,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Ġinjuries",
"Ġwere",
"Ġinflicted",
"Ġon",
"Ġa",
"Ġman",
"Ġwhose",
"Ġbody",
"Ġwas",
"Ġfound",
"Ġpartially",
"Ġsubmerged",
"Ġin",
"Ġa",
"Ġreservoir",
",",
"Ġa",
"Ġcourt",
"Ġhas",
"Ġheard",
".",
"Ċ",
"Ċ",
"Roy",
"ĠReynolds",
",",
"Ġwho",
"Ġwas",
"Ġ54",
",",
"Ġwas",
"Ġbeaten",
"Ġand",
"Ġstabbed",
"Ġin",
"Ġa",
"Ġflat",
"Ġin",
"ĠR",
"ath",
"co",
"ole",
"Ġin",
"ĠMarch",
"Ġ20",
"22",
".",
"Ċ",
"Ċ",
"His",
"Ġremains",
"Ġwere",
"Ġthen",
"Ġplaced",
"Ġin",
"Ġthe",
"Ġboot",
"Ġof",
"Ġa",
"Ġcar",
"Ġand",
"Ġtaken",
"ĠNorth",
"ĠWood",
"burn",
"ĠRes",
"erv",
"oir",
"Ġnear",
"ĠCar",
"rick",
"f",
"ergus",
".",
"Ċ",
"Ċ",
"Details",
"Ġsurrounding",
"Ġthe",
"Ġ\"",
"fer",
"ocious",
"\"",
"Ġfatal",
"Ġattack",
"Ġon",
"ĠMr",
"ĠReynolds",
"Ġemerged",
"Ġfor",
"Ġthe",
"Ġfirst",
"Ġtime",
"Ġduring",
"Ġa",
"Ġplea",
"Ġhearing",
"Ġat",
"ĠBelfast",
"ĠCrown",
"ĠCourt",
".",
"Ċ",
"Ċ",
"A",
"Ġprevious",
"Ġhearing",
"Ġheard",
"Ġhis",
"Ġmurder",
"Ġwas",
"Ġ\"",
"bar",
"bar",
"ic",
"Ġand",
"Ġhorrific",
"\".",
"Ċ",
"Ċ",
"Michael",
"ĠCampbell",
",",
"Ġ34",
",",
"Ġwhose",
"Ġaddress",
"Ġwas",
"Ġgiven",
"Ġas",
"ĠH",
"MP",
"ĠMag",
"hab",
"erry",
",",
"Ġpreviously",
"Ġadmitted",
"Ġmurder",
"ing",
"ĠMr",
"ĠReynolds",
"Ġon",
"Ġa",
"Ġdate",
"Ġbetween",
"Ġ26",
"ĠMarch",
"Ġand",
"Ġ29",
"ĠMarch",
"Ġ20",
"22",
".",
"Ċ",
"Ċ",
"He",
"Ġhas",
"Ġalso",
"Ġadmitted",
"Ġa",
"Ġcharge",
"Ġof",
"Ġattempting",
"Ġto",
"Ġprevent",
"Ġthe",
"Ġburial",
"Ġof",
"Ġa",
"Ġbody",
"Ġon",
"Ġ28",
"ĠMarch",
".",
"Ċ",
"Ċ",
"Co",
"-",
"acc",
"used",
"ĠRobert",
"ĠF",
"ult",
"on",
",",
"Ġ70",
",",
"Ġof",
"ĠB",
"rick",
"hill",
"ĠPark",
",",
"ĠNew",
"town",
"ab",
"bey",
"Ġpreviously",
"Ġpleaded",
"Ġguilty",
"Ġto",
"Ġa",
"Ġcharge",
"Ġof",
"Ġassisting",
"Ġin",
"Ġthe",
"Ġdisposal",
"Ġof",
"Ġa",
"Ġbody",
".",
"Ċ",
"Ċ",
"Roy",
"ĠReynolds",
"'",
"Ġbody",
"Ġwas",
"Ġfound",
"Ġin",
"ĠNorth",
"ĠWood",
"burn",
"ĠRes",
"erv",
"oir",
"Ġnear",
"ĠCar",
"rick"
] |
https://pile.dataportraits.org/#JTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwbSUyQyUyMG4lMkMlMjBDLmxvYWQlNUJuZWx0cyU1RChtJTJDJTIwbiklMjAlMkIlMjBBJTVCbSUyQyUyMGslNUQlMjAqJTIwQi5sb2FkJTVCbmVsdHMlNUQoayUyQyUyMG4pJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwKSUwQSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHZlY3Rvcml6ZSU1QmRvdCUyQyUyMG5lbHRzJTJDJTIwc2l6Z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JTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTJCJTIwQSU1Qm0lMkMlMjBrJTVEJTIwKiUyMEIubG9hZCU1Qm5lbHRzJTVEKGslMkMlMjBuJTIwJTJCJTIweCklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjApJTBBJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwdmVjdG9yaXplJTVCZG90JTJDJTIwbmVsdHMlMkMlMjBzaXplJTNEdGlsZV94JTVEKCklMEElMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjB0aWxlJTVCY2FsY190aWxlJTJDJTIwdGlsZV9uJTJDJTIwdGlsZV9rJTVEKEMuY29scyUyQyUyMEIu | m, n, C.load[nelts](m, n) + A[m, k] * B.load[nelts](k, n)
)
vectorize[dot, nelts, size = C.cols]()
# Parallelize the code by using the builtin parallelize function
fn matmul_parallelized(inout C: Matrix, A: Matrix, B: Matrix):
@parameter
fn calc_row(m: Int):
for k in range(A.cols):
@parameter
fn dot[nelts: Int](n: Int):
C.store[nelts](
m, n, C.load[nelts](m, n) + A[m, k] * B.load[nelts](k, n)
)
vectorize[dot, nelts, size = C.cols]()
parallelize[calc_row](C.rows, C.rows)
# Perform 2D tiling on the iteration space defined by end_x and end_y
fn tile[tiled_fn: Tile2DFunc, tile_x: Int, tile_y: Int](end_x: Int, end_y: Int):
for y in range(0, end_y, tile_y):
for x in range(0, end_x, tile_x):
tiled_fn[tile_x, tile_y](x, y)
# Use the above tile function to perform tiled matmul
fn matmul_tiled(inout C: Matrix, A: Matrix, B: Matrix):
@parameter
fn calc_row(m: Int):
@parameter
fn calc_tile[tile_x: Int, tile_y: Int](x: Int, y: Int):
for k in range(y, y + tile_y):
@parameter
fn dot[nelts: Int](n: Int):
C.store(
m,
n + x,
C.load[nelts](m, n + x)
+ A[m, k] * B.load[nelts](k, n + x),
)
vectorize[dot, nelts, size=tile_x]()
tile[calc_tile, tile_n, tile_k](C.cols, B. | 7.603749 | [
78,
13,
295,
13,
330,
15,
2799,
60,
8101,
1641,
880,
78,
13,
295,
10,
559,
329,
60,
78,
13,
465,
62,
475,
378,
15,
2799,
60,
8101,
1641,
880,
76,
13,
295,
10,
187,
50262,
10,
535,
50266,
11000,
907,
60,
5256,
13,
26644,
1641,
13,
1979,
426,
330,
15,
40064,
880,
10,
535,
187,
4,
2956,
5984,
907,
253,
2127,
407,
970,
253,
4270,
249,
7529,
907,
1159,
187,
4174,
1111,
31601,
64,
19783,
1025,
9,
249,
483,
330,
27,
23650,
13,
329,
27,
23650,
13,
378,
27,
23650,
2262,
187,
50274,
33,
19484,
187,
50274,
4174,
9039,
64,
736,
9,
78,
27,
4458,
2262,
187,
50270,
1542,
465,
275,
2491,
9,
34,
15,
40064,
2262,
535,
50266,
33,
19484,
187,
50266,
4174,
14261,
60,
8101,
1641,
27,
4458,
880,
79,
27,
4458,
2262,
187,
50262,
36,
15,
11869,
60,
8101,
1641,
880,
187,
50258,
78,
13,
295,
13,
330,
15,
2799,
60,
8101,
1641,
880,
78,
13,
295,
10,
559,
329,
60,
78,
13,
465,
62,
475,
378,
15,
2799,
60,
8101,
1641,
880,
76,
13,
295,
10,
187,
50262,
10,
535,
50266,
11000,
907,
60,
5256,
13,
26644,
1641,
13,
1979,
426,
330,
15,
40064,
880,
10,
535,
50274,
19783,
907,
60,
32557,
64,
736,
880,
36,
15,
8111,
13,
330,
15,
8111,
10,
535,
187,
4,
3545,
630,
374,
37,
246,
4837,
327,
253,
19502,
2317,
2931,
407,
990,
64,
89,
285,
990,
64,
90,
187,
4174,
25087,
60,
1343,
264,
64,
4174,
27,
308,
587,
19,
14803,
7157,
13,
25087
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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e",
"Ġcode",
"Ġby",
"Ġusing",
"Ġthe",
"Ġbuilt",
"in",
"Ġparallel",
"ize",
"Ġfunction",
"Ċ",
"fn",
"Ġmat",
"mul",
"_",
"parallel",
"ized",
"(",
"in",
"out",
"ĠC",
":",
"ĠMatrix",
",",
"ĠA",
":",
"ĠMatrix",
",",
"ĠB",
":",
"ĠMatrix",
"):",
"Ċ",
" ",
"@",
"parameter",
"Ċ",
" ",
"fn",
"Ġcalc",
"_",
"row",
"(",
"m",
":",
"ĠInt",
"):",
"Ċ",
" ",
"for",
"Ġk",
"Ġin",
"Ġrange",
"(",
"A",
".",
"cols",
"):",
"ĊĊ",
" ",
"@",
"parameter",
"Ċ",
" ",
"fn",
"Ġdot",
"[",
"nel",
"ts",
":",
"ĠInt",
"](",
"n",
":",
"ĠInt",
"):",
"Ċ",
" ",
"C",
".",
"store",
"[",
"nel",
"ts",
"](",
"Ċ",
" ",
"m",
",",
"Ġn",
",",
"ĠC",
".",
"load",
"[",
"nel",
"ts",
"](",
"m",
",",
"Ġn",
")",
"Ġ+",
"ĠA",
"[",
"m",
",",
"Ġk",
"]",
"Ġ*",
"ĠB",
".",
"load",
"[",
"nel",
"ts",
"](",
"k",
",",
"Ġn",
")",
"Ċ",
" ",
")",
"ĊĊ",
" ",
"vector",
"ize",
"[",
"dot",
",",
"Ġnel",
"ts",
",",
"Ġsize",
"Ġ=",
"ĠC",
".",
"cols",
"](",
")",
"ĊĊ",
" ",
"parallel",
"ize",
"[",
"calc",
"_",
"row",
"](",
"C",
".",
"rows",
",",
"ĠC",
".",
"rows",
")",
"ĊĊ",
"Ċ",
"#",
"ĠPer",
"form",
"Ġ2",
"D",
"Ġt",
"iling",
"Ġon",
"Ġthe",
"Ġiteration",
"Ġspace",
"Ġdefined",
"Ġby",
"Ġend",
"_",
"x",
"Ġand",
"Ġend",
"_",
"y",
"Ċ",
"fn",
"Ġtile",
"[",
"til",
"ed",
"_",
"fn",
":",
"ĠT",
"ile",
"2",
"DF",
"unc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UyMEFtZXJpY2FuJTIwbm92ZWxzJTIwQW1lcmljYW4lMjBhbHRlcm5hdGUlMjBoaXN0b3J5JTIwbm92ZWxzJTIwRmFycmFyJTJDJTIwU3RyYXVzJTIwYW5kJTIwR2lyb3V4JTIwYm9va3MlMjBFbmdsaXNoLWxhbmd1YWdlJTIwbm92ZWxzJTIwSGlkZGVuJTIwY2F0ZWdvcmllcyUzQSUyMCUyMEFydGljbGVzJTIwd2l0aCUyMHNob3J0JTIwZGVzY3JpcHRpb24lMjBTaG9ydCUyMGRlc2NyaXB0aW9uJTIwbWF0Y2hlcyUyMFdpa2lkYXRhJTBB | New Novel". Vogue. Retrieved 21 March 2023. ^ a b c Terry, Shayne (22 March 2023). ""I Had to Have a Different America:" An Interview with Catherine Lacey about "Biography of X"". Chicago Review of Books. Retrieved 22 March 2023. ^ Gunther, Molly (21 March 2022). "In Conversation: Catherine Lacey". VAGABOND CITY. Retrieved 21 March 2023. ^ "Biography of X". Book Marks. Literary Hub. Retrieved 21 March 2023. ^ "Biography of X". Kirkus Reviews. 2023-01-11. Retrieved 2023-10-28. ^ Rohrbaugh, Lisa (2022-12-01). "Biography of X". Library Journal. Retrieved 2023-10-28. ^ "Biography of X by Catherine Lacey". Publishers Weekly. 2023-01-10. Retrieved 2023-10-28. ^ Garner, Dwight (20 March 2023). "'Biography of X' Rewrites a Life Story and an American Century". The New York Times. Retrieved 23 March 2023. ^ a b Sacks, Sam (17 March 2023). "Fiction: 'Biography of X' by Catherine Lacey". The Wall Street Journal. Retrieved 23 March 2023. ^ Ferri, Jessica (20 March 2023). "Step aside, Lydia Tár: Novelist Catherine Lacey presents the ultimate art monster". Los Angeles Times. Retrieved 18 April 2023. ^ Wollen, Audrey (2 May 2023). "Catherine Lacey's Provocative Novel in Disguise". The New Yorker. Retrieved 8 May 2023. ^ "Best Books 2023". Publishers Weekly. Retrieved 2023-10-28. ^ "Brooklyn Public Library Announces 2023 Book Prize Winners". Brooklyn Public Library. Retrieved 2024-01-10. ^ "The Great American Novels". The Atlantic. 14 March 2024. Retrieved 15 March 2024. ^ "Announcing the Finalists for the 36th Annual Lambda Literary Awards". them. 2024-03-27. Retrieved 2024-04-05. Retrieved from " https://en.wikipedia.org/w/index.php?title=Biography_of_X&oldid=1222564104" Categories: 2023 American novels American alternate history novels Farrar, Straus and Giroux books English-language novels Hidden categories: Articles with short description Short description matches Wikidata | 7.78681 | [
4257,
34349,
3446,
657,
14873,
15,
6724,
35571,
3127,
3919,
1384,
1508,
15,
5042,
247,
270,
260,
21638,
13,
1608,
333,
570,
313,
1423,
3919,
1384,
1508,
481,
4890,
42,
14136,
281,
12238,
247,
13773,
3968,
5136,
743,
31466,
342,
23425,
418,
32175,
670,
346,
39357,
273,
1594,
3,
3446,
8068,
8439,
273,
16103,
15,
6724,
35571,
3307,
3919,
1384,
1508,
15,
5042,
22222,
508,
13,
37921,
313,
1797,
3919,
1384,
1423,
481,
346,
688,
1716,
36381,
27,
23425,
418,
32175,
3446,
657,
2696,
2925,
28104,
45893,
15,
6724,
35571,
3127,
3919,
1384,
1508,
15,
5042,
346,
39357,
273,
1594,
3446,
7225,
46954,
15,
18756,
552,
15634,
15,
6724,
35571,
3127,
3919,
1384,
1508,
15,
5042,
346,
39357,
273,
1594,
3446,
22579,
316,
31349,
15,
1384,
1508,
14,
520,
14,
883,
15,
6724,
35571,
1384,
1508,
14,
740,
14,
1619,
15,
5042,
32524,
13041,
3920,
13,
22707,
313,
938,
1423,
14,
805,
14,
520,
481,
346,
39357,
273,
1594,
3446,
11397,
9109,
15,
6724,
35571,
1384,
1508,
14,
740,
14,
1619,
15,
5042,
346,
39357,
273,
1594,
407,
23425,
418,
32175,
3446,
41486,
33022,
15,
1384,
1508,
14,
520,
14,
740,
15,
6724,
35571,
1384,
1508,
14,
740,
14,
1619,
15,
5042,
10867,
1216,
13,
36113,
429,
313,
938,
3919,
1384,
1508,
481,
17169,
39357,
273,
1594,
8,
34479,
31320,
247,
7813,
16061,
285,
271,
2448,
21672,
3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ġ(",
"22",
"ĠMarch",
"Ġ20",
"23",
").",
"Ġ\"\"",
"I",
"ĠHad",
"Ġto",
"ĠHave",
"Ġa",
"ĠDifferent",
"ĠAmerica",
":\"",
"ĠAn",
"ĠInterview",
"Ġwith",
"ĠCatherine",
"ĠL",
"acey",
"Ġabout",
"Ġ\"",
"Biography",
"Ġof",
"ĠX",
"\"",
"\".",
"ĠChicago",
"ĠReview",
"Ġof",
"ĠBooks",
".",
"ĠRet",
"rieved",
"Ġ22",
"ĠMarch",
"Ġ20",
"23",
".",
"Ġ^",
"ĠGun",
"ther",
",",
"ĠMolly",
"Ġ(",
"21",
"ĠMarch",
"Ġ20",
"22",
").",
"Ġ\"",
"In",
"ĠCon",
"versation",
":",
"ĠCatherine",
"ĠL",
"acey",
"\".",
"ĠV",
"AG",
"AB",
"OND",
"ĠCITY",
".",
"ĠRet",
"rieved",
"Ġ21",
"ĠMarch",
"Ġ20",
"23",
".",
"Ġ^",
"Ġ\"",
"Biography",
"Ġof",
"ĠX",
"\".",
"ĠBook",
"ĠMarks",
".",
"ĠLiter",
"ary",
"ĠHub",
".",
"ĠRet",
"rieved",
"Ġ21",
"ĠMarch",
"Ġ20",
"23",
".",
"Ġ^",
"Ġ\"",
"Biography",
"Ġof",
"ĠX",
"\".",
"ĠKirk",
"us",
"ĠReviews",
".",
"Ġ20",
"23",
"-",
"01",
"-",
"11",
".",
"ĠRet",
"rieved",
"Ġ20",
"23",
"-",
"10",
"-",
"28",
".",
"Ġ^",
"ĠRoh",
"rb",
"augh",
",",
"ĠLisa",
"Ġ(",
"20",
"22",
"-",
"12",
"-",
"01",
").",
"Ġ\"",
"Biography",
"Ġof",
"ĠX",
"\".",
"ĠLibrary",
"ĠJournal",
".",
"ĠRet",
"rieved",
"Ġ20",
"23",
"-",
"10",
"-",
"28",
".",
"Ġ^",
"Ġ\"",
"Biography",
"Ġof",
"ĠX",
"Ġby",
"ĠCatherine",
"ĠL",
"acey",
"\".",
"ĠPublishers",
"ĠWeekly",
".",
"Ġ20",
"23",
"-",
"01",
"-",
"10",
".",
"ĠRet",
"rieved",
"Ġ20",
"23",
"-",
"10",
"-",
"28",
".",
"Ġ^",
"ĠGar",
"ner",
",",
"ĠDw",
"ight",
"Ġ(",
"20",
"ĠMarch",
"Ġ20",
"23",
").",
"Ġ\"'",
"Biography",
"Ġof",
"ĠX",
"'",
"ĠRew",
"rites",
"Ġa",
"ĠLife",
"ĠStory",
"Ġand",
"Ġan",
"ĠAmerican",
"ĠCentury",
"\".",
"ĠThe",
"ĠNew",
"ĠYork",
"ĠTimes",
".",
"ĠRet",
"rieved",
"Ġ23",
"ĠMarch",
"Ġ20",
"23",
".",
"Ġ^",
"Ġa",
"Ġb",
"ĠS",
"acks",
",",
"ĠSam",
"Ġ(",
"17",
"ĠMarch",
"Ġ20",
"23",
").",
"Ġ\"",
"F",
"iction"
] |
https://pile.dataportraits.org/#JTIwJTIwbmVpZ2hib3VyJTIwNTIlMjAoZWxpbWluYXRlZCUyMGJ5JTIwY29uc2lkZXJpbmclMjBuZWlnaGJvdXJzJTIwY29udGFpbmluZyUyMHRoZSUyMHNoYWRlZCUyMGtpdGUpJTBBUG9zc2libGUlMjBuZWlnaGJvdXIlMjA1MyUyMChlbGltaW5hdGVkJTIwdG9nZXRoZXIlMjB3aXRoJTIwcG9zc2libGUlMjBuZWlnaGJvdXIlMjA1MiklMEFQb3NzaWJsZSUyMG5laWdoYm91ciUyMDU0JTIwKGVsaW1pbmF0ZWQlMjBieSUyMGNvbnNpZGVyaW5nJTIwbmVpZ2hib3VycyUyMGNvbnRhaW5pbmclMjB0aGUlMjBzaGFkZWQlMjBraXRlKSUwQVBvc3NpYmxlJTIwbmVpZ2hib3VyJTIwNTUlMjAoZWxpbWluYXRlZCUyMGJ5JTIwY29uc2lkZXJpbmclMjBuZWlnaGJvdXJzJTIwY29udGFpbmluZyUyMHRoZSUyMHNoYWRlZCUyMGtpdGUpJTBBUG9zc2libGUlMjBuZWlnaGJvdXIlMjA1NiUy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JTIwdGhhdCUyMGVpdGhlciUyMGludGVyc2VjdCUyMG9yJTIwZm9ybSUyMGElMjBwYWlyJTIwb2YlMjBuZWlnaGJvdXJzJTIwcHJldmlvdXNseSUyMHJ1bGVkJTIwb3V0JTNCJTIwdGhlJTIwa2l0ZSUyMHdlJTIwdXNlJTIwaXMlMjBjaG9zZW4lMjBzbyUyMHRoYXQlMjB0aGUlMjBudW1iZXIlMjBvZiUyMGNob2ljZXMlMjBmb3IlMjB0aGUlMjBuZWlnaGJvdXIlMjBhZGRlZCUyMGlzJTIwbWluaW1hbC4lMjBUaGlzJTIwcHJvY2VzcyUyMHJlc3VsdHMlMjBpbiUyMDM3JTIwcG9zc2libGUlMjAxLXBhdGNoZXMlM0IlMjB0aGUlMjBwYXJ0aWFsJTIwcGF0Y2hlcyUyMGZyb20lMjB0aGUlMjBzZWFyY2glMjBwcm9jZXNzJTIwYXJlJTIwc2hvd24lMjBpbiUyMEZpZ3VyZSUyMEIuMiUyMGFuZCUyMHRoZSUyMDEtcGF0Y2hlcyUyMGFyZSUyMHNob3duJTIwaW4lMjBGaWd1cmVzJTIwQi4zLiUwQVNvbWUlMjBvZiUyMHRoZSUyMDEtcGF0Y2hlcyUyMGZvdW5kJTIwY2FuJTIwYmUlMjBpbW1lZGlhdGVseSUyMGVsaW1pbmF0ZWQlMjBhdCUyMHRoaXMlMjBwb2ludCUyQyUyMGJ5JTIwaWRlbnRpZnlpbmclMjBhJTIwdGlsZSUyMGluJTIwdGhlJTIwMS1wYXRjaCUyMHRoYXQlMjBjYW5ub3QlMjBpdHNlbGYlMjBiZSUyMHN1cnJvdW5kZWQlMjBieSUyMGFueSUyMG9mJTIwdGhlJTIwMS1wYXRjaGVzJTIwKHRoYXQlMjBoYXMlMjBub3QlMjB5ZXQlMjBiZWVuJTIwZWxpbWluYXRlZA== | neighbour 52 (eliminated by considering neighbours containing the shaded kite)
Possible neighbour 53 (eliminated together with possible neighbour 52)
Possible neighbour 54 (eliminated by considering neighbours containing the shaded kite)
Possible neighbour 55 (eliminated by considering neighbours containing the shaded kite)
Possible neighbour 56 (eliminated by considering neighbours containing the shaded kite)
Possible neighbour 57 (eliminated by considering neighbours containing the shaded kite)
Possible neighbour 58 (eliminated together with possible neighbour 57)
Having produced a list of possible neighbours, we now proceed to enumerating possible 1- patches. When we have a partial 1-patch (some number of neighbours for the original, shaded polykite), we pick some kite neighbouring that original polykite and enumerate the possible neighbouring polykites containing that kite, excluding any that would result in the patch con- taining two polykites that either intersect or form a pair of neighbours previously ruled out; the kite we use is chosen so that the number of choices for the neighbour added is minimal. This process results in 37 possible 1-patches; the partial patches from the search process are shown in Figure B.2 and the 1-patches are shown in Figures B.3.
Some of the 1-patches found can be immediately eliminated at this point, by identifying a tile in the 1-patch that cannot itself be surrounded by any of the 1-patches (that has not yet been eliminated | 8.674771 | [
570,
798,
7390,
8073,
313,
293,
303,
3901,
407,
7296,
31359,
4508,
253,
37042,
465,
614,
10,
187,
34214,
917,
14646,
8676,
313,
293,
303,
3901,
2366,
342,
1896,
14646,
8073,
10,
187,
34214,
917,
14646,
8255,
313,
293,
303,
3901,
407,
7296,
31359,
4508,
253,
37042,
465,
614,
10,
187,
34214,
917,
14646,
7288,
313,
293,
303,
3901,
407,
7296,
31359,
4508,
253,
37042,
465,
614,
10,
187,
34214,
917,
14646,
8026,
313,
293,
303,
3901,
407,
7296,
31359,
4508,
253,
37042,
465,
614,
10,
187,
34214,
917,
14646,
8988,
313,
293,
303,
3901,
407,
7296,
31359,
4508,
253,
37042,
465,
614,
10,
187,
34214,
917,
14646,
9135,
313,
293,
303,
3901,
2366,
342,
1896,
14646,
8988,
10,
187,
18562,
4197,
247,
1618,
273,
1896,
31359,
13,
359,
1024,
4262,
281,
30482,
839,
1896,
337,
14,
20412,
15,
2091,
359,
452,
247,
7898,
337,
14,
20559,
313,
8826,
1180,
273,
31359,
323,
253,
3236,
13,
37042,
3488,
76,
614,
582,
359,
2619,
690,
465,
614,
33423,
326,
3236,
3488,
76,
614,
285,
49860,
253,
1896,
33423,
3488,
76,
3254,
4508,
326,
465,
614,
13,
22914,
667,
326,
651,
906,
275,
253,
12097,
345,
14,
246,
1776,
767,
3488,
76,
3254,
326,
2057,
23965,
390,
830,
247,
4667,
273,
31359,
3786,
12969,
562,
28,
253,
465,
614,
359,
897,
310,
6777,
594,
326,
253,
1180,
273,
10165,
323,
253,
14646,
2879,
310,
8723,
15,
831,
1232,
1543,
275,
5345,
1896,
337,
14,
4066,
2706,
28,
253,
7898,
20412,
432,
253,
3186,
1232,
403,
2011,
275,
5317
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"ne",
"igh",
"bour",
"Ġ52",
"Ġ(",
"el",
"im",
"inated",
"Ġby",
"Ġconsidering",
"Ġneighbours",
"Ġcontaining",
"Ġthe",
"Ġshaded",
"Ġk",
"ite",
")",
"Ċ",
"Poss",
"ible",
"Ġneighbour",
"Ġ53",
"Ġ(",
"el",
"im",
"inated",
"Ġtogether",
"Ġwith",
"Ġpossible",
"Ġneighbour",
"Ġ52",
")",
"Ċ",
"Poss",
"ible",
"Ġneighbour",
"Ġ54",
"Ġ(",
"el",
"im",
"inated",
"Ġby",
"Ġconsidering",
"Ġneighbours",
"Ġcontaining",
"Ġthe",
"Ġshaded",
"Ġk",
"ite",
")",
"Ċ",
"Poss",
"ible",
"Ġneighbour",
"Ġ55",
"Ġ(",
"el",
"im",
"inated",
"Ġby",
"Ġconsidering",
"Ġneighbours",
"Ġcontaining",
"Ġthe",
"Ġshaded",
"Ġk",
"ite",
")",
"Ċ",
"Poss",
"ible",
"Ġneighbour",
"Ġ56",
"Ġ(",
"el",
"im",
"inated",
"Ġby",
"Ġconsidering",
"Ġneighbours",
"Ġcontaining",
"Ġthe",
"Ġshaded",
"Ġk",
"ite",
")",
"Ċ",
"Poss",
"ible",
"Ġneighbour",
"Ġ57",
"Ġ(",
"el",
"im",
"inated",
"Ġby",
"Ġconsidering",
"Ġneighbours",
"Ġcontaining",
"Ġthe",
"Ġshaded",
"Ġk",
"ite",
")",
"Ċ",
"Poss",
"ible",
"Ġneighbour",
"Ġ58",
"Ġ(",
"el",
"im",
"inated",
"Ġtogether",
"Ġwith",
"Ġpossible",
"Ġneighbour",
"Ġ57",
")",
"Ċ",
"Having",
"Ġproduced",
"Ġa",
"Ġlist",
"Ġof",
"Ġpossible",
"Ġneighbours",
",",
"Ġwe",
"Ġnow",
"Ġproceed",
"Ġto",
"Ġenumer",
"ating",
"Ġpossible",
"Ġ1",
"-",
"Ġpatches",
".",
"ĠWhen",
"Ġwe",
"Ġhave",
"Ġa",
"Ġpartial",
"Ġ1",
"-",
"patch",
"Ġ(",
"some",
"Ġnumber",
"Ġof",
"Ġneighbours",
"Ġfor",
"Ġthe",
"Ġoriginal",
",",
"Ġshaded",
"Ġpoly",
"k",
"ite",
"),",
"Ġwe",
"Ġpick",
"Ġsome",
"Ġk",
"ite",
"Ġneighbouring",
"Ġthat",
"Ġoriginal",
"Ġpoly",
"k",
"ite",
"Ġand",
"Ġenumerate",
"Ġthe",
"Ġpossible",
"Ġneighbouring",
"Ġpoly",
"k",
"ites",
"Ġcontaining",
"Ġthat",
"Ġk",
"ite",
",",
"Ġexcluding",
"Ġany",
"Ġthat",
"Ġwould",
"Ġresult",
"Ġin",
"Ġthe",
"Ġpatch",
"Ġcon",
"-",
"Ġt",
"aining",
"Ġtwo",
"Ġpoly",
"k",
"ites",
"Ġthat",
"Ġeither",
"Ġintersect",
"Ġor",
"Ġform",
"Ġa",
"Ġpair",
"Ġof",
"Ġneighbours",
"Ġpreviously",
"Ġruled",
"Ġout",
";",
"Ġthe",
"Ġk",
"ite",
"Ġwe",
"Ġuse",
"Ġis",
"Ġchosen",
"Ġso",
"Ġthat",
"Ġthe",
"Ġnumber",
"Ġof",
"Ġchoices",
"Ġfor",
"Ġthe",
"Ġneighbour",
"Ġadded",
"Ġis",
"Ġminimal",
".",
"ĠThis",
"Ġprocess",
"Ġresults",
"Ġin",
"Ġ37",
"Ġpossible",
"Ġ1",
"-",
"pat",
"ches",
";",
"Ġthe",
"Ġpartial",
"Ġpatches",
"Ġfrom",
"Ġthe",
"Ġsearch",
"Ġprocess",
"Ġare",
"Ġshown",
"Ġin",
"ĠFigure"
] |
https://pile.dataportraits.org/#TGFzdCUyMHVwZGF0ZWQlMjBvbi5Gcm9tJTIwdGhlJTIwc2VjdGlvbiUyMFByZW1pZXIlMjBMZWFndWUlMEElMEFCb3VybmVtb3V0aCUyMHByb2R1Y2VkJTIwb25lJTIwb2YlMjB0aGUlMjBncmVhdGVzdCUy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MjByb29mJTIwb2YlMjBOZXRvJ3MlMjBuZXQlMjBmcm9tJTIwMTIlMjB5YXJkcyUyMHNob3J0bHklMjBiZWZvcmUlMjBoYWxmLXRpbWUuJTBBJTBBQnV0JTIwU29sYW5rZSdzJTIwc2Vuc2F0aW9uYWwlMjBmaW5pc2glMkMlMjBoaXMlMjBmaXJzdCUyMGdvYWwlMjBpbiUyMGZvdXIlMjBtYXRjaGVzJTJDJTIwdHVybmVkJTIwdGhlJTIwdGlkZS4lMjBUaGUlMjBmb3J3YXJkJTIwdHJhcHBlZCUyMENocmlzJTIwTWVwaGFtJ3MlMjBsb29waW5nJTIwaGVhZGVyJTJDJTIwZGVmdGx5JTIwdHVybmVkJTIwRGFpa2klMjBIYXNoaW9rYSUyMGFuZCUyMGZpbmlzaGVkJTIwd2l0aCUyMGElMjBjbGlwJTIwb3ZlciUyMFRob21hcyUyMEthbWluc2tpLiUwQSUwQUJ5JTIwdGhlJTIwNjV0aCUyMG1pbnV0ZSUyMHRoZSUyMGhvc3RzJTIwd2VyZSUyMGxldmVsJTJDJTIwd2l0aCUyMHRoZWlyJTIwc2Vjb25kJTIwZ29hbCUyMGNvbWluZyUyMHRocm91Z2glMjBVa3JhaW5pYW4lMjBjZW50cmUtYmFjayUyMFphYmFybnlpJTIwaGVhZGluZyUyMGhvbWUlMjBmcm9tJTIwY2xvc2UlMjByYW5nZSUyMGFtaWQlMjBhJTIwY3Jvd2QlMjBvZiUyMGJvZGllcyUyMGZvbGxvd2luZyUyMGElMjBjb3JuZXIu | Last updated on.From the section Premier League
Bournemouth produced one of the greatest Premier League comebacks as they recovered from 3-0 down to beat Luton in a seven-goal thriller at Vitality Stadium.
The Hatters were irresistible in the first half and were three ahead at half-time through goals from Tahith Chong, Chiedozie Ogbene and Ross Barkley.
But Bournemouth were much improved after the break, Dominic Solanke's brilliant goal sparking a stunning comeback which was completed by Illia Zabarnyi's bundled finish and Antoine Semenyo's blistering double as they became only the fifth team in Premier League history to overturn a 3-0 deficit.
Luton had seemed destined for a huge win on an emotional night, with this game having been rearranged following the December fixture being abandoned when captain Tom Lockyer suffered cardiac arrest on the pitch.
But instead they missed the chance to move out of the relegation zone and remain winless in their past seven games, staying three points behind 17th-placed Nottingham Forest who they host in the Premier League on Saturday.
Bournemouth remain 13th following their first home win in 2024.
• None Luton captain Lockyer thanks 'hero' medics who saved his life at Bournemouth
• None Reaction from Bournemouth v Luton in the Premier League
• None Bournemouth fans - let us know your thoughts on the game here
• None How did you rate your side's performance, Luton fans?
Luton took the lead in the 10th minute when Jordan Clark dinked a perfectly weighted cross for the unmarked Chong to head home from six yards out.
Chong was at the centre of Luton's second as well, playing a one-two with Alfie Doughty before the left wing-back's low cross was finished at the far post by Ogbene, and a dream first half for Luton was capped when Barkley fired into the roof of Neto's net from 12 yards shortly before half-time.
But Solanke's sensational finish, his first goal in four matches, turned the tide. The forward trapped Chris Mepham's looping header, deftly turned Daiki Hashioka and finished with a clip over Thomas Kaminski.
By the 65th minute the hosts were level, with their second goal coming through Ukrainian centre-back Zabarnyi heading home from close range amid a crowd of bodies following a corner. | 8.781569 | [
8693,
9300,
327,
15,
4509,
253,
2593,
19425,
6884,
187,
187,
35,
454,
25476,
2001,
4197,
581,
273,
253,
6459,
19425,
6884,
1705,
12270,
347,
597,
12372,
432,
495,
14,
17,
1066,
281,
7171,
418,
307,
251,
275,
247,
5093,
14,
41881,
44741,
387,
24198,
1319,
21246,
15,
187,
187,
510,
23676,
1336,
497,
23501,
382,
917,
275,
253,
806,
2716,
285,
497,
1264,
6386,
387,
2716,
14,
2606,
949,
7342,
432,
43000,
334,
775,
543,
13,
775,
728,
6002,
466,
473,
20773,
1751,
285,
13625,
46548,
2205,
15,
187,
187,
1989,
22889,
25476,
2001,
497,
1199,
5520,
846,
253,
2740,
13,
19307,
280,
8144,
266,
413,
434,
15925,
4736,
13673,
272,
247,
21472,
41759,
534,
369,
6312,
407,
6192,
571,
1503,
357,
1596,
28212,
434,
47405,
8416,
285,
47255,
460,
13740,
257,
11904,
434,
787,
2131,
272,
4021,
347,
597,
3395,
760,
253,
10720,
2285,
275,
19425,
6884,
2892,
281,
46011,
247,
495,
14,
17,
19094,
15,
187,
187,
45,
307,
251,
574,
4455,
33781,
323,
247,
5699,
3330,
327,
271,
8991,
2360,
13,
342,
436,
2165,
1907,
644,
23690,
4626,
1563,
253,
4565,
34188,
1146,
13966,
672,
13595,
6270,
19989,
7885,
9606,
10177,
5263,
327,
253,
11288,
15,
187,
187,
1989,
3185,
597,
9829,
253,
4839,
281,
2118,
562,
273,
253,
1693,
72,
318,
8232,
285,
3464,
3330,
1417,
275,
616,
2469,
5093,
3958,
13,
14596,
1264,
2792,
3212,
1722,
394,
14,
26248,
48586,
16015,
665,
597,
3167,
275,
253,
19425,
6884,
327,
7814,
15,
187,
187,
35,
454,
25476,
2001,
3464,
2145,
394
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"Last",
"Ġupdated",
"Ġon",
".",
"From",
"Ġthe",
"Ġsection",
"ĠPremier",
"ĠLeague",
"Ċ",
"Ċ",
"B",
"our",
"nem",
"outh",
"Ġproduced",
"Ġone",
"Ġof",
"Ġthe",
"Ġgreatest",
"ĠPremier",
"ĠLeague",
"Ġcome",
"backs",
"Ġas",
"Ġthey",
"Ġrecovered",
"Ġfrom",
"Ġ3",
"-",
"0",
"Ġdown",
"Ġto",
"Ġbeat",
"ĠL",
"ut",
"on",
"Ġin",
"Ġa",
"Ġseven",
"-",
"goal",
"Ġthriller",
"Ġat",
"ĠVit",
"ality",
"ĠStadium",
".",
"Ċ",
"Ċ",
"The",
"ĠHat",
"ters",
"Ġwere",
"Ġirres",
"ist",
"ible",
"Ġin",
"Ġthe",
"Ġfirst",
"Ġhalf",
"Ġand",
"Ġwere",
"Ġthree",
"Ġahead",
"Ġat",
"Ġhalf",
"-",
"time",
"Ġthrough",
"Ġgoals",
"Ġfrom",
"ĠTah",
"ith",
"ĠCh",
"ong",
",",
"ĠCh",
"ied",
"oz",
"ie",
"ĠO",
"gb",
"ene",
"Ġand",
"ĠRoss",
"ĠBark",
"ley",
".",
"Ċ",
"Ċ",
"But",
"ĠBour",
"nem",
"outh",
"Ġwere",
"Ġmuch",
"Ġimproved",
"Ġafter",
"Ġthe",
"Ġbreak",
",",
"ĠDomin",
"ic",
"ĠSol",
"an",
"ke",
"'s",
"Ġbrilliant",
"Ġgoal",
"Ġspark",
"ing",
"Ġa",
"Ġstunning",
"Ġcomeback",
"Ġwhich",
"Ġwas",
"Ġcompleted",
"Ġby",
"ĠIll",
"ia",
"ĠZ",
"ab",
"arn",
"yi",
"'s",
"Ġbundled",
"Ġfinish",
"Ġand",
"ĠAnto",
"ine",
"ĠSem",
"en",
"yo",
"'s",
"Ġbl",
"ister",
"ing",
"Ġdouble",
"Ġas",
"Ġthey",
"Ġbecame",
"Ġonly",
"Ġthe",
"Ġfifth",
"Ġteam",
"Ġin",
"ĠPremier",
"ĠLeague",
"Ġhistory",
"Ġto",
"Ġoverturn",
"Ġa",
"Ġ3",
"-",
"0",
"Ġdeficit",
".",
"Ċ",
"Ċ",
"L",
"ut",
"on",
"Ġhad",
"Ġseemed",
"Ġdestined",
"Ġfor",
"Ġa",
"Ġhuge",
"Ġwin",
"Ġon",
"Ġan",
"Ġemotional",
"Ġnight",
",",
"Ġwith",
"Ġthis",
"Ġgame",
"Ġhaving",
"Ġbeen",
"Ġrearr",
"anged",
"Ġfollowing",
"Ġthe",
"ĠDecember",
"Ġfixture",
"Ġbeing",
"Ġabandoned",
"Ġwhen",
"Ġcaptain",
"ĠTom",
"ĠLock",
"yer",
"Ġsuffered",
"Ġcardiac",
"Ġarrest",
"Ġon",
"Ġthe",
"Ġpitch",
".",
"Ċ",
"Ċ",
"But",
"Ġinstead",
"Ġthey",
"Ġmissed",
"Ġthe",
"Ġchance",
"Ġto",
"Ġmove",
"Ġout",
"Ġof",
"Ġthe",
"Ġrele",
"g",
"ation",
"Ġzone",
"Ġand",
"Ġremain",
"Ġwin",
"less",
"Ġin",
"Ġtheir",
"Ġpast",
"Ġseven",
"Ġgames",
",",
"Ġstaying",
"Ġthree",
"Ġpoints",
"Ġbehind",
"Ġ17",
"th",
"-",
"placed",
"ĠNottingham",
"ĠForest",
"Ġwho",
"Ġthey",
"Ġhost",
"Ġin",
"Ġthe",
"ĠPremier",
"ĠLeague",
"Ġon",
"ĠSaturday",
".",
"Ċ",
"Ċ",
"B",
"our",
"nem",
"outh",
"Ġremain",
"Ġ13",
"th"
] |
https://pile.dataportraits.org/#JTIwJTIwcmVzaWR1YWwlMjBjb25u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CUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJlc2lkdWFsJTNEcmVzaWR1YWwlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBwcmVub3JtJTNEVHJ1ZSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJlc2lkdWFsX2luX2ZwMzIlM0RzZWxmLnJlc2lkdWFsX2luX2ZwMzIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBlcHMlM0RzZWxm | residual connection"
This Block has a slightly different structure compared to a regular
prenorm Transformer block.
The standard block is: LN -> MHA/MLP -> Add.
[Ref: https://arxiv.org/abs/2002.04745]
Here we have: Add -> LN -> Mixer, returning both
the hidden_states (output of the mixer) and the residual.
This is purely for performance reasons, as we can fuse add and LayerNorm.
The residual needs to be provided (except for the very first block).
"""
super().__init__()
self.residual_in_fp32 = residual_in_fp32
self.fused_add_norm = fused_add_norm
self.mixer = mixer_cls(dim)
self.norm = norm_cls(dim)
if self.fused_add_norm:
assert RMSNorm is not None, "RMSNorm import fails"
assert isinstance(
self.norm, (nn.LayerNorm, RMSNorm)
), "Only LayerNorm and RMSNorm are supported for fused_add_norm"
def forward(
self, hidden_states: Tensor, residual: Optional[Tensor] = None, inference_params=None
):
r"""Pass the input through the encoder layer.
Args:
hidden_states: the sequence to the encoder layer (required).
residual: hidden_states = Mixer(LN(residual))
"""
if not self.fused_add_norm:
residual = (hidden_states + residual) if residual is not None else hidden_states
hidden_states = self.norm(residual.to(dtype=self.norm.weight.dtype))
if self.residual_in_fp32:
residual = residual.to(torch.float32)
else:
fused_add_norm_fn = rms_norm_fn if isinstance(self.norm, RMSNorm) else layer_norm_fn
hidden_states, residual = fused_add_norm_fn(
hidden_states,
self.norm.weight,
self.norm.bias,
residual=residual,
prenorm=True,
residual_in_fp32=self.residual_in_fp32,
eps=self | 9.092116 | [
40512,
780,
4602,
3,
535,
50270,
1552,
15204,
556,
247,
5777,
1027,
2605,
2429,
281,
247,
3963,
187,
50270,
81,
445,
526,
4480,
19946,
2972,
15,
187,
50270,
510,
2629,
2972,
310,
27,
40850,
5204,
353,
10114,
16,
4132,
49,
5204,
5733,
15,
187,
50270,
60,
7676,
27,
5987,
1358,
39962,
15,
2061,
16,
5375,
16,
10016,
15,
27706,
1857,
62,
187,
50270,
4943,
359,
452,
27,
5733,
5204,
40850,
5204,
22347,
254,
13,
10884,
1097,
187,
50270,
783,
8763,
64,
21196,
313,
9252,
273,
253,
33947,
10,
285,
253,
12541,
15,
187,
50270,
1552,
310,
15846,
323,
3045,
4606,
13,
347,
359,
476,
34824,
823,
285,
35368,
27315,
15,
187,
50270,
510,
12541,
3198,
281,
320,
2530,
313,
16829,
323,
253,
1077,
806,
2972,
481,
187,
50270,
32488,
187,
50270,
12185,
5023,
876,
4478,
876,
1082,
187,
50270,
1286,
15,
40512,
780,
64,
249,
64,
16983,
1237,
426,
12541,
64,
249,
64,
16983,
1237,
187,
50270,
1286,
15,
71,
3197,
64,
1911,
64,
12850,
426,
29843,
64,
1911,
64,
12850,
187,
50270,
1286,
15,
24706,
254,
426,
33947,
64,
40087,
9,
4528,
10,
187,
50270,
1286,
15,
12850,
426,
5222,
64,
40087,
9,
4528,
10,
187,
50270,
338,
1881,
15,
71,
3197,
64,
1911,
64,
12850,
27,
187,
50266,
8271,
39250,
27315,
310,
417,
8256,
13,
346,
51,
3338,
27315,
1395,
10224,
3,
187,
50266,
8271,
47337,
9,
187,
50262,
1286,
15,
12850,
13,
313,
9866,
15,
19512,
27315,
13,
39250,
27315,
10,
187,
50266,
582,
346,
11564,
35368,
27315,
285,
39250,
27315,
403,
4516
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"resid",
"ual",
"Ġconnection",
"\"",
"ĊĊ",
" ",
"This",
"ĠBlock",
"Ġhas",
"Ġa",
"Ġslightly",
"Ġdifferent",
"Ġstructure",
"Ġcompared",
"Ġto",
"Ġa",
"Ġregular",
"Ċ",
" ",
"p",
"ren",
"orm",
"ĠTrans",
"former",
"Ġblock",
".",
"Ċ",
" ",
"The",
"Ġstandard",
"Ġblock",
"Ġis",
":",
"ĠLN",
"Ġ->",
"ĠM",
"HA",
"/",
"ML",
"P",
"Ġ->",
"ĠAdd",
".",
"Ċ",
" ",
"[",
"Ref",
":",
"Ġhttps",
"://",
"arxiv",
".",
"org",
"/",
"abs",
"/",
"2002",
".",
"047",
"45",
"]",
"Ċ",
" ",
"Here",
"Ġwe",
"Ġhave",
":",
"ĠAdd",
"Ġ->",
"ĠLN",
"Ġ->",
"ĠMix",
"er",
",",
"Ġreturning",
"Ġboth",
"Ċ",
" ",
"the",
"Ġhidden",
"_",
"states",
"Ġ(",
"output",
"Ġof",
"Ġthe",
"Ġmixer",
")",
"Ġand",
"Ġthe",
"Ġresidual",
".",
"Ċ",
" ",
"This",
"Ġis",
"Ġpurely",
"Ġfor",
"Ġperformance",
"Ġreasons",
",",
"Ġas",
"Ġwe",
"Ġcan",
"Ġfuse",
"Ġadd",
"Ġand",
"ĠLayer",
"Norm",
".",
"Ċ",
" ",
"The",
"Ġresidual",
"Ġneeds",
"Ġto",
"Ġbe",
"Ġprovided",
"Ġ(",
"except",
"Ġfor",
"Ġthe",
"Ġvery",
"Ġfirst",
"Ġblock",
").",
"Ċ",
" ",
"\"\"\"",
"Ċ",
" ",
"super",
"().",
"__",
"init",
"__",
"()",
"Ċ",
" ",
"self",
".",
"resid",
"ual",
"_",
"in",
"_",
"fp",
"32",
"Ġ=",
"Ġresidual",
"_",
"in",
"_",
"fp",
"32",
"Ċ",
" ",
"self",
".",
"f",
"used",
"_",
"add",
"_",
"norm",
"Ġ=",
"Ġfused",
"_",
"add",
"_",
"norm",
"Ċ",
" ",
"self",
".",
"mix",
"er",
"Ġ=",
"Ġmixer",
"_",
"cls",
"(",
"dim",
")",
"Ċ",
" ",
"self",
".",
"norm",
"Ġ=",
"Ġnorm",
"_",
"cls",
"(",
"dim",
")",
"Ċ",
" ",
"if",
"Ġself",
".",
"f",
"used",
"_",
"add",
"_",
"norm",
":",
"Ċ",
" ",
"assert",
"ĠRMS",
"Norm",
"Ġis",
"Ġnot",
"ĠNone",
",",
"Ġ\"",
"R",
"MS",
"Norm",
"Ġimport",
"Ġfails",
"\"",
"Ċ",
" ",
"assert",
"Ġisinstance",
"(",
"Ċ",
" ",
"self",
".",
"norm",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dmVkJTIwZnJvbSUyMHRoZSUyMG9yaWdpbmFsJTIwb24lMjBBcHJpbCUyMDQlMkMlMjAyMDIzLiUyMFJldHJpZXZlZCUyMEFwcmlsJTIwMyUyQyUyMDIwMjMuJTIwJTVFJTIwJTIyV2hhdCUyMGlzJTIwR1BULTQlMjBhbmQlMjBXaHklMjBEb2VzJTIwaXQlMjBNYXR0ZXIlM0YlMjIuJTIwQXByaWwlMjAzJTJDJTIwMjAyMy4lMjBBcmNoaXZlZCUyMGZyb20lMjB0aGUlMjBvcmlnaW5hbCUyMG9uJTIwQXByaWwlMjAzJTJDJTIwMjAyMy4lMjBSZXRyaWV2ZWQlMjBBcHJpbCUyMDMlMkMlMjAyMDIzLiUyMCU1RSUyMEJyb3duJTJDJTIwVG9tJTIwQi4lMjAoSnVseSUyMDIwJTJDJTIwMjAyMCkuJTIwJTIyTGFuZ3VhZ2UlMjBNb2RlbHMlMjBhcmUlMEE= | community due to its closed nature, which prevents others from building upon GPT-4's improvements. [98] [97] See also[edit] Gemini (language model) References[edit] ^ a b c Edwards, Benj (March 14, 2023). "OpenAI's GPT-4 exhibits "human-level performance" on professional benchmarks". Ars Technica. Archived from the original on March 14, 2023. Retrieved March 15, 2023. ^ Wiggers, Kyle (July 6, 2023). "OpenAI makes GPT-4 generally available". TechCrunch. Archived from the original on August 16, 2023. Retrieved August 16, 2023. ^ a b c d OpenAI (2023). "GPT-4 Technical Report". arXiv:2303.08774 [cs.CL]. ^ a b Belfield, Haydn (March 25, 2023). "If your AI model is going to sell, it has to be safe". Vox. Archived from the original on March 28, 2023. Retrieved March 30, 2023. ^ "GPT-4V(ision) system card". OpenAI. Retrieved February 5, 2024. ^ Roose, Kevin (September 28, 2023). "The New ChatGPT Can 'See' and 'Talk.' Here's What It's Like". The New York Times. Archived from the original on October 31, 2023. Retrieved October 30, 2023. ^ a b Vincent, James (March 15, 2023). "OpenAI co-founder on company's past approach to openly sharing research: "We were wrong"". The Verge. Archived from the original on March 17, 2023. Retrieved March 18, 2023. ^ Radford, Alec; Narasimhan, Karthik; Salimans, Tim; Sutskever, Ilya (June 11, 2018). "Improving Language Understanding by Generative Pre-Training" (PDF). Archived (PDF) from the original on January 26, 2021. Retrieved April 3, 2023. ^ Khandelwal, Umesh (April 1, 2023). "How Large Language GPT models evolved and work". Archived from the original on April 4, 2023. Retrieved April 3, 2023. ^ "What is GPT-4 and Why Does it Matter?". April 3, 2023. Archived from the original on April 3, 2023. Retrieved April 3, 2023. ^ Brown, Tom B. (July 20, 2020). "Language Models are | 9.187234 | [
24925,
1955,
281,
697,
4581,
3753,
13,
534,
16897,
2571,
432,
3652,
2220,
443,
5736,
14,
21,
434,
11701,
15,
544,
4185,
62,
544,
4148,
62,
2594,
671,
60,
15576,
62,
28540,
5391,
313,
12982,
1566,
10,
48176,
60,
15576,
62,
5042,
247,
270,
260,
24006,
13,
6029,
75,
313,
18489,
1638,
13,
1384,
1508,
481,
346,
9807,
18128,
434,
443,
5736,
14,
21,
15646,
346,
13961,
14,
5251,
3045,
3,
327,
5702,
49602,
3446,
1780,
84,
6439,
3737,
15,
7984,
1567,
432,
253,
3236,
327,
3919,
1638,
13,
1384,
1508,
15,
6724,
35571,
3919,
1458,
13,
1384,
1508,
15,
5042,
411,
304,
7276,
13,
25856,
313,
20443,
721,
13,
1384,
1508,
481,
346,
9807,
18128,
2789,
443,
5736,
14,
21,
3839,
2130,
3446,
18447,
14201,
3204,
15,
7984,
1567,
432,
253,
3236,
327,
4223,
1668,
13,
1384,
1508,
15,
6724,
35571,
4223,
1668,
13,
1384,
1508,
15,
5042,
247,
270,
260,
277,
7489,
18128,
313,
938,
1508,
481,
346,
40,
5736,
14,
21,
23557,
10840,
3446,
22725,
27,
17569,
20,
15,
2904,
30715,
544,
6113,
15,
3207,
1570,
5042,
247,
270,
38076,
1001,
13,
12665,
17915,
313,
18489,
2030,
13,
1384,
1508,
481,
346,
2042,
634,
14980,
1566,
310,
1469,
281,
5580,
13,
352,
556,
281,
320,
4999,
3446,
657,
1004,
15,
7984,
1567,
432,
253,
3236,
327,
3919,
3349,
13,
1384,
1508,
15,
6724,
35571,
3919,
1884,
13,
1384,
1508,
15,
5042,
346,
40,
5736,
14,
21,
55,
9,
1297,
10,
985,
3120,
3446,
7489,
18128,
15,
6724,
35571,
5080,
608,
13,
1384,
1348
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"community",
"Ġdue",
"Ġto",
"Ġits",
"Ġclosed",
"Ġnature",
",",
"Ġwhich",
"Ġprevents",
"Ġothers",
"Ġfrom",
"Ġbuilding",
"Ġupon",
"ĠG",
"PT",
"-",
"4",
"'s",
"Ġimprovements",
".",
"Ġ[",
"98",
"]",
"Ġ[",
"97",
"]",
"ĠSee",
"Ġalso",
"[",
"edit",
"]",
"ĠGem",
"ini",
"Ġ(",
"language",
"Ġmodel",
")",
"ĠReferences",
"[",
"edit",
"]",
"Ġ^",
"Ġa",
"Ġb",
"Ġc",
"ĠEdwards",
",",
"ĠBen",
"j",
"Ġ(",
"March",
"Ġ14",
",",
"Ġ20",
"23",
").",
"Ġ\"",
"Open",
"AI",
"'s",
"ĠG",
"PT",
"-",
"4",
"Ġexhibits",
"Ġ\"",
"human",
"-",
"level",
"Ġperformance",
"\"",
"Ġon",
"Ġprofessional",
"Ġbenchmarks",
"\".",
"ĠAr",
"s",
"ĠTechn",
"ica",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠMarch",
"Ġ14",
",",
"Ġ20",
"23",
".",
"ĠRet",
"rieved",
"ĠMarch",
"Ġ15",
",",
"Ġ20",
"23",
".",
"Ġ^",
"ĠW",
"ig",
"gers",
",",
"ĠKyle",
"Ġ(",
"July",
"Ġ6",
",",
"Ġ20",
"23",
").",
"Ġ\"",
"Open",
"AI",
"Ġmakes",
"ĠG",
"PT",
"-",
"4",
"Ġgenerally",
"Ġavailable",
"\".",
"ĠTech",
"Cr",
"unch",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠAugust",
"Ġ16",
",",
"Ġ20",
"23",
".",
"ĠRet",
"rieved",
"ĠAugust",
"Ġ16",
",",
"Ġ20",
"23",
".",
"Ġ^",
"Ġa",
"Ġb",
"Ġc",
"Ġd",
"ĠOpen",
"AI",
"Ġ(",
"20",
"23",
").",
"Ġ\"",
"G",
"PT",
"-",
"4",
"ĠTechnical",
"ĠReport",
"\".",
"ĠarXiv",
":",
"230",
"3",
".",
"08",
"774",
"Ġ[",
"cs",
".",
"CL",
"].",
"Ġ^",
"Ġa",
"Ġb",
"ĠBelf",
"ield",
",",
"ĠHay",
"dn",
"Ġ(",
"March",
"Ġ25",
",",
"Ġ20",
"23",
").",
"Ġ\"",
"If",
"Ġyour",
"ĠAI",
"Ġmodel",
"Ġis",
"Ġgoing",
"Ġto",
"Ġsell",
",",
"Ġit",
"Ġhas",
"Ġto",
"Ġbe",
"Ġsafe",
"\".",
"ĠV",
"ox",
".",
"ĠArch",
"ived",
"Ġfrom",
"Ġthe",
"Ġoriginal",
"Ġon",
"ĠMarch",
"Ġ28",
",",
"Ġ20",
"23",
".",
"ĠRet",
"rieved",
"ĠMarch",
"Ġ30",
",",
"Ġ20",
"23",
".",
"Ġ^",
"Ġ\"",
"G",
"PT",
"-",
"4",
"V",
"(",
"ision",
")",
"Ġsystem",
"Ġcard",
"\".",
"ĠOpen",
"AI",
".",
"ĠRet",
"rieved",
"ĠFebruary",
"Ġ5",
",",
"Ġ20",
"24"
] |
https://pile.dataportraits.org/#JTIwJTIwYWx3YXlzJTIwYWRkJTIwbmV3JTIwaW5mb3JtYXRpb24uJTBBJTIwJTIwJTIwJTIwLSUyME5vJTIwZGVjbGFyYXRpb25zJTIwYWZ0ZXIlMjBhJTIwZGVmaW5pdGlvbi4lMEEyLiUyME9ubHklMjBvbmUlMjBsaWJyYXJ5JTIwY2FuJTIwZGVjbGFyZSUyMGFuJTIwZW50aXR5JTIwd2l0aG91dCUyMCU2MGV4dGVybiU2MC4lMEEzLiUyMFN1cHBvcnQlMjBtb3ZpbmclMjBkZWNsYXJhdGlvbnMlMjBiZXR3ZWVuJTIwYWxyZWFkeS1pbXBvcnRlZCUyMCU2MGFwaSU2MCUyMGZpbGVzJTIwd2l0aG91dCUwQSUyMCUyMCUyMGFmZmVjdGluZyUyMGNvbXBpbGF0aW9uJTIwb2YlMjBjbGllbnQlMjBsaWJyYXJpZXMuJTBBJTBBJTIzJTIzJTIzJTIzJTIwTm8lMjBmb3J3YXJkJTIwZGVjbGFyYXRpb25zJT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Li4uJTIwJTdEJTBBJTYwJTYwJTYwJTBBJTBBSW4lMjBhJTIwbGlicmFyeSUyQyUyMHRoZSUyMCU2MGFwaSU2MCUyMG1pZ2h0JTIwbWFrZSUyMGFuJTIwJTYwZXh0ZXJuJTYwJTIwZGVjbGFyYXRpb24lMjB0aGF0JTIwdGhlJTIwJTYwaW1wbCU2MCUwQWltcG9ydHMlMjBhbmQlMjB1c2VzJTIwdGhlJTIwZGVmaW5pdGlvbiUyMG9mLiUyMFRoaXMlMjBpcyUyMGNvbnNpc3RlbnQlMjBiZWNhdXNlJTIwdGhlJTIwJTYwaW1wbCU2MCUyMGZpbGU= | always add new information.
- No declarations after a definition.
2. Only one library can declare an entity without `extern`.
3. Support moving declarations between already-imported `api` files without
affecting compilation of client libraries.
#### No forward declarations after declarations
In a file, a forward declaration must never follow a forward declaration or
definition for the same entity.
For example:
```carbon
class A {... }
// Invalid: Disallowed after the definition.
class A;
class B;
// Invalid: Disallowed due to repetition.
class B;
class C;
// Valid: Allowed because the definition is added.
class C {... }
```
#### Files must either use an imported declaration or declare their own
In a file, if a declaration or definition of an entity is imported, the file
must choose between either using that version or declaring its own. It cannot do
both.
For example:
```carbon
package Foo library "a" api;
class C {... }
```
```carbon
package Foo library "b" api;
import library "a";
extern class C;
// Valid: Uses the incomplete type of the extern declaration.
fn Foo(c: C*);
```
```carbon
package Foo library "c" api;
import library "a";
// Valid: Uses the complete type of the imported definition.
fn Foo(c: C);
```
```carbon
package Foo library "d" api;
import library "a";
fn Foo(c: C);
// Invalid: `Foo` used the imported `C`, so an `extern` declaration of `C` is now
// invalid.
extern class C;
```
#### Libraries cannot both define an entity and declare it `extern`
In a library, if the `impl` defines an entity, the `api` must not use `extern`
when declaring it.
For example:
```carbon
package Wiz library "a" api;
extern class C;
```
```carbon
package Wiz library "a" impl;
// Invalid: The `api` file declared `C` as `extern`.
class C {... }
```
In a library, the `api` might make an `extern` declaration that the `impl`
imports and uses the definition of. This is consistent because the `impl` file | 9.211734 | [
25737,
823,
747,
1491,
15,
187,
50274,
14,
1621,
35298,
846,
247,
5426,
15,
187,
19,
15,
7214,
581,
6335,
476,
11165,
271,
10726,
1293,
2634,
19560,
16433,
187,
20,
15,
15185,
4886,
35298,
875,
2168,
14,
2948,
264,
2634,
6682,
65,
4367,
1293,
187,
50275,
66,
887,
272,
25234,
273,
5268,
13747,
15,
187,
187,
1835,
1621,
3579,
35298,
846,
35298,
187,
187,
688,
247,
1873,
13,
247,
3579,
16204,
1364,
1620,
956,
247,
3579,
16204,
390,
187,
28692,
323,
253,
1072,
10726,
15,
187,
187,
2214,
1650,
27,
187,
187,
11202,
17027,
187,
2437,
329,
551,
1051,
748,
187,
605,
33142,
27,
5201,
31263,
846,
253,
5426,
15,
187,
2437,
329,
28,
187,
187,
2437,
378,
28,
187,
605,
33142,
27,
5201,
31263,
1955,
281,
22563,
15,
187,
2437,
378,
28,
187,
187,
2437,
330,
28,
187,
605,
33937,
27,
1876,
12997,
984,
253,
5426,
310,
2879,
15,
187,
2437,
330,
551,
1051,
748,
187,
11202,
187,
187,
1835,
23895,
1364,
2057,
897,
271,
21117,
16204,
390,
11165,
616,
1211,
187,
187,
688,
247,
1873,
13,
604,
247,
16204,
390,
5426,
273,
271,
10726,
310,
21117,
13,
253,
1873,
187,
18265,
5206,
875,
2057,
970,
326,
2715,
390,
27906,
697,
1211,
15,
733,
2550,
513,
187,
15617,
15,
187,
187,
2214,
1650,
27,
187,
187,
11202,
17027,
187,
10708,
31814,
6335,
346,
66,
3,
23370,
28,
187,
187,
2437,
330,
551,
1051,
748,
187,
11202,
187,
187,
11202,
17027,
187,
10708,
31814,
6335,
346,
67,
3,
23370,
28,
187,
2948,
6335,
346,
66,
3664
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 256 | [
"always",
"Ġadd",
"Ġnew",
"Ġinformation",
".",
"Ċ",
" ",
"-",
"ĠNo",
"Ġdeclarations",
"Ġafter",
"Ġa",
"Ġdefinition",
".",
"Ċ",
"2",
".",
"ĠOnly",
"Ġone",
"Ġlibrary",
"Ġcan",
"Ġdeclare",
"Ġan",
"Ġentity",
"Ġwithout",
"Ġ`",
"extern",
"`.",
"Ċ",
"3",
".",
"ĠSupport",
"Ġmoving",
"Ġdeclarations",
"Ġbetween",
"Ġalready",
"-",
"import",
"ed",
"Ġ`",
"api",
"`",
"Ġfiles",
"Ġwithout",
"Ċ",
" ",
"a",
"ffect",
"ing",
"Ġcompilation",
"Ġof",
"Ġclient",
"Ġlibraries",
".",
"Ċ",
"Ċ",
"####",
"ĠNo",
"Ġforward",
"Ġdeclarations",
"Ġafter",
"Ġdeclarations",
"Ċ",
"Ċ",
"In",
"Ġa",
"Ġfile",
",",
"Ġa",
"Ġforward",
"Ġdeclaration",
"Ġmust",
"Ġnever",
"Ġfollow",
"Ġa",
"Ġforward",
"Ġdeclaration",
"Ġor",
"Ċ",
"definition",
"Ġfor",
"Ġthe",
"Ġsame",
"Ġentity",
".",
"Ċ",
"Ċ",
"For",
"Ġexample",
":",
"Ċ",
"Ċ",
"```",
"carbon",
"Ċ",
"class",
"ĠA",
"Ġ{",
"...",
"Ġ}",
"Ċ",
"//",
"ĠInvalid",
":",
"ĠDis",
"allowed",
"Ġafter",
"Ġthe",
"Ġdefinition",
".",
"Ċ",
"class",
"ĠA",
";",
"Ċ",
"Ċ",
"class",
"ĠB",
";",
"Ċ",
"//",
"ĠInvalid",
":",
"ĠDis",
"allowed",
"Ġdue",
"Ġto",
"Ġrepetition",
".",
"Ċ",
"class",
"ĠB",
";",
"Ċ",
"Ċ",
"class",
"ĠC",
";",
"Ċ",
"//",
"ĠValid",
":",
"ĠAll",
"owed",
"Ġbecause",
"Ġthe",
"Ġdefinition",
"Ġis",
"Ġadded",
".",
"Ċ",
"class",
"ĠC",
"Ġ{",
"...",
"Ġ}",
"Ċ",
"```",
"Ċ",
"Ċ",
"####",
"ĠFiles",
"Ġmust",
"Ġeither",
"Ġuse",
"Ġan",
"Ġimported",
"Ġdeclaration",
"Ġor",
"Ġdeclare",
"Ġtheir",
"Ġown",
"Ċ",
"Ċ",
"In",
"Ġa",
"Ġfile",
",",
"Ġif",
"Ġa",
"Ġdeclaration",
"Ġor",
"Ġdefinition",
"Ġof",
"Ġan",
"Ġentity",
"Ġis",
"Ġimported",
",",
"Ġthe",
"Ġfile",
"Ċ",
"must",
"Ġchoose",
"Ġbetween",
"Ġeither",
"Ġusing",
"Ġthat",
"Ġversion",
"Ġor",
"Ġdeclaring",
"Ġits",
"Ġown",
".",
"ĠIt",
"Ġcannot",
"Ġdo",
"Ċ",
"both",
".",
"Ċ",
"Ċ",
"For",
"Ġexample",
":",
"Ċ",
"Ċ",
"```",
"carbon",
"Ċ",
"package",
"ĠFoo",
"Ġlibrary",
"Ġ\"",
"a",
"\"",
"Ġapi",
";",
"Ċ",
"Ċ",
"class",
"ĠC",
"Ġ{",
"...",
"Ġ}",
"Ċ",
"```",
"Ċ",
"Ċ",
"```",
"carbon",
"Ċ",
"package",
"ĠFoo",
"Ġlibrary",
"Ġ\"",
"b",
"\"",
"Ġapi",
";",
"Ċ",
"import",
"Ġlibrary",
"Ġ\"",
"a",
"\";"
] |
https://pile.dataportraits.org/#JTIwJTIwUmVlZiUyMCgyMDIwKSUyMEElMjBXaGlza2VyJTIwQXdheSUyMCgyMDIwKSUyMEJhcmJpZSUyMCUyNiUyMENoZWxzZWElM0ElMjBUaGUlMjBMb3N0JTIwQmlydGhkYXklMjAoMjAyMSklMjBCYXJiaWUlM0ElMjBCaWclMjBDaXR5JTJDJTIwQmlnJTIwRHJlYW1zJTIwKDIwMjEpJTIwQnJpZ2h0JTNBJTIwU2FtdXJhaSUyMFNvdWwlMjAoMjAyMSklMjBEb2clMjBHb25lJTIwVHJvdWJsZSUyMCgyMDIxKSUyMEV4dGluY3QlMjAoMjAyMSklMjBIaWxkYSUyMGFuZCUyMHRoZSUyME1vdW50YWluJTIwS2luZyUyMCgyMDIxKSUyME15JTIwTGl0dGxlJTIwUG9ueSUzQSUyMEElMjBOZXclMjBHZW5lcmF0aW9uJTIwKDIwMjEpJTIwT2N0b25hdXRzJTIwJTI2JTIwdGhlJTIwUmluZyUyMG9mJTIwRmlyZSUyMCgyMDIxKSUyMFJvYmluJTIwUm9iaW4lMjAoMjAyMSklMjBTZWFsJTIwVGVhbSUyMCgyMDIxKSUyMFRoZSUyMExvdWQlMjBIb3VzZSUyME1vdmllJTIwKDIwMjEpJTIwVGhlJTIwTWl0Y2hlbGxzJTIwdnMuJTIwdGhlJTIwTWFjaGluZXMlMjAoMjAyMSklMjBUcm9sbG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MFJpY2hlcyUyME5haWxlZCUyMEl0ISUyMFF1ZWVyJTIwRXllJTIwU29tZWJvZHklMjBGZWVkJTIwUGhpbCUyMEFuaW1hdGlvbiUyMEIlM0ElMjBUaGUlMjBCZWdpbm5pbmclMjBUaGUlMjBEcmFnb24lMjBQcmluY2UlMjBTaW5jZSUyMDIwMTklMjBMaXZlLWFjdGlvbiUyMEVuZ2xpc2glMjBJJTIwVGhpbmslMjBZb3UlMjBTaG91bGQlMjBMZWF2ZSUyMHdpdGglMjBUaW0lMjBSb2JpbnNvbiUyMFRoZSUyMFVtYnJlbGxhJTIwQWNhZGVteSUyMFZpcmdpbiUyMFJpdmVyJTIwVGhlJTIwV2l0Y2hlciUyME90aGVyJTIwQWluJTBB | Reef (2020) A Whisker Away (2020) Barbie & Chelsea: The Lost Birthday (2021) Barbie: Big City, Big Dreams (2021) Bright: Samurai Soul (2021) Dog Gone Trouble (2021) Extinct (2021) Hilda and the Mountain King (2021) My Little Pony: A New Generation (2021) Octonauts & the Ring of Fire (2021) Robin Robin (2021) Seal Team (2021) The Loud House Movie (2021) The Mitchells vs. the Machines (2021) Trollhunters: Rise of the Titans (2021) Vivo (2021) Wish Dragon (2021) Barbie: Mermaid Power (2022) Bubble (2022) Rabbids Invasion: Mission to Mars (2022) The House (2022) Marmaduke (2022) Chickenhare and the Hamster of Darkness (2022) Rise of the Teenage Mutant Ninja Turtles: The Movie (2022) Drifting Home (2022) Entergalactic (2022) Scrooge: A Christmas Carol (2022) Black Clover: Sword of the Wizard King (2023) Barbie: Skipper and the Big Babysitting Adventure (2023) Nimona (2023) Chicken Run: Dawn of the Nugget (2023) Orion and the Dark (2024) The Casagrandes Movie (2024) Woody Woodpecker Goes to Camp (2024) My Oni Girl (2024) Interactive Cat Burglar (2022) Barbie: Epic Road Trip (2022) We Lost Our Human (2023) Upcoming Ultraman: Rising (2024) Spellbound (2024) That Christmas (2024) The Witcher: Sirens of the Deep (2024) K-Pop: Demon Hunters (2025) Pookoo (2025) The Twits (2025) Ray Gunn (TBA) The Shrinking of Treehorn (TBA) Current series Original ended series 2012–2018 2019 onwards Continuation series Specials Upcoming series v t e Netflix original current series Since 2016 Stranger Things Since 2017 Big Mouth Since 2018 Live-action Elite Non-fiction Car Masters: Rust to Riches Nailed It! Queer Eye Somebody Feed Phil Animation B: The Beginning The Dragon Prince Since 2019 Live-action English I Think You Should Leave with Tim Robinson The Umbrella Academy Virgin River The Witcher Other Ain | 9.225799 | [
1785,
832,
313,
14952,
10,
329,
1536,
1886,
254,
37811,
313,
14952,
10,
4033,
17782,
708,
25579,
27,
380,
26872,
28919,
1201,
313,
938,
1797,
10,
4033,
17782,
27,
7967,
3228,
13,
7967,
48774,
313,
938,
1797,
10,
25225,
27,
5769,
40172,
25293,
313,
938,
1797,
10,
21048,
443,
531,
1535,
4434,
313,
938,
1797,
10,
9052,
4291,
313,
938,
1797,
10,
388,
34223,
285,
253,
15939,
4377,
313,
938,
1797,
10,
2752,
11573,
367,
2421,
27,
329,
1457,
28598,
313,
938,
1797,
10,
3821,
27245,
84,
708,
253,
22668,
273,
8726,
313,
938,
1797,
10,
22463,
22463,
313,
938,
1797,
10,
1023,
267,
10589,
313,
938,
1797,
10,
380,
418,
2995,
3995,
27615,
313,
938,
1797,
10,
380,
19980,
84,
4632,
15,
253,
20310,
1100,
313,
938,
1797,
10,
308,
1811,
73,
328,
1336,
27,
39952,
273,
253,
47799,
313,
938,
1797,
10,
657,
6073,
313,
938,
1797,
10,
47836,
22371,
313,
938,
1797,
10,
4033,
17782,
27,
353,
693,
13774,
8916,
313,
938,
1423,
10,
378,
35308,
313,
938,
1423,
10,
416,
8902,
2352,
17595,
4930,
27,
22368,
281,
13648,
313,
938,
1423,
10,
380,
3995,
313,
938,
1423,
10,
353,
1513,
324,
17936,
313,
938,
1423,
10,
46797,
17305,
609,
285,
253,
5516,
2971,
273,
14182,
1255,
313,
938,
1423,
10,
39952,
273,
253,
41673,
486,
15601,
386,
427,
34483,
308,
4405,
868,
27,
380,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",
"21",
")",
"ĠBar",
"bie",
":",
"ĠBig",
"ĠCity",
",",
"ĠBig",
"ĠDreams",
"Ġ(",
"20",
"21",
")",
"ĠBright",
":",
"ĠSam",
"urai",
"ĠSoul",
"Ġ(",
"20",
"21",
")",
"ĠDog",
"ĠG",
"one",
"ĠTr",
"ouble",
"Ġ(",
"20",
"21",
")",
"ĠExt",
"inct",
"Ġ(",
"20",
"21",
")",
"ĠH",
"ilda",
"Ġand",
"Ġthe",
"ĠMountain",
"ĠKing",
"Ġ(",
"20",
"21",
")",
"ĠMy",
"ĠLittle",
"ĠP",
"ony",
":",
"ĠA",
"ĠNew",
"ĠGeneration",
"Ġ(",
"20",
"21",
")",
"ĠOct",
"onaut",
"s",
"Ġ&",
"Ġthe",
"ĠRing",
"Ġof",
"ĠFire",
"Ġ(",
"20",
"21",
")",
"ĠRobin",
"ĠRobin",
"Ġ(",
"20",
"21",
")",
"ĠSe",
"al",
"ĠTeam",
"Ġ(",
"20",
"21",
")",
"ĠThe",
"ĠL",
"oud",
"ĠHouse",
"ĠMovie",
"Ġ(",
"20",
"21",
")",
"ĠThe",
"ĠMitchell",
"s",
"Ġvs",
".",
"Ġthe",
"ĠMach",
"ines",
"Ġ(",
"20",
"21",
")",
"ĠT",
"roll",
"h",
"un",
"ters",
":",
"ĠRise",
"Ġof",
"Ġthe",
"ĠTitans",
"Ġ(",
"20",
"21",
")",
"ĠV",
"ivo",
"Ġ(",
"20",
"21",
")",
"ĠWish",
"ĠDragon",
"Ġ(",
"20",
"21",
")",
"ĠBar",
"bie",
":",
"ĠM",
"erm",
"aid",
"ĠPower",
"Ġ(",
"20",
"22",
")",
"ĠB",
"ubble",
"Ġ(",
"20",
"22",
")",
"ĠR",
"abb",
"ids",
"ĠInv",
"asion",
":",
"ĠMission",
"Ġto",
"ĠMars",
"Ġ(",
"20",
"22",
")",
"ĠThe",
"ĠHouse",
"Ġ(",
"20",
"22",
")",
"ĠM",
"arm",
"ad",
"uke",
"Ġ(",
"20",
"22",
")",
"ĠChick",
"enh",
"are",
"Ġand",
"Ġthe",
"ĠHam",
"ster",
"Ġof",
"ĠDark",
"ness",
"Ġ(",
"20",
"22",
")",
"ĠRise",
"Ġof",
"Ġthe",
"ĠTeen",
"age",
"ĠMut",
"ant",
"ĠN",
"inja",
"ĠT",
"urt",
"les",
":",
"ĠThe",
"ĠMovie",
"Ġ(",
"20",
"22",
")",
"ĠDr",
"ifting",
"ĠHome",
"Ġ(",
"20",
"22",
")",
"ĠEnter",
"gal",
"actic",
"Ġ(",
"20",
"22",
")",
"ĠSc",
"ro",
"oge",
":",
"ĠA",
"ĠChristmas",
"ĠCarol",
"Ġ(",
"20"
] |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 35