task
stringclasses 1
value | input_ids
sequencelengths 46
4.09k
| attention_mask
sequencelengths 46
4.09k
| labels
sequencelengths 47
4.09k
| raw_inputs
stringlengths 160
34.2k
| raw_labels
stringlengths 3
16k
|
---|---|---|---|---|---|
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
2777,
1817,
2292,
53137,
11,
935,
51776,
8,
341,
286,
1456,
341,
310,
935,
1318,
5596,
284,
51776,
5402,
30810,
3,
3147,
310,
422,
320,
18753,
1996,
976,
220,
20,
1393,
758,
18753,
58,
16,
948,
7324,
446,
82,
15,
2830,
341,
394,
2571,
502,
22085,
446,
8087,
51776,
907,
803,
310,
557,
310,
1317,
3712,
284,
5843,
61985,
47315,
58,
17,
1145,
220,
845,
317,
310,
5027,
1318,
12290,
284,
17322,
47315,
58,
18,
948,
998,
41426,
1449,
310,
5027,
1318,
14592,
15,
284,
17322,
47315,
58,
19,
948,
998,
41426,
5344,
310,
528,
452,
284,
320,
396,
8,
4242,
26357,
7,
17,
11,
3712,
3662,
220,
845,
612,
220,
15,
21158,
317,
310,
528,
436,
284,
320,
396,
8,
3712,
3662,
220,
23,
612,
220,
15,
9197,
280,
310,
528,
281,
284,
320,
396,
8,
3712,
415,
612,
220,
15,
9197,
401,
310,
5027,
1318,
14592,
16,
284,
7683,
3655,
7840,
3655,
40890,
6511,
43262,
446,
8729,
12,
23,
4063,
12290,
11,
452,
11,
436,
11,
281,
11,
220,
843,
629,
310,
422,
320,
51182,
15,
1996,
976,
14592,
16,
1996,
8,
471,
905,
401,
310,
528,
1121,
284,
220,
15,
280,
310,
369,
320,
396,
602,
284,
220,
15,
26,
602,
366,
14592,
15,
1996,
26,
602,
2516,
341,
394,
1121,
8832,
14592,
15,
1004,
60,
6440,
14592,
16,
1004,
947,
310,
457,
310,
471,
1121,
624,
220,
15,
280,
286,
335,
2339,
320,
42984,
57737,
384,
8,
341,
310,
2571,
502,
41927,
446,
41,
11435,
3250,
956,
1862,
20677,
12,
23,
47191,
286,
335,
2339,
320,
15777,
15712,
1378,
384,
8,
341,
310,
2571,
502,
41927,
446,
41,
11435,
3250,
956,
1862,
22466,
16,
6616,
6269,
477,
97027,
39196,
4146,
47191,
286,
457,
262,
457,
65434,
25,
128001,
128000,
28474,
279,
17665,
61947,
3636,
311,
264,
51776,
3636,
382,
36913,
256,
53137,
220,
57411,
428,
3636,
627,
36913,
256,
51776,
220,
1156,
3655,
51776,
3636,
382,
66103,
837,
422,
53137,
9248,
51776,
907,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
28474,
279,
17665,
61947,
3636,
311,
264,
51776,
3636,
382,
36913,
256,
53137,
220,
57411,
428,
3636,
627,
36913,
256,
51776,
220,
1156,
3655,
51776,
3636,
382,
66103,
837,
422,
53137,
9248,
51776,
907,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static boolean check(String passwd, String hashed) {
try {
String[] parts = hashed.split("\\$");
if (parts.length != 5 || !parts[1].equals("s0")) {
throw new IllegalArgumentException("Invalid hashed value");
}
long params = Long.parseLong(parts[2], 16);
byte[] salt = decode(parts[3].toCharArray());
byte[] derived0 = decode(parts[4].toCharArray());
int N = (int) Math.pow(2, params >> 16 & 0xffff);
int r = (int) params >> 8 & 0xff;
int p = (int) params & 0xff;
byte[] derived1 = SCrypt.scrypt(passwd.getBytes("UTF-8"), salt, N, r, p, 32);
if (derived0.length != derived1.length) return false;
int result = 0;
for (int i = 0; i < derived0.length; i++) {
result |= derived0[i] ^ derived1[i];
}
return result == 0;
} catch (UnsupportedEncodingException e) {
throw new IllegalStateException("JVM doesn't support UTF-8?");
} catch (GeneralSecurityException e) {
throw new IllegalStateException("JVM doesn't support SHA1PRNG or HMAC_SHA256?");
}
}
Documentation: | Compare the supplied plaintext password to a hashed password.
@param passwd Plaintext password.
@param hashed scrypt hashed password.
@return true if passwd matches hashed value. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
17916,
11388,
368,
3872,
34181,
17745,
1378,
341,
286,
935,
2709,
19249,
284,
76596,
446,
437,
39191,
803,
286,
935,
2709,
678,
284,
76596,
446,
437,
2710,
3147,
286,
369,
320,
19249,
5438,
551,
9683,
10883,
2189,
341,
310,
422,
320,
1132,
40209,
50327,
9835,
19249,
570,
20509,
2189,
341,
394,
369,
320,
3204,
2709,
551,
10293,
10883,
2189,
341,
504,
422,
320,
437,
40209,
50327,
9835,
678,
570,
20509,
2189,
341,
667,
471,
502,
17916,
7,
1132,
11,
2709,
317,
504,
457,
394,
457,
310,
457,
286,
557,
286,
935,
3835,
284,
935,
8180,
446,
42984,
5452,
1034,
82,
1034,
82,
498,
2709,
19249,
11,
2709,
678,
317,
286,
2571,
502,
34181,
17745,
1378,
8282,
317,
262,
457,
65434,
25,
128001,
128000,
48152,
311,
11388,
279,
1510,
5452,
382,
66103,
578,
1510,
5452,
382,
31,
8262,
34181,
17745,
1378,
422,
279,
5452,
4250,
387,
16914,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
48152,
311,
11388,
279,
1510,
5452,
382,
66103,
578,
1510,
5452,
382,
31,
8262,
34181,
17745,
1378,
422,
279,
5452,
4250,
387,
16914,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static Platform detect() throws UnsupportedPlatformException {
String osArch = getProperty("os.arch");
String osName = getProperty("os.name");
for (Arch arch : Arch.values()) {
if (arch.pattern.matcher(osArch).matches()) {
for (OS os : OS.values()) {
if (os.pattern.matcher(osName).matches()) {
return new Platform(arch, os);
}
}
}
}
String msg = String.format("Unsupported platform %s %s", osArch, osName);
throw new UnsupportedPlatformException(msg);
}
Documentation: | Attempt to detect the current platform.
@return The current platform.
@throws UnsupportedPlatformException if the platform cannot be detected. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
366,
51,
29,
350,
82898,
38407,
12809,
1401,
8,
341,
286,
422,
320,
5607,
1061,
2276,
624,
854,
8,
341,
310,
471,
320,
51,
8,
854,
280,
286,
457,
286,
471,
320,
51,
8,
83028,
2276,
673,
4962,
317,
262,
457,
65434,
25,
128001,
128000,
50458,
279,
2494,
8999,
828,
382,
36913,
1401,
482,
279,
8999,
828,
1401,
198,
66103,
279,
2494,
8999,
828,
907,
369,
420,
1401
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
50458,
279,
2494,
8999,
828,
382,
36913,
1401,
482,
279,
8999,
828,
1401,
198,
66103,
279,
2494,
8999,
828,
907,
369,
420,
1401,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public <T> T getNodeMetaData(Object key) {
if (metaDataMap == null) {
return (T) null;
}
return (T) metaDataMap.get(key);
}
Documentation: | Gets the node meta data.
@param key - the meta data key
@return the node meta data value for this key |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
3048,
1997,
38407,
4444,
790,
1997,
1023,
8,
341,
286,
422,
320,
1605,
25932,
1061,
2276,
624,
854,
8,
341,
310,
471,
280,
286,
457,
286,
422,
320,
5607,
1061,
2276,
624,
854,
8,
341,
310,
83028,
2276,
284,
502,
1796,
19004,
545,
286,
457,
286,
83028,
2276,
3681,
2460,
17532,
25932,
1061,
2276,
317,
262,
457,
65434,
25,
128001,
128000,
57377,
552,
682,
2494,
8999,
828,
505,
279,
1023,
2494,
311,
420,
832,
198,
36913,
1023,
482,
279,
1023,
2494
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
57377,
552,
682,
2494,
8999,
828,
505,
279,
1023,
2494,
311,
420,
832,
198,
36913,
1023,
482,
279,
1023,
2494,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void copyNodeMetaData(ASTNode other) {
if (other.metaDataMap == null) {
return;
}
if (metaDataMap == null) {
metaDataMap = new ListHashMap();
}
metaDataMap.putAll(other.metaDataMap);
}
Documentation: | Copies all node meta data from the other node to this one
@param other - the other node |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
743,
1997,
38407,
12809,
1401,
11,
3075,
907,
8,
341,
286,
422,
320,
798,
419,
2994,
8,
2571,
502,
18370,
62615,
47873,
1480,
446,
51,
4588,
311,
743,
8999,
828,
449,
854,
1401,
389,
6768,
576,
42549,
803,
286,
422,
320,
5607,
1061,
2276,
624,
854,
8,
341,
310,
83028,
2276,
284,
502,
1796,
19004,
545,
286,
457,
286,
3075,
2362,
284,
83028,
2276,
3681,
4962,
34275,
317,
286,
422,
320,
820,
5947,
2994,
8,
2571,
502,
18370,
62615,
47873,
1480,
446,
51,
4588,
311,
33316,
6484,
8999,
828,
6768,
576,
42549,
803,
262,
457,
65434,
25,
128001,
128000,
31275,
279,
2494,
8999,
828,
382,
36913,
1401,
482,
279,
8999,
828,
1401,
198,
36913,
907,
482,
279,
8999,
828,
907,
198,
31,
8262,
18370,
62615,
47873,
1480,
422,
1401,
374,
854,
477,
1070,
374,
2736,
8999,
198,
695,
1234,
430,
1401
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
31275,
279,
2494,
8999,
828,
382,
36913,
1401,
482,
279,
8999,
828,
1401,
198,
36913,
907,
482,
279,
8999,
828,
907,
198,
31,
8262,
18370,
62615,
47873,
1480,
422,
1401,
374,
854,
477,
1070,
374,
2736,
8999,
198,
695,
1234,
430,
1401,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void setNodeMetaData(Object key, Object value) {
if (key==null) throw new GroovyBugError("Tried to set meta data with null key on "+this+".");
if (metaDataMap == null) {
metaDataMap = new ListHashMap();
}
Object old = metaDataMap.put(key,value);
if (old!=null) throw new GroovyBugError("Tried to overwrite existing meta data "+this+".");
}
Documentation: | Sets the node meta data.
@param key - the meta data key
@param value - the meta data value
@throws GroovyBugError if key is null or there is already meta
data under that key |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
3075,
2231,
1997,
38407,
12809,
1401,
11,
3075,
907,
8,
341,
286,
422,
320,
798,
624,
854,
8,
2571,
502,
18370,
62615,
47873,
1480,
446,
51,
4588,
311,
743,
8999,
828,
449,
854,
1401,
389,
330,
489,
420,
489,
88360,
286,
422,
320,
5607,
1061,
2276,
624,
854,
8,
341,
310,
83028,
2276,
284,
502,
1796,
19004,
545,
286,
457,
286,
471,
83028,
2276,
3681,
4962,
11,
907,
317,
262,
457,
65434,
25,
128001,
128000,
31275,
279,
2494,
8999,
828,
719,
6276,
927,
26372,
2819,
382,
36913,
1401,
256,
482,
279,
8999,
828,
1401,
198,
36913,
907,
482,
279,
8999,
828,
907,
198,
66103,
279,
2362,
2494,
8999,
828,
907,
369,
420,
1401,
198,
31,
8262,
18370,
62615,
47873,
1480,
422,
1401,
374,
854
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
31275,
279,
2494,
8999,
828,
719,
6276,
927,
26372,
2819,
382,
36913,
1401,
256,
482,
279,
8999,
828,
1401,
198,
36913,
907,
482,
279,
8999,
828,
907,
198,
66103,
279,
2362,
2494,
8999,
828,
907,
369,
420,
1401,
198,
31,
8262,
18370,
62615,
47873,
1480,
422,
1401,
374,
854,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public Object putNodeMetaData(Object key, Object value) {
if (key == null) throw new GroovyBugError("Tried to set meta data with null key on " + this + ".");
if (metaDataMap == null) {
metaDataMap = new ListHashMap();
}
return metaDataMap.put(key, value);
}
Documentation: | Sets the node meta data but allows overwriting values.
@param key - the meta data key
@param value - the meta data value
@return the old node meta data value for this key
@throws GroovyBugError if key is null |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
4148,
1997,
38407,
12809,
1401,
8,
341,
286,
422,
320,
798,
419,
2994,
8,
2571,
502,
18370,
62615,
47873,
1480,
446,
51,
4588,
311,
4148,
8999,
828,
449,
854,
1401,
6768,
576,
42549,
803,
286,
422,
320,
5607,
1061,
2276,
624,
854,
8,
341,
310,
471,
280,
286,
457,
286,
83028,
2276,
4955,
4962,
317,
262,
457,
65434,
25,
128001,
128000,
6728,
10296,
264,
2494,
8999,
828,
4441,
382,
36913,
1401,
482,
279,
8999,
828,
1401,
198,
31,
8262,
18370,
62615,
47873,
1480,
422,
279,
1401,
374,
854
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
6728,
10296,
264,
2494,
8999,
828,
4441,
382,
36913,
1401,
482,
279,
8999,
828,
1401,
198,
31,
8262,
18370,
62615,
47873,
1480,
422,
279,
1401,
374,
854,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void removeNodeMetaData(Object key) {
if (key==null) throw new GroovyBugError("Tried to remove meta data with null key "+this+".");
if (metaDataMap == null) {
return;
}
metaDataMap.remove(key);
}
Documentation: | Removes a node meta data entry.
@param key - the meta data key
@throws GroovyBugError if the key is null |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
16842,
1767,
1207,
861,
86137,
1577,
1404,
8,
341,
286,
422,
320,
99461,
624,
854,
8,
2571,
502,
41927,
446,
15346,
539,
1650,
1207,
861,
86137,
389,
264,
2536,
3502,
8500,
8010,
1357,
6174,
803,
286,
528,
2798,
3915,
284,
505,
280,
286,
422,
320,
3975,
3915,
366,
220,
15,
8,
341,
310,
2798,
3915,
1447,
1404,
280,
286,
457,
286,
528,
2798,
1271,
284,
311,
280,
286,
422,
320,
3975,
1271,
366,
220,
15,
8,
341,
310,
2798,
1271,
1447,
1404,
280,
286,
457,
286,
422,
320,
3975,
3915,
871,
2798,
1271,
8,
341,
310,
471,
502,
16842,
1767,
6024,
8500,
949,
2798,
1271,
551,
2798,
1271,
489,
220,
16,
11,
2798,
3915,
489,
220,
16,
11,
837,
317,
286,
457,
286,
471,
502,
16842,
1767,
9957,
3915,
11,
29408,
949,
2798,
1271,
489,
220,
16,
551,
2798,
1271,
11,
905,
317,
262,
457,
65434,
25,
128001,
128000,
32,
1749,
369,
26679,
505,
323,
311,
2038,
994,
1701,
420,
1357,
6174,
311,
1963,
459,
24069,
1665,
315,
279,
5300,
1404,
627,
95294,
1193,
1511,
34167,
2949,
18370,
62615,
719,
5505,
422,
7999,
2134,
53080,
1862,
369,
701,
1866,
71643,
382,
36913,
1404,
279,
1404,
315,
279,
24069,
1694,
31681,
198,
66103,
279,
16997,
2134,
2038,
320,
4291,
220,
16,
3779,
311,
279,
311,
907,
11,
5644,
369,
8405,
311,
1207,
861
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
32,
1749,
369,
26679,
505,
323,
311,
2038,
994,
1701,
420,
1357,
6174,
311,
1963,
459,
24069,
1665,
315,
279,
5300,
1404,
627,
95294,
1193,
1511,
34167,
2949,
18370,
62615,
719,
5505,
422,
7999,
2134,
53080,
1862,
369,
701,
1866,
71643,
382,
36913,
1404,
279,
1404,
315,
279,
24069,
1694,
31681,
198,
66103,
279,
16997,
2134,
2038,
320,
4291,
220,
16,
3779,
311,
279,
311,
907,
11,
5644,
369,
8405,
311,
1207,
861,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public RangeInfo subListBorders(int size) {
if (inclusive == null) throw new IllegalStateException("Should not call subListBorders on a non-inclusive aware IntRange");
int tempFrom = from;
if (tempFrom < 0) {
tempFrom += size;
}
int tempTo = to;
if (tempTo < 0) {
tempTo += size;
}
if (tempFrom > tempTo) {
return new RangeInfo(inclusive ? tempTo : tempTo + 1, tempFrom + 1, true);
}
return new RangeInfo(tempFrom, inclusive ? tempTo + 1 : tempTo, false);
}
Documentation: | A method for determining from and to information when using this IntRange to index an aggregate object of the specified size.
Normally only used internally within Groovy but useful if adding range indexing support for your own aggregates.
@param size the size of the aggregate being indexed
@return the calculated range information (with 1 added to the to value, ready for providing to subList |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
2682,
742,
1893,
45394,
3607,
32468,
1997,
37631,
1999,
11,
8825,
1997,
3424,
1997,
11,
935,
41488,
678,
11,
22504,
41488,
4818,
8,
987,
286,
6872,
1997,
41488,
284,
502,
6872,
1997,
7961,
394,
41488,
678,
1909,
394,
3424,
1997,
673,
68037,
25895,
394,
3308,
5628,
5168,
30905,
4283,
1909,
394,
3712,
9942,
27735,
1997,
24541,
1535,
330,
970,
2830,
1909,
394,
3308,
1997,
49477,
18194,
1909,
394,
41488,
4818,
741,
286,
41488,
995,
38234,
18015,
3800,
741,
286,
443,
923,
433,
311,
279,
538,
319,
286,
37631,
1999,
1388,
3607,
14505,
466,
741,
262,
457,
65434,
25,
128001,
128000,
55968,
264,
41488,
1749,
449,
279,
2728,
2547,
382,
36913,
37631,
1999,
279,
538,
311,
902,
584,
690,
923,
279,
41488,
198,
36913,
3424,
1997,
692,
279,
2115,
311,
1203,
279,
41488,
198,
36913,
41488,
678,
257,
279,
836,
315,
279,
41488,
198,
36913,
41488,
4818,
262,
279,
5224,
14393,
279,
41488,
2565
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
55968,
264,
41488,
1749,
449,
279,
2728,
2547,
382,
36913,
37631,
1999,
279,
538,
311,
902,
584,
690,
923,
279,
41488,
198,
36913,
3424,
1997,
692,
279,
2115,
311,
1203,
279,
41488,
198,
36913,
41488,
678,
257,
279,
836,
315,
279,
41488,
198,
36913,
41488,
4818,
262,
279,
5224,
14393,
279,
41488,
2565,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: protected void createSetterMethod(ClassNode declaringClass, PropertyNode propertyNode, String setterName, Statement setterBlock) {
MethodNode setter = new MethodNode(
setterName,
propertyNode.getModifiers(),
ClassHelper.VOID_TYPE,
params(param(propertyNode.getType(), "value")),
ClassNode.EMPTY_ARRAY,
setterBlock);
setter.setSynthetic(true);
// add it to the class
declaringClass.addMethod(setter);
}
Documentation: | Creates a setter method with the given body.
@param declaringClass the class to which we will add the setter
@param propertyNode the field to back the setter
@param setterName the name of the setter
@param setterBlock the statement representing the setter block |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
3881,
1271,
16352,
1999,
12568,
7,
16352,
1999,
1997,
8598,
2547,
8,
3872,
71181,
9595,
1378,
341,
286,
23887,
538,
12568,
284,
636,
16352,
1999,
12568,
15582,
13,
17483,
52151,
2566,
6139,
6997,
545,
286,
1418,
320,
1058,
12568,
23652,
2189,
341,
310,
8922,
4665,
2317,
284,
854,
280,
310,
1456,
341,
394,
3308,
1997,
538,
1997,
284,
320,
1999,
1997,
8,
538,
12568,
4630,
545,
394,
2317,
284,
538,
1997,
673,
3413,
1020,
50333,
545,
394,
422,
320,
2196,
624,
854,
1393,
2317,
65549,
366,
10474,
1393,
320,
2196,
65549,
624,
10474,
1024,
758,
2196,
65549,
12833,
595,
341,
504,
528,
4445,
284,
220,
16,
280,
504,
23887,
27,
32697,
1999,
1997,
29,
15441,
284,
538,
1997,
673,
32697,
20678,
545,
504,
1418,
320,
6997,
23652,
2189,
341,
667,
15441,
4630,
545,
667,
4445,
3591,
504,
457,
504,
2547,
8692,
5491,
11,
502,
29458,
2014,
1420,
46157,
11,
4445,
705,
538,
1997,
317,
394,
457,
310,
335,
2339,
320,
65602,
9595,
1378,
384,
8,
341,
394,
443,
4498,
1555,
11,
636,
1480,
53866,
1020,
18910,
2746,
14199,
368,
690,
8346,
198,
310,
335,
2339,
320,
84933,
308,
375,
8,
341,
394,
18370,
62615,
47873,
1480,
342,
1395,
284,
502,
18370,
62615,
47873,
1480,
446,
54959,
18576,
16429,
1378,
498,
308,
375,
317,
394,
2349,
47873,
1199,
3348,
1395,
11,
2317,
317,
394,
2571,
342,
1395,
280,
310,
335,
2339,
320,
77435,
62615,
47873,
1480,
384,
8,
341,
394,
2349,
47873,
1199,
2069,
11,
2317,
317,
394,
2571,
384,
280,
310,
335,
2339,
320,
2822,
1999,
2685,
6788,
1480,
384,
8,
341,
394,
443,
5149,
311,
636,
810,
8558,
304,
1162,
264,
24999,
315,
264,
538,
374,
6799,
198,
394,
443,
8051,
433,
13434,
956,
617,
198,
394,
5625,
1844,
62308,
1378,
1271,
65602,
1480,
2069,
317,
310,
335,
2339,
320,
1378,
384,
8,
341,
394,
5625,
1844,
62308,
1378,
1271,
65602,
1480,
2069,
317,
310,
457,
286,
557,
286,
636,
1480,
54794,
1020,
18910,
2746,
14199,
545,
262,
457,
65434,
25,
128001,
128000,
32,
6471,
5696,
369,
19486,
7677,
311,
682,
6156,
3308,
12568,
304,
198,
414,
23276,
13,
220,
71250,
92620,
8316,
430,
617,
2736,
1027,
15590,
198,
20322,
279,
1510,
10474,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
32,
6471,
5696,
369,
19486,
7677,
311,
682,
6156,
3308,
12568,
304,
198,
414,
23276,
13,
220,
71250,
92620,
8316,
430,
617,
2736,
1027,
15590,
198,
20322,
279,
1510,
10474,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void applyToPrimaryClassNodes(PrimaryClassNodeOperation body) throws CompilationFailedException {
Iterator classNodes = getPrimaryClassNodes(body.needSortedInput()).iterator();
while (classNodes.hasNext()) {
SourceUnit context = null;
try {
ClassNode classNode = (ClassNode) classNodes.next();
context = classNode.getModule().getContext();
if (context == null || context.phase < phase || (context.phase == phase && !context.phaseComplete)) {
int offset = 1;
Iterator<InnerClassNode> iterator = classNode.getInnerClasses();
while (iterator.hasNext()) {
iterator.next();
offset++;
}
body.call(context, new GeneratorContext(this.ast, offset), classNode);
}
} catch (CompilationFailedException e) {
// fall through, getErrorReporter().failIfErrors() will trigger
} catch (NullPointerException npe) {
GroovyBugError gbe = new GroovyBugError("unexpected NullpointerException", npe);
changeBugText(gbe, context);
throw gbe;
} catch (GroovyBugError e) {
changeBugText(e, context);
throw e;
} catch (NoClassDefFoundError e) {
// effort to get more logging in case a dependency of a class is loaded
// although it shouldn't have
convertUncaughtExceptionToCompilationError(e);
} catch (Exception e) {
convertUncaughtExceptionToCompilationError(e);
}
}
getErrorCollector().failIfErrors();
}
Documentation: | A loop driver for applying operations to all primary ClassNodes in
our AST. Automatically skips units that have already been processed
through the current phase. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
366,
51,
29,
350,
449,
74676,
74166,
7728,
11,
571,
54954,
4975,
3764,
28,
16778,
941,
3150,
11,
2671,
16160,
10248,
4340,
31004,
2247,
10248,
4340,
65400,
81254,
56667,
3203,
29,
22722,
8,
3872,
9530,
341,
286,
25899,
1988,
284,
7728,
53164,
545,
286,
53158,
2612,
284,
7728,
67216,
545,
286,
1456,
341,
310,
350,
1121,
284,
22722,
8692,
1792,
3075,
21692,
1379,
11,
2612,
4649,
310,
25899,
2798,
16,
284,
1988,
280,
310,
1988,
284,
854,
280,
310,
2798,
16,
4757,
545,
310,
53158,
2798,
17,
284,
2612,
280,
310,
2612,
284,
854,
280,
310,
2798,
17,
4757,
1454,
310,
471,
1121,
280,
286,
335,
5616,
341,
310,
3345,
2409,
12358,
5498,
317,
310,
3345,
2409,
12358,
11304,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
12465,
288,
279,
21628,
596,
25899,
323,
53158,
311,
279,
22722,
13,
220,
578,
198,
62075,
690,
387,
8036,
1306,
279,
22722,
4780,
11,
1524,
422,
459,
4788,
198,
285,
15338,
382,
36913,
7728,
220,
264,
21628,
198,
36913,
22722,
264,
56667,
198,
66103,
279,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
20,
13,
17
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
12465,
288,
279,
21628,
596,
25899,
323,
53158,
311,
279,
22722,
13,
220,
578,
198,
62075,
690,
387,
8036,
1306,
279,
22722,
4780,
11,
1524,
422,
459,
4788,
198,
285,
15338,
382,
36913,
7728,
220,
264,
21628,
198,
36913,
22722,
264,
56667,
198,
66103,
279,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
20,
13,
17,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static <T> T withStreams(Socket socket, @ClosureParams(value=SimpleType.class, options={"java.io.InputStream","java.io.OutputStream"}) Closure<T> closure) throws IOException {
InputStream input = socket.getInputStream();
OutputStream output = socket.getOutputStream();
try {
T result = closure.call(new Object[]{input, output});
InputStream temp1 = input;
input = null;
temp1.close();
OutputStream temp2 = output;
output = null;
temp2.close();
return result;
} finally {
closeWithWarning(input);
closeWithWarning(output);
}
}
Documentation: | Passes the Socket's InputStream and OutputStream to the closure. The
streams will be closed after the closure returns, even if an exception
is thrown.
@param socket a Socket
@param closure a Closure
@return the value returned by the closure
@throws IOException if an IOException occurs.
@since 1.5.2 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
366,
51,
29,
350,
76398,
74676,
74166,
7728,
11,
571,
54954,
4975,
3764,
28,
16778,
941,
3150,
11,
2671,
16160,
10248,
4340,
8513,
10689,
2247,
10248,
4340,
8513,
13087,
81254,
56667,
3203,
29,
22722,
8,
3872,
9530,
341,
286,
25899,
1988,
284,
7728,
53164,
545,
286,
53158,
2612,
284,
7728,
67216,
545,
286,
98886,
297,
437,
284,
502,
98886,
11304,
317,
286,
3075,
10689,
297,
285,
284,
502,
3075,
10689,
5498,
317,
286,
1456,
341,
310,
350,
1121,
284,
22722,
8692,
1792,
3075,
21692,
30148,
11,
297,
437,
4649,
310,
25899,
2798,
16,
284,
297,
285,
280,
310,
297,
285,
284,
854,
280,
310,
2798,
16,
4757,
545,
310,
2798,
16,
284,
1988,
280,
310,
1988,
284,
854,
280,
310,
2798,
16,
4757,
545,
310,
53158,
2798,
17,
284,
297,
437,
280,
310,
297,
437,
284,
854,
280,
310,
2798,
17,
4757,
545,
310,
2798,
17,
284,
2612,
280,
310,
2612,
284,
854,
280,
310,
2798,
17,
4757,
1454,
310,
471,
1121,
280,
286,
335,
5616,
341,
310,
3345,
2409,
12358,
10316,
285,
317,
310,
3345,
2409,
12358,
5498,
317,
310,
3345,
2409,
12358,
10316,
437,
317,
310,
3345,
2409,
12358,
11304,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
55968,
459,
5688,
1211,
3103,
323,
459,
9442,
1211,
3103,
505,
264,
21628,
11,
323,
198,
95423,
1124,
311,
279,
22722,
13,
220,
578,
23914,
690,
387,
8036,
1306,
279,
22722,
198,
4310,
11,
1524,
422,
459,
4788,
374,
15338,
382,
36913,
7728,
220,
420,
21628,
198,
36913,
22722,
264,
56667,
198,
66103,
279,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
20,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
55968,
459,
5688,
1211,
3103,
323,
459,
9442,
1211,
3103,
505,
264,
21628,
11,
323,
198,
95423,
1124,
311,
279,
22722,
13,
220,
578,
23914,
690,
387,
8036,
1306,
279,
22722,
198,
4310,
11,
1524,
422,
459,
4788,
374,
15338,
382,
36913,
7728,
220,
420,
21628,
198,
36913,
22722,
264,
56667,
198,
66103,
279,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
20,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static <T> T withObjectStreams(Socket socket, @ClosureParams(value=SimpleType.class, options={"java.io.ObjectInputStream","java.io.ObjectOutputStream"}) Closure<T> closure) throws IOException {
InputStream input = socket.getInputStream();
OutputStream output = socket.getOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(output);
ObjectInputStream ois = new ObjectInputStream(input);
try {
T result = closure.call(new Object[]{ois, oos});
InputStream temp1 = ois;
ois = null;
temp1.close();
temp1 = input;
input = null;
temp1.close();
OutputStream temp2 = oos;
oos = null;
temp2.close();
temp2 = output;
output = null;
temp2.close();
return result;
} finally {
closeWithWarning(ois);
closeWithWarning(input);
closeWithWarning(oos);
closeWithWarning(output);
}
}
Documentation: | Creates an InputObjectStream and an OutputObjectStream from a Socket, and
passes them to the closure. The streams will be closed after the closure
returns, even if an exception is thrown.
@param socket this Socket
@param closure a Closure
@return the value returned by the closure
@throws IOException if an IOException occurs.
@since 1.5.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
6872,
1622,
1893,
12379,
368,
341,
286,
528,
1404,
284,
636,
5078,
2568,
545,
286,
3308,
1318,
1719,
4266,
284,
502,
3308,
38956,
947,
286,
369,
320,
396,
602,
284,
220,
15,
26,
602,
366,
1404,
26,
602,
2516,
341,
310,
1719,
4266,
1004,
60,
284,
636,
5078,
941,
1998,
317,
286,
457,
286,
471,
502,
8058,
3607,
1622,
19939,
11,
836,
11,
1719,
4266,
11,
374,
7368,
1271,
19841,
317,
262,
457,
65434,
25,
128001,
128000,
55968,
459,
52672,
3048,
430,
584,
649,
6636,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
55968,
459,
52672,
3048,
430,
584,
649,
6636,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public MethodKey createCopy() {
int size = getParameterCount();
Class[] paramTypes = new Class[size];
for (int i = 0; i < size; i++) {
paramTypes[i] = getParameterType(i);
}
return new DefaultMethodKey(sender, name, paramTypes, isCallToSuper);
}
Documentation: | Creates an immutable copy that we can cache. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
742,
656,
73236,
43920,
10285,
3308,
1997,
272,
1997,
11,
1620,
8922,
4665,
5089,
11,
1620,
71181,
4665,
7015,
8,
341,
286,
422,
320,
66,
1997,
2124,
5160,
2189,
471,
280,
286,
2777,
374,
2181,
726,
50357,
284,
68126,
2124,
50357,
1361,
1997,
317,
286,
7445,
7368,
50357,
47458,
2307,
7368,
47458,
284,
502,
7445,
7368,
50357,
47458,
25116,
317,
286,
422,
320,
285,
2181,
726,
50357,
8,
341,
310,
1817,
50357,
36482,
1361,
1997,
11,
5089,
317,
310,
471,
280,
286,
457,
286,
422,
1533,
66,
1997,
9088,
27131,
13401,
1020,
85574,
4233,
27383,
41191,
964,
86431,
595,
341,
310,
1796,
61884,
1997,
29,
25022,
284,
1505,
43920,
1361,
1997,
317,
310,
369,
320,
1999,
1997,
18027,
551,
25022,
8,
341,
394,
69401,
29530,
29781,
31287,
284,
68126,
2725,
29530,
7779,
1339,
317,
394,
3881,
50357,
7779,
1339,
11,
272,
1997,
11,
31287,
317,
394,
2307,
7368,
47458,
17945,
1999,
1361,
1997,
317,
394,
422,
320,
3928,
5947,
2994,
8,
341,
504,
23276,
65363,
54794,
2123,
17215,
33053,
284,
502,
23276,
65363,
54794,
2123,
17215,
25116,
11,
7015,
673,
9140,
9360,
1449,
504,
33053,
17945,
1999,
1361,
1997,
317,
394,
457,
310,
457,
286,
457,
262,
457,
65434,
25,
128001,
128000,
22818,
264,
538,
2494,
11,
422,
420,
538,
2494,
5280,
264,
18027,
11,
1243,
7068,
682,
279,
8475,
198,
1889,
902,
36159,
6880,
311,
279,
18027,
13,
1102,
374,
6220,
311,
1650,
420,
1749,
389,
264,
538,
2494,
902,
198,
28156,
539,
4305,
264,
18027,
627,
36913,
272,
1997,
264,
538,
2494,
198,
36913,
5089,
279,
2592,
5089
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
22818,
264,
538,
2494,
11,
422,
420,
538,
2494,
5280,
264,
18027,
11,
1243,
7068,
682,
279,
8475,
198,
1889,
902,
36159,
6880,
311,
279,
18027,
13,
1102,
374,
6220,
311,
1650,
420,
1749,
389,
264,
538,
2494,
902,
198,
28156,
539,
4305,
264,
18027,
627,
36913,
272,
1997,
264,
538,
2494,
198,
36913,
5089,
279,
2592,
5089,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static void doExtendTraits(final ClassNode cNode, final SourceUnit unit, final CompilationUnit cu) {
if (cNode.isInterface()) return;
boolean isItselfTrait = Traits.isTrait(cNode);
SuperCallTraitTransformer superCallTransformer = new SuperCallTraitTransformer(unit);
if (isItselfTrait) {
checkTraitAllowed(cNode, unit);
return;
}
if (!cNode.getNameWithoutPackage().endsWith(Traits.TRAIT_HELPER)) {
List<ClassNode> traits = findTraits(cNode);
for (ClassNode trait : traits) {
TraitHelpersTuple helpers = Traits.findHelpers(trait);
applyTrait(trait, cNode, helpers);
superCallTransformer.visitClass(cNode);
if (unit!=null) {
ASTTransformationCollectorCodeVisitor collector = new ASTTransformationCollectorCodeVisitor(unit, cu.getTransformLoader());
collector.visitClass(cNode);
}
}
}
}
Documentation: | Given a class node, if this class node implements a trait, then generate all the appropriate
code which delegates calls to the trait. It is safe to call this method on a class node which
does not implement a trait.
@param cNode a class node
@param unit the source unit |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
33217,
1378,
636,
34990,
1480,
1577,
1963,
8,
341,
286,
33217,
1378,
4788,
284,
854,
401,
286,
4961,
1984,
284,
636,
1480,
7343,
317,
286,
422,
320,
2037,
976,
854,
1024,
1984,
8243,
33217,
22060,
8,
341,
310,
4788,
284,
1819,
34990,
22060,
8,
1984,
570,
60615,
3538,
545,
286,
457,
286,
471,
4788,
280,
262,
457,
65434,
25,
128001,
128000,
1128,
40647,
14348,
311,
471,
279,
5300,
1493,
596,
198,
8154,
6852,
33217,
1378,
11,
477,
854,
422,
433,
4536,
956,
832,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
1128,
40647,
14348,
311,
471,
279,
5300,
1493,
596,
198,
8154,
6852,
33217,
1378,
11,
477,
854,
422,
433,
4536,
956,
832,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public SyntaxException getSyntaxError(int index) {
SyntaxException exception = null;
Message message = getError(index);
if (message != null && message instanceof SyntaxErrorMessage) {
exception = ((SyntaxErrorMessage) message).getCause();
}
return exception;
}
Documentation: | Convenience routine to return the specified error's
underlying SyntaxException, or null if it isn't one. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
742,
75517,
901,
7,
12217,
5480,
340,
262,
341,
286,
422,
320,
33166,
791,
12698,
340,
286,
341,
310,
1418,
320,
2058,
23652,
2455,
310,
341,
394,
11460,
1388,
28169,
4630,
1449,
310,
457,
286,
457,
262,
457,
65434,
25,
128001,
128000,
73211,
279,
9861,
11460,
311,
279,
15590,
11460,
1160,
382,
36913,
5480,
1556,
15441,
927,
279,
9861,
11460
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
73211,
279,
9861,
11460,
311,
279,
15590,
11460,
1160,
382,
36913,
5480,
1556,
15441,
927,
279,
9861,
11460,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private void gobble(Iterator iter)
{
if (eatTheRest)
{
while (iter.hasNext())
{
tokens.add(iter.next());
}
}
}
Documentation: | Adds the remaining tokens to the processed tokens list.
@param iter An iterator over the remaining tokens |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
528,
682,
9905,
3112,
19686,
8495,
87912,
1318,
3712,
11,
3308,
1997,
1318,
2897,
8,
341,
286,
422,
320,
3603,
419,
2994,
8,
341,
310,
3712,
284,
15521,
49477,
18194,
280,
286,
457,
286,
528,
1612,
284,
220,
15,
280,
286,
422,
320,
2164,
1996,
27,
3603,
1996,
8,
471,
482,
16,
280,
286,
443,
584,
2736,
1440,
279,
29416,
527,
6273,
198,
286,
369,
320,
396,
602,
284,
220,
15,
26,
602,
366,
3712,
1996,
26,
602,
2516,
341,
310,
3308,
1997,
1719,
941,
284,
3712,
1004,
948,
29649,
545,
310,
3308,
1997,
1417,
941,
284,
2897,
1004,
947,
310,
422,
1533,
285,
60129,
1271,
9590,
941,
11,
1719,
941,
595,
471,
482,
16,
280,
310,
775,
341,
394,
422,
1533,
913,
941,
6624,
9590,
941,
595,
1612,
8664,
456,
15121,
9590,
941,
11,
1719,
941,
317,
310,
457,
286,
457,
286,
471,
1612,
280,
262,
457,
65434,
25,
128001,
128000,
50920,
430,
6105,
323,
5852,
4595,
2489,
627,
36913,
3712,
1749,
5137,
198,
36913,
2897,
955,
6105,
198,
66103,
482,
16,
422,
6105,
656,
539,
2489,
11,
220,
15,
422,
6105,
527,
315,
279,
4839,
955,
323,
871,
15,
994,
832,
477,
810,
5811,
374,
198,
1962,
315,
279,
4839,
955,
719,
2103,
2489
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
50920,
430,
6105,
323,
5852,
4595,
2489,
627,
36913,
3712,
1749,
5137,
198,
36913,
2897,
955,
6105,
198,
66103,
482,
16,
422,
6105,
656,
539,
2489,
11,
220,
15,
422,
6105,
527,
315,
279,
4839,
955,
323,
871,
15,
994,
832,
477,
810,
5811,
374,
198,
1962,
315,
279,
4839,
955,
719,
2103,
2489,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static int allParametersAndArgumentsMatch(Parameter[] params, ClassNode[] args) {
if (params==null) {
params = Parameter.EMPTY_ARRAY;
}
int dist = 0;
if (args.length<params.length) return -1;
// we already know the lengths are equal
for (int i = 0; i < params.length; i++) {
ClassNode paramType = params[i].getType();
ClassNode argType = args[i];
if (!isAssignableTo(argType, paramType)) return -1;
else {
if (!paramType.equals(argType)) dist+=getDistance(argType, paramType);
}
}
return dist;
}
Documentation: | Checks that arguments and parameter types match.
@param params method parameters
@param args type arguments
@return -1 if arguments do not match, 0 if arguments are of the exact type and >0 when one or more argument is
not of the exact type but still match |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
1118,
528,
13937,
19686,
43570,
53,
2164,
5078,
87912,
1318,
3712,
11,
3308,
1997,
1318,
2897,
8,
341,
286,
443,
584,
2736,
1440,
5852,
3160,
374,
11493,
7315,
323,
1566,
374,
264,
767,
5981,
198,
286,
443,
279,
13937,
6105,
527,
682,
2231,
304,
459,
1358,
369,
279,
767,
5981,
1650,
198,
286,
443,
779,
1817,
2403,
279,
3777,
955,
198,
286,
528,
1612,
284,
220,
15,
280,
286,
3308,
1997,
767,
5981,
4066,
284,
3712,
58,
3603,
1996,
482,
220,
16,
948,
29649,
1020,
456,
2238,
941,
545,
286,
369,
320,
396,
602,
284,
3712,
1996,
26,
602,
366,
2897,
1996,
26,
602,
2516,
341,
310,
422,
1533,
285,
60129,
1271,
7506,
1004,
1145,
85,
2164,
4066,
595,
471,
482,
16,
280,
310,
775,
422,
1533,
2164,
1004,
948,
7324,
3832,
2164,
4066,
595,
1612,
8664,
456,
15121,
7506,
1004,
1145,
767,
5981,
4066,
317,
286,
457,
286,
471,
1612,
280,
262,
457,
65434,
25,
128001,
128000,
50920,
430,
13937,
6105,
2489,
279,
767,
867,
12223,
5852,
627,
36913,
3712,
198,
36913,
2897,
198,
66103,
482,
16,
422,
912,
2489,
11,
220,
15,
422,
682,
6105,
9248,
279,
767,
867,
955,
323,
871,
15,
422,
832,
477,
810,
767,
867,
5811,
374,
198,
7128,
481,
311,
279,
767,
867,
955,
11,
719,
2103,
539,
459,
4839,
2489
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
50920,
430,
13937,
6105,
2489,
279,
767,
867,
12223,
5852,
627,
36913,
3712,
198,
36913,
2897,
198,
66103,
482,
16,
422,
912,
2489,
11,
220,
15,
422,
682,
6105,
9248,
279,
767,
867,
955,
323,
871,
15,
422,
832,
477,
810,
767,
867,
5811,
374,
198,
7128,
481,
311,
279,
767,
867,
955,
11,
719,
2103,
539,
459,
4839,
2489,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: static int excessArgumentsMatchesVargsParameter(Parameter[] params, ClassNode[] args) {
// we already know parameter length is bigger zero and last is a vargs
// the excess arguments are all put in an array for the vargs call
// so check against the component type
int dist = 0;
ClassNode vargsBase = params[params.length - 1].getType().getComponentType();
for (int i = params.length; i < args.length; i++) {
if (!isAssignableTo(args[i],vargsBase)) return -1;
else if (!args[i].equals(vargsBase)) dist+=getDistance(args[i], vargsBase);
}
return dist;
}
Documentation: | Checks that excess arguments match the vararg signature parameter.
@param params
@param args
@return -1 if no match, 0 if all arguments matches the vararg type and >0 if one or more vararg argument is
assignable to the vararg type, but still not an exact match |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
1118,
528,
1566,
2803,
43570,
53,
867,
87912,
1318,
3712,
11,
3308,
1997,
1131,
2897,
8,
341,
286,
422,
1533,
285,
53,
2164,
9094,
595,
471,
482,
16,
280,
286,
443,
1162,
3160,
624,
15,
18073,
2736,
198,
286,
443,
584,
617,
1457,
1403,
5157,
345,
286,
443,
279,
5811,
374,
20037,
304,
279,
767,
5981,
1358,
477,
198,
286,
443,
279,
5811,
374,
459,
1358,
430,
649,
387,
1511,
369,
279,
767,
5981,
961,
6089,
198,
286,
443,
584,
1296,
1193,
279,
42295,
961,
11,
2533,
279,
2536,
42295,
374,
2884,
2736,
198,
286,
3308,
1997,
1566,
2044,
941,
284,
3712,
58,
3603,
1996,
482,
220,
16,
948,
29649,
545,
286,
3308,
1997,
281,
1337,
284,
1566,
2044,
941,
62957,
941,
545,
286,
3308,
1997,
1417,
284,
2897,
92738,
1996,
482,
220,
16,
947,
286,
422,
320,
285,
2903,
941,
33168,
500,
8,
1024,
374,
2903,
941,
9590,
8,
1024,
758,
73914,
6624,
9590,
595,
471,
482,
16,
280,
286,
471,
374,
60129,
1271,
9590,
11,
281,
1337,
12106,
8991,
4456,
5550,
15121,
9590,
11,
1566,
2044,
941,
705,
636,
15121,
9590,
11,
281,
1337,
595,
11184,
16,
280,
262,
457,
65434,
25,
128001,
128000,
50920,
422,
279,
1566,
5811,
9248,
279,
767,
867,
955,
627,
36913,
3712,
198,
36913,
2897,
198,
66103,
482,
16,
422,
912,
2489,
11,
220,
15,
422,
279,
1566,
5811,
374,
7041,
279,
767,
867,
955,
323,
220,
16,
422,
315,
459,
90547,
955
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
50920,
422,
279,
1566,
5811,
9248,
279,
767,
867,
955,
627,
36913,
3712,
198,
36913,
2897,
198,
66103,
482,
16,
422,
912,
2489,
11,
220,
15,
422,
279,
1566,
5811,
374,
7041,
279,
767,
867,
955,
323,
220,
16,
422,
315,
459,
90547,
955,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: static int lastArgMatchesVarg(Parameter[] params, ClassNode... args) {
if (!isVargs(params)) return -1;
// case length ==0 handled already
// we have now two cases,
// the argument is wrapped in the vargs array or
// the argument is an array that can be used for the vargs part directly
// we test only the wrapping part, since the non wrapping is done already
ClassNode lastParamType = params[params.length - 1].getType();
ClassNode ptype = lastParamType.getComponentType();
ClassNode arg = args[args.length - 1];
if (isNumberType(ptype) && isNumberType(arg) && !ptype.equals(arg)) return -1;
return isAssignableTo(arg, ptype)?Math.min(getDistance(arg, lastParamType), getDistance(arg, ptype)):-1;
}
Documentation: | Checks if the last argument matches the vararg type.
@param params
@param args
@return -1 if no match, 0 if the last argument is exactly the vararg type and 1 if of an assignable type |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
1118,
15521,
1977,
5078,
10285,
5135,
3548,
11,
2672,
1233,
941,
29,
14281,
3915,
26512,
11,
1620,
5135,
3548,
11,
2672,
1233,
941,
29,
79528,
3915,
2014,
11,
1620,
15521,
1749,
5078,
11,
1620,
3308,
1997,
1719,
941,
8,
341,
286,
422,
320,
36887,
3915,
26512,
9389,
368,
1024,
320,
83770,
3915,
2014,
419,
2994,
8651,
83770,
3915,
2014,
9389,
10340,
341,
310,
471,
1749,
5078,
280,
286,
457,
286,
422,
320,
913,
941,
32909,
2189,
341,
310,
3308,
1997,
3777,
941,
284,
1719,
941,
62957,
941,
545,
310,
15521,
1207,
3607,
5078,
284,
502,
15521,
21922,
941,
11,
1749,
5078,
9088,
1449,
310,
15521,
3777,
284,
1977,
5078,
3348,
3553,
3915,
26512,
11,
79528,
3915,
2014,
11,
1207,
3607,
5078,
11,
3777,
941,
317,
310,
471,
502,
15521,
21922,
24541,
1020,
7072,
1895,
1535,
3777,
9088,
1449,
286,
457,
286,
3308,
1997,
20250,
284,
9006,
1999,
1997,
5648,
1233,
3348,
3553,
3915,
26512,
11,
79528,
3915,
2014,
11,
1719,
941,
629,
286,
471,
502,
15521,
4693,
8905,
11,
1749,
5078,
9088,
1449,
262,
457,
65434,
25,
128001,
128000,
22818,
264,
5852,
11,
22890,
264,
502,
5852,
369,
902,
279,
3967,
96645,
79528,
527,
20250,
627,
36913,
14281,
3915,
26512,
20250,
96645,
505,
279,
14291,
315,
279,
1984,
198,
36913,
79528,
3915,
2014,
11,
20250,
96645,
505,
279,
1749,
2317,
198,
36913,
1749,
5078,
279,
1749,
5852,
369,
902,
584,
1390,
311,
9006,
14281,
4595,
198,
36913,
1719,
941,
279,
320,
359,
40847,
8,
955,
315,
279,
1749,
5852,
198,
66103,
264,
502,
5852,
449,
279,
1890,
836,
323,
955,
439,
279,
4113,
832,
11,
719,
449,
20250,
14281,
4595
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
22818,
264,
5852,
11,
22890,
264,
502,
5852,
369,
902,
279,
3967,
96645,
79528,
527,
20250,
627,
36913,
14281,
3915,
26512,
20250,
96645,
505,
279,
14291,
315,
279,
1984,
198,
36913,
79528,
3915,
2014,
11,
20250,
96645,
505,
279,
1749,
2317,
198,
36913,
1749,
5078,
279,
1749,
5852,
369,
902,
584,
1390,
311,
9006,
14281,
4595,
198,
36913,
1719,
941,
279,
320,
359,
40847,
8,
955,
315,
279,
1749,
5852,
198,
66103,
264,
502,
5852,
449,
279,
1890,
836,
323,
955,
439,
279,
4113,
832,
11,
719,
449,
20250,
14281,
4595,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private static Parameter buildParameter(final Map<String, GenericsType> genericFromReceiver, final Map<String, GenericsType> placeholdersFromContext, final Parameter methodParameter, final ClassNode paramType) {
if (genericFromReceiver.isEmpty() && (placeholdersFromContext==null||placeholdersFromContext.isEmpty())) {
return methodParameter;
}
if (paramType.isArray()) {
ClassNode componentType = paramType.getComponentType();
Parameter subMethodParameter = new Parameter(componentType, methodParameter.getName());
Parameter component = buildParameter(genericFromReceiver, placeholdersFromContext, subMethodParameter, componentType);
return new Parameter(component.getType().makeArray(), component.getName());
}
ClassNode resolved = resolveClassNodeGenerics(genericFromReceiver, placeholdersFromContext, paramType);
return new Parameter(resolved, methodParameter.getName());
}
Documentation: | Given a parameter, builds a new parameter for which the known generics placeholders are resolved.
@param genericFromReceiver resolved generics from the receiver of the message
@param placeholdersFromContext, resolved generics from the method context
@param methodParameter the method parameter for which we want to resolve generic types
@param paramType the (unresolved) type of the method parameter
@return a new parameter with the same name and type as the original one, but with resolved generic types |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
2777,
374,
1999,
1999,
1997,
36314,
3713,
84694,
941,
32468,
1997,
538,
1997,
8,
341,
286,
2672,
1233,
941,
1318,
96645,
4266,
284,
538,
1997,
673,
5648,
1233,
4266,
545,
286,
471,
3308,
5628,
95014,
14045,
6624,
22723,
1997,
340,
394,
1024,
538,
1997,
2124,
16834,
5648,
1233,
746,
394,
1024,
96645,
4266,
5947,
2994,
198,
394,
1024,
758,
7642,
1233,
4266,
58,
15,
948,
285,
49405,
746,
394,
1024,
758,
7642,
1233,
4266,
58,
15,
948,
285,
94088,
545,
262,
457,
65434,
25,
128001,
128000,
16851,
837,
422,
279,
538,
2494,
11105,
264,
279,
538,
2494,
369,
279,
3308,
538,
198,
438,
422,
279,
1719,
17820,
1534,
955,
374,
264,
14188,
264,
6002,
477,
264,
60204,
13,
1789,
3187,
345,
1820,
538,
2494,
3308,
33580,
26,
42023,
15721,
26,
1405,
34528,
374,
264,
538,
1053,
471,
837,
11,
719,
279,
538,
198,
3593,
369,
3308,
33580,
26,
30,
5,
5289,
26,
1053,
471,
905,
627,
36913,
538,
1997,
264,
538,
2494,
311,
387,
12793,
198,
66103,
837,
422,
433,
374,
279,
538,
2494,
369,
3308,
323,
1202,
14281,
955,
374,
264,
1972,
538
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
16851,
837,
422,
279,
538,
2494,
11105,
264,
279,
538,
2494,
369,
279,
3308,
538,
198,
438,
422,
279,
1719,
17820,
1534,
955,
374,
264,
14188,
264,
6002,
477,
264,
60204,
13,
1789,
3187,
345,
1820,
538,
2494,
3308,
33580,
26,
42023,
15721,
26,
1405,
34528,
374,
264,
538,
1053,
471,
837,
11,
719,
279,
538,
198,
3593,
369,
3308,
33580,
26,
30,
5,
5289,
26,
1053,
471,
905,
627,
36913,
538,
1997,
264,
538,
2494,
311,
387,
12793,
198,
66103,
837,
422,
433,
374,
279,
538,
2494,
369,
3308,
323,
1202,
14281,
955,
374,
264,
1972,
538,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static boolean isClassClassNodeWrappingConcreteType(ClassNode classNode) {
GenericsType[] genericsTypes = classNode.getGenericsTypes();
return ClassHelper.CLASS_Type.equals(classNode)
&& classNode.isUsingGenerics()
&& genericsTypes!=null
&& !genericsTypes[0].isPlaceholder()
&& !genericsTypes[0].isWildcard();
}
Documentation: | Returns true if the class node represents a the class node for the Class class
and if the parametrized type is a neither a placeholder or a wildcard. For example,
the class node Class<Foo> where Foo is a class would return true, but the class
node for Class<?> would return false.
@param classNode a class node to be tested
@return true if it is the class node for Class and its generic type is a real class |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
366,
51,
29,
350,
6859,
4959,
2519,
83922,
4365,
11,
935,
20791,
11,
935,
11878,
11,
571,
54954,
4975,
3764,
28,
45591,
3150,
89832,
429,
861,
3548,
83698,
56667,
3203,
29,
22722,
8,
3872,
9530,
341,
286,
471,
6859,
4959,
2519,
1792,
26649,
1792,
41387,
21217,
11,
11878,
5850,
20791,
11,
22722,
317,
262,
457,
65434,
25,
128001,
128000,
8705,
988,
1555,
279,
2728,
25899,
1584,
555,
1584,
1701,
279,
5300,
198,
17600,
11,
45473,
1855,
1584,
1701,
279,
2728,
25829,
13,
220,
578,
1160,
315,
11460,
198,
2000,
1855,
1584,
374,
1243,
5946,
311,
279,
2728,
22722,
13,
17830,
11,
279,
4365,
198,
285,
8036,
382,
36913,
4365,
220,
459,
25899,
198,
36913,
20791,
256,
279,
1624,
2408,
287,
5912,
7645,
198,
36913,
11878,
16264,
279,
4365,
449,
264,
5300,
11878,
198,
36913,
22722,
264,
22722,
198,
66103,
279,
1566,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
8262,
1674,
2013,
44218,
53126,
34990,
1378,
198,
333,
279,
5912,
7645,
596,
20047,
374,
8482,
198,
31,
4151,
674,
7105,
4959,
2519,
13098,
4340,
48531,
11,
1674,
8178,
6567,
11,
10707,
62615,
8178,
732,
11915,
340,
31,
11536,
220,
16,
13,
20,
13,
20
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
8705,
988,
1555,
279,
2728,
25899,
1584,
555,
1584,
1701,
279,
5300,
198,
17600,
11,
45473,
1855,
1584,
1701,
279,
2728,
25829,
13,
220,
578,
1160,
315,
11460,
198,
2000,
1855,
1584,
374,
1243,
5946,
311,
279,
2728,
22722,
13,
17830,
11,
279,
4365,
198,
285,
8036,
382,
36913,
4365,
220,
459,
25899,
198,
36913,
20791,
256,
279,
1624,
2408,
287,
5912,
7645,
198,
36913,
11878,
16264,
279,
4365,
449,
264,
5300,
11878,
198,
36913,
22722,
264,
22722,
198,
66103,
279,
1566,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
8262,
1674,
2013,
44218,
53126,
34990,
1378,
198,
333,
279,
5912,
7645,
596,
20047,
374,
8482,
198,
31,
4151,
674,
7105,
4959,
2519,
13098,
4340,
48531,
11,
1674,
8178,
6567,
11,
10707,
62615,
8178,
732,
11915,
340,
31,
11536,
220,
16,
13,
20,
13,
20,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static <T> T splitEachLine(InputStream stream, String regex, String charset, @ClosureParams(value=FromString.class,options="List<String>") Closure<T> closure) throws IOException {
return splitEachLine(new BufferedReader(new InputStreamReader(stream, charset)), regex, closure);
}
Documentation: | Iterates through the given InputStream line by line using the specified
encoding, splitting each line using the given separator. The list of tokens
for each line is then passed to the given closure. Finally, the stream
is closed.
@param stream an InputStream
@param regex the delimiting regular expression
@param charset opens the stream with a specified charset
@param closure a closure
@return the last value returned by the closure
@throws IOException if an IOException occurs.
@throws java.util.regex.PatternSyntaxException
if the regular expression's syntax is invalid
@see #splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)
@since 1.5.5 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
742,
5276,
4873,
7,
5172,
659,
11,
30504,
7061,
11,
571,
54954,
4975,
3764,
28,
16778,
941,
3150,
11,
2671,
429,
10248,
8178,
6567,
909,
56667,
22722,
8,
3872,
9530,
341,
286,
528,
272,
280,
286,
1456,
341,
310,
1181,
1318,
23861,
284,
502,
1181,
58,
16,
947,
310,
1418,
1819,
66,
284,
659,
4217,
2189,
976,
482,
16,
8,
341,
394,
23861,
58,
15,
60,
284,
320,
1799,
8,
272,
280,
394,
7061,
3921,
1209,
707,
8,
22722,
8692,
1792,
935,
77306,
5051,
310,
457,
310,
7061,
23907,
1454,
310,
30504,
2798,
17,
284,
7061,
280,
310,
7061,
284,
854,
280,
310,
2798,
17,
4757,
545,
310,
26226,
2798,
16,
284,
659,
280,
310,
659,
284,
854,
280,
310,
2798,
16,
4757,
545,
286,
335,
5616,
341,
310,
3345,
2409,
12358,
1214,
317,
310,
3345,
2409,
12358,
39456,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
9140,
82,
1855,
3752,
505,
420,
6742,
555,
12579,
433,
311,
279,
2728,
198,
48016,
13,
220,
578,
56667,
1288,
471,
1855,
24411,
3752,
11,
902,
198,
14724,
387,
5946,
311,
279,
30504,
13,
220,
578,
6742,
323,
7061,
690,
387,
2225,
387,
198,
35187,
1603,
420,
1749,
4780,
382,
36913,
659,
262,
264,
26226,
1665,
198,
36913,
7061,
220,
264,
30504,
311,
5371,
279,
24411,
5885,
198,
36913,
22722,
264,
22722,
430,
27772,
279,
2631,
18475,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
20,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
9140,
82,
1855,
3752,
505,
420,
6742,
555,
12579,
433,
311,
279,
2728,
198,
48016,
13,
220,
578,
56667,
1288,
471,
1855,
24411,
3752,
11,
902,
198,
14724,
387,
5946,
311,
279,
30504,
13,
220,
578,
6742,
323,
7061,
690,
387,
2225,
387,
198,
35187,
1603,
420,
1749,
4780,
382,
36913,
659,
262,
264,
26226,
1665,
198,
36913,
7061,
220,
264,
30504,
311,
5371,
279,
24411,
5885,
198,
36913,
22722,
264,
22722,
430,
27772,
279,
2631,
18475,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
20,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static void transformChar(Reader self, Writer writer, @ClosureParams(value=SimpleType.class, options="java.lang.String") Closure closure) throws IOException {
int c;
try {
char[] chars = new char[1];
while ((c = self.read()) != -1) {
chars[0] = (char) c;
writer.write((String) closure.call(new String(chars)));
}
writer.flush();
Writer temp2 = writer;
writer = null;
temp2.close();
Reader temp1 = self;
self = null;
temp1.close();
} finally {
closeWithWarning(self);
closeWithWarning(writer);
}
}
Documentation: | Transforms each character from this reader by passing it to the given
closure. The Closure should return each transformed character, which
will be passed to the Writer. The reader and writer will be both be
closed before this method returns.
@param self a Reader object
@param writer a Writer to receive the transformed characters
@param closure a closure that performs the required transformation
@throws IOException if an IOException occurs.
@since 1.5.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
366,
51,
11,
549,
2289,
13330,
481,
29,
350,
449,
8084,
481,
12597,
659,
11,
571,
54954,
4975,
3764,
28,
5451,
2044,
3150,
8,
56667,
3203,
29,
1957,
8,
3872,
9530,
341,
286,
1456,
341,
310,
350,
1121,
284,
1957,
8692,
1214,
629,
310,
13330,
481,
2798,
284,
659,
280,
310,
659,
284,
854,
280,
310,
2798,
4757,
1454,
310,
471,
1121,
280,
286,
335,
5616,
341,
310,
8058,
77435,
62615,
18337,
8075,
4757,
2409,
12358,
1214,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
80695,
420,
3345,
481,
311,
387,
1511,
2949,
279,
22722,
11,
23391,
430,
433,
198,
285,
8036,
3131,
279,
22722,
706,
1027,
16070,
323,
1603,
420,
1749,
4780,
382,
36913,
659,
279,
13330,
481,
198,
36913,
1957,
279,
22722,
4737,
279,
13330,
481,
439,
5852,
198,
66103,
279,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
17,
13,
19,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
80695,
420,
3345,
481,
311,
387,
1511,
2949,
279,
22722,
11,
23391,
430,
433,
198,
285,
8036,
3131,
279,
22722,
706,
1027,
16070,
323,
1603,
420,
1749,
4780,
382,
36913,
659,
279,
13330,
481,
198,
36913,
1957,
279,
22722,
4737,
279,
13330,
481,
439,
5852,
198,
66103,
279,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
17,
13,
19,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static <T, U extends Closeable> T withCloseable(U self, @ClosureParams(value=FirstParam.class) Closure<T> action) throws IOException {
try {
T result = action.call(self);
Closeable temp = self;
self = null;
temp.close();
return result;
} finally {
DefaultGroovyMethodsSupport.closeWithWarning(self);
}
}
Documentation: | Allows this closeable to be used within the closure, ensuring that it
is closed once the closure has been executed and before this method returns.
@param self the Closeable
@param action the closure taking the Closeable as parameter
@return the value returned by the closure
@throws IOException if an IOException occurs.
@since 2.4.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
3075,
76596,
12809,
1665,
8,
341,
286,
471,
1674,
8178,
30961,
8277,
57959,
4496,
317,
262,
457,
65434,
25,
128001,
128000,
1991,
420,
3424,
505,
279,
2728,
1665,
627,
36913,
1665,
459,
1358,
198,
66103,
279,
3160,
315,
279,
1358,
1665,
198,
31,
8262,
22085,
422,
1665,
374,
539,
459,
1358
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
1991,
420,
3424,
505,
279,
2728,
1665,
627,
36913,
1665,
459,
1358,
198,
66103,
279,
3160,
315,
279,
1358,
1665,
198,
31,
8262,
22085,
422,
1665,
374,
539,
459,
1358,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public Object getProperty(Object object) {
return java.lang.reflect.Array.getLength(object);
}
Documentation: | Get this property from the given object.
@param object an array
@return the length of the array object
@throws IllegalArgumentException if object is not an array |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
2682,
6872,
17215,
1304,
9566,
7368,
10285,
935,
836,
11,
1620,
935,
6697,
11,
1620,
935,
12223,
11,
1620,
935,
1318,
20157,
11,
1620,
528,
2680,
9375,
8,
341,
286,
6872,
17215,
24039,
284,
2307,
71460,
56287,
9375,
11,
836,
11,
6697,
11,
12223,
11,
20157,
317,
286,
24039,
56265,
69269,
11,
220,
15,
1237,
443,
2865,
420,
198,
286,
24039,
17945,
1915,
27192,
64018,
29847,
11,
13594,
678,
11,
3467,
36313,
2390,
13748,
17806,
11,
11146,
1889,
5628,
24541,
5116,
72113,
1999,
6030,
443,
2865,
13685,
198,
286,
443,
1701,
19337,
10668,
5628,
311,
2187,
4754,
70474,
6880,
198,
286,
528,
1404,
280,
286,
24039,
17945,
43,
7783,
27192,
3232,
1237,
443,
1749,
836,
198,
286,
4078,
1318,
2897,
284,
4078,
673,
9350,
4266,
38773,
317,
286,
11146,
1889,
5628,
2615,
15839,
1278,
85,
11,
2897,
1996,
317,
286,
24039,
17945,
941,
27192,
7,
28919,
54,
15239,
11,
330,
10248,
26319,
69626,
803,
286,
1404,
284,
220,
21,
280,
286,
528,
7335,
284,
220,
16,
280,
286,
369,
320,
396,
602,
284,
220,
15,
26,
602,
366,
2897,
1996,
26,
602,
2516,
341,
310,
4078,
1417,
284,
2897,
1004,
947,
310,
24039,
83839,
5549,
3202,
317,
310,
11146,
1889,
5628,
2615,
15839,
1278,
85,
11,
602,
317,
310,
443,
28694,
4595,
2011,
387,
74764,
198,
310,
422,
320,
285,
34413,
9590,
595,
341,
394,
24039,
17945,
1090,
27192,
5550,
6003,
27192,
9590,
705,
7335,
317,
394,
935,
20037,
941,
284,
636,
68895,
1999,
11971,
9590,
317,
394,
24039,
83456,
95556,
41981,
11,
20037,
941,
11,
330,
94113,
498,
34679,
489,
1417,
673,
11971,
368,
489,
12590,
43,
1,
489,
20037,
941,
489,
19500,
498,
905,
317,
310,
335,
775,
341,
394,
24039,
56265,
69269,
11,
7335,
1237,
443,
2865,
5811,
602,
198,
310,
457,
310,
1404,
284,
4242,
6817,
6999,
11,
220,
20,
10,
6477,
11522,
9590,
1125,
310,
7335,
1447,
4254,
11522,
9590,
317,
310,
24039,
83839,
4444,
6483,
6005,
1237,
443,
3637,
907,
1139,
1358,
198,
286,
457,
286,
24039,
83456,
95556,
41981,
11,
330,
1813,
48028,
32651,
4951,
299,
62615,
40398,
14,
48768,
5628,
498,
330,
23238,
3607,
498,
12262,
39024,
26319,
69626,
26,
39024,
26319,
37364,
26,
39024,
26319,
69626,
37274,
39024,
26319,
69626,
33603,
905,
317,
286,
80913,
2122,
1278,
85,
11,
6697,
317,
286,
24039,
17945,
6102,
82,
6999,
11,
4254,
11522,
7506,
8,
489,
220,
16,
629,
286,
471,
24039,
280,
262,
457,
65434,
25,
128001,
128000,
32215,
264,
1650,
311,
279,
13685,
1665,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
32215,
264,
1650,
311,
279,
13685,
1665,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: protected MethodVisitor makeDelegateCall(final String name, final String desc, final String signature, final String[] exceptions, final int accessFlags) {
MethodVisitor mv = super.visitMethod(accessFlags, name, desc, signature, exceptions);
mv.visitVarInsn(ALOAD, 0); // load this
mv.visitFieldInsn(GETFIELD, proxyName, DELEGATE_OBJECT_FIELD, BytecodeHelper.getTypeDescription(delegateClass)); // load delegate
// using InvokerHelper to allow potential intercepted calls
int size;
mv.visitLdcInsn(name); // method name
Type[] args = Type.getArgumentTypes(desc);
BytecodeHelper.pushConstant(mv, args.length);
mv.visitTypeInsn(ANEWARRAY, "java/lang/Object");
size = 6;
int idx = 1;
for (int i = 0; i < args.length; i++) {
Type arg = args[i];
mv.visitInsn(DUP);
BytecodeHelper.pushConstant(mv, i);
// primitive types must be boxed
if (isPrimitive(arg)) {
mv.visitIntInsn(getLoadInsn(arg), idx);
String wrappedType = getWrappedClassDescriptor(arg);
mv.visitMethodInsn(INVOKESTATIC, wrappedType, "valueOf", "(" + arg.getDescriptor() + ")L" + wrappedType + ";", false);
} else {
mv.visitVarInsn(ALOAD, idx); // load argument i
}
size = Math.max(size, 5+registerLen(arg));
idx += registerLen(arg);
mv.visitInsn(AASTORE); // store value into array
}
mv.visitMethodInsn(INVOKESTATIC, "org/codehaus/groovy/runtime/InvokerHelper", "invokeMethod", "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;", false);
unwrapResult(mv, desc);
mv.visitMaxs(size, registerLen(args) + 1);
return mv;
}
Documentation: | Generate a call to the delegate object. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
6872,
74783,
1428,
3607,
32468,
20112,
272,
8,
341,
286,
443,
47687,
284,
3254,
586,
8278,
1749,
198,
286,
443,
422,
279,
538,
374,
539,
8278,
1070,
374,
912,
8278,
1749,
198,
286,
422,
1533,
35505,
2124,
16328,
1361,
673,
68037,
10340,
471,
854,
280,
286,
422,
320,
66,
2124,
5160,
2189,
341,
310,
6872,
1318,
5528,
284,
272,
673,
18337,
545,
310,
443,
594,
10756,
279,
1176,
1766,
8278,
1749,
198,
310,
6872,
594,
284,
854,
280,
310,
369,
320,
3607,
9686,
551,
5528,
8,
341,
394,
443,
10240,
5528,
11,
430,
527,
539,
8278,
323,
505,
3075,
198,
394,
422,
1533,
35505,
2124,
16328,
85672,
673,
68037,
10340,
3136,
280,
394,
443,
10240,
18027,
5528,
902,
617,
264,
1670,
8292,
198,
394,
422,
320,
8318,
673,
20290,
4233,
27383,
13,
18804,
3150,
36300,
2994,
8,
3136,
280,
394,
1456,
341,
504,
3075,
3150,
67885,
85672,
9088,
1535,
9686,
18627,
4266,
1449,
504,
3136,
280,
394,
335,
2339,
320,
66631,
3607,
1378,
384,
8,
17679,
13431,
1850,
633,
394,
443,
584,
617,
1403,
5528,
11,
779,
912,
47687,
198,
394,
422,
320,
417,
5947,
2994,
8,
471,
854,
280,
394,
594,
284,
9686,
280,
310,
457,
310,
471,
594,
401,
286,
335,
775,
1504,
310,
23767,
27,
3607,
29,
5528,
284,
502,
23767,
545,
310,
636,
16328,
18337,
1361,
11,
5528,
317,
310,
422,
320,
36842,
9389,
2189,
471,
854,
280,
310,
1796,
12217,
27,
3607,
29,
433,
284,
5528,
6556,
12217,
545,
310,
1418,
320,
275,
23652,
2189,
341,
394,
6872,
296,
284,
433,
4630,
545,
394,
422,
320,
4752,
3642,
481,
37950,
1361,
11,
296,
595,
433,
4955,
545,
310,
457,
310,
471,
636,
11126,
8284,
55079,
3607,
17709,
82,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
4310,
279,
8278,
1749,
505,
264,
47687,
955,
11,
422,
433,
374,
264,
47687,
955,
627,
36913,
272,
279,
47687,
538,
198,
66103,
854,
422,
4400,
574,
1766,
11,
279,
1749,
6062
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
4310,
279,
8278,
1749,
505,
264,
47687,
955,
11,
422,
433,
374,
264,
47687,
955,
627,
36913,
272,
279,
47687,
538,
198,
66103,
854,
422,
4400,
574,
1766,
11,
279,
1749,
6062,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static Method getSAMMethod(Class<?> c) {
// SAM = single public abstract method
// if the class is not abstract there is no abstract method
if (!Modifier.isAbstract(c.getModifiers())) return null;
if (c.isInterface()) {
Method[] methods = c.getMethods();
// res stores the first found abstract method
Method res = null;
for (Method mi : methods) {
// ignore methods, that are not abstract and from Object
if (!Modifier.isAbstract(mi.getModifiers())) continue;
// ignore trait methods which have a default implementation
if (mi.getAnnotation(Traits.Implemented.class)!=null) continue;
try {
Object.class.getMethod(mi.getName(), mi.getParameterTypes());
continue;
} catch (NoSuchMethodException e) {/*ignore*/}
// we have two methods, so no SAM
if (res!=null) return null;
res = mi;
}
return res;
} else {
LinkedList<Method> methods = new LinkedList();
getAbstractMethods(c, methods);
if (methods.isEmpty()) return null;
ListIterator<Method> it = methods.listIterator();
while (it.hasNext()) {
Method m = it.next();
if (hasUsableImplementation(c, m)) it.remove();
}
return getSingleNonDuplicateMethod(methods);
}
}
Documentation: | returns the abstract method from a SAM type, if it is a SAM type.
@param c the SAM class
@return null if nothing was found, the method otherwise |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
2682,
742,
7068,
44,
454,
56392,
7,
35015,
27,
3607,
1997,
29,
89164,
56392,
11,
2777,
1005,
2028,
8,
341,
286,
369,
320,
3607,
1997,
1749,
551,
89164,
56392,
8,
341,
310,
935,
836,
284,
636,
44,
454,
76748,
17709,
11,
1005,
2028,
317,
310,
15521,
1318,
5137,
284,
1749,
673,
9905,
545,
310,
935,
1749,
11971,
284,
11146,
1889,
5628,
67885,
11971,
17709,
673,
85462,
1535,
1749,
673,
9905,
1449,
310,
6872,
17215,
24039,
284,
6597,
19810,
17215,
1020,
28560,
3607,
7,
30542,
37309,
765,
26925,
76762,
3701,
1372,
1341,
11,
836,
11,
1749,
11971,
11,
854,
11,
854,
317,
310,
6597,
995,
3607,
17215,
1278,
85,
317,
310,
24039,
56265,
69269,
11,
220,
15,
317,
310,
528,
502,
8861,
284,
220,
16,
280,
310,
62185,
4434,
28312,
4434,
284,
6597,
673,
31040,
4434,
545,
310,
369,
320,
5078,
5852,
551,
5137,
8,
341,
394,
3308,
1997,
955,
284,
5852,
24541,
545,
394,
28312,
4434,
5214,
42794,
24541,
1535,
502,
8861,
317,
394,
443,
16650,
311,
1828,
4254,
11,
2033,
14,
4930,
527,
1701,
1403,
7634,
198,
394,
502,
8861,
3591,
394,
422,
320,
1337,
624,
3308,
5628,
44189,
4283,
1393,
955,
624,
3308,
5628,
24414,
4283,
8,
502,
8861,
3591,
310,
457,
310,
28312,
4434,
4955,
39059,
1996,
317,
310,
3308,
1997,
37631,
1999,
284,
1749,
673,
22360,
3329,
1999,
545,
310,
443,
98525,
220,
23,
1862,
369,
1670,
5528,
304,
25066,
198,
310,
443,
420,
1288,
4762,
387,
5527,
983,
427,
6901,
994,
584,
1862,
279,
362,
50121,
59532,
368,
20047,
198,
310,
528,
31128,
284,
37631,
1999,
2124,
5160,
94433,
691,
59280,
73448,
25,
64031,
4012,
1600,
18857,
280,
310,
24039,
83456,
99447,
11,
11146,
1889,
5628,
19810,
11830,
678,
7,
65665,
1999,
705,
1749,
9088,
1535,
1749,
11971,
11,
31128,
624,
2006,
59280,
73448,
317,
310,
11146,
1889,
5628,
16928,
5715,
1278,
85,
11,
1749,
673,
85462,
1449,
310,
24039,
17945,
6102,
82,
7,
15,
11,
220,
15,
317,
310,
24039,
17945,
3812,
545,
310,
6597,
19810,
1997,
1020,
723,
3607,
3232,
11,
26925,
37309,
765,
26925,
76762,
3701,
1372,
1341,
11,
1749,
673,
85462,
1535,
5137,
11,
854,
11,
854,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
7642,
988,
264,
16197,
3075,
25590,
1749,
11,
430,
374,
1511,
311,
1650,
264,
2536,
586,
198,
4492,
11,
477,
311,
1304,
264,
1650,
311,
2307,
382,
36913,
89164,
56392,
1160,
315,
5528,
264,
89164,
1650,
1749,
1288,
387,
8066,
369,
198,
36913,
1005,
2028,
220,
837,
422,
330,
576,
1,
1288,
387,
1511,
369,
279,
36048
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
7642,
988,
264,
16197,
3075,
25590,
1749,
11,
430,
374,
1511,
311,
1650,
264,
2536,
586,
198,
4492,
11,
477,
311,
1304,
264,
1650,
311,
2307,
382,
36913,
89164,
56392,
1160,
315,
5528,
264,
89164,
1650,
1749,
1288,
387,
8066,
369,
198,
36913,
1005,
2028,
220,
837,
422,
330,
576,
1,
1288,
387,
1511,
369,
279,
36048,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: protected void generateMopCalls(LinkedList<MethodNode> mopCalls, boolean useThis) {
for (MethodNode method : mopCalls) {
String name = getMopMethodName(method, useThis);
Parameter[] parameters = method.getParameters();
String methodDescriptor = BytecodeHelper.getMethodDescriptor(method.getReturnType(), method.getParameters());
MethodVisitor mv = controller.getClassVisitor().visitMethod(ACC_PUBLIC | ACC_SYNTHETIC, name, methodDescriptor, null, null);
controller.setMethodVisitor(mv);
mv.visitVarInsn(ALOAD, 0);
int newRegister = 1;
OperandStack operandStack = controller.getOperandStack();
for (Parameter parameter : parameters) {
ClassNode type = parameter.getType();
operandStack.load(parameter.getType(), newRegister);
// increment to next register, double/long are using two places
newRegister++;
if (type == ClassHelper.double_TYPE || type == ClassHelper.long_TYPE) newRegister++;
}
operandStack.remove(parameters.length);
ClassNode declaringClass = method.getDeclaringClass();
// JDK 8 support for default methods in interfaces
// this should probably be strenghtened when we support the A.super.foo() syntax
int opcode = declaringClass.isInterface()?INVOKEINTERFACE:INVOKESPECIAL;
mv.visitMethodInsn(opcode, BytecodeHelper.getClassInternalName(declaringClass), method.getName(), methodDescriptor, opcode == INVOKEINTERFACE);
BytecodeHelper.doReturn(mv, method.getReturnType());
mv.visitMaxs(0, 0);
mv.visitEnd();
controller.getClassNode().addMethod(name, ACC_PUBLIC | ACC_SYNTHETIC, method.getReturnType(), parameters, null, null);
}
}
Documentation: | generates a Meta Object Protocol method, that is used to call a non public
method, or to make a call to super.
@param mopCalls list of methods a mop call method should be generated for
@param useThis true if "this" should be used for the naming |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
3308,
1997,
636,
11803,
32468,
1997,
13979,
8,
341,
286,
13979,
284,
13979,
25067,
545,
286,
422,
1533,
285,
34413,
941,
93556,
595,
471,
13979,
280,
286,
422,
320,
14606,
419,
6245,
4283,
8,
341,
310,
471,
7137,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
3867,
4283,
8,
341,
310,
471,
11146,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
1799,
4283,
8,
341,
310,
471,
16007,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
8846,
4283,
8,
341,
310,
471,
10928,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
396,
4283,
8,
341,
310,
471,
4540,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
4930,
4283,
8,
341,
310,
471,
5843,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
3733,
4283,
8,
341,
310,
471,
13298,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
4429,
4283,
8,
341,
310,
471,
7238,
4283,
280,
286,
335,
775,
422,
320,
14606,
419,
25019,
4283,
8,
341,
310,
471,
742,
99951,
4283,
280,
286,
457,
286,
775,
341,
310,
471,
13979,
280,
286,
457,
262,
457,
65434,
25,
128001,
128000,
55968,
264,
3308,
1997,
8649,
279,
13564,
315,
264,
3308,
1997,
198,
1073,
28694,
955,
13,
5884,
3308,
1997,
14393,
264,
28694,
198,
1337,
1288,
387,
3549,
1701,
279,
64162,
4595,
1511,
304,
198,
1058,
13,
578,
1749,
690,
1817,
279,
5852,
369,
3967,
198,
37009,
315,
3308,
1997,
14393,
264,
28694,
955,
13,
1442,
198,
9032,
374,
1766,
11,
1243,
264,
3308,
1997,
690,
387,
13282,
430,
198,
10200,
9773,
279,
13564,
538,
13,
1789,
3187,
369,
2777,
11,
279,
198,
22075,
538,
374,
1674,
8178,
19712,
382,
2746,
279,
5852,
374,
912,
28694,
955,
11,
279,
50028,
198,
1999,
1997,
690,
387,
6052,
271,
31,
4151,
674,
7072,
32468,
340,
31,
4151,
674,
7072,
2292,
340,
36913,
13979,
279,
3308,
1997,
8649,
264,
3284,
28694,
955
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
55968,
264,
3308,
1997,
8649,
279,
13564,
315,
264,
3308,
1997,
198,
1073,
28694,
955,
13,
5884,
3308,
1997,
14393,
264,
28694,
198,
1337,
1288,
387,
3549,
1701,
279,
64162,
4595,
1511,
304,
198,
1058,
13,
578,
1749,
690,
1817,
279,
5852,
369,
3967,
198,
37009,
315,
3308,
1997,
14393,
264,
28694,
955,
13,
1442,
198,
9032,
374,
1766,
11,
1243,
264,
3308,
1997,
690,
387,
13282,
430,
198,
10200,
9773,
279,
13564,
538,
13,
1789,
3187,
369,
2777,
11,
279,
198,
22075,
538,
374,
1674,
8178,
19712,
382,
2746,
279,
5852,
374,
912,
28694,
955,
11,
279,
50028,
198,
1999,
1997,
690,
387,
6052,
271,
31,
4151,
674,
7072,
32468,
340,
31,
4151,
674,
7072,
2292,
340,
36913,
13979,
279,
3308,
1997,
8649,
264,
3284,
28694,
955,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static ClassNode getWrapper(ClassNode cn) {
cn = cn.redirect();
if (!isPrimitiveType(cn)) return cn;
if (cn==boolean_TYPE) {
return Boolean_TYPE;
} else if (cn==byte_TYPE) {
return Byte_TYPE;
} else if (cn==char_TYPE) {
return Character_TYPE;
} else if (cn==short_TYPE) {
return Short_TYPE;
} else if (cn==int_TYPE) {
return Integer_TYPE;
} else if (cn==long_TYPE) {
return Long_TYPE;
} else if (cn==float_TYPE) {
return Float_TYPE;
} else if (cn==double_TYPE) {
return Double_TYPE;
} else if (cn==VOID_TYPE) {
return void_WRAPPER_TYPE;
}
else {
return cn;
}
}
Documentation: | Creates a ClassNode containing the wrapper of a ClassNode
of primitive type. Any ClassNode representing a primitive
type should be created using the predefined types used in
class. The method will check the parameter for known
references of ClassNode representing a primitive type. If
Reference is found, then a ClassNode will be contained that
represents the wrapper class. For example for boolean, the
wrapper class is java.lang.Boolean.
If the parameter is no primitive type, the redirected
ClassNode will be returned
@see #make(Class)
@see #make(String)
@param cn the ClassNode containing a possible primitive type |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
6872,
1997,
1505,
87434,
32468,
1997,
955,
8,
341,
286,
422,
1533,
35505,
2124,
16328,
5930,
673,
68037,
10340,
471,
854,
280,
286,
422,
320,
1337,
2124,
5160,
2189,
341,
310,
1796,
27,
3607,
1997,
29,
5528,
284,
955,
673,
18337,
545,
310,
6872,
1997,
1766,
19446,
280,
310,
369,
320,
3607,
1997,
9686,
551,
5528,
8,
341,
394,
443,
10240,
5528,
11,
430,
527,
539,
8278,
323,
505,
3075,
198,
394,
422,
1533,
35505,
2124,
16328,
85672,
673,
68037,
10340,
3136,
280,
394,
443,
10240,
18027,
5528,
902,
617,
264,
1670,
8292,
198,
394,
422,
320,
43920,
7001,
3760,
37950,
85672,
595,
3136,
280,
394,
422,
320,
8318,
673,
22360,
3329,
1999,
1020,
7324,
19792,
10686,
4283,
595,
3136,
280,
394,
422,
320,
44947,
4283,
81365,
3607,
85672,
9088,
1535,
9686,
673,
9905,
2189,
5947,
2994,
8,
3136,
401,
394,
443,
584,
617,
1403,
5528,
11,
779,
912,
47687,
198,
394,
422,
320,
15456,
5947,
2994,
8,
471,
854,
280,
394,
1766,
284,
9686,
280,
310,
457,
310,
471,
1766,
401,
286,
335,
775,
1504,
310,
1796,
27,
3607,
1997,
29,
5528,
284,
955,
673,
16328,
18337,
545,
310,
6872,
1997,
1766,
284,
854,
280,
310,
422,
320,
36842,
5947,
2994,
8,
341,
394,
369,
320,
3607,
1997,
9686,
551,
5528,
8,
341,
504,
422,
1533,
4752,
3642,
481,
37950,
5930,
11,
9686,
595,
341,
667,
422,
320,
15456,
5947,
2994,
8,
471,
854,
280,
667,
1766,
284,
9686,
280,
504,
457,
394,
457,
310,
457,
310,
471,
1766,
280,
286,
457,
262,
457,
65434,
25,
128001,
128000,
16851,
279,
3254,
8278,
1749,
315,
264,
538,
2494,
11,
422,
433,
374,
264,
47687,
955,
11,
477,
854,
6062,
627,
36913,
955,
264,
955,
369,
902,
311,
2778,
369,
264,
3254,
8278,
1749,
198,
66103,
279,
1749,
2494,
422,
955,
374,
264,
47687,
955,
11,
854,
6062
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
16851,
279,
3254,
8278,
1749,
315,
264,
538,
2494,
11,
422,
433,
374,
264,
47687,
955,
11,
477,
854,
6062,
627,
36913,
955,
264,
955,
369,
902,
311,
2778,
369,
264,
3254,
8278,
1749,
198,
66103,
279,
1749,
2494,
422,
955,
374,
264,
47687,
955,
11,
854,
6062,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static MethodNode findSAM(ClassNode type) {
if (!Modifier.isAbstract(type.getModifiers())) return null;
if (type.isInterface()) {
List<MethodNode> methods = type.getMethods();
MethodNode found=null;
for (MethodNode mi : methods) {
// ignore methods, that are not abstract and from Object
if (!Modifier.isAbstract(mi.getModifiers())) continue;
// ignore trait methods which have a default implementation
if (Traits.hasDefaultImplementation(mi)) continue;
if (mi.getDeclaringClass().equals(OBJECT_TYPE)) continue;
if (OBJECT_TYPE.getDeclaredMethod(mi.getName(), mi.getParameters())!=null) continue;
// we have two methods, so no SAM
if (found!=null) return null;
found = mi;
}
return found;
} else {
List<MethodNode> methods = type.getAbstractMethods();
MethodNode found = null;
if (methods!=null) {
for (MethodNode mi : methods) {
if (!hasUsableImplementation(type, mi)) {
if (found!=null) return null;
found = mi;
}
}
}
return found;
}
}
Documentation: | Returns the single abstract method of a class node, if it is a SAM type, or null otherwise.
@param type a type for which to search for a single abstract method
@return the method node if type is a SAM type, null otherwise |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
528,
636,
4808,
2041,
768,
7,
528,
955,
11,
2777,
2571,
2746,
8087,
883,
1504,
286,
3480,
7,
955,
883,
1504,
310,
1162,
22684,
1106,
48377,
3701,
84466,
512,
394,
471,
220,
15,
401,
310,
1162,
92709,
512,
310,
1162,
59553,
18681,
512,
310,
1162,
17116,
2078,
18681,
512,
310,
1162,
83837,
25874,
18681,
512,
310,
1162,
47360,
12420,
18681,
512,
310,
1162,
9403,
39927,
18681,
512,
310,
1162,
19186,
18681,
512,
310,
1162,
43737,
18681,
512,
310,
1162,
8241,
15942,
20424,
18681,
512,
310,
1162,
8241,
15942,
22516,
18681,
512,
310,
1162,
22684,
23487,
18681,
512,
310,
1162,
28577,
23487,
18681,
512,
310,
1162,
28577,
23487,
53079,
18681,
512,
310,
1162,
25231,
17713,
20424,
18681,
512,
310,
1162,
25231,
17713,
22516,
18681,
512,
310,
1162,
25231,
17713,
7002,
878,
18681,
512,
394,
471,
220,
20,
401,
310,
1162,
91022,
512,
394,
471,
220,
605,
401,
310,
1162,
8241,
15942,
20424,
512,
394,
471,
220,
868,
401,
310,
1162,
8241,
15942,
22516,
512,
394,
471,
220,
508,
401,
310,
1162,
25231,
17713,
20424,
512,
310,
1162,
25231,
17713,
22516,
512,
310,
1162,
25231,
17713,
7002,
878,
512,
394,
471,
220,
1313,
401,
310,
1162,
22735,
4577,
41364,
15942,
512,
310,
1162,
22735,
4577,
9348,
41364,
15942,
512,
394,
471,
220,
1187,
401,
310,
1162,
22735,
4577,
9348,
18681,
512,
310,
1162,
22735,
4577,
18681,
512,
310,
1162,
22735,
4577,
91764,
86968,
512,
310,
1162,
22735,
4577,
91764,
86968,
18681,
512,
310,
1162,
22735,
4577,
73839,
19706,
86968,
512,
310,
1162,
22735,
4577,
73839,
19706,
86968,
18681,
512,
310,
1162,
22735,
4577,
8820,
512,
310,
1162,
64858,
57296,
512,
310,
1162,
49271,
57296,
512,
310,
1162,
12282,
7375,
43687,
12766,
512,
394,
471,
220,
914,
401,
310,
1162,
49426,
83667,
512,
310,
1162,
49426,
83667,
83667,
512,
394,
471,
220,
966,
401,
310,
1162,
22684,
23487,
512,
310,
1162,
28577,
23487,
512,
310,
1162,
28577,
23487,
53079,
512,
394,
471,
220,
1758,
401,
310,
1162,
59553,
512,
310,
1162,
17116,
2078,
512,
394,
471,
220,
1272,
401,
310,
1162,
83837,
25874,
512,
310,
1162,
47360,
12420,
512,
310,
1162,
9403,
39927,
512,
310,
1162,
19186,
512,
394,
471,
220,
1774,
401,
310,
1162,
4276,
512,
310,
1162,
13990,
3337,
45327,
512,
394,
471,
220,
1135,
401,
310,
1162,
62794,
3701,
26837,
512,
394,
471,
220,
2131,
401,
310,
1162,
59553,
72978,
512,
310,
1162,
17116,
2078,
69363,
512,
310,
1162,
71078,
72978,
72978,
512,
310,
1162,
71078,
69363,
69363,
512,
310,
1162,
13165,
40790,
72978,
72978,
512,
310,
1162,
13165,
40790,
69363,
69363,
512,
394,
471,
220,
2397,
401,
310,
1162,
71078,
72978,
512,
310,
1162,
71078,
69363,
512,
394,
471,
220,
2031,
401,
310,
1162,
43737,
512,
394,
471,
220,
5332,
401,
310,
1162,
62794,
3701,
14387,
512,
310,
1162,
22684,
1117,
53656,
27641,
59259,
512,
394,
471,
220,
2075,
401,
310,
1162,
49426,
512,
310,
1162,
54403,
1953,
2390,
512,
394,
471,
220,
1490,
401,
310,
1162,
12282,
7375,
22789,
512,
394,
471,
220,
5313,
280,
286,
557,
286,
422,
7,
2571,
2746,
8087,
883,
341,
310,
2571,
502,
18370,
62615,
47873,
1480,
7,
330,
27244,
768,
11472,
369,
2536,
95787,
1,
1465,
286,
557,
286,
471,
482,
16,
280,
262,
457,
65434,
25,
128001,
128000,
16851,
279,
54156,
315,
279,
5300,
5793,
13,
220,
11842,
95787,
596,
690,
198,
42993,
482,
16,
477,
264,
18370,
62615,
47873,
1480,
11,
11911,
389,
701,
22698,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
16851,
279,
54156,
315,
279,
5300,
5793,
13,
220,
11842,
95787,
596,
690,
198,
42993,
482,
16,
477,
264,
18370,
62615,
47873,
1480,
11,
11911,
389,
701,
22698,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static int getPrecedence( int type, boolean throwIfInvalid ) {
switch( type ) {
case LEFT_PARENTHESIS:
return 0;
case EQUAL:
case PLUS_EQUAL:
case MINUS_EQUAL:
case MULTIPLY_EQUAL:
case DIVIDE_EQUAL:
case INTDIV_EQUAL:
case MOD_EQUAL:
case POWER_EQUAL:
case LOGICAL_OR_EQUAL:
case LOGICAL_AND_EQUAL:
case LEFT_SHIFT_EQUAL:
case RIGHT_SHIFT_EQUAL:
case RIGHT_SHIFT_UNSIGNED_EQUAL:
case BITWISE_OR_EQUAL:
case BITWISE_AND_EQUAL:
case BITWISE_XOR_EQUAL:
return 5;
case QUESTION:
return 10;
case LOGICAL_OR:
return 15;
case LOGICAL_AND:
return 20;
case BITWISE_OR:
case BITWISE_AND:
case BITWISE_XOR:
return 22;
case COMPARE_IDENTICAL:
case COMPARE_NOT_IDENTICAL:
return 24;
case COMPARE_NOT_EQUAL:
case COMPARE_EQUAL:
case COMPARE_LESS_THAN:
case COMPARE_LESS_THAN_EQUAL:
case COMPARE_GREATER_THAN:
case COMPARE_GREATER_THAN_EQUAL:
case COMPARE_TO:
case FIND_REGEX:
case MATCH_REGEX:
case KEYWORD_INSTANCEOF:
return 25;
case DOT_DOT:
case DOT_DOT_DOT:
return 30;
case LEFT_SHIFT:
case RIGHT_SHIFT:
case RIGHT_SHIFT_UNSIGNED:
return 35;
case PLUS:
case MINUS:
return 40;
case MULTIPLY:
case DIVIDE:
case INTDIV:
case MOD:
return 45;
case NOT:
case REGEX_PATTERN:
return 50;
case SYNTH_CAST:
return 55;
case PLUS_PLUS:
case MINUS_MINUS:
case PREFIX_PLUS_PLUS:
case PREFIX_MINUS_MINUS:
case POSTFIX_PLUS_PLUS:
case POSTFIX_MINUS_MINUS:
return 65;
case PREFIX_PLUS:
case PREFIX_MINUS:
return 70;
case POWER:
return 72;
case SYNTH_METHOD:
case LEFT_SQUARE_BRACKET:
return 75;
case DOT:
case NAVIGATE:
return 80;
case KEYWORD_NEW:
return 85;
}
if( throwIfInvalid ) {
throw new GroovyBugError( "precedence requested for non-operator" );
}
return -1;
}
Documentation: | Returns the precedence of the specified operator. Non-operator's will
receive -1 or a GroovyBugError, depending on your preference. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
366,
51,
29,
350,
449,
7,
56667,
3203,
29,
22722,
883,
341,
286,
471,
8058,
77435,
62615,
18337,
18662,
7,
854,
11,
22722,
883,
4485,
262,
457,
65434,
25,
128001,
128000,
80695,
279,
22722,
311,
387,
2663,
369,
18576,
1211,
271,
36913,
22722,
279,
22722,
311,
1650,
389,
279,
1665,
198,
66103,
1121,
315,
8260,
279,
22722
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
80695,
279,
22722,
311,
387,
2663,
369,
18576,
1211,
271,
36913,
22722,
279,
22722,
311,
1650,
389,
279,
1665,
198,
66103,
1121,
315,
8260,
279,
22722,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public <T> T with( Closure<T> closure ) {
return DefaultGroovyMethods.with( null, closure ) ;
}
Documentation: | Allows the closure to be called for NullObject
@param closure the closure to call on the object
@return result of calling the closure |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
1118,
2777,
5280,
3607,
32468,
1997,
538,
1997,
11,
935,
48845,
11,
3308,
1318,
1417,
4266,
8,
987,
286,
1796,
5528,
284,
538,
1997,
673,
18337,
1679,
286,
422,
320,
867,
4266,
624,
854,
1393,
1417,
4266,
1996,
624,
15,
8,
987,
310,
369,
320,
12217,
602,
284,
5528,
30083,
2178,
602,
23652,
96627,
987,
394,
6872,
1997,
29038,
284,
320,
3607,
1997,
8,
602,
4630,
1679,
394,
2777,
1749,
8495,
284,
29038,
9088,
1020,
7324,
17709,
678,
741,
394,
422,
17709,
8495,
45668,
837,
464,
394,
443,
5456,
32175,
4726,
5852,
6492,
319,
310,
1720,
286,
1720,
286,
471,
905,
464,
262,
457,
65434,
25,
128001,
128000,
18700,
3508,
279,
3308,
1997,
5280,
279,
5300,
1749,
836,
271,
36913,
538,
1997,
578,
3308,
1997,
198,
36913,
48845,
578,
1749,
836,
198,
36913,
1417,
4266,
198,
66103,
3082,
422,
433,
5280,
279,
1749
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
18700,
3508,
279,
3308,
1997,
5280,
279,
5300,
1749,
836,
271,
36913,
538,
1997,
578,
3308,
1997,
198,
36913,
48845,
578,
1749,
836,
198,
36913,
1417,
4266,
198,
66103,
3082,
422,
433,
5280,
279,
1749,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private static boolean implementsMethod(ClassNode classNode, String methodName, Class[] argTypes) {
List methods = classNode.getMethods();
if (argTypes == null || argTypes.length ==0) {
for (Iterator i = methods.iterator(); i.hasNext();) {
MethodNode mn = (MethodNode) i.next();
boolean methodMatch = mn.getName().equals(methodName);
if(methodMatch)return true;
// TODO Implement further parameter analysis
}
}
return false;
}
Documentation: | Tests whether the ClassNode implements the specified method name
@param classNode The ClassNode
@param methodName The method name
@param argTypes
@return True if it implements the method |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
935,
37681,
11971,
368,
341,
286,
422,
320,
1337,
11971,
624,
854,
8,
341,
310,
11664,
6745,
284,
502,
11664,
3232,
1996,
368,
489,
5137,
1996,
353,
220,
605,
317,
310,
6745,
2102,
36206,
941,
9088,
1449,
310,
6745,
2102,
493,
26706,
310,
6745,
2102,
3232,
317,
310,
6745,
2102,
90956,
317,
310,
369,
320,
396,
602,
284,
220,
15,
26,
602,
366,
5137,
1996,
26,
602,
2516,
341,
394,
422,
320,
72,
871,
220,
15,
8,
341,
504,
6745,
2102,
13214,
7468,
394,
457,
394,
15521,
1719,
284,
5137,
1004,
947,
394,
6745,
2102,
21355,
40529,
9942,
24541,
7544,
310,
457,
310,
6745,
2102,
493,
45026,
310,
955,
11971,
284,
6745,
5180,
545,
286,
457,
286,
471,
955,
11971,
280,
262,
457,
65434,
25,
128001,
128000,
791,
955,
16819,
369,
264,
1749,
2494,
374,
264,
925,
8649,
279,
836,
315,
279,
1749,
11,
1202,
471,
955,
345,
438,
1202,
5852,
4595,
304,
264,
43553,
1376,
13,
1789,
40075,
11,
358,
2846,
1701,
279,
3645,
315,
264,
8102,
18489,
198,
30096,
5852,
5144,
382,
66103,
279,
955,
16819
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
791,
955,
16819,
369,
264,
1749,
2494,
374,
264,
925,
8649,
279,
836,
315,
279,
1749,
11,
1202,
471,
955,
345,
438,
1202,
5852,
4595,
304,
264,
43553,
1376,
13,
1789,
40075,
11,
358,
2846,
1701,
279,
3645,
315,
264,
8102,
18489,
198,
30096,
5852,
5144,
382,
66103,
279,
955,
16819,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public String getTypeDescriptor() {
if (typeDescriptor == null) {
StringBuilder buf = new StringBuilder(name.length() + parameters.length * 10);
buf.append(returnType.getName());
buf.append(' ');
buf.append(name);
buf.append('(');
for (int i = 0; i < parameters.length; i++) {
if (i > 0) {
buf.append(", ");
}
Parameter param = parameters[i];
buf.append(formatTypeName(param.getType()));
}
buf.append(')');
typeDescriptor = buf.toString();
}
return typeDescriptor;
}
Documentation: | The type descriptor for a method node is a string containing the name of the method, its return type,
and its parameter types in a canonical form. For simplicity, I'm using the format of a Java declaration
without parameter names.
@return the type descriptor |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
571,
2226,
198,
262,
586,
935,
64138,
368,
341,
286,
935,
2160,
941,
284,
20717,
1271,
1199,
5628,
19810,
1199,
36206,
941,
317,
286,
935,
4788,
4266,
284,
20717,
1271,
1199,
5628,
673,
45837,
29582,
1199,
5580,
36028,
317,
286,
935,
59577,
284,
20717,
1271,
1199,
5628,
673,
9905,
1199,
39059,
317,
286,
471,
20717,
1271,
1199,
5628,
673,
68037,
1199,
24236,
12099,
8,
489,
330,
330,
489,
2160,
941,
489,
330,
330,
489,
836,
489,
34679,
489,
59577,
489,
12590,
330,
489,
4788,
4266,
489,
330,
314,
2564,
335,
886,
262,
457,
65434,
25,
128001,
128000,
50122,
264,
29921,
24001,
925,
315,
279,
1749,
7419,
13,
1789,
40075,
11,
14281,
4595,
389,
1063,
315,
279,
5540,
198,
548,
539,
12882,
627,
66103,
198,
928,
1376,
315,
2494,
449,
1063,
14281,
5540,
56089
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
50122,
264,
29921,
24001,
925,
315,
279,
1749,
7419,
13,
1789,
40075,
11,
14281,
4595,
389,
1063,
315,
279,
5540,
198,
548,
539,
12882,
627,
66103,
198,
928,
1376,
315,
2494,
449,
1063,
14281,
5540,
56089,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: @Override
public String getText() {
String retType = AstToTextHelper.getClassText(returnType);
String exceptionTypes = AstToTextHelper.getThrowsClauseText(exceptions);
String parms = AstToTextHelper.getParametersText(parameters);
return AstToTextHelper.getModifiersText(modifiers) + " " + retType + " " + name + "(" + parms + ") " + exceptionTypes + " { ... }";
}
Documentation: | Provides a nicely formatted string of the method definition. For simplicity, generic types on some of the elements
are not displayed.
@return
string form of node with some generic elements suppressed |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
18370,
62615,
13591,
9743,
1318,
55817,
368,
341,
286,
26394,
10838,
7,
7750,
1105,
317,
286,
471,
55817,
41730,
1792,
18370,
62615,
13591,
9743,
58,
7750,
1105,
2546,
58987,
262,
457,
65434,
25,
128001,
128000,
4310,
264,
10839,
1358,
315,
55817
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
4310,
264,
10839,
1358,
315,
55817,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public GroovyConstructorDoc[] constructors() {
Collections.sort(constructors);
return constructors.toArray(new GroovyConstructorDoc[constructors.size()]);
}
Documentation: | returns a sorted array of constructors |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
18370,
62615,
1999,
9743,
1318,
9358,
20678,
368,
341,
286,
26394,
10838,
1471,
10185,
317,
286,
471,
24997,
41730,
1792,
18370,
62615,
1999,
9743,
7824,
10185,
2546,
58987,
262,
457,
65434,
25,
128001,
128000,
4310,
264,
10839,
1358,
315,
24997,
6989,
323,
25066
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
4310,
264,
10839,
1358,
315,
24997,
6989,
323,
25066,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public GroovyClassDoc[] innerClasses() {
Collections.sort(nested);
return nested.toArray(new GroovyClassDoc[nested.size()]);
}
Documentation: | returns a sorted array of nested classes and interfaces |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
18370,
62615,
1915,
9743,
1318,
5151,
368,
341,
286,
26394,
10838,
38801,
317,
286,
471,
5151,
41730,
1792,
18370,
62615,
1915,
9743,
58,
9184,
2546,
58987,
262,
457,
65434,
25,
128001,
128000,
4310,
264,
10839,
1358,
315,
5151
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
4310,
264,
10839,
1358,
315,
5151,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public GroovyFieldDoc[] fields() {
Collections.sort(fields);
return fields.toArray(new GroovyFieldDoc[fields.size()]);
}
Documentation: | returns a sorted array of fields |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
18370,
62615,
1915,
9743,
1318,
6012,
368,
341,
286,
26394,
10838,
47004,
317,
286,
471,
6012,
41730,
1792,
18370,
62615,
1915,
9743,
58,
13495,
2546,
58987,
262,
457,
65434,
25,
128001,
128000,
4310,
264,
10839,
1358,
315,
6012
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
4310,
264,
10839,
1358,
315,
6012,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public GroovyFieldDoc[] properties() {
Collections.sort(properties);
return properties.toArray(new GroovyFieldDoc[properties.size()]);
}
Documentation: | returns a sorted array of properties |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
18370,
62615,
1915,
9743,
1318,
7773,
9571,
368,
341,
286,
26394,
10838,
65645,
9571,
317,
286,
471,
7773,
9571,
41730,
1792,
18370,
62615,
1915,
9743,
58,
9195,
9571,
2546,
58987,
262,
457,
65434,
25,
128001,
128000,
4310,
264,
10839,
1358,
315,
7773,
18508
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
4310,
264,
10839,
1358,
315,
7773,
18508,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public GroovyFieldDoc[] enumConstants() {
Collections.sort(enumConstants);
return enumConstants.toArray(new GroovyFieldDoc[enumConstants.size()]);
}
Documentation: | returns a sorted array of enum constants |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
18370,
62615,
3607,
9743,
1318,
5528,
368,
341,
286,
26394,
10838,
17709,
82,
317,
286,
471,
5528,
41730,
1792,
18370,
62615,
3607,
9743,
58,
36842,
2546,
58987,
262,
457,
65434,
25,
128001,
128000,
4310,
264,
10839,
1358,
315,
5528
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
4310,
264,
10839,
1358,
315,
5528,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public GroovyMethodDoc[] methods() {
Collections.sort(methods);
return methods.toArray(new GroovyMethodDoc[methods.size()]);
}
Documentation: | returns a sorted array of methods |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
923,
21950,
3548,
11,
3075,
29,
2472,
8,
3872,
25395,
341,
286,
422,
320,
56950,
22305,
21753,
8,
341,
310,
422,
320,
14377,
1061,
2546,
368,
624,
220,
15,
8,
341,
394,
7309,
9026,
284,
2472,
41005,
545,
310,
335,
775,
341,
394,
422,
1533,
2235,
41005,
1020,
7324,
31239,
9026,
595,
341,
504,
2571,
502,
22085,
446,
644,
79499,
7039,
1766,
369,
7309,
923,
11390,
394,
457,
310,
457,
310,
7309,
1061,
1388,
9325,
317,
310,
471,
280,
286,
457,
286,
528,
4320,
284,
9203,
4387,
44433,
861,
2929,
9325,
705,
502,
5166,
21191,
2284,
2235,
10883,
7544,
286,
422,
320,
9399,
976,
220,
16,
8,
341,
310,
8241,
29936,
446,
15346,
617,
6177,
220,
16,
2872,
539,
330,
489,
4320,
489,
330,
994,
4560,
311,
923,
25,
330,
489,
2472,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
73211,
279,
3984,
2472,
315,
1401,
19625,
13840,
439,
264,
502,
2872,
304,
279,
2007,
15609,
555,
420,
28134,
382,
36913,
2472,
279,
1401,
320,
6361,
11753,
705,
907,
13840,
311,
923,
439,
264,
502,
2872,
198,
31,
8262,
25395,
422,
264,
4729,
1493,
13980
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
73211,
279,
3984,
2472,
315,
1401,
19625,
13840,
439,
264,
502,
2872,
304,
279,
2007,
15609,
555,
420,
28134,
382,
36913,
2472,
279,
1401,
320,
6361,
11753,
705,
907,
13840,
311,
923,
439,
264,
502,
2872,
198,
31,
8262,
25395,
422,
264,
4729,
1493,
13980,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void add(Map<String, Object> map) throws SQLException {
if (withinDataSetBatch) {
if (batchData.size() == 0) {
batchKeys = map.keySet();
} else {
if (!map.keySet().equals(batchKeys)) {
throw new IllegalArgumentException("Inconsistent keys found for batch add!");
}
}
batchData.add(map);
return;
}
int answer = executeUpdate(buildListQuery(map), new ArrayList<Object>(map.values()));
if (answer != 1) {
LOG.warning("Should have updated 1 row not " + answer + " when trying to add: " + map);
}
}
Documentation: | Adds the provided map of key-value pairs as a new row in the table represented by this DataSet.
@param map the key (column-name), value pairs to add as a new row
@throws SQLException if a database error occurs |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
1855,
1577,
4445,
11,
528,
1973,
9201,
11,
56667,
22722,
8,
3872,
25395,
341,
286,
1855,
3179,
5550,
8433,
1535,
636,
9905,
1535,
4445,
11,
1973,
9201,
11,
22722,
317,
262,
457,
65434,
25,
128001,
128000,
56392,
279,
3984,
22722,
369,
264,
330,
2964,
1,
315,
7123,
505,
279,
2007,
15609,
555,
420,
28134,
627,
32,
2199,
374,
4613,
439,
6041,
520,
264,
220,
16,
6108,
4445,
11,
323,
8649,
264,
7340,
1396,
315,
7123,
382,
36913,
4445,
220,
279,
220,
16,
6108,
4445,
369,
279,
1176,
2872,
311,
387,
15590,
198,
36913,
1973,
9201,
279,
7340,
1396,
315,
7123,
311,
387,
15590,
198,
36913,
22722,
2663,
369,
1855,
2872,
449,
264,
18370,
62615,
34308,
198,
31,
8262,
25395,
422,
264,
4729,
2680,
1493,
13980,
198,
31,
4151,
10707,
62615,
10251,
23867,
2,
9739,
3179,
2292,
11,
1674,
2013,
5937,
11,
528,
11,
528,
11,
10707,
62615,
8178,
732,
11915,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
56392,
279,
3984,
22722,
369,
264,
330,
2964,
1,
315,
7123,
505,
279,
2007,
15609,
555,
420,
28134,
627,
32,
2199,
374,
4613,
439,
6041,
520,
264,
220,
16,
6108,
4445,
11,
323,
8649,
264,
7340,
1396,
315,
7123,
382,
36913,
4445,
220,
279,
220,
16,
6108,
4445,
369,
279,
1176,
2872,
311,
387,
15590,
198,
36913,
1973,
9201,
279,
7340,
1396,
315,
7123,
311,
387,
15590,
198,
36913,
22722,
2663,
369,
1855,
2872,
449,
264,
18370,
62615,
34308,
198,
31,
8262,
25395,
422,
264,
4729,
2680,
1493,
13980,
198,
31,
4151,
10707,
62615,
10251,
23867,
2,
9739,
3179,
2292,
11,
1674,
2013,
5937,
11,
528,
11,
528,
11,
10707,
62615,
8178,
732,
11915,
8,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void each(int offset, int maxRows, Closure closure) throws SQLException {
eachRow(getSql(), getParameters(), offset, maxRows, closure);
}
Documentation: | Calls the provided closure for a "page" of rows from the table represented by this DataSet.
A page is defined as starting at a 1-based offset, and containing a maximum number of rows.
@param offset the 1-based offset for the first row to be processed
@param maxRows the maximum number of rows to be processed
@param closure called for each row with a GroovyResultSet
@throws SQLException if a database access error occurs
@see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure) |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
742,
15411,
45394,
3607,
32468,
1997,
538,
1997,
11,
2777,
10950,
481,
11,
935,
45376,
8,
987,
286,
935,
34529,
678,
284,
330,
456,
1,
489,
16197,
1999,
5628,
79598,
70296,
741,
286,
6872,
1997,
41488,
284,
538,
1997,
673,
45394,
3607,
446,
751,
1,
489,
16197,
1999,
5628,
79598,
70296,
22174,
286,
422,
320,
89579,
976,
854,
8,
987,
310,
443,
2175,
279,
6484,
2082,
2565,
319,
310,
22504,
2082,
284,
41488,
45665,
7466,
310,
16783,
50202,
284,
767,
55,
21582,
820,
1150,
2885,
310,
16783,
25148,
284,
767,
55,
21582,
53930,
2885,
310,
16783,
11223,
1150,
284,
767,
55,
14505,
466,
673,
9905,
10324,
15,
948,
14197,
6333,
310,
8527,
8806,
2565,
284,
502,
8527,
8806,
7466,
310,
443,
1893,
264,
2254,
3977,
311,
3412,
279,
2362,
907,
505,
279,
34529,
319,
310,
2565,
1388,
8806,
7,
10210,
50,
22739,
1150,
11,
1650,
2028,
55,
5550,
466,
678,
595,
3155,
310,
443,
923,
279,
4027,
53,
11269,
481,
4164,
1749,
1650,
319,
310,
2565,
1388,
8806,
48995,
33791,
2028,
55,
446,
11029,
53,
11269,
481,
4164,
498,
2897,
7961,
504,
738,
55,
70296,
705,
50202,
11,
11223,
1150,
595,
22174,
310,
443,
1650,
279,
6484,
2565,
11,
902,
690,
36548,
743,
279,
907,
10489,
319,
310,
2565,
1388,
8806,
16221,
3155,
310,
422,
320,
7821,
481,
8,
987,
394,
443,
636,
279,
502,
907,
311,
17105,
304,
279,
1567,
319,
394,
2565,
1388,
8806,
7,
10210,
50,
56286,
11,
1650,
2028,
55,
5550,
466,
678,
595,
3155,
394,
443,
923,
279,
4027,
3128,
4164,
1749,
1650,
319,
394,
2565,
1388,
8806,
48995,
33791,
2028,
55,
446,
11029,
3128,
4164,
498,
2897,
2809,
55,
70296,
705,
50202,
11,
25148,
595,
4965,
310,
2616,
310,
443,
8454,
279,
6484,
2082,
2565,
449,
1057,
502,
832,
319,
310,
41488,
87261,
19200,
741,
286,
1720,
262,
457,
65434,
25,
128001,
128000,
27885,
459,
6484,
41488,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
27885,
459,
6484,
41488,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private void wrapSetterMethod(ClassNode classNode, boolean bindable, String propertyName) {
String getterName = "get" + MetaClassHelper.capitalize(propertyName);
MethodNode setter = classNode.getSetterMethod("set" + MetaClassHelper.capitalize(propertyName));
if (setter != null) {
// Get the existing code block
Statement code = setter.getCode();
Expression oldValue = varX("$oldValue");
Expression newValue = varX("$newValue");
Expression proposedValue = varX(setter.getParameters()[0].getName());
BlockStatement block = new BlockStatement();
// create a local variable to hold the old value from the getter
block.addStatement(declS(oldValue, callThisX(getterName)));
// add the fireVetoableChange method call
block.addStatement(stmt(callThisX("fireVetoableChange", args(
constX(propertyName), oldValue, proposedValue))));
// call the existing block, which will presumably set the value properly
block.addStatement(code);
if (bindable) {
// get the new value to emit in the event
block.addStatement(declS(newValue, callThisX(getterName)));
// add the firePropertyChange method call
block.addStatement(stmt(callThisX("firePropertyChange", args(constX(propertyName), oldValue, newValue))));
}
// replace the existing code block with our new one
setter.setCode(block);
}
}
Documentation: | Wrap an existing setter. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
1317,
6352,
1730,
20408,
659,
8,
3872,
9530,
11,
22085,
198,
262,
341,
286,
1620,
1317,
1318,
1404,
284,
314,
15,
43,
2368,
286,
1855,
1738,
697,
2407,
325,
1214,
11,
94338,
96054,
11,
502,
56667,
44367,
2284,
2994,
8,
341,
310,
586,
742,
656,
7368,
12809,
1318,
2897,
8,
341,
394,
1404,
58,
15,
60,
1447,
1819,
1738,
8,
2897,
58,
15,
10927,
4222,
545,
310,
457,
286,
3086,
286,
471,
1404,
58,
15,
947,
262,
457,
65434,
25,
128001,
128000,
59008,
988,
6352,
1404,
439,
2860,
1404,
315,
682,
1202,
3626,
11,
53947,
382,
36913,
659,
264,
1052,
1665,
198,
66103,
6352,
1404,
320,
4222,
340,
31,
11536,
220,
17,
13,
16,
271,
31,
8262,
9530,
422,
2958,
1665,
5300,
1587,
539,
3073,
198,
31,
8262,
22085,
422,
279,
3984,
2958,
1665,
1587,
539,
4097,
264,
6352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
59008,
988,
6352,
1404,
439,
2860,
1404,
315,
682,
1202,
3626,
11,
53947,
382,
36913,
659,
264,
1052,
1665,
198,
66103,
6352,
1404,
320,
4222,
340,
31,
11536,
220,
17,
13,
16,
271,
31,
8262,
9530,
422,
2958,
1665,
5300,
1587,
539,
3073,
198,
31,
8262,
22085,
422,
279,
3984,
2958,
1665,
1587,
539,
4097,
264,
6352,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static long directorySize(File self) throws IOException, IllegalArgumentException
{
final long[] size = {0L};
eachFileRecurse(self, FileType.FILES, new Closure<Void>(null) {
public void doCall(Object[] args) {
size[0] += ((File) args[0]).length();
}
});
return size[0];
}
Documentation: | Calculates directory size as total size of all its files, recursively.
@param self a file object
@return directory size (length)
@since 2.1
@throws IOException if File object specified does not exist
@throws IllegalArgumentException if the provided File object does not represent a directory |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
366,
51,
29,
350,
6859,
4959,
2519,
20408,
659,
11,
935,
20791,
11,
571,
54954,
4975,
3764,
28,
16778,
941,
3150,
11,
2671,
429,
10248,
8178,
6567,
1318,
909,
56667,
3203,
29,
22722,
8,
3872,
9530,
341,
286,
471,
6565,
77435,
62615,
18337,
5402,
4959,
2519,
1792,
5172,
1214,
705,
20791,
11,
22722,
317,
262,
457,
65434,
25,
128001,
128000,
8705,
988,
1555,
420,
1052,
1584,
555,
1584,
11,
45473,
1855,
1584,
1701,
198,
1820,
2728,
20791,
25829,
13,
1789,
1855,
1584,
11,
279,
2728,
22722,
374,
2663,
449,
198,
64,
3254,
5852,
1694,
279,
1160,
315,
9246,
25157,
555,
45473,
279,
1584,
198,
20019,
9248,
315,
279,
2728,
5912,
7645,
627,
24901,
279,
5070,
1511,
369,
8863,
279,
1052,
527,
8036,
382,
36913,
659,
262,
264,
2958,
198,
36913,
20791,
256,
279,
1624,
2408,
287,
5912,
7645,
198,
36913,
22722,
264,
22722,
198,
66103,
279,
1566,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
8262,
1674,
2013,
44218,
53126,
34990,
1378,
198,
333,
279,
5912,
7645,
596,
20047,
374,
8482,
198,
31,
4151,
6565,
77435,
62615,
18337,
2,
7105,
4959,
2519,
13098,
4340,
48531,
11,
1674,
8178,
6567,
11,
10707,
62615,
8178,
732,
11915,
340,
31,
11536,
220,
16,
13,
20,
13,
20
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
8705,
988,
1555,
420,
1052,
1584,
555,
1584,
11,
45473,
1855,
1584,
1701,
198,
1820,
2728,
20791,
25829,
13,
1789,
1855,
1584,
11,
279,
2728,
22722,
374,
2663,
449,
198,
64,
3254,
5852,
1694,
279,
1160,
315,
9246,
25157,
555,
45473,
279,
1584,
198,
20019,
9248,
315,
279,
2728,
5912,
7645,
627,
24901,
279,
5070,
1511,
369,
8863,
279,
1052,
527,
8036,
382,
36913,
659,
262,
264,
2958,
198,
36913,
20791,
256,
279,
1624,
2408,
287,
5912,
7645,
198,
36913,
22722,
264,
22722,
198,
66103,
279,
1566,
907,
6052,
555,
279,
22722,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
8262,
1674,
2013,
44218,
53126,
34990,
1378,
198,
333,
279,
5912,
7645,
596,
20047,
374,
8482,
198,
31,
4151,
6565,
77435,
62615,
18337,
2,
7105,
4959,
2519,
13098,
4340,
48531,
11,
1674,
8178,
6567,
11,
10707,
62615,
8178,
732,
11915,
340,
31,
11536,
220,
16,
13,
20,
13,
20,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static <T> T splitEachLine(File self, String regex, @ClosureParams(value=SimpleType.class, options="java.lang.String[]") Closure<T> closure) throws IOException {
return IOGroovyMethods.splitEachLine(newReader(self), regex, closure);
}
Documentation: | Iterates through this file line by line, splitting each line using
the given regex separator. For each line, the given closure is called with
a single parameter being the list of strings computed by splitting the line
around matches of the given regular expression.
Finally the resources used for processing the file are closed.
@param self a File
@param regex the delimiting regular expression
@param closure a closure
@return the last value returned by the closure
@throws IOException if an IOException occurs.
@throws java.util.regex.PatternSyntaxException
if the regular expression's syntax is invalid
@see IOGroovyMethods#splitEachLine(java.io.Reader, java.lang.String, groovy.lang.Closure)
@since 1.5.5 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
742,
3350,
20408,
1052,
11,
935,
1495,
11,
935,
11878,
8,
3872,
9530,
341,
286,
30504,
7061,
284,
854,
280,
286,
1456,
341,
310,
43756,
704,
284,
502,
43756,
4971,
317,
310,
3350,
8729,
845,
33,
316,
2746,
8327,
7078,
751,
11,
704,
317,
310,
7061,
284,
502,
53158,
6628,
10029,
11,
11878,
317,
310,
7061,
3921,
7383,
317,
310,
7061,
23907,
1454,
310,
30504,
2798,
284,
7061,
280,
310,
7061,
284,
854,
280,
310,
2798,
4757,
545,
286,
335,
5616,
341,
310,
3345,
2409,
12358,
39456,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
8144,
279,
1495,
311,
279,
2958,
11,
1701,
279,
5300,
11418,
382,
36913,
1052,
262,
264,
2958,
198,
36913,
1495,
262,
279,
1495,
311,
3350,
311,
279,
2958,
198,
36913,
11878,
279,
11878,
1511,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
8144,
279,
1495,
311,
279,
2958,
11,
1701,
279,
5300,
11418,
382,
36913,
1052,
262,
264,
2958,
198,
36913,
1495,
262,
279,
1495,
311,
3350,
311,
279,
2958,
198,
36913,
11878,
279,
11878,
1511,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static void write(File file, String text, String charset) throws IOException {
Writer writer = null;
try {
FileOutputStream out = new FileOutputStream(file);
writeUTF16BomIfRequired(charset, out);
writer = new OutputStreamWriter(out, charset);
writer.write(text);
writer.flush();
Writer temp = writer;
writer = null;
temp.close();
} finally {
closeWithWarning(writer);
}
}
Documentation: | Write the text to the File, using the specified encoding.
@param file a File
@param text the text to write to the File
@param charset the charset used
@throws IOException if an IOException occurs.
@since 1.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
742,
8911,
20408,
1052,
11,
3075,
1495,
8,
3872,
9530,
341,
286,
30504,
7061,
284,
854,
280,
286,
1456,
341,
310,
7061,
284,
502,
56921,
4971,
11,
837,
317,
310,
19337,
10668,
5628,
3921,
39456,
11,
1495,
317,
310,
7061,
23907,
1454,
310,
30504,
2798,
284,
7061,
280,
310,
7061,
284,
854,
280,
310,
2798,
4757,
545,
286,
335,
5616,
341,
310,
3345,
2409,
12358,
39456,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
24819,
279,
1495,
520,
279,
842,
315,
279,
2958,
382,
36913,
1052,
264,
2958,
198,
36913,
1495,
279,
1495,
311,
8911,
520,
279,
842,
315,
279,
2958,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
24819,
279,
1495,
520,
279,
842,
315,
279,
2958,
382,
36913,
1052,
264,
2958,
198,
36913,
1495,
279,
1495,
311,
8911,
520,
279,
842,
315,
279,
2958,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static void append(File file, Object text) throws IOException {
Writer writer = null;
try {
writer = new FileWriter(file, true);
InvokerHelper.write(writer, text);
writer.flush();
Writer temp = writer;
writer = null;
temp.close();
} finally {
closeWithWarning(writer);
}
}
Documentation: | Append the text at the end of the File.
@param file a File
@param text the text to append at the end of the File
@throws IOException if an IOException occurs.
@since 1.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
742,
8911,
20408,
1052,
11,
3075,
1495,
11,
935,
11878,
8,
3872,
9530,
341,
286,
30504,
7061,
284,
854,
280,
286,
1456,
341,
310,
43756,
704,
284,
502,
43756,
4971,
11,
837,
317,
310,
422,
1533,
1213,
12347,
2189,
341,
394,
3350,
8729,
845,
33,
316,
2746,
8327,
7078,
751,
11,
704,
317,
310,
457,
310,
7061,
284,
502,
53158,
6628,
10029,
11,
11878,
317,
310,
19337,
10668,
5628,
3921,
39456,
11,
1495,
317,
310,
7061,
23907,
1454,
310,
30504,
2798,
284,
7061,
280,
310,
7061,
284,
854,
280,
310,
2798,
4757,
545,
286,
335,
5616,
341,
310,
3345,
2409,
12358,
39456,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
24819,
279,
1495,
520,
279,
842,
315,
279,
2958,
11,
1701,
264,
5300,
11418,
382,
36913,
1052,
262,
264,
2958,
198,
36913,
1495,
262,
279,
1495,
311,
8911,
520,
279,
842,
315,
279,
2958,
198,
36913,
11878,
279,
11878,
1511,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
24819,
279,
1495,
520,
279,
842,
315,
279,
2958,
11,
1701,
264,
5300,
11418,
382,
36913,
1052,
262,
264,
2958,
198,
36913,
1495,
262,
279,
1495,
311,
8911,
520,
279,
842,
315,
279,
2958,
198,
36913,
11878,
279,
11878,
1511,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static void append(File file, Object text, String charset) throws IOException {
Writer writer = null;
try {
FileOutputStream out = new FileOutputStream(file, true);
if (!file.exists()) {
writeUTF16BomIfRequired(charset, out);
}
writer = new OutputStreamWriter(out, charset);
InvokerHelper.write(writer, text);
writer.flush();
Writer temp = writer;
writer = null;
temp.close();
} finally {
closeWithWarning(writer);
}
}
Documentation: | Append the text at the end of the File, using a specified encoding.
@param file a File
@param text the text to append at the end of the File
@param charset the charset used
@throws IOException if an IOException occurs.
@since 1.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
742,
8911,
20408,
1052,
11,
30504,
7061,
11,
935,
11878,
8,
3872,
9530,
341,
286,
8911,
4187,
291,
4971,
11,
7061,
11,
11878,
317,
262,
457,
65434,
25,
128001,
128000,
24819,
279,
1495,
17665,
555,
279,
30504,
520,
279,
842,
315,
279,
2958,
11,
1701,
264,
5300,
11418,
382,
36913,
1052,
264,
2958,
198,
36913,
7061,
279,
30504,
44413,
279,
1495,
311,
8911,
520,
279,
842,
315,
279,
2958,
198,
36913,
11878,
279,
11878,
1511,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
17,
13,
18
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
24819,
279,
1495,
17665,
555,
279,
30504,
520,
279,
842,
315,
279,
2958,
11,
1701,
264,
5300,
11418,
382,
36913,
1052,
264,
2958,
198,
36913,
7061,
279,
30504,
44413,
279,
1495,
311,
8911,
520,
279,
842,
315,
279,
2958,
198,
36913,
11878,
279,
11878,
1511,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
17,
13,
18,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static void append(File file, Writer writer, String charset) throws IOException {
appendBuffered(file, writer, charset);
}
Documentation: | Append the text supplied by the Writer at the end of the File, using a specified encoding.
@param file a File
@param writer the Writer supplying the text to append at the end of the File
@param charset the charset used
@throws IOException if an IOException occurs.
@since 2.3 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
879,
1118,
742,
3350,
40080,
845,
33,
316,
7,
13087,
4365,
11,
2777,
2466,
44331,
8,
3872,
9530,
341,
286,
422,
320,
16548,
44331,
8,
341,
310,
4365,
3921,
4172,
17,
317,
310,
4365,
3921,
4172,
16,
317,
286,
335,
775,
341,
310,
4365,
3921,
4172,
16,
317,
310,
4365,
3921,
4172,
17,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
8144,
264,
11146,
7365,
4488,
520,
279,
7314,
315,
279,
1052,
271,
36913,
4365,
262,
279,
43756,
311,
3350,
279,
426,
1937,
311,
198,
36913,
2466,
44331,
837,
422,
20677,
220,
845,
6295,
4060,
1122,
477,
905,
422,
12310,
4060,
1122,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
8144,
264,
11146,
7365,
4488,
520,
279,
7314,
315,
279,
1052,
271,
36913,
4365,
262,
279,
43756,
311,
3350,
279,
426,
1937,
311,
198,
36913,
2466,
44331,
837,
422,
20677,
220,
845,
6295,
4060,
1122,
477,
905,
422,
12310,
4060,
1122,
198,
31,
8262,
9530,
422,
459,
9530,
13980,
627,
31,
11536,
220,
16,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: private static void writeUtf16Bom(OutputStream stream, boolean bigEndian) throws IOException {
if (bigEndian) {
stream.write(-2);
stream.write(-1);
} else {
stream.write(-1);
stream.write(-2);
}
}
Documentation: | Write a Byte Order Mark at the beginning of the file
@param stream the FileOutputStream to write the BOM to
@param bigEndian true if UTF 16 Big Endian or false if Low Endian
@throws IOException if an IOException occurs.
@since 1.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
2682,
3308,
48337,
8397,
5998,
2292,
836,
8,
341,
286,
422,
320,
609,
624,
854,
8,
471,
854,
280,
286,
22183,
320,
1058,
8397,
8,
341,
310,
471,
538,
8397,
673,
3232,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
19209,
264,
538,
505,
279,
538,
6636,
13,
1115,
6636,
5727,
1193,
6989,
6799,
1555,
198,
576,
538,
16432,
477,
459,
37456,
9360,
2937,
13,
1442,
912,
538,
374,
9967,
369,
264,
198,
52340,
836,
11,
1243,
279,
1749,
1288,
471,
854,
382,
36913,
836,
315,
279,
538,
198,
66103,
279,
538,
9967,
369,
279,
2728,
836,
198,
31,
4151,
674,
14474,
8397,
5998,
2292,
340,
31,
4151,
674,
751,
1999,
8397,
5998,
32468,
340,
31,
4151,
674,
7574,
8397,
368
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
19209,
264,
538,
505,
279,
538,
6636,
13,
1115,
6636,
5727,
1193,
6989,
6799,
1555,
198,
576,
538,
16432,
477,
459,
37456,
9360,
2937,
13,
1442,
912,
538,
374,
9967,
369,
264,
198,
52340,
836,
11,
1243,
279,
1749,
1288,
471,
854,
382,
36913,
836,
315,
279,
538,
198,
66103,
279,
538,
9967,
369,
279,
2728,
836,
198,
31,
4151,
674,
14474,
8397,
5998,
2292,
340,
31,
4151,
674,
751,
1999,
8397,
5998,
32468,
340,
31,
4151,
674,
7574,
8397,
368,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: protected Class getClassCacheEntry(String name) {
if (name == null) return null;
synchronized (classCache) {
return classCache.get(name);
}
}
Documentation: | gets a class from the class cache. This cache contains only classes loaded through
this class loader or an InnerLoader instance. If no class is stored for a
specific name, then the method should return null.
@param name of the class
@return the class stored for the given name
@see #removeClassCacheEntry(String)
@see #setClassCacheEntry(Class)
@see #clearCache() |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
16197,
1999,
15976,
4164,
7921,
1318,
636,
12452,
1999,
15976,
77598,
32670,
368,
341,
286,
22183,
320,
3455,
2811,
861,
8,
341,
310,
5166,
27,
12452,
1999,
15976,
4164,
7921,
29,
2160,
4125,
504,
502,
5166,
27,
12452,
1999,
15976,
4164,
7921,
2284,
3455,
2811,
861,
2546,
17579,
6414,
13319,
481,
32768,
861,
2546,
1449,
310,
2160,
28177,
30291,
13319,
481,
32768,
861,
317,
310,
2160,
28177,
58169,
2811,
861,
317,
310,
471,
2160,
41730,
1792,
16197,
1999,
15976,
4164,
7921,
58,
2171,
2546,
58987,
286,
457,
262,
457,
65434,
25,
128001,
128000,
50458,
459,
1358,
315,
315,
682,
9879,
19863,
12452,
1999,
2811,
13422,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
50458,
459,
1358,
315,
315,
682,
9879,
19863,
12452,
1999,
2811,
13422,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public MetaClassRegistryChangeEventListener[] getMetaClassRegistryChangeEventListeners() {
synchronized (changeListenerList) {
ArrayList<MetaClassRegistryChangeEventListener> ret =
new ArrayList<MetaClassRegistryChangeEventListener>(changeListenerList.size()+nonRemoveableChangeListenerList.size());
ret.addAll(nonRemoveableChangeListenerList);
ret.addAll(changeListenerList);
return ret.toArray(new MetaClassRegistryChangeEventListener[ret.size()]);
}
}
Documentation: | Gets an array of of all registered ConstantMetaClassListener instances. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
16197,
1999,
15976,
38986,
1577,
2997,
12318,
8,
341,
286,
422,
320,
1012,
12318,
976,
423,
10443,
25006,
14131,
8,
341,
310,
422,
320,
4956,
23080,
624,
854,
8,
341,
394,
2937,
23080,
284,
502,
16197,
1999,
15976,
9871,
545,
310,
457,
310,
471,
2937,
23080,
280,
286,
335,
775,
341,
310,
422,
320,
4956,
96339,
624,
854,
8,
341,
394,
2937,
96339,
284,
502,
16197,
1999,
15976,
9871,
5549,
10443,
25006,
14131,
317,
310,
457,
310,
471,
2937,
96339,
280,
286,
457,
262,
457,
65434,
25,
128001,
128000,
27004,
315,
16197,
1999,
15976,
382,
36913,
2997,
12318,
198,
66103,
279,
19989
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
27004,
315,
16197,
1999,
15976,
382,
36913,
2997,
12318,
198,
66103,
279,
19989,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static MetaClassRegistry getInstance(int includeExtension) {
if (includeExtension != DONT_LOAD_DEFAULT) {
if (instanceInclude == null) {
instanceInclude = new MetaClassRegistryImpl();
}
return instanceInclude;
} else {
if (instanceExclude == null) {
instanceExclude = new MetaClassRegistryImpl(DONT_LOAD_DEFAULT);
}
return instanceExclude;
}
}
Documentation: | Singleton of MetaClassRegistry.
@param includeExtension
@return the registry |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
60039,
1997,
636,
7,
528,
1963,
883,
720,
262,
341,
286,
60039,
1997,
2449,
284,
854,
401,
286,
422,
7,
1963,
366,
1404,
368,
883,
720,
286,
341,
310,
2449,
284,
320,
34,
790,
1997,
8,
22138,
673,
7,
1963,
1465,
286,
557,
286,
471,
2449,
280,
262,
457,
65434,
25,
128001,
128000,
16851,
279,
5300,
2449,
11,
477,
854,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
16851,
279,
5300,
2449,
11,
477,
854,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public CSTNode get( int index )
{
CSTNode element = null;
if( index < size() )
{
element = (CSTNode)elements.get( index );
}
return element;
}
Documentation: | Returns the specified element, or null. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
60039,
1997,
743,
7,
528,
1963,
11,
60039,
1997,
2449,
883,
720,
262,
341,
1827,
286,
422,
7,
5540,
624,
854,
883,
720,
286,
341,
310,
2571,
502,
18370,
62615,
47873,
1480,
7,
330,
56605,
311,
743,
368,
389,
264,
42414,
59200,
1,
1465,
286,
557,
286,
422,
7,
1963,
624,
220,
15,
1024,
18708,
6229,
8243,
9857,
8,
883,
720,
286,
1504,
310,
6611,
310,
443,
1102,
596,
539,
279,
12474,
315,
2955,
430,
279,
3834,
6276,
420,
11,
719,
433,
198,
310,
443,
374,
264,
6696,
1885,
449,
19679,
11,
323,
279,
19679,
374,
810,
3062,
382,
310,
2571,
502,
18370,
62615,
47873,
1480,
7,
330,
56605,
311,
743,
368,
264,
2536,
90122,
439,
3789,
315,
264,
59200,
1,
1465,
286,
4555,
286,
6611,
286,
443,
22748,
16087,
449,
854,
82,
11,
422,
5995,
382,
286,
528,
1797,
284,
5540,
2546,
545,
286,
422,
7,
1963,
2669,
1797,
883,
720,
286,
341,
310,
369,
7,
528,
602,
284,
1797,
26,
602,
2717,
1963,
26,
602,
1044,
883,
720,
310,
341,
394,
5540,
1388,
7,
854,
1465,
310,
457,
286,
557,
286,
6611,
286,
443,
5112,
743,
304,
279,
2449,
382,
286,
5540,
995,
7,
1963,
11,
2449,
3559,
286,
471,
2449,
280,
262,
457,
65434,
25,
128001,
128000,
31275,
459,
2449,
304,
520,
279,
5300,
1963,
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
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
31275,
459,
2449,
304,
520,
279,
5300,
1963,
13,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public CSTNode set( int index, CSTNode element )
{
if( elements == null )
{
throw new GroovyBugError( "attempt to set() on a EMPTY Reduction" );
}
if( index == 0 && !(element instanceof Token) )
{
//
// It's not the greatest of design that the interface allows this, but it
// is a tradeoff with convenience, and the convenience is more important.
throw new GroovyBugError( "attempt to set() a non-Token as root of a Reduction" );
}
//
// Fill slots with nulls, if necessary.
int count = elements.size();
if( index >= count )
{
for( int i = count; i <= index; i++ )
{
elements.add( null );
}
}
//
// Then set in the element.
elements.set( index, element );
return element;
}
Documentation: | Sets an element in at the specified index. |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
742,
923,
4233,
907,
8,
341,
286,
8711,
3203,
29,
2449,
284,
502,
8711,
3203,
2284,
35618,
11,
907,
317,
286,
2449,
40025,
284,
9986,
280,
286,
422,
320,
14928,
976,
854,
8,
9986,
4630,
284,
2449,
280,
286,
9986,
284,
2449,
280,
286,
422,
320,
2025,
624,
854,
8,
2010,
284,
2449,
280,
262,
457,
65434,
25,
128001,
128000,
74094,
264,
907,
311,
279,
1160,
271,
36913,
907,
279,
907
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
74094,
264,
907,
311,
279,
1160,
271,
36913,
907,
279,
907,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public void add(T value) {
Element<T> element = new Element<T>(bundle, value);
element.previous = tail;
if (tail != null) tail.next = element;
tail = element;
if (head == null) head = element;
}
Documentation: | adds a value to the list
@param value the value |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
350,
1318,
79290,
4233,
1318,
259,
1895,
8,
341,
286,
1796,
3203,
29,
1358,
284,
502,
5166,
3203,
2284,
1041,
317,
286,
369,
320,
12217,
3203,
29,
433,
284,
15441,
2178,
433,
23652,
96627,
341,
310,
350,
1062,
284,
433,
4630,
545,
310,
422,
320,
838,
976,
854,
8,
1358,
1388,
9276,
317,
286,
457,
286,
471,
1358,
41730,
1175,
1895,
317,
262,
457,
65434,
25,
128001,
128000,
16851,
459,
1358,
315,
2536,
854,
5540,
505,
279,
2592,
1358,
382,
36913,
259,
1895,
279,
2592,
1358,
198,
66103,
279,
1358
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
16851,
459,
1358,
315,
2536,
854,
5540,
505,
279,
2592,
1358,
382,
36913,
259,
1895,
279,
2592,
1358,
198,
66103,
279,
1358,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public T[] toArray(T[] tArray) {
List<T> array = new ArrayList<T>(100);
for (Iterator<T> it = iterator(); it.hasNext();) {
T val = it.next();
if (val != null) array.add(val);
}
return array.toArray(tArray);
}
Documentation: | Returns an array of non null elements from the source array.
@param tArray the source array
@return the array |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
5273,
636,
12809,
1401,
8,
341,
286,
1416,
1442,
279,
3160,
374,
1234,
323,
584,
527,
10371,
369,
279,
1401,
11,
1243,
1120,
1427,
369,
279,
1401,
13,
4418,
956,
1977,
279,
2472,
13,
740,
286,
422,
320,
2235,
624,
854,
1024,
3673,
1996,
366,
220,
508,
8,
341,
310,
369,
320,
1211,
1537,
551,
3673,
8,
341,
394,
5135,
1256,
1150,
296,
344,
284,
320,
2276,
1256,
1150,
8,
1537,
280,
394,
422,
320,
798,
6624,
1278,
344,
2710,
2446,
1150,
10340,
341,
504,
471,
296,
344,
2894,
280,
394,
457,
310,
457,
310,
471,
854,
280,
286,
335,
775,
341,
310,
422,
320,
2235,
624,
854,
8,
1977,
96903,
2276,
545,
310,
471,
2472,
673,
4962,
317,
286,
457,
262,
457,
65434,
25,
128001,
128000,
1991,
279,
3673,
369,
279,
1401,
382,
36913,
1401,
198,
66103,
279,
3673,
369,
279,
2728,
1401
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
1991,
279,
3673,
369,
279,
1401,
382,
36913,
1401,
198,
66103,
279,
3673,
369,
279,
2728,
1401,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public Value get(Object key) {
/* If the length is under and we are asking for the key, then just look for the key. Don't build the map. */
if (map == null && items.length < 20) {
for (Object item : items) {
MapItemValue miv = (MapItemValue) item;
if (key.equals(miv.name.toValue())) {
return miv.value;
}
}
return null;
} else {
if (map == null) buildIfNeededMap();
return map.get(key);
}
}
Documentation: | Get the items for the key.
@param key
@return the items for the given key |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
366,
51,
29,
23887,
3203,
29,
5016,
7,
12217,
3203,
29,
659,
8,
341,
286,
471,
311,
861,
1209,
51735,
3203,
9414,
5016,
12464,
861,
1214,
37434,
1638,
12217,
545,
262,
457,
65434,
25,
128001,
128000,
16851,
459,
15441,
13890,
311,
420,
15441,
449,
682,
56003,
3673,
7108,
198,
1729,
1701,
279,
1670,
53140,
13,
578,
4113,
15441,
690,
3719,
198,
327,
15424,
291,
315,
5540,
1306,
26679,
279,
5016,
2819,
13,
362,
502,
15441,
198,
2000,
279,
5016,
2819,
690,
387,
6052,
382,
36913,
659,
459,
23887,
198,
66103,
279,
11041,
23887,
198,
31,
11536,
220,
16,
13,
20,
13,
20
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
16851,
459,
15441,
13890,
311,
420,
15441,
449,
682,
56003,
3673,
7108,
198,
1729,
1701,
279,
1670,
53140,
13,
578,
4113,
15441,
690,
3719,
198,
327,
15424,
291,
315,
5540,
1306,
26679,
279,
5016,
2819,
13,
362,
502,
15441,
198,
2000,
279,
5016,
2819,
690,
387,
6052,
382,
36913,
659,
459,
23887,
198,
66103,
279,
11041,
23887,
198,
31,
11536,
220,
16,
13,
20,
13,
20,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static <T> Iterator<T> unique(Iterator<T> self) {
return toList((Iterable<T>) unique(toList(self))).listIterator();
}
Documentation: | Returns an iterator equivalent to this iterator with all duplicated items removed
by using the default comparator. The original iterator will become
exhausted of elements after determining the unique values. A new iterator
for the unique values will be returned.
@param self an Iterator
@return the modified Iterator
@since 1.5.5 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
528,
1396,
59893,
28474,
1271,
7,
63735,
659,
11,
59206,
1023,
8,
341,
286,
5742,
59893,
39758,
27,
63735,
29,
1396,
59893,
39758,
284,
502,
5742,
59893,
39758,
27,
63735,
4000,
286,
471,
1396,
59893,
39758,
21263,
1214,
11,
1023,
317,
262,
457,
65434,
25,
128001,
128000,
50122,
264,
1749,
430,
43565,
1403,
7809,
4893,
1701,
18370,
62615,
596,
198,
2309,
1396,
8010,
53140,
382,
36913,
659,
264,
59206,
198,
36913,
1023,
2500,
59206,
198,
66103,
264,
482,
588,
1396,
11,
220,
15,
477,
264,
489,
588,
1396,
4184,
311,
18370,
62615,
596,
80398,
5226,
198,
31,
11536,
220,
16,
13,
21,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
50122,
264,
1749,
430,
43565,
1403,
7809,
4893,
1701,
18370,
62615,
596,
198,
2309,
1396,
8010,
53140,
382,
36913,
659,
264,
59206,
198,
36913,
1023,
2500,
59206,
198,
66103,
264,
482,
588,
1396,
11,
220,
15,
477,
264,
489,
588,
1396,
4184,
311,
18370,
62615,
596,
80398,
5226,
198,
31,
11536,
220,
16,
13,
21,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static int numberAwareCompareTo(Comparable self, Comparable other) {
NumberAwareComparator<Comparable> numberAwareComparator = new NumberAwareComparator<Comparable>();
return numberAwareComparator.compare(self, other);
}
Documentation: | Provides a method that compares two comparables using Groovy's
default number aware comparator.
@param self a Comparable
@param other another Comparable
@return a -ve number, 0 or a +ve number according to Groovy's compareTo contract
@since 1.6.0 |
codex_glue | [
128000,
6396,
25,
20950,
327,
35669,
361,
765,
20400,
9904,
369,
279,
2768,
2082,
512,
2123,
25,
586,
1118,
2777,
904,
12809,
659,
11,
56667,
22722,
8,
341,
286,
7137,
54954,
11803,
18399,
86,
284,
502,
7137,
54954,
11803,
1361,
11915,
317,
286,
369,
320,
12217,
5480,
284,
19337,
10668,
5628,
5470,
12217,
1214,
1237,
5480,
23652,
96627,
341,
310,
422,
320,
9081,
86,
8692,
28169,
4630,
10340,
471,
837,
280,
286,
457,
286,
471,
905,
280,
262,
457,
65434,
25,
128001,
128000,
8705,
988,
927,
279,
8970,
315,
459,
1665,
477,
4526,
11,
323,
12621,
3508,
264,
198,
62885,
374,
2764,
369,
520,
3325,
832,
2449,
382,
36913,
659,
262,
279,
1665,
927,
902,
584,
30729,
198,
36913,
22722,
279,
22722,
25269,
1511,
369,
12864,
198,
66103,
837,
256,
422,
904,
20140,
369,
279,
1665,
9248,
279,
22722,
25269,
198,
31,
11536,
220,
16,
13,
15
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
128000,
8705,
988,
927,
279,
8970,
315,
459,
1665,
477,
4526,
11,
323,
12621,
3508,
264,
198,
62885,
374,
2764,
369,
520,
3325,
832,
2449,
382,
36913,
659,
262,
279,
1665,
927,
902,
584,
30729,
198,
36913,
22722,
279,
22722,
25269,
1511,
369,
12864,
198,
66103,
837,
256,
422,
904,
20140,
369,
279,
1665,
9248,
279,
22722,
25269,
198,
31,
11536,
220,
16,
13,
15,
128001
] | Task: codex_glue | Generate documentation for the following code:
Code: public static boolean any(Object self, Closure closure) {
BooleanClosureWrapper bcw = new BooleanClosureWrapper(closure);
for (Iterator iter = InvokerHelper.asIterator(self); iter.hasNext();) {
if (bcw.call(iter.next())) return true;
}
return false;
}
Documentation: | Iterates over the contents of an object or collection, and checks whether a
predicate is valid for at least one element.
@param self the object over which we iterate
@param closure the closure predicate used for matching
@return true if any iteration for the object matches the closure predicate
@since 1.0 |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 53